@robelest/convex-auth 0.0.4-preview.27 → 0.0.4-preview.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +3 -5
  2. package/dist/bin.js +6488 -1571
  3. package/dist/browser/index.js +10 -7
  4. package/dist/browser/locks.js +3 -5
  5. package/dist/browser/navigation.js +7 -10
  6. package/dist/browser/runtime.js +35 -33
  7. package/dist/client/core/types.js +17 -0
  8. package/dist/client/factors/device.js +26 -19
  9. package/dist/client/index.js +151 -163
  10. package/dist/client/runtime/proxy.js +6 -6
  11. package/dist/client/services/adapters.js +3 -7
  12. package/dist/client/services/http.js +2 -5
  13. package/dist/client/services/resolve.js +5 -11
  14. package/dist/client/services/runtime.js +2 -5
  15. package/dist/component/_generated/component.d.ts +46 -0
  16. package/dist/component/index.d.ts +3 -3
  17. package/dist/component/model.d.ts +25 -25
  18. package/dist/component/public/identity/sessions.js +38 -1
  19. package/dist/component/public/identity/tokens.js +81 -3
  20. package/dist/component/public/identity/verifiers.js +9 -3
  21. package/dist/component/public.js +3 -3
  22. package/dist/component/schema.d.ts +320 -320
  23. package/dist/core/index.d.ts +380 -0
  24. package/dist/core/index.js +83 -0
  25. package/dist/otel.d.ts +13 -17
  26. package/dist/otel.js +39 -49
  27. package/dist/providers/email.d.ts +2 -2
  28. package/dist/providers/password.js +8 -16
  29. package/dist/providers/phone.js +2 -9
  30. package/dist/server/auth-context.d.ts +204 -0
  31. package/dist/server/auth-context.js +76 -0
  32. package/dist/server/auth.d.ts +25 -187
  33. package/dist/server/auth.js +5 -96
  34. package/dist/server/componentContext.d.ts +12 -0
  35. package/dist/server/componentContext.js +1 -0
  36. package/dist/server/config.js +1 -12
  37. package/dist/server/constants.js +6 -0
  38. package/dist/server/contract.d.ts +1 -1
  39. package/dist/server/core.js +5 -14
  40. package/dist/server/crypto.js +26 -18
  41. package/dist/server/db.js +6 -1
  42. package/dist/server/device.js +88 -78
  43. package/dist/server/http.d.ts +4 -3
  44. package/dist/server/http.js +74 -86
  45. package/dist/server/index.d.ts +2 -1
  46. package/dist/server/limits.js +22 -15
  47. package/dist/server/mounts.d.ts +103 -103
  48. package/dist/server/mutations/account.js +6 -4
  49. package/dist/server/mutations/invalidate.js +3 -6
  50. package/dist/server/mutations/oauth.js +86 -88
  51. package/dist/server/mutations/refresh.js +45 -87
  52. package/dist/server/mutations/register.js +19 -19
  53. package/dist/server/mutations/retrieve.js +17 -15
  54. package/dist/server/mutations/signature.js +9 -13
  55. package/dist/server/mutations/signin.js +7 -3
  56. package/dist/server/mutations/signout.js +10 -15
  57. package/dist/server/mutations/store.js +22 -12
  58. package/dist/server/mutations/verifier.js +11 -6
  59. package/dist/server/mutations/verify.js +55 -46
  60. package/dist/server/oauth/runtime.js +27 -25
  61. package/dist/server/passkey.js +299 -250
  62. package/dist/server/prefetch.js +283 -281
  63. package/dist/server/refresh.js +7 -60
  64. package/dist/server/runtime.d.ts +82 -206
  65. package/dist/server/runtime.js +63 -56
  66. package/dist/server/services/config.js +5 -3
  67. package/dist/server/services/logger.js +2 -4
  68. package/dist/server/services/providers.js +2 -4
  69. package/dist/server/services/refresh.js +2 -4
  70. package/dist/server/services/resolve.js +15 -14
  71. package/dist/server/services/signin.js +2 -4
  72. package/dist/server/sessions.js +32 -33
  73. package/dist/server/signin.js +177 -142
  74. package/dist/server/sso/domain.d.ts +20 -68
  75. package/dist/server/sso/domain.js +444 -413
  76. package/dist/server/sso/http.js +53 -59
  77. package/dist/server/sso/oidc.js +94 -80
  78. package/dist/server/tokens.js +13 -3
  79. package/dist/server/totp.js +153 -116
  80. package/dist/server/types.d.ts +2 -2
  81. package/dist/server/users.js +18 -23
  82. package/dist/server/utils/cache.js +51 -0
  83. package/dist/server/utils/dispatch.js +36 -0
  84. package/dist/server/utils/retry.js +24 -0
  85. package/dist/server/utils/span.js +32 -0
  86. package/dist/shared/errors.js +9 -3
  87. package/dist/shared/log.js +20 -22
  88. package/package.json +41 -33
