samva 0.43.3 → 0.45.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.
Files changed (103) hide show
  1. package/AGENTS.md +3 -0
  2. package/README.md +4 -0
  3. package/dist/client/sdk.gen.d.ts +308 -2
  4. package/dist/client/sdk.gen.js +937 -2
  5. package/dist/client/types.gen.d.ts +2294 -54
  6. package/dist/effect/agents.d.ts +86 -86
  7. package/dist/effect/agents.js +2 -2
  8. package/dist/effect/api-keys.d.ts +36 -36
  9. package/dist/effect/api-keys.js +2 -2
  10. package/dist/effect/attachments.d.ts +3 -3
  11. package/dist/effect/attachments.js +1 -1
  12. package/dist/effect/campaigns.d.ts +250 -250
  13. package/dist/effect/campaigns.js +3 -3
  14. package/dist/effect/categories.d.ts +23 -5
  15. package/dist/effect/categories.js +11 -20
  16. package/dist/effect/contact-groups.d.ts +44 -44
  17. package/dist/effect/contact-groups.js +3 -3
  18. package/dist/effect/contacts.d.ts +3 -3
  19. package/dist/effect/contacts.js +1 -1
  20. package/dist/effect/conversations.d.ts +53 -53
  21. package/dist/effect/conversations.js +1 -1
  22. package/dist/effect/email.d.ts +99 -97
  23. package/dist/effect/email.js +21 -21
  24. package/dist/effect/errors.d.ts +1 -1
  25. package/dist/effect/errors.js +2 -2
  26. package/dist/effect/extension-installations.d.ts +6 -6
  27. package/dist/effect/extension-installations.js +1 -1
  28. package/dist/effect/generated/campaigns.js +2 -2
  29. package/dist/effect/generated/email.d.ts +7 -0
  30. package/dist/effect/generated/email.js +8 -9
  31. package/dist/effect/generated/index.d.ts +9 -1
  32. package/dist/effect/generated/journeys.d.ts +1 -3
  33. package/dist/effect/generated/journeys.js +2 -6
  34. package/dist/effect/generated/mailboxes.d.ts +14 -14
  35. package/dist/effect/generated/mailboxes.js +2 -0
  36. package/dist/effect/generated/messages.d.ts +1 -5
  37. package/dist/effect/generated/messages.js +2 -10
  38. package/dist/effect/generated/newsletter-issues.js +29 -29
  39. package/dist/effect/generated/organizations.js +2 -2
  40. package/dist/effect/generated/scheduled-messages.js +3 -3
  41. package/dist/effect/generated/shared.d.ts +112 -2
  42. package/dist/effect/generated/shared.js +66 -25
  43. package/dist/effect/generated/subscriptions.js +4 -4
  44. package/dist/effect/generated/template-registrations.d.ts +651 -0
  45. package/dist/effect/generated/template-registrations.js +138 -0
  46. package/dist/effect/generated/templates.d.ts +789 -6
  47. package/dist/effect/generated/templates.js +156 -54
  48. package/dist/effect/generated/whats-app-flows.d.ts +1838 -0
  49. package/dist/effect/generated/whats-app-flows.js +338 -0
  50. package/dist/effect/generated/whats-app-setup-links.d.ts +705 -0
  51. package/dist/effect/generated/whats-app-setup-links.js +150 -0
  52. package/dist/effect/generated/whats-app.d.ts +2089 -0
  53. package/dist/effect/generated/whats-app.js +633 -0
  54. package/dist/effect/generated-metadata.d.ts +257 -0
  55. package/dist/effect/generated-metadata.js +223 -48
  56. package/dist/effect/index.d.ts +4 -0
  57. package/dist/effect/index.js +6 -2
  58. package/dist/effect/mailboxes.d.ts +301 -301
  59. package/dist/effect/mailboxes.js +3 -3
  60. package/dist/effect/media.d.ts +4 -4
  61. package/dist/effect/media.js +2 -2
  62. package/dist/effect/messages.d.ts +17 -17
  63. package/dist/effect/messages.js +4 -4
  64. package/dist/effect/namespaces.d.ts +5 -5
  65. package/dist/effect/namespaces.js +1 -1
  66. package/dist/effect/newsletter-issues.d.ts +8 -8
  67. package/dist/effect/newsletter-issues.js +2 -2
  68. package/dist/effect/newsletters.d.ts +3 -3
  69. package/dist/effect/newsletters.js +1 -1
  70. package/dist/effect/organizations.d.ts +10 -10
  71. package/dist/effect/organizations.js +1 -1
  72. package/dist/effect/runtime.d.ts +2 -0
  73. package/dist/effect/runtime.js +2 -1
  74. package/dist/effect/scheduled-messages.d.ts +839 -839
  75. package/dist/effect/scheduled-messages.js +1 -1
  76. package/dist/effect/template-registrations.d.ts +12 -0
  77. package/dist/effect/template-registrations.js +16 -0
  78. package/dist/effect/templates.d.ts +66 -56
  79. package/dist/effect/templates.js +16 -12
  80. package/dist/effect/topic-forms.d.ts +4 -4
  81. package/dist/effect/topic-forms.js +1 -1
  82. package/dist/effect/topics.d.ts +11 -11
  83. package/dist/effect/topics.js +2 -2
  84. package/dist/effect/webhooks.d.ts +18 -18
  85. package/dist/effect/webhooks.js +3 -3
  86. package/dist/effect/whatsapp-flows.d.ts +34 -0
  87. package/dist/effect/whatsapp-flows.js +30 -0
  88. package/dist/effect/whatsapp-setup-links.d.ts +66 -0
  89. package/dist/effect/whatsapp-setup-links.js +18 -0
  90. package/dist/effect/whatsapp.d.ts +51 -0
  91. package/dist/effect/whatsapp.js +34 -0
  92. package/dist/index.js +2 -2
  93. package/dist/mailbox/types.d.ts +2 -1
  94. package/dist/package.js +1 -1
  95. package/dist/promises/client.d.ts +9 -1
  96. package/dist/promises/client.js +11 -3
  97. package/dist/promises/errors.gen.d.ts +38 -2
  98. package/dist/promises/errors.gen.js +160 -3
  99. package/dist/promises/index.js +2 -2
  100. package/dist/promises/types.gen.d.ts +1 -1
  101. package/dist/service-map.d.ts +923 -734
  102. package/dist/service-map.js +288 -233
  103. package/package.json +27 -11
