samva 0.56.0 → 0.56.2

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 (256) hide show
  1. package/AGENTS.md +2 -2
  2. package/README.md +9 -8
  3. package/dist/agent/index.js +0 -2
  4. package/dist/agent/runtime.js +0 -2
  5. package/dist/agent/test.js +0 -2
  6. package/dist/client/client/client.gen.js +0 -2
  7. package/dist/client/client/utils.gen.js +0 -2
  8. package/dist/client/client.gen.js +0 -2
  9. package/dist/client/core/auth.gen.js +0 -2
  10. package/dist/client/core/bodySerializer.gen.js +0 -2
  11. package/dist/client/core/params.gen.js +0 -2
  12. package/dist/client/core/pathSerializer.gen.js +0 -2
  13. package/dist/client/core/serverSentEvents.gen.js +0 -2
  14. package/dist/client/core/utils.gen.js +0 -2
  15. package/dist/client/sdk.gen.js +0 -2
  16. package/dist/client-attribution.js +0 -2
  17. package/dist/effect/accounts.js +9 -12
  18. package/dist/effect/agents.js +16 -19
  19. package/dist/effect/analytics.js +9 -12
  20. package/dist/effect/api-keys.js +11 -14
  21. package/dist/effect/approval-requests.js +7 -10
  22. package/dist/effect/attachments.js +7 -10
  23. package/dist/effect/brands.js +9 -12
  24. package/dist/effect/campaigns.js +18 -21
  25. package/dist/effect/categories.js +0 -2
  26. package/dist/effect/client.js +0 -2
  27. package/dist/effect/contact-groups.js +13 -16
  28. package/dist/effect/contacts.js +29 -32
  29. package/dist/effect/conversations.js +16 -19
  30. package/dist/effect/custom-fields.js +7 -10
  31. package/dist/effect/descriptors/accounts.d.ts +50 -52
  32. package/dist/effect/descriptors/accounts.js +50 -54
  33. package/dist/effect/descriptors/agents.d.ts +113 -115
  34. package/dist/effect/descriptors/agents.js +120 -124
  35. package/dist/effect/descriptors/analytics.d.ts +47 -49
  36. package/dist/effect/descriptors/analytics.js +42 -46
  37. package/dist/effect/descriptors/api-keys.d.ts +69 -71
  38. package/dist/effect/descriptors/api-keys.js +73 -77
  39. package/dist/effect/descriptors/approval-requests.d.ts +34 -36
  40. package/dist/effect/descriptors/approval-requests.js +36 -40
  41. package/dist/effect/descriptors/attachments.d.ts +34 -36
  42. package/dist/effect/descriptors/attachments.js +36 -40
  43. package/dist/effect/descriptors/brands.d.ts +51 -53
  44. package/dist/effect/descriptors/brands.js +53 -57
  45. package/dist/effect/descriptors/campaigns.d.ts +130 -132
  46. package/dist/effect/descriptors/campaigns.js +137 -141
  47. package/dist/effect/descriptors/contact-groups.d.ts +86 -88
  48. package/dist/effect/descriptors/contact-groups.js +90 -94
  49. package/dist/effect/descriptors/contacts.d.ts +242 -244
  50. package/dist/effect/descriptors/contacts.js +227 -231
  51. package/dist/effect/descriptors/conversations.d.ts +114 -116
  52. package/dist/effect/descriptors/conversations.js +123 -127
  53. package/dist/effect/descriptors/custom-fields.d.ts +33 -35
  54. package/dist/effect/descriptors/custom-fields.js +33 -37
  55. package/dist/effect/descriptors/email.d.ts +623 -625
  56. package/dist/effect/descriptors/email.js +562 -580
  57. package/dist/effect/descriptors/events.d.ts +15 -17
  58. package/dist/effect/descriptors/events.js +14 -18
  59. package/dist/effect/descriptors/feedback.d.ts +7 -9
  60. package/dist/effect/descriptors/feedback.js +3 -5
  61. package/dist/effect/descriptors/integrations-catalog.d.ts +159 -161
  62. package/dist/effect/descriptors/integrations-catalog.js +142 -146
  63. package/dist/effect/descriptors/integrations.d.ts +60 -62
  64. package/dist/effect/descriptors/integrations.js +63 -67
  65. package/dist/effect/descriptors/journeys.d.ts +123 -125
  66. package/dist/effect/descriptors/journeys.js +133 -137
  67. package/dist/effect/descriptors/logs.d.ts +16 -18
  68. package/dist/effect/descriptors/logs.js +16 -20
  69. package/dist/effect/descriptors/mailboxes.d.ts +780 -782
  70. package/dist/effect/descriptors/mailboxes.js +795 -799
  71. package/dist/effect/descriptors/media.d.ts +43 -45
  72. package/dist/effect/descriptors/media.js +46 -50
  73. package/dist/effect/descriptors/messages.d.ts +86 -88
  74. package/dist/effect/descriptors/messages.js +83 -94
  75. package/dist/effect/descriptors/namespaces.d.ts +96 -98
  76. package/dist/effect/descriptors/namespaces.js +107 -111
  77. package/dist/effect/descriptors/newsletter-domains.d.ts +35 -37
  78. package/dist/effect/descriptors/newsletter-domains.js +39 -43
  79. package/dist/effect/descriptors/newsletter-issues.d.ts +98 -100
  80. package/dist/effect/descriptors/newsletter-issues.js +109 -113
  81. package/dist/effect/descriptors/newsletters.d.ts +43 -45
  82. package/dist/effect/descriptors/newsletters.js +46 -50
  83. package/dist/effect/descriptors/operations.d.ts +25 -27
  84. package/dist/effect/descriptors/operations.js +26 -30
  85. package/dist/effect/descriptors/organizations.d.ts +96 -98
  86. package/dist/effect/descriptors/organizations.js +86 -90
  87. package/dist/effect/descriptors/phone-numbers.d.ts +41 -43
  88. package/dist/effect/descriptors/phone-numbers.js +40 -44
  89. package/dist/effect/descriptors/policies.d.ts +26 -28
  90. package/dist/effect/descriptors/policies.js +29 -33
  91. package/dist/effect/descriptors/scheduled-messages.d.ts +42 -44
  92. package/dist/effect/descriptors/scheduled-messages.js +43 -47
  93. package/dist/effect/descriptors/subscriptions.d.ts +7 -9
  94. package/dist/effect/descriptors/subscriptions.js +3 -5
  95. package/dist/effect/descriptors/template-registrations.d.ts +26 -28
  96. package/dist/effect/descriptors/template-registrations.js +29 -33
  97. package/dist/effect/descriptors/template-share-links.d.ts +44 -46
  98. package/dist/effect/descriptors/template-share-links.js +49 -53
  99. package/dist/effect/descriptors/templates.d.ts +361 -363
  100. package/dist/effect/descriptors/templates.js +348 -352
  101. package/dist/effect/descriptors/topic-forms.d.ts +44 -46
  102. package/dist/effect/descriptors/topic-forms.js +49 -53
  103. package/dist/effect/descriptors/topics.d.ts +77 -79
  104. package/dist/effect/descriptors/topics.js +80 -84
  105. package/dist/effect/descriptors/webhooks.d.ts +96 -98
  106. package/dist/effect/descriptors/webhooks.js +103 -107
  107. package/dist/effect/descriptors/whats-app-flows.d.ts +86 -88
  108. package/dist/effect/descriptors/whats-app-flows.js +90 -94
  109. package/dist/effect/descriptors/whats-app-setup-links.d.ts +33 -35
  110. package/dist/effect/descriptors/whats-app-setup-links.js +33 -37
  111. package/dist/effect/descriptors/whats-app.d.ts +110 -112
  112. package/dist/effect/descriptors/whats-app.js +111 -115
  113. package/dist/effect/descriptors/whoami.d.ts +7 -9
  114. package/dist/effect/descriptors/whoami.js +3 -5
  115. package/dist/effect/email.js +66 -69
  116. package/dist/effect/events.js +5 -8
  117. package/dist/effect/feedback.js +4 -6
  118. package/dist/effect/generated/accounts.d.ts +144 -142
  119. package/dist/effect/generated/accounts.js +14 -11
  120. package/dist/effect/generated/agents.d.ts +1502 -1493
  121. package/dist/effect/generated/agents.js +28 -18
  122. package/dist/effect/generated/analytics.d.ts +55 -53
  123. package/dist/effect/generated/analytics.js +14 -11
  124. package/dist/effect/generated/api-keys.d.ts +216 -212
  125. package/dist/effect/generated/api-keys.js +18 -13
  126. package/dist/effect/generated/approval-requests.d.ts +60 -60
  127. package/dist/effect/generated/approval-requests.js +10 -9
  128. package/dist/effect/generated/attachments.d.ts +32 -32
  129. package/dist/effect/generated/attachments.js +10 -9
  130. package/dist/effect/generated/brands.d.ts +179 -177
  131. package/dist/effect/generated/brands.js +14 -11
  132. package/dist/effect/generated/campaigns.d.ts +1083 -1072
  133. package/dist/effect/generated/campaigns.js +32 -20
  134. package/dist/effect/generated/contact-events.d.ts +3 -6
  135. package/dist/effect/generated/contact-events.js +4 -6
  136. package/dist/effect/generated/contact-groups.d.ts +186 -180
  137. package/dist/effect/generated/contact-groups.js +22 -15
  138. package/dist/effect/generated/contacts.d.ts +1565 -1545
  139. package/dist/effect/generated/contacts.js +50 -29
  140. package/dist/effect/generated/conversations.d.ts +340 -331
  141. package/dist/effect/generated/conversations.js +28 -18
  142. package/dist/effect/generated/custom-fields.d.ts +63 -63
  143. package/dist/effect/generated/custom-fields.js +10 -9
  144. package/dist/effect/generated/email.d.ts +2731 -2671
  145. package/dist/effect/generated/email.js +130 -69
  146. package/dist/effect/generated/events.d.ts +160 -162
  147. package/dist/effect/generated/events.js +6 -7
  148. package/dist/effect/generated/feedback.d.ts +3 -6
  149. package/dist/effect/generated/feedback.js +4 -6
  150. package/dist/effect/generated/index.d.ts +174 -45
  151. package/dist/effect/generated/integrations-catalog.d.ts +459 -446
  152. package/dist/effect/generated/integrations-catalog.js +36 -22
  153. package/dist/effect/generated/integrations.d.ts +155 -152
  154. package/dist/effect/generated/integrations.js +16 -12
  155. package/dist/effect/generated/journeys.d.ts +864 -854
  156. package/dist/effect/generated/journeys.js +30 -19
  157. package/dist/effect/generated/logs.d.ts +147 -149
  158. package/dist/effect/generated/logs.js +6 -7
  159. package/dist/effect/generated/mailboxes.d.ts +7271 -7196
  160. package/dist/effect/generated/mailboxes.js +160 -84
  161. package/dist/effect/generated/media.d.ts +77 -76
  162. package/dist/effect/generated/media.js +12 -10
  163. package/dist/effect/generated/messages.d.ts +1092 -1086
  164. package/dist/effect/generated/messages.js +22 -15
  165. package/dist/effect/generated/namespaces.d.ts +184 -177
  166. package/dist/effect/generated/namespaces.js +24 -16
  167. package/dist/effect/generated/newsletter-domains.d.ts +57 -57
  168. package/dist/effect/generated/newsletter-domains.js +10 -9
  169. package/dist/effect/generated/newsletter-issues.d.ts +225 -218
  170. package/dist/effect/generated/newsletter-issues.js +24 -16
  171. package/dist/effect/generated/newsletters.d.ts +46 -45
  172. package/dist/effect/generated/newsletters.js +12 -10
  173. package/dist/effect/generated/operations.d.ts +79 -80
  174. package/dist/effect/generated/operations.js +8 -8
  175. package/dist/effect/generated/organizations.d.ts +438 -430
  176. package/dist/effect/generated/organizations.js +26 -17
  177. package/dist/effect/generated/phone-numbers.d.ts +87 -86
  178. package/dist/effect/generated/phone-numbers.js +12 -10
  179. package/dist/effect/generated/policies.d.ts +64 -65
  180. package/dist/effect/generated/policies.js +8 -8
  181. package/dist/effect/generated/scheduled-messages.d.ts +66 -65
  182. package/dist/effect/generated/scheduled-messages.js +12 -10
  183. package/dist/effect/generated/shared.d.ts +33 -33
  184. package/dist/effect/generated/shared.js +61 -63
  185. package/dist/effect/generated/subscriptions.d.ts +3 -6
  186. package/dist/effect/generated/subscriptions.js +4 -6
  187. package/dist/effect/generated/template-registrations.d.ts +135 -136
  188. package/dist/effect/generated/template-registrations.js +8 -8
  189. package/dist/effect/generated/template-share-links.d.ts +25 -24
  190. package/dist/effect/generated/template-share-links.js +12 -10
  191. package/dist/effect/generated/templates.d.ts +2678 -2645
  192. package/dist/effect/generated/templates.js +76 -42
  193. package/dist/effect/generated/topic-forms.d.ts +47 -46
  194. package/dist/effect/generated/topic-forms.js +12 -10
  195. package/dist/effect/generated/topics.d.ts +204 -199
  196. package/dist/effect/generated/topics.js +20 -14
  197. package/dist/effect/generated/webhooks.d.ts +268 -261
  198. package/dist/effect/generated/webhooks.js +24 -16
  199. package/dist/effect/generated/whats-app-flows.d.ts +250 -244
  200. package/dist/effect/generated/whats-app-flows.js +22 -15
  201. package/dist/effect/generated/whats-app-setup-links.d.ts +107 -107
  202. package/dist/effect/generated/whats-app-setup-links.js +10 -9
  203. package/dist/effect/generated/whats-app.d.ts +439 -430
  204. package/dist/effect/generated/whats-app.js +28 -18
  205. package/dist/effect/generated/whoami.d.ts +3 -6
  206. package/dist/effect/generated/whoami.js +4 -6
  207. package/dist/effect/generated-metadata.js +0 -2
  208. package/dist/effect/integrations-catalog.js +20 -23
  209. package/dist/effect/integrations.js +10 -13
  210. package/dist/effect/internal/client.d.ts +2 -1
  211. package/dist/effect/internal/client.js +3 -5
  212. package/dist/effect/internal/email-sender.js +5 -6
  213. package/dist/effect/internal/log-events.js +0 -2
  214. package/dist/effect/internal/mailbox-events.js +0 -2
  215. package/dist/effect/internal/operation.d.ts +11 -7
  216. package/dist/effect/internal/operation.js +17 -14
  217. package/dist/effect/internal/send.js +11 -10
  218. package/dist/effect/internal/timeout.js +0 -2
  219. package/dist/effect/journeys.js +17 -20
  220. package/dist/effect/logs.js +5 -8
  221. package/dist/effect/mailboxes.js +82 -85
  222. package/dist/effect/media.js +8 -11
  223. package/dist/effect/messages.js +12 -15
  224. package/dist/effect/namespaces.js +14 -17
  225. package/dist/effect/newsletter-domains.js +7 -10
  226. package/dist/effect/newsletter-issues.js +14 -17
  227. package/dist/effect/newsletters.js +8 -11
  228. package/dist/effect/operations.js +6 -9
  229. package/dist/effect/organizations.js +15 -18
  230. package/dist/effect/pagination.js +0 -2
  231. package/dist/effect/phone-numbers.js +8 -11
  232. package/dist/effect/policies.js +6 -9
  233. package/dist/effect/retry.js +0 -2
  234. package/dist/effect/runtime.js +3 -5
  235. package/dist/effect/scheduled-messages.js +8 -11
  236. package/dist/effect/subscriptions.js +4 -6
  237. package/dist/effect/template-registrations.js +6 -9
  238. package/dist/effect/template-share-links.js +8 -11
  239. package/dist/effect/templates.js +40 -43
  240. package/dist/effect/topic-forms.js +8 -11
  241. package/dist/effect/topics.js +12 -15
  242. package/dist/effect/webhooks.js +14 -17
  243. package/dist/effect/whatsapp-flows.js +13 -16
  244. package/dist/effect/whatsapp-setup-links.js +7 -10
  245. package/dist/effect/whatsapp.js +16 -19
  246. package/dist/effect/whoami.js +4 -6
  247. package/dist/inline-attachments.js +0 -2
  248. package/dist/mailbox-events.js +0 -2
  249. package/dist/normalize.js +0 -2
  250. package/dist/package.json.js +1 -3
  251. package/dist/promises/client.js +0 -2
  252. package/dist/promises/errors.gen.js +0 -2
  253. package/dist/promises/request.js +0 -2
  254. package/dist/request-id.js +0 -2
  255. package/dist/request-policy.js +0 -2
  256. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