@@ -1,7 +1,7 @@
1
1
  import { AuthAuthorizationConfig, GroupConnectionDeprovisionMode, GroupConnectionPolicy } from "./types.js";
2
2
  import { AuditEventRecord, ConnectionDomainRecord, GroupConnectionDomainLookupRecord, GroupConnectionListResult, GroupConnectionRecord, ScimConfigRecord } from "./contract.js";
3
3
  import { AuthApi } from "./auth.js";
4
- import * as convex_server1 from "convex/server";
4
+ import * as convex_server7 from "convex/server";
5
5
 
6
6
  //#region src/server/mounts.d.ts
7
7
  /**
@@ -54,7 +54,7 @@ type GroupSsoAccessInput = {
54
54
  * ```
55
55
  */
56
56
  type GroupSsoAccessHandler = (ctx: {
57
- auth: convex_server1.Auth;
57
+ auth: convex_server7.Auth;
58
58
  }, input: GroupSsoAccessInput) => Promise<void>;
59
59
  /**
60
60
  * Declarative requirement map for mounted Group SSO admin permissions.
@@ -147,7 +147,7 @@ type GroupSsoAccessPermissions<TRequirement> = {
147
147
  * ```
148
148
  */
149
149
  type GroupSsoResolvedAccessHandler<TRequirement> = (ctx: {
150
- auth: convex_server1.Auth;
150
+ auth: convex_server7.Auth;
151
151
  }, input: GroupSsoAccessInput, required: readonly TRequirement[]) => Promise<void>;
