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,8 +2,8 @@ import { ApiKeySecurityMiddleware, ContactId, ConversationId, Cursor, ForbiddenE
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/conversations.ts
5
- const UnknownRecord = /* @__PURE__ */ Schema.Record(Schema.String, JsonValue).annotate({ identifier: "UnknownRecord" });
6
- const ConversationSummary = /* @__PURE__ */ Schema.Struct({
5
+ const UnknownRecord = /* @__PURE__ */ (() => Schema.Record(Schema.String, JsonValue).annotate({ identifier: "UnknownRecord" }))();
6
+ const ConversationSummary = /* @__PURE__ */ (() => Schema.Struct({
7
7
  id: ConversationId,
8
8
  title: Schema.Union([Schema.String, Schema.Null]),
9
9
  externalId: Schema.Union([Schema.String, Schema.Null]),
@@ -28,8 +28,8 @@ const ConversationSummary = /* @__PURE__ */ Schema.Struct({
28
28
  messageCount: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
29
29
  lastActivityAt: Schema.String,
30
30
  createdAt: Schema.String
31
- }).annotate({ identifier: "ConversationSummary" });
32
- const ConversationContact = /* @__PURE__ */ Schema.Struct({
31
+ }).annotate({ identifier: "ConversationSummary" }))();
32
+ const ConversationContact = /* @__PURE__ */ (() => Schema.Struct({
33
33
  id: ContactId,
34
34
  name: Schema.String,
35
35
  displayName: Schema.Union([Schema.String, Schema.Null]),
@@ -38,8 +38,8 @@ const ConversationContact = /* @__PURE__ */ Schema.Struct({
38
38
  identifier: Schema.String,
39
39
  verified: Schema.Boolean
40
40
  }))
41
- }).annotate({ identifier: "ConversationContact" });
42
- const ConversationContext = /* @__PURE__ */ Schema.Struct({
41
+ }).annotate({ identifier: "ConversationContact" }))();
42
+ const ConversationContext = /* @__PURE__ */ (() => Schema.Struct({
43
43
  customerData: Schema.optionalKey(Schema.Union([UnknownRecord, Schema.Null])),
44
44
  previousConversations: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
45
45
  sessionVariables: Schema.optionalKey(Schema.Union([UnknownRecord, Schema.Null])),
@@ -49,12 +49,12 @@ const ConversationContext = /* @__PURE__ */ Schema.Struct({
49
49
  pendingSteps: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
50
50
  workflowData: Schema.optionalKey(Schema.Union([UnknownRecord, Schema.Null]))
51
51
  }), Schema.Null]))
52
- }).annotate({ identifier: "ConversationContext" });
53
- const ConversationPage = /* @__PURE__ */ Schema.Struct({
52
+ }).annotate({ identifier: "ConversationContext" }))();
53
+ const ConversationPage = /* @__PURE__ */ (() => Schema.Struct({
54
54
  items: Schema.Array(ConversationSummary),
55
55
  nextCursor: Schema.Union([Schema.String, Schema.Null])
56
- }).annotate({ identifier: "ConversationPage" });
57
- const Conversation = /* @__PURE__ */ Schema.Struct({
56
+ }).annotate({ identifier: "ConversationPage" }))();
57
+ const Conversation = /* @__PURE__ */ (() => Schema.Struct({
58
58
  id: ConversationId,
59
59
  title: Schema.Union([Schema.String, Schema.Null]),
60
60
  externalId: Schema.Union([Schema.String, Schema.Null]),
@@ -106,8 +106,8 @@ const Conversation = /* @__PURE__ */ Schema.Struct({
106
106
  ]), Schema.Null]),
107
107
  resolutionNotes: Schema.Union([Schema.String, Schema.Null]),
108
108
  updatedAt: Schema.String
109
- }).annotate({ identifier: "Conversation" });
110
- const ConversationsListQuery = /* @__PURE__ */ Schema.Struct({
109
+ }).annotate({ identifier: "Conversation" }))();
110
+ const ConversationsListQuery = /* @__PURE__ */ (() => Schema.Struct({
111
111
  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])),
