samva 0.34.0 → 0.36.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 (129) hide show
  1. package/AGENTS.md +17 -0
  2. package/README.md +2 -1
  3. package/dist/client/sdk.gen.d.ts +325 -331
  4. package/dist/client/sdk.gen.js +406 -454
  5. package/dist/client/types.gen.d.ts +3465 -750
  6. package/dist/effect/agents.d.ts +222 -17
  7. package/dist/effect/agents.js +7 -1
  8. package/dist/effect/analytics.d.ts +21 -15
  9. package/dist/effect/api-keys.d.ts +30 -24
  10. package/dist/effect/campaigns.d.ts +695 -39
  11. package/dist/effect/categories.d.ts +3 -3
  12. package/dist/effect/contact-groups.d.ts +15 -15
  13. package/dist/effect/contacts.d.ts +56 -52
  14. package/dist/effect/conversations.d.ts +51 -45
  15. package/dist/effect/email.d.ts +82 -82
  16. package/dist/effect/errors.d.ts +1 -1
  17. package/dist/effect/errors.js +2 -2
  18. package/dist/effect/extension-installations.d.ts +64 -12
  19. package/dist/effect/extensions.d.ts +16 -16
  20. package/dist/effect/generated/agents.d.ts +2902 -150
  21. package/dist/effect/generated/agents.js +219 -31
  22. package/dist/effect/generated/analytics.d.ts +127 -136
  23. package/dist/effect/generated/analytics.js +72 -37
  24. package/dist/effect/generated/api-keys.d.ts +243 -47
  25. package/dist/effect/generated/api-keys.js +27 -12
  26. package/dist/effect/generated/attachments.d.ts +89 -1
  27. package/dist/effect/generated/attachments.js +10 -2
  28. package/dist/effect/generated/brands.d.ts +133 -1
  29. package/dist/effect/generated/brands.js +22 -10
  30. package/dist/effect/generated/campaigns.d.ts +1467 -143
  31. package/dist/effect/generated/campaigns.js +84 -20
  32. package/dist/effect/generated/contact-events.d.ts +26 -4
  33. package/dist/effect/generated/contact-events.js +5 -3
  34. package/dist/effect/generated/contact-groups.d.ts +233 -13
  35. package/dist/effect/generated/contact-groups.js +33 -17
  36. package/dist/effect/generated/contacts.d.ts +634 -96
  37. package/dist/effect/generated/contacts.js +82 -20
  38. package/dist/effect/generated/conversations.d.ts +501 -108
  39. package/dist/effect/generated/conversations.js +106 -22
  40. package/dist/effect/generated/custom-fields.d.ts +89 -1
  41. package/dist/effect/generated/custom-fields.js +11 -3
  42. package/dist/effect/generated/email.d.ts +1447 -83
  43. package/dist/effect/generated/email.js +167 -43
  44. package/dist/effect/generated/events.d.ts +51 -7
  45. package/dist/effect/generated/events.js +9 -5
  46. package/dist/effect/generated/extension-installations.d.ts +1052 -77
  47. package/dist/effect/generated/extension-installations.js +45 -31
  48. package/dist/effect/generated/extensions.d.ts +123 -13
  49. package/dist/effect/generated/extensions.js +20 -10
  50. package/dist/effect/generated/feedback.d.ts +23 -1
  51. package/dist/effect/generated/feedback.js +6 -4
  52. package/dist/effect/generated/index.d.ts +3 -1
  53. package/dist/effect/generated/journeys.d.ts +684 -16
  54. package/dist/effect/generated/journeys.js +37 -9
  55. package/dist/effect/generated/mailboxes.d.ts +6169 -1734
  56. package/dist/effect/generated/mailboxes.js +549 -344
  57. package/dist/effect/generated/media.d.ts +125 -15
  58. package/dist/effect/generated/media.js +15 -2
  59. package/dist/effect/generated/messages.d.ts +2036 -117
  60. package/dist/effect/generated/messages.js +286 -54
  61. package/dist/effect/generated/namespaces.d.ts +215 -55
  62. package/dist/effect/generated/namespaces.js +30 -12
  63. package/dist/effect/generated/newsletter-domains.d.ts +98 -12
  64. package/dist/effect/generated/newsletter-domains.js +20 -13
  65. package/dist/effect/generated/newsletter-issues.d.ts +354 -19
  66. package/dist/effect/generated/newsletter-issues.js +162 -98
  67. package/dist/effect/generated/newsletters.d.ts +123 -13
  68. package/dist/effect/generated/newsletters.js +19 -9
  69. package/dist/effect/generated/operations.d.ts +76 -10
  70. package/dist/effect/generated/operations.js +12 -6
  71. package/dist/effect/generated/organizations.d.ts +287 -7
  72. package/dist/effect/generated/organizations.js +33 -5
  73. package/dist/effect/generated/policies.d.ts +953 -0
  74. package/dist/effect/generated/policies.js +116 -0
  75. package/dist/effect/generated/scheduled-messages.d.ts +4418 -49
  76. package/dist/effect/generated/scheduled-messages.js +77 -13
  77. package/dist/effect/generated/shared.d.ts +3213 -521
  78. package/dist/effect/generated/shared.js +713 -128
  79. package/dist/effect/generated/subscriptions.d.ts +23 -1
  80. package/dist/effect/generated/subscriptions.js +6 -4
  81. package/dist/effect/generated/templates.d.ts +2081 -693
  82. package/dist/effect/generated/templates.js +482 -267
  83. package/dist/effect/generated/topic-forms.d.ts +111 -1
  84. package/dist/effect/generated/topic-forms.js +23 -13
  85. package/dist/effect/generated/topics.d.ts +353 -43
  86. package/dist/effect/generated/topics.js +67 -19
  87. package/dist/effect/generated/webhooks.d.ts +318 -57
  88. package/dist/effect/generated/webhooks.js +68 -17
  89. package/dist/effect/generated/whoami.d.ts +35 -5
  90. package/dist/effect/generated/whoami.js +4 -2
  91. package/dist/effect/generated-metadata.d.ts +56 -32
  92. package/dist/effect/generated-metadata.js +137 -105
  93. package/dist/effect/index.d.ts +1 -0
  94. package/dist/effect/index.js +3 -2
  95. package/dist/effect/internal/client.js +1 -1
  96. package/dist/effect/internal/email-sender.d.ts +1 -1
  97. package/dist/effect/internal/operation.js +5 -32
  98. package/dist/effect/internal/send.d.ts +1 -1
  99. package/dist/effect/journeys.d.ts +169 -83
  100. package/dist/effect/mailboxes.d.ts +978 -301
  101. package/dist/effect/mailboxes.js +1 -11
  102. package/dist/effect/media.d.ts +1 -1
  103. package/dist/effect/messages.d.ts +40 -40
  104. package/dist/effect/namespaces.d.ts +15 -15
  105. package/dist/effect/newsletter-domains.d.ts +5 -5
  106. package/dist/effect/newsletters.d.ts +1 -1
  107. package/dist/effect/operations.d.ts +11 -11
  108. package/dist/effect/organizations.d.ts +2 -2
  109. package/dist/effect/policies.d.ts +65 -0
  110. package/dist/effect/policies.js +16 -0
  111. package/dist/effect/scheduled-messages.d.ts +869 -8
  112. package/dist/effect/templates.d.ts +43 -45
  113. package/dist/effect/templates.js +5 -3
  114. package/dist/effect/topics.d.ts +23 -23
  115. package/dist/effect/webhooks.d.ts +29 -26
  116. package/dist/index.js +2 -2
  117. package/dist/mailbox/test.js +11 -4
  118. package/dist/mailbox/types.d.ts +39 -3
  119. package/dist/normalize.js +13 -1
  120. package/dist/package.js +1 -1
  121. package/dist/promises/client.d.ts +4 -2
  122. package/dist/promises/client.js +5 -3
  123. package/dist/promises/errors.gen.d.ts +38 -2
  124. package/dist/promises/errors.gen.js +394 -34
  125. package/dist/promises/index.js +2 -2
  126. package/dist/promises/types.gen.d.ts +1 -1
  127. package/dist/service-map.d.ts +39 -28
  128. package/dist/service-map.js +220 -782
  129. package/package.json +13 -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, MalformedRequestError, NamespaceId, 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
