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,51 +2,51 @@ import { ApiKeySecurityMiddleware, BillingProviderError, ConflictError, ContactI
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/journeys.ts
5
- const JourneyStatus = /* @__PURE__ */ Schema.Union([
5
+ const JourneyStatus = /* @__PURE__ */ (() => Schema.Union([
6
6
  Schema.Literal("draft"),
7
7
  Schema.Literal("active"),
8
8
  Schema.Literal("paused"),
9
9
  Schema.Literal("archived")
10
- ]).annotate({ identifier: "JourneyStatus" });
11
- const JourneyId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^jrny_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
10
+ ]).annotate({ identifier: "JourneyStatus" }))();
11
+ const JourneyId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^jrny_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
12
12
  expected: "a string matching the RegExp ^jrny_[0-9a-hjkmnp-tv-z]{16,24}$",
13
13
  identifier: "JourneyId"
14
- })).pipe(Schema.brand("JourneyId"));
15
- const JourneyRunStatus = /* @__PURE__ */ Schema.Union([
14
+ })).pipe(Schema.brand("JourneyId")))();
15
+ const JourneyRunStatus = /* @__PURE__ */ (() => Schema.Union([
16
16
  Schema.Literal("active"),
17
17
  Schema.Literal("paused"),
18
18
  Schema.Literal("exited"),
19
19
  Schema.Literal("failed")
20
- ]).annotate({ identifier: "JourneyRunStatus" });
21
- const JourneyRunId = /* @__PURE__ */ Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^jrun_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
20
+ ]).annotate({ identifier: "JourneyRunStatus" }))();
21
+ const JourneyRunId = /* @__PURE__ */ (() => Schema.String.check(Schema.isPattern(/* @__PURE__ */ new RegExp("^jrun_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).annotate({
22
22
  expected: "a string matching the RegExp ^jrun_[0-9a-hjkmnp-tv-z]{16,24}$",
23
23
  identifier: "JourneyRunId"
24
- })).pipe(Schema.brand("JourneyRunId"));
25
- const JourneyRunExitReason = /* @__PURE__ */ Schema.Union([
24
+ })).pipe(Schema.brand("JourneyRunId")))();
25
+ const JourneyRunExitReason = /* @__PURE__ */ (() => Schema.Union([
26
26
  Schema.Literal("completed"),
27
27
  Schema.Literal("goal"),
28
28
  Schema.Literal("archived")
29
- ]).annotate({ identifier: "JourneyRunExitReason" });
30
- const JourneyRunStepOutcome = /* @__PURE__ */ Schema.Union([
29
+ ]).annotate({ identifier: "JourneyRunExitReason" }))();
30
+ const JourneyRunStepOutcome = /* @__PURE__ */ (() => Schema.Union([
31
31
  Schema.Literal("completed"),
32
32
  Schema.Literal("matched"),
33
33
  Schema.Literal("timed_out"),
34
34
  Schema.Literal("goal"),
35
35
  Schema.Literal("archived"),
36
36
  Schema.Literal("failed")
37
- ]).annotate({ identifier: "JourneyRunStepOutcome" });
38
- const JourneyRunCounts = /* @__PURE__ */ Schema.Struct({
37
+ ]).annotate({ identifier: "JourneyRunStepOutcome" }))();
38
+ const JourneyRunCounts = /* @__PURE__ */ (() => Schema.Struct({
39
39
  active: 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" })),
40
40
  paused: 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" })),
41
41
  exited: 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" })),
42
42
  failed: 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" }))
43
- }).annotate({ identifier: "JourneyRunCounts" });
44
- const JourneyRunTrigger = /* @__PURE__ */ Schema.Struct({
43
+ }).annotate({ identifier: "JourneyRunCounts" }))();
44
+ const JourneyRunTrigger = /* @__PURE__ */ (() => Schema.Struct({
45
45
  eventId: Schema.String,
46
46
  eventName: Schema.String,
47
47
  properties: JsonObject
48
- }).annotate({ identifier: "JourneyRunTrigger" });
49
- const JourneyListItem = /* @__PURE__ */ Schema.Struct({
48
+ }).annotate({ identifier: "JourneyRunTrigger" }))();
49
+ const JourneyListItem = /* @__PURE__ */ (() => Schema.Struct({
50
50
  id: JourneyId,
51
51
  name: Schema.String,
52
52
  status: JourneyStatus,
@@ -54,17 +54,17 @@ const JourneyListItem = /* @__PURE__ */ Schema.Struct({
54
54
  publishedAt: Schema.Union([Schema.String, Schema.Null]),
55
55
  createdAt: Schema.String,
56
56
  updatedAt: Schema.String
57
- }).annotate({ identifier: "JourneyListItem" });
58
- const DeleteJourneyResponse = /* @__PURE__ */ Schema.Struct({
57
+ }).annotate({ identifier: "JourneyListItem" }))();
58
+ const DeleteJourneyResponse = /* @__PURE__ */ (() => Schema.Struct({
59
59
  id: JourneyId,
60
60
  deleted: Schema.Literal(true)
61
- }).annotate({ identifier: "DeleteJourneyResponse" });
62
- const JourneyNodeStats = /* @__PURE__ */ Schema.Struct({
61
+ }).annotate({ identifier: "DeleteJourneyResponse" }))();
62
+ const JourneyNodeStats = /* @__PURE__ */ (() => Schema.Struct({
63
63
  nodeId: JourneyNodeId,
64
64
  current: 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" })),
65
65
  entered: 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" }))
66
- }).annotate({ identifier: "JourneyNodeStats" });
67
- const JourneyRunStep = /* @__PURE__ */ Schema.Struct({
66
+ }).annotate({ identifier: "JourneyNodeStats" }))();
67
+ const JourneyRunStep = /* @__PURE__ */ (() => Schema.Struct({
68
68
  nodeId: JourneyNodeId,
69
69
  type: Schema.String,
70
70
  enteredAt: Schema.String,
@@ -73,8 +73,8 @@ const JourneyRunStep = /* @__PURE__ */ Schema.Struct({
73
73
  nextNodeId: Schema.Union([JourneyNodeId, Schema.Null]),
74
74
  messageId: Schema.Union([MessageId, Schema.Null]),
75
75
  error: Schema.Union([Schema.String, Schema.Null])
76
- }).annotate({ identifier: "JourneyRunStep" });
77
- const JourneyRun = /* @__PURE__ */ Schema.Struct({
76
+ }).annotate({ identifier: "JourneyRunStep" }))();
77
+ const JourneyRun = /* @__PURE__ */ (() => Schema.Struct({
78
78
  id: JourneyRunId,
79
79
  journeyId: JourneyId,
80
80
  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" })),
@@ -88,18 +88,18 @@ const JourneyRun = /* @__PURE__ */ Schema.Struct({
88
88
  trigger: JourneyRunTrigger,
89
89
  enteredAt: Schema.String,
90
90
  endedAt: Schema.Union([Schema.String, Schema.Null])
91
- }).annotate({ identifier: "JourneyRun" });
92
- const JourneyPage = /* @__PURE__ */ Schema.Struct({
91
+ }).annotate({ identifier: "JourneyRun" }))();
92
+ const JourneyPage = /* @__PURE__ */ (() => Schema.Struct({
93
93
  items: Schema.Array(JourneyListItem),
94
94
  nextCursor: Schema.Union([Schema.String, Schema.Null])
95
- }).annotate({ identifier: "JourneyPage" });
96
- const JourneyStats = /* @__PURE__ */ Schema.Struct({
95
+ }).annotate({ identifier: "JourneyPage" }))();
96
+ const JourneyStats = /* @__PURE__ */ (() => Schema.Struct({
97
97
  journeyId: JourneyId,
98
98
  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" })),
99
99
  runs: JourneyRunCounts,
100
100
  nodes: Schema.Array(JourneyNodeStats)
101
- }).annotate({ identifier: "JourneyStats" });
102
- const JourneyRunDetail = /* @__PURE__ */ Schema.Struct({
101
+ }).annotate({ identifier: "JourneyStats" }))();
102
+ const JourneyRunDetail = /* @__PURE__ */ (() => Schema.Struct({
103
103
  id: JourneyRunId,
104
104
  journeyId: JourneyId,
105
105
  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" })),
@@ -114,12 +114,12 @@ const JourneyRunDetail = /* @__PURE__ */ Schema.Struct({
114
114
  enteredAt: Schema.String,
115
115
  endedAt: Schema.Union([Schema.String, Schema.Null]),
116
116
  steps: Schema.Array(JourneyRunStep)
117
- }).annotate({ identifier: "JourneyRunDetail" });
118
- const JourneyRunPage = /* @__PURE__ */ Schema.Struct({
117
+ }).annotate({ identifier: "JourneyRunDetail" }))();
118
+ const JourneyRunPage = /* @__PURE__ */ (() => Schema.Struct({
119
119
  items: Schema.Array(JourneyRun),
120
120
  nextCursor: Schema.Union([Schema.String, Schema.Null])
121
- }).annotate({ identifier: "JourneyRunPage" });
122
- const Journey = /* @__PURE__ */ Schema.Struct({
121
+ }).annotate({ identifier: "JourneyRunPage" }))();
122
+ const Journey = /* @__PURE__ */ (() => Schema.Struct({
123
123
  id: JourneyId,
124
124
  name: Schema.String,
125
125
  status: JourneyStatus,
@@ -129,39 +129,39 @@ const Journey = /* @__PURE__ */ Schema.Struct({
129
129
  publishedAt: Schema.Union([Schema.String, Schema.Null]),
130
130
  createdAt: Schema.String,
131
131
  updatedAt: Schema.String
132
- }).annotate({ identifier: "Journey" });
133
- const JourneyVersion = /* @__PURE__ */ Schema.Struct({
132
+ }).annotate({ identifier: "Journey" }))();
133
+ const JourneyVersion = /* @__PURE__ */ (() => Schema.Struct({
134
134
  journeyId: JourneyId,
135
135
  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" })),
136
136
  definition: JourneyDefinition,
137
137
  publishedAt: Schema.String
138
- }).annotate({ identifier: "JourneyVersion" });
139
- const JourneysListQuery = /* @__PURE__ */ Schema.Struct({
138
+ }).annotate({ identifier: "JourneyVersion" }))();
139
+ const JourneysListQuery = /* @__PURE__ */ (() => Schema.Struct({
140
140
  status: Schema.optionalKey(Schema.Union([JourneyStatus, Schema.Null])),
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([Cursor, Schema.Null]))
143
- });
143
+ }))();
144
144
  const JourneysList200 = JourneyPage;
145
145
  const JourneysList401 = UnauthorizedError;
146
146
  const JourneysList403 = ForbiddenError;
147
147
  const JourneysList422 = ValidationError;
148
148
  const JourneysList500 = InternalError;
149
149
  const JourneysList504 = GatewayTimeoutError;
150
- const JourneysCreateRequestJson = /* @__PURE__ */ Schema.Struct({
150
+ const JourneysCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
151
151
  name: JourneyName,
152
152
  definition: JourneyDefinition
153
- });
153
+ }))();
154
154
  const JourneysCreate201 = Journey;
155
155
  const JourneysCreate401 = UnauthorizedError;
156
156
  const JourneysCreate402 = PaymentRequiredError;
157
- const JourneysCreate403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
157
+ const JourneysCreate403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
158
158
  const JourneysCreate404 = ResourceNotFoundError;
159
159
  const JourneysCreate409 = ConflictError;
160
160
  const JourneysCreate422 = ValidationError;
161
161
  const JourneysCreate500 = InternalError;
162
162
  const JourneysCreate502 = BillingProviderError;
163
163
  const JourneysCreate504 = GatewayTimeoutError;
164
- const JourneysGetPathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
164
+ const JourneysGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: JourneyId }))();
165
165
  const JourneysGet200 = Journey;
166
166
  const JourneysGet401 = UnauthorizedError;
167
167
  const JourneysGet403 = ForbiddenError;
@@ -169,7 +169,7 @@ const JourneysGet404 = ResourceNotFoundError;
169
169
  const JourneysGet422 = ValidationError;
170
170
  const JourneysGet500 = InternalError;
171
171
  const JourneysGet504 = GatewayTimeoutError;
172
- const JourneysRemovePathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
172
+ const JourneysRemovePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: JourneyId }))();
173
173
  const JourneysRemove200 = DeleteJourneyResponse;
