samva 0.28.0 → 0.29.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 +8 -0
  2. package/README.md +2 -0
  3. package/dist/client/sdk.gen.d.ts +156 -1
  4. package/dist/client/sdk.gen.js +475 -1
  5. package/dist/client/types.gen.d.ts +1653 -183
  6. package/dist/effect/campaigns.d.ts +32 -0
  7. package/dist/effect/generated/agents.js +36 -36
  8. package/dist/effect/generated/analytics.js +24 -24
  9. package/dist/effect/generated/api-keys.js +29 -29
  10. package/dist/effect/generated/attachments.js +13 -13
  11. package/dist/effect/generated/brands.js +13 -13
  12. package/dist/effect/generated/campaigns.d.ts +178 -60
  13. package/dist/effect/generated/campaigns.js +92 -104
  14. package/dist/effect/generated/contact-events.js +5 -5
  15. package/dist/effect/generated/contact-groups.js +38 -38
  16. package/dist/effect/generated/contacts.js +93 -93
  17. package/dist/effect/generated/conversations.js +38 -38
  18. package/dist/effect/generated/custom-fields.js +15 -15
  19. package/dist/effect/generated/email.js +225 -225
  20. package/dist/effect/generated/events.js +5 -5
  21. package/dist/effect/generated/extension-installations.js +35 -35
  22. package/dist/effect/generated/extensions.js +24 -24
  23. package/dist/effect/generated/feedback.js +6 -6
  24. package/dist/effect/generated/index.d.ts +5 -1
  25. package/dist/effect/generated/journeys.js +67 -67
  26. package/dist/effect/generated/mailboxes.js +286 -286
  27. package/dist/effect/generated/media.js +16 -16
  28. package/dist/effect/generated/messages.js +65 -65
  29. package/dist/effect/generated/namespaces.js +27 -27
  30. package/dist/effect/generated/operations.js +6 -6
  31. package/dist/effect/generated/organizations.js +19 -19
  32. package/dist/effect/generated/publication-domains.d.ts +548 -0
  33. package/dist/effect/generated/publication-domains.js +163 -0
  34. package/dist/effect/generated/scheduled-messages.js +25 -25
  35. package/dist/effect/generated/shared.d.ts +142 -30
  36. package/dist/effect/generated/shared.js +356 -328
  37. package/dist/effect/generated/subscriptions.js +10 -10
  38. package/dist/effect/generated/templates.d.ts +172 -15
  39. package/dist/effect/generated/templates.js +207 -162
  40. package/dist/effect/generated/topic-forms.js +21 -21
  41. package/dist/effect/generated/topic-issues.d.ts +2995 -0
  42. package/dist/effect/generated/topic-issues.js +985 -0
  43. package/dist/effect/generated/topics.d.ts +61 -1
  44. package/dist/effect/generated/topics.js +39 -31
  45. package/dist/effect/generated/webhooks.js +50 -50
  46. package/dist/effect/generated/whoami.js +10 -10
  47. package/dist/effect/generated-metadata.d.ts +70 -0
  48. package/dist/effect/generated-metadata.js +57 -13
  49. package/dist/effect/index.d.ts +2 -0
  50. package/dist/effect/index.js +3 -1
  51. package/dist/effect/journeys.d.ts +112 -112
  52. package/dist/effect/mailboxes.d.ts +78 -78
  53. package/dist/effect/publication-domains.d.ts +14 -0
  54. package/dist/effect/publication-domains.js +17 -0
  55. package/dist/effect/topic-issues.d.ts +57 -0
  56. package/dist/effect/topic-issues.js +33 -0
  57. package/dist/effect/topics.d.ts +6 -2
  58. package/dist/package.js +1 -1
  59. package/dist/promises/index.d.ts +5 -1
  60. package/dist/promises/index.js +5 -1
  61. package/dist/promises/types.gen.d.ts +1 -1
  62. package/dist/service-map.d.ts +74 -0
  63. package/dist/service-map.js +56 -0
  64. package/package.json +11 -3
