samva 0.33.0 → 0.35.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 (117) hide show
  1. package/README.md +1 -1
  2. package/dist/client/sdk.gen.d.ts +225 -251
  3. package/dist/client/sdk.gen.js +85 -211
  4. package/dist/client/types.gen.d.ts +2897 -403
  5. package/dist/effect/agents.d.ts +28 -13
  6. package/dist/effect/agents.js +5 -1
  7. package/dist/effect/analytics.d.ts +15 -15
  8. package/dist/effect/api-keys.d.ts +27 -18
  9. package/dist/effect/campaigns.d.ts +721 -65
  10. package/dist/effect/categories.d.ts +3 -3
  11. package/dist/effect/contact-groups.d.ts +15 -15
  12. package/dist/effect/contacts.d.ts +56 -52
  13. package/dist/effect/conversations.d.ts +45 -45
  14. package/dist/effect/email.d.ts +82 -82
  15. package/dist/effect/errors.d.ts +1 -1
  16. package/dist/effect/errors.js +2 -2
  17. package/dist/effect/extension-installations.d.ts +11 -11
  18. package/dist/effect/extensions.d.ts +16 -16
  19. package/dist/effect/generated/agents.d.ts +1063 -33
  20. package/dist/effect/generated/agents.js +133 -11
  21. package/dist/effect/generated/analytics.d.ts +109 -136
  22. package/dist/effect/generated/analytics.js +65 -36
  23. package/dist/effect/generated/api-keys.d.ts +240 -19
  24. package/dist/effect/generated/api-keys.js +24 -8
  25. package/dist/effect/generated/attachments.d.ts +89 -1
  26. package/dist/effect/generated/attachments.js +10 -2
  27. package/dist/effect/generated/brands.d.ts +133 -1
  28. package/dist/effect/generated/brands.js +22 -10
  29. package/dist/effect/generated/campaigns.d.ts +1442 -140
  30. package/dist/effect/generated/campaigns.js +82 -20
  31. package/dist/effect/generated/contact-events.d.ts +26 -4
  32. package/dist/effect/generated/contact-events.js +5 -3
  33. package/dist/effect/generated/contact-groups.d.ts +233 -13
  34. package/dist/effect/generated/contact-groups.js +33 -17
  35. package/dist/effect/generated/contacts.d.ts +634 -96
  36. package/dist/effect/generated/contacts.js +82 -20
  37. package/dist/effect/generated/conversations.d.ts +398 -106
  38. package/dist/effect/generated/conversations.js +96 -22
  39. package/dist/effect/generated/custom-fields.d.ts +89 -1
  40. package/dist/effect/generated/custom-fields.js +11 -3
  41. package/dist/effect/generated/email.d.ts +1447 -83
  42. package/dist/effect/generated/email.js +167 -43
  43. package/dist/effect/generated/events.d.ts +51 -7
  44. package/dist/effect/generated/events.js +9 -5
  45. package/dist/effect/generated/extension-installations.d.ts +208 -10
  46. package/dist/effect/generated/extension-installations.js +26 -8
  47. package/dist/effect/generated/extensions.d.ts +123 -13
  48. package/dist/effect/generated/extensions.js +20 -10
  49. package/dist/effect/generated/feedback.d.ts +23 -1
  50. package/dist/effect/generated/feedback.js +6 -4
  51. package/dist/effect/generated/journeys.d.ts +684 -16
  52. package/dist/effect/generated/journeys.js +37 -9
  53. package/dist/effect/generated/mailboxes.d.ts +3085 -627
  54. package/dist/effect/generated/mailboxes.js +340 -141
  55. package/dist/effect/generated/media.d.ts +125 -15
  56. package/dist/effect/generated/media.js +15 -2
  57. package/dist/effect/generated/messages.d.ts +2036 -117
  58. package/dist/effect/generated/messages.js +286 -54
  59. package/dist/effect/generated/namespaces.d.ts +209 -25
  60. package/dist/effect/generated/namespaces.js +27 -9
  61. package/dist/effect/generated/newsletter-domains.d.ts +98 -12
  62. package/dist/effect/generated/newsletter-domains.js +20 -13
  63. package/dist/effect/generated/newsletter-issues.d.ts +354 -19
  64. package/dist/effect/generated/newsletter-issues.js +162 -98
  65. package/dist/effect/generated/newsletters.d.ts +123 -13
  66. package/dist/effect/generated/newsletters.js +19 -9
  67. package/dist/effect/generated/operations.d.ts +76 -10
  68. package/dist/effect/generated/operations.js +12 -6
  69. package/dist/effect/generated/organizations.d.ts +287 -7
  70. package/dist/effect/generated/organizations.js +33 -5
  71. package/dist/effect/generated/scheduled-messages.d.ts +4427 -99
  72. package/dist/effect/generated/scheduled-messages.js +71 -12
  73. package/dist/effect/generated/shared.d.ts +2213 -190
  74. package/dist/effect/generated/shared.js +527 -76
  75. package/dist/effect/generated/subscriptions.d.ts +23 -1
  76. package/dist/effect/generated/subscriptions.js +6 -4
  77. package/dist/effect/generated/templates.d.ts +1718 -136
  78. package/dist/effect/generated/templates.js +421 -226
  79. package/dist/effect/generated/topic-forms.d.ts +111 -1
  80. package/dist/effect/generated/topic-forms.js +23 -13
  81. package/dist/effect/generated/topics.d.ts +353 -43
  82. package/dist/effect/generated/topics.js +67 -19
  83. package/dist/effect/generated/webhooks.d.ts +308 -46
  84. package/dist/effect/generated/webhooks.js +67 -19
  85. package/dist/effect/generated/whoami.d.ts +35 -1
  86. package/dist/effect/generated/whoami.js +4 -2
  87. package/dist/effect/generated-metadata.d.ts +20 -0
  88. package/dist/effect/generated-metadata.js +10 -0
  89. package/dist/effect/index.js +2 -2
  90. package/dist/effect/internal/client.js +1 -1
  91. package/dist/effect/internal/email-sender.d.ts +1 -1
  92. package/dist/effect/internal/send.d.ts +1 -1
  93. package/dist/effect/journeys.d.ts +105 -19
  94. package/dist/effect/mailboxes.d.ts +405 -174
  95. package/dist/effect/media.d.ts +1 -1
  96. package/dist/effect/messages.d.ts +40 -40
  97. package/dist/effect/namespaces.d.ts +15 -15
  98. package/dist/effect/newsletter-domains.d.ts +5 -5
  99. package/dist/effect/newsletters.d.ts +1 -1
  100. package/dist/effect/operations.d.ts +11 -11
  101. package/dist/effect/organizations.d.ts +2 -2
  102. package/dist/effect/scheduled-messages.d.ts +863 -8
  103. package/dist/effect/templates.d.ts +37 -37
  104. package/dist/effect/topics.d.ts +21 -21
  105. package/dist/effect/webhooks.d.ts +28 -26
  106. package/dist/index.js +2 -2
  107. package/dist/normalize.js +13 -1
  108. package/dist/package.js +1 -1
  109. package/dist/promises/client.d.ts +1 -1
  110. package/dist/promises/client.js +2 -2
  111. package/dist/promises/errors.gen.d.ts +22 -2
  112. package/dist/promises/errors.gen.js +60 -2
  113. package/dist/promises/index.js +2 -2
  114. package/dist/promises/types.gen.d.ts +1 -1
  115. package/dist/service-map.d.ts +9 -0
  116. package/dist/service-map.js +5 -0
  117. package/package.json +9 -8
