samva 0.50.0 → 0.51.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/AGENTS.md +44 -3
- package/README.md +136 -7
- package/dist/client/sdk.gen.d.ts +12 -11
- package/dist/client/sdk.gen.js +1399 -940
- package/dist/client/types.gen.d.ts +21 -10
- package/dist/effect/agents.d.ts +4 -4
- package/dist/effect/api-keys.d.ts +4 -6
- package/dist/effect/campaigns.d.ts +166 -174
- package/dist/effect/categories.d.ts +2 -2
- package/dist/effect/categories.js +6 -4
- package/dist/effect/contact-groups.d.ts +4 -4
- package/dist/effect/contacts.d.ts +8 -8
- package/dist/effect/conversations.d.ts +4 -4
- package/dist/effect/email.d.ts +17 -16
- package/dist/effect/errors.d.ts +1 -0
- package/dist/effect/errors.js +2 -1
- package/dist/effect/generated/api-keys.d.ts +0 -15
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +0 -62
- package/dist/effect/generated/campaigns.js +3 -9
- package/dist/effect/generated/email.d.ts +10 -3
- package/dist/effect/generated/email.js +3 -2
- package/dist/effect/generated/mailboxes.js +6 -6
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/policies.js +2 -2
- package/dist/effect/generated/scheduled-messages.d.ts +0 -26
- package/dist/effect/generated/scheduled-messages.js +1 -3
- package/dist/effect/generated/shared.d.ts +1 -0
- package/dist/effect/generated/shared.js +2 -1
- package/dist/effect/index.js +2 -1
- package/dist/effect/integrations.d.ts +2 -2
- package/dist/effect/internal/client.d.ts +19 -2
- package/dist/effect/internal/client.js +10 -2
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/email-sender.js +5 -3
- package/dist/effect/internal/operation.d.ts +11 -0
- package/dist/effect/internal/operation.js +10 -6
- package/dist/effect/internal/send.d.ts +4 -0
- package/dist/effect/internal/send.js +11 -8
- package/dist/effect/internal/timeout.d.ts +16 -0
- package/dist/effect/internal/timeout.js +20 -0
- package/dist/effect/journeys.d.ts +152 -152
- package/dist/effect/mailboxes.d.ts +28 -28
- package/dist/effect/messages.d.ts +5 -5
- package/dist/effect/namespaces.d.ts +4 -4
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/operations.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +2 -6
- package/dist/effect/templates.d.ts +6 -6
- package/dist/effect/topics.d.ts +4 -4
- package/dist/effect/webhooks.d.ts +4 -4
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +5 -0
- package/dist/promises/client.js +12 -8
- package/dist/promises/errors.gen.d.ts +12 -1
- package/dist/promises/errors.gen.js +21 -2
- package/dist/promises/index.js +2 -2
- package/dist/promises/request.d.ts +31 -2
- package/dist/promises/request.js +42 -7
- package/dist/request-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/package.json +2 -2
|
@@ -1842,7 +1842,6 @@ export type ApiKeyWithSecret = {
|
|
|
1842
1842
|
export type ApiKeyOwner = {
|
|
1843
1843
|
id: string;
|
|
1844
1844
|
name: string;
|
|
1845
|
-
email: string;
|
|
1846
1845
|
};
|
|
1847
1846
|
export type ApiKey = {
|
|
1848
1847
|
id: string;
|
|
@@ -2954,6 +2953,7 @@ export type FromAddressRequiredError = {
|
|
|
2954
2953
|
_tag: "FromAddressRequiredError";
|
|
2955
2954
|
message: string;
|
|
2956
2955
|
verifiedDomains: Array<string>;
|
|
2956
|
+
addresses: Array<string>;
|
|
2957
2957
|
};
|
|
2958
2958
|
export type ExternalServiceError = {
|
|
2959
2959
|
_tag: "ExternalServiceError";
|
|
@@ -4801,6 +4801,10 @@ export type EmailDomainDetailed = {
|
|
|
4801
4801
|
namespaceId: NamespaceId | null;
|
|
4802
4802
|
shared: boolean;
|
|
4803
4803
|
isDefault: boolean;
|
|
4804
|
+
/**
|
|
4805
|
+
* True once a removal was accepted. Removal runs in the background: the domain stays listed and sends nothing while its provider teardown finishes, then it reads as not found.
|
|
4806
|
+
*/
|
|
4807
|
+
deleting: boolean;
|
|
4804
4808
|
deliverability: DeliverabilityFacts;
|
|
4805
4809
|
createdAt: string;
|
|
4806
4810
|
updatedAt: string;
|
|
@@ -4943,6 +4947,10 @@ export type EmailDomainPage = {
|
|
|
4943
4947
|
namespaceId: NamespaceId | null;
|
|
4944
4948
|
shared: boolean;
|
|
4945
4949
|
isDefault: boolean;
|
|
4950
|
+
/**
|
|
4951
|
+
* True once a removal was accepted. Removal runs in the background: the domain stays listed and sends nothing while its provider teardown finishes, then it reads as not found.
|
|
4952
|
+
*/
|
|
4953
|
+
deleting: boolean;
|
|
4946
4954
|
deliverability: DeliverabilityFacts;
|
|
4947
4955
|
series: SendsSeries;
|
|
4948
4956
|
createdAt: string;
|
|
@@ -5040,9 +5048,10 @@ export type CampaignRun = {
|
|
|
5040
5048
|
holdUntil: string | null;
|
|
5041
5049
|
capacityWarning: string | null;
|
|
5042
5050
|
lastContactId: string | null;
|
|
5051
|
+
/**
|
|
5052
|
+
* The user id of the member who created it; for an API key, the key owner's user id. Never an email address.
|
|
5053
|
+
*/
|
|
5043
5054
|
createdBy: string | null;
|
|
5044
|
-
actorEmail: string;
|
|
5045
|
-
memberRole: string;
|
|
5046
5055
|
createdAt: string;
|
|
5047
5056
|
updatedAt: string;
|
|
5048
5057
|
};
|
|
@@ -5254,9 +5263,10 @@ export type Campaign = {
|
|
|
5254
5263
|
policy: CampaignPolicy;
|
|
5255
5264
|
definition: CampaignDefinitionSummary;
|
|
5256
5265
|
latestRun: CampaignLatestRun | null;
|
|
5266
|
+
/**
|
|
5267
|
+
* The user id of the member who created it; for an API key, the key owner's user id. Never an email address.
|
|
5268
|
+
*/
|
|
5257
5269
|
createdBy: string | null;
|
|
5258
|
-
actorEmail: string;
|
|
5259
|
-
memberRole: string;
|
|
5260
5270
|
createdAt: string;
|
|
5261
5271
|
updatedAt: string;
|
|
5262
5272
|
};
|
|
@@ -5343,9 +5353,10 @@ export type CampaignListItem = {
|
|
|
5343
5353
|
policy: CampaignPolicy;
|
|
5344
5354
|
definition: CampaignDefinitionSummary;
|
|
5345
5355
|
latestRun: CampaignLatestRun | null;
|
|
5356
|
+
/**
|
|
5357
|
+
* The user id of the member who created it; for an API key, the key owner's user id. Never an email address.
|
|
5358
|
+
*/
|
|
5346
5359
|
createdBy: string | null;
|
|
5347
|
-
actorEmail: string;
|
|
5348
|
-
memberRole: string;
|
|
5349
5360
|
createdAt: string;
|
|
5350
5361
|
updatedAt: string;
|
|
5351
5362
|
series: SendsSeries;
|
|
@@ -5376,9 +5387,10 @@ export type ScheduledMessage = {
|
|
|
5376
5387
|
referenceId: string | null;
|
|
5377
5388
|
failureReason: string | null;
|
|
5378
5389
|
attempts: number;
|
|
5390
|
+
/**
|
|
5391
|
+
* The user id of the member who created it; for an API key, the key owner's user id. Never an email address.
|
|
5392
|
+
*/
|
|
5379
5393
|
createdBy: string | null;
|
|
5380
|
-
actorEmail: string;
|
|
5381
|
-
memberRole: string;
|
|
5382
5394
|
createdAt: string;
|
|
5383
5395
|
updatedAt: string;
|
|
5384
5396
|
};
|
|
@@ -9151,7 +9163,6 @@ export type EmailCompleteDomainConnectResponses = {
|
|
|
9151
9163
|
export type EmailCompleteDomainConnectResponse = EmailCompleteDomainConnectResponses[keyof EmailCompleteDomainConnectResponses];
|
|
9152
9164
|
export type EmailEnableReceivingData = {
|
|
9153
9165
|
body: {
|
|
9154
|
-
domain: string;
|
|
9155
9166
|
catchAll?: boolean | null | undefined;
|
|
9156
9167
|
endpointId?: WebhookEndpointId | null | undefined;
|
|
9157
9168
|
addresses?: Array<string> | null | undefined;
|
package/dist/effect/agents.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ export declare const list: ((input?: {
|
|
|
110
110
|
readonly updatedAt: string;
|
|
111
111
|
}[];
|
|
112
112
|
readonly nextCursor: string | null;
|
|
113
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
113
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
114
114
|
readonly items: (input?: {
|
|
115
115
|
readonly limit?: number | null | undefined;
|
|
116
116
|
readonly cursor?: string | undefined;
|
|
@@ -127,7 +127,7 @@ export declare const list: ((input?: {
|
|
|
127
127
|
readonly monthlySpendCapDollars: number | null;
|
|
128
128
|
readonly createdAt: string;
|
|
129
129
|
readonly updatedAt: string;
|
|
130
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
130
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
131
131
|
};
|
|
132
132
|
export declare const create: (input: {
|
|
133
133
|
readonly name: string;
|
|
@@ -568,7 +568,7 @@ export declare const listVersions: ((input: {
|
|
|
568
568
|
readonly publishedAt: string;
|
|
569
569
|
}[];
|
|
570
570
|
readonly nextCursor: string | null;
|
|
571
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
571
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
572
572
|
readonly items: (input: {
|
|
573
573
|
readonly id: string;
|
|
574
574
|
readonly limit?: number | null | undefined;
|
|
@@ -679,7 +679,7 @@ export declare const listVersions: ((input: {
|
|
|
679
679
|
};
|
|
680
680
|
readonly authoring: "builder" | "code";
|
|
681
681
|
readonly publishedAt: string;
|
|
682
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
682
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
683
683
|
};
|
|
684
684
|
export declare const continueOnStandard: (input: {
|
|
685
685
|
readonly id: string;
|
|
@@ -89,11 +89,10 @@ export declare const list: ((input?: {
|
|
|
89
89
|
readonly owner: {
|
|
90
90
|
readonly id: string;
|
|
91
91
|
readonly name: string;
|
|
92
|
-
readonly email: string;
|
|
93
92
|
} | null;
|
|
94
93
|
}[];
|
|
95
94
|
readonly nextCursor: string | null;
|
|
96
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
95
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
97
96
|
readonly items: (input?: {
|
|
98
97
|
readonly limit?: number | null | undefined;
|
|
99
98
|
readonly cursor?: string | undefined;
|
|
@@ -143,9 +142,8 @@ export declare const list: ((input?: {
|
|
|
143
142
|
readonly owner: {
|
|
144
143
|
readonly id: string;
|
|
145
144
|
readonly name: string;
|
|
146
|
-
readonly email: string;
|
|
147
145
|
} | null;
|
|
148
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
146
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
149
147
|
};
|
|
150
148
|
export declare const get: (input: {
|
|
151
149
|
readonly id: string;
|
|
@@ -185,7 +183,7 @@ export declare const getActivity: ((input: {
|
|
|
185
183
|
readonly latency: number;
|
|
186
184
|
}[];
|
|
187
185
|
readonly nextCursor: string | null;
|
|
188
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
186
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
189
187
|
readonly items: (input: {
|
|
190
188
|
readonly id: string;
|
|
191
189
|
readonly limit?: number | null | undefined;
|
|
@@ -197,5 +195,5 @@ export declare const getActivity: ((input: {
|
|
|
197
195
|
readonly endpoint: string;
|
|
198
196
|
readonly statusCode: number;
|
|
199
197
|
readonly latency: number;
|
|
200
|
-
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
198
|
+
}, import("./errors.js").ForbiddenError | import("./errors.js").GatewayTimeoutError | import("effect/http/HttpClientError").HttpClientError | import("./errors.js").InternalError | import("./errors.js").MalformedRequestError | import("./errors.js").ResourceNotFoundError | import("./errors.js").SamvaTimeoutError | import("effect/Schema").SchemaError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
201
199
|
};
|