@turnkey/http 3.11.1-beta.0 → 3.12.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +15 -6
  2. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts +45 -0
  3. package/dist/__generated__/services/coordinator/public/v1/public_api.client.d.ts.map +1 -1
  4. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js +75 -0
  5. package/dist/__generated__/services/coordinator/public/v1/public_api.client.js.map +1 -1
  6. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs +75 -0
  7. package/dist/__generated__/services/coordinator/public/v1/public_api.client.mjs.map +1 -1
  8. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts +7682 -5670
  9. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.d.ts.map +1 -1
  10. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js +72 -0
  11. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.js.map +1 -1
  12. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs +67 -1
  13. package/dist/__generated__/services/coordinator/public/v1/public_api.fetcher.mjs.map +1 -1
  14. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts +163 -26
  15. package/dist/__generated__/services/coordinator/public/v1/public_api.types.d.ts.map +1 -1
  16. package/dist/async.js.map +1 -1
  17. package/dist/async.mjs.map +1 -1
  18. package/dist/base.js.map +1 -1
  19. package/dist/base.mjs.map +1 -1
  20. package/dist/config.js.map +1 -1
  21. package/dist/config.mjs.map +1 -1
  22. package/dist/shared.js.map +1 -1
  23. package/dist/shared.mjs.map +1 -1
  24. package/dist/universal.js.map +1 -1
  25. package/dist/universal.mjs.map +1 -1
  26. package/dist/version.d.ts +1 -1
  27. package/dist/version.d.ts.map +1 -1
  28. package/dist/version.js +1 -1
  29. package/dist/version.mjs +1 -1
  30. package/dist/webauthn-json/base64url.js.map +1 -1
  31. package/dist/webauthn-json/base64url.mjs.map +1 -1
  32. package/dist/webauthn-json/convert.js.map +1 -1
  33. package/dist/webauthn-json/convert.mjs.map +1 -1
  34. package/dist/webauthn-json/schema.js.map +1 -1
  35. package/dist/webauthn-json/schema.mjs.map +1 -1
  36. package/dist/webauthn.js.map +1 -1
  37. package/dist/webauthn.mjs.map +1 -1
  38. package/package.json +4 -4
@@ -27,6 +27,14 @@ export type paths = {
27
27
  /** Get details about authenticators for a user. */
28
28
  post: operations["PublicApiService_GetAuthenticators"];
29
29
  };
