Skip to content

Commit bf90f42

Browse files
ctategithub-actions[bot]
authored andcommitted
chore: update SDK from OpenAPI spec
1 parent 95d9e07 commit bf90f42

File tree

2 files changed

+199
-3
lines changed

2 files changed

+199
-3
lines changed

packages/v0-sdk/openapi.json

Lines changed: 163 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7262,9 +7262,48 @@
72627262
"type": "string",
72637263
"description": "API URL to access this message via the API."
72647264
},
7265+
"authorId": {
7266+
"type": ["string", "null"],
7267+
"description": "The ID of the user who sent the message."
7268+
},
72657269
"parentId": {
72667270
"type": ["string", "null"],
72677271
"description": "The ID of the parent message."
7272+
},
7273+
"attachments": {
7274+
"type": "array",
7275+
"items": {
7276+
"type": "object",
7277+
"properties": {
7278+
"url": {
7279+
"type": "string",
7280+
"description": "The URL where the attachment file can be accessed."
7281+
},
7282+
"name": {
7283+
"type": "string",
7284+
"description": "The original filename of the attachment."
7285+
},
7286+
"contentType": {
7287+
"type": "string",
7288+
"description": "The MIME type of the attachment file (e.g., image/png, application/pdf)."
7289+
},
7290+
"size": {
7291+
"type": "number",
7292+
"description": "The size of the attachment file in bytes."
7293+
},
7294+
"content": {
7295+
"type": "string",
7296+
"description": "The base64-encoded content of the attachment file, if available."
7297+
},
7298+
"v0Type": {
7299+
"type": "string",
7300+
"enum": ["screenshot", "figma", "zip"],
7301+
"description": "Optional v0-specific attachment type for enhanced processing."
7302+
}
7303+
},
7304+
"required": ["url", "size"],
7305+
"additionalProperties": false
7306+
}
72687307
}
72697308
},
72707309
"required": [
@@ -7274,7 +7313,8 @@
72747313
"createdAt",
72757314
"type",
72767315
"role",
7277-
"apiUrl"
7316+
"apiUrl",
7317+
"authorId"
72787318
],
72797319
"additionalProperties": false,
72807320
"description": "Summary of a single message within a chat, including role, content, type, timestamp, and API URL."
@@ -8255,10 +8295,49 @@
82558295
"type": "string",
82568296
"description": "API URL to access this message via the API."
82578297
},
8298+
"authorId": {
8299+
"type": ["string", "null"],
8300+
"description": "The ID of the user who sent the message."
8301+
},
82588302
"parentId": {
82598303
"type": ["string", "null"],
82608304
"description": "The ID of the parent message."
82618305
},
8306+
"attachments": {
8307+
"type": "array",
8308+
"items": {
8309+
"type": "object",
8310+
"properties": {
8311+
"url": {
8312+
"type": "string",
8313+
"description": "The URL where the attachment file can be accessed."
8314+
},
8315+
"name": {
8316+
"type": "string",
8317+
"description": "The original filename of the attachment."
8318+
},
8319+
"contentType": {
8320+
"type": "string",
8321+
"description": "The MIME type of the attachment file (e.g., image/png, application/pdf)."
8322+
},
8323+
"size": {
8324+
"type": "number",
8325+
"description": "The size of the attachment file in bytes."
8326+
},
8327+
"content": {
8328+
"type": "string",
8329+
"description": "The base64-encoded content of the attachment file, if available."
8330+
},
8331+
"v0Type": {
8332+
"type": "string",
8333+
"enum": ["screenshot", "figma", "zip"],
8334+
"description": "Optional v0-specific attachment type for enhanced processing."
8335+
}
8336+
},
8337+
"required": ["url", "size"],
8338+
"additionalProperties": false
8339+
}
8340+
},
82628341
"chatId": {
82638342
"type": "string",
82648343
"description": "The ID of the chat to which this message belongs."
@@ -8272,6 +8351,7 @@
82728351
"type",
82738352
"role",
82748353
"apiUrl",
8354+
"authorId",
82758355
"chatId"
82768356
],
82778357
"additionalProperties": false,
@@ -8391,9 +8471,48 @@
83918471
"type": "string",
83928472
"description": "API URL to access this message via the API."
83938473
},
8474+
"authorId": {
8475+
"type": ["string", "null"],
8476+
"description": "The ID of the user who sent the message."
8477+
},
83948478
"parentId": {
83958479
"type": ["string", "null"],
83968480
"description": "The ID of the parent message."
8481+
},
8482+
"attachments": {
8483+
"type": "array",
8484+
"items": {
8485+
"type": "object",
8486+
"properties": {
8487+
"url": {
8488+
"type": "string",
8489+
"description": "The URL where the attachment file can be accessed."
8490+
},
8491+
"name": {
8492+
"type": "string",
8493+
"description": "The original filename of the attachment."
8494+
},
8495+
"contentType": {
8496+
"type": "string",
8497+
"description": "The MIME type of the attachment file (e.g., image/png, application/pdf)."
8498+
},
8499+
"size": {
8500+
"type": "number",
8501+
"description": "The size of the attachment file in bytes."
8502+
},
8503+
"content": {
8504+
"type": "string",
8505+
"description": "The base64-encoded content of the attachment file, if available."
8506+
},
8507+
"v0Type": {
8508+
"type": "string",
8509+
"enum": ["screenshot", "figma", "zip"],
8510+
"description": "Optional v0-specific attachment type for enhanced processing."
8511+
}
8512+
},
8513+
"required": ["url", "size"],
8514+
"additionalProperties": false
8515+
}
83978516
}
83988517
},
83998518
"required": [
@@ -8403,7 +8522,8 @@
84038522
"createdAt",
84048523
"type",
84058524
"role",
8406-
"apiUrl"
8525+
"apiUrl",
8526+
"authorId"
84078527
],
84088528
"additionalProperties": false,
84098529
"description": "Summary of a single message within a chat, including role, content, type, timestamp, and API URL."
@@ -8532,9 +8652,48 @@
85328652
"type": "string",
85338653
"description": "API URL to access this message via the API."
85348654
},
8655+
"authorId": {
8656+
"type": ["string", "null"],
8657+
"description": "The ID of the user who sent the message."
8658+
},
85358659
"parentId": {
85368660
"type": ["string", "null"],
85378661
"description": "The ID of the parent message."
8662+
},
8663+
"attachments": {
8664+
"type": "array",
8665+
"items": {
8666+
"type": "object",
8667+
"properties": {
8668+
"url": {
8669+
"type": "string",
8670+
"description": "The URL where the attachment file can be accessed."
8671+
},
8672+
"name": {
8673+
"type": "string",
8674+
"description": "The original filename of the attachment."
8675+
},
8676+
"contentType": {
8677+
"type": "string",
8678+
"description": "The MIME type of the attachment file (e.g., image/png, application/pdf)."
8679+
},
8680+
"size": {
8681+
"type": "number",
8682+
"description": "The size of the attachment file in bytes."
8683+
},
8684+
"content": {
8685+
"type": "string",
8686+
"description": "The base64-encoded content of the attachment file, if available."
8687+
},
8688+
"v0Type": {
8689+
"type": "string",
8690+
"enum": ["screenshot", "figma", "zip"],
8691+
"description": "Optional v0-specific attachment type for enhanced processing."
8692+
}
8693+
},
8694+
"required": ["url", "size"],
8695+
"additionalProperties": false
8696+
}
85388697
}
85398698
},
85408699
"required": [
@@ -8544,7 +8703,8 @@
85448703
"createdAt",
85458704
"type",
85468705
"role",
8547-
"apiUrl"
8706+
"apiUrl",
8707+
"authorId"
85488708
],
85498709
"additionalProperties": false,
85508710
"description": "Summary of a single message within a chat, including role, content, type, timestamp, and API URL."

