From 9b8d4e45de576e844eb204e6e64307f389668bc7 Mon Sep 17 00:00:00 2001 From: rotorsoft Date: Wed, 7 Aug 2024 12:35:04 -0400 Subject: [PATCH 1/4] api generator --- libs/adapters/src/trpc/index.ts | 18 +- libs/api-client/openapitools.json | 7 + libs/api-client/package.json | 22 + libs/api-client/src/.gitignore | 4 + libs/api-client/src/.npmignore | 1 + libs/api-client/src/.openapi-generator-ignore | 23 + libs/api-client/src/.openapi-generator/FILES | 8 + .../api-client/src/.openapi-generator/VERSION | 1 + libs/api-client/src/api.ts | 10204 ++++++++++++++++ libs/api-client/src/base.ts | 91 + libs/api-client/src/common.ts | 202 + libs/api-client/src/configuration.ts | 132 + libs/api-client/src/git_push.sh | 57 + libs/api-client/src/index.ts | 16 + libs/api-client/test/index.ts | 24 + pnpm-lock.yaml | 398 +- 16 files changed, 11205 insertions(+), 3 deletions(-) create mode 100644 libs/api-client/openapitools.json create mode 100644 libs/api-client/package.json create mode 100644 libs/api-client/src/.gitignore create mode 100644 libs/api-client/src/.npmignore create mode 100644 libs/api-client/src/.openapi-generator-ignore create mode 100644 libs/api-client/src/.openapi-generator/FILES create mode 100644 libs/api-client/src/.openapi-generator/VERSION create mode 100644 libs/api-client/src/api.ts create mode 100644 libs/api-client/src/base.ts create mode 100644 libs/api-client/src/common.ts create mode 100644 libs/api-client/src/configuration.ts create mode 100644 libs/api-client/src/git_push.sh create mode 100644 libs/api-client/src/index.ts create mode 100644 libs/api-client/test/index.ts diff --git a/libs/adapters/src/trpc/index.ts b/libs/adapters/src/trpc/index.ts index 332606d81e0..6ee18a4d2c7 100644 --- a/libs/adapters/src/trpc/index.ts +++ b/libs/adapters/src/trpc/index.ts @@ -138,7 +138,14 @@ export const command = < method: 'POST', path: `/${tag.toLowerCase()}/{id}/${factory.name}`, tags: [tag], - headers: [{ name: 'address_id' }], + headers: [ + { + in: 'header', + name: 'address_id', + required: true, + schema: { type: 'string' }, + }, + ], protect: md.secure, }, }) @@ -212,7 +219,14 @@ export const query = ( method: 'GET', path: `/${Tag.Query.toLowerCase()}/${factory.name}`, tags: [Tag.Query], - headers: [{ name: 'address_id' }], + headers: [ + { + in: 'header', + name: 'address_id', + required: false, + schema: { type: 'string' }, + }, + ], }, protect: md.secure, }) diff --git a/libs/api-client/openapitools.json b/libs/api-client/openapitools.json new file mode 100644 index 00000000000..f227cf2df3c --- /dev/null +++ b/libs/api-client/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.7.0" + } +} diff --git a/libs/api-client/package.json b/libs/api-client/package.json new file mode 100644 index 00000000000..2bd93df685b --- /dev/null +++ b/libs/api-client/package.json @@ -0,0 +1,22 @@ +{ + "name": "@hicommonwealth/api-client", + "version": "1.0.0", + "type": "module", + "scripts": { + "build": "tsc -b ./tsconfig.build.json", + "clean": "rm -rf build && rm -rf coverage", + "run-test": "tsx ./test/index.ts", + "check-types": "tsc --noEmit", + "generate-client": "openapi-generator-cli generate -i http://localhost:8080/api/v1/openapi.json -g typescript-axios -o ./src --skip-validate-spec" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "axios": "^1.3.4" + }, + "devDependencies": { + "@openapitools/openapi-generator-cli": "^2.13.4", + "tsx": "^4.7.2" + } +} diff --git a/libs/api-client/src/.gitignore b/libs/api-client/src/.gitignore new file mode 100644 index 00000000000..149b5765472 --- /dev/null +++ b/libs/api-client/src/.gitignore @@ -0,0 +1,4 @@ +wwwroot/*.js +node_modules +typings +dist diff --git a/libs/api-client/src/.npmignore b/libs/api-client/src/.npmignore new file mode 100644 index 00000000000..999d88df693 --- /dev/null +++ b/libs/api-client/src/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/libs/api-client/src/.openapi-generator-ignore b/libs/api-client/src/.openapi-generator-ignore new file mode 100644 index 00000000000..7484ee590a3 --- /dev/null +++ b/libs/api-client/src/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/libs/api-client/src/.openapi-generator/FILES b/libs/api-client/src/.openapi-generator/FILES new file mode 100644 index 00000000000..a80cd4f07b0 --- /dev/null +++ b/libs/api-client/src/.openapi-generator/FILES @@ -0,0 +1,8 @@ +.gitignore +.npmignore +api.ts +base.ts +common.ts +configuration.ts +git_push.sh +index.ts diff --git a/libs/api-client/src/.openapi-generator/VERSION b/libs/api-client/src/.openapi-generator/VERSION new file mode 100644 index 00000000000..1985849fb58 --- /dev/null +++ b/libs/api-client/src/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.7.0 diff --git a/libs/api-client/src/api.ts b/libs/api-client/src/api.ts new file mode 100644 index 00000000000..f64629faf36 --- /dev/null +++ b/libs/api-client/src/api.ts @@ -0,0 +1,10204 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Common API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import type { AxiosInstance, AxiosPromise, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +import type { Configuration } from './configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import type { RequestArgs } from './base'; +import { + DUMMY_BASE_URL, + assertParamExists, + createRequestFunction, + serializeDataIfNeeded, + setBearerAuthToObject, + setSearchParams, + toPathString, +} from './common'; +// @ts-ignore +import { BASE_PATH, BaseAPI, RequiredError, operationServerMap } from './base'; + +/** + * + * @export + * @interface MutationCommunityCreateGroupRequest + */ +export interface MutationCommunityCreateGroupRequest { + /** + * + * @type {MutationCommunityCreateGroupRequestMetadata} + * @memberof MutationCommunityCreateGroupRequest + */ + metadata: MutationCommunityCreateGroupRequestMetadata; + /** + * + * @type {Array} + * @memberof MutationCommunityCreateGroupRequest + */ + requirements: Array; + /** + * + * @type {Array} + * @memberof MutationCommunityCreateGroupRequest + */ + topics?: Array; +} +/** + * + * @export + * @interface MutationCommunityCreateGroupRequestMetadata + */ +export interface MutationCommunityCreateGroupRequestMetadata { + /** + * + * @type {string} + * @memberof MutationCommunityCreateGroupRequestMetadata + */ + name: string; + /** + * + * @type {string} + * @memberof MutationCommunityCreateGroupRequestMetadata + */ + description: string; + /** + * + * @type {number} + * @memberof MutationCommunityCreateGroupRequestMetadata + */ + required_requirements?: number; + /** + * + * @type {number} + * @memberof MutationCommunityCreateGroupRequestMetadata + */ + membership_ttl?: number; +} +/** + * + * @export + * @interface MutationCommunityCreateStakeTransactionRequest + */ +export interface MutationCommunityCreateStakeTransactionRequest { + /** + * + * @type {string} + * @memberof MutationCommunityCreateStakeTransactionRequest + */ + transaction_hash: string; + /** + * + * @type {string} + * @memberof MutationCommunityCreateStakeTransactionRequest + */ + community_id: string; +} +/** + * + * @export + * @interface MutationCommunitySetStake200Response + */ +export interface MutationCommunitySetStake200Response { + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + name: string; + /** + * + * @type {number} + * @memberof MutationCommunitySetStake200Response + */ + chain_node_id: number; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + default_symbol?: string; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + network?: MutationCommunitySetStake200ResponseNetworkEnum; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + base: MutationCommunitySetStake200ResponseBaseEnum; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + icon_url?: string | null; + /** + * + * @type {boolean} + * @memberof MutationCommunitySetStake200Response + */ + active: boolean; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + type?: MutationCommunitySetStake200ResponseTypeEnum; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + id?: string; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + description?: string; + /** + * + * @type {Array} + * @memberof MutationCommunitySetStake200Response + */ + social_links?: Array; + /** + * + * @type {number} + * @memberof MutationCommunitySetStake200Response + */ + ss58_prefix?: number; + /** + * + * @type {boolean} + * @memberof MutationCommunitySetStake200Response + */ + stages_enabled?: boolean; + /** + * + * @type {Array} + * @memberof MutationCommunitySetStake200Response + */ + custom_stages?: Array; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + custom_domain?: string; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + block_explorer_ids?: string; + /** + * + * @type {boolean} + * @memberof MutationCommunitySetStake200Response + */ + collapsed_on_homepage?: boolean; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + substrate_spec?: string; + /** + * + * @type {boolean} + * @memberof MutationCommunitySetStake200Response + */ + has_chain_events_listener?: boolean; + /** + * + * @type {boolean} + * @memberof MutationCommunitySetStake200Response + */ + default_summary_view?: boolean; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + default_page?: MutationCommunitySetStake200ResponseDefaultPageEnum; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + has_homepage?: MutationCommunitySetStake200ResponseHasHomepageEnum | null; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + terms?: string; + /** + * + * @type {boolean} + * @memberof MutationCommunitySetStake200Response + */ + admin_only_polling?: boolean; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + bech32_prefix?: string; + /** + * + * @type {boolean} + * @memberof MutationCommunitySetStake200Response + */ + hide_projects?: boolean; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + token_name?: string; + /** + * + * @type {boolean} + * @memberof MutationCommunitySetStake200Response + */ + ce_verbose?: boolean; + /** + * + * @type {number} + * @memberof MutationCommunitySetStake200Response + */ + discord_config_id?: number | null; + /** + * + * @type {any} + * @memberof MutationCommunitySetStake200Response + */ + category?: any; + /** + * + * @type {boolean} + * @memberof MutationCommunitySetStake200Response + */ + discord_bot_webhooks_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof MutationCommunitySetStake200Response + */ + directory_page_enabled?: boolean; + /** + * + * @type {number} + * @memberof MutationCommunitySetStake200Response + */ + directory_page_chain_node_id?: number; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + namespace?: string; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + namespace_address?: string; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + redirect?: string; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + created_at?: string; + /** + * + * @type {string} + * @memberof MutationCommunitySetStake200Response + */ + updated_at?: string; + /** + * + * @type {Array} + * @memberof MutationCommunitySetStake200Response + */ + Addresses?: Array; + /** + * + * @type {Array} + * @memberof MutationCommunitySetStake200Response + */ + CommunityStakes?: Array; + /** + * + * @type {Array} + * @memberof MutationCommunitySetStake200Response + */ + CommunityTags?: Array; + /** + * + * @type {QueryCommunityGetCommunity200ResponseChainNode} + * @memberof MutationCommunitySetStake200Response + */ + ChainNode?: QueryCommunityGetCommunity200ResponseChainNode; + /** + * + * @type {Array} + * @memberof MutationCommunitySetStake200Response + */ + topics?: Array; + /** + * + * @type {Array} + * @memberof MutationCommunitySetStake200Response + */ + groups?: Array; + /** + * + * @type {Array} + * @memberof MutationCommunitySetStake200Response + */ + contest_managers?: Array; + /** + * + * @type {Array} + * @memberof MutationCommunitySetStake200Response + */ + snapshot_spaces?: Array; + /** + * + * @type {boolean} + * @memberof MutationCommunitySetStake200Response + */ + include_in_digest_email?: boolean | null; +} + +export const MutationCommunitySetStake200ResponseNetworkEnum = { + Edgeware: 'edgeware', + EdgewareTestnet: 'edgeware-testnet', + Kusama: 'kusama', + Kulupu: 'kulupu', + Polkadot: 'polkadot', + Plasm: 'plasm', + Stafi: 'stafi', + Darwinia: 'darwinia', + Phala: 'phala', + Centrifuge: 'centrifuge', + Straightedge: 'straightedge', + Osmosis: 'osmosis', + Injective: 'injective', + InjectiveTestnet: 'injective-testnet', + Terra: 'terra', + Ethereum: 'ethereum', + Near: 'near', + NearTestnet: 'near-testnet', + Compound: 'compound', + Aave: 'aave', + AaveLocal: 'aave-local', + Dydx: 'dydx', + Metacartel: 'metacartel', + Alex: 'alex', + Erc20: 'erc20', + Erc721: 'erc721', + Erc1155: 'erc1155', + Cw20: 'cw20', + Cw721: 'cw721', + Clover: 'clover', + Hydradx: 'hydradx', + Crust: 'crust', + Sputnik: 'sputnik', + SolanaDevnet: 'solana-devnet', + SolanaTestnet: 'solana-testnet', + Solana: 'solana', + Spl: 'spl', + Evmos: 'evmos', + Kava: 'kava', + Kyve: 'kyve', + Stargaze: 'stargaze', + Cosmos: 'cosmos', +} as const; + +export type MutationCommunitySetStake200ResponseNetworkEnum = + typeof MutationCommunitySetStake200ResponseNetworkEnum[keyof typeof MutationCommunitySetStake200ResponseNetworkEnum]; +export const MutationCommunitySetStake200ResponseBaseEnum = { + Cosmos: 'cosmos', + Substrate: 'substrate', + Ethereum: 'ethereum', + Near: 'near', + Solana: 'solana', +} as const; + +export type MutationCommunitySetStake200ResponseBaseEnum = + typeof MutationCommunitySetStake200ResponseBaseEnum[keyof typeof MutationCommunitySetStake200ResponseBaseEnum]; +export const MutationCommunitySetStake200ResponseTypeEnum = { + Chain: 'chain', + Dao: 'dao', + Token: 'token', + Offchain: 'offchain', +} as const; + +export type MutationCommunitySetStake200ResponseTypeEnum = + typeof MutationCommunitySetStake200ResponseTypeEnum[keyof typeof MutationCommunitySetStake200ResponseTypeEnum]; +export const MutationCommunitySetStake200ResponseDefaultPageEnum = { + AllDiscussionsView: 'default_all_discussions_view', + SummaryView: 'default_summary_view', +} as const; + +export type MutationCommunitySetStake200ResponseDefaultPageEnum = + typeof MutationCommunitySetStake200ResponseDefaultPageEnum[keyof typeof MutationCommunitySetStake200ResponseDefaultPageEnum]; +export const MutationCommunitySetStake200ResponseHasHomepageEnum = { + True: 'true', + False: 'false', +} as const; + +export type MutationCommunitySetStake200ResponseHasHomepageEnum = + typeof MutationCommunitySetStake200ResponseHasHomepageEnum[keyof typeof MutationCommunitySetStake200ResponseHasHomepageEnum]; + +/** + * + * @export + * @interface MutationCommunitySetStakeRequest + */ +export interface MutationCommunitySetStakeRequest { + /** + * + * @type {number} + * @memberof MutationCommunitySetStakeRequest + */ + stake_id: number; + /** + * + * @type {string} + * @memberof MutationCommunitySetStakeRequest + */ + stake_token?: string; + /** + * + * @type {number} + * @memberof MutationCommunitySetStakeRequest + */ + vote_weight?: number; + /** + * + * @type {boolean} + * @memberof MutationCommunitySetStakeRequest + */ + stake_enabled?: boolean; +} +/** + * + * @export + * @interface MutationContestCreateContestMetadata200Response + */ +export interface MutationContestCreateContestMetadata200Response { + /** + * + * @type {Array} + * @memberof MutationContestCreateContestMetadata200Response + */ + contest_managers: Array; +} +/** + * + * @export + * @interface MutationContestCreateContestMetadataRequest + */ +export interface MutationContestCreateContestMetadataRequest { + /** + * On-Chain contest manager address + * @type {string} + * @memberof MutationContestCreateContestMetadataRequest + */ + contest_address: string; + /** + * + * @type {string} + * @memberof MutationContestCreateContestMetadataRequest + */ + name: string; + /** + * + * @type {string} + * @memberof MutationContestCreateContestMetadataRequest + */ + image_url?: string; + /** + * Provided by admin on creation when stake funds are not used + * @type {string} + * @memberof MutationContestCreateContestMetadataRequest + */ + funding_token_address?: string; + /** + * Percentage of pool used for prizes in recurring contests + * @type {number} + * @memberof MutationContestCreateContestMetadataRequest + */ + prize_percentage?: number; + /** + * Sorted array of percentages for prize, from first to last + * @type {Array} + * @memberof MutationContestCreateContestMetadataRequest + */ + payout_structure: Array; + /** + * Recurring contest interval in seconds, 0 when one-off + * @type {number} + * @memberof MutationContestCreateContestMetadataRequest + */ + interval: number; + /** + * + * @type {string} + * @memberof MutationContestCreateContestMetadataRequest + */ + ticker?: string; + /** + * + * @type {number} + * @memberof MutationContestCreateContestMetadataRequest + */ + decimals?: number; + /** + * + * @type {Array} + * @memberof MutationContestCreateContestMetadataRequest + */ + topic_ids?: Array; +} +/** + * + * @export + * @interface MutationContestUpdateContestMetadataRequest + */ +export interface MutationContestUpdateContestMetadataRequest { + /** + * On-Chain contest manager address + * @type {string} + * @memberof MutationContestUpdateContestMetadataRequest + */ + contest_address: string; + /** + * + * @type {string} + * @memberof MutationContestUpdateContestMetadataRequest + */ + name?: string; + /** + * + * @type {string} + * @memberof MutationContestUpdateContestMetadataRequest + */ + image_url?: string; + /** + * + * @type {Array} + * @memberof MutationContestUpdateContestMetadataRequest + */ + topic_ids?: Array; +} +/** + * + * @export + * @interface MutationIntegrationsAnalyticsRequest + */ +export interface MutationIntegrationsAnalyticsRequest { + /** + * + * @type {MutationIntegrationsAnalyticsRequestGroupCreated} + * @memberof MutationIntegrationsAnalyticsRequest + */ + GroupCreated: MutationIntegrationsAnalyticsRequestGroupCreated; + /** + * + * @type {MutationIntegrationsAnalyticsRequestThreadCreated} + * @memberof MutationIntegrationsAnalyticsRequest + */ + ThreadCreated: MutationIntegrationsAnalyticsRequestThreadCreated; + /** + * + * @type {MutationIntegrationsAnalyticsRequestCommentCreated} + * @memberof MutationIntegrationsAnalyticsRequest + */ + CommentCreated: MutationIntegrationsAnalyticsRequestCommentCreated; +} +/** + * + * @export + * @interface MutationIntegrationsAnalyticsRequestCommentCreated + */ +export interface MutationIntegrationsAnalyticsRequestCommentCreated { + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + thread_id: number; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + address_id: number; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + text: string; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + plaintext: string; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + id?: number | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + community_id: string; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + parent_id?: string | null; + /** + * + * @type {Array} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + version_history?: Array; + /** + * + * @type {boolean} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + version_history_updated?: boolean; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + canvas_signed_data: string; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + canvas_hash: string; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + created_by?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + created_at?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + updated_at?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + deleted_at?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + marked_as_spam_at?: string | null; + /** + * + * @type {QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + discord_meta?: QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta | null; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + reaction_count: number; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + reaction_weights_sum?: number; + /** + * + * @type {MutationIntegrationsAnalyticsRequestThreadCreatedAddress} + * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + */ + Address?: MutationIntegrationsAnalyticsRequestThreadCreatedAddress | null; +} +/** + * + * @export + * @interface MutationIntegrationsAnalyticsRequestGroupCreated + */ +export interface MutationIntegrationsAnalyticsRequestGroupCreated { + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestGroupCreated + */ + groupId: string; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestGroupCreated + */ + userId: string; +} +/** + * + * @export + * @interface MutationIntegrationsAnalyticsRequestThreadCreated + */ +export interface MutationIntegrationsAnalyticsRequestThreadCreated { + /** + * + * @type {MutationIntegrationsAnalyticsRequestThreadCreatedAddress} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + Address?: MutationIntegrationsAnalyticsRequestThreadCreatedAddress | null; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + address_id: number; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + title: string; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + kind: string; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + stage: string; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + id?: number | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + body?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + plaintext?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + url?: string | null; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + topic_id?: number | null; + /** + * + * @type {boolean} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + pinned?: boolean | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + community_id: string; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + view_count: number; + /** + * + * @type {Array} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + links?: Array | null; + /** + * + * @type {boolean} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + read_only?: boolean | null; + /** + * + * @type {Array} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + version_history?: Array | null; + /** + * + * @type {boolean} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + has_poll?: boolean | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + canvas_signed_data?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + canvas_hash?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + created_at?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + updated_at?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + last_edited?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + deleted_at?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + last_commented_on?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + marked_as_spam_at?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + archived_at?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + locked_at?: string | null; + /** + * + * @type {QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + discord_meta?: QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta | null; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + reaction_count: number; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + reaction_weights_sum: number; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + comment_count: number; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + activity_rank_date?: string | null; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + max_notif_id: number; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + created_by?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + profile_name?: string | null; + /** + * + * @type {Array} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + */ + contestManagers?: Array | null; +} +/** + * + * @export + * @interface MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ +export interface MutationIntegrationsAnalyticsRequestThreadCreatedAddress { + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + id?: number; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + address: string; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + community_id?: string; + /** + * + * @type {number} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + user_id?: number | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + verification_token?: string; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + verification_token_expires?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + verified?: string | null; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + last_active?: string | null; + /** + * + * @type {boolean} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + is_councillor?: boolean; + /** + * + * @type {boolean} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + is_validator?: boolean; + /** + * + * @type {boolean} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + ghost_address?: boolean; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + wallet_id?: MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + block_info?: string; + /** + * + * @type {boolean} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + is_user_default?: boolean; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + role?: MutationIntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + wallet_sso_source?: MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum; + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + hex?: string; + /** + * + * @type {any} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + created_at?: any; + /** + * + * @type {any} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + updated_at?: any; + /** + * + * @type {MutationUserUpdateUser200Response} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + */ + User?: MutationUserUpdateUser200Response; +} + +export const MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum = + { + Magic: 'magic', + Polkadot: 'polkadot', + Metamask: 'metamask', + Walletconnect: 'walletconnect', + KeplrEthereum: 'keplr-ethereum', + Keplr: 'keplr', + Leap: 'leap', + Near: 'near', + Terrastation: 'terrastation', + TerraWalletconnect: 'terra-walletconnect', + CosmMetamask: 'cosm-metamask', + Phantom: 'phantom', + Coinbase: 'coinbase', + } as const; + +export type MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum = + typeof MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum[keyof typeof MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum]; +export const MutationIntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum = + { + Admin: 'admin', + Moderator: 'moderator', + Member: 'member', + } as const; + +export type MutationIntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum = + typeof MutationIntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum[keyof typeof MutationIntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum]; +export const MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum = + { + Google: 'google', + Github: 'github', + Discord: 'discord', + Twitter: 'twitter', + Apple: 'apple', + Email: 'email', + Unknown: 'unknown', + } as const; + +export type MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum = + typeof MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum[keyof typeof MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum]; + +/** + * + * @export + * @interface MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner + */ +export interface MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner { + /** + * + * @type {string} + * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner + */ + contest_address: string; +} +/** + * + * @export + * @interface MutationLoadTestCreateJWTsRequest + */ +export interface MutationLoadTestCreateJWTsRequest { + /** + * + * @type {number} + * @memberof MutationLoadTestCreateJWTsRequest + */ + number_of_jwt: number; +} +/** + * + * @export + * @interface MutationSubscriptionCreateCommentSubscription200Response + */ +export interface MutationSubscriptionCreateCommentSubscription200Response { + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateCommentSubscription200Response + */ + id?: number; + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateCommentSubscription200Response + */ + user_id: number; + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateCommentSubscription200Response + */ + comment_id: number; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200Response + */ + created_at?: string; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200Response + */ + updated_at?: string; + /** + * + * @type {MutationSubscriptionCreateCommentSubscription200ResponseComment} + * @memberof MutationSubscriptionCreateCommentSubscription200Response + */ + Comment?: MutationSubscriptionCreateCommentSubscription200ResponseComment; +} +/** + * + * @export + * @interface MutationSubscriptionCreateCommentSubscription200ResponseComment + */ +export interface MutationSubscriptionCreateCommentSubscription200ResponseComment { + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseComment + */ + id?: number | null; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseComment + */ + created_at?: string | null; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseComment + */ + updated_at?: string | null; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseComment + */ + text: string; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseComment + */ + plaintext: string; + /** + * + * @type {MutationSubscriptionCreateCommentSubscription200ResponseCommentThread} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseComment + */ + Thread: MutationSubscriptionCreateCommentSubscription200ResponseCommentThread; +} +/** + * + * @export + * @interface MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + */ +export interface MutationSubscriptionCreateCommentSubscription200ResponseCommentThread { + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + */ + id?: number | null; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + */ + community_id: string; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + */ + title: string; + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + */ + comment_count: number; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + */ + created_at?: string | null; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + */ + url?: string | null; + /** + * + * @type {MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + */ + Community: MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity; + /** + * + * @type {MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + */ + Address: MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress; +} +/** + * + * @export + * @interface MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress + */ +export interface MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress { + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress + */ + id?: number; + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress + */ + user_id?: number | null; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress + */ + address: string; +} +/** + * + * @export + * @interface MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity + */ +export interface MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity { + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity + */ + id?: string; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity + */ + name: string; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity + */ + icon_url?: string | null; +} +/** + * + * @export + * @interface MutationSubscriptionCreateCommentSubscriptionRequest + */ +export interface MutationSubscriptionCreateCommentSubscriptionRequest { + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateCommentSubscriptionRequest + */ + comment_id: number; +} +/** + * + * @export + * @interface MutationSubscriptionCreateCommunityAlert200Response + */ +export interface MutationSubscriptionCreateCommunityAlert200Response { + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateCommunityAlert200Response + */ + user_id: number; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommunityAlert200Response + */ + community_id: string; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommunityAlert200Response + */ + created_at?: string; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommunityAlert200Response + */ + updated_at?: string; + /** + * + * @type {MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity} + * @memberof MutationSubscriptionCreateCommunityAlert200Response + */ + Community?: MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity; +} +/** + * + * @export + * @interface MutationSubscriptionCreateCommunityAlertRequest + */ +export interface MutationSubscriptionCreateCommunityAlertRequest { + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateCommunityAlertRequest + */ + community_id: string; +} +/** + * + * @export + * @interface MutationSubscriptionCreateThreadSubscription200Response + */ +export interface MutationSubscriptionCreateThreadSubscription200Response { + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateThreadSubscription200Response + */ + id?: number; + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateThreadSubscription200Response + */ + user_id: number; + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateThreadSubscription200Response + */ + thread_id: number; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateThreadSubscription200Response + */ + created_at?: string; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateThreadSubscription200Response + */ + updated_at?: string; + /** + * + * @type {MutationSubscriptionCreateThreadSubscription200ResponseThread} + * @memberof MutationSubscriptionCreateThreadSubscription200Response + */ + Thread?: MutationSubscriptionCreateThreadSubscription200ResponseThread; +} +/** + * + * @export + * @interface MutationSubscriptionCreateThreadSubscription200ResponseThread + */ +export interface MutationSubscriptionCreateThreadSubscription200ResponseThread { + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + */ + id?: number | null; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + */ + community_id: string; + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + */ + address_id: number; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + */ + title: string; + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + */ + comment_count: number; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + */ + created_at?: string | null; + /** + * + * @type {string} + * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + */ + url?: string | null; + /** + * + * @type {MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity} + * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + */ + Community: MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity; + /** + * + * @type {MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress} + * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + */ + Address: MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress; +} +/** + * + * @export + * @interface MutationSubscriptionCreateThreadSubscriptionRequest + */ +export interface MutationSubscriptionCreateThreadSubscriptionRequest { + /** + * + * @type {number} + * @memberof MutationSubscriptionCreateThreadSubscriptionRequest + */ + thread_id: number; +} +/** + * + * @export + * @interface MutationSubscriptionDeleteCommentSubscriptionRequest + */ +export interface MutationSubscriptionDeleteCommentSubscriptionRequest { + /** + * + * @type {Array} + * @memberof MutationSubscriptionDeleteCommentSubscriptionRequest + */ + comment_ids: Array; +} +/** + * + * @export + * @interface MutationSubscriptionDeleteCommunityAlertRequest + */ +export interface MutationSubscriptionDeleteCommunityAlertRequest { + /** + * + * @type {Array} + * @memberof MutationSubscriptionDeleteCommunityAlertRequest + */ + community_ids: Array; +} +/** + * + * @export + * @interface MutationSubscriptionDeleteThreadSubscriptionRequest + */ +export interface MutationSubscriptionDeleteThreadSubscriptionRequest { + /** + * + * @type {Array} + * @memberof MutationSubscriptionDeleteThreadSubscriptionRequest + */ + thread_ids: Array; +} +/** + * + * @export + * @interface MutationSubscriptionRegisterClientRegistrationTokenRequest + */ +export interface MutationSubscriptionRegisterClientRegistrationTokenRequest { + /** + * + * @type {string} + * @memberof MutationSubscriptionRegisterClientRegistrationTokenRequest + */ + token: string; + /** + * + * @type {string} + * @memberof MutationSubscriptionRegisterClientRegistrationTokenRequest + */ + channelType: MutationSubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum; +} + +export const MutationSubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum = + { + Apns: 'APNS', + Fcm: 'FCM', + } as const; + +export type MutationSubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum = + typeof MutationSubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum[keyof typeof MutationSubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum]; + +/** + * + * @export + * @interface MutationSubscriptionUpdateSubscriptionPreferencesRequest + */ +export interface MutationSubscriptionUpdateSubscriptionPreferencesRequest { + /** + * + * @type {boolean} + * @memberof MutationSubscriptionUpdateSubscriptionPreferencesRequest + */ + email_notifications_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof MutationSubscriptionUpdateSubscriptionPreferencesRequest + */ + digest_email_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof MutationSubscriptionUpdateSubscriptionPreferencesRequest + */ + recap_email_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof MutationSubscriptionUpdateSubscriptionPreferencesRequest + */ + mobile_push_notifications_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof MutationSubscriptionUpdateSubscriptionPreferencesRequest + */ + mobile_push_discussion_activity_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof MutationSubscriptionUpdateSubscriptionPreferencesRequest + */ + mobile_push_admin_alerts_enabled?: boolean; +} +/** + * + * @export + * @interface MutationUserUpdateUser200Response + */ +export interface MutationUserUpdateUser200Response { + /** + * + * @type {number} + * @memberof MutationUserUpdateUser200Response + */ + id?: number; + /** + * + * @type {string} + * @memberof MutationUserUpdateUser200Response + */ + email?: string | null; + /** + * + * @type {boolean} + * @memberof MutationUserUpdateUser200Response + */ + isAdmin?: boolean; + /** + * + * @type {boolean} + * @memberof MutationUserUpdateUser200Response + */ + disableRichText?: boolean; + /** + * + * @type {boolean} + * @memberof MutationUserUpdateUser200Response + */ + emailVerified?: boolean | null; + /** + * + * @type {string} + * @memberof MutationUserUpdateUser200Response + */ + selected_community_id?: string | null; + /** + * + * @type {string} + * @memberof MutationUserUpdateUser200Response + */ + emailNotificationInterval?: MutationUserUpdateUser200ResponseEmailNotificationIntervalEnum; + /** + * + * @type {boolean} + * @memberof MutationUserUpdateUser200Response + */ + promotional_emails_enabled?: boolean | null; + /** + * + * @type {boolean} + * @memberof MutationUserUpdateUser200Response + */ + is_welcome_onboard_flow_complete?: boolean; + /** + * + * @type {MutationUserUpdateUserRequestProfile} + * @memberof MutationUserUpdateUser200Response + */ + profile: MutationUserUpdateUserRequestProfile; + /** + * + * @type {any} + * @memberof MutationUserUpdateUser200Response + */ + created_at?: any; + /** + * + * @type {any} + * @memberof MutationUserUpdateUser200Response + */ + updated_at?: any; + /** + * + * @type {Array} + * @memberof MutationUserUpdateUser200Response + */ + ProfileTags?: Array; +} + +export const MutationUserUpdateUser200ResponseEmailNotificationIntervalEnum = { + Weekly: 'weekly', + Never: 'never', +} as const; + +export type MutationUserUpdateUser200ResponseEmailNotificationIntervalEnum = + typeof MutationUserUpdateUser200ResponseEmailNotificationIntervalEnum[keyof typeof MutationUserUpdateUser200ResponseEmailNotificationIntervalEnum]; + +/** + * + * @export + * @interface MutationUserUpdateUserDefaultResponse + */ +export interface MutationUserUpdateUserDefaultResponse { + /** + * + * @type {string} + * @memberof MutationUserUpdateUserDefaultResponse + */ + message: string; + /** + * + * @type {string} + * @memberof MutationUserUpdateUserDefaultResponse + */ + code: string; + /** + * + * @type {Array} + * @memberof MutationUserUpdateUserDefaultResponse + */ + issues?: Array; +} +/** + * + * @export + * @interface MutationUserUpdateUserDefaultResponseIssuesInner + */ +export interface MutationUserUpdateUserDefaultResponseIssuesInner { + /** + * + * @type {string} + * @memberof MutationUserUpdateUserDefaultResponseIssuesInner + */ + message: string; +} +/** + * + * @export + * @interface MutationUserUpdateUserRequest + */ +export interface MutationUserUpdateUserRequest { + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequest + */ + email?: string | null; + /** + * + * @type {boolean} + * @memberof MutationUserUpdateUserRequest + */ + isAdmin?: boolean; + /** + * + * @type {boolean} + * @memberof MutationUserUpdateUserRequest + */ + disableRichText?: boolean; + /** + * + * @type {boolean} + * @memberof MutationUserUpdateUserRequest + */ + emailVerified?: boolean | null; + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequest + */ + selected_community_id?: string | null; + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequest + */ + emailNotificationInterval?: MutationUserUpdateUserRequestEmailNotificationIntervalEnum; + /** + * + * @type {boolean} + * @memberof MutationUserUpdateUserRequest + */ + promotional_emails_enabled?: boolean | null; + /** + * + * @type {MutationUserUpdateUserRequestProfile} + * @memberof MutationUserUpdateUserRequest + */ + profile: MutationUserUpdateUserRequestProfile; + /** + * + * @type {any} + * @memberof MutationUserUpdateUserRequest + */ + created_at?: any; + /** + * + * @type {any} + * @memberof MutationUserUpdateUserRequest + */ + updated_at?: any; + /** + * + * @type {Array} + * @memberof MutationUserUpdateUserRequest + */ + ProfileTags?: Array; + /** + * + * @type {Array} + * @memberof MutationUserUpdateUserRequest + */ + tag_ids?: Array | null; +} + +export const MutationUserUpdateUserRequestEmailNotificationIntervalEnum = { + Weekly: 'weekly', + Never: 'never', +} as const; + +export type MutationUserUpdateUserRequestEmailNotificationIntervalEnum = + typeof MutationUserUpdateUserRequestEmailNotificationIntervalEnum[keyof typeof MutationUserUpdateUserRequestEmailNotificationIntervalEnum]; + +/** + * + * @export + * @interface MutationUserUpdateUserRequestProfile + */ +export interface MutationUserUpdateUserRequestProfile { + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequestProfile + */ + name?: string | null; + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequestProfile + */ + email?: string | null; + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequestProfile + */ + website?: string | null; + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequestProfile + */ + bio?: string | null; + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequestProfile + */ + avatar_url?: string | null; + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequestProfile + */ + slug?: string | null; + /** + * + * @type {Array} + * @memberof MutationUserUpdateUserRequestProfile + */ + socials?: Array | null; + /** + * + * @type {MutationUserUpdateUserRequestProfileBackgroundImage} + * @memberof MutationUserUpdateUserRequestProfile + */ + background_image?: MutationUserUpdateUserRequestProfileBackgroundImage | null; +} +/** + * + * @export + * @interface MutationUserUpdateUserRequestProfileBackgroundImage + */ +export interface MutationUserUpdateUserRequestProfileBackgroundImage { + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequestProfileBackgroundImage + */ + url?: string; + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequestProfileBackgroundImage + */ + imageBehavior?: string; +} +/** + * + * @export + * @interface MutationUserUpdateUserRequestProfileTagsInner + */ +export interface MutationUserUpdateUserRequestProfileTagsInner { + /** + * + * @type {number} + * @memberof MutationUserUpdateUserRequestProfileTagsInner + */ + user_id: number; + /** + * + * @type {number} + * @memberof MutationUserUpdateUserRequestProfileTagsInner + */ + tag_id: number; + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequestProfileTagsInner + */ + created_at?: string; + /** + * + * @type {string} + * @memberof MutationUserUpdateUserRequestProfileTagsInner + */ + updated_at?: string; +} +/** + * + * @export + * @interface QueryCommunityGetCommunity200Response + */ +export interface QueryCommunityGetCommunity200Response { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + name: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200Response + */ + chain_node_id: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + default_symbol?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + network?: QueryCommunityGetCommunity200ResponseNetworkEnum; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + base: QueryCommunityGetCommunity200ResponseBaseEnum; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + icon_url?: string | null; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200Response + */ + active: boolean; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + type?: QueryCommunityGetCommunity200ResponseTypeEnum; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + id?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + description?: string; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200Response + */ + social_links?: Array; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200Response + */ + ss58_prefix?: number; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200Response + */ + stages_enabled?: boolean; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200Response + */ + custom_stages?: Array; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + custom_domain?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + block_explorer_ids?: string; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200Response + */ + collapsed_on_homepage?: boolean; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + substrate_spec?: string; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200Response + */ + has_chain_events_listener?: boolean; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200Response + */ + default_summary_view?: boolean; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + default_page?: QueryCommunityGetCommunity200ResponseDefaultPageEnum; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + has_homepage?: QueryCommunityGetCommunity200ResponseHasHomepageEnum | null; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + terms?: string; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200Response + */ + admin_only_polling?: boolean; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + bech32_prefix?: string; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200Response + */ + hide_projects?: boolean; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + token_name?: string; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200Response + */ + ce_verbose?: boolean; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200Response + */ + discord_config_id?: number | null; + /** + * + * @type {any} + * @memberof QueryCommunityGetCommunity200Response + */ + category?: any; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200Response + */ + discord_bot_webhooks_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200Response + */ + directory_page_enabled?: boolean; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200Response + */ + directory_page_chain_node_id?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + namespace?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + namespace_address?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + redirect?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + created_at?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200Response + */ + updated_at?: string; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200Response + */ + Addresses?: Array; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200Response + */ + CommunityStakes?: Array; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200Response + */ + CommunityTags?: Array; + /** + * + * @type {QueryCommunityGetCommunity200ResponseChainNode} + * @memberof QueryCommunityGetCommunity200Response + */ + ChainNode?: QueryCommunityGetCommunity200ResponseChainNode; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200Response + */ + topics?: Array; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200Response + */ + groups?: Array; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200Response + */ + contest_managers?: Array; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200Response + */ + snapshot_spaces?: Array; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200Response + */ + include_in_digest_email?: boolean | null; +} + +export const QueryCommunityGetCommunity200ResponseNetworkEnum = { + Edgeware: 'edgeware', + EdgewareTestnet: 'edgeware-testnet', + Kusama: 'kusama', + Kulupu: 'kulupu', + Polkadot: 'polkadot', + Plasm: 'plasm', + Stafi: 'stafi', + Darwinia: 'darwinia', + Phala: 'phala', + Centrifuge: 'centrifuge', + Straightedge: 'straightedge', + Osmosis: 'osmosis', + Injective: 'injective', + InjectiveTestnet: 'injective-testnet', + Terra: 'terra', + Ethereum: 'ethereum', + Near: 'near', + NearTestnet: 'near-testnet', + Compound: 'compound', + Aave: 'aave', + AaveLocal: 'aave-local', + Dydx: 'dydx', + Metacartel: 'metacartel', + Alex: 'alex', + Erc20: 'erc20', + Erc721: 'erc721', + Erc1155: 'erc1155', + Cw20: 'cw20', + Cw721: 'cw721', + Clover: 'clover', + Hydradx: 'hydradx', + Crust: 'crust', + Sputnik: 'sputnik', + SolanaDevnet: 'solana-devnet', + SolanaTestnet: 'solana-testnet', + Solana: 'solana', + Spl: 'spl', + Evmos: 'evmos', + Kava: 'kava', + Kyve: 'kyve', + Stargaze: 'stargaze', + Cosmos: 'cosmos', +} as const; + +export type QueryCommunityGetCommunity200ResponseNetworkEnum = + typeof QueryCommunityGetCommunity200ResponseNetworkEnum[keyof typeof QueryCommunityGetCommunity200ResponseNetworkEnum]; +export const QueryCommunityGetCommunity200ResponseBaseEnum = { + Cosmos: 'cosmos', + Substrate: 'substrate', + Ethereum: 'ethereum', + Near: 'near', + Solana: 'solana', +} as const; + +export type QueryCommunityGetCommunity200ResponseBaseEnum = + typeof QueryCommunityGetCommunity200ResponseBaseEnum[keyof typeof QueryCommunityGetCommunity200ResponseBaseEnum]; +export const QueryCommunityGetCommunity200ResponseTypeEnum = { + Chain: 'chain', + Dao: 'dao', + Token: 'token', + Offchain: 'offchain', +} as const; + +export type QueryCommunityGetCommunity200ResponseTypeEnum = + typeof QueryCommunityGetCommunity200ResponseTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseTypeEnum]; +export const QueryCommunityGetCommunity200ResponseDefaultPageEnum = { + AllDiscussionsView: 'default_all_discussions_view', + SummaryView: 'default_summary_view', +} as const; + +export type QueryCommunityGetCommunity200ResponseDefaultPageEnum = + typeof QueryCommunityGetCommunity200ResponseDefaultPageEnum[keyof typeof QueryCommunityGetCommunity200ResponseDefaultPageEnum]; +export const QueryCommunityGetCommunity200ResponseHasHomepageEnum = { + True: 'true', + False: 'false', +} as const; + +export type QueryCommunityGetCommunity200ResponseHasHomepageEnum = + typeof QueryCommunityGetCommunity200ResponseHasHomepageEnum[keyof typeof QueryCommunityGetCommunity200ResponseHasHomepageEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseAddressesInner + */ +export interface QueryCommunityGetCommunity200ResponseAddressesInner { + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + id?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + address: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + community_id?: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + user_id?: number | null; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + verification_token?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + verification_token_expires?: string | null; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + verified?: string | null; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + last_active?: string | null; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + is_councillor?: boolean; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + is_validator?: boolean; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + ghost_address?: boolean; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + wallet_id?: QueryCommunityGetCommunity200ResponseAddressesInnerWalletIdEnum; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + block_info?: string; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + is_user_default?: boolean; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + role?: QueryCommunityGetCommunity200ResponseAddressesInnerRoleEnum; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + wallet_sso_source?: QueryCommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + hex?: string; + /** + * + * @type {any} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + created_at?: any; + /** + * + * @type {any} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + updated_at?: any; + /** + * + * @type {MutationUserUpdateUser200Response} + * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + */ + User?: MutationUserUpdateUser200Response; +} + +export const QueryCommunityGetCommunity200ResponseAddressesInnerWalletIdEnum = { + Magic: 'magic', + Polkadot: 'polkadot', + Metamask: 'metamask', + Walletconnect: 'walletconnect', + KeplrEthereum: 'keplr-ethereum', + Keplr: 'keplr', + Leap: 'leap', + Near: 'near', + Terrastation: 'terrastation', + TerraWalletconnect: 'terra-walletconnect', + CosmMetamask: 'cosm-metamask', + Phantom: 'phantom', + Coinbase: 'coinbase', +} as const; + +export type QueryCommunityGetCommunity200ResponseAddressesInnerWalletIdEnum = + typeof QueryCommunityGetCommunity200ResponseAddressesInnerWalletIdEnum[keyof typeof QueryCommunityGetCommunity200ResponseAddressesInnerWalletIdEnum]; +export const QueryCommunityGetCommunity200ResponseAddressesInnerRoleEnum = { + Admin: 'admin', + Moderator: 'moderator', + Member: 'member', +} as const; + +export type QueryCommunityGetCommunity200ResponseAddressesInnerRoleEnum = + typeof QueryCommunityGetCommunity200ResponseAddressesInnerRoleEnum[keyof typeof QueryCommunityGetCommunity200ResponseAddressesInnerRoleEnum]; +export const QueryCommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum = + { + Google: 'google', + Github: 'github', + Discord: 'discord', + Twitter: 'twitter', + Apple: 'apple', + Email: 'email', + Unknown: 'unknown', + } as const; + +export type QueryCommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum = + typeof QueryCommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum[keyof typeof QueryCommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseChainNode + */ +export interface QueryCommunityGetCommunity200ResponseChainNode { + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + id?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + url: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + eth_chain_id?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + alt_wallet_url?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + private_url?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + balance_type: QueryCommunityGetCommunity200ResponseChainNodeBalanceTypeEnum; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + name: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + description?: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + ss58?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + bech32?: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + slip44?: number; + /** + * + * @type {any} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + created_at?: any; + /** + * + * @type {any} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + updated_at?: any; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + cosmos_chain_id?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + cosmos_gov_version?: QueryCommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + health?: QueryCommunityGetCommunity200ResponseChainNodeHealthEnum; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + contracts?: Array; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + block_explorer?: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseChainNode + */ + max_ce_block_range?: number | null; +} + +export const QueryCommunityGetCommunity200ResponseChainNodeBalanceTypeEnum = { + Terra: 'terra', + Ethereum: 'ethereum', + Solana: 'solana', + Cosmos: 'cosmos', + Near: 'near', + Substrate: 'substrate', +} as const; + +export type QueryCommunityGetCommunity200ResponseChainNodeBalanceTypeEnum = + typeof QueryCommunityGetCommunity200ResponseChainNodeBalanceTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseChainNodeBalanceTypeEnum]; +export const QueryCommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum = + { + V1: 'v1', + V1beta1: 'v1beta1', + V1beta1AttemptFailed: 'v1beta1-attempt-failed', + V1AttemptFailed: 'v1-attempt-failed', + } as const; + +export type QueryCommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum = + typeof QueryCommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum[keyof typeof QueryCommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum]; +export const QueryCommunityGetCommunity200ResponseChainNodeHealthEnum = { + Failed: 'failed', + Healthy: 'healthy', +} as const; + +export type QueryCommunityGetCommunity200ResponseChainNodeHealthEnum = + typeof QueryCommunityGetCommunity200ResponseChainNodeHealthEnum[keyof typeof QueryCommunityGetCommunity200ResponseChainNodeHealthEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ +export interface QueryCommunityGetCommunity200ResponseChainNodeContractsInner { + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ + id: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ + address: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ + chain_node_id: number; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ + abi_id?: number | null; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ + decimals?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ + token_name?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ + symbol?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ + type: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ + created_at: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ + updated_at: string; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ + is_factory?: boolean; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + */ + nickname?: string; +} +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseCommunityStakesInner + */ +export interface QueryCommunityGetCommunity200ResponseCommunityStakesInner { + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + */ + id?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + */ + community_id: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + */ + stake_id?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + */ + stake_token?: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + */ + vote_weight?: number; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + */ + stake_enabled?: boolean; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + */ + created_at?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + */ + updated_at?: string; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + */ + StakeTransactions?: Array; +} +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + */ +export interface QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + */ + transaction_hash: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + */ + community_id: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + */ + stake_id?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + */ + address: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + */ + stake_amount: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + */ + stake_price?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + */ + stake_direction: QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + */ + timestamp: number; +} + +export const QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum = + { + Buy: 'buy', + Sell: 'sell', + } as const; + +export type QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum = + typeof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum[keyof typeof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseCommunityTagsInner + */ +export interface QueryCommunityGetCommunity200ResponseCommunityTagsInner { + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseCommunityTagsInner + */ + id?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseCommunityTagsInner + */ + name: string; +} +/** + * On-Chain Contest Manager + * @export + * @interface QueryCommunityGetCommunity200ResponseContestManagersInner + */ +export interface QueryCommunityGetCommunity200ResponseContestManagersInner { + /** + * On-Chain contest manager address + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + contest_address: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + community_id: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + name: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + image_url?: string; + /** + * Provided by admin on creation when stake funds are not used + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + funding_token_address?: string | null; + /** + * Percentage of pool used for prizes in recurring contests + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + prize_percentage?: number | null; + /** + * Sorted array of percentages for prize, from first to last + * @type {Array} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + payout_structure: Array; + /** + * Recurring contest interval, 0 when one-off + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + interval: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + ticker?: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + decimals?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + created_at: string; + /** + * Flags when contest policy is cancelled by admin + * @type {boolean} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + cancelled?: boolean | null; + /** + * Flags when the one-off contest has ended and rollover was completed + * @type {boolean} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + ended?: boolean | null; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + topics?: Array; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + */ + contests?: Array; +} +/** + * On-Chain contest instance + * @export + * @interface QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + */ +export interface QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner { + /** + * On-Chain contest manager address + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + */ + contest_address: string; + /** + * On-Chain contest id, 0 when one-off + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + */ + contest_id: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + */ + start_time: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + */ + end_time: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + */ + score_updated_at?: string | null; + /** + * Contest score, sorted from first to last + * @type {Array} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + */ + score?: Array | null; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + */ + actions?: Array | null; +} +/** + * On-Chain content related actions on contest instance + * @export + * @interface QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ +export interface QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner { + /** + * On-Chain contest manager address + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ + contest_address: string; + /** + * On-Chain contest id, 0 when one-off + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ + contest_id: number; + /** + * On-Chain content id, 0 when adding + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ + content_id: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ + actor_address: string; + /** + * Type of content action + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ + action: QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum; + /** + * Content url + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ + content_url?: string | null; + /** + * Thread id mapped from content url + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ + thread_id?: number | null; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ + thread_title?: string | null; + /** + * Voting power of address when action was recorded + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ + voting_power: number; + /** + * Date-time when action was recorded + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ + created_at: string; +} + +export const QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum = + { + Added: 'added', + Upvoted: 'upvoted', + } as const; + +export type QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum = + typeof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum[keyof typeof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner + */ +export interface QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner + */ + creator_address: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner + */ + content_id: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner + */ + votes: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner + */ + prize: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner + */ + tickerPrize?: number; +} +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseGroupsInner + */ +export interface QueryCommunityGetCommunity200ResponseGroupsInner { + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + */ + id: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + */ + community_id: string; + /** + * + * @type {QueryCommunityGetCommunity200ResponseGroupsInnerMetadata} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + */ + metadata: QueryCommunityGetCommunity200ResponseGroupsInnerMetadata; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + */ + requirements: Array; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + */ + is_system_managed?: boolean; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + */ + created_at?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + */ + updated_at?: string; +} +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseGroupsInnerMetadata + */ +export interface QueryCommunityGetCommunity200ResponseGroupsInnerMetadata { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerMetadata + */ + name: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerMetadata + */ + description: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerMetadata + */ + required_requirements?: number; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerMetadata + */ + membership_ttl?: number; +} +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInner + */ +export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInner { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInner + */ + rule: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum; + /** + * + * @type {QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInner + */ + data: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data; +} + +export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum = + { + Allow: 'allow', + } as const; + +export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum = + typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf + */ +export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf + */ + rule: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum; + /** + * + * @type {QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf + */ + data: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData; +} + +export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum = + { + Threshold: 'threshold', + } as const; + +export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum = + typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1 + */ +export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1 { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1 + */ + rule: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum; + /** + * + * @type {QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1 + */ + data: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data; +} + +export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum = + { + Allow: 'allow', + } as const; + +export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum = + typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data + */ +export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data { + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data + */ + allow: Array; +} +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData + */ +export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData + */ + threshold: string; + /** + * + * @type {QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData + */ + source: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource; +} +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + */ +export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + */ + source_type: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + */ + evm_chain_id: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + */ + contract_address: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + */ + token_id?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + */ + cosmos_chain_id: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + */ + token_symbol: string; +} + +export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum = + { + Cw721: 'cw721', + Cw20: 'cw20', + } as const; + +export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum = + typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf + */ +export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf + */ + source_type: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf + */ + evm_chain_id: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf + */ + contract_address: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf + */ + token_id?: string; +} + +export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum = + { + Erc20: 'erc20', + Erc721: 'erc721', + Erc1155: 'erc1155', + Spl: 'spl', + } as const; + +export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum = + typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1 + */ +export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1 { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1 + */ + source_type: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1 + */ + evm_chain_id: number; +} + +export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum = + { + EthNative: 'eth_native', + } as const; + +export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum = + typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 + */ +export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 + */ + source_type: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 + */ + cosmos_chain_id: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 + */ + token_symbol: string; +} + +export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum = + { + CosmosNative: 'cosmos_native', + } as const; + +export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum = + typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 + */ +export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 { + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 + */ + source_type: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 + */ + cosmos_chain_id: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 + */ + contract_address: string; +} + +export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum = + { + Cw721: 'cw721', + Cw20: 'cw20', + } as const; + +export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum = + typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum]; + +/** + * + * @export + * @interface QueryCommunityGetCommunity200ResponseTopicsInner + */ +export interface QueryCommunityGetCommunity200ResponseTopicsInner { + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + */ + id?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + */ + name?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + */ + community_id: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + */ + description?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + */ + telegram?: string | null; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + */ + featured_in_sidebar?: boolean; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + */ + featured_in_new_post?: boolean; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + */ + default_offchain_template?: string | null; + /** + * + * @type {number} + * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + */ + order?: number | null; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + */ + channel_id?: string | null; + /** + * + * @type {Array} + * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + */ + group_ids?: Array; + /** + * + * @type {string} + * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + */ + default_offchain_template_backup?: string | null; +} +/** + * + * @export + * @interface QueryCommunityGetMembers200Response + */ +export interface QueryCommunityGetMembers200Response { + /** + * + * @type {number} + * @memberof QueryCommunityGetMembers200Response + */ + limit: number; + /** + * + * @type {number} + * @memberof QueryCommunityGetMembers200Response + */ + page: number; + /** + * + * @type {number} + * @memberof QueryCommunityGetMembers200Response + */ + totalPages: number; + /** + * + * @type {number} + * @memberof QueryCommunityGetMembers200Response + */ + totalResults: number; + /** + * + * @type {Array} + * @memberof QueryCommunityGetMembers200Response + */ + results: Array; +} +/** + * + * @export + * @interface QueryCommunityGetMembers200ResponseResultsInner + */ +export interface QueryCommunityGetMembers200ResponseResultsInner { + /** + * + * @type {number} + * @memberof QueryCommunityGetMembers200ResponseResultsInner + */ + user_id: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetMembers200ResponseResultsInner + */ + profile_name?: string | null; + /** + * + * @type {string} + * @memberof QueryCommunityGetMembers200ResponseResultsInner + */ + avatar_url?: string | null; + /** + * + * @type {Array} + * @memberof QueryCommunityGetMembers200ResponseResultsInner + */ + addresses: Array; + /** + * + * @type {Array} + * @memberof QueryCommunityGetMembers200ResponseResultsInner + */ + group_ids: Array; + /** + * string or date + * @type {any} + * @memberof QueryCommunityGetMembers200ResponseResultsInner + */ + last_active?: any | null; +} +/** + * + * @export + * @interface QueryCommunityGetMembers200ResponseResultsInnerAddressesInner + */ +export interface QueryCommunityGetMembers200ResponseResultsInnerAddressesInner { + /** + * + * @type {number} + * @memberof QueryCommunityGetMembers200ResponseResultsInnerAddressesInner + */ + id: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetMembers200ResponseResultsInnerAddressesInner + */ + community_id: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetMembers200ResponseResultsInnerAddressesInner + */ + address: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetMembers200ResponseResultsInnerAddressesInner + */ + stake_balance?: number | null; + /** + * + * @type {string} + * @memberof QueryCommunityGetMembers200ResponseResultsInnerAddressesInner + */ + role: string; +} +/** + * + * @export + * @interface QueryCommunityGetMembersMembershipsParameter + */ +export interface QueryCommunityGetMembersMembershipsParameter {} +/** + * + * @export + * @interface QueryCommunityGetStake200Response + */ +export interface QueryCommunityGetStake200Response { + /** + * + * @type {number} + * @memberof QueryCommunityGetStake200Response + */ + id?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetStake200Response + */ + community_id: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetStake200Response + */ + stake_id?: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetStake200Response + */ + stake_token?: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetStake200Response + */ + vote_weight?: number; + /** + * + * @type {boolean} + * @memberof QueryCommunityGetStake200Response + */ + stake_enabled?: boolean; + /** + * + * @type {string} + * @memberof QueryCommunityGetStake200Response + */ + created_at?: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetStake200Response + */ + updated_at?: string; + /** + * + * @type {Array} + * @memberof QueryCommunityGetStake200Response + */ + StakeTransactions?: Array; +} +/** + * + * @export + * @interface QueryCommunityGetStakeHistoricalPrice200ResponseInner + */ +export interface QueryCommunityGetStakeHistoricalPrice200ResponseInner { + /** + * + * @type {string} + * @memberof QueryCommunityGetStakeHistoricalPrice200ResponseInner + */ + community_id: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetStakeHistoricalPrice200ResponseInner + */ + old_price?: string | null; +} +/** + * + * @export + * @interface QueryCommunityGetStakeTransaction200ResponseInner + */ +export interface QueryCommunityGetStakeTransaction200ResponseInner { + /** + * + * @type {string} + * @memberof QueryCommunityGetStakeTransaction200ResponseInner + */ + transaction_hash: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetStakeTransaction200ResponseInner + */ + address: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetStakeTransaction200ResponseInner + */ + stake_price: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetStakeTransaction200ResponseInner + */ + stake_amount: number; + /** + * + * @type {number} + * @memberof QueryCommunityGetStakeTransaction200ResponseInner + */ + vote_weight: number; + /** + * + * @type {number} + * @memberof QueryCommunityGetStakeTransaction200ResponseInner + */ + timestamp: number; + /** + * + * @type {string} + * @memberof QueryCommunityGetStakeTransaction200ResponseInner + */ + stake_direction: string; + /** + * + * @type {QueryCommunityGetStakeTransaction200ResponseInnerCommunity} + * @memberof QueryCommunityGetStakeTransaction200ResponseInner + */ + community: QueryCommunityGetStakeTransaction200ResponseInnerCommunity; +} +/** + * + * @export + * @interface QueryCommunityGetStakeTransaction200ResponseInnerCommunity + */ +export interface QueryCommunityGetStakeTransaction200ResponseInnerCommunity { + /** + * + * @type {string} + * @memberof QueryCommunityGetStakeTransaction200ResponseInnerCommunity + */ + id: string; + /** + * + * @type {string} + * @memberof QueryCommunityGetStakeTransaction200ResponseInnerCommunity + */ + default_symbol?: string | null; + /** + * + * @type {string} + * @memberof QueryCommunityGetStakeTransaction200ResponseInnerCommunity + */ + icon_url?: string | null; + /** + * + * @type {string} + * @memberof QueryCommunityGetStakeTransaction200ResponseInnerCommunity + */ + name: string; + /** + * + * @type {number} + * @memberof QueryCommunityGetStakeTransaction200ResponseInnerCommunity + */ + chain_node_id?: number | null; +} +/** + * On-Chain Contest Manager + * @export + * @interface QueryContestGetAllContests200ResponseInner + */ +export interface QueryContestGetAllContests200ResponseInner { + /** + * On-Chain contest manager address + * @type {string} + * @memberof QueryContestGetAllContests200ResponseInner + */ + contest_address: string; + /** + * + * @type {string} + * @memberof QueryContestGetAllContests200ResponseInner + */ + community_id: string; + /** + * + * @type {string} + * @memberof QueryContestGetAllContests200ResponseInner + */ + name: string; + /** + * + * @type {string} + * @memberof QueryContestGetAllContests200ResponseInner + */ + image_url?: string; + /** + * Provided by admin on creation when stake funds are not used + * @type {string} + * @memberof QueryContestGetAllContests200ResponseInner + */ + funding_token_address?: string | null; + /** + * Percentage of pool used for prizes in recurring contests + * @type {number} + * @memberof QueryContestGetAllContests200ResponseInner + */ + prize_percentage?: number | null; + /** + * Sorted array of percentages for prize, from first to last + * @type {Array} + * @memberof QueryContestGetAllContests200ResponseInner + */ + payout_structure: Array; + /** + * Recurring contest interval, 0 when one-off + * @type {number} + * @memberof QueryContestGetAllContests200ResponseInner + */ + interval: number; + /** + * + * @type {string} + * @memberof QueryContestGetAllContests200ResponseInner + */ + ticker?: string; + /** + * + * @type {number} + * @memberof QueryContestGetAllContests200ResponseInner + */ + decimals?: number; + /** + * + * @type {string} + * @memberof QueryContestGetAllContests200ResponseInner + */ + created_at: string; + /** + * Flags when contest policy is cancelled by admin + * @type {boolean} + * @memberof QueryContestGetAllContests200ResponseInner + */ + cancelled?: boolean | null; + /** + * Flags when the one-off contest has ended and rollover was completed + * @type {boolean} + * @memberof QueryContestGetAllContests200ResponseInner + */ + ended?: boolean | null; + /** + * + * @type {Array} + * @memberof QueryContestGetAllContests200ResponseInner + */ + topics: Array; + /** + * + * @type {Array} + * @memberof QueryContestGetAllContests200ResponseInner + */ + contests: Array; +} +/** + * On-Chain contest instance + * @export + * @interface QueryContestGetAllContests200ResponseInnerContestsInner + */ +export interface QueryContestGetAllContests200ResponseInnerContestsInner { + /** + * On-Chain contest id, 0 when one-off + * @type {number} + * @memberof QueryContestGetAllContests200ResponseInnerContestsInner + */ + contest_id: number; + /** + * + * @type {string} + * @memberof QueryContestGetAllContests200ResponseInnerContestsInner + */ + start_time: string; + /** + * + * @type {string} + * @memberof QueryContestGetAllContests200ResponseInnerContestsInner + */ + end_time: string; + /** + * + * @type {string} + * @memberof QueryContestGetAllContests200ResponseInnerContestsInner + */ + score_updated_at?: string | null; + /** + * Contest score, sorted from first to last + * @type {Array} + * @memberof QueryContestGetAllContests200ResponseInnerContestsInner + */ + score?: Array | null; + /** + * + * @type {Array} + * @memberof QueryContestGetAllContests200ResponseInnerContestsInner + */ + actions?: Array | null; +} +/** + * + * @export + * @interface QueryContestGetAllContests200ResponseInnerTopicsInner + */ +export interface QueryContestGetAllContests200ResponseInnerTopicsInner { + /** + * + * @type {number} + * @memberof QueryContestGetAllContests200ResponseInnerTopicsInner + */ + id: number; + /** + * + * @type {string} + * @memberof QueryContestGetAllContests200ResponseInnerTopicsInner + */ + name: string; +} +/** + * + * @export + * @interface QueryContestGetContestLog200ResponseInner + */ +export interface QueryContestGetContestLog200ResponseInner { + /** + * + * @type {string} + * @memberof QueryContestGetContestLog200ResponseInner + */ + event_name: string; + /** + * + * @type {object} + * @memberof QueryContestGetContestLog200ResponseInner + */ + event_payload: object; + /** + * + * @type {string} + * @memberof QueryContestGetContestLog200ResponseInner + */ + contest_address: string; + /** + * + * @type {number} + * @memberof QueryContestGetContestLog200ResponseInner + */ + contest_id: number; + /** + * + * @type {string} + * @memberof QueryContestGetContestLog200ResponseInner + */ + action?: string | null; + /** + * + * @type {string} + * @memberof QueryContestGetContestLog200ResponseInner + */ + actor_address?: string | null; + /** + * + * @type {number} + * @memberof QueryContestGetContestLog200ResponseInner + */ + voting_power?: number | null; + /** + * + * @type {number} + * @memberof QueryContestGetContestLog200ResponseInner + */ + thread_id?: number | null; + /** + * + * @type {string} + * @memberof QueryContestGetContestLog200ResponseInner + */ + thread_title?: string | null; + /** + * + * @type {string} + * @memberof QueryContestGetContestLog200ResponseInner + */ + created_at: string; +} +/** + * + * @export + * @interface QueryFeedGetChainActivity200ResponseInner + */ +export interface QueryFeedGetChainActivity200ResponseInner { + /** + * + * @type {string} + * @memberof QueryFeedGetChainActivity200ResponseInner + */ + community_id: string; + /** + * + * @type {string} + * @memberof QueryFeedGetChainActivity200ResponseInner + */ + network: string; + /** + * + * @type {number} + * @memberof QueryFeedGetChainActivity200ResponseInner + */ + block_number: number; + /** + * + * @type {QueryFeedGetChainActivity200ResponseInnerEventData} + * @memberof QueryFeedGetChainActivity200ResponseInner + */ + event_data: QueryFeedGetChainActivity200ResponseInnerEventData; +} +/** + * + * @export + * @interface QueryFeedGetChainActivity200ResponseInnerEventData + */ +export interface QueryFeedGetChainActivity200ResponseInnerEventData { + /** + * + * @type {string} + * @memberof QueryFeedGetChainActivity200ResponseInnerEventData + */ + id: string; + /** + * + * @type {string} + * @memberof QueryFeedGetChainActivity200ResponseInnerEventData + */ + kind: string; +} +/** + * + * @export + * @interface QueryFeedGetUserActivity200ResponseInner + */ +export interface QueryFeedGetUserActivity200ResponseInner { + /** + * + * @type {number} + * @memberof QueryFeedGetUserActivity200ResponseInner + */ + thread_id: number; + /** + * + * @type {string} + * @memberof QueryFeedGetUserActivity200ResponseInner + */ + last_activity?: string; + /** + * + * @type {string} + * @memberof QueryFeedGetUserActivity200ResponseInner + */ + notification_data: string; + /** + * + * @type {string} + * @memberof QueryFeedGetUserActivity200ResponseInner + */ + category_id: string; + /** + * + * @type {number} + * @memberof QueryFeedGetUserActivity200ResponseInner + */ + comment_count: number; + /** + * + * @type {Array} + * @memberof QueryFeedGetUserActivity200ResponseInner + */ + commenters: Array; +} +/** + * + * @export + * @interface QueryFeedGetUserActivity200ResponseInnerCommentersInner + */ +export interface QueryFeedGetUserActivity200ResponseInnerCommentersInner { + /** + * + * @type {Array} + * @memberof QueryFeedGetUserActivity200ResponseInnerCommentersInner + */ + Addresses: Array; +} +/** + * + * @export + * @interface QuerySubscriptionGetSubscriptionPreferences200Response + */ +export interface QuerySubscriptionGetSubscriptionPreferences200Response { + /** + * + * @type {number} + * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + */ + id: number; + /** + * + * @type {number} + * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + */ + user_id: number; + /** + * + * @type {boolean} + * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + */ + email_notifications_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + */ + digest_email_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + */ + recap_email_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + */ + mobile_push_notifications_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + */ + mobile_push_discussion_activity_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + */ + mobile_push_admin_alerts_enabled?: boolean; + /** + * + * @type {string} + * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + */ + created_at?: string; + /** + * + * @type {string} + * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + */ + updated_at?: string; +} +/** + * + * @export + * @interface QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + */ +export interface QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf { + /** + * + * @type {number} + * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + */ + id: number; + /** + * + * @type {number} + * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + */ + user_id: number; + /** + * + * @type {boolean} + * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + */ + email_notifications_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + */ + digest_email_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + */ + recap_email_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + */ + mobile_push_notifications_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + */ + mobile_push_discussion_activity_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + */ + mobile_push_admin_alerts_enabled?: boolean; + /** + * + * @type {string} + * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + */ + created_at?: string; + /** + * + * @type {string} + * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + */ + updated_at?: string; +} +/** + * + * @export + * @interface QueryThreadGetBulkThreads200Response + */ +export interface QueryThreadGetBulkThreads200Response { + /** + * + * @type {number} + * @memberof QueryThreadGetBulkThreads200Response + */ + limit: number; + /** + * + * @type {number} + * @memberof QueryThreadGetBulkThreads200Response + */ + numVotingThreads: number; + /** + * + * @type {number} + * @memberof QueryThreadGetBulkThreads200Response + */ + cursor: number; + /** + * + * @type {Array} + * @memberof QueryThreadGetBulkThreads200Response + */ + threads: Array; +} +/** + * + * @export + * @interface QueryThreadGetBulkThreads200ResponseThreadsInner + */ +export interface QueryThreadGetBulkThreads200ResponseThreadsInner { + /** + * + * @type {number} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + id: number; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + title: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + url: string | null; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + body: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + last_edited?: string | null; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + kind: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + stage: string; + /** + * + * @type {boolean} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + read_only: boolean; + /** + * + * @type {QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + discord_meta?: QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta | null; + /** + * + * @type {boolean} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + pinned: boolean; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + chain: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + created_at: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + updated_at: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + locked_at?: string | null; + /** + * + * @type {Array} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + links?: Array | null; + /** + * + * @type {Array} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + collaborators: Array; + /** + * + * @type {boolean} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + has_poll?: boolean | null; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + last_commented_on?: string | null; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + plaintext?: string | null; + /** + * + * @type {QueryThreadGetBulkThreads200ResponseThreadsInnerAddress} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + Address: QueryThreadGetBulkThreads200ResponseThreadsInnerAddress; + /** + * + * @type {number} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + numberOfComments: number; + /** + * + * @type {Array} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + reactionIds: Array; + /** + * + * @type {Array} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + reactionTimestamps: Array; + /** + * + * @type {Array} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + reactionWeights: Array; + /** + * + * @type {number} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + reaction_weights_sum: number; + /** + * + * @type {Array} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + addressesReacted: Array; + /** + * + * @type {Array} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + reactedProfileName?: Array; + /** + * + * @type {Array} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + reactedProfileAvatarUrl?: Array; + /** + * + * @type {Array} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + reactedAddressLastActive?: Array; + /** + * + * @type {Array} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + reactionType: Array; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + marked_as_spam_at?: string | null; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + archived_at?: string | null; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + latest_activity?: string | null; + /** + * + * @type {QueryThreadGetBulkThreads200ResponseThreadsInnerTopic} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + topic?: QueryThreadGetBulkThreads200ResponseThreadsInnerTopic; + /** + * + * @type {number} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + user_id: number; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + avatar_url: string | null; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + address_last_active: string | null; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + */ + profile_name: string | null; +} +/** + * + * @export + * @interface QueryThreadGetBulkThreads200ResponseThreadsInnerAddress + */ +export interface QueryThreadGetBulkThreads200ResponseThreadsInnerAddress { + /** + * + * @type {number} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerAddress + */ + id: number; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerAddress + */ + address: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerAddress + */ + community_id: string; +} +/** + * + * @export + * @interface QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta + */ +export interface QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta { + /** + * + * @type {QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta + */ + user: QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta + */ + channel_id: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta + */ + message_id: string; +} +/** + * + * @export + * @interface QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser + */ +export interface QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser { + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser + */ + id: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser + */ + username: string; +} +/** + * + * @export + * @interface QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInner + */ +export interface QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInner { + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInner + */ + source: QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInner + */ + identifier: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInner + */ + title?: string | null; +} + +export const QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum = + { + Snapshot: 'snapshot', + Proposal: 'proposal', + Thread: 'thread', + Web: 'web', + Template: 'template', + } as const; + +export type QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum = + typeof QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum[keyof typeof QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum]; + +/** + * + * @export + * @interface QueryThreadGetBulkThreads200ResponseThreadsInnerTopic + */ +export interface QueryThreadGetBulkThreads200ResponseThreadsInnerTopic { + /** + * + * @type {number} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerTopic + */ + id: number; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerTopic + */ + name: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerTopic + */ + description: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerTopic + */ + chainId: string; + /** + * + * @type {string} + * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerTopic + */ + telegram: string; +} + +/** + * CommunityApi - axios parameter creator + * @export + */ +export const CommunityApiAxiosParamCreator = function ( + configuration?: Configuration, +) { + return { + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationCommunityCreateGroupRequest} mutationCommunityCreateGroupRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationCommunityCreateGroup: async ( + addressId: string, + id: string, + mutationCommunityCreateGroupRequest: MutationCommunityCreateGroupRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists('mutationCommunityCreateGroup', 'addressId', addressId); + // verify required parameter 'id' is not null or undefined + assertParamExists('mutationCommunityCreateGroup', 'id', id); + // verify required parameter 'mutationCommunityCreateGroupRequest' is not null or undefined + assertParamExists( + 'mutationCommunityCreateGroup', + 'mutationCommunityCreateGroupRequest', + mutationCommunityCreateGroupRequest, + ); + const localVarPath = `/community/{id}/CreateGroup`.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 (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationCommunityCreateGroupRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationCommunityCreateStakeTransactionRequest} mutationCommunityCreateStakeTransactionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationCommunityCreateStakeTransaction: async ( + addressId: string, + id: string, + mutationCommunityCreateStakeTransactionRequest: MutationCommunityCreateStakeTransactionRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationCommunityCreateStakeTransaction', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists('mutationCommunityCreateStakeTransaction', 'id', id); + // verify required parameter 'mutationCommunityCreateStakeTransactionRequest' is not null or undefined + assertParamExists( + 'mutationCommunityCreateStakeTransaction', + 'mutationCommunityCreateStakeTransactionRequest', + mutationCommunityCreateStakeTransactionRequest, + ); + const localVarPath = `/community/{id}/CreateStakeTransaction`.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 (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationCommunityCreateStakeTransactionRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationCommunitySetStakeRequest} mutationCommunitySetStakeRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationCommunitySetStake: async ( + addressId: string, + id: string, + mutationCommunitySetStakeRequest: MutationCommunitySetStakeRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists('mutationCommunitySetStake', 'addressId', addressId); + // verify required parameter 'id' is not null or undefined + assertParamExists('mutationCommunitySetStake', 'id', id); + // verify required parameter 'mutationCommunitySetStakeRequest' is not null or undefined + assertParamExists( + 'mutationCommunitySetStake', + 'mutationCommunitySetStakeRequest', + mutationCommunitySetStakeRequest, + ); + const localVarPath = `/community/{id}/SetCommunityStake`.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 (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationCommunitySetStakeRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner} mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationContestCancelContestMetadata: async ( + addressId: string, + id: string, + mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner: MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationContestCancelContestMetadata', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists('mutationContestCancelContestMetadata', 'id', id); + // verify required parameter 'mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner' is not null or undefined + assertParamExists( + 'mutationContestCancelContestMetadata', + 'mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner', + mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + ); + const localVarPath = + `/community/{id}/CancelContestManagerMetadata`.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 (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationContestCreateContestMetadataRequest} mutationContestCreateContestMetadataRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationContestCreateContestMetadata: async ( + addressId: string, + id: string, + mutationContestCreateContestMetadataRequest: MutationContestCreateContestMetadataRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationContestCreateContestMetadata', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists('mutationContestCreateContestMetadata', 'id', id); + // verify required parameter 'mutationContestCreateContestMetadataRequest' is not null or undefined + assertParamExists( + 'mutationContestCreateContestMetadata', + 'mutationContestCreateContestMetadataRequest', + mutationContestCreateContestMetadataRequest, + ); + const localVarPath = + `/community/{id}/CreateContestManagerMetadata`.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 (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationContestCreateContestMetadataRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationContestUpdateContestMetadataRequest} mutationContestUpdateContestMetadataRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationContestUpdateContestMetadata: async ( + addressId: string, + id: string, + mutationContestUpdateContestMetadataRequest: MutationContestUpdateContestMetadataRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationContestUpdateContestMetadata', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists('mutationContestUpdateContestMetadata', 'id', id); + // verify required parameter 'mutationContestUpdateContestMetadataRequest' is not null or undefined + assertParamExists( + 'mutationContestUpdateContestMetadata', + 'mutationContestUpdateContestMetadataRequest', + mutationContestUpdateContestMetadataRequest, + ); + const localVarPath = + `/community/{id}/UpdateContestManagerMetadata`.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 (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationContestUpdateContestMetadataRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * CommunityApi - functional programming interface + * @export + */ +export const CommunityApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + CommunityApiAxiosParamCreator(configuration); + return { + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationCommunityCreateGroupRequest} mutationCommunityCreateGroupRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationCommunityCreateGroup( + addressId: string, + id: string, + mutationCommunityCreateGroupRequest: MutationCommunityCreateGroupRequest, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationCommunityCreateGroup( + addressId, + id, + mutationCommunityCreateGroupRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['CommunityApi.mutationCommunityCreateGroup']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationCommunityCreateStakeTransactionRequest} mutationCommunityCreateStakeTransactionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationCommunityCreateStakeTransaction( + addressId: string, + id: string, + mutationCommunityCreateStakeTransactionRequest: MutationCommunityCreateStakeTransactionRequest, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationCommunityCreateStakeTransaction( + addressId, + id, + mutationCommunityCreateStakeTransactionRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'CommunityApi.mutationCommunityCreateStakeTransaction' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationCommunitySetStakeRequest} mutationCommunitySetStakeRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationCommunitySetStake( + addressId: string, + id: string, + mutationCommunitySetStakeRequest: MutationCommunitySetStakeRequest, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationCommunitySetStake( + addressId, + id, + mutationCommunitySetStakeRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['CommunityApi.mutationCommunitySetStake']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner} mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationContestCancelContestMetadata( + addressId: string, + id: string, + mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner: MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationContestCancelContestMetadata( + addressId, + id, + mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'CommunityApi.mutationContestCancelContestMetadata' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationContestCreateContestMetadataRequest} mutationContestCreateContestMetadataRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationContestCreateContestMetadata( + addressId: string, + id: string, + mutationContestCreateContestMetadataRequest: MutationContestCreateContestMetadataRequest, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationContestCreateContestMetadata( + addressId, + id, + mutationContestCreateContestMetadataRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'CommunityApi.mutationContestCreateContestMetadata' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationContestUpdateContestMetadataRequest} mutationContestUpdateContestMetadataRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationContestUpdateContestMetadata( + addressId: string, + id: string, + mutationContestUpdateContestMetadataRequest: MutationContestUpdateContestMetadataRequest, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationContestUpdateContestMetadata( + addressId, + id, + mutationContestUpdateContestMetadataRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'CommunityApi.mutationContestUpdateContestMetadata' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + }; +}; + +/** + * CommunityApi - factory interface + * @export + */ +export const CommunityApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = CommunityApiFp(configuration); + return { + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationCommunityCreateGroupRequest} mutationCommunityCreateGroupRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationCommunityCreateGroup( + addressId: string, + id: string, + mutationCommunityCreateGroupRequest: MutationCommunityCreateGroupRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationCommunityCreateGroup( + addressId, + id, + mutationCommunityCreateGroupRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationCommunityCreateStakeTransactionRequest} mutationCommunityCreateStakeTransactionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationCommunityCreateStakeTransaction( + addressId: string, + id: string, + mutationCommunityCreateStakeTransactionRequest: MutationCommunityCreateStakeTransactionRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationCommunityCreateStakeTransaction( + addressId, + id, + mutationCommunityCreateStakeTransactionRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationCommunitySetStakeRequest} mutationCommunitySetStakeRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationCommunitySetStake( + addressId: string, + id: string, + mutationCommunitySetStakeRequest: MutationCommunitySetStakeRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationCommunitySetStake( + addressId, + id, + mutationCommunitySetStakeRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner} mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationContestCancelContestMetadata( + addressId: string, + id: string, + mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner: MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationContestCancelContestMetadata( + addressId, + id, + mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationContestCreateContestMetadataRequest} mutationContestCreateContestMetadataRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationContestCreateContestMetadata( + addressId: string, + id: string, + mutationContestCreateContestMetadataRequest: MutationContestCreateContestMetadataRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationContestCreateContestMetadata( + addressId, + id, + mutationContestCreateContestMetadataRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationContestUpdateContestMetadataRequest} mutationContestUpdateContestMetadataRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationContestUpdateContestMetadata( + addressId: string, + id: string, + mutationContestUpdateContestMetadataRequest: MutationContestUpdateContestMetadataRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationContestUpdateContestMetadata( + addressId, + id, + mutationContestUpdateContestMetadataRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * CommunityApi - object-oriented interface + * @export + * @class CommunityApi + * @extends {BaseAPI} + */ +export class CommunityApi extends BaseAPI { + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationCommunityCreateGroupRequest} mutationCommunityCreateGroupRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommunityApi + */ + public mutationCommunityCreateGroup( + addressId: string, + id: string, + mutationCommunityCreateGroupRequest: MutationCommunityCreateGroupRequest, + options?: RawAxiosRequestConfig, + ) { + return CommunityApiFp(this.configuration) + .mutationCommunityCreateGroup( + addressId, + id, + mutationCommunityCreateGroupRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationCommunityCreateStakeTransactionRequest} mutationCommunityCreateStakeTransactionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommunityApi + */ + public mutationCommunityCreateStakeTransaction( + addressId: string, + id: string, + mutationCommunityCreateStakeTransactionRequest: MutationCommunityCreateStakeTransactionRequest, + options?: RawAxiosRequestConfig, + ) { + return CommunityApiFp(this.configuration) + .mutationCommunityCreateStakeTransaction( + addressId, + id, + mutationCommunityCreateStakeTransactionRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationCommunitySetStakeRequest} mutationCommunitySetStakeRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommunityApi + */ + public mutationCommunitySetStake( + addressId: string, + id: string, + mutationCommunitySetStakeRequest: MutationCommunitySetStakeRequest, + options?: RawAxiosRequestConfig, + ) { + return CommunityApiFp(this.configuration) + .mutationCommunitySetStake( + addressId, + id, + mutationCommunitySetStakeRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner} mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommunityApi + */ + public mutationContestCancelContestMetadata( + addressId: string, + id: string, + mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner: MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + options?: RawAxiosRequestConfig, + ) { + return CommunityApiFp(this.configuration) + .mutationContestCancelContestMetadata( + addressId, + id, + mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationContestCreateContestMetadataRequest} mutationContestCreateContestMetadataRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommunityApi + */ + public mutationContestCreateContestMetadata( + addressId: string, + id: string, + mutationContestCreateContestMetadataRequest: MutationContestCreateContestMetadataRequest, + options?: RawAxiosRequestConfig, + ) { + return CommunityApiFp(this.configuration) + .mutationContestCreateContestMetadata( + addressId, + id, + mutationContestCreateContestMetadataRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {string} id + * @param {MutationContestUpdateContestMetadataRequest} mutationContestUpdateContestMetadataRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommunityApi + */ + public mutationContestUpdateContestMetadata( + addressId: string, + id: string, + mutationContestUpdateContestMetadataRequest: MutationContestUpdateContestMetadataRequest, + options?: RawAxiosRequestConfig, + ) { + return CommunityApiFp(this.configuration) + .mutationContestUpdateContestMetadata( + addressId, + id, + mutationContestUpdateContestMetadataRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * IntegrationApi - axios parameter creator + * @export + */ +export const IntegrationApiAxiosParamCreator = function ( + configuration?: Configuration, +) { + return { + /** + * + * @param {MutationIntegrationsAnalyticsRequest} mutationIntegrationsAnalyticsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationIntegrationsAnalytics: async ( + mutationIntegrationsAnalyticsRequest: MutationIntegrationsAnalyticsRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'mutationIntegrationsAnalyticsRequest' is not null or undefined + assertParamExists( + 'mutationIntegrationsAnalytics', + 'mutationIntegrationsAnalyticsRequest', + mutationIntegrationsAnalyticsRequest, + ); + const localVarPath = `/integration/Analytics`; + // 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; + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationIntegrationsAnalyticsRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * IntegrationApi - functional programming interface + * @export + */ +export const IntegrationApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + IntegrationApiAxiosParamCreator(configuration); + return { + /** + * + * @param {MutationIntegrationsAnalyticsRequest} mutationIntegrationsAnalyticsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationIntegrationsAnalytics( + mutationIntegrationsAnalyticsRequest: MutationIntegrationsAnalyticsRequest, + options?: RawAxiosRequestConfig, + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationIntegrationsAnalytics( + mutationIntegrationsAnalyticsRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['IntegrationApi.mutationIntegrationsAnalytics']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + }; +}; + +/** + * IntegrationApi - factory interface + * @export + */ +export const IntegrationApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = IntegrationApiFp(configuration); + return { + /** + * + * @param {MutationIntegrationsAnalyticsRequest} mutationIntegrationsAnalyticsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationIntegrationsAnalytics( + mutationIntegrationsAnalyticsRequest: MutationIntegrationsAnalyticsRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationIntegrationsAnalytics( + mutationIntegrationsAnalyticsRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * IntegrationApi - object-oriented interface + * @export + * @class IntegrationApi + * @extends {BaseAPI} + */ +export class IntegrationApi extends BaseAPI { + /** + * + * @param {MutationIntegrationsAnalyticsRequest} mutationIntegrationsAnalyticsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IntegrationApi + */ + public mutationIntegrationsAnalytics( + mutationIntegrationsAnalyticsRequest: MutationIntegrationsAnalyticsRequest, + options?: RawAxiosRequestConfig, + ) { + return IntegrationApiFp(this.configuration) + .mutationIntegrationsAnalytics( + mutationIntegrationsAnalyticsRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * LoadTestApi - axios parameter creator + * @export + */ +export const LoadTestApiAxiosParamCreator = function ( + configuration?: Configuration, +) { + return { + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationLoadTestCreateJWTsRequest} mutationLoadTestCreateJWTsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationLoadTestCreateJWTs: async ( + addressId: string, + id: number, + mutationLoadTestCreateJWTsRequest: MutationLoadTestCreateJWTsRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists('mutationLoadTestCreateJWTs', 'addressId', addressId); + // verify required parameter 'id' is not null or undefined + assertParamExists('mutationLoadTestCreateJWTs', 'id', id); + // verify required parameter 'mutationLoadTestCreateJWTsRequest' is not null or undefined + assertParamExists( + 'mutationLoadTestCreateJWTs', + 'mutationLoadTestCreateJWTsRequest', + mutationLoadTestCreateJWTsRequest, + ); + const localVarPath = `/loadtest/{id}/CreateJWTs`.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; + + // authentication Authorization required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationLoadTestCreateJWTsRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * LoadTestApi - functional programming interface + * @export + */ +export const LoadTestApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = LoadTestApiAxiosParamCreator(configuration); + return { + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationLoadTestCreateJWTsRequest} mutationLoadTestCreateJWTsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationLoadTestCreateJWTs( + addressId: string, + id: number, + mutationLoadTestCreateJWTsRequest: MutationLoadTestCreateJWTsRequest, + options?: RawAxiosRequestConfig, + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationLoadTestCreateJWTs( + addressId, + id, + mutationLoadTestCreateJWTsRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['LoadTestApi.mutationLoadTestCreateJWTs']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + }; +}; + +/** + * LoadTestApi - factory interface + * @export + */ +export const LoadTestApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = LoadTestApiFp(configuration); + return { + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationLoadTestCreateJWTsRequest} mutationLoadTestCreateJWTsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationLoadTestCreateJWTs( + addressId: string, + id: number, + mutationLoadTestCreateJWTsRequest: MutationLoadTestCreateJWTsRequest, + options?: any, + ): AxiosPromise> { + return localVarFp + .mutationLoadTestCreateJWTs( + addressId, + id, + mutationLoadTestCreateJWTsRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * LoadTestApi - object-oriented interface + * @export + * @class LoadTestApi + * @extends {BaseAPI} + */ +export class LoadTestApi extends BaseAPI { + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationLoadTestCreateJWTsRequest} mutationLoadTestCreateJWTsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoadTestApi + */ + public mutationLoadTestCreateJWTs( + addressId: string, + id: number, + mutationLoadTestCreateJWTsRequest: MutationLoadTestCreateJWTsRequest, + options?: RawAxiosRequestConfig, + ) { + return LoadTestApiFp(this.configuration) + .mutationLoadTestCreateJWTs( + addressId, + id, + mutationLoadTestCreateJWTsRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * QueryApi - axios parameter creator + * @export + */ +export const QueryApiAxiosParamCreator = function ( + configuration?: Configuration, +) { + return { + /** + * + * @param {string} id + * @param {string} [addressId] + * @param {boolean} [includeNodeInfo] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCommunityGetCommunity: async ( + id: string, + addressId?: string, + includeNodeInfo?: boolean, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('queryCommunityGetCommunity', 'id', id); + const localVarPath = `/query/GetCommunity`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + + if (includeNodeInfo !== undefined) { + localVarQueryParameter['include_node_info'] = includeNodeInfo; + } + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {number | null} [limit] + * @param {number | null} [cursor] required for tRPC useInfiniteQuery hook, equivalent to page number + * @param {QueryCommunityGetMembersOrderByEnum} [orderBy] + * @param {QueryCommunityGetMembersOrderDirectionEnum} [orderDirection] + * @param {string} [search] + * @param {boolean} [includeRoles] + * @param {QueryCommunityGetMembersMembershipsParameter} [memberships] + * @param {boolean} [includeGroupIds] + * @param {boolean} [includeStakeBalances] + * @param {string} [allowedAddresses] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCommunityGetMembers: async ( + communityId: string, + addressId?: string, + limit?: number | null, + cursor?: number | null, + orderBy?: QueryCommunityGetMembersOrderByEnum, + orderDirection?: QueryCommunityGetMembersOrderDirectionEnum, + search?: string, + includeRoles?: boolean, + memberships?: QueryCommunityGetMembersMembershipsParameter, + includeGroupIds?: boolean, + includeStakeBalances?: boolean, + allowedAddresses?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'communityId' is not null or undefined + assertParamExists('queryCommunityGetMembers', 'communityId', communityId); + const localVarPath = `/query/GetMembers`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (orderBy !== undefined) { + localVarQueryParameter['order_by'] = orderBy; + } + + if (orderDirection !== undefined) { + localVarQueryParameter['order_direction'] = orderDirection; + } + + if (search !== undefined) { + localVarQueryParameter['search'] = search; + } + + if (communityId !== undefined) { + localVarQueryParameter['community_id'] = communityId; + } + + if (includeRoles !== undefined) { + localVarQueryParameter['include_roles'] = includeRoles; + } + + if (memberships !== undefined) { + for (const [key, value] of Object.entries(memberships)) { + localVarQueryParameter[key] = value; + } + } + + if (includeGroupIds !== undefined) { + localVarQueryParameter['include_group_ids'] = includeGroupIds; + } + + if (includeStakeBalances !== undefined) { + localVarQueryParameter['include_stake_balances'] = includeStakeBalances; + } + + if (allowedAddresses !== undefined) { + localVarQueryParameter['allowedAddresses'] = allowedAddresses; + } + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {number} [stakeId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCommunityGetStake: async ( + communityId: string, + addressId?: string, + stakeId?: number, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'communityId' is not null or undefined + assertParamExists('queryCommunityGetStake', 'communityId', communityId); + const localVarPath = `/query/GetCommunityStake`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (communityId !== undefined) { + localVarQueryParameter['community_id'] = communityId; + } + + if (stakeId !== undefined) { + localVarQueryParameter['stake_id'] = stakeId; + } + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} pastDateEpoch + * @param {string} [addressId] + * @param {string} [communityId] + * @param {number} [stakeId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCommunityGetStakeHistoricalPrice: async ( + pastDateEpoch: number, + addressId?: string, + communityId?: string, + stakeId?: number, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'pastDateEpoch' is not null or undefined + assertParamExists( + 'queryCommunityGetStakeHistoricalPrice', + 'pastDateEpoch', + pastDateEpoch, + ); + const localVarPath = `/query/GetStakeHistoricalPrice`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (pastDateEpoch !== undefined) { + localVarQueryParameter['past_date_epoch'] = pastDateEpoch; + } + + if (communityId !== undefined) { + localVarQueryParameter['community_id'] = communityId; + } + + if (stakeId !== undefined) { + localVarQueryParameter['stake_id'] = stakeId; + } + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} [addressId] + * @param {string} [addresses] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCommunityGetStakeTransaction: async ( + addressId?: string, + addresses?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/query/GetStakeTransaction`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addresses !== undefined) { + localVarQueryParameter['addresses'] = addresses; + } + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {string} [contestAddress] + * @param {number} [contestId] + * @param {boolean} [running] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryContestGetAllContests: async ( + communityId: string, + addressId?: string, + contestAddress?: string, + contestId?: number, + running?: boolean, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'communityId' is not null or undefined + assertParamExists( + 'queryContestGetAllContests', + 'communityId', + communityId, + ); + const localVarPath = `/query/GetAllContests`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (communityId !== undefined) { + localVarQueryParameter['community_id'] = communityId; + } + + if (contestAddress !== undefined) { + localVarQueryParameter['contest_address'] = contestAddress; + } + + if (contestId !== undefined) { + localVarQueryParameter['contest_id'] = contestId; + } + + if (running !== undefined) { + localVarQueryParameter['running'] = running; + } + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} contestAddress + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryContestGetContestLog: async ( + contestAddress: string, + addressId?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'contestAddress' is not null or undefined + assertParamExists( + 'queryContestGetContestLog', + 'contestAddress', + contestAddress, + ); + const localVarPath = `/query/GetContestLog`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (contestAddress !== undefined) { + localVarQueryParameter['contest_address'] = contestAddress; + } + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryFeedGetChainActivity: async ( + addressId?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/query/GetChainActivity`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryFeedGetGlobalActivity: async ( + addressId?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/query/GetGlobalActivity`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryFeedGetUserActivity: async ( + addressId?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/query/GetUserActivity`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + querySubscriptionGetCommentSubscriptions: async ( + addressId?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/query/GetCommentSubscriptions`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + querySubscriptionGetCommunityAlerts: async ( + addressId?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/query/GetCommunityAlerts`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + querySubscriptionGetSubscriptionPreferences: async ( + addressId?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/query/GetSubscriptionPreferences`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + querySubscriptionGetThreadSubscriptions: async ( + addressId?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/query/GetThreadSubscriptions`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {string} [fromDate] + * @param {string} [toDate] + * @param {boolean} [archived] + * @param {boolean} [includePinnedThreads] + * @param {number} [topicId] + * @param {string} [stage] + * @param {QueryThreadGetBulkThreadsOrderByEnum} [orderBy] + * @param {number} [cursor] + * @param {number} [limit] The number of objects returned + * @param {number} [offset] The amount of objects offset from the beginning + * @param {number} [page] The page returned + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryThreadGetBulkThreads: async ( + communityId: string, + addressId?: string, + fromDate?: string, + toDate?: string, + archived?: boolean, + includePinnedThreads?: boolean, + topicId?: number, + stage?: string, + orderBy?: QueryThreadGetBulkThreadsOrderByEnum, + cursor?: number, + limit?: number, + offset?: number, + page?: number, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'communityId' is not null or undefined + assertParamExists( + 'queryThreadGetBulkThreads', + 'communityId', + communityId, + ); + const localVarPath = `/query/GetBulkThreads`; + // 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: 'GET', + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (communityId !== undefined) { + localVarQueryParameter['community_id'] = communityId; + } + + if (fromDate !== undefined) { + localVarQueryParameter['fromDate'] = + (fromDate as any) instanceof Date + ? (fromDate as any).toISOString() + : fromDate; + } + + if (toDate !== undefined) { + localVarQueryParameter['toDate'] = + (toDate as any) instanceof Date + ? (toDate as any).toISOString() + : toDate; + } + + if (archived !== undefined) { + localVarQueryParameter['archived'] = archived; + } + + if (includePinnedThreads !== undefined) { + localVarQueryParameter['includePinnedThreads'] = includePinnedThreads; + } + + if (topicId !== undefined) { + localVarQueryParameter['topicId'] = topicId; + } + + if (stage !== undefined) { + localVarQueryParameter['stage'] = stage; + } + + if (orderBy !== undefined) { + localVarQueryParameter['orderBy'] = orderBy; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * QueryApi - functional programming interface + * @export + */ +export const QueryApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = QueryApiAxiosParamCreator(configuration); + return { + /** + * + * @param {string} id + * @param {string} [addressId] + * @param {boolean} [includeNodeInfo] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryCommunityGetCommunity( + id: string, + addressId?: string, + includeNodeInfo?: boolean, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.queryCommunityGetCommunity( + id, + addressId, + includeNodeInfo, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['QueryApi.queryCommunityGetCommunity']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {number | null} [limit] + * @param {number | null} [cursor] required for tRPC useInfiniteQuery hook, equivalent to page number + * @param {QueryCommunityGetMembersOrderByEnum} [orderBy] + * @param {QueryCommunityGetMembersOrderDirectionEnum} [orderDirection] + * @param {string} [search] + * @param {boolean} [includeRoles] + * @param {QueryCommunityGetMembersMembershipsParameter} [memberships] + * @param {boolean} [includeGroupIds] + * @param {boolean} [includeStakeBalances] + * @param {string} [allowedAddresses] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryCommunityGetMembers( + communityId: string, + addressId?: string, + limit?: number | null, + cursor?: number | null, + orderBy?: QueryCommunityGetMembersOrderByEnum, + orderDirection?: QueryCommunityGetMembersOrderDirectionEnum, + search?: string, + includeRoles?: boolean, + memberships?: QueryCommunityGetMembersMembershipsParameter, + includeGroupIds?: boolean, + includeStakeBalances?: boolean, + allowedAddresses?: string, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.queryCommunityGetMembers( + communityId, + addressId, + limit, + cursor, + orderBy, + orderDirection, + search, + includeRoles, + memberships, + includeGroupIds, + includeStakeBalances, + allowedAddresses, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['QueryApi.queryCommunityGetMembers']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {number} [stakeId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryCommunityGetStake( + communityId: string, + addressId?: string, + stakeId?: number, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.queryCommunityGetStake( + communityId, + addressId, + stakeId, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['QueryApi.queryCommunityGetStake']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {number} pastDateEpoch + * @param {string} [addressId] + * @param {string} [communityId] + * @param {number} [stakeId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryCommunityGetStakeHistoricalPrice( + pastDateEpoch: number, + addressId?: string, + communityId?: string, + stakeId?: number, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise< + Array + > + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.queryCommunityGetStakeHistoricalPrice( + pastDateEpoch, + addressId, + communityId, + stakeId, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['QueryApi.queryCommunityGetStakeHistoricalPrice']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} [addressId] + * @param {string} [addresses] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryCommunityGetStakeTransaction( + addressId?: string, + addresses?: string, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise< + Array + > + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.queryCommunityGetStakeTransaction( + addressId, + addresses, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['QueryApi.queryCommunityGetStakeTransaction']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {string} [contestAddress] + * @param {number} [contestId] + * @param {boolean} [running] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryContestGetAllContests( + communityId: string, + addressId?: string, + contestAddress?: string, + contestId?: number, + running?: boolean, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.queryContestGetAllContests( + communityId, + addressId, + contestAddress, + contestId, + running, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['QueryApi.queryContestGetAllContests']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} contestAddress + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryContestGetContestLog( + contestAddress: string, + addressId?: string, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.queryContestGetContestLog( + contestAddress, + addressId, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['QueryApi.queryContestGetContestLog']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryFeedGetChainActivity( + addressId?: string, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.queryFeedGetChainActivity( + addressId, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['QueryApi.queryFeedGetChainActivity']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryFeedGetGlobalActivity( + addressId?: string, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.queryFeedGetGlobalActivity( + addressId, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['QueryApi.queryFeedGetGlobalActivity']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryFeedGetUserActivity( + addressId?: string, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise> + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.queryFeedGetUserActivity( + addressId, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['QueryApi.queryFeedGetUserActivity']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async querySubscriptionGetCommentSubscriptions( + addressId?: string, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise< + Array + > + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.querySubscriptionGetCommentSubscriptions( + addressId, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'QueryApi.querySubscriptionGetCommentSubscriptions' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async querySubscriptionGetCommunityAlerts( + addressId?: string, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise< + Array + > + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.querySubscriptionGetCommunityAlerts( + addressId, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['QueryApi.querySubscriptionGetCommunityAlerts']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async querySubscriptionGetSubscriptionPreferences( + addressId?: string, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.querySubscriptionGetSubscriptionPreferences( + addressId, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'QueryApi.querySubscriptionGetSubscriptionPreferences' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async querySubscriptionGetThreadSubscriptions( + addressId?: string, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise< + Array + > + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.querySubscriptionGetThreadSubscriptions( + addressId, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'QueryApi.querySubscriptionGetThreadSubscriptions' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {string} [fromDate] + * @param {string} [toDate] + * @param {boolean} [archived] + * @param {boolean} [includePinnedThreads] + * @param {number} [topicId] + * @param {string} [stage] + * @param {QueryThreadGetBulkThreadsOrderByEnum} [orderBy] + * @param {number} [cursor] + * @param {number} [limit] The number of objects returned + * @param {number} [offset] The amount of objects offset from the beginning + * @param {number} [page] The page returned + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async queryThreadGetBulkThreads( + communityId: string, + addressId?: string, + fromDate?: string, + toDate?: string, + archived?: boolean, + includePinnedThreads?: boolean, + topicId?: number, + stage?: string, + orderBy?: QueryThreadGetBulkThreadsOrderByEnum, + cursor?: number, + limit?: number, + offset?: number, + page?: number, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.queryThreadGetBulkThreads( + communityId, + addressId, + fromDate, + toDate, + archived, + includePinnedThreads, + topicId, + stage, + orderBy, + cursor, + limit, + offset, + page, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['QueryApi.queryThreadGetBulkThreads']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + }; +}; + +/** + * QueryApi - factory interface + * @export + */ +export const QueryApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = QueryApiFp(configuration); + return { + /** + * + * @param {string} id + * @param {string} [addressId] + * @param {boolean} [includeNodeInfo] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCommunityGetCommunity( + id: string, + addressId?: string, + includeNodeInfo?: boolean, + options?: any, + ): AxiosPromise { + return localVarFp + .queryCommunityGetCommunity(id, addressId, includeNodeInfo, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {number | null} [limit] + * @param {number | null} [cursor] required for tRPC useInfiniteQuery hook, equivalent to page number + * @param {QueryCommunityGetMembersOrderByEnum} [orderBy] + * @param {QueryCommunityGetMembersOrderDirectionEnum} [orderDirection] + * @param {string} [search] + * @param {boolean} [includeRoles] + * @param {QueryCommunityGetMembersMembershipsParameter} [memberships] + * @param {boolean} [includeGroupIds] + * @param {boolean} [includeStakeBalances] + * @param {string} [allowedAddresses] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCommunityGetMembers( + communityId: string, + addressId?: string, + limit?: number | null, + cursor?: number | null, + orderBy?: QueryCommunityGetMembersOrderByEnum, + orderDirection?: QueryCommunityGetMembersOrderDirectionEnum, + search?: string, + includeRoles?: boolean, + memberships?: QueryCommunityGetMembersMembershipsParameter, + includeGroupIds?: boolean, + includeStakeBalances?: boolean, + allowedAddresses?: string, + options?: any, + ): AxiosPromise { + return localVarFp + .queryCommunityGetMembers( + communityId, + addressId, + limit, + cursor, + orderBy, + orderDirection, + search, + includeRoles, + memberships, + includeGroupIds, + includeStakeBalances, + allowedAddresses, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {number} [stakeId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCommunityGetStake( + communityId: string, + addressId?: string, + stakeId?: number, + options?: any, + ): AxiosPromise { + return localVarFp + .queryCommunityGetStake(communityId, addressId, stakeId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} pastDateEpoch + * @param {string} [addressId] + * @param {string} [communityId] + * @param {number} [stakeId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCommunityGetStakeHistoricalPrice( + pastDateEpoch: number, + addressId?: string, + communityId?: string, + stakeId?: number, + options?: any, + ): AxiosPromise< + Array + > { + return localVarFp + .queryCommunityGetStakeHistoricalPrice( + pastDateEpoch, + addressId, + communityId, + stakeId, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} [addressId] + * @param {string} [addresses] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryCommunityGetStakeTransaction( + addressId?: string, + addresses?: string, + options?: any, + ): AxiosPromise> { + return localVarFp + .queryCommunityGetStakeTransaction(addressId, addresses, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {string} [contestAddress] + * @param {number} [contestId] + * @param {boolean} [running] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryContestGetAllContests( + communityId: string, + addressId?: string, + contestAddress?: string, + contestId?: number, + running?: boolean, + options?: any, + ): AxiosPromise> { + return localVarFp + .queryContestGetAllContests( + communityId, + addressId, + contestAddress, + contestId, + running, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} contestAddress + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryContestGetContestLog( + contestAddress: string, + addressId?: string, + options?: any, + ): AxiosPromise> { + return localVarFp + .queryContestGetContestLog(contestAddress, addressId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryFeedGetChainActivity( + addressId?: string, + options?: any, + ): AxiosPromise> { + return localVarFp + .queryFeedGetChainActivity(addressId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryFeedGetGlobalActivity( + addressId?: string, + options?: any, + ): AxiosPromise> { + return localVarFp + .queryFeedGetGlobalActivity(addressId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryFeedGetUserActivity( + addressId?: string, + options?: any, + ): AxiosPromise> { + return localVarFp + .queryFeedGetUserActivity(addressId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + querySubscriptionGetCommentSubscriptions( + addressId?: string, + options?: any, + ): AxiosPromise< + Array + > { + return localVarFp + .querySubscriptionGetCommentSubscriptions(addressId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + querySubscriptionGetCommunityAlerts( + addressId?: string, + options?: any, + ): AxiosPromise< + Array + > { + return localVarFp + .querySubscriptionGetCommunityAlerts(addressId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + querySubscriptionGetSubscriptionPreferences( + addressId?: string, + options?: any, + ): AxiosPromise { + return localVarFp + .querySubscriptionGetSubscriptionPreferences(addressId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + querySubscriptionGetThreadSubscriptions( + addressId?: string, + options?: any, + ): AxiosPromise< + Array + > { + return localVarFp + .querySubscriptionGetThreadSubscriptions(addressId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {string} [fromDate] + * @param {string} [toDate] + * @param {boolean} [archived] + * @param {boolean} [includePinnedThreads] + * @param {number} [topicId] + * @param {string} [stage] + * @param {QueryThreadGetBulkThreadsOrderByEnum} [orderBy] + * @param {number} [cursor] + * @param {number} [limit] The number of objects returned + * @param {number} [offset] The amount of objects offset from the beginning + * @param {number} [page] The page returned + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + queryThreadGetBulkThreads( + communityId: string, + addressId?: string, + fromDate?: string, + toDate?: string, + archived?: boolean, + includePinnedThreads?: boolean, + topicId?: number, + stage?: string, + orderBy?: QueryThreadGetBulkThreadsOrderByEnum, + cursor?: number, + limit?: number, + offset?: number, + page?: number, + options?: any, + ): AxiosPromise { + return localVarFp + .queryThreadGetBulkThreads( + communityId, + addressId, + fromDate, + toDate, + archived, + includePinnedThreads, + topicId, + stage, + orderBy, + cursor, + limit, + offset, + page, + options, + ) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * QueryApi - object-oriented interface + * @export + * @class QueryApi + * @extends {BaseAPI} + */ +export class QueryApi extends BaseAPI { + /** + * + * @param {string} id + * @param {string} [addressId] + * @param {boolean} [includeNodeInfo] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public queryCommunityGetCommunity( + id: string, + addressId?: string, + includeNodeInfo?: boolean, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .queryCommunityGetCommunity(id, addressId, includeNodeInfo, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {number | null} [limit] + * @param {number | null} [cursor] required for tRPC useInfiniteQuery hook, equivalent to page number + * @param {QueryCommunityGetMembersOrderByEnum} [orderBy] + * @param {QueryCommunityGetMembersOrderDirectionEnum} [orderDirection] + * @param {string} [search] + * @param {boolean} [includeRoles] + * @param {QueryCommunityGetMembersMembershipsParameter} [memberships] + * @param {boolean} [includeGroupIds] + * @param {boolean} [includeStakeBalances] + * @param {string} [allowedAddresses] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public queryCommunityGetMembers( + communityId: string, + addressId?: string, + limit?: number | null, + cursor?: number | null, + orderBy?: QueryCommunityGetMembersOrderByEnum, + orderDirection?: QueryCommunityGetMembersOrderDirectionEnum, + search?: string, + includeRoles?: boolean, + memberships?: QueryCommunityGetMembersMembershipsParameter, + includeGroupIds?: boolean, + includeStakeBalances?: boolean, + allowedAddresses?: string, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .queryCommunityGetMembers( + communityId, + addressId, + limit, + cursor, + orderBy, + orderDirection, + search, + includeRoles, + memberships, + includeGroupIds, + includeStakeBalances, + allowedAddresses, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {number} [stakeId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public queryCommunityGetStake( + communityId: string, + addressId?: string, + stakeId?: number, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .queryCommunityGetStake(communityId, addressId, stakeId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} pastDateEpoch + * @param {string} [addressId] + * @param {string} [communityId] + * @param {number} [stakeId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public queryCommunityGetStakeHistoricalPrice( + pastDateEpoch: number, + addressId?: string, + communityId?: string, + stakeId?: number, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .queryCommunityGetStakeHistoricalPrice( + pastDateEpoch, + addressId, + communityId, + stakeId, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} [addressId] + * @param {string} [addresses] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public queryCommunityGetStakeTransaction( + addressId?: string, + addresses?: string, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .queryCommunityGetStakeTransaction(addressId, addresses, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {string} [contestAddress] + * @param {number} [contestId] + * @param {boolean} [running] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public queryContestGetAllContests( + communityId: string, + addressId?: string, + contestAddress?: string, + contestId?: number, + running?: boolean, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .queryContestGetAllContests( + communityId, + addressId, + contestAddress, + contestId, + running, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} contestAddress + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public queryContestGetContestLog( + contestAddress: string, + addressId?: string, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .queryContestGetContestLog(contestAddress, addressId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public queryFeedGetChainActivity( + addressId?: string, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .queryFeedGetChainActivity(addressId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public queryFeedGetGlobalActivity( + addressId?: string, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .queryFeedGetGlobalActivity(addressId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public queryFeedGetUserActivity( + addressId?: string, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .queryFeedGetUserActivity(addressId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public querySubscriptionGetCommentSubscriptions( + addressId?: string, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .querySubscriptionGetCommentSubscriptions(addressId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public querySubscriptionGetCommunityAlerts( + addressId?: string, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .querySubscriptionGetCommunityAlerts(addressId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public querySubscriptionGetSubscriptionPreferences( + addressId?: string, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .querySubscriptionGetSubscriptionPreferences(addressId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} [addressId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public querySubscriptionGetThreadSubscriptions( + addressId?: string, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .querySubscriptionGetThreadSubscriptions(addressId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} communityId + * @param {string} [addressId] + * @param {string} [fromDate] + * @param {string} [toDate] + * @param {boolean} [archived] + * @param {boolean} [includePinnedThreads] + * @param {number} [topicId] + * @param {string} [stage] + * @param {QueryThreadGetBulkThreadsOrderByEnum} [orderBy] + * @param {number} [cursor] + * @param {number} [limit] The number of objects returned + * @param {number} [offset] The amount of objects offset from the beginning + * @param {number} [page] The page returned + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof QueryApi + */ + public queryThreadGetBulkThreads( + communityId: string, + addressId?: string, + fromDate?: string, + toDate?: string, + archived?: boolean, + includePinnedThreads?: boolean, + topicId?: number, + stage?: string, + orderBy?: QueryThreadGetBulkThreadsOrderByEnum, + cursor?: number, + limit?: number, + offset?: number, + page?: number, + options?: RawAxiosRequestConfig, + ) { + return QueryApiFp(this.configuration) + .queryThreadGetBulkThreads( + communityId, + addressId, + fromDate, + toDate, + archived, + includePinnedThreads, + topicId, + stage, + orderBy, + cursor, + limit, + offset, + page, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * @export + */ +export const QueryCommunityGetMembersOrderByEnum = { + LastActive: 'last_active', + Name: 'name', +} as const; +export type QueryCommunityGetMembersOrderByEnum = + typeof QueryCommunityGetMembersOrderByEnum[keyof typeof QueryCommunityGetMembersOrderByEnum]; +/** + * @export + */ +export const QueryCommunityGetMembersOrderDirectionEnum = { + Asc: 'ASC', + Desc: 'DESC', +} as const; +export type QueryCommunityGetMembersOrderDirectionEnum = + typeof QueryCommunityGetMembersOrderDirectionEnum[keyof typeof QueryCommunityGetMembersOrderDirectionEnum]; +/** + * @export + */ +export const QueryThreadGetBulkThreadsOrderByEnum = { + CreatedAtasc: 'createdAt:asc', + CreatedAtdesc: 'createdAt:desc', + NumberOfCommentsasc: 'numberOfComments:asc', + NumberOfCommentsdesc: 'numberOfComments:desc', + NumberOfLikesasc: 'numberOfLikes:asc', + NumberOfLikesdesc: 'numberOfLikes:desc', + LatestActivityasc: 'latestActivity:asc', + LatestActivitydesc: 'latestActivity:desc', +} as const; +export type QueryThreadGetBulkThreadsOrderByEnum = + typeof QueryThreadGetBulkThreadsOrderByEnum[keyof typeof QueryThreadGetBulkThreadsOrderByEnum]; + +/** + * SubscriptionApi - axios parameter creator + * @export + */ +export const SubscriptionApiAxiosParamCreator = function ( + configuration?: Configuration, +) { + return { + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionCreateCommentSubscriptionRequest} mutationSubscriptionCreateCommentSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionCreateCommentSubscription: async ( + addressId: string, + id: number, + mutationSubscriptionCreateCommentSubscriptionRequest: MutationSubscriptionCreateCommentSubscriptionRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationSubscriptionCreateCommentSubscription', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists( + 'mutationSubscriptionCreateCommentSubscription', + 'id', + id, + ); + // verify required parameter 'mutationSubscriptionCreateCommentSubscriptionRequest' is not null or undefined + assertParamExists( + 'mutationSubscriptionCreateCommentSubscription', + 'mutationSubscriptionCreateCommentSubscriptionRequest', + mutationSubscriptionCreateCommentSubscriptionRequest, + ); + const localVarPath = + `/subscription/{id}/CreateCommentSubscription`.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; + + // authentication Authorization required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationSubscriptionCreateCommentSubscriptionRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionCreateCommunityAlertRequest} mutationSubscriptionCreateCommunityAlertRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionCreateCommunityAlert: async ( + addressId: string, + id: number, + mutationSubscriptionCreateCommunityAlertRequest: MutationSubscriptionCreateCommunityAlertRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationSubscriptionCreateCommunityAlert', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists('mutationSubscriptionCreateCommunityAlert', 'id', id); + // verify required parameter 'mutationSubscriptionCreateCommunityAlertRequest' is not null or undefined + assertParamExists( + 'mutationSubscriptionCreateCommunityAlert', + 'mutationSubscriptionCreateCommunityAlertRequest', + mutationSubscriptionCreateCommunityAlertRequest, + ); + const localVarPath = `/subscription/{id}/CreateCommunityAlert`.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; + + // authentication Authorization required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationSubscriptionCreateCommunityAlertRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionCreateThreadSubscriptionRequest} mutationSubscriptionCreateThreadSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionCreateThreadSubscription: async ( + addressId: string, + id: number, + mutationSubscriptionCreateThreadSubscriptionRequest: MutationSubscriptionCreateThreadSubscriptionRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationSubscriptionCreateThreadSubscription', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists( + 'mutationSubscriptionCreateThreadSubscription', + 'id', + id, + ); + // verify required parameter 'mutationSubscriptionCreateThreadSubscriptionRequest' is not null or undefined + assertParamExists( + 'mutationSubscriptionCreateThreadSubscription', + 'mutationSubscriptionCreateThreadSubscriptionRequest', + mutationSubscriptionCreateThreadSubscriptionRequest, + ); + const localVarPath = + `/subscription/{id}/CreateThreadSubscription`.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; + + // authentication Authorization required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationSubscriptionCreateThreadSubscriptionRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionDeleteCommentSubscriptionRequest} mutationSubscriptionDeleteCommentSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionDeleteCommentSubscription: async ( + addressId: string, + id: number, + mutationSubscriptionDeleteCommentSubscriptionRequest: MutationSubscriptionDeleteCommentSubscriptionRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationSubscriptionDeleteCommentSubscription', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists( + 'mutationSubscriptionDeleteCommentSubscription', + 'id', + id, + ); + // verify required parameter 'mutationSubscriptionDeleteCommentSubscriptionRequest' is not null or undefined + assertParamExists( + 'mutationSubscriptionDeleteCommentSubscription', + 'mutationSubscriptionDeleteCommentSubscriptionRequest', + mutationSubscriptionDeleteCommentSubscriptionRequest, + ); + const localVarPath = + `/subscription/{id}/DeleteCommentSubscription`.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; + + // authentication Authorization required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationSubscriptionDeleteCommentSubscriptionRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionDeleteCommunityAlertRequest} mutationSubscriptionDeleteCommunityAlertRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionDeleteCommunityAlert: async ( + addressId: string, + id: number, + mutationSubscriptionDeleteCommunityAlertRequest: MutationSubscriptionDeleteCommunityAlertRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationSubscriptionDeleteCommunityAlert', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists('mutationSubscriptionDeleteCommunityAlert', 'id', id); + // verify required parameter 'mutationSubscriptionDeleteCommunityAlertRequest' is not null or undefined + assertParamExists( + 'mutationSubscriptionDeleteCommunityAlert', + 'mutationSubscriptionDeleteCommunityAlertRequest', + mutationSubscriptionDeleteCommunityAlertRequest, + ); + const localVarPath = `/subscription/{id}/DeleteCommunityAlerts`.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; + + // authentication Authorization required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationSubscriptionDeleteCommunityAlertRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionDeleteThreadSubscriptionRequest} mutationSubscriptionDeleteThreadSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionDeleteThreadSubscription: async ( + addressId: string, + id: number, + mutationSubscriptionDeleteThreadSubscriptionRequest: MutationSubscriptionDeleteThreadSubscriptionRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationSubscriptionDeleteThreadSubscription', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists( + 'mutationSubscriptionDeleteThreadSubscription', + 'id', + id, + ); + // verify required parameter 'mutationSubscriptionDeleteThreadSubscriptionRequest' is not null or undefined + assertParamExists( + 'mutationSubscriptionDeleteThreadSubscription', + 'mutationSubscriptionDeleteThreadSubscriptionRequest', + mutationSubscriptionDeleteThreadSubscriptionRequest, + ); + const localVarPath = + `/subscription/{id}/DeleteThreadSubscription`.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; + + // authentication Authorization required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationSubscriptionDeleteThreadSubscriptionRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionRegisterClientRegistrationToken: async ( + addressId: string, + id: number, + mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationSubscriptionRegisterClientRegistrationToken', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists( + 'mutationSubscriptionRegisterClientRegistrationToken', + 'id', + id, + ); + // verify required parameter 'mutationSubscriptionRegisterClientRegistrationTokenRequest' is not null or undefined + assertParamExists( + 'mutationSubscriptionRegisterClientRegistrationToken', + 'mutationSubscriptionRegisterClientRegistrationTokenRequest', + mutationSubscriptionRegisterClientRegistrationTokenRequest, + ); + const localVarPath = + `/subscription/{id}/RegisterClientRegistrationToken`.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; + + // authentication Authorization required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationSubscriptionRegisterClientRegistrationTokenRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionUnregisterClientRegistrationToken: async ( + addressId: string, + id: number, + mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationSubscriptionUnregisterClientRegistrationToken', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists( + 'mutationSubscriptionUnregisterClientRegistrationToken', + 'id', + id, + ); + // verify required parameter 'mutationSubscriptionRegisterClientRegistrationTokenRequest' is not null or undefined + assertParamExists( + 'mutationSubscriptionUnregisterClientRegistrationToken', + 'mutationSubscriptionRegisterClientRegistrationTokenRequest', + mutationSubscriptionRegisterClientRegistrationTokenRequest, + ); + const localVarPath = + `/subscription/{id}/UnregisterClientRegistrationToken`.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; + + // authentication Authorization required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationSubscriptionRegisterClientRegistrationTokenRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionUpdateSubscriptionPreferencesRequest} mutationSubscriptionUpdateSubscriptionPreferencesRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionUpdateSubscriptionPreferences: async ( + addressId: string, + id: number, + mutationSubscriptionUpdateSubscriptionPreferencesRequest: MutationSubscriptionUpdateSubscriptionPreferencesRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists( + 'mutationSubscriptionUpdateSubscriptionPreferences', + 'addressId', + addressId, + ); + // verify required parameter 'id' is not null or undefined + assertParamExists( + 'mutationSubscriptionUpdateSubscriptionPreferences', + 'id', + id, + ); + // verify required parameter 'mutationSubscriptionUpdateSubscriptionPreferencesRequest' is not null or undefined + assertParamExists( + 'mutationSubscriptionUpdateSubscriptionPreferences', + 'mutationSubscriptionUpdateSubscriptionPreferencesRequest', + mutationSubscriptionUpdateSubscriptionPreferencesRequest, + ); + const localVarPath = + `/subscription/{id}/UpdateSubscriptionPreferences`.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; + + // authentication Authorization required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + if (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationSubscriptionUpdateSubscriptionPreferencesRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * SubscriptionApi - functional programming interface + * @export + */ +export const SubscriptionApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + SubscriptionApiAxiosParamCreator(configuration); + return { + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionCreateCommentSubscriptionRequest} mutationSubscriptionCreateCommentSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationSubscriptionCreateCommentSubscription( + addressId: string, + id: number, + mutationSubscriptionCreateCommentSubscriptionRequest: MutationSubscriptionCreateCommentSubscriptionRequest, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationSubscriptionCreateCommentSubscription( + addressId, + id, + mutationSubscriptionCreateCommentSubscriptionRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'SubscriptionApi.mutationSubscriptionCreateCommentSubscription' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionCreateCommunityAlertRequest} mutationSubscriptionCreateCommunityAlertRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationSubscriptionCreateCommunityAlert( + addressId: string, + id: number, + mutationSubscriptionCreateCommunityAlertRequest: MutationSubscriptionCreateCommunityAlertRequest, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationSubscriptionCreateCommunityAlert( + addressId, + id, + mutationSubscriptionCreateCommunityAlertRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'SubscriptionApi.mutationSubscriptionCreateCommunityAlert' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionCreateThreadSubscriptionRequest} mutationSubscriptionCreateThreadSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationSubscriptionCreateThreadSubscription( + addressId: string, + id: number, + mutationSubscriptionCreateThreadSubscriptionRequest: MutationSubscriptionCreateThreadSubscriptionRequest, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationSubscriptionCreateThreadSubscription( + addressId, + id, + mutationSubscriptionCreateThreadSubscriptionRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'SubscriptionApi.mutationSubscriptionCreateThreadSubscription' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionDeleteCommentSubscriptionRequest} mutationSubscriptionDeleteCommentSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationSubscriptionDeleteCommentSubscription( + addressId: string, + id: number, + mutationSubscriptionDeleteCommentSubscriptionRequest: MutationSubscriptionDeleteCommentSubscriptionRequest, + options?: RawAxiosRequestConfig, + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationSubscriptionDeleteCommentSubscription( + addressId, + id, + mutationSubscriptionDeleteCommentSubscriptionRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'SubscriptionApi.mutationSubscriptionDeleteCommentSubscription' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionDeleteCommunityAlertRequest} mutationSubscriptionDeleteCommunityAlertRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationSubscriptionDeleteCommunityAlert( + addressId: string, + id: number, + mutationSubscriptionDeleteCommunityAlertRequest: MutationSubscriptionDeleteCommunityAlertRequest, + options?: RawAxiosRequestConfig, + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationSubscriptionDeleteCommunityAlert( + addressId, + id, + mutationSubscriptionDeleteCommunityAlertRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'SubscriptionApi.mutationSubscriptionDeleteCommunityAlert' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionDeleteThreadSubscriptionRequest} mutationSubscriptionDeleteThreadSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationSubscriptionDeleteThreadSubscription( + addressId: string, + id: number, + mutationSubscriptionDeleteThreadSubscriptionRequest: MutationSubscriptionDeleteThreadSubscriptionRequest, + options?: RawAxiosRequestConfig, + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationSubscriptionDeleteThreadSubscription( + addressId, + id, + mutationSubscriptionDeleteThreadSubscriptionRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'SubscriptionApi.mutationSubscriptionDeleteThreadSubscription' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationSubscriptionRegisterClientRegistrationToken( + addressId: string, + id: number, + mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + options?: RawAxiosRequestConfig, + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationSubscriptionRegisterClientRegistrationToken( + addressId, + id, + mutationSubscriptionRegisterClientRegistrationTokenRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'SubscriptionApi.mutationSubscriptionRegisterClientRegistrationToken' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationSubscriptionUnregisterClientRegistrationToken( + addressId: string, + id: number, + mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + options?: RawAxiosRequestConfig, + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationSubscriptionUnregisterClientRegistrationToken( + addressId, + id, + mutationSubscriptionRegisterClientRegistrationTokenRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'SubscriptionApi.mutationSubscriptionUnregisterClientRegistrationToken' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionUpdateSubscriptionPreferencesRequest} mutationSubscriptionUpdateSubscriptionPreferencesRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationSubscriptionUpdateSubscriptionPreferences( + addressId: string, + id: number, + mutationSubscriptionUpdateSubscriptionPreferencesRequest: MutationSubscriptionUpdateSubscriptionPreferencesRequest, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationSubscriptionUpdateSubscriptionPreferences( + addressId, + id, + mutationSubscriptionUpdateSubscriptionPreferencesRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + 'SubscriptionApi.mutationSubscriptionUpdateSubscriptionPreferences' + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + }; +}; + +/** + * SubscriptionApi - factory interface + * @export + */ +export const SubscriptionApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = SubscriptionApiFp(configuration); + return { + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionCreateCommentSubscriptionRequest} mutationSubscriptionCreateCommentSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionCreateCommentSubscription( + addressId: string, + id: number, + mutationSubscriptionCreateCommentSubscriptionRequest: MutationSubscriptionCreateCommentSubscriptionRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationSubscriptionCreateCommentSubscription( + addressId, + id, + mutationSubscriptionCreateCommentSubscriptionRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionCreateCommunityAlertRequest} mutationSubscriptionCreateCommunityAlertRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionCreateCommunityAlert( + addressId: string, + id: number, + mutationSubscriptionCreateCommunityAlertRequest: MutationSubscriptionCreateCommunityAlertRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationSubscriptionCreateCommunityAlert( + addressId, + id, + mutationSubscriptionCreateCommunityAlertRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionCreateThreadSubscriptionRequest} mutationSubscriptionCreateThreadSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionCreateThreadSubscription( + addressId: string, + id: number, + mutationSubscriptionCreateThreadSubscriptionRequest: MutationSubscriptionCreateThreadSubscriptionRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationSubscriptionCreateThreadSubscription( + addressId, + id, + mutationSubscriptionCreateThreadSubscriptionRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionDeleteCommentSubscriptionRequest} mutationSubscriptionDeleteCommentSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionDeleteCommentSubscription( + addressId: string, + id: number, + mutationSubscriptionDeleteCommentSubscriptionRequest: MutationSubscriptionDeleteCommentSubscriptionRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationSubscriptionDeleteCommentSubscription( + addressId, + id, + mutationSubscriptionDeleteCommentSubscriptionRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionDeleteCommunityAlertRequest} mutationSubscriptionDeleteCommunityAlertRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionDeleteCommunityAlert( + addressId: string, + id: number, + mutationSubscriptionDeleteCommunityAlertRequest: MutationSubscriptionDeleteCommunityAlertRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationSubscriptionDeleteCommunityAlert( + addressId, + id, + mutationSubscriptionDeleteCommunityAlertRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionDeleteThreadSubscriptionRequest} mutationSubscriptionDeleteThreadSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionDeleteThreadSubscription( + addressId: string, + id: number, + mutationSubscriptionDeleteThreadSubscriptionRequest: MutationSubscriptionDeleteThreadSubscriptionRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationSubscriptionDeleteThreadSubscription( + addressId, + id, + mutationSubscriptionDeleteThreadSubscriptionRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionRegisterClientRegistrationToken( + addressId: string, + id: number, + mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationSubscriptionRegisterClientRegistrationToken( + addressId, + id, + mutationSubscriptionRegisterClientRegistrationTokenRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionUnregisterClientRegistrationToken( + addressId: string, + id: number, + mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationSubscriptionUnregisterClientRegistrationToken( + addressId, + id, + mutationSubscriptionRegisterClientRegistrationTokenRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionUpdateSubscriptionPreferencesRequest} mutationSubscriptionUpdateSubscriptionPreferencesRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationSubscriptionUpdateSubscriptionPreferences( + addressId: string, + id: number, + mutationSubscriptionUpdateSubscriptionPreferencesRequest: MutationSubscriptionUpdateSubscriptionPreferencesRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationSubscriptionUpdateSubscriptionPreferences( + addressId, + id, + mutationSubscriptionUpdateSubscriptionPreferencesRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * SubscriptionApi - object-oriented interface + * @export + * @class SubscriptionApi + * @extends {BaseAPI} + */ +export class SubscriptionApi extends BaseAPI { + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionCreateCommentSubscriptionRequest} mutationSubscriptionCreateCommentSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubscriptionApi + */ + public mutationSubscriptionCreateCommentSubscription( + addressId: string, + id: number, + mutationSubscriptionCreateCommentSubscriptionRequest: MutationSubscriptionCreateCommentSubscriptionRequest, + options?: RawAxiosRequestConfig, + ) { + return SubscriptionApiFp(this.configuration) + .mutationSubscriptionCreateCommentSubscription( + addressId, + id, + mutationSubscriptionCreateCommentSubscriptionRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionCreateCommunityAlertRequest} mutationSubscriptionCreateCommunityAlertRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubscriptionApi + */ + public mutationSubscriptionCreateCommunityAlert( + addressId: string, + id: number, + mutationSubscriptionCreateCommunityAlertRequest: MutationSubscriptionCreateCommunityAlertRequest, + options?: RawAxiosRequestConfig, + ) { + return SubscriptionApiFp(this.configuration) + .mutationSubscriptionCreateCommunityAlert( + addressId, + id, + mutationSubscriptionCreateCommunityAlertRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionCreateThreadSubscriptionRequest} mutationSubscriptionCreateThreadSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubscriptionApi + */ + public mutationSubscriptionCreateThreadSubscription( + addressId: string, + id: number, + mutationSubscriptionCreateThreadSubscriptionRequest: MutationSubscriptionCreateThreadSubscriptionRequest, + options?: RawAxiosRequestConfig, + ) { + return SubscriptionApiFp(this.configuration) + .mutationSubscriptionCreateThreadSubscription( + addressId, + id, + mutationSubscriptionCreateThreadSubscriptionRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionDeleteCommentSubscriptionRequest} mutationSubscriptionDeleteCommentSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubscriptionApi + */ + public mutationSubscriptionDeleteCommentSubscription( + addressId: string, + id: number, + mutationSubscriptionDeleteCommentSubscriptionRequest: MutationSubscriptionDeleteCommentSubscriptionRequest, + options?: RawAxiosRequestConfig, + ) { + return SubscriptionApiFp(this.configuration) + .mutationSubscriptionDeleteCommentSubscription( + addressId, + id, + mutationSubscriptionDeleteCommentSubscriptionRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionDeleteCommunityAlertRequest} mutationSubscriptionDeleteCommunityAlertRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubscriptionApi + */ + public mutationSubscriptionDeleteCommunityAlert( + addressId: string, + id: number, + mutationSubscriptionDeleteCommunityAlertRequest: MutationSubscriptionDeleteCommunityAlertRequest, + options?: RawAxiosRequestConfig, + ) { + return SubscriptionApiFp(this.configuration) + .mutationSubscriptionDeleteCommunityAlert( + addressId, + id, + mutationSubscriptionDeleteCommunityAlertRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionDeleteThreadSubscriptionRequest} mutationSubscriptionDeleteThreadSubscriptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubscriptionApi + */ + public mutationSubscriptionDeleteThreadSubscription( + addressId: string, + id: number, + mutationSubscriptionDeleteThreadSubscriptionRequest: MutationSubscriptionDeleteThreadSubscriptionRequest, + options?: RawAxiosRequestConfig, + ) { + return SubscriptionApiFp(this.configuration) + .mutationSubscriptionDeleteThreadSubscription( + addressId, + id, + mutationSubscriptionDeleteThreadSubscriptionRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubscriptionApi + */ + public mutationSubscriptionRegisterClientRegistrationToken( + addressId: string, + id: number, + mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + options?: RawAxiosRequestConfig, + ) { + return SubscriptionApiFp(this.configuration) + .mutationSubscriptionRegisterClientRegistrationToken( + addressId, + id, + mutationSubscriptionRegisterClientRegistrationTokenRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubscriptionApi + */ + public mutationSubscriptionUnregisterClientRegistrationToken( + addressId: string, + id: number, + mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + options?: RawAxiosRequestConfig, + ) { + return SubscriptionApiFp(this.configuration) + .mutationSubscriptionUnregisterClientRegistrationToken( + addressId, + id, + mutationSubscriptionRegisterClientRegistrationTokenRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationSubscriptionUpdateSubscriptionPreferencesRequest} mutationSubscriptionUpdateSubscriptionPreferencesRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SubscriptionApi + */ + public mutationSubscriptionUpdateSubscriptionPreferences( + addressId: string, + id: number, + mutationSubscriptionUpdateSubscriptionPreferencesRequest: MutationSubscriptionUpdateSubscriptionPreferencesRequest, + options?: RawAxiosRequestConfig, + ) { + return SubscriptionApiFp(this.configuration) + .mutationSubscriptionUpdateSubscriptionPreferences( + addressId, + id, + mutationSubscriptionUpdateSubscriptionPreferencesRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * UserApi - axios parameter creator + * @export + */ +export const UserApiAxiosParamCreator = function ( + configuration?: Configuration, +) { + return { + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationUserUpdateUserRequest} mutationUserUpdateUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationUserUpdateUser: async ( + addressId: string, + id: number, + mutationUserUpdateUserRequest: MutationUserUpdateUserRequest, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'addressId' is not null or undefined + assertParamExists('mutationUserUpdateUser', 'addressId', addressId); + // verify required parameter 'id' is not null or undefined + assertParamExists('mutationUserUpdateUser', 'id', id); + // verify required parameter 'mutationUserUpdateUserRequest' is not null or undefined + assertParamExists( + 'mutationUserUpdateUser', + 'mutationUserUpdateUserRequest', + mutationUserUpdateUserRequest, + ); + const localVarPath = `/user/{id}/UpdateUser`.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 (addressId != null) { + localVarHeaderParameter['address_id'] = String(addressId); + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + mutationUserUpdateUserRequest, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * UserApi - functional programming interface + * @export + */ +export const UserApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration); + return { + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationUserUpdateUserRequest} mutationUserUpdateUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async mutationUserUpdateUser( + addressId: string, + id: number, + mutationUserUpdateUserRequest: MutationUserUpdateUserRequest, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.mutationUserUpdateUser( + addressId, + id, + mutationUserUpdateUserRequest, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap['UserApi.mutationUserUpdateUser']?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + }; +}; + +/** + * UserApi - factory interface + * @export + */ +export const UserApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = UserApiFp(configuration); + return { + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationUserUpdateUserRequest} mutationUserUpdateUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + mutationUserUpdateUser( + addressId: string, + id: number, + mutationUserUpdateUserRequest: MutationUserUpdateUserRequest, + options?: any, + ): AxiosPromise { + return localVarFp + .mutationUserUpdateUser( + addressId, + id, + mutationUserUpdateUserRequest, + options, + ) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * UserApi - object-oriented interface + * @export + * @class UserApi + * @extends {BaseAPI} + */ +export class UserApi extends BaseAPI { + /** + * + * @param {string} addressId + * @param {number} id + * @param {MutationUserUpdateUserRequest} mutationUserUpdateUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public mutationUserUpdateUser( + addressId: string, + id: number, + mutationUserUpdateUserRequest: MutationUserUpdateUserRequest, + options?: RawAxiosRequestConfig, + ) { + return UserApiFp(this.configuration) + .mutationUserUpdateUser( + addressId, + id, + mutationUserUpdateUserRequest, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } +} diff --git a/libs/api-client/src/base.ts b/libs/api-client/src/base.ts new file mode 100644 index 00000000000..1f3292033ca --- /dev/null +++ b/libs/api-client/src/base.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Common API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import type { Configuration } from './configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import type { AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; + +export const BASE_PATH = 'http://localhost:3000/api/v1/rest'.replace( + /\/+$/, + '', +); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ',', + ssv: ' ', + tsv: '\t', + pipes: '|', +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: RawAxiosRequestConfig; +} + +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + protected configuration: Configuration | undefined; + + constructor( + configuration?: Configuration, + protected basePath: string = BASE_PATH, + protected axios: AxiosInstance = globalAxios, + ) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath ?? basePath; + } + } +} + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + constructor(public field: string, msg?: string) { + super(msg); + this.name = 'RequiredError'; + } +} + +interface ServerMap { + [key: string]: { + url: string; + description: string; + }[]; +} + +/** + * + * @export + */ +export const operationServerMap: ServerMap = {}; diff --git a/libs/api-client/src/common.ts b/libs/api-client/src/common.ts new file mode 100644 index 00000000000..c3a2a992842 --- /dev/null +++ b/libs/api-client/src/common.ts @@ -0,0 +1,202 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Common API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import type { AxiosInstance, AxiosResponse } from 'axios'; +import type { RequestArgs } from './base'; +import { RequiredError } from './base'; +import type { Configuration } from './configuration'; + +/** + * + * @export + */ +export const DUMMY_BASE_URL = 'https://example.com'; + +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function ( + functionName: string, + paramName: string, + paramValue: unknown, +) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError( + paramName, + `Required parameter ${paramName} was null or undefined when calling ${functionName}.`, + ); + } +}; + +/** + * + * @export + */ +export const setApiKeyToObject = async function ( + object: any, + keyParamName: string, + configuration?: Configuration, +) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = + typeof configuration.apiKey === 'function' + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +}; + +/** + * + * @export + */ +export const setBasicAuthToObject = function ( + object: any, + configuration?: Configuration, +) { + if (configuration && (configuration.username || configuration.password)) { + object['auth'] = { + username: configuration.username, + password: configuration.password, + }; + } +}; + +/** + * + * @export + */ +export const setBearerAuthToObject = async function ( + object: any, + configuration?: Configuration, +) { + if (configuration && configuration.accessToken) { + const accessToken = + typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + object['Authorization'] = 'Bearer ' + accessToken; + } +}; + +/** + * + * @export + */ +export const setOAuthToObject = async function ( + object: any, + name: string, + scopes: string[], + configuration?: Configuration, +) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = + typeof configuration.accessToken === 'function' + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object['Authorization'] = 'Bearer ' + localVarAccessTokenValue; + } +}; + +function setFlattenedQueryParams( + urlSearchParams: URLSearchParams, + parameter: any, + key: string = '', +): void { + if (parameter == null) return; + if (typeof parameter === 'object') { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach((item) => + setFlattenedQueryParams(urlSearchParams, item, key), + ); + } else { + Object.keys(parameter).forEach((currentKey) => + setFlattenedQueryParams( + urlSearchParams, + parameter[currentKey], + `${key}${key !== '' ? '.' : ''}${currentKey}`, + ), + ); + } + } else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } else { + urlSearchParams.set(key, parameter); + } + } +} + +/** + * + * @export + */ +export const setSearchParams = function (url: URL, ...objects: any[]) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +}; + +/** + * + * @export + */ +export const serializeDataIfNeeded = function ( + value: any, + requestOptions: any, + configuration?: Configuration, +) { + const nonString = typeof value !== 'string'; + const needsSerialization = + nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : value || ''; +}; + +/** + * + * @export + */ +export const toPathString = function (url: URL) { + return url.pathname + url.search + url.hash; +}; + +/** + * + * @export + */ +export const createRequestFunction = function ( + axiosArgs: RequestArgs, + globalAxios: AxiosInstance, + BASE_PATH: string, + configuration?: Configuration, +) { + return >( + axios: AxiosInstance = globalAxios, + basePath: string = BASE_PATH, + ) => { + const axiosRequestArgs = { + ...axiosArgs.options, + url: + (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + + axiosArgs.url, + }; + return axios.request(axiosRequestArgs); + }; +}; diff --git a/libs/api-client/src/configuration.ts b/libs/api-client/src/configuration.ts new file mode 100644 index 00000000000..cec6f306383 --- /dev/null +++ b/libs/api-client/src/configuration.ts @@ -0,0 +1,132 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Common API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export interface ConfigurationParameters { + apiKey?: + | string + | Promise + | ((name: string) => string) + | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: + | string + | Promise + | ((name?: string, scopes?: string[]) => string) + | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + serverIndex?: number; + baseOptions?: any; + formDataCtor?: new () => any; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: + | string + | Promise + | ((name: string) => string) + | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: + | string + | Promise + | ((name?: string, scopes?: string[]) => string) + | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.serverIndex = param.serverIndex; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp( + '^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$', + 'i', + ); + return ( + mime !== null && + (jsonMime.test(mime) || + mime.toLowerCase() === 'application/json-patch+json') + ); + } +} diff --git a/libs/api-client/src/git_push.sh b/libs/api-client/src/git_push.sh new file mode 100644 index 00000000000..f53a75d4fab --- /dev/null +++ b/libs/api-client/src/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/libs/api-client/src/index.ts b/libs/api-client/src/index.ts new file mode 100644 index 00000000000..f6043989137 --- /dev/null +++ b/libs/api-client/src/index.ts @@ -0,0 +1,16 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Common API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export * from './api'; +export * from './configuration'; diff --git a/libs/api-client/test/index.ts b/libs/api-client/test/index.ts new file mode 100644 index 00000000000..e252aacf2de --- /dev/null +++ b/libs/api-client/test/index.ts @@ -0,0 +1,24 @@ +// Quick and dirty api-client test +import { Configuration, QueryApi } from '@hicommonwealth/api-client'; + +async function main() { + const config = new Configuration({ + accessToken: '', + basePath: 'http://localhost:8080/api/v1/rest', + }); + + const client = new QueryApi(config); + const members = await client.queryCommunityGetMembers( + 'sushi', + undefined, + 10, + 1, + 'last_active', + 'DESC', + undefined, + true, + ); + console.log(members.data.results); +} + +void main(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 77c2b178d45..cbfc3d780fd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -415,6 +415,19 @@ importers: specifier: ^4.7.2 version: 4.9.3 + libs/api-client: + dependencies: + axios: + specifier: ^1.3.4 + version: 1.6.8 + devDependencies: + '@openapitools/openapi-generator-cli': + specifier: ^2.13.4 + version: 2.13.4 + tsx: + specifier: ^4.7.2 + version: 4.9.3 + libs/chains: dependencies: '@cosmjs/amino': @@ -3675,6 +3688,13 @@ packages: } engines: { node: '>= 0.4' } + '@lukeed/csprng@1.1.0': + resolution: + { + integrity: sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==, + } + engines: { node: '>=8' } + '@magic-ext/cosmos@12.4.0': resolution: { @@ -3848,6 +3868,52 @@ packages: integrity: sha512-qUP24ZgYXnyZs0lpYBvPg8Jyn3KFOJFH3a3tAcupulYIVQpR+3/fbaAZp4dYUJxBIDTOfEIpvPKm0DOFxbCDKw==, } + '@nestjs/axios@3.0.2': + resolution: + { + integrity: sha512-Z6GuOUdNQjP7FX+OuV2Ybyamse+/e0BFdTWBX5JxpBDKA+YkdLynDgG6HTF04zy6e9zPa19UX0WA2VDoehwhXQ==, + } + peerDependencies: + '@nestjs/common': ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 + axios: ^1.3.1 + rxjs: ^6.0.0 || ^7.0.0 + + '@nestjs/common@10.3.0': + resolution: + { + integrity: sha512-DGv34UHsZBxCM3H5QGE2XE/+oLJzz5+714JQjBhjD9VccFlQs3LRxo/epso4l7nJIiNlZkPyIUC8WzfU/5RTsQ==, + } + peerDependencies: + class-transformer: '*' + class-validator: '*' + reflect-metadata: ^0.1.12 + rxjs: ^7.1.0 + peerDependenciesMeta: + class-transformer: + optional: true + class-validator: + optional: true + + '@nestjs/core@10.3.0': + resolution: + { + integrity: sha512-N06P5ncknW/Pm8bj964WvLIZn2gNhHliCBoAO1LeBvNImYkecqKcrmLbY49Fa1rmMfEM3MuBHeDys3edeuYAOA==, + } + peerDependencies: + '@nestjs/common': ^10.0.0 + '@nestjs/microservices': ^10.0.0 + '@nestjs/platform-express': ^10.0.0 + '@nestjs/websockets': ^10.0.0 + reflect-metadata: ^0.1.12 + rxjs: ^7.1.0 + peerDependenciesMeta: + '@nestjs/microservices': + optional: true + '@nestjs/platform-express': + optional: true + '@nestjs/websockets': + optional: true + '@noble/curves@1.2.0': resolution: { @@ -4134,12 +4200,28 @@ packages: ethers: ^5.0.0 hardhat: ^2.0.0 + '@nuxtjs/opencollective@0.3.2': + resolution: + { + integrity: sha512-um0xL3fO7Mf4fDxcqx9KryrB7zgRM5JSlvGN5AGkP6JLM5XEKyjeAiPbNxdXVXQ16isuAhYpvP88NgL2BGd6aA==, + } + engines: { node: '>=8.0.0', npm: '>=5.0.0' } + hasBin: true + '@one-ini/wasm@0.1.1': resolution: { integrity: sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==, } + '@openapitools/openapi-generator-cli@2.13.4': + resolution: + { + integrity: sha512-4JKyrk55ohQK2FcuZbPdNvxdyXD14jjOIvE8hYjJ+E1cHbRbfXQXbYnjTODFE52Gx8eAxz8C9icuhDYDLn7nww==, + } + engines: { node: '>=10.0.0' } + hasBin: true + '@openfeature/core@1.1.0': resolution: { @@ -8732,6 +8814,12 @@ packages: integrity: sha512-kqTg3WWywappJPqtgrdvbA380VoXO2eu9VCV895JgbyHsaErXdyHK9LOZ911OvAk6L0obK7kDk9CGs8+oBawVA==, } + chardet@0.7.0: + resolution: + { + integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==, + } + charset@1.0.1: resolution: { @@ -8839,6 +8927,13 @@ packages: } engines: { node: '>=0.10' } + cli-cursor@3.1.0: + resolution: + { + integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==, + } + engines: { node: '>=8' } + cli-cursor@4.0.0: resolution: { @@ -8853,6 +8948,13 @@ packages: } engines: { node: '>=6' } + cli-width@3.0.0: + resolution: + { + integrity: sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==, + } + engines: { node: '>= 10' } + client-only@0.0.1: resolution: { @@ -9035,6 +9137,12 @@ packages: integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==, } + compare-versions@4.1.4: + resolution: + { + integrity: sha512-FemMreK9xNyL8gQevsdRMrvO4lFCkQP7qbuktn1q8ndcNk1+0mz7lgE7b/sNvbhVgY4w6tMN1FDp6aADjqw2rw==, + } + component-emitter@1.3.1: resolution: { @@ -9068,6 +9176,14 @@ packages: } engines: { '0': node >= 0.8 } + concurrently@6.5.1: + resolution: + { + integrity: sha512-FlSwNpGjWQfRwPLXvJ/OgysbBxPkWpiVjy1042b0U7on7S7qwwMIILRj7WTN1mTgqa582bG6NFuScOoh6Zgdag==, + } + engines: { node: '>=10.0.0' } + hasBin: true + concurrently@7.6.0: resolution: { @@ -9129,6 +9245,13 @@ packages: integrity: sha512-w+JSDZS7XML43Xnwo2x5O5vxB0ID7T5BdqDtyqT6uiCAX2kZAgcWxNaGqT97tZfSHzfOcvrfsDAodKcJ3UvnXQ==, } + console.table@0.10.0: + resolution: + { + integrity: sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g==, + } + engines: { node: '> 0.10' } + constants-browserify@1.0.0: resolution: { @@ -9996,6 +10119,12 @@ packages: integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==, } + easy-table@1.1.0: + resolution: + { + integrity: sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA==, + } + ecc-jsbn@0.1.2: resolution: { @@ -10788,6 +10917,13 @@ packages: integrity: sha512-40F6zThJu1MxaT1A1pJ/2SHlU1BPYYnQNHt0j2ZlPuxxm2ddMcNc1D7uS/LGc4K3VwMEMaZLkCdHWaKk0LnQXA==, } + external-editor@3.1.0: + resolution: + { + integrity: sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==, + } + engines: { node: '>=4' } + extsprintf@1.3.0: resolution: { @@ -10941,6 +11077,13 @@ packages: integrity: sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA==, } + figures@3.2.0: + resolution: + { + integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==, + } + engines: { node: '>=8' } + figures@6.1.0: resolution: { @@ -11447,6 +11590,7 @@ packages: { integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==, } + deprecated: Glob versions prior to v9 are no longer supported glob@8.1.0: resolution: @@ -11454,6 +11598,7 @@ packages: integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==, } engines: { node: '>=12' } + deprecated: Glob versions prior to v9 are no longer supported global-directory@4.0.1: resolution: @@ -11901,6 +12046,13 @@ packages: } engines: { node: '>= 6' } + https-proxy-agent@7.0.4: + resolution: + { + integrity: sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==, + } + engines: { node: '>= 14' } + https-proxy-agent@7.0.5: resolution: { @@ -12066,6 +12218,7 @@ packages: { integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==, } + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. inherits@2.0.4: resolution: @@ -12086,6 +12239,13 @@ packages: } engines: { node: ^14.17.0 || ^16.13.0 || >=18.0.0 } + inquirer@8.2.6: + resolution: + { + integrity: sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==, + } + engines: { node: '>=12.0.0' } + interface-datastore@8.2.11: resolution: { @@ -12325,6 +12485,13 @@ packages: } engines: { node: '>=18' } + is-interactive@1.0.0: + resolution: + { + integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==, + } + engines: { node: '>=8' } + is-interactive@2.0.0: resolution: { @@ -12733,6 +12900,13 @@ packages: } engines: { node: '>=16.0.0', npm: '>=7.0.0' } + iterare@1.2.1: + resolution: + { + integrity: sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==, + } + engines: { node: '>=6' } + iterator.prototype@1.1.2: resolution: { @@ -13987,6 +14161,12 @@ packages: integrity: sha512-HoMUjhH9T8DDBNT+6xzkrd9ga/XiBI4xLr58LJACwK6G3HTOPeMz4nB4KJs33L2BelrIJa7P0VuNaVF3hMYfjg==, } + mute-stream@0.0.8: + resolution: + { + integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==, + } + mylas@2.1.13: resolution: { @@ -14472,6 +14652,13 @@ packages: } engines: { node: '>= 0.8.0' } + ora@5.4.1: + resolution: + { + integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==, + } + engines: { node: '>=10' } + ora@6.3.1: resolution: { @@ -14842,6 +15029,12 @@ packages: integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==, } + path-to-regexp@3.2.0: + resolution: + { + integrity: sha512-jczvQbCUS7XmS7o+y1aEO9OBVFeZBQ1MDSEqmO7xSoPgOPoowY/SxLpZ6Vh97/8qHZOteiCKb7gkG9gA2ZUxJA==, + } + path-to-regexp@6.2.2: resolution: { @@ -16104,6 +16297,12 @@ packages: integrity: sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==, } + reflect-metadata@0.1.13: + resolution: + { + integrity: sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg==, + } + reflect.getprototypeof@1.0.6: resolution: { @@ -16245,6 +16444,13 @@ packages: } engines: { node: '>=0.8' } + restore-cursor@3.1.0: + resolution: + { + integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==, + } + engines: { node: '>=8' } + restore-cursor@4.0.0: resolution: { @@ -16375,6 +16581,13 @@ packages: integrity: sha512-wEHUILbxDPcNwkM3m4qgPgXAiBJyqCbbOHyVoNEVBJzHszWEFYyTbrZqUdeb1EfmTRC2PsumCIkVcomJ/xcOzA==, } + run-async@2.4.1: + resolution: + { + integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==, + } + engines: { node: '>=0.12.0' } + run-parallel@1.2.0: resolution: { @@ -16387,6 +16600,13 @@ packages: integrity: sha512-6cJzSBU+J/RJCF063onnQf0cDUOHs9uZI1oroSGnHOph+CQTIJ5Pp2hK5kEQq1+7yE/EEWfulSNXAQ2jikPthA==, } + rxjs@6.6.7: + resolution: + { + integrity: sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==, + } + engines: { npm: '>=2.0.0' } + rxjs@7.8.1: resolution: { @@ -18105,6 +18325,13 @@ packages: } engines: { node: '>= 0.8' } + uid@2.0.2: + resolution: + { + integrity: sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==, + } + engines: { node: '>=8' } + uint8-varint@2.0.4: resolution: { @@ -21577,6 +21804,8 @@ snapshots: dependencies: call-bind: 1.0.7 + '@lukeed/csprng@1.1.0': {} + '@magic-ext/cosmos@12.4.0': {} '@magic-ext/oauth@11.4.0': @@ -21737,6 +21966,34 @@ snapshots: uint8-varint: 2.0.4 uint8arrays: 5.0.3 + '@nestjs/axios@3.0.2(@nestjs/common@10.3.0(reflect-metadata@0.1.13)(rxjs@7.8.1))(axios@1.6.8)(rxjs@7.8.1)': + dependencies: + '@nestjs/common': 10.3.0(reflect-metadata@0.1.13)(rxjs@7.8.1) + axios: 1.6.8 + rxjs: 7.8.1 + + '@nestjs/common@10.3.0(reflect-metadata@0.1.13)(rxjs@7.8.1)': + dependencies: + iterare: 1.2.1 + reflect-metadata: 0.1.13 + rxjs: 7.8.1 + tslib: 2.6.2 + uid: 2.0.2 + + '@nestjs/core@10.3.0(@nestjs/common@10.3.0(reflect-metadata@0.1.13)(rxjs@7.8.1))(reflect-metadata@0.1.13)(rxjs@7.8.1)': + dependencies: + '@nestjs/common': 10.3.0(reflect-metadata@0.1.13)(rxjs@7.8.1) + '@nuxtjs/opencollective': 0.3.2 + fast-safe-stringify: 2.1.1 + iterare: 1.2.1 + path-to-regexp: 3.2.0 + reflect-metadata: 0.1.13 + rxjs: 7.8.1 + tslib: 2.6.2 + uid: 2.0.2 + transitivePeerDependencies: + - encoding + '@noble/curves@1.2.0': dependencies: '@noble/hashes': 1.3.2 @@ -21870,8 +22127,46 @@ snapshots: ethers: 5.7.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) hardhat: 2.22.3(bufferutil@4.0.8)(ts-node@10.9.2(@swc/core@1.5.25)(@types/node@20.12.10)(typescript@5.4.5))(typescript@5.4.5)(utf-8-validate@5.0.10) + '@nuxtjs/opencollective@0.3.2': + dependencies: + chalk: 4.1.2 + consola: 2.15.3 + node-fetch: 2.7.0 + transitivePeerDependencies: + - encoding + '@one-ini/wasm@0.1.1': {} + '@openapitools/openapi-generator-cli@2.13.4': + dependencies: + '@nestjs/axios': 3.0.2(@nestjs/common@10.3.0(reflect-metadata@0.1.13)(rxjs@7.8.1))(axios@1.6.8)(rxjs@7.8.1) + '@nestjs/common': 10.3.0(reflect-metadata@0.1.13)(rxjs@7.8.1) + '@nestjs/core': 10.3.0(@nestjs/common@10.3.0(reflect-metadata@0.1.13)(rxjs@7.8.1))(reflect-metadata@0.1.13)(rxjs@7.8.1) + '@nuxtjs/opencollective': 0.3.2 + axios: 1.6.8 + chalk: 4.1.2 + commander: 8.3.0 + compare-versions: 4.1.4 + concurrently: 6.5.1 + console.table: 0.10.0 + fs-extra: 10.1.0 + glob: 7.2.3 + https-proxy-agent: 7.0.4 + inquirer: 8.2.6 + lodash: 4.17.21 + reflect-metadata: 0.1.13 + rxjs: 7.8.1 + tslib: 2.6.2 + transitivePeerDependencies: + - '@nestjs/microservices' + - '@nestjs/platform-express' + - '@nestjs/websockets' + - class-transformer + - class-validator + - debug + - encoding + - supports-color + '@openfeature/core@1.1.0': {} '@openfeature/react-sdk@0.1.1-experimental(@openfeature/web-sdk@1.0.3(@openfeature/core@1.1.0))(react@18.3.1)': @@ -25436,6 +25731,8 @@ snapshots: chance@1.1.11: {} + chardet@0.7.0: {} + charset@1.0.1: {} check-error@1.0.3: @@ -25512,12 +25809,18 @@ snapshots: memoizee: 0.4.15 timers-ext: 0.1.7 + cli-cursor@3.1.0: + dependencies: + restore-cursor: 3.1.0 + cli-cursor@4.0.0: dependencies: restore-cursor: 4.0.0 cli-spinners@2.9.2: {} + cli-width@3.0.0: {} + client-only@0.0.1: {} clipboardy@4.0.0: @@ -25611,6 +25914,8 @@ snapshots: commondir@1.0.1: {} + compare-versions@4.1.4: {} + component-emitter@1.3.1: {} compressible@2.0.18: @@ -25638,6 +25943,17 @@ snapshots: readable-stream: 2.3.8 typedarray: 0.0.6 + concurrently@6.5.1: + dependencies: + chalk: 4.1.2 + date-fns: 2.30.0 + lodash: 4.17.21 + rxjs: 6.6.7 + spawn-command: 0.0.2-1 + supports-color: 8.1.1 + tree-kill: 1.2.2 + yargs: 16.2.0 + concurrently@7.6.0: dependencies: chalk: 4.1.2 @@ -25674,6 +25990,10 @@ snapshots: console-polyfill@0.3.0: {} + console.table@0.10.0: + dependencies: + easy-table: 1.1.0 + constants-browserify@1.0.0: {} content-disposition@0.5.4: @@ -26214,6 +26534,10 @@ snapshots: eastasianwidth@0.2.0: {} + easy-table@1.1.0: + optionalDependencies: + wcwidth: 1.0.1 + ecc-jsbn@0.1.2: dependencies: jsbn: 0.1.1 @@ -26999,6 +27323,12 @@ snapshots: extensionless@1.9.6: {} + external-editor@3.1.0: + dependencies: + chardet: 0.7.0 + iconv-lite: 0.4.24 + tmp: 0.0.33 + extsprintf@1.3.0: {} eyes@0.1.8: {} @@ -27078,6 +27408,10 @@ snapshots: fflate@0.4.8: {} + figures@3.2.0: + dependencies: + escape-string-regexp: 1.0.5 + figures@6.1.0: dependencies: is-unicode-supported: 2.0.0 @@ -27741,6 +28075,13 @@ snapshots: transitivePeerDependencies: - supports-color + https-proxy-agent@7.0.4: + dependencies: + agent-base: 7.1.1 + debug: 4.3.5 + transitivePeerDependencies: + - supports-color + https-proxy-agent@7.0.5: dependencies: agent-base: 7.1.1 @@ -27819,6 +28160,24 @@ snapshots: ini@4.1.1: {} + inquirer@8.2.6: + dependencies: + ansi-escapes: 4.3.2 + chalk: 4.1.2 + cli-cursor: 3.1.0 + cli-width: 3.0.0 + external-editor: 3.1.0 + figures: 3.2.0 + lodash: 4.17.21 + mute-stream: 0.0.8 + ora: 5.4.1 + run-async: 2.4.1 + rxjs: 7.8.1 + string-width: 4.2.3 + strip-ansi: 6.0.1 + through: 2.3.8 + wrap-ansi: 6.2.0 + interface-datastore@8.2.11: dependencies: interface-store: 5.1.8 @@ -27940,6 +28299,8 @@ snapshots: global-directory: 4.0.1 is-path-inside: 4.0.0 + is-interactive@1.0.0: {} + is-interactive@2.0.0: {} is-ip@2.0.0: @@ -28159,6 +28520,8 @@ snapshots: it-stream-types@2.0.1: {} + iterare@1.2.1: {} + iterator.prototype@1.1.2: dependencies: define-properties: 1.2.1 @@ -28914,6 +29277,8 @@ snapshots: multiformats@9.9.0: {} + mute-stream@0.0.8: {} + mylas@2.1.13: {} nan@2.19.0: {} @@ -29272,6 +29637,18 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 + ora@5.4.1: + dependencies: + bl: 4.1.0 + chalk: 4.1.2 + cli-cursor: 3.1.0 + cli-spinners: 2.9.2 + is-interactive: 1.0.0 + is-unicode-supported: 0.1.0 + log-symbols: 4.1.0 + strip-ansi: 6.0.1 + wcwidth: 1.0.1 + ora@6.3.1: dependencies: chalk: 5.3.0 @@ -29479,6 +29856,8 @@ snapshots: path-to-regexp@0.1.7: {} + path-to-regexp@3.2.0: {} + path-to-regexp@6.2.2: {} path-type@3.0.0: @@ -30362,6 +30741,8 @@ snapshots: dependencies: '@babel/runtime': 7.24.5 + reflect-metadata@0.1.13: {} + reflect.getprototypeof@1.0.6: dependencies: call-bind: 1.0.7 @@ -30445,6 +30826,11 @@ snapshots: response-iterator@0.2.6: {} + restore-cursor@3.1.0: + dependencies: + onetime: 5.1.2 + signal-exit: 3.0.7 + restore-cursor@4.0.0: dependencies: onetime: 5.1.2 @@ -30460,7 +30846,7 @@ snapshots: rimraf@2.7.1: dependencies: - glob: 7.2.0 + glob: 7.2.3 rimraf@3.0.2: dependencies: @@ -30550,6 +30936,8 @@ snapshots: rrdom: 0.1.7 rrweb-snapshot: 2.0.0-alpha.4 + run-async@2.4.1: {} + run-parallel@1.2.0: dependencies: queue-microtask: 1.2.3 @@ -30558,6 +30946,10 @@ snapshots: dependencies: individual: 2.0.0 + rxjs@6.6.7: + dependencies: + tslib: 1.14.1 + rxjs@7.8.1: dependencies: tslib: 2.6.2 @@ -31719,6 +32111,10 @@ snapshots: dependencies: random-bytes: 1.0.0 + uid@2.0.2: + dependencies: + '@lukeed/csprng': 1.1.0 + uint8-varint@2.0.4: dependencies: uint8arraylist: 2.4.8 From 2d89df0a812195102d6782b765161690b13af2be Mon Sep 17 00:00:00 2001 From: rotorsoft Date: Wed, 7 Aug 2024 13:38:15 -0400 Subject: [PATCH 2/4] add tsconfig files --- libs/api-client/package.json | 14 +++++++++++++- libs/api-client/tsconfig.build.json | 9 +++++++++ libs/api-client/tsconfig.json | 4 ++++ pnpm-lock.yaml | 6 ++++++ 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 libs/api-client/tsconfig.build.json create mode 100644 libs/api-client/tsconfig.json diff --git a/libs/api-client/package.json b/libs/api-client/package.json index 2bd93df685b..be507c267bc 100644 --- a/libs/api-client/package.json +++ b/libs/api-client/package.json @@ -2,6 +2,16 @@ "name": "@hicommonwealth/api-client", "version": "1.0.0", "type": "module", + "description": "Common Client Proxy", + "files": [ + "build" + ], + "exports": { + ".": { + "default": "./build/index.js", + "devmode": "./src/index.ts" + } + }, "scripts": { "build": "tsc -b ./tsconfig.build.json", "clean": "rm -rf build && rm -rf coverage", @@ -13,10 +23,12 @@ "author": "", "license": "ISC", "dependencies": { - "axios": "^1.3.4" + "axios": "^1.3.4", + "moment": "^2.23.0" }, "devDependencies": { "@openapitools/openapi-generator-cli": "^2.13.4", + "@types/moment": "^2.13.0", "tsx": "^4.7.2" } } diff --git a/libs/api-client/tsconfig.build.json b/libs/api-client/tsconfig.build.json new file mode 100644 index 00000000000..ae1687b715d --- /dev/null +++ b/libs/api-client/tsconfig.build.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": "src", + "outDir": "build" + }, + "include": ["src"], + "references": [] +} diff --git a/libs/api-client/tsconfig.json b/libs/api-client/tsconfig.json new file mode 100644 index 00000000000..4f4bd883433 --- /dev/null +++ b/libs/api-client/tsconfig.json @@ -0,0 +1,4 @@ +{ + "extends": "../tsconfig.json", + "references": [] +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cbfc3d780fd..565ad286dc3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -420,10 +420,16 @@ importers: axios: specifier: ^1.3.4 version: 1.6.8 + moment: + specifier: ^2.23.0 + version: 2.30.1 devDependencies: '@openapitools/openapi-generator-cli': specifier: ^2.13.4 version: 2.13.4 + '@types/moment': + specifier: ^2.13.0 + version: 2.13.0 tsx: specifier: ^4.7.2 version: 4.9.3 From 2efd5ce850cbace30ae4a5b7d30cc15cc5b5cc0e Mon Sep 17 00:00:00 2001 From: rotorsoft Date: Thu, 8 Aug 2024 11:47:41 -0400 Subject: [PATCH 3/4] replace trpc openapi libs and rename metas --- libs/adapters/package.json | 2 +- libs/adapters/src/trpc/index.ts | 9 +- libs/api-client/src/api.ts | 6175 +++++++++++++++---------------- libs/api-client/test/index.ts | 2 +- pnpm-lock.yaml | 29 +- 5 files changed, 3057 insertions(+), 3160 deletions(-) diff --git a/libs/adapters/package.json b/libs/adapters/package.json index 0442fad1ecb..bb1fff42537 100644 --- a/libs/adapters/package.json +++ b/libs/adapters/package.json @@ -41,7 +41,7 @@ "redis": "4.2.0", "rollbar": "^2.6.1", "sequelize": "^6.32.1", - "trpc-openapi": "1.1.2", + "trpc-swagger": "^1.2.6", "typescript-logging": "^0.6.4", "zod": "^3.22.4" }, diff --git a/libs/adapters/src/trpc/index.ts b/libs/adapters/src/trpc/index.ts index 6ee18a4d2c7..d99f0d1a823 100644 --- a/libs/adapters/src/trpc/index.ts +++ b/libs/adapters/src/trpc/index.ts @@ -21,7 +21,7 @@ import { type GenerateOpenApiDocumentOptions, type OpenApiMeta, type OpenApiRouter, -} from 'trpc-openapi'; +} from 'trpc-swagger'; import { ZodSchema, ZodUndefined, z } from 'zod'; import { config } from '../config'; @@ -136,7 +136,7 @@ export const command = < .meta({ openapi: { method: 'POST', - path: `/${tag.toLowerCase()}/{id}/${factory.name}`, + path: `/${factory.name}/{id}`, tags: [tag], headers: [ { @@ -188,7 +188,7 @@ export const event = < .meta({ openapi: { method: 'POST', - path: `/${tag.toLowerCase()}/${factory.name}`, + path: `/${factory.name}`, tags: [tag], }, }) @@ -212,12 +212,11 @@ export const query = ( factory: () => QueryMetadata, ) => { const md = factory(); - //const input = md.input.extend({ address_id: z.string().optional() }); return trpc.procedure .meta({ openapi: { method: 'GET', - path: `/${Tag.Query.toLowerCase()}/${factory.name}`, + path: `/${factory.name}`, tags: [Tag.Query], headers: [ { diff --git a/libs/api-client/src/api.ts b/libs/api-client/src/api.ts index f64629faf36..f1d9305a99f 100644 --- a/libs/api-client/src/api.ts +++ b/libs/api-client/src/api.ts @@ -33,369 +33,369 @@ import { BASE_PATH, BaseAPI, RequiredError, operationServerMap } from './base'; /** * * @export - * @interface MutationCommunityCreateGroupRequest + * @interface CommunityCreateGroupRequest */ -export interface MutationCommunityCreateGroupRequest { +export interface CommunityCreateGroupRequest { /** * - * @type {MutationCommunityCreateGroupRequestMetadata} - * @memberof MutationCommunityCreateGroupRequest + * @type {CommunityCreateGroupRequestMetadata} + * @memberof CommunityCreateGroupRequest */ - metadata: MutationCommunityCreateGroupRequestMetadata; + metadata: CommunityCreateGroupRequestMetadata; /** * - * @type {Array} - * @memberof MutationCommunityCreateGroupRequest + * @type {Array} + * @memberof CommunityCreateGroupRequest */ - requirements: Array; + requirements: Array; /** * * @type {Array} - * @memberof MutationCommunityCreateGroupRequest + * @memberof CommunityCreateGroupRequest */ topics?: Array; } /** * * @export - * @interface MutationCommunityCreateGroupRequestMetadata + * @interface CommunityCreateGroupRequestMetadata */ -export interface MutationCommunityCreateGroupRequestMetadata { +export interface CommunityCreateGroupRequestMetadata { /** * * @type {string} - * @memberof MutationCommunityCreateGroupRequestMetadata + * @memberof CommunityCreateGroupRequestMetadata */ name: string; /** * * @type {string} - * @memberof MutationCommunityCreateGroupRequestMetadata + * @memberof CommunityCreateGroupRequestMetadata */ description: string; /** * * @type {number} - * @memberof MutationCommunityCreateGroupRequestMetadata + * @memberof CommunityCreateGroupRequestMetadata */ required_requirements?: number; /** * * @type {number} - * @memberof MutationCommunityCreateGroupRequestMetadata + * @memberof CommunityCreateGroupRequestMetadata */ membership_ttl?: number; } /** * * @export - * @interface MutationCommunityCreateStakeTransactionRequest + * @interface CommunityCreateStakeTransactionRequest */ -export interface MutationCommunityCreateStakeTransactionRequest { +export interface CommunityCreateStakeTransactionRequest { /** * * @type {string} - * @memberof MutationCommunityCreateStakeTransactionRequest + * @memberof CommunityCreateStakeTransactionRequest */ transaction_hash: string; /** * * @type {string} - * @memberof MutationCommunityCreateStakeTransactionRequest + * @memberof CommunityCreateStakeTransactionRequest */ community_id: string; } /** * * @export - * @interface MutationCommunitySetStake200Response + * @interface CommunityGetCommunity200Response */ -export interface MutationCommunitySetStake200Response { +export interface CommunityGetCommunity200Response { /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ name: string; /** * * @type {number} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ chain_node_id: number; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ default_symbol?: string; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ - network?: MutationCommunitySetStake200ResponseNetworkEnum; + network?: CommunityGetCommunity200ResponseNetworkEnum; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ - base: MutationCommunitySetStake200ResponseBaseEnum; + base: CommunityGetCommunity200ResponseBaseEnum; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ icon_url?: string | null; /** * * @type {boolean} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ active: boolean; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ - type?: MutationCommunitySetStake200ResponseTypeEnum; + type?: CommunityGetCommunity200ResponseTypeEnum; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ id?: string; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ description?: string; /** * * @type {Array} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ social_links?: Array; /** * * @type {number} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ ss58_prefix?: number; /** * * @type {boolean} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ stages_enabled?: boolean; /** * * @type {Array} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ custom_stages?: Array; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ custom_domain?: string; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ block_explorer_ids?: string; /** * * @type {boolean} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ collapsed_on_homepage?: boolean; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ substrate_spec?: string; /** * * @type {boolean} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ has_chain_events_listener?: boolean; /** * * @type {boolean} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ default_summary_view?: boolean; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ - default_page?: MutationCommunitySetStake200ResponseDefaultPageEnum; + default_page?: CommunityGetCommunity200ResponseDefaultPageEnum; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ - has_homepage?: MutationCommunitySetStake200ResponseHasHomepageEnum | null; + has_homepage?: CommunityGetCommunity200ResponseHasHomepageEnum | null; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ terms?: string; /** * * @type {boolean} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ admin_only_polling?: boolean; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ bech32_prefix?: string; /** * * @type {boolean} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ hide_projects?: boolean; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ token_name?: string; /** * * @type {boolean} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ ce_verbose?: boolean; /** * * @type {number} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ discord_config_id?: number | null; /** * * @type {any} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ category?: any; /** * * @type {boolean} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ discord_bot_webhooks_enabled?: boolean; /** * * @type {boolean} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ directory_page_enabled?: boolean; /** * * @type {number} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ directory_page_chain_node_id?: number; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ namespace?: string; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ namespace_address?: string; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ redirect?: string; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ created_at?: string; /** * * @type {string} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ updated_at?: string; /** * - * @type {Array} - * @memberof MutationCommunitySetStake200Response + * @type {Array} + * @memberof CommunityGetCommunity200Response */ - Addresses?: Array; + Addresses?: Array; /** * - * @type {Array} - * @memberof MutationCommunitySetStake200Response + * @type {Array} + * @memberof CommunityGetCommunity200Response */ - CommunityStakes?: Array; + CommunityStakes?: Array; /** * - * @type {Array} - * @memberof MutationCommunitySetStake200Response + * @type {Array} + * @memberof CommunityGetCommunity200Response */ - CommunityTags?: Array; + CommunityTags?: Array; /** * - * @type {QueryCommunityGetCommunity200ResponseChainNode} - * @memberof MutationCommunitySetStake200Response + * @type {CommunityGetCommunity200ResponseChainNode} + * @memberof CommunityGetCommunity200Response */ - ChainNode?: QueryCommunityGetCommunity200ResponseChainNode; + ChainNode?: CommunityGetCommunity200ResponseChainNode; /** * - * @type {Array} - * @memberof MutationCommunitySetStake200Response + * @type {Array} + * @memberof CommunityGetCommunity200Response */ - topics?: Array; + topics?: Array; /** * - * @type {Array} - * @memberof MutationCommunitySetStake200Response + * @type {Array} + * @memberof CommunityGetCommunity200Response */ - groups?: Array; + groups?: Array; /** * - * @type {Array} - * @memberof MutationCommunitySetStake200Response + * @type {Array} + * @memberof CommunityGetCommunity200Response */ - contest_managers?: Array; + contest_managers?: Array; /** * * @type {Array} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ snapshot_spaces?: Array; /** * * @type {boolean} - * @memberof MutationCommunitySetStake200Response + * @memberof CommunityGetCommunity200Response */ include_in_digest_email?: boolean | null; } -export const MutationCommunitySetStake200ResponseNetworkEnum = { +export const CommunityGetCommunity200ResponseNetworkEnum = { Edgeware: 'edgeware', EdgewareTestnet: 'edgeware-testnet', Kusama: 'kusama', @@ -440,9 +440,9 @@ export const MutationCommunitySetStake200ResponseNetworkEnum = { Cosmos: 'cosmos', } as const; -export type MutationCommunitySetStake200ResponseNetworkEnum = - typeof MutationCommunitySetStake200ResponseNetworkEnum[keyof typeof MutationCommunitySetStake200ResponseNetworkEnum]; -export const MutationCommunitySetStake200ResponseBaseEnum = { +export type CommunityGetCommunity200ResponseNetworkEnum = + typeof CommunityGetCommunity200ResponseNetworkEnum[keyof typeof CommunityGetCommunity200ResponseNetworkEnum]; +export const CommunityGetCommunity200ResponseBaseEnum = { Cosmos: 'cosmos', Substrate: 'substrate', Ethereum: 'ethereum', @@ -450,1862 +450,1888 @@ export const MutationCommunitySetStake200ResponseBaseEnum = { Solana: 'solana', } as const; -export type MutationCommunitySetStake200ResponseBaseEnum = - typeof MutationCommunitySetStake200ResponseBaseEnum[keyof typeof MutationCommunitySetStake200ResponseBaseEnum]; -export const MutationCommunitySetStake200ResponseTypeEnum = { +export type CommunityGetCommunity200ResponseBaseEnum = + typeof CommunityGetCommunity200ResponseBaseEnum[keyof typeof CommunityGetCommunity200ResponseBaseEnum]; +export const CommunityGetCommunity200ResponseTypeEnum = { Chain: 'chain', Dao: 'dao', Token: 'token', Offchain: 'offchain', } as const; -export type MutationCommunitySetStake200ResponseTypeEnum = - typeof MutationCommunitySetStake200ResponseTypeEnum[keyof typeof MutationCommunitySetStake200ResponseTypeEnum]; -export const MutationCommunitySetStake200ResponseDefaultPageEnum = { +export type CommunityGetCommunity200ResponseTypeEnum = + typeof CommunityGetCommunity200ResponseTypeEnum[keyof typeof CommunityGetCommunity200ResponseTypeEnum]; +export const CommunityGetCommunity200ResponseDefaultPageEnum = { AllDiscussionsView: 'default_all_discussions_view', SummaryView: 'default_summary_view', } as const; -export type MutationCommunitySetStake200ResponseDefaultPageEnum = - typeof MutationCommunitySetStake200ResponseDefaultPageEnum[keyof typeof MutationCommunitySetStake200ResponseDefaultPageEnum]; -export const MutationCommunitySetStake200ResponseHasHomepageEnum = { +export type CommunityGetCommunity200ResponseDefaultPageEnum = + typeof CommunityGetCommunity200ResponseDefaultPageEnum[keyof typeof CommunityGetCommunity200ResponseDefaultPageEnum]; +export const CommunityGetCommunity200ResponseHasHomepageEnum = { True: 'true', False: 'false', } as const; -export type MutationCommunitySetStake200ResponseHasHomepageEnum = - typeof MutationCommunitySetStake200ResponseHasHomepageEnum[keyof typeof MutationCommunitySetStake200ResponseHasHomepageEnum]; +export type CommunityGetCommunity200ResponseHasHomepageEnum = + typeof CommunityGetCommunity200ResponseHasHomepageEnum[keyof typeof CommunityGetCommunity200ResponseHasHomepageEnum]; /** * * @export - * @interface MutationCommunitySetStakeRequest + * @interface CommunityGetCommunity200ResponseAddressesInner */ -export interface MutationCommunitySetStakeRequest { +export interface CommunityGetCommunity200ResponseAddressesInner { /** * * @type {number} - * @memberof MutationCommunitySetStakeRequest + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - stake_id: number; + id?: number; /** * * @type {string} - * @memberof MutationCommunitySetStakeRequest + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - stake_token?: string; + address: string; /** * - * @type {number} - * @memberof MutationCommunitySetStakeRequest + * @type {string} + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - vote_weight?: number; + community_id?: string; /** * - * @type {boolean} - * @memberof MutationCommunitySetStakeRequest + * @type {number} + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - stake_enabled?: boolean; -} -/** - * - * @export - * @interface MutationContestCreateContestMetadata200Response - */ -export interface MutationContestCreateContestMetadata200Response { + user_id?: number | null; /** * - * @type {Array} - * @memberof MutationContestCreateContestMetadata200Response - */ - contest_managers: Array; -} -/** - * - * @export - * @interface MutationContestCreateContestMetadataRequest - */ -export interface MutationContestCreateContestMetadataRequest { - /** - * On-Chain contest manager address * @type {string} - * @memberof MutationContestCreateContestMetadataRequest + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - contest_address: string; + verification_token?: string; /** * * @type {string} - * @memberof MutationContestCreateContestMetadataRequest + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - name: string; + verification_token_expires?: string | null; /** * * @type {string} - * @memberof MutationContestCreateContestMetadataRequest + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - image_url?: string; + verified?: string | null; /** - * Provided by admin on creation when stake funds are not used + * * @type {string} - * @memberof MutationContestCreateContestMetadataRequest + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - funding_token_address?: string; + last_active?: string | null; /** - * Percentage of pool used for prizes in recurring contests - * @type {number} - * @memberof MutationContestCreateContestMetadataRequest + * + * @type {boolean} + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - prize_percentage?: number; + is_councillor?: boolean; /** - * Sorted array of percentages for prize, from first to last - * @type {Array} - * @memberof MutationContestCreateContestMetadataRequest + * + * @type {boolean} + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - payout_structure: Array; + is_validator?: boolean; /** - * Recurring contest interval in seconds, 0 when one-off - * @type {number} - * @memberof MutationContestCreateContestMetadataRequest + * + * @type {boolean} + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - interval: number; + ghost_address?: boolean; /** * * @type {string} - * @memberof MutationContestCreateContestMetadataRequest + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - ticker?: string; + wallet_id?: CommunityGetCommunity200ResponseAddressesInnerWalletIdEnum; /** * - * @type {number} - * @memberof MutationContestCreateContestMetadataRequest + * @type {string} + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - decimals?: number; + block_info?: string; /** * - * @type {Array} - * @memberof MutationContestCreateContestMetadataRequest - */ - topic_ids?: Array; -} -/** - * - * @export - * @interface MutationContestUpdateContestMetadataRequest - */ -export interface MutationContestUpdateContestMetadataRequest { - /** - * On-Chain contest manager address - * @type {string} - * @memberof MutationContestUpdateContestMetadataRequest + * @type {boolean} + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - contest_address: string; + is_user_default?: boolean; /** * * @type {string} - * @memberof MutationContestUpdateContestMetadataRequest + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - name?: string; + role?: CommunityGetCommunity200ResponseAddressesInnerRoleEnum; /** * * @type {string} - * @memberof MutationContestUpdateContestMetadataRequest + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - image_url?: string; + wallet_sso_source?: CommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum; /** * - * @type {Array} - * @memberof MutationContestUpdateContestMetadataRequest + * @type {string} + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - topic_ids?: Array; -} -/** - * - * @export - * @interface MutationIntegrationsAnalyticsRequest - */ -export interface MutationIntegrationsAnalyticsRequest { + hex?: string; /** * - * @type {MutationIntegrationsAnalyticsRequestGroupCreated} - * @memberof MutationIntegrationsAnalyticsRequest + * @type {any} + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - GroupCreated: MutationIntegrationsAnalyticsRequestGroupCreated; + created_at?: any; /** * - * @type {MutationIntegrationsAnalyticsRequestThreadCreated} - * @memberof MutationIntegrationsAnalyticsRequest + * @type {any} + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - ThreadCreated: MutationIntegrationsAnalyticsRequestThreadCreated; + updated_at?: any; /** * - * @type {MutationIntegrationsAnalyticsRequestCommentCreated} - * @memberof MutationIntegrationsAnalyticsRequest + * @type {UserUpdateUser200Response} + * @memberof CommunityGetCommunity200ResponseAddressesInner */ - CommentCreated: MutationIntegrationsAnalyticsRequestCommentCreated; + User?: UserUpdateUser200Response; } + +export const CommunityGetCommunity200ResponseAddressesInnerWalletIdEnum = { + Magic: 'magic', + Polkadot: 'polkadot', + Metamask: 'metamask', + Walletconnect: 'walletconnect', + KeplrEthereum: 'keplr-ethereum', + Keplr: 'keplr', + Leap: 'leap', + Near: 'near', + Terrastation: 'terrastation', + TerraWalletconnect: 'terra-walletconnect', + CosmMetamask: 'cosm-metamask', + Phantom: 'phantom', + Coinbase: 'coinbase', +} as const; + +export type CommunityGetCommunity200ResponseAddressesInnerWalletIdEnum = + typeof CommunityGetCommunity200ResponseAddressesInnerWalletIdEnum[keyof typeof CommunityGetCommunity200ResponseAddressesInnerWalletIdEnum]; +export const CommunityGetCommunity200ResponseAddressesInnerRoleEnum = { + Admin: 'admin', + Moderator: 'moderator', + Member: 'member', +} as const; + +export type CommunityGetCommunity200ResponseAddressesInnerRoleEnum = + typeof CommunityGetCommunity200ResponseAddressesInnerRoleEnum[keyof typeof CommunityGetCommunity200ResponseAddressesInnerRoleEnum]; +export const CommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum = + { + Google: 'google', + Github: 'github', + Discord: 'discord', + Twitter: 'twitter', + Apple: 'apple', + Email: 'email', + Unknown: 'unknown', + } as const; + +export type CommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum = + typeof CommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum[keyof typeof CommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum]; + /** * * @export - * @interface MutationIntegrationsAnalyticsRequestCommentCreated + * @interface CommunityGetCommunity200ResponseChainNode */ -export interface MutationIntegrationsAnalyticsRequestCommentCreated { +export interface CommunityGetCommunity200ResponseChainNode { /** * * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @memberof CommunityGetCommunity200ResponseChainNode */ - thread_id: number; + id?: number; /** * - * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @type {string} + * @memberof CommunityGetCommunity200ResponseChainNode */ - address_id: number; + url: string; /** * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @type {number} + * @memberof CommunityGetCommunity200ResponseChainNode */ - text: string; + eth_chain_id?: number; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @memberof CommunityGetCommunity200ResponseChainNode */ - plaintext: string; + alt_wallet_url?: string; /** * - * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @type {string} + * @memberof CommunityGetCommunity200ResponseChainNode */ - id?: number | null; + private_url?: string; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @memberof CommunityGetCommunity200ResponseChainNode */ - community_id: string; + balance_type: CommunityGetCommunity200ResponseChainNodeBalanceTypeEnum; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @memberof CommunityGetCommunity200ResponseChainNode */ - parent_id?: string | null; + name: string; /** * - * @type {Array} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @type {string} + * @memberof CommunityGetCommunity200ResponseChainNode */ - version_history?: Array; + description?: string; /** * - * @type {boolean} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @type {number} + * @memberof CommunityGetCommunity200ResponseChainNode */ - version_history_updated?: boolean; + ss58?: number; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @memberof CommunityGetCommunity200ResponseChainNode */ - canvas_signed_data: string; + bech32?: string; /** * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @type {number} + * @memberof CommunityGetCommunity200ResponseChainNode */ - canvas_hash: string; + slip44?: number; /** * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @type {any} + * @memberof CommunityGetCommunity200ResponseChainNode */ - created_by?: string | null; + created_at?: any; /** * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @type {any} + * @memberof CommunityGetCommunity200ResponseChainNode */ - created_at?: string | null; + updated_at?: any; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @memberof CommunityGetCommunity200ResponseChainNode */ - updated_at?: string | null; + cosmos_chain_id?: string; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @memberof CommunityGetCommunity200ResponseChainNode */ - deleted_at?: string | null; + cosmos_gov_version?: CommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @memberof CommunityGetCommunity200ResponseChainNode */ - marked_as_spam_at?: string | null; + health?: CommunityGetCommunity200ResponseChainNodeHealthEnum; /** * - * @type {QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @type {Array} + * @memberof CommunityGetCommunity200ResponseChainNode */ - discord_meta?: QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta | null; + contracts?: Array; /** * - * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @type {string} + * @memberof CommunityGetCommunity200ResponseChainNode */ - reaction_count: number; + block_explorer?: string; /** * * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated + * @memberof CommunityGetCommunity200ResponseChainNode */ - reaction_weights_sum?: number; - /** - * - * @type {MutationIntegrationsAnalyticsRequestThreadCreatedAddress} - * @memberof MutationIntegrationsAnalyticsRequestCommentCreated - */ - Address?: MutationIntegrationsAnalyticsRequestThreadCreatedAddress | null; + max_ce_block_range?: number | null; } + +export const CommunityGetCommunity200ResponseChainNodeBalanceTypeEnum = { + Terra: 'terra', + Ethereum: 'ethereum', + Solana: 'solana', + Cosmos: 'cosmos', + Near: 'near', + Substrate: 'substrate', +} as const; + +export type CommunityGetCommunity200ResponseChainNodeBalanceTypeEnum = + typeof CommunityGetCommunity200ResponseChainNodeBalanceTypeEnum[keyof typeof CommunityGetCommunity200ResponseChainNodeBalanceTypeEnum]; +export const CommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum = { + V1: 'v1', + V1beta1: 'v1beta1', + V1beta1AttemptFailed: 'v1beta1-attempt-failed', + V1AttemptFailed: 'v1-attempt-failed', +} as const; + +export type CommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum = + typeof CommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum[keyof typeof CommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum]; +export const CommunityGetCommunity200ResponseChainNodeHealthEnum = { + Failed: 'failed', + Healthy: 'healthy', +} as const; + +export type CommunityGetCommunity200ResponseChainNodeHealthEnum = + typeof CommunityGetCommunity200ResponseChainNodeHealthEnum[keyof typeof CommunityGetCommunity200ResponseChainNodeHealthEnum]; + /** * * @export - * @interface MutationIntegrationsAnalyticsRequestGroupCreated + * @interface CommunityGetCommunity200ResponseChainNodeContractsInner */ -export interface MutationIntegrationsAnalyticsRequestGroupCreated { +export interface CommunityGetCommunity200ResponseChainNodeContractsInner { /** * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestGroupCreated + * @type {number} + * @memberof CommunityGetCommunity200ResponseChainNodeContractsInner */ - groupId: string; + id: number; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestGroupCreated + * @memberof CommunityGetCommunity200ResponseChainNodeContractsInner */ - userId: string; -} -/** - * - * @export - * @interface MutationIntegrationsAnalyticsRequestThreadCreated - */ -export interface MutationIntegrationsAnalyticsRequestThreadCreated { + address: string; /** * - * @type {MutationIntegrationsAnalyticsRequestThreadCreatedAddress} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {number} + * @memberof CommunityGetCommunity200ResponseChainNodeContractsInner */ - Address?: MutationIntegrationsAnalyticsRequestThreadCreatedAddress | null; + chain_node_id: number; /** * * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseChainNodeContractsInner */ - address_id: number; + abi_id?: number | null; /** * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {number} + * @memberof CommunityGetCommunity200ResponseChainNodeContractsInner */ - title: string; + decimals?: number; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseChainNodeContractsInner */ - kind: string; + token_name?: string; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseChainNodeContractsInner */ - stage: string; + symbol?: string; /** * - * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {string} + * @memberof CommunityGetCommunity200ResponseChainNodeContractsInner */ - id?: number | null; + type: string; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseChainNodeContractsInner */ - body?: string | null; + created_at: string; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseChainNodeContractsInner */ - plaintext?: string | null; + updated_at: string; /** * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {boolean} + * @memberof CommunityGetCommunity200ResponseChainNodeContractsInner */ - url?: string | null; + is_factory?: boolean; /** * - * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {string} + * @memberof CommunityGetCommunity200ResponseChainNodeContractsInner */ - topic_id?: number | null; + nickname?: string; +} +/** + * + * @export + * @interface CommunityGetCommunity200ResponseCommunityStakesInner + */ +export interface CommunityGetCommunity200ResponseCommunityStakesInner { /** * - * @type {boolean} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {number} + * @memberof CommunityGetCommunity200ResponseCommunityStakesInner */ - pinned?: boolean | null; + id?: number; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseCommunityStakesInner */ community_id: string; /** * * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated - */ - view_count: number; - /** - * - * @type {Array} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseCommunityStakesInner */ - links?: Array | null; + stake_id?: number; /** * - * @type {boolean} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {string} + * @memberof CommunityGetCommunity200ResponseCommunityStakesInner */ - read_only?: boolean | null; + stake_token?: string; /** * - * @type {Array} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {number} + * @memberof CommunityGetCommunity200ResponseCommunityStakesInner */ - version_history?: Array | null; + vote_weight?: number; /** * * @type {boolean} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseCommunityStakesInner */ - has_poll?: boolean | null; + stake_enabled?: boolean; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseCommunityStakesInner */ - canvas_signed_data?: string | null; + created_at?: string; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseCommunityStakesInner */ - canvas_hash?: string | null; + updated_at?: string; /** * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {Array} + * @memberof CommunityGetCommunity200ResponseCommunityStakesInner */ - created_at?: string | null; + StakeTransactions?: Array; +} +/** + * + * @export + * @interface CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + */ +export interface CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner { /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner */ - updated_at?: string | null; + transaction_hash: string; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner */ - last_edited?: string | null; + community_id: string; /** * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {number} + * @memberof CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner */ - deleted_at?: string | null; + stake_id?: number; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner */ - last_commented_on?: string | null; + address: string; /** * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {number} + * @memberof CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner */ - marked_as_spam_at?: string | null; + stake_amount: number; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner */ - archived_at?: string | null; + stake_price?: string; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated - */ - locked_at?: string | null; - /** - * - * @type {QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner */ - discord_meta?: QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta | null; + stake_direction: CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum; /** * * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner */ - reaction_count: number; + timestamp: number; +} + +export const CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum = + { + Buy: 'buy', + Sell: 'sell', + } as const; + +export type CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum = + typeof CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum[keyof typeof CommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum]; + +/** + * + * @export + * @interface CommunityGetCommunity200ResponseCommunityTagsInner + */ +export interface CommunityGetCommunity200ResponseCommunityTagsInner { /** * * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseCommunityTagsInner */ - reaction_weights_sum: number; + id?: number; /** * - * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {string} + * @memberof CommunityGetCommunity200ResponseCommunityTagsInner */ - comment_count: number; + name: string; +} +/** + * On-Chain Contest Manager + * @export + * @interface CommunityGetCommunity200ResponseContestManagersInner + */ +export interface CommunityGetCommunity200ResponseContestManagersInner { /** - * + * On-Chain contest manager address * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - activity_rank_date?: string | null; + contest_address: string; /** * - * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @type {string} + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - max_notif_id: number; + community_id: string; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - created_by?: string | null; + name: string; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - profile_name?: string | null; + image_url?: string; /** - * - * @type {Array} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreated + * Provided by admin on creation when stake funds are not used + * @type {string} + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - contestManagers?: Array | null; -} -/** - * - * @export - * @interface MutationIntegrationsAnalyticsRequestThreadCreatedAddress - */ -export interface MutationIntegrationsAnalyticsRequestThreadCreatedAddress { + funding_token_address?: string | null; /** - * + * Percentage of pool used for prizes in recurring contests * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress - */ - id?: number; - /** - * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - address: string; + prize_percentage?: number | null; /** - * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * Sorted array of percentages for prize, from first to last + * @type {Array} + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - community_id?: string; + payout_structure: Array; /** - * + * Recurring contest interval, 0 when one-off * @type {number} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress - */ - user_id?: number | null; - /** - * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - verification_token?: string; + interval: number; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - verification_token_expires?: string | null; + ticker?: string; /** * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @type {number} + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - verified?: string | null; + decimals?: number; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - last_active?: string | null; + created_at: string; /** - * + * Flags when contest policy is cancelled by admin * @type {boolean} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - is_councillor?: boolean; + cancelled?: boolean | null; /** - * + * Flags when the one-off contest has ended and rollover was completed * @type {boolean} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - is_validator?: boolean; + ended?: boolean | null; /** * - * @type {boolean} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @type {Array} + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - ghost_address?: boolean; + topics?: Array; /** * - * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @type {Array} + * @memberof CommunityGetCommunity200ResponseContestManagersInner */ - wallet_id?: MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum; + contests?: Array; +} +/** + * On-Chain contest instance + * @export + * @interface CommunityGetCommunity200ResponseContestManagersInnerContestsInner + */ +export interface CommunityGetCommunity200ResponseContestManagersInnerContestsInner { /** - * + * On-Chain contest manager address * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInner */ - block_info?: string; + contest_address: string; /** - * - * @type {boolean} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * On-Chain contest id, 0 when one-off + * @type {number} + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInner */ - is_user_default?: boolean; + contest_id: number; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInner */ - role?: MutationIntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum; + start_time: string; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInner */ - wallet_sso_source?: MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum; + end_time: string; /** * * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress - */ - hex?: string; - /** - * - * @type {any} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInner */ - created_at?: any; + score_updated_at?: string | null; /** - * - * @type {any} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * Contest score, sorted from first to last + * @type {Array} + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInner */ - updated_at?: any; + score?: Array | null; /** * - * @type {MutationUserUpdateUser200Response} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedAddress + * @type {Array} + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInner */ - User?: MutationUserUpdateUser200Response; + actions?: Array | null; } - -export const MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum = - { - Magic: 'magic', - Polkadot: 'polkadot', - Metamask: 'metamask', - Walletconnect: 'walletconnect', - KeplrEthereum: 'keplr-ethereum', - Keplr: 'keplr', - Leap: 'leap', - Near: 'near', - Terrastation: 'terrastation', - TerraWalletconnect: 'terra-walletconnect', - CosmMetamask: 'cosm-metamask', - Phantom: 'phantom', - Coinbase: 'coinbase', - } as const; - -export type MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum = - typeof MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum[keyof typeof MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum]; -export const MutationIntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum = - { - Admin: 'admin', - Moderator: 'moderator', - Member: 'member', - } as const; - -export type MutationIntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum = - typeof MutationIntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum[keyof typeof MutationIntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum]; -export const MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum = - { - Google: 'google', - Github: 'github', - Discord: 'discord', - Twitter: 'twitter', - Apple: 'apple', - Email: 'email', - Unknown: 'unknown', - } as const; - -export type MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum = - typeof MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum[keyof typeof MutationIntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum]; - /** - * + * On-Chain content related actions on contest instance * @export - * @interface MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner + * @interface CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner */ -export interface MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner { +export interface CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner { /** - * + * On-Chain contest manager address * @type {string} - * @memberof MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner */ contest_address: string; -} -/** - * - * @export - * @interface MutationLoadTestCreateJWTsRequest - */ -export interface MutationLoadTestCreateJWTsRequest { /** - * + * On-Chain contest id, 0 when one-off * @type {number} - * @memberof MutationLoadTestCreateJWTsRequest + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner */ - number_of_jwt: number; -} -/** - * - * @export - * @interface MutationSubscriptionCreateCommentSubscription200Response - */ -export interface MutationSubscriptionCreateCommentSubscription200Response { + contest_id: number; /** - * + * On-Chain content id, 0 when adding * @type {number} - * @memberof MutationSubscriptionCreateCommentSubscription200Response + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner */ - id?: number; + content_id: number; /** * - * @type {number} - * @memberof MutationSubscriptionCreateCommentSubscription200Response + * @type {string} + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner */ - user_id: number; + actor_address: string; /** - * - * @type {number} - * @memberof MutationSubscriptionCreateCommentSubscription200Response + * Type of content action + * @type {string} + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner */ - comment_id: number; + action: CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum; /** - * + * Content url * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200Response + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner */ - created_at?: string; + content_url?: string | null; + /** + * Thread id mapped from content url + * @type {number} + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ + thread_id?: number | null; /** * * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200Response + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner */ - updated_at?: string; + thread_title?: string | null; /** - * - * @type {MutationSubscriptionCreateCommentSubscription200ResponseComment} - * @memberof MutationSubscriptionCreateCommentSubscription200Response + * Voting power of address when action was recorded + * @type {number} + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + */ + voting_power: number; + /** + * Date-time when action was recorded + * @type {string} + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner */ - Comment?: MutationSubscriptionCreateCommentSubscription200ResponseComment; + created_at: string; } + +export const CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum = + { + Added: 'added', + Upvoted: 'upvoted', + } as const; + +export type CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum = + typeof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum[keyof typeof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum]; + /** * * @export - * @interface MutationSubscriptionCreateCommentSubscription200ResponseComment + * @interface CommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner */ -export interface MutationSubscriptionCreateCommentSubscription200ResponseComment { - /** - * - * @type {number} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseComment - */ - id?: number | null; +export interface CommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner { /** * * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseComment + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner */ - created_at?: string | null; + creator_address: string; /** * * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseComment + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner */ - updated_at?: string | null; + content_id: string; /** * - * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseComment + * @type {number} + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner */ - text: string; + votes: number; /** * * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseComment + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner */ - plaintext: string; + prize: string; /** * - * @type {MutationSubscriptionCreateCommentSubscription200ResponseCommentThread} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseComment + * @type {number} + * @memberof CommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner */ - Thread: MutationSubscriptionCreateCommentSubscription200ResponseCommentThread; + tickerPrize?: number; } /** * * @export - * @interface MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + * @interface CommunityGetCommunity200ResponseGroupsInner */ -export interface MutationSubscriptionCreateCommentSubscription200ResponseCommentThread { +export interface CommunityGetCommunity200ResponseGroupsInner { /** * * @type {number} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + * @memberof CommunityGetCommunity200ResponseGroupsInner */ - id?: number | null; + id: number; /** * * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + * @memberof CommunityGetCommunity200ResponseGroupsInner */ community_id: string; /** * - * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + * @type {CommunityGetCommunity200ResponseGroupsInnerMetadata} + * @memberof CommunityGetCommunity200ResponseGroupsInner */ - title: string; + metadata: CommunityGetCommunity200ResponseGroupsInnerMetadata; /** * - * @type {number} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + * @type {Array} + * @memberof CommunityGetCommunity200ResponseGroupsInner */ - comment_count: number; + requirements: Array; /** * - * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + * @type {boolean} + * @memberof CommunityGetCommunity200ResponseGroupsInner */ - created_at?: string | null; + is_system_managed?: boolean; /** * * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread - */ - url?: string | null; - /** - * - * @type {MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + * @memberof CommunityGetCommunity200ResponseGroupsInner */ - Community: MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity; + created_at?: string; /** * - * @type {MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThread + * @type {string} + * @memberof CommunityGetCommunity200ResponseGroupsInner */ - Address: MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress; + updated_at?: string; } /** * * @export - * @interface MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress + * @interface CommunityGetCommunity200ResponseGroupsInnerMetadata */ -export interface MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress { +export interface CommunityGetCommunity200ResponseGroupsInnerMetadata { /** * - * @type {number} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress + * @type {string} + * @memberof CommunityGetCommunity200ResponseGroupsInnerMetadata */ - id?: number; + name: string; + /** + * + * @type {string} + * @memberof CommunityGetCommunity200ResponseGroupsInnerMetadata + */ + description: string; /** * * @type {number} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress + * @memberof CommunityGetCommunity200ResponseGroupsInnerMetadata */ - user_id?: number | null; + required_requirements?: number; /** * - * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress + * @type {number} + * @memberof CommunityGetCommunity200ResponseGroupsInnerMetadata */ - address: string; + membership_ttl?: number; } /** * * @export - * @interface MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity + * @interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInner */ -export interface MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity { - /** - * - * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity - */ - id?: string; +export interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInner { /** * * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInner */ - name: string; + rule: CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum; /** * - * @type {string} - * @memberof MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity + * @type {CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInner */ - icon_url?: string | null; + data: CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data; } + +export const CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum = + { + Allow: 'allow', + } as const; + +export type CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum = + typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum[keyof typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum]; + /** * * @export - * @interface MutationSubscriptionCreateCommentSubscriptionRequest + * @interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf */ -export interface MutationSubscriptionCreateCommentSubscriptionRequest { +export interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf { /** * - * @type {number} - * @memberof MutationSubscriptionCreateCommentSubscriptionRequest + * @type {string} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf */ - comment_id: number; + rule: CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum; + /** + * + * @type {CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf + */ + data: CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData; } + +export const CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum = + { + Threshold: 'threshold', + } as const; + +export type CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum = + typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum[keyof typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum]; + /** * * @export - * @interface MutationSubscriptionCreateCommunityAlert200Response + * @interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1 */ -export interface MutationSubscriptionCreateCommunityAlert200Response { - /** - * - * @type {number} - * @memberof MutationSubscriptionCreateCommunityAlert200Response - */ - user_id: number; - /** - * - * @type {string} - * @memberof MutationSubscriptionCreateCommunityAlert200Response - */ - community_id: string; +export interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1 { /** * * @type {string} - * @memberof MutationSubscriptionCreateCommunityAlert200Response + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1 */ - created_at?: string; + rule: CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum; /** * - * @type {string} - * @memberof MutationSubscriptionCreateCommunityAlert200Response + * @type {CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1 */ - updated_at?: string; + data: CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data; +} + +export const CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum = + { + Allow: 'allow', + } as const; + +export type CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum = + typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum[keyof typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum]; + +/** + * + * @export + * @interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data + */ +export interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data { /** * - * @type {MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity} - * @memberof MutationSubscriptionCreateCommunityAlert200Response + * @type {Array} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data */ - Community?: MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity; + allow: Array; } /** * * @export - * @interface MutationSubscriptionCreateCommunityAlertRequest + * @interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData */ -export interface MutationSubscriptionCreateCommunityAlertRequest { +export interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData { /** * * @type {string} - * @memberof MutationSubscriptionCreateCommunityAlertRequest + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData */ - community_id: string; + threshold: string; + /** + * + * @type {CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData + */ + source: CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource; } /** * * @export - * @interface MutationSubscriptionCreateThreadSubscription200Response + * @interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource */ -export interface MutationSubscriptionCreateThreadSubscription200Response { +export interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource { /** * - * @type {number} - * @memberof MutationSubscriptionCreateThreadSubscription200Response + * @type {string} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource */ - id?: number; + source_type: CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum; /** * * @type {number} - * @memberof MutationSubscriptionCreateThreadSubscription200Response + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource */ - user_id: number; + evm_chain_id: number; /** * - * @type {number} - * @memberof MutationSubscriptionCreateThreadSubscription200Response + * @type {string} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource */ - thread_id: number; + contract_address: string; /** * * @type {string} - * @memberof MutationSubscriptionCreateThreadSubscription200Response + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource */ - created_at?: string; + token_id?: string; /** * * @type {string} - * @memberof MutationSubscriptionCreateThreadSubscription200Response + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource */ - updated_at?: string; + cosmos_chain_id: string; /** * - * @type {MutationSubscriptionCreateThreadSubscription200ResponseThread} - * @memberof MutationSubscriptionCreateThreadSubscription200Response + * @type {string} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource */ - Thread?: MutationSubscriptionCreateThreadSubscription200ResponseThread; + token_symbol: string; } + +export const CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum = + { + Cw721: 'cw721', + Cw20: 'cw20', + } as const; + +export type CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum = + typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum[keyof typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum]; + /** * * @export - * @interface MutationSubscriptionCreateThreadSubscription200ResponseThread + * @interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf */ -export interface MutationSubscriptionCreateThreadSubscription200ResponseThread { - /** - * - * @type {number} - * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread - */ - id?: number | null; +export interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf { /** * * @type {string} - * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf */ - community_id: string; + source_type: CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum; /** * * @type {number} - * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf */ - address_id: number; + evm_chain_id: number; /** * * @type {string} - * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread - */ - title: string; - /** - * - * @type {number} - * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf */ - comment_count: number; + contract_address: string; /** * * @type {string} - * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf */ - created_at?: string | null; + token_id?: string; +} + +export const CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum = + { + Erc20: 'erc20', + Erc721: 'erc721', + Erc1155: 'erc1155', + Spl: 'spl', + } as const; + +export type CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum = + typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum[keyof typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum]; + +/** + * + * @export + * @interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1 + */ +export interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1 { /** * * @type {string} - * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread - */ - url?: string | null; - /** - * - * @type {MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity} - * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1 */ - Community: MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity; + source_type: CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum; /** * - * @type {MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress} - * @memberof MutationSubscriptionCreateThreadSubscription200ResponseThread + * @type {number} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1 */ - Address: MutationSubscriptionCreateCommentSubscription200ResponseCommentThreadAddress; + evm_chain_id: number; } + +export const CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum = + { + EthNative: 'eth_native', + } as const; + +export type CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum = + typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum[keyof typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum]; + /** * * @export - * @interface MutationSubscriptionCreateThreadSubscriptionRequest + * @interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 */ -export interface MutationSubscriptionCreateThreadSubscriptionRequest { +export interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 { /** * - * @type {number} - * @memberof MutationSubscriptionCreateThreadSubscriptionRequest + * @type {string} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 */ - thread_id: number; -} -/** - * - * @export - * @interface MutationSubscriptionDeleteCommentSubscriptionRequest - */ -export interface MutationSubscriptionDeleteCommentSubscriptionRequest { + source_type: CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum; /** * - * @type {Array} - * @memberof MutationSubscriptionDeleteCommentSubscriptionRequest + * @type {string} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 */ - comment_ids: Array; -} -/** - * - * @export - * @interface MutationSubscriptionDeleteCommunityAlertRequest - */ -export interface MutationSubscriptionDeleteCommunityAlertRequest { + cosmos_chain_id: string; /** * - * @type {Array} - * @memberof MutationSubscriptionDeleteCommunityAlertRequest + * @type {string} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 */ - community_ids: Array; + token_symbol: string; } + +export const CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum = + { + CosmosNative: 'cosmos_native', + } as const; + +export type CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum = + typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum[keyof typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum]; + /** * * @export - * @interface MutationSubscriptionDeleteThreadSubscriptionRequest + * @interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 */ -export interface MutationSubscriptionDeleteThreadSubscriptionRequest { +export interface CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 { /** * - * @type {Array} - * @memberof MutationSubscriptionDeleteThreadSubscriptionRequest + * @type {string} + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 */ - thread_ids: Array; -} -/** - * - * @export - * @interface MutationSubscriptionRegisterClientRegistrationTokenRequest - */ -export interface MutationSubscriptionRegisterClientRegistrationTokenRequest { + source_type: CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum; /** * * @type {string} - * @memberof MutationSubscriptionRegisterClientRegistrationTokenRequest + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 */ - token: string; + cosmos_chain_id: string; /** * * @type {string} - * @memberof MutationSubscriptionRegisterClientRegistrationTokenRequest + * @memberof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 */ - channelType: MutationSubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum; + contract_address: string; } -export const MutationSubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum = +export const CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum = { - Apns: 'APNS', - Fcm: 'FCM', + Cw721: 'cw721', + Cw20: 'cw20', } as const; -export type MutationSubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum = - typeof MutationSubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum[keyof typeof MutationSubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum]; +export type CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum = + typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum[keyof typeof CommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum]; /** * * @export - * @interface MutationSubscriptionUpdateSubscriptionPreferencesRequest + * @interface CommunityGetCommunity200ResponseTopicsInner */ -export interface MutationSubscriptionUpdateSubscriptionPreferencesRequest { +export interface CommunityGetCommunity200ResponseTopicsInner { /** * - * @type {boolean} - * @memberof MutationSubscriptionUpdateSubscriptionPreferencesRequest + * @type {number} + * @memberof CommunityGetCommunity200ResponseTopicsInner */ - email_notifications_enabled?: boolean; + id?: number; /** * - * @type {boolean} - * @memberof MutationSubscriptionUpdateSubscriptionPreferencesRequest + * @type {string} + * @memberof CommunityGetCommunity200ResponseTopicsInner */ - digest_email_enabled?: boolean; + name?: string; /** * - * @type {boolean} - * @memberof MutationSubscriptionUpdateSubscriptionPreferencesRequest + * @type {string} + * @memberof CommunityGetCommunity200ResponseTopicsInner */ - recap_email_enabled?: boolean; + community_id: string; /** * - * @type {boolean} - * @memberof MutationSubscriptionUpdateSubscriptionPreferencesRequest + * @type {string} + * @memberof CommunityGetCommunity200ResponseTopicsInner */ - mobile_push_notifications_enabled?: boolean; + description?: string; /** * - * @type {boolean} - * @memberof MutationSubscriptionUpdateSubscriptionPreferencesRequest + * @type {string} + * @memberof CommunityGetCommunity200ResponseTopicsInner */ - mobile_push_discussion_activity_enabled?: boolean; + telegram?: string | null; /** * * @type {boolean} - * @memberof MutationSubscriptionUpdateSubscriptionPreferencesRequest + * @memberof CommunityGetCommunity200ResponseTopicsInner */ - mobile_push_admin_alerts_enabled?: boolean; -} -/** - * - * @export - * @interface MutationUserUpdateUser200Response - */ -export interface MutationUserUpdateUser200Response { + featured_in_sidebar?: boolean; /** * - * @type {number} - * @memberof MutationUserUpdateUser200Response + * @type {boolean} + * @memberof CommunityGetCommunity200ResponseTopicsInner */ - id?: number; + featured_in_new_post?: boolean; /** * * @type {string} - * @memberof MutationUserUpdateUser200Response + * @memberof CommunityGetCommunity200ResponseTopicsInner */ - email?: string | null; + default_offchain_template?: string | null; /** * - * @type {boolean} - * @memberof MutationUserUpdateUser200Response + * @type {number} + * @memberof CommunityGetCommunity200ResponseTopicsInner */ - isAdmin?: boolean; + order?: number | null; /** * - * @type {boolean} - * @memberof MutationUserUpdateUser200Response + * @type {string} + * @memberof CommunityGetCommunity200ResponseTopicsInner */ - disableRichText?: boolean; + channel_id?: string | null; /** * - * @type {boolean} - * @memberof MutationUserUpdateUser200Response + * @type {Array} + * @memberof CommunityGetCommunity200ResponseTopicsInner */ - emailVerified?: boolean | null; + group_ids?: Array; /** * * @type {string} - * @memberof MutationUserUpdateUser200Response + * @memberof CommunityGetCommunity200ResponseTopicsInner */ - selected_community_id?: string | null; + default_offchain_template_backup?: string | null; +} +/** + * + * @export + * @interface CommunityGetMembers200Response + */ +export interface CommunityGetMembers200Response { /** * - * @type {string} - * @memberof MutationUserUpdateUser200Response + * @type {number} + * @memberof CommunityGetMembers200Response */ - emailNotificationInterval?: MutationUserUpdateUser200ResponseEmailNotificationIntervalEnum; + limit: number; /** * - * @type {boolean} - * @memberof MutationUserUpdateUser200Response + * @type {number} + * @memberof CommunityGetMembers200Response */ - promotional_emails_enabled?: boolean | null; + page: number; /** * - * @type {boolean} - * @memberof MutationUserUpdateUser200Response + * @type {number} + * @memberof CommunityGetMembers200Response */ - is_welcome_onboard_flow_complete?: boolean; + totalPages: number; /** * - * @type {MutationUserUpdateUserRequestProfile} - * @memberof MutationUserUpdateUser200Response + * @type {number} + * @memberof CommunityGetMembers200Response */ - profile: MutationUserUpdateUserRequestProfile; + totalResults: number; /** * - * @type {any} - * @memberof MutationUserUpdateUser200Response + * @type {Array} + * @memberof CommunityGetMembers200Response */ - created_at?: any; + results: Array; +} +/** + * + * @export + * @interface CommunityGetMembers200ResponseResultsInner + */ +export interface CommunityGetMembers200ResponseResultsInner { /** * - * @type {any} - * @memberof MutationUserUpdateUser200Response + * @type {number} + * @memberof CommunityGetMembers200ResponseResultsInner */ - updated_at?: any; + user_id: number; /** * - * @type {Array} - * @memberof MutationUserUpdateUser200Response + * @type {string} + * @memberof CommunityGetMembers200ResponseResultsInner */ - ProfileTags?: Array; -} - -export const MutationUserUpdateUser200ResponseEmailNotificationIntervalEnum = { - Weekly: 'weekly', - Never: 'never', -} as const; - -export type MutationUserUpdateUser200ResponseEmailNotificationIntervalEnum = - typeof MutationUserUpdateUser200ResponseEmailNotificationIntervalEnum[keyof typeof MutationUserUpdateUser200ResponseEmailNotificationIntervalEnum]; - -/** - * - * @export - * @interface MutationUserUpdateUserDefaultResponse - */ -export interface MutationUserUpdateUserDefaultResponse { + profile_name?: string | null; /** * * @type {string} - * @memberof MutationUserUpdateUserDefaultResponse + * @memberof CommunityGetMembers200ResponseResultsInner */ - message: string; + avatar_url?: string | null; /** * - * @type {string} - * @memberof MutationUserUpdateUserDefaultResponse + * @type {Array} + * @memberof CommunityGetMembers200ResponseResultsInner */ - code: string; + addresses: Array; /** * - * @type {Array} - * @memberof MutationUserUpdateUserDefaultResponse + * @type {Array} + * @memberof CommunityGetMembers200ResponseResultsInner + */ + group_ids: Array; + /** + * string or date + * @type {any} + * @memberof CommunityGetMembers200ResponseResultsInner */ - issues?: Array; + last_active?: any | null; } /** * * @export - * @interface MutationUserUpdateUserDefaultResponseIssuesInner + * @interface CommunityGetMembers200ResponseResultsInnerAddressesInner */ -export interface MutationUserUpdateUserDefaultResponseIssuesInner { +export interface CommunityGetMembers200ResponseResultsInnerAddressesInner { + /** + * + * @type {number} + * @memberof CommunityGetMembers200ResponseResultsInnerAddressesInner + */ + id: number; /** * * @type {string} - * @memberof MutationUserUpdateUserDefaultResponseIssuesInner + * @memberof CommunityGetMembers200ResponseResultsInnerAddressesInner */ - message: string; -} -/** - * - * @export - * @interface MutationUserUpdateUserRequest - */ -export interface MutationUserUpdateUserRequest { + community_id: string; /** * * @type {string} - * @memberof MutationUserUpdateUserRequest + * @memberof CommunityGetMembers200ResponseResultsInnerAddressesInner */ - email?: string | null; + address: string; /** * - * @type {boolean} - * @memberof MutationUserUpdateUserRequest + * @type {number} + * @memberof CommunityGetMembers200ResponseResultsInnerAddressesInner */ - isAdmin?: boolean; + stake_balance?: number | null; /** * - * @type {boolean} - * @memberof MutationUserUpdateUserRequest + * @type {string} + * @memberof CommunityGetMembers200ResponseResultsInnerAddressesInner */ - disableRichText?: boolean; + role: string; +} +/** + * + * @export + * @interface CommunityGetMembersMembershipsParameter + */ +export interface CommunityGetMembersMembershipsParameter {} +/** + * + * @export + * @interface CommunityGetStake200Response + */ +export interface CommunityGetStake200Response { /** * - * @type {boolean} - * @memberof MutationUserUpdateUserRequest + * @type {number} + * @memberof CommunityGetStake200Response */ - emailVerified?: boolean | null; + id?: number; /** * * @type {string} - * @memberof MutationUserUpdateUserRequest + * @memberof CommunityGetStake200Response */ - selected_community_id?: string | null; + community_id: string; /** * - * @type {string} - * @memberof MutationUserUpdateUserRequest + * @type {number} + * @memberof CommunityGetStake200Response */ - emailNotificationInterval?: MutationUserUpdateUserRequestEmailNotificationIntervalEnum; + stake_id?: number; /** * - * @type {boolean} - * @memberof MutationUserUpdateUserRequest + * @type {string} + * @memberof CommunityGetStake200Response */ - promotional_emails_enabled?: boolean | null; + stake_token?: string; /** * - * @type {MutationUserUpdateUserRequestProfile} - * @memberof MutationUserUpdateUserRequest + * @type {number} + * @memberof CommunityGetStake200Response */ - profile: MutationUserUpdateUserRequestProfile; + vote_weight?: number; /** * - * @type {any} - * @memberof MutationUserUpdateUserRequest + * @type {boolean} + * @memberof CommunityGetStake200Response */ - created_at?: any; + stake_enabled?: boolean; /** * - * @type {any} - * @memberof MutationUserUpdateUserRequest + * @type {string} + * @memberof CommunityGetStake200Response */ - updated_at?: any; + created_at?: string; /** * - * @type {Array} - * @memberof MutationUserUpdateUserRequest + * @type {string} + * @memberof CommunityGetStake200Response */ - ProfileTags?: Array; + updated_at?: string; /** * - * @type {Array} - * @memberof MutationUserUpdateUserRequest + * @type {Array} + * @memberof CommunityGetStake200Response */ - tag_ids?: Array | null; + StakeTransactions?: Array; } - -export const MutationUserUpdateUserRequestEmailNotificationIntervalEnum = { - Weekly: 'weekly', - Never: 'never', -} as const; - -export type MutationUserUpdateUserRequestEmailNotificationIntervalEnum = - typeof MutationUserUpdateUserRequestEmailNotificationIntervalEnum[keyof typeof MutationUserUpdateUserRequestEmailNotificationIntervalEnum]; - /** * * @export - * @interface MutationUserUpdateUserRequestProfile + * @interface CommunityGetStakeHistoricalPrice200ResponseInner */ -export interface MutationUserUpdateUserRequestProfile { +export interface CommunityGetStakeHistoricalPrice200ResponseInner { /** * * @type {string} - * @memberof MutationUserUpdateUserRequestProfile + * @memberof CommunityGetStakeHistoricalPrice200ResponseInner */ - name?: string | null; + community_id: string; /** * * @type {string} - * @memberof MutationUserUpdateUserRequestProfile + * @memberof CommunityGetStakeHistoricalPrice200ResponseInner */ - email?: string | null; + old_price?: string | null; +} +/** + * + * @export + * @interface CommunityGetStakeTransaction200ResponseInner + */ +export interface CommunityGetStakeTransaction200ResponseInner { /** * * @type {string} - * @memberof MutationUserUpdateUserRequestProfile + * @memberof CommunityGetStakeTransaction200ResponseInner */ - website?: string | null; + transaction_hash: string; /** * * @type {string} - * @memberof MutationUserUpdateUserRequestProfile + * @memberof CommunityGetStakeTransaction200ResponseInner */ - bio?: string | null; + address: string; /** * * @type {string} - * @memberof MutationUserUpdateUserRequestProfile + * @memberof CommunityGetStakeTransaction200ResponseInner */ - avatar_url?: string | null; + stake_price: string; /** * - * @type {string} - * @memberof MutationUserUpdateUserRequestProfile + * @type {number} + * @memberof CommunityGetStakeTransaction200ResponseInner */ - slug?: string | null; + stake_amount: number; /** * - * @type {Array} - * @memberof MutationUserUpdateUserRequestProfile + * @type {number} + * @memberof CommunityGetStakeTransaction200ResponseInner */ - socials?: Array | null; + vote_weight: number; /** * - * @type {MutationUserUpdateUserRequestProfileBackgroundImage} - * @memberof MutationUserUpdateUserRequestProfile + * @type {number} + * @memberof CommunityGetStakeTransaction200ResponseInner */ - background_image?: MutationUserUpdateUserRequestProfileBackgroundImage | null; -} -/** - * - * @export - * @interface MutationUserUpdateUserRequestProfileBackgroundImage - */ -export interface MutationUserUpdateUserRequestProfileBackgroundImage { + timestamp: number; /** * * @type {string} - * @memberof MutationUserUpdateUserRequestProfileBackgroundImage + * @memberof CommunityGetStakeTransaction200ResponseInner */ - url?: string; + stake_direction: string; /** * - * @type {string} - * @memberof MutationUserUpdateUserRequestProfileBackgroundImage + * @type {CommunityGetStakeTransaction200ResponseInnerCommunity} + * @memberof CommunityGetStakeTransaction200ResponseInner */ - imageBehavior?: string; + community: CommunityGetStakeTransaction200ResponseInnerCommunity; } /** * * @export - * @interface MutationUserUpdateUserRequestProfileTagsInner + * @interface CommunityGetStakeTransaction200ResponseInnerCommunity */ -export interface MutationUserUpdateUserRequestProfileTagsInner { +export interface CommunityGetStakeTransaction200ResponseInnerCommunity { /** * - * @type {number} - * @memberof MutationUserUpdateUserRequestProfileTagsInner + * @type {string} + * @memberof CommunityGetStakeTransaction200ResponseInnerCommunity */ - user_id: number; + id: string; /** * - * @type {number} - * @memberof MutationUserUpdateUserRequestProfileTagsInner + * @type {string} + * @memberof CommunityGetStakeTransaction200ResponseInnerCommunity */ - tag_id: number; + default_symbol?: string | null; /** * * @type {string} - * @memberof MutationUserUpdateUserRequestProfileTagsInner + * @memberof CommunityGetStakeTransaction200ResponseInnerCommunity */ - created_at?: string; + icon_url?: string | null; /** * * @type {string} - * @memberof MutationUserUpdateUserRequestProfileTagsInner + * @memberof CommunityGetStakeTransaction200ResponseInnerCommunity */ - updated_at?: string; + name: string; + /** + * + * @type {number} + * @memberof CommunityGetStakeTransaction200ResponseInnerCommunity + */ + chain_node_id?: number | null; } /** * * @export - * @interface QueryCommunityGetCommunity200Response + * @interface CommunitySetStake200Response */ -export interface QueryCommunityGetCommunity200Response { +export interface CommunitySetStake200Response { /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ name: string; /** * * @type {number} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ chain_node_id: number; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ default_symbol?: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ - network?: QueryCommunityGetCommunity200ResponseNetworkEnum; + network?: CommunitySetStake200ResponseNetworkEnum; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ - base: QueryCommunityGetCommunity200ResponseBaseEnum; + base: CommunitySetStake200ResponseBaseEnum; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ icon_url?: string | null; /** * * @type {boolean} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ active: boolean; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ - type?: QueryCommunityGetCommunity200ResponseTypeEnum; + type?: CommunitySetStake200ResponseTypeEnum; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ id?: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ description?: string; /** * * @type {Array} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ social_links?: Array; /** * * @type {number} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ ss58_prefix?: number; /** * * @type {boolean} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ stages_enabled?: boolean; /** * * @type {Array} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ custom_stages?: Array; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ custom_domain?: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ block_explorer_ids?: string; /** * * @type {boolean} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ collapsed_on_homepage?: boolean; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ substrate_spec?: string; /** * * @type {boolean} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ has_chain_events_listener?: boolean; /** * * @type {boolean} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ default_summary_view?: boolean; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ - default_page?: QueryCommunityGetCommunity200ResponseDefaultPageEnum; + default_page?: CommunitySetStake200ResponseDefaultPageEnum; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ - has_homepage?: QueryCommunityGetCommunity200ResponseHasHomepageEnum | null; + has_homepage?: CommunitySetStake200ResponseHasHomepageEnum | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ terms?: string; /** * * @type {boolean} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ admin_only_polling?: boolean; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ bech32_prefix?: string; /** * * @type {boolean} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ hide_projects?: boolean; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ token_name?: string; /** * * @type {boolean} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ ce_verbose?: boolean; /** * * @type {number} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ discord_config_id?: number | null; /** * * @type {any} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ category?: any; /** * * @type {boolean} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ discord_bot_webhooks_enabled?: boolean; /** * * @type {boolean} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ directory_page_enabled?: boolean; /** * * @type {number} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ directory_page_chain_node_id?: number; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ namespace?: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ namespace_address?: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ redirect?: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ created_at?: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ updated_at?: string; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200Response + * @type {Array} + * @memberof CommunitySetStake200Response */ - Addresses?: Array; + Addresses?: Array; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200Response + * @type {Array} + * @memberof CommunitySetStake200Response */ - CommunityStakes?: Array; + CommunityStakes?: Array; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200Response + * @type {Array} + * @memberof CommunitySetStake200Response */ - CommunityTags?: Array; + CommunityTags?: Array; /** * - * @type {QueryCommunityGetCommunity200ResponseChainNode} - * @memberof QueryCommunityGetCommunity200Response + * @type {CommunityGetCommunity200ResponseChainNode} + * @memberof CommunitySetStake200Response */ - ChainNode?: QueryCommunityGetCommunity200ResponseChainNode; + ChainNode?: CommunityGetCommunity200ResponseChainNode; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200Response + * @type {Array} + * @memberof CommunitySetStake200Response */ - topics?: Array; + topics?: Array; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200Response + * @type {Array} + * @memberof CommunitySetStake200Response */ - groups?: Array; + groups?: Array; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200Response + * @type {Array} + * @memberof CommunitySetStake200Response */ - contest_managers?: Array; + contest_managers?: Array; /** * * @type {Array} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ snapshot_spaces?: Array; /** * * @type {boolean} - * @memberof QueryCommunityGetCommunity200Response + * @memberof CommunitySetStake200Response */ include_in_digest_email?: boolean | null; } -export const QueryCommunityGetCommunity200ResponseNetworkEnum = { +export const CommunitySetStake200ResponseNetworkEnum = { Edgeware: 'edgeware', EdgewareTestnet: 'edgeware-testnet', Kusama: 'kusama', @@ -2350,9 +2376,9 @@ export const QueryCommunityGetCommunity200ResponseNetworkEnum = { Cosmos: 'cosmos', } as const; -export type QueryCommunityGetCommunity200ResponseNetworkEnum = - typeof QueryCommunityGetCommunity200ResponseNetworkEnum[keyof typeof QueryCommunityGetCommunity200ResponseNetworkEnum]; -export const QueryCommunityGetCommunity200ResponseBaseEnum = { +export type CommunitySetStake200ResponseNetworkEnum = + typeof CommunitySetStake200ResponseNetworkEnum[keyof typeof CommunitySetStake200ResponseNetworkEnum]; +export const CommunitySetStake200ResponseBaseEnum = { Cosmos: 'cosmos', Substrate: 'substrate', Ethereum: 'ethereum', @@ -2360,2473 +2386,2443 @@ export const QueryCommunityGetCommunity200ResponseBaseEnum = { Solana: 'solana', } as const; -export type QueryCommunityGetCommunity200ResponseBaseEnum = - typeof QueryCommunityGetCommunity200ResponseBaseEnum[keyof typeof QueryCommunityGetCommunity200ResponseBaseEnum]; -export const QueryCommunityGetCommunity200ResponseTypeEnum = { +export type CommunitySetStake200ResponseBaseEnum = + typeof CommunitySetStake200ResponseBaseEnum[keyof typeof CommunitySetStake200ResponseBaseEnum]; +export const CommunitySetStake200ResponseTypeEnum = { Chain: 'chain', Dao: 'dao', Token: 'token', Offchain: 'offchain', } as const; -export type QueryCommunityGetCommunity200ResponseTypeEnum = - typeof QueryCommunityGetCommunity200ResponseTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseTypeEnum]; -export const QueryCommunityGetCommunity200ResponseDefaultPageEnum = { +export type CommunitySetStake200ResponseTypeEnum = + typeof CommunitySetStake200ResponseTypeEnum[keyof typeof CommunitySetStake200ResponseTypeEnum]; +export const CommunitySetStake200ResponseDefaultPageEnum = { AllDiscussionsView: 'default_all_discussions_view', SummaryView: 'default_summary_view', } as const; -export type QueryCommunityGetCommunity200ResponseDefaultPageEnum = - typeof QueryCommunityGetCommunity200ResponseDefaultPageEnum[keyof typeof QueryCommunityGetCommunity200ResponseDefaultPageEnum]; -export const QueryCommunityGetCommunity200ResponseHasHomepageEnum = { +export type CommunitySetStake200ResponseDefaultPageEnum = + typeof CommunitySetStake200ResponseDefaultPageEnum[keyof typeof CommunitySetStake200ResponseDefaultPageEnum]; +export const CommunitySetStake200ResponseHasHomepageEnum = { True: 'true', False: 'false', } as const; -export type QueryCommunityGetCommunity200ResponseHasHomepageEnum = - typeof QueryCommunityGetCommunity200ResponseHasHomepageEnum[keyof typeof QueryCommunityGetCommunity200ResponseHasHomepageEnum]; +export type CommunitySetStake200ResponseHasHomepageEnum = + typeof CommunitySetStake200ResponseHasHomepageEnum[keyof typeof CommunitySetStake200ResponseHasHomepageEnum]; /** * * @export - * @interface QueryCommunityGetCommunity200ResponseAddressesInner + * @interface CommunitySetStakeRequest */ -export interface QueryCommunityGetCommunity200ResponseAddressesInner { +export interface CommunitySetStakeRequest { /** * * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @memberof CommunitySetStakeRequest */ - id?: number; + stake_id: number; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @memberof CommunitySetStakeRequest */ - address: string; + stake_token?: string; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @type {number} + * @memberof CommunitySetStakeRequest */ - community_id?: string; + vote_weight?: number; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @type {boolean} + * @memberof CommunitySetStakeRequest */ - user_id?: number | null; + stake_enabled?: boolean; +} +/** + * + * @export + * @interface ContestCreateContestMetadata200Response + */ +export interface ContestCreateContestMetadata200Response { /** * + * @type {Array} + * @memberof ContestCreateContestMetadata200Response + */ + contest_managers: Array; +} +/** + * + * @export + * @interface ContestCreateContestMetadataRequest + */ +export interface ContestCreateContestMetadataRequest { + /** + * On-Chain contest manager address * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @memberof ContestCreateContestMetadataRequest */ - verification_token?: string; + contest_address: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @memberof ContestCreateContestMetadataRequest */ - verification_token_expires?: string | null; + name: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @memberof ContestCreateContestMetadataRequest */ - verified?: string | null; + image_url?: string; /** - * + * Provided by admin on creation when stake funds are not used * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @memberof ContestCreateContestMetadataRequest */ - last_active?: string | null; + funding_token_address?: string; /** - * - * @type {boolean} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * Percentage of pool used for prizes in recurring contests + * @type {number} + * @memberof ContestCreateContestMetadataRequest */ - is_councillor?: boolean; + prize_percentage?: number; + /** + * Sorted array of percentages for prize, from first to last + * @type {Array} + * @memberof ContestCreateContestMetadataRequest + */ + payout_structure: Array; + /** + * Recurring contest interval in seconds, 0 when one-off + * @type {number} + * @memberof ContestCreateContestMetadataRequest + */ + interval: number; /** * - * @type {boolean} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @type {string} + * @memberof ContestCreateContestMetadataRequest */ - is_validator?: boolean; + ticker?: string; /** * - * @type {boolean} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @type {number} + * @memberof ContestCreateContestMetadataRequest */ - ghost_address?: boolean; + decimals?: number; /** * + * @type {Array} + * @memberof ContestCreateContestMetadataRequest + */ + topic_ids?: Array; +} +/** + * On-Chain Contest Manager + * @export + * @interface ContestGetAllContests200ResponseInner + */ +export interface ContestGetAllContests200ResponseInner { + /** + * On-Chain contest manager address * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @memberof ContestGetAllContests200ResponseInner */ - wallet_id?: QueryCommunityGetCommunity200ResponseAddressesInnerWalletIdEnum; + contest_address: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @memberof ContestGetAllContests200ResponseInner */ - block_info?: string; + community_id: string; /** * - * @type {boolean} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @type {string} + * @memberof ContestGetAllContests200ResponseInner */ - is_user_default?: boolean; + name: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @memberof ContestGetAllContests200ResponseInner */ - role?: QueryCommunityGetCommunity200ResponseAddressesInnerRoleEnum; + image_url?: string; /** - * + * Provided by admin on creation when stake funds are not used * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @memberof ContestGetAllContests200ResponseInner + */ + funding_token_address?: string | null; + /** + * Percentage of pool used for prizes in recurring contests + * @type {number} + * @memberof ContestGetAllContests200ResponseInner + */ + prize_percentage?: number | null; + /** + * Sorted array of percentages for prize, from first to last + * @type {Array} + * @memberof ContestGetAllContests200ResponseInner + */ + payout_structure: Array; + /** + * Recurring contest interval, 0 when one-off + * @type {number} + * @memberof ContestGetAllContests200ResponseInner */ - wallet_sso_source?: QueryCommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum; + interval: number; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @memberof ContestGetAllContests200ResponseInner */ - hex?: string; + ticker?: string; /** * - * @type {any} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @type {number} + * @memberof ContestGetAllContests200ResponseInner */ - created_at?: any; + decimals?: number; /** * - * @type {any} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @type {string} + * @memberof ContestGetAllContests200ResponseInner */ - updated_at?: any; + created_at: string; + /** + * Flags when contest policy is cancelled by admin + * @type {boolean} + * @memberof ContestGetAllContests200ResponseInner + */ + cancelled?: boolean | null; + /** + * Flags when the one-off contest has ended and rollover was completed + * @type {boolean} + * @memberof ContestGetAllContests200ResponseInner + */ + ended?: boolean | null; + /** + * + * @type {Array} + * @memberof ContestGetAllContests200ResponseInner + */ + topics: Array; /** * - * @type {MutationUserUpdateUser200Response} - * @memberof QueryCommunityGetCommunity200ResponseAddressesInner + * @type {Array} + * @memberof ContestGetAllContests200ResponseInner */ - User?: MutationUserUpdateUser200Response; + contests: Array; } - -export const QueryCommunityGetCommunity200ResponseAddressesInnerWalletIdEnum = { - Magic: 'magic', - Polkadot: 'polkadot', - Metamask: 'metamask', - Walletconnect: 'walletconnect', - KeplrEthereum: 'keplr-ethereum', - Keplr: 'keplr', - Leap: 'leap', - Near: 'near', - Terrastation: 'terrastation', - TerraWalletconnect: 'terra-walletconnect', - CosmMetamask: 'cosm-metamask', - Phantom: 'phantom', - Coinbase: 'coinbase', -} as const; - -export type QueryCommunityGetCommunity200ResponseAddressesInnerWalletIdEnum = - typeof QueryCommunityGetCommunity200ResponseAddressesInnerWalletIdEnum[keyof typeof QueryCommunityGetCommunity200ResponseAddressesInnerWalletIdEnum]; -export const QueryCommunityGetCommunity200ResponseAddressesInnerRoleEnum = { - Admin: 'admin', - Moderator: 'moderator', - Member: 'member', -} as const; - -export type QueryCommunityGetCommunity200ResponseAddressesInnerRoleEnum = - typeof QueryCommunityGetCommunity200ResponseAddressesInnerRoleEnum[keyof typeof QueryCommunityGetCommunity200ResponseAddressesInnerRoleEnum]; -export const QueryCommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum = - { - Google: 'google', - Github: 'github', - Discord: 'discord', - Twitter: 'twitter', - Apple: 'apple', - Email: 'email', - Unknown: 'unknown', - } as const; - -export type QueryCommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum = - typeof QueryCommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum[keyof typeof QueryCommunityGetCommunity200ResponseAddressesInnerWalletSsoSourceEnum]; - /** - * + * On-Chain contest instance * @export - * @interface QueryCommunityGetCommunity200ResponseChainNode + * @interface ContestGetAllContests200ResponseInnerContestsInner */ -export interface QueryCommunityGetCommunity200ResponseChainNode { +export interface ContestGetAllContests200ResponseInnerContestsInner { /** - * + * On-Chain contest id, 0 when one-off * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @memberof ContestGetAllContests200ResponseInnerContestsInner */ - id?: number; + contest_id: number; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @memberof ContestGetAllContests200ResponseInnerContestsInner */ - url: string; + start_time: string; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @type {string} + * @memberof ContestGetAllContests200ResponseInnerContestsInner */ - eth_chain_id?: number; + end_time: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @memberof ContestGetAllContests200ResponseInnerContestsInner */ - alt_wallet_url?: string; + score_updated_at?: string | null; + /** + * Contest score, sorted from first to last + * @type {Array} + * @memberof ContestGetAllContests200ResponseInnerContestsInner + */ + score?: Array | null; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @type {Array} + * @memberof ContestGetAllContests200ResponseInnerContestsInner */ - private_url?: string; + actions?: Array | null; +} +/** + * + * @export + * @interface ContestGetAllContests200ResponseInnerTopicsInner + */ +export interface ContestGetAllContests200ResponseInnerTopicsInner { /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @type {number} + * @memberof ContestGetAllContests200ResponseInnerTopicsInner */ - balance_type: QueryCommunityGetCommunity200ResponseChainNodeBalanceTypeEnum; + id: number; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @memberof ContestGetAllContests200ResponseInnerTopicsInner */ name: string; +} +/** + * + * @export + * @interface ContestGetContestLog200ResponseInner + */ +export interface ContestGetContestLog200ResponseInner { /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @memberof ContestGetContestLog200ResponseInner */ - description?: string; + event_name: string; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @type {object} + * @memberof ContestGetContestLog200ResponseInner */ - ss58?: number; + event_payload: object; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @memberof ContestGetContestLog200ResponseInner */ - bech32?: string; + contest_address: string; /** * * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseChainNode - */ - slip44?: number; - /** - * - * @type {any} - * @memberof QueryCommunityGetCommunity200ResponseChainNode - */ - created_at?: any; - /** - * - * @type {any} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @memberof ContestGetContestLog200ResponseInner */ - updated_at?: any; + contest_id: number; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @memberof ContestGetContestLog200ResponseInner */ - cosmos_chain_id?: string; + action?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @memberof ContestGetContestLog200ResponseInner */ - cosmos_gov_version?: QueryCommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum; + actor_address?: string | null; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @type {number} + * @memberof ContestGetContestLog200ResponseInner */ - health?: QueryCommunityGetCommunity200ResponseChainNodeHealthEnum; + voting_power?: number | null; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @type {number} + * @memberof ContestGetContestLog200ResponseInner */ - contracts?: Array; + thread_id?: number | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @memberof ContestGetContestLog200ResponseInner */ - block_explorer?: string; + thread_title?: string | null; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseChainNode + * @type {string} + * @memberof ContestGetContestLog200ResponseInner */ - max_ce_block_range?: number | null; + created_at: string; } - -export const QueryCommunityGetCommunity200ResponseChainNodeBalanceTypeEnum = { - Terra: 'terra', - Ethereum: 'ethereum', - Solana: 'solana', - Cosmos: 'cosmos', - Near: 'near', - Substrate: 'substrate', -} as const; - -export type QueryCommunityGetCommunity200ResponseChainNodeBalanceTypeEnum = - typeof QueryCommunityGetCommunity200ResponseChainNodeBalanceTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseChainNodeBalanceTypeEnum]; -export const QueryCommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum = - { - V1: 'v1', - V1beta1: 'v1beta1', - V1beta1AttemptFailed: 'v1beta1-attempt-failed', - V1AttemptFailed: 'v1-attempt-failed', - } as const; - -export type QueryCommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum = - typeof QueryCommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum[keyof typeof QueryCommunityGetCommunity200ResponseChainNodeCosmosGovVersionEnum]; -export const QueryCommunityGetCommunity200ResponseChainNodeHealthEnum = { - Failed: 'failed', - Healthy: 'healthy', -} as const; - -export type QueryCommunityGetCommunity200ResponseChainNodeHealthEnum = - typeof QueryCommunityGetCommunity200ResponseChainNodeHealthEnum[keyof typeof QueryCommunityGetCommunity200ResponseChainNodeHealthEnum]; - /** * * @export - * @interface QueryCommunityGetCommunity200ResponseChainNodeContractsInner + * @interface ContestUpdateContestMetadataRequest */ -export interface QueryCommunityGetCommunity200ResponseChainNodeContractsInner { - /** - * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner - */ - id: number; +export interface ContestUpdateContestMetadataRequest { /** - * + * On-Chain contest manager address * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + * @memberof ContestUpdateContestMetadataRequest */ - address: string; + contest_address: string; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + * @type {string} + * @memberof ContestUpdateContestMetadataRequest */ - chain_node_id: number; + name?: string; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + * @type {string} + * @memberof ContestUpdateContestMetadataRequest */ - abi_id?: number | null; + image_url?: string; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + * @type {Array} + * @memberof ContestUpdateContestMetadataRequest */ - decimals?: number; + topic_ids?: Array; +} +/** + * + * @export + * @interface FeedGetChainActivity200ResponseInner + */ +export interface FeedGetChainActivity200ResponseInner { /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + * @memberof FeedGetChainActivity200ResponseInner */ - token_name?: string; + community_id: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + * @memberof FeedGetChainActivity200ResponseInner */ - symbol?: string; + network: string; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + * @type {number} + * @memberof FeedGetChainActivity200ResponseInner */ - type: string; + block_number: number; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + * @type {FeedGetChainActivity200ResponseInnerEventData} + * @memberof FeedGetChainActivity200ResponseInner */ - created_at: string; + event_data: FeedGetChainActivity200ResponseInnerEventData; +} +/** + * + * @export + * @interface FeedGetChainActivity200ResponseInnerEventData + */ +export interface FeedGetChainActivity200ResponseInnerEventData { /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner - */ - updated_at: string; - /** - * - * @type {boolean} - * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + * @memberof FeedGetChainActivity200ResponseInnerEventData */ - is_factory?: boolean; + id: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseChainNodeContractsInner + * @memberof FeedGetChainActivity200ResponseInnerEventData */ - nickname?: string; + kind: string; } /** * * @export - * @interface QueryCommunityGetCommunity200ResponseCommunityStakesInner + * @interface FeedGetUserActivity200ResponseInner */ -export interface QueryCommunityGetCommunity200ResponseCommunityStakesInner { +export interface FeedGetUserActivity200ResponseInner { /** * * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + * @memberof FeedGetUserActivity200ResponseInner */ - id?: number; + thread_id: number; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + * @memberof FeedGetUserActivity200ResponseInner */ - community_id: string; + last_activity?: string; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + * @type {string} + * @memberof FeedGetUserActivity200ResponseInner */ - stake_id?: number; + notification_data: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + * @memberof FeedGetUserActivity200ResponseInner */ - stake_token?: string; + category_id: string; /** * * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + * @memberof FeedGetUserActivity200ResponseInner */ - vote_weight?: number; + comment_count: number; /** * - * @type {boolean} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + * @type {Array} + * @memberof FeedGetUserActivity200ResponseInner */ - stake_enabled?: boolean; + commenters: Array; +} +/** + * + * @export + * @interface FeedGetUserActivity200ResponseInnerCommentersInner + */ +export interface FeedGetUserActivity200ResponseInnerCommentersInner { /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + * @type {Array} + * @memberof FeedGetUserActivity200ResponseInnerCommentersInner */ - created_at?: string; + Addresses: Array; +} +/** + * + * @export + * @interface IntegrationsAnalyticsRequest + */ +export interface IntegrationsAnalyticsRequest { /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + * @type {IntegrationsAnalyticsRequestGroupCreated} + * @memberof IntegrationsAnalyticsRequest */ - updated_at?: string; + GroupCreated: IntegrationsAnalyticsRequestGroupCreated; + /** + * + * @type {IntegrationsAnalyticsRequestThreadCreated} + * @memberof IntegrationsAnalyticsRequest + */ + ThreadCreated: IntegrationsAnalyticsRequestThreadCreated; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInner + * @type {IntegrationsAnalyticsRequestCommentCreated} + * @memberof IntegrationsAnalyticsRequest */ - StakeTransactions?: Array; + CommentCreated: IntegrationsAnalyticsRequestCommentCreated; } /** * * @export - * @interface QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + * @interface IntegrationsAnalyticsRequestCommentCreated */ -export interface QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner { +export interface IntegrationsAnalyticsRequestCommentCreated { /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + * @type {number} + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - transaction_hash: string; + thread_id: number; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + * @type {number} + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - community_id: string; + address_id: number; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + * @type {string} + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - stake_id?: number; + text: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - address: string; + plaintext: string; /** * * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - stake_amount: number; + id?: number | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - stake_price?: string; + community_id: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - stake_direction: QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum; + parent_id?: string | null; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInner + * @type {Array} + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - timestamp: number; -} - -export const QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum = - { - Buy: 'buy', - Sell: 'sell', - } as const; - -export type QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum = - typeof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum[keyof typeof QueryCommunityGetCommunity200ResponseCommunityStakesInnerStakeTransactionsInnerStakeDirectionEnum]; - -/** - * - * @export - * @interface QueryCommunityGetCommunity200ResponseCommunityTagsInner - */ -export interface QueryCommunityGetCommunity200ResponseCommunityTagsInner { + version_history?: Array; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseCommunityTagsInner + * @type {boolean} + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - id?: number; + version_history_updated?: boolean; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseCommunityTagsInner + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - name: string; -} -/** - * On-Chain Contest Manager - * @export - * @interface QueryCommunityGetCommunity200ResponseContestManagersInner - */ -export interface QueryCommunityGetCommunity200ResponseContestManagersInner { + canvas_signed_data: string; /** - * On-Chain contest manager address + * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - contest_address: string; + canvas_hash: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - community_id: string; + created_by?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - name: string; + created_at?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - image_url?: string; + updated_at?: string | null; /** - * Provided by admin on creation when stake funds are not used + * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - funding_token_address?: string | null; + deleted_at?: string | null; /** - * Percentage of pool used for prizes in recurring contests - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * + * @type {string} + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - prize_percentage?: number | null; + marked_as_spam_at?: string | null; /** - * Sorted array of percentages for prize, from first to last - * @type {Array} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * + * @type {ThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta} + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - payout_structure: Array; + discord_meta?: ThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta | null; /** - * Recurring contest interval, 0 when one-off + * * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - interval: number; + reaction_count: number; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * @type {number} + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - ticker?: string; + reaction_weights_sum?: number; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * @type {IntegrationsAnalyticsRequestThreadCreatedAddress} + * @memberof IntegrationsAnalyticsRequestCommentCreated */ - decimals?: number; + Address?: IntegrationsAnalyticsRequestThreadCreatedAddress | null; +} +/** + * + * @export + * @interface IntegrationsAnalyticsRequestGroupCreated + */ +export interface IntegrationsAnalyticsRequestGroupCreated { /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * @memberof IntegrationsAnalyticsRequestGroupCreated */ - created_at: string; + groupId: string; /** - * Flags when contest policy is cancelled by admin - * @type {boolean} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * + * @type {string} + * @memberof IntegrationsAnalyticsRequestGroupCreated */ - cancelled?: boolean | null; + userId: string; +} +/** + * + * @export + * @interface IntegrationsAnalyticsRequestThreadCreated + */ +export interface IntegrationsAnalyticsRequestThreadCreated { /** - * Flags when the one-off contest has ended and rollover was completed - * @type {boolean} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * + * @type {IntegrationsAnalyticsRequestThreadCreatedAddress} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - ended?: boolean | null; + Address?: IntegrationsAnalyticsRequestThreadCreatedAddress | null; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * @type {number} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - topics?: Array; + address_id: number; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInner + * @type {string} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - contests?: Array; -} -/** - * On-Chain contest instance - * @export - * @interface QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner - */ -export interface QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner { + title: string; /** - * On-Chain contest manager address + * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - contest_address: string; + kind: string; /** - * On-Chain contest id, 0 when one-off + * + * @type {string} + * @memberof IntegrationsAnalyticsRequestThreadCreated + */ + stage: string; + /** + * * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - contest_id: number; + id?: number | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - start_time: string; + body?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - end_time: string; + plaintext?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - score_updated_at?: string | null; + url?: string | null; /** - * Contest score, sorted from first to last - * @type {Array} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + * + * @type {number} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - score?: Array | null; + topic_id?: number | null; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInner + * @type {boolean} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - actions?: Array | null; -} -/** - * On-Chain content related actions on contest instance - * @export - * @interface QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner - */ -export interface QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner { + pinned?: boolean | null; /** - * On-Chain contest manager address + * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - contest_address: string; - /** - * On-Chain contest id, 0 when one-off - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner - */ - contest_id: number; + community_id: string; /** - * On-Chain content id, 0 when adding + * * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - content_id: number; + view_count: number; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + * @type {Array} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - actor_address: string; + links?: Array | null; /** - * Type of content action - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + * + * @type {boolean} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - action: QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum; + read_only?: boolean | null; /** - * Content url - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + * + * @type {Array} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - content_url?: string | null; + version_history?: Array | null; /** - * Thread id mapped from content url - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + * + * @type {boolean} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - thread_id?: number | null; + has_poll?: boolean | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - thread_title?: string | null; + canvas_signed_data?: string | null; /** - * Voting power of address when action was recorded - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + * + * @type {string} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - voting_power: number; + canvas_hash?: string | null; /** - * Date-time when action was recorded + * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - created_at: string; -} - -export const QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum = - { - Added: 'added', - Upvoted: 'upvoted', - } as const; - -export type QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum = - typeof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum[keyof typeof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerActionsInnerActionEnum]; - -/** - * - * @export - * @interface QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner - */ -export interface QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner { + created_at?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - creator_address: string; + updated_at?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - content_id: string; + last_edited?: string | null; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner + * @type {string} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - votes: number; + deleted_at?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - prize: string; + last_commented_on?: string | null; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseContestManagersInnerContestsInnerScoreInner + * @type {string} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - tickerPrize?: number; -} -/** - * - * @export - * @interface QueryCommunityGetCommunity200ResponseGroupsInner - */ -export interface QueryCommunityGetCommunity200ResponseGroupsInner { + marked_as_spam_at?: string | null; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + * @type {string} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - id: number; + archived_at?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - community_id: string; + locked_at?: string | null; /** * - * @type {QueryCommunityGetCommunity200ResponseGroupsInnerMetadata} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + * @type {ThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - metadata: QueryCommunityGetCommunity200ResponseGroupsInnerMetadata; + discord_meta?: ThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta | null; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + * @type {number} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - requirements: Array; + reaction_count: number; /** * - * @type {boolean} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + * @type {number} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - is_system_managed?: boolean; + reaction_weights_sum: number; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + * @type {number} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - created_at?: string; + comment_count: number; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInner + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - updated_at?: string; -} -/** - * - * @export - * @interface QueryCommunityGetCommunity200ResponseGroupsInnerMetadata - */ -export interface QueryCommunityGetCommunity200ResponseGroupsInnerMetadata { + activity_rank_date?: string | null; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerMetadata + * @type {number} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - name: string; + max_notif_id: number; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerMetadata + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - description: string; + created_by?: string | null; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerMetadata + * @type {string} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - required_requirements?: number; + profile_name?: string | null; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerMetadata + * @type {Array} + * @memberof IntegrationsAnalyticsRequestThreadCreated */ - membership_ttl?: number; + contestManagers?: Array | null; } /** * * @export - * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInner + * @interface IntegrationsAnalyticsRequestThreadCreatedAddress */ -export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInner { +export interface IntegrationsAnalyticsRequestThreadCreatedAddress { /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInner + * @type {number} + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - rule: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum; + id?: number; /** * - * @type {QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInner + * @type {string} + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - data: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data; -} - -export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum = - { - Allow: 'allow', - } as const; - -export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum = - typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerRuleEnum]; - -/** - * - * @export - * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf - */ -export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf { + address: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - rule: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum; + community_id?: string; /** * - * @type {QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf + * @type {number} + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - data: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData; -} - -export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum = - { - Threshold: 'threshold', - } as const; - -export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum = - typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfRuleEnum]; - -/** - * - * @export - * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1 - */ -export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1 { + user_id?: number | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1 + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - rule: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum; + verification_token?: string; /** * - * @type {QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1 + * @type {string} + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - data: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data; -} - -export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum = - { - Allow: 'allow', - } as const; - -export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum = - typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1RuleEnum]; - -/** - * - * @export - * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data - */ -export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data { + verification_token_expires?: string | null; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOf1Data + * @type {string} + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - allow: Array; -} -/** - * - * @export - * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData - */ -export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData { + verified?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - threshold: string; + last_active?: string | null; /** * - * @type {QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfData + * @type {boolean} + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - source: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource; -} -/** - * - * @export - * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource - */ -export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource { + is_councillor?: boolean; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + * @type {boolean} + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - source_type: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum; + is_validator?: boolean; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + * @type {boolean} + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - evm_chain_id: number; + ghost_address?: boolean; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - contract_address: string; + wallet_id?: IntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - token_id?: string; + block_info?: string; + /** + * + * @type {boolean} + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress + */ + is_user_default?: boolean; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - cosmos_chain_id: string; + role?: IntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSource + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - token_symbol: string; -} - -export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum = - { - Cw721: 'cw721', - Cw20: 'cw20', - } as const; - -export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum = - typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceSourceTypeEnum]; - -/** - * - * @export - * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf - */ -export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf { + wallet_sso_source?: IntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - source_type: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum; + hex?: string; /** * - * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf + * @type {any} + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - evm_chain_id: number; + created_at?: any; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf + * @type {any} + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - contract_address: string; + updated_at?: any; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf + * @type {UserUpdateUser200Response} + * @memberof IntegrationsAnalyticsRequestThreadCreatedAddress */ - token_id?: string; + User?: UserUpdateUser200Response; } -export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum = +export const IntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum = { + Magic: 'magic', + Polkadot: 'polkadot', + Metamask: 'metamask', + Walletconnect: 'walletconnect', + KeplrEthereum: 'keplr-ethereum', + Keplr: 'keplr', + Leap: 'leap', + Near: 'near', + Terrastation: 'terrastation', + TerraWalletconnect: 'terra-walletconnect', + CosmMetamask: 'cosm-metamask', + Phantom: 'phantom', + Coinbase: 'coinbase', +} as const; + +export type IntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum = + typeof IntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum[keyof typeof IntegrationsAnalyticsRequestThreadCreatedAddressWalletIdEnum]; +export const IntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum = { + Admin: 'admin', + Moderator: 'moderator', + Member: 'member', +} as const; + +export type IntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum = + typeof IntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum[keyof typeof IntegrationsAnalyticsRequestThreadCreatedAddressRoleEnum]; +export const IntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum = { - Erc20: 'erc20', - Erc721: 'erc721', - Erc1155: 'erc1155', - Spl: 'spl', + Google: 'google', + Github: 'github', + Discord: 'discord', + Twitter: 'twitter', + Apple: 'apple', + Email: 'email', + Unknown: 'unknown', } as const; -export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum = - typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOfSourceTypeEnum]; +export type IntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum = + typeof IntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum[keyof typeof IntegrationsAnalyticsRequestThreadCreatedAddressWalletSsoSourceEnum]; /** * * @export - * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1 + * @interface IntegrationsAnalyticsRequestThreadCreatedContestManagersInner */ -export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1 { +export interface IntegrationsAnalyticsRequestThreadCreatedContestManagersInner { /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1 + * @memberof IntegrationsAnalyticsRequestThreadCreatedContestManagersInner */ - source_type: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum; + contest_address: string; +} +/** + * + * @export + * @interface LoadTestCreateJWTsRequest + */ +export interface LoadTestCreateJWTsRequest { /** * * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1 + * @memberof LoadTestCreateJWTsRequest */ - evm_chain_id: number; + number_of_jwt: number; } - -export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum = - { - EthNative: 'eth_native', - } as const; - -export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum = - typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf1SourceTypeEnum]; - /** * * @export - * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 + * @interface SubscriptionCreateCommentSubscription200Response */ -export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 { +export interface SubscriptionCreateCommentSubscription200Response { /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 + * @type {number} + * @memberof SubscriptionCreateCommentSubscription200Response */ - source_type: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum; + id?: number; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 + * @type {number} + * @memberof SubscriptionCreateCommentSubscription200Response */ - cosmos_chain_id: string; + user_id: number; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2 + * @type {number} + * @memberof SubscriptionCreateCommentSubscription200Response */ - token_symbol: string; -} - -export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum = - { - CosmosNative: 'cosmos_native', - } as const; - -export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum = - typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf2SourceTypeEnum]; - -/** - * - * @export - * @interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 - */ -export interface QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 { + comment_id: number; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 + * @memberof SubscriptionCreateCommentSubscription200Response */ - source_type: QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum; + created_at?: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 + * @memberof SubscriptionCreateCommentSubscription200Response */ - cosmos_chain_id: string; + updated_at?: string; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3 + * @type {SubscriptionCreateCommentSubscription200ResponseComment} + * @memberof SubscriptionCreateCommentSubscription200Response */ - contract_address: string; + Comment?: SubscriptionCreateCommentSubscription200ResponseComment; } - -export const QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum = - { - Cw721: 'cw721', - Cw20: 'cw20', - } as const; - -export type QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum = - typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum[keyof typeof QueryCommunityGetCommunity200ResponseGroupsInnerRequirementsInnerAnyOfDataSourceAnyOf3SourceTypeEnum]; - /** * * @export - * @interface QueryCommunityGetCommunity200ResponseTopicsInner + * @interface SubscriptionCreateCommentSubscription200ResponseComment */ -export interface QueryCommunityGetCommunity200ResponseTopicsInner { +export interface SubscriptionCreateCommentSubscription200ResponseComment { /** * * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + * @memberof SubscriptionCreateCommentSubscription200ResponseComment */ - id?: number; + id?: number | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + * @memberof SubscriptionCreateCommentSubscription200ResponseComment */ - name?: string; + created_at?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + * @memberof SubscriptionCreateCommentSubscription200ResponseComment */ - community_id: string; + updated_at?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + * @memberof SubscriptionCreateCommentSubscription200ResponseComment */ - description?: string; + text: string; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + * @memberof SubscriptionCreateCommentSubscription200ResponseComment */ - telegram?: string | null; + plaintext: string; /** * - * @type {boolean} - * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + * @type {SubscriptionCreateCommentSubscription200ResponseCommentThread} + * @memberof SubscriptionCreateCommentSubscription200ResponseComment */ - featured_in_sidebar?: boolean; + Thread: SubscriptionCreateCommentSubscription200ResponseCommentThread; +} +/** + * + * @export + * @interface SubscriptionCreateCommentSubscription200ResponseCommentThread + */ +export interface SubscriptionCreateCommentSubscription200ResponseCommentThread { /** * - * @type {boolean} - * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + * @type {number} + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThread */ - featured_in_new_post?: boolean; + id?: number | null; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThread */ - default_offchain_template?: string | null; + community_id: string; + /** + * + * @type {string} + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThread + */ + title: string; /** * * @type {number} - * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThread */ - order?: number | null; + comment_count: number; /** * * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThread */ - channel_id?: string | null; + created_at?: string | null; /** * - * @type {Array} - * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + * @type {string} + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThread */ - group_ids?: Array; + url?: string | null; /** * - * @type {string} - * @memberof QueryCommunityGetCommunity200ResponseTopicsInner + * @type {SubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity} + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThread */ - default_offchain_template_backup?: string | null; + Community: SubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity; + /** + * + * @type {SubscriptionCreateCommentSubscription200ResponseCommentThreadAddress} + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThread + */ + Address: SubscriptionCreateCommentSubscription200ResponseCommentThreadAddress; } /** * * @export - * @interface QueryCommunityGetMembers200Response + * @interface SubscriptionCreateCommentSubscription200ResponseCommentThreadAddress */ -export interface QueryCommunityGetMembers200Response { +export interface SubscriptionCreateCommentSubscription200ResponseCommentThreadAddress { /** * * @type {number} - * @memberof QueryCommunityGetMembers200Response + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThreadAddress */ - limit: number; + id?: number; /** * * @type {number} - * @memberof QueryCommunityGetMembers200Response + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThreadAddress */ - page: number; + user_id?: number | null; /** * - * @type {number} - * @memberof QueryCommunityGetMembers200Response + * @type {string} + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThreadAddress */ - totalPages: number; + address: string; +} +/** + * + * @export + * @interface SubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity + */ +export interface SubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity { /** * - * @type {number} - * @memberof QueryCommunityGetMembers200Response + * @type {string} + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity */ - totalResults: number; + id?: string; + /** + * + * @type {string} + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity + */ + name: string; + /** + * + * @type {string} + * @memberof SubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity + */ + icon_url?: string | null; +} +/** + * + * @export + * @interface SubscriptionCreateCommentSubscriptionRequest + */ +export interface SubscriptionCreateCommentSubscriptionRequest { /** * - * @type {Array} - * @memberof QueryCommunityGetMembers200Response + * @type {number} + * @memberof SubscriptionCreateCommentSubscriptionRequest */ - results: Array; + comment_id: number; } /** * * @export - * @interface QueryCommunityGetMembers200ResponseResultsInner + * @interface SubscriptionCreateCommunityAlert200Response */ -export interface QueryCommunityGetMembers200ResponseResultsInner { +export interface SubscriptionCreateCommunityAlert200Response { /** * * @type {number} - * @memberof QueryCommunityGetMembers200ResponseResultsInner + * @memberof SubscriptionCreateCommunityAlert200Response */ user_id: number; /** * * @type {string} - * @memberof QueryCommunityGetMembers200ResponseResultsInner + * @memberof SubscriptionCreateCommunityAlert200Response */ - profile_name?: string | null; + community_id: string; /** * * @type {string} - * @memberof QueryCommunityGetMembers200ResponseResultsInner + * @memberof SubscriptionCreateCommunityAlert200Response */ - avatar_url?: string | null; + created_at?: string; /** * - * @type {Array} - * @memberof QueryCommunityGetMembers200ResponseResultsInner + * @type {string} + * @memberof SubscriptionCreateCommunityAlert200Response */ - addresses: Array; + updated_at?: string; /** * - * @type {Array} - * @memberof QueryCommunityGetMembers200ResponseResultsInner + * @type {SubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity} + * @memberof SubscriptionCreateCommunityAlert200Response */ - group_ids: Array; + Community?: SubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity; +} +/** + * + * @export + * @interface SubscriptionCreateCommunityAlertRequest + */ +export interface SubscriptionCreateCommunityAlertRequest { /** - * string or date - * @type {any} - * @memberof QueryCommunityGetMembers200ResponseResultsInner + * + * @type {string} + * @memberof SubscriptionCreateCommunityAlertRequest */ - last_active?: any | null; + community_id: string; } /** * * @export - * @interface QueryCommunityGetMembers200ResponseResultsInnerAddressesInner + * @interface SubscriptionCreateThreadSubscription200Response */ -export interface QueryCommunityGetMembers200ResponseResultsInnerAddressesInner { +export interface SubscriptionCreateThreadSubscription200Response { /** * * @type {number} - * @memberof QueryCommunityGetMembers200ResponseResultsInnerAddressesInner + * @memberof SubscriptionCreateThreadSubscription200Response */ - id: number; + id?: number; /** * - * @type {string} - * @memberof QueryCommunityGetMembers200ResponseResultsInnerAddressesInner + * @type {number} + * @memberof SubscriptionCreateThreadSubscription200Response */ - community_id: string; + user_id: number; /** * - * @type {string} - * @memberof QueryCommunityGetMembers200ResponseResultsInnerAddressesInner + * @type {number} + * @memberof SubscriptionCreateThreadSubscription200Response */ - address: string; + thread_id: number; /** * - * @type {number} - * @memberof QueryCommunityGetMembers200ResponseResultsInnerAddressesInner + * @type {string} + * @memberof SubscriptionCreateThreadSubscription200Response */ - stake_balance?: number | null; + created_at?: string; /** * * @type {string} - * @memberof QueryCommunityGetMembers200ResponseResultsInnerAddressesInner + * @memberof SubscriptionCreateThreadSubscription200Response */ - role: string; + updated_at?: string; + /** + * + * @type {SubscriptionCreateThreadSubscription200ResponseThread} + * @memberof SubscriptionCreateThreadSubscription200Response + */ + Thread?: SubscriptionCreateThreadSubscription200ResponseThread; } /** * * @export - * @interface QueryCommunityGetMembersMembershipsParameter - */ -export interface QueryCommunityGetMembersMembershipsParameter {} -/** - * - * @export - * @interface QueryCommunityGetStake200Response + * @interface SubscriptionCreateThreadSubscription200ResponseThread */ -export interface QueryCommunityGetStake200Response { +export interface SubscriptionCreateThreadSubscription200ResponseThread { /** * * @type {number} - * @memberof QueryCommunityGetStake200Response + * @memberof SubscriptionCreateThreadSubscription200ResponseThread */ - id?: number; + id?: number | null; /** * * @type {string} - * @memberof QueryCommunityGetStake200Response + * @memberof SubscriptionCreateThreadSubscription200ResponseThread */ community_id: string; /** * * @type {number} - * @memberof QueryCommunityGetStake200Response + * @memberof SubscriptionCreateThreadSubscription200ResponseThread */ - stake_id?: number; + address_id: number; /** * * @type {string} - * @memberof QueryCommunityGetStake200Response + * @memberof SubscriptionCreateThreadSubscription200ResponseThread */ - stake_token?: string; + title: string; /** * * @type {number} - * @memberof QueryCommunityGetStake200Response + * @memberof SubscriptionCreateThreadSubscription200ResponseThread */ - vote_weight?: number; + comment_count: number; /** * - * @type {boolean} - * @memberof QueryCommunityGetStake200Response + * @type {string} + * @memberof SubscriptionCreateThreadSubscription200ResponseThread */ - stake_enabled?: boolean; + created_at?: string | null; /** * * @type {string} - * @memberof QueryCommunityGetStake200Response + * @memberof SubscriptionCreateThreadSubscription200ResponseThread */ - created_at?: string; + url?: string | null; /** * - * @type {string} - * @memberof QueryCommunityGetStake200Response + * @type {SubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity} + * @memberof SubscriptionCreateThreadSubscription200ResponseThread */ - updated_at?: string; + Community: SubscriptionCreateCommentSubscription200ResponseCommentThreadCommunity; /** * - * @type {Array} - * @memberof QueryCommunityGetStake200Response + * @type {SubscriptionCreateCommentSubscription200ResponseCommentThreadAddress} + * @memberof SubscriptionCreateThreadSubscription200ResponseThread */ - StakeTransactions?: Array; + Address: SubscriptionCreateCommentSubscription200ResponseCommentThreadAddress; } /** * * @export - * @interface QueryCommunityGetStakeHistoricalPrice200ResponseInner + * @interface SubscriptionCreateThreadSubscriptionRequest */ -export interface QueryCommunityGetStakeHistoricalPrice200ResponseInner { - /** - * - * @type {string} - * @memberof QueryCommunityGetStakeHistoricalPrice200ResponseInner - */ - community_id: string; +export interface SubscriptionCreateThreadSubscriptionRequest { /** * - * @type {string} - * @memberof QueryCommunityGetStakeHistoricalPrice200ResponseInner + * @type {number} + * @memberof SubscriptionCreateThreadSubscriptionRequest */ - old_price?: string | null; + thread_id: number; } /** * * @export - * @interface QueryCommunityGetStakeTransaction200ResponseInner + * @interface SubscriptionDeleteCommentSubscriptionRequest */ -export interface QueryCommunityGetStakeTransaction200ResponseInner { +export interface SubscriptionDeleteCommentSubscriptionRequest { /** * - * @type {string} - * @memberof QueryCommunityGetStakeTransaction200ResponseInner + * @type {Array} + * @memberof SubscriptionDeleteCommentSubscriptionRequest */ - transaction_hash: string; + comment_ids: Array; +} +/** + * + * @export + * @interface SubscriptionDeleteCommunityAlertRequest + */ +export interface SubscriptionDeleteCommunityAlertRequest { /** * - * @type {string} - * @memberof QueryCommunityGetStakeTransaction200ResponseInner + * @type {Array} + * @memberof SubscriptionDeleteCommunityAlertRequest */ - address: string; + community_ids: Array; +} +/** + * + * @export + * @interface SubscriptionDeleteThreadSubscriptionRequest + */ +export interface SubscriptionDeleteThreadSubscriptionRequest { /** * - * @type {string} - * @memberof QueryCommunityGetStakeTransaction200ResponseInner + * @type {Array} + * @memberof SubscriptionDeleteThreadSubscriptionRequest */ - stake_price: string; + thread_ids: Array; +} +/** + * + * @export + * @interface SubscriptionGetSubscriptionPreferences200Response + */ +export interface SubscriptionGetSubscriptionPreferences200Response { /** * * @type {number} - * @memberof QueryCommunityGetStakeTransaction200ResponseInner + * @memberof SubscriptionGetSubscriptionPreferences200Response */ - stake_amount: number; + id: number; /** * * @type {number} - * @memberof QueryCommunityGetStakeTransaction200ResponseInner + * @memberof SubscriptionGetSubscriptionPreferences200Response */ - vote_weight: number; + user_id: number; /** * - * @type {number} - * @memberof QueryCommunityGetStakeTransaction200ResponseInner + * @type {boolean} + * @memberof SubscriptionGetSubscriptionPreferences200Response */ - timestamp: number; + email_notifications_enabled?: boolean; /** * - * @type {string} - * @memberof QueryCommunityGetStakeTransaction200ResponseInner + * @type {boolean} + * @memberof SubscriptionGetSubscriptionPreferences200Response */ - stake_direction: string; + digest_email_enabled?: boolean; /** * - * @type {QueryCommunityGetStakeTransaction200ResponseInnerCommunity} - * @memberof QueryCommunityGetStakeTransaction200ResponseInner + * @type {boolean} + * @memberof SubscriptionGetSubscriptionPreferences200Response */ - community: QueryCommunityGetStakeTransaction200ResponseInnerCommunity; -} -/** - * - * @export - * @interface QueryCommunityGetStakeTransaction200ResponseInnerCommunity - */ -export interface QueryCommunityGetStakeTransaction200ResponseInnerCommunity { + recap_email_enabled?: boolean; /** * - * @type {string} - * @memberof QueryCommunityGetStakeTransaction200ResponseInnerCommunity + * @type {boolean} + * @memberof SubscriptionGetSubscriptionPreferences200Response */ - id: string; + mobile_push_notifications_enabled?: boolean; /** * - * @type {string} - * @memberof QueryCommunityGetStakeTransaction200ResponseInnerCommunity + * @type {boolean} + * @memberof SubscriptionGetSubscriptionPreferences200Response */ - default_symbol?: string | null; + mobile_push_discussion_activity_enabled?: boolean; /** * - * @type {string} - * @memberof QueryCommunityGetStakeTransaction200ResponseInnerCommunity + * @type {boolean} + * @memberof SubscriptionGetSubscriptionPreferences200Response */ - icon_url?: string | null; + mobile_push_admin_alerts_enabled?: boolean; /** * * @type {string} - * @memberof QueryCommunityGetStakeTransaction200ResponseInnerCommunity + * @memberof SubscriptionGetSubscriptionPreferences200Response */ - name: string; + created_at?: string; /** * - * @type {number} - * @memberof QueryCommunityGetStakeTransaction200ResponseInnerCommunity + * @type {string} + * @memberof SubscriptionGetSubscriptionPreferences200Response */ - chain_node_id?: number | null; + updated_at?: string; } /** - * On-Chain Contest Manager + * * @export - * @interface QueryContestGetAllContests200ResponseInner + * @interface SubscriptionGetSubscriptionPreferences200ResponseAnyOf */ -export interface QueryContestGetAllContests200ResponseInner { +export interface SubscriptionGetSubscriptionPreferences200ResponseAnyOf { /** - * On-Chain contest manager address - * @type {string} - * @memberof QueryContestGetAllContests200ResponseInner + * + * @type {number} + * @memberof SubscriptionGetSubscriptionPreferences200ResponseAnyOf */ - contest_address: string; + id: number; /** * - * @type {string} - * @memberof QueryContestGetAllContests200ResponseInner + * @type {number} + * @memberof SubscriptionGetSubscriptionPreferences200ResponseAnyOf */ - community_id: string; + user_id: number; /** * - * @type {string} - * @memberof QueryContestGetAllContests200ResponseInner + * @type {boolean} + * @memberof SubscriptionGetSubscriptionPreferences200ResponseAnyOf */ - name: string; + email_notifications_enabled?: boolean; /** * - * @type {string} - * @memberof QueryContestGetAllContests200ResponseInner + * @type {boolean} + * @memberof SubscriptionGetSubscriptionPreferences200ResponseAnyOf */ - image_url?: string; + digest_email_enabled?: boolean; /** - * Provided by admin on creation when stake funds are not used - * @type {string} - * @memberof QueryContestGetAllContests200ResponseInner + * + * @type {boolean} + * @memberof SubscriptionGetSubscriptionPreferences200ResponseAnyOf */ - funding_token_address?: string | null; + recap_email_enabled?: boolean; /** - * Percentage of pool used for prizes in recurring contests - * @type {number} - * @memberof QueryContestGetAllContests200ResponseInner + * + * @type {boolean} + * @memberof SubscriptionGetSubscriptionPreferences200ResponseAnyOf */ - prize_percentage?: number | null; + mobile_push_notifications_enabled?: boolean; /** - * Sorted array of percentages for prize, from first to last - * @type {Array} - * @memberof QueryContestGetAllContests200ResponseInner + * + * @type {boolean} + * @memberof SubscriptionGetSubscriptionPreferences200ResponseAnyOf */ - payout_structure: Array; + mobile_push_discussion_activity_enabled?: boolean; /** - * Recurring contest interval, 0 when one-off - * @type {number} - * @memberof QueryContestGetAllContests200ResponseInner + * + * @type {boolean} + * @memberof SubscriptionGetSubscriptionPreferences200ResponseAnyOf */ - interval: number; + mobile_push_admin_alerts_enabled?: boolean; /** * * @type {string} - * @memberof QueryContestGetAllContests200ResponseInner + * @memberof SubscriptionGetSubscriptionPreferences200ResponseAnyOf */ - ticker?: string; + created_at?: string; /** * - * @type {number} - * @memberof QueryContestGetAllContests200ResponseInner + * @type {string} + * @memberof SubscriptionGetSubscriptionPreferences200ResponseAnyOf */ - decimals?: number; + updated_at?: string; +} +/** + * + * @export + * @interface SubscriptionRegisterClientRegistrationTokenRequest + */ +export interface SubscriptionRegisterClientRegistrationTokenRequest { /** * * @type {string} - * @memberof QueryContestGetAllContests200ResponseInner + * @memberof SubscriptionRegisterClientRegistrationTokenRequest */ - created_at: string; + token: string; /** - * Flags when contest policy is cancelled by admin + * + * @type {string} + * @memberof SubscriptionRegisterClientRegistrationTokenRequest + */ + channelType: SubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum; +} + +export const SubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum = + { + Apns: 'APNS', + Fcm: 'FCM', + } as const; + +export type SubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum = + typeof SubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum[keyof typeof SubscriptionRegisterClientRegistrationTokenRequestChannelTypeEnum]; + +/** + * + * @export + * @interface SubscriptionUpdateSubscriptionPreferencesRequest + */ +export interface SubscriptionUpdateSubscriptionPreferencesRequest { + /** + * * @type {boolean} - * @memberof QueryContestGetAllContests200ResponseInner + * @memberof SubscriptionUpdateSubscriptionPreferencesRequest */ - cancelled?: boolean | null; + email_notifications_enabled?: boolean; /** - * Flags when the one-off contest has ended and rollover was completed + * * @type {boolean} - * @memberof QueryContestGetAllContests200ResponseInner + * @memberof SubscriptionUpdateSubscriptionPreferencesRequest */ - ended?: boolean | null; + digest_email_enabled?: boolean; /** * - * @type {Array} - * @memberof QueryContestGetAllContests200ResponseInner + * @type {boolean} + * @memberof SubscriptionUpdateSubscriptionPreferencesRequest */ - topics: Array; + recap_email_enabled?: boolean; /** * - * @type {Array} - * @memberof QueryContestGetAllContests200ResponseInner + * @type {boolean} + * @memberof SubscriptionUpdateSubscriptionPreferencesRequest */ - contests: Array; -} -/** - * On-Chain contest instance - * @export - * @interface QueryContestGetAllContests200ResponseInnerContestsInner - */ -export interface QueryContestGetAllContests200ResponseInnerContestsInner { + mobile_push_notifications_enabled?: boolean; /** - * On-Chain contest id, 0 when one-off - * @type {number} - * @memberof QueryContestGetAllContests200ResponseInnerContestsInner + * + * @type {boolean} + * @memberof SubscriptionUpdateSubscriptionPreferencesRequest */ - contest_id: number; + mobile_push_discussion_activity_enabled?: boolean; /** * - * @type {string} - * @memberof QueryContestGetAllContests200ResponseInnerContestsInner + * @type {boolean} + * @memberof SubscriptionUpdateSubscriptionPreferencesRequest */ - start_time: string; + mobile_push_admin_alerts_enabled?: boolean; +} +/** + * + * @export + * @interface ThreadGetBulkThreads200Response + */ +export interface ThreadGetBulkThreads200Response { /** * - * @type {string} - * @memberof QueryContestGetAllContests200ResponseInnerContestsInner + * @type {number} + * @memberof ThreadGetBulkThreads200Response */ - end_time: string; + limit: number; /** * - * @type {string} - * @memberof QueryContestGetAllContests200ResponseInnerContestsInner + * @type {number} + * @memberof ThreadGetBulkThreads200Response */ - score_updated_at?: string | null; + numVotingThreads: number; /** - * Contest score, sorted from first to last - * @type {Array} - * @memberof QueryContestGetAllContests200ResponseInnerContestsInner + * + * @type {number} + * @memberof ThreadGetBulkThreads200Response */ - score?: Array | null; + cursor: number; /** * - * @type {Array} - * @memberof QueryContestGetAllContests200ResponseInnerContestsInner + * @type {Array} + * @memberof ThreadGetBulkThreads200Response */ - actions?: Array | null; + threads: Array; } /** * * @export - * @interface QueryContestGetAllContests200ResponseInnerTopicsInner + * @interface ThreadGetBulkThreads200ResponseThreadsInner */ -export interface QueryContestGetAllContests200ResponseInnerTopicsInner { +export interface ThreadGetBulkThreads200ResponseThreadsInner { /** * * @type {number} - * @memberof QueryContestGetAllContests200ResponseInnerTopicsInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ id: number; /** * * @type {string} - * @memberof QueryContestGetAllContests200ResponseInnerTopicsInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - name: string; -} -/** - * - * @export - * @interface QueryContestGetContestLog200ResponseInner - */ -export interface QueryContestGetContestLog200ResponseInner { + title: string; /** * * @type {string} - * @memberof QueryContestGetContestLog200ResponseInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - event_name: string; + url: string | null; /** * - * @type {object} - * @memberof QueryContestGetContestLog200ResponseInner + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - event_payload: object; + body: string; /** * * @type {string} - * @memberof QueryContestGetContestLog200ResponseInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - contest_address: string; + last_edited?: string | null; /** * - * @type {number} - * @memberof QueryContestGetContestLog200ResponseInner + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - contest_id: number; + kind: string; /** * * @type {string} - * @memberof QueryContestGetContestLog200ResponseInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - action?: string | null; + stage: string; /** * - * @type {string} - * @memberof QueryContestGetContestLog200ResponseInner + * @type {boolean} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - actor_address?: string | null; + read_only: boolean; /** * - * @type {number} - * @memberof QueryContestGetContestLog200ResponseInner + * @type {ThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - voting_power?: number | null; + discord_meta?: ThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta | null; /** * - * @type {number} - * @memberof QueryContestGetContestLog200ResponseInner + * @type {boolean} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - thread_id?: number | null; + pinned: boolean; /** * * @type {string} - * @memberof QueryContestGetContestLog200ResponseInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - thread_title?: string | null; + chain: string; /** * * @type {string} - * @memberof QueryContestGetContestLog200ResponseInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ created_at: string; -} -/** - * - * @export - * @interface QueryFeedGetChainActivity200ResponseInner - */ -export interface QueryFeedGetChainActivity200ResponseInner { /** * * @type {string} - * @memberof QueryFeedGetChainActivity200ResponseInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - community_id: string; + updated_at: string; /** * * @type {string} - * @memberof QueryFeedGetChainActivity200ResponseInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - network: string; + locked_at?: string | null; /** * - * @type {number} - * @memberof QueryFeedGetChainActivity200ResponseInner + * @type {Array} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - block_number: number; + links?: Array | null; /** * - * @type {QueryFeedGetChainActivity200ResponseInnerEventData} - * @memberof QueryFeedGetChainActivity200ResponseInner + * @type {Array} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - event_data: QueryFeedGetChainActivity200ResponseInnerEventData; -} -/** - * - * @export - * @interface QueryFeedGetChainActivity200ResponseInnerEventData - */ -export interface QueryFeedGetChainActivity200ResponseInnerEventData { + collaborators: Array; + /** + * + * @type {boolean} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner + */ + has_poll?: boolean | null; /** * * @type {string} - * @memberof QueryFeedGetChainActivity200ResponseInnerEventData + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - id: string; + last_commented_on?: string | null; /** * * @type {string} - * @memberof QueryFeedGetChainActivity200ResponseInnerEventData + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - kind: string; -} -/** - * - * @export - * @interface QueryFeedGetUserActivity200ResponseInner - */ -export interface QueryFeedGetUserActivity200ResponseInner { + plaintext?: string | null; + /** + * + * @type {ThreadGetBulkThreads200ResponseThreadsInnerAddress} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner + */ + Address: ThreadGetBulkThreads200ResponseThreadsInnerAddress; /** * * @type {number} - * @memberof QueryFeedGetUserActivity200ResponseInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - thread_id: number; + numberOfComments: number; /** * - * @type {string} - * @memberof QueryFeedGetUserActivity200ResponseInner + * @type {Array} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - last_activity?: string; + reactionIds: Array; /** * - * @type {string} - * @memberof QueryFeedGetUserActivity200ResponseInner + * @type {Array} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - notification_data: string; + reactionTimestamps: Array; /** * - * @type {string} - * @memberof QueryFeedGetUserActivity200ResponseInner + * @type {Array} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - category_id: string; + reactionWeights: Array; /** * * @type {number} - * @memberof QueryFeedGetUserActivity200ResponseInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - comment_count: number; + reaction_weights_sum: number; /** * - * @type {Array} - * @memberof QueryFeedGetUserActivity200ResponseInner + * @type {Array} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - commenters: Array; -} -/** - * - * @export - * @interface QueryFeedGetUserActivity200ResponseInnerCommentersInner - */ -export interface QueryFeedGetUserActivity200ResponseInnerCommentersInner { + addressesReacted: Array; /** * - * @type {Array} - * @memberof QueryFeedGetUserActivity200ResponseInnerCommentersInner + * @type {Array} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - Addresses: Array; -} -/** - * - * @export - * @interface QuerySubscriptionGetSubscriptionPreferences200Response - */ -export interface QuerySubscriptionGetSubscriptionPreferences200Response { + reactedProfileName?: Array; /** * - * @type {number} - * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + * @type {Array} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - id: number; + reactedProfileAvatarUrl?: Array; /** * - * @type {number} - * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + * @type {Array} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - user_id: number; + reactedAddressLastActive?: Array; /** * - * @type {boolean} - * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + * @type {Array} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - email_notifications_enabled?: boolean; + reactionType: Array; /** * - * @type {boolean} - * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - digest_email_enabled?: boolean; + marked_as_spam_at?: string | null; /** * - * @type {boolean} - * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - recap_email_enabled?: boolean; + archived_at?: string | null; /** * - * @type {boolean} - * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - mobile_push_notifications_enabled?: boolean; + latest_activity?: string | null; /** * - * @type {boolean} - * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + * @type {ThreadGetBulkThreads200ResponseThreadsInnerTopic} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - mobile_push_discussion_activity_enabled?: boolean; + topic?: ThreadGetBulkThreads200ResponseThreadsInnerTopic; /** * - * @type {boolean} - * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + * @type {number} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - mobile_push_admin_alerts_enabled?: boolean; + user_id: number; /** * * @type {string} - * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - created_at?: string; + avatar_url: string | null; /** * * @type {string} - * @memberof QuerySubscriptionGetSubscriptionPreferences200Response + * @memberof ThreadGetBulkThreads200ResponseThreadsInner */ - updated_at?: string; + address_last_active: string | null; + /** + * + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInner + */ + profile_name: string | null; } /** * * @export - * @interface QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + * @interface ThreadGetBulkThreads200ResponseThreadsInnerAddress */ -export interface QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf { +export interface ThreadGetBulkThreads200ResponseThreadsInnerAddress { /** * * @type {number} - * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerAddress */ id: number; /** * - * @type {number} - * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf - */ - user_id: number; - /** - * - * @type {boolean} - * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf - */ - email_notifications_enabled?: boolean; - /** - * - * @type {boolean} - * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerAddress */ - digest_email_enabled?: boolean; + address: string; /** * - * @type {boolean} - * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerAddress */ - recap_email_enabled?: boolean; + community_id: string; +} +/** + * + * @export + * @interface ThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta + */ +export interface ThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta { /** * - * @type {boolean} - * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + * @type {ThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser} + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta */ - mobile_push_notifications_enabled?: boolean; + user: ThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser; /** * - * @type {boolean} - * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta */ - mobile_push_discussion_activity_enabled?: boolean; + channel_id: string; /** * - * @type {boolean} - * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta */ - mobile_push_admin_alerts_enabled?: boolean; + message_id: string; +} +/** + * + * @export + * @interface ThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser + */ +export interface ThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser { /** * * @type {string} - * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser */ - created_at?: string; + id: string; /** * * @type {string} - * @memberof QuerySubscriptionGetSubscriptionPreferences200ResponseAnyOf + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser */ - updated_at?: string; + username: string; } /** * * @export - * @interface QueryThreadGetBulkThreads200Response + * @interface ThreadGetBulkThreads200ResponseThreadsInnerLinksInner */ -export interface QueryThreadGetBulkThreads200Response { +export interface ThreadGetBulkThreads200ResponseThreadsInnerLinksInner { /** * - * @type {number} - * @memberof QueryThreadGetBulkThreads200Response - */ - limit: number; - /** - * - * @type {number} - * @memberof QueryThreadGetBulkThreads200Response + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerLinksInner */ - numVotingThreads: number; + source: ThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum; /** * - * @type {number} - * @memberof QueryThreadGetBulkThreads200Response + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerLinksInner */ - cursor: number; + identifier: string; /** * - * @type {Array} - * @memberof QueryThreadGetBulkThreads200Response + * @type {string} + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerLinksInner */ - threads: Array; + title?: string | null; } + +export const ThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum = { + Snapshot: 'snapshot', + Proposal: 'proposal', + Thread: 'thread', + Web: 'web', + Template: 'template', +} as const; + +export type ThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum = + typeof ThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum[keyof typeof ThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum]; + /** * * @export - * @interface QueryThreadGetBulkThreads200ResponseThreadsInner + * @interface ThreadGetBulkThreads200ResponseThreadsInnerTopic */ -export interface QueryThreadGetBulkThreads200ResponseThreadsInner { +export interface ThreadGetBulkThreads200ResponseThreadsInnerTopic { /** * * @type {number} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerTopic */ id: number; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerTopic */ - title: string; + name: string; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerTopic */ - url: string | null; + description: string; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerTopic */ - body: string; + chainId: string; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof ThreadGetBulkThreads200ResponseThreadsInnerTopic */ - last_edited?: string | null; + telegram: string; +} +/** + * + * @export + * @interface UserUpdateUser200Response + */ +export interface UserUpdateUser200Response { /** * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {number} + * @memberof UserUpdateUser200Response */ - kind: string; + id?: number; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof UserUpdateUser200Response */ - stage: string; + email?: string | null; /** * * @type {boolean} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner - */ - read_only: boolean; - /** - * - * @type {QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof UserUpdateUser200Response */ - discord_meta?: QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta | null; + isAdmin?: boolean; /** * * @type {boolean} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner - */ - pinned: boolean; - /** - * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof UserUpdateUser200Response */ - chain: string; + disableRichText?: boolean; /** * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {boolean} + * @memberof UserUpdateUser200Response */ - created_at: string; + emailVerified?: boolean | null; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof UserUpdateUser200Response */ - updated_at: string; + selected_community_id?: string | null; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner - */ - locked_at?: string | null; - /** - * - * @type {Array} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner - */ - links?: Array | null; - /** - * - * @type {Array} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof UserUpdateUser200Response */ - collaborators: Array; + emailNotificationInterval?: UserUpdateUser200ResponseEmailNotificationIntervalEnum; /** * * @type {boolean} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof UserUpdateUser200Response */ - has_poll?: boolean | null; + promotional_emails_enabled?: boolean | null; /** * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {boolean} + * @memberof UserUpdateUser200Response */ - last_commented_on?: string | null; + is_welcome_onboard_flow_complete?: boolean; /** * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {UserUpdateUserRequestProfile} + * @memberof UserUpdateUser200Response */ - plaintext?: string | null; + profile: UserUpdateUserRequestProfile; /** * - * @type {QueryThreadGetBulkThreads200ResponseThreadsInnerAddress} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {any} + * @memberof UserUpdateUser200Response */ - Address: QueryThreadGetBulkThreads200ResponseThreadsInnerAddress; + created_at?: any; /** * - * @type {number} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {any} + * @memberof UserUpdateUser200Response */ - numberOfComments: number; + updated_at?: any; /** * - * @type {Array} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {Array} + * @memberof UserUpdateUser200Response */ - reactionIds: Array; + ProfileTags?: Array; +} + +export const UserUpdateUser200ResponseEmailNotificationIntervalEnum = { + Weekly: 'weekly', + Never: 'never', +} as const; + +export type UserUpdateUser200ResponseEmailNotificationIntervalEnum = + typeof UserUpdateUser200ResponseEmailNotificationIntervalEnum[keyof typeof UserUpdateUser200ResponseEmailNotificationIntervalEnum]; + +/** + * + * @export + * @interface UserUpdateUserDefaultResponse + */ +export interface UserUpdateUserDefaultResponse { /** * - * @type {Array} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {string} + * @memberof UserUpdateUserDefaultResponse */ - reactionTimestamps: Array; + message: string; /** * - * @type {Array} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {string} + * @memberof UserUpdateUserDefaultResponse */ - reactionWeights: Array; + code: string; /** * - * @type {number} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {Array} + * @memberof UserUpdateUserDefaultResponse */ - reaction_weights_sum: number; + issues?: Array; +} +/** + * + * @export + * @interface UserUpdateUserDefaultResponseIssuesInner + */ +export interface UserUpdateUserDefaultResponseIssuesInner { /** * - * @type {Array} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {string} + * @memberof UserUpdateUserDefaultResponseIssuesInner */ - addressesReacted: Array; + message: string; +} +/** + * + * @export + * @interface UserUpdateUserRequest + */ +export interface UserUpdateUserRequest { /** * - * @type {Array} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {string} + * @memberof UserUpdateUserRequest */ - reactedProfileName?: Array; + email?: string | null; /** * - * @type {Array} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {boolean} + * @memberof UserUpdateUserRequest */ - reactedProfileAvatarUrl?: Array; + isAdmin?: boolean; /** * - * @type {Array} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {boolean} + * @memberof UserUpdateUserRequest */ - reactedAddressLastActive?: Array; + disableRichText?: boolean; /** * - * @type {Array} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {boolean} + * @memberof UserUpdateUserRequest */ - reactionType: Array; + emailVerified?: boolean | null; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof UserUpdateUserRequest */ - marked_as_spam_at?: string | null; + selected_community_id?: string | null; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @memberof UserUpdateUserRequest */ - archived_at?: string | null; + emailNotificationInterval?: UserUpdateUserRequestEmailNotificationIntervalEnum; /** * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {boolean} + * @memberof UserUpdateUserRequest */ - latest_activity?: string | null; + promotional_emails_enabled?: boolean | null; /** * - * @type {QueryThreadGetBulkThreads200ResponseThreadsInnerTopic} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {UserUpdateUserRequestProfile} + * @memberof UserUpdateUserRequest */ - topic?: QueryThreadGetBulkThreads200ResponseThreadsInnerTopic; + profile: UserUpdateUserRequestProfile; /** * - * @type {number} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {any} + * @memberof UserUpdateUserRequest */ - user_id: number; + created_at?: any; /** * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {any} + * @memberof UserUpdateUserRequest */ - avatar_url: string | null; + updated_at?: any; /** * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {Array} + * @memberof UserUpdateUserRequest */ - address_last_active: string | null; + ProfileTags?: Array; /** * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInner + * @type {Array} + * @memberof UserUpdateUserRequest */ - profile_name: string | null; + tag_ids?: Array | null; } + +export const UserUpdateUserRequestEmailNotificationIntervalEnum = { + Weekly: 'weekly', + Never: 'never', +} as const; + +export type UserUpdateUserRequestEmailNotificationIntervalEnum = + typeof UserUpdateUserRequestEmailNotificationIntervalEnum[keyof typeof UserUpdateUserRequestEmailNotificationIntervalEnum]; + /** * * @export - * @interface QueryThreadGetBulkThreads200ResponseThreadsInnerAddress + * @interface UserUpdateUserRequestProfile */ -export interface QueryThreadGetBulkThreads200ResponseThreadsInnerAddress { +export interface UserUpdateUserRequestProfile { /** * - * @type {number} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerAddress + * @type {string} + * @memberof UserUpdateUserRequestProfile */ - id: number; + name?: string | null; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerAddress + * @memberof UserUpdateUserRequestProfile */ - address: string; + email?: string | null; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerAddress + * @memberof UserUpdateUserRequestProfile */ - community_id: string; -} -/** - * - * @export - * @interface QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta - */ -export interface QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta { + website?: string | null; /** * - * @type {QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta + * @type {string} + * @memberof UserUpdateUserRequestProfile */ - user: QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser; + bio?: string | null; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta + * @memberof UserUpdateUserRequestProfile */ - channel_id: string; + avatar_url?: string | null; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMeta + * @memberof UserUpdateUserRequestProfile */ - message_id: string; -} -/** - * - * @export - * @interface QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser - */ -export interface QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser { + slug?: string | null; /** * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser + * @type {Array} + * @memberof UserUpdateUserRequestProfile */ - id: string; + socials?: Array | null; /** * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerDiscordMetaUser + * @type {UserUpdateUserRequestProfileBackgroundImage} + * @memberof UserUpdateUserRequestProfile */ - username: string; + background_image?: UserUpdateUserRequestProfileBackgroundImage | null; } /** * * @export - * @interface QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInner + * @interface UserUpdateUserRequestProfileBackgroundImage */ -export interface QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInner { - /** - * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInner - */ - source: QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum; +export interface UserUpdateUserRequestProfileBackgroundImage { /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInner + * @memberof UserUpdateUserRequestProfileBackgroundImage */ - identifier: string; + url?: string; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInner + * @memberof UserUpdateUserRequestProfileBackgroundImage */ - title?: string | null; + imageBehavior?: string; } - -export const QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum = - { - Snapshot: 'snapshot', - Proposal: 'proposal', - Thread: 'thread', - Web: 'web', - Template: 'template', - } as const; - -export type QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum = - typeof QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum[keyof typeof QueryThreadGetBulkThreads200ResponseThreadsInnerLinksInnerSourceEnum]; - /** * * @export - * @interface QueryThreadGetBulkThreads200ResponseThreadsInnerTopic + * @interface UserUpdateUserRequestProfileTagsInner */ -export interface QueryThreadGetBulkThreads200ResponseThreadsInnerTopic { +export interface UserUpdateUserRequestProfileTagsInner { /** * * @type {number} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerTopic - */ - id: number; - /** - * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerTopic + * @memberof UserUpdateUserRequestProfileTagsInner */ - name: string; + user_id: number; /** * - * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerTopic + * @type {number} + * @memberof UserUpdateUserRequestProfileTagsInner */ - description: string; + tag_id: number; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerTopic + * @memberof UserUpdateUserRequestProfileTagsInner */ - chainId: string; + created_at?: string; /** * * @type {string} - * @memberof QueryThreadGetBulkThreads200ResponseThreadsInnerTopic + * @memberof UserUpdateUserRequestProfileTagsInner */ - telegram: string; + updated_at?: string; } /** @@ -4841,27 +4837,27 @@ export const CommunityApiAxiosParamCreator = function ( * * @param {string} addressId * @param {string} id - * @param {MutationCommunityCreateGroupRequest} mutationCommunityCreateGroupRequest + * @param {CommunityCreateGroupRequest} communityCreateGroupRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationCommunityCreateGroup: async ( + communityCreateGroup: async ( addressId: string, id: string, - mutationCommunityCreateGroupRequest: MutationCommunityCreateGroupRequest, + communityCreateGroupRequest: CommunityCreateGroupRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined - assertParamExists('mutationCommunityCreateGroup', 'addressId', addressId); + assertParamExists('communityCreateGroup', 'addressId', addressId); // verify required parameter 'id' is not null or undefined - assertParamExists('mutationCommunityCreateGroup', 'id', id); - // verify required parameter 'mutationCommunityCreateGroupRequest' is not null or undefined + assertParamExists('communityCreateGroup', 'id', id); + // verify required parameter 'communityCreateGroupRequest' is not null or undefined assertParamExists( - 'mutationCommunityCreateGroup', - 'mutationCommunityCreateGroupRequest', - mutationCommunityCreateGroupRequest, + 'communityCreateGroup', + 'communityCreateGroupRequest', + communityCreateGroupRequest, ); - const localVarPath = `/community/{id}/CreateGroup`.replace( + const localVarPath = `/CreateGroup/{id}`.replace( `{${'id'}}`, encodeURIComponent(String(id)), ); @@ -4895,7 +4891,7 @@ export const CommunityApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationCommunityCreateGroupRequest, + communityCreateGroupRequest, localVarRequestOptions, configuration, ); @@ -4909,31 +4905,31 @@ export const CommunityApiAxiosParamCreator = function ( * * @param {string} addressId * @param {string} id - * @param {MutationCommunityCreateStakeTransactionRequest} mutationCommunityCreateStakeTransactionRequest + * @param {CommunityCreateStakeTransactionRequest} communityCreateStakeTransactionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationCommunityCreateStakeTransaction: async ( + communityCreateStakeTransaction: async ( addressId: string, id: string, - mutationCommunityCreateStakeTransactionRequest: MutationCommunityCreateStakeTransactionRequest, + communityCreateStakeTransactionRequest: CommunityCreateStakeTransactionRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined assertParamExists( - 'mutationCommunityCreateStakeTransaction', + 'communityCreateStakeTransaction', 'addressId', addressId, ); // verify required parameter 'id' is not null or undefined - assertParamExists('mutationCommunityCreateStakeTransaction', 'id', id); - // verify required parameter 'mutationCommunityCreateStakeTransactionRequest' is not null or undefined + assertParamExists('communityCreateStakeTransaction', 'id', id); + // verify required parameter 'communityCreateStakeTransactionRequest' is not null or undefined assertParamExists( - 'mutationCommunityCreateStakeTransaction', - 'mutationCommunityCreateStakeTransactionRequest', - mutationCommunityCreateStakeTransactionRequest, + 'communityCreateStakeTransaction', + 'communityCreateStakeTransactionRequest', + communityCreateStakeTransactionRequest, ); - const localVarPath = `/community/{id}/CreateStakeTransaction`.replace( + const localVarPath = `/CreateStakeTransaction/{id}`.replace( `{${'id'}}`, encodeURIComponent(String(id)), ); @@ -4967,7 +4963,7 @@ export const CommunityApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationCommunityCreateStakeTransactionRequest, + communityCreateStakeTransactionRequest, localVarRequestOptions, configuration, ); @@ -4981,27 +4977,27 @@ export const CommunityApiAxiosParamCreator = function ( * * @param {string} addressId * @param {string} id - * @param {MutationCommunitySetStakeRequest} mutationCommunitySetStakeRequest + * @param {CommunitySetStakeRequest} communitySetStakeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationCommunitySetStake: async ( + communitySetStake: async ( addressId: string, id: string, - mutationCommunitySetStakeRequest: MutationCommunitySetStakeRequest, + communitySetStakeRequest: CommunitySetStakeRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined - assertParamExists('mutationCommunitySetStake', 'addressId', addressId); + assertParamExists('communitySetStake', 'addressId', addressId); // verify required parameter 'id' is not null or undefined - assertParamExists('mutationCommunitySetStake', 'id', id); - // verify required parameter 'mutationCommunitySetStakeRequest' is not null or undefined + assertParamExists('communitySetStake', 'id', id); + // verify required parameter 'communitySetStakeRequest' is not null or undefined assertParamExists( - 'mutationCommunitySetStake', - 'mutationCommunitySetStakeRequest', - mutationCommunitySetStakeRequest, + 'communitySetStake', + 'communitySetStakeRequest', + communitySetStakeRequest, ); - const localVarPath = `/community/{id}/SetCommunityStake`.replace( + const localVarPath = `/SetCommunityStake/{id}`.replace( `{${'id'}}`, encodeURIComponent(String(id)), ); @@ -5035,7 +5031,7 @@ export const CommunityApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationCommunitySetStakeRequest, + communitySetStakeRequest, localVarRequestOptions, configuration, ); @@ -5049,35 +5045,30 @@ export const CommunityApiAxiosParamCreator = function ( * * @param {string} addressId * @param {string} id - * @param {MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner} mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner + * @param {IntegrationsAnalyticsRequestThreadCreatedContestManagersInner} integrationsAnalyticsRequestThreadCreatedContestManagersInner * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationContestCancelContestMetadata: async ( + contestCancelContestMetadata: async ( addressId: string, id: string, - mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner: MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + integrationsAnalyticsRequestThreadCreatedContestManagersInner: IntegrationsAnalyticsRequestThreadCreatedContestManagersInner, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined - assertParamExists( - 'mutationContestCancelContestMetadata', - 'addressId', - addressId, - ); + assertParamExists('contestCancelContestMetadata', 'addressId', addressId); // verify required parameter 'id' is not null or undefined - assertParamExists('mutationContestCancelContestMetadata', 'id', id); - // verify required parameter 'mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner' is not null or undefined + assertParamExists('contestCancelContestMetadata', 'id', id); + // verify required parameter 'integrationsAnalyticsRequestThreadCreatedContestManagersInner' is not null or undefined assertParamExists( - 'mutationContestCancelContestMetadata', - 'mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner', - mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + 'contestCancelContestMetadata', + 'integrationsAnalyticsRequestThreadCreatedContestManagersInner', + integrationsAnalyticsRequestThreadCreatedContestManagersInner, + ); + const localVarPath = `/CancelContestManagerMetadata/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(id)), ); - const localVarPath = - `/community/{id}/CancelContestManagerMetadata`.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; @@ -5108,7 +5099,7 @@ export const CommunityApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + integrationsAnalyticsRequestThreadCreatedContestManagersInner, localVarRequestOptions, configuration, ); @@ -5122,35 +5113,30 @@ export const CommunityApiAxiosParamCreator = function ( * * @param {string} addressId * @param {string} id - * @param {MutationContestCreateContestMetadataRequest} mutationContestCreateContestMetadataRequest + * @param {ContestCreateContestMetadataRequest} contestCreateContestMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationContestCreateContestMetadata: async ( + contestCreateContestMetadata: async ( addressId: string, id: string, - mutationContestCreateContestMetadataRequest: MutationContestCreateContestMetadataRequest, + contestCreateContestMetadataRequest: ContestCreateContestMetadataRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined - assertParamExists( - 'mutationContestCreateContestMetadata', - 'addressId', - addressId, - ); + assertParamExists('contestCreateContestMetadata', 'addressId', addressId); // verify required parameter 'id' is not null or undefined - assertParamExists('mutationContestCreateContestMetadata', 'id', id); - // verify required parameter 'mutationContestCreateContestMetadataRequest' is not null or undefined + assertParamExists('contestCreateContestMetadata', 'id', id); + // verify required parameter 'contestCreateContestMetadataRequest' is not null or undefined assertParamExists( - 'mutationContestCreateContestMetadata', - 'mutationContestCreateContestMetadataRequest', - mutationContestCreateContestMetadataRequest, + 'contestCreateContestMetadata', + 'contestCreateContestMetadataRequest', + contestCreateContestMetadataRequest, + ); + const localVarPath = `/CreateContestManagerMetadata/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(id)), ); - const localVarPath = - `/community/{id}/CreateContestManagerMetadata`.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; @@ -5181,7 +5167,7 @@ export const CommunityApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationContestCreateContestMetadataRequest, + contestCreateContestMetadataRequest, localVarRequestOptions, configuration, ); @@ -5195,35 +5181,30 @@ export const CommunityApiAxiosParamCreator = function ( * * @param {string} addressId * @param {string} id - * @param {MutationContestUpdateContestMetadataRequest} mutationContestUpdateContestMetadataRequest + * @param {ContestUpdateContestMetadataRequest} contestUpdateContestMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationContestUpdateContestMetadata: async ( + contestUpdateContestMetadata: async ( addressId: string, id: string, - mutationContestUpdateContestMetadataRequest: MutationContestUpdateContestMetadataRequest, + contestUpdateContestMetadataRequest: ContestUpdateContestMetadataRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined - assertParamExists( - 'mutationContestUpdateContestMetadata', - 'addressId', - addressId, - ); + assertParamExists('contestUpdateContestMetadata', 'addressId', addressId); // verify required parameter 'id' is not null or undefined - assertParamExists('mutationContestUpdateContestMetadata', 'id', id); - // verify required parameter 'mutationContestUpdateContestMetadataRequest' is not null or undefined + assertParamExists('contestUpdateContestMetadata', 'id', id); + // verify required parameter 'contestUpdateContestMetadataRequest' is not null or undefined assertParamExists( - 'mutationContestUpdateContestMetadata', - 'mutationContestUpdateContestMetadataRequest', - mutationContestUpdateContestMetadataRequest, + 'contestUpdateContestMetadata', + 'contestUpdateContestMetadataRequest', + contestUpdateContestMetadataRequest, + ); + const localVarPath = `/UpdateContestManagerMetadata/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(id)), ); - const localVarPath = - `/community/{id}/UpdateContestManagerMetadata`.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; @@ -5254,7 +5235,7 @@ export const CommunityApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationContestUpdateContestMetadataRequest, + contestUpdateContestMetadataRequest, localVarRequestOptions, configuration, ); @@ -5279,31 +5260,31 @@ export const CommunityApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {string} id - * @param {MutationCommunityCreateGroupRequest} mutationCommunityCreateGroupRequest + * @param {CommunityCreateGroupRequest} communityCreateGroupRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationCommunityCreateGroup( + async communityCreateGroup( addressId: string, id: string, - mutationCommunityCreateGroupRequest: MutationCommunityCreateGroupRequest, + communityCreateGroupRequest: CommunityCreateGroupRequest, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationCommunityCreateGroup( + await localVarAxiosParamCreator.communityCreateGroup( addressId, id, - mutationCommunityCreateGroupRequest, + communityCreateGroupRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['CommunityApi.mutationCommunityCreateGroup']?.[ + operationServerMap['CommunityApi.communityCreateGroup']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -5318,33 +5299,33 @@ export const CommunityApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {string} id - * @param {MutationCommunityCreateStakeTransactionRequest} mutationCommunityCreateStakeTransactionRequest + * @param {CommunityCreateStakeTransactionRequest} communityCreateStakeTransactionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationCommunityCreateStakeTransaction( + async communityCreateStakeTransaction( addressId: string, id: string, - mutationCommunityCreateStakeTransactionRequest: MutationCommunityCreateStakeTransactionRequest, + communityCreateStakeTransactionRequest: CommunityCreateStakeTransactionRequest, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationCommunityCreateStakeTransaction( + await localVarAxiosParamCreator.communityCreateStakeTransaction( addressId, id, - mutationCommunityCreateStakeTransactionRequest, + communityCreateStakeTransactionRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap[ - 'CommunityApi.mutationCommunityCreateStakeTransaction' - ]?.[localVarOperationServerIndex]?.url; + operationServerMap['CommunityApi.communityCreateStakeTransaction']?.[ + localVarOperationServerIndex + ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, @@ -5357,31 +5338,31 @@ export const CommunityApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {string} id - * @param {MutationCommunitySetStakeRequest} mutationCommunitySetStakeRequest + * @param {CommunitySetStakeRequest} communitySetStakeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationCommunitySetStake( + async communitySetStake( addressId: string, id: string, - mutationCommunitySetStakeRequest: MutationCommunitySetStakeRequest, + communitySetStakeRequest: CommunitySetStakeRequest, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationCommunitySetStake( + await localVarAxiosParamCreator.communitySetStake( addressId, id, - mutationCommunitySetStakeRequest, + communitySetStakeRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['CommunityApi.mutationCommunitySetStake']?.[ + operationServerMap['CommunityApi.communitySetStake']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -5396,33 +5377,33 @@ export const CommunityApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {string} id - * @param {MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner} mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner + * @param {IntegrationsAnalyticsRequestThreadCreatedContestManagersInner} integrationsAnalyticsRequestThreadCreatedContestManagersInner * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationContestCancelContestMetadata( + async contestCancelContestMetadata( addressId: string, id: string, - mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner: MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + integrationsAnalyticsRequestThreadCreatedContestManagersInner: IntegrationsAnalyticsRequestThreadCreatedContestManagersInner, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationContestCancelContestMetadata( + await localVarAxiosParamCreator.contestCancelContestMetadata( addressId, id, - mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + integrationsAnalyticsRequestThreadCreatedContestManagersInner, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap[ - 'CommunityApi.mutationContestCancelContestMetadata' - ]?.[localVarOperationServerIndex]?.url; + operationServerMap['CommunityApi.contestCancelContestMetadata']?.[ + localVarOperationServerIndex + ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, @@ -5435,33 +5416,33 @@ export const CommunityApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {string} id - * @param {MutationContestCreateContestMetadataRequest} mutationContestCreateContestMetadataRequest + * @param {ContestCreateContestMetadataRequest} contestCreateContestMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationContestCreateContestMetadata( + async contestCreateContestMetadata( addressId: string, id: string, - mutationContestCreateContestMetadataRequest: MutationContestCreateContestMetadataRequest, + contestCreateContestMetadataRequest: ContestCreateContestMetadataRequest, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationContestCreateContestMetadata( + await localVarAxiosParamCreator.contestCreateContestMetadata( addressId, id, - mutationContestCreateContestMetadataRequest, + contestCreateContestMetadataRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap[ - 'CommunityApi.mutationContestCreateContestMetadata' - ]?.[localVarOperationServerIndex]?.url; + operationServerMap['CommunityApi.contestCreateContestMetadata']?.[ + localVarOperationServerIndex + ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, @@ -5474,33 +5455,33 @@ export const CommunityApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {string} id - * @param {MutationContestUpdateContestMetadataRequest} mutationContestUpdateContestMetadataRequest + * @param {ContestUpdateContestMetadataRequest} contestUpdateContestMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationContestUpdateContestMetadata( + async contestUpdateContestMetadata( addressId: string, id: string, - mutationContestUpdateContestMetadataRequest: MutationContestUpdateContestMetadataRequest, + contestUpdateContestMetadataRequest: ContestUpdateContestMetadataRequest, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationContestUpdateContestMetadata( + await localVarAxiosParamCreator.contestUpdateContestMetadata( addressId, id, - mutationContestUpdateContestMetadataRequest, + contestUpdateContestMetadataRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap[ - 'CommunityApi.mutationContestUpdateContestMetadata' - ]?.[localVarOperationServerIndex]?.url; + operationServerMap['CommunityApi.contestUpdateContestMetadata']?.[ + localVarOperationServerIndex + ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, @@ -5527,21 +5508,21 @@ export const CommunityApiFactory = function ( * * @param {string} addressId * @param {string} id - * @param {MutationCommunityCreateGroupRequest} mutationCommunityCreateGroupRequest + * @param {CommunityCreateGroupRequest} communityCreateGroupRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationCommunityCreateGroup( + communityCreateGroup( addressId: string, id: string, - mutationCommunityCreateGroupRequest: MutationCommunityCreateGroupRequest, + communityCreateGroupRequest: CommunityCreateGroupRequest, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .mutationCommunityCreateGroup( + .communityCreateGroup( addressId, id, - mutationCommunityCreateGroupRequest, + communityCreateGroupRequest, options, ) .then((request) => request(axios, basePath)); @@ -5550,21 +5531,21 @@ export const CommunityApiFactory = function ( * * @param {string} addressId * @param {string} id - * @param {MutationCommunityCreateStakeTransactionRequest} mutationCommunityCreateStakeTransactionRequest + * @param {CommunityCreateStakeTransactionRequest} communityCreateStakeTransactionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationCommunityCreateStakeTransaction( + communityCreateStakeTransaction( addressId: string, id: string, - mutationCommunityCreateStakeTransactionRequest: MutationCommunityCreateStakeTransactionRequest, + communityCreateStakeTransactionRequest: CommunityCreateStakeTransactionRequest, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .mutationCommunityCreateStakeTransaction( + .communityCreateStakeTransaction( addressId, id, - mutationCommunityCreateStakeTransactionRequest, + communityCreateStakeTransactionRequest, options, ) .then((request) => request(axios, basePath)); @@ -5573,44 +5554,39 @@ export const CommunityApiFactory = function ( * * @param {string} addressId * @param {string} id - * @param {MutationCommunitySetStakeRequest} mutationCommunitySetStakeRequest + * @param {CommunitySetStakeRequest} communitySetStakeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationCommunitySetStake( + communitySetStake( addressId: string, id: string, - mutationCommunitySetStakeRequest: MutationCommunitySetStakeRequest, + communitySetStakeRequest: CommunitySetStakeRequest, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .mutationCommunitySetStake( - addressId, - id, - mutationCommunitySetStakeRequest, - options, - ) + .communitySetStake(addressId, id, communitySetStakeRequest, options) .then((request) => request(axios, basePath)); }, /** * * @param {string} addressId * @param {string} id - * @param {MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner} mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner + * @param {IntegrationsAnalyticsRequestThreadCreatedContestManagersInner} integrationsAnalyticsRequestThreadCreatedContestManagersInner * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationContestCancelContestMetadata( + contestCancelContestMetadata( addressId: string, id: string, - mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner: MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + integrationsAnalyticsRequestThreadCreatedContestManagersInner: IntegrationsAnalyticsRequestThreadCreatedContestManagersInner, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .mutationContestCancelContestMetadata( + .contestCancelContestMetadata( addressId, id, - mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + integrationsAnalyticsRequestThreadCreatedContestManagersInner, options, ) .then((request) => request(axios, basePath)); @@ -5619,21 +5595,21 @@ export const CommunityApiFactory = function ( * * @param {string} addressId * @param {string} id - * @param {MutationContestCreateContestMetadataRequest} mutationContestCreateContestMetadataRequest + * @param {ContestCreateContestMetadataRequest} contestCreateContestMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationContestCreateContestMetadata( + contestCreateContestMetadata( addressId: string, id: string, - mutationContestCreateContestMetadataRequest: MutationContestCreateContestMetadataRequest, + contestCreateContestMetadataRequest: ContestCreateContestMetadataRequest, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .mutationContestCreateContestMetadata( + .contestCreateContestMetadata( addressId, id, - mutationContestCreateContestMetadataRequest, + contestCreateContestMetadataRequest, options, ) .then((request) => request(axios, basePath)); @@ -5642,21 +5618,21 @@ export const CommunityApiFactory = function ( * * @param {string} addressId * @param {string} id - * @param {MutationContestUpdateContestMetadataRequest} mutationContestUpdateContestMetadataRequest + * @param {ContestUpdateContestMetadataRequest} contestUpdateContestMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationContestUpdateContestMetadata( + contestUpdateContestMetadata( addressId: string, id: string, - mutationContestUpdateContestMetadataRequest: MutationContestUpdateContestMetadataRequest, + contestUpdateContestMetadataRequest: ContestUpdateContestMetadataRequest, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .mutationContestUpdateContestMetadata( + .contestUpdateContestMetadata( addressId, id, - mutationContestUpdateContestMetadataRequest, + contestUpdateContestMetadataRequest, options, ) .then((request) => request(axios, basePath)); @@ -5675,24 +5651,19 @@ export class CommunityApi extends BaseAPI { * * @param {string} addressId * @param {string} id - * @param {MutationCommunityCreateGroupRequest} mutationCommunityCreateGroupRequest + * @param {CommunityCreateGroupRequest} communityCreateGroupRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommunityApi */ - public mutationCommunityCreateGroup( + public communityCreateGroup( addressId: string, id: string, - mutationCommunityCreateGroupRequest: MutationCommunityCreateGroupRequest, + communityCreateGroupRequest: CommunityCreateGroupRequest, options?: RawAxiosRequestConfig, ) { return CommunityApiFp(this.configuration) - .mutationCommunityCreateGroup( - addressId, - id, - mutationCommunityCreateGroupRequest, - options, - ) + .communityCreateGroup(addressId, id, communityCreateGroupRequest, options) .then((request) => request(this.axios, this.basePath)); } @@ -5700,22 +5671,22 @@ export class CommunityApi extends BaseAPI { * * @param {string} addressId * @param {string} id - * @param {MutationCommunityCreateStakeTransactionRequest} mutationCommunityCreateStakeTransactionRequest + * @param {CommunityCreateStakeTransactionRequest} communityCreateStakeTransactionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommunityApi */ - public mutationCommunityCreateStakeTransaction( + public communityCreateStakeTransaction( addressId: string, id: string, - mutationCommunityCreateStakeTransactionRequest: MutationCommunityCreateStakeTransactionRequest, + communityCreateStakeTransactionRequest: CommunityCreateStakeTransactionRequest, options?: RawAxiosRequestConfig, ) { return CommunityApiFp(this.configuration) - .mutationCommunityCreateStakeTransaction( + .communityCreateStakeTransaction( addressId, id, - mutationCommunityCreateStakeTransactionRequest, + communityCreateStakeTransactionRequest, options, ) .then((request) => request(this.axios, this.basePath)); @@ -5725,24 +5696,19 @@ export class CommunityApi extends BaseAPI { * * @param {string} addressId * @param {string} id - * @param {MutationCommunitySetStakeRequest} mutationCommunitySetStakeRequest + * @param {CommunitySetStakeRequest} communitySetStakeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommunityApi */ - public mutationCommunitySetStake( + public communitySetStake( addressId: string, id: string, - mutationCommunitySetStakeRequest: MutationCommunitySetStakeRequest, + communitySetStakeRequest: CommunitySetStakeRequest, options?: RawAxiosRequestConfig, ) { return CommunityApiFp(this.configuration) - .mutationCommunitySetStake( - addressId, - id, - mutationCommunitySetStakeRequest, - options, - ) + .communitySetStake(addressId, id, communitySetStakeRequest, options) .then((request) => request(this.axios, this.basePath)); } @@ -5750,22 +5716,22 @@ export class CommunityApi extends BaseAPI { * * @param {string} addressId * @param {string} id - * @param {MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner} mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner + * @param {IntegrationsAnalyticsRequestThreadCreatedContestManagersInner} integrationsAnalyticsRequestThreadCreatedContestManagersInner * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommunityApi */ - public mutationContestCancelContestMetadata( + public contestCancelContestMetadata( addressId: string, id: string, - mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner: MutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + integrationsAnalyticsRequestThreadCreatedContestManagersInner: IntegrationsAnalyticsRequestThreadCreatedContestManagersInner, options?: RawAxiosRequestConfig, ) { return CommunityApiFp(this.configuration) - .mutationContestCancelContestMetadata( + .contestCancelContestMetadata( addressId, id, - mutationIntegrationsAnalyticsRequestThreadCreatedContestManagersInner, + integrationsAnalyticsRequestThreadCreatedContestManagersInner, options, ) .then((request) => request(this.axios, this.basePath)); @@ -5775,22 +5741,22 @@ export class CommunityApi extends BaseAPI { * * @param {string} addressId * @param {string} id - * @param {MutationContestCreateContestMetadataRequest} mutationContestCreateContestMetadataRequest + * @param {ContestCreateContestMetadataRequest} contestCreateContestMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommunityApi */ - public mutationContestCreateContestMetadata( + public contestCreateContestMetadata( addressId: string, id: string, - mutationContestCreateContestMetadataRequest: MutationContestCreateContestMetadataRequest, + contestCreateContestMetadataRequest: ContestCreateContestMetadataRequest, options?: RawAxiosRequestConfig, ) { return CommunityApiFp(this.configuration) - .mutationContestCreateContestMetadata( + .contestCreateContestMetadata( addressId, id, - mutationContestCreateContestMetadataRequest, + contestCreateContestMetadataRequest, options, ) .then((request) => request(this.axios, this.basePath)); @@ -5800,22 +5766,22 @@ export class CommunityApi extends BaseAPI { * * @param {string} addressId * @param {string} id - * @param {MutationContestUpdateContestMetadataRequest} mutationContestUpdateContestMetadataRequest + * @param {ContestUpdateContestMetadataRequest} contestUpdateContestMetadataRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CommunityApi */ - public mutationContestUpdateContestMetadata( + public contestUpdateContestMetadata( addressId: string, id: string, - mutationContestUpdateContestMetadataRequest: MutationContestUpdateContestMetadataRequest, + contestUpdateContestMetadataRequest: ContestUpdateContestMetadataRequest, options?: RawAxiosRequestConfig, ) { return CommunityApiFp(this.configuration) - .mutationContestUpdateContestMetadata( + .contestUpdateContestMetadata( addressId, id, - mutationContestUpdateContestMetadataRequest, + contestUpdateContestMetadataRequest, options, ) .then((request) => request(this.axios, this.basePath)); @@ -5832,21 +5798,21 @@ export const IntegrationApiAxiosParamCreator = function ( return { /** * - * @param {MutationIntegrationsAnalyticsRequest} mutationIntegrationsAnalyticsRequest + * @param {IntegrationsAnalyticsRequest} integrationsAnalyticsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationIntegrationsAnalytics: async ( - mutationIntegrationsAnalyticsRequest: MutationIntegrationsAnalyticsRequest, + integrationsAnalytics: async ( + integrationsAnalyticsRequest: IntegrationsAnalyticsRequest, options: RawAxiosRequestConfig = {}, ): Promise => { - // verify required parameter 'mutationIntegrationsAnalyticsRequest' is not null or undefined + // verify required parameter 'integrationsAnalyticsRequest' is not null or undefined assertParamExists( - 'mutationIntegrationsAnalytics', - 'mutationIntegrationsAnalyticsRequest', - mutationIntegrationsAnalyticsRequest, + 'integrationsAnalytics', + 'integrationsAnalyticsRequest', + integrationsAnalyticsRequest, ); - const localVarPath = `/integration/Analytics`; + const localVarPath = `/Analytics`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -5873,7 +5839,7 @@ export const IntegrationApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationIntegrationsAnalyticsRequest, + integrationsAnalyticsRequest, localVarRequestOptions, configuration, ); @@ -5896,24 +5862,24 @@ export const IntegrationApiFp = function (configuration?: Configuration) { return { /** * - * @param {MutationIntegrationsAnalyticsRequest} mutationIntegrationsAnalyticsRequest + * @param {IntegrationsAnalyticsRequest} integrationsAnalyticsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationIntegrationsAnalytics( - mutationIntegrationsAnalyticsRequest: MutationIntegrationsAnalyticsRequest, + async integrationsAnalytics( + integrationsAnalyticsRequest: IntegrationsAnalyticsRequest, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationIntegrationsAnalytics( - mutationIntegrationsAnalyticsRequest, + await localVarAxiosParamCreator.integrationsAnalytics( + integrationsAnalyticsRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['IntegrationApi.mutationIntegrationsAnalytics']?.[ + operationServerMap['IntegrationApi.integrationsAnalytics']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -5940,19 +5906,16 @@ export const IntegrationApiFactory = function ( return { /** * - * @param {MutationIntegrationsAnalyticsRequest} mutationIntegrationsAnalyticsRequest + * @param {IntegrationsAnalyticsRequest} integrationsAnalyticsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationIntegrationsAnalytics( - mutationIntegrationsAnalyticsRequest: MutationIntegrationsAnalyticsRequest, + integrationsAnalytics( + integrationsAnalyticsRequest: IntegrationsAnalyticsRequest, options?: any, ): AxiosPromise { return localVarFp - .mutationIntegrationsAnalytics( - mutationIntegrationsAnalyticsRequest, - options, - ) + .integrationsAnalytics(integrationsAnalyticsRequest, options) .then((request) => request(axios, basePath)); }, }; @@ -5967,20 +5930,17 @@ export const IntegrationApiFactory = function ( export class IntegrationApi extends BaseAPI { /** * - * @param {MutationIntegrationsAnalyticsRequest} mutationIntegrationsAnalyticsRequest + * @param {IntegrationsAnalyticsRequest} integrationsAnalyticsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof IntegrationApi */ - public mutationIntegrationsAnalytics( - mutationIntegrationsAnalyticsRequest: MutationIntegrationsAnalyticsRequest, + public integrationsAnalytics( + integrationsAnalyticsRequest: IntegrationsAnalyticsRequest, options?: RawAxiosRequestConfig, ) { return IntegrationApiFp(this.configuration) - .mutationIntegrationsAnalytics( - mutationIntegrationsAnalyticsRequest, - options, - ) + .integrationsAnalytics(integrationsAnalyticsRequest, options) .then((request) => request(this.axios, this.basePath)); } } @@ -5997,27 +5957,27 @@ export const LoadTestApiAxiosParamCreator = function ( * * @param {string} addressId * @param {number} id - * @param {MutationLoadTestCreateJWTsRequest} mutationLoadTestCreateJWTsRequest + * @param {LoadTestCreateJWTsRequest} loadTestCreateJWTsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationLoadTestCreateJWTs: async ( + loadTestCreateJWTs: async ( addressId: string, id: number, - mutationLoadTestCreateJWTsRequest: MutationLoadTestCreateJWTsRequest, + loadTestCreateJWTsRequest: LoadTestCreateJWTsRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined - assertParamExists('mutationLoadTestCreateJWTs', 'addressId', addressId); + assertParamExists('loadTestCreateJWTs', 'addressId', addressId); // verify required parameter 'id' is not null or undefined - assertParamExists('mutationLoadTestCreateJWTs', 'id', id); - // verify required parameter 'mutationLoadTestCreateJWTsRequest' is not null or undefined + assertParamExists('loadTestCreateJWTs', 'id', id); + // verify required parameter 'loadTestCreateJWTsRequest' is not null or undefined assertParamExists( - 'mutationLoadTestCreateJWTs', - 'mutationLoadTestCreateJWTsRequest', - mutationLoadTestCreateJWTsRequest, + 'loadTestCreateJWTs', + 'loadTestCreateJWTsRequest', + loadTestCreateJWTsRequest, ); - const localVarPath = `/loadtest/{id}/CreateJWTs`.replace( + const localVarPath = `/CreateJWTs/{id}`.replace( `{${'id'}}`, encodeURIComponent(String(id)), ); @@ -6055,7 +6015,7 @@ export const LoadTestApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationLoadTestCreateJWTsRequest, + loadTestCreateJWTsRequest, localVarRequestOptions, configuration, ); @@ -6079,28 +6039,28 @@ export const LoadTestApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {number} id - * @param {MutationLoadTestCreateJWTsRequest} mutationLoadTestCreateJWTsRequest + * @param {LoadTestCreateJWTsRequest} loadTestCreateJWTsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationLoadTestCreateJWTs( + async loadTestCreateJWTs( addressId: string, id: number, - mutationLoadTestCreateJWTsRequest: MutationLoadTestCreateJWTsRequest, + loadTestCreateJWTsRequest: LoadTestCreateJWTsRequest, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise> > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationLoadTestCreateJWTs( + await localVarAxiosParamCreator.loadTestCreateJWTs( addressId, id, - mutationLoadTestCreateJWTsRequest, + loadTestCreateJWTsRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['LoadTestApi.mutationLoadTestCreateJWTs']?.[ + operationServerMap['LoadTestApi.loadTestCreateJWTs']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -6129,23 +6089,18 @@ export const LoadTestApiFactory = function ( * * @param {string} addressId * @param {number} id - * @param {MutationLoadTestCreateJWTsRequest} mutationLoadTestCreateJWTsRequest + * @param {LoadTestCreateJWTsRequest} loadTestCreateJWTsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationLoadTestCreateJWTs( + loadTestCreateJWTs( addressId: string, id: number, - mutationLoadTestCreateJWTsRequest: MutationLoadTestCreateJWTsRequest, + loadTestCreateJWTsRequest: LoadTestCreateJWTsRequest, options?: any, ): AxiosPromise> { return localVarFp - .mutationLoadTestCreateJWTs( - addressId, - id, - mutationLoadTestCreateJWTsRequest, - options, - ) + .loadTestCreateJWTs(addressId, id, loadTestCreateJWTsRequest, options) .then((request) => request(axios, basePath)); }, }; @@ -6162,24 +6117,19 @@ export class LoadTestApi extends BaseAPI { * * @param {string} addressId * @param {number} id - * @param {MutationLoadTestCreateJWTsRequest} mutationLoadTestCreateJWTsRequest + * @param {LoadTestCreateJWTsRequest} loadTestCreateJWTsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LoadTestApi */ - public mutationLoadTestCreateJWTs( + public loadTestCreateJWTs( addressId: string, id: number, - mutationLoadTestCreateJWTsRequest: MutationLoadTestCreateJWTsRequest, + loadTestCreateJWTsRequest: LoadTestCreateJWTsRequest, options?: RawAxiosRequestConfig, ) { return LoadTestApiFp(this.configuration) - .mutationLoadTestCreateJWTs( - addressId, - id, - mutationLoadTestCreateJWTsRequest, - options, - ) + .loadTestCreateJWTs(addressId, id, loadTestCreateJWTsRequest, options) .then((request) => request(this.axios, this.basePath)); } } @@ -6200,15 +6150,15 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryCommunityGetCommunity: async ( + communityGetCommunity: async ( id: string, addressId?: string, includeNodeInfo?: boolean, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('queryCommunityGetCommunity', 'id', id); - const localVarPath = `/query/GetCommunity`; + assertParamExists('communityGetCommunity', 'id', id); + const localVarPath = `/GetCommunity`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6256,35 +6206,35 @@ export const QueryApiAxiosParamCreator = function ( * @param {string} [addressId] * @param {number | null} [limit] * @param {number | null} [cursor] required for tRPC useInfiniteQuery hook, equivalent to page number - * @param {QueryCommunityGetMembersOrderByEnum} [orderBy] - * @param {QueryCommunityGetMembersOrderDirectionEnum} [orderDirection] + * @param {CommunityGetMembersOrderByEnum} [orderBy] + * @param {CommunityGetMembersOrderDirectionEnum} [orderDirection] * @param {string} [search] * @param {boolean} [includeRoles] - * @param {QueryCommunityGetMembersMembershipsParameter} [memberships] + * @param {CommunityGetMembersMembershipsParameter} [memberships] * @param {boolean} [includeGroupIds] * @param {boolean} [includeStakeBalances] * @param {string} [allowedAddresses] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryCommunityGetMembers: async ( + communityGetMembers: async ( communityId: string, addressId?: string, limit?: number | null, cursor?: number | null, - orderBy?: QueryCommunityGetMembersOrderByEnum, - orderDirection?: QueryCommunityGetMembersOrderDirectionEnum, + orderBy?: CommunityGetMembersOrderByEnum, + orderDirection?: CommunityGetMembersOrderDirectionEnum, search?: string, includeRoles?: boolean, - memberships?: QueryCommunityGetMembersMembershipsParameter, + memberships?: CommunityGetMembersMembershipsParameter, includeGroupIds?: boolean, includeStakeBalances?: boolean, allowedAddresses?: string, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'communityId' is not null or undefined - assertParamExists('queryCommunityGetMembers', 'communityId', communityId); - const localVarPath = `/query/GetMembers`; + assertParamExists('communityGetMembers', 'communityId', communityId); + const localVarPath = `/GetMembers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6372,15 +6322,15 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryCommunityGetStake: async ( + communityGetStake: async ( communityId: string, addressId?: string, stakeId?: number, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'communityId' is not null or undefined - assertParamExists('queryCommunityGetStake', 'communityId', communityId); - const localVarPath = `/query/GetCommunityStake`; + assertParamExists('communityGetStake', 'communityId', communityId); + const localVarPath = `/GetCommunityStake`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6431,7 +6381,7 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryCommunityGetStakeHistoricalPrice: async ( + communityGetStakeHistoricalPrice: async ( pastDateEpoch: number, addressId?: string, communityId?: string, @@ -6440,11 +6390,11 @@ export const QueryApiAxiosParamCreator = function ( ): Promise => { // verify required parameter 'pastDateEpoch' is not null or undefined assertParamExists( - 'queryCommunityGetStakeHistoricalPrice', + 'communityGetStakeHistoricalPrice', 'pastDateEpoch', pastDateEpoch, ); - const localVarPath = `/query/GetStakeHistoricalPrice`; + const localVarPath = `/GetStakeHistoricalPrice`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6497,12 +6447,12 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryCommunityGetStakeTransaction: async ( + communityGetStakeTransaction: async ( addressId?: string, addresses?: string, options: RawAxiosRequestConfig = {}, ): Promise => { - const localVarPath = `/query/GetStakeTransaction`; + const localVarPath = `/GetStakeTransaction`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6550,7 +6500,7 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryContestGetAllContests: async ( + contestGetAllContests: async ( communityId: string, addressId?: string, contestAddress?: string, @@ -6559,12 +6509,8 @@ export const QueryApiAxiosParamCreator = function ( options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'communityId' is not null or undefined - assertParamExists( - 'queryContestGetAllContests', - 'communityId', - communityId, - ); - const localVarPath = `/query/GetAllContests`; + assertParamExists('contestGetAllContests', 'communityId', communityId); + const localVarPath = `/GetAllContests`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6621,18 +6567,18 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryContestGetContestLog: async ( + contestGetContestLog: async ( contestAddress: string, addressId?: string, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'contestAddress' is not null or undefined assertParamExists( - 'queryContestGetContestLog', + 'contestGetContestLog', 'contestAddress', contestAddress, ); - const localVarPath = `/query/GetContestLog`; + const localVarPath = `/GetContestLog`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6676,11 +6622,11 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryFeedGetChainActivity: async ( + feedGetChainActivity: async ( addressId?: string, options: RawAxiosRequestConfig = {}, ): Promise => { - const localVarPath = `/query/GetChainActivity`; + const localVarPath = `/GetChainActivity`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6720,11 +6666,11 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryFeedGetGlobalActivity: async ( + feedGetGlobalActivity: async ( addressId?: string, options: RawAxiosRequestConfig = {}, ): Promise => { - const localVarPath = `/query/GetGlobalActivity`; + const localVarPath = `/GetGlobalActivity`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6764,11 +6710,11 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryFeedGetUserActivity: async ( + feedGetUserActivity: async ( addressId?: string, options: RawAxiosRequestConfig = {}, ): Promise => { - const localVarPath = `/query/GetUserActivity`; + const localVarPath = `/GetUserActivity`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6808,11 +6754,11 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - querySubscriptionGetCommentSubscriptions: async ( + subscriptionGetCommentSubscriptions: async ( addressId?: string, options: RawAxiosRequestConfig = {}, ): Promise => { - const localVarPath = `/query/GetCommentSubscriptions`; + const localVarPath = `/GetCommentSubscriptions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6852,11 +6798,11 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - querySubscriptionGetCommunityAlerts: async ( + subscriptionGetCommunityAlerts: async ( addressId?: string, options: RawAxiosRequestConfig = {}, ): Promise => { - const localVarPath = `/query/GetCommunityAlerts`; + const localVarPath = `/GetCommunityAlerts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6896,11 +6842,11 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - querySubscriptionGetSubscriptionPreferences: async ( + subscriptionGetSubscriptionPreferences: async ( addressId?: string, options: RawAxiosRequestConfig = {}, ): Promise => { - const localVarPath = `/query/GetSubscriptionPreferences`; + const localVarPath = `/GetSubscriptionPreferences`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6940,11 +6886,11 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - querySubscriptionGetThreadSubscriptions: async ( + subscriptionGetThreadSubscriptions: async ( addressId?: string, options: RawAxiosRequestConfig = {}, ): Promise => { - const localVarPath = `/query/GetThreadSubscriptions`; + const localVarPath = `/GetThreadSubscriptions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6988,7 +6934,7 @@ export const QueryApiAxiosParamCreator = function ( * @param {boolean} [includePinnedThreads] * @param {number} [topicId] * @param {string} [stage] - * @param {QueryThreadGetBulkThreadsOrderByEnum} [orderBy] + * @param {ThreadGetBulkThreadsOrderByEnum} [orderBy] * @param {number} [cursor] * @param {number} [limit] The number of objects returned * @param {number} [offset] The amount of objects offset from the beginning @@ -6996,7 +6942,7 @@ export const QueryApiAxiosParamCreator = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryThreadGetBulkThreads: async ( + threadGetBulkThreads: async ( communityId: string, addressId?: string, fromDate?: string, @@ -7005,7 +6951,7 @@ export const QueryApiAxiosParamCreator = function ( includePinnedThreads?: boolean, topicId?: number, stage?: string, - orderBy?: QueryThreadGetBulkThreadsOrderByEnum, + orderBy?: ThreadGetBulkThreadsOrderByEnum, cursor?: number, limit?: number, offset?: number, @@ -7013,12 +6959,8 @@ export const QueryApiAxiosParamCreator = function ( options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'communityId' is not null or undefined - assertParamExists( - 'queryThreadGetBulkThreads', - 'communityId', - communityId, - ); - const localVarPath = `/query/GetBulkThreads`; + assertParamExists('threadGetBulkThreads', 'communityId', communityId); + const localVarPath = `/GetBulkThreads`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -7124,7 +7066,7 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async queryCommunityGetCommunity( + async communityGetCommunity( id: string, addressId?: string, includeNodeInfo?: boolean, @@ -7133,10 +7075,10 @@ export const QueryApiFp = function (configuration?: Configuration) { ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.queryCommunityGetCommunity( + await localVarAxiosParamCreator.communityGetCommunity( id, addressId, includeNodeInfo, @@ -7144,7 +7086,7 @@ export const QueryApiFp = function (configuration?: Configuration) { ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['QueryApi.queryCommunityGetCommunity']?.[ + operationServerMap['QueryApi.communityGetCommunity']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -7161,27 +7103,27 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {string} [addressId] * @param {number | null} [limit] * @param {number | null} [cursor] required for tRPC useInfiniteQuery hook, equivalent to page number - * @param {QueryCommunityGetMembersOrderByEnum} [orderBy] - * @param {QueryCommunityGetMembersOrderDirectionEnum} [orderDirection] + * @param {CommunityGetMembersOrderByEnum} [orderBy] + * @param {CommunityGetMembersOrderDirectionEnum} [orderDirection] * @param {string} [search] * @param {boolean} [includeRoles] - * @param {QueryCommunityGetMembersMembershipsParameter} [memberships] + * @param {CommunityGetMembersMembershipsParameter} [memberships] * @param {boolean} [includeGroupIds] * @param {boolean} [includeStakeBalances] * @param {string} [allowedAddresses] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async queryCommunityGetMembers( + async communityGetMembers( communityId: string, addressId?: string, limit?: number | null, cursor?: number | null, - orderBy?: QueryCommunityGetMembersOrderByEnum, - orderDirection?: QueryCommunityGetMembersOrderDirectionEnum, + orderBy?: CommunityGetMembersOrderByEnum, + orderDirection?: CommunityGetMembersOrderDirectionEnum, search?: string, includeRoles?: boolean, - memberships?: QueryCommunityGetMembersMembershipsParameter, + memberships?: CommunityGetMembersMembershipsParameter, includeGroupIds?: boolean, includeStakeBalances?: boolean, allowedAddresses?: string, @@ -7190,10 +7132,10 @@ export const QueryApiFp = function (configuration?: Configuration) { ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.queryCommunityGetMembers( + await localVarAxiosParamCreator.communityGetMembers( communityId, addressId, limit, @@ -7210,7 +7152,7 @@ export const QueryApiFp = function (configuration?: Configuration) { ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['QueryApi.queryCommunityGetMembers']?.[ + operationServerMap['QueryApi.communityGetMembers']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -7229,7 +7171,7 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async queryCommunityGetStake( + async communityGetStake( communityId: string, addressId?: string, stakeId?: number, @@ -7238,10 +7180,10 @@ export const QueryApiFp = function (configuration?: Configuration) { ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.queryCommunityGetStake( + await localVarAxiosParamCreator.communityGetStake( communityId, addressId, stakeId, @@ -7249,7 +7191,7 @@ export const QueryApiFp = function (configuration?: Configuration) { ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['QueryApi.queryCommunityGetStake']?.[ + operationServerMap['QueryApi.communityGetStake']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -7269,7 +7211,7 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async queryCommunityGetStakeHistoricalPrice( + async communityGetStakeHistoricalPrice( pastDateEpoch: number, addressId?: string, communityId?: string, @@ -7279,12 +7221,10 @@ export const QueryApiFp = function (configuration?: Configuration) { ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise< - Array - > + ) => AxiosPromise> > { const localVarAxiosArgs = - await localVarAxiosParamCreator.queryCommunityGetStakeHistoricalPrice( + await localVarAxiosParamCreator.communityGetStakeHistoricalPrice( pastDateEpoch, addressId, communityId, @@ -7293,7 +7233,7 @@ export const QueryApiFp = function (configuration?: Configuration) { ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['QueryApi.queryCommunityGetStakeHistoricalPrice']?.[ + operationServerMap['QueryApi.communityGetStakeHistoricalPrice']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -7311,7 +7251,7 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async queryCommunityGetStakeTransaction( + async communityGetStakeTransaction( addressId?: string, addresses?: string, options?: RawAxiosRequestConfig, @@ -7319,19 +7259,17 @@ export const QueryApiFp = function (configuration?: Configuration) { ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise< - Array - > + ) => AxiosPromise> > { const localVarAxiosArgs = - await localVarAxiosParamCreator.queryCommunityGetStakeTransaction( + await localVarAxiosParamCreator.communityGetStakeTransaction( addressId, addresses, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['QueryApi.queryCommunityGetStakeTransaction']?.[ + operationServerMap['QueryApi.communityGetStakeTransaction']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -7352,7 +7290,7 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async queryContestGetAllContests( + async contestGetAllContests( communityId: string, addressId?: string, contestAddress?: string, @@ -7363,10 +7301,10 @@ export const QueryApiFp = function (configuration?: Configuration) { ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise> + ) => AxiosPromise> > { const localVarAxiosArgs = - await localVarAxiosParamCreator.queryContestGetAllContests( + await localVarAxiosParamCreator.contestGetAllContests( communityId, addressId, contestAddress, @@ -7376,7 +7314,7 @@ export const QueryApiFp = function (configuration?: Configuration) { ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['QueryApi.queryContestGetAllContests']?.[ + operationServerMap['QueryApi.contestGetAllContests']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -7394,7 +7332,7 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async queryContestGetContestLog( + async contestGetContestLog( contestAddress: string, addressId?: string, options?: RawAxiosRequestConfig, @@ -7402,17 +7340,17 @@ export const QueryApiFp = function (configuration?: Configuration) { ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise> + ) => AxiosPromise> > { const localVarAxiosArgs = - await localVarAxiosParamCreator.queryContestGetContestLog( + await localVarAxiosParamCreator.contestGetContestLog( contestAddress, addressId, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['QueryApi.queryContestGetContestLog']?.[ + operationServerMap['QueryApi.contestGetContestLog']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -7429,23 +7367,23 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async queryFeedGetChainActivity( + async feedGetChainActivity( addressId?: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise> + ) => AxiosPromise> > { const localVarAxiosArgs = - await localVarAxiosParamCreator.queryFeedGetChainActivity( + await localVarAxiosParamCreator.feedGetChainActivity( addressId, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['QueryApi.queryFeedGetChainActivity']?.[ + operationServerMap['QueryApi.feedGetChainActivity']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -7462,23 +7400,23 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async queryFeedGetGlobalActivity( + async feedGetGlobalActivity( addressId?: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise> + ) => AxiosPromise> > { const localVarAxiosArgs = - await localVarAxiosParamCreator.queryFeedGetGlobalActivity( + await localVarAxiosParamCreator.feedGetGlobalActivity( addressId, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['QueryApi.queryFeedGetGlobalActivity']?.[ + operationServerMap['QueryApi.feedGetGlobalActivity']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -7495,23 +7433,20 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async queryFeedGetUserActivity( + async feedGetUserActivity( addressId?: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise> + ) => AxiosPromise> > { const localVarAxiosArgs = - await localVarAxiosParamCreator.queryFeedGetUserActivity( - addressId, - options, - ); + await localVarAxiosParamCreator.feedGetUserActivity(addressId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['QueryApi.queryFeedGetUserActivity']?.[ + operationServerMap['QueryApi.feedGetUserActivity']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -7528,27 +7463,25 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async querySubscriptionGetCommentSubscriptions( + async subscriptionGetCommentSubscriptions( addressId?: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise< - Array - > + ) => AxiosPromise> > { const localVarAxiosArgs = - await localVarAxiosParamCreator.querySubscriptionGetCommentSubscriptions( + await localVarAxiosParamCreator.subscriptionGetCommentSubscriptions( addressId, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap[ - 'QueryApi.querySubscriptionGetCommentSubscriptions' - ]?.[localVarOperationServerIndex]?.url; + operationServerMap['QueryApi.subscriptionGetCommentSubscriptions']?.[ + localVarOperationServerIndex + ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, @@ -7563,25 +7496,23 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async querySubscriptionGetCommunityAlerts( + async subscriptionGetCommunityAlerts( addressId?: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise< - Array - > + ) => AxiosPromise> > { const localVarAxiosArgs = - await localVarAxiosParamCreator.querySubscriptionGetCommunityAlerts( + await localVarAxiosParamCreator.subscriptionGetCommunityAlerts( addressId, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['QueryApi.querySubscriptionGetCommunityAlerts']?.[ + operationServerMap['QueryApi.subscriptionGetCommunityAlerts']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -7598,25 +7529,25 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async querySubscriptionGetSubscriptionPreferences( + async subscriptionGetSubscriptionPreferences( addressId?: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.querySubscriptionGetSubscriptionPreferences( + await localVarAxiosParamCreator.subscriptionGetSubscriptionPreferences( addressId, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap[ - 'QueryApi.querySubscriptionGetSubscriptionPreferences' - ]?.[localVarOperationServerIndex]?.url; + operationServerMap['QueryApi.subscriptionGetSubscriptionPreferences']?.[ + localVarOperationServerIndex + ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, @@ -7631,27 +7562,25 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async querySubscriptionGetThreadSubscriptions( + async subscriptionGetThreadSubscriptions( addressId?: string, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise< - Array - > + ) => AxiosPromise> > { const localVarAxiosArgs = - await localVarAxiosParamCreator.querySubscriptionGetThreadSubscriptions( + await localVarAxiosParamCreator.subscriptionGetThreadSubscriptions( addressId, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap[ - 'QueryApi.querySubscriptionGetThreadSubscriptions' - ]?.[localVarOperationServerIndex]?.url; + operationServerMap['QueryApi.subscriptionGetThreadSubscriptions']?.[ + localVarOperationServerIndex + ]?.url; return (axios, basePath) => createRequestFunction( localVarAxiosArgs, @@ -7670,7 +7599,7 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {boolean} [includePinnedThreads] * @param {number} [topicId] * @param {string} [stage] - * @param {QueryThreadGetBulkThreadsOrderByEnum} [orderBy] + * @param {ThreadGetBulkThreadsOrderByEnum} [orderBy] * @param {number} [cursor] * @param {number} [limit] The number of objects returned * @param {number} [offset] The amount of objects offset from the beginning @@ -7678,7 +7607,7 @@ export const QueryApiFp = function (configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async queryThreadGetBulkThreads( + async threadGetBulkThreads( communityId: string, addressId?: string, fromDate?: string, @@ -7687,7 +7616,7 @@ export const QueryApiFp = function (configuration?: Configuration) { includePinnedThreads?: boolean, topicId?: number, stage?: string, - orderBy?: QueryThreadGetBulkThreadsOrderByEnum, + orderBy?: ThreadGetBulkThreadsOrderByEnum, cursor?: number, limit?: number, offset?: number, @@ -7697,10 +7626,10 @@ export const QueryApiFp = function (configuration?: Configuration) { ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.queryThreadGetBulkThreads( + await localVarAxiosParamCreator.threadGetBulkThreads( communityId, addressId, fromDate, @@ -7718,7 +7647,7 @@ export const QueryApiFp = function (configuration?: Configuration) { ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['QueryApi.queryThreadGetBulkThreads']?.[ + operationServerMap['QueryApi.threadGetBulkThreads']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -7751,14 +7680,14 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryCommunityGetCommunity( + communityGetCommunity( id: string, addressId?: string, includeNodeInfo?: boolean, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .queryCommunityGetCommunity(id, addressId, includeNodeInfo, options) + .communityGetCommunity(id, addressId, includeNodeInfo, options) .then((request) => request(axios, basePath)); }, /** @@ -7767,34 +7696,34 @@ export const QueryApiFactory = function ( * @param {string} [addressId] * @param {number | null} [limit] * @param {number | null} [cursor] required for tRPC useInfiniteQuery hook, equivalent to page number - * @param {QueryCommunityGetMembersOrderByEnum} [orderBy] - * @param {QueryCommunityGetMembersOrderDirectionEnum} [orderDirection] + * @param {CommunityGetMembersOrderByEnum} [orderBy] + * @param {CommunityGetMembersOrderDirectionEnum} [orderDirection] * @param {string} [search] * @param {boolean} [includeRoles] - * @param {QueryCommunityGetMembersMembershipsParameter} [memberships] + * @param {CommunityGetMembersMembershipsParameter} [memberships] * @param {boolean} [includeGroupIds] * @param {boolean} [includeStakeBalances] * @param {string} [allowedAddresses] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryCommunityGetMembers( + communityGetMembers( communityId: string, addressId?: string, limit?: number | null, cursor?: number | null, - orderBy?: QueryCommunityGetMembersOrderByEnum, - orderDirection?: QueryCommunityGetMembersOrderDirectionEnum, + orderBy?: CommunityGetMembersOrderByEnum, + orderDirection?: CommunityGetMembersOrderDirectionEnum, search?: string, includeRoles?: boolean, - memberships?: QueryCommunityGetMembersMembershipsParameter, + memberships?: CommunityGetMembersMembershipsParameter, includeGroupIds?: boolean, includeStakeBalances?: boolean, allowedAddresses?: string, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .queryCommunityGetMembers( + .communityGetMembers( communityId, addressId, limit, @@ -7819,14 +7748,14 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryCommunityGetStake( + communityGetStake( communityId: string, addressId?: string, stakeId?: number, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .queryCommunityGetStake(communityId, addressId, stakeId, options) + .communityGetStake(communityId, addressId, stakeId, options) .then((request) => request(axios, basePath)); }, /** @@ -7838,17 +7767,15 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryCommunityGetStakeHistoricalPrice( + communityGetStakeHistoricalPrice( pastDateEpoch: number, addressId?: string, communityId?: string, stakeId?: number, options?: any, - ): AxiosPromise< - Array - > { + ): AxiosPromise> { return localVarFp - .queryCommunityGetStakeHistoricalPrice( + .communityGetStakeHistoricalPrice( pastDateEpoch, addressId, communityId, @@ -7864,13 +7791,13 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryCommunityGetStakeTransaction( + communityGetStakeTransaction( addressId?: string, addresses?: string, options?: any, - ): AxiosPromise> { + ): AxiosPromise> { return localVarFp - .queryCommunityGetStakeTransaction(addressId, addresses, options) + .communityGetStakeTransaction(addressId, addresses, options) .then((request) => request(axios, basePath)); }, /** @@ -7883,16 +7810,16 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryContestGetAllContests( + contestGetAllContests( communityId: string, addressId?: string, contestAddress?: string, contestId?: number, running?: boolean, options?: any, - ): AxiosPromise> { + ): AxiosPromise> { return localVarFp - .queryContestGetAllContests( + .contestGetAllContests( communityId, addressId, contestAddress, @@ -7909,13 +7836,13 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryContestGetContestLog( + contestGetContestLog( contestAddress: string, addressId?: string, options?: any, - ): AxiosPromise> { + ): AxiosPromise> { return localVarFp - .queryContestGetContestLog(contestAddress, addressId, options) + .contestGetContestLog(contestAddress, addressId, options) .then((request) => request(axios, basePath)); }, /** @@ -7924,12 +7851,12 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryFeedGetChainActivity( + feedGetChainActivity( addressId?: string, options?: any, - ): AxiosPromise> { + ): AxiosPromise> { return localVarFp - .queryFeedGetChainActivity(addressId, options) + .feedGetChainActivity(addressId, options) .then((request) => request(axios, basePath)); }, /** @@ -7938,12 +7865,12 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryFeedGetGlobalActivity( + feedGetGlobalActivity( addressId?: string, options?: any, - ): AxiosPromise> { + ): AxiosPromise> { return localVarFp - .queryFeedGetGlobalActivity(addressId, options) + .feedGetGlobalActivity(addressId, options) .then((request) => request(axios, basePath)); }, /** @@ -7952,12 +7879,12 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryFeedGetUserActivity( + feedGetUserActivity( addressId?: string, options?: any, - ): AxiosPromise> { + ): AxiosPromise> { return localVarFp - .queryFeedGetUserActivity(addressId, options) + .feedGetUserActivity(addressId, options) .then((request) => request(axios, basePath)); }, /** @@ -7966,14 +7893,12 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - querySubscriptionGetCommentSubscriptions( + subscriptionGetCommentSubscriptions( addressId?: string, options?: any, - ): AxiosPromise< - Array - > { + ): AxiosPromise> { return localVarFp - .querySubscriptionGetCommentSubscriptions(addressId, options) + .subscriptionGetCommentSubscriptions(addressId, options) .then((request) => request(axios, basePath)); }, /** @@ -7982,14 +7907,12 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - querySubscriptionGetCommunityAlerts( + subscriptionGetCommunityAlerts( addressId?: string, options?: any, - ): AxiosPromise< - Array - > { + ): AxiosPromise> { return localVarFp - .querySubscriptionGetCommunityAlerts(addressId, options) + .subscriptionGetCommunityAlerts(addressId, options) .then((request) => request(axios, basePath)); }, /** @@ -7998,12 +7921,12 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - querySubscriptionGetSubscriptionPreferences( + subscriptionGetSubscriptionPreferences( addressId?: string, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .querySubscriptionGetSubscriptionPreferences(addressId, options) + .subscriptionGetSubscriptionPreferences(addressId, options) .then((request) => request(axios, basePath)); }, /** @@ -8012,14 +7935,12 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - querySubscriptionGetThreadSubscriptions( + subscriptionGetThreadSubscriptions( addressId?: string, options?: any, - ): AxiosPromise< - Array - > { + ): AxiosPromise> { return localVarFp - .querySubscriptionGetThreadSubscriptions(addressId, options) + .subscriptionGetThreadSubscriptions(addressId, options) .then((request) => request(axios, basePath)); }, /** @@ -8032,7 +7953,7 @@ export const QueryApiFactory = function ( * @param {boolean} [includePinnedThreads] * @param {number} [topicId] * @param {string} [stage] - * @param {QueryThreadGetBulkThreadsOrderByEnum} [orderBy] + * @param {ThreadGetBulkThreadsOrderByEnum} [orderBy] * @param {number} [cursor] * @param {number} [limit] The number of objects returned * @param {number} [offset] The amount of objects offset from the beginning @@ -8040,7 +7961,7 @@ export const QueryApiFactory = function ( * @param {*} [options] Override http request option. * @throws {RequiredError} */ - queryThreadGetBulkThreads( + threadGetBulkThreads( communityId: string, addressId?: string, fromDate?: string, @@ -8049,15 +7970,15 @@ export const QueryApiFactory = function ( includePinnedThreads?: boolean, topicId?: number, stage?: string, - orderBy?: QueryThreadGetBulkThreadsOrderByEnum, + orderBy?: ThreadGetBulkThreadsOrderByEnum, cursor?: number, limit?: number, offset?: number, page?: number, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .queryThreadGetBulkThreads( + .threadGetBulkThreads( communityId, addressId, fromDate, @@ -8094,14 +8015,14 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public queryCommunityGetCommunity( + public communityGetCommunity( id: string, addressId?: string, includeNodeInfo?: boolean, options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .queryCommunityGetCommunity(id, addressId, includeNodeInfo, options) + .communityGetCommunity(id, addressId, includeNodeInfo, options) .then((request) => request(this.axios, this.basePath)); } @@ -8111,11 +8032,11 @@ export class QueryApi extends BaseAPI { * @param {string} [addressId] * @param {number | null} [limit] * @param {number | null} [cursor] required for tRPC useInfiniteQuery hook, equivalent to page number - * @param {QueryCommunityGetMembersOrderByEnum} [orderBy] - * @param {QueryCommunityGetMembersOrderDirectionEnum} [orderDirection] + * @param {CommunityGetMembersOrderByEnum} [orderBy] + * @param {CommunityGetMembersOrderDirectionEnum} [orderDirection] * @param {string} [search] * @param {boolean} [includeRoles] - * @param {QueryCommunityGetMembersMembershipsParameter} [memberships] + * @param {CommunityGetMembersMembershipsParameter} [memberships] * @param {boolean} [includeGroupIds] * @param {boolean} [includeStakeBalances] * @param {string} [allowedAddresses] @@ -8123,23 +8044,23 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public queryCommunityGetMembers( + public communityGetMembers( communityId: string, addressId?: string, limit?: number | null, cursor?: number | null, - orderBy?: QueryCommunityGetMembersOrderByEnum, - orderDirection?: QueryCommunityGetMembersOrderDirectionEnum, + orderBy?: CommunityGetMembersOrderByEnum, + orderDirection?: CommunityGetMembersOrderDirectionEnum, search?: string, includeRoles?: boolean, - memberships?: QueryCommunityGetMembersMembershipsParameter, + memberships?: CommunityGetMembersMembershipsParameter, includeGroupIds?: boolean, includeStakeBalances?: boolean, allowedAddresses?: string, options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .queryCommunityGetMembers( + .communityGetMembers( communityId, addressId, limit, @@ -8166,14 +8087,14 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public queryCommunityGetStake( + public communityGetStake( communityId: string, addressId?: string, stakeId?: number, options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .queryCommunityGetStake(communityId, addressId, stakeId, options) + .communityGetStake(communityId, addressId, stakeId, options) .then((request) => request(this.axios, this.basePath)); } @@ -8187,7 +8108,7 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public queryCommunityGetStakeHistoricalPrice( + public communityGetStakeHistoricalPrice( pastDateEpoch: number, addressId?: string, communityId?: string, @@ -8195,7 +8116,7 @@ export class QueryApi extends BaseAPI { options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .queryCommunityGetStakeHistoricalPrice( + .communityGetStakeHistoricalPrice( pastDateEpoch, addressId, communityId, @@ -8213,13 +8134,13 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public queryCommunityGetStakeTransaction( + public communityGetStakeTransaction( addressId?: string, addresses?: string, options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .queryCommunityGetStakeTransaction(addressId, addresses, options) + .communityGetStakeTransaction(addressId, addresses, options) .then((request) => request(this.axios, this.basePath)); } @@ -8234,7 +8155,7 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public queryContestGetAllContests( + public contestGetAllContests( communityId: string, addressId?: string, contestAddress?: string, @@ -8243,7 +8164,7 @@ export class QueryApi extends BaseAPI { options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .queryContestGetAllContests( + .contestGetAllContests( communityId, addressId, contestAddress, @@ -8262,13 +8183,13 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public queryContestGetContestLog( + public contestGetContestLog( contestAddress: string, addressId?: string, options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .queryContestGetContestLog(contestAddress, addressId, options) + .contestGetContestLog(contestAddress, addressId, options) .then((request) => request(this.axios, this.basePath)); } @@ -8279,12 +8200,12 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public queryFeedGetChainActivity( + public feedGetChainActivity( addressId?: string, options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .queryFeedGetChainActivity(addressId, options) + .feedGetChainActivity(addressId, options) .then((request) => request(this.axios, this.basePath)); } @@ -8295,12 +8216,12 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public queryFeedGetGlobalActivity( + public feedGetGlobalActivity( addressId?: string, options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .queryFeedGetGlobalActivity(addressId, options) + .feedGetGlobalActivity(addressId, options) .then((request) => request(this.axios, this.basePath)); } @@ -8311,12 +8232,12 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public queryFeedGetUserActivity( + public feedGetUserActivity( addressId?: string, options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .queryFeedGetUserActivity(addressId, options) + .feedGetUserActivity(addressId, options) .then((request) => request(this.axios, this.basePath)); } @@ -8327,12 +8248,12 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public querySubscriptionGetCommentSubscriptions( + public subscriptionGetCommentSubscriptions( addressId?: string, options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .querySubscriptionGetCommentSubscriptions(addressId, options) + .subscriptionGetCommentSubscriptions(addressId, options) .then((request) => request(this.axios, this.basePath)); } @@ -8343,12 +8264,12 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public querySubscriptionGetCommunityAlerts( + public subscriptionGetCommunityAlerts( addressId?: string, options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .querySubscriptionGetCommunityAlerts(addressId, options) + .subscriptionGetCommunityAlerts(addressId, options) .then((request) => request(this.axios, this.basePath)); } @@ -8359,12 +8280,12 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public querySubscriptionGetSubscriptionPreferences( + public subscriptionGetSubscriptionPreferences( addressId?: string, options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .querySubscriptionGetSubscriptionPreferences(addressId, options) + .subscriptionGetSubscriptionPreferences(addressId, options) .then((request) => request(this.axios, this.basePath)); } @@ -8375,12 +8296,12 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public querySubscriptionGetThreadSubscriptions( + public subscriptionGetThreadSubscriptions( addressId?: string, options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .querySubscriptionGetThreadSubscriptions(addressId, options) + .subscriptionGetThreadSubscriptions(addressId, options) .then((request) => request(this.axios, this.basePath)); } @@ -8394,7 +8315,7 @@ export class QueryApi extends BaseAPI { * @param {boolean} [includePinnedThreads] * @param {number} [topicId] * @param {string} [stage] - * @param {QueryThreadGetBulkThreadsOrderByEnum} [orderBy] + * @param {ThreadGetBulkThreadsOrderByEnum} [orderBy] * @param {number} [cursor] * @param {number} [limit] The number of objects returned * @param {number} [offset] The amount of objects offset from the beginning @@ -8403,7 +8324,7 @@ export class QueryApi extends BaseAPI { * @throws {RequiredError} * @memberof QueryApi */ - public queryThreadGetBulkThreads( + public threadGetBulkThreads( communityId: string, addressId?: string, fromDate?: string, @@ -8412,7 +8333,7 @@ export class QueryApi extends BaseAPI { includePinnedThreads?: boolean, topicId?: number, stage?: string, - orderBy?: QueryThreadGetBulkThreadsOrderByEnum, + orderBy?: ThreadGetBulkThreadsOrderByEnum, cursor?: number, limit?: number, offset?: number, @@ -8420,7 +8341,7 @@ export class QueryApi extends BaseAPI { options?: RawAxiosRequestConfig, ) { return QueryApiFp(this.configuration) - .queryThreadGetBulkThreads( + .threadGetBulkThreads( communityId, addressId, fromDate, @@ -8443,25 +8364,25 @@ export class QueryApi extends BaseAPI { /** * @export */ -export const QueryCommunityGetMembersOrderByEnum = { +export const CommunityGetMembersOrderByEnum = { LastActive: 'last_active', Name: 'name', } as const; -export type QueryCommunityGetMembersOrderByEnum = - typeof QueryCommunityGetMembersOrderByEnum[keyof typeof QueryCommunityGetMembersOrderByEnum]; +export type CommunityGetMembersOrderByEnum = + typeof CommunityGetMembersOrderByEnum[keyof typeof CommunityGetMembersOrderByEnum]; /** * @export */ -export const QueryCommunityGetMembersOrderDirectionEnum = { +export const CommunityGetMembersOrderDirectionEnum = { Asc: 'ASC', Desc: 'DESC', } as const; -export type QueryCommunityGetMembersOrderDirectionEnum = - typeof QueryCommunityGetMembersOrderDirectionEnum[keyof typeof QueryCommunityGetMembersOrderDirectionEnum]; +export type CommunityGetMembersOrderDirectionEnum = + typeof CommunityGetMembersOrderDirectionEnum[keyof typeof CommunityGetMembersOrderDirectionEnum]; /** * @export */ -export const QueryThreadGetBulkThreadsOrderByEnum = { +export const ThreadGetBulkThreadsOrderByEnum = { CreatedAtasc: 'createdAt:asc', CreatedAtdesc: 'createdAt:desc', NumberOfCommentsasc: 'numberOfComments:asc', @@ -8471,8 +8392,8 @@ export const QueryThreadGetBulkThreadsOrderByEnum = { LatestActivityasc: 'latestActivity:asc', LatestActivitydesc: 'latestActivity:desc', } as const; -export type QueryThreadGetBulkThreadsOrderByEnum = - typeof QueryThreadGetBulkThreadsOrderByEnum[keyof typeof QueryThreadGetBulkThreadsOrderByEnum]; +export type ThreadGetBulkThreadsOrderByEnum = + typeof ThreadGetBulkThreadsOrderByEnum[keyof typeof ThreadGetBulkThreadsOrderByEnum]; /** * SubscriptionApi - axios parameter creator @@ -8486,39 +8407,34 @@ export const SubscriptionApiAxiosParamCreator = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionCreateCommentSubscriptionRequest} mutationSubscriptionCreateCommentSubscriptionRequest + * @param {SubscriptionCreateCommentSubscriptionRequest} subscriptionCreateCommentSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionCreateCommentSubscription: async ( + subscriptionCreateCommentSubscription: async ( addressId: string, id: number, - mutationSubscriptionCreateCommentSubscriptionRequest: MutationSubscriptionCreateCommentSubscriptionRequest, + subscriptionCreateCommentSubscriptionRequest: SubscriptionCreateCommentSubscriptionRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined assertParamExists( - 'mutationSubscriptionCreateCommentSubscription', + 'subscriptionCreateCommentSubscription', 'addressId', addressId, ); // verify required parameter 'id' is not null or undefined + assertParamExists('subscriptionCreateCommentSubscription', 'id', id); + // verify required parameter 'subscriptionCreateCommentSubscriptionRequest' is not null or undefined assertParamExists( - 'mutationSubscriptionCreateCommentSubscription', - 'id', - id, + 'subscriptionCreateCommentSubscription', + 'subscriptionCreateCommentSubscriptionRequest', + subscriptionCreateCommentSubscriptionRequest, ); - // verify required parameter 'mutationSubscriptionCreateCommentSubscriptionRequest' is not null or undefined - assertParamExists( - 'mutationSubscriptionCreateCommentSubscription', - 'mutationSubscriptionCreateCommentSubscriptionRequest', - mutationSubscriptionCreateCommentSubscriptionRequest, + const localVarPath = `/CreateCommentSubscription/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(id)), ); - const localVarPath = - `/subscription/{id}/CreateCommentSubscription`.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; @@ -8553,7 +8469,7 @@ export const SubscriptionApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationSubscriptionCreateCommentSubscriptionRequest, + subscriptionCreateCommentSubscriptionRequest, localVarRequestOptions, configuration, ); @@ -8567,31 +8483,31 @@ export const SubscriptionApiAxiosParamCreator = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionCreateCommunityAlertRequest} mutationSubscriptionCreateCommunityAlertRequest + * @param {SubscriptionCreateCommunityAlertRequest} subscriptionCreateCommunityAlertRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionCreateCommunityAlert: async ( + subscriptionCreateCommunityAlert: async ( addressId: string, id: number, - mutationSubscriptionCreateCommunityAlertRequest: MutationSubscriptionCreateCommunityAlertRequest, + subscriptionCreateCommunityAlertRequest: SubscriptionCreateCommunityAlertRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined assertParamExists( - 'mutationSubscriptionCreateCommunityAlert', + 'subscriptionCreateCommunityAlert', 'addressId', addressId, ); // verify required parameter 'id' is not null or undefined - assertParamExists('mutationSubscriptionCreateCommunityAlert', 'id', id); - // verify required parameter 'mutationSubscriptionCreateCommunityAlertRequest' is not null or undefined + assertParamExists('subscriptionCreateCommunityAlert', 'id', id); + // verify required parameter 'subscriptionCreateCommunityAlertRequest' is not null or undefined assertParamExists( - 'mutationSubscriptionCreateCommunityAlert', - 'mutationSubscriptionCreateCommunityAlertRequest', - mutationSubscriptionCreateCommunityAlertRequest, + 'subscriptionCreateCommunityAlert', + 'subscriptionCreateCommunityAlertRequest', + subscriptionCreateCommunityAlertRequest, ); - const localVarPath = `/subscription/{id}/CreateCommunityAlert`.replace( + const localVarPath = `/CreateCommunityAlert/{id}`.replace( `{${'id'}}`, encodeURIComponent(String(id)), ); @@ -8629,7 +8545,7 @@ export const SubscriptionApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationSubscriptionCreateCommunityAlertRequest, + subscriptionCreateCommunityAlertRequest, localVarRequestOptions, configuration, ); @@ -8643,39 +8559,34 @@ export const SubscriptionApiAxiosParamCreator = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionCreateThreadSubscriptionRequest} mutationSubscriptionCreateThreadSubscriptionRequest + * @param {SubscriptionCreateThreadSubscriptionRequest} subscriptionCreateThreadSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionCreateThreadSubscription: async ( + subscriptionCreateThreadSubscription: async ( addressId: string, id: number, - mutationSubscriptionCreateThreadSubscriptionRequest: MutationSubscriptionCreateThreadSubscriptionRequest, + subscriptionCreateThreadSubscriptionRequest: SubscriptionCreateThreadSubscriptionRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined assertParamExists( - 'mutationSubscriptionCreateThreadSubscription', + 'subscriptionCreateThreadSubscription', 'addressId', addressId, ); // verify required parameter 'id' is not null or undefined + assertParamExists('subscriptionCreateThreadSubscription', 'id', id); + // verify required parameter 'subscriptionCreateThreadSubscriptionRequest' is not null or undefined assertParamExists( - 'mutationSubscriptionCreateThreadSubscription', - 'id', - id, + 'subscriptionCreateThreadSubscription', + 'subscriptionCreateThreadSubscriptionRequest', + subscriptionCreateThreadSubscriptionRequest, ); - // verify required parameter 'mutationSubscriptionCreateThreadSubscriptionRequest' is not null or undefined - assertParamExists( - 'mutationSubscriptionCreateThreadSubscription', - 'mutationSubscriptionCreateThreadSubscriptionRequest', - mutationSubscriptionCreateThreadSubscriptionRequest, + const localVarPath = `/CreateThreadSubscription/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(id)), ); - const localVarPath = - `/subscription/{id}/CreateThreadSubscription`.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; @@ -8710,7 +8621,7 @@ export const SubscriptionApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationSubscriptionCreateThreadSubscriptionRequest, + subscriptionCreateThreadSubscriptionRequest, localVarRequestOptions, configuration, ); @@ -8724,39 +8635,34 @@ export const SubscriptionApiAxiosParamCreator = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionDeleteCommentSubscriptionRequest} mutationSubscriptionDeleteCommentSubscriptionRequest + * @param {SubscriptionDeleteCommentSubscriptionRequest} subscriptionDeleteCommentSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionDeleteCommentSubscription: async ( + subscriptionDeleteCommentSubscription: async ( addressId: string, id: number, - mutationSubscriptionDeleteCommentSubscriptionRequest: MutationSubscriptionDeleteCommentSubscriptionRequest, + subscriptionDeleteCommentSubscriptionRequest: SubscriptionDeleteCommentSubscriptionRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined assertParamExists( - 'mutationSubscriptionDeleteCommentSubscription', + 'subscriptionDeleteCommentSubscription', 'addressId', addressId, ); // verify required parameter 'id' is not null or undefined + assertParamExists('subscriptionDeleteCommentSubscription', 'id', id); + // verify required parameter 'subscriptionDeleteCommentSubscriptionRequest' is not null or undefined assertParamExists( - 'mutationSubscriptionDeleteCommentSubscription', - 'id', - id, + 'subscriptionDeleteCommentSubscription', + 'subscriptionDeleteCommentSubscriptionRequest', + subscriptionDeleteCommentSubscriptionRequest, ); - // verify required parameter 'mutationSubscriptionDeleteCommentSubscriptionRequest' is not null or undefined - assertParamExists( - 'mutationSubscriptionDeleteCommentSubscription', - 'mutationSubscriptionDeleteCommentSubscriptionRequest', - mutationSubscriptionDeleteCommentSubscriptionRequest, + const localVarPath = `/DeleteCommentSubscription/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(id)), ); - const localVarPath = - `/subscription/{id}/DeleteCommentSubscription`.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; @@ -8791,7 +8697,7 @@ export const SubscriptionApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationSubscriptionDeleteCommentSubscriptionRequest, + subscriptionDeleteCommentSubscriptionRequest, localVarRequestOptions, configuration, ); @@ -8805,31 +8711,31 @@ export const SubscriptionApiAxiosParamCreator = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionDeleteCommunityAlertRequest} mutationSubscriptionDeleteCommunityAlertRequest + * @param {SubscriptionDeleteCommunityAlertRequest} subscriptionDeleteCommunityAlertRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionDeleteCommunityAlert: async ( + subscriptionDeleteCommunityAlert: async ( addressId: string, id: number, - mutationSubscriptionDeleteCommunityAlertRequest: MutationSubscriptionDeleteCommunityAlertRequest, + subscriptionDeleteCommunityAlertRequest: SubscriptionDeleteCommunityAlertRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined assertParamExists( - 'mutationSubscriptionDeleteCommunityAlert', + 'subscriptionDeleteCommunityAlert', 'addressId', addressId, ); // verify required parameter 'id' is not null or undefined - assertParamExists('mutationSubscriptionDeleteCommunityAlert', 'id', id); - // verify required parameter 'mutationSubscriptionDeleteCommunityAlertRequest' is not null or undefined + assertParamExists('subscriptionDeleteCommunityAlert', 'id', id); + // verify required parameter 'subscriptionDeleteCommunityAlertRequest' is not null or undefined assertParamExists( - 'mutationSubscriptionDeleteCommunityAlert', - 'mutationSubscriptionDeleteCommunityAlertRequest', - mutationSubscriptionDeleteCommunityAlertRequest, + 'subscriptionDeleteCommunityAlert', + 'subscriptionDeleteCommunityAlertRequest', + subscriptionDeleteCommunityAlertRequest, ); - const localVarPath = `/subscription/{id}/DeleteCommunityAlerts`.replace( + const localVarPath = `/DeleteCommunityAlerts/{id}`.replace( `{${'id'}}`, encodeURIComponent(String(id)), ); @@ -8867,7 +8773,7 @@ export const SubscriptionApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationSubscriptionDeleteCommunityAlertRequest, + subscriptionDeleteCommunityAlertRequest, localVarRequestOptions, configuration, ); @@ -8881,39 +8787,34 @@ export const SubscriptionApiAxiosParamCreator = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionDeleteThreadSubscriptionRequest} mutationSubscriptionDeleteThreadSubscriptionRequest + * @param {SubscriptionDeleteThreadSubscriptionRequest} subscriptionDeleteThreadSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionDeleteThreadSubscription: async ( + subscriptionDeleteThreadSubscription: async ( addressId: string, id: number, - mutationSubscriptionDeleteThreadSubscriptionRequest: MutationSubscriptionDeleteThreadSubscriptionRequest, + subscriptionDeleteThreadSubscriptionRequest: SubscriptionDeleteThreadSubscriptionRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined assertParamExists( - 'mutationSubscriptionDeleteThreadSubscription', + 'subscriptionDeleteThreadSubscription', 'addressId', addressId, ); // verify required parameter 'id' is not null or undefined + assertParamExists('subscriptionDeleteThreadSubscription', 'id', id); + // verify required parameter 'subscriptionDeleteThreadSubscriptionRequest' is not null or undefined assertParamExists( - 'mutationSubscriptionDeleteThreadSubscription', - 'id', - id, + 'subscriptionDeleteThreadSubscription', + 'subscriptionDeleteThreadSubscriptionRequest', + subscriptionDeleteThreadSubscriptionRequest, ); - // verify required parameter 'mutationSubscriptionDeleteThreadSubscriptionRequest' is not null or undefined - assertParamExists( - 'mutationSubscriptionDeleteThreadSubscription', - 'mutationSubscriptionDeleteThreadSubscriptionRequest', - mutationSubscriptionDeleteThreadSubscriptionRequest, + const localVarPath = `/DeleteThreadSubscription/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(id)), ); - const localVarPath = - `/subscription/{id}/DeleteThreadSubscription`.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; @@ -8948,7 +8849,7 @@ export const SubscriptionApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationSubscriptionDeleteThreadSubscriptionRequest, + subscriptionDeleteThreadSubscriptionRequest, localVarRequestOptions, configuration, ); @@ -8962,39 +8863,38 @@ export const SubscriptionApiAxiosParamCreator = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {SubscriptionRegisterClientRegistrationTokenRequest} subscriptionRegisterClientRegistrationTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionRegisterClientRegistrationToken: async ( + subscriptionRegisterClientRegistrationToken: async ( addressId: string, id: number, - mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest: SubscriptionRegisterClientRegistrationTokenRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined assertParamExists( - 'mutationSubscriptionRegisterClientRegistrationToken', + 'subscriptionRegisterClientRegistrationToken', 'addressId', addressId, ); // verify required parameter 'id' is not null or undefined assertParamExists( - 'mutationSubscriptionRegisterClientRegistrationToken', + 'subscriptionRegisterClientRegistrationToken', 'id', id, ); - // verify required parameter 'mutationSubscriptionRegisterClientRegistrationTokenRequest' is not null or undefined + // verify required parameter 'subscriptionRegisterClientRegistrationTokenRequest' is not null or undefined assertParamExists( - 'mutationSubscriptionRegisterClientRegistrationToken', - 'mutationSubscriptionRegisterClientRegistrationTokenRequest', - mutationSubscriptionRegisterClientRegistrationTokenRequest, + 'subscriptionRegisterClientRegistrationToken', + 'subscriptionRegisterClientRegistrationTokenRequest', + subscriptionRegisterClientRegistrationTokenRequest, + ); + const localVarPath = `/RegisterClientRegistrationToken/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(id)), ); - const localVarPath = - `/subscription/{id}/RegisterClientRegistrationToken`.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; @@ -9029,7 +8929,7 @@ export const SubscriptionApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest, localVarRequestOptions, configuration, ); @@ -9043,39 +8943,38 @@ export const SubscriptionApiAxiosParamCreator = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {SubscriptionRegisterClientRegistrationTokenRequest} subscriptionRegisterClientRegistrationTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionUnregisterClientRegistrationToken: async ( + subscriptionUnregisterClientRegistrationToken: async ( addressId: string, id: number, - mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest: SubscriptionRegisterClientRegistrationTokenRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined assertParamExists( - 'mutationSubscriptionUnregisterClientRegistrationToken', + 'subscriptionUnregisterClientRegistrationToken', 'addressId', addressId, ); // verify required parameter 'id' is not null or undefined assertParamExists( - 'mutationSubscriptionUnregisterClientRegistrationToken', + 'subscriptionUnregisterClientRegistrationToken', 'id', id, ); - // verify required parameter 'mutationSubscriptionRegisterClientRegistrationTokenRequest' is not null or undefined + // verify required parameter 'subscriptionRegisterClientRegistrationTokenRequest' is not null or undefined assertParamExists( - 'mutationSubscriptionUnregisterClientRegistrationToken', - 'mutationSubscriptionRegisterClientRegistrationTokenRequest', - mutationSubscriptionRegisterClientRegistrationTokenRequest, + 'subscriptionUnregisterClientRegistrationToken', + 'subscriptionRegisterClientRegistrationTokenRequest', + subscriptionRegisterClientRegistrationTokenRequest, + ); + const localVarPath = `/UnregisterClientRegistrationToken/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(id)), ); - const localVarPath = - `/subscription/{id}/UnregisterClientRegistrationToken`.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; @@ -9110,7 +9009,7 @@ export const SubscriptionApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest, localVarRequestOptions, configuration, ); @@ -9124,39 +9023,34 @@ export const SubscriptionApiAxiosParamCreator = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionUpdateSubscriptionPreferencesRequest} mutationSubscriptionUpdateSubscriptionPreferencesRequest + * @param {SubscriptionUpdateSubscriptionPreferencesRequest} subscriptionUpdateSubscriptionPreferencesRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionUpdateSubscriptionPreferences: async ( + subscriptionUpdateSubscriptionPreferences: async ( addressId: string, id: number, - mutationSubscriptionUpdateSubscriptionPreferencesRequest: MutationSubscriptionUpdateSubscriptionPreferencesRequest, + subscriptionUpdateSubscriptionPreferencesRequest: SubscriptionUpdateSubscriptionPreferencesRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined assertParamExists( - 'mutationSubscriptionUpdateSubscriptionPreferences', + 'subscriptionUpdateSubscriptionPreferences', 'addressId', addressId, ); // verify required parameter 'id' is not null or undefined + assertParamExists('subscriptionUpdateSubscriptionPreferences', 'id', id); + // verify required parameter 'subscriptionUpdateSubscriptionPreferencesRequest' is not null or undefined assertParamExists( - 'mutationSubscriptionUpdateSubscriptionPreferences', - 'id', - id, + 'subscriptionUpdateSubscriptionPreferences', + 'subscriptionUpdateSubscriptionPreferencesRequest', + subscriptionUpdateSubscriptionPreferencesRequest, ); - // verify required parameter 'mutationSubscriptionUpdateSubscriptionPreferencesRequest' is not null or undefined - assertParamExists( - 'mutationSubscriptionUpdateSubscriptionPreferences', - 'mutationSubscriptionUpdateSubscriptionPreferencesRequest', - mutationSubscriptionUpdateSubscriptionPreferencesRequest, + const localVarPath = `/UpdateSubscriptionPreferences/{id}`.replace( + `{${'id'}}`, + encodeURIComponent(String(id)), ); - const localVarPath = - `/subscription/{id}/UpdateSubscriptionPreferences`.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; @@ -9191,7 +9085,7 @@ export const SubscriptionApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationSubscriptionUpdateSubscriptionPreferencesRequest, + subscriptionUpdateSubscriptionPreferencesRequest, localVarRequestOptions, configuration, ); @@ -9216,32 +9110,32 @@ export const SubscriptionApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionCreateCommentSubscriptionRequest} mutationSubscriptionCreateCommentSubscriptionRequest + * @param {SubscriptionCreateCommentSubscriptionRequest} subscriptionCreateCommentSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationSubscriptionCreateCommentSubscription( + async subscriptionCreateCommentSubscription( addressId: string, id: number, - mutationSubscriptionCreateCommentSubscriptionRequest: MutationSubscriptionCreateCommentSubscriptionRequest, + subscriptionCreateCommentSubscriptionRequest: SubscriptionCreateCommentSubscriptionRequest, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationSubscriptionCreateCommentSubscription( + await localVarAxiosParamCreator.subscriptionCreateCommentSubscription( addressId, id, - mutationSubscriptionCreateCommentSubscriptionRequest, + subscriptionCreateCommentSubscriptionRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap[ - 'SubscriptionApi.mutationSubscriptionCreateCommentSubscription' + 'SubscriptionApi.subscriptionCreateCommentSubscription' ]?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction( @@ -9255,32 +9149,32 @@ export const SubscriptionApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionCreateCommunityAlertRequest} mutationSubscriptionCreateCommunityAlertRequest + * @param {SubscriptionCreateCommunityAlertRequest} subscriptionCreateCommunityAlertRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationSubscriptionCreateCommunityAlert( + async subscriptionCreateCommunityAlert( addressId: string, id: number, - mutationSubscriptionCreateCommunityAlertRequest: MutationSubscriptionCreateCommunityAlertRequest, + subscriptionCreateCommunityAlertRequest: SubscriptionCreateCommunityAlertRequest, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationSubscriptionCreateCommunityAlert( + await localVarAxiosParamCreator.subscriptionCreateCommunityAlert( addressId, id, - mutationSubscriptionCreateCommunityAlertRequest, + subscriptionCreateCommunityAlertRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap[ - 'SubscriptionApi.mutationSubscriptionCreateCommunityAlert' + 'SubscriptionApi.subscriptionCreateCommunityAlert' ]?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction( @@ -9294,32 +9188,32 @@ export const SubscriptionApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionCreateThreadSubscriptionRequest} mutationSubscriptionCreateThreadSubscriptionRequest + * @param {SubscriptionCreateThreadSubscriptionRequest} subscriptionCreateThreadSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationSubscriptionCreateThreadSubscription( + async subscriptionCreateThreadSubscription( addressId: string, id: number, - mutationSubscriptionCreateThreadSubscriptionRequest: MutationSubscriptionCreateThreadSubscriptionRequest, + subscriptionCreateThreadSubscriptionRequest: SubscriptionCreateThreadSubscriptionRequest, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationSubscriptionCreateThreadSubscription( + await localVarAxiosParamCreator.subscriptionCreateThreadSubscription( addressId, id, - mutationSubscriptionCreateThreadSubscriptionRequest, + subscriptionCreateThreadSubscriptionRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap[ - 'SubscriptionApi.mutationSubscriptionCreateThreadSubscription' + 'SubscriptionApi.subscriptionCreateThreadSubscription' ]?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction( @@ -9333,29 +9227,29 @@ export const SubscriptionApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionDeleteCommentSubscriptionRequest} mutationSubscriptionDeleteCommentSubscriptionRequest + * @param {SubscriptionDeleteCommentSubscriptionRequest} subscriptionDeleteCommentSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationSubscriptionDeleteCommentSubscription( + async subscriptionDeleteCommentSubscription( addressId: string, id: number, - mutationSubscriptionDeleteCommentSubscriptionRequest: MutationSubscriptionDeleteCommentSubscriptionRequest, + subscriptionDeleteCommentSubscriptionRequest: SubscriptionDeleteCommentSubscriptionRequest, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationSubscriptionDeleteCommentSubscription( + await localVarAxiosParamCreator.subscriptionDeleteCommentSubscription( addressId, id, - mutationSubscriptionDeleteCommentSubscriptionRequest, + subscriptionDeleteCommentSubscriptionRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap[ - 'SubscriptionApi.mutationSubscriptionDeleteCommentSubscription' + 'SubscriptionApi.subscriptionDeleteCommentSubscription' ]?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction( @@ -9369,29 +9263,29 @@ export const SubscriptionApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionDeleteCommunityAlertRequest} mutationSubscriptionDeleteCommunityAlertRequest + * @param {SubscriptionDeleteCommunityAlertRequest} subscriptionDeleteCommunityAlertRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationSubscriptionDeleteCommunityAlert( + async subscriptionDeleteCommunityAlert( addressId: string, id: number, - mutationSubscriptionDeleteCommunityAlertRequest: MutationSubscriptionDeleteCommunityAlertRequest, + subscriptionDeleteCommunityAlertRequest: SubscriptionDeleteCommunityAlertRequest, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationSubscriptionDeleteCommunityAlert( + await localVarAxiosParamCreator.subscriptionDeleteCommunityAlert( addressId, id, - mutationSubscriptionDeleteCommunityAlertRequest, + subscriptionDeleteCommunityAlertRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap[ - 'SubscriptionApi.mutationSubscriptionDeleteCommunityAlert' + 'SubscriptionApi.subscriptionDeleteCommunityAlert' ]?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction( @@ -9405,29 +9299,29 @@ export const SubscriptionApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionDeleteThreadSubscriptionRequest} mutationSubscriptionDeleteThreadSubscriptionRequest + * @param {SubscriptionDeleteThreadSubscriptionRequest} subscriptionDeleteThreadSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationSubscriptionDeleteThreadSubscription( + async subscriptionDeleteThreadSubscription( addressId: string, id: number, - mutationSubscriptionDeleteThreadSubscriptionRequest: MutationSubscriptionDeleteThreadSubscriptionRequest, + subscriptionDeleteThreadSubscriptionRequest: SubscriptionDeleteThreadSubscriptionRequest, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationSubscriptionDeleteThreadSubscription( + await localVarAxiosParamCreator.subscriptionDeleteThreadSubscription( addressId, id, - mutationSubscriptionDeleteThreadSubscriptionRequest, + subscriptionDeleteThreadSubscriptionRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap[ - 'SubscriptionApi.mutationSubscriptionDeleteThreadSubscription' + 'SubscriptionApi.subscriptionDeleteThreadSubscription' ]?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction( @@ -9441,29 +9335,29 @@ export const SubscriptionApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {SubscriptionRegisterClientRegistrationTokenRequest} subscriptionRegisterClientRegistrationTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationSubscriptionRegisterClientRegistrationToken( + async subscriptionRegisterClientRegistrationToken( addressId: string, id: number, - mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest: SubscriptionRegisterClientRegistrationTokenRequest, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationSubscriptionRegisterClientRegistrationToken( + await localVarAxiosParamCreator.subscriptionRegisterClientRegistrationToken( addressId, id, - mutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap[ - 'SubscriptionApi.mutationSubscriptionRegisterClientRegistrationToken' + 'SubscriptionApi.subscriptionRegisterClientRegistrationToken' ]?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction( @@ -9477,29 +9371,29 @@ export const SubscriptionApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {SubscriptionRegisterClientRegistrationTokenRequest} subscriptionRegisterClientRegistrationTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationSubscriptionUnregisterClientRegistrationToken( + async subscriptionUnregisterClientRegistrationToken( addressId: string, id: number, - mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest: SubscriptionRegisterClientRegistrationTokenRequest, options?: RawAxiosRequestConfig, ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationSubscriptionUnregisterClientRegistrationToken( + await localVarAxiosParamCreator.subscriptionUnregisterClientRegistrationToken( addressId, id, - mutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap[ - 'SubscriptionApi.mutationSubscriptionUnregisterClientRegistrationToken' + 'SubscriptionApi.subscriptionUnregisterClientRegistrationToken' ]?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction( @@ -9513,32 +9407,32 @@ export const SubscriptionApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionUpdateSubscriptionPreferencesRequest} mutationSubscriptionUpdateSubscriptionPreferencesRequest + * @param {SubscriptionUpdateSubscriptionPreferencesRequest} subscriptionUpdateSubscriptionPreferencesRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationSubscriptionUpdateSubscriptionPreferences( + async subscriptionUpdateSubscriptionPreferences( addressId: string, id: number, - mutationSubscriptionUpdateSubscriptionPreferencesRequest: MutationSubscriptionUpdateSubscriptionPreferencesRequest, + subscriptionUpdateSubscriptionPreferencesRequest: SubscriptionUpdateSubscriptionPreferencesRequest, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationSubscriptionUpdateSubscriptionPreferences( + await localVarAxiosParamCreator.subscriptionUpdateSubscriptionPreferences( addressId, id, - mutationSubscriptionUpdateSubscriptionPreferencesRequest, + subscriptionUpdateSubscriptionPreferencesRequest, options, ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap[ - 'SubscriptionApi.mutationSubscriptionUpdateSubscriptionPreferences' + 'SubscriptionApi.subscriptionUpdateSubscriptionPreferences' ]?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction( @@ -9566,21 +9460,21 @@ export const SubscriptionApiFactory = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionCreateCommentSubscriptionRequest} mutationSubscriptionCreateCommentSubscriptionRequest + * @param {SubscriptionCreateCommentSubscriptionRequest} subscriptionCreateCommentSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionCreateCommentSubscription( + subscriptionCreateCommentSubscription( addressId: string, id: number, - mutationSubscriptionCreateCommentSubscriptionRequest: MutationSubscriptionCreateCommentSubscriptionRequest, + subscriptionCreateCommentSubscriptionRequest: SubscriptionCreateCommentSubscriptionRequest, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .mutationSubscriptionCreateCommentSubscription( + .subscriptionCreateCommentSubscription( addressId, id, - mutationSubscriptionCreateCommentSubscriptionRequest, + subscriptionCreateCommentSubscriptionRequest, options, ) .then((request) => request(axios, basePath)); @@ -9589,21 +9483,21 @@ export const SubscriptionApiFactory = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionCreateCommunityAlertRequest} mutationSubscriptionCreateCommunityAlertRequest + * @param {SubscriptionCreateCommunityAlertRequest} subscriptionCreateCommunityAlertRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionCreateCommunityAlert( + subscriptionCreateCommunityAlert( addressId: string, id: number, - mutationSubscriptionCreateCommunityAlertRequest: MutationSubscriptionCreateCommunityAlertRequest, + subscriptionCreateCommunityAlertRequest: SubscriptionCreateCommunityAlertRequest, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .mutationSubscriptionCreateCommunityAlert( + .subscriptionCreateCommunityAlert( addressId, id, - mutationSubscriptionCreateCommunityAlertRequest, + subscriptionCreateCommunityAlertRequest, options, ) .then((request) => request(axios, basePath)); @@ -9612,21 +9506,21 @@ export const SubscriptionApiFactory = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionCreateThreadSubscriptionRequest} mutationSubscriptionCreateThreadSubscriptionRequest + * @param {SubscriptionCreateThreadSubscriptionRequest} subscriptionCreateThreadSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionCreateThreadSubscription( + subscriptionCreateThreadSubscription( addressId: string, id: number, - mutationSubscriptionCreateThreadSubscriptionRequest: MutationSubscriptionCreateThreadSubscriptionRequest, + subscriptionCreateThreadSubscriptionRequest: SubscriptionCreateThreadSubscriptionRequest, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .mutationSubscriptionCreateThreadSubscription( + .subscriptionCreateThreadSubscription( addressId, id, - mutationSubscriptionCreateThreadSubscriptionRequest, + subscriptionCreateThreadSubscriptionRequest, options, ) .then((request) => request(axios, basePath)); @@ -9635,21 +9529,21 @@ export const SubscriptionApiFactory = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionDeleteCommentSubscriptionRequest} mutationSubscriptionDeleteCommentSubscriptionRequest + * @param {SubscriptionDeleteCommentSubscriptionRequest} subscriptionDeleteCommentSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionDeleteCommentSubscription( + subscriptionDeleteCommentSubscription( addressId: string, id: number, - mutationSubscriptionDeleteCommentSubscriptionRequest: MutationSubscriptionDeleteCommentSubscriptionRequest, + subscriptionDeleteCommentSubscriptionRequest: SubscriptionDeleteCommentSubscriptionRequest, options?: any, ): AxiosPromise { return localVarFp - .mutationSubscriptionDeleteCommentSubscription( + .subscriptionDeleteCommentSubscription( addressId, id, - mutationSubscriptionDeleteCommentSubscriptionRequest, + subscriptionDeleteCommentSubscriptionRequest, options, ) .then((request) => request(axios, basePath)); @@ -9658,21 +9552,21 @@ export const SubscriptionApiFactory = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionDeleteCommunityAlertRequest} mutationSubscriptionDeleteCommunityAlertRequest + * @param {SubscriptionDeleteCommunityAlertRequest} subscriptionDeleteCommunityAlertRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionDeleteCommunityAlert( + subscriptionDeleteCommunityAlert( addressId: string, id: number, - mutationSubscriptionDeleteCommunityAlertRequest: MutationSubscriptionDeleteCommunityAlertRequest, + subscriptionDeleteCommunityAlertRequest: SubscriptionDeleteCommunityAlertRequest, options?: any, ): AxiosPromise { return localVarFp - .mutationSubscriptionDeleteCommunityAlert( + .subscriptionDeleteCommunityAlert( addressId, id, - mutationSubscriptionDeleteCommunityAlertRequest, + subscriptionDeleteCommunityAlertRequest, options, ) .then((request) => request(axios, basePath)); @@ -9681,21 +9575,21 @@ export const SubscriptionApiFactory = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionDeleteThreadSubscriptionRequest} mutationSubscriptionDeleteThreadSubscriptionRequest + * @param {SubscriptionDeleteThreadSubscriptionRequest} subscriptionDeleteThreadSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionDeleteThreadSubscription( + subscriptionDeleteThreadSubscription( addressId: string, id: number, - mutationSubscriptionDeleteThreadSubscriptionRequest: MutationSubscriptionDeleteThreadSubscriptionRequest, + subscriptionDeleteThreadSubscriptionRequest: SubscriptionDeleteThreadSubscriptionRequest, options?: any, ): AxiosPromise { return localVarFp - .mutationSubscriptionDeleteThreadSubscription( + .subscriptionDeleteThreadSubscription( addressId, id, - mutationSubscriptionDeleteThreadSubscriptionRequest, + subscriptionDeleteThreadSubscriptionRequest, options, ) .then((request) => request(axios, basePath)); @@ -9704,21 +9598,21 @@ export const SubscriptionApiFactory = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {SubscriptionRegisterClientRegistrationTokenRequest} subscriptionRegisterClientRegistrationTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionRegisterClientRegistrationToken( + subscriptionRegisterClientRegistrationToken( addressId: string, id: number, - mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest: SubscriptionRegisterClientRegistrationTokenRequest, options?: any, ): AxiosPromise { return localVarFp - .mutationSubscriptionRegisterClientRegistrationToken( + .subscriptionRegisterClientRegistrationToken( addressId, id, - mutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest, options, ) .then((request) => request(axios, basePath)); @@ -9727,21 +9621,21 @@ export const SubscriptionApiFactory = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {SubscriptionRegisterClientRegistrationTokenRequest} subscriptionRegisterClientRegistrationTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionUnregisterClientRegistrationToken( + subscriptionUnregisterClientRegistrationToken( addressId: string, id: number, - mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest: SubscriptionRegisterClientRegistrationTokenRequest, options?: any, ): AxiosPromise { return localVarFp - .mutationSubscriptionUnregisterClientRegistrationToken( + .subscriptionUnregisterClientRegistrationToken( addressId, id, - mutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest, options, ) .then((request) => request(axios, basePath)); @@ -9750,21 +9644,21 @@ export const SubscriptionApiFactory = function ( * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionUpdateSubscriptionPreferencesRequest} mutationSubscriptionUpdateSubscriptionPreferencesRequest + * @param {SubscriptionUpdateSubscriptionPreferencesRequest} subscriptionUpdateSubscriptionPreferencesRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationSubscriptionUpdateSubscriptionPreferences( + subscriptionUpdateSubscriptionPreferences( addressId: string, id: number, - mutationSubscriptionUpdateSubscriptionPreferencesRequest: MutationSubscriptionUpdateSubscriptionPreferencesRequest, + subscriptionUpdateSubscriptionPreferencesRequest: SubscriptionUpdateSubscriptionPreferencesRequest, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .mutationSubscriptionUpdateSubscriptionPreferences( + .subscriptionUpdateSubscriptionPreferences( addressId, id, - mutationSubscriptionUpdateSubscriptionPreferencesRequest, + subscriptionUpdateSubscriptionPreferencesRequest, options, ) .then((request) => request(axios, basePath)); @@ -9783,22 +9677,22 @@ export class SubscriptionApi extends BaseAPI { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionCreateCommentSubscriptionRequest} mutationSubscriptionCreateCommentSubscriptionRequest + * @param {SubscriptionCreateCommentSubscriptionRequest} subscriptionCreateCommentSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SubscriptionApi */ - public mutationSubscriptionCreateCommentSubscription( + public subscriptionCreateCommentSubscription( addressId: string, id: number, - mutationSubscriptionCreateCommentSubscriptionRequest: MutationSubscriptionCreateCommentSubscriptionRequest, + subscriptionCreateCommentSubscriptionRequest: SubscriptionCreateCommentSubscriptionRequest, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) - .mutationSubscriptionCreateCommentSubscription( + .subscriptionCreateCommentSubscription( addressId, id, - mutationSubscriptionCreateCommentSubscriptionRequest, + subscriptionCreateCommentSubscriptionRequest, options, ) .then((request) => request(this.axios, this.basePath)); @@ -9808,22 +9702,22 @@ export class SubscriptionApi extends BaseAPI { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionCreateCommunityAlertRequest} mutationSubscriptionCreateCommunityAlertRequest + * @param {SubscriptionCreateCommunityAlertRequest} subscriptionCreateCommunityAlertRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SubscriptionApi */ - public mutationSubscriptionCreateCommunityAlert( + public subscriptionCreateCommunityAlert( addressId: string, id: number, - mutationSubscriptionCreateCommunityAlertRequest: MutationSubscriptionCreateCommunityAlertRequest, + subscriptionCreateCommunityAlertRequest: SubscriptionCreateCommunityAlertRequest, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) - .mutationSubscriptionCreateCommunityAlert( + .subscriptionCreateCommunityAlert( addressId, id, - mutationSubscriptionCreateCommunityAlertRequest, + subscriptionCreateCommunityAlertRequest, options, ) .then((request) => request(this.axios, this.basePath)); @@ -9833,22 +9727,22 @@ export class SubscriptionApi extends BaseAPI { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionCreateThreadSubscriptionRequest} mutationSubscriptionCreateThreadSubscriptionRequest + * @param {SubscriptionCreateThreadSubscriptionRequest} subscriptionCreateThreadSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SubscriptionApi */ - public mutationSubscriptionCreateThreadSubscription( + public subscriptionCreateThreadSubscription( addressId: string, id: number, - mutationSubscriptionCreateThreadSubscriptionRequest: MutationSubscriptionCreateThreadSubscriptionRequest, + subscriptionCreateThreadSubscriptionRequest: SubscriptionCreateThreadSubscriptionRequest, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) - .mutationSubscriptionCreateThreadSubscription( + .subscriptionCreateThreadSubscription( addressId, id, - mutationSubscriptionCreateThreadSubscriptionRequest, + subscriptionCreateThreadSubscriptionRequest, options, ) .then((request) => request(this.axios, this.basePath)); @@ -9858,22 +9752,22 @@ export class SubscriptionApi extends BaseAPI { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionDeleteCommentSubscriptionRequest} mutationSubscriptionDeleteCommentSubscriptionRequest + * @param {SubscriptionDeleteCommentSubscriptionRequest} subscriptionDeleteCommentSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SubscriptionApi */ - public mutationSubscriptionDeleteCommentSubscription( + public subscriptionDeleteCommentSubscription( addressId: string, id: number, - mutationSubscriptionDeleteCommentSubscriptionRequest: MutationSubscriptionDeleteCommentSubscriptionRequest, + subscriptionDeleteCommentSubscriptionRequest: SubscriptionDeleteCommentSubscriptionRequest, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) - .mutationSubscriptionDeleteCommentSubscription( + .subscriptionDeleteCommentSubscription( addressId, id, - mutationSubscriptionDeleteCommentSubscriptionRequest, + subscriptionDeleteCommentSubscriptionRequest, options, ) .then((request) => request(this.axios, this.basePath)); @@ -9883,22 +9777,22 @@ export class SubscriptionApi extends BaseAPI { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionDeleteCommunityAlertRequest} mutationSubscriptionDeleteCommunityAlertRequest + * @param {SubscriptionDeleteCommunityAlertRequest} subscriptionDeleteCommunityAlertRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SubscriptionApi */ - public mutationSubscriptionDeleteCommunityAlert( + public subscriptionDeleteCommunityAlert( addressId: string, id: number, - mutationSubscriptionDeleteCommunityAlertRequest: MutationSubscriptionDeleteCommunityAlertRequest, + subscriptionDeleteCommunityAlertRequest: SubscriptionDeleteCommunityAlertRequest, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) - .mutationSubscriptionDeleteCommunityAlert( + .subscriptionDeleteCommunityAlert( addressId, id, - mutationSubscriptionDeleteCommunityAlertRequest, + subscriptionDeleteCommunityAlertRequest, options, ) .then((request) => request(this.axios, this.basePath)); @@ -9908,22 +9802,22 @@ export class SubscriptionApi extends BaseAPI { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionDeleteThreadSubscriptionRequest} mutationSubscriptionDeleteThreadSubscriptionRequest + * @param {SubscriptionDeleteThreadSubscriptionRequest} subscriptionDeleteThreadSubscriptionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SubscriptionApi */ - public mutationSubscriptionDeleteThreadSubscription( + public subscriptionDeleteThreadSubscription( addressId: string, id: number, - mutationSubscriptionDeleteThreadSubscriptionRequest: MutationSubscriptionDeleteThreadSubscriptionRequest, + subscriptionDeleteThreadSubscriptionRequest: SubscriptionDeleteThreadSubscriptionRequest, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) - .mutationSubscriptionDeleteThreadSubscription( + .subscriptionDeleteThreadSubscription( addressId, id, - mutationSubscriptionDeleteThreadSubscriptionRequest, + subscriptionDeleteThreadSubscriptionRequest, options, ) .then((request) => request(this.axios, this.basePath)); @@ -9933,22 +9827,22 @@ export class SubscriptionApi extends BaseAPI { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {SubscriptionRegisterClientRegistrationTokenRequest} subscriptionRegisterClientRegistrationTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SubscriptionApi */ - public mutationSubscriptionRegisterClientRegistrationToken( + public subscriptionRegisterClientRegistrationToken( addressId: string, id: number, - mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest: SubscriptionRegisterClientRegistrationTokenRequest, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) - .mutationSubscriptionRegisterClientRegistrationToken( + .subscriptionRegisterClientRegistrationToken( addressId, id, - mutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest, options, ) .then((request) => request(this.axios, this.basePath)); @@ -9958,22 +9852,22 @@ export class SubscriptionApi extends BaseAPI { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionRegisterClientRegistrationTokenRequest} mutationSubscriptionRegisterClientRegistrationTokenRequest + * @param {SubscriptionRegisterClientRegistrationTokenRequest} subscriptionRegisterClientRegistrationTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SubscriptionApi */ - public mutationSubscriptionUnregisterClientRegistrationToken( + public subscriptionUnregisterClientRegistrationToken( addressId: string, id: number, - mutationSubscriptionRegisterClientRegistrationTokenRequest: MutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest: SubscriptionRegisterClientRegistrationTokenRequest, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) - .mutationSubscriptionUnregisterClientRegistrationToken( + .subscriptionUnregisterClientRegistrationToken( addressId, id, - mutationSubscriptionRegisterClientRegistrationTokenRequest, + subscriptionRegisterClientRegistrationTokenRequest, options, ) .then((request) => request(this.axios, this.basePath)); @@ -9983,22 +9877,22 @@ export class SubscriptionApi extends BaseAPI { * * @param {string} addressId * @param {number} id - * @param {MutationSubscriptionUpdateSubscriptionPreferencesRequest} mutationSubscriptionUpdateSubscriptionPreferencesRequest + * @param {SubscriptionUpdateSubscriptionPreferencesRequest} subscriptionUpdateSubscriptionPreferencesRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SubscriptionApi */ - public mutationSubscriptionUpdateSubscriptionPreferences( + public subscriptionUpdateSubscriptionPreferences( addressId: string, id: number, - mutationSubscriptionUpdateSubscriptionPreferencesRequest: MutationSubscriptionUpdateSubscriptionPreferencesRequest, + subscriptionUpdateSubscriptionPreferencesRequest: SubscriptionUpdateSubscriptionPreferencesRequest, options?: RawAxiosRequestConfig, ) { return SubscriptionApiFp(this.configuration) - .mutationSubscriptionUpdateSubscriptionPreferences( + .subscriptionUpdateSubscriptionPreferences( addressId, id, - mutationSubscriptionUpdateSubscriptionPreferencesRequest, + subscriptionUpdateSubscriptionPreferencesRequest, options, ) .then((request) => request(this.axios, this.basePath)); @@ -10017,27 +9911,27 @@ export const UserApiAxiosParamCreator = function ( * * @param {string} addressId * @param {number} id - * @param {MutationUserUpdateUserRequest} mutationUserUpdateUserRequest + * @param {UserUpdateUserRequest} userUpdateUserRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationUserUpdateUser: async ( + userUpdateUser: async ( addressId: string, id: number, - mutationUserUpdateUserRequest: MutationUserUpdateUserRequest, + userUpdateUserRequest: UserUpdateUserRequest, options: RawAxiosRequestConfig = {}, ): Promise => { // verify required parameter 'addressId' is not null or undefined - assertParamExists('mutationUserUpdateUser', 'addressId', addressId); + assertParamExists('userUpdateUser', 'addressId', addressId); // verify required parameter 'id' is not null or undefined - assertParamExists('mutationUserUpdateUser', 'id', id); - // verify required parameter 'mutationUserUpdateUserRequest' is not null or undefined + assertParamExists('userUpdateUser', 'id', id); + // verify required parameter 'userUpdateUserRequest' is not null or undefined assertParamExists( - 'mutationUserUpdateUser', - 'mutationUserUpdateUserRequest', - mutationUserUpdateUserRequest, + 'userUpdateUser', + 'userUpdateUserRequest', + userUpdateUserRequest, ); - const localVarPath = `/user/{id}/UpdateUser`.replace( + const localVarPath = `/UpdateUser/{id}`.replace( `{${'id'}}`, encodeURIComponent(String(id)), ); @@ -10071,7 +9965,7 @@ export const UserApiAxiosParamCreator = function ( ...options.headers, }; localVarRequestOptions.data = serializeDataIfNeeded( - mutationUserUpdateUserRequest, + userUpdateUserRequest, localVarRequestOptions, configuration, ); @@ -10095,31 +9989,30 @@ export const UserApiFp = function (configuration?: Configuration) { * * @param {string} addressId * @param {number} id - * @param {MutationUserUpdateUserRequest} mutationUserUpdateUserRequest + * @param {UserUpdateUserRequest} userUpdateUserRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mutationUserUpdateUser( + async userUpdateUser( addressId: string, id: number, - mutationUserUpdateUserRequest: MutationUserUpdateUserRequest, + userUpdateUserRequest: UserUpdateUserRequest, options?: RawAxiosRequestConfig, ): Promise< ( axios?: AxiosInstance, basePath?: string, - ) => AxiosPromise + ) => AxiosPromise > { - const localVarAxiosArgs = - await localVarAxiosParamCreator.mutationUserUpdateUser( - addressId, - id, - mutationUserUpdateUserRequest, - options, - ); + const localVarAxiosArgs = await localVarAxiosParamCreator.userUpdateUser( + addressId, + id, + userUpdateUserRequest, + options, + ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = - operationServerMap['UserApi.mutationUserUpdateUser']?.[ + operationServerMap['UserApi.userUpdateUser']?.[ localVarOperationServerIndex ]?.url; return (axios, basePath) => @@ -10148,23 +10041,18 @@ export const UserApiFactory = function ( * * @param {string} addressId * @param {number} id - * @param {MutationUserUpdateUserRequest} mutationUserUpdateUserRequest + * @param {UserUpdateUserRequest} userUpdateUserRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mutationUserUpdateUser( + userUpdateUser( addressId: string, id: number, - mutationUserUpdateUserRequest: MutationUserUpdateUserRequest, + userUpdateUserRequest: UserUpdateUserRequest, options?: any, - ): AxiosPromise { + ): AxiosPromise { return localVarFp - .mutationUserUpdateUser( - addressId, - id, - mutationUserUpdateUserRequest, - options, - ) + .userUpdateUser(addressId, id, userUpdateUserRequest, options) .then((request) => request(axios, basePath)); }, }; @@ -10181,24 +10069,19 @@ export class UserApi extends BaseAPI { * * @param {string} addressId * @param {number} id - * @param {MutationUserUpdateUserRequest} mutationUserUpdateUserRequest + * @param {UserUpdateUserRequest} userUpdateUserRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UserApi */ - public mutationUserUpdateUser( + public userUpdateUser( addressId: string, id: number, - mutationUserUpdateUserRequest: MutationUserUpdateUserRequest, + userUpdateUserRequest: UserUpdateUserRequest, options?: RawAxiosRequestConfig, ) { return UserApiFp(this.configuration) - .mutationUserUpdateUser( - addressId, - id, - mutationUserUpdateUserRequest, - options, - ) + .userUpdateUser(addressId, id, userUpdateUserRequest, options) .then((request) => request(this.axios, this.basePath)); } } diff --git a/libs/api-client/test/index.ts b/libs/api-client/test/index.ts index e252aacf2de..02f6328d45c 100644 --- a/libs/api-client/test/index.ts +++ b/libs/api-client/test/index.ts @@ -8,7 +8,7 @@ async function main() { }); const client = new QueryApi(config); - const members = await client.queryCommunityGetMembers( + const members = await client.communityGetMembers( 'sushi', undefined, 10, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 565ad286dc3..f223cca8322 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -380,9 +380,9 @@ importers: sequelize: specifier: ^6.32.1 version: 6.37.3(pg@8.11.5) - trpc-openapi: - specifier: 1.1.2 - version: 1.1.2(@trpc/server@10.45.2)(zod@3.23.6) + trpc-swagger: + specifier: ^1.2.6 + version: 1.2.6(@trpc/client@10.45.2(@trpc/server@10.45.2))(@trpc/server@10.45.2)(zod@3.23.6) typescript-logging: specifier: ^0.6.4 version: 0.6.4 @@ -8793,6 +8793,12 @@ packages: } engines: { node: '>=4' } + chalk-scripts@1.2.8: + resolution: + { + integrity: sha512-Mu3mEn4lbqJHZD+wqBE8kwGb1TaNgcMspDIZVDzDHxKhK1zB3Q8q49PP15z0CNNDu5wxSwxhdPV+8UcejOSWxA==, + } + chalk@2.4.2: resolution: { @@ -17958,13 +17964,14 @@ packages: } engines: { node: '>=6' } - trpc-openapi@1.1.2: + trpc-swagger@1.2.6: resolution: { - integrity: sha512-G2CT6q0nhhOGcYeAaK+volHNXRE8BFmNY+LwQA1cMXonh+iEUvl6T3OjF2HEGVvF0am9u9uo5hlMuXq5Wdweww==, + integrity: sha512-LVh2NicwYZdaUEvshY9IF1oL02z9PWjltY0CwTslHw4mi4DcSAP4bx/FPfp5+371oj75vujjNbOjGG9grNl3Xg==, } peerDependencies: - '@trpc/server': ^10.0.0 + '@trpc/client': ^10.45.2 + '@trpc/server': ^10.45.2 zod: ^3.14.4 ts-api-utils@1.3.0: @@ -25722,6 +25729,12 @@ snapshots: pathval: 1.1.1 type-detect: 4.0.8 + chalk-scripts@1.2.8: + dependencies: + chalk: 5.3.0 + performance-now: 2.1.0 + uuid: 9.0.1 + chalk@2.4.2: dependencies: ansi-styles: 3.2.1 @@ -31880,9 +31893,11 @@ snapshots: dependencies: matchit: 1.1.0 - trpc-openapi@1.1.2(@trpc/server@10.45.2)(zod@3.23.6): + trpc-swagger@1.2.6(@trpc/client@10.45.2(@trpc/server@10.45.2))(@trpc/server@10.45.2)(zod@3.23.6): dependencies: + '@trpc/client': 10.45.2(@trpc/server@10.45.2) '@trpc/server': 10.45.2 + chalk-scripts: 1.2.8 co-body: 6.1.0 lodash.clonedeep: 4.5.0 node-mocks-http: 1.14.1 From 89e8298324ca11e1020c33cb282f4923aa712f2c Mon Sep 17 00:00:00 2001 From: rotorsoft Date: Thu, 8 Aug 2024 14:39:48 -0400 Subject: [PATCH 4/4] add security scheme --- libs/api-client/src/api.ts | 112 ++++++++++++++++------ packages/commonwealth/server/api/index.ts | 13 +++ 2 files changed, 94 insertions(+), 31 deletions(-) diff --git a/libs/api-client/src/api.ts b/libs/api-client/src/api.ts index f1d9305a99f..e6855ba8785 100644 --- a/libs/api-client/src/api.ts +++ b/libs/api-client/src/api.ts @@ -23,7 +23,7 @@ import { assertParamExists, createRequestFunction, serializeDataIfNeeded, - setBearerAuthToObject, + setOAuthToObject, setSearchParams, toPathString, } from './common'; @@ -5996,9 +5996,14 @@ export const LoadTestApiAxiosParamCreator = function ( const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Authorization required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication oauth2 required + // oauth required + await setOAuthToObject( + localVarHeaderParameter, + 'oauth2', + [], + configuration, + ); if (addressId != null) { localVarHeaderParameter['address_id'] = String(addressId); @@ -8450,9 +8455,14 @@ export const SubscriptionApiAxiosParamCreator = function ( const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Authorization required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication oauth2 required + // oauth required + await setOAuthToObject( + localVarHeaderParameter, + 'oauth2', + [], + configuration, + ); if (addressId != null) { localVarHeaderParameter['address_id'] = String(addressId); @@ -8526,9 +8536,14 @@ export const SubscriptionApiAxiosParamCreator = function ( const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Authorization required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication oauth2 required + // oauth required + await setOAuthToObject( + localVarHeaderParameter, + 'oauth2', + [], + configuration, + ); if (addressId != null) { localVarHeaderParameter['address_id'] = String(addressId); @@ -8602,9 +8617,14 @@ export const SubscriptionApiAxiosParamCreator = function ( const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Authorization required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication oauth2 required + // oauth required + await setOAuthToObject( + localVarHeaderParameter, + 'oauth2', + [], + configuration, + ); if (addressId != null) { localVarHeaderParameter['address_id'] = String(addressId); @@ -8678,9 +8698,14 @@ export const SubscriptionApiAxiosParamCreator = function ( const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Authorization required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication oauth2 required + // oauth required + await setOAuthToObject( + localVarHeaderParameter, + 'oauth2', + [], + configuration, + ); if (addressId != null) { localVarHeaderParameter['address_id'] = String(addressId); @@ -8754,9 +8779,14 @@ export const SubscriptionApiAxiosParamCreator = function ( const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Authorization required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication oauth2 required + // oauth required + await setOAuthToObject( + localVarHeaderParameter, + 'oauth2', + [], + configuration, + ); if (addressId != null) { localVarHeaderParameter['address_id'] = String(addressId); @@ -8830,9 +8860,14 @@ export const SubscriptionApiAxiosParamCreator = function ( const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Authorization required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication oauth2 required + // oauth required + await setOAuthToObject( + localVarHeaderParameter, + 'oauth2', + [], + configuration, + ); if (addressId != null) { localVarHeaderParameter['address_id'] = String(addressId); @@ -8910,9 +8945,14 @@ export const SubscriptionApiAxiosParamCreator = function ( const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Authorization required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication oauth2 required + // oauth required + await setOAuthToObject( + localVarHeaderParameter, + 'oauth2', + [], + configuration, + ); if (addressId != null) { localVarHeaderParameter['address_id'] = String(addressId); @@ -8990,9 +9030,14 @@ export const SubscriptionApiAxiosParamCreator = function ( const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Authorization required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication oauth2 required + // oauth required + await setOAuthToObject( + localVarHeaderParameter, + 'oauth2', + [], + configuration, + ); if (addressId != null) { localVarHeaderParameter['address_id'] = String(addressId); @@ -9066,9 +9111,14 @@ export const SubscriptionApiAxiosParamCreator = function ( const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication Authorization required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration); + // authentication oauth2 required + // oauth required + await setOAuthToObject( + localVarHeaderParameter, + 'oauth2', + [], + configuration, + ); if (addressId != null) { localVarHeaderParameter['address_id'] = String(addressId); diff --git a/packages/commonwealth/server/api/index.ts b/packages/commonwealth/server/api/index.ts index adc7634d04b..7e2db53ba29 100644 --- a/packages/commonwealth/server/api/index.ts +++ b/packages/commonwealth/server/api/index.ts @@ -49,6 +49,19 @@ router.get('/v1/openapi.json', (req, res) => { title: 'Common API', version: '1.0.0', baseUrl, + securitySchemes: { + oauth2: { + type: 'oauth2', + flows: { + authorizationCode: { + authorizationUrl: 'https://example.com/oauth/authorize', + tokenUrl: 'https://example.com/oauth/token', + refreshUrl: 'https://example.com/oauth/refresh', + scopes: {}, + }, + }, + }, + }, }), ); });