@turnkey/core 1.0.0-beta.6 → 1.0.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 (39) hide show
  1. package/README.MD +3 -1
  2. package/dist/__clients__/core.d.ts +48 -3
  3. package/dist/__clients__/core.d.ts.map +1 -1
  4. package/dist/__clients__/core.js +173 -14
  5. package/dist/__clients__/core.js.map +1 -1
  6. package/dist/__clients__/core.mjs +174 -15
  7. package/dist/__clients__/core.mjs.map +1 -1
  8. package/dist/__generated__/sdk-client-base.d.ts +4 -0
  9. package/dist/__generated__/sdk-client-base.d.ts.map +1 -1
  10. package/dist/__generated__/sdk-client-base.js +58 -0
  11. package/dist/__generated__/sdk-client-base.js.map +1 -1
  12. package/dist/__generated__/sdk-client-base.mjs +58 -0
  13. package/dist/__generated__/sdk-client-base.mjs.map +1 -1
  14. package/dist/__generated__/version.d.ts +1 -1
  15. package/dist/__generated__/version.d.ts.map +1 -1
  16. package/dist/__generated__/version.js +1 -1
  17. package/dist/__generated__/version.mjs +1 -1
  18. package/dist/__inputs__/public_api.types.d.ts +114 -26
  19. package/dist/__inputs__/public_api.types.d.ts.map +1 -1
  20. package/dist/__wallet__/base.d.ts.map +1 -1
  21. package/dist/__wallet__/base.js +6 -6
  22. package/dist/__wallet__/base.js.map +1 -1
  23. package/dist/__wallet__/base.mjs +2 -2
  24. package/dist/__wallet__/base.mjs.map +1 -1
  25. package/dist/__wallet__/wallet-connect/base.js +5 -6
  26. package/dist/__wallet__/wallet-connect/base.js.map +1 -1
  27. package/dist/__wallet__/wallet-connect/base.mjs +1 -2
  28. package/dist/__wallet__/wallet-connect/base.mjs.map +1 -1
  29. package/dist/__wallet__/web/native/solana.js +1 -2
  30. package/dist/__wallet__/web/native/solana.js.map +1 -1
  31. package/dist/__wallet__/web/native/solana.mjs +1 -2
  32. package/dist/__wallet__/web/native/solana.mjs.map +1 -1
  33. package/dist/utils.d.ts +7 -5
  34. package/dist/utils.d.ts.map +1 -1
  35. package/dist/utils.js +30 -19
  36. package/dist/utils.js.map +1 -1
  37. package/dist/utils.mjs +29 -19
  38. package/dist/utils.mjs.map +1 -1
  39. package/package.json +8 -9
@@ -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"];
@@ -477,7 +485,7 @@ export type definitions = {
477
485
  /** @description Unique identifier for the Vote associated with this policy evaluation. */
478
486
  voteId: string;
479
487
  /** @description Detailed evaluation result for each Policy that was run. */
480
- policyEvaluations: definitions["privateumpv1PolicyEvaluation"][];
488
+ policyEvaluations: definitions["immutablecommonv1PolicyEvaluation"][];
481
489
  createdAt: definitions["externaldatav1Timestamp"];
482
490
  };