@@ -2,17 +2,17 @@ import { ApiKeySecurityMiddleware, ForbiddenError, GatewayTimeoutError, Internal
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  //#region src/effect/generated/media.ts
5
- const MediaUploadInstruction = /* @__PURE__ */ Schema.Struct({
5
+ const MediaUploadInstruction = /* @__PURE__ */ (() => Schema.Struct({
6
6
  url: Schema.String,
7
7
  method: Schema.Literal("PUT"),
8
8
  headers: Schema.Record(Schema.String, Schema.String),
9
9
  expiresAt: Schema.String
10
- }).annotate({ identifier: "MediaUploadInstruction" });
11
- const MediaDownloadUrl = /* @__PURE__ */ Schema.Struct({
10
+ }).annotate({ identifier: "MediaUploadInstruction" }))();
11
+ const MediaDownloadUrl = /* @__PURE__ */ (() => Schema.Struct({
12
12
  url: Schema.String,
13
13
  expiresAt: Schema.String
14
- }).annotate({ identifier: "MediaDownloadUrl" });
15
- const Media = /* @__PURE__ */ Schema.Struct({
14
+ }).annotate({ identifier: "MediaDownloadUrl" }))();
15
+ const Media = /* @__PURE__ */ (() => Schema.Struct({
16
16
  id: MediaId,
17
17
  organizationId: OrganizationId,
18
18
  status: Schema.Union([
@@ -38,8 +38,8 @@ const Media = /* @__PURE__ */ Schema.Struct({
38
38
  expiresAt: Schema.Union([Schema.String, Schema.Null]),
39
39
  createdAt: Schema.String,
40
40
  confirmedAt: Schema.Union([Schema.String, Schema.Null])
41
- }).annotate({ identifier: "Media" });
42
- const CreatedMedia = /* @__PURE__ */ Schema.Struct({
41
+ }).annotate({ identifier: "Media" }))();
42
+ const CreatedMedia = /* @__PURE__ */ (() => Schema.Struct({
43
43
  id: MediaId,
44
44
  organizationId: OrganizationId,
45
45
  status: Schema.Union([
@@ -66,12 +66,12 @@ const CreatedMedia = /* @__PURE__ */ Schema.Struct({
66
66
  createdAt: Schema.String,
67
67
  confirmedAt: Schema.Union([Schema.String, Schema.Null]),
68
68
  upload: MediaUploadInstruction
69
- }).annotate({ identifier: "CreatedMedia" });
70
- const CompletedMedia = /* @__PURE__ */ Schema.Struct({
69
+ }).annotate({ identifier: "CreatedMedia" }))();
70
+ const CompletedMedia = /* @__PURE__ */ (() => Schema.Struct({
71
71
  media: Media,
72
72
  downloadUrl: Schema.String
73
- }).annotate({ identifier: "CompletedMedia" });
74
- const MediaCreateRequestJson = /* @__PURE__ */ Schema.Struct({
73
+ }).annotate({ identifier: "CompletedMedia" }))();
74
+ const MediaCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
75
75
  filename: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(255).annotate({ expected: "a string with at most 255 code points" })).check(Schema.isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
76
76
  contentType: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(127).annotate({ expected: "a string with at most 127 code points" })).check(Schema.isMaxLength(127).annotate({ expected: "a value with a length of at most 127" })),
77
77
  sizeBytes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(26214400).annotate({ expected: "a value less than or equal to 26214400" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })),
@@ -81,14 +81,14 @@ const MediaCreateRequestJson = /* @__PURE__ */ Schema.Struct({
81
81
  Schema.Literal("review_evidence")
82
82
  ]),
83
83
  checksumSha256: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
84
- });
84
+ }))();
85
85
  const MediaCreate201 = CreatedMedia;
86
86
  const MediaCreate401 = UnauthorizedError;
87
87
  const MediaCreate403 = ForbiddenError;
88
88
  const MediaCreate422 = ValidationError;
89
89
  const MediaCreate500 = InternalError;
90
90
  const MediaCreate504 = GatewayTimeoutError;
91
- const MediaGetByIdPathParams = /* @__PURE__ */ Schema.Struct({ id: MediaId });
91
+ const MediaGetByIdPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MediaId }))();
92
92
  const MediaGetById200 = Media;
93
93
  const MediaGetById401 = UnauthorizedError;
94
94
  const MediaGetById403 = ForbiddenError;
@@ -96,7 +96,7 @@ const MediaGetById404 = ResourceNotFoundError;
96
96
  const MediaGetById422 = ValidationError;
97
97
  const MediaGetById500 = InternalError;
98
98
  const MediaGetById504 = GatewayTimeoutError;
99
- const MediaRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: MediaId });
99
+ const MediaRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MediaId }))();
100
100
  const MediaRemove200 = SuccessResponse;
101
101
  const MediaRemove401 = UnauthorizedError;
102
102
  const MediaRemove403 = ForbiddenError;
@@ -104,7 +104,7 @@ const MediaRemove404 = ResourceNotFoundError;
104
104
  const MediaRemove422 = ValidationError;
105
105
  const MediaRemove500 = InternalError;
106
106
  const MediaRemove504 = GatewayTimeoutError;
107
- const MediaCompletePathParams = /* @__PURE__ */ Schema.Struct({ id: MediaId });
107
+ const MediaCompletePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MediaId }))();
108
108
  const MediaComplete200 = CompletedMedia;
109
109
  const MediaComplete401 = UnauthorizedError;
110
110
  const MediaComplete403 = ForbiddenError;
@@ -112,7 +112,7 @@ const MediaComplete404 = ResourceNotFoundError;
112
112
  const MediaComplete422 = ValidationError;
113
113
  const MediaComplete500 = InternalError;
114
114
  const MediaComplete504 = GatewayTimeoutError;
115
- const MediaDownloadUrlPathParams = /* @__PURE__ */ Schema.Struct({ id: MediaId });
115
+ const MediaDownloadUrlPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MediaId }))();
116
116
  const MediaDownloadUrl200 = MediaDownloadUrl;
117
117
  const MediaDownloadUrl401 = UnauthorizedError;
118
118
  const MediaDownloadUrl403 = ForbiddenError;