174
174
  const JourneysRemove401 = UnauthorizedError;
175
175
  const JourneysRemove403 = ForbiddenError;
@@ -178,8 +178,8 @@ const JourneysRemove409 = ConflictError;
178
178
  const JourneysRemove422 = ValidationError;
179
179
  const JourneysRemove500 = InternalError;
180
180
  const JourneysRemove504 = GatewayTimeoutError;
181
- const JourneysUpdatePathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
182
- const JourneysUpdateRequestJson = /* @__PURE__ */ Schema.Struct({ name: JourneyName });
181
+ const JourneysUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: JourneyId }))();
182
+ const JourneysUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({ name: JourneyName }))();
183
183
  const JourneysUpdate200 = Journey;
184
184
  const JourneysUpdate401 = UnauthorizedError;
185
185
  const JourneysUpdate403 = ForbiddenError;
@@ -187,7 +187,7 @@ const JourneysUpdate404 = ResourceNotFoundError;
187
187
  const JourneysUpdate422 = ValidationError;
188
188
  const JourneysUpdate500 = InternalError;
189
189
  const JourneysUpdate504 = GatewayTimeoutError;
190
- const JourneysArchivePathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
190
+ const JourneysArchivePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: JourneyId }))();
191
191
  const JourneysArchive200 = Journey;
