@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
@@ -22,7 +22,7 @@ export interface SnapshotAnchor {
22
22
  */
23
23
  kind: SnapshotAnchorKindEnum;
24
24
  /**
25
- * The frame the comment is pinned on: a READY file in the artifact's team or Shared. The file cannot be deleted while a comment names it
25
+ * The frame the comment is pinned on: a READY file in the commented file's team or Shared. The file cannot be deleted while a comment names it
26
26
  * @type {string}
27
27
  * @memberof SnapshotAnchor
28
28
  */
@@ -33,14 +33,6 @@ export interface UpdateArtifactRequest {
33
33
  * @memberof UpdateArtifactRequest
34
34
  */
35
35
  notifyMode?: UpdateArtifactRequestNotifyModeEnum;
36
- /**
37
- * Labels: the customer's key-to-value tags; the platform reads no key. Merged into the stored labels as a JSON Merge Patch: absent leaves them, a key with a string sets it, a key with null removes it, and null removes them all
38
- * @type {{ [key: string]: string | null; }}
39
- * @memberof UpdateArtifactRequest
40
- */
41
- labels?: {
42
- [key: string]: string | null;
43
- };
44
36
  /**
45
37
  * The work item to attach it to, by id or slug, which the caller must be able to read and which must sit in the artifact's team or Shared; null detaches it from its item
46
38
  * @type {string}
@@ -35,7 +35,6 @@ export function UpdateArtifactRequestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'name': json['name'] == null ? undefined : json['name'],
36
36
  'slug': json['slug'] == null ? undefined : json['slug'],
37
37
  'notifyMode': json['notifyMode'] == null ? undefined : json['notifyMode'],
38
- 'labels': json['labels'] == null ? undefined : json['labels'],
39
38
  'workItemId': json['workItemId'] == null ? undefined : json['workItemId'],
40
39
  };
41
40
  }
@@ -50,7 +49,6 @@ export function UpdateArtifactRequestToJSONTyped(value, ignoreDiscriminator = fa
50
49
  'name': value['name'],
51
50
  'slug': value['slug'],
52
51
  'notifyMode': value['notifyMode'],
53
- 'labels': value['labels'],
54
52
  'workItemId': value['workItemId'],
55
53
  };
56
54
  }
@@ -0,0 +1,40 @@
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 UpdateFileRequest
16
+ */
17
+ export interface UpdateFileRequest {
18
+ /**
19
+ * New library path in the same team, `/{team}/<path>`; a path in another team is refused
20
+ * @type {string}
21
+ * @memberof UpdateFileRequest
22
+ */
23
+ path?: string;
24
+ /**
25
+ * Labels: the customer's key-to-value tags; the platform reads no key. Merged into the stored labels as a JSON Merge Patch: absent leaves them, a key with a string sets it, a key with null removes it, and null removes them all
26
+ * @type {{ [key: string]: string | null; }}
27
+ * @memberof UpdateFileRequest
28
+ */
29
+ labels?: {
30
+ [key: string]: string | null;
31
+ };
32
+ }
33
+ /**
34
+ * Check if a given object implements the UpdateFileRequest interface.
35
+ */
36
+ export declare function instanceOfUpdateFileRequest(value: object): value is UpdateFileRequest;
37
+ export declare function UpdateFileRequestFromJSON(json: any): UpdateFileRequest;
38
+ export declare function UpdateFileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFileRequest;
39
+ export declare function UpdateFileRequestToJSON(json: any): UpdateFileRequest;
40
+ export declare function UpdateFileRequestToJSONTyped(value?: UpdateFileRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 UpdateFileRequest interface.
16
+ */
17
+ export function instanceOfUpdateFileRequest(value) {
18
+ return true;
19
+ }
20
+ export function UpdateFileRequestFromJSON(json) {
21
+ return UpdateFileRequestFromJSONTyped(json, false);
22
+ }
23
+ export function UpdateFileRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'path': json['path'] == null ? undefined : json['path'],
29
+ 'labels': json['labels'] == null ? undefined : json['labels'],
30
+ };
31
+ }
32
+ export function UpdateFileRequestToJSON(json) {
33
+ return UpdateFileRequestToJSONTyped(json, false);
34
+ }
35
+ export function UpdateFileRequestToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'path': value['path'],
41
+ 'labels': value['labels'],
42
+ };
43
+ }
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ArtifactSummary } from './ArtifactSummary';
13
12
  import type { StageSummary } from './StageSummary';
