Skip to content

Commit

Permalink
Generated SDK #4262
Browse files Browse the repository at this point in the history
  • Loading branch information
fireblocks_dx_team committed Feb 12, 2025
1 parent b8c94cc commit 465873d
Show file tree
Hide file tree
Showing 22 changed files with 413 additions and 299 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ NetworkRecord.md
NoneNetworkRoutingDest.md
NotFoundException.md
Notification.md
NotificationAttempt.md
NotificationPaginatedResponse.md
NotificationStatus.md
NotificationWithData.md
Expand Down Expand Up @@ -922,6 +923,7 @@ models/network-id.ts
models/network-record.ts
models/none-network-routing-dest.ts
models/not-found-exception.ts
models/notification-attempt.ts
models/notification-paginated-response.ts
models/notification-status.ts
models/notification-with-data.ts
Expand Down
93 changes: 0 additions & 93 deletions CHANGELOG.md

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ Class | Method | HTTP request | Description
*WebhooksV2BetaApi* | [**getNotifications**](docs/apis/WebhooksV2BetaApi.md#getNotifications) | **GET** /webhooks/{webhookId}/notifications | Get all notifications by webhook id
*WebhooksV2BetaApi* | [**getWebhook**](docs/apis/WebhooksV2BetaApi.md#getWebhook) | **GET** /webhooks/{webhookId} | Get webhook by id
*WebhooksV2BetaApi* | [**getWebhooks**](docs/apis/WebhooksV2BetaApi.md#getWebhooks) | **GET** /webhooks | Get all webhooks
*WebhooksV2BetaApi* | [**resendNotificationById**](docs/apis/WebhooksV2BetaApi.md#resendNotificationById) | **POST** /webhooks/{webhookId}/notifications/{notificationId}/resend | Resend notification by id
*WebhooksV2BetaApi* | [**updateWebhook**](docs/apis/WebhooksV2BetaApi.md#updateWebhook) | **PATCH** /webhooks/{webhookId} | Update webhook
*WhitelistIpAddressesApi* | [**getWhitelistIpAddresses**](docs/apis/WhitelistIpAddressesApi.md#getWhitelistIpAddresses) | **GET** /management/api_users/{userId}/whitelist_ip_addresses | Gets whitelisted ip addresses
*WorkspaceStatusBetaApi* | [**getWorkspaceStatus**](docs/apis/WorkspaceStatusBetaApi.md#getWorkspaceStatus) | **GET** /management/workspace_status | Returns current workspace status
Expand Down Expand Up @@ -669,6 +670,7 @@ Class | Method | HTTP request | Description
- [NoneNetworkRoutingDest](docs/models/NoneNetworkRoutingDest.md)
- [NotFoundException](docs/models/NotFoundException.md)
- [Notification](docs/models/Notification.md)
- [NotificationAttempt](docs/models/NotificationAttempt.md)
- [NotificationPaginatedResponse](docs/models/NotificationPaginatedResponse.md)
- [NotificationStatus](docs/models/NotificationStatus.md)
- [NotificationWithData](docs/models/NotificationWithData.md)
Expand Down
23 changes: 18 additions & 5 deletions api/network-connections-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,14 @@ export const NetworkConnectionsApiAxiosParamCreator = function (configuration?:
* @summary Search network IDs, both local IDs and discoverable remote IDs
* @param {string} [search] Search string - displayName networkId. Optional
* @param {boolean} [excludeSelf] Exclude your networkIds. Optional, default false
* @param {boolean} [onlySelf] Include just your networkIds. Optional, default false
* @param {boolean} [excludeConnected] Exclude connected networkIds. Optional, default false
* @param {string} [pageCursor] ID of the record after which to fetch $limit records
* @param {number} [pageSize] Number of records to fetch. By default, it is 50
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
searchNetworkIds: async (search?: string, excludeSelf?: boolean, excludeConnected?: boolean, pageCursor?: string, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
searchNetworkIds: async (search?: string, excludeSelf?: boolean, onlySelf?: boolean, excludeConnected?: boolean, pageCursor?: string, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/network_ids/search`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
Expand All @@ -437,6 +438,10 @@ export const NetworkConnectionsApiAxiosParamCreator = function (configuration?:
localVarQueryParameter['excludeSelf'] = excludeSelf;
}

if (onlySelf !== undefined) {
localVarQueryParameter['onlySelf'] = onlySelf;
}

if (excludeConnected !== undefined) {
localVarQueryParameter['excludeConnected'] = excludeConnected;
}
Expand Down Expand Up @@ -756,14 +761,15 @@ export const NetworkConnectionsApiFp = function(configuration?: Configuration) {
* @summary Search network IDs, both local IDs and discoverable remote IDs
* @param {string} [search] Search string - displayName networkId. Optional
* @param {boolean} [excludeSelf] Exclude your networkIds. Optional, default false
* @param {boolean} [onlySelf] Include just your networkIds. Optional, default false
* @param {boolean} [excludeConnected] Exclude connected networkIds. Optional, default false
* @param {string} [pageCursor] ID of the record after which to fetch $limit records
* @param {number} [pageSize] Number of records to fetch. By default, it is 50
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async searchNetworkIds(search?: string, excludeSelf?: boolean, excludeConnected?: boolean, pageCursor?: string, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchNetworkIdsResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.searchNetworkIds(search, excludeSelf, excludeConnected, pageCursor, pageSize, options);
async searchNetworkIds(search?: string, excludeSelf?: boolean, onlySelf?: boolean, excludeConnected?: boolean, pageCursor?: string, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchNetworkIdsResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.searchNetworkIds(search, excludeSelf, onlySelf, excludeConnected, pageCursor, pageSize, options);
const index = configuration?.serverIndex ?? 0;
const operationBasePath = operationServerMap['NetworkConnectionsApi.searchNetworkIds']?.[index]?.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
Expand Down Expand Up @@ -940,7 +946,7 @@ export const NetworkConnectionsApiFactory = function (configuration?: Configurat
* @throws {RequiredError}
*/
searchNetworkIds(requestParameters: NetworkConnectionsApiSearchNetworkIdsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<SearchNetworkIdsResponse> {
return localVarFp.searchNetworkIds(requestParameters.search, requestParameters.excludeSelf, requestParameters.excludeConnected, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
return localVarFp.searchNetworkIds(requestParameters.search, requestParameters.excludeSelf, requestParameters.onlySelf, requestParameters.excludeConnected, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
},
/**
* Update whether or not the network ID is discoverable by others. **Note:** This API call is subject to Flexible Routing Schemes. Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type: - **None**; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to `None` will fail. - **Custom**; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one. - **Default**; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as \"Profile Routing\" Default Workspace Presets: - Network Profile Crypto → **Custom** - Network Profile FIAT → **None** - Network Connection Crypto → **Default** - Network Connection FIAT → **Default** - **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`).
Expand Down Expand Up @@ -1124,6 +1130,13 @@ export interface NetworkConnectionsApiSearchNetworkIdsRequest {
*/
readonly excludeSelf?: boolean

/**
* Include just your networkIds. Optional, default false
* @type {boolean}
* @memberof NetworkConnectionsApiSearchNetworkIds
*/
readonly onlySelf?: boolean

/**
* Exclude connected networkIds. Optional, default false
* @type {boolean}
Expand Down Expand Up @@ -1364,7 +1377,7 @@ export class NetworkConnectionsApi extends BaseAPI {
* @memberof NetworkConnectionsApi
*/
public searchNetworkIds(requestParameters: NetworkConnectionsApiSearchNetworkIdsRequest = {}) {
return NetworkConnectionsApiFp(this.configuration).searchNetworkIds(requestParameters.search, requestParameters.excludeSelf, requestParameters.excludeConnected, requestParameters.pageCursor, requestParameters.pageSize).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse);
return NetworkConnectionsApiFp(this.configuration).searchNetworkIds(requestParameters.search, requestParameters.excludeSelf, requestParameters.onlySelf, requestParameters.excludeConnected, requestParameters.pageCursor, requestParameters.pageSize).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse);
}

/**
Expand Down
Loading

0 comments on commit 465873d

Please sign in to comment.