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
@@ -60,6 +60,10 @@ export declare const preview: (input: {
60
60
  } | null | undefined;
61
61
  readonly preheader?: string | null | undefined;
62
62
  };
63
+ readonly issue?: {
64
+ readonly path: string;
65
+ readonly commit: string;
66
+ } | null | undefined;
63
67
  readonly from?: {
64
68
  readonly email: string;
65
69
  readonly name?: string | null | undefined;
@@ -165,6 +169,10 @@ export declare const sendTest: (input: {
165
169
  } | null | undefined;
166
170
  readonly preheader?: string | null | undefined;
167
171
  };
172
+ readonly issue?: {
173
+ readonly path: string;
174
+ readonly commit: string;
175
+ } | null | undefined;
168
176
  readonly from?: {
169
177
  readonly email: string;
170
178
  readonly name?: string | null | undefined;
@@ -259,6 +267,10 @@ export declare const list: ((input?: {
259
267
  } | null;
260
268
  readonly preheader?: string | null;
261
269
  };
270
+ readonly issue?: {
271
+ readonly path: string;
272
+ readonly commit: string;
273
+ } | null;
262
274
  readonly from?: {
263
275
  readonly email: string;
264
276
  readonly name?: string | null;
@@ -349,6 +361,10 @@ export declare const list: ((input?: {
349
361
  } | null;
350
362
  readonly preheader?: string | null;
351
363
  };
364
+ readonly issue?: {
365
+ readonly path: string;
366
+ readonly commit: string;
367
+ } | null;
352
368
  readonly from?: {
353
369
  readonly email: string;
354
370
  readonly name?: string | null;
@@ -457,6 +473,10 @@ export declare const create: (input: {
457
473
  } | null | undefined;
458
474
  readonly preheader?: string | null | undefined;
459
475
  };
476
+ readonly issue?: {
477
+ readonly path: string;
478
+ readonly commit: string;
479
+ } | null | undefined;
460
480
  readonly from?: {
461
481
  readonly email: string;
462
482
  readonly name?: string | null | undefined;
@@ -572,6 +592,10 @@ export declare const update: (input: {
572
592
  } | null | undefined;
573
593
  readonly preheader?: string | null | undefined;
574
594
  };
595
+ readonly issue?: {
596
+ readonly path: string;
597
+ readonly commit: string;
598
+ } | null | undefined;
575
599
  readonly from?: {
576
600
  readonly email: string;
577
601
  readonly name?: string | null | undefined;
@@ -674,6 +698,10 @@ export declare const listRuns: ((input: {
674
698
  } | null;
675
699
  readonly preheader?: string | null;
676
700
  };
701
+ readonly issue?: {
702
+ readonly path: string;
703
+ readonly commit: string;
704
+ } | null;
677
705
  readonly from?: {
678
706
  readonly email: string;
679
707
  readonly name?: string | null;
@@ -768,6 +796,10 @@ export declare const listRuns: ((input: {
768
796
  } | null;
769
797
  readonly preheader?: string | null;
770
798
  };
799
+ readonly issue?: {
800
+ readonly path: string;
801
+ readonly commit: string;
802
+ } | null;
771
803
  readonly from?: {
772
804
  readonly email: string;
773
805
  readonly name?: string | null;
@@ -2,20 +2,20 @@ import { AgentDefinition, AgentName, ApiKeySecurityMiddleware, ConflictError, Cu
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/agents.ts
5
- const AgentId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^agt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
5
+ const AgentId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^agt_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
6
6
  expected: "a string matching the RegExp ^agt_[0-9a-hjkmnp-tv-z]{16,24}$",
7
7
  identifier: "AgentId"
8
- })).pipe(Schema.brand("AgentId"));
9
- const DeleteAgentResponse = /* @__PURE__ */ Schema.Struct({
8
+ })).pipe(Schema.brand("AgentId")))();
9
+ const DeleteAgentResponse = /* @__PURE__ */ (() => Schema.Struct({
10
10
  id: AgentId,
11
11
  deleted: Schema.Literal(true)
12
- }).annotate({ identifier: "DeleteAgentResponse" });
13
- const AgentVersionSummary = /* @__PURE__ */ Schema.Struct({
12
+ }).annotate({ identifier: "DeleteAgentResponse" }))();
13
+ const AgentVersionSummary = /* @__PURE__ */ (() => Schema.Struct({
14
14
  agentId: AgentId,
15
15
  version: 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" })),
16
16
  publishedAt: Schema.String
17
- }).annotate({ identifier: "AgentVersionSummary" });
18
- const AgentListItem = /* @__PURE__ */ Schema.Struct({
17
+ }).annotate({ identifier: "AgentVersionSummary" }))();
18
+ const AgentListItem = /* @__PURE__ */ (() => Schema.Struct({
19
19
  id: AgentId,
20
20
  name: Schema.String,
21
21
  namespaceId: Schema.Union([NamespaceId, Schema.Null]),
@@ -23,16 +23,16 @@ const AgentListItem = /* @__PURE__ */ Schema.Struct({
23
23
  publishedAt: Schema.Union([Schema.String, Schema.Null]),
24
24
  createdAt: Schema.String,
25
25
  updatedAt: Schema.String
26
- }).annotate({ identifier: "AgentListItem" });
27
- const AgentVersionPage = /* @__PURE__ */ Schema.Struct({
26
+ }).annotate({ identifier: "AgentListItem" }))();
27
+ const AgentVersionPage = /* @__PURE__ */ (() => Schema.Struct({
28
28
  items: Schema.Array(AgentVersionSummary),
29
29
  nextCursor: Schema.Union([Schema.String, Schema.Null])
30
- }).annotate({ identifier: "AgentVersionPage" });
31
- const AgentPage = /* @__PURE__ */ Schema.Struct({
30
+ }).annotate({ identifier: "AgentVersionPage" }))();
31
+ const AgentPage = /* @__PURE__ */ (() => Schema.Struct({
32
32
  items: Schema.Array(AgentListItem),
33
33
  nextCursor: Schema.Union([Schema.String, Schema.Null])
34
- }).annotate({ identifier: "AgentPage" });
35
- const Agent = /* @__PURE__ */ Schema.Struct({
34
+ }).annotate({ identifier: "AgentPage" }))();
35
+ const Agent = /* @__PURE__ */ (() => Schema.Struct({
36
36
  id: AgentId,
37
37
  name: Schema.String,
38
38
  namespaceId: Schema.Union([NamespaceId, Schema.Null]),
@@ -42,29 +42,29 @@ const Agent = /* @__PURE__ */ Schema.Struct({
42
42
  publishedAt: Schema.Union([Schema.String, Schema.Null]),
43
43
  createdAt: Schema.String,
44
44
  updatedAt: Schema.String
45
- }).annotate({ identifier: "Agent" });
46
- const AgentVersion = /* @__PURE__ */ Schema.Struct({
45
+ }).annotate({ identifier: "Agent" }))();
46
+ const AgentVersion = /* @__PURE__ */ (() => Schema.Struct({
47
47
  agentId: AgentId,
48
48
  version: 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" })),
49
49
  definition: AgentDefinition,
50
50
  publishedAt: Schema.String
51
- }).annotate({ identifier: "AgentVersion" });
52
- const PublishAgentResponse = /* @__PURE__ */ Schema.Struct({
51
+ }).annotate({ identifier: "AgentVersion" }))();
52
+ const PublishAgentResponse = /* @__PURE__ */ (() => Schema.Struct({
53
53
  agent: Agent,
54
54
  version: AgentVersion,
55
55
  published: Schema.Boolean
56
- }).annotate({ identifier: "PublishAgentResponse" });
57
- const AgentsListQuery = /* @__PURE__ */ Schema.Struct({
56
+ }).annotate({ identifier: "PublishAgentResponse" }))();
57
+ const AgentsListQuery = /* @__PURE__ */ (() => Schema.Struct({
58
58
  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])),
59
59
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
60
- });
60
+ }))();
61
61
  const AgentsList200 = AgentPage;
62
62
  const AgentsList401 = UnauthorizedError;
63
63
  const AgentsList403 = ForbiddenError;
64
64
  const AgentsList422 = ValidationError;
65
65
  const AgentsList500 = InternalError;
66
66
  const AgentsList504 = GatewayTimeoutError;
67
- const AgentsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
67
+ const AgentsCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
68
68
  name: AgentName,
69
69
  namespaceId: Schema.optionalKey(Schema.Union([NamespaceId, Schema.Null]).annotate({ description: "The namespace the agent belongs to; it cannot move later. Omit for an organization-level agent. A namespace-scoped key always creates in its own namespace." })),
70
70
  definition: Schema.optionalKey(Schema.Union([AgentDefinition, Schema.Null]).annotate({
@@ -80,7 +80,7 @@ const AgentsCreateRequestJson = /* @__PURE__ */ Schema.Struct({
80
80
  takeoverTimeoutMinutes: 30
81
81
  }
82
82
  }))
83
- });
83
+ }))();
84
84
  const AgentsCreate201 = Agent;
85
85
  const AgentsCreate401 = UnauthorizedError;
86
86
  const AgentsCreate403 = ForbiddenError;
@@ -88,7 +88,7 @@ const AgentsCreate404 = ResourceNotFoundError;
88
88
  const AgentsCreate422 = ValidationError;
89
89
  const AgentsCreate500 = InternalError;
90
90
  const AgentsCreate504 = GatewayTimeoutError;
91
- const AgentsGetPathParams = /* @__PURE__ */ Schema.Struct({ id: AgentId });
91
+ const AgentsGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: AgentId }))();
92
92
  const AgentsGet200 = Agent;
