@stackframe/stack-shared 2.8.58 → 2.8.59

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 (47) hide show
  1. package/dist/config/migrate-catalogs-to-product-lines.d.mts +12 -0
  2. package/dist/config/migrate-catalogs-to-product-lines.d.ts +12 -0
  3. package/dist/config/migrate-catalogs-to-product-lines.js +211 -0
  4. package/dist/config/migrate-catalogs-to-product-lines.js.map +1 -0
  5. package/dist/config/schema-fuzzer.test.js +17 -6
  6. package/dist/config/schema-fuzzer.test.js.map +1 -1
  7. package/dist/config/schema.d.mts +181 -157
  8. package/dist/config/schema.d.ts +181 -157
  9. package/dist/config/schema.js +39 -8
  10. package/dist/config/schema.js.map +1 -1
  11. package/dist/esm/config/migrate-catalogs-to-product-lines.js +186 -0
  12. package/dist/esm/config/migrate-catalogs-to-product-lines.js.map +1 -0
  13. package/dist/esm/config/schema-fuzzer.test.js +17 -6
  14. package/dist/esm/config/schema-fuzzer.test.js.map +1 -1
  15. package/dist/esm/config/schema.js +40 -9
  16. package/dist/esm/config/schema.js.map +1 -1
  17. package/dist/esm/interface/client-interface.js +111 -21
  18. package/dist/esm/interface/client-interface.js.map +1 -1
  19. package/dist/esm/interface/crud/products.js +12 -1
  20. package/dist/esm/interface/crud/products.js.map +1 -1
  21. package/dist/esm/interface/server-interface.js +38 -0
  22. package/dist/esm/interface/server-interface.js.map +1 -1
  23. package/dist/esm/known-errors.js +24 -0
  24. package/dist/esm/known-errors.js.map +1 -1
  25. package/dist/esm/schema-fields.js +1 -1
  26. package/dist/esm/schema-fields.js.map +1 -1
  27. package/dist/interface/client-interface.d.mts +31 -0
  28. package/dist/interface/client-interface.d.ts +31 -0
  29. package/dist/interface/client-interface.js +111 -21
  30. package/dist/interface/client-interface.js.map +1 -1
  31. package/dist/interface/crud/products.d.mts +77 -0
  32. package/dist/interface/crud/products.d.ts +77 -0
  33. package/dist/interface/crud/products.js +12 -1
  34. package/dist/interface/crud/products.js.map +1 -1
  35. package/dist/interface/server-interface.d.mts +23 -0
  36. package/dist/interface/server-interface.d.ts +23 -0
  37. package/dist/interface/server-interface.js +38 -0
  38. package/dist/interface/server-interface.js.map +1 -1
  39. package/dist/known-errors.d.mts +6 -0
  40. package/dist/known-errors.d.ts +6 -0
  41. package/dist/known-errors.js +24 -0
  42. package/dist/known-errors.js.map +1 -1
  43. package/dist/schema-fields.d.mts +4 -4
  44. package/dist/schema-fields.d.ts +4 -4
  45. package/dist/schema-fields.js +1 -1
  46. package/dist/schema-fields.js.map +1 -1
  47. package/package.json +4 -4
@@ -30,18 +30,20 @@ declare const projectConfigSchema: yup.ObjectSchema<{
30
30
  sourceOfTruth: undefined;
31
31
  }, "">;
