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,7 +2,7 @@ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactE
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/events.ts
5
- const BatchEventsResult = /* @__PURE__ */ Schema.Struct({
5
+ const BatchEventsResult = /* @__PURE__ */ (() => Schema.Struct({
6
6
  total: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
7
7
  accepted: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
8
8
  errors: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
@@ -12,14 +12,14 @@ const BatchEventsResult = /* @__PURE__ */ Schema.Struct({
12
12
  event: Schema.optionalKey(Schema.Union([ContactEvent, Schema.Null])),
13
13
  error: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
14
14
  }))
15
- }).annotate({ identifier: "BatchEventsResult" });
16
- const EventsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
15
+ }).annotate({ identifier: "BatchEventsResult" }))();
16
+ const EventsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
17
17
  contact: ContactEventReference,
18
18
  name: 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" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("^(?!(?:[Cc][Oo][Nn][Tt][Aa][Cc][Tt]|[Ss][Aa][Mm][Vv][Aa])\\.)[A-Za-z][A-Za-z0-9_.-]*$")).annotate({ expected: "a string matching the RegExp ^(?!(?:[Cc][Oo][Nn][Tt][Aa][Cc][Tt]|[Ss][Aa][Mm][Vv][Aa])\\.)[A-Za-z][A-Za-z0-9_.-]*$" })),
19
19
  properties: Schema.optionalKey(Schema.Union([JsonObject, Schema.Null])),
20
20
  occurredAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
21
21
  idempotencyKey: Schema.optionalKey(Schema.Union([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" })), Schema.Null]))
22
- });
22
+ }))();
23
23
  const EventsCreate200 = ContactEvent;
24
24
  const EventsCreate401 = UnauthorizedError;
25
25
  const EventsCreate402 = PaymentRequiredError;
@@ -30,7 +30,7 @@ const EventsCreate422 = ValidationError;
30
30
  const EventsCreate500 = InternalError;
31
31
  const EventsCreate502 = BillingProviderError;
32
32
  const EventsCreate504 = GatewayTimeoutError;
33
- const EventsBatchRequestJson = /* @__PURE__ */ Schema.Struct({ events: Schema.TupleWithRest(Schema.Tuple([CreateEventPayload]), [CreateEventPayload]).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })) });
33
+ const EventsBatchRequestJson = /* @__PURE__ */ (() => Schema.Struct({ events: Schema.TupleWithRest(Schema.Tuple([CreateEventPayload]), [CreateEventPayload]).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })) }))();
34
34
  const EventsBatch200 = BatchEventsResult;
35
35
  const EventsBatch401 = UnauthorizedError;
36
36
  const EventsBatch403 = ForbiddenError;
