samva 0.49.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 +63 -18
- package/dist/client/sdk.gen.js +1549 -945
- package/dist/client/types.gen.d.ts +269 -31
- 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/descriptors/mailboxes.d.ts +41 -1
- package/dist/effect/descriptors/mailboxes.js +53 -1
- 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.d.ts +780 -77
- package/dist/effect/generated/mailboxes.js +135 -12
- 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 +28 -31
- package/dist/effect/generated/shared.js +12 -19
- package/dist/effect/generated/template-registrations.d.ts +6 -6
- package/dist/effect/generated/template-registrations.js +3 -3
- package/dist/effect/generated-metadata.d.ts +24 -0
- package/dist/effect/generated-metadata.js +4 -0
- 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 +54 -30
- package/dist/effect/mailboxes.js +10 -2
- 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/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/dist/service-map.d.ts +22 -2
- package/package.json +3 -3
|
@@ -43,7 +43,7 @@ export declare const list: ((input?: {
|
|
|
43
43
|
readonly createdAt: string;
|
|
44
44
|
}[];
|
|
45
45
|
readonly nextCursor: string | null;
|
|
46
|
-
}, 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>;
|
|
46
|
+
}, 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>;
|
|
47
47
|
readonly items: (input?: {
|
|
48
48
|
readonly limit?: number | null | undefined;
|
|
49
49
|
readonly cursor?: string | undefined;
|
|
@@ -74,7 +74,7 @@ export declare const list: ((input?: {
|
|
|
74
74
|
} | null;
|
|
75
75
|
readonly lastActiveAt: string | null;
|
|
76
76
|
readonly createdAt: string;
|
|
77
|
-
}, 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>;
|
|
77
|
+
}, 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>;
|
|
78
78
|
};
|
|
79
79
|
export declare const create: (input: {
|
|
80
80
|
readonly namespaceId?: string | null | undefined;
|
|
@@ -433,7 +433,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
433
433
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
434
434
|
}[];
|
|
435
435
|
readonly nextCursor: string | null;
|
|
436
|
-
}, 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>;
|
|
436
|
+
}, 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>;
|
|
437
437
|
readonly items: (input: {
|
|
438
438
|
readonly id: string;
|
|
439
439
|
readonly limit?: number | null | undefined;
|
|
@@ -448,7 +448,7 @@ export declare const getActivityTimeline: ((input: {
|
|
|
448
448
|
readonly snippet: string | null;
|
|
449
449
|
readonly createdAt: string;
|
|
450
450
|
readonly conversationId: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
451
|
-
}, 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>;
|
|
451
|
+
}, 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>;
|
|
452
452
|
};
|
|
453
453
|
export declare const getGroupMemberships: ((input: {
|
|
454
454
|
readonly id: string;
|
|
@@ -469,7 +469,7 @@ export declare const getGroupMemberships: ((input: {
|
|
|
469
469
|
readonly joinedAt: string;
|
|
470
470
|
}[];
|
|
471
471
|
readonly nextCursor: string | null;
|
|
472
|
-
}, 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>;
|
|
472
|
+
}, 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>;
|
|
473
473
|
readonly items: (input: {
|
|
474
474
|
readonly id: string;
|
|
475
475
|
readonly limit?: number | null | undefined;
|
|
@@ -481,7 +481,7 @@ export declare const getGroupMemberships: ((input: {
|
|
|
481
481
|
readonly color: "clay" | "moss" | "plum" | "rose" | "sand" | "sky" | null;
|
|
482
482
|
readonly role: string;
|
|
483
483
|
readonly joinedAt: string;
|
|
484
|
-
}, 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>;
|
|
484
|
+
}, 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>;
|
|
485
485
|
};
|
|
486
486
|
export declare const listEvents: ((input: {
|
|
487
487
|
readonly id: string;
|
|
@@ -505,7 +505,7 @@ export declare const listEvents: ((input: {
|
|
|
505
505
|
readonly recordedAt: string;
|
|
506
506
|
}[];
|
|
507
507
|
readonly nextCursor: string | null;
|
|
508
|
-
}, 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>;
|
|
508
|
+
}, 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>;
|
|
509
509
|
readonly items: (input: {
|
|
510
510
|
readonly id: string;
|
|
511
511
|
readonly limit?: number | null | undefined;
|
|
@@ -520,5 +520,5 @@ export declare const listEvents: ((input: {
|
|
|
520
520
|
};
|
|
521
521
|
readonly occurredAt: string;
|
|
522
522
|
readonly recordedAt: string;
|
|
523
|
-
}, 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>;
|
|
523
|
+
}, 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>;
|
|
524
524
|
};
|
|
@@ -37,7 +37,7 @@ export declare const list: ((input?: {
|
|
|
37
37
|
readonly createdAt: string;
|
|
38
38
|
}[];
|
|
39
39
|
readonly nextCursor: string | null;
|
|
40
|
-
}, 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>;
|
|
40
|
+
}, 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>;
|
|
41
41
|
readonly items: (input?: {
|
|
42
42
|
readonly limit?: number | null | undefined;
|
|
43
43
|
readonly cursor?: string | undefined;
|
|
@@ -63,7 +63,7 @@ export declare const list: ((input?: {
|
|
|
63
63
|
readonly messageCount: number;
|
|
64
64
|
readonly lastActivityAt: string;
|
|
65
65
|
readonly createdAt: string;
|
|
66
|
-
}, 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>;
|
|
66
|
+
}, 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>;
|
|
67
67
|
};
|
|
68
68
|
export declare const create: (input: {
|
|
69
69
|
readonly namespaceId?: string | null | undefined;
|
|
@@ -365,7 +365,7 @@ export declare const listMessages: ((input: {
|
|
|
365
365
|
readonly createdAt: string;
|
|
366
366
|
}[];
|
|
367
367
|
readonly nextCursor: string | null;
|
|
368
|
-
}, 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>;
|
|
368
|
+
}, 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>;
|
|
369
369
|
readonly items: (input: {
|
|
370
370
|
readonly id: string;
|
|
371
371
|
readonly limit?: number | null | undefined;
|
|
@@ -386,7 +386,7 @@ export declare const listMessages: ((input: {
|
|
|
386
386
|
readonly subject: string | null;
|
|
387
387
|
readonly waitReason: "campaign-paused" | "content-review" | "daily-quota" | "domain-health" | "domain-warming" | "onboarding-review" | "rate" | "retry" | "screening-unavailable" | "sending-paused" | "upstream-unavailable" | null;
|
|
388
388
|
readonly createdAt: string;
|
|
389
|
-
}, 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>;
|
|
389
|
+
}, 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>;
|
|
390
390
|
};
|
|
391
391
|
export declare const addTags: (input: {
|
|
392
392
|
readonly id: string;
|
|
@@ -9,11 +9,41 @@ export declare const mailboxesOperations: {
|
|
|
9
9
|
readonly paths: readonly ["id"];
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
readonly
|
|
12
|
+
readonly mailboxesSignImportUploadParts: {
|
|
13
|
+
readonly group: "Mailboxes";
|
|
14
|
+
readonly method: "POST";
|
|
15
|
+
readonly idempotent: false;
|
|
16
|
+
readonly paginated: false;
|
|
17
|
+
readonly call: {
|
|
18
|
+
readonly kind: "pathPayload";
|
|
19
|
+
readonly paths: readonly ["id", "importId", "archiveId"];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly mailboxesCompleteImportUpload: {
|
|
13
23
|
readonly group: "Mailboxes";
|
|
14
24
|
readonly method: "POST";
|
|
15
25
|
readonly idempotent: false;
|
|
16
26
|
readonly paginated: false;
|
|
27
|
+
readonly call: {
|
|
28
|
+
readonly kind: "pathPayload";
|
|
29
|
+
readonly paths: readonly ["id", "importId", "archiveId"];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly mailboxesDiscardImportUpload: {
|
|
33
|
+
readonly group: "Mailboxes";
|
|
34
|
+
readonly method: "DELETE";
|
|
35
|
+
readonly idempotent: false;
|
|
36
|
+
readonly paginated: false;
|
|
37
|
+
readonly call: {
|
|
38
|
+
readonly kind: "path";
|
|
39
|
+
readonly paths: readonly ["id", "importId", "archiveId"];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
readonly mailboxesDiscardImport: {
|
|
43
|
+
readonly group: "Mailboxes";
|
|
44
|
+
readonly method: "DELETE";
|
|
45
|
+
readonly idempotent: false;
|
|
46
|
+
readonly paginated: false;
|
|
17
47
|
readonly call: {
|
|
18
48
|
readonly kind: "path";
|
|
19
49
|
readonly paths: readonly ["id", "importId"];
|
|
@@ -29,6 +59,16 @@ export declare const mailboxesOperations: {
|
|
|
29
59
|
readonly paths: readonly ["id", "importId"];
|
|
30
60
|
};
|
|
31
61
|
};
|
|
62
|
+
readonly mailboxesStartImport: {
|
|
63
|
+
readonly group: "Mailboxes";
|
|
64
|
+
readonly method: "POST";
|
|
65
|
+
readonly idempotent: false;
|
|
66
|
+
readonly paginated: false;
|
|
67
|
+
readonly call: {
|
|
68
|
+
readonly kind: "path";
|
|
69
|
+
readonly paths: readonly ["id", "importId"];
|
|
70
|
+
};
|
|
71
|
+
};
|
|
32
72
|
readonly mailboxesListImports: {
|
|
33
73
|
readonly group: "Mailboxes";
|
|
34
74
|
readonly method: "GET";
|
|
@@ -10,11 +10,53 @@ const mailboxesOperations = {
|
|
|
10
10
|
paths: ["id"]
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
-
|
|
13
|
+
mailboxesSignImportUploadParts: {
|
|
14
|
+
group: "Mailboxes",
|
|
15
|
+
method: "POST",
|
|
16
|
+
idempotent: false,
|
|
17
|
+
paginated: false,
|
|
18
|
+
call: {
|
|
19
|
+
kind: "pathPayload",
|
|
20
|
+
paths: [
|
|
21
|
+
"id",
|
|
22
|
+
"importId",
|
|
23
|
+
"archiveId"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
mailboxesCompleteImportUpload: {
|
|
14
28
|
group: "Mailboxes",
|
|
15
29
|
method: "POST",
|
|
16
30
|
idempotent: false,
|
|
17
31
|
paginated: false,
|
|
32
|
+
call: {
|
|
33
|
+
kind: "pathPayload",
|
|
34
|
+
paths: [
|
|
35
|
+
"id",
|
|
36
|
+
"importId",
|
|
37
|
+
"archiveId"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
mailboxesDiscardImportUpload: {
|
|
42
|
+
group: "Mailboxes",
|
|
43
|
+
method: "DELETE",
|
|
44
|
+
idempotent: false,
|
|
45
|
+
paginated: false,
|
|
46
|
+
call: {
|
|
47
|
+
kind: "path",
|
|
48
|
+
paths: [
|
|
49
|
+
"id",
|
|
50
|
+
"importId",
|
|
51
|
+
"archiveId"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
mailboxesDiscardImport: {
|
|
56
|
+
group: "Mailboxes",
|
|
57
|
+
method: "DELETE",
|
|
58
|
+
idempotent: false,
|
|
59
|
+
paginated: false,
|
|
18
60
|
call: {
|
|
19
61
|
kind: "path",
|
|
20
62
|
paths: ["id", "importId"]
|
|
@@ -30,6 +72,16 @@ const mailboxesOperations = {
|
|
|
30
72
|
paths: ["id", "importId"]
|
|
31
73
|
}
|
|
32
74
|
},
|
|
75
|
+
mailboxesStartImport: {
|
|
76
|
+
group: "Mailboxes",
|
|
77
|
+
method: "POST",
|
|
78
|
+
idempotent: false,
|
|
79
|
+
paginated: false,
|
|
80
|
+
call: {
|
|
81
|
+
kind: "path",
|
|
82
|
+
paths: ["id", "importId"]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
33
85
|
mailboxesListImports: {
|
|
34
86
|
group: "Mailboxes",
|
|
35
87
|
method: "GET",
|
package/dist/effect/email.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare const send: (input: EmailSendInput, options?: SendOptions | undef
|
|
|
13
13
|
readonly topicId?: (string & import("effect/Brand").Brand<"TopicId">) | null;
|
|
14
14
|
}[];
|
|
15
15
|
readonly createdAt: string;
|
|
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("effect/Schema").SchemaError | import("./errors.js").SenderNotReadyError | import("./errors.js").UnauthorizedError | import("./errors.js").ValidationError, import("./client.js").Service>;
|
|
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
17
|
export declare const getOnboardingReview: (input?: never, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailGetOnboardingReview">;
|
|
18
18
|
export declare const reapplyOnboardingReview: (input: {
|
|
19
19
|
readonly expectedGeneration: number;
|
|
@@ -68,6 +68,7 @@ export declare const listDomains: ((input?: {
|
|
|
68
68
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
69
69
|
readonly shared: boolean;
|
|
70
70
|
readonly isDefault: boolean;
|
|
71
|
+
readonly deleting: boolean;
|
|
71
72
|
readonly deliverability: {
|
|
72
73
|
readonly bounceRate: number;
|
|
73
74
|
readonly complaintRate: number;
|
|
@@ -79,7 +80,7 @@ export declare const listDomains: ((input?: {
|
|
|
79
80
|
readonly updatedAt: string;
|
|
80
81
|
}[];
|
|
81
82
|
readonly nextCursor: string | null;
|
|
82
|
-
}, 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>;
|
|
83
|
+
}, 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>;
|
|
83
84
|
readonly items: (input?: {
|
|
84
85
|
readonly limit?: number | null | undefined;
|
|
85
86
|
readonly cursor?: string | undefined;
|
|
@@ -96,6 +97,7 @@ export declare const listDomains: ((input?: {
|
|
|
96
97
|
readonly namespaceId: (string & import("effect/Brand").Brand<"NamespaceId">) | null;
|
|
97
98
|
readonly shared: boolean;
|
|
98
99
|
readonly isDefault: boolean;
|
|
100
|
+
readonly deleting: boolean;
|
|
99
101
|
readonly deliverability: {
|
|
100
102
|
readonly bounceRate: number;
|
|
101
103
|
readonly complaintRate: number;
|
|
@@ -105,7 +107,7 @@ export declare const listDomains: ((input?: {
|
|
|
105
107
|
readonly series: readonly number[];
|
|
106
108
|
readonly createdAt: string;
|
|
107
109
|
readonly updatedAt: string;
|
|
108
|
-
}, 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>;
|
|
110
|
+
}, 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>;
|
|
109
111
|
};
|
|
110
112
|
export declare const getDomainVerification: (input: {
|
|
111
113
|
readonly id: string;
|
|
@@ -142,7 +144,6 @@ export declare const completeDomainConnect: (input: {
|
|
|
142
144
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailCompleteDomainConnect">;
|
|
143
145
|
export declare const enableReceiving: (input: {
|
|
144
146
|
readonly id: string;
|
|
145
|
-
readonly domain: string;
|
|
146
147
|
readonly catchAll?: boolean | null | undefined;
|
|
147
148
|
readonly endpointId?: string | null | undefined;
|
|
148
149
|
readonly addresses?: readonly string[] | null | undefined;
|
|
@@ -189,14 +190,14 @@ export declare const completeCustomTrackingDomainConnect: (input: {
|
|
|
189
190
|
readonly error?: string | null | undefined;
|
|
190
191
|
readonly errorDescription?: string | null | undefined;
|
|
191
192
|
}, options?: import("./internal/operation.js").OperationOptions) => import("./internal/client.js").OperationResult<"emailCompleteCustomTrackingDomainConnect">;
|
|
192
|
-
export declare const addSender: (input: EmailAddSenderInput, options?:
|
|
193
|
+
export declare const addSender: (input: EmailAddSenderInput, options?: import("./internal/operation.js").OperationOptions | undefined) => import("effect/Effect").Effect<{
|
|
193
194
|
readonly id: string & import("effect/Brand").Brand<"EmailSenderId">;
|
|
194
195
|
readonly email: string;
|
|
195
196
|
readonly status: "failed" | "pending" | "verified";
|
|
196
197
|
readonly providerLifecycle: "active" | "deleting" | "failed" | "provisioning";
|
|
197
198
|
readonly providerFailureCode: string | null;
|
|
198
199
|
readonly createdAt: string;
|
|
199
|
-
}, import("./errors.js").ConflictError | import("./errors.js").ExternalServiceError | 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>;
|
|
200
|
+
}, import("./errors.js").ConflictError | import("./errors.js").ExternalServiceError | 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>;
|
|
200
201
|
export declare const listSenders: ((input?: {
|
|
201
202
|
readonly limit?: number | null | undefined;
|
|
202
203
|
readonly cursor?: string | undefined;
|
|
@@ -240,7 +241,7 @@ export declare const listSenders: ((input?: {
|
|
|
240
241
|
readonly updatedAt: string;
|
|
241
242
|
}[];
|
|
242
243
|
readonly nextCursor: string | null;
|
|
243
|
-
}, 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>;
|
|
244
|
+
}, 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>;
|
|
244
245
|
readonly items: (input?: {
|
|
245
246
|
readonly limit?: number | null | undefined;
|
|
246
247
|
readonly cursor?: string | undefined;
|
|
@@ -273,7 +274,7 @@ export declare const listSenders: ((input?: {
|
|
|
273
274
|
readonly isActive: boolean;
|
|
274
275
|
readonly createdAt: string;
|
|
275
276
|
readonly updatedAt: string;
|
|
276
|
-
}, 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>;
|
|
277
|
+
}, 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>;
|
|
277
278
|
};
|
|
278
279
|
export declare const checkSenderVerification: (input: {
|
|
279
280
|
readonly id: string;
|
|
@@ -342,7 +343,7 @@ export declare const listSuppressions: ((input?: {
|
|
|
342
343
|
readonly createdAt: string;
|
|
343
344
|
}[];
|
|
344
345
|
readonly nextCursor: string | null;
|
|
345
|
-
}, 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>;
|
|
346
|
+
}, 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>;
|
|
346
347
|
readonly items: (input?: {
|
|
347
348
|
readonly namespaceId?: string | undefined;
|
|
348
349
|
readonly type?: "bounce" | "complaint" | "manual" | "unsubscribe" | undefined;
|
|
@@ -362,7 +363,7 @@ export declare const listSuppressions: ((input?: {
|
|
|
362
363
|
readonly isActive: boolean;
|
|
363
364
|
readonly expiresAt: string | null;
|
|
364
365
|
readonly createdAt: string;
|
|
365
|
-
}, 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>;
|
|
366
|
+
}, 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>;
|
|
366
367
|
};
|
|
367
368
|
export declare const countSuppressions: (input?: {
|
|
368
369
|
readonly namespaceId?: string | undefined;
|
|
@@ -402,7 +403,7 @@ export declare const listBlocks: ((input?: {
|
|
|
402
403
|
readonly createdAt: string;
|
|
403
404
|
}[];
|
|
404
405
|
readonly nextCursor: string | null;
|
|
405
|
-
}, 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>;
|
|
406
|
+
}, 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>;
|
|
406
407
|
readonly items: (input?: {
|
|
407
408
|
readonly blockType?: "domain" | "email" | undefined;
|
|
408
409
|
readonly isActive?: boolean | null | undefined;
|
|
@@ -419,7 +420,7 @@ export declare const listBlocks: ((input?: {
|
|
|
419
420
|
readonly lastBlockedAt: string | null;
|
|
420
421
|
readonly expiresAt: string | null;
|
|
421
422
|
readonly createdAt: string;
|
|
422
|
-
}, 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>;
|
|
423
|
+
}, 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>;
|
|
423
424
|
};
|
|
424
425
|
export declare const removeBlock: (input: {
|
|
425
426
|
readonly id: string;
|
|
@@ -461,7 +462,7 @@ export declare const getBlockLogs: ((input?: {
|
|
|
461
462
|
readonly blockedAt: string;
|
|
462
463
|
}[];
|
|
463
464
|
readonly nextCursor: string | null;
|
|
464
|
-
}, 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>;
|
|
465
|
+
}, 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>;
|
|
465
466
|
readonly items: (input?: {
|
|
466
467
|
readonly blockedEmailId?: string | undefined;
|
|
467
468
|
readonly fromAddress?: string | undefined;
|
|
@@ -481,7 +482,7 @@ export declare const getBlockLogs: ((input?: {
|
|
|
481
482
|
readonly dkimResult: "fail" | "neutral" | "none" | "pass" | "permerror" | "policy" | "softfail" | "temperror" | null;
|
|
482
483
|
readonly dmarcResult: "fail" | "neutral" | "none" | "pass" | "permerror" | "policy" | "softfail" | "temperror" | null;
|
|
483
484
|
readonly blockedAt: string;
|
|
484
|
-
}, 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>;
|
|
485
|
+
}, 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>;
|
|
485
486
|
};
|
|
486
487
|
export declare const checkBlocked: (input: {
|
|
487
488
|
readonly emailAddress: string;
|
|
@@ -610,7 +611,7 @@ export declare const getForwardingLog: ((input?: {
|
|
|
610
611
|
readonly createdAt: string;
|
|
611
612
|
}[];
|
|
612
613
|
readonly nextCursor: string | null;
|
|
613
|
-
}, 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>;
|
|
614
|
+
}, 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>;
|
|
614
615
|
readonly items: (input?: {
|
|
615
616
|
readonly forwardingRuleId?: string | undefined;
|
|
616
617
|
readonly status?: "failed" | "forwarded" | "pending" | undefined;
|
|
@@ -630,7 +631,7 @@ export declare const getForwardingLog: ((input?: {
|
|
|
630
631
|
readonly messageId: (string & import("effect/Brand").Brand<"MessageId">) | null;
|
|
631
632
|
readonly forwardedAt: string | null;
|
|
632
633
|
readonly createdAt: string;
|
|
633
|
-
}, 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>;
|
|
634
|
+
}, 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>;
|
|
634
635
|
};
|
|
635
636
|
export declare const getDomainWarming: (input: {
|
|
636
637
|
readonly id: string;
|
package/dist/effect/errors.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, WhatsAppChannelError, WhatsAppSetupLinkUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, UnauthorizedError, ValidationError, WhatsAppServiceWindowClosedError, TemplateSourceError, TemplateInUseError, DeliveryUnavailableError, } from "./generated/shared.js";
|
|
2
2
|
export { MediaUploadError } from "../inline-attachments.js";
|
|
3
|
+
export { SamvaTimeoutError } from "./internal/timeout.js";
|
package/dist/effect/errors.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { MediaUploadError } from "../inline-attachments.js";
|
|
2
2
|
import { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError } from "./generated/shared.js";
|
|
3
|
-
|
|
3
|
+
import { SamvaTimeoutError } from "./internal/timeout.js";
|
|
4
|
+
export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SamvaTimeoutError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError };
|
|
@@ -4,12 +4,10 @@ import { ApiKeyAccess, ApiKeyId, ApiKeySecurityMiddleware, BillingProviderError,
|
|
|
4
4
|
export type ApiKeyOwner = {
|
|
5
5
|
readonly id: string;
|
|
6
6
|
readonly name: string;
|
|
7
|
-
readonly email: string;
|
|
8
7
|
};
|
|
9
8
|
export declare const ApiKeyOwner: Schema.Struct<{
|
|
10
9
|
readonly id: Schema.String;
|
|
11
10
|
readonly name: Schema.String;
|
|
12
|
-
readonly email: Schema.String;
|
|
13
11
|
}>;
|
|
14
12
|
export type ApiKeyActivityPage = {
|
|
15
13
|
readonly items: ReadonlyArray<{
|
|
@@ -91,7 +89,6 @@ export declare const ApiKey: Schema.Struct<{
|
|
|
91
89
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
92
90
|
readonly id: Schema.String;
|
|
93
91
|
readonly name: Schema.String;
|
|
94
|
-
readonly email: Schema.String;
|
|
95
92
|
}>, Schema.Null]>;
|
|
96
93
|
}>;
|
|
97
94
|
export type ApiKeyWithSecret = {
|
|
@@ -152,7 +149,6 @@ export declare const ApiKeyWithSecret: Schema.Struct<{
|
|
|
152
149
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
153
150
|
readonly id: Schema.String;
|
|
154
151
|
readonly name: Schema.String;
|
|
155
|
-
readonly email: Schema.String;
|
|
156
152
|
}>, Schema.Null]>;
|
|
157
153
|
}>;
|
|
158
154
|
export type ApiKeyPage = {
|
|
@@ -203,7 +199,6 @@ export declare const ApiKeyPage: Schema.Struct<{
|
|
|
203
199
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
204
200
|
readonly id: Schema.String;
|
|
205
201
|
readonly name: Schema.String;
|
|
206
|
-
readonly email: Schema.String;
|
|
207
202
|
}>, Schema.Null]>;
|
|
208
203
|
}>>;
|
|
209
204
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -267,7 +262,6 @@ export declare const ApiKeysList200: Schema.Struct<{
|
|
|
267
262
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
268
263
|
readonly id: Schema.String;
|
|
269
264
|
readonly name: Schema.String;
|
|
270
|
-
readonly email: Schema.String;
|
|
271
265
|
}>, Schema.Null]>;
|
|
272
266
|
}>>;
|
|
273
267
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -367,7 +361,6 @@ export declare const ApiKeysCreate201: Schema.Struct<{
|
|
|
367
361
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
368
362
|
readonly id: Schema.String;
|
|
369
363
|
readonly name: Schema.String;
|
|
370
|
-
readonly email: Schema.String;
|
|
371
364
|
}>, Schema.Null]>;
|
|
372
365
|
}>;
|
|
373
366
|
export type ApiKeysCreate400 = MalformedRequestError;
|
|
@@ -440,7 +433,6 @@ export declare const ApiKeysGet200: Schema.Struct<{
|
|
|
440
433
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
441
434
|
readonly id: Schema.String;
|
|
442
435
|
readonly name: Schema.String;
|
|
443
|
-
readonly email: Schema.String;
|
|
444
436
|
}>, Schema.Null]>;
|
|
445
437
|
}>;
|
|
446
438
|
export type ApiKeysGet400 = MalformedRequestError;
|
|
@@ -515,7 +507,6 @@ export declare const ApiKeysUpdate200: Schema.Struct<{
|
|
|
515
507
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
516
508
|
readonly id: Schema.String;
|
|
517
509
|
readonly name: Schema.String;
|
|
518
|
-
readonly email: Schema.String;
|
|
519
510
|
}>, Schema.Null]>;
|
|
520
511
|
}>;
|
|
521
512
|
export type ApiKeysUpdate400 = MalformedRequestError;
|
|
@@ -648,7 +639,6 @@ export declare const ApiKeysRotate200: Schema.Struct<{
|
|
|
648
639
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
649
640
|
readonly id: Schema.String;
|
|
650
641
|
readonly name: Schema.String;
|
|
651
|
-
readonly email: Schema.String;
|
|
652
642
|
}>, Schema.Null]>;
|
|
653
643
|
}>;
|
|
654
644
|
export type ApiKeysRotate400 = MalformedRequestError;
|
|
@@ -786,7 +776,6 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
|
|
|
786
776
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
787
777
|
readonly id: Schema.String;
|
|
788
778
|
readonly name: Schema.String;
|
|
789
|
-
readonly email: Schema.String;
|
|
790
779
|
}>, Schema.Null]>;
|
|
791
780
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<BillingProviderError, {
|
|
792
781
|
readonly _tag: "BillingProviderError";
|
|
@@ -985,7 +974,6 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
|
|
|
985
974
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
986
975
|
readonly id: Schema.String;
|
|
987
976
|
readonly name: Schema.String;
|
|
988
|
-
readonly email: Schema.String;
|
|
989
977
|
}>, Schema.Null]>;
|
|
990
978
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
991
979
|
readonly _tag: "ForbiddenError";
|
|
@@ -1365,7 +1353,6 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
|
|
|
1365
1353
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
1366
1354
|
readonly id: Schema.String;
|
|
1367
1355
|
readonly name: Schema.String;
|
|
1368
|
-
readonly email: Schema.String;
|
|
1369
1356
|
}>, Schema.Null]>;
|
|
1370
1357
|
}>>;
|
|
1371
1358
|
readonly nextCursor: Schema.Union<readonly [Schema.String, Schema.Null]>;
|
|
@@ -1610,7 +1597,6 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
|
|
|
1610
1597
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
1611
1598
|
readonly id: Schema.String;
|
|
1612
1599
|
readonly name: Schema.String;
|
|
1613
|
-
readonly email: Schema.String;
|
|
1614
1600
|
}>, Schema.Null]>;
|
|
1615
1601
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1616
1602
|
readonly _tag: "ForbiddenError";
|
|
@@ -1760,7 +1746,6 @@ declare const APIKeysGroup_base: HttpApiGroup.HttpApiGroup<"API Keys", HttpApiEn
|
|
|
1760
1746
|
readonly owner: Schema.Union<readonly [Schema.Struct<{
|
|
1761
1747
|
readonly id: Schema.String;
|
|
1762
1748
|
readonly name: Schema.String;
|
|
1763
|
-
readonly email: Schema.String;
|
|
1764
1749
|
}>, Schema.Null]>;
|
|
1765
1750
|
}>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
1766
1751
|
readonly _tag: "ForbiddenError";
|
|
@@ -5,8 +5,7 @@ import * as Schema from "effect/Schema";
|
|
|
5
5
|
// src/effect/generated/api-keys.ts
|
|
6
6
|
const ApiKeyOwner = /* @__PURE__ */ (() => Schema.Struct({
|
|
7
7
|
id: Schema.String,
|
|
8
|
-
name: Schema.String
|
|
9
|
-
email: Schema.String
|
|
8
|
+
name: Schema.String
|
|
10
9
|
}).annotate({ identifier: "ApiKeyOwner" }))();
|
|
11
10
|
const ApiKeyActivityPage = /* @__PURE__ */ (() => Schema.Struct({
|
|
12
11
|
items: Schema.Array(Schema.Struct({
|