samva 0.52.0 → 0.54.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/dist/client/sdk.gen.d.ts +55 -18
- package/dist/client/sdk.gen.js +165 -45
- package/dist/client/types.gen.d.ts +313 -21
- package/dist/effect/brands.d.ts +8 -1
- package/dist/effect/descriptors/brands.d.ts +4 -4
- package/dist/effect/descriptors/brands.js +4 -4
- package/dist/effect/descriptors/email.d.ts +21 -1
- package/dist/effect/descriptors/email.js +21 -1
- package/dist/effect/email.d.ts +12 -0
- package/dist/effect/email.js +5 -1
- package/dist/effect/events.d.ts +16 -0
- package/dist/effect/generated/api-keys.js +2 -2
- package/dist/effect/generated/brands.d.ts +78 -8
- package/dist/effect/generated/brands.js +21 -12
- package/dist/effect/generated/email.d.ts +473 -2
- package/dist/effect/generated/email.js +106 -7
- package/dist/effect/generated/events.d.ts +48 -0
- package/dist/effect/generated/events.js +1 -1
- package/dist/effect/generated/journeys.d.ts +1173 -55
- package/dist/effect/generated/journeys.js +10 -4
- package/dist/effect/generated/logs.d.ts +12 -0
- package/dist/effect/generated/mailboxes.d.ts +8 -0
- package/dist/effect/generated/mailboxes.js +2 -1
- package/dist/effect/generated/messages.d.ts +16 -0
- package/dist/effect/generated/messages.js +7 -1
- package/dist/effect/generated/scheduled-messages.d.ts +36 -0
- package/dist/effect/generated/shared.d.ts +438 -15
- package/dist/effect/generated/shared.js +59 -13
- package/dist/effect/generated/templates.d.ts +34 -1
- package/dist/effect/generated/templates.js +18 -3
- package/dist/effect/generated/whats-app-flows.d.ts +23 -5
- package/dist/effect/generated/whats-app-flows.js +9 -7
- package/dist/effect/generated-metadata.d.ts +12 -0
- package/dist/effect/generated-metadata.js +2 -0
- package/dist/effect/journeys.d.ts +76 -0
- package/dist/effect/mailboxes.d.ts +2 -0
- package/dist/effect/scheduled-messages.d.ts +66 -0
- package/dist/effect/templates.d.ts +1 -0
- package/dist/effect/whatsapp-flows.d.ts +30 -0
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +15 -5
- package/package.json +2 -2
|
@@ -267,6 +267,14 @@ export type WhatsAppFlowVersion = {
|
|
|
267
267
|
export type RecordWhatsAppFlowVersionPayload = {
|
|
268
268
|
commitSha: string;
|
|
269
269
|
expectedWorkspaceRevision: string;
|
|
270
|
+
} | {
|
|
271
|
+
flowJson: JsonObject;
|
|
272
|
+
};
|
|
273
|
+
export type JsonObject = {
|
|
274
|
+
[key: string]: JsonValue;
|
|
275
|
+
};
|
|
276
|
+
export type JsonObjectWritable = {
|
|
277
|
+
[key: string]: JsonValueWritable | undefined;
|
|
270
278
|
};
|
|
271
279
|
export type WhatsAppFlow = {
|
|
272
280
|
id: WhatsAppFlowId;
|
|
@@ -274,6 +282,7 @@ export type WhatsAppFlow = {
|
|
|
274
282
|
handle: string;
|
|
275
283
|
path: string;
|
|
276
284
|
categories: Array<"SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER">;
|
|
285
|
+
submissionHandler?: "agent" | "app" | undefined;
|
|
277
286
|
endpoint: WhatsAppFlowEndpoint | null;
|
|
278
287
|
currentVersion: WhatsAppFlowVersion | null;
|
|
279
288
|
createdAt: string;
|
|
@@ -291,6 +300,7 @@ export type CreateWhatsAppFlowPayload = {
|
|
|
291
300
|
projectId: TemplateProjectId;
|
|
292
301
|
handle: string;
|
|
293
302
|
categories: Array<"SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER">;
|
|
303
|
+
submissionHandler?: "agent" | "app" | undefined;
|
|
294
304
|
};
|
|
295
305
|
export type MessageDeliveryId = string;
|
|
296
306
|
export type MoneyAmount = {
|
|
@@ -744,12 +754,6 @@ export type MailboxChatTemplate = {
|
|
|
744
754
|
templateChannelVariantId: TemplateChannelVariantId;
|
|
745
755
|
templateData: JsonObject | null;
|
|
746
756
|
};
|
|
747
|
-
export type JsonObject = {
|
|
748
|
-
[key: string]: JsonValue;
|
|
749
|
-
};
|
|
750
|
-
export type JsonObjectWritable = {
|
|
751
|
-
[key: string]: JsonValueWritable | undefined;
|
|
752
|
-
};
|
|
753
757
|
export type MailboxSmsEndpointBinding = {
|
|
754
758
|
channel: "sms";
|
|
755
759
|
phoneNumberId: SmsPhoneNumberId;
|
|
@@ -1084,6 +1088,7 @@ export type MailboxChatMessage = {
|
|
|
1084
1088
|
template: MailboxChatMessageTemplate | null;
|
|
1085
1089
|
summary: string | null;
|
|
1086
1090
|
contextMessageId: MessageId | null;
|
|
1091
|
+
flowSubmissionHandledBy?: "app" | undefined;
|
|
1087
1092
|
};
|
|
1088
1093
|
export type MailboxChatMessageTemplate = {
|
|
1089
1094
|
name: string;
|
|
@@ -2065,8 +2070,9 @@ export type CreateWebhookPayload = {
|
|
|
2065
2070
|
};
|
|
2066
2071
|
export type Brand = {
|
|
2067
2072
|
id: BrandId;
|
|
2073
|
+
namespaceId: NamespaceId | null;
|
|
2068
2074
|
/**
|
|
2069
|
-
* The brand's handle, unique
|
|
2075
|
+
* The brand's handle, unique within its organization or namespace.
|
|
2070
2076
|
*/
|
|
2071
2077
|
slug: string;
|
|
2072
2078
|
name: string;
|
|
@@ -2112,6 +2118,7 @@ export type BrandAssets = {
|
|
|
2112
2118
|
};
|
|
2113
2119
|
export type BrandId = string;
|
|
2114
2120
|
export type UpdateBrand = {
|
|
2121
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
2115
2122
|
newSlug?: string | null | undefined;
|
|
2116
2123
|
name?: string | null | undefined;
|
|
2117
2124
|
css?: string | null | undefined;
|
|
@@ -2119,6 +2126,7 @@ export type UpdateBrand = {
|
|
|
2119
2126
|
footer?: BrandFooter | null | undefined;
|
|
2120
2127
|
};
|
|
2121
2128
|
export type CreateBrand = {
|
|
2129
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
2122
2130
|
slug: string;
|
|
2123
2131
|
name: string;
|
|
2124
2132
|
css?: string | null | undefined;
|
|
@@ -2360,6 +2368,10 @@ export type AddTemplateEntryPayload = {
|
|
|
2360
2368
|
entryPath: string;
|
|
2361
2369
|
name: string;
|
|
2362
2370
|
slug: string;
|
|
2371
|
+
/**
|
|
2372
|
+
* Channel to register when the source is local, or to select from an entry that declares both.
|
|
2373
|
+
*/
|
|
2374
|
+
channel?: "email" | "whatsapp" | undefined;
|
|
2363
2375
|
description?: string | null | undefined;
|
|
2364
2376
|
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
2365
2377
|
};
|
|
@@ -3649,6 +3661,7 @@ export type RunAgentTestPayload = {
|
|
|
3649
3661
|
};
|
|
3650
3662
|
export type JourneyRunDetail = {
|
|
3651
3663
|
id: JourneyRunId;
|
|
3664
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
3652
3665
|
journeyId: JourneyId;
|
|
3653
3666
|
version: number;
|
|
3654
3667
|
contactId: ContactId;
|
|
@@ -3689,6 +3702,7 @@ export type JourneyRunPage = {
|
|
|
3689
3702
|
};
|
|
3690
3703
|
export type JourneyRun = {
|
|
3691
3704
|
id: JourneyRunId;
|
|
3705
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
3692
3706
|
journeyId: JourneyId;
|
|
3693
3707
|
version: number;
|
|
3694
3708
|
contactId: ContactId;
|
|
@@ -3736,6 +3750,9 @@ export type JourneyDefinition = {
|
|
|
3736
3750
|
enrollment?: {
|
|
3737
3751
|
type: "shopify_order";
|
|
3738
3752
|
shop: ShopifyShop;
|
|
3753
|
+
} | {
|
|
3754
|
+
type: "event_property";
|
|
3755
|
+
property: string;
|
|
3739
3756
|
} | undefined;
|
|
3740
3757
|
};
|
|
3741
3758
|
export type JourneyDefinitionWritable = {
|
|
@@ -3749,6 +3766,9 @@ export type JourneyDefinitionWritable = {
|
|
|
3749
3766
|
enrollment?: {
|
|
3750
3767
|
type: "shopify_order";
|
|
3751
3768
|
shop: ShopifyShop;
|
|
3769
|
+
} | {
|
|
3770
|
+
type: "event_property";
|
|
3771
|
+
property: string;
|
|
3752
3772
|
} | undefined;
|
|
3753
3773
|
};
|
|
3754
3774
|
export type ShopifyShop = string;
|
|
@@ -3782,9 +3802,15 @@ export type JourneyNextEdge = {
|
|
|
3782
3802
|
};
|
|
3783
3803
|
export type JourneyWebhookConfig = {
|
|
3784
3804
|
data?: JsonObject | undefined;
|
|
3805
|
+
eventBindings?: {
|
|
3806
|
+
[key: string]: string;
|
|
3807
|
+
} | undefined;
|
|
3785
3808
|
};
|
|
3786
3809
|
export type JourneyWebhookConfigWritable = {
|
|
3787
3810
|
data?: JsonObjectWritable | undefined;
|
|
3811
|
+
eventBindings?: {
|
|
3812
|
+
[key: string]: string | undefined;
|
|
3813
|
+
} | undefined;
|
|
3788
3814
|
};
|
|
3789
3815
|
export type JourneyUpdateTagsNode = {
|
|
3790
3816
|
type: "update_tags";
|
|
@@ -3808,15 +3834,10 @@ export type JourneyCondition = {
|
|
|
3808
3834
|
match: "all" | "any";
|
|
3809
3835
|
predicates: [JourneyPredicate, ...Array<JourneyPredicate>];
|
|
3810
3836
|
};
|
|
3811
|
-
export type JourneyPredicate = JourneyTagPredicate | JourneyPropertyPredicate | JourneyCustomFieldPredicate | JourneyEventPredicate;
|
|
3812
|
-
export type
|
|
3813
|
-
type: "
|
|
3814
|
-
|
|
3815
|
-
occurred: boolean;
|
|
3816
|
-
};
|
|
3817
|
-
export type JourneyCustomFieldPredicate = {
|
|
3818
|
-
type: "custom_field";
|
|
3819
|
-
key: string;
|
|
3837
|
+
export type JourneyPredicate = JourneyTagPredicate | JourneyPropertyPredicate | JourneyCustomFieldPredicate | JourneyEventPredicate | JourneyEntryEventPropertyPredicate;
|
|
3838
|
+
export type JourneyEntryEventPropertyPredicate = {
|
|
3839
|
+
type: "entry_event_property";
|
|
3840
|
+
property: string;
|
|
3820
3841
|
comparison: JourneyComparison;
|
|
3821
3842
|
};
|
|
3822
3843
|
export type JourneyComparison = JourneyEqualityComparison | JourneyNumericComparison | JourneyStringComparison | JourneyPresenceComparison;
|
|
@@ -3835,6 +3856,16 @@ export type JourneyEqualityComparison = {
|
|
|
3835
3856
|
operator: "eq" | "neq";
|
|
3836
3857
|
value: string | number | boolean | null;
|
|
3837
3858
|
};
|
|
3859
|
+
export type JourneyEventPredicate = {
|
|
3860
|
+
type: "event";
|
|
3861
|
+
eventName: JourneyEventName;
|
|
3862
|
+
occurred: boolean;
|
|
3863
|
+
};
|
|
3864
|
+
export type JourneyCustomFieldPredicate = {
|
|
3865
|
+
type: "custom_field";
|
|
3866
|
+
key: string;
|
|
3867
|
+
comparison: JourneyComparison;
|
|
3868
|
+
};
|
|
3838
3869
|
export type JourneyPropertyPredicate = {
|
|
3839
3870
|
type: "property";
|
|
3840
3871
|
field: JourneyContactProperty;
|
|
@@ -3857,6 +3888,10 @@ export type JourneyWaitEventEdge = {
|
|
|
3857
3888
|
};
|
|
3858
3889
|
export type JourneyWaitForEventConfig = {
|
|
3859
3890
|
eventName: JourneyEventName;
|
|
3891
|
+
correlation?: {
|
|
3892
|
+
eventProperty: string;
|
|
3893
|
+
entryProperty: string;
|
|
3894
|
+
} | undefined;
|
|
3860
3895
|
timeoutSeconds: number;
|
|
3861
3896
|
};
|
|
3862
3897
|
export type JourneyWaitNode = {
|
|
@@ -3889,6 +3924,10 @@ export type JourneySendWhatsAppConfig = {
|
|
|
3889
3924
|
eventBindings?: {
|
|
3890
3925
|
[key: string]: string;
|
|
3891
3926
|
} | undefined;
|
|
3927
|
+
/**
|
|
3928
|
+
* Entry-event property path to the JSON object that initializes a navigate Flow button.
|
|
3929
|
+
*/
|
|
3930
|
+
flowActionDataBinding?: string | undefined;
|
|
3892
3931
|
};
|
|
3893
3932
|
export type JourneySendWhatsAppConfigWritable = {
|
|
3894
3933
|
template: TemplateId | string;
|
|
@@ -3902,6 +3941,10 @@ export type JourneySendWhatsAppConfigWritable = {
|
|
|
3902
3941
|
eventBindings?: {
|
|
3903
3942
|
[key: string]: string | undefined;
|
|
3904
3943
|
} | undefined;
|
|
3944
|
+
/**
|
|
3945
|
+
* Entry-event property path to the JSON object that initializes a navigate Flow button.
|
|
3946
|
+
*/
|
|
3947
|
+
flowActionDataBinding?: string | undefined;
|
|
3905
3948
|
};
|
|
3906
3949
|
export type WhatsAppTemplateDispatchData = {
|
|
3907
3950
|
[key: string]: JsonValue;
|
|
@@ -3923,13 +3966,29 @@ export type JourneySendEmailConfig = {
|
|
|
3923
3966
|
template: TemplateId | string;
|
|
3924
3967
|
publicationId?: TemplatePublicationId | undefined;
|
|
3925
3968
|
senderId?: EmailSenderId | undefined;
|
|
3969
|
+
tracking?: EmailTrackingOverrideV1 | undefined;
|
|
3970
|
+
/**
|
|
3971
|
+
* Topic name in the run's namespace. Omit to use the template topic or namespace default.
|
|
3972
|
+
*/
|
|
3973
|
+
topicName?: string | undefined;
|
|
3926
3974
|
templateData?: JsonObject | undefined;
|
|
3975
|
+
eventBindings?: {
|
|
3976
|
+
[key: string]: string;
|
|
3977
|
+
} | undefined;
|
|
3927
3978
|
};
|
|
3928
3979
|
export type JourneySendEmailConfigWritable = {
|
|
3929
3980
|
template: TemplateId | string;
|
|
3930
3981
|
publicationId?: TemplatePublicationId | undefined;
|
|
3931
3982
|
senderId?: EmailSenderId | undefined;
|
|
3983
|
+
tracking?: EmailTrackingOverrideV1 | undefined;
|
|
3984
|
+
/**
|
|
3985
|
+
* Topic name in the run's namespace. Omit to use the template topic or namespace default.
|
|
3986
|
+
*/
|
|
3987
|
+
topicName?: string | undefined;
|
|
3932
3988
|
templateData?: JsonObjectWritable | undefined;
|
|
3989
|
+
eventBindings?: {
|
|
3990
|
+
[key: string]: string | undefined;
|
|
3991
|
+
} | undefined;
|
|
3933
3992
|
};
|
|
3934
3993
|
export type JourneyTrigger = JourneyCustomEventTrigger | JourneyContactCreatedTrigger | JourneyTagAddedTrigger | JourneyGroupJoinedTrigger;
|
|
3935
3994
|
export type JourneyGroupJoinedTrigger = {
|
|
@@ -3949,6 +4008,7 @@ export type JourneyCustomEventTrigger = {
|
|
|
3949
4008
|
};
|
|
3950
4009
|
export type Journey = {
|
|
3951
4010
|
id: JourneyId;
|
|
4011
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
3952
4012
|
name: string;
|
|
3953
4013
|
status: JourneyStatus;
|
|
3954
4014
|
revision: string;
|
|
@@ -3975,6 +4035,7 @@ export type UpdateJourneyPayload = {
|
|
|
3975
4035
|
export type JourneyName = string;
|
|
3976
4036
|
export type CreateJourneyPayload = {
|
|
3977
4037
|
name: JourneyName;
|
|
4038
|
+
namespaceId?: NamespaceId | undefined;
|
|
3978
4039
|
definition: JourneyDefinition;
|
|
3979
4040
|
};
|
|
3980
4041
|
export type JourneyPage = {
|
|
@@ -3983,6 +4044,7 @@ export type JourneyPage = {
|
|
|
3983
4044
|
};
|
|
3984
4045
|
export type JourneyListItem = {
|
|
3985
4046
|
id: JourneyId;
|
|
4047
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
3986
4048
|
name: string;
|
|
3987
4049
|
status: JourneyStatus;
|
|
3988
4050
|
publishedVersion: number | null;
|
|
@@ -4027,14 +4089,22 @@ export type ContactEventReference = {
|
|
|
4027
4089
|
id: ContactId;
|
|
4028
4090
|
externalId?: never | undefined;
|
|
4029
4091
|
email?: never | undefined;
|
|
4092
|
+
phone?: never | undefined;
|
|
4030
4093
|
} | {
|
|
4031
4094
|
externalId: string;
|
|
4032
4095
|
id?: never | undefined;
|
|
4033
4096
|
email?: never | undefined;
|
|
4097
|
+
phone?: never | undefined;
|
|
4034
4098
|
} | {
|
|
4035
4099
|
email: string;
|
|
4036
4100
|
id?: never | undefined;
|
|
4037
4101
|
externalId?: never | undefined;
|
|
4102
|
+
phone?: never | undefined;
|
|
4103
|
+
} | {
|
|
4104
|
+
phone: string;
|
|
4105
|
+
id?: never | undefined;
|
|
4106
|
+
externalId?: never | undefined;
|
|
4107
|
+
email?: never | undefined;
|
|
4038
4108
|
};
|
|
4039
4109
|
export type ContactGroupMembershipPage = {
|
|
4040
4110
|
items: Array<{
|
|
@@ -4691,6 +4761,7 @@ export type CustomTrackingDomainConnectCompleteResult = {
|
|
|
4691
4761
|
export type DomainConnectApplyUrlResult = {
|
|
4692
4762
|
url: string;
|
|
4693
4763
|
};
|
|
4764
|
+
export type DomainConnectReturnUrl = string;
|
|
4694
4765
|
export type DomainConnectEligibility = {
|
|
4695
4766
|
eligible: false;
|
|
4696
4767
|
reason: "no-record" | "no-settings" | "no-sync" | "no-template" | "unavailable";
|
|
@@ -4994,6 +5065,61 @@ export type RespondToOnboardingInformationRequestInput = {
|
|
|
4994
5065
|
export type ReapplyOnboardingReviewInput = {
|
|
4995
5066
|
expectedGeneration: number;
|
|
4996
5067
|
};
|
|
5068
|
+
export type DeliverabilityInsights = {
|
|
5069
|
+
domain: string;
|
|
5070
|
+
start: string;
|
|
5071
|
+
end: string;
|
|
5072
|
+
providers: Array<{
|
|
5073
|
+
mailboxProvider: string;
|
|
5074
|
+
sent: number;
|
|
5075
|
+
delivered: number;
|
|
5076
|
+
permanentBounces: number;
|
|
5077
|
+
transientBounces: number;
|
|
5078
|
+
complaintEligibleDeliveries: number;
|
|
5079
|
+
complaints: number;
|
|
5080
|
+
/**
|
|
5081
|
+
* A fraction (0.01 is 1%), or null when the denominator is zero.
|
|
5082
|
+
*/
|
|
5083
|
+
deliveryRate: number | null;
|
|
5084
|
+
/**
|
|
5085
|
+
* A fraction (0.01 is 1%), or null when the denominator is zero.
|
|
5086
|
+
*/
|
|
5087
|
+
permanentBounceRate: number | null;
|
|
5088
|
+
/**
|
|
5089
|
+
* A fraction (0.01 is 1%), or null when the denominator is zero.
|
|
5090
|
+
*/
|
|
5091
|
+
transientBounceRate: number | null;
|
|
5092
|
+
/**
|
|
5093
|
+
* A fraction (0.01 is 1%), or null when the denominator is zero.
|
|
5094
|
+
*/
|
|
5095
|
+
complaintRate: number | null;
|
|
5096
|
+
}>;
|
|
5097
|
+
/**
|
|
5098
|
+
* Findings for this domain, or null if recommendations are temporarily unavailable.
|
|
5099
|
+
*/
|
|
5100
|
+
recommendations: Array<DeliverabilityRecommendation> | null;
|
|
5101
|
+
samvaTracking: {
|
|
5102
|
+
openEligibleDeliveries: number;
|
|
5103
|
+
clickEligibleDeliveries: number;
|
|
5104
|
+
uniqueOpens: number;
|
|
5105
|
+
uniqueClicks: number;
|
|
5106
|
+
/**
|
|
5107
|
+
* A fraction (0.01 is 1%), or null when the denominator is zero.
|
|
5108
|
+
*/
|
|
5109
|
+
openRate: number | null;
|
|
5110
|
+
/**
|
|
5111
|
+
* A fraction (0.01 is 1%), or null when the denominator is zero.
|
|
5112
|
+
*/
|
|
5113
|
+
clickRate: number | null;
|
|
5114
|
+
};
|
|
5115
|
+
};
|
|
5116
|
+
export type DeliverabilityRecommendation = {
|
|
5117
|
+
type: string;
|
|
5118
|
+
status: "OPEN" | "FIXED" | null;
|
|
5119
|
+
impact: "HIGH" | "LOW" | null;
|
|
5120
|
+
description: string | null;
|
|
5121
|
+
lastUpdated: string | null;
|
|
5122
|
+
};
|
|
4997
5123
|
export type CampaignRecipientPage = {
|
|
4998
5124
|
items: Array<{
|
|
4999
5125
|
id: CampaignRecipientId;
|
|
@@ -5553,11 +5679,25 @@ export type WhatsAppTemplateSlugContent = {
|
|
|
5553
5679
|
templateSlug: string;
|
|
5554
5680
|
templateData?: WhatsAppTemplateData | undefined;
|
|
5555
5681
|
flowToken?: string | undefined;
|
|
5682
|
+
flowActionData?: WhatsAppFlowActionData | undefined;
|
|
5556
5683
|
};
|
|
5557
5684
|
export type WhatsAppTemplateSlugContentWritable = {
|
|
5558
5685
|
templateSlug: string;
|
|
5559
5686
|
templateData?: WhatsAppTemplateDataWritable | undefined;
|
|
5560
5687
|
flowToken?: string | undefined;
|
|
5688
|
+
flowActionData?: WhatsAppFlowActionDataWritable | undefined;
|
|
5689
|
+
};
|
|
5690
|
+
/**
|
|
5691
|
+
* Initial screen data for a navigate Flow button.
|
|
5692
|
+
*/
|
|
5693
|
+
export type WhatsAppFlowActionData = {
|
|
5694
|
+
[key: string]: JsonValue;
|
|
5695
|
+
};
|
|
5696
|
+
/**
|
|
5697
|
+
* Initial screen data for a navigate Flow button.
|
|
5698
|
+
*/
|
|
5699
|
+
export type WhatsAppFlowActionDataWritable = {
|
|
5700
|
+
[key: string]: JsonValueWritable | undefined;
|
|
5561
5701
|
};
|
|
5562
5702
|
export type WhatsAppTemplateData = {
|
|
5563
5703
|
[key: string]: JsonValue;
|
|
@@ -5569,11 +5709,13 @@ export type WhatsAppTemplateIdContent = {
|
|
|
5569
5709
|
templateId: TemplateId;
|
|
5570
5710
|
templateData?: WhatsAppTemplateData | undefined;
|
|
5571
5711
|
flowToken?: string | undefined;
|
|
5712
|
+
flowActionData?: WhatsAppFlowActionData | undefined;
|
|
5572
5713
|
};
|
|
5573
5714
|
export type WhatsAppTemplateIdContentWritable = {
|
|
5574
5715
|
templateId: TemplateId;
|
|
5575
5716
|
templateData?: WhatsAppTemplateDataWritable | undefined;
|
|
5576
5717
|
flowToken?: string | undefined;
|
|
5718
|
+
flowActionData?: WhatsAppFlowActionDataWritable | undefined;
|
|
5577
5719
|
};
|
|
5578
5720
|
export type WhatsAppTextContent = {
|
|
5579
5721
|
text: string;
|
|
@@ -5905,6 +6047,7 @@ export type WhatsAppStructuredContent = {
|
|
|
5905
6047
|
};
|
|
5906
6048
|
};
|
|
5907
6049
|
export type WhatsAppMessageContent = {
|
|
6050
|
+
appHandlesFlowSubmission?: true | undefined;
|
|
5908
6051
|
text?: string | null | undefined;
|
|
5909
6052
|
template?: {
|
|
5910
6053
|
name: string;
|
|
@@ -5937,6 +6080,7 @@ export type WhatsAppMessageContent = {
|
|
|
5937
6080
|
coupon_code?: string | null | undefined;
|
|
5938
6081
|
action?: {
|
|
5939
6082
|
flow_token: string;
|
|
6083
|
+
flow_action_data?: JsonObject | undefined;
|
|
5940
6084
|
} | null | undefined;
|
|
5941
6085
|
}>;
|
|
5942
6086
|
}>;
|
|
@@ -5956,6 +6100,7 @@ export type WhatsAppMessageReference = {
|
|
|
5956
6100
|
};
|
|
5957
6101
|
export type WhatsAppReceivedFlowResponse = {
|
|
5958
6102
|
flowToken: string | null;
|
|
6103
|
+
submissionHandler?: "app" | undefined;
|
|
5959
6104
|
response: {
|
|
5960
6105
|
[key: string]: JsonValue;
|
|
5961
6106
|
};
|
|
@@ -6279,6 +6424,7 @@ export type EstimatedProviderCost = {
|
|
|
6279
6424
|
amount: string;
|
|
6280
6425
|
currency: string;
|
|
6281
6426
|
billingMode: "pass_through";
|
|
6427
|
+
category?: "marketing" | "utility" | "authentication" | "service" | undefined;
|
|
6282
6428
|
};
|
|
6283
6429
|
export type MessageDeliveryError = {
|
|
6284
6430
|
code: string | null;
|
|
@@ -8495,6 +8641,66 @@ export type CampaignsListRecipientsResponses = {
|
|
|
8495
8641
|
200: CampaignRecipientPage;
|
|
8496
8642
|
};
|
|
8497
8643
|
export type CampaignsListRecipientsResponse = CampaignsListRecipientsResponses[keyof CampaignsListRecipientsResponses];
|
|
8644
|
+
export type EmailGetDeliverabilityInsightsData = {
|
|
8645
|
+
body?: never;
|
|
8646
|
+
path: {
|
|
8647
|
+
id: EmailDomainId;
|
|
8648
|
+
};
|
|
8649
|
+
query?: {
|
|
8650
|
+
days?: "7" | "30" | undefined;
|
|
8651
|
+
/**
|
|
8652
|
+
* Request one mailbox provider by its name in the delivery metrics.
|
|
8653
|
+
*/
|
|
8654
|
+
mailboxProvider?: string | undefined;
|
|
8655
|
+
};
|
|
8656
|
+
url: "/v1/email/domains/{id}/deliverability";
|
|
8657
|
+
};
|
|
8658
|
+
export type EmailGetDeliverabilityInsightsErrors = {
|
|
8659
|
+
/**
|
|
8660
|
+
* MalformedRequestError
|
|
8661
|
+
*/
|
|
8662
|
+
400: MalformedRequestError;
|
|
8663
|
+
/**
|
|
8664
|
+
* UnauthorizedError
|
|
8665
|
+
*/
|
|
8666
|
+
401: UnauthorizedError;
|
|
8667
|
+
/**
|
|
8668
|
+
* PaymentRequiredError
|
|
8669
|
+
*/
|
|
8670
|
+
402: PaymentRequiredError;
|
|
8671
|
+
/**
|
|
8672
|
+
* ForbiddenError
|
|
8673
|
+
*/
|
|
8674
|
+
403: ForbiddenError;
|
|
8675
|
+
/**
|
|
8676
|
+
* ResourceNotFoundError
|
|
8677
|
+
*/
|
|
8678
|
+
404: ResourceNotFoundError;
|
|
8679
|
+
/**
|
|
8680
|
+
* ValidationError
|
|
8681
|
+
*/
|
|
8682
|
+
422: ValidationError;
|
|
8683
|
+
/**
|
|
8684
|
+
* InternalError
|
|
8685
|
+
*/
|
|
8686
|
+
500: InternalError;
|
|
8687
|
+
/**
|
|
8688
|
+
* ServiceUnavailableError
|
|
8689
|
+
*/
|
|
8690
|
+
503: ServiceUnavailableError;
|
|
8691
|
+
/**
|
|
8692
|
+
* GatewayTimeoutError
|
|
8693
|
+
*/
|
|
8694
|
+
504: GatewayTimeoutError;
|
|
8695
|
+
};
|
|
8696
|
+
export type EmailGetDeliverabilityInsightsError = EmailGetDeliverabilityInsightsErrors[keyof EmailGetDeliverabilityInsightsErrors];
|
|
8697
|
+
export type EmailGetDeliverabilityInsightsResponses = {
|
|
8698
|
+
/**
|
|
8699
|
+
* DeliverabilityInsights
|
|
8700
|
+
*/
|
|
8701
|
+
200: DeliverabilityInsights;
|
|
8702
|
+
};
|
|
8703
|
+
export type EmailGetDeliverabilityInsightsResponse = EmailGetDeliverabilityInsightsResponses[keyof EmailGetDeliverabilityInsightsResponses];
|
|
8498
8704
|
export type EmailGetOnboardingReviewData = {
|
|
8499
8705
|
body?: never;
|
|
8500
8706
|
path?: never;
|
|
@@ -9288,6 +9494,7 @@ export type EmailGetDomainConnectResponse = EmailGetDomainConnectResponses[keyof
|
|
|
9288
9494
|
export type EmailBuildDomainConnectApplyUrlData = {
|
|
9289
9495
|
body: {
|
|
9290
9496
|
mode: "send-only" | "send-and-receive";
|
|
9497
|
+
returnUrl?: DomainConnectReturnUrl | undefined;
|
|
9291
9498
|
};
|
|
9292
9499
|
path: {
|
|
9293
9500
|
id: EmailDomainId;
|
|
@@ -9877,7 +10084,9 @@ export type EmailBuildCustomTrackingDomainConnectApplyUrlData = {
|
|
|
9877
10084
|
path: {
|
|
9878
10085
|
id: EmailDomainId;
|
|
9879
10086
|
};
|
|
9880
|
-
query?:
|
|
10087
|
+
query?: {
|
|
10088
|
+
returnUrl?: DomainConnectReturnUrl | undefined;
|
|
10089
|
+
};
|
|
9881
10090
|
url: "/v1/email/domains/{id}/custom-tracking/domain-connect/apply-url";
|
|
9882
10091
|
};
|
|
9883
10092
|
export type EmailBuildCustomTrackingDomainConnectApplyUrlErrors = {
|
|
@@ -10264,6 +10473,55 @@ export type EmailGetSenderResponses = {
|
|
|
10264
10473
|
};
|
|
10265
10474
|
};
|
|
10266
10475
|
export type EmailGetSenderResponse = EmailGetSenderResponses[keyof EmailGetSenderResponses];
|
|
10476
|
+
export type EmailUpdateSenderData = {
|
|
10477
|
+
body: {
|
|
10478
|
+
name?: string | null | undefined;
|
|
10479
|
+
replyToEmails?: Array<string> | null | undefined;
|
|
10480
|
+
};
|
|
10481
|
+
path: {
|
|
10482
|
+
id: EmailSenderId;
|
|
10483
|
+
};
|
|
10484
|
+
query?: never;
|
|
10485
|
+
url: "/v1/email/senders/{id}";
|
|
10486
|
+
};
|
|
10487
|
+
export type EmailUpdateSenderErrors = {
|
|
10488
|
+
/**
|
|
10489
|
+
* MalformedRequestError
|
|
10490
|
+
*/
|
|
10491
|
+
400: MalformedRequestError;
|
|
10492
|
+
/**
|
|
10493
|
+
* UnauthorizedError
|
|
10494
|
+
*/
|
|
10495
|
+
401: UnauthorizedError;
|
|
10496
|
+
/**
|
|
10497
|
+
* ForbiddenError
|
|
10498
|
+
*/
|
|
10499
|
+
403: ForbiddenError;
|
|
10500
|
+
/**
|
|
10501
|
+
* ResourceNotFoundError
|
|
10502
|
+
*/
|
|
10503
|
+
404: ResourceNotFoundError;
|
|
10504
|
+
/**
|
|
10505
|
+
* ValidationError
|
|
10506
|
+
*/
|
|
10507
|
+
422: ValidationError;
|
|
10508
|
+
/**
|
|
10509
|
+
* InternalError
|
|
10510
|
+
*/
|
|
10511
|
+
500: InternalError;
|
|
10512
|
+
/**
|
|
10513
|
+
* GatewayTimeoutError
|
|
10514
|
+
*/
|
|
10515
|
+
504: GatewayTimeoutError;
|
|
10516
|
+
};
|
|
10517
|
+
export type EmailUpdateSenderError = EmailUpdateSenderErrors[keyof EmailUpdateSenderErrors];
|
|
10518
|
+
export type EmailUpdateSenderResponses = {
|
|
10519
|
+
/**
|
|
10520
|
+
* SuccessResult
|
|
10521
|
+
*/
|
|
10522
|
+
200: SuccessResult;
|
|
10523
|
+
};
|
|
10524
|
+
export type EmailUpdateSenderResponse = EmailUpdateSenderResponses[keyof EmailUpdateSenderResponses];
|
|
10267
10525
|
export type EmailSetDefaultSenderData = {
|
|
10268
10526
|
body: {
|
|
10269
10527
|
namespaceId?: NamespaceId | null | undefined;
|
|
@@ -14431,6 +14689,7 @@ export type JourneysListData = {
|
|
|
14431
14689
|
body?: never;
|
|
14432
14690
|
path?: never;
|
|
14433
14691
|
query?: {
|
|
14692
|
+
namespaceId?: NamespaceId | undefined;
|
|
14434
14693
|
status?: JourneyStatus | undefined;
|
|
14435
14694
|
limit?: number | null | undefined;
|
|
14436
14695
|
cursor?: string | undefined;
|
|
@@ -14474,6 +14733,7 @@ export type JourneysListResponse = JourneysListResponses[keyof JourneysListRespo
|
|
|
14474
14733
|
export type JourneysCreateData = {
|
|
14475
14734
|
body: {
|
|
14476
14735
|
name: JourneyName;
|
|
14736
|
+
namespaceId?: NamespaceId | undefined;
|
|
14477
14737
|
definition: JourneyDefinitionWritable;
|
|
14478
14738
|
};
|
|
14479
14739
|
path?: never;
|
|
@@ -22023,6 +22283,10 @@ export type TemplatesAddEntryData = {
|
|
|
22023
22283
|
entryPath: string;
|
|
22024
22284
|
name: string;
|
|
22025
22285
|
slug: string;
|
|
22286
|
+
/**
|
|
22287
|
+
* Channel to register when the source is local, or to select from an entry that declares both.
|
|
22288
|
+
*/
|
|
22289
|
+
channel?: "email" | "whatsapp" | undefined;
|
|
22026
22290
|
description?: string | null | undefined;
|
|
22027
22291
|
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
22028
22292
|
};
|
|
@@ -22061,6 +22325,10 @@ export type TemplatesAddEntryErrors = {
|
|
|
22061
22325
|
* InternalError
|
|
22062
22326
|
*/
|
|
22063
22327
|
500: InternalError;
|
|
22328
|
+
/**
|
|
22329
|
+
* ServiceUnavailableError
|
|
22330
|
+
*/
|
|
22331
|
+
503: ServiceUnavailableError;
|
|
22064
22332
|
/**
|
|
22065
22333
|
* GatewayTimeoutError
|
|
22066
22334
|
*/
|
|
@@ -23616,6 +23884,8 @@ export type TemplatesPublishResponses = {
|
|
|
23616
23884
|
treeDigest: string;
|
|
23617
23885
|
};
|
|
23618
23886
|
brand?: {
|
|
23887
|
+
id?: BrandId | undefined;
|
|
23888
|
+
binding?: "default" | "named" | "embedded" | undefined;
|
|
23619
23889
|
slug: string;
|
|
23620
23890
|
css: string;
|
|
23621
23891
|
assets: BrandAssets;
|
|
@@ -23777,6 +24047,8 @@ export type TemplatesGetPublicationResponses = {
|
|
|
23777
24047
|
treeDigest: string;
|
|
23778
24048
|
};
|
|
23779
24049
|
brand?: {
|
|
24050
|
+
id?: BrandId | undefined;
|
|
24051
|
+
binding?: "default" | "named" | "embedded" | undefined;
|
|
23780
24052
|
slug: string;
|
|
23781
24053
|
css: string;
|
|
23782
24054
|
assets: BrandAssets;
|
|
@@ -24747,7 +25019,9 @@ export type TemplateShareLinksUpdateResponse = TemplateShareLinksUpdateResponses
|
|
|
24747
25019
|
export type BrandsListData = {
|
|
24748
25020
|
body?: never;
|
|
24749
25021
|
path?: never;
|
|
24750
|
-
query?:
|
|
25022
|
+
query?: {
|
|
25023
|
+
namespaceId?: NamespaceId | undefined;
|
|
25024
|
+
};
|
|
24751
25025
|
url: "/v1/brands";
|
|
24752
25026
|
};
|
|
24753
25027
|
export type BrandsListErrors = {
|
|
@@ -24786,6 +25060,7 @@ export type BrandsListResponses = {
|
|
|
24786
25060
|
export type BrandsListResponse = BrandsListResponses[keyof BrandsListResponses];
|
|
24787
25061
|
export type BrandsCreateData = {
|
|
24788
25062
|
body: {
|
|
25063
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
24789
25064
|
slug: string;
|
|
24790
25065
|
name: string;
|
|
24791
25066
|
css?: string | null | undefined;
|
|
@@ -24810,6 +25085,10 @@ export type BrandsCreateErrors = {
|
|
|
24810
25085
|
* ForbiddenError
|
|
24811
25086
|
*/
|
|
24812
25087
|
403: ForbiddenError;
|
|
25088
|
+
/**
|
|
25089
|
+
* ResourceNotFoundError
|
|
25090
|
+
*/
|
|
25091
|
+
404: ResourceNotFoundError;
|
|
24813
25092
|
/**
|
|
24814
25093
|
* ConflictError
|
|
24815
25094
|
*/
|
|
@@ -24840,7 +25119,9 @@ export type BrandsRemoveData = {
|
|
|
24840
25119
|
path: {
|
|
24841
25120
|
slug: string;
|
|
24842
25121
|
};
|
|
24843
|
-
query?:
|
|
25122
|
+
query?: {
|
|
25123
|
+
namespaceId?: NamespaceId | undefined;
|
|
25124
|
+
};
|
|
24844
25125
|
url: "/v1/brands/{slug}";
|
|
24845
25126
|
};
|
|
24846
25127
|
export type BrandsRemoveErrors = {
|
|
@@ -24890,7 +25171,9 @@ export type BrandsGetData = {
|
|
|
24890
25171
|
path: {
|
|
24891
25172
|
slug: string;
|
|
24892
25173
|
};
|
|
24893
|
-
query?:
|
|
25174
|
+
query?: {
|
|
25175
|
+
namespaceId?: NamespaceId | undefined;
|
|
25176
|
+
};
|
|
24894
25177
|
url: "/v1/brands/{slug}";
|
|
24895
25178
|
};
|
|
24896
25179
|
export type BrandsGetErrors = {
|
|
@@ -24933,6 +25216,7 @@ export type BrandsGetResponses = {
|
|
|
24933
25216
|
export type BrandsGetResponse = BrandsGetResponses[keyof BrandsGetResponses];
|
|
24934
25217
|
export type BrandsUpdateData = {
|
|
24935
25218
|
body: {
|
|
25219
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
24936
25220
|
newSlug?: string | null | undefined;
|
|
24937
25221
|
name?: string | null | undefined;
|
|
24938
25222
|
css?: string | null | undefined;
|
|
@@ -24992,7 +25276,9 @@ export type BrandsSetDefaultData = {
|
|
|
24992
25276
|
path: {
|
|
24993
25277
|
slug: string;
|
|
24994
25278
|
};
|
|
24995
|
-
query?:
|
|
25279
|
+
query?: {
|
|
25280
|
+
namespaceId?: NamespaceId | undefined;
|
|
25281
|
+
};
|
|
24996
25282
|
url: "/v1/brands/{slug}/default";
|
|
24997
25283
|
};
|
|
24998
25284
|
export type BrandsSetDefaultErrors = {
|
|
@@ -26328,6 +26614,9 @@ export type ApiKeysListResponses = {
|
|
|
26328
26614
|
export type ApiKeysListResponse = ApiKeysListResponses[keyof ApiKeysListResponses];
|
|
26329
26615
|
export type ApiKeysCreateData = {
|
|
26330
26616
|
body: {
|
|
26617
|
+
/**
|
|
26618
|
+
* API key name, up to 32 characters.
|
|
26619
|
+
*/
|
|
26331
26620
|
name: string;
|
|
26332
26621
|
description?: string | null | undefined;
|
|
26333
26622
|
expiresAt?: string | null | undefined;
|
|
@@ -32577,6 +32866,7 @@ export type WhatsappFlowsCreateData = {
|
|
|
32577
32866
|
projectId: TemplateProjectId;
|
|
32578
32867
|
handle: string;
|
|
32579
32868
|
categories: Array<"SIGN_UP" | "SIGN_IN" | "APPOINTMENT_BOOKING" | "LEAD_GENERATION" | "CONTACT_US" | "CUSTOMER_SUPPORT" | "SURVEY" | "OTHER">;
|
|
32869
|
+
submissionHandler?: "agent" | "app" | undefined;
|
|
32580
32870
|
};
|
|
32581
32871
|
path?: never;
|
|
32582
32872
|
query?: never;
|
|
@@ -32720,6 +33010,8 @@ export type WhatsappFlowsRecordVersionData = {
|
|
|
32720
33010
|
body: {
|
|
32721
33011
|
commitSha: string;
|
|
32722
33012
|
expectedWorkspaceRevision: string;
|
|
33013
|
+
} | {
|
|
33014
|
+
flowJson: JsonObjectWritable;
|
|
32723
33015
|
};
|
|
32724
33016
|
path: {
|
|
32725
33017
|
id: WhatsAppFlowId;
|