-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pb/eip-7702
- Loading branch information
Showing
77 changed files
with
3,472 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
/* istanbul ignore file */ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
import type { CancelablePromise } from '../core/CancelablePromise'; | ||
import type { BaseHttpRequest } from '../core/BaseHttpRequest'; | ||
|
||
export class WalletCredentialsService { | ||
|
||
constructor(public readonly httpRequest: BaseHttpRequest) {} | ||
|
||
/** | ||
* Create wallet credentials | ||
* Create a new set of wallet credentials. | ||
* @param requestBody | ||
* @returns any Default Response | ||
* @throws ApiError | ||
*/ | ||
public createWalletCredential( | ||
requestBody: { | ||
label: string; | ||
type: 'circle'; | ||
/** | ||
* 32-byte hex string. Consult https://developers.circle.com/w3s/entity-secret-management to create and register an entity secret. | ||
*/ | ||
entitySecret: string; | ||
/** | ||
* Whether this credential should be set as the default for its type. Only one credential can be default per type. | ||
*/ | ||
isDefault?: boolean; | ||
}, | ||
): CancelablePromise<{ | ||
result: { | ||
id: string; | ||
type: string; | ||
label: string; | ||
isDefault: (boolean | null); | ||
createdAt: string; | ||
updatedAt: string; | ||
}; | ||
}> { | ||
return this.httpRequest.request({ | ||
method: 'POST', | ||
url: '/wallet-credentials', | ||
body: requestBody, | ||
mediaType: 'application/json', | ||
errors: { | ||
400: `Bad Request`, | ||
404: `Not Found`, | ||
500: `Internal Server Error`, | ||
}, | ||
}); | ||
} | ||
|
||
/** | ||
* Get all wallet credentials | ||
* Get all wallet credentials with pagination. | ||
* @param page Specify the page number. | ||
* @param limit Specify the number of results to return per page. | ||
* @returns any Default Response | ||
* @throws ApiError | ||
*/ | ||
public getAllWalletCredentials( | ||
page: number = 1, | ||
limit: number = 100, | ||
): CancelablePromise<{ | ||
result: Array<{ | ||
id: string; | ||
type: string; | ||
label: (string | null); | ||
isDefault: (boolean | null); | ||
createdAt: string; | ||
updatedAt: string; | ||
}>; | ||
}> { | ||
return this.httpRequest.request({ | ||
method: 'GET', | ||
url: '/wallet-credentials', | ||
query: { | ||
'page': page, | ||
'limit': limit, | ||
}, | ||
errors: { | ||
400: `Bad Request`, | ||
404: `Not Found`, | ||
500: `Internal Server Error`, | ||
}, | ||
}); | ||
} | ||
|
||
/** | ||
* Get wallet credential | ||
* Get a wallet credential by ID. | ||
* @param id The ID of the wallet credential to get. | ||
* @returns any Default Response | ||
* @throws ApiError | ||
*/ | ||
public getWalletCredential( | ||
id: string, | ||
): CancelablePromise<{ | ||
result: { | ||
id: string; | ||
type: string; | ||
label: (string | null); | ||
isDefault: (boolean | null); | ||
createdAt: string; | ||
updatedAt: string; | ||
deletedAt: (string | null); | ||
}; | ||
}> { | ||
return this.httpRequest.request({ | ||
method: 'GET', | ||
url: '/wallet-credentials/{id}', | ||
path: { | ||
'id': id, | ||
}, | ||
errors: { | ||
400: `Bad Request`, | ||
404: `Not Found`, | ||
500: `Internal Server Error`, | ||
}, | ||
}); | ||
} | ||
|
||
/** | ||
* Update wallet credential | ||
* Update a wallet credential's label, default status, and entity secret. | ||
* @param id The ID of the wallet credential to update. | ||
* @param requestBody | ||
* @returns any Default Response | ||
* @throws ApiError | ||
*/ | ||
public updateWalletCredential( | ||
id: string, | ||
requestBody?: { | ||
label?: string; | ||
/** | ||
* Whether this credential should be set as the default for its type. Only one credential can be default per type. | ||
*/ | ||
isDefault?: boolean; | ||
/** | ||
* 32-byte hex string. Consult https://developers.circle.com/w3s/entity-secret-management to create and register an entity secret. | ||
*/ | ||
entitySecret?: string; | ||
}, | ||
): CancelablePromise<{ | ||
result: { | ||
id: string; | ||
type: string; | ||
label: (string | null); | ||
isDefault: (boolean | null); | ||
createdAt: string; | ||
updatedAt: string; | ||
}; | ||
}> { | ||
return this.httpRequest.request({ | ||
method: 'PUT', | ||
url: '/wallet-credentials/{id}', | ||
path: { | ||
'id': id, | ||
}, | ||
body: requestBody, | ||
mediaType: 'application/json', | ||
errors: { | ||
400: `Bad Request`, | ||
404: `Not Found`, | ||
500: `Internal Server Error`, | ||
}, | ||
}); | ||
} | ||
|
||
} |
Oops, something went wrong.