samva 0.33.0 → 0.35.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/README.md +1 -1
- package/dist/client/sdk.gen.d.ts +225 -251
- package/dist/client/sdk.gen.js +85 -211
- package/dist/client/types.gen.d.ts +2897 -403
- package/dist/effect/agents.d.ts +28 -13
- package/dist/effect/agents.js +5 -1
- package/dist/effect/analytics.d.ts +15 -15
- package/dist/effect/api-keys.d.ts +27 -18
- package/dist/effect/campaigns.d.ts +721 -65
- package/dist/effect/categories.d.ts +3 -3
- package/dist/effect/contact-groups.d.ts +15 -15
- package/dist/effect/contacts.d.ts +56 -52
- package/dist/effect/conversations.d.ts +45 -45
- package/dist/effect/email.d.ts +82 -82
- package/dist/effect/errors.d.ts +1 -1
- package/dist/effect/errors.js +2 -2
- package/dist/effect/extension-installations.d.ts +11 -11
- package/dist/effect/extensions.d.ts +16 -16
- package/dist/effect/generated/agents.d.ts +1063 -33
- package/dist/effect/generated/agents.js +133 -11
- package/dist/effect/generated/analytics.d.ts +109 -136
- package/dist/effect/generated/analytics.js +65 -36
- package/dist/effect/generated/api-keys.d.ts +240 -19
- package/dist/effect/generated/api-keys.js +24 -8
- package/dist/effect/generated/attachments.d.ts +89 -1
- package/dist/effect/generated/attachments.js +10 -2
- package/dist/effect/generated/brands.d.ts +133 -1
- package/dist/effect/generated/brands.js +22 -10
- package/dist/effect/generated/campaigns.d.ts +1442 -140
- package/dist/effect/generated/campaigns.js +82 -20
- package/dist/effect/generated/contact-events.d.ts +26 -4
- package/dist/effect/generated/contact-events.js +5 -3
- package/dist/effect/generated/contact-groups.d.ts +233 -13
- package/dist/effect/generated/contact-groups.js +33 -17
- package/dist/effect/generated/contacts.d.ts +634 -96
- package/dist/effect/generated/contacts.js +82 -20
- package/dist/effect/generated/conversations.d.ts +398 -106
- package/dist/effect/generated/conversations.js +96 -22
- package/dist/effect/generated/custom-fields.d.ts +89 -1
- package/dist/effect/generated/custom-fields.js +11 -3
- package/dist/effect/generated/email.d.ts +1447 -83
- package/dist/effect/generated/email.js +167 -43
- package/dist/effect/generated/events.d.ts +51 -7
- package/dist/effect/generated/events.js +9 -5
- package/dist/effect/generated/extension-installations.d.ts +208 -10
- package/dist/effect/generated/extension-installations.js +26 -8
- package/dist/effect/generated/extensions.d.ts +123 -13
- package/dist/effect/generated/extensions.js +20 -10
- package/dist/effect/generated/feedback.d.ts +23 -1
- package/dist/effect/generated/feedback.js +6 -4
- package/dist/effect/generated/journeys.d.ts +684 -16
- package/dist/effect/generated/journeys.js +37 -9
- package/dist/effect/generated/mailboxes.d.ts +3085 -627
- package/dist/effect/generated/mailboxes.js +340 -141
- package/dist/effect/generated/media.d.ts +125 -15
- package/dist/effect/generated/media.js +15 -2
- package/dist/effect/generated/messages.d.ts +2036 -117
- package/dist/effect/generated/messages.js +286 -54
- package/dist/effect/generated/namespaces.d.ts +209 -25
- package/dist/effect/generated/namespaces.js +27 -9
- package/dist/effect/generated/newsletter-domains.d.ts +98 -12
- package/dist/effect/generated/newsletter-domains.js +20 -13
- package/dist/effect/generated/newsletter-issues.d.ts +354 -19
- package/dist/effect/generated/newsletter-issues.js +162 -98
- package/dist/effect/generated/newsletters.d.ts +123 -13
- package/dist/effect/generated/newsletters.js +19 -9
- package/dist/effect/generated/operations.d.ts +76 -10
- package/dist/effect/generated/operations.js +12 -6
- package/dist/effect/generated/organizations.d.ts +287 -7
- package/dist/effect/generated/organizations.js +33 -5
- package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
- package/dist/effect/generated/scheduled-messages.js +71 -12
- package/dist/effect/generated/shared.d.ts +2213 -190
- package/dist/effect/generated/shared.js +527 -76
- package/dist/effect/generated/subscriptions.d.ts +23 -1
- package/dist/effect/generated/subscriptions.js +6 -4
- package/dist/effect/generated/templates.d.ts +1718 -136
- package/dist/effect/generated/templates.js +421 -226
- package/dist/effect/generated/topic-forms.d.ts +111 -1
- package/dist/effect/generated/topic-forms.js +23 -13
- package/dist/effect/generated/topics.d.ts +353 -43
- package/dist/effect/generated/topics.js +67 -19
- package/dist/effect/generated/webhooks.d.ts +308 -46
- package/dist/effect/generated/webhooks.js +67 -19
- package/dist/effect/generated/whoami.d.ts +35 -1
- package/dist/effect/generated/whoami.js +4 -2
- package/dist/effect/generated-metadata.d.ts +20 -0
- package/dist/effect/generated-metadata.js +10 -0
- package/dist/effect/index.js +2 -2
- package/dist/effect/internal/client.js +1 -1
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/send.d.ts +1 -1
- package/dist/effect/journeys.d.ts +105 -19
- package/dist/effect/mailboxes.d.ts +405 -174
- package/dist/effect/media.d.ts +1 -1
- package/dist/effect/messages.d.ts +40 -40
- package/dist/effect/namespaces.d.ts +15 -15
- package/dist/effect/newsletter-domains.d.ts +5 -5
- package/dist/effect/newsletters.d.ts +1 -1
- package/dist/effect/operations.d.ts +11 -11
- package/dist/effect/organizations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +863 -8
- package/dist/effect/templates.d.ts +37 -37
- package/dist/effect/topics.d.ts +21 -21
- package/dist/effect/webhooks.d.ts +28 -26
- package/dist/index.js +2 -2
- package/dist/normalize.js +13 -1
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +1 -1
- package/dist/promises/client.js +2 -2
- package/dist/promises/errors.gen.d.ts +22 -2
- package/dist/promises/errors.gen.js +60 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +9 -0
- package/dist/service-map.js +5 -0
- package/package.json +9 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as EffectBrand from "effect/Brand";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId,
|
|
4
|
+
import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactId, FlagDisabledError, ForbiddenError, GatewayTimeoutError, InternalError, JourneyDefinition, JourneyName, JourneyNodeId, JsonObject, MalformedRequestError, MessageId, PaymentRequiredError, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
|
|
5
5
|
export type JourneyStatus = "draft" | "active" | "paused" | "archived";
|
|
6
6
|
export declare const JourneyStatus: Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>;
|
|
7
7
|
export type JourneyId = string & EffectBrand.Brand<"JourneyId">;
|
|
@@ -274,6 +274,21 @@ export declare const Journey: Schema.Struct<{
|
|
|
274
274
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
275
275
|
readonly nodeId: Schema.String;
|
|
276
276
|
}>]>;
|
|
277
|
+
}>, Schema.Struct<{
|
|
278
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
279
|
+
readonly config: Schema.Struct<{
|
|
280
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
281
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
282
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
283
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
284
|
+
}>, Schema.Struct<{
|
|
285
|
+
readonly customField: Schema.String;
|
|
286
|
+
}>]>>>;
|
|
287
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
288
|
+
}>;
|
|
289
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
290
|
+
readonly nodeId: Schema.String;
|
|
291
|
+
}>]>;
|
|
277
292
|
}>, Schema.Struct<{
|
|
278
293
|
readonly type: Schema.Literal<"wait">;
|
|
279
294
|
readonly config: Schema.Struct<{
|
|
@@ -446,6 +461,21 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
446
461
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
447
462
|
readonly nodeId: Schema.String;
|
|
448
463
|
}>]>;
|
|
464
|
+
}>, Schema.Struct<{
|
|
465
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
466
|
+
readonly config: Schema.Struct<{
|
|
467
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
468
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
469
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
470
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
471
|
+
}>, Schema.Struct<{
|
|
472
|
+
readonly customField: Schema.String;
|
|
473
|
+
}>]>>>;
|
|
474
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
475
|
+
}>;
|
|
476
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
477
|
+
readonly nodeId: Schema.String;
|
|
478
|
+
}>]>;
|
|
449
479
|
}>, Schema.Struct<{
|
|
450
480
|
readonly type: Schema.Literal<"wait">;
|
|
451
481
|
readonly config: Schema.Struct<{
|
|
@@ -583,14 +613,14 @@ export declare const JourneyVersion: Schema.Struct<{
|
|
|
583
613
|
readonly publishedAt: Schema.String;
|
|
584
614
|
}>;
|
|
585
615
|
export type JourneysListQuery = {
|
|
586
|
-
readonly status?: JourneyStatus
|
|
616
|
+
readonly status?: JourneyStatus;
|
|
587
617
|
readonly limit?: number | null;
|
|
588
|
-
readonly cursor?:
|
|
618
|
+
readonly cursor?: string;
|
|
589
619
|
};
|
|
590
620
|
export declare const JourneysListQuery: Schema.Struct<{
|
|
591
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
621
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>>;
|
|
592
622
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
593
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
623
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
594
624
|
}>;
|
|
595
625
|
export type JourneysList200 = JourneyPage;
|
|
596
626
|
export declare const JourneysList200: Schema.Struct<{
|
|
@@ -605,6 +635,8 @@ export declare const JourneysList200: Schema.Struct<{
|
|
|
605
635
|
}>>;
|
|
606
636
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
607
637
|
}>;
|
|
638
|
+
export type JourneysList400 = MalformedRequestError;
|
|
639
|
+
export declare const JourneysList400: typeof MalformedRequestError;
|
|
608
640
|
export type JourneysList401 = UnauthorizedError;
|
|
609
641
|
export declare const JourneysList401: typeof UnauthorizedError;
|
|
610
642
|
export type JourneysList403 = ForbiddenError;
|
|
@@ -645,6 +677,21 @@ export declare const JourneysCreateRequestJson: Schema.Struct<{
|
|
|
645
677
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
646
678
|
readonly nodeId: Schema.String;
|
|
647
679
|
}>]>;
|
|
680
|
+
}>, Schema.Struct<{
|
|
681
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
682
|
+
readonly config: Schema.Struct<{
|
|
683
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
684
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
685
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
686
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
687
|
+
}>, Schema.Struct<{
|
|
688
|
+
readonly customField: Schema.String;
|
|
689
|
+
}>]>>>;
|
|
690
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
691
|
+
}>;
|
|
692
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
693
|
+
readonly nodeId: Schema.String;
|
|
694
|
+
}>]>;
|
|
648
695
|
}>, Schema.Struct<{
|
|
649
696
|
readonly type: Schema.Literal<"wait">;
|
|
650
697
|
readonly config: Schema.Struct<{
|
|
@@ -810,6 +857,21 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
810
857
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
811
858
|
readonly nodeId: Schema.String;
|
|
812
859
|
}>]>;
|
|
860
|
+
}>, Schema.Struct<{
|
|
861
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
862
|
+
readonly config: Schema.Struct<{
|
|
863
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
864
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
865
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
866
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
867
|
+
}>, Schema.Struct<{
|
|
868
|
+
readonly customField: Schema.String;
|
|
869
|
+
}>]>>>;
|
|
870
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
871
|
+
}>;
|
|
872
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
873
|
+
readonly nodeId: Schema.String;
|
|
874
|
+
}>]>;
|
|
813
875
|
}>, Schema.Struct<{
|
|
814
876
|
readonly type: Schema.Literal<"wait">;
|
|
815
877
|
readonly config: Schema.Struct<{
|
|
@@ -949,6 +1011,8 @@ export declare const JourneysCreate201: Schema.Struct<{
|
|
|
949
1011
|
readonly createdAt: Schema.String;
|
|
950
1012
|
readonly updatedAt: Schema.String;
|
|
951
1013
|
}>;
|
|
1014
|
+
export type JourneysCreate400 = MalformedRequestError;
|
|
1015
|
+
export declare const JourneysCreate400: typeof MalformedRequestError;
|
|
952
1016
|
export type JourneysCreate401 = UnauthorizedError;
|
|
953
1017
|
export declare const JourneysCreate401: typeof UnauthorizedError;
|
|
954
1018
|
export type JourneysCreate402 = PaymentRequiredError;
|
|
@@ -1003,6 +1067,21 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1003
1067
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1004
1068
|
readonly nodeId: Schema.String;
|
|
1005
1069
|
}>]>;
|
|
1070
|
+
}>, Schema.Struct<{
|
|
1071
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
1072
|
+
readonly config: Schema.Struct<{
|
|
1073
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1074
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1075
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1076
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
1077
|
+
}>, Schema.Struct<{
|
|
1078
|
+
readonly customField: Schema.String;
|
|
1079
|
+
}>]>>>;
|
|
1080
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1081
|
+
}>;
|
|
1082
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1083
|
+
readonly nodeId: Schema.String;
|
|
1084
|
+
}>]>;
|
|
1006
1085
|
}>, Schema.Struct<{
|
|
1007
1086
|
readonly type: Schema.Literal<"wait">;
|
|
1008
1087
|
readonly config: Schema.Struct<{
|
|
@@ -1142,6 +1221,8 @@ export declare const JourneysGet200: Schema.Struct<{
|
|
|
1142
1221
|
readonly createdAt: Schema.String;
|
|
1143
1222
|
readonly updatedAt: Schema.String;
|
|
1144
1223
|
}>;
|
|
1224
|
+
export type JourneysGet400 = MalformedRequestError;
|
|
1225
|
+
export declare const JourneysGet400: typeof MalformedRequestError;
|
|
1145
1226
|
export type JourneysGet401 = UnauthorizedError;
|
|
1146
1227
|
export declare const JourneysGet401: typeof UnauthorizedError;
|
|
1147
1228
|
export type JourneysGet403 = ForbiddenError;
|
|
@@ -1165,6 +1246,8 @@ export declare const JourneysRemove200: Schema.Struct<{
|
|
|
1165
1246
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
1166
1247
|
readonly deleted: Schema.Literal<true>;
|
|
1167
1248
|
}>;
|
|
1249
|
+
export type JourneysRemove400 = MalformedRequestError;
|
|
1250
|
+
export declare const JourneysRemove400: typeof MalformedRequestError;
|
|
1168
1251
|
export type JourneysRemove401 = UnauthorizedError;
|
|
1169
1252
|
export declare const JourneysRemove401: typeof UnauthorizedError;
|
|
1170
1253
|
export type JourneysRemove403 = ForbiddenError;
|
|
@@ -1221,6 +1304,21 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1221
1304
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1222
1305
|
readonly nodeId: Schema.String;
|
|
1223
1306
|
}>]>;
|
|
1307
|
+
}>, Schema.Struct<{
|
|
1308
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
1309
|
+
readonly config: Schema.Struct<{
|
|
1310
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1311
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1312
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1313
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
1314
|
+
}>, Schema.Struct<{
|
|
1315
|
+
readonly customField: Schema.String;
|
|
1316
|
+
}>]>>>;
|
|
1317
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1318
|
+
}>;
|
|
1319
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1320
|
+
readonly nodeId: Schema.String;
|
|
1321
|
+
}>]>;
|
|
1224
1322
|
}>, Schema.Struct<{
|
|
1225
1323
|
readonly type: Schema.Literal<"wait">;
|
|
1226
1324
|
readonly config: Schema.Struct<{
|
|
@@ -1360,6 +1458,8 @@ export declare const JourneysUpdate200: Schema.Struct<{
|
|
|
1360
1458
|
readonly createdAt: Schema.String;
|
|
1361
1459
|
readonly updatedAt: Schema.String;
|
|
1362
1460
|
}>;
|
|
1461
|
+
export type JourneysUpdate400 = MalformedRequestError;
|
|
1462
|
+
export declare const JourneysUpdate400: typeof MalformedRequestError;
|
|
1363
1463
|
export type JourneysUpdate401 = UnauthorizedError;
|
|
1364
1464
|
export declare const JourneysUpdate401: typeof UnauthorizedError;
|
|
1365
1465
|
export type JourneysUpdate403 = ForbiddenError;
|
|
@@ -1408,6 +1508,21 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1408
1508
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1409
1509
|
readonly nodeId: Schema.String;
|
|
1410
1510
|
}>]>;
|
|
1511
|
+
}>, Schema.Struct<{
|
|
1512
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
1513
|
+
readonly config: Schema.Struct<{
|
|
1514
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1515
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1516
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1517
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
1518
|
+
}>, Schema.Struct<{
|
|
1519
|
+
readonly customField: Schema.String;
|
|
1520
|
+
}>]>>>;
|
|
1521
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1522
|
+
}>;
|
|
1523
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1524
|
+
readonly nodeId: Schema.String;
|
|
1525
|
+
}>]>;
|
|
1411
1526
|
}>, Schema.Struct<{
|
|
1412
1527
|
readonly type: Schema.Literal<"wait">;
|
|
1413
1528
|
readonly config: Schema.Struct<{
|
|
@@ -1547,6 +1662,8 @@ export declare const JourneysArchive200: Schema.Struct<{
|
|
|
1547
1662
|
readonly createdAt: Schema.String;
|
|
1548
1663
|
readonly updatedAt: Schema.String;
|
|
1549
1664
|
}>;
|
|
1665
|
+
export type JourneysArchive400 = MalformedRequestError;
|
|
1666
|
+
export declare const JourneysArchive400: typeof MalformedRequestError;
|
|
1550
1667
|
export type JourneysArchive401 = UnauthorizedError;
|
|
1551
1668
|
export declare const JourneysArchive401: typeof UnauthorizedError;
|
|
1552
1669
|
export type JourneysArchive403 = ForbiddenError;
|
|
@@ -1597,6 +1714,21 @@ export declare const JourneysReplaceDraftRequestJson: Schema.Struct<{
|
|
|
1597
1714
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1598
1715
|
readonly nodeId: Schema.String;
|
|
1599
1716
|
}>]>;
|
|
1717
|
+
}>, Schema.Struct<{
|
|
1718
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
1719
|
+
readonly config: Schema.Struct<{
|
|
1720
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1721
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1722
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1723
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
1724
|
+
}>, Schema.Struct<{
|
|
1725
|
+
readonly customField: Schema.String;
|
|
1726
|
+
}>]>>>;
|
|
1727
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1728
|
+
}>;
|
|
1729
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1730
|
+
readonly nodeId: Schema.String;
|
|
1731
|
+
}>]>;
|
|
1600
1732
|
}>, Schema.Struct<{
|
|
1601
1733
|
readonly type: Schema.Literal<"wait">;
|
|
1602
1734
|
readonly config: Schema.Struct<{
|
|
@@ -1762,6 +1894,21 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
1762
1894
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1763
1895
|
readonly nodeId: Schema.String;
|
|
1764
1896
|
}>]>;
|
|
1897
|
+
}>, Schema.Struct<{
|
|
1898
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
1899
|
+
readonly config: Schema.Struct<{
|
|
1900
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
1901
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
1902
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
1903
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
1904
|
+
}>, Schema.Struct<{
|
|
1905
|
+
readonly customField: Schema.String;
|
|
1906
|
+
}>]>>>;
|
|
1907
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
1908
|
+
}>;
|
|
1909
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1910
|
+
readonly nodeId: Schema.String;
|
|
1911
|
+
}>]>;
|
|
1765
1912
|
}>, Schema.Struct<{
|
|
1766
1913
|
readonly type: Schema.Literal<"wait">;
|
|
1767
1914
|
readonly config: Schema.Struct<{
|
|
@@ -1901,6 +2048,8 @@ export declare const JourneysReplaceDraft200: Schema.Struct<{
|
|
|
1901
2048
|
readonly createdAt: Schema.String;
|
|
1902
2049
|
readonly updatedAt: Schema.String;
|
|
1903
2050
|
}>;
|
|
2051
|
+
export type JourneysReplaceDraft400 = MalformedRequestError;
|
|
2052
|
+
export declare const JourneysReplaceDraft400: typeof MalformedRequestError;
|
|
1904
2053
|
export type JourneysReplaceDraft401 = UnauthorizedError;
|
|
1905
2054
|
export declare const JourneysReplaceDraft401: typeof UnauthorizedError;
|
|
1906
2055
|
export type JourneysReplaceDraft402 = PaymentRequiredError;
|
|
@@ -1955,6 +2104,21 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
1955
2104
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
1956
2105
|
readonly nodeId: Schema.String;
|
|
1957
2106
|
}>]>;
|
|
2107
|
+
}>, Schema.Struct<{
|
|
2108
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
2109
|
+
readonly config: Schema.Struct<{
|
|
2110
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2111
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2112
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2113
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
2114
|
+
}>, Schema.Struct<{
|
|
2115
|
+
readonly customField: Schema.String;
|
|
2116
|
+
}>]>>>;
|
|
2117
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2118
|
+
}>;
|
|
2119
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2120
|
+
readonly nodeId: Schema.String;
|
|
2121
|
+
}>]>;
|
|
1958
2122
|
}>, Schema.Struct<{
|
|
1959
2123
|
readonly type: Schema.Literal<"wait">;
|
|
1960
2124
|
readonly config: Schema.Struct<{
|
|
@@ -2094,6 +2258,8 @@ export declare const JourneysPause200: Schema.Struct<{
|
|
|
2094
2258
|
readonly createdAt: Schema.String;
|
|
2095
2259
|
readonly updatedAt: Schema.String;
|
|
2096
2260
|
}>;
|
|
2261
|
+
export type JourneysPause400 = MalformedRequestError;
|
|
2262
|
+
export declare const JourneysPause400: typeof MalformedRequestError;
|
|
2097
2263
|
export type JourneysPause401 = UnauthorizedError;
|
|
2098
2264
|
export declare const JourneysPause401: typeof UnauthorizedError;
|
|
2099
2265
|
export type JourneysPause403 = ForbiddenError;
|
|
@@ -2150,6 +2316,21 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2150
2316
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2151
2317
|
readonly nodeId: Schema.String;
|
|
2152
2318
|
}>]>;
|
|
2319
|
+
}>, Schema.Struct<{
|
|
2320
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
2321
|
+
readonly config: Schema.Struct<{
|
|
2322
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2323
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2324
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2325
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
2326
|
+
}>, Schema.Struct<{
|
|
2327
|
+
readonly customField: Schema.String;
|
|
2328
|
+
}>]>>>;
|
|
2329
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2330
|
+
}>;
|
|
2331
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2332
|
+
readonly nodeId: Schema.String;
|
|
2333
|
+
}>]>;
|
|
2153
2334
|
}>, Schema.Struct<{
|
|
2154
2335
|
readonly type: Schema.Literal<"wait">;
|
|
2155
2336
|
readonly config: Schema.Struct<{
|
|
@@ -2289,6 +2470,8 @@ export declare const JourneysPublish200: Schema.Struct<{
|
|
|
2289
2470
|
readonly createdAt: Schema.String;
|
|
2290
2471
|
readonly updatedAt: Schema.String;
|
|
2291
2472
|
}>;
|
|
2473
|
+
export type JourneysPublish400 = MalformedRequestError;
|
|
2474
|
+
export declare const JourneysPublish400: typeof MalformedRequestError;
|
|
2292
2475
|
export type JourneysPublish401 = UnauthorizedError;
|
|
2293
2476
|
export declare const JourneysPublish401: typeof UnauthorizedError;
|
|
2294
2477
|
export type JourneysPublish402 = PaymentRequiredError;
|
|
@@ -2343,6 +2526,21 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2343
2526
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2344
2527
|
readonly nodeId: Schema.String;
|
|
2345
2528
|
}>]>;
|
|
2529
|
+
}>, Schema.Struct<{
|
|
2530
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
2531
|
+
readonly config: Schema.Struct<{
|
|
2532
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2533
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2534
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2535
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
2536
|
+
}>, Schema.Struct<{
|
|
2537
|
+
readonly customField: Schema.String;
|
|
2538
|
+
}>]>>>;
|
|
2539
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2540
|
+
}>;
|
|
2541
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2542
|
+
readonly nodeId: Schema.String;
|
|
2543
|
+
}>]>;
|
|
2346
2544
|
}>, Schema.Struct<{
|
|
2347
2545
|
readonly type: Schema.Literal<"wait">;
|
|
2348
2546
|
readonly config: Schema.Struct<{
|
|
@@ -2482,6 +2680,8 @@ export declare const JourneysResume200: Schema.Struct<{
|
|
|
2482
2680
|
readonly createdAt: Schema.String;
|
|
2483
2681
|
readonly updatedAt: Schema.String;
|
|
2484
2682
|
}>;
|
|
2683
|
+
export type JourneysResume400 = MalformedRequestError;
|
|
2684
|
+
export declare const JourneysResume400: typeof MalformedRequestError;
|
|
2485
2685
|
export type JourneysResume401 = UnauthorizedError;
|
|
2486
2686
|
export declare const JourneysResume401: typeof UnauthorizedError;
|
|
2487
2687
|
export type JourneysResume402 = PaymentRequiredError;
|
|
@@ -2507,16 +2707,16 @@ export declare const JourneysListRunsPathParams: Schema.Struct<{
|
|
|
2507
2707
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
2508
2708
|
}>;
|
|
2509
2709
|
export type JourneysListRunsQuery = {
|
|
2510
|
-
readonly status?: JourneyRunStatus
|
|
2511
|
-
readonly contactId?: ContactId
|
|
2710
|
+
readonly status?: JourneyRunStatus;
|
|
2711
|
+
readonly contactId?: ContactId;
|
|
2512
2712
|
readonly limit?: number | null;
|
|
2513
|
-
readonly cursor?:
|
|
2713
|
+
readonly cursor?: string;
|
|
2514
2714
|
};
|
|
2515
2715
|
export declare const JourneysListRunsQuery: Schema.Struct<{
|
|
2516
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
2517
|
-
readonly contactId: Schema.optionalKey<Schema.
|
|
2716
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>>;
|
|
2717
|
+
readonly contactId: Schema.optionalKey<Schema.brand<Schema.String, "ContactId">>;
|
|
2518
2718
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
2519
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
2719
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
2520
2720
|
}>;
|
|
2521
2721
|
export type JourneysListRuns200 = JourneyRunPage;
|
|
2522
2722
|
export declare const JourneysListRuns200: Schema.Struct<{
|
|
@@ -2541,6 +2741,8 @@ export declare const JourneysListRuns200: Schema.Struct<{
|
|
|
2541
2741
|
}>>;
|
|
2542
2742
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2543
2743
|
}>;
|
|
2744
|
+
export type JourneysListRuns400 = MalformedRequestError;
|
|
2745
|
+
export declare const JourneysListRuns400: typeof MalformedRequestError;
|
|
2544
2746
|
export type JourneysListRuns401 = UnauthorizedError;
|
|
2545
2747
|
export declare const JourneysListRuns401: typeof UnauthorizedError;
|
|
2546
2748
|
export type JourneysListRuns403 = ForbiddenError;
|
|
@@ -2591,6 +2793,8 @@ export declare const JourneysGetRun200: Schema.Struct<{
|
|
|
2591
2793
|
readonly error: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
2592
2794
|
}>>;
|
|
2593
2795
|
}>;
|
|
2796
|
+
export type JourneysGetRun400 = MalformedRequestError;
|
|
2797
|
+
export declare const JourneysGetRun400: typeof MalformedRequestError;
|
|
2594
2798
|
export type JourneysGetRun401 = UnauthorizedError;
|
|
2595
2799
|
export declare const JourneysGetRun401: typeof UnauthorizedError;
|
|
2596
2800
|
export type JourneysGetRun403 = ForbiddenError;
|
|
@@ -2631,6 +2835,8 @@ export declare const JourneysStats200: Schema.Struct<{
|
|
|
2631
2835
|
readonly entered: Schema.Finite;
|
|
2632
2836
|
}>>;
|
|
2633
2837
|
}>;
|
|
2838
|
+
export type JourneysStats400 = MalformedRequestError;
|
|
2839
|
+
export declare const JourneysStats400: typeof MalformedRequestError;
|
|
2634
2840
|
export type JourneysStats401 = UnauthorizedError;
|
|
2635
2841
|
export declare const JourneysStats401: typeof UnauthorizedError;
|
|
2636
2842
|
export type JourneysStats403 = ForbiddenError;
|
|
@@ -2679,6 +2885,21 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
2679
2885
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2680
2886
|
readonly nodeId: Schema.String;
|
|
2681
2887
|
}>]>;
|
|
2888
|
+
}>, Schema.Struct<{
|
|
2889
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
2890
|
+
readonly config: Schema.Struct<{
|
|
2891
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
2892
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
2893
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
2894
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
2895
|
+
}>, Schema.Struct<{
|
|
2896
|
+
readonly customField: Schema.String;
|
|
2897
|
+
}>]>>>;
|
|
2898
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
2899
|
+
}>;
|
|
2900
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2901
|
+
readonly nodeId: Schema.String;
|
|
2902
|
+
}>]>;
|
|
2682
2903
|
}>, Schema.Struct<{
|
|
2683
2904
|
readonly type: Schema.Literal<"wait">;
|
|
2684
2905
|
readonly config: Schema.Struct<{
|
|
@@ -2815,6 +3036,8 @@ export declare const JourneysGetVersion200: Schema.Struct<{
|
|
|
2815
3036
|
}>;
|
|
2816
3037
|
readonly publishedAt: Schema.String;
|
|
2817
3038
|
}>;
|
|
3039
|
+
export type JourneysGetVersion400 = MalformedRequestError;
|
|
3040
|
+
export declare const JourneysGetVersion400: typeof MalformedRequestError;
|
|
2818
3041
|
export type JourneysGetVersion401 = UnauthorizedError;
|
|
2819
3042
|
export declare const JourneysGetVersion401: typeof UnauthorizedError;
|
|
2820
3043
|
export type JourneysGetVersion403 = ForbiddenError;
|
|
@@ -2858,6 +3081,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
2858
3081
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
2859
3082
|
readonly nodeId: Schema.String;
|
|
2860
3083
|
}>]>;
|
|
3084
|
+
}>, Schema.Struct<{
|
|
3085
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
3086
|
+
readonly config: Schema.Struct<{
|
|
3087
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3088
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3089
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3090
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
3091
|
+
}>, Schema.Struct<{
|
|
3092
|
+
readonly customField: Schema.String;
|
|
3093
|
+
}>]>>>;
|
|
3094
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3095
|
+
}>;
|
|
3096
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3097
|
+
readonly nodeId: Schema.String;
|
|
3098
|
+
}>]>;
|
|
2861
3099
|
}>, Schema.Struct<{
|
|
2862
3100
|
readonly type: Schema.Literal<"wait">;
|
|
2863
3101
|
readonly config: Schema.Struct<{
|
|
@@ -3044,6 +3282,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3044
3282
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3045
3283
|
readonly message: Schema.String;
|
|
3046
3284
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3285
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3286
|
+
readonly _tag: "MalformedRequestError";
|
|
3287
|
+
readonly message: string;
|
|
3288
|
+
readonly fields: {
|
|
3289
|
+
readonly [x: string]: readonly string[];
|
|
3290
|
+
};
|
|
3291
|
+
}, readonly [Schema.Struct<{
|
|
3292
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3293
|
+
readonly message: Schema.String;
|
|
3294
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3295
|
+
}>], {
|
|
3296
|
+
readonly _tag: "MalformedRequestError";
|
|
3297
|
+
readonly message: string;
|
|
3298
|
+
readonly fields: {
|
|
3299
|
+
readonly [x: string]: readonly string[];
|
|
3300
|
+
};
|
|
3301
|
+
}>, Schema.Struct<{
|
|
3302
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3303
|
+
readonly message: Schema.String;
|
|
3304
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3047
3305
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3048
3306
|
readonly _tag: "ResourceNotFoundError";
|
|
3049
3307
|
readonly resource: string;
|
|
@@ -3122,6 +3380,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3122
3380
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3123
3381
|
readonly nodeId: Schema.String;
|
|
3124
3382
|
}>]>;
|
|
3383
|
+
}>, Schema.Struct<{
|
|
3384
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
3385
|
+
readonly config: Schema.Struct<{
|
|
3386
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3387
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3388
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3389
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
3390
|
+
}>, Schema.Struct<{
|
|
3391
|
+
readonly customField: Schema.String;
|
|
3392
|
+
}>]>>>;
|
|
3393
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3394
|
+
}>;
|
|
3395
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3396
|
+
readonly nodeId: Schema.String;
|
|
3397
|
+
}>]>;
|
|
3125
3398
|
}>, Schema.Struct<{
|
|
3126
3399
|
readonly type: Schema.Literal<"wait">;
|
|
3127
3400
|
readonly config: Schema.Struct<{
|
|
@@ -3285,6 +3558,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3285
3558
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3286
3559
|
readonly nodeId: Schema.String;
|
|
3287
3560
|
}>]>;
|
|
3561
|
+
}>, Schema.Struct<{
|
|
3562
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
3563
|
+
readonly config: Schema.Struct<{
|
|
3564
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3565
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3566
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3567
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
3568
|
+
}>, Schema.Struct<{
|
|
3569
|
+
readonly customField: Schema.String;
|
|
3570
|
+
}>]>>>;
|
|
3571
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3572
|
+
}>;
|
|
3573
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3574
|
+
readonly nodeId: Schema.String;
|
|
3575
|
+
}>]>;
|
|
3288
3576
|
}>, Schema.Struct<{
|
|
3289
3577
|
readonly type: Schema.Literal<"wait">;
|
|
3290
3578
|
readonly config: Schema.Struct<{
|
|
@@ -3471,6 +3759,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3471
3759
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3472
3760
|
readonly message: Schema.String;
|
|
3473
3761
|
readonly retryAfterSeconds: Schema.Finite;
|
|
3762
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
3763
|
+
readonly _tag: "MalformedRequestError";
|
|
3764
|
+
readonly message: string;
|
|
3765
|
+
readonly fields: {
|
|
3766
|
+
readonly [x: string]: readonly string[];
|
|
3767
|
+
};
|
|
3768
|
+
}, readonly [Schema.Struct<{
|
|
3769
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3770
|
+
readonly message: Schema.String;
|
|
3771
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3772
|
+
}>], {
|
|
3773
|
+
readonly _tag: "MalformedRequestError";
|
|
3774
|
+
readonly message: string;
|
|
3775
|
+
readonly fields: {
|
|
3776
|
+
readonly [x: string]: readonly string[];
|
|
3777
|
+
};
|
|
3778
|
+
}>, Schema.Struct<{
|
|
3779
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
3780
|
+
readonly message: Schema.String;
|
|
3781
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3474
3782
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
3475
3783
|
readonly _tag: "PaymentRequiredError";
|
|
3476
3784
|
readonly message: string;
|
|
@@ -3578,6 +3886,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3578
3886
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3579
3887
|
readonly nodeId: Schema.String;
|
|
3580
3888
|
}>]>;
|
|
3889
|
+
}>, Schema.Struct<{
|
|
3890
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
3891
|
+
readonly config: Schema.Struct<{
|
|
3892
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
3893
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
3894
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
3895
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
3896
|
+
}>, Schema.Struct<{
|
|
3897
|
+
readonly customField: Schema.String;
|
|
3898
|
+
}>]>>>;
|
|
3899
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
3900
|
+
}>;
|
|
3901
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3902
|
+
readonly nodeId: Schema.String;
|
|
3903
|
+
}>]>;
|
|
3581
3904
|
}>, Schema.Struct<{
|
|
3582
3905
|
readonly type: Schema.Literal<"wait">;
|
|
3583
3906
|
readonly config: Schema.Struct<{
|
|
@@ -3744,6 +4067,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3744
4067
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3745
4068
|
readonly message: Schema.String;
|
|
3746
4069
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4070
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4071
|
+
readonly _tag: "MalformedRequestError";
|
|
4072
|
+
readonly message: string;
|
|
4073
|
+
readonly fields: {
|
|
4074
|
+
readonly [x: string]: readonly string[];
|
|
4075
|
+
};
|
|
4076
|
+
}, readonly [Schema.Struct<{
|
|
4077
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4078
|
+
readonly message: Schema.String;
|
|
4079
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4080
|
+
}>], {
|
|
4081
|
+
readonly _tag: "MalformedRequestError";
|
|
4082
|
+
readonly message: string;
|
|
4083
|
+
readonly fields: {
|
|
4084
|
+
readonly [x: string]: readonly string[];
|
|
4085
|
+
};
|
|
4086
|
+
}>, Schema.Struct<{
|
|
4087
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4088
|
+
readonly message: Schema.String;
|
|
4089
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3747
4090
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3748
4091
|
readonly _tag: "ResourceNotFoundError";
|
|
3749
4092
|
readonly resource: string;
|
|
@@ -3855,6 +4198,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3855
4198
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
3856
4199
|
readonly message: Schema.String;
|
|
3857
4200
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4201
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4202
|
+
readonly _tag: "MalformedRequestError";
|
|
4203
|
+
readonly message: string;
|
|
4204
|
+
readonly fields: {
|
|
4205
|
+
readonly [x: string]: readonly string[];
|
|
4206
|
+
};
|
|
4207
|
+
}, readonly [Schema.Struct<{
|
|
4208
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4209
|
+
readonly message: Schema.String;
|
|
4210
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4211
|
+
}>], {
|
|
4212
|
+
readonly _tag: "MalformedRequestError";
|
|
4213
|
+
readonly message: string;
|
|
4214
|
+
readonly fields: {
|
|
4215
|
+
readonly [x: string]: readonly string[];
|
|
4216
|
+
};
|
|
4217
|
+
}>, Schema.Struct<{
|
|
4218
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4219
|
+
readonly message: Schema.String;
|
|
4220
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
3858
4221
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
3859
4222
|
readonly _tag: "ResourceNotFoundError";
|
|
3860
4223
|
readonly resource: string;
|
|
@@ -3937,6 +4300,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
3937
4300
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
3938
4301
|
readonly nodeId: Schema.String;
|
|
3939
4302
|
}>]>;
|
|
4303
|
+
}>, Schema.Struct<{
|
|
4304
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
4305
|
+
readonly config: Schema.Struct<{
|
|
4306
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4307
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
4308
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4309
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
4310
|
+
}>, Schema.Struct<{
|
|
4311
|
+
readonly customField: Schema.String;
|
|
4312
|
+
}>]>>>;
|
|
4313
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4314
|
+
}>;
|
|
4315
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4316
|
+
readonly nodeId: Schema.String;
|
|
4317
|
+
}>]>;
|
|
3940
4318
|
}>, Schema.Struct<{
|
|
3941
4319
|
readonly type: Schema.Literal<"wait">;
|
|
3942
4320
|
readonly config: Schema.Struct<{
|
|
@@ -4100,6 +4478,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4100
4478
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4101
4479
|
readonly message: Schema.String;
|
|
4102
4480
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4481
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4482
|
+
readonly _tag: "MalformedRequestError";
|
|
4483
|
+
readonly message: string;
|
|
4484
|
+
readonly fields: {
|
|
4485
|
+
readonly [x: string]: readonly string[];
|
|
4486
|
+
};
|
|
4487
|
+
}, readonly [Schema.Struct<{
|
|
4488
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4489
|
+
readonly message: Schema.String;
|
|
4490
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4491
|
+
}>], {
|
|
4492
|
+
readonly _tag: "MalformedRequestError";
|
|
4493
|
+
readonly message: string;
|
|
4494
|
+
readonly fields: {
|
|
4495
|
+
readonly [x: string]: readonly string[];
|
|
4496
|
+
};
|
|
4497
|
+
}>, Schema.Struct<{
|
|
4498
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4499
|
+
readonly message: Schema.String;
|
|
4500
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4103
4501
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4104
4502
|
readonly _tag: "ResourceNotFoundError";
|
|
4105
4503
|
readonly resource: string;
|
|
@@ -4153,9 +4551,9 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4153
4551
|
readonly message: Schema.String;
|
|
4154
4552
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
4155
4553
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"journeysList", "GET", "/v1/journeys", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
4156
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
4554
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"draft">, Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"archived">]>>;
|
|
4157
4555
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
4158
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
4556
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
4159
4557
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4160
4558
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
4161
4559
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
@@ -4195,6 +4593,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4195
4593
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4196
4594
|
readonly message: Schema.String;
|
|
4197
4595
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4596
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4597
|
+
readonly _tag: "MalformedRequestError";
|
|
4598
|
+
readonly message: string;
|
|
4599
|
+
readonly fields: {
|
|
4600
|
+
readonly [x: string]: readonly string[];
|
|
4601
|
+
};
|
|
4602
|
+
}, readonly [Schema.Struct<{
|
|
4603
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4604
|
+
readonly message: Schema.String;
|
|
4605
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4606
|
+
}>], {
|
|
4607
|
+
readonly _tag: "MalformedRequestError";
|
|
4608
|
+
readonly message: string;
|
|
4609
|
+
readonly fields: {
|
|
4610
|
+
readonly [x: string]: readonly string[];
|
|
4611
|
+
};
|
|
4612
|
+
}>, Schema.Struct<{
|
|
4613
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4614
|
+
readonly message: Schema.String;
|
|
4615
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4198
4616
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
|
|
4199
4617
|
readonly _tag: "UnauthorizedError";
|
|
4200
4618
|
readonly message: string;
|
|
@@ -4230,10 +4648,10 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4230
4648
|
}>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"journeysListRuns", "GET", "/v1/journeys/:id/runs", Schema.toCodecStringTree<Schema.Struct<{
|
|
4231
4649
|
readonly id: Schema.brand<Schema.String, "JourneyId">;
|
|
4232
4650
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
4233
|
-
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.
|
|
4234
|
-
readonly contactId: Schema.optionalKey<Schema.
|
|
4651
|
+
readonly status: Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"active">, Schema.Literal<"paused">, Schema.Literal<"exited">, Schema.Literal<"failed">]>>;
|
|
4652
|
+
readonly contactId: Schema.optionalKey<Schema.brand<Schema.String, "ContactId">>;
|
|
4235
4653
|
readonly limit: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
4236
|
-
readonly cursor: Schema.optionalKey<Schema.
|
|
4654
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
4237
4655
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
4238
4656
|
readonly items: Schema.$Array<Schema.Struct<{
|
|
4239
4657
|
readonly id: Schema.brand<Schema.String, "JourneyRunId">;
|
|
@@ -4283,6 +4701,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4283
4701
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4284
4702
|
readonly message: Schema.String;
|
|
4285
4703
|
readonly retryAfterSeconds: Schema.Finite;
|
|
4704
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
4705
|
+
readonly _tag: "MalformedRequestError";
|
|
4706
|
+
readonly message: string;
|
|
4707
|
+
readonly fields: {
|
|
4708
|
+
readonly [x: string]: readonly string[];
|
|
4709
|
+
};
|
|
4710
|
+
}, readonly [Schema.Struct<{
|
|
4711
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4712
|
+
readonly message: Schema.String;
|
|
4713
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4714
|
+
}>], {
|
|
4715
|
+
readonly _tag: "MalformedRequestError";
|
|
4716
|
+
readonly message: string;
|
|
4717
|
+
readonly fields: {
|
|
4718
|
+
readonly [x: string]: readonly string[];
|
|
4719
|
+
};
|
|
4720
|
+
}>, Schema.Struct<{
|
|
4721
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
4722
|
+
readonly message: Schema.String;
|
|
4723
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4286
4724
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4287
4725
|
readonly _tag: "ResourceNotFoundError";
|
|
4288
4726
|
readonly resource: string;
|
|
@@ -4366,6 +4804,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4366
4804
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4367
4805
|
readonly nodeId: Schema.String;
|
|
4368
4806
|
}>]>;
|
|
4807
|
+
}>, Schema.Struct<{
|
|
4808
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
4809
|
+
readonly config: Schema.Struct<{
|
|
4810
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
4811
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
4812
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
4813
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
4814
|
+
}>, Schema.Struct<{
|
|
4815
|
+
readonly customField: Schema.String;
|
|
4816
|
+
}>]>>>;
|
|
4817
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
4818
|
+
}>;
|
|
4819
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4820
|
+
readonly nodeId: Schema.String;
|
|
4821
|
+
}>]>;
|
|
4369
4822
|
}>, Schema.Struct<{
|
|
4370
4823
|
readonly type: Schema.Literal<"wait">;
|
|
4371
4824
|
readonly config: Schema.Struct<{
|
|
@@ -4552,6 +5005,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4552
5005
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4553
5006
|
readonly message: Schema.String;
|
|
4554
5007
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5008
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5009
|
+
readonly _tag: "MalformedRequestError";
|
|
5010
|
+
readonly message: string;
|
|
5011
|
+
readonly fields: {
|
|
5012
|
+
readonly [x: string]: readonly string[];
|
|
5013
|
+
};
|
|
5014
|
+
}, readonly [Schema.Struct<{
|
|
5015
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5016
|
+
readonly message: Schema.String;
|
|
5017
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5018
|
+
}>], {
|
|
5019
|
+
readonly _tag: "MalformedRequestError";
|
|
5020
|
+
readonly message: string;
|
|
5021
|
+
readonly fields: {
|
|
5022
|
+
readonly [x: string]: readonly string[];
|
|
5023
|
+
};
|
|
5024
|
+
}>, Schema.Struct<{
|
|
5025
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5026
|
+
readonly message: Schema.String;
|
|
5027
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4555
5028
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4556
5029
|
readonly _tag: "ResourceNotFoundError";
|
|
4557
5030
|
readonly resource: string;
|
|
@@ -4637,6 +5110,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4637
5110
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
4638
5111
|
readonly nodeId: Schema.String;
|
|
4639
5112
|
}>]>;
|
|
5113
|
+
}>, Schema.Struct<{
|
|
5114
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
5115
|
+
readonly config: Schema.Struct<{
|
|
5116
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5117
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
5118
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5119
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
5120
|
+
}>, Schema.Struct<{
|
|
5121
|
+
readonly customField: Schema.String;
|
|
5122
|
+
}>]>>>;
|
|
5123
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5124
|
+
}>;
|
|
5125
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5126
|
+
readonly nodeId: Schema.String;
|
|
5127
|
+
}>]>;
|
|
4640
5128
|
}>, Schema.Struct<{
|
|
4641
5129
|
readonly type: Schema.Literal<"wait">;
|
|
4642
5130
|
readonly config: Schema.Struct<{
|
|
@@ -4823,6 +5311,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4823
5311
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4824
5312
|
readonly message: Schema.String;
|
|
4825
5313
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5314
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5315
|
+
readonly _tag: "MalformedRequestError";
|
|
5316
|
+
readonly message: string;
|
|
5317
|
+
readonly fields: {
|
|
5318
|
+
readonly [x: string]: readonly string[];
|
|
5319
|
+
};
|
|
5320
|
+
}, readonly [Schema.Struct<{
|
|
5321
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5322
|
+
readonly message: Schema.String;
|
|
5323
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5324
|
+
}>], {
|
|
5325
|
+
readonly _tag: "MalformedRequestError";
|
|
5326
|
+
readonly message: string;
|
|
5327
|
+
readonly fields: {
|
|
5328
|
+
readonly [x: string]: readonly string[];
|
|
5329
|
+
};
|
|
5330
|
+
}>, Schema.Struct<{
|
|
5331
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5332
|
+
readonly message: Schema.String;
|
|
5333
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4826
5334
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
4827
5335
|
readonly _tag: "PaymentRequiredError";
|
|
4828
5336
|
readonly message: string;
|
|
@@ -4952,6 +5460,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
4952
5460
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
4953
5461
|
readonly message: Schema.String;
|
|
4954
5462
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5463
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5464
|
+
readonly _tag: "MalformedRequestError";
|
|
5465
|
+
readonly message: string;
|
|
5466
|
+
readonly fields: {
|
|
5467
|
+
readonly [x: string]: readonly string[];
|
|
5468
|
+
};
|
|
5469
|
+
}, readonly [Schema.Struct<{
|
|
5470
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5471
|
+
readonly message: Schema.String;
|
|
5472
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5473
|
+
}>], {
|
|
5474
|
+
readonly _tag: "MalformedRequestError";
|
|
5475
|
+
readonly message: string;
|
|
5476
|
+
readonly fields: {
|
|
5477
|
+
readonly [x: string]: readonly string[];
|
|
5478
|
+
};
|
|
5479
|
+
}>, Schema.Struct<{
|
|
5480
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5481
|
+
readonly message: Schema.String;
|
|
5482
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
4955
5483
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
4956
5484
|
readonly _tag: "ResourceNotFoundError";
|
|
4957
5485
|
readonly resource: string;
|
|
@@ -5032,6 +5560,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5032
5560
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5033
5561
|
readonly nodeId: Schema.String;
|
|
5034
5562
|
}>]>;
|
|
5563
|
+
}>, Schema.Struct<{
|
|
5564
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
5565
|
+
readonly config: Schema.Struct<{
|
|
5566
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5567
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
5568
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5569
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
5570
|
+
}>, Schema.Struct<{
|
|
5571
|
+
readonly customField: Schema.String;
|
|
5572
|
+
}>]>>>;
|
|
5573
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5574
|
+
}>;
|
|
5575
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5576
|
+
readonly nodeId: Schema.String;
|
|
5577
|
+
}>]>;
|
|
5035
5578
|
}>, Schema.Struct<{
|
|
5036
5579
|
readonly type: Schema.Literal<"wait">;
|
|
5037
5580
|
readonly config: Schema.Struct<{
|
|
@@ -5195,6 +5738,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5195
5738
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5196
5739
|
readonly nodeId: Schema.String;
|
|
5197
5740
|
}>]>;
|
|
5741
|
+
}>, Schema.Struct<{
|
|
5742
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
5743
|
+
readonly config: Schema.Struct<{
|
|
5744
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
5745
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
5746
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
5747
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
5748
|
+
}>, Schema.Struct<{
|
|
5749
|
+
readonly customField: Schema.String;
|
|
5750
|
+
}>]>>>;
|
|
5751
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
5752
|
+
}>;
|
|
5753
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5754
|
+
readonly nodeId: Schema.String;
|
|
5755
|
+
}>]>;
|
|
5198
5756
|
}>, Schema.Struct<{
|
|
5199
5757
|
readonly type: Schema.Literal<"wait">;
|
|
5200
5758
|
readonly config: Schema.Struct<{
|
|
@@ -5381,6 +5939,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5381
5939
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
5382
5940
|
readonly message: Schema.String;
|
|
5383
5941
|
readonly retryAfterSeconds: Schema.Finite;
|
|
5942
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
5943
|
+
readonly _tag: "MalformedRequestError";
|
|
5944
|
+
readonly message: string;
|
|
5945
|
+
readonly fields: {
|
|
5946
|
+
readonly [x: string]: readonly string[];
|
|
5947
|
+
};
|
|
5948
|
+
}, readonly [Schema.Struct<{
|
|
5949
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5950
|
+
readonly message: Schema.String;
|
|
5951
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5952
|
+
}>], {
|
|
5953
|
+
readonly _tag: "MalformedRequestError";
|
|
5954
|
+
readonly message: string;
|
|
5955
|
+
readonly fields: {
|
|
5956
|
+
readonly [x: string]: readonly string[];
|
|
5957
|
+
};
|
|
5958
|
+
}>, Schema.Struct<{
|
|
5959
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
5960
|
+
readonly message: Schema.String;
|
|
5961
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5384
5962
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
5385
5963
|
readonly _tag: "PaymentRequiredError";
|
|
5386
5964
|
readonly message: string;
|
|
@@ -5488,6 +6066,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5488
6066
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5489
6067
|
readonly nodeId: Schema.String;
|
|
5490
6068
|
}>]>;
|
|
6069
|
+
}>, Schema.Struct<{
|
|
6070
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
6071
|
+
readonly config: Schema.Struct<{
|
|
6072
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6073
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
6074
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
6075
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
6076
|
+
}>, Schema.Struct<{
|
|
6077
|
+
readonly customField: Schema.String;
|
|
6078
|
+
}>]>>>;
|
|
6079
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6080
|
+
}>;
|
|
6081
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6082
|
+
readonly nodeId: Schema.String;
|
|
6083
|
+
}>]>;
|
|
5491
6084
|
}>, Schema.Struct<{
|
|
5492
6085
|
readonly type: Schema.Literal<"wait">;
|
|
5493
6086
|
readonly config: Schema.Struct<{
|
|
@@ -5674,6 +6267,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5674
6267
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
5675
6268
|
readonly message: Schema.String;
|
|
5676
6269
|
readonly retryAfterSeconds: Schema.Finite;
|
|
6270
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
6271
|
+
readonly _tag: "MalformedRequestError";
|
|
6272
|
+
readonly message: string;
|
|
6273
|
+
readonly fields: {
|
|
6274
|
+
readonly [x: string]: readonly string[];
|
|
6275
|
+
};
|
|
6276
|
+
}, readonly [Schema.Struct<{
|
|
6277
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6278
|
+
readonly message: Schema.String;
|
|
6279
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6280
|
+
}>], {
|
|
6281
|
+
readonly _tag: "MalformedRequestError";
|
|
6282
|
+
readonly message: string;
|
|
6283
|
+
readonly fields: {
|
|
6284
|
+
readonly [x: string]: readonly string[];
|
|
6285
|
+
};
|
|
6286
|
+
}>, Schema.Struct<{
|
|
6287
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6288
|
+
readonly message: Schema.String;
|
|
6289
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5677
6290
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<PaymentRequiredError, {
|
|
5678
6291
|
readonly _tag: "PaymentRequiredError";
|
|
5679
6292
|
readonly message: string;
|
|
@@ -5796,6 +6409,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5796
6409
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
5797
6410
|
readonly message: Schema.String;
|
|
5798
6411
|
readonly retryAfterSeconds: Schema.Finite;
|
|
6412
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
6413
|
+
readonly _tag: "MalformedRequestError";
|
|
6414
|
+
readonly message: string;
|
|
6415
|
+
readonly fields: {
|
|
6416
|
+
readonly [x: string]: readonly string[];
|
|
6417
|
+
};
|
|
6418
|
+
}, readonly [Schema.Struct<{
|
|
6419
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6420
|
+
readonly message: Schema.String;
|
|
6421
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6422
|
+
}>], {
|
|
6423
|
+
readonly _tag: "MalformedRequestError";
|
|
6424
|
+
readonly message: string;
|
|
6425
|
+
readonly fields: {
|
|
6426
|
+
readonly [x: string]: readonly string[];
|
|
6427
|
+
};
|
|
6428
|
+
}>, Schema.Struct<{
|
|
6429
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6430
|
+
readonly message: Schema.String;
|
|
6431
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
5799
6432
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
5800
6433
|
readonly _tag: "ResourceNotFoundError";
|
|
5801
6434
|
readonly resource: string;
|
|
@@ -5881,6 +6514,21 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
5881
6514
|
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
5882
6515
|
readonly nodeId: Schema.String;
|
|
5883
6516
|
}>]>;
|
|
6517
|
+
}>, Schema.Struct<{
|
|
6518
|
+
readonly type: Schema.Literal<"send_whatsapp">;
|
|
6519
|
+
readonly config: Schema.Struct<{
|
|
6520
|
+
readonly template: Schema.Union<readonly [Schema.brand<Schema.String, "TemplateId">, Schema.String]>;
|
|
6521
|
+
readonly templateData: Schema.optionalKey<Schema.$Record<Schema.String, Schema.suspend<Schema.Codec<import("./shared").JsonValue, import("./shared").JsonValue, never, never>>>>;
|
|
6522
|
+
readonly bindings: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.Struct<{
|
|
6523
|
+
readonly contact: Schema.Union<readonly [Schema.Literal<"id">, Schema.Literal<"name">, Schema.Literal<"displayName">, Schema.Literal<"externalId">, Schema.Literal<"phone">, Schema.Literal<"email">, Schema.Literal<"firstName">, Schema.Literal<"lastName">, Schema.Literal<"company">, Schema.Literal<"jobTitle">]>;
|
|
6524
|
+
}>, Schema.Struct<{
|
|
6525
|
+
readonly customField: Schema.String;
|
|
6526
|
+
}>]>>>;
|
|
6527
|
+
readonly businessAccountId: Schema.optionalKey<Schema.brand<Schema.String, "WhatsAppBusinessAccountId">>;
|
|
6528
|
+
}>;
|
|
6529
|
+
readonly next: Schema.Tuple<readonly [Schema.Struct<{
|
|
6530
|
+
readonly nodeId: Schema.String;
|
|
6531
|
+
}>]>;
|
|
5884
6532
|
}>, Schema.Struct<{
|
|
5885
6533
|
readonly type: Schema.Literal<"wait">;
|
|
5886
6534
|
readonly config: Schema.Struct<{
|
|
@@ -6047,6 +6695,26 @@ declare const JourneysGroup_base: HttpApiGroup.HttpApiGroup<"Journeys", HttpApiE
|
|
|
6047
6695
|
readonly _tag: Schema.tag<"GatewayTimeoutError">;
|
|
6048
6696
|
readonly message: Schema.String;
|
|
6049
6697
|
readonly retryAfterSeconds: Schema.Finite;
|
|
6698
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
|
|
6699
|
+
readonly _tag: "MalformedRequestError";
|
|
6700
|
+
readonly message: string;
|
|
6701
|
+
readonly fields: {
|
|
6702
|
+
readonly [x: string]: readonly string[];
|
|
6703
|
+
};
|
|
6704
|
+
}, readonly [Schema.Struct<{
|
|
6705
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6706
|
+
readonly message: Schema.String;
|
|
6707
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6708
|
+
}>], {
|
|
6709
|
+
readonly _tag: "MalformedRequestError";
|
|
6710
|
+
readonly message: string;
|
|
6711
|
+
readonly fields: {
|
|
6712
|
+
readonly [x: string]: readonly string[];
|
|
6713
|
+
};
|
|
6714
|
+
}>, Schema.Struct<{
|
|
6715
|
+
readonly _tag: Schema.tag<"MalformedRequestError">;
|
|
6716
|
+
readonly message: Schema.String;
|
|
6717
|
+
readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
|
|
6050
6718
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
|
|
6051
6719
|
readonly _tag: "ResourceNotFoundError";
|
|
6052
6720
|
readonly resource: string;
|