diff --git a/types/contact.d.ts b/types/contact.d.ts index 2157f23..3e8cf87 100644 --- a/types/contact.d.ts +++ b/types/contact.d.ts @@ -1,4 +1,4 @@ -import { datetime } from 'general'; +import { datetime } from './general'; export interface Contact { /** A unique random ID which is created on the MessageBird platform and is returned upon creation of the object. */ diff --git a/types/conversations.d.ts b/types/conversations.d.ts index fcfb42c..5b4218f 100644 --- a/types/conversations.d.ts +++ b/types/conversations.d.ts @@ -1,5 +1,5 @@ -import { Language } from 'parsimmon'; -import { datetime } from 'general'; +import { datetime } from './general'; +import { languages } from './voice_messages'; export interface StartConversationParameter { /** The type of the message content. */ @@ -44,17 +44,21 @@ export interface TextContent { export interface ImageContent { /** Required for type image. An object of the form {"url": ""} containing the url of the remote media file. */ - image: object; + image: File; } export interface AudioContent { /** Required for type video. An object of the form {"url": ""} containing the url of the remote media file. */ - video: object; + video: File; } export interface FileContent { /** Required for type file. An object of the form {"url": ""} containing the url of the remote media file. */ - file: object; + file: File; +} + +export interface File { + url: string; } export interface LocationContent { @@ -87,7 +91,7 @@ export interface HSMLanguage { */ policy: 'fallback' | 'deterministic'; /** The code of the language or locale to use, accepts both language and language_locale formats (e.g., en or en_US). */ - code: Language; + code: languages; } export type HSMLocalizableParameters = diff --git a/types/lookup.d.ts b/types/lookup.d.ts index c2011ae..cb7e907 100644 --- a/types/lookup.d.ts +++ b/types/lookup.d.ts @@ -1,5 +1,5 @@ -import { datetime } from 'general'; -import { Hlr } from 'hlr'; +import { datetime } from './general'; +import { Hlr } from './hlr'; export type numberType = | 'fixed line' diff --git a/types/messages.d.ts b/types/messages.d.ts index ccd383f..ce2240c 100644 --- a/types/messages.d.ts +++ b/types/messages.d.ts @@ -1,4 +1,4 @@ -import { datetime, msisdn } from 'general'; +import { datetime, msisdn } from './general'; export type dataCoding = 'plain' | 'unicode' | 'auto'; export type mclass = 0 | 1; diff --git a/types/mms.d.ts b/types/mms.d.ts index 7783f9c..a756a5f 100644 --- a/types/mms.d.ts +++ b/types/mms.d.ts @@ -1,5 +1,5 @@ -import { datetime, msisdn } from 'general'; -import { Recipients } from 'messages'; +import { datetime, msisdn } from './general'; +import { Recipients } from './messages'; export interface MmsObject { /** A unique ID which is created on the MessageBird platform and is returned upon creation of the object. */