@@ -19,7 +19,6 @@ const ApiKeyActivityPage = /* @__PURE__ */ (() => Schema.Struct({
19
19
  })),
20
20
  nextCursor: Schema.Union([Schema.String, Schema.Null])
21
21
  }).annotate({ identifier: "ApiKeyActivityPage" }))();
22
- const ApiKeyMailboxAccessUpdate = /* @__PURE__ */ (() => Schema.Struct({ sendMode: MailboxSendMode }).annotate({ identifier: "ApiKeyMailboxAccessUpdate" }))();
23
22
  const ApiKey = /* @__PURE__ */ (() => Schema.Struct({
24
23
  id: Schema.String,
25
24
  name: Schema.String,
@@ -54,11 +53,13 @@ const ApiKeyPage = /* @__PURE__ */ (() => Schema.Struct({
54
53
  }).annotate({ identifier: "ApiKeyPage" }))();
55
54
  const ApiKeysListQuery = /* @__PURE__ */ (() => Schema.Struct({
56
55
  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]))
56
+ cursor: Schema.optionalKey(Schema.String),
57
+ namespaceId: Schema.optionalKey(NamespaceId),
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;
@@ -91,10 +94,10 @@ const ApiKeysGet504 = GatewayTimeoutError;
91
94
  const ApiKeysUpdatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
92
95
  const ApiKeysUpdateRequestJson = /* @__PURE__ */ (() => Schema.Struct({
93
96
  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
- description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
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." }))
97
+ description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null]))
96
98
  }))();