14
13
  import type { WorkItemAssignment } from './WorkItemAssignment';
15
14
  import type { WorkItemRelations } from './WorkItemRelations';
15
+ import type { Artifact } from './Artifact';
16
16
  import type { PipelineSummary } from './PipelineSummary';
17
17
  import type { WorkItemCheck } from './WorkItemCheck';
18
18
  import type { SessionSummary } from './SessionSummary';
@@ -130,10 +130,10 @@ export interface WorkItem {
130
130
  sessions: Array<SessionSummary>;
131
131
  /**
132
132
  * Every artifact attached to this item by its `workItemId`, newest first, each as `GET /artifacts` answers it
133
- * @type {Array<ArtifactSummary>}
133
+ * @type {Array<Artifact>}
134
134
  * @memberof WorkItem
135
135
  */
136
- artifacts: Array<ArtifactSummary>;
136
+ artifacts: Array<Artifact>;
137
137
  /**
138
138
  * When the item entered its stage, by create, move or reopen
139
139
  * @type {Date}
@@ -12,10 +12,10 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { mapValues } from '../runtime';
15
- import { ArtifactSummaryFromJSON, ArtifactSummaryToJSON, } from './ArtifactSummary';
16
15
  import { StageSummaryFromJSON, StageSummaryToJSON, } from './StageSummary';
17
16
  import { WorkItemAssignmentFromJSON, WorkItemAssignmentToJSON, } from './WorkItemAssignment';
18
17
  import { WorkItemRelationsFromJSON, WorkItemRelationsToJSON, } from './WorkItemRelations';
18
+ import { ArtifactFromJSON, ArtifactToJSON, } from './Artifact';
19
19
  import { PipelineSummaryFromJSON, PipelineSummaryToJSON, } from './PipelineSummary';
20
20
  import { WorkItemCheckFromJSON, WorkItemCheckToJSON, } from './WorkItemCheck';
21
21
  import { SessionSummaryFromJSON, SessionSummaryToJSON, } from './SessionSummary';
@@ -86,7 +86,7 @@ export function WorkItemFromJSONTyped(json, ignoreDiscriminator) {
86
86
  'duplicateOf': WorkItemRelationsFromJSON(json['duplicateOf']),
87
87
  'duplicates': WorkItemRelationsFromJSON(json['duplicates']),
88
88
  'sessions': (json['sessions'].map(SessionSummaryFromJSON)),
89
- 'artifacts': (json['artifacts'].map(ArtifactSummaryFromJSON)),
89
+ 'artifacts': (json['artifacts'].map(ArtifactFromJSON)),
90
90
  'stageEnteredAt': (new Date(json['stageEnteredAt'])),
91
91
  'unassignedAt': json['unassignedAt'] == null ? undefined : (new Date(json['unassignedAt'])),
92
92
  'moves24h': json['moves24h'],
@@ -119,7 +119,7 @@ export function WorkItemToJSONTyped(value, ignoreDiscriminator = false) {
119
119
  'duplicateOf': WorkItemRelationsToJSON(value['duplicateOf']),
120
120
  'duplicates': WorkItemRelationsToJSON(value['duplicates']),
121
121
  'sessions': (value['sessions'].map(SessionSummaryToJSON)),
122
- 'artifacts': (value['artifacts'].map(ArtifactSummaryToJSON)),
122
+ 'artifacts': (value['artifacts'].map(ArtifactToJSON)),
123
123
  'stageEnteredAt': value['stageEnteredAt'].toISOString(),
124
124
  'unassignedAt': value['unassignedAt'] == null ? value['unassignedAt'] : value['unassignedAt'].toISOString(),
125
125
  'moves24h': value['moves24h'],
@@ -0,0 +1,50 @@
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 WriteFileDataRequest
16
+ */
17
+ export interface WriteFileDataRequest {
18
+ /**
19
+ * An RFC 7396 JSON merge patch over the saved document: a null value deletes that key at any depth, objects merge recursively, and an array is replaced whole
20
+ * @type {object}
21
+ * @memberof WriteFileDataRequest
22
+ */
23
+ patch: object;
24
+ /**
25
+ * The file version the page was served at; a write naming any version but the current one is refused
26
+ * @type {number}
27
+ * @memberof WriteFileDataRequest
28
+ */
29
+ version: number;
30
+ /**
31
+ * Apply only while dataVersion still equals this; omitted means apply regardless
32
+ * @type {number}
33
+ * @memberof WriteFileDataRequest
34
+ */
35
+ ifVersion?: number;
36
+ /**
37
+ * Whether this write is feedback for the conversations of the artifacts pointing at the file: only a feedback write starts a notice, and any other write only shows as an unsent change. False when omitted
38
+ * @type {boolean}
39
+ * @memberof WriteFileDataRequest
40
+ */
41
+ feedback?: boolean;
42
+ }
43
+ /**
44
+ * Check if a given object implements the WriteFileDataRequest interface.
45
+ */
46
+ export declare function instanceOfWriteFileDataRequest(value: object): value is WriteFileDataRequest;
47
+ export declare function WriteFileDataRequestFromJSON(json: any): WriteFileDataRequest;
48
+ export declare function WriteFileDataRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WriteFileDataRequest;
49
+ export declare function WriteFileDataRequestToJSON(json: any): WriteFileDataRequest;
50
+ export declare function WriteFileDataRequestToJSONTyped(value?: WriteFileDataRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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 WriteFileDataRequest interface.
16
+ */
17
+ export function instanceOfWriteFileDataRequest(value) {
18
+ if (!('patch' in value) || value['patch'] === undefined)
19
+ return false;
20
+ if (!('version' in value) || value['version'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function WriteFileDataRequestFromJSON(json) {
25
+ return WriteFileDataRequestFromJSONTyped(json, false);
26
+ }
27
+ export function WriteFileDataRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'patch': json['patch'],
33
+ 'version': json['version'],
34
+ 'ifVersion': json['ifVersion'] == null ? undefined : json['ifVersion'],
35
+ 'feedback': json['feedback'] == null ? undefined : json['feedback'],
36
+ };
37
+ }
38
+ export function WriteFileDataRequestToJSON(json) {
39
+ return WriteFileDataRequestToJSONTyped(json, false);
40
+ }
41
+ export function WriteFileDataRequestToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'patch': value['patch'],
47
+ 'version': value['version'],
48
+ 'ifVersion': value['ifVersion'],
49
+ 'feedback': value['feedback'],
50
+ };
51
+ }
@@ -15,8 +15,6 @@ export * from './ApiKeyWithToken';
15
15
  export * from './AppendSessionItemRequest';
16
16
  export * from './AppendSessionItemResponse';
17
17
  export * from './Artifact';
18
- export * from './ArtifactSummary';
19
- export * from './ArtifactVersion';
20
18
  export * from './ArtifactVersionDocument';
21
19
  export * from './AssignAction';
22
20
  export * from './AssignWorkItemRequest';
@@ -51,6 +49,7 @@ export * from './ConnectionInstallLinkWithUrl';
51
49
  export * from './ConnectionWithEndpoint';
52
50
  export * from './Connector';
53
51
  export * from './ContentBlock';
52
+ export * from './CopyFileRequest';
54
53
  export * from './CreateAgentRequest';
55
54
  export * from './CreateApiKeyRequest';
56
55
  export * from './CreateArtifactRequest';
@@ -141,7 +140,9 @@ export * from './EnvironmentVolumeMount';
141
140
  export * from './EvaluateAction';
142
141
  export * from './Event';
143
142
  export * from './Evidence';
143
+ export * from './FileMatch';
144
144
  export * from './FileRef';
145
+ export * from './FileVersion';
145
146
  export * from './FileWithUpload';
146
147
  export * from './FilterNode';
147
148
  export * from './FramePointAnchor';
@@ -234,7 +235,7 @@ export * from './OrganizationMembership';
234
235
  export * from './PageAgent';
235
236
  export * from './PageAgentVersion';
236
237
  export * from './PageApiKey';
237
- export * from './PageArtifactSummary';
238
+ export * from './PageArtifact';
238
239
  export * from './PageCommentSummary';
239
240
  export * from './PageComputeProvider';
240
241
  export * from './PageConnection';
@@ -246,6 +247,7 @@ export * from './PageDelivery';
246
247
  export * from './PageEnvironment';
247
248
  export * from './PageEvent';
248
249
  export * from './PageFile';
250
+ export * from './PageFileVersion';
249
251
  export * from './PageGatewayKey';
250
252
  export * from './PageImage';
251
253
  export * from './PageMachine';
@@ -384,6 +386,7 @@ export * from './UpdateConnectionRequest';
384
386
  export * from './UpdateConnectorRequest';
385
387
  export * from './UpdateDashboardRequest';
386
388
  export * from './UpdateEnvironmentRequest';
389
+ export * from './UpdateFileRequest';
387
390
  export * from './UpdateGatewayKeyRequest';
388
391
  export * from './UpdateMetricRequest';
389
392
  export * from './UpdateModelAliasRequest';
@@ -432,5 +435,6 @@ export * from './WorkflowOverlapEntry';
432
435
  export * from './WorkflowOverlapRules';
433
436
  export * from './WorkflowSummary';
434
437
  export * from './WorkflowVersion';
438
+ export * from './WriteFileDataRequest';
435
439
  export * from './WriteMetricValueRequest';
436
440
  export * from './WriteMetricValueRequestValue';
@@ -17,8 +17,6 @@ export * from './ApiKeyWithToken';
17
17
  export * from './AppendSessionItemRequest';
18
18
  export * from './AppendSessionItemResponse';
19
19
  export * from './Artifact';
20
- export * from './ArtifactSummary';
21
- export * from './ArtifactVersion';
22
20
  export * from './ArtifactVersionDocument';
23
21
  export * from './AssignAction';
24
22
  export * from './AssignWorkItemRequest';
@@ -53,6 +51,7 @@ export * from './ConnectionInstallLinkWithUrl';
53
51
  export * from './ConnectionWithEndpoint';
54
52
  export * from './Connector';
55
53
  export * from './ContentBlock';
54
+ export * from './CopyFileRequest';
56
55
  export * from './CreateAgentRequest';
57
56
  export * from './CreateApiKeyRequest';
58
57
  export * from './CreateArtifactRequest';
@@ -143,7 +142,9 @@ export * from './EnvironmentVolumeMount';
143
142
  export * from './EvaluateAction';
144
143
  export * from './Event';
145
144
  export * from './Evidence';
145
+ export * from './FileMatch';
146
146
  export * from './FileRef';
147
+ export * from './FileVersion';
147
148
  export * from './FileWithUpload';
148
149
  export * from './FilterNode';
149
150
  export * from './FramePointAnchor';
@@ -236,7 +237,7 @@ export * from './OrganizationMembership';
236
237
  export * from './PageAgent';
237
238
  export * from './PageAgentVersion';
238
239
  export * from './PageApiKey';
239
- export * from './PageArtifactSummary';
240
+ export * from './PageArtifact';
240
241
  export * from './PageCommentSummary';
241
242
  export * from './PageComputeProvider';
242
243
  export * from './PageConnection';
@@ -248,6 +249,7 @@ export * from './PageDelivery';
248
249
  export * from './PageEnvironment';
249
250
  export * from './PageEvent';
250
251
  export * from './PageFile';
252
+ export * from './PageFileVersion';
251
253
  export * from './PageGatewayKey';
252
254
  export * from './PageImage';
253
255
  export * from './PageMachine';
@@ -386,6 +388,7 @@ export * from './UpdateConnectionRequest';
386
388
  export * from './UpdateConnectorRequest';
387
389
  export * from './UpdateDashboardRequest';
388
390
  export * from './UpdateEnvironmentRequest';
391
+ export * from './UpdateFileRequest';
389
392
  export * from './UpdateGatewayKeyRequest';
390
393
  export * from './UpdateMetricRequest';
391
394
  export * from './UpdateModelAliasRequest';
@@ -434,5 +437,6 @@ export * from './WorkflowOverlapEntry';
434
437
  export * from './WorkflowOverlapRules';
435
438
  export * from './WorkflowSummary';
436
439
  export * from './WorkflowVersion';
440
+ export * from './WriteFileDataRequest';
437
441
  export * from './WriteMetricValueRequest';
438
442
  export * from './WriteMetricValueRequestValue';
@@ -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,42 +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
- * Whether the machine ingress gateway would route this Preview's port now and that port's url is published: ONLINE when both hold, UNREACHABLE otherwise. Absent when the newest version is not a link into the machine preview zone.
76
- * @type {ArtifactPreviewStatusEnum}
77
- * @memberof Artifact
78
- */
79
- previewStatus?: ArtifactPreviewStatusEnum;
80
- /**
81
- * How many of its comments are open
82
- * @type {number}
83
- * @memberof Artifact
84
- */
85
- openCommentCount: number;
86
49
  /**
87
50
  * The work item it is attached to, set at create or by an update; absent when it has none
88
51
  * @type {string}
@@ -90,7 +53,7 @@ export interface Artifact {
90
53
  */
91
54
  workItemId?: string;
92
55
  /**
93
- * 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.
94
57
  * @type {ArtifactNotifyModeEnum}
95
58
  * @memberof Artifact
96
59
  */
@@ -120,22 +83,18 @@ export interface Artifact {
120
83
  */
121
84
  updatedAt: Date;
122
85
  /**
123
- * Labels: the customer's key-to-value tags; the platform reads no key
124
- * @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}
125
94
  * @memberof Artifact
126
95
  */
127
- labels: {
128
- [key: string]: string;
129
- };
96
+ currentVersion: number;
130
97
  }
131
- /**
132
- * @export
133
- */
134
- export declare const ArtifactPreviewStatusEnum: {
135
- readonly Online: "ONLINE";
136
- readonly Unreachable: "UNREACHABLE";
137
- };
138
- export type ArtifactPreviewStatusEnum = typeof ArtifactPreviewStatusEnum[keyof typeof ArtifactPreviewStatusEnum];
139
98
  /**
140
99
  * @export
141
100
  */
@@ -13,21 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ArtifactNotifyModeEnum = exports.ArtifactPreviewStatusEnum = void 0;
16
+ exports.ArtifactNotifyModeEnum = void 0;
17
17
  exports.instanceOfArtifact = instanceOfArtifact;
18
18
  exports.ArtifactFromJSON = ArtifactFromJSON;
19
19
  exports.ArtifactFromJSONTyped = ArtifactFromJSONTyped;
20
20
  exports.ArtifactToJSON = ArtifactToJSON;
21
21
  exports.ArtifactToJSONTyped = ArtifactToJSONTyped;
22
- const ArtifactVersion_1 = require("./ArtifactVersion");
23
22
  const IdentitySet_1 = require("./IdentitySet");
24
- /**
25
- * @export
26
- */
27
- exports.ArtifactPreviewStatusEnum = {
28
- Online: 'ONLINE',
29
- Unreachable: 'UNREACHABLE'
30
- };
31
23
  /**
32
24
  * @export
33
25
  */
@@ -45,19 +37,15 @@ function instanceOfArtifact(value) {
45
37
  return false;
46
38
  if (!('name' in value) || value['name'] === undefined)
47
39
  return false;
48
- if (!('currentVersion' in value) || value['currentVersion'] === undefined)
49
- return false;
50
- if (!('versions' in value) || value['versions'] === undefined)
51
- return false;
52
- if (!('openCommentCount' in value) || value['openCommentCount'] === undefined)
53
- return false;
54
40
  if (!('notifyMode' in value) || value['notifyMode'] === undefined)
55
41
  return false;
56
42
  if (!('createdAt' in value) || value['createdAt'] === undefined)
57
43
  return false;
58
44
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
59
45
  return false;
60
- if (!('labels' in value) || value['labels'] === undefined)
46
+ if (!('file' in value) || value['file'] === undefined)
47
+ return false;
48
+ if (!('currentVersion' in value) || value['currentVersion'] === undefined)
61
49
  return false;
62
50
  return true;
63
51
  }
@@ -74,19 +62,14 @@ function ArtifactFromJSONTyped(json, ignoreDiscriminator) {
74
62
  'teamId': json['teamId'] == null ? undefined : json['teamId'],
75
63
  'slug': json['slug'],
76
64
  'name': json['name'],
77
- 'currentVersion': json['currentVersion'],
78
- 'versions': (json['versions'].map(ArtifactVersion_1.ArtifactVersionFromJSON)),
79
- 'description': json['description'] == null ? undefined : json['description'],
80
- 'thumbnailUrl': json['thumbnailUrl'] == null ? undefined : json['thumbnailUrl'],
81
- 'previewStatus': json['previewStatus'] == null ? undefined : json['previewStatus'],
82
- 'openCommentCount': json['openCommentCount'],
83
65
  'workItemId': json['workItemId'] == null ? undefined : json['workItemId'],
84
66
  'notifyMode': json['notifyMode'],
85
67
  'hasUnsentChanges': json['hasUnsentChanges'] == null ? undefined : json['hasUnsentChanges'],
86
68
  'createdBy': json['createdBy'] == null ? undefined : (0, IdentitySet_1.IdentitySetFromJSON)(json['createdBy']),
87
69
  'createdAt': (new Date(json['createdAt'])),
88
70
  'updatedAt': (new Date(json['updatedAt'])),
89
- 'labels': json['labels'],
71
+ 'file': json['file'],
72
+ 'currentVersion': json['currentVersion'],
90
73
  };
91
74
  }