93
93
  const AgentsGet401 = UnauthorizedError;
94
94
  const AgentsGet403 = ForbiddenError;
@@ -96,7 +96,7 @@ const AgentsGet404 = ResourceNotFoundError;
96
96
  const AgentsGet422 = ValidationError;
97
97
  const AgentsGet500 = InternalError;
98
98
  const AgentsGet504 = GatewayTimeoutError;
99
- const AgentsRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: AgentId });
99
+ const AgentsRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: AgentId }))();
100
100
  const AgentsRemove200 = DeleteAgentResponse;
101
101
  const AgentsRemove401 = UnauthorizedError;
102
102
  const AgentsRemove403 = ForbiddenError;
@@ -104,8 +104,8 @@ const AgentsRemove404 = ResourceNotFoundError;
104
104
  const AgentsRemove422 = ValidationError;
105
105
  const AgentsRemove500 = InternalError;
106
106
  const AgentsRemove504 = GatewayTimeoutError;
107
- const AgentsUpdatePathParams = /* @__PURE__ */ Schema.Struct({ id: AgentId });
108
- const AgentsUpdateRequestJson = /* @__PURE__ */ Schema.Struct({ name: AgentName });
107
+ const AgentsUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: AgentId }))();
108
+ const AgentsUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({ name: AgentName }))();
109
109
  const AgentsUpdate200 = Agent;
