@stack-spot/portal-network 0.113.7 → 0.115.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/api/agent.d.ts +71 -3
  3. package/dist/api/agent.d.ts.map +1 -1
  4. package/dist/api/agent.js +20 -2
  5. package/dist/api/agent.js.map +1 -1
  6. package/dist/api/ai.d.ts +42 -76
  7. package/dist/api/ai.d.ts.map +1 -1
  8. package/dist/api/ai.js +56 -89
  9. package/dist/api/ai.js.map +1 -1
  10. package/dist/api/codeShift.d.ts +12 -5
  11. package/dist/api/codeShift.d.ts.map +1 -1
  12. package/dist/api/codeShift.js +14 -8
  13. package/dist/api/codeShift.js.map +1 -1
  14. package/dist/api/dataIntegration.d.ts +666 -0
  15. package/dist/api/dataIntegration.d.ts.map +1 -0
  16. package/dist/api/dataIntegration.js +639 -0
  17. package/dist/api/dataIntegration.js.map +1 -0
  18. package/dist/api/workspace-ai.d.ts +28 -4
  19. package/dist/api/workspace-ai.d.ts.map +1 -1
  20. package/dist/api/workspace-ai.js +31 -2
  21. package/dist/api/workspace-ai.js.map +1 -1
  22. package/dist/apis.json +8 -0
  23. package/dist/client/agent.d.ts +28 -0
  24. package/dist/client/agent.d.ts.map +1 -1
  25. package/dist/client/agent.js +19 -1
  26. package/dist/client/agent.js.map +1 -1
  27. package/dist/client/ai.d.ts +45 -37
  28. package/dist/client/ai.d.ts.map +1 -1
  29. package/dist/client/ai.js +21 -12
  30. package/dist/client/ai.js.map +1 -1
  31. package/dist/client/cloud-account.d.ts +5 -5
  32. package/dist/client/cloud-account.d.ts.map +1 -1
  33. package/dist/client/cloud-platform-horizon.d.ts +17 -17
  34. package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
  35. package/dist/client/cloud-platform.d.ts +27 -27
  36. package/dist/client/cloud-platform.d.ts.map +1 -1
  37. package/dist/client/cloud-runtimes.d.ts +21 -21
  38. package/dist/client/cloud-runtimes.d.ts.map +1 -1
  39. package/dist/client/code-shift.d.ts +22 -13
  40. package/dist/client/code-shift.d.ts.map +1 -1
  41. package/dist/client/code-shift.js +10 -1
  42. package/dist/client/code-shift.js.map +1 -1
  43. package/dist/client/content.d.ts +6 -6
  44. package/dist/client/content.d.ts.map +1 -1
  45. package/dist/client/data-integration.d.ts +95 -0
  46. package/dist/client/data-integration.d.ts.map +1 -0
  47. package/dist/client/data-integration.js +88 -0
  48. package/dist/client/data-integration.js.map +1 -0
  49. package/dist/client/gen-ai-inference.d.ts +5 -5
  50. package/dist/client/gen-ai-inference.d.ts.map +1 -1
  51. package/dist/client/workflow.d.ts +8 -8
  52. package/dist/client/workflow.d.ts.map +1 -1
  53. package/dist/client/workspace-ai.d.ts +27 -8
  54. package/dist/client/workspace-ai.d.ts.map +1 -1
  55. package/dist/client/workspace-ai.js +19 -1
  56. package/dist/client/workspace-ai.js.map +1 -1
  57. package/dist/index.d.ts +1 -0
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +1 -0
  60. package/dist/index.js.map +1 -1
  61. package/dist/network/NetworkClient.d.ts +1 -1
  62. package/dist/network/NetworkClient.d.ts.map +1 -1
  63. package/dist/network/NetworkClient.js +1 -0
  64. package/dist/network/NetworkClient.js.map +1 -1
  65. package/dist/utils/remove-authorization-param.d.ts +1 -0
  66. package/dist/utils/remove-authorization-param.d.ts.map +1 -1
  67. package/dist/utils/remove-authorization-param.js.map +1 -1
  68. package/package.json +1 -1
  69. package/src/api/agent.ts +105 -3
  70. package/src/api/ai.ts +106 -183
  71. package/src/api/codeShift.ts +22 -9
  72. package/src/api/dataIntegration.ts +1494 -0
  73. package/src/api/workspace-ai.ts +63 -4
  74. package/src/apis.json +8 -0
  75. package/src/client/agent.ts +11 -1
  76. package/src/client/ai.ts +19 -14
  77. package/src/client/code-shift.ts +6 -1
  78. package/src/client/data-integration.ts +64 -0
  79. package/src/client/workspace-ai.ts +12 -0
  80. package/src/index.ts +1 -0
  81. package/src/network/NetworkClient.ts +2 -1
  82. package/src/utils/remove-authorization-param.ts +2 -1
