samva 0.25.0 → 0.27.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 +2 -0
- package/dist/client/sdk.gen.js +245 -1
- package/dist/client/types.gen.d.ts +15 -0
- package/dist/effect/agents.d.ts +121 -0
- package/dist/effect/agents.js +29 -0
- package/dist/effect/analytics.js +1 -1
- package/dist/effect/campaigns.d.ts +18 -0
- package/dist/effect/generated/agents.js +271 -0
- package/dist/effect/generated/campaigns.d.ts +34 -0
- package/dist/effect/generated/email.d.ts +15 -30
- package/dist/effect/generated/email.js +3 -6
- package/dist/effect/generated/index.d.ts +1 -1
- package/dist/effect/generated/mailboxes.d.ts +294 -588
- package/dist/effect/generated/messages.d.ts +4 -0
- package/dist/effect/generated/scheduled-messages.d.ts +16 -0
- package/dist/effect/generated/shared.d.ts +44 -70
- package/dist/effect/generated/shared.js +57 -24
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +2 -1
- package/dist/effect/internal/operation.js +1 -0
- package/dist/effect/journeys.d.ts +112 -112
- package/dist/effect/messages.d.ts +3 -0
- package/dist/effect/scheduled-messages.d.ts +9 -0
- package/dist/package.js +1 -1
- package/dist/promises/index.d.ts +3 -1
- package/dist/promises/index.js +3 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +45 -0
- package/dist/service-map.js +30 -0
- package/package.json +11 -7
|
@@ -516,6 +516,7 @@ export declare const MessagesSendRequestJson: Schema.Struct<{
|
|
|
516
516
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
517
517
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
518
518
|
}>>;
|
|
519
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
519
520
|
}>;
|
|
520
521
|
}>;
|
|
521
522
|
export type MessagesSend201 = MessageReceipt;
|
|
@@ -1086,6 +1087,7 @@ export declare const MessagesValidateEmailRequestJson: Schema.Struct<{
|
|
|
1086
1087
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
1087
1088
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1088
1089
|
}>>;
|
|
1090
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1089
1091
|
}>;
|
|
1090
1092
|
}>;
|
|
1091
1093
|
export type MessagesValidateEmail200 = ValidateEmailResponse;
|
|
@@ -2070,6 +2072,7 @@ declare const MessagesGroup_base: HttpApiGroup.HttpApiGroup<"Messages", HttpApiE
|
|
|
2070
2072
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
2071
2073
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2072
2074
|
}>>;
|
|
2075
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2073
2076
|
}>;
|
|
2074
2077
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
2075
2078
|
readonly "idempotency-key": Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2249,6 +2252,7 @@ declare const MessagesGroup_base: HttpApiGroup.HttpApiGroup<"Messages", HttpApiE
|
|
|
2249
2252
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
2250
2253
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2251
2254
|
}>>;
|
|
2255
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2252
2256
|
}>;
|
|
2253
2257
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2254
2258
|
readonly valid: Schema.Literal<true>;
|
|
@@ -71,6 +71,7 @@ export declare const SendMessagePayload: Schema.Struct<{
|
|
|
71
71
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
72
72
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
73
73
|
}>>;
|
|
74
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
74
75
|
}>;
|
|
75
76
|
}>;
|
|
76
77
|
export type DispatchSendMessagePayload = {
|
|
@@ -140,6 +141,7 @@ export declare const DispatchSendMessagePayload: Schema.Struct<{
|
|
|
140
141
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
141
142
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
142
143
|
}>>;
|
|
144
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
143
145
|
}>;
|
|
144
146
|
}>;
|
|
145
147
|
export type ScheduledMessage = {
|
|
@@ -221,6 +223,7 @@ export declare const ScheduledMessage: Schema.Struct<{
|
|
|
221
223
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
222
224
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
223
225
|
}>>;
|
|
226
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
224
227
|
}>;
|
|
225
228
|
}>;
|
|
226
229
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
@@ -301,6 +304,7 @@ export declare const ScheduledMessagePage: Schema.Struct<{
|
|
|
301
304
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
302
305
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
303
306
|
}>>;
|
|
307
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
304
308
|
}>;
|
|
305
309
|
}>;
|
|
306
310
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
@@ -390,6 +394,7 @@ export declare const ScheduledMessagesList200: Schema.Struct<{
|
|
|
390
394
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
391
395
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
392
396
|
}>>;
|
|
397
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
393
398
|
}>;
|
|
394
399
|
}>;
|
|
395
400
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
@@ -480,6 +485,7 @@ export declare const ScheduledMessagesCreateRequestJson: Schema.Struct<{
|
|
|
480
485
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
481
486
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
482
487
|
}>>;
|
|
488
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
483
489
|
}>;
|
|
484
490
|
}>;
|
|
485
491
|
readonly scheduledFor: Schema.decodeTo<Schema.Date, Schema.String, never, never>;
|
|
@@ -550,6 +556,7 @@ export declare const ScheduledMessagesCreate201: Schema.Struct<{
|
|
|
550
556
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
551
557
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
552
558
|
}>>;
|
|
559
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
553
560
|
}>;
|
|
554
561
|
}>;
|
|
555
562
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
@@ -646,6 +653,7 @@ export declare const ScheduledMessagesGet200: Schema.Struct<{
|
|
|
646
653
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
647
654
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
648
655
|
}>>;
|
|
656
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
649
657
|
}>;
|
|
650
658
|
}>;
|
|
651
659
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
@@ -745,6 +753,7 @@ export declare const ScheduledMessagesCancel200: Schema.Struct<{
|
|
|
745
753
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
746
754
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
747
755
|
}>>;
|
|
756
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
748
757
|
}>;
|
|
749
758
|
}>;
|
|
750
759
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
@@ -854,6 +863,7 @@ export declare const ScheduledMessagesResume200: Schema.Struct<{
|
|
|
854
863
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
855
864
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
856
865
|
}>>;
|
|
866
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
857
867
|
}>;
|
|
858
868
|
}>;
|
|
859
869
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
@@ -951,6 +961,7 @@ declare const ScheduledMessagesGroup_base: HttpApiGroup.HttpApiGroup<"Scheduled
|
|
|
951
961
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
952
962
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
953
963
|
}>>;
|
|
964
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
954
965
|
}>;
|
|
955
966
|
}>;
|
|
956
967
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
@@ -1122,6 +1133,7 @@ declare const ScheduledMessagesGroup_base: HttpApiGroup.HttpApiGroup<"Scheduled
|
|
|
1122
1133
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
1123
1134
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1124
1135
|
}>>;
|
|
1136
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1125
1137
|
}>;
|
|
1126
1138
|
}>;
|
|
1127
1139
|
readonly scheduledFor: Schema.decodeTo<Schema.Date, Schema.String, never, never>;
|
|
@@ -1190,6 +1202,7 @@ declare const ScheduledMessagesGroup_base: HttpApiGroup.HttpApiGroup<"Scheduled
|
|
|
1190
1202
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
1191
1203
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1192
1204
|
}>>;
|
|
1205
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1193
1206
|
}>;
|
|
1194
1207
|
}>;
|
|
1195
1208
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
@@ -1346,6 +1359,7 @@ declare const ScheduledMessagesGroup_base: HttpApiGroup.HttpApiGroup<"Scheduled
|
|
|
1346
1359
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
1347
1360
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1348
1361
|
}>>;
|
|
1362
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1349
1363
|
}>;
|
|
1350
1364
|
}>;
|
|
1351
1365
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
@@ -1505,6 +1519,7 @@ declare const ScheduledMessagesGroup_base: HttpApiGroup.HttpApiGroup<"Scheduled
|
|
|
1505
1519
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
1506
1520
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1507
1521
|
}>>;
|
|
1522
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1508
1523
|
}>;
|
|
1509
1524
|
}>;
|
|
1510
1525
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
@@ -1648,6 +1663,7 @@ declare const ScheduledMessagesGroup_base: HttpApiGroup.HttpApiGroup<"Scheduled
|
|
|
1648
1663
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
1649
1664
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
1650
1665
|
}>>;
|
|
1666
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
1651
1667
|
}>;
|
|
1652
1668
|
}>;
|
|
1653
1669
|
readonly messageId: Schema.Union<readonly [Schema.brand<Schema.String, "MessageId">, Schema.Null]>;
|
|
@@ -222,6 +222,10 @@ export type EmailFooterOverride = {
|
|
|
222
222
|
export declare const EmailFooterOverride: Schema.Struct<{
|
|
223
223
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
224
224
|
}>;
|
|
225
|
+
export type EmailCustomHeaders = {
|
|
226
|
+
readonly [x: string]: string;
|
|
227
|
+
};
|
|
228
|
+
export declare const EmailCustomHeaders: Schema.$Record<Schema.String, Schema.String>;
|
|
225
229
|
export type ConversationId = string & EffectBrand.Brand<"ConversationId">;
|
|
226
230
|
export declare const ConversationId: Schema.brand<Schema.String, "ConversationId">;
|
|
227
231
|
export type ContactId = string & EffectBrand.Brand<"ContactId">;
|
|
@@ -439,38 +443,31 @@ export type MailboxSendError = {
|
|
|
439
443
|
readonly id: string;
|
|
440
444
|
readonly message: string;
|
|
441
445
|
};
|
|
442
|
-
export declare const MailboxSendError: Schema.Union<readonly [Schema.
|
|
443
|
-
readonly _tag: Schema.Literal<"SenderNotReadyError">;
|
|
446
|
+
export declare const MailboxSendError: Schema.Union<readonly [Schema.TaggedStruct<"SenderNotReadyError", {
|
|
444
447
|
readonly message: Schema.String;
|
|
445
448
|
readonly sender: Schema.String;
|
|
446
449
|
readonly retryAfterSeconds: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
447
|
-
}>, Schema.
|
|
448
|
-
readonly _tag: Schema.Literal<"RateLimitedError">;
|
|
450
|
+
}>, Schema.TaggedStruct<"RateLimitedError", {
|
|
449
451
|
readonly message: Schema.String;
|
|
450
452
|
readonly retryAfterSeconds: Schema.Finite;
|
|
451
|
-
}>, Schema.
|
|
452
|
-
readonly _tag: Schema.Literal<"OnboardingReviewRequiredError">;
|
|
453
|
+
}>, Schema.TaggedStruct<"OnboardingReviewRequiredError", {
|
|
453
454
|
readonly message: Schema.String;
|
|
454
455
|
readonly code: Schema.Union<readonly [Schema.Literal<"review_required">, Schema.Literal<"review_in_progress">, Schema.Literal<"information_required">, Schema.Literal<"review_rejected">, Schema.Literal<"identity_review_required">, Schema.Literal<"identity_review_rejected">, Schema.Literal<"identity_changed">]>;
|
|
455
456
|
readonly decision: Schema.Union<readonly [Schema.Literal<"undecided">, Schema.Literal<"approved">, Schema.Literal<"rejected">]>;
|
|
456
457
|
readonly stage: Schema.Union<readonly [Schema.Literal<"collecting">, Schema.Literal<"automated_review">, Schema.Literal<"manual_review">, Schema.Literal<"information_requested">, Schema.Literal<"complete">]>;
|
|
457
458
|
readonly nextAction: Schema.Union<readonly [Schema.Literal<"wait_for_review">, Schema.Literal<"provide_information">, Schema.Literal<"verify_sending_identity">, Schema.Literal<"reapply">, Schema.Literal<"contact_support">]>;
|
|
458
459
|
readonly identityId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
459
|
-
}>, Schema.
|
|
460
|
-
readonly _tag: Schema.Literal<"PaymentRequiredError">;
|
|
460
|
+
}>, Schema.TaggedStruct<"PaymentRequiredError", {
|
|
461
461
|
readonly message: Schema.String;
|
|
462
462
|
readonly resource: Schema.String;
|
|
463
463
|
readonly currentUsage: Schema.Finite;
|
|
464
464
|
readonly limit: Schema.Finite;
|
|
465
|
-
}>, Schema.
|
|
466
|
-
readonly _tag: Schema.Literal<"ValidationError">;
|
|
465
|
+
}>, Schema.TaggedStruct<"ValidationError", {
|
|
467
466
|
readonly message: Schema.String;
|
|
468
467
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
469
|
-
}>, Schema.
|
|
470
|
-
readonly _tag: Schema.Literal<"ForbiddenError">;
|
|
468
|
+
}>, Schema.TaggedStruct<"ForbiddenError", {
|
|
471
469
|
readonly message: Schema.String;
|
|
472
|
-
}>, Schema.
|
|
473
|
-
readonly _tag: Schema.Literal<"ResourceNotFoundError">;
|
|
470
|
+
}>, Schema.TaggedStruct<"ResourceNotFoundError", {
|
|
474
471
|
readonly resource: Schema.String;
|
|
475
472
|
readonly id: Schema.String;
|
|
476
473
|
readonly message: Schema.String;
|
|
@@ -1224,38 +1221,31 @@ export type MailboxSendOutcome = {
|
|
|
1224
1221
|
export declare const MailboxSendOutcome: Schema.Struct<{
|
|
1225
1222
|
readonly code: Schema.String;
|
|
1226
1223
|
readonly message: Schema.String;
|
|
1227
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
1228
|
-
readonly _tag: Schema.Literal<"SenderNotReadyError">;
|
|
1224
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"SenderNotReadyError", {
|
|
1229
1225
|
readonly message: Schema.String;
|
|
1230
1226
|
readonly sender: Schema.String;
|
|
1231
1227
|
readonly retryAfterSeconds: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1232
|
-
}>, Schema.
|
|
1233
|
-
readonly _tag: Schema.Literal<"RateLimitedError">;
|
|
1228
|
+
}>, Schema.TaggedStruct<"RateLimitedError", {
|
|
1234
1229
|
readonly message: Schema.String;
|
|
1235
1230
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1236
|
-
}>, Schema.
|
|
1237
|
-
readonly _tag: Schema.Literal<"OnboardingReviewRequiredError">;
|
|
1231
|
+
}>, Schema.TaggedStruct<"OnboardingReviewRequiredError", {
|
|
1238
1232
|
readonly message: Schema.String;
|
|
1239
1233
|
readonly code: Schema.Union<readonly [Schema.Literal<"review_required">, Schema.Literal<"review_in_progress">, Schema.Literal<"information_required">, Schema.Literal<"review_rejected">, Schema.Literal<"identity_review_required">, Schema.Literal<"identity_review_rejected">, Schema.Literal<"identity_changed">]>;
|
|
1240
1234
|
readonly decision: Schema.Union<readonly [Schema.Literal<"undecided">, Schema.Literal<"approved">, Schema.Literal<"rejected">]>;
|
|
1241
1235
|
readonly stage: Schema.Union<readonly [Schema.Literal<"collecting">, Schema.Literal<"automated_review">, Schema.Literal<"manual_review">, Schema.Literal<"information_requested">, Schema.Literal<"complete">]>;
|
|
1242
1236
|
readonly nextAction: Schema.Union<readonly [Schema.Literal<"wait_for_review">, Schema.Literal<"provide_information">, Schema.Literal<"verify_sending_identity">, Schema.Literal<"reapply">, Schema.Literal<"contact_support">]>;
|
|
1243
1237
|
readonly identityId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1244
|
-
}>, Schema.
|
|
1245
|
-
readonly _tag: Schema.Literal<"PaymentRequiredError">;
|
|
1238
|
+
}>, Schema.TaggedStruct<"PaymentRequiredError", {
|
|
1246
1239
|
readonly message: Schema.String;
|
|
1247
1240
|
readonly resource: Schema.String;
|
|
1248
1241
|
readonly currentUsage: Schema.Finite;
|
|
1249
1242
|
readonly limit: Schema.Finite;
|
|
1250
|
-
}>, Schema.
|
|
1251
|
-
readonly _tag: Schema.Literal<"ValidationError">;
|
|
1243
|
+
}>, Schema.TaggedStruct<"ValidationError", {
|
|
1252
1244
|
readonly message: Schema.String;
|
|
1253
1245
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1254
|
-
}>, Schema.
|
|
1255
|
-
readonly _tag: Schema.Literal<"ForbiddenError">;
|
|
1246
|
+
}>, Schema.TaggedStruct<"ForbiddenError", {
|
|
1256
1247
|
readonly message: Schema.String;
|
|
1257
|
-
}>, Schema.
|
|
1258
|
-
readonly _tag: Schema.Literal<"ResourceNotFoundError">;
|
|
1248
|
+
}>, Schema.TaggedStruct<"ResourceNotFoundError", {
|
|
1259
1249
|
readonly resource: Schema.String;
|
|
1260
1250
|
readonly id: Schema.String;
|
|
1261
1251
|
readonly message: Schema.String;
|
|
@@ -1953,38 +1943,31 @@ export declare const MailboxSendReceipt: Schema.Struct<{
|
|
|
1953
1943
|
readonly problem: Schema.Union<readonly [Schema.Struct<{
|
|
1954
1944
|
readonly code: Schema.String;
|
|
1955
1945
|
readonly message: Schema.String;
|
|
1956
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
1957
|
-
readonly _tag: Schema.Literal<"SenderNotReadyError">;
|
|
1946
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"SenderNotReadyError", {
|
|
1958
1947
|
readonly message: Schema.String;
|
|
1959
1948
|
readonly sender: Schema.String;
|
|
1960
1949
|
readonly retryAfterSeconds: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
1961
|
-
}>, Schema.
|
|
1962
|
-
readonly _tag: Schema.Literal<"RateLimitedError">;
|
|
1950
|
+
}>, Schema.TaggedStruct<"RateLimitedError", {
|
|
1963
1951
|
readonly message: Schema.String;
|
|
1964
1952
|
readonly retryAfterSeconds: Schema.Finite;
|
|
1965
|
-
}>, Schema.
|
|
1966
|
-
readonly _tag: Schema.Literal<"OnboardingReviewRequiredError">;
|
|
1953
|
+
}>, Schema.TaggedStruct<"OnboardingReviewRequiredError", {
|
|
1967
1954
|
readonly message: Schema.String;
|
|
1968
1955
|
readonly code: Schema.Union<readonly [Schema.Literal<"review_required">, Schema.Literal<"review_in_progress">, Schema.Literal<"information_required">, Schema.Literal<"review_rejected">, Schema.Literal<"identity_review_required">, Schema.Literal<"identity_review_rejected">, Schema.Literal<"identity_changed">]>;
|
|
1969
1956
|
readonly decision: Schema.Union<readonly [Schema.Literal<"undecided">, Schema.Literal<"approved">, Schema.Literal<"rejected">]>;
|
|
1970
1957
|
readonly stage: Schema.Union<readonly [Schema.Literal<"collecting">, Schema.Literal<"automated_review">, Schema.Literal<"manual_review">, Schema.Literal<"information_requested">, Schema.Literal<"complete">]>;
|
|
1971
1958
|
readonly nextAction: Schema.Union<readonly [Schema.Literal<"wait_for_review">, Schema.Literal<"provide_information">, Schema.Literal<"verify_sending_identity">, Schema.Literal<"reapply">, Schema.Literal<"contact_support">]>;
|
|
1972
1959
|
readonly identityId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
1973
|
-
}>, Schema.
|
|
1974
|
-
readonly _tag: Schema.Literal<"PaymentRequiredError">;
|
|
1960
|
+
}>, Schema.TaggedStruct<"PaymentRequiredError", {
|
|
1975
1961
|
readonly message: Schema.String;
|
|
1976
1962
|
readonly resource: Schema.String;
|
|
1977
1963
|
readonly currentUsage: Schema.Finite;
|
|
1978
1964
|
readonly limit: Schema.Finite;
|
|
1979
|
-
}>, Schema.
|
|
1980
|
-
readonly _tag: Schema.Literal<"ValidationError">;
|
|
1965
|
+
}>, Schema.TaggedStruct<"ValidationError", {
|
|
1981
1966
|
readonly message: Schema.String;
|
|
1982
1967
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
1983
|
-
}>, Schema.
|
|
1984
|
-
readonly _tag: Schema.Literal<"ForbiddenError">;
|
|
1968
|
+
}>, Schema.TaggedStruct<"ForbiddenError", {
|
|
1985
1969
|
readonly message: Schema.String;
|
|
1986
|
-
}>, Schema.
|
|
1987
|
-
readonly _tag: Schema.Literal<"ResourceNotFoundError">;
|
|
1970
|
+
}>, Schema.TaggedStruct<"ResourceNotFoundError", {
|
|
1988
1971
|
readonly resource: Schema.String;
|
|
1989
1972
|
readonly id: Schema.String;
|
|
1990
1973
|
readonly message: Schema.String;
|
|
@@ -2089,6 +2072,7 @@ export type EmailContent = {
|
|
|
2089
2072
|
readonly unsubscribeGroupId?: UnsubscribeId | null | null;
|
|
2090
2073
|
readonly tracking?: EmailTrackingOverrideV1;
|
|
2091
2074
|
readonly footer?: EmailFooterOverride;
|
|
2075
|
+
readonly headers?: EmailCustomHeaders | null;
|
|
2092
2076
|
};
|
|
2093
2077
|
export declare const EmailContent: Schema.Struct<{
|
|
2094
2078
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2118,6 +2102,7 @@ export declare const EmailContent: Schema.Struct<{
|
|
|
2118
2102
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
2119
2103
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2120
2104
|
}>>;
|
|
2105
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2121
2106
|
}>;
|
|
2122
2107
|
export type EmailDispatchContent = {
|
|
2123
2108
|
readonly subject?: string | null;
|
|
@@ -2136,6 +2121,7 @@ export type EmailDispatchContent = {
|
|
|
2136
2121
|
readonly unsubscribeGroupId?: UnsubscribeId | null | null;
|
|
2137
2122
|
readonly tracking?: EmailTrackingOverrideV1;
|
|
2138
2123
|
readonly footer?: EmailFooterOverride;
|
|
2124
|
+
readonly headers?: EmailCustomHeaders | null;
|
|
2139
2125
|
};
|
|
2140
2126
|
export declare const EmailDispatchContent: Schema.Struct<{
|
|
2141
2127
|
readonly subject: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
@@ -2165,6 +2151,7 @@ export declare const EmailDispatchContent: Schema.Struct<{
|
|
|
2165
2151
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
2166
2152
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2167
2153
|
}>>;
|
|
2154
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2168
2155
|
}>;
|
|
2169
2156
|
export type ContactIdentity = {
|
|
2170
2157
|
readonly id: ContactIdentityId;
|
|
@@ -2312,38 +2299,31 @@ declare const MailboxSendRefusedError_base: Schema.Class<MailboxSendRefusedError
|
|
|
2312
2299
|
readonly problem: Schema.Union<readonly [Schema.Struct<{
|
|
2313
2300
|
readonly code: Schema.String;
|
|
2314
2301
|
readonly message: Schema.String;
|
|
2315
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
2316
|
-
readonly _tag: Schema.Literal<"SenderNotReadyError">;
|
|
2302
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"SenderNotReadyError", {
|
|
2317
2303
|
readonly message: Schema.String;
|
|
2318
2304
|
readonly sender: Schema.String;
|
|
2319
2305
|
readonly retryAfterSeconds: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
2320
|
-
}>, Schema.
|
|
2321
|
-
readonly _tag: Schema.Literal<"RateLimitedError">;
|
|
2306
|
+
}>, Schema.TaggedStruct<"RateLimitedError", {
|
|
2322
2307
|
readonly message: Schema.String;
|
|
2323
2308
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2324
|
-
}>, Schema.
|
|
2325
|
-
readonly _tag: Schema.Literal<"OnboardingReviewRequiredError">;
|
|
2309
|
+
}>, Schema.TaggedStruct<"OnboardingReviewRequiredError", {
|
|
2326
2310
|
readonly message: Schema.String;
|
|
2327
2311
|
readonly code: Schema.Union<readonly [Schema.Literal<"review_required">, Schema.Literal<"review_in_progress">, Schema.Literal<"information_required">, Schema.Literal<"review_rejected">, Schema.Literal<"identity_review_required">, Schema.Literal<"identity_review_rejected">, Schema.Literal<"identity_changed">]>;
|
|
2328
2312
|
readonly decision: Schema.Union<readonly [Schema.Literal<"undecided">, Schema.Literal<"approved">, Schema.Literal<"rejected">]>;
|
|
2329
2313
|
readonly stage: Schema.Union<readonly [Schema.Literal<"collecting">, Schema.Literal<"automated_review">, Schema.Literal<"manual_review">, Schema.Literal<"information_requested">, Schema.Literal<"complete">]>;
|
|
2330
2314
|
readonly nextAction: Schema.Union<readonly [Schema.Literal<"wait_for_review">, Schema.Literal<"provide_information">, Schema.Literal<"verify_sending_identity">, Schema.Literal<"reapply">, Schema.Literal<"contact_support">]>;
|
|
2331
2315
|
readonly identityId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2332
|
-
}>, Schema.
|
|
2333
|
-
readonly _tag: Schema.Literal<"PaymentRequiredError">;
|
|
2316
|
+
}>, Schema.TaggedStruct<"PaymentRequiredError", {
|
|
2334
2317
|
readonly message: Schema.String;
|
|
2335
2318
|
readonly resource: Schema.String;
|
|
2336
2319
|
readonly currentUsage: Schema.Finite;
|
|
2337
2320
|
readonly limit: Schema.Finite;
|
|
2338
|
-
}>, Schema.
|
|
2339
|
-
readonly _tag: Schema.Literal<"ValidationError">;
|
|
2321
|
+
}>, Schema.TaggedStruct<"ValidationError", {
|
|
2340
2322
|
readonly message: Schema.String;
|
|
2341
2323
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2342
|
-
}>, Schema.
|
|
2343
|
-
readonly _tag: Schema.Literal<"ForbiddenError">;
|
|
2324
|
+
}>, Schema.TaggedStruct<"ForbiddenError", {
|
|
2344
2325
|
readonly message: Schema.String;
|
|
2345
|
-
}>, Schema.
|
|
2346
|
-
readonly _tag: Schema.Literal<"ResourceNotFoundError">;
|
|
2326
|
+
}>, Schema.TaggedStruct<"ResourceNotFoundError", {
|
|
2347
2327
|
readonly resource: Schema.String;
|
|
2348
2328
|
readonly id: Schema.String;
|
|
2349
2329
|
readonly message: Schema.String;
|
|
@@ -2387,38 +2367,31 @@ declare const MailboxSendConflictError_base: Schema.Class<MailboxSendConflictErr
|
|
|
2387
2367
|
readonly problem: Schema.Union<readonly [Schema.Struct<{
|
|
2388
2368
|
readonly code: Schema.String;
|
|
2389
2369
|
readonly message: Schema.String;
|
|
2390
|
-
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.
|
|
2391
|
-
readonly _tag: Schema.Literal<"SenderNotReadyError">;
|
|
2370
|
+
readonly error: Schema.optionalKey<Schema.Union<readonly [Schema.Union<readonly [Schema.TaggedStruct<"SenderNotReadyError", {
|
|
2392
2371
|
readonly message: Schema.String;
|
|
2393
2372
|
readonly sender: Schema.String;
|
|
2394
2373
|
readonly retryAfterSeconds: Schema.optionalKey<Schema.Union<readonly [Schema.Finite, Schema.Null]>>;
|
|
2395
|
-
}>, Schema.
|
|
2396
|
-
readonly _tag: Schema.Literal<"RateLimitedError">;
|
|
2374
|
+
}>, Schema.TaggedStruct<"RateLimitedError", {
|
|
2397
2375
|
readonly message: Schema.String;
|
|
2398
2376
|
readonly retryAfterSeconds: Schema.Finite;
|
|
2399
|
-
}>, Schema.
|
|
2400
|
-
readonly _tag: Schema.Literal<"OnboardingReviewRequiredError">;
|
|
2377
|
+
}>, Schema.TaggedStruct<"OnboardingReviewRequiredError", {
|
|
2401
2378
|
readonly message: Schema.String;
|
|
2402
2379
|
readonly code: Schema.Union<readonly [Schema.Literal<"review_required">, Schema.Literal<"review_in_progress">, Schema.Literal<"information_required">, Schema.Literal<"review_rejected">, Schema.Literal<"identity_review_required">, Schema.Literal<"identity_review_rejected">, Schema.Literal<"identity_changed">]>;
|
|
2403
2380
|
readonly decision: Schema.Union<readonly [Schema.Literal<"undecided">, Schema.Literal<"approved">, Schema.Literal<"rejected">]>;
|
|
2404
2381
|
readonly stage: Schema.Union<readonly [Schema.Literal<"collecting">, Schema.Literal<"automated_review">, Schema.Literal<"manual_review">, Schema.Literal<"information_requested">, Schema.Literal<"complete">]>;
|
|
2405
2382
|
readonly nextAction: Schema.Union<readonly [Schema.Literal<"wait_for_review">, Schema.Literal<"provide_information">, Schema.Literal<"verify_sending_identity">, Schema.Literal<"reapply">, Schema.Literal<"contact_support">]>;
|
|
2406
2383
|
readonly identityId: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
2407
|
-
}>, Schema.
|
|
2408
|
-
readonly _tag: Schema.Literal<"PaymentRequiredError">;
|
|
2384
|
+
}>, Schema.TaggedStruct<"PaymentRequiredError", {
|
|
2409
2385
|
readonly message: Schema.String;
|
|
2410
2386
|
readonly resource: Schema.String;
|
|
2411
2387
|
readonly currentUsage: Schema.Finite;
|
|
2412
2388
|
readonly limit: Schema.Finite;
|
|
2413
|
-
}>, Schema.
|
|
2414
|
-
readonly _tag: Schema.Literal<"ValidationError">;
|
|
2389
|
+
}>, Schema.TaggedStruct<"ValidationError", {
|
|
2415
2390
|
readonly message: Schema.String;
|
|
2416
2391
|
readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
|
|
2417
|
-
}>, Schema.
|
|
2418
|
-
readonly _tag: Schema.Literal<"ForbiddenError">;
|
|
2392
|
+
}>, Schema.TaggedStruct<"ForbiddenError", {
|
|
2419
2393
|
readonly message: Schema.String;
|
|
2420
|
-
}>, Schema.
|
|
2421
|
-
readonly _tag: Schema.Literal<"ResourceNotFoundError">;
|
|
2394
|
+
}>, Schema.TaggedStruct<"ResourceNotFoundError", {
|
|
2422
2395
|
readonly resource: Schema.String;
|
|
2423
2396
|
readonly id: Schema.String;
|
|
2424
2397
|
readonly message: Schema.String;
|
|
@@ -2557,6 +2530,7 @@ export declare const EmailSendMessagePayload: Schema.Struct<{
|
|
|
2557
2530
|
readonly footer: Schema.optionalKey<Schema.Struct<{
|
|
2558
2531
|
readonly enabled: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Null]>>;
|
|
2559
2532
|
}>>;
|
|
2533
|
+
readonly headers: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.String>, Schema.Null]>>;
|
|
2560
2534
|
}>;
|
|
2561
2535
|
}>;
|
|
2562
2536
|
export type JourneyCondition = {
|
|
@@ -19,19 +19,35 @@ var GatewayTimeoutError = class extends Schema.TaggedError()("GatewayTimeoutErro
|
|
|
19
19
|
message: Schema.String,
|
|
20
20
|
retryAfterSeconds: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
21
21
|
})) {};
|
|
22
|
-
Schema.
|
|
22
|
+
const AgentName = /* @__PURE__ */ Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(120).annotate({ expected: "a string with at most 120 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^\\S[\\s\\S]*\\S$|^\\S$|^$", "u")).annotate({
|
|
23
|
+
expected: "a string matching the RegExp ^\\S[\\s\\S]*\\S$|^\\S$|^$",
|
|
24
|
+
identifier: "AgentName"
|
|
25
|
+
})).check(Schema.isMaxLength(120).annotate({ expected: "a value with a length of at most 120" }));
|
|
23
26
|
const MailboxEndpointId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
24
27
|
expected: "a string matching the RegExp ^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
25
28
|
identifier: "MailboxEndpointId"
|
|
26
29
|
})).pipe(Schema.brand("MailboxEndpointId"));
|
|
27
|
-
Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z]{2,8}_[0-9a-z]{16}$", "u")).annotate({
|
|
30
|
+
const AgentIntegrationReference = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z]{2,8}_[0-9a-z]{16}$", "u")).annotate({
|
|
28
31
|
expected: "a string matching the RegExp ^[a-z]{2,8}_[0-9a-z]{16}$",
|
|
29
32
|
identifier: "AgentIntegrationReference"
|
|
30
|
-
});
|
|
31
|
-
|
|
33
|
+
}));
|
|
34
|
+
const AgentMode = /* @__PURE__ */ Schema.Union([Schema.Literal("live"), Schema.Literal("supervised")]).annotate({ identifier: "AgentMode" });
|
|
35
|
+
const AgentModel = /* @__PURE__ */ Schema.Union([Schema.Literal("standard"), Schema.Literal("max")]).annotate({ identifier: "AgentModel" });
|
|
36
|
+
const AgentApprovalPolicy = /* @__PURE__ */ Schema.Union([Schema.Literal("toolActions"), Schema.Literal("none")]).annotate({ identifier: "AgentApprovalPolicy" });
|
|
37
|
+
const TimeZone = /* @__PURE__ */ Schema.String.annotate({ identifier: "TimeZone" });
|
|
38
|
+
const Weekday = /* @__PURE__ */ Schema.Union([
|
|
39
|
+
Schema.Literal("monday"),
|
|
40
|
+
Schema.Literal("tuesday"),
|
|
41
|
+
Schema.Literal("wednesday"),
|
|
42
|
+
Schema.Literal("thursday"),
|
|
43
|
+
Schema.Literal("friday"),
|
|
44
|
+
Schema.Literal("saturday"),
|
|
45
|
+
Schema.Literal("sunday")
|
|
46
|
+
]).annotate({ identifier: "Weekday" });
|
|
47
|
+
const ClockTime = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(?:[01]\\d|2[0-3]):[0-5]\\d$", "u")).annotate({
|
|
32
48
|
expected: "a string matching the RegExp ^(?:[01]\\d|2[0-3]):[0-5]\\d$",
|
|
33
49
|
identifier: "ClockTime"
|
|
34
|
-
});
|
|
50
|
+
}));
|
|
35
51
|
var ResourceNotFoundError = class extends Schema.TaggedError()("ResourceNotFoundError", Schema.Struct({
|
|
36
52
|
resource: Schema.String,
|
|
37
53
|
id: Schema.String,
|
|
@@ -150,6 +166,10 @@ const EmailTrackingOverrideV1 = /* @__PURE__ */ Schema.Struct({
|
|
|
150
166
|
identifier: "EmailTrackingOverrideV1"
|
|
151
167
|
});
|
|
152
168
|
const EmailFooterOverride = /* @__PURE__ */ Schema.Struct({ enabled: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) }).annotate({ identifier: "EmailFooterOverride" });
|
|
169
|
+
const EmailCustomHeaders = /* @__PURE__ */ Schema.Record(Schema.String, Schema.String).annotate({ description: "Custom headers copied onto the outgoing message. Each name is an RFC 5322 field name and each value is one non-empty line of printable ASCII. Names Samva or the transport own are rejected." }).check(Schema.isMaxProperties(11).annotate({
|
|
170
|
+
expected: "a value with at most 11 entries",
|
|
171
|
+
identifier: "EmailCustomHeaders"
|
|
172
|
+
}));
|
|
153
173
|
const ConversationId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^conv_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
|
|
154
174
|
expected: "a string matching the RegExp ^conv_[0-9a-hjkmnp-tv-z]{16,24}$",
|
|
155
175
|
identifier: "ConversationId"
|
|
@@ -331,19 +351,16 @@ const MailboxPolicyId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/*
|
|
|
331
351
|
identifier: "MailboxPolicyId"
|
|
332
352
|
})).pipe(Schema.brand("MailboxPolicyId"));
|
|
333
353
|
const MailboxSendError = /* @__PURE__ */ Schema.Union([
|
|
334
|
-
Schema.
|
|
335
|
-
_tag: Schema.Literal("SenderNotReadyError"),
|
|
354
|
+
Schema.TaggedStruct("SenderNotReadyError", {
|
|
336
355
|
message: Schema.String,
|
|
337
356
|
sender: Schema.String,
|
|
338
357
|
retryAfterSeconds: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null]))
|
|
339
358
|
}),
|
|
340
|
-
Schema.
|
|
341
|
-
_tag: Schema.Literal("RateLimitedError"),
|
|
359
|
+
Schema.TaggedStruct("RateLimitedError", {
|
|
342
360
|
message: Schema.String,
|
|
343
361
|
retryAfterSeconds: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
344
362
|
}),
|
|
345
|
-
Schema.
|
|
346
|
-
_tag: Schema.Literal("OnboardingReviewRequiredError"),
|
|
363
|
+
Schema.TaggedStruct("OnboardingReviewRequiredError", {
|
|
347
364
|
message: Schema.String,
|
|
348
365
|
code: Schema.Union([
|
|
349
366
|
Schema.Literal("review_required"),
|
|
@@ -375,24 +392,18 @@ const MailboxSendError = /* @__PURE__ */ Schema.Union([
|
|
|
375
392
|
]),
|
|
376
393
|
identityId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
|
|
377
394
|
}),
|
|
378
|
-
Schema.
|
|
379
|
-
_tag: Schema.Literal("PaymentRequiredError"),
|
|
395
|
+
Schema.TaggedStruct("PaymentRequiredError", {
|
|
380
396
|
message: Schema.String,
|
|
381
397
|
resource: Schema.String,
|
|
382
398
|
currentUsage: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
|
|
383
399
|
limit: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
|
|
384
400
|
}),
|
|
385
|
-
Schema.
|
|
386
|
-
_tag: Schema.Literal("ValidationError"),
|
|
401
|
+
Schema.TaggedStruct("ValidationError", {
|
|
387
402
|
message: Schema.String,
|
|
388
403
|
fields: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Array(Schema.String)), Schema.Null]))
|
|
389
404
|
}),
|
|
390
|
-
Schema.
|
|
391
|
-
|
|
392
|
-
message: Schema.String
|
|
393
|
-
}),
|
|
394
|
-
Schema.Struct({
|
|
395
|
-
_tag: Schema.Literal("ResourceNotFoundError"),
|
|
405
|
+
Schema.TaggedStruct("ForbiddenError", { message: Schema.String }),
|
|
406
|
+
Schema.TaggedStruct("ResourceNotFoundError", {
|
|
396
407
|
resource: Schema.String,
|
|
397
408
|
id: Schema.String,
|
|
398
409
|
message: Schema.String
|
|
@@ -508,6 +519,11 @@ const CreateTemplatePayload = /* @__PURE__ */ Schema.Struct({
|
|
|
508
519
|
shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Share the new organization-level project with every namespace: namespace-scoped keys read and send its entries but cannot change them. Defaults to false. Not with `namespaceId`, and not from a namespace-scoped key." })),
|
|
509
520
|
idempotencyKey: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
|
|
510
521
|
}).annotate({ identifier: "CreateTemplatePayload" });
|
|
522
|
+
const WorkingHoursRange = /* @__PURE__ */ Schema.Struct({
|
|
523
|
+
day: Weekday,
|
|
524
|
+
opens: ClockTime,
|
|
525
|
+
closes: ClockTime
|
|
526
|
+
}).annotate({ identifier: "WorkingHoursRange" });
|
|
511
527
|
const CreateWebhookPayload = /* @__PURE__ */ Schema.Struct({
|
|
512
528
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(100).annotate({ expected: "a string with at most 100 code points" })).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })),
|
|
513
529
|
url: Schema.String,
|
|
@@ -860,6 +876,10 @@ const UpdateTemplatePayload = /* @__PURE__ */ Schema.Struct({ data: Schema.Struc
|
|
|
860
876
|
isActive: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
861
877
|
shared: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]).annotate({ description: "Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared." }))
|
|
862
878
|
}) }).annotate({ identifier: "UpdateTemplatePayload" });
|
|
879
|
+
const WorkingHours = /* @__PURE__ */ Schema.Struct({
|
|
880
|
+
timeZone: TimeZone,
|
|
881
|
+
ranges: Schema.Array(WorkingHoursRange).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxLength(28).annotate({ expected: "a value with a length of at most 28" }))
|
|
882
|
+
}).annotate({ identifier: "WorkingHours" });
|
|
863
883
|
const ApiKeyAccess = /* @__PURE__ */ Schema.Union([Schema.Struct({ mode: Schema.Literal("full") }), Schema.Struct({
|
|
864
884
|
mode: Schema.Literal("restricted"),
|
|
865
885
|
resources: ApiKeyResourceAccess,
|
|
@@ -998,6 +1018,17 @@ const OperationAccepted = /* @__PURE__ */ Schema.Struct({
|
|
|
998
1018
|
resource: OperationResourceLink
|
|
999
1019
|
})
|
|
1000
1020
|
}).annotate({ identifier: "OperationAccepted" });
|
|
1021
|
+
const AgentDefinition = /* @__PURE__ */ Schema.Struct({
|
|
1022
|
+
instructions: Schema.String.check(Schema.isMaxCodePoints(2e4).annotate({ expected: "a string with at most 20000 code points" })).check(Schema.isMaxLength(2e4).annotate({ expected: "a value with a length of at most 20000" })),
|
|
1023
|
+
knowledge: Schema.String.check(Schema.isMaxCodePoints(1e5).annotate({ expected: "a string with at most 100000 code points" })).check(Schema.isMaxLength(1e5).annotate({ expected: "a value with a length of at most 100000" })),
|
|
1024
|
+
endpointIds: Schema.Array(MailboxEndpointId).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
|
|
1025
|
+
integrationIds: Schema.Array(AgentIntegrationReference).check(Schema.isMaxLength(20).annotate({ expected: "a value with a length of at most 20" })),
|
|
1026
|
+
mode: AgentMode,
|
|
1027
|
+
model: AgentModel,
|
|
1028
|
+
approvalPolicy: AgentApprovalPolicy,
|
|
1029
|
+
workingHours: Schema.Union([WorkingHours, Schema.Null]),
|
|
1030
|
+
takeoverTimeoutMinutes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(1).annotate({ expected: "a value greater than or equal to 1" })).check(Schema.isLessThanOrEqualTo(10080).annotate({ expected: "a value less than or equal to 10080" }))
|
|
1031
|
+
}).annotate({ identifier: "AgentDefinition" });
|
|
1001
1032
|
const EmailContent = /* @__PURE__ */ Schema.Struct({
|
|
1002
1033
|
subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1003
1034
|
html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1014,7 +1045,8 @@ const EmailContent = /* @__PURE__ */ Schema.Struct({
|
|
|
1014
1045
|
replyTo: Schema.optionalKey(ReplyToAddresses),
|
|
1015
1046
|
unsubscribeGroupId: Schema.optionalKey(Schema.Union([Schema.Union([UnsubscribeId, Schema.Null]), Schema.Null]).annotate({ description: "The unsubscribe group for this send. Omit to inherit the template group; null disables group inheritance for a direct send. Campaigns require a group." })),
|
|
1016
1047
|
tracking: Schema.optionalKey(EmailTrackingOverrideV1),
|
|
1017
|
-
footer: Schema.optionalKey(EmailFooterOverride)
|
|
1048
|
+
footer: Schema.optionalKey(EmailFooterOverride),
|
|
1049
|
+
headers: Schema.optionalKey(Schema.Union([EmailCustomHeaders, Schema.Null]))
|
|
1018
1050
|
}).annotate({ identifier: "EmailContent" });
|
|
1019
1051
|
const EmailDispatchContent = /* @__PURE__ */ Schema.Struct({
|
|
1020
1052
|
subject: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -1032,7 +1064,8 @@ const EmailDispatchContent = /* @__PURE__ */ Schema.Struct({
|
|
|
1032
1064
|
replyTo: Schema.optionalKey(ReplyToAddresses),
|
|
1033
1065
|
unsubscribeGroupId: Schema.optionalKey(Schema.Union([Schema.Union([UnsubscribeId, Schema.Null]), Schema.Null]).annotate({ description: "The unsubscribe group for this send. Omit to inherit the template group; null disables group inheritance for a direct send. Campaigns require a group." })),
|
|
1034
1066
|
tracking: Schema.optionalKey(EmailTrackingOverrideV1),
|
|
1035
|
-
footer: Schema.optionalKey(EmailFooterOverride)
|
|
1067
|
+
footer: Schema.optionalKey(EmailFooterOverride),
|
|
1068
|
+
headers: Schema.optionalKey(Schema.Union([EmailCustomHeaders, Schema.Null]))
|
|
1036
1069
|
}).annotate({ identifier: "EmailDispatchContent" });
|
|
1037
1070
|
const ContactIdentity = /* @__PURE__ */ Schema.Struct({
|
|
1038
1071
|
id: ContactIdentityId,
|
|
@@ -1105,6 +1138,6 @@ const ApiKeySecurity = HttpApiSecurity.apiKey({
|
|
|
1105
1138
|
});
|
|
1106
1139
|
var ApiKeySecurityMiddleware = class extends HttpApiMiddleware.Service()("apiKey security", { security: { apiKey: ApiKeySecurity } }) {};
|
|
1107
1140
|
//#endregion
|
|
1108
|
-
export { AnalyticsQueryError, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignFooterRequiredError, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, Cursor, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCcRecipients, EmailChannelError, EmailContent, EmailDispatchContent, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionId, ExtensionVersionId, ExtensionVersionRef, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, JourneyStringComparison, JourneyTagAddedTrigger, JourneyTagPredicate, JourneyTrigger, JourneyUpdateTagsConfig, JourneyUpdateTagsNode, JourneyWaitConfig, JourneyWaitEventEdge, JourneyWaitForEventConfig, JourneyWaitForEventNode, JourneyWaitNode, JourneyWebhookConfig, JourneyWebhookNode, JsonObject, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaId, MessageId, MessageMetadata, MessagePage, MessageSummary, NamespaceId, NamespaceMetadata, NamespaceResourceType, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SenderNotReadyError, SendsSeries, SkippedRecipient, SuccessResponse, TemplateData, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateTrackingDefault, TestWebhookPayload, UnauthorizedError, UnsubscribeId, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, VersionCursor, WebhookEndpointId, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, SensitiveString as __SamvaRuntimeSensitiveString };
|
|
1141
|
+
export { AgentApprovalPolicy, AgentDefinition, AgentIntegrationReference, AgentMode, AgentModel, AgentName, AnalyticsQueryError, ApiKeyAccess, ApiKeyId, ApiKeyMailboxAccess, ApiKeyResourceAccess, ApiKeySecurity, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError, BrandAddress, BrandAddressRequiredError, BrandAssets, BrandFooter, BrandSocialLink, CampaignFooterRequiredError, ClockTime, ConflictError, ContactConsent, ContactEvent, ContactEventReference, ContactGroupId, ContactId, ContactIdentity, ContactIdentityChannel, ContactIdentityId, ConversationId, CreateBrand, CreateEventPayload, CreateMailboxEndpointPayload, CreateTemplatePayload, CreateWebhookPayload, Cursor, DeliveryUnavailableError, EmailAttachment, EmailAttachments, EmailBccRecipients, EmailCcRecipients, EmailChannelError, EmailContent, EmailCustomHeaders, EmailDispatchContent, EmailDomainId, EmailFooterOverride, EmailRecipient, EmailRecipients, EmailSender, EmailSenderId, EmailTrackingOverrideV1, ExtensionId, ExtensionVersionId, ExtensionVersionRef, ExternalServiceError, FeedbackContext, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, IanaTimezone, InternalError, JourneyBranchEdge, JourneyBranchNode, JourneyComparison, JourneyCondition, JourneyContactCreatedTrigger, JourneyContactProperty, JourneyCustomEventName, JourneyCustomEventTrigger, JourneyCustomFieldPredicate, JourneyDefinition, JourneyEmptyConfig, JourneyEqualityComparison, JourneyEventName, JourneyEventPredicate, JourneyExitNode, JourneyGoal, JourneyGroupJoinedTrigger, JourneyName, JourneyNextEdge, JourneyNode, JourneyNodeId, JourneyNumericComparison, JourneyPredicate, JourneyPresenceComparison, JourneyPropertyPredicate, JourneySendEmailConfig, JourneySendEmailNode, JourneyStringComparison, JourneyTagAddedTrigger, JourneyTagPredicate, JourneyTrigger, JourneyUpdateTagsConfig, JourneyUpdateTagsNode, JourneyWaitConfig, JourneyWaitEventEdge, JourneyWaitForEventConfig, JourneyWaitForEventNode, JourneyWaitNode, JourneyWebhookConfig, JourneyWebhookNode, JsonObject, JsonValue, MailboxActionDecision, MailboxActionId, MailboxChannel, MailboxDraftId, MailboxEndpointId, MailboxGrantRole, MailboxId, MailboxLabelId, MailboxMetadata, MailboxMetadataPatch, MailboxPolicyId, MailboxPolicyOutcomeKind, MailboxSendConflictError, MailboxSendError, MailboxSendMode, MailboxSendOutcome, MailboxSendReceipt, MailboxSendRefusedError, MailboxThreadFolder, MailboxThreadId, MailboxThreadPriority, MediaId, MessageId, MessageMetadata, MessagePage, MessageSummary, NamespaceId, NamespaceMetadata, NamespaceResourceType, OnboardingReviewRequiredError, Operation, OperationAccepted, OperationId, OperationResource, OperationResourceLink, OrganizationId, PaymentRequiredError, RateLimitedError, RenderLocale, RenderTimeZone, ReplyToAddresses, ResourceNotFoundError, SendFeedback, SenderNotReadyError, SendsSeries, SkippedRecipient, SuccessResponse, TemplateData, TemplateFromDefault, TemplateId, TemplateInputContractId, TemplatePublicationId, TemplateTrackingDefault, TestWebhookPayload, TimeZone, UnauthorizedError, UnsubscribeId, UpdateBrand, UpdateTemplatePayload, UpdateWebhookPayload, UserId, ValidationError, VersionCursor, WebhookEndpointId, Weekday, WorkingHours, WorkingHoursRange, AbsoluteInstant as __SamvaRuntimeAbsoluteInstant, SensitiveString as __SamvaRuntimeSensitiveString };
|
|
1109
1142
|
|
|
1110
1143
|
//# sourceMappingURL=shared.js.map
|