110
110
  const AgentsUpdate401 = UnauthorizedError;
111
111
  const AgentsUpdate403 = ForbiddenError;
@@ -113,11 +113,11 @@ const AgentsUpdate404 = ResourceNotFoundError;
113
113
  const AgentsUpdate422 = ValidationError;
114
114
  const AgentsUpdate500 = InternalError;
115
115
  const AgentsUpdate504 = GatewayTimeoutError;
116
- const AgentsReplaceDraftPathParams = /* @__PURE__ */ Schema.Struct({ id: AgentId });
117
- const AgentsReplaceDraftRequestJson = /* @__PURE__ */ Schema.Struct({
116
+ const AgentsReplaceDraftPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: AgentId }))();
117
+ const AgentsReplaceDraftRequestJson = /* @__PURE__ */ (() => Schema.Struct({
118
118
  revision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
119
119
  definition: AgentDefinition
120
- });
120
+ }))();
121
121
  const AgentsReplaceDraft200 = Agent;
122
122
  const AgentsReplaceDraft401 = UnauthorizedError;
123
123
  const AgentsReplaceDraft403 = ForbiddenError;
@@ -126,8 +126,8 @@ const AgentsReplaceDraft409 = ConflictError;
126
126
  const AgentsReplaceDraft422 = ValidationError;
127
127
  const AgentsReplaceDraft500 = InternalError;
128
128
  const AgentsReplaceDraft504 = GatewayTimeoutError;
129
- const AgentsPublishPathParams = /* @__PURE__ */ Schema.Struct({ id: AgentId });
130
- const AgentsPublishRequestJson = /* @__PURE__ */ Schema.Struct({ revision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) });
129
+ const AgentsPublishPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: AgentId }))();
130
+ const AgentsPublishRequestJson = /* @__PURE__ */ (() => Schema.Struct({ revision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) }))();
131
131
  const AgentsPublish200 = PublishAgentResponse;
132
132
  const AgentsPublish401 = UnauthorizedError;
133
133
  const AgentsPublish403 = ForbiddenError;
@@ -136,11 +136,11 @@ const AgentsPublish409 = ConflictError;
136
136
  const AgentsPublish422 = ValidationError;
137
137
  const AgentsPublish500 = InternalError;
138
138
  const AgentsPublish504 = GatewayTimeoutError;
139
- const AgentsListVersionsPathParams = /* @__PURE__ */ Schema.Struct({ id: AgentId });
140
- const AgentsListVersionsQuery = /* @__PURE__ */ Schema.Struct({
139
+ const AgentsListVersionsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: AgentId }))();
140
+ const AgentsListVersionsQuery = /* @__PURE__ */ (() => Schema.Struct({
141
141
  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])),
142
142
  cursor: Schema.optionalKey(Schema.Union([VersionCursor, Schema.Null]))
143
- });
143
+ }))();
144
144
  const AgentsListVersions200 = AgentVersionPage;
145
145
  const AgentsListVersions401 = UnauthorizedError;
146
146
  const AgentsListVersions403 = ForbiddenError;
@@ -148,10 +148,10 @@ const AgentsListVersions404 = ResourceNotFoundError;
148
148
  const AgentsListVersions422 = ValidationError;
149
149
  const AgentsListVersions500 = InternalError;
150
150
  const AgentsListVersions504 = GatewayTimeoutError;
151
- const AgentsGetVersionPathParams = /* @__PURE__ */ Schema.Struct({
151
+ const AgentsGetVersionPathParams = /* @__PURE__ */ (() => Schema.Struct({
152
152
  id: AgentId,
153
153
  version: Schema.String
154
- });
154
+ }))();
155
155
  const AgentsGetVersion200 = AgentVersion;