@@ -1,5 +1,5 @@
1
1
  import { SensitiveString } from "../runtime.js";
2
- import { ApiKeyAccess, ApiKeyId, ApiKeySecurityMiddleware, BillingProviderError, Cursor, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendMode, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
2
+ import { ApiKeyAccess, ApiKeyId, ApiKeySecurityMiddleware, BillingProviderError, ForbiddenError, GatewayTimeoutError, InternalError, MailboxSendMode, MalformedRequestError, PaymentRequiredError, RateLimitedError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
3
3
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
4
4
  import * as Schema from "effect/Schema";
5
5
  // src/effect/generated/api-keys.ts
@@ -54,11 +54,12 @@ const ApiKeyPage = /* @__PURE__ */ (() => Schema.Struct({
54
54
  }).annotate({ identifier: "ApiKeyPage" }))();
55
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
- cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null])),
58
- status: Schema.optionalKey(Schema.Union([Schema.Union([Schema.Literal("active"), Schema.Literal("revoked")]), Schema.Null])),
59
- search: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
57
+ cursor: Schema.optionalKey(Schema.String),
58
+ status: Schema.optionalKey(Schema.Union([Schema.Literal("active"), Schema.Literal("revoked")])),
59
+ search: Schema.optionalKey(Schema.String)
60
60
  }))();
61
61
  const ApiKeysList200 = ApiKeyPage;
62
+ const ApiKeysList400 = MalformedRequestError;
62
63
  const ApiKeysList401 = UnauthorizedError;
63
64
  const ApiKeysList403 = ForbiddenError;
64
65
  const ApiKeysList422 = ValidationError;
@@ -71,6 +72,7 @@ const ApiKeysCreateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
71
72
  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
73
  }))();
73
74
  const ApiKeysCreate201 = ApiKeyWithSecret;
75
+ const ApiKeysCreate400 = MalformedRequestError;
74
76
  const ApiKeysCreate401 = UnauthorizedError;
75
77
  const ApiKeysCreate402 = PaymentRequiredError;
76
78
  const ApiKeysCreate403 = ForbiddenError;
@@ -82,6 +84,7 @@ const ApiKeysCreate502 = BillingProviderError;
82
84
  const ApiKeysCreate504 = GatewayTimeoutError;
83
85
  const ApiKeysGetPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
84
86
  const ApiKeysGet200 = ApiKey;
87
+ const ApiKeysGet400 = MalformedRequestError;
85
88
  const ApiKeysGet401 = UnauthorizedError;
86
89
  const ApiKeysGet403 = ForbiddenError;
87
90
  const ApiKeysGet404 = ResourceNotFoundError;
@@ -95,6 +98,7 @@ const ApiKeysUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
95
98
  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
99
  }))();
97
100
  const ApiKeysUpdate200 = ApiKey;
101
+ const ApiKeysUpdate400 = MalformedRequestError;
98
102
  const ApiKeysUpdate401 = UnauthorizedError;
99
103
  const ApiKeysUpdate403 = ForbiddenError;
100
104
  const ApiKeysUpdate404 = ResourceNotFoundError;
@@ -104,9 +108,10 @@ const ApiKeysUpdate504 = GatewayTimeoutError;
104
108
  const ApiKeysGetActivityPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
105
109
  const ApiKeysGetActivityQuery = /* @__PURE__ */ (() => Schema.Struct({
106
110
  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
- cursor: Schema.optionalKey(Schema.Union([Cursor, Schema.Null]))
111
+ cursor: Schema.optionalKey(Schema.String)
108
112
  }))();
109
113
  const ApiKeysGetActivity200 = ApiKeyActivityPage;
114
+ const ApiKeysGetActivity400 = MalformedRequestError;
110
115
  const ApiKeysGetActivity401 = UnauthorizedError;
111
116
  const ApiKeysGetActivity403 = ForbiddenError;
112
117
  const ApiKeysGetActivity404 = ResourceNotFoundError;
@@ -115,6 +120,7 @@ const ApiKeysGetActivity500 = InternalError;
115
120
  const ApiKeysGetActivity504 = GatewayTimeoutError;
116
121
  const ApiKeysRevokePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
117
122
  const ApiKeysRevoke200 = SuccessResponse;
123
+ const ApiKeysRevoke400 = MalformedRequestError;
118
124
  const ApiKeysRevoke401 = UnauthorizedError;
119
125
  const ApiKeysRevoke403 = ForbiddenError;
120
126
  const ApiKeysRevoke404 = ResourceNotFoundError;
