@stackframe/stack-shared 2.8.59 → 2.8.61
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.
- package/dist/config/schema-fuzzer.test.js +6 -5
- package/dist/config/schema-fuzzer.test.js.map +1 -1
- package/dist/config/schema.d.mts +277 -95
- package/dist/config/schema.d.ts +277 -95
- package/dist/config/schema.js +40 -24
- package/dist/config/schema.js.map +1 -1
- package/dist/esm/config/schema-fuzzer.test.js +6 -5
- package/dist/esm/config/schema-fuzzer.test.js.map +1 -1
- package/dist/esm/config/schema.js +40 -24
- package/dist/esm/config/schema.js.map +1 -1
- package/dist/esm/helpers/emails.js +73 -1
- package/dist/esm/helpers/emails.js.map +1 -1
- package/dist/esm/interface/admin-interface.js +70 -3
- package/dist/esm/interface/admin-interface.js.map +1 -1
- package/dist/esm/interface/client-interface.js +23 -6
- package/dist/esm/interface/client-interface.js.map +1 -1
- package/dist/esm/interface/crud/email-templates.js +1 -1
- package/dist/esm/interface/crud/email-templates.js.map +1 -1
- package/dist/esm/interface/crud/invoices.js +27 -0
- package/dist/esm/interface/crud/invoices.js.map +1 -0
- package/dist/esm/interface/server-interface.js.map +1 -1
- package/dist/esm/payments/payment-methods.js +101 -0
- package/dist/esm/payments/payment-methods.js.map +1 -0
- package/dist/esm/schema-fields.js +17 -0
- package/dist/esm/schema-fields.js.map +1 -1
- package/dist/esm/utils/objects.js +2 -2
- package/dist/esm/utils/objects.js.map +1 -1
- package/dist/helpers/emails.d.mts +12 -0
- package/dist/helpers/emails.d.ts +12 -0
- package/dist/helpers/emails.js +73 -1
- package/dist/helpers/emails.js.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/interface/admin-interface.d.mts +22 -5
- package/dist/interface/admin-interface.d.ts +22 -5
- package/dist/interface/admin-interface.js +70 -3
- package/dist/interface/admin-interface.js.map +1 -1
- package/dist/interface/client-interface.d.mts +4 -2
- package/dist/interface/client-interface.d.ts +4 -2
- package/dist/interface/client-interface.js +23 -6
- package/dist/interface/client-interface.js.map +1 -1
- package/dist/interface/crud/email-templates.d.mts +5 -5
- package/dist/interface/crud/email-templates.d.ts +5 -5
- package/dist/interface/crud/email-templates.js +1 -1
- package/dist/interface/crud/email-templates.js.map +1 -1
- package/dist/interface/crud/invoices.d.mts +41 -0
- package/dist/interface/crud/invoices.d.ts +41 -0
- package/dist/interface/crud/invoices.js +53 -0
- package/dist/interface/crud/invoices.js.map +1 -0
- package/dist/interface/crud/project-api-keys.d.mts +2 -2
- package/dist/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/interface/server-interface.d.mts +1 -0
- package/dist/interface/server-interface.d.ts +1 -0
- package/dist/interface/server-interface.js.map +1 -1
- package/dist/payments/payment-methods.d.mts +62 -0
- package/dist/payments/payment-methods.d.ts +62 -0
- package/dist/payments/payment-methods.js +135 -0
- package/dist/payments/payment-methods.js.map +1 -0
- package/dist/schema-fields.d.mts +13 -1
- package/dist/schema-fields.d.ts +13 -1
- package/dist/schema-fields.js +18 -0
- package/dist/schema-fields.js.map +1 -1
- package/dist/sessions.d.mts +1 -1
- package/dist/sessions.d.ts +1 -1
- package/dist/utils/objects.d.mts +6 -6
- package/dist/utils/objects.d.ts +6 -6
- package/dist/utils/objects.js +2 -2
- package/dist/utils/objects.js.map +1 -1
- package/package.json +1 -1
package/dist/config/schema.d.ts
CHANGED
|
@@ -34,7 +34,6 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
|
|
|
34
34
|
autoPay: {
|
|
35
35
|
interval?: DayInterval | undefined;
|
|
36
36
|
} | undefined;
|
|
37
|
-
testMode: boolean | undefined;
|
|
38
37
|
productLines: Record<string, {
|
|
39
38
|
displayName?: string | undefined;
|
|
40
39
|
customerType?: "team" | "user" | "custom" | undefined;
|
|
@@ -74,7 +73,6 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
|
|
|
74
73
|
autoPay: {
|
|
75
74
|
interval: undefined;
|
|
76
75
|
};
|
|
77
|
-
testMode: undefined;
|
|
78
76
|
productLines: undefined;
|
|
79
77
|
products: undefined;
|
|
80
78
|
items: undefined;
|
|
@@ -95,7 +93,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
95
93
|
autoPay?: {
|
|
96
94
|
interval?: DayInterval | undefined;
|
|
97
95
|
} | undefined;
|
|
98
|
-
testMode?: boolean | undefined;
|
|
99
96
|
items: Record<string, {
|
|
100
97
|
displayName?: string | undefined;
|
|
101
98
|
customerType?: "team" | "user" | "custom" | undefined;
|
|
@@ -147,9 +144,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
147
144
|
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
148
145
|
allowClientTeamCreation?: boolean | undefined;
|
|
149
146
|
};
|
|
150
|
-
domains: {
|
|
151
|
-
allowLocalhost?: boolean | undefined;
|
|
152
|
-
};
|
|
147
|
+
domains: {};
|
|
153
148
|
auth: {
|
|
154
149
|
allowSignUp?: boolean | undefined;
|
|
155
150
|
password: {
|
|
@@ -234,9 +229,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
234
229
|
apps: {
|
|
235
230
|
installed: undefined;
|
|
236
231
|
};
|
|
237
|
-
domains: {
|
|
238
|
-
allowLocalhost: undefined;
|
|
239
|
-
};
|
|
232
|
+
domains: {};
|
|
240
233
|
auth: {
|
|
241
234
|
allowSignUp: undefined;
|
|
242
235
|
password: {
|
|
@@ -263,7 +256,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
263
256
|
autoPay: {
|
|
264
257
|
interval: undefined;
|
|
265
258
|
};
|
|
266
|
-
testMode: undefined;
|
|
267
259
|
productLines: undefined;
|
|
268
260
|
products: undefined;
|
|
269
261
|
items: undefined;
|
|
@@ -288,7 +280,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
288
280
|
autoPay?: {
|
|
289
281
|
interval?: DayInterval | undefined;
|
|
290
282
|
} | undefined;
|
|
291
|
-
testMode?: boolean | undefined;
|
|
292
283
|
items: Record<string, {
|
|
293
284
|
displayName?: string | undefined;
|
|
294
285
|
customerType?: "team" | "user" | "custom" | undefined;
|
|
@@ -340,9 +331,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
340
331
|
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
341
332
|
allowClientTeamCreation?: boolean | undefined;
|
|
342
333
|
};
|
|
343
|
-
domains: {
|
|
344
|
-
allowLocalhost?: boolean | undefined;
|
|
345
|
-
};
|
|
334
|
+
domains: {};
|
|
346
335
|
auth: {
|
|
347
336
|
allowSignUp?: boolean | undefined;
|
|
348
337
|
password: {
|
|
@@ -397,7 +386,49 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
397
386
|
displayName?: string | undefined;
|
|
398
387
|
}>;
|
|
399
388
|
};
|
|
400
|
-
}>, "emails" | "domains" | "auth"> & {
|
|
389
|
+
}>, "emails" | "domains" | "payments" | "auth"> & {
|
|
390
|
+
payments?: (Omit<{
|
|
391
|
+
blockNewPurchases?: boolean | undefined;
|
|
392
|
+
autoPay?: {
|
|
393
|
+
interval?: DayInterval | undefined;
|
|
394
|
+
} | undefined;
|
|
395
|
+
items: Record<string, {
|
|
396
|
+
displayName?: string | undefined;
|
|
397
|
+
customerType?: "team" | "user" | "custom" | undefined;
|
|
398
|
+
}>;
|
|
399
|
+
productLines: Record<string, {
|
|
400
|
+
displayName?: string | undefined;
|
|
401
|
+
customerType?: "team" | "user" | "custom" | undefined;
|
|
402
|
+
}>;
|
|
403
|
+
products: Record<string, {
|
|
404
|
+
displayName?: string | undefined;
|
|
405
|
+
serverOnly?: boolean | undefined;
|
|
406
|
+
freeTrial?: DayInterval | undefined;
|
|
407
|
+
productLineId?: string | undefined;
|
|
408
|
+
isAddOnTo?: false | Record<string, true> | undefined;
|
|
409
|
+
stackable?: boolean | undefined;
|
|
410
|
+
customerType: "team" | "user" | "custom";
|
|
411
|
+
prices: "include-by-default" | Record<string, {
|
|
412
|
+
USD?: string | undefined;
|
|
413
|
+
EUR?: string | undefined;
|
|
414
|
+
GBP?: string | undefined;
|
|
415
|
+
JPY?: string | undefined;
|
|
416
|
+
INR?: string | undefined;
|
|
417
|
+
AUD?: string | undefined;
|
|
418
|
+
CAD?: string | undefined;
|
|
419
|
+
interval?: DayInterval | undefined;
|
|
420
|
+
serverOnly?: boolean | undefined;
|
|
421
|
+
freeTrial?: DayInterval | undefined;
|
|
422
|
+
}>;
|
|
423
|
+
includedItems: Record<string, {
|
|
424
|
+
repeat?: "never" | DayInterval | undefined;
|
|
425
|
+
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
426
|
+
quantity: number;
|
|
427
|
+
}>;
|
|
428
|
+
}>;
|
|
429
|
+
}, "testMode"> & {
|
|
430
|
+
testMode?: boolean | undefined;
|
|
431
|
+
}) | undefined;
|
|
401
432
|
emails: Omit<{
|
|
402
433
|
selectedThemeId?: string | undefined;
|
|
403
434
|
themes: Record<string, {
|
|
@@ -421,9 +452,8 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
421
452
|
senderEmail?: string | undefined;
|
|
422
453
|
};
|
|
423
454
|
};
|
|
424
|
-
domains: Omit<{
|
|
455
|
+
domains: Omit<{}, "allowLocalhost" | "trustedDomains"> & {
|
|
425
456
|
allowLocalhost?: boolean | undefined;
|
|
426
|
-
}, "trustedDomains"> & {
|
|
427
457
|
trustedDomains: Record<string, {
|
|
428
458
|
baseUrl?: string | undefined;
|
|
429
459
|
handlerPath?: string | undefined;
|
|
@@ -499,9 +529,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
499
529
|
apps: {
|
|
500
530
|
installed: undefined;
|
|
501
531
|
};
|
|
502
|
-
domains: {
|
|
503
|
-
allowLocalhost: undefined;
|
|
504
|
-
};
|
|
532
|
+
domains: {};
|
|
505
533
|
auth: {
|
|
506
534
|
allowSignUp: undefined;
|
|
507
535
|
password: {
|
|
@@ -528,7 +556,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
528
556
|
autoPay: {
|
|
529
557
|
interval: undefined;
|
|
530
558
|
};
|
|
531
|
-
testMode: undefined;
|
|
532
559
|
productLines: undefined;
|
|
533
560
|
products: undefined;
|
|
534
561
|
items: undefined;
|
|
@@ -536,7 +563,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
536
563
|
dataVault: {
|
|
537
564
|
stores: undefined;
|
|
538
565
|
};
|
|
539
|
-
}>, "emails" | "domains" | "auth"> & {
|
|
566
|
+
}>, "emails" | "domains" | "payments" | "auth"> & {
|
|
540
567
|
auth: Omit<NonNullable<Omit<Omit<{
|
|
541
568
|
sourceOfTruth: undefined;
|
|
542
569
|
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
@@ -567,9 +594,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
567
594
|
apps: {
|
|
568
595
|
installed: undefined;
|
|
569
596
|
};
|
|
570
|
-
domains: {
|
|
571
|
-
allowLocalhost: undefined;
|
|
572
|
-
};
|
|
597
|
+
domains: {};
|
|
573
598
|
auth: {
|
|
574
599
|
allowSignUp: undefined;
|
|
575
600
|
password: {
|
|
@@ -596,7 +621,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
596
621
|
autoPay: {
|
|
597
622
|
interval: undefined;
|
|
598
623
|
};
|
|
599
|
-
testMode: undefined;
|
|
600
624
|
productLines: undefined;
|
|
601
625
|
products: undefined;
|
|
602
626
|
items: undefined;
|
|
@@ -635,9 +659,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
635
659
|
apps: {
|
|
636
660
|
installed: undefined;
|
|
637
661
|
};
|
|
638
|
-
domains: {
|
|
639
|
-
allowLocalhost: undefined;
|
|
640
|
-
};
|
|
662
|
+
domains: {};
|
|
641
663
|
auth: {
|
|
642
664
|
allowSignUp: undefined;
|
|
643
665
|
password: {
|
|
@@ -664,7 +686,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
664
686
|
autoPay: {
|
|
665
687
|
interval: undefined;
|
|
666
688
|
};
|
|
667
|
-
testMode: undefined;
|
|
668
689
|
productLines: undefined;
|
|
669
690
|
products: undefined;
|
|
670
691
|
items: undefined;
|
|
@@ -706,9 +727,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
706
727
|
apps: {
|
|
707
728
|
installed: undefined;
|
|
708
729
|
};
|
|
709
|
-
domains: {
|
|
710
|
-
allowLocalhost: undefined;
|
|
711
|
-
};
|
|
730
|
+
domains: {};
|
|
712
731
|
auth: {
|
|
713
732
|
allowSignUp: undefined;
|
|
714
733
|
password: {
|
|
@@ -735,7 +754,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
735
754
|
autoPay: {
|
|
736
755
|
interval: undefined;
|
|
737
756
|
};
|
|
738
|
-
testMode: undefined;
|
|
739
757
|
productLines: undefined;
|
|
740
758
|
products: undefined;
|
|
741
759
|
items: undefined;
|
|
@@ -785,9 +803,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
785
803
|
apps: {
|
|
786
804
|
installed: undefined;
|
|
787
805
|
};
|
|
788
|
-
domains: {
|
|
789
|
-
allowLocalhost: undefined;
|
|
790
|
-
};
|
|
806
|
+
domains: {};
|
|
791
807
|
auth: {
|
|
792
808
|
allowSignUp: undefined;
|
|
793
809
|
password: {
|
|
@@ -814,7 +830,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
814
830
|
autoPay: {
|
|
815
831
|
interval: undefined;
|
|
816
832
|
};
|
|
817
|
-
testMode: undefined;
|
|
818
833
|
productLines: undefined;
|
|
819
834
|
products: undefined;
|
|
820
835
|
items: undefined;
|
|
@@ -822,9 +837,77 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
822
837
|
dataVault: {
|
|
823
838
|
stores: undefined;
|
|
824
839
|
};
|
|
825
|
-
}>, "trustedDomains"> & {
|
|
840
|
+
}>, "allowLocalhost" | "trustedDomains"> & {
|
|
841
|
+
allowLocalhost: undefined;
|
|
826
842
|
trustedDomains: undefined;
|
|
827
843
|
};
|
|
844
|
+
payments: Omit<NonNullable<Omit<Omit<{
|
|
845
|
+
sourceOfTruth: undefined;
|
|
846
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
847
|
+
rbac: {
|
|
848
|
+
permissions: undefined;
|
|
849
|
+
defaultPermissions: {
|
|
850
|
+
teamCreator: undefined;
|
|
851
|
+
teamMember: undefined;
|
|
852
|
+
signUp: undefined;
|
|
853
|
+
};
|
|
854
|
+
};
|
|
855
|
+
teams: {
|
|
856
|
+
createPersonalTeamOnSignUp: undefined;
|
|
857
|
+
allowClientTeamCreation: undefined;
|
|
858
|
+
};
|
|
859
|
+
users: {
|
|
860
|
+
allowClientUserDeletion: undefined;
|
|
861
|
+
};
|
|
862
|
+
onboarding: {
|
|
863
|
+
requireEmailVerification: undefined;
|
|
864
|
+
};
|
|
865
|
+
apiKeys: {
|
|
866
|
+
enabled: {
|
|
867
|
+
team: undefined;
|
|
868
|
+
user: undefined;
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
apps: {
|
|
872
|
+
installed: undefined;
|
|
873
|
+
};
|
|
874
|
+
domains: {};
|
|
875
|
+
auth: {
|
|
876
|
+
allowSignUp: undefined;
|
|
877
|
+
password: {
|
|
878
|
+
allowSignIn: undefined;
|
|
879
|
+
};
|
|
880
|
+
otp: {
|
|
881
|
+
allowSignIn: undefined;
|
|
882
|
+
};
|
|
883
|
+
passkey: {
|
|
884
|
+
allowSignIn: undefined;
|
|
885
|
+
};
|
|
886
|
+
oauth: {
|
|
887
|
+
accountMergeStrategy: undefined;
|
|
888
|
+
providers: undefined;
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
emails: {
|
|
892
|
+
selectedThemeId: undefined;
|
|
893
|
+
themes: undefined;
|
|
894
|
+
templates: undefined;
|
|
895
|
+
};
|
|
896
|
+
payments: {
|
|
897
|
+
blockNewPurchases: undefined;
|
|
898
|
+
autoPay: {
|
|
899
|
+
interval: undefined;
|
|
900
|
+
};
|
|
901
|
+
productLines: undefined;
|
|
902
|
+
products: undefined;
|
|
903
|
+
items: undefined;
|
|
904
|
+
};
|
|
905
|
+
dataVault: {
|
|
906
|
+
stores: undefined;
|
|
907
|
+
};
|
|
908
|
+
}>, "testMode"> & {
|
|
909
|
+
testMode: undefined;
|
|
910
|
+
};
|
|
828
911
|
}, "">;
|
|
829
912
|
declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNullable<Omit<Omit<{
|
|
830
913
|
sourceOfTruth: {
|
|
@@ -842,7 +925,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
842
925
|
autoPay?: {
|
|
843
926
|
interval?: DayInterval | undefined;
|
|
844
927
|
} | undefined;
|
|
845
|
-
testMode?: boolean | undefined;
|
|
846
928
|
items: Record<string, {
|
|
847
929
|
displayName?: string | undefined;
|
|
848
930
|
customerType?: "team" | "user" | "custom" | undefined;
|
|
@@ -894,9 +976,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
894
976
|
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
895
977
|
allowClientTeamCreation?: boolean | undefined;
|
|
896
978
|
};
|
|
897
|
-
domains: {
|
|
898
|
-
allowLocalhost?: boolean | undefined;
|
|
899
|
-
};
|
|
979
|
+
domains: {};
|
|
900
980
|
auth: {
|
|
901
981
|
allowSignUp?: boolean | undefined;
|
|
902
982
|
password: {
|
|
@@ -951,7 +1031,49 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
951
1031
|
displayName?: string | undefined;
|
|
952
1032
|
}>;
|
|
953
1033
|
};
|
|
954
|
-
}>, "emails" | "domains" | "auth"> & {
|
|
1034
|
+
}>, "emails" | "domains" | "payments" | "auth"> & {
|
|
1035
|
+
payments?: (Omit<{
|
|
1036
|
+
blockNewPurchases?: boolean | undefined;
|
|
1037
|
+
autoPay?: {
|
|
1038
|
+
interval?: DayInterval | undefined;
|
|
1039
|
+
} | undefined;
|
|
1040
|
+
items: Record<string, {
|
|
1041
|
+
displayName?: string | undefined;
|
|
1042
|
+
customerType?: "team" | "user" | "custom" | undefined;
|
|
1043
|
+
}>;
|
|
1044
|
+
productLines: Record<string, {
|
|
1045
|
+
displayName?: string | undefined;
|
|
1046
|
+
customerType?: "team" | "user" | "custom" | undefined;
|
|
1047
|
+
}>;
|
|
1048
|
+
products: Record<string, {
|
|
1049
|
+
displayName?: string | undefined;
|
|
1050
|
+
serverOnly?: boolean | undefined;
|
|
1051
|
+
freeTrial?: DayInterval | undefined;
|
|
1052
|
+
productLineId?: string | undefined;
|
|
1053
|
+
isAddOnTo?: false | Record<string, true> | undefined;
|
|
1054
|
+
stackable?: boolean | undefined;
|
|
1055
|
+
customerType: "team" | "user" | "custom";
|
|
1056
|
+
prices: "include-by-default" | Record<string, {
|
|
1057
|
+
USD?: string | undefined;
|
|
1058
|
+
EUR?: string | undefined;
|
|
1059
|
+
GBP?: string | undefined;
|
|
1060
|
+
JPY?: string | undefined;
|
|
1061
|
+
INR?: string | undefined;
|
|
1062
|
+
AUD?: string | undefined;
|
|
1063
|
+
CAD?: string | undefined;
|
|
1064
|
+
interval?: DayInterval | undefined;
|
|
1065
|
+
serverOnly?: boolean | undefined;
|
|
1066
|
+
freeTrial?: DayInterval | undefined;
|
|
1067
|
+
}>;
|
|
1068
|
+
includedItems: Record<string, {
|
|
1069
|
+
repeat?: "never" | DayInterval | undefined;
|
|
1070
|
+
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
1071
|
+
quantity: number;
|
|
1072
|
+
}>;
|
|
1073
|
+
}>;
|
|
1074
|
+
}, "testMode"> & {
|
|
1075
|
+
testMode?: boolean | undefined;
|
|
1076
|
+
}) | undefined;
|
|
955
1077
|
emails: Omit<{
|
|
956
1078
|
selectedThemeId?: string | undefined;
|
|
957
1079
|
themes: Record<string, {
|
|
@@ -975,9 +1097,8 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
975
1097
|
senderEmail?: string | undefined;
|
|
976
1098
|
};
|
|
977
1099
|
};
|
|
978
|
-
domains: Omit<{
|
|
1100
|
+
domains: Omit<{}, "allowLocalhost" | "trustedDomains"> & {
|
|
979
1101
|
allowLocalhost?: boolean | undefined;
|
|
980
|
-
}, "trustedDomains"> & {
|
|
981
1102
|
trustedDomains: Record<string, {
|
|
982
1103
|
baseUrl?: string | undefined;
|
|
983
1104
|
handlerPath?: string | undefined;
|
|
@@ -1053,9 +1174,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1053
1174
|
apps: {
|
|
1054
1175
|
installed: undefined;
|
|
1055
1176
|
};
|
|
1056
|
-
domains: {
|
|
1057
|
-
allowLocalhost: undefined;
|
|
1058
|
-
};
|
|
1177
|
+
domains: {};
|
|
1059
1178
|
auth: {
|
|
1060
1179
|
allowSignUp: undefined;
|
|
1061
1180
|
password: {
|
|
@@ -1082,7 +1201,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1082
1201
|
autoPay: {
|
|
1083
1202
|
interval: undefined;
|
|
1084
1203
|
};
|
|
1085
|
-
testMode: undefined;
|
|
1086
1204
|
productLines: undefined;
|
|
1087
1205
|
products: undefined;
|
|
1088
1206
|
items: undefined;
|
|
@@ -1090,7 +1208,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1090
1208
|
dataVault: {
|
|
1091
1209
|
stores: undefined;
|
|
1092
1210
|
};
|
|
1093
|
-
}>, "emails" | "domains" | "auth"> & {
|
|
1211
|
+
}>, "emails" | "domains" | "payments" | "auth"> & {
|
|
1094
1212
|
auth: Omit<NonNullable<Omit<Omit<{
|
|
1095
1213
|
sourceOfTruth: undefined;
|
|
1096
1214
|
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
@@ -1121,9 +1239,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1121
1239
|
apps: {
|
|
1122
1240
|
installed: undefined;
|
|
1123
1241
|
};
|
|
1124
|
-
domains: {
|
|
1125
|
-
allowLocalhost: undefined;
|
|
1126
|
-
};
|
|
1242
|
+
domains: {};
|
|
1127
1243
|
auth: {
|
|
1128
1244
|
allowSignUp: undefined;
|
|
1129
1245
|
password: {
|
|
@@ -1150,7 +1266,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1150
1266
|
autoPay: {
|
|
1151
1267
|
interval: undefined;
|
|
1152
1268
|
};
|
|
1153
|
-
testMode: undefined;
|
|
1154
1269
|
productLines: undefined;
|
|
1155
1270
|
products: undefined;
|
|
1156
1271
|
items: undefined;
|
|
@@ -1189,9 +1304,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1189
1304
|
apps: {
|
|
1190
1305
|
installed: undefined;
|
|
1191
1306
|
};
|
|
1192
|
-
domains: {
|
|
1193
|
-
allowLocalhost: undefined;
|
|
1194
|
-
};
|
|
1307
|
+
domains: {};
|
|
1195
1308
|
auth: {
|
|
1196
1309
|
allowSignUp: undefined;
|
|
1197
1310
|
password: {
|
|
@@ -1218,7 +1331,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1218
1331
|
autoPay: {
|
|
1219
1332
|
interval: undefined;
|
|
1220
1333
|
};
|
|
1221
|
-
testMode: undefined;
|
|
1222
1334
|
productLines: undefined;
|
|
1223
1335
|
products: undefined;
|
|
1224
1336
|
items: undefined;
|
|
@@ -1260,9 +1372,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1260
1372
|
apps: {
|
|
1261
1373
|
installed: undefined;
|
|
1262
1374
|
};
|
|
1263
|
-
domains: {
|
|
1264
|
-
allowLocalhost: undefined;
|
|
1265
|
-
};
|
|
1375
|
+
domains: {};
|
|
1266
1376
|
auth: {
|
|
1267
1377
|
allowSignUp: undefined;
|
|
1268
1378
|
password: {
|
|
@@ -1289,7 +1399,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1289
1399
|
autoPay: {
|
|
1290
1400
|
interval: undefined;
|
|
1291
1401
|
};
|
|
1292
|
-
testMode: undefined;
|
|
1293
1402
|
productLines: undefined;
|
|
1294
1403
|
products: undefined;
|
|
1295
1404
|
items: undefined;
|
|
@@ -1339,9 +1448,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1339
1448
|
apps: {
|
|
1340
1449
|
installed: undefined;
|
|
1341
1450
|
};
|
|
1342
|
-
domains: {
|
|
1343
|
-
allowLocalhost: undefined;
|
|
1344
|
-
};
|
|
1451
|
+
domains: {};
|
|
1345
1452
|
auth: {
|
|
1346
1453
|
allowSignUp: undefined;
|
|
1347
1454
|
password: {
|
|
@@ -1368,7 +1475,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1368
1475
|
autoPay: {
|
|
1369
1476
|
interval: undefined;
|
|
1370
1477
|
};
|
|
1371
|
-
testMode: undefined;
|
|
1372
1478
|
productLines: undefined;
|
|
1373
1479
|
products: undefined;
|
|
1374
1480
|
items: undefined;
|
|
@@ -1376,9 +1482,77 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1376
1482
|
dataVault: {
|
|
1377
1483
|
stores: undefined;
|
|
1378
1484
|
};
|
|
1379
|
-
}>, "trustedDomains"> & {
|
|
1485
|
+
}>, "allowLocalhost" | "trustedDomains"> & {
|
|
1486
|
+
allowLocalhost: undefined;
|
|
1380
1487
|
trustedDomains: undefined;
|
|
1381
1488
|
};
|
|
1489
|
+
payments: Omit<NonNullable<Omit<Omit<{
|
|
1490
|
+
sourceOfTruth: undefined;
|
|
1491
|
+
}, string>, "emails" | "teams" | "domains" | "payments" | "auth" | "onboarding" | "rbac" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
1492
|
+
rbac: {
|
|
1493
|
+
permissions: undefined;
|
|
1494
|
+
defaultPermissions: {
|
|
1495
|
+
teamCreator: undefined;
|
|
1496
|
+
teamMember: undefined;
|
|
1497
|
+
signUp: undefined;
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
teams: {
|
|
1501
|
+
createPersonalTeamOnSignUp: undefined;
|
|
1502
|
+
allowClientTeamCreation: undefined;
|
|
1503
|
+
};
|
|
1504
|
+
users: {
|
|
1505
|
+
allowClientUserDeletion: undefined;
|
|
1506
|
+
};
|
|
1507
|
+
onboarding: {
|
|
1508
|
+
requireEmailVerification: undefined;
|
|
1509
|
+
};
|
|
1510
|
+
apiKeys: {
|
|
1511
|
+
enabled: {
|
|
1512
|
+
team: undefined;
|
|
1513
|
+
user: undefined;
|
|
1514
|
+
};
|
|
1515
|
+
};
|
|
1516
|
+
apps: {
|
|
1517
|
+
installed: undefined;
|
|
1518
|
+
};
|
|
1519
|
+
domains: {};
|
|
1520
|
+
auth: {
|
|
1521
|
+
allowSignUp: undefined;
|
|
1522
|
+
password: {
|
|
1523
|
+
allowSignIn: undefined;
|
|
1524
|
+
};
|
|
1525
|
+
otp: {
|
|
1526
|
+
allowSignIn: undefined;
|
|
1527
|
+
};
|
|
1528
|
+
passkey: {
|
|
1529
|
+
allowSignIn: undefined;
|
|
1530
|
+
};
|
|
1531
|
+
oauth: {
|
|
1532
|
+
accountMergeStrategy: undefined;
|
|
1533
|
+
providers: undefined;
|
|
1534
|
+
};
|
|
1535
|
+
};
|
|
1536
|
+
emails: {
|
|
1537
|
+
selectedThemeId: undefined;
|
|
1538
|
+
themes: undefined;
|
|
1539
|
+
templates: undefined;
|
|
1540
|
+
};
|
|
1541
|
+
payments: {
|
|
1542
|
+
blockNewPurchases: undefined;
|
|
1543
|
+
autoPay: {
|
|
1544
|
+
interval: undefined;
|
|
1545
|
+
};
|
|
1546
|
+
productLines: undefined;
|
|
1547
|
+
products: undefined;
|
|
1548
|
+
items: undefined;
|
|
1549
|
+
};
|
|
1550
|
+
dataVault: {
|
|
1551
|
+
stores: undefined;
|
|
1552
|
+
};
|
|
1553
|
+
}>, "testMode"> & {
|
|
1554
|
+
testMode: undefined;
|
|
1555
|
+
};
|
|
1382
1556
|
}>, never> & {}, "">;
|
|
1383
1557
|
declare function migrateConfigOverride(type: "project" | "branch" | "environment" | "organization", oldUnmigratedConfigOverride: any): any;
|
|
1384
1558
|
declare const projectConfigDefaults: {
|
|
@@ -1511,6 +1685,16 @@ declare const organizationConfigDefaults: {
|
|
|
1511
1685
|
tsxSource: string;
|
|
1512
1686
|
themeId: undefined;
|
|
1513
1687
|
};
|
|
1688
|
+
"70372aee-0441-4d80-974c-2e858e40123a": {
|
|
1689
|
+
displayName: string;
|
|
1690
|
+
tsxSource: string;
|
|
1691
|
+
themeId: undefined;
|
|
1692
|
+
};
|
|
1693
|
+
"f64b1afe-27ec-4a28-a277-7178f3261f9a": {
|
|
1694
|
+
displayName: string;
|
|
1695
|
+
tsxSource: string;
|
|
1696
|
+
themeId: undefined;
|
|
1697
|
+
};
|
|
1514
1698
|
};
|
|
1515
1699
|
};
|
|
1516
1700
|
readonly payments: {
|
|
@@ -1631,6 +1815,31 @@ declare function sanitizeEnvironmentConfig<T extends EnvironmentRenderedConfigBe
|
|
|
1631
1815
|
};
|
|
1632
1816
|
}>;
|
|
1633
1817
|
declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBeforeSanitization): Promise<{
|
|
1818
|
+
auth: {
|
|
1819
|
+
oauth: {
|
|
1820
|
+
providers: Record<string, {
|
|
1821
|
+
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
1822
|
+
clientId: string | undefined;
|
|
1823
|
+
clientSecret: string | undefined;
|
|
1824
|
+
allowSignIn: boolean;
|
|
1825
|
+
allowConnectedAccounts: boolean;
|
|
1826
|
+
isShared: boolean;
|
|
1827
|
+
facebookConfigId: string | undefined;
|
|
1828
|
+
microsoftTenantId: string | undefined;
|
|
1829
|
+
}>;
|
|
1830
|
+
accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
|
|
1831
|
+
};
|
|
1832
|
+
password: {
|
|
1833
|
+
allowSignIn: boolean;
|
|
1834
|
+
};
|
|
1835
|
+
allowSignUp: boolean;
|
|
1836
|
+
otp: {
|
|
1837
|
+
allowSignIn: boolean;
|
|
1838
|
+
};
|
|
1839
|
+
passkey: {
|
|
1840
|
+
allowSignIn: boolean;
|
|
1841
|
+
};
|
|
1842
|
+
};
|
|
1634
1843
|
emails: {
|
|
1635
1844
|
selectedThemeId: string;
|
|
1636
1845
|
themes: {
|
|
@@ -1743,33 +1952,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1743
1952
|
};
|
|
1744
1953
|
};
|
|
1745
1954
|
};
|
|
1746
|
-
auth: {
|
|
1747
|
-
password: {
|
|
1748
|
-
allowSignIn: boolean;
|
|
1749
|
-
};
|
|
1750
|
-
allowSignUp: boolean;
|
|
1751
|
-
otp: {
|
|
1752
|
-
allowSignIn: boolean;
|
|
1753
|
-
};
|
|
1754
|
-
passkey: {
|
|
1755
|
-
allowSignIn: boolean;
|
|
1756
|
-
};
|
|
1757
|
-
oauth: {
|
|
1758
|
-
accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
|
|
1759
|
-
providers: {
|
|
1760
|
-
[x: string]: {
|
|
1761
|
-
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
1762
|
-
clientId: string | undefined;
|
|
1763
|
-
clientSecret: string | undefined;
|
|
1764
|
-
allowSignIn: boolean;
|
|
1765
|
-
allowConnectedAccounts: boolean;
|
|
1766
|
-
isShared: boolean;
|
|
1767
|
-
facebookConfigId: string | undefined;
|
|
1768
|
-
microsoftTenantId: string | undefined;
|
|
1769
|
-
};
|
|
1770
|
-
};
|
|
1771
|
-
};
|
|
1772
|
-
};
|
|
1773
1955
|
onboarding: {
|
|
1774
1956
|
requireEmailVerification: boolean;
|
|
1775
1957
|
};
|