97
99
  const ApiKeysUpdate200 = ApiKey;
100
+ const ApiKeysUpdate400 = MalformedRequestError;
98
101
  const ApiKeysUpdate401 = UnauthorizedError;
99
102
  const ApiKeysUpdate403 = ForbiddenError;
100
103
  const ApiKeysUpdate404 = ResourceNotFoundError;
@@ -104,9 +107,10 @@ const ApiKeysUpdate504 = GatewayTimeoutError;
104
107
  const ApiKeysGetActivityPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
105
108
  const ApiKeysGetActivityQuery = /* @__PURE__ */ (() => Schema.Struct({
106
109
  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]))
110
+ cursor: Schema.optionalKey(Schema.String)
108
111
  }))();
109
112
  const ApiKeysGetActivity200 = ApiKeyActivityPage;
113
+ const ApiKeysGetActivity400 = MalformedRequestError;
110
114
  const ApiKeysGetActivity401 = UnauthorizedError;
111
115
  const ApiKeysGetActivity403 = ForbiddenError;
112
116
  const ApiKeysGetActivity404 = ResourceNotFoundError;
@@ -115,6 +119,7 @@ const ApiKeysGetActivity500 = InternalError;
115
119
  const ApiKeysGetActivity504 = GatewayTimeoutError;
116
120
  const ApiKeysRevokePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
117
121
  const ApiKeysRevoke200 = SuccessResponse;
122
+ const ApiKeysRevoke400 = MalformedRequestError;
118
123
  const ApiKeysRevoke401 = UnauthorizedError;
119
124
  const ApiKeysRevoke403 = ForbiddenError;
120
125
  const ApiKeysRevoke404 = ResourceNotFoundError;
@@ -124,6 +129,7 @@ const ApiKeysRevoke502 = BillingProviderError;
124
129
  const ApiKeysRevoke504 = GatewayTimeoutError;
125
130
  const ApiKeysRotatePathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
126
131
  const ApiKeysRotate200 = ApiKeyWithSecret;
132
+ const ApiKeysRotate400 = MalformedRequestError;
127
133
  const ApiKeysRotate401 = UnauthorizedError;
128
134
  const ApiKeysRotate403 = ForbiddenError;
129
135
  const ApiKeysRotate404 = ResourceNotFoundError;
@@ -132,8 +138,8 @@ const ApiKeysRotate500 = InternalError;
132
138
  const ApiKeysRotate504 = GatewayTimeoutError;
133
139
  const ApiKeysGetStatsPathParams = /* @__PURE__ */ (() => Schema.Struct({ id: ApiKeyId }))();
134
140
  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]))
141
+ after: Schema.optionalKey(Schema.String),
142
+ before: Schema.optionalKey(Schema.String)
137
143
  }))();
138
144
  const ApiKeysGetStats200 = /* @__PURE__ */ (() => Schema.Struct({
139
145
  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 +150,7 @@ const ApiKeysGetStats200 = /* @__PURE__ */ (() => Schema.Struct({
144
150
  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
151
  }))
146
152
  }))();
153
+ const ApiKeysGetStats400 = MalformedRequestError;
147
154
  const ApiKeysGetStats401 = UnauthorizedError;
148
155
  const ApiKeysGetStats403 = ForbiddenError;
149
156
  const ApiKeysGetStats404 = ResourceNotFoundError;
@@ -154,16 +161,18 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
154
161
  query: ApiKeysListQuery,
155
162
  success: ApiKeysList200,
156
163
  error: [
164
+ ApiKeysList400.pipe(HttpApiSchema.status(400)),
157
165
  ApiKeysList401.pipe(HttpApiSchema.status(401)),
158
166
  ApiKeysList403.pipe(HttpApiSchema.status(403)),
159
167
  ApiKeysList422.pipe(HttpApiSchema.status(422)),
160
168
  ApiKeysList500,
161
169
  ApiKeysList504.pipe(HttpApiSchema.status(504))
162
170
  ]