@@ -29,6 +29,7 @@ export type ValidationError = {
29
29
  export type HttpValidationError = {
30
30
  detail?: ValidationError[];
31
31
  };
32
+ export type WorkspaceVisibilityLevelEnum = "all" | "favorite";
32
33
  export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
33
34
  export type WorkspaceResponse = {
34
35
  id: string;
@@ -87,7 +88,8 @@ export function createWorkspaceV1WorkspacesPost({ authorization, xAccountId, new
87
88
  /**
88
89
  * List Workspaces
89
90
  */
90
- export function listWorkspacesV1WorkspacesGet({ order, name, authorization, xAccountId }: {
91
+ export function listWorkspacesV1WorkspacesGet({ visibility, order, name, authorization, xAccountId }: {
92
+ visibility?: WorkspaceVisibilityLevelEnum;
91
93
  order?: OrderEnum;
92
94
  name?: string | null;
93
95
  authorization: string;
@@ -102,6 +104,7 @@ export function listWorkspacesV1WorkspacesGet({ order, name, authorization, xAcc
102
104
  status: 422;
103
105
  data: HttpValidationError;
104
106
  }>(`/v1/workspaces${QS.query(QS.explode({
107
+ visibility,
105
108
  order,
106
109
  name
107
110
  }))}`, {
@@ -186,6 +189,54 @@ export function deleteWorkspaceV1WorkspacesWorkspaceIdDelete({ workspaceId, auth
186
189
  })
187
190
  }));
188
191
  }
192
+ /**
193
+ * Add Favorite
194
+ */
195
+ export function addFavoriteV1WorkspacesWorkspaceIdFavoritePost({ workspaceId, authorization, xAccountId }: {
196
+ workspaceId: string;
197
+ authorization: string;
198
+ xAccountId?: string | null;
199
+ }, opts?: Oazapfts.RequestOpts) {
200
+ return oazapfts.ok(oazapfts.fetchJson<{
201
+ status: 204;
202
+ } | {
203
+ status: 404;
204
+ } | {
205
+ status: 422;
206
+ data: HttpValidationError;
207
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/favorite`, {
208
+ ...opts,
209
+ method: "POST",
210
+ headers: oazapfts.mergeHeaders(opts?.headers, {
211
+ authorization,
212
+ "x-account-id": xAccountId
213
+ })
214
+ }));
215
+ }
216
+ /**
217
+ * Delete Favorite
218
+ */
219
+ export function deleteFavoriteV1WorkspacesWorkspaceIdFavoriteDelete({ workspaceId, authorization, xAccountId }: {
220
+ workspaceId: string;
221
+ authorization: string;
222
+ xAccountId?: string | null;
223
+ }, opts?: Oazapfts.RequestOpts) {
224
+ return oazapfts.ok(oazapfts.fetchJson<{
225
+ status: 204;
226
+ } | {
227
+ status: 404;
228
+ } | {
229
+ status: 422;
230
+ data: HttpValidationError;
231
+ }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/favorite`, {
232
+ ...opts,
233
+ method: "DELETE",
234
+ headers: oazapfts.mergeHeaders(opts?.headers, {
235
+ authorization,
236
+ "x-account-id": xAccountId
237
+ })
238
+ }));
239
+ }
189
240
  /**
190
241
  * Add Permission
191
242
  */
@@ -241,8 +292,10 @@ export function removePermissionV1WorkspacesWorkspaceIdPermissionsDelete({ works
241
292
  /**
242
293
  * List Groups And Members Permission In Workspace
243
294
  */
244
- export function listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceIdPermissionsGet({ workspaceId, sortBy, order, authorization, xAccountId }: {
295
+ export function listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceIdPermissionsGet({ workspaceId, filterBy, filterValue, sortBy, order, authorization, xAccountId }: {
245
296
  workspaceId: string;
297
+ filterBy?: string | null;
298
+ filterValue?: string | null;
246
299
  sortBy?: SortBy | null;
247
300
  order?: OrderEnum;
248
301
  authorization: string;
@@ -250,13 +303,17 @@ export function listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceId
250
303
  }, opts?: Oazapfts.RequestOpts) {
251
304
  return oazapfts.ok(oazapfts.fetchJson<{
252
305
  status: 200;
253
- data: object;
306
+ data: {
307
+ [key: string]: any;
308
+ };
254
309
  } | {
255
310
  status: 404;
256
311
  } | {
257
312
  status: 422;
258
313
  data: HttpValidationError;
259
314
  }>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/permissions${QS.query(QS.explode({
315
+ filter_by: filterBy,
316
+ filter_value: filterValue,
260
317
  sort_by: sortBy,
261
318
  order
262
319
  }))}`, {
@@ -279,7 +336,9 @@ export function addContentV1WorkspacesWorkspaceIdContentTypePost({ workspaceId,
279
336
  }, opts?: Oazapfts.RequestOpts) {
280
337
  return oazapfts.ok(oazapfts.fetchJson<{
281
338
  status: 200;
282
- data: object;
339
+ data: {
340
+ [key: string]: any;
341
+ };
283
342
  } | {
284
343
  status: 404;
285
344
  } | {
package/src/apis.json CHANGED
@@ -31,6 +31,14 @@
31
31
  },
32
32
  "docs": "/openapi.json"
33
33
  },
34
+ "dataIntegration": {
35
+ "url": {
36
+ "dev": "https://genai-data-integration-api.dev.stackspot.com",
37
+ "stg": "https://genai-data-integration-api.stg.stackspot.com",
38
+ "prd": "https://genai-data-integration-api.stackspot.com"
39
+ },
40
+ "docs": "/openapi.json"
41
+ },
34
42
  "workspace": {
35
43
  "url": {
36
44
  "dev": "https://workspace-workspace-api.dev.stackspot.com",
@@ -1,5 +1,5 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
- import { defaults, getV1AgentByAgentId, getV1Agents, getV1PublicAgentByAgentId, getV1PublicAgents } from '../api/agent'
2
+ import { defaults, deleteV1AgentByAgentIdFavorite, getV1AgentByAgentId, getV1Agents, getV1PublicAgentByAgentId, getV1PublicAgents, postV1AgentByAgentIdFavorite } from '../api/agent'
3
3
  import apis from '../apis.json'
4
4
  import { StackspotAPIError } from '../error/StackspotAPIError'
5
5
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
@@ -47,6 +47,16 @@ class AgentClient extends ReactQueryNetworkClient {
47
47
  * Gets a public agent by id (built-in)
48
48
  */
49
49
  publicAgent = this.query(getV1PublicAgentByAgentId)
50
+
51
+ /**
52
+ * Adds the resource of type Agent to the list of favorites.
53
+ */
54
+ addFavoriteAgent = this.mutation(postV1AgentByAgentIdFavorite)
55
+
56
+ /**
57
+ * Removes the resource of type Agent from the list of favorites.
58
+ */
59
+ removeFavoriteAgent = this.mutation(deleteV1AgentByAgentIdFavorite)
50
60
  }
51
61
 
52
62
  export const agentClient = new AgentClient()
package/src/client/ai.ts CHANGED
@@ -1,20 +1,21 @@
1
1
  import { HttpError } from '@oazapfts/runtime'
2
2
  import { findLast, last } from 'lodash'
3
3
  import {
4
- addFavoriteV1FavoritesPost,
4
+ addFavoriteV1AiStacksStackIdFavoritePost,
5
5
  conversationHistoryV1ConversationsConversationIdGet,
6
6
  currentV1TokensUsageTotalGet,
7
7
  defaults,
8
8
  deleteConversationV1ConversationsConversationIdDelete,
9
- deleteFavoriteV1FavoritesDelete,
9
+ deleteFavoriteV1AiStacksStackIdFavoriteDelete,
10
+ deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete,
10
11
  downloadConversationV1ConversationsConversationIdDownloadGet,
11
12
  findKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdGet,
12
13
  findKnowledgeSourceV1KnowledgeSourcesSlugGet,
13
14
  formatFetchStepV1QuickCommandsSlugStepsStepSlugFetchFormatPost,
14
15
  formatResultV1QuickCommandsSlugResultFormatPost,
15
16
  getContentDependenciesV1ContentContentTypeContentIdDependenciesGet,
16
- getFavoritesByTypeV1FavoritesGet,
17
17
  getQuickCommandV1QuickCommandsSlugGet,
18
+ getUploadFormV1FileUploadFormPost,
18
19
  HttpValidationError,
19
20
  listAiStacksV1AiStacksGet,
20
21
  listAllV1QuickCommandsAllGet,
@@ -24,11 +25,11 @@ import {
24
25
  postEventV1EventsPost,
25
26
  quickActionsV1QuickActionsPost,
26
27
  quickCommandsRunV2V2QuickCommandsSlugStepsStepSlugRunPost,
28
+ resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete,
29
+ shareV1QuickCommandsSlugFavoriteDelete,
30
+ shareV1QuickCommandsSlugFavoritePost,
27
31
  updateTitleV1ConversationsConversationIdPatch,
28
- deleteKnowledgeObjectByCustomIdV1KnowledgeSourcesSlugObjectsCustomIdDelete,
29
- getUploadFormV1FileUploadFormPost,
30
32
  vectorizeCustomKnowledgeSourceV1KnowledgeSourcesSlugCustomPost,
31
- resetKnowledgeObjectsV1KnowledgeSourcesSlugObjectsDelete,
32
33
  } from '../api/ai'
33
34
  import apis from '../apis.json'
34
35
  import { StackspotAPIError } from '../error/StackspotAPIError'
@@ -160,17 +161,21 @@ class AIClient extends ReactQueryNetworkClient {
160
161
  */
161
162
  formatResultOfQuickCommand = this.mutation(removeAuthorizationParam(formatResultV1QuickCommandsSlugResultFormatPost))
162
163
  /**
163
- * Lists the resources of type "$type" marked as favorites.
164
- */
165
- listFavoritesByType = this.query(removeAuthorizationParam(getFavoritesByTypeV1FavoritesGet))
164
+ * Adds the resource of type Stack AI to the list of favorites.
165
+ */
166
+ addFavoriteStackAi = this.mutation(removeAuthorizationParam(addFavoriteV1AiStacksStackIdFavoritePost))
166
167
  /**
167
- * Removes the resource of type "favoriteRequest.type" from the list of favorites.
168
- */
169
- removeFavorite = this.mutation(removeAuthorizationParam(deleteFavoriteV1FavoritesDelete))
168
+ * Removes the resource of type Stack AI from the list of favorites.
169
+ */
170
+ removeFavoriteStackAi = this.mutation(removeAuthorizationParam(deleteFavoriteV1AiStacksStackIdFavoriteDelete))
170
171
  /**
171
- * Adds the resource of type "favoriteRequest.type" to the list of favorites.
172
+ * Adds the resource of type Quick Command to the list of favorites.
172
173
  */
173
- addFavorite = this.mutation(removeAuthorizationParam(addFavoriteV1FavoritesPost))
174
+ addFavoriteQuickCommand = this.mutation(removeAuthorizationParam(shareV1QuickCommandsSlugFavoritePost))
175
+ /**
176
+ * Removes the resource of type Quick Command from the list of favorites.
177
+ */
178
+ removeFavoriteQuickCommand = this.mutation(removeAuthorizationParam(shareV1QuickCommandsSlugFavoriteDelete))
174
179
 
175
180
  private static async toolsOfAgent(agentId?: string) {
176
181
  try {
@@ -12,7 +12,8 @@ import { defaults, createApplicationsBatchServiceV1ApplicationsBatchPost, create
12
12
  getReportV1ReportsReportIdGet,
13
13
  listApplicationReportV1ApplicationsApplicationIdReportsGet,
14
14
  downloadReportV1ReportsReportIdDownloadGet,
15
- checkRoleRouteV1RolesRoleGet,
15
+ checkRoleRouteV1RolesRoleGet,
16
+ createModuleServiceV1ModulesPost,
16
17
  } from '../api/codeShift'
17
18
  import { DefaultAPIError } from '../error/DefaultAPIError'
18
19
 
@@ -49,6 +50,10 @@ class CodeShift extends ReactQueryNetworkClient {
49
50
  * Gets modules.
50
51
  */
51
52
  modules = this.query(removeAuthorizationParam(listModulesServiceV1ModulesGet))
53
+ /**
54
+ * Creates a module.
55
+ */
56
+ createModule = this.mutation(removeAuthorizationParam(createModuleServiceV1ModulesPost))
52
57
  /**
53
58
  * Deletes a code shift application.
54
59
  */
@@ -0,0 +1,64 @@
1
+ import { HttpError } from '@oazapfts/runtime'
2
+ import
3
+ {
4
+ addFavoriteV1KnowledgeSourcesSlugFavoritePost,
5
+ defaults,
6
+ deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete,
7
+ getFileUploadStatusV1FileUploadFileUploadIdGet,
8
+ getUploadFormV2V2FileUploadFormPost,
9
+ listKsV1KnowledgeSourcesGet,
10
+ saveChunkedFilesV1FileUploadFileUploadIdPost,
11
+ splitUploadedFilePreviewV1FileUploadFileUploadIdSplitPreviewSplitStrategyGet,
12
+ splitUploadedFileV1FileUploadFileUploadIdSplitPost,
13
+ } from '../api/dataIntegration'
14
+ import apis from '../apis.json'
15
+ import { DefaultAPIError } from '../error/DefaultAPIError'
16
+ import { StackspotAPIError } from '../error/StackspotAPIError'
17
+ import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient'
18
+ import { removeAuthorizationParam } from '../utils/remove-authorization-param'
19
+ import { baseDictionary } from '../error/dictionary/base'
20
+
21
+ class DataIntegrationClient extends ReactQueryNetworkClient {
22
+ constructor() {
23
+ super(apis.dataIntegration.url, defaults)
24
+ }
25
+
26
+ protected buildStackSpotError(error: HttpError): StackspotAPIError {
27
+ return new DefaultAPIError(error.data, error.status, baseDictionary, error.headers)
28
+ }
29
+ /**
30
+ * Generates a url to upload the file
31
+ */
32
+ generateUrlToFileUpload = this.mutation(removeAuthorizationParam(getUploadFormV2V2FileUploadFormPost))
33
+ /**
34
+ * Get file processing status by id
35
+ */
36
+ getFileProcessingStatusById = this.query(removeAuthorizationParam(getFileUploadStatusV1FileUploadFileUploadIdGet))
37
+ /**
38
+ * Save the splitted knowledge objects
39
+ */
40
+ saveKnowledgeObjects = this.mutation(removeAuthorizationParam(saveChunkedFilesV1FileUploadFileUploadIdPost))
41
+ /**
42
+ * Splits the file with the passed settings
43
+ */
44
+ splitFile = this.mutation(removeAuthorizationParam(splitUploadedFileV1FileUploadFileUploadIdSplitPost))
45
+ /**
46
+ * Generate a preview with splitted objects
47
+ */
48
+ generateSplittedKnowledgeObjects = this.query(
49
+ removeAuthorizationParam(splitUploadedFilePreviewV1FileUploadFileUploadIdSplitPreviewSplitStrategyGet))
50
+ /**
51
+ * List of knowledge sources
52
+ */
53
+ knowledgeSources = this.query(removeAuthorizationParam(listKsV1KnowledgeSourcesGet))
54
+ /**
55
+ * Adds the resource of type Knowledge Source to the list of favorites.
56
+ */
57
+ addFavoriteKnowledgeSource = this.mutation(removeAuthorizationParam(addFavoriteV1KnowledgeSourcesSlugFavoritePost))
58
+ /**
59
+ * Removes the resource of type Knowledge Source from the list of favorites.
60
+ */
61
+ removeFavoriteKnowledgeSource = this.mutation(removeAuthorizationParam(deleteFavoriteV1KnowledgeSourcesSlugFavoriteDelete))
62
+ }
63
+
64
+ export const dataIntegrationClient = new DataIntegrationClient()
@@ -15,6 +15,8 @@ import {
15
15
  removePermissionV1WorkspacesWorkspaceIdPermissionsDelete,
16
16
  removeContentV1WorkspacesWorkspaceIdContentTypeContentIdDelete,
17
17
  updateWorkspaceV1WorkspacesWorkspaceIdPatch,
18
+ addFavoriteV1WorkspacesWorkspaceIdFavoritePost,
19
+ deleteFavoriteV1WorkspacesWorkspaceIdFavoriteDelete,
18
20
  } from '../api/workspace-ai'
19
21
  import apis from '../apis.json'
20
22
  import { StackspotAPIError } from '../error/StackspotAPIError'
@@ -107,6 +109,16 @@ class WorkspaceAiClient extends ReactQueryNetworkClient {
107
109
  removePermissionToWorkspaceAi = this.mutation(removeAuthorizationParam(removePermissionV1WorkspacesWorkspaceIdPermissionsDelete))
108
110
  // eslint-disable-next-line max-len
109
111
  groupsOfWorkspaceAi = this.query(removeAuthorizationParam(listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceIdPermissionsGet) as unknown as ReplaceResult<typeof listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceIdPermissionsGet, FixedWorkspaceAiPermissions>)
112
+
113
+ /**
114
+ * Adds the resource of type Workspace AI to the list of favorites.
115
+ */
116
+ addFavoriteWorkspaceAi = this.mutation(removeAuthorizationParam(addFavoriteV1WorkspacesWorkspaceIdFavoritePost))
117
+
118
+ /**
119
+ * Removes the resource of type Workspace AI from the list of favorites.
120
+ */
121
+ removeFavoriteWorkspaceAi = this.mutation(removeAuthorizationParam(deleteFavoriteV1WorkspacesWorkspaceIdFavoriteDelete))
110
122
  }
111
123
 
112
124
  export const workspaceAiClient = new WorkspaceAiClient()
package/src/index.ts CHANGED
@@ -3,6 +3,7 @@ export { apiAddresses } from './api-addresses'
3
3
  export { accountClient } from './client/account'
4
4
  export { agentClient } from './client/agent'
5
5
  export { agentToolsClient } from './client/agent-tools'
6
+ export { dataIntegrationClient } from './client/data-integration'
6
7
  export { aiClient } from './client/ai'
7
8
  export { cloudAccountClient } from './client/cloud-account'
8
9
  export { cloudPlatformClient } from './client/cloud-platform'
@@ -18,7 +18,7 @@ import { Env, FetchEventStream, HTTPMethod, SessionManager } from './types'
18
18
  */
19
19
  export abstract class NetworkClient {
20
20
  private baseURL: Record<Env, string>
21
- private static sessionManager?: SessionManager
21
+ static readonly sessionManager?: SessionManager
22
22
  private static env?: Env
23
23
 
24
24
  /**
@@ -34,6 +34,7 @@ export abstract class NetworkClient {
34
34
  * @param env The environment to send the requests to.
35
35
  */
36
36
  static setup(sessionManager: SessionManager, env: Env) {
37
+ //@ts-ignore This is the only place we would link session manager to be set.
37
38
  NetworkClient.sessionManager = sessionManager
38
39
  NetworkClient.env = env
39
40
  }
@@ -1,5 +1,6 @@
1
1
  import { FixVariables, OazapftsFunction } from '../client/types'
2
2
 
3
- export function removeAuthorizationParam<T extends OazapftsFunction>(fn: T): FixVariables<T, { authorization: never, jwtToken: never }> {
3
+ export function removeAuthorizationParam<T extends OazapftsFunction>(fn: T): FixVariables<T,
4
+ { authorization: never, jwtToken: never, authorizationHeader: never }> {
4
5
  return fn
5
6
  }