156
156
  const AgentsGetVersion401 = UnauthorizedError;
157
157
  const AgentsGetVersion403 = ForbiddenError;
@@ -3,11 +3,11 @@ import { AnalyticsQueryError, ApiKeySecurityMiddleware, ForbiddenError, GatewayT
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/analytics.ts
6
- const AnalyticsGetChannelStatsQuery = /* @__PURE__ */ Schema.Struct({
6
+ const AnalyticsGetChannelStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
7
7
  after: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null])),
8
8
  before: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null]))
9
- });
10
- const AnalyticsGetChannelStats200 = /* @__PURE__ */ Schema.Struct({ email: Schema.Struct({
9
+ }))();
10
+ const AnalyticsGetChannelStats200 = /* @__PURE__ */ (() => Schema.Struct({ email: Schema.Struct({
11
11
  sent: 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" })),
12
12
  deliveryRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
13
13
  uniqueOpenedMessages: 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" })),
@@ -17,62 +17,62 @@ const AnalyticsGetChannelStats200 = /* @__PURE__ */ Schema.Struct({ email: Schem
17
17
  clickTrackingEligibleDeliveredMessages: 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" })),
18
18
  uniqueMessageClickRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
19
19
  bounceRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
20
- }) });
20
+ }) }))();
21
21
  const AnalyticsGetChannelStats400 = AnalyticsQueryError;
22
22
  const AnalyticsGetChannelStats401 = UnauthorizedError;
23
23
  const AnalyticsGetChannelStats403 = ForbiddenError;
24
24
  const AnalyticsGetChannelStats422 = ValidationError;
25
25
  const AnalyticsGetChannelStats500 = InternalError;
26
26
  const AnalyticsGetChannelStats504 = GatewayTimeoutError;
27
- const AnalyticsGetDeliveryMetricsQuery = /* @__PURE__ */ Schema.Struct({
27
+ const AnalyticsGetDeliveryMetricsQuery = /* @__PURE__ */ (() => Schema.Struct({
28
28
  after: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null])),
29
29
  before: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null])),
30
30
  channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null]))
31
- });
32
- const AnalyticsGetDeliveryMetrics200 = /* @__PURE__ */ Schema.Struct({
31
+ }))();
32
+ const AnalyticsGetDeliveryMetrics200 = /* @__PURE__ */ (() => Schema.Struct({
33
33
  deliveredRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
34
34
  failedRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
35
35
  pendingRate: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })),
36
36
  avgDeliveryTimeMs: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" }))
37
- });
37
+ }))();
38
38
  const AnalyticsGetDeliveryMetrics400 = AnalyticsQueryError;
39
39
  const AnalyticsGetDeliveryMetrics401 = UnauthorizedError;
40
40
  const AnalyticsGetDeliveryMetrics403 = ForbiddenError;
41
41
  const AnalyticsGetDeliveryMetrics422 = ValidationError;
42
42
  const AnalyticsGetDeliveryMetrics500 = InternalError;
43
43
  const AnalyticsGetDeliveryMetrics504 = GatewayTimeoutError;
44
- const AnalyticsExportDataRequestJson = /* @__PURE__ */ Schema.Struct({
44
+ const AnalyticsExportDataRequestJson = /* @__PURE__ */ (() => Schema.Struct({
45
45
  after: AbsoluteInstant,
46
46
  before: AbsoluteInstant,
47
47
  format: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("csv"), Schema.Literal("json")]), Schema.Null])),
48
48
  includeChannels: Schema.optionalKey(Schema.Union([Schema.Array(Schema.Literal("email")), Schema.Null]))
49
- });
50
- const AnalyticsExportData200 = /* @__PURE__ */ Schema.Struct({
49
+ }))();
50
+ const AnalyticsExportData200 = /* @__PURE__ */ (() => Schema.Struct({
51
51
  content: Schema.String,
52
52
  mimeType: Schema.String,
53
53
  filename: Schema.String
54
- });
54
+ }))();
55
55
  const AnalyticsExportData400 = AnalyticsQueryError;
56
56
  const AnalyticsExportData401 = UnauthorizedError;
57
57
  const AnalyticsExportData403 = ForbiddenError;
58
58
  const AnalyticsExportData422 = ValidationError;
59
59
  const AnalyticsExportData500 = InternalError;
60
60
  const AnalyticsExportData504 = GatewayTimeoutError;
61
- const AnalyticsGetHourlyDistributionQuery = /* @__PURE__ */ Schema.Struct({
61
+ const AnalyticsGetHourlyDistributionQuery = /* @__PURE__ */ (() => Schema.Struct({
62
62
  after: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null])),
63
63
  before: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null]))
64
- });
65
- const AnalyticsGetHourlyDistribution200 = /* @__PURE__ */ Schema.Array(Schema.Struct({
64
+ }))();
65
+ const AnalyticsGetHourlyDistribution200 = /* @__PURE__ */ (() => Schema.Array(Schema.Struct({
66
66
  hour: Schema.String,
67
67
  count: 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" }))
68
- }));
68
+ })))();
69
69
  const AnalyticsGetHourlyDistribution400 = AnalyticsQueryError;
