@spaciv/sdk 0.1.4 → 0.1.5

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
- ## @spaciv/sdk@0.1.4
1
+ ## @spaciv/sdk@0.1.5
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @spaciv/sdk@0.1.4 --save
39
+ npm install @spaciv/sdk@0.1.5 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -30,6 +30,12 @@ export interface AssistantChatPollBody {
30
30
  * @memberof AssistantChatPollBody
31
31
  */
32
32
  failure?: AssistantConversationFailureBody;
33
+ /**
34
+ * Tool calls whose results, failed or not, were recorded after the since cursor, by the toolCallId of their action message. A call that succeeded has no message of its own, so this is how a client tells a finished action from one still running. A later poll can list a call again.
35
+ * @type {Array<string>}
36
+ * @memberof AssistantChatPollBody
37
+ */
38
+ finishedToolCallIds: Array<string>;
33
39
  /**
34
40
  *
35
41
  * @type {Array<AssistantChatPollMessage>}
@@ -20,6 +20,8 @@ import { AssistantChatPollMessageFromJSON, AssistantChatPollMessageToJSON, } fro
20
20
  export function instanceOfAssistantChatPollBody(value) {
21
21
  if (!('actions' in value) || value['actions'] === undefined)
22
22
  return false;
23
+ if (!('finishedToolCallIds' in value) || value['finishedToolCallIds'] === undefined)
24
+ return false;
23
25
  if (!('messages' in value) || value['messages'] === undefined)
24
26
  return false;
25
27
  if (!('status' in value) || value['status'] === undefined)
@@ -36,6 +38,7 @@ export function AssistantChatPollBodyFromJSONTyped(json, ignoreDiscriminator) {
36
38
  return {
37
39
  'actions': (json['actions'].map(AssistantChatPollActionFromJSON)),
38
40
  'failure': json['failure'] == null ? undefined : AssistantConversationFailureBodyFromJSON(json['failure']),
41
+ 'finishedToolCallIds': json['finishedToolCallIds'],
39
42
  'messages': (json['messages'].map(AssistantChatPollMessageFromJSON)),
40
43
  'status': json['status'],
41
44
  };
@@ -50,6 +53,7 @@ export function AssistantChatPollBodyToJSONTyped(value, ignoreDiscriminator = fa
50
53
  return {
51
54
  'actions': (value['actions'].map(AssistantChatPollActionToJSON)),
52
55
  'failure': AssistantConversationFailureBodyToJSON(value['failure']),
56
+ 'finishedToolCallIds': value['finishedToolCallIds'],
53
57
  'messages': (value['messages'].map(AssistantChatPollMessageToJSON)),
54
58
  'status': value['status'],
55
59
  };
@@ -64,6 +64,12 @@ export interface AssistantChatPollMessage {
64
64
  * @memberof AssistantChatPollMessage
65
65
  */
66
66
  text: string;
67
+ /**
68
+ * Id of the tool call an action message (kind 2) stands for. Empty on every other message.
69
+ * @type {string}
70
+ * @memberof AssistantChatPollMessage
71
+ */
72
+ toolCallId: string;
67
73
  }
68
74
  /**
69
75
  * Check if a given object implements the AssistantChatPollMessage interface.
@@ -32,6 +32,8 @@ export function instanceOfAssistantChatPollMessage(value) {
32
32
  return false;
33
33
  if (!('text' in value) || value['text'] === undefined)
34
34
  return false;
35
+ if (!('toolCallId' in value) || value['toolCallId'] === undefined)
36
+ return false;
35
37
  return true;
36
38
  }
37
39
  export function AssistantChatPollMessageFromJSON(json) {
@@ -50,6 +52,7 @@ export function AssistantChatPollMessageFromJSONTyped(json, ignoreDiscriminator)
50
52
  'requestId': json['requestId'],
51
53
  'role': json['role'],
52
54
  'text': json['text'],
55
+ 'toolCallId': json['toolCallId'],
53
56
  };
54
57
  }
55
58
  export function AssistantChatPollMessageToJSON(json) {
@@ -68,5 +71,6 @@ export function AssistantChatPollMessageToJSONTyped(value, ignoreDiscriminator =
68
71
  'requestId': value['requestId'],
69
72
  'role': value['role'],
70
73
  'text': value['text'],
74
+ 'toolCallId': value['toolCallId'],
71
75
  };
72
76
  }
@@ -30,6 +30,12 @@ export interface AssistantChatPollBody {
30
30
  * @memberof AssistantChatPollBody
31
31
  */