@@ -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,19 +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 addEntry: (input: {
104
- readonly id: string;
105
- readonly entryPath: string;
106
- readonly name: string;
107
- readonly slug: string;
108
- readonly description?: string | null | undefined;
109
- readonly category?: "alert" | "marketing" | "notification" | "reminder" | "support" | "transactional" | "verification" | null | undefined;
110
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesAddEntry">;
111
98
  export declare const listFamilies: ((input?: {
112
99
  readonly limit?: number | null | undefined;
113
100
  readonly cursor?: string | undefined;
@@ -158,13 +145,13 @@ export declare const createFamily: (input: {
158
145
  export declare const getFamily: (input: {
159
146
  readonly id: string;
160
147
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetFamily">;
161
- export declare const deleteFamily: (input: {
162
- readonly id: string;
163
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDeleteFamily">;
164
148
  export declare const renameFamily: (input: {
165
149
  readonly id: string;
166
150
  readonly name: string;
167
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">;
168
155
  export declare const createFamilyFromTemplate: (input: {
169
156
  readonly templateId: string;
170
157
  readonly name: string;
@@ -180,13 +167,6 @@ export declare const detachFamilyMember: (input: {
180
167
  export declare const getById: (input: {
181
168
  readonly id: string;
182
169
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetById">;
183
- declare const deleteTemplate: (input: {
184
- readonly id: string;
185
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDelete">;
186
- export { deleteTemplate as delete };
187
- export declare const deleteProject: (input: {
188
- readonly id: string;
189
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDeleteProject">;
190
170
  export declare const update: (input: {
191
171
  readonly id: string;
192
172
  readonly data: {
@@ -207,16 +187,39 @@ export declare const update: (input: {
207
187
  readonly shared?: boolean | null | undefined;
208
188
  };
209
189
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesUpdate">;
210
- export declare const openWorkspace: (input: {
190
+ declare const deleteTemplate: (input: {
211
191
  readonly id: string;
212
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesOpenWorkspace">;
213
- export declare const getGitRepository: (input: {
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: {
214
210
  readonly id: string;
215
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetGitRepository">;
216
- export declare const issueGitCredential: (input: {
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: {
217
218
  readonly id: string;
218
- readonly scope: "read" | "write";
219
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesIssueGitCredential">;
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">;
220
223
  export declare const patchWorkspace: (input: {
221
224
  readonly id: string;
222
225
  readonly expectedRevision: string;
@@ -225,6 +228,10 @@ export declare const patchWorkspace: (input: {
225
228
  readonly content: string | null;
226
229
  }[];
227
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">;
228
235
  export declare const putWorkspaceAsset: (input: {
229
236
  readonly id: string;
230
237
  readonly expectedRevision: string;
@@ -240,35 +247,21 @@ export declare const resolveWorkspaceConflict: (input: {
240
247
  readonly content: string | null;
241
248
  };
242
249
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesResolveWorkspaceConflict">;
243
- export declare const attachWorkspaceResource: (input: {
244
- readonly id: string;
245
- readonly expectedRevision: string;
246
- readonly resource: {
247
- readonly resourceId: string;
248
- readonly name: string;
249
- readonly files: readonly {
250
- readonly path: string;
251
- readonly mediaType: string;
252
- readonly contentBase64: string;
253
- }[];
254
- };
255
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesAttachWorkspaceResource">;
256
- export declare const removeWorkspaceResource: (input: {
250
+ export declare const saveWorkspace: (input: {
257
251
  readonly id: string;
258
- readonly resourceId: string;
259
252
  readonly expectedRevision: string;
260
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesRemoveWorkspaceResource">;
253
+ readonly expectedHead: string;
254
+ readonly message: string;
255
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesSaveWorkspace">;
261
256
  export declare const restoreWorkspace: (input: {
262
257
  readonly id: string;
263
258
  readonly expectedRevision: string;
264
259
  readonly commit: string;
265
260
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesRestoreWorkspace">;
266
- export declare const saveWorkspace: (input: {
261
+ export declare const workspaceHistory: (input: {
267
262
  readonly id: string;
268
- readonly expectedRevision: string;
269
- readonly expectedHead: string;
270
- readonly message: string;
271
- }, 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">;
272
265
  export declare const checkWorkspace: (input: {
273
266
  readonly id: string;
274
267
  readonly expectedRevision: string;
@@ -366,11 +359,28 @@ export declare const getInputContract: (input: {
366
359
  readonly id: string;
367
360
  readonly inputContractId: string;
368
361
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesGetInputContract">;
369
- export declare const diffWorkspace: (input: {
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: {
370
370
  readonly id: string;
371
371
  readonly expectedRevision: string;
372
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesDiffWorkspace">;
373
- export declare const workspaceHistory: (input: {
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: {
374
383
  readonly id: string;
375
- readonly limit?: number | null | undefined;
376
- }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesWorkspaceHistory">;
384
+ readonly resourceId: string;
385
+ readonly expectedRevision: string;
386
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"templatesRemoveWorkspaceResource">;
@@ -13,6 +13,7 @@ var templates_exports = /* @__PURE__ */ __exportAll({
13
13
  create: () => create,
14
14
  createFamily: () => createFamily,
15
15
  createFamilyFromTemplate: () => createFamilyFromTemplate,
16
+ createFromBrief: () => createFromBrief,
16
17
  createFromWebsite: () => createFromWebsite,
17
18
  delete: () => deleteTemplate,
18
19
  deleteFamily: () => deleteFamily,
@@ -39,36 +40,37 @@ var templates_exports = /* @__PURE__ */ __exportAll({
39
40
  resolveWorkspaceConflict: () => resolveWorkspaceConflict,
40
41
  restoreWorkspace: () => restoreWorkspace,
41
42
  saveWorkspace: () => saveWorkspace,
43
+ suggestStarters: () => suggestStarters,
42
44
  update: () => update,
43
45
  workspaceHistory: () => workspaceHistory
44
46
  });
45
47
  const make = /* @__PURE__ */ forGroup(TemplatesGroup);
46
48
  const list = /* @__PURE__ */ make("templatesList");
47
49
  const create = /* @__PURE__ */ make("templatesCreate");
48
- const createFromWebsite = /* @__PURE__ */ make("templatesCreateFromWebsite");
49
- const addEntry = /* @__PURE__ */ make("templatesAddEntry");
50
50
  const listFamilies = /* @__PURE__ */ make("templatesListFamilies");
51
51
  const createFamily = /* @__PURE__ */ make("templatesCreateFamily");
52
52
  const getFamily = /* @__PURE__ */ make("templatesGetFamily");
53
- const deleteFamily = /* @__PURE__ */ make("templatesDeleteFamily");
54
53
  const renameFamily = /* @__PURE__ */ make("templatesRenameFamily");
54
+ const deleteFamily = /* @__PURE__ */ make("templatesDeleteFamily");
55
55
  const createFamilyFromTemplate = /* @__PURE__ */ make("templatesCreateFamilyFromTemplate");
56
56
  const attachFamilyMember = /* @__PURE__ */ make("templatesAttachFamilyMember");
57
57
  const detachFamilyMember = /* @__PURE__ */ make("templatesDetachFamilyMember");
58
58
  const getById = /* @__PURE__ */ make("templatesGetById");
59
+ const update = /* @__PURE__ */ make("templatesUpdate");
59
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");
60
65
  const deleteProject = /* @__PURE__ */ make("templatesDeleteProject");
61
- const update = /* @__PURE__ */ make("templatesUpdate");
62
66
  const openWorkspace = /* @__PURE__ */ make("templatesOpenWorkspace");
63
- const getGitRepository = /* @__PURE__ */ make("templatesGetGitRepository");
64
- const issueGitCredential = /* @__PURE__ */ make("templatesIssueGitCredential");
65
67
  const patchWorkspace = /* @__PURE__ */ make("templatesPatchWorkspace");
68
+ const diffWorkspace = /* @__PURE__ */ make("templatesDiffWorkspace");
66
69
  const putWorkspaceAsset = /* @__PURE__ */ make("templatesPutWorkspaceAsset");
67
70
  const resolveWorkspaceConflict = /* @__PURE__ */ make("templatesResolveWorkspaceConflict");
68
- const attachWorkspaceResource = /* @__PURE__ */ make("templatesAttachWorkspaceResource");
69
- const removeWorkspaceResource = /* @__PURE__ */ make("templatesRemoveWorkspaceResource");
70
- const restoreWorkspace = /* @__PURE__ */ make("templatesRestoreWorkspace");
71
71
  const saveWorkspace = /* @__PURE__ */ make("templatesSaveWorkspace");
72
+ const restoreWorkspace = /* @__PURE__ */ make("templatesRestoreWorkspace");
73
+ const workspaceHistory = /* @__PURE__ */ make("templatesWorkspaceHistory");
72
74
  const checkWorkspace = /* @__PURE__ */ make("templatesCheckWorkspace");
73
75
  const renderWorkspaceFixture = /* @__PURE__ */ make("templatesRenderWorkspaceFixture");
74
76
  const publish = /* @__PURE__ */ make("templatesPublish");
@@ -76,8 +78,10 @@ const getPublication = /* @__PURE__ */ make("templatesGetPublication");
76
78
  const renderPublication = /* @__PURE__ */ make("templatesRenderPublication");
77
79
  const listInputContracts = /* @__PURE__ */ make("templatesListInputContracts");
78
80
  const getInputContract = /* @__PURE__ */ make("templatesGetInputContract");
79
- const diffWorkspace = /* @__PURE__ */ make("templatesDiffWorkspace");
80
- const workspaceHistory = /* @__PURE__ */ make("templatesWorkspaceHistory");
81
- export { CreateTemplatePayload as CreatePayload, UpdateTemplatePayload as UpdatePayload, addEntry, attachFamilyMember, attachWorkspaceResource, checkWorkspace, create, createFamily, createFamilyFromTemplate, 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, templates_exports, update, workspaceHistory };
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
+ 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 };
82
86
 
83
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 };
@@ -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">;
@@ -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">;
@@ -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 getSecret = /* @__PURE__ */ make("webhooksGetSecret");
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">;