@@ -2,11 +2,11 @@ import { ApiKeyId, ApiKeySecurityMiddleware, AttachmentId, BillingProviderError,
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  //#region src/effect/generated/messages.ts
5
- const MessageSender = /* @__PURE__ */ Schema.Struct({
5
+ const MessageSender = /* @__PURE__ */ (() => Schema.Struct({
6
6
  address: Schema.String,
7
7
  name: Schema.Union([Schema.String, Schema.Null])
8
- }).annotate({ identifier: "MessageSender" });
9
- const SubmissionClient = /* @__PURE__ */ Schema.Struct({
8
+ }).annotate({ identifier: "MessageSender" }))();
9
+ const SubmissionClient = /* @__PURE__ */ (() => Schema.Struct({
10
10
  surface: Schema.Union([
11
11
  Schema.Literal("typescript-promise"),
12
12
  Schema.Literal("typescript-effect"),
@@ -14,22 +14,22 @@ const SubmissionClient = /* @__PURE__ */ Schema.Struct({
14
14
  Schema.Literal("mcp")
15
15
  ]),
16
16
  version: Schema.String
17
- }).annotate({ identifier: "SubmissionClient" });
18
- const MessageDeliveryId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mdel_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
17
+ }).annotate({ identifier: "SubmissionClient" }))();
18
+ const MessageDeliveryId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mdel_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
19
19
  expected: "a string matching the RegExp ^mdel_[0-9a-hjkmnp-tv-z]{16,24}$",
20
20
  identifier: "MessageDeliveryId"
21
- })).pipe(Schema.brand("MessageDeliveryId"));
22
- const MessageDeliveryError = /* @__PURE__ */ Schema.Struct({
21
+ })).pipe(Schema.brand("MessageDeliveryId")))();
22
+ const MessageDeliveryError = /* @__PURE__ */ (() => Schema.Struct({
23
23
  code: Schema.Union([Schema.String, Schema.Null]),
24
24
  message: Schema.Union([Schema.String, Schema.Null]),
25
25
  retryable: Schema.Union([Schema.Boolean, Schema.Null])
26
- }).annotate({ identifier: "MessageDeliveryError" });
27
- const EstimatedProviderCost = /* @__PURE__ */ Schema.Struct({
26
+ }).annotate({ identifier: "MessageDeliveryError" }))();
27
+ const EstimatedProviderCost = /* @__PURE__ */ (() => Schema.Struct({
28
28
  amount: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^\\d+\\.\\d+$", "u")).annotate({ expected: "a string matching the RegExp ^\\d+\\.\\d+$" })),
29
29
  currency: Schema.String,
30
30
  billingMode: Schema.Literal("pass_through")
31
- }).annotate({ identifier: "EstimatedProviderCost" });
32
- const DeliveryErrorDetails = /* @__PURE__ */ Schema.Struct({
31
+ }).annotate({ identifier: "EstimatedProviderCost" }))();
32
+ const DeliveryErrorDetails = /* @__PURE__ */ (() => Schema.Struct({
33
33
  code: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
34
34
  name: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
35
35
  message: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -39,16 +39,16 @@ const DeliveryErrorDetails = /* @__PURE__ */ Schema.Struct({
39
39
  Schema.Null
40
40
  ])), Schema.Null])),
41
41
  retryable: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
42
- }).annotate({ identifier: "DeliveryErrorDetails" });
43
- const EmailAddress = /* @__PURE__ */ Schema.Struct({
42
+ }).annotate({ identifier: "DeliveryErrorDetails" }))();
43
+ const EmailAddress = /* @__PURE__ */ (() => Schema.Struct({
44
44
  email: Schema.String,
45
45
  name: Schema.Union([Schema.String, Schema.Null])
46
- }).annotate({ identifier: "EmailAddress" });
47
- const MessageEventId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mevt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
46
+ }).annotate({ identifier: "EmailAddress" }))();
47
+ const MessageEventId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^mevt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
48
48
  expected: "a string matching the RegExp ^mevt_[0-9a-hjkmnp-tv-z]{16,24}$",
49
49
  identifier: "MessageEventId"
50
- })).pipe(Schema.brand("MessageEventId"));
51
- const ValidateEmailResponse = /* @__PURE__ */ Schema.Struct({
50
+ })).pipe(Schema.brand("MessageEventId")))();
51
+ const ValidateEmailResponse = /* @__PURE__ */ (() => Schema.Struct({
52
52
  valid: Schema.Literal(true),
53
53
  from: Schema.Struct({
54
54
  email: Schema.String,
@@ -61,8 +61,8 @@ const ValidateEmailResponse = /* @__PURE__ */ Schema.Struct({
61
61
  hasHtml: Schema.Boolean,
62
62
  hasText: Schema.Boolean
63
63
  })
64
- }).annotate({ identifier: "ValidateEmailResponse" });
65
- const SubmissionCredential = /* @__PURE__ */ Schema.Union([
64
+ }).annotate({ identifier: "ValidateEmailResponse" }))();
65
+ const SubmissionCredential = /* @__PURE__ */ (() => Schema.Union([
66
66
  Schema.Struct({
67
67
  kind: Schema.Literal("api_key"),
68
68
  apiKeyId: Schema.Union([ApiKeyId, Schema.Null])
@@ -72,8 +72,8 @@ const SubmissionCredential = /* @__PURE__ */ Schema.Union([
72
72
  clientId: Schema.Union([Schema.String, Schema.Null])
73
73
  }),
74
74
  Schema.Struct({ kind: Schema.Literal("session") })
75
- ]).annotate({ identifier: "SubmissionCredential" });
76
- const MessageContent = /* @__PURE__ */ Schema.Struct({
75
+ ]).annotate({ identifier: "SubmissionCredential" }))();
76
+ const MessageContent = /* @__PURE__ */ (() => Schema.Struct({
77
77
  text: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
78
78
  html: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
79
79
  markdown: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -94,12 +94,12 @@ const MessageContent = /* @__PURE__ */ Schema.Struct({
94
94
  })), Schema.Null]))
95
95
  }), Schema.Null])),
