From 6dcc9d9cf670dae5d2b738a59ba777c9583e05f1 Mon Sep 17 00:00:00 2001 From: Jeff Murray Date: Fri, 6 Mar 2026 15:15:56 -0600 Subject: [PATCH 1/2] Update to latest spec --- api.ts | 288 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- spec.yml | 198 +++++++++++++++++++++++++++++++++++++- 2 files changed, 479 insertions(+), 7 deletions(-) diff --git a/api.ts b/api.ts index 2759669..d998b7b 100644 --- a/api.ts +++ b/api.ts @@ -2368,7 +2368,7 @@ export interface CreateReplyRequestDataAttributes { * @type {string} * @memberof CreateReplyRequestDataAttributes */ - body: string; + body?: string; /** * * @type {boolean} @@ -2381,6 +2381,12 @@ export interface CreateReplyRequestDataAttributes { * @memberof CreateReplyRequestDataAttributes */ reference?: CreateSceneReference; + /** + * + * @type {WithBodyDocument} + * @memberof CreateReplyRequestDataAttributes + */ + withBodyDocument?: WithBodyDocument; } /** * @@ -3391,6 +3397,12 @@ export interface CreateThreadRequestDataAttributes { * @memberof CreateThreadRequestDataAttributes */ reference?: CreateSceneReference; + /** + * + * @type {WithBodyDocument} + * @memberof CreateThreadRequestDataAttributes + */ + withBodyDocument?: WithBodyDocument; } /** * @@ -4903,6 +4915,51 @@ export interface HitResultDataRelationships { */ sceneItem: RelationshipData; } +/** + * + * @export + * @interface KnownUser + */ +export interface KnownUser { + /** + * + * @type {string} + * @memberof KnownUser + */ + type: KnownUserTypeEnum; + /** + * ID of the resource. + * @type {string} + * @memberof KnownUser + */ + id: string; + /** + * + * @type {string} + * @memberof KnownUser + */ + idpId: string; + /** + * + * @type {string} + * @memberof KnownUser + */ + email: string; + /** + * + * @type {string} + * @memberof KnownUser + */ + fullName: string; +} + +export const KnownUserTypeEnum = { + KnownUser: 'known-user', +} as const; + +export type KnownUserTypeEnum = + (typeof KnownUserTypeEnum)[keyof typeof KnownUserTypeEnum]; + /** * * @export @@ -5048,6 +5105,33 @@ export interface Matrix4Nullable { */ r3: Vector4; } +/** + * + * @export + * @interface MentionNode + */ +export interface MentionNode { + /** + * + * @type {string} + * @memberof MentionNode + */ + type: MentionNodeTypeEnum; + /** + * ID of the resource. + * @type {string} + * @memberof MentionNode + */ + userId: string; +} + +export const MentionNodeTypeEnum = { + MentionNode: 'mention-node', +} as const; + +export type MentionNodeTypeEnum = + (typeof MentionNodeTypeEnum)[keyof typeof MentionNodeTypeEnum]; + /** * * @export @@ -5382,6 +5466,33 @@ export const OvalItem2dTypeEnum = { export type OvalItem2dTypeEnum = (typeof OvalItem2dTypeEnum)[keyof typeof OvalItem2dTypeEnum]; +/** + * + * @export + * @interface ParagraphNode + */ +export interface ParagraphNode { + /** + * + * @type {string} + * @memberof ParagraphNode + */ + type: ParagraphNodeTypeEnum; + /** + * List of paragraph nodes + * @type {Array} + * @memberof ParagraphNode + */ + content: Array; +} + +export const ParagraphNodeTypeEnum = { + ParagraphNode: 'paragraph-node', +} as const; + +export type ParagraphNodeTypeEnum = + (typeof ParagraphNodeTypeEnum)[keyof typeof ParagraphNodeTypeEnum]; + /** * * @export @@ -7445,9 +7556,9 @@ export interface ReplyDataAttributes { * @type {string} * @memberof ReplyDataAttributes */ - body: string; + body?: string; /** - * Indicates whether or not the thread is in a drafted state + * Indicates whether or not the reply is in a drafted state * @type {boolean} * @memberof ReplyDataAttributes */ @@ -7458,6 +7569,18 @@ export interface ReplyDataAttributes { * @memberof ReplyDataAttributes */ reference?: SceneReference; + /** + * + * @type {TextDocument} + * @memberof ReplyDataAttributes + */ + bodyDocument?: TextDocument; + /** + * List of mentions in the reply + * @type {Array} + * @memberof ReplyDataAttributes + */ + mentions: Array; } /** * @@ -7548,6 +7671,33 @@ export interface RevokeOAuth2TokenRequestDataAttributes { */ token: string; } +/** + * + * @export + * @interface RootNode + */ +export interface RootNode { + /** + * + * @type {string} + * @memberof RootNode + */ + type: RootNodeTypeEnum; + /** + * List of nodes + * @type {Array} + * @memberof RootNode + */ + content: Array; +} + +export const RootNodeTypeEnum = { + RootNode: 'root-node', +} as const; + +export type RootNodeTypeEnum = + (typeof RootNodeTypeEnum)[keyof typeof RootNodeTypeEnum]; + /** * * @export @@ -9490,6 +9640,60 @@ export interface StrokeStyle { */ thickness: number; } +/** + * + * @export + * @interface TextDocument + */ +export interface TextDocument { + /** + * + * @type {string} + * @memberof TextDocument + */ + type: TextDocumentTypeEnum; + /** + * + * @type {RootNode} + * @memberof TextDocument + */ + root: RootNode; +} + +export const TextDocumentTypeEnum = { + TextDocumentV1: 'text-document-v1', +} as const; + +export type TextDocumentTypeEnum = + (typeof TextDocumentTypeEnum)[keyof typeof TextDocumentTypeEnum]; + +/** + * + * @export + * @interface TextNode + */ +export interface TextNode { + /** + * + * @type {string} + * @memberof TextNode + */ + type: TextNodeTypeEnum; + /** + * + * @type {string} + * @memberof TextNode + */ + text: string; +} + +export const TextNodeTypeEnum = { + TextNode: 'text-node', +} as const; + +export type TextNodeTypeEnum = + (typeof TextNodeTypeEnum)[keyof typeof TextNodeTypeEnum]; + /** * * @export @@ -9626,6 +9830,18 @@ export interface ThreadDataAttributes { * @memberof ThreadDataAttributes */ reference?: SceneReference; + /** + * + * @type {TextDocument} + * @memberof ThreadDataAttributes + */ + bodyDocument?: TextDocument; + /** + * List of mentions in the thread + * @type {Array} + * @memberof ThreadDataAttributes + */ + mentions: Array; } /** * @@ -9825,6 +10041,33 @@ export interface TranslationInspectionJobDataAttributes { */ missing: Array; } +/** + * + * @export + * @interface UnknownUser + */ +export interface UnknownUser { + /** + * + * @type {string} + * @memberof UnknownUser + */ + type: UnknownUserTypeEnum; + /** + * ID of the resource. + * @type {string} + * @memberof UnknownUser + */ + id: string; +} + +export const UnknownUserTypeEnum = { + UnknownUser: 'unknown-user', +} as const; + +export type UnknownUserTypeEnum = + (typeof UnknownUserTypeEnum)[keyof typeof UnknownUserTypeEnum]; + /** * * @export @@ -10300,6 +10543,12 @@ export interface UpdateReplyRequestDataAttributes { * @memberof UpdateReplyRequestDataAttributes */ isDrafting?: boolean; + /** + * + * @type {WithBodyDocument} + * @memberof UpdateReplyRequestDataAttributes + */ + withBodyDocument?: WithBodyDocument; } /** * @@ -10812,6 +11061,12 @@ export interface UpdateThreadRequestDataAttributes { * @memberof UpdateThreadRequestDataAttributes */ body?: string | null; + /** + * + * @type {WithBodyDocument} + * @memberof UpdateThreadRequestDataAttributes + */ + withBodyDocument?: WithBodyDocument; } /** * @@ -11880,6 +12135,33 @@ export interface WebhookSubscriptionList { */ links: { [key: string]: Link }; } +/** + * + * @export + * @interface WithBodyDocument + */ +export interface WithBodyDocument { + /** + * + * @type {string} + * @memberof WithBodyDocument + */ + type: WithBodyDocumentTypeEnum; + /** + * + * @type {TextDocument} + * @memberof WithBodyDocument + */ + document: TextDocument; +} + +export const WithBodyDocumentTypeEnum = { + WithBodyDocument: 'with-body-document', +} as const; + +export type WithBodyDocumentTypeEnum = + (typeof WithBodyDocumentTypeEnum)[keyof typeof WithBodyDocumentTypeEnum]; + /** * * @export diff --git a/spec.yml b/spec.yml index e28cbe4..87cfdc1 100644 --- a/spec.yml +++ b/spec.yml @@ -13873,6 +13873,19 @@ components: - sceneId - type type: object + WithBodyDocument: + additionalProperties: false + properties: + type: + enum: + - with-body-document + type: string + document: + $ref: '#/components/schemas/TextDocument' + required: + - document + - type + type: object ThreadData: additionalProperties: false properties: @@ -15704,6 +15717,19 @@ components: - sceneViewStateId - type type: object + TextDocument: + additionalProperties: false + properties: + type: + enum: + - text-document-v1 + type: string + root: + $ref: '#/components/schemas/RootNode' + required: + - root + - type + type: object SceneReference: additionalProperties: false description: A reference to a scene for a thread. @@ -15747,6 +15773,52 @@ components: - thumbnails - type type: object + KnownUser: + additionalProperties: false + properties: + type: + enum: + - known-user + type: string + id: + description: ID of the resource. + example: f79d4760-0b71-44e4-ad0b-22743fdd4ca3 + format: uuid + maxLength: 36 + type: string + idpId: + example: some-string + maxLength: 1024 + minLength: 1 + type: string + email: + type: string + fullName: + type: string + required: + - email + - fullName + - id + - idpId + - type + type: object + UnknownUser: + additionalProperties: false + properties: + type: + enum: + - unknown-user + type: string + id: + description: ID of the resource. + example: f79d4760-0b71-44e4-ad0b-22743fdd4ca3 + format: uuid + maxLength: 36 + type: string + required: + - id + - type + type: object CollaborationContextRelationship: additionalProperties: false properties: @@ -16711,6 +16783,29 @@ components: - primaryColor - type type: object + RootNode: + additionalProperties: false + properties: + type: + enum: + - root-node + type: string + content: + description: List of nodes + items: + description: An individual block node + discriminator: + mapping: + paragraph-node: '#/components/schemas/ParagraphNode' + propertyName: type + oneOf: + - $ref: '#/components/schemas/ParagraphNode' + maxItems: 100 + type: array + required: + - content + - type + type: object SelectFileById: additionalProperties: false description: Queries a file by its unique ID. @@ -16988,6 +17083,64 @@ components: - g - r type: object + ParagraphNode: + additionalProperties: false + properties: + type: + enum: + - paragraph-node + type: string + content: + description: List of paragraph nodes + items: + description: An inline node + discriminator: + mapping: + text-node: '#/components/schemas/TextNode' + mention-node: '#/components/schemas/MentionNode' + propertyName: type + oneOf: + - $ref: '#/components/schemas/TextNode' + - $ref: '#/components/schemas/MentionNode' + maxItems: 100 + type: array + required: + - content + - type + type: object + TextNode: + additionalProperties: false + properties: + type: + enum: + - text-node + type: string + text: + example: some-string + maxLength: 1024 + minLength: 1 + type: string + required: + - text + - type + type: object + MentionNode: + additionalProperties: false + properties: + type: + enum: + - mention-node + type: string + userId: + description: ID of the resource. + example: f79d4760-0b71-44e4-ad0b-22743fdd4ca3 + format: uuid + maxLength: 36 + type: string + required: + - type + - userId + type: object CreateAccountRequest_data_attributes: properties: name: @@ -17308,6 +17461,8 @@ components: propertyName: type oneOf: - $ref: '#/components/schemas/CreateSceneReference' + withBodyDocument: + $ref: '#/components/schemas/WithBodyDocument' required: - status - type @@ -17338,6 +17493,8 @@ components: body: nullable: true type: string + withBodyDocument: + $ref: '#/components/schemas/WithBodyDocument' type: object UpdateThreadRequest_data: properties: @@ -17571,6 +17728,8 @@ components: type: string isDrafting: type: boolean + withBodyDocument: + $ref: '#/components/schemas/WithBodyDocument' type: object UpdateReplyRequest_data: properties: @@ -17596,8 +17755,8 @@ components: propertyName: type oneOf: - $ref: '#/components/schemas/CreateSceneReference' - required: - - body + withBodyDocument: + $ref: '#/components/schemas/WithBodyDocument' type: object CreateReplyRequest_data: properties: @@ -19102,9 +19261,25 @@ components: propertyName: type oneOf: - $ref: '#/components/schemas/SceneReference' + bodyDocument: + $ref: '#/components/schemas/TextDocument' + mentions: + description: List of mentions in the thread + items: + description: An individual mention + discriminator: + mapping: + known-user: '#/components/schemas/KnownUser' + unknown-user: '#/components/schemas/UnknownUser' + propertyName: type + oneOf: + - $ref: '#/components/schemas/KnownUser' + - $ref: '#/components/schemas/UnknownUser' + type: array required: - createdAt - isDrafting + - mentions - modifiedAt - status - type @@ -19224,17 +19399,32 @@ components: body: type: string isDrafting: - description: Indicates whether or not the thread is in a drafted state + description: Indicates whether or not the reply is in a drafted state type: boolean reference: discriminator: propertyName: type oneOf: - $ref: '#/components/schemas/SceneReference' + bodyDocument: + $ref: '#/components/schemas/TextDocument' + mentions: + description: List of mentions in the reply + items: + description: An individual mention + discriminator: + mapping: + known-user: '#/components/schemas/KnownUser' + unknown-user: '#/components/schemas/UnknownUser' + propertyName: type + oneOf: + - $ref: '#/components/schemas/KnownUser' + - $ref: '#/components/schemas/UnknownUser' + type: array required: - - body - createdAt - isDrafting + - mentions - modifiedAt type: object ReplyData_relationships: From b7bd7799739f1b9106122fe579dfb56f83678490 Mon Sep 17 00:00:00 2001 From: Jeff Murray Date: Fri, 6 Mar 2026 15:18:05 -0600 Subject: [PATCH 2/2] v0.39.0 --- client/version.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/version.ts b/client/version.ts index 9e18758..cfad1a3 100644 --- a/client/version.ts +++ b/client/version.ts @@ -1 +1 @@ -export const version = '0.38.0'; +export const version = '0.39.0'; diff --git a/package.json b/package.json index c583474..2f4c3c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vertexvis/api-client-node", - "version": "0.38.0", + "version": "0.39.0", "description": "The Vertex REST API client for Node.js.", "license": "MIT", "author": "Vertex Developers (https://developer.vertexvis.com)",