Skip to content

Commit

Permalink
Auto-generated SDK v1.0.0-beta18
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Mar 26, 2024
1 parent a3870fc commit b9ceb13
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## @curvegrid/multibaas-sdk@1.0.0-beta17
## @curvegrid/multibaas-sdk@1.0.0-beta18

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Expand Down Expand Up @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
_published:_

```
npm install @curvegrid/[email protected]beta17 --save
npm install @curvegrid/[email protected]beta18 --save
```

_unPublished (not recommended):_
Expand Down
84 changes: 79 additions & 5 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,55 @@ export interface APIKey {
*/
signature: string;
}
/**
* A freshly created API key with its secret.
* @export
* @interface APIKeyWithSecret
*/
export interface APIKeyWithSecret {
/**
* A label.
* @type {string}
* @memberof APIKeyWithSecret
*/
label: string;
/**
*
* @type {number}
* @memberof APIKeyWithSecret
*/
id: number;
/**
* The time the API key was created.
* @type {string}
* @memberof APIKeyWithSecret
*/
createdAt: string;
/**
* The time the API key was last used.
* @type {string}
* @memberof APIKeyWithSecret
*/
lastUsedAt?: string;
/**
* The ID of the user that created the API key.
* @type {number}
* @memberof APIKeyWithSecret
*/
createdBy: number;
/**
* The signature of the API key.
* @type {string}
* @memberof APIKeyWithSecret
*/
signature: string;
/**
* The secret key of the API key.
* @type {string}
* @memberof APIKeyWithSecret
*/
key: string;
}
/**
*
* @export
Expand Down Expand Up @@ -1599,10 +1648,10 @@ export interface CreateApiKey200Response {
message: string;
/**
*
* @type {APIKey}
* @type {APIKeyWithSecret}
* @memberof CreateApiKey200Response
*/
result: APIKey;
result: APIKeyWithSecret;
}
/**
*
Expand Down Expand Up @@ -2201,6 +2250,31 @@ export interface GasParams {
*/
gas?: number;
}
/**
*
* @export
* @interface GetApiKey200Response
*/
export interface GetApiKey200Response {
/**
* The status code.
* @type {number}
* @memberof GetApiKey200Response
*/
status: number;
/**
* The human-readable status message.
* @type {string}
* @memberof GetApiKey200Response
*/
message: string;
/**
*
* @type {APIKey}
* @memberof GetApiKey200Response
*/
result: APIKey;
}
/**
*
* @export
Expand Down Expand Up @@ -6037,7 +6111,7 @@ export const AdminApiFp = function (configuration?: Configuration) {
async getApiKey(
apiKeyID: number,
options?: RawAxiosRequestConfig
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateApiKey200Response>> {
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetApiKey200Response>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(apiKeyID, options);
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
const localVarOperationServerBasePath =
Expand Down Expand Up @@ -6570,7 +6644,7 @@ export const AdminApiFactory = function (configuration?: Configuration, basePath
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getApiKey(apiKeyID: number, options?: any): AxiosPromise<CreateApiKey200Response> {
getApiKey(apiKeyID: number, options?: any): AxiosPromise<GetApiKey200Response> {
return localVarFp.getApiKey(apiKeyID, options).then((request) => request(axios, basePath));
},
/**
Expand Down Expand Up @@ -6878,7 +6952,7 @@ export interface AdminApiInterface {
* @throws {RequiredError}
* @memberof AdminApiInterface
*/
getApiKey(apiKeyID: number, options?: RawAxiosRequestConfig): AxiosPromise<CreateApiKey200Response>;
getApiKey(apiKeyID: number, options?: RawAxiosRequestConfig): AxiosPromise<GetApiKey200Response>;

/**
* Invites a new user.
Expand Down
2 changes: 1 addition & 1 deletion openapi-generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gitRepoId: multibaas-sdk-typescript
templateDir: templates
additionalProperties:
npmName: "@curvegrid/multibaas-sdk"
npmVersion: 1.0.0-beta17
npmVersion: 1.0.0-beta18
disallowAdditionalPropertiesIfNotPresent: true
legacyDiscriminatorBehavior: false
withInterfaces: true
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curvegrid/multibaas-sdk",
"version": "1.0.0-beta17",
"version": "1.0.0-beta18",
"description": "MultiBaas SDK for TypeScript / JavaScript",
"author": "Curvegrid",
"repository": {
Expand Down

0 comments on commit b9ceb13

Please sign in to comment.