32
32
  failure?: AssistantConversationFailureBody;
33
+ /**
34
+ * Tool calls whose results, failed or not, were recorded after the since cursor, by the toolCallId of their action message. A call that succeeded has no message of its own, so this is how a client tells a finished action from one still running. A later poll can list a call again.
35
+ * @type {Array<string>}
36
+ * @memberof AssistantChatPollBody
37
+ */
38
+ finishedToolCallIds: Array<string>;
33
39
  /**
34
40
  *
35
41
  * @type {Array<AssistantChatPollMessage>}
@@ -27,6 +27,8 @@ const AssistantChatPollMessage_1 = require("./AssistantChatPollMessage");
27
27
  function instanceOfAssistantChatPollBody(value) {
28
28
  if (!('actions' in value) || value['actions'] === undefined)
29
29
  return false;
30
+ if (!('finishedToolCallIds' in value) || value['finishedToolCallIds'] === undefined)
31
+ return false;
30
32
  if (!('messages' in value) || value['messages'] === undefined)
31
33
  return false;
32
34
  if (!('status' in value) || value['status'] === undefined)
@@ -43,6 +45,7 @@ function AssistantChatPollBodyFromJSONTyped(json, ignoreDiscriminator) {
43
45
  return {
44
46
  'actions': (json['actions'].map(AssistantChatPollAction_1.AssistantChatPollActionFromJSON)),
45
47
  'failure': json['failure'] == null ? undefined : (0, AssistantConversationFailureBody_1.AssistantConversationFailureBodyFromJSON)(json['failure']),
48
+ 'finishedToolCallIds': json['finishedToolCallIds'],
46
49
  'messages': (json['messages'].map(AssistantChatPollMessage_1.AssistantChatPollMessageFromJSON)),
47
50
  'status': json['status'],
48
51
  };
@@ -57,6 +60,7 @@ function AssistantChatPollBodyToJSONTyped(value, ignoreDiscriminator = false) {
57
60
  return {
58
61
  'actions': (value['actions'].map(AssistantChatPollAction_1.AssistantChatPollActionToJSON)),
59
62
  'failure': (0, AssistantConversationFailureBody_1.AssistantConversationFailureBodyToJSON)(value['failure']),
63
+ 'finishedToolCallIds': value['finishedToolCallIds'],
60
64
  'messages': (value['messages'].map(AssistantChatPollMessage_1.AssistantChatPollMessageToJSON)),
61
65
  'status': value['status'],
62
66
  };
@@ -64,6 +64,12 @@ export interface AssistantChatPollMessage {
64
64
  * @memberof AssistantChatPollMessage
65
65
  */
66
66
  text: string;
67
+ /**
68
+ * Id of the tool call an action message (kind 2) stands for. Empty on every other message.
69
+ * @type {string}
70
+ * @memberof AssistantChatPollMessage
71
+ */
72
+ toolCallId: string;
67
73
  }
68
74
  /**
69
75
  * Check if a given object implements the AssistantChatPollMessage interface.
@@ -39,6 +39,8 @@ function instanceOfAssistantChatPollMessage(value) {
39
39
  return false;
40
40
  if (!('text' in value) || value['text'] === undefined)
41
41
  return false;
42
+ if (!('toolCallId' in value) || value['toolCallId'] === undefined)
43
+ return false;
42
44
  return true;
43
45
  }
44
46
  function AssistantChatPollMessageFromJSON(json) {
@@ -57,6 +59,7 @@ function AssistantChatPollMessageFromJSONTyped(json, ignoreDiscriminator) {
57
59
  'requestId': json['requestId'],
58
60
  'role': json['role'],
59
61
  'text': json['text'],
62
+ 'toolCallId': json['toolCallId'],
60
63
  };
61
64
  }
62
65
  function AssistantChatPollMessageToJSON(json) {
@@ -75,5 +78,6 @@ function AssistantChatPollMessageToJSONTyped(value, ignoreDiscriminator = false)
75
78
  'requestId': value['requestId'],
76
79
  'role': value['role'],
77
80
  'text': value['text'],
81
+ 'toolCallId': value['toolCallId'],
78
82
  };
79
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaciv/sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "OpenAPI client for @spaciv/sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -53,6 +53,12 @@ export interface AssistantChatPollBody {
53
53
  * @memberof AssistantChatPollBody
54
54
  */
