@orchestraworks/cli 0.7.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 (118) 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 +31040 -17110
  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 -39
  25. package/node_modules/@orchestraworks/client/dist/esm/models/Artifact.js +7 -20
  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 -39
  65. package/node_modules/@orchestraworks/client/dist/models/Artifact.js +7 -20
  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/skills/orchestra/SKILL.md +1 -1
  107. package/templates/engineering-team/package.json +1 -1
  108. package/templates/todo-factory/package.json +1 -1
  109. package/node_modules/@orchestraworks/client/dist/esm/models/ArtifactSummary.d.ts +0 -125
  110. package/node_modules/@orchestraworks/client/dist/esm/models/ArtifactSummary.js +0 -86
  111. package/node_modules/@orchestraworks/client/dist/esm/models/ArtifactVersion.d.ts +0 -110
  112. package/node_modules/@orchestraworks/client/dist/esm/models/ArtifactVersion.js +0 -77
  113. package/node_modules/@orchestraworks/client/dist/esm/models/PageArtifactSummary.d.ts +0 -51
  114. package/node_modules/@orchestraworks/client/dist/models/ArtifactSummary.d.ts +0 -125
  115. package/node_modules/@orchestraworks/client/dist/models/ArtifactSummary.js +0 -93
  116. package/node_modules/@orchestraworks/client/dist/models/ArtifactVersion.d.ts +0 -110
  117. package/node_modules/@orchestraworks/client/dist/models/ArtifactVersion.js +0 -84
  118. package/node_modules/@orchestraworks/client/dist/models/PageArtifactSummary.d.ts +0 -51
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ArtifactVersion } from './ArtifactVersion';
13
12
  import type { IdentitySet } from './IdentitySet';
14
13
  /**
15
14
  *
@@ -24,13 +23,13 @@ export interface Artifact {
24
23
  */
25
24
  id: string;
26
25
  /**
27
- * Conversation that published version 1; absent when none was named
26
+ * The conversation the create named, told of changes when no newer version of the file names a live one; absent when none was named
28
27
  * @type {string}
29
28
  * @memberof Artifact
30
29
  */
31
30
  sessionId?: string;
32
31
  /**
33
- * The team it belongs to; absent means Shared
32
+ * The team it belongs to, which is its file's team; absent means Shared
34
33
  * @type {string}
35
34
  * @memberof Artifact
36
35
  */
