diff --git a/libs/api-client/fern/openapi/openapi.yml b/libs/api-client/fern/openapi/openapi.yml index 30c98a012f2..2b9a6fdc984 100644 --- a/libs/api-client/fern/openapi/openapi.yml +++ b/libs/api-client/fern/openapi/openapi.yml @@ -1,13 +1,13 @@ openapi: 3.0.3 info: title: Common API - version: 0.0.4 + version: 0.0.1 servers: - url: http://localhost:3000/api/v1 paths: - /GetGlobalActivity: + /GetUserActivity: get: - operationId: getGlobalActivity + operationId: getUserActivity tags: - User security: @@ -18,6 +18,21 @@ paths: required: false schema: type: string + - name: is_global + in: query + required: false + schema: + type: boolean + - name: thread_limit + in: query + required: false + schema: + type: number + - name: comment_limit + in: query + required: false + schema: + type: number responses: '200': description: Successful response @@ -28,315 +43,99 @@ paths: items: type: object properties: - thread: + community_id: + type: string + community_icon: + type: string + nullable: true + id: + type: integer + minimum: 0 + maximum: 2147483647 + user_id: + type: integer + minimum: 0 + maximum: 2147483647 + user_address: + type: string + profile_name: + type: string + nullable: true + profile_avatar: + type: string + nullable: true + body: + type: string + title: + type: string + kind: + type: string + stage: + type: string + number_of_comments: + type: number + created_at: + type: string + nullable: true + updated_at: + type: string + nullable: true + deleted_at: + type: string + nullable: true + locked_at: + type: string + nullable: true + archived_at: + type: string + nullable: true + marked_as_spam_at: + type: string + nullable: true + read_only: + type: boolean + has_poll: + type: boolean + nullable: true + discord_meta: type: object properties: - id: - type: integer - minimum: 0 - maximum: 2147483647 - community_id: - type: string - body: - type: string - title: - type: string - numberOfComments: - type: integer - minimum: 0 - maximum: 2147483647 - created_at: - type: string - nullable: true - updated_at: - type: string - nullable: true - deleted_at: - type: string - nullable: true - locked_at: - type: string - nullable: true - kind: - type: string - stage: - type: string - archived_at: - type: string - nullable: true - read_only: - type: boolean - has_poll: - type: boolean - nullable: true - marked_as_spam_at: - type: string - nullable: true - discord_meta: - type: object - properties: - user: - type: object - properties: - id: - type: string - username: - type: string - required: - - id - - username - additionalProperties: false - channel_id: - type: string - message_id: - type: string - required: - - user - - channel_id - - message_id - additionalProperties: false - nullable: true - profile_name: - type: string - nullable: true - profile_avatar: - type: string - nullable: true - user_id: - type: integer - minimum: 0 - maximum: 2147483647 - user_address: - type: string - topic: + user: type: object properties: id: - type: integer - minimum: 0 - maximum: 2147483647 - name: type: string - description: + username: type: string required: - id - - name - - description + - username additionalProperties: false + channel_id: + type: string + message_id: + type: string required: - - id - - community_id - - body - - title - - numberOfComments - - kind - - stage - - read_only - - user_id - - user_address - - topic + - user + - channel_id + - message_id additionalProperties: false - recent_comments: - type: array - items: - type: object - properties: - id: - type: integer - minimum: 0 - maximum: 2147483647 - address: - type: string - text: - type: string - created_at: - type: string - updated_at: - type: string - nullable: true - deleted_at: - type: string - nullable: true - marked_as_spam_at: - type: string - nullable: true - discord_meta: - type: object - properties: - user: - type: object - properties: - id: - type: string - username: - type: string - required: - - id - - username - additionalProperties: false - channel_id: - type: string - message_id: - type: string - required: - - user - - channel_id - - message_id - additionalProperties: false - nullable: true - profile_name: - type: string - nullable: true - profile_avatar_url: - type: string - nullable: true - user_id: - type: number - nullable: true - required: - - id - - address - - text - - created_at - additionalProperties: false nullable: true - required: - - thread - additionalProperties: false - default: - $ref: '#/components/responses/error' - /GetUserActivity: - get: - operationId: getUserActivity - tags: - - User - security: - - apiKey: [] - parameters: - - in: header - name: address - required: false - schema: - type: string - responses: - '200': - description: Successful response - content: - application/json: - schema: - type: array - items: - type: object - properties: - thread: + topic: type: object properties: id: type: integer minimum: 0 maximum: 2147483647 - community_id: - type: string - body: - type: string - title: - type: string - numberOfComments: - type: integer - minimum: 0 - maximum: 2147483647 - created_at: - type: string - nullable: true - updated_at: - type: string - nullable: true - deleted_at: - type: string - nullable: true - locked_at: - type: string - nullable: true - kind: - type: string - stage: - type: string - archived_at: - type: string - nullable: true - read_only: - type: boolean - has_poll: - type: boolean - nullable: true - marked_as_spam_at: - type: string - nullable: true - discord_meta: - type: object - properties: - user: - type: object - properties: - id: - type: string - username: - type: string - required: - - id - - username - additionalProperties: false - channel_id: - type: string - message_id: - type: string - required: - - user - - channel_id - - message_id - additionalProperties: false - nullable: true - profile_name: - type: string - nullable: true - profile_avatar: + name: type: string - nullable: true - user_id: - type: integer - minimum: 0 - maximum: 2147483647 - user_address: + description: type: string - topic: - type: object - properties: - id: - type: integer - minimum: 0 - maximum: 2147483647 - name: - type: string - description: - type: string - required: - - id - - name - - description - additionalProperties: false required: - id - - community_id - - body - - title - - numberOfComments - - kind - - stage - - read_only - - user_id - - user_address - - topic + - name + - description additionalProperties: false recent_comments: type: array @@ -349,6 +148,15 @@ paths: maximum: 2147483647 address: type: string + user_id: + type: number + nullable: true + profile_name: + type: string + nullable: true + profile_avatar: + type: string + nullable: true text: type: string created_at: @@ -386,15 +194,6 @@ paths: - message_id additionalProperties: false nullable: true - profile_name: - type: string - nullable: true - profile_avatar_url: - type: string - nullable: true - user_id: - type: number - nullable: true required: - id - address @@ -403,7 +202,17 @@ paths: additionalProperties: false nullable: true required: - - thread + - community_id + - id + - user_id + - user_address + - body + - title + - kind + - stage + - number_of_comments + - read_only + - topic additionalProperties: false default: $ref: '#/components/responses/error' diff --git a/libs/api-client/package.json b/libs/api-client/package.json index 80dc227853a..3626909c6e4 100644 --- a/libs/api-client/package.json +++ b/libs/api-client/package.json @@ -1,6 +1,6 @@ { "name": "@commonxyz/api-client", - "version": "0.0.4", + "version": "0.0.5", "type": "module", "description": "Common Client Proxy", "repository": { diff --git a/libs/api-client/src/api/resources/index.d.ts b/libs/api-client/src/api/resources/index.d.ts index 4301125bdc3..531ef16fd91 100644 --- a/libs/api-client/src/api/resources/index.d.ts +++ b/libs/api-client/src/api/resources/index.d.ts @@ -11,4 +11,5 @@ export * as thread from './thread'; export * from './thread/client/requests'; export * from './thread/types'; export * as user from './user'; +export * from './user/client/requests'; export * from './user/types'; diff --git a/libs/api-client/src/api/resources/index.js b/libs/api-client/src/api/resources/index.js index 4301125bdc3..531ef16fd91 100644 --- a/libs/api-client/src/api/resources/index.js +++ b/libs/api-client/src/api/resources/index.js @@ -11,4 +11,5 @@ export * as thread from './thread'; export * from './thread/client/requests'; export * from './thread/types'; export * as user from './user'; +export * from './user/client/requests'; export * from './user/types'; diff --git a/libs/api-client/src/api/resources/user/client/Client.d.ts b/libs/api-client/src/api/resources/user/client/Client.d.ts index defa3155358..58e40b088e3 100644 --- a/libs/api-client/src/api/resources/user/client/Client.d.ts +++ b/libs/api-client/src/api/resources/user/client/Client.d.ts @@ -26,21 +26,14 @@ export declare class User { protected readonly _options: User.Options; constructor(_options: User.Options); /** - * @param {User.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.user.getGlobalActivity() - */ - getGlobalActivity( - requestOptions?: User.RequestOptions, - ): Promise; - /** + * @param {CommonApi.GetUserActivityRequest} request * @param {User.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.user.getUserActivity() */ getUserActivity( + request?: CommonApi.GetUserActivityRequest, requestOptions?: User.RequestOptions, ): Promise; /** diff --git a/libs/api-client/src/api/resources/user/client/Client.js b/libs/api-client/src/api/resources/user/client/Client.js index 824c9a68217..bcad0730ef5 100644 --- a/libs/api-client/src/api/resources/user/client/Client.js +++ b/libs/api-client/src/api/resources/user/client/Client.js @@ -44,93 +44,26 @@ export class User { this._options = _options; } /** + * @param {CommonApi.GetUserActivityRequest} request * @param {User.RequestOptions} requestOptions - Request-specific configuration. * * @example - * await client.user.getGlobalActivity() + * await client.user.getUserActivity() */ - getGlobalActivity(requestOptions) { + getUserActivity(request = {}, requestOptions) { var _a; return __awaiter(this, void 0, void 0, function* () { - const _response = yield core.fetcher({ - url: urlJoin( - (_a = yield core.Supplier.get(this._options.environment)) !== null && - _a !== void 0 - ? _a - : environments.CommonApiEnvironment.Default, - 'GetGlobalActivity', - ), - method: 'GET', - headers: Object.assign( - { - address: - (yield core.Supplier.get(this._options.address)) != null - ? yield core.Supplier.get(this._options.address) - : undefined, - 'X-Fern-Language': 'JavaScript', - 'X-Fern-Runtime': core.RUNTIME.type, - 'X-Fern-Runtime-Version': core.RUNTIME.version, - }, - yield this._getCustomAuthorizationHeaders(), - ), - contentType: 'application/json', - requestType: 'json', - timeoutMs: - (requestOptions === null || requestOptions === void 0 - ? void 0 - : requestOptions.timeoutInSeconds) != null - ? requestOptions.timeoutInSeconds * 1000 - : 60000, - maxRetries: - requestOptions === null || requestOptions === void 0 - ? void 0 - : requestOptions.maxRetries, - abortSignal: - requestOptions === null || requestOptions === void 0 - ? void 0 - : requestOptions.abortSignal, - }); - if (_response.ok) { - return serializers.user.getGlobalActivity.Response.parseOrThrow( - _response.body, - { - unrecognizedObjectKeys: 'passthrough', - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - breadcrumbsPrefix: ['response'], - }, - ); + const { isGlobal, threadLimit, commentLimit } = request; + const _queryParams = {}; + if (isGlobal != null) { + _queryParams['is_global'] = isGlobal.toString(); } - if (_response.error.reason === 'status-code') { - throw new errors.CommonApiError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - }); + if (threadLimit != null) { + _queryParams['thread_limit'] = threadLimit.toString(); } - switch (_response.error.reason) { - case 'non-json': - throw new errors.CommonApiError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - }); - case 'timeout': - throw new errors.CommonApiTimeoutError(); - case 'unknown': - throw new errors.CommonApiError({ - message: _response.error.errorMessage, - }); + if (commentLimit != null) { + _queryParams['comment_limit'] = commentLimit.toString(); } - }); - } - /** - * @param {User.RequestOptions} requestOptions - Request-specific configuration. - * - * @example - * await client.user.getUserActivity() - */ - getUserActivity(requestOptions) { - var _a; - return __awaiter(this, void 0, void 0, function* () { const _response = yield core.fetcher({ url: urlJoin( (_a = yield core.Supplier.get(this._options.environment)) !== null && @@ -153,6 +86,7 @@ export class User { yield this._getCustomAuthorizationHeaders(), ), contentType: 'application/json', + queryParameters: _queryParams, requestType: 'json', timeoutMs: (requestOptions === null || requestOptions === void 0 diff --git a/libs/api-client/src/api/resources/user/client/index.d.ts b/libs/api-client/src/api/resources/user/client/index.d.ts index cb0ff5c3b54..c3dff2f3f5c 100644 --- a/libs/api-client/src/api/resources/user/client/index.d.ts +++ b/libs/api-client/src/api/resources/user/client/index.d.ts @@ -1 +1 @@ -export {}; +export * from './requests'; diff --git a/libs/api-client/src/api/resources/user/client/index.js b/libs/api-client/src/api/resources/user/client/index.js index cb0ff5c3b54..c3dff2f3f5c 100644 --- a/libs/api-client/src/api/resources/user/client/index.js +++ b/libs/api-client/src/api/resources/user/client/index.js @@ -1 +1 @@ -export {}; +export * from './requests'; diff --git a/libs/api-client/src/api/resources/user/client/requests/GetUserActivityRequest.d.ts b/libs/api-client/src/api/resources/user/client/requests/GetUserActivityRequest.d.ts new file mode 100644 index 00000000000..8c94f764dcc --- /dev/null +++ b/libs/api-client/src/api/resources/user/client/requests/GetUserActivityRequest.d.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +/** + * @example + * {} + */ +export interface GetUserActivityRequest { + isGlobal?: boolean; + threadLimit?: number; + commentLimit?: number; +} diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItem.js b/libs/api-client/src/api/resources/user/client/requests/GetUserActivityRequest.js similarity index 100% rename from libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItem.js rename to libs/api-client/src/api/resources/user/client/requests/GetUserActivityRequest.js diff --git a/libs/api-client/src/api/resources/user/client/requests/index.d.ts b/libs/api-client/src/api/resources/user/client/requests/index.d.ts new file mode 100644 index 00000000000..fa13dcaf02a --- /dev/null +++ b/libs/api-client/src/api/resources/user/client/requests/index.d.ts @@ -0,0 +1 @@ +export { type GetUserActivityRequest } from './GetUserActivityRequest'; diff --git a/libs/api-client/src/api/resources/user/client/requests/index.js b/libs/api-client/src/api/resources/user/client/requests/index.js new file mode 100644 index 00000000000..cb0ff5c3b54 --- /dev/null +++ b/libs/api-client/src/api/resources/user/client/requests/index.js @@ -0,0 +1 @@ +export {}; diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItem.d.ts b/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItem.d.ts deleted file mode 100644 index a497928fed6..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItem.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../index'; -export interface GetGlobalActivityResponseItem { - thread: CommonApi.GetGlobalActivityResponseItemThread; - recentComments?: CommonApi.GetGlobalActivityResponseItemRecentCommentsItem[]; -} diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItem.d.ts b/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItem.d.ts deleted file mode 100644 index 265cb5e3015..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItem.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../index'; -export interface GetGlobalActivityResponseItemRecentCommentsItem { - id: number; - address: string; - text: string; - createdAt: string; - updatedAt?: string; - deletedAt?: string; - markedAsSpamAt?: string; - discordMeta?: CommonApi.GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta; - profileName?: string; - profileAvatarUrl?: string; - userId?: number; -} diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.d.ts b/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.d.ts deleted file mode 100644 index becb16cdfe2..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../index'; -export interface GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta { - user: CommonApi.GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser; - channelId: string; - messageId: string; -} diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.d.ts b/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.d.ts deleted file mode 100644 index 74d99cab9e3..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export interface GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser { - id: string; - username: string; -} diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThread.d.ts b/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThread.d.ts deleted file mode 100644 index d993bcaf523..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThread.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../index'; -export interface GetGlobalActivityResponseItemThread { - id: number; - communityId: string; - body: string; - title: string; - numberOfComments: number; - createdAt?: string; - updatedAt?: string; - deletedAt?: string; - lockedAt?: string; - kind: string; - stage: string; - archivedAt?: string; - readOnly: boolean; - hasPoll?: boolean; - markedAsSpamAt?: string; - discordMeta?: CommonApi.GetGlobalActivityResponseItemThreadDiscordMeta; - profileName?: string; - profileAvatar?: string; - userId: number; - userAddress: string; - topic: CommonApi.GetGlobalActivityResponseItemThreadTopic; -} diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThread.js b/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThread.js deleted file mode 100644 index 0b46289f5b8..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThread.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMeta.d.ts b/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMeta.d.ts deleted file mode 100644 index d3d08ba481f..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMeta.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../index'; -export interface GetGlobalActivityResponseItemThreadDiscordMeta { - user: CommonApi.GetGlobalActivityResponseItemThreadDiscordMetaUser; - channelId: string; - messageId: string; -} diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMeta.js b/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMeta.js deleted file mode 100644 index 0b46289f5b8..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMeta.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMetaUser.d.ts b/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMetaUser.d.ts deleted file mode 100644 index c0bbb62efe8..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMetaUser.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export interface GetGlobalActivityResponseItemThreadDiscordMetaUser { - id: string; - username: string; -} diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMetaUser.js b/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMetaUser.js deleted file mode 100644 index 0b46289f5b8..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMetaUser.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadTopic.d.ts b/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadTopic.d.ts deleted file mode 100644 index e9d54923e27..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadTopic.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export interface GetGlobalActivityResponseItemThreadTopic { - id: number; - name: string; - description: string; -} diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadTopic.js b/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadTopic.js deleted file mode 100644 index 0b46289f5b8..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemThreadTopic.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItem.d.ts b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItem.d.ts index 7a414f9d956..708b74ea636 100644 --- a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItem.d.ts +++ b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItem.d.ts @@ -3,6 +3,27 @@ */ import * as CommonApi from '../../../index'; export interface GetUserActivityResponseItem { - thread: CommonApi.GetUserActivityResponseItemThread; + communityId: string; + communityIcon?: string; + id: number; + userId: number; + userAddress: string; + profileName?: string; + profileAvatar?: string; + body: string; + title: string; + kind: string; + stage: string; + numberOfComments: number; + createdAt?: string; + updatedAt?: string; + deletedAt?: string; + lockedAt?: string; + archivedAt?: string; + markedAsSpamAt?: string; + readOnly: boolean; + hasPoll?: boolean; + discordMeta?: CommonApi.GetUserActivityResponseItemDiscordMeta; + topic: CommonApi.GetUserActivityResponseItemTopic; recentComments?: CommonApi.GetUserActivityResponseItemRecentCommentsItem[]; } diff --git a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadDiscordMeta.d.ts b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemDiscordMeta.d.ts similarity index 55% rename from libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadDiscordMeta.d.ts rename to libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemDiscordMeta.d.ts index cf73df444d6..867ff4ae95b 100644 --- a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadDiscordMeta.d.ts +++ b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemDiscordMeta.d.ts @@ -2,8 +2,8 @@ * This file was auto-generated by Fern from our API Definition. */ import * as CommonApi from '../../../index'; -export interface GetUserActivityResponseItemThreadDiscordMeta { - user: CommonApi.GetUserActivityResponseItemThreadDiscordMetaUser; +export interface GetUserActivityResponseItemDiscordMeta { + user: CommonApi.GetUserActivityResponseItemDiscordMetaUser; channelId: string; messageId: string; } diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItem.js b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemDiscordMeta.js similarity index 100% rename from libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItem.js rename to libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemDiscordMeta.js diff --git a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadDiscordMetaUser.d.ts b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemDiscordMetaUser.d.ts similarity index 61% rename from libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadDiscordMetaUser.d.ts rename to libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemDiscordMetaUser.d.ts index 80682d6d5dd..e55398eee22 100644 --- a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadDiscordMetaUser.d.ts +++ b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemDiscordMetaUser.d.ts @@ -1,7 +1,7 @@ /** * This file was auto-generated by Fern from our API Definition. */ -export interface GetUserActivityResponseItemThreadDiscordMetaUser { +export interface GetUserActivityResponseItemDiscordMetaUser { id: string; username: string; } diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.js b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemDiscordMetaUser.js similarity index 100% rename from libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.js rename to libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemDiscordMetaUser.js diff --git a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemRecentCommentsItem.d.ts b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemRecentCommentsItem.d.ts index d2b11e577c1..c721a34d0c1 100644 --- a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemRecentCommentsItem.d.ts +++ b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemRecentCommentsItem.d.ts @@ -5,13 +5,13 @@ import * as CommonApi from '../../../index'; export interface GetUserActivityResponseItemRecentCommentsItem { id: number; address: string; + userId?: number; + profileName?: string; + profileAvatar?: string; text: string; createdAt: string; updatedAt?: string; deletedAt?: string; markedAsSpamAt?: string; discordMeta?: CommonApi.GetUserActivityResponseItemRecentCommentsItemDiscordMeta; - profileName?: string; - profileAvatarUrl?: string; - userId?: number; } diff --git a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThread.d.ts b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThread.d.ts deleted file mode 100644 index adbe4972ca3..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThread.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../index'; -export interface GetUserActivityResponseItemThread { - id: number; - communityId: string; - body: string; - title: string; - numberOfComments: number; - createdAt?: string; - updatedAt?: string; - deletedAt?: string; - lockedAt?: string; - kind: string; - stage: string; - archivedAt?: string; - readOnly: boolean; - hasPoll?: boolean; - markedAsSpamAt?: string; - discordMeta?: CommonApi.GetUserActivityResponseItemThreadDiscordMeta; - profileName?: string; - profileAvatar?: string; - userId: number; - userAddress: string; - topic: CommonApi.GetUserActivityResponseItemThreadTopic; -} diff --git a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThread.js b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThread.js deleted file mode 100644 index 0b46289f5b8..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThread.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadDiscordMeta.js b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadDiscordMeta.js deleted file mode 100644 index 0b46289f5b8..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadDiscordMeta.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadDiscordMetaUser.js b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadDiscordMetaUser.js deleted file mode 100644 index 0b46289f5b8..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadDiscordMetaUser.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadTopic.js b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadTopic.js deleted file mode 100644 index 0b46289f5b8..00000000000 --- a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadTopic.js +++ /dev/null @@ -1,4 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -export {}; diff --git a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadTopic.d.ts b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemTopic.d.ts similarity index 68% rename from libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadTopic.d.ts rename to libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemTopic.d.ts index 373650f65db..12290cb3b66 100644 --- a/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemThreadTopic.d.ts +++ b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemTopic.d.ts @@ -1,7 +1,7 @@ /** * This file was auto-generated by Fern from our API Definition. */ -export interface GetUserActivityResponseItemThreadTopic { +export interface GetUserActivityResponseItemTopic { id: number; name: string; description: string; diff --git a/libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.js b/libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemTopic.js similarity index 100% rename from libs/api-client/src/api/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.js rename to libs/api-client/src/api/resources/user/types/GetUserActivityResponseItemTopic.js diff --git a/libs/api-client/src/api/resources/user/types/index.d.ts b/libs/api-client/src/api/resources/user/types/index.d.ts index 8af3cf3d4d1..150b153c887 100644 --- a/libs/api-client/src/api/resources/user/types/index.d.ts +++ b/libs/api-client/src/api/resources/user/types/index.d.ts @@ -1,17 +1,8 @@ -export * from './GetGlobalActivityResponseItem'; -export * from './GetGlobalActivityResponseItemRecentCommentsItem'; -export * from './GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta'; -export * from './GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser'; -export * from './GetGlobalActivityResponseItemThread'; -export * from './GetGlobalActivityResponseItemThreadDiscordMeta'; -export * from './GetGlobalActivityResponseItemThreadDiscordMetaUser'; -export * from './GetGlobalActivityResponseItemThreadTopic'; export * from './GetNewContentResponse'; export * from './GetUserActivityResponseItem'; +export * from './GetUserActivityResponseItemDiscordMeta'; +export * from './GetUserActivityResponseItemDiscordMetaUser'; export * from './GetUserActivityResponseItemRecentCommentsItem'; export * from './GetUserActivityResponseItemRecentCommentsItemDiscordMeta'; export * from './GetUserActivityResponseItemRecentCommentsItemDiscordMetaUser'; -export * from './GetUserActivityResponseItemThread'; -export * from './GetUserActivityResponseItemThreadDiscordMeta'; -export * from './GetUserActivityResponseItemThreadDiscordMetaUser'; -export * from './GetUserActivityResponseItemThreadTopic'; +export * from './GetUserActivityResponseItemTopic'; diff --git a/libs/api-client/src/api/resources/user/types/index.js b/libs/api-client/src/api/resources/user/types/index.js index 8af3cf3d4d1..150b153c887 100644 --- a/libs/api-client/src/api/resources/user/types/index.js +++ b/libs/api-client/src/api/resources/user/types/index.js @@ -1,17 +1,8 @@ -export * from './GetGlobalActivityResponseItem'; -export * from './GetGlobalActivityResponseItemRecentCommentsItem'; -export * from './GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta'; -export * from './GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser'; -export * from './GetGlobalActivityResponseItemThread'; -export * from './GetGlobalActivityResponseItemThreadDiscordMeta'; -export * from './GetGlobalActivityResponseItemThreadDiscordMetaUser'; -export * from './GetGlobalActivityResponseItemThreadTopic'; export * from './GetNewContentResponse'; export * from './GetUserActivityResponseItem'; +export * from './GetUserActivityResponseItemDiscordMeta'; +export * from './GetUserActivityResponseItemDiscordMetaUser'; export * from './GetUserActivityResponseItemRecentCommentsItem'; export * from './GetUserActivityResponseItemRecentCommentsItemDiscordMeta'; export * from './GetUserActivityResponseItemRecentCommentsItemDiscordMetaUser'; -export * from './GetUserActivityResponseItemThread'; -export * from './GetUserActivityResponseItemThreadDiscordMeta'; -export * from './GetUserActivityResponseItemThreadDiscordMetaUser'; -export * from './GetUserActivityResponseItemThreadTopic'; +export * from './GetUserActivityResponseItemTopic'; diff --git a/libs/api-client/src/serialization/resources/user/client/getGlobalActivity.d.ts b/libs/api-client/src/serialization/resources/user/client/getGlobalActivity.d.ts deleted file mode 100644 index 7ae7bfdc054..00000000000 --- a/libs/api-client/src/serialization/resources/user/client/getGlobalActivity.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../../api/index'; -import * as core from '../../../../core'; -import * as serializers from '../../../index'; -import { GetGlobalActivityResponseItem } from '../types/GetGlobalActivityResponseItem'; -export declare const Response: core.serialization.Schema< - serializers.user.getGlobalActivity.Response.Raw, - CommonApi.GetGlobalActivityResponseItem[] ->; -export declare namespace Response { - type Raw = GetGlobalActivityResponseItem.Raw[]; -} diff --git a/libs/api-client/src/serialization/resources/user/client/getGlobalActivity.js b/libs/api-client/src/serialization/resources/user/client/getGlobalActivity.js deleted file mode 100644 index b47ff2556d8..00000000000 --- a/libs/api-client/src/serialization/resources/user/client/getGlobalActivity.js +++ /dev/null @@ -1,6 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as core from '../../../../core'; -import { GetGlobalActivityResponseItem } from '../types/GetGlobalActivityResponseItem'; -export const Response = core.serialization.list(GetGlobalActivityResponseItem); diff --git a/libs/api-client/src/serialization/resources/user/client/index.d.ts b/libs/api-client/src/serialization/resources/user/client/index.d.ts index a508bd5297d..666df5e8788 100644 --- a/libs/api-client/src/serialization/resources/user/client/index.d.ts +++ b/libs/api-client/src/serialization/resources/user/client/index.d.ts @@ -1,2 +1 @@ -export * as getGlobalActivity from './getGlobalActivity'; export * as getUserActivity from './getUserActivity'; diff --git a/libs/api-client/src/serialization/resources/user/client/index.js b/libs/api-client/src/serialization/resources/user/client/index.js index a508bd5297d..666df5e8788 100644 --- a/libs/api-client/src/serialization/resources/user/client/index.js +++ b/libs/api-client/src/serialization/resources/user/client/index.js @@ -1,2 +1 @@ -export * as getGlobalActivity from './getGlobalActivity'; export * as getUserActivity from './getUserActivity'; diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItem.d.ts b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItem.d.ts deleted file mode 100644 index 268911f411d..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItem.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../../api/index'; -import * as core from '../../../../core'; -import * as serializers from '../../../index'; -import { GetGlobalActivityResponseItemRecentCommentsItem } from './GetGlobalActivityResponseItemRecentCommentsItem'; -import { GetGlobalActivityResponseItemThread } from './GetGlobalActivityResponseItemThread'; -export declare const GetGlobalActivityResponseItem: core.serialization.ObjectSchema< - serializers.GetGlobalActivityResponseItem.Raw, - CommonApi.GetGlobalActivityResponseItem ->; -export declare namespace GetGlobalActivityResponseItem { - interface Raw { - thread: GetGlobalActivityResponseItemThread.Raw; - recent_comments?: - | GetGlobalActivityResponseItemRecentCommentsItem.Raw[] - | null; - } -} diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItem.js b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItem.js deleted file mode 100644 index e2a3ac71f68..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItem.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as core from '../../../../core'; -import { GetGlobalActivityResponseItemRecentCommentsItem } from './GetGlobalActivityResponseItemRecentCommentsItem'; -import { GetGlobalActivityResponseItemThread } from './GetGlobalActivityResponseItemThread'; -export const GetGlobalActivityResponseItem = core.serialization.object({ - thread: GetGlobalActivityResponseItemThread, - recentComments: core.serialization.property( - 'recent_comments', - core.serialization - .list(GetGlobalActivityResponseItemRecentCommentsItem) - .optional(), - ), -}); diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItem.d.ts b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItem.d.ts deleted file mode 100644 index 40018770ba6..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItem.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../../api/index'; -import * as core from '../../../../core'; -import * as serializers from '../../../index'; -import { GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta } from './GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta'; -export declare const GetGlobalActivityResponseItemRecentCommentsItem: core.serialization.ObjectSchema< - serializers.GetGlobalActivityResponseItemRecentCommentsItem.Raw, - CommonApi.GetGlobalActivityResponseItemRecentCommentsItem ->; -export declare namespace GetGlobalActivityResponseItemRecentCommentsItem { - interface Raw { - id: number; - address: string; - text: string; - created_at: string; - updated_at?: string | null; - deleted_at?: string | null; - marked_as_spam_at?: string | null; - discord_meta?: GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.Raw | null; - profile_name?: string | null; - profile_avatar_url?: string | null; - user_id?: number | null; - } -} diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItem.js b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItem.js deleted file mode 100644 index 465fc53d23e..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItem.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as core from '../../../../core'; -import { GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta } from './GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta'; -export const GetGlobalActivityResponseItemRecentCommentsItem = - core.serialization.object({ - id: core.serialization.number(), - address: core.serialization.string(), - text: core.serialization.string(), - createdAt: core.serialization.property( - 'created_at', - core.serialization.string(), - ), - updatedAt: core.serialization.property( - 'updated_at', - core.serialization.string().optional(), - ), - deletedAt: core.serialization.property( - 'deleted_at', - core.serialization.string().optional(), - ), - markedAsSpamAt: core.serialization.property( - 'marked_as_spam_at', - core.serialization.string().optional(), - ), - discordMeta: core.serialization.property( - 'discord_meta', - GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.optional(), - ), - profileName: core.serialization.property( - 'profile_name', - core.serialization.string().optional(), - ), - profileAvatarUrl: core.serialization.property( - 'profile_avatar_url', - core.serialization.string().optional(), - ), - userId: core.serialization.property( - 'user_id', - core.serialization.number().optional(), - ), - }); diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.d.ts b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.d.ts deleted file mode 100644 index 64e969dd8a5..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../../api/index'; -import * as core from '../../../../core'; -import * as serializers from '../../../index'; -import { GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser } from './GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser'; -export declare const GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta: core.serialization.ObjectSchema< - serializers.GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.Raw, - CommonApi.GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta ->; -export declare namespace GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta { - interface Raw { - user: GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.Raw; - channel_id: string; - message_id: string; - } -} diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.js b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.js deleted file mode 100644 index 6125a4712fd..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as core from '../../../../core'; -import { GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser } from './GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser'; -export const GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta = - core.serialization.object({ - user: GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser, - channelId: core.serialization.property( - 'channel_id', - core.serialization.string(), - ), - messageId: core.serialization.property( - 'message_id', - core.serialization.string(), - ), - }); diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.d.ts b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.d.ts deleted file mode 100644 index 8c821b738f1..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../../api/index'; -import * as core from '../../../../core'; -import * as serializers from '../../../index'; -export declare const GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser: core.serialization.ObjectSchema< - serializers.GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.Raw, - CommonApi.GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser ->; -export declare namespace GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser { - interface Raw { - id: string; - username: string; - } -} diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.js b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.js deleted file mode 100644 index 6c038cfb03e..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as core from '../../../../core'; -export const GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser = - core.serialization.object({ - id: core.serialization.string(), - username: core.serialization.string(), - }); diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThread.d.ts b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThread.d.ts deleted file mode 100644 index e260f78e2b9..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThread.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../../api/index'; -import * as core from '../../../../core'; -import * as serializers from '../../../index'; -import { GetGlobalActivityResponseItemThreadDiscordMeta } from './GetGlobalActivityResponseItemThreadDiscordMeta'; -import { GetGlobalActivityResponseItemThreadTopic } from './GetGlobalActivityResponseItemThreadTopic'; -export declare const GetGlobalActivityResponseItemThread: core.serialization.ObjectSchema< - serializers.GetGlobalActivityResponseItemThread.Raw, - CommonApi.GetGlobalActivityResponseItemThread ->; -export declare namespace GetGlobalActivityResponseItemThread { - interface Raw { - id: number; - community_id: string; - body: string; - title: string; - numberOfComments: number; - created_at?: string | null; - updated_at?: string | null; - deleted_at?: string | null; - locked_at?: string | null; - kind: string; - stage: string; - archived_at?: string | null; - read_only: boolean; - has_poll?: boolean | null; - marked_as_spam_at?: string | null; - discord_meta?: GetGlobalActivityResponseItemThreadDiscordMeta.Raw | null; - profile_name?: string | null; - profile_avatar?: string | null; - user_id: number; - user_address: string; - topic: GetGlobalActivityResponseItemThreadTopic.Raw; - } -} diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThread.js b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThread.js deleted file mode 100644 index ed01b35d4a1..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThread.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as core from '../../../../core'; -import { GetGlobalActivityResponseItemThreadDiscordMeta } from './GetGlobalActivityResponseItemThreadDiscordMeta'; -import { GetGlobalActivityResponseItemThreadTopic } from './GetGlobalActivityResponseItemThreadTopic'; -export const GetGlobalActivityResponseItemThread = core.serialization.object({ - id: core.serialization.number(), - communityId: core.serialization.property( - 'community_id', - core.serialization.string(), - ), - body: core.serialization.string(), - title: core.serialization.string(), - numberOfComments: core.serialization.number(), - createdAt: core.serialization.property( - 'created_at', - core.serialization.string().optional(), - ), - updatedAt: core.serialization.property( - 'updated_at', - core.serialization.string().optional(), - ), - deletedAt: core.serialization.property( - 'deleted_at', - core.serialization.string().optional(), - ), - lockedAt: core.serialization.property( - 'locked_at', - core.serialization.string().optional(), - ), - kind: core.serialization.string(), - stage: core.serialization.string(), - archivedAt: core.serialization.property( - 'archived_at', - core.serialization.string().optional(), - ), - readOnly: core.serialization.property( - 'read_only', - core.serialization.boolean(), - ), - hasPoll: core.serialization.property( - 'has_poll', - core.serialization.boolean().optional(), - ), - markedAsSpamAt: core.serialization.property( - 'marked_as_spam_at', - core.serialization.string().optional(), - ), - discordMeta: core.serialization.property( - 'discord_meta', - GetGlobalActivityResponseItemThreadDiscordMeta.optional(), - ), - profileName: core.serialization.property( - 'profile_name', - core.serialization.string().optional(), - ), - profileAvatar: core.serialization.property( - 'profile_avatar', - core.serialization.string().optional(), - ), - userId: core.serialization.property('user_id', core.serialization.number()), - userAddress: core.serialization.property( - 'user_address', - core.serialization.string(), - ), - topic: GetGlobalActivityResponseItemThreadTopic, -}); diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMeta.d.ts b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMeta.d.ts deleted file mode 100644 index cc303ef8e8c..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMeta.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../../api/index'; -import * as core from '../../../../core'; -import * as serializers from '../../../index'; -import { GetGlobalActivityResponseItemThreadDiscordMetaUser } from './GetGlobalActivityResponseItemThreadDiscordMetaUser'; -export declare const GetGlobalActivityResponseItemThreadDiscordMeta: core.serialization.ObjectSchema< - serializers.GetGlobalActivityResponseItemThreadDiscordMeta.Raw, - CommonApi.GetGlobalActivityResponseItemThreadDiscordMeta ->; -export declare namespace GetGlobalActivityResponseItemThreadDiscordMeta { - interface Raw { - user: GetGlobalActivityResponseItemThreadDiscordMetaUser.Raw; - channel_id: string; - message_id: string; - } -} diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMeta.js b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMeta.js deleted file mode 100644 index 5bed3d55849..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMeta.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as core from '../../../../core'; -import { GetGlobalActivityResponseItemThreadDiscordMetaUser } from './GetGlobalActivityResponseItemThreadDiscordMetaUser'; -export const GetGlobalActivityResponseItemThreadDiscordMeta = - core.serialization.object({ - user: GetGlobalActivityResponseItemThreadDiscordMetaUser, - channelId: core.serialization.property( - 'channel_id', - core.serialization.string(), - ), - messageId: core.serialization.property( - 'message_id', - core.serialization.string(), - ), - }); diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMetaUser.d.ts b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMetaUser.d.ts deleted file mode 100644 index 25f73b5a740..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMetaUser.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../../api/index'; -import * as core from '../../../../core'; -import * as serializers from '../../../index'; -export declare const GetGlobalActivityResponseItemThreadDiscordMetaUser: core.serialization.ObjectSchema< - serializers.GetGlobalActivityResponseItemThreadDiscordMetaUser.Raw, - CommonApi.GetGlobalActivityResponseItemThreadDiscordMetaUser ->; -export declare namespace GetGlobalActivityResponseItemThreadDiscordMetaUser { - interface Raw { - id: string; - username: string; - } -} diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMetaUser.js b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMetaUser.js deleted file mode 100644 index 8135781f014..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadDiscordMetaUser.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as core from '../../../../core'; -export const GetGlobalActivityResponseItemThreadDiscordMetaUser = - core.serialization.object({ - id: core.serialization.string(), - username: core.serialization.string(), - }); diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadTopic.d.ts b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadTopic.d.ts deleted file mode 100644 index d8771177dfd..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadTopic.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../../api/index'; -import * as core from '../../../../core'; -import * as serializers from '../../../index'; -export declare const GetGlobalActivityResponseItemThreadTopic: core.serialization.ObjectSchema< - serializers.GetGlobalActivityResponseItemThreadTopic.Raw, - CommonApi.GetGlobalActivityResponseItemThreadTopic ->; -export declare namespace GetGlobalActivityResponseItemThreadTopic { - interface Raw { - id: number; - name: string; - description: string; - } -} diff --git a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadTopic.js b/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadTopic.js deleted file mode 100644 index 2a83dc18f36..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetGlobalActivityResponseItemThreadTopic.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as core from '../../../../core'; -export const GetGlobalActivityResponseItemThreadTopic = - core.serialization.object({ - id: core.serialization.number(), - name: core.serialization.string(), - description: core.serialization.string(), - }); diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItem.d.ts b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItem.d.ts index c45becf5f65..8261cd05b20 100644 --- a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItem.d.ts +++ b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItem.d.ts @@ -4,15 +4,37 @@ import * as CommonApi from '../../../../api/index'; import * as core from '../../../../core'; import * as serializers from '../../../index'; +import { GetUserActivityResponseItemDiscordMeta } from './GetUserActivityResponseItemDiscordMeta'; import { GetUserActivityResponseItemRecentCommentsItem } from './GetUserActivityResponseItemRecentCommentsItem'; -import { GetUserActivityResponseItemThread } from './GetUserActivityResponseItemThread'; +import { GetUserActivityResponseItemTopic } from './GetUserActivityResponseItemTopic'; export declare const GetUserActivityResponseItem: core.serialization.ObjectSchema< serializers.GetUserActivityResponseItem.Raw, CommonApi.GetUserActivityResponseItem >; export declare namespace GetUserActivityResponseItem { interface Raw { - thread: GetUserActivityResponseItemThread.Raw; + community_id: string; + community_icon?: string | null; + id: number; + user_id: number; + user_address: string; + profile_name?: string | null; + profile_avatar?: string | null; + body: string; + title: string; + kind: string; + stage: string; + number_of_comments: number; + created_at?: string | null; + updated_at?: string | null; + deleted_at?: string | null; + locked_at?: string | null; + archived_at?: string | null; + marked_as_spam_at?: string | null; + read_only: boolean; + has_poll?: boolean | null; + discord_meta?: GetUserActivityResponseItemDiscordMeta.Raw | null; + topic: GetUserActivityResponseItemTopic.Raw; recent_comments?: | GetUserActivityResponseItemRecentCommentsItem.Raw[] | null; diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItem.js b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItem.js index af90d6c69ba..0f587969dcc 100644 --- a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItem.js +++ b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItem.js @@ -2,10 +2,77 @@ * This file was auto-generated by Fern from our API Definition. */ import * as core from '../../../../core'; +import { GetUserActivityResponseItemDiscordMeta } from './GetUserActivityResponseItemDiscordMeta'; import { GetUserActivityResponseItemRecentCommentsItem } from './GetUserActivityResponseItemRecentCommentsItem'; -import { GetUserActivityResponseItemThread } from './GetUserActivityResponseItemThread'; +import { GetUserActivityResponseItemTopic } from './GetUserActivityResponseItemTopic'; export const GetUserActivityResponseItem = core.serialization.object({ - thread: GetUserActivityResponseItemThread, + communityId: core.serialization.property( + 'community_id', + core.serialization.string(), + ), + communityIcon: core.serialization.property( + 'community_icon', + core.serialization.string().optional(), + ), + id: core.serialization.number(), + userId: core.serialization.property('user_id', core.serialization.number()), + userAddress: core.serialization.property( + 'user_address', + core.serialization.string(), + ), + profileName: core.serialization.property( + 'profile_name', + core.serialization.string().optional(), + ), + profileAvatar: core.serialization.property( + 'profile_avatar', + core.serialization.string().optional(), + ), + body: core.serialization.string(), + title: core.serialization.string(), + kind: core.serialization.string(), + stage: core.serialization.string(), + numberOfComments: core.serialization.property( + 'number_of_comments', + core.serialization.number(), + ), + createdAt: core.serialization.property( + 'created_at', + core.serialization.string().optional(), + ), + updatedAt: core.serialization.property( + 'updated_at', + core.serialization.string().optional(), + ), + deletedAt: core.serialization.property( + 'deleted_at', + core.serialization.string().optional(), + ), + lockedAt: core.serialization.property( + 'locked_at', + core.serialization.string().optional(), + ), + archivedAt: core.serialization.property( + 'archived_at', + core.serialization.string().optional(), + ), + markedAsSpamAt: core.serialization.property( + 'marked_as_spam_at', + core.serialization.string().optional(), + ), + readOnly: core.serialization.property( + 'read_only', + core.serialization.boolean(), + ), + hasPoll: core.serialization.property( + 'has_poll', + core.serialization.boolean().optional(), + ), + discordMeta: core.serialization.property( + 'discord_meta', + GetUserActivityResponseItemDiscordMeta.optional(), + ), + topic: GetUserActivityResponseItemTopic, recentComments: core.serialization.property( 'recent_comments', core.serialization diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemDiscordMeta.d.ts b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemDiscordMeta.d.ts new file mode 100644 index 00000000000..32ed8b1343f --- /dev/null +++ b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemDiscordMeta.d.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as CommonApi from '../../../../api/index'; +import * as core from '../../../../core'; +import * as serializers from '../../../index'; +import { GetUserActivityResponseItemDiscordMetaUser } from './GetUserActivityResponseItemDiscordMetaUser'; +export declare const GetUserActivityResponseItemDiscordMeta: core.serialization.ObjectSchema< + serializers.GetUserActivityResponseItemDiscordMeta.Raw, + CommonApi.GetUserActivityResponseItemDiscordMeta +>; +export declare namespace GetUserActivityResponseItemDiscordMeta { + interface Raw { + user: GetUserActivityResponseItemDiscordMetaUser.Raw; + channel_id: string; + message_id: string; + } +} diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadDiscordMeta.js b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemDiscordMeta.js similarity index 54% rename from libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadDiscordMeta.js rename to libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemDiscordMeta.js index ae53c7f686d..f6ff0c0f4c5 100644 --- a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadDiscordMeta.js +++ b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemDiscordMeta.js @@ -2,10 +2,10 @@ * This file was auto-generated by Fern from our API Definition. */ import * as core from '../../../../core'; -import { GetUserActivityResponseItemThreadDiscordMetaUser } from './GetUserActivityResponseItemThreadDiscordMetaUser'; -export const GetUserActivityResponseItemThreadDiscordMeta = - core.serialization.object({ - user: GetUserActivityResponseItemThreadDiscordMetaUser, +import { GetUserActivityResponseItemDiscordMetaUser } from './GetUserActivityResponseItemDiscordMetaUser'; +export const GetUserActivityResponseItemDiscordMeta = core.serialization.object( + { + user: GetUserActivityResponseItemDiscordMetaUser, channelId: core.serialization.property( 'channel_id', core.serialization.string(), @@ -14,4 +14,5 @@ export const GetUserActivityResponseItemThreadDiscordMeta = 'message_id', core.serialization.string(), ), - }); + }, +); diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemDiscordMetaUser.d.ts b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemDiscordMetaUser.d.ts new file mode 100644 index 00000000000..3ac6d8ff058 --- /dev/null +++ b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemDiscordMetaUser.d.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as CommonApi from '../../../../api/index'; +import * as core from '../../../../core'; +import * as serializers from '../../../index'; +export declare const GetUserActivityResponseItemDiscordMetaUser: core.serialization.ObjectSchema< + serializers.GetUserActivityResponseItemDiscordMetaUser.Raw, + CommonApi.GetUserActivityResponseItemDiscordMetaUser +>; +export declare namespace GetUserActivityResponseItemDiscordMetaUser { + interface Raw { + id: string; + username: string; + } +} diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadDiscordMetaUser.js b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemDiscordMetaUser.js similarity index 78% rename from libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadDiscordMetaUser.js rename to libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemDiscordMetaUser.js index 35eb77b3aba..f5684e750d6 100644 --- a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadDiscordMetaUser.js +++ b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemDiscordMetaUser.js @@ -2,7 +2,7 @@ * This file was auto-generated by Fern from our API Definition. */ import * as core from '../../../../core'; -export const GetUserActivityResponseItemThreadDiscordMetaUser = +export const GetUserActivityResponseItemDiscordMetaUser = core.serialization.object({ id: core.serialization.string(), username: core.serialization.string(), diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemRecentCommentsItem.d.ts b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemRecentCommentsItem.d.ts index d4ba2d0af59..2cbbd563251 100644 --- a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemRecentCommentsItem.d.ts +++ b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemRecentCommentsItem.d.ts @@ -13,14 +13,14 @@ export declare namespace GetUserActivityResponseItemRecentCommentsItem { interface Raw { id: number; address: string; + user_id?: number | null; + profile_name?: string | null; + profile_avatar?: string | null; text: string; created_at: string; updated_at?: string | null; deleted_at?: string | null; marked_as_spam_at?: string | null; discord_meta?: GetUserActivityResponseItemRecentCommentsItemDiscordMeta.Raw | null; - profile_name?: string | null; - profile_avatar_url?: string | null; - user_id?: number | null; } } diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemRecentCommentsItem.js b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemRecentCommentsItem.js index e44389192bc..4788e971fbc 100644 --- a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemRecentCommentsItem.js +++ b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemRecentCommentsItem.js @@ -7,6 +7,18 @@ export const GetUserActivityResponseItemRecentCommentsItem = core.serialization.object({ id: core.serialization.number(), address: core.serialization.string(), + userId: core.serialization.property( + 'user_id', + core.serialization.number().optional(), + ), + profileName: core.serialization.property( + 'profile_name', + core.serialization.string().optional(), + ), + profileAvatar: core.serialization.property( + 'profile_avatar', + core.serialization.string().optional(), + ), text: core.serialization.string(), createdAt: core.serialization.property( 'created_at', @@ -28,16 +40,4 @@ export const GetUserActivityResponseItemRecentCommentsItem = 'discord_meta', GetUserActivityResponseItemRecentCommentsItemDiscordMeta.optional(), ), - profileName: core.serialization.property( - 'profile_name', - core.serialization.string().optional(), - ), - profileAvatarUrl: core.serialization.property( - 'profile_avatar_url', - core.serialization.string().optional(), - ), - userId: core.serialization.property( - 'user_id', - core.serialization.number().optional(), - ), }); diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThread.d.ts b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThread.d.ts deleted file mode 100644 index 5fd44dea174..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThread.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../../api/index'; -import * as core from '../../../../core'; -import * as serializers from '../../../index'; -import { GetUserActivityResponseItemThreadDiscordMeta } from './GetUserActivityResponseItemThreadDiscordMeta'; -import { GetUserActivityResponseItemThreadTopic } from './GetUserActivityResponseItemThreadTopic'; -export declare const GetUserActivityResponseItemThread: core.serialization.ObjectSchema< - serializers.GetUserActivityResponseItemThread.Raw, - CommonApi.GetUserActivityResponseItemThread ->; -export declare namespace GetUserActivityResponseItemThread { - interface Raw { - id: number; - community_id: string; - body: string; - title: string; - numberOfComments: number; - created_at?: string | null; - updated_at?: string | null; - deleted_at?: string | null; - locked_at?: string | null; - kind: string; - stage: string; - archived_at?: string | null; - read_only: boolean; - has_poll?: boolean | null; - marked_as_spam_at?: string | null; - discord_meta?: GetUserActivityResponseItemThreadDiscordMeta.Raw | null; - profile_name?: string | null; - profile_avatar?: string | null; - user_id: number; - user_address: string; - topic: GetUserActivityResponseItemThreadTopic.Raw; - } -} diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThread.js b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThread.js deleted file mode 100644 index f309826e29c..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThread.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as core from '../../../../core'; -import { GetUserActivityResponseItemThreadDiscordMeta } from './GetUserActivityResponseItemThreadDiscordMeta'; -import { GetUserActivityResponseItemThreadTopic } from './GetUserActivityResponseItemThreadTopic'; -export const GetUserActivityResponseItemThread = core.serialization.object({ - id: core.serialization.number(), - communityId: core.serialization.property( - 'community_id', - core.serialization.string(), - ), - body: core.serialization.string(), - title: core.serialization.string(), - numberOfComments: core.serialization.number(), - createdAt: core.serialization.property( - 'created_at', - core.serialization.string().optional(), - ), - updatedAt: core.serialization.property( - 'updated_at', - core.serialization.string().optional(), - ), - deletedAt: core.serialization.property( - 'deleted_at', - core.serialization.string().optional(), - ), - lockedAt: core.serialization.property( - 'locked_at', - core.serialization.string().optional(), - ), - kind: core.serialization.string(), - stage: core.serialization.string(), - archivedAt: core.serialization.property( - 'archived_at', - core.serialization.string().optional(), - ), - readOnly: core.serialization.property( - 'read_only', - core.serialization.boolean(), - ), - hasPoll: core.serialization.property( - 'has_poll', - core.serialization.boolean().optional(), - ), - markedAsSpamAt: core.serialization.property( - 'marked_as_spam_at', - core.serialization.string().optional(), - ), - discordMeta: core.serialization.property( - 'discord_meta', - GetUserActivityResponseItemThreadDiscordMeta.optional(), - ), - profileName: core.serialization.property( - 'profile_name', - core.serialization.string().optional(), - ), - profileAvatar: core.serialization.property( - 'profile_avatar', - core.serialization.string().optional(), - ), - userId: core.serialization.property('user_id', core.serialization.number()), - userAddress: core.serialization.property( - 'user_address', - core.serialization.string(), - ), - topic: GetUserActivityResponseItemThreadTopic, -}); diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadDiscordMeta.d.ts b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadDiscordMeta.d.ts deleted file mode 100644 index 05d0510a717..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadDiscordMeta.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../../api/index'; -import * as core from '../../../../core'; -import * as serializers from '../../../index'; -import { GetUserActivityResponseItemThreadDiscordMetaUser } from './GetUserActivityResponseItemThreadDiscordMetaUser'; -export declare const GetUserActivityResponseItemThreadDiscordMeta: core.serialization.ObjectSchema< - serializers.GetUserActivityResponseItemThreadDiscordMeta.Raw, - CommonApi.GetUserActivityResponseItemThreadDiscordMeta ->; -export declare namespace GetUserActivityResponseItemThreadDiscordMeta { - interface Raw { - user: GetUserActivityResponseItemThreadDiscordMetaUser.Raw; - channel_id: string; - message_id: string; - } -} diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadDiscordMetaUser.d.ts b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadDiscordMetaUser.d.ts deleted file mode 100644 index 27d55cc03e9..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadDiscordMetaUser.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as CommonApi from '../../../../api/index'; -import * as core from '../../../../core'; -import * as serializers from '../../../index'; -export declare const GetUserActivityResponseItemThreadDiscordMetaUser: core.serialization.ObjectSchema< - serializers.GetUserActivityResponseItemThreadDiscordMetaUser.Raw, - CommonApi.GetUserActivityResponseItemThreadDiscordMetaUser ->; -export declare namespace GetUserActivityResponseItemThreadDiscordMetaUser { - interface Raw { - id: string; - username: string; - } -} diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadTopic.js b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadTopic.js deleted file mode 100644 index ed1d22c098d..00000000000 --- a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadTopic.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ -import * as core from '../../../../core'; -export const GetUserActivityResponseItemThreadTopic = core.serialization.object( - { - id: core.serialization.number(), - name: core.serialization.string(), - description: core.serialization.string(), - }, -); diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadTopic.d.ts b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemTopic.d.ts similarity index 52% rename from libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadTopic.d.ts rename to libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemTopic.d.ts index 9091b6f7425..513fb2ccfb5 100644 --- a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemThreadTopic.d.ts +++ b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemTopic.d.ts @@ -4,11 +4,11 @@ import * as CommonApi from '../../../../api/index'; import * as core from '../../../../core'; import * as serializers from '../../../index'; -export declare const GetUserActivityResponseItemThreadTopic: core.serialization.ObjectSchema< - serializers.GetUserActivityResponseItemThreadTopic.Raw, - CommonApi.GetUserActivityResponseItemThreadTopic +export declare const GetUserActivityResponseItemTopic: core.serialization.ObjectSchema< + serializers.GetUserActivityResponseItemTopic.Raw, + CommonApi.GetUserActivityResponseItemTopic >; -export declare namespace GetUserActivityResponseItemThreadTopic { +export declare namespace GetUserActivityResponseItemTopic { interface Raw { id: number; name: string; diff --git a/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemTopic.js b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemTopic.js new file mode 100644 index 00000000000..b9556d6ca5e --- /dev/null +++ b/libs/api-client/src/serialization/resources/user/types/GetUserActivityResponseItemTopic.js @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +import * as core from '../../../../core'; +export const GetUserActivityResponseItemTopic = core.serialization.object({ + id: core.serialization.number(), + name: core.serialization.string(), + description: core.serialization.string(), +}); diff --git a/libs/api-client/src/serialization/resources/user/types/index.d.ts b/libs/api-client/src/serialization/resources/user/types/index.d.ts index 8af3cf3d4d1..150b153c887 100644 --- a/libs/api-client/src/serialization/resources/user/types/index.d.ts +++ b/libs/api-client/src/serialization/resources/user/types/index.d.ts @@ -1,17 +1,8 @@ -export * from './GetGlobalActivityResponseItem'; -export * from './GetGlobalActivityResponseItemRecentCommentsItem'; -export * from './GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta'; -export * from './GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser'; -export * from './GetGlobalActivityResponseItemThread'; -export * from './GetGlobalActivityResponseItemThreadDiscordMeta'; -export * from './GetGlobalActivityResponseItemThreadDiscordMetaUser'; -export * from './GetGlobalActivityResponseItemThreadTopic'; export * from './GetNewContentResponse'; export * from './GetUserActivityResponseItem'; +export * from './GetUserActivityResponseItemDiscordMeta'; +export * from './GetUserActivityResponseItemDiscordMetaUser'; export * from './GetUserActivityResponseItemRecentCommentsItem'; export * from './GetUserActivityResponseItemRecentCommentsItemDiscordMeta'; export * from './GetUserActivityResponseItemRecentCommentsItemDiscordMetaUser'; -export * from './GetUserActivityResponseItemThread'; -export * from './GetUserActivityResponseItemThreadDiscordMeta'; -export * from './GetUserActivityResponseItemThreadDiscordMetaUser'; -export * from './GetUserActivityResponseItemThreadTopic'; +export * from './GetUserActivityResponseItemTopic'; diff --git a/libs/api-client/src/serialization/resources/user/types/index.js b/libs/api-client/src/serialization/resources/user/types/index.js index 8af3cf3d4d1..150b153c887 100644 --- a/libs/api-client/src/serialization/resources/user/types/index.js +++ b/libs/api-client/src/serialization/resources/user/types/index.js @@ -1,17 +1,8 @@ -export * from './GetGlobalActivityResponseItem'; -export * from './GetGlobalActivityResponseItemRecentCommentsItem'; -export * from './GetGlobalActivityResponseItemRecentCommentsItemDiscordMeta'; -export * from './GetGlobalActivityResponseItemRecentCommentsItemDiscordMetaUser'; -export * from './GetGlobalActivityResponseItemThread'; -export * from './GetGlobalActivityResponseItemThreadDiscordMeta'; -export * from './GetGlobalActivityResponseItemThreadDiscordMetaUser'; -export * from './GetGlobalActivityResponseItemThreadTopic'; export * from './GetNewContentResponse'; export * from './GetUserActivityResponseItem'; +export * from './GetUserActivityResponseItemDiscordMeta'; +export * from './GetUserActivityResponseItemDiscordMetaUser'; export * from './GetUserActivityResponseItemRecentCommentsItem'; export * from './GetUserActivityResponseItemRecentCommentsItemDiscordMeta'; export * from './GetUserActivityResponseItemRecentCommentsItemDiscordMetaUser'; -export * from './GetUserActivityResponseItemThread'; -export * from './GetUserActivityResponseItemThreadDiscordMeta'; -export * from './GetUserActivityResponseItemThreadDiscordMetaUser'; -export * from './GetUserActivityResponseItemThreadTopic'; +export * from './GetUserActivityResponseItemTopic'; diff --git a/libs/schemas/src/queries/feed.schemas.ts b/libs/schemas/src/queries/feed.schemas.ts index fdc1bc4f03a..7c59bc97ebd 100644 --- a/libs/schemas/src/queries/feed.schemas.ts +++ b/libs/schemas/src/queries/feed.schemas.ts @@ -47,7 +47,7 @@ export const ActivityThread = z.object({ export const ActivityFeed = { input: z.object({ - is_global: z.boolean(), + is_global: z.boolean().optional(), thread_limit: z.number().optional(), comment_limit: z.number().optional(), }),