@turnkey/http 0.17.1 → 0.18.0

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 (59) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +2593 -528
  3. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
  4. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +372 -1
  5. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
  6. package/dist/__generated__/services/coordinator/public/v1/public_api.swagger.json +331 -43
  7. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +181 -10
  8. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
  9. package/dist/base.d.ts +10 -1
  10. package/dist/base.d.ts.map +1 -1
  11. package/dist/base.js +29 -2
  12. package/dist/base.js.map +1 -1
  13. package/dist/config.d.ts +8 -0
  14. package/dist/config.d.ts.map +1 -1
  15. package/dist/config.js +14 -1
  16. package/dist/config.js.map +1 -1
  17. package/dist/encoding.d.ts +1 -0
  18. package/dist/encoding.d.ts.map +1 -1
  19. package/dist/encoding.js +6 -8
  20. package/dist/encoding.js.map +1 -1
  21. package/dist/index.d.ts +4 -1
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +4 -1
  24. package/dist/index.js.map +1 -1
  25. package/dist/shared.d.ts +5 -0
  26. package/dist/shared.d.ts.map +1 -1
  27. package/dist/webauthn-json/api.d.ts +13 -0
  28. package/dist/webauthn-json/api.d.ts.map +1 -0
  29. package/dist/webauthn-json/api.js +33 -0
  30. package/dist/webauthn-json/api.js.map +1 -0
  31. package/dist/webauthn-json/base64url.d.ts +4 -0
  32. package/dist/webauthn-json/base64url.d.ts.map +1 -0
  33. package/dist/webauthn-json/base64url.js +37 -0
  34. package/dist/webauthn-json/base64url.js.map +1 -0
  35. package/dist/webauthn-json/convert.d.ts +8 -0
  36. package/dist/webauthn-json/convert.d.ts.map +1 -0
  37. package/dist/webauthn-json/convert.js +69 -0
  38. package/dist/webauthn-json/convert.js.map +1 -0
  39. package/dist/webauthn-json/index.d.ts +14 -0
  40. package/dist/webauthn-json/index.d.ts.map +1 -0
  41. package/dist/webauthn-json/index.js +19 -0
  42. package/dist/webauthn-json/index.js.map +1 -0
  43. package/dist/webauthn-json/json.d.ts +92 -0
  44. package/dist/webauthn-json/json.d.ts.map +1 -0
  45. package/dist/webauthn-json/json.js +3 -0
  46. package/dist/webauthn-json/json.js.map +1 -0
  47. package/dist/webauthn-json/schema-format.d.ts +13 -0
  48. package/dist/webauthn-json/schema-format.d.ts.map +1 -0
  49. package/dist/webauthn-json/schema-format.js +3 -0
  50. package/dist/webauthn-json/schema-format.js.map +1 -0
  51. package/dist/webauthn-json/schema.d.ts +9 -0
  52. package/dist/webauthn-json/schema.d.ts.map +1 -0
  53. package/dist/webauthn-json/schema.js +86 -0
  54. package/dist/webauthn-json/schema.js.map +1 -0
  55. package/dist/webauthn.d.ts +24 -0
  56. package/dist/webauthn.d.ts.map +1 -0
  57. package/dist/webauthn.js +82 -0
  58. package/dist/webauthn.js.map +1 -0
  59. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import { TurnkeyCredentialRequestOptions } from "../../../../../base";
1
2
  import type { operations } from "./public_api.types";
2
3
  /**
3
4
  * `POST /public/v1/query/get_activity`
@@ -25,14 +26,18 @@ export declare const postGetActivity: (input: TPostGetActivityInput) => Promise<
25
26
  id: string;
26
27
  organizationId: string;
27
28
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
28
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
29
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
29
30
  intent: {
30
31
  createOrganizationIntent: {
31
32
  organizationName: string;
32
33
  rootEmail: string;
33
34
  rootAuthenticator: {
34
35
  authenticatorName: string;
35
- userId: string;
36
+ userId: string; /**
37
+ * Create Invitations
38
+ *
39
+ * Create Invitations to join an existing Organization
40
+ */
36
41
  attestation: {
37
42
  id: string;
38
43
  type: "public-key";
@@ -59,7 +64,11 @@ export declare const postGetActivity: (input: TPostGetActivityInput) => Promise<
59
64
  createAuthenticatorsIntent?: {
60
65
  authenticators: {
61
66
  authenticatorName: string;
62
- userId: string;
67
+ userId: string; /**
68
+ * Create Invitations
69
+ *
70
+ * Create Invitations to join an existing Organization
71
+ */
63
72
  attestation: {
64
73
  id: string;
65
74
  type: "public-key";
@@ -94,7 +103,11 @@ export declare const postGetActivity: (input: TPostGetActivityInput) => Promise<
94
103
  }[];
95
104
  authenticators: {
96
105
  authenticatorName: string;
97
- userId: string;
106
+ userId: string; /**
107
+ * Create Invitations
108
+ *
109
+ * Create Invitations to join an existing Organization
110
+ */
98
111
  attestation: {
99
112
  id: string;
100
113
  type: "public-key";
@@ -147,7 +160,11 @@ export declare const postGetActivity: (input: TPostGetActivityInput) => Promise<
147
160
  userId: string;
148
161
  authenticator: {
149
162
  authenticatorName: string;
150
- userId: string;
163
+ userId: string; /**
164
+ * Create Invitations
165
+ *
166
+ * Create Invitations to join an existing Organization
167
+ */
151
168
  attestation: {
152
169
  id: string;
153
170
  type: "public-key";
@@ -357,14 +374,42 @@ export declare const postGetActivity: (input: TPostGetActivityInput) => Promise<
357
374
  userTags: string[];
358
375
  }[];
359
376
  };
377
+ createSubOrganizationIntent?: {
378
+ name: string;
379
+ rootAuthenticator: {
380
+ authenticatorName: string;
381
+ challenge: string;
382
+ attestation: {
383
+ credentialId: string;
384
+ clientDataJson: string;
385
+ attestationObject: string;
386
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
387
+ };
388
+ };
389
+ };
390
+ createSubOrganizationIntentV2?: {
391
+ subOrganizationName: string;
392
+ rootUsers: {
393
+ userName: string;
394
+ userEmail?: string;
395
+ apiKeys: {
396
+ apiKeyName: string;
397
+ publicKey: string;
398
+ }[];
399
+ authenticators: {
400
+ authenticatorName: string;
401
+ challenge: string;
402
+ attestation: {
403
+ credentialId: string;
404
+ clientDataJson: string;
405
+ attestationObject: string;
406
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
407
+ };
408
+ }[];
409
+ }[];
410
+ rootQuorumThreshold: number;
411
+ };
360
412
  };
361
- /**
362
- * Create API-only Users
363
- *
364
- * Create API-only Users in an existing Organization
365
- *
366
- * `POST /public/v1/submit/create_api_only_users`
367
- */
368
413
  result: {
369
414
  createOrganizationResult?: {
370
415
  organizationId: string;
@@ -459,6 +504,9 @@ export declare const postGetActivity: (input: TPostGetActivityInput) => Promise<
459
504
  updatePrivateKeyTagResult?: {
460
505
  privateKeyTagId: string;
461
506
  };
507
+ createSubOrganizationResult?: {
508
+ subOrganizationId: string;
509
+ };
462
510
  };
463
511
  votes: {
464
512
  id: string;
@@ -472,7 +520,6 @@ export declare const postGetActivity: (input: TPostGetActivityInput) => Promise<
472
520
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
473
521
  attestationType: string;
474
522
  aaguid: string;
475
- userId: string;
476
523
  credentialId: string;
477
524
  model: string;
478
525
  credential: {
@@ -540,6 +587,12 @@ export declare const postGetActivity: (input: TPostGetActivityInput) => Promise<
540
587
  };
541
588
  };
542
589
  }>;
590
+ /**
591
+ * Get Activity
592
+ *
593
+ * Get details about an Activity
594
+ */
595
+ export declare const federatedPostGetActivity: (input: TPostGetActivityInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
543
596
  /**
544
597
  * `POST /public/v1/query/get_organization`
545
598
  */
@@ -574,7 +627,6 @@ export declare const postGetOrganization: (input: TPostGetOrganizationInput) =>
574
627
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
575
628
  attestationType: string;
576
629
  aaguid: string;
577
- userId: string;
578
630
  credentialId: string;
579
631
  model: string;
580
632
  credential: {
@@ -684,80 +736,6 @@ export declare const postGetOrganization: (input: TPostGetOrganizationInput) =>
684
736
  nanos: string;
685
737
  };
686
738
  }[];
687
- deletedUsers?: {
688
- userId: string;
689
- userName: string;
690
- userEmail?: string;
691
- accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
692
- authenticators: {
693
- transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
694
- attestationType: string;
695
- aaguid: string;
696
- userId: string;
697
- credentialId: string;
698
- model: string;
699
- credential: {
700
- publicKey: string;
701
- type: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256";
702
- };
703
- authenticatorId: string;
704
- authenticatorName: string;
705
- createdAt: {
706
- seconds: string;
707
- nanos: string;
708
- };
709
- updatedAt: {
710
- seconds: string;
711
- nanos: string;
712
- };
713
- }[];
714
- apiKeys: {
715
- credential: {
716
- publicKey: string;
717
- type: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256";
718
- };
719
- apiKeyId: string;
720
- apiKeyName: string;
721
- createdAt: {
722
- seconds: string;
723
- nanos: string;
724
- };
725
- updatedAt: {
726
- seconds: string;
727
- nanos: string;
728
- };
729
- }[];
730
- userTags: string[];
731
- createdAt: {
732
- seconds: string;
733
- nanos: string;
734
- };
735
- updatedAt: {
736
- seconds: string;
737
- nanos: string;
738
- };
739
- }[];
740
- deletedPolicies?: {
741
- policyId: string;
742
- policyName: string;
743
- effect: "EFFECT_ALLOW" | "EFFECT_DENY";
744
- selectors: {
745
- subject: string;
746
- operator: "OPERATOR_EQUAL" | "OPERATOR_MORE_THAN" | "OPERATOR_MORE_THAN_OR_EQUAL" | "OPERATOR_LESS_THAN" | "OPERATOR_LESS_THAN_OR_EQUAL" | "OPERATOR_CONTAINS" | "OPERATOR_NOT_EQUAL" | "OPERATOR_IN" | "OPERATOR_NOT_IN" | "OPERATOR_CONTAINS_ONE" | "OPERATOR_CONTAINS_ALL";
747
- targets: string[];
748
- }[];
749
- createdAt: {
750
- seconds: string;
751
- nanos: string;
752
- };
753
- updatedAt: {
754
- seconds: string;
755
- nanos: string;
756
- };
757
- notes: string;
758
- consensus: string;
759
- condition: string;
760
- }[];
761
739
  disabledPrivateKeys?: {
762
740
  privateKeyId: string;
763
741
  publicKey: string;
@@ -773,76 +751,18 @@ export declare const postGetOrganization: (input: TPostGetOrganizationInput) =>
773
751
  nanos: string;
774
752
  };
775
753
  }[];
776
- deletedInvitations?: {
777
- invitationId: string;
778
- receiverUserName: string;
779
- receiverEmail: string;
780
- receiverUserTags: string[];
781
- accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
782
- status: "INVITATION_STATUS_CREATED" | "INVITATION_STATUS_ACCEPTED" | "INVITATION_STATUS_REVOKED";
783
- createdAt: {
784
- seconds: string;
785
- nanos: string;
786
- };
787
- updatedAt: {
788
- seconds: string;
789
- nanos: string;
790
- };
791
- senderUserId: string;
792
- }[];
793
- deletedApiKeys?: {
794
- credential: {
795
- publicKey: string;
796
- type: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256";
797
- };
798
- apiKeyId: string;
799
- apiKeyName: string;
800
- createdAt: {
801
- seconds: string;
802
- nanos: string;
803
- };
804
- updatedAt: {
805
- seconds: string;
806
- nanos: string;
807
- };
808
- }[];
809
- deletedAuthenticators?: {
810
- transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
811
- attestationType: string;
812
- aaguid: string;
813
- userId: string;
814
- credentialId: string;
815
- model: string;
816
- credential: {
817
- publicKey: string;
818
- type: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256";
819
- };
820
- authenticatorId: string;
821
- authenticatorName: string;
822
- createdAt: {
823
- seconds: string;
824
- nanos: string;
825
- };
826
- updatedAt: {
827
- seconds: string;
828
- nanos: string;
829
- };
830
- }[];
831
- deletedTags?: {
832
- tagId: string;
833
- tagName: string;
834
- tagType: "TAG_TYPE_USER" | "TAG_TYPE_PRIVATE_KEY";
835
- createdAt: {
836
- seconds: string;
837
- nanos: string;
838
- };
839
- updatedAt: {
840
- seconds: string;
841
- nanos: string;
842
- };
843
- }[];
754
+ rootQuorum?: {
755
+ threshold: number;
756
+ userIds: string[];
757
+ };
844
758
  };
845
759
  }>;
760
+ /**
761
+ * Get Organization
762
+ *
763
+ * Get details about an Organization
764
+ */
765
+ export declare const federatedPostGetOrganization: (input: TPostGetOrganizationInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
846
766
  /**
847
767
  * `POST /public/v1/query/get_policy`
848
768
  */
@@ -887,6 +807,12 @@ export declare const postGetPolicy: (input: TPostGetPolicyInput) => Promise<{
887
807
  condition: string;
888
808
  };
889
809
  }>;
810
+ /**
811
+ * Get Policy
812
+ *
813
+ * Get details about a Policy
814
+ */
815
+ export declare const federatedPostGetPolicy: (input: TPostGetPolicyInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
890
816
  /**
891
817
  * `POST /public/v1/query/get_private_key`
892
818
  */
@@ -925,6 +851,12 @@ export declare const postGetPrivateKey: (input: TPostGetPrivateKeyInput) => Prom
925
851
  };
926
852
  };
927
853
  }>;