1
+ import { HttpApiEndpoint } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
3
  import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, BrandId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  export type Brand = {
@@ -462,7 +462,123 @@ export type BrandsSetDefault500 = InternalError;
462
462
  export declare const BrandsSetDefault500: typeof InternalError;
463
463
  export type BrandsSetDefault504 = GatewayTimeoutError;
464
464
  export declare const BrandsSetDefault504: typeof GatewayTimeoutError;
465
- declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpoint.HttpApiEndpoint<"brandsCreate", "POST", "/v1/brands", never, never, Schema.toCodecJson<Schema.Struct<{
465
+ export declare const BrandsListEndpoint: HttpApiEndpoint.HttpApiEndpoint<"brandsList", "GET", "/v1/brands", never, Schema.toCodecStringTree<Schema.Struct<{
466
+ readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
467
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
468
+ readonly items: Schema.$Array<Schema.Struct<{
469
+ readonly id: Schema.brand<Schema.String, "BrandId">;
470
+ readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
471
+ readonly slug: Schema.String;
472
+ readonly name: Schema.String;
473
+ readonly isDefault: Schema.Boolean;
474
+ readonly css: Schema.String;
475
+ readonly assets: Schema.Struct<{
476
+ readonly logoUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
477
+ readonly logoDarkUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
478
+ readonly iconUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
479
+ }>;
480
+ readonly footer: Schema.Struct<{
481
+ readonly companyName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
482
+ readonly websiteUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
483
+ readonly address: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
484
+ readonly street1: Schema.String;
485
+ readonly street2: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
486
+ readonly city: Schema.String;
487
+ readonly region: Schema.String;
488
+ readonly postalCode: Schema.String;
489
+ readonly country: Schema.String;
490
+ }>, Schema.Null]>>;
491
+ readonly socialLinks: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
492
+ readonly label: Schema.String;
493
+ readonly url: Schema.String;
494
+ }>>, Schema.Null]>>;
495
+ }>;
496
+ readonly digest: Schema.String;
497
+ readonly createdAt: Schema.String;
498
+ readonly updatedAt: Schema.String;
499
+ }>>;
500
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
501
+ readonly _tag: "ForbiddenError";
502
+ readonly message: string;
503
+ }, readonly [Schema.Struct<{
504
+ readonly _tag: Schema.tag<"ForbiddenError">;
505
+ readonly message: Schema.String;
506
+ }>], {
507
+ readonly _tag: "ForbiddenError";
508
+ readonly message: string;
509
+ }>, Schema.Struct<{
510
+ readonly _tag: Schema.tag<"ForbiddenError">;
511
+ readonly message: Schema.String;
512
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
513
+ readonly _tag: "GatewayTimeoutError";
514
+ readonly message: string;
515
+ readonly retryAfterSeconds: number;
516
+ }, readonly [Schema.Struct<{
517
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
518
+ readonly message: Schema.String;
519
+ readonly retryAfterSeconds: Schema.Finite;
520
+ }>], {
521
+ readonly _tag: "GatewayTimeoutError";
522
+ readonly message: string;
523
+ readonly retryAfterSeconds: number;
524
+ }>, Schema.Struct<{
525
+ readonly _tag: Schema.tag<"GatewayTimeoutError">;
526
+ readonly message: Schema.String;
527
+ readonly retryAfterSeconds: Schema.Finite;
528
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
529
+ readonly _tag: "MalformedRequestError";
530
+ readonly message: string;
531
+ readonly fields: {
532
+ readonly [x: string]: readonly string[];
533
+ };
534
+ }, readonly [Schema.Struct<{
535
+ readonly _tag: Schema.tag<"MalformedRequestError">;
536
+ readonly message: Schema.String;
537
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
538
+ }>], {
539
+ readonly _tag: "MalformedRequestError";
540
+ readonly message: string;
541
+ readonly fields: {
542
+ readonly [x: string]: readonly string[];
543
+ };
544
+ }>, Schema.Struct<{
545
+ readonly _tag: Schema.tag<"MalformedRequestError">;
546
+ readonly message: Schema.String;
547
+ readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
548
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
549
+ readonly _tag: "UnauthorizedError";
550
+ readonly message: string;
551
+ }, readonly [Schema.Struct<{
552
+ readonly _tag: Schema.tag<"UnauthorizedError">;
553
+ readonly message: Schema.String;
554
+ }>], {
555
+ readonly _tag: "UnauthorizedError";
556
+ readonly message: string;
557
+ }>, Schema.Struct<{
558
+ readonly _tag: Schema.tag<"UnauthorizedError">;
559
+ readonly message: Schema.String;
560
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
561
+ readonly _tag: "ValidationError";
562
+ readonly message: string;
563
+ readonly fields?: {
564
+ readonly [x: string]: readonly string[];
565
+ } | null;
566
+ }, readonly [Schema.Struct<{
567
+ readonly _tag: Schema.tag<"ValidationError">;
568
+ readonly message: Schema.String;
569
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
570
+ }>], {
571
+ readonly _tag: "ValidationError";
572
+ readonly message: string;
573
+ readonly fields?: {
574
+ readonly [x: string]: readonly string[];
575
+ } | null;
576
+ }>, Schema.Struct<{
577
+ readonly _tag: Schema.tag<"ValidationError">;
578
+ readonly message: Schema.String;
579
+ readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
580
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
581
+ export declare const BrandsCreateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"brandsCreate", "POST", "/v1/brands", never, never, Schema.toCodecJson<Schema.Struct<{
466
582
  readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
467
583
  readonly slug: Schema.String;
468
584
  readonly name: Schema.String;
@@ -640,7 +756,8 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
640
756
  readonly _tag: Schema.tag<"ValidationError">;
641
757
  readonly message: Schema.String;
642
758
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
643
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsGet", "GET", "/v1/brands/:slug", Schema.toCodecStringTree<Schema.Struct<{
759
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
760
+ export declare const BrandsGetEndpoint: HttpApiEndpoint.HttpApiEndpoint<"brandsGet", "GET", "/v1/brands/:slug", Schema.toCodecStringTree<Schema.Struct<{
644
761
  readonly slug: Schema.String;
645
762
  }>>, Schema.toCodecStringTree<Schema.Struct<{
646
763
  readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
@@ -775,122 +892,8 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
775
892
  readonly _tag: Schema.tag<"ValidationError">;
776
893
  readonly message: Schema.String;
777
894
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
778
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsList", "GET", "/v1/brands", never, Schema.toCodecStringTree<Schema.Struct<{
779
- readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
780
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
781
- readonly items: Schema.$Array<Schema.Struct<{
782
- readonly id: Schema.brand<Schema.String, "BrandId">;
783
- readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
784
- readonly slug: Schema.String;
785
- readonly name: Schema.String;
786
- readonly isDefault: Schema.Boolean;
787
- readonly css: Schema.String;
788
- readonly assets: Schema.Struct<{
789
- readonly logoUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
790
- readonly logoDarkUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
791
- readonly iconUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
792
- }>;
793
- readonly footer: Schema.Struct<{
794
- readonly companyName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
795
- readonly websiteUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
796
- readonly address: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
797
- readonly street1: Schema.String;
798
- readonly street2: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
799
- readonly city: Schema.String;
800
- readonly region: Schema.String;
801
- readonly postalCode: Schema.String;
802
- readonly country: Schema.String;
803
- }>, Schema.Null]>>;
804
- readonly socialLinks: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
805
- readonly label: Schema.String;
806
- readonly url: Schema.String;
807
- }>>, Schema.Null]>>;
808
- }>;
809
- readonly digest: Schema.String;
810
- readonly createdAt: Schema.String;
811
- readonly updatedAt: Schema.String;
812
- }>>;
813
- }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
814
- readonly _tag: "ForbiddenError";
815
- readonly message: string;
816
- }, readonly [Schema.Struct<{
817
- readonly _tag: Schema.tag<"ForbiddenError">;
818
- readonly message: Schema.String;
819
- }>], {
820
- readonly _tag: "ForbiddenError";
821
- readonly message: string;
822
- }>, Schema.Struct<{
823
- readonly _tag: Schema.tag<"ForbiddenError">;
824
- readonly message: Schema.String;
825
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
826
- readonly _tag: "GatewayTimeoutError";
827
- readonly message: string;
828
- readonly retryAfterSeconds: number;
829
- }, readonly [Schema.Struct<{
830
- readonly _tag: Schema.tag<"GatewayTimeoutError">;
831
- readonly message: Schema.String;
832
- readonly retryAfterSeconds: Schema.Finite;
833
- }>], {
834
- readonly _tag: "GatewayTimeoutError";
835
- readonly message: string;
836
- readonly retryAfterSeconds: number;
837
- }>, Schema.Struct<{
838
- readonly _tag: Schema.tag<"GatewayTimeoutError">;
839
- readonly message: Schema.String;
840
- readonly retryAfterSeconds: Schema.Finite;
841
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<MalformedRequestError, {
842
- readonly _tag: "MalformedRequestError";
843
- readonly message: string;
844
- readonly fields: {
845
- readonly [x: string]: readonly string[];
846
- };
847
- }, readonly [Schema.Struct<{
848
- readonly _tag: Schema.tag<"MalformedRequestError">;
849
- readonly message: Schema.String;
850
- readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
851
- }>], {
852
- readonly _tag: "MalformedRequestError";
853
- readonly message: string;
854
- readonly fields: {
855
- readonly [x: string]: readonly string[];
856
- };
857
- }>, Schema.Struct<{
858
- readonly _tag: Schema.tag<"MalformedRequestError">;
859
- readonly message: Schema.String;
860
- readonly fields: Schema.$Record<Schema.String, Schema.$Array<Schema.String>>;
861
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<UnauthorizedError, {
862
- readonly _tag: "UnauthorizedError";
863
- readonly message: string;
864
- }, readonly [Schema.Struct<{
865
- readonly _tag: Schema.tag<"UnauthorizedError">;
866
- readonly message: Schema.String;
867
- }>], {
868
- readonly _tag: "UnauthorizedError";
869
- readonly message: string;
870
- }>, Schema.Struct<{
871
- readonly _tag: Schema.tag<"UnauthorizedError">;
872
- readonly message: Schema.String;
873
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ValidationError, {
874
- readonly _tag: "ValidationError";
875
- readonly message: string;
876
- readonly fields?: {
877
- readonly [x: string]: readonly string[];
878
- } | null;
879
- }, readonly [Schema.Struct<{
880
- readonly _tag: Schema.tag<"ValidationError">;
881
- readonly message: Schema.String;
882
- readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
883
- }>], {
884
- readonly _tag: "ValidationError";
885
- readonly message: string;
886
- readonly fields?: {
887
- readonly [x: string]: readonly string[];
888
- } | null;
889
- }>, Schema.Struct<{
890
- readonly _tag: Schema.tag<"ValidationError">;
891
- readonly message: Schema.String;
892
- readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
893
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsRemove", "DELETE", "/v1/brands/:slug", Schema.toCodecStringTree<Schema.Struct<{
895
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
896
+ export declare const BrandsRemoveEndpoint: HttpApiEndpoint.HttpApiEndpoint<"brandsRemove", "DELETE", "/v1/brands/:slug", Schema.toCodecStringTree<Schema.Struct<{
894
897
  readonly slug: Schema.String;
895
898
  }>>, Schema.toCodecStringTree<Schema.Struct<{
896
899
  readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
@@ -1016,11 +1019,36 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
1016
1019
  readonly _tag: Schema.tag<"ValidationError">;
1017
1020
  readonly message: Schema.String;
1018
1021
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1019
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsSetDefault", "POST", "/v1/brands/:slug/default", Schema.toCodecStringTree<Schema.Struct<{
1022
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
1023
+ export declare const BrandsUpdateEndpoint: HttpApiEndpoint.HttpApiEndpoint<"brandsUpdate", "PATCH", "/v1/brands/:slug", Schema.toCodecStringTree<Schema.Struct<{
1020
1024
  readonly slug: Schema.String;
1021
- }>>, Schema.toCodecStringTree<Schema.Struct<{
1022
- readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
1023
- }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1025
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1026
+ readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
1027
+ readonly newSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1028
+ readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1029
+ readonly css: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1030
+ readonly assets: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1031
+ readonly logoUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1032
+ readonly logoDarkUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1033
+ readonly iconUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1034
+ }>, Schema.Null]>>;
1035
+ readonly footer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1036
+ readonly companyName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1037
+ readonly websiteUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1038
+ readonly address: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1039
+ readonly street1: Schema.String;
1040
+ readonly street2: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1041
+ readonly city: Schema.String;
1042
+ readonly region: Schema.String;
1043
+ readonly postalCode: Schema.String;
1044
+ readonly country: Schema.String;
1045
+ }>, Schema.Null]>>;
1046
+ readonly socialLinks: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
1047
+ readonly label: Schema.String;
1048
+ readonly url: Schema.String;
1049
+ }>>, Schema.Null]>>;
1050
+ }>, Schema.Null]>>;
1051
+ }>>, never, Schema.toCodecJson<Schema.Struct<{
1024
1052
  readonly id: Schema.brand<Schema.String, "BrandId">;
1025
1053
  readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
1026
1054
  readonly slug: Schema.String;
@@ -1051,7 +1079,27 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
1051
1079
  readonly digest: Schema.String;
1052
1080
  readonly createdAt: Schema.String;
1053
1081
  readonly updatedAt: Schema.String;
1054
- }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1082
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
1083
+ readonly _tag: "ConflictError";
1084
+ readonly message: string;
1085
+ readonly resource: string;
1086
+ readonly id?: string | null;
1087
+ }, readonly [Schema.Struct<{
1088
+ readonly _tag: Schema.tag<"ConflictError">;
1089
+ readonly message: Schema.String;
1090
+ readonly resource: Schema.String;
1091
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1092
+ }>], {
1093
+ readonly _tag: "ConflictError";
1094
+ readonly message: string;
1095
+ readonly resource: string;
1096
+ readonly id?: string | null;
1097
+ }>, Schema.Struct<{
1098
+ readonly _tag: Schema.tag<"ConflictError">;
1099
+ readonly message: Schema.String;
1100
+ readonly resource: Schema.String;
1101
+ readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1102
+ }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1055
1103
  readonly _tag: "ForbiddenError";
