@stack-spot/portal-network 1.0.0-betaadp.2 → 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 (230) 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 +380 -0
  37. package/dist/api/discover.d.ts.map +1 -0
  38. package/dist/api/discover.js +256 -0
  39. package/dist/api/discover.js.map +1 -0
  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 +18 -2
  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 +84 -0
  107. package/dist/client/discover.d.ts.map +1 -0
  108. package/dist/client/discover.js +359 -0
  109. package/dist/client/discover.js.map +1 -0
  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 +6 -4
  158. package/dist/index.d.ts.map +1 -1
  159. package/dist/index.js +5 -3
  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 +601 -0
  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 +18 -2
  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 +319 -0
  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 +7 -4
  213. package/src/network/NetworkClient.ts +18 -6
  214. package/src/network/types.ts +3 -0
  215. package/src/utils/StreamedJson.tsx +19 -4
  216. package/dist/api/discovery.d.ts +0 -494
  217. package/dist/api/discovery.d.ts.map +0 -1
  218. package/dist/api/discovery.js +0 -205
  219. package/dist/api/discovery.js.map +0 -1
  220. package/dist/client/adp-mock.d.ts +0 -89
  221. package/dist/client/adp-mock.d.ts.map +0 -1
  222. package/dist/client/adp-mock.js +0 -246
  223. package/dist/client/adp-mock.js.map +0 -1
  224. package/dist/client/discovery.d.ts +0 -110
  225. package/dist/client/discovery.d.ts.map +0 -1
  226. package/dist/client/discovery.js +0 -133
  227. package/dist/client/discovery.js.map +0 -1
  228. package/src/api/discovery.ts +0 -729
  229. package/src/client/adp-mock.ts +0 -244
  230. package/src/client/discovery.ts +0 -73
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { CancelledError } from '@tanstack/react-query'
2
- export { apiAddresses, getApiAddresses, getBaseUrlWithOverride, setApisOverride } from './api-addresses'
2
+ export { apiAddresses, getApiAddresses, getApisBaseUrlConfig, getBaseUrlByTenantWithOverride } from './api-addresses'
3
3
  export { accountClient } from './client/account'
4
- export * from './client/adp-mock'
4
+ export { accountAssetManagerClient } from './client/account-asset-manager'
5
5
  export { agentClient } from './client/agent'
6
6
  export { agentToolsClient } from './client/agent-tools'
7
7
  export { aiClient } from './client/ai'
@@ -14,7 +14,9 @@ export { cloudServicesClient } from './client/cloud-services'
14
14
  export { codeShiftClient } from './client/code-shift'
15
15
  export { contentClient } from './client/content'
16
16
  export { dataIntegrationClient } from './client/data-integration'
17
- export { discoveryClient } from './client/discovery'
17
+ export * from './client/discover'
18
+ export { discoverClient } from './client/discover'
19
+ export { edpBfaClient } from './client/edp-bfa'
18
20
  export { eventBusClient } from './client/event-bus'
19
21
  export { genAiInferenceClient } from './client/gen-ai-inference'
20
22
  export { insightsClient } from './client/insights'
@@ -35,9 +37,10 @@ export { StreamError } from './error/StreamError'
35
37
  export { StreamJsonError } from './error/StreamJsonError'
36
38
  export { NetworkClient } from './network/NetworkClient'
37
39
  export { queryClient } from './network/react-query-client'
38
- export { OperationResult, OperationVariables, UseQueryObjectOptions } from './network/types'
40
+ export { Env, OperationResult, OperationVariables, Tenant, UseQueryObjectOptions } from './network/types'
39
41
  export { StreamingStatus } from './types'
40
42
  export { StreamedArray } from './utils/StreamedArray'
41
43
  export { StreamedJson } from './utils/StreamedJson'
42
44
  export { useExtendedList } from './utils/use-extended-list'
43
45
  export { useStreamedArray } from './utils/use-streamed-array'
46
+
@@ -1,9 +1,10 @@
1
- import { AuthenticationError, SessionExpiredError } from '@stack-spot/auth'
2
- import { requestPermission } from '@stack-spot/opa'
1
+ import { AuthenticationError, Session, SessionExpiredError } from '@stack-spot/auth'
2
+ import { requestPermission, setup as setupPermissions } from '@stack-spot/opa'
3
3
  import { events } from 'fetch-event-stream'
