diff --git a/.changeset/tall-turkeys-rule.md b/.changeset/tall-turkeys-rule.md new file mode 100644 index 0000000..2fb6abb --- /dev/null +++ b/.changeset/tall-turkeys-rule.md @@ -0,0 +1,5 @@ +--- +'openapi-ts-request': minor +--- + +feat: support generate api responses type diff --git a/openapi-ts-request.config.ts b/openapi-ts-request.config.ts index 687d234..8d483e6 100644 --- a/openapi-ts-request.config.ts +++ b/openapi-ts-request.config.ts @@ -1,6 +1,6 @@ export default [ { schemaPath: 'http://petstore.swagger.io/v2/swagger.json', - serversPath: './src/apis/app', + serversPath: './apis/app', }, ]; diff --git a/src/generator/serviceGenarator.ts b/src/generator/serviceGenarator.ts index b3ab050..220baf6 100644 --- a/src/generator/serviceGenarator.ts +++ b/src/generator/serviceGenarator.ts @@ -6,6 +6,7 @@ import { entries, filter, find, + findIndex, forEach, isArray, isEmpty, @@ -18,6 +19,7 @@ import { } from 'lodash'; import { minimatch } from 'minimatch'; import nunjucks from 'nunjucks'; +import type { OpenAPIV3 } from 'openapi-types'; import { join } from 'path'; import { rimrafSync } from 'rimraf'; @@ -690,6 +692,21 @@ export default class ServiceGenerator { response.type = `${this.config.namespace}.${responseName}`; } + const responsesType = this.getResponsesType( + newApi.responses, + functionName + ); + + // 如果有多个响应类型,生成对应的类型定义 + if (responsesType) { + this.interfaceTPConfigs.push({ + typeName: upperFirst(`${functionName}Responses`), + type: responsesType, + isEnum: false, + props: [], + }); + } + let formattedPath = newApi.path.replace( /:([^/]*)|{([^}]*)}/gi, (_, str, str2) => `$\{${str || str2}}` @@ -1091,6 +1108,143 @@ export default class ServiceGenerator { return responseSchema; } + /** + * 生成多状态码响应类型定义 + * 将 OpenAPI 的 responses 对象转换为 TypeScript 类型定义 + * 例如:{ 200: ResponseType, 400: unknown, 404: unknown } + * + * @param responses OpenAPI 响应对象 + * @param functionName 函数名称,用于生成主响应类型名称 + * @returns 多状态码响应类型定义字符串,如果没有响应则返回 null + */ + private getResponsesType( + responses: ResponsesObject = {}, + functionName: string + ) { + if ( + isEmpty(responses) || + ~findIndex( + this.interfaceTPConfigs, + (item) => item.typeName === upperFirst(`${functionName}Responses`) + ) + ) { + return null; + } + + const { components } = this.openAPIData; + // 生成主响应类型名称 + const mainResponseTypeName = upperFirst(`${functionName}Response`); + const responseEntries = this.parseResponseEntries(responses, components); + + const responseTypes = responseEntries.map( + ({ statusCode, type, description = '' }) => { + // 检查是否已存在对应的主响应类型,如果存在则复用,避免重复定义 + const existType = this.interfaceTPConfigs.find( + (item) => item.typeName === mainResponseTypeName + ); + const lastType = existType ? mainResponseTypeName : type; + + // 格式化描述文本,让描述支持换行 + const formattedDescription = lineBreakReg.test(description) + ? description.split('\n')?.join('\n * ') + : description; + + // 生成带注释的类型定义 + return formattedDescription + ? ` /**\n * ${formattedDescription}\n */\n ${statusCode}: ${lastType};` + : ` ${statusCode}: ${lastType};`; + } + ); + + // 返回完整的对象类型定义 + return `{\n${responseTypes.join('\n')}\n}`; + } + + /** + * 解析响应条目,提取每个状态码对应的类型和描述信息 + * + * @param responses OpenAPI 响应对象 + * @param components OpenAPI 组件对象,用于解析引用类型 + * @returns 响应条目数组,包含状态码、类型和描述 + */ + private parseResponseEntries( + responses: ResponsesObject, + components: OpenAPIV3.ComponentsObject + ) { + return keys(responses).map((statusCode) => { + const response = this.resolveRefObject( + responses[statusCode] as ResponseObject + ); + + if (!response) { + return { statusCode, type: 'unknown', description: '' }; + } + + const responseType = this.getResponseTypeFromContent( + response, + components + ); + const description = response.description || ''; + + return { statusCode, type: responseType, description }; + }); + } + + /** + * 从响应内容中提取 TypeScript 类型 + * 处理不同的媒体类型和 schema 类型 + * + * @param response 响应对象 + * @param components OpenAPI 组件对象 + * @returns TypeScript 类型字符串 + */ + private getResponseTypeFromContent( + response: ResponseObject, + components: OpenAPIV3.ComponentsObject + ): string { + if (!response.content) { + return 'unknown'; + } + + const resContent: ContentObject = response.content; + const resContentMediaTypes = keys(resContent); + const mediaType = resContentMediaTypes.includes('application/json') + ? 'application/json' + : resContentMediaTypes[0]; + + if (!isObject(resContent) || !mediaType) { + return 'unknown'; + } + + let schema = (resContent[mediaType].schema || + DEFAULT_SCHEMA) as SchemaObject; + + if (isReferenceObject(schema)) { + const refName = getLastRefName(schema.$ref); + const childrenSchema = components.schemas[refName]; + + // 如果配置了 dataFields,尝试从指定字段提取类型 + if (isNonArraySchemaObject(childrenSchema) && this.config.dataFields) { + schema = (this.config.dataFields + .map((field) => childrenSchema.properties[field]) + .filter(Boolean)?.[0] || + resContent[mediaType].schema || + DEFAULT_SCHEMA) as SchemaObject; + } + + return this.getType(schema); + } else if (isSchemaObject(schema)) { + // 设置属性的 required 状态 + keys(schema.properties).map((fieldName) => { + schema.properties[fieldName]['required'] = + schema.required?.includes(fieldName) ?? false; + }); + return this.getType(schema); + } else { + return this.getType(schema); + } + } + private getParamsTP( parameters: (ParameterObject | ReferenceObject)[] = [], path: string = null diff --git a/test/__snapshots__/both/should both excludeTags and excludePaths works while excludePaths has wildcard.snap b/test/__snapshots__/both/should both excludeTags and excludePaths works while excludePaths has wildcard.snap index 180b0be..21a0c69 100644 --- a/test/__snapshots__/both/should both excludeTags and excludePaths works while excludePaths has wildcard.snap +++ b/test/__snapshots__/both/should both excludeTags and excludePaths works while excludePaths has wildcard.snap @@ -5,7 +5,20 @@ export * from './types'; export * from './userZ'; /* eslint-disable */ // @ts-ignore -export {}; + +export type UserZz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; /* eslint-disable */ // @ts-ignore import request from '../request'; diff --git a/test/__snapshots__/both/should both excludeTags and excludePaths works with includeTags.snap b/test/__snapshots__/both/should both excludeTags and excludePaths works with includeTags.snap index d148157..c34ed66 100644 --- a/test/__snapshots__/both/should both excludeTags and excludePaths works with includeTags.snap +++ b/test/__snapshots__/both/should both excludeTags and excludePaths works with includeTags.snap @@ -5,7 +5,13 @@ export * from './types'; export * from './userZ'; /* eslint-disable */ // @ts-ignore -export {}; + +export type UserZz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; /* eslint-disable */ // @ts-ignore import request from '../request'; diff --git a/test/__snapshots__/both/should exclude items from includePaths and includeTags.snap b/test/__snapshots__/both/should exclude items from includePaths and includeTags.snap index 11a1dc9..79a2183 100644 --- a/test/__snapshots__/both/should exclude items from includePaths and includeTags.snap +++ b/test/__snapshots__/both/should exclude items from includePaths and includeTags.snap @@ -22,4 +22,10 @@ export async function sysAa1UsingGet({ } /* eslint-disable */ // @ts-ignore -export {}; + +export type SysAa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; diff --git a/test/__snapshots__/both/should return all while includeTags match all.snap b/test/__snapshots__/both/should return all while includeTags match all.snap index c42915f..794fa6b 100644 --- a/test/__snapshots__/both/should return all while includeTags match all.snap +++ b/test/__snapshots__/both/should return all while includeTags match all.snap @@ -169,7 +169,188 @@ export async function sysCc1Cc1Ccc1Cccc1UsingGet({ } /* eslint-disable */ // @ts-ignore -export {}; + +export type SysAa1Aa1Aaa1Aaaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1Aaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1Bbb1Bbbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1Bbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1Cccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1Xxxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1Yyyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1Yyyy1Yyyyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1Zzzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1Zzzz1Zzzzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; /* eslint-disable */ // @ts-ignore import request from '../request'; diff --git "a/test/__snapshots__/common/\345\260\217\351\251\274\345\263\260\345\221\275\345\220\215\346\226\207\344\273\266\345\222\214\350\257\267\346\261\202\345\207\275\346\225\260.snap" "b/test/__snapshots__/common/\345\260\217\351\251\274\345\263\260\345\221\275\345\220\215\346\226\207\344\273\266\345\222\214\350\257\267\346\261\202\345\207\275\346\225\260.snap" index 0306afb..56d59c9 100644 --- "a/test/__snapshots__/common/\345\260\217\351\251\274\345\263\260\345\221\275\345\220\215\346\226\207\344\273\266\345\222\214\350\257\267\346\261\202\345\207\275\346\225\260.snap" +++ "b/test/__snapshots__/common/\345\260\217\351\251\274\345\263\260\345\221\275\345\220\215\346\226\207\344\273\266\345\222\214\350\257\267\346\261\202\345\207\275\346\225\260.snap" @@ -290,11 +290,33 @@ export type PetFindByStatusUsingGetParams = { status?: 'available' | 'pending' | 'sold'; }; +export type PetFindByStatusUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid status value + */ + 400: unknown; +}; + export type PetFindByTagsUsingGetParams = { /** Tags to filter by */ tags?: string[]; }; +export type PetFindByTagsUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid tag value + */ + 400: unknown; +}; + export type PetPetIdUploadImageUsingPostBody = string; export type PetPetIdUploadImageUsingPostParams = { @@ -304,16 +326,45 @@ export type PetPetIdUploadImageUsingPostParams = { additionalMetadata?: string; }; +export type PetPetIdUploadImageUsingPostResponses = { + /** + * successful operation + */ + 200: ApiResponse; +}; + export type PetPetIdUsingDeleteParams = { /** Pet id to delete */ petId: number; }; +export type PetPetIdUsingDeleteResponses = { + /** + * Invalid pet value + */ + 400: unknown; +}; + export type PetPetIdUsingGetParams = { /** ID of pet to return */ petId: number; }; +export type PetPetIdUsingGetResponses = { + /** + * successful operation + */ + 200: Pet; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; +}; + export type PetPetIdUsingPostParams = { /** ID of pet that needs to be updated */ petId: number; @@ -323,6 +374,43 @@ export type PetPetIdUsingPostParams = { status?: string; }; +export type PetPetIdUsingPostResponses = { + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPostResponses = { + /** + * Successful operation + */ + 200: Pet; + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPutResponses = { + /** + * Successful operation + */ + 200: Pet; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; + /** + * Validation exception + */ + 405: unknown; +}; + export enum StatusEnum { 'placed' = 'placed', 'approved' = 'approved', @@ -339,16 +427,60 @@ export enum StatusEnum2 { export type IStatusEnum2 = keyof typeof StatusEnum2; +export type StoreInventoryUsingGetResponses = { + /** + * successful operation + */ + 200: Record; +}; + export type StoreOrderOrderIdUsingDeleteParams = { /** ID of the order that needs to be deleted */ orderId: number; }; +export type StoreOrderOrderIdUsingDeleteResponses = { + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Order not found + */ + 404: unknown; +}; + export type StoreOrderOrderIdUsingGetParams = { /** ID of order that needs to be fetched */ orderId: number; }; +export type StoreOrderOrderIdUsingGetResponses = { + /** + * successful operation + */ + 200: Order; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Order not found + */ + 404: unknown; +}; + +export type StoreOrderUsingPostResponses = { + /** + * successful operation + */ + 200: Order; + /** + * Invalid input + */ + 405: unknown; +}; + export type Tag = { id?: number; name?: string; @@ -368,6 +500,17 @@ export type User = { export type UserCreateWithListUsingPostBody = User[]; +export type UserCreateWithListUsingPostResponses = { + /** + * Successful operation + */ + 200: User; + /** + * successful operation + */ + default: unknown; +}; + export type UserLoginUsingGetParams = { /** The user name for login */ username?: string; @@ -375,20 +518,78 @@ export type UserLoginUsingGetParams = { password?: string; }; +export type UserLoginUsingGetResponses = { + /** + * successful operation + */ + 200: string; + /** + * Invalid username/password supplied + */ + 400: unknown; +}; + +export type UserLogoutUsingGetResponses = { + /** + * successful operation + */ + default: unknown; +}; + export type UserUsernameUsingDeleteParams = { /** The name that needs to be deleted */ username: string; }; +export type UserUsernameUsingDeleteResponses = { + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + export type UserUsernameUsingGetParams = { /** The name that needs to be fetched. Use user1 for testing. */ username: string; }; +export type UserUsernameUsingGetResponses = { + /** + * successful operation + */ + 200: User; + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + export type UserUsernameUsingPutParams = { /** name that needs to be updated */ username: string; }; + +export type UserUsernameUsingPutResponses = { + /** + * successful operation + */ + default: unknown; +}; + +export type UserUsingPostResponses = { + /** + * successful operation + */ + default: User; +}; /* eslint-disable */ // @ts-ignore import { request } from 'axios'; diff --git "a/test/__snapshots__/common/\346\224\257\346\214\201 null \347\261\273\345\236\213\344\275\234\344\270\272\351\273\230\350\256\244\345\200\274.snap" "b/test/__snapshots__/common/\346\224\257\346\214\201 null \347\261\273\345\236\213\344\275\234\344\270\272\351\273\230\350\256\244\345\200\274.snap" index 3d24e4b..5cd6ba5 100644 --- "a/test/__snapshots__/common/\346\224\257\346\214\201 null \347\261\273\345\236\213\344\275\234\344\270\272\351\273\230\350\256\244\345\200\274.snap" +++ "b/test/__snapshots__/common/\346\224\257\346\214\201 null \347\261\273\345\236\213\344\275\234\344\270\272\351\273\230\350\256\244\345\200\274.snap" @@ -290,11 +290,33 @@ export type PetFindByStatusUsingGetParams = { status: 'available' | 'pending' | 'sold' | null; }; +export type PetFindByStatusUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid status value + */ + 400: unknown; +}; + export type PetFindByTagsUsingGetParams = { /** Tags to filter by */ tags: string[] | null; }; +export type PetFindByTagsUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid tag value + */ + 400: unknown; +}; + export type PetPetIdUploadImageUsingPostBody = string; export type PetPetIdUploadImageUsingPostParams = { @@ -304,16 +326,45 @@ export type PetPetIdUploadImageUsingPostParams = { additionalMetadata: string | null; }; +export type PetPetIdUploadImageUsingPostResponses = { + /** + * successful operation + */ + 200: ApiResponse; +}; + export type PetPetIdUsingDeleteParams = { /** Pet id to delete */ petId: number; }; +export type PetPetIdUsingDeleteResponses = { + /** + * Invalid pet value + */ + 400: unknown; +}; + export type PetPetIdUsingGetParams = { /** ID of pet to return */ petId: number; }; +export type PetPetIdUsingGetResponses = { + /** + * successful operation + */ + 200: Pet; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; +}; + export type PetPetIdUsingPostParams = { /** ID of pet that needs to be updated */ petId: number; @@ -323,6 +374,43 @@ export type PetPetIdUsingPostParams = { status: string | null; }; +export type PetPetIdUsingPostResponses = { + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPostResponses = { + /** + * Successful operation + */ + 200: Pet; + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPutResponses = { + /** + * Successful operation + */ + 200: Pet; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; + /** + * Validation exception + */ + 405: unknown; +}; + export enum StatusEnum { 'placed' = 'placed', 'approved' = 'approved', @@ -339,16 +427,60 @@ export enum StatusEnum2 { export type IStatusEnum2 = keyof typeof StatusEnum2; +export type StoreInventoryUsingGetResponses = { + /** + * successful operation + */ + 200: Record; +}; + export type StoreOrderOrderIdUsingDeleteParams = { /** ID of the order that needs to be deleted */ orderId: number; }; +export type StoreOrderOrderIdUsingDeleteResponses = { + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Order not found + */ + 404: unknown; +}; + export type StoreOrderOrderIdUsingGetParams = { /** ID of order that needs to be fetched */ orderId: number; }; +export type StoreOrderOrderIdUsingGetResponses = { + /** + * successful operation + */ + 200: Order; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Order not found + */ + 404: unknown; +}; + +export type StoreOrderUsingPostResponses = { + /** + * successful operation + */ + 200: Order; + /** + * Invalid input + */ + 405: unknown; +}; + export type Tag = { id: number | null; name: string | null; @@ -368,6 +500,17 @@ export type User = { export type UserCreateWithListUsingPostBody = User[]; +export type UserCreateWithListUsingPostResponses = { + /** + * Successful operation + */ + 200: User; + /** + * successful operation + */ + default: unknown; +}; + export type UserLoginUsingGetParams = { /** The user name for login */ username: string | null; @@ -375,20 +518,78 @@ export type UserLoginUsingGetParams = { password: string | null; }; +export type UserLoginUsingGetResponses = { + /** + * successful operation + */ + 200: string; + /** + * Invalid username/password supplied + */ + 400: unknown; +}; + +export type UserLogoutUsingGetResponses = { + /** + * successful operation + */ + default: unknown; +}; + export type UserUsernameUsingDeleteParams = { /** The name that needs to be deleted */ username: string; }; +export type UserUsernameUsingDeleteResponses = { + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + export type UserUsernameUsingGetParams = { /** The name that needs to be fetched. Use user1 for testing. */ username: string; }; +export type UserUsernameUsingGetResponses = { + /** + * successful operation + */ + 200: User; + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + export type UserUsernameUsingPutParams = { /** name that needs to be updated */ username: string; }; + +export type UserUsernameUsingPutResponses = { + /** + * successful operation + */ + default: unknown; +}; + +export type UserUsingPostResponses = { + /** + * successful operation + */ + default: User; +}; /* eslint-disable */ // @ts-ignore import { request } from 'axios'; diff --git "a/test/__snapshots__/common/\346\226\207\344\273\266\344\270\212\344\274\240.snap" "b/test/__snapshots__/common/\346\226\207\344\273\266\344\270\212\344\274\240.snap" index bd4f5d1..183cf07 100644 --- "a/test/__snapshots__/common/\346\226\207\344\273\266\344\270\212\344\274\240.snap" +++ "b/test/__snapshots__/common/\346\226\207\344\273\266\344\270\212\344\274\240.snap" @@ -93,3 +93,26 @@ export type WebapiClearImportNavReCheckFileUsingPostBody = { /** file */ file: string; }; + +export type WebapiClearImportNavReCheckFileUsingPostResponses = { + /** + * 结果 + */ + 200: ResponseString_; + /** + * Created + */ + 201: unknown; + /** + * Unauthorized + */ + 401: unknown; + /** + * Forbidden + */ + 403: unknown; + /** + * Not Found + */ + 404: unknown; +}; diff --git "a/test/__snapshots__/common/\346\255\243\345\270\270\345\221\275\345\220\215\346\226\207\344\273\266\345\222\214\350\257\267\346\261\202\345\207\275\346\225\260.snap" "b/test/__snapshots__/common/\346\255\243\345\270\270\345\221\275\345\220\215\346\226\207\344\273\266\345\222\214\350\257\267\346\261\202\345\207\275\346\225\260.snap" index 0306afb..56d59c9 100644 --- "a/test/__snapshots__/common/\346\255\243\345\270\270\345\221\275\345\220\215\346\226\207\344\273\266\345\222\214\350\257\267\346\261\202\345\207\275\346\225\260.snap" +++ "b/test/__snapshots__/common/\346\255\243\345\270\270\345\221\275\345\220\215\346\226\207\344\273\266\345\222\214\350\257\267\346\261\202\345\207\275\346\225\260.snap" @@ -290,11 +290,33 @@ export type PetFindByStatusUsingGetParams = { status?: 'available' | 'pending' | 'sold'; }; +export type PetFindByStatusUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid status value + */ + 400: unknown; +}; + export type PetFindByTagsUsingGetParams = { /** Tags to filter by */ tags?: string[]; }; +export type PetFindByTagsUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid tag value + */ + 400: unknown; +}; + export type PetPetIdUploadImageUsingPostBody = string; export type PetPetIdUploadImageUsingPostParams = { @@ -304,16 +326,45 @@ export type PetPetIdUploadImageUsingPostParams = { additionalMetadata?: string; }; +export type PetPetIdUploadImageUsingPostResponses = { + /** + * successful operation + */ + 200: ApiResponse; +}; + export type PetPetIdUsingDeleteParams = { /** Pet id to delete */ petId: number; }; +export type PetPetIdUsingDeleteResponses = { + /** + * Invalid pet value + */ + 400: unknown; +}; + export type PetPetIdUsingGetParams = { /** ID of pet to return */ petId: number; }; +export type PetPetIdUsingGetResponses = { + /** + * successful operation + */ + 200: Pet; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; +}; + export type PetPetIdUsingPostParams = { /** ID of pet that needs to be updated */ petId: number; @@ -323,6 +374,43 @@ export type PetPetIdUsingPostParams = { status?: string; }; +export type PetPetIdUsingPostResponses = { + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPostResponses = { + /** + * Successful operation + */ + 200: Pet; + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPutResponses = { + /** + * Successful operation + */ + 200: Pet; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; + /** + * Validation exception + */ + 405: unknown; +}; + export enum StatusEnum { 'placed' = 'placed', 'approved' = 'approved', @@ -339,16 +427,60 @@ export enum StatusEnum2 { export type IStatusEnum2 = keyof typeof StatusEnum2; +export type StoreInventoryUsingGetResponses = { + /** + * successful operation + */ + 200: Record; +}; + export type StoreOrderOrderIdUsingDeleteParams = { /** ID of the order that needs to be deleted */ orderId: number; }; +export type StoreOrderOrderIdUsingDeleteResponses = { + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Order not found + */ + 404: unknown; +}; + export type StoreOrderOrderIdUsingGetParams = { /** ID of order that needs to be fetched */ orderId: number; }; +export type StoreOrderOrderIdUsingGetResponses = { + /** + * successful operation + */ + 200: Order; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Order not found + */ + 404: unknown; +}; + +export type StoreOrderUsingPostResponses = { + /** + * successful operation + */ + 200: Order; + /** + * Invalid input + */ + 405: unknown; +}; + export type Tag = { id?: number; name?: string; @@ -368,6 +500,17 @@ export type User = { export type UserCreateWithListUsingPostBody = User[]; +export type UserCreateWithListUsingPostResponses = { + /** + * Successful operation + */ + 200: User; + /** + * successful operation + */ + default: unknown; +}; + export type UserLoginUsingGetParams = { /** The user name for login */ username?: string; @@ -375,20 +518,78 @@ export type UserLoginUsingGetParams = { password?: string; }; +export type UserLoginUsingGetResponses = { + /** + * successful operation + */ + 200: string; + /** + * Invalid username/password supplied + */ + 400: unknown; +}; + +export type UserLogoutUsingGetResponses = { + /** + * successful operation + */ + default: unknown; +}; + export type UserUsernameUsingDeleteParams = { /** The name that needs to be deleted */ username: string; }; +export type UserUsernameUsingDeleteResponses = { + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + export type UserUsernameUsingGetParams = { /** The name that needs to be fetched. Use user1 for testing. */ username: string; }; +export type UserUsernameUsingGetResponses = { + /** + * successful operation + */ + 200: User; + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + export type UserUsernameUsingPutParams = { /** name that needs to be updated */ username: string; }; + +export type UserUsernameUsingPutResponses = { + /** + * successful operation + */ + default: unknown; +}; + +export type UserUsingPostResponses = { + /** + * successful operation + */ + default: User; +}; /* eslint-disable */ // @ts-ignore import { request } from 'axios'; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225 $ref \345\274\225\347\224\250\344\270\255\345\214\205\345\220\253 encode \347\274\226\347\240\201\345\255\227\347\254\246.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225 $ref \345\274\225\347\224\250\344\270\255\345\214\205\345\220\253 encode \347\274\226\347\240\201\345\255\227\347\254\246.snap" index 05fd29f..3797f61 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225 $ref \345\274\225\347\224\250\344\270\255\345\214\205\345\220\253 encode \347\274\226\347\240\201\345\255\227\347\254\246.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225 $ref \345\274\225\347\224\250\344\270\255\345\214\205\345\220\253 encode \347\274\226\347\240\201\345\255\227\347\254\246.snap" @@ -354,11 +354,39 @@ export type DisableGoodsReq = { status: number; }; +export type GoodsAddGoodsUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + +export type GoodsBatchDeleteGoodsUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + +export type GoodsBatchUpdateStatusUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + export type GoodsDeleteGoodsUsingGetParams = { goodsId: string; orgId: string; }; +export type GoodsDeleteGoodsUsingGetResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + export type GoodsDetailRes = { id?: string; /** 机构id */ @@ -494,10 +522,31 @@ export type GoodsGetGoodsDetailUsingPostParams = { orgId: string; }; +export type GoodsGetGoodsDetailUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultGoodsDetailRes; +}; + export type GoodsGetGoodsNumUsingGetParams = { orgId: string; }; +export type GoodsGetGoodsNumUsingGetResponses = { + /** + * 成功 + */ + 200: ResponseResultGoodsNumDTO; +}; + +export type GoodsHospitalGoodsPageUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultIPageGoodsPageQueryDTO; +}; + export type GoodsNumDTO = { /** 审核通过数量 */ numberOfAuditPass?: number; @@ -604,6 +653,27 @@ export type GoodsPageQueryDTO = { autoDetectFailReason?: string; }; +export type GoodsPharmacyGoodsPageUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultIPageGoodsPageQueryDTO; +}; + +export type GoodsUpdateGoodsStatusUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + +export type GoodsUpdateGoodsUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + export type IPageGoodsPageQueryDTO = { records?: GoodsPageQueryDTO[]; total?: number; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225 _COMPUTER SCIENCE_ \350\277\231\344\270\200\347\261\273\347\232\204\346\236\232\344\270\276\345\200\274\345\234\250\347\224\237\346\210\220\347\232\204\347\261\273\345\236\213\344\270\255\344\270\215\346\212\245\351\224\231.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225 _COMPUTER SCIENCE_ \350\277\231\344\270\200\347\261\273\347\232\204\346\236\232\344\270\276\345\200\274\345\234\250\347\224\237\346\210\220\347\232\204\347\261\273\345\236\213\344\270\255\344\270\215\346\212\245\351\224\231.snap" index 8923ca0..f7f96eb 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225 _COMPUTER SCIENCE_ \350\277\231\344\270\200\347\261\273\347\232\204\346\236\232\344\270\276\345\200\274\345\234\250\347\224\237\346\210\220\347\232\204\347\261\273\345\236\213\344\270\255\344\270\215\346\212\245\351\224\231.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225 _COMPUTER SCIENCE_ \350\277\231\344\270\200\347\261\273\347\232\204\346\236\232\344\270\276\345\200\274\345\234\250\347\224\237\346\210\220\347\232\204\347\261\273\345\236\213\344\270\255\344\270\215\346\212\245\351\224\231.snap" @@ -48,6 +48,13 @@ export enum GenderEnum { export type IGenderEnum = keyof typeof GenderEnum; +export type HelloUsingGetResponses = { + /** + * A student object + */ + 200: Student; +}; + export enum Major { 'COMPUTER SCIENCE' = 'COMPUTER SCIENCE', 'MATHEMATICS' = 'MATHEMATICS', diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225 number\347\261\273\345\236\213 \346\236\232\344\270\276.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225 number\347\261\273\345\236\213 \346\236\232\344\270\276.snap" index 9a4614b..c27eecb 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225 number\347\261\273\345\236\213 \346\236\232\344\270\276.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225 number\347\261\273\345\236\213 \346\236\232\344\270\276.snap" @@ -120,10 +120,32 @@ export type CityCityUsingGetParams = { query_string?: string; }; +export type CityCityUsingGetResponses = { + /** + * Successful Response + */ + 200: CityGetRes; + /** + * Validation Error + */ + 422: HTTPValidationError; +}; + export type CityCityUsingPutParams = { city: Poi2CategoryEnum; }; +export type CityCityUsingPutResponses = { + /** + * Successful Response + */ + 200: CityPutRes; + /** + * Validation Error + */ + 422: HTTPValidationError; +}; + export type CityGetRes = { /** City */ city: string; @@ -178,6 +200,13 @@ export enum Poi2CategoryEnum { export type IPoi2CategoryEnum = keyof typeof Poi2CategoryEnum; +export type UsingGetResponses = { + /** + * Successful Response + */ + 200: string; +}; + export type ValidationError = { /** Location */ loc: (string | number)[]; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225 number\347\261\273\345\236\213 \346\236\232\344\270\276\357\274\214\344\275\277\347\224\250 desc \350\247\243\346\236\220\346\236\232\344\270\276.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225 number\347\261\273\345\236\213 \346\236\232\344\270\276\357\274\214\344\275\277\347\224\250 desc \350\247\243\346\236\220\346\236\232\344\270\276.snap" index 26338dc..601bc30 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225 number\347\261\273\345\236\213 \346\236\232\344\270\276\357\274\214\344\275\277\347\224\250 desc \350\247\243\346\236\220\346\236\232\344\270\276.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225 number\347\261\273\345\236\213 \346\236\232\344\270\276\357\274\214\344\275\277\347\224\250 desc \350\247\243\346\236\220\346\236\232\344\270\276.snap" @@ -18,6 +18,13 @@ export type ApiSysUserGetUserInfoUsingGetParams = { userId?: number; }; +export type ApiSysUserGetUserInfoUsingGetResponses = { + /** + * OK + */ + 200: ResultOutputUserInfoOutput; +}; + export type ResultOutputUserInfoOutput = { /** 是否成功标记 */ success?: boolean; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225 schemas \345\214\205\345\220\253\346\236\232\344\270\276\346\225\260\347\273\204.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225 schemas \345\214\205\345\220\253\346\236\232\344\270\276\346\225\260\347\273\204.snap" index ce85614..2261b5c 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225 schemas \345\214\205\345\220\253\346\236\232\344\270\276\346\225\260\347\273\204.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225 schemas \345\214\205\345\220\253\346\236\232\344\270\276\346\225\260\347\273\204.snap" @@ -14,6 +14,17 @@ export type UserUsernameUsingDeleteParams = { /** The status that needs to be deleted */ status: StatusEnumArray; }; + +export type UserUsernameUsingDeleteResponses = { + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; /* eslint-disable */ // @ts-ignore import { request } from 'axios'; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225 swagger =_ openapi, schema \345\276\252\347\216\257\345\274\225\347\224\250.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225 swagger =_ openapi, schema \345\276\252\347\216\257\345\274\225\347\224\250.snap" index d594015..5d1624e 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225 swagger =_ openapi, schema \345\276\252\347\216\257\345\274\225\347\224\250.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225 swagger =_ openapi, schema \345\276\252\347\216\257\345\274\225\347\224\250.snap" @@ -1203,31 +1203,79 @@ export async function userUtilsDataUsingGet({ /* eslint-disable */ // @ts-ignore +export type AdminAdminsAllUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: Dict[]; + }; +}; + export type AdminAdminsIdPermissionsUsingPatchParams = { /** 成员id */ id: string; }; +export type AdminAdminsIdPermissionsUsingPatchResponses = { + /** + * _ + */ + 200: Response; +}; + export type AdminAdminsIdResetUsingPatchParams = { /** 成员id */ id: string; }; +export type AdminAdminsIdResetUsingPatchResponses = { + /** + * _ + */ + 200: Response & { + data?: AdminResetRet; + }; +}; + export type AdminAdminsIdToggleUsingPatchParams = { /** 成员id */ id: string; }; +export type AdminAdminsIdToggleUsingPatchResponses = { + /** + * _ + */ + 200: Response; +}; + export type AdminAdminsIdUsingGetParams = { /** 成员id */ id: string; }; +export type AdminAdminsIdUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: AdminInfo; + }; +}; + export type AdminAdminsIdUsingPutParams = { /** 成员id */ id: string; }; +export type AdminAdminsIdUsingPutResponses = { + /** + * _ + */ + 200: Response; +}; + export type AdminAdminsUsingGetParams = { /** 创建时间范围 */ created_at?: string; @@ -1243,6 +1291,24 @@ export type AdminAdminsUsingGetParams = { search?: string; }; +export type AdminAdminsUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: AdminListRet; + }; +}; + +export type AdminAdminsUsingPostResponses = { + /** + * _ + */ + 200: Response & { + data?: AdminCreateRet; + }; +}; + export type AdminCreateArg = { /** 成员姓名 */ name?: string; @@ -1259,31 +1325,79 @@ export type AdminCreateRet = { password?: string; }; +export type AdminEvaluationsAllUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: Dict[]; + }; +}; + export type AdminEvaluationsIdDataUsingGetParams = { /** 测评id */ id: string; }; +export type AdminEvaluationsIdDataUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: EvaluationData; + }; +}; + export type AdminEvaluationsIdUsingPutParams = { /** 测评id */ id: string; }; +export type AdminEvaluationsIdUsingPutResponses = { + /** + * _ + */ + 200: Response; +}; + export type AdminEvaluationsReportsIdDataUsingGetParams = { /** 报告id */ id: string; }; +export type AdminEvaluationsReportsIdDataUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: EvaluationReportData; + }; +}; + export type AdminEvaluationsReportsIdExamineUsingPatchParams = { /** 报告id */ id: string; }; +export type AdminEvaluationsReportsIdExamineUsingPatchResponses = { + /** + * _ + */ + 200: Response; +}; + export type AdminEvaluationsReportsIdSendUsingPatchParams = { /** 报告id */ id: string; }; +export type AdminEvaluationsReportsIdSendUsingPatchResponses = { + /** + * _ + */ + 200: Response; +}; + export type AdminEvaluationsReportsOpenApiExportUsingGetParams = { /** 测评时间范围 */ created_at?: string; @@ -1301,6 +1415,15 @@ export type AdminEvaluationsReportsOpenApiExportUsingGetParams = { warning_level?: string; }; +export type AdminEvaluationsReportsOpenApiExportUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: EvaluationReportExportRet; + }; +}; + export type AdminEvaluationsReportsUsingGetParams = { /** 测评时间范围 */ created_at?: string; @@ -1322,6 +1445,15 @@ export type AdminEvaluationsReportsUsingGetParams = { warning_level?: string; }; +export type AdminEvaluationsReportsUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: EvaluationReportListRet; + }; +}; + export type AdminEvaluationsUsingGetParams = { /** 创建时间范围 */ created_at?: string; @@ -1337,6 +1469,24 @@ export type AdminEvaluationsUsingGetParams = { user_type?: string; }; +export type AdminEvaluationsUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: EvaluationListRet; + }; +}; + +export type AdminEvaluationsUsingPostResponses = { + /** + * _ + */ + 200: Response & { + data?: EvaluationCreateRet; + }; +}; + export type AdminInfo = { created_at?: string; enabled?: boolean; @@ -1382,6 +1532,29 @@ export type AdminLoginArg = { password?: string; }; +export type AdminLoginUsingDeleteResponses = { + /** + * _ + */ + 200: Response; +}; + +export type AdminLoginUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: AdminInfo; + }; +}; + +export type AdminLoginUsingPostResponses = { + /** + * _ + */ + 200: Response; +}; + export type AdminLogListRet = { list?: AdminLogListRow[]; page?: Page; @@ -1409,31 +1582,88 @@ export type AdminLogModuleDict = { value?: string; }; +export type AdminOrganizationsAllUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: OrganizationAllInfo[]; + }; +}; + export type AdminOrganizationsIdMoveUsingPatchParams = { /** 机构id */ id: string; }; +export type AdminOrganizationsIdMoveUsingPatchResponses = { + /** + * _ + */ + 200: Response; +}; + export type AdminOrganizationsIdPermissionsUsingGetParams = { /** 机构id */ id: string; }; +export type AdminOrganizationsIdPermissionsUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: AdminPermission[]; + }; +}; + export type AdminOrganizationsIdToggleUsingPatchParams = { /** 机构id */ id: string; }; +export type AdminOrganizationsIdToggleUsingPatchResponses = { + /** + * _ + */ + 200: Response; +}; + export type AdminOrganizationsIdUsingGetParams = { /** 机构id */ id: string; }; +export type AdminOrganizationsIdUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: OrganizationInfo; + }; +}; + export type AdminOrganizationsIdUsingPutParams = { /** 机构id */ id: string; }; +export type AdminOrganizationsIdUsingPutResponses = { + /** + * _ + */ + 200: Response; +}; + +export type AdminOrganizationsUsingPostResponses = { + /** + * _ + */ + 200: Response & { + data?: OrganizationCreateRet; + }; +}; + export type AdminPermission = { cate?: string; permissions?: Dict[]; @@ -1444,16 +1674,59 @@ export type AdminResetRet = { password?: string; }; +export type AdminScalesAllUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: Dict[]; + }; +}; + export type AdminScalesIdToggleUsingPatchParams = { /** 量表id */ id: string; }; +export type AdminScalesIdToggleUsingPatchResponses = { + /** + * _ + */ + 200: Response; +}; + export type AdminScalesIdUsingGetParams = { /** 量表id */ id: string; }; +export type AdminScalesIdUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: ScaleInst; + }; +}; + +export type AdminScalesOpenApiImportUsingPostResponses = { + /** + * _ + */ + 200: Response & { + data?: ScaleImportRet; + }; +}; + +export type AdminScalesPreviewUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: ScaleInst; + }; +}; + export type AdminScalesUsingGetParams = { /** 创建时间范围 */ created_at?: string; @@ -1467,6 +1740,15 @@ export type AdminScalesUsingGetParams = { type?: string; }; +export type AdminScalesUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: ScaleListRet; + }; +}; + export type AdminSetPermissionsArg = { /** 成员权限 */ permissions?: string[]; @@ -1487,6 +1769,15 @@ export type AdminSystemsLogsOpenApiExportUsingGetParams = { organization_id?: string; }; +export type AdminSystemsLogsOpenApiExportUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: AdminLogExportRet; + }; +}; + export type AdminSystemsLogsUsingGetParams = { /** 操作行为 */ action?: string; @@ -1504,6 +1795,24 @@ export type AdminSystemsLogsUsingGetParams = { page_size?: number; }; +export type AdminSystemsLogsUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: AdminLogListRet; + }; +}; + +export type AdminSystemsScreenDataUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: SystemScreenData; + }; +}; + export type AdminToggleArg = { /** 成员状态 */ enabled?: boolean; @@ -1521,16 +1830,46 @@ export type AdminUsersIdToggleUsingPatchParams = { id: string; }; +export type AdminUsersIdToggleUsingPatchResponses = { + /** + * _ + */ + 200: Response; +}; + +export type AdminUsersSheetsAllUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: Dict[]; + }; +}; + export type AdminUsersSheetsIdToggleUsingPatchParams = { /** 信息表id */ id: string; }; +export type AdminUsersSheetsIdToggleUsingPatchResponses = { + /** + * _ + */ + 200: Response; +}; + export type AdminUsersSheetsIdUsingPutParams = { /** 信息表id */ id: string; }; +export type AdminUsersSheetsIdUsingPutResponses = { + /** + * _ + */ + 200: Response; +}; + export type AdminUsersSheetsUsingGetParams = { /** 上传时间范围 */ created_at?: string; @@ -1546,6 +1885,24 @@ export type AdminUsersSheetsUsingGetParams = { type?: string; }; +export type AdminUsersSheetsUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: UserSheetListRet; + }; +}; + +export type AdminUsersSheetsUsingPostResponses = { + /** + * _ + */ + 200: Response & { + data?: UserSheetCreateRet; + }; +}; + export type AdminUsersUsingGetParams = { /** 年龄范围 */ age?: string; @@ -1561,6 +1918,33 @@ export type AdminUsersUsingGetParams = { search?: string; }; +export type AdminUsersUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: UserListRet; + }; +}; + +export type AdminUtilsAreasUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: Area[]; + }; +}; + +export type AdminUtilsDataUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: UtilDataAdminRet; + }; +}; + export type AdminUtilsUploadsUsingPostBody = { /** 文件类型 */ type: 'excel'; @@ -1568,6 +1952,15 @@ export type AdminUtilsUploadsUsingPostBody = { file: string; }; +export type AdminUtilsUploadsUsingPostResponses = { + /** + * _ + */ + 200: Response & { + data?: UploadRet; + }; +}; + export type Area = { children?: Areas; id?: string; @@ -2033,16 +2426,43 @@ export type UserEvaluationsIdReportsUsingPostParams = { id: string; }; +export type UserEvaluationsIdReportsUsingPostResponses = { + /** + * _ + */ + 200: Response & { + data?: EvaluationReportCreateRet; + }; +}; + export type UserEvaluationsIdUsingGetParams = { /** 测评任务id */ id: string; }; +export type UserEvaluationsIdUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: EvaluationInfo; + }; +}; + export type UserEvaluationsReportsIdUsingGetParams = { /** 测评报告id */ id: string; }; +export type UserEvaluationsReportsIdUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: EvaluationReportData; + }; +}; + export type UserEvaluationsReportsUsingGetParams = { /** 页码 */ page?: number; @@ -2050,6 +2470,15 @@ export type UserEvaluationsReportsUsingGetParams = { page_size?: number; }; +export type UserEvaluationsReportsUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: EvaluationReportUserListRet; + }; +}; + export type UserInfo = { address?: string; age?: number; @@ -2109,6 +2538,40 @@ export type UserLoginRet = { new?: boolean; }; +export type UserLoginUsingPostResponses = { + /** + * _ + */ + 200: Response & { + data?: UserLoginRet; + }; +}; + +export type UserLoginVerifyUsingPostResponses = { + /** + * _ + */ + 200: Response & { + data?: UserVerifyRet; + }; +}; + +export type UserProfileUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: UserInfo; + }; +}; + +export type UserProfileUsingPutResponses = { + /** + * _ + */ + 200: Response; +}; + export type UserSheetCreateArg = { /** 文件 */ excel?: string; @@ -2178,6 +2641,15 @@ export type UserUpdateArg = { type?: string; }; +export type UserUtilsDataUsingGetResponses = { + /** + * _ + */ + 200: Response & { + data?: UtilDataUserRet; + }; +}; + export type UserVerifyArg = { /** 手机号 */ number?: string; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225 tags \344\270\272 undefined.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225 tags \344\270\272 undefined.snap" index 9cb4e75..8dcf53a 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225 tags \344\270\272 undefined.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225 tags \344\270\272 undefined.snap" @@ -59,6 +59,17 @@ export type PetFindByStatusUsingGetParams = { status?: 'available' | 'pending' | 'sold'; }; +export type PetFindByStatusUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid status value + */ + 400: unknown; +}; + export enum StatusEnum { 'available' = 'available', 'pending' = 'pending', diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225 tags \344\270\272[].snap" "b/test/__snapshots__/common/\346\265\213\350\257\225 tags \344\270\272[].snap" index 9cb4e75..8dcf53a 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225 tags \344\270\272[].snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225 tags \344\270\272[].snap" @@ -59,6 +59,17 @@ export type PetFindByStatusUsingGetParams = { status?: 'available' | 'pending' | 'sold'; }; +export type PetFindByStatusUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid status value + */ + 400: unknown; +}; + export enum StatusEnum { 'available' = 'available', 'pending' = 'pending', diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\345\244\204\347\220\206 allof \347\273\223\346\236\204, \347\224\237\346\210\220\345\244\215\346\235\202 type \347\277\273\350\257\221.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\345\244\204\347\220\206 allof \347\273\223\346\236\204, \347\224\237\346\210\220\345\244\215\346\235\202 type \347\277\273\350\257\221.snap" index 2001758..7ff2f55 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\345\244\204\347\220\206 allof \347\273\223\346\236\204, \347\224\237\346\210\220\345\244\215\346\235\202 type \347\277\273\350\257\221.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\345\244\204\347\220\206 allof \347\273\223\346\236\204, \347\224\237\346\210\220\345\244\215\346\235\202 type \347\277\273\350\257\221.snap" @@ -92,6 +92,13 @@ export type BatchUsingGetParams = { errorMessage?: unknown; }; +export type BatchUsingGetResponses = { + /** + * OK + */ + 200: BatchList; +}; + export type Response = { /** 业务约定的错误码 */ errorCode?: string; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\345\260\206\344\270\255\346\226\207 tag \345\220\215\347\247\260\347\277\273\350\257\221\346\210\220\350\213\261\346\226\207 tag \345\220\215\347\247\260.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\345\260\206\344\270\255\346\226\207 tag \345\220\215\347\247\260\347\277\273\350\257\221\346\210\220\350\213\261\346\226\207 tag \345\220\215\347\247\260.snap" index a7e27fe..11cf844 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\345\260\206\344\270\255\346\226\207 tag \345\220\215\347\247\260\347\277\273\350\257\221\346\210\220\350\213\261\346\226\207 tag \345\220\215\347\247\260.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\345\260\206\344\270\255\346\226\207 tag \345\220\215\347\247\260\347\277\273\350\257\221\346\210\220\350\213\261\346\226\207 tag \345\220\215\347\247\260.snap" @@ -268,11 +268,33 @@ export type PetFindByStatusUsingGetParams = { status?: 'available' | 'pending' | 'sold'; }; +export type PetFindByStatusUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid status value + */ + 400: unknown; +}; + export type PetFindByTagsUsingGetParams = { /** Tags to filter by */ tags?: string[]; }; +export type PetFindByTagsUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid tag value + */ + 400: unknown; +}; + export type PetPetIdUploadImageUsingPostBody = string; export type PetPetIdUploadImageUsingPostParams = { @@ -282,16 +304,45 @@ export type PetPetIdUploadImageUsingPostParams = { additionalMetadata?: string; }; +export type PetPetIdUploadImageUsingPostResponses = { + /** + * successful operation + */ + 200: ApiResponse; +}; + export type PetPetIdUsingDeleteParams = { /** Pet id to delete */ petId: number; }; +export type PetPetIdUsingDeleteResponses = { + /** + * Invalid pet value + */ + 400: unknown; +}; + export type PetPetIdUsingGetParams = { /** ID of pet to return */ petId: number; }; +export type PetPetIdUsingGetResponses = { + /** + * successful operation + */ + 200: Pet; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; +}; + export type PetPetIdUsingPostParams = { /** ID of pet that needs to be updated */ petId: number; @@ -301,6 +352,43 @@ export type PetPetIdUsingPostParams = { status?: string; }; +export type PetPetIdUsingPostResponses = { + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPostResponses = { + /** + * Successful operation + */ + 200: Pet; + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPutResponses = { + /** + * Successful operation + */ + 200: Pet; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; + /** + * Validation exception + */ + 405: unknown; +}; + export enum StatusEnum { 'placed' = 'placed', 'approved' = 'approved', @@ -317,16 +405,60 @@ export enum StatusEnum2 { export type IStatusEnum2 = keyof typeof StatusEnum2; +export type StoreInventoryUsingGetResponses = { + /** + * successful operation + */ + 200: Record; +}; + export type StoreOrderOrderIdUsingDeleteParams = { /** ID of the order that needs to be deleted */ orderId: number; }; +export type StoreOrderOrderIdUsingDeleteResponses = { + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Order not found + */ + 404: unknown; +}; + export type StoreOrderOrderIdUsingGetParams = { /** ID of order that needs to be fetched */ orderId: number; }; +export type StoreOrderOrderIdUsingGetResponses = { + /** + * successful operation + */ + 200: Order; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Order not found + */ + 404: unknown; +}; + +export type StoreOrderUsingPostResponses = { + /** + * successful operation + */ + 200: Order; + /** + * Invalid input + */ + 405: unknown; +}; + export type Tag = { id?: number; name?: string; @@ -346,6 +478,17 @@ export type User = { export type UserCreateWithListUsingPostBody = User[]; +export type UserCreateWithListUsingPostResponses = { + /** + * Successful operation + */ + 200: User; + /** + * successful operation + */ + default: unknown; +}; + export type UserLoginUsingGetParams = { /** The user name for login */ username?: string; @@ -353,20 +496,78 @@ export type UserLoginUsingGetParams = { password?: string; }; +export type UserLoginUsingGetResponses = { + /** + * successful operation + */ + 200: string; + /** + * Invalid username/password supplied + */ + 400: unknown; +}; + +export type UserLogoutUsingGetResponses = { + /** + * successful operation + */ + default: unknown; +}; + export type UserUsernameUsingDeleteParams = { /** The name that needs to be deleted */ username: string; }; +export type UserUsernameUsingDeleteResponses = { + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + export type UserUsernameUsingGetParams = { /** The name that needs to be fetched. Use user1 for testing. */ username: string; }; +export type UserUsernameUsingGetResponses = { + /** + * successful operation + */ + 200: User; + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + export type UserUsernameUsingPutParams = { /** name that needs to be updated */ username: string; }; + +export type UserUsernameUsingPutResponses = { + /** + * successful operation + */ + default: unknown; +}; + +export type UserUsingPostResponses = { + /** + * successful operation + */ + default: User; +}; /* eslint-disable */ // @ts-ignore import { request } from 'axios'; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\346\224\257\346\214\201 apifox x-apifox-enum.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\346\224\257\346\214\201 apifox x-apifox-enum.snap" index 556ac48..198f280 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\346\224\257\346\214\201 apifox x-apifox-enum.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\346\224\257\346\214\201 apifox x-apifox-enum.snap" @@ -83,6 +83,10 @@ export type DetailUsingGetParams = { inquiryOrderId: string; }; +export type DetailUsingGetResponses = { + 200: ResponseResultInquiryOrderDetailRes; +}; + export type ImVideoRecordDTO = { /** 主键 */ id?: string; @@ -273,6 +277,10 @@ export type OrderItem = { asc?: boolean; }; +export type PageUsingPostResponses = { + 200: ResponseResultIPageInquiryPageRes; +}; + export type ResponseResultInquiryOrderDetailRes = { code?: string; msg?: string; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\346\224\257\346\214\201 apifox x-run-in-apifox.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\346\224\257\346\214\201 apifox x-run-in-apifox.snap" index b55310f..daef039 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\346\224\257\346\214\201 apifox x-run-in-apifox.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\346\224\257\346\214\201 apifox x-run-in-apifox.snap" @@ -700,6 +700,34 @@ export type DisableGoodsReq = { export type FeignGoodsGetGoodsByIdsUsingPostBody = string[]; +export type FeignGoodsGetGoodsByIdsUsingPostResponses = { + /** + * 成功 + */ + 200: GoodsDTO[]; +}; + +export type FeignGoodsGetGoodsByNameUsingPostResponses = { + /** + * 成功 + */ + 200: GoodsDTO[]; +}; + +export type GoodsAddGoodsAttributeDictUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + +export type GoodsAddGoodsUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + export type GoodsAttributeDictAddReq = { /** 字典名称 */ name: string; @@ -727,11 +755,46 @@ export type GoodsAttributeDictPageRes = { type?: number; }; +export type GoodsAuditGoodsUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + +export type GoodsBatchAuditGoodsUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + +export type GoodsBatchDeleteGoodsUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + +export type GoodsBatchUpdateStatusUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + export type GoodsDeleteGoodsUsingGetParams = { goodsId: string; orgId: string; }; +export type GoodsDeleteGoodsUsingGetResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + export type GoodsDetailRes = { id?: string; /** 机构id */ @@ -996,31 +1059,101 @@ export type GoodsGetDiagnoseByDictNameUsingGetParams = { dictName: string; }; +export type GoodsGetDiagnoseByDictNameUsingGetResponses = { + /** + * 成功 + */ + 200: ResponseResultListDiagnoseDictValueRes; +}; + +export type GoodsGetGoodsAttributeDictUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultIPageGoodsAttributeDictPageRes; +}; + export type GoodsGetGoodsDetailUsingPostParams = { goodsId: string; orgId: string; }; +export type GoodsGetGoodsDetailUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultGoodsDetailRes; +}; + export type GoodsGetGoodsInfoUsingGetParams = { goodsId?: string; }; +export type GoodsGetGoodsInfoUsingGetResponses = { + /** + * 成功 + */ + 200: ResponseResultBaseGoodDTO; +}; + export type GoodsGetGoodsNumUsingGetParams = { orgId: string; }; +export type GoodsGetGoodsNumUsingGetResponses = { + /** + * 成功 + */ + 200: ResponseResultGoodsNumDTO; +}; + export type GoodsGetPharmacySuppliersUsingGetParams = { orgId: string; }; +export type GoodsGetPharmacySuppliersUsingGetResponses = { + /** + * 成功 + */ + 200: ResponseResultListsupplierRes; +}; + export type GoodsGetSectionDictUsingGetParams = { orgId: string; }; +export type GoodsGetSectionDictUsingGetResponses = { + /** + * 成功 + */ + 200: ResponseResultListSectionDictValueRes; +}; + export type GoodsGetSupplierCertificateUsingGetParams = { orgId: string; }; +export type GoodsGetSupplierCertificateUsingGetResponses = { + /** + * 成功 + */ + 200: ResponseResultSupplierCertificateRes; +}; + +export type GoodsGoodsAuditPageUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultIPageGoodsPageQueryDTO; +}; + +export type GoodsHospitalGoodsPageUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultIPageGoodsPageQueryDTO; +}; + export type GoodsNumDTO = { /** 审核通过数量 */ numberOfAuditPass?: number; @@ -1127,6 +1260,13 @@ export type GoodsPageQueryDTO = { autoDetectFailReason?: string; }; +export type GoodsPharmacyGoodsPageUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultIPageGoodsPageQueryDTO; +}; + export type GoodsQueryDTO = { /** 机构id */ orgId: string; @@ -1138,6 +1278,27 @@ export type GoodsQueryDTO = { hospitalOrgId?: string; }; +export type GoodsShareGoodsUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + +export type GoodsUpdateGoodsStatusUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + +export type GoodsUpdateGoodsUsingPostResponses = { + /** + * 成功 + */ + 200: ResponseResultBoolean; +}; + export type IPageGoodsAttributeDictPageRes = { records?: GoodsAttributeDictPageRes[]; total?: number; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\346\224\257\346\214\201 components \351\235\236 schemas \347\232\204\345\255\227\346\256\265.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\346\224\257\346\214\201 components \351\235\236 schemas \347\232\204\345\255\227\346\256\265.snap" index fa0785a..85294fa 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\346\224\257\346\214\201 components \351\235\236 schemas \347\232\204\345\255\227\346\256\265.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\346\224\257\346\214\201 components \351\235\236 schemas \347\232\204\345\255\227\346\256\265.snap" @@ -34,6 +34,10 @@ export type ActivityIdUsingGetParams = { id: number; }; +export type ActivityIdUsingGetResponses = { + 200: ActivityList; +}; + export type ActivityList = { id?: number; name?: string; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 JSON Schemas.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 JSON Schemas.snap" index 8df0a76..827e1b3 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 JSON Schemas.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 JSON Schemas.snap" @@ -4187,6 +4187,21 @@ export type AuthAuthorizeUsingGetParams = { state?: string; }; +export type AuthAuthorizeUsingGetResponses = { + /** + * 成功 + */ + 302: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type AuthExchangeUsingGetParams = { /** code */ code: string; @@ -4194,6 +4209,36 @@ export type AuthExchangeUsingGetParams = { redirect_uri: string; }; +export type AuthExchangeUsingGetResponses = { + /** + * 成功 + */ + 200: ExchangeTokenRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type AuthRefreshTokenUsingPostResponses = { + /** + * 成功 + */ + 200: ExchangeTokenRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type Bool = string; export type Chat = { @@ -4798,11 +4843,41 @@ export type V1ApiAppAppIdApiTokenUsingGetParams = { offset: number; }; +export type V1ApiAppAppIdApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: ApiTokenDataList; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdApiTokenUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdApiTokenUsingPostResponses = { + /** + * 成功 + */ + 200: CreateApiTokenRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingDeleteParams = { /** 应用id */ appID: string; @@ -4810,21 +4885,81 @@ export type V1ApiAppAppIdDatasetConfigsUsingDeleteParams = { appDatasetConfigID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingGetParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingGetResponses = { + /** + * 成功 + */ + 200: ListAppDatasetConfigResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetsListUsingGetParams = { /** 应用id */ appID: string; @@ -4834,6 +4969,21 @@ export type V1ApiAppAppIdDatasetsListUsingGetParams = { offset?: number; }; +export type V1ApiAppAppIdDatasetsListUsingGetResponses = { + /** + * OK + */ + 200: ListDatasetsResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetsUsingDeleteParams = { /** 应用id */ appID: string; @@ -4841,6 +4991,21 @@ export type V1ApiAppAppIdDatasetsUsingDeleteParams = { datasetID: string; }; +export type V1ApiAppAppIdDatasetsUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetsUsingPostBody = AppDatasets[]; export type V1ApiAppAppIdDatasetsUsingPostParams = { @@ -4848,11 +5013,41 @@ export type V1ApiAppAppIdDatasetsUsingPostParams = { appID: string; }; +export type V1ApiAppAppIdDatasetsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDetailsUsingGetParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppDetail; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdHourlyMessagesUsingGetParams = { /** 应用id */ appID: string; @@ -4862,6 +5057,21 @@ export type V1ApiAppAppIdHourlyMessagesUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdHourlyMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdHourlyTokenUsingGetParams = { /** 应用id */ appID: string; @@ -4871,6 +5081,21 @@ export type V1ApiAppAppIdHourlyTokenUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdHourlyTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdLogsConversationIdMessagesUsingGetParams = { /** 应用id */ appID: string; @@ -4878,6 +5103,21 @@ export type V1ApiAppAppIdLogsConversationIdMessagesUsingGetParams = { conversationID: string; }; +export type V1ApiAppAppIdLogsConversationIdMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: HistoryInfo[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdLogsUsingGetParams = { /** 应用id */ appID: string; @@ -4897,16 +5137,61 @@ export type V1ApiAppAppIdLogsUsingGetParams = { userID?: string; }; +export type V1ApiAppAppIdLogsUsingGetResponses = { + /** + * 成功 + */ + 200: ListConversationLogsResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberRoleUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdMemberRoleUsingPutResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberUsingDeleteParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdMemberUsingDeleteResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberUsingGetParams = { /** 应用id */ appID: string; @@ -4916,11 +5201,41 @@ export type V1ApiAppAppIdMemberUsingGetParams = { offset: number; }; +export type V1ApiAppAppIdMemberUsingGetResponses = { + /** + * 成功 + */ + 200: ListMemberRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdMemberUsingPostResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMessagesUsingGetParams = { /** 应用id */ appID: string; @@ -4930,41 +5245,161 @@ export type V1ApiAppAppIdMessagesUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdModelConfigsUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdModelConfigsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdModelConfigsUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdModelConfigsUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdModelPromptUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdModelPromptUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdOpenApiDeleteUsingDeleteParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdOpenApiDeleteUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdPluginUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdPluginUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdRecommendedContextUsingGetParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdRecommendedContextUsingGetResponses = { + /** + * 成功 + */ + 200: AppRecommendedContext[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdRecommendedContextUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdRecommendedContextUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdShareUsingPutParams = { /** 应用id */ appID: string; @@ -4972,6 +5407,21 @@ export type V1ApiAppAppIdShareUsingPutParams = { isH5?: boolean; }; +export type V1ApiAppAppIdShareUsingPutResponses = { + /** + * 成功 + */ + 200: CreateSharePathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdTokenUsingGetParams = { /** 应用id */ appID: string; @@ -4981,21 +5431,81 @@ export type V1ApiAppAppIdTokenUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdUpdateStatusUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdUpdateStatusUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdUpdateUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdUpdateUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppH5ShareApiTokenUsingGetParams = { /** 分享的随机path */ randomPath: string; }; +export type V1ApiAppH5ShareApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: GetApiTokenByRandomPathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppIdCostUsingPostParams = { /** 应用id */ appID: string; @@ -5015,26 +5525,206 @@ export type V1ApiAppIdCostUsingPostParams = { userID?: string; }; +export type V1ApiAppIdCostUsingPostResponses = { + /** + * 成功 + */ + 200: QueryTokenResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppImageUsingGetResponses = { + /** + * 成功 + */ + 200: GetImagePreSignedUrlResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppListPickUsingGetResponses = { + /** + * 成功 + */ + 200: App[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppListPrivateUsingGetParams = { /** 是否只查看会话过的应用 */ onlyConversations?: boolean; }; +export type V1ApiAppListPrivateUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppListPublicUsingGetParams = { /** 是否只查看会话过的应用 */ onlyConversations?: boolean; }; +export type V1ApiAppListPublicUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppListUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppShareApiTokenUsingGetParams = { /** 分享的随机path */ randomPath: string; }; +export type V1ApiAppShareApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: GetApiTokenByRandomPathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionAppListUsingGetParams = { /** IAM用户id */ iamID: string; }; +export type V1ApiAttentionAppListUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionConversationsCountUsingPostResponses = { + /** + * 成功 + */ + 200: AttentionDataCountResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionConversationsUsingPostResponses = { + /** + * 成功 + */ + 200: ListConversationResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionMessagesCountUsingPostResponses = { + /** + * 成功 + */ + 200: AttentionDataCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionMessagesHistoryUsingGetParams = { /** IAM ID */ iamID: string; @@ -5044,6 +5734,21 @@ export type V1ApiAttentionMessagesHistoryUsingGetParams = { conversationID: string; }; +export type V1ApiAttentionMessagesHistoryUsingGetResponses = { + /** + * 成功 + */ + 200: HistoryInfo[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionUserAllUsingGetParams = { /** 登陆用户IAMID */ iamID?: string; @@ -5061,6 +5766,36 @@ export type V1ApiAttentionUserAllUsingGetParams = { userName?: string; }; +export type V1ApiAttentionUserAllUsingGetResponses = { + /** + * 成功 + */ + 200: ListAllAttentionUser; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionUserCancelUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionUserListUsingPostParams = { /** IAM ID */ iamID: string; @@ -5070,6 +5805,96 @@ export type V1ApiAttentionUserListUsingPostParams = { offset?: number; }; +export type V1ApiAttentionUserListUsingPostResponses = { + /** + * 成功 + */ + 200: ListAttentionUserResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionUserUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesGptUsingPostResponses = { + /** + * OK + */ + 200: ResponseRecommendData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesQuestionRecommendUsingPostResponses = { + /** + * OK + */ + 200: RecommendQuestionAndContext; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesUsingPostResponses = { + /** + * OK + */ + 200: ResponseData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesWebUsingPostResponses = { + /** + * OK + */ + 200: ResponseData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsConversationIdHistoryUsingDeleteParams = { /** 会话id */ conversation_id: string; @@ -5077,21 +5902,81 @@ export type V1ApiConversationsConversationIdHistoryUsingDeleteParams = { message_id: string; }; +export type V1ApiConversationsConversationIdHistoryUsingDeleteResponses = { + /** + * OK + */ + 200: DeleteResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsConversationIdHistoryUsingGetParams = { /** 会话id */ conversation_id: string; }; +export type V1ApiConversationsConversationIdHistoryUsingGetResponses = { + /** + * OK + */ + 200: HistoryInfo[]; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsUsingDeleteParams = { /** 会话id */ conversation_id: string; }; +export type V1ApiConversationsUsingDeleteResponses = { + /** + * OK + */ + 200: DeleteResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsUsingGetParams = { /** 用户id,空值不返回 */ user_id?: string; }; +export type V1ApiConversationsUsingGetResponses = { + /** + * OK + */ + 200: ConversationMsg[]; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFeedbacksMessageIdUsingDeleteParams = { /** 消息id */ message_id: string; @@ -5099,11 +5984,41 @@ export type V1ApiFeedbacksMessageIdUsingDeleteParams = { conversation_id: string; }; +export type V1ApiFeedbacksMessageIdUsingDeleteResponses = { + /** + * OK + */ + 200: DeleteFeedbacksResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFeedbacksMessageIdUsingPostParams = { /** 消息id */ message_id: string; }; +export type V1ApiFeedbacksMessageIdUsingPostResponses = { + /** + * OK + */ + 200: CreateFeedbacksResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFeedbacksUsingGetParams = { conversation_ID?: string; message_ID?: string; @@ -5113,6 +6028,21 @@ export type V1ApiFeedbacksUsingGetParams = { pageSize?: number; }; +export type V1ApiFeedbacksUsingGetResponses = { + /** + * OK + */ + 200: ListFeedbacksResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFileUsingPostBody = { /** 文件 */ file: string; @@ -5125,11 +6055,41 @@ export type V1ApiFileUsingPostParams = { user_id?: string; }; +export type V1ApiFileUsingPostResponses = { + /** + * OK + */ + 200: FilestreamResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiIamAccountUsingGetParams = { /** openId */ openId: string; }; +export type V1ApiIamAccountUsingGetResponses = { + /** + * 成功 + */ + 200: WJLAccount; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiProviderListUsingGetParams = { /** size */ size?: number; @@ -5137,16 +6097,61 @@ export type V1ApiProviderListUsingGetParams = { offset?: number; }; +export type V1ApiProviderListUsingGetResponses = { + /** + * 成功 + */ + 200: ListProviderResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyStateUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V1ApiRobotWorkspaceIdAppkeyStateUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyUsingDeleteParams = { /** 空间ID */ workspaceID: string; }; +export type V1ApiRobotWorkspaceIdAppkeyUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -5155,21 +6160,107 @@ export type V1ApiRobotWorkspaceIdAppkeyUsingGetParams = { type: string; }; +export type V1ApiRobotWorkspaceIdAppkeyUsingGetResponses = { + /** + * 成功 + */ + 200: Data; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V1ApiRobotWorkspaceIdAppkeyUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiSpeechToTextUsingPostBody = { /** 文件 */ file: string; }; +export type V1ApiSpeechToTextUsingPostResponses = { + /** + * OK + */ + 200: SpeechToTextResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiTextToSpeechUsingPostResponses = { + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiUserInfoUsingGetParams = { /** 应用id */ appID?: string; }; +export type V1ApiUserInfoUsingGetResponses = { + /** + * 成功 + */ + 200: IAMUserInfo; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiUserRoleUsingPutResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiUserUsingGetParams = { offset?: number; /** 电话号码 */ @@ -5181,26 +6272,116 @@ export type V1ApiUserUsingGetParams = { userName?: string; }; +export type V1ApiUserUsingGetResponses = { + /** + * 成功 + */ + 200: ListUserWithAppRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppAppIdDetailsUsingGetParams = { /** 应用id */ appID: string; }; +export type V2ApiAppAppIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppDetail; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppAppIdUpdateUsingPostParams = { /** 应用id */ appID: string; }; +export type V2ApiAppAppIdUpdateUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppListUsingGetParams = { /** 是否只查看会话过的应用 */ onlyConversations?: boolean; }; +export type V2ApiAppListUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppShareApiTokenUsingGetParams = { /** 分享的随机path */ randomPath: string; }; +export type V2ApiAppShareApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: GetApiTokenByRandomPathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiAppUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiChatMessagesMessagesCountUsingGetParams = { /** 是否查询人均,默认false */ isPerPerson?: boolean; @@ -5210,6 +6391,51 @@ export type V2ApiChatMessagesMessagesCountUsingGetParams = { endTimestamp?: number; }; +export type V2ApiChatMessagesMessagesCountUsingGetResponses = { + /** + * OK + */ + 200: AppMessagesCount; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V2ApiChatMessagesUsingPostResponses = { + /** + * OK + */ + 200: ResponseData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V2ApiCopyAppsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiFileUsingPostBody = { /** 要上传的文件 */ files: unknown[]; @@ -5222,16 +6448,106 @@ export type V2ApiFileUsingPostParams = { user_id?: string; }; +export type V2ApiFileUsingPostResponses = { + /** + * 成功 + */ + 200: FilestreamResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiWorkspacesDefaultUsingGetResponses = { + /** + * 成功 + */ + 200: WorkspaceResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesDefaultUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesDefaultUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesRecommendedMessageIdDetailsUsingGetParams = { /** 消息id */ messageId: string; }; +export type V2ApiWorkspacesRecommendedMessageIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppRecommendedContextResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiWorkspacesUsingGetResponses = { + /** + * 成功 + */ + 200: WorkspaceListResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiWorkspacesUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsJoinUsingPostBody = AppDatasets[]; @@ -5242,6 +6558,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsJoinUsingPostParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsJoinUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsUsingDeleteParams = { /** 应用id */ appID: string; @@ -5251,6 +6582,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsUsingDeleteParams = { datasetID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdDetailsUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -5258,6 +6604,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdDetailsUsingGetParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppDetail; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyMessagesUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -5269,6 +6630,22 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyMessagesUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyMessagesUsingGetResponses = + { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; + }; + export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyTokenUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -5280,6 +6657,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyTokenUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdLogsUsingGetParams = { /** 应用id */ appID: string; @@ -5301,6 +6693,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdLogsUsingGetParams = { userID?: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdLogsUsingGetResponses = { + /** + * 成功 + */ + 200: ListConversationLogsResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdMessagesUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -5312,6 +6719,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdMessagesUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdModelConfigsUsingPutParams = { /** 应用id */ appID: string; @@ -5319,6 +6741,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdModelConfigsUsingPutParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdModelConfigsUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdPluginUsingGetParams = { /** 应用id */ appID: string; @@ -5326,6 +6763,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdPluginUsingGetParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdPluginUsingGetResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdTokenUsingGetParams = { /** 应用id */ appID: string; @@ -5335,6 +6787,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdTokenUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdUpdateStatusUsingPutParams = { /** 空间ID */ workspaceID: string; @@ -5342,6 +6809,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdUpdateStatusUsingPutParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdUpdateStatusUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdUsingPostParams = { /** 空间ID */ workspaceID: string; @@ -5349,6 +6831,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdUsingPostParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsAppIdBaseUsingPostParams = { /** 应用id */ appID: string; @@ -5356,6 +6853,21 @@ export type V2ApiWorkspacesWorkspaceIdAppsAppIdBaseUsingPostParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsAppIdBaseUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsAppIdGroupUsingPostParams = { /** 应用id */ appID: string; @@ -5363,6 +6875,21 @@ export type V2ApiWorkspacesWorkspaceIdAppsAppIdGroupUsingPostParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsAppIdGroupUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsAppIdUsingDeleteParams = { /** 应用id */ appID: string; @@ -5370,6 +6897,21 @@ export type V2ApiWorkspacesWorkspaceIdAppsAppIdUsingDeleteParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsAppIdUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -5379,31 +6921,121 @@ export type V2ApiWorkspacesWorkspaceIdAppsUsingGetParams = { appName?: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsUsingGetResponses = { + /** + * 成功 + */ + 200: ListAppResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdDatasetsUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdDatasetsUsingGetResponses = { + /** + * OK + */ + 200: ListAppDatasets; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdDatasetsUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdDatasetsUsingPostResponses = { + /** + * OK + */ + 200: unknown; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdGroupsUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsUsingGetResponses = { + /** + * 成功 + */ + 200: ListWorkspaceGroup; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdGroupsUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsUsingPostResponses = { + /** + * 成功 + */ + 200: ListWorkspaceGroup; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingDeleteParams = { /** 空间ID */ @@ -5412,6 +7044,22 @@ export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingDeleteParams = workspaceGroupID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingDeleteResponses = + { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; + }; + export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingPostParams = { /** 空间ID */ workspaceID: string; @@ -5419,21 +7067,82 @@ export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingPostParams = { workspaceGroupID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingPostResponses = + { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; + }; + export type V2ApiWorkspacesWorkspaceIdPermissionsUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdPermissionsUsingGetResponses = { + /** + * 成功 + */ + 200: WorkspacePermissions; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsersUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsersUsingGetResponses = { + /** + * 成功 + */ + 200: ListWorkspacePermissions; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsersUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsersUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUserUserIdUsingDeleteParams = { /** 空间ID */ workspaceID: string; @@ -5441,16 +7150,61 @@ export type V2ApiWorkspacesWorkspaceIdUserUserIdUsingDeleteParams = { userID: string; }; +export type V2ApiWorkspacesWorkspaceIdUserUserIdUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsingDeleteParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type WJLAccount = { code?: number; data?: { diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 isSupportParseEnumDesc \350\256\276\347\275\256\344\270\272true.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 isSupportParseEnumDesc \350\256\276\347\275\256\344\270\272true.snap" index d905e38..acc3d14 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 isSupportParseEnumDesc \350\256\276\347\275\256\344\270\272true.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 isSupportParseEnumDesc \350\256\276\347\275\256\344\270\272true.snap" @@ -58,3 +58,13 @@ export type CgiBinGettokenUsingGetResponse = { /** 凭证的有效时间(秒) */ expires_in: number; }; + +export type CgiBinGettokenUsingGetResponses = { + /** + * errcode: 错误码 + * errmsg: 错误日志 + * access_token: 凭证 + * expires_in: 凭证的有效时间 + */ + 200: CgiBinGettokenUsingGetResponse; +}; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 react-query \347\232\204 vue \346\250\241\345\274\217.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 react-query \347\232\204 vue \346\250\241\345\274\217.snap" index a9b90fe..3f38d95 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 react-query \347\232\204 vue \346\250\241\345\274\217.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 react-query \347\232\204 vue \346\250\241\345\274\217.snap" @@ -3622,6 +3622,21 @@ export type AuthAuthorizeUsingGetParams = { state?: string; }; +export type AuthAuthorizeUsingGetResponses = { + /** + * 成功 + */ + 302: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type AuthExchangeUsingGetParams = { /** code */ code: string; @@ -3629,6 +3644,36 @@ export type AuthExchangeUsingGetParams = { redirect_uri: string; }; +export type AuthExchangeUsingGetResponses = { + /** + * 成功 + */ + 200: ExchangeTokenRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type AuthRefreshTokenUsingPostResponses = { + /** + * 成功 + */ + 200: ExchangeTokenRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type Bool = string; export type Chat = { @@ -4233,11 +4278,41 @@ export type V1ApiAppAppIdApiTokenUsingGetParams = { offset: number; }; +export type V1ApiAppAppIdApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: ApiTokenDataList; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdApiTokenUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdApiTokenUsingPostResponses = { + /** + * 成功 + */ + 200: CreateApiTokenRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingDeleteParams = { /** 应用id */ appID: string; @@ -4245,21 +4320,81 @@ export type V1ApiAppAppIdDatasetConfigsUsingDeleteParams = { appDatasetConfigID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingGetParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingGetResponses = { + /** + * 成功 + */ + 200: ListAppDatasetConfigResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetsListUsingGetParams = { /** 应用id */ appID: string; @@ -4269,6 +4404,21 @@ export type V1ApiAppAppIdDatasetsListUsingGetParams = { offset?: number; }; +export type V1ApiAppAppIdDatasetsListUsingGetResponses = { + /** + * OK + */ + 200: ListDatasetsResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetsUsingDeleteParams = { /** 应用id */ appID: string; @@ -4276,6 +4426,21 @@ export type V1ApiAppAppIdDatasetsUsingDeleteParams = { datasetID: string; }; +export type V1ApiAppAppIdDatasetsUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetsUsingPostBody = AppDatasets[]; export type V1ApiAppAppIdDatasetsUsingPostParams = { @@ -4283,11 +4448,41 @@ export type V1ApiAppAppIdDatasetsUsingPostParams = { appID: string; }; +export type V1ApiAppAppIdDatasetsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDetailsUsingGetParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppDetail; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdHourlyMessagesUsingGetParams = { /** 应用id */ appID: string; @@ -4297,6 +4492,21 @@ export type V1ApiAppAppIdHourlyMessagesUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdHourlyMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdHourlyTokenUsingGetParams = { /** 应用id */ appID: string; @@ -4306,6 +4516,21 @@ export type V1ApiAppAppIdHourlyTokenUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdHourlyTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdLogsConversationIdMessagesUsingGetParams = { /** 应用id */ appID: string; @@ -4313,6 +4538,21 @@ export type V1ApiAppAppIdLogsConversationIdMessagesUsingGetParams = { conversationID: string; }; +export type V1ApiAppAppIdLogsConversationIdMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: HistoryInfo[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdLogsUsingGetParams = { /** 应用id */ appID: string; @@ -4332,16 +4572,61 @@ export type V1ApiAppAppIdLogsUsingGetParams = { userID?: string; }; +export type V1ApiAppAppIdLogsUsingGetResponses = { + /** + * 成功 + */ + 200: ListConversationLogsResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberRoleUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdMemberRoleUsingPutResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberUsingDeleteParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdMemberUsingDeleteResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberUsingGetParams = { /** 应用id */ appID: string; @@ -4351,11 +4636,41 @@ export type V1ApiAppAppIdMemberUsingGetParams = { offset: number; }; +export type V1ApiAppAppIdMemberUsingGetResponses = { + /** + * 成功 + */ + 200: ListMemberRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdMemberUsingPostResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMessagesUsingGetParams = { /** 应用id */ appID: string; @@ -4365,41 +4680,161 @@ export type V1ApiAppAppIdMessagesUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdModelConfigsUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdModelConfigsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdModelConfigsUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdModelConfigsUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdModelPromptUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdModelPromptUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdOpenApiDeleteUsingDeleteParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdOpenApiDeleteUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdPluginUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdPluginUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdRecommendedContextUsingGetParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdRecommendedContextUsingGetResponses = { + /** + * 成功 + */ + 200: AppRecommendedContext[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdRecommendedContextUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdRecommendedContextUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdShareUsingPutParams = { /** 应用id */ appID: string; @@ -4407,6 +4842,21 @@ export type V1ApiAppAppIdShareUsingPutParams = { isH5?: boolean; }; +export type V1ApiAppAppIdShareUsingPutResponses = { + /** + * 成功 + */ + 200: CreateSharePathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdTokenUsingGetParams = { /** 应用id */ appID: string; @@ -4416,21 +4866,81 @@ export type V1ApiAppAppIdTokenUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdUpdateStatusUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdUpdateStatusUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdUpdateUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdUpdateUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppH5ShareApiTokenUsingGetParams = { /** 分享的随机path */ randomPath: string; }; +export type V1ApiAppH5ShareApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: GetApiTokenByRandomPathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppIdCostUsingPostParams = { /** 应用id */ appID: string; @@ -4450,26 +4960,206 @@ export type V1ApiAppIdCostUsingPostParams = { userID?: string; }; +export type V1ApiAppIdCostUsingPostResponses = { + /** + * 成功 + */ + 200: QueryTokenResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppImageUsingGetResponses = { + /** + * 成功 + */ + 200: GetImagePreSignedUrlResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppListPickUsingGetResponses = { + /** + * 成功 + */ + 200: App[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppListPrivateUsingGetParams = { /** 是否只查看会话过的应用 */ onlyConversations?: boolean; }; +export type V1ApiAppListPrivateUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppListPublicUsingGetParams = { /** 是否只查看会话过的应用 */ onlyConversations?: boolean; }; +export type V1ApiAppListPublicUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppListUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppShareApiTokenUsingGetParams = { /** 分享的随机path */ randomPath: string; }; +export type V1ApiAppShareApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: GetApiTokenByRandomPathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionAppListUsingGetParams = { /** IAM用户id */ iamID: string; }; +export type V1ApiAttentionAppListUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionConversationsCountUsingPostResponses = { + /** + * 成功 + */ + 200: AttentionDataCountResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionConversationsUsingPostResponses = { + /** + * 成功 + */ + 200: ListConversationResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionMessagesCountUsingPostResponses = { + /** + * 成功 + */ + 200: AttentionDataCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionMessagesHistoryUsingGetParams = { /** IAM ID */ iamID: string; @@ -4479,6 +5169,21 @@ export type V1ApiAttentionMessagesHistoryUsingGetParams = { conversationID: string; }; +export type V1ApiAttentionMessagesHistoryUsingGetResponses = { + /** + * 成功 + */ + 200: HistoryInfo[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionUserAllUsingGetParams = { /** 登陆用户IAMID */ iamID?: string; @@ -4496,6 +5201,36 @@ export type V1ApiAttentionUserAllUsingGetParams = { userName?: string; }; +export type V1ApiAttentionUserAllUsingGetResponses = { + /** + * 成功 + */ + 200: ListAllAttentionUser; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionUserCancelUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionUserListUsingPostParams = { /** IAM ID */ iamID: string; @@ -4505,6 +5240,96 @@ export type V1ApiAttentionUserListUsingPostParams = { offset?: number; }; +export type V1ApiAttentionUserListUsingPostResponses = { + /** + * 成功 + */ + 200: ListAttentionUserResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionUserUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesGptUsingPostResponses = { + /** + * OK + */ + 200: ResponseRecommendData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesQuestionRecommendUsingPostResponses = { + /** + * OK + */ + 200: RecommendQuestionAndContext; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesUsingPostResponses = { + /** + * OK + */ + 200: ResponseData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesWebUsingPostResponses = { + /** + * OK + */ + 200: ResponseData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsConversationIdHistoryUsingDeleteParams = { /** 会话id */ conversation_id: string; @@ -4512,21 +5337,81 @@ export type V1ApiConversationsConversationIdHistoryUsingDeleteParams = { message_id: string; }; +export type V1ApiConversationsConversationIdHistoryUsingDeleteResponses = { + /** + * OK + */ + 200: DeleteResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsConversationIdHistoryUsingGetParams = { /** 会话id */ conversation_id: string; }; +export type V1ApiConversationsConversationIdHistoryUsingGetResponses = { + /** + * OK + */ + 200: HistoryInfo[]; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsUsingDeleteParams = { /** 会话id */ conversation_id: string; }; +export type V1ApiConversationsUsingDeleteResponses = { + /** + * OK + */ + 200: DeleteResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsUsingGetParams = { /** 用户id,空值不返回 */ user_id?: string; }; +export type V1ApiConversationsUsingGetResponses = { + /** + * OK + */ + 200: ConversationMsg[]; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFeedbacksMessageIdUsingDeleteParams = { /** 消息id */ message_id: string; @@ -4534,11 +5419,41 @@ export type V1ApiFeedbacksMessageIdUsingDeleteParams = { conversation_id: string; }; +export type V1ApiFeedbacksMessageIdUsingDeleteResponses = { + /** + * OK + */ + 200: DeleteFeedbacksResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFeedbacksMessageIdUsingPostParams = { /** 消息id */ message_id: string; }; +export type V1ApiFeedbacksMessageIdUsingPostResponses = { + /** + * OK + */ + 200: CreateFeedbacksResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFeedbacksUsingGetParams = { conversation_ID?: string; message_ID?: string; @@ -4548,6 +5463,21 @@ export type V1ApiFeedbacksUsingGetParams = { pageSize?: number; }; +export type V1ApiFeedbacksUsingGetResponses = { + /** + * OK + */ + 200: ListFeedbacksResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFileUsingPostBody = { /** 文件 */ file: string; @@ -4560,11 +5490,41 @@ export type V1ApiFileUsingPostParams = { user_id?: string; }; +export type V1ApiFileUsingPostResponses = { + /** + * OK + */ + 200: FilestreamResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiIamAccountUsingGetParams = { /** openId */ openId: string; }; +export type V1ApiIamAccountUsingGetResponses = { + /** + * 成功 + */ + 200: WJLAccount; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiProviderListUsingGetParams = { /** size */ size?: number; @@ -4572,16 +5532,61 @@ export type V1ApiProviderListUsingGetParams = { offset?: number; }; +export type V1ApiProviderListUsingGetResponses = { + /** + * 成功 + */ + 200: ListProviderResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyStateUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V1ApiRobotWorkspaceIdAppkeyStateUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyUsingDeleteParams = { /** 空间ID */ workspaceID: string; }; +export type V1ApiRobotWorkspaceIdAppkeyUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4590,21 +5595,107 @@ export type V1ApiRobotWorkspaceIdAppkeyUsingGetParams = { type: string; }; +export type V1ApiRobotWorkspaceIdAppkeyUsingGetResponses = { + /** + * 成功 + */ + 200: Data; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V1ApiRobotWorkspaceIdAppkeyUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiSpeechToTextUsingPostBody = { /** 文件 */ file: string; }; +export type V1ApiSpeechToTextUsingPostResponses = { + /** + * OK + */ + 200: SpeechToTextResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiTextToSpeechUsingPostResponses = { + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiUserInfoUsingGetParams = { /** 应用id */ appID?: string; }; +export type V1ApiUserInfoUsingGetResponses = { + /** + * 成功 + */ + 200: IAMUserInfo; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiUserRoleUsingPutResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiUserUsingGetParams = { offset?: number; /** 电话号码 */ @@ -4616,26 +5707,116 @@ export type V1ApiUserUsingGetParams = { userName?: string; }; +export type V1ApiUserUsingGetResponses = { + /** + * 成功 + */ + 200: ListUserWithAppRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppAppIdDetailsUsingGetParams = { /** 应用id */ appID: string; }; +export type V2ApiAppAppIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppDetail; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppAppIdUpdateUsingPostParams = { /** 应用id */ appID: string; }; +export type V2ApiAppAppIdUpdateUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppListUsingGetParams = { /** 是否只查看会话过的应用 */ onlyConversations?: boolean; }; +export type V2ApiAppListUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppShareApiTokenUsingGetParams = { /** 分享的随机path */ randomPath: string; }; +export type V2ApiAppShareApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: GetApiTokenByRandomPathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiAppUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiChatMessagesMessagesCountUsingGetParams = { /** 是否查询人均,默认false */ isPerPerson?: boolean; @@ -4645,6 +5826,51 @@ export type V2ApiChatMessagesMessagesCountUsingGetParams = { endTimestamp?: number; }; +export type V2ApiChatMessagesMessagesCountUsingGetResponses = { + /** + * OK + */ + 200: AppMessagesCount; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V2ApiChatMessagesUsingPostResponses = { + /** + * OK + */ + 200: ResponseData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V2ApiCopyAppsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiFileUsingPostBody = { /** 要上传的文件 */ files: unknown[]; @@ -4657,16 +5883,106 @@ export type V2ApiFileUsingPostParams = { user_id?: string; }; +export type V2ApiFileUsingPostResponses = { + /** + * 成功 + */ + 200: FilestreamResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiWorkspacesDefaultUsingGetResponses = { + /** + * 成功 + */ + 200: WorkspaceResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesDefaultUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesDefaultUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesRecommendedMessageIdDetailsUsingGetParams = { /** 消息id */ messageId: string; }; +export type V2ApiWorkspacesRecommendedMessageIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppRecommendedContextResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiWorkspacesUsingGetResponses = { + /** + * 成功 + */ + 200: WorkspaceListResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiWorkspacesUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsJoinUsingPostBody = AppDatasets[]; @@ -4677,6 +5993,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsJoinUsingPostParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsJoinUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsUsingDeleteParams = { /** 应用id */ appID: string; @@ -4686,6 +6017,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsUsingDeleteParams = { datasetID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdDetailsUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4693,6 +6039,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdDetailsUsingGetParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppDetail; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyMessagesUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4704,6 +6065,22 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyMessagesUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyMessagesUsingGetResponses = + { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; + }; + export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyTokenUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4715,6 +6092,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyTokenUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdLogsUsingGetParams = { /** 应用id */ appID: string; @@ -4736,6 +6128,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdLogsUsingGetParams = { userID?: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdLogsUsingGetResponses = { + /** + * 成功 + */ + 200: ListConversationLogsResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdMessagesUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4747,6 +6154,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdMessagesUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdModelConfigsUsingPutParams = { /** 应用id */ appID: string; @@ -4754,6 +6176,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdModelConfigsUsingPutParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdModelConfigsUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdPluginUsingGetParams = { /** 应用id */ appID: string; @@ -4761,6 +6198,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdPluginUsingGetParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdPluginUsingGetResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdTokenUsingGetParams = { /** 应用id */ appID: string; @@ -4770,6 +6222,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdTokenUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdUpdateStatusUsingPutParams = { /** 空间ID */ workspaceID: string; @@ -4777,6 +6244,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdUpdateStatusUsingPutParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdUpdateStatusUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdUsingPostParams = { /** 空间ID */ workspaceID: string; @@ -4784,6 +6266,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdUsingPostParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsAppIdBaseUsingPostParams = { /** 应用id */ appID: string; @@ -4791,6 +6288,21 @@ export type V2ApiWorkspacesWorkspaceIdAppsAppIdBaseUsingPostParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsAppIdBaseUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsAppIdGroupUsingPostParams = { /** 应用id */ appID: string; @@ -4798,6 +6310,21 @@ export type V2ApiWorkspacesWorkspaceIdAppsAppIdGroupUsingPostParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsAppIdGroupUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsAppIdUsingDeleteParams = { /** 应用id */ appID: string; @@ -4805,6 +6332,21 @@ export type V2ApiWorkspacesWorkspaceIdAppsAppIdUsingDeleteParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsAppIdUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4814,31 +6356,121 @@ export type V2ApiWorkspacesWorkspaceIdAppsUsingGetParams = { appName?: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsUsingGetResponses = { + /** + * 成功 + */ + 200: ListAppResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdDatasetsUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdDatasetsUsingGetResponses = { + /** + * OK + */ + 200: ListAppDatasets; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdDatasetsUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdDatasetsUsingPostResponses = { + /** + * OK + */ + 200: unknown; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdGroupsUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsUsingGetResponses = { + /** + * 成功 + */ + 200: ListWorkspaceGroup; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdGroupsUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsUsingPostResponses = { + /** + * 成功 + */ + 200: ListWorkspaceGroup; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingDeleteParams = { /** 空间ID */ @@ -4847,6 +6479,22 @@ export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingDeleteParams = workspaceGroupID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingDeleteResponses = + { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; + }; + export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingPostParams = { /** 空间ID */ workspaceID: string; @@ -4854,21 +6502,82 @@ export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingPostParams = { workspaceGroupID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingPostResponses = + { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; + }; + export type V2ApiWorkspacesWorkspaceIdPermissionsUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdPermissionsUsingGetResponses = { + /** + * 成功 + */ + 200: WorkspacePermissions; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsersUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsersUsingGetResponses = { + /** + * 成功 + */ + 200: ListWorkspacePermissions; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsersUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsersUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUserUserIdUsingDeleteParams = { /** 空间ID */ workspaceID: string; @@ -4876,16 +6585,61 @@ export type V2ApiWorkspacesWorkspaceIdUserUserIdUsingDeleteParams = { userID: string; }; +export type V2ApiWorkspacesWorkspaceIdUserUserIdUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsingDeleteParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type WJLAccount = { code?: number; data?: { diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 react-query.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 react-query.snap" index d74f08c..c679fba 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 react-query.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 react-query.snap" @@ -3622,6 +3622,21 @@ export type AuthAuthorizeUsingGetParams = { state?: string; }; +export type AuthAuthorizeUsingGetResponses = { + /** + * 成功 + */ + 302: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type AuthExchangeUsingGetParams = { /** code */ code: string; @@ -3629,6 +3644,36 @@ export type AuthExchangeUsingGetParams = { redirect_uri: string; }; +export type AuthExchangeUsingGetResponses = { + /** + * 成功 + */ + 200: ExchangeTokenRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type AuthRefreshTokenUsingPostResponses = { + /** + * 成功 + */ + 200: ExchangeTokenRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type Bool = string; export type Chat = { @@ -4233,11 +4278,41 @@ export type V1ApiAppAppIdApiTokenUsingGetParams = { offset: number; }; +export type V1ApiAppAppIdApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: ApiTokenDataList; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdApiTokenUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdApiTokenUsingPostResponses = { + /** + * 成功 + */ + 200: CreateApiTokenRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingDeleteParams = { /** 应用id */ appID: string; @@ -4245,21 +4320,81 @@ export type V1ApiAppAppIdDatasetConfigsUsingDeleteParams = { appDatasetConfigID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingGetParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingGetResponses = { + /** + * 成功 + */ + 200: ListAppDatasetConfigResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetsListUsingGetParams = { /** 应用id */ appID: string; @@ -4269,6 +4404,21 @@ export type V1ApiAppAppIdDatasetsListUsingGetParams = { offset?: number; }; +export type V1ApiAppAppIdDatasetsListUsingGetResponses = { + /** + * OK + */ + 200: ListDatasetsResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetsUsingDeleteParams = { /** 应用id */ appID: string; @@ -4276,6 +4426,21 @@ export type V1ApiAppAppIdDatasetsUsingDeleteParams = { datasetID: string; }; +export type V1ApiAppAppIdDatasetsUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetsUsingPostBody = AppDatasets[]; export type V1ApiAppAppIdDatasetsUsingPostParams = { @@ -4283,11 +4448,41 @@ export type V1ApiAppAppIdDatasetsUsingPostParams = { appID: string; }; +export type V1ApiAppAppIdDatasetsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDetailsUsingGetParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppDetail; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdHourlyMessagesUsingGetParams = { /** 应用id */ appID: string; @@ -4297,6 +4492,21 @@ export type V1ApiAppAppIdHourlyMessagesUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdHourlyMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdHourlyTokenUsingGetParams = { /** 应用id */ appID: string; @@ -4306,6 +4516,21 @@ export type V1ApiAppAppIdHourlyTokenUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdHourlyTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdLogsConversationIdMessagesUsingGetParams = { /** 应用id */ appID: string; @@ -4313,6 +4538,21 @@ export type V1ApiAppAppIdLogsConversationIdMessagesUsingGetParams = { conversationID: string; }; +export type V1ApiAppAppIdLogsConversationIdMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: HistoryInfo[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdLogsUsingGetParams = { /** 应用id */ appID: string; @@ -4332,16 +4572,61 @@ export type V1ApiAppAppIdLogsUsingGetParams = { userID?: string; }; +export type V1ApiAppAppIdLogsUsingGetResponses = { + /** + * 成功 + */ + 200: ListConversationLogsResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberRoleUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdMemberRoleUsingPutResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberUsingDeleteParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdMemberUsingDeleteResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberUsingGetParams = { /** 应用id */ appID: string; @@ -4351,11 +4636,41 @@ export type V1ApiAppAppIdMemberUsingGetParams = { offset: number; }; +export type V1ApiAppAppIdMemberUsingGetResponses = { + /** + * 成功 + */ + 200: ListMemberRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdMemberUsingPostResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMessagesUsingGetParams = { /** 应用id */ appID: string; @@ -4365,41 +4680,161 @@ export type V1ApiAppAppIdMessagesUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdModelConfigsUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdModelConfigsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdModelConfigsUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdModelConfigsUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdModelPromptUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdModelPromptUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdOpenApiDeleteUsingDeleteParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdOpenApiDeleteUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdPluginUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdPluginUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdRecommendedContextUsingGetParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdRecommendedContextUsingGetResponses = { + /** + * 成功 + */ + 200: AppRecommendedContext[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdRecommendedContextUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdRecommendedContextUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdShareUsingPutParams = { /** 应用id */ appID: string; @@ -4407,6 +4842,21 @@ export type V1ApiAppAppIdShareUsingPutParams = { isH5?: boolean; }; +export type V1ApiAppAppIdShareUsingPutResponses = { + /** + * 成功 + */ + 200: CreateSharePathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdTokenUsingGetParams = { /** 应用id */ appID: string; @@ -4416,21 +4866,81 @@ export type V1ApiAppAppIdTokenUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdUpdateStatusUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdUpdateStatusUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdUpdateUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdUpdateUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppH5ShareApiTokenUsingGetParams = { /** 分享的随机path */ randomPath: string; }; +export type V1ApiAppH5ShareApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: GetApiTokenByRandomPathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppIdCostUsingPostParams = { /** 应用id */ appID: string; @@ -4450,26 +4960,206 @@ export type V1ApiAppIdCostUsingPostParams = { userID?: string; }; +export type V1ApiAppIdCostUsingPostResponses = { + /** + * 成功 + */ + 200: QueryTokenResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppImageUsingGetResponses = { + /** + * 成功 + */ + 200: GetImagePreSignedUrlResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppListPickUsingGetResponses = { + /** + * 成功 + */ + 200: App[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppListPrivateUsingGetParams = { /** 是否只查看会话过的应用 */ onlyConversations?: boolean; }; +export type V1ApiAppListPrivateUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppListPublicUsingGetParams = { /** 是否只查看会话过的应用 */ onlyConversations?: boolean; }; +export type V1ApiAppListPublicUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppListUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppShareApiTokenUsingGetParams = { /** 分享的随机path */ randomPath: string; }; +export type V1ApiAppShareApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: GetApiTokenByRandomPathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionAppListUsingGetParams = { /** IAM用户id */ iamID: string; }; +export type V1ApiAttentionAppListUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionConversationsCountUsingPostResponses = { + /** + * 成功 + */ + 200: AttentionDataCountResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionConversationsUsingPostResponses = { + /** + * 成功 + */ + 200: ListConversationResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionMessagesCountUsingPostResponses = { + /** + * 成功 + */ + 200: AttentionDataCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionMessagesHistoryUsingGetParams = { /** IAM ID */ iamID: string; @@ -4479,6 +5169,21 @@ export type V1ApiAttentionMessagesHistoryUsingGetParams = { conversationID: string; }; +export type V1ApiAttentionMessagesHistoryUsingGetResponses = { + /** + * 成功 + */ + 200: HistoryInfo[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionUserAllUsingGetParams = { /** 登陆用户IAMID */ iamID?: string; @@ -4496,6 +5201,36 @@ export type V1ApiAttentionUserAllUsingGetParams = { userName?: string; }; +export type V1ApiAttentionUserAllUsingGetResponses = { + /** + * 成功 + */ + 200: ListAllAttentionUser; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionUserCancelUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionUserListUsingPostParams = { /** IAM ID */ iamID: string; @@ -4505,6 +5240,96 @@ export type V1ApiAttentionUserListUsingPostParams = { offset?: number; }; +export type V1ApiAttentionUserListUsingPostResponses = { + /** + * 成功 + */ + 200: ListAttentionUserResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionUserUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesGptUsingPostResponses = { + /** + * OK + */ + 200: ResponseRecommendData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesQuestionRecommendUsingPostResponses = { + /** + * OK + */ + 200: RecommendQuestionAndContext; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesUsingPostResponses = { + /** + * OK + */ + 200: ResponseData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesWebUsingPostResponses = { + /** + * OK + */ + 200: ResponseData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsConversationIdHistoryUsingDeleteParams = { /** 会话id */ conversation_id: string; @@ -4512,21 +5337,81 @@ export type V1ApiConversationsConversationIdHistoryUsingDeleteParams = { message_id: string; }; +export type V1ApiConversationsConversationIdHistoryUsingDeleteResponses = { + /** + * OK + */ + 200: DeleteResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsConversationIdHistoryUsingGetParams = { /** 会话id */ conversation_id: string; }; +export type V1ApiConversationsConversationIdHistoryUsingGetResponses = { + /** + * OK + */ + 200: HistoryInfo[]; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsUsingDeleteParams = { /** 会话id */ conversation_id: string; }; +export type V1ApiConversationsUsingDeleteResponses = { + /** + * OK + */ + 200: DeleteResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsUsingGetParams = { /** 用户id,空值不返回 */ user_id?: string; }; +export type V1ApiConversationsUsingGetResponses = { + /** + * OK + */ + 200: ConversationMsg[]; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFeedbacksMessageIdUsingDeleteParams = { /** 消息id */ message_id: string; @@ -4534,11 +5419,41 @@ export type V1ApiFeedbacksMessageIdUsingDeleteParams = { conversation_id: string; }; +export type V1ApiFeedbacksMessageIdUsingDeleteResponses = { + /** + * OK + */ + 200: DeleteFeedbacksResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFeedbacksMessageIdUsingPostParams = { /** 消息id */ message_id: string; }; +export type V1ApiFeedbacksMessageIdUsingPostResponses = { + /** + * OK + */ + 200: CreateFeedbacksResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFeedbacksUsingGetParams = { conversation_ID?: string; message_ID?: string; @@ -4548,6 +5463,21 @@ export type V1ApiFeedbacksUsingGetParams = { pageSize?: number; }; +export type V1ApiFeedbacksUsingGetResponses = { + /** + * OK + */ + 200: ListFeedbacksResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFileUsingPostBody = { /** 文件 */ file: string; @@ -4560,11 +5490,41 @@ export type V1ApiFileUsingPostParams = { user_id?: string; }; +export type V1ApiFileUsingPostResponses = { + /** + * OK + */ + 200: FilestreamResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiIamAccountUsingGetParams = { /** openId */ openId: string; }; +export type V1ApiIamAccountUsingGetResponses = { + /** + * 成功 + */ + 200: WJLAccount; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiProviderListUsingGetParams = { /** size */ size?: number; @@ -4572,16 +5532,61 @@ export type V1ApiProviderListUsingGetParams = { offset?: number; }; +export type V1ApiProviderListUsingGetResponses = { + /** + * 成功 + */ + 200: ListProviderResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyStateUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V1ApiRobotWorkspaceIdAppkeyStateUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyUsingDeleteParams = { /** 空间ID */ workspaceID: string; }; +export type V1ApiRobotWorkspaceIdAppkeyUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4590,21 +5595,107 @@ export type V1ApiRobotWorkspaceIdAppkeyUsingGetParams = { type: string; }; +export type V1ApiRobotWorkspaceIdAppkeyUsingGetResponses = { + /** + * 成功 + */ + 200: Data; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V1ApiRobotWorkspaceIdAppkeyUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiSpeechToTextUsingPostBody = { /** 文件 */ file: string; }; +export type V1ApiSpeechToTextUsingPostResponses = { + /** + * OK + */ + 200: SpeechToTextResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiTextToSpeechUsingPostResponses = { + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiUserInfoUsingGetParams = { /** 应用id */ appID?: string; }; +export type V1ApiUserInfoUsingGetResponses = { + /** + * 成功 + */ + 200: IAMUserInfo; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiUserRoleUsingPutResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiUserUsingGetParams = { offset?: number; /** 电话号码 */ @@ -4616,26 +5707,116 @@ export type V1ApiUserUsingGetParams = { userName?: string; }; +export type V1ApiUserUsingGetResponses = { + /** + * 成功 + */ + 200: ListUserWithAppRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppAppIdDetailsUsingGetParams = { /** 应用id */ appID: string; }; +export type V2ApiAppAppIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppDetail; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppAppIdUpdateUsingPostParams = { /** 应用id */ appID: string; }; +export type V2ApiAppAppIdUpdateUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppListUsingGetParams = { /** 是否只查看会话过的应用 */ onlyConversations?: boolean; }; +export type V2ApiAppListUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppShareApiTokenUsingGetParams = { /** 分享的随机path */ randomPath: string; }; +export type V2ApiAppShareApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: GetApiTokenByRandomPathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiAppUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiChatMessagesMessagesCountUsingGetParams = { /** 是否查询人均,默认false */ isPerPerson?: boolean; @@ -4645,6 +5826,51 @@ export type V2ApiChatMessagesMessagesCountUsingGetParams = { endTimestamp?: number; }; +export type V2ApiChatMessagesMessagesCountUsingGetResponses = { + /** + * OK + */ + 200: AppMessagesCount; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V2ApiChatMessagesUsingPostResponses = { + /** + * OK + */ + 200: ResponseData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V2ApiCopyAppsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiFileUsingPostBody = { /** 要上传的文件 */ files: unknown[]; @@ -4657,16 +5883,106 @@ export type V2ApiFileUsingPostParams = { user_id?: string; }; +export type V2ApiFileUsingPostResponses = { + /** + * 成功 + */ + 200: FilestreamResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiWorkspacesDefaultUsingGetResponses = { + /** + * 成功 + */ + 200: WorkspaceResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesDefaultUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesDefaultUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesRecommendedMessageIdDetailsUsingGetParams = { /** 消息id */ messageId: string; }; +export type V2ApiWorkspacesRecommendedMessageIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppRecommendedContextResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiWorkspacesUsingGetResponses = { + /** + * 成功 + */ + 200: WorkspaceListResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiWorkspacesUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsJoinUsingPostBody = AppDatasets[]; @@ -4677,6 +5993,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsJoinUsingPostParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsJoinUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsUsingDeleteParams = { /** 应用id */ appID: string; @@ -4686,6 +6017,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsUsingDeleteParams = { datasetID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdDetailsUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4693,6 +6039,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdDetailsUsingGetParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppDetail; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyMessagesUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4704,6 +6065,22 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyMessagesUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyMessagesUsingGetResponses = + { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; + }; + export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyTokenUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4715,6 +6092,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyTokenUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdLogsUsingGetParams = { /** 应用id */ appID: string; @@ -4736,6 +6128,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdLogsUsingGetParams = { userID?: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdLogsUsingGetResponses = { + /** + * 成功 + */ + 200: ListConversationLogsResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdMessagesUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4747,6 +6154,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdMessagesUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdModelConfigsUsingPutParams = { /** 应用id */ appID: string; @@ -4754,6 +6176,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdModelConfigsUsingPutParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdModelConfigsUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdPluginUsingGetParams = { /** 应用id */ appID: string; @@ -4761,6 +6198,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdPluginUsingGetParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdPluginUsingGetResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdTokenUsingGetParams = { /** 应用id */ appID: string; @@ -4770,6 +6222,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdTokenUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdUpdateStatusUsingPutParams = { /** 空间ID */ workspaceID: string; @@ -4777,6 +6244,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdUpdateStatusUsingPutParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdUpdateStatusUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdUsingPostParams = { /** 空间ID */ workspaceID: string; @@ -4784,6 +6266,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdUsingPostParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsAppIdBaseUsingPostParams = { /** 应用id */ appID: string; @@ -4791,6 +6288,21 @@ export type V2ApiWorkspacesWorkspaceIdAppsAppIdBaseUsingPostParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsAppIdBaseUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsAppIdGroupUsingPostParams = { /** 应用id */ appID: string; @@ -4798,6 +6310,21 @@ export type V2ApiWorkspacesWorkspaceIdAppsAppIdGroupUsingPostParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsAppIdGroupUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsAppIdUsingDeleteParams = { /** 应用id */ appID: string; @@ -4805,6 +6332,21 @@ export type V2ApiWorkspacesWorkspaceIdAppsAppIdUsingDeleteParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsAppIdUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4814,31 +6356,121 @@ export type V2ApiWorkspacesWorkspaceIdAppsUsingGetParams = { appName?: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsUsingGetResponses = { + /** + * 成功 + */ + 200: ListAppResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdDatasetsUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdDatasetsUsingGetResponses = { + /** + * OK + */ + 200: ListAppDatasets; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdDatasetsUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdDatasetsUsingPostResponses = { + /** + * OK + */ + 200: unknown; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdGroupsUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsUsingGetResponses = { + /** + * 成功 + */ + 200: ListWorkspaceGroup; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdGroupsUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsUsingPostResponses = { + /** + * 成功 + */ + 200: ListWorkspaceGroup; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingDeleteParams = { /** 空间ID */ @@ -4847,6 +6479,22 @@ export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingDeleteParams = workspaceGroupID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingDeleteResponses = + { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; + }; + export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingPostParams = { /** 空间ID */ workspaceID: string; @@ -4854,21 +6502,82 @@ export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingPostParams = { workspaceGroupID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingPostResponses = + { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; + }; + export type V2ApiWorkspacesWorkspaceIdPermissionsUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdPermissionsUsingGetResponses = { + /** + * 成功 + */ + 200: WorkspacePermissions; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsersUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsersUsingGetResponses = { + /** + * 成功 + */ + 200: ListWorkspacePermissions; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsersUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsersUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUserUserIdUsingDeleteParams = { /** 空间ID */ workspaceID: string; @@ -4876,16 +6585,61 @@ export type V2ApiWorkspacesWorkspaceIdUserUserIdUsingDeleteParams = { userID: string; }; +export type V2ApiWorkspacesWorkspaceIdUserUserIdUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsingDeleteParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type WJLAccount = { code?: number; data?: { diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 response type comments.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 response type comments.snap" index d905e38..acc3d14 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 response type comments.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220 response type comments.snap" @@ -58,3 +58,13 @@ export type CgiBinGettokenUsingGetResponse = { /** 凭证的有效时间(秒) */ expires_in: number; }; + +export type CgiBinGettokenUsingGetResponses = { + /** + * errcode: 错误码 + * errmsg: 错误日志 + * access_token: 凭证 + * expires_in: 凭证的有效时间 + */ + 200: CgiBinGettokenUsingGetResponse; +}; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220\345\214\277\345\220\215response =_ \345\205\267\345\220\215response.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220\345\214\277\345\220\215response =_ \345\205\267\345\220\215response.snap" index d905e38..acc3d14 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220\345\214\277\345\220\215response =_ \345\205\267\345\220\215response.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\347\224\237\346\210\220\345\214\277\345\220\215response =_ \345\205\267\345\220\215response.snap" @@ -58,3 +58,13 @@ export type CgiBinGettokenUsingGetResponse = { /** 凭证的有效时间(秒) */ expires_in: number; }; + +export type CgiBinGettokenUsingGetResponses = { + /** + * errcode: 错误码 + * errmsg: 错误日志 + * access_token: 凭证 + * expires_in: 凭证的有效时间 + */ + 200: CgiBinGettokenUsingGetResponse; +}; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\347\251\272\347\232\204 schema \345\274\225\347\224\250.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\347\251\272\347\232\204 schema \345\274\225\347\224\250.snap" index 6d5a9af..a6b5eae 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\347\251\272\347\232\204 schema \345\274\225\347\224\250.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\347\251\272\347\232\204 schema \345\274\225\347\224\250.snap" @@ -74,6 +74,30 @@ export enum BusinessTypeEnum { export type IBusinessTypeEnum = keyof typeof BusinessTypeEnum; +export type ElectricityClassificationTimeSharingElectricityUsingPostResponses = + { + /** + * OK + */ + 200: StatisticsQueryVo; + /** + * Created + */ + 201: unknown; + /** + * Unauthorized + */ + 401: unknown; + /** + * Forbidden + */ + 403: unknown; + /** + * Not Found + */ + 404: unknown; + }; + export type FenxiangshebeiziranshijiantongjichaxunDto = { /** 业务类型 */ businessType?: 'CLASSIFICATION' | 'DEVICE' | 'INSTRUMENT'; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\347\255\233\351\200\211\345\207\272\346\214\207\345\256\232 tags \345\257\271\345\272\224\347\232\204api.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\347\255\233\351\200\211\345\207\272\346\214\207\345\256\232 tags \345\257\271\345\272\224\347\232\204api.snap" index 39d5d7e..3f561fe 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\347\255\233\351\200\211\345\207\272\346\214\207\345\256\232 tags \345\257\271\345\272\224\347\232\204api.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\347\255\233\351\200\211\345\207\272\346\214\207\345\256\232 tags \345\257\271\345\272\224\347\232\204api.snap" @@ -201,11 +201,33 @@ export type PetFindByStatusUsingGetParams = { status?: 'available' | 'pending' | 'sold'; }; +export type PetFindByStatusUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid status value + */ + 400: unknown; +}; + export type PetFindByTagsUsingGetParams = { /** Tags to filter by */ tags?: string[]; }; +export type PetFindByTagsUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid tag value + */ + 400: unknown; +}; + export type PetPetIdUploadImageUsingPostBody = string; export type PetPetIdUploadImageUsingPostParams = { @@ -215,16 +237,45 @@ export type PetPetIdUploadImageUsingPostParams = { additionalMetadata?: string; }; +export type PetPetIdUploadImageUsingPostResponses = { + /** + * successful operation + */ + 200: ApiResponse; +}; + export type PetPetIdUsingDeleteParams = { /** Pet id to delete */ petId: number; }; +export type PetPetIdUsingDeleteResponses = { + /** + * Invalid pet value + */ + 400: unknown; +}; + export type PetPetIdUsingGetParams = { /** ID of pet to return */ petId: number; }; +export type PetPetIdUsingGetResponses = { + /** + * successful operation + */ + 200: Pet; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; +}; + export type PetPetIdUsingPostParams = { /** ID of pet that needs to be updated */ petId: number; @@ -234,6 +285,43 @@ export type PetPetIdUsingPostParams = { status?: string; }; +export type PetPetIdUsingPostResponses = { + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPostResponses = { + /** + * Successful operation + */ + 200: Pet; + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPutResponses = { + /** + * Successful operation + */ + 200: Pet; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; + /** + * Validation exception + */ + 405: unknown; +}; + export enum StatusEnum { 'available' = 'available', 'pending' = 'pending', diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\350\247\243\346\236\220 swagger.yaml_openapi.yaml.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\350\247\243\346\236\220 swagger.yaml_openapi.yaml.snap" index 34bd53c..982b0f9 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\350\247\243\346\236\220 swagger.yaml_openapi.yaml.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\350\247\243\346\236\220 swagger.yaml_openapi.yaml.snap" @@ -313,11 +313,33 @@ export type PetFindByStatusUsingGetParams = { status: ('available' | 'pending' | 'sold')[]; }; +export type PetFindByStatusUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid status value + */ + 400: unknown; +}; + export type PetFindByTagsUsingGetParams = { /** Tags to filter by */ tags: string[]; }; +export type PetFindByTagsUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid tag value + */ + 400: unknown; +}; + export type PetPetIdUploadImageUsingPostBody = { /** Additional data to pass to server */ additionalMetadata?: string; @@ -330,16 +352,49 @@ export type PetPetIdUploadImageUsingPostParams = { petId: number; }; +export type PetPetIdUploadImageUsingPostResponses = { + /** + * successful operation + */ + 200: ApiResponse; +}; + export type PetPetIdUsingDeleteParams = { /** Pet id to delete */ petId: number; }; +export type PetPetIdUsingDeleteResponses = { + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; +}; + export type PetPetIdUsingGetParams = { /** ID of pet to return */ petId: number; }; +export type PetPetIdUsingGetResponses = { + /** + * successful operation + */ + 200: Pet; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; +}; + export type PetPetIdUsingPostBody = { /** Updated name of the pet */ name?: string; @@ -352,6 +407,35 @@ export type PetPetIdUsingPostParams = { petId: number; }; +export type PetPetIdUsingPostResponses = { + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPostResponses = { + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPutResponses = { + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; + /** + * Validation exception + */ + 405: unknown; +}; + export enum StatusEnum { 'available' = 'available', 'pending' = 'pending', @@ -368,16 +452,60 @@ export enum StatusEnum2 { export type IStatusEnum2 = keyof typeof StatusEnum2; +export type StoreInventoryUsingGetResponses = { + /** + * successful operation + */ + 200: Record; +}; + export type StoreOrderOrderIdUsingDeleteParams = { /** ID of the order that needs to be deleted */ orderId: number; }; +export type StoreOrderOrderIdUsingDeleteResponses = { + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Order not found + */ + 404: unknown; +}; + export type StoreOrderOrderIdUsingGetParams = { /** ID of pet that needs to be fetched */ orderId: number; }; +export type StoreOrderOrderIdUsingGetResponses = { + /** + * successful operation + */ + 200: Order; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Order not found + */ + 404: unknown; +}; + +export type StoreOrderUsingPostResponses = { + /** + * successful operation + */ + 200: Order; + /** + * Invalid Order + */ + 400: unknown; +}; + export type Tag = { id?: number; name?: string; @@ -397,8 +525,22 @@ export type User = { export type UserCreateWithArrayUsingPostBody = User[]; +export type UserCreateWithArrayUsingPostResponses = { + /** + * successful operation + */ + default: unknown; +}; + export type UserCreateWithListUsingPostBody = User[]; +export type UserCreateWithListUsingPostResponses = { + /** + * successful operation + */ + default: unknown; +}; + export type UserLoginUsingGetParams = { /** The user name for login */ username: string; @@ -406,20 +548,82 @@ export type UserLoginUsingGetParams = { password: string; }; +export type UserLoginUsingGetResponses = { + /** + * successful operation + */ + 200: string; + /** + * Invalid username/password supplied + */ + 400: unknown; +}; + +export type UserLogoutUsingGetResponses = { + /** + * successful operation + */ + default: unknown; +}; + export type UserUsernameUsingDeleteParams = { /** The name that needs to be deleted */ username: string; }; +export type UserUsernameUsingDeleteResponses = { + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + export type UserUsernameUsingGetParams = { /** The name that needs to be fetched. Use user1 for testing. */ username: string; }; +export type UserUsernameUsingGetResponses = { + /** + * successful operation + */ + 200: User; + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + export type UserUsernameUsingPutParams = { /** name that need to be updated */ username: string; }; + +export type UserUsernameUsingPutResponses = { + /** + * Invalid user supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + +export type UserUsingPostResponses = { + /** + * successful operation + */ + default: unknown; +}; /* eslint-disable */ // @ts-ignore import { request } from 'axios'; diff --git "a/test/__snapshots__/common/\346\265\213\350\257\225\350\256\276\347\275\256 path \345\211\215\347\274\200.snap" "b/test/__snapshots__/common/\346\265\213\350\257\225\350\256\276\347\275\256 path \345\211\215\347\274\200.snap" index 16349b4..883d32a 100644 --- "a/test/__snapshots__/common/\346\265\213\350\257\225\350\256\276\347\275\256 path \345\211\215\347\274\200.snap" +++ "b/test/__snapshots__/common/\346\265\213\350\257\225\350\256\276\347\275\256 path \345\211\215\347\274\200.snap" @@ -313,11 +313,33 @@ export type PetFindByStatusUsingGetParams = { status: ('available' | 'pending' | 'sold')[]; }; +export type PetFindByStatusUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid status value + */ + 400: unknown; +}; + export type PetFindByTagsUsingGetParams = { /** Tags to filter by */ tags: string[]; }; +export type PetFindByTagsUsingGetResponses = { + /** + * successful operation + */ + 200: Pet[]; + /** + * Invalid tag value + */ + 400: unknown; +}; + export type PetPetIdUploadImageUsingPostBody = { /** Additional data to pass to server */ additionalMetadata?: string; @@ -330,16 +352,49 @@ export type PetPetIdUploadImageUsingPostParams = { petId: number; }; +export type PetPetIdUploadImageUsingPostResponses = { + /** + * successful operation + */ + 200: ApiResponse; +}; + export type PetPetIdUsingDeleteParams = { /** Pet id to delete */ petId: number; }; +export type PetPetIdUsingDeleteResponses = { + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; +}; + export type PetPetIdUsingGetParams = { /** ID of pet to return */ petId: number; }; +export type PetPetIdUsingGetResponses = { + /** + * successful operation + */ + 200: Pet; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; +}; + export type PetPetIdUsingPostBody = { /** Updated name of the pet */ name?: string; @@ -352,6 +407,35 @@ export type PetPetIdUsingPostParams = { petId: number; }; +export type PetPetIdUsingPostResponses = { + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPostResponses = { + /** + * Invalid input + */ + 405: unknown; +}; + +export type PetUsingPutResponses = { + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Pet not found + */ + 404: unknown; + /** + * Validation exception + */ + 405: unknown; +}; + export enum StatusEnum { 'available' = 'available', 'pending' = 'pending', @@ -368,16 +452,60 @@ export enum StatusEnum2 { export type IStatusEnum2 = keyof typeof StatusEnum2; +export type StoreInventoryUsingGetResponses = { + /** + * successful operation + */ + 200: Record; +}; + export type StoreOrderOrderIdUsingDeleteParams = { /** ID of the order that needs to be deleted */ orderId: number; }; +export type StoreOrderOrderIdUsingDeleteResponses = { + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Order not found + */ + 404: unknown; +}; + export type StoreOrderOrderIdUsingGetParams = { /** ID of pet that needs to be fetched */ orderId: number; }; +export type StoreOrderOrderIdUsingGetResponses = { + /** + * successful operation + */ + 200: Order; + /** + * Invalid ID supplied + */ + 400: unknown; + /** + * Order not found + */ + 404: unknown; +}; + +export type StoreOrderUsingPostResponses = { + /** + * successful operation + */ + 200: Order; + /** + * Invalid Order + */ + 400: unknown; +}; + export type Tag = { id?: number; name?: string; @@ -397,8 +525,22 @@ export type User = { export type UserCreateWithArrayUsingPostBody = User[]; +export type UserCreateWithArrayUsingPostResponses = { + /** + * successful operation + */ + default: unknown; +}; + export type UserCreateWithListUsingPostBody = User[]; +export type UserCreateWithListUsingPostResponses = { + /** + * successful operation + */ + default: unknown; +}; + export type UserLoginUsingGetParams = { /** The user name for login */ username: string; @@ -406,20 +548,82 @@ export type UserLoginUsingGetParams = { password: string; }; +export type UserLoginUsingGetResponses = { + /** + * successful operation + */ + 200: string; + /** + * Invalid username/password supplied + */ + 400: unknown; +}; + +export type UserLogoutUsingGetResponses = { + /** + * successful operation + */ + default: unknown; +}; + export type UserUsernameUsingDeleteParams = { /** The name that needs to be deleted */ username: string; }; +export type UserUsernameUsingDeleteResponses = { + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + export type UserUsernameUsingGetParams = { /** The name that needs to be fetched. Use user1 for testing. */ username: string; }; +export type UserUsernameUsingGetResponses = { + /** + * successful operation + */ + 200: User; + /** + * Invalid username supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + export type UserUsernameUsingPutParams = { /** name that need to be updated */ username: string; }; + +export type UserUsernameUsingPutResponses = { + /** + * Invalid user supplied + */ + 400: unknown; + /** + * User not found + */ + 404: unknown; +}; + +export type UserUsingPostResponses = { + /** + * successful operation + */ + default: unknown; +}; /* eslint-disable */ // @ts-ignore import { request } from 'axios'; diff --git "a/test/__snapshots__/common/\347\224\237\346\210\220\346\236\232\344\270\276\347\277\273\350\257\221, \347\224\237\346\210\220 type \347\277\273\350\257\221.snap" "b/test/__snapshots__/common/\347\224\237\346\210\220\346\236\232\344\270\276\347\277\273\350\257\221, \347\224\237\346\210\220 type \347\277\273\350\257\221.snap" index 7cef54a..1619fda 100644 --- "a/test/__snapshots__/common/\347\224\237\346\210\220\346\236\232\344\270\276\347\277\273\350\257\221, \347\224\237\346\210\220 type \347\277\273\350\257\221.snap" +++ "b/test/__snapshots__/common/\347\224\237\346\210\220\346\236\232\344\270\276\347\277\273\350\257\221, \347\224\237\346\210\220 type \347\277\273\350\257\221.snap" @@ -3857,6 +3857,21 @@ export type AuthAuthorizeUsingGetParams = { state?: string; }; +export type AuthAuthorizeUsingGetResponses = { + /** + * 成功 + */ + 302: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type AuthExchangeUsingGetParams = { /** code */ code: string; @@ -3864,6 +3879,36 @@ export type AuthExchangeUsingGetParams = { redirect_uri: string; }; +export type AuthExchangeUsingGetResponses = { + /** + * 成功 + */ + 200: ExchangeTokenRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type AuthRefreshTokenUsingPostResponses = { + /** + * 成功 + */ + 200: ExchangeTokenRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type Bool = string; export type Chat = { @@ -4468,11 +4513,41 @@ export type V1ApiAppAppIdApiTokenUsingGetParams = { offset: number; }; +export type V1ApiAppAppIdApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: ApiTokenDataList; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdApiTokenUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdApiTokenUsingPostResponses = { + /** + * 成功 + */ + 200: CreateApiTokenRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingDeleteParams = { /** 应用id */ appID: string; @@ -4480,21 +4555,81 @@ export type V1ApiAppAppIdDatasetConfigsUsingDeleteParams = { appDatasetConfigID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingGetParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingGetResponses = { + /** + * 成功 + */ + 200: ListAppDatasetConfigResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetConfigsUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDatasetConfigsUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetsListUsingGetParams = { /** 应用id */ appID: string; @@ -4504,6 +4639,21 @@ export type V1ApiAppAppIdDatasetsListUsingGetParams = { offset?: number; }; +export type V1ApiAppAppIdDatasetsListUsingGetResponses = { + /** + * OK + */ + 200: ListDatasetsResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetsUsingDeleteParams = { /** 应用id */ appID: string; @@ -4511,6 +4661,21 @@ export type V1ApiAppAppIdDatasetsUsingDeleteParams = { datasetID: string; }; +export type V1ApiAppAppIdDatasetsUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDatasetsUsingPostBody = AppDatasets[]; export type V1ApiAppAppIdDatasetsUsingPostParams = { @@ -4518,11 +4683,41 @@ export type V1ApiAppAppIdDatasetsUsingPostParams = { appID: string; }; +export type V1ApiAppAppIdDatasetsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdDetailsUsingGetParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppDetail; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdHourlyMessagesUsingGetParams = { /** 应用id */ appID: string; @@ -4532,6 +4727,21 @@ export type V1ApiAppAppIdHourlyMessagesUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdHourlyMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdHourlyTokenUsingGetParams = { /** 应用id */ appID: string; @@ -4541,6 +4751,21 @@ export type V1ApiAppAppIdHourlyTokenUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdHourlyTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdLogsConversationIdMessagesUsingGetParams = { /** 应用id */ appID: string; @@ -4548,6 +4773,21 @@ export type V1ApiAppAppIdLogsConversationIdMessagesUsingGetParams = { conversationID: string; }; +export type V1ApiAppAppIdLogsConversationIdMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: HistoryInfo[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdLogsUsingGetParams = { /** 应用id */ appID: string; @@ -4567,16 +4807,61 @@ export type V1ApiAppAppIdLogsUsingGetParams = { userID?: string; }; +export type V1ApiAppAppIdLogsUsingGetResponses = { + /** + * 成功 + */ + 200: ListConversationLogsResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberRoleUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdMemberRoleUsingPutResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberUsingDeleteParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdMemberUsingDeleteResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberUsingGetParams = { /** 应用id */ appID: string; @@ -4586,11 +4871,41 @@ export type V1ApiAppAppIdMemberUsingGetParams = { offset: number; }; +export type V1ApiAppAppIdMemberUsingGetResponses = { + /** + * 成功 + */ + 200: ListMemberRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMemberUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdMemberUsingPostResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdMessagesUsingGetParams = { /** 应用id */ appID: string; @@ -4600,41 +4915,161 @@ export type V1ApiAppAppIdMessagesUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdModelConfigsUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdModelConfigsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdModelConfigsUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdModelConfigsUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdModelPromptUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdModelPromptUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdOpenApiDeleteUsingDeleteParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdOpenApiDeleteUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdPluginUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdPluginUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdRecommendedContextUsingGetParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdRecommendedContextUsingGetResponses = { + /** + * 成功 + */ + 200: AppRecommendedContext[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdRecommendedContextUsingPostParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdRecommendedContextUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdShareUsingPutParams = { /** 应用id */ appID: string; @@ -4642,6 +5077,21 @@ export type V1ApiAppAppIdShareUsingPutParams = { isH5?: boolean; }; +export type V1ApiAppAppIdShareUsingPutResponses = { + /** + * 成功 + */ + 200: CreateSharePathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdTokenUsingGetParams = { /** 应用id */ appID: string; @@ -4651,21 +5101,81 @@ export type V1ApiAppAppIdTokenUsingGetParams = { endTimestamp?: number; }; +export type V1ApiAppAppIdTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdUpdateStatusUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdUpdateStatusUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppAppIdUpdateUsingPutParams = { /** 应用id */ appID: string; }; +export type V1ApiAppAppIdUpdateUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppH5ShareApiTokenUsingGetParams = { /** 分享的随机path */ randomPath: string; }; +export type V1ApiAppH5ShareApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: GetApiTokenByRandomPathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppIdCostUsingPostParams = { /** 应用id */ appID: string; @@ -4685,26 +5195,206 @@ export type V1ApiAppIdCostUsingPostParams = { userID?: string; }; +export type V1ApiAppIdCostUsingPostResponses = { + /** + * 成功 + */ + 200: QueryTokenResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppImageUsingGetResponses = { + /** + * 成功 + */ + 200: GetImagePreSignedUrlResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppListPickUsingGetResponses = { + /** + * 成功 + */ + 200: App[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppListPrivateUsingGetParams = { /** 是否只查看会话过的应用 */ onlyConversations?: boolean; }; +export type V1ApiAppListPrivateUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppListPublicUsingGetParams = { /** 是否只查看会话过的应用 */ onlyConversations?: boolean; }; +export type V1ApiAppListPublicUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppListUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAppShareApiTokenUsingGetParams = { /** 分享的随机path */ randomPath: string; }; +export type V1ApiAppShareApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: GetApiTokenByRandomPathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAppUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionAppListUsingGetParams = { /** IAM用户id */ iamID: string; }; +export type V1ApiAttentionAppListUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionConversationsCountUsingPostResponses = { + /** + * 成功 + */ + 200: AttentionDataCountResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionConversationsUsingPostResponses = { + /** + * 成功 + */ + 200: ListConversationResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionMessagesCountUsingPostResponses = { + /** + * 成功 + */ + 200: AttentionDataCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionMessagesHistoryUsingGetParams = { /** IAM ID */ iamID: string; @@ -4714,6 +5404,21 @@ export type V1ApiAttentionMessagesHistoryUsingGetParams = { conversationID: string; }; +export type V1ApiAttentionMessagesHistoryUsingGetResponses = { + /** + * 成功 + */ + 200: HistoryInfo[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionUserAllUsingGetParams = { /** 登陆用户IAMID */ iamID?: string; @@ -4731,6 +5436,36 @@ export type V1ApiAttentionUserAllUsingGetParams = { userName?: string; }; +export type V1ApiAttentionUserAllUsingGetResponses = { + /** + * 成功 + */ + 200: ListAllAttentionUser; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionUserCancelUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiAttentionUserListUsingPostParams = { /** IAM ID */ iamID: string; @@ -4740,6 +5475,96 @@ export type V1ApiAttentionUserListUsingPostParams = { offset?: number; }; +export type V1ApiAttentionUserListUsingPostResponses = { + /** + * 成功 + */ + 200: ListAttentionUserResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiAttentionUserUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesGptUsingPostResponses = { + /** + * OK + */ + 200: ResponseRecommendData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesQuestionRecommendUsingPostResponses = { + /** + * OK + */ + 200: RecommendQuestionAndContext; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesUsingPostResponses = { + /** + * OK + */ + 200: ResponseData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiChatMessagesWebUsingPostResponses = { + /** + * OK + */ + 200: ResponseData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsConversationIdHistoryUsingDeleteParams = { /** 会话id */ conversation_id: string; @@ -4747,21 +5572,81 @@ export type V1ApiConversationsConversationIdHistoryUsingDeleteParams = { message_id: string; }; +export type V1ApiConversationsConversationIdHistoryUsingDeleteResponses = { + /** + * OK + */ + 200: DeleteResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsConversationIdHistoryUsingGetParams = { /** 会话id */ conversation_id: string; }; +export type V1ApiConversationsConversationIdHistoryUsingGetResponses = { + /** + * OK + */ + 200: HistoryInfo[]; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsUsingDeleteParams = { /** 会话id */ conversation_id: string; }; +export type V1ApiConversationsUsingDeleteResponses = { + /** + * OK + */ + 200: DeleteResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiConversationsUsingGetParams = { /** 用户id,空值不返回 */ user_id?: string; }; +export type V1ApiConversationsUsingGetResponses = { + /** + * OK + */ + 200: ConversationMsg[]; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFeedbacksMessageIdUsingDeleteParams = { /** 消息id */ message_id: string; @@ -4769,11 +5654,41 @@ export type V1ApiFeedbacksMessageIdUsingDeleteParams = { conversation_id: string; }; +export type V1ApiFeedbacksMessageIdUsingDeleteResponses = { + /** + * OK + */ + 200: DeleteFeedbacksResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFeedbacksMessageIdUsingPostParams = { /** 消息id */ message_id: string; }; +export type V1ApiFeedbacksMessageIdUsingPostResponses = { + /** + * OK + */ + 200: CreateFeedbacksResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFeedbacksUsingGetParams = { conversation_ID?: string; message_ID?: string; @@ -4783,6 +5698,21 @@ export type V1ApiFeedbacksUsingGetParams = { pageSize?: number; }; +export type V1ApiFeedbacksUsingGetResponses = { + /** + * OK + */ + 200: ListFeedbacksResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiFileUsingPostBody = { /** 文件 */ file: string; @@ -4795,11 +5725,41 @@ export type V1ApiFileUsingPostParams = { user_id?: string; }; +export type V1ApiFileUsingPostResponses = { + /** + * OK + */ + 200: FilestreamResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiIamAccountUsingGetParams = { /** openId */ openId: string; }; +export type V1ApiIamAccountUsingGetResponses = { + /** + * 成功 + */ + 200: WJLAccount; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiProviderListUsingGetParams = { /** size */ size?: number; @@ -4807,16 +5767,61 @@ export type V1ApiProviderListUsingGetParams = { offset?: number; }; +export type V1ApiProviderListUsingGetResponses = { + /** + * 成功 + */ + 200: ListProviderResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyStateUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V1ApiRobotWorkspaceIdAppkeyStateUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyUsingDeleteParams = { /** 空间ID */ workspaceID: string; }; +export type V1ApiRobotWorkspaceIdAppkeyUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4825,21 +5830,107 @@ export type V1ApiRobotWorkspaceIdAppkeyUsingGetParams = { type: string; }; +export type V1ApiRobotWorkspaceIdAppkeyUsingGetResponses = { + /** + * 成功 + */ + 200: Data; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiRobotWorkspaceIdAppkeyUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V1ApiRobotWorkspaceIdAppkeyUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiSpeechToTextUsingPostBody = { /** 文件 */ file: string; }; +export type V1ApiSpeechToTextUsingPostResponses = { + /** + * OK + */ + 200: SpeechToTextResp; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V1ApiTextToSpeechUsingPostResponses = { + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V1ApiUserInfoUsingGetParams = { /** 应用id */ appID?: string; }; +export type V1ApiUserInfoUsingGetResponses = { + /** + * 成功 + */ + 200: IAMUserInfo; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V1ApiUserRoleUsingPutResponses = { + /** + * 成功 + */ + 200: EmptyObject; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V1ApiUserUsingGetParams = { offset?: number; /** 电话号码 */ @@ -4851,26 +5942,116 @@ export type V1ApiUserUsingGetParams = { userName?: string; }; +export type V1ApiUserUsingGetResponses = { + /** + * 成功 + */ + 200: ListUserWithAppRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppAppIdDetailsUsingGetParams = { /** 应用id */ appID: string; }; +export type V2ApiAppAppIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppDetail; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppAppIdUpdateUsingPostParams = { /** 应用id */ appID: string; }; +export type V2ApiAppAppIdUpdateUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppListUsingGetParams = { /** 是否只查看会话过的应用 */ onlyConversations?: boolean; }; +export type V2ApiAppListUsingGetResponses = { + /** + * 成功 + */ + 200: AppResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiAppShareApiTokenUsingGetParams = { /** 分享的随机path */ randomPath: string; }; +export type V2ApiAppShareApiTokenUsingGetResponses = { + /** + * 成功 + */ + 200: GetApiTokenByRandomPathRESP; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiAppUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiChatMessagesMessagesCountUsingGetParams = { /** 是否查询人均,默认false */ isPerPerson?: boolean; @@ -4880,6 +6061,51 @@ export type V2ApiChatMessagesMessagesCountUsingGetParams = { endTimestamp?: number; }; +export type V2ApiChatMessagesMessagesCountUsingGetResponses = { + /** + * OK + */ + 200: AppMessagesCount; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V2ApiChatMessagesUsingPostResponses = { + /** + * OK + */ + 200: ResponseData; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + +export type V2ApiCopyAppsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiFileUsingPostBody = { /** 要上传的文件 */ files: unknown[]; @@ -4892,16 +6118,106 @@ export type V2ApiFileUsingPostParams = { user_id?: string; }; +export type V2ApiFileUsingPostResponses = { + /** + * 成功 + */ + 200: FilestreamResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiWorkspacesDefaultUsingGetResponses = { + /** + * 成功 + */ + 200: WorkspaceResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesDefaultUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesDefaultUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesRecommendedMessageIdDetailsUsingGetParams = { /** 消息id */ messageId: string; }; +export type V2ApiWorkspacesRecommendedMessageIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppRecommendedContextResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiWorkspacesUsingGetResponses = { + /** + * 成功 + */ + 200: WorkspaceListResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + +export type V2ApiWorkspacesUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsJoinUsingPostBody = AppDatasets[]; @@ -4912,6 +6228,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsJoinUsingPostParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsJoinUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsUsingDeleteParams = { /** 应用id */ appID: string; @@ -4921,6 +6252,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsUsingDeleteParams = { datasetID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdDatasetsUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdDetailsUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4928,6 +6274,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdDetailsUsingGetParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdDetailsUsingGetResponses = { + /** + * 成功 + */ + 200: AppDetail; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyMessagesUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4939,6 +6300,22 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyMessagesUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyMessagesUsingGetResponses = + { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; + }; + export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyTokenUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4950,6 +6327,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyTokenUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdHourlyTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdLogsUsingGetParams = { /** 应用id */ appID: string; @@ -4971,6 +6363,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdLogsUsingGetParams = { userID?: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdLogsUsingGetResponses = { + /** + * 成功 + */ + 200: ListConversationLogsResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdMessagesUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -4982,6 +6389,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdMessagesUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdMessagesUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesCountResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdModelConfigsUsingPutParams = { /** 应用id */ appID: string; @@ -4989,6 +6411,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdModelConfigsUsingPutParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdModelConfigsUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdPluginUsingGetParams = { /** 应用id */ appID: string; @@ -4996,6 +6433,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdPluginUsingGetParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdPluginUsingGetResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdTokenUsingGetParams = { /** 应用id */ appID: string; @@ -5005,6 +6457,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdTokenUsingGetParams = { endTimestamp?: number; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdTokenUsingGetResponses = { + /** + * 成功 + */ + 200: MessagesTokenResp[]; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdUpdateStatusUsingPutParams = { /** 空间ID */ workspaceID: string; @@ -5012,6 +6479,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdUpdateStatusUsingPutParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdUpdateStatusUsingPutResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppAppIdUsingPostParams = { /** 空间ID */ workspaceID: string; @@ -5019,6 +6501,21 @@ export type V2ApiWorkspacesWorkspaceIdAppAppIdUsingPostParams = { appID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppAppIdUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsAppIdBaseUsingPostParams = { /** 应用id */ appID: string; @@ -5026,6 +6523,21 @@ export type V2ApiWorkspacesWorkspaceIdAppsAppIdBaseUsingPostParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsAppIdBaseUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsAppIdGroupUsingPostParams = { /** 应用id */ appID: string; @@ -5033,6 +6545,21 @@ export type V2ApiWorkspacesWorkspaceIdAppsAppIdGroupUsingPostParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsAppIdGroupUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsAppIdUsingDeleteParams = { /** 应用id */ appID: string; @@ -5040,6 +6567,21 @@ export type V2ApiWorkspacesWorkspaceIdAppsAppIdUsingDeleteParams = { workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsAppIdUsingDeleteResponses = { + /** + * 成功 + */ + 200: DeleteResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsUsingGetParams = { /** 空间ID */ workspaceID: string; @@ -5049,31 +6591,121 @@ export type V2ApiWorkspacesWorkspaceIdAppsUsingGetParams = { appName?: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsUsingGetResponses = { + /** + * 成功 + */ + 200: ListAppResp; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdAppsUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdAppsUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdDatasetsUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdDatasetsUsingGetResponses = { + /** + * OK + */ + 200: ListAppDatasets; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdDatasetsUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdDatasetsUsingPostResponses = { + /** + * OK + */ + 200: unknown; + /** + * Bad Request + */ + 400: ErrorResp; + /** + * Internal Server Error + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdGroupsUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsUsingGetResponses = { + /** + * 成功 + */ + 200: ListWorkspaceGroup; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdGroupsUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsUsingPostResponses = { + /** + * 成功 + */ + 200: ListWorkspaceGroup; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingDeleteParams = { /** 空间ID */ @@ -5082,6 +6714,22 @@ export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingDeleteParams = workspaceGroupID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingDeleteResponses = + { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; + }; + export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingPostParams = { /** 空间ID */ workspaceID: string; @@ -5089,21 +6737,82 @@ export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingPostParams = { workspaceGroupID: string; }; +export type V2ApiWorkspacesWorkspaceIdGroupsWorkspaceGroupIdUsingPostResponses = + { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; + }; + export type V2ApiWorkspacesWorkspaceIdPermissionsUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdPermissionsUsingGetResponses = { + /** + * 成功 + */ + 200: WorkspacePermissions; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsersUsingGetParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsersUsingGetResponses = { + /** + * 成功 + */ + 200: ListWorkspacePermissions; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsersUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsersUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUserUserIdUsingDeleteParams = { /** 空间ID */ workspaceID: string; @@ -5111,16 +6820,61 @@ export type V2ApiWorkspacesWorkspaceIdUserUserIdUsingDeleteParams = { userID: string; }; +export type V2ApiWorkspacesWorkspaceIdUserUserIdUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsingDeleteParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsingDeleteResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type V2ApiWorkspacesWorkspaceIdUsingPostParams = { /** 空间ID */ workspaceID: string; }; +export type V2ApiWorkspacesWorkspaceIdUsingPostResponses = { + /** + * 成功 + */ + 200: unknown; + /** + * 失败 + */ + 400: ErrorResp; + /** + * 失败 + */ + 500: ErrorResp; +}; + export type WJLAccount = { code?: number; data?: { diff --git "a/test/__snapshots__/common/\350\207\252\345\256\232\344\271\211 hook.snap" "b/test/__snapshots__/common/\350\207\252\345\256\232\344\271\211 hook.snap" index 3ec1549..1328dbd 100644 --- "a/test/__snapshots__/common/\350\207\252\345\256\232\344\271\211 hook.snap" +++ "b/test/__snapshots__/common/\350\207\252\345\256\232\344\271\211 hook.snap" @@ -140,6 +140,33 @@ export type AccountLoginReq = { username: string; }; +export type AccountLoginResponses = { + /** + * OK + */ + 200: ApiResTokenDTO; + /** + * Created + */ + 201: unknown; + /** + * Unauthorized + */ + 401: unknown; + /** + * Forbidden + */ + 403: unknown; + /** + * Not Found + */ + 404: unknown; + /** + * true代表登录成功,否则为提示信息 + */ + default: string; +}; + export type AccountRegisterReq = { /** 验证码 */ captcha?: string; @@ -153,6 +180,29 @@ export type AccountRegisterReq = { username: string; }; +export type AccountRegisterResponses = { + /** + * OK + */ + 200: ApiResTokenDTO; + /** + * Created + */ + 201: unknown; + /** + * Unauthorized + */ + 401: unknown; + /** + * Forbidden + */ + 403: unknown; + /** + * Not Found + */ + 404: unknown; +}; + export type ApiReq = object; export type ApiResboolean = { @@ -253,6 +303,29 @@ export type CheckImgCaptchaReq = { type: 'EDIT_PASSWORD' | 'FORGOT_PASSWORD' | 'LOGIN' | 'REGISTER'; }; +export type CheckImgCaptchaResponses = { + /** + * OK + */ + 200: ApiResCaptchaTokenVO; + /** + * Created + */ + 201: unknown; + /** + * Unauthorized + */ + 401: unknown; + /** + * Forbidden + */ + 403: unknown; + /** + * Not Found + */ + 404: unknown; +}; + export type EditPasswordReq = { /** 新密码 */ newPassword: string; @@ -264,6 +337,75 @@ export type EditPasswordReq = { uid: number; }; +export type EditPasswordResponses = { + /** + * OK + */ + 200: ApiResTokenDTO; + /** + * Created + */ + 201: unknown; + /** + * Unauthorized + */ + 401: unknown; + /** + * Forbidden + */ + 403: unknown; + /** + * Not Found + */ + 404: unknown; +}; + +export type ForgotPasswordResponses = { + /** + * OK + */ + 200: ApiResTokenDTO; + /** + * Created + */ + 201: unknown; + /** + * Unauthorized + */ + 401: unknown; + /** + * Forbidden + */ + 403: unknown; + /** + * Not Found + */ + 404: unknown; +}; + +export type GetImageCaptchaResponses = { + /** + * OK + */ + 200: ApiResImgCaptchaDTO; + /** + * Created + */ + 201: unknown; + /** + * Unauthorized + */ + 401: unknown; + /** + * Forbidden + */ + 403: unknown; + /** + * Not Found + */ + 404: unknown; +}; + export type ImgCaptchaDTO = { /** 验证码ID */ id: number; @@ -281,6 +423,29 @@ export type LoginIsNeedCaptchaReq = { username: string; }; +export type LoginIsNeedCaptchaResponses = { + /** + * OK + */ + 200: ApiResboolean; + /** + * Created + */ + 201: unknown; + /** + * Unauthorized + */ + 401: unknown; + /** + * Forbidden + */ + 403: unknown; + /** + * Not Found + */ + 404: unknown; +}; + export enum ShowTypeEnum { 'DIALOG' = 'DIALOG', 'ERROR' = 'ERROR', diff --git a/test/__snapshots__/exclude/should empty excludeTags and excludePaths return all.snap b/test/__snapshots__/exclude/should empty excludeTags and excludePaths return all.snap index c42915f..794fa6b 100644 --- a/test/__snapshots__/exclude/should empty excludeTags and excludePaths return all.snap +++ b/test/__snapshots__/exclude/should empty excludeTags and excludePaths return all.snap @@ -169,7 +169,188 @@ export async function sysCc1Cc1Ccc1Cccc1UsingGet({ } /* eslint-disable */ // @ts-ignore -export {}; + +export type SysAa1Aa1Aaa1Aaaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1Aaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1Bbb1Bbbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1Bbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1Cccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1Xxxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1Yyyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1Yyyy1Yyyyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1Zzzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1Zzzz1Zzzzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; /* eslint-disable */ // @ts-ignore import request from '../request'; diff --git a/test/__snapshots__/exclude/should excludeTags and excludePaths both set works.snap b/test/__snapshots__/exclude/should excludeTags and excludePaths both set works.snap index 4657639..e0d69ee 100644 --- a/test/__snapshots__/exclude/should excludeTags and excludePaths both set works.snap +++ b/test/__snapshots__/exclude/should excludeTags and excludePaths both set works.snap @@ -59,7 +59,62 @@ export async function sysCc1Cc1Ccc1Cccc1UsingGet({ } /* eslint-disable */ // @ts-ignore -export {}; + +export type SysCc1Cc1Ccc1Cccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1Xxxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; /* eslint-disable */ // @ts-ignore import request from '../request'; diff --git a/test/__snapshots__/exclude/should only excludePaths set works.snap b/test/__snapshots__/exclude/should only excludePaths set works.snap index 32cd9f3..cf67af4 100644 --- a/test/__snapshots__/exclude/should only excludePaths set works.snap +++ b/test/__snapshots__/exclude/should only excludePaths set works.snap @@ -114,7 +114,125 @@ export async function sysCc1Cc1Ccc1Cccc1UsingGet({ } /* eslint-disable */ // @ts-ignore -export {}; + +export type SysBb1Bb1Bbb1Bbbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1Bbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1Cccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1Xxxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1Yyyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1Yyyy1Yyyyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; /* eslint-disable */ // @ts-ignore import request from '../request'; diff --git a/test/__snapshots__/exclude/should only excludeTags set works.snap b/test/__snapshots__/exclude/should only excludeTags set works.snap index 32cd9f3..cf67af4 100644 --- a/test/__snapshots__/exclude/should only excludeTags set works.snap +++ b/test/__snapshots__/exclude/should only excludeTags set works.snap @@ -114,7 +114,125 @@ export async function sysCc1Cc1Ccc1Cccc1UsingGet({ } /* eslint-disable */ // @ts-ignore -export {}; + +export type SysBb1Bb1Bbb1Bbbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1Bbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1Cccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1Xxxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1Yyyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1Yyyy1Yyyyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; /* eslint-disable */ // @ts-ignore import request from '../request'; diff --git a/test/__snapshots__/include/should excludePaths and excludePaths both specified.snap b/test/__snapshots__/include/should excludePaths and excludePaths both specified.snap index 3a1532a..be986bb 100644 --- a/test/__snapshots__/include/should excludePaths and excludePaths both specified.snap +++ b/test/__snapshots__/include/should excludePaths and excludePaths both specified.snap @@ -34,4 +34,17 @@ export async function sysAa1Aa1Aaa1Aaaa1UsingGet({ } /* eslint-disable */ // @ts-ignore -export {}; + +export type SysAa1Aa1Aaa1Aaaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1Aaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; diff --git a/test/__snapshots__/include/should include all tags.snap b/test/__snapshots__/include/should include all tags.snap index c42915f..794fa6b 100644 --- a/test/__snapshots__/include/should include all tags.snap +++ b/test/__snapshots__/include/should include all tags.snap @@ -169,7 +169,188 @@ export async function sysCc1Cc1Ccc1Cccc1UsingGet({ } /* eslint-disable */ // @ts-ignore -export {}; + +export type SysAa1Aa1Aaa1Aaaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1Aaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1Bbb1Bbbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1Bbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1Cccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1Xxxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1Yyyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1Yyyy1Yyyyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1Zzzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1Zzzz1Zzzzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; /* eslint-disable */ // @ts-ignore import request from '../request'; diff --git a/test/__snapshots__/include/should include all while no include and exclude set.snap b/test/__snapshots__/include/should include all while no include and exclude set.snap index c42915f..794fa6b 100644 --- a/test/__snapshots__/include/should include all while no include and exclude set.snap +++ b/test/__snapshots__/include/should include all while no include and exclude set.snap @@ -169,7 +169,188 @@ export async function sysCc1Cc1Ccc1Cccc1UsingGet({ } /* eslint-disable */ // @ts-ignore -export {}; + +export type SysAa1Aa1Aaa1Aaaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1Aaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1Bbb1Bbbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1Bbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1Cccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserXx1Xx1Xxx1Xxxx1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1Yyyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserYy1Yy1Yyy1Yyyy1Yyyyy1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1Zzzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1Zzzz1Zzzzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; /* eslint-disable */ // @ts-ignore import request from '../request'; diff --git a/test/__snapshots__/include/should includeTags specified and includePaths are wildcard.snap b/test/__snapshots__/include/should includeTags specified and includePaths are wildcard.snap index ce45d51..cabbbaf 100644 --- a/test/__snapshots__/include/should includeTags specified and includePaths are wildcard.snap +++ b/test/__snapshots__/include/should includeTags specified and includePaths are wildcard.snap @@ -59,7 +59,69 @@ export async function sysAa1Aa1Aaa1Aaaa1UsingGet({ } /* eslint-disable */ // @ts-ignore -export {}; + +export type SysAa1Aa1Aaa1Aaaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1Aaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1Zzzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type UserZz1Zz1Zzz1Zzzz1Zzzzz1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; /* eslint-disable */ // @ts-ignore import request from '../request'; diff --git a/test/__snapshots__/include/should only include the specified paths and includeTags.snap b/test/__snapshots__/include/should only include the specified paths and includeTags.snap index 01301ec..83dc0ee 100644 --- a/test/__snapshots__/include/should only include the specified paths and includeTags.snap +++ b/test/__snapshots__/include/should only include the specified paths and includeTags.snap @@ -166,4 +166,87 @@ export async function sysCc1Cc1Ccc1Cccc1UsingGet({ } /* eslint-disable */ // @ts-ignore -export {}; + +export type SysAa1Aa1Aaa1Aaaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1Aaa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1Aa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysAa1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1Bbb1Bbbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1Bbb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1Bb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysBb1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1Cccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1Ccc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1Cc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; + +export type SysCc1UsingGetResponses = { + /** + * OK + */ + 200: string; +}; diff --git a/test/example-files/openapi-response-desc.json b/test/example-files/openapi-response-desc.json index 8a8db50..408e4d7 100644 --- a/test/example-files/openapi-response-desc.json +++ b/test/example-files/openapi-response-desc.json @@ -81,7 +81,7 @@ }, "responses": { "200": { - "description": "", + "description": "errcode: 错误码\nerrmsg: 错误日志\naccess_token: 凭证\nexpires_in: 凭证的有效时间", "content": { "application/json": { "schema": {