1056
1104
  readonly message: string;
1057
1105
  }, readonly [Schema.Struct<{
@@ -1151,35 +1199,12 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
1151
1199
  readonly _tag: Schema.tag<"ValidationError">;
1152
1200
  readonly message: Schema.String;
1153
1201
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1154
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never> | HttpApiEndpoint.HttpApiEndpoint<"brandsUpdate", "PATCH", "/v1/brands/:slug", Schema.toCodecStringTree<Schema.Struct<{
1202
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
1203
+ export declare const BrandsSetDefaultEndpoint: HttpApiEndpoint.HttpApiEndpoint<"brandsSetDefault", "POST", "/v1/brands/:slug/default", Schema.toCodecStringTree<Schema.Struct<{
1155
1204
  readonly slug: Schema.String;
1156
- }>>, never, Schema.toCodecJson<Schema.Struct<{
1157
- readonly namespaceId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>>;
1158
- readonly newSlug: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1159
- readonly name: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1160
- readonly css: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1161
- readonly assets: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1162
- readonly logoUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1163
- readonly logoDarkUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1164
- readonly iconUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1165
- }>, Schema.Null]>>;
1166
- readonly footer: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1167
- readonly companyName: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1168
- readonly websiteUrl: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1169
- readonly address: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1170
- readonly street1: Schema.String;
1171
- readonly street2: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1172
- readonly city: Schema.String;
1173
- readonly region: Schema.String;
1174
- readonly postalCode: Schema.String;
1175
- readonly country: Schema.String;
1176
- }>, Schema.Null]>>;
1177
- readonly socialLinks: Schema.optionalKey<Schema.Union<readonly [Schema.$Array<Schema.Struct<{
1178
- readonly label: Schema.String;
1179
- readonly url: Schema.String;
1180
- }>>, Schema.Null]>>;
1181
- }>, Schema.Null]>>;
1182
- }>>, never, Schema.toCodecJson<Schema.Struct<{
1205
+ }>>, Schema.toCodecStringTree<Schema.Struct<{
1206
+ readonly namespaceId: Schema.optionalKey<Schema.brand<Schema.String, "NamespaceId">>;
1207
+ }>>, never, never, Schema.toCodecJson<Schema.Struct<{
1183
1208
  readonly id: Schema.brand<Schema.String, "BrandId">;
1184
1209
  readonly namespaceId: Schema.Union<readonly [Schema.brand<Schema.String, "NamespaceId">, Schema.Null]>;
1185
1210
  readonly slug: Schema.String;
@@ -1210,27 +1235,7 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
1210
1235
  readonly digest: Schema.String;
1211
1236
  readonly createdAt: Schema.String;
1212
1237
  readonly updatedAt: Schema.String;
1213
- }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ConflictError, {
1214
- readonly _tag: "ConflictError";
1215
- readonly message: string;
1216
- readonly resource: string;
1217
- readonly id?: string | null;
1218
- }, readonly [Schema.Struct<{
1219
- readonly _tag: Schema.tag<"ConflictError">;
1220
- readonly message: Schema.String;
1221
- readonly resource: Schema.String;
1222
- readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1223
- }>], {
1224
- readonly _tag: "ConflictError";
1225
- readonly message: string;
1226
- readonly resource: string;
1227
- readonly id?: string | null;
1228
- }>, Schema.Struct<{
1229
- readonly _tag: Schema.tag<"ConflictError">;
1230
- readonly message: Schema.String;
1231
- readonly resource: Schema.String;
1232
- readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
1233
- }>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1238
+ }>>, Schema.toCodecJson<Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
1234
1239
  readonly _tag: "ForbiddenError";
