samva 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -1
- package/README.md +44 -1
- package/dist/analytics-CaqPRsry.js +207 -0
- package/dist/api-keys-Ce1Y4_Ip.js +274 -0
- package/dist/attachments-DYqVIraC.js +140 -0
- package/dist/brands-ZwuOGIWO.js +175 -0
- package/dist/campaigns-DZlz1E9E.js +522 -0
- package/dist/categories-CA4XIQAb.js +1011 -0
- package/dist/client/sdk.gen.d.ts +174 -3
- package/dist/client/types.gen.d.ts +1126 -11
- package/dist/client-DOzUrdTE.js +1115 -0
- package/dist/contact-groups-BLbFXnjq.js +446 -0
- package/dist/contacts-BbsoXXB4.js +787 -0
- package/dist/conversations-_sRHueML.js +494 -0
- package/dist/custom-fields-BHWbwlKn.js +176 -0
- package/dist/effect/analytics.js +2 -21
- package/dist/effect/api-keys.d.ts +1 -1
- package/dist/effect/api-keys.js +2 -28
- package/dist/effect/attachments.js +2 -17
- package/dist/effect/brands.d.ts +1 -1
- package/dist/effect/brands.js +3 -24
- package/dist/effect/campaigns.js +2 -33
- package/dist/effect/categories.js +1 -1
- package/dist/effect/client.d.ts +1 -1
- package/dist/effect/client.js +3 -4
- package/dist/effect/contact-groups.js +2 -29
- package/dist/effect/contacts.d.ts +52 -0
- package/dist/effect/contacts.js +2 -47
- package/dist/effect/conversations.js +2 -35
- package/dist/effect/custom-fields.js +2 -17
- package/dist/effect/email.d.ts +3 -2
- package/dist/effect/email.js +2 -137
- package/dist/effect/events.d.ts +121 -0
- package/dist/effect/events.js +3 -0
- package/dist/effect/extension-installations.js +2 -27
- package/dist/effect/extensions.js +2 -19
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +3 -13
- package/dist/effect/generated/analytics.d.ts +715 -0
- package/dist/effect/generated/api-keys.d.ts +1627 -0
- package/dist/effect/generated/attachments.d.ts +554 -0
- package/dist/effect/generated/brands.d.ts +1118 -0
- package/dist/effect/generated/campaigns.d.ts +3783 -0
- package/dist/effect/generated/contact-events.d.ts +158 -0
- package/dist/effect/generated/contact-groups.d.ts +1445 -0
- package/dist/effect/generated/contacts.d.ts +3789 -0
- package/dist/effect/generated/conversations.d.ts +2870 -0
- package/dist/effect/generated/custom-fields.d.ts +562 -0
- package/dist/effect/generated/email.d.ts +10622 -0
- package/dist/effect/generated/events.d.ts +463 -0
- package/dist/effect/generated/extension-installations.d.ts +1786 -0
- package/dist/effect/generated/extensions.d.ts +927 -0
- package/dist/effect/generated/feedback.d.ts +116 -0
- package/dist/effect/generated/index.d.ts +61 -0
- package/dist/effect/generated/journeys.d.ts +6135 -0
- package/dist/effect/generated/mailboxes.d.ts +13641 -0
- package/dist/effect/generated/media.d.ts +741 -0
- package/dist/effect/generated/messages.d.ts +2355 -0
- package/dist/effect/generated/namespaces.d.ts +654 -0
- package/dist/effect/generated/operations.d.ts +514 -0
- package/dist/effect/generated/organizations.d.ts +1111 -0
- package/dist/effect/generated/scheduled-messages.d.ts +1798 -0
- package/dist/effect/generated/shared.d.ts +3250 -0
- package/dist/effect/generated/subscriptions.d.ts +188 -0
- package/dist/effect/generated/templates.d.ts +8177 -0
- package/dist/effect/generated/unsubscribe-groups.d.ts +1153 -0
- package/dist/effect/generated/webhooks.d.ts +1697 -0
- package/dist/effect/generated/whoami.d.ts +291 -0
- package/dist/effect/generated-metadata.d.ts +1627 -0
- package/dist/effect/index.d.ts +3 -1
- package/dist/effect/index.js +29 -27
- package/dist/effect/internal/client.d.ts +10 -7
- package/dist/effect/internal/email-sender.d.ts +17 -0
- package/dist/effect/internal/operation.d.ts +12 -72
- package/dist/effect/internal/send.d.ts +60 -0
- package/dist/effect/journeys.d.ts +2153 -0
- package/dist/effect/journeys.js +2 -0
- package/dist/effect/mailboxes.d.ts +112 -112
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/media.js +3 -1
- package/dist/effect/messages.d.ts +2 -2
- package/dist/effect/messages.js +3 -1
- package/dist/effect/namespaces.js +2 -19
- package/dist/effect/operations.js +2 -15
- package/dist/effect/organizations.js +2 -23
- package/dist/effect/retry.js +1 -1
- package/dist/effect/scheduled-messages.js +2 -19
- package/dist/effect/subscriptions.js +2 -9
- package/dist/effect/templates.d.ts +1 -1
- package/dist/effect/templates.js +3 -78
- package/dist/effect/unsubscribe-groups.js +2 -27
- package/dist/effect/webhooks.d.ts +9 -9
- package/dist/effect/webhooks.js +3 -33
- package/dist/effect/whoami.d.ts +8 -8
- package/dist/effect/whoami.js +2 -9
- package/dist/email-R0NAA9PW.js +2498 -0
- package/dist/events-CxbTUHYT.js +82 -0
- package/dist/extension-installations-CD94LPmk.js +407 -0
- package/dist/extensions-BKyNQLvu.js +220 -0
- package/dist/feedback-Bpa09JOS.js +52 -0
- package/dist/index.js +2 -2
- package/dist/{inline-attachments-Cegg6tTF.js → inline-attachments-Bi1hDltp.js} +2 -2
- package/dist/journeys-CARo_BJT.js +499 -0
- package/dist/mailboxes-BRDn7BIK.js +2470 -0
- package/dist/media-VrrtNnft.js +181 -0
- package/dist/namespaces-CcvEbG-y.js +152 -0
- package/dist/{operation-BTXjPrwf.js → operation-n_IYgNVK.js} +75 -90
- package/dist/operations-CmB3FHwf.js +93 -0
- package/dist/organizations-A-plufWc.js +252 -0
- package/dist/promises/index.d.ts +7 -3
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/{promises-KrA2nSLg.js → promises---Kbh-7z.js} +467 -3
- package/dist/runtime-P0l1_2-C.js +25 -0
- package/dist/scheduled-messages-DkKZRRaN.js +207 -0
- package/dist/send-Bxc0XfGE.js +722 -0
- package/dist/service-map.d.ts +85 -0
- package/dist/subscriptions-DEXYtMXg.js +67 -0
- package/dist/templates-DZomxsG7.js +2289 -0
- package/dist/unsubscribe-groups-Iqk4Isf9.js +291 -0
- package/dist/webhooks-CPXuu8Xf.js +530 -0
- package/dist/whoami-Ccz0jwlt.js +59 -0
- package/package.json +13 -3
- package/dist/categories-DV51kr2H.js +0 -187
- package/dist/client-BMUew5Wp.js +0 -13794
- package/dist/effect/generated.d.ts +0 -64004
- package/dist/mailboxes-Thp5z0oX.js +0 -161
|
@@ -0,0 +1,1011 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
2
|
+
import * as Predicate$1 from "effect/Predicate";
|
|
3
|
+
//#region src/effect/generated-metadata.ts
|
|
4
|
+
const SamvaErrorMetadata = {
|
|
5
|
+
AnalyticsQueryError: {
|
|
6
|
+
categories: [],
|
|
7
|
+
retryable: false
|
|
8
|
+
},
|
|
9
|
+
BillingProviderError: {
|
|
10
|
+
categories: ["transient"],
|
|
11
|
+
retryable: true
|
|
12
|
+
},
|
|
13
|
+
BrandAddressRequiredError: {
|
|
14
|
+
categories: [],
|
|
15
|
+
retryable: false
|
|
16
|
+
},
|
|
17
|
+
CampaignFooterRequiredError: {
|
|
18
|
+
categories: [],
|
|
19
|
+
retryable: false
|
|
20
|
+
},
|
|
21
|
+
ConflictError: {
|
|
22
|
+
categories: ["conflict"],
|
|
23
|
+
retryable: false
|
|
24
|
+
},
|
|
25
|
+
DeliveryUnavailableError: {
|
|
26
|
+
categories: ["transient"],
|
|
27
|
+
retryable: true
|
|
28
|
+
},
|
|
29
|
+
EmailChannelError: {
|
|
30
|
+
categories: [],
|
|
31
|
+
retryable: false
|
|
32
|
+
},
|
|
33
|
+
ExternalServiceError: {
|
|
34
|
+
categories: ["transient"],
|
|
35
|
+
retryable: true
|
|
36
|
+
},
|
|
37
|
+
FlagDisabledError: {
|
|
38
|
+
categories: [],
|
|
39
|
+
retryable: false
|
|
40
|
+
},
|
|
41
|
+
ForbiddenError: {
|
|
42
|
+
categories: ["auth"],
|
|
43
|
+
retryable: false
|
|
44
|
+
},
|
|
45
|
+
GatewayTimeoutError: {
|
|
46
|
+
categories: ["transient"],
|
|
47
|
+
retryable: true
|
|
48
|
+
},
|
|
49
|
+
InternalError: {
|
|
50
|
+
categories: ["transient"],
|
|
51
|
+
retryable: true
|
|
52
|
+
},
|
|
53
|
+
MailboxChannelUnsupportedError: {
|
|
54
|
+
categories: [],
|
|
55
|
+
retryable: false
|
|
56
|
+
},
|
|
57
|
+
MailboxSendConflictError: {
|
|
58
|
+
categories: [],
|
|
59
|
+
retryable: false
|
|
60
|
+
},
|
|
61
|
+
MailboxSendRefusedError: {
|
|
62
|
+
categories: [],
|
|
63
|
+
retryable: false
|
|
64
|
+
},
|
|
65
|
+
OnboardingReviewRequiredError: {
|
|
66
|
+
categories: ["validation"],
|
|
67
|
+
retryable: false
|
|
68
|
+
},
|
|
69
|
+
PaymentRequiredError: {
|
|
70
|
+
categories: ["billing"],
|
|
71
|
+
retryable: false
|
|
72
|
+
},
|
|
73
|
+
RateLimitedError: {
|
|
74
|
+
categories: ["throttling", "transient"],
|
|
75
|
+
retryable: true
|
|
76
|
+
},
|
|
77
|
+
ResourceNotFoundError: {
|
|
78
|
+
categories: ["notFound"],
|
|
79
|
+
retryable: false
|
|
80
|
+
},
|
|
81
|
+
SenderNotReadyError: {
|
|
82
|
+
categories: ["transient"],
|
|
83
|
+
retryable: true
|
|
84
|
+
},
|
|
85
|
+
UnauthorizedError: {
|
|
86
|
+
categories: ["auth"],
|
|
87
|
+
retryable: false
|
|
88
|
+
},
|
|
89
|
+
ValidationError: {
|
|
90
|
+
categories: ["validation"],
|
|
91
|
+
retryable: false
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const operationMetadata0 = {
|
|
95
|
+
group: "Analytics",
|
|
96
|
+
method: "GET",
|
|
97
|
+
paginated: false
|
|
98
|
+
};
|
|
99
|
+
const operationMetadata1 = {
|
|
100
|
+
group: "Analytics",
|
|
101
|
+
method: "POST",
|
|
102
|
+
paginated: false
|
|
103
|
+
};
|
|
104
|
+
const operationMetadata2 = {
|
|
105
|
+
group: "API Keys",
|
|
106
|
+
method: "GET",
|
|
107
|
+
paginated: true
|
|
108
|
+
};
|
|
109
|
+
const operationMetadata3 = {
|
|
110
|
+
group: "API Keys",
|
|
111
|
+
method: "POST",
|
|
112
|
+
paginated: false
|
|
113
|
+
};
|
|
114
|
+
const operationMetadata4 = {
|
|
115
|
+
group: "API Keys",
|
|
116
|
+
method: "GET",
|
|
117
|
+
paginated: false
|
|
118
|
+
};
|
|
119
|
+
const operationMetadata5 = {
|
|
120
|
+
group: "API Keys",
|
|
121
|
+
method: "PATCH",
|
|
122
|
+
paginated: false
|
|
123
|
+
};
|
|
124
|
+
const operationMetadata6 = {
|
|
125
|
+
group: "Attachments",
|
|
126
|
+
method: "GET",
|
|
127
|
+
paginated: false
|
|
128
|
+
};
|
|
129
|
+
const operationMetadata7 = {
|
|
130
|
+
group: "Attachments",
|
|
131
|
+
method: "DELETE",
|
|
132
|
+
paginated: false
|
|
133
|
+
};
|
|
134
|
+
const operationMetadata8 = {
|
|
135
|
+
group: "Brands",
|
|
136
|
+
method: "GET",
|
|
137
|
+
paginated: false
|
|
138
|
+
};
|
|
139
|
+
const operationMetadata9 = {
|
|
140
|
+
group: "Brands",
|
|
141
|
+
method: "POST",
|
|
142
|
+
paginated: false
|
|
143
|
+
};
|
|
144
|
+
const operationMetadata10 = {
|
|
145
|
+
group: "Brands",
|
|
146
|
+
method: "DELETE",
|
|
147
|
+
paginated: false
|
|
148
|
+
};
|
|
149
|
+
const operationMetadata11 = {
|
|
150
|
+
group: "Brands",
|
|
151
|
+
method: "PATCH",
|
|
152
|
+
paginated: false
|
|
153
|
+
};
|
|
154
|
+
const operationMetadata12 = {
|
|
155
|
+
group: "Campaigns",
|
|
156
|
+
method: "GET",
|
|
157
|
+
paginated: true
|
|
158
|
+
};
|
|
159
|
+
const operationMetadata13 = {
|
|
160
|
+
group: "Campaigns",
|
|
161
|
+
method: "POST",
|
|
162
|
+
paginated: false
|
|
163
|
+
};
|
|
164
|
+
const operationMetadata14 = {
|
|
165
|
+
group: "Campaigns",
|
|
166
|
+
method: "GET",
|
|
167
|
+
paginated: false
|
|
168
|
+
};
|
|
169
|
+
const operationMetadata15 = {
|
|
170
|
+
group: "Campaigns",
|
|
171
|
+
method: "PATCH",
|
|
172
|
+
paginated: false
|
|
173
|
+
};
|
|
174
|
+
const operationMetadata16 = {
|
|
175
|
+
group: "Contact Groups",
|
|
176
|
+
method: "GET",
|
|
177
|
+
paginated: true
|
|
178
|
+
};
|
|
179
|
+
const operationMetadata17 = {
|
|
180
|
+
group: "Contact Groups",
|
|
181
|
+
method: "POST",
|
|
182
|
+
paginated: false
|
|
183
|
+
};
|
|
184
|
+
const operationMetadata18 = {
|
|
185
|
+
group: "Contact Groups",
|
|
186
|
+
method: "GET",
|
|
187
|
+
paginated: false
|
|
188
|
+
};
|
|
189
|
+
const operationMetadata19 = {
|
|
190
|
+
group: "Contact Groups",
|
|
191
|
+
method: "DELETE",
|
|
192
|
+
paginated: false
|
|
193
|
+
};
|
|
194
|
+
const operationMetadata20 = {
|
|
195
|
+
group: "Contact Groups",
|
|
196
|
+
method: "PATCH",
|
|
197
|
+
paginated: false
|
|
198
|
+
};
|
|
199
|
+
const operationMetadata21 = {
|
|
200
|
+
group: "Contacts",
|
|
201
|
+
method: "GET",
|
|
202
|
+
paginated: true
|
|
203
|
+
};
|
|
204
|
+
const operationMetadata22 = {
|
|
205
|
+
group: "Contacts",
|
|
206
|
+
method: "POST",
|
|
207
|
+
paginated: false
|
|
208
|
+
};
|
|
209
|
+
const operationMetadata23 = {
|
|
210
|
+
group: "Contacts",
|
|
211
|
+
method: "GET",
|
|
212
|
+
paginated: false
|
|
213
|
+
};
|
|
214
|
+
const operationMetadata24 = {
|
|
215
|
+
group: "Contacts",
|
|
216
|
+
method: "DELETE",
|
|
217
|
+
paginated: false
|
|
218
|
+
};
|
|
219
|
+
const operationMetadata25 = {
|
|
220
|
+
group: "Contacts",
|
|
221
|
+
method: "PATCH",
|
|
222
|
+
paginated: false
|
|
223
|
+
};
|
|
224
|
+
const operationMetadata26 = {
|
|
225
|
+
group: "Contact events",
|
|
226
|
+
method: "GET",
|
|
227
|
+
paginated: true
|
|
228
|
+
};
|
|
229
|
+
const operationMetadata27 = {
|
|
230
|
+
group: "Conversations",
|
|
231
|
+
method: "GET",
|
|
232
|
+
paginated: true
|
|
233
|
+
};
|
|
234
|
+
const operationMetadata28 = {
|
|
235
|
+
group: "Conversations",
|
|
236
|
+
method: "POST",
|
|
237
|
+
paginated: false
|
|
238
|
+
};
|
|
239
|
+
const operationMetadata29 = {
|
|
240
|
+
group: "Conversations",
|
|
241
|
+
method: "GET",
|
|
242
|
+
paginated: false
|
|
243
|
+
};
|
|
244
|
+
const operationMetadata30 = {
|
|
245
|
+
group: "Conversations",
|
|
246
|
+
method: "PATCH",
|
|
247
|
+
paginated: false
|
|
248
|
+
};
|
|
249
|
+
const operationMetadata31 = {
|
|
250
|
+
group: "Conversations",
|
|
251
|
+
method: "DELETE",
|
|
252
|
+
paginated: false
|
|
253
|
+
};
|
|
254
|
+
const operationMetadata32 = {
|
|
255
|
+
group: "Custom Fields",
|
|
256
|
+
method: "GET",
|
|
257
|
+
paginated: false
|
|
258
|
+
};
|
|
259
|
+
const operationMetadata33 = {
|
|
260
|
+
group: "Custom Fields",
|
|
261
|
+
method: "POST",
|
|
262
|
+
paginated: false
|
|
263
|
+
};
|
|
264
|
+
const operationMetadata34 = {
|
|
265
|
+
group: "Custom Fields",
|
|
266
|
+
method: "DELETE",
|
|
267
|
+
paginated: false
|
|
268
|
+
};
|
|
269
|
+
const operationMetadata35 = {
|
|
270
|
+
group: "Custom Fields",
|
|
271
|
+
method: "PATCH",
|
|
272
|
+
paginated: false
|
|
273
|
+
};
|
|
274
|
+
const operationMetadata36 = {
|
|
275
|
+
group: "Email",
|
|
276
|
+
method: "GET",
|
|
277
|
+
paginated: true
|
|
278
|
+
};
|
|
279
|
+
const operationMetadata37 = {
|
|
280
|
+
group: "Email",
|
|
281
|
+
method: "POST",
|
|
282
|
+
paginated: false
|
|
283
|
+
};
|
|
284
|
+
const operationMetadata38 = {
|
|
285
|
+
group: "Email",
|
|
286
|
+
method: "DELETE",
|
|
287
|
+
paginated: false
|
|
288
|
+
};
|
|
289
|
+
const operationMetadata39 = {
|
|
290
|
+
group: "Email",
|
|
291
|
+
method: "PATCH",
|
|
292
|
+
paginated: false
|
|
293
|
+
};
|
|
294
|
+
const operationMetadata40 = {
|
|
295
|
+
group: "Email",
|
|
296
|
+
method: "GET",
|
|
297
|
+
paginated: false
|
|
298
|
+
};
|
|
299
|
+
const operationMetadata41 = {
|
|
300
|
+
group: "Events",
|
|
301
|
+
method: "POST",
|
|
302
|
+
paginated: false
|
|
303
|
+
};
|
|
304
|
+
const operationMetadata42 = {
|
|
305
|
+
group: "Extension installations",
|
|
306
|
+
method: "GET",
|
|
307
|
+
paginated: true
|
|
308
|
+
};
|
|
309
|
+
const operationMetadata43 = {
|
|
310
|
+
group: "Extension installations",
|
|
311
|
+
method: "POST",
|
|
312
|
+
paginated: false
|
|
313
|
+
};
|
|
314
|
+
const operationMetadata44 = {
|
|
315
|
+
group: "Extension installations",
|
|
316
|
+
method: "GET",
|
|
317
|
+
paginated: false
|
|
318
|
+
};
|
|
319
|
+
const operationMetadata45 = {
|
|
320
|
+
group: "Extension installations",
|
|
321
|
+
method: "DELETE",
|
|
322
|
+
paginated: false
|
|
323
|
+
};
|
|
324
|
+
const operationMetadata46 = {
|
|
325
|
+
group: "Extensions",
|
|
326
|
+
method: "GET",
|
|
327
|
+
paginated: true
|
|
328
|
+
};
|
|
329
|
+
const operationMetadata47 = {
|
|
330
|
+
group: "Extensions",
|
|
331
|
+
method: "POST",
|
|
332
|
+
paginated: false
|
|
333
|
+
};
|
|
334
|
+
const operationMetadata48 = {
|
|
335
|
+
group: "Extensions",
|
|
336
|
+
method: "GET",
|
|
337
|
+
paginated: false
|
|
338
|
+
};
|
|
339
|
+
const operationMetadata49 = {
|
|
340
|
+
group: "Feedback",
|
|
341
|
+
method: "POST",
|
|
342
|
+
paginated: false
|
|
343
|
+
};
|
|
344
|
+
const operationMetadata50 = {
|
|
345
|
+
group: "Journeys",
|
|
346
|
+
method: "GET",
|
|
347
|
+
paginated: true
|
|
348
|
+
};
|
|
349
|
+
const operationMetadata51 = {
|
|
350
|
+
group: "Journeys",
|
|
351
|
+
method: "POST",
|
|
352
|
+
paginated: false
|
|
353
|
+
};
|
|
354
|
+
const operationMetadata52 = {
|
|
355
|
+
group: "Journeys",
|
|
356
|
+
method: "GET",
|
|
357
|
+
paginated: false
|
|
358
|
+
};
|
|
359
|
+
const operationMetadata53 = {
|
|
360
|
+
group: "Journeys",
|
|
361
|
+
method: "DELETE",
|
|
362
|
+
paginated: false
|
|
363
|
+
};
|
|
364
|
+
const operationMetadata54 = {
|
|
365
|
+
group: "Journeys",
|
|
366
|
+
method: "PATCH",
|
|
367
|
+
paginated: false
|
|
368
|
+
};
|
|
369
|
+
const operationMetadata55 = {
|
|
370
|
+
group: "Journeys",
|
|
371
|
+
method: "PUT",
|
|
372
|
+
paginated: false
|
|
373
|
+
};
|
|
374
|
+
const operationMetadata56 = {
|
|
375
|
+
group: "Mailboxes",
|
|
376
|
+
method: "GET",
|
|
377
|
+
paginated: true
|
|
378
|
+
};
|
|
379
|
+
const operationMetadata57 = {
|
|
380
|
+
group: "Mailboxes",
|
|
381
|
+
method: "POST",
|
|
382
|
+
paginated: false
|
|
383
|
+
};
|
|
384
|
+
const operationMetadata58 = {
|
|
385
|
+
group: "Mailboxes",
|
|
386
|
+
method: "GET",
|
|
387
|
+
paginated: false
|
|
388
|
+
};
|
|
389
|
+
const operationMetadata59 = {
|
|
390
|
+
group: "Mailboxes",
|
|
391
|
+
method: "DELETE",
|
|
392
|
+
paginated: false
|
|
393
|
+
};
|
|
394
|
+
const operationMetadata60 = {
|
|
395
|
+
group: "Mailboxes",
|
|
396
|
+
method: "PATCH",
|
|
397
|
+
paginated: false
|
|
398
|
+
};
|
|
399
|
+
const operationMetadata61 = {
|
|
400
|
+
group: "Media",
|
|
401
|
+
method: "POST",
|
|
402
|
+
paginated: false
|
|
403
|
+
};
|
|
404
|
+
const operationMetadata62 = {
|
|
405
|
+
group: "Media",
|
|
406
|
+
method: "GET",
|
|
407
|
+
paginated: false
|
|
408
|
+
};
|
|
409
|
+
const operationMetadata63 = {
|
|
410
|
+
group: "Media",
|
|
411
|
+
method: "DELETE",
|
|
412
|
+
paginated: false
|
|
413
|
+
};
|
|
414
|
+
const operationMetadata64 = {
|
|
415
|
+
group: "Messages",
|
|
416
|
+
method: "GET",
|
|
417
|
+
paginated: true
|
|
418
|
+
};
|
|
419
|
+
const operationMetadata65 = {
|
|
420
|
+
group: "Messages",
|
|
421
|
+
method: "POST",
|
|
422
|
+
paginated: false
|
|
423
|
+
};
|
|
424
|
+
const operationMetadata66 = {
|
|
425
|
+
group: "Messages",
|
|
426
|
+
method: "GET",
|
|
427
|
+
paginated: false
|
|
428
|
+
};
|
|
429
|
+
const operationMetadata67 = {
|
|
430
|
+
group: "Messages",
|
|
431
|
+
method: "DELETE",
|
|
432
|
+
paginated: false
|
|
433
|
+
};
|
|
434
|
+
const operationMetadata68 = {
|
|
435
|
+
group: "Scheduled Messages",
|
|
436
|
+
method: "GET",
|
|
437
|
+
paginated: true
|
|
438
|
+
};
|
|
439
|
+
const operationMetadata69 = {
|
|
440
|
+
group: "Scheduled Messages",
|
|
441
|
+
method: "POST",
|
|
442
|
+
paginated: false
|
|
443
|
+
};
|
|
444
|
+
const operationMetadata70 = {
|
|
445
|
+
group: "Scheduled Messages",
|
|
446
|
+
method: "GET",
|
|
447
|
+
paginated: false
|
|
448
|
+
};
|
|
449
|
+
const operationMetadata71 = {
|
|
450
|
+
group: "Namespaces",
|
|
451
|
+
method: "GET",
|
|
452
|
+
paginated: true
|
|
453
|
+
};
|
|
454
|
+
const operationMetadata72 = {
|
|
455
|
+
group: "Namespaces",
|
|
456
|
+
method: "POST",
|
|
457
|
+
paginated: false
|
|
458
|
+
};
|
|
459
|
+
const operationMetadata73 = {
|
|
460
|
+
group: "Namespaces",
|
|
461
|
+
method: "GET",
|
|
462
|
+
paginated: false
|
|
463
|
+
};
|
|
464
|
+
const operationMetadata74 = {
|
|
465
|
+
group: "Namespaces",
|
|
466
|
+
method: "DELETE",
|
|
467
|
+
paginated: false
|
|
468
|
+
};
|
|
469
|
+
const operationMetadata75 = {
|
|
470
|
+
group: "Namespaces",
|
|
471
|
+
method: "PATCH",
|
|
472
|
+
paginated: false
|
|
473
|
+
};
|
|
474
|
+
const operationMetadata76 = {
|
|
475
|
+
group: "Operations",
|
|
476
|
+
method: "GET",
|
|
477
|
+
paginated: true
|
|
478
|
+
};
|
|
479
|
+
const operationMetadata77 = {
|
|
480
|
+
group: "Operations",
|
|
481
|
+
method: "GET",
|
|
482
|
+
paginated: false
|
|
483
|
+
};
|
|
484
|
+
const operationMetadata78 = {
|
|
485
|
+
group: "Operations",
|
|
486
|
+
method: "POST",
|
|
487
|
+
paginated: false
|
|
488
|
+
};
|
|
489
|
+
const operationMetadata79 = {
|
|
490
|
+
group: "Organizations",
|
|
491
|
+
method: "POST",
|
|
492
|
+
paginated: false
|
|
493
|
+
};
|
|
494
|
+
const operationMetadata80 = {
|
|
495
|
+
group: "Organizations",
|
|
496
|
+
method: "GET",
|
|
497
|
+
paginated: false
|
|
498
|
+
};
|
|
499
|
+
const operationMetadata81 = {
|
|
500
|
+
group: "Organizations",
|
|
501
|
+
method: "PATCH",
|
|
502
|
+
paginated: false
|
|
503
|
+
};
|
|
504
|
+
const operationMetadata82 = {
|
|
505
|
+
group: "Subscriptions",
|
|
506
|
+
method: "POST",
|
|
507
|
+
paginated: false
|
|
508
|
+
};
|
|
509
|
+
const operationMetadata83 = {
|
|
510
|
+
group: "Templates",
|
|
511
|
+
method: "GET",
|
|
512
|
+
paginated: true
|
|
513
|
+
};
|
|
514
|
+
const operationMetadata84 = {
|
|
515
|
+
group: "Templates",
|
|
516
|
+
method: "POST",
|
|
517
|
+
paginated: false
|
|
518
|
+
};
|
|
519
|
+
const operationMetadata85 = {
|
|
520
|
+
group: "Templates",
|
|
521
|
+
method: "GET",
|
|
522
|
+
paginated: false
|
|
523
|
+
};
|
|
524
|
+
const operationMetadata86 = {
|
|
525
|
+
group: "Templates",
|
|
526
|
+
method: "DELETE",
|
|
527
|
+
paginated: false
|
|
528
|
+
};
|
|
529
|
+
const operationMetadata87 = {
|
|
530
|
+
group: "Templates",
|
|
531
|
+
method: "PATCH",
|
|
532
|
+
paginated: false
|
|
533
|
+
};
|
|
534
|
+
const operationMetadata88 = {
|
|
535
|
+
group: "Templates",
|
|
536
|
+
method: "PUT",
|
|
537
|
+
paginated: false
|
|
538
|
+
};
|
|
539
|
+
const operationMetadata89 = {
|
|
540
|
+
group: "Unsubscribe Groups",
|
|
541
|
+
method: "GET",
|
|
542
|
+
paginated: false
|
|
543
|
+
};
|
|
544
|
+
const operationMetadata90 = {
|
|
545
|
+
group: "Unsubscribe Groups",
|
|
546
|
+
method: "POST",
|
|
547
|
+
paginated: false
|
|
548
|
+
};
|
|
549
|
+
const operationMetadata91 = {
|
|
550
|
+
group: "Unsubscribe Groups",
|
|
551
|
+
method: "DELETE",
|
|
552
|
+
paginated: false
|
|
553
|
+
};
|
|
554
|
+
const operationMetadata92 = {
|
|
555
|
+
group: "Unsubscribe Groups",
|
|
556
|
+
method: "PATCH",
|
|
557
|
+
paginated: false
|
|
558
|
+
};
|
|
559
|
+
const operationMetadata93 = {
|
|
560
|
+
group: "Unsubscribe Groups",
|
|
561
|
+
method: "GET",
|
|
562
|
+
paginated: true
|
|
563
|
+
};
|
|
564
|
+
const operationMetadata94 = {
|
|
565
|
+
group: "Webhooks",
|
|
566
|
+
method: "GET",
|
|
567
|
+
paginated: true
|
|
568
|
+
};
|
|
569
|
+
const operationMetadata95 = {
|
|
570
|
+
group: "Webhooks",
|
|
571
|
+
method: "POST",
|
|
572
|
+
paginated: false
|
|
573
|
+
};
|
|
574
|
+
const operationMetadata96 = {
|
|
575
|
+
group: "Webhooks",
|
|
576
|
+
method: "GET",
|
|
577
|
+
paginated: false
|
|
578
|
+
};
|
|
579
|
+
const SamvaOperations = {
|
|
580
|
+
analyticsGetChannelStats: operationMetadata0,
|
|
581
|
+
analyticsGetDeliveryMetrics: operationMetadata0,
|
|
582
|
+
analyticsExportData: operationMetadata1,
|
|
583
|
+
analyticsGetHourlyDistribution: operationMetadata0,
|
|
584
|
+
analyticsGetStats: operationMetadata0,
|
|
585
|
+
analyticsGetTopContacts: operationMetadata0,
|
|
586
|
+
apiKeysList: operationMetadata2,
|
|
587
|
+
apiKeysCreate: operationMetadata3,
|
|
588
|
+
apiKeysGet: operationMetadata4,
|
|
589
|
+
apiKeysUpdate: operationMetadata5,
|
|
590
|
+
apiKeysGetActivity: operationMetadata2,
|
|
591
|
+
apiKeysRevoke: operationMetadata3,
|
|
592
|
+
apiKeysRotate: operationMetadata3,
|
|
593
|
+
apiKeysGetStats: operationMetadata4,
|
|
594
|
+
attachmentsList: operationMetadata6,
|
|
595
|
+
attachmentsGetById: operationMetadata6,
|
|
596
|
+
attachmentsRemove: operationMetadata7,
|
|
597
|
+
attachmentsDownloadUrl: operationMetadata6,
|
|
598
|
+
brandsList: operationMetadata8,
|
|
599
|
+
brandsCreate: operationMetadata9,
|
|
600
|
+
brandsGet: operationMetadata8,
|
|
601
|
+
brandsRemove: operationMetadata10,
|
|
602
|
+
brandsUpdate: operationMetadata11,
|
|
603
|
+
brandsSetDefault: operationMetadata9,
|
|
604
|
+
campaignsList: operationMetadata12,
|
|
605
|
+
campaignsCreate: operationMetadata13,
|
|
606
|
+
campaignsGet: operationMetadata14,
|
|
607
|
+
campaignsUpdate: operationMetadata15,
|
|
608
|
+
campaignsArchive: operationMetadata13,
|
|
609
|
+
campaignsListRuns: operationMetadata12,
|
|
610
|
+
campaignsScheduleRun: operationMetadata13,
|
|
611
|
+
campaignsGetRun: operationMetadata14,
|
|
612
|
+
campaignsCancelRun: operationMetadata13,
|
|
613
|
+
campaignsPauseRun: operationMetadata13,
|
|
614
|
+
campaignsListRecipients: operationMetadata12,
|
|
615
|
+
campaignsResumeRun: operationMetadata13,
|
|
616
|
+
contactGroupsList: operationMetadata16,
|
|
617
|
+
contactGroupsCreate: operationMetadata17,
|
|
618
|
+
contactGroupsGetById: operationMetadata18,
|
|
619
|
+
contactGroupsRemove: operationMetadata19,
|
|
620
|
+
contactGroupsUpdate: operationMetadata20,
|
|
621
|
+
contactGroupsEvaluateDynamic: operationMetadata17,
|
|
622
|
+
contactGroupsGetMembers: operationMetadata16,
|
|
623
|
+
contactGroupsAddMembers: operationMetadata17,
|
|
624
|
+
contactGroupsRemoveMembers: operationMetadata19,
|
|
625
|
+
contactGroupsPreview: operationMetadata17,
|
|
626
|
+
contactsList: operationMetadata21,
|
|
627
|
+
contactsCreate: operationMetadata22,
|
|
628
|
+
contactsGet: operationMetadata23,
|
|
629
|
+
contactsRemove: operationMetadata24,
|
|
630
|
+
contactsUpdate: operationMetadata25,
|
|
631
|
+
contactsGetActivityTimeline: operationMetadata21,
|
|
632
|
+
contactsGetEngagement: operationMetadata23,
|
|
633
|
+
contactEventsListEvents: operationMetadata26,
|
|
634
|
+
contactsGetGroupMemberships: operationMetadata21,
|
|
635
|
+
contactsAddIdentity: operationMetadata22,
|
|
636
|
+
contactsRemoveIdentity: operationMetadata24,
|
|
637
|
+
contactsAddTags: operationMetadata22,
|
|
638
|
+
contactsRemoveTags: operationMetadata24,
|
|
639
|
+
contactsBulkDelete: operationMetadata22,
|
|
640
|
+
contactsBulkImport: operationMetadata22,
|
|
641
|
+
contactsBulkUpdateStatus: operationMetadata22,
|
|
642
|
+
contactsBulkUpdateTags: operationMetadata22,
|
|
643
|
+
contactsExport: operationMetadata22,
|
|
644
|
+
contactsFind: operationMetadata22,
|
|
645
|
+
contactsFindOrCreate: operationMetadata22,
|
|
646
|
+
conversationsList: operationMetadata27,
|
|
647
|
+
conversationsCreate: operationMetadata28,
|
|
648
|
+
conversationsGetById: operationMetadata29,
|
|
649
|
+
conversationsUpdate: operationMetadata30,
|
|
650
|
+
conversationsAddCategories: operationMetadata28,
|
|
651
|
+
conversationsRemoveCategories: operationMetadata31,
|
|
652
|
+
conversationsAddChannels: operationMetadata28,
|
|
653
|
+
conversationsRemoveChannels: operationMetadata31,
|
|
654
|
+
conversationsAddContacts: operationMetadata28,
|
|
655
|
+
conversationsRemoveContacts: operationMetadata31,
|
|
656
|
+
conversationsListMessages: operationMetadata27,
|
|
657
|
+
conversationsAddTags: operationMetadata28,
|
|
658
|
+
conversationsRemoveTags: operationMetadata31,
|
|
659
|
+
customFieldsList: operationMetadata32,
|
|
660
|
+
customFieldsCreate: operationMetadata33,
|
|
661
|
+
customFieldsRemove: operationMetadata34,
|
|
662
|
+
customFieldsUpdate: operationMetadata35,
|
|
663
|
+
emailListBlocks: operationMetadata36,
|
|
664
|
+
emailAddBlock: operationMetadata37,
|
|
665
|
+
emailRemoveBlock: operationMetadata38,
|
|
666
|
+
emailUpdateBlock: operationMetadata39,
|
|
667
|
+
emailCheckBlocked: operationMetadata37,
|
|
668
|
+
emailGetBlockLogs: operationMetadata36,
|
|
669
|
+
emailGetCatchAllConfig: operationMetadata40,
|
|
670
|
+
emailUpdateCatchAllConfig: operationMetadata39,
|
|
671
|
+
emailGetCatchAllStats: operationMetadata40,
|
|
672
|
+
emailListDomains: operationMetadata36,
|
|
673
|
+
emailAddDomain: operationMetadata37,
|
|
674
|
+
emailGetDomainById: operationMetadata40,
|
|
675
|
+
emailRemoveDomain: operationMetadata38,
|
|
676
|
+
emailUpdateDomainConfig: operationMetadata39,
|
|
677
|
+
emailGetCustomTracking: operationMetadata40,
|
|
678
|
+
emailEnableCustomTracking: operationMetadata37,
|
|
679
|
+
emailDisableCustomTracking: operationMetadata38,
|
|
680
|
+
emailGetCustomTrackingDomainConnect: operationMetadata40,
|
|
681
|
+
emailBuildCustomTrackingDomainConnectApplyUrl: operationMetadata37,
|
|
682
|
+
emailCompleteCustomTrackingDomainConnect: operationMetadata37,
|
|
683
|
+
emailRecheckCustomTracking: operationMetadata37,
|
|
684
|
+
emailSetDefaultDomain: operationMetadata37,
|
|
685
|
+
emailDisableCatchAll: operationMetadata37,
|
|
686
|
+
emailGetDomainConnect: operationMetadata40,
|
|
687
|
+
emailBuildDomainConnectApplyUrl: operationMetadata37,
|
|
688
|
+
emailCompleteDomainConnect: operationMetadata37,
|
|
689
|
+
emailEnableCatchAll: operationMetadata37,
|
|
690
|
+
emailEnableReceiving: operationMetadata37,
|
|
691
|
+
emailGetReceivingStatus: operationMetadata40,
|
|
692
|
+
emailDetectRegistrar: operationMetadata37,
|
|
693
|
+
emailRotateDomainDkim: operationMetadata37,
|
|
694
|
+
emailGetDomainVerification: operationMetadata40,
|
|
695
|
+
emailAdvanceDomainVerification: operationMetadata37,
|
|
696
|
+
emailGetDomainWarming: operationMetadata40,
|
|
697
|
+
emailCreateDomainWarmingPlan: operationMetadata37,
|
|
698
|
+
emailCancelDomainWarmingBatch: operationMetadata38,
|
|
699
|
+
emailCompleteDomainWarming: operationMetadata37,
|
|
700
|
+
emailPauseDomainWarming: operationMetadata37,
|
|
701
|
+
emailUpdateDomainWarmingPolicy: operationMetadata39,
|
|
702
|
+
emailResumeDomainWarming: operationMetadata37,
|
|
703
|
+
emailListForwardingRules: operationMetadata40,
|
|
704
|
+
emailCreateForwardingRule: operationMetadata37,
|
|
705
|
+
emailDeleteForwardingRule: operationMetadata38,
|
|
706
|
+
emailUpdateForwardingRule: operationMetadata39,
|
|
707
|
+
emailGetForwardingLog: operationMetadata36,
|
|
708
|
+
emailGetOnboardingReview: operationMetadata40,
|
|
709
|
+
emailReapplyOnboardingReview: operationMetadata37,
|
|
710
|
+
emailRespondToOnboardingInformationRequest: operationMetadata37,
|
|
711
|
+
emailListSenders: operationMetadata36,
|
|
712
|
+
emailAddSender: operationMetadata37,
|
|
713
|
+
emailGetSender: operationMetadata40,
|
|
714
|
+
emailRemoveSender: operationMetadata38,
|
|
715
|
+
emailSetDefaultSender: operationMetadata37,
|
|
716
|
+
emailCheckSenderVerification: operationMetadata40,
|
|
717
|
+
emailGetStats: operationMetadata40,
|
|
718
|
+
emailListSuppressions: operationMetadata36,
|
|
719
|
+
emailRemoveSuppression: operationMetadata38,
|
|
720
|
+
emailCountSuppressions: operationMetadata40,
|
|
721
|
+
emailGetTrackingDefaults: operationMetadata40,
|
|
722
|
+
emailUpdateTrackingDefaults: operationMetadata39,
|
|
723
|
+
emailGetRecipientTrackingPreference: operationMetadata40,
|
|
724
|
+
emailUpdateRecipientTrackingPreference: operationMetadata39,
|
|
725
|
+
eventsCreate: operationMetadata41,
|
|
726
|
+
eventsBatch: operationMetadata41,
|
|
727
|
+
extensionInstallationsList: operationMetadata42,
|
|
728
|
+
extensionInstallationsInstall: operationMetadata43,
|
|
729
|
+
extensionInstallationsGet: operationMetadata44,
|
|
730
|
+
extensionInstallationsUninstall: operationMetadata45,
|
|
731
|
+
extensionInstallationsDisable: operationMetadata43,
|
|
732
|
+
extensionInstallationsEnable: operationMetadata43,
|
|
733
|
+
extensionInstallationsListRuns: operationMetadata44,
|
|
734
|
+
extensionInstallationsGetRun: operationMetadata44,
|
|
735
|
+
extensionInstallationsUpgrade: operationMetadata43,
|
|
736
|
+
extensionsList: operationMetadata46,
|
|
737
|
+
extensionsPublish: operationMetadata47,
|
|
738
|
+
extensionsGet: operationMetadata48,
|
|
739
|
+
extensionsListVersions: operationMetadata46,
|
|
740
|
+
extensionsGetVersion: operationMetadata48,
|
|
741
|
+
feedbackSend: operationMetadata49,
|
|
742
|
+
journeysList: operationMetadata50,
|
|
743
|
+
journeysCreate: operationMetadata51,
|
|
744
|
+
journeysGet: operationMetadata52,
|
|
745
|
+
journeysRemove: operationMetadata53,
|
|
746
|
+
journeysUpdate: operationMetadata54,
|
|
747
|
+
journeysArchive: operationMetadata51,
|
|
748
|
+
journeysReplaceDraft: operationMetadata55,
|
|
749
|
+
journeysPause: operationMetadata51,
|
|
750
|
+
journeysPublish: operationMetadata51,
|
|
751
|
+
journeysResume: operationMetadata51,
|
|
752
|
+
journeysListRuns: operationMetadata50,
|
|
753
|
+
journeysGetRun: operationMetadata52,
|
|
754
|
+
journeysStats: operationMetadata52,
|
|
755
|
+
journeysGetVersion: operationMetadata52,
|
|
756
|
+
mailboxesList: operationMetadata56,
|
|
757
|
+
mailboxesCreate: operationMetadata57,
|
|
758
|
+
mailboxesGet: operationMetadata58,
|
|
759
|
+
mailboxesRemove: operationMetadata59,
|
|
760
|
+
mailboxesUpdate: operationMetadata60,
|
|
761
|
+
mailboxesListActions: operationMetadata56,
|
|
762
|
+
mailboxesGetAction: operationMetadata58,
|
|
763
|
+
mailboxesApproveAction: operationMetadata57,
|
|
764
|
+
mailboxesCancelAction: operationMetadata57,
|
|
765
|
+
mailboxesDenyAction: operationMetadata57,
|
|
766
|
+
mailboxesRetryAction: operationMetadata57,
|
|
767
|
+
mailboxesGetAgentActivity: operationMetadata58,
|
|
768
|
+
mailboxesListDrafts: operationMetadata56,
|
|
769
|
+
mailboxesCreateDraft: operationMetadata57,
|
|
770
|
+
mailboxesGetDraft: operationMetadata58,
|
|
771
|
+
mailboxesDeleteDraft: operationMetadata59,
|
|
772
|
+
mailboxesUpdateDraft: operationMetadata60,
|
|
773
|
+
mailboxesSendDraft: operationMetadata57,
|
|
774
|
+
mailboxesCreateEndpoint: operationMetadata57,
|
|
775
|
+
mailboxesRemoveEndpoint: operationMetadata59,
|
|
776
|
+
mailboxesUpdateEndpoint: operationMetadata60,
|
|
777
|
+
mailboxesListEvents: operationMetadata56,
|
|
778
|
+
mailboxesListFolders: operationMetadata58,
|
|
779
|
+
mailboxesListGrants: operationMetadata56,
|
|
780
|
+
mailboxesCreateGrant: operationMetadata57,
|
|
781
|
+
mailboxesRevokeGrant: operationMetadata59,
|
|
782
|
+
mailboxesUpdateGrant: operationMetadata60,
|
|
783
|
+
mailboxesListLabels: operationMetadata58,
|
|
784
|
+
mailboxesCreateLabel: operationMetadata57,
|
|
785
|
+
mailboxesDeleteLabel: operationMetadata59,
|
|
786
|
+
mailboxesUpdateLabel: operationMetadata60,
|
|
787
|
+
mailboxesSendMessage: operationMetadata57,
|
|
788
|
+
mailboxesGetMessage: operationMetadata58,
|
|
789
|
+
mailboxesGetMessageAttachment: operationMetadata58,
|
|
790
|
+
mailboxesCopyMessageAttachment: operationMetadata57,
|
|
791
|
+
mailboxesDiscardMessage: operationMetadata57,
|
|
792
|
+
mailboxesForward: operationMetadata57,
|
|
793
|
+
mailboxesGetMessageRaw: operationMetadata58,
|
|
794
|
+
mailboxesReleaseMessage: operationMetadata57,
|
|
795
|
+
mailboxesReply: operationMetadata57,
|
|
796
|
+
mailboxesReplyAll: operationMetadata57,
|
|
797
|
+
mailboxesPause: operationMetadata57,
|
|
798
|
+
mailboxesListPolicies: operationMetadata58,
|
|
799
|
+
mailboxesCreatePolicy: operationMetadata57,
|
|
800
|
+
mailboxesGetPolicy: operationMetadata58,
|
|
801
|
+
mailboxesDeletePolicy: operationMetadata59,
|
|
802
|
+
mailboxesUpdatePolicy: operationMetadata60,
|
|
803
|
+
mailboxesListQuarantine: operationMetadata56,
|
|
804
|
+
mailboxesResume: operationMetadata57,
|
|
805
|
+
mailboxesListThreads: operationMetadata56,
|
|
806
|
+
mailboxesGetThread: operationMetadata58,
|
|
807
|
+
mailboxesUpdateThread: operationMetadata60,
|
|
808
|
+
mailboxesGetThreadContent: operationMetadata56,
|
|
809
|
+
mailboxesAddThreadLabels: operationMetadata57,
|
|
810
|
+
mailboxesRemoveThreadLabels: operationMetadata59,
|
|
811
|
+
mailboxesListThreadMessages: operationMetadata56,
|
|
812
|
+
mailboxesListThreadNotes: operationMetadata56,
|
|
813
|
+
mailboxesCreateNote: operationMetadata57,
|
|
814
|
+
mailboxesDeleteNote: operationMetadata59,
|
|
815
|
+
mailboxesUpdateNote: operationMetadata60,
|
|
816
|
+
mediaCreate: operationMetadata61,
|
|
817
|
+
mediaGetById: operationMetadata62,
|
|
818
|
+
mediaRemove: operationMetadata63,
|
|
819
|
+
mediaComplete: operationMetadata61,
|
|
820
|
+
mediaDownloadUrl: operationMetadata62,
|
|
821
|
+
messagesList: operationMetadata64,
|
|
822
|
+
messagesSend: operationMetadata65,
|
|
823
|
+
messagesGet: operationMetadata66,
|
|
824
|
+
messagesRemove: operationMetadata67,
|
|
825
|
+
messagesGetContent: operationMetadata66,
|
|
826
|
+
messagesListDeliveries: operationMetadata66,
|
|
827
|
+
messagesGetEmail: operationMetadata66,
|
|
828
|
+
messagesGetEvents: operationMetadata64,
|
|
829
|
+
messagesGetStatus: operationMetadata66,
|
|
830
|
+
scheduledMessagesList: operationMetadata68,
|
|
831
|
+
scheduledMessagesCreate: operationMetadata69,
|
|
832
|
+
scheduledMessagesGet: operationMetadata70,
|
|
833
|
+
scheduledMessagesCancel: operationMetadata69,
|
|
834
|
+
scheduledMessagesResume: operationMetadata69,
|
|
835
|
+
messagesValidateEmail: operationMetadata65,
|
|
836
|
+
namespacesList: operationMetadata71,
|
|
837
|
+
namespacesCreate: operationMetadata72,
|
|
838
|
+
namespacesGet: operationMetadata73,
|
|
839
|
+
namespacesRemove: operationMetadata74,
|
|
840
|
+
namespacesUpdate: operationMetadata75,
|
|
841
|
+
operationsList: operationMetadata76,
|
|
842
|
+
operationsGet: operationMetadata77,
|
|
843
|
+
operationsRetry: operationMetadata78,
|
|
844
|
+
organizationsCreate: operationMetadata79,
|
|
845
|
+
organizationsGet: operationMetadata80,
|
|
846
|
+
organizationsUpdate: operationMetadata81,
|
|
847
|
+
organizationsGetProfile: operationMetadata80,
|
|
848
|
+
organizationsDelete: operationMetadata79,
|
|
849
|
+
organizationsGetTrustTier: operationMetadata80,
|
|
850
|
+
organizationsGetUsage: operationMetadata80,
|
|
851
|
+
subscriptionsSubscribe: operationMetadata82,
|
|
852
|
+
templatesList: operationMetadata83,
|
|
853
|
+
templatesCreate: operationMetadata84,
|
|
854
|
+
templatesGetById: operationMetadata85,
|
|
855
|
+
templatesRemove: operationMetadata86,
|
|
856
|
+
templatesUpdate: operationMetadata87,
|
|
857
|
+
templatesListInputContracts: operationMetadata83,
|
|
858
|
+
templatesGetInputContract: operationMetadata85,
|
|
859
|
+
templatesPublish: operationMetadata84,
|
|
860
|
+
templatesGetPublication: operationMetadata85,
|
|
861
|
+
templatesRenderPublication: operationMetadata84,
|
|
862
|
+
templatesGetGitRepository: operationMetadata85,
|
|
863
|
+
templatesIssueGitCredential: operationMetadata84,
|
|
864
|
+
templatesOpenWorkspace: operationMetadata84,
|
|
865
|
+
templatesPatchWorkspace: operationMetadata87,
|
|
866
|
+
templatesPutWorkspaceAsset: operationMetadata88,
|
|
867
|
+
templatesCheckWorkspace: operationMetadata84,
|
|
868
|
+
templatesResolveWorkspaceConflict: operationMetadata84,
|
|
869
|
+
templatesDiffWorkspace: operationMetadata84,
|
|
870
|
+
templatesRenderWorkspaceFixture: operationMetadata84,
|
|
871
|
+
templatesWorkspaceHistory: operationMetadata85,
|
|
872
|
+
templatesAttachWorkspaceResource: operationMetadata84,
|
|
873
|
+
templatesRemoveWorkspaceResource: operationMetadata84,
|
|
874
|
+
templatesRestoreWorkspace: operationMetadata84,
|
|
875
|
+
templatesSaveWorkspace: operationMetadata84,
|
|
876
|
+
templatesListFamilies: operationMetadata83,
|
|
877
|
+
templatesCreateFamily: operationMetadata84,
|
|
878
|
+
templatesGetFamily: operationMetadata85,
|
|
879
|
+
templatesDeleteFamily: operationMetadata86,
|
|
880
|
+
templatesRenameFamily: operationMetadata87,
|
|
881
|
+
templatesAttachFamilyMember: operationMetadata84,
|
|
882
|
+
templatesDetachFamilyMember: operationMetadata86,
|
|
883
|
+
templatesCreateFamilyFromTemplate: operationMetadata84,
|
|
884
|
+
templatesAddEntry: operationMetadata84,
|
|
885
|
+
unsubscribeList: operationMetadata89,
|
|
886
|
+
unsubscribeCreate: operationMetadata90,
|
|
887
|
+
unsubscribeRemove: operationMetadata91,
|
|
888
|
+
unsubscribeUpdate: operationMetadata92,
|
|
889
|
+
unsubscribeSetDefault: operationMetadata90,
|
|
890
|
+
unsubscribeListMembers: operationMetadata93,
|
|
891
|
+
unsubscribeAddEmails: operationMetadata90,
|
|
892
|
+
unsubscribeRemoveEmails: operationMetadata91,
|
|
893
|
+
unsubscribeCheckSubscription: operationMetadata89,
|
|
894
|
+
webhooksList: operationMetadata94,
|
|
895
|
+
webhooksCreate: operationMetadata95,
|
|
896
|
+
webhooksGet: operationMetadata96,
|
|
897
|
+
webhooksRemove: {
|
|
898
|
+
group: "Webhooks",
|
|
899
|
+
method: "DELETE",
|
|
900
|
+
paginated: false
|
|
901
|
+
},
|
|
902
|
+
webhooksUpdate: {
|
|
903
|
+
group: "Webhooks",
|
|
904
|
+
method: "PATCH",
|
|
905
|
+
paginated: false
|
|
906
|
+
},
|
|
907
|
+
webhooksRetryDelivery: operationMetadata95,
|
|
908
|
+
webhooksGetLogs: operationMetadata94,
|
|
909
|
+
webhooksRegenerateSecret: operationMetadata95,
|
|
910
|
+
webhooksGetStats: operationMetadata96,
|
|
911
|
+
webhooksTest: operationMetadata95,
|
|
912
|
+
whoamiGet: {
|
|
913
|
+
group: "Whoami",
|
|
914
|
+
method: "GET",
|
|
915
|
+
paginated: false
|
|
916
|
+
}
|
|
917
|
+
};
|
|
918
|
+
//#endregion
|
|
919
|
+
//#region src/effect/categories.ts
|
|
920
|
+
/**
|
|
921
|
+
* Semantic error-category helpers for the Effect SDK.
|
|
922
|
+
*
|
|
923
|
+
* Every operation's error channel carries the server's real tagged errors
|
|
924
|
+
* ({@link import("./index").ConflictError} …). These helpers let callers catch
|
|
925
|
+
* or test by *category* — auth, validation, throttling, transient … — without
|
|
926
|
+
* enumerating tags, and cover the raw transport/decode errors too. The category
|
|
927
|
+
* assignments are generated from the OpenAPI category extensions.
|
|
928
|
+
*
|
|
929
|
+
* @example
|
|
930
|
+
* ```ts
|
|
931
|
+
* import { catchAuthError, isRetryable } from "samva/effect";
|
|
932
|
+
*
|
|
933
|
+
* samva.messages.send(input).pipe(
|
|
934
|
+
* catchAuthError((error) => Effect.logError(`auth failed: ${error.message}`)),
|
|
935
|
+
* Effect.retry({ while: isRetryable }),
|
|
936
|
+
* );
|
|
937
|
+
* ```
|
|
938
|
+
*/
|
|
939
|
+
const emailChannelCategories = (reason) => {
|
|
940
|
+
switch (reason) {
|
|
941
|
+
case "auth": return ["auth"];
|
|
942
|
+
case "rejected": return ["validation"];
|
|
943
|
+
case "rate_limited": return ["throttling", "transient"];
|
|
944
|
+
case "transport": return ["transient"];
|
|
945
|
+
default: return [];
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
const categoriesOf = (error) => {
|
|
949
|
+
if (!Predicate$1.isObject(error) || typeof error._tag !== "string") return [];
|
|
950
|
+
if (error._tag === "EmailChannelError") return emailChannelCategories(error.reason);
|
|
951
|
+
return SamvaErrorMetadata[error._tag]?.categories ?? [];
|
|
952
|
+
};
|
|
953
|
+
const hasCategory = (error, category) => categoriesOf(error).includes(category);
|
|
954
|
+
const isRetryableError = (error) => {
|
|
955
|
+
if (!Predicate$1.isObject(error) || typeof error._tag !== "string") return false;
|
|
956
|
+
if (error._tag === "EmailChannelError") return categoriesOf(error).includes("transient");
|
|
957
|
+
return SamvaErrorMetadata[error._tag]?.retryable ?? false;
|
|
958
|
+
};
|
|
959
|
+
const categoryGuard = (category) => (error) => hasCategory(error, category);
|
|
960
|
+
const isAuthError = categoryGuard("auth");
|
|
961
|
+
const isValidationError = categoryGuard("validation");
|
|
962
|
+
const isNotFoundError = categoryGuard("notFound");
|
|
963
|
+
const isConflictError = categoryGuard("conflict");
|
|
964
|
+
const isThrottlingError = categoryGuard("throttling");
|
|
965
|
+
const isBillingError = categoryGuard("billing");
|
|
966
|
+
/**
|
|
967
|
+
* Network-level request failure (no HTTP response). Only `TransportError` is
|
|
968
|
+
* transient/retryable: `EncodeError` and `InvalidUrlError` are deterministic
|
|
969
|
+
* programmer errors (bad input, bad URL) that would fail identically on every
|
|
970
|
+
* attempt — retrying them would loop forever.
|
|
971
|
+
*/
|
|
972
|
+
const isRequestTransportError = (error) => {
|
|
973
|
+
if (!Predicate$1.isTagged(error, "HttpClientError")) return false;
|
|
974
|
+
const reason = error.reason;
|
|
975
|
+
return Predicate$1.isObject(reason) && Predicate$1.isTagged(reason, "TransportError");
|
|
976
|
+
};
|
|
977
|
+
/** True for transient failures, including raw request-transport errors. */
|
|
978
|
+
const isTransient = (error) => hasCategory(error, "transient") || isRequestTransportError(error);
|
|
979
|
+
/** True when an error is declared safe to retry (throttling / transient / transport). */
|
|
980
|
+
const isRetryable = (error) => isRetryableError(error) || isRequestTransportError(error);
|
|
981
|
+
/**
|
|
982
|
+
* Catch every error in `category`. The handler receives the category's error
|
|
983
|
+
* union — including `EmailChannelError` where its `reason` can place it in the
|
|
984
|
+
* category — while only total-membership classes are narrowed out of the error
|
|
985
|
+
* channel (`EmailChannelError` stays: instances with other reasons pass through).
|
|
986
|
+
*/
|
|
987
|
+
const catchCategory = (category, handler) => (effect) => {
|
|
988
|
+
const inCategory = (error) => hasCategory(error, category);
|
|
989
|
+
const outsideCategory = (error) => !hasCategory(error, category);
|
|
990
|
+
return Effect.catch(effect, (error) => {
|
|
991
|
+
if (inCategory(error)) return handler(error);
|
|
992
|
+
if (outsideCategory(error)) return Effect.fail(error);
|
|
993
|
+
return Effect.die(error);
|
|
994
|
+
});
|
|
995
|
+
};
|
|
996
|
+
const catchAuthError = (handler) => catchCategory("auth", handler);
|
|
997
|
+
const catchValidationError = (handler) => catchCategory("validation", handler);
|
|
998
|
+
const catchNotFoundError = (handler) => catchCategory("notFound", handler);
|
|
999
|
+
const catchConflictError = (handler) => catchCategory("conflict", handler);
|
|
1000
|
+
const catchThrottlingError = (handler) => catchCategory("throttling", handler);
|
|
1001
|
+
const catchBillingError = (handler) => catchCategory("billing", handler);
|
|
1002
|
+
/**
|
|
1003
|
+
* Catch transient failures — including raw request-transport errors — for
|
|
1004
|
+
* fallback/degrade paths. The declared error channel is left intact because
|
|
1005
|
+
* transient covers untyped transport errors as well.
|
|
1006
|
+
*/
|
|
1007
|
+
const catchTransient = (handler) => (effect) => Effect.catchIf(effect, isTransient, handler);
|
|
1008
|
+
//#endregion
|
|
1009
|
+
export { isTransient as _, catchNotFoundError as a, catchValidationError as c, isAuthError as d, isBillingError as f, isThrottlingError as g, isRetryable as h, catchConflictError as i, categoriesOf as l, isNotFoundError as m, catchBillingError as n, catchThrottlingError as o, isConflictError as p, catchCategory as r, catchTransient as s, catchAuthError as t, hasCategory as u, isValidationError as v, SamvaOperations as y };
|
|
1010
|
+
|
|
1011
|
+
//# sourceMappingURL=categories-CA4XIQAb.js.map
|