@mobilerun/sdk 5.3.0 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +5 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -5
- package/client.d.ts.map +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/apps.d.mts +10 -2
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +10 -2
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js +3 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs +3 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/assistant/conversations.d.mts +26 -4
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +26 -4
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/assistant/conversations.js +12 -4
- package/resources/assistant/conversations.js.map +1 -1
- package/resources/assistant/conversations.mjs +12 -4
- package/resources/assistant/conversations.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +36 -20
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +36 -20
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +10 -2
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +10 -2
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/devices/apps.d.mts +37 -17
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +37 -17
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +15 -14
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +15 -14
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +29 -4
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +29 -4
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +7 -4
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +7 -4
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +1 -0
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +1 -0
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +3 -1
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +1 -0
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +9 -3
- package/resources/devices/keyboard.d.mts.map +1 -1
- package/resources/devices/keyboard.d.ts +9 -3
- package/resources/devices/keyboard.d.ts.map +1 -1
- package/resources/devices/keyboard.js +3 -3
- package/resources/devices/keyboard.mjs +3 -3
- package/resources/devices/recordings.d.mts +11 -0
- package/resources/devices/recordings.d.mts.map +1 -1
- package/resources/devices/recordings.d.ts +11 -0
- package/resources/devices/recordings.d.ts.map +1 -1
- package/resources/devices/traffic-sessions.d.mts +173 -0
- package/resources/devices/traffic-sessions.d.mts.map +1 -0
- package/resources/devices/traffic-sessions.d.ts +173 -0
- package/resources/devices/traffic-sessions.d.ts.map +1 -0
- package/resources/devices/traffic-sessions.js +43 -0
- package/resources/devices/traffic-sessions.js.map +1 -0
- package/resources/devices/traffic-sessions.mjs +39 -0
- package/resources/devices/traffic-sessions.mjs.map +1 -0
- package/resources/files.d.mts +72 -0
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +72 -0
- package/resources/files.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/index.d.mts +3 -0
- package/resources/mailboxes/index.d.mts.map +1 -0
- package/resources/mailboxes/index.d.ts +3 -0
- package/resources/mailboxes/index.d.ts.map +1 -0
- package/resources/{esims → mailboxes}/index.js +3 -3
- package/resources/mailboxes/index.js.map +1 -0
- package/resources/{esims → mailboxes}/index.mjs +1 -1
- package/resources/mailboxes/index.mjs.map +1 -0
- package/resources/mailboxes/mailboxes.d.mts +374 -0
- package/resources/mailboxes/mailboxes.d.mts.map +1 -0
- package/resources/mailboxes/mailboxes.d.ts +374 -0
- package/resources/mailboxes/mailboxes.d.ts.map +1 -0
- package/resources/mailboxes/mailboxes.js +139 -0
- package/resources/mailboxes/mailboxes.js.map +1 -0
- package/resources/mailboxes/mailboxes.mjs +134 -0
- package/resources/mailboxes/mailboxes.mjs.map +1 -0
- package/resources/mailboxes/messages.d.mts +82 -0
- package/resources/mailboxes/messages.d.mts.map +1 -0
- package/resources/mailboxes/messages.d.ts +82 -0
- package/resources/mailboxes/messages.d.ts.map +1 -0
- package/resources/mailboxes/messages.js +39 -0
- package/resources/mailboxes/messages.js.map +1 -0
- package/resources/mailboxes/messages.mjs +35 -0
- package/resources/mailboxes/messages.mjs.map +1 -0
- package/resources/mailboxes.d.mts +2 -0
- package/resources/mailboxes.d.mts.map +1 -0
- package/resources/mailboxes.d.ts +2 -0
- package/resources/mailboxes.d.ts.map +1 -0
- package/resources/{esims.js → mailboxes.js} +2 -2
- package/resources/mailboxes.js.map +1 -0
- package/resources/{esims.mjs → mailboxes.mjs} +2 -2
- package/resources/mailboxes.mjs.map +1 -0
- package/resources/messages/conversations.d.mts +4 -15
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +4 -15
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/conversations.js +4 -15
- package/resources/messages/conversations.js.map +1 -1
- package/resources/messages/conversations.mjs +4 -15
- package/resources/messages/conversations.mjs.map +1 -1
- package/resources/messages/messages.d.mts +2 -4
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +2 -4
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +2 -4
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +2 -4
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/numbers/index.d.mts +1 -1
- package/resources/numbers/index.d.mts.map +1 -1
- package/resources/numbers/index.d.ts +1 -1
- package/resources/numbers/index.d.ts.map +1 -1
- package/resources/numbers/index.js.map +1 -1
- package/resources/numbers/index.mjs.map +1 -1
- package/resources/numbers/numbers.d.mts +48 -35
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +48 -35
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js +23 -29
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs +23 -29
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +80 -32
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +80 -32
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +1 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +1 -0
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/workflows/events.d.mts +18 -0
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +18 -0
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions.d.mts +84 -5
- package/resources/workflows/executions.d.mts.map +1 -1
- package/resources/workflows/executions.d.ts +84 -5
- package/resources/workflows/executions.d.ts.map +1 -1
- package/resources/workflows/executions.js +3 -2
- package/resources/workflows/executions.js.map +1 -1
- package/resources/workflows/executions.mjs +3 -2
- package/resources/workflows/executions.mjs.map +1 -1
- package/resources/workflows/flows/actions.d.mts +19 -0
- package/resources/workflows/flows/actions.d.mts.map +1 -1
- package/resources/workflows/flows/actions.d.ts +19 -0
- package/resources/workflows/flows/actions.d.ts.map +1 -1
- package/resources/workflows/flows/flows.d.mts +142 -2
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +142 -2
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +11 -1
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +11 -1
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +1 -1
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +1 -1
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/triggers.d.mts +17 -3
- package/resources/workflows/triggers.d.mts.map +1 -1
- package/resources/workflows/triggers.d.ts +17 -3
- package/resources/workflows/triggers.d.ts.map +1 -1
- package/resources/workflows/workflows.d.mts +2 -2
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +2 -2
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +40 -40
- package/src/resources/apps.ts +11 -2
- package/src/resources/assistant/conversations.ts +38 -4
- package/src/resources/connect/proxies.ts +49 -21
- package/src/resources/devices/apps.ts +41 -17
- package/src/resources/devices/devices.ts +58 -4
- package/src/resources/devices/index.ts +11 -0
- package/src/resources/devices/keyboard.ts +10 -3
- package/src/resources/devices/recordings.ts +12 -0
- package/src/resources/devices/traffic-sessions.ts +299 -0
- package/src/resources/files.ts +114 -0
- package/src/resources/index.ts +19 -19
- package/src/resources/mailboxes/index.ts +26 -0
- package/src/resources/mailboxes/mailboxes.ts +637 -0
- package/src/resources/mailboxes/messages.ts +134 -0
- package/src/resources/{esims.ts → mailboxes.ts} +1 -1
- package/src/resources/messages/conversations.ts +4 -15
- package/src/resources/messages/messages.ts +2 -4
- package/src/resources/numbers/index.ts +2 -0
- package/src/resources/numbers/numbers.ts +58 -34
- package/src/resources/tasks/tasks.ts +120 -40
- package/src/resources/webhooks/webhooks.ts +2 -0
- package/src/resources/workflows/events.ts +24 -0
- package/src/resources/workflows/executions.ts +121 -5
- package/src/resources/workflows/flows/actions.ts +26 -0
- package/src/resources/workflows/flows/flows.ts +182 -1
- package/src/resources/workflows/flows/index.ts +1 -0
- package/src/resources/workflows/index.ts +1 -0
- package/src/resources/workflows/triggers.ts +19 -3
- package/src/resources/workflows/workflows.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/esims/esims.d.mts +0 -566
- package/resources/esims/esims.d.mts.map +0 -1
- package/resources/esims/esims.d.ts +0 -566
- package/resources/esims/esims.d.ts.map +0 -1
- package/resources/esims/esims.js +0 -205
- package/resources/esims/esims.js.map +0 -1
- package/resources/esims/esims.mjs +0 -200
- package/resources/esims/esims.mjs.map +0 -1
- package/resources/esims/index.d.mts +0 -3
- package/resources/esims/index.d.mts.map +0 -1
- package/resources/esims/index.d.ts +0 -3
- package/resources/esims/index.d.ts.map +0 -1
- package/resources/esims/index.js.map +0 -1
- package/resources/esims/index.mjs.map +0 -1
- package/resources/esims/messages.d.mts +0 -106
- package/resources/esims/messages.d.mts.map +0 -1
- package/resources/esims/messages.d.ts +0 -106
- package/resources/esims/messages.d.ts.map +0 -1
- package/resources/esims/messages.js +0 -37
- package/resources/esims/messages.js.map +0 -1
- package/resources/esims/messages.mjs +0 -33
- package/resources/esims/messages.mjs.map +0 -1
- package/resources/esims.d.mts +0 -2
- package/resources/esims.d.mts.map +0 -1
- package/resources/esims.d.ts +0 -2
- package/resources/esims.d.ts.map +0 -1
- package/resources/esims.js.map +0 -1
- package/resources/esims.mjs.map +0 -1
- package/src/resources/esims/esims.ts +0 -1019
- package/src/resources/esims/index.ts +0 -28
- package/src/resources/esims/messages.ts +0 -187
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Messages extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get a mailbox message
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const message = await client.mailboxes.messages.retrieve(
|
|
11
|
+
* 'x',
|
|
12
|
+
* { mailboxId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
13
|
+
* );
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
retrieve(messageID: string, params: MessageRetrieveParams, options?: RequestOptions): APIPromise<MessageRetrieveResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Lists mailbox messages with cursor pagination and optional time, sender, and OTP
|
|
19
|
+
* filters.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const messages = await client.mailboxes.messages.list(
|
|
24
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
list(mailboxID: string, query?: MessageListParams | null | undefined, options?: RequestOptions): APIPromise<MessageListResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface MessageRetrieveResponse {
|
|
31
|
+
data: MessageRetrieveResponse.Data;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace MessageRetrieveResponse {
|
|
34
|
+
interface Data {
|
|
35
|
+
id: string;
|
|
36
|
+
attachmentCount: number;
|
|
37
|
+
attachments: Array<Data.Attachment>;
|
|
38
|
+
fromAddress: string | null;
|
|
39
|
+
fromName: string | null;
|
|
40
|
+
hasOtp: boolean;
|
|
41
|
+
mailboxId: string;
|
|
42
|
+
receivedAt: string;
|
|
43
|
+
subject: string | null;
|
|
44
|
+
textBody: string | null;
|
|
45
|
+
}
|
|
46
|
+
namespace Data {
|
|
47
|
+
interface Attachment {
|
|
48
|
+
contentType: string | null;
|
|
49
|
+
name: string | null;
|
|
50
|
+
size: number;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export interface MessageListResponse {
|
|
55
|
+
items: Array<MessageListResponse.Item>;
|
|
56
|
+
nextCursor: string | null;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace MessageListResponse {
|
|
59
|
+
interface Item {
|
|
60
|
+
id: string;
|
|
61
|
+
fromAddress: string | null;
|
|
62
|
+
hasOtp: boolean;
|
|
63
|
+
mailboxId: string;
|
|
64
|
+
preview: string | null;
|
|
65
|
+
receivedAt: string;
|
|
66
|
+
subject: string | null;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export interface MessageRetrieveParams {
|
|
70
|
+
mailboxId: string;
|
|
71
|
+
}
|
|
72
|
+
export interface MessageListParams {
|
|
73
|
+
after?: string;
|
|
74
|
+
cursor?: string;
|
|
75
|
+
hasOtp?: 'true' | 'false';
|
|
76
|
+
limit?: number;
|
|
77
|
+
sender?: string;
|
|
78
|
+
}
|
|
79
|
+
export declare namespace Messages {
|
|
80
|
+
export { type MessageRetrieveResponse as MessageRetrieveResponse, type MessageListResponse as MessageListResponse, type MessageRetrieveParams as MessageRetrieveParams, type MessageListParams as MessageListParams, };
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=messages.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources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AClC,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAEvC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B,MAAM,EAAE,OAAO,CAAC;QAEhB,SAAS,EAAE,MAAM,CAAC;QAElB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEvB,UAAU,EAAE,MAAM,CAAC;QAEnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;KACxB;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Messages extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get a mailbox message
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const message = await client.mailboxes.messages.retrieve(
|
|
11
|
+
* 'x',
|
|
12
|
+
* { mailboxId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
13
|
+
* );
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
retrieve(messageID: string, params: MessageRetrieveParams, options?: RequestOptions): APIPromise<MessageRetrieveResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Lists mailbox messages with cursor pagination and optional time, sender, and OTP
|
|
19
|
+
* filters.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const messages = await client.mailboxes.messages.list(
|
|
24
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
list(mailboxID: string, query?: MessageListParams | null | undefined, options?: RequestOptions): APIPromise<MessageListResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface MessageRetrieveResponse {
|
|
31
|
+
data: MessageRetrieveResponse.Data;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace MessageRetrieveResponse {
|
|
34
|
+
interface Data {
|
|
35
|
+
id: string;
|
|
36
|
+
attachmentCount: number;
|
|
37
|
+
attachments: Array<Data.Attachment>;
|
|
38
|
+
fromAddress: string | null;
|
|
39
|
+
fromName: string | null;
|
|
40
|
+
hasOtp: boolean;
|
|
41
|
+
mailboxId: string;
|
|
42
|
+
receivedAt: string;
|
|
43
|
+
subject: string | null;
|
|
44
|
+
textBody: string | null;
|
|
45
|
+
}
|
|
46
|
+
namespace Data {
|
|
47
|
+
interface Attachment {
|
|
48
|
+
contentType: string | null;
|
|
49
|
+
name: string | null;
|
|
50
|
+
size: number;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export interface MessageListResponse {
|
|
55
|
+
items: Array<MessageListResponse.Item>;
|
|
56
|
+
nextCursor: string | null;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace MessageListResponse {
|
|
59
|
+
interface Item {
|
|
60
|
+
id: string;
|
|
61
|
+
fromAddress: string | null;
|
|
62
|
+
hasOtp: boolean;
|
|
63
|
+
mailboxId: string;
|
|
64
|
+
preview: string | null;
|
|
65
|
+
receivedAt: string;
|
|
66
|
+
subject: string | null;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export interface MessageRetrieveParams {
|
|
70
|
+
mailboxId: string;
|
|
71
|
+
}
|
|
72
|
+
export interface MessageListParams {
|
|
73
|
+
after?: string;
|
|
74
|
+
cursor?: string;
|
|
75
|
+
hasOtp?: 'true' | 'false';
|
|
76
|
+
limit?: number;
|
|
77
|
+
sender?: string;
|
|
78
|
+
}
|
|
79
|
+
export declare namespace Messages {
|
|
80
|
+
export { type MessageRetrieveResponse as MessageRetrieveResponse, type MessageListResponse as MessageListResponse, type MessageRetrieveParams as MessageRetrieveParams, type MessageListParams as MessageListParams, };
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/mailboxes/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAKtC;;;;;;;;;;OAUG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAGnC;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAA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CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Messages = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Messages extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get a mailbox message
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const message = await client.mailboxes.messages.retrieve(
|
|
14
|
+
* 'x',
|
|
15
|
+
* { mailboxId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(messageID, params, options) {
|
|
20
|
+
const { mailboxId } = params;
|
|
21
|
+
return this._client.get((0, path_1.path) `/mailboxes/${mailboxId}/messages/${messageID}`, options);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Lists mailbox messages with cursor pagination and optional time, sender, and OTP
|
|
25
|
+
* filters.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const messages = await client.mailboxes.messages.list(
|
|
30
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
list(mailboxID, query = {}, options) {
|
|
35
|
+
return this._client.get((0, path_1.path) `/mailboxes/${mailboxID}/messages`, { query, ...options });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Messages = Messages;
|
|
39
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/mailboxes/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,SAAiB,EACjB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,SAAS,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,SAAiB,EACjB,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,SAAS,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AAvCD,4BAuCC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class Messages extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get a mailbox message
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const message = await client.mailboxes.messages.retrieve(
|
|
11
|
+
* 'x',
|
|
12
|
+
* { mailboxId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
13
|
+
* );
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
retrieve(messageID, params, options) {
|
|
17
|
+
const { mailboxId } = params;
|
|
18
|
+
return this._client.get(path `/mailboxes/${mailboxId}/messages/${messageID}`, options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Lists mailbox messages with cursor pagination and optional time, sender, and OTP
|
|
22
|
+
* filters.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const messages = await client.mailboxes.messages.list(
|
|
27
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
list(mailboxID, query = {}, options) {
|
|
32
|
+
return this._client.get(path `/mailboxes/${mailboxID}/messages`, { query, ...options });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=messages.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/mailboxes/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,SAAiB,EACjB,MAA6B,EAC7B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,SAAS,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,SAAiB,EACjB,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,SAAS,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailboxes.d.mts","sourceRoot":"","sources":["../src/resources/mailboxes.ts"],"names":[],"mappings":"AAEA,sCAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailboxes.d.ts","sourceRoot":"","sources":["../src/resources/mailboxes.ts"],"names":[],"mappings":"AAEA,qCAAkC"}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./
|
|
6
|
-
//# sourceMappingURL=
|
|
5
|
+
tslib_1.__exportStar(require("./mailboxes/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=mailboxes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailboxes.js","sourceRoot":"","sources":["../src/resources/mailboxes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,+DAAkC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
export * from "./
|
|
3
|
-
//# sourceMappingURL=
|
|
2
|
+
export * from "./mailboxes/index.mjs";
|
|
3
|
+
//# sourceMappingURL=mailboxes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailboxes.mjs","sourceRoot":"","sources":["../src/resources/mailboxes.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,sCAAkC"}
|
|
@@ -3,24 +3,13 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
export declare class Conversations extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Lists
|
|
7
|
-
*
|
|
8
|
-
* it was seen through. Optional `esimId` or `numberId` narrows to threads on one
|
|
9
|
-
* eSIM or number.
|
|
10
|
-
*
|
|
11
|
-
* Cursor-paginated via `limit` (default 20, max 100) and
|
|
12
|
-
* `cursorLastOccurredAt`/`cursorLastMessageId` (both required together, taken from
|
|
13
|
-
* a previous page's `nextCursor`). Pagination follows each thread's most recent
|
|
14
|
-
* activity rather than a fixed snapshot, so a thread with new activity can move
|
|
15
|
-
* ahead of an in-progress page fetch. Clients that need a stable ordering should
|
|
16
|
-
* snapshot their own view.
|
|
6
|
+
* Lists SMS conversations by recent activity. Use both cursor fields from
|
|
7
|
+
* `nextCursor` to fetch the next page.
|
|
17
8
|
*/
|
|
18
9
|
list(query?: ConversationListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationListResponse>;
|
|
19
10
|
/**
|
|
20
|
-
* Marks
|
|
21
|
-
*
|
|
22
|
-
* conversation row's `lastMessage`. Idempotent: repeating the call with the same
|
|
23
|
-
* cursor updates 0 rows. Returns the number of rows updated.
|
|
11
|
+
* Marks inbound messages in a conversation as read through the supplied cursor.
|
|
12
|
+
* Repeating the request is safe.
|
|
24
13
|
*/
|
|
25
14
|
markRead(body: ConversationMarkReadParams, options?: RequestOptions): APIPromise<ConversationMarkReadResponse>;
|
|
26
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"conversations.d.mts","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;OAGG;IACH,QAAQ,CACN,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAE5C,UAAU,EAAE,wBAAwB,CAAC,UAAU,GAAG,IAAI,CAAC;CACxD;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,IAAI;QACnB,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEvB,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAE9B,OAAO,EAAE,MAAM,CAAC;QAEhB,WAAW,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,WAAW;YAC1B,EAAE,EAAE,MAAM,CAAC;YAEX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;YAEpB,SAAS,EAAE,SAAS,GAAG,UAAU,CAAC;YAElC,UAAU,EAAE,MAAM,CAAC;YAEnB,MAAM,EACF,UAAU,GACV,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,kBAAkB,GAClB,WAAW,GACX,QAAQ,CAAC;SACd;KACF;IAED,UAAiB,UAAU;QACzB,aAAa,EAAE,MAAM,CAAC;QAEtB,cAAc,EAAE,MAAM,CAAC;KACxB;CACF;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;CACzC;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,UAAiB,IAAI;QACnB,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -3,24 +3,13 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Conversations extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Lists
|
|
7
|
-
*
|
|
8
|
-
* it was seen through. Optional `esimId` or `numberId` narrows to threads on one
|
|
9
|
-
* eSIM or number.
|
|
10
|
-
*
|
|
11
|
-
* Cursor-paginated via `limit` (default 20, max 100) and
|
|
12
|
-
* `cursorLastOccurredAt`/`cursorLastMessageId` (both required together, taken from
|
|
13
|
-
* a previous page's `nextCursor`). Pagination follows each thread's most recent
|
|
14
|
-
* activity rather than a fixed snapshot, so a thread with new activity can move
|
|
15
|
-
* ahead of an in-progress page fetch. Clients that need a stable ordering should
|
|
16
|
-
* snapshot their own view.
|
|
6
|
+
* Lists SMS conversations by recent activity. Use both cursor fields from
|
|
7
|
+
* `nextCursor` to fetch the next page.
|
|
17
8
|
*/
|
|
18
9
|
list(query?: ConversationListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationListResponse>;
|
|
19
10
|
/**
|
|
20
|
-
* Marks
|
|
21
|
-
*
|
|
22
|
-
* conversation row's `lastMessage`. Idempotent: repeating the call with the same
|
|
23
|
-
* cursor updates 0 rows. Returns the number of rows updated.
|
|
11
|
+
* Marks inbound messages in a conversation as read through the supplied cursor.
|
|
12
|
+
* Repeating the request is safe.
|
|
24
13
|
*/
|
|
25
14
|
markRead(body: ConversationMarkReadParams, options?: RequestOptions): APIPromise<ConversationMarkReadResponse>;
|
|
26
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;OAGG;IACH,QAAQ,CACN,IAAI,EAAE,0BAA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WAAW,0BAA0B;IACzC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -5,26 +5,15 @@ exports.Conversations = void 0;
|
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
class Conversations extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* Lists
|
|
9
|
-
*
|
|
10
|
-
* it was seen through. Optional `esimId` or `numberId` narrows to threads on one
|
|
11
|
-
* eSIM or number.
|
|
12
|
-
*
|
|
13
|
-
* Cursor-paginated via `limit` (default 20, max 100) and
|
|
14
|
-
* `cursorLastOccurredAt`/`cursorLastMessageId` (both required together, taken from
|
|
15
|
-
* a previous page's `nextCursor`). Pagination follows each thread's most recent
|
|
16
|
-
* activity rather than a fixed snapshot, so a thread with new activity can move
|
|
17
|
-
* ahead of an in-progress page fetch. Clients that need a stable ordering should
|
|
18
|
-
* snapshot their own view.
|
|
8
|
+
* Lists SMS conversations by recent activity. Use both cursor fields from
|
|
9
|
+
* `nextCursor` to fetch the next page.
|
|
19
10
|
*/
|
|
20
11
|
list(query = {}, options) {
|
|
21
12
|
return this._client.get('/numbers/messages/conversations', { query, ...options });
|
|
22
13
|
}
|
|
23
14
|
/**
|
|
24
|
-
* Marks
|
|
25
|
-
*
|
|
26
|
-
* conversation row's `lastMessage`. Idempotent: repeating the call with the same
|
|
27
|
-
* cursor updates 0 rows. Returns the number of rows updated.
|
|
15
|
+
* Marks inbound messages in a conversation as read through the supplied cursor.
|
|
16
|
+
* Repeating the request is safe.
|
|
28
17
|
*/
|
|
29
18
|
markRead(body, options) {
|
|
30
19
|
return this._client.post('/numbers/messages/conversations/read', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;OAGG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;OAGG;IACH,QAAQ,CACN,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AAtBD,sCAsBC"}
|
|
@@ -2,26 +2,15 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
export class Conversations extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
* Lists
|
|
6
|
-
*
|
|
7
|
-
* it was seen through. Optional `esimId` or `numberId` narrows to threads on one
|
|
8
|
-
* eSIM or number.
|
|
9
|
-
*
|
|
10
|
-
* Cursor-paginated via `limit` (default 20, max 100) and
|
|
11
|
-
* `cursorLastOccurredAt`/`cursorLastMessageId` (both required together, taken from
|
|
12
|
-
* a previous page's `nextCursor`). Pagination follows each thread's most recent
|
|
13
|
-
* activity rather than a fixed snapshot, so a thread with new activity can move
|
|
14
|
-
* ahead of an in-progress page fetch. Clients that need a stable ordering should
|
|
15
|
-
* snapshot their own view.
|
|
5
|
+
* Lists SMS conversations by recent activity. Use both cursor fields from
|
|
6
|
+
* `nextCursor` to fetch the next page.
|
|
16
7
|
*/
|
|
17
8
|
list(query = {}, options) {
|
|
18
9
|
return this._client.get('/numbers/messages/conversations', { query, ...options });
|
|
19
10
|
}
|
|
20
11
|
/**
|
|
21
|
-
* Marks
|
|
22
|
-
*
|
|
23
|
-
* conversation row's `lastMessage`. Idempotent: repeating the call with the same
|
|
24
|
-
* cursor updates 0 rows. Returns the number of rows updated.
|
|
12
|
+
* Marks inbound messages in a conversation as read through the supplied cursor.
|
|
13
|
+
* Repeating the request is safe.
|
|
25
14
|
*/
|
|
26
15
|
markRead(body, options) {
|
|
27
16
|
return this._client.post('/numbers/messages/conversations/read', { body, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"conversations.mjs","sourceRoot":"","sources":["../../src/resources/messages/conversations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;OAGG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;OAGG;IACH,QAAQ,CACN,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sCAAsC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF"}
|
|
@@ -7,10 +7,8 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
7
7
|
export declare class Messages extends APIResource {
|
|
8
8
|
conversations: ConversationsAPI.Conversations;
|
|
9
9
|
/**
|
|
10
|
-
* Lists
|
|
11
|
-
*
|
|
12
|
-
* characters), and peerKey (exact thread match). Each row includes its canonical
|
|
13
|
-
* thread key (`peerKey`).
|
|
10
|
+
* Lists SMS messages newest first, with filters for direction, eSIM, phone number,
|
|
11
|
+
* status, and conversation.
|
|
14
12
|
*/
|
|
15
13
|
list(query?: MessageListParams | null | undefined, options?: RequestOptions): APIPromise<MessageListResponse>;
|
|
16
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../src/resources/messages/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,gBAAgB,4BAAwB;AACpD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,EAC5B,aAAa,EACd,4BAAwB;AACzB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE,qBAAa,QAAS,SAAQ,WAAW;IACvC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IAEjG
|
|
1
|
+
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../../src/resources/messages/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,gBAAgB,4BAAwB;AACpD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,EAC5B,aAAa,EACd,4BAAwB;AACzB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAA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AAO,CAAC,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EACH,KAAK,GACL,UAAU,GACV,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,kBAAkB,GAClB,WAAW,GACX,QAAQ,CAAC;CACd;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;IAExG,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -7,10 +7,8 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
7
7
|
export declare class Messages extends APIResource {
|
|
8
8
|
conversations: ConversationsAPI.Conversations;
|
|
9
9
|
/**
|
|
10
|
-
* Lists
|
|
11
|
-
*
|
|
12
|
-
* characters), and peerKey (exact thread match). Each row includes its canonical
|
|
13
|
-
* thread key (`peerKey`).
|
|
10
|
+
* Lists SMS messages newest first, with filters for direction, eSIM, phone number,
|
|
11
|
+
* status, and conversation.
|
|
14
12
|
*/
|
|
15
13
|
list(query?: MessageListParams | null | undefined, options?: RequestOptions): APIPromise<MessageListResponse>;
|
|
16
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/messages/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,gBAAgB,2BAAwB;AACpD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,EAC5B,aAAa,EAC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U,EAAE,MAAM,CAAC;QAEnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAEvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B,MAAM,EACF,UAAU,GACV,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,kBAAkB,GAClB,WAAW,GACX,QAAQ,CAAC;KACd;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,UAAU,CAAC;IAE3C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,MAAM,CAAC,EACH,KAAK,GACL,UAAU,GACV,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,kBAAkB,GAClB,WAAW,GACX,QAAQ,CAAC;CACd;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;IAExG,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -12,10 +12,8 @@ class Messages extends resource_1.APIResource {
|
|
|
12
12
|
this.conversations = new ConversationsAPI.Conversations(this._client);
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Lists
|
|
16
|
-
*
|
|
17
|
-
* characters), and peerKey (exact thread match). Each row includes its canonical
|
|
18
|
-
* thread key (`peerKey`).
|
|
15
|
+
* Lists SMS messages newest first, with filters for direction, eSIM, phone number,
|
|
16
|
+
* status, and conversation.
|
|
19
17
|
*/
|
|
20
18
|
list(query = {}, options) {
|
|
21
19
|
return this._client.get('/numbers/messages', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/messages/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6EAAoD;AACpD,sDAMyB;AAIzB,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/messages/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6EAAoD;AACpD,sDAMyB;AAIzB,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAYnG,CAAC;IAVC;;;OAGG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AAbD,4BAaC;AAuED,QAAQ,CAAC,aAAa,GAAG,6BAAa,CAAC"}
|
|
@@ -8,10 +8,8 @@ export class Messages extends APIResource {
|
|
|
8
8
|
this.conversations = new ConversationsAPI.Conversations(this._client);
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Lists
|
|
12
|
-
*
|
|
13
|
-
* characters), and peerKey (exact thread match). Each row includes its canonical
|
|
14
|
-
* thread key (`peerKey`).
|
|
11
|
+
* Lists SMS messages newest first, with filters for direction, eSIM, phone number,
|
|
12
|
+
* status, and conversation.
|
|
15
13
|
*/
|
|
16
14
|
list(query = {}, options) {
|
|
17
15
|
return this._client.get('/numbers/messages', { query, ...options });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/messages/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,gBAAgB,4BAAwB;AACpD,OAAO,EAKL,aAAa,GACd,4BAAwB;AAIzB,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/messages/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,gBAAgB,4BAAwB;AACpD,OAAO,EAKL,aAAa,GACd,4BAAwB;AAIzB,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAYnG,CAAC;IAVC;;;OAGG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AAuED,QAAQ,CAAC,aAAa,GAAG,aAAa,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Messages, type MessageListResponse, type MessageListParams } from "./messages.mjs";
|
|
2
|
-
export { Numbers, type NumberCreateResponse, type NumberRetrieveResponse, type NumberUpdateResponse, type NumberListResponse, type NumberDeleteResponse, type NumberCountriesResponse, type NumberPurposesResponse, type NumberCreateParams, type NumberUpdateParams, type NumberListParams, } from "./numbers.mjs";
|
|
2
|
+
export { Numbers, type NumberCreateResponse, type NumberRetrieveResponse, type NumberUpdateResponse, type NumberListResponse, type NumberDeleteResponse, type NumberCapacityResponse, type NumberCountriesResponse, type NumberPurposesResponse, type NumberCreateParams, type NumberUpdateParams, type NumberListParams, type NumberCapacityParams, } from "./numbers.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/numbers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,uBAAmB;AACxF,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/numbers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,uBAAmB;AACxF,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B,sBAAkB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Messages, type MessageListResponse, type MessageListParams } from "./messages.js";
|
|
2
|
-
export { Numbers, type NumberCreateResponse, type NumberRetrieveResponse, type NumberUpdateResponse, type NumberListResponse, type NumberDeleteResponse, type NumberCountriesResponse, type NumberPurposesResponse, type NumberCreateParams, type NumberUpdateParams, type NumberListParams, } from "./numbers.js";
|
|
2
|
+
export { Numbers, type NumberCreateResponse, type NumberRetrieveResponse, type NumberUpdateResponse, type NumberListResponse, type NumberDeleteResponse, type NumberCapacityResponse, type NumberCountriesResponse, type NumberPurposesResponse, type NumberCreateParams, type NumberUpdateParams, type NumberListParams, type NumberCapacityParams, } from "./numbers.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/numbers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,sBAAmB;AACxF,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/numbers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,sBAAmB;AACxF,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B,qBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/numbers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAwF;AAA/E,oGAAA,QAAQ,OAAA;AACjB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/numbers/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAwF;AAA/E,oGAAA,QAAQ,OAAA;AACjB,wCAcmB;AAbjB,kGAAA,OAAO,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/numbers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,QAAQ,EAAoD,uBAAmB;AACxF,OAAO,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/numbers/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,QAAQ,EAAoD,uBAAmB;AACxF,OAAO,EACL,OAAO,GAaR,sBAAkB"}
|