@knowledge-stack/ksapi 1.144.0 → 1.145.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 (39) hide show
  1. package/.openapi-generator/FILES +2 -2
  2. package/README.md +3 -3
  3. package/dist/apis/SkillsApi.d.ts +11 -8
  4. package/dist/apis/SkillsApi.js +7 -4
  5. package/dist/esm/apis/SkillsApi.d.ts +11 -8
  6. package/dist/esm/apis/SkillsApi.js +7 -4
  7. package/dist/esm/models/CreateSkillRequest.d.ts +4 -4
  8. package/dist/esm/models/CreateSkillRequest.js +5 -5
  9. package/dist/esm/models/{SkillScriptFile.d.ts → SkillFile.d.ts} +33 -15
  10. package/dist/esm/models/{SkillScriptFile.js → SkillFile.js} +23 -14
  11. package/dist/esm/models/SkillResponse.d.ts +6 -6
  12. package/dist/esm/models/SkillResponse.js +5 -5
  13. package/dist/esm/models/UpdateSkillRequest.d.ts +4 -4
  14. package/dist/esm/models/UpdateSkillRequest.js +5 -5
  15. package/dist/esm/models/index.d.ts +1 -1
  16. package/dist/esm/models/index.js +1 -1
  17. package/dist/models/CreateSkillRequest.d.ts +4 -4
  18. package/dist/models/CreateSkillRequest.js +5 -5
  19. package/dist/models/{SkillScriptFile.d.ts → SkillFile.d.ts} +33 -15
  20. package/dist/models/{SkillScriptFile.js → SkillFile.js} +29 -20
  21. package/dist/models/SkillResponse.d.ts +6 -6
  22. package/dist/models/SkillResponse.js +5 -5
  23. package/dist/models/UpdateSkillRequest.d.ts +4 -4
  24. package/dist/models/UpdateSkillRequest.js +5 -5
  25. package/dist/models/index.d.ts +1 -1
  26. package/dist/models/index.js +1 -1
  27. package/docs/CreateSkillRequest.md +2 -2
  28. package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.md +4 -4
  29. package/docs/{SkillScriptFile.md → SkillFile.md} +9 -7
  30. package/docs/SkillResponse.md +4 -4
  31. package/docs/SkillsApi.md +6 -3
  32. package/docs/UpdateSkillRequest.md +2 -2
  33. package/package.json +1 -1
  34. package/src/apis/SkillsApi.ts +15 -8
  35. package/src/models/CreateSkillRequest.ts +13 -13
  36. package/src/models/{SkillScriptFile.ts → SkillFile.ts} +45 -22
  37. package/src/models/SkillResponse.ts +15 -15
  38. package/src/models/UpdateSkillRequest.ts +13 -13
  39. package/src/models/index.ts +1 -1
@@ -283,9 +283,9 @@ docs/SetApprovalStateRequest.md
283
283
  docs/SetWorkflowRunApprovalRequest.md
284
284
  docs/SheetVisibilityChange.md
285
285
  docs/SignInRequest.md
286
+ docs/SkillFile.md
286
287
  docs/SkillOrder.md
287
288
  docs/SkillResponse.md
288
- docs/SkillScriptFile.md
289
289
  docs/SkillSearchResult.md
290
290
  docs/SkillVersionResponse.md
291
291
  docs/SkillsApi.md
@@ -697,9 +697,9 @@ src/models/SetApprovalStateRequest.ts
697
697
  src/models/SetWorkflowRunApprovalRequest.ts
698
698
  src/models/SheetVisibilityChange.ts
699
699
  src/models/SignInRequest.ts
700
+ src/models/SkillFile.ts
700
701
  src/models/SkillOrder.ts
701
702
  src/models/SkillResponse.ts
702
- src/models/SkillScriptFile.ts
703
703
  src/models/SkillSearchResult.ts
704
704
  src/models/SkillVersionResponse.ts
705
705
  src/models/SortDirection.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.144.0
1
+ # @knowledge-stack/ksapi@1.145.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -546,9 +546,9 @@ All URIs are relative to *http://localhost:8000*
546
546
  - [SetWorkflowRunApprovalRequest](docs/SetWorkflowRunApprovalRequest.md)
547
547
  - [SheetVisibilityChange](docs/SheetVisibilityChange.md)