@@ -3,11 +3,11 @@ import { ApiKeySecurityMiddleware, ConflictError, Cursor, ExtensionId, Extension
3
3
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
4
4
  import * as Schema from "effect/Schema";
5
5
  //#region src/effect/generated/extension-installations.ts
6
- const ExtensionInstallationId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^exti_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
6
+ const ExtensionInstallationId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^exti_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
7
7
  expected: "a string matching the RegExp ^exti_[0-9a-hjkmnp-tv-z]{16,24}$",
8
8
  identifier: "ExtensionInstallationId"
9
- })).pipe(Schema.brand("ExtensionInstallationId"));
10
- const ExtensionRunSummary = /* @__PURE__ */ Schema.Struct({
9
+ })).pipe(Schema.brand("ExtensionInstallationId")))();
10
+ const ExtensionRunSummary = /* @__PURE__ */ (() => Schema.Struct({
11
11
  id: Schema.String,
12
12
  eventId: Schema.String,
13
13
  eventType: Schema.Union([
@@ -30,8 +30,8 @@ const ExtensionRunSummary = /* @__PURE__ */ Schema.Struct({
30
30
  Schema.Literal("revoked")
31
31
  ]),
32
32
  error: Schema.Union([Schema.String, Schema.Null])
33
- }).annotate({ identifier: "ExtensionRunSummary" });
34
- const ExtensionRun = /* @__PURE__ */ Schema.Struct({
33
+ }).annotate({ identifier: "ExtensionRunSummary" }))();
34
+ const ExtensionRun = /* @__PURE__ */ (() => Schema.Struct({
35
35
  id: Schema.String,
36
36
  eventId: Schema.String,
37
37
  eventType: Schema.Union([
@@ -55,8 +55,8 @@ const ExtensionRun = /* @__PURE__ */ Schema.Struct({
55
55
  ]),
56
56
  error: Schema.Union([Schema.String, Schema.Null]),
57
57
  logs: Schema.Array(Schema.String)
58
- }).annotate({ identifier: "ExtensionRun" });
59
- const ExtensionPermissionDiff = /* @__PURE__ */ Schema.Struct({
58
+ }).annotate({ identifier: "ExtensionRun" }))();
59
+ const ExtensionPermissionDiff = /* @__PURE__ */ (() => Schema.Struct({
60
60
  added: Schema.Array(Schema.Union([
61
61
  Schema.Literal("permission:read"),
62
62
  Schema.Literal("permission:update"),
@@ -83,9 +83,9 @@ const ExtensionPermissionDiff = /* @__PURE__ */ Schema.Struct({
83
83
  Schema.Literal("event:mailbox.message.released"),
84
84
  Schema.Literal("event:mailbox.message.discarded")
85
85
  ]))
86
- }).annotate({ identifier: "ExtensionPermissionDiff" });
87
- const ExtensionRunList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(ExtensionRunSummary) }).annotate({ identifier: "ExtensionRunList" });
88
- const ExtensionInstallationSummary = /* @__PURE__ */ Schema.Struct({
86
+ }).annotate({ identifier: "ExtensionPermissionDiff" }))();
87
+ const ExtensionRunList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(ExtensionRunSummary) }).annotate({ identifier: "ExtensionRunList" }))();
88
+ const ExtensionInstallationSummary = /* @__PURE__ */ (() => Schema.Struct({
89
89
  id: ExtensionInstallationId,
90
90
  extensionId: ExtensionId,
91
91
  name: Schema.String,
@@ -94,8 +94,8 @@ const ExtensionInstallationSummary = /* @__PURE__ */ Schema.Struct({
94
94
  runtime: Schema.Union([Schema.Literal("hosted"), Schema.Literal("webhook")]),
95
95
  status: Schema.Union([Schema.Literal("active"), Schema.Literal("disabled")]),
96
96
  createdAt: Schema.String
97
- }).annotate({ identifier: "ExtensionInstallationSummary" });
98
- const ExtensionInstallation = /* @__PURE__ */ Schema.Struct({
97
+ }).annotate({ identifier: "ExtensionInstallationSummary" }))();
98
+ const ExtensionInstallation = /* @__PURE__ */ (() => Schema.Struct({
99
99
  id: ExtensionInstallationId,
100
100
  extensionId: ExtensionId,
101
101
  name: Schema.String,
@@ -130,8 +130,8 @@ const ExtensionInstallation = /* @__PURE__ */ Schema.Struct({
130
130
  }), Schema.Null]),
131
131
  updatedAt: Schema.String,
132
132
  disabledAt: Schema.Union([Schema.String, Schema.Null])
133
- }).annotate({ identifier: "ExtensionInstallation" });
134
- const ExtensionVersionChange = /* @__PURE__ */ Schema.Struct({
133
+ }).annotate({ identifier: "ExtensionInstallation" }))();
134
+ const ExtensionVersionChange = /* @__PURE__ */ (() => Schema.Struct({
135
135
  id: Schema.String,
136
136
  organizationId: OrganizationId,
137
137
  installationId: ExtensionInstallationId,
@@ -141,32 +141,32 @@ const ExtensionVersionChange = /* @__PURE__ */ Schema.Struct({
141
141
  permissionDiff: ExtensionPermissionDiff,
142
142
  changedBy: UserId,
143
143
  changedAt: Schema.String
144
- }).annotate({ identifier: "ExtensionVersionChange" });
145
- const ExtensionInstallationPage = /* @__PURE__ */ Schema.Struct({
144
+ }).annotate({ identifier: "ExtensionVersionChange" }))();
145
+ const ExtensionInstallationPage = /* @__PURE__ */ (() => Schema.Struct({
146
146
  items: Schema.Array(ExtensionInstallationSummary),
147
147
  nextCursor: Schema.Union([Schema.String, Schema.Null])
148
- }).annotate({ identifier: "ExtensionInstallationPage" });
149
- const InstallExtensionResponse = /* @__PURE__ */ Schema.Struct({
148
+ }).annotate({ identifier: "ExtensionInstallationPage" }))();
149
+ const InstallExtensionResponse = /* @__PURE__ */ (() => Schema.Struct({
150
150
  installation: ExtensionInstallation,
151
151
  credentials: Schema.Union([Schema.Struct({
152
152
  apiKey: SensitiveString,
153
153
  webhookSecret: SensitiveString
154
154
  }), Schema.Null])
155
- }).annotate({ identifier: "InstallExtensionResponse" });
156
- const UpgradeExtensionResponse = /* @__PURE__ */ Schema.Struct({
155
+ }).annotate({ identifier: "InstallExtensionResponse" }))();
156
+ const UpgradeExtensionResponse = /* @__PURE__ */ (() => Schema.Struct({
157
157
  installation: ExtensionInstallation,
158
158
  fromVersion: ExtensionVersionRef,
159
159
  toVersion: ExtensionVersionRef,
160
160
  permissionDiff: ExtensionPermissionDiff,
161
161
  dryRun: Schema.Boolean,
162
162
  versionChange: Schema.Union([ExtensionVersionChange, Schema.Null])
163
- }).annotate({ identifier: "UpgradeExtensionResponse" });
164
- const ExtensionInstallationsListQuery = /* @__PURE__ */ Schema.Struct({
163
+ }).annotate({ identifier: "UpgradeExtensionResponse" }))();
164
+ const ExtensionInstallationsListQuery = /* @__PURE__ */ (() => Schema.Struct({
165
165
  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])),
166
166
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
167
167
  after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
168
168
  before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
169
- });
169
+ }))();
170
170
  const ExtensionInstallationsList200 = ExtensionInstallationPage;
