samva 0.45.1 → 0.46.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 (65) hide show
  1. package/AGENTS.md +7 -0
  2. package/README.md +24 -0
  3. package/dist/client/sdk.gen.d.ts +438 -5
  4. package/dist/client/sdk.gen.js +1544 -229
  5. package/dist/client/types.gen.d.ts +8120 -5616
  6. package/dist/effect/accounts.d.ts +50 -0
  7. package/dist/effect/accounts.js +22 -0
  8. package/dist/effect/agents.d.ts +9 -0
  9. package/dist/effect/agents.js +1 -1
  10. package/dist/effect/approval-requests.d.ts +42 -0
  11. package/dist/effect/approval-requests.js +18 -0
  12. package/dist/effect/campaigns.d.ts +160 -160
  13. package/dist/effect/generated/accounts.d.ts +1002 -0
  14. package/dist/effect/generated/accounts.js +198 -0
  15. package/dist/effect/generated/agents.d.ts +84 -0
  16. package/dist/effect/generated/agents.js +1 -0
  17. package/dist/effect/generated/approval-requests.d.ts +777 -0
  18. package/dist/effect/generated/approval-requests.js +135 -0
  19. package/dist/effect/generated/campaigns.d.ts +17 -17
  20. package/dist/effect/generated/campaigns.js +6 -6
  21. package/dist/effect/generated/conversations.d.ts +20 -20
  22. package/dist/effect/generated/conversations.js +10 -10
  23. package/dist/effect/generated/events.js +1 -1
  24. package/dist/effect/generated/index.d.ts +11 -1
  25. package/dist/effect/generated/integrations-catalog.d.ts +671 -0
  26. package/dist/effect/generated/integrations-catalog.js +217 -0
  27. package/dist/effect/generated/integrations.d.ts +1401 -0
  28. package/dist/effect/generated/integrations.js +246 -0
  29. package/dist/effect/generated/mailboxes.d.ts +8157 -4241
  30. package/dist/effect/generated/mailboxes.js +677 -52
  31. package/dist/effect/generated/messages.d.ts +8 -8
  32. package/dist/effect/generated/messages.js +4 -4
  33. package/dist/effect/generated/scheduled-messages.d.ts +50 -50
  34. package/dist/effect/generated/scheduled-messages.js +17 -17
  35. package/dist/effect/generated/shared.d.ts +661 -511
  36. package/dist/effect/generated/shared.js +212 -179
  37. package/dist/effect/generated/template-share-links.d.ts +733 -0
  38. package/dist/effect/generated/template-share-links.js +165 -0
  39. package/dist/effect/generated/templates.d.ts +39 -22
  40. package/dist/effect/generated/templates.js +19 -16
  41. package/dist/effect/generated-metadata.d.ts +248 -0
  42. package/dist/effect/generated-metadata.js +705 -555
  43. package/dist/effect/index.d.ts +5 -0
  44. package/dist/effect/index.js +6 -1
  45. package/dist/effect/integrations-catalog.d.ts +38 -0
  46. package/dist/effect/integrations-catalog.js +16 -0
  47. package/dist/effect/integrations.d.ts +165 -0
  48. package/dist/effect/integrations.js +24 -0
  49. package/dist/effect/mailboxes.d.ts +373 -191
  50. package/dist/effect/mailboxes.js +31 -1
  51. package/dist/effect/scheduled-messages.d.ts +350 -350
  52. package/dist/effect/template-share-links.d.ts +18 -0
  53. package/dist/effect/template-share-links.js +20 -0
  54. package/dist/effect/templates.d.ts +4 -3
  55. package/dist/index.js +2 -2
  56. package/dist/package.js +1 -1
  57. package/dist/promises/client.d.ts +11 -1
  58. package/dist/promises/client.js +13 -3
  59. package/dist/promises/errors.gen.d.ts +22 -2
  60. package/dist/promises/errors.gen.js +54 -1
  61. package/dist/promises/index.js +2 -2
  62. package/dist/promises/types.gen.d.ts +1 -1
  63. package/dist/service-map.d.ts +203 -0
  64. package/dist/service-map.js +103 -0
  65. package/package.json +22 -2
