samva 0.50.0 → 0.52.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 +49 -5
- package/README.md +137 -7
- package/dist/client/sdk.gen.d.ts +78 -38
- package/dist/client/sdk.gen.js +1554 -967
- package/dist/client/types.gen.d.ts +541 -291
- package/dist/effect/agents.d.ts +4 -4
- package/dist/effect/api-keys.d.ts +4 -6
- package/dist/effect/campaigns.d.ts +222 -230
- 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/integrations-catalog.d.ts +1 -1
- package/dist/effect/descriptors/integrations-catalog.js +1 -1
- package/dist/effect/descriptors/integrations.d.ts +1 -1
- package/dist/effect/descriptors/integrations.js +1 -1
- package/dist/effect/descriptors/logs.d.ts +21 -0
- package/dist/effect/descriptors/logs.js +23 -0
- package/dist/effect/descriptors/whats-app.d.ts +1 -1
- package/dist/effect/descriptors/whats-app.js +1 -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/agents.js +4 -4
- 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 +18 -68
- package/dist/effect/generated/campaigns.js +5 -15
- package/dist/effect/generated/email.d.ts +10 -3
- package/dist/effect/generated/email.js +6 -5
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +93 -49
- package/dist/effect/generated/integrations-catalog.js +17 -28
- package/dist/effect/generated/integrations.d.ts +20 -40
- package/dist/effect/generated/integrations.js +9 -13
- package/dist/effect/generated/journeys.d.ts +61 -13
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/logs.d.ts +2311 -0
- package/dist/effect/generated/logs.js +312 -0
- package/dist/effect/generated/mailboxes.d.ts +30 -24
- package/dist/effect/generated/mailboxes.js +25 -25
- package/dist/effect/generated/messages.d.ts +1 -882
- package/dist/effect/generated/messages.js +4 -243
- package/dist/effect/generated/namespaces.js +1 -1
- package/dist/effect/generated/newsletter-domains.d.ts +61 -13
- package/dist/effect/generated/newsletter-domains.js +5 -5
- package/dist/effect/generated/newsletter-issues.d.ts +166 -34
- package/dist/effect/generated/newsletter-issues.js +12 -12
- package/dist/effect/generated/newsletters.d.ts +76 -16
- package/dist/effect/generated/newsletters.js +6 -6
- package/dist/effect/generated/organizations.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 +2 -4
- package/dist/effect/generated/shared.d.ts +1139 -257
- package/dist/effect/generated/shared.js +323 -83
- package/dist/effect/generated/subscriptions.d.ts +4 -4
- package/dist/effect/generated/subscriptions.js +2 -6
- package/dist/effect/generated/template-registrations.d.ts +46 -10
- package/dist/effect/generated/template-registrations.js +4 -4
- package/dist/effect/generated/templates.js +2 -2
- package/dist/effect/generated/whats-app-flows.d.ts +151 -31
- package/dist/effect/generated/whats-app-flows.js +11 -11
- package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
- package/dist/effect/generated/whats-app-setup-links.js +5 -5
- package/dist/effect/generated/whats-app.d.ts +187 -65
- package/dist/effect/generated/whats-app.js +18 -24
- package/dist/effect/generated-metadata.d.ts +15 -3
- package/dist/effect/generated-metadata.js +375 -349
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +3 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +42 -10
- package/dist/effect/internal/client.d.ts +19 -2
- package/dist/effect/internal/client.js +35 -5
- package/dist/effect/internal/email-sender.d.ts +4 -4
- package/dist/effect/internal/email-sender.js +5 -3
- package/dist/effect/internal/log-events.d.ts +19 -0
- package/dist/effect/internal/log-events.js +53 -0
- package/dist/effect/internal/mailbox-events.d.ts +6 -2
- package/dist/effect/internal/mailbox-events.js +4 -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 +4 -4
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +184 -178
- package/dist/effect/mailboxes.js +1 -1
- 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/effect/whatsapp.d.ts +73 -3
- package/dist/index.js +2 -2
- package/dist/mailbox-events.d.ts +50 -3
- package/dist/mailbox-events.js +38 -19
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +8 -1
- package/dist/promises/client.js +15 -9
- package/dist/promises/errors.gen.d.ts +14 -1
- package/dist/promises/errors.gen.js +158 -36
- 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-id.d.ts +3 -0
- package/dist/request-id.js +7 -0
- package/dist/request-policy.d.ts +9 -0
- package/dist/request-policy.js +16 -1
- package/dist/service-map.d.ts +14 -3
- package/package.json +6 -2
|
@@ -57,9 +57,9 @@ export declare const isNotFoundError: (error: unknown) => error is ResourceNotFo
|
|
|
57
57
|
export declare const isConflictError: (error: unknown) => error is ConflictError;
|
|
58
58
|
export declare const isThrottlingError: (error: unknown) => error is CategoryHandlerError<"throttling">;
|
|
59
59
|
export declare const isBillingError: (error: unknown) => error is PaymentRequiredError;
|
|
60
|
-
/** True for transient failures, including raw request-transport errors. */
|
|
60
|
+
/** True for transient failures, including raw request-transport errors and attempt timeouts. */
|
|
61
61
|
export declare const isTransient: (error: unknown) => boolean;
|
|
62
|
-
/** True when an error is declared safe to retry (throttling / transient / transport). */
|
|
62
|
+
/** True when an error is declared safe to retry (throttling / transient / transport / timeout). */
|
|
63
63
|
export declare const isRetryable: (error: unknown) => boolean;
|
|
64
64
|
/**
|
|
65
65
|
* Catch every error in `category`. The handler receives the category's error
|
|
@@ -50,10 +50,12 @@ const isRequestTransportError = (error) => {
|
|
|
50
50
|
const reason = error.reason;
|
|
51
51
|
return Predicate$1.isObject(reason) && Predicate$1.isTagged(reason, "TransportError");
|
|
52
52
|
};
|
|
53
|
-
/**
|
|
54
|
-
const
|
|
55
|
-
/** True
|
|
56
|
-
const
|
|
53
|
+
/** A request attempt that outlasted its `timeoutMs`; it fails like a lost response. */
|
|
54
|
+
const isAttemptTimeout = (error) => Predicate$1.isTagged(error, "SamvaTimeoutError");
|
|
55
|
+
/** True for transient failures, including raw request-transport errors and attempt timeouts. */
|
|
56
|
+
const isTransient = (error) => hasCategory(error, "transient") || isRequestTransportError(error) || isAttemptTimeout(error);
|
|
57
|
+
/** True when an error is declared safe to retry (throttling / transient / transport / timeout). */
|
|
58
|
+
const isRetryable = (error) => isRetryableError(error) || isRequestTransportError(error) || isAttemptTimeout(error);
|
|
57
59
|
/**
|
|
58
60
|
* Catch every error in `category`. The handler receives the category's error
|
|
59
61
|
* union — including reason- and retryability-based errors where their fields place them in the
|
|
@@ -29,7 +29,7 @@ export declare const list: ((input?: {
|
|
|
29
29
|
readonly updatedAt: string;
|
|
30
30
|
}[];
|
|
31
31
|
readonly nextCursor: string | null;
|
|
32
|
-
}, 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>;
|
|
32
|
+
}, 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>;
|
|
33
33
|
readonly items: (input?: {
|
|
34
34
|
readonly limit?: number | null | undefined;
|
|
35
35
|
readonly cursor?: string | undefined;
|
|
@@ -52,7 +52,7 @@ export declare const list: ((input?: {
|
|
|
52
52
|
readonly isActive: boolean;
|
|
53
53
|
readonly createdAt: string;
|
|
54
54
|
readonly updatedAt: string;
|
|
55
|
-
}, 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>;
|
|
55
|
+
}, 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>;
|
|
56
56
|
};
|
|
57
57
|
export declare const create: (input: {
|
|
58
58
|
readonly name: string;
|
|
@@ -187,7 +187,7 @@ export declare const getMembers: ((input: {
|
|
|
187
187
|
} | null;
|
|
188
188
|
}[];
|
|
189
189
|
readonly nextCursor: string | null;
|
|
190
|
-
}, 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>;
|
|
190
|
+
}, 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>;
|
|
191
191
|
readonly items: (input: {
|
|
192
192
|
readonly id: string;
|
|
193
193
|
readonly limit?: number | null | undefined;
|
|
@@ -225,7 +225,7 @@ export declare const getMembers: ((input: {
|
|
|
225
225
|
}[];
|
|
226
226
|
}[] | null;
|
|
227
227
|
} | null;
|
|
228
|
-
}, 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>;
|
|
228
|
+
}, 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>;
|
|
229
229
|
};
|
|
230
230
|
export declare const evaluateDynamic: (input: {
|
|
231
231
|
readonly id: string;
|
|
@@ -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;
|
|
@@ -146,7 +146,7 @@ export declare const integrationCatalogOperations: {
|
|
|
146
146
|
readonly group: "Integrations catalog";
|
|
147
147
|
readonly method: "GET";
|
|
148
148
|
readonly idempotent: false;
|
|
149
|
-
readonly paginated:
|
|
149
|
+
readonly paginated: true;
|
|
150
150
|
readonly call: {
|
|
151
151
|
readonly kind: "params";
|
|
152
152
|
};
|
|
@@ -21,7 +21,7 @@ export declare const integrationsOperations: {
|
|
|
21
21
|
readonly group: "Integrations";
|
|
22
22
|
readonly method: "GET";
|
|
23
23
|
readonly idempotent: false;
|
|
24
|
-
readonly paginated:
|
|
24
|
+
readonly paginated: true;
|
|
25
25
|
readonly call: {
|
|
26
26
|
readonly kind: "pathParams";
|
|
27
27
|
readonly paths: readonly ["integrationId"];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const logsOperations: {
|
|
2
|
+
readonly logsList: {
|
|
3
|
+
readonly group: "Logs";
|
|
4
|
+
readonly method: "GET";
|
|
5
|
+
readonly idempotent: false;
|
|
6
|
+
readonly paginated: true;
|
|
7
|
+
readonly call: {
|
|
8
|
+
readonly kind: "params";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
readonly logsGet: {
|
|
12
|
+
readonly group: "Logs";
|
|
13
|
+
readonly method: "GET";
|
|
14
|
+
readonly idempotent: false;
|
|
15
|
+
readonly paginated: false;
|
|
16
|
+
readonly call: {
|
|
17
|
+
readonly kind: "path";
|
|
18
|
+
readonly paths: readonly ["id"];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/effect/descriptors/logs.ts
|
|
2
|
+
const logsOperations = {
|
|
3
|
+
logsList: {
|
|
4
|
+
group: "Logs",
|
|
5
|
+
method: "GET",
|
|
6
|
+
idempotent: false,
|
|
7
|
+
paginated: true,
|
|
8
|
+
call: { kind: "params" }
|
|
9
|
+
},
|
|
10
|
+
logsGet: {
|
|
11
|
+
group: "Logs",
|
|
12
|
+
method: "GET",
|
|
13
|
+
idempotent: false,
|
|
14
|
+
paginated: false,
|
|
15
|
+
call: {
|
|
16
|
+
kind: "path",
|
|
17
|
+
paths: ["id"]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export { logsOperations };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=logs.js.map
|
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 };
|
|
@@ -353,7 +353,7 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
353
353
|
AgentsCreate500,
|
|
354
354
|
AgentsCreate504.pipe(HttpApiSchema.status(504))
|
|
355
355
|
]
|
|
356
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.create").annotate(OpenApi.Summary, "Create an agent").annotate(OpenApi.Description, "Creates an agent with a draft and returns it with status 201. The agent answers nothing until its draft is published. The default policy requires a person to approve replies and final actions. The namespace is set at creation and cannot change."), HttpApiEndpoint.get("agentsGet", "/v1/agents/:id", {
|
|
356
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.create").annotate(OpenApi.Summary, "Create an agent").annotate(OpenApi.Description, "Creates an agent with a draft and returns it with status 201. The agent answers nothing until its draft is published. The default policy requires a person to approve replies and final actions. API keys need organization-wide reach to create with a custom policy. The namespace is set at creation and cannot change."), HttpApiEndpoint.get("agentsGet", "/v1/agents/:id", {
|
|
357
357
|
params: AgentsGetPathParams,
|
|
358
358
|
success: AgentsGet200,
|
|
359
359
|
error: [
|
|
@@ -418,7 +418,7 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
418
418
|
AgentsReplaceDraft500,
|
|
419
419
|
AgentsReplaceDraft504.pipe(HttpApiSchema.status(504))
|
|
420
420
|
]
|
|
421
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.replaceDraft").annotate(OpenApi.Summary, "Replace an agent draft").annotate(OpenApi.Description, "Replaces the whole draft and returns the agent with a new revision. The request names the revision it read; a stale revision returns 409. Published versions, and the conversations answered on them, do not change. An endpoint answers for one agent at a time: a draft that names an endpoint another agent answers on returns 409. A draft that pins a catalog model returns 402 unless your plan is Growth or Scale, and 422 when the model is not available or does not support the reasoning level."), HttpApiEndpoint.post("agentsPublish", "/v1/agents/:id/publish", {
|
|
421
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.replaceDraft").annotate(OpenApi.Summary, "Replace an agent draft").annotate(OpenApi.Description, "Replaces the whole draft and returns the agent with a new revision. The request names the revision it read; a stale revision returns 409. API keys need organization-wide reach to change the draft policy. Published versions, and the conversations answered on them, do not change. An endpoint answers for one agent at a time: a draft that names an endpoint another agent answers on returns 409. A draft that pins a catalog model returns 402 unless your plan is Growth or Scale, and 422 when the model is not available or does not support the reasoning level."), HttpApiEndpoint.post("agentsPublish", "/v1/agents/:id/publish", {
|
|
422
422
|
params: AgentsPublishPathParams,
|
|
423
423
|
payload: AgentsPublishRequestJson,
|
|
424
424
|
success: AgentsPublish200,
|
|
@@ -433,7 +433,7 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
433
433
|
AgentsPublish500,
|
|
434
434
|
AgentsPublish504.pipe(HttpApiSchema.status(504))
|
|
435
435
|
]
|
|
436
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publish").annotate(OpenApi.Summary, "Publish an agent").annotate(OpenApi.Description, "Publishes the draft as the next immutable version. Each conversation moves to it from its next agent reply; a reply already running finishes on the version it started on. The request names the revision it read; a stale revision returns 409. Publishing a draft identical to the newest version changes nothing and answers published false. An endpoint answers for one agent at a time: publishing a draft whose endpoint another agent answers on returns 409. The published policy governs review of each proposed action."), HttpApiEndpoint.post("agentsRerunTests", "/v1/agents/:id/tests/rerun", {
|
|
436
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publish").annotate(OpenApi.Summary, "Publish an agent").annotate(OpenApi.Description, "Publishes the draft as the next immutable version. API keys need organization-wide reach to publish a policy change. Each conversation moves to it from its next agent reply; a reply already running finishes on the version it started on. The request names the revision it read; a stale revision returns 409. Publishing a draft identical to the newest version changes nothing and answers published false. An endpoint answers for one agent at a time: publishing a draft whose endpoint another agent answers on returns 409. The published policy governs review of each proposed action."), HttpApiEndpoint.post("agentsRerunTests", "/v1/agents/:id/tests/rerun", {
|
|
437
437
|
params: AgentsRerunTestsPathParams,
|
|
438
438
|
payload: AgentsRerunTestsRequestJson,
|
|
439
439
|
success: AgentsRerunTests200,
|
|
@@ -474,7 +474,7 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
474
474
|
AgentsPublishVersion500,
|
|
475
475
|
AgentsPublishVersion504.pipe(HttpApiSchema.status(504))
|
|
476
476
|
]
|
|
477
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publishVersion").annotate(OpenApi.Summary, "Publish an agent module").annotate(OpenApi.Description, "Publishes a self-contained JavaScript module and its manifest as the next immutable version. Source is stored by its SHA-256 digest without execution. The revision protects the draft read by the publisher; a stale revision returns 409. Publishing the same manifest, source, and definition again returns published false. The manifest controls the model, endpoints, integration grants, and action policy. Draft instructions and knowledge remain editable builder data; the hosted runtime reads instructions and tools from the published module."), HttpApiEndpoint.get("agentsGetVersion", "/v1/agents/:id/versions/:version", {
|
|
477
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publishVersion").annotate(OpenApi.Summary, "Publish an agent module").annotate(OpenApi.Description, "Publishes a self-contained JavaScript module and its manifest as the next immutable version. API keys need organization-wide reach to publish a policy change. Source is stored by its SHA-256 digest without execution. The revision protects the draft read by the publisher; a stale revision returns 409. Publishing the same manifest, source, and definition again returns published false. The manifest controls the model, endpoints, integration grants, and action policy. Draft instructions and knowledge remain editable builder data; the hosted runtime reads instructions and tools from the published module."), HttpApiEndpoint.get("agentsGetVersion", "/v1/agents/:id/versions/:version", {
|
|
478
478
|
params: AgentsGetVersionPathParams,
|
|
479
479
|
success: AgentsGetVersion200,
|
|
480
480
|
error: [
|