samva 0.50.0 → 0.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/AGENTS.md +44 -3
  2. package/README.md +136 -7
  3. package/dist/client/sdk.gen.d.ts +12 -11
  4. package/dist/client/sdk.gen.js +1399 -940
  5. package/dist/client/types.gen.d.ts +21 -10
  6. package/dist/effect/agents.d.ts +4 -4
  7. package/dist/effect/api-keys.d.ts +4 -6
  8. package/dist/effect/campaigns.d.ts +166 -174
  9. package/dist/effect/categories.d.ts +2 -2
  10. package/dist/effect/categories.js +6 -4
  11. package/dist/effect/contact-groups.d.ts +4 -4
  12. package/dist/effect/contacts.d.ts +8 -8
  13. package/dist/effect/conversations.d.ts +4 -4
  14. package/dist/effect/email.d.ts +17 -16
  15. package/dist/effect/errors.d.ts +1 -0
  16. package/dist/effect/errors.js +2 -1
  17. package/dist/effect/generated/api-keys.d.ts +0 -15
  18. package/dist/effect/generated/api-keys.js +1 -2
  19. package/dist/effect/generated/campaigns.d.ts +0 -62
  20. package/dist/effect/generated/campaigns.js +3 -9
  21. package/dist/effect/generated/email.d.ts +10 -3
  22. package/dist/effect/generated/email.js +3 -2
  23. package/dist/effect/generated/mailboxes.js +6 -6
  24. package/dist/effect/generated/namespaces.js +1 -1
  25. package/dist/effect/generated/policies.js +2 -2
  26. package/dist/effect/generated/scheduled-messages.d.ts +0 -26
  27. package/dist/effect/generated/scheduled-messages.js +1 -3
  28. package/dist/effect/generated/shared.d.ts +1 -0
  29. package/dist/effect/generated/shared.js +2 -1
  30. package/dist/effect/index.js +2 -1
  31. package/dist/effect/integrations.d.ts +2 -2
  32. package/dist/effect/internal/client.d.ts +19 -2
  33. package/dist/effect/internal/client.js +10 -2
  34. package/dist/effect/internal/email-sender.d.ts +4 -4
  35. package/dist/effect/internal/email-sender.js +5 -3
  36. package/dist/effect/internal/operation.d.ts +11 -0
  37. package/dist/effect/internal/operation.js +10 -6
  38. package/dist/effect/internal/send.d.ts +4 -0
  39. package/dist/effect/internal/send.js +11 -8
  40. package/dist/effect/internal/timeout.d.ts +16 -0
  41. package/dist/effect/internal/timeout.js +20 -0
  42. package/dist/effect/journeys.d.ts +152 -152
  43. package/dist/effect/mailboxes.d.ts +28 -28
  44. package/dist/effect/messages.d.ts +5 -5
  45. package/dist/effect/namespaces.d.ts +4 -4
  46. package/dist/effect/newsletter-domains.d.ts +2 -2
  47. package/dist/effect/operations.d.ts +2 -2
  48. package/dist/effect/scheduled-messages.d.ts +2 -6
  49. package/dist/effect/templates.d.ts +6 -6
  50. package/dist/effect/topics.d.ts +4 -4
  51. package/dist/effect/webhooks.d.ts +4 -4
  52. package/dist/effect/whatsapp-setup-links.d.ts +2 -2
  53. package/dist/index.js +2 -2
  54. package/dist/package.js +1 -1
  55. package/dist/promises/client.d.ts +5 -0
  56. package/dist/promises/client.js +12 -8
  57. package/dist/promises/errors.gen.d.ts +12 -1
  58. package/dist/promises/errors.gen.js +21 -2
  59. package/dist/promises/index.js +2 -2
  60. package/dist/promises/request.d.ts +31 -2
  61. package/dist/promises/request.js +42 -7
  62. package/dist/request-policy.d.ts +9 -0
  63. package/dist/request-policy.js +16 -1
  64. package/package.json +2 -2
@@ -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;
@@ -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?: SendOptions | undefined) => import("effect/Effect").Effect<{
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;
@@ -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";
@@ -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
- export { AnalyticsQueryError, BillingProviderError, BrandAddressRequiredError, CampaignFooterRequiredError, ConflictError, CredentialsError, DeliveryUnavailableError, EmailChannelError, ExternalServiceError, FlagDisabledError, ForbiddenError, FromAddressRequiredError, GatewayTimeoutError, InternalError, MailboxSendConflictError, MailboxSendRefusedError, MalformedRequestError, MediaUploadError, OnboardingReviewRequiredError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SenderNotReadyError, ServiceUnavailableError, TemplateInUseError, TemplateSourceError, UnauthorizedError, ValidationError, WhatsAppChannelError, WhatsAppServiceWindowClosedError, WhatsAppSetupLinkUnavailableError };
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({