1235
1240
  readonly message: string;
1236
1241
  }, readonly [Schema.Struct<{
@@ -1330,7 +1335,4 @@ declare const BrandsGroup_base: HttpApiGroup.HttpApiGroup<"Brands", HttpApiEndpo
1330
1335
  readonly _tag: Schema.tag<"ValidationError">;
1331
1336
  readonly message: Schema.String;
1332
1337
  readonly fields: Schema.optionalKey<Schema.Union<readonly [Schema.$Record<Schema.String, Schema.$Array<Schema.String>>, Schema.Null]>>;
1333
- }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>, false>;
1334
- export declare class BrandsGroup extends BrandsGroup_base {
1335
- }
1336
- export {};
1338
+ }>, never, never> | typeof InternalError>, ApiKeySecurityMiddleware, never>;
@@ -1,4 +1,4 @@
1
- import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
1
+ import { HttpApiEndpoint, HttpApiSchema, OpenApi } from "effect/http-api";
2
2
  import * as Schema from "effect/Schema";
3
3
  import { ApiKeySecurityMiddleware, BrandAssets, BrandFooter, BrandId, ConflictError, ForbiddenError, GatewayTimeoutError, InternalError, MalformedRequestError, NamespaceId, ResourceNotFoundError, SuccessResponse, UnauthorizedError, ValidationError } from "./shared.js";