854
+ /**
855
+ * Get Private Key
856
+ *
857
+ * Get details about a Private Key
858
+ */
859
+ export declare const federatedPostGetPrivateKey: (input: TPostGetPrivateKeyInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
928
860
  /**
929
861
  * `POST /public/v1/query/get_user`
930
862
  */
@@ -956,7 +888,6 @@ export declare const postGetUser: (input: TPostGetUserInput) => Promise<{
956
888
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
957
889
  attestationType: string;
958
890
  aaguid: string;
959
- userId: string;
960
891
  credentialId: string;
961
892
  model: string;
962
893
  credential: {
@@ -1001,6 +932,12 @@ export declare const postGetUser: (input: TPostGetUserInput) => Promise<{
1001
932
  };
1002
933
  };
1003
934
  }>;
935
+ /**
936
+ * Get User
937
+ *
938
+ * Get details about a User
939
+ */
940
+ export declare const federatedPostGetUser: (input: TPostGetUserInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
1004
941
  /**
1005
942
  * `POST /public/v1/query/list_activities`
1006
943
  */
@@ -1027,14 +964,18 @@ export declare const postGetActivities: (input: TPostGetActivitiesInput) => Prom
1027
964
  id: string;
1028
965
  organizationId: string;
1029
966
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
1030
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
967
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
1031
968
  intent: {
1032
969
  createOrganizationIntent: {
1033
970
  organizationName: string;
1034
971
  rootEmail: string;
1035
972
  rootAuthenticator: {
1036
973
  authenticatorName: string;
1037
- userId: string;
974
+ userId: string; /**
975
+ * Create Invitations
976
+ *
977
+ * Create Invitations to join an existing Organization
978
+ */
1038
979
  attestation: {
1039
980
  id: string;
1040
981
  type: "public-key";
@@ -1061,7 +1002,11 @@ export declare const postGetActivities: (input: TPostGetActivitiesInput) => Prom
1061
1002
  createAuthenticatorsIntent?: {
1062
1003
  authenticators: {
1063
1004
  authenticatorName: string;
1064
- userId: string;
1005
+ userId: string; /**
1006
+ * Create Invitations
1007
+ *
1008
+ * Create Invitations to join an existing Organization
1009
+ */
1065
1010
  attestation: {
1066
1011
  id: string;
1067
1012
  type: "public-key";
@@ -1096,7 +1041,11 @@ export declare const postGetActivities: (input: TPostGetActivitiesInput) => Prom
1096
1041
  }[];
1097
1042
  authenticators: {
1098
1043
  authenticatorName: string;
1099
- userId: string;
1044
+ userId: string; /**
1045
+ * Create Invitations
1046
+ *
1047
+ * Create Invitations to join an existing Organization
1048
+ */
1100
1049
  attestation: {
1101
1050
  id: string;
1102
1051
  type: "public-key";
@@ -1149,7 +1098,11 @@ export declare const postGetActivities: (input: TPostGetActivitiesInput) => Prom
1149
1098
  userId: string;
1150
1099
  authenticator: {
1151
1100
  authenticatorName: string;
1152
- userId: string;
1101
+ userId: string; /**
1102
+ * Create Invitations
1103
+ *
1104
+ * Create Invitations to join an existing Organization
1105
+ */
1153
1106
  attestation: {
1154
1107
  id: string;
1155
1108
  type: "public-key";
@@ -1359,14 +1312,42 @@ export declare const postGetActivities: (input: TPostGetActivitiesInput) => Prom
1359
1312
  userTags: string[];
1360
1313
  }[];
1361
1314
  };
1315
+ createSubOrganizationIntent?: {
1316
+ name: string;
1317
+ rootAuthenticator: {
1318
+ authenticatorName: string;
1319
+ challenge: string;
1320
+ attestation: {
1321
+ credentialId: string;
1322
+ clientDataJson: string;
1323
+ attestationObject: string;
1324
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1325
+ };
1326
+ };
1327
+ };
1328
+ createSubOrganizationIntentV2?: {
1329
+ subOrganizationName: string;
1330
+ rootUsers: {
1331
+ userName: string;
1332
+ userEmail?: string;
1333
+ apiKeys: {
1334
+ apiKeyName: string;
1335
+ publicKey: string;
1336
+ }[];
1337
+ authenticators: {
1338
+ authenticatorName: string;
1339
+ challenge: string;
1340
+ attestation: {
1341
+ credentialId: string;
1342
+ clientDataJson: string;
1343
+ attestationObject: string;
1344
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1345
+ };
1346
+ }[];
1347
+ }[];
1348
+ rootQuorumThreshold: number;
1349
+ };
1362
1350
  };
1363
- /**
1364
- * Create API-only Users
1365
- *
1366
- * Create API-only Users in an existing Organization
1367
- *
1368
- * `POST /public/v1/submit/create_api_only_users`
1369
- */
1370
1351
  result: {
1371
1352
  createOrganizationResult?: {
1372
1353
  organizationId: string;
@@ -1461,6 +1442,9 @@ export declare const postGetActivities: (input: TPostGetActivitiesInput) => Prom
1461
1442
  updatePrivateKeyTagResult?: {
1462
1443
  privateKeyTagId: string;
1463
1444
  };
1445
+ createSubOrganizationResult?: {
1446
+ subOrganizationId: string;
1447
+ };
1464
1448
  };
1465
1449
  votes: {
1466
1450
  id: string;
@@ -1474,7 +1458,6 @@ export declare const postGetActivities: (input: TPostGetActivitiesInput) => Prom
1474
1458
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1475
1459
  attestationType: string;
1476
1460
  aaguid: string;
1477
- userId: string;
1478
1461
  credentialId: string;
1479
1462
  model: string;
1480
1463
  credential: {
@@ -1542,6 +1525,12 @@ export declare const postGetActivities: (input: TPostGetActivitiesInput) => Prom
1542
1525
  };
1543
1526
  }[];
1544
1527
  }>;
1528
+ /**
1529
+ * List Activities
1530
+ *
1531
+ * List all Activities within an Organization
1532
+ */
1533
+ export declare const federatedPostGetActivities: (input: TPostGetActivitiesInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
1545
1534
  /**
1546
1535
  * `POST /public/v1/query/list_policies`
1547
1536
  */
@@ -1586,6 +1575,12 @@ export declare const postGetPolicies: (input: TPostGetPoliciesInput) => Promise<
1586
1575
  condition: string;
1587
1576
  }[];
1588
1577
  }>;
1578
+ /**
1579
+ * List Policies
1580
+ *
1581
+ * List all Policies within an Organization
1582
+ */
1583
+ export declare const federatedPostGetPolicies: (input: TPostGetPoliciesInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
1589
1584
  /**
1590
1585
  * `POST /public/v1/query/list_private_keys`
1591
1586
  */
@@ -1624,6 +1619,12 @@ export declare const postGetPrivateKeys: (input: TPostGetPrivateKeysInput) => Pr
1624
1619
  };
1625
1620
  }[];
1626
1621
  }>;
1622
+ /**
1623
+ * List Private Keys
1624
+ *
1625
+ * List all Private Keys within an Organization
1626
+ */
1627
+ export declare const federatedPostGetPrivateKeys: (input: TPostGetPrivateKeysInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
1627
1628
  /**
1628
1629
  * `POST /public/v1/query/list_users`
1629
1630
  */
@@ -1655,7 +1656,6 @@ export declare const postGetUsers: (input: TPostGetUsersInput) => Promise<{
1655
1656
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
1656
1657
  attestationType: string;
1657
1658
  aaguid: string;
1658
- userId: string;
1659
1659
  credentialId: string;
1660
1660
  model: string;
1661
1661
  credential: {
@@ -1700,6 +1700,12 @@ export declare const postGetUsers: (input: TPostGetUsersInput) => Promise<{
1700
1700
  };
1701
1701
  }[];
1702
1702
  }>;
1703
+ /**
1704
+ * List Users
1705
+ *
1706
+ * List all Users within an Organization
1707
+ */
1708
+ export declare const federatedPostGetUsers: (input: TPostGetUsersInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
1703
1709
  /**
1704
1710
  * `POST /public/v1/query/whoami`
1705
1711
  */
@@ -1727,6 +1733,12 @@ export declare const postGetWhoami: (input: TPostGetWhoamiInput) => Promise<{
1727
1733
  userId: string;
1728
1734
  username: string;
1729
1735
  }>;
1736
+ /**
1737
+ * Who am I?
1738
+ *
1739
+ * Get basic information about your current API user and your organization
1740
+ */
1741
+ export declare const federatedPostGetWhoami: (input: TPostGetWhoamiInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
1730
1742
  /**
1731
1743
  * `POST /public/v1/submit/approve_activity`
1732
1744
  */
@@ -1753,14 +1765,18 @@ export declare const postApproveActivity: (input: TPostApproveActivityInput) =>
1753
1765
  id: string;
1754
1766
  organizationId: string;
1755
1767
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
1756
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
1768
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
1757
1769
  intent: {
1758
1770
  createOrganizationIntent: {
1759
1771
  organizationName: string;
1760
1772
  rootEmail: string;
1761
1773
  rootAuthenticator: {
1762
1774
  authenticatorName: string;
1763
- userId: string;
1775
+ userId: string; /**
1776
+ * Create Invitations
1777
+ *
1778
+ * Create Invitations to join an existing Organization
1779
+ */
1764
1780
  attestation: {
1765
1781
  id: string;
1766
1782
  type: "public-key";
@@ -1787,7 +1803,11 @@ export declare const postApproveActivity: (input: TPostApproveActivityInput) =>
1787
1803
  createAuthenticatorsIntent?: {
1788
1804
  authenticators: {
1789
1805
  authenticatorName: string;
1790
- userId: string;
1806
+ userId: string; /**
1807
+ * Create Invitations
1808
+ *
1809
+ * Create Invitations to join an existing Organization
1810
+ */
1791
1811
  attestation: {
1792
1812
  id: string;
1793
1813
  type: "public-key";
@@ -1822,7 +1842,11 @@ export declare const postApproveActivity: (input: TPostApproveActivityInput) =>
1822
1842
  }[];
1823
1843
  authenticators: {
1824
1844
  authenticatorName: string;
1825
- userId: string;
1845
+ userId: string; /**
1846
+ * Create Invitations
1847
+ *
1848
+ * Create Invitations to join an existing Organization
1849
+ */
1826
1850
  attestation: {
1827
1851
  id: string;
1828
1852
  type: "public-key";
@@ -1875,7 +1899,11 @@ export declare const postApproveActivity: (input: TPostApproveActivityInput) =>
1875
1899
  userId: string;
1876
1900
  authenticator: {
1877
1901
  authenticatorName: string;
1878
- userId: string;
1902
+ userId: string; /**
1903
+ * Create Invitations
1904
+ *
1905
+ * Create Invitations to join an existing Organization
1906
+ */
1879
1907
  attestation: {
1880
1908
  id: string;
1881
1909
  type: "public-key";
@@ -2085,19 +2113,47 @@ export declare const postApproveActivity: (input: TPostApproveActivityInput) =>
2085
2113
  userTags: string[];
2086
2114
  }[];
2087
2115
  };
2088
- };
2089
- /**
2090
- * Create API-only Users
2091
- *
2092
- * Create API-only Users in an existing Organization
2093
- *
2094
- * `POST /public/v1/submit/create_api_only_users`
2095
- */
2096
- result: {
2097
- createOrganizationResult?: {
2098
- organizationId: string;
2099
- };
2100
- createAuthenticatorsResult?: {
2116
+ createSubOrganizationIntent?: {
2117
+ name: string;
2118
+ rootAuthenticator: {
2119
+ authenticatorName: string;
2120
+ challenge: string;
2121
+ attestation: {
2122
+ credentialId: string;
2123
+ clientDataJson: string;
2124
+ attestationObject: string;
2125
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
2126
+ };
2127
+ };
2128
+ };
2129
+ createSubOrganizationIntentV2?: {
2130
+ subOrganizationName: string;
2131
+ rootUsers: {
2132
+ userName: string;
2133
+ userEmail?: string;
2134
+ apiKeys: {
2135
+ apiKeyName: string;
2136
+ publicKey: string;
2137
+ }[];
2138
+ authenticators: {
2139
+ authenticatorName: string;
2140
+ challenge: string;
2141
+ attestation: {
2142
+ credentialId: string;
2143
+ clientDataJson: string;
2144
+ attestationObject: string;
2145
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
2146
+ };
2147
+ }[];
2148
+ }[];
2149
+ rootQuorumThreshold: number;
2150
+ };
2151
+ };
2152
+ result: {
2153
+ createOrganizationResult?: {
2154
+ organizationId: string;
2155
+ };
2156
+ createAuthenticatorsResult?: {
2101
2157
  authenticatorIds: string[];
2102
2158
  };
2103
2159
  createUsersResult?: {
@@ -2187,6 +2243,9 @@ export declare const postApproveActivity: (input: TPostApproveActivityInput) =>
2187
2243
  updatePrivateKeyTagResult?: {
2188
2244
  privateKeyTagId: string;
2189
2245
  };
2246
+ createSubOrganizationResult?: {
2247
+ subOrganizationId: string;
2248
+ };
2190
2249
  };
2191
2250
  votes: {
2192
2251
  id: string;
@@ -2200,7 +2259,6 @@ export declare const postApproveActivity: (input: TPostApproveActivityInput) =>
2200
2259
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
2201
2260
  attestationType: string;
2202
2261
  aaguid: string;
2203
- userId: string;
2204
2262
  credentialId: string;
2205
2263
  model: string;
2206
2264
  credential: {
@@ -2268,6 +2326,12 @@ export declare const postApproveActivity: (input: TPostApproveActivityInput) =>
2268
2326
  };
2269
2327
  };
2270
2328
  }>;
2329
+ /**
2330
+ * Approve Activity
2331
+ *
2332
+ * Approve an Activity
2333
+ */
2334
+ export declare const federatedPostApproveActivity: (input: TPostApproveActivityInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
2271
2335
  /**
2272
2336
  * `POST /public/v1/submit/create_api_keys`
2273
2337
  */
@@ -2294,14 +2358,18 @@ export declare const postCreateApiKeys: (input: TPostCreateApiKeysInput) => Prom
2294
2358
  id: string;
2295
2359
  organizationId: string;
2296
2360
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
2297
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
2361
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
2298
2362
  intent: {
2299
2363
  createOrganizationIntent: {
2300
2364
  organizationName: string;
2301
2365
  rootEmail: string;
2302
2366
  rootAuthenticator: {
2303
2367
  authenticatorName: string;
2304
- userId: string;
2368
+ userId: string; /**
2369
+ * Create Invitations
2370
+ *
2371
+ * Create Invitations to join an existing Organization
2372
+ */
2305
2373
  attestation: {
2306
2374
  id: string;
2307
2375
  type: "public-key";
@@ -2328,7 +2396,11 @@ export declare const postCreateApiKeys: (input: TPostCreateApiKeysInput) => Prom
2328
2396
  createAuthenticatorsIntent?: {
2329
2397
  authenticators: {
2330
2398
  authenticatorName: string;
2331
- userId: string;
2399
+ userId: string; /**
2400
+ * Create Invitations
2401
+ *
2402
+ * Create Invitations to join an existing Organization
2403
+ */
2332
2404
  attestation: {
2333
2405
  id: string;
2334
2406
  type: "public-key";
@@ -2363,7 +2435,11 @@ export declare const postCreateApiKeys: (input: TPostCreateApiKeysInput) => Prom
2363
2435
  }[];
2364
2436
  authenticators: {
2365
2437
  authenticatorName: string;
2366
- userId: string;
2438
+ userId: string; /**
2439
+ * Create Invitations
2440
+ *
2441
+ * Create Invitations to join an existing Organization
2442
+ */
2367
2443
  attestation: {
2368
2444
  id: string;
2369
2445
  type: "public-key";
@@ -2416,7 +2492,11 @@ export declare const postCreateApiKeys: (input: TPostCreateApiKeysInput) => Prom
2416
2492
  userId: string;
2417
2493
  authenticator: {
2418
2494
  authenticatorName: string;
2419
- userId: string;
2495
+ userId: string; /**
2496
+ * Create Invitations
2497
+ *
2498
+ * Create Invitations to join an existing Organization
2499
+ */
2420
2500
  attestation: {
2421
2501
  id: string;
2422
2502
  type: "public-key";
@@ -2626,14 +2706,42 @@ export declare const postCreateApiKeys: (input: TPostCreateApiKeysInput) => Prom
2626
2706
  userTags: string[];
2627
2707
  }[];
2628
2708
  };
2709
+ createSubOrganizationIntent?: {
2710
+ name: string;
2711
+ rootAuthenticator: {
2712
+ authenticatorName: string;
2713
+ challenge: string;
2714
+ attestation: {
2715
+ credentialId: string;
2716
+ clientDataJson: string;
2717
+ attestationObject: string;
2718
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
2719
+ };
2720
+ };
2721
+ };
2722
+ createSubOrganizationIntentV2?: {
2723
+ subOrganizationName: string;
2724
+ rootUsers: {
2725
+ userName: string;
2726
+ userEmail?: string;
2727
+ apiKeys: {
2728
+ apiKeyName: string;
2729
+ publicKey: string;
2730
+ }[];
2731
+ authenticators: {
2732
+ authenticatorName: string;
2733
+ challenge: string;
2734
+ attestation: {
2735
+ credentialId: string;
2736
+ clientDataJson: string;
2737
+ attestationObject: string;
2738
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
2739
+ };
2740
+ }[];
2741
+ }[];
2742
+ rootQuorumThreshold: number;
2743
+ };
2629
2744
  };
2630
- /**
2631
- * Create API-only Users
2632
- *
2633
- * Create API-only Users in an existing Organization
2634
- *
2635
- * `POST /public/v1/submit/create_api_only_users`
2636
- */
2637
2745
  result: {
2638
2746
  createOrganizationResult?: {
2639
2747
  organizationId: string;
@@ -2728,6 +2836,9 @@ export declare const postCreateApiKeys: (input: TPostCreateApiKeysInput) => Prom
2728
2836
  updatePrivateKeyTagResult?: {
2729
2837
  privateKeyTagId: string;
2730
2838
  };
2839
+ createSubOrganizationResult?: {
2840
+ subOrganizationId: string;
2841
+ };
2731
2842
  };
2732
2843
  votes: {
2733
2844
  id: string;
@@ -2741,7 +2852,6 @@ export declare const postCreateApiKeys: (input: TPostCreateApiKeysInput) => Prom
2741
2852
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
2742
2853
  attestationType: string;
2743
2854
  aaguid: string;
2744
- userId: string;
2745
2855
  credentialId: string;
2746
2856
  model: string;
2747
2857
  credential: {
@@ -2809,6 +2919,12 @@ export declare const postCreateApiKeys: (input: TPostCreateApiKeysInput) => Prom
2809
2919
  };
2810
2920
  };
2811
2921
  }>;
2922
+ /**
2923
+ * Create API Keys
2924
+ *
2925
+ * Add api keys to an existing User
2926
+ */
2927
+ export declare const federatedPostCreateApiKeys: (input: TPostCreateApiKeysInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
2812
2928
  /**
2813
2929
  * `POST /public/v1/submit/create_api_only_users`
2814
2930
  */
@@ -2835,14 +2951,1204 @@ export declare const postCreateApiOnlyUsers: (input: TPostCreateApiOnlyUsersInpu
2835
2951
  id: string;
2836
2952
  organizationId: string;
2837
2953
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
2838
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
2954
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
2955
+ intent: {
2956
+ createOrganizationIntent: {
2957
+ organizationName: string;
2958
+ rootEmail: string;
2959
+ rootAuthenticator: {
2960
+ authenticatorName: string;
2961
+ userId: string; /**
2962
+ * Create Invitations
2963
+ *
2964
+ * Create Invitations to join an existing Organization
2965
+ */
2966
+ attestation: {
2967
+ id: string;
2968
+ type: "public-key";
2969
+ rawId: string;
2970
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
2971
+ response: {
2972
+ clientDataJson: string;
2973
+ attestationObject: string;
2974
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
2975
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
2976
+ };
2977
+ clientExtensionResults: {
2978
+ appid?: boolean;
2979
+ appidExclude?: boolean;
2980
+ credProps?: {
2981
+ rk: boolean;
2982
+ };
2983
+ };
2984
+ };
2985
+ challenge: string;
2986
+ };
2987
+ rootUserId?: string;
2988
+ };
2989
+ createAuthenticatorsIntent?: {
2990
+ authenticators: {
2991
+ authenticatorName: string;
2992
+ userId: string; /**
2993
+ * Create Invitations
2994
+ *
2995
+ * Create Invitations to join an existing Organization
2996
+ */
2997
+ attestation: {
2998
+ id: string;
2999
+ type: "public-key";
3000
+ rawId: string;
3001
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3002
+ response: {
3003
+ clientDataJson: string;
3004
+ attestationObject: string;
3005
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3006
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3007
+ };
3008
+ clientExtensionResults: {
3009
+ appid?: boolean;
3010
+ appidExclude?: boolean;
3011
+ credProps?: {
3012
+ rk: boolean;
3013
+ };
3014
+ };
3015
+ };
3016
+ challenge: string;
3017
+ }[];
3018
+ userId: string;
3019
+ };
3020
+ createUsersIntent?: {
3021
+ users: {
3022
+ userName: string;
3023
+ userEmail?: string;
3024
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
3025
+ apiKeys: {
3026
+ apiKeyName: string;
3027
+ publicKey: string;
3028
+ }[];
3029
+ authenticators: {
3030
+ authenticatorName: string;
3031
+ userId: string; /**
3032
+ * Create Invitations
3033
+ *
3034
+ * Create Invitations to join an existing Organization
3035
+ */
3036
+ attestation: {
3037
+ id: string;
3038
+ type: "public-key";
3039
+ rawId: string;
3040
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3041
+ response: {
3042
+ clientDataJson: string;
3043
+ attestationObject: string;
3044
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3045
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3046
+ };
3047
+ clientExtensionResults: {
3048
+ appid?: boolean;
3049
+ appidExclude?: boolean;
3050
+ credProps?: {
3051
+ rk: boolean;
3052
+ };
3053
+ };
3054
+ };
3055
+ challenge: string;
3056
+ }[];
3057
+ userTags: string[];
3058
+ }[];
3059
+ };
3060
+ createPrivateKeysIntent?: {
3061
+ privateKeys: {
3062
+ privateKeyName: string;
3063
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
3064
+ privateKeyTags: string[];
3065
+ addressFormats: ("ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM")[];
3066
+ }[];
3067
+ };
3068
+ signRawPayloadIntent?: {
3069
+ privateKeyId: string;
3070
+ payload: string;
3071
+ encoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8";
3072
+ hashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
3073
+ };
3074
+ createInvitationsIntent?: {
3075
+ invitations: {
3076
+ receiverUserName: string;
3077
+ receiverUserEmail: string;
3078
+ receiverUserTags: string[];
3079
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
3080
+ senderUserId: string;
3081
+ }[];
3082
+ };
3083
+ acceptInvitationIntent?: {
3084
+ invitationId: string;
3085
+ userId: string;
3086
+ authenticator: {
3087
+ authenticatorName: string;
3088
+ userId: string; /**
3089
+ * Create Invitations
3090
+ *
3091
+ * Create Invitations to join an existing Organization
3092
+ */
3093
+ attestation: {
3094
+ id: string;
3095
+ type: "public-key";
3096
+ rawId: string;
3097
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3098
+ response: {
3099
+ clientDataJson: string;
3100
+ attestationObject: string;
3101
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3102
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3103
+ };
3104
+ clientExtensionResults: {
3105
+ appid?: boolean;
3106
+ appidExclude?: boolean;
3107
+ credProps?: {
3108
+ rk: boolean;
3109
+ };
3110
+ };
3111
+ };
3112
+ challenge: string;
3113
+ };
3114
+ };
3115
+ createPolicyIntent?: {
3116
+ policyName: string;
3117
+ selectors: {
3118
+ subject?: string;
3119
+ operator?: "OPERATOR_EQUAL" | "OPERATOR_MORE_THAN" | "OPERATOR_MORE_THAN_OR_EQUAL" | "OPERATOR_LESS_THAN" | "OPERATOR_LESS_THAN_OR_EQUAL" | "OPERATOR_CONTAINS" | "OPERATOR_NOT_EQUAL" | "OPERATOR_IN" | "OPERATOR_NOT_IN" | "OPERATOR_CONTAINS_ONE" | "OPERATOR_CONTAINS_ALL";
3120
+ target?: string;
3121
+ }[];
3122
+ effect: "EFFECT_ALLOW" | "EFFECT_DENY";
3123
+ notes?: string;
3124
+ };
3125
+ disablePrivateKeyIntent?: {
3126
+ privateKeyId: string;
3127
+ };
3128
+ deleteUsersIntent?: {
3129
+ userIds: string[];
3130
+ };
3131
+ deleteAuthenticatorsIntent?: {
3132
+ userId: string;
3133
+ authenticatorIds: string[];
3134
+ };
3135
+ deleteInvitationIntent?: {
3136
+ invitationId: string;
3137
+ };
3138
+ deleteOrganizationIntent?: {
3139
+ organizationId: string;
3140
+ };
3141
+ deletePolicyIntent?: {
3142
+ policyId: string;
3143
+ };
3144
+ createUserTagIntent?: {
3145
+ userTagName: string;
3146
+ userIds: string[];
3147
+ };
3148
+ deleteUserTagsIntent?: {
3149
+ userTagIds: string[];
3150
+ };
3151
+ signTransactionIntent?: {
3152
+ privateKeyId: string;
3153
+ unsignedTransaction: string;
3154
+ type: "TRANSACTION_TYPE_ETHEREUM";
3155
+ };
3156
+ createApiKeysIntent?: {
3157
+ apiKeys: {
3158
+ apiKeyName: string;
3159
+ publicKey: string;
3160
+ }[];
3161
+ userId: string;
3162
+ };
3163
+ deleteApiKeysIntent?: {
3164
+ userId: string;
3165
+ apiKeyIds: string[];
3166
+ };
3167
+ approveActivityIntent?: {
3168
+ fingerprint: string;
3169
+ };
3170
+ rejectActivityIntent?: {
3171
+ fingerprint: string;
3172
+ };
3173
+ createPrivateKeyTagIntent?: {
3174
+ privateKeyTagName: string;
3175
+ privateKeyIds: string[];
3176
+ };
3177
+ deletePrivateKeyTagsIntent?: {
3178
+ privateKeyTagIds: string[];
3179
+ };
3180
+ createPolicyIntentV2?: {
3181
+ policyName: string;
3182
+ selectors: {
3183
+ subject?: string;
3184
+ operator?: "OPERATOR_EQUAL" | "OPERATOR_MORE_THAN" | "OPERATOR_MORE_THAN_OR_EQUAL" | "OPERATOR_LESS_THAN" | "OPERATOR_LESS_THAN_OR_EQUAL" | "OPERATOR_CONTAINS" | "OPERATOR_NOT_EQUAL" | "OPERATOR_IN" | "OPERATOR_NOT_IN" | "OPERATOR_CONTAINS_ONE" | "OPERATOR_CONTAINS_ALL";
3185
+ targets?: string[];
3186
+ }[];
3187
+ effect: "EFFECT_ALLOW" | "EFFECT_DENY";
3188
+ notes?: string;
3189
+ };
3190
+ setPaymentMethodIntent?: {
3191
+ number: string;
3192
+ cvv: string;
3193
+ expiryMonth: string;
3194
+ expiryYear: string;
3195
+ cardHolderEmail: string;
3196
+ cardHolderName: string;
3197
+ };
3198
+ activateBillingTierIntent?: {
3199
+ productId: string;
3200
+ };
3201
+ deletePaymentMethodIntent?: {
3202
+ paymentMethodId: string;
3203
+ };
3204
+ createPolicyIntentV3?: {
3205
+ policyName: string;
3206
+ effect: "EFFECT_ALLOW" | "EFFECT_DENY";
3207
+ condition?: string;
3208
+ consensus?: string;
3209
+ notes?: string;
3210
+ };
3211
+ createApiOnlyUsersIntent?: {
3212
+ apiOnlyUsers: {
3213
+ userName: string;
3214
+ userEmail?: string;
3215
+ userTags: string[];
3216
+ apiKeys: {
3217
+ apiKeyName: string;
3218
+ publicKey: string;
3219
+ }[];
3220
+ }[];
3221
+ };
3222
+ updateRootQuorumIntent?: {
3223
+ threshold: number;
3224
+ userIds: string[];
3225
+ };
3226
+ updateUserTagIntent?: {
3227
+ userTagId: string;
3228
+ newUserTagName?: string;
3229
+ addUserIds: string[];
3230
+ removeUserIds: string[];
3231
+ };
3232
+ updatePrivateKeyTagIntent?: {
3233
+ privateKeyTagId: string;
3234
+ newPrivateKeyTagName?: string;
3235
+ addPrivateKeyIds: string[];
3236
+ removePrivateKeyIds: string[];
3237
+ };
3238
+ createAuthenticatorsIntentV2?: {
3239
+ authenticators: {
3240
+ authenticatorName: string;
3241
+ challenge: string;
3242
+ attestation: {
3243
+ credentialId: string;
3244
+ clientDataJson: string;
3245
+ attestationObject: string;
3246
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3247
+ };
3248
+ }[];
3249
+ userId: string;
3250
+ };
3251
+ acceptInvitationIntentV2?: {
3252
+ invitationId: string;
3253
+ userId: string;
3254
+ authenticator: {
3255
+ authenticatorName: string;
3256
+ challenge: string;
3257
+ attestation: {
3258
+ credentialId: string;
3259
+ clientDataJson: string;
3260
+ attestationObject: string;
3261
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3262
+ };
3263
+ };
3264
+ };
3265
+ createOrganizationIntentV2?: {
3266
+ organizationName: string;
3267
+ rootEmail: string;
3268
+ rootAuthenticator: {
3269
+ authenticatorName: string;
3270
+ challenge: string;
3271
+ attestation: {
3272
+ credentialId: string;
3273
+ clientDataJson: string;
3274
+ attestationObject: string;
3275
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3276
+ };
3277
+ };
3278
+ rootUserId?: string;
3279
+ };
3280
+ createUsersIntentV2?: {
3281
+ users: {
3282
+ userName: string;
3283
+ userEmail?: string;
3284
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
3285
+ apiKeys: {
3286
+ apiKeyName: string;
3287
+ publicKey: string;
3288
+ }[];
3289
+ authenticators: {
3290
+ authenticatorName: string;
3291
+ challenge: string;
3292
+ attestation: {
3293
+ credentialId: string;
3294
+ clientDataJson: string;
3295
+ attestationObject: string;
3296
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3297
+ };
3298
+ }[];
3299
+ userTags: string[];
3300
+ }[];
3301
+ };
3302
+ createSubOrganizationIntent?: {
3303
+ name: string;
3304
+ rootAuthenticator: {
3305
+ authenticatorName: string;
3306
+ challenge: string;
3307
+ attestation: {
3308
+ credentialId: string;
3309
+ clientDataJson: string;
3310
+ attestationObject: string;
3311
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3312
+ };
3313
+ };
3314
+ };
3315
+ createSubOrganizationIntentV2?: {
3316
+ subOrganizationName: string;
3317
+ rootUsers: {
3318
+ userName: string;
3319
+ userEmail?: string;
3320
+ apiKeys: {
3321
+ apiKeyName: string;
3322
+ publicKey: string;
3323
+ }[];
3324
+ authenticators: {
3325
+ authenticatorName: string;
3326
+ challenge: string;
3327
+ attestation: {
3328
+ credentialId: string;
3329
+ clientDataJson: string;
3330
+ attestationObject: string;
3331
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3332
+ };
3333
+ }[];
3334
+ }[];
3335
+ rootQuorumThreshold: number;
3336
+ };
3337
+ };
3338
+ result: {
3339
+ createOrganizationResult?: {
3340
+ organizationId: string;
3341
+ };
3342
+ createAuthenticatorsResult?: {
3343
+ authenticatorIds: string[];
3344
+ };
3345
+ createUsersResult?: {
3346
+ userIds: string[];
3347
+ };
3348
+ createPrivateKeysResult?: {
3349
+ privateKeyIds: string[];
3350
+ };
3351
+ createInvitationsResult?: {
3352
+ invitationIds: string[];
3353
+ };
3354
+ acceptInvitationResult?: {
3355
+ invitationId: string;
3356
+ userId: string;
3357
+ };
3358
+ signRawPayloadResult?: {
3359
+ r: string;
3360
+ s: string;
3361
+ v: string;
3362
+ };
3363
+ createPolicyResult?: {
3364
+ policyId: string;
3365
+ };
3366
+ disablePrivateKeyResult?: {
3367
+ privateKeyId: string;
3368
+ };
3369
+ deleteUsersResult?: {
3370
+ userIds: string[];
3371
+ };
3372
+ deleteAuthenticatorsResult?: {
3373
+ authenticatorIds: string[];
3374
+ };
3375
+ deleteInvitationResult?: {
3376
+ invitationId: string;
3377
+ };
3378
+ deleteOrganizationResult?: {
3379
+ organizationId: string;
3380
+ };
3381
+ deletePolicyResult?: {
3382
+ policyId: string;
3383
+ };
3384
+ createUserTagResult?: {
3385
+ userTagId: string;
3386
+ userIds: string[];
3387
+ };
3388
+ deleteUserTagsResult?: {
3389
+ userTagIds: string[];
3390
+ userIds: string[];
3391
+ };
3392
+ signTransactionResult?: {
3393
+ signedTransaction: string;
3394
+ };
3395
+ deleteApiKeysResult?: {
3396
+ apiKeyIds: string[];
3397
+ };
3398
+ createApiKeysResult?: {
3399
+ apiKeyIds: string[];
3400
+ };
3401
+ createPrivateKeyTagResult?: {
3402
+ privateKeyTagId: string;
3403
+ privateKeyIds: string[];
3404
+ };
3405
+ deletePrivateKeyTagsResult?: {
3406
+ privateKeyTagIds: string[];
3407
+ privateKeyIds: string[];
3408
+ };
3409
+ setPaymentMethodResult?: {
3410
+ lastFour: string;
3411
+ cardHolderName: string;
3412
+ cardHolderEmail: string;
3413
+ };
3414
+ activateBillingTierResult?: {
3415
+ productId: string;
3416
+ };
3417
+ deletePaymentMethodResult?: {
3418
+ paymentMethodId: string;
3419
+ };
3420
+ createApiOnlyUsersResult?: {
3421
+ userIds: string[];
3422
+ };
3423
+ updateRootQuorumResult?: {
3424
+ [key: string]: unknown;
3425
+ };
3426
+ updateUserTagResult?: {
3427
+ userTagId: string;
3428
+ };
3429
+ updatePrivateKeyTagResult?: {
3430
+ privateKeyTagId: string;
3431
+ };
3432
+ createSubOrganizationResult?: {
3433
+ subOrganizationId: string;
3434
+ };
3435
+ };
3436
+ votes: {
3437
+ id: string;
3438
+ userId: string;
3439
+ user: {
3440
+ userId: string;
3441
+ userName: string;
3442
+ userEmail?: string;
3443
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
3444
+ authenticators: {
3445
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3446
+ attestationType: string;
3447
+ aaguid: string;
3448
+ credentialId: string;
3449
+ model: string;
3450
+ credential: {
3451
+ publicKey: string;
3452
+ type: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256";
3453
+ };
3454
+ authenticatorId: string;
3455
+ authenticatorName: string;
3456
+ createdAt: {
3457
+ seconds: string;
3458
+ nanos: string;
3459
+ };
3460
+ updatedAt: {
3461
+ seconds: string;
3462
+ nanos: string;
3463
+ };
3464
+ }[];
3465
+ apiKeys: {
3466
+ credential: {
3467
+ publicKey: string;
3468
+ type: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256";
3469
+ };
3470
+ apiKeyId: string;
3471
+ apiKeyName: string;
3472
+ createdAt: {
3473
+ seconds: string;
3474
+ nanos: string;
3475
+ };
3476
+ updatedAt: {
3477
+ seconds: string;
3478
+ nanos: string;
3479
+ };
3480
+ }[];
3481
+ userTags: string[];
3482
+ createdAt: {
3483
+ seconds: string;
3484
+ nanos: string;
3485
+ };
3486
+ updatedAt: {
3487
+ seconds: string;
3488
+ nanos: string;
3489
+ };
3490
+ };
3491
+ activityId: string;
3492
+ selection: "VOTE_SELECTION_APPROVED" | "VOTE_SELECTION_REJECTED";
3493
+ message: string;
3494
+ publicKey: string;
3495
+ signature: string;
3496
+ scheme: string;
3497
+ createdAt: {
3498
+ seconds: string;
3499
+ nanos: string;
3500
+ };
3501
+ }[];
3502
+ fingerprint: string;
3503
+ canApprove: boolean;
3504
+ canReject: boolean;
3505
+ createdAt: {
3506
+ seconds: string;
3507
+ nanos: string;
3508
+ };
3509
+ updatedAt: {
3510
+ seconds: string;
3511
+ nanos: string;
3512
+ };
3513
+ };
3514
+ }>;
3515
+ /**
3516
+ * Create API-only Users
3517
+ *
3518
+ * Create API-only Users in an existing Organization
3519
+ */
3520
+ export declare const federatedPostCreateApiOnlyUsers: (input: TPostCreateApiOnlyUsersInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
3521
+ /**
3522
+ * `POST /public/v1/submit/create_authenticators`
3523
+ */
3524
+ type TPostCreateAuthenticatorsBody = operations["PublicApiService_CreateAuthenticators"]["parameters"]["body"]["body"];
3525
+ /**
3526
+ * `POST /public/v1/submit/create_authenticators`
3527
+ */
3528
+ export type TPostCreateAuthenticatorsResponse = operations["PublicApiService_CreateAuthenticators"]["responses"]["200"]["schema"];
3529
+ /**
3530
+ * `POST /public/v1/submit/create_authenticators`
3531
+ */
3532
+ export type TPostCreateAuthenticatorsInput = {
3533
+ body: TPostCreateAuthenticatorsBody;
3534
+ };
3535
+ /**
3536
+ * Create Authenticators
3537
+ *
3538
+ * Create Authenticators to authenticate requests to Turnkey
3539
+ *
3540
+ * `POST /public/v1/submit/create_authenticators`
3541
+ */
3542
+ export declare const postCreateAuthenticators: (input: TPostCreateAuthenticatorsInput) => Promise<{
3543
+ activity: {
3544
+ id: string;
3545
+ organizationId: string;
3546
+ status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
3547
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
3548
+ intent: {
3549
+ createOrganizationIntent: {
3550
+ organizationName: string;
3551
+ rootEmail: string;
3552
+ rootAuthenticator: {
3553
+ authenticatorName: string;
3554
+ userId: string; /**
3555
+ * Create Invitations
3556
+ *
3557
+ * Create Invitations to join an existing Organization
3558
+ */
3559
+ attestation: {
3560
+ id: string;
3561
+ type: "public-key";
3562
+ rawId: string;
3563
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3564
+ response: {
3565
+ clientDataJson: string;
3566
+ attestationObject: string;
3567
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3568
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3569
+ };
3570
+ clientExtensionResults: {
3571
+ appid?: boolean;
3572
+ appidExclude?: boolean;
3573
+ credProps?: {
3574
+ rk: boolean;
3575
+ };
3576
+ };
3577
+ };
3578
+ challenge: string;
3579
+ };
3580
+ rootUserId?: string;
3581
+ };
3582
+ createAuthenticatorsIntent?: {
3583
+ authenticators: {
3584
+ authenticatorName: string;
3585
+ userId: string; /**
3586
+ * Create Invitations
3587
+ *
3588
+ * Create Invitations to join an existing Organization
3589
+ */
3590
+ attestation: {
3591
+ id: string;
3592
+ type: "public-key";
3593
+ rawId: string;
3594
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3595
+ response: {
3596
+ clientDataJson: string;
3597
+ attestationObject: string;
3598
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3599
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3600
+ };
3601
+ clientExtensionResults: {
3602
+ appid?: boolean;
3603
+ appidExclude?: boolean;
3604
+ credProps?: {
3605
+ rk: boolean;
3606
+ };
3607
+ };
3608
+ };
3609
+ challenge: string;
3610
+ }[];
3611
+ userId: string;
3612
+ };
3613
+ createUsersIntent?: {
3614
+ users: {
3615
+ userName: string;
3616
+ userEmail?: string;
3617
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
3618
+ apiKeys: {
3619
+ apiKeyName: string;
3620
+ publicKey: string;
3621
+ }[];
3622
+ authenticators: {
3623
+ authenticatorName: string;
3624
+ userId: string; /**
3625
+ * Create Invitations
3626
+ *
3627
+ * Create Invitations to join an existing Organization
3628
+ */
3629
+ attestation: {
3630
+ id: string;
3631
+ type: "public-key";
3632
+ rawId: string;
3633
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3634
+ response: {
3635
+ clientDataJson: string;
3636
+ attestationObject: string;
3637
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3638
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3639
+ };
3640
+ clientExtensionResults: {
3641
+ appid?: boolean;
3642
+ appidExclude?: boolean;
3643
+ credProps?: {
3644
+ rk: boolean;
3645
+ };
3646
+ };
3647
+ };
3648
+ challenge: string;
3649
+ }[];
3650
+ userTags: string[];
3651
+ }[];
3652
+ };
3653
+ createPrivateKeysIntent?: {
3654
+ privateKeys: {
3655
+ privateKeyName: string;
3656
+ curve: "CURVE_SECP256K1" | "CURVE_ED25519";
3657
+ privateKeyTags: string[];
3658
+ addressFormats: ("ADDRESS_FORMAT_UNCOMPRESSED" | "ADDRESS_FORMAT_COMPRESSED" | "ADDRESS_FORMAT_ETHEREUM")[];
3659
+ }[];
3660
+ };
3661
+ signRawPayloadIntent?: {
3662
+ privateKeyId: string;
3663
+ payload: string;
3664
+ encoding: "PAYLOAD_ENCODING_HEXADECIMAL" | "PAYLOAD_ENCODING_TEXT_UTF8";
3665
+ hashFunction: "HASH_FUNCTION_NO_OP" | "HASH_FUNCTION_SHA256" | "HASH_FUNCTION_KECCAK256" | "HASH_FUNCTION_NOT_APPLICABLE";
3666
+ };
3667
+ createInvitationsIntent?: {
3668
+ invitations: {
3669
+ receiverUserName: string;
3670
+ receiverUserEmail: string;
3671
+ receiverUserTags: string[];
3672
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
3673
+ senderUserId: string;
3674
+ }[];
3675
+ };
3676
+ acceptInvitationIntent?: {
3677
+ invitationId: string;
3678
+ userId: string;
3679
+ authenticator: {
3680
+ authenticatorName: string;
3681
+ userId: string; /**
3682
+ * Create Invitations
3683
+ *
3684
+ * Create Invitations to join an existing Organization
3685
+ */
3686
+ attestation: {
3687
+ id: string;
3688
+ type: "public-key";
3689
+ rawId: string;
3690
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3691
+ response: {
3692
+ clientDataJson: string;
3693
+ attestationObject: string;
3694
+ transports?: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3695
+ authenticatorAttachment?: "cross-platform" | "platform" | null;
3696
+ };
3697
+ clientExtensionResults: {
3698
+ appid?: boolean;
3699
+ appidExclude?: boolean;
3700
+ credProps?: {
3701
+ rk: boolean;
3702
+ };
3703
+ };
3704
+ };
3705
+ challenge: string;
3706
+ };
3707
+ };
3708
+ createPolicyIntent?: {
3709
+ policyName: string;
3710
+ selectors: {
3711
+ subject?: string;
3712
+ operator?: "OPERATOR_EQUAL" | "OPERATOR_MORE_THAN" | "OPERATOR_MORE_THAN_OR_EQUAL" | "OPERATOR_LESS_THAN" | "OPERATOR_LESS_THAN_OR_EQUAL" | "OPERATOR_CONTAINS" | "OPERATOR_NOT_EQUAL" | "OPERATOR_IN" | "OPERATOR_NOT_IN" | "OPERATOR_CONTAINS_ONE" | "OPERATOR_CONTAINS_ALL";
3713
+ target?: string;
3714
+ }[];
3715
+ effect: "EFFECT_ALLOW" | "EFFECT_DENY";
3716
+ notes?: string;
3717
+ };
3718
+ disablePrivateKeyIntent?: {
3719
+ privateKeyId: string;
3720
+ };
3721
+ deleteUsersIntent?: {
3722
+ userIds: string[];
3723
+ };
3724
+ deleteAuthenticatorsIntent?: {
3725
+ userId: string;
3726
+ authenticatorIds: string[];
3727
+ };
3728
+ deleteInvitationIntent?: {
3729
+ invitationId: string;
3730
+ };
3731
+ deleteOrganizationIntent?: {
3732
+ organizationId: string;
3733
+ };
3734
+ deletePolicyIntent?: {
3735
+ policyId: string;
3736
+ };
3737
+ createUserTagIntent?: {
3738
+ userTagName: string;
3739
+ userIds: string[];
3740
+ };
3741
+ deleteUserTagsIntent?: {
3742
+ userTagIds: string[];
3743
+ };
3744
+ signTransactionIntent?: {
3745
+ privateKeyId: string;
3746
+ unsignedTransaction: string;
3747
+ type: "TRANSACTION_TYPE_ETHEREUM";
3748
+ };
3749
+ createApiKeysIntent?: {
3750
+ apiKeys: {
3751
+ apiKeyName: string;
3752
+ publicKey: string;
3753
+ }[];
3754
+ userId: string;
3755
+ };
3756
+ deleteApiKeysIntent?: {
3757
+ userId: string;
3758
+ apiKeyIds: string[];
3759
+ };
3760
+ approveActivityIntent?: {
3761
+ fingerprint: string;
3762
+ };
3763
+ rejectActivityIntent?: {
3764
+ fingerprint: string;
3765
+ };
3766
+ createPrivateKeyTagIntent?: {
3767
+ privateKeyTagName: string;
3768
+ privateKeyIds: string[];
3769
+ };
3770
+ deletePrivateKeyTagsIntent?: {
3771
+ privateKeyTagIds: string[];
3772
+ };
3773
+ createPolicyIntentV2?: {
3774
+ policyName: string;
3775
+ selectors: {
3776
+ subject?: string;
3777
+ operator?: "OPERATOR_EQUAL" | "OPERATOR_MORE_THAN" | "OPERATOR_MORE_THAN_OR_EQUAL" | "OPERATOR_LESS_THAN" | "OPERATOR_LESS_THAN_OR_EQUAL" | "OPERATOR_CONTAINS" | "OPERATOR_NOT_EQUAL" | "OPERATOR_IN" | "OPERATOR_NOT_IN" | "OPERATOR_CONTAINS_ONE" | "OPERATOR_CONTAINS_ALL";
3778
+ targets?: string[];
3779
+ }[];
3780
+ effect: "EFFECT_ALLOW" | "EFFECT_DENY";
3781
+ notes?: string;
3782
+ };
3783
+ setPaymentMethodIntent?: {
3784
+ number: string;
3785
+ cvv: string;
3786
+ expiryMonth: string;
3787
+ expiryYear: string;
3788
+ cardHolderEmail: string;
3789
+ cardHolderName: string;
3790
+ };
3791
+ activateBillingTierIntent?: {
3792
+ productId: string;
3793
+ };
3794
+ deletePaymentMethodIntent?: {
3795
+ paymentMethodId: string;
3796
+ };
3797
+ createPolicyIntentV3?: {
3798
+ policyName: string;
3799
+ effect: "EFFECT_ALLOW" | "EFFECT_DENY";
3800
+ condition?: string;
3801
+ consensus?: string;
3802
+ notes?: string;
3803
+ };
3804
+ createApiOnlyUsersIntent?: {
3805
+ apiOnlyUsers: {
3806
+ userName: string;
3807
+ userEmail?: string;
3808
+ userTags: string[];
3809
+ apiKeys: {
3810
+ apiKeyName: string;
3811
+ publicKey: string;
3812
+ }[];
3813
+ }[];
3814
+ };
3815
+ updateRootQuorumIntent?: {
3816
+ threshold: number;
3817
+ userIds: string[];
3818
+ };
3819
+ updateUserTagIntent?: {
3820
+ userTagId: string;
3821
+ newUserTagName?: string;
3822
+ addUserIds: string[];
3823
+ removeUserIds: string[];
3824
+ };
3825
+ updatePrivateKeyTagIntent?: {
3826
+ privateKeyTagId: string;
3827
+ newPrivateKeyTagName?: string;
3828
+ addPrivateKeyIds: string[];
3829
+ removePrivateKeyIds: string[];
3830
+ };
3831
+ createAuthenticatorsIntentV2?: {
3832
+ authenticators: {
3833
+ authenticatorName: string;
3834
+ challenge: string;
3835
+ attestation: {
3836
+ credentialId: string;
3837
+ clientDataJson: string;
3838
+ attestationObject: string;
3839
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3840
+ };
3841
+ }[];
3842
+ userId: string;
3843
+ };
3844
+ acceptInvitationIntentV2?: {
3845
+ invitationId: string;
3846
+ userId: string;
3847
+ authenticator: {
3848
+ authenticatorName: string;
3849
+ challenge: string;
3850
+ attestation: {
3851
+ credentialId: string;
3852
+ clientDataJson: string;
3853
+ attestationObject: string;
3854
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3855
+ };
3856
+ };
3857
+ };
3858
+ createOrganizationIntentV2?: {
3859
+ organizationName: string;
3860
+ rootEmail: string;
3861
+ rootAuthenticator: {
3862
+ authenticatorName: string;
3863
+ challenge: string;
3864
+ attestation: {
3865
+ credentialId: string;
3866
+ clientDataJson: string;
3867
+ attestationObject: string;
3868
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3869
+ };
3870
+ };
3871
+ rootUserId?: string;
3872
+ };
3873
+ createUsersIntentV2?: {
3874
+ users: {
3875
+ userName: string;
3876
+ userEmail?: string;
3877
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
3878
+ apiKeys: {
3879
+ apiKeyName: string;
3880
+ publicKey: string;
3881
+ }[];
3882
+ authenticators: {
3883
+ authenticatorName: string;
3884
+ challenge: string;
3885
+ attestation: {
3886
+ credentialId: string;
3887
+ clientDataJson: string;
3888
+ attestationObject: string;
3889
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3890
+ };
3891
+ }[];
3892
+ userTags: string[];
3893
+ }[];
3894
+ };
3895
+ createSubOrganizationIntent?: {
3896
+ name: string;
3897
+ rootAuthenticator: {
3898
+ authenticatorName: string;
3899
+ challenge: string;
3900
+ attestation: {
3901
+ credentialId: string;
3902
+ clientDataJson: string;
3903
+ attestationObject: string;
3904
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3905
+ };
3906
+ };
3907
+ };
3908
+ createSubOrganizationIntentV2?: {
3909
+ subOrganizationName: string;
3910
+ rootUsers: {
3911
+ userName: string;
3912
+ userEmail?: string;
3913
+ apiKeys: {
3914
+ apiKeyName: string;
3915
+ publicKey: string;
3916
+ }[];
3917
+ authenticators: {
3918
+ authenticatorName: string;
3919
+ challenge: string;
3920
+ attestation: {
3921
+ credentialId: string;
3922
+ clientDataJson: string;
3923
+ attestationObject: string;
3924
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3925
+ };
3926
+ }[];
3927
+ }[];
3928
+ rootQuorumThreshold: number;
3929
+ };
3930
+ };
3931
+ result: {
3932
+ createOrganizationResult?: {
3933
+ organizationId: string;
3934
+ };
3935
+ createAuthenticatorsResult?: {
3936
+ authenticatorIds: string[];
3937
+ };
3938
+ createUsersResult?: {
3939
+ userIds: string[];
3940
+ };
3941
+ createPrivateKeysResult?: {
3942
+ privateKeyIds: string[];
3943
+ };
3944
+ createInvitationsResult?: {
3945
+ invitationIds: string[];
3946
+ };
3947
+ acceptInvitationResult?: {
3948
+ invitationId: string;
3949
+ userId: string;
3950
+ };
3951
+ signRawPayloadResult?: {
3952
+ r: string;
3953
+ s: string;
3954
+ v: string;
3955
+ };
3956
+ createPolicyResult?: {
3957
+ policyId: string;
3958
+ };
3959
+ disablePrivateKeyResult?: {
3960
+ privateKeyId: string;
3961
+ };
3962
+ deleteUsersResult?: {
3963
+ userIds: string[];
3964
+ };
3965
+ deleteAuthenticatorsResult?: {
3966
+ authenticatorIds: string[];
3967
+ };
3968
+ deleteInvitationResult?: {
3969
+ invitationId: string;
3970
+ };
3971
+ deleteOrganizationResult?: {
3972
+ organizationId: string;
3973
+ };
3974
+ deletePolicyResult?: {
3975
+ policyId: string;
3976
+ };
3977
+ createUserTagResult?: {
3978
+ userTagId: string;
3979
+ userIds: string[];
3980
+ };
3981
+ deleteUserTagsResult?: {
3982
+ userTagIds: string[];
3983
+ userIds: string[];
3984
+ };
3985
+ signTransactionResult?: {
3986
+ signedTransaction: string;
3987
+ };
3988
+ deleteApiKeysResult?: {
3989
+ apiKeyIds: string[];
3990
+ };
3991
+ createApiKeysResult?: {
3992
+ apiKeyIds: string[];
3993
+ };
3994
+ createPrivateKeyTagResult?: {
3995
+ privateKeyTagId: string;
3996
+ privateKeyIds: string[];
3997
+ };
3998
+ deletePrivateKeyTagsResult?: {
3999
+ privateKeyTagIds: string[];
4000
+ privateKeyIds: string[];
4001
+ };
4002
+ setPaymentMethodResult?: {
4003
+ lastFour: string;
4004
+ cardHolderName: string;
4005
+ cardHolderEmail: string;
4006
+ };
4007
+ activateBillingTierResult?: {
4008
+ productId: string;
4009
+ };
4010
+ deletePaymentMethodResult?: {
4011
+ paymentMethodId: string;
4012
+ };
4013
+ createApiOnlyUsersResult?: {
4014
+ userIds: string[];
4015
+ };
4016
+ updateRootQuorumResult?: {
4017
+ [key: string]: unknown;
4018
+ };
4019
+ updateUserTagResult?: {
4020
+ userTagId: string;
4021
+ };
4022
+ updatePrivateKeyTagResult?: {
4023
+ privateKeyTagId: string;
4024
+ };
4025
+ createSubOrganizationResult?: {
4026
+ subOrganizationId: string;
4027
+ };
4028
+ };
4029
+ votes: {
4030
+ id: string;
4031
+ userId: string;
4032
+ user: {
4033
+ userId: string;
4034
+ userName: string;
4035
+ userEmail?: string;
4036
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
4037
+ authenticators: {
4038
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
4039
+ attestationType: string;
4040
+ aaguid: string;
4041
+ credentialId: string;
4042
+ model: string;
4043
+ credential: {
4044
+ publicKey: string;
4045
+ type: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256";
4046
+ };
4047
+ authenticatorId: string;
4048
+ authenticatorName: string;
4049
+ createdAt: {
4050
+ seconds: string;
4051
+ nanos: string;
4052
+ };
4053
+ updatedAt: {
4054
+ seconds: string;
4055
+ nanos: string;
4056
+ };
4057
+ }[];
4058
+ apiKeys: {
4059
+ credential: {
4060
+ publicKey: string;
4061
+ type: "CREDENTIAL_TYPE_WEBAUTHN_AUTHENTICATOR" | "CREDENTIAL_TYPE_API_KEY_P256";
4062
+ };
4063
+ apiKeyId: string;
4064
+ apiKeyName: string;
4065
+ createdAt: {
4066
+ seconds: string;
4067
+ nanos: string;
4068
+ };
4069
+ updatedAt: {
4070
+ seconds: string;
4071
+ nanos: string;
4072
+ };
4073
+ }[];
4074
+ userTags: string[];
4075
+ createdAt: {
4076
+ seconds: string;
4077
+ nanos: string;
4078
+ };
4079
+ updatedAt: {
4080
+ seconds: string;
4081
+ nanos: string;
4082
+ };
4083
+ };
4084
+ activityId: string;
4085
+ selection: "VOTE_SELECTION_APPROVED" | "VOTE_SELECTION_REJECTED";
4086
+ message: string;
4087
+ publicKey: string;
4088
+ signature: string;
4089
+ scheme: string;
4090
+ createdAt: {
4091
+ seconds: string;
4092
+ nanos: string;
4093
+ };
4094
+ }[];
4095
+ fingerprint: string;
4096
+ canApprove: boolean;
4097
+ canReject: boolean;
4098
+ createdAt: {
4099
+ seconds: string;
4100
+ nanos: string;
4101
+ };
4102
+ updatedAt: {
4103
+ seconds: string;
4104
+ nanos: string;
4105
+ };
4106
+ };
4107
+ }>;
4108
+ /**
4109
+ * Create Authenticators
4110
+ *
4111
+ * Create Authenticators to authenticate requests to Turnkey
4112
+ */
4113
+ export declare const federatedPostCreateAuthenticators: (input: TPostCreateAuthenticatorsInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
4114
+ /**
4115
+ * `POST /public/v1/submit/create_invitations`
4116
+ */
4117
+ type TPostCreateInvitationsBody = operations["PublicApiService_CreateInvitations"]["parameters"]["body"]["body"];
4118
+ /**
4119
+ * `POST /public/v1/submit/create_invitations`
4120
+ */
4121
+ export type TPostCreateInvitationsResponse = operations["PublicApiService_CreateInvitations"]["responses"]["200"]["schema"];
4122
+ /**
4123
+ * `POST /public/v1/submit/create_invitations`
4124
+ */
4125
+ export type TPostCreateInvitationsInput = {
4126
+ body: TPostCreateInvitationsBody;
4127
+ };
4128
+ /**
4129
+ * Create Invitations
4130
+ *
4131
+ * Create Invitations to join an existing Organization
4132
+ *
4133
+ * `POST /public/v1/submit/create_invitations`
4134
+ */
4135
+ export declare const postCreateInvitations: (input: TPostCreateInvitationsInput) => Promise<{
4136
+ activity: {
4137
+ id: string;
4138
+ organizationId: string;
4139
+ status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
4140
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
2839
4141
  intent: {
2840
4142
  createOrganizationIntent: {
2841
4143
  organizationName: string;
2842
4144
  rootEmail: string;
2843
4145
  rootAuthenticator: {
2844
4146
  authenticatorName: string;
2845
- userId: string;
4147
+ userId: string; /**
4148
+ * Create Invitations
4149
+ *
4150
+ * Create Invitations to join an existing Organization
4151
+ */
2846
4152
  attestation: {
2847
4153
  id: string;
2848
4154
  type: "public-key";
@@ -2869,7 +4175,11 @@ export declare const postCreateApiOnlyUsers: (input: TPostCreateApiOnlyUsersInpu
2869
4175
  createAuthenticatorsIntent?: {
2870
4176
  authenticators: {
2871
4177
  authenticatorName: string;
2872
- userId: string;
4178
+ userId: string; /**
4179
+ * Create Invitations
4180
+ *
4181
+ * Create Invitations to join an existing Organization
4182
+ */
2873
4183
  attestation: {
2874
4184
  id: string;
2875
4185
  type: "public-key";
@@ -2904,7 +4214,11 @@ export declare const postCreateApiOnlyUsers: (input: TPostCreateApiOnlyUsersInpu
2904
4214
  }[];
2905
4215
  authenticators: {
2906
4216
  authenticatorName: string;
2907
- userId: string;
4217
+ userId: string; /**
4218
+ * Create Invitations
4219
+ *
4220
+ * Create Invitations to join an existing Organization
4221
+ */
2908
4222
  attestation: {
2909
4223
  id: string;
2910
4224
  type: "public-key";
@@ -2957,7 +4271,11 @@ export declare const postCreateApiOnlyUsers: (input: TPostCreateApiOnlyUsersInpu
2957
4271
  userId: string;
2958
4272
  authenticator: {
2959
4273
  authenticatorName: string;
2960
- userId: string;
4274
+ userId: string; /**
4275
+ * Create Invitations
4276
+ *
4277
+ * Create Invitations to join an existing Organization
4278
+ */
2961
4279
  attestation: {
2962
4280
  id: string;
2963
4281
  type: "public-key";
@@ -3167,14 +4485,42 @@ export declare const postCreateApiOnlyUsers: (input: TPostCreateApiOnlyUsersInpu
3167
4485
  userTags: string[];
3168
4486
  }[];
3169
4487
  };
4488
+ createSubOrganizationIntent?: {
4489
+ name: string;
4490
+ rootAuthenticator: {
4491
+ authenticatorName: string;
4492
+ challenge: string;
4493
+ attestation: {
4494
+ credentialId: string;
4495
+ clientDataJson: string;
4496
+ attestationObject: string;
4497
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
4498
+ };
4499
+ };
4500
+ };
4501
+ createSubOrganizationIntentV2?: {
4502
+ subOrganizationName: string;
4503
+ rootUsers: {
4504
+ userName: string;
4505
+ userEmail?: string;
4506
+ apiKeys: {
4507
+ apiKeyName: string;
4508
+ publicKey: string;
4509
+ }[];
4510
+ authenticators: {
4511
+ authenticatorName: string;
4512
+ challenge: string;
4513
+ attestation: {
4514
+ credentialId: string;
4515
+ clientDataJson: string;
4516
+ attestationObject: string;
4517
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
4518
+ };
4519
+ }[];
4520
+ }[];
4521
+ rootQuorumThreshold: number;
4522
+ };
3170
4523
  };
3171
- /**
3172
- * Create API-only Users
3173
- *
3174
- * Create API-only Users in an existing Organization
3175
- *
3176
- * `POST /public/v1/submit/create_api_only_users`
3177
- */
3178
4524
  result: {
3179
4525
  createOrganizationResult?: {
3180
4526
  organizationId: string;
@@ -3269,6 +4615,9 @@ export declare const postCreateApiOnlyUsers: (input: TPostCreateApiOnlyUsersInpu
3269
4615
  updatePrivateKeyTagResult?: {
3270
4616
  privateKeyTagId: string;
3271
4617
  };
4618
+ createSubOrganizationResult?: {
4619
+ subOrganizationId: string;
4620
+ };
3272
4621
  };
3273
4622
  votes: {
3274
4623
  id: string;
@@ -3282,7 +4631,6 @@ export declare const postCreateApiOnlyUsers: (input: TPostCreateApiOnlyUsersInpu
3282
4631
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3283
4632
  attestationType: string;
3284
4633
  aaguid: string;
3285
- userId: string;
3286
4634
  credentialId: string;
3287
4635
  model: string;
3288
4636
  credential: {
@@ -3351,39 +4699,49 @@ export declare const postCreateApiOnlyUsers: (input: TPostCreateApiOnlyUsersInpu
3351
4699
  };
3352
4700
  }>;
3353
4701
  /**
3354
- * `POST /public/v1/submit/create_authenticators`
4702
+ * Create Invitations
4703
+ *
4704
+ * Create Invitations to join an existing Organization
3355
4705
  */
3356
- type TPostCreateAuthenticatorsBody = operations["PublicApiService_CreateAuthenticators"]["parameters"]["body"]["body"];
4706
+ export declare const federatedPostCreateInvitations: (input: TPostCreateInvitationsInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
3357
4707
  /**
3358
- * `POST /public/v1/submit/create_authenticators`
4708
+ * `POST /public/v1/submit/create_policy`
3359
4709
  */
3360
- export type TPostCreateAuthenticatorsResponse = operations["PublicApiService_CreateAuthenticators"]["responses"]["200"]["schema"];
4710
+ type TPostCreatePolicyBody = operations["PublicApiService_CreatePolicy"]["parameters"]["body"]["body"];
3361
4711
  /**
3362
- * `POST /public/v1/submit/create_authenticators`
4712
+ * `POST /public/v1/submit/create_policy`
3363
4713
  */
3364
- export type TPostCreateAuthenticatorsInput = {
3365
- body: TPostCreateAuthenticatorsBody;
4714
+ export type TPostCreatePolicyResponse = operations["PublicApiService_CreatePolicy"]["responses"]["200"]["schema"];
4715
+ /**
4716
+ * `POST /public/v1/submit/create_policy`
4717
+ */
4718
+ export type TPostCreatePolicyInput = {
4719
+ body: TPostCreatePolicyBody;
3366
4720
  };
3367
4721
  /**
3368
- * Create Authenticators
4722
+ * Create Policy
3369
4723
  *
3370
- * Create Authenticators to authenticate requests to Turnkey
4724
+ * Create a new Policy
3371
4725
  *
3372
- * `POST /public/v1/submit/create_authenticators`
4726
+ * `POST /public/v1/submit/create_policy`
3373
4727
  */
3374
- export declare const postCreateAuthenticators: (input: TPostCreateAuthenticatorsInput) => Promise<{
4728
+ export declare const postCreatePolicy: (input: TPostCreatePolicyInput) => Promise<{
3375
4729
  activity: {
3376
4730
  id: string;
3377
4731
  organizationId: string;
3378
4732
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
3379
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
4733
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
3380
4734
  intent: {
3381
4735
  createOrganizationIntent: {
3382
4736
  organizationName: string;
3383
4737
  rootEmail: string;
3384
4738
  rootAuthenticator: {
3385
4739
  authenticatorName: string;
3386
- userId: string;
4740
+ userId: string; /**
4741
+ * Create Invitations
4742
+ *
4743
+ * Create Invitations to join an existing Organization
4744
+ */
3387
4745
  attestation: {
3388
4746
  id: string;
3389
4747
  type: "public-key";
@@ -3410,7 +4768,11 @@ export declare const postCreateAuthenticators: (input: TPostCreateAuthenticators
3410
4768
  createAuthenticatorsIntent?: {
3411
4769
  authenticators: {
3412
4770
  authenticatorName: string;
3413
- userId: string;
4771
+ userId: string; /**
4772
+ * Create Invitations
4773
+ *
4774
+ * Create Invitations to join an existing Organization
4775
+ */
3414
4776
  attestation: {
3415
4777
  id: string;
3416
4778
  type: "public-key";
@@ -3445,7 +4807,11 @@ export declare const postCreateAuthenticators: (input: TPostCreateAuthenticators
3445
4807
  }[];
3446
4808
  authenticators: {
3447
4809
  authenticatorName: string;
3448
- userId: string;
4810
+ userId: string; /**
4811
+ * Create Invitations
4812
+ *
4813
+ * Create Invitations to join an existing Organization
4814
+ */
3449
4815
  attestation: {
3450
4816
  id: string;
3451
4817
  type: "public-key";
@@ -3498,7 +4864,11 @@ export declare const postCreateAuthenticators: (input: TPostCreateAuthenticators
3498
4864
  userId: string;
3499
4865
  authenticator: {
3500
4866
  authenticatorName: string;
3501
- userId: string;
4867
+ userId: string; /**
4868
+ * Create Invitations
4869
+ *
4870
+ * Create Invitations to join an existing Organization
4871
+ */
3502
4872
  attestation: {
3503
4873
  id: string;
3504
4874
  type: "public-key";
@@ -3708,14 +5078,42 @@ export declare const postCreateAuthenticators: (input: TPostCreateAuthenticators
3708
5078
  userTags: string[];
3709
5079
  }[];
3710
5080
  };
5081
+ createSubOrganizationIntent?: {
5082
+ name: string;
5083
+ rootAuthenticator: {
5084
+ authenticatorName: string;
5085
+ challenge: string;
5086
+ attestation: {
5087
+ credentialId: string;
5088
+ clientDataJson: string;
5089
+ attestationObject: string;
5090
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
5091
+ };
5092
+ };
5093
+ };
5094
+ createSubOrganizationIntentV2?: {
5095
+ subOrganizationName: string;
5096
+ rootUsers: {
5097
+ userName: string;
5098
+ userEmail?: string;
5099
+ apiKeys: {
5100
+ apiKeyName: string;
5101
+ publicKey: string;
5102
+ }[];
5103
+ authenticators: {
5104
+ authenticatorName: string;
5105
+ challenge: string;
5106
+ attestation: {
5107
+ credentialId: string;
5108
+ clientDataJson: string;
5109
+ attestationObject: string;
5110
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
5111
+ };
5112
+ }[];
5113
+ }[];
5114
+ rootQuorumThreshold: number;
5115
+ };
3711
5116
  };
3712
- /**
3713
- * Create API-only Users
3714
- *
3715
- * Create API-only Users in an existing Organization
3716
- *
3717
- * `POST /public/v1/submit/create_api_only_users`
3718
- */
3719
5117
  result: {
3720
5118
  createOrganizationResult?: {
3721
5119
  organizationId: string;
@@ -3810,6 +5208,9 @@ export declare const postCreateAuthenticators: (input: TPostCreateAuthenticators
3810
5208
  updatePrivateKeyTagResult?: {
3811
5209
  privateKeyTagId: string;
3812
5210
  };
5211
+ createSubOrganizationResult?: {
5212
+ subOrganizationId: string;
5213
+ };
3813
5214
  };
3814
5215
  votes: {
3815
5216
  id: string;
@@ -3823,7 +5224,6 @@ export declare const postCreateAuthenticators: (input: TPostCreateAuthenticators
3823
5224
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
3824
5225
  attestationType: string;
3825
5226
  aaguid: string;
3826
- userId: string;
3827
5227
  credentialId: string;
3828
5228
  model: string;
3829
5229
  credential: {
@@ -3892,39 +5292,49 @@ export declare const postCreateAuthenticators: (input: TPostCreateAuthenticators
3892
5292
  };
3893
5293
  }>;
3894
5294
  /**
3895
- * `POST /public/v1/submit/create_invitations`
5295
+ * Create Policy
5296
+ *
5297
+ * Create a new Policy
3896
5298
  */
3897
- type TPostCreateInvitationsBody = operations["PublicApiService_CreateInvitations"]["parameters"]["body"]["body"];
5299
+ export declare const federatedPostCreatePolicy: (input: TPostCreatePolicyInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
3898
5300
  /**
3899
- * `POST /public/v1/submit/create_invitations`
5301
+ * `POST /public/v1/submit/create_private_keys`
3900
5302
  */
3901
- export type TPostCreateInvitationsResponse = operations["PublicApiService_CreateInvitations"]["responses"]["200"]["schema"];
5303
+ type TPostCreatePrivateKeysBody = operations["PublicApiService_CreatePrivateKeys"]["parameters"]["body"]["body"];
3902
5304
  /**
3903
- * `POST /public/v1/submit/create_invitations`
5305
+ * `POST /public/v1/submit/create_private_keys`
3904
5306
  */
3905
- export type TPostCreateInvitationsInput = {
3906
- body: TPostCreateInvitationsBody;
5307
+ export type TPostCreatePrivateKeysResponse = operations["PublicApiService_CreatePrivateKeys"]["responses"]["200"]["schema"];
5308
+ /**
5309
+ * `POST /public/v1/submit/create_private_keys`
5310
+ */
5311
+ export type TPostCreatePrivateKeysInput = {
5312
+ body: TPostCreatePrivateKeysBody;
3907
5313
  };
3908
5314
  /**
3909
- * Create Invitations
5315
+ * Create Private Keys
3910
5316
  *
3911
- * Create Invitations to join an existing Organization
5317
+ * Create new Private Keys
3912
5318
  *
3913
- * `POST /public/v1/submit/create_invitations`
5319
+ * `POST /public/v1/submit/create_private_keys`
3914
5320
  */
3915
- export declare const postCreateInvitations: (input: TPostCreateInvitationsInput) => Promise<{
5321
+ export declare const postCreatePrivateKeys: (input: TPostCreatePrivateKeysInput) => Promise<{
3916
5322
  activity: {
3917
5323
  id: string;
3918
5324
  organizationId: string;
3919
5325
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
3920
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
5326
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
3921
5327
  intent: {
3922
5328
  createOrganizationIntent: {
3923
5329
  organizationName: string;
3924
5330
  rootEmail: string;
3925
5331
  rootAuthenticator: {
3926
5332
  authenticatorName: string;
3927
- userId: string;
5333
+ userId: string; /**
5334
+ * Create Invitations
5335
+ *
5336
+ * Create Invitations to join an existing Organization
5337
+ */
3928
5338
  attestation: {
3929
5339
  id: string;
3930
5340
  type: "public-key";
@@ -3951,7 +5361,11 @@ export declare const postCreateInvitations: (input: TPostCreateInvitationsInput)
3951
5361
  createAuthenticatorsIntent?: {
3952
5362
  authenticators: {
3953
5363
  authenticatorName: string;
3954
- userId: string;
5364
+ userId: string; /**
5365
+ * Create Invitations
5366
+ *
5367
+ * Create Invitations to join an existing Organization
5368
+ */
3955
5369
  attestation: {
3956
5370
  id: string;
3957
5371
  type: "public-key";
@@ -3986,7 +5400,11 @@ export declare const postCreateInvitations: (input: TPostCreateInvitationsInput)
3986
5400
  }[];
3987
5401
  authenticators: {
3988
5402
  authenticatorName: string;
3989
- userId: string;
5403
+ userId: string; /**
5404
+ * Create Invitations
5405
+ *
5406
+ * Create Invitations to join an existing Organization
5407
+ */
3990
5408
  attestation: {
3991
5409
  id: string;
3992
5410
  type: "public-key";
@@ -4039,7 +5457,11 @@ export declare const postCreateInvitations: (input: TPostCreateInvitationsInput)
4039
5457
  userId: string;
4040
5458
  authenticator: {
4041
5459
  authenticatorName: string;
4042
- userId: string;
5460
+ userId: string; /**
5461
+ * Create Invitations
5462
+ *
5463
+ * Create Invitations to join an existing Organization
5464
+ */
4043
5465
  attestation: {
4044
5466
  id: string;
4045
5467
  type: "public-key";
@@ -4249,14 +5671,42 @@ export declare const postCreateInvitations: (input: TPostCreateInvitationsInput)
4249
5671
  userTags: string[];
4250
5672
  }[];
4251
5673
  };
5674
+ createSubOrganizationIntent?: {
5675
+ name: string;
5676
+ rootAuthenticator: {
5677
+ authenticatorName: string;
5678
+ challenge: string;
5679
+ attestation: {
5680
+ credentialId: string;
5681
+ clientDataJson: string;
5682
+ attestationObject: string;
5683
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
5684
+ };
5685
+ };
5686
+ };
5687
+ createSubOrganizationIntentV2?: {
5688
+ subOrganizationName: string;
5689
+ rootUsers: {
5690
+ userName: string;
5691
+ userEmail?: string;
5692
+ apiKeys: {
5693
+ apiKeyName: string;
5694
+ publicKey: string;
5695
+ }[];
5696
+ authenticators: {
5697
+ authenticatorName: string;
5698
+ challenge: string;
5699
+ attestation: {
5700
+ credentialId: string;
5701
+ clientDataJson: string;
5702
+ attestationObject: string;
5703
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
5704
+ };
5705
+ }[];
5706
+ }[];
5707
+ rootQuorumThreshold: number;
5708
+ };
4252
5709
  };
4253
- /**
4254
- * Create API-only Users
4255
- *
4256
- * Create API-only Users in an existing Organization
4257
- *
4258
- * `POST /public/v1/submit/create_api_only_users`
4259
- */
4260
5710
  result: {
4261
5711
  createOrganizationResult?: {
4262
5712
  organizationId: string;
@@ -4351,6 +5801,9 @@ export declare const postCreateInvitations: (input: TPostCreateInvitationsInput)
4351
5801
  updatePrivateKeyTagResult?: {
4352
5802
  privateKeyTagId: string;
4353
5803
  };
5804
+ createSubOrganizationResult?: {
5805
+ subOrganizationId: string;
5806
+ };
4354
5807
  };
4355
5808
  votes: {
4356
5809
  id: string;
@@ -4364,7 +5817,6 @@ export declare const postCreateInvitations: (input: TPostCreateInvitationsInput)
4364
5817
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
4365
5818
  attestationType: string;
4366
5819
  aaguid: string;
4367
- userId: string;
4368
5820
  credentialId: string;
4369
5821
  model: string;
4370
5822
  credential: {
@@ -4433,39 +5885,49 @@ export declare const postCreateInvitations: (input: TPostCreateInvitationsInput)
4433
5885
  };
4434
5886
  }>;
4435
5887
  /**
4436
- * `POST /public/v1/submit/create_policy`
5888
+ * Create Private Keys
5889
+ *
5890
+ * Create new Private Keys
4437
5891
  */
4438
- type TPostCreatePolicyBody = operations["PublicApiService_CreatePolicy"]["parameters"]["body"]["body"];
5892
+ export declare const federatedPostCreatePrivateKeys: (input: TPostCreatePrivateKeysInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
4439
5893
  /**
4440
- * `POST /public/v1/submit/create_policy`
5894
+ * `POST /public/v1/submit/create_sub_organization`
4441
5895
  */
4442
- export type TPostCreatePolicyResponse = operations["PublicApiService_CreatePolicy"]["responses"]["200"]["schema"];
5896
+ type TPostCreateSubOrganizationBody = operations["PublicApiService_CreateSubOrganization"]["parameters"]["body"]["body"];
4443
5897
  /**
4444
- * `POST /public/v1/submit/create_policy`
5898
+ * `POST /public/v1/submit/create_sub_organization`
4445
5899
  */
4446
- export type TPostCreatePolicyInput = {
4447
- body: TPostCreatePolicyBody;
5900
+ export type TPostCreateSubOrganizationResponse = operations["PublicApiService_CreateSubOrganization"]["responses"]["200"]["schema"];
5901
+ /**
5902
+ * `POST /public/v1/submit/create_sub_organization`
5903
+ */
5904
+ export type TPostCreateSubOrganizationInput = {
5905
+ body: TPostCreateSubOrganizationBody;
4448
5906
  };
4449
5907
  /**
4450
- * Create Policy
5908
+ * Create Sub-Organization
4451
5909
  *
4452
- * Create a new Policy
5910
+ * Create a new Sub-Organization
4453
5911
  *
4454
- * `POST /public/v1/submit/create_policy`
5912
+ * `POST /public/v1/submit/create_sub_organization`
4455
5913
  */
4456
- export declare const postCreatePolicy: (input: TPostCreatePolicyInput) => Promise<{
5914
+ export declare const postCreateSubOrganization: (input: TPostCreateSubOrganizationInput) => Promise<{
4457
5915
  activity: {
4458
5916
  id: string;
4459
5917
  organizationId: string;
4460
5918
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
4461
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
5919
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
4462
5920
  intent: {
4463
5921
  createOrganizationIntent: {
4464
5922
  organizationName: string;
4465
5923
  rootEmail: string;
4466
5924
  rootAuthenticator: {
4467
5925
  authenticatorName: string;
4468
- userId: string;
5926
+ userId: string; /**
5927
+ * Create Invitations
5928
+ *
5929
+ * Create Invitations to join an existing Organization
5930
+ */
4469
5931
  attestation: {
4470
5932
  id: string;
4471
5933
  type: "public-key";
@@ -4492,7 +5954,11 @@ export declare const postCreatePolicy: (input: TPostCreatePolicyInput) => Promis
4492
5954
  createAuthenticatorsIntent?: {
4493
5955
  authenticators: {
4494
5956
  authenticatorName: string;
4495
- userId: string;
5957
+ userId: string; /**
5958
+ * Create Invitations
5959
+ *
5960
+ * Create Invitations to join an existing Organization
5961
+ */
4496
5962
  attestation: {
4497
5963
  id: string;
4498
5964
  type: "public-key";
@@ -4527,7 +5993,11 @@ export declare const postCreatePolicy: (input: TPostCreatePolicyInput) => Promis
4527
5993
  }[];
4528
5994
  authenticators: {
4529
5995
  authenticatorName: string;
4530
- userId: string;
5996
+ userId: string; /**
5997
+ * Create Invitations
5998
+ *
5999
+ * Create Invitations to join an existing Organization
6000
+ */
4531
6001
  attestation: {
4532
6002
  id: string;
4533
6003
  type: "public-key";
@@ -4580,7 +6050,11 @@ export declare const postCreatePolicy: (input: TPostCreatePolicyInput) => Promis
4580
6050
  userId: string;
4581
6051
  authenticator: {
4582
6052
  authenticatorName: string;
4583
- userId: string;
6053
+ userId: string; /**
6054
+ * Create Invitations
6055
+ *
6056
+ * Create Invitations to join an existing Organization
6057
+ */
4584
6058
  attestation: {
4585
6059
  id: string;
4586
6060
  type: "public-key";
@@ -4790,14 +6264,42 @@ export declare const postCreatePolicy: (input: TPostCreatePolicyInput) => Promis
4790
6264
  userTags: string[];
4791
6265
  }[];
4792
6266
  };
6267
+ createSubOrganizationIntent?: {
6268
+ name: string;
6269
+ rootAuthenticator: {
6270
+ authenticatorName: string;
6271
+ challenge: string;
6272
+ attestation: {
6273
+ credentialId: string;
6274
+ clientDataJson: string;
6275
+ attestationObject: string;
6276
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
6277
+ };
6278
+ };
6279
+ };
6280
+ createSubOrganizationIntentV2?: {
6281
+ subOrganizationName: string;
6282
+ rootUsers: {
6283
+ userName: string;
6284
+ userEmail?: string;
6285
+ apiKeys: {
6286
+ apiKeyName: string;
6287
+ publicKey: string;
6288
+ }[];
6289
+ authenticators: {
6290
+ authenticatorName: string;
6291
+ challenge: string;
6292
+ attestation: {
6293
+ credentialId: string;
6294
+ clientDataJson: string;
6295
+ attestationObject: string;
6296
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
6297
+ };
6298
+ }[];
6299
+ }[];
6300
+ rootQuorumThreshold: number;
6301
+ };
4793
6302
  };
4794
- /**
4795
- * Create API-only Users
4796
- *
4797
- * Create API-only Users in an existing Organization
4798
- *
4799
- * `POST /public/v1/submit/create_api_only_users`
4800
- */
4801
6303
  result: {
4802
6304
  createOrganizationResult?: {
4803
6305
  organizationId: string;
@@ -4892,6 +6394,9 @@ export declare const postCreatePolicy: (input: TPostCreatePolicyInput) => Promis
4892
6394
  updatePrivateKeyTagResult?: {
4893
6395
  privateKeyTagId: string;
4894
6396
  };
6397
+ createSubOrganizationResult?: {
6398
+ subOrganizationId: string;
6399
+ };
4895
6400
  };
4896
6401
  votes: {
4897
6402
  id: string;
@@ -4905,7 +6410,6 @@ export declare const postCreatePolicy: (input: TPostCreatePolicyInput) => Promis
4905
6410
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
4906
6411
  attestationType: string;
4907
6412
  aaguid: string;
4908
- userId: string;
4909
6413
  credentialId: string;
4910
6414
  model: string;
4911
6415
  credential: {
@@ -4974,39 +6478,57 @@ export declare const postCreatePolicy: (input: TPostCreatePolicyInput) => Promis
4974
6478
  };
4975
6479
  }>;
4976
6480
  /**
4977
- * `POST /public/v1/submit/create_private_keys`
6481
+ * Create Sub-Organization
6482
+ *
6483
+ * Create a new Sub-Organization
4978
6484
  */
4979
- type TPostCreatePrivateKeysBody = operations["PublicApiService_CreatePrivateKeys"]["parameters"]["body"]["body"];
6485
+ export declare const federatedPostCreateSubOrganization: (input: TPostCreateSubOrganizationInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
4980
6486
  /**
4981
- * `POST /public/v1/submit/create_private_keys`
6487
+ * `POST /public/v1/submit/create_users`
6488
+ *
6489
+ * @deprecated
4982
6490
  */
4983
- export type TPostCreatePrivateKeysResponse = operations["PublicApiService_CreatePrivateKeys"]["responses"]["200"]["schema"];
6491
+ type TPostCreateUsersBody = operations["PublicApiService_CreateUsers"]["parameters"]["body"]["body"];
4984
6492
  /**
4985
- * `POST /public/v1/submit/create_private_keys`
6493
+ * `POST /public/v1/submit/create_users`
6494
+ *
6495
+ * @deprecated
4986
6496
  */
4987
- export type TPostCreatePrivateKeysInput = {
4988
- body: TPostCreatePrivateKeysBody;
6497
+ export type TPostCreateUsersResponse = operations["PublicApiService_CreateUsers"]["responses"]["200"]["schema"];
6498
+ /**
6499
+ * `POST /public/v1/submit/create_users`
6500
+ *
6501
+ * @deprecated
6502
+ */
6503
+ export type TPostCreateUsersInput = {
6504
+ body: TPostCreateUsersBody;
4989
6505
  };
4990
6506
  /**
4991
- * Create Private Keys
6507
+ * Create Users
4992
6508
  *
4993
- * Create new Private Keys
6509
+ * Create Users in an existing Organization
4994
6510
  *
4995
- * `POST /public/v1/submit/create_private_keys`
6511
+ * `POST /public/v1/submit/create_users`
6512
+ *
6513
+ * @deprecated
4996
6514
  */
4997
- export declare const postCreatePrivateKeys: (input: TPostCreatePrivateKeysInput) => Promise<{
6515
+ export declare const postCreateUsers: (input: TPostCreateUsersInput) => Promise<{
4998
6516
  activity: {
4999
6517
  id: string;
5000
6518
  organizationId: string;
5001
6519
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
5002
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
6520
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
5003
6521
  intent: {
5004
6522
  createOrganizationIntent: {
5005
6523
  organizationName: string;
5006
6524
  rootEmail: string;
5007
6525
  rootAuthenticator: {
5008
6526
  authenticatorName: string;
5009
- userId: string;
6527
+ userId: string; /**
6528
+ * Create Invitations
6529
+ *
6530
+ * Create Invitations to join an existing Organization
6531
+ */
5010
6532
  attestation: {
5011
6533
  id: string;
5012
6534
  type: "public-key";
@@ -5033,7 +6555,11 @@ export declare const postCreatePrivateKeys: (input: TPostCreatePrivateKeysInput)
5033
6555
  createAuthenticatorsIntent?: {
5034
6556
  authenticators: {
5035
6557
  authenticatorName: string;
5036
- userId: string;
6558
+ userId: string; /**
6559
+ * Create Invitations
6560
+ *
6561
+ * Create Invitations to join an existing Organization
6562
+ */
5037
6563
  attestation: {
5038
6564
  id: string;
5039
6565
  type: "public-key";
@@ -5068,7 +6594,11 @@ export declare const postCreatePrivateKeys: (input: TPostCreatePrivateKeysInput)
5068
6594
  }[];
5069
6595
  authenticators: {
5070
6596
  authenticatorName: string;
5071
- userId: string;
6597
+ userId: string; /**
6598
+ * Create Invitations
6599
+ *
6600
+ * Create Invitations to join an existing Organization
6601
+ */
5072
6602
  attestation: {
5073
6603
  id: string;
5074
6604
  type: "public-key";
@@ -5121,7 +6651,11 @@ export declare const postCreatePrivateKeys: (input: TPostCreatePrivateKeysInput)
5121
6651
  userId: string;
5122
6652
  authenticator: {
5123
6653
  authenticatorName: string;
5124
- userId: string;
6654
+ userId: string; /**
6655
+ * Create Invitations
6656
+ *
6657
+ * Create Invitations to join an existing Organization
6658
+ */
5125
6659
  attestation: {
5126
6660
  id: string;
5127
6661
  type: "public-key";
@@ -5307,13 +6841,48 @@ export declare const postCreatePrivateKeys: (input: TPostCreatePrivateKeysInput)
5307
6841
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
5308
6842
  };
5309
6843
  };
5310
- rootUserId?: string;
6844
+ rootUserId?: string;
6845
+ };
6846
+ createUsersIntentV2?: {
6847
+ users: {
6848
+ userName: string;
6849
+ userEmail?: string;
6850
+ accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
6851
+ apiKeys: {
6852
+ apiKeyName: string;
6853
+ publicKey: string;
6854
+ }[];
6855
+ authenticators: {
6856
+ authenticatorName: string;
6857
+ challenge: string;
6858
+ attestation: {
6859
+ credentialId: string;
6860
+ clientDataJson: string;
6861
+ attestationObject: string;
6862
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
6863
+ };
6864
+ }[];
6865
+ userTags: string[];
6866
+ }[];
6867
+ };
6868
+ createSubOrganizationIntent?: {
6869
+ name: string;
6870
+ rootAuthenticator: {
6871
+ authenticatorName: string;
6872
+ challenge: string;
6873
+ attestation: {
6874
+ credentialId: string;
6875
+ clientDataJson: string;
6876
+ attestationObject: string;
6877
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
6878
+ };
6879
+ };
5311
6880
  };
5312
- createUsersIntentV2?: {
5313
- users: {
6881
+ createSubOrganizationIntentV2?: {
6882
+ subOrganizationName: string;
6883
+ rootUsers: {
5314
6884
  userName: string;
5315
6885
  userEmail?: string;
5316
- accessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
5317
6886
  apiKeys: {
5318
6887
  apiKeyName: string;
5319
6888
  publicKey: string;
@@ -5328,17 +6897,10 @@ export declare const postCreatePrivateKeys: (input: TPostCreatePrivateKeysInput)
5328
6897
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
5329
6898
  };
5330
6899
  }[];
5331
- userTags: string[];
5332
6900
  }[];
6901
+ rootQuorumThreshold: number;
5333
6902
  };
5334
6903
  };
5335
- /**
5336
- * Create API-only Users
5337
- *
5338
- * Create API-only Users in an existing Organization
5339
- *
5340
- * `POST /public/v1/submit/create_api_only_users`
5341
- */
5342
6904
  result: {
5343
6905
  createOrganizationResult?: {
5344
6906
  organizationId: string;
@@ -5433,6 +6995,9 @@ export declare const postCreatePrivateKeys: (input: TPostCreatePrivateKeysInput)
5433
6995
  updatePrivateKeyTagResult?: {
5434
6996
  privateKeyTagId: string;
5435
6997
  };
6998
+ createSubOrganizationResult?: {
6999
+ subOrganizationId: string;
7000
+ };
5436
7001
  };
5437
7002
  votes: {
5438
7003
  id: string;
@@ -5446,7 +7011,6 @@ export declare const postCreatePrivateKeys: (input: TPostCreatePrivateKeysInput)
5446
7011
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
5447
7012
  attestationType: string;
5448
7013
  aaguid: string;
5449
- userId: string;
5450
7014
  credentialId: string;
5451
7015
  model: string;
5452
7016
  credential: {
@@ -5515,47 +7079,51 @@ export declare const postCreatePrivateKeys: (input: TPostCreatePrivateKeysInput)
5515
7079
  };
5516
7080
  }>;
5517
7081
  /**
5518
- * `POST /public/v1/submit/create_users`
7082
+ * Create Users
7083
+ *
7084
+ * Create Users in an existing Organization
5519
7085
  *
5520
7086
  * @deprecated
5521
7087
  */
5522
- type TPostCreateUsersBody = operations["PublicApiService_CreateUsers"]["parameters"]["body"]["body"];
7088
+ export declare const federatedPostCreateUsers: (input: TPostCreateUsersInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
5523
7089
  /**
5524
- * `POST /public/v1/submit/create_users`
5525
- *
5526
- * @deprecated
7090
+ * `POST /public/v1/submit/delete_api_keys`
5527
7091
  */
5528
- export type TPostCreateUsersResponse = operations["PublicApiService_CreateUsers"]["responses"]["200"]["schema"];
7092
+ type TPostDeleteApiKeysBody = operations["PublicApiService_DeleteApiKeys"]["parameters"]["body"]["body"];
5529
7093
  /**
5530
- * `POST /public/v1/submit/create_users`
5531
- *
5532
- * @deprecated
7094
+ * `POST /public/v1/submit/delete_api_keys`
5533
7095
  */
5534
- export type TPostCreateUsersInput = {
5535
- body: TPostCreateUsersBody;
7096
+ export type TPostDeleteApiKeysResponse = operations["PublicApiService_DeleteApiKeys"]["responses"]["200"]["schema"];
7097
+ /**
7098
+ * `POST /public/v1/submit/delete_api_keys`
7099
+ */
7100
+ export type TPostDeleteApiKeysInput = {
7101
+ body: TPostDeleteApiKeysBody;
5536
7102
  };
5537
7103
  /**
5538
- * Create Users
5539
- *
5540
- * Create Users in an existing Organization
7104
+ * Delete API Keys
5541
7105
  *
5542
- * `POST /public/v1/submit/create_users`
7106
+ * Remove api keys from a User
5543
7107
  *
5544
- * @deprecated
7108
+ * `POST /public/v1/submit/delete_api_keys`
5545
7109
  */
5546
- export declare const postCreateUsers: (input: TPostCreateUsersInput) => Promise<{
7110
+ export declare const postDeleteApiKeys: (input: TPostDeleteApiKeysInput) => Promise<{
5547
7111
  activity: {
5548
7112
  id: string;
5549
7113
  organizationId: string;
5550
7114
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
5551
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
7115
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
5552
7116
  intent: {
5553
7117
  createOrganizationIntent: {
5554
7118
  organizationName: string;
5555
7119
  rootEmail: string;
5556
7120
  rootAuthenticator: {
5557
7121
  authenticatorName: string;
5558
- userId: string;
7122
+ userId: string; /**
7123
+ * Create Invitations
7124
+ *
7125
+ * Create Invitations to join an existing Organization
7126
+ */
5559
7127
  attestation: {
5560
7128
  id: string;
5561
7129
  type: "public-key";
@@ -5582,7 +7150,11 @@ export declare const postCreateUsers: (input: TPostCreateUsersInput) => Promise<
5582
7150
  createAuthenticatorsIntent?: {
5583
7151
  authenticators: {
5584
7152
  authenticatorName: string;
5585
- userId: string;
7153
+ userId: string; /**
7154
+ * Create Invitations
7155
+ *
7156
+ * Create Invitations to join an existing Organization
7157
+ */
5586
7158
  attestation: {
5587
7159
  id: string;
5588
7160
  type: "public-key";
@@ -5617,7 +7189,11 @@ export declare const postCreateUsers: (input: TPostCreateUsersInput) => Promise<
5617
7189
  }[];
5618
7190
  authenticators: {
5619
7191
  authenticatorName: string;
5620
- userId: string;
7192
+ userId: string; /**
7193
+ * Create Invitations
7194
+ *
7195
+ * Create Invitations to join an existing Organization
7196
+ */
5621
7197
  attestation: {
5622
7198
  id: string;
5623
7199
  type: "public-key";
@@ -5670,7 +7246,11 @@ export declare const postCreateUsers: (input: TPostCreateUsersInput) => Promise<
5670
7246
  userId: string;
5671
7247
  authenticator: {
5672
7248
  authenticatorName: string;
5673
- userId: string;
7249
+ userId: string; /**
7250
+ * Create Invitations
7251
+ *
7252
+ * Create Invitations to join an existing Organization
7253
+ */
5674
7254
  attestation: {
5675
7255
  id: string;
5676
7256
  type: "public-key";
@@ -5880,14 +7460,42 @@ export declare const postCreateUsers: (input: TPostCreateUsersInput) => Promise<
5880
7460
  userTags: string[];
5881
7461
  }[];
5882
7462
  };
7463
+ createSubOrganizationIntent?: {
7464
+ name: string;
7465
+ rootAuthenticator: {
7466
+ authenticatorName: string;
7467
+ challenge: string;
7468
+ attestation: {
7469
+ credentialId: string;
7470
+ clientDataJson: string;
7471
+ attestationObject: string;
7472
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
7473
+ };
7474
+ };
7475
+ };
7476
+ createSubOrganizationIntentV2?: {
7477
+ subOrganizationName: string;
7478
+ rootUsers: {
7479
+ userName: string;
7480
+ userEmail?: string;
7481
+ apiKeys: {
7482
+ apiKeyName: string;
7483
+ publicKey: string;
7484
+ }[];
7485
+ authenticators: {
7486
+ authenticatorName: string;
7487
+ challenge: string;
7488
+ attestation: {
7489
+ credentialId: string;
7490
+ clientDataJson: string;
7491
+ attestationObject: string;
7492
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
7493
+ };
7494
+ }[];
7495
+ }[];
7496
+ rootQuorumThreshold: number;
7497
+ };
5883
7498
  };
5884
- /**
5885
- * Create API-only Users
5886
- *
5887
- * Create API-only Users in an existing Organization
5888
- *
5889
- * `POST /public/v1/submit/create_api_only_users`
5890
- */
5891
7499
  result: {
5892
7500
  createOrganizationResult?: {
5893
7501
  organizationId: string;
@@ -5982,6 +7590,9 @@ export declare const postCreateUsers: (input: TPostCreateUsersInput) => Promise<
5982
7590
  updatePrivateKeyTagResult?: {
5983
7591
  privateKeyTagId: string;
5984
7592
  };
7593
+ createSubOrganizationResult?: {
7594
+ subOrganizationId: string;
7595
+ };
5985
7596
  };
5986
7597
  votes: {
5987
7598
  id: string;
@@ -5995,7 +7606,6 @@ export declare const postCreateUsers: (input: TPostCreateUsersInput) => Promise<
5995
7606
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
5996
7607
  attestationType: string;
5997
7608
  aaguid: string;
5998
- userId: string;
5999
7609
  credentialId: string;
6000
7610
  model: string;
6001
7611
  credential: {
@@ -6064,39 +7674,49 @@ export declare const postCreateUsers: (input: TPostCreateUsersInput) => Promise<
6064
7674
  };
6065
7675
  }>;
6066
7676
  /**
6067
- * `POST /public/v1/submit/delete_api_keys`
7677
+ * Delete API Keys
7678
+ *
7679
+ * Remove api keys from a User
6068
7680
  */
6069
- type TPostDeleteApiKeysBody = operations["PublicApiService_DeleteApiKeys"]["parameters"]["body"]["body"];
7681
+ export declare const federatedPostDeleteApiKeys: (input: TPostDeleteApiKeysInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
6070
7682
  /**
6071
- * `POST /public/v1/submit/delete_api_keys`
7683
+ * `POST /public/v1/submit/delete_invitations`
6072
7684
  */
6073
- export type TPostDeleteApiKeysResponse = operations["PublicApiService_DeleteApiKeys"]["responses"]["200"]["schema"];
7685
+ type TPostDeleteInvitationBody = operations["PublicApiService_DeleteInvitation"]["parameters"]["body"]["body"];
6074
7686
  /**
6075
- * `POST /public/v1/submit/delete_api_keys`
7687
+ * `POST /public/v1/submit/delete_invitations`
6076
7688
  */
6077
- export type TPostDeleteApiKeysInput = {
6078
- body: TPostDeleteApiKeysBody;
7689
+ export type TPostDeleteInvitationResponse = operations["PublicApiService_DeleteInvitation"]["responses"]["200"]["schema"];
7690
+ /**
7691
+ * `POST /public/v1/submit/delete_invitations`
7692
+ */
7693
+ export type TPostDeleteInvitationInput = {
7694
+ body: TPostDeleteInvitationBody;
6079
7695
  };
6080
7696
  /**
6081
- * Delete API Keys
7697
+ * Delete Invitation
6082
7698
  *
6083
- * Remove api keys from a User
7699
+ * Delete an existing Invitation
6084
7700
  *
6085
- * `POST /public/v1/submit/delete_api_keys`
7701
+ * `POST /public/v1/submit/delete_invitations`
6086
7702
  */
6087
- export declare const postDeleteApiKeys: (input: TPostDeleteApiKeysInput) => Promise<{
7703
+ export declare const postDeleteInvitation: (input: TPostDeleteInvitationInput) => Promise<{
6088
7704
  activity: {
6089
7705
  id: string;
6090
7706
  organizationId: string;
6091
7707
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
6092
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
7708
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
6093
7709
  intent: {
6094
7710
  createOrganizationIntent: {
6095
7711
  organizationName: string;
6096
7712
  rootEmail: string;
6097
7713
  rootAuthenticator: {
6098
7714
  authenticatorName: string;
6099
- userId: string;
7715
+ userId: string; /**
7716
+ * Create Invitations
7717
+ *
7718
+ * Create Invitations to join an existing Organization
7719
+ */
6100
7720
  attestation: {
6101
7721
  id: string;
6102
7722
  type: "public-key";
@@ -6123,7 +7743,11 @@ export declare const postDeleteApiKeys: (input: TPostDeleteApiKeysInput) => Prom
6123
7743
  createAuthenticatorsIntent?: {
6124
7744
  authenticators: {
6125
7745
  authenticatorName: string;
6126
- userId: string;
7746
+ userId: string; /**
7747
+ * Create Invitations
7748
+ *
7749
+ * Create Invitations to join an existing Organization
7750
+ */
6127
7751
  attestation: {
6128
7752
  id: string;
6129
7753
  type: "public-key";
@@ -6158,7 +7782,11 @@ export declare const postDeleteApiKeys: (input: TPostDeleteApiKeysInput) => Prom
6158
7782
  }[];
6159
7783
  authenticators: {
6160
7784
  authenticatorName: string;
6161
- userId: string;
7785
+ userId: string; /**
7786
+ * Create Invitations
7787
+ *
7788
+ * Create Invitations to join an existing Organization
7789
+ */
6162
7790
  attestation: {
6163
7791
  id: string;
6164
7792
  type: "public-key";
@@ -6211,7 +7839,11 @@ export declare const postDeleteApiKeys: (input: TPostDeleteApiKeysInput) => Prom
6211
7839
  userId: string;
6212
7840
  authenticator: {
6213
7841
  authenticatorName: string;
6214
- userId: string;
7842
+ userId: string; /**
7843
+ * Create Invitations
7844
+ *
7845
+ * Create Invitations to join an existing Organization
7846
+ */
6215
7847
  attestation: {
6216
7848
  id: string;
6217
7849
  type: "public-key";
@@ -6421,14 +8053,42 @@ export declare const postDeleteApiKeys: (input: TPostDeleteApiKeysInput) => Prom
6421
8053
  userTags: string[];
6422
8054
  }[];
6423
8055
  };
8056
+ createSubOrganizationIntent?: {
8057
+ name: string;
8058
+ rootAuthenticator: {
8059
+ authenticatorName: string;
8060
+ challenge: string;
8061
+ attestation: {
8062
+ credentialId: string;
8063
+ clientDataJson: string;
8064
+ attestationObject: string;
8065
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
8066
+ };
8067
+ };
8068
+ };
8069
+ createSubOrganizationIntentV2?: {
8070
+ subOrganizationName: string;
8071
+ rootUsers: {
8072
+ userName: string;
8073
+ userEmail?: string;
8074
+ apiKeys: {
8075
+ apiKeyName: string;
8076
+ publicKey: string;
8077
+ }[];
8078
+ authenticators: {
8079
+ authenticatorName: string;
8080
+ challenge: string;
8081
+ attestation: {
8082
+ credentialId: string;
8083
+ clientDataJson: string;
8084
+ attestationObject: string;
8085
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
8086
+ };
8087
+ }[];
8088
+ }[];
8089
+ rootQuorumThreshold: number;
8090
+ };
6424
8091
  };
6425
- /**
6426
- * Create API-only Users
6427
- *
6428
- * Create API-only Users in an existing Organization
6429
- *
6430
- * `POST /public/v1/submit/create_api_only_users`
6431
- */
6432
8092
  result: {
6433
8093
  createOrganizationResult?: {
6434
8094
  organizationId: string;
@@ -6523,6 +8183,9 @@ export declare const postDeleteApiKeys: (input: TPostDeleteApiKeysInput) => Prom
6523
8183
  updatePrivateKeyTagResult?: {
6524
8184
  privateKeyTagId: string;
6525
8185
  };
8186
+ createSubOrganizationResult?: {
8187
+ subOrganizationId: string;
8188
+ };
6526
8189
  };
6527
8190
  votes: {
6528
8191
  id: string;
@@ -6536,7 +8199,6 @@ export declare const postDeleteApiKeys: (input: TPostDeleteApiKeysInput) => Prom
6536
8199
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
6537
8200
  attestationType: string;
6538
8201
  aaguid: string;
6539
- userId: string;
6540
8202
  credentialId: string;
6541
8203
  model: string;
6542
8204
  credential: {
@@ -6605,39 +8267,49 @@ export declare const postDeleteApiKeys: (input: TPostDeleteApiKeysInput) => Prom
6605
8267
  };
6606
8268
  }>;
6607
8269
  /**
6608
- * `POST /public/v1/submit/delete_invitations`
8270
+ * Delete Invitation
8271
+ *
8272
+ * Delete an existing Invitation
6609
8273
  */
6610
- type TPostDeleteInvitationBody = operations["PublicApiService_DeleteInvitation"]["parameters"]["body"]["body"];
8274
+ export declare const federatedPostDeleteInvitation: (input: TPostDeleteInvitationInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
6611
8275
  /**
6612
- * `POST /public/v1/submit/delete_invitations`
8276
+ * `POST /public/v1/submit/delete_policy`
6613
8277
  */
6614
- export type TPostDeleteInvitationResponse = operations["PublicApiService_DeleteInvitation"]["responses"]["200"]["schema"];
8278
+ type TPostDeletePolicyBody = operations["PublicApiService_DeletePolicy"]["parameters"]["body"]["body"];
6615
8279
  /**
6616
- * `POST /public/v1/submit/delete_invitations`
8280
+ * `POST /public/v1/submit/delete_policy`
6617
8281
  */
6618
- export type TPostDeleteInvitationInput = {
6619
- body: TPostDeleteInvitationBody;
8282
+ export type TPostDeletePolicyResponse = operations["PublicApiService_DeletePolicy"]["responses"]["200"]["schema"];
8283
+ /**
8284
+ * `POST /public/v1/submit/delete_policy`
8285
+ */
8286
+ export type TPostDeletePolicyInput = {
8287
+ body: TPostDeletePolicyBody;
6620
8288
  };
6621
8289
  /**
6622
- * Delete Invitation
8290
+ * Delete Policy
6623
8291
  *
6624
- * Delete an existing Invitation
8292
+ * Delete an existing Policy
6625
8293
  *
6626
- * `POST /public/v1/submit/delete_invitations`
8294
+ * `POST /public/v1/submit/delete_policy`
6627
8295
  */
6628
- export declare const postDeleteInvitation: (input: TPostDeleteInvitationInput) => Promise<{
8296
+ export declare const postDeletePolicy: (input: TPostDeletePolicyInput) => Promise<{
6629
8297
  activity: {
6630
8298
  id: string;
6631
8299
  organizationId: string;
6632
8300
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
6633
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
8301
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
6634
8302
  intent: {
6635
8303
  createOrganizationIntent: {
6636
8304
  organizationName: string;
6637
8305
  rootEmail: string;
6638
8306
  rootAuthenticator: {
6639
8307
  authenticatorName: string;
6640
- userId: string;
8308
+ userId: string; /**
8309
+ * Create Invitations
8310
+ *
8311
+ * Create Invitations to join an existing Organization
8312
+ */
6641
8313
  attestation: {
6642
8314
  id: string;
6643
8315
  type: "public-key";
@@ -6664,7 +8336,11 @@ export declare const postDeleteInvitation: (input: TPostDeleteInvitationInput) =
6664
8336
  createAuthenticatorsIntent?: {
6665
8337
  authenticators: {
6666
8338
  authenticatorName: string;
6667
- userId: string;
8339
+ userId: string; /**
8340
+ * Create Invitations
8341
+ *
8342
+ * Create Invitations to join an existing Organization
8343
+ */
6668
8344
  attestation: {
6669
8345
  id: string;
6670
8346
  type: "public-key";
@@ -6699,7 +8375,11 @@ export declare const postDeleteInvitation: (input: TPostDeleteInvitationInput) =
6699
8375
  }[];
6700
8376
  authenticators: {
6701
8377
  authenticatorName: string;
6702
- userId: string;
8378
+ userId: string; /**
8379
+ * Create Invitations
8380
+ *
8381
+ * Create Invitations to join an existing Organization
8382
+ */
6703
8383
  attestation: {
6704
8384
  id: string;
6705
8385
  type: "public-key";
@@ -6752,7 +8432,11 @@ export declare const postDeleteInvitation: (input: TPostDeleteInvitationInput) =
6752
8432
  userId: string;
6753
8433
  authenticator: {
6754
8434
  authenticatorName: string;
6755
- userId: string;
8435
+ userId: string; /**
8436
+ * Create Invitations
8437
+ *
8438
+ * Create Invitations to join an existing Organization
8439
+ */
6756
8440
  attestation: {
6757
8441
  id: string;
6758
8442
  type: "public-key";
@@ -6962,14 +8646,42 @@ export declare const postDeleteInvitation: (input: TPostDeleteInvitationInput) =
6962
8646
  userTags: string[];
6963
8647
  }[];
6964
8648
  };
8649
+ createSubOrganizationIntent?: {
8650
+ name: string;
8651
+ rootAuthenticator: {
8652
+ authenticatorName: string;
8653
+ challenge: string;
8654
+ attestation: {
8655
+ credentialId: string;
8656
+ clientDataJson: string;
8657
+ attestationObject: string;
8658
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
8659
+ };
8660
+ };
8661
+ };
8662
+ createSubOrganizationIntentV2?: {
8663
+ subOrganizationName: string;
8664
+ rootUsers: {
8665
+ userName: string;
8666
+ userEmail?: string;
8667
+ apiKeys: {
8668
+ apiKeyName: string;
8669
+ publicKey: string;
8670
+ }[];
8671
+ authenticators: {
8672
+ authenticatorName: string;
8673
+ challenge: string;
8674
+ attestation: {
8675
+ credentialId: string;
8676
+ clientDataJson: string;
8677
+ attestationObject: string;
8678
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
8679
+ };
8680
+ }[];
8681
+ }[];
8682
+ rootQuorumThreshold: number;
8683
+ };
6965
8684
  };
6966
- /**
6967
- * Create API-only Users
6968
- *
6969
- * Create API-only Users in an existing Organization
6970
- *
6971
- * `POST /public/v1/submit/create_api_only_users`
6972
- */
6973
8685
  result: {
6974
8686
  createOrganizationResult?: {
6975
8687
  organizationId: string;
@@ -7064,6 +8776,9 @@ export declare const postDeleteInvitation: (input: TPostDeleteInvitationInput) =
7064
8776
  updatePrivateKeyTagResult?: {
7065
8777
  privateKeyTagId: string;
7066
8778
  };
8779
+ createSubOrganizationResult?: {
8780
+ subOrganizationId: string;
8781
+ };
7067
8782
  };
7068
8783
  votes: {
7069
8784
  id: string;
@@ -7077,7 +8792,6 @@ export declare const postDeleteInvitation: (input: TPostDeleteInvitationInput) =
7077
8792
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
7078
8793
  attestationType: string;
7079
8794
  aaguid: string;
7080
- userId: string;
7081
8795
  credentialId: string;
7082
8796
  model: string;
7083
8797
  credential: {
@@ -7146,39 +8860,49 @@ export declare const postDeleteInvitation: (input: TPostDeleteInvitationInput) =
7146
8860
  };
7147
8861
  }>;
7148
8862
  /**
7149
- * `POST /public/v1/submit/delete_policy`
8863
+ * Delete Policy
8864
+ *
8865
+ * Delete an existing Policy
7150
8866
  */
7151
- type TPostDeletePolicyBody = operations["PublicApiService_DeletePolicy"]["parameters"]["body"]["body"];
8867
+ export declare const federatedPostDeletePolicy: (input: TPostDeletePolicyInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
7152
8868
  /**
7153
- * `POST /public/v1/submit/delete_policy`
8869
+ * `POST /public/v1/submit/reject_activity`
7154
8870
  */
7155
- export type TPostDeletePolicyResponse = operations["PublicApiService_DeletePolicy"]["responses"]["200"]["schema"];
8871
+ type TPostRejectActivityBody = operations["PublicApiService_RejectActivity"]["parameters"]["body"]["body"];
7156
8872
  /**
7157
- * `POST /public/v1/submit/delete_policy`
8873
+ * `POST /public/v1/submit/reject_activity`
7158
8874
  */
7159
- export type TPostDeletePolicyInput = {
7160
- body: TPostDeletePolicyBody;
8875
+ export type TPostRejectActivityResponse = operations["PublicApiService_RejectActivity"]["responses"]["200"]["schema"];
8876
+ /**
8877
+ * `POST /public/v1/submit/reject_activity`
8878
+ */
8879
+ export type TPostRejectActivityInput = {
8880
+ body: TPostRejectActivityBody;
7161
8881
  };
7162
8882
  /**
7163
- * Delete Policy
8883
+ * Reject Activity
7164
8884
  *
7165
- * Delete an existing Policy
8885
+ * Reject an Activity
7166
8886
  *
7167
- * `POST /public/v1/submit/delete_policy`
8887
+ * `POST /public/v1/submit/reject_activity`
7168
8888
  */
7169
- export declare const postDeletePolicy: (input: TPostDeletePolicyInput) => Promise<{
8889
+ export declare const postRejectActivity: (input: TPostRejectActivityInput) => Promise<{
7170
8890
  activity: {
7171
8891
  id: string;
7172
8892
  organizationId: string;
7173
8893
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
7174
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
8894
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
7175
8895
  intent: {
7176
8896
  createOrganizationIntent: {
7177
8897
  organizationName: string;
7178
8898
  rootEmail: string;
7179
8899
  rootAuthenticator: {
7180
8900
  authenticatorName: string;
7181
- userId: string;
8901
+ userId: string; /**
8902
+ * Create Invitations
8903
+ *
8904
+ * Create Invitations to join an existing Organization
8905
+ */
7182
8906
  attestation: {
7183
8907
  id: string;
7184
8908
  type: "public-key";
@@ -7205,7 +8929,11 @@ export declare const postDeletePolicy: (input: TPostDeletePolicyInput) => Promis
7205
8929
  createAuthenticatorsIntent?: {
7206
8930
  authenticators: {
7207
8931
  authenticatorName: string;
7208
- userId: string;
8932
+ userId: string; /**
8933
+ * Create Invitations
8934
+ *
8935
+ * Create Invitations to join an existing Organization
8936
+ */
7209
8937
  attestation: {
7210
8938
  id: string;
7211
8939
  type: "public-key";
@@ -7240,7 +8968,11 @@ export declare const postDeletePolicy: (input: TPostDeletePolicyInput) => Promis
7240
8968
  }[];
7241
8969
  authenticators: {
7242
8970
  authenticatorName: string;
7243
- userId: string;
8971
+ userId: string; /**
8972
+ * Create Invitations
8973
+ *
8974
+ * Create Invitations to join an existing Organization
8975
+ */
7244
8976
  attestation: {
7245
8977
  id: string;
7246
8978
  type: "public-key";
@@ -7293,7 +9025,11 @@ export declare const postDeletePolicy: (input: TPostDeletePolicyInput) => Promis
7293
9025
  userId: string;
7294
9026
  authenticator: {
7295
9027
  authenticatorName: string;
7296
- userId: string;
9028
+ userId: string; /**
9029
+ * Create Invitations
9030
+ *
9031
+ * Create Invitations to join an existing Organization
9032
+ */
7297
9033
  attestation: {
7298
9034
  id: string;
7299
9035
  type: "public-key";
@@ -7503,14 +9239,42 @@ export declare const postDeletePolicy: (input: TPostDeletePolicyInput) => Promis
7503
9239
  userTags: string[];
7504
9240
  }[];
7505
9241
  };
9242
+ createSubOrganizationIntent?: {
9243
+ name: string;
9244
+ rootAuthenticator: {
9245
+ authenticatorName: string;
9246
+ challenge: string;
9247
+ attestation: {
9248
+ credentialId: string;
9249
+ clientDataJson: string;
9250
+ attestationObject: string;
9251
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
9252
+ };
9253
+ };
9254
+ };
9255
+ createSubOrganizationIntentV2?: {
9256
+ subOrganizationName: string;
9257
+ rootUsers: {
9258
+ userName: string;
9259
+ userEmail?: string;
9260
+ apiKeys: {
9261
+ apiKeyName: string;
9262
+ publicKey: string;
9263
+ }[];
9264
+ authenticators: {
9265
+ authenticatorName: string;
9266
+ challenge: string;
9267
+ attestation: {
9268
+ credentialId: string;
9269
+ clientDataJson: string;
9270
+ attestationObject: string;
9271
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
9272
+ };
9273
+ }[];
9274
+ }[];
9275
+ rootQuorumThreshold: number;
9276
+ };
7506
9277
  };
7507
- /**
7508
- * Create API-only Users
7509
- *
7510
- * Create API-only Users in an existing Organization
7511
- *
7512
- * `POST /public/v1/submit/create_api_only_users`
7513
- */
7514
9278
  result: {
7515
9279
  createOrganizationResult?: {
7516
9280
  organizationId: string;
@@ -7605,6 +9369,9 @@ export declare const postDeletePolicy: (input: TPostDeletePolicyInput) => Promis
7605
9369
  updatePrivateKeyTagResult?: {
7606
9370
  privateKeyTagId: string;
7607
9371
  };
9372
+ createSubOrganizationResult?: {
9373
+ subOrganizationId: string;
9374
+ };
7608
9375
  };
7609
9376
  votes: {
7610
9377
  id: string;
@@ -7618,7 +9385,6 @@ export declare const postDeletePolicy: (input: TPostDeletePolicyInput) => Promis
7618
9385
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
7619
9386
  attestationType: string;
7620
9387
  aaguid: string;
7621
- userId: string;
7622
9388
  credentialId: string;
7623
9389
  model: string;
7624
9390
  credential: {
@@ -7687,39 +9453,49 @@ export declare const postDeletePolicy: (input: TPostDeletePolicyInput) => Promis
7687
9453
  };
7688
9454
  }>;
7689
9455
  /**
7690
- * `POST /public/v1/submit/reject_activity`
9456
+ * Reject Activity
9457
+ *
9458
+ * Reject an Activity
7691
9459
  */
7692
- type TPostRejectActivityBody = operations["PublicApiService_RejectActivity"]["parameters"]["body"]["body"];
9460
+ export declare const federatedPostRejectActivity: (input: TPostRejectActivityInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
7693
9461
  /**
7694
- * `POST /public/v1/submit/reject_activity`
9462
+ * `POST /public/v1/submit/sign_raw_payload`
7695
9463
  */
7696
- export type TPostRejectActivityResponse = operations["PublicApiService_RejectActivity"]["responses"]["200"]["schema"];
9464
+ type TPostSignRawPayloadBody = operations["PublicApiService_SignRawPayload"]["parameters"]["body"]["body"];
7697
9465
  /**
7698
- * `POST /public/v1/submit/reject_activity`
9466
+ * `POST /public/v1/submit/sign_raw_payload`
9467
+ */
9468
+ export type TPostSignRawPayloadResponse = operations["PublicApiService_SignRawPayload"]["responses"]["200"]["schema"];
9469
+ /**
9470
+ * `POST /public/v1/submit/sign_raw_payload`
7699
9471
  */
7700
- export type TPostRejectActivityInput = {
7701
- body: TPostRejectActivityBody;
9472
+ export type TPostSignRawPayloadInput = {
9473
+ body: TPostSignRawPayloadBody;
7702
9474
  };
7703
9475
  /**
7704
- * Reject Activity
9476
+ * Sign Raw Payload
7705
9477
  *
7706
- * Reject an Activity
9478
+ * Sign a raw payload with a Private Key
7707
9479
  *
7708
- * `POST /public/v1/submit/reject_activity`
9480
+ * `POST /public/v1/submit/sign_raw_payload`
7709
9481
  */
7710
- export declare const postRejectActivity: (input: TPostRejectActivityInput) => Promise<{
9482
+ export declare const postSignRawPayload: (input: TPostSignRawPayloadInput) => Promise<{
7711
9483
  activity: {
7712
9484
  id: string;
7713
9485
  organizationId: string;
7714
9486
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
7715
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
9487
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
7716
9488
  intent: {
7717
9489
  createOrganizationIntent: {
7718
9490
  organizationName: string;
7719
9491
  rootEmail: string;
7720
9492
  rootAuthenticator: {
7721
9493
  authenticatorName: string;
7722
- userId: string;
9494
+ userId: string; /**
9495
+ * Create Invitations
9496
+ *
9497
+ * Create Invitations to join an existing Organization
9498
+ */
7723
9499
  attestation: {
7724
9500
  id: string;
7725
9501
  type: "public-key";
@@ -7746,7 +9522,11 @@ export declare const postRejectActivity: (input: TPostRejectActivityInput) => Pr
7746
9522
  createAuthenticatorsIntent?: {
7747
9523
  authenticators: {
7748
9524
  authenticatorName: string;
7749
- userId: string;
9525
+ userId: string; /**
9526
+ * Create Invitations
9527
+ *
9528
+ * Create Invitations to join an existing Organization
9529
+ */
7750
9530
  attestation: {
7751
9531
  id: string;
7752
9532
  type: "public-key";
@@ -7781,7 +9561,11 @@ export declare const postRejectActivity: (input: TPostRejectActivityInput) => Pr
7781
9561
  }[];
7782
9562
  authenticators: {
7783
9563
  authenticatorName: string;
7784
- userId: string;
9564
+ userId: string; /**
9565
+ * Create Invitations
9566
+ *
9567
+ * Create Invitations to join an existing Organization
9568
+ */
7785
9569
  attestation: {
7786
9570
  id: string;
7787
9571
  type: "public-key";
@@ -7834,7 +9618,11 @@ export declare const postRejectActivity: (input: TPostRejectActivityInput) => Pr
7834
9618
  userId: string;
7835
9619
  authenticator: {
7836
9620
  authenticatorName: string;
7837
- userId: string;
9621
+ userId: string; /**
9622
+ * Create Invitations
9623
+ *
9624
+ * Create Invitations to join an existing Organization
9625
+ */
7838
9626
  attestation: {
7839
9627
  id: string;
7840
9628
  type: "public-key";
@@ -8044,14 +9832,42 @@ export declare const postRejectActivity: (input: TPostRejectActivityInput) => Pr
8044
9832
  userTags: string[];
8045
9833
  }[];
8046
9834
  };
9835
+ createSubOrganizationIntent?: {
9836
+ name: string;
9837
+ rootAuthenticator: {
9838
+ authenticatorName: string;
9839
+ challenge: string;
9840
+ attestation: {
9841
+ credentialId: string;
9842
+ clientDataJson: string;
9843
+ attestationObject: string;
9844
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
9845
+ };
9846
+ };
9847
+ };
9848
+ createSubOrganizationIntentV2?: {
9849
+ subOrganizationName: string;
9850
+ rootUsers: {
9851
+ userName: string;
9852
+ userEmail?: string;
9853
+ apiKeys: {
9854
+ apiKeyName: string;
9855
+ publicKey: string;
9856
+ }[];
9857
+ authenticators: {
9858
+ authenticatorName: string;
9859
+ challenge: string;
9860
+ attestation: {
9861
+ credentialId: string;
9862
+ clientDataJson: string;
9863
+ attestationObject: string;
9864
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
9865
+ };
9866
+ }[];
9867
+ }[];
9868
+ rootQuorumThreshold: number;
9869
+ };
8047
9870
  };
8048
- /**
8049
- * Create API-only Users
8050
- *
8051
- * Create API-only Users in an existing Organization
8052
- *
8053
- * `POST /public/v1/submit/create_api_only_users`
8054
- */
8055
9871
  result: {
8056
9872
  createOrganizationResult?: {
8057
9873
  organizationId: string;
@@ -8146,6 +9962,9 @@ export declare const postRejectActivity: (input: TPostRejectActivityInput) => Pr
8146
9962
  updatePrivateKeyTagResult?: {
8147
9963
  privateKeyTagId: string;
8148
9964
  };
9965
+ createSubOrganizationResult?: {
9966
+ subOrganizationId: string;
9967
+ };
8149
9968
  };
8150
9969
  votes: {
8151
9970
  id: string;
@@ -8159,7 +9978,6 @@ export declare const postRejectActivity: (input: TPostRejectActivityInput) => Pr
8159
9978
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
8160
9979
  attestationType: string;
8161
9980
  aaguid: string;
8162
- userId: string;
8163
9981
  credentialId: string;
8164
9982
  model: string;
8165
9983
  credential: {
@@ -8228,39 +10046,49 @@ export declare const postRejectActivity: (input: TPostRejectActivityInput) => Pr
8228
10046
  };
8229
10047
  }>;
8230
10048
  /**
8231
- * `POST /public/v1/submit/sign_raw_payload`
10049
+ * Sign Raw Payload
10050
+ *
10051
+ * Sign a raw payload with a Private Key
8232
10052
  */
8233
- type TPostSignRawPayloadBody = operations["PublicApiService_SignRawPayload"]["parameters"]["body"]["body"];
10053
+ export declare const federatedPostSignRawPayload: (input: TPostSignRawPayloadInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
8234
10054
  /**
8235
- * `POST /public/v1/submit/sign_raw_payload`
10055
+ * `POST /public/v1/submit/sign_transaction`
8236
10056
  */
8237
- export type TPostSignRawPayloadResponse = operations["PublicApiService_SignRawPayload"]["responses"]["200"]["schema"];
10057
+ type TPostSignTransactionBody = operations["PublicApiService_SignTransaction"]["parameters"]["body"]["body"];
8238
10058
  /**
8239
- * `POST /public/v1/submit/sign_raw_payload`
10059
+ * `POST /public/v1/submit/sign_transaction`
8240
10060
  */
8241
- export type TPostSignRawPayloadInput = {
8242
- body: TPostSignRawPayloadBody;
10061
+ export type TPostSignTransactionResponse = operations["PublicApiService_SignTransaction"]["responses"]["200"]["schema"];
10062
+ /**
10063
+ * `POST /public/v1/submit/sign_transaction`
10064
+ */
10065
+ export type TPostSignTransactionInput = {
10066
+ body: TPostSignTransactionBody;
8243
10067
  };
8244
10068
  /**
8245
- * Sign Raw Payload
10069
+ * Sign Transaction
8246
10070
  *
8247
- * Sign a raw payload with a Private Key
10071
+ * Sign a transaction with a Private Key
8248
10072
  *
8249
- * `POST /public/v1/submit/sign_raw_payload`
10073
+ * `POST /public/v1/submit/sign_transaction`
8250
10074
  */
8251
- export declare const postSignRawPayload: (input: TPostSignRawPayloadInput) => Promise<{
10075
+ export declare const postSignTransaction: (input: TPostSignTransactionInput) => Promise<{
8252
10076
  activity: {
8253
10077
  id: string;
8254
10078
  organizationId: string;
8255
10079
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
8256
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
10080
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
8257
10081
  intent: {
8258
10082
  createOrganizationIntent: {
8259
10083
  organizationName: string;
8260
10084
  rootEmail: string;
8261
10085
  rootAuthenticator: {
8262
10086
  authenticatorName: string;
8263
- userId: string;
10087
+ userId: string; /**
10088
+ * Create Invitations
10089
+ *
10090
+ * Create Invitations to join an existing Organization
10091
+ */
8264
10092
  attestation: {
8265
10093
  id: string;
8266
10094
  type: "public-key";
@@ -8287,7 +10115,11 @@ export declare const postSignRawPayload: (input: TPostSignRawPayloadInput) => Pr
8287
10115
  createAuthenticatorsIntent?: {
8288
10116
  authenticators: {
8289
10117
  authenticatorName: string;
8290
- userId: string;
10118
+ userId: string; /**
10119
+ * Create Invitations
10120
+ *
10121
+ * Create Invitations to join an existing Organization
10122
+ */
8291
10123
  attestation: {
8292
10124
  id: string;
8293
10125
  type: "public-key";
@@ -8322,7 +10154,11 @@ export declare const postSignRawPayload: (input: TPostSignRawPayloadInput) => Pr
8322
10154
  }[];
8323
10155
  authenticators: {
8324
10156
  authenticatorName: string;
8325
- userId: string;
10157
+ userId: string; /**
10158
+ * Create Invitations
10159
+ *
10160
+ * Create Invitations to join an existing Organization
10161
+ */
8326
10162
  attestation: {
8327
10163
  id: string;
8328
10164
  type: "public-key";
@@ -8375,7 +10211,11 @@ export declare const postSignRawPayload: (input: TPostSignRawPayloadInput) => Pr
8375
10211
  userId: string;
8376
10212
  authenticator: {
8377
10213
  authenticatorName: string;
8378
- userId: string;
10214
+ userId: string; /**
10215
+ * Create Invitations
10216
+ *
10217
+ * Create Invitations to join an existing Organization
10218
+ */
8379
10219
  attestation: {
8380
10220
  id: string;
8381
10221
  type: "public-key";
@@ -8585,14 +10425,42 @@ export declare const postSignRawPayload: (input: TPostSignRawPayloadInput) => Pr
8585
10425
  userTags: string[];
8586
10426
  }[];
8587
10427
  };
10428
+ createSubOrganizationIntent?: {
10429
+ name: string;
10430
+ rootAuthenticator: {
10431
+ authenticatorName: string;
10432
+ challenge: string;
10433
+ attestation: {
10434
+ credentialId: string;
10435
+ clientDataJson: string;
10436
+ attestationObject: string;
10437
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
10438
+ };
10439
+ };
10440
+ };
10441
+ createSubOrganizationIntentV2?: {
10442
+ subOrganizationName: string;
10443
+ rootUsers: {
10444
+ userName: string;
10445
+ userEmail?: string;
10446
+ apiKeys: {
10447
+ apiKeyName: string;
10448
+ publicKey: string;
10449
+ }[];
10450
+ authenticators: {
10451
+ authenticatorName: string;
10452
+ challenge: string;
10453
+ attestation: {
10454
+ credentialId: string;
10455
+ clientDataJson: string;
10456
+ attestationObject: string;
10457
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
10458
+ };
10459
+ }[];
10460
+ }[];
10461
+ rootQuorumThreshold: number;
10462
+ };
8588
10463
  };
8589
- /**
8590
- * Create API-only Users
8591
- *
8592
- * Create API-only Users in an existing Organization
8593
- *
8594
- * `POST /public/v1/submit/create_api_only_users`
8595
- */
8596
10464
  result: {
8597
10465
  createOrganizationResult?: {
8598
10466
  organizationId: string;
@@ -8687,6 +10555,9 @@ export declare const postSignRawPayload: (input: TPostSignRawPayloadInput) => Pr
8687
10555
  updatePrivateKeyTagResult?: {
8688
10556
  privateKeyTagId: string;
8689
10557
  };
10558
+ createSubOrganizationResult?: {
10559
+ subOrganizationId: string;
10560
+ };
8690
10561
  };
8691
10562
  votes: {
8692
10563
  id: string;
@@ -8700,7 +10571,6 @@ export declare const postSignRawPayload: (input: TPostSignRawPayloadInput) => Pr
8700
10571
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
8701
10572
  attestationType: string;
8702
10573
  aaguid: string;
8703
- userId: string;
8704
10574
  credentialId: string;
8705
10575
  model: string;
8706
10576
  credential: {
@@ -8769,39 +10639,49 @@ export declare const postSignRawPayload: (input: TPostSignRawPayloadInput) => Pr
8769
10639
  };
8770
10640
  }>;
8771
10641
  /**
8772
- * `POST /public/v1/submit/sign_transaction`
10642
+ * Sign Transaction
10643
+ *
10644
+ * Sign a transaction with a Private Key
8773
10645
  */
8774
- type TPostSignTransactionBody = operations["PublicApiService_SignTransaction"]["parameters"]["body"]["body"];
10646
+ export declare const federatedPostSignTransaction: (input: TPostSignTransactionInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
8775
10647
  /**
8776
- * `POST /public/v1/submit/sign_transaction`
10648
+ * `POST /public/v1/submit/update_private_key_tag`
8777
10649
  */
8778
- export type TPostSignTransactionResponse = operations["PublicApiService_SignTransaction"]["responses"]["200"]["schema"];
10650
+ type TPostUpdatePrivateKeyTagBody = operations["PublicApiService_UpdatePrivateKeyTag"]["parameters"]["body"]["body"];
8779
10651
  /**
8780
- * `POST /public/v1/submit/sign_transaction`
10652
+ * `POST /public/v1/submit/update_private_key_tag`
8781
10653
  */
8782
- export type TPostSignTransactionInput = {
8783
- body: TPostSignTransactionBody;
10654
+ export type TPostUpdatePrivateKeyTagResponse = operations["PublicApiService_UpdatePrivateKeyTag"]["responses"]["200"]["schema"];
10655
+ /**
10656
+ * `POST /public/v1/submit/update_private_key_tag`
10657
+ */
10658
+ export type TPostUpdatePrivateKeyTagInput = {
10659
+ body: TPostUpdatePrivateKeyTagBody;
8784
10660
  };
8785
10661
  /**
8786
- * Sign Transaction
10662
+ * Update Private Key Tag
8787
10663
  *
8788
- * Sign a transaction with a Private Key
10664
+ * Update human-readable name or associated private keys. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.
8789
10665
  *
8790
- * `POST /public/v1/submit/sign_transaction`
10666
+ * `POST /public/v1/submit/update_private_key_tag`
8791
10667
  */
8792
- export declare const postSignTransaction: (input: TPostSignTransactionInput) => Promise<{
10668
+ export declare const postUpdatePrivateKeyTag: (input: TPostUpdatePrivateKeyTagInput) => Promise<{
8793
10669
  activity: {
8794
10670
  id: string;
8795
10671
  organizationId: string;
8796
10672
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
8797
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
10673
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
8798
10674
  intent: {
8799
10675
  createOrganizationIntent: {
8800
10676
  organizationName: string;
8801
10677
  rootEmail: string;
8802
10678
  rootAuthenticator: {
8803
10679
  authenticatorName: string;
8804
- userId: string;
10680
+ userId: string; /**
10681
+ * Create Invitations
10682
+ *
10683
+ * Create Invitations to join an existing Organization
10684
+ */
8805
10685
  attestation: {
8806
10686
  id: string;
8807
10687
  type: "public-key";
@@ -8828,7 +10708,11 @@ export declare const postSignTransaction: (input: TPostSignTransactionInput) =>
8828
10708
  createAuthenticatorsIntent?: {
8829
10709
  authenticators: {
8830
10710
  authenticatorName: string;
8831
- userId: string;
10711
+ userId: string; /**
10712
+ * Create Invitations
10713
+ *
10714
+ * Create Invitations to join an existing Organization
10715
+ */
8832
10716
  attestation: {
8833
10717
  id: string;
8834
10718
  type: "public-key";
@@ -8863,7 +10747,11 @@ export declare const postSignTransaction: (input: TPostSignTransactionInput) =>
8863
10747
  }[];
8864
10748
  authenticators: {
8865
10749
  authenticatorName: string;
8866
- userId: string;
10750
+ userId: string; /**
10751
+ * Create Invitations
10752
+ *
10753
+ * Create Invitations to join an existing Organization
10754
+ */
8867
10755
  attestation: {
8868
10756
  id: string;
8869
10757
  type: "public-key";
@@ -8916,7 +10804,11 @@ export declare const postSignTransaction: (input: TPostSignTransactionInput) =>
8916
10804
  userId: string;
8917
10805
  authenticator: {
8918
10806
  authenticatorName: string;
8919
- userId: string;
10807
+ userId: string; /**
10808
+ * Create Invitations
10809
+ *
10810
+ * Create Invitations to join an existing Organization
10811
+ */
8920
10812
  attestation: {
8921
10813
  id: string;
8922
10814
  type: "public-key";
@@ -9126,14 +11018,42 @@ export declare const postSignTransaction: (input: TPostSignTransactionInput) =>
9126
11018
  userTags: string[];
9127
11019
  }[];
9128
11020
  };
11021
+ createSubOrganizationIntent?: {
11022
+ name: string;
11023
+ rootAuthenticator: {
11024
+ authenticatorName: string;
11025
+ challenge: string;
11026
+ attestation: {
11027
+ credentialId: string;
11028
+ clientDataJson: string;
11029
+ attestationObject: string;
11030
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
11031
+ };
11032
+ };
11033
+ };
11034
+ createSubOrganizationIntentV2?: {
11035
+ subOrganizationName: string;
11036
+ rootUsers: {
11037
+ userName: string;
11038
+ userEmail?: string;
11039
+ apiKeys: {
11040
+ apiKeyName: string;
11041
+ publicKey: string;
11042
+ }[];
11043
+ authenticators: {
11044
+ authenticatorName: string;
11045
+ challenge: string;
11046
+ attestation: {
11047
+ credentialId: string;
11048
+ clientDataJson: string;
11049
+ attestationObject: string;
11050
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
11051
+ };
11052
+ }[];
11053
+ }[];
11054
+ rootQuorumThreshold: number;
11055
+ };
9129
11056
  };
9130
- /**
9131
- * Create API-only Users
9132
- *
9133
- * Create API-only Users in an existing Organization
9134
- *
9135
- * `POST /public/v1/submit/create_api_only_users`
9136
- */
9137
11057
  result: {
9138
11058
  createOrganizationResult?: {
9139
11059
  organizationId: string;
@@ -9228,6 +11148,9 @@ export declare const postSignTransaction: (input: TPostSignTransactionInput) =>
9228
11148
  updatePrivateKeyTagResult?: {
9229
11149
  privateKeyTagId: string;
9230
11150
  };
11151
+ createSubOrganizationResult?: {
11152
+ subOrganizationId: string;
11153
+ };
9231
11154
  };
9232
11155
  votes: {
9233
11156
  id: string;
@@ -9241,7 +11164,6 @@ export declare const postSignTransaction: (input: TPostSignTransactionInput) =>
9241
11164
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
9242
11165
  attestationType: string;
9243
11166
  aaguid: string;
9244
- userId: string;
9245
11167
  credentialId: string;
9246
11168
  model: string;
9247
11169
  credential: {
@@ -9310,39 +11232,49 @@ export declare const postSignTransaction: (input: TPostSignTransactionInput) =>
9310
11232
  };
9311
11233
  }>;
9312
11234
  /**
9313
- * `POST /public/v1/submit/update_private_key_tag`
11235
+ * Update Private Key Tag
11236
+ *
11237
+ * Update human-readable name or associated private keys. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.
9314
11238
  */
9315
- type TPostUpdatePrivateKeyTagBody = operations["PublicApiService_UpdatePrivateKeyTag"]["parameters"]["body"]["body"];
11239
+ export declare const federatedPostUpdatePrivateKeyTag: (input: TPostUpdatePrivateKeyTagInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
9316
11240
  /**
9317
- * `POST /public/v1/submit/update_private_key_tag`
11241
+ * `POST /public/v1/submit/update_root_quorum`
9318
11242
  */
9319
- export type TPostUpdatePrivateKeyTagResponse = operations["PublicApiService_UpdatePrivateKeyTag"]["responses"]["200"]["schema"];
11243
+ type TPostUpdateRootQuorumBody = operations["PublicApiService_UpdateRootQuorum"]["parameters"]["body"]["body"];
9320
11244
  /**
9321
- * `POST /public/v1/submit/update_private_key_tag`
11245
+ * `POST /public/v1/submit/update_root_quorum`
9322
11246
  */
9323
- export type TPostUpdatePrivateKeyTagInput = {
9324
- body: TPostUpdatePrivateKeyTagBody;
11247
+ export type TPostUpdateRootQuorumResponse = operations["PublicApiService_UpdateRootQuorum"]["responses"]["200"]["schema"];
11248
+ /**
11249
+ * `POST /public/v1/submit/update_root_quorum`
11250
+ */
11251
+ export type TPostUpdateRootQuorumInput = {
11252
+ body: TPostUpdateRootQuorumBody;
9325
11253
  };
9326
11254
  /**
9327
- * Update Private Key Tag
11255
+ * Set the root quorum
9328
11256
  *
9329
- * Update human-readable name or associated private keys. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.
11257
+ * Set the threshold and members of the root quorum. This must be approved by the current root quorum.
9330
11258
  *
9331
- * `POST /public/v1/submit/update_private_key_tag`
11259
+ * `POST /public/v1/submit/update_root_quorum`
9332
11260
  */
9333
- export declare const postUpdatePrivateKeyTag: (input: TPostUpdatePrivateKeyTagInput) => Promise<{
11261
+ export declare const postUpdateRootQuorum: (input: TPostUpdateRootQuorumInput) => Promise<{
9334
11262
  activity: {
9335
11263
  id: string;
9336
11264
  organizationId: string;
9337
11265
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
9338
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
11266
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
9339
11267
  intent: {
9340
11268
  createOrganizationIntent: {
9341
11269
  organizationName: string;
9342
11270
  rootEmail: string;
9343
11271
  rootAuthenticator: {
9344
11272
  authenticatorName: string;
9345
- userId: string;
11273
+ userId: string; /**
11274
+ * Create Invitations
11275
+ *
11276
+ * Create Invitations to join an existing Organization
11277
+ */
9346
11278
  attestation: {
9347
11279
  id: string;
9348
11280
  type: "public-key";
@@ -9369,7 +11301,11 @@ export declare const postUpdatePrivateKeyTag: (input: TPostUpdatePrivateKeyTagIn
9369
11301
  createAuthenticatorsIntent?: {
9370
11302
  authenticators: {
9371
11303
  authenticatorName: string;
9372
- userId: string;
11304
+ userId: string; /**
11305
+ * Create Invitations
11306
+ *
11307
+ * Create Invitations to join an existing Organization
11308
+ */
9373
11309
  attestation: {
9374
11310
  id: string;
9375
11311
  type: "public-key";
@@ -9404,7 +11340,11 @@ export declare const postUpdatePrivateKeyTag: (input: TPostUpdatePrivateKeyTagIn
9404
11340
  }[];
9405
11341
  authenticators: {
9406
11342
  authenticatorName: string;
9407
- userId: string;
11343
+ userId: string; /**
11344
+ * Create Invitations
11345
+ *
11346
+ * Create Invitations to join an existing Organization
11347
+ */
9408
11348
  attestation: {
9409
11349
  id: string;
9410
11350
  type: "public-key";
@@ -9457,7 +11397,11 @@ export declare const postUpdatePrivateKeyTag: (input: TPostUpdatePrivateKeyTagIn
9457
11397
  userId: string;
9458
11398
  authenticator: {
9459
11399
  authenticatorName: string;
9460
- userId: string;
11400
+ userId: string; /**
11401
+ * Create Invitations
11402
+ *
11403
+ * Create Invitations to join an existing Organization
11404
+ */
9461
11405
  attestation: {
9462
11406
  id: string;
9463
11407
  type: "public-key";
@@ -9667,14 +11611,42 @@ export declare const postUpdatePrivateKeyTag: (input: TPostUpdatePrivateKeyTagIn
9667
11611
  userTags: string[];
9668
11612
  }[];
9669
11613
  };
11614
+ createSubOrganizationIntent?: {
11615
+ name: string;
11616
+ rootAuthenticator: {
11617
+ authenticatorName: string;
11618
+ challenge: string;
11619
+ attestation: {
11620
+ credentialId: string;
11621
+ clientDataJson: string;
11622
+ attestationObject: string;
11623
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
11624
+ };
11625
+ };
11626
+ };
11627
+ createSubOrganizationIntentV2?: {
11628
+ subOrganizationName: string;
11629
+ rootUsers: {
11630
+ userName: string;
11631
+ userEmail?: string;
11632
+ apiKeys: {
11633
+ apiKeyName: string;
11634
+ publicKey: string;
11635
+ }[];
11636
+ authenticators: {
11637
+ authenticatorName: string;
11638
+ challenge: string;
11639
+ attestation: {
11640
+ credentialId: string;
11641
+ clientDataJson: string;
11642
+ attestationObject: string;
11643
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
11644
+ };
11645
+ }[];
11646
+ }[];
11647
+ rootQuorumThreshold: number;
11648
+ };
9670
11649
  };
9671
- /**
9672
- * Create API-only Users
9673
- *
9674
- * Create API-only Users in an existing Organization
9675
- *
9676
- * `POST /public/v1/submit/create_api_only_users`
9677
- */
9678
11650
  result: {
9679
11651
  createOrganizationResult?: {
9680
11652
  organizationId: string;
@@ -9769,6 +11741,9 @@ export declare const postUpdatePrivateKeyTag: (input: TPostUpdatePrivateKeyTagIn
9769
11741
  updatePrivateKeyTagResult?: {
9770
11742
  privateKeyTagId: string;
9771
11743
  };
11744
+ createSubOrganizationResult?: {
11745
+ subOrganizationId: string;
11746
+ };
9772
11747
  };
9773
11748
  votes: {
9774
11749
  id: string;
@@ -9782,7 +11757,6 @@ export declare const postUpdatePrivateKeyTag: (input: TPostUpdatePrivateKeyTagIn
9782
11757
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
9783
11758
  attestationType: string;
9784
11759
  aaguid: string;
9785
- userId: string;
9786
11760
  credentialId: string;
9787
11761
  model: string;
9788
11762
  credential: {
@@ -9850,6 +11824,12 @@ export declare const postUpdatePrivateKeyTag: (input: TPostUpdatePrivateKeyTagIn
9850
11824
  };
9851
11825
  };
9852
11826
  }>;
11827
+ /**
11828
+ * Set the root quorum
11829
+ *
11830
+ * Set the threshold and members of the root quorum. This must be approved by the current root quorum.
11831
+ */
11832
+ export declare const federatedPostUpdateRootQuorum: (input: TPostUpdateRootQuorumInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
9853
11833
  /**
9854
11834
  * `POST /public/v1/submit/update_user_tag`
9855
11835
  */
@@ -9876,14 +11856,18 @@ export declare const postUpdateUserTag: (input: TPostUpdateUserTagInput) => Prom
9876
11856
  id: string;
9877
11857
  organizationId: string;
9878
11858
  status: "ACTIVITY_STATUS_CREATED" | "ACTIVITY_STATUS_PENDING" | "ACTIVITY_STATUS_COMPLETED" | "ACTIVITY_STATUS_FAILED" | "ACTIVITY_STATUS_CONSENSUS_NEEDED" | "ACTIVITY_STATUS_REJECTED";
9879
- type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2";
11859
+ type: "ACTIVITY_TYPE_CREATE_API_KEYS" | "ACTIVITY_TYPE_CREATE_USERS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS" | "ACTIVITY_TYPE_SIGN_RAW_PAYLOAD" | "ACTIVITY_TYPE_CREATE_INVITATIONS" | "ACTIVITY_TYPE_ACCEPT_INVITATION" | "ACTIVITY_TYPE_CREATE_POLICY" | "ACTIVITY_TYPE_DISABLE_PRIVATE_KEY" | "ACTIVITY_TYPE_DELETE_USERS" | "ACTIVITY_TYPE_DELETE_API_KEYS" | "ACTIVITY_TYPE_DELETE_INVITATION" | "ACTIVITY_TYPE_DELETE_ORGANIZATION" | "ACTIVITY_TYPE_DELETE_POLICY" | "ACTIVITY_TYPE_CREATE_USER_TAG" | "ACTIVITY_TYPE_DELETE_USER_TAGS" | "ACTIVITY_TYPE_CREATE_ORGANIZATION" | "ACTIVITY_TYPE_SIGN_TRANSACTION" | "ACTIVITY_TYPE_APPROVE_ACTIVITY" | "ACTIVITY_TYPE_REJECT_ACTIVITY" | "ACTIVITY_TYPE_DELETE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_DELETE_PRIVATE_KEY_TAGS" | "ACTIVITY_TYPE_SET_PAYMENT_METHOD" | "ACTIVITY_TYPE_ACTIVATE_BILLING_TIER" | "ACTIVITY_TYPE_DELETE_PAYMENT_METHOD" | "ACTIVITY_TYPE_CREATE_POLICY_V2" | "ACTIVITY_TYPE_CREATE_POLICY_V3" | "ACTIVITY_TYPE_CREATE_API_ONLY_USERS" | "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM" | "ACTIVITY_TYPE_UPDATE_USER_TAG" | "ACTIVITY_TYPE_UPDATE_PRIVATE_KEY_TAG" | "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2" | "ACTIVITY_TYPE_CREATE_ORGANIZATION_V2" | "ACTIVITY_TYPE_CREATE_USERS_V2" | "ACTIVITY_TYPE_ACCEPT_INVITATION_V2" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION" | "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
9880
11860
  intent: {
9881
11861
  createOrganizationIntent: {
9882
11862
  organizationName: string;
9883
11863
  rootEmail: string;
9884
11864
  rootAuthenticator: {
9885
11865
  authenticatorName: string;
9886
- userId: string;
11866
+ userId: string; /**
11867
+ * Create Invitations
11868
+ *
11869
+ * Create Invitations to join an existing Organization
11870
+ */
9887
11871
  attestation: {
9888
11872
  id: string;
9889
11873
  type: "public-key";
@@ -9910,7 +11894,11 @@ export declare const postUpdateUserTag: (input: TPostUpdateUserTagInput) => Prom
9910
11894
  createAuthenticatorsIntent?: {
9911
11895
  authenticators: {
9912
11896
  authenticatorName: string;
9913
- userId: string;
11897
+ userId: string; /**
11898
+ * Create Invitations
11899
+ *
11900
+ * Create Invitations to join an existing Organization
11901
+ */
9914
11902
  attestation: {
9915
11903
  id: string;
9916
11904
  type: "public-key";
@@ -9945,7 +11933,11 @@ export declare const postUpdateUserTag: (input: TPostUpdateUserTagInput) => Prom
9945
11933
  }[];
9946
11934
  authenticators: {
9947
11935
  authenticatorName: string;
9948
- userId: string;
11936
+ userId: string; /**
11937
+ * Create Invitations
11938
+ *
11939
+ * Create Invitations to join an existing Organization
11940
+ */
9949
11941
  attestation: {
9950
11942
  id: string;
9951
11943
  type: "public-key";
@@ -9998,7 +11990,11 @@ export declare const postUpdateUserTag: (input: TPostUpdateUserTagInput) => Prom
9998
11990
  userId: string;
9999
11991
  authenticator: {
10000
11992
  authenticatorName: string;
10001
- userId: string;
11993
+ userId: string; /**
11994
+ * Create Invitations
11995
+ *
11996
+ * Create Invitations to join an existing Organization
11997
+ */
10002
11998
  attestation: {
10003
11999
  id: string;
10004
12000
  type: "public-key";
@@ -10208,14 +12204,42 @@ export declare const postUpdateUserTag: (input: TPostUpdateUserTagInput) => Prom
10208
12204
  userTags: string[];
10209
12205
  }[];
10210
12206
  };
12207
+ createSubOrganizationIntent?: {
12208
+ name: string;
12209
+ rootAuthenticator: {
12210
+ authenticatorName: string;
12211
+ challenge: string;
12212
+ attestation: {
12213
+ credentialId: string;
12214
+ clientDataJson: string;
12215
+ attestationObject: string;
12216
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
12217
+ };
12218
+ };
12219
+ };
12220
+ createSubOrganizationIntentV2?: {
12221
+ subOrganizationName: string;
12222
+ rootUsers: {
12223
+ userName: string;
12224
+ userEmail?: string;
12225
+ apiKeys: {
12226
+ apiKeyName: string;
12227
+ publicKey: string;
12228
+ }[];
12229
+ authenticators: {
12230
+ authenticatorName: string;
12231
+ challenge: string;
12232
+ attestation: {
12233
+ credentialId: string;
12234
+ clientDataJson: string;
12235
+ attestationObject: string;
12236
+ transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
12237
+ };
12238
+ }[];
12239
+ }[];
12240
+ rootQuorumThreshold: number;
12241
+ };
10211
12242
  };
10212
- /**
10213
- * Create API-only Users
10214
- *
10215
- * Create API-only Users in an existing Organization
10216
- *
10217
- * `POST /public/v1/submit/create_api_only_users`
10218
- */
10219
12243
  result: {
10220
12244
  createOrganizationResult?: {
10221
12245
  organizationId: string;
@@ -10310,6 +12334,9 @@ export declare const postUpdateUserTag: (input: TPostUpdateUserTagInput) => Prom
10310
12334
  updatePrivateKeyTagResult?: {
10311
12335
  privateKeyTagId: string;
10312
12336
  };
12337
+ createSubOrganizationResult?: {
12338
+ subOrganizationId: string;
12339
+ };
10313
12340
  };
10314
12341
  votes: {
10315
12342
  id: string;
@@ -10323,7 +12350,6 @@ export declare const postUpdateUserTag: (input: TPostUpdateUserTagInput) => Prom
10323
12350
  transports: ("AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID")[];
10324
12351
  attestationType: string;
10325
12352
  aaguid: string;
10326
- userId: string;
10327
12353
  credentialId: string;
10328
12354
  model: string;
10329
12355
  credential: {
@@ -10391,6 +12417,37 @@ export declare const postUpdateUserTag: (input: TPostUpdateUserTagInput) => Prom
10391
12417
  };
10392
12418
  };
10393
12419
  }>;
12420
+ /**
12421
+ * Update User Tag
12422
+ *
12423
+ * Update human-readable name or associated users. Note that this activity is atomic: all of the updates will succeed at once, or all of them will fail.
12424
+ */
12425
+ export declare const federatedPostUpdateUserTag: (input: TPostUpdateUserTagInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
12426
+ /**
12427
+ * `POST /tkhq/api/v1/noop-codegen-anchor`
12428
+ */
12429
+ export type TPostNOOPCodegenAnchorResponse = operations["PublicApiService_NOOPCodegenAnchor"]["responses"]["200"]["schema"];
12430
+ /**
12431
+ * This route does nothing and does not need an implementation, but please don't remove it.
12432
+ It's used at compile time for generating extra OpenAPI/TypeScript types
12433
+ that are not directly referenced in requests.
12434
+ *
12435
+ * `POST /tkhq/api/v1/noop-codegen-anchor`
12436
+ */
12437
+ export declare const postNOOPCodegenAnchor: () => Promise<{
12438
+ stamp: {
12439
+ credentialId: string;
12440
+ clientDataJson: string;
12441
+ authenticatorData: string;
12442
+ signature: string;
12443
+ };
12444
+ }>;
12445
+ /**
12446
+ * This route does nothing and does not need an implementation, but please don't remove it.
12447
+ It's used at compile time for generating extra OpenAPI/TypeScript types
12448
+ that are not directly referenced in requests.
12449
+ */
12450
+ export declare const federatedPostNOOPCodegenAnchor: () => Promise<import("../../../../..").FederatedRequest>;
10394
12451
  /**
10395
12452
  * `POST /tkhq/public/v1/query/get_private_key`
10396
12453
  *
@@ -10437,5 +12494,13 @@ export declare const postGetPrivateKeyBackwardsCompat: (input: TPostGetPrivateKe
10437
12494
  };
10438
12495
  };
10439
12496
  }>;
12497
+ /**
12498
+ * Get Private Key
12499
+ *
12500
+ * Get details about a Private Key
12501
+ *
12502
+ * @deprecated
12503
+ */
12504
+ export declare const federatedPostGetPrivateKeyBackwardsCompat: (input: TPostGetPrivateKeyBackwardsCompatInput, options?: TurnkeyCredentialRequestOptions) => Promise<import("../../../../..").FederatedRequest>;
10440
12505
  export {};
10441
12506
  //# sourceMappingURL=public_api.fetcher.d.ts.map