112
112
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
113
113
  status: Schema.optionalKey(Schema.Union([Schema.Union([
@@ -121,14 +121,14 @@ const ConversationsListQuery = /* @__PURE__ */ Schema.Struct({
121
121
  contactId: Schema.optionalKey(Schema.Union([ContactId, Schema.Null])),
122
122
  after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
123
123
  before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
124
- });
124
+ }))();
125
125
  const ConversationsList200 = ConversationPage;
126
126
  const ConversationsList401 = UnauthorizedError;
127
127
  const ConversationsList403 = ForbiddenError;
128
128
  const ConversationsList422 = ValidationError;
129
129
  const ConversationsList500 = InternalError;
130
130
  const ConversationsList504 = GatewayTimeoutError;
131
- const ConversationsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
131
+ const ConversationsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
132
132
  title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
133
133
  description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
134
134
  externalId: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -162,14 +162,14 @@ const ConversationsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
162
162
  isTest: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
163
163
  isInternal: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
164
164
  isPrivate: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
165
- });
165
+ }))();
166
166
  const ConversationsCreate201 = Conversation;
167
167
  const ConversationsCreate401 = UnauthorizedError;
168
168
  const ConversationsCreate403 = ForbiddenError;
169
169
  const ConversationsCreate422 = ValidationError;
170
170
  const ConversationsCreate500 = InternalError;
171
171
  const ConversationsCreate504 = GatewayTimeoutError;
172
- const ConversationsGetByIdPathParams = /* @__PURE__ */ Schema.Struct({ id: ConversationId });
172
+ const ConversationsGetByIdPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ConversationId }))();
173
173
  const ConversationsGetById200 = Conversation;
174
174
  const ConversationsGetById401 = UnauthorizedError;
175
175
  const ConversationsGetById403 = ForbiddenError;
@@ -177,8 +177,8 @@ const ConversationsGetById404 = ResourceNotFoundError;
177
177
  const ConversationsGetById422 = ValidationError;
178
178
  const ConversationsGetById500 = InternalError;
179
179
  const ConversationsGetById504 = GatewayTimeoutError;
180
- const ConversationsUpdatePathParams = /* @__PURE__ */ Schema.Struct({ id: ConversationId });
181
- const ConversationsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
180
+ const ConversationsUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ConversationId }))();
181
+ const ConversationsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
182
182
  title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
183
183
  description: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
184
184
  externalId: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
@@ -209,7 +209,7 @@ const ConversationsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
209
209
  isTest: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
210
210
  isInternal: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
211
211
  isPrivate: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null]))
212
- });
212
+ }))();
213
213
  const ConversationsUpdate200 = Conversation;
214
214
  const ConversationsUpdate401 = UnauthorizedError;
215
215
  const ConversationsUpdate403 = ForbiddenError;
@@ -217,8 +217,8 @@ const ConversationsUpdate404 = ResourceNotFoundError;
217
217
  const ConversationsUpdate422 = ValidationError;
218
218
  const ConversationsUpdate500 = InternalError;
219
219
  const ConversationsUpdate504 = GatewayTimeoutError;
220
- const ConversationsAddCategoriesPathParams = /* @__PURE__ */ Schema.Struct({ id: ConversationId });
221
- const ConversationsAddCategoriesRequestJson = /* @__PURE__ */ Schema.Struct({ categories: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]) });
220
+ const ConversationsAddCategoriesPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ConversationId }))();
221
+ const ConversationsAddCategoriesRequestJson = /* @__PURE__ */ (() => Schema.Struct({ categories: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]) }))();
222
222
  const ConversationsAddCategories200 = Conversation;
223
223
  const ConversationsAddCategories401 = UnauthorizedError;
224
224
  const ConversationsAddCategories403 = ForbiddenError;
@@ -226,8 +226,8 @@ const ConversationsAddCategories404 = ResourceNotFoundError;
226
226
  const ConversationsAddCategories422 = ValidationError;
227
227
  const ConversationsAddCategories500 = InternalError;
228
228
  const ConversationsAddCategories504 = GatewayTimeoutError;
229
- const ConversationsRemoveCategoriesPathParams = /* @__PURE__ */ Schema.Struct({ id: ConversationId });
230
- const ConversationsRemoveCategoriesRequestJson = /* @__PURE__ */ Schema.Struct({ categories: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]) });
229
+ const ConversationsRemoveCategoriesPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ConversationId }))();
230
+ const ConversationsRemoveCategoriesRequestJson = /* @__PURE__ */ (() => Schema.Struct({ categories: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]) }))();
231
231
  const ConversationsRemoveCategories200 = Conversation;
232
232
  const ConversationsRemoveCategories401 = UnauthorizedError;
233
233
  const ConversationsRemoveCategories403 = ForbiddenError;