70
70
  const AnalyticsGetHourlyDistribution401 = UnauthorizedError;
71
71
  const AnalyticsGetHourlyDistribution403 = ForbiddenError;
72
72
  const AnalyticsGetHourlyDistribution422 = ValidationError;
73
73
  const AnalyticsGetHourlyDistribution500 = InternalError;
74
74
  const AnalyticsGetHourlyDistribution504 = GatewayTimeoutError;
75
- const AnalyticsGetStatsQuery = /* @__PURE__ */ Schema.Struct({
75
+ const AnalyticsGetStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
76
76
  after: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null])),
77
77
  before: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null])),
78
78
  groupBy: Schema.optionalKey(Schema.Union([Schema.Union([
@@ -81,18 +81,18 @@ const AnalyticsGetStatsQuery = /* @__PURE__ */ Schema.Struct({
81
81
  Schema.Literal("month")
82
82
  ]), Schema.Null])),
83
83
  channel: Schema.optionalKey(Schema.Union([Schema.Literal("email"), Schema.Null]))
84
- });
85
- const AnalyticsGetStats200 = /* @__PURE__ */ Schema.Struct({ volumeHistory: Schema.Array(Schema.Struct({
84
+ }))();
85
+ const AnalyticsGetStats200 = /* @__PURE__ */ (() => Schema.Struct({ volumeHistory: Schema.Array(Schema.Struct({
86
86
  date: Schema.String,
87
87
  email: 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" }))
88
- })) });
88
+ })) }))();
89
89
  const AnalyticsGetStats400 = AnalyticsQueryError;
90
90
  const AnalyticsGetStats401 = UnauthorizedError;
91
91
  const AnalyticsGetStats403 = ForbiddenError;
92
92
  const AnalyticsGetStats422 = ValidationError;
93
93
  const AnalyticsGetStats500 = InternalError;
94
94
  const AnalyticsGetStats504 = GatewayTimeoutError;
95
- const AnalyticsGetTopContactsQuery = /* @__PURE__ */ Schema.Struct({
95
+ const AnalyticsGetTopContactsQuery = /* @__PURE__ */ (() => Schema.Struct({
96
96
  after: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null])),
97
97
  before: Schema.optionalKey(Schema.Union([AbsoluteInstant, Schema.Null])),
98
98
  limit: Schema.optionalKey(Schema.Union([Schema.Finite.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])),
@@ -101,14 +101,14 @@ const AnalyticsGetTopContactsQuery = /* @__PURE__ */ Schema.Struct({
101
101
  Schema.Literal("received"),
102
102
  Schema.Literal("total")
103
103
  ]), Schema.Null]))
104
- });
105
- const AnalyticsGetTopContacts200 = /* @__PURE__ */ Schema.Array(Schema.Struct({
104
+ }))();
105
+ const AnalyticsGetTopContacts200 = /* @__PURE__ */ (() => Schema.Array(Schema.Struct({
106
106
  id: Schema.String,
107
107
  name: Schema.Union([Schema.String, Schema.Null]),
108
108
  email: Schema.Union([Schema.String, Schema.Null]),
109
109
  phone: Schema.Union([Schema.String, Schema.Null]),
110
110
  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" }))
111
- }));
111
+ })))();
112
112
  const AnalyticsGetTopContacts400 = AnalyticsQueryError;
113
113
  const AnalyticsGetTopContacts401 = UnauthorizedError;
114
114
  const AnalyticsGetTopContacts403 = ForbiddenError;
