@turnkey/sdk-browser 5.10.0 → 5.11.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 +26 -12
- package/dist/__clients__/base-client.js.map +1 -1
- package/dist/__clients__/base-client.mjs.map +1 -1
- package/dist/__clients__/browser-clients.js.map +1 -1
- package/dist/__clients__/browser-clients.mjs.map +1 -1
- package/dist/__generated__/sdk-client-base.d.ts +2 -0
- package/dist/__generated__/sdk-client-base.d.ts.map +1 -1
- package/dist/__generated__/sdk-client-base.js +23 -0
- package/dist/__generated__/sdk-client-base.js.map +1 -1
- package/dist/__generated__/sdk-client-base.mjs +23 -0
- package/dist/__generated__/sdk-client-base.mjs.map +1 -1
- package/dist/__generated__/sdk_api_types.d.ts +5 -0
- package/dist/__generated__/sdk_api_types.d.ts.map +1 -1
- package/dist/__generated__/version.d.ts +1 -1
- package/dist/__generated__/version.js +1 -1
- package/dist/__generated__/version.mjs +1 -1
- package/dist/__inputs__/public_api.types.d.ts +51 -0
- package/dist/__inputs__/public_api.types.d.ts.map +1 -1
- package/dist/__polyfills__/window.js.map +1 -1
- package/dist/__polyfills__/window.mjs.map +1 -1
- package/dist/__types__/base.js.map +1 -1
- package/dist/__types__/base.mjs.map +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/constants.mjs.map +1 -1
- package/dist/sdk-client.js.map +1 -1
- package/dist/sdk-client.mjs.map +1 -1
- package/dist/storage.js.map +1 -1
- package/dist/storage.mjs.map +1 -1
- package/dist/turnkey-helpers.js.map +1 -1
- package/dist/turnkey-helpers.mjs.map +1 -1
- package/dist/utils.js.map +1 -1
- package/dist/utils.mjs.map +1 -1
- package/package.json +8 -8
|
@@ -83,6 +83,10 @@ export type paths = {
|
|
|
83
83
|
/** List all activities within an organization. */
|
|
84
84
|
post: operations["PublicApiService_GetActivities"];
|
|
85
85
|
};
|
|
86
|
+
"/public/v1/query/list_app_proofs": {
|
|
87
|
+
/** List the app proofs for the given activity. */
|
|
88
|
+
post: operations["PublicApiService_GetAppProofs"];
|
|
89
|
+
};
|
|
86
90
|
"/public/v1/query/list_oauth2_credentials": {
|
|
87
91
|
/** List all OAuth 2.0 credentials within an organization. */
|
|
88
92
|
post: operations["PublicApiService_ListOauth2Credentials"];
|
|
@@ -568,6 +572,8 @@ export type definitions = {
|
|
|
568
572
|
result: definitions["v1Result"];
|
|
569
573
|
/** @description A list of objects representing a particular User's approval or rejection of a Consensus request, including all relevant metadata. */
|
|
570
574
|
votes: definitions["v1Vote"][];
|
|
575
|
+
/** @description A list of app proofs generated by enclaves during activity execution, providing verifiable attestations of performed operations. */
|
|
576
|
+
appProofs?: definitions["v1AppProof"][];
|
|
571
577
|
/** @description An artifact verifying a User's action. */
|
|
572
578
|
fingerprint: string;
|
|
573
579
|
canApprove: boolean;
|
|
@@ -624,6 +630,16 @@ export type definitions = {
|
|
|
624
630
|
/** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
|
|
625
631
|
apiKeys: definitions["apiApiKeyParams"][];
|
|
626
632
|
};
|
|
633
|
+
v1AppProof: {
|
|
634
|
+
/** @description Scheme of signing key. */
|
|
635
|
+
scheme: definitions["v1SignatureScheme"];
|
|
636
|
+
/** @description Ephemeral public key. */
|
|
637
|
+
publicKey: string;
|
|
638
|
+
/** @description JSON serialized AppProofPayload. */
|
|
639
|
+
proofPayload: string;
|
|
640
|
+
/** @description Signature over hashed proof_payload. */
|
|
641
|
+
signature: string;
|
|
642
|
+
};
|
|
627
643
|
v1ApproveActivityIntent: {
|
|
628
644
|
/** @description An artifact verifying a User's action. */
|
|
629
645
|
fingerprint: string;
|
|
@@ -1776,6 +1792,15 @@ export type definitions = {
|
|
|
1776
1792
|
/** @description A list of API keys. */
|
|
1777
1793
|
apiKeys: definitions["v1ApiKey"][];
|
|
1778
1794
|
};
|
|
1795
|
+
v1GetAppProofsRequest: {
|
|
1796
|
+
/** @description Unique identifier for a given Organization. */
|
|
1797
|
+
organizationId: string;
|
|
1798
|
+
/** @description Unique identifier for a given activity. */
|
|
1799
|
+
activityId: string;
|
|
1800
|
+
};
|
|
1801
|
+
v1GetAppProofsResponse: {
|
|
1802
|
+
appProofs: definitions["v1AppProof"][];
|
|
1803
|
+
};
|
|
1779
1804
|
v1GetAttestationDocumentRequest: {
|
|
1780
1805
|
/** @description Unique identifier for a given organization. */
|
|
1781
1806
|
organizationId: string;
|
|
@@ -2451,6 +2476,8 @@ export type definitions = {
|
|
|
2451
2476
|
codeVerifier: string;
|
|
2452
2477
|
/** @description An optional nonce used by the client to prevent replay/substitution of an ID token */
|
|
2453
2478
|
nonce?: string;
|
|
2479
|
+
/** @description An optional P256 public key to which, if provided, the bearer token will be encrypted and returned via the `encrypted_bearer_token` claim of the OIDC Token */
|
|
2480
|
+
bearerTokenTargetPublicKey?: string;
|
|
2454
2481
|
};
|
|
2455
2482
|
v1Oauth2AuthenticateRequest: {
|
|
2456
2483
|
/** @enum {string} */
|
|
@@ -2608,6 +2635,8 @@ export type definitions = {
|
|
|
2608
2635
|
expirationSeconds?: string;
|
|
2609
2636
|
/** @description Invalidate all other previously generated Login API keys */
|
|
2610
2637
|
invalidateExisting?: boolean;
|
|
2638
|
+
/** @description Optional signature associated with the public key passed into the verification step. This must be a hex-encoded ECDSA signature over the verification token. Only required if a public key was provided during the verification step. */
|
|
2639
|
+
clientSignature?: string;
|
|
2611
2640
|
};
|
|
2612
2641
|
v1OtpLoginRequest: {
|
|
2613
2642
|
/** @enum {string} */
|
|
@@ -2995,6 +3024,8 @@ export type definitions = {
|
|
|
2995
3024
|
v1SignTransactionResult: {
|
|
2996
3025
|
signedTransaction: string;
|
|
2997
3026
|
};
|
|
3027
|
+
/** @enum {string} */
|
|
3028
|
+
v1SignatureScheme: "SIGNATURE_SCHEME_EPHEMERAL_KEY_P256";
|
|
2998
3029
|
v1SimpleClientExtensionResults: {
|
|
2999
3030
|
appid?: boolean;
|
|
3000
3031
|
appidExclude?: boolean;
|
|
@@ -3430,6 +3461,8 @@ export type definitions = {
|
|
|
3430
3461
|
otpCode: string;
|
|
3431
3462
|
/** @description Expiration window (in seconds) indicating how long the verification token is valid for. If not provided, a default of 1 hour will be used. Maximum value is 86400 seconds (24 hours) */
|
|
3432
3463
|
expirationSeconds?: string;
|
|
3464
|
+
/** @description Client-side public key generated by the user, which will be added to the JWT response and verified in subsequent requests via a client proof signature */
|
|
3465
|
+
publicKey?: string;
|
|
3433
3466
|
};
|
|
3434
3467
|
v1VerifyOtpRequest: {
|
|
3435
3468
|
/** @enum {string} */
|
|
@@ -3918,6 +3951,24 @@ export type operations = {
|
|
|
3918
3951
|
};
|
|
3919
3952
|
};
|
|
3920
3953
|
};
|
|
3954
|
+
/** List the app proofs for the given activity. */
|
|
3955
|
+
PublicApiService_GetAppProofs: {
|
|
3956
|
+
parameters: {
|
|
3957
|
+
body: {
|
|
3958
|
+
body: definitions["v1GetAppProofsRequest"];
|
|
3959
|
+
};
|
|
3960
|
+
};
|
|
3961
|
+
responses: {
|
|
3962
|
+
/** A successful response. */
|
|
3963
|
+
200: {
|
|
3964
|
+
schema: definitions["v1GetAppProofsResponse"];
|
|
3965
|
+
};
|
|
3966
|
+
/** An unexpected error response. */
|
|
3967
|
+
default: {
|
|
3968
|
+
schema: definitions["rpcStatus"];
|
|
3969
|
+
};
|
|
3970
|
+
};
|
|
3971
|
+
};
|
|
3921
3972
|
/** List all OAuth 2.0 credentials within an organization. */
|
|
3922
3973
|
PublicApiService_ListOauth2Credentials: {
|
|
3923
3974
|
parameters: {
|