@@ -47,36 +46,6 @@ export interface Artifact {
47
46
  * @memberof Artifact
48
47
  */
49
48
  name: string;
50
- /**
51
- * Number of the newest version
52
- * @type {number}
53
- * @memberof Artifact
54
- */
55
- currentVersion: number;
56
- /**
57
- * Every published version, oldest first
58
- * @type {Array<ArtifactVersion>}
59
- * @memberof Artifact
60
- */
61
- versions: Array<ArtifactVersion>;
62
- /**
63
- * The newest version's one-line description; absent when it has none
64
- * @type {string}
65
- * @memberof Artifact
66
- */
67
- description?: string;
68
- /**
69
- * Where the newest version's thumbnail is read, `GET /artifacts/{id}/versions/{n}/thumbnail`; absent when it has none
70
- * @type {string}
71
- * @memberof Artifact
72
- */
73
- thumbnailUrl?: string;
74
- /**
75
- * How many of its comments are open
76
- * @type {number}
77
- * @memberof Artifact
78
- */
79
- openCommentCount: number;
80
49
  /**
81
50
  * The work item it is attached to, set at create or by an update; absent when it has none
82
51
  * @type {string}
@@ -84,7 +53,7 @@ export interface Artifact {
84
53
  */
85
54
  workItemId?: string;
86
55
  /**
87
- * AUTO: the platform tells the artifact's conversation when people comment or send page data as feedback. MANUAL: a person sends that notice from the artifact's header.
56
+ * AUTO: the platform tells the artifact's conversation when people comment on its file or send page data as feedback. MANUAL: a person sends that notice from the artifact's header.
88
57
  * @type {ArtifactNotifyModeEnum}
89
58
  * @memberof Artifact
90
59
  */
@@ -114,13 +83,17 @@ export interface Artifact {
114
83
  */
115
84
  updatedAt: Date;
116
85
  /**
117
- * Labels: the customer's key-to-value tags; the platform reads no key
118
- * @type {{ [key: string]: string; }}
86
+ * The library file it points at, as `GET /files/{id}` answers it
87
+ * @type {any}
88
+ * @memberof Artifact
89
+ */
90
+ file: any;
91
+ /**
92
+ * The file's current version number, as `file.currentVersion` says, kept for the version routes under `/artifacts/{id}`
93
+ * @type {number}
119
94
  * @memberof Artifact
120
95
  */
121
- labels: {
122
- [key: string]: string;
123
- };
96
+ currentVersion: number;
124
97
  }
125
98
  /**
126
99
  * @export
@@ -11,7 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { ArtifactVersionFromJSON, ArtifactVersionToJSON, } from './ArtifactVersion';
15
14
  import { IdentitySetFromJSON, IdentitySetToJSON, } from './IdentitySet';
16
15
  /**
17
16
  * @export
@@ -30,19 +29,15 @@ export function instanceOfArtifact(value) {
30
29
  return false;
31
30
  if (!('name' in value) || value['name'] === undefined)
32
31
  return false;
33
- if (!('currentVersion' in value) || value['currentVersion'] === undefined)
34
- return false;
35
- if (!('versions' in value) || value['versions'] === undefined)
36
- return false;
37
- if (!('openCommentCount' in value) || value['openCommentCount'] === undefined)
38
- return false;
39
32
  if (!('notifyMode' in value) || value['notifyMode'] === undefined)
40
33
  return false;
41
34
  if (!('createdAt' in value) || value['createdAt'] === undefined)
42
35
  return false;
43
36
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
44
37
  return false;
45
- if (!('labels' in value) || value['labels'] === undefined)
38
+ if (!('file' in value) || value['file'] === undefined)
39
+ return false;
40
+ if (!('currentVersion' in value) || value['currentVersion'] === undefined)
46
41
  return false;
47
42
  return true;
48
43
  }
@@ -59,18 +54,14 @@ export function ArtifactFromJSONTyped(json, ignoreDiscriminator) {
59
54
  'teamId': json['teamId'] == null ? undefined : json['teamId'],
60
55
  'slug': json['slug'],
61
56
  'name': json['name'],
62
- 'currentVersion': json['currentVersion'],
63
- 'versions': (json['versions'].map(ArtifactVersionFromJSON)),
64
- 'description': json['description'] == null ? undefined : json['description'],
65
- 'thumbnailUrl': json['thumbnailUrl'] == null ? undefined : json['thumbnailUrl'],
66
- 'openCommentCount': json['openCommentCount'],
67
57
  'workItemId': json['workItemId'] == null ? undefined : json['workItemId'],
68
58
  'notifyMode': json['notifyMode'],
69
59
  'hasUnsentChanges': json['hasUnsentChanges'] == null ? undefined : json['hasUnsentChanges'],
70
60
  'createdBy': json['createdBy'] == null ? undefined : IdentitySetFromJSON(json['createdBy']),
71
61
  'createdAt': (new Date(json['createdAt'])),
72
62
  'updatedAt': (new Date(json['updatedAt'])),
73
- 'labels': json['labels'],
63
+ 'file': json['file'],
64
+ 'currentVersion': json['currentVersion'],
74
65
  };
75
66
  }
76
67
  export function ArtifactToJSON(json) {
@@ -86,17 +77,13 @@ export function ArtifactToJSONTyped(value, ignoreDiscriminator = false) {
86
77
  'teamId': value['teamId'],
87
78
  'slug': value['slug'],
88
79
  'name': value['name'],
89
- 'currentVersion': value['currentVersion'],
90
- 'versions': (value['versions'].map(ArtifactVersionToJSON)),
91
- 'description': value['description'],
92
- 'thumbnailUrl': value['thumbnailUrl'],
93
- 'openCommentCount': value['openCommentCount'],
94
80
  'workItemId': value['workItemId'],
95
81
  'notifyMode': value['notifyMode'],
96
82
  'hasUnsentChanges': value['hasUnsentChanges'],
97
83
  'createdBy': IdentitySetToJSON(value['createdBy']),
98
84
  'createdAt': value['createdAt'].toISOString(),
99
85
  'updatedAt': value['updatedAt'].toISOString(),
100
- 'labels': value['labels'],
86
+ 'file': value['file'],
87
+ 'currentVersion': value['currentVersion'],
101
88
  };
102
89
  }
@@ -24,11 +24,11 @@ export interface Comment {
24
24
  */
25
25
  id: string;
26
26
  /**
27
- * Artifact the comment sits on
27
+ * The library file the comment sits on
28
28
  * @type {string}
29
29
  * @memberof Comment
30
30
  */
31
- artifactId: string;
31
+ fileId: string;
32
32
  /**
33
33
  * Version number the comment sits on
34
34
  * @type {number}
@@ -26,7 +26,7 @@ export const CommentStatusEnum = {
26
26
  export function instanceOfComment(value) {
27
27
  if (!('id' in value) || value['id'] === undefined)
28
28
  return false;
29
- if (!('artifactId' in value) || value['artifactId'] === undefined)
29
+ if (!('fileId' in value) || value['fileId'] === undefined)
30
30
  return false;
31
31
  if (!('versionNumber' in value) || value['versionNumber'] === undefined)
32
32
  return false;
@@ -53,7 +53,7 @@ export function CommentFromJSONTyped(json, ignoreDiscriminator) {
53
53
  }
54
54
  return {
55
55
  'id': json['id'],
56
- 'artifactId': json['artifactId'],
56
+ 'fileId': json['fileId'],
57
57
  'versionNumber': json['versionNumber'],
58
58
  'anchor': json['anchor'] == null ? undefined : CommentAnchorFromJSON(json['anchor']),
59
59
  'status': json['status'],
@@ -75,7 +75,7 @@ export function CommentToJSONTyped(value, ignoreDiscriminator = false) {
75
75
  }
76
76
  return {
77
77
  'id': value['id'],
78
- 'artifactId': value['artifactId'],
78
+ 'fileId': value['fileId'],
79
79
  'versionNumber': value['versionNumber'],
80
80
  'anchor': CommentAnchorToJSON(value['anchor']),
81
81
  'status': value['status'],
@@ -23,11 +23,11 @@ export interface CommentSummary {
23
23
  */
24
24
  id: string;
25
25
  /**
26
- * Artifact the comment sits on
26
+ * The library file the comment sits on
27
27
  * @type {string}
28
28
  * @memberof CommentSummary
29
29
  */
30
- artifactId: string;
30
+ fileId: string;
31
31
  /**
32
32
  * Version number the comment sits on
33
33
  * @type {number}
@@ -25,7 +25,7 @@ export const CommentSummaryStatusEnum = {
25
25
  export function instanceOfCommentSummary(value) {
26
26
  if (!('id' in value) || value['id'] === undefined)
27
27
  return false;
28
- if (!('artifactId' in value) || value['artifactId'] === undefined)
28
+ if (!('fileId' in value) || value['fileId'] === undefined)
29
29
  return false;
30
30
  if (!('versionNumber' in value) || value['versionNumber'] === undefined)
31
31
  return false;
@@ -52,7 +52,7 @@ export function CommentSummaryFromJSONTyped(json, ignoreDiscriminator) {
52
52
  }
53
53
  return {
54
54
  'id': json['id'],
55
- 'artifactId': json['artifactId'],
55
+ 'fileId': json['fileId'],
56
56
  'versionNumber': json['versionNumber'],
57
57
  'anchor': json['anchor'] == null ? undefined : CommentAnchorFromJSON(json['anchor']),
58
58
  'status': json['status'],
@@ -74,7 +74,7 @@ export function CommentSummaryToJSONTyped(value, ignoreDiscriminator = false) {
74
74
  }
75
75
  return {
76
76
  'id': value['id'],
77
- 'artifactId': value['artifactId'],
77
+ 'fileId': value['fileId'],
78
78
  'versionNumber': value['versionNumber'],
79
79
  'anchor': CommentAnchorToJSON(value['anchor']),
80
80
  '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,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Orchestra platform API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the CopyFileRequest interface.
16
+ */
17
+ export function instanceOfCopyFileRequest(value) {
18
+ if (!('path' in value) || value['path'] === undefined)
19
+ return false;
20
+ if (!('baseVersion' in value) || value['baseVersion'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function CopyFileRequestFromJSON(json) {
25
+ return CopyFileRequestFromJSONTyped(json, false);
26
+ }
27
+ export function CopyFileRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'path': json['path'],
33
+ 'baseVersion': json['baseVersion'],
34
+ };
35
+ }
36
+ export function CopyFileRequestToJSON(json) {
37
+ return CopyFileRequestToJSONTyped(json, false);
38
+ }
39
+ export function CopyFileRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'path': value['path'],
45
+ 'baseVersion': value['baseVersion'],
46
+ };
47
+ }
@@ -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.
@@ -32,6 +32,13 @@ export function CreateFileRequestFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'contentType': json['contentType'] == null ? undefined : json['contentType'],
33
33
  'teamId': json['teamId'] == null ? undefined : json['teamId'],