@@ -3,12 +3,12 @@ import { ApiKeyAccess, ApiKeyId, ApiKeySecurityMiddleware, BillingProviderError,
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/api-keys.ts
6
- const ApiKeyOwner = /* @__PURE__ */ Schema.Struct({
6
+ const ApiKeyOwner = /* @__PURE__ */ (() => Schema.Struct({
7
7
  id: Schema.String,
8
8
  name: Schema.String,
9
9
  email: Schema.String
10
- }).annotate({ identifier: "ApiKeyOwner" });
11
- const ApiKeyActivityPage = /* @__PURE__ */ Schema.Struct({
10
+ }).annotate({ identifier: "ApiKeyOwner" }))();
11
+ const ApiKeyActivityPage = /* @__PURE__ */ (() => Schema.Struct({
12
12
  items: Schema.Array(Schema.Struct({
13
13
  id: Schema.String,
14
14
  timestamp: Schema.String,
@@ -18,9 +18,9 @@ const ApiKeyActivityPage = /* @__PURE__ */ Schema.Struct({
18
18
  latency: Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" }))
19
19
  })),
20
20
  nextCursor: Schema.Union([Schema.String, Schema.Null])
21
- }).annotate({ identifier: "ApiKeyActivityPage" });
22
- const ApiKeyMailboxAccessUpdate = /* @__PURE__ */ Schema.Struct({ sendMode: MailboxSendMode }).annotate({ identifier: "ApiKeyMailboxAccessUpdate" });
23
- const ApiKey = /* @__PURE__ */ Schema.Struct({
21
+ }).annotate({ identifier: "ApiKeyActivityPage" }))();
22
+ const ApiKeyMailboxAccessUpdate = /* @__PURE__ */ (() => Schema.Struct({ sendMode: MailboxSendMode }).annotate({ identifier: "ApiKeyMailboxAccessUpdate" }))();
23
+ const ApiKey = /* @__PURE__ */ (() => Schema.Struct({
24
24
  id: Schema.String,
25
25
  name: Schema.String,
26
26
  key: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
@@ -33,8 +33,8 @@ const ApiKey = /* @__PURE__ */ Schema.Struct({
33
33
  isActive: Schema.Boolean,
34
34
  access: ApiKeyAccess,
35
35
  owner: Schema.Union([ApiKeyOwner, Schema.Null])
36
- }).annotate({ identifier: "ApiKey" });
37
- const ApiKeyWithSecret = /* @__PURE__ */ Schema.Struct({
36
+ }).annotate({ identifier: "ApiKey" }))();
37
+ const ApiKeyWithSecret = /* @__PURE__ */ (() => Schema.Struct({
38
38
  id: Schema.String,
39
39
  name: Schema.String,
40
40
  key: SensitiveString,
@@ -47,29 +47,29 @@ const ApiKeyWithSecret = /* @__PURE__ */ Schema.Struct({
47
47
  isActive: Schema.Boolean,
48
48
  access: ApiKeyAccess,
49
49
  owner: Schema.Union([ApiKeyOwner, Schema.Null])
50
- }).annotate({ identifier: "ApiKeyWithSecret" });
51
- const ApiKeyPage = /* @__PURE__ */ Schema.Struct({
50
+ }).annotate({ identifier: "ApiKeyWithSecret" }))();
51
+ const ApiKeyPage = /* @__PURE__ */ (() => Schema.Struct({
52
52
  items: Schema.Array(ApiKey),
53
53
  nextCursor: Schema.Union([Schema.String, Schema.Null])
54
- }).annotate({ identifier: "ApiKeyPage" });
55
- const ApiKeysListQuery = /* @__PURE__ */ Schema.Struct({
54
+ }).annotate({ identifier: "ApiKeyPage" }))();
55
+ const ApiKeysListQuery = /* @__PURE__ */ (() => Schema.Struct({
56
56
  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])),
57
57
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
58
58
  status: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("active"), Schema.Literal("revoked")]), Schema.Null])),
59
59
  search: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
60
- });
60
+ }))();
61
61
  const ApiKeysList200 = ApiKeyPage;
62
62
  const ApiKeysList401 = UnauthorizedError;
63
63
  const ApiKeysList403 = ForbiddenError;
64
64
  const ApiKeysList422 = ValidationError;
65
65
  const ApiKeysList500 = InternalError;
66
66
  const ApiKeysList504 = GatewayTimeoutError;
67
- const ApiKeysCreateRequestJson = /* @__PURE__ */ Schema.Struct({
67
+ const ApiKeysCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
68
68
  name: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(Schema.isMaxCodePoints(32).annotate({ expected: "a string with at most 32 code points" })).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" })),
69
69
  description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
70
70
  expiresAt: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
71
71
  access: Schema.optionalKey(Schema.Union([ApiKeyAccess, Schema.Null]).annotate({ description: "Defaults to full access. A restricted API key creating a key defaults to its own grants and cannot issue full access." }))
72
- });
72
+ }))();
73
73
  const ApiKeysCreate201 = ApiKeyWithSecret;
74
74
  const ApiKeysCreate401 = UnauthorizedError;
75
75
  const ApiKeysCreate402 = PaymentRequiredError;
@@ -80,7 +80,7 @@ const ApiKeysCreate429 = RateLimitedError;
80
80
  const ApiKeysCreate500 = InternalError;
81
81
  const ApiKeysCreate502 = BillingProviderError;
82
82
  const ApiKeysCreate504 = GatewayTimeoutError;
83
- const ApiKeysGetPathParams = /* @__PURE__ */ Schema.Struct({ id: ApiKeyId });
83
+ const ApiKeysGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
84
84
  const ApiKeysGet200 = ApiKey;
85
85
  const ApiKeysGet401 = UnauthorizedError;
86
86
  const ApiKeysGet403 = ForbiddenError;
@@ -88,12 +88,12 @@ const ApiKeysGet404 = ResourceNotFoundError;
88
88
  const ApiKeysGet422 = ValidationError;
89
89
  const ApiKeysGet500 = InternalError;
90
90
  const ApiKeysGet504 = GatewayTimeoutError;