96
96
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null]))
97
- }).annotate({ identifier: "MessageContent" });
98
- const MessageAddress = /* @__PURE__ */ Schema.Struct({
97
+ }).annotate({ identifier: "MessageContent" }))();
98
+ const MessageAddress = /* @__PURE__ */ (() => Schema.Struct({
99
99
  address: Schema.String,
100
100
  contactId: Schema.Union([ContactId, Schema.Null])
101
- }).annotate({ identifier: "MessageAddress" });
102
- const MessageDelivery = /* @__PURE__ */ Schema.Struct({
101
+ }).annotate({ identifier: "MessageAddress" }))();
102
+ const MessageDelivery = /* @__PURE__ */ (() => Schema.Struct({
103
103
  id: MessageDeliveryId,
104
104
  recipient: Schema.Union([Schema.String, Schema.Null]),
105
105
  status: Schema.Union([
@@ -137,8 +137,8 @@ const MessageDelivery = /* @__PURE__ */ Schema.Struct({
137
137
  estimatedProviderCost: Schema.Union([EstimatedProviderCost, Schema.Null]),
138
138
  createdAt: Schema.String,
139
139
  updatedAt: Schema.String
140
- }).annotate({ identifier: "MessageDelivery" });
141
- const MessageEventPage = /* @__PURE__ */ Schema.Struct({
140
+ }).annotate({ identifier: "MessageDelivery" }))();
141
+ const MessageEventPage = /* @__PURE__ */ (() => Schema.Struct({
142
142
  items: Schema.Array(Schema.Struct({
143
143
  id: MessageEventId,
144
144
  messageId: MessageId,
@@ -148,8 +148,8 @@ const MessageEventPage = /* @__PURE__ */ Schema.Struct({
148
148
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, JsonValue), Schema.Null]))
149
149
  })),
150
150
  nextCursor: Schema.Union([Schema.String, Schema.Null])
151
- }).annotate({ identifier: "MessageEventPage" });
152
- const MessageSubmission = /* @__PURE__ */ Schema.Struct({
151
+ }).annotate({ identifier: "MessageEventPage" }))();
152
+ const MessageSubmission = /* @__PURE__ */ (() => Schema.Struct({
153
153
  origin: Schema.Union([
154
154
  Schema.Literal("direct"),
155
155
  Schema.Literal("campaign"),
@@ -163,8 +163,8 @@ const MessageSubmission = /* @__PURE__ */ Schema.Struct({
163
163
  credential: Schema.Union([SubmissionCredential, Schema.Null]),
164
164
  userId: Schema.Union([UserId, Schema.Null]),
165
165
  client: Schema.Union([SubmissionClient, Schema.Null])
166
- }).annotate({ identifier: "MessageSubmission" });
167
- const MessageReceipt = /* @__PURE__ */ Schema.Struct({
166
+ }).annotate({ identifier: "MessageSubmission" }))();
167
+ const MessageReceipt = /* @__PURE__ */ (() => Schema.Struct({
168
168
  id: MessageId,
169
169
  status: Schema.Union([
170
170
  Schema.Literal("pending"),
@@ -194,9 +194,9 @@ const MessageReceipt = /* @__PURE__ */ Schema.Struct({
194
194
  reviewExpectedAt: Schema.Union([Schema.String, Schema.Null]),
195
195
  skippedRecipients: Schema.Array(SkippedRecipient),
196
196
  createdAt: Schema.String
197
- }).annotate({ identifier: "MessageReceipt" });
198
- const MessageDeliveryList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(MessageDelivery) }).annotate({ identifier: "MessageDeliveryList" });
199
- const Message = /* @__PURE__ */ Schema.Struct({
197
+ }).annotate({ identifier: "MessageReceipt" }))();
198
+ const MessageDeliveryList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(MessageDelivery) }).annotate({ identifier: "MessageDeliveryList" }))();
199
+ const Message = /* @__PURE__ */ (() => Schema.Struct({
200
200
  id: MessageId,
201
201
  campaign: Schema.optionalKey(Schema.Union([Schema.Struct({
202
202
  campaignId: CampaignId,
@@ -246,8 +246,8 @@ const Message = /* @__PURE__ */ Schema.Struct({
246
246
  skippedRecipients: Schema.Array(SkippedRecipient),
247
247
  createdAt: Schema.String,
248
248
  updatedAt: Schema.String
249
- }).annotate({ identifier: "Message" });
250
- const MessagesListQuery = /* @__PURE__ */ Schema.Struct({
249
+ }).annotate({ identifier: "Message" }))();
250
+ const MessagesListQuery = /* @__PURE__ */ (() => Schema.Struct({
251
251
  limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
252
252
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
253
253
  channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null])),
@@ -270,15 +270,15 @@ const MessagesListQuery = /* @__PURE__ */ Schema.Struct({
270
270
  namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "Only this namespace's messages. A key scoped to a namespace always lists its own." })),
271
271
  after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
272
272
  before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
273
- });
273
+ }))();
274
274
  const MessagesList200 = MessagePage;
275
275
  const MessagesList401 = UnauthorizedError;
276
276
  const MessagesList403 = ForbiddenError;
277
277
  const MessagesList422 = ValidationError;
278
278
  const MessagesList500 = InternalError;
279
279
  const MessagesList504 = GatewayTimeoutError;
280
- const MessagesSendHeaders = /* @__PURE__ */ Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional org-scoped key that makes a send idempotent. Repeating a request with the same key and identical payload replays the original 201 response; reusing the key with different content returns 409." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) });
281
- const MessagesSendRequestJson = /* @__PURE__ */ Schema.Struct({
280
+ const MessagesSendHeaders = /* @__PURE__ */ (() => Schema.Struct({ "idempotency-key": Schema.optionalKey(Schema.Union([Schema.String.annotate({ description: "Optional org-scoped key that makes a send idempotent. Repeating a request with the same key and identical payload replays the original 201 response; reusing the key with different content returns 409." }).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[\\s\\S]{1,255}$")).annotate({ expected: "a string matching the RegExp ^[\\s\\S]{1,255}$" })), Schema.Null])) }))();
281
+ const MessagesSendRequestJson = /* @__PURE__ */ (() => Schema.Struct({
282
282
  conversationId: Schema.optionalKey(Schema.Union([Schema.Union([ConversationId, Schema.Null]), Schema.Null])),
283
283
  metadata: Schema.optionalKey(MessageMetadata),
284
284
  channel: Schema.Literal("email"),
@@ -287,24 +287,24 @@ const MessagesSendRequestJson = /* @__PURE__ */ Schema.Struct({
287
287
  bcc: Schema.optionalKey(EmailBccRecipients),
288
288
  from: Schema.optionalKey(EmailSender),
289
289
  email: EmailContent
290
- });
290
+ }))();
291
291
  const MessagesSend201 = MessageReceipt;
292
292
  const MessagesSend401 = UnauthorizedError;
293
293
  const MessagesSend402 = PaymentRequiredError;
294
- const MessagesSend403 = /* @__PURE__ */ Schema.Union([
294
+ const MessagesSend403 = /* @__PURE__ */ (() => Schema.Union([
295
295
  ForbiddenError,
296
296
  OnboardingReviewRequiredError,
297
297
  FlagDisabledError
298
- ]);
298
+ ]))();
299
299
  const MessagesSend404 = ResourceNotFoundError;
300
300
  const MessagesSend409 = ConflictError;
301
- const MessagesSend422 = /* @__PURE__ */ Schema.Union([ValidationError, FromAddressRequiredError]);
301
+ const MessagesSend422 = /* @__PURE__ */ (() => Schema.Union([ValidationError, FromAddressRequiredError]))();
302
302
  const MessagesSend429 = RateLimitedError;
303
303
  const MessagesSend500 = InternalError;
304
- const MessagesSend502 = /* @__PURE__ */ Schema.Union([BillingProviderError, ExternalServiceError]);
305
- const MessagesSend503 = /* @__PURE__ */ Schema.Union([SenderNotReadyError, DeliveryUnavailableError]);
304
+ const MessagesSend502 = /* @__PURE__ */ (() => Schema.Union([BillingProviderError, ExternalServiceError]))();
305
+ const MessagesSend503 = /* @__PURE__ */ (() => Schema.Union([SenderNotReadyError, DeliveryUnavailableError]))();
306
306
  const MessagesSend504 = GatewayTimeoutError;
307
- const MessagesGetPathParams = /* @__PURE__ */ Schema.Struct({ id: MessageId });
307
+ const MessagesGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }))();
308
308
  const MessagesGet200 = Message;
309
309
  const MessagesGet401 = UnauthorizedError;
310
310
  const MessagesGet403 = ForbiddenError;
@@ -312,11 +312,11 @@ const MessagesGet404 = ResourceNotFoundError;
312
312
  const MessagesGet422 = ValidationError;
313
313
  const MessagesGet500 = InternalError;
314
314
  const MessagesGet504 = GatewayTimeoutError;
315
- const MessagesRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: MessageId });
316
- const MessagesRemove200 = /* @__PURE__ */ Schema.Struct({
315
+ const MessagesRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }))();
316
+ const MessagesRemove200 = /* @__PURE__ */ (() => Schema.Struct({
317
317
  success: Schema.Boolean,
318
318
  message: Schema.String
319
- });
319
+ }))();
320
320
  const MessagesRemove401 = UnauthorizedError;
321
321
  const MessagesRemove403 = ForbiddenError;
322
322
  const MessagesRemove404 = ResourceNotFoundError;
@@ -324,7 +324,7 @@ const MessagesRemove422 = ValidationError;
324
324
  const MessagesRemove500 = InternalError;
325
325
  const MessagesRemove502 = BillingProviderError;
326
326
  const MessagesRemove504 = GatewayTimeoutError;
327
- const MessagesGetContentPathParams = /* @__PURE__ */ Schema.Struct({ id: MessageId });
327
+ const MessagesGetContentPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }))();
328
328
  const MessagesGetContent200 = MessageContent;
329
329
  const MessagesGetContent401 = UnauthorizedError;
330
330
  const MessagesGetContent403 = ForbiddenError;
@@ -332,7 +332,7 @@ const MessagesGetContent404 = ResourceNotFoundError;
332
332
  const MessagesGetContent422 = ValidationError;
333
333
  const MessagesGetContent500 = InternalError;
334
334
  const MessagesGetContent504 = GatewayTimeoutError;
335
- const MessagesListDeliveriesPathParams = /* @__PURE__ */ Schema.Struct({ id: MessageId });
335
+ const MessagesListDeliveriesPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }))();
336
336
  const MessagesListDeliveries200 = MessageDeliveryList;
