@imtbl/generated-clients 2.9.0-alpha.0 → 2.9.0-alpha.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 (26) hide show
  1. package/dist/browser/index.js +2 -2
  2. package/dist/node/index.cjs +4 -4
  3. package/dist/node/index.js +2 -2
  4. package/dist/types/magic-tee/api.d.ts +3 -2
  5. package/dist/types/magic-tee/base.d.ts +2 -2
  6. package/dist/types/magic-tee/common.d.ts +2 -2
  7. package/dist/types/magic-tee/configuration.d.ts +2 -2
  8. package/dist/types/magic-tee/domain/identity-provider-api.d.ts +291 -0
  9. package/dist/types/magic-tee/domain/sign-operations-api.d.ts +30 -31
  10. package/dist/types/magic-tee/domain/wallet-api.d.ts +16 -96
  11. package/dist/types/magic-tee/index.d.ts +2 -2
  12. package/dist/types/magic-tee/models/httpvalidation-error.d.ts +2 -2
  13. package/dist/types/magic-tee/models/identity-provider-create-schema.d.ts +36 -0
  14. package/dist/types/magic-tee/models/identity-provider-model.d.ts +42 -0
  15. package/dist/types/magic-tee/models/identity-provider-update-schema.d.ts +36 -0
  16. package/dist/types/magic-tee/models/index.d.ts +3 -2
  17. package/dist/types/magic-tee/models/sign-data-request.d.ts +8 -2
  18. package/dist/types/magic-tee/models/sign-data-response.d.ts +2 -2
  19. package/dist/types/magic-tee/models/sign-message-request.d.ts +2 -2
  20. package/dist/types/magic-tee/models/sign-message-response.d.ts +2 -2
  21. package/dist/types/magic-tee/models/validation-error-loc-inner.d.ts +2 -2
  22. package/dist/types/magic-tee/models/validation-error.d.ts +2 -2
  23. package/dist/types/magic-tee/models/wallet-response-model.d.ts +2 -2
  24. package/package.json +1 -1
  25. package/dist/types/magic-tee/models/chain.d.ts +0 -22
  26. package/dist/types/magic-tee/models/create-wallet-request-model.d.ts +0 -24
