@turnkey/http 0.17.0 → 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.
- package/CHANGELOG.md +13 -0
- package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +4310 -515
- 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 +385 -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 +599 -44
- package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +336 -12
- 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
|
@@ -55,6 +55,10 @@ export type paths = {
|
|
|
55
55
|
/** Create API-only Users in an existing Organization */
|
|
56
56
|
post: operations["PublicApiService_CreateApiOnlyUsers"];
|
|
57
57
|
};
|
|
58
|
+
"/public/v1/submit/create_authenticators": {
|
|
59
|
+
/** Create Authenticators to authenticate requests to Turnkey */
|
|
60
|
+
post: operations["PublicApiService_CreateAuthenticators"];
|
|
61
|
+
};
|
|
58
62
|
"/public/v1/submit/create_invitations": {
|
|
59
63
|
/** Create Invitations to join an existing Organization */
|
|
60
64
|
post: operations["PublicApiService_CreateInvitations"];
|
|
@@ -67,6 +71,10 @@ export type paths = {
|
|
|
67
71
|
/** Create new Private Keys */
|
|
68
72
|
post: operations["PublicApiService_CreatePrivateKeys"];
|
|
69
73
|
};
|
|
74
|
+
"/public/v1/submit/create_sub_organization": {
|
|
75
|
+
/** Create a new Sub-Organization */
|
|
76
|
+
post: operations["PublicApiService_CreateSubOrganization"];
|
|
77
|
+
};
|
|
70
78
|
"/public/v1/submit/create_users": {
|
|
71
79
|
/** Create Users in an existing Organization */
|
|
72
80
|
post: operations["PublicApiService_CreateUsers"];
|
|
@@ -99,10 +107,17 @@ export type paths = {
|
|
|
99
107
|
/** 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. */
|
|
100
108
|
post: operations["PublicApiService_UpdatePrivateKeyTag"];
|
|
101
109
|
};
|
|
110
|
+
"/public/v1/submit/update_root_quorum": {
|
|
111
|
+
/** Set the threshold and members of the root quorum. This must be approved by the current root quorum. */
|
|
112
|
+
post: operations["PublicApiService_UpdateRootQuorum"];
|
|
113
|
+
};
|
|
102
114
|
"/public/v1/submit/update_user_tag": {
|
|
103
115
|
/** 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. */
|
|
104
116
|
post: operations["PublicApiService_UpdateUserTag"];
|
|
105
117
|
};
|
|
118
|
+
"/tkhq/api/v1/noop-codegen-anchor": {
|
|
119
|
+
post: operations["PublicApiService_NOOPCodegenAnchor"];
|
|
120
|
+
};
|
|
106
121
|
"/tkhq/public/v1/query/get_private_key": {
|
|
107
122
|
/** Get details about a Private Key */
|
|
108
123
|
post: operations["PublicApiService_GetPrivateKeyBackwardsCompat"];
|
|
@@ -206,6 +221,19 @@ export type definitions = {
|
|
|
206
221
|
userId: string;
|
|
207
222
|
authenticator: definitions["v1AuthenticatorParams"];
|
|
208
223
|
};
|
|
224
|
+
v1AcceptInvitationIntentV2: {
|
|
225
|
+
/**
|
|
226
|
+
* @inject_tag: validate:"required,uuid"
|
|
227
|
+
* @description Unique identifier for a given Invitation object.
|
|
228
|
+
*/
|
|
229
|
+
invitationId: string;
|
|
230
|
+
/**
|
|
231
|
+
* @inject_tag: validate:"required,uuid"
|
|
232
|
+
* @description Unique identifier for a given User.
|
|
233
|
+
*/
|
|
234
|
+
userId: string;
|
|
235
|
+
authenticator: definitions["v1AuthenticatorParamsV2"];
|
|
236
|
+
};
|
|
209
237
|
v1AcceptInvitationResult: {
|
|
210
238
|
/** @description Unique identifier for a given Invitation. */
|
|
211
239
|
invitationId: string;
|
|
@@ -254,7 +282,7 @@ export type definitions = {
|
|
|
254
282
|
* @description Type of Activity, such as Add User, or Sign Transaction.
|
|
255
283
|
* @enum {string}
|
|
256
284
|
*/
|
|
257
|
-
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";
|
|
285
|
+
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";
|
|
258
286
|
v1ApiKey: {
|
|
259
287
|
credential: definitions["v1Credential"];
|
|
260
288
|
/** @description Unique identifier for a given API Key. */
|
|
@@ -314,14 +342,31 @@ export type definitions = {
|
|
|
314
342
|
organizationId: string;
|
|
315
343
|
parameters: definitions["v1ApproveActivityIntent"];
|
|
316
344
|
};
|
|
345
|
+
v1Attestation: {
|
|
346
|
+
/**
|
|
347
|
+
* @inject_tag: validate:"required,max=256"
|
|
348
|
+
* @description The cbor encoded then base64 url encoded id of the credential.
|
|
349
|
+
*/
|
|
350
|
+
credentialId: string;
|
|
351
|
+
/**
|
|
352
|
+
* @inject_tag: validate:"required"
|
|
353
|
+
* @description A base64 url encoded payload containing metadata about the signing context and the challenge.
|
|
354
|
+
*/
|
|
355
|
+
clientDataJson: string;
|
|
356
|
+
/**
|
|
357
|
+
* @inject_tag: validate:"required"
|
|
358
|
+
* @description A base64 url encoded payload containing authenticator data and any attestation the webauthn provider chooses.
|
|
359
|
+
*/
|
|
360
|
+
attestationObject: string;
|
|
361
|
+
/** @description The type of authenticator transports. */
|
|
362
|
+
transports: definitions["immutablewebauthnv1AuthenticatorTransport"][];
|
|
363
|
+
};
|
|
317
364
|
v1Authenticator: {
|
|
318
365
|
/** @description Types of transports that may be used by an Authenticator (e.g., USB, NFC, BLE). */
|
|
319
366
|
transports: definitions["externaldatav1AuthenticatorTransport"][];
|
|
320
367
|
attestationType: string;
|
|
321
368
|
/** @description Identifier indicating the type of the Security Key. */
|
|
322
369
|
aaguid: string;
|
|
323
|
-
/** @description Unique identifier for a given User. */
|
|
324
|
-
userId: string;
|
|
325
370
|
/** @description Unique identifier for a WebAuthn credential. */
|
|
326
371
|
credentialId: string;
|
|
327
372
|
/** @description The type of Authenticator device. */
|
|
@@ -361,6 +406,19 @@ export type definitions = {
|
|
|
361
406
|
*/
|
|
362
407
|
challenge: string;
|
|
363
408
|
};
|
|
409
|
+
v1AuthenticatorParamsV2: {
|
|
410
|
+
/**
|
|
411
|
+
* @inject_tag: validate:"required,tk_label_length,tk_label"
|
|
412
|
+
* @description Human-readable name for an Authenticator.
|
|
413
|
+
*/
|
|
414
|
+
authenticatorName: string;
|
|
415
|
+
/**
|
|
416
|
+
* @inject_tag: validate:"required,max=256"
|
|
417
|
+
* @description Challenge presented for authentication purposes.
|
|
418
|
+
*/
|
|
419
|
+
challenge: string;
|
|
420
|
+
attestation: definitions["v1Attestation"];
|
|
421
|
+
};
|
|
364
422
|
v1CreateApiKeysIntent: {
|
|
365
423
|
/**
|
|
366
424
|
* @inject_tag: validate:"dive,required"
|
|
@@ -418,6 +476,27 @@ export type definitions = {
|
|
|
418
476
|
*/
|
|
419
477
|
userId: string;
|
|
420
478
|
};
|
|
479
|
+
v1CreateAuthenticatorsIntentV2: {
|
|
480
|
+
/**
|
|
481
|
+
* @inject_tag: validate:"dive,required"
|
|
482
|
+
* @description A list of Authenticators.
|
|
483
|
+
*/
|
|
484
|
+
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
485
|
+
/**
|
|
486
|
+
* @inject_tag: validate:"required,uuid"
|
|
487
|
+
* @description Unique identifier for a given User.
|
|
488
|
+
*/
|
|
489
|
+
userId: string;
|
|
490
|
+
};
|
|
491
|
+
v1CreateAuthenticatorsRequest: {
|
|
492
|
+
/** @enum {string} */
|
|
493
|
+
type: "ACTIVITY_TYPE_CREATE_AUTHENTICATORS_V2";
|
|
494
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
495
|
+
timestampMs: string;
|
|
496
|
+
/** @description Unique identifier for a given Organization. */
|
|
497
|
+
organizationId: string;
|
|
498
|
+
parameters: definitions["v1CreateAuthenticatorsIntentV2"];
|
|
499
|
+
};
|
|
421
500
|
v1CreateAuthenticatorsResult: {
|
|
422
501
|
/** @description A list of Authenticator IDs. */
|
|
423
502
|
authenticatorIds: string[];
|
|
@@ -460,6 +539,24 @@ export type definitions = {
|
|
|
460
539
|
*/
|
|
461
540
|
rootUserId?: string;
|
|
462
541
|
};
|
|
542
|
+
v1CreateOrganizationIntentV2: {
|
|
543
|
+
/**
|
|
544
|
+
* @inject_tag: validate:"required,tk_label_length"
|
|
545
|
+
* @description Human-readable name for an Organization.
|
|
546
|
+
*/
|
|
547
|
+
organizationName: string;
|
|
548
|
+
/**
|
|
549
|
+
* @inject_tag: validate:"required,email,tk_email"
|
|
550
|
+
* @description The root user's email address.
|
|
551
|
+
*/
|
|
552
|
+
rootEmail: string;
|
|
553
|
+
rootAuthenticator: definitions["v1AuthenticatorParamsV2"];
|
|
554
|
+
/**
|
|
555
|
+
* @inject_tag: validate:"uuid"
|
|
556
|
+
* @description Unique identifier for the root user object.
|
|
557
|
+
*/
|
|
558
|
+
rootUserId?: string;
|
|
559
|
+
};
|
|
463
560
|
v1CreateOrganizationResult: {
|
|
464
561
|
/** @description Unique identifier for a given Organization. */
|
|
465
562
|
organizationId: string;
|
|
@@ -556,6 +653,44 @@ export type definitions = {
|
|
|
556
653
|
/** @description A list of Private Key IDs. */
|
|
557
654
|
privateKeyIds: string[];
|
|
558
655
|
};
|
|
656
|
+
v1CreateSubOrganizationIntent: {
|
|
657
|
+
/**
|
|
658
|
+
* @inject_tag: validate:"omitempty,tk_label,tk_label_length"
|
|
659
|
+
* @description Name for this sub-organization
|
|
660
|
+
*/
|
|
661
|
+
name: string;
|
|
662
|
+
rootAuthenticator: definitions["v1AuthenticatorParamsV2"];
|
|
663
|
+
};
|
|
664
|
+
v1CreateSubOrganizationIntentV2: {
|
|
665
|
+
/**
|
|
666
|
+
* @inject_tag: validate:"omitempty,tk_label,tk_label_length"
|
|
667
|
+
* @description Name for this sub-organization
|
|
668
|
+
*/
|
|
669
|
+
subOrganizationName: string;
|
|
670
|
+
/**
|
|
671
|
+
* @inject_tag: validate:"required"
|
|
672
|
+
* @description Root users to create within this sub-organization
|
|
673
|
+
*/
|
|
674
|
+
rootUsers: definitions["v1RootUserParams"][];
|
|
675
|
+
/**
|
|
676
|
+
* @inject_tag: validate:"required"
|
|
677
|
+
* Format: int32
|
|
678
|
+
* @description The threshold of unique approvals to reach root quorum. This value must be less than or equal to the number of root users
|
|
679
|
+
*/
|
|
680
|
+
rootQuorumThreshold: number;
|
|
681
|
+
};
|
|
682
|
+
v1CreateSubOrganizationRequest: {
|
|
683
|
+
/** @enum {string} */
|
|
684
|
+
type: "ACTIVITY_TYPE_CREATE_SUB_ORGANIZATION_V2";
|
|
685
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
686
|
+
timestampMs: string;
|
|
687
|
+
/** @description Unique identifier for a given Organization. */
|
|
688
|
+
organizationId: string;
|
|
689
|
+
parameters: definitions["v1CreateSubOrganizationIntentV2"];
|
|
690
|
+
};
|
|
691
|
+
v1CreateSubOrganizationResult: {
|
|
692
|
+
subOrganizationId: string;
|
|
693
|
+
};
|
|
559
694
|
v1CreateUserTagIntent: {
|
|
560
695
|
/**
|
|
561
696
|
* @inject_tag: validate:"required,tk_label,tk_label_length"
|
|
@@ -581,14 +716,21 @@ export type definitions = {
|
|
|
581
716
|
*/
|
|
582
717
|
users: definitions["v1UserParams"][];
|
|
583
718
|
};
|
|
719
|
+
v1CreateUsersIntentV2: {
|
|
720
|
+
/**
|
|
721
|
+
* @inject_tag: validate:"required,dive,required"
|
|
722
|
+
* @description A list of Users.
|
|
723
|
+
*/
|
|
724
|
+
users: definitions["v1UserParamsV2"][];
|
|
725
|
+
};
|
|
584
726
|
v1CreateUsersRequest: {
|
|
585
727
|
/** @enum {string} */
|
|
586
|
-
type: "
|
|
728
|
+
type: "ACTIVITY_TYPE_CREATE_USERS_V2";
|
|
587
729
|
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
588
730
|
timestampMs: string;
|
|
589
731
|
/** @description Unique identifier for a given Organization. */
|
|
590
732
|
organizationId: string;
|
|
591
|
-
parameters: definitions["
|
|
733
|
+
parameters: definitions["v1CreateUsersIntentV2"];
|
|
592
734
|
};
|
|
593
735
|
v1CreateUsersResult: {
|
|
594
736
|
/** @description A list of User IDs. */
|
|
@@ -886,6 +1028,12 @@ export type definitions = {
|
|
|
886
1028
|
updateRootQuorumIntent?: definitions["v1UpdateRootQuorumIntent"];
|
|
887
1029
|
updateUserTagIntent?: definitions["v1UpdateUserTagIntent"];
|
|
888
1030
|
updatePrivateKeyTagIntent?: definitions["v1UpdatePrivateKeyTagIntent"];
|
|
1031
|
+
createAuthenticatorsIntentV2?: definitions["v1CreateAuthenticatorsIntentV2"];
|
|
1032
|
+
acceptInvitationIntentV2?: definitions["v1AcceptInvitationIntentV2"];
|
|
1033
|
+
createOrganizationIntentV2?: definitions["v1CreateOrganizationIntentV2"];
|
|
1034
|
+
createUsersIntentV2?: definitions["v1CreateUsersIntentV2"];
|
|
1035
|
+
createSubOrganizationIntent?: definitions["v1CreateSubOrganizationIntent"];
|
|
1036
|
+
createSubOrganizationIntentV2?: definitions["v1CreateSubOrganizationIntentV2"];
|
|
889
1037
|
};
|
|
890
1038
|
v1Invitation: {
|
|
891
1039
|
/** @description Unique identifier for a given Invitation object. */
|
|
@@ -928,6 +1076,9 @@ export type definitions = {
|
|
|
928
1076
|
};
|
|
929
1077
|
/** @enum {string} */
|
|
930
1078
|
v1InvitationStatus: "INVITATION_STATUS_CREATED" | "INVITATION_STATUS_ACCEPTED" | "INVITATION_STATUS_REVOKED";
|
|
1079
|
+
v1NOOPCodegenAnchorResponse: {
|
|
1080
|
+
stamp: definitions["v1WebAuthnStamp"];
|
|
1081
|
+
};
|
|
931
1082
|
/**
|
|
932
1083
|
* @description This proto definition is used in our external-facing APIs.
|
|
933
1084
|
* It's important to leverage annotations because they're used in our external interfaces.
|
|
@@ -940,13 +1091,8 @@ export type definitions = {
|
|
|
940
1091
|
privateKeys?: definitions["v1PrivateKey"][];
|
|
941
1092
|
invitations?: definitions["v1Invitation"][];
|
|
942
1093
|
tags?: definitions["datav1Tag"][];
|
|
943
|
-
deletedUsers?: definitions["v1User"][];
|
|
944
|
-
deletedPolicies?: definitions["v1Policy"][];
|
|
945
1094
|
disabledPrivateKeys?: definitions["v1PrivateKey"][];
|
|
946
|
-
|
|
947
|
-
deletedApiKeys?: definitions["v1ApiKey"][];
|
|
948
|
-
deletedAuthenticators?: definitions["v1Authenticator"][];
|
|
949
|
-
deletedTags?: definitions["datav1Tag"][];
|
|
1095
|
+
rootQuorum?: definitions["v1Quorum"];
|
|
950
1096
|
};
|
|
951
1097
|
v1Pagination: {
|
|
952
1098
|
/**
|
|
@@ -1032,6 +1178,15 @@ export type definitions = {
|
|
|
1032
1178
|
response: definitions["v1AuthenticatorAttestationResponse"];
|
|
1033
1179
|
clientExtensionResults: definitions["v1SimpleClientExtensionResults"];
|
|
1034
1180
|
};
|
|
1181
|
+
v1Quorum: {
|
|
1182
|
+
/**
|
|
1183
|
+
* Format: int32
|
|
1184
|
+
* @description Count of unique approvals required to meet quorum.
|
|
1185
|
+
*/
|
|
1186
|
+
threshold: number;
|
|
1187
|
+
/** @description Unique identifiers of quorum set members. */
|
|
1188
|
+
userIds: string[];
|
|
1189
|
+
};
|
|
1035
1190
|
v1RejectActivityIntent: {
|
|
1036
1191
|
/**
|
|
1037
1192
|
* @inject_tag: validate:"required"
|
|
@@ -1078,6 +1233,29 @@ export type definitions = {
|
|
|
1078
1233
|
updateRootQuorumResult?: definitions["v1UpdateRootQuorumResult"];
|
|
1079
1234
|
updateUserTagResult?: definitions["v1UpdateUserTagResult"];
|
|
1080
1235
|
updatePrivateKeyTagResult?: definitions["v1UpdatePrivateKeyTagResult"];
|
|
1236
|
+
createSubOrganizationResult?: definitions["v1CreateSubOrganizationResult"];
|
|
1237
|
+
};
|
|
1238
|
+
v1RootUserParams: {
|
|
1239
|
+
/**
|
|
1240
|
+
* @inject_tag: validate:"required,tk_label_length,tk_label"
|
|
1241
|
+
* @description Human-readable name for a User.
|
|
1242
|
+
*/
|
|
1243
|
+
userName: string;
|
|
1244
|
+
/**
|
|
1245
|
+
* @inject_tag: validate:"omitempty,email,tk_email"
|
|
1246
|
+
* @description The user's email address.
|
|
1247
|
+
*/
|
|
1248
|
+
userEmail?: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* @inject_tag: validate:"dive"
|
|
1251
|
+
* @description A list of API Key parameters.
|
|
1252
|
+
*/
|
|
1253
|
+
apiKeys: definitions["v1ApiKeyParams"][];
|
|
1254
|
+
/**
|
|
1255
|
+
* @inject_tag: validate:"dive"
|
|
1256
|
+
* @description A list of Authenticator parameters.
|
|
1257
|
+
*/
|
|
1258
|
+
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
1081
1259
|
};
|
|
1082
1260
|
v1SelectorV2: {
|
|
1083
1261
|
subject?: string;
|
|
@@ -1234,11 +1412,20 @@ export type definitions = {
|
|
|
1234
1412
|
*/
|
|
1235
1413
|
threshold: number;
|
|
1236
1414
|
/**
|
|
1237
|
-
* @inject_tag: validate:"
|
|
1415
|
+
* @inject_tag: validate:"dive,uuid"
|
|
1238
1416
|
* @description The unique identifiers of users who comprise the quorum set.
|
|
1239
1417
|
*/
|
|
1240
1418
|
userIds: string[];
|
|
1241
1419
|
};
|
|
1420
|
+
v1UpdateRootQuorumRequest: {
|
|
1421
|
+
/** @enum {string} */
|
|
1422
|
+
type: "ACTIVITY_TYPE_UPDATE_ROOT_QUORUM";
|
|
1423
|
+
/** @description Timestamp (in milliseconds) of the request, used to verify liveness of user requests. */
|
|
1424
|
+
timestampMs: string;
|
|
1425
|
+
/** @description Unique identifier for a given Organization. */
|
|
1426
|
+
organizationId: string;
|
|
1427
|
+
parameters: definitions["v1UpdateRootQuorumIntent"];
|
|
1428
|
+
};
|
|
1242
1429
|
v1UpdateRootQuorumResult: {
|
|
1243
1430
|
[key: string]: unknown;
|
|
1244
1431
|
};
|
|
@@ -1325,6 +1512,34 @@ export type definitions = {
|
|
|
1325
1512
|
*/
|
|
1326
1513
|
userTags: string[];
|
|
1327
1514
|
};
|
|
1515
|
+
v1UserParamsV2: {
|
|
1516
|
+
/**
|
|
1517
|
+
* @inject_tag: validate:"required,tk_label_length,tk_label"
|
|
1518
|
+
* @description Human-readable name for a User.
|
|
1519
|
+
*/
|
|
1520
|
+
userName: string;
|
|
1521
|
+
/**
|
|
1522
|
+
* @inject_tag: validate:"omitempty,email,tk_email"
|
|
1523
|
+
* @description The user's email address.
|
|
1524
|
+
*/
|
|
1525
|
+
userEmail?: string;
|
|
1526
|
+
accessType: definitions["immutableactivityv1AccessType"];
|
|
1527
|
+
/**
|
|
1528
|
+
* @inject_tag: validate:"dive,uuid"
|
|
1529
|
+
* @description A list of API Key parameters.
|
|
1530
|
+
*/
|
|
1531
|
+
apiKeys: definitions["v1ApiKeyParams"][];
|
|
1532
|
+
/**
|
|
1533
|
+
* @inject_tag: validate:"dive"
|
|
1534
|
+
* @description A list of Authenticator parameters.
|
|
1535
|
+
*/
|
|
1536
|
+
authenticators: definitions["v1AuthenticatorParamsV2"][];
|
|
1537
|
+
/**
|
|
1538
|
+
* @inject_tag: validate:"dive,uuid"
|
|
1539
|
+
* @description A list of User Tag IDs.
|
|
1540
|
+
*/
|
|
1541
|
+
userTags: string[];
|
|
1542
|
+
};
|
|
1328
1543
|
/** @description Object representing a particular User's approval or rejection of a Consensus request, including all relevant metadata. */
|
|
1329
1544
|
v1Vote: {
|
|
1330
1545
|
/** @description Unique identifier for a given Vote object. */
|
|
@@ -1346,6 +1561,17 @@ export type definitions = {
|
|
|
1346
1561
|
scheme: string;
|
|
1347
1562
|
createdAt: definitions["v1Timestamp"];
|
|
1348
1563
|
};
|
|
1564
|
+
/** We expect this to be passed in as a JSON-encoded, then base64-encoded string within a X-Stamp-Webauthn header */
|
|
1565
|
+
v1WebAuthnStamp: {
|
|
1566
|
+
/** @description A base64 url encoded Unique identifier for a given credential. */
|
|
1567
|
+
credentialId: string;
|
|
1568
|
+
/** @description A base64 encoded payload containing metadata about the signing context and the challenge. */
|
|
1569
|
+
clientDataJson: string;
|
|
1570
|
+
/** @description A base64 encoded payload containing metadata about the authenticator. */
|
|
1571
|
+
authenticatorData: string;
|
|
1572
|
+
/** @description The base64 url encoded signature bytes contained within the WebAuthn assertion response. */
|
|
1573
|
+
signature: string;
|
|
1574
|
+
};
|
|
1349
1575
|
};
|
|
1350
1576
|
export type operations = {
|
|
1351
1577
|
/** Get details about an Activity */
|
|
@@ -1686,6 +1912,32 @@ export type operations = {
|
|
|
1686
1912
|
};
|
|
1687
1913
|
};
|
|
1688
1914
|
};
|
|
1915
|
+
/** Create Authenticators to authenticate requests to Turnkey */
|
|
1916
|
+
PublicApiService_CreateAuthenticators: {
|
|
1917
|
+
parameters: {
|
|
1918
|
+
body: {
|
|
1919
|
+
body: definitions["v1CreateAuthenticatorsRequest"];
|
|
1920
|
+
};
|
|
1921
|
+
};
|
|
1922
|
+
responses: {
|
|
1923
|
+
/** A successful response. */
|
|
1924
|
+
200: {
|
|
1925
|
+
schema: definitions["v1ActivityResponse"];
|
|
1926
|
+
};
|
|
1927
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
1928
|
+
403: {
|
|
1929
|
+
schema: unknown;
|
|
1930
|
+
};
|
|
1931
|
+
/** Returned when the resource does not exist. */
|
|
1932
|
+
404: {
|
|
1933
|
+
schema: string;
|
|
1934
|
+
};
|
|
1935
|
+
/** An unexpected error response. */
|
|
1936
|
+
default: {
|
|
1937
|
+
schema: definitions["rpcStatus"];
|
|
1938
|
+
};
|
|
1939
|
+
};
|
|
1940
|
+
};
|
|
1689
1941
|
/** Create Invitations to join an existing Organization */
|
|
1690
1942
|
PublicApiService_CreateInvitations: {
|
|
1691
1943
|
parameters: {
|
|
@@ -1764,6 +2016,32 @@ export type operations = {
|
|
|
1764
2016
|
};
|
|
1765
2017
|
};
|
|
1766
2018
|
};
|
|
2019
|
+
/** Create a new Sub-Organization */
|
|
2020
|
+
PublicApiService_CreateSubOrganization: {
|
|
2021
|
+
parameters: {
|
|
2022
|
+
body: {
|
|
2023
|
+
body: definitions["v1CreateSubOrganizationRequest"];
|
|
2024
|
+
};
|
|
2025
|
+
};
|
|
2026
|
+
responses: {
|
|
2027
|
+
/** A successful response. */
|
|
2028
|
+
200: {
|
|
2029
|
+
schema: definitions["v1ActivityResponse"];
|
|
2030
|
+
};
|
|
2031
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
2032
|
+
403: {
|
|
2033
|
+
schema: unknown;
|
|
2034
|
+
};
|
|
2035
|
+
/** Returned when the resource does not exist. */
|
|
2036
|
+
404: {
|
|
2037
|
+
schema: string;
|
|
2038
|
+
};
|
|
2039
|
+
/** An unexpected error response. */
|
|
2040
|
+
default: {
|
|
2041
|
+
schema: definitions["rpcStatus"];
|
|
2042
|
+
};
|
|
2043
|
+
};
|
|
2044
|
+
};
|
|
1767
2045
|
/** Create Users in an existing Organization */
|
|
1768
2046
|
PublicApiService_CreateUsers: {
|
|
1769
2047
|
parameters: {
|
|
@@ -1972,6 +2250,32 @@ export type operations = {
|
|
|
1972
2250
|
};
|
|
1973
2251
|
};
|
|
1974
2252
|
};
|
|
2253
|
+
/** Set the threshold and members of the root quorum. This must be approved by the current root quorum. */
|
|
2254
|
+
PublicApiService_UpdateRootQuorum: {
|
|
2255
|
+
parameters: {
|
|
2256
|
+
body: {
|
|
2257
|
+
body: definitions["v1UpdateRootQuorumRequest"];
|
|
2258
|
+
};
|
|
2259
|
+
};
|
|
2260
|
+
responses: {
|
|
2261
|
+
/** A successful response. */
|
|
2262
|
+
200: {
|
|
2263
|
+
schema: definitions["v1ActivityResponse"];
|
|
2264
|
+
};
|
|
2265
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
2266
|
+
403: {
|
|
2267
|
+
schema: unknown;
|
|
2268
|
+
};
|
|
2269
|
+
/** Returned when the resource does not exist. */
|
|
2270
|
+
404: {
|
|
2271
|
+
schema: string;
|
|
2272
|
+
};
|
|
2273
|
+
/** An unexpected error response. */
|
|
2274
|
+
default: {
|
|
2275
|
+
schema: definitions["rpcStatus"];
|
|
2276
|
+
};
|
|
2277
|
+
};
|
|
2278
|
+
};
|
|
1975
2279
|
/** 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. */
|
|
1976
2280
|
PublicApiService_UpdateUserTag: {
|
|
1977
2281
|
parameters: {
|
|
@@ -1998,6 +2302,26 @@ export type operations = {
|
|
|
1998
2302
|
};
|
|
1999
2303
|
};
|
|
2000
2304
|
};
|
|
2305
|
+
PublicApiService_NOOPCodegenAnchor: {
|
|
2306
|
+
responses: {
|
|
2307
|
+
/** A successful response. */
|
|
2308
|
+
200: {
|
|
2309
|
+
schema: definitions["v1NOOPCodegenAnchorResponse"];
|
|
2310
|
+
};
|
|
2311
|
+
/** Returned when the user does not have permission to access the resource. */
|
|
2312
|
+
403: {
|
|
2313
|
+
schema: unknown;
|
|
2314
|
+
};
|
|
2315
|
+
/** Returned when the resource does not exist. */
|
|
2316
|
+
404: {
|
|
2317
|
+
schema: string;
|
|
2318
|
+
};
|
|
2319
|
+
/** An unexpected error response. */
|
|
2320
|
+
default: {
|
|
2321
|
+
schema: definitions["rpcStatus"];
|
|
2322
|
+
};
|
|
2323
|
+
};
|
|
2324
|
+
};
|
|
2001
2325
|
/** Get details about a Private Key */
|
|
2002
2326
|
PublicApiService_GetPrivateKeyBackwardsCompat: {
|
|
2003
2327
|
parameters: {
|