337
337
  const MessagesListDeliveries401 = UnauthorizedError;
338
338
  const MessagesListDeliveries403 = ForbiddenError;
@@ -340,12 +340,12 @@ const MessagesListDeliveries404 = ResourceNotFoundError;
340
340
  const MessagesListDeliveries422 = ValidationError;
341
341
  const MessagesListDeliveries500 = InternalError;
342
342
  const MessagesListDeliveries504 = GatewayTimeoutError;
343
- const MessagesGetEmailPathParams = /* @__PURE__ */ Schema.Struct({ id: MessageId });
344
- const MessagesGetEmailQuery = /* @__PURE__ */ Schema.Struct({
343
+ const MessagesGetEmailPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }))();
344
+ const MessagesGetEmailQuery = /* @__PURE__ */ (() => Schema.Struct({
345
345
  includeDownloadUrls: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
346
346
  urlExpiresIn: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(604800).annotate({ expected: "a value less than or equal to 604800" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null]))
347
- });
348
- const MessagesGetEmail200 = /* @__PURE__ */ Schema.Struct({
347
+ }))();
348
+ const MessagesGetEmail200 = /* @__PURE__ */ (() => Schema.Struct({
349
349
  deliveries: Schema.Array(Schema.Struct({
350
350
  scheduling: Schema.Union([Schema.Struct({
351
351
  dueAt: Schema.String,
@@ -497,18 +497,18 @@ const MessagesGetEmail200 = /* @__PURE__ */ Schema.Struct({
497
497
  createdAt: Schema.String,
498
498
  receivedAt: Schema.Union([Schema.String, Schema.Null]).annotate({ description: "When Samva's receiving server accepted the email; null for outbound email. The sender's `Date` header plays no part and stays in the raw MIME." }),
499
499
  processedAt: Schema.Union([Schema.String, Schema.Null])
500
- });
500
+ }))();
501
501
  const MessagesGetEmail401 = UnauthorizedError;
502
502
  const MessagesGetEmail403 = ForbiddenError;
503
503
  const MessagesGetEmail404 = ResourceNotFoundError;
504
504
  const MessagesGetEmail422 = ValidationError;
505
505
  const MessagesGetEmail500 = InternalError;
506
506
  const MessagesGetEmail504 = GatewayTimeoutError;
507
- const MessagesGetEventsPathParams = /* @__PURE__ */ Schema.Struct({ id: MessageId });
508
- const MessagesGetEventsQuery = /* @__PURE__ */ Schema.Struct({
507
+ const MessagesGetEventsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }))();
508
+ const MessagesGetEventsQuery = /* @__PURE__ */ (() => Schema.Struct({
509
509
  limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
510
510
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
511
- });
511
+ }))();
512
512
  const MessagesGetEvents200 = MessageEventPage;
513
513
  const MessagesGetEvents401 = UnauthorizedError;
514
514
  const MessagesGetEvents403 = ForbiddenError;
@@ -516,8 +516,8 @@ const MessagesGetEvents404 = ResourceNotFoundError;
516
516
  const MessagesGetEvents422 = ValidationError;
517
517
  const MessagesGetEvents500 = InternalError;
518
518
  const MessagesGetEvents504 = GatewayTimeoutError;
519
- const MessagesGetStatusPathParams = /* @__PURE__ */ Schema.Struct({ id: MessageId });
520
- const MessagesGetStatus200 = /* @__PURE__ */ Schema.Struct({
519
+ const MessagesGetStatusPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: MessageId }))();
520
+ const MessagesGetStatus200 = /* @__PURE__ */ (() => Schema.Struct({
521
521
  id: MessageId,
522
522
  status: Schema.Union([
523
523
  Schema.Literal("pending"),
@@ -532,14 +532,14 @@ const MessagesGetStatus200 = /* @__PURE__ */ Schema.Struct({
532
532
  Schema.Literal("complained")
533
533
  ]),
534
534
  updatedAt: Schema.String
535
- });
535
+ }))();
536
536
  const MessagesGetStatus401 = UnauthorizedError;
537
537
  const MessagesGetStatus403 = ForbiddenError;
538
538
  const MessagesGetStatus404 = ResourceNotFoundError;
539
539
  const MessagesGetStatus422 = ValidationError;
540
540
  const MessagesGetStatus500 = InternalError;
541
541
  const MessagesGetStatus504 = GatewayTimeoutError;
542
- const MessagesValidateEmailRequestJson = /* @__PURE__ */ Schema.Struct({
542
+ const MessagesValidateEmailRequestJson = /* @__PURE__ */ (() => Schema.Struct({
543
543
  conversationId: Schema.optionalKey(Schema.Union([Schema.Union([ConversationId, Schema.Null]), Schema.Null])),
544
544
  metadata: Schema.optionalKey(MessageMetadata),
545
545
  channel: Schema.Literal("email"),
@@ -548,12 +548,12 @@ const MessagesValidateEmailRequestJson = /* @__PURE__ */ Schema.Struct({
548
548
  bcc: Schema.optionalKey(EmailBccRecipients),
549
549
  from: Schema.optionalKey(EmailSender),
550
550
  email: EmailContent
551
- });
551
+ }))();
552
552
  const MessagesValidateEmail200 = ValidateEmailResponse;
553
553
  const MessagesValidateEmail401 = UnauthorizedError;
554
554
  const MessagesValidateEmail403 = ForbiddenError;
555
555
  const MessagesValidateEmail404 = ResourceNotFoundError;
556
- const MessagesValidateEmail422 = /* @__PURE__ */ Schema.Union([ValidationError, FromAddressRequiredError]);
556
+ const MessagesValidateEmail422 = /* @__PURE__ */ (() => Schema.Union([ValidationError, FromAddressRequiredError]))();
557
557
  const MessagesValidateEmail500 = InternalError;
558
558
  const MessagesValidateEmail503 = SenderNotReadyError;
559
559
  const MessagesValidateEmail504 = GatewayTimeoutError;
@@ -2,50 +2,50 @@ import { ApiKeySecurityMiddleware, ConflictError, Cursor, ForbiddenError, Gatewa
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  //#region src/effect/generated/namespaces.ts
5
- const NamespaceSummary = /* @__PURE__ */ Schema.Struct({
5
+ const NamespaceSummary = /* @__PURE__ */ (() => Schema.Struct({
6
6
  id: NamespaceId,
7
7
  name: Schema.String,
8
8
  createdAt: Schema.String
9
- }).annotate({ identifier: "NamespaceSummary" });
10
- const NamespaceUsage = /* @__PURE__ */ Schema.Struct({
9
+ }).annotate({ identifier: "NamespaceSummary" }))();
10
+ const NamespaceUsage = /* @__PURE__ */ (() => Schema.Struct({
11
11
  namespaceId: NamespaceId,
12
12
  periodStart: Schema.String,
13
13
  periodEnd: Schema.String,
14
14
  emailCount: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
15
15
  totalMessages: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
16
- }).annotate({ identifier: "NamespaceUsage" });
17
- const Namespace = /* @__PURE__ */ Schema.Struct({
16
+ }).annotate({ identifier: "NamespaceUsage" }))();
17
+ const Namespace = /* @__PURE__ */ (() => Schema.Struct({
18
18
  id: NamespaceId,
19
19
  name: Schema.String,
20
20
  createdAt: Schema.String,
21
21
  metadata: NamespaceMetadata,
22
22
  updatedAt: Schema.String
23
- }).annotate({ identifier: "Namespace" });
24
- const NamespaceResource = /* @__PURE__ */ Schema.Struct({
23
+ }).annotate({ identifier: "Namespace" }))();
24
+ const NamespaceResource = /* @__PURE__ */ (() => Schema.Struct({
25
25
  type: NamespaceResourceType,
26
26
  id: Schema.String,
27
27
  namespaceId: Schema.Union([NamespaceId, Schema.Null])
28
- }).annotate({ identifier: "NamespaceResource" });
29
- const NamespacePage = /* @__PURE__ */ Schema.Struct({
28
+ }).annotate({ identifier: "NamespaceResource" }))();
29
+ const NamespacePage = /* @__PURE__ */ (() => Schema.Struct({
30
30
  items: Schema.Array(NamespaceSummary),
31
31
  nextCursor: Schema.Union([Schema.String, Schema.Null])
32
- }).annotate({ identifier: "NamespacePage" });
33
- const NamespacesListQuery = /* @__PURE__ */ Schema.Struct({
32
+ }).annotate({ identifier: "NamespacePage" }))();
33
+ const NamespacesListQuery = /* @__PURE__ */ (() => Schema.Struct({
34
34
  limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
35
35
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
36
36
  after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
37
37
  before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
38
- });
38
+ }))();
39
39
  const NamespacesList200 = NamespacePage;
40
40
  const NamespacesList401 = UnauthorizedError;
41
41
  const NamespacesList403 = ForbiddenError;
42
42
  const NamespacesList422 = ValidationError;
43
43
  const NamespacesList500 = InternalError;
44
44
  const NamespacesList504 = GatewayTimeoutError;
45
- const NamespacesCreateRequestJson = /* @__PURE__ */ Schema.Struct({
45
+ const NamespacesCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
46
46
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^\\S[\\s\\S]*\\S$|^\\S$|^$", "u")).annotate({ expected: "a string matching the RegExp ^\\S[\\s\\S]*\\S$|^\\S$|^$" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
47
47
  metadata: Schema.optionalKey(Schema.Union([NamespaceMetadata, Schema.Null]))
48
- });
48
+ }))();
49
49
  const NamespacesCreate201 = Namespace;
50
50
  const NamespacesCreate401 = UnauthorizedError;
51
51
  const NamespacesCreate403 = ForbiddenError;
@@ -53,7 +53,7 @@ const NamespacesCreate409 = ConflictError;
53
53
  const NamespacesCreate422 = ValidationError;
54
54
  const NamespacesCreate500 = InternalError;
55
55
  const NamespacesCreate504 = GatewayTimeoutError;
56
- const NamespacesGetPathParams = /* @__PURE__ */ Schema.Struct({ id: NamespaceId });
56
+ const NamespacesGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NamespaceId }))();
57
57
  const NamespacesGet200 = Namespace;