192
192
  const JourneysArchive401 = UnauthorizedError;
193
193
  const JourneysArchive403 = ForbiddenError;
@@ -196,22 +196,22 @@ const JourneysArchive409 = ConflictError;
196
196
  const JourneysArchive422 = ValidationError;
197
197
  const JourneysArchive500 = InternalError;
198
198
  const JourneysArchive504 = GatewayTimeoutError;
199
- const JourneysReplaceDraftPathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
200
- const JourneysReplaceDraftRequestJson = /* @__PURE__ */ Schema.Struct({
199
+ const JourneysReplaceDraftPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: JourneyId }))();
200
+ const JourneysReplaceDraftRequestJson = /* @__PURE__ */ (() => Schema.Struct({
201
201
  revision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
202
202
  definition: JourneyDefinition
203
- });
203
+ }))();
204
204
  const JourneysReplaceDraft200 = Journey;
205
205
  const JourneysReplaceDraft401 = UnauthorizedError;
206
206
  const JourneysReplaceDraft402 = PaymentRequiredError;
207
- const JourneysReplaceDraft403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
207
+ const JourneysReplaceDraft403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
208
208
  const JourneysReplaceDraft404 = ResourceNotFoundError;
209
209
  const JourneysReplaceDraft409 = ConflictError;