92
75
  function ArtifactToJSON(json) {
@@ -102,18 +85,13 @@ function ArtifactToJSONTyped(value, ignoreDiscriminator = false) {
102
85
  'teamId': value['teamId'],
103
86
  'slug': value['slug'],
104
87
  'name': value['name'],
105
- 'currentVersion': value['currentVersion'],
106
- 'versions': (value['versions'].map(ArtifactVersion_1.ArtifactVersionToJSON)),
107
- 'description': value['description'],
108
- 'thumbnailUrl': value['thumbnailUrl'],
109
- 'previewStatus': value['previewStatus'],
110
- 'openCommentCount': value['openCommentCount'],
111
88
  'workItemId': value['workItemId'],
112
89
  'notifyMode': value['notifyMode'],
113
90
  'hasUnsentChanges': value['hasUnsentChanges'],
114
91
  'createdBy': (0, IdentitySet_1.IdentitySetToJSON)(value['createdBy']),
115
92
  'createdAt': value['createdAt'].toISOString(),
116
93
  'updatedAt': value['updatedAt'].toISOString(),
117
- 'labels': value['labels'],
94
+ 'file': value['file'],
95
+ 'currentVersion': value['currentVersion'],
118
96
  };
119
97
  }
@@ -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}
@@ -34,7 +34,7 @@ exports.CommentStatusEnum = {
34
34
  function instanceOfComment(value) {
35
35
  if (!('id' in value) || value['id'] === undefined)
36
36
  return false;
37
- if (!('artifactId' in value) || value['artifactId'] === undefined)
37
+ if (!('fileId' in value) || value['fileId'] === undefined)
38
38
  return false;
39
39
  if (!('versionNumber' in value) || value['versionNumber'] === undefined)
40
40
  return false;
@@ -61,7 +61,7 @@ function CommentFromJSONTyped(json, ignoreDiscriminator) {
61
61
  }
62
62
  return {
63
63
  'id': json['id'],
64
- 'artifactId': json['artifactId'],
64
+ 'fileId': json['fileId'],
65
65
  'versionNumber': json['versionNumber'],
66
66
  'anchor': json['anchor'] == null ? undefined : (0, CommentAnchor_1.CommentAnchorFromJSON)(json['anchor']),
67
67
  'status': json['status'],
@@ -83,7 +83,7 @@ function CommentToJSONTyped(value, ignoreDiscriminator = false) {
83
83
  }
84
84
  return {
85
85
  'id': value['id'],
86
- 'artifactId': value['artifactId'],
86
+ 'fileId': value['fileId'],
87
87
  'versionNumber': value['versionNumber'],
88
88
  'anchor': (0, CommentAnchor_1.CommentAnchorToJSON)(value['anchor']),
89
89
  '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}