@stack-spot/portal-network 0.194.1 → 0.195.0-beta.1

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 (95) hide show
  1. package/CHANGELOG.md +181 -0
  2. package/dist/api/agent-tools.d.ts +6 -0
  3. package/dist/api/agent-tools.d.ts.map +1 -1
  4. package/dist/api/agent-tools.js.map +1 -1
  5. package/dist/api/agent.d.ts +55 -55
  6. package/dist/api/agent.d.ts.map +1 -1
  7. package/dist/api/ai.d.ts +189 -86
  8. package/dist/api/ai.d.ts.map +1 -1
  9. package/dist/api/ai.js +238 -142
  10. package/dist/api/ai.js.map +1 -1
  11. package/dist/api/cloudPlatform.d.ts +70 -129
  12. package/dist/api/cloudPlatform.d.ts.map +1 -1
  13. package/dist/api/cloudPlatform.js +79 -72
  14. package/dist/api/cloudPlatform.js.map +1 -1
  15. package/dist/api/codeShift.d.ts +315 -62
  16. package/dist/api/codeShift.d.ts.map +1 -1
  17. package/dist/api/codeShift.js +153 -12
  18. package/dist/api/codeShift.js.map +1 -1
  19. package/dist/api/discover.d.ts +23 -12
  20. package/dist/api/discover.d.ts.map +1 -1
  21. package/dist/api/discover.js +10 -0
  22. package/dist/api/discover.js.map +1 -1
  23. package/dist/api-addresses.d.ts.map +1 -1
  24. package/dist/client/account.d.ts +233 -233
  25. package/dist/client/account.d.ts.map +1 -1
  26. package/dist/client/agent-tools.d.ts +124 -124
  27. package/dist/client/agent-tools.d.ts.map +1 -1
  28. package/dist/client/agent-tools.js +10 -1
  29. package/dist/client/agent-tools.js.map +1 -1
  30. package/dist/client/agent.d.ts +46 -46
  31. package/dist/client/agent.d.ts.map +1 -1
  32. package/dist/client/ai.d.ts +123 -77
  33. package/dist/client/ai.d.ts.map +1 -1
  34. package/dist/client/ai.js +47 -2
  35. package/dist/client/ai.js.map +1 -1
  36. package/dist/client/api-management.d.ts +2 -2
  37. package/dist/client/cloud-account.d.ts +13 -13
  38. package/dist/client/cloud-platform-horizon.d.ts +19 -19
  39. package/dist/client/cloud-platform.d.ts +114 -89
  40. package/dist/client/cloud-platform.d.ts.map +1 -1
  41. package/dist/client/cloud-platform.js +73 -46
  42. package/dist/client/cloud-platform.js.map +1 -1
  43. package/dist/client/cloud-runtimes.d.ts +4 -4
  44. package/dist/client/cloud-services.d.ts +17 -17
  45. package/dist/client/cloud-services.d.ts.map +1 -1
  46. package/dist/client/code-shift.d.ts +356 -258
  47. package/dist/client/code-shift.d.ts.map +1 -1
  48. package/dist/client/code-shift.js +91 -1
  49. package/dist/client/code-shift.js.map +1 -1
  50. package/dist/client/content.d.ts +127 -132
  51. package/dist/client/content.d.ts.map +1 -1
  52. package/dist/client/data-integration.d.ts +55 -55
  53. package/dist/client/data-integration.d.ts.map +1 -1
  54. package/dist/client/discover.d.ts +15 -9
  55. package/dist/client/discover.d.ts.map +1 -1
  56. package/dist/client/discover.js +208 -0
  57. package/dist/client/discover.js.map +1 -1
  58. package/dist/client/event-bus.d.ts.map +1 -1
  59. package/dist/client/gen-ai-inference.d.ts +20 -20
  60. package/dist/client/insights.d.ts +7 -7
  61. package/dist/client/notification.d.ts +10 -10
  62. package/dist/client/runtime-manager.d.ts +8 -8
  63. package/dist/client/types.d.ts +14 -0
  64. package/dist/client/types.d.ts.map +1 -1
  65. package/dist/client/workflow.d.ts +10 -10
  66. package/dist/client/workspace-ai.d.ts +48 -48
  67. package/dist/client/workspace-manager.d.ts +77 -77
  68. package/dist/client/workspace-search.d.ts +2 -2
  69. package/dist/client/workspace.d.ts +58 -105
  70. package/dist/client/workspace.d.ts.map +1 -1
  71. package/dist/error/dictionary/cloud-platform.d.ts +6 -0
  72. package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
  73. package/dist/error/dictionary/cloud-platform.js +6 -0
  74. package/dist/error/dictionary/cloud-platform.js.map +1 -1
  75. package/dist/utils/StreamedJson.d.ts.map +1 -1
  76. package/dist/utils/StreamedJson.js +9 -1
  77. package/dist/utils/StreamedJson.js.map +1 -1
  78. package/package.json +2 -2
  79. package/readme.md +2 -1
  80. package/src/api/account.ts +1 -0
  81. package/src/api/agent-tools.ts +9 -0
  82. package/src/api/agent.ts +2 -0
  83. package/src/api/ai.ts +364 -157
  84. package/src/api/cloudPlatform.ts +142 -216
  85. package/src/api/codeShift.ts +607 -69
  86. package/src/api/discover.ts +35 -12
  87. package/src/api/notification.ts +2 -0
  88. package/src/client/agent-tools.ts +10 -1
  89. package/src/client/ai.ts +42 -1
  90. package/src/client/cloud-platform.ts +40 -25
  91. package/src/client/code-shift.ts +54 -1
  92. package/src/client/discover.ts +220 -3
  93. package/src/client/types.ts +17 -2
  94. package/src/error/dictionary/cloud-platform.ts +6 -0
  95. package/src/utils/StreamedJson.tsx +9 -2