171
171
  const ExtensionInstallationsList401 = UnauthorizedError;
172
172
  const ExtensionInstallationsList403 = ForbiddenError;
@@ -174,7 +174,7 @@ const ExtensionInstallationsList404 = ResourceNotFoundError;
174
174
  const ExtensionInstallationsList422 = ValidationError;
175
175
  const ExtensionInstallationsList500 = InternalError;
176
176
  const ExtensionInstallationsList504 = GatewayTimeoutError;
177
- const ExtensionInstallationsInstallRequestJson = /* @__PURE__ */ Schema.Struct({
177
+ const ExtensionInstallationsInstallRequestJson = /* @__PURE__ */ (() => Schema.Struct({
178
178
  extension: Schema.String,
179
179
  version: Schema.optionalKey(Schema.Union([Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^\\d{1,6}\\.\\d{1,6}\\.\\d{1,6}(?:-[0-9A-Za-z.-]{1,64})?$", "u")).annotate({ expected: "a string matching the RegExp ^\\d{1,6}\\.\\d{1,6}\\.\\d{1,6}(?:-[0-9A-Za-z.-]{1,64})?$" })), Schema.Null])),
180
180
  mailboxIds: Schema.optionalKey(Schema.Union([Schema.Array(MailboxId).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })), Schema.Null])),
@@ -187,7 +187,7 @@ const ExtensionInstallationsInstallRequestJson = /* @__PURE__ */ Schema.Struct({
187
187
  ])), Schema.Null])),
188
188
  sendMode: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("send"), Schema.Literal("approval")]), Schema.Null])),
189
189
  webhookUrl: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
190
- });
190
+ }))();
191
191
  const ExtensionInstallationsInstall201 = InstallExtensionResponse;
192
192
  const ExtensionInstallationsInstall401 = UnauthorizedError;
193
193
  const ExtensionInstallationsInstall403 = ForbiddenError;
@@ -196,7 +196,7 @@ const ExtensionInstallationsInstall409 = ConflictError;
196
196
  const ExtensionInstallationsInstall422 = ValidationError;
197
197
  const ExtensionInstallationsInstall500 = InternalError;
198
198
  const ExtensionInstallationsInstall504 = GatewayTimeoutError;
199
- const ExtensionInstallationsGetPathParams = /* @__PURE__ */ Schema.Struct({ id: ExtensionInstallationId });
199
+ const ExtensionInstallationsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ExtensionInstallationId }))();
200
200
  const ExtensionInstallationsGet200 = ExtensionInstallation;