@@ -124,6 +130,7 @@ const ApiKeysRevoke502 = BillingProviderError;
124
130
  const ApiKeysRevoke504 = GatewayTimeoutError;
125
131
  const ApiKeysRotatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
126
132
  const ApiKeysRotate200 = ApiKeyWithSecret;
133
+ const ApiKeysRotate400 = MalformedRequestError;
127
134
  const ApiKeysRotate401 = UnauthorizedError;
128
135
  const ApiKeysRotate403 = ForbiddenError;
129
136
  const ApiKeysRotate404 = ResourceNotFoundError;
@@ -132,8 +139,8 @@ const ApiKeysRotate500 = InternalError;
132
139
  const ApiKeysRotate504 = GatewayTimeoutError;
133
140
  const ApiKeysGetStatsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
134
141
  const ApiKeysGetStatsQuery = /* @__PURE__ */ (() => Schema.Struct({
135
- after: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
136
- before: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
142
+ after: Schema.optionalKey(Schema.String),
143
+ before: Schema.optionalKey(Schema.String)
137
144
  }))();
138
145
  const ApiKeysGetStats200 = /* @__PURE__ */ (() => Schema.Struct({
139
146
  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" })),
@@ -144,6 +151,7 @@ const ApiKeysGetStats200 = /* @__PURE__ */ (() => Schema.Struct({
144
151
  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
152
  }))
146
153
  }))();
154
+ const ApiKeysGetStats400 = MalformedRequestError;
147
155
  const ApiKeysGetStats401 = UnauthorizedError;
148
156
  const ApiKeysGetStats403 = ForbiddenError;
149
157
  const ApiKeysGetStats404 = ResourceNotFoundError;
@@ -154,6 +162,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
154
162
  query: ApiKeysListQuery,
155
163
  success: ApiKeysList200,