32
32
  declare const branchPaymentsSchema: yup.ObjectSchema<{
33
+ blockNewPurchases: boolean | undefined;
33
34
  autoPay: {
34
35
  interval?: DayInterval | undefined;
35
36
  } | undefined;
36
37
  testMode: boolean | undefined;
37
- catalogs: Record<string, {
38
+ productLines: Record<string, {
38
39
  displayName?: string | undefined;
40
+ customerType?: "team" | "user" | "custom" | undefined;
39
41
  }>;
40
42
  products: Record<string, {
41
43
  displayName?: string | undefined;
42
44
  serverOnly?: boolean | undefined;
43
45
  freeTrial?: DayInterval | undefined;
44
- catalogId?: string | undefined;
46
+ productLineId?: string | undefined;
45
47
  isAddOnTo?: false | Record<string, true> | undefined;
46
48
  stackable?: boolean | undefined;
47
49
  customerType: "team" | "user" | "custom";
@@ -67,12 +69,13 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
67
69
  displayName?: string | undefined;
68
70
  customerType?: "team" | "user" | "custom" | undefined;
69
71
  }>;
70
- }, yup.AnyObject, {
72
+ } | undefined, yup.AnyObject, {
73
+ blockNewPurchases: undefined;
71
74
  autoPay: {
72
75
  interval: undefined;
73
76
  };
74
77
  testMode: undefined;
75
- catalogs: undefined;
78
+ productLines: undefined;
76
79
  products: undefined;
77
80
  items: undefined;
78
81
  }, "">;
@@ -86,7 +89,48 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
86
89
  type: "postgres";
87
90
  connectionString: string;
88
91
  };
89
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
92
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
93
+ payments?: {
94
+ blockNewPurchases?: boolean | undefined;
95
+ autoPay?: {
96
+ interval?: DayInterval | undefined;
97
+ } | undefined;
98
+ testMode?: boolean | undefined;
99
+ items: Record<string, {
100
+ displayName?: string | undefined;
101
+ customerType?: "team" | "user" | "custom" | undefined;
102
+ }>;
103
+ productLines: Record<string, {
104
+ displayName?: string | undefined;
105
+ customerType?: "team" | "user" | "custom" | undefined;
106
+ }>;
107
+ products: Record<string, {
108
+ displayName?: string | undefined;
109
+ serverOnly?: boolean | undefined;
110
+ freeTrial?: DayInterval | undefined;
111
+ productLineId?: string | undefined;
112
+ isAddOnTo?: false | Record<string, true> | undefined;
113
+ stackable?: boolean | undefined;
114
+ customerType: "team" | "user" | "custom";
115
+ prices: "include-by-default" | Record<string, {
116
+ USD?: string | undefined;
117
+ EUR?: string | undefined;
118
+ GBP?: string | undefined;
119
+ JPY?: string | undefined;
120
+ INR?: string | undefined;
121
+ AUD?: string | undefined;
122
+ CAD?: string | undefined;
123
+ interval?: DayInterval | undefined;
124
+ serverOnly?: boolean | undefined;
125
+ freeTrial?: DayInterval | undefined;
126
+ }>;
127
+ includedItems: Record<string, {
128
+ repeat?: "never" | DayInterval | undefined;
129
+ expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
130
+ quantity: number;
131
+ }>;
132
+ }>;
133
+ } | undefined;
90
134
  emails: {
91
135
  selectedThemeId?: string | undefined;
92
136
  themes: Record<string, {
@@ -141,45 +185,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
141
185
  signUp: Record<string, true | undefined>;
142
186
  };
143
187
  };
144
- payments: {
145
- autoPay?: {
146
- interval?: DayInterval | undefined;
147
- } | undefined;
148
- testMode?: boolean | undefined;
149
- items: Record<string, {
150
- displayName?: string | undefined;
151
- customerType?: "team" | "user" | "custom" | undefined;
152
- }>;
153
- catalogs: Record<string, {
154
- displayName?: string | undefined;
155
- }>;
156
- products: Record<string, {
157
- displayName?: string | undefined;
158
- serverOnly?: boolean | undefined;
159
- freeTrial?: DayInterval | undefined;
160
- catalogId?: string | undefined;
161
- isAddOnTo?: false | Record<string, true> | undefined;
162
- stackable?: boolean | undefined;
163
- customerType: "team" | "user" | "custom";
164
- prices: "include-by-default" | Record<string, {
165
- USD?: string | undefined;
166
- EUR?: string | undefined;
167
- GBP?: string | undefined;
168
- JPY?: string | undefined;
169
- INR?: string | undefined;
170
- AUD?: string | undefined;
171
- CAD?: string | undefined;
172
- interval?: DayInterval | undefined;
173
- serverOnly?: boolean | undefined;
174
- freeTrial?: DayInterval | undefined;
175
- }>;
176
- includedItems: Record<string, {
177
- repeat?: "never" | DayInterval | undefined;
178
- expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
179
- quantity: number;
180
- }>;
181
- }>;
182
- };
183
188
  apiKeys: {
184
189
  enabled: {
185
190
  team?: boolean | undefined;
@@ -187,7 +192,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
187
192
  };
188
193
  };
