samva 0.44.0 → 0.45.1
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/AGENTS.md +3 -0
- package/README.md +4 -0
- package/dist/client/sdk.gen.d.ts +281 -1
- package/dist/client/sdk.gen.js +856 -1
- package/dist/client/types.gen.d.ts +1858 -46
- package/dist/effect/agents.d.ts +86 -86
- package/dist/effect/agents.js +2 -2
- package/dist/effect/api-keys.d.ts +36 -36
- package/dist/effect/api-keys.js +2 -2
- package/dist/effect/attachments.d.ts +3 -3
- package/dist/effect/attachments.js +1 -1
- package/dist/effect/campaigns.d.ts +250 -250
- package/dist/effect/campaigns.js +3 -3
- package/dist/effect/categories.d.ts +23 -5
- package/dist/effect/categories.js +11 -20
- package/dist/effect/contact-groups.d.ts +44 -44
- package/dist/effect/contact-groups.js +3 -3
- package/dist/effect/contacts.d.ts +3 -3
- package/dist/effect/contacts.js +1 -1
- package/dist/effect/conversations.d.ts +53 -53
- package/dist/effect/conversations.js +1 -1
- package/dist/effect/email.d.ts +97 -97
- package/dist/effect/email.js +21 -21
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +6 -6
- package/dist/effect/extension-installations.js +1 -1
- package/dist/effect/generated/analytics.d.ts +6 -0
- package/dist/effect/generated/analytics.js +4 -2
- package/dist/effect/generated/index.d.ts +9 -1
- package/dist/effect/generated/journeys.d.ts +1 -3
- package/dist/effect/generated/journeys.js +2 -6
- package/dist/effect/generated/messages.d.ts +1 -5
- package/dist/effect/generated/messages.js +2 -10
- package/dist/effect/generated/shared.d.ts +92 -2
- package/dist/effect/generated/shared.js +43 -2
- package/dist/effect/generated/template-registrations.d.ts +651 -0
- package/dist/effect/generated/template-registrations.js +138 -0
- package/dist/effect/generated/whats-app-flows.d.ts +1838 -0
- package/dist/effect/generated/whats-app-flows.js +338 -0
- package/dist/effect/generated/whats-app-setup-links.d.ts +705 -0
- package/dist/effect/generated/whats-app-setup-links.js +150 -0
- package/dist/effect/generated/whats-app.d.ts +2089 -0
- package/dist/effect/generated/whats-app.js +633 -0
- package/dist/effect/generated-metadata.d.ts +245 -0
- package/dist/effect/generated-metadata.js +221 -48
- package/dist/effect/index.d.ts +4 -0
- package/dist/effect/index.js +6 -2
- package/dist/effect/mailboxes.d.ts +298 -298
- package/dist/effect/mailboxes.js +3 -3
- package/dist/effect/media.d.ts +4 -4
- package/dist/effect/media.js +2 -2
- package/dist/effect/messages.d.ts +17 -17
- package/dist/effect/messages.js +4 -4
- package/dist/effect/namespaces.d.ts +5 -5
- package/dist/effect/namespaces.js +1 -1
- package/dist/effect/newsletter-issues.d.ts +8 -8
- package/dist/effect/newsletter-issues.js +2 -2
- package/dist/effect/newsletters.d.ts +3 -3
- package/dist/effect/newsletters.js +1 -1
- package/dist/effect/organizations.d.ts +10 -10
- package/dist/effect/organizations.js +1 -1
- package/dist/effect/runtime.d.ts +2 -0
- package/dist/effect/runtime.js +2 -1
- package/dist/effect/scheduled-messages.d.ts +839 -839
- package/dist/effect/scheduled-messages.js +1 -1
- package/dist/effect/template-registrations.d.ts +12 -0
- package/dist/effect/template-registrations.js +16 -0
- package/dist/effect/templates.d.ts +66 -66
- package/dist/effect/templates.js +13 -13
- package/dist/effect/topic-forms.d.ts +4 -4
- package/dist/effect/topic-forms.js +1 -1
- package/dist/effect/topics.d.ts +11 -11
- package/dist/effect/topics.js +2 -2
- package/dist/effect/webhooks.d.ts +18 -18
- package/dist/effect/webhooks.js +3 -3
- package/dist/effect/whatsapp-flows.d.ts +34 -0
- package/dist/effect/whatsapp-flows.js +30 -0
- package/dist/effect/whatsapp-setup-links.d.ts +66 -0
- package/dist/effect/whatsapp-setup-links.js +18 -0
- package/dist/effect/whatsapp.d.ts +51 -0
- package/dist/effect/whatsapp.js +34 -0
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +9 -1
- package/dist/promises/client.js +11 -3
- package/dist/promises/errors.gen.d.ts +38 -2
- package/dist/promises/errors.gen.js +160 -3
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +917 -736
- package/dist/service-map.js +288 -235
- package/package.json +19 -3
|
@@ -10,8 +10,8 @@ var scheduled_messages_exports = /* @__PURE__ */ __exportAll({
|
|
|
10
10
|
resume: () => resume
|
|
11
11
|
});
|
|
12
12
|
const make = /* @__PURE__ */ forGroup(ScheduledMessagesGroup);
|
|
13
|
-
const list = /* @__PURE__ */ make("scheduledMessagesList");
|
|
14
13
|
const create = /* @__PURE__ */ make("scheduledMessagesCreate");
|
|
14
|
+
const list = /* @__PURE__ */ make("scheduledMessagesList");
|
|
15
15
|
const get = /* @__PURE__ */ make("scheduledMessagesGet");
|
|
16
16
|
const cancel = /* @__PURE__ */ make("scheduledMessagesCancel");
|
|
17
17
|
const resume = /* @__PURE__ */ make("scheduledMessagesResume");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const submit: (input: {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
readonly provider: "whatsapp";
|
|
4
|
+
readonly businessAccountId?: string | undefined;
|
|
5
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templateRegistrationsSubmit">;
|
|
6
|
+
export declare const list: (input: {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templateRegistrationsList">;
|
|
9
|
+
export declare const get: (input: {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly registrationId: string;
|
|
12
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templateRegistrationsGet">;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { TemplateRegistrationsGroup } from "./generated/template-registrations.js";
|
|
4
|
+
// src/effect/template-registrations.ts
|
|
5
|
+
var template_registrations_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
get: () => get,
|
|
7
|
+
list: () => list,
|
|
8
|
+
submit: () => submit
|
|
9
|
+
});
|
|
10
|
+
const make = /* @__PURE__ */ forGroup(TemplateRegistrationsGroup);
|
|
11
|
+
const submit = /* @__PURE__ */ make("templateRegistrationsSubmit");
|
|
12
|
+
const list = /* @__PURE__ */ make("templateRegistrationsList");
|
|
13
|
+
const get = /* @__PURE__ */ make("templateRegistrationsGet");
|
|
14
|
+
export { get, list, submit, template_registrations_exports };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=template-registrations.js.map
|
|
@@ -95,29 +95,6 @@ export declare const create: (input: {
|
|
|
95
95
|
readonly namespaceId?: string | null | undefined;
|
|
96
96
|
readonly shared?: boolean | null | undefined;
|
|
97
97
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesCreate">;
|
|
98
|
-
export declare const createFromWebsite: (input: {
|
|
99
|
-
readonly url: string;
|
|
100
|
-
readonly name?: string | null | undefined;
|
|
101
|
-
readonly namespaceId?: string | null | undefined;
|
|
102
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesCreateFromWebsite">;
|
|
103
|
-
export declare const suggestStarters: (input: {
|
|
104
|
-
readonly brief: string;
|
|
105
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesSuggestStarters">;
|
|
106
|
-
export declare const createFromBrief: (input: {
|
|
107
|
-
readonly brief: string;
|
|
108
|
-
readonly name?: string | null | undefined;
|
|
109
|
-
readonly galleryTemplateId?: string | null | undefined;
|
|
110
|
-
readonly useBrand?: boolean | null | undefined;
|
|
111
|
-
readonly namespaceId?: string | null | undefined;
|
|
112
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesCreateFromBrief">;
|
|
113
|
-
export declare const addEntry: (input: {
|
|
114
|
-
readonly id: string;
|
|
115
|
-
readonly entryPath: string;
|
|
116
|
-
readonly name: string;
|
|
117
|
-
readonly slug: string;
|
|
118
|
-
readonly description?: string | null | undefined;
|
|
119
|
-
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
120
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesAddEntry">;
|
|
121
98
|
export declare const listFamilies: ((input?: {
|
|
122
99
|
readonly limit?: number | null | undefined;
|
|
123
100
|
readonly cursor?: string | undefined;
|
|
@@ -168,13 +145,13 @@ export declare const createFamily: (input: {
|
|
|
168
145
|
export declare const getFamily: (input: {
|
|
169
146
|
readonly id: string;
|
|
170
147
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetFamily">;
|
|
171
|
-
export declare const deleteFamily: (input: {
|
|
172
|
-
readonly id: string;
|
|
173
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDeleteFamily">;
|
|
174
148
|
export declare const renameFamily: (input: {
|
|
175
149
|
readonly id: string;
|
|
176
150
|
readonly name: string;
|
|
177
151
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesRenameFamily">;
|
|
152
|
+
export declare const deleteFamily: (input: {
|
|
153
|
+
readonly id: string;
|
|
154
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDeleteFamily">;
|
|
178
155
|
export declare const createFamilyFromTemplate: (input: {
|
|
179
156
|
readonly templateId: string;
|
|
180
157
|
readonly name: string;
|
|
@@ -190,13 +167,6 @@ export declare const detachFamilyMember: (input: {
|
|
|
190
167
|
export declare const getById: (input: {
|
|
191
168
|
readonly id: string;
|
|
192
169
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetById">;
|
|
193
|
-
declare const deleteTemplate: (input: {
|
|
194
|
-
readonly id: string;
|
|
195
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDelete">;
|
|
196
|
-
export { deleteTemplate as delete };
|
|
197
|
-
export declare const deleteProject: (input: {
|
|
198
|
-
readonly id: string;
|
|
199
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDeleteProject">;
|
|
200
170
|
export declare const update: (input: {
|
|
201
171
|
readonly id: string;
|
|
202
172
|
readonly data: {
|
|
@@ -217,16 +187,39 @@ export declare const update: (input: {
|
|
|
217
187
|
readonly shared?: boolean | null | undefined;
|
|
218
188
|
};
|
|
219
189
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesUpdate">;
|
|
220
|
-
|
|
190
|
+
declare const deleteTemplate: (input: {
|
|
221
191
|
readonly id: string;
|
|
222
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"
|
|
223
|
-
export
|
|
192
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDelete">;
|
|
193
|
+
export { deleteTemplate as delete };
|
|
194
|
+
export declare const suggestStarters: (input: {
|
|
195
|
+
readonly brief: string;
|
|
196
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesSuggestStarters">;
|
|
197
|
+
export declare const createFromBrief: (input: {
|
|
198
|
+
readonly brief: string;
|
|
199
|
+
readonly name?: string | null | undefined;
|
|
200
|
+
readonly galleryTemplateId?: string | null | undefined;
|
|
201
|
+
readonly useBrand?: boolean | null | undefined;
|
|
202
|
+
readonly namespaceId?: string | null | undefined;
|
|
203
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesCreateFromBrief">;
|
|
204
|
+
export declare const createFromWebsite: (input: {
|
|
205
|
+
readonly url: string;
|
|
206
|
+
readonly name?: string | null | undefined;
|
|
207
|
+
readonly namespaceId?: string | null | undefined;
|
|
208
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesCreateFromWebsite">;
|
|
209
|
+
export declare const addEntry: (input: {
|
|
224
210
|
readonly id: string;
|
|
225
|
-
|
|
226
|
-
|
|
211
|
+
readonly entryPath: string;
|
|
212
|
+
readonly name: string;
|
|
213
|
+
readonly slug: string;
|
|
214
|
+
readonly description?: string | null | undefined;
|
|
215
|
+
readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
|
|
216
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesAddEntry">;
|
|
217
|
+
export declare const deleteProject: (input: {
|
|
227
218
|
readonly id: string;
|
|
228
|
-
|
|
229
|
-
|
|
219
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDeleteProject">;
|
|
220
|
+
export declare const openWorkspace: (input: {
|
|
221
|
+
readonly id: string;
|
|
222
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesOpenWorkspace">;
|
|
230
223
|
export declare const patchWorkspace: (input: {
|
|
231
224
|
readonly id: string;
|
|
232
225
|
readonly expectedRevision: string;
|
|
@@ -235,6 +228,10 @@ export declare const patchWorkspace: (input: {
|
|
|
235
228
|
readonly content: string | null;
|
|
236
229
|
}[];
|
|
237
230
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesPatchWorkspace">;
|
|
231
|
+
export declare const diffWorkspace: (input: {
|
|
232
|
+
readonly id: string;
|
|
233
|
+
readonly expectedRevision: string;
|
|
234
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDiffWorkspace">;
|
|
238
235
|
export declare const putWorkspaceAsset: (input: {
|
|
239
236
|
readonly id: string;
|
|
240
237
|
readonly expectedRevision: string;
|
|
@@ -250,35 +247,21 @@ export declare const resolveWorkspaceConflict: (input: {
|
|
|
250
247
|
readonly content: string | null;
|
|
251
248
|
};
|
|
252
249
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesResolveWorkspaceConflict">;
|
|
253
|
-
export declare const
|
|
254
|
-
readonly id: string;
|
|
255
|
-
readonly expectedRevision: string;
|
|
256
|
-
readonly resource: {
|
|
257
|
-
readonly resourceId: string;
|
|
258
|
-
readonly name: string;
|
|
259
|
-
readonly files: readonly {
|
|
260
|
-
readonly path: string;
|
|
261
|
-
readonly mediaType: string;
|
|
262
|
-
readonly contentBase64: string;
|
|
263
|
-
}[];
|
|
264
|
-
};
|
|
265
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesAttachWorkspaceResource">;
|
|
266
|
-
export declare const removeWorkspaceResource: (input: {
|
|
250
|
+
export declare const saveWorkspace: (input: {
|
|
267
251
|
readonly id: string;
|
|
268
|
-
readonly resourceId: string;
|
|
269
252
|
readonly expectedRevision: string;
|
|
270
|
-
|
|
253
|
+
readonly expectedHead: string;
|
|
254
|
+
readonly message: string;
|
|
255
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesSaveWorkspace">;
|
|
271
256
|
export declare const restoreWorkspace: (input: {
|
|
272
257
|
readonly id: string;
|
|
273
258
|
readonly expectedRevision: string;
|
|
274
259
|
readonly commit: string;
|
|
275
260
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesRestoreWorkspace">;
|
|
276
|
-
export declare const
|
|
261
|
+
export declare const workspaceHistory: (input: {
|
|
277
262
|
readonly id: string;
|
|
278
|
-
readonly
|
|
279
|
-
|
|
280
|
-
readonly message: string;
|
|
281
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesSaveWorkspace">;
|
|
263
|
+
readonly limit?: number | null | undefined;
|
|
264
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesWorkspaceHistory">;
|
|
282
265
|
export declare const checkWorkspace: (input: {
|
|
283
266
|
readonly id: string;
|
|
284
267
|
readonly expectedRevision: string;
|
|
@@ -376,11 +359,28 @@ export declare const getInputContract: (input: {
|
|
|
376
359
|
readonly id: string;
|
|
377
360
|
readonly inputContractId: string;
|
|
378
361
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetInputContract">;
|
|
379
|
-
export declare const
|
|
362
|
+
export declare const getGitRepository: (input: {
|
|
363
|
+
readonly id: string;
|
|
364
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetGitRepository">;
|
|
365
|
+
export declare const issueGitCredential: (input: {
|
|
366
|
+
readonly id: string;
|
|
367
|
+
readonly scope: "read" | "write";
|
|
368
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesIssueGitCredential">;
|
|
369
|
+
export declare const attachWorkspaceResource: (input: {
|
|
380
370
|
readonly id: string;
|
|
381
371
|
readonly expectedRevision: string;
|
|
382
|
-
|
|
383
|
-
|
|
372
|
+
readonly resource: {
|
|
373
|
+
readonly resourceId: string;
|
|
374
|
+
readonly name: string;
|
|
375
|
+
readonly files: readonly {
|
|
376
|
+
readonly path: string;
|
|
377
|
+
readonly mediaType: string;
|
|
378
|
+
readonly contentBase64: string;
|
|
379
|
+
}[];
|
|
380
|
+
};
|
|
381
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesAttachWorkspaceResource">;
|
|
382
|
+
export declare const removeWorkspaceResource: (input: {
|
|
384
383
|
readonly id: string;
|
|
385
|
-
readonly
|
|
386
|
-
|
|
384
|
+
readonly resourceId: string;
|
|
385
|
+
readonly expectedRevision: string;
|
|
386
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesRemoveWorkspaceResource">;
|
package/dist/effect/templates.js
CHANGED
|
@@ -47,32 +47,30 @@ var templates_exports = /* @__PURE__ */ __exportAll({
|
|
|
47
47
|
const make = /* @__PURE__ */ forGroup(TemplatesGroup);
|
|
48
48
|
const list = /* @__PURE__ */ make("templatesList");
|
|
49
49
|
const create = /* @__PURE__ */ make("templatesCreate");
|
|
50
|
-
const createFromWebsite = /* @__PURE__ */ make("templatesCreateFromWebsite");
|
|
51
|
-
const suggestStarters = /* @__PURE__ */ make("templatesSuggestStarters");
|
|
52
|
-
const createFromBrief = /* @__PURE__ */ make("templatesCreateFromBrief");
|
|
53
|
-
const addEntry = /* @__PURE__ */ make("templatesAddEntry");
|
|
54
50
|
const listFamilies = /* @__PURE__ */ make("templatesListFamilies");
|
|
55
51
|
const createFamily = /* @__PURE__ */ make("templatesCreateFamily");
|
|
56
52
|
const getFamily = /* @__PURE__ */ make("templatesGetFamily");
|
|
57
|
-
const deleteFamily = /* @__PURE__ */ make("templatesDeleteFamily");
|
|
58
53
|
const renameFamily = /* @__PURE__ */ make("templatesRenameFamily");
|
|
54
|
+
const deleteFamily = /* @__PURE__ */ make("templatesDeleteFamily");
|
|
59
55
|
const createFamilyFromTemplate = /* @__PURE__ */ make("templatesCreateFamilyFromTemplate");
|
|
60
56
|
const attachFamilyMember = /* @__PURE__ */ make("templatesAttachFamilyMember");
|
|
61
57
|
const detachFamilyMember = /* @__PURE__ */ make("templatesDetachFamilyMember");
|
|
62
58
|
const getById = /* @__PURE__ */ make("templatesGetById");
|
|
59
|
+
const update = /* @__PURE__ */ make("templatesUpdate");
|
|
63
60
|
const deleteTemplate = /* @__PURE__ */ make("templatesDelete");
|
|
61
|
+
const suggestStarters = /* @__PURE__ */ make("templatesSuggestStarters");
|
|
62
|
+
const createFromBrief = /* @__PURE__ */ make("templatesCreateFromBrief");
|
|
63
|
+
const createFromWebsite = /* @__PURE__ */ make("templatesCreateFromWebsite");
|
|
64
|
+
const addEntry = /* @__PURE__ */ make("templatesAddEntry");
|
|
64
65
|
const deleteProject = /* @__PURE__ */ make("templatesDeleteProject");
|
|
65
|
-
const update = /* @__PURE__ */ make("templatesUpdate");
|
|
66
66
|
const openWorkspace = /* @__PURE__ */ make("templatesOpenWorkspace");
|
|
67
|
-
const getGitRepository = /* @__PURE__ */ make("templatesGetGitRepository");
|
|
68
|
-
const issueGitCredential = /* @__PURE__ */ make("templatesIssueGitCredential");
|
|
69
67
|
const patchWorkspace = /* @__PURE__ */ make("templatesPatchWorkspace");
|
|
68
|
+
const diffWorkspace = /* @__PURE__ */ make("templatesDiffWorkspace");
|
|
70
69
|
const putWorkspaceAsset = /* @__PURE__ */ make("templatesPutWorkspaceAsset");
|
|
71
70
|
const resolveWorkspaceConflict = /* @__PURE__ */ make("templatesResolveWorkspaceConflict");
|
|
72
|
-
const attachWorkspaceResource = /* @__PURE__ */ make("templatesAttachWorkspaceResource");
|
|
73
|
-
const removeWorkspaceResource = /* @__PURE__ */ make("templatesRemoveWorkspaceResource");
|
|
74
|
-
const restoreWorkspace = /* @__PURE__ */ make("templatesRestoreWorkspace");
|
|
75
71
|
const saveWorkspace = /* @__PURE__ */ make("templatesSaveWorkspace");
|
|
72
|
+
const restoreWorkspace = /* @__PURE__ */ make("templatesRestoreWorkspace");
|
|
73
|
+
const workspaceHistory = /* @__PURE__ */ make("templatesWorkspaceHistory");
|
|
76
74
|
const checkWorkspace = /* @__PURE__ */ make("templatesCheckWorkspace");
|
|
77
75
|
const renderWorkspaceFixture = /* @__PURE__ */ make("templatesRenderWorkspaceFixture");
|
|
78
76
|
const publish = /* @__PURE__ */ make("templatesPublish");
|
|
@@ -80,8 +78,10 @@ const getPublication = /* @__PURE__ */ make("templatesGetPublication");
|
|
|
80
78
|
const renderPublication = /* @__PURE__ */ make("templatesRenderPublication");
|
|
81
79
|
const listInputContracts = /* @__PURE__ */ make("templatesListInputContracts");
|
|
82
80
|
const getInputContract = /* @__PURE__ */ make("templatesGetInputContract");
|
|
83
|
-
const
|
|
84
|
-
const
|
|
81
|
+
const getGitRepository = /* @__PURE__ */ make("templatesGetGitRepository");
|
|
82
|
+
const issueGitCredential = /* @__PURE__ */ make("templatesIssueGitCredential");
|
|
83
|
+
const attachWorkspaceResource = /* @__PURE__ */ make("templatesAttachWorkspaceResource");
|
|
84
|
+
const removeWorkspaceResource = /* @__PURE__ */ make("templatesRemoveWorkspaceResource");
|
|
85
85
|
export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, addEntry, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, createFromBrief, createFromWebsite, deleteTemplate as delete, deleteFamily, deleteProject, detachFamilyMember, diffWorkspace, getById, getFamily, getGitRepository, getInputContract, getPublication, issueGitCredential, list, listFamilies, listInputContracts, openWorkspace, patchWorkspace, publish, putWorkspaceAsset, removeWorkspaceResource, renameFamily, renderPublication, renderWorkspaceFixture, resolveWorkspaceConflict, restoreWorkspace, saveWorkspace, suggestStarters, templates_exports, update, workspaceHistory };
|
|
86
86
|
|
|
87
87
|
//# sourceMappingURL=templates.js.map
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export declare const list: (input: {
|
|
2
2
|
readonly id: string;
|
|
3
3
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicFormsList">;
|
|
4
|
-
export declare const get: (input: {
|
|
5
|
-
readonly id: string;
|
|
6
|
-
readonly formId: string;
|
|
7
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicFormsGet">;
|
|
8
4
|
export declare const create: (input: {
|
|
9
5
|
readonly id: string;
|
|
10
6
|
readonly allowedOrigins: readonly string[];
|
|
@@ -14,6 +10,10 @@ export declare const create: (input: {
|
|
|
14
10
|
readonly successMessage: string;
|
|
15
11
|
readonly redirectUrl: string | null;
|
|
16
12
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicFormsCreate">;
|
|
13
|
+
export declare const get: (input: {
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly formId: string;
|
|
16
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicFormsGet">;
|
|
17
17
|
export declare const update: (input: {
|
|
18
18
|
readonly id: string;
|
|
19
19
|
readonly formId: string;
|
|
@@ -11,8 +11,8 @@ var topic_forms_exports = /* @__PURE__ */ __exportAll({
|
|
|
11
11
|
});
|
|
12
12
|
const make = /* @__PURE__ */ forGroup(TopicFormsGroup);
|
|
13
13
|
const list = /* @__PURE__ */ make("topicFormsList");
|
|
14
|
-
const get = /* @__PURE__ */ make("topicFormsGet");
|
|
15
14
|
const create = /* @__PURE__ */ make("topicFormsCreate");
|
|
15
|
+
const get = /* @__PURE__ */ make("topicFormsGet");
|
|
16
16
|
const update = /* @__PURE__ */ make("topicFormsUpdate");
|
|
17
17
|
const remove = /* @__PURE__ */ make("topicFormsRemove");
|
|
18
18
|
export { create, get, list, remove, topic_forms_exports, update };
|
package/dist/effect/topics.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export declare const list: (input?: {
|
|
2
2
|
readonly namespaceId?: string | undefined;
|
|
3
3
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsList">;
|
|
4
|
-
export declare const get: (input: {
|
|
5
|
-
readonly id: string;
|
|
6
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsGet">;
|
|
7
4
|
export declare const create: (input: {
|
|
8
5
|
readonly name: string;
|
|
9
6
|
readonly description?: string | null | undefined;
|
|
@@ -13,6 +10,17 @@ export declare const create: (input: {
|
|
|
13
10
|
readonly replyMailboxId?: string | null | undefined;
|
|
14
11
|
readonly templateId?: string | null | undefined;
|
|
15
12
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsCreate">;
|
|
13
|
+
export declare const checkSubscription: (input: {
|
|
14
|
+
readonly contactId?: string | undefined;
|
|
15
|
+
readonly email?: string | undefined;
|
|
16
|
+
readonly phone?: string | undefined;
|
|
17
|
+
readonly namespaceId?: string | undefined;
|
|
18
|
+
readonly channel: "email" | "sms" | "whatsapp";
|
|
19
|
+
readonly topicIds?: string | undefined;
|
|
20
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsCheckSubscription">;
|
|
21
|
+
export declare const get: (input: {
|
|
22
|
+
readonly id: string;
|
|
23
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsGet">;
|
|
16
24
|
export declare const update: (input: {
|
|
17
25
|
readonly id: string;
|
|
18
26
|
readonly name?: string | null | undefined;
|
|
@@ -84,11 +92,3 @@ export declare const setSubscriptions: (input: {
|
|
|
84
92
|
readonly status: "subscribed" | "unsubscribed";
|
|
85
93
|
readonly source?: string | null | undefined;
|
|
86
94
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsSetSubscriptions">;
|
|
87
|
-
export declare const checkSubscription: (input: {
|
|
88
|
-
readonly contactId?: string | undefined;
|
|
89
|
-
readonly email?: string | undefined;
|
|
90
|
-
readonly phone?: string | undefined;
|
|
91
|
-
readonly namespaceId?: string | undefined;
|
|
92
|
-
readonly channel: "email" | "sms" | "whatsapp";
|
|
93
|
-
readonly topicIds?: string | undefined;
|
|
94
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"topicsCheckSubscription">;
|
package/dist/effect/topics.js
CHANGED
|
@@ -15,14 +15,14 @@ var topics_exports = /* @__PURE__ */ __exportAll({
|
|
|
15
15
|
});
|
|
16
16
|
const make = /* @__PURE__ */ forGroup(TopicsGroup);
|
|
17
17
|
const list = /* @__PURE__ */ make("topicsList");
|
|
18
|
-
const get = /* @__PURE__ */ make("topicsGet");
|
|
19
18
|
const create = /* @__PURE__ */ make("topicsCreate");
|
|
19
|
+
const checkSubscription = /* @__PURE__ */ make("topicsCheckSubscription");
|
|
20
|
+
const get = /* @__PURE__ */ make("topicsGet");
|
|
20
21
|
const update = /* @__PURE__ */ make("topicsUpdate");
|
|
21
22
|
const remove = /* @__PURE__ */ make("topicsRemove");
|
|
22
23
|
const setDefault = /* @__PURE__ */ make("topicsSetDefault");
|
|
23
24
|
const listSubscriptions = /* @__PURE__ */ make("topicsListSubscriptions");
|
|
24
25
|
const setSubscriptions = /* @__PURE__ */ make("topicsSetSubscriptions");
|
|
25
|
-
const checkSubscription = /* @__PURE__ */ make("topicsCheckSubscription");
|
|
26
26
|
export { checkSubscription, create, get, list, listSubscriptions, remove, setDefault, setSubscriptions, topics_exports, update };
|
|
27
27
|
|
|
28
28
|
//# sourceMappingURL=topics.js.map
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
export { CreateWebhookPayload as CreatePayload, TestWebhookPayload as TestPayload, UpdateWebhookPayload as UpdatePayload, } from "./generated/shared";
|
|
2
|
+
export declare const create: (input: {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly url: string;
|
|
5
|
+
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
6
|
+
readonly channels?: readonly ("email" | "sms" | "whatsapp")[] | null | undefined;
|
|
7
|
+
readonly mailboxIds?: readonly string[] | null | undefined;
|
|
8
|
+
readonly namespaceId?: string | null | undefined;
|
|
9
|
+
readonly headers?: {
|
|
10
|
+
readonly [x: string]: string | undefined;
|
|
11
|
+
} | null | undefined;
|
|
12
|
+
readonly status?: "active" | "disabled" | null | undefined;
|
|
13
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksCreate">;
|
|
2
14
|
export declare const list: ((input?: {
|
|
3
15
|
readonly limit?: number | null | undefined;
|
|
4
16
|
readonly cursor?: string | undefined;
|
|
@@ -66,27 +78,9 @@ export declare const list: ((input?: {
|
|
|
66
78
|
};
|
|
67
79
|
}, import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
68
80
|
};
|
|
69
|
-
export declare const create: (input: {
|
|
70
|
-
readonly name: string;
|
|
71
|
-
readonly url: string;
|
|
72
|
-
readonly eventTypes: readonly ("contact.consent_changed" | "contact.created" | "contact.deleted" | "contact.resubscribed" | "contact.subscribed" | "contact.unsubscribed" | "contact.updated" | "conversation.archived" | "conversation.created" | "conversation.updated" | "domain.updated" | "domain.warming.updated" | "email.sending.paused" | "email.sending.resumed" | "flow.registration.updated" | "journey.webhook" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.delivered" | "mailbox.message.discarded" | "mailbox.message.failed" | "mailbox.message.quarantined" | "mailbox.message.read" | "mailbox.message.received" | "mailbox.message.released" | "mailbox.message.sent" | "message.bounced" | "message.clicked" | "message.complained" | "message.delivered" | "message.failed" | "message.opened" | "message.read" | "message.received" | "message.sent" | "template.registration.updated" | "webhook.created" | "webhook.deleted" | "webhook.test" | "webhook.updated" | "whatsapp.number.connected")[];
|
|
73
|
-
readonly channels?: readonly ("email" | "sms" | "whatsapp")[] | null | undefined;
|
|
74
|
-
readonly mailboxIds?: readonly string[] | null | undefined;
|
|
75
|
-
readonly namespaceId?: string | null | undefined;
|
|
76
|
-
readonly headers?: {
|
|
77
|
-
readonly [x: string]: string | undefined;
|
|
78
|
-
} | null | undefined;
|
|
79
|
-
readonly status?: "active" | "disabled" | null | undefined;
|
|
80
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksCreate">;
|
|
81
|
-
export declare const getSecret: (input: {
|
|
82
|
-
readonly id: string;
|
|
83
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGetSecret">;
|
|
84
81
|
export declare const get: (input: {
|
|
85
82
|
readonly id: string;
|
|
86
83
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGet">;
|
|
87
|
-
export declare const remove: (input: {
|
|
88
|
-
readonly id: string;
|
|
89
|
-
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksRemove">;
|
|
90
84
|
export declare const update: (input: {
|
|
91
85
|
readonly id: string;
|
|
92
86
|
readonly name?: string | null | undefined;
|
|
@@ -100,6 +94,9 @@ export declare const update: (input: {
|
|
|
100
94
|
} | null | undefined;
|
|
101
95
|
readonly status?: "active" | "disabled" | null | undefined;
|
|
102
96
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksUpdate">;
|
|
97
|
+
export declare const remove: (input: {
|
|
98
|
+
readonly id: string;
|
|
99
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksRemove">;
|
|
103
100
|
export declare const test: (input: {
|
|
104
101
|
readonly id: string;
|
|
105
102
|
readonly data?: {
|
|
@@ -219,3 +216,6 @@ export declare const retryDelivery: (input: {
|
|
|
219
216
|
export declare const regenerateSecret: (input: {
|
|
220
217
|
readonly id: string;
|
|
221
218
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksRegenerateSecret">;
|
|
219
|
+
export declare const getSecret: (input: {
|
|
220
|
+
readonly id: string;
|
|
221
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"webhooksGetSecret">;
|
package/dist/effect/webhooks.js
CHANGED
|
@@ -20,17 +20,17 @@ var webhooks_exports = /* @__PURE__ */ __exportAll({
|
|
|
20
20
|
update: () => update
|
|
21
21
|
});
|
|
22
22
|
const make = /* @__PURE__ */ forGroup(WebhooksGroup);
|
|
23
|
-
const list = /* @__PURE__ */ make("webhooksList");
|
|
24
23
|
const create = /* @__PURE__ */ make("webhooksCreate");
|
|
25
|
-
const
|
|
24
|
+
const list = /* @__PURE__ */ make("webhooksList");
|
|
26
25
|
const get = /* @__PURE__ */ make("webhooksGet");
|
|
27
|
-
const remove = /* @__PURE__ */ make("webhooksRemove");
|
|
28
26
|
const update = /* @__PURE__ */ make("webhooksUpdate");
|
|
27
|
+
const remove = /* @__PURE__ */ make("webhooksRemove");
|
|
29
28
|
const test = /* @__PURE__ */ make("webhooksTest");
|
|
30
29
|
const getLogs = /* @__PURE__ */ make("webhooksGetLogs");
|
|
31
30
|
const getStats = /* @__PURE__ */ make("webhooksGetStats");
|
|
32
31
|
const retryDelivery = /* @__PURE__ */ make("webhooksRetryDelivery");
|
|
33
32
|
const regenerateSecret = /* @__PURE__ */ make("webhooksRegenerateSecret");
|
|
33
|
+
const getSecret = /* @__PURE__ */ make("webhooksGetSecret");
|
|
34
34
|
export { CreateWebhookPayload as CreatePayload, TestWebhookPayload as TestPayload, UpdateWebhookPayload as UpdatePayload, create, get, getLogs, getSecret, getStats, list, regenerateSecret, remove, retryDelivery, test, update, webhooks_exports };
|
|
35
35
|
|
|
36
36
|
//# sourceMappingURL=webhooks.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const create: (input: {
|
|
2
|
+
readonly projectId: string;
|
|
3
|
+
readonly handle: string;
|
|
4
|
+
readonly categories: readonly ("APPOINTMENT_BOOKING" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "LEAD_GENERATION" | "OTHER" | "SIGN_IN" | "SIGN_UP" | "SURVEY")[];
|
|
5
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsCreate">;
|
|
6
|
+
export declare const list: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsList">;
|
|
7
|
+
export declare const get: (input: {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsGet">;
|
|
10
|
+
export declare const recordVersion: (input: {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly commitSha: string;
|
|
13
|
+
readonly expectedWorkspaceRevision: string;
|
|
14
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsRecordVersion">;
|
|
15
|
+
export declare const listVersions: (input: {
|
|
16
|
+
readonly id: string;
|
|
17
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsListVersions">;
|
|
18
|
+
export declare const register: (input: {
|
|
19
|
+
readonly id: string;
|
|
20
|
+
readonly businessAccountId?: string | undefined;
|
|
21
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsRegister">;
|
|
22
|
+
export declare const listRegistrations: (input: {
|
|
23
|
+
readonly id: string;
|
|
24
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsListRegistrations">;
|
|
25
|
+
export declare const rotateEncryptionKey: (input?: {
|
|
26
|
+
readonly businessAccountId?: string | undefined;
|
|
27
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsRotateEncryptionKey">;
|
|
28
|
+
export declare const setEndpoint: (input: {
|
|
29
|
+
readonly id: string;
|
|
30
|
+
readonly url: string;
|
|
31
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsSetEndpoint">;
|
|
32
|
+
export declare const rotateEndpointSecret: (input: {
|
|
33
|
+
readonly id: string;
|
|
34
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappFlowsRotateEndpointSecret">;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { forGroup } from "./internal/operation.js";
|
|
3
|
+
import { WhatsAppFlowsGroup } from "./generated/whats-app-flows.js";
|
|
4
|
+
// src/effect/whatsapp-flows.ts
|
|
5
|
+
var whatsapp_flows_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
create: () => create,
|
|
7
|
+
get: () => get,
|
|
8
|
+
list: () => list,
|
|
9
|
+
listRegistrations: () => listRegistrations,
|
|
10
|
+
listVersions: () => listVersions,
|
|
11
|
+
recordVersion: () => recordVersion,
|
|
12
|
+
register: () => register,
|
|
13
|
+
rotateEncryptionKey: () => rotateEncryptionKey,
|
|
14
|
+
rotateEndpointSecret: () => rotateEndpointSecret,
|
|
15
|
+
setEndpoint: () => setEndpoint
|
|
16
|
+
});
|
|
17
|
+
const make = /* @__PURE__ */ forGroup(WhatsAppFlowsGroup);
|
|
18
|
+
const create = /* @__PURE__ */ make("whatsappFlowsCreate");
|
|
19
|
+
const list = /* @__PURE__ */ make("whatsappFlowsList");
|
|
20
|
+
const get = /* @__PURE__ */ make("whatsappFlowsGet");
|
|
21
|
+
const recordVersion = /* @__PURE__ */ make("whatsappFlowsRecordVersion");
|
|
22
|
+
const listVersions = /* @__PURE__ */ make("whatsappFlowsListVersions");
|
|
23
|
+
const register = /* @__PURE__ */ make("whatsappFlowsRegister");
|
|
24
|
+
const listRegistrations = /* @__PURE__ */ make("whatsappFlowsListRegistrations");
|
|
25
|
+
const rotateEncryptionKey = /* @__PURE__ */ make("whatsappFlowsRotateEncryptionKey");
|
|
26
|
+
const setEndpoint = /* @__PURE__ */ make("whatsappFlowsSetEndpoint");
|
|
27
|
+
const rotateEndpointSecret = /* @__PURE__ */ make("whatsappFlowsRotateEndpointSecret");
|
|
28
|
+
export { create, get, list, listRegistrations, listVersions, recordVersion, register, rotateEncryptionKey, rotateEndpointSecret, setEndpoint, whatsapp_flows_exports };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=whatsapp-flows.js.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const create: (input: {
|
|
2
|
+
readonly namespaceId: string;
|
|
3
|
+
readonly redirectUrl?: string | null | undefined;
|
|
4
|
+
readonly metadata?: {
|
|
5
|
+
readonly [x: string]: string | undefined;
|
|
6
|
+
} | null | undefined;
|
|
7
|
+
readonly expiresAt?: string | null | undefined;
|
|
8
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetupLinksCreate">;
|
|
9
|
+
export declare const list: ((input?: {
|
|
10
|
+
readonly limit?: number | null | undefined;
|
|
11
|
+
readonly cursor?: string | undefined;
|
|
12
|
+
readonly namespaceId?: string | undefined;
|
|
13
|
+
readonly status?: "completed" | "expired" | "pending" | "revoked" | undefined;
|
|
14
|
+
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetupLinksList">) & {
|
|
15
|
+
readonly pages: (input?: {
|
|
16
|
+
readonly limit?: number | null | undefined;
|
|
17
|
+
readonly cursor?: string | undefined;
|
|
18
|
+
readonly namespaceId?: string | undefined;
|
|
19
|
+
readonly status?: "completed" | "expired" | "pending" | "revoked" | undefined;
|
|
20
|
+
} | undefined) => import("effect/Stream").Stream<{
|
|
21
|
+
readonly items: readonly {
|
|
22
|
+
readonly id: string & import("effect/Brand").Brand<"WhatsAppSetupLinkId">;
|
|
23
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
24
|
+
readonly namespaceId: string & import("effect/Brand").Brand<"NamespaceId">;
|
|
25
|
+
readonly status: "completed" | "expired" | "pending" | "revoked";
|
|
26
|
+
readonly redirectUrl: string | null;
|
|
27
|
+
readonly metadata: {
|
|
28
|
+
readonly [x: string]: string;
|
|
29
|
+
};
|
|
30
|
+
readonly expiresAt: string;
|
|
31
|
+
readonly businessAccountId: (string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">) | null;
|
|
32
|
+
readonly completedAt: string | null;
|
|
33
|
+
readonly revokedAt: string | null;
|
|
34
|
+
readonly createdAt: string;
|
|
35
|
+
readonly updatedAt: string;
|
|
36
|
+
}[];
|
|
37
|
+
readonly nextCursor: string | null;
|
|
38
|
+
}, import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
39
|
+
readonly items: (input?: {
|
|
40
|
+
readonly limit?: number | null | undefined;
|
|
41
|
+
readonly cursor?: string | undefined;
|
|
42
|
+
readonly namespaceId?: string | undefined;
|
|
43
|
+
readonly status?: "completed" | "expired" | "pending" | "revoked" | undefined;
|
|
44
|
+
} | undefined) => import("effect/Stream").Stream<{
|
|
45
|
+
readonly id: string & import("effect/Brand").Brand<"WhatsAppSetupLinkId">;
|
|
46
|
+
readonly organizationId: string & import("effect/Brand").Brand<"OrganizationId">;
|
|
47
|
+
readonly namespaceId: string & import("effect/Brand").Brand<"NamespaceId">;
|
|
48
|
+
readonly status: "completed" | "expired" | "pending" | "revoked";
|
|
49
|
+
readonly redirectUrl: string | null;
|
|
50
|
+
readonly metadata: {
|
|
51
|
+
readonly [x: string]: string;
|
|
52
|
+
};
|
|
53
|
+
readonly expiresAt: string;
|
|
54
|
+
readonly businessAccountId: (string & import("effect/Brand").Brand<"WhatsAppBusinessAccountId">) | null;
|
|
55
|
+
readonly completedAt: string | null;
|
|
56
|
+
readonly revokedAt: string | null;
|
|
57
|
+
readonly createdAt: string;
|
|
58
|
+
readonly updatedAt: string;
|
|
59
|
+
}, import("./errors").FlagDisabledError | import("./errors").ForbiddenError | import("./errors").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors").InternalError | import("./errors").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors").UnauthorizedError | import("./errors").ValidationError, import("./client").Service>;
|
|
60
|
+
};
|
|
61
|
+
export declare const get: (input: {
|
|
62
|
+
readonly linkId: string;
|
|
63
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetupLinksGet">;
|
|
64
|
+
export declare const revoke: (input: {
|
|
65
|
+
readonly linkId: string;
|
|
66
|
+
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"whatsappSetupLinksRevoke">;
|