@turnkey/http 0.17.1 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +4776 -555
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +492 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
- package/dist/__generated__/services/coordinator/public/v1/public_api.swagger.json +822 -60
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +416 -13
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
- package/dist/base.d.ts +10 -1
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +29 -2
- package/dist/base.js.map +1 -1
- package/dist/config.d.ts +8 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +14 -1
- package/dist/config.js.map +1 -1
- package/dist/encoding.d.ts +1 -0
- package/dist/encoding.d.ts.map +1 -1
- package/dist/encoding.js +6 -8
- package/dist/encoding.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/shared.d.ts +5 -0
- package/dist/shared.d.ts.map +1 -1
- package/dist/webauthn-json/api.d.ts +13 -0
- package/dist/webauthn-json/api.d.ts.map +1 -0
- package/dist/webauthn-json/api.js +33 -0
- package/dist/webauthn-json/api.js.map +1 -0
- package/dist/webauthn-json/base64url.d.ts +4 -0
- package/dist/webauthn-json/base64url.d.ts.map +1 -0
- package/dist/webauthn-json/base64url.js +37 -0
- package/dist/webauthn-json/base64url.js.map +1 -0
- package/dist/webauthn-json/convert.d.ts +8 -0
- package/dist/webauthn-json/convert.d.ts.map +1 -0
- package/dist/webauthn-json/convert.js +69 -0
- package/dist/webauthn-json/convert.js.map +1 -0
- package/dist/webauthn-json/index.d.ts +14 -0
- package/dist/webauthn-json/index.d.ts.map +1 -0
- package/dist/webauthn-json/index.js +19 -0
- package/dist/webauthn-json/index.js.map +1 -0
- package/dist/webauthn-json/json.d.ts +92 -0
- package/dist/webauthn-json/json.d.ts.map +1 -0
- package/dist/webauthn-json/json.js +3 -0
- package/dist/webauthn-json/json.js.map +1 -0
- package/dist/webauthn-json/schema-format.d.ts +13 -0
- package/dist/webauthn-json/schema-format.d.ts.map +1 -0
- package/dist/webauthn-json/schema-format.js +3 -0
- package/dist/webauthn-json/schema-format.js.map +1 -0
- package/dist/webauthn-json/schema.d.ts +9 -0
- package/dist/webauthn-json/schema.d.ts.map +1 -0
- package/dist/webauthn-json/schema.js +86 -0
- package/dist/webauthn-json/schema.js.map +1 -0
- package/dist/webauthn.d.ts +24 -0
- package/dist/webauthn.d.ts.map +1 -0
- package/dist/webauthn.js +82 -0
- package/dist/webauthn.js.map +1 -0
- package/package.json +1 -1
|
@@ -7,6 +7,14 @@ export type paths = {
|
|
|
7
7
|
/** Get details about an Activity */
|
|
8
8
|
post: operations["PublicApiService_GetActivity"];
|
|
9
9
|
};
|
|
10
|
+
"/public/v1/query/get_authenticator": {
|
|
11
|
+
/** Get details about an authenticator */
|
|
12
|
+
post: operations["PublicApiService_GetAuthenticator"];
|
|
13
|
+
};
|
|
14
|
+
"/public/v1/query/get_authenticators": {
|
|
15
|
+
/** Get details about authenticators for a user */
|
|
16
|
+
post: operations["PublicApiService_GetAuthenticators"];
|
|
17
|
+
};
|
|
10
18
|
"/public/v1/query/get_organization": {
|
|
11
19
|
/** Get details about an Organization */
|
|
12
20
|
post: operations["PublicApiService_GetOrganization"];
|
|
@@ -67,10 +75,22 @@ export type paths = {
|
|
|
67
75
|
/** Create a new Policy */
|
|
68
76
|
post: operations["PublicApiService_CreatePolicy"];
|
|
69
77
|
};
|
|
78
|
+
"/public/v1/submit/create_private_key_tag": {
|
|
79
|
+
/** Create a private key tag and add it to private keys. */
|
|
80
|
+
post: operations["PublicApiService_CreatePrivateKeyTag"];
|
|
81
|
+
};
|
|
70
82
|
"/public/v1/submit/create_private_keys": {
|
|
71
83
|
/** Create new Private Keys */
|
|
72
84
|
post: operations["PublicApiService_CreatePrivateKeys"];
|
|
73
85
|
};
|
|
86
|
+
"/public/v1/submit/create_sub_organization": {
|
|
87
|
+
/** Create a new Sub-Organization */
|
|
88
|
+
post: operations["PublicApiService_CreateSubOrganization"];
|
|
89
|
+
};
|
|
90
|
+
"/public/v1/submit/create_user_tag": {
|
|
91
|
+
/** Create a user tag and add it to users. */
|
|
92
|
+
post: operations["PublicApiService_CreateUserTag"];
|
|
93
|
+
};
|
|
74
94
|
"/public/v1/submit/create_users": {
|
|
75
95
|
/** Create Users in an existing Organization */
|
|
76
96
|
post: operations["PublicApiService_CreateUsers"];
|
|
@@ -99,14 +119,25 @@ export type paths = {
|
|
|
99
119
|
/** Sign a transaction with a Private Key */
|
|
100
120
|
post: operations["PublicApiService_SignTransaction"];
|
|
101
121
|
};
|
|
122
|
+
"/public/v1/submit/update_allowed_origins": {
|
|
123
|
+
/** Update the additional allowable origins for requests besides Turnkey origins */
|
|
124
|
+
post: operations["PublicApiService_UpdateAllowedOrigins"];
|
|
125
|
+
};
|
|
102
126
|
"/public/v1/submit/update_private_key_tag": {
|
|
103
127
|
/** 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. */
|
|
104
128
|
post: operations["PublicApiService_UpdatePrivateKeyTag"];
|
|
105
129
|
};
|
|
130
|
+
"/public/v1/submit/update_root_quorum": {
|
|
131
|
+
/** Set the threshold and members of the root quorum. This must be approved by the current root quorum. */
|
|
132
|
+
post: operations["PublicApiService_UpdateRootQuorum"];
|
|
133
|
+
};
|
|
106
134
|
"/public/v1/submit/update_user_tag": {
|
|
107
135
|
/** 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. */
|
|
108
136
|
post: operations["PublicApiService_UpdateUserTag"];
|
|
109
137
|
};
|
|
138
|
+
"/tkhq/api/v1/noop-codegen-anchor": {
|
|
139
|
+
post: operations["PublicApiService_NOOPCodegenAnchor"];
|
|
140
|
+
};
|
|
110
141
|
"/tkhq/public/v1/query/get_private_key": {
|
|
111
142
|
/** Get details about a Private Key */
|
|
112
143
|
post: operations["PublicApiService_GetPrivateKeyBackwardsCompat"];
|
|
@@ -158,6 +189,10 @@ export type definitions = {
|
|
|
158
189
|
};
|
|
159
190
|
/** @enum {string} */
|
|
160
191
|
immutableactivityv1AccessType: "ACCESS_TYPE_WEB" | "ACCESS_TYPE_API" | "ACCESS_TYPE_ALL";
|
|
192
|
+
immutableactivityv1Address: {
|
|
193
|
+
format?: definitions["immutableactivityv1AddressFormat"];
|
|
194
|
+
address?: string;
|
|
195
|
+
};
|
|
161
196
|
/**
|
|
162
197
|
* @description - ADDRESS_FORMAT_UNCOMPRESSED: 04<X_COORDINATE><Y_COORDINATE>
|
|
163
198
|
* - ADDRESS_FORMAT_COMPRESSED: 02 or 03, followed by the X coordinate
|
|
@@ -271,7 +306,7 @@ export type definitions = {
|
|
|
271
306
|
* @description Type of Activity, such as Add User, or Sign Transaction.
|
|
272
307
|
* @enum {string}
|
|
273
308
|
*/
|
|
274
|
-
v1ActivityType: "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";
|
|
309
|
+
v1ActivityType: "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" | "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS" | "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2";
|
|
275
310
|
v1ApiKey: {
|
|
276
311
|
credential: definitions["v1Credential"];
|
|
277
312
|
/** @description Unique identifier for a given API Key. */
|
|
@@ -356,8 +391,6 @@ export type definitions = {
|
|
|
356
391
|
attestationType: string;
|
|
357
392
|
/** @description Identifier indicating the type of the Security Key. */
|
|
358
393
|
aaguid: string;
|
|
359
|
-
/** @description Unique identifier for a given User. */
|
|
360
|
-
userId: string;
|
|
361
394
|
/** @description Unique identifier for a WebAuthn credential. */
|
|
362
395
|
credentialId: string;
|
|
363
396
|
/** @description The type of Authenticator device. */
|
|
@@ -532,7 +565,7 @@ export type definitions = {
|
|
|
532
565
|
};
|
|
533
566
|
v1CreateOrganizationIntentV2: {
|
|
534
567
|
/**
|
|
535
|
-
* @inject_tag: validate:"required,tk_label_length"
|
|
568
|
+
* @inject_tag: validate:"required,tk_label,tk_label_length"
|
|
536
569
|
* @description Human-readable name for an Organization.
|
|
537
570
|
*/
|
|
538
571
|
organizationName: string;
|
|
@@ -618,6 +651,15 @@ export type definitions = {
|
|
|
618
651
|
*/
|
|
619
652
|
privateKeyIds: string[];
|
|
620
653
|
};
|
|
654
|
+
v1CreatePrivateKeyTagRequest: {
|
|
655
|
+
/** @enum {string} */
|
|
656
|
+
type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEY_TAG";
|
|
657
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
658
|
+
timestampMs: string;
|
|
659
|
+
/** @description Unique identifier for a given Organization. */
|
|
660
|
+
organizationId: string;
|
|
661
|
+
parameters: definitions["v1CreatePrivateKeyTagIntent"];
|
|
662
|
+
};
|
|
621
663
|
v1CreatePrivateKeyTagResult: {
|
|
622
664
|
/** @description Unique identifier for a given Private Key Tag. */
|
|
623
665
|
privateKeyTagId: string;
|
|
@@ -631,19 +673,68 @@ export type definitions = {
|
|
|
631
673
|
*/
|
|
632
674
|
privateKeys: definitions["v1PrivateKeyParams"][];
|
|
633
675
|
};
|
|
676
|
+
v1CreatePrivateKeysIntentV2: {
|
|
677
|
+
/**
|
|
678
|
+
* @inject_tag: validate:"dive,required"
|
|
679
|
+
* @description A list of Private Keys.
|
|
680
|
+
*/
|
|
681
|
+
privateKeys: definitions["v1PrivateKeyParams"][];
|
|
682
|
+
};
|
|
634
683
|
v1CreatePrivateKeysRequest: {
|
|
635
684
|
/** @enum {string} */
|
|
636
|
-
type: "
|
|
685
|
+
type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS_V2";
|
|
637
686
|
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
638
687
|
timestampMs: string;
|
|
639
688
|
/** @description Unique identifier for a given Organization. */
|
|
640
689
|
organizationId: string;
|
|
641
|
-
parameters: definitions["
|
|
690
|
+
parameters: definitions["v1CreatePrivateKeysIntentV2"];
|
|
642
691
|
};
|
|
643
692
|
v1CreatePrivateKeysResult: {
|
|
644
693
|
/** @description A list of Private Key IDs. */
|
|
645
694
|
privateKeyIds: string[];
|
|
646
695
|
};
|
|
696
|
+
v1CreatePrivateKeysResultV2: {
|
|
697
|
+
/** @description A list of Private Key IDs and addresses. */
|
|
698
|
+
privateKeys: definitions["v1PrivateKeyResult"][];
|
|
699
|
+
};
|
|
700
|
+
v1CreateSubOrganizationIntent: {
|
|
701
|
+
/**
|
|
702
|
+
* @inject_tag: validate:"omitempty,tk_label,tk_label_length"
|
|
703
|
+
* @description Name for this sub-organization
|
|
704
|
+
*/
|
|
705
|
+
name: string;
|
|
706
|
+
rootAuthenticator: definitions["v1AuthenticatorParamsV2"];
|
|
707
|
+
};
|
|
708
|
+
v1CreateSubOrganizationIntentV2: {
|
|
709
|
+
/**
|
|
710
|
+
* @inject_tag: validate:"omitempty,tk_label,tk_label_length"
|
|
711
|
+
* @description Name for this sub-organization
|
|
712
|
+
*/
|
|
713
|
+
subOrganizationName: string;
|
|
714
|
+
/**
|
|
715
|
+
* @inject_tag: validate:"required"
|
|
716
|
+
* @description Root users to create within this sub-organization
|
|
717
|
+
*/
|
|
718
|
+
rootUsers: definitions["v1RootUserParams"][];
|
|
719
|
+
/**
|
|
720
|
+
* @inject_tag: validate:"required"
|
|
721
|
+
* Format: int32
|
|
722
|
+
* @description The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users
|
|
723
|
+
*/
|
|
724
|
+
rootQuorumThreshold: number;
|
|
725
|
+
};
|
|
726
|
+
v1CreateSubOrganizationRequest: {
|
|
727
|
+
/** @enum {string} */
|
|
728
|
+
type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
|
|
729
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
730
|
+
timestampMs: string;
|
|
731
|
+
/** @description Unique identifier for a given Organization. */
|
|
732
|
+
organizationId: string;
|
|
733
|
+
parameters: definitions["v1CreateSubOrganizationIntentV2"];
|
|
734
|
+
};
|
|
735
|
+
v1CreateSubOrganizationResult: {
|
|
736
|
+
subOrganizationId: string;
|
|
737
|
+
};
|
|
647
738
|
v1CreateUserTagIntent: {
|
|
648
739
|
/**
|
|
649
740
|
* @inject_tag: validate:"required,tk_label,tk_label_length"
|
|
@@ -656,6 +747,15 @@ export type definitions = {
|
|
|
656
747
|
*/
|
|
657
748
|
userIds: string[];
|
|
658
749
|
};
|
|
750
|
+
v1CreateUserTagRequest: {
|
|
751
|
+
/** @enum {string} */
|
|
752
|
+
type: "ACTIVITY_TYPE_CREATE_USER_TAG";
|
|
753
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
754
|
+
timestampMs: string;
|
|
755
|
+
/** @description Unique identifier for a given Organization. */
|
|
756
|
+
organizationId: string;
|
|
757
|
+
parameters: definitions["v1CreateUserTagIntent"];
|
|
758
|
+
};
|
|
659
759
|
v1CreateUserTagResult: {
|
|
660
760
|
/** @description Unique identifier for a given User Tag. */
|
|
661
761
|
userTagId: string;
|
|
@@ -853,6 +953,8 @@ export type definitions = {
|
|
|
853
953
|
/** @description Array of Activity Statuses filtering which Activities will be listed in the response. */
|
|
854
954
|
filterByStatus?: definitions["v1ActivityStatus"][];
|
|
855
955
|
paginationOptions?: definitions["v1Pagination"];
|
|
956
|
+
/** @description Array of Activity Types filtering which Activities will be listed in the response. */
|
|
957
|
+
filterByType?: definitions["v1ActivityType"][];
|
|
856
958
|
};
|
|
857
959
|
v1GetActivitiesResponse: {
|
|
858
960
|
/** @description A list of Activities. */
|
|
@@ -864,6 +966,25 @@ export type definitions = {
|
|
|
864
966
|
/** @description Unique identifier for a given Activity object. */
|
|
865
967
|
activityId: string;
|
|
866
968
|
};
|
|
969
|
+
v1GetAuthenticatorRequest: {
|
|
970
|
+
/** @description Unique identifier for a given Organization. */
|
|
971
|
+
organizationId: string;
|
|
972
|
+
/** @description Unique identifier for a given Authenticator. */
|
|
973
|
+
authenticatorId: string;
|
|
974
|
+
};
|
|
975
|
+
v1GetAuthenticatorResponse: {
|
|
976
|
+
authenticator: definitions["v1Authenticator"];
|
|
977
|
+
};
|
|
978
|
+
v1GetAuthenticatorsRequest: {
|
|
979
|
+
/** @description Unique identifier for a given Organization. */
|
|
980
|
+
organizationId: string;
|
|
981
|
+
/** @description Unique identifier for a given User. */
|
|
982
|
+
userId: string;
|
|
983
|
+
};
|
|
984
|
+
v1GetAuthenticatorsResponse: {
|
|
985
|
+
/** @description A list of authenticators. */
|
|
986
|
+
authenticators: definitions["v1Authenticator"][];
|
|
987
|
+
};
|
|
867
988
|
v1GetOrganizationRequest: {
|
|
868
989
|
/** @description Unique identifier for a given Organization. */
|
|
869
990
|
organizationId: string;
|
|
@@ -985,6 +1106,10 @@ export type definitions = {
|
|
|
985
1106
|
acceptInvitationIntentV2?: definitions["v1AcceptInvitationIntentV2"];
|
|
986
1107
|
createOrganizationIntentV2?: definitions["v1CreateOrganizationIntentV2"];
|
|
987
1108
|
createUsersIntentV2?: definitions["v1CreateUsersIntentV2"];
|
|
1109
|
+
createSubOrganizationIntent?: definitions["v1CreateSubOrganizationIntent"];
|
|
1110
|
+
createSubOrganizationIntentV2?: definitions["v1CreateSubOrganizationIntentV2"];
|
|
1111
|
+
updateAllowedOriginsIntent?: definitions["v1UpdateAllowedOriginsIntent"];
|
|
1112
|
+
createPrivateKeysIntentV2?: definitions["v1CreatePrivateKeysIntentV2"];
|
|
988
1113
|
};
|
|
989
1114
|
v1Invitation: {
|
|
990
1115
|
/** @description Unique identifier for a given Invitation object. */
|
|
@@ -1027,6 +1152,9 @@ export type definitions = {
|
|
|
1027
1152
|
};
|
|
1028
1153
|
/** @enum {string} */
|
|
1029
1154
|
v1InvitationStatus: "INVITATION_STATUS_CREATED" | "INVITATION_STATUS_ACCEPTED" | "INVITATION_STATUS_REVOKED";
|
|
1155
|
+
v1NOOPCodegenAnchorResponse: {
|
|
1156
|
+
stamp: definitions["v1WebAuthnStamp"];
|
|
1157
|
+
};
|
|
1030
1158
|
/**
|
|
1031
1159
|
* @description This proto definition is used in our external-facing APIs.
|
|
1032
1160
|
* It's important to leverage annotations because they're used in our external interfaces.
|
|
@@ -1039,13 +1167,9 @@ export type definitions = {
|
|
|
1039
1167
|
privateKeys?: definitions["v1PrivateKey"][];
|
|
1040
1168
|
invitations?: definitions["v1Invitation"][];
|
|
1041
1169
|
tags?: definitions["datav1Tag"][];
|
|
1042
|
-
deletedUsers?: definitions["v1User"][];
|
|
1043
|
-
deletedPolicies?: definitions["v1Policy"][];
|
|
1044
1170
|
disabledPrivateKeys?: definitions["v1PrivateKey"][];
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
deletedAuthenticators?: definitions["v1Authenticator"][];
|
|
1048
|
-
deletedTags?: definitions["datav1Tag"][];
|
|
1171
|
+
rootQuorum?: definitions["v1Quorum"];
|
|
1172
|
+
allowedOrigins?: string[];
|
|
1049
1173
|
};
|
|
1050
1174
|
v1Pagination: {
|
|
1051
1175
|
/**
|
|
@@ -1117,6 +1241,10 @@ export type definitions = {
|
|
|
1117
1241
|
*/
|
|
1118
1242
|
addressFormats: definitions["immutableactivityv1AddressFormat"][];
|
|
1119
1243
|
};
|
|
1244
|
+
v1PrivateKeyResult: {
|
|
1245
|
+
privateKeyId?: string;
|
|
1246
|
+
addresses?: definitions["immutableactivityv1Address"][];
|
|
1247
|
+
};
|
|
1120
1248
|
v1PublicKeyCredentialWithAttestation: {
|
|
1121
1249
|
id: string;
|
|
1122
1250
|
/**
|
|
@@ -1131,6 +1259,15 @@ export type definitions = {
|
|
|
1131
1259
|
response: definitions["v1AuthenticatorAttestationResponse"];
|
|
1132
1260
|
clientExtensionResults: definitions["v1SimpleClientExtensionResults"];
|
|
1133
1261
|
};
|
|
1262
|
+
v1Quorum: {
|
|
1263
|
+
/**
|
|
1264
|
+
* Format: int32
|
|
1265
|
+
* @description Count of unique approvals required to meet quorum.
|
|
1266
|
+
*/
|
|
1267
|
+
threshold: number;
|
|
1268
|
+
/** @description Unique identifiers of quorum set members. */
|
|
1269
|
+
userIds: string[];
|
|
1270
|
+
};
|
|
1134
1271
|
v1RejectActivityIntent: {
|
|
1135
1272
|
/**
|
|
1136
1273
|
* @inject_tag: validate:"required"
|
|
@@ -1177,6 +1314,31 @@ export type definitions = {
|
|
|
1177
1314
|
updateRootQuorumResult?: definitions["v1UpdateRootQuorumResult"];
|
|
1178
1315
|
updateUserTagResult?: definitions["v1UpdateUserTagResult"];
|
|
1179
1316
|
updatePrivateKeyTagResult?: definitions["v1UpdatePrivateKeyTagResult"];
|
|
1317
|
+
createSubOrganizationResult?: definitions["v1CreateSubOrganizationResult"];
|
|
1318
|
+
updateAllowedOriginsResult?: definitions["v1UpdateAllowedOriginsResult"];
|
|
1319
|
+
createPrivateKeysResultV2?: definitions["v1CreatePrivateKeysResultV2"];
|
|
1320
|
+
};
|
|
1321
|
+
v1RootUserParams: {
|
|
1322
|
+
/**
|
|
1323
|
+
* @inject_tag: validate:"required,tk_label_length,tk_label"
|
|
1324
|
+
* @description Human-readable name for a User.
|
|
1325
|
+
*/
|
|
1326
|
+
userName: string;
|
|
1327
|
+
/**
|
|
1328
|
+
* @inject_tag: validate:"omitempty,email,tk_email"
|
|
1329
|
+
* @description The user's email address.
|
|
1330
|
+
*/
|
|
1331
|
+
userEmail?: string;
|
|
1332
|
+
/**
|
|
1333
|
+
* @inject_tag: validate:"dive"
|
|
1334
|
+
* @description A list of API Key parameters.
|
|
1335
|
+
*/
|
|
1336
|
+
apiKeys: definitions["v1ApiKeyParams"][];
|
|
1337
|
+
/**
|
|
1338
|
+
* @inject_tag: validate:"dive"
|
|
1339
|
+
* @description A list of Authenticator parameters.
|
|
1340
|
+
*/
|
|
1341
|
+
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
1180
1342
|
};
|
|
1181
1343
|
v1SelectorV2: {
|
|
1182
1344
|
subject?: string;
|
|
@@ -1290,6 +1452,25 @@ export type definitions = {
|
|
|
1290
1452
|
seconds: string;
|
|
1291
1453
|
nanos: string;
|
|
1292
1454
|
};
|
|
1455
|
+
v1UpdateAllowedOriginsIntent: {
|
|
1456
|
+
/**
|
|
1457
|
+
* @inject_tag: validate:"required"
|
|
1458
|
+
* @description Additional origins requests are allowed from besides Turnkey origins
|
|
1459
|
+
*/
|
|
1460
|
+
allowedOrigins: string[];
|
|
1461
|
+
};
|
|
1462
|
+
v1UpdateAllowedOriginsRequest: {
|
|
1463
|
+
/** @enum {string} */
|
|
1464
|
+
type: "ACTIVITY_TYPE_UPDATE_ALLOWED_ORIGINS";
|
|
1465
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1466
|
+
timestampMs: string;
|
|
1467
|
+
/** @description Unique identifier for a given Organization. */
|
|
1468
|
+
organizationId: string;
|
|
1469
|
+
parameters: definitions["v1UpdateAllowedOriginsIntent"];
|
|
1470
|
+
};
|
|
1471
|
+
v1UpdateAllowedOriginsResult: {
|
|
1472
|
+
[key: string]: unknown;
|
|
1473
|
+
};
|
|
1293
1474
|
v1UpdatePrivateKeyTagIntent: {
|
|
1294
1475
|
/**
|
|
1295
1476
|
* @inject_tag: validate:"uuid"
|
|
@@ -1333,11 +1514,20 @@ export type definitions = {
|
|
|
1333
1514
|
*/
|
|
1334
1515
|
threshold: number;
|
|
1335
1516
|
/**
|
|
1336
|
-
* @inject_tag: validate:"
|
|
1517
|
+
* @inject_tag: validate:"dive,uuid"
|
|
1337
1518
|
* @description The unique identifiers of users who comprise the quorum set.
|
|
1338
1519
|
*/
|
|
1339
1520
|
userIds: string[];
|
|
1340
1521
|
};
|
|
1522
|
+
v1UpdateRootQuorumRequest: {
|
|
1523
|
+
/** @enum {string} */
|
|
1524
|
+
type: "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM";
|
|
1525
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1526
|
+
timestampMs: string;
|
|
1527
|
+
/** @description Unique identifier for a given Organization. */
|
|
1528
|
+
organizationId: string;
|
|
1529
|
+
parameters: definitions["v1UpdateRootQuorumIntent"];
|
|
1530
|
+
};
|
|
1341
1531
|
v1UpdateRootQuorumResult: {
|
|
1342
1532
|
[key: string]: unknown;
|
|
1343
1533
|
};
|
|
@@ -1473,6 +1663,17 @@ export type definitions = {
|
|
|
1473
1663
|
scheme: string;
|
|
1474
1664
|
createdAt: definitions["v1Timestamp"];
|
|
1475
1665
|
};
|
|
1666
|
+
/** We expect this to be passed in as a JSON-encoded, then base64-encoded string within a X-Stamp-Webauthn header */
|
|
1667
|
+
v1WebAuthnStamp: {
|
|
1668
|
+
/** @description A base64 url encoded Unique identifier for a given credential. */
|
|
1669
|
+
credentialId: string;
|
|
1670
|
+
/** @description A base64 encoded payload containing metadata about the signing context and the challenge. */
|
|
1671
|
+
clientDataJson: string;
|
|
1672
|
+
/** @description A base64 encoded payload containing metadata about the authenticator. */
|
|
1673
|
+
authenticatorData: string;
|
|
1674
|
+
/** @description The base64 url encoded signature bytes contained within the WebAuthn assertion response. */
|
|
1675
|
+
signature: string;
|
|
1676
|
+
};
|
|
1476
1677
|
};
|
|
1477
1678
|
export type operations = {
|
|
1478
1679
|
/** Get details about an Activity */
|
|
@@ -1501,6 +1702,58 @@ export type operations = {
|
|
|
1501
1702
|
};
|
|
1502
1703
|
};
|
|
1503
1704
|
};
|
|
1705
|
+
/** Get details about an authenticator */
|
|
1706
|
+
PublicApiService_GetAuthenticator: {
|
|
1707
|
+
parameters: {
|
|
1708
|
+
body: {
|
|
1709
|
+
body: definitions["v1GetAuthenticatorRequest"];
|
|
1710
|
+
};
|
|
1711
|
+
};
|
|
1712
|
+
responses: {
|
|
1713
|
+
/** A successful response. */
|
|
1714
|
+
200: {
|
|
1715
|
+
schema: definitions["v1GetAuthenticatorResponse"];
|
|
1716
|
+
};
|
|
1717
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
1718
|
+
403: {
|
|
1719
|
+
schema: unknown;
|
|
1720
|
+
};
|
|
1721
|
+
/** Returned when the resource does not exist. */
|
|
1722
|
+
404: {
|
|
1723
|
+
schema: string;
|
|
1724
|
+
};
|
|
1725
|
+
/** An unexpected error response. */
|
|
1726
|
+
default: {
|
|
1727
|
+
schema: definitions["rpcStatus"];
|
|
1728
|
+
};
|
|
1729
|
+
};
|
|
1730
|
+
};
|
|
1731
|
+
/** Get details about authenticators for a user */
|
|
1732
|
+
PublicApiService_GetAuthenticators: {
|
|
1733
|
+
parameters: {
|
|
1734
|
+
body: {
|
|
1735
|
+
body: definitions["v1GetAuthenticatorsRequest"];
|
|
1736
|
+
};
|
|
1737
|
+
};
|
|
1738
|
+
responses: {
|
|
1739
|
+
/** A successful response. */
|
|
1740
|
+
200: {
|
|
1741
|
+
schema: definitions["v1GetAuthenticatorsResponse"];
|
|
1742
|
+
};
|
|
1743
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
1744
|
+
403: {
|
|
1745
|
+
schema: unknown;
|
|
1746
|
+
};
|
|
1747
|
+
/** Returned when the resource does not exist. */
|
|
1748
|
+
404: {
|
|
1749
|
+
schema: string;
|
|
1750
|
+
};
|
|
1751
|
+
/** An unexpected error response. */
|
|
1752
|
+
default: {
|
|
1753
|
+
schema: definitions["rpcStatus"];
|
|
1754
|
+
};
|
|
1755
|
+
};
|
|
1756
|
+
};
|
|
1504
1757
|
/** Get details about an Organization */
|
|
1505
1758
|
PublicApiService_GetOrganization: {
|
|
1506
1759
|
parameters: {
|
|
@@ -1891,6 +2144,32 @@ export type operations = {
|
|
|
1891
2144
|
};
|
|
1892
2145
|
};
|
|
1893
2146
|
};
|
|
2147
|
+
/** Create a private key tag and add it to private keys. */
|
|
2148
|
+
PublicApiService_CreatePrivateKeyTag: {
|
|
2149
|
+
parameters: {
|
|
2150
|
+
body: {
|
|
2151
|
+
body: definitions["v1CreatePrivateKeyTagRequest"];
|
|
2152
|
+
};
|
|
2153
|
+
};
|
|
2154
|
+
responses: {
|
|
2155
|
+
/** A successful response. */
|
|
2156
|
+
200: {
|
|
2157
|
+
schema: definitions["v1ActivityResponse"];
|
|
2158
|
+
};
|
|
2159
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
2160
|
+
403: {
|
|
2161
|
+
schema: unknown;
|
|
2162
|
+
};
|
|
2163
|
+
/** Returned when the resource does not exist. */
|
|
2164
|
+
404: {
|
|
2165
|
+
schema: string;
|
|
2166
|
+
};
|
|
2167
|
+
/** An unexpected error response. */
|
|
2168
|
+
default: {
|
|
2169
|
+
schema: definitions["rpcStatus"];
|
|
2170
|
+
};
|
|
2171
|
+
};
|
|
2172
|
+
};
|
|
1894
2173
|
/** Create new Private Keys */
|
|
1895
2174
|
PublicApiService_CreatePrivateKeys: {
|
|
1896
2175
|
parameters: {
|
|
@@ -1917,6 +2196,58 @@ export type operations = {
|
|
|
1917
2196
|
};
|
|
1918
2197
|
};
|
|
1919
2198
|
};
|
|
2199
|
+
/** Create a new Sub-Organization */
|
|
2200
|
+
PublicApiService_CreateSubOrganization: {
|
|
2201
|
+
parameters: {
|
|
2202
|
+
body: {
|
|
2203
|
+
body: definitions["v1CreateSubOrganizationRequest"];
|
|
2204
|
+
};
|
|
2205
|
+
};
|
|
2206
|
+
responses: {
|
|
2207
|
+
/** A successful response. */
|
|
2208
|
+
200: {
|
|
2209
|
+
schema: definitions["v1ActivityResponse"];
|
|
2210
|
+
};
|
|
2211
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
2212
|
+
403: {
|
|
2213
|
+
schema: unknown;
|
|
2214
|
+
};
|
|
2215
|
+
/** Returned when the resource does not exist. */
|
|
2216
|
+
404: {
|
|
2217
|
+
schema: string;
|
|
2218
|
+
};
|
|
2219
|
+
/** An unexpected error response. */
|
|
2220
|
+
default: {
|
|
2221
|
+
schema: definitions["rpcStatus"];
|
|
2222
|
+
};
|
|
2223
|
+
};
|
|
2224
|
+
};
|
|
2225
|
+
/** Create a user tag and add it to users. */
|
|
2226
|
+
PublicApiService_CreateUserTag: {
|
|
2227
|
+
parameters: {
|
|
2228
|
+
body: {
|
|
2229
|
+
body: definitions["v1CreateUserTagRequest"];
|
|
2230
|
+
};
|
|
2231
|
+
};
|
|
2232
|
+
responses: {
|
|
2233
|
+
/** A successful response. */
|
|
2234
|
+
200: {
|
|
2235
|
+
schema: definitions["v1ActivityResponse"];
|
|
2236
|
+
};
|
|
2237
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
2238
|
+
403: {
|
|
2239
|
+
schema: unknown;
|
|
2240
|
+
};
|
|
2241
|
+
/** Returned when the resource does not exist. */
|
|
2242
|
+
404: {
|
|
2243
|
+
schema: string;
|
|
2244
|
+
};
|
|
2245
|
+
/** An unexpected error response. */
|
|
2246
|
+
default: {
|
|
2247
|
+
schema: definitions["rpcStatus"];
|
|
2248
|
+
};
|
|
2249
|
+
};
|
|
2250
|
+
};
|
|
1920
2251
|
/** Create Users in an existing Organization */
|
|
1921
2252
|
PublicApiService_CreateUsers: {
|
|
1922
2253
|
parameters: {
|
|
@@ -2099,6 +2430,32 @@ export type operations = {
|
|
|
2099
2430
|
};
|
|
2100
2431
|
};
|
|
2101
2432
|
};
|
|
2433
|
+
/** Update the additional allowable origins for requests besides Turnkey origins */
|
|
2434
|
+
PublicApiService_UpdateAllowedOrigins: {
|
|
2435
|
+
parameters: {
|
|
2436
|
+
body: {
|
|
2437
|
+
body: definitions["v1UpdateAllowedOriginsRequest"];
|
|
2438
|
+
};
|
|
2439
|
+
};
|
|
2440
|
+
responses: {
|
|
2441
|
+
/** A successful response. */
|
|
2442
|
+
200: {
|
|
2443
|
+
schema: definitions["v1ActivityResponse"];
|
|
2444
|
+
};
|
|
2445
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
2446
|
+
403: {
|
|
2447
|
+
schema: unknown;
|
|
2448
|
+
};
|
|
2449
|
+
/** Returned when the resource does not exist. */
|
|
2450
|
+
404: {
|
|
2451
|
+
schema: string;
|
|
2452
|
+
};
|
|
2453
|
+
/** An unexpected error response. */
|
|
2454
|
+
default: {
|
|
2455
|
+
schema: definitions["rpcStatus"];
|
|
2456
|
+
};
|
|
2457
|
+
};
|
|
2458
|
+
};
|
|
2102
2459
|
/** 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. */
|
|
2103
2460
|
PublicApiService_UpdatePrivateKeyTag: {
|
|
2104
2461
|
parameters: {
|
|
@@ -2125,6 +2482,32 @@ export type operations = {
|
|
|
2125
2482
|
};
|
|
2126
2483
|
};
|
|
2127
2484
|
};
|
|
2485
|
+
/** Set the threshold and members of the root quorum. This must be approved by the current root quorum. */
|
|
2486
|
+
PublicApiService_UpdateRootQuorum: {
|
|
2487
|
+
parameters: {
|
|
2488
|
+
body: {
|
|
2489
|
+
body: definitions["v1UpdateRootQuorumRequest"];
|
|
2490
|
+
};
|
|
2491
|
+
};
|
|
2492
|
+
responses: {
|
|
2493
|
+
/** A successful response. */
|
|
2494
|
+
200: {
|
|
2495
|
+
schema: definitions["v1ActivityResponse"];
|
|
2496
|
+
};
|
|
2497
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
2498
|
+
403: {
|
|
2499
|
+
schema: unknown;
|
|
2500
|
+
};
|
|
2501
|
+
/** Returned when the resource does not exist. */
|
|
2502
|
+
404: {
|
|
2503
|
+
schema: string;
|
|
2504
|
+
};
|
|
2505
|
+
/** An unexpected error response. */
|
|
2506
|
+
default: {
|
|
2507
|
+
schema: definitions["rpcStatus"];
|
|
2508
|
+
};
|
|
2509
|
+
};
|
|
2510
|
+
};
|
|
2128
2511
|
/** 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. */
|
|
2129
2512
|
PublicApiService_UpdateUserTag: {
|
|
2130
2513
|
parameters: {
|
|
@@ -2151,6 +2534,26 @@ export type operations = {
|
|
|
2151
2534
|
};
|
|
2152
2535
|
};
|
|
2153
2536
|
};
|
|
2537
|
+
PublicApiService_NOOPCodegenAnchor: {
|
|
2538
|
+
responses: {
|
|
2539
|
+
/** A successful response. */
|
|
2540
|
+
200: {
|
|
2541
|
+
schema: definitions["v1NOOPCodegenAnchorResponse"];
|
|
2542
|
+
};
|
|
2543
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
2544
|
+
403: {
|
|
2545
|
+
schema: unknown;
|
|
2546
|
+
};
|
|
2547
|
+
/** Returned when the resource does not exist. */
|
|
2548
|
+
404: {
|
|
2549
|
+
schema: string;
|
|
2550
|
+
};
|
|
2551
|
+
/** An unexpected error response. */
|
|
2552
|
+
default: {
|
|
2553
|
+
schema: definitions["rpcStatus"];
|
|
2554
|
+
};
|
|
2555
|
+
};
|
|
2556
|
+
};
|
|
2154
2557
|
/** Get details about a Private Key */
|
|
2155
2558
|
PublicApiService_GetPrivateKeyBackwardsCompat: {
|
|
2156
2559
|
parameters: {
|