@stackframe/stack-shared 2.8.44 → 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.
@@ -39,16 +39,13 @@ declare const branchPaymentsSchema: yup.ObjectSchema<{
39
39
  }>;
40
40
  products: Record<string, {
41
41
  displayName?: string | undefined;
42
+ serverOnly?: boolean | undefined;
43
+ freeTrial?: DayInterval | undefined;
42
44
  catalogId?: string | undefined;
43
45
  isAddOnTo?: false | Record<string, true> | undefined;
44
- freeTrial?: DayInterval | undefined;
45
- serverOnly?: boolean | 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,33 +86,14 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
86
86
  type: "postgres";
87
87
  connectionString: string;
88
88
  };
89
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
90
- rbac: {
91
- permissions: Record<string, {
92
- description?: string | undefined;
93
- scope?: "team" | "project" | undefined;
94
- containedPermissionIds?: Record<string, true | undefined> | undefined;
95
- } | undefined>;
96
- defaultPermissions: {
97
- teamCreator: Record<string, true | undefined>;
98
- teamMember: Record<string, true | undefined>;
99
- signUp: Record<string, true | undefined>;
100
- };
101
- };
102
- apiKeys: {
103
- enabled: {
104
- team?: boolean | undefined;
105
- user?: boolean | undefined;
106
- };
107
- };
108
- apps: {
109
- installed: Record<"neon" | "rbac" | "payments" | "workflows" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
110
- enabled?: boolean | undefined;
111
- }>;
112
- };
89
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
113
90
  domains: {
114
91
  allowLocalhost?: boolean | undefined;
115
92
  };