@@ -235,8 +235,8 @@ const ConversationsRemoveCategories404 = ResourceNotFoundError;
235
235
  const ConversationsRemoveCategories422 = ValidationError;
236
236
  const ConversationsRemoveCategories500 = InternalError;
237
237
  const ConversationsRemoveCategories504 = GatewayTimeoutError;
238
- const ConversationsAddChannelsPathParams = /* @__PURE__ */ Schema.Struct({ id: ConversationId });
239
- const ConversationsAddChannelsRequestJson = /* @__PURE__ */ Schema.Struct({ channels: Schema.TupleWithRest(Schema.Tuple([Schema.Literal("email")]), [Schema.Literal("email")]) });
238
+ const ConversationsAddChannelsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ConversationId }))();
239
+ const ConversationsAddChannelsRequestJson = /* @__PURE__ */ (() => Schema.Struct({ channels: Schema.TupleWithRest(Schema.Tuple([Schema.Literal("email")]), [Schema.Literal("email")]) }))();
240
240
  const ConversationsAddChannels200 = Conversation;
241
241
  const ConversationsAddChannels401 = UnauthorizedError;
242
242
  const ConversationsAddChannels403 = ForbiddenError;
@@ -244,8 +244,8 @@ const ConversationsAddChannels404 = ResourceNotFoundError;
244
244
  const ConversationsAddChannels422 = ValidationError;
245
245
  const ConversationsAddChannels500 = InternalError;
246
246
  const ConversationsAddChannels504 = GatewayTimeoutError;
247
- const ConversationsRemoveChannelsPathParams = /* @__PURE__ */ Schema.Struct({ id: ConversationId });
248
- const ConversationsRemoveChannelsRequestJson = /* @__PURE__ */ Schema.Struct({ channels: Schema.TupleWithRest(Schema.Tuple([Schema.Literal("email")]), [Schema.Literal("email")]) });
247
+ const ConversationsRemoveChannelsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ConversationId }))();
248
+ const ConversationsRemoveChannelsRequestJson = /* @__PURE__ */ (() => Schema.Struct({ channels: Schema.TupleWithRest(Schema.Tuple([Schema.Literal("email")]), [Schema.Literal("email")]) }))();
249
249
  const ConversationsRemoveChannels200 = Conversation;
250
250
  const ConversationsRemoveChannels401 = UnauthorizedError;
251
251
  const ConversationsRemoveChannels403 = ForbiddenError;
@@ -253,8 +253,8 @@ const ConversationsRemoveChannels404 = ResourceNotFoundError;
253
253
  const ConversationsRemoveChannels422 = ValidationError;
254
254
  const ConversationsRemoveChannels500 = InternalError;
255
255
  const ConversationsRemoveChannels504 = GatewayTimeoutError;
256
- const ConversationsAddContactsPathParams = /* @__PURE__ */ Schema.Struct({ id: ConversationId });
257
- const ConversationsAddContactsRequestJson = /* @__PURE__ */ Schema.Struct({ contactIds: Schema.TupleWithRest(Schema.Tuple([ContactId]), [ContactId]).check(Schema.isMaxLength(1e3).annotate({ expected: "a value with a length of at most 1000" })) });
256
+ const ConversationsAddContactsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ConversationId }))();
257
+ const ConversationsAddContactsRequestJson = /* @__PURE__ */ (() => Schema.Struct({ contactIds: Schema.TupleWithRest(Schema.Tuple([ContactId]), [ContactId]).check(Schema.isMaxLength(1e3).annotate({ expected: "a value with a length of at most 1000" })) }))();
258
258
  const ConversationsAddContacts200 = Conversation;
259
259
  const ConversationsAddContacts401 = UnauthorizedError;
260
260
  const ConversationsAddContacts403 = ForbiddenError;
@@ -262,8 +262,8 @@ const ConversationsAddContacts404 = ResourceNotFoundError;
262
262
  const ConversationsAddContacts422 = ValidationError;
263
263
  const ConversationsAddContacts500 = InternalError;
264
264
  const ConversationsAddContacts504 = GatewayTimeoutError;