packages/v0-sdk/src/sdk/v0.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,16 @@ export type ChatDetail = {
7878
| 'other'
7979
| 'unknown'
8080
apiUrl: string
81+
authorId: string | null
8182
parentId?: string | null
83+
attachments?: Array<{
84+
url: string
85+
name?: string
86+
contentType?: string
87+
size: number
88+
content?: string
89+
v0Type?: 'screenshot' | 'figma' | 'zip'
90+
}>
8291
}>
8392
files?: {
8493
lang: string
@@ -340,7 +349,16 @@ export type MessageDetail = {
340349
| 'other'
341350
| 'unknown'
342351
apiUrl: string
352+
authorId: string | null
343353
parentId?: string | null
354+
attachments?: Array<{
355+
url: string
356+
name?: string
357+
contentType?: string
358+
size: number
359+
content?: string
360+
v0Type?: 'screenshot' | 'figma' | 'zip'
361+
}>
344362
chatId: string
345363
}
346364

@@ -387,7 +405,16 @@ export type MessageSummary = {
387405
| 'other'
388406
| 'unknown'
389407
apiUrl: string
408+
authorId: string | null
390409
parentId?: string | null
410+
attachments?: Array<{
411+
url: string
412+
name?: string
413+
contentType?: string
414+
size: number
415+
content?: string
416+
v0Type?: 'screenshot' | 'figma' | 'zip'
417+
}>
391418
}
392419

393420
export type MessageSummaryList = {
@@ -435,7 +462,16 @@ export type MessageSummaryList = {
435462
| 'other'
436463
| 'unknown'
437464
apiUrl: string
465+
authorId: string | null
438466
parentId?: string | null
467+
attachments?: Array<{
468+
url: string
469+
name?: string
470+
contentType?: string
471+
size: number
472+
content?: string
473+
v0Type?: 'screenshot' | 'figma' | 'zip'
474+
}>
439475
}>
440476
pagination: {
441477
hasMore: boolean

0 commit comments

Comments
 (0)