58
58
  const NamespacesGet401 = UnauthorizedError;
59
59
  const NamespacesGet403 = ForbiddenError;
@@ -61,7 +61,7 @@ const NamespacesGet404 = ResourceNotFoundError;
61
61
  const NamespacesGet422 = ValidationError;
62
62
  const NamespacesGet500 = InternalError;
63
63
  const NamespacesGet504 = GatewayTimeoutError;
64
- const NamespacesRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: NamespaceId });
64
+ const NamespacesRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NamespaceId }))();
65
65
  const NamespacesRemove200 = SuccessResponse;
66
66
  const NamespacesRemove401 = UnauthorizedError;
67
67
  const NamespacesRemove403 = ForbiddenError;
@@ -70,11 +70,11 @@ const NamespacesRemove409 = ConflictError;
70
70
  const NamespacesRemove422 = ValidationError;
71
71
  const NamespacesRemove500 = InternalError;
72
72
  const NamespacesRemove504 = GatewayTimeoutError;
73
- const NamespacesUpdatePathParams = /* @__PURE__ */ Schema.Struct({ id: NamespaceId });
74
- const NamespacesUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
73
+ const NamespacesUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NamespaceId }))();
74
+ const NamespacesUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
75
75
  name: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(128).annotate({ expected: "a string with at most 128 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^\\S[\\s\\S]*\\S$|^\\S$|^$", "u")).annotate({ expected: "a string matching the RegExp ^\\S[\\s\\S]*\\S$|^\\S$|^$" })).check(Schema.isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })), Schema.Null])),
