samva 0.41.0 → 0.43.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 +56 -9
- package/dist/client/sdk.gen.js +185 -9
- package/dist/client/types.gen.d.ts +316 -5
- package/dist/effect/email.d.ts +8 -0
- package/dist/effect/generated/api-keys.js +5 -5
- package/dist/effect/generated/email.d.ts +198 -4
- package/dist/effect/generated/email.js +32 -8
- package/dist/effect/generated/mailboxes.d.ts +46 -0
- package/dist/effect/generated/mailboxes.js +4 -2
- package/dist/effect/generated/namespaces.d.ts +536 -1
- package/dist/effect/generated/namespaces.js +112 -3
- package/dist/effect/generated/organizations.d.ts +251 -2
- package/dist/effect/generated/organizations.js +58 -3
- package/dist/effect/generated/shared.d.ts +16 -0
- package/dist/effect/generated/shared.js +9 -1
- package/dist/effect/generated-metadata.d.ts +24 -0
- package/dist/effect/generated-metadata.js +4 -0
- package/dist/effect/mailboxes.d.ts +6 -0
- package/dist/effect/namespaces.d.ts +55 -0
- package/dist/effect/namespaces.js +7 -1
- package/dist/effect/organizations.d.ts +9 -1
- package/dist/effect/organizations.js +3 -1
- package/dist/package.js +1 -1
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/service-map.d.ts +21 -2
- package/dist/service-map.js +9 -2
- package/package.json +2 -2
|
@@ -270,6 +270,46 @@ export type NamespaceUsage = {
|
|
|
270
270
|
whatsappCount: number;
|
|
271
271
|
totalMessages: number;
|
|
272
272
|
};
|
|
273
|
+
export type NamespacePortalLink = {
|
|
274
|
+
id: NamespacePortalLinkId;
|
|
275
|
+
organizationId: OrganizationId;
|
|
276
|
+
namespaceId: NamespaceId;
|
|
277
|
+
createdBy: UserId;
|
|
278
|
+
expiresAt: string;
|
|
279
|
+
revokedAt: string | null;
|
|
280
|
+
redirectUrl: string | null;
|
|
281
|
+
metadata: NamespacePortalLinkMetadata;
|
|
282
|
+
createdAt: string;
|
|
283
|
+
};
|
|
284
|
+
export type NamespacePortalLinkMetadata = {
|
|
285
|
+
[key: string]: string;
|
|
286
|
+
};
|
|
287
|
+
export type NamespacePortalLinkMetadataWritable = {
|
|
288
|
+
[key: string]: string | undefined;
|
|
289
|
+
};
|
|
290
|
+
export type NamespacePortalLinkId = string;
|
|
291
|
+
export type NamespacePortalLinkPage = {
|
|
292
|
+
items: Array<NamespacePortalLink>;
|
|
293
|
+
nextCursor: string | null;
|
|
294
|
+
};
|
|
295
|
+
export type CreatedNamespacePortalLink = {
|
|
296
|
+
id: NamespacePortalLinkId;
|
|
297
|
+
organizationId: OrganizationId;
|
|
298
|
+
namespaceId: NamespaceId;
|
|
299
|
+
createdBy: UserId;
|
|
300
|
+
expiresAt: string;
|
|
301
|
+
revokedAt: string | null;
|
|
302
|
+
redirectUrl: string | null;
|
|
303
|
+
metadata: NamespacePortalLinkMetadata;
|
|
304
|
+
createdAt: string;
|
|
305
|
+
url: string;
|
|
306
|
+
};
|
|
307
|
+
export type CreateNamespacePortalLinkPayload = {
|
|
308
|
+
redirectUrl?: WhatsAppSetupLinkRedirectUrl | null | undefined;
|
|
309
|
+
metadata?: NamespacePortalLinkMetadata | null | undefined;
|
|
310
|
+
expiresIn?: number | null | undefined;
|
|
311
|
+
};
|
|
312
|
+
export type WhatsAppSetupLinkRedirectUrl = string;
|
|
273
313
|
export type FlagDisabledError = {
|
|
274
314
|
_tag: "FlagDisabledError";
|
|
275
315
|
flag: string;
|
|
@@ -500,6 +540,16 @@ export type MailboxNonSendAction = {
|
|
|
500
540
|
* The tool a `toolCall` runs, with its arguments and their hash; an approval covers exactly this call. Null for every other action type.
|
|
501
541
|
*/
|
|
502
542
|
tool: MailboxToolCall | null;
|
|
543
|
+
/**
|
|
544
|
+
* The hand-off a `handoff` asks for, with the agent's reason for handing the conversation to people. Null for every other action type.
|
|
545
|
+
*/
|
|
546
|
+
handoff: MailboxHandoff | null;
|
|
547
|
+
};
|
|
548
|
+
export type MailboxHandoff = {
|
|
549
|
+
/**
|
|
550
|
+
* Why the conversation needs people, in the agent's words.
|
|
551
|
+
*/
|
|
552
|
+
reason: string;
|
|
503
553
|
};
|
|
504
554
|
export type MailboxToolCall = {
|
|
505
555
|
name: string;
|
|
@@ -1641,6 +1691,7 @@ export type Organization = {
|
|
|
1641
1691
|
*/
|
|
1642
1692
|
export type PhoneRegion = string;
|
|
1643
1693
|
export type IanaTimezone = string;
|
|
1694
|
+
export type InvitationId = string;
|
|
1644
1695
|
export type WebhookSigningSecret = {
|
|
1645
1696
|
secret: string;
|
|
1646
1697
|
createdAt: string;
|
|
@@ -3811,9 +3862,10 @@ export type EmailDomainDetailed = {
|
|
|
3811
3862
|
}>;
|
|
3812
3863
|
verifiedAt: string | null;
|
|
3813
3864
|
/**
|
|
3814
|
-
* The namespace the domain belongs to, or null at organization level.
|
|
3865
|
+
* The namespace the domain belongs to, or null at organization level. Namespace callers also reach organization-level domains whose shared flag is true.
|
|
3815
3866
|
*/
|
|
3816
3867
|
namespaceId: NamespaceId | null;
|
|
3868
|
+
shared: boolean;
|
|
3817
3869
|
isDefault: boolean;
|
|
3818
3870
|
deliverability: DeliverabilityFacts;
|
|
3819
3871
|
createdAt: string;
|
|
@@ -3952,9 +4004,10 @@ export type EmailDomainPage = {
|
|
|
3952
4004
|
dkimSelector?: string | null | undefined;
|
|
3953
4005
|
dkimPublicKey?: string | null | undefined;
|
|
3954
4006
|
/**
|
|
3955
|
-
* The namespace the domain belongs to, or null at organization level.
|
|
4007
|
+
* The namespace the domain belongs to, or null at organization level. Namespace callers also reach organization-level domains whose shared flag is true.
|
|
3956
4008
|
*/
|
|
3957
4009
|
namespaceId: NamespaceId | null;
|
|
4010
|
+
shared: boolean;
|
|
3958
4011
|
isDefault: boolean;
|
|
3959
4012
|
deliverability: DeliverabilityFacts;
|
|
3960
4013
|
series: SendsSeries;
|
|
@@ -7334,6 +7387,7 @@ export type EmailListDomainsData = {
|
|
|
7334
7387
|
cursor?: string | undefined;
|
|
7335
7388
|
sendable?: true | null | undefined;
|
|
7336
7389
|
namespaceId?: NamespaceId | undefined;
|
|
7390
|
+
shared?: boolean | null | undefined;
|
|
7337
7391
|
};
|
|
7338
7392
|
url: "/v1/email/domains";
|
|
7339
7393
|
};
|
|
@@ -7379,6 +7433,7 @@ export type EmailAddDomainData = {
|
|
|
7379
7433
|
zone: string;
|
|
7380
7434
|
} | null | undefined;
|
|
7381
7435
|
namespaceId?: NamespaceId | null | undefined;
|
|
7436
|
+
shared?: boolean | null | undefined;
|
|
7382
7437
|
};
|
|
7383
7438
|
path?: never;
|
|
7384
7439
|
query?: never;
|
|
@@ -7624,10 +7679,18 @@ export type EmailRemoveDomainErrors = {
|
|
|
7624
7679
|
* ResourceNotFoundError
|
|
7625
7680
|
*/
|
|
7626
7681
|
404: ResourceNotFoundError;
|
|
7682
|
+
/**
|
|
7683
|
+
* ConflictError
|
|
7684
|
+
*/
|
|
7685
|
+
409: ConflictError;
|
|
7627
7686
|
/**
|
|
7628
7687
|
* ValidationError
|
|
7629
7688
|
*/
|
|
7630
7689
|
422: ValidationError;
|
|
7690
|
+
/**
|
|
7691
|
+
* RateLimitedError
|
|
7692
|
+
*/
|
|
7693
|
+
429: RateLimitedError;
|
|
7631
7694
|
/**
|
|
7632
7695
|
* InternalError
|
|
7633
7696
|
*/
|
|
@@ -8054,6 +8117,7 @@ export type EmailSetDefaultDomainResponses = {
|
|
|
8054
8117
|
export type EmailSetDefaultDomainResponse = EmailSetDefaultDomainResponses[keyof EmailSetDefaultDomainResponses];
|
|
8055
8118
|
export type EmailUpdateDomainConfigData = {
|
|
8056
8119
|
body: {
|
|
8120
|
+
shared?: boolean | null | undefined;
|
|
8057
8121
|
openTracking?: boolean | null | undefined;
|
|
8058
8122
|
clickTracking?: boolean | null | undefined;
|
|
8059
8123
|
replyTo?: Array<string> | null | undefined;
|
|
@@ -8084,14 +8148,26 @@ export type EmailUpdateDomainConfigErrors = {
|
|
|
8084
8148
|
* ResourceNotFoundError
|
|
8085
8149
|
*/
|
|
8086
8150
|
404: ResourceNotFoundError;
|
|
8151
|
+
/**
|
|
8152
|
+
* ConflictError
|
|
8153
|
+
*/
|
|
8154
|
+
409: ConflictError;
|
|
8087
8155
|
/**
|
|
8088
8156
|
* ValidationError
|
|
8089
8157
|
*/
|
|
8090
8158
|
422: ValidationError;
|
|
8159
|
+
/**
|
|
8160
|
+
* RateLimitedError
|
|
8161
|
+
*/
|
|
8162
|
+
429: RateLimitedError;
|
|
8091
8163
|
/**
|
|
8092
8164
|
* InternalError
|
|
8093
8165
|
*/
|
|
8094
8166
|
500: InternalError;
|
|
8167
|
+
/**
|
|
8168
|
+
* EmailChannelError
|
|
8169
|
+
*/
|
|
8170
|
+
502: EmailChannelError;
|
|
8095
8171
|
/**
|
|
8096
8172
|
* GatewayTimeoutError
|
|
8097
8173
|
*/
|
|
@@ -8104,6 +8180,7 @@ export type EmailUpdateDomainConfigResponses = {
|
|
|
8104
8180
|
*/
|
|
8105
8181
|
200: {
|
|
8106
8182
|
id: EmailDomainId;
|
|
8183
|
+
shared: boolean;
|
|
8107
8184
|
openTracking: boolean | null;
|
|
8108
8185
|
clickTracking: boolean | null;
|
|
8109
8186
|
replyTo: Array<string> | null;
|
|
@@ -8759,7 +8836,9 @@ export type EmailGetSenderResponses = {
|
|
|
8759
8836
|
};
|
|
8760
8837
|
export type EmailGetSenderResponse = EmailGetSenderResponses[keyof EmailGetSenderResponses];
|
|
8761
8838
|
export type EmailSetDefaultSenderData = {
|
|
8762
|
-
body
|
|
8839
|
+
body: {
|
|
8840
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
8841
|
+
};
|
|
8763
8842
|
path: {
|
|
8764
8843
|
id: EmailSenderId;
|
|
8765
8844
|
};
|
|
@@ -8783,14 +8862,26 @@ export type EmailSetDefaultSenderErrors = {
|
|
|
8783
8862
|
* ResourceNotFoundError
|
|
8784
8863
|
*/
|
|
8785
8864
|
404: ResourceNotFoundError;
|
|
8865
|
+
/**
|
|
8866
|
+
* ConflictError
|
|
8867
|
+
*/
|
|
8868
|
+
409: ConflictError;
|
|
8786
8869
|
/**
|
|
8787
8870
|
* ValidationError
|
|
8788
8871
|
*/
|
|
8789
8872
|
422: ValidationError;
|
|
8873
|
+
/**
|
|
8874
|
+
* RateLimitedError
|
|
8875
|
+
*/
|
|
8876
|
+
429: RateLimitedError;
|
|
8790
8877
|
/**
|
|
8791
8878
|
* InternalError
|
|
8792
8879
|
*/
|
|
8793
8880
|
500: InternalError;
|
|
8881
|
+
/**
|
|
8882
|
+
* EmailChannelError
|
|
8883
|
+
*/
|
|
8884
|
+
502: EmailChannelError;
|
|
8794
8885
|
/**
|
|
8795
8886
|
* GatewayTimeoutError
|
|
8796
8887
|
*/
|
|
@@ -21706,6 +21797,74 @@ export type WebhooksGetSecretResponses = {
|
|
|
21706
21797
|
200: WebhookSigningSecret;
|
|
21707
21798
|
};
|
|
21708
21799
|
export type WebhooksGetSecretResponse = WebhooksGetSecretResponses[keyof WebhooksGetSecretResponses];
|
|
21800
|
+
export type OrganizationsInviteMemberData = {
|
|
21801
|
+
body: {
|
|
21802
|
+
email: string;
|
|
21803
|
+
role: "member" | "admin" | "mail_user";
|
|
21804
|
+
mailboxAddress: string;
|
|
21805
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
21806
|
+
};
|
|
21807
|
+
path?: never;
|
|
21808
|
+
query?: never;
|
|
21809
|
+
url: "/v1/organizations/members/invitations";
|
|
21810
|
+
};
|
|
21811
|
+
export type OrganizationsInviteMemberErrors = {
|
|
21812
|
+
/**
|
|
21813
|
+
* MalformedRequestError
|
|
21814
|
+
*/
|
|
21815
|
+
400: MalformedRequestError;
|
|
21816
|
+
/**
|
|
21817
|
+
* UnauthorizedError
|
|
21818
|
+
*/
|
|
21819
|
+
401: UnauthorizedError;
|
|
21820
|
+
/**
|
|
21821
|
+
* PaymentRequiredError
|
|
21822
|
+
*/
|
|
21823
|
+
402: PaymentRequiredError;
|
|
21824
|
+
/**
|
|
21825
|
+
* ForbiddenError
|
|
21826
|
+
*/
|
|
21827
|
+
403: ForbiddenError;
|
|
21828
|
+
/**
|
|
21829
|
+
* ResourceNotFoundError
|
|
21830
|
+
*/
|
|
21831
|
+
404: ResourceNotFoundError;
|
|
21832
|
+
/**
|
|
21833
|
+
* ConflictError
|
|
21834
|
+
*/
|
|
21835
|
+
409: ConflictError;
|
|
21836
|
+
/**
|
|
21837
|
+
* ValidationError
|
|
21838
|
+
*/
|
|
21839
|
+
422: ValidationError;
|
|
21840
|
+
/**
|
|
21841
|
+
* InternalError
|
|
21842
|
+
*/
|
|
21843
|
+
500: InternalError;
|
|
21844
|
+
/**
|
|
21845
|
+
* BillingProviderError
|
|
21846
|
+
*/
|
|
21847
|
+
502: BillingProviderError;
|
|
21848
|
+
/**
|
|
21849
|
+
* GatewayTimeoutError
|
|
21850
|
+
*/
|
|
21851
|
+
504: GatewayTimeoutError;
|
|
21852
|
+
};
|
|
21853
|
+
export type OrganizationsInviteMemberError = OrganizationsInviteMemberErrors[keyof OrganizationsInviteMemberErrors];
|
|
21854
|
+
export type OrganizationsInviteMemberResponses = {
|
|
21855
|
+
/**
|
|
21856
|
+
* Success
|
|
21857
|
+
*/
|
|
21858
|
+
200: {
|
|
21859
|
+
id: InvitationId;
|
|
21860
|
+
email: string;
|
|
21861
|
+
role: "member" | "admin" | "mail_user";
|
|
21862
|
+
namespaceId: NamespaceId | null;
|
|
21863
|
+
mailboxAddress: string;
|
|
21864
|
+
status: "pending";
|
|
21865
|
+
};
|
|
21866
|
+
};
|
|
21867
|
+
export type OrganizationsInviteMemberResponse = OrganizationsInviteMemberResponses[keyof OrganizationsInviteMemberResponses];
|
|
21709
21868
|
export type OrganizationsCreateData = {
|
|
21710
21869
|
body: {
|
|
21711
21870
|
name: string;
|
|
@@ -22018,7 +22177,9 @@ export type OrganizationsListPersonalMailboxAssignmentsResponse = OrganizationsL
|
|
|
22018
22177
|
export type OrganizationsGetPersonalMailboxAddressOptionsData = {
|
|
22019
22178
|
body?: never;
|
|
22020
22179
|
path?: never;
|
|
22021
|
-
query?:
|
|
22180
|
+
query?: {
|
|
22181
|
+
namespaceId?: NamespaceId | undefined;
|
|
22182
|
+
};
|
|
22022
22183
|
url: "/v1/organizations/personal-mailboxes/address-options";
|
|
22023
22184
|
};
|
|
22024
22185
|
export type OrganizationsGetPersonalMailboxAddressOptionsErrors = {
|
|
@@ -22034,6 +22195,10 @@ export type OrganizationsGetPersonalMailboxAddressOptionsErrors = {
|
|
|
22034
22195
|
* ForbiddenError
|
|
22035
22196
|
*/
|
|
22036
22197
|
403: ForbiddenError;
|
|
22198
|
+
/**
|
|
22199
|
+
* ResourceNotFoundError
|
|
22200
|
+
*/
|
|
22201
|
+
404: ResourceNotFoundError;
|
|
22037
22202
|
/**
|
|
22038
22203
|
* ValidationError
|
|
22039
22204
|
*/
|
|
@@ -22356,7 +22521,7 @@ export type ApiKeysCreateData = {
|
|
|
22356
22521
|
description?: string | null | undefined;
|
|
22357
22522
|
expiresAt?: string | null | undefined;
|
|
22358
22523
|
/**
|
|
22359
|
-
* Defaults to full access. A restricted API key creating a key defaults to its own grants and cannot issue full access.
|
|
22524
|
+
* Defaults to full access for an unrestricted member, or namespace grants for a restricted member. A restricted API key creating a key defaults to its own grants and cannot issue full access.
|
|
22360
22525
|
*/
|
|
22361
22526
|
access?: ApiKeyAccess | null | undefined;
|
|
22362
22527
|
};
|
|
@@ -26443,6 +26608,152 @@ export type NamespacesRemoveResourceResponses = {
|
|
|
26443
26608
|
200: NamespaceResource;
|
|
26444
26609
|
};
|
|
26445
26610
|
export type NamespacesRemoveResourceResponse = NamespacesRemoveResourceResponses[keyof NamespacesRemoveResourceResponses];
|
|
26611
|
+
export type NamespacesListPortalLinksData = {
|
|
26612
|
+
body?: never;
|
|
26613
|
+
path: {
|
|
26614
|
+
id: NamespaceId;
|
|
26615
|
+
};
|
|
26616
|
+
query?: {
|
|
26617
|
+
limit?: number | null | undefined;
|
|
26618
|
+
cursor?: string | undefined;
|
|
26619
|
+
};
|
|
26620
|
+
url: "/v1/namespaces/{id}/portal-links";
|
|
26621
|
+
};
|
|
26622
|
+
export type NamespacesListPortalLinksErrors = {
|
|
26623
|
+
/**
|
|
26624
|
+
* MalformedRequestError
|
|
26625
|
+
*/
|
|
26626
|
+
400: MalformedRequestError;
|
|
26627
|
+
/**
|
|
26628
|
+
* UnauthorizedError
|
|
26629
|
+
*/
|
|
26630
|
+
401: UnauthorizedError;
|
|
26631
|
+
/**
|
|
26632
|
+
* ForbiddenError
|
|
26633
|
+
*/
|
|
26634
|
+
403: ForbiddenError;
|
|
26635
|
+
/**
|
|
26636
|
+
* ResourceNotFoundError
|
|
26637
|
+
*/
|
|
26638
|
+
404: ResourceNotFoundError;
|
|
26639
|
+
/**
|
|
26640
|
+
* ValidationError
|
|
26641
|
+
*/
|
|
26642
|
+
422: ValidationError;
|
|
26643
|
+
/**
|
|
26644
|
+
* InternalError
|
|
26645
|
+
*/
|
|
26646
|
+
500: InternalError;
|
|
26647
|
+
/**
|
|
26648
|
+
* GatewayTimeoutError
|
|
26649
|
+
*/
|
|
26650
|
+
504: GatewayTimeoutError;
|
|
26651
|
+
};
|
|
26652
|
+
export type NamespacesListPortalLinksError = NamespacesListPortalLinksErrors[keyof NamespacesListPortalLinksErrors];
|
|
26653
|
+
export type NamespacesListPortalLinksResponses = {
|
|
26654
|
+
/**
|
|
26655
|
+
* NamespacePortalLinkPage
|
|
26656
|
+
*/
|
|
26657
|
+
200: NamespacePortalLinkPage;
|
|
26658
|
+
};
|
|
26659
|
+
export type NamespacesListPortalLinksResponse = NamespacesListPortalLinksResponses[keyof NamespacesListPortalLinksResponses];
|
|
26660
|
+
export type NamespacesCreatePortalLinkData = {
|
|
26661
|
+
body: {
|
|
26662
|
+
redirectUrl?: WhatsAppSetupLinkRedirectUrl | null | undefined;
|
|
26663
|
+
metadata?: NamespacePortalLinkMetadataWritable | null | undefined;
|
|
26664
|
+
expiresIn?: number | null | undefined;
|
|
26665
|
+
};
|
|
26666
|
+
path: {
|
|
26667
|
+
id: NamespaceId;
|
|
26668
|
+
};
|
|
26669
|
+
query?: never;
|
|
26670
|
+
url: "/v1/namespaces/{id}/portal-links";
|
|
26671
|
+
};
|
|
26672
|
+
export type NamespacesCreatePortalLinkErrors = {
|
|
26673
|
+
/**
|
|
26674
|
+
* MalformedRequestError
|
|
26675
|
+
*/
|
|
26676
|
+
400: MalformedRequestError;
|
|
26677
|
+
/**
|
|
26678
|
+
* UnauthorizedError
|
|
26679
|
+
*/
|
|
26680
|
+
401: UnauthorizedError;
|
|
26681
|
+
/**
|
|
26682
|
+
* ForbiddenError
|
|
26683
|
+
*/
|
|
26684
|
+
403: ForbiddenError;
|
|
26685
|
+
/**
|
|
26686
|
+
* ResourceNotFoundError
|
|
26687
|
+
*/
|
|
26688
|
+
404: ResourceNotFoundError;
|
|
26689
|
+
/**
|
|
26690
|
+
* ValidationError
|
|
26691
|
+
*/
|
|
26692
|
+
422: ValidationError;
|
|
26693
|
+
/**
|
|
26694
|
+
* InternalError
|
|
26695
|
+
*/
|
|
26696
|
+
500: InternalError;
|
|
26697
|
+
/**
|
|
26698
|
+
* GatewayTimeoutError
|
|
26699
|
+
*/
|
|
26700
|
+
504: GatewayTimeoutError;
|
|
26701
|
+
};
|
|
26702
|
+
export type NamespacesCreatePortalLinkError = NamespacesCreatePortalLinkErrors[keyof NamespacesCreatePortalLinkErrors];
|
|
26703
|
+
export type NamespacesCreatePortalLinkResponses = {
|
|
26704
|
+
/**
|
|
26705
|
+
* CreatedNamespacePortalLink
|
|
26706
|
+
*/
|
|
26707
|
+
201: CreatedNamespacePortalLink;
|
|
26708
|
+
};
|
|
26709
|
+
export type NamespacesCreatePortalLinkResponse = NamespacesCreatePortalLinkResponses[keyof NamespacesCreatePortalLinkResponses];
|
|
26710
|
+
export type NamespacesRevokePortalLinkData = {
|
|
26711
|
+
body?: never;
|
|
26712
|
+
path: {
|
|
26713
|
+
id: NamespaceId;
|
|
26714
|
+
linkId: NamespacePortalLinkId;
|
|
26715
|
+
};
|
|
26716
|
+
query?: never;
|
|
26717
|
+
url: "/v1/namespaces/{id}/portal-links/{linkId}";
|
|
26718
|
+
};
|
|
26719
|
+
export type NamespacesRevokePortalLinkErrors = {
|
|
26720
|
+
/**
|
|
26721
|
+
* MalformedRequestError
|
|
26722
|
+
*/
|
|
26723
|
+
400: MalformedRequestError;
|
|
26724
|
+
/**
|
|
26725
|
+
* UnauthorizedError
|
|
26726
|
+
*/
|
|
26727
|
+
401: UnauthorizedError;
|
|
26728
|
+
/**
|
|
26729
|
+
* ForbiddenError
|
|
26730
|
+
*/
|
|
26731
|
+
403: ForbiddenError;
|
|
26732
|
+
/**
|
|
26733
|
+
* ResourceNotFoundError
|
|
26734
|
+
*/
|
|
26735
|
+
404: ResourceNotFoundError;
|
|
26736
|
+
/**
|
|
26737
|
+
* ValidationError
|
|
26738
|
+
*/
|
|
26739
|
+
422: ValidationError;
|
|
26740
|
+
/**
|
|
26741
|
+
* InternalError
|
|
26742
|
+
*/
|
|
26743
|
+
500: InternalError;
|
|
26744
|
+
/**
|
|
26745
|
+
* GatewayTimeoutError
|
|
26746
|
+
*/
|
|
26747
|
+
504: GatewayTimeoutError;
|
|
26748
|
+
};
|
|
26749
|
+
export type NamespacesRevokePortalLinkError = NamespacesRevokePortalLinkErrors[keyof NamespacesRevokePortalLinkErrors];
|
|
26750
|
+
export type NamespacesRevokePortalLinkResponses = {
|
|
26751
|
+
/**
|
|
26752
|
+
* NamespacePortalLink
|
|
26753
|
+
*/
|
|
26754
|
+
200: NamespacePortalLink;
|
|
26755
|
+
};
|
|
26756
|
+
export type NamespacesRevokePortalLinkResponse = NamespacesRevokePortalLinkResponses[keyof NamespacesRevokePortalLinkResponses];
|
|
26446
26757
|
export type NamespacesGetUsageData = {
|
|
26447
26758
|
body?: never;
|
|
26448
26759
|
path: {
|
package/dist/effect/email.d.ts
CHANGED
|
@@ -31,12 +31,14 @@ export declare const listDomains: ((input?: {
|
|
|
31
31
|
readonly cursor?: string | undefined;
|
|
32
32
|
readonly sendable?: true | null | undefined;
|
|
33
33
|
readonly namespaceId?: string | undefined;
|
|
34
|
+
readonly shared?: boolean | null | undefined;
|
|
34
35
|
} | undefined, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailListDomains">) & {
|
|
35
36
|
readonly pages: (input?: {
|
|
36
37
|
readonly limit?: number | null | undefined;
|
|
37
38
|
readonly cursor?: string | undefined;
|
|
38
39
|
readonly sendable?: true | null | undefined;
|
|
39
40
|
readonly namespaceId?: string | undefined;
|
|
41
|
+
readonly shared?: boolean | null | undefined;
|
|
40
42
|
} | undefined) => import("effect/Stream").Stream<{
|
|
41
43
|
readonly items: readonly {
|
|
42
44
|
readonly unknownRecipientMailboxId: (string & import("effect/Brand").Brand<"MailboxId">) | null;
|
|
@@ -46,6 +48,7 @@ export declare const listDomains: ((input?: {
|
|
|
46
48
|
readonly dkimSelector?: string | null;
|
|
47
49
|
readonly dkimPublicKey?: string | null;
|
|
48
50
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
51
|
+
readonly shared: boolean;
|
|
49
52
|
readonly isDefault: boolean;
|
|
50
53
|
readonly deliverability: {
|
|
51
54
|
readonly bounceRate: number;
|
|
@@ -64,6 +67,7 @@ export declare const listDomains: ((input?: {
|
|
|
64
67
|
readonly cursor?: string | undefined;
|
|
65
68
|
readonly sendable?: true | null | undefined;
|
|
66
69
|
readonly namespaceId?: string | undefined;
|
|
70
|
+
readonly shared?: boolean | null | undefined;
|
|
67
71
|
} | undefined) => import("effect/Stream").Stream<{
|
|
68
72
|
readonly unknownRecipientMailboxId: (string & import("effect/Brand").Brand<"MailboxId">) | null;
|
|
69
73
|
readonly id: string & import("effect/Brand").Brand<"EmailDomainId">;
|
|
@@ -72,6 +76,7 @@ export declare const listDomains: ((input?: {
|
|
|
72
76
|
readonly dkimSelector?: string | null;
|
|
73
77
|
readonly dkimPublicKey?: string | null;
|
|
74
78
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
79
|
+
readonly shared: boolean;
|
|
75
80
|
readonly isDefault: boolean;
|
|
76
81
|
readonly deliverability: {
|
|
77
82
|
readonly bounceRate: number;
|
|
@@ -91,6 +96,7 @@ export declare const addDomain: (input: {
|
|
|
91
96
|
readonly zone: string;
|
|
92
97
|
} | null | undefined;
|
|
93
98
|
readonly namespaceId?: string | null | undefined;
|
|
99
|
+
readonly shared?: boolean | null | undefined;
|
|
94
100
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailAddDomain">;
|
|
95
101
|
export declare const rotateDomainDkim: (input: {
|
|
96
102
|
readonly id: string;
|
|
@@ -112,6 +118,7 @@ export declare const setDefaultDomain: (input: {
|
|
|
112
118
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailSetDefaultDomain">;
|
|
113
119
|
export declare const updateDomainConfig: (input: {
|
|
114
120
|
readonly id: string;
|
|
121
|
+
readonly shared?: boolean | null | undefined;
|
|
115
122
|
readonly openTracking?: boolean | null | undefined;
|
|
116
123
|
readonly clickTracking?: boolean | null | undefined;
|
|
117
124
|
readonly replyTo?: readonly string[] | null | undefined;
|
|
@@ -309,6 +316,7 @@ export declare const removeSender: (input: {
|
|
|
309
316
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailRemoveSender">;
|
|
310
317
|
export declare const setDefaultSender: (input: {
|
|
311
318
|
readonly id: string;
|
|
319
|
+
readonly namespaceId?: string | null | undefined;
|
|
312
320
|
}, options?: import("./internal/operation").OperationOptions) => import("./internal/operation").OperationResult<"emailSetDefaultSender">;
|
|
313
321
|
export declare const getStats: (input?: {
|
|
314
322
|
readonly after?: string | undefined;
|
|
@@ -69,7 +69,7 @@ const ApiKeysCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
69
69
|
name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(32).annotate({ expected: "a string with at most 32 code points" })).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" })),
|
|
70
70
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
71
71
|
expiresAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
72
|
-
access: Schema.optionalKey(Schema.Union([ApiKeyAccess, Schema.Null]).annotate({ description: "Defaults to full access. A restricted API key creating a key defaults to its own grants and cannot issue full access." }))
|
|
72
|
+
access: Schema.optionalKey(Schema.Union([ApiKeyAccess, Schema.Null]).annotate({ description: "Defaults to full access for an unrestricted member, or namespace grants for a restricted member. A restricted API key creating a key defaults to its own grants and cannot issue full access." }))
|
|
73
73
|
}))();
|
|
74
74
|
const ApiKeysCreate201 = ApiKeyWithSecret;
|
|
75
75
|
const ApiKeysCreate400 = MalformedRequestError;
|
|
@@ -168,7 +168,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
|
|
|
168
168
|
ApiKeysList500,
|
|
169
169
|
ApiKeysList504.pipe(HttpApiSchema.status(504))
|
|
170
170
|
]
|
|
171
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.list").annotate(OpenApi.Summary, "List API keys").annotate(OpenApi.Description, "Returns the organization's API keys, newest first, filterable by namespace (`namespaceId`), status and a search term matched against name and description. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("apiKeysCreate", "/v1/api-keys", {
|
|
171
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.list").annotate(OpenApi.Summary, "List API keys").annotate(OpenApi.Description, "Returns the organization's API keys, newest first, filterable by namespace (`namespaceId`), status and a search term matched against name and description. Restricted members receive only keys stored in their namespace. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("apiKeysCreate", "/v1/api-keys", {
|
|
172
172
|
payload: ApiKeysCreateRequestJson,
|
|
173
173
|
success: ApiKeysCreate201.pipe(HttpApiSchema.status(201)),
|
|
174
174
|
error: [
|
|
@@ -183,7 +183,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
|
|
|
183
183
|
ApiKeysCreate502.pipe(HttpApiSchema.status(502)),
|
|
184
184
|
ApiKeysCreate504.pipe(HttpApiSchema.status(504))
|
|
185
185
|
]
|
|
186
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.create").annotate(OpenApi.Summary, "Create an API key").annotate(OpenApi.Description, "Creates a new API key for the organization and returns the created key, including the plaintext secret, with a 201 response."), HttpApiEndpoint.get("apiKeysGet", "/v1/api-keys/:id", {
|
|
186
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.create").annotate(OpenApi.Summary, "Create an API key").annotate(OpenApi.Description, "Creates a new API key for the organization and returns the created key, including the plaintext secret, with a 201 response. A restricted member can issue keys only in their namespace, capped by its available resources."), HttpApiEndpoint.get("apiKeysGet", "/v1/api-keys/:id", {
|
|
187
187
|
params: ApiKeysGetPathParams,
|
|
188
188
|
success: ApiKeysGet200,
|
|
189
189
|
error: [
|
|
@@ -195,7 +195,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
|
|
|
195
195
|
ApiKeysGet500,
|
|
196
196
|
ApiKeysGet504.pipe(HttpApiSchema.status(504))
|
|
197
197
|
]
|
|
198
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.get").annotate(OpenApi.Summary, "Get an API key").annotate(OpenApi.Description, "Returns the API key with the given ID, including its metadata and access."), HttpApiEndpoint.patch("apiKeysUpdate", "/v1/api-keys/:id", {
|
|
198
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.get").annotate(OpenApi.Summary, "Get an API key").annotate(OpenApi.Description, "Returns the API key with the given ID, including its metadata and access. Restricted members can read only keys stored in their namespace."), HttpApiEndpoint.patch("apiKeysUpdate", "/v1/api-keys/:id", {
|
|
199
199
|
params: ApiKeysUpdatePathParams,
|
|
200
200
|
payload: ApiKeysUpdateRequestJson,
|
|
201
201
|
success: ApiKeysUpdate200,
|
|
@@ -234,7 +234,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
|
|
|
234
234
|
ApiKeysRevoke502.pipe(HttpApiSchema.status(502)),
|
|
235
235
|
ApiKeysRevoke504.pipe(HttpApiSchema.status(504))
|
|
236
236
|
]
|
|
237
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.revoke").annotate(OpenApi.Summary, "Revoke an API key").annotate(OpenApi.Description, "Deactivates an API key so it can no longer authenticate requests. Revocation is final: a revoked key never authenticates again. Its record stays listable, so the messages it sent stay attributed to it."), HttpApiEndpoint.post("apiKeysRotate", "/v1/api-keys/:id/rotate", {
|
|
237
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.revoke").annotate(OpenApi.Summary, "Revoke an API key").annotate(OpenApi.Description, "Deactivates an API key so it can no longer authenticate requests. Restricted members can revoke only keys stored in their namespace. Revocation is final: a revoked key never authenticates again. Its record stays listable, so the messages it sent stay attributed to it."), HttpApiEndpoint.post("apiKeysRotate", "/v1/api-keys/:id/rotate", {
|
|
238
238
|
params: ApiKeysRotatePathParams,
|
|
239
239
|
success: ApiKeysRotate200,
|
|
240
240
|
error: [
|