@@ -0,0 +1,50 @@
1
+ export declare const listContactConnections: (input?: {
2
+ readonly provider?: string | undefined;
3
+ } | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"accountsListContactConnections">;
4
+ export declare const list: (input?: never, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"accountsList">;
5
+ export declare const get: (input: {
6
+ readonly accountId: string;
7
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"accountsGet">;
8
+ export declare const remove: (input: {
9
+ readonly accountId: string;
10
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"accountsRemove">;
11
+ export declare const check: (input: {
12
+ readonly accountId: string;
13
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"accountsCheck">;
14
+ export declare const connect: (input: {
15
+ readonly provider: string;
16
+ readonly input?: {
17
+ readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
18
+ readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
19
+ } | null)[] | {
20
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
21
+ } | null)[] | {
22
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
23
+ } | null)[] | {
24
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
25
+ } | null)[] | {
26
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
27
+ } | null)[] | {
28
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
29
+ } | null)[] | {
30
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
31
+ } | null)[] | {
32
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
33
+ } | null)[] | {
34
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
35
+ } | null)[] | {
36
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
37
+ } | null)[] | {
38
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
39
+ } | null)[] | {
40
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
41
+ } | null | undefined;
42
+ } | undefined;
43
+ readonly credentials?: {
44
+ readonly [x: string]: string | undefined;
45
+ } | undefined;
46
+ readonly app?: string | undefined;
47
+ readonly accountId?: string | undefined;
48
+ readonly expectedHosts?: readonly string[] | undefined;
49
+ readonly returnTo: string;
50
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"accountsConnect">;
@@ -0,0 +1,22 @@
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ import { AccountsGroup } from "./generated/accounts.js";
3
+ import { forGroup } from "./internal/operation.js";
4
+ // src/effect/accounts.ts
5
+ var accounts_exports = /* @__PURE__ */ __exportAll({
6
+ check: () => check,
7
+ connect: () => connect,
8
+ get: () => get,
9
+ list: () => list,
10
+ listContactConnections: () => listContactConnections,
11
+ remove: () => remove
12
+ });
13
+ const make = /* @__PURE__ */ forGroup(AccountsGroup);
14
+ const listContactConnections = /* @__PURE__ */ make("accountsListContactConnections");
15
+ const list = /* @__PURE__ */ make("accountsList");
16
+ const get = /* @__PURE__ */ make("accountsGet");
17
+ const remove = /* @__PURE__ */ make("accountsRemove");
18
+ const check = /* @__PURE__ */ make("accountsCheck");
19
+ const connect = /* @__PURE__ */ make("accountsConnect");
20
+ export { accounts_exports, check, connect, get, list, listContactConnections, remove };
21
+
22
+ //# sourceMappingURL=accounts.js.map
@@ -8,6 +8,7 @@ export declare const rerunTests: (input: {
8
8
  readonly endpointIds: readonly string[];
9
9
  readonly integrations: readonly {
10
10
  readonly integrationId: string;
11
+ readonly subject?: "contact" | "org" | undefined;
11
12
  readonly tools: {
12
13
  readonly kind: "all";
13
14
  } | {
@@ -17,6 +18,8 @@ export declare const rerunTests: (input: {
17
18
  readonly names: readonly string[];
18
19
  };
19
20
  }[];
21
+ readonly eventTriggers?: readonly string[] | undefined;
22
+ readonly followUpTemplate?: string | undefined;
20
23
  readonly policy: {
21
24
  readonly presets: readonly string[];
22
25
  readonly rules: readonly ({
@@ -137,6 +140,7 @@ export declare const create: (input: {
137
140
  readonly endpointIds: readonly string[];
138
141
  readonly integrations: readonly {
139
142
  readonly integrationId: string;
143
+ readonly subject?: "contact" | "org" | undefined;
140
144
  readonly tools: {
141
145
  readonly kind: "all";
142
146
  } | {
@@ -146,6 +150,8 @@ export declare const create: (input: {
146
150
  readonly names: readonly string[];
147
151
  };
148
152
  }[];
153
+ readonly eventTriggers?: readonly string[] | undefined;
154
+ readonly followUpTemplate?: string | undefined;
149
155
  readonly policy: {
150
156
  readonly presets: readonly string[];
151
157
  readonly rules: readonly ({
@@ -234,6 +240,7 @@ export declare const replaceDraft: (input: {
234
240
  readonly endpointIds: readonly string[];
235
241
  readonly integrations: readonly {
236
242
  readonly integrationId: string;
243
+ readonly subject?: "contact" | "org" | undefined;
237
244
  readonly tools: {
238
245
  readonly kind: "all";
239
246
  } | {
@@ -243,6 +250,8 @@ export declare const replaceDraft: (input: {
243
250
  readonly names: readonly string[];
244
251
  };
245
252
  }[];
253
+ readonly eventTriggers?: readonly string[] | undefined;
254
+ readonly followUpTemplate?: string | undefined;
246
255
  readonly policy: {
247
256
  readonly presets: readonly string[];
248
257
  readonly rules: readonly ({
@@ -1,6 +1,6 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
- import { AgentsGroup } from "./generated/agents.js";
3
2
  import { forGroup } from "./internal/operation.js";
3
+ import { AgentsGroup } from "./generated/agents.js";
4
4
  // src/effect/agents.ts
5
5
  var agents_exports = /* @__PURE__ */ __exportAll({
6
6
  continueOnStandard: () => continueOnStandard,
@@ -0,0 +1,42 @@
1
+ export declare const create: (input: {
2
+ readonly intent: string;
3
+ readonly calls: readonly {
4
+ readonly toolName: string;
5
+ readonly arguments: {
6
+ readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | /*elided*/ any | {
7
+ readonly [x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any | null | undefined;
8
+ } | null)[] | {
9
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
10
+ } | null)[] | {
11
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
12
+ } | null)[] | {
13
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
14
+ } | null)[] | {
15
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
16
+ } | null)[] | {
17
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
18
+ } | null)[] | {
19
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
20
+ } | null)[] | {
21
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
22
+ } | null)[] | {
23
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
24
+ } | null)[] | {
25
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
26
+ } | null)[] | {
27
+ readonly [x: string]: string | number | boolean | any | any | null | undefined;
28
+ } | null | undefined;
29
+ };
30
+ }[];
31
+ readonly idempotencyKey: string;
32
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"approvalRequestsCreate">;
33
+ export declare const get: (input: {
34
+ readonly id: string;
35
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"approvalRequestsGet">;
36
+ export declare const approve: (input: {
37
+ readonly id: string;
38
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"approvalRequestsApprove">;
39
+ export declare const reject: (input: {
40
+ readonly id: string;
41
+ readonly reason?: string | null | undefined;
42
+ }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"approvalRequestsReject">;
@@ -0,0 +1,18 @@
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ import { forGroup } from "./internal/operation.js";
3
+ import { ApprovalRequestsGroup } from "./generated/approval-requests.js";
4
+ // src/effect/approval-requests.ts
5
+ var approval_requests_exports = /* @__PURE__ */ __exportAll({
6
+ approve: () => approve,
7
+ create: () => create,
8
+ get: () => get,
9
+ reject: () => reject
10
+ });
11
+ const make = /* @__PURE__ */ forGroup(ApprovalRequestsGroup);
12
+ const create = /* @__PURE__ */ make("approvalRequestsCreate");
13
+ const get = /* @__PURE__ */ make("approvalRequestsGet");
14
+ const approve = /* @__PURE__ */ make("approvalRequestsApprove");
15
+ const reject = /* @__PURE__ */ make("approvalRequestsReject");
16
+ export { approval_requests_exports, approve, create, get, reject };
17
+
18
+ //# sourceMappingURL=approval-requests.js.map
@@ -1,8 +1,19 @@
1
1
  export declare const preview: (input: {
2
2
  readonly content: {
3
- readonly channel: "sms";
4
- readonly sms: {
3
+ readonly channel: "email";
4
+ readonly email: {
5
+ readonly subject?: string | null | undefined;
6
+ readonly html?: string | null | undefined;
5
7
  readonly text?: string | null | undefined;
8
+ readonly attachments?: readonly {
9
+ readonly filename: string;
10
+ readonly content?: string | null | undefined;
11
+ readonly mediaId?: string | null | undefined;
12
+ readonly contentType: string;
13
+ readonly size: number;
14
+ }[] | null | undefined;
15
+ readonly publicationId?: string | undefined;
16
+ readonly inputContractId?: string | undefined;
6
17
  readonly templateId?: string | null | undefined;
7
18
  readonly templateSlug?: string | null | undefined;
8
19
  readonly templateData?: {
@@ -32,7 +43,32 @@ export declare const preview: (input: {
32
43
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
33
44
  } | null | undefined;
34
45
  } | null | undefined;
46
+ readonly locale?: string | undefined;
47
+ readonly timeZone?: string | undefined;
48
+ readonly inReplyToMessageId?: string | null | undefined;
49
+ readonly replyTo?: readonly string[] | null | undefined;
50
+ readonly topicId?: string | null | undefined;
51
+ readonly tracking?: {
52
+ readonly opens?: boolean | undefined;
53
+ readonly clicks?: boolean | undefined;
54
+ } | undefined;
55
+ readonly footer?: {
56
+ readonly enabled?: boolean | null | undefined;
57
+ } | undefined;
58
+ readonly headers?: {
59
+ readonly [x: string]: string | undefined;
60
+ } | null | undefined;
61
+ readonly preheader?: string | null | undefined;
35
62
  };
63
+ readonly issue?: {
64
+ readonly path: string;
65
+ readonly commit: string;
66
+ } | null | undefined;
67
+ readonly from?: {
68
+ readonly email: string;
69
+ readonly name?: string | null | undefined;
70
+ } | null | undefined;
71
+ readonly replyMailboxId?: string | null | undefined;
36
72
  readonly conversationId?: string | null | undefined;
37
73
  readonly metadata?: {
38
74
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
@@ -62,20 +98,9 @@ export declare const preview: (input: {
62
98
  } | null | undefined;
63
99
  } | null | undefined;
64
100
  } | {
65
- readonly channel: "email";
66
- readonly email: {
67
- readonly subject?: string | null | undefined;
68
- readonly html?: string | null | undefined;
101
+ readonly channel: "sms";
102
+ readonly sms: {
69
103
  readonly text?: string | null | undefined;
70
- readonly attachments?: readonly {
71
- readonly filename: string;
72
- readonly content?: string | null | undefined;
73
- readonly mediaId?: string | null | undefined;
74
- readonly contentType: string;
75
- readonly size: number;
76
- }[] | null | undefined;
77
- readonly publicationId?: string | undefined;
78
- readonly inputContractId?: string | undefined;
79
104
  readonly templateId?: string | null | undefined;
80
105
  readonly templateSlug?: string | null | undefined;
81
106
  readonly templateData?: {
@@ -105,32 +130,7 @@ export declare const preview: (input: {
105
130
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
106
131
  } | null | undefined;
107
132
  } | null | undefined;
108
- readonly locale?: string | undefined;
109
- readonly timeZone?: string | undefined;
110
- readonly inReplyToMessageId?: string | null | undefined;
111
- readonly replyTo?: readonly string[] | null | undefined;
112
- readonly topicId?: string | null | undefined;
113
- readonly tracking?: {
114
- readonly opens?: boolean | undefined;
115
- readonly clicks?: boolean | undefined;
116
- } | undefined;
117
- readonly footer?: {
118
- readonly enabled?: boolean | null | undefined;
119
- } | undefined;
120
- readonly headers?: {
121
- readonly [x: string]: string | undefined;
122
- } | null | undefined;
123
- readonly preheader?: string | null | undefined;
124
133
  };
125
- readonly issue?: {
126
- readonly path: string;
127
- readonly commit: string;
128
- } | null | undefined;
129
- readonly from?: {
130
- readonly email: string;
131
- readonly name?: string | null | undefined;
132
- } | null | undefined;
133
- readonly replyMailboxId?: string | null | undefined;
134
134
  readonly conversationId?: string | null | undefined;
135
135
  readonly metadata?: {
136
136
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
@@ -239,9 +239,20 @@ export declare const preview: (input: {
239
239
  }, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"campaignsPreview">;
240
240
  export declare const sendTest: (input: {
241
241
  readonly content: {
242
- readonly channel: "sms";
243
- readonly sms: {
242
+ readonly channel: "email";
243
+ readonly email: {
244
+ readonly subject?: string | null | undefined;
245
+ readonly html?: string | null | undefined;
244
246
  readonly text?: string | null | undefined;
247
+ readonly attachments?: readonly {
248
+ readonly filename: string;
249
+ readonly content?: string | null | undefined;
250
+ readonly mediaId?: string | null | undefined;
251
+ readonly contentType: string;
252
+ readonly size: number;
253
+ }[] | null | undefined;
254
+ readonly publicationId?: string | undefined;
255
+ readonly inputContractId?: string | undefined;
245
256
  readonly templateId?: string | null | undefined;
246
257
  readonly templateSlug?: string | null | undefined;
247
258
  readonly templateData?: {
@@ -271,7 +282,32 @@ export declare const sendTest: (input: {
271
282
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
272
283
  } | null | undefined;
273
284
  } | null | undefined;
285
+ readonly locale?: string | undefined;
286
+ readonly timeZone?: string | undefined;
287
+ readonly inReplyToMessageId?: string | null | undefined;
288
+ readonly replyTo?: readonly string[] | null | undefined;
289
+ readonly topicId?: string | null | undefined;
290
+ readonly tracking?: {
291
+ readonly opens?: boolean | undefined;
292
+ readonly clicks?: boolean | undefined;
293
+ } | undefined;
294
+ readonly footer?: {
295
+ readonly enabled?: boolean | null | undefined;
296
+ } | undefined;
297
+ readonly headers?: {
298
+ readonly [x: string]: string | undefined;
299
+ } | null | undefined;
300
+ readonly preheader?: string | null | undefined;
274
301
  };
302
+ readonly issue?: {
303
+ readonly path: string;
304
+ readonly commit: string;
305
+ } | null | undefined;
306
+ readonly from?: {
307
+ readonly email: string;
308
+ readonly name?: string | null | undefined;
309
+ } | null | undefined;
310
+ readonly replyMailboxId?: string | null | undefined;
275
311
  readonly conversationId?: string | null | undefined;
276
312
  readonly metadata?: {
277
313
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
@@ -301,20 +337,9 @@ export declare const sendTest: (input: {
301
337
  } | null | undefined;
302
338
  } | null | undefined;
303
339
  } | {
304
- readonly channel: "email";
305
- readonly email: {
306
- readonly subject?: string | null | undefined;
307
- readonly html?: string | null | undefined;
340
+ readonly channel: "sms";
341
+ readonly sms: {
308
342
  readonly text?: string | null | undefined;
309
- readonly attachments?: readonly {
310
- readonly filename: string;
311
- readonly content?: string | null | undefined;
312
- readonly mediaId?: string | null | undefined;
313
- readonly contentType: string;
314
- readonly size: number;
315
- }[] | null | undefined;
316
- readonly publicationId?: string | undefined;
317
- readonly inputContractId?: string | undefined;
318
343
  readonly templateId?: string | null | undefined;
319
344
  readonly templateSlug?: string | null | undefined;
320
345
  readonly templateData?: {
@@ -344,32 +369,7 @@ export declare const sendTest: (input: {
344
369
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
345
370
  } | null | undefined;
346
371
  } | null | undefined;
347
- readonly locale?: string | undefined;
348
- readonly timeZone?: string | undefined;
349
- readonly inReplyToMessageId?: string | null | undefined;
350
- readonly replyTo?: readonly string[] | null | undefined;
351
- readonly topicId?: string | null | undefined;
352
- readonly tracking?: {
353
- readonly opens?: boolean | undefined;
354
- readonly clicks?: boolean | undefined;
355
- } | undefined;
356
- readonly footer?: {
357
- readonly enabled?: boolean | null | undefined;
358
- } | undefined;
359
- readonly headers?: {
360
- readonly [x: string]: string | undefined;
361
- } | null | undefined;
362
- readonly preheader?: string | null | undefined;
363
372
  };
364
- readonly issue?: {
365
- readonly path: string;
366
- readonly commit: string;
367
- } | null | undefined;
368
- readonly from?: {
369
- readonly email: string;
370
- readonly name?: string | null | undefined;
371
- } | null | undefined;
372
- readonly replyMailboxId?: string | null | undefined;
373
373
  readonly conversationId?: string | null | undefined;
374
374
  readonly metadata?: {
375
375
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
@@ -480,9 +480,20 @@ export declare const create: (input: {
480
480
  readonly name: string;
481
481
  readonly channel: "email" | "sms" | "whatsapp";
482
482
  readonly content: {
483
- readonly channel: "sms";
484
- readonly sms: {
483
+ readonly channel: "email";
484
+ readonly email: {
485
+ readonly subject?: string | null | undefined;
486
+ readonly html?: string | null | undefined;
485
487
  readonly text?: string | null | undefined;
488
+ readonly attachments?: readonly {
489
+ readonly filename: string;
490
+ readonly content?: string | null | undefined;
491
+ readonly mediaId?: string | null | undefined;
492
+ readonly contentType: string;
493
+ readonly size: number;
494
+ }[] | null | undefined;
495
+ readonly publicationId?: string | undefined;
496
+ readonly inputContractId?: string | undefined;
486
497
  readonly templateId?: string | null | undefined;
487
498
  readonly templateSlug?: string | null | undefined;
488
499
  readonly templateData?: {
@@ -512,7 +523,32 @@ export declare const create: (input: {
512
523
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
513
524
  } | null | undefined;
514
525
  } | null | undefined;
526
+ readonly locale?: string | undefined;
527
+ readonly timeZone?: string | undefined;
528
+ readonly inReplyToMessageId?: string | null | undefined;
529
+ readonly replyTo?: readonly string[] | null | undefined;
530
+ readonly topicId?: string | null | undefined;
531
+ readonly tracking?: {
532
+ readonly opens?: boolean | undefined;
533
+ readonly clicks?: boolean | undefined;
534
+ } | undefined;
535
+ readonly footer?: {
536
+ readonly enabled?: boolean | null | undefined;
537
+ } | undefined;
538
+ readonly headers?: {
539
+ readonly [x: string]: string | undefined;
540
+ } | null | undefined;
541
+ readonly preheader?: string | null | undefined;
515
542
  };
543
+ readonly issue?: {
544
+ readonly path: string;
545
+ readonly commit: string;
546
+ } | null | undefined;
547
+ readonly from?: {
548
+ readonly email: string;
549
+ readonly name?: string | null | undefined;
550
+ } | null | undefined;
551
+ readonly replyMailboxId?: string | null | undefined;
516
552
  readonly conversationId?: string | null | undefined;
517
553
  readonly metadata?: {
518
554
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
@@ -542,20 +578,9 @@ export declare const create: (input: {
542
578
  } | null | undefined;
543
579
  } | null | undefined;
544
580
  } | {
545
- readonly channel: "email";
546
- readonly email: {
547
- readonly subject?: string | null | undefined;
548
- readonly html?: string | null | undefined;
581
+ readonly channel: "sms";
582
+ readonly sms: {
549
583
  readonly text?: string | null | undefined;
550
- readonly attachments?: readonly {
551
- readonly filename: string;
552
- readonly content?: string | null | undefined;
553
- readonly mediaId?: string | null | undefined;
554
- readonly contentType: string;
555
- readonly size: number;
556
- }[] | null | undefined;
557
- readonly publicationId?: string | undefined;
558
- readonly inputContractId?: string | undefined;
559
584
  readonly templateId?: string | null | undefined;
560
585
  readonly templateSlug?: string | null | undefined;
561
586
  readonly templateData?: {
@@ -585,32 +610,7 @@ export declare const create: (input: {
585
610
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
586
611
  } | null | undefined;
587
612
  } | null | undefined;
588
- readonly locale?: string | undefined;
589
- readonly timeZone?: string | undefined;
590
- readonly inReplyToMessageId?: string | null | undefined;
591
- readonly replyTo?: readonly string[] | null | undefined;
592
- readonly topicId?: string | null | undefined;
593
- readonly tracking?: {
594
- readonly opens?: boolean | undefined;
595
- readonly clicks?: boolean | undefined;
596
- } | undefined;
597
- readonly footer?: {
598
- readonly enabled?: boolean | null | undefined;
599
- } | undefined;
600
- readonly headers?: {
601
- readonly [x: string]: string | undefined;
602
- } | null | undefined;
603
- readonly preheader?: string | null | undefined;
604
613
  };
605
- readonly issue?: {
606
- readonly path: string;
607
- readonly commit: string;
608
- } | null | undefined;
609
- readonly from?: {
610
- readonly email: string;
611
- readonly name?: string | null | undefined;
612
- } | null | undefined;
613
- readonly replyMailboxId?: string | null | undefined;
614
614
  readonly conversationId?: string | null | undefined;
615
615
  readonly metadata?: {
616
616
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
@@ -987,9 +987,20 @@ export declare const update: (input: {
987
987
  readonly id: string;
988
988
  readonly name?: string | null | undefined;
989
989
  readonly content?: {
990
- readonly channel: "sms";
991
- readonly sms: {
990
+ readonly channel: "email";
991
+ readonly email: {
992
+ readonly subject?: string | null | undefined;
993
+ readonly html?: string | null | undefined;
992
994
  readonly text?: string | null | undefined;
995
+ readonly attachments?: readonly {
996
+ readonly filename: string;
997
+ readonly content?: string | null | undefined;
998
+ readonly mediaId?: string | null | undefined;
999
+ readonly contentType: string;
1000
+ readonly size: number;
1001
+ }[] | null | undefined;
1002
+ readonly publicationId?: string | undefined;
1003
+ readonly inputContractId?: string | undefined;
993
1004
  readonly templateId?: string | null | undefined;
994
1005
  readonly templateSlug?: string | null | undefined;
995
1006
  readonly templateData?: {
@@ -1019,7 +1030,32 @@ export declare const update: (input: {
1019
1030
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
1020
1031
  } | null | undefined;
1021
1032
  } | null | undefined;
1033
+ readonly locale?: string | undefined;
1034
+ readonly timeZone?: string | undefined;
1035
+ readonly inReplyToMessageId?: string | null | undefined;
1036
+ readonly replyTo?: readonly string[] | null | undefined;
1037
+ readonly topicId?: string | null | undefined;
1038
+ readonly tracking?: {
1039
+ readonly opens?: boolean | undefined;
1040
+ readonly clicks?: boolean | undefined;
1041
+ } | undefined;
1042
+ readonly footer?: {
1043
+ readonly enabled?: boolean | null | undefined;
1044
+ } | undefined;
1045
+ readonly headers?: {
1046
+ readonly [x: string]: string | undefined;
1047
+ } | null | undefined;
1048
+ readonly preheader?: string | null | undefined;
1022
1049
  };
1050
+ readonly issue?: {
1051
+ readonly path: string;
1052
+ readonly commit: string;
1053
+ } | null | undefined;
1054
+ readonly from?: {
1055
+ readonly email: string;
1056
+ readonly name?: string | null | undefined;
1057
+ } | null | undefined;
1058
+ readonly replyMailboxId?: string | null | undefined;
1023
1059
  readonly conversationId?: string | null | undefined;
1024
1060
  readonly metadata?: {
1025
1061
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {
@@ -1049,20 +1085,9 @@ export declare const update: (input: {
1049
1085
  } | null | undefined;
1050
1086
  } | null | undefined;
1051
1087
  } | {
1052
- readonly channel: "email";
1053
- readonly email: {
1054
- readonly subject?: string | null | undefined;
1055
- readonly html?: string | null | undefined;
1088
+ readonly channel: "sms";
1089
+ readonly sms: {
1056
1090
  readonly text?: string | null | undefined;
1057
- readonly attachments?: readonly {
1058
- readonly filename: string;
1059
- readonly content?: string | null | undefined;
1060
- readonly mediaId?: string | null | undefined;
1061
- readonly contentType: string;
1062
- readonly size: number;
1063
- }[] | null | undefined;
1064
- readonly publicationId?: string | undefined;
1065
- readonly inputContractId?: string | undefined;
1066
1091
  readonly templateId?: string | null | undefined;
1067
1092
  readonly templateSlug?: string | null | undefined;
1068
1093
  readonly templateData?: {
@@ -1092,32 +1117,7 @@ export declare const update: (input: {
1092
1117
  readonly [x: string]: string | number | boolean | any | any | null | undefined;
1093
1118
  } | null | undefined;
1094
1119
  } | null | undefined;
1095
- readonly locale?: string | undefined;
1096
- readonly timeZone?: string | undefined;
1097
- readonly inReplyToMessageId?: string | null | undefined;
1098
- readonly replyTo?: readonly string[] | null | undefined;
1099
- readonly topicId?: string | null | undefined;
1100
- readonly tracking?: {
1101
- readonly opens?: boolean | undefined;
1102
- readonly clicks?: boolean | undefined;
1103
- } | undefined;
1104
- readonly footer?: {
1105
- readonly enabled?: boolean | null | undefined;
1106
- } | undefined;
1107
- readonly headers?: {
1108
- readonly [x: string]: string | undefined;
1109
- } | null | undefined;
1110
- readonly preheader?: string | null | undefined;
1111
1120
  };
1112
- readonly issue?: {
1113
- readonly path: string;
1114
- readonly commit: string;
1115
- } | null | undefined;
1116
- readonly from?: {
1117
- readonly email: string;
1118
- readonly name?: string | null | undefined;
1119
- } | null | undefined;
1120
- readonly replyMailboxId?: string | null | undefined;
1121
1121
  readonly conversationId?: string | null | undefined;
1122
1122
  readonly metadata?: {
1123
1123
  readonly [x: string]: string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | readonly (string | number | boolean | any | {