201
201
  const ExtensionInstallationsGet401 = UnauthorizedError;
202
202
  const ExtensionInstallationsGet403 = ForbiddenError;
@@ -204,7 +204,7 @@ const ExtensionInstallationsGet404 = ResourceNotFoundError;
204
204
  const ExtensionInstallationsGet422 = ValidationError;
205
205
  const ExtensionInstallationsGet500 = InternalError;
206
206
  const ExtensionInstallationsGet504 = GatewayTimeoutError;
207
- const ExtensionInstallationsUninstallPathParams = /* @__PURE__ */ Schema.Struct({ id: ExtensionInstallationId });
207
+ const ExtensionInstallationsUninstallPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ExtensionInstallationId }))();
208
208
  const ExtensionInstallationsUninstall200 = SuccessResponse;
209
209
  const ExtensionInstallationsUninstall401 = UnauthorizedError;
210
210
  const ExtensionInstallationsUninstall403 = ForbiddenError;
@@ -213,7 +213,7 @@ const ExtensionInstallationsUninstall409 = ConflictError;
213
213
  const ExtensionInstallationsUninstall422 = ValidationError;
214
214
  const ExtensionInstallationsUninstall500 = InternalError;
215
215
  const ExtensionInstallationsUninstall504 = GatewayTimeoutError;
216
- const ExtensionInstallationsDisablePathParams = /* @__PURE__ */ Schema.Struct({ id: ExtensionInstallationId });
216
+ const ExtensionInstallationsDisablePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ExtensionInstallationId }))();
217
217
  const ExtensionInstallationsDisable200 = ExtensionInstallation;
218
218
  const ExtensionInstallationsDisable401 = UnauthorizedError;
219
219
  const ExtensionInstallationsDisable403 = ForbiddenError;
@@ -222,7 +222,7 @@ const ExtensionInstallationsDisable409 = ConflictError;
222
222
  const ExtensionInstallationsDisable422 = ValidationError;
223
223
  const ExtensionInstallationsDisable500 = InternalError;
224
224
  const ExtensionInstallationsDisable504 = GatewayTimeoutError;
225
- const ExtensionInstallationsEnablePathParams = /* @__PURE__ */ Schema.Struct({ id: ExtensionInstallationId });
225
+ const ExtensionInstallationsEnablePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ExtensionInstallationId }))();
226
226
  const ExtensionInstallationsEnable200 = ExtensionInstallation;
227
227
  const ExtensionInstallationsEnable401 = UnauthorizedError;
228
228
  const ExtensionInstallationsEnable403 = ForbiddenError;
@@ -231,7 +231,7 @@ const ExtensionInstallationsEnable409 = ConflictError;
231
231
  const ExtensionInstallationsEnable422 = ValidationError;
232
232
  const ExtensionInstallationsEnable500 = InternalError;
233
233
  const ExtensionInstallationsEnable504 = GatewayTimeoutError;
234
- const ExtensionInstallationsListRunsPathParams = /* @__PURE__ */ Schema.Struct({ id: ExtensionInstallationId });
234
+ const ExtensionInstallationsListRunsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ExtensionInstallationId }))();
235
235
  const ExtensionInstallationsListRuns200 = ExtensionRunList;
236
236
  const ExtensionInstallationsListRuns401 = UnauthorizedError;
237
237
  const ExtensionInstallationsListRuns403 = ForbiddenError;
@@ -239,10 +239,10 @@ const ExtensionInstallationsListRuns404 = ResourceNotFoundError;
239
239
  const ExtensionInstallationsListRuns422 = ValidationError;
240
240
  const ExtensionInstallationsListRuns500 = InternalError;
241
241
  const ExtensionInstallationsListRuns504 = GatewayTimeoutError;
242
- const ExtensionInstallationsGetRunPathParams = /* @__PURE__ */ Schema.Struct({
242
+ const ExtensionInstallationsGetRunPathParams = /* @__PURE__ */ (() => Schema.Struct({
243
243
  id: ExtensionInstallationId,
244
244
  runId: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" })).check(Schema.isMaxLength(64).annotate({ expected: "a value with a length of at most 64" }))
245
- });
245
+ }))();
246
246
  const ExtensionInstallationsGetRun200 = ExtensionRun;
247
247
  const ExtensionInstallationsGetRun401 = UnauthorizedError;