163
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.list").annotate(OpenApi.Summary, "List API keys").annotate(OpenApi.Description, "Returns the organization's API keys, newest first, filterable by status and a search term matched against name and description. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("apiKeysCreate", "/v1/api-keys", {
171
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "apiKeys.list").annotate(OpenApi.Summary, "List API keys").annotate(OpenApi.Description, "Returns the organization's API keys, newest first, filterable by namespace (`namespaceId`), status and a search term matched against name and description. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page."), HttpApiEndpoint.post("apiKeysCreate", "/v1/api-keys", {
164
172
  payload: ApiKeysCreateRequestJson,
165
173
  success: ApiKeysCreate201.pipe(HttpApiSchema.status(201)),
166
174
  error: [
175
+ ApiKeysCreate400.pipe(HttpApiSchema.status(400)),
167
176
  ApiKeysCreate401.pipe(HttpApiSchema.status(401)),
168
177
  ApiKeysCreate402.pipe(HttpApiSchema.status(402)),
169
178
  ApiKeysCreate403.pipe(HttpApiSchema.status(403)),
@@ -178,6 +187,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
178
187
  params: ApiKeysGetPathParams,
179
188
  success: ApiKeysGet200,
180
189
  error: [
190
+ ApiKeysGet400.pipe(HttpApiSchema.status(400)),
181
191
  ApiKeysGet401.pipe(HttpApiSchema.status(401)),
182
192
  ApiKeysGet403.pipe(HttpApiSchema.status(403)),
183
193
  ApiKeysGet404.pipe(HttpApiSchema.status(404)),
@@ -190,6 +200,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
190
200
  payload: ApiKeysUpdateRequestJson,
191
201
  success: ApiKeysUpdate200,
192
202
  error: [
203
+ ApiKeysUpdate400.pipe(HttpApiSchema.status(400)),
193
204
  ApiKeysUpdate401.pipe(HttpApiSchema.status(401)),
194
205
  ApiKeysUpdate403.pipe(HttpApiSchema.status(403)),
195
206
  ApiKeysUpdate404.pipe(HttpApiSchema.status(404)),
@@ -202,6 +213,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
202
213
  query: ApiKeysGetActivityQuery,
203
214
  success: ApiKeysGetActivity200,
204
215
  error: [
216
+ ApiKeysGetActivity400.pipe(HttpApiSchema.status(400)),
205
217
  ApiKeysGetActivity401.pipe(HttpApiSchema.status(401)),
206
218
  ApiKeysGetActivity403.pipe(HttpApiSchema.status(403)),
207
219
  ApiKeysGetActivity404.pipe(HttpApiSchema.status(404)),
@@ -213,6 +225,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
213
225
  params: ApiKeysRevokePathParams,
214
226
  success: ApiKeysRevoke200,
215
227
  error: [
228
+ ApiKeysRevoke400.pipe(HttpApiSchema.status(400)),
216
229
  ApiKeysRevoke401.pipe(HttpApiSchema.status(401)),
217
230
  ApiKeysRevoke403.pipe(HttpApiSchema.status(403)),
218
231
  ApiKeysRevoke404.pipe(HttpApiSchema.status(404)),
@@ -225,6 +238,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
225
238
  params: ApiKeysRotatePathParams,
226
239
  success: ApiKeysRotate200,
227
240
  error: [
241
+ ApiKeysRotate400.pipe(HttpApiSchema.status(400)),
228
242
  ApiKeysRotate401.pipe(HttpApiSchema.status(401)),
229
243
  ApiKeysRotate403.pipe(HttpApiSchema.status(403)),
230
244
  ApiKeysRotate404.pipe(HttpApiSchema.status(404)),
@@ -237,6 +251,7 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
237
251
  query: ApiKeysGetStatsQuery,
238
252
  success: ApiKeysGetStats200,
239
253
  error: [
254
+ ApiKeysGetStats400.pipe(HttpApiSchema.status(400)),
240
255
  ApiKeysGetStats401.pipe(HttpApiSchema.status(401)),
241
256
  ApiKeysGetStats403.pipe(HttpApiSchema.status(403)),
242
257
  ApiKeysGetStats404.pipe(HttpApiSchema.status(404)),
@@ -245,6 +260,6 @@ var APIKeysGroup = class extends HttpApiGroup.make("API Keys").add(HttpApiEndpoi
245
260
  ApiKeysGetStats504.pipe(HttpApiSchema.status(504))
246
261
  ]
247
262
  }).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 };
263
+ export { APIKeysGroup, ApiKey, ApiKeyActivityPage, 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
264
 
250
265
  //# 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;