@tsumugi-chan/client 1.0.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 (155) hide show
  1. package/README.md +36 -0
  2. package/dist/apis/AiApi.d.ts +95 -0
  3. package/dist/apis/AiApi.d.ts.map +1 -0
  4. package/dist/apis/AiApi.js +259 -0
  5. package/dist/apis/AuthApi.d.ts +76 -0
  6. package/dist/apis/AuthApi.d.ts.map +1 -0
  7. package/dist/apis/AuthApi.js +181 -0
  8. package/dist/apis/CharactersApi.d.ts +65 -0
  9. package/dist/apis/CharactersApi.d.ts.map +1 -0
  10. package/dist/apis/CharactersApi.js +181 -0
  11. package/dist/apis/HealthApi.d.ts +29 -0
  12. package/dist/apis/HealthApi.d.ts.map +1 -0
  13. package/dist/apis/HealthApi.js +84 -0
  14. package/dist/apis/MemosApi.d.ts +65 -0
  15. package/dist/apis/MemosApi.d.ts.map +1 -0
  16. package/dist/apis/MemosApi.js +181 -0
  17. package/dist/apis/PlotsApi.d.ts +65 -0
  18. package/dist/apis/PlotsApi.d.ts.map +1 -0
  19. package/dist/apis/PlotsApi.js +181 -0
  20. package/dist/apis/ProjectsApi.d.ts +262 -0
  21. package/dist/apis/ProjectsApi.d.ts.map +1 -0
  22. package/dist/apis/ProjectsApi.js +705 -0
  23. package/dist/apis/WritingsApi.d.ts +65 -0
  24. package/dist/apis/WritingsApi.d.ts.map +1 -0
  25. package/dist/apis/WritingsApi.js +181 -0
  26. package/dist/apis/index.d.ts +9 -0
  27. package/dist/apis/index.d.ts.map +1 -0
  28. package/dist/apis/index.js +26 -0
  29. package/dist/index.d.ts +4 -0
  30. package/dist/index.d.ts.map +1 -0
  31. package/dist/index.js +21 -0
  32. package/dist/models/AIChatContext.d.ts +34 -0
  33. package/dist/models/AIChatContext.d.ts.map +1 -0
  34. package/dist/models/AIChatContext.js +49 -0
  35. package/dist/models/AIChatContextTab.d.ts +62 -0
  36. package/dist/models/AIChatContextTab.d.ts.map +1 -0
  37. package/dist/models/AIChatContextTab.js +71 -0
  38. package/dist/models/AIMemory.d.ts +45 -0
  39. package/dist/models/AIMemory.d.ts.map +1 -0
  40. package/dist/models/AIMemory.js +58 -0
  41. package/dist/models/AIMessage.d.ts +114 -0
  42. package/dist/models/AIMessage.d.ts.map +1 -0
  43. package/dist/models/AIMessage.js +111 -0
  44. package/dist/models/AIMessageContentInner.d.ts +31 -0
  45. package/dist/models/AIMessageContentInner.d.ts.map +1 -0
  46. package/dist/models/AIMessageContentInner.js +58 -0
  47. package/dist/models/AIModelConfig.d.ts +54 -0
  48. package/dist/models/AIModelConfig.d.ts.map +1 -0
  49. package/dist/models/AIModelConfig.js +61 -0
  50. package/dist/models/AIProjectUsage.d.ts +47 -0
  51. package/dist/models/AIProjectUsage.d.ts.map +1 -0
  52. package/dist/models/AIProjectUsage.js +60 -0
  53. package/dist/models/AISession.d.ts +72 -0
  54. package/dist/models/AISession.d.ts.map +1 -0
  55. package/dist/models/AISession.js +79 -0
  56. package/dist/models/AISessionUsage.d.ts +46 -0
  57. package/dist/models/AISessionUsage.d.ts.map +1 -0
  58. package/dist/models/AISessionUsage.js +59 -0
  59. package/dist/models/AITextPart.d.ts +46 -0
  60. package/dist/models/AITextPart.d.ts.map +1 -0
  61. package/dist/models/AITextPart.js +61 -0
  62. package/dist/models/AITokenUsage.d.ts +45 -0
  63. package/dist/models/AITokenUsage.d.ts.map +1 -0
  64. package/dist/models/AITokenUsage.js +58 -0
  65. package/dist/models/AIToolCallPart.d.ts +60 -0
  66. package/dist/models/AIToolCallPart.d.ts.map +1 -0
  67. package/dist/models/AIToolCallPart.js +69 -0
  68. package/dist/models/AIToolResultPart.d.ts +60 -0
  69. package/dist/models/AIToolResultPart.d.ts.map +1 -0
  70. package/dist/models/AIToolResultPart.js +69 -0
  71. package/dist/models/AccessToken.d.ts +33 -0
  72. package/dist/models/AccessToken.d.ts.map +1 -0
  73. package/dist/models/AccessToken.js +50 -0
  74. package/dist/models/Character.d.ts +146 -0
  75. package/dist/models/Character.d.ts.map +1 -0
  76. package/dist/models/Character.js +129 -0
  77. package/dist/models/ChatRequest.d.ts +67 -0
  78. package/dist/models/ChatRequest.d.ts.map +1 -0
  79. package/dist/models/ChatRequest.js +70 -0
  80. package/dist/models/CreateCharacterRequest.d.ts +99 -0
  81. package/dist/models/CreateCharacterRequest.d.ts.map +1 -0
  82. package/dist/models/CreateCharacterRequest.js +72 -0
  83. package/dist/models/CreateMemoRequest.d.ts +51 -0
  84. package/dist/models/CreateMemoRequest.d.ts.map +1 -0
  85. package/dist/models/CreateMemoRequest.js +56 -0
  86. package/dist/models/CreatePlotRequest.d.ts +81 -0
  87. package/dist/models/CreatePlotRequest.d.ts.map +1 -0
  88. package/dist/models/CreatePlotRequest.js +66 -0
  89. package/dist/models/CreateProjectRequest.d.ts +63 -0
  90. package/dist/models/CreateProjectRequest.d.ts.map +1 -0
  91. package/dist/models/CreateProjectRequest.js +60 -0
  92. package/dist/models/CreateSessionRequest.d.ts +61 -0
  93. package/dist/models/CreateSessionRequest.d.ts.map +1 -0
  94. package/dist/models/CreateSessionRequest.js +68 -0
  95. package/dist/models/CreateWritingRequest.d.ts +45 -0
  96. package/dist/models/CreateWritingRequest.d.ts.map +1 -0
  97. package/dist/models/CreateWritingRequest.js +54 -0
  98. package/dist/models/HealthControllerCheck200Response.d.ts +58 -0
  99. package/dist/models/HealthControllerCheck200Response.d.ts.map +1 -0
  100. package/dist/models/HealthControllerCheck200Response.js +56 -0
  101. package/dist/models/HealthControllerCheck200ResponseInfoValue.d.ts +34 -0
  102. package/dist/models/HealthControllerCheck200ResponseInfoValue.d.ts.map +1 -0
  103. package/dist/models/HealthControllerCheck200ResponseInfoValue.js +52 -0
  104. package/dist/models/HealthControllerCheck503Response.d.ts +58 -0
  105. package/dist/models/HealthControllerCheck503Response.d.ts.map +1 -0
  106. package/dist/models/HealthControllerCheck503Response.js +56 -0
  107. package/dist/models/Memo.d.ts +98 -0
  108. package/dist/models/Memo.d.ts.map +1 -0
  109. package/dist/models/Memo.js +97 -0
  110. package/dist/models/NodeOrderItem.d.ts +45 -0
  111. package/dist/models/NodeOrderItem.d.ts.map +1 -0
  112. package/dist/models/NodeOrderItem.js +56 -0
  113. package/dist/models/NodeTree.d.ts +92 -0
  114. package/dist/models/NodeTree.d.ts.map +1 -0
  115. package/dist/models/NodeTree.js +93 -0
  116. package/dist/models/Plot.d.ts +128 -0
  117. package/dist/models/Plot.d.ts.map +1 -0
  118. package/dist/models/Plot.js +117 -0
  119. package/dist/models/Project.d.ts +81 -0
  120. package/dist/models/Project.d.ts.map +1 -0
  121. package/dist/models/Project.js +72 -0
  122. package/dist/models/RefreshRequest.d.ts +33 -0
  123. package/dist/models/RefreshRequest.d.ts.map +1 -0
  124. package/dist/models/RefreshRequest.js +48 -0
  125. package/dist/models/RefreshToken.d.ts +45 -0
  126. package/dist/models/RefreshToken.d.ts.map +1 -0
  127. package/dist/models/RefreshToken.js +56 -0
  128. package/dist/models/ReorderNodesRequest.d.ts +34 -0
  129. package/dist/models/ReorderNodesRequest.d.ts.map +1 -0
  130. package/dist/models/ReorderNodesRequest.js +51 -0
  131. package/dist/models/UpdateCharacterRequest.d.ts +93 -0
  132. package/dist/models/UpdateCharacterRequest.d.ts.map +1 -0
  133. package/dist/models/UpdateCharacterRequest.js +68 -0
  134. package/dist/models/UpdateMemoRequest.d.ts +45 -0
  135. package/dist/models/UpdateMemoRequest.d.ts.map +1 -0
  136. package/dist/models/UpdateMemoRequest.js +52 -0
  137. package/dist/models/UpdatePlotRequest.d.ts +75 -0
  138. package/dist/models/UpdatePlotRequest.d.ts.map +1 -0
  139. package/dist/models/UpdatePlotRequest.js +62 -0
  140. package/dist/models/UpdateProjectRequest.d.ts +63 -0
  141. package/dist/models/UpdateProjectRequest.d.ts.map +1 -0
  142. package/dist/models/UpdateProjectRequest.js +58 -0
  143. package/dist/models/UpdateWritingRequest.d.ts +39 -0
  144. package/dist/models/UpdateWritingRequest.d.ts.map +1 -0
  145. package/dist/models/UpdateWritingRequest.js +50 -0
  146. package/dist/models/Writing.d.ts +92 -0
  147. package/dist/models/Writing.d.ts.map +1 -0
  148. package/dist/models/Writing.js +93 -0
  149. package/dist/models/index.d.ts +40 -0
  150. package/dist/models/index.d.ts.map +1 -0
  151. package/dist/models/index.js +57 -0
  152. package/dist/runtime.d.ts +185 -0
  153. package/dist/runtime.d.ts.map +1 -0
  154. package/dist/runtime.js +338 -0
  155. package/package.json +28 -0
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Tsumugi API
3
+ * The Tsumugi API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0.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 CreateMemoRequest
16
+ */
17
+ export interface CreateMemoRequest {
18
+ /**
19
+ * 親ノードID
20
+ * @type {string}
21
+ * @memberof CreateMemoRequest
22
+ */
23
+ parentId?: string;
24
+ /**
25
+ * メモ名
26
+ * @type {string}
27
+ * @memberof CreateMemoRequest
28
+ */
29
+ name: string;
30
+ /**
31
+ * メモ内容
32
+ * @type {string}
33
+ * @memberof CreateMemoRequest
34
+ */
35
+ content?: string;
36
+ /**
37
+ * タグ
38
+ * @type {Array<string>}
39
+ * @memberof CreateMemoRequest
40
+ */
41
+ tags?: Array<string>;
42
+ }
43
+ /**
44
+ * Check if a given object implements the CreateMemoRequest interface.
45
+ */
46
+ export declare function instanceOfCreateMemoRequest(value: object): value is CreateMemoRequest;
47
+ export declare function CreateMemoRequestFromJSON(json: any): CreateMemoRequest;
48
+ export declare function CreateMemoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMemoRequest;
49
+ export declare function CreateMemoRequestToJSON(json: any): CreateMemoRequest;
50
+ export declare function CreateMemoRequestToJSONTyped(value?: CreateMemoRequest | null, ignoreDiscriminator?: boolean): any;
51
+ //# sourceMappingURL=CreateMemoRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateMemoRequest.d.ts","sourceRoot":"","sources":["../../src/models/CreateMemoRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAGrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAWzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYxH"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tsumugi API
6
+ * The Tsumugi API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateMemoRequest = instanceOfCreateMemoRequest;
17
+ exports.CreateMemoRequestFromJSON = CreateMemoRequestFromJSON;
18
+ exports.CreateMemoRequestFromJSONTyped = CreateMemoRequestFromJSONTyped;
19
+ exports.CreateMemoRequestToJSON = CreateMemoRequestToJSON;
20
+ exports.CreateMemoRequestToJSONTyped = CreateMemoRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateMemoRequest interface.
23
+ */
24
+ function instanceOfCreateMemoRequest(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreateMemoRequestFromJSON(json) {
30
+ return CreateMemoRequestFromJSONTyped(json, false);
31
+ }
32
+ function CreateMemoRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
38
+ 'name': json['name'],
39
+ 'content': json['content'] == null ? undefined : json['content'],
40
+ 'tags': json['tags'] == null ? undefined : json['tags'],
41
+ };
42
+ }
43
+ function CreateMemoRequestToJSON(json) {
44
+ return CreateMemoRequestToJSONTyped(json, false);
45
+ }
46
+ function CreateMemoRequestToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'parent_id': value['parentId'],
52
+ 'name': value['name'],
53
+ 'content': value['content'],
54
+ 'tags': value['tags'],
55
+ };
56
+ }
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Tsumugi API
3
+ * The Tsumugi API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0.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 CreatePlotRequest
16
+ */
17
+ export interface CreatePlotRequest {
18
+ /**
19
+ * 親ノードID
20
+ * @type {string}
21
+ * @memberof CreatePlotRequest
22
+ */
23
+ parentId?: string;
24
+ /**
25
+ * プロット名
26
+ * @type {string}
27
+ * @memberof CreatePlotRequest
28
+ */
29
+ name: string;
30
+ /**
31
+ * あらすじ
32
+ * @type {string}
33
+ * @memberof CreatePlotRequest
34
+ */
35
+ synopsis?: string;
36
+ /**
37
+ * 舞台設定
38
+ * @type {string}
39
+ * @memberof CreatePlotRequest
40
+ */
41
+ setting?: string;
42
+ /**
43
+ * テーマ
44
+ * @type {string}
45
+ * @memberof CreatePlotRequest
46
+ */
47
+ theme?: string;
48
+ /**
49
+ * 構成
50
+ * @type {string}
51
+ * @memberof CreatePlotRequest
52
+ */
53
+ structure?: string;
54
+ /**
55
+ * 葛藤
56
+ * @type {string}
57
+ * @memberof CreatePlotRequest
58
+ */
59
+ conflict?: string;
60
+ /**
61
+ * 解決
62
+ * @type {string}
63
+ * @memberof CreatePlotRequest
64
+ */
65
+ resolution?: string;
66
+ /**
67
+ * メモ
68
+ * @type {string}
69
+ * @memberof CreatePlotRequest
70
+ */
71
+ notes?: string;
72
+ }
73
+ /**
74
+ * Check if a given object implements the CreatePlotRequest interface.
75
+ */
76
+ export declare function instanceOfCreatePlotRequest(value: object): value is CreatePlotRequest;
77
+ export declare function CreatePlotRequestFromJSON(json: any): CreatePlotRequest;
78
+ export declare function CreatePlotRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePlotRequest;
79
+ export declare function CreatePlotRequestToJSON(json: any): CreatePlotRequest;
80
+ export declare function CreatePlotRequestToJSONTyped(value?: CreatePlotRequest | null, ignoreDiscriminator?: boolean): any;
81
+ //# sourceMappingURL=CreatePlotRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreatePlotRequest.d.ts","sourceRoot":"","sources":["../../src/models/CreatePlotRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAGrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAgBzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiBxH"}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tsumugi API
6
+ * The Tsumugi API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreatePlotRequest = instanceOfCreatePlotRequest;
17
+ exports.CreatePlotRequestFromJSON = CreatePlotRequestFromJSON;
18
+ exports.CreatePlotRequestFromJSONTyped = CreatePlotRequestFromJSONTyped;
19
+ exports.CreatePlotRequestToJSON = CreatePlotRequestToJSON;
20
+ exports.CreatePlotRequestToJSONTyped = CreatePlotRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreatePlotRequest interface.
23
+ */
24
+ function instanceOfCreatePlotRequest(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreatePlotRequestFromJSON(json) {
30
+ return CreatePlotRequestFromJSONTyped(json, false);
31
+ }
32
+ function CreatePlotRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
38
+ 'name': json['name'],
39
+ 'synopsis': json['synopsis'] == null ? undefined : json['synopsis'],
40
+ 'setting': json['setting'] == null ? undefined : json['setting'],
41
+ 'theme': json['theme'] == null ? undefined : json['theme'],
42
+ 'structure': json['structure'] == null ? undefined : json['structure'],
43
+ 'conflict': json['conflict'] == null ? undefined : json['conflict'],
44
+ 'resolution': json['resolution'] == null ? undefined : json['resolution'],
45
+ 'notes': json['notes'] == null ? undefined : json['notes'],
46
+ };
47
+ }
48
+ function CreatePlotRequestToJSON(json) {
49
+ return CreatePlotRequestToJSONTyped(json, false);
50
+ }
51
+ function CreatePlotRequestToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'parent_id': value['parentId'],
57
+ 'name': value['name'],
58
+ 'synopsis': value['synopsis'],
59
+ 'setting': value['setting'],
60
+ 'theme': value['theme'],
61
+ 'structure': value['structure'],
62
+ 'conflict': value['conflict'],
63
+ 'resolution': value['resolution'],
64
+ 'notes': value['notes'],
65
+ };
66
+ }
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Tsumugi API
3
+ * The Tsumugi API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0.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 CreateProjectRequest
16
+ */
17
+ export interface CreateProjectRequest {
18
+ /**
19
+ * プロジェクト名
20
+ * @type {string}
21
+ * @memberof CreateProjectRequest
22
+ */
23
+ name: string;
24
+ /**
25
+ * あらすじ
26
+ * @type {string}
27
+ * @memberof CreateProjectRequest
28
+ */
29
+ synopsis?: string;
30
+ /**
31
+ * テーマ
32
+ * @type {string}
33
+ * @memberof CreateProjectRequest
34
+ */
35
+ theme?: string;
36
+ /**
37
+ * 目標
38
+ * @type {string}
39
+ * @memberof CreateProjectRequest
40
+ */
41
+ goal?: string;
42
+ /**
43
+ * 目標文字数
44
+ * @type {number}
45
+ * @memberof CreateProjectRequest
46
+ */
47
+ targetWordCount?: number;
48
+ /**
49
+ * ターゲット読者
50
+ * @type {string}
51
+ * @memberof CreateProjectRequest
52
+ */
53
+ targetAudience?: string;
54
+ }
55
+ /**
56
+ * Check if a given object implements the CreateProjectRequest interface.
57
+ */
58
+ export declare function instanceOfCreateProjectRequest(value: object): value is CreateProjectRequest;
59
+ export declare function CreateProjectRequestFromJSON(json: any): CreateProjectRequest;
60
+ export declare function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectRequest;
61
+ export declare function CreateProjectRequestToJSON(json: any): CreateProjectRequest;
62
+ export declare function CreateProjectRequestToJSONTyped(value?: CreateProjectRequest | null, ignoreDiscriminator?: boolean): any;
63
+ //# sourceMappingURL=CreateProjectRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateProjectRequest.d.ts","sourceRoot":"","sources":["../../src/models/CreateProjectRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAG3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAa/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc9H"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tsumugi API
6
+ * The Tsumugi API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateProjectRequest = instanceOfCreateProjectRequest;
17
+ exports.CreateProjectRequestFromJSON = CreateProjectRequestFromJSON;
18
+ exports.CreateProjectRequestFromJSONTyped = CreateProjectRequestFromJSONTyped;
19
+ exports.CreateProjectRequestToJSON = CreateProjectRequestToJSON;
20
+ exports.CreateProjectRequestToJSONTyped = CreateProjectRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateProjectRequest interface.
23
+ */
24
+ function instanceOfCreateProjectRequest(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreateProjectRequestFromJSON(json) {
30
+ return CreateProjectRequestFromJSONTyped(json, false);
31
+ }
32
+ function CreateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ 'synopsis': json['synopsis'] == null ? undefined : json['synopsis'],
39
+ 'theme': json['theme'] == null ? undefined : json['theme'],
40
+ 'goal': json['goal'] == null ? undefined : json['goal'],
41
+ 'targetWordCount': json['target_word_count'] == null ? undefined : json['target_word_count'],
42
+ 'targetAudience': json['target_audience'] == null ? undefined : json['target_audience'],
43
+ };
44
+ }
45
+ function CreateProjectRequestToJSON(json) {
46
+ return CreateProjectRequestToJSONTyped(json, false);
47
+ }
48
+ function CreateProjectRequestToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'name': value['name'],
54
+ 'synopsis': value['synopsis'],
55
+ 'theme': value['theme'],
56
+ 'goal': value['goal'],
57
+ 'target_word_count': value['targetWordCount'],
58
+ 'target_audience': value['targetAudience'],
59
+ };
60
+ }
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Tsumugi API
3
+ * The Tsumugi API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { AIModelConfig } from './AIModelConfig';
13
+ import type { AIChatContext } from './AIChatContext';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CreateSessionRequest
18
+ */
19
+ export interface CreateSessionRequest {
20
+ /**
21
+ * ユーザーのメッセージ
22
+ * @type {string}
23
+ * @memberof CreateSessionRequest
24
+ */
25
+ message: string;
26
+ /**
27
+ * チャットモード
28
+ * @type {CreateSessionRequestModeEnum}
29
+ * @memberof CreateSessionRequest
30
+ */
31
+ mode: CreateSessionRequestModeEnum;
32
+ /**
33
+ * モデル設定
34
+ * @type {AIModelConfig}
35
+ * @memberof CreateSessionRequest
36
+ */
37
+ config?: AIModelConfig;
38
+ /**
39
+ * ユーザーの作業コンテキスト
40
+ * @type {AIChatContext}
41
+ * @memberof CreateSessionRequest
42
+ */
43
+ context?: AIChatContext;
44
+ }
45
+ /**
46
+ * @export
47
+ */
48
+ export declare const CreateSessionRequestModeEnum: {
49
+ readonly Ask: "ask";
50
+ readonly Write: "write";
51
+ };
52
+ export type CreateSessionRequestModeEnum = typeof CreateSessionRequestModeEnum[keyof typeof CreateSessionRequestModeEnum];
53
+ /**
54
+ * Check if a given object implements the CreateSessionRequest interface.
55
+ */
56
+ export declare function instanceOfCreateSessionRequest(value: object): value is CreateSessionRequest;
57
+ export declare function CreateSessionRequestFromJSON(json: any): CreateSessionRequest;
58
+ export declare function CreateSessionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSessionRequest;
59
+ export declare function CreateSessionRequestToJSON(json: any): CreateSessionRequest;
60
+ export declare function CreateSessionRequestToJSONTyped(value?: CreateSessionRequest | null, ignoreDiscriminator?: boolean): any;
61
+ //# sourceMappingURL=CreateSessionRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateSessionRequest.d.ts","sourceRoot":"","sources":["../../src/models/CreateSessionRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,4BAA4B,CAAC;IACnC;;;;OAIG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CAC3B;AAGD;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;CAG/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAG1H;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAI3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAW/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY9H"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tsumugi API
6
+ * The Tsumugi API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateSessionRequestModeEnum = void 0;
17
+ exports.instanceOfCreateSessionRequest = instanceOfCreateSessionRequest;
18
+ exports.CreateSessionRequestFromJSON = CreateSessionRequestFromJSON;
19
+ exports.CreateSessionRequestFromJSONTyped = CreateSessionRequestFromJSONTyped;
20
+ exports.CreateSessionRequestToJSON = CreateSessionRequestToJSON;
21
+ exports.CreateSessionRequestToJSONTyped = CreateSessionRequestToJSONTyped;
22
+ const AIModelConfig_1 = require("./AIModelConfig");
23
+ const AIChatContext_1 = require("./AIChatContext");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.CreateSessionRequestModeEnum = {
28
+ Ask: 'ask',
29
+ Write: 'write'
30
+ };
31
+ /**
32
+ * Check if a given object implements the CreateSessionRequest interface.
33
+ */
34
+ function instanceOfCreateSessionRequest(value) {
35
+ if (!('message' in value) || value['message'] === undefined)
36
+ return false;
37
+ if (!('mode' in value) || value['mode'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function CreateSessionRequestFromJSON(json) {
42
+ return CreateSessionRequestFromJSONTyped(json, false);
43
+ }
44
+ function CreateSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'message': json['message'],
50
+ 'mode': json['mode'],
51
+ 'config': json['config'] == null ? undefined : (0, AIModelConfig_1.AIModelConfigFromJSON)(json['config']),
52
+ 'context': json['context'] == null ? undefined : (0, AIChatContext_1.AIChatContextFromJSON)(json['context']),
53
+ };
54
+ }
55
+ function CreateSessionRequestToJSON(json) {
56
+ return CreateSessionRequestToJSONTyped(json, false);
57
+ }
58
+ function CreateSessionRequestToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'message': value['message'],
64
+ 'mode': value['mode'],
65
+ 'config': (0, AIModelConfig_1.AIModelConfigToJSON)(value['config']),
66
+ 'context': (0, AIChatContext_1.AIChatContextToJSON)(value['context']),
67
+ };
68
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Tsumugi API
3
+ * The Tsumugi API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0.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 CreateWritingRequest
16
+ */
17
+ export interface CreateWritingRequest {
18
+ /**
19
+ * 親ノードID
20
+ * @type {string}
21
+ * @memberof CreateWritingRequest
22
+ */
23
+ parentId?: string;
24
+ /**
25
+ * 執筆名
26
+ * @type {string}
27
+ * @memberof CreateWritingRequest
28
+ */
29
+ name: string;
30
+ /**
31
+ * 執筆内容
32
+ * @type {string}
33
+ * @memberof CreateWritingRequest
34
+ */
35
+ content?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the CreateWritingRequest interface.
39
+ */
40
+ export declare function instanceOfCreateWritingRequest(value: object): value is CreateWritingRequest;
41
+ export declare function CreateWritingRequestFromJSON(json: any): CreateWritingRequest;
42
+ export declare function CreateWritingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWritingRequest;
43
+ export declare function CreateWritingRequestToJSON(json: any): CreateWritingRequest;
44
+ export declare function CreateWritingRequestToJSONTyped(value?: CreateWritingRequest | null, ignoreDiscriminator?: boolean): any;
45
+ //# sourceMappingURL=CreateWritingRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateWritingRequest.d.ts","sourceRoot":"","sources":["../../src/models/CreateWritingRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAG3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAU/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW9H"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tsumugi API
6
+ * The Tsumugi API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateWritingRequest = instanceOfCreateWritingRequest;
17
+ exports.CreateWritingRequestFromJSON = CreateWritingRequestFromJSON;
18
+ exports.CreateWritingRequestFromJSONTyped = CreateWritingRequestFromJSONTyped;
19
+ exports.CreateWritingRequestToJSON = CreateWritingRequestToJSON;
20
+ exports.CreateWritingRequestToJSONTyped = CreateWritingRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateWritingRequest interface.
23
+ */
24
+ function instanceOfCreateWritingRequest(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreateWritingRequestFromJSON(json) {
30
+ return CreateWritingRequestFromJSONTyped(json, false);
31
+ }
32
+ function CreateWritingRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'parentId': json['parent_id'] == null ? undefined : json['parent_id'],
38
+ 'name': json['name'],
39
+ 'content': json['content'] == null ? undefined : json['content'],
40
+ };
41
+ }
42
+ function CreateWritingRequestToJSON(json) {
43
+ return CreateWritingRequestToJSONTyped(json, false);
44
+ }
45
+ function CreateWritingRequestToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'parent_id': value['parentId'],
51
+ 'name': value['name'],
52
+ 'content': value['content'],
53
+ };
54
+ }