34
34
  'labels': json['labels'] == null ? undefined : json['labels'],
35
+ 'path': json['path'] == null ? undefined : json['path'],
36
+ 'baseVersion': json['baseVersion'] == null ? undefined : json['baseVersion'],
37
+ 'folder': json['folder'] == null ? undefined : json['folder'],
38
+ 'description': json['description'] == null ? undefined : json['description'],
39
+ 'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
40
+ 'thumbnailFileId': json['thumbnailFileId'] == null ? undefined : json['thumbnailFileId'],
41
+ 'resetData': json['resetData'] == null ? undefined : json['resetData'],
35
42
  };
36
43
  }
37
44
  export function CreateFileRequestToJSON(json) {
@@ -49,5 +56,12 @@ export function CreateFileRequestToJSONTyped(value, ignoreDiscriminator = false)
49
56
  'contentType': value['contentType'],
50
57
  'teamId': value['teamId'],
51
58
  'labels': value['labels'],
59
+ 'path': value['path'],
60
+ 'baseVersion': value['baseVersion'],
61
+ 'folder': value['folder'],
62
+ 'description': value['description'],
63
+ 'sessionId': value['sessionId'],
64
+ 'thumbnailFileId': value['thumbnailFileId'],
65
+ 'resetData': value['resetData'],
52
66
  };
53
67
  }
@@ -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,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Orchestra platform API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the FileMatch interface.
16
+ */
17
+ export function instanceOfFileMatch(value) {
18
+ if (!('file' in value) || value['file'] === undefined)
19
+ return false;
20
+ if (!('snippet' in value) || value['snippet'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function FileMatchFromJSON(json) {
25
+ return FileMatchFromJSONTyped(json, false);
26
+ }
27
+ export function FileMatchFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'file': json['file'],
33
+ 'snippet': json['snippet'],
34
+ };
35
+ }
36
+ export function FileMatchToJSON(json) {
37
+ return FileMatchToJSONTyped(json, false);
38
+ }
39
+ export function FileMatchToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'file': value['file'],
45
+ 'snippet': value['snippet'],
46
+ };
47
+ }