548
548
  - [SignInRequest](docs/SignInRequest.md)
549
+ - [SkillFile](docs/SkillFile.md)
549
550
  - [SkillOrder](docs/SkillOrder.md)
550
551
  - [SkillResponse](docs/SkillResponse.md)
551
- - [SkillScriptFile](docs/SkillScriptFile.md)
552
552
  - [SkillSearchResult](docs/SkillSearchResult.md)
553
553
  - [SkillVersionResponse](docs/SkillVersionResponse.md)
554
554
  - [SortDirection](docs/SortDirection.md)
@@ -673,7 +673,7 @@ and is automatically generated by the
673
673
  [OpenAPI Generator](https://openapi-generator.tech) project:
674
674
 
675
675
  - API version: `0.1.0`
676
- - Package version: `1.144.0`
676
+ - Package version: `1.145.0`
677
677
  - Generator version: `7.21.0`
678
678
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
679
679
 
@@ -36,6 +36,7 @@ export interface ExportSkillRequest {
36
36
  }
37
37
  export interface GetSkillRequest {
38
38
  skillId: string;
39
+ includeFileContents?: boolean;
39
40
  }
40
41
  export interface ImportSkillRequest {
41
42
  file: Blob;
@@ -221,21 +222,23 @@ export interface SkillsApiInterface {
221
222
  /**
222
223
  * Creates request options for getSkill without sending the request
223
224
  * @param {string} skillId
225
+ * @param {boolean} [includeFileContents] Include every bundle file\'s contents (base64 for binary). Off by default — the editor opts in; a large skill\'s contents can be many MB and one S3 read per file.
224
226
  * @throws {RequiredError}
225
227
  * @memberof SkillsApiInterface
226
228
  */
227
229
  getSkillRequestOpts(requestParameters: GetSkillRequest): Promise<runtime.RequestOpts>;
228
230
  /**
229
- * Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
231
+ * Skill detail: SKILL.md, file paths (+ contents on request), perms.
230
232
  * @summary Get Skill Handler
231
233
  * @param {string} skillId
234
+ * @param {boolean} [includeFileContents] Include every bundle file\&#39;s contents (base64 for binary). Off by default — the editor opts in; a large skill\&#39;s contents can be many MB and one S3 read per file.
232
235
  * @param {*} [options] Override http request option.
233
236
  * @throws {RequiredError}
234
237
  * @memberof SkillsApiInterface
235
238
  */
236
239
  getSkillRaw(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
237
240
  /**
238
- * Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
241
+ * Skill detail: SKILL.md, file paths (+ contents on request), perms.
239
242
  * Get Skill Handler
240
243
  */
241
244
  getSkill(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
@@ -247,7 +250,7 @@ export interface SkillsApiInterface {
247
250
  */
248
251
  importSkillRequestOpts(requestParameters: ImportSkillRequest): Promise<runtime.RequestOpts>;
249
252
  /**
250
- * Create a skill by importing a redistributable ZIP (works across tenants).
253
+ * Create a skill from an uploaded ZIP or tarball (works across tenants).
251
254
  * @summary Import Skill Handler
252
255
  * @param {Blob} file
253
256
  * @param {*} [options] Override http request option.
@@ -256,7 +259,7 @@ export interface SkillsApiInterface {
256
259
  */
257
260
  importSkillRaw(requestParameters: ImportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
258
261
  /**
259
- * Create a skill by importing a redistributable ZIP (works across tenants).
262
+ * Create a skill from an uploaded ZIP or tarball (works across tenants).
260
263
  * Import Skill Handler
261
264
  */
262
265
  importSkill(requestParameters: ImportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
@@ -483,12 +486,12 @@ export declare class SkillsApi extends runtime.BaseAPI implements SkillsApiInter
483
486
  */
484
487
  getSkillRequestOpts(requestParameters: GetSkillRequest): Promise<runtime.RequestOpts>;
485
488
  /**
486
- * Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
489
+ * Skill detail: SKILL.md, file paths (+ contents on request), perms.
487
490
  * Get Skill Handler
488
491
  */
489
492
  getSkillRaw(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
490
493
  /**
491
- * Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
494
+ * Skill detail: SKILL.md, file paths (+ contents on request), perms.
492
495
  * Get Skill Handler
493
496
  */
494
497
  getSkill(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
@@ -497,12 +500,12 @@ export declare class SkillsApi extends runtime.BaseAPI implements SkillsApiInter
497
500
  */
498
501
  importSkillRequestOpts(requestParameters: ImportSkillRequest): Promise<runtime.RequestOpts>;
499
502
  /**
500
- * Create a skill by importing a redistributable ZIP (works across tenants).
503
+ * Create a skill from an uploaded ZIP or tarball (works across tenants).
501
504
  * Import Skill Handler
502
505
  */
503
506
  importSkillRaw(requestParameters: ImportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
504
507
  /**
505
- * Create a skill by importing a redistributable ZIP (works across tenants).
508
+ * Create a skill from an uploaded ZIP or tarball (works across tenants).
506
509
  * Import Skill Handler
507
510
  */
508
511
  importSkill(requestParameters: ImportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
@@ -420,6 +420,9 @@ class SkillsApi extends runtime.BaseAPI {
420
420
  throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling getSkill().');
421
421
  }
422
422
  const queryParameters = {};
423
+ if (requestParameters['includeFileContents'] != null) {
424
+ queryParameters['include_file_contents'] = requestParameters['includeFileContents'];
425
+ }
423
426
  const headerParameters = {};
424
427
  if (this.configuration && this.configuration.accessToken) {
425
428
  const token = this.configuration.accessToken;
@@ -439,7 +442,7 @@ class SkillsApi extends runtime.BaseAPI {
439
442
  });
440
443
  }
441
444
  /**
442
- * Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
445
+ * Skill detail: SKILL.md, file paths (+ contents on request), perms.
443
446
  * Get Skill Handler
444
447
  */
445
448
  getSkillRaw(requestParameters, initOverrides) {
@@ -450,7 +453,7 @@ class SkillsApi extends runtime.BaseAPI {
450
453
  });
451
454
  }
452
455
  /**
453
- * Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
456
+ * Skill detail: SKILL.md, file paths (+ contents on request), perms.
454
457
  * Get Skill Handler
455
458
  */
456
459
  getSkill(requestParameters, initOverrides) {
@@ -505,7 +508,7 @@ class SkillsApi extends runtime.BaseAPI {
505
508
  });
506
509
  }
507
510
  /**
508
- * Create a skill by importing a redistributable ZIP (works across tenants).
511
+ * Create a skill from an uploaded ZIP or tarball (works across tenants).
509
512
  * Import Skill Handler
510
513
  */
511
514
  importSkillRaw(requestParameters, initOverrides) {
@@ -516,7 +519,7 @@ class SkillsApi extends runtime.BaseAPI {
516
519
  });
517
520
  }
518
521
  /**
519
- * Create a skill by importing a redistributable ZIP (works across tenants).
522
+ * Create a skill from an uploaded ZIP or tarball (works across tenants).
520
523
  * Import Skill Handler
521
524
  */
522
525
  importSkill(requestParameters, initOverrides) {
@@ -36,6 +36,7 @@ export interface ExportSkillRequest {
36
36
  }
37
37
  export interface GetSkillRequest {
38
38
  skillId: string;
39
+ includeFileContents?: boolean;
39
40
  }
40
41
  export interface ImportSkillRequest {
41
42
  file: Blob;
@@ -221,21 +222,23 @@ export interface SkillsApiInterface {
221
222
  /**
222
223
  * Creates request options for getSkill without sending the request
223
224
  * @param {string} skillId
225
+ * @param {boolean} [includeFileContents] Include every bundle file\&#39;s contents (base64 for binary). Off by default — the editor opts in; a large skill\&#39;s contents can be many MB and one S3 read per file.
224
226
  * @throws {RequiredError}
225
227
  * @memberof SkillsApiInterface
226
228
  */
227
229
  getSkillRequestOpts(requestParameters: GetSkillRequest): Promise<runtime.RequestOpts>;
228
230
  /**
229
- * Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
231
+ * Skill detail: SKILL.md, file paths (+ contents on request), perms.
230
232
  * @summary Get Skill Handler
231
233
  * @param {string} skillId
234
+ * @param {boolean} [includeFileContents] Include every bundle file\&#39;s contents (base64 for binary). Off by default — the editor opts in; a large skill\&#39;s contents can be many MB and one S3 read per file.
232
235
  * @param {*} [options] Override http request option.
233
236
  * @throws {RequiredError}
234
237
  * @memberof SkillsApiInterface
235
238
  */
236
239
  getSkillRaw(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
237
240
  /**
238
- * Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
241
+ * Skill detail: SKILL.md, file paths (+ contents on request), perms.
239
242
  * Get Skill Handler
240
243
  */
241
244
  getSkill(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
@@ -247,7 +250,7 @@ export interface SkillsApiInterface {
247
250
  */
248
251
  importSkillRequestOpts(requestParameters: ImportSkillRequest): Promise<runtime.RequestOpts>;
249
252
  /**
250
- * Create a skill by importing a redistributable ZIP (works across tenants).
253
+ * Create a skill from an uploaded ZIP or tarball (works across tenants).
251
254
  * @summary Import Skill Handler
252
255
  * @param {Blob} file
253
256
  * @param {*} [options] Override http request option.
@@ -256,7 +259,7 @@ export interface SkillsApiInterface {
256
259
  */
257
260
  importSkillRaw(requestParameters: ImportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
258
261
  /**
259
- * Create a skill by importing a redistributable ZIP (works across tenants).
262
+ * Create a skill from an uploaded ZIP or tarball (works across tenants).
260
263
  * Import Skill Handler
261
264
  */
262
265
  importSkill(requestParameters: ImportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
@@ -483,12 +486,12 @@ export declare class SkillsApi extends runtime.BaseAPI implements SkillsApiInter
483
486
  */
484
487
  getSkillRequestOpts(requestParameters: GetSkillRequest): Promise<runtime.RequestOpts>;
485
488
  /**
486
- * Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
489
+ * Skill detail: SKILL.md, file paths (+ contents on request), perms.
487
490
  * Get Skill Handler
488
491
  */
489
492
  getSkillRaw(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
490
493
  /**
491
- * Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
494
+ * Skill detail: SKILL.md, file paths (+ contents on request), perms.
492
495
  * Get Skill Handler
493
496
  */
494
497
  getSkill(requestParameters: GetSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
@@ -497,12 +500,12 @@ export declare class SkillsApi extends runtime.BaseAPI implements SkillsApiInter
497
500
  */
498
501
  importSkillRequestOpts(requestParameters: ImportSkillRequest): Promise<runtime.RequestOpts>;
499
502
  /**
500
- * Create a skill by importing a redistributable ZIP (works across tenants).
503
+ * Create a skill from an uploaded ZIP or tarball (works across tenants).
501
504
  * Import Skill Handler
502
505
  */
503
506
  importSkillRaw(requestParameters: ImportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SkillResponse>>;
504
507
  /**
505
- * Create a skill by importing a redistributable ZIP (works across tenants).
508
+ * Create a skill from an uploaded ZIP or tarball (works across tenants).
506
509
  * Import Skill Handler
507
510
  */
508
511
  importSkill(requestParameters: ImportSkillRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SkillResponse>;
@@ -384,6 +384,9 @@ export class SkillsApi extends runtime.BaseAPI {
384
384
  throw new runtime.RequiredError('skillId', 'Required parameter "skillId" was null or undefined when calling getSkill().');
385
385
  }
386
386
  const queryParameters = {};
387
+ if (requestParameters['includeFileContents'] != null) {
388
+ queryParameters['include_file_contents'] = requestParameters['includeFileContents'];
389
+ }
387
390
  const headerParameters = {};
388
391
  if (this.configuration && this.configuration.accessToken) {
389
392
  const token = this.configuration.accessToken;
@@ -403,7 +406,7 @@ export class SkillsApi extends runtime.BaseAPI {
403
406
  });
404
407
  }
405
408
  /**
406
- * Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
409
+ * Skill detail: SKILL.md, file paths (+ contents on request), perms.
407
410
  * Get Skill Handler
408
411
  */
409
412
  getSkillRaw(requestParameters, initOverrides) {
@@ -414,7 +417,7 @@ export class SkillsApi extends runtime.BaseAPI {
414
417
  });
415
418
  }
416
419
  /**
417
- * Skill detail: SKILL.md, script contents, has_unpublished_changes, perms.
420
+ * Skill detail: SKILL.md, file paths (+ contents on request), perms.
418
421
  * Get Skill Handler
419
422
  */
420
423
  getSkill(requestParameters, initOverrides) {
@@ -469,7 +472,7 @@ export class SkillsApi extends runtime.BaseAPI {
469
472
  });
470
473
  }
471
474
  /**
472
- * Create a skill by importing a redistributable ZIP (works across tenants).
475
+ * Create a skill from an uploaded ZIP or tarball (works across tenants).
473
476
  * Import Skill Handler
474
477
  */
475
478
  importSkillRaw(requestParameters, initOverrides) {
@@ -480,7 +483,7 @@ export class SkillsApi extends runtime.BaseAPI {
480
483
  });
481
484
  }
482
485
  /**
483
- * Create a skill by importing a redistributable ZIP (works across tenants).
486
+ * Create a skill from an uploaded ZIP or tarball (works across tenants).
484
487
  * Import Skill Handler
485
488
  */
486
489
  importSkill(requestParameters, initOverrides) {
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { SkillScriptFile } from './SkillScriptFile';
12
+ import type { SkillFile } from './SkillFile';
13
13
  /**
14
14
  * Author a skill from a SKILL.md bundle.
15
15
  * @export
@@ -29,11 +29,11 @@ export interface CreateSkillRequest {
29
29
  */
30
30
  skillMd: string;
31
31
  /**
32
- * Optional scripts bundled under the skill's scripts/ folder.
33
- * @type {Array<SkillScriptFile>}
32
+ * Optional bundle files at paths relative to the skill root (scripts/, references/, assets/, …). SKILL.md is supplied separately and must not be repeated here.
33
+ * @type {Array<SkillFile>}
34
34
  * @memberof CreateSkillRequest
35
35
  */
36
- scripts?: Array<SkillScriptFile>;
36
+ files?: Array<SkillFile>;
37
37
  }
38
38
  export declare const CreateSkillRequestPropertyValidationAttributesMap: {
39
39
  [property: string]: {
@@ -11,13 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { SkillScriptFileFromJSON, SkillScriptFileToJSON, } from './SkillScriptFile';
14
+ import { SkillFileFromJSON, SkillFileToJSON, } from './SkillFile';
15
15
  export const CreateSkillRequestPropertyValidationAttributesMap = {
16
16
  name: {
17
17
  maxLength: 255,
18
18
  },
19
- scripts: {
20
- maxItems: 50,
19
+ files: {
20
+ maxItems: 2000,
21
21
  uniqueItems: false,
22
22
  },
23
23
  };
@@ -41,7 +41,7 @@ export function CreateSkillRequestFromJSONTyped(json, ignoreDiscriminator) {
41
41
  return {
42
42
  'name': json['name'],
43
43
  'skillMd': json['skill_md'],
44
- 'scripts': json['scripts'] == null ? undefined : (json['scripts'].map(SkillScriptFileFromJSON)),
44
+ 'files': json['files'] == null ? undefined : (json['files'].map(SkillFileFromJSON)),
45
45
  };
46
46
  }
47
47
  export function CreateSkillRequestToJSON(json) {
@@ -54,6 +54,6 @@ export function CreateSkillRequestToJSONTyped(value, ignoreDiscriminator = false
54
54
  return {
55
55
  'name': value['name'],
56
56
  'skill_md': value['skillMd'],
57
- 'scripts': value['scripts'] == null ? undefined : (value['scripts'].map(SkillScriptFileToJSON)),
57
+ 'files': value['files'] == null ? undefined : (value['files'].map(SkillFileToJSON)),
58
58
  };
59
59
  }
@@ -10,25 +10,43 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * A single script bundled under a skill's ``scripts/`` folder.
13
+ * One file in a skill bundle, at a path relative to the skill root.
14
+ *
15
+ * Skills carry arbitrary trees (``scripts/office/validate.py``,
16
+ * ``references/guide.md``, ``assets/logo.png``), so binary files are carried
17
+ * base64-encoded rather than excluded.
14
18
  * @export
15
- * @interface SkillScriptFile
19
+ * @interface SkillFile
16
20
  */
17
- export interface SkillScriptFile {
21
+ export interface SkillFile {
18
22
  /**
19
- * Script file name, e.g. inspect.py
23
+ * Path relative to the skill root, e.g. scripts/office/run.py
20
24
  * @type {string}
21
- * @memberof SkillScriptFile
25
+ * @memberof SkillFile
22
26
  */
23
- name: string;
27
+ path: string;
24
28
  /**
25
- * Script file contents (UTF-8 text).
29
+ * UTF-8 text, or base64-encoded bytes when encoding=base64.
26
30
  * @type {string}
27
- * @memberof SkillScriptFile
31
+ * @memberof SkillFile
28
32
  */
29
33
  content: string;
34
+ /**
35
+ * How `content` is encoded.
36
+ * @type {SkillFileEncodingEnum}
37
+ * @memberof SkillFile
38
+ */
39
+ encoding?: SkillFileEncodingEnum;
30
40
  }
31
- export declare const SkillScriptFilePropertyValidationAttributesMap: {
41
+ /**
42
+ * @export
43
+ */
44
+ export declare const SkillFileEncodingEnum: {
45
+ readonly Utf8: 'utf-8';
46
+ readonly Base64: 'base64';
47
+ };
48
+ export type SkillFileEncodingEnum = typeof SkillFileEncodingEnum[keyof typeof SkillFileEncodingEnum];
49
+ export declare const SkillFilePropertyValidationAttributesMap: {
32
50
  [property: string]: {
33
51
  maxLength?: number;
34
52
  minLength?: number;
@@ -44,10 +62,10 @@ export declare const SkillScriptFilePropertyValidationAttributesMap: {
44
62
  };
45
63
  };
46
64
  /**
47
- * Check if a given object implements the SkillScriptFile interface.
65
+ * Check if a given object implements the SkillFile interface.
48
66
  */
49
- export declare function instanceOfSkillScriptFile(value: object): value is SkillScriptFile;
50
- export declare function SkillScriptFileFromJSON(json: any): SkillScriptFile;
51
- export declare function SkillScriptFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkillScriptFile;
52
- export declare function SkillScriptFileToJSON(json: any): SkillScriptFile;
53
- export declare function SkillScriptFileToJSONTyped(value?: SkillScriptFile | null, ignoreDiscriminator?: boolean): any;
67
+ export declare function instanceOfSkillFile(value: object): value is SkillFile;
68
+ export declare function SkillFileFromJSON(json: any): SkillFile;
69
+ export declare function SkillFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkillFile;
70
+ export declare function SkillFileToJSON(json: any): SkillFile;
71
+ export declare function SkillFileToJSONTyped(value?: SkillFile | null, ignoreDiscriminator?: boolean): any;
@@ -11,42 +11,51 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export const SkillScriptFilePropertyValidationAttributesMap = {
15
- name: {
16
- maxLength: 255,
14
+ /**
15
+ * @export
16
+ */
17
+ export const SkillFileEncodingEnum = {
18
+ Utf8: 'utf-8',
19
+ Base64: 'base64'
20
+ };
21
+ export const SkillFilePropertyValidationAttributesMap = {
22
+ path: {
23
+ maxLength: 1024,
17
24
  },
18
25
  };
19
26
  /**
20
- * Check if a given object implements the SkillScriptFile interface.
27
+ * Check if a given object implements the SkillFile interface.
21
28
  */
22
- export function instanceOfSkillScriptFile(value) {
23
- if (!('name' in value) || value['name'] === undefined)
29
+ export function instanceOfSkillFile(value) {
30
+ if (!('path' in value) || value['path'] === undefined)
24
31
  return false;
25
32
  if (!('content' in value) || value['content'] === undefined)
26
33
  return false;
27
34
  return true;
28
35
  }
29
- export function SkillScriptFileFromJSON(json) {
30
- return SkillScriptFileFromJSONTyped(json, false);
36
+ export function SkillFileFromJSON(json) {
37
+ return SkillFileFromJSONTyped(json, false);
31
38
  }
32
- export function SkillScriptFileFromJSONTyped(json, ignoreDiscriminator) {
39
+ export function SkillFileFromJSONTyped(json, ignoreDiscriminator) {
33
40
  if (json == null) {
34
41
  return json;
35
42
  }
36
43
  return {
37
- 'name': json['name'],
44
+ 'path': json['path'],
38
45
  'content': json['content'],
46
+ 'encoding': json['encoding'] == null ? undefined : json['encoding'],
39
47
  };
40
48
  }
41
- export function SkillScriptFileToJSON(json) {
42
- return SkillScriptFileToJSONTyped(json, false);
49
+ export function SkillFileToJSON(json) {
50
+ return SkillFileToJSONTyped(json, false);
43
51
  }
44
- export function SkillScriptFileToJSONTyped(value, ignoreDiscriminator = false) {
52
+ export function SkillFileToJSONTyped(value, ignoreDiscriminator = false) {
45
53
  if (value == null) {
46
54
  return value;
47
55
  }
48
56
  return {
49
- 'name': value['name'],
57
+ 'path': value['path'],
50
58
  'content': value['content'],
59
+ 'encoding': value['encoding'],
51
60
  };
52
61
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ItemPermissions } from './ItemPermissions';
13
- import type { SkillScriptFile } from './SkillScriptFile';
13
+ import type { SkillFile } from './SkillFile';
14
14
  import type { PathPartApprovalState } from './PathPartApprovalState';
15
15
  import type { UserInfo } from './UserInfo';
16
16
  /**
@@ -74,17 +74,17 @@ export interface SkillResponse {
74
74
  */
75
75
  skillMd?: string | null;
76
76
  /**
77
- * Bundled script file names; populated on the detail read and on mutation responses, empty on list.
77
+ * Bundle file paths relative to the skill root (SKILL.md excluded); populated on the detail read and on mutation responses, empty on list.
78
78
  * @type {Array<string>}
79
79
  * @memberof SkillResponse
80
80
  */
81
- scriptNames?: Array<string>;
81
+ filePaths?: Array<string>;
82
82
  /**
83
- * Bundled scripts with their contents; populated only on the detail read (GET /skills/{id}), null on list. Lets the editor read the current script set so a PATCH can safely resubmit the whole set.
84
- * @type {Array<SkillScriptFile>}
83
+ * Bundle files with their contents; populated only on the detail read (GET /skills/{id}), null on list. Lets the editor read the current file set so a PATCH can safely resubmit the whole set.
84
+ * @type {Array<SkillFile>}
85
85
  * @memberof SkillResponse
86
86
  */
87
- scripts?: Array<SkillScriptFile> | null;
87
+ files?: Array<SkillFile> | null;
88
88
  /**
89
89
  * Whether the working copy differs from the active published version. Always present (incl. list responses) so the UI can flag a skill with an unpublished draft.
90
90
  * @type {boolean}
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { ItemPermissionsFromJSON, ItemPermissionsToJSON, } from './ItemPermissions';
15
- import { SkillScriptFileFromJSON, SkillScriptFileToJSON, } from './SkillScriptFile';
15
+ import { SkillFileFromJSON, SkillFileToJSON, } from './SkillFile';
16
16
  import { PathPartApprovalStateFromJSON, PathPartApprovalStateToJSON, } from './PathPartApprovalState';
17
17
  import { UserInfoFromJSON, UserInfoToJSON, } from './UserInfo';
18
18
  /**
@@ -65,8 +65,8 @@ export function SkillResponseFromJSONTyped(json, ignoreDiscriminator) {
65
65
  'name': json['name'],
66
66
  'description': json['description'],
67
67
  'skillMd': json['skill_md'] == null ? undefined : json['skill_md'],
68
- 'scriptNames': json['script_names'] == null ? undefined : json['script_names'],
69
- 'scripts': json['scripts'] == null ? undefined : (json['scripts'].map(SkillScriptFileFromJSON)),
68
+ 'filePaths': json['file_paths'] == null ? undefined : json['file_paths'],
69
+ 'files': json['files'] == null ? undefined : (json['files'].map(SkillFileFromJSON)),
70
70
  'hasUnpublishedChanges': json['has_unpublished_changes'] == null ? undefined : json['has_unpublished_changes'],
71
71
  'approvalState': PathPartApprovalStateFromJSON(json['approval_state']),
72
72
  'owner': json['owner'] == null ? undefined : UserInfoFromJSON(json['owner']),
@@ -92,8 +92,8 @@ export function SkillResponseToJSONTyped(value, ignoreDiscriminator = false) {
92
92
  'name': value['name'],
93
93
  'description': value['description'],
94
94
  'skill_md': value['skillMd'],
95
- 'script_names': value['scriptNames'],
96
- 'scripts': value['scripts'] == null ? undefined : (value['scripts'].map(SkillScriptFileToJSON)),
95
+ 'file_paths': value['filePaths'],
96
+ 'files': value['files'] == null ? undefined : (value['files'].map(SkillFileToJSON)),
97
97
  'has_unpublished_changes': value['hasUnpublishedChanges'],
98
98
  'approval_state': PathPartApprovalStateToJSON(value['approvalState']),
99
99
  'owner': UserInfoToJSON(value['owner']),
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { SkillScriptFile } from './SkillScriptFile';
12
+ import type { SkillFile } from './SkillFile';
13
13
  /**
14
14
  * Edit working-copy files in place (does NOT cut a version).
15
15
  * @export
@@ -23,11 +23,11 @@ export interface UpdateSkillRequest {
23
23
  */
24
24
  skillMd?: string | null;
25
25
  /**
26
- * Replace the working-copy scripts set (add/overwrite/remove to match); null leaves scripts unchanged, [] removes them all.
27
- * @type {Array<SkillScriptFile>}
26
+ * Replace the whole bundle below SKILL.md (add/overwrite/remove to match); null leaves the tree unchanged, [] removes every file.
27
+ * @type {Array<SkillFile>}
28
28
  * @memberof UpdateSkillRequest
29
29
  */
30
- scripts?: Array<SkillScriptFile> | null;
30
+ files?: Array<SkillFile> | null;
31
31
  }
32
32
  export declare const UpdateSkillRequestPropertyValidationAttributesMap: {
33
33
  [property: string]: {
@@ -11,10 +11,10 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { SkillScriptFileFromJSON, SkillScriptFileToJSON, } from './SkillScriptFile';
14
+ import { SkillFileFromJSON, SkillFileToJSON, } from './SkillFile';
15
15
  export const UpdateSkillRequestPropertyValidationAttributesMap = {
16
- scripts: {
17
- maxItems: 50,
16
+ files: {
17
+ maxItems: 2000,
18
18
  uniqueItems: false,
19
19
  },
20
20
  };
@@ -33,7 +33,7 @@ export function UpdateSkillRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'skillMd': json['skill_md'] == null ? undefined : json['skill_md'],
36
- 'scripts': json['scripts'] == null ? undefined : (json['scripts'].map(SkillScriptFileFromJSON)),
36
+ 'files': json['files'] == null ? undefined : (json['files'].map(SkillFileFromJSON)),
37
37
  };
38
38
  }
39
39
  export function UpdateSkillRequestToJSON(json) {
@@ -45,6 +45,6 @@ export function UpdateSkillRequestToJSONTyped(value, ignoreDiscriminator = false
45
45
  }
46
46
  return {
47
47
  'skill_md': value['skillMd'],
48
- 'scripts': value['scripts'] == null ? undefined : (value['scripts'].map(SkillScriptFileToJSON)),
48
+ 'files': value['files'] == null ? undefined : (value['files'].map(SkillFileToJSON)),
49
49
  };
50
50
  }
@@ -255,9 +255,9 @@ export * from './SetApprovalStateRequest';
255
255
  export * from './SetWorkflowRunApprovalRequest';
256
256
  export * from './SheetVisibilityChange';
257
257
  export * from './SignInRequest';
258
+ export * from './SkillFile';
258
259
  export * from './SkillOrder';
259
260
  export * from './SkillResponse';
260
- export * from './SkillScriptFile';
261
261
  export * from './SkillSearchResult';
262
262
  export * from './SkillVersionResponse';
263
263
  export * from './SortDirection';
@@ -257,9 +257,9 @@ export * from './SetApprovalStateRequest';
257
257
  export * from './SetWorkflowRunApprovalRequest';
258
258
  export * from './SheetVisibilityChange';
259
259
  export * from './SignInRequest';
260
+ export * from './SkillFile';
260
261
  export * from './SkillOrder';
261
262
  export * from './SkillResponse';
262
- export * from './SkillScriptFile';
263
263
  export * from './SkillSearchResult';
264
264
  export * from './SkillVersionResponse';
265
265
  export * from './SortDirection';