156
164
  error: [
165
+ ApiKeysList400.pipe(HttpApiSchema.status(400)),
157
166
  ApiKeysList401.pipe(HttpApiSchema.status(401)),
158
167
  ApiKeysList403.pipe(HttpApiSchema.status(403)),
159
168
  ApiKeysList422.pipe(HttpApiSchema.status(422)),
@@ -164,6 +173,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
164
173
  payload: ApiKeysCreateRequestJson,
165
174
  success: ApiKeysCreate201.pipe(HttpApiSchema.status(201)),
166
175
  error: [
176
+ ApiKeysCreate400.pipe(HttpApiSchema.status(400)),
167
177
  ApiKeysCreate401.pipe(HttpApiSchema.status(401)),
168
178
  ApiKeysCreate402.pipe(HttpApiSchema.status(402)),
169
179
  ApiKeysCreate403.pipe(HttpApiSchema.status(403)),
@@ -178,6 +188,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
178
188
  params: ApiKeysGetPathParams,
179
189
  success: ApiKeysGet200,
180
190
  error: [
191
+ ApiKeysGet400.pipe(HttpApiSchema.status(400)),
181
192
  ApiKeysGet401.pipe(HttpApiSchema.status(401)),
182
193
  ApiKeysGet403.pipe(HttpApiSchema.status(403)),
183
194
  ApiKeysGet404.pipe(HttpApiSchema.status(404)),
@@ -190,6 +201,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
190
201
  payload: ApiKeysUpdateRequestJson,
191
202
  success: ApiKeysUpdate200,
192
203
  error: [
204
+ ApiKeysUpdate400.pipe(HttpApiSchema.status(400)),
193
205
  ApiKeysUpdate401.pipe(HttpApiSchema.status(401)),
194
206
  ApiKeysUpdate403.pipe(HttpApiSchema.status(403)),
195
207
  ApiKeysUpdate404.pipe(HttpApiSchema.status(404)),
@@ -202,6 +214,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
202
214
  query: ApiKeysGetActivityQuery,
203
215
  success: ApiKeysGetActivity200,
204
216
  error: [
217
+ ApiKeysGetActivity400.pipe(HttpApiSchema.status(400)),
205
218
  ApiKeysGetActivity401.pipe(HttpApiSchema.status(401)),
206
219
  ApiKeysGetActivity403.pipe(HttpApiSchema.status(403)),
207
220
  ApiKeysGetActivity404.pipe(HttpApiSchema.status(404)),
@@ -213,6 +226,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
213
226
  params: ApiKeysRevokePathParams,
214
227
  success: ApiKeysRevoke200,
215
228
  error: [
229
+ ApiKeysRevoke400.pipe(HttpApiSchema.status(400)),
216
230
  ApiKeysRevoke401.pipe(HttpApiSchema.status(401)),
217
231
  ApiKeysRevoke403.pipe(HttpApiSchema.status(403)),
218
232
  ApiKeysRevoke404.pipe(HttpApiSchema.status(404)),
@@ -225,6 +239,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
225
239
  params: ApiKeysRotatePathParams,
226
240
  success: ApiKeysRotate200,
227
241
  error: [
242
+ ApiKeysRotate400.pipe(HttpApiSchema.status(400)),
228
243
  ApiKeysRotate401.pipe(HttpApiSchema.status(401)),
229
244
  ApiKeysRotate403.pipe(HttpApiSchema.status(403)),
230
245
  ApiKeysRotate404.pipe(HttpApiSchema.status(404)),
@@ -237,6 +252,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
237
252
  query: ApiKeysGetStatsQuery,
238
253
  success: ApiKeysGetStats200,
239
254
  error: [
255
+ ApiKeysGetStats400.pipe(HttpApiSchema.status(400)),
240
256
  ApiKeysGetStats401.pipe(HttpApiSchema.status(401)),
241
257
  ApiKeysGetStats403.pipe(HttpApiSchema.status(403)),
242
258
  ApiKeysGetStats404.pipe(HttpApiSchema.status(404)),
@@ -245,6 +261,6 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
245
261
  ApiKeysGetStats504.pipe(HttpApiSchema.status(504))
246
262
  ]
247
263
  }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.getStats").annotate(OpenApi.Summary, "Get API key send statistics").annotate(OpenApi.Description, "Returns aggregate send counts and daily volume attributed to an API key between `after` and `before`, a window of at most 90 days that defaults to the last 30 days.")).annotate(OpenApi.Description, "API key management, rotation, and usage statistics") {};
248
- export { APIKeysGroup, ApiKey, ApiKeyActivityPage, ApiKeyMailboxAccessUpdate, ApiKeyOwner, ApiKeyPage, ApiKeyWithSecret, ApiKeysCreate201, ApiKeysCreate401, ApiKeysCreate402, ApiKeysCreate403, ApiKeysCreate404, ApiKeysCreate422, ApiKeysCreate429, ApiKeysCreate500, ApiKeysCreate502, ApiKeysCreate504, ApiKeysCreateRequestJson, ApiKeysGet200, ApiKeysGet401, ApiKeysGet403, ApiKeysGet404, ApiKeysGet422, ApiKeysGet500, ApiKeysGet504, ApiKeysGetActivity200, ApiKeysGetActivity401, ApiKeysGetActivity403, ApiKeysGetActivity404, ApiKeysGetActivity422, ApiKeysGetActivity500, ApiKeysGetActivity504, ApiKeysGetActivityPathParams, ApiKeysGetActivityQuery, ApiKeysGetPathParams, ApiKeysGetStats200, ApiKeysGetStats401, ApiKeysGetStats403, ApiKeysGetStats404, ApiKeysGetStats422, ApiKeysGetStats500, ApiKeysGetStats504, ApiKeysGetStatsPathParams, ApiKeysGetStatsQuery, ApiKeysList200, ApiKeysList401, ApiKeysList403, ApiKeysList422, ApiKeysList500, ApiKeysList504, ApiKeysListQuery, ApiKeysRevoke200, ApiKeysRevoke401, ApiKeysRevoke403, ApiKeysRevoke404, ApiKeysRevoke422, ApiKeysRevoke500, ApiKeysRevoke502, ApiKeysRevoke504, ApiKeysRevokePathParams, ApiKeysRotate200, ApiKeysRotate401, ApiKeysRotate403, ApiKeysRotate404, ApiKeysRotate422, ApiKeysRotate500, ApiKeysRotate504, ApiKeysRotatePathParams, ApiKeysUpdate200, ApiKeysUpdate401, ApiKeysUpdate403, ApiKeysUpdate404, ApiKeysUpdate422, ApiKeysUpdate500, ApiKeysUpdate504, ApiKeysUpdatePathParams, ApiKeysUpdateRequestJson };
264
+ export { APIKeysGroup, ApiKey, ApiKeyActivityPage, ApiKeyMailboxAccessUpdate, ApiKeyOwner, ApiKeyPage, ApiKeyWithSecret, ApiKeysCreate201, ApiKeysCreate400, ApiKeysCreate401, ApiKeysCreate402, ApiKeysCreate403, ApiKeysCreate404, ApiKeysCreate422, ApiKeysCreate429, ApiKeysCreate500, ApiKeysCreate502, ApiKeysCreate504, ApiKeysCreateRequestJson, ApiKeysGet200, ApiKeysGet400, ApiKeysGet401, ApiKeysGet403, ApiKeysGet404, ApiKeysGet422, ApiKeysGet500, ApiKeysGet504, ApiKeysGetActivity200, ApiKeysGetActivity400, ApiKeysGetActivity401, ApiKeysGetActivity403, ApiKeysGetActivity404, ApiKeysGetActivity422, ApiKeysGetActivity500, ApiKeysGetActivity504, ApiKeysGetActivityPathParams, ApiKeysGetActivityQuery, ApiKeysGetPathParams, ApiKeysGetStats200, ApiKeysGetStats400, ApiKeysGetStats401, ApiKeysGetStats403, ApiKeysGetStats404, ApiKeysGetStats422, ApiKeysGetStats500, ApiKeysGetStats504, ApiKeysGetStatsPathParams, ApiKeysGetStatsQuery, ApiKeysList200, ApiKeysList400, ApiKeysList401, ApiKeysList403, ApiKeysList422, ApiKeysList500, ApiKeysList504, ApiKeysListQuery, ApiKeysRevoke200, ApiKeysRevoke400, ApiKeysRevoke401, ApiKeysRevoke403, ApiKeysRevoke404, ApiKeysRevoke422, ApiKeysRevoke500, ApiKeysRevoke502, ApiKeysRevoke504, ApiKeysRevokePathParams, ApiKeysRotate200, ApiKeysRotate400, ApiKeysRotate401, ApiKeysRotate403, ApiKeysRotate404, ApiKeysRotate422, ApiKeysRotate500, ApiKeysRotate504, ApiKeysRotatePathParams, ApiKeysUpdate200, ApiKeysUpdate400, ApiKeysUpdate401, ApiKeysUpdate403, ApiKeysUpdate404, ApiKeysUpdate422, ApiKeysUpdate500, ApiKeysUpdate504, ApiKeysUpdatePathParams, ApiKeysUpdateRequestJson };
249
265
 
250
266
  //# sourceMappingURL=api-keys.js.map
@@ -1,6 +1,6 @@
1
1
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
- import { ApiKeySecurityMiddleware, AttachmentId, ForbiddenError, GatewayTimeoutError, InternalError, MessageId, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
3
+ import { ApiKeySecurityMiddleware, AttachmentId, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MessageId, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared";
4
4
  export type AttachmentList = {
5
5
  readonly items: ReadonlyArray<{
6
6
  readonly id: AttachmentId;
@@ -47,6 +47,8 @@ export declare const AttachmentsList200: Schema.Struct<{
47
47
  readonly createdAt: Schema.String;
48
48
  }>>;
49
49
  }>;
50
+ export type AttachmentsList400 = MalformedRequestError;
51
+ export declare const AttachmentsList400: typeof MalformedRequestError;
50
52
  export type AttachmentsList401 = UnauthorizedError;
51
53
  export declare const AttachmentsList401: typeof UnauthorizedError;
52
54
  export type AttachmentsList403 = ForbiddenError;
@@ -87,6 +89,8 @@ export declare const AttachmentsGetById200: Schema.Struct<{
87
89
  readonly isInline: Schema.Boolean;
88
90
  readonly createdAt: Schema.String;
89
91
  }>;
92
+ export type AttachmentsGetById400 = MalformedRequestError;
93
+ export declare const AttachmentsGetById400: typeof MalformedRequestError;
90
94
  export type AttachmentsGetById401 = UnauthorizedError;
91
95
  export declare const AttachmentsGetById401: typeof UnauthorizedError;
92
96
  export type AttachmentsGetById403 = ForbiddenError;
@@ -113,6 +117,8 @@ export declare const AttachmentsRemove200: Schema.Struct<{
113
117
  readonly success: Schema.Boolean;
114
118
  readonly deletedId: Schema.brand<Schema.String, "AttachmentId">;
115
119
  }>;
120
+ export type AttachmentsRemove400 = MalformedRequestError;
121
+ export declare const AttachmentsRemove400: typeof MalformedRequestError;
116
122
  export type AttachmentsRemove401 = UnauthorizedError;
117
123
  export declare const AttachmentsRemove401: typeof UnauthorizedError;
118
124
  export type AttachmentsRemove403 = ForbiddenError;
@@ -167,6 +173,8 @@ export declare const AttachmentsDownloadUrl200: Schema.Struct<{
167
173
  readonly createdAt: Schema.String;
168
174
  }>;
169
175
  }>;
176
+ export type AttachmentsDownloadUrl400 = MalformedRequestError;
177
+ export declare const AttachmentsDownloadUrl400: typeof MalformedRequestError;
170
178
  export type AttachmentsDownloadUrl401 = UnauthorizedError;
171
179
  export declare const AttachmentsDownloadUrl401: typeof UnauthorizedError;
172
180
  export type AttachmentsDownloadUrl403 = ForbiddenError;
@@ -225,6 +233,26 @@ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"Attachments", Ht
225
233
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
226
234
  readonly message: Schema.String;
227
235
  readonly retryAfterSeconds: Schema.Finite;
236
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
237
+ readonly _tag: "MalformedRequestError";
238
+ readonly message: string;
239
+ readonly fields: {
240
+ readonly [x: string]: readonly string[];
241
+ };
242
+ }, readonly [Schema.Struct<{
243
+ readonly _tag: Schema.tag<"MalformedRequestError">;
244
+ readonly message: Schema.String;
245
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
246
+ }>], {
247
+ readonly _tag: "MalformedRequestError";
248
+ readonly message: string;
249
+ readonly fields: {
250
+ readonly [x: string]: readonly string[];
251
+ };
252
+ }>, Schema.Struct<{
253
+ readonly _tag: Schema.tag<"MalformedRequestError">;
254
+ readonly message: Schema.String;
255
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
228
256
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
229
257
  readonly _tag: "ResourceNotFoundError";
230
258
  readonly resource: string;
@@ -317,6 +345,26 @@ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"Attachments", Ht
317
345
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
318
346
  readonly message: Schema.String;
319
347
  readonly retryAfterSeconds: Schema.Finite;
348
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
349
+ readonly _tag: "MalformedRequestError";
350
+ readonly message: string;
351
+ readonly fields: {
352
+ readonly [x: string]: readonly string[];
353
+ };
354
+ }, readonly [Schema.Struct<{
355
+ readonly _tag: Schema.tag<"MalformedRequestError">;
356
+ readonly message: Schema.String;
357
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
358
+ }>], {
359
+ readonly _tag: "MalformedRequestError";
360
+ readonly message: string;
361
+ readonly fields: {
362
+ readonly [x: string]: readonly string[];
363
+ };
364
+ }>, Schema.Struct<{
365
+ readonly _tag: Schema.tag<"MalformedRequestError">;
366
+ readonly message: Schema.String;
367
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
320
368
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
321
369
  readonly _tag: "ResourceNotFoundError";
322
370
  readonly resource: string;
@@ -411,6 +459,26 @@ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"Attachments", Ht
411
459
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
412
460
  readonly message: Schema.String;
413
461
  readonly retryAfterSeconds: Schema.Finite;
462
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
463
+ readonly _tag: "MalformedRequestError";
464
+ readonly message: string;
465
+ readonly fields: {
466
+ readonly [x: string]: readonly string[];
467
+ };
468
+ }, readonly [Schema.Struct<{
469
+ readonly _tag: Schema.tag<"MalformedRequestError">;
470
+ readonly message: Schema.String;
471
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
472
+ }>], {
473
+ readonly _tag: "MalformedRequestError";
474
+ readonly message: string;
475
+ readonly fields: {
476
+ readonly [x: string]: readonly string[];
477
+ };
478
+ }>, Schema.Struct<{
479
+ readonly _tag: Schema.tag<"MalformedRequestError">;
480
+ readonly message: Schema.String;
481
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
414
482
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
415
483
  readonly _tag: "ResourceNotFoundError";
416
484
  readonly resource: string;
@@ -496,6 +564,26 @@ declare const AttachmentsGroup_base: HttpApiGroup.HttpApiGroup<"Attachments", Ht
496
564
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
497
565
  readonly message: Schema.String;
498
566
  readonly retryAfterSeconds: Schema.Finite;
567
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
568
+ readonly _tag: "MalformedRequestError";
569
+ readonly message: string;
570
+ readonly fields: {
571
+ readonly [x: string]: readonly string[];
572
+ };
573
+ }, readonly [Schema.Struct<{
574
+ readonly _tag: Schema.tag<"MalformedRequestError">;
575
+ readonly message: Schema.String;
576
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
577
+ }>], {
578
+ readonly _tag: "MalformedRequestError";
579
+ readonly message: string;
580
+ readonly fields: {
581
+ readonly [x: string]: readonly string[];
582
+ };
583
+ }>, Schema.Struct<{
584
+ readonly _tag: Schema.tag<"MalformedRequestError">;
585
+ readonly message: Schema.String;
586
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
499
587
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
500
588
  readonly _tag: "ResourceNotFoundError";
501
589
  readonly resource: string;
@@ -1,4 +1,4 @@
1
- import { ApiKeySecurityMiddleware, AttachmentId, ForbiddenError, GatewayTimeoutError, InternalError, MessageId, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
1
+ import { ApiKeySecurityMiddleware, AttachmentId, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, MessageId, OrganizationId, ResourceNotFoundError, UnauthorizedError, ValidationError } from "./shared.js";
2
2
  import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
4
  // src/effect/generated/attachments.ts
@@ -15,6 +15,7 @@ const AttachmentList = /* @__PURE__ */ (() => Schema.Struct({ items: Schema.Arra
15
15
  })) }).annotate({ identifier: "AttachmentList" }))();
16
16
  const AttachmentsListQuery = /* @__PURE__ */ (() => Schema.Struct({ messageId: MessageId }))();
17
17
  const AttachmentsList200 = AttachmentList;
18
+ const AttachmentsList400 = MalformedRequestError;
18
19
  const AttachmentsList401 = UnauthorizedError;
19
20
  const AttachmentsList403 = ForbiddenError;
20
21
  const AttachmentsList404 = ResourceNotFoundError;
@@ -33,6 +34,7 @@ const AttachmentsGetById200 = /* @__PURE__ */ (() => Schema.Struct({
33
34
  isInline: Schema.Boolean,
34
35
  createdAt: Schema.String
35
36
  }))();
37
+ const AttachmentsGetById400 = MalformedRequestError;
36
38
  const AttachmentsGetById401 = UnauthorizedError;
37
39
  const AttachmentsGetById403 = ForbiddenError;
38
40
  const AttachmentsGetById404 = ResourceNotFoundError;
@@ -44,6 +46,7 @@ const AttachmentsRemove200 = /* @__PURE__ */ (() => Schema.Struct({
44
46
  success: Schema.Boolean,
45
47
  deletedId: AttachmentId
46
48
  }))();
49
+ const AttachmentsRemove400 = MalformedRequestError;
47
50
  const AttachmentsRemove401 = UnauthorizedError;
48
51
  const AttachmentsRemove403 = ForbiddenError;
49
52
  const AttachmentsRemove404 = ResourceNotFoundError;
@@ -67,6 +70,7 @@ const AttachmentsDownloadUrl200 = /* @__PURE__ */ (() => Schema.Struct({
67
70
  createdAt: Schema.String
68
71
  })
69
72
  }))();
73
+ const AttachmentsDownloadUrl400 = MalformedRequestError;
70
74
  const AttachmentsDownloadUrl401 = UnauthorizedError;
71
75
  const AttachmentsDownloadUrl403 = ForbiddenError;
72
76
  const AttachmentsDownloadUrl404 = ResourceNotFoundError;
@@ -77,6 +81,7 @@ var AttachmentsGroup = class extends HttpApiGroup.make("Attachments").add(HttpAp
77
81
  query: AttachmentsListQuery,
78
82
  success: AttachmentsList200,
79
83
  error: [
84
+ AttachmentsList400.pipe(HttpApiSchema.status(400)),
80
85
  AttachmentsList401.pipe(HttpApiSchema.status(401)),
81
86
  AttachmentsList403.pipe(HttpApiSchema.status(403)),
82
87
  AttachmentsList404.pipe(HttpApiSchema.status(404)),
@@ -88,6 +93,7 @@ var AttachmentsGroup = class extends HttpApiGroup.make("Attachments").add(HttpAp
88
93
  params: AttachmentsGetByIdPathParams,
89
94
  success: AttachmentsGetById200,
90
95
  error: [
96
+ AttachmentsGetById400.pipe(HttpApiSchema.status(400)),
91
97
  AttachmentsGetById401.pipe(HttpApiSchema.status(401)),
92
98
  AttachmentsGetById403.pipe(HttpApiSchema.status(403)),
93
99
  AttachmentsGetById404.pipe(HttpApiSchema.status(404)),
@@ -99,6 +105,7 @@ var AttachmentsGroup = class extends HttpApiGroup.make("Attachments").add(HttpAp
99
105
  params: AttachmentsRemovePathParams,
100
106
  success: AttachmentsRemove200,
101
107
  error: [
108
+ AttachmentsRemove400.pipe(HttpApiSchema.status(400)),
102
109
  AttachmentsRemove401.pipe(HttpApiSchema.status(401)),
103
110
  AttachmentsRemove403.pipe(HttpApiSchema.status(403)),
104
111
  AttachmentsRemove404.pipe(HttpApiSchema.status(404)),
@@ -111,6 +118,7 @@ var AttachmentsGroup = class extends HttpApiGroup.make("Attachments").add(HttpAp
111
118
  query: AttachmentsDownloadUrlQuery,
112
119
  success: AttachmentsDownloadUrl200,
113
120
  error: [
121
+ AttachmentsDownloadUrl400.pipe(HttpApiSchema.status(400)),
114
122
  AttachmentsDownloadUrl401.pipe(HttpApiSchema.status(401)),
115
123
  AttachmentsDownloadUrl403.pipe(HttpApiSchema.status(403)),
116
124
  AttachmentsDownloadUrl404.pipe(HttpApiSchema.status(404)),
@@ -119,6 +127,6 @@ var AttachmentsGroup = class extends HttpApiGroup.make("Attachments").add(HttpAp
119
127
  AttachmentsDownloadUrl504.pipe(HttpApiSchema.status(504))
120
128
  ]
121
129
  }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "attachments.downloadUrl").annotate(OpenApi.Summary, "Get an attachment download URL").annotate(OpenApi.Description, "Generates a presigned, time-limited download URL for the attachment; expiry is configurable via the expiresIn query parameter.")).annotate(OpenApi.Description, "Email attachment metadata and secure download URLs") {};
122
- export { AttachmentList, AttachmentsDownloadUrl200, AttachmentsDownloadUrl401, AttachmentsDownloadUrl403, AttachmentsDownloadUrl404, AttachmentsDownloadUrl422, AttachmentsDownloadUrl500, AttachmentsDownloadUrl504, AttachmentsDownloadUrlPathParams, AttachmentsDownloadUrlQuery, AttachmentsGetById200, AttachmentsGetById401, AttachmentsGetById403, AttachmentsGetById404, AttachmentsGetById422, AttachmentsGetById500, AttachmentsGetById504, AttachmentsGetByIdPathParams, AttachmentsGroup, AttachmentsList200, AttachmentsList401, AttachmentsList403, AttachmentsList404, AttachmentsList422, AttachmentsList500, AttachmentsList504, AttachmentsListQuery, AttachmentsRemove200, AttachmentsRemove401, AttachmentsRemove403, AttachmentsRemove404, AttachmentsRemove422, AttachmentsRemove500, AttachmentsRemove504, AttachmentsRemovePathParams };
130
+ export { AttachmentList, AttachmentsDownloadUrl200, AttachmentsDownloadUrl400, AttachmentsDownloadUrl401, AttachmentsDownloadUrl403, AttachmentsDownloadUrl404, AttachmentsDownloadUrl422, AttachmentsDownloadUrl500, AttachmentsDownloadUrl504, AttachmentsDownloadUrlPathParams, AttachmentsDownloadUrlQuery, AttachmentsGetById200, AttachmentsGetById400, AttachmentsGetById401, AttachmentsGetById403, AttachmentsGetById404, AttachmentsGetById422, AttachmentsGetById500, AttachmentsGetById504, AttachmentsGetByIdPathParams, AttachmentsGroup, AttachmentsList200, AttachmentsList400, AttachmentsList401, AttachmentsList403, AttachmentsList404, AttachmentsList422, AttachmentsList500, AttachmentsList504, AttachmentsListQuery, AttachmentsRemove200, AttachmentsRemove400, AttachmentsRemove401, AttachmentsRemove403, AttachmentsRemove404, AttachmentsRemove422, AttachmentsRemove500, AttachmentsRemove504, AttachmentsRemovePathParams };
123
131
 
124
132
  //# sourceMappingURL=attachments.js.map
@@ -1,7 +1,7 @@
1
1
  import type * as EffectBrand from "effect/Brand";
2
2
  import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
3
3
  import * as Schema from "effect/Schema";
4
- import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared";
4
+ import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared";
5
5
  export type BrandId = string & EffectBrand.Brand<"BrandId">;
6
6
  export declare const BrandId: Schema.brand<Schema.String, "BrandId">;
7
7
  export type Brand = {
@@ -117,6 +117,8 @@ export declare const BrandsList200: Schema.Struct<{
117
117
  readonly updatedAt: Schema.String;
118
118
  }>>;
119
119
  }>;
120
+ export type BrandsList400 = MalformedRequestError;
121
+ export declare const BrandsList400: typeof MalformedRequestError;
120
122
  export type BrandsList401 = UnauthorizedError;
121
123
  export declare const BrandsList401: typeof UnauthorizedError;
122
124
  export type BrandsList403 = ForbiddenError;
@@ -194,6 +196,8 @@ export declare const BrandsCreate201: Schema.Struct<{
194
196
  readonly createdAt: Schema.String;
195
197
  readonly updatedAt: Schema.String;
196
198
  }>;
199
+ export type BrandsCreate400 = MalformedRequestError;
200
+ export declare const BrandsCreate400: typeof MalformedRequestError;
197
201
  export type BrandsCreate401 = UnauthorizedError;
198
202
  export declare const BrandsCreate401: typeof UnauthorizedError;
199
203
  export type BrandsCreate403 = ForbiddenError;
@@ -244,6 +248,8 @@ export declare const BrandsGet200: Schema.Struct<{
244
248
  readonly createdAt: Schema.String;
245
249
  readonly updatedAt: Schema.String;
246
250
  }>;
251
+ export type BrandsGet400 = MalformedRequestError;
252
+ export declare const BrandsGet400: typeof MalformedRequestError;
247
253
  export type BrandsGet401 = UnauthorizedError;
248
254
  export declare const BrandsGet401: typeof UnauthorizedError;
249
255
  export type BrandsGet403 = ForbiddenError;
@@ -266,6 +272,8 @@ export type BrandsRemove200 = SuccessResponse;
266
272
  export declare const BrandsRemove200: Schema.Struct<{
267
273
  readonly success: Schema.Boolean;
268
274
  }>;
275
+ export type BrandsRemove400 = MalformedRequestError;
276
+ export declare const BrandsRemove400: typeof MalformedRequestError;
269
277
  export type BrandsRemove401 = UnauthorizedError;
270
278
  export declare const BrandsRemove401: typeof UnauthorizedError;
271
279
  export type BrandsRemove403 = ForbiddenError;
@@ -351,6 +359,8 @@ export declare const BrandsUpdate200: Schema.Struct<{
351
359
  readonly createdAt: Schema.String;
352
360
  readonly updatedAt: Schema.String;
353
361
  }>;
362
+ export type BrandsUpdate400 = MalformedRequestError;
363
+ export declare const BrandsUpdate400: typeof MalformedRequestError;
354
364
  export type BrandsUpdate401 = UnauthorizedError;
355
365
  export declare const BrandsUpdate401: typeof UnauthorizedError;
356
366
  export type BrandsUpdate403 = ForbiddenError;
@@ -403,6 +413,8 @@ export declare const BrandsSetDefault200: Schema.Struct<{
403
413
  readonly createdAt: Schema.String;
404
414
  readonly updatedAt: Schema.String;
405
415
  }>;
416
+ export type BrandsSetDefault400 = MalformedRequestError;
417
+ export declare const BrandsSetDefault400: typeof MalformedRequestError;
406
418
  export type BrandsSetDefault401 = UnauthorizedError;
407
419
  export declare const BrandsSetDefault401: typeof UnauthorizedError;
408
420
  export type BrandsSetDefault403 = ForbiddenError;
@@ -519,6 +531,26 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
519
531
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
520
532
  readonly message: Schema.String;
521
533
  readonly retryAfterSeconds: Schema.Finite;
534
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
535
+ readonly _tag: "MalformedRequestError";
536
+ readonly message: string;
537
+ readonly fields: {
538
+ readonly [x: string]: readonly string[];
539
+ };
540
+ }, readonly [Schema.Struct<{
541
+ readonly _tag: Schema.tag<"MalformedRequestError">;
542
+ readonly message: Schema.String;
543
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
544
+ }>], {
545
+ readonly _tag: "MalformedRequestError";
546
+ readonly message: string;
547
+ readonly fields: {
548
+ readonly [x: string]: readonly string[];
549
+ };
550
+ }>, Schema.Struct<{
551
+ readonly _tag: Schema.tag<"MalformedRequestError">;
552
+ readonly message: Schema.String;
553
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
522
554
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
523
555
  readonly _tag: "UnauthorizedError";
524
556
  readonly message: string;
@@ -611,6 +643,26 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
611
643
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
612
644
  readonly message: Schema.String;
613
645
  readonly retryAfterSeconds: Schema.Finite;
646
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
647
+ readonly _tag: "MalformedRequestError";
648
+ readonly message: string;
649
+ readonly fields: {
650
+ readonly [x: string]: readonly string[];
651
+ };
652
+ }, readonly [Schema.Struct<{
653
+ readonly _tag: Schema.tag<"MalformedRequestError">;
654
+ readonly message: Schema.String;
655
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
656
+ }>], {
657
+ readonly _tag: "MalformedRequestError";
658
+ readonly message: string;
659
+ readonly fields: {
660
+ readonly [x: string]: readonly string[];
661
+ };
662
+ }>, Schema.Struct<{
663
+ readonly _tag: Schema.tag<"MalformedRequestError">;
664
+ readonly message: Schema.String;
665
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
614
666
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
615
667
  readonly _tag: "ResourceNotFoundError";
616
668
  readonly resource: string;
@@ -723,6 +775,26 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
723
775
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
724
776
  readonly message: Schema.String;
725
777
  readonly retryAfterSeconds: Schema.Finite;
778
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
779
+ readonly _tag: "MalformedRequestError";
780
+ readonly message: string;
781
+ readonly fields: {
782
+ readonly [x: string]: readonly string[];
783
+ };
784
+ }, readonly [Schema.Struct<{
785
+ readonly _tag: Schema.tag<"MalformedRequestError">;
786
+ readonly message: Schema.String;
787
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
788
+ }>], {
789
+ readonly _tag: "MalformedRequestError";
790
+ readonly message: string;
791
+ readonly fields: {
792
+ readonly [x: string]: readonly string[];
793
+ };
794
+ }>, Schema.Struct<{
795
+ readonly _tag: Schema.tag<"MalformedRequestError">;
796
+ readonly message: Schema.String;
797
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
726
798
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
727
799
  readonly _tag: "UnauthorizedError";
728
800
  readonly message: string;
@@ -807,6 +879,26 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
807
879
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
808
880
  readonly message: Schema.String;
809
881
  readonly retryAfterSeconds: Schema.Finite;
882
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
883
+ readonly _tag: "MalformedRequestError";
884
+ readonly message: string;
885
+ readonly fields: {
886
+ readonly [x: string]: readonly string[];
887
+ };
888
+ }, readonly [Schema.Struct<{
889
+ readonly _tag: Schema.tag<"MalformedRequestError">;
890
+ readonly message: Schema.String;
891
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
892
+ }>], {
893
+ readonly _tag: "MalformedRequestError";
894
+ readonly message: string;
895
+ readonly fields: {
896
+ readonly [x: string]: readonly string[];
897
+ };
898
+ }>, Schema.Struct<{
899
+ readonly _tag: Schema.tag<"MalformedRequestError">;
900
+ readonly message: Schema.String;
901
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
810
902
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
811
903
  readonly _tag: "ResourceNotFoundError";
812
904
  readonly resource: string;
@@ -919,6 +1011,26 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
919
1011
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
920
1012
  readonly message: Schema.String;
921
1013
  readonly retryAfterSeconds: Schema.Finite;
1014
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
1015
+ readonly _tag: "MalformedRequestError";
1016
+ readonly message: string;
1017
+ readonly fields: {
1018
+ readonly [x: string]: readonly string[];
1019
+ };
1020
+ }, readonly [Schema.Struct<{
1021
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1022
+ readonly message: Schema.String;
1023
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1024
+ }>], {
1025
+ readonly _tag: "MalformedRequestError";
1026
+ readonly message: string;
1027
+ readonly fields: {
1028
+ readonly [x: string]: readonly string[];
1029
+ };
1030
+ }>, Schema.Struct<{
1031
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1032
+ readonly message: Schema.String;
1033
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
922
1034
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
923
1035
  readonly _tag: "ResourceNotFoundError";
924
1036
  readonly resource: string;
@@ -1076,6 +1188,26 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
1076
1188
  readonly _tag: Schema.tag<"GatewayTimeoutError">;
1077
1189
  readonly message: Schema.String;
1078
1190
  readonly retryAfterSeconds: Schema.Finite;
1191
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
1192
+ readonly _tag: "MalformedRequestError";
1193
+ readonly message: string;
1194
+ readonly fields: {
1195
+ readonly [x: string]: readonly string[];
1196
+ };
1197
+ }, readonly [Schema.Struct<{
1198
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1199
+ readonly message: Schema.String;
1200
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1201
+ }>], {
1202
+ readonly _tag: "MalformedRequestError";
1203
+ readonly message: string;
1204
+ readonly fields: {
1205
+ readonly [x: string]: readonly string[];
1206
+ };
1207
+ }>, Schema.Struct<{
1208
+ readonly _tag: Schema.tag<"MalformedRequestError">;
1209
+ readonly message: Schema.String;
1210
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
1079
1211
  }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ResourceNotFoundError, {
1080
1212
  readonly _tag: "ResourceNotFoundError";
1081
1213
  readonly resource: string;