@stack-spot/portal-network 1.0.0-betaadp.3 → 1.0.0-dev.1768422812092

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 (215) hide show
  1. package/CHANGELOG.md +633 -0
  2. package/dist/api/account.d.ts +413 -277
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +261 -176
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/accountAssetManager.d.ts +309 -0
  7. package/dist/api/accountAssetManager.d.ts.map +1 -0
  8. package/dist/api/accountAssetManager.js +169 -0
  9. package/dist/api/accountAssetManager.js.map +1 -0
  10. package/dist/api/agent-tools.d.ts +243 -149
  11. package/dist/api/agent-tools.d.ts.map +1 -1
  12. package/dist/api/agent-tools.js +77 -5
  13. package/dist/api/agent-tools.js.map +1 -1
  14. package/dist/api/agent.d.ts +55 -55
  15. package/dist/api/agent.d.ts.map +1 -1
  16. package/dist/api/ai.d.ts +487 -98
  17. package/dist/api/ai.d.ts.map +1 -1
  18. package/dist/api/ai.js +427 -146
  19. package/dist/api/ai.js.map +1 -1
  20. package/dist/api/cloudPlatform.d.ts +374 -221
  21. package/dist/api/cloudPlatform.d.ts.map +1 -1
  22. package/dist/api/cloudPlatform.js +299 -93
  23. package/dist/api/cloudPlatform.js.map +1 -1
  24. package/dist/api/cloudPlatformHorizon.d.ts +178 -9
  25. package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
  26. package/dist/api/cloudPlatformHorizon.js +69 -1
  27. package/dist/api/cloudPlatformHorizon.js.map +1 -1
  28. package/dist/api/codeShift.d.ts +1125 -83
  29. package/dist/api/codeShift.d.ts.map +1 -1
  30. package/dist/api/codeShift.js +538 -16
  31. package/dist/api/codeShift.js.map +1 -1
  32. package/dist/api/dataIntegration.d.ts +291 -1
  33. package/dist/api/dataIntegration.d.ts.map +1 -1
  34. package/dist/api/dataIntegration.js +254 -0
  35. package/dist/api/dataIntegration.js.map +1 -1
  36. package/dist/api/discover.d.ts +98 -12
  37. package/dist/api/discover.d.ts.map +1 -1
  38. package/dist/api/discover.js +78 -2
  39. package/dist/api/discover.js.map +1 -1
  40. package/dist/api/edpBfa.d.ts +215 -0
  41. package/dist/api/edpBfa.d.ts.map +1 -0
  42. package/dist/api/edpBfa.js +87 -0
  43. package/dist/api/edpBfa.js.map +1 -0
  44. package/dist/api/genAiInference.d.ts +22 -2
  45. package/dist/api/genAiInference.d.ts.map +1 -1
  46. package/dist/api/genAiInference.js +22 -3
  47. package/dist/api/genAiInference.js.map +1 -1
  48. package/dist/api/workflows.d.ts +68 -5
  49. package/dist/api/workflows.d.ts.map +1 -1
  50. package/dist/api/workflows.js +16 -0
  51. package/dist/api/workflows.js.map +1 -1
  52. package/dist/api/workspaceManager.d.ts +16 -10
  53. package/dist/api/workspaceManager.d.ts.map +1 -1
  54. package/dist/api/workspaceManager.js +10 -0
  55. package/dist/api/workspaceManager.js.map +1 -1
  56. package/dist/api-addresses.d.ts +20 -18
  57. package/dist/api-addresses.d.ts.map +1 -1
  58. package/dist/api-addresses.js +81 -21
  59. package/dist/api-addresses.js.map +1 -1
  60. package/dist/apis-itau.json +241 -0
  61. package/dist/apis.json +17 -1
  62. package/dist/client/account-asset-manager.d.ts +112 -0
  63. package/dist/client/account-asset-manager.d.ts.map +1 -0
  64. package/dist/client/account-asset-manager.js +160 -0
  65. package/dist/client/account-asset-manager.js.map +1 -0
  66. package/dist/client/account.d.ts +265 -242
  67. package/dist/client/account.d.ts.map +1 -1
  68. package/dist/client/account.js +80 -34
  69. package/dist/client/account.js.map +1 -1
  70. package/dist/client/agent-tools.d.ts +166 -119
  71. package/dist/client/agent-tools.d.ts.map +1 -1
  72. package/dist/client/agent-tools.js +62 -11
  73. package/dist/client/agent-tools.js.map +1 -1
  74. package/dist/client/agent.d.ts +46 -46
  75. package/dist/client/agent.d.ts.map +1 -1
  76. package/dist/client/ai.d.ts +266 -79
  77. package/dist/client/ai.d.ts.map +1 -1
  78. package/dist/client/ai.js +262 -20
  79. package/dist/client/ai.js.map +1 -1
  80. package/dist/client/api-management.d.ts +10 -1
  81. package/dist/client/api-management.d.ts.map +1 -1
  82. package/dist/client/api-management.js +11 -2
  83. package/dist/client/api-management.js.map +1 -1
  84. package/dist/client/cloud-account.d.ts +13 -13
  85. package/dist/client/cloud-platform-horizon.d.ts +38 -19
  86. package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
  87. package/dist/client/cloud-platform-horizon.js +19 -1
  88. package/dist/client/cloud-platform-horizon.js.map +1 -1
  89. package/dist/client/cloud-platform.d.ts +213 -46
  90. package/dist/client/cloud-platform.d.ts.map +1 -1
  91. package/dist/client/cloud-platform.js +168 -33
  92. package/dist/client/cloud-platform.js.map +1 -1
  93. package/dist/client/cloud-runtimes.d.ts +4 -4
  94. package/dist/client/cloud-services.d.ts +17 -17
  95. package/dist/client/cloud-services.d.ts.map +1 -1
  96. package/dist/client/code-shift.d.ts +535 -162
  97. package/dist/client/code-shift.d.ts.map +1 -1
  98. package/dist/client/code-shift.js +296 -7
  99. package/dist/client/code-shift.js.map +1 -1
  100. package/dist/client/content.d.ts +127 -132
  101. package/dist/client/content.d.ts.map +1 -1
  102. package/dist/client/data-integration.d.ts +92 -53
  103. package/dist/client/data-integration.d.ts.map +1 -1
  104. package/dist/client/data-integration.js +38 -2
  105. package/dist/client/data-integration.js.map +1 -1
  106. package/dist/client/discover.d.ts +31 -10
  107. package/dist/client/discover.d.ts.map +1 -1
  108. package/dist/client/discover.js +239 -3
  109. package/dist/client/discover.js.map +1 -1
  110. package/dist/client/edp-bfa.d.ts +16 -0
  111. package/dist/client/edp-bfa.d.ts.map +1 -0
  112. package/dist/client/edp-bfa.js +24 -0
  113. package/dist/client/edp-bfa.js.map +1 -0
  114. package/dist/client/event-bus.d.ts.map +1 -1
  115. package/dist/client/gen-ai-inference.d.ts +20 -20
  116. package/dist/client/insights.d.ts +7 -7
  117. package/dist/client/notification.d.ts +17 -10
  118. package/dist/client/notification.d.ts.map +1 -1
  119. package/dist/client/notification.js +10 -1
  120. package/dist/client/notification.js.map +1 -1
  121. package/dist/client/runtime-manager.d.ts +8 -8
  122. package/dist/client/secrets.d.ts.map +1 -1
  123. package/dist/client/secrets.js +1 -1
  124. package/dist/client/secrets.js.map +1 -1
  125. package/dist/client/types.d.ts +50 -7
  126. package/dist/client/types.d.ts.map +1 -1
  127. package/dist/client/workflow.d.ts +10 -10
  128. package/dist/client/workspace-ai.d.ts +53 -53
  129. package/dist/client/workspace-ai.d.ts.map +1 -1
  130. package/dist/client/workspace-ai.js +3 -7
  131. package/dist/client/workspace-ai.js.map +1 -1
  132. package/dist/client/workspace-manager.d.ts +115 -76
  133. package/dist/client/workspace-manager.d.ts.map +1 -1
  134. package/dist/client/workspace-manager.js +47 -2
  135. package/dist/client/workspace-manager.js.map +1 -1
  136. package/dist/client/workspace-search.d.ts +2 -2
  137. package/dist/client/workspace.d.ts +58 -105
  138. package/dist/client/workspace.d.ts.map +1 -1
  139. package/dist/error/DefaultAPIError.d.ts.map +1 -1
  140. package/dist/error/DefaultAPIError.js.map +1 -1
  141. package/dist/error/StackspotAPIError.d.ts +3 -4
  142. package/dist/error/StackspotAPIError.d.ts.map +1 -1
  143. package/dist/error/StackspotAPIError.js +3 -3
  144. package/dist/error/StackspotAPIError.js.map +1 -1
  145. package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
  146. package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
  147. package/dist/error/dictionary/accountAssetManager.js +11 -0
  148. package/dist/error/dictionary/accountAssetManager.js.map +1 -0
  149. package/dist/error/dictionary/cloud-platform.d.ts +76 -8
  150. package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
  151. package/dist/error/dictionary/cloud-platform.js +80 -12
  152. package/dist/error/dictionary/cloud-platform.js.map +1 -1
  153. package/dist/error/dictionary/workspace-ai.d.ts +9 -0
  154. package/dist/error/dictionary/workspace-ai.d.ts.map +1 -0
  155. package/dist/error/dictionary/workspace-ai.js +9 -0
  156. package/dist/error/dictionary/workspace-ai.js.map +1 -0
  157. package/dist/index.d.ts +5 -3
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +4 -2
  160. package/dist/index.js.map +1 -1
  161. package/dist/network/NetworkClient.d.ts +4 -2
  162. package/dist/network/NetworkClient.d.ts.map +1 -1
  163. package/dist/network/NetworkClient.js +16 -4
  164. package/dist/network/NetworkClient.js.map +1 -1
  165. package/dist/network/types.d.ts +2 -0
  166. package/dist/network/types.d.ts.map +1 -1
  167. package/dist/utils/StreamedJson.d.ts +3 -1
  168. package/dist/utils/StreamedJson.d.ts.map +1 -1
  169. package/dist/utils/StreamedJson.js +23 -3
  170. package/dist/utils/StreamedJson.js.map +1 -1
  171. package/package.dev.json +3 -0
  172. package/package.json +10 -9
  173. package/package.stg.json +3 -0
  174. package/readme.md +40 -1
  175. package/src/api/account.ts +701 -540
  176. package/src/api/accountAssetManager.ts +771 -0
  177. package/src/api/agent-tools.ts +332 -151
  178. package/src/api/ai.ts +891 -170
  179. package/src/api/cloudPlatform.ts +667 -298
  180. package/src/api/cloudPlatformHorizon.ts +412 -9
  181. package/src/api/codeShift.ts +2088 -97
  182. package/src/api/dataIntegration.ts +635 -1
  183. package/src/api/discover.ts +180 -14
  184. package/src/api/edpBfa.ts +472 -0
  185. package/src/api/genAiInference.ts +47 -4
  186. package/src/api/workflows.ts +100 -5
  187. package/src/api/workspaceManager.ts +25 -10
  188. package/src/api-addresses.ts +113 -38
  189. package/src/apis-itau.json +241 -0
  190. package/src/apis.json +17 -1
  191. package/src/client/account-asset-manager.ts +100 -0
  192. package/src/client/account.ts +71 -40
  193. package/src/client/agent-tools.ts +57 -17
  194. package/src/client/ai.ts +232 -20
  195. package/src/client/api-management.ts +7 -2
  196. package/src/client/cloud-platform-horizon.ts +12 -4
  197. package/src/client/cloud-platform.ts +101 -27
  198. package/src/client/code-shift.ts +196 -8
  199. package/src/client/data-integration.ts +28 -1
  200. package/src/client/discover.ts +238 -5
  201. package/src/client/edp-bfa.ts +24 -0
  202. package/src/client/notification.ts +6 -1
  203. package/src/client/secrets.ts +1 -1
  204. package/src/client/types.ts +55 -9
  205. package/src/client/workspace-ai.ts +19 -23
  206. package/src/client/workspace-manager.ts +31 -2
  207. package/src/error/DefaultAPIError.ts +5 -5
  208. package/src/error/StackspotAPIError.ts +4 -4
  209. package/src/error/dictionary/accountAssetManager.ts +12 -0
  210. package/src/error/dictionary/cloud-platform.ts +80 -12
  211. package/src/error/dictionary/workspace-ai.ts +10 -0
  212. package/src/index.ts +6 -3
  213. package/src/network/NetworkClient.ts +18 -6
  214. package/src/network/types.ts +3 -0
  215. package/src/utils/StreamedJson.tsx +19 -4