91
- const ApiKeysUpdatePathParams = /* @__PURE__ */ Schema.Struct({ id: ApiKeyId });
92
- const ApiKeysUpdateRequestJson = /* @__PURE__ */ Schema.Struct({
91
+ const ApiKeysUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
92
+ const ApiKeysUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
93
93
  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(32).annotate({ expected: "a string with at most 32 code points" })).check(Schema.isMaxLength(32).annotate({ expected: "a value with a length of at most 32" })), Schema.Null])),
94
94
  description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
95
95
  mailboxes: Schema.optionalKey(Schema.Union([ApiKeyMailboxAccessUpdate, Schema.Null]).annotate({ description: "Changes the mailbox send mode of a key that holds mailbox access. Only a person can change it; the change applies to the key's next request." }))
96
- });
96
+ }))();
97
97
  const ApiKeysUpdate200 = ApiKey;
98
98
  const ApiKeysUpdate401 = UnauthorizedError;
99
99
  const ApiKeysUpdate403 = ForbiddenError;
@@ -101,11 +101,11 @@ const ApiKeysUpdate404 = ResourceNotFoundError;
101
101
  const ApiKeysUpdate422 = ValidationError;
102
102
  const ApiKeysUpdate500 = InternalError;
103
103
  const ApiKeysUpdate504 = GatewayTimeoutError;
104
- const ApiKeysGetActivityPathParams = /* @__PURE__ */ Schema.Struct({ id: ApiKeyId });
105
- const ApiKeysGetActivityQuery = /* @__PURE__ */ Schema.Struct({
104
+ const ApiKeysGetActivityPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
105
+ const ApiKeysGetActivityQuery = /* @__PURE__ */ (() => Schema.Struct({
106
106
  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])),
107
107
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
108
- });
108
+ }))();
109
109
  const ApiKeysGetActivity200 = ApiKeyActivityPage;
110
110
  const ApiKeysGetActivity401 = UnauthorizedError;
111
111
  const ApiKeysGetActivity403 = ForbiddenError;
@@ -113,7 +113,7 @@ const ApiKeysGetActivity404 = ResourceNotFoundError;
113
113
  const ApiKeysGetActivity422 = ValidationError;
114
114
  const ApiKeysGetActivity500 = InternalError;
115
115
  const ApiKeysGetActivity504 = GatewayTimeoutError;
116
- const ApiKeysRevokePathParams = /* @__PURE__ */ Schema.Struct({ id: ApiKeyId });
116
+ const ApiKeysRevokePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
117
117
  const ApiKeysRevoke200 = SuccessResponse;
118
118
  const ApiKeysRevoke401 = UnauthorizedError;
119
119
  const ApiKeysRevoke403 = ForbiddenError;
@@ -122,7 +122,7 @@ const ApiKeysRevoke422 = ValidationError;
122
122
  const ApiKeysRevoke500 = InternalError;
123
123
  const ApiKeysRevoke502 = BillingProviderError;
124
124
  const ApiKeysRevoke504 = GatewayTimeoutError;
125
- const ApiKeysRotatePathParams = /* @__PURE__ */ Schema.Struct({ id: ApiKeyId });
125
+ const ApiKeysRotatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
126
126
  const ApiKeysRotate200 = ApiKeyWithSecret;
127
127
  const ApiKeysRotate401 = UnauthorizedError;
128
128
  const ApiKeysRotate403 = ForbiddenError;
@@ -130,12 +130,12 @@ const ApiKeysRotate404 = ResourceNotFoundError;
130
130
  const ApiKeysRotate422 = ValidationError;
131
131
  const ApiKeysRotate500 = InternalError;
132
132
  const ApiKeysRotate504 = GatewayTimeoutError;
133
- const ApiKeysGetStatsPathParams = /* @__PURE__ */ Schema.Struct({ id: ApiKeyId });
134
- const ApiKeysGetStatsQuery = /* @__PURE__ */ Schema.Struct({
133
+ const ApiKeysGetStatsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
134
+ const ApiKeysGetStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
135
135
  after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
136
136
  before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
137
- });
138
- const ApiKeysGetStats200 = /* @__PURE__ */ Schema.Struct({
137
+ }))();
138
+ const ApiKeysGetStats200 = /* @__PURE__ */ (() => Schema.Struct({
139
139
  totalRequests: 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" })),
140
140
  successfulRequests: 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" })),
141
141
  failedRequests: 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" })),
@@ -143,7 +143,7 @@ const ApiKeysGetStats200 = /* @__PURE__ */ Schema.Struct({
143
143
  date: Schema.String,
144
144
  requests: 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" }))
145
145
  }))
146
- });
146
+ }))();
147
147
  const ApiKeysGetStats401 = UnauthorizedError;
148
148
  const ApiKeysGetStats403 = ForbiddenError;
149
149
  const ApiKeysGetStats404 = ResourceNotFoundError;
