Skip to content

Commit

Permalink
feat: add new chains
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalavedra committed Oct 23, 2024
1 parent d64da4d commit 2045e54
Show file tree
Hide file tree
Showing 35 changed files with 2,202 additions and 307 deletions.
820 changes: 712 additions & 108 deletions packages/internal/openapi-clients/src/backend-openapi.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ domain/contracts-api.ts
domain/default-api.ts
domain/events-api.ts
domain/exchange-api.ts
domain/forwarder-contract-api.ts
domain/inventories-api.ts
domain/paymaster-api.ts
domain/players-api.ts
Expand Down Expand Up @@ -49,6 +50,7 @@ models/apitopic.ts
models/apitrigger-type.ts
models/asset-inventory.ts
models/asset-type.ts
models/auth-config.ts
models/auth-player-list-queries.ts
models/auth-player-list-response.ts
models/auth-player-response-player.ts
Expand All @@ -70,6 +72,7 @@ models/base-entity-list-response-device-response.ts
models/base-entity-list-response-email-sample-response.ts
models/base-entity-list-response-log-response.ts
models/base-entity-list-response-trigger-response.ts
models/basic-auth-provider-email.ts
models/basic-auth-provider.ts
models/cancel-transfer-ownership-request.ts
models/charge-custom-token-policy-strategy.ts
Expand All @@ -95,11 +98,13 @@ models/create-account-request.ts
models/create-api-authorized-network-request.ts
models/create-auth-player-request.ts
models/create-contract-request.ts
models/create-developer-account-create-request.ts
models/create-device-request.ts
models/create-ecosystem-configuration-request.ts
models/create-email-sample-request.ts
models/create-event-request.ts
models/create-exchange-request.ts
models/create-forwarder-contract-request.ts
models/create-paymaster-request.ts
models/create-policy-request.ts
models/create-policy-rule-request.ts
Expand All @@ -114,7 +119,6 @@ models/custom-auth-config.ts
models/delete-smtpconfig-response.ts
models/deploy-request.ts
models/deprecated-authenticated-player-response.ts
models/developer-account-create-request.ts
models/developer-account-delete-response.ts
models/developer-account-get-message-response.ts
models/developer-account-list-queries.ts
Expand All @@ -126,6 +130,7 @@ models/device-list-queries.ts
models/device-response.ts
models/discord-oauth-config.ts
models/ecosystem-configuration-response.ts
models/email-auth-config.ts
models/email-sample-delete-response.ts
models/email-sample-response.ts
models/email-type-request.ts
Expand All @@ -138,6 +143,7 @@ models/entity-type-developeraccount.ts
models/entity-type-device.ts
models/entity-type-emailsample.ts
models/entity-type-event.ts
models/entity-type-forwardercontract.ts
models/entity-type-inventory.ts
models/entity-type-log.ts
models/entity-type-paymaster.ts
Expand Down Expand Up @@ -166,13 +172,16 @@ models/fee.ts
models/field-errors-value.ts
models/firebase-oauth-config.ts
models/fixed-rate-token-policy-strategy.ts
models/forwarder-contract-delete-response.ts
models/forwarder-contract-response.ts
models/gas-per-interval-limit-policy-rule-response.ts
models/gas-per-transaction-limit-policy-rule-response.ts
models/gas-report-list-response.ts
models/gas-report-transaction-intents-list-response.ts
models/gas-report-transaction-intents.ts
models/gas-report.ts
models/google-oauth-config.ts
models/grant-oauth-response.ts
models/index.ts
models/init-embedded-request.ts
models/interaction.ts
Expand All @@ -184,6 +193,7 @@ models/jwt-key-response.ts
models/jwt-key.ts
models/line-oauth-config.ts
models/linked-account-response.ts
models/list-config-request.ts
models/list-subscription-logs-request.ts
models/log-response.ts
models/log.ts
Expand All @@ -198,7 +208,6 @@ models/next-action-payload.ts
models/next-action-response.ts
models/next-action-type.ts
models/oauth-config-list-response.ts
models/oauth-config.ts
models/oauth-init-request-options.ts
models/oauth-init-request.ts
models/oauth-provders.ts
Expand Down Expand Up @@ -305,6 +314,7 @@ models/subscription-response.ts
models/supabase-auth-config.ts
models/telegram-oauth-config.ts
models/telegram-third-party-config.ts
models/test-trigger200-response.ts
models/third-party-oauth-provider-accelbyte.ts
models/third-party-oauth-provider-custom.ts
models/third-party-oauth-provider-firebase.ts
Expand Down Expand Up @@ -340,6 +350,7 @@ models/typed-domain-data.ts
models/unlink-email-request.ts
models/unlink-oauth-request.ts
models/update-contract-request.ts
models/update-developer-account-create-request.ts
models/update-email-sample-request.ts
models/update-policy-request.ts
models/update-policy-rule-request.ts
Expand Down
1 change: 1 addition & 0 deletions packages/internal/openapi-clients/src/backend/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export * from './domain/contracts-api';
export * from './domain/default-api';
export * from './domain/events-api';
export * from './domain/exchange-api';
export * from './domain/forwarder-contract-api';
export * from './domain/inventories-api';
export * from './domain/paymaster-api';
export * from './domain/players-api';
Expand Down