265
- const ConversationsRemoveContactsPathParams = /* @__PURE__ */ Schema.Struct({ id: ConversationId });
266
- const ConversationsRemoveContactsRequestJson = /* @__PURE__ */ Schema.Struct({ contactIds: Schema.TupleWithRest(Schema.Tuple([ContactId]), [ContactId]).check(Schema.isMaxLength(1e3).annotate({ expected: "a value with a length of at most 1000" })) });
265
+ const ConversationsRemoveContactsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ConversationId }))();
266
+ const ConversationsRemoveContactsRequestJson = /* @__PURE__ */ (() => Schema.Struct({ contactIds: Schema.TupleWithRest(Schema.Tuple([ContactId]), [ContactId]).check(Schema.isMaxLength(1e3).annotate({ expected: "a value with a length of at most 1000" })) }))();
267
267
  const ConversationsRemoveContacts200 = Conversation;
268
268
  const ConversationsRemoveContacts401 = UnauthorizedError;
269
269
  const ConversationsRemoveContacts403 = ForbiddenError;
@@ -271,13 +271,13 @@ const ConversationsRemoveContacts404 = ResourceNotFoundError;
271
271
  const ConversationsRemoveContacts422 = ValidationError;
272
272
  const ConversationsRemoveContacts500 = InternalError;
273
273
  const ConversationsRemoveContacts504 = GatewayTimeoutError;
274
- const ConversationsListMessagesPathParams = /* @__PURE__ */ Schema.Struct({ id: ConversationId });
275
- const ConversationsListMessagesQuery = /* @__PURE__ */ Schema.Struct({
274
+ const ConversationsListMessagesPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ConversationId }))();
275
+ const ConversationsListMessagesQuery = /* @__PURE__ */ (() => Schema.Struct({
276
276
  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])),
277
277
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
278
278
  after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
279
279
  before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
280
- });
280
+ }))();
281
281
  const ConversationsListMessages200 = MessagePage;
282
282
  const ConversationsListMessages401 = UnauthorizedError;
283
283
  const ConversationsListMessages403 = ForbiddenError;
@@ -285,8 +285,8 @@ const ConversationsListMessages404 = ResourceNotFoundError;
285
285
  const ConversationsListMessages422 = ValidationError;
286
286
  const ConversationsListMessages500 = InternalError;
287
287
  const ConversationsListMessages504 = GatewayTimeoutError;
288
- const ConversationsAddTagsPathParams = /* @__PURE__ */ Schema.Struct({ id: ConversationId });
289
- const ConversationsAddTagsRequestJson = /* @__PURE__ */ Schema.Struct({ tags: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]) });
288
+ const ConversationsAddTagsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ConversationId }))();
289
+ const ConversationsAddTagsRequestJson = /* @__PURE__ */ (() => Schema.Struct({ tags: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]) }))();
290
290
  const ConversationsAddTags200 = Conversation;
291
291
  const ConversationsAddTags401 = UnauthorizedError;
292
292
  const ConversationsAddTags403 = ForbiddenError;
@@ -294,8 +294,8 @@ const ConversationsAddTags404 = ResourceNotFoundError;
294
294
  const ConversationsAddTags422 = ValidationError;
295
295
  const ConversationsAddTags500 = InternalError;
296
296
  const ConversationsAddTags504 = GatewayTimeoutError;
297
- const ConversationsRemoveTagsPathParams = /* @__PURE__ */ Schema.Struct({ id: ConversationId });
298
- const ConversationsRemoveTagsRequestJson = /* @__PURE__ */ Schema.Struct({ tags: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]) });
297
+ const ConversationsRemoveTagsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ConversationId }))();
298
+ const ConversationsRemoveTagsRequestJson = /* @__PURE__ */ (() => Schema.Struct({ tags: Schema.TupleWithRest(Schema.Tuple([Schema.String]), [Schema.String]) }))();
299
299
  const ConversationsRemoveTags200 = Conversation;
300
300
  const ConversationsRemoveTags401 = UnauthorizedError;
301
301
  const ConversationsRemoveTags403 = ForbiddenError;
@@ -2,11 +2,11 @@ import { ApiKeySecurityMiddleware, ConflictError, ForbiddenError, GatewayTimeout
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/custom-fields.ts
5
- const CustomFieldDefinitionId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^cfield_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
5
+ const CustomFieldDefinitionId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^cfield_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
6
6
  expected: "a string matching the RegExp ^cfield_[0-9a-hjkmnp-tv-z]{16,24}$",
7
7
  identifier: "CustomFieldDefinitionId"
8
- })).pipe(Schema.brand("CustomFieldDefinitionId"));
9
- const CustomFieldList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(Schema.Struct({
8
+ })).pipe(Schema.brand("CustomFieldDefinitionId")))();
9
+ const CustomFieldList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(Schema.Struct({
10
10
  id: CustomFieldDefinitionId,
11
11
  organizationId: OrganizationId,
12
12
  key: Schema.String,
@@ -24,14 +24,14 @@ const CustomFieldList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(Sche
24
24
  sortOrder: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
25
25
  createdAt: Schema.String,
26
26
  updatedAt: Schema.String
27
- })).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })) }).annotate({ identifier: "CustomFieldList" });
27
+ })).check(Schema.isMaxLength(100).annotate({ expected: "a value with a length of at most 100" })) }).annotate({ identifier: "CustomFieldList" }))();
28
28
  const CustomFieldsList200 = CustomFieldList;
