@imtbl/generated-clients 2.8.1-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 (30) hide show
  1. package/dist/browser/index.js +2 -2
  2. package/dist/node/index.cjs +3 -3
  3. package/dist/node/index.js +2 -2
  4. package/dist/types/magic-tee/api.d.ts +4 -3
  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 +200 -0
  10. package/dist/types/magic-tee/domain/wallet-api.d.ts +16 -88
  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 +5 -4
  17. package/dist/types/magic-tee/models/sign-data-request.d.ts +5 -6
  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 +24 -0
  20. package/dist/types/magic-tee/models/sign-message-response.d.ts +42 -0
  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/dist/types/magic-tee-api-clients.d.ts +2 -2
  25. package/package.json +1 -1
  26. package/dist/types/magic-tee/domain/transaction-api.d.ts +0 -184
  27. package/dist/types/magic-tee/models/chain.d.ts +0 -20
  28. package/dist/types/magic-tee/models/create-wallet-request-model.d.ts +0 -25
  29. package/dist/types/magic-tee/models/personal-sign-request.d.ts +0 -31
  30. package/dist/types/magic-tee/models/personal-sign-response.d.ts +0 -42
@@ -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 personal sign operations, 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/personal-sign\', { 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\', { 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\', { 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\', { 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\', { 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/transaction-api';
12
+ export * from './domain/identity-provider-api';
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 personal sign operations, 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/personal-sign\', { 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\', { 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\', { 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\', { 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\', { 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 personal sign operations, 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/personal-sign\', { 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\', { 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\', { 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\', { 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\', { 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 personal sign operations, 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/personal-sign\', { 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\', { 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\', { 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\', { 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\', { 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
+ }
@@ -0,0 +1,200 @@
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 { SignDataRequest } from '../models';
16
+ import { SignDataResponse } from '../models';
17
+ import { SignMessageRequest } from '../models';
18
+ import { SignMessageResponse } from '../models';
19
+ /**
20
+ * SignOperationsApi - axios parameter creator
21
+ * @export
22
+ */
23
+ export declare const SignOperationsApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ *
26
+ * @summary Sign Data
27
+ * @param {string} xMagicChain
28
+ * @param {SignDataRequest} signDataRequest
29
+ * @param {string} [xMagicAPIKey]
30
+ * @param {string} [xMagicSecretKey]
31
+ * @param {string} [xOIDCProviderID]
32
+ * @param {*} [options] Override http request option.
33
+ * @throws {RequiredError}
34
+ */
35
+ signDataV1WalletSignDataPost: (xMagicChain: string, signDataRequest: SignDataRequest, xMagicAPIKey?: string, xMagicSecretKey?: string, xOIDCProviderID?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
36
+ /**
37
+ *
38
+ * @summary Sign Message
39
+ * @param {string} xMagicChain
40
+ * @param {SignMessageRequest} signMessageRequest
41
+ * @param {string} [xMagicAPIKey]
42
+ * @param {string} [xMagicSecretKey]
43
+ * @param {string} [xOIDCProviderID]
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ signMessageV1WalletSignMessagePost: (xMagicChain: string, signMessageRequest: SignMessageRequest, xMagicAPIKey?: string, xMagicSecretKey?: string, xOIDCProviderID?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
48
+ };
49
+ /**
50
+ * SignOperationsApi - functional programming interface
51
+ * @export
52
+ */
53
+ export declare const SignOperationsApiFp: (configuration?: Configuration) => {
54
+ /**
55
+ *
56
+ * @summary Sign Data
57
+ * @param {string} xMagicChain
58
+ * @param {SignDataRequest} signDataRequest
59
+ * @param {string} [xMagicAPIKey]
60
+ * @param {string} [xMagicSecretKey]
61
+ * @param {string} [xOIDCProviderID]
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ signDataV1WalletSignDataPost(xMagicChain: string, signDataRequest: SignDataRequest, xMagicAPIKey?: string, xMagicSecretKey?: string, xOIDCProviderID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignDataResponse>>;
66
+ /**
67
+ *
68
+ * @summary Sign Message
69
+ * @param {string} xMagicChain
70
+ * @param {SignMessageRequest} signMessageRequest
71
+ * @param {string} [xMagicAPIKey]
72
+ * @param {string} [xMagicSecretKey]
73
+ * @param {string} [xOIDCProviderID]
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ signMessageV1WalletSignMessagePost(xMagicChain: string, signMessageRequest: SignMessageRequest, xMagicAPIKey?: string, xMagicSecretKey?: string, xOIDCProviderID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignMessageResponse>>;
78
+ };
79
+ /**
80
+ * SignOperationsApi - factory interface
81
+ * @export
82
+ */
83
+ export declare const SignOperationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
84
+ /**
85
+ *
86
+ * @summary Sign Data
87
+ * @param {SignOperationsApiSignDataV1WalletSignDataPostRequest} requestParameters Request parameters.
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ signDataV1WalletSignDataPost(requestParameters: SignOperationsApiSignDataV1WalletSignDataPostRequest, options?: AxiosRequestConfig): AxiosPromise<SignDataResponse>;
92
+ /**
93
+ *
94
+ * @summary Sign Message
95
+ * @param {SignOperationsApiSignMessageV1WalletSignMessagePostRequest} requestParameters Request parameters.
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ signMessageV1WalletSignMessagePost(requestParameters: SignOperationsApiSignMessageV1WalletSignMessagePostRequest, options?: AxiosRequestConfig): AxiosPromise<SignMessageResponse>;
100
+ };
101
+ /**
102
+ * Request parameters for signDataV1WalletSignDataPost operation in SignOperationsApi.
103
+ * @export
104
+ * @interface SignOperationsApiSignDataV1WalletSignDataPostRequest
105
+ */
106
+ export interface SignOperationsApiSignDataV1WalletSignDataPostRequest {
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof SignOperationsApiSignDataV1WalletSignDataPost
111
+ */
112
+ readonly xMagicChain: string;
113
+ /**
114
+ *
115
+ * @type {SignDataRequest}
116
+ * @memberof SignOperationsApiSignDataV1WalletSignDataPost
117
+ */
118
+ readonly signDataRequest: SignDataRequest;
119
+ /**
120
+ *
121
+ * @type {string}
122
+ * @memberof SignOperationsApiSignDataV1WalletSignDataPost
123
+ */
124
+ readonly xMagicAPIKey?: string;
125
+ /**
126
+ *
127
+ * @type {string}
128
+ * @memberof SignOperationsApiSignDataV1WalletSignDataPost
129
+ */
130
+ readonly xMagicSecretKey?: string;
131
+ /**
132
+ *
133
+ * @type {string}
134
+ * @memberof SignOperationsApiSignDataV1WalletSignDataPost
135
+ */
136
+ readonly xOIDCProviderID?: string;
137
+ }
138
+ /**
139
+ * Request parameters for signMessageV1WalletSignMessagePost operation in SignOperationsApi.
140
+ * @export
141
+ * @interface SignOperationsApiSignMessageV1WalletSignMessagePostRequest
142
+ */
143
+ export interface SignOperationsApiSignMessageV1WalletSignMessagePostRequest {
144
+ /**
145
+ *
146
+ * @type {string}
147
+ * @memberof SignOperationsApiSignMessageV1WalletSignMessagePost
148
+ */
149
+ readonly xMagicChain: string;
150
+ /**
151
+ *
152
+ * @type {SignMessageRequest}
153
+ * @memberof SignOperationsApiSignMessageV1WalletSignMessagePost
154
+ */
155
+ readonly signMessageRequest: SignMessageRequest;
156
+ /**
157
+ *
158
+ * @type {string}
159
+ * @memberof SignOperationsApiSignMessageV1WalletSignMessagePost
160
+ */
161
+ readonly xMagicAPIKey?: string;
162
+ /**
163
+ *
164
+ * @type {string}
165
+ * @memberof SignOperationsApiSignMessageV1WalletSignMessagePost
166
+ */
167
+ readonly xMagicSecretKey?: string;
168
+ /**
169
+ *
170
+ * @type {string}
171
+ * @memberof SignOperationsApiSignMessageV1WalletSignMessagePost
172
+ */
173
+ readonly xOIDCProviderID?: string;
174
+ }
175
+ /**
176
+ * SignOperationsApi - object-oriented interface
177
+ * @export
178
+ * @class SignOperationsApi
179
+ * @extends {BaseAPI}
180
+ */
181
+ export declare class SignOperationsApi extends BaseAPI {
182
+ /**
183
+ *
184
+ * @summary Sign Data
185
+ * @param {SignOperationsApiSignDataV1WalletSignDataPostRequest} requestParameters Request parameters.
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ * @memberof SignOperationsApi
189
+ */
190
+ signDataV1WalletSignDataPost(requestParameters: SignOperationsApiSignDataV1WalletSignDataPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SignDataResponse, any>>;
191
+ /**
192
+ *
193
+ * @summary Sign Message
194
+ * @param {SignOperationsApiSignMessageV1WalletSignMessagePostRequest} requestParameters Request parameters.
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ * @memberof SignOperationsApi
198
+ */
199
+ signMessageV1WalletSignMessagePost(requestParameters: SignOperationsApiSignMessageV1WalletSignMessagePostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SignMessageResponse, any>>;
200
+ }