@orchestraworks/cli 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +1 -1
  2. package/dist/artifacts/prelude.js +416 -88
  3. package/dist/cli/api/execute.d.ts +2 -5
  4. package/dist/cli/api/execute.js +67 -40
  5. package/dist/cli/api/raw.d.ts +3 -1
  6. package/dist/cli/api/raw.js +33 -6
  7. package/dist/cli/api/register.js +6 -1
  8. package/dist/cli/preview.d.ts +5 -4
  9. package/dist/cli/preview.js +15 -9
  10. package/dist/cli/upload.d.ts +26 -0
  11. package/dist/cli/upload.js +64 -16
  12. package/dist/generated/cli-commands.d.ts +5 -0
  13. package/dist/generated/cli-commands.json +31100 -17245
  14. package/dist/generated/cli-dispatch.js +99 -0
  15. package/dist/generated/managed-skills.js +1 -0
  16. package/node_modules/@orchestraworks/client/dist/apis/ArtifactsApi.d.ts +3 -3
  17. package/node_modules/@orchestraworks/client/dist/apis/ArtifactsApi.js +2 -2
  18. package/node_modules/@orchestraworks/client/dist/apis/FilesApi.d.ts +292 -2
  19. package/node_modules/@orchestraworks/client/dist/apis/FilesApi.js +988 -30
  20. package/node_modules/@orchestraworks/client/dist/esm/apis/ArtifactsApi.d.ts +3 -3
  21. package/node_modules/@orchestraworks/client/dist/esm/apis/ArtifactsApi.js +2 -2
  22. package/node_modules/@orchestraworks/client/dist/esm/apis/FilesApi.d.ts +292 -2
  23. package/node_modules/@orchestraworks/client/dist/esm/apis/FilesApi.js +986 -28
  24. package/node_modules/@orchestraworks/client/dist/esm/models/Artifact.d.ts +12 -53
  25. package/node_modules/@orchestraworks/client/dist/esm/models/Artifact.js +7 -29
  26. package/node_modules/@orchestraworks/client/dist/esm/models/Comment.d.ts +2 -2
  27. package/node_modules/@orchestraworks/client/dist/esm/models/Comment.js +3 -3
  28. package/node_modules/@orchestraworks/client/dist/esm/models/CommentSummary.d.ts +2 -2
  29. package/node_modules/@orchestraworks/client/dist/esm/models/CommentSummary.js +3 -3
  30. package/node_modules/@orchestraworks/client/dist/esm/models/CopyFileRequest.d.ts +38 -0
  31. package/node_modules/@orchestraworks/client/dist/esm/models/CopyFileRequest.js +47 -0
  32. package/node_modules/@orchestraworks/client/dist/esm/models/CreateArtifactRequest.d.ts +7 -7
  33. package/node_modules/@orchestraworks/client/dist/esm/models/CreateAuthHandoffRequest.d.ts +1 -1
  34. package/node_modules/@orchestraworks/client/dist/esm/models/CreateFileRequest.d.ts +44 -2
  35. package/node_modules/@orchestraworks/client/dist/esm/models/CreateFileRequest.js +14 -0
  36. package/node_modules/@orchestraworks/client/dist/esm/models/CreateRoomTokenRequest.d.ts +1 -1
  37. package/node_modules/@orchestraworks/client/dist/esm/models/FileMatch.d.ts +38 -0
  38. package/node_modules/@orchestraworks/client/dist/esm/models/FileMatch.js +47 -0
  39. package/node_modules/@orchestraworks/client/dist/esm/models/FileVersion.d.ts +101 -0
  40. package/node_modules/@orchestraworks/client/dist/esm/models/FileVersion.js +83 -0
  41. package/node_modules/@orchestraworks/client/dist/esm/models/ModelFile.d.ts +69 -0
  42. package/node_modules/@orchestraworks/client/dist/esm/models/ModelFile.js +36 -0
  43. package/node_modules/@orchestraworks/client/dist/esm/models/PageArtifact.d.ts +51 -0
  44. package/node_modules/@orchestraworks/client/dist/esm/models/{PageArtifactSummary.js → PageArtifact.js} +11 -11
  45. package/node_modules/@orchestraworks/client/dist/esm/models/PageFileVersion.d.ts +51 -0
  46. package/node_modules/@orchestraworks/client/dist/esm/models/PageFileVersion.js +56 -0
  47. package/node_modules/@orchestraworks/client/dist/esm/models/RoomTokenRoom.d.ts +2 -2
  48. package/node_modules/@orchestraworks/client/dist/esm/models/RoomTokenRoom.js +2 -2
  49. package/node_modules/@orchestraworks/client/dist/esm/models/RoomTokenRoomRequest.d.ts +3 -3
  50. package/node_modules/@orchestraworks/client/dist/esm/models/RoomTokenRoomRequest.js +2 -2
  51. package/node_modules/@orchestraworks/client/dist/esm/models/SelectorAnchor.d.ts +24 -0
  52. package/node_modules/@orchestraworks/client/dist/esm/models/SelectorAnchor.js +8 -0
  53. package/node_modules/@orchestraworks/client/dist/esm/models/SnapshotAnchor.d.ts +1 -1
  54. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateArtifactRequest.d.ts +0 -8
  55. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateArtifactRequest.js +0 -2
  56. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateFileRequest.d.ts +40 -0
  57. package/node_modules/@orchestraworks/client/dist/esm/models/UpdateFileRequest.js +43 -0
  58. package/node_modules/@orchestraworks/client/dist/esm/models/WorkItem.d.ts +3 -3
  59. package/node_modules/@orchestraworks/client/dist/esm/models/WorkItem.js +3 -3
  60. package/node_modules/@orchestraworks/client/dist/esm/models/WriteFileDataRequest.d.ts +50 -0
  61. package/node_modules/@orchestraworks/client/dist/esm/models/WriteFileDataRequest.js +51 -0
  62. package/node_modules/@orchestraworks/client/dist/esm/models/index.d.ts +7 -3
  63. package/node_modules/@orchestraworks/client/dist/esm/models/index.js +7 -3
  64. package/node_modules/@orchestraworks/client/dist/models/Artifact.d.ts +12 -53
  65. package/node_modules/@orchestraworks/client/dist/models/Artifact.js +8 -30
  66. package/node_modules/@orchestraworks/client/dist/models/Comment.d.ts +2 -2
  67. package/node_modules/@orchestraworks/client/dist/models/Comment.js +3 -3
  68. package/node_modules/@orchestraworks/client/dist/models/CommentSummary.d.ts +2 -2
  69. package/node_modules/@orchestraworks/client/dist/models/CommentSummary.js +3 -3
  70. package/node_modules/@orchestraworks/client/dist/models/CopyFileRequest.d.ts +38 -0
  71. package/node_modules/@orchestraworks/client/dist/models/CopyFileRequest.js +54 -0
  72. package/node_modules/@orchestraworks/client/dist/models/CreateArtifactRequest.d.ts +7 -7
  73. package/node_modules/@orchestraworks/client/dist/models/CreateAuthHandoffRequest.d.ts +1 -1
  74. package/node_modules/@orchestraworks/client/dist/models/CreateFileRequest.d.ts +44 -2
  75. package/node_modules/@orchestraworks/client/dist/models/CreateFileRequest.js +14 -0
  76. package/node_modules/@orchestraworks/client/dist/models/CreateRoomTokenRequest.d.ts +1 -1
  77. package/node_modules/@orchestraworks/client/dist/models/FileMatch.d.ts +38 -0
  78. package/node_modules/@orchestraworks/client/dist/models/FileMatch.js +54 -0
  79. package/node_modules/@orchestraworks/client/dist/models/FileVersion.d.ts +101 -0
  80. package/node_modules/@orchestraworks/client/dist/models/FileVersion.js +91 -0
  81. package/node_modules/@orchestraworks/client/dist/models/ModelFile.d.ts +69 -0
  82. package/node_modules/@orchestraworks/client/dist/models/ModelFile.js +37 -1
  83. package/node_modules/@orchestraworks/client/dist/models/PageArtifact.d.ts +51 -0
  84. package/node_modules/@orchestraworks/client/dist/models/{PageArtifactSummary.js → PageArtifact.js} +16 -16
  85. package/node_modules/@orchestraworks/client/dist/models/PageFileVersion.d.ts +51 -0
  86. package/node_modules/@orchestraworks/client/dist/models/PageFileVersion.js +63 -0
  87. package/node_modules/@orchestraworks/client/dist/models/RoomTokenRoom.d.ts +2 -2
  88. package/node_modules/@orchestraworks/client/dist/models/RoomTokenRoom.js +2 -2
  89. package/node_modules/@orchestraworks/client/dist/models/RoomTokenRoomRequest.d.ts +3 -3
  90. package/node_modules/@orchestraworks/client/dist/models/RoomTokenRoomRequest.js +2 -2
  91. package/node_modules/@orchestraworks/client/dist/models/SelectorAnchor.d.ts +24 -0
  92. package/node_modules/@orchestraworks/client/dist/models/SelectorAnchor.js +8 -0
  93. package/node_modules/@orchestraworks/client/dist/models/SnapshotAnchor.d.ts +1 -1
  94. package/node_modules/@orchestraworks/client/dist/models/UpdateArtifactRequest.d.ts +0 -8
  95. package/node_modules/@orchestraworks/client/dist/models/UpdateArtifactRequest.js +0 -2
  96. package/node_modules/@orchestraworks/client/dist/models/UpdateFileRequest.d.ts +40 -0
  97. package/node_modules/@orchestraworks/client/dist/models/UpdateFileRequest.js +50 -0
  98. package/node_modules/@orchestraworks/client/dist/models/WorkItem.d.ts +3 -3
  99. package/node_modules/@orchestraworks/client/dist/models/WorkItem.js +3 -3
  100. package/node_modules/@orchestraworks/client/dist/models/WriteFileDataRequest.d.ts +50 -0
  101. package/node_modules/@orchestraworks/client/dist/models/WriteFileDataRequest.js +58 -0
  102. package/node_modules/@orchestraworks/client/dist/models/index.d.ts +7 -3
  103. package/node_modules/@orchestraworks/client/dist/models/index.js +7 -3
  104. package/node_modules/@orchestraworks/client/package.json +1 -1
  105. package/package.json +4 -4
  106. package/templates/engineering-team/package.json +1 -1
  107. package/templates/todo-factory/package.json +1 -1
  108. package/node_modules/@orchestraworks/client/dist/esm/models/ArtifactSummary.d.ts +0 -139
  109. package/node_modules/@orchestraworks/client/dist/esm/models/ArtifactSummary.js +0 -95
  110. package/node_modules/@orchestraworks/client/dist/esm/models/ArtifactVersion.d.ts +0 -110
  111. package/node_modules/@orchestraworks/client/dist/esm/models/ArtifactVersion.js +0 -77
  112. package/node_modules/@orchestraworks/client/dist/esm/models/PageArtifactSummary.d.ts +0 -51
  113. package/node_modules/@orchestraworks/client/dist/models/ArtifactSummary.d.ts +0 -139
  114. package/node_modules/@orchestraworks/client/dist/models/ArtifactSummary.js +0 -103
  115. package/node_modules/@orchestraworks/client/dist/models/ArtifactVersion.d.ts +0 -110
  116. package/node_modules/@orchestraworks/client/dist/models/ArtifactVersion.js +0 -84
  117. package/node_modules/@orchestraworks/client/dist/models/PageArtifactSummary.d.ts +0 -51