210
210
  const JourneysReplaceDraft422 = ValidationError;
211
211
  const JourneysReplaceDraft500 = InternalError;
212
212
  const JourneysReplaceDraft502 = BillingProviderError;
213
213
  const JourneysReplaceDraft504 = GatewayTimeoutError;
214
- const JourneysPausePathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
214
+ const JourneysPausePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: JourneyId }))();
215
215
  const JourneysPause200 = Journey;
216
216
  const JourneysPause401 = UnauthorizedError;
217
217
  const JourneysPause403 = ForbiddenError;
@@ -220,36 +220,36 @@ const JourneysPause409 = ConflictError;
220
220
  const JourneysPause422 = ValidationError;
221
221
  const JourneysPause500 = InternalError;
222
222
  const JourneysPause504 = GatewayTimeoutError;
223
- const JourneysPublishPathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
224
- const JourneysPublishRequestJson = /* @__PURE__ */ Schema.Struct({ revision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) });
223
+ const JourneysPublishPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: JourneyId }))();
224
+ const JourneysPublishRequestJson = /* @__PURE__ */ (() => Schema.Struct({ revision: Schema.String.check(Schema.isMinLength(1).annotate({ expected: "a value with a length of at least 1" })) }))();
225
225
  const JourneysPublish200 = Journey;
226
226
  const JourneysPublish401 = UnauthorizedError;
227
227
  const JourneysPublish402 = PaymentRequiredError;
228
- const JourneysPublish403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
228
+ const JourneysPublish403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
229
229
  const JourneysPublish404 = ResourceNotFoundError;
230
230
  const JourneysPublish409 = ConflictError;
231
231
  const JourneysPublish422 = ValidationError;
232
232
  const JourneysPublish500 = InternalError;
233
233
  const JourneysPublish502 = BillingProviderError;
234
234
  const JourneysPublish504 = GatewayTimeoutError;