189
194
  apps: {
190
- installed: Record<"emails" | "teams" | "authentication" | "onboarding" | "rbac" | "api-keys" | "payments" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
195
+ installed: Record<"emails" | "teams" | "payments" | "authentication" | "onboarding" | "rbac" | "api-keys" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
191
196
  enabled?: boolean | undefined;
192
197
  }>;
193
198
  };
@@ -201,7 +206,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
201
206
  };
202
207
  }, yup.AnyObject, Omit<Omit<{
203
208
  sourceOfTruth: undefined;
204
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
209
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
205
210
  rbac: {
206
211
  permissions: undefined;
207
212
  defaultPermissions: {
@@ -254,11 +259,12 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
254
259
  templates: undefined;
255
260
  };
256
261
  payments: {
262
+ blockNewPurchases: undefined;
257
263
  autoPay: {
258
264
  interval: undefined;
259
265
  };
260
266
  testMode: undefined;
261
- catalogs: undefined;
267
+ productLines: undefined;
262
268
  products: undefined;
263
269
  items: undefined;
264
270
  };
@@ -276,7 +282,48 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
276
282
  type: "postgres";
277
283
  connectionString: string;
278
284
  };
279
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
285
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
286
+ payments?: {
287
+ blockNewPurchases?: boolean | undefined;
288
+ autoPay?: {
289
+ interval?: DayInterval | undefined;
290
+ } | undefined;
291
+ testMode?: boolean | undefined;
292
+ items: Record<string, {
293
+ displayName?: string | undefined;
294
+ customerType?: "team" | "user" | "custom" | undefined;
295
+ }>;
296
+ productLines: Record<string, {
297
+ displayName?: string | undefined;
298
+ customerType?: "team" | "user" | "custom" | undefined;
299
+ }>;
300
+ products: Record<string, {
301
+ displayName?: string | undefined;
302
+ serverOnly?: boolean | undefined;
303
+ freeTrial?: DayInterval | undefined;
304
+ productLineId?: string | undefined;
305
+ isAddOnTo?: false | Record<string, true> | undefined;
306
+ stackable?: boolean | undefined;
307
+ customerType: "team" | "user" | "custom";
308
+ prices: "include-by-default" | Record<string, {
309
+ USD?: string | undefined;
310
+ EUR?: string | undefined;
311
+ GBP?: string | undefined;
312
+ JPY?: string | undefined;
313
+ INR?: string | undefined;
314
+ AUD?: string | undefined;
315
+ CAD?: string | undefined;
316
+ interval?: DayInterval | undefined;
317
+ serverOnly?: boolean | undefined;
318
+ freeTrial?: DayInterval | undefined;
319
+ }>;
320
+ includedItems: Record<string, {
321
+ repeat?: "never" | DayInterval | undefined;
322
+ expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
323
+ quantity: number;
324
+ }>;
325
+ }>;
326
+ } | undefined;
280
327
  emails: {
281
328
  selectedThemeId?: string | undefined;
282
329
  themes: Record<string, {
@@ -331,45 +378,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
331
378
  signUp: Record<string, true | undefined>;
332
379
  };
333
380
  };
334
- payments: {
335
- autoPay?: {
336
- interval?: DayInterval | undefined;
337
- } | undefined;
338
- testMode?: boolean | undefined;
339
- items: Record<string, {
340
- displayName?: string | undefined;
341
- customerType?: "team" | "user" | "custom" | undefined;
342
- }>;
343
- catalogs: Record<string, {
344
- displayName?: string | undefined;
345
- }>;
346
- products: Record<string, {
347
- displayName?: string | undefined;
348
- serverOnly?: boolean | undefined;
349
- freeTrial?: DayInterval | undefined;
350
- catalogId?: string | undefined;
351
- isAddOnTo?: false | Record<string, true> | undefined;
352
- stackable?: boolean | undefined;
353
- customerType: "team" | "user" | "custom";
354
- prices: "include-by-default" | Record<string, {
355
- USD?: string | undefined;
356
- EUR?: string | undefined;
357
- GBP?: string | undefined;
358
- JPY?: string | undefined;
359
- INR?: string | undefined;
360
- AUD?: string | undefined;
361
- CAD?: string | undefined;
362
- interval?: DayInterval | undefined;
363
- serverOnly?: boolean | undefined;
364
- freeTrial?: DayInterval | undefined;
365
- }>;
366
- includedItems: Record<string, {
367
- repeat?: "never" | DayInterval | undefined;
368
- expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
369
- quantity: number;
370
- }>;
371
- }>;
372
- };
373
381
  apiKeys: {
374
382
  enabled: {
375
383
  team?: boolean | undefined;
@@ -377,7 +385,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
377
385
  };
378
386
  };
379
387
  apps: {
380
- installed: Record<"emails" | "teams" | "authentication" | "onboarding" | "rbac" | "api-keys" | "payments" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
388
+ installed: Record<"emails" | "teams" | "payments" | "authentication" | "onboarding" | "rbac" | "api-keys" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
381
389
  enabled?: boolean | undefined;
382
390
  }>;
383
391
  };