4
+ import { getApisBaseUrlConfig, getBaseUrlByTenantWithOverride, getPermissionsAPIMap } from '../api-addresses'
4
5
  import { StackspotAPIError } from '../error/StackspotAPIError'
5
- import { Env, FetchEventStream, HTTPMethod, SessionManager } from './types'
6
- import { getBaseUrlWithOverride } from '../api-addresses'
6
+ import { queryClient } from './react-query-client'
7
+ import { Env, FetchEventStream, HTTPMethod, SessionManager, Tenant } from './types'
7
8
 
8
9
  /**
9
10
  * A set of methods for performing network requests to an API.
@@ -21,6 +22,7 @@ export abstract class NetworkClient {
21
22
  private baseURL: Record<Env, string>
22
23
  static readonly sessionManager?: SessionManager
23
24
  private static env?: Env
25
+ private static tenant?: Tenant
24
26
 
25
27
  /**
26
28
  * @param baseURL An object with the keys "dev", "stg" and "prd". The values must be the url for each of these environments.
@@ -33,11 +35,21 @@ export abstract class NetworkClient {
33
35
  * Sets up all network clients. Must be called before attempting to make any request.
34
36
  * @param sessionManager An object with functions capable of checking, retrieving and ending the current session.
35
37
  * @param env The environment to send the requests to.
38
+ * @param tenant - {@link Tenant} tenant identifier used to scope requests.
36
39
  */
37
- static setup(sessionManager: SessionManager, env: Env) {
40
+ static setup(sessionManager: SessionManager, env: Env, tenant?: Tenant) {
38
41
  //@ts-ignore This is the only place we would link session manager to be set.
39
42
  NetworkClient.sessionManager = sessionManager
40
43
  NetworkClient.env = env
44
+ NetworkClient.tenant = tenant
45
+ const url = getApisBaseUrlConfig(env, tenant).permissionValidation
46
+ const apiMap = getPermissionsAPIMap(env, tenant)
47
+ const onChange = (session?: Session) => {
48
+ queryClient.invalidateQueries()
49
+ session && setupPermissions({ url, session, apiMap })
50
+ }
51
+ sessionManager.onChange?.(onChange)
52
+ if (sessionManager.hasSession()) onChange(sessionManager.getSession())
41
53
  }
42
54
 
43
55
  /**
@@ -62,7 +74,7 @@ export abstract class NetworkClient {
62
74
  * @returns the final baseURL for the current environment, considering overrides if available.
63
75
  */
64
76
  protected getBaseURL(): string {
65
- return getBaseUrlWithOverride(this.baseURL, NetworkClient.env);
77
+ return getBaseUrlByTenantWithOverride(this.baseURL, NetworkClient.env, NetworkClient.tenant)
66
78
  }
67
79
 
68
80
  /**
@@ -8,8 +8,11 @@ export interface SessionManager {
8
8
  hasSession(): boolean,
9
9
  endSession(): void,
10
10
  getSession(): Session,
11
+ onChange?: (listener: (session: Session | undefined) => void) => (() => void),
11
12
  }
12
13
 
14
+ export type Tenant = 'stackspot' | 'itau'
15
+
13
16
  export type Env = 'dev' | 'stg' | 'prd'
14
17
 
15
18
  export type HTTPMethod = 'post' | 'patch' | 'delete' | 'put' | 'get'
@@ -31,6 +31,7 @@ interface ConstructorParams<T> {
31
31
  * of merged.
32
32
  */
33
33
  ignoreKeys?: (keyof T)[],
34
+ textFromErrorEvent?: (data: Partial<T>) => string,
34
35
  }
35
36
 
36
37
  /**
@@ -44,16 +45,18 @@ export class StreamedJson<T> {
44
45
  private abortController: AbortController | undefined
45
46
  private transform?: (event: Partial<T>, data: Partial<T>) => void | Promise<void>
46
47
  private ignoreKeys?: (keyof T)[]
48
+ private textFromErrorEvent: (data: Partial<T>) => string
47
49
 
48
50
  /**
49
51
  * @param response the fetch response.
50
52
  * @param minChangeIntervalMS a stream can be too fast. This sets a minimum interval between running the listeners. The default is 50ms.
51
53
  */