@@ -1,6 +1,6 @@
1
1
  /**
2
- * TEE Express
3
- * TEE Express is a service that simplifies wallet management for developers. Unlike traditional wallet solutions that require complex key management, TEE Express handles all key management internally, providing a streamlined API for wallet operations. TEE Express leverages secure enclave technology to ensure that private keys never leave the secure environment. All wallet operations, including creation, signing, and key management, are performed within a trusted execution environment (TEE). This provides enterprise-grade security while maintaining the simplicity of a REST API. The service supports Ethereum wallets and provides endpoints for wallet creation, transaction signing, and message signing. All operations are authenticated using JWT tokens passed in the Authorization header, ensuring secure access to user wallets. **Migration Notice:** If you\'re an existing customer, your users\' wallets have been automatically migrated to TEE Express. There\'s no action required on your part - all existing wallets are now accessible through the TEE Express API using the same JWT tokens you currently use for authentication. Simply update your API calls to use the TEE Express endpoints, and pass your existing JWT token in the Authorization header for all requests. **Authentication:** - An API key via the `X-Magic-API-Key` header or a secret key via the `X-Magic-Secret-Key` header. - The OIDC provider ID via the `X-OIDC-Provider-ID` header. - Bearer token in the `Authorization` header. **Data Hashing for Signing:** For signing messages, encode your data as base64: ```typescript const message = Buffer.from(data, \'utf-8\').toString(\'base64\'); ``` For signing transaction data or other structured data, provide a keccak256 hash: ```typescript import { MessageTypes, SignTypedDataVersion, TypedDataUtils, TypedDataV1, TypedMessage, typedSignatureHash, } from \'@metamask/eth-sig-util\'; import { resolveProperties, Signature, Transaction, TransactionLike, TransactionRequest } from \'ethers\'; const computeEip712Hash = ( data: TypedMessage<MessageTypes>, version: SignTypedDataVersion.V3 | SignTypedDataVersion.V4, ): string => { const hashBuffer = TypedDataUtils.eip712Hash(data, version); return \'0x\' + hashBuffer.toString(\'hex\'); }; const personalSign = async (data: string) => { const message = Buffer.from(data, \'utf-8\').toString(\'base64\'); const body = { message_base64: message, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/message\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV1 = async (data: TypedDataV1) => { const rawDataHash = typedSignatureHash(data); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV3 = async (data: TypedMessage<MessageTypes>) => { const rawDataHash = computeEip712Hash(data, SignTypedDataVersion.V3); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV4 = async (data: TypedMessage<MessageTypes>) => { const rawDataHash = computeEip712Hash(data, SignTypedDataVersion.V4); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTransaction = async (tx: TransactionRequest) => { const resolvedTx = await resolveProperties(tx); const txForSigning = { ...resolvedTx }; delete txForSigning.from; const btx = Transaction.from(txForSigning as TransactionLike); const body = { raw_data_hash: btx.unsignedHash, chain: \'ETH\' }; const res = await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); const { r, s, v } = res.json(); btx.signature = Signature.from({ r, s, v }); return btx.serialized; }; ```
2
+ * FastAPI
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: 0.1.0
6
6
  *
@@ -9,5 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export * from './domain/identity-provider-api';
12
13
  export * from './domain/sign-operations-api';
13
14
  export * from './domain/wallet-api';
@@ -1,6 +1,6 @@
1
1
  /**
2
- * TEE Express
3
- * TEE Express is a service that simplifies wallet management for developers. Unlike traditional wallet solutions that require complex key management, TEE Express handles all key management internally, providing a streamlined API for wallet operations. TEE Express leverages secure enclave technology to ensure that private keys never leave the secure environment. All wallet operations, including creation, signing, and key management, are performed within a trusted execution environment (TEE). This provides enterprise-grade security while maintaining the simplicity of a REST API. The service supports Ethereum wallets and provides endpoints for wallet creation, transaction signing, and message signing. All operations are authenticated using JWT tokens passed in the Authorization header, ensuring secure access to user wallets. **Migration Notice:** If you\'re an existing customer, your users\' wallets have been automatically migrated to TEE Express. There\'s no action required on your part - all existing wallets are now accessible through the TEE Express API using the same JWT tokens you currently use for authentication. Simply update your API calls to use the TEE Express endpoints, and pass your existing JWT token in the Authorization header for all requests. **Authentication:** - An API key via the `X-Magic-API-Key` header or a secret key via the `X-Magic-Secret-Key` header. - The OIDC provider ID via the `X-OIDC-Provider-ID` header. - Bearer token in the `Authorization` header. **Data Hashing for Signing:** For signing messages, encode your data as base64: ```typescript const message = Buffer.from(data, \'utf-8\').toString(\'base64\'); ``` For signing transaction data or other structured data, provide a keccak256 hash: ```typescript import { MessageTypes, SignTypedDataVersion, TypedDataUtils, TypedDataV1, TypedMessage, typedSignatureHash, } from \'@metamask/eth-sig-util\'; import { resolveProperties, Signature, Transaction, TransactionLike, TransactionRequest } from \'ethers\'; const computeEip712Hash = ( data: TypedMessage<MessageTypes>, version: SignTypedDataVersion.V3 | SignTypedDataVersion.V4, ): string => { const hashBuffer = TypedDataUtils.eip712Hash(data, version); return \'0x\' + hashBuffer.toString(\'hex\'); }; const personalSign = async (data: string) => { const message = Buffer.from(data, \'utf-8\').toString(\'base64\'); const body = { message_base64: message, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/message\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV1 = async (data: TypedDataV1) => { const rawDataHash = typedSignatureHash(data); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV3 = async (data: TypedMessage<MessageTypes>) => { const rawDataHash = computeEip712Hash(data, SignTypedDataVersion.V3); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV4 = async (data: TypedMessage<MessageTypes>) => { const rawDataHash = computeEip712Hash(data, SignTypedDataVersion.V4); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTransaction = async (tx: TransactionRequest) => { const resolvedTx = await resolveProperties(tx); const txForSigning = { ...resolvedTx }; delete txForSigning.from; const btx = Transaction.from(txForSigning as TransactionLike); const body = { raw_data_hash: btx.unsignedHash, chain: \'ETH\' }; const res = await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); const { r, s, v } = res.json(); btx.signature = Signature.from({ r, s, v }); return btx.serialized; }; ```
2
+ * FastAPI
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: 0.1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
- * TEE Express
3
- * TEE Express is a service that simplifies wallet management for developers. Unlike traditional wallet solutions that require complex key management, TEE Express handles all key management internally, providing a streamlined API for wallet operations. TEE Express leverages secure enclave technology to ensure that private keys never leave the secure environment. All wallet operations, including creation, signing, and key management, are performed within a trusted execution environment (TEE). This provides enterprise-grade security while maintaining the simplicity of a REST API. The service supports Ethereum wallets and provides endpoints for wallet creation, transaction signing, and message signing. All operations are authenticated using JWT tokens passed in the Authorization header, ensuring secure access to user wallets. **Migration Notice:** If you\'re an existing customer, your users\' wallets have been automatically migrated to TEE Express. There\'s no action required on your part - all existing wallets are now accessible through the TEE Express API using the same JWT tokens you currently use for authentication. Simply update your API calls to use the TEE Express endpoints, and pass your existing JWT token in the Authorization header for all requests. **Authentication:** - An API key via the `X-Magic-API-Key` header or a secret key via the `X-Magic-Secret-Key` header. - The OIDC provider ID via the `X-OIDC-Provider-ID` header. - Bearer token in the `Authorization` header. **Data Hashing for Signing:** For signing messages, encode your data as base64: ```typescript const message = Buffer.from(data, \'utf-8\').toString(\'base64\'); ``` For signing transaction data or other structured data, provide a keccak256 hash: ```typescript import { MessageTypes, SignTypedDataVersion, TypedDataUtils, TypedDataV1, TypedMessage, typedSignatureHash, } from \'@metamask/eth-sig-util\'; import { resolveProperties, Signature, Transaction, TransactionLike, TransactionRequest } from \'ethers\'; const computeEip712Hash = ( data: TypedMessage<MessageTypes>, version: SignTypedDataVersion.V3 | SignTypedDataVersion.V4, ): string => { const hashBuffer = TypedDataUtils.eip712Hash(data, version); return \'0x\' + hashBuffer.toString(\'hex\'); }; const personalSign = async (data: string) => { const message = Buffer.from(data, \'utf-8\').toString(\'base64\'); const body = { message_base64: message, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/message\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV1 = async (data: TypedDataV1) => { const rawDataHash = typedSignatureHash(data); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV3 = async (data: TypedMessage<MessageTypes>) => { const rawDataHash = computeEip712Hash(data, SignTypedDataVersion.V3); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV4 = async (data: TypedMessage<MessageTypes>) => { const rawDataHash = computeEip712Hash(data, SignTypedDataVersion.V4); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTransaction = async (tx: TransactionRequest) => { const resolvedTx = await resolveProperties(tx); const txForSigning = { ...resolvedTx }; delete txForSigning.from; const btx = Transaction.from(txForSigning as TransactionLike); const body = { raw_data_hash: btx.unsignedHash, chain: \'ETH\' }; const res = await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); const { r, s, v } = res.json(); btx.signature = Signature.from({ r, s, v }); return btx.serialized; }; ```
2
+ * FastAPI
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: 0.1.0
6
6
  *
@@ -1,6 +1,6 @@
1
1
  /**
2
- * TEE Express
3
- * TEE Express is a service that simplifies wallet management for developers. Unlike traditional wallet solutions that require complex key management, TEE Express handles all key management internally, providing a streamlined API for wallet operations. TEE Express leverages secure enclave technology to ensure that private keys never leave the secure environment. All wallet operations, including creation, signing, and key management, are performed within a trusted execution environment (TEE). This provides enterprise-grade security while maintaining the simplicity of a REST API. The service supports Ethereum wallets and provides endpoints for wallet creation, transaction signing, and message signing. All operations are authenticated using JWT tokens passed in the Authorization header, ensuring secure access to user wallets. **Migration Notice:** If you\'re an existing customer, your users\' wallets have been automatically migrated to TEE Express. There\'s no action required on your part - all existing wallets are now accessible through the TEE Express API using the same JWT tokens you currently use for authentication. Simply update your API calls to use the TEE Express endpoints, and pass your existing JWT token in the Authorization header for all requests. **Authentication:** - An API key via the `X-Magic-API-Key` header or a secret key via the `X-Magic-Secret-Key` header. - The OIDC provider ID via the `X-OIDC-Provider-ID` header. - Bearer token in the `Authorization` header. **Data Hashing for Signing:** For signing messages, encode your data as base64: ```typescript const message = Buffer.from(data, \'utf-8\').toString(\'base64\'); ``` For signing transaction data or other structured data, provide a keccak256 hash: ```typescript import { MessageTypes, SignTypedDataVersion, TypedDataUtils, TypedDataV1, TypedMessage, typedSignatureHash, } from \'@metamask/eth-sig-util\'; import { resolveProperties, Signature, Transaction, TransactionLike, TransactionRequest } from \'ethers\'; const computeEip712Hash = ( data: TypedMessage<MessageTypes>, version: SignTypedDataVersion.V3 | SignTypedDataVersion.V4, ): string => { const hashBuffer = TypedDataUtils.eip712Hash(data, version); return \'0x\' + hashBuffer.toString(\'hex\'); }; const personalSign = async (data: string) => { const message = Buffer.from(data, \'utf-8\').toString(\'base64\'); const body = { message_base64: message, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/message\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV1 = async (data: TypedDataV1) => { const rawDataHash = typedSignatureHash(data); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV3 = async (data: TypedMessage<MessageTypes>) => { const rawDataHash = computeEip712Hash(data, SignTypedDataVersion.V3); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV4 = async (data: TypedMessage<MessageTypes>) => { const rawDataHash = computeEip712Hash(data, SignTypedDataVersion.V4); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTransaction = async (tx: TransactionRequest) => { const resolvedTx = await resolveProperties(tx); const txForSigning = { ...resolvedTx }; delete txForSigning.from; const btx = Transaction.from(txForSigning as TransactionLike); const body = { raw_data_hash: btx.unsignedHash, chain: \'ETH\' }; const res = await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); const { r, s, v } = res.json(); btx.signature = Signature.from({ r, s, v }); return btx.serialized; }; ```
2
+ * FastAPI
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: 0.1.0
6
6
  *
@@ -0,0 +1,291 @@
1
+ /**
2
+ * FastAPI
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { IdentityProviderCreateSchema } from '../models';
16
+ import { IdentityProviderModel } from '../models';
17
+ import { IdentityProviderUpdateSchema } from '../models';
18
+ /**
19
+ * IdentityProviderApi - axios parameter creator
20
+ * @export
21
+ */
22
+ export declare const IdentityProviderApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ *
25
+ * @summary Create Identity Provider
26
+ * @param {IdentityProviderCreateSchema} identityProviderCreateSchema
27
+ * @param {string} [xMagicAPIKey]
28
+ * @param {string} [xMagicSecretKey]
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ createIdentityProviderV1IdentityProviderPost: (identityProviderCreateSchema: IdentityProviderCreateSchema, xMagicAPIKey?: string, xMagicSecretKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
+ /**
34
+ *
35
+ * @summary Delete Identity Provider
36
+ * @param {string} id
37
+ * @param {string} [xMagicAPIKey]
38
+ * @param {string} [xMagicSecretKey]
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ deleteIdentityProviderV1IdentityProviderIdDelete: (id: string, xMagicAPIKey?: string, xMagicSecretKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
+ /**
44
+ *
45
+ * @summary Get Identity Providers
46
+ * @param {string} [xMagicAPIKey]
47
+ * @param {string} [xMagicSecretKey]
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ getIdentityProvidersV1IdentityProviderGet: (xMagicAPIKey?: string, xMagicSecretKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ /**
53
+ *
54
+ * @summary Update Identity Provider
55
+ * @param {string} id
56
+ * @param {IdentityProviderUpdateSchema} identityProviderUpdateSchema
57
+ * @param {string} [xMagicAPIKey]
58
+ * @param {string} [xMagicSecretKey]
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ updateIdentityProviderV1IdentityProviderIdPatch: (id: string, identityProviderUpdateSchema: IdentityProviderUpdateSchema, xMagicAPIKey?: string, xMagicSecretKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
63
+ };
64
+ /**
65
+ * IdentityProviderApi - functional programming interface
66
+ * @export
67
+ */
68
+ export declare const IdentityProviderApiFp: (configuration?: Configuration) => {
69
+ /**
70
+ *
71
+ * @summary Create Identity Provider
72
+ * @param {IdentityProviderCreateSchema} identityProviderCreateSchema
73
+ * @param {string} [xMagicAPIKey]
74
+ * @param {string} [xMagicSecretKey]
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ createIdentityProviderV1IdentityProviderPost(identityProviderCreateSchema: IdentityProviderCreateSchema, xMagicAPIKey?: string, xMagicSecretKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IdentityProviderModel>>;
79
+ /**
80
+ *
81
+ * @summary Delete Identity Provider
82
+ * @param {string} id
83
+ * @param {string} [xMagicAPIKey]
84
+ * @param {string} [xMagicSecretKey]
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ deleteIdentityProviderV1IdentityProviderIdDelete(id: string, xMagicAPIKey?: string, xMagicSecretKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
89
+ /**
90
+ *
91
+ * @summary Get Identity Providers
92
+ * @param {string} [xMagicAPIKey]
93
+ * @param {string} [xMagicSecretKey]
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ getIdentityProvidersV1IdentityProviderGet(xMagicAPIKey?: string, xMagicSecretKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<IdentityProviderModel>>>;
98
+ /**
99
+ *
100
+ * @summary Update Identity Provider
101
+ * @param {string} id
102
+ * @param {IdentityProviderUpdateSchema} identityProviderUpdateSchema
103
+ * @param {string} [xMagicAPIKey]
104
+ * @param {string} [xMagicSecretKey]
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ updateIdentityProviderV1IdentityProviderIdPatch(id: string, identityProviderUpdateSchema: IdentityProviderUpdateSchema, xMagicAPIKey?: string, xMagicSecretKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IdentityProviderModel>>;
109
+ };
110
+ /**
111
+ * IdentityProviderApi - factory interface
112
+ * @export
113
+ */
114
+ export declare const IdentityProviderApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
115
+ /**
116
+ *
117
+ * @summary Create Identity Provider
118
+ * @param {IdentityProviderApiCreateIdentityProviderV1IdentityProviderPostRequest} requestParameters Request parameters.
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ createIdentityProviderV1IdentityProviderPost(requestParameters: IdentityProviderApiCreateIdentityProviderV1IdentityProviderPostRequest, options?: AxiosRequestConfig): AxiosPromise<IdentityProviderModel>;
123
+ /**
124
+ *
125
+ * @summary Delete Identity Provider
126
+ * @param {IdentityProviderApiDeleteIdentityProviderV1IdentityProviderIdDeleteRequest} requestParameters Request parameters.
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ deleteIdentityProviderV1IdentityProviderIdDelete(requestParameters: IdentityProviderApiDeleteIdentityProviderV1IdentityProviderIdDeleteRequest, options?: AxiosRequestConfig): AxiosPromise<void>;
131
+ /**
132
+ *
133
+ * @summary Get Identity Providers
134
+ * @param {IdentityProviderApiGetIdentityProvidersV1IdentityProviderGetRequest} requestParameters Request parameters.
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ getIdentityProvidersV1IdentityProviderGet(requestParameters?: IdentityProviderApiGetIdentityProvidersV1IdentityProviderGetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<IdentityProviderModel>>;
139
+ /**
140
+ *
141
+ * @summary Update Identity Provider
142
+ * @param {IdentityProviderApiUpdateIdentityProviderV1IdentityProviderIdPatchRequest} requestParameters Request parameters.
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ updateIdentityProviderV1IdentityProviderIdPatch(requestParameters: IdentityProviderApiUpdateIdentityProviderV1IdentityProviderIdPatchRequest, options?: AxiosRequestConfig): AxiosPromise<IdentityProviderModel>;
147
+ };
148
+ /**
149
+ * Request parameters for createIdentityProviderV1IdentityProviderPost operation in IdentityProviderApi.
150
+ * @export
151
+ * @interface IdentityProviderApiCreateIdentityProviderV1IdentityProviderPostRequest
152
+ */
153
+ export interface IdentityProviderApiCreateIdentityProviderV1IdentityProviderPostRequest {
154
+ /**
155
+ *
156
+ * @type {IdentityProviderCreateSchema}
157
+ * @memberof IdentityProviderApiCreateIdentityProviderV1IdentityProviderPost
158
+ */
159
+ readonly identityProviderCreateSchema: IdentityProviderCreateSchema;
160
+ /**
161
+ *
162
+ * @type {string}
163
+ * @memberof IdentityProviderApiCreateIdentityProviderV1IdentityProviderPost
164
+ */
165
+ readonly xMagicAPIKey?: string;
166
+ /**
167
+ *
168
+ * @type {string}
169
+ * @memberof IdentityProviderApiCreateIdentityProviderV1IdentityProviderPost
170
+ */
171
+ readonly xMagicSecretKey?: string;
172
+ }
173
+ /**
174
+ * Request parameters for deleteIdentityProviderV1IdentityProviderIdDelete operation in IdentityProviderApi.
175
+ * @export
176
+ * @interface IdentityProviderApiDeleteIdentityProviderV1IdentityProviderIdDeleteRequest
177
+ */
178
+ export interface IdentityProviderApiDeleteIdentityProviderV1IdentityProviderIdDeleteRequest {
179
+ /**
180
+ *
181
+ * @type {string}
182
+ * @memberof IdentityProviderApiDeleteIdentityProviderV1IdentityProviderIdDelete
183
+ */
184
+ readonly id: string;
185
+ /**
186
+ *
187
+ * @type {string}
188
+ * @memberof IdentityProviderApiDeleteIdentityProviderV1IdentityProviderIdDelete
189
+ */
190
+ readonly xMagicAPIKey?: string;
191
+ /**
192
+ *
193
+ * @type {string}
194
+ * @memberof IdentityProviderApiDeleteIdentityProviderV1IdentityProviderIdDelete
195
+ */
196
+ readonly xMagicSecretKey?: string;
197
+ }
198
+ /**
199
+ * Request parameters for getIdentityProvidersV1IdentityProviderGet operation in IdentityProviderApi.
200
+ * @export
201
+ * @interface IdentityProviderApiGetIdentityProvidersV1IdentityProviderGetRequest
202
+ */
203
+ export interface IdentityProviderApiGetIdentityProvidersV1IdentityProviderGetRequest {
204
+ /**
205
+ *
206
+ * @type {string}
207
+ * @memberof IdentityProviderApiGetIdentityProvidersV1IdentityProviderGet
208
+ */
209
+ readonly xMagicAPIKey?: string;
210
+ /**
211
+ *
212
+ * @type {string}
213
+ * @memberof IdentityProviderApiGetIdentityProvidersV1IdentityProviderGet
214
+ */
215
+ readonly xMagicSecretKey?: string;
216
+ }
217
+ /**
218
+ * Request parameters for updateIdentityProviderV1IdentityProviderIdPatch operation in IdentityProviderApi.
219
+ * @export
220
+ * @interface IdentityProviderApiUpdateIdentityProviderV1IdentityProviderIdPatchRequest
221
+ */
222
+ export interface IdentityProviderApiUpdateIdentityProviderV1IdentityProviderIdPatchRequest {
223
+ /**
224
+ *
225
+ * @type {string}
226
+ * @memberof IdentityProviderApiUpdateIdentityProviderV1IdentityProviderIdPatch
227
+ */
228
+ readonly id: string;
229
+ /**
230
+ *
231
+ * @type {IdentityProviderUpdateSchema}
232
+ * @memberof IdentityProviderApiUpdateIdentityProviderV1IdentityProviderIdPatch
233
+ */
234
+ readonly identityProviderUpdateSchema: IdentityProviderUpdateSchema;
235
+ /**
236
+ *
237
+ * @type {string}
238
+ * @memberof IdentityProviderApiUpdateIdentityProviderV1IdentityProviderIdPatch
239
+ */
240
+ readonly xMagicAPIKey?: string;
241
+ /**
242
+ *
243
+ * @type {string}
244
+ * @memberof IdentityProviderApiUpdateIdentityProviderV1IdentityProviderIdPatch
245
+ */
246
+ readonly xMagicSecretKey?: string;
247
+ }
248
+ /**
249
+ * IdentityProviderApi - object-oriented interface
250
+ * @export
251
+ * @class IdentityProviderApi
252
+ * @extends {BaseAPI}
253
+ */
254
+ export declare class IdentityProviderApi extends BaseAPI {
255
+ /**
256
+ *
257
+ * @summary Create Identity Provider
258
+ * @param {IdentityProviderApiCreateIdentityProviderV1IdentityProviderPostRequest} requestParameters Request parameters.
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ * @memberof IdentityProviderApi
262
+ */
263
+ createIdentityProviderV1IdentityProviderPost(requestParameters: IdentityProviderApiCreateIdentityProviderV1IdentityProviderPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<IdentityProviderModel, any>>;
264
+ /**
265
+ *
266
+ * @summary Delete Identity Provider
267
+ * @param {IdentityProviderApiDeleteIdentityProviderV1IdentityProviderIdDeleteRequest} requestParameters Request parameters.
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ * @memberof IdentityProviderApi
271
+ */
272
+ deleteIdentityProviderV1IdentityProviderIdDelete(requestParameters: IdentityProviderApiDeleteIdentityProviderV1IdentityProviderIdDeleteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
273
+ /**
274
+ *
275
+ * @summary Get Identity Providers
276
+ * @param {IdentityProviderApiGetIdentityProvidersV1IdentityProviderGetRequest} requestParameters Request parameters.
277
+ * @param {*} [options] Override http request option.
278
+ * @throws {RequiredError}
279
+ * @memberof IdentityProviderApi
280
+ */
281
+ getIdentityProvidersV1IdentityProviderGet(requestParameters?: IdentityProviderApiGetIdentityProvidersV1IdentityProviderGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<IdentityProviderModel[], any>>;
282
+ /**
283
+ *
284
+ * @summary Update Identity Provider
285
+ * @param {IdentityProviderApiUpdateIdentityProviderV1IdentityProviderIdPatchRequest} requestParameters Request parameters.
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ * @memberof IdentityProviderApi
289
+ */
290
+ updateIdentityProviderV1IdentityProviderIdPatch(requestParameters: IdentityProviderApiUpdateIdentityProviderV1IdentityProviderIdPatchRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<IdentityProviderModel, any>>;
291
+ }
@@ -1,6 +1,6 @@
1
1
  /**
2
- * TEE Express
3
- * TEE Express is a service that simplifies wallet management for developers. Unlike traditional wallet solutions that require complex key management, TEE Express handles all key management internally, providing a streamlined API for wallet operations. TEE Express leverages secure enclave technology to ensure that private keys never leave the secure environment. All wallet operations, including creation, signing, and key management, are performed within a trusted execution environment (TEE). This provides enterprise-grade security while maintaining the simplicity of a REST API. The service supports Ethereum wallets and provides endpoints for wallet creation, transaction signing, and message signing. All operations are authenticated using JWT tokens passed in the Authorization header, ensuring secure access to user wallets. **Migration Notice:** If you\'re an existing customer, your users\' wallets have been automatically migrated to TEE Express. There\'s no action required on your part - all existing wallets are now accessible through the TEE Express API using the same JWT tokens you currently use for authentication. Simply update your API calls to use the TEE Express endpoints, and pass your existing JWT token in the Authorization header for all requests. **Authentication:** - An API key via the `X-Magic-API-Key` header or a secret key via the `X-Magic-Secret-Key` header. - The OIDC provider ID via the `X-OIDC-Provider-ID` header. - Bearer token in the `Authorization` header. **Data Hashing for Signing:** For signing messages, encode your data as base64: ```typescript const message = Buffer.from(data, \'utf-8\').toString(\'base64\'); ``` For signing transaction data or other structured data, provide a keccak256 hash: ```typescript import { MessageTypes, SignTypedDataVersion, TypedDataUtils, TypedDataV1, TypedMessage, typedSignatureHash, } from \'@metamask/eth-sig-util\'; import { resolveProperties, Signature, Transaction, TransactionLike, TransactionRequest } from \'ethers\'; const computeEip712Hash = ( data: TypedMessage<MessageTypes>, version: SignTypedDataVersion.V3 | SignTypedDataVersion.V4, ): string => { const hashBuffer = TypedDataUtils.eip712Hash(data, version); return \'0x\' + hashBuffer.toString(\'hex\'); }; const personalSign = async (data: string) => { const message = Buffer.from(data, \'utf-8\').toString(\'base64\'); const body = { message_base64: message, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/message\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV1 = async (data: TypedDataV1) => { const rawDataHash = typedSignatureHash(data); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV3 = async (data: TypedMessage<MessageTypes>) => { const rawDataHash = computeEip712Hash(data, SignTypedDataVersion.V3); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTypedDataV4 = async (data: TypedMessage<MessageTypes>) => { const rawDataHash = computeEip712Hash(data, SignTypedDataVersion.V4); const body = { raw_data_hash: rawDataHash, chain: \'ETH\' }; return await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); }; const signTransaction = async (tx: TransactionRequest) => { const resolvedTx = await resolveProperties(tx); const txForSigning = { ...resolvedTx }; delete txForSigning.from; const btx = Transaction.from(txForSigning as TransactionLike); const body = { raw_data_hash: btx.unsignedHash, chain: \'ETH\' }; const res = await fetch(\'/v1/wallet/sign/data\', { method: \'POST\', body: JSON.stringify(body) }); const { r, s, v } = res.json(); btx.signature = Signature.from({ r, s, v }); return btx.serialized; }; ```
2
+ * FastAPI
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
5
  * The version of the OpenAPI document: 0.1.0
6
6
  *
@@ -12,7 +12,6 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
- import { Chain } from '../models';
16
15
  import { SignDataRequest } from '../models';
17
16
  import { SignDataResponse } from '../models';
18
17
  import { SignMessageRequest } from '../models';
@@ -23,9 +22,9 @@ import { SignMessageResponse } from '../models';
23
22
  */
24
23
  export declare const SignOperationsApiAxiosParamCreator: (configuration?: Configuration) => {
25
24
  /**
26
- * Signs a hash of arbitrary data using the wallet\'s private key. **Example cURL:** ```bash curl -X POST \'https://tee.express.magiclabs.com/v1/wallet/sign/data\' \\ -H \'Content-Type: application/json\' \\ -H \'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjNhYVl5dGR3d2UwMzJzMXIzVElyOSJ9...\' \\ -H \'X-Magic-API-Key: your-magic-api-key\' \\ -H \'X-OIDC-Provider-ID: your-oidc-provider-id\' \\ -d \'{ \"chain\": \"ETH\", \"raw_data_hash\": \"0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890\" }\' ``` **Example Response:** ```json { \"message_hash\": \"0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890\", \"signature\": \"0x8e7d6c5b4a3928172635445566778899aabbccddeeff00112233445566778899\", \"r\": \"0x3d4e5f678901234567890abcdef1234567890abcdef1234567890abcdef1234\", \"s\": \"0x4e5f678901234567890abcdef1234567890abcdef1234567890abcdef123456\", \"v\": \"27\" } ```
27
- * @summary Sign data using the wallet\'s private key.
28
- * @param {Chain} xMagicChain
25
+ *
26
+ * @summary Sign Data
27
+ * @param {string} xMagicChain
29
28
  * @param {SignDataRequest} signDataRequest
30
29
  * @param {string} [xMagicAPIKey]
31
30
  * @param {string} [xMagicSecretKey]
@@ -33,11 +32,11 @@ export declare const SignOperationsApiAxiosParamCreator: (configuration?: Config
33
32
  * @param {*} [options] Override http request option.
34
33
  * @throws {RequiredError}
35
34
  */
36
- signDataV1WalletSignDataPost: (xMagicChain: Chain, signDataRequest: SignDataRequest, xMagicAPIKey?: string, xMagicSecretKey?: string, xOIDCProviderID?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
+ signDataV1WalletSignDataPost: (xMagicChain: string, signDataRequest: SignDataRequest, xMagicAPIKey?: string, xMagicSecretKey?: string, xOIDCProviderID?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
36
  /**
38
- * Signs an arbitrary message using the wallet\'s private key. Useful for authentication and off-chain verification. **Example cURL:** ```bash curl -X POST \'https://tee.express.magiclabs.com/v1/wallet/sign/message\' \\ -H \'Content-Type: application/json\' \\ -H \'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjNhYVl5dGR3d2UwMzJzMXIzVElyOSJ9...\' \\ -H \'X-Magic-API-Key: your-magic-api-key\' \\ -H \'X-OIDC-Provider-ID: your-oidc-provider-id\' \\ -d \'{ \"chain\": \"ETH\", \"message_base64\": \"bm9uZQ==\" }\' ``` **Example Response:** ```json { \"signature\": \"0x0cebb670d8375ac74122b46c44def7e1ce593e80434a3e6557108ae124f8b44f3c5068fc104279fe7f51918cbe4c249d707bc1c0ce2ffb6d201d3cf4e2fdee8d1b\", \"r\": \"0x0cebb670d8375ac74122b46c44def7e1ce593e80434a3e6557108ae124f8b44f\", \"s\": \"0x3c5068fc104279fe7f51918cbe4c249d707bc1c0ce2ffb6d201d3cf4e2fdee8d\", \"v\": \"27\" } ```
39
- * @summary Sign a message using the wallet\'s private key.
40
- * @param {Chain} xMagicChain
37
+ *
38
+ * @summary Sign Message
39
+ * @param {string} xMagicChain
41
40
  * @param {SignMessageRequest} signMessageRequest
42
41
  * @param {string} [xMagicAPIKey]
43
42
  * @param {string} [xMagicSecretKey]
@@ -45,7 +44,7 @@ export declare const SignOperationsApiAxiosParamCreator: (configuration?: Config
45
44
  * @param {*} [options] Override http request option.
46
45
  * @throws {RequiredError}
47
46
  */
48
- signMessageV1WalletSignMessagePost: (xMagicChain: Chain, signMessageRequest: SignMessageRequest, xMagicAPIKey?: string, xMagicSecretKey?: string, xOIDCProviderID?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
+ signMessageV1WalletSignMessagePost: (xMagicChain: string, signMessageRequest: SignMessageRequest, xMagicAPIKey?: string, xMagicSecretKey?: string, xOIDCProviderID?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
49
48
  };
50
49
  /**
51
50
  * SignOperationsApi - functional programming interface
@@ -53,9 +52,9 @@ export declare const SignOperationsApiAxiosParamCreator: (configuration?: Config
53
52
  */
54
53
  export declare const SignOperationsApiFp: (configuration?: Configuration) => {
55
54
  /**
56
- * Signs a hash of arbitrary data using the wallet\'s private key. **Example cURL:** ```bash curl -X POST \'https://tee.express.magiclabs.com/v1/wallet/sign/data\' \\ -H \'Content-Type: application/json\' \\ -H \'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjNhYVl5dGR3d2UwMzJzMXIzVElyOSJ9...\' \\ -H \'X-Magic-API-Key: your-magic-api-key\' \\ -H \'X-OIDC-Provider-ID: your-oidc-provider-id\' \\ -d \'{ \"chain\": \"ETH\", \"raw_data_hash\": \"0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890\" }\' ``` **Example Response:** ```json { \"message_hash\": \"0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890\", \"signature\": \"0x8e7d6c5b4a3928172635445566778899aabbccddeeff00112233445566778899\", \"r\": \"0x3d4e5f678901234567890abcdef1234567890abcdef1234567890abcdef1234\", \"s\": \"0x4e5f678901234567890abcdef1234567890abcdef1234567890abcdef123456\", \"v\": \"27\" } ```
57
- * @summary Sign data using the wallet\'s private key.
58
- * @param {Chain} xMagicChain
55
+ *
56
+ * @summary Sign Data
57
+ * @param {string} xMagicChain
59
58
  * @param {SignDataRequest} signDataRequest
60
59
  * @param {string} [xMagicAPIKey]
61
60
  * @param {string} [xMagicSecretKey]
@@ -63,11 +62,11 @@ export declare const SignOperationsApiFp: (configuration?: Configuration) => {
63
62
  * @param {*} [options] Override http request option.
64
63
  * @throws {RequiredError}
65
64
  */
66
- signDataV1WalletSignDataPost(xMagicChain: Chain, signDataRequest: SignDataRequest, xMagicAPIKey?: string, xMagicSecretKey?: string, xOIDCProviderID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignDataResponse>>;
65
+ signDataV1WalletSignDataPost(xMagicChain: string, signDataRequest: SignDataRequest, xMagicAPIKey?: string, xMagicSecretKey?: string, xOIDCProviderID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignDataResponse>>;
67
66
  /**
68
- * Signs an arbitrary message using the wallet\'s private key. Useful for authentication and off-chain verification. **Example cURL:** ```bash curl -X POST \'https://tee.express.magiclabs.com/v1/wallet/sign/message\' \\ -H \'Content-Type: application/json\' \\ -H \'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjNhYVl5dGR3d2UwMzJzMXIzVElyOSJ9...\' \\ -H \'X-Magic-API-Key: your-magic-api-key\' \\ -H \'X-OIDC-Provider-ID: your-oidc-provider-id\' \\ -d \'{ \"chain\": \"ETH\", \"message_base64\": \"bm9uZQ==\" }\' ``` **Example Response:** ```json { \"signature\": \"0x0cebb670d8375ac74122b46c44def7e1ce593e80434a3e6557108ae124f8b44f3c5068fc104279fe7f51918cbe4c249d707bc1c0ce2ffb6d201d3cf4e2fdee8d1b\", \"r\": \"0x0cebb670d8375ac74122b46c44def7e1ce593e80434a3e6557108ae124f8b44f\", \"s\": \"0x3c5068fc104279fe7f51918cbe4c249d707bc1c0ce2ffb6d201d3cf4e2fdee8d\", \"v\": \"27\" } ```
69
- * @summary Sign a message using the wallet\'s private key.
70
- * @param {Chain} xMagicChain
67
+ *
68
+ * @summary Sign Message
69
+ * @param {string} xMagicChain
71
70
  * @param {SignMessageRequest} signMessageRequest
72
71
  * @param {string} [xMagicAPIKey]
73
72
  * @param {string} [xMagicSecretKey]
@@ -75,7 +74,7 @@ export declare const SignOperationsApiFp: (configuration?: Configuration) => {
75
74
  * @param {*} [options] Override http request option.
76
75
  * @throws {RequiredError}
77
76
  */
78
- signMessageV1WalletSignMessagePost(xMagicChain: Chain, signMessageRequest: SignMessageRequest, xMagicAPIKey?: string, xMagicSecretKey?: string, xOIDCProviderID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignMessageResponse>>;
77
+ signMessageV1WalletSignMessagePost(xMagicChain: string, signMessageRequest: SignMessageRequest, xMagicAPIKey?: string, xMagicSecretKey?: string, xOIDCProviderID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignMessageResponse>>;
79
78
  };
80
79
  /**
81
80
  * SignOperationsApi - factory interface
@@ -83,16 +82,16 @@ export declare const SignOperationsApiFp: (configuration?: Configuration) => {
83
82
  */
84
83
  export declare const SignOperationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
85
84
  /**
86
- * Signs a hash of arbitrary data using the wallet\'s private key. **Example cURL:** ```bash curl -X POST \'https://tee.express.magiclabs.com/v1/wallet/sign/data\' \\ -H \'Content-Type: application/json\' \\ -H \'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjNhYVl5dGR3d2UwMzJzMXIzVElyOSJ9...\' \\ -H \'X-Magic-API-Key: your-magic-api-key\' \\ -H \'X-OIDC-Provider-ID: your-oidc-provider-id\' \\ -d \'{ \"chain\": \"ETH\", \"raw_data_hash\": \"0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890\" }\' ``` **Example Response:** ```json { \"message_hash\": \"0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890\", \"signature\": \"0x8e7d6c5b4a3928172635445566778899aabbccddeeff00112233445566778899\", \"r\": \"0x3d4e5f678901234567890abcdef1234567890abcdef1234567890abcdef1234\", \"s\": \"0x4e5f678901234567890abcdef1234567890abcdef1234567890abcdef123456\", \"v\": \"27\" } ```
87
- * @summary Sign data using the wallet\'s private key.
85
+ *
86
+ * @summary Sign Data
88
87
  * @param {SignOperationsApiSignDataV1WalletSignDataPostRequest} requestParameters Request parameters.
89
88
  * @param {*} [options] Override http request option.
90
89
  * @throws {RequiredError}
91
90
  */
92
91
  signDataV1WalletSignDataPost(requestParameters: SignOperationsApiSignDataV1WalletSignDataPostRequest, options?: AxiosRequestConfig): AxiosPromise<SignDataResponse>;
93
92
  /**
94
- * Signs an arbitrary message using the wallet\'s private key. Useful for authentication and off-chain verification. **Example cURL:** ```bash curl -X POST \'https://tee.express.magiclabs.com/v1/wallet/sign/message\' \\ -H \'Content-Type: application/json\' \\ -H \'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjNhYVl5dGR3d2UwMzJzMXIzVElyOSJ9...\' \\ -H \'X-Magic-API-Key: your-magic-api-key\' \\ -H \'X-OIDC-Provider-ID: your-oidc-provider-id\' \\ -d \'{ \"chain\": \"ETH\", \"message_base64\": \"bm9uZQ==\" }\' ``` **Example Response:** ```json { \"signature\": \"0x0cebb670d8375ac74122b46c44def7e1ce593e80434a3e6557108ae124f8b44f3c5068fc104279fe7f51918cbe4c249d707bc1c0ce2ffb6d201d3cf4e2fdee8d1b\", \"r\": \"0x0cebb670d8375ac74122b46c44def7e1ce593e80434a3e6557108ae124f8b44f\", \"s\": \"0x3c5068fc104279fe7f51918cbe4c249d707bc1c0ce2ffb6d201d3cf4e2fdee8d\", \"v\": \"27\" } ```
95
- * @summary Sign a message using the wallet\'s private key.
93
+ *
94
+ * @summary Sign Message
96
95
  * @param {SignOperationsApiSignMessageV1WalletSignMessagePostRequest} requestParameters Request parameters.
97
96
  * @param {*} [options] Override http request option.
98
97
  * @throws {RequiredError}
@@ -107,10 +106,10 @@ export declare const SignOperationsApiFactory: (configuration?: Configuration, b
107
106
  export interface SignOperationsApiSignDataV1WalletSignDataPostRequest {
108
107
  /**
109
108
  *
110
- * @type {Chain}
109
+ * @type {string}
111
110
  * @memberof SignOperationsApiSignDataV1WalletSignDataPost
112
111
  */
113
- readonly xMagicChain: Chain;
112
+ readonly xMagicChain: string;
114
113
  /**
115
114
  *
116
115
  * @type {SignDataRequest}
@@ -144,10 +143,10 @@ export interface SignOperationsApiSignDataV1WalletSignDataPostRequest {
144
143
  export interface SignOperationsApiSignMessageV1WalletSignMessagePostRequest {
145
144
  /**
146
145
  *
147
- * @type {Chain}
146
+ * @type {string}
148
147
  * @memberof SignOperationsApiSignMessageV1WalletSignMessagePost
149
148
  */
150
- readonly xMagicChain: Chain;
149
+ readonly xMagicChain: string;
151
150
  /**
152
151
  *
153
152
  * @type {SignMessageRequest}
@@ -181,8 +180,8 @@ export interface SignOperationsApiSignMessageV1WalletSignMessagePostRequest {
181
180
  */
182
181
  export declare class SignOperationsApi extends BaseAPI {
183
182
  /**
184
- * Signs a hash of arbitrary data using the wallet\'s private key. **Example cURL:** ```bash curl -X POST \'https://tee.express.magiclabs.com/v1/wallet/sign/data\' \\ -H \'Content-Type: application/json\' \\ -H \'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjNhYVl5dGR3d2UwMzJzMXIzVElyOSJ9...\' \\ -H \'X-Magic-API-Key: your-magic-api-key\' \\ -H \'X-OIDC-Provider-ID: your-oidc-provider-id\' \\ -d \'{ \"chain\": \"ETH\", \"raw_data_hash\": \"0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890\" }\' ``` **Example Response:** ```json { \"message_hash\": \"0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890\", \"signature\": \"0x8e7d6c5b4a3928172635445566778899aabbccddeeff00112233445566778899\", \"r\": \"0x3d4e5f678901234567890abcdef1234567890abcdef1234567890abcdef1234\", \"s\": \"0x4e5f678901234567890abcdef1234567890abcdef1234567890abcdef123456\", \"v\": \"27\" } ```
185
- * @summary Sign data using the wallet\'s private key.
183
+ *
184
+ * @summary Sign Data
186
185
  * @param {SignOperationsApiSignDataV1WalletSignDataPostRequest} requestParameters Request parameters.
187
186
  * @param {*} [options] Override http request option.
188
187
  * @throws {RequiredError}
@@ -190,8 +189,8 @@ export declare class SignOperationsApi extends BaseAPI {
190
189
  */
191
190
  signDataV1WalletSignDataPost(requestParameters: SignOperationsApiSignDataV1WalletSignDataPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SignDataResponse, any>>;
192
191
  /**
193
- * Signs an arbitrary message using the wallet\'s private key. Useful for authentication and off-chain verification. **Example cURL:** ```bash curl -X POST \'https://tee.express.magiclabs.com/v1/wallet/sign/message\' \\ -H \'Content-Type: application/json\' \\ -H \'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjNhYVl5dGR3d2UwMzJzMXIzVElyOSJ9...\' \\ -H \'X-Magic-API-Key: your-magic-api-key\' \\ -H \'X-OIDC-Provider-ID: your-oidc-provider-id\' \\ -d \'{ \"chain\": \"ETH\", \"message_base64\": \"bm9uZQ==\" }\' ``` **Example Response:** ```json { \"signature\": \"0x0cebb670d8375ac74122b46c44def7e1ce593e80434a3e6557108ae124f8b44f3c5068fc104279fe7f51918cbe4c249d707bc1c0ce2ffb6d201d3cf4e2fdee8d1b\", \"r\": \"0x0cebb670d8375ac74122b46c44def7e1ce593e80434a3e6557108ae124f8b44f\", \"s\": \"0x3c5068fc104279fe7f51918cbe4c249d707bc1c0ce2ffb6d201d3cf4e2fdee8d\", \"v\": \"27\" } ```
194
- * @summary Sign a message using the wallet\'s private key.
192
+ *
193
+ * @summary Sign Message
195
194
  * @param {SignOperationsApiSignMessageV1WalletSignMessagePostRequest} requestParameters Request parameters.
196
195
  * @param {*} [options] Override http request option.
197
196
  * @throws {RequiredError}