248
248
  const ExtensionInstallationsGetRun403 = ForbiddenError;
@@ -250,8 +250,8 @@ const ExtensionInstallationsGetRun404 = ResourceNotFoundError;
250
250
  const ExtensionInstallationsGetRun422 = ValidationError;
251
251
  const ExtensionInstallationsGetRun500 = InternalError;
252
252
  const ExtensionInstallationsGetRun504 = GatewayTimeoutError;
253
- const ExtensionInstallationsUpgradePathParams = /* @__PURE__ */ Schema.Struct({ id: ExtensionInstallationId });
254
- const ExtensionInstallationsUpgradeRequestJson = /* @__PURE__ */ Schema.Struct({
253
+ const ExtensionInstallationsUpgradePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ExtensionInstallationId }))();
254
+ const ExtensionInstallationsUpgradeRequestJson = /* @__PURE__ */ (() => Schema.Struct({
255
255
  version: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^\\d{1,6}\\.\\d{1,6}\\.\\d{1,6}(?:-[0-9A-Za-z.-]{1,64})?$", "u")).annotate({ expected: "a string matching the RegExp ^\\d{1,6}\\.\\d{1,6}\\.\\d{1,6}(?:-[0-9A-Za-z.-]{1,64})?$" })), ExtensionVersionId]), Schema.Null])),
256
256
  acceptPermissions: Schema.optionalKey(Schema.Union([Schema.Array(Schema.Union([
257
257
  Schema.Literal("permission:read"),
@@ -267,7 +267,7 @@ const ExtensionInstallationsUpgradeRequestJson = /* @__PURE__ */ Schema.Struct({
267
267
  Schema.Literal("event:mailbox.message.discarded")
268
268
  ])), Schema.Null])),
269
269
  dryRun: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
270
- });
270
+ }))();
271
271
  const ExtensionInstallationsUpgrade200 = UpgradeExtensionResponse;
272
272
  const ExtensionInstallationsUpgrade401 = UnauthorizedError;
273
273
  const ExtensionInstallationsUpgrade403 = ForbiddenError;
@@ -2,11 +2,11 @@ import { ApiKeySecurityMiddleware, ConflictError, Cursor, ExtensionId, Extension
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/extensions.ts
5
- const ExtensionBundle = /* @__PURE__ */ Schema.Struct({
5
+ const ExtensionBundle = /* @__PURE__ */ (() => Schema.Struct({
6
6
  sha256: Schema.String,
7
7
  sizeBytes: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(-9007199254740991).annotate({ expected: "a value greater than or equal to -9007199254740991" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
8
- }).annotate({ identifier: "ExtensionBundle" });
9
- const ExtensionVersion = /* @__PURE__ */ Schema.Struct({
8
+ }).annotate({ identifier: "ExtensionBundle" }))();
9
+ const ExtensionVersion = /* @__PURE__ */ (() => Schema.Struct({
10
10
  id: ExtensionVersionId,
11
11
  version: Schema.String,
12
12
  runtime: Schema.Union([Schema.Literal("hosted"), Schema.Literal("webhook")]),
@@ -34,15 +34,15 @@ const ExtensionVersion = /* @__PURE__ */ Schema.Struct({
34
34
  Schema.Literal("quarantine.read")
35
35
  ]))
36
36
  })
37
- }).annotate({ identifier: "ExtensionVersion" });
38
- const ExtensionVersionSummary = /* @__PURE__ */ Schema.Struct({
37
+ }).annotate({ identifier: "ExtensionVersion" }))();
38
+ const ExtensionVersionSummary = /* @__PURE__ */ (() => Schema.Struct({
39
39
  id: ExtensionVersionId,
40
40
  version: Schema.String,
41
41
  runtime: Schema.Union([Schema.Literal("hosted"), Schema.Literal("webhook")]),
42
42
  bundle: Schema.Union([ExtensionBundle, Schema.Null]),
43
43
  publishedAt: Schema.String
44
- }).annotate({ identifier: "ExtensionVersionSummary" });
45
- const Extension = /* @__PURE__ */ Schema.Struct({
44
+ }).annotate({ identifier: "ExtensionVersionSummary" }))();
45
+ const Extension = /* @__PURE__ */ (() => Schema.Struct({
46
46
  id: ExtensionId,
47
47
  name: Schema.String,
48
48
  displayName: Schema.String,
@@ -51,25 +51,25 @@ const Extension = /* @__PURE__ */ Schema.Struct({
51
51
  latestVersion: ExtensionVersionRef,
52
52
  createdAt: Schema.String,
53
53
  updatedAt: Schema.String
54
- }).annotate({ identifier: "Extension" });
55
- const ExtensionVersionPage = /* @__PURE__ */ Schema.Struct({
54
+ }).annotate({ identifier: "Extension" }))();
55
+ const ExtensionVersionPage = /* @__PURE__ */ (() => Schema.Struct({
56
56
  items: Schema.Array(ExtensionVersionSummary),
57
57
  nextCursor: Schema.Union([Schema.String, Schema.Null])
58
- }).annotate({ identifier: "ExtensionVersionPage" });
59
- const ExtensionPage = /* @__PURE__ */ Schema.Struct({
58
+ }).annotate({ identifier: "ExtensionVersionPage" }))();
59
+ const ExtensionPage = /* @__PURE__ */ (() => Schema.Struct({
60
60
  items: Schema.Array(Extension),
61
61
  nextCursor: Schema.Union([Schema.String, Schema.Null])
62
- }).annotate({ identifier: "ExtensionPage" });
63
- const PublishExtensionVersionResponse = /* @__PURE__ */ Schema.Struct({
62
+ }).annotate({ identifier: "ExtensionPage" }))();
63
+ const PublishExtensionVersionResponse = /* @__PURE__ */ (() => Schema.Struct({
64
64
  extension: Extension,
65
65
  version: ExtensionVersion
66
- }).annotate({ identifier: "PublishExtensionVersionResponse" });
67
- const ExtensionsListQuery = /* @__PURE__ */ Schema.Struct({
66
+ }).annotate({ identifier: "PublishExtensionVersionResponse" }))();
67
+ const ExtensionsListQuery = /* @__PURE__ */ (() => Schema.Struct({
68
68
  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])),
69
69
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
70
70
  after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
71
71
  before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
72
- });
72
+ }))();
73
73
  const ExtensionsList200 = ExtensionPage;