235
- const JourneysResumePathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
235
+ const JourneysResumePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: JourneyId }))();
236
236
  const JourneysResume200 = Journey;
237
237
  const JourneysResume401 = UnauthorizedError;
238
238
  const JourneysResume402 = PaymentRequiredError;
239
- const JourneysResume403 = /* @__PURE__ */ Schema.Union([FlagDisabledError, ForbiddenError]);
239
+ const JourneysResume403 = /* @__PURE__ */ (() => Schema.Union([FlagDisabledError, ForbiddenError]))();
240
240
  const JourneysResume404 = ResourceNotFoundError;
241
241
  const JourneysResume409 = ConflictError;
242
242
  const JourneysResume422 = ValidationError;
243
243
  const JourneysResume500 = InternalError;
244
244
  const JourneysResume502 = BillingProviderError;
245
245
  const JourneysResume504 = GatewayTimeoutError;
246
- const JourneysListRunsPathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
247
- const JourneysListRunsQuery = /* @__PURE__ */ Schema.Struct({
246
+ const JourneysListRunsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: JourneyId }))();
247
+ const JourneysListRunsQuery = /* @__PURE__ */ (() => Schema.Struct({
248
248
  status: Schema.optionalKey(Schema.Union([JourneyRunStatus, Schema.Null])),
249
249
  contactId: Schema.optionalKey(Schema.Union([ContactId, Schema.Null])),
250
250
  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])),
251
251
  cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
252
- });
252
+ }))();
253
253
  const JourneysListRuns200 = JourneyRunPage;
254
254
  const JourneysListRuns401 = UnauthorizedError;
255
255
  const JourneysListRuns403 = ForbiddenError;
@@ -257,10 +257,10 @@ const JourneysListRuns404 = ResourceNotFoundError;
257
257
  const JourneysListRuns422 = ValidationError;
258
258
  const JourneysListRuns500 = InternalError;
259
259
  const JourneysListRuns504 = GatewayTimeoutError;
260
- const JourneysGetRunPathParams = /* @__PURE__ */ Schema.Struct({
260
+ const JourneysGetRunPathParams = /* @__PURE__ */ (() => Schema.Struct({
261
261
  id: JourneyId,
262
262
  runId: JourneyRunId
263
- });
263
+ }))();
264
264
  const JourneysGetRun200 = JourneyRunDetail;
265
265
  const JourneysGetRun401 = UnauthorizedError;
266
266
  const JourneysGetRun403 = ForbiddenError;
@@ -268,8 +268,8 @@ const JourneysGetRun404 = ResourceNotFoundError;
268
268
  const JourneysGetRun422 = ValidationError;
269
269
  const JourneysGetRun500 = InternalError;
270
270
  const JourneysGetRun504 = GatewayTimeoutError;
271
- const JourneysStatsPathParams = /* @__PURE__ */ Schema.Struct({ id: JourneyId });
272
- const JourneysStatsQuery = /* @__PURE__ */ Schema.Struct({ version: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])) });
271
+ const JourneysStatsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: JourneyId }))();
272
+ const JourneysStatsQuery = /* @__PURE__ */ (() => Schema.Struct({ version: Schema.optionalKey(Schema.Union([Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })).check(Schema.isGreaterThan(0).annotate({ expected: "a value greater than 0" })), Schema.Null])) }))();
273
273
  const JourneysStats200 = JourneyStats;
274
274
  const JourneysStats401 = UnauthorizedError;
275
275
  const JourneysStats403 = ForbiddenError;
@@ -277,10 +277,10 @@ const JourneysStats404 = ResourceNotFoundError;
277
277
  const JourneysStats422 = ValidationError;
278
278
  const JourneysStats500 = InternalError;
279
279
  const JourneysStats504 = GatewayTimeoutError;
280
- const JourneysGetVersionPathParams = /* @__PURE__ */ Schema.Struct({
280
+ const JourneysGetVersionPathParams = /* @__PURE__ */ (() => Schema.Struct({
281
281
  id: JourneyId,
282
282
  version: Schema.String
283
- });
283
+ }))();
284
284
  const JourneysGetVersion200 = JourneyVersion;
285
285
  const JourneysGetVersion401 = UnauthorizedError;
286
286
  const JourneysGetVersion403 = ForbiddenError;