Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated SDK #96 #101

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/auto-reply-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Auto Reply On New Issues
on:
issues:
types: [opened]

jobs:
auto-reply:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Choose random reply message
id: choose_message
run: |
reply_messages=(
"Thank you for raising this issue! We will look into it shortly."
"We appreciate your feedback. Our team will investigate this issue shortly."
"Your issue has been noted. We'll get back to you soon."
"Thanks for raising this issue. We'll review it and provide updates soon."
"Thank you for letting us know about this issue. We'll investigate and get back to you soon."
"Acknowledged. We'll review the issue and respond soon."
"Thanks for bringing this to our attention. We'll review it and provide updates soon."
"We've received your issue. Thanks for your patience."
"Noted. Expect updates on your issue shortly."
"Your issue is important to us. We will look into it shortly."
)
random_index=$((RANDOM % ${#reply_messages[@]}))
echo "::set-output name=message::${reply_messages[$random_index]}"

- name: Reply to issue
run: |
gh issue comment ${{ github.event.issue.number }} --body "${{ steps.choose_message.outputs.message }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26 changes: 13 additions & 13 deletions .github/workflows/auto-reply-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Auto Reply on New Issues
name: Auto Reply On New Pull Requests
on:
pull_request:
types: [opened]
Expand All @@ -14,22 +14,22 @@ jobs:
id: choose_message
run: |
reply_messages=(
"Thank you for raising this! We will review it shortly."
"We appreciate your contribution. Our team will investigate this shortly."
"Your request has been noted. We'll get back to you soon."
"Thanks for submitting this. We'll review it and provide updates soon."
"Thank you for letting us know about this. We'll investigate and get back to you soon."
"Acknowledged. We'll review and respond soon."
"Thanks for bringing this to our attention. We'll review and provide updates soon."
"We've received your request. Thanks for your patience."
"Noted. Expect updates shortly."
"Your request is important to us. We will look into it shortly."
"Thank you for raising this! We will review it shortly. (Note that this SDK code is auto generated)"
"We appreciate your contribution. Our team will investigate this request shortly. (Note that this SDK code is auto generated)"
"Your request has been noted. We'll get back to you soon. (Note that this SDK code is auto generated)"
"Thanks for submitting this request. We'll review it and provide updates soon. (Note that this SDK code is auto generated)"
"Thank you for letting us know about this request. We'll investigate and get back to you soon. (Note that this SDK code is auto generated)"
"Acknowledged. We'll review and respond soon. (Note that this SDK code is auto generated)"
"Thanks for bringing this request to our attention. We'll review and provide updates soon. (Note that this SDK code is auto generated)"
"We've received your request. Thanks for your patience. (Note that this SDK code is auto generated)"
"Noted. Expect updates shortly. (Note that this SDK code is auto generated)"
"Your request is important to us. We will look into it shortly. (Note that this SDK code is auto generated)"
)
random_index=$((RANDOM % ${#reply_messages[@]}))
echo "::set-output name=message::${reply_messages[$random_index]}"

- name: Reply to issue using GitHub CLI
if: (!contains(fromJSON('["YoavBZ", "asafs932"]'), github.event.pull_request.user.login))
- name: Reply to pull request
if: (!contains(fromJSON('["github-actions"]'), github.event.pull_request.user.login))
run: |
gh pr comment ${{ github.event.number }} --body "${{ steps.choose_message.outputs.message }}"
env:
Expand Down
8 changes: 8 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ AssetForbiddenErrorResponse.md
AssetInternalServerErrorResponse.md
AssetMetadataDto.md
AssetNotFoundErrorResponse.md
AssetPriceForbiddenErrorResponse.md
AssetPriceNotFoundErrorResponse.md
AssetPriceResponse.md
AssetResponse.md
AssetResponseMetadata.md
AssetResponseOnchain.md
Expand Down Expand Up @@ -346,6 +349,7 @@ SessionDTO.md
SessionMetadata.md
SetAdminQuorumThresholdRequest.md
SetAdminQuorumThresholdResponse.md
SetAssetPriceRequest.md
SetAutoFuelRequest.md
SetConfirmationsThresholdRequest.md
SetConfirmationsThresholdResponse.md
Expand Down Expand Up @@ -588,6 +592,9 @@ models/asset-forbidden-error-response.ts
models/asset-internal-server-error-response.ts
models/asset-metadata-dto.ts
models/asset-not-found-error-response.ts
models/asset-price-forbidden-error-response.ts
models/asset-price-not-found-error-response.ts
models/asset-price-response.ts
models/asset-response-metadata.ts
models/asset-response-onchain.ts
models/asset-response.ts
Expand Down Expand Up @@ -875,6 +882,7 @@ models/session-dto.ts
models/session-metadata.ts
models/set-admin-quorum-threshold-request.ts
models/set-admin-quorum-threshold-response.ts
models/set-asset-price-request.ts
models/set-auto-fuel-request.ts
models/set-confirmations-threshold-request.ts
models/set-confirmations-threshold-response.ts
Expand Down
51 changes: 0 additions & 51 deletions CHANGELOG.md

This file was deleted.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ Class | Method | HTTP request | Description
*AuditLogsApi* | [**getAudits**](docs/apis/AuditLogsApi.md#getAudits) | **GET** /audits | Get audit logs
*BlockchainsAssetsApi* | [**getSupportedAssets**](docs/apis/BlockchainsAssetsApi.md#getSupportedAssets) | **GET** /supported_assets | List all asset types supported by Fireblocks
*BlockchainsAssetsApi* | [**registerNewAsset**](docs/apis/BlockchainsAssetsApi.md#registerNewAsset) | **POST** /assets | Register an asset
*BlockchainsAssetsApi* | [**setAssetPrice**](docs/apis/BlockchainsAssetsApi.md#setAssetPrice) | **POST** /assets/prices/{id} | Set asset price
*ComplianceApi* | [**getAmlPostScreeningPolicy**](docs/apis/ComplianceApi.md#getAmlPostScreeningPolicy) | **GET** /screening/aml/post_screening_policy | AML - View Post-Screening Policy
*ComplianceApi* | [**getAmlScreeningPolicy**](docs/apis/ComplianceApi.md#getAmlScreeningPolicy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy
*ComplianceApi* | [**getPostScreeningPolicy**](docs/apis/ComplianceApi.md#getPostScreeningPolicy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy
Expand Down Expand Up @@ -375,6 +376,9 @@ Class | Method | HTTP request | Description
- [AssetInternalServerErrorResponse](docs/models/AssetInternalServerErrorResponse.md)
- [AssetMetadataDto](docs/models/AssetMetadataDto.md)
- [AssetNotFoundErrorResponse](docs/models/AssetNotFoundErrorResponse.md)
- [AssetPriceForbiddenErrorResponse](docs/models/AssetPriceForbiddenErrorResponse.md)
- [AssetPriceNotFoundErrorResponse](docs/models/AssetPriceNotFoundErrorResponse.md)
- [AssetPriceResponse](docs/models/AssetPriceResponse.md)
- [AssetResponse](docs/models/AssetResponse.md)
- [AssetResponseMetadata](docs/models/AssetResponseMetadata.md)
- [AssetResponseOnchain](docs/models/AssetResponseOnchain.md)
Expand Down Expand Up @@ -661,6 +665,7 @@ Class | Method | HTTP request | Description
- [SessionMetadata](docs/models/SessionMetadata.md)
- [SetAdminQuorumThresholdRequest](docs/models/SetAdminQuorumThresholdRequest.md)
- [SetAdminQuorumThresholdResponse](docs/models/SetAdminQuorumThresholdResponse.md)
- [SetAssetPriceRequest](docs/models/SetAssetPriceRequest.md)
- [SetAutoFuelRequest](docs/models/SetAutoFuelRequest.md)
- [SetConfirmationsThresholdRequest](docs/models/SetConfirmationsThresholdRequest.md)
- [SetConfirmationsThresholdResponse](docs/models/SetConfirmationsThresholdResponse.md)
Expand Down
115 changes: 115 additions & 0 deletions api/blockchains-assets-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,21 @@ import { AssetInternalServerErrorResponse } from '../models';
// @ts-ignore
import { AssetNotFoundErrorResponse } from '../models';
// @ts-ignore
import { AssetPriceForbiddenErrorResponse } from '../models';
// @ts-ignore
import { AssetPriceNotFoundErrorResponse } from '../models';
// @ts-ignore
import { AssetPriceResponse } from '../models';
// @ts-ignore
import { AssetResponse } from '../models';
// @ts-ignore
import { ErrorSchema } from '../models';
// @ts-ignore
import { GetSupportedAssetsResponse } from '../models';
// @ts-ignore
import { RegisterNewAssetRequest } from '../models';
// @ts-ignore
import { SetAssetPriceRequest } from '../models';
/**
* BlockchainsAssetsApi - axios parameter creator
* @export
Expand Down Expand Up @@ -114,6 +122,48 @@ export const BlockchainsAssetsApiAxiosParamCreator = function (configuration?: C
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.data = serializeDataIfNeeded(registerNewAssetRequest, localVarRequestOptions, configuration)

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Set asset price for the given asset id. Returns the asset price response.
* @summary Set asset price
* @param {string} id The ID of the asset
* @param {SetAssetPriceRequest} [setAssetPriceRequest]
* @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
setAssetPrice: async (id: string, setAssetPriceRequest?: SetAssetPriceRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
assertParamExistsAndNotEmpty('setAssetPrice', 'id', id)
const localVarPath = `/assets/prices/{id}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}

const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

if (idempotencyKey != null) {
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
}



localVarHeaderParameter['Content-Type'] = 'application/json';

setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.data = serializeDataIfNeeded(setAssetPriceRequest, localVarRequestOptions, configuration)

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
Expand Down Expand Up @@ -155,6 +205,21 @@ export const BlockchainsAssetsApiFp = function(configuration?: Configuration) {
const operationBasePath = operationServerMap['BlockchainsAssetsApi.registerNewAsset']?.[index]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
},
/**
* Set asset price for the given asset id. Returns the asset price response.
* @summary Set asset price
* @param {string} id The ID of the asset
* @param {SetAssetPriceRequest} [setAssetPriceRequest]
* @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async setAssetPrice(id: string, setAssetPriceRequest?: SetAssetPriceRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetPriceResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.setAssetPrice(id, setAssetPriceRequest, idempotencyKey, options);
const index = configuration?.serverIndex ?? 0;
const operationBasePath = operationServerMap['BlockchainsAssetsApi.setAssetPrice']?.[index]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
},
}
};

Expand Down Expand Up @@ -184,6 +249,16 @@ export const BlockchainsAssetsApiFactory = function (configuration?: Configurati
registerNewAsset(requestParameters: BlockchainsAssetsApiRegisterNewAssetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<AssetResponse> {
return localVarFp.registerNewAsset(requestParameters.registerNewAssetRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath));
},
/**
* Set asset price for the given asset id. Returns the asset price response.
* @summary Set asset price
* @param {BlockchainsAssetsApiSetAssetPriceRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
setAssetPrice(requestParameters: BlockchainsAssetsApiSetAssetPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<AssetPriceResponse> {
return localVarFp.setAssetPrice(requestParameters.id, requestParameters.setAssetPriceRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath));
},
};
};

Expand All @@ -208,6 +283,34 @@ export interface BlockchainsAssetsApiRegisterNewAssetRequest {
readonly idempotencyKey?: string
}

/**
* Request parameters for setAssetPrice operation in BlockchainsAssetsApi.
* @export
* @interface BlockchainsAssetsApiSetAssetPriceRequest
*/
export interface BlockchainsAssetsApiSetAssetPriceRequest {
/**
* The ID of the asset
* @type {string}
* @memberof BlockchainsAssetsApiSetAssetPrice
*/
readonly id: string

/**
*
* @type {SetAssetPriceRequest}
* @memberof BlockchainsAssetsApiSetAssetPrice
*/
readonly setAssetPriceRequest?: SetAssetPriceRequest

/**
* A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
* @type {string}
* @memberof BlockchainsAssetsApiSetAssetPrice
*/
readonly idempotencyKey?: string
}

/**
* BlockchainsAssetsApi - object-oriented interface
* @export
Expand Down Expand Up @@ -237,5 +340,17 @@ export class BlockchainsAssetsApi extends BaseAPI {
public registerNewAsset(requestParameters: BlockchainsAssetsApiRegisterNewAssetRequest = {}) {
return BlockchainsAssetsApiFp(this.configuration).registerNewAsset(requestParameters.registerNewAssetRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse);
}

/**
* Set asset price for the given asset id. Returns the asset price response.
* @summary Set asset price
* @param {BlockchainsAssetsApiSetAssetPriceRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof BlockchainsAssetsApi
*/
public setAssetPrice(requestParameters: BlockchainsAssetsApiSetAssetPriceRequest) {
return BlockchainsAssetsApiFp(this.configuration).setAssetPrice(requestParameters.id, requestParameters.setAssetPriceRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse);
}
}

Loading