74
74
  const ExtensionsList401 = UnauthorizedError;
75
75
  const ExtensionsList403 = ForbiddenError;
@@ -77,7 +77,7 @@ const ExtensionsList404 = ResourceNotFoundError;
77
77
  const ExtensionsList422 = ValidationError;
78
78
  const ExtensionsList500 = InternalError;
79
79
  const ExtensionsList504 = GatewayTimeoutError;
80
- const ExtensionsPublishRequestJson = /* @__PURE__ */ Schema.Struct({
80
+ const ExtensionsPublishRequestJson = /* @__PURE__ */ (() => Schema.Struct({
81
81
  manifest: Schema.Struct({
82
82
  name: Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^[a-z][a-z0-9-]{1,62}[a-z0-9]$", "u")).annotate({ expected: "a string matching the RegExp ^[a-z][a-z0-9-]{1,62}[a-z0-9]$" })),
83
83
  displayName: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(80).annotate({ expected: "a string with at most 80 code points" })).check(Schema.isMaxLength(80).annotate({ expected: "a value with a length of at most 80" })),
@@ -101,7 +101,7 @@ const ExtensionsPublishRequestJson = /* @__PURE__ */ Schema.Struct({
101
101
  ]))
102
102
  }),
103
103
  bundle: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
104
- });
104
+ }))();
105
105
  const ExtensionsPublish201 = PublishExtensionVersionResponse;
106
106
  const ExtensionsPublish401 = UnauthorizedError;
107
107
  const ExtensionsPublish403 = ForbiddenError;
@@ -110,7 +110,7 @@ const ExtensionsPublish409 = ConflictError;
110
110
  const ExtensionsPublish422 = ValidationError;
111
111
  const ExtensionsPublish500 = InternalError;
112
112
  const ExtensionsPublish504 = GatewayTimeoutError;