483
491
  externaldatav1Address: {
@@ -498,24 +506,6 @@ export type definitions = {
498
506
  /** @description Unique identifiers of quorum set members. */
499
507
  userIds: string[];
500
508
  };
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
509
  externaldatav1Timestamp: {
520
510
  seconds: string;
521
511
  nanos: string;
@@ -524,7 +514,7 @@ export type definitions = {
524
514
  format?: definitions["v1AddressFormat"];
525
515
  address?: string;
526
516
  };
527
- privateumpv1PolicyEvaluation: {
517
+ immutablecommonv1PolicyEvaluation: {
528
518
  policyId?: string;
529
519
  outcome?: definitions["v1Outcome"];
530
520
  };
@@ -702,6 +692,26 @@ export type definitions = {
702
692
  };
703
693
  /** @enum {string} */
704
694
  v1AuthenticatorTransport: "AUTHENTICATOR_TRANSPORT_BLE" | "AUTHENTICATOR_TRANSPORT_INTERNAL" | "AUTHENTICATOR_TRANSPORT_NFC" | "AUTHENTICATOR_TRANSPORT_USB" | "AUTHENTICATOR_TRANSPORT_HYBRID";
695
+ v1BootProof: {
696
+ /** @description The hex encoded Ephemeral Public Key. */
697
+ ephemeralPublicKeyHex: string;
698
+ /** @description The DER encoded COSE Sign1 struct Attestation doc. */
699
+ awsAttestationDocB64: string;
700
+ /** @description The borsch serialized base64 encoded Manifest. */
701
+ qosManifestB64: string;
702
+ /** @description The borsch serialized base64 encoded Manifest Envelope. */
703
+ qosManifestEnvelopeB64: string;
704
+ /** @description The label under which the enclave app was deployed. */
705
+ deploymentLabel: string;
706
+ /** @description Name of the enclave app */
707
+ enclaveApp: string;
708
+ /** @description Owner of the app i.e. 'tkhq' */
709
+ owner: string;
710
+ createdAt: definitions["externaldatav1Timestamp"];
711
+ };
712
+ v1BootProofResponse: {
713
+ bootProof: definitions["v1BootProof"];
714
+ };
705
715
  v1Config: {
706
716
  features?: definitions["v1Feature"][];
707
717
  quorum?: definitions["externaldatav1Quorum"];
@@ -1799,6 +1809,18 @@ export type definitions = {
1799
1809
  /** @description A list of authenticators. */
1800
1810
  authenticators: definitions["v1Authenticator"][];
1801
1811
  };
1812
+ v1GetBootProofRequest: {
1813
+ /** @description Unique identifier for a given Organization. */
1814
+ organizationId: string;
1815
+ /** @description Hex encoded ephemeral public key. */
1816
+ ephemeralKey: string;
1817
+ };
1818
+ v1GetLatestBootProofRequest: {
1819
+ /** @description Unique identifier for a given Organization. */
1820
+ organizationId: string;
1821
+ /** @description Name of enclave app. */
1822
+ appName: string;
1823
+ };
1802
1824
  v1GetOauth2CredentialRequest: {
1803
1825
  /** @description Unique identifier for a given Organization. */
1804
1826
  organizationId: string;
@@ -1887,7 +1909,7 @@ export type definitions = {
1887
1909
  };
1888
1910
  v1GetSmartContractInterfaceResponse: {
1889
1911
  /** @description Object to be used in conjunction with policies to guard transaction signing. */
1890
- smartContractInterface: definitions["externaldatav1SmartContractInterface"];
1912
+ smartContractInterface: definitions["v1SmartContractInterface"];
1891
1913
  };
1892
1914
  v1GetSmartContractInterfacesRequest: {
1893
1915
  /** @description Unique identifier for a given organization. */
@@ -1895,7 +1917,7 @@ export type definitions = {
1895
1917
  };
1896
1918
  v1GetSmartContractInterfacesResponse: {
1897
1919
  /** @description A list of smart contract interfaces. */
1898
- smartContractInterfaces: definitions["externaldatav1SmartContractInterface"][];
1920
+ smartContractInterfaces: definitions["v1SmartContractInterface"][];
1899
1921
  };
1900
1922
  v1GetSubOrgIdsRequest: {
1901
1923
  /** @description Unique identifier for the parent organization. This is used to find sub-organizations within it. */
@@ -2078,6 +2100,8 @@ export type definitions = {
2078
2100
  countrySubdivisionCode?: string;
2079
2101
  /** @description Optional flag to indicate whether to use the sandbox mode to simulate transactions for the on-ramp provider. Default is false. */
2080
2102
  sandboxMode?: boolean;
2103
+ /** @description Optional MoonPay Widget URL to sign when using MoonPay client SDKs with URL Signing enabled. */
2104
+ urlForSignature?: string;
2081
2105
  };
2082
2106
  v1InitFiatOnRampRequest: {
2083
2107
  /** @enum {string} */
@@ -2093,6 +2117,8 @@ export type definitions = {
2093
2117
  onRampUrl: string;
2094
2118
  /** @description Unique identifier used to retrieve transaction statuses for a given fiat on-ramp flow. */
2095
2119
  onRampTransactionId: string;
2120
+ /** @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. */
2121
+ onRampUrlSignature?: string;
2096
2122
  };
2097
2123
  v1InitImportPrivateKeyIntent: {
2098
2124
  /** @description The ID of the User importing a Private Key. */
@@ -2974,6 +3000,24 @@ export type definitions = {
2974
3000
  appidExclude?: boolean;
2975
3001
  credProps?: definitions["v1CredPropsAuthenticationExtensionsClientOutputs"];
2976
3002
  };
3003
+ v1SmartContractInterface: {
3004
+ /** @description The Organization the Smart Contract Interface belongs to. */
3005
+ organizationId: string;
3006
+ /** @description Unique identifier for a given Smart Contract Interface (ABI or IDL). */
3007
+ smartContractInterfaceId: string;
3008
+ /** @description The address corresponding to the Smart Contract or Program. */
3009
+ smartContractAddress: string;
3010
+ /** @description The JSON corresponding to the Smart Contract Interface (ABI or IDL). */
3011
+ smartContractInterface: string;
3012
+ /** @description The type corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
3013
+ type: string;
3014
+ /** @description The label corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
3015
+ label: string;
3016
+ /** @description The notes corresponding to the Smart Contract Interface (either ETHEREUM or SOLANA). */
3017
+ notes: string;
3018
+ createdAt: definitions["externaldatav1Timestamp"];
3019
+ updatedAt: definitions["externaldatav1Timestamp"];
3020
+ };
2977
3021
  v1SmartContractInterfaceReference: {
2978
3022
  smartContractInterfaceId?: string;
2979
3023
  smartContractAddress?: string;
@@ -3072,10 +3116,6 @@ export type definitions = {
3072
3116
  * @description Desired OTP code length (6–9).
3073
3117
  */
3074
3118
  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
3119
  };
3080
3120
  v1UpdateAuthProxyConfigResult: {
3081
3121
  /** @description Unique identifier for a given User. (representing the turnkey signer user id) */
@@ -3477,6 +3517,18 @@ export type definitions = {
3477
3517
  * @description List of enabled social login providers (e.g., 'apple', 'google', 'facebook')
3478
3518
  */
3479
3519
  enabledSocialProviders?: string[];
3520
+ /**
3521
+ * Oauth Client IDs
3522
+ * @description Mapping of social login providers to their Oauth client IDs.
3523
+ */
3524
+ oauthClientIds?: {
3525
+ [key: string]: string;
3526
+ };
3527
+ /**
3528
+ * Oauth Redirect URL
3529
+ * @description Oauth redirect URL to be used for social login flows.
3530
+ */
3531
+ oauthRedirectUrl?: string;
3480
3532
  };
3481
3533
  v1WalletParams: {
3482
3534
  /** @description Human-readable name for a Wallet. */
@@ -3614,6 +3666,42 @@ export type operations = {
3614
3666
  };
3615
3667
  };
3616
3668
  };
3669
+ /** Get the boot proof for a given ephemeral key. */
3670
+ PublicApiService_GetBootProof: {
3671
+ parameters: {
3672
+ body: {
3673
+ body: definitions["v1GetBootProofRequest"];
3674
+ };
3675
+ };
3676
+ responses: {
3677
+ /** A successful response. */
3678
+ 200: {
3679
+ schema: definitions["v1BootProofResponse"];
3680
+ };
3681
+ /** An unexpected error response. */
3682
+ default: {
3683
+ schema: definitions["rpcStatus"];
3684
+ };
3685
+ };
3686
+ };
3687
+ /** Get the latest boot proof for a given enclave app name. */
3688
+ PublicApiService_GetLatestBootProof: {
3689
+ parameters: {
3690
+ body: {
3691
+ body: definitions["v1GetLatestBootProofRequest"];
3692
+ };
3693
+ };
3694
+ responses: {
3695
+ /** A successful response. */
3696
+ 200: {
3697
+ schema: definitions["v1BootProofResponse"];
3698
+ };
3699
+ /** An unexpected error response. */
3700
+ default: {
3701
+ schema: definitions["rpcStatus"];
3702
+ };
3703
+ };
3704
+ };
3617
3705
  /** Get details about an OAuth 2.0 credential. */
3618
3706
  PublicApiService_GetOauth2Credential: {
3619
3707
  parameters: {