@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,114 @@
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 { AIMessageContentInner } from './AIMessageContentInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AIMessage
17
+ */
18
+ export interface AIMessage {
19
+ /**
20
+ * メッセージID
21
+ * @type {string}
22
+ * @memberof AIMessage
23
+ */
24
+ id: string;
25
+ /**
26
+ * セッションID
27
+ * @type {string}
28
+ * @memberof AIMessage
29
+ */
30
+ sessionId: string;
31
+ /**
32
+ * 表示順序
33
+ * @type {number}
34
+ * @memberof AIMessage
35
+ */
36
+ order: number;
37
+ /**
38
+ * ロール
39
+ * @type {AIMessageRoleEnum}
40
+ * @memberof AIMessage
41
+ */
42
+ role: AIMessageRoleEnum;
43
+ /**
44
+ * メッセージタイプ
45
+ * @type {AIMessageMessageTypeEnum}
46
+ * @memberof AIMessage
47
+ */
48
+ messageType: AIMessageMessageTypeEnum;
49
+ /**
50
+ * メッセージ内容(AI SDK Content配列形式)
51
+ * @type {Array<AIMessageContentInner>}
52
+ * @memberof AIMessage
53
+ */
54
+ content: Array<AIMessageContentInner>;
55
+ /**
56
+ * 変更提案(message_type=proposal時)
57
+ * @type {{ [key: string]: any; }}
58
+ * @memberof AIMessage
59
+ */
60
+ proposal: {
61
+ [key: string]: any;
62
+ } | null;
63
+ /**
64
+ * 提案ステータス(message_type=proposal時)
65
+ * @type {AIMessageProposalStatusEnum}
66
+ * @memberof AIMessage
67
+ */
68
+ proposalStatus: AIMessageProposalStatusEnum | null;
69
+ /**
70
+ * 作成日時
71
+ * @type {Date}
72
+ * @memberof AIMessage
73
+ */
74
+ createdAt: Date;
75
+ }
76
+ /**
77
+ * @export
78
+ */
79
+ export declare const AIMessageRoleEnum: {
80
+ readonly User: "user";
81
+ readonly Assistant: "assistant";
82
+ readonly System: "system";
83
+ readonly Tool: "tool";
84
+ };
85
+ export type AIMessageRoleEnum = typeof AIMessageRoleEnum[keyof typeof AIMessageRoleEnum];
86
+ /**
87
+ * @export
88
+ */
89
+ export declare const AIMessageMessageTypeEnum: {
90
+ readonly Text: "text";
91
+ readonly ToolCall: "tool_call";
92
+ readonly ToolResult: "tool_result";
93
+ readonly Proposal: "proposal";
94
+ };
95
+ export type AIMessageMessageTypeEnum = typeof AIMessageMessageTypeEnum[keyof typeof AIMessageMessageTypeEnum];
96
+ /**
97
+ * @export
98
+ */
99
+ export declare const AIMessageProposalStatusEnum: {
100
+ readonly Pending: "pending";
101
+ readonly Accepted: "accepted";
102
+ readonly Rejected: "rejected";
103
+ readonly Conflict: "conflict";
104
+ };
105
+ export type AIMessageProposalStatusEnum = typeof AIMessageProposalStatusEnum[keyof typeof AIMessageProposalStatusEnum];
106
+ /**
107
+ * Check if a given object implements the AIMessage interface.
108
+ */
109
+ export declare function instanceOfAIMessage(value: object): value is AIMessage;
110
+ export declare function AIMessageFromJSON(json: any): AIMessage;
111
+ export declare function AIMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIMessage;
112
+ export declare function AIMessageToJSON(json: any): AIMessage;
113
+ export declare function AIMessageToJSONTyped(value?: AIMessage | null, ignoreDiscriminator?: boolean): any;
114
+ //# sourceMappingURL=AIMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIMessage.d.ts","sourceRoot":"","sources":["../../src/models/AIMessage.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,EAAE,iBAAiB,CAAC;IACxB;;;;OAIG;IACH,WAAW,EAAE,wBAAwB,CAAC;IACtC;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACtC;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,GAAG,IAAI,CAAC;IACzC;;;;OAIG;IACH,cAAc,EAAE,2BAA2B,GAAG,IAAI,CAAC;IACnD;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAGD;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;CAKpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAEzF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;CAK3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAE9G;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;CAK9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC;AAGvH;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAWrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAgBzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiBxG"}
@@ -0,0 +1,111 @@
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.AIMessageProposalStatusEnum = exports.AIMessageMessageTypeEnum = exports.AIMessageRoleEnum = void 0;
17
+ exports.instanceOfAIMessage = instanceOfAIMessage;
18
+ exports.AIMessageFromJSON = AIMessageFromJSON;
19
+ exports.AIMessageFromJSONTyped = AIMessageFromJSONTyped;
20
+ exports.AIMessageToJSON = AIMessageToJSON;
21
+ exports.AIMessageToJSONTyped = AIMessageToJSONTyped;
22
+ const AIMessageContentInner_1 = require("./AIMessageContentInner");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.AIMessageRoleEnum = {
27
+ User: 'user',
28
+ Assistant: 'assistant',
29
+ System: 'system',
30
+ Tool: 'tool'
31
+ };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.AIMessageMessageTypeEnum = {
36
+ Text: 'text',
37
+ ToolCall: 'tool_call',
38
+ ToolResult: 'tool_result',
39
+ Proposal: 'proposal'
40
+ };
41
+ /**
42
+ * @export
43
+ */
44
+ exports.AIMessageProposalStatusEnum = {
45
+ Pending: 'pending',
46
+ Accepted: 'accepted',
47
+ Rejected: 'rejected',
48
+ Conflict: 'conflict'
49
+ };
50
+ /**
51
+ * Check if a given object implements the AIMessage interface.
52
+ */
53
+ function instanceOfAIMessage(value) {
54
+ if (!('id' in value) || value['id'] === undefined)
55
+ return false;
56
+ if (!('sessionId' in value) || value['sessionId'] === undefined)
57
+ return false;
58
+ if (!('order' in value) || value['order'] === undefined)
59
+ return false;
60
+ if (!('role' in value) || value['role'] === undefined)
61
+ return false;
62
+ if (!('messageType' in value) || value['messageType'] === undefined)
63
+ return false;
64
+ if (!('content' in value) || value['content'] === undefined)
65
+ return false;
66
+ if (!('proposal' in value) || value['proposal'] === undefined)
67
+ return false;
68
+ if (!('proposalStatus' in value) || value['proposalStatus'] === undefined)
69
+ return false;
70
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
71
+ return false;
72
+ return true;
73
+ }
74
+ function AIMessageFromJSON(json) {
75
+ return AIMessageFromJSONTyped(json, false);
76
+ }
77
+ function AIMessageFromJSONTyped(json, ignoreDiscriminator) {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+ 'id': json['id'],
83
+ 'sessionId': json['session_id'],
84
+ 'order': json['order'],
85
+ 'role': json['role'],
86
+ 'messageType': json['message_type'],
87
+ 'content': (json['content'].map(AIMessageContentInner_1.AIMessageContentInnerFromJSON)),
88
+ 'proposal': json['proposal'],
89
+ 'proposalStatus': json['proposal_status'],
90
+ 'createdAt': (new Date(json['created_at'])),
91
+ };
92
+ }
93
+ function AIMessageToJSON(json) {
94
+ return AIMessageToJSONTyped(json, false);
95
+ }
96
+ function AIMessageToJSONTyped(value, ignoreDiscriminator = false) {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+ return {
101
+ 'id': value['id'],
102
+ 'session_id': value['sessionId'],
103
+ 'order': value['order'],
104
+ 'role': value['role'],
105
+ 'message_type': value['messageType'],
106
+ 'content': (value['content'].map(AIMessageContentInner_1.AIMessageContentInnerToJSON)),
107
+ 'proposal': value['proposal'],
108
+ 'proposal_status': value['proposalStatus'],
109
+ 'created_at': value['createdAt'].toISOString(),
110
+ };
111
+ }
@@ -0,0 +1,31 @@
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 { AITextPart } from './AITextPart';
13
+ import type { AIToolCallPart } from './AIToolCallPart';
14
+ import type { AIToolResultPart } from './AIToolResultPart';
15
+ /**
16
+ * @type AIMessageContentInner
17
+ *
18
+ * @export
19
+ */
20
+ export type AIMessageContentInner = {
21
+ type: 'text';
22
+ } & AITextPart | {
23
+ type: 'tool-call';
24
+ } & AIToolCallPart | {
25
+ type: 'tool-result';
26
+ } & AIToolResultPart;
27
+ export declare function AIMessageContentInnerFromJSON(json: any): AIMessageContentInner;
28
+ export declare function AIMessageContentInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIMessageContentInner;
29
+ export declare function AIMessageContentInnerToJSON(json: any): any;
30
+ export declare function AIMessageContentInnerToJSONTyped(value?: AIMessageContentInner | null, ignoreDiscriminator?: boolean): any;
31
+ //# sourceMappingURL=AIMessageContentInner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIMessageContentInner.d.ts","sourceRoot":"","sources":["../../src/models/AIMessageContentInner.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,UAAU,GAAG;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GAAG,cAAc,GAAG;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,GAAG,gBAAgB,CAAC;AAExJ,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAcjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAE1D;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAchI"}
@@ -0,0 +1,58 @@
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.AIMessageContentInnerFromJSON = AIMessageContentInnerFromJSON;
17
+ exports.AIMessageContentInnerFromJSONTyped = AIMessageContentInnerFromJSONTyped;
18
+ exports.AIMessageContentInnerToJSON = AIMessageContentInnerToJSON;
19
+ exports.AIMessageContentInnerToJSONTyped = AIMessageContentInnerToJSONTyped;
20
+ const AITextPart_1 = require("./AITextPart");
21
+ const AIToolCallPart_1 = require("./AIToolCallPart");
22
+ const AIToolResultPart_1 = require("./AIToolResultPart");
23
+ function AIMessageContentInnerFromJSON(json) {
24
+ return AIMessageContentInnerFromJSONTyped(json, false);
25
+ }
26
+ function AIMessageContentInnerFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ switch (json['type']) {
31
+ case 'text':
32
+ return Object.assign({}, (0, AITextPart_1.AITextPartFromJSONTyped)(json, true), { type: 'text' });
33
+ case 'tool-call':
34
+ return Object.assign({}, (0, AIToolCallPart_1.AIToolCallPartFromJSONTyped)(json, true), { type: 'tool-call' });
35
+ case 'tool-result':
36
+ return Object.assign({}, (0, AIToolResultPart_1.AIToolResultPartFromJSONTyped)(json, true), { type: 'tool-result' });
37
+ default:
38
+ return json;
39
+ }
40
+ }
41
+ function AIMessageContentInnerToJSON(json) {
42
+ return AIMessageContentInnerToJSONTyped(json, false);
43
+ }
44
+ function AIMessageContentInnerToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ switch (value['type']) {
49
+ case 'text':
50
+ return Object.assign({}, (0, AITextPart_1.AITextPartToJSON)(value), { type: 'text' });
51
+ case 'tool-call':
52
+ return Object.assign({}, (0, AIToolCallPart_1.AIToolCallPartToJSON)(value), { type: 'tool-call' });
53
+ case 'tool-result':
54
+ return Object.assign({}, (0, AIToolResultPart_1.AIToolResultPartToJSON)(value), { type: 'tool-result' });
55
+ default:
56
+ return value;
57
+ }
58
+ }
@@ -0,0 +1,54 @@
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 AIModelConfig
16
+ */
17
+ export interface AIModelConfig {
18
+ /**
19
+ * モデル名
20
+ * @type {AIModelConfigModelEnum}
21
+ * @memberof AIModelConfig
22
+ */
23
+ model?: AIModelConfigModelEnum;
24
+ /**
25
+ * 生成時の温度パラメータ (0.0〜2.0)
26
+ * @type {number}
27
+ * @memberof AIModelConfig
28
+ */
29
+ temperature?: number;
30
+ /**
31
+ * 最大トークン数
32
+ * @type {number}
33
+ * @memberof AIModelConfig
34
+ */
35
+ maxTokens?: number;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const AIModelConfigModelEnum: {
41
+ readonly Gpt52: "gpt-5.2";
42
+ readonly Gpt4oMini: "gpt-4o-mini";
43
+ readonly Claude35HaikuLatest: "claude-3-5-haiku-latest";
44
+ };
45
+ export type AIModelConfigModelEnum = typeof AIModelConfigModelEnum[keyof typeof AIModelConfigModelEnum];
46
+ /**
47
+ * Check if a given object implements the AIModelConfig interface.
48
+ */
49
+ export declare function instanceOfAIModelConfig(value: object): value is AIModelConfig;
50
+ export declare function AIModelConfigFromJSON(json: any): AIModelConfig;
51
+ export declare function AIModelConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIModelConfig;
52
+ export declare function AIModelConfigToJSON(json: any): AIModelConfig;
53
+ export declare function AIModelConfigToJSONTyped(value?: AIModelConfig | null, ignoreDiscriminator?: boolean): any;
54
+ //# sourceMappingURL=AIModelConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIModelConfig.d.ts","sourceRoot":"","sources":["../../src/models/AIModelConfig.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,sBAAsB,CAAC;IAC/B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAGD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAGxG;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAE7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAUjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhH"}
@@ -0,0 +1,61 @@
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.AIModelConfigModelEnum = void 0;
17
+ exports.instanceOfAIModelConfig = instanceOfAIModelConfig;
18
+ exports.AIModelConfigFromJSON = AIModelConfigFromJSON;
19
+ exports.AIModelConfigFromJSONTyped = AIModelConfigFromJSONTyped;
20
+ exports.AIModelConfigToJSON = AIModelConfigToJSON;
21
+ exports.AIModelConfigToJSONTyped = AIModelConfigToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AIModelConfigModelEnum = {
26
+ Gpt52: 'gpt-5.2',
27
+ Gpt4oMini: 'gpt-4o-mini',
28
+ Claude35HaikuLatest: 'claude-3-5-haiku-latest'
29
+ };
30
+ /**
31
+ * Check if a given object implements the AIModelConfig interface.
32
+ */
33
+ function instanceOfAIModelConfig(value) {
34
+ return true;
35
+ }
36
+ function AIModelConfigFromJSON(json) {
37
+ return AIModelConfigFromJSONTyped(json, false);
38
+ }
39
+ function AIModelConfigFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'model': json['model'] == null ? undefined : json['model'],
45
+ 'temperature': json['temperature'] == null ? undefined : json['temperature'],
46
+ 'maxTokens': json['max_tokens'] == null ? undefined : json['max_tokens'],
47
+ };
48
+ }
49
+ function AIModelConfigToJSON(json) {
50
+ return AIModelConfigToJSONTyped(json, false);
51
+ }
52
+ function AIModelConfigToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'model': value['model'],
58
+ 'temperature': value['temperature'],
59
+ 'max_tokens': value['maxTokens'],
60
+ };
61
+ }
@@ -0,0 +1,47 @@
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 { AISessionUsage } from './AISessionUsage';
13
+ import type { AITokenUsage } from './AITokenUsage';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AIProjectUsage
18
+ */
19
+ export interface AIProjectUsage {
20
+ /**
21
+ * プロジェクトID
22
+ * @type {string}
23
+ * @memberof AIProjectUsage
24
+ */
25
+ projectId: string;
26
+ /**
27
+ * セッションごとの使用量
28
+ * @type {Array<AISessionUsage>}
29
+ * @memberof AIProjectUsage
30
+ */
31
+ sessions: Array<AISessionUsage>;
32
+ /**
33
+ * プロジェクト全体の合計
34
+ * @type {AITokenUsage}
35
+ * @memberof AIProjectUsage
36
+ */
37
+ total: AITokenUsage;
38
+ }
39
+ /**
40
+ * Check if a given object implements the AIProjectUsage interface.
41
+ */
42
+ export declare function instanceOfAIProjectUsage(value: object): value is AIProjectUsage;
43
+ export declare function AIProjectUsageFromJSON(json: any): AIProjectUsage;
44
+ export declare function AIProjectUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AIProjectUsage;
45
+ export declare function AIProjectUsageToJSON(json: any): AIProjectUsage;
46
+ export declare function AIProjectUsageToJSONTyped(value?: AIProjectUsage | null, ignoreDiscriminator?: boolean): any;
47
+ //# sourceMappingURL=AIProjectUsage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AIProjectUsage.d.ts","sourceRoot":"","sources":["../../src/models/AIProjectUsage.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAOvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQnD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAChC;;;;OAIG;IACH,KAAK,EAAE,YAAY,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAK/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAUnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWlH"}
@@ -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.instanceOfAIProjectUsage = instanceOfAIProjectUsage;
17
+ exports.AIProjectUsageFromJSON = AIProjectUsageFromJSON;
18
+ exports.AIProjectUsageFromJSONTyped = AIProjectUsageFromJSONTyped;
19
+ exports.AIProjectUsageToJSON = AIProjectUsageToJSON;
20
+ exports.AIProjectUsageToJSONTyped = AIProjectUsageToJSONTyped;
21
+ const AISessionUsage_1 = require("./AISessionUsage");
22
+ const AITokenUsage_1 = require("./AITokenUsage");
23
+ /**
24
+ * Check if a given object implements the AIProjectUsage interface.
25
+ */
26
+ function instanceOfAIProjectUsage(value) {
27
+ if (!('projectId' in value) || value['projectId'] === undefined)
28
+ return false;
29
+ if (!('sessions' in value) || value['sessions'] === undefined)
30
+ return false;
31
+ if (!('total' in value) || value['total'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function AIProjectUsageFromJSON(json) {
36
+ return AIProjectUsageFromJSONTyped(json, false);
37
+ }
38
+ function AIProjectUsageFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'projectId': json['project_id'],
44
+ 'sessions': (json['sessions'].map(AISessionUsage_1.AISessionUsageFromJSON)),
45
+ 'total': (0, AITokenUsage_1.AITokenUsageFromJSON)(json['total']),
46
+ };
47
+ }
48
+ function AIProjectUsageToJSON(json) {
49
+ return AIProjectUsageToJSONTyped(json, false);
50
+ }
51
+ function AIProjectUsageToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'project_id': value['projectId'],
57
+ 'sessions': (value['sessions'].map(AISessionUsage_1.AISessionUsageToJSON)),
58
+ 'total': (0, AITokenUsage_1.AITokenUsageToJSON)(value['total']),
59
+ };
60
+ }
@@ -0,0 +1,72 @@
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 AISession
16
+ */
17
+ export interface AISession {
18
+ /**
19
+ * セッションID
20
+ * @type {string}
21
+ * @memberof AISession
22
+ */
23
+ id: string;
24
+ /**
25
+ * プロジェクトID
26
+ * @type {string}
27
+ * @memberof AISession
28
+ */
29
+ projectId: string;
30
+ /**
31
+ * セッションタイトル
32
+ * @type {string}
33
+ * @memberof AISession
34
+ */
35
+ title: string;
36
+ /**
37
+ * セッションの処理状態
38
+ * @type {AISessionStatusEnum}
39
+ * @memberof AISession
40
+ */
41
+ status: AISessionStatusEnum;
42
+ /**
43
+ * 作成日時
44
+ * @type {Date}
45
+ * @memberof AISession
46
+ */
47
+ createdAt: Date;
48
+ /**
49
+ * 更新日時
50
+ * @type {Date}
51
+ * @memberof AISession
52
+ */
53
+ updatedAt: Date;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const AISessionStatusEnum: {
59
+ readonly Idle: "idle";
60
+ readonly Processing: "processing";
61
+ readonly Error: "error";
62
+ };
63
+ export type AISessionStatusEnum = typeof AISessionStatusEnum[keyof typeof AISessionStatusEnum];
64
+ /**
65
+ * Check if a given object implements the AISession interface.
66
+ */
67
+ export declare function instanceOfAISession(value: object): value is AISession;
68
+ export declare function AISessionFromJSON(json: any): AISession;
69
+ export declare function AISessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AISession;
70
+ export declare function AISessionToJSON(json: any): AISession;
71
+ export declare function AISessionToJSONTyped(value?: AISession | null, ignoreDiscriminator?: boolean): any;
72
+ //# sourceMappingURL=AISession.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AISession.d.ts","sourceRoot":"","sources":["../../src/models/AISession.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,mBAAmB,CAAC;IAC5B;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,IAAI,CAAC;CACnB;AAGD;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAG/F;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAQrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAazF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAcxG"}