113
- const ExtensionsGetPathParams = /* @__PURE__ */ Schema.Struct({ id: Schema.String.annotate({ description: "The extension's id (`ext_…`) or its name." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" })).check(Schema.isMaxLength(64).annotate({ expected: "a value with a length of at most 64" })) });
113
+ const ExtensionsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: Schema.String.annotate({ description: "The extension's id (`ext_…`) or its name." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" })).check(Schema.isMaxLength(64).annotate({ expected: "a value with a length of at most 64" })) }))();
114
114
  const ExtensionsGet200 = Extension;
115
115
  const ExtensionsGet401 = UnauthorizedError;
116
116
  const ExtensionsGet403 = ForbiddenError;
@@ -118,11 +118,11 @@ const ExtensionsGet404 = ResourceNotFoundError;
118
118
  const ExtensionsGet422 = ValidationError;
119
119
  const ExtensionsGet500 = InternalError;
120
120
  const ExtensionsGet504 = GatewayTimeoutError;
121
- const ExtensionsListVersionsPathParams = /* @__PURE__ */ Schema.Struct({ id: Schema.String.annotate({ description: "The extension's id (`ext_…`) or its name." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" })).check(Schema.isMaxLength(64).annotate({ expected: "a value with a length of at most 64" })) });
122
- const ExtensionsListVersionsQuery = /* @__PURE__ */ Schema.Struct({
121
+ const ExtensionsListVersionsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: Schema.String.annotate({ description: "The extension's id (`ext_…`) or its name." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" })).check(Schema.isMaxLength(64).annotate({ expected: "a value with a length of at most 64" })) }))();
122
+ const ExtensionsListVersionsQuery = /* @__PURE__ */ (() => Schema.Struct({
123
123
  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])),
124
124
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
125
- });
125
+ }))();
126
126
  const ExtensionsListVersions200 = ExtensionVersionPage;
127
127
  const ExtensionsListVersions401 = UnauthorizedError;
128
128
  const ExtensionsListVersions403 = ForbiddenError;
@@ -130,10 +130,10 @@ const ExtensionsListVersions404 = ResourceNotFoundError;
130
130
  const ExtensionsListVersions422 = ValidationError;
131
131
  const ExtensionsListVersions500 = InternalError;
132
132
  const ExtensionsListVersions504 = GatewayTimeoutError;
133
- const ExtensionsGetVersionPathParams = /* @__PURE__ */ Schema.Struct({
133
+ const ExtensionsGetVersionPathParams = /* @__PURE__ */ (() => Schema.Struct({
134
134
  id: Schema.String.annotate({ description: "The extension's id (`ext_…`) or its name." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(64).annotate({ expected: "a string with at most 64 code points" })).check(Schema.isMaxLength(64).annotate({ expected: "a value with a length of at most 64" })),
135
135
  versionId: Schema.String.annotate({ description: "The version's id (`extver_…`) or its version string, such as `1.0.0`." }).check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(85).annotate({ expected: "a string with at most 85 code points" })).check(Schema.isMaxLength(85).annotate({ expected: "a value with a length of at most 85" }))
136
- });
136
+ }))();
137
137
  const ExtensionsGetVersion200 = ExtensionVersion;
138
138
  const ExtensionsGetVersion401 = UnauthorizedError;
139
139
  const ExtensionsGetVersion403 = ForbiddenError;
@@ -2,15 +2,15 @@ import { ApiKeySecurityMiddleware, FeedbackContext, ForbiddenError, GatewayTimeo
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/feedback.ts
5
- const FeedbackId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^fdbk_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
5
+ const FeedbackId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^fdbk_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
6
6
  expected: "a string matching the RegExp ^fdbk_[0-9a-hjkmnp-tv-z]{16,24}$",
7
7
  identifier: "FeedbackId"
8
- })).pipe(Schema.brand("FeedbackId"));
9
- const FeedbackReceipt = /* @__PURE__ */ Schema.Struct({
8
+ })).pipe(Schema.brand("FeedbackId")))();
9
+ const FeedbackReceipt = /* @__PURE__ */ (() => Schema.Struct({
10
10
  id: FeedbackId,
11
11
  createdAt: Schema.String
12
- }).annotate({ identifier: "FeedbackReceipt" });
13
- const FeedbackSendRequestJson = /* @__PURE__ */ Schema.Struct({
12
+ }).annotate({ identifier: "FeedbackReceipt" }))();
13
+ const FeedbackSendRequestJson = /* @__PURE__ */ (() => Schema.Struct({
14
14
  message: Schema.String.annotate({ description: "What happened and what you expected, in plain language (at most 4000 characters)." }).check(Schema.isMaxCodePoints(4e3).annotate({ expected: "a string with at most 4000 code points" })).check(Schema.isPattern(/* @__PURE__ */ new RegExp("\\S", "u")).annotate({ expected: "a string matching the RegExp \\S" })).check(Schema.isMaxLength(4e3).annotate({ expected: "a value with a length of at most 4000" })),
15
15
  category: Schema.optionalKey(Schema.Union([Schema.Union([
16
16
  Schema.Literal("bug"),
@@ -19,7 +19,7 @@ const FeedbackSendRequestJson = /* @__PURE__ */ Schema.Struct({
19
19
  Schema.Literal("other")
20
20
  ]).annotate({ description: "`bug`: the API behaved wrongly. `confusing`: a response, error, or doc was hard to act on. `missing`: a capability or field you needed does not exist. `other`: anything else." }), Schema.Null])),
21
21
  context: Schema.optionalKey(Schema.Union([FeedbackContext, Schema.Null]))
22
- });
22
+ }))();
23
23
  const FeedbackSend201 = FeedbackReceipt;
24
24
  const FeedbackSend401 = UnauthorizedError;
25
25
  const FeedbackSend403 = ForbiddenError;
@@ -22,10 +22,12 @@ import { MessagesGroup } from "./messages";
22
22
  import { NamespacesGroup } from "./namespaces";
23
23
  import { OperationsGroup } from "./operations";
24
24
  import { OrganizationsGroup } from "./organizations";
25
+ import { PublicationDomainsGroup } from "./publication-domains";
25
26
  import { ScheduledMessagesGroup } from "./scheduled-messages";
26
27
  import { SubscriptionsGroup } from "./subscriptions";
27
28
  import { TemplatesGroup } from "./templates";
28
29
  import { TopicFormsGroup } from "./topic-forms";
30
+ import { TopicIssuesGroup } from "./topic-issues";
29
31
  import { TopicsGroup } from "./topics";
30
32
  import { WebhooksGroup } from "./webhooks";
31
33
  import { WhoamiGroup } from "./whoami";
@@ -58,8 +60,10 @@ export * from "./subscriptions";
58
60
  export * from "./templates";
59
61
  export * from "./topics";
60
62
  export * from "./topic-forms";
63
+ export * from "./topic-issues";
64
+ export * from "./publication-domains";
61
65
  export * from "./webhooks";
62
66
  export * from "./whoami";
63
- declare const SamvaApi_base: HttpApi.HttpApi<"SamvaApi", typeof AgentsGroup | typeof AnalyticsGroup | typeof APIKeysGroup | typeof AttachmentsGroup | typeof BrandsGroup | typeof CampaignsGroup | typeof ContactEventsGroup | typeof ContactGroupsGroup | typeof ContactsGroup | typeof ConversationsGroup | typeof CustomFieldsGroup | typeof EmailGroup | typeof EventsGroup | typeof ExtensionInstallationsGroup | typeof ExtensionsGroup | typeof FeedbackGroup | typeof JourneysGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof ScheduledMessagesGroup | typeof SubscriptionsGroup | typeof TemplatesGroup | typeof TopicFormsGroup | typeof TopicsGroup | typeof WebhooksGroup | typeof WhoamiGroup>;
67
+ declare const SamvaApi_base: HttpApi.HttpApi<"SamvaApi", typeof AgentsGroup | typeof AnalyticsGroup | typeof APIKeysGroup | typeof AttachmentsGroup | typeof BrandsGroup | typeof CampaignsGroup | typeof ContactEventsGroup | typeof ContactGroupsGroup | typeof ContactsGroup | typeof ConversationsGroup | typeof CustomFieldsGroup | typeof EmailGroup | typeof EventsGroup | typeof ExtensionInstallationsGroup | typeof ExtensionsGroup | typeof FeedbackGroup | typeof JourneysGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof PublicationDomainsGroup | typeof ScheduledMessagesGroup | typeof SubscriptionsGroup | typeof TemplatesGroup | typeof TopicFormsGroup | typeof TopicIssuesGroup | typeof TopicsGroup | typeof WebhooksGroup | typeof WhoamiGroup>;
64
68
  export declare class SamvaApi extends SamvaApi_base {
65
69
  }