@@ -2,7 +2,7 @@ import { ApiKeySecurityMiddleware, AttachmentId, ForbiddenError, GatewayTimeoutE
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/attachments.ts
5
- const AttachmentList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(Schema.Struct({
5
+ const AttachmentList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Array(Schema.Struct({
6
6
  id: AttachmentId,
7
7
  messageId: MessageId,
8
8
  organizationId: OrganizationId,
@@ -12,8 +12,8 @@ const AttachmentList = /* @__PURE__ */ Schema.Struct({ items: Schema.Array(Schem
12
12
  contentId: Schema.Union([Schema.String, Schema.Null]),
13
13
  isInline: Schema.Boolean,
14
14
  createdAt: Schema.String
15
- })) }).annotate({ identifier: "AttachmentList" });
16
- const AttachmentsListQuery = /* @__PURE__ */ Schema.Struct({ messageId: MessageId });
15
+ })) }).annotate({ identifier: "AttachmentList" }))();
16
+ const AttachmentsListQuery = /* @__PURE__ */ (() => Schema.Struct({ messageId: MessageId }))();
17
17
  const AttachmentsList200 = AttachmentList;
18
18
  const AttachmentsList401 = UnauthorizedError;
19
19
  const AttachmentsList403 = ForbiddenError;
@@ -21,8 +21,8 @@ const AttachmentsList404 = ResourceNotFoundError;
21
21
  const AttachmentsList422 = ValidationError;
22
22
  const AttachmentsList500 = InternalError;
23
23
  const AttachmentsList504 = GatewayTimeoutError;
24
- const AttachmentsGetByIdPathParams = /* @__PURE__ */ Schema.Struct({ id: AttachmentId });
25
- const AttachmentsGetById200 = /* @__PURE__ */ Schema.Struct({
24
+ const AttachmentsGetByIdPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: AttachmentId }))();
25
+ const AttachmentsGetById200 = /* @__PURE__ */ (() => Schema.Struct({
26
26
  id: AttachmentId,
27
27
  messageId: MessageId,
28
28
  organizationId: OrganizationId,
@@ -32,27 +32,27 @@ const AttachmentsGetById200 = /* @__PURE__ */ Schema.Struct({
32
32
  contentId: Schema.Union([Schema.String, Schema.Null]),
33
33
  isInline: Schema.Boolean,
34
34
  createdAt: Schema.String
35
- });
35
+ }))();
36
36
  const AttachmentsGetById401 = UnauthorizedError;
37
37
  const AttachmentsGetById403 = ForbiddenError;
38
38
  const AttachmentsGetById404 = ResourceNotFoundError;
39
39
  const AttachmentsGetById422 = ValidationError;
40
40
  const AttachmentsGetById500 = InternalError;
41
41
  const AttachmentsGetById504 = GatewayTimeoutError;
42
- const AttachmentsRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: AttachmentId });
43
- const AttachmentsRemove200 = /* @__PURE__ */ Schema.Struct({
42
+ const AttachmentsRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: AttachmentId }))();
43
+ const AttachmentsRemove200 = /* @__PURE__ */ (() => Schema.Struct({
44
44
  success: Schema.Boolean,
45
45
  deletedId: AttachmentId
46
- });
46
+ }))();
47
47
  const AttachmentsRemove401 = UnauthorizedError;
48
48
  const AttachmentsRemove403 = ForbiddenError;
49
49
  const AttachmentsRemove404 = ResourceNotFoundError;
50
50
  const AttachmentsRemove422 = ValidationError;
51
51
  const AttachmentsRemove500 = InternalError;
52
52
  const AttachmentsRemove504 = GatewayTimeoutError;
53
- const AttachmentsDownloadUrlPathParams = /* @__PURE__ */ Schema.Struct({ id: AttachmentId });
54
- const AttachmentsDownloadUrlQuery = /* @__PURE__ */ Schema.Struct({ expiresIn: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])) });
55
- const AttachmentsDownloadUrl200 = /* @__PURE__ */ Schema.Struct({
53
+ const AttachmentsDownloadUrlPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: AttachmentId }))();
54
+ const AttachmentsDownloadUrlQuery = /* @__PURE__ */ (() => Schema.Struct({ expiresIn: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isFinite().annotate({ expected: "a finite number" })), Schema.Null])) }))();
55
+ const AttachmentsDownloadUrl200 = /* @__PURE__ */ (() => Schema.Struct({
56
56
  url: Schema.String,
57
57
  expiresAt: Schema.String,
58
58
  attachment: Schema.Struct({
@@ -66,7 +66,7 @@ const AttachmentsDownloadUrl200 = /* @__PURE__ */ Schema.Struct({
66
66
  isInline: Schema.Boolean,
67
67
  createdAt: Schema.String
68
68
  })
69
- });
69
+ }))();
70
70
  const AttachmentsDownloadUrl401 = UnauthorizedError;
71
71
  const AttachmentsDownloadUrl403 = ForbiddenError;
72
72
  const AttachmentsDownloadUrl404 = ResourceNotFoundError;