@stackframe/stack-shared 2.8.45 → 2.8.46
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/CHANGELOG.md +6 -0
- package/dist/config/schema.d.mts +143 -143
- package/dist/config/schema.d.ts +143 -143
- package/package.json +1 -1
package/dist/config/schema.d.ts
CHANGED
|
@@ -38,17 +38,14 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
|
|
|
38
38
|
displayName?: string | undefined;
|
|
39
39
|
}>;
|
|
40
40
|
products: Record<string, {
|
|
41
|
-
catalogId?: string | undefined;
|
|
42
41
|
displayName?: string | undefined;
|
|
43
|
-
isAddOnTo?: false | Record<string, true> | undefined;
|
|
44
|
-
freeTrial?: DayInterval | undefined;
|
|
45
42
|
serverOnly?: boolean | undefined;
|
|
43
|
+
freeTrial?: DayInterval | undefined;
|
|
44
|
+
catalogId?: string | undefined;
|
|
45
|
+
isAddOnTo?: false | Record<string, true> | undefined;
|
|
46
46
|
stackable?: boolean | undefined;
|
|
47
47
|
customerType: "team" | "user" | "custom";
|
|
48
48
|
prices: "include-by-default" | Record<string, {
|
|
49
|
-
interval?: DayInterval | undefined;
|
|
50
|
-
freeTrial?: DayInterval | undefined;
|
|
51
|
-
serverOnly?: boolean | undefined;
|
|
52
49
|
USD?: string | undefined;
|
|
53
50
|
EUR?: string | undefined;
|
|
54
51
|
GBP?: string | undefined;
|
|
@@ -56,6 +53,9 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
|
|
|
56
53
|
INR?: string | undefined;
|
|
57
54
|
AUD?: string | undefined;
|
|
58
55
|
CAD?: string | undefined;
|
|
56
|
+
interval?: DayInterval | undefined;
|
|
57
|
+
serverOnly?: boolean | undefined;
|
|
58
|
+
freeTrial?: DayInterval | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
includedItems: Record<string, {
|
|
61
61
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -86,7 +86,14 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
86
86
|
type: "postgres";
|
|
87
87
|
connectionString: string;
|
|
88
88
|
};
|
|
89
|
-
}, string>, "
|
|
89
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
90
|
+
domains: {
|
|
91
|
+
allowLocalhost?: boolean | undefined;
|
|
92
|
+
};
|
|
93
|
+
teams: {
|
|
94
|
+
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
95
|
+
allowClientTeamCreation?: boolean | undefined;
|
|
96
|
+
};
|
|
90
97
|
auth: {
|
|
91
98
|
allowSignUp?: boolean | undefined;
|
|
92
99
|
password: {
|
|
@@ -101,20 +108,16 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
101
108
|
oauth: {
|
|
102
109
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
103
110
|
providers: Record<string, {
|
|
104
|
-
type?: "
|
|
111
|
+
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
105
112
|
allowSignIn?: boolean | undefined;
|
|
106
113
|
allowConnectedAccounts?: boolean | undefined;
|
|
107
114
|
}>;
|
|
108
115
|
};
|
|
109
116
|
};
|
|
110
|
-
teams: {
|
|
111
|
-
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
112
|
-
allowClientTeamCreation?: boolean | undefined;
|
|
113
|
-
};
|
|
114
117
|
rbac: {
|
|
115
118
|
permissions: Record<string, {
|
|
116
119
|
description?: string | undefined;
|
|
117
|
-
scope?: "
|
|
120
|
+
scope?: "team" | "project" | undefined;
|
|
118
121
|
containedPermissionIds?: Record<string, true | undefined> | undefined;
|
|
119
122
|
} | undefined>;
|
|
120
123
|
defaultPermissions: {
|
|
@@ -136,17 +139,14 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
136
139
|
displayName?: string | undefined;
|
|
137
140
|
}>;
|
|
138
141
|
products: Record<string, {
|
|
139
|
-
catalogId?: string | undefined;
|
|
140
142
|
displayName?: string | undefined;
|
|
141
|
-
isAddOnTo?: false | Record<string, true> | undefined;
|
|
142
|
-
freeTrial?: DayInterval | undefined;
|
|
143
143
|
serverOnly?: boolean | undefined;
|
|
144
|
+
freeTrial?: DayInterval | undefined;
|
|
145
|
+
catalogId?: string | undefined;
|
|
146
|
+
isAddOnTo?: false | Record<string, true> | undefined;
|
|
144
147
|
stackable?: boolean | undefined;
|
|
145
148
|
customerType: "team" | "user" | "custom";
|
|
146
149
|
prices: "include-by-default" | Record<string, {
|
|
147
|
-
interval?: DayInterval | undefined;
|
|
148
|
-
freeTrial?: DayInterval | undefined;
|
|
149
|
-
serverOnly?: boolean | undefined;
|
|
150
150
|
USD?: string | undefined;
|
|
151
151
|
EUR?: string | undefined;
|
|
152
152
|
GBP?: string | undefined;
|
|
@@ -154,6 +154,9 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
154
154
|
INR?: string | undefined;
|
|
155
155
|
AUD?: string | undefined;
|
|
156
156
|
CAD?: string | undefined;
|
|
157
|
+
interval?: DayInterval | undefined;
|
|
158
|
+
serverOnly?: boolean | undefined;
|
|
159
|
+
freeTrial?: DayInterval | undefined;
|
|
157
160
|
}>;
|
|
158
161
|
includedItems: Record<string, {
|
|
159
162
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -176,8 +179,8 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
176
179
|
};
|
|
177
180
|
workflows: {
|
|
178
181
|
availableWorkflows: Record<string, {
|
|
179
|
-
enabled?: boolean | undefined;
|
|
180
182
|
displayName?: string | undefined;
|
|
183
|
+
enabled?: boolean | undefined;
|
|
181
184
|
tsSource?: string | undefined;
|
|
182
185
|
}>;
|
|
183
186
|
};
|
|
@@ -188,13 +191,10 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
188
191
|
};
|
|
189
192
|
};
|
|
190
193
|
apps: {
|
|
191
|
-
installed: Record<"
|
|
194
|
+
installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
|
|
192
195
|
enabled?: boolean | undefined;
|
|
193
196
|
}>;
|
|
194
197
|
};
|
|
195
|
-
domains: {
|
|
196
|
-
allowLocalhost?: boolean | undefined;
|
|
197
|
-
};
|
|
198
198
|
users: {
|
|
199
199
|
allowClientUserDeletion?: boolean | undefined;
|
|
200
200
|
};
|
|
@@ -205,7 +205,7 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
|
|
|
205
205
|
};
|
|
206
206
|
}, yup.AnyObject, Omit<Omit<{
|
|
207
207
|
sourceOfTruth: undefined;
|
|
208
|
-
}, string>, "
|
|
208
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
209
209
|
rbac: {
|
|
210
210
|
permissions: undefined;
|
|
211
211
|
defaultPermissions: {
|
|
@@ -280,7 +280,14 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
280
280
|
type: "postgres";
|
|
281
281
|
connectionString: string;
|
|
282
282
|
};
|
|
283
|
-
}, string>, "
|
|
283
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
284
|
+
domains: {
|
|
285
|
+
allowLocalhost?: boolean | undefined;
|
|
286
|
+
};
|
|
287
|
+
teams: {
|
|
288
|
+
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
289
|
+
allowClientTeamCreation?: boolean | undefined;
|
|
290
|
+
};
|
|
284
291
|
auth: {
|
|
285
292
|
allowSignUp?: boolean | undefined;
|
|
286
293
|
password: {
|
|
@@ -295,20 +302,16 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
295
302
|
oauth: {
|
|
296
303
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
297
304
|
providers: Record<string, {
|
|
298
|
-
type?: "
|
|
305
|
+
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
299
306
|
allowSignIn?: boolean | undefined;
|
|
300
307
|
allowConnectedAccounts?: boolean | undefined;
|
|
301
308
|
}>;
|
|
302
309
|
};
|
|
303
310
|
};
|
|
304
|
-
teams: {
|
|
305
|
-
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
306
|
-
allowClientTeamCreation?: boolean | undefined;
|
|
307
|
-
};
|
|
308
311
|
rbac: {
|
|
309
312
|
permissions: Record<string, {
|
|
310
313
|
description?: string | undefined;
|
|
311
|
-
scope?: "
|
|
314
|
+
scope?: "team" | "project" | undefined;
|
|
312
315
|
containedPermissionIds?: Record<string, true | undefined> | undefined;
|
|
313
316
|
} | undefined>;
|
|
314
317
|
defaultPermissions: {
|
|
@@ -330,17 +333,14 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
330
333
|
displayName?: string | undefined;
|
|
331
334
|
}>;
|
|
332
335
|
products: Record<string, {
|
|
333
|
-
catalogId?: string | undefined;
|
|
334
336
|
displayName?: string | undefined;
|
|
335
|
-
isAddOnTo?: false | Record<string, true> | undefined;
|
|
336
|
-
freeTrial?: DayInterval | undefined;
|
|
337
337
|
serverOnly?: boolean | undefined;
|
|
338
|
+
freeTrial?: DayInterval | undefined;
|
|
339
|
+
catalogId?: string | undefined;
|
|
340
|
+
isAddOnTo?: false | Record<string, true> | undefined;
|
|
338
341
|
stackable?: boolean | undefined;
|
|
339
342
|
customerType: "team" | "user" | "custom";
|
|
340
343
|
prices: "include-by-default" | Record<string, {
|
|
341
|
-
interval?: DayInterval | undefined;
|
|
342
|
-
freeTrial?: DayInterval | undefined;
|
|
343
|
-
serverOnly?: boolean | undefined;
|
|
344
344
|
USD?: string | undefined;
|
|
345
345
|
EUR?: string | undefined;
|
|
346
346
|
GBP?: string | undefined;
|
|
@@ -348,6 +348,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
348
348
|
INR?: string | undefined;
|
|
349
349
|
AUD?: string | undefined;
|
|
350
350
|
CAD?: string | undefined;
|
|
351
|
+
interval?: DayInterval | undefined;
|
|
352
|
+
serverOnly?: boolean | undefined;
|
|
353
|
+
freeTrial?: DayInterval | undefined;
|
|
351
354
|
}>;
|
|
352
355
|
includedItems: Record<string, {
|
|
353
356
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -370,8 +373,8 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
370
373
|
};
|
|
371
374
|
workflows: {
|
|
372
375
|
availableWorkflows: Record<string, {
|
|
373
|
-
enabled?: boolean | undefined;
|
|
374
376
|
displayName?: string | undefined;
|
|
377
|
+
enabled?: boolean | undefined;
|
|
375
378
|
tsSource?: string | undefined;
|
|
376
379
|
}>;
|
|
377
380
|
};
|
|
@@ -382,13 +385,10 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
382
385
|
};
|
|
383
386
|
};
|
|
384
387
|
apps: {
|
|
385
|
-
installed: Record<"
|
|
388
|
+
installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
|
|
386
389
|
enabled?: boolean | undefined;
|
|
387
390
|
}>;
|
|
388
391
|
};
|
|
389
|
-
domains: {
|
|
390
|
-
allowLocalhost?: boolean | undefined;
|
|
391
|
-
};
|
|
392
392
|
users: {
|
|
393
393
|
allowClientUserDeletion?: boolean | undefined;
|
|
394
394
|
};
|
|
@@ -397,7 +397,15 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
397
397
|
displayName?: string | undefined;
|
|
398
398
|
}>;
|
|
399
399
|
};
|
|
400
|
-
}>, "
|
|
400
|
+
}>, "domains" | "auth" | "emails"> & {
|
|
401
|
+
domains: Omit<{
|
|
402
|
+
allowLocalhost?: boolean | undefined;
|
|
403
|
+
}, "trustedDomains"> & {
|
|
404
|
+
trustedDomains: Record<string, {
|
|
405
|
+
baseUrl?: string | undefined;
|
|
406
|
+
handlerPath?: string | undefined;
|
|
407
|
+
}>;
|
|
408
|
+
};
|
|
401
409
|
auth: Omit<{
|
|
402
410
|
allowSignUp?: boolean | undefined;
|
|
403
411
|
password: {
|
|
@@ -412,7 +420,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
412
420
|
oauth: {
|
|
413
421
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
414
422
|
providers: Record<string, {
|
|
415
|
-
type?: "
|
|
423
|
+
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
416
424
|
allowSignIn?: boolean | undefined;
|
|
417
425
|
allowConnectedAccounts?: boolean | undefined;
|
|
418
426
|
}>;
|
|
@@ -421,18 +429,18 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
421
429
|
oauth: Omit<{
|
|
422
430
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
423
431
|
providers: Record<string, {
|
|
424
|
-
type?: "
|
|
432
|
+
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
425
433
|
allowSignIn?: boolean | undefined;
|
|
426
434
|
allowConnectedAccounts?: boolean | undefined;
|
|
427
435
|
}>;
|
|
428
436
|
}, "providers"> & {
|
|
429
437
|
providers: Record<string, {
|
|
430
|
-
type?: "
|
|
438
|
+
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
439
|
+
clientId?: string | undefined;
|
|
440
|
+
clientSecret?: string | undefined;
|
|
431
441
|
allowSignIn?: boolean | undefined;
|
|
432
442
|
allowConnectedAccounts?: boolean | undefined;
|
|
433
443
|
isShared?: boolean | undefined;
|
|
434
|
-
clientId?: string | undefined;
|
|
435
|
-
clientSecret?: string | undefined;
|
|
436
444
|
facebookConfigId?: string | undefined;
|
|
437
445
|
microsoftTenantId?: string | undefined;
|
|
438
446
|
}>;
|
|
@@ -451,27 +459,19 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
451
459
|
}>;
|
|
452
460
|
}, "server"> & {
|
|
453
461
|
server: {
|
|
454
|
-
password?: string | undefined;
|
|
455
|
-
isShared?: boolean | undefined;
|
|
456
|
-
provider?: "resend" | "smtp" | undefined;
|
|
457
462
|
host?: string | undefined;
|
|
458
463
|
port?: number | undefined;
|
|
459
464
|
username?: string | undefined;
|
|
465
|
+
password?: string | undefined;
|
|
466
|
+
isShared?: boolean | undefined;
|
|
467
|
+
provider?: "resend" | "smtp" | undefined;
|
|
460
468
|
senderName?: string | undefined;
|
|
461
469
|
senderEmail?: string | undefined;
|
|
462
470
|
};
|
|
463
471
|
};
|
|
464
|
-
domains: Omit<{
|
|
465
|
-
allowLocalhost?: boolean | undefined;
|
|
466
|
-
}, "trustedDomains"> & {
|
|
467
|
-
trustedDomains: Record<string, {
|
|
468
|
-
baseUrl?: string | undefined;
|
|
469
|
-
handlerPath?: string | undefined;
|
|
470
|
-
}>;
|
|
471
|
-
};
|
|
472
472
|
}, yup.AnyObject, Omit<NonNullable<Omit<Omit<{
|
|
473
473
|
sourceOfTruth: undefined;
|
|
474
|
-
}, string>, "
|
|
474
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
475
475
|
rbac: {
|
|
476
476
|
permissions: undefined;
|
|
477
477
|
defaultPermissions: {
|
|
@@ -535,10 +535,10 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
535
535
|
workflows: {
|
|
536
536
|
availableWorkflows: undefined;
|
|
537
537
|
};
|
|
538
|
-
}>, "
|
|
538
|
+
}>, "domains" | "auth" | "emails"> & {
|
|
539
539
|
auth: Omit<NonNullable<Omit<Omit<{
|
|
540
540
|
sourceOfTruth: undefined;
|
|
541
|
-
}, string>, "
|
|
541
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
542
542
|
rbac: {
|
|
543
543
|
permissions: undefined;
|
|
544
544
|
defaultPermissions: {
|
|
@@ -605,7 +605,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
605
605
|
}>, "oauth"> & {
|
|
606
606
|
oauth: Omit<NonNullable<Omit<Omit<{
|
|
607
607
|
sourceOfTruth: undefined;
|
|
608
|
-
}, string>, "
|
|
608
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
609
609
|
rbac: {
|
|
610
610
|
permissions: undefined;
|
|
611
611
|
defaultPermissions: {
|
|
@@ -675,7 +675,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
675
675
|
};
|
|
676
676
|
emails: Omit<NonNullable<Omit<Omit<{
|
|
677
677
|
sourceOfTruth: undefined;
|
|
678
|
-
}, string>, "
|
|
678
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
679
679
|
rbac: {
|
|
680
680
|
permissions: undefined;
|
|
681
681
|
defaultPermissions: {
|
|
@@ -753,7 +753,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
753
753
|
};
|
|
754
754
|
domains: Omit<NonNullable<Omit<Omit<{
|
|
755
755
|
sourceOfTruth: undefined;
|
|
756
|
-
}, string>, "
|
|
756
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
757
757
|
rbac: {
|
|
758
758
|
permissions: undefined;
|
|
759
759
|
defaultPermissions: {
|
|
@@ -831,7 +831,14 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
831
831
|
type: "postgres";
|
|
832
832
|
connectionString: string;
|
|
833
833
|
};
|
|
834
|
-
}, string>, "
|
|
834
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
835
|
+
domains: {
|
|
836
|
+
allowLocalhost?: boolean | undefined;
|
|
837
|
+
};
|
|
838
|
+
teams: {
|
|
839
|
+
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
840
|
+
allowClientTeamCreation?: boolean | undefined;
|
|
841
|
+
};
|
|
835
842
|
auth: {
|
|
836
843
|
allowSignUp?: boolean | undefined;
|
|
837
844
|
password: {
|
|
@@ -846,20 +853,16 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
846
853
|
oauth: {
|
|
847
854
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
848
855
|
providers: Record<string, {
|
|
849
|
-
type?: "
|
|
856
|
+
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
850
857
|
allowSignIn?: boolean | undefined;
|
|
851
858
|
allowConnectedAccounts?: boolean | undefined;
|
|
852
859
|
}>;
|
|
853
860
|
};
|
|
854
861
|
};
|
|
855
|
-
teams: {
|
|
856
|
-
createPersonalTeamOnSignUp?: boolean | undefined;
|
|
857
|
-
allowClientTeamCreation?: boolean | undefined;
|
|
858
|
-
};
|
|
859
862
|
rbac: {
|
|
860
863
|
permissions: Record<string, {
|
|
861
864
|
description?: string | undefined;
|
|
862
|
-
scope?: "
|
|
865
|
+
scope?: "team" | "project" | undefined;
|
|
863
866
|
containedPermissionIds?: Record<string, true | undefined> | undefined;
|
|
864
867
|
} | undefined>;
|
|
865
868
|
defaultPermissions: {
|
|
@@ -881,17 +884,14 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
881
884
|
displayName?: string | undefined;
|
|
882
885
|
}>;
|
|
883
886
|
products: Record<string, {
|
|
884
|
-
catalogId?: string | undefined;
|
|
885
887
|
displayName?: string | undefined;
|
|
886
|
-
isAddOnTo?: false | Record<string, true> | undefined;
|
|
887
|
-
freeTrial?: DayInterval | undefined;
|
|
888
888
|
serverOnly?: boolean | undefined;
|
|
889
|
+
freeTrial?: DayInterval | undefined;
|
|
890
|
+
catalogId?: string | undefined;
|
|
891
|
+
isAddOnTo?: false | Record<string, true> | undefined;
|
|
889
892
|
stackable?: boolean | undefined;
|
|
890
893
|
customerType: "team" | "user" | "custom";
|
|
891
894
|
prices: "include-by-default" | Record<string, {
|
|
892
|
-
interval?: DayInterval | undefined;
|
|
893
|
-
freeTrial?: DayInterval | undefined;
|
|
894
|
-
serverOnly?: boolean | undefined;
|
|
895
895
|
USD?: string | undefined;
|
|
896
896
|
EUR?: string | undefined;
|
|
897
897
|
GBP?: string | undefined;
|
|
@@ -899,6 +899,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
899
899
|
INR?: string | undefined;
|
|
900
900
|
AUD?: string | undefined;
|
|
901
901
|
CAD?: string | undefined;
|
|
902
|
+
interval?: DayInterval | undefined;
|
|
903
|
+
serverOnly?: boolean | undefined;
|
|
904
|
+
freeTrial?: DayInterval | undefined;
|
|
902
905
|
}>;
|
|
903
906
|
includedItems: Record<string, {
|
|
904
907
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -921,8 +924,8 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
921
924
|
};
|
|
922
925
|
workflows: {
|
|
923
926
|
availableWorkflows: Record<string, {
|
|
924
|
-
enabled?: boolean | undefined;
|
|
925
927
|
displayName?: string | undefined;
|
|
928
|
+
enabled?: boolean | undefined;
|
|
926
929
|
tsSource?: string | undefined;
|
|
927
930
|
}>;
|
|
928
931
|
};
|
|
@@ -933,13 +936,10 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
933
936
|
};
|
|
934
937
|
};
|
|
935
938
|
apps: {
|
|
936
|
-
installed: Record<"
|
|
939
|
+
installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
|
|
937
940
|
enabled?: boolean | undefined;
|
|
938
941
|
}>;
|
|
939
942
|
};
|
|
940
|
-
domains: {
|
|
941
|
-
allowLocalhost?: boolean | undefined;
|
|
942
|
-
};
|
|
943
943
|
users: {
|
|
944
944
|
allowClientUserDeletion?: boolean | undefined;
|
|
945
945
|
};
|
|
@@ -948,7 +948,15 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
948
948
|
displayName?: string | undefined;
|
|
949
949
|
}>;
|
|
950
950
|
};
|
|
951
|
-
}>, "
|
|
951
|
+
}>, "domains" | "auth" | "emails"> & {
|
|
952
|
+
domains: Omit<{
|
|
953
|
+
allowLocalhost?: boolean | undefined;
|
|
954
|
+
}, "trustedDomains"> & {
|
|
955
|
+
trustedDomains: Record<string, {
|
|
956
|
+
baseUrl?: string | undefined;
|
|
957
|
+
handlerPath?: string | undefined;
|
|
958
|
+
}>;
|
|
959
|
+
};
|
|
952
960
|
auth: Omit<{
|
|
953
961
|
allowSignUp?: boolean | undefined;
|
|
954
962
|
password: {
|
|
@@ -963,7 +971,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
963
971
|
oauth: {
|
|
964
972
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
965
973
|
providers: Record<string, {
|
|
966
|
-
type?: "
|
|
974
|
+
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
967
975
|
allowSignIn?: boolean | undefined;
|
|
968
976
|
allowConnectedAccounts?: boolean | undefined;
|
|
969
977
|
}>;
|
|
@@ -972,18 +980,18 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
972
980
|
oauth: Omit<{
|
|
973
981
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
974
982
|
providers: Record<string, {
|
|
975
|
-
type?: "
|
|
983
|
+
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
976
984
|
allowSignIn?: boolean | undefined;
|
|
977
985
|
allowConnectedAccounts?: boolean | undefined;
|
|
978
986
|
}>;
|
|
979
987
|
}, "providers"> & {
|
|
980
988
|
providers: Record<string, {
|
|
981
|
-
type?: "
|
|
989
|
+
type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
990
|
+
clientId?: string | undefined;
|
|
991
|
+
clientSecret?: string | undefined;
|
|
982
992
|
allowSignIn?: boolean | undefined;
|
|
983
993
|
allowConnectedAccounts?: boolean | undefined;
|
|
984
994
|
isShared?: boolean | undefined;
|
|
985
|
-
clientId?: string | undefined;
|
|
986
|
-
clientSecret?: string | undefined;
|
|
987
995
|
facebookConfigId?: string | undefined;
|
|
988
996
|
microsoftTenantId?: string | undefined;
|
|
989
997
|
}>;
|
|
@@ -1002,27 +1010,19 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1002
1010
|
}>;
|
|
1003
1011
|
}, "server"> & {
|
|
1004
1012
|
server: {
|
|
1005
|
-
password?: string | undefined;
|
|
1006
|
-
isShared?: boolean | undefined;
|
|
1007
|
-
provider?: "resend" | "smtp" | undefined;
|
|
1008
1013
|
host?: string | undefined;
|
|
1009
1014
|
port?: number | undefined;
|
|
1010
1015
|
username?: string | undefined;
|
|
1016
|
+
password?: string | undefined;
|
|
1017
|
+
isShared?: boolean | undefined;
|
|
1018
|
+
provider?: "resend" | "smtp" | undefined;
|
|
1011
1019
|
senderName?: string | undefined;
|
|
1012
1020
|
senderEmail?: string | undefined;
|
|
1013
1021
|
};
|
|
1014
1022
|
};
|
|
1015
|
-
domains: Omit<{
|
|
1016
|
-
allowLocalhost?: boolean | undefined;
|
|
1017
|
-
}, "trustedDomains"> & {
|
|
1018
|
-
trustedDomains: Record<string, {
|
|
1019
|
-
baseUrl?: string | undefined;
|
|
1020
|
-
handlerPath?: string | undefined;
|
|
1021
|
-
}>;
|
|
1022
|
-
};
|
|
1023
1023
|
}>, never> & {}, yup.AnyObject, Omit<NonNullable<Omit<NonNullable<Omit<Omit<{
|
|
1024
1024
|
sourceOfTruth: undefined;
|
|
1025
|
-
}, string>, "
|
|
1025
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
1026
1026
|
rbac: {
|
|
1027
1027
|
permissions: undefined;
|
|
1028
1028
|
defaultPermissions: {
|
|
@@ -1086,10 +1086,10 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1086
1086
|
workflows: {
|
|
1087
1087
|
availableWorkflows: undefined;
|
|
1088
1088
|
};
|
|
1089
|
-
}>, "
|
|
1089
|
+
}>, "domains" | "auth" | "emails"> & {
|
|
1090
1090
|
auth: Omit<NonNullable<Omit<Omit<{
|
|
1091
1091
|
sourceOfTruth: undefined;
|
|
1092
|
-
}, string>, "
|
|
1092
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
1093
1093
|
rbac: {
|
|
1094
1094
|
permissions: undefined;
|
|
1095
1095
|
defaultPermissions: {
|
|
@@ -1156,7 +1156,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1156
1156
|
}>, "oauth"> & {
|
|
1157
1157
|
oauth: Omit<NonNullable<Omit<Omit<{
|
|
1158
1158
|
sourceOfTruth: undefined;
|
|
1159
|
-
}, string>, "
|
|
1159
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
1160
1160
|
rbac: {
|
|
1161
1161
|
permissions: undefined;
|
|
1162
1162
|
defaultPermissions: {
|
|
@@ -1226,7 +1226,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1226
1226
|
};
|
|
1227
1227
|
emails: Omit<NonNullable<Omit<Omit<{
|
|
1228
1228
|
sourceOfTruth: undefined;
|
|
1229
|
-
}, string>, "
|
|
1229
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
1230
1230
|
rbac: {
|
|
1231
1231
|
permissions: undefined;
|
|
1232
1232
|
defaultPermissions: {
|
|
@@ -1304,7 +1304,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
|
|
|
1304
1304
|
};
|
|
1305
1305
|
domains: Omit<NonNullable<Omit<Omit<{
|
|
1306
1306
|
sourceOfTruth: undefined;
|
|
1307
|
-
}, string>, "
|
|
1307
|
+
}, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
|
|
1308
1308
|
rbac: {
|
|
1309
1309
|
permissions: undefined;
|
|
1310
1310
|
defaultPermissions: {
|
|
@@ -1402,7 +1402,7 @@ declare const organizationConfigDefaults: {
|
|
|
1402
1402
|
};
|
|
1403
1403
|
};
|
|
1404
1404
|
readonly apps: {
|
|
1405
|
-
readonly installed: Record<"
|
|
1405
|
+
readonly installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
|
|
1406
1406
|
enabled: false;
|
|
1407
1407
|
}>;
|
|
1408
1408
|
};
|
|
@@ -1641,12 +1641,12 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1641
1641
|
};
|
|
1642
1642
|
};
|
|
1643
1643
|
server: {
|
|
1644
|
-
password: string | undefined;
|
|
1645
|
-
isShared: boolean;
|
|
1646
|
-
provider: "resend" | "smtp";
|
|
1647
1644
|
host: string | undefined;
|
|
1648
1645
|
port: number | undefined;
|
|
1649
1646
|
username: string | undefined;
|
|
1647
|
+
password: string | undefined;
|
|
1648
|
+
isShared: boolean;
|
|
1649
|
+
provider: "resend" | "smtp";
|
|
1650
1650
|
senderName: string | undefined;
|
|
1651
1651
|
senderEmail: string | undefined;
|
|
1652
1652
|
};
|
|
@@ -1655,9 +1655,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1655
1655
|
products: Record<string, {
|
|
1656
1656
|
isAddOnTo: false | Record<string, true>;
|
|
1657
1657
|
prices: "include-by-default" | Record<string, {
|
|
1658
|
-
interval?: [number, "day" | "week" | "month" | "year"] | undefined;
|
|
1659
|
-
freeTrial?: [number, "day" | "week" | "month" | "year"] | undefined;
|
|
1660
|
-
serverOnly: boolean;
|
|
1661
1658
|
USD?: string | undefined;
|
|
1662
1659
|
EUR?: string | undefined;
|
|
1663
1660
|
GBP?: string | undefined;
|
|
@@ -1665,16 +1662,19 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1665
1662
|
INR?: string | undefined;
|
|
1666
1663
|
AUD?: string | undefined;
|
|
1667
1664
|
CAD?: string | undefined;
|
|
1665
|
+
interval?: [number, "day" | "week" | "year" | "month"] | undefined;
|
|
1666
|
+
serverOnly: boolean;
|
|
1667
|
+
freeTrial?: [number, "day" | "week" | "year" | "month"] | undefined;
|
|
1668
1668
|
}>;
|
|
1669
|
-
catalogId: string | undefined;
|
|
1670
1669
|
displayName: string;
|
|
1671
|
-
customerType: "team" | "user" | "custom";
|
|
1672
|
-
freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
|
|
1673
1670
|
serverOnly: boolean;
|
|
1671
|
+
freeTrial: [number, "day" | "week" | "year" | "month"] | undefined;
|
|
1672
|
+
catalogId: string | undefined;
|
|
1673
|
+
customerType: "team" | "user" | "custom";
|
|
1674
1674
|
stackable: boolean | undefined;
|
|
1675
1675
|
includedItems: {
|
|
1676
1676
|
[x: string]: {
|
|
1677
|
-
repeat: "never" | [number, "day" | "week" | "
|
|
1677
|
+
repeat: "never" | [number, "day" | "week" | "year" | "month"];
|
|
1678
1678
|
quantity: number;
|
|
1679
1679
|
expires: "never" | "when-purchase-expires" | "when-repeated";
|
|
1680
1680
|
};
|
|
@@ -1687,7 +1687,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1687
1687
|
};
|
|
1688
1688
|
};
|
|
1689
1689
|
autoPay: {
|
|
1690
|
-
interval?: [number, "day" | "week" | "
|
|
1690
|
+
interval?: [number, "day" | "week" | "year" | "month"] | undefined;
|
|
1691
1691
|
} | undefined;
|
|
1692
1692
|
testMode: boolean;
|
|
1693
1693
|
catalogs: {
|
|
@@ -1697,7 +1697,7 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1697
1697
|
};
|
|
1698
1698
|
};
|
|
1699
1699
|
sourceOfTruth: {
|
|
1700
|
-
type: "
|
|
1700
|
+
type: "neon" | "hosted" | "postgres";
|
|
1701
1701
|
connectionString: string | undefined;
|
|
1702
1702
|
connectionStrings: {
|
|
1703
1703
|
[x: string]: string | undefined;
|
|
@@ -1717,11 +1717,24 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1717
1717
|
readonly connectionStrings?: undefined;
|
|
1718
1718
|
readonly connectionString?: undefined;
|
|
1719
1719
|
});
|
|
1720
|
+
domains: {
|
|
1721
|
+
allowLocalhost: boolean;
|
|
1722
|
+
trustedDomains: {
|
|
1723
|
+
[x: string]: {
|
|
1724
|
+
baseUrl: string | undefined;
|
|
1725
|
+
handlerPath: string;
|
|
1726
|
+
};
|
|
1727
|
+
};
|
|
1728
|
+
};
|
|
1729
|
+
teams: {
|
|
1730
|
+
createPersonalTeamOnSignUp: boolean;
|
|
1731
|
+
allowClientTeamCreation: boolean;
|
|
1732
|
+
};
|
|
1720
1733
|
auth: {
|
|
1721
|
-
allowSignUp: boolean;
|
|
1722
1734
|
password: {
|
|
1723
1735
|
allowSignIn: boolean;
|
|
1724
1736
|
};
|
|
1737
|
+
allowSignUp: boolean;
|
|
1725
1738
|
otp: {
|
|
1726
1739
|
allowSignIn: boolean;
|
|
1727
1740
|
};
|
|
@@ -1732,27 +1745,23 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1732
1745
|
accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
|
|
1733
1746
|
providers: {
|
|
1734
1747
|
[x: string]: {
|
|
1735
|
-
type: "
|
|
1748
|
+
type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
|
|
1749
|
+
clientId: string | undefined;
|
|
1750
|
+
clientSecret: string | undefined;
|
|
1736
1751
|
allowSignIn: boolean;
|
|
1737
1752
|
allowConnectedAccounts: boolean;
|
|
1738
1753
|
isShared: boolean;
|
|
1739
|
-
clientId: string | undefined;
|
|
1740
|
-
clientSecret: string | undefined;
|
|
1741
1754
|
facebookConfigId: string | undefined;
|
|
1742
1755
|
microsoftTenantId: string | undefined;
|
|
1743
1756
|
};
|
|
1744
1757
|
};
|
|
1745
1758
|
};
|
|
1746
1759
|
};
|
|
1747
|
-
teams: {
|
|
1748
|
-
createPersonalTeamOnSignUp: boolean;
|
|
1749
|
-
allowClientTeamCreation: boolean;
|
|
1750
|
-
};
|
|
1751
1760
|
rbac: {
|
|
1752
1761
|
permissions: {
|
|
1753
1762
|
[x: string]: {
|
|
1754
1763
|
description: string | undefined;
|
|
1755
|
-
scope: "
|
|
1764
|
+
scope: "team" | "project" | undefined;
|
|
1756
1765
|
containedPermissionIds: {
|
|
1757
1766
|
[x: string]: true | undefined;
|
|
1758
1767
|
};
|
|
@@ -1773,8 +1782,8 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1773
1782
|
workflows: {
|
|
1774
1783
|
availableWorkflows: {
|
|
1775
1784
|
[x: string]: {
|
|
1776
|
-
enabled: boolean;
|
|
1777
1785
|
displayName: string;
|
|
1786
|
+
enabled: boolean;
|
|
1778
1787
|
tsSource: string;
|
|
1779
1788
|
};
|
|
1780
1789
|
};
|
|
@@ -1787,15 +1796,12 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1787
1796
|
};
|
|
1788
1797
|
apps: {
|
|
1789
1798
|
installed: {
|
|
1790
|
-
|
|
1799
|
+
teams: {
|
|
1791
1800
|
enabled: boolean;
|
|
1792
1801
|
};
|
|
1793
1802
|
authentication: {
|
|
1794
1803
|
enabled: boolean;
|
|
1795
1804
|
};
|
|
1796
|
-
teams: {
|
|
1797
|
-
enabled: boolean;
|
|
1798
|
-
};
|
|
1799
1805
|
rbac: {
|
|
1800
1806
|
enabled: boolean;
|
|
1801
1807
|
};
|
|
@@ -1829,17 +1835,11 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
1829
1835
|
catalyst: {
|
|
1830
1836
|
enabled: boolean;
|
|
1831
1837
|
};
|
|
1832
|
-
|
|
1838
|
+
neon: {
|
|
1833
1839
|
enabled: boolean;
|
|
1834
1840
|
};
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
domains: {
|
|
1838
|
-
allowLocalhost: boolean;
|
|
1839
|
-
trustedDomains: {
|
|
1840
|
-
[x: string]: {
|
|
1841
|
-
baseUrl: string | undefined;
|
|
1842
|
-
handlerPath: string;
|
|
1841
|
+
convex: {
|
|
1842
|
+
enabled: boolean;
|
|
1843
1843
|
};
|
|
1844
1844
|
};
|
|
1845
1845
|
};
|