Large diffs are not rendered by default.

54 changes: 38 additions & 16 deletions packages/internal/openapi-clients/src/backend/domain/default-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ import { AuthProviderListResponse } from '../models';
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
* List available authentication methods for the current project environment.
* @summary List of available authentication methods.
* List configured auth methods for the current project environment.
* @summary List of auth configurations.
* @param {boolean} [enabled]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listAvailableAuthProviders: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/iam/v1/providers`;
list: async (enabled?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/iam/v1/config`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
Expand All @@ -52,6 +53,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)

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



setSearchParams(localVarUrlObj, localVarQueryParameter);
Expand All @@ -74,13 +79,14 @@ export const DefaultApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
return {
/**
* List available authentication methods for the current project environment.
* @summary List of available authentication methods.
* List configured auth methods for the current project environment.
* @summary List of auth configurations.
* @param {boolean} [enabled]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listAvailableAuthProviders(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthProviderListResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableAuthProviders(options);
async list(enabled?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthProviderListResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.list(enabled, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
Expand All @@ -94,17 +100,32 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
const localVarFp = DefaultApiFp(configuration)
return {
/**
* List available authentication methods for the current project environment.
* @summary List of available authentication methods.
* List configured auth methods for the current project environment.
* @summary List of auth configurations.
* @param {DefaultApiListRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listAvailableAuthProviders(options?: AxiosRequestConfig): AxiosPromise<AuthProviderListResponse> {
return localVarFp.listAvailableAuthProviders(options).then((request) => request(axios, basePath));
list(requestParameters: DefaultApiListRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AuthProviderListResponse> {
return localVarFp.list(requestParameters.enabled, options).then((request) => request(axios, basePath));
},
};
};

/**
* Request parameters for list operation in DefaultApi.
* @export
* @interface DefaultApiListRequest
*/
export interface DefaultApiListRequest {
/**
*
* @type {boolean}
* @memberof DefaultApiList
*/
readonly enabled?: boolean
}

/**
* DefaultApi - object-oriented interface
* @export
Expand All @@ -113,14 +134,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
*/
export class DefaultApi extends BaseAPI {
/**
* List available authentication methods for the current project environment.
* @summary List of available authentication methods.
* List configured auth methods for the current project environment.
* @summary List of auth configurations.
* @param {DefaultApiListRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
public listAvailableAuthProviders(options?: AxiosRequestConfig) {
return DefaultApiFp(this.configuration).listAvailableAuthProviders(options).then((request) => request(this.axios, this.basePath));
public list(requestParameters: DefaultApiListRequest = {}, options?: AxiosRequestConfig) {
return DefaultApiFp(this.configuration).list(requestParameters.enabled, options).then((request) => request(this.axios, this.basePath));
}
}

Loading

0 comments on commit 2045e54

Please sign in to comment.