76
76
  metadata: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Null])), Schema.Null]))
77
- });
77
+ }))();
78
78
  const NamespacesUpdate200 = Namespace;
79
79
  const NamespacesUpdate401 = UnauthorizedError;
80
80
  const NamespacesUpdate403 = ForbiddenError;
@@ -83,11 +83,11 @@ const NamespacesUpdate409 = ConflictError;
83
83
  const NamespacesUpdate422 = ValidationError;
84
84
  const NamespacesUpdate500 = InternalError;
85
85
  const NamespacesUpdate504 = GatewayTimeoutError;
86
- const NamespacesAssignResourcePathParams = /* @__PURE__ */ Schema.Struct({ id: NamespaceId });
87
- const NamespacesAssignResourceRequestJson = /* @__PURE__ */ Schema.Struct({
86
+ const NamespacesAssignResourcePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NamespaceId }))();
87
+ const NamespacesAssignResourceRequestJson = /* @__PURE__ */ (() => Schema.Struct({
88
88
  type: NamespaceResourceType,
89
89
  resourceId: Schema.String.annotate({ description: "The resource's id, such as `dom_...` for a domain." })
90
- });
90
+ }))();
91
91
  const NamespacesAssignResource200 = NamespaceResource;
92
92
  const NamespacesAssignResource401 = UnauthorizedError;