@@ -9,8 +9,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
9
9
  * Generates a url to upload the file
10
10
  */
11
11
  generateUrlToFileUpload: import("../network/types.js").MutationObject<Omit<{
12
- xAccountId?: string | null | undefined;
13
- xUsername?: string | null | undefined;
12
+ xAccountId?: string | null;
13
+ xUsername?: string | null;
14
14
  authorization: string;
15
15
  newFileUploadRequest: import("../api/dataIntegration.js").NewFileUploadRequest;
16
16
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").NewFileUploadFormResponse>;
@@ -19,8 +19,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
19
19
  */
20
20
  getFileProcessingStatusById: import("../network/types.js").QueryObject<Omit<{
21
21
  fileUploadId: string;
22
- xAccountId?: string | null | undefined;
23
- xUsername?: string | null | undefined;
22
+ xAccountId?: string | null;
23
+ xUsername?: string | null;
24
24
  authorization: string;
25
25
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").FileUploadStatusResponse>;
26
26
  /**
@@ -29,8 +29,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
29
29
  */
30
30
  saveKnowledgeObjects: import("../network/types.js").MutationObject<Omit<{
31
31
  fileUploadId: string;
32
- xAccountId?: string | null | undefined;
33
- xUsername?: string | null | undefined;
32
+ xAccountId?: string | null;
33
+ xUsername?: string | null;
34
34
  authorization: string;
35
35
  fileUploadSaveChunksRequest: import("../api/dataIntegration.js").FileUploadSaveChunksRequest;
36
36
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
@@ -39,8 +39,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
39
39
  */
40
40
  saveChunkedKnowledgeObjects: import("../network/types.js").MutationObject<Omit<{
41
41
  fileUploadId: string;
42
- xAccountId?: string | null | undefined;
43
- xUsername?: string | null | undefined;
42
+ xAccountId?: string | null;
43
+ xUsername?: string | null;
44
44
  authorization: string;
45
45
  fileUploadSaveChunksRequest: import("../api/dataIntegration.js").FileUploadSaveChunksRequest;
46
46
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
@@ -49,8 +49,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
49
49
  */
50
50
  splitFile: import("../network/types.js").MutationObject<Omit<{
51
51
  fileUploadId: string;
52
- xAccountId?: string | null | undefined;
53
- xUsername?: string | null | undefined;
52
+ xAccountId?: string | null;
53
+ xUsername?: string | null;
54
54
  authorization: string;
55
55
  fileSplitRequest: import("../api/dataIntegration.js").FileSplitRequest;
56
56
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
@@ -66,19 +66,19 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
66
66
  previewFromSplit: import("../network/types.js").QueryObject<Omit<{
67
67
  fileUploadId: string;
68
68
  splitStrategy: import("../api/dataIntegration.js").FileSplitStrategy;
69
- xAccountId?: string | null | undefined;
70
- xUsername?: string | null | undefined;
69
+ xAccountId?: string | null;
70
+ xUsername?: string | null;
71
71
  authorization: string;
72
72
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
73
73
  /**
74
74
  * List of knowledge sources
75
75
  */
76
76
  knowledgeSources: import("../network/types.js").QueryObject<Omit<{
77
- visibility?: import("../api/dataIntegration.js").VisibilityLevelEnum | undefined;
78
- order?: import("../api/dataIntegration.js").OrderEnum | undefined;
79
- types?: import("../api/dataIntegration.js").KnowledgeSourceTypeEnum[] | undefined;
80
- xAccountId?: string | null | undefined;
81
- xUsername?: string | null | undefined;
77
+ visibility?: import("../api/dataIntegration.js").VisibilityLevelEnum;
78
+ order?: import("../api/dataIntegration.js").OrderEnum;
79
+ types?: import("../api/dataIntegration.js").KnowledgeSourceTypeEnum[];
80
+ xAccountId?: string | null;
81
+ xUsername?: string | null;
82
82
  authorization: string;
83
83
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeSourceItemResponse[]>;
84
84
  /**
@@ -86,8 +86,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
86
86
  */
87
87
  addFavoriteKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
88
88
  slug: string;
89
- xAccountId?: string | null | undefined;
90
- xUsername?: string | null | undefined;
89
+ xAccountId?: string | null;
90
+ xUsername?: string | null;
91
91
  authorization: string;
92
92
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
93
93
  /**
@@ -95,8 +95,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
95
95
  */
96
96
  removeFavoriteKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
97
97
  slug: string;
98
- xAccountId?: string | null | undefined;
99
- xUsername?: string | null | undefined;
98
+ xAccountId?: string | null;
99
+ xUsername?: string | null;
100
100
  authorization: string;
101
101
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
102
102
  /**
@@ -104,11 +104,11 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
104
104
  */
105
105
  listKnowledgeObjects: import("../network/types.js").QueryObject<Omit<{
106
106
  ksSlug: string;
107
- standalone?: boolean | null | undefined;
108
- filePath?: string[] | undefined;
109
- contentLimit?: number | null | undefined;
110
- xAccountId?: string | null | undefined;
111
- xUsername?: string | null | undefined;
107
+ standalone?: boolean | null;
108
+ filePath?: string[];
109
+ contentLimit?: number | null;
110
+ xAccountId?: string | null;
111
+ xUsername?: string | null;
112
112
  authorization: string;
113
113
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeObjectResponse[]>;
114
114
  /**
@@ -117,21 +117,21 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
117
117
  getKnowledgeObjectById: import("../network/types.js").QueryObject<Omit<{
118
118
  ksSlug: string;
119
119
  koId: string;
120
- xAccountId?: string | null | undefined;
121
- xUsername?: string | null | undefined;
120
+ xAccountId?: string | null;
121
+ xUsername?: string | null;
122
122
  authorization: string;
123
123
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeObjectResponse>;
124
124
  uploadFiles: Omit<import("../network/types.js").MutationObject<{
125
125
  files: File[];
126
126
  type: FileUploadType;
127
- targetId?: string | undefined;
127
+ targetId?: string;
128
128
  }, string[]>, keyof import("../network/types.js").OperationObject<any>>;
129
129
  /**
130
130
  * Uploads a KO file
131
131
  */
132
132
  fileUploadFormKnowledgeObject: import("../network/types.js").MutationObject<Omit<{
133
- xAccountId?: string | null | undefined;
134
- xUsername?: string | null | undefined;
133
+ xAccountId?: string | null;
134
+ xUsername?: string | null;
135
135
  authorization: string;
136
136
  newFileUploadRequest: import("../api/dataIntegration.js").NewFileUploadRequest;
137
137
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").NewFileUploadFormResponse>;
@@ -139,8 +139,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
139
139
  * Create Ks
140
140
  */
141
141
  createKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
142
- xAccountId?: string | null | undefined;
143
- xUsername?: string | null | undefined;
142
+ xAccountId?: string | null;
143
+ xUsername?: string | null;
144
144
  authorization: string;
145
145
  newKnowledgeSourceRequest: import("../api/dataIntegration.js").NewKnowledgeSourceRequest;
146
146
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
@@ -148,8 +148,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
148
148
  * Search Ks
149
149
  */
150
150
  listKnowledgeSourcesDataByIds: import("../network/types.js").QueryObject<Omit<{
151
- xAccountId?: string | null | undefined;
152
- xUsername?: string | null | undefined;
151
+ xAccountId?: string | null;
152
+ xUsername?: string | null;
153
153
  authorization: string;
154
154
  knowledgeSourceSearchRequest: import("../api/dataIntegration.js").KnowledgeSourceSearchRequest;
155
155
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeSourceResponse[]>;
@@ -158,16 +158,16 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
158
158
  */
159
159
  findKnowledgeSourceBySlug: import("../network/types.js").QueryObject<Omit<{
160
160
  slug: string;
161
- xAccountId?: string | null | undefined;
162
- xUsername?: string | null | undefined;
161
+ xAccountId?: string | null;
162
+ xUsername?: string | null;
163
163
  authorization: string;
164
164
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeSourceResponse>;
165
165
  /**
166
166
  * Search Objects
167
167
  */
168
168
  searchObjects: import("../network/types.js").MutationObject<Omit<{
169
- xAccountId?: string | null | undefined;
170
- xUsername?: string | null | undefined;
169
+ xAccountId?: string | null;
170
+ xUsername?: string | null;
171
171
  authorization: string;
172
172
  searchKnowledgeObjectRequest: import("../api/dataIntegration.js").SearchKnowledgeObjectRequest;
173
173
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").SearchKnowledgeObjectResponse[]>;
@@ -176,8 +176,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
176
176
  */
177
177
  updateKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
178
178
  slug: string;
179
- xAccountId?: string | null | undefined;
180
- xUsername?: string | null | undefined;
179
+ xAccountId?: string | null;
180
+ xUsername?: string | null;
181
181
  authorization: string;
182
182
  knowledgeSourcePatchesRequest: import("../api/dataIntegration.js").KnowledgeSourcePatchesRequest;
183
183
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
@@ -186,8 +186,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
186
186
  */
187
187
  shareKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
188
188
  slug: string;
189
- xAccountId?: string | null | undefined;
190
- xUsername?: string | null | undefined;
189
+ xAccountId?: string | null;
190
+ xUsername?: string | null;
191
191
  authorization: string;
192
192
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
193
193
  /**
@@ -195,18 +195,18 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
195
195
  */
196
196
  publishKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
197
197
  slug: string;
198
- xAccountId?: string | null | undefined;
199
- xUsername?: string | null | undefined;
198
+ xAccountId?: string | null;
199
+ xUsername?: string | null;
200
200
  authorization: string;
201
- body?: import("../api/dataIntegration.js").KnowledgeSourcesPublishRequest | null | undefined;
201
+ body?: import("../api/dataIntegration.js").KnowledgeSourcesPublishRequest | null;
202
202
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
203
203
  /**
204
204
  * Fork Knowledge Source
205
205
  */
206
206
  forkKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
207
207
  slug: string;
208
- xAccountId?: string | null | undefined;
209
- xUsername?: string | null | undefined;
208
+ xAccountId?: string | null;
209
+ xUsername?: string | null;
210
210
  authorization: string;
211
211
  forkKnowledgeSourceRequest: import("../api/dataIntegration.js").ForkKnowledgeSourceRequest;
212
212
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
@@ -215,9 +215,9 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
215
215
  */
216
216
  deleteKnowledgeObjectsByStandalone: import("../network/types.js").MutationObject<Omit<{
217
217
  ksSlug: string;
218
- standalone?: boolean | null | undefined;
219
- xAccountId?: string | null | undefined;
220
- xUsername?: string | null | undefined;
218
+ standalone?: boolean | null;
219
+ xAccountId?: string | null;
220
+ xUsername?: string | null;
221
221
  authorization: string;
222
222
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
223
223
  /**
@@ -226,8 +226,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
226
226
  deleteKnowledgeObjectFromKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
227
227
  ksSlug: string;
228
228
  koId: string;
229
- xAccountId?: string | null | undefined;
230
- xUsername?: string | null | undefined;
229
+ xAccountId?: string | null;
230
+ xUsername?: string | null;
231
231
  authorization: string;
232
232
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
233
233
  /**
@@ -235,8 +235,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
235
235
  */
236
236
  listIndexedProjectFiles: import("../network/types.js").QueryObject<Omit<{
237
237
  ksSlug: string;
238
- xAccountId?: string | null | undefined;
239
- xUsername?: string | null | undefined;
238
+ xAccountId?: string | null;
239
+ xUsername?: string | null;
240
240
  authorization: string;
241
241
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeSourceFilesIngestedResponse[]>;
242
242
  }
@@ -1 +1 @@
1
- {"version":3,"file":"data-integration.d.ts","sourceRoot":"","sources":["../../src/client/data-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAML,cAAc,EAoBf,MAAM,wBAAwB,CAAA;AAI/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAI5E,cAAM,qBAAsB,SAAQ,uBAAuB;;IAKzD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAGlE;;OAEG;IACH,uBAAuB;;;;;+HAA+E;IACtG;;OAEG;IACH,2BAA2B;;;;;8HAAuF;IAClH;;;OAGG;IACH,oBAAoB;;;;;;wEAAkG;IACtH;;OAEG;IACH,2BAA2B;;;;;;wEAAwG;IACnI;;OAEG;IACH,SAAS;;;;;;wEAA8F;IACvG;;OAEG;IACH,sBAAsB,CACpB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,CAAA;KAAE;IAapC;;OAEG;IACH,gBAAgB;;;;;;wEAAqH;IACrI;;OAEG;IACH,gBAAgB;;;;;;;mIAAoE;IACpF;;OAEG;IACH,0BAA0B;;;;;4EAAyF;IACnH;;OAEG;IACH,6BAA6B;;;;;4EAA8F;IAC3H;;OAEG;IACH,oBAAoB;;;;;;;;+HAAkF;IACtG;;OAEG;IACH,sBAAsB;;;;;;6HAAyF;IAG/G,WAAW;eAE+B,IAAI,EAAE;cAAQ,cAAc;;yEAoBpE;IAEF;;MAEE;IACF,6BAA6B;;;;;+HACiC;IAE9D;;QAEI;IACJ,qBAAqB;;;;;wEAA0E;IAE/F;;QAEI;IACJ,6BAA6B;;;;;+HAA6E;IAE1G;;QAEI;IACJ,yBAAyB;;;;;6HAAwE;IAEjG;;OAEG;IACH,aAAa;;;;;qIAAqE;IAClF;;OAEG;IACH,qBAAqB;;;;;;4EAA+E;IACpG;;OAEG;IACH,oBAAoB;;;;;4EAAkF;IACtG;;OAEG;IACH,sBAAsB;;;;;;4EAAsF;IAC5G;;OAEG;IACH,mBAAmB;;;;;;4EAAgF;IACnG;;OAEG;IACH,kCAAkC;;;;;;4EAAyF;IAC3H;;OAEG;IACH,wCAAwC;;;;;;4EAAiG;IACzI;;OAEG;IACH,uBAAuB;;;;;4IAAwF;CAEhH;AAED,eAAO,MAAM,qBAAqB,uBAA8B,CAAA"}
1
+ {"version":3,"file":"data-integration.d.ts","sourceRoot":"","sources":["../../src/client/data-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAA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AkF;IACtG;;OAEG;IACH,sBAAsB;;;;;;4EAAsF;IAC5G;;OAEG;IACH,mBAAmB;;;;;;4EAAgF;IACnG;;OAEG;IACH,kCAAkC;;;;;;4EAAyF;IAC3H;;OAEG;IACH,wCAAwC;;;;;;4EAAiG;IACzI;;OAEG;IACH,uBAAuB;;;;;4IAAwF;CAEhH;AAED,eAAO,MAAM,qBAAqB,uBAA8B,CAAA"}
@@ -1,8 +1,10 @@
1
1
  import { HttpError } from '@oazapfts/runtime';
2
2
  import { ConversationResponse } from '../api/ai.js';
3
- import { GetOpportunityResponse } from '../api/discover.js';
3
+ import { GetOpportunityResponse, MessageRequest } from '../api/discover.js';
4
4
  import { StackspotAPIError } from '../error/StackspotAPIError.js';
5
+ import { StreamedJson } from '../utils/StreamedJson.js';
5
6
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
7
+ import { ChatResponseWithSteps } from './types.js';
6
8
  export interface ChatConversionDetails extends ConversationResponse {
7
9
  opportunityName?: string;
8
10
  hypothesisCount?: number;
@@ -11,11 +13,11 @@ declare class DiscoverClient extends ReactQueryNetworkClient {
11
13
  constructor();
12
14
  protected buildStackSpotError(error: HttpError): StackspotAPIError;
13
15
  opportunities: import("../network/types.js").QueryObject<{
14
- filter?: string | undefined;
15
- page?: number | undefined;
16
- size?: number | undefined;
17
- sort?: string | undefined;
18
- direction?: string | undefined;
16
+ filter?: string;
17
+ page?: number;
18
+ size?: number;
19
+ sort?: string;
20
+ direction?: string;
19
21
  }, import("../api/discover.js").PageResponseGetOpportunityResponse>;
20
22
  opportunity: import("../network/types.js").QueryObject<{
21
23
  opportunityId: string;
@@ -54,10 +56,14 @@ declare class DiscoverClient extends ReactQueryNetworkClient {
54
56
  documentId: string;
55
57
  }, never>;
56
58
  chats: Omit<import("../network/types.js").QueryObject<{
57
- filter?: string | undefined;
58
- page?: number | undefined;
59
- size?: number | undefined;
59
+ filter?: string;
60
+ page?: number;
61
+ size?: number;
60
62
  }, ChatConversionDetails[]>, "isAllowed" | "useAllowed" | "getPermissionKey">;
63
+ private static toolsOfAgent;
64
+ sendChatMessage(request: MessageRequest & {
65
+ agentId: string;
66
+ }, minChangeIntervalMS?: number): StreamedJson<ChatResponseWithSteps>;
61
67
  }
62
68
  export declare const discoverClient: DiscoverClient;
63
69
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/client/discover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EAAuJ,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAE7M,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAE9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAG5E,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,cAAM,cAAe,SAAQ,uBAAuB;;IAKlD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAIlE,aAAa;;;;;;qEAAqB;IAElC,WAAW;;+BAAsB;IAEjC,UAAU;;0DAAsB;IAEhC,cAAc;;wDAAuB;IAErC,SAAS;;wDAAiC;IAE1C,QAAQ;;sDAAuB;IAE/B,SAAS;;wDAAsB;IAE/B,iBAAiB;;4DAAwB;IAEzC,gBAAgB;;2DAAyB;IAEzC,cAAc;;yDAAyB;IAEvC,iBAAiB;;cAA4B;IAE7C,gBAAgB;;cAA6B;IAE7C,cAAc;;cAA6B;IAE3C,KAAK;;;;kFAmCH;CACH;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAA"}
1
+ {"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/client/discover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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-addresses.js';
2
3
  import { create, create1, create2, defaults, deleteById, deleteById1, deleteById2, getAll, getAll1, getAll2, getAllByHypothesis, getById, getById1, getById2 } from '../api/discover.js';
3
4
  import { DefaultAPIError } from '../error/DefaultAPIError.js';
5
+ import { StreamedJson } from '../utils/StreamedJson.js';
4
6
  import { baseDictionary } from '../error/dictionary/base.js';
7
+ import { formatJson } from '../utils/string.js';
5
8
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
6
9
  import { aiClient } from './ai.js';
10
+ import { agentToolsClient } from './agent-tools.js';
7
11
  class DiscoverClient extends ReactQueryNetworkClient {
8
12
  constructor() {
9
13
  super(getApiAddresses().discover.url, defaults);
@@ -119,6 +123,210 @@ class DiscoverClient extends ReactQueryNetworkClient {
119
123
  buildStackSpotError(error) {
120
124
  return new DefaultAPIError(error.data, error.status, baseDictionary, error.headers);
121
125
  }
126
+ static async toolsOfAgent(agentId) {
127
+ try {
128
+ const agent = agentId ? await agentToolsClient.agent.query({ agentId }) : undefined;
129
+ if (!agent)
130
+ return [];
131
+ const tools = [];
132
+ agent.toolkits?.builtin_toolkits?.forEach(kit => kit.tools?.forEach(({ id, name, description }) => {
133
+ if (id)
134
+ tools.push({ image: kit.image_url, id, name: name || id, description });
135
+ }));
136
+ agent.toolkits?.custom_toolkits?.forEach(kit => kit.tools?.forEach(({ id, name, description }) => {
137
+ if (id)
138
+ tools.push({ image: kit.avatar ?? undefined, id, name: name || id, description });
139
+ }));
140
+ return tools;
141
+ }
142
+ catch {
143
+ return [];
144
+ }
145
+ }
146
+ sendChatMessage(request, minChangeIntervalMS) {
147
+ const abortController = new AbortController();
148
+ const headers = {
149
+ 'Content-Type': 'application/json',
150
+ 'Accept': 'text/event-stream',
151
+ };
152
+ const events = this.stream(this.resolveURL('/v2/ai/chat'), { method: 'post', body: JSON.stringify(request), headers, signal: abortController.signal });
153
+ /**
154
+ * This function treats events in the streaming that deals with the execution of tools. Since these events are not concatenated like
155
+ * normal streamings of data, we need this separate function to deal with them. It transforms the internal data model of the
156
+ * StreamedJson object whenever an event is triggered.
157
+ */
158
+ async function transform(event, data) {
159
+ const info = event.agent_info;
160
+ if (!info)
161
+ return;
162
+ const tools = await DiscoverClient.toolsOfAgent(request.agentId);
163
+ data.steps = data.steps ? [...data.steps] : [];
164
+ if (info.type === 'planning' && info.action === 'end') {
165
+ data.steps.push({
166
+ id: 'planning',
167
+ type: 'planning',
168
+ status: 'success',
169
+ duration: info.duration || 0,
170
+ steps: info.data?.steps?.map(s => s.goal) ?? [],
171
+ goal: info.data?.plan_goal ?? '',
172
+ });
173
+ info.data?.steps.forEach(s => data.steps?.push({
174
+ id: s.id,
175
+ type: 'step',
176
+ status: 'pending',
177
+ input: s.goal,
178
+ attempts: [{
179
+ tools: s.tools?.map(t => ({
180
+ ...(tools.find(({ id }) => id === t.tool_id) ?? { id: t.tool_id, name: t.tool_id }),
181
+ executionId: t.tool_execution_id,
182
+ goal: t.goal,
183
+ })),
184
+ }],
185
+ }));
186
+ data.steps.push({ id: 'answer', type: 'answer', status: 'pending' });
187
+ }
188
+ if (info.type === 'planning' && info.action === 'awaiting_approval') {
189
+ data.steps.push({
190
+ id: 'planning',
191
+ type: 'planning',
192
+ status: 'awaiting_approval',
193
+ user_question: info.data?.user_question,
194
+ duration: info.duration || 0,
195
+ steps: info.data?.steps?.map(s => s.goal) ?? [],
196
+ goal: info.data?.plan_goal ?? '',
197
+ });
198
+ info.data?.steps.forEach(s => data.steps?.push({
199
+ id: s.id,
200
+ type: 'step',
201
+ status: 'pending',
202
+ input: s.goal,
203
+ attempts: [{
204
+ tools: s.tools?.map(t => ({
205
+ ...(tools.find(({ id }) => id === t.tool_id) ?? { id: t.tool_id, name: t.tool_id }),
206
+ executionId: t.tool_execution_id,
207
+ goal: t.goal,
208
+ })),
209
+ }],
210
+ }));
211
+ data.steps.push({ id: 'answer', type: 'answer', status: 'pending' });
212
+ }
213
+ if (info.type === 'step' && info.action === 'start') {
214
+ const step = data.steps.find(s => s.id === info.id);
215
+ if (step)
216
+ step.status = 'running';
217
+ }
218
+ if (info.type === 'step' && info.action === 'end') {
219
+ const step = data.steps.find(s => s.id === info.id);
220
+ if (step) {
221
+ step.status = 'success';
222
+ step.duration = info.duration;
223
+ const lastToolId = last(step.attempts[0].tools)?.id;
224
+ const lastAttemptOfLastTool = findLast(step.attempts.map(a => a.tools).flat(), t => t?.id === lastToolId);
225
+ step.output = lastAttemptOfLastTool?.output;
226
+ }
227
+ }
228
+ if (info.type === 'tool' && info.action === 'awaiting_approval') {
229
+ const tool = tools.find(({ id }) => id === info.data?.tool_id);
230
+ data.steps.push({
231
+ id: info.id,
232
+ type: 'tool',
233
+ status: 'awaiting_approval',
234
+ duration: info.duration || 0,
235
+ input: info.data?.input,
236
+ user_question: info.data?.user_question,
237
+ attempts: [{
238
+ tools: [{
239
+ executionId: info.id,
240
+ id: info.data?.tool_id ?? '',
241
+ name: tool?.name ?? '',
242
+ goal: tool?.goal,
243
+ ...tool,
244
+ }],
245
+ }],
246
+ });
247
+ data.steps.push({ id: 'answer', type: 'answer', status: 'pending' });
248
+ }
249
+ if (info.type === 'tool' && info.action === 'start') {
250
+ const currentStep = data.steps.find(s => s.status === 'running');
251
+ if (!info.data)
252
+ return;
253
+ //There might be a tool with status awaiting_approval, so we want to inform tool has already started
254
+ if (!currentStep || !currentStep.attempts[0].tools) {
255
+ const input = formatJson(info.data.input);
256
+ const tool = tools.find(({ id }) => id === info.data?.tool_id) ?? { id: info.data?.tool_id, name: info.data?.tool_id };
257
+ data.steps.push({
258
+ id: info.id,
259
+ type: 'tool',
260
+ status: 'running',
261
+ duration: info.duration || 0,
262
+ input: info.data?.input,
263
+ user_question: info.data?.user_question,
264
+ attempts: [{
265
+ tools: [{ ...tool, executionId: info.id, input }],
266
+ }],
267
+ });
268
+ }
269
+ else {
270
+ const toolInFirstAttempt = currentStep.attempts[0].tools?.find(t => t.executionId === info.id);
271
+ //One step might have multiple tools. When in an approval mode, we might not have all the tools in the array yet.
272
+ //So we make sure to add any tools that are not in there.
273
+ if (!toolInFirstAttempt) {
274
+ const input = formatJson(info.data.input);
275
+ const tool = tools?.find(({ id }) => id === info.data?.tool_id) ?? { id: info.data?.tool_id, name: info.data?.tool_id };
276
+ currentStep.attempts[info.data.attempt - 1].tools?.push({
277
+ ...tool,
278
+ executionId: info.id,
279
+ input,
280
+ });
281
+ }
282
+ else {
283
+ const input = formatJson(info.data.input);
284
+ if (info.data.attempt === 1) {
285
+ toolInFirstAttempt.input = input;
286
+ }
287
+ else {
288
+ const tool = tools.find(({ id }) => id === info.data?.tool_id) ?? { id: info.data?.tool_id, name: info.data?.tool_id };
289
+ currentStep.attempts[info.data.attempt - 1] ??= { tools: [] };
290
+ currentStep.attempts[info.data.attempt - 1].tools?.push({
291
+ ...tool,
292
+ executionId: info.id,
293
+ input,
294
+ });
295
+ }
296
+ }
297
+ }
298
+ }
299
+ if (info.type === 'tool' && info.action === 'end') {
300
+ const currentStep = data.steps.find(s => s.status === 'running');
301
+ if (!currentStep || !info.data)
302
+ return;
303
+ const tool = currentStep.attempts[info.data.attempt - 1]?.tools?.find(t => t.executionId === info.id);
304
+ if (tool) {
305
+ tool.output = formatJson(info.data.output);
306
+ tool.duration = info.duration;
307
+ }
308
+ }
309
+ if (info.type === 'final_answer' && info.action === 'start') {
310
+ const answerStep = last(data.steps);
311
+ if (answerStep)
312
+ answerStep.status = 'running';
313
+ }
314
+ if (info.type === 'chat' && info.action === 'end') {
315
+ const answerStep = last(data.steps);
316
+ if (answerStep) {
317
+ answerStep.status = 'success';
318
+ answerStep.duration = info.duration;
319
+ }
320
+ }
321
+ }
322
+ return new StreamedJson({
323
+ eventsPromise: events,
324
+ abortController,
325
+ minChangeIntervalMS,
326
+ ignoreKeys: ['agent_info'],
327
+ transform,
328
+ });
329
+ }
122
330
  }
123
331
  export const discoverClient = new DiscoverClient();
124
332
  //# sourceMappingURL=discover.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"discover.js","sourceRoot":"","sources":["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