@@ -463,7 +471,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
463
471
  };
464
472
  }, yup.AnyObject, Omit<NonNullable<Omit<Omit<{
465
473
  sourceOfTruth: undefined;
466
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
474
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
467
475
  rbac: {
468
476
  permissions: undefined;
469
477
  defaultPermissions: {
@@ -516,11 +524,12 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
516
524
  templates: undefined;
517
525
  };
518
526
  payments: {
527
+ blockNewPurchases: undefined;
519
528
  autoPay: {
520
529
  interval: undefined;
521
530
  };
522
531
  testMode: undefined;
523
- catalogs: undefined;
532
+ productLines: undefined;
524
533
  products: undefined;
525
534
  items: undefined;
526
535
  };
@@ -530,7 +539,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
530
539
  }>, "emails" | "domains" | "auth"> & {
531
540
  auth: Omit<NonNullable<Omit<Omit<{
532
541
  sourceOfTruth: undefined;
533
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
542
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
534
543
  rbac: {
535
544
  permissions: undefined;
536
545
  defaultPermissions: {
@@ -583,11 +592,12 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
583
592
  templates: undefined;
584
593
  };
585
594
  payments: {
595
+ blockNewPurchases: undefined;
586
596
  autoPay: {
587
597
  interval: undefined;
588
598
  };
589
599
  testMode: undefined;
590
- catalogs: undefined;
600
+ productLines: undefined;
591
601
  products: undefined;
592
602
  items: undefined;
593
603
  };
@@ -597,7 +607,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
597
607
  }>, "oauth"> & {
598
608
  oauth: Omit<NonNullable<Omit<Omit<{
599
609
  sourceOfTruth: undefined;
600
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
610
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
601
611
  rbac: {
602
612
  permissions: undefined;
603
613
  defaultPermissions: {
@@ -650,11 +660,12 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
650
660
  templates: undefined;
651
661
  };
652
662
  payments: {
663
+ blockNewPurchases: undefined;
653
664
  autoPay: {
654
665
  interval: undefined;
655
666
  };
656
667
  testMode: undefined;
657
- catalogs: undefined;
668
+ productLines: undefined;
658
669
  products: undefined;
659
670
  items: undefined;
660
671
  };
@@ -667,7 +678,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
667
678
  };
668
679
  emails: Omit<NonNullable<Omit<Omit<{
669
680
  sourceOfTruth: undefined;
670
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
681
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
671
682
  rbac: {
672
683
  permissions: undefined;
673
684
  defaultPermissions: {
@@ -720,11 +731,12 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
720
731
  templates: undefined;
721
732
  };
722
733
  payments: {
734
+ blockNewPurchases: undefined;
723
735
  autoPay: {
724
736
  interval: undefined;
725
737
  };
726
738
  testMode: undefined;
727
- catalogs: undefined;
739
+ productLines: undefined;
728
740
  products: undefined;
729
741
  items: undefined;
730
742
  };
@@ -745,7 +757,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
745
757
  };
746
758
  domains: Omit<NonNullable<Omit<Omit<{
747
759
  sourceOfTruth: undefined;
748
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
760
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
749
761
  rbac: {
750
762
  permissions: undefined;
751
763
  defaultPermissions: {
@@ -798,11 +810,12 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
798
810
  templates: undefined;
799
811
  };
800
812
  payments: {
813
+ blockNewPurchases: undefined;
801
814
  autoPay: {
802
815
  interval: undefined;
803
816
  };
804
817
  testMode: undefined;
805
- catalogs: undefined;
818
+ productLines: undefined;
806
819
  products: undefined;
807
820
  items: undefined;
808
821
  };
@@ -823,7 +836,48 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
823
836
  type: "postgres";
824
837
  connectionString: string;
825
838
  };
826
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
839
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
840
+ payments?: {
841
+ blockNewPurchases?: boolean | undefined;
842
+ autoPay?: {
843
+ interval?: DayInterval | undefined;
844
+ } | undefined;
845
+ testMode?: boolean | undefined;
846
+ items: Record<string, {
847
+ displayName?: string | undefined;
848
+ customerType?: "team" | "user" | "custom" | undefined;
849
+ }>;
850
+ productLines: Record<string, {
851
+ displayName?: string | undefined;
852
+ customerType?: "team" | "user" | "custom" | undefined;
853
+ }>;
854
+ products: Record<string, {
855
+ displayName?: string | undefined;
856
+ serverOnly?: boolean | undefined;
857
+ freeTrial?: DayInterval | undefined;
858
+ productLineId?: string | undefined;
859
+ isAddOnTo?: false | Record<string, true> | undefined;
860
+ stackable?: boolean | undefined;
861
+ customerType: "team" | "user" | "custom";
862
+ prices: "include-by-default" | Record<string, {
863
+ USD?: string | undefined;
864
+ EUR?: string | undefined;
865
+ GBP?: string | undefined;
866
+ JPY?: string | undefined;
867
+ INR?: string | undefined;
868
+ AUD?: string | undefined;
869
+ CAD?: string | undefined;
870
+ interval?: DayInterval | undefined;
871
+ serverOnly?: boolean | undefined;
872
+ freeTrial?: DayInterval | undefined;
873
+ }>;
874
+ includedItems: Record<string, {
875
+ repeat?: "never" | DayInterval | undefined;
876
+ expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
877
+ quantity: number;
878
+ }>;
879
+ }>;
880
+ } | undefined;
827
881
  emails: {
828
882
  selectedThemeId?: string | undefined;
829
883
  themes: Record<string, {
@@ -878,45 +932,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
878
932
  signUp: Record<string, true | undefined>;
879
933
  };
880
934
  };
881
- payments: {
882
- autoPay?: {
883
- interval?: DayInterval | undefined;
884
- } | undefined;
885
- testMode?: boolean | undefined;
886
- items: Record<string, {
887
- displayName?: string | undefined;
888
- customerType?: "team" | "user" | "custom" | undefined;
889
- }>;
890
- catalogs: Record<string, {
891
- displayName?: string | undefined;
892
- }>;
893
- products: Record<string, {
894
- displayName?: string | undefined;
895
- serverOnly?: boolean | undefined;
896
- freeTrial?: DayInterval | undefined;
897
- catalogId?: string | undefined;
898
- isAddOnTo?: false | Record<string, true> | undefined;
899
- stackable?: boolean | undefined;
900
- customerType: "team" | "user" | "custom";
901
- prices: "include-by-default" | Record<string, {
902
- USD?: string | undefined;
903
- EUR?: string | undefined;
904
- GBP?: string | undefined;
905
- JPY?: string | undefined;
906
- INR?: string | undefined;
907
- AUD?: string | undefined;
908
- CAD?: string | undefined;
909
- interval?: DayInterval | undefined;
910
- serverOnly?: boolean | undefined;
911
- freeTrial?: DayInterval | undefined;
912
- }>;
913
- includedItems: Record<string, {
914
- repeat?: "never" | DayInterval | undefined;
915
- expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
916
- quantity: number;
917
- }>;
918
- }>;
919
- };
920
935
  apiKeys: {
921
936
  enabled: {
922
937
  team?: boolean | undefined;
@@ -924,7 +939,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
924
939
  };
925
940
  };
926
941
  apps: {
927
- installed: Record<"emails" | "teams" | "authentication" | "onboarding" | "rbac" | "api-keys" | "payments" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
942
+ installed: Record<"emails" | "teams" | "payments" | "authentication" | "onboarding" | "rbac" | "api-keys" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex" | "vercel", {
928
943
  enabled?: boolean | undefined;
929
944
  }>;
930
945
  };
@@ -1010,7 +1025,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1010
1025
  };
1011
1026
  }>, never> & {}, yup.AnyObject, Omit<NonNullable<Omit<NonNullable<Omit<Omit<{
1012
1027
  sourceOfTruth: undefined;
1013
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1028
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1014
1029
  rbac: {
1015
1030
  permissions: undefined;
1016
1031
  defaultPermissions: {
@@ -1063,11 +1078,12 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1063
1078
  templates: undefined;
1064
1079
  };
1065
1080
  payments: {
1081
+ blockNewPurchases: undefined;
1066
1082
  autoPay: {
1067
1083
  interval: undefined;
1068
1084
  };
1069
1085
  testMode: undefined;
1070
- catalogs: undefined;
1086
+ productLines: undefined;
1071
1087
  products: undefined;
1072
1088
  items: undefined;
1073
1089
  };
@@ -1077,7 +1093,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1077
1093
  }>, "emails" | "domains" | "auth"> & {
1078
1094
  auth: Omit<NonNullable<Omit<Omit<{
1079
1095
  sourceOfTruth: undefined;
1080
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1096
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1081
1097
  rbac: {
1082
1098
  permissions: undefined;
1083
1099
  defaultPermissions: {
@@ -1130,11 +1146,12 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1130
1146
  templates: undefined;
1131
1147
  };
1132
1148
  payments: {
1149
+ blockNewPurchases: undefined;
1133
1150
  autoPay: {
1134
1151
  interval: undefined;
1135
1152
  };
1136
1153
  testMode: undefined;
1137
- catalogs: undefined;
1154
+ productLines: undefined;
1138
1155
  products: undefined;
1139
1156
  items: undefined;
1140
1157
  };
@@ -1144,7 +1161,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1144
1161
  }>, "oauth"> & {
1145
1162
  oauth: Omit<NonNullable<Omit<Omit<{
1146
1163
  sourceOfTruth: undefined;
1147
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1164
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1148
1165
  rbac: {
1149
1166
  permissions: undefined;
1150
1167
  defaultPermissions: {
@@ -1197,11 +1214,12 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1197
1214
  templates: undefined;
1198
1215
  };
1199
1216
  payments: {
1217
+ blockNewPurchases: undefined;
1200
1218
  autoPay: {
1201
1219
  interval: undefined;
1202
1220
  };
1203
1221
  testMode: undefined;
1204
- catalogs: undefined;
1222
+ productLines: undefined;
1205
1223
  products: undefined;
1206
1224
  items: undefined;
1207
1225
  };
@@ -1214,7 +1232,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1214
1232
  };
1215
1233
  emails: Omit<NonNullable<Omit<Omit<{
1216
1234
  sourceOfTruth: undefined;
1217
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1235
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1218
1236
  rbac: {
1219
1237
  permissions: undefined;
1220
1238
  defaultPermissions: {
@@ -1267,11 +1285,12 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1267
1285
  templates: undefined;
1268
1286
  };
1269
1287
  payments: {
1288
+ blockNewPurchases: undefined;
1270
1289
  autoPay: {
1271
1290
  interval: undefined;
1272
1291
  };
1273
1292
  testMode: undefined;
1274
- catalogs: undefined;
1293
+ productLines: undefined;
1275
1294
  products: undefined;
1276
1295
  items: undefined;
1277
1296
  };
@@ -1292,7 +1311,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1292
1311
  };
1293
1312
  domains: Omit<NonNullable<Omit<Omit<{
1294
1313
  sourceOfTruth: undefined;
1295
- }, string>, "emails" | "teams" | "domains" | "auth" | "onboarding" | "rbac" | "payments" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1314
+ }, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1296
1315
  rbac: {
1297
1316
  permissions: undefined;
1298
1317
  defaultPermissions: {
@@ -1345,11 +1364,12 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1345
1364
  templates: undefined;
1346
1365
  };
1347
1366
  payments: {
1367
+ blockNewPurchases: undefined;
1348
1368
  autoPay: {
1349
1369
  interval: undefined;
1350
1370
  };
1351
1371
  testMode: undefined;
1352
- catalogs: undefined;
1372
+ productLines: undefined;
1353
1373
  products: undefined;
1354
1374
  items: undefined;
1355
1375
  };
@@ -1494,14 +1514,16 @@ declare const organizationConfigDefaults: {
1494
1514
  };
1495
1515
  };
1496
1516
  readonly payments: {
1517
+ readonly blockNewPurchases: false;
1497
1518
  readonly testMode: true;
1498
1519
  readonly autoPay: undefined;
1499
- readonly catalogs: (key: string) => {
1520
+ readonly productLines: (key: string) => {
1500
1521
  displayName: undefined;
1522
+ customerType: undefined;
1501
1523
  };
1502
1524
  readonly products: (key: string) => {
1503
1525
  readonly displayName: string;
1504
- readonly catalogId: undefined;
1526
+ readonly productLineId: undefined;
1505
1527
  readonly customerType: "user";
1506
1528
  readonly freeTrial: undefined;
1507
1529
  readonly serverOnly: false;
@@ -1653,7 +1675,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1653
1675
  displayName: string;
1654
1676
  serverOnly: boolean;
1655
1677
  freeTrial: [number, "day" | "week" | "year" | "month"] | undefined;
1656
- catalogId: string | undefined;
1678
+ productLineId: string | undefined;
1657
1679
  customerType: "team" | "user" | "custom";
1658
1680
  stackable: boolean | undefined;
1659
1681
  includedItems: {
@@ -1670,15 +1692,17 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1670
1692
  customerType: "team" | "user" | "custom";
1671
1693
  };
1672
1694
  };
1673
- autoPay: {
1674
- interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1675
- } | undefined;
1676
- testMode: boolean;
1677
- catalogs: {
1695
+ productLines: {
1678
1696
  [x: string]: {
1679
1697
  displayName: string | undefined;
1698
+ customerType: "team" | "user" | "custom" | undefined;
1680
1699
  };
1681
1700
  };
1701
+ blockNewPurchases: boolean;
1702
+ autoPay: {
1703
+ interval?: [number, "day" | "week" | "year" | "month"] | undefined;
1704
+ } | undefined;
1705
+ testMode: boolean;
1682
1706
  };
1683
1707
  apps: {
1684
1708
  installed: Record<string, {