samva 0.47.0 → 0.49.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/dist/agent/index.d.ts +1 -0
- package/dist/agent/index.js +2 -1
- package/dist/agent/runtime.js +26 -5
- package/dist/agent/types.d.ts +27 -0
- package/dist/client/sdk.gen.d.ts +234 -34
- package/dist/client/sdk.gen.js +574 -60
- package/dist/client/types.gen.d.ts +1363 -164
- package/dist/effect/accounts.d.ts +6 -6
- package/dist/effect/agents.d.ts +13 -13
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/api-keys.d.ts +13 -11
- package/dist/effect/approval-requests.d.ts +4 -4
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/campaigns.d.ts +15 -15
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contacts.d.ts +25 -25
- package/dist/effect/conversations.d.ts +13 -13
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/descriptors/integrations-catalog.d.ts +134 -0
- package/dist/effect/descriptors/integrations-catalog.js +122 -0
- package/dist/effect/descriptors/mailboxes.d.ts +32 -12
- package/dist/effect/descriptors/mailboxes.js +32 -12
- package/dist/effect/email.d.ts +61 -61
- package/dist/effect/events.d.ts +2 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/generated/accounts.d.ts +1 -3
- package/dist/effect/generated/accounts.js +2 -7
- package/dist/effect/generated/api-keys.d.ts +30 -15
- package/dist/effect/generated/api-keys.js +2 -0
- package/dist/effect/generated/attachments.js +1 -1
- package/dist/effect/generated/integrations-catalog.d.ts +2702 -1
- package/dist/effect/generated/integrations-catalog.js +578 -3
- package/dist/effect/generated/journeys.d.ts +105 -107
- package/dist/effect/generated/journeys.js +6 -12
- package/dist/effect/generated/mailboxes.d.ts +752 -463
- package/dist/effect/generated/mailboxes.js +163 -98
- package/dist/effect/generated/messages.d.ts +109 -4
- package/dist/effect/generated/messages.js +41 -8
- package/dist/effect/generated/shared.d.ts +255 -59
- package/dist/effect/generated/shared.js +64 -18
- package/dist/effect/generated/template-registrations.d.ts +53 -4
- package/dist/effect/generated/template-registrations.js +13 -5
- package/dist/effect/generated/templates.d.ts +77 -15
- package/dist/effect/generated/templates.js +26 -17
- package/dist/effect/generated/webhooks.d.ts +19 -19
- package/dist/effect/generated/webhooks.js +8 -8
- package/dist/effect/generated/whoami.d.ts +4 -4
- package/dist/effect/generated-metadata.d.ts +114 -18
- package/dist/effect/generated-metadata.js +362 -340
- package/dist/effect/integrations-catalog.d.ts +228 -3
- package/dist/effect/integrations-catalog.js +29 -1
- package/dist/effect/integrations.d.ts +7 -7
- package/dist/effect/internal/client.d.ts +7 -3
- package/dist/effect/internal/operation.d.ts +10 -6
- package/dist/effect/internal/operation.js +3 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/mailboxes.d.ts +117 -91
- package/dist/effect/mailboxes.js +11 -7
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/namespaces.d.ts +11 -11
- package/dist/effect/newsletter-domains.d.ts +4 -4
- package/dist/effect/newsletter-issues.d.ts +11 -11
- package/dist/effect/newsletters.d.ts +5 -5
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/organizations.d.ts +12 -12
- package/dist/effect/policies.d.ts +3 -3
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.d.ts +5 -5
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/template-registrations.d.ts +9 -3
- package/dist/effect/template-share-links.d.ts +5 -5
- package/dist/effect/templates.d.ts +46 -37
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topics.d.ts +9 -9
- package/dist/effect/webhooks.d.ts +15 -15
- package/dist/effect/whatsapp-flows.d.ts +10 -10
- package/dist/effect/whatsapp-setup-links.d.ts +4 -4
- package/dist/effect/whatsapp.d.ts +12 -12
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/inline-attachments.d.ts +0 -5
- package/dist/mailbox-events.d.ts +1 -5
- package/dist/mailbox-events.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +4 -4
- package/dist/promises/client.js +8 -4
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +83 -9
- package/package.json +2 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export declare const listContactConnections: (input?: {
|
|
2
2
|
readonly provider?: string | undefined;
|
|
3
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
4
|
-
export declare const list: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
3
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"accountsListContactConnections">;
|
|
4
|
+
export declare const list: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"accountsList">;
|
|
5
5
|
export declare const get: (input: {
|
|
6
6
|
readonly accountId: string;
|
|
7
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
7
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"accountsGet">;
|
|
8
8
|
export declare const remove: (input: {
|
|
9
9
|
readonly accountId: string;
|
|
10
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
10
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"accountsRemove">;
|
|
11
11
|
export declare const check: (input: {
|
|
12
12
|
readonly accountId: string;
|
|
13
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
13
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"accountsCheck">;
|
|
14
14
|
export declare const connect: (input: {
|
|
15
15
|
readonly provider: string;
|
|
16
16
|
readonly input?: {
|
|
@@ -47,4 +47,4 @@ export declare const connect: (input: {
|
|
|
47
47
|
readonly accountId?: string | undefined;
|
|
48
48
|
readonly expectedHosts?: readonly string[] | undefined;
|
|
49
49
|
readonly returnTo: string;
|
|
50
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
50
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"accountsConnect">;
|
package/dist/effect/agents.d.ts
CHANGED
|
@@ -85,12 +85,12 @@ export declare const rerunTests: (input: {
|
|
|
85
85
|
readonly eventTriggers?: readonly string[] | undefined;
|
|
86
86
|
readonly followUpTemplate?: string | undefined;
|
|
87
87
|
};
|
|
88
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
88
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsRerunTests">;
|
|
89
89
|
export declare const list: ((input?: {
|
|
90
90
|
readonly limit?: number | null | undefined;
|
|
91
91
|
readonly cursor?: string | undefined;
|
|
92
92
|
readonly namespaceId?: string | undefined;
|
|
93
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
93
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsList">) & {
|
|
94
94
|
readonly pages: (input?: {
|
|
95
95
|
readonly limit?: number | null | undefined;
|
|
96
96
|
readonly cursor?: string | undefined;
|
|
@@ -217,19 +217,19 @@ export declare const create: (input: {
|
|
|
217
217
|
readonly eventTriggers?: readonly string[] | undefined;
|
|
218
218
|
readonly followUpTemplate?: string | undefined;
|
|
219
219
|
} | null | undefined;
|
|
220
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
221
|
-
export declare const listModels: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
220
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsCreate">;
|
|
221
|
+
export declare const listModels: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsListModels">;
|
|
222
222
|
export declare const get: (input: {
|
|
223
223
|
readonly id: string;
|
|
224
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
224
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsGet">;
|
|
225
225
|
export declare const update: (input: {
|
|
226
226
|
readonly id: string;
|
|
227
227
|
readonly name?: string | null | undefined;
|
|
228
228
|
readonly monthlySpendCapDollars?: number | null | undefined;
|
|
229
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
229
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsUpdate">;
|
|
230
230
|
export declare const remove: (input: {
|
|
231
231
|
readonly id: string;
|
|
232
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
232
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsRemove">;
|
|
233
233
|
export declare const replaceDraft: (input: {
|
|
234
234
|
readonly id: string;
|
|
235
235
|
readonly revision: string;
|
|
@@ -317,11 +317,11 @@ export declare const replaceDraft: (input: {
|
|
|
317
317
|
readonly eventTriggers?: readonly string[] | undefined;
|
|
318
318
|
readonly followUpTemplate?: string | undefined;
|
|
319
319
|
};
|
|
320
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
320
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsReplaceDraft">;
|
|
321
321
|
export declare const publish: (input: {
|
|
322
322
|
readonly id: string;
|
|
323
323
|
readonly revision: string;
|
|
324
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
324
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsPublish">;
|
|
325
325
|
export declare const publishVersion: (input: {
|
|
326
326
|
readonly id: string;
|
|
327
327
|
readonly revision: string;
|
|
@@ -449,12 +449,12 @@ export declare const publishVersion: (input: {
|
|
|
449
449
|
readonly schedules: readonly string[];
|
|
450
450
|
};
|
|
451
451
|
};
|
|
452
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
452
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsPublishVersion">;
|
|
453
453
|
export declare const listVersions: ((input: {
|
|
454
454
|
readonly id: string;
|
|
455
455
|
readonly limit?: number | null | undefined;
|
|
456
456
|
readonly cursor?: string | undefined;
|
|
457
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
457
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsListVersions">) & {
|
|
458
458
|
readonly pages: (input: {
|
|
459
459
|
readonly id: string;
|
|
460
460
|
readonly limit?: number | null | undefined;
|
|
@@ -683,8 +683,8 @@ export declare const listVersions: ((input: {
|
|
|
683
683
|
};
|
|
684
684
|
export declare const continueOnStandard: (input: {
|
|
685
685
|
readonly id: string;
|
|
686
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
686
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsContinueOnStandard">;
|
|
687
687
|
export declare const getVersion: (input: {
|
|
688
688
|
readonly id: string;
|
|
689
689
|
readonly version: string;
|
|
690
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
690
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"agentsGetVersion">;
|
|
@@ -4,34 +4,34 @@ export declare const getStats: (input?: {
|
|
|
4
4
|
readonly before?: Date | undefined;
|
|
5
5
|
readonly groupBy?: "day" | "month" | "week" | undefined;
|
|
6
6
|
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
7
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
7
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"analyticsGetStats">;
|
|
8
8
|
export declare const getChannelStats: (input?: {
|
|
9
9
|
readonly namespaceId?: string | undefined;
|
|
10
10
|
readonly after?: Date | undefined;
|
|
11
11
|
readonly before?: Date | undefined;
|
|
12
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
12
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"analyticsGetChannelStats">;
|
|
13
13
|
export declare const getTopContacts: (input?: {
|
|
14
14
|
readonly namespaceId?: string | undefined;
|
|
15
15
|
readonly after?: Date | undefined;
|
|
16
16
|
readonly before?: Date | undefined;
|
|
17
17
|
readonly limit?: number | null | undefined;
|
|
18
18
|
readonly sortBy?: "received" | "sent" | "total" | undefined;
|
|
19
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
19
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"analyticsGetTopContacts">;
|
|
20
20
|
export declare const getHourlyDistribution: (input?: {
|
|
21
21
|
readonly namespaceId?: string | undefined;
|
|
22
22
|
readonly after?: Date | undefined;
|
|
23
23
|
readonly before?: Date | undefined;
|
|
24
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
24
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"analyticsGetHourlyDistribution">;
|
|
25
25
|
export declare const getDeliveryMetrics: (input?: {
|
|
26
26
|
readonly namespaceId?: string | undefined;
|
|
27
27
|
readonly after?: Date | undefined;
|
|
28
28
|
readonly before?: Date | undefined;
|
|
29
29
|
readonly channel?: "email" | "sms" | "whatsapp" | undefined;
|
|
30
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
30
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"analyticsGetDeliveryMetrics">;
|
|
31
31
|
export declare const exportData: (input: {
|
|
32
32
|
readonly namespaceId?: string | null | undefined;
|
|
33
33
|
readonly after: Date;
|
|
34
34
|
readonly before: Date;
|
|
35
35
|
readonly format?: "csv" | "json" | null | undefined;
|
|
36
36
|
readonly includeChannels?: readonly ("email" | "sms" | "whatsapp")[] | null | undefined;
|
|
37
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
37
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"analyticsExportData">;
|
|
@@ -26,19 +26,19 @@ export declare const create: (input: {
|
|
|
26
26
|
readonly analytics?: "read" | "write" | null | undefined;
|
|
27
27
|
};
|
|
28
28
|
readonly mailboxes?: {
|
|
29
|
-
readonly permissions: readonly ("
|
|
29
|
+
readonly permissions: readonly ("read" | "send" | "spam.read" | "update")[];
|
|
30
30
|
readonly mailboxIds?: readonly string[] | null | undefined;
|
|
31
31
|
} | null | undefined;
|
|
32
32
|
readonly namespaceId?: string | null | undefined;
|
|
33
33
|
} | null | undefined;
|
|
34
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
34
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"apiKeysCreate">;
|
|
35
35
|
export declare const list: ((input?: {
|
|
36
36
|
readonly limit?: number | null | undefined;
|
|
37
37
|
readonly cursor?: string | undefined;
|
|
38
38
|
readonly namespaceId?: string | undefined;
|
|
39
39
|
readonly status?: "active" | "revoked" | undefined;
|
|
40
40
|
readonly search?: string | undefined;
|
|
41
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
41
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"apiKeysList">) & {
|
|
42
42
|
readonly pages: (input?: {
|
|
43
43
|
readonly limit?: number | null | undefined;
|
|
44
44
|
readonly cursor?: string | undefined;
|
|
@@ -53,6 +53,7 @@ export declare const list: ((input?: {
|
|
|
53
53
|
readonly start: string | null;
|
|
54
54
|
readonly end: string | null;
|
|
55
55
|
readonly description?: string | null;
|
|
56
|
+
readonly source?: string | null;
|
|
56
57
|
readonly createdAt: string;
|
|
57
58
|
readonly expiresAt: string | null;
|
|
58
59
|
readonly lastUsedAt: string | null;
|
|
@@ -80,7 +81,7 @@ export declare const list: ((input?: {
|
|
|
80
81
|
readonly analytics?: "read" | "write" | null;
|
|
81
82
|
};
|
|
82
83
|
readonly mailboxes?: {
|
|
83
|
-
readonly permissions: readonly ["
|
|
84
|
+
readonly permissions: readonly ["read" | "send" | "spam.read" | "update", ...("read" | "send" | "spam.read" | "update")[]];
|
|
84
85
|
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
85
86
|
} | null;
|
|
86
87
|
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
@@ -106,6 +107,7 @@ export declare const list: ((input?: {
|
|
|
106
107
|
readonly start: string | null;
|
|
107
108
|
readonly end: string | null;
|
|
108
109
|
readonly description?: string | null;
|
|
110
|
+
readonly source?: string | null;
|
|
109
111
|
readonly createdAt: string;
|
|
110
112
|
readonly expiresAt: string | null;
|
|
111
113
|
readonly lastUsedAt: string | null;
|
|
@@ -133,7 +135,7 @@ export declare const list: ((input?: {
|
|
|
133
135
|
readonly analytics?: "read" | "write" | null;
|
|
134
136
|
};
|
|
135
137
|
readonly mailboxes?: {
|
|
136
|
-
readonly permissions: readonly ["
|
|
138
|
+
readonly permissions: readonly ["read" | "send" | "spam.read" | "update", ...("read" | "send" | "spam.read" | "update")[]];
|
|
137
139
|
readonly mailboxIds?: readonly [string & import("effect/Brand").Brand<"MailboxId">, ...(string & import("effect/Brand").Brand<"MailboxId">)[]] | null;
|
|
138
140
|
} | null;
|
|
139
141
|
readonly namespaceId?: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
@@ -147,28 +149,28 @@ export declare const list: ((input?: {
|
|
|
147
149
|
};
|
|
148
150
|
export declare const get: (input: {
|
|
149
151
|
readonly id: string;
|
|
150
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
152
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"apiKeysGet">;
|
|
151
153
|
export declare const update: (input: {
|
|
152
154
|
readonly id: string;
|
|
153
155
|
readonly name?: string | null | undefined;
|
|
154
156
|
readonly description?: string | null | undefined;
|
|
155
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
157
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"apiKeysUpdate">;
|
|
156
158
|
export declare const revoke: (input: {
|
|
157
159
|
readonly id: string;
|
|
158
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
160
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"apiKeysRevoke">;
|
|
159
161
|
export declare const rotate: (input: {
|
|
160
162
|
readonly id: string;
|
|
161
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
163
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"apiKeysRotate">;
|
|
162
164
|
export declare const getStats: (input: {
|
|
163
165
|
readonly id: string;
|
|
164
166
|
readonly after?: string | undefined;
|
|
165
167
|
readonly before?: string | undefined;
|
|
166
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
168
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"apiKeysGetStats">;
|
|
167
169
|
export declare const getActivity: ((input: {
|
|
168
170
|
readonly id: string;
|
|
169
171
|
readonly limit?: number | null | undefined;
|
|
170
172
|
readonly cursor?: string | undefined;
|
|
171
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
173
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"apiKeysGetActivity">) & {
|
|
172
174
|
readonly pages: (input: {
|
|
173
175
|
readonly id: string;
|
|
174
176
|
readonly limit?: number | null | undefined;
|
|
@@ -29,14 +29,14 @@ export declare const create: (input: {
|
|
|
29
29
|
};
|
|
30
30
|
}[];
|
|
31
31
|
readonly idempotencyKey: string;
|
|
32
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
32
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"approvalRequestsCreate">;
|
|
33
33
|
export declare const get: (input: {
|
|
34
34
|
readonly id: string;
|
|
35
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
35
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"approvalRequestsGet">;
|
|
36
36
|
export declare const approve: (input: {
|
|
37
37
|
readonly id: string;
|
|
38
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
38
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"approvalRequestsApprove">;
|
|
39
39
|
export declare const reject: (input: {
|
|
40
40
|
readonly id: string;
|
|
41
41
|
readonly reason?: string | null | undefined;
|
|
42
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
42
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"approvalRequestsReject">;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const getById: (input: {
|
|
2
2
|
readonly id: string;
|
|
3
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
3
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"attachmentsGetById">;
|
|
4
4
|
export declare const remove: (input: {
|
|
5
5
|
readonly id: string;
|
|
6
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
6
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"attachmentsRemove">;
|
|
7
7
|
export declare const list: (input: {
|
|
8
8
|
readonly messageId: string;
|
|
9
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
9
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"attachmentsList">;
|
|
10
10
|
export declare const downloadUrl: (input: {
|
|
11
11
|
readonly id: string;
|
|
12
12
|
readonly expiresIn?: number | null | undefined;
|
|
13
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
13
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"attachmentsDownloadUrl">;
|
package/dist/effect/brands.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload } from "./generated/shared.js";
|
|
2
|
-
export declare const list: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
2
|
+
export declare const list: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsList">;
|
|
3
3
|
export declare const create: (input: {
|
|
4
4
|
readonly slug: string;
|
|
5
5
|
readonly name: string;
|
|
@@ -26,10 +26,10 @@ export declare const create: (input: {
|
|
|
26
26
|
}[] | null | undefined;
|
|
27
27
|
} | null | undefined;
|
|
28
28
|
readonly isDefault?: boolean | null | undefined;
|
|
29
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
29
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsCreate">;
|
|
30
30
|
export declare const get: (input: {
|
|
31
31
|
readonly slug: string;
|
|
32
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
32
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsGet">;
|
|
33
33
|
export declare const update: (input: {
|
|
34
34
|
readonly slug: string;
|
|
35
35
|
readonly newSlug?: string | null | undefined;
|
|
@@ -56,10 +56,10 @@ export declare const update: (input: {
|
|
|
56
56
|
readonly url: string;
|
|
57
57
|
}[] | null | undefined;
|
|
58
58
|
} | null | undefined;
|
|
59
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
59
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsUpdate">;
|
|
60
60
|
export declare const remove: (input: {
|
|
61
61
|
readonly slug: string;
|
|
62
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
62
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsRemove">;
|
|
63
63
|
export declare const setDefault: (input: {
|
|
64
64
|
readonly slug: string;
|
|
65
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
65
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsSetDefault">;
|
|
@@ -236,7 +236,7 @@ export declare const preview: (input: {
|
|
|
236
236
|
readonly groupIds?: readonly string[] | null | undefined;
|
|
237
237
|
};
|
|
238
238
|
readonly contactId?: string | null | undefined;
|
|
239
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
239
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsPreview">;
|
|
240
240
|
export declare const sendTest: (input: {
|
|
241
241
|
readonly content: {
|
|
242
242
|
readonly channel: "sms";
|
|
@@ -475,7 +475,7 @@ export declare const sendTest: (input: {
|
|
|
475
475
|
readonly groupIds?: readonly string[] | null | undefined;
|
|
476
476
|
};
|
|
477
477
|
readonly contactId?: string | null | undefined;
|
|
478
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
478
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsSendTest">;
|
|
479
479
|
export declare const create: (input: {
|
|
480
480
|
readonly name: string;
|
|
481
481
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
@@ -718,12 +718,12 @@ export declare const create: (input: {
|
|
|
718
718
|
readonly policy?: {
|
|
719
719
|
readonly pageSize?: number | null | undefined;
|
|
720
720
|
} | null | undefined;
|
|
721
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
721
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsCreate">;
|
|
722
722
|
export declare const list: ((input?: {
|
|
723
723
|
readonly status?: "archived" | "draft" | undefined;
|
|
724
724
|
readonly limit?: number | null | undefined;
|
|
725
725
|
readonly cursor?: string | undefined;
|
|
726
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
726
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsList">) & {
|
|
727
727
|
readonly pages: (input?: {
|
|
728
728
|
readonly status?: "archived" | "draft" | undefined;
|
|
729
729
|
readonly limit?: number | null | undefined;
|
|
@@ -982,7 +982,7 @@ export declare const list: ((input?: {
|
|
|
982
982
|
};
|
|
983
983
|
export declare const get: (input: {
|
|
984
984
|
readonly id: string;
|
|
985
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
985
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsGet">;
|
|
986
986
|
export declare const update: (input: {
|
|
987
987
|
readonly id: string;
|
|
988
988
|
readonly name?: string | null | undefined;
|
|
@@ -1225,20 +1225,20 @@ export declare const update: (input: {
|
|
|
1225
1225
|
readonly policy?: {
|
|
1226
1226
|
readonly pageSize?: number | null | undefined;
|
|
1227
1227
|
} | null | undefined;
|
|
1228
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1228
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsUpdate">;
|
|
1229
1229
|
export declare const archive: (input: {
|
|
1230
1230
|
readonly id: string;
|
|
1231
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1231
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsArchive">;
|
|
1232
1232
|
export declare const scheduleRun: (input: {
|
|
1233
1233
|
readonly id: string;
|
|
1234
1234
|
readonly scheduledFor?: Date | null | undefined;
|
|
1235
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1235
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsScheduleRun">;
|
|
1236
1236
|
export declare const listRuns: ((input: {
|
|
1237
1237
|
readonly id: string;
|
|
1238
1238
|
readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | undefined;
|
|
1239
1239
|
readonly limit?: number | null | undefined;
|
|
1240
1240
|
readonly cursor?: string | undefined;
|
|
1241
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1241
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsListRuns">) & {
|
|
1242
1242
|
readonly pages: (input: {
|
|
1243
1243
|
readonly id: string;
|
|
1244
1244
|
readonly status?: "cancelled" | "completed" | "dispatching" | "failed" | "paused" | "resolving" | "scheduled" | undefined;
|
|
@@ -1506,30 +1506,30 @@ export declare const listRuns: ((input: {
|
|
|
1506
1506
|
export declare const getRun: (input: {
|
|
1507
1507
|
readonly id: string;
|
|
1508
1508
|
readonly runId: string;
|
|
1509
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1509
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsGetRun">;
|
|
1510
1510
|
export declare const getRunReport: (input: {
|
|
1511
1511
|
readonly id: string;
|
|
1512
1512
|
readonly runId: string;
|
|
1513
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1513
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsGetRunReport">;
|
|
1514
1514
|
export declare const pauseRun: (input: {
|
|
1515
1515
|
readonly id: string;
|
|
1516
1516
|
readonly runId: string;
|
|
1517
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1517
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsPauseRun">;
|
|
1518
1518
|
export declare const resumeRun: (input: {
|
|
1519
1519
|
readonly id: string;
|
|
1520
1520
|
readonly runId: string;
|
|
1521
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1521
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsResumeRun">;
|
|
1522
1522
|
export declare const cancelRun: (input: {
|
|
1523
1523
|
readonly id: string;
|
|
1524
1524
|
readonly runId: string;
|
|
1525
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1525
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsCancelRun">;
|
|
1526
1526
|
export declare const listRecipients: ((input: {
|
|
1527
1527
|
readonly id: string;
|
|
1528
1528
|
readonly runId: string;
|
|
1529
1529
|
readonly status?: "dispatched" | "dispatching" | "failed" | "pending" | "skipped" | undefined;
|
|
1530
1530
|
readonly limit?: number | null | undefined;
|
|
1531
1531
|
readonly cursor?: string | undefined;
|
|
1532
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
1532
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"campaignsListRecipients">) & {
|
|
1533
1533
|
readonly pages: (input: {
|
|
1534
1534
|
readonly id: string;
|
|
1535
1535
|
readonly runId: string;
|
|
@@ -3,7 +3,7 @@ export declare const list: ((input?: {
|
|
|
3
3
|
readonly cursor?: string | undefined;
|
|
4
4
|
readonly type?: "dynamic" | "smart" | "static" | readonly ("dynamic" | "smart" | "static")[] | undefined;
|
|
5
5
|
readonly isActive?: boolean | null | undefined;
|
|
6
|
-
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
6
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"contactGroupsList">) & {
|
|
7
7
|
readonly pages: (input?: {
|
|
8
8
|
readonly limit?: number | null | undefined;
|
|
9
9
|
readonly cursor?: string | undefined;
|
|
@@ -89,10 +89,10 @@ export declare const create: (input: {
|
|
|
89
89
|
readonly icon?: string | null | undefined;
|
|
90
90
|
readonly parentGroupId?: string | null | undefined;
|
|
91
91
|
readonly isActive?: boolean | null | undefined;
|
|
92
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
92
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"contactGroupsCreate">;
|
|
93
93
|
export declare const getById: (input: {
|
|
94
94
|
readonly id: string;
|
|
95
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
95
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"contactGroupsGetById">;
|
|
96
96
|
export declare const update: (input: {
|
|
97
97
|
readonly id: string;
|
|
98
98
|
readonly name?: string | null | undefined;
|
|
@@ -129,24 +129,24 @@ export declare const update: (input: {
|
|
|
129
129
|
readonly icon?: string | null | undefined;
|
|
130
130
|
readonly parentGroupId?: string | null | undefined;
|
|
131
131
|
readonly isActive?: boolean | null | undefined;
|
|
132
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
132
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"contactGroupsUpdate">;
|
|
133
133
|
export declare const remove: (input: {
|
|
134
134
|
readonly id: string;
|
|
135
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
135
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"contactGroupsRemove">;
|
|
136
136
|
export declare const addMembers: (input: {
|
|
137
137
|
readonly id: string;
|
|
138
138
|
readonly contactIds: readonly string[];
|
|
139
139
|
readonly role?: "admin" | "member" | "moderator" | null | undefined;
|
|
140
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
140
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"contactGroupsAddMembers">;
|
|
141
141
|
export declare const removeMembers: (input: {
|
|
142
142
|
readonly id: string;
|
|
143
143
|
readonly contactIds: readonly string[];
|
|
144
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
144
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"contactGroupsRemoveMembers">;
|
|
145
145
|
export declare const getMembers: ((input: {
|
|
146
146
|
readonly id: string;
|
|
147
147
|
readonly limit?: number | null | undefined;
|
|
148
148
|
readonly cursor?: string | undefined;
|
|
149
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
149
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"contactGroupsGetMembers">) & {
|
|
150
150
|
readonly pages: (input: {
|
|
151
151
|
readonly id: string;
|
|
152
152
|
readonly limit?: number | null | undefined;
|
|
@@ -229,7 +229,7 @@ export declare const getMembers: ((input: {
|
|
|
229
229
|
};
|
|
230
230
|
export declare const evaluateDynamic: (input: {
|
|
231
231
|
readonly id: string;
|
|
232
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
232
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"contactGroupsEvaluateDynamic">;
|
|
233
233
|
export declare const preview: (input: {
|
|
234
234
|
readonly criteria: {
|
|
235
235
|
readonly tags?: readonly string[] | null | undefined;
|
|
@@ -263,4 +263,4 @@ export declare const preview: (input: {
|
|
|
263
263
|
} | null;
|
|
264
264
|
}[] | null | undefined;
|
|
265
265
|
};
|
|
266
|
-
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/
|
|
266
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"contactGroupsPreview">;
|