152
152
  /**
153
153
  * Configuration for {@link createAuthGroupSso}, {@link sso}, and {@link scim}
@@ -214,50 +214,50 @@ type CreateAuthGroupSsoOptions<TRequirement = unknown> = {
214
214
  declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined = undefined, TRequirement = unknown>(auth: Pick<AuthApi<TAuthorization>, "context" | "group" | "member">, options?: CreateAuthGroupSsoOptions<TRequirement>): {
215
215
  admin: {
216
216
  connection: {
217
- create: convex_server1.RegisteredMutation<"public", {
217
+ create: convex_server7.RegisteredMutation<"public", {
218
218
  name?: string | undefined;
219
- domain?: string | undefined;
220
- status?: "draft" | "active" | "disabled" | undefined;
221
219
  slug?: string | undefined;
222
- groupId: string;
220
+ status?: "draft" | "active" | "disabled" | undefined;
221
+ domain?: string | undefined;
223
222
  protocol: "oidc" | "saml";
223
+ groupId: string;
224
224
  }, Promise<{
225
225
  groupId: string;
226
226
  connectionId: string;
227
227
  }>>;
228
- get: convex_server1.RegisteredQuery<"public", {
228
+ get: convex_server7.RegisteredQuery<"public", {
229
229
  connectionId: string;
230
230
  }, Promise<GroupConnectionRecord | null>>;
231
- getByDomain: convex_server1.RegisteredQuery<"public", {
231
+ getByDomain: convex_server7.RegisteredQuery<"public", {
232
232
  domain: string;
233
233
  }, Promise<GroupConnectionDomainLookupRecord | null>>;
234
- list: convex_server1.RegisteredQuery<"public", {
234
+ list: convex_server7.RegisteredQuery<"public", {
235
235
  limit?: number | undefined;
236
236
  where?: {
237
+ slug?: string | undefined;
237
238
  status?: "draft" | "active" | "disabled" | undefined;
238
239
  groupId?: string | undefined;
239
- slug?: string | undefined;
240
240
  } | undefined;
241
241
  cursor?: string | null | undefined;
242
242
  orderBy?: string | undefined;
243
243
  order?: "asc" | "desc" | undefined;
244
244
  }, Promise<GroupConnectionListResult>>;
245
- update: convex_server1.RegisteredMutation<"public", {
245
+ update: convex_server7.RegisteredMutation<"public", {
246
246
  connectionId: string;
247
247
  data: {
248
248
  name?: string | undefined;
249
- status?: "draft" | "active" | "disabled" | undefined;
250
249
  slug?: string | undefined;
250
+ status?: "draft" | "active" | "disabled" | undefined;
251
251
  };
252
252
  }, Promise<{
253
253
  connectionId: string;
254
254
  }>>;
255
- delete: convex_server1.RegisteredMutation<"public", {
255
+ delete: convex_server7.RegisteredMutation<"public", {
256
256
  connectionId: string;
257
257
  }, Promise<{
258
258
  connectionId: string;
259
259
  }>>;
260
- status: convex_server1.RegisteredQuery<"public", {
260
+ status: convex_server7.RegisteredQuery<"public", {
261
261
  connectionId: string;
262
262
  }, Promise<{
263
263
  connectionId: string;
@@ -285,10 +285,10 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
285
285
  };
286
286
  }>>;
287
287
  domain: {
288
- list: convex_server1.RegisteredQuery<"public", {
288
+ list: convex_server7.RegisteredQuery<"public", {
289
289
  connectionId: string;
290
290
  }, Promise<ConnectionDomainRecord[]>>;
291
- status: convex_server1.RegisteredQuery<"public", {
291
+ status: convex_server7.RegisteredQuery<"public", {
292
292
  connectionId: string;
293
293
  }, Promise<{
294
294
  connectionId: string;
@@ -320,7 +320,7 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
320
320
  warnings: string[];
321
321
  nextSteps: string[];
322
322
  }>>;
323
- validate: convex_server1.RegisteredQuery<"public", {
323
+ validate: convex_server7.RegisteredQuery<"public", {
324
324
  connectionId: string;
325
325
  }, Promise<{
326
326
  connectionId: string;
@@ -339,7 +339,7 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
339
339
  }[];
340
340
  warnings: string[];
341
341
  }>>;
342
- set: convex_server1.RegisteredMutation<"public", {
342
+ set: convex_server7.RegisteredMutation<"public", {
343
343
  connectionId: string;
344
344
  domains: {
345
345
  isPrimary?: boolean | undefined;
@@ -356,9 +356,9 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
356
356
  }>;
357
357
  }>>;
358
358
  verification: {
359
- request: convex_server1.RegisteredMutation<"public", {
360
- domain: string;
359
+ request: convex_server7.RegisteredMutation<"public", {
361
360
  connectionId: string;
361
+ domain: string;
362
362
  }, Promise<{
363
363
  connectionId: string;
364
364
  domain: string;
@@ -370,9 +370,9 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
370
370
  recordValue: string;
371
371
  };
372
372
  }>>;
373
- confirm: convex_server1.RegisteredAction<"public", {
374
- domain: string;
373
+ confirm: convex_server7.RegisteredAction<"public", {
375
374
  connectionId: string;
375
+ domain: string;
376
376
  }, Promise<{
377
377
  connectionId: string;
378
378
  domain: string;
@@ -387,16 +387,16 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
387
387
  };
388
388
  };
389
389
  oidc: {
390
- configure: convex_server1.RegisteredMutation<"public", {
390
+ configure: convex_server7.RegisteredMutation<"public", {
391
391
  profile?: {
392
392
  mapping?: {
393
393
  email?: string | undefined;
394
394
  emailVerified?: string | undefined;
395
395
  name?: string | undefined;
396
396
  image?: string | undefined;
397
- subject?: string | undefined;
398
397
  groups?: string | undefined;
399
398
  roles?: string | undefined;
399
+ subject?: string | undefined;
400
400
  } | undefined;
401
401
  extraFields?: Record<string, string> | undefined;
402
402
  } | undefined;
@@ -424,12 +424,12 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
424
424
  }, Promise<{
425
425
  hasClientSecret: boolean;
426
426
  }>>;
427
- get: convex_server1.RegisteredQuery<"public", {
427
+ get: convex_server7.RegisteredQuery<"public", {
428
428
  connectionId: string;
429
429
  }, Promise<{
430
430
  hasClientSecret: boolean;
431
431
  }>>;
432
- validate: convex_server1.RegisteredAction<"public", {
432
+ validate: convex_server7.RegisteredAction<"public", {
433
433
  connectionId: string;
434
434
  }, Promise<{
435
435
  ok: boolean;
@@ -440,7 +440,7 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
440
440
  message?: string;
441
441
  }[];
442
442
  }>>;
443
- status: convex_server1.RegisteredQuery<"public", {
443
+ status: convex_server7.RegisteredQuery<"public", {
444
444
  connectionId: string;
445
445
  }, Promise<{
446
446
  connectionId: string;
@@ -457,15 +457,15 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
457
457
  }>>;
458
458
  };
459
459
  saml: {
460
- configure: convex_server1.RegisteredAction<"public", {
460
+ configure: convex_server7.RegisteredAction<"public", {
461
461
  profile?: {
462
462
  mapping?: {
463
463
  email?: string | undefined;
464
464
  name?: string | undefined;
465
465
  image?: string | undefined;
466
- subject?: string | undefined;
467
466
  groups?: string | undefined;
468
467
  roles?: string | undefined;
468
+ subject?: string | undefined;
469
469
  firstName?: string | undefined;
470
470
  lastName?: string | undefined;
471
471
  } | undefined;
@@ -506,7 +506,7 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
506
506
  connectionId: string;
507
507
  groupId: string;
508
508
  }>>;
509
- validate: convex_server1.RegisteredQuery<"public", {
509
+ validate: convex_server7.RegisteredQuery<"public", {
510
510
  connectionId: string;
511
511
  }, Promise<{
512
512
  ok: boolean;
@@ -517,10 +517,10 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
517
517
  message?: string;
518
518
  }[];
519
519
  }>>;
520
- get: convex_server1.RegisteredQuery<"public", {
520
+ get: convex_server7.RegisteredQuery<"public", {
521
521
  connectionId: string;
522
522
  }, Promise<Record<string, unknown>>>;
523
- status: convex_server1.RegisteredQuery<"public", {
523
+ status: convex_server7.RegisteredQuery<"public", {
524
524
  connectionId: string;
525
525
  }, Promise<{
526
526
  connectionId: string;
@@ -533,7 +533,7 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
533
533
  message: string | undefined;
534
534
  }[];
535
535
  }>>;
536
- refresh: convex_server1.RegisteredAction<"public", {
536
+ refresh: convex_server7.RegisteredAction<"public", {
537
537
  connectionId: string;
538
538
  }, Promise<{
539
539
  connectionId: string;
@@ -541,10 +541,10 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
541
541
  }>>;
542
542
  };
543
543
  policy: {
544
- get: convex_server1.RegisteredQuery<"public", {
544
+ get: convex_server7.RegisteredQuery<"public", {
545
545
  groupId: string;
546
546
  }, Promise<GroupConnectionPolicy>>;
547
- update: convex_server1.RegisteredMutation<"public", {
547
+ update: convex_server7.RegisteredMutation<"public", {
548
548
  groupId: string;
549
549
  patch: {
550
550
  identity?: {
@@ -558,7 +558,7 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
558
558
  createOnSignIn?: boolean | undefined;
559
559
  updateProfileOnLogin?: "never" | "missing" | "always" | undefined;
560
560
  updateProfileFromScim?: "never" | "missing" | "always" | undefined;
561
- authority?: "sso" | "app" | "scim" | undefined;
561
+ authority?: "app" | "sso" | "scim" | undefined;
562
562
  } | undefined;
563
563
  scimReuse?: {
564
564
  user?: "none" | "externalId" | undefined;
@@ -583,7 +583,7 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
583
583
  } | undefined;
584
584
  };
585
585
  }, Promise<GroupConnectionPolicy>>;
586
- validate: convex_server1.RegisteredQuery<"public", {
586
+ validate: convex_server7.RegisteredQuery<"public", {
587
587
  groupId: string;
588
588
  }, Promise<{
589
589
  ok: boolean;
@@ -606,7 +606,7 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
606
606
  }>>;
607
607
  };
608
608
  audit: {
609
- list: convex_server1.RegisteredQuery<"public", {
609
+ list: convex_server7.RegisteredQuery<"public", {
610
610
  groupId?: string | undefined;
611
611
  connectionId?: string | undefined;
612
612
  limit?: number | undefined;
@@ -614,16 +614,16 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
614
614
  };
615
615
  webhook: {
616
616
  delivery: {
617
- list: convex_server1.RegisteredQuery<"public", {
617
+ list: convex_server7.RegisteredQuery<"public", {
618
618
  limit?: number | undefined;
619
619
  connectionId: string;
620
620
  }, Promise<unknown>>;
621
621
  };
622
622
  endpoint: {
623
- create: convex_server1.RegisteredMutation<"public", {
623
+ create: convex_server7.RegisteredMutation<"public", {
624
624
  createdByUserId?: string | undefined;
625
- connectionId: string;
626
625
  secret: string;
626
+ connectionId: string;
627
627
  url: string;
628
628
  subscriptions: string[];
629
629
  }, Promise<{
@@ -635,12 +635,12 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
635
635
  status: string;
636
636
  failureCount: number;
637
637
  }>>;
638
- list: convex_server1.RegisteredQuery<"public", {
638
+ list: convex_server7.RegisteredQuery<"public", {
639
639
  connectionId: string;
640
640
  }, Promise<{
641
641
  [x: string]: unknown;
642
642
  }[]>>;
643
- disable: convex_server1.RegisteredMutation<"public", {
643
+ disable: convex_server7.RegisteredMutation<"public", {
644
644
  endpointId: string;
645
645
  }, Promise<{
646
646
  endpointId: string;
@@ -649,10 +649,10 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
649
649
  };
650
650
  };
651
651
  client: {
652
- signIn: convex_server1.RegisteredQuery<"public", {
652
+ signIn: convex_server7.RegisteredQuery<"public", {
653
653
  email?: string | undefined;
654
- domain?: string | undefined;
655
654
  connectionId?: string | undefined;
655
+ domain?: string | undefined;
656
656
  loginHint?: string | undefined;
657
657
  redirectTo?: string | undefined;
658
658
  }, Promise<{
@@ -663,7 +663,7 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
663
663
  callbackPath: string;
664
664
  redirectTo?: string;
665
665
  }>>;
666
- metadata: convex_server1.RegisteredQuery<"public", {
666
+ metadata: convex_server7.RegisteredQuery<"public", {
667
667
  entityId?: string | undefined;
668
668
  acsUrl?: string | undefined;
669
669
  sloUrl?: string | undefined;
@@ -705,17 +705,17 @@ declare function sso<TAuthorization extends AuthAuthorizationConfig | undefined
705
705
  */