52
- constructor({ eventsPromise, abortController, minChangeIntervalMS = 50, transform, ignoreKeys }: ConstructorParams<T>) {
54
+ constructor({ eventsPromise, abortController, minChangeIntervalMS = 50, transform, ignoreKeys, textFromErrorEvent }: ConstructorParams<T>) {
53
55
  this.abortController = abortController
54
56
  this.transform = transform
55
57
  this.ignoreKeys = ignoreKeys
56
58
  this.run(eventsPromise, minChangeIntervalMS)
59
+ this.textFromErrorEvent = textFromErrorEvent ?? ((data) => JSON.stringify(data))
57
60
  }
58
61
 
59
62
  private async run(eventsPromise: Promise<FetchEventStream>, minChangeIntervalMS: number) {
@@ -64,10 +67,17 @@ export class StreamedJson<T> {
64
67
  for await (const event of events) {
65
68
  if (this.error) return
66
69
  if (event.data) {
67
- const json = JSON.parse(event.data)
70
+ let json
71
+ try {
72
+ json = JSON.parse(event.data)
73
+ } catch (e) {
74
+ // eslint-disable-next-line no-console
75
+ console.warn('Mal formed JSON in streaming:', event.data)
76
+ continue
77
+ }
68
78
  await this.transform?.(json, this.data)
69
79
  this.merge(json, this.data)
70
- if (new Date().getTime() - lastChangeCall >= minChangeIntervalMS) {
80
+ if (event.event !== 'error' && new Date().getTime() - lastChangeCall >= minChangeIntervalMS) {
71
81
  this.onChangeListeners.forEach(l => l(this.data))
72
82
  lastChangeCall = new Date().getTime()
73
83
  flushed = true
@@ -75,6 +85,11 @@ export class StreamedJson<T> {
75
85
  flushed = false
76
86
  }
77
87
  }
88
+ if (event.event === 'error') {
89
+ const error = new Error(this.textFromErrorEvent(this.data))
90
+ this.data = {}
91
+ throw error
92
+ }
78
93
  }
79
94
  if (!flushed) this.onChangeListeners.forEach(l => l(this.data))
80
95
  } catch (error: any) {
@@ -138,7 +153,7 @@ export class StreamedJson<T> {
138
153
  onChange(listener: (value: Partial<T>) => void) {
139
154
  if (this.fullPromise.resolved) {
140
155
  listener(this.data)
141
- return () => {}
156
+ return () => { }
142
157
  }
143
158
  this.onChangeListeners.push(listener)
144
159
  return () => {
@@ -1,494 +0,0 @@
1
- /**
2
- * OpenAPI definition
3
- * v0
4
- * DO NOT MODIFY - This file has been generated using oazapfts.
5
- * See https://www.npmjs.com/package/oazapfts
6
- */
7
- import * as Oazapfts from "@oazapfts/runtime";
8
- export declare const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders>;
9
- export declare const servers: {
10
- generatedServerUrl: string;
11
- };
12
- export type OpportunityResponse = {
13
- id?: string;
14
- name?: string;
15
- "number": string;
16
- createdAt?: string;
17
- createdBy?: string;
18
- metadata?: {
19
- [key: string]: string;
20
- };
21
- };
22
- export type HypothesisResponse = {
23
- id?: string;
24
- opportunity: OpportunityResponse;
25
- name: string;
26
- description?: string;
27
- "number": string;
28
- status: "TO_DO" | "PRIORITIZED" | "IN_EXPERIMENTATION" | "VALIDATED" | "DISCARDED" | "CANCELED";
29
- createdAt?: string;
30
- createdBy: string;
31
- updatedAt?: string;
32
- updatedBy?: string;
33
- };
34
- export type HypothesisUpdateRequest = {
35
- name?: string;
36
- description?: string;
37
- opportunityNumber?: string;
38
- status?: string;
39
- };
40
- export type StateResponse = {
41
- value: string;
42
- description: string;
43
- };
44
- export type GetHypothesisResponseHypothesisData = {
45
- id: string;
46
- "number": string;
47
- name: string;
48
- description: string;
49
- state: StateResponse;
50
- community: string;
51
- releaseTrain: string;
52
- squad: string;
53
- agileProduct?: string;
54
- businessPortfolio: string;
55
- technologicalFront: string;
56
- frontChallenge: string;
57
- towerClassification: string;
58
- agileSprint?: string;
59
- priority?: string;
60
- impediment: boolean;
61
- openedAt: string;
62
- openedBy: string;
63
- closedAt?: string;
64
- assignedTo: string;
65
- opportunity: string;
66
- };
67
- export type GetHypothesisResponse = {
68
- data: GetHypothesisResponseHypothesisData;
69
- };
70
- export type UpdateHypothesisRequestStateRequest = {
71
- value: string;
72
- };
73
- export type UpdateHypothesisRequest = {
74
- name: string;
75
- description: string;
76
- state: UpdateHypothesisRequestStateRequest;
77
- };
78
- export type UpdateHypothesisResponseHypothesisData = {
79
- id: string;
80
- "number": string;
81
- name: string;
82
- description: string;
83
- state: StateResponse;
84
- community: string;
85
- releaseTrain: string;
86
- squad: string;
87
- agileProduct?: string;
88
- businessPortfolio: string;
89
- technologicalFront: string;
90
- frontChallenge: string;
91
- towerClassification: string;
92
- agileSprint?: string;
93
- priority?: string;
94
- impediment: boolean;
95
- openedAt: string;
96
- openedBy: string;
97
- closedAt?: string;
98
- assignedTo: string;
99
- opportunity: string;
100
- };
101
- export type UpdateHypothesisResponse = {
102
- data: UpdateHypothesisResponseHypothesisData;
103
- };
104
- export type SortResponse = {
105
- direction: string;
106
- nullHandling: string;
107
- ascending: boolean;
108
- property: string;
109
- ignoreCase: boolean;
110
- };
111
- export type PageableResponse = {
112
- offset: number;
113
- sort: SortResponse[];
114
- paged: boolean;
115
- pageSize: number;
116
- pageNumber: number;
117
- unpaged: boolean;
118
- };
119
- export type PageResponseHypothesisResponse = {
120
- totalElements: number;
121
- totalPages: number;
122
- first: boolean;
123
- last: boolean;
124
- size: number;
125
- content: HypothesisResponse[];
126
- "number": number;
127
- sort: SortResponse[];
128
- numberOfElements: number;
129
- pageable: PageableResponse;
130
- empty: boolean;
131
- };
132
- export type CreateHypothesisRequest = {
133
- opportunity: string;
134
- name: string;
135
- description: string;
136
- };
137
- export type DocumentUploadRequest = {
138
- file: Blob;
139
- description: string;
140
- name: string;
141
- typeId: string;
142
- origin: "AI" | "UPLOAD";
143
- };
144
- export type AgentResponse = {
145
- id: string;
146
- label: string;
147
- image?: string;
148
- builtIn: boolean;
149
- slug: string;
150
- createdAt?: string;
151
- };
152
- export type DocumentTypeResponse = {
153
- id: string;
154
- typeName: "PRESS_RELEASE" | "PRODUCT_VISION" | "PRODUCT_REQUIREMENTS" | "MARKET_COMPARISON";
155
- agent?: AgentResponse;
156
- description: string;
157
- createdAt?: string;
158
- };
159
- export type DocumentVersionSummaryResponse = {
160
- id: string;
161
- name: string;
162
- createdAt?: string;
163
- createdBy?: string;
164
- };
165
- export type DocumentUploadResponse = {
166
- id: string;
167
- name: string;
168
- description: string;
169
- "type": DocumentTypeResponse;
170
- origin: "AI" | "UPLOAD";
171
- createdAt?: string;
172
- createdBy: string;
173
- version: DocumentVersionSummaryResponse;
174
- };
175
- export type DocumentAttachRequest = {
176
- documentIds: string[];
177
- };
178
- export type OrchestratorCredentialsResponse = {
179
- id: number;
180
- clientId: string;
181
- hasCertificate: boolean;
182
- hasPrivateKey: boolean;
183
- createdAt?: string;
184
- createdBy?: string;
185
- updatedAt?: string;
186
- updatedBy?: string;
187
- };
188
- export type ListHypothesisResponseOpportunityData = {
189
- id: string;
190
- "number": string;
191
- };
192
- export type ListHypothesisResponseHypothesisData = {
193
- id: string;
194
- "number": string;
195
- name: string;
196
- description: string;
197
- state: StateResponse;
198
- openedAt: string;
199
- openedBy: string;
200
- opportunity: ListHypothesisResponseOpportunityData;
201
- };
202
- export type ListHypothesisResponse = {
203
- total: number;
204
- data: ListHypothesisResponseHypothesisData[];
205
- };
206
- export type CreateHypothesisResponseHypothesisData = {
207
- id: string;
208
- "number": string;
209
- name: string;
210
- description: string;
211
- state: StateResponse;
212
- community: string;
213
- releaseTrain: string;
214
- squad: string;
215
- agileProduct?: string;
216
- businessPortfolio: string;
217
- technologicalFront: string;
218
- frontChallenge: string;
219
- towerClassification: string;
220
- agileSprint?: string;
221
- priority?: string;
222
- impediment: boolean;
223
- openedAt: string;
224
- openedBy: string;
225
- closedAt?: string;
226
- assignedTo: string;
227
- };
228
- export type CreateHypothesisResponse = {
229
- data: CreateHypothesisResponseHypothesisData;
230
- };
231
- export type DocumentDetailContent = {
232
- hasPreview: boolean;
233
- content?: string;
234
- };
235
- export type DocumentVersion = {
236
- id: string;
237
- name: string;
238
- createdAt?: string;
239
- createdBy?: string;
240
- };
241
- export type DocumentDetailResponse = {
242
- id: string;
243
- name: string;
244
- description: string;
245
- "type": DocumentTypeResponse;
246
- origin: "AI" | "UPLOAD";
247
- createdAt?: string;
248
- createdBy: string;
249
- details: DocumentDetailContent;
250
- version: DocumentVersion;
251
- };
252
- export type DocumentPatchRequest = {
253
- file: Blob;
254
- description?: string;
255
- name?: string;
256
- };
257
- export type PageResponseOpportunityResponse = {
258
- totalElements: number;
259
- totalPages: number;
260
- first: boolean;
261
- last: boolean;
262
- size: number;
263
- content: OpportunityResponse[];
264
- "number": number;
265
- sort: SortResponse[];
266
- numberOfElements: number;
267
- pageable: PageableResponse;
268
- empty: boolean;
269
- };
270
- export type HypothesisSummaryResponse = {
271
- "number": string;
272
- };
273
- export type DocumentWithHypothesesResponse = {
274
- id: string;
275
- name: string;
276
- description?: string;
277
- origin: "AI" | "UPLOAD";
278
- hypotheses: HypothesisSummaryResponse[];
279
- createdAt?: string;
280
- createdBy: string;
281
- };
282
- export type PageResponseDocumentWithHypothesesResponse = {
283
- totalElements: number;
284
- totalPages: number;
285
- first: boolean;
286
- last: boolean;
287
- size: number;
288
- content: DocumentWithHypothesesResponse[];
289
- "number": number;
290
- sort: SortResponse[];
291
- numberOfElements: number;
292
- pageable: PageableResponse;
293
- empty: boolean;
294
- };
295
- export type DocumentVersionResponse = {
296
- id: string;
297
- documentId: string;
298
- versionName: string;
299
- s3VersionId: string;
300
- createdAt?: string;
301
- createdBy?: string;
302
- };
303
- export type PageResponseDocumentVersionResponse = {
304
- totalElements: number;
305
- totalPages: number;
306
- first: boolean;
307
- last: boolean;
308
- size: number;
309
- content: DocumentVersionResponse[];
310
- "number": number;
311
- sort: SortResponse[];
312
- numberOfElements: number;
313
- pageable: PageableResponse;
314
- empty: boolean;
315
- };
316
- export type DocumentSummaryResponse = {
317
- id: string;
318
- name: string;
319
- description: string;
320
- origin: "AI" | "UPLOAD";
321
- hasMultipleHypotheses: boolean;
322
- createdAt?: string;
323
- createdBy: string;
324
- };
325
- export type PageResponseDocumentSummaryResponse = {
326
- totalElements: number;
327
- totalPages: number;
328
- first: boolean;
329
- last: boolean;
330
- size: number;
331
- content: DocumentSummaryResponse[];
332
- "number": number;
333
- sort: SortResponse[];
334
- numberOfElements: number;
335
- pageable: PageableResponse;
336
- empty: boolean;
337
- };
338
- export type ListOpportunityResponseOpportunityData = {
339
- id: string;
340
- "number": string;
341
- name: string;
342
- description: string;
343
- state: StateResponse;
344
- community: string;
345
- releaseTrain: string;
346
- squad: string;
347
- };
348
- export type ListOpportunityResponse = {
349
- data: ListOpportunityResponseOpportunityData[];
350
- };
351
- export type GetOpportunityResponseOpportunityData = {
352
- id: string;
353
- "number": string;
354
- name: string;
355
- description: string;
356
- state: StateResponse;
357
- community: string;
358
- releaseTrain: string;
359
- squad: string;
360
- agileProduct: string;
361
- businessPortfolio: string;
362
- technologicalFront: string;
363
- frontChallenge: string;
364
- towerClassification: string;
365
- agileSprint: string;
366
- priority: string;
367
- impediment: boolean;
368
- openedAt: string;
369
- openedBy: string;
370
- closedAt: string;
371
- assignedTo: string;
372
- };
373
- export type GetOpportunityResponse = {
374
- data: GetOpportunityResponseOpportunityData[];
375
- };
376
- export type ListStateResponseStateData = {
377
- value: string;
378
- description: string;
379
- };
380
- export type ListStateResponse = {
381
- data: ListStateResponseStateData[];
382
- };
383
- export declare function findHypothesisByNumber({ $number }: {
384
- $number: string;
385
- }, opts?: Oazapfts.RequestOpts): Promise<HypothesisResponse>;
386
- export declare function updateHypothesis({ $number, hypothesisUpdateRequest }: {
387
- $number: string;
388
- hypothesisUpdateRequest: HypothesisUpdateRequest;
389
- }, opts?: Oazapfts.RequestOpts): Promise<never>;
390
- export declare function getByNumber({ $number }: {
391
- $number: string;
392
- }, opts?: Oazapfts.RequestOpts): Promise<GetHypothesisResponse>;
393
- export declare function update({ $number, updateHypothesisRequest }: {
394
- $number: string;
395
- updateHypothesisRequest: UpdateHypothesisRequest;
396
- }, opts?: Oazapfts.RequestOpts): Promise<UpdateHypothesisResponse>;
397
- export declare function listHypothesis({ filter, page, size, sort, direction, status }: {
398
- filter?: string;
399
- page?: number;
400
- size?: number;
401
- sort?: string;
402
- direction?: string;
403
- status?: "TO_DO" | "PRIORITIZED" | "IN_EXPERIMENTATION" | "VALIDATED" | "DISCARDED" | "CANCELED";
404
- }, opts?: Oazapfts.RequestOpts): Promise<PageResponseHypothesisResponse>;
405
- export declare function createHypothesis({ createHypothesisRequest }: {
406
- createHypothesisRequest: CreateHypothesisRequest;
407
- }, opts?: Oazapfts.RequestOpts): Promise<HypothesisResponse>;
408
- export declare function upload({ hypothesisNumber, documentUploadRequest }: {
409
- hypothesisNumber: string;
410
- documentUploadRequest?: DocumentUploadRequest;
411
- }, opts?: Oazapfts.RequestOpts): Promise<DocumentUploadResponse>;
412
- export declare function attach({ hypothesisNumber, documentAttachRequest }: {
413
- hypothesisNumber: string;
414
- documentAttachRequest: DocumentAttachRequest;
415
- }, opts?: Oazapfts.RequestOpts): Promise<never>;
416
- /**
417
- * Save orchestrator credentials with file upload
418
- */
419
- export declare function saveOrchestratorCredentials({ body }: {
420
- body?: {
421
- clientId: string;
422
- clientSecret: string;
423
- certificateFile: Blob;
424
- privateKeyFile: Blob;
425
- };
426
- }, opts?: Oazapfts.RequestOpts): Promise<OrchestratorCredentialsResponse>;
427
- export declare function list({ page, size, squad }: {
428
- page?: number;
429
- size?: number;
430
- squad?: string;
431
- }, opts?: Oazapfts.RequestOpts): Promise<ListHypothesisResponse>;
432
- export declare function create({ createHypothesisRequest }: {
433
- createHypothesisRequest: CreateHypothesisRequest;
434
- }, opts?: Oazapfts.RequestOpts): Promise<CreateHypothesisResponse>;
435
- export declare function getById({ documentId, versionId }: {
436
- documentId: string;
437
- versionId?: string;
438
- }, opts?: Oazapfts.RequestOpts): Promise<DocumentDetailResponse>;
439
- export declare function update1({ documentId, documentPatchRequest }: {
440
- documentId: string;
441
- documentPatchRequest?: DocumentPatchRequest;
442
- }, opts?: Oazapfts.RequestOpts): Promise<never>;
443
- export declare function list1({ filter, page, size, sort, direction }: {
444
- filter?: string;
445
- page?: number;
446
- size?: number;
447
- sort?: string;
448
- direction?: string;
449
- }, opts?: Oazapfts.RequestOpts): Promise<PageResponseOpportunityResponse>;
450
- export declare function listAllDocumentsWithHypotheses({ filter, page, size, sort, direction }: {
451
- filter?: string;
452
- page?: number;
453
- size?: number;
454
- sort?: string;
455
- direction?: string;
456
- }, opts?: Oazapfts.RequestOpts): Promise<PageResponseDocumentWithHypothesesResponse>;
457
- export declare function listVersions({ documentId, page, size }: {
458
- documentId: string;
459
- page?: number;
460
- size?: number;
461
- }, opts?: Oazapfts.RequestOpts): Promise<PageResponseDocumentVersionResponse>;
462
- export declare function download({ documentId }: {
463
- documentId: string;
464
- }, opts?: Oazapfts.RequestOpts): Promise<Blob>;
465
- export declare function list2({ filter, page, size, sort, direction, hypothesisNumber }: {
466
- filter?: string;
467
- page?: number;
468
- size?: number;
469
- sort?: string;
470
- direction?: string;
471
- hypothesisNumber: string;
472
- }, opts?: Oazapfts.RequestOpts): Promise<PageResponseDocumentSummaryResponse>;
473
- export declare function getAll(opts?: Oazapfts.RequestOpts): Promise<DocumentTypeResponse[]>;
474
- export declare function getHypothesis({ $number }: {
475
- $number: string;
476
- }, opts?: Oazapfts.RequestOpts): Promise<object>;
477
- export declare function systemHealth(opts?: Oazapfts.RequestOpts): Promise<{
478
- [key: string]: object;
479
- }>;
480
- export declare function health(opts?: Oazapfts.RequestOpts): Promise<{
481
- [key: string]: string;
482
- }>;
483
- export declare function list3({ squad }: {
484
- squad?: string;
485
- }, opts?: Oazapfts.RequestOpts): Promise<ListOpportunityResponse>;
486
- export declare function getOpportunityByNumber({ $number }: {
487
- $number: string;
488
- }, opts?: Oazapfts.RequestOpts): Promise<GetOpportunityResponse>;
489
- export declare function listHypothesisStates(opts?: Oazapfts.RequestOpts): Promise<ListStateResponse>;
490
- export declare function deleteV1DocumentsByDocumentIdHypothesesAndHypothesisNumber({ hypothesisNumber, documentId }: {
491
- hypothesisNumber: string;
492
- documentId: string;
493
- }, opts?: Oazapfts.RequestOpts): Promise<never>;
494
- //# sourceMappingURL=discovery.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../src/api/discovery.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAE9C,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAG9D,CAAC;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACzB,CAAC;CACL,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,mBAAmB,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,GAAG,aAAa,GAAG,oBAAoB,GAAG,WAAW,GAAG,WAAW,GAAG,UAA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