samva 0.53.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 +40 -10
- package/dist/client/sdk.gen.js +130 -17
- package/dist/client/types.gen.d.ts +227 -12
- 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/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/journeys.d.ts +120 -0
- package/dist/effect/generated/messages.d.ts +6 -0
- package/dist/effect/generated/messages.js +7 -1
- package/dist/effect/generated/shared.d.ts +44 -4
- package/dist/effect/generated/shared.js +13 -5
- package/dist/effect/generated/templates.d.ts +34 -1
- package/dist/effect/generated/templates.js +18 -3
- package/dist/effect/generated-metadata.d.ts +12 -0
- package/dist/effect/generated-metadata.js +2 -0
- package/dist/effect/journeys.d.ts +10 -0
- package/dist/effect/templates.d.ts +1 -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
|
@@ -2070,8 +2070,9 @@ export type CreateWebhookPayload = {
|
|
|
2070
2070
|
};
|
|
2071
2071
|
export type Brand = {
|
|
2072
2072
|
id: BrandId;
|
|
2073
|
+
namespaceId: NamespaceId | null;
|
|
2073
2074
|
/**
|
|
2074
|
-
* The brand's handle, unique
|
|
2075
|
+
* The brand's handle, unique within its organization or namespace.
|
|
2075
2076
|
*/
|
|
2076
2077
|
slug: string;
|
|
2077
2078
|
name: string;
|
|
@@ -2117,6 +2118,7 @@ export type BrandAssets = {
|
|
|
2117
2118
|
};
|
|
2118
2119
|
export type BrandId = string;
|
|
2119
2120
|
export type UpdateBrand = {
|
|
2121
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
2120
2122
|
newSlug?: string | null | undefined;
|
|
2121
2123
|
name?: string | null | undefined;
|
|
2122
2124
|
css?: string | null | undefined;
|
|
@@ -2124,6 +2126,7 @@ export type UpdateBrand = {
|
|
|
2124
2126
|
footer?: BrandFooter | null | undefined;
|
|
2125
2127
|
};
|
|
2126
2128
|
export type CreateBrand = {
|
|
2129
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
2127
2130
|
slug: string;
|
|
2128
2131
|
name: string;
|
|
2129
2132
|
css?: string | null | undefined;
|
|
@@ -2365,6 +2368,10 @@ export type AddTemplateEntryPayload = {
|
|
|
2365
2368
|
entryPath: string;
|
|
2366
2369
|
name: string;
|
|
2367
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;
|
|
2368
2375
|
description?: string | null | undefined;
|
|
2369
2376
|
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
2370
2377
|
};
|
|
@@ -3959,6 +3966,11 @@ export type JourneySendEmailConfig = {
|
|
|
3959
3966
|
template: TemplateId | string;
|
|
3960
3967
|
publicationId?: TemplatePublicationId | undefined;
|
|
3961
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;
|
|
3962
3974
|
templateData?: JsonObject | undefined;
|
|
3963
3975
|
eventBindings?: {
|
|
3964
3976
|
[key: string]: string;
|
|
@@ -3968,6 +3980,11 @@ export type JourneySendEmailConfigWritable = {
|
|
|
3968
3980
|
template: TemplateId | string;
|
|
3969
3981
|
publicationId?: TemplatePublicationId | undefined;
|
|
3970
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;
|
|
3971
3988
|
templateData?: JsonObjectWritable | undefined;
|
|
3972
3989
|
eventBindings?: {
|
|
3973
3990
|
[key: string]: string | undefined;
|
|
@@ -4744,6 +4761,7 @@ export type CustomTrackingDomainConnectCompleteResult = {
|
|
|
4744
4761
|
export type DomainConnectApplyUrlResult = {
|
|
4745
4762
|
url: string;
|
|
4746
4763
|
};
|
|
4764
|
+
export type DomainConnectReturnUrl = string;
|
|
4747
4765
|
export type DomainConnectEligibility = {
|
|
4748
4766
|
eligible: false;
|
|
4749
4767
|
reason: "no-record" | "no-settings" | "no-sync" | "no-template" | "unavailable";
|
|
@@ -5047,6 +5065,61 @@ export type RespondToOnboardingInformationRequestInput = {
|
|
|
5047
5065
|
export type ReapplyOnboardingReviewInput = {
|
|
5048
5066
|
expectedGeneration: number;
|
|
5049
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
|
+
};
|
|
5050
5123
|
export type CampaignRecipientPage = {
|
|
5051
5124
|
items: Array<{
|
|
5052
5125
|
id: CampaignRecipientId;
|
|
@@ -5606,24 +5679,24 @@ export type WhatsAppTemplateSlugContent = {
|
|
|
5606
5679
|
templateSlug: string;
|
|
5607
5680
|
templateData?: WhatsAppTemplateData | undefined;
|
|
5608
5681
|
flowToken?: string | undefined;
|
|
5609
|
-
flowActionData?:
|
|
5682
|
+
flowActionData?: WhatsAppFlowActionData | undefined;
|
|
5610
5683
|
};
|
|
5611
5684
|
export type WhatsAppTemplateSlugContentWritable = {
|
|
5612
5685
|
templateSlug: string;
|
|
5613
5686
|
templateData?: WhatsAppTemplateDataWritable | undefined;
|
|
5614
5687
|
flowToken?: string | undefined;
|
|
5615
|
-
flowActionData?:
|
|
5688
|
+
flowActionData?: WhatsAppFlowActionDataWritable | undefined;
|
|
5616
5689
|
};
|
|
5617
5690
|
/**
|
|
5618
5691
|
* Initial screen data for a navigate Flow button.
|
|
5619
5692
|
*/
|
|
5620
|
-
export type
|
|
5693
|
+
export type WhatsAppFlowActionData = {
|
|
5621
5694
|
[key: string]: JsonValue;
|
|
5622
5695
|
};
|
|
5623
5696
|
/**
|
|
5624
5697
|
* Initial screen data for a navigate Flow button.
|
|
5625
5698
|
*/
|
|
5626
|
-
export type
|
|
5699
|
+
export type WhatsAppFlowActionDataWritable = {
|
|
5627
5700
|
[key: string]: JsonValueWritable | undefined;
|
|
5628
5701
|
};
|
|
5629
5702
|
export type WhatsAppTemplateData = {
|
|
@@ -5636,13 +5709,13 @@ export type WhatsAppTemplateIdContent = {
|
|
|
5636
5709
|
templateId: TemplateId;
|
|
5637
5710
|
templateData?: WhatsAppTemplateData | undefined;
|
|
5638
5711
|
flowToken?: string | undefined;
|
|
5639
|
-
flowActionData?:
|
|
5712
|
+
flowActionData?: WhatsAppFlowActionData | undefined;
|
|
5640
5713
|
};
|
|
5641
5714
|
export type WhatsAppTemplateIdContentWritable = {
|
|
5642
5715
|
templateId: TemplateId;
|
|
5643
5716
|
templateData?: WhatsAppTemplateDataWritable | undefined;
|
|
5644
5717
|
flowToken?: string | undefined;
|
|
5645
|
-
flowActionData?:
|
|
5718
|
+
flowActionData?: WhatsAppFlowActionDataWritable | undefined;
|
|
5646
5719
|
};
|
|
5647
5720
|
export type WhatsAppTextContent = {
|
|
5648
5721
|
text: string;
|
|
@@ -6351,6 +6424,7 @@ export type EstimatedProviderCost = {
|
|
|
6351
6424
|
amount: string;
|
|
6352
6425
|
currency: string;
|
|
6353
6426
|
billingMode: "pass_through";
|
|
6427
|
+
category?: "marketing" | "utility" | "authentication" | "service" | undefined;
|
|
6354
6428
|
};
|
|
6355
6429
|
export type MessageDeliveryError = {
|
|
6356
6430
|
code: string | null;
|
|
@@ -8567,6 +8641,66 @@ export type CampaignsListRecipientsResponses = {
|
|
|
8567
8641
|
200: CampaignRecipientPage;
|
|
8568
8642
|
};
|
|
8569
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];
|
|
8570
8704
|
export type EmailGetOnboardingReviewData = {
|
|
8571
8705
|
body?: never;
|
|
8572
8706
|
path?: never;
|
|
@@ -9360,6 +9494,7 @@ export type EmailGetDomainConnectResponse = EmailGetDomainConnectResponses[keyof
|
|
|
9360
9494
|
export type EmailBuildDomainConnectApplyUrlData = {
|
|
9361
9495
|
body: {
|
|
9362
9496
|
mode: "send-only" | "send-and-receive";
|
|
9497
|
+
returnUrl?: DomainConnectReturnUrl | undefined;
|
|
9363
9498
|
};
|
|
9364
9499
|
path: {
|
|
9365
9500
|
id: EmailDomainId;
|
|
@@ -9949,7 +10084,9 @@ export type EmailBuildCustomTrackingDomainConnectApplyUrlData = {
|
|
|
9949
10084
|
path: {
|
|
9950
10085
|
id: EmailDomainId;
|
|
9951
10086
|
};
|
|
9952
|
-
query?:
|
|
10087
|
+
query?: {
|
|
10088
|
+
returnUrl?: DomainConnectReturnUrl | undefined;
|
|
10089
|
+
};
|
|
9953
10090
|
url: "/v1/email/domains/{id}/custom-tracking/domain-connect/apply-url";
|
|
9954
10091
|
};
|
|
9955
10092
|
export type EmailBuildCustomTrackingDomainConnectApplyUrlErrors = {
|
|
@@ -10336,6 +10473,55 @@ export type EmailGetSenderResponses = {
|
|
|
10336
10473
|
};
|
|
10337
10474
|
};
|
|
10338
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];
|
|
10339
10525
|
export type EmailSetDefaultSenderData = {
|
|
10340
10526
|
body: {
|
|
10341
10527
|
namespaceId?: NamespaceId | null | undefined;
|
|
@@ -22097,6 +22283,10 @@ export type TemplatesAddEntryData = {
|
|
|
22097
22283
|
entryPath: string;
|
|
22098
22284
|
name: string;
|
|
22099
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;
|
|
22100
22290
|
description?: string | null | undefined;
|
|
22101
22291
|
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
22102
22292
|
};
|
|
@@ -22135,6 +22325,10 @@ export type TemplatesAddEntryErrors = {
|
|
|
22135
22325
|
* InternalError
|
|
22136
22326
|
*/
|
|
22137
22327
|
500: InternalError;
|
|
22328
|
+
/**
|
|
22329
|
+
* ServiceUnavailableError
|
|
22330
|
+
*/
|
|
22331
|
+
503: ServiceUnavailableError;
|
|
22138
22332
|
/**
|
|
22139
22333
|
* GatewayTimeoutError
|
|
22140
22334
|
*/
|
|
@@ -23690,6 +23884,8 @@ export type TemplatesPublishResponses = {
|
|
|
23690
23884
|
treeDigest: string;
|
|
23691
23885
|
};
|
|
23692
23886
|
brand?: {
|
|
23887
|
+
id?: BrandId | undefined;
|
|
23888
|
+
binding?: "default" | "named" | "embedded" | undefined;
|
|
23693
23889
|
slug: string;
|
|
23694
23890
|
css: string;
|
|
23695
23891
|
assets: BrandAssets;
|
|
@@ -23851,6 +24047,8 @@ export type TemplatesGetPublicationResponses = {
|
|
|
23851
24047
|
treeDigest: string;
|
|
23852
24048
|
};
|
|
23853
24049
|
brand?: {
|
|
24050
|
+
id?: BrandId | undefined;
|
|
24051
|
+
binding?: "default" | "named" | "embedded" | undefined;
|
|
23854
24052
|
slug: string;
|
|
23855
24053
|
css: string;
|
|
23856
24054
|
assets: BrandAssets;
|
|
@@ -24821,7 +25019,9 @@ export type TemplateShareLinksUpdateResponse = TemplateShareLinksUpdateResponses
|
|
|
24821
25019
|
export type BrandsListData = {
|
|
24822
25020
|
body?: never;
|
|
24823
25021
|
path?: never;
|
|
24824
|
-
query?:
|
|
25022
|
+
query?: {
|
|
25023
|
+
namespaceId?: NamespaceId | undefined;
|
|
25024
|
+
};
|
|
24825
25025
|
url: "/v1/brands";
|
|
24826
25026
|
};
|
|
24827
25027
|
export type BrandsListErrors = {
|
|
@@ -24860,6 +25060,7 @@ export type BrandsListResponses = {
|
|
|
24860
25060
|
export type BrandsListResponse = BrandsListResponses[keyof BrandsListResponses];
|
|
24861
25061
|
export type BrandsCreateData = {
|
|
24862
25062
|
body: {
|
|
25063
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
24863
25064
|
slug: string;
|
|
24864
25065
|
name: string;
|
|
24865
25066
|
css?: string | null | undefined;
|
|
@@ -24884,6 +25085,10 @@ export type BrandsCreateErrors = {
|
|
|
24884
25085
|
* ForbiddenError
|
|
24885
25086
|
*/
|
|
24886
25087
|
403: ForbiddenError;
|
|
25088
|
+
/**
|
|
25089
|
+
* ResourceNotFoundError
|
|
25090
|
+
*/
|
|
25091
|
+
404: ResourceNotFoundError;
|
|
24887
25092
|
/**
|
|
24888
25093
|
* ConflictError
|
|
24889
25094
|
*/
|
|
@@ -24914,7 +25119,9 @@ export type BrandsRemoveData = {
|
|
|
24914
25119
|
path: {
|
|
24915
25120
|
slug: string;
|
|
24916
25121
|
};
|
|
24917
|
-
query?:
|
|
25122
|
+
query?: {
|
|
25123
|
+
namespaceId?: NamespaceId | undefined;
|
|
25124
|
+
};
|
|
24918
25125
|
url: "/v1/brands/{slug}";
|
|
24919
25126
|
};
|
|
24920
25127
|
export type BrandsRemoveErrors = {
|
|
@@ -24964,7 +25171,9 @@ export type BrandsGetData = {
|
|
|
24964
25171
|
path: {
|
|
24965
25172
|
slug: string;
|
|
24966
25173
|
};
|
|
24967
|
-
query?:
|
|
25174
|
+
query?: {
|
|
25175
|
+
namespaceId?: NamespaceId | undefined;
|
|
25176
|
+
};
|
|
24968
25177
|
url: "/v1/brands/{slug}";
|
|
24969
25178
|
};
|
|
24970
25179
|
export type BrandsGetErrors = {
|
|
@@ -25007,6 +25216,7 @@ export type BrandsGetResponses = {
|
|
|
25007
25216
|
export type BrandsGetResponse = BrandsGetResponses[keyof BrandsGetResponses];
|
|
25008
25217
|
export type BrandsUpdateData = {
|
|
25009
25218
|
body: {
|
|
25219
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
25010
25220
|
newSlug?: string | null | undefined;
|
|
25011
25221
|
name?: string | null | undefined;
|
|
25012
25222
|
css?: string | null | undefined;
|
|
@@ -25066,7 +25276,9 @@ export type BrandsSetDefaultData = {
|
|
|
25066
25276
|
path: {
|
|
25067
25277
|
slug: string;
|
|
25068
25278
|
};
|
|
25069
|
-
query?:
|
|
25279
|
+
query?: {
|
|
25280
|
+
namespaceId?: NamespaceId | undefined;
|
|
25281
|
+
};
|
|
25070
25282
|
url: "/v1/brands/{slug}/default";
|
|
25071
25283
|
};
|
|
25072
25284
|
export type BrandsSetDefaultErrors = {
|
|
@@ -26402,6 +26614,9 @@ export type ApiKeysListResponses = {
|
|
|
26402
26614
|
export type ApiKeysListResponse = ApiKeysListResponses[keyof ApiKeysListResponses];
|
|
26403
26615
|
export type ApiKeysCreateData = {
|
|
26404
26616
|
body: {
|
|
26617
|
+
/**
|
|
26618
|
+
* API key name, up to 32 characters.
|
|
26619
|
+
*/
|
|
26405
26620
|
name: string;
|
|
26406
26621
|
description?: string | null | undefined;
|
|
26407
26622
|
expiresAt?: string | null | undefined;
|
package/dist/effect/brands.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { CreateBrand as CreatePayload, UpdateBrand as UpdatePayload } from "./generated/shared.js";
|
|
2
|
-
export declare const list: (input?:
|
|
2
|
+
export declare const list: (input?: {
|
|
3
|
+
readonly namespaceId?: string | undefined;
|
|
4
|
+
} | undefined, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsList">;
|
|
3
5
|
export declare const create: (input: {
|
|
6
|
+
readonly namespaceId?: string | null | undefined;
|
|
4
7
|
readonly slug: string;
|
|
5
8
|
readonly name: string;
|
|
6
9
|
readonly css?: string | null | undefined;
|
|
@@ -29,9 +32,11 @@ export declare const create: (input: {
|
|
|
29
32
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsCreate">;
|
|
30
33
|
export declare const get: (input: {
|
|
31
34
|
readonly slug: string;
|
|
35
|
+
readonly namespaceId?: string | undefined;
|
|
32
36
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsGet">;
|
|
33
37
|
export declare const update: (input: {
|
|
34
38
|
readonly slug: string;
|
|
39
|
+
readonly namespaceId?: string | null | undefined;
|
|
35
40
|
readonly newSlug?: string | null | undefined;
|
|
36
41
|
readonly name?: string | null | undefined;
|
|
37
42
|
readonly css?: string | null | undefined;
|
|
@@ -59,7 +64,9 @@ export declare const update: (input: {
|
|
|
59
64
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsUpdate">;
|
|
60
65
|
export declare const remove: (input: {
|
|
61
66
|
readonly slug: string;
|
|
67
|
+
readonly namespaceId?: string | undefined;
|
|
62
68
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsRemove">;
|
|
63
69
|
export declare const setDefault: (input: {
|
|
64
70
|
readonly slug: string;
|
|
71
|
+
readonly namespaceId?: string | undefined;
|
|
65
72
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"brandsSetDefault">;
|
|
@@ -5,7 +5,7 @@ export declare const brandsOperations: {
|
|
|
5
5
|
readonly idempotent: false;
|
|
6
6
|
readonly paginated: false;
|
|
7
7
|
readonly call: {
|
|
8
|
-
readonly kind: "
|
|
8
|
+
readonly kind: "params";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
readonly brandsCreate: {
|
|
@@ -23,7 +23,7 @@ export declare const brandsOperations: {
|
|
|
23
23
|
readonly idempotent: false;
|
|
24
24
|
readonly paginated: false;
|
|
25
25
|
readonly call: {
|
|
26
|
-
readonly kind: "
|
|
26
|
+
readonly kind: "pathParams";
|
|
27
27
|
readonly paths: readonly ["slug"];
|
|
28
28
|
};
|
|
29
29
|
};
|
|
@@ -43,7 +43,7 @@ export declare const brandsOperations: {
|
|
|
43
43
|
readonly idempotent: false;
|
|
44
44
|
readonly paginated: false;
|
|
45
45
|
readonly call: {
|
|
46
|
-
readonly kind: "
|
|
46
|
+
readonly kind: "pathParams";
|
|
47
47
|
readonly paths: readonly ["slug"];
|
|
48
48
|
};
|
|
49
49
|
};
|
|
@@ -53,7 +53,7 @@ export declare const brandsOperations: {
|
|
|
53
53
|
readonly idempotent: false;
|
|
54
54
|
readonly paginated: false;
|
|
55
55
|
readonly call: {
|
|
56
|
-
readonly kind: "
|
|
56
|
+
readonly kind: "pathParams";
|
|
57
57
|
readonly paths: readonly ["slug"];
|
|
58
58
|
};
|
|
59
59
|
};
|
|
@@ -5,7 +5,7 @@ const brandsOperations = {
|
|
|
5
5
|
method: "GET",
|
|
6
6
|
idempotent: false,
|
|
7
7
|
paginated: false,
|
|
8
|
-
call: { kind: "
|
|
8
|
+
call: { kind: "params" }
|
|
9
9
|
},
|
|
10
10
|
brandsCreate: {
|
|
11
11
|
group: "Brands",
|
|
@@ -20,7 +20,7 @@ const brandsOperations = {
|
|
|
20
20
|
idempotent: false,
|
|
21
21
|
paginated: false,
|
|
22
22
|
call: {
|
|
23
|
-
kind: "
|
|
23
|
+
kind: "pathParams",
|
|
24
24
|
paths: ["slug"]
|
|
25
25
|
}
|
|
26
26
|
},
|
|
@@ -40,7 +40,7 @@ const brandsOperations = {
|
|
|
40
40
|
idempotent: false,
|
|
41
41
|
paginated: false,
|
|
42
42
|
call: {
|
|
43
|
-
kind: "
|
|
43
|
+
kind: "pathParams",
|
|
44
44
|
paths: ["slug"]
|
|
45
45
|
}
|
|
46
46
|
},
|
|
@@ -50,7 +50,7 @@ const brandsOperations = {
|
|
|
50
50
|
idempotent: false,
|
|
51
51
|
paginated: false,
|
|
52
52
|
call: {
|
|
53
|
-
kind: "
|
|
53
|
+
kind: "pathParams",
|
|
54
54
|
paths: ["slug"]
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -8,6 +8,16 @@ export declare const emailOperations: {
|
|
|
8
8
|
readonly kind: "payload";
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
+
readonly emailGetDeliverabilityInsights: {
|
|
12
|
+
readonly group: "Email";
|
|
13
|
+
readonly method: "GET";
|
|
14
|
+
readonly idempotent: false;
|
|
15
|
+
readonly paginated: false;
|
|
16
|
+
readonly call: {
|
|
17
|
+
readonly kind: "pathParams";
|
|
18
|
+
readonly paths: readonly ["id"];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
11
21
|
readonly emailGetOnboardingReview: {
|
|
12
22
|
readonly group: "Email";
|
|
13
23
|
readonly method: "GET";
|
|
@@ -275,7 +285,7 @@ export declare const emailOperations: {
|
|
|
275
285
|
readonly idempotent: false;
|
|
276
286
|
readonly paginated: false;
|
|
277
287
|
readonly call: {
|
|
278
|
-
readonly kind: "
|
|
288
|
+
readonly kind: "pathParams";
|
|
279
289
|
readonly paths: readonly ["id"];
|
|
280
290
|
};
|
|
281
291
|
};
|
|
@@ -327,6 +337,16 @@ export declare const emailOperations: {
|
|
|
327
337
|
readonly paths: readonly ["id"];
|
|
328
338
|
};
|
|
329
339
|
};
|
|
340
|
+
readonly emailUpdateSender: {
|
|
341
|
+
readonly group: "Email";
|
|
342
|
+
readonly method: "PATCH";
|
|
343
|
+
readonly idempotent: false;
|
|
344
|
+
readonly paginated: false;
|
|
345
|
+
readonly call: {
|
|
346
|
+
readonly kind: "pathPayload";
|
|
347
|
+
readonly paths: readonly ["id"];
|
|
348
|
+
};
|
|
349
|
+
};
|
|
330
350
|
readonly emailRemoveSender: {
|
|
331
351
|
readonly group: "Email";
|
|
332
352
|
readonly method: "DELETE";
|
|
@@ -7,6 +7,16 @@ const emailOperations = {
|
|
|
7
7
|
paginated: false,
|
|
8
8
|
call: { kind: "payload" }
|
|
9
9
|
},
|
|
10
|
+
emailGetDeliverabilityInsights: {
|
|
11
|
+
group: "Email",
|
|
12
|
+
method: "GET",
|
|
13
|
+
idempotent: false,
|
|
14
|
+
paginated: false,
|
|
15
|
+
call: {
|
|
16
|
+
kind: "pathParams",
|
|
17
|
+
paths: ["id"]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
10
20
|
emailGetOnboardingReview: {
|
|
11
21
|
group: "Email",
|
|
12
22
|
method: "GET",
|
|
@@ -256,7 +266,7 @@ const emailOperations = {
|
|
|
256
266
|
idempotent: false,
|
|
257
267
|
paginated: false,
|
|
258
268
|
call: {
|
|
259
|
-
kind: "
|
|
269
|
+
kind: "pathParams",
|
|
260
270
|
paths: ["id"]
|
|
261
271
|
}
|
|
262
272
|
},
|
|
@@ -304,6 +314,16 @@ const emailOperations = {
|
|
|
304
314
|
paths: ["id"]
|
|
305
315
|
}
|
|
306
316
|
},
|
|
317
|
+
emailUpdateSender: {
|
|
318
|
+
group: "Email",
|
|
319
|
+
method: "PATCH",
|
|
320
|
+
idempotent: false,
|
|
321
|
+
paginated: false,
|
|
322
|
+
call: {
|
|
323
|
+
kind: "pathPayload",
|
|
324
|
+
paths: ["id"]
|
|
325
|
+
}
|
|
326
|
+
},
|
|
307
327
|
emailRemoveSender: {
|
|
308
328
|
group: "Email",
|
|
309
329
|
method: "DELETE",
|
package/dist/effect/email.d.ts
CHANGED
|
@@ -14,6 +14,11 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
14
14
|
}[];
|
|
15
15
|
readonly createdAt: string;
|
|
16
16
|
}, import("./errors.js").BillingProviderError | import("./errors.js").ConflictError | import("./errors.js").DeliveryUnavailableError | import("./errors.js").ExternalServiceError | import("./errors.js").FlagDisabledError | import("./errors.js").ForbiddenError | import("./errors.js").FromAddressRequiredError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("../index.js").MediaUploadError | import("./errors.js").OnboardingReviewRequiredError | import("./errors.js").PaymentRequiredError | import("./errors.js").RateLimitedError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").SenderNotReadyError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
17
|
+
export declare const getDeliverabilityInsights: (input: {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly days?: "30" | "7" | undefined;
|
|
20
|
+
readonly mailboxProvider?: string | undefined;
|
|
21
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetDeliverabilityInsights">;
|
|
17
22
|
export declare const getOnboardingReview: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetOnboardingReview">;
|
|
18
23
|
export declare const reapplyOnboardingReview: (input: {
|
|
19
24
|
readonly expectedGeneration: number;
|
|
@@ -135,6 +140,7 @@ export declare const getDomainConnect: (input: {
|
|
|
135
140
|
export declare const buildDomainConnectApplyUrl: (input: {
|
|
136
141
|
readonly id: string;
|
|
137
142
|
readonly mode: "send-and-receive" | "send-only";
|
|
143
|
+
readonly returnUrl?: string | undefined;
|
|
138
144
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailBuildDomainConnectApplyUrl">;
|
|
139
145
|
export declare const completeDomainConnect: (input: {
|
|
140
146
|
readonly id: string;
|
|
@@ -183,6 +189,7 @@ export declare const getCustomTrackingDomainConnect: (input: {
|
|
|
183
189
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetCustomTrackingDomainConnect">;
|
|
184
190
|
export declare const buildCustomTrackingDomainConnectApplyUrl: (input: {
|
|
185
191
|
readonly id: string;
|
|
192
|
+
readonly returnUrl?: string | undefined;
|
|
186
193
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailBuildCustomTrackingDomainConnectApplyUrl">;
|
|
187
194
|
export declare const completeCustomTrackingDomainConnect: (input: {
|
|
188
195
|
readonly id: string;
|
|
@@ -282,6 +289,11 @@ export declare const checkSenderVerification: (input: {
|
|
|
282
289
|
export declare const getSender: (input: {
|
|
283
290
|
readonly id: string;
|
|
284
291
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetSender">;
|
|
292
|
+
export declare const updateSender: (input: {
|
|
293
|
+
readonly id: string;
|
|
294
|
+
readonly name?: string | null | undefined;
|
|
295
|
+
readonly replyToEmails?: readonly string[] | null | undefined;
|
|
296
|
+
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailUpdateSender">;
|
|
285
297
|
export declare const removeSender: (input: {
|
|
286
298
|
readonly id: string;
|
|
287
299
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailRemoveSender">;
|