93
93
  const NamespacesAssignResource403 = ForbiddenError;
@@ -96,11 +96,11 @@ const NamespacesAssignResource409 = ConflictError;
96
96
  const NamespacesAssignResource422 = ValidationError;
97
97
  const NamespacesAssignResource500 = InternalError;
98
98
  const NamespacesAssignResource504 = GatewayTimeoutError;
99
- const NamespacesRemoveResourcePathParams = /* @__PURE__ */ Schema.Struct({
99
+ const NamespacesRemoveResourcePathParams = /* @__PURE__ */ (() => Schema.Struct({
100
100
  id: NamespaceId,
101
101
  type: NamespaceResourceType,
102
102
  resourceId: Schema.String
103
- });
103
+ }))();
104
104
  const NamespacesRemoveResource200 = NamespaceResource;
105
105
  const NamespacesRemoveResource401 = UnauthorizedError;
106
106
  const NamespacesRemoveResource403 = ForbiddenError;
@@ -109,11 +109,11 @@ const NamespacesRemoveResource409 = ConflictError;
109
109
  const NamespacesRemoveResource422 = ValidationError;
110
110
  const NamespacesRemoveResource500 = InternalError;
111
111
  const NamespacesRemoveResource504 = GatewayTimeoutError;
112
- const NamespacesGetUsagePathParams = /* @__PURE__ */ Schema.Struct({ id: NamespaceId });
113
- const NamespacesGetUsageQuery = /* @__PURE__ */ Schema.Struct({
112
+ const NamespacesGetUsagePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: NamespaceId }))();
113
+ const NamespacesGetUsageQuery = /* @__PURE__ */ (() => Schema.Struct({
114
114
  after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
115
115
  before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
116
- });
116
+ }))();
117
117
  const NamespacesGetUsage200 = NamespaceUsage;
118
118
  const NamespacesGetUsage401 = UnauthorizedError;
119
119
  const NamespacesGetUsage403 = ForbiddenError;
@@ -2,11 +2,11 @@ import { ApiKeySecurityMiddleware, ConflictError, Cursor, ForbiddenError, Gatewa
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  //#region src/effect/generated/operations.ts
5
- const OperationPage = /* @__PURE__ */ Schema.Struct({
5
+ const OperationPage = /* @__PURE__ */ (() => Schema.Struct({
6
6
  items: Schema.Array(Operation),
7
7
  nextCursor: Schema.Union([Schema.String, Schema.Null])
8
- }).annotate({ identifier: "OperationPage" });
9
- const OperationsListQuery = /* @__PURE__ */ Schema.Struct({
8
+ }).annotate({ identifier: "OperationPage" }))();
9
+ const OperationsListQuery = /* @__PURE__ */ (() => Schema.Struct({
10
10
  limit: Schema.optionalKey(Schema.Union([Schema.Finite.annotate({ description: "Items per page, at most 100." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(100).annotate({ expected: "a value less than or equal to 100" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])),
11
11
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
12
12
  kind: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("email-domain-provisioning"), Schema.Literal("organization-deletion")]), Schema.Null])),
@@ -16,14 +16,14 @@ const OperationsListQuery = /* @__PURE__ */ Schema.Struct({
16
16
  Schema.Literal("succeeded"),
17
17
  Schema.Literal("failed")
18
18
  ]), Schema.Null]))
19
- });
19
+ }))();
20
20
  const OperationsList200 = OperationPage;
21
21
  const OperationsList401 = UnauthorizedError;
22
22
  const OperationsList403 = ForbiddenError;
23
23
  const OperationsList422 = ValidationError;
24
24
  const OperationsList500 = InternalError;
25
25
  const OperationsList504 = GatewayTimeoutError;
26
- const OperationsGetPathParams = /* @__PURE__ */ Schema.Struct({ id: OperationId });
26
+ const OperationsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: OperationId }))();
27
27
  const OperationsGet200 = Operation;
28
28
  const OperationsGet401 = UnauthorizedError;
29
29
  const OperationsGet403 = ForbiddenError;
@@ -31,7 +31,7 @@ const OperationsGet404 = ResourceNotFoundError;
31
31
  const OperationsGet422 = ValidationError;
32
32
  const OperationsGet500 = InternalError;
33
33
  const OperationsGet504 = GatewayTimeoutError;
34
- const OperationsRetryPathParams = /* @__PURE__ */ Schema.Struct({ id: OperationId });
34
+ const OperationsRetryPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: OperationId }))();
35
35
  const OperationsRetry202 = OperationAccepted;
36
36
  const OperationsRetry401 = UnauthorizedError;
37
37
  const OperationsRetry403 = ForbiddenError;