4
4
  // src/effect/generated/brands.ts
@@ -91,7 +91,7 @@ const BrandsSetDefault404 = ResourceNotFoundError;
91
91
  const BrandsSetDefault422 = ValidationError;
92
92
  const BrandsSetDefault500 = InternalError;
93
93
  const BrandsSetDefault504 = GatewayTimeoutError;
94
- var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.get("brandsList", "/v1/brands", {
94
+ const BrandsListEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("brandsList", "/v1/brands", {
95
95
  query: BrandsListQuery,
96
96
  success: BrandsList200,
97
97
  error: [
@@ -102,7 +102,8 @@ var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.
102
102
  BrandsList500,
103
103
  BrandsList504.pipe(HttpApiSchema.status(504))
104
104
  ]
105
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.list").annotate(OpenApi.Summary, "List brands").annotate(OpenApi.Description, "Returns brands in the addressed scope, the default first. A namespace caller without brands sees the shared organization brands when no namespaceId is supplied."), HttpApiEndpoint.post("brandsCreate", "/v1/brands", {
105
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.list").annotate(OpenApi.Summary, "List brands").annotate(OpenApi.Description, "Returns brands in the addressed scope, the default first. A namespace caller without brands sees the shared organization brands when no namespaceId is supplied."))();
106
+ const BrandsCreateEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("brandsCreate", "/v1/brands", {
106
107
  payload: BrandsCreateRequestJson,
107
108
  success: BrandsCreate201.pipe(HttpApiSchema.status(201)),
108
109
  error: [
@@ -115,7 +116,8 @@ var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.
115
116
  BrandsCreate500,
116
117
  BrandsCreate504.pipe(HttpApiSchema.status(504))
117
118
  ]
118
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.create").annotate(OpenApi.Summary, "Create a brand").annotate(OpenApi.Description, "Creates a brand. The CSS must parse as a brand theme; a rejected theme answers 422 with located findings under `fields.css`. The first namespace brand is its default. With `isDefault`, the new brand becomes the default for its scope. Each organization or namespace independently holds at most 12 brands; creating one more answers 409 with a `ConflictError`."), HttpApiEndpoint.get("brandsGet", "/v1/brands/:slug", {
119
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.create").annotate(OpenApi.Summary, "Create a brand").annotate(OpenApi.Description, "Creates a brand. The CSS must parse as a brand theme; a rejected theme answers 422 with located findings under `fields.css`. The first namespace brand is its default. With `isDefault`, the new brand becomes the default for its scope. Each organization or namespace independently holds at most 12 brands; creating one more answers 409 with a `ConflictError`."))();
120
+ const BrandsGetEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.get("brandsGet", "/v1/brands/:slug", {
119
121
  params: BrandsGetPathParams,
120
122
  query: BrandsGetQuery,
121
123
  success: BrandsGet200,
@@ -128,7 +130,8 @@ var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.
128
130
  BrandsGet500,
129
131
  BrandsGet504.pipe(HttpApiSchema.status(504))
130
132
  ]
131
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.get").annotate(OpenApi.Summary, "Get a brand").annotate(OpenApi.Description, "Returns a brand by slug in the addressed scope. A namespace caller omitting namespaceId can also look up shared organization brands."), HttpApiEndpoint.delete("brandsRemove", "/v1/brands/:slug", {
133
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.get").annotate(OpenApi.Summary, "Get a brand").annotate(OpenApi.Description, "Returns a brand by slug in the addressed scope. A namespace caller omitting namespaceId can also look up shared organization brands."))();
134
+ const BrandsRemoveEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.delete("brandsRemove", "/v1/brands/:slug", {
132
135
  params: BrandsRemovePathParams,
133
136
  query: BrandsRemoveQuery,
134
137
  success: BrandsRemove200,
@@ -142,7 +145,8 @@ var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.
142
145
  BrandsRemove500,
143
146
  BrandsRemove504.pipe(HttpApiSchema.status(504))
144
147
  ]
145
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.remove").annotate(OpenApi.Summary, "Delete a brand").annotate(OpenApi.Description, "Deletes a brand. The default brand cannot be deleted; domains that used the deleted brand fall back to the default."), HttpApiEndpoint.patch("brandsUpdate", "/v1/brands/:slug", {
148
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.remove").annotate(OpenApi.Summary, "Delete a brand").annotate(OpenApi.Description, "Deletes a brand. The default brand cannot be deleted; domains that used the deleted brand fall back to the default."))();
149
+ const BrandsUpdateEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.patch("brandsUpdate", "/v1/brands/:slug", {
146
150
  params: BrandsUpdatePathParams,
147
151
  payload: BrandsUpdateRequestJson,
148
152
  success: BrandsUpdate200,
@@ -156,7 +160,8 @@ var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.
156
160
  BrandsUpdate500,
157
161
  BrandsUpdate504.pipe(HttpApiSchema.status(504))
158
162
  ]
159
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.update").annotate(OpenApi.Summary, "Update a brand").annotate(OpenApi.Description, "Updates a brand. Each section given replaces that section whole. Namespace sends using bare `samva:brand` use the current default."), HttpApiEndpoint.post("brandsSetDefault", "/v1/brands/:slug/default", {
163
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.update").annotate(OpenApi.Summary, "Update a brand").annotate(OpenApi.Description, "Updates a brand. Each section given replaces that section whole. Namespace sends using bare `samva:brand` use the current default."))();
164
+ const BrandsSetDefaultEndpoint = /* @__PURE__ */ (() => HttpApiEndpoint.post("brandsSetDefault", "/v1/brands/:slug/default", {
160
165
  params: BrandsSetDefaultPathParams,
161
166
  query: BrandsSetDefaultQuery,
162
167
  success: BrandsSetDefault200,
@@ -169,7 +174,5 @@ var BrandsGroup = class extends HttpApiGroup.make("Brands").add(HttpApiEndpoint.
169
174
  BrandsSetDefault500,
170
175
  BrandsSetDefault504.pipe(HttpApiSchema.status(504))
171
176
  ]
172
- }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.setDefault").annotate(OpenApi.Summary, "Make a brand the default").annotate(OpenApi.Description, "Makes this brand the default in the addressed organization or namespace.")).annotate(OpenApi.Description, "Brand themes, logos and footers that templates import with `samva:brand`.") {};
173
- export { Brand, BrandList, BrandsCreate201, BrandsCreate400, BrandsCreate401, BrandsCreate403, BrandsCreate404, BrandsCreate409, BrandsCreate422, BrandsCreate500, BrandsCreate504, BrandsCreateRequestJson, BrandsGet200, BrandsGet400, BrandsGet401, BrandsGet403, BrandsGet404, BrandsGet422, BrandsGet500, BrandsGet504, BrandsGetPathParams, BrandsGetQuery, BrandsGroup, BrandsList200, BrandsList400, BrandsList401, BrandsList403, BrandsList422, BrandsList500, BrandsList504, BrandsListQuery, BrandsRemove200, BrandsRemove400, BrandsRemove401, BrandsRemove403, BrandsRemove404, BrandsRemove409, BrandsRemove422, BrandsRemove500, BrandsRemove504, BrandsRemovePathParams, BrandsRemoveQuery, BrandsSetDefault200, BrandsSetDefault400, BrandsSetDefault401, BrandsSetDefault403, BrandsSetDefault404, BrandsSetDefault422, BrandsSetDefault500, BrandsSetDefault504, BrandsSetDefaultPathParams, BrandsSetDefaultQuery, BrandsUpdate200, BrandsUpdate400, BrandsUpdate401, BrandsUpdate403, BrandsUpdate404, BrandsUpdate409, BrandsUpdate422, BrandsUpdate500, BrandsUpdate504, BrandsUpdatePathParams, BrandsUpdateRequestJson };
174
-
175
- //# sourceMappingURL=brands.js.map
177
+ }).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "brands.setDefault").annotate(OpenApi.Summary, "Make a brand the default").annotate(OpenApi.Description, "Makes this brand the default in the addressed organization or namespace."))();
178
+ export { Brand, BrandList, BrandsCreate201, BrandsCreate400, BrandsCreate401, BrandsCreate403, BrandsCreate404, BrandsCreate409, BrandsCreate422, BrandsCreate500, BrandsCreate504, BrandsCreateEndpoint, BrandsCreateRequestJson, BrandsGet200, BrandsGet400, BrandsGet401, BrandsGet403, BrandsGet404, BrandsGet422, BrandsGet500, BrandsGet504, BrandsGetEndpoint, BrandsGetPathParams, BrandsGetQuery, BrandsList200, BrandsList400, BrandsList401, BrandsList403, BrandsList422, BrandsList500, BrandsList504, BrandsListEndpoint, BrandsListQuery, BrandsRemove200, BrandsRemove400, BrandsRemove401, BrandsRemove403, BrandsRemove404, BrandsRemove409, BrandsRemove422, BrandsRemove500, BrandsRemove504, BrandsRemoveEndpoint, BrandsRemovePathParams, BrandsRemoveQuery, BrandsSetDefault200, BrandsSetDefault400, BrandsSetDefault401, BrandsSetDefault403, BrandsSetDefault404, BrandsSetDefault422, BrandsSetDefault500, BrandsSetDefault504, BrandsSetDefaultEndpoint, BrandsSetDefaultPathParams, BrandsSetDefaultQuery, BrandsUpdate200, BrandsUpdate400, BrandsUpdate401, BrandsUpdate403, BrandsUpdate404, BrandsUpdate409, BrandsUpdate422, BrandsUpdate500, BrandsUpdate504, BrandsUpdateEndpoint, BrandsUpdatePathParams, BrandsUpdateRequestJson };