@@ -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,28 +66,43 @@ 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
+ /**
85
+ * List of knowledge sources with pagination
86
+ */
87
+ knowledgeSourcesV2: import("../network/types.js").InfiniteQueryObject<Omit<{
88
+ name?: string | null;
89
+ slug?: string | null;
90
+ size?: number;
91
+ page?: number;
92
+ visibilityList?: import("../api/dataIntegration.js").VisibilityLevelEnum[] | null;
93
+ order?: import("../api/dataIntegration.js").OrderEnum | null;
94
+ types?: import("../api/dataIntegration.js").KnowledgeSourceTypeEnum[];
95
+ xAccountId?: string | null;
96
+ xUsername?: string | null;
97
+ authorization: string;
98
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").PaginatedResponseKnowledgeSourceItemResponse, "items">;
84
99
  /**
85
100
  * Adds the resource of type Knowledge Source to the list of favorites.
86
101
  */
87
102
  addFavoriteKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
88
103
  slug: string;
89
- xAccountId?: string | null | undefined;
90
- xUsername?: string | null | undefined;
104
+ xAccountId?: string | null;
105
+ xUsername?: string | null;
91
106
  authorization: string;
92
107
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
93
108
  /**
@@ -95,8 +110,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
95
110
  */
96
111
  removeFavoriteKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
97
112
  slug: string;
98
- xAccountId?: string | null | undefined;
99
- xUsername?: string | null | undefined;
113
+ xAccountId?: string | null;
114
+ xUsername?: string | null;
100
115
  authorization: string;
101
116
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
102
117
  /**
@@ -104,34 +119,49 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
104
119
  */
105
120
  listKnowledgeObjects: import("../network/types.js").QueryObject<Omit<{
106
121
  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;
122
+ standalone?: boolean | null;
123
+ filePath?: string[];
124
+ contentLimit?: number | null;
125
+ xAccountId?: string | null;
126
+ xUsername?: string | null;
112
127
  authorization: string;
113
128
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeObjectResponse[]>;
129
+ /**
130
+ * List knowledge objects from a knowledge source with pagination
131
+ */
132
+ listKnowledgeObjectsV2: import("../network/types.js").InfiniteQueryObject<Omit<{
133
+ ksSlug: string;
134
+ size?: number;
135
+ page?: number;
136
+ order?: import("../api/dataIntegration.js").OrderEnum | null;
137
+ standalone?: boolean | null;
138
+ filePath?: string[];
139
+ contentLimit?: number | null;
140
+ xAccountId?: string | null;
141
+ xUsername?: string | null;
142
+ authorization: string;
143
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").PaginatedResponseKnowledgeObjectResponse, "items">;
114
144
  /**
115
145
  * Get a knowledge object by id
116
146
  */
117
147
  getKnowledgeObjectById: import("../network/types.js").QueryObject<Omit<{
118
148
  ksSlug: string;
119
149
  koId: string;
120
- xAccountId?: string | null | undefined;
121
- xUsername?: string | null | undefined;
150
+ xAccountId?: string | null;
151
+ xUsername?: string | null;
122
152
  authorization: string;
123
153
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeObjectResponse>;
124
154
  uploadFiles: Omit<import("../network/types.js").MutationObject<{
125
155
  files: File[];
126
156
  type: FileUploadType;
127
- targetId?: string | undefined;
157
+ targetId?: string;
128
158
  }, string[]>, keyof import("../network/types.js").OperationObject<any>>;
129
159
  /**
130
160
  * Uploads a KO file
131
161
  */
132
162
  fileUploadFormKnowledgeObject: import("../network/types.js").MutationObject<Omit<{
133
- xAccountId?: string | null | undefined;
134
- xUsername?: string | null | undefined;
163
+ xAccountId?: string | null;
164
+ xUsername?: string | null;
135
165
  authorization: string;
136
166
  newFileUploadRequest: import("../api/dataIntegration.js").NewFileUploadRequest;
137
167
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").NewFileUploadFormResponse>;
@@ -139,8 +169,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
139
169
  * Create Ks
140
170
  */
141
171
  createKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
142
- xAccountId?: string | null | undefined;
143
- xUsername?: string | null | undefined;
172
+ xAccountId?: string | null;
173
+ xUsername?: string | null;
144
174
  authorization: string;
145
175
  newKnowledgeSourceRequest: import("../api/dataIntegration.js").NewKnowledgeSourceRequest;
146
176
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
@@ -148,8 +178,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
148
178
  * Search Ks
149
179
  */
150
180
  listKnowledgeSourcesDataByIds: import("../network/types.js").QueryObject<Omit<{
151
- xAccountId?: string | null | undefined;
152
- xUsername?: string | null | undefined;
181
+ xAccountId?: string | null;
182
+ xUsername?: string | null;
153
183
  authorization: string;
154
184
  knowledgeSourceSearchRequest: import("../api/dataIntegration.js").KnowledgeSourceSearchRequest;
155
185
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeSourceResponse[]>;
@@ -158,16 +188,16 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
158
188
  */
159
189
  findKnowledgeSourceBySlug: import("../network/types.js").QueryObject<Omit<{
160
190
  slug: string;
161
- xAccountId?: string | null | undefined;
162
- xUsername?: string | null | undefined;
191
+ xAccountId?: string | null;
192
+ xUsername?: string | null;
163
193
  authorization: string;
164
194
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeSourceResponse>;
165
195
  /**
166
196
  * Search Objects
167
197
  */
168
198
  searchObjects: import("../network/types.js").MutationObject<Omit<{
169
- xAccountId?: string | null | undefined;
170
- xUsername?: string | null | undefined;
199
+ xAccountId?: string | null;
200
+ xUsername?: string | null;
171
201
  authorization: string;
172
202
  searchKnowledgeObjectRequest: import("../api/dataIntegration.js").SearchKnowledgeObjectRequest;
173
203
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").SearchKnowledgeObjectResponse[]>;
@@ -176,8 +206,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
176
206
  */
177
207
  updateKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
178
208
  slug: string;
179
- xAccountId?: string | null | undefined;
180
- xUsername?: string | null | undefined;
209
+ xAccountId?: string | null;
210
+ xUsername?: string | null;
181
211
  authorization: string;
182
212
  knowledgeSourcePatchesRequest: import("../api/dataIntegration.js").KnowledgeSourcePatchesRequest;
183
213
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
@@ -186,8 +216,8 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
186
216
  */
187
217
  shareKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
188
218
  slug: string;
189
- xAccountId?: string | null | undefined;
190
- xUsername?: string | null | undefined;
219
+ xAccountId?: string | null;
220
+ xUsername?: string | null;
191
221
  authorization: string;
192
222
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
193
223
  /**
@@ -195,18 +225,18 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
195
225
  */
196
226
  publishKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
197
227
  slug: string;
198
- xAccountId?: string | null | undefined;
199
- xUsername?: string | null | undefined;
228
+ xAccountId?: string | null;
229
+ xUsername?: string | null;
200
230
  authorization: string;
201
- body?: import("../api/dataIntegration.js").KnowledgeSourcesPublishRequest | null | undefined;
231
+ body?: import("../api/dataIntegration.js").KnowledgeSourcesPublishRequest | null;
202
232
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
203
233
  /**
204
234
  * Fork Knowledge Source
205
235
  */
206
236
  forkKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
207
237
  slug: string;
208
- xAccountId?: string | null | undefined;
209
- xUsername?: string | null | undefined;
238
+ xAccountId?: string | null;
239
+ xUsername?: string | null;
210
240
  authorization: string;
211
241
  forkKnowledgeSourceRequest: import("../api/dataIntegration.js").ForkKnowledgeSourceRequest;
212
242
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
@@ -215,9 +245,9 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
215
245
  */
216
246
  deleteKnowledgeObjectsByStandalone: import("../network/types.js").MutationObject<Omit<{
217
247
  ksSlug: string;
218
- standalone?: boolean | null | undefined;
219
- xAccountId?: string | null | undefined;
220
- xUsername?: string | null | undefined;
248
+ standalone?: boolean | null;
249
+ xAccountId?: string | null;
250
+ xUsername?: string | null;
221
251
  authorization: string;
222
252
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
223
253
  /**
@@ -226,10 +256,19 @@ declare class DataIntegrationClient extends ReactQueryNetworkClient {
226
256
  deleteKnowledgeObjectFromKnowledgeSource: import("../network/types.js").MutationObject<Omit<{
227
257
  ksSlug: string;
228
258
  koId: string;
229
- xAccountId?: string | null | undefined;
230
- xUsername?: string | null | undefined;
259
+ xAccountId?: string | null;
260
+ xUsername?: string | null;
231
261
  authorization: string;
232
262
  }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
263
+ /**
264
+ * Get Indexed Files
265
+ */
266
+ listIndexedProjectFiles: import("../network/types.js").QueryObject<Omit<{
267
+ ksSlug: string;
268
+ xAccountId?: string | null;
269
+ xUsername?: string | null;
270
+ authorization: string;
271
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/dataIntegration.js").KnowledgeSourceFilesIngestedResponse[]>;
233
272
  }
234
273
  export declare const dataIntegrationClient: DataIntegrationClient;
235
274
  export {};
@@ -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,EAmBf,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,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,CAAC,EAAE,WAAW,CAAA;KAAE;IAapC;;OAEG;IACH,gBAAgB;;;;;;wEAAqH;IACrI;;OAEG;IACH,gBAAgB;;;;;;;mIAAoE;IACpF;;OAEG;IACH,kBAAkB;;;;;;;;;;;2JAOhB;IACF;;OAEG;IACH,0BAA0B;;;;;4EAAyF;IACnH;;OAEG;IACH,6BAA6B;;;;;4EAA8F;IAC3H;;OAEG;IACH,oBAAoB;;;;;;;;+HAAkF;IACtG;;OAEG;IACH,sBAAsB;;;;;;;;;;;uJAA6E;IACnG;;OAEG;IACH,sBAAsB;;;;;;6HAAyF;IAG/G,WAAW;eAE+B,IAAI,EAAE;cAAQ,cAAc;mBAAa,MAAM;yEAoBvF;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,11 +1,13 @@
1
- import { addFavoriteV1KnowledgeSourcesSlugFavoritePost, createKsV1KnowledgeSourcesPost, defaults, deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete, deleteKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdDelete, findKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdGet, findKsV1KnowledgeSourcesSlugGet, forkKsV1KnowledgeSourcesSlugForkPost, getFileUploadStatusV1FileUploadFileUploadIdGet, getUploadFormV1FileUploadFormPost, getUploadFormV2V2FileUploadFormPost, listKosV1KnowledgeSourcesKsSlugObjectsGet, listKsV1KnowledgeSourcesGet, publishKsV1KnowledgeSourcesSlugPublishPost, resetKosV1KnowledgeSourcesKsSlugObjectsDelete, saveChunkedFilesDeprecatedV1FileUploadFileUploadIdPost, saveChunkedFilesV1FileUploadFileUploadIdKnowledgeObjectsPost, searchKsV1KnowledgeSourcesSearchPost, searchObjectsV1SearchPost, shareKsV1KnowledgeSourcesSlugSharePost, splitUploadedFilePreviewV1FileUploadFileUploadIdSplitPreviewSplitStrategyGet, splitUploadedFileV1FileUploadFileUploadIdSplitPost, updateKsV1KnowledgeSourcesSlugPatch, } from '../api/dataIntegration.js';
1
+ import { getApiAddresses } from '../api-addresses.js';
2
+ import { addFavoriteV1KnowledgeSourcesSlugFavoritePost, createKsV1KnowledgeSourcesPost, defaults, deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete, deleteKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdDelete, findKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdGet, findKsV1KnowledgeSourcesSlugGet, forkKsV1KnowledgeSourcesSlugForkPost, getFileUploadStatusV1FileUploadFileUploadIdGet, getIndexedFilesV1KnowledgeSourcesKsSlugFilesGet, getUploadFormV1FileUploadFormPost, getUploadFormV2V2FileUploadFormPost, listKosV1KnowledgeSourcesKsSlugObjectsGet, listKosV2KnowledgeSourcesKsSlugObjectsGet, listKsV1KnowledgeSourcesGet, listKsV2KnowledgeSourcesGet, publishKsV1KnowledgeSourcesSlugPublishPost, resetKosV1KnowledgeSourcesKsSlugObjectsDelete, saveChunkedFilesDeprecatedV1FileUploadFileUploadIdPost, saveChunkedFilesV1FileUploadFileUploadIdKnowledgeObjectsPost, searchKsV1KnowledgeSourcesSearchPost, searchObjectsV1SearchPost, shareKsV1KnowledgeSourcesSlugSharePost, splitUploadedFilePreviewV1FileUploadFileUploadIdSplitPreviewSplitStrategyGet, splitUploadedFileV1FileUploadFileUploadIdSplitPost, updateKsV1KnowledgeSourcesSlugPatch, } from '../api/dataIntegration.js';
2
3
  import { DefaultAPIError } from '../error/DefaultAPIError.js';
3
4
  import { baseDictionary } from '../error/dictionary/base.js';
4
5
  import { FileUploadError } from '../error/FileUploadError.js';
5
6
  import { StackspotAPIError } from '../error/StackspotAPIError.js';
6
7
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
7
8
  import { removeAuthorizationParam } from '../utils/remove-authorization-param.js';
8
- import { getApiAddresses } from '../api-addresses.js';
9
+ const listKSV2WithoutAuthorization = removeAuthorizationParam(listKsV2KnowledgeSourcesGet);
10
+ const listKOV2WithoutAuthorization = removeAuthorizationParam(listKosV2KnowledgeSourcesKsSlugObjectsGet);
9
11
  class DataIntegrationClient extends ReactQueryNetworkClient {
10
12
  constructor() {
11
13
  super(getApiAddresses().dataIntegration.url, defaults);
@@ -73,6 +75,22 @@ class DataIntegrationClient extends ReactQueryNetworkClient {
73
75
  writable: true,
74
76
  value: this.query(removeAuthorizationParam(listKsV1KnowledgeSourcesGet))
75
77
  });
78
+ /**
79
+ * List of knowledge sources with pagination
80
+ */
81
+ Object.defineProperty(this, "knowledgeSourcesV2", {
82
+ enumerable: true,
83
+ configurable: true,
84
+ writable: true,
85
+ value: this.infiniteQuery(listKSV2WithoutAuthorization, {
86
+ accumulator: 'items',
87
+ getNextPageParam: ({ variables, lastPage, lastPageParam }) => {
88
+ const size = variables.size ?? 1;
89
+ const parsedLastPageParam = lastPageParam ?? variables.page ?? 1;
90
+ return lastPage.items && lastPage.items.length < size ? undefined : parsedLastPageParam + 1;
91
+ },
92
+ })
93
+ });
76
94
  /**
77
95
  * Adds the resource of type Knowledge Source to the list of favorites.
78
96
  */
@@ -100,6 +118,15 @@ class DataIntegrationClient extends ReactQueryNetworkClient {
100
118
  writable: true,
101
119
  value: this.query(removeAuthorizationParam(listKosV1KnowledgeSourcesKsSlugObjectsGet))
102
120
  });
121
+ /**
122
+ * List knowledge objects from a knowledge source with pagination
123
+ */
124
+ Object.defineProperty(this, "listKnowledgeObjectsV2", {
125
+ enumerable: true,
126
+ configurable: true,
127
+ writable: true,
128
+ value: this.infiniteQuery(listKOV2WithoutAuthorization, { accumulator: 'items' })
129
+ });
103
130
  /**
104
131
  * Get a knowledge object by id
105
132
  */
@@ -236,6 +263,15 @@ class DataIntegrationClient extends ReactQueryNetworkClient {
236
263
  writable: true,
237
264
  value: this.mutation(removeAuthorizationParam(deleteKoByIdV1KnowledgeSourcesKsSlugObjectsKoIdDelete))
238
265
  });
266
+ /**
267
+ * Get Indexed Files
268
+ */
269
+ Object.defineProperty(this, "listIndexedProjectFiles", {
270
+ enumerable: true,
271
+ configurable: true,
272
+ writable: true,
273
+ value: this.query(removeAuthorizationParam(getIndexedFilesV1KnowledgeSourcesKsSlugFilesGet))
274
+ });
239
275
  }
240
276
  buildStackSpotError(error) {
241
277
  return new DefaultAPIError(error.data, error.status, baseDictionary, error.headers);
@@ -1 +1 @@
1
- {"version":3,"file":"data-integration.js","sourceRoot":"","sources":["../../src/client/data-integration.ts"],"names":[],"mappings":"AACA,OAAO,EACL,6CAA6C,EAC7C,8BAA8B,EAC9B,QAAQ,EACR,kDAAkD,EAClD,qDAAqD,EAErD,gDAAgD,EAChD,+BAA+B,EAC/B,oCAAoC,EACpC,8CAA8C,EAC9C,iCAAiC,EACjC,mCAAmC,EACnC,yCAAyC,EACzC,2BAA2B,EAC3B,0CAA0C,EAC1C,6CAA6C,EAC7C,sDAAsD,EACtD,4DAA4D,EAC5D,oCAAoC,EACpC,yBAAyB,EACzB,sCAAsC,EACtC,4EAA4E,EAC5E,kDAAkD,EAClD,mCAAmC,GACpC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,eAAe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B,CAAC,+CAA+C,CAAC,CAAC;WAAA;IAlK/G,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACrF,CAAC;IAsBD;;OAEG;IACH,sBAAsB,CACpB,YAAoB,EACpB,aAAqB,EACrB,OAAkC;QAElC,MAAM,GAAG,GAAG,mBAAmB,YAAY,kBAAkB,aAAa,EAAE,CAAA;QAE5E,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;YACvC,MAAM,EAAE,KAAK;YACb,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,QAAQ,EAAE,mBAAmB;aAC9B;YACD,MAAM,EAAE,OAAO,EAAE,MAAM;SACxB,CAAC,CAAA;IACJ,CAAC;CAwHF;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,qBAAqB,EAAE,CAAA"}
@@ -1,20 +1,23 @@
1
+ import { HttpError } from '@oazapfts/runtime';
1
2
  import { ConversationResponse } from '../api/ai.js';
2
- import { GetOpportunityResponse } from '../api/discover.js';
3
+ import { GetOpportunityResponse, AiChatRequest } from '../api/discover.js';
3
4
  import { StackspotAPIError } from '../error/StackspotAPIError.js';
5
+ import { StreamedJson } from '../utils/StreamedJson.js';
4
6
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
7
+ import { ChatResponseWithSteps } from './types.js';
5
8
  export interface ChatConversionDetails extends ConversationResponse {
6
9
  opportunityName?: string;
7
10
  hypothesisCount?: number;
8
11
  }
9
12
  declare class DiscoverClient extends ReactQueryNetworkClient {
10
13
  constructor();
11
- protected buildStackSpotError(error: any): StackspotAPIError;
14
+ protected buildStackSpotError(error: HttpError): StackspotAPIError;
12
15
  opportunities: import("../network/types.js").QueryObject<{
13
- filter?: string | undefined;
14
- page?: number | undefined;
15
- size?: number | undefined;
16
- sort?: string | undefined;
17
- direction?: string | undefined;
16
+ filter?: string;
17
+ page?: number;
18
+ size?: number;
19
+ sort?: string;
20
+ direction?: string;
18
21
  }, import("../api/discover.js").PageResponseGetOpportunityResponse>;
19
22
  opportunity: import("../network/types.js").QueryObject<{
20
23
  opportunityId: string;
@@ -52,11 +55,29 @@ declare class DiscoverClient extends ReactQueryNetworkClient {
52
55
  deleteDocument: import("../network/types.js").MutationObject<{
53
56
  documentId: string;
54
57
  }, never>;
58
+ /**
59
+ * Fetch insights
60
+ */
61
+ insights: import("../network/types.js").QueryObject<void, import("../api/discover.js").InsightResponse>;
62
+ /**
63
+ * Refresh insights
64
+ */
65
+ refreshInsights: import("../network/types.js").MutationObject<void, import("../api/discover.js").InsightResponse>;
66
+ /**
67
+ * Get Insight by Id
68
+ */
69
+ insightById: import("../network/types.js").QueryObject<{
70
+ insightId: string;
71
+ }, import("../api/discover.js").GetInsightResponse>;
55
72
  chats: Omit<import("../network/types.js").QueryObject<{
56
- filter?: string | undefined;
57
- page?: number | undefined;
58
- size?: number | undefined;
73
+ filter?: string;
74
+ page?: number;
75
+ size?: number;
59
76
  }, ChatConversionDetails[]>, "isAllowed" | "useAllowed" | "getPermissionKey">;
77
+ private static toolsOfAgent;
78
+ sendChatMessage(request: AiChatRequest & {
79
+ agentId: string;
80
+ }, minChangeIntervalMS?: number): StreamedJson<ChatResponseWithSteps>;
60
81
  }
61
82
  export declare const discoverClient: DiscoverClient;
62
83
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/client/discover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EAAuJ,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAC7M,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CA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