summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk
diff options
context:
space:
mode:
Diffstat (limited to 'packages/sdk')
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts36
-rw-r--r--packages/sdk/openapi.json233
2 files changed, 198 insertions, 71 deletions
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index 43ce02921..fcdf4c29d 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -1068,36 +1068,36 @@ export type SyncEventSessionUpdated = {
data: {
sessionID: string
info: {
- id?: string
- slug?: string
- projectID?: string
- workspaceID?: string
- directory?: string
- parentID?: string
- summary?: {
+ id: string | null
+ slug: string | null
+ projectID: string | null
+ workspaceID: string | null
+ directory: string | null
+ parentID: string | null
+ summary: {
additions: number
deletions: number
files: number
diffs?: Array<FileDiff>
- }
+ } | null
share?: {
- url?: string
+ url: string | null
}
- title?: string
- version?: string
+ title: string | null
+ version: string | null
time?: {
- created?: number
- updated?: number
- compacting?: number
- archived?: number
+ created: number | null
+ updated: number | null
+ compacting: number | null
+ archived: number | null
}
- permission?: PermissionRuleset
- revert?: {
+ permission: PermissionRuleset | null
+ revert: {
messageID: string
partID?: string
snapshot?: string
diff?: string
- }
+ } | null
}
}
}
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index 053fc5b94..513a0f0ff 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -10048,102 +10048,229 @@
"type": "object",
"properties": {
"id": {
- "type": "string",
- "pattern": "^ses.*"
+ "anyOf": [
+ {
+ "type": "string",
+ "pattern": "^ses.*"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"slug": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"projectID": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"workspaceID": {
- "type": "string",
- "pattern": "^wrk.*"
+ "anyOf": [
+ {
+ "type": "string",
+ "pattern": "^wrk.*"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"directory": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"parentID": {
- "type": "string",
- "pattern": "^ses.*"
+ "anyOf": [
+ {
+ "type": "string",
+ "pattern": "^ses.*"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"summary": {
- "type": "object",
- "properties": {
- "additions": {
- "type": "number"
- },
- "deletions": {
- "type": "number"
- },
- "files": {
- "type": "number"
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "additions": {
+ "type": "number"
+ },
+ "deletions": {
+ "type": "number"
+ },
+ "files": {
+ "type": "number"
+ },
+ "diffs": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/FileDiff"
+ }
+ }
+ },
+ "required": ["additions", "deletions", "files"]
},
- "diffs": {
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/FileDiff"
- }
+ {
+ "type": "null"
}
- },
- "required": ["additions", "deletions", "files"]
+ ]
},
"share": {
"type": "object",
"properties": {
"url": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
- }
+ },
+ "required": ["url"]
},
"title": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"version": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"time": {
"type": "object",
"properties": {
"created": {
- "type": "number"
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"updated": {
- "type": "number"
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"compacting": {
- "type": "number"
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"archived": {
- "type": "number"
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
}
- }
+ },
+ "required": ["created", "updated", "compacting", "archived"]
},
"permission": {
- "$ref": "#/components/schemas/PermissionRuleset"
+ "anyOf": [
+ {
+ "$ref": "#/components/schemas/PermissionRuleset"
+ },
+ {
+ "type": "null"
+ }
+ ]
},
"revert": {
- "type": "object",
- "properties": {
- "messageID": {
- "type": "string",
- "pattern": "^msg.*"
- },
- "partID": {
- "type": "string",
- "pattern": "^prt.*"
- },
- "snapshot": {
- "type": "string"
+ "anyOf": [
+ {
+ "type": "object",
+ "properties": {
+ "messageID": {
+ "type": "string",
+ "pattern": "^msg.*"
+ },
+ "partID": {
+ "type": "string",
+ "pattern": "^prt.*"
+ },
+ "snapshot": {
+ "type": "string"
+ },
+ "diff": {
+ "type": "string"
+ }
+ },
+ "required": ["messageID"]
},
- "diff": {
- "type": "string"
+ {
+ "type": "null"
}
- },
- "required": ["messageID"]
+ ]
}
- }
+ },
+ "required": [
+ "id",
+ "slug",
+ "projectID",
+ "workspaceID",
+ "directory",
+ "parentID",
+ "summary",
+ "title",
+ "version",
+ "permission",
+ "revert"
+ ]
}
},
"required": ["sessionID", "info"]