@superdurable/connector-campaignmonitor 0.1.0 → 0.2.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.
@@ -0,0 +1,1092 @@
1
+ // src/generated/models.ts
2
+ import { z } from "zod";
3
+ import { SecretString } from "@superdurable/connectors-sdk";
4
+ var nativeJSON = JSON;
5
+ var signedIntegerToken = /^-?(?:0|[1-9][0-9]*)$/;
6
+ var minimumSignedInteger = -(1n << 63n);
7
+ var maximumSignedInteger = (1n << 63n) - 1n;
8
+ function decodeSignedInteger(value) {
9
+ if (typeof value === "number" && Number.isSafeInteger(value)) return value === 0 ? 0 : value;
10
+ if (!nativeJSON.isRawJSON(value) || value.rawJSON.length > 20 || !signedIntegerToken.test(value.rawJSON)) {
11
+ throw new TypeError("expected a signed 64-bit integer");
12
+ }
13
+ const integer = BigInt(value.rawJSON);
14
+ if (integer < minimumSignedInteger || integer > maximumSignedInteger) throw new RangeError("signed 64-bit integer out of range");
15
+ const number = Number(integer);
16
+ return Number.isSafeInteger(number) ? number : value;
17
+ }
18
+ var signedIntegerSchema = z.unknown().transform((value, context) => {
19
+ try {
20
+ return decodeSignedInteger(value);
21
+ } catch {
22
+ context.addIssue({ code: "custom", message: "expected a signed 64-bit integer" });
23
+ return z.NEVER;
24
+ }
25
+ });
26
+ function parseJSONNumberTokens(text) {
27
+ return JSON.parse(text, (_key, value, context) => typeof value === "number" && context?.source !== void 0 ? nativeJSON.rawJSON(context.source) : value);
28
+ }
29
+ function parseExactIntegerJSON(text) {
30
+ return JSON.parse(text, (_key, field, context) => typeof field === "number" && !Number.isSafeInteger(field) && context?.source && signedIntegerToken.test(context.source) ? nativeJSON.rawJSON(context.source) : field);
31
+ }
32
+ function exactIntegerJSONCodec(decode) {
33
+ return {
34
+ typeName: "json",
35
+ wireKind: "json",
36
+ encode(value) {
37
+ const data = JSON.stringify(value, (_key, field) => {
38
+ if (typeof field === "number" && Number.isInteger(field) && !Number.isSafeInteger(field)) {
39
+ throw new RangeError("use a raw JSON token for integers outside the safe number range");
40
+ }
41
+ return field;
42
+ });
43
+ if (data === void 0) throw new TypeError("value cannot be encoded as JSON");
44
+ return { kind: "json", data };
45
+ },
46
+ decode(wire) {
47
+ if (wire.kind !== "json" || typeof wire.data !== "string") throw new TypeError("expected Dex JSON wire data");
48
+ const value = parseExactIntegerJSON(wire.data);
49
+ return decode ? decode(value) : value;
50
+ }
51
+ };
52
+ }
53
+ var ConfigSchema = z.object({
54
+ "baseUrl": z.string().optional(),
55
+ "timeoutMs": z.number().int().optional(),
56
+ "maxResponseBytes": z.number().int().optional()
57
+ });
58
+ var CredentialMaterialError = class extends TypeError {
59
+ constructor(message) {
60
+ super(message);
61
+ this.name = "CredentialMaterialError";
62
+ }
63
+ };
64
+ var sdkCredentialDecodingFailureMessages = /* @__PURE__ */ new Set([
65
+ "project credential decoding failed",
66
+ "shared project credential decoding failed",
67
+ "project credential decoding failed: this connector version does not support shared credentials"
68
+ ]);
69
+ function isCredentialMaterialError(error) {
70
+ return error instanceof CredentialMaterialError || error instanceof TypeError && sdkCredentialDecodingFailureMessages.has(error.message);
71
+ }
72
+ function decodeCredentials(value) {
73
+ if (!value || typeof value !== "object" || Array.isArray(value)) throw new CredentialMaterialError("credential fields are invalid");
74
+ const fields = value;
75
+ const allowed = /* @__PURE__ */ new Set(["api_key"]);
76
+ if (Object.keys(fields).some((key) => !allowed.has(key))) throw new CredentialMaterialError("stored credential does not match the connector credential fields");
77
+ if (fields["api_key"] != null && !(typeof fields["api_key"] === "string")) throw new CredentialMaterialError("credential api_key has an invalid type");
78
+ const credentials = {};
79
+ if (!fields["api_key"]) throw new CredentialMaterialError("credential api_key is required");
80
+ credentials.apiKey = new SecretString(fields["api_key"] ?? "");
81
+ return credentials;
82
+ }
83
+ var ListCampaignsInputSchema = z.strictObject({
84
+ "clientId": z.string(),
85
+ "status": z.string().optional(),
86
+ "pageNumber": signedIntegerSchema.optional(),
87
+ "pageSize": signedIntegerSchema.optional()
88
+ });
89
+ var CampaignProfileSchema = z.strictObject({
90
+ "id": z.string(),
91
+ "name": z.string(),
92
+ "subject": z.string(),
93
+ "status": z.string()
94
+ });
95
+ var CampaignsPageSchema = z.strictObject({
96
+ "campaigns": z.array(CampaignProfileSchema).nullable(),
97
+ "pageNumber": signedIntegerSchema,
98
+ "pageSize": signedIntegerSchema,
99
+ "totalRecords": signedIntegerSchema,
100
+ "numberOfPages": signedIntegerSchema
101
+ });
102
+ var GetCampaignSummaryInputSchema = z.strictObject({
103
+ "campaignId": z.string()
104
+ });
105
+ var CampaignSummarySchema = z.strictObject({
106
+ "name": z.string(),
107
+ "recipients": signedIntegerSchema,
108
+ "totalOpened": signedIntegerSchema,
109
+ "clicks": signedIntegerSchema,
110
+ "unsubscribed": signedIntegerSchema
111
+ });
112
+ var CreateDraftCampaignInputSchema = z.strictObject({
113
+ "clientId": z.string(),
114
+ "name": z.string(),
115
+ "subject": z.string(),
116
+ "fromName": z.string(),
117
+ "fromEmail": z.string(),
118
+ "replyTo": z.string(),
119
+ "htmlUrl": z.string(),
120
+ "listIds": z.array(z.string()).optional(),
121
+ "segmentIds": z.array(z.string()).optional(),
122
+ "inlineCss": z.boolean().optional()
123
+ });
124
+ var CampaignIdentitySchema = z.strictObject({
125
+ "id": z.string(),
126
+ "name": z.string()
127
+ });
128
+ var SendCampaignInputSchema = z.strictObject({
129
+ "clientId": z.string(),
130
+ "campaignId": z.string(),
131
+ "confirmationEmail": z.string(),
132
+ "sendDate": z.string().optional()
133
+ });
134
+ var SendCampaignPreviewInputSchema = z.strictObject({
135
+ "campaignId": z.string(),
136
+ "recipients": z.array(z.string()).nullable()
137
+ });
138
+ var UnscheduleCampaignInputSchema = z.strictObject({
139
+ "campaignId": z.string()
140
+ });
141
+ var DeleteCampaignInputSchema = z.strictObject({
142
+ "campaignId": z.string()
143
+ });
144
+ var ListSegmentsInputSchema = z.strictObject({
145
+ "listId": z.string()
146
+ });
147
+ var SegmentIdentitySchema = z.strictObject({
148
+ "id": z.string(),
149
+ "listId": z.string(),
150
+ "title": z.string()
151
+ });
152
+ var SegmentsListSchema = z.strictObject({
153
+ "segments": z.array(SegmentIdentitySchema).nullable()
154
+ });
155
+ var GetSegmentInputSchema = z.strictObject({
156
+ "segmentId": z.string()
157
+ });
158
+ var SegmentRuleSchema = z.strictObject({
159
+ "ruleType": z.string(),
160
+ "clause": z.string()
161
+ });
162
+ var SegmentRuleGroupSchema = z.strictObject({
163
+ "rules": z.array(SegmentRuleSchema).nullable()
164
+ });
165
+ var SegmentProfileSchema = z.strictObject({
166
+ "id": z.string(),
167
+ "listId": z.string(),
168
+ "title": z.string(),
169
+ "activeSubscribers": signedIntegerSchema,
170
+ "ruleGroups": z.array(SegmentRuleGroupSchema).nullable()
171
+ });
172
+ var CreateSegmentInputSchema = z.strictObject({
173
+ "listId": z.string(),
174
+ "title": z.string(),
175
+ "ruleGroups": z.array(SegmentRuleGroupSchema).optional()
176
+ });
177
+ var UpdateSegmentInputSchema = z.strictObject({
178
+ "segmentId": z.string(),
179
+ "title": z.string(),
180
+ "ruleGroups": z.array(SegmentRuleGroupSchema).optional()
181
+ });
182
+ var DeleteSegmentInputSchema = z.strictObject({
183
+ "segmentId": z.string()
184
+ });
185
+ var GetListInputSchema = z.strictObject({
186
+ "listId": z.string()
187
+ });
188
+ var ListProfileSchema = z.strictObject({
189
+ "id": z.string(),
190
+ "title": z.string(),
191
+ "unsubscribeSetting": z.string(),
192
+ "confirmedOptIn": z.boolean(),
193
+ "unsubscribePage": z.string().optional(),
194
+ "confirmationSuccessPage": z.string().optional()
195
+ });
196
+ var CreateListInputSchema = z.strictObject({
197
+ "clientId": z.string(),
198
+ "title": z.string(),
199
+ "unsubscribeSetting": z.string(),
200
+ "confirmedOptIn": z.boolean(),
201
+ "unsubscribePage": z.string().optional(),
202
+ "confirmationSuccessPage": z.string().optional()
203
+ });
204
+ var ListIdentitySchema = z.strictObject({
205
+ "id": z.string(),
206
+ "title": z.string()
207
+ });
208
+ var UpdateListInputSchema = z.strictObject({
209
+ "listId": z.string(),
210
+ "title": z.string(),
211
+ "unsubscribeSetting": z.string(),
212
+ "confirmedOptIn": z.boolean(),
213
+ "unsubscribePage": z.string().optional(),
214
+ "confirmationSuccessPage": z.string().optional()
215
+ });
216
+ var DeleteListInputSchema = z.strictObject({
217
+ "listId": z.string()
218
+ });
219
+ var ListSubscribersInputSchema = z.strictObject({
220
+ "listId": z.string(),
221
+ "state": z.string().optional(),
222
+ "pageNumber": signedIntegerSchema.optional(),
223
+ "pageSize": signedIntegerSchema.optional()
224
+ });
225
+ var SubscriberProfileSchema = z.strictObject({
226
+ "email": z.string(),
227
+ "name": z.string(),
228
+ "state": z.string()
229
+ });
230
+ var SubscribersPageSchema = z.strictObject({
231
+ "subscribers": z.array(SubscriberProfileSchema).nullable(),
232
+ "pageNumber": signedIntegerSchema,
233
+ "pageSize": signedIntegerSchema,
234
+ "totalRecords": signedIntegerSchema,
235
+ "numberOfPages": signedIntegerSchema
236
+ });
237
+ var ListSubscriberListsInputSchema = z.strictObject({
238
+ "clientId": z.string()
239
+ });
240
+ var SubscriberListIdentitySchema = z.strictObject({
241
+ "id": z.string(),
242
+ "name": z.string()
243
+ });
244
+ var SubscriberListsSchema = z.strictObject({
245
+ "lists": z.array(SubscriberListIdentitySchema).nullable()
246
+ });
247
+ var GetSubscriberInputSchema = z.strictObject({
248
+ "listId": z.string(),
249
+ "email": z.string()
250
+ });
251
+ var UpsertSubscriberInputSchema = z.strictObject({
252
+ "listId": z.string(),
253
+ "email": z.string(),
254
+ "name": z.string()
255
+ });
256
+ var SubscriberIdentitySchema = z.strictObject({
257
+ "email": z.string()
258
+ });
259
+ var UpdateSubscriberInputSchema = z.strictObject({
260
+ "listId": z.string(),
261
+ "email": z.string(),
262
+ "name": z.string()
263
+ });
264
+ var DeleteSubscriberInputSchema = z.strictObject({
265
+ "listId": z.string(),
266
+ "email": z.string()
267
+ });
268
+ var UnsubscribeSubscriberInputSchema = z.strictObject({
269
+ "listId": z.string(),
270
+ "email": z.string()
271
+ });
272
+ var ListClientsInputSchema = z.strictObject({});
273
+ var ClientMetadataSchema = z.strictObject({
274
+ "id": z.string(),
275
+ "name": z.string()
276
+ });
277
+ var ClientsListSchema = z.strictObject({
278
+ "clients": z.array(ClientMetadataSchema).nullable()
279
+ });
280
+
281
+ // src/generated/definitions.ts
282
+ var ConnectorID = "campaignmonitor";
283
+ var ProviderID = "campaignmonitor";
284
+ var ListCampaignsBranch = {
285
+ Listed: "listed",
286
+ ProviderRejected: "providerRejected",
287
+ InvalidResponse: "invalidResponse",
288
+ Defect: "defect"
289
+ };
290
+ var ListCampaignsBranchListed = ListCampaignsBranch.Listed;
291
+ var ListCampaignsBranchProviderRejected = ListCampaignsBranch.ProviderRejected;
292
+ var ListCampaignsBranchInvalidResponse = ListCampaignsBranch.InvalidResponse;
293
+ var ListCampaignsBranchDefect = ListCampaignsBranch.Defect;
294
+ var ListCampaignsDefinition = {
295
+ operation: { connectorId: ConnectorID, operationId: "listCampaigns" },
296
+ branches: [
297
+ { id: "listed", description: "Campaign Monitor returned the campaigns." },
298
+ { id: "providerRejected", description: "Campaign Monitor rejected the lookup.", optional: true },
299
+ { id: "invalidResponse", description: "Campaign Monitor returned invalid JSON.", optional: true },
300
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
301
+ ],
302
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
303
+ };
304
+ var ListCampaignsMetadata = { kind: "query", idempotency: "none", authorization: "required" };
305
+ var GetCampaignSummaryBranch = {
306
+ Found: "found",
307
+ NotFound: "notFound",
308
+ ProviderRejected: "providerRejected",
309
+ InvalidResponse: "invalidResponse",
310
+ Defect: "defect"
311
+ };
312
+ var GetCampaignSummaryBranchFound = GetCampaignSummaryBranch.Found;
313
+ var GetCampaignSummaryBranchNotFound = GetCampaignSummaryBranch.NotFound;
314
+ var GetCampaignSummaryBranchProviderRejected = GetCampaignSummaryBranch.ProviderRejected;
315
+ var GetCampaignSummaryBranchInvalidResponse = GetCampaignSummaryBranch.InvalidResponse;
316
+ var GetCampaignSummaryBranchDefect = GetCampaignSummaryBranch.Defect;
317
+ var GetCampaignSummaryDefinition = {
318
+ operation: { connectorId: ConnectorID, operationId: "getCampaignSummary" },
319
+ branches: [
320
+ { id: "found", description: "Campaign Monitor returned the summary." },
321
+ { id: "notFound", description: "Campaign Monitor did not find the campaign.", optional: true },
322
+ { id: "providerRejected", description: "Campaign Monitor rejected the lookup.", optional: true },
323
+ { id: "invalidResponse", description: "Campaign Monitor returned invalid JSON.", optional: true },
324
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
325
+ ],
326
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
327
+ };
328
+ var GetCampaignSummaryMetadata = { kind: "query", idempotency: "none", authorization: "required" };
329
+ var CreateDraftCampaignBranch = {
330
+ Created: "created",
331
+ ProviderRejected: "providerRejected",
332
+ Uncertain: "uncertain",
333
+ Defect: "defect"
334
+ };
335
+ var CreateDraftCampaignBranchCreated = CreateDraftCampaignBranch.Created;
336
+ var CreateDraftCampaignBranchProviderRejected = CreateDraftCampaignBranch.ProviderRejected;
337
+ var CreateDraftCampaignBranchUncertain = CreateDraftCampaignBranch.Uncertain;
338
+ var CreateDraftCampaignBranchDefect = CreateDraftCampaignBranch.Defect;
339
+ var CreateDraftCampaignDefinition = {
340
+ operation: { connectorId: ConnectorID, operationId: "createDraftCampaign" },
341
+ branches: [
342
+ { id: "created", description: "Campaign Monitor created the draft." },
343
+ { id: "providerRejected", description: "Campaign Monitor rejected draft creation.", optional: true },
344
+ { id: "uncertain", description: "A draft may have been created but cannot be confirmed.", optional: true },
345
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
346
+ ],
347
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync" },
348
+ repeatOnUnknown: "limited",
349
+ maxSends: 3
350
+ };
351
+ var CreateDraftCampaignMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
352
+ var SendCampaignBranch = {
353
+ Sent: "sent",
354
+ ProviderRejected: "providerRejected",
355
+ Uncertain: "uncertain",
356
+ Defect: "defect"
357
+ };
358
+ var SendCampaignBranchSent = SendCampaignBranch.Sent;
359
+ var SendCampaignBranchProviderRejected = SendCampaignBranch.ProviderRejected;
360
+ var SendCampaignBranchUncertain = SendCampaignBranch.Uncertain;
361
+ var SendCampaignBranchDefect = SendCampaignBranch.Defect;
362
+ var SendCampaignDefinition = {
363
+ operation: { connectorId: ConnectorID, operationId: "sendCampaign" },
364
+ branches: [
365
+ { id: "sent", description: "Campaign Monitor accepted the campaign send." },
366
+ { id: "providerRejected", description: "Campaign Monitor rejected the send.", optional: true },
367
+ { id: "uncertain", description: "The campaign may have sent but cannot be confirmed.", optional: true },
368
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
369
+ ],
370
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync" },
371
+ repeatOnUnknown: "limited",
372
+ maxSends: 3
373
+ };
374
+ var SendCampaignMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
375
+ var SendCampaignPreviewBranch = {
376
+ Sent: "sent",
377
+ ProviderRejected: "providerRejected",
378
+ Uncertain: "uncertain",
379
+ Defect: "defect"
380
+ };
381
+ var SendCampaignPreviewBranchSent = SendCampaignPreviewBranch.Sent;
382
+ var SendCampaignPreviewBranchProviderRejected = SendCampaignPreviewBranch.ProviderRejected;
383
+ var SendCampaignPreviewBranchUncertain = SendCampaignPreviewBranch.Uncertain;
384
+ var SendCampaignPreviewBranchDefect = SendCampaignPreviewBranch.Defect;
385
+ var SendCampaignPreviewDefinition = {
386
+ operation: { connectorId: ConnectorID, operationId: "sendCampaignPreview" },
387
+ branches: [
388
+ { id: "sent", description: "Campaign Monitor accepted the preview." },
389
+ { id: "providerRejected", description: "Campaign Monitor rejected the preview.", optional: true },
390
+ { id: "uncertain", description: "A preview may have sent but cannot be confirmed.", optional: true },
391
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
392
+ ],
393
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync" },
394
+ repeatOnUnknown: "limited",
395
+ maxSends: 3
396
+ };
397
+ var SendCampaignPreviewMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
398
+ var UnscheduleCampaignBranch = {
399
+ Unscheduled: "unscheduled",
400
+ ProviderRejected: "providerRejected",
401
+ InvalidResponse: "invalidResponse",
402
+ Defect: "defect"
403
+ };
404
+ var UnscheduleCampaignBranchUnscheduled = UnscheduleCampaignBranch.Unscheduled;
405
+ var UnscheduleCampaignBranchProviderRejected = UnscheduleCampaignBranch.ProviderRejected;
406
+ var UnscheduleCampaignBranchInvalidResponse = UnscheduleCampaignBranch.InvalidResponse;
407
+ var UnscheduleCampaignBranchDefect = UnscheduleCampaignBranch.Defect;
408
+ var UnscheduleCampaignDefinition = {
409
+ operation: { connectorId: ConnectorID, operationId: "unscheduleCampaign" },
410
+ branches: [
411
+ { id: "unscheduled", description: "Campaign Monitor unscheduled the campaign." },
412
+ { id: "providerRejected", description: "Campaign Monitor rejected unscheduling.", optional: true },
413
+ { id: "invalidResponse", description: "Campaign Monitor returned an oversized response.", optional: true },
414
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
415
+ ],
416
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
417
+ repeatOnUnknown: "safe"
418
+ };
419
+ var UnscheduleCampaignMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
420
+ var DeleteCampaignBranch = {
421
+ Deleted: "deleted",
422
+ ProviderRejected: "providerRejected",
423
+ InvalidResponse: "invalidResponse",
424
+ Defect: "defect"
425
+ };
426
+ var DeleteCampaignBranchDeleted = DeleteCampaignBranch.Deleted;
427
+ var DeleteCampaignBranchProviderRejected = DeleteCampaignBranch.ProviderRejected;
428
+ var DeleteCampaignBranchInvalidResponse = DeleteCampaignBranch.InvalidResponse;
429
+ var DeleteCampaignBranchDefect = DeleteCampaignBranch.Defect;
430
+ var DeleteCampaignDefinition = {
431
+ operation: { connectorId: ConnectorID, operationId: "deleteCampaign" },
432
+ branches: [
433
+ { id: "deleted", description: "Campaign Monitor deleted the campaign." },
434
+ { id: "providerRejected", description: "Campaign Monitor rejected deletion.", optional: true },
435
+ { id: "invalidResponse", description: "Campaign Monitor returned an oversized response.", optional: true },
436
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
437
+ ],
438
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
439
+ repeatOnUnknown: "safe"
440
+ };
441
+ var DeleteCampaignMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
442
+ var ListSegmentsBranch = {
443
+ Listed: "listed",
444
+ ProviderRejected: "providerRejected",
445
+ InvalidResponse: "invalidResponse",
446
+ Defect: "defect"
447
+ };
448
+ var ListSegmentsBranchListed = ListSegmentsBranch.Listed;
449
+ var ListSegmentsBranchProviderRejected = ListSegmentsBranch.ProviderRejected;
450
+ var ListSegmentsBranchInvalidResponse = ListSegmentsBranch.InvalidResponse;
451
+ var ListSegmentsBranchDefect = ListSegmentsBranch.Defect;
452
+ var ListSegmentsDefinition = {
453
+ operation: { connectorId: ConnectorID, operationId: "listSegments" },
454
+ branches: [
455
+ { id: "listed", description: "Campaign Monitor returned the list's segments." },
456
+ { id: "providerRejected", description: "Campaign Monitor rejected segment discovery.", optional: true },
457
+ { id: "invalidResponse", description: "Campaign Monitor returned invalid JSON.", optional: true },
458
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
459
+ ],
460
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
461
+ };
462
+ var ListSegmentsMetadata = { kind: "query", idempotency: "none", authorization: "required" };
463
+ var GetSegmentBranch = {
464
+ Found: "found",
465
+ NotFound: "notFound",
466
+ ProviderRejected: "providerRejected",
467
+ InvalidResponse: "invalidResponse",
468
+ Defect: "defect"
469
+ };
470
+ var GetSegmentBranchFound = GetSegmentBranch.Found;
471
+ var GetSegmentBranchNotFound = GetSegmentBranch.NotFound;
472
+ var GetSegmentBranchProviderRejected = GetSegmentBranch.ProviderRejected;
473
+ var GetSegmentBranchInvalidResponse = GetSegmentBranch.InvalidResponse;
474
+ var GetSegmentBranchDefect = GetSegmentBranch.Defect;
475
+ var GetSegmentDefinition = {
476
+ operation: { connectorId: ConnectorID, operationId: "getSegment" },
477
+ branches: [
478
+ { id: "found", description: "Campaign Monitor returned the segment." },
479
+ { id: "notFound", description: "Campaign Monitor did not find the segment.", optional: true },
480
+ { id: "providerRejected", description: "Campaign Monitor rejected the lookup.", optional: true },
481
+ { id: "invalidResponse", description: "Campaign Monitor returned invalid JSON.", optional: true },
482
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
483
+ ],
484
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
485
+ };
486
+ var GetSegmentMetadata = { kind: "query", idempotency: "none", authorization: "required" };
487
+ var CreateSegmentBranch = {
488
+ Created: "created",
489
+ ProviderRejected: "providerRejected",
490
+ Uncertain: "uncertain",
491
+ Defect: "defect"
492
+ };
493
+ var CreateSegmentBranchCreated = CreateSegmentBranch.Created;
494
+ var CreateSegmentBranchProviderRejected = CreateSegmentBranch.ProviderRejected;
495
+ var CreateSegmentBranchUncertain = CreateSegmentBranch.Uncertain;
496
+ var CreateSegmentBranchDefect = CreateSegmentBranch.Defect;
497
+ var CreateSegmentDefinition = {
498
+ operation: { connectorId: ConnectorID, operationId: "createSegment" },
499
+ branches: [
500
+ { id: "created", description: "Campaign Monitor created the segment." },
501
+ { id: "providerRejected", description: "Campaign Monitor rejected segment creation.", optional: true },
502
+ { id: "uncertain", description: "A segment may have been created but cannot be confirmed.", optional: true },
503
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
504
+ ],
505
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync" },
506
+ repeatOnUnknown: "limited",
507
+ maxSends: 3
508
+ };
509
+ var CreateSegmentMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
510
+ var UpdateSegmentBranch = {
511
+ Updated: "updated",
512
+ NotFound: "notFound",
513
+ ProviderRejected: "providerRejected",
514
+ InvalidResponse: "invalidResponse",
515
+ Defect: "defect"
516
+ };
517
+ var UpdateSegmentBranchUpdated = UpdateSegmentBranch.Updated;
518
+ var UpdateSegmentBranchNotFound = UpdateSegmentBranch.NotFound;
519
+ var UpdateSegmentBranchProviderRejected = UpdateSegmentBranch.ProviderRejected;
520
+ var UpdateSegmentBranchInvalidResponse = UpdateSegmentBranch.InvalidResponse;
521
+ var UpdateSegmentBranchDefect = UpdateSegmentBranch.Defect;
522
+ var UpdateSegmentDefinition = {
523
+ operation: { connectorId: ConnectorID, operationId: "updateSegment" },
524
+ branches: [
525
+ { id: "updated", description: "Campaign Monitor updated the segment." },
526
+ { id: "notFound", description: "Campaign Monitor did not find the segment.", optional: true },
527
+ { id: "providerRejected", description: "Campaign Monitor rejected the update.", optional: true },
528
+ { id: "invalidResponse", description: "Campaign Monitor returned an oversized response.", optional: true },
529
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
530
+ ],
531
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
532
+ repeatOnUnknown: "safe"
533
+ };
534
+ var UpdateSegmentMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
535
+ var DeleteSegmentBranch = {
536
+ Deleted: "deleted",
537
+ ProviderRejected: "providerRejected",
538
+ InvalidResponse: "invalidResponse",
539
+ Defect: "defect"
540
+ };
541
+ var DeleteSegmentBranchDeleted = DeleteSegmentBranch.Deleted;
542
+ var DeleteSegmentBranchProviderRejected = DeleteSegmentBranch.ProviderRejected;
543
+ var DeleteSegmentBranchInvalidResponse = DeleteSegmentBranch.InvalidResponse;
544
+ var DeleteSegmentBranchDefect = DeleteSegmentBranch.Defect;
545
+ var DeleteSegmentDefinition = {
546
+ operation: { connectorId: ConnectorID, operationId: "deleteSegment" },
547
+ branches: [
548
+ { id: "deleted", description: "Campaign Monitor deleted the segment." },
549
+ { id: "providerRejected", description: "Campaign Monitor rejected deletion.", optional: true },
550
+ { id: "invalidResponse", description: "Campaign Monitor returned an oversized response.", optional: true },
551
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
552
+ ],
553
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
554
+ repeatOnUnknown: "safe"
555
+ };
556
+ var DeleteSegmentMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
557
+ var GetListBranch = {
558
+ Found: "found",
559
+ NotFound: "notFound",
560
+ ProviderRejected: "providerRejected",
561
+ InvalidResponse: "invalidResponse",
562
+ Defect: "defect"
563
+ };
564
+ var GetListBranchFound = GetListBranch.Found;
565
+ var GetListBranchNotFound = GetListBranch.NotFound;
566
+ var GetListBranchProviderRejected = GetListBranch.ProviderRejected;
567
+ var GetListBranchInvalidResponse = GetListBranch.InvalidResponse;
568
+ var GetListBranchDefect = GetListBranch.Defect;
569
+ var GetListDefinition = {
570
+ operation: { connectorId: ConnectorID, operationId: "getList" },
571
+ branches: [
572
+ { id: "found", description: "Campaign Monitor returned the list." },
573
+ { id: "notFound", description: "Campaign Monitor did not find the list.", optional: true },
574
+ { id: "providerRejected", description: "Campaign Monitor rejected the lookup.", optional: true },
575
+ { id: "invalidResponse", description: "Campaign Monitor returned invalid JSON.", optional: true },
576
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
577
+ ],
578
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
579
+ };
580
+ var GetListMetadata = { kind: "query", idempotency: "none", authorization: "required" };
581
+ var CreateListBranch = {
582
+ Created: "created",
583
+ ProviderRejected: "providerRejected",
584
+ Uncertain: "uncertain",
585
+ Defect: "defect"
586
+ };
587
+ var CreateListBranchCreated = CreateListBranch.Created;
588
+ var CreateListBranchProviderRejected = CreateListBranch.ProviderRejected;
589
+ var CreateListBranchUncertain = CreateListBranch.Uncertain;
590
+ var CreateListBranchDefect = CreateListBranch.Defect;
591
+ var CreateListDefinition = {
592
+ operation: { connectorId: ConnectorID, operationId: "createList" },
593
+ branches: [
594
+ { id: "created", description: "Campaign Monitor created the list." },
595
+ { id: "providerRejected", description: "Campaign Monitor rejected list creation.", optional: true },
596
+ { id: "uncertain", description: "A list may have been created but cannot be confirmed.", optional: true },
597
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
598
+ ],
599
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync" },
600
+ repeatOnUnknown: "limited",
601
+ maxSends: 3
602
+ };
603
+ var CreateListMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
604
+ var UpdateListBranch = {
605
+ Updated: "updated",
606
+ NotFound: "notFound",
607
+ ProviderRejected: "providerRejected",
608
+ InvalidResponse: "invalidResponse",
609
+ Defect: "defect"
610
+ };
611
+ var UpdateListBranchUpdated = UpdateListBranch.Updated;
612
+ var UpdateListBranchNotFound = UpdateListBranch.NotFound;
613
+ var UpdateListBranchProviderRejected = UpdateListBranch.ProviderRejected;
614
+ var UpdateListBranchInvalidResponse = UpdateListBranch.InvalidResponse;
615
+ var UpdateListBranchDefect = UpdateListBranch.Defect;
616
+ var UpdateListDefinition = {
617
+ operation: { connectorId: ConnectorID, operationId: "updateList" },
618
+ branches: [
619
+ { id: "updated", description: "Campaign Monitor updated the list." },
620
+ { id: "notFound", description: "Campaign Monitor did not find the list.", optional: true },
621
+ { id: "providerRejected", description: "Campaign Monitor rejected the update.", optional: true },
622
+ { id: "invalidResponse", description: "Campaign Monitor returned an oversized response.", optional: true },
623
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
624
+ ],
625
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
626
+ repeatOnUnknown: "safe"
627
+ };
628
+ var UpdateListMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
629
+ var DeleteListBranch = {
630
+ Deleted: "deleted",
631
+ ProviderRejected: "providerRejected",
632
+ InvalidResponse: "invalidResponse",
633
+ Defect: "defect"
634
+ };
635
+ var DeleteListBranchDeleted = DeleteListBranch.Deleted;
636
+ var DeleteListBranchProviderRejected = DeleteListBranch.ProviderRejected;
637
+ var DeleteListBranchInvalidResponse = DeleteListBranch.InvalidResponse;
638
+ var DeleteListBranchDefect = DeleteListBranch.Defect;
639
+ var DeleteListDefinition = {
640
+ operation: { connectorId: ConnectorID, operationId: "deleteList" },
641
+ branches: [
642
+ { id: "deleted", description: "Campaign Monitor deleted the list." },
643
+ { id: "providerRejected", description: "Campaign Monitor rejected deletion.", optional: true },
644
+ { id: "invalidResponse", description: "Campaign Monitor returned an oversized response.", optional: true },
645
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
646
+ ],
647
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
648
+ repeatOnUnknown: "safe"
649
+ };
650
+ var DeleteListMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
651
+ var ListSubscribersBranch = {
652
+ Listed: "listed",
653
+ ProviderRejected: "providerRejected",
654
+ InvalidResponse: "invalidResponse",
655
+ Defect: "defect"
656
+ };
657
+ var ListSubscribersBranchListed = ListSubscribersBranch.Listed;
658
+ var ListSubscribersBranchProviderRejected = ListSubscribersBranch.ProviderRejected;
659
+ var ListSubscribersBranchInvalidResponse = ListSubscribersBranch.InvalidResponse;
660
+ var ListSubscribersBranchDefect = ListSubscribersBranch.Defect;
661
+ var ListSubscribersDefinition = {
662
+ operation: { connectorId: ConnectorID, operationId: "listSubscribers" },
663
+ branches: [
664
+ { id: "listed", description: "Campaign Monitor returned a subscriber page." },
665
+ { id: "providerRejected", description: "Campaign Monitor rejected the page lookup.", optional: true },
666
+ { id: "invalidResponse", description: "Campaign Monitor returned malformed or oversized JSON.", optional: true },
667
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
668
+ ],
669
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
670
+ };
671
+ var ListSubscribersMetadata = { kind: "query", idempotency: "none", authorization: "required" };
672
+ var ListSubscriberListsBranch = {
673
+ Listed: "listed",
674
+ ProviderRejected: "providerRejected",
675
+ InvalidResponse: "invalidResponse",
676
+ Defect: "defect"
677
+ };
678
+ var ListSubscriberListsBranchListed = ListSubscriberListsBranch.Listed;
679
+ var ListSubscriberListsBranchProviderRejected = ListSubscriberListsBranch.ProviderRejected;
680
+ var ListSubscriberListsBranchInvalidResponse = ListSubscriberListsBranch.InvalidResponse;
681
+ var ListSubscriberListsBranchDefect = ListSubscriberListsBranch.Defect;
682
+ var ListSubscriberListsDefinition = {
683
+ operation: { connectorId: ConnectorID, operationId: "listSubscriberLists" },
684
+ branches: [
685
+ { id: "listed", description: "Campaign Monitor returned the client's lists." },
686
+ { id: "providerRejected", description: "Campaign Monitor rejected the list lookup.", optional: true },
687
+ { id: "invalidResponse", description: "Campaign Monitor returned invalid JSON.", optional: true },
688
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
689
+ ],
690
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
691
+ };
692
+ var ListSubscriberListsMetadata = { kind: "query", idempotency: "none", authorization: "required" };
693
+ var GetSubscriberBranch = {
694
+ Found: "found",
695
+ NotFound: "notFound",
696
+ ProviderRejected: "providerRejected",
697
+ InvalidResponse: "invalidResponse",
698
+ Defect: "defect"
699
+ };
700
+ var GetSubscriberBranchFound = GetSubscriberBranch.Found;
701
+ var GetSubscriberBranchNotFound = GetSubscriberBranch.NotFound;
702
+ var GetSubscriberBranchProviderRejected = GetSubscriberBranch.ProviderRejected;
703
+ var GetSubscriberBranchInvalidResponse = GetSubscriberBranch.InvalidResponse;
704
+ var GetSubscriberBranchDefect = GetSubscriberBranch.Defect;
705
+ var GetSubscriberDefinition = {
706
+ operation: { connectorId: ConnectorID, operationId: "getSubscriber" },
707
+ branches: [
708
+ { id: "found", description: "Campaign Monitor returned the subscriber." },
709
+ { id: "notFound", description: "Campaign Monitor did not find the subscriber.", optional: true },
710
+ { id: "providerRejected", description: "Campaign Monitor rejected the lookup.", optional: true },
711
+ { id: "invalidResponse", description: "Campaign Monitor returned invalid JSON.", optional: true },
712
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
713
+ ],
714
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
715
+ };
716
+ var GetSubscriberMetadata = { kind: "query", idempotency: "none", authorization: "required" };
717
+ var UpsertSubscriberBranch = {
718
+ Saved: "saved",
719
+ ProviderRejected: "providerRejected",
720
+ InvalidResponse: "invalidResponse",
721
+ Defect: "defect"
722
+ };
723
+ var UpsertSubscriberBranchSaved = UpsertSubscriberBranch.Saved;
724
+ var UpsertSubscriberBranchProviderRejected = UpsertSubscriberBranch.ProviderRejected;
725
+ var UpsertSubscriberBranchInvalidResponse = UpsertSubscriberBranch.InvalidResponse;
726
+ var UpsertSubscriberBranchDefect = UpsertSubscriberBranch.Defect;
727
+ var UpsertSubscriberDefinition = {
728
+ operation: { connectorId: ConnectorID, operationId: "upsertSubscriber" },
729
+ branches: [
730
+ { id: "saved", description: "Campaign Monitor queued the subscriber upsert." },
731
+ { id: "providerRejected", description: "Campaign Monitor rejected the upsert.", optional: true },
732
+ { id: "invalidResponse", description: "Campaign Monitor returned invalid JSON.", optional: true },
733
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
734
+ ],
735
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
736
+ repeatOnUnknown: "safe"
737
+ };
738
+ var UpsertSubscriberMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
739
+ var UpdateSubscriberBranch = {
740
+ Updated: "updated",
741
+ NotFound: "notFound",
742
+ ProviderRejected: "providerRejected",
743
+ InvalidResponse: "invalidResponse",
744
+ Defect: "defect"
745
+ };
746
+ var UpdateSubscriberBranchUpdated = UpdateSubscriberBranch.Updated;
747
+ var UpdateSubscriberBranchNotFound = UpdateSubscriberBranch.NotFound;
748
+ var UpdateSubscriberBranchProviderRejected = UpdateSubscriberBranch.ProviderRejected;
749
+ var UpdateSubscriberBranchInvalidResponse = UpdateSubscriberBranch.InvalidResponse;
750
+ var UpdateSubscriberBranchDefect = UpdateSubscriberBranch.Defect;
751
+ var UpdateSubscriberDefinition = {
752
+ operation: { connectorId: ConnectorID, operationId: "updateSubscriber" },
753
+ branches: [
754
+ { id: "updated", description: "Campaign Monitor updated the subscriber." },
755
+ { id: "notFound", description: "Campaign Monitor did not find the subscriber.", optional: true },
756
+ { id: "providerRejected", description: "Campaign Monitor rejected the update.", optional: true },
757
+ { id: "invalidResponse", description: "Campaign Monitor returned invalid JSON.", optional: true },
758
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
759
+ ],
760
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
761
+ repeatOnUnknown: "safe"
762
+ };
763
+ var UpdateSubscriberMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
764
+ var DeleteSubscriberBranch = {
765
+ Deleted: "deleted",
766
+ ProviderRejected: "providerRejected",
767
+ InvalidResponse: "invalidResponse",
768
+ Defect: "defect"
769
+ };
770
+ var DeleteSubscriberBranchDeleted = DeleteSubscriberBranch.Deleted;
771
+ var DeleteSubscriberBranchProviderRejected = DeleteSubscriberBranch.ProviderRejected;
772
+ var DeleteSubscriberBranchInvalidResponse = DeleteSubscriberBranch.InvalidResponse;
773
+ var DeleteSubscriberBranchDefect = DeleteSubscriberBranch.Defect;
774
+ var DeleteSubscriberDefinition = {
775
+ operation: { connectorId: ConnectorID, operationId: "deleteSubscriber" },
776
+ branches: [
777
+ { id: "deleted", description: "Campaign Monitor accepted the deletion." },
778
+ { id: "providerRejected", description: "Campaign Monitor rejected the deletion.", optional: true },
779
+ { id: "invalidResponse", description: "Campaign Monitor returned an oversized response.", optional: true },
780
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
781
+ ],
782
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
783
+ repeatOnUnknown: "safe"
784
+ };
785
+ var DeleteSubscriberMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
786
+ var UnsubscribeSubscriberBranch = {
787
+ Unsubscribed: "unsubscribed",
788
+ ProviderRejected: "providerRejected",
789
+ InvalidResponse: "invalidResponse",
790
+ Defect: "defect"
791
+ };
792
+ var UnsubscribeSubscriberBranchUnsubscribed = UnsubscribeSubscriberBranch.Unsubscribed;
793
+ var UnsubscribeSubscriberBranchProviderRejected = UnsubscribeSubscriberBranch.ProviderRejected;
794
+ var UnsubscribeSubscriberBranchInvalidResponse = UnsubscribeSubscriberBranch.InvalidResponse;
795
+ var UnsubscribeSubscriberBranchDefect = UnsubscribeSubscriberBranch.Defect;
796
+ var UnsubscribeSubscriberDefinition = {
797
+ operation: { connectorId: ConnectorID, operationId: "unsubscribeSubscriber" },
798
+ branches: [
799
+ { id: "unsubscribed", description: "Campaign Monitor accepted the unsubscribe." },
800
+ { id: "providerRejected", description: "Campaign Monitor rejected the unsubscribe.", optional: true },
801
+ { id: "invalidResponse", description: "Campaign Monitor returned an unexpected or oversized response.", optional: true },
802
+ { id: "defect", description: "Local input or credentials are invalid.", optional: true }
803
+ ],
804
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
805
+ repeatOnUnknown: "safe"
806
+ };
807
+ var UnsubscribeSubscriberMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
808
+ var ListClientsBranch = {
809
+ Listed: "listed",
810
+ ProviderRejected: "providerRejected",
811
+ InvalidResponse: "invalidResponse",
812
+ Defect: "defect"
813
+ };
814
+ var ListClientsBranchListed = ListClientsBranch.Listed;
815
+ var ListClientsBranchProviderRejected = ListClientsBranch.ProviderRejected;
816
+ var ListClientsBranchInvalidResponse = ListClientsBranch.InvalidResponse;
817
+ var ListClientsBranchDefect = ListClientsBranch.Defect;
818
+ var ListClientsDefinition = {
819
+ operation: { connectorId: ConnectorID, operationId: "listClients" },
820
+ branches: [
821
+ { id: "listed", description: "Campaign Monitor returned the account's clients." },
822
+ { id: "providerRejected", description: "Campaign Monitor conclusively rejected the request.", optional: true },
823
+ { id: "invalidResponse", description: "Campaign Monitor returned malformed or oversized JSON.", optional: true },
824
+ { id: "defect", description: "Connection credentials are invalid.", optional: true }
825
+ ],
826
+ stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
827
+ };
828
+ var ListClientsMetadata = { kind: "query", idempotency: "none", authorization: "required" };
829
+
830
+ // src/generated/connection.ts
831
+ import { ConnectionRefSchema } from "@superdurable/connectors-sdk";
832
+ var Connection = class {
833
+ /** Stable provider and connection name. */
834
+ reference;
835
+ /** Bound provider operations. */
836
+ operations;
837
+ /** Validate a reference and bind operations. */
838
+ constructor(reference, operations) {
839
+ this.reference = ConnectionRefSchema.parse(reference);
840
+ if (this.reference.provider !== ProviderID) throw new TypeError("connection provider differs from the manifest");
841
+ if (!operations) throw new TypeError("connector operations are required");
842
+ this.operations = operations;
843
+ }
844
+ };
845
+ function newConnection(client, reference) {
846
+ if (!client) throw new TypeError("connector client is required");
847
+ return new Connection(reference, client);
848
+ }
849
+ function newConnectionWithOperations(operations, reference) {
850
+ return new Connection(reference, operations);
851
+ }
852
+ function newProjectConnection(project, connectionName, createClient) {
853
+ if (!project) throw new TypeError("loaded project is required");
854
+ const reference = ConnectionRefSchema.parse({ provider: ProviderID, name: connectionName });
855
+ const selected = project.configuration.connections.find((entry) => entry.connectorId === ConnectorID && entry.connectionName === connectionName);
856
+ if (!selected || selected.provider !== ProviderID) throw new TypeError("project connection is not configured");
857
+ return newConnection(createClient(project, connectionName), reference);
858
+ }
859
+
860
+ export {
861
+ decodeSignedInteger,
862
+ parseJSONNumberTokens,
863
+ parseExactIntegerJSON,
864
+ exactIntegerJSONCodec,
865
+ ConfigSchema,
866
+ CredentialMaterialError,
867
+ isCredentialMaterialError,
868
+ decodeCredentials,
869
+ ListCampaignsInputSchema,
870
+ CampaignProfileSchema,
871
+ CampaignsPageSchema,
872
+ GetCampaignSummaryInputSchema,
873
+ CampaignSummarySchema,
874
+ CreateDraftCampaignInputSchema,
875
+ CampaignIdentitySchema,
876
+ SendCampaignInputSchema,
877
+ SendCampaignPreviewInputSchema,
878
+ UnscheduleCampaignInputSchema,
879
+ DeleteCampaignInputSchema,
880
+ ListSegmentsInputSchema,
881
+ SegmentIdentitySchema,
882
+ SegmentsListSchema,
883
+ GetSegmentInputSchema,
884
+ SegmentRuleSchema,
885
+ SegmentRuleGroupSchema,
886
+ SegmentProfileSchema,
887
+ CreateSegmentInputSchema,
888
+ UpdateSegmentInputSchema,
889
+ DeleteSegmentInputSchema,
890
+ GetListInputSchema,
891
+ ListProfileSchema,
892
+ CreateListInputSchema,
893
+ ListIdentitySchema,
894
+ UpdateListInputSchema,
895
+ DeleteListInputSchema,
896
+ ListSubscribersInputSchema,
897
+ SubscriberProfileSchema,
898
+ SubscribersPageSchema,
899
+ ListSubscriberListsInputSchema,
900
+ SubscriberListIdentitySchema,
901
+ SubscriberListsSchema,
902
+ GetSubscriberInputSchema,
903
+ UpsertSubscriberInputSchema,
904
+ SubscriberIdentitySchema,
905
+ UpdateSubscriberInputSchema,
906
+ DeleteSubscriberInputSchema,
907
+ UnsubscribeSubscriberInputSchema,
908
+ ListClientsInputSchema,
909
+ ClientMetadataSchema,
910
+ ClientsListSchema,
911
+ ConnectorID,
912
+ ProviderID,
913
+ ListCampaignsBranch,
914
+ ListCampaignsBranchListed,
915
+ ListCampaignsBranchProviderRejected,
916
+ ListCampaignsBranchInvalidResponse,
917
+ ListCampaignsBranchDefect,
918
+ ListCampaignsDefinition,
919
+ ListCampaignsMetadata,
920
+ GetCampaignSummaryBranch,
921
+ GetCampaignSummaryBranchFound,
922
+ GetCampaignSummaryBranchNotFound,
923
+ GetCampaignSummaryBranchProviderRejected,
924
+ GetCampaignSummaryBranchInvalidResponse,
925
+ GetCampaignSummaryBranchDefect,
926
+ GetCampaignSummaryDefinition,
927
+ GetCampaignSummaryMetadata,
928
+ CreateDraftCampaignBranch,
929
+ CreateDraftCampaignBranchCreated,
930
+ CreateDraftCampaignBranchProviderRejected,
931
+ CreateDraftCampaignBranchUncertain,
932
+ CreateDraftCampaignBranchDefect,
933
+ CreateDraftCampaignDefinition,
934
+ CreateDraftCampaignMetadata,
935
+ SendCampaignBranch,
936
+ SendCampaignBranchSent,
937
+ SendCampaignBranchProviderRejected,
938
+ SendCampaignBranchUncertain,
939
+ SendCampaignBranchDefect,
940
+ SendCampaignDefinition,
941
+ SendCampaignMetadata,
942
+ SendCampaignPreviewBranch,
943
+ SendCampaignPreviewBranchSent,
944
+ SendCampaignPreviewBranchProviderRejected,
945
+ SendCampaignPreviewBranchUncertain,
946
+ SendCampaignPreviewBranchDefect,
947
+ SendCampaignPreviewDefinition,
948
+ SendCampaignPreviewMetadata,
949
+ UnscheduleCampaignBranch,
950
+ UnscheduleCampaignBranchUnscheduled,
951
+ UnscheduleCampaignBranchProviderRejected,
952
+ UnscheduleCampaignBranchInvalidResponse,
953
+ UnscheduleCampaignBranchDefect,
954
+ UnscheduleCampaignDefinition,
955
+ UnscheduleCampaignMetadata,
956
+ DeleteCampaignBranch,
957
+ DeleteCampaignBranchDeleted,
958
+ DeleteCampaignBranchProviderRejected,
959
+ DeleteCampaignBranchInvalidResponse,
960
+ DeleteCampaignBranchDefect,
961
+ DeleteCampaignDefinition,
962
+ DeleteCampaignMetadata,
963
+ ListSegmentsBranch,
964
+ ListSegmentsBranchListed,
965
+ ListSegmentsBranchProviderRejected,
966
+ ListSegmentsBranchInvalidResponse,
967
+ ListSegmentsBranchDefect,
968
+ ListSegmentsDefinition,
969
+ ListSegmentsMetadata,
970
+ GetSegmentBranch,
971
+ GetSegmentBranchFound,
972
+ GetSegmentBranchNotFound,
973
+ GetSegmentBranchProviderRejected,
974
+ GetSegmentBranchInvalidResponse,
975
+ GetSegmentBranchDefect,
976
+ GetSegmentDefinition,
977
+ GetSegmentMetadata,
978
+ CreateSegmentBranch,
979
+ CreateSegmentBranchCreated,
980
+ CreateSegmentBranchProviderRejected,
981
+ CreateSegmentBranchUncertain,
982
+ CreateSegmentBranchDefect,
983
+ CreateSegmentDefinition,
984
+ CreateSegmentMetadata,
985
+ UpdateSegmentBranch,
986
+ UpdateSegmentBranchUpdated,
987
+ UpdateSegmentBranchNotFound,
988
+ UpdateSegmentBranchProviderRejected,
989
+ UpdateSegmentBranchInvalidResponse,
990
+ UpdateSegmentBranchDefect,
991
+ UpdateSegmentDefinition,
992
+ UpdateSegmentMetadata,
993
+ DeleteSegmentBranch,
994
+ DeleteSegmentBranchDeleted,
995
+ DeleteSegmentBranchProviderRejected,
996
+ DeleteSegmentBranchInvalidResponse,
997
+ DeleteSegmentBranchDefect,
998
+ DeleteSegmentDefinition,
999
+ DeleteSegmentMetadata,
1000
+ GetListBranch,
1001
+ GetListBranchFound,
1002
+ GetListBranchNotFound,
1003
+ GetListBranchProviderRejected,
1004
+ GetListBranchInvalidResponse,
1005
+ GetListBranchDefect,
1006
+ GetListDefinition,
1007
+ GetListMetadata,
1008
+ CreateListBranch,
1009
+ CreateListBranchCreated,
1010
+ CreateListBranchProviderRejected,
1011
+ CreateListBranchUncertain,
1012
+ CreateListBranchDefect,
1013
+ CreateListDefinition,
1014
+ CreateListMetadata,
1015
+ UpdateListBranch,
1016
+ UpdateListBranchUpdated,
1017
+ UpdateListBranchNotFound,
1018
+ UpdateListBranchProviderRejected,
1019
+ UpdateListBranchInvalidResponse,
1020
+ UpdateListBranchDefect,
1021
+ UpdateListDefinition,
1022
+ UpdateListMetadata,
1023
+ DeleteListBranch,
1024
+ DeleteListBranchDeleted,
1025
+ DeleteListBranchProviderRejected,
1026
+ DeleteListBranchInvalidResponse,
1027
+ DeleteListBranchDefect,
1028
+ DeleteListDefinition,
1029
+ DeleteListMetadata,
1030
+ ListSubscribersBranch,
1031
+ ListSubscribersBranchListed,
1032
+ ListSubscribersBranchProviderRejected,
1033
+ ListSubscribersBranchInvalidResponse,
1034
+ ListSubscribersBranchDefect,
1035
+ ListSubscribersDefinition,
1036
+ ListSubscribersMetadata,
1037
+ ListSubscriberListsBranch,
1038
+ ListSubscriberListsBranchListed,
1039
+ ListSubscriberListsBranchProviderRejected,
1040
+ ListSubscriberListsBranchInvalidResponse,
1041
+ ListSubscriberListsBranchDefect,
1042
+ ListSubscriberListsDefinition,
1043
+ ListSubscriberListsMetadata,
1044
+ GetSubscriberBranch,
1045
+ GetSubscriberBranchFound,
1046
+ GetSubscriberBranchNotFound,
1047
+ GetSubscriberBranchProviderRejected,
1048
+ GetSubscriberBranchInvalidResponse,
1049
+ GetSubscriberBranchDefect,
1050
+ GetSubscriberDefinition,
1051
+ GetSubscriberMetadata,
1052
+ UpsertSubscriberBranch,
1053
+ UpsertSubscriberBranchSaved,
1054
+ UpsertSubscriberBranchProviderRejected,
1055
+ UpsertSubscriberBranchInvalidResponse,
1056
+ UpsertSubscriberBranchDefect,
1057
+ UpsertSubscriberDefinition,
1058
+ UpsertSubscriberMetadata,
1059
+ UpdateSubscriberBranch,
1060
+ UpdateSubscriberBranchUpdated,
1061
+ UpdateSubscriberBranchNotFound,
1062
+ UpdateSubscriberBranchProviderRejected,
1063
+ UpdateSubscriberBranchInvalidResponse,
1064
+ UpdateSubscriberBranchDefect,
1065
+ UpdateSubscriberDefinition,
1066
+ UpdateSubscriberMetadata,
1067
+ DeleteSubscriberBranch,
1068
+ DeleteSubscriberBranchDeleted,
1069
+ DeleteSubscriberBranchProviderRejected,
1070
+ DeleteSubscriberBranchInvalidResponse,
1071
+ DeleteSubscriberBranchDefect,
1072
+ DeleteSubscriberDefinition,
1073
+ DeleteSubscriberMetadata,
1074
+ UnsubscribeSubscriberBranch,
1075
+ UnsubscribeSubscriberBranchUnsubscribed,
1076
+ UnsubscribeSubscriberBranchProviderRejected,
1077
+ UnsubscribeSubscriberBranchInvalidResponse,
1078
+ UnsubscribeSubscriberBranchDefect,
1079
+ UnsubscribeSubscriberDefinition,
1080
+ UnsubscribeSubscriberMetadata,
1081
+ ListClientsBranch,
1082
+ ListClientsBranchListed,
1083
+ ListClientsBranchProviderRejected,
1084
+ ListClientsBranchInvalidResponse,
1085
+ ListClientsBranchDefect,
1086
+ ListClientsDefinition,
1087
+ ListClientsMetadata,
1088
+ Connection,
1089
+ newConnection,
1090
+ newConnectionWithOperations,
1091
+ newProjectConnection
1092
+ };