30
+ "/public/v1/query/get_boot_proof": {
31
+ /** Get the boot proof for a given ephemeral key. */
32
+ post: operations["PublicApiService_GetBootProof"];
33
+ };
34
+ "/public/v1/query/get_latest_boot_proof": {
35
+ /** Get the latest boot proof for a given enclave app name. */
36
+ post: operations["PublicApiService_GetLatestBootProof"];
37
+ };
30
38
  "/public/v1/query/get_oauth2_credential": {
31
39
  /** Get details about an OAuth 2.0 credential. */
32
40
  post: operations["PublicApiService_GetOauth2Credential"];
@@ -75,6 +83,10 @@ export type paths = {
75
83
  /** List all activities within an organization. */
76
84
  post: operations["PublicApiService_GetActivities"];
77
85
  };
86
+ "/public/v1/query/list_app_proofs": {
87
+ /** List the app proofs for the given activity. */
88
+ post: operations["PublicApiService_GetAppProofs"];
89
+ };
78
90
  "/public/v1/query/list_oauth2_credentials": {
79
91
  /** List all OAuth 2.0 credentials within an organization. */
80
92
  post: operations["PublicApiService_ListOauth2Credentials"];
@@ -477,7 +489,7 @@ export type definitions = {
477
489
  /** @description Unique identifier for the Vote associated with this policy evaluation. */
478
490
  voteId: string;
479
491
  /** @description Detailed evaluation result for each Policy that was run. */
480
- policyEvaluations: definitions["privateumpv1PolicyEvaluation"][];
492
+ policyEvaluations: definitions["immutablecommonv1PolicyEvaluation"][];
481
493
  createdAt: definitions["externaldatav1Timestamp"];
482
494
  };
483
495
  externaldatav1Address: {
@@ -498,24 +510,6 @@ export type definitions = {
498
510
  /** @description Unique identifiers of quorum set members. */
499
511
  userIds: string[];
500
512
  };
501
- externaldatav1SmartContractInterface: {
502
- /** @description The Organization the Smart Contract Interface belongs to. */
503
- organizationId: string;
504
- /** @description Unique identifier for a given Smart Contract Interface (ABI or IDL). */
505
- smartContractInterfaceId: string;
506
- /** @description The address corresponding to the Smart Contract or Program. */
507
- smartContractAddress: string;
508
- /** @description The JSON corresponding to the Smart Contract Interface (ABI or IDL). */
509
- smartContractInterface: string;
510
- /** @description The type corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
511
- type: string;
512
- /** @description The label corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
513
- label: string;
514
- /** @description The notes corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
515
- notes: string;
516
- createdAt: definitions["externaldatav1Timestamp"];
517
- updatedAt: definitions["externaldatav1Timestamp"];
518
- };
519
513
  externaldatav1Timestamp: {
520
514
  seconds: string;
521
515
  nanos: string;
@@ -524,7 +518,7 @@ export type definitions = {
524
518
  format?: definitions["v1AddressFormat"];
525
519
  address?: string;
526
520
  };
527
- privateumpv1PolicyEvaluation: {
521
+ immutablecommonv1PolicyEvaluation: {
528
522
  policyId?: string;
529
523
  outcome?: definitions["v1Outcome"];
530
524
  };
@@ -578,6 +572,8 @@ export type definitions = {
578
572
  result: definitions["v1Result"];
579
573
  /** @description A list of objects representing a particular User's approval or rejection of a Consensus request, including all relevant metadata. */
580
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"][];
581
577
  /** @description An artifact verifying a User's action. */
582
578
  fingerprint: string;
583
579
  canApprove: boolean;
@@ -634,6 +630,16 @@ export type definitions = {
634
630
  /** @description A list of API Key parameters. This field, if not needed, should be an empty array in your request body. */
635
631
  apiKeys: definitions["apiApiKeyParams"][];
636
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
+ };
637
643
  v1ApproveActivityIntent: {
638
644
  /** @description An artifact verifying a User's action. */
639
645
  fingerprint: string;
@@ -702,6 +708,26 @@ export type definitions = {
702
708
  };
703
709
  /** @enum {string} */
704
710
  v1AuthenticatorTransport: "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
711
+ v1BootProof: {
712
+ /** @description The hex encoded Ephemeral Public Key. */
713
+ ephemeralPublicKeyHex: string;
714
+ /** @description The DER encoded COSE Sign1 struct Attestation doc. */
715
+ awsAttestationDocB64: string;
716
+ /** @description The borsch serialized base64 encoded Manifest. */
717
+ qosManifestB64: string;
718
+ /** @description The borsch serialized base64 encoded Manifest Envelope. */
719
+ qosManifestEnvelopeB64: string;
720
+ /** @description The label under which the enclave app was deployed. */
721
+ deploymentLabel: string;
722
+ /** @description Name of the enclave app */
723
+ enclaveApp: string;
724
+ /** @description Owner of the app i.e. 'tkhq' */
725
+ owner: string;
726
+ createdAt: definitions["externaldatav1Timestamp"];
727
+ };
728
+ v1BootProofResponse: {
729
+ bootProof: definitions["v1BootProof"];
730
+ };
705
731
  v1Config: {
706
732
  features?: definitions["v1Feature"][];
707
733
  quorum?: definitions["externaldatav1Quorum"];
@@ -1766,6 +1792,15 @@ export type definitions = {
1766
1792
  /** @description A list of API keys. */
1767
1793
  apiKeys: definitions["v1ApiKey"][];
1768
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
+ };
1769
1804
  v1GetAttestationDocumentRequest: {
1770
1805
  /** @description Unique identifier for a given organization. */
1771
1806
  organizationId: string;
@@ -1799,6 +1834,18 @@ export type definitions = {
1799
1834
  /** @description A list of authenticators. */
1800
1835
  authenticators: definitions["v1Authenticator"][];
1801
1836
  };
1837
+ v1GetBootProofRequest: {
1838
+ /** @description Unique identifier for a given Organization. */
1839
+ organizationId: string;
1840
+ /** @description Hex encoded ephemeral public key. */
1841
+ ephemeralKey: string;
1842
+ };
1843
+ v1GetLatestBootProofRequest: {
1844
+ /** @description Unique identifier for a given Organization. */
1845
+ organizationId: string;
1846
+ /** @description Name of enclave app. */
1847
+ appName: string;
1848
+ };
1802
1849
  v1GetOauth2CredentialRequest: {
1803
1850
  /** @description Unique identifier for a given Organization. */
1804
1851
  organizationId: string;
@@ -1887,7 +1934,7 @@ export type definitions = {
1887
1934
  };
1888
1935
  v1GetSmartContractInterfaceResponse: {
1889
1936
  /** @description Object to be used in conjunction with policies to guard transaction signing. */
1890
- smartContractInterface: definitions["externaldatav1SmartContractInterface"];
1937
+ smartContractInterface: definitions["v1SmartContractInterface"];
1891
1938
  };
1892
1939
  v1GetSmartContractInterfacesRequest: {
1893
1940
  /** @description Unique identifier for a given organization. */
@@ -1895,7 +1942,7 @@ export type definitions = {
1895
1942
  };
1896
1943
  v1GetSmartContractInterfacesResponse: {
1897
1944
  /** @description A list of smart contract interfaces. */
1898
- smartContractInterfaces: definitions["externaldatav1SmartContractInterface"][];
1945
+ smartContractInterfaces: definitions["v1SmartContractInterface"][];
1899
1946
  };
1900
1947
  v1GetSubOrgIdsRequest: {
1901
1948
  /** @description Unique identifier for the parent organization. This is used to find sub-organizations within it. */
@@ -2078,6 +2125,8 @@ export type definitions = {
2078
2125
  countrySubdivisionCode?: string;
2079
2126
  /** @description Optional flag to indicate whether to use the sandbox mode to simulate transactions for the on-ramp provider. Default is false. */
2080
2127
  sandboxMode?: boolean;
2128
+ /** @description Optional MoonPay Widget URL to sign when using MoonPay client SDKs with URL Signing enabled. */
2129
+ urlForSignature?: string;
2081
2130
  };
2082
2131
  v1InitFiatOnRampRequest: {
2083
2132
  /** @enum {string} */
@@ -2093,6 +2142,8 @@ export type definitions = {
2093
2142
  onRampUrl: string;
2094
2143
  /** @description Unique identifier used to retrieve transaction statuses for a given fiat on-ramp flow. */
2095
2144
  onRampTransactionId: string;
2145
+ /** @description Optional signature of the MoonPay Widget URL. The signature is generated if the Init Fiat On Ramp intent includes the urlForSignature field. The signature can be used to initialize the MoonPay SDKs when URL signing is enabled for your project. */
2146
+ onRampUrlSignature?: string;
2096
2147
  };
2097
2148
  v1InitImportPrivateKeyIntent: {
2098
2149
  /** @description The ID of the User importing a Private Key. */
@@ -2582,6 +2633,8 @@ export type definitions = {
2582
2633
  expirationSeconds?: string;
2583
2634
  /** @description Invalidate all other previously generated Login API keys */
2584
2635
  invalidateExisting?: boolean;
2636
+ /** @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. */
2637
+ clientSignature?: string;
2585
2638
  };
2586
2639
  v1OtpLoginRequest: {
2587
2640
  /** @enum {string} */
@@ -2969,11 +3022,31 @@ export type definitions = {
2969
3022
  v1SignTransactionResult: {
2970
3023
  signedTransaction: string;
2971
3024
  };
3025
+ /** @enum {string} */
3026
+ v1SignatureScheme: "SIGNATURE_SCHEME_EPHEMERAL_KEY_P256";
2972
3027
  v1SimpleClientExtensionResults: {
2973
3028
  appid?: boolean;
2974
3029
  appidExclude?: boolean;
2975
3030
  credProps?: definitions["v1CredPropsAuthenticationExtensionsClientOutputs"];
2976
3031
  };
3032
+ v1SmartContractInterface: {
3033
+ /** @description The Organization the Smart Contract Interface belongs to. */
3034
+ organizationId: string;
3035
+ /** @description Unique identifier for a given Smart Contract Interface (ABI or IDL). */
3036
+ smartContractInterfaceId: string;
3037
+ /** @description The address corresponding to the Smart Contract or Program. */
3038
+ smartContractAddress: string;
3039
+ /** @description The JSON corresponding to the Smart Contract Interface (ABI or IDL). */
3040
+ smartContractInterface: string;
3041
+ /** @description The type corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
3042
+ type: string;
3043
+ /** @description The label corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
3044
+ label: string;
3045
+ /** @description The notes corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
3046
+ notes: string;
3047
+ createdAt: definitions["externaldatav1Timestamp"];
3048
+ updatedAt: definitions["externaldatav1Timestamp"];
3049
+ };
2977
3050
  v1SmartContractInterfaceReference: {
2978
3051
  smartContractInterfaceId?: string;
2979
3052
  smartContractAddress?: string;
@@ -3072,10 +3145,6 @@ export type definitions = {
3072
3145
  * @description Desired OTP code length (6–9).
3073
3146
  */
3074
3147
  otpLength?: number;
3075
- /** @description A map of OAuth 2.0 provider and their respective credential ID to use for the OAuth 2.0 authentication flow. */
3076
- oauth2ProviderCredentialIds?: {
3077
- [key: string]: string;
3078
- };
3079
3148
  };
3080
3149
  v1UpdateAuthProxyConfigResult: {
3081
3150
  /** @description Unique identifier for a given User. (representing the turnkey signer user id) */
@@ -3390,6 +3459,8 @@ export type definitions = {
3390
3459
  otpCode: string;
3391
3460
  /** @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) */
3392
3461
  expirationSeconds?: string;
3462
+ /** @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 */
3463
+ publicKey?: string;
3393
3464
  };
3394
3465
  v1VerifyOtpRequest: {
3395
3466
  /** @enum {string} */
@@ -3477,6 +3548,18 @@ export type definitions = {
3477
3548
  * @description List of enabled social login providers (e.g., 'apple', 'google', 'facebook')
3478
3549
  */
3479
3550
  enabledSocialProviders?: string[];
3551
+ /**
3552
+ * Oauth Client IDs
3553
+ * @description Mapping of social login providers to their Oauth client IDs.
3554
+ */
3555
+ oauthClientIds?: {
3556
+ [key: string]: string;
3557
+ };
3558
+ /**
3559
+ * Oauth Redirect URL
3560
+ * @description Oauth redirect URL to be used for social login flows.
3561
+ */
3562
+ oauthRedirectUrl?: string;
3480
3563
  };
3481
3564
  v1WalletParams: {
3482
3565
  /** @description Human-readable name for a Wallet. */
@@ -3614,6 +3697,42 @@ export type operations = {
3614
3697
  };
3615
3698
  };
3616
3699
  };
3700
+ /** Get the boot proof for a given ephemeral key. */
3701
+ PublicApiService_GetBootProof: {
3702
+ parameters: {
3703
+ body: {
3704
+ body: definitions["v1GetBootProofRequest"];
3705
+ };
3706
+ };
3707
+ responses: {
3708
+ /** A successful response. */
3709
+ 200: {
3710
+ schema: definitions["v1BootProofResponse"];
3711
+ };
3712
+ /** An unexpected error response. */
3713
+ default: {
3714
+ schema: definitions["rpcStatus"];
3715
+ };
3716
+ };
3717
+ };
3718
+ /** Get the latest boot proof for a given enclave app name. */
3719
+ PublicApiService_GetLatestBootProof: {
3720
+ parameters: {
3721
+ body: {
3722
+ body: definitions["v1GetLatestBootProofRequest"];
3723
+ };
3724
+ };
3725
+ responses: {
3726
+ /** A successful response. */
3727
+ 200: {
3728
+ schema: definitions["v1BootProofResponse"];
3729
+ };
3730
+ /** An unexpected error response. */
3731
+ default: {
3732
+ schema: definitions["rpcStatus"];
3733
+ };
3734
+ };
3735
+ };
3617
3736
  /** Get details about an OAuth 2.0 credential. */
3618
3737
  PublicApiService_GetOauth2Credential: {
3619
3738
  parameters: {
@@ -3830,6 +3949,24 @@ export type operations = {
3830
3949
  };
3831
3950
  };
3832
3951
  };
3952
+ /** List the app proofs for the given activity. */
3953
+ PublicApiService_GetAppProofs: {
3954
+ parameters: {
3955
+ body: {
3956
+ body: definitions["v1GetAppProofsRequest"];
3957
+ };
3958
+ };
3959
+ responses: {
3960
+ /** A successful response. */
3961
+ 200: {
3962
+ schema: definitions["v1GetAppProofsResponse"];
3963
+ };
3964
+ /** An unexpected error response. */
3965
+ default: {
3966
+ schema: definitions["rpcStatus"];
3967
+ };
3968
+ };
3969
+ };
3833
3970
  /** List all OAuth 2.0 credentials within an organization. */
3834
3971
  PublicApiService_ListOauth2Credentials: {
3835
3972
  parameters: {