706
706
  declare function scim<TAuthorization extends AuthAuthorizationConfig | undefined = undefined, TRequirement = unknown>(auth: Pick<AuthApi<TAuthorization>, "context" | "group">, options?: CreateAuthGroupSsoOptions<TRequirement>): {
707
707
  admin: {
708
- configure: convex_server1.RegisteredMutation<"public", {
708
+ configure: convex_server7.RegisteredMutation<"public", {
709
709
  profile?: {
710
710
  mapping?: {
711
711
  email?: string | undefined;
712
712
  name?: string | undefined;
713
- active?: string | undefined;
714
713
  phone?: string | undefined;
715
- subject?: string | undefined;
716
714
  externalId?: string | undefined;
717
715
  groups?: string | undefined;
718
716
  roles?: string | undefined;
717
+ active?: string | undefined;
718
+ subject?: string | undefined;
719
719
  firstName?: string | undefined;
720
720
  lastName?: string | undefined;
721
721
  } | undefined;
@@ -732,7 +732,7 @@ declare function scim<TAuthorization extends AuthAuthorizationConfig | undefined
732
732
  basePath: string;
733
733
  token: string;
734
734
  }>>;
735
- get: convex_server1.RegisteredQuery<"public", {
735
+ get: convex_server7.RegisteredQuery<"public", {
736
736
  connectionId: string;
737
737
  }, Promise<{
738
738
  security: {
@@ -763,7 +763,7 @@ declare function scim<TAuthorization extends AuthAuthorizationConfig | undefined
763
763
  lastRotatedAt?: number;
764
764
  extend?: unknown;
765
765
  } | null>>;
766
- status: convex_server1.RegisteredQuery<"public", {
766
+ status: convex_server7.RegisteredQuery<"public", {
767
767
  connectionId: string;
768
768
  }, Promise<{
769
769
  connectionId: string;
@@ -789,7 +789,7 @@ declare function scim<TAuthorization extends AuthAuthorizationConfig | undefined
789
789
  etag: boolean;
790
790
  } | undefined;
791
791
  }>>;
792
- validate: convex_server1.RegisteredQuery<"public", {
792
+ validate: convex_server7.RegisteredQuery<"public", {
793
793
  connectionId: string;
794
794
  }, Promise<{
795
795
  ok: boolean;
@@ -863,50 +863,50 @@ declare function scim<TAuthorization extends AuthAuthorizationConfig | undefined
863
863
  * @see {@link scim}
864
864
  */
865
865
  declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConfig | undefined = undefined, TRequirement = unknown>(auth: Pick<AuthApi<TAuthorization>, "context" | "group" | "member">, options: CreateAuthGroupSsoOptions<TRequirement>): {
866
- createConnection: convex_server1.RegisteredMutation<"public", {
866
+ createConnection: convex_server7.RegisteredMutation<"public", {
867
867
  name?: string | undefined;
868
- domain?: string | undefined;
869
- status?: "draft" | "active" | "disabled" | undefined;
870
868
  slug?: string | undefined;
871
- groupId: string;
869
+ status?: "draft" | "active" | "disabled" | undefined;
870
+ domain?: string | undefined;
872
871
  protocol: "oidc" | "saml";
872
+ groupId: string;
873
873
  }, Promise<{
874
874
  groupId: string;
875
875
  connectionId: string;
876
876
  }>>;
877
- getConnection: convex_server1.RegisteredQuery<"public", {
877
+ getConnection: convex_server7.RegisteredQuery<"public", {
878
878
  connectionId: string;
879
879
  }, Promise<GroupConnectionRecord | null>>;
880
- getConnectionByDomain: convex_server1.RegisteredQuery<"public", {
880
+ getConnectionByDomain: convex_server7.RegisteredQuery<"public", {
881
881
  domain: string;
882
882
  }, Promise<GroupConnectionDomainLookupRecord | null>>;
883
- listConnections: convex_server1.RegisteredQuery<"public", {
883
+ listConnections: convex_server7.RegisteredQuery<"public", {
884
884
  limit?: number | undefined;
885
885
  where?: {
886
+ slug?: string | undefined;
886
887
  status?: "draft" | "active" | "disabled" | undefined;
887
888
  groupId?: string | undefined;
888
- slug?: string | undefined;
889
889
  } | undefined;
890
890
  cursor?: string | null | undefined;
891
891
  orderBy?: string | undefined;
892
892
  order?: "asc" | "desc" | undefined;
893
893
  }, Promise<GroupConnectionListResult>>;
894
- updateConnection: convex_server1.RegisteredMutation<"public", {
894
+ updateConnection: convex_server7.RegisteredMutation<"public", {
895
895
  connectionId: string;
896
896
  data: {
897
897
  name?: string | undefined;
898
- status?: "draft" | "active" | "disabled" | undefined;
899
898
  slug?: string | undefined;
899
+ status?: "draft" | "active" | "disabled" | undefined;
900
900
  };
901
901
  }, Promise<{
902
902
  connectionId: string;
903
903
  }>>;
904
- deleteConnection: convex_server1.RegisteredMutation<"public", {
904
+ deleteConnection: convex_server7.RegisteredMutation<"public", {
905
905
  connectionId: string;
906
906
  }, Promise<{
907
907
  connectionId: string;
908
908
  }>>;
909
- getConnectionStatus: convex_server1.RegisteredQuery<"public", {
909
+ getConnectionStatus: convex_server7.RegisteredQuery<"public", {
910
910
  connectionId: string;
911
911
  }, Promise<{
912
912
  connectionId: string;
@@ -933,10 +933,10 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
933
933
  };
934
934
  };
935
935
  }>>;
936
- listDomains: convex_server1.RegisteredQuery<"public", {
936
+ listDomains: convex_server7.RegisteredQuery<"public", {
937
937
  connectionId: string;
938
938
  }, Promise<ConnectionDomainRecord[]>>;
939
- getDomainStatus: convex_server1.RegisteredQuery<"public", {
939
+ getDomainStatus: convex_server7.RegisteredQuery<"public", {
940
940
  connectionId: string;
941
941
  }, Promise<{
942
942
  connectionId: string;
@@ -968,7 +968,7 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
968
968
  warnings: string[];
969
969
  nextSteps: string[];
970
970
  }>>;
971
- validateDomains: convex_server1.RegisteredQuery<"public", {
971
+ validateDomains: convex_server7.RegisteredQuery<"public", {
972
972
  connectionId: string;
973
973
  }, Promise<{
974
974
  connectionId: string;
@@ -987,7 +987,7 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
987
987
  }[];
988
988
  warnings: string[];
989
989
  }>>;
990
- setDomains: convex_server1.RegisteredMutation<"public", {
990
+ setDomains: convex_server7.RegisteredMutation<"public", {
991
991
  connectionId: string;
992
992
  domains: {
993
993
  isPrimary?: boolean | undefined;
@@ -1003,9 +1003,9 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1003
1003
  verifiedAt: number | null;
1004
1004
  }>;
1005
1005
  }>>;
1006
- requestDomainVerification: convex_server1.RegisteredMutation<"public", {
1007
- domain: string;
1006
+ requestDomainVerification: convex_server7.RegisteredMutation<"public", {
1008
1007
  connectionId: string;
1008
+ domain: string;
1009
1009
  }, Promise<{
1010
1010
  connectionId: string;
1011
1011
  domain: string;
@@ -1017,9 +1017,9 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1017
1017
  recordValue: string;
1018
1018
  };
1019
1019
  }>>;
1020
- confirmDomainVerification: convex_server1.RegisteredAction<"public", {
1021
- domain: string;
1020
+ confirmDomainVerification: convex_server7.RegisteredAction<"public", {
1022
1021
  connectionId: string;
1022
+ domain: string;
1023
1023
  }, Promise<{
1024
1024
  connectionId: string;
1025
1025
  domain: string;
@@ -1030,16 +1030,16 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1030
1030
  message?: string;
1031
1031
  }>;
1032
1032
  }>>;
1033
- configureOidc: convex_server1.RegisteredMutation<"public", {
1033
+ configureOidc: convex_server7.RegisteredMutation<"public", {
1034
1034
  profile?: {
1035
1035
  mapping?: {
1036
1036
  email?: string | undefined;
1037
1037
  emailVerified?: string | undefined;
1038
1038
  name?: string | undefined;
1039
1039
  image?: string | undefined;
1040
- subject?: string | undefined;
1041
1040
  groups?: string | undefined;
1042
1041
  roles?: string | undefined;
1042
+ subject?: string | undefined;
1043
1043
  } | undefined;
1044
1044
  extraFields?: Record<string, string> | undefined;
1045
1045
  } | undefined;
@@ -1067,12 +1067,12 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1067
1067
  }, Promise<{
1068
1068
  hasClientSecret: boolean;
1069
1069
  }>>;
1070
- getOidc: convex_server1.RegisteredQuery<"public", {
1070
+ getOidc: convex_server7.RegisteredQuery<"public", {
1071
1071
  connectionId: string;
1072
1072
  }, Promise<{
1073
1073
  hasClientSecret: boolean;
1074
1074
  }>>;
1075
- getOidcStatus: convex_server1.RegisteredQuery<"public", {
1075
+ getOidcStatus: convex_server7.RegisteredQuery<"public", {
1076
1076
  connectionId: string;
1077
1077
  }, Promise<{
1078
1078
  connectionId: string;
@@ -1087,7 +1087,7 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1087
1087
  message: string | undefined;
1088
1088
  }[];
1089
1089
  }>>;
1090
- validateOidc: convex_server1.RegisteredAction<"public", {
1090
+ validateOidc: convex_server7.RegisteredAction<"public", {
1091
1091
  connectionId: string;
1092
1092
  }, Promise<{
1093
1093
  ok: boolean;
@@ -1098,15 +1098,15 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1098
1098
  message?: string;
1099
1099
  }[];
1100
1100
  }>>;
1101
- configureSaml: convex_server1.RegisteredAction<"public", {
1101
+ configureSaml: convex_server7.RegisteredAction<"public", {
1102
1102
  profile?: {
1103
1103
  mapping?: {
1104
1104
  email?: string | undefined;
1105
1105
  name?: string | undefined;
1106
1106
  image?: string | undefined;
1107
- subject?: string | undefined;
1108
1107
  groups?: string | undefined;
1109
1108
  roles?: string | undefined;
1109
+ subject?: string | undefined;
1110
1110
  firstName?: string | undefined;
1111
1111
  lastName?: string | undefined;
1112
1112
  } | undefined;
@@ -1147,10 +1147,10 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1147
1147
  connectionId: string;
1148
1148
  groupId: string;
1149
1149
  }>>;
1150
- getSaml: convex_server1.RegisteredQuery<"public", {
1150
+ getSaml: convex_server7.RegisteredQuery<"public", {
1151
1151
  connectionId: string;
1152
1152
  }, Promise<Record<string, unknown>>>;
1153
- getSamlStatus: convex_server1.RegisteredQuery<"public", {
1153
+ getSamlStatus: convex_server7.RegisteredQuery<"public", {
1154
1154
  connectionId: string;
1155
1155
  }, Promise<{
1156
1156
  connectionId: string;
@@ -1163,7 +1163,7 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1163
1163
  message: string | undefined;
1164
1164
  }[];
1165
1165
  }>>;
1166
- validateSaml: convex_server1.RegisteredQuery<"public", {
1166
+ validateSaml: convex_server7.RegisteredQuery<"public", {
1167
1167
  connectionId: string;
1168
1168
  }, Promise<{
1169
1169
  ok: boolean;
@@ -1174,16 +1174,16 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1174
1174
  message?: string;
1175
1175
  }[];
1176
1176
  }>>;
1177
- refreshSaml: convex_server1.RegisteredAction<"public", {
1177
+ refreshSaml: convex_server7.RegisteredAction<"public", {
1178
1178
  connectionId: string;
1179
1179
  }, Promise<{
1180
1180
  connectionId: string;
1181
1181
  groupId: string;
1182
1182
  }>>;
1183
- getPolicy: convex_server1.RegisteredQuery<"public", {
1183
+ getPolicy: convex_server7.RegisteredQuery<"public", {
1184
1184
  groupId: string;
1185
1185
  }, Promise<GroupConnectionPolicy>>;
1186
- updatePolicy: convex_server1.RegisteredMutation<"public", {
1186
+ updatePolicy: convex_server7.RegisteredMutation<"public", {
1187
1187
  groupId: string;
1188
1188
  patch: {
1189
1189
  identity?: {
@@ -1197,7 +1197,7 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1197
1197
  createOnSignIn?: boolean | undefined;
1198
1198
  updateProfileOnLogin?: "never" | "missing" | "always" | undefined;
1199
1199
  updateProfileFromScim?: "never" | "missing" | "always" | undefined;
1200
- authority?: "sso" | "app" | "scim" | undefined;
1200
+ authority?: "app" | "sso" | "scim" | undefined;
1201
1201
  } | undefined;
1202
1202
  scimReuse?: {
1203
1203
  user?: "none" | "externalId" | undefined;
@@ -1222,7 +1222,7 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1222
1222
  } | undefined;
1223
1223
  };
1224
1224
  }, Promise<GroupConnectionPolicy>>;
1225
- validatePolicy: convex_server1.RegisteredQuery<"public", {
1225
+ validatePolicy: convex_server7.RegisteredQuery<"public", {
1226
1226
  groupId: string;
1227
1227
  }, Promise<{
1228
1228
  ok: boolean;
@@ -1243,15 +1243,15 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1243
1243
  message?: string;
1244
1244
  }[];
1245
1245
  }>>;
1246
- listAudit: convex_server1.RegisteredQuery<"public", {
1246
+ listAudit: convex_server7.RegisteredQuery<"public", {
1247
1247
  groupId?: string | undefined;
1248
1248
  connectionId?: string | undefined;
1249
1249
  limit?: number | undefined;
1250
1250
  }, Promise<AuditEventRecord[]>>;
1251
- createWebhookEndpoint: convex_server1.RegisteredMutation<"public", {
1251
+ createWebhookEndpoint: convex_server7.RegisteredMutation<"public", {
1252
1252
  createdByUserId?: string | undefined;
1253
- connectionId: string;
1254
1253
  secret: string;
1254
+ connectionId: string;
1255
1255
  url: string;
1256
1256
  subscriptions: string[];
1257
1257
  }, Promise<{
@@ -1263,31 +1263,31 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1263
1263
  status: string;
1264
1264
  failureCount: number;
1265
1265
  }>>;
1266
- listWebhookEndpoints: convex_server1.RegisteredQuery<"public", {
1266
+ listWebhookEndpoints: convex_server7.RegisteredQuery<"public", {
1267
1267
  connectionId: string;
1268
1268
  }, Promise<{
1269
1269
  [x: string]: unknown;
1270
1270
  }[]>>;
1271
- listWebhookDeliveries: convex_server1.RegisteredQuery<"public", {
1271
+ listWebhookDeliveries: convex_server7.RegisteredQuery<"public", {
1272
1272
  limit?: number | undefined;
1273
1273
  connectionId: string;
1274
1274
  }, Promise<unknown>>;
1275
- disableWebhookEndpoint: convex_server1.RegisteredMutation<"public", {
1275
+ disableWebhookEndpoint: convex_server7.RegisteredMutation<"public", {
1276
1276
  endpointId: string;
1277
1277
  }, Promise<{
1278
1278
  endpointId: string;
1279
1279
  }>>;
1280
- configureScim: convex_server1.RegisteredMutation<"public", {
1280
+ configureScim: convex_server7.RegisteredMutation<"public", {
1281
1281
  profile?: {
1282
1282
  mapping?: {
1283
1283
  email?: string | undefined;
1284
1284
  name?: string | undefined;
1285
- active?: string | undefined;
1286
1285
  phone?: string | undefined;
1287
- subject?: string | undefined;
1288
1286
  externalId?: string | undefined;
1289
1287
  groups?: string | undefined;
1290
1288
  roles?: string | undefined;
1289
+ active?: string | undefined;
1290
+ subject?: string | undefined;
1291
1291
  firstName?: string | undefined;
1292
1292
  lastName?: string | undefined;
1293
1293
  } | undefined;
@@ -1304,7 +1304,7 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1304
1304
  basePath: string;
1305
1305
  token: string;
1306
1306
  }>>;
1307
- getScim: convex_server1.RegisteredQuery<"public", {
1307
+ getScim: convex_server7.RegisteredQuery<"public", {
1308
1308
  connectionId: string;
1309
1309
  }, Promise<{
1310
1310
  security: {
@@ -1335,7 +1335,7 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1335
1335
  lastRotatedAt?: number;
1336
1336
  extend?: unknown;
1337
1337
  } | null>>;
1338
- getScimStatus: convex_server1.RegisteredQuery<"public", {
1338
+ getScimStatus: convex_server7.RegisteredQuery<"public", {
1339
1339
  connectionId: string;
1340
1340
  }, Promise<{
1341
1341
  connectionId: string;
@@ -1361,7 +1361,7 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1361
1361
  etag: boolean;
1362
1362
  } | undefined;
1363
1363
  }>>;
1364
- validateScim: convex_server1.RegisteredQuery<"public", {
1364
+ validateScim: convex_server7.RegisteredQuery<"public", {
1365
1365
  connectionId: string;
1366
1366
  }, Promise<{
1367
1367
  ok: boolean;
@@ -1394,10 +1394,10 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1394
1394
  message?: string;
1395
1395
  }[];
1396
1396
  }>>;
1397
- signIn: convex_server1.RegisteredQuery<"public", {
1397
+ signIn: convex_server7.RegisteredQuery<"public", {
1398
1398
  email?: string | undefined;
1399
- domain?: string | undefined;
1400
1399
  connectionId?: string | undefined;
1400
+ domain?: string | undefined;
1401
1401
  loginHint?: string | undefined;
1402
1402
  redirectTo?: string | undefined;
1403
1403
  }, Promise<{
@@ -1408,7 +1408,7 @@ declare function createAuthGroupSso<TAuthorization extends AuthAuthorizationConf
1408
1408
  callbackPath: string;
1409
1409
  redirectTo?: string;
1410
1410
  }>>;
1411
- metadata: convex_server1.RegisteredQuery<"public", {
1411
+ metadata: convex_server7.RegisteredQuery<"public", {
1412
1412
  entityId?: string | undefined;
1413
1413
  acsUrl?: string | undefined;
1414
1414
  sloUrl?: string | undefined;