29
29
  const CustomFieldsList401 = UnauthorizedError;
30
30
  const CustomFieldsList403 = ForbiddenError;
31
31
  const CustomFieldsList422 = ValidationError;
32
32
  const CustomFieldsList500 = InternalError;
33
33
  const CustomFieldsList504 = GatewayTimeoutError;
34
- const CustomFieldsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
34
+ const CustomFieldsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
35
35
  key: Schema.String,
36
36
  label: Schema.String,
37
37
  type: Schema.Union([
@@ -45,8 +45,8 @@ const CustomFieldsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
45
45
  defaultValue: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
46
46
  isRequired: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
47
47
  sortOrder: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]))
48
- });
49
- const CustomFieldsCreate201 = /* @__PURE__ */ Schema.Struct({
48
+ }))();
49
+ const CustomFieldsCreate201 = /* @__PURE__ */ (() => Schema.Struct({
50
50
  id: CustomFieldDefinitionId,
51
51
  organizationId: OrganizationId,
52
52
  key: Schema.String,
@@ -64,30 +64,30 @@ const CustomFieldsCreate201 = /* @__PURE__ */ Schema.Struct({
64
64
  sortOrder: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
65
65
  createdAt: Schema.String,
66
66
  updatedAt: Schema.String
67
- });
67
+ }))();
68
68
  const CustomFieldsCreate401 = UnauthorizedError;
69
69
  const CustomFieldsCreate403 = ForbiddenError;
70
70
  const CustomFieldsCreate409 = ConflictError;
71
71
  const CustomFieldsCreate422 = ValidationError;
72
72
  const CustomFieldsCreate500 = InternalError;
73
73
  const CustomFieldsCreate504 = GatewayTimeoutError;
74
- const CustomFieldsRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: CustomFieldDefinitionId });
75
- const CustomFieldsRemove200 = /* @__PURE__ */ Schema.Struct({ success: Schema.Boolean });
74
+ const CustomFieldsRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: CustomFieldDefinitionId }))();
75
+ const CustomFieldsRemove200 = /* @__PURE__ */ (() => Schema.Struct({ success: Schema.Boolean }))();
76
76
  const CustomFieldsRemove401 = UnauthorizedError;
77
77
  const CustomFieldsRemove403 = ForbiddenError;
78
78
  const CustomFieldsRemove404 = ResourceNotFoundError;
79
79
  const CustomFieldsRemove422 = ValidationError;
80
80
  const CustomFieldsRemove500 = InternalError;
81
81
  const CustomFieldsRemove504 = GatewayTimeoutError;
82
- const CustomFieldsUpdatePathParams = /* @__PURE__ */ Schema.Struct({ id: CustomFieldDefinitionId });
83
- const CustomFieldsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
82
+ const CustomFieldsUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: CustomFieldDefinitionId }))();
83
+ const CustomFieldsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
84
84
  label: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
85
85
  options: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
86
86
  defaultValue: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
87
87
  isRequired: Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])),
88
88
  sortOrder: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })), Schema.Null]))
89
- });
90
- const CustomFieldsUpdate200 = /* @__PURE__ */ Schema.Struct({
89
+ }))();
90
+ const CustomFieldsUpdate200 = /* @__PURE__ */ (() => Schema.Struct({
91
91
  id: CustomFieldDefinitionId,
92
92
  organizationId: OrganizationId,
93
93
  key: Schema.String,
@@ -105,7 +105,7 @@ const CustomFieldsUpdate200 = /* @__PURE__ */ Schema.Struct({
105
105
  sortOrder: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
106
106
  createdAt: Schema.String,
107
107
  updatedAt: Schema.String
108
- });
108
+ }))();
109
109
  const CustomFieldsUpdate401 = UnauthorizedError;
110
110
  const CustomFieldsUpdate403 = ForbiddenError;
111
111
  const CustomFieldsUpdate404 = ResourceNotFoundError;