93
+ teams: {
94
+ createPersonalTeamOnSignUp?: boolean | undefined;
95
+ allowClientTeamCreation?: boolean | undefined;
96
+ };
116
97
  auth: {
117
98
  allowSignUp?: boolean | undefined;
118
99
  password: {
@@ -127,12 +108,24 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
127
108
  oauth: {
128
109
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
129
110
  providers: Record<string, {
130
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
111
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
131
112
  allowSignIn?: boolean | undefined;
132
113
  allowConnectedAccounts?: boolean | undefined;
133
114
  }>;
134
115
  };
135
116
  };
117
+ rbac: {
118
+ permissions: Record<string, {
119
+ description?: string | undefined;
120
+ scope?: "team" | "project" | undefined;
121
+ containedPermissionIds?: Record<string, true | undefined> | undefined;
122
+ } | undefined>;
123
+ defaultPermissions: {
124
+ teamCreator: Record<string, true | undefined>;
125
+ teamMember: Record<string, true | undefined>;
126
+ signUp: Record<string, true | undefined>;
127
+ };
128
+ };
136
129
  payments: {
137
130
  autoPay?: {
138
131
  interval?: DayInterval | undefined;
@@ -147,16 +140,13 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
147
140
  }>;
148
141
  products: Record<string, {
149
142
  displayName?: string | undefined;
143
+ serverOnly?: boolean | undefined;
144
+ freeTrial?: DayInterval | undefined;
150
145
  catalogId?: string | undefined;
151
146
  isAddOnTo?: false | Record<string, true> | undefined;
152
- freeTrial?: DayInterval | undefined;
153
- serverOnly?: boolean | undefined;
154
147
  stackable?: boolean | undefined;
155
148
  customerType: "team" | "user" | "custom";
156
149
  prices: "include-by-default" | Record<string, {
157
- interval?: DayInterval | undefined;
158
- freeTrial?: DayInterval | undefined;
159
- serverOnly?: boolean | undefined;
160
150
  USD?: string | undefined;
161
151
  EUR?: string | undefined;
162
152
  GBP?: string | undefined;
@@ -164,6 +154,9 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
164
154
  INR?: string | undefined;
165
155
  AUD?: string | undefined;
166
156
  CAD?: string | undefined;
157
+ interval?: DayInterval | undefined;
158
+ serverOnly?: boolean | undefined;
159
+ freeTrial?: DayInterval | undefined;
167
160
  }>;
168
161
  includedItems: Record<string, {
169
162
  repeat?: "never" | DayInterval | undefined;
@@ -172,20 +165,6 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
172
165
  }>;
173
166
  }>;
174
167
  };
175
- workflows: {
176
- availableWorkflows: Record<string, {
177
- enabled?: boolean | undefined;
178
- displayName?: string | undefined;
179
- tsSource?: string | undefined;
180
- }>;
181
- };
182
- teams: {
183
- createPersonalTeamOnSignUp?: boolean | undefined;
184
- allowClientTeamCreation?: boolean | undefined;
185
- };
186
- users: {
187
- allowClientUserDeletion?: boolean | undefined;
188
- };
189
168
  emails: {
190
169
  selectedThemeId?: string | undefined;
191
170
  themes: Record<string, {
@@ -198,6 +177,27 @@ declare const branchConfigSchema: yup.Schema<Omit<Omit<{
198
177
  tsxSource: string;
199
178
  }>;
200
179
  };
180
+ workflows: {
181
+ availableWorkflows: Record<string, {
182
+ displayName?: string | undefined;
183
+ enabled?: boolean | undefined;
184
+ tsSource?: string | undefined;
185
+ }>;
186
+ };
187
+ apiKeys: {
188
+ enabled: {
189
+ team?: boolean | undefined;
190
+ user?: boolean | undefined;
191
+ };
192
+ };
193
+ apps: {
194
+ installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
195
+ enabled?: boolean | undefined;
196
+ }>;
197
+ };
198
+ users: {
199
+ allowClientUserDeletion?: boolean | undefined;
200
+ };
201
201
  dataVault: {
202
202
  stores: Record<string, {
203
203
  displayName?: string | undefined;
@@ -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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
208
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
209
209
  rbac: {
210
210
  permissions: undefined;
211
211
  defaultPermissions: {
@@ -280,33 +280,14 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
280
280
  type: "postgres";
281
281
  connectionString: string;
282
282
  };
283
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
284
- rbac: {
285
- permissions: Record<string, {
286
- description?: string | undefined;
287
- scope?: "team" | "project" | undefined;
288
- containedPermissionIds?: Record<string, true | undefined> | undefined;
289
- } | undefined>;
290
- defaultPermissions: {
291
- teamCreator: Record<string, true | undefined>;
292
- teamMember: Record<string, true | undefined>;
293
- signUp: Record<string, true | undefined>;
294
- };
295
- };
296
- apiKeys: {
297
- enabled: {
298
- team?: boolean | undefined;
299
- user?: boolean | undefined;
300
- };
301
- };
302
- apps: {
303
- installed: Record<"neon" | "rbac" | "payments" | "workflows" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
304
- enabled?: boolean | undefined;
305
- }>;
306
- };
283
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
307
284
  domains: {
308
285
  allowLocalhost?: boolean | undefined;
309
286
  };
287
+ teams: {
288
+ createPersonalTeamOnSignUp?: boolean | undefined;
289
+ allowClientTeamCreation?: boolean | undefined;
290
+ };
310
291
  auth: {
311
292
  allowSignUp?: boolean | undefined;
312
293
  password: {
@@ -321,12 +302,24 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
321
302
  oauth: {
322
303
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
323
304
  providers: Record<string, {
324
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
305
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
325
306
  allowSignIn?: boolean | undefined;
326
307
  allowConnectedAccounts?: boolean | undefined;
327
308
  }>;
328
309
  };
329
310
  };
311
+ rbac: {
312
+ permissions: Record<string, {
313
+ description?: string | undefined;
314
+ scope?: "team" | "project" | undefined;
315
+ containedPermissionIds?: Record<string, true | undefined> | undefined;
316
+ } | undefined>;
317
+ defaultPermissions: {
318
+ teamCreator: Record<string, true | undefined>;
319
+ teamMember: Record<string, true | undefined>;
320
+ signUp: Record<string, true | undefined>;
321
+ };
322
+ };
330
323
  payments: {
331
324
  autoPay?: {
332
325
  interval?: DayInterval | undefined;
@@ -341,16 +334,13 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
341
334
  }>;
342
335
  products: Record<string, {
343
336
  displayName?: string | undefined;
337
+ serverOnly?: boolean | undefined;
338
+ freeTrial?: DayInterval | undefined;
344
339
  catalogId?: string | undefined;
345
340
  isAddOnTo?: false | Record<string, true> | undefined;
346
- freeTrial?: DayInterval | undefined;
347
- serverOnly?: boolean | undefined;
348
341
  stackable?: boolean | undefined;
349
342
  customerType: "team" | "user" | "custom";
350
343
  prices: "include-by-default" | Record<string, {
351
- interval?: DayInterval | undefined;
352
- freeTrial?: DayInterval | undefined;
353
- serverOnly?: boolean | undefined;
354
344
  USD?: string | undefined;
355
345
  EUR?: string | undefined;
356
346
  GBP?: string | undefined;
@@ -358,6 +348,9 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
358
348
  INR?: string | undefined;
359
349
  AUD?: string | undefined;
360
350
  CAD?: string | undefined;
351
+ interval?: DayInterval | undefined;
352
+ serverOnly?: boolean | undefined;
353
+ freeTrial?: DayInterval | undefined;
361
354
  }>;
362
355
  includedItems: Record<string, {
363
356
  repeat?: "never" | DayInterval | undefined;
@@ -366,20 +359,6 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
366
359
  }>;
367
360
  }>;
368
361
  };
369
- workflows: {
370
- availableWorkflows: Record<string, {
371
- enabled?: boolean | undefined;
372
- displayName?: string | undefined;
373
- tsSource?: string | undefined;
374
- }>;
375
- };
376
- teams: {
377
- createPersonalTeamOnSignUp?: boolean | undefined;
378
- allowClientTeamCreation?: boolean | undefined;
379
- };
380
- users: {
381
- allowClientUserDeletion?: boolean | undefined;
382
- };
383
362
  emails: {
384
363
  selectedThemeId?: string | undefined;
385
364
  themes: Record<string, {
@@ -392,6 +371,27 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
392
371
  tsxSource: string;
393
372
  }>;
394
373
  };
374
+ workflows: {
375
+ availableWorkflows: Record<string, {
376
+ displayName?: string | undefined;
377
+ enabled?: boolean | undefined;
378
+ tsSource?: string | undefined;
379
+ }>;
380
+ };
381
+ apiKeys: {
382
+ enabled: {
383
+ team?: boolean | undefined;
384
+ user?: boolean | undefined;
385
+ };
386
+ };
387
+ apps: {
388
+ installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
389
+ enabled?: boolean | undefined;
390
+ }>;
391
+ };
392
+ users: {
393
+ allowClientUserDeletion?: boolean | undefined;
394
+ };
395
395
  dataVault: {
396
396
  stores: Record<string, {
397
397
  displayName?: string | undefined;
@@ -420,7 +420,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
420
420
  oauth: {
421
421
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
422
422
  providers: Record<string, {
423
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
423
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
424
424
  allowSignIn?: boolean | undefined;
425
425
  allowConnectedAccounts?: boolean | undefined;
426
426
  }>;
@@ -429,18 +429,18 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
429
429
  oauth: Omit<{
430
430
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
431
431
  providers: Record<string, {
432
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
432
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
433
433
  allowSignIn?: boolean | undefined;
434
434
  allowConnectedAccounts?: boolean | undefined;
435
435
  }>;
436
436
  }, "providers"> & {
437
437
  providers: Record<string, {
438
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
438
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
439
+ clientId?: string | undefined;
440
+ clientSecret?: string | undefined;
439
441
  allowSignIn?: boolean | undefined;
440
442
  allowConnectedAccounts?: boolean | undefined;
441
443
  isShared?: boolean | undefined;
442
- clientId?: string | undefined;
443
- clientSecret?: string | undefined;
444
444
  facebookConfigId?: string | undefined;
445
445
  microsoftTenantId?: string | undefined;
446
446
  }>;
@@ -459,19 +459,19 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
459
459
  }>;
460
460
  }, "server"> & {
461
461
  server: {
462
- password?: string | undefined;
463
- isShared?: boolean | undefined;
464
- provider?: "resend" | "smtp" | undefined;
465
462
  host?: string | undefined;
466
463
  port?: number | undefined;
467
464
  username?: string | undefined;
465
+ password?: string | undefined;
466
+ isShared?: boolean | undefined;
467
+ provider?: "resend" | "smtp" | undefined;
468
468
  senderName?: string | undefined;
469
469
  senderEmail?: string | undefined;
470
470
  };
471
471
  };
472
472
  }, yup.AnyObject, Omit<NonNullable<Omit<Omit<{
473
473
  sourceOfTruth: undefined;
474
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
474
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
475
475
  rbac: {
476
476
  permissions: undefined;
477
477
  defaultPermissions: {
@@ -538,7 +538,7 @@ declare const environmentConfigSchema: yup.Schema<Omit<NonNullable<Omit<Omit<{
538
538
  }>, "domains" | "auth" | "emails"> & {
539
539
  auth: Omit<NonNullable<Omit<Omit<{
540
540
  sourceOfTruth: undefined;
541
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
756
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
757
757
  rbac: {
758
758
  permissions: undefined;
759
759
  defaultPermissions: {
@@ -831,33 +831,14 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
831
831
  type: "postgres";
832
832
  connectionString: string;
833
833
  };
834
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
835
- rbac: {
836
- permissions: Record<string, {
837
- description?: string | undefined;
838
- scope?: "team" | "project" | undefined;
839
- containedPermissionIds?: Record<string, true | undefined> | undefined;
840
- } | undefined>;
841
- defaultPermissions: {
842
- teamCreator: Record<string, true | undefined>;
843
- teamMember: Record<string, true | undefined>;
844
- signUp: Record<string, true | undefined>;
845
- };
846
- };
847
- apiKeys: {
848
- enabled: {
849
- team?: boolean | undefined;
850
- user?: boolean | undefined;
851
- };
852
- };
853
- apps: {
854
- installed: Record<"neon" | "rbac" | "payments" | "workflows" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
855
- enabled?: boolean | undefined;
856
- }>;
857
- };
834
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
858
835
  domains: {
859
836
  allowLocalhost?: boolean | undefined;
860
837
  };
838
+ teams: {
839
+ createPersonalTeamOnSignUp?: boolean | undefined;
840
+ allowClientTeamCreation?: boolean | undefined;
841
+ };
861
842
  auth: {
862
843
  allowSignUp?: boolean | undefined;
863
844
  password: {
@@ -872,12 +853,24 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
872
853
  oauth: {
873
854
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
874
855
  providers: Record<string, {
875
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
856
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
876
857
  allowSignIn?: boolean | undefined;
877
858
  allowConnectedAccounts?: boolean | undefined;
878
859
  }>;
879
860
  };
880
861
  };
862
+ rbac: {
863
+ permissions: Record<string, {
864
+ description?: string | undefined;
865
+ scope?: "team" | "project" | undefined;
866
+ containedPermissionIds?: Record<string, true | undefined> | undefined;
867
+ } | undefined>;
868
+ defaultPermissions: {
869
+ teamCreator: Record<string, true | undefined>;
870
+ teamMember: Record<string, true | undefined>;
871
+ signUp: Record<string, true | undefined>;
872
+ };
873
+ };
881
874
  payments: {
882
875
  autoPay?: {
883
876
  interval?: DayInterval | undefined;
@@ -892,16 +885,13 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
892
885
  }>;
893
886
  products: Record<string, {
894
887
  displayName?: string | undefined;
888
+ serverOnly?: boolean | undefined;
889
+ freeTrial?: DayInterval | undefined;
895
890
  catalogId?: string | undefined;
896
891
  isAddOnTo?: false | Record<string, true> | undefined;
897
- freeTrial?: DayInterval | undefined;
898
- serverOnly?: boolean | undefined;
899
892
  stackable?: boolean | undefined;
900
893
  customerType: "team" | "user" | "custom";
901
894
  prices: "include-by-default" | Record<string, {
902
- interval?: DayInterval | undefined;
903
- freeTrial?: DayInterval | undefined;
904
- serverOnly?: boolean | undefined;
905
895
  USD?: string | undefined;
906
896
  EUR?: string | undefined;
907
897
  GBP?: string | undefined;
@@ -909,6 +899,9 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
909
899
  INR?: string | undefined;
910
900
  AUD?: string | undefined;
911
901
  CAD?: string | undefined;
902
+ interval?: DayInterval | undefined;
903
+ serverOnly?: boolean | undefined;
904
+ freeTrial?: DayInterval | undefined;
912
905
  }>;
913
906
  includedItems: Record<string, {
914
907
  repeat?: "never" | DayInterval | undefined;
@@ -917,20 +910,6 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
917
910
  }>;
918
911
  }>;
919
912
  };
920
- workflows: {
921
- availableWorkflows: Record<string, {
922
- enabled?: boolean | undefined;
923
- displayName?: string | undefined;
924
- tsSource?: string | undefined;
925
- }>;
926
- };
927
- teams: {
928
- createPersonalTeamOnSignUp?: boolean | undefined;
929
- allowClientTeamCreation?: boolean | undefined;
930
- };
931
- users: {
932
- allowClientUserDeletion?: boolean | undefined;
933
- };
934
913
  emails: {
935
914
  selectedThemeId?: string | undefined;
936
915
  themes: Record<string, {
@@ -943,6 +922,27 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
943
922
  tsxSource: string;
944
923
  }>;
945
924
  };
925
+ workflows: {
926
+ availableWorkflows: Record<string, {
927
+ displayName?: string | undefined;
928
+ enabled?: boolean | undefined;
929
+ tsSource?: string | undefined;
930
+ }>;
931
+ };
932
+ apiKeys: {
933
+ enabled: {
934
+ team?: boolean | undefined;
935
+ user?: boolean | undefined;
936
+ };
937
+ };
938
+ apps: {
939
+ installed: Record<"teams" | "authentication" | "rbac" | "api-keys" | "payments" | "emails" | "email-api" | "data-vault" | "workflows" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "neon" | "convex", {
940
+ enabled?: boolean | undefined;
941
+ }>;
942
+ };
943
+ users: {
944
+ allowClientUserDeletion?: boolean | undefined;
945
+ };
946
946
  dataVault: {
947
947
  stores: Record<string, {
948
948
  displayName?: string | undefined;
@@ -971,7 +971,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
971
971
  oauth: {
972
972
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
973
973
  providers: Record<string, {
974
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
974
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
975
975
  allowSignIn?: boolean | undefined;
976
976
  allowConnectedAccounts?: boolean | undefined;
977
977
  }>;
@@ -980,18 +980,18 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
980
980
  oauth: Omit<{
981
981
  accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
982
982
  providers: Record<string, {
983
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
983
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
984
984
  allowSignIn?: boolean | undefined;
985
985
  allowConnectedAccounts?: boolean | undefined;
986
986
  }>;
987
987
  }, "providers"> & {
988
988
  providers: Record<string, {
989
- type?: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
989
+ type?: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
990
+ clientId?: string | undefined;
991
+ clientSecret?: string | undefined;
990
992
  allowSignIn?: boolean | undefined;
991
993
  allowConnectedAccounts?: boolean | undefined;
992
994
  isShared?: boolean | undefined;
993
- clientId?: string | undefined;
994
- clientSecret?: string | undefined;
995
995
  facebookConfigId?: string | undefined;
996
996
  microsoftTenantId?: string | undefined;
997
997
  }>;
@@ -1010,19 +1010,19 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1010
1010
  }>;
1011
1011
  }, "server"> & {
1012
1012
  server: {
1013
- password?: string | undefined;
1014
- isShared?: boolean | undefined;
1015
- provider?: "resend" | "smtp" | undefined;
1016
1013
  host?: string | undefined;
1017
1014
  port?: number | undefined;
1018
1015
  username?: string | undefined;
1016
+ password?: string | undefined;
1017
+ isShared?: boolean | undefined;
1018
+ provider?: "resend" | "smtp" | undefined;
1019
1019
  senderName?: string | undefined;
1020
1020
  senderEmail?: string | undefined;
1021
1021
  };
1022
1022
  };
1023
1023
  }>, never> & {}, yup.AnyObject, Omit<NonNullable<Omit<NonNullable<Omit<Omit<{
1024
1024
  sourceOfTruth: undefined;
1025
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
1025
+ }, string>, "domains" | "teams" | "auth" | "rbac" | "payments" | "emails" | "workflows" | "apiKeys" | "apps" | "users" | "dataVault"> & {
1026
1026
  rbac: {
1027
1027
  permissions: undefined;
1028
1028
  defaultPermissions: {
@@ -1089,7 +1089,7 @@ declare const organizationConfigSchema: yup.Schema<Omit<NonNullable<Omit<NonNull
1089
1089
  }>, "domains" | "auth" | "emails"> & {
1090
1090
  auth: Omit<NonNullable<Omit<Omit<{
1091
1091
  sourceOfTruth: undefined;
1092
- }, string>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
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>, "rbac" | "apiKeys" | "apps" | "domains" | "auth" | "payments" | "workflows" | "teams" | "users" | "emails" | "dataVault"> & {
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<"neon" | "rbac" | "payments" | "workflows" | "teams" | "authentication" | "api-keys" | "emails" | "email-api" | "data-vault" | "webhooks" | "tv-mode" | "launch-checklist" | "catalyst" | "convex", {
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
1669
  displayName: string;
1670
+ serverOnly: boolean;
1671
+ freeTrial: [number, "day" | "week" | "year" | "month"] | undefined;
1670
1672
  catalogId: string | undefined;
1671
1673
  customerType: "team" | "user" | "custom";
1672
- freeTrial: [number, "day" | "week" | "month" | "year"] | undefined;
1673
- serverOnly: boolean;
1674
1674
  stackable: boolean | undefined;
1675
1675
  includedItems: {
1676
1676
  [x: string]: {
1677
- repeat: "never" | [number, "day" | "week" | "month" | "year"];
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" | "month" | "year"] | undefined;
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: "hosted" | "neon" | "postgres";
1700
+ type: "neon" | "hosted" | "postgres";
1701
1701
  connectionString: string | undefined;
1702
1702
  connectionStrings: {
1703
1703
  [x: string]: string | undefined;
@@ -1717,6 +1717,46 @@ 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
+ };
1733
+ auth: {
1734
+ password: {
1735
+ allowSignIn: boolean;
1736
+ };
1737
+ allowSignUp: boolean;
1738
+ otp: {
1739
+ allowSignIn: boolean;
1740
+ };
1741
+ passkey: {
1742
+ allowSignIn: boolean;
1743
+ };
1744
+ oauth: {
1745
+ accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
1746
+ providers: {
1747
+ [x: string]: {
1748
+ type: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "twitch" | undefined;
1749
+ clientId: string | undefined;
1750
+ clientSecret: string | undefined;
1751
+ allowSignIn: boolean;
1752
+ allowConnectedAccounts: boolean;
1753
+ isShared: boolean;
1754
+ facebookConfigId: string | undefined;
1755
+ microsoftTenantId: string | undefined;
1756
+ };
1757
+ };
1758
+ };
1759
+ };
1720
1760
  rbac: {
1721
1761
  permissions: {
1722
1762
  [x: string]: {
@@ -1739,6 +1779,15 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1739
1779
  };
1740
1780
  };
1741
1781
  };
1782
+ workflows: {
1783
+ availableWorkflows: {
1784
+ [x: string]: {
1785
+ displayName: string;
1786
+ enabled: boolean;
1787
+ tsSource: string;
1788
+ };
1789
+ };
1790
+ };
1742
1791
  apiKeys: {
1743
1792
  enabled: {
1744
1793
  team: boolean;
@@ -1747,25 +1796,19 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1747
1796
  };
1748
1797
  apps: {
1749
1798
  installed: {
1750
- neon: {
1751
- enabled: boolean;
1752
- };
1753
- rbac: {
1754
- enabled: boolean;
1755
- };
1756
- payments: {
1799
+ teams: {
1757
1800
  enabled: boolean;
1758
1801
  };
1759
- workflows: {
1802
+ authentication: {
1760
1803
  enabled: boolean;
1761
1804
  };
1762
- teams: {
1805
+ rbac: {
1763
1806
  enabled: boolean;
1764
1807
  };
1765
- authentication: {
1808
+ "api-keys": {
1766
1809
  enabled: boolean;
1767
1810
  };
1768
- "api-keys": {
1811
+ payments: {
1769
1812
  enabled: boolean;
1770
1813
  };
1771
1814
  emails: {
@@ -1777,6 +1820,9 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1777
1820
  "data-vault": {
1778
1821
  enabled: boolean;
1779
1822
  };
1823
+ workflows: {
1824
+ enabled: boolean;
1825
+ };
1780
1826
  webhooks: {
1781
1827
  enabled: boolean;
1782
1828
  };
@@ -1789,60 +1835,14 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
1789
1835
  catalyst: {
1790
1836
  enabled: boolean;
1791
1837
  };
1792
- convex: {
1838
+ neon: {
1793
1839
  enabled: boolean;
1794
1840
  };
1795
- };
1796
- };
1797
- domains: {
1798
- allowLocalhost: boolean;
1799
- trustedDomains: {
1800
- [x: string]: {
1801
- baseUrl: string | undefined;
1802
- handlerPath: string;
1803
- };
1804
- };
1805
- };
1806
- auth: {
1807
- allowSignUp: boolean;
1808
- password: {
1809
- allowSignIn: boolean;
1810
- };
1811
- otp: {
1812
- allowSignIn: boolean;
1813
- };
1814
- passkey: {
1815
- allowSignIn: boolean;
1816
- };
1817
- oauth: {
1818
- accountMergeStrategy: "link_method" | "raise_error" | "allow_duplicates";
1819
- providers: {
1820
- [x: string]: {
1821
- type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined;
1822
- allowSignIn: boolean;
1823
- allowConnectedAccounts: boolean;
1824
- isShared: boolean;
1825
- clientId: string | undefined;
1826
- clientSecret: string | undefined;
1827
- facebookConfigId: string | undefined;
1828
- microsoftTenantId: string | undefined;
1829
- };
1830
- };
1831
- };
1832
- };
1833
- workflows: {
1834
- availableWorkflows: {
1835
- [x: string]: {
1841
+ convex: {
1836
1842
  enabled: boolean;
1837
- displayName: string;
1838
- tsSource: string;
1839
1843
  };
1840
1844
  };
1841
1845
  };
1842
- teams: {
1843
- createPersonalTeamOnSignUp: boolean;
1844
- allowClientTeamCreation: boolean;
1845
- };
1846
1846
  users: {
1847
1847
  allowClientUserDeletion: boolean;
1848
1848
  };