55
55
  failure?: AssistantConversationFailureBody;
56
+ /**
57
+ * Tool calls whose results, failed or not, were recorded after the since cursor, by the toolCallId of their action message. A call that succeeded has no message of its own, so this is how a client tells a finished action from one still running. A later poll can list a call again.
58
+ * @type {Array<string>}
59
+ * @memberof AssistantChatPollBody
60
+ */
61
+ finishedToolCallIds: Array<string>;
56
62
  /**
57
63
  *
58
64
  * @type {Array<AssistantChatPollMessage>}
@@ -72,6 +78,7 @@ export interface AssistantChatPollBody {
72
78
  */
73
79
  export function instanceOfAssistantChatPollBody(value: object): value is AssistantChatPollBody {
74
80
  if (!('actions' in value) || value['actions'] === undefined) return false;
81
+ if (!('finishedToolCallIds' in value) || value['finishedToolCallIds'] === undefined) return false;
75
82
  if (!('messages' in value) || value['messages'] === undefined) return false;
76
83
  if (!('status' in value) || value['status'] === undefined) return false;
77
84
  return true;
@@ -89,6 +96,7 @@ export function AssistantChatPollBodyFromJSONTyped(json: any, ignoreDiscriminato
89
96
 
90
97
  'actions': ((json['actions'] as Array<any>).map(AssistantChatPollActionFromJSON)),
91
98
  'failure': json['failure'] == null ? undefined : AssistantConversationFailureBodyFromJSON(json['failure']),
99
+ 'finishedToolCallIds': json['finishedToolCallIds'],
92
100
  'messages': ((json['messages'] as Array<any>).map(AssistantChatPollMessageFromJSON)),
93
101
  'status': json['status'],
94
102
  };
@@ -107,6 +115,7 @@ export function AssistantChatPollBodyToJSONTyped(value?: AssistantChatPollBody |
107
115
 
108
116
  'actions': ((value['actions'] as Array<any>).map(AssistantChatPollActionToJSON)),
109
117
  'failure': AssistantConversationFailureBodyToJSON(value['failure']),
118
+ 'finishedToolCallIds': value['finishedToolCallIds'],
110
119
  'messages': ((value['messages'] as Array<any>).map(AssistantChatPollMessageToJSON)),
111
120
  'status': value['status'],
112
121
  };
@@ -75,6 +75,12 @@ export interface AssistantChatPollMessage {
75
75
  * @memberof AssistantChatPollMessage
76
76
  */
77
77
  text: string;
78
+ /**
79
+ * Id of the tool call an action message (kind 2) stands for. Empty on every other message.
80
+ * @type {string}
81
+ * @memberof AssistantChatPollMessage
82
+ */
83
+ toolCallId: string;
78
84
  }
79
85
 
80
86
  /**
@@ -89,6 +95,7 @@ export function instanceOfAssistantChatPollMessage(value: object): value is Assi
89
95
  if (!('requestId' in value) || value['requestId'] === undefined) return false;
90
96
  if (!('role' in value) || value['role'] === undefined) return false;
91
97
  if (!('text' in value) || value['text'] === undefined) return false;
98
+ if (!('toolCallId' in value) || value['toolCallId'] === undefined) return false;
92
99
  return true;
93
100
  }
94
101
 
@@ -110,6 +117,7 @@ export function AssistantChatPollMessageFromJSONTyped(json: any, ignoreDiscrimin
110
117
  'requestId': json['requestId'],
111
118
  'role': json['role'],
112
119
  'text': json['text'],
120
+ 'toolCallId': json['toolCallId'],
113
121
  };
114
122
  }
115
123
 
@@ -132,6 +140,7 @@ export function AssistantChatPollMessageToJSONTyped(value?: AssistantChatPollMes
132
140
  'requestId': value['requestId'],
133
141
  'role': value['role'],
134
142
  'text': value['text'],
143
+ 'toolCallId': value['toolCallId'],
135
144
  };
136
145
  }
137
146