@knowledge-stack/ksapi 3.0.0 → 3.1.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@3.0.0
1
+ # @knowledge-stack/ksapi@3.1.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -727,7 +727,7 @@ and is automatically generated by the
727
727
  [OpenAPI Generator](https://openapi-generator.tech) project:
728
728
 
729
729
  - API version: `0.1.0`
730
- - Package version: `3.0.0`
730
+ - Package version: `3.1.0`
731
731
  - Generator version: `7.21.0`
732
732
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
733
733
 
@@ -16,6 +16,12 @@ import type { SkillFile } from './SkillFile';
16
16
  * @interface UpdateSkillRequest
17
17
  */
18
18
  export interface UpdateSkillRequest {
19
+ /**
20
+ * New skill name (its folder name), unique within the tenant and never a built-in name; the working copy's SKILL.md frontmatter follows it.
21
+ * @type {string}
22
+ * @memberof UpdateSkillRequest
23
+ */
24
+ name?: string | null;
19
25
  /**
20
26
  * Replacement SKILL.md, written to the working copy in place; null leaves it unchanged. Publish a version to snapshot; the active version is unchanged until then.
21
27
  * @type {string}
@@ -13,6 +13,9 @@
13
13
  */
14
14
  import { SkillFileFromJSON, SkillFileToJSON, } from './SkillFile';
15
15
  export const UpdateSkillRequestPropertyValidationAttributesMap = {
16
+ name: {
17
+ maxLength: 255,
18
+ },
16
19
  files: {
17
20
  maxItems: 2000,
18
21
  uniqueItems: false,
@@ -32,6 +35,7 @@ export function UpdateSkillRequestFromJSONTyped(json, ignoreDiscriminator) {
32
35
  return json;
33
36
  }
34
37
  return {
38
+ 'name': json['name'] == null ? undefined : json['name'],
35
39
  'skillMd': json['skill_md'] == null ? undefined : json['skill_md'],
36
40
  'files': json['files'] == null ? undefined : (json['files'].map(SkillFileFromJSON)),
37
41
  };
@@ -44,6 +48,7 @@ export function UpdateSkillRequestToJSONTyped(value, ignoreDiscriminator = false
44
48
  return value;
45
49
  }
46
50
  return {
51
+ 'name': value['name'],
47
52
  'skill_md': value['skillMd'],
48
53
  'files': value['files'] == null ? undefined : (value['files'].map(SkillFileToJSON)),
49
54
  };
@@ -16,6 +16,12 @@ import type { SkillFile } from './SkillFile';
16
16
  * @interface UpdateSkillRequest
17
17
  */
18
18
  export interface UpdateSkillRequest {
19
+ /**
20
+ * New skill name (its folder name), unique within the tenant and never a built-in name; the working copy's SKILL.md frontmatter follows it.
21
+ * @type {string}
22
+ * @memberof UpdateSkillRequest
23
+ */
24
+ name?: string | null;
19
25
  /**
20
26
  * Replacement SKILL.md, written to the working copy in place; null leaves it unchanged. Publish a version to snapshot; the active version is unchanged until then.
21
27
  * @type {string}
@@ -21,6 +21,9 @@ exports.UpdateSkillRequestToJSON = UpdateSkillRequestToJSON;
21
21
  exports.UpdateSkillRequestToJSONTyped = UpdateSkillRequestToJSONTyped;
22
22
  const SkillFile_1 = require("./SkillFile");
23
23
  exports.UpdateSkillRequestPropertyValidationAttributesMap = {
24
+ name: {
25
+ maxLength: 255,
26
+ },
24
27
  files: {
25
28
  maxItems: 2000,
26
29
  uniqueItems: false,
@@ -40,6 +43,7 @@ function UpdateSkillRequestFromJSONTyped(json, ignoreDiscriminator) {
40
43
  return json;
41
44
  }
42
45
  return {
46
+ 'name': json['name'] == null ? undefined : json['name'],
43
47
  'skillMd': json['skill_md'] == null ? undefined : json['skill_md'],
44
48
  'files': json['files'] == null ? undefined : (json['files'].map(SkillFile_1.SkillFileFromJSON)),
45
49
  };
@@ -52,6 +56,7 @@ function UpdateSkillRequestToJSONTyped(value, ignoreDiscriminator = false) {
52
56
  return value;
53
57
  }
54
58
  return {
59
+ 'name': value['name'],
55
60
  'skill_md': value['skillMd'],
56
61
  'files': value['files'] == null ? undefined : (value['files'].map(SkillFile_1.SkillFileToJSON)),
57
62
  };
@@ -7,6 +7,7 @@ Edit working-copy files in place (does NOT cut a version).
7
7
 
8
8
  Name | Type
9
9
  ------------ | -------------
10
+ `name` | string
10
11
  `skillMd` | string
11
12
  `files` | [Array<SkillFile>](SkillFile.md)
12
13
 
@@ -17,6 +18,7 @@ import type { UpdateSkillRequest } from '@knowledge-stack/ksapi'
17
18
 
18
19
  // TODO: Update the object below with actual values
19
20
  const example = {
21
+ "name": null,
20
22
  "skillMd": null,
21
23
  "files": null,
22
24
  } satisfies UpdateSkillRequest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -27,6 +27,12 @@ import {
27
27
  * @interface UpdateSkillRequest
28
28
  */
29
29
  export interface UpdateSkillRequest {
30
+ /**
31
+ * New skill name (its folder name), unique within the tenant and never a built-in name; the working copy's SKILL.md frontmatter follows it.
32
+ * @type {string}
33
+ * @memberof UpdateSkillRequest
34
+ */
35
+ name?: string | null;
30
36
  /**
31
37
  * Replacement SKILL.md, written to the working copy in place; null leaves it unchanged. Publish a version to snapshot; the active version is unchanged until then.
32
38
  * @type {string}
@@ -55,6 +61,9 @@ export const UpdateSkillRequestPropertyValidationAttributesMap: {
55
61
  uniqueItems?: boolean
56
62
  }
57
63
  } = {
64
+ name: {
65
+ maxLength: 255,
66
+ },
58
67
  files: {
59
68
  maxItems: 2000,
60
69
  uniqueItems: false,
@@ -79,6 +88,7 @@ export function UpdateSkillRequestFromJSONTyped(json: any, ignoreDiscriminator:
79
88
  }
80
89
  return {
81
90
 
91
+ 'name': json['name'] == null ? undefined : json['name'],
82
92
  'skillMd': json['skill_md'] == null ? undefined : json['skill_md'],
83
93
  'files': json['files'] == null ? undefined : ((json['files'] as Array<any>).map(SkillFileFromJSON)),
84
94
  };
@@ -95,6 +105,7 @@ export function UpdateSkillRequestToJSONTyped(value?: UpdateSkillRequest | null,
95
105
 
96
106
  return {
97
107
 
108
+ 'name': value['name'],
98
109
  'skill_md': value['skillMd'],
99
110
  'files': value['files'] == null ? undefined : ((value['files'] as Array<any>).map(SkillFileToJSON)),
100
111
  };