@@ -33,7 +33,7 @@ exports.CommentSummaryStatusEnum = {
33
33
  function instanceOfCommentSummary(value) {
34
34
  if (!('id' in value) || value['id'] === undefined)
35
35
  return false;
36
- if (!('artifactId' in value) || value['artifactId'] === undefined)
36
+ if (!('fileId' in value) || value['fileId'] === undefined)
37
37
  return false;
38
38
  if (!('versionNumber' in value) || value['versionNumber'] === undefined)
39
39
  return false;
@@ -60,7 +60,7 @@ function CommentSummaryFromJSONTyped(json, ignoreDiscriminator) {
60
60
  }
61
61
  return {
62
62
  'id': json['id'],
63
- 'artifactId': json['artifactId'],
63
+ 'fileId': json['fileId'],
64
64
  'versionNumber': json['versionNumber'],
65
65
  'anchor': json['anchor'] == null ? undefined : (0, CommentAnchor_1.CommentAnchorFromJSON)(json['anchor']),
66
66
  'status': json['status'],
@@ -82,7 +82,7 @@ function CommentSummaryToJSONTyped(value, ignoreDiscriminator = false) {
82
82
  }
83
83
  return {
84
84
  'id': value['id'],
85
- 'artifactId': value['artifactId'],
85
+ 'fileId': value['fileId'],
86
86
  'versionNumber': value['versionNumber'],
87
87
  'anchor': (0, CommentAnchor_1.CommentAnchorToJSON)(value['anchor']),
88
88
  'status': value['status'],
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Orchestra platform API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CopyFileRequest
16
+ */
17
+ export interface CopyFileRequest {
18
+ /**
19
+ * Library path to copy to, `/{team}/<path>`, in any team the caller may create in
20
+ * @type {string}
21
+ * @memberof CopyFileRequest
22
+ */
23
+ path: string;
24
+ /**
25
+ * The version the caller read at the destination path, or 0 for nothing there. A copy from another team's library file takes 0 only
26
+ * @type {number}
27
+ * @memberof CopyFileRequest
28
+ */
29
+ baseVersion: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CopyFileRequest interface.
33
+ */
34
+ export declare function instanceOfCopyFileRequest(value: object): value is CopyFileRequest;
35
+ export declare function CopyFileRequestFromJSON(json: any): CopyFileRequest;
36
+ export declare function CopyFileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CopyFileRequest;
37
+ export declare function CopyFileRequestToJSON(json: any): CopyFileRequest;
38
+ export declare function CopyFileRequestToJSONTyped(value?: CopyFileRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Orchestra platform API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCopyFileRequest = instanceOfCopyFileRequest;
17
+ exports.CopyFileRequestFromJSON = CopyFileRequestFromJSON;
18
+ exports.CopyFileRequestFromJSONTyped = CopyFileRequestFromJSONTyped;
19
+ exports.CopyFileRequestToJSON = CopyFileRequestToJSON;
20
+ exports.CopyFileRequestToJSONTyped = CopyFileRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CopyFileRequest interface.
23
+ */
24
+ function instanceOfCopyFileRequest(value) {
25
+ if (!('path' in value) || value['path'] === undefined)
26
+ return false;
27
+ if (!('baseVersion' in value) || value['baseVersion'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CopyFileRequestFromJSON(json) {
32
+ return CopyFileRequestFromJSONTyped(json, false);
33
+ }
34
+ function CopyFileRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'path': json['path'],
40
+ 'baseVersion': json['baseVersion'],
41
+ };
42
+ }
43
+ function CopyFileRequestToJSON(json) {
44
+ return CopyFileRequestToJSONTyped(json, false);
45
+ }
46
+ function CopyFileRequestToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'path': value['path'],
52
+ 'baseVersion': value['baseVersion'],
53
+ };
54
+ }
@@ -22,19 +22,19 @@ export interface CreateArtifactRequest {
22
22
  */
23
23
  name: string;
24
24
  /**
25
- * File holding version 1's bytes. Set this or url, never both.
25
+ * A library file to point at, which stays where it sits; or a fixed file, whose bytes become version 1 of a new library file at the default path. Set this or url, never both.
26
26
  * @type {string}
27
27
  * @memberof CreateArtifactRequest
28
28
  */
29
29
  fileId?: string;
30
30
  /**
31
- * Link version 1 points at. Set this or fileId, never both.
31
+ * A link to save as version 1 of a new `text/uri-list` library file at the default path. Set this or fileId, never both.
32
32
  * @type {string}
33
33
  * @memberof CreateArtifactRequest
34
34
  */
35
35
  url?: string;
36
36
  /**
37
- * Conversation publishing it, where the caller must be allowed to send a message; omitted, no conversation hears of changes
37
+ * Conversation publishing it, where the caller must be allowed to send a message, and the made file's version 1 conversation; omitted, no conversation hears of changes
38
38
  * @type {string}
39
39
  * @memberof CreateArtifactRequest
40
40
  */
@@ -52,19 +52,19 @@ export interface CreateArtifactRequest {
52
52
  */
53
53
  slug?: string;
54
54
  /**
55
- * The team to create it in, by id or slug; omitted, it lands in Shared
55
+ * The team to create it in, by id or slug; omitted, it takes the session's team, else Shared. A callout takes its file's team
56
56
  * @type {string}
57
57
  * @memberof CreateArtifactRequest
58
58
  */
59
59
  teamId?: string;
60
60
  /**
61
- * One line saying what this version is, at most 200 characters
61
+ * One line saying what this version is, at most 200 characters, for the made file's version 1; refused with a library fileId
62
62
  * @type {string}
63
63
  * @memberof CreateArtifactRequest
64
64
  */
65
65
  description?: string;
66
66
  /**
67
- * A PNG or JPEG file picturing this version, in the artifact's team or Shared
67
+ * A PNG or JPEG file picturing this version, in the artifact's team or Shared, for the made file's version 1; refused with a library fileId
68
68
  * @type {string}
69
69
  * @memberof CreateArtifactRequest
70
70
  */
@@ -76,7 +76,7 @@ export interface CreateArtifactRequest {
76
76
  */
77
77
  workItemId?: string;
78
78
  /**
79
- * Labels: the customer's key-to-value tags; the platform reads no key
79
+ * Labels: the customer's key-to-value tags; the platform reads no key. Set on the made file; refused with a library fileId
80
80
  * @type {{ [key: string]: string; }}
81
81
  * @memberof CreateArtifactRequest
82
82
  */
@@ -22,7 +22,7 @@ export interface CreateAuthHandoffRequest {
22
22
  */
23
23
  organizationId: string;
24
24
  /**
25
- * Artifacts-host content path to land on, /artifacts/{id}/versions/{n}/content
25
+ * Artifacts-host content path to land on, /files/{id}/versions/{n}/content
26
26
  * @type {string}
27
27
  * @memberof CreateAuthHandoffRequest
28
28
  */
@@ -34,7 +34,7 @@ export interface CreateFileRequest {
34
34
  */
35
35
  sha256?: string;
36
36
  /**
37
- * Byte count of the bytes this create will upload; required with `sha256`
37
+ * Byte count of the bytes this create will upload, 0 for an empty file; required with `sha256`
38
38
  * @type {number}
39
39
  * @memberof CreateFileRequest
40
40
  */
@@ -46,7 +46,7 @@ export interface CreateFileRequest {
46
46
  */
47
47
  contentType?: string;
48
48
  /**
49
- * The team to create this file in, by id or slug; omitted, it lands in Shared
49
+ * The team to create this file in, by id or slug. Omitted without `path`, the file lands in the team of the conversation `sessionId` names, else in Shared. With `path`, the path's team is the file's, and a teamId naming another team is refused
50
50
  * @type {string}
51
51
  * @memberof CreateFileRequest
52
52
  */
@@ -59,6 +59,48 @@ export interface CreateFileRequest {
59
59
  labels?: {
60
60
  [key: string]: string;
61
61
  };
62
+ /**
63
+ * Library path to save to, `/{team}/<path>` with the team's slug. With `content`, the save creates the library file or adds a version to it; with `sha256` and `sizeBytes`, the answer is an upload intent, which the complete call saves; with `folder`, the create makes a folder. Omitted, the create makes a fixed file
64
+ * @type {string}
65
+ * @memberof CreateFileRequest
66
+ */
67
+ path?: string;
68
+ /**
69
+ * Required with `path` and bytes: the version the caller read, or 0 for nothing at the path. A save naming any version but the current one is refused
70
+ * @type {number}
71
+ * @memberof CreateFileRequest
72
+ */
73
+ baseVersion?: number;
74
+ /**
75
+ * With `path` and no bytes: true makes a folder at the path and its missing parents. A folder already there answers it, and a file there is refused
76
+ * @type {boolean}
77
+ * @memberof CreateFileRequest
78
+ */
79
+ folder?: boolean;
80
+ /**
81
+ * With `path`: one line saying what this version is, at most 200 characters
82
+ * @type {string}
83
+ * @memberof CreateFileRequest
84
+ */
85
+ description?: string;
86
+ /**
87
+ * The conversation saving it, where the caller must be allowed to send a message. With `path` it is the version's conversation; without `path` or `teamId`, the file takes its team
88
+ * @type {string}
89
+ * @memberof CreateFileRequest
90
+ */
91
+ sessionId?: string;
92
+ /**
93
+ * With `path`: a READY PNG or JPEG file picturing this version
94
+ * @type {string}
95
+ * @memberof CreateFileRequest
96
+ */
97
+ thumbnailFileId?: string;
98
+ /**
99
+ * With `path`: start the file's data document empty instead of keeping it
100
+ * @type {boolean}
101
+ * @memberof CreateFileRequest
102
+ */
103
+ resetData?: boolean;
62
104
  }
63
105
  /**
64
106
  * Check if a given object implements the CreateFileRequest interface.
@@ -39,6 +39,13 @@ function CreateFileRequestFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'contentType': json['contentType'] == null ? undefined : json['contentType'],
40
40
  'teamId': json['teamId'] == null ? undefined : json['teamId'],
41
41
  'labels': json['labels'] == null ? undefined : json['labels'],
42
+ 'path': json['path'] == null ? undefined : json['path'],
43
+ 'baseVersion': json['baseVersion'] == null ? undefined : json['baseVersion'],
44
+ 'folder': json['folder'] == null ? undefined : json['folder'],
45
+ 'description': json['description'] == null ? undefined : json['description'],
46
+ 'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
47
+ 'thumbnailFileId': json['thumbnailFileId'] == null ? undefined : json['thumbnailFileId'],
48
+ 'resetData': json['resetData'] == null ? undefined : json['resetData'],
42
49
  };
43
50
  }
44
51
  function CreateFileRequestToJSON(json) {
@@ -56,5 +63,12 @@ function CreateFileRequestToJSONTyped(value, ignoreDiscriminator = false) {
56
63
  'contentType': value['contentType'],
57
64
  'teamId': value['teamId'],
58
65
  'labels': value['labels'],
66
+ 'path': value['path'],
67
+ 'baseVersion': value['baseVersion'],
68
+ 'folder': value['folder'],
69
+ 'description': value['description'],
70
+ 'sessionId': value['sessionId'],
71
+ 'thumbnailFileId': value['thumbnailFileId'],
72
+ 'resetData': value['resetData'],
59
73
  };
60
74
  }
@@ -17,7 +17,7 @@ import type { RoomTokenRoomRequest } from './RoomTokenRoomRequest';
17
17
  */
18
18
  export interface CreateRoomTokenRequest {
19
19
  /**
20
- * The rooms one page shows: one conversation, one artifact, or one of each.
20
+ * The rooms one page shows: one conversation, one file, or one of each.
21
21
  * @type {Array<RoomTokenRoomRequest>}
22
22
  * @memberof CreateRoomTokenRequest
23
23
  */
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Orchestra platform API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface FileMatch
16
+ */
17
+ export interface FileMatch {
18
+ /**
19
+ * The matching library file, as `GET /files` lists it
20
+ * @type {any}
21
+ * @memberof FileMatch
22
+ */
23
+ file: any;
24
+ /**
25
+ * The first 300 characters of the file's best-matching passage
26
+ * @type {string}
27
+ * @memberof FileMatch
28
+ */
29
+ snippet: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the FileMatch interface.
33
+ */
34
+ export declare function instanceOfFileMatch(value: object): value is FileMatch;
35
+ export declare function FileMatchFromJSON(json: any): FileMatch;
36
+ export declare function FileMatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileMatch;
37
+ export declare function FileMatchToJSON(json: any): FileMatch;
38
+ export declare function FileMatchToJSONTyped(value?: FileMatch | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Orchestra platform API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfFileMatch = instanceOfFileMatch;
17
+ exports.FileMatchFromJSON = FileMatchFromJSON;
18
+ exports.FileMatchFromJSONTyped = FileMatchFromJSONTyped;
19
+ exports.FileMatchToJSON = FileMatchToJSON;
20
+ exports.FileMatchToJSONTyped = FileMatchToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FileMatch interface.
23
+ */
24
+ function instanceOfFileMatch(value) {
25
+ if (!('file' in value) || value['file'] === undefined)
26
+ return false;
27
+ if (!('snippet' in value) || value['snippet'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function FileMatchFromJSON(json) {
32
+ return FileMatchFromJSONTyped(json, false);
33
+ }
34
+ function FileMatchFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'file': json['file'],
40
+ 'snippet': json['snippet'],
41
+ };
42
+ }
43
+ function FileMatchToJSON(json) {
44
+ return FileMatchToJSONTyped(json, false);
45
+ }
46
+ function FileMatchToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'file': value['file'],
52
+ 'snippet': value['snippet'],
53
+ };
54
+ }
@@ -0,0 +1,101 @@
1
+ /**
2
+ * Orchestra platform API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { IdentitySet } from './IdentitySet';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface FileVersion
17
+ */
18
+ export interface FileVersion {
19
+ /**
20
+ * Version number, counting from 1
21
+ * @type {number}
22
+ * @memberof FileVersion
23
+ */
24
+ number: number;
25
+ /**
26
+ * The fixed file holding this version's bytes; pin this id, never the library file's
27
+ * @type {string}
28
+ * @memberof FileVersion
29
+ */
30
+ fileId: string;
31
+ /**
32
+ * Content hash of the version's bytes (`sha256:<hex>`)
33
+ * @type {string}
34
+ * @memberof FileVersion
35
+ */
36
+ sha256: string;
37
+ /**
38
+ * Size of the version's bytes
39
+ * @type {number}
40
+ * @memberof FileVersion
41
+ */
42
+ sizeBytes: number;
43
+ /**
44
+ * MIME type of the version's bytes
45
+ * @type {string}
46
+ * @memberof FileVersion
47
+ */
48
+ contentType: string;
49
+ /**
50
+ * The status of the fixed file holding the bytes
51
+ * @type {FileVersionStatusEnum}
52
+ * @memberof FileVersion
53
+ */
54
+ status: FileVersionStatusEnum;
55
+ /**
56
+ * One line saying what this version is, at most 200 characters; absent when the save gave none
57
+ * @type {string}
58
+ * @memberof FileVersion
59
+ */
60
+ description?: string;
61
+ /**
62
+ * Conversation that saved this version; absent when none was named
63
+ * @type {string}
64
+ * @memberof FileVersion
65
+ */
66
+ sessionId?: string;
67
+ /**
68
+ * The PNG or JPEG file picturing this version; absent when its save named none
69
+ * @type {string}
70
+ * @memberof FileVersion
71
+ */
72
+ thumbnailFileId?: string;
73
+ /**
74
+ * Who created it, as `GET /users` or `GET /agents` answers them; absent when the creator no longer resolves
75
+ * @type {IdentitySet}
76
+ * @memberof FileVersion
77
+ */
78
+ createdBy?: IdentitySet;
79
+ /**
80
+ * When the version was saved
81
+ * @type {Date}
82
+ * @memberof FileVersion
83
+ */
84
+ createdAt: Date;
85
+ }
86
+ /**
87
+ * @export
88
+ */
89
+ export declare const FileVersionStatusEnum: {
90
+ readonly Pending: "PENDING";
91
+ readonly Ready: "READY";
92
+ };
93
+ export type FileVersionStatusEnum = typeof FileVersionStatusEnum[keyof typeof FileVersionStatusEnum];
94
+ /**
95
+ * Check if a given object implements the FileVersion interface.
96
+ */
97
+ export declare function instanceOfFileVersion(value: object): value is FileVersion;
98
+ export declare function FileVersionFromJSON(json: any): FileVersion;
99
+ export declare function FileVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileVersion;
100
+ export declare function FileVersionToJSON(json: any): FileVersion;
101
+ export declare function FileVersionToJSONTyped(value?: FileVersion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Orchestra platform API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FileVersionStatusEnum = void 0;
17
+ exports.instanceOfFileVersion = instanceOfFileVersion;
18
+ exports.FileVersionFromJSON = FileVersionFromJSON;
19
+ exports.FileVersionFromJSONTyped = FileVersionFromJSONTyped;
20
+ exports.FileVersionToJSON = FileVersionToJSON;
21
+ exports.FileVersionToJSONTyped = FileVersionToJSONTyped;
22
+ const IdentitySet_1 = require("./IdentitySet");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.FileVersionStatusEnum = {
27
+ Pending: 'PENDING',
28
+ Ready: 'READY'
29
+ };
30
+ /**
31
+ * Check if a given object implements the FileVersion interface.
32
+ */
33
+ function instanceOfFileVersion(value) {
34
+ if (!('number' in value) || value['number'] === undefined)
35
+ return false;
36
+ if (!('fileId' in value) || value['fileId'] === undefined)
37
+ return false;
38
+ if (!('sha256' in value) || value['sha256'] === undefined)
39
+ return false;
40
+ if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
41
+ return false;
42
+ if (!('contentType' in value) || value['contentType'] === undefined)
43
+ return false;
44
+ if (!('status' in value) || value['status'] === undefined)
45
+ return false;
46
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
47
+ return false;
48
+ return true;
49
+ }
50
+ function FileVersionFromJSON(json) {
51
+ return FileVersionFromJSONTyped(json, false);
52
+ }
53
+ function FileVersionFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ 'number': json['number'],
59
+ 'fileId': json['fileId'],
60
+ 'sha256': json['sha256'],
61
+ 'sizeBytes': json['sizeBytes'],
62
+ 'contentType': json['contentType'],
63
+ 'status': json['status'],
64
+ 'description': json['description'] == null ? undefined : json['description'],
65
+ 'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
66
+ 'thumbnailFileId': json['thumbnailFileId'] == null ? undefined : json['thumbnailFileId'],
67
+ 'createdBy': json['createdBy'] == null ? undefined : (0, IdentitySet_1.IdentitySetFromJSON)(json['createdBy']),
68
+ 'createdAt': (new Date(json['createdAt'])),
69
+ };
70
+ }
71
+ function FileVersionToJSON(json) {
72
+ return FileVersionToJSONTyped(json, false);
73
+ }
74
+ function FileVersionToJSONTyped(value, ignoreDiscriminator = false) {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+ 'number': value['number'],
80
+ 'fileId': value['fileId'],
81
+ 'sha256': value['sha256'],
82
+ 'sizeBytes': value['sizeBytes'],
83
+ 'contentType': value['contentType'],
84
+ 'status': value['status'],
85
+ 'description': value['description'],
86
+ 'sessionId': value['sessionId'],
87
+ 'thumbnailFileId': value['thumbnailFileId'],
88
+ 'createdBy': (0, IdentitySet_1.IdentitySetToJSON)(value['createdBy']),
89
+ 'createdAt': value['createdAt'].toISOString(),
90
+ };
91
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { IdentitySet } from './IdentitySet';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -83,6 +84,66 @@ export interface ModelFile {
83
84
  labels: {
84
85
  [key: string]: string;
85
86
  };
87
+ /**
88
+ * Library path, `/{team}/<path>`: the team's slug, then the path inside the team. Absent on a fixed file, which has no path
89
+ * @type {string}
90
+ * @memberof ModelFile
91
+ */
92
+ path?: string;
93
+ /**
94
+ * Number of the current version: always 1 on a fixed file, and 0 on a folder and on an upload intent not yet completed
95
+ * @type {number}
96
+ * @memberof ModelFile
97
+ */
98
+ currentVersion: number;
99
+ /**
100
+ * A library file's title: the HTML `<title>` or first `h1`, a Markdown file's first heading, else the last segment of its path. A fixed file's filename, else its id
101
+ * @type {string}
102
+ * @memberof ModelFile
103
+ */
104
+ title: string;
105
+ /**
106
+ * The current version's one-line description, else, on an HTML, Markdown or plain-text file, its first 200 characters; absent when it has neither
107
+ * @type {string}
108
+ * @memberof ModelFile
109
+ */
110
+ description?: string;
111
+ /**
112
+ * How many of its comments are open; always 0 on a fixed file, which takes none
113
+ * @type {number}
114
+ * @memberof ModelFile
115
+ */
116
+ openCommentCount: number;
117
+ /**
118
+ * Who created it, as `GET /users` or `GET /agents` answers them; absent when the creator no longer resolves
119
+ * @type {IdentitySet}
120
+ * @memberof ModelFile
121
+ */
122
+ createdBy?: IdentitySet;
123
+ /**
124
+ * True on a folder, which holds no bytes and no versions
125
+ * @type {boolean}
126
+ * @memberof ModelFile
127
+ */
128
+ folder: boolean;
129
+ /**
130
+ * The PNG or JPEG file picturing the current version; absent when its save named none
131
+ * @type {string}
132
+ * @memberof ModelFile
133
+ */
134
+ thumbnailFileId?: string;
135
+ /**
136
+ * On a `text/uri-list` file of at most 2 KiB, the first line of its current version that does not start with `#`; absent on any other file
137
+ * @type {string}
138
+ * @memberof ModelFile
139
+ */
140
+ url?: string;
141
+ /**
142
+ * On a file whose url is a link into the machine preview zone: ONLINE when the machine ingress gateway would route that Preview's port now and the port's url is published, UNREACHABLE otherwise. Absent on any other file
143
+ * @type {ModelFilePreviewStatusEnum}
144
+ * @memberof ModelFile
145
+ */
146
+ previewStatus?: ModelFilePreviewStatusEnum;
86
147
  }
87
148
  /**
88
149
  * @export
@@ -92,6 +153,14 @@ export declare const ModelFileStatusEnum: {
92
153
  readonly Ready: "READY";
93
154
  };
94
155
  export type ModelFileStatusEnum = typeof ModelFileStatusEnum[keyof typeof ModelFileStatusEnum];
156
+ /**
157
+ * @export
158
+ */
159
+ export declare const ModelFilePreviewStatusEnum: {
160
+ readonly Online: "ONLINE";
161
+ readonly Unreachable: "UNREACHABLE";
162
+ };
163
+ export type ModelFilePreviewStatusEnum = typeof ModelFilePreviewStatusEnum[keyof typeof ModelFilePreviewStatusEnum];
95
164
  /**
96
165
  * Check if a given object implements the ModelFile interface.
97
166
  */