@stack-spot/portal-network 0.146.2 → 0.147.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.
@@ -1,10 +1,128 @@
1
1
  import { HttpError } from '@oazapfts/runtime';
2
2
  import { StackspotAPIError } from '../error/StackspotAPIError.js';
3
3
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
4
+ import { AgentToolsOpenAPIPreview } from './types.js';
4
5
  declare class AgentToolsClient extends ReactQueryNetworkClient {
5
6
  constructor();
6
7
  protected buildStackSpotError(error: HttpError): StackspotAPIError;
7
- tools: import("../network/types.js").QueryObject<void, import("../api/agent-tools.js").BuiltinToolkitResponse[]>;
8
+ tools: import("../network/types.js").QueryObject<{
9
+ xAccountId?: string | null | undefined;
10
+ xUsername?: string | null | undefined;
11
+ xUserId?: string | null | undefined;
12
+ xUserFullName?: string | null | undefined;
13
+ authorization: string;
14
+ }, import("../api/agent-tools.js").BuiltinToolkitResponse[]>;
15
+ /**
16
+ * Get list of Toolkits
17
+ */
18
+ toolkits: import("../network/types.js").QueryObject<Omit<{
19
+ visibility?: import("../api/agent-tools.js").VisibilityLevelEnum | undefined;
20
+ xAccountId?: string | null | undefined;
21
+ xUsername?: string | null | undefined;
22
+ xUserId?: string | null | undefined;
23
+ xUserFullName?: string | null | undefined;
24
+ authorization: string;
25
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/agent-tools.js").CustomToolkitSimpleResponse[]>;
26
+ /**
27
+ * Get a toolkit by Id
28
+ */
29
+ toolkitById: import("../network/types.js").QueryObject<Omit<{
30
+ toolkitId: string;
31
+ xAccountId?: string | null | undefined;
32
+ xUsername?: string | null | undefined;
33
+ xUserId?: string | null | undefined;
34
+ xUserFullName?: string | null | undefined;
35
+ authorization: string;
36
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/agent-tools.js").CustomToolkitResponse>;
37
+ /**
38
+ * Create a toolkit
39
+ */
40
+ createToolkit: import("../network/types.js").MutationObject<Omit<{
41
+ xAccountId?: string | null | undefined;
42
+ xUsername?: string | null | undefined;
43
+ xUserId?: string | null | undefined;
44
+ xUserFullName?: string | null | undefined;
45
+ authorization: string;
46
+ toolkitRequest: import("../api/agent-tools.js").ToolkitRequest;
47
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/agent-tools.js").CreatedResponse>;
48
+ /**
49
+ * Update a toolkit
50
+ */
51
+ updateToolkit: import("../network/types.js").MutationObject<Omit<{
52
+ toolkitId: string;
53
+ xAccountId?: string | null | undefined;
54
+ xUsername?: string | null | undefined;
55
+ xUserId?: string | null | undefined;
56
+ xUserFullName?: string | null | undefined;
57
+ authorization: string;
58
+ toolkitUpdateRequest: import("../api/agent-tools.js").ToolkitUpdateRequest;
59
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
60
+ /**
61
+ * Delete a toolkit
62
+ */
63
+ deleteToolkit: import("../network/types.js").MutationObject<Omit<{
64
+ toolkitId: string;
65
+ xAccountId?: string | null | undefined;
66
+ xUsername?: string | null | undefined;
67
+ xUserId?: string | null | undefined;
68
+ xUserFullName?: string | null | undefined;
69
+ authorization: string;
70
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
71
+ /**
72
+ * Get Tool from Toolkit
73
+ */
74
+ toolFromToolkit: import("../network/types.js").QueryObject<Omit<{
75
+ toolkitId: string;
76
+ toolId: string;
77
+ xAccountId?: string | null | undefined;
78
+ xUsername?: string | null | undefined;
79
+ xUserId?: string | null | undefined;
80
+ xUserFullName?: string | null | undefined;
81
+ authorization: string;
82
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/agent-tools.js").CustomToolkitToolResponse>;
83
+ /**
84
+ * Add tool on Toolkit
85
+ */
86
+ addToolOnToolkit: import("../network/types.js").MutationObject<Omit<{
87
+ toolkitId: string;
88
+ xAccountId?: string | null | undefined;
89
+ xUsername?: string | null | undefined;
90
+ xUserId?: string | null | undefined;
91
+ xUserFullName?: string | null | undefined;
92
+ authorization: string;
93
+ customToolsRequest: import("../api/agent-tools.js").CustomToolsRequest;
94
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
95
+ /**
96
+ * Edit tool on Toolkit
97
+ */
98
+ editToolOnToolkit: import("../network/types.js").MutationObject<Omit<{
99
+ toolkitId: string;
100
+ toolId: string;
101
+ xAccountId?: string | null | undefined;
102
+ xUsername?: string | null | undefined;
103
+ xUserId?: string | null | undefined;
104
+ xUserFullName?: string | null | undefined;
105
+ authorization: string;
106
+ customToolRequest: import("../api/agent-tools.js").CustomToolRequest;
107
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
108
+ /**
109
+ * Delete tool from Toolkit
110
+ */
111
+ deleteToolFromToolkit: import("../network/types.js").MutationObject<Omit<{
112
+ toolkitId: string;
113
+ xAccountId?: string | null | undefined;
114
+ xUsername?: string | null | undefined;
115
+ xUserId?: string | null | undefined;
116
+ xUserFullName?: string | null | undefined;
117
+ authorization: string;
118
+ deleteToolsRequest: import("../api/agent-tools.js").DeleteToolsRequest;
119
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
120
+ /**
121
+ * Previews an uploaded open api file.
122
+ */
123
+ previewUploadedAPI: Omit<import("../network/types.js").QueryObject<{
124
+ fileUploadId: string;
125
+ }, AgentToolsOpenAPIPreview[]>, "isAllowed" | "useAllowed" | "getPermissionKey">;
8
126
  }
9
127
  export declare const agentToolsClient: AgentToolsClient;
10
128
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"agent-tools.d.ts","sourceRoot":"","sources":["../../src/client/agent-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAG7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,cAAM,gBAAiB,SAAQ,uBAAuB;;IAKpD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IASlE,KAAK,sGAAmD;CACzD;AAED,eAAO,MAAM,gBAAgB,kBAAyB,CAAA"}
1
+ {"version":3,"file":"agent-tools.d.ts","sourceRoot":"","sources":["../../src/client/agent-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAG7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAElD,cAAM,gBAAiB,SAAQ,uBAAuB;;IAKpD,SAAS,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,GAAG,iBAAiB;IAUlE,KAAK;;;;;;8DAAmD;IAExD;;OAEG;IACH,QAAQ;;;;;;;+HAAkE;IAC1E;;OAEG;IACH,WAAW;;;;;;;uHAAyE;IACpF;;OAEG;IACH,aAAa;;;;;;;iHAAuE;IACpF;;OAEG;IACH,aAAa;;;;;;;;4EAAiF;IAC9F;;OAEG;IACH,aAAa;;;;;;;4EAAkF;IAC/F;;OAEG;IACH,eAAe;;;;;;;;2HAAwF;IACvG;;OAEG;IACH,gBAAgB;;;;;;;;4EAA0F;IAC1G;;OAEG;IACH,iBAAiB;;;;;;;;;4EAA4F;IAC7G;;OAEG;IACH,qBAAqB;;;;;;;;4EAA4F;IACjH;;OAEG;IACH,kBAAkB;sBAEgC,MAAM;qFAWtD;CACH;AAED,eAAO,MAAM,gBAAgB,kBAAyB,CAAA"}
@@ -1,7 +1,8 @@
1
- import { defaults, getPublicToolKitsV1BuiltinToolkitGet } from '../api/agent-tools.js';
1
+ import { createToolkitToolsV1ToolkitsToolkitIdToolsPost, createToolkitV1ToolkitsPost, defaults, deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete, deleteToolkitV1ToolkitsToolkitIdDelete, editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut, getPublicToolKitsV1BuiltinToolkitGet, getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet, getToolkitV1ToolkitsToolkitIdGet, listToolkitsV1ToolkitsGet, updateToolkitV1ToolkitsToolkitIdPatch } from '../api/agent-tools.js';
2
2
  import apis from '../apis.json';
3
3
  import { StackspotAPIError } from '../error/StackspotAPIError.js';
4
4
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
5
+ import { removeAuthorizationParam } from '../utils/remove-authorization-param.js';
5
6
  class AgentToolsClient extends ReactQueryNetworkClient {
6
7
  constructor() {
7
8
  super(apis['agent-tools'].url, defaults);
@@ -11,13 +12,117 @@ class AgentToolsClient extends ReactQueryNetworkClient {
11
12
  writable: true,
12
13
  value: this.query(getPublicToolKitsV1BuiltinToolkitGet)
13
14
  });
15
+ /**
16
+ * Get list of Toolkits
17
+ */
18
+ Object.defineProperty(this, "toolkits", {
19
+ enumerable: true,
20
+ configurable: true,
21
+ writable: true,
22
+ value: this.query(removeAuthorizationParam(listToolkitsV1ToolkitsGet))
23
+ });
24
+ /**
25
+ * Get a toolkit by Id
26
+ */
27
+ Object.defineProperty(this, "toolkitById", {
28
+ enumerable: true,
29
+ configurable: true,
30
+ writable: true,
31
+ value: this.query(removeAuthorizationParam(getToolkitV1ToolkitsToolkitIdGet))
32
+ });
33
+ /**
34
+ * Create a toolkit
35
+ */
36
+ Object.defineProperty(this, "createToolkit", {
37
+ enumerable: true,
38
+ configurable: true,
39
+ writable: true,
40
+ value: this.mutation(removeAuthorizationParam(createToolkitV1ToolkitsPost))
41
+ });
42
+ /**
43
+ * Update a toolkit
44
+ */
45
+ Object.defineProperty(this, "updateToolkit", {
46
+ enumerable: true,
47
+ configurable: true,
48
+ writable: true,
49
+ value: this.mutation(removeAuthorizationParam(updateToolkitV1ToolkitsToolkitIdPatch))
50
+ });
51
+ /**
52
+ * Delete a toolkit
53
+ */
54
+ Object.defineProperty(this, "deleteToolkit", {
55
+ enumerable: true,
56
+ configurable: true,
57
+ writable: true,
58
+ value: this.mutation(removeAuthorizationParam(deleteToolkitV1ToolkitsToolkitIdDelete))
59
+ });
60
+ /**
61
+ * Get Tool from Toolkit
62
+ */
63
+ Object.defineProperty(this, "toolFromToolkit", {
64
+ enumerable: true,
65
+ configurable: true,
66
+ writable: true,
67
+ value: this.query(removeAuthorizationParam(getToolkitToolV1ToolkitsToolkitIdToolsToolIdGet))
68
+ });
69
+ /**
70
+ * Add tool on Toolkit
71
+ */
72
+ Object.defineProperty(this, "addToolOnToolkit", {
73
+ enumerable: true,
74
+ configurable: true,
75
+ writable: true,
76
+ value: this.mutation(removeAuthorizationParam(createToolkitToolsV1ToolkitsToolkitIdToolsPost))
77
+ });
78
+ /**
79
+ * Edit tool on Toolkit
80
+ */
81
+ Object.defineProperty(this, "editToolOnToolkit", {
82
+ enumerable: true,
83
+ configurable: true,
84
+ writable: true,
85
+ value: this.mutation(removeAuthorizationParam(editToolkitToolV1ToolkitsToolkitIdToolsToolIdPut))
86
+ });
87
+ /**
88
+ * Delete tool from Toolkit
89
+ */
90
+ Object.defineProperty(this, "deleteToolFromToolkit", {
91
+ enumerable: true,
92
+ configurable: true,
93
+ writable: true,
94
+ value: this.mutation(removeAuthorizationParam(deleteToolkitToolsV1ToolkitsToolkitIdToolsDelete))
95
+ });
96
+ /**
97
+ * Previews an uploaded open api file.
98
+ */
99
+ Object.defineProperty(this, "previewUploadedAPI", {
100
+ enumerable: true,
101
+ configurable: true,
102
+ writable: true,
103
+ value: this.query({
104
+ name: 'previewUploadedAPI',
105
+ request: async (signal, params) => {
106
+ const url = `/v1/toolkits/tools/preview/${encodeURIComponent(params.fileUploadId)}`;
107
+ const events = await this.stream(url, { signal });
108
+ const result = [];
109
+ for await (const event of events) {
110
+ if (event.data) {
111
+ result.push(JSON.parse(event.data));
112
+ }
113
+ }
114
+ return result;
115
+ },
116
+ })
117
+ });
14
118
  }
15
119
  buildStackSpotError(error) {
16
120
  return new StackspotAPIError({
17
121
  status: error.status,
18
122
  headers: error.headers,
19
123
  stack: error.stack,
20
- message: error.data?.detail?.map(d => d.msg)?.join('\n'),
124
+ // @ts-ignore API documentation is wrong
125
+ message: error.data?.details?.map(d => d.msg)?.join('\n'),
21
126
  });
22
127
  }
23
128
  }
@@ -1 +1 @@
1
- {"version":3,"file":"agent-tools.js","sourceRoot":"","sources":["../../src/client/agent-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,oCAAoC,EAAuB,MAAM,oBAAoB,CAAA;AACxG,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAE5E,MAAM,gBAAiB,SAAQ,uBAAuB;IACpD;QACE,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAY1C;;;;mBAAQ,IAAI,CAAC,KAAK,CAAC,oCAAoC,CAAC;WAAA;IAXxD,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,iBAAiB,CAAC;YAC3B,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,OAAO,EAAG,KAAK,CAAC,IAAwC,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;SAC9F,CAAC,CAAA;IACJ,CAAC;CAGF;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,gBAAgB,EAAE,CAAA"}
1
+ {"version":3,"file":"agent-tools.js","sourceRoot":"","sources":["../../src/client/agent-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8CAA8C,EAAE,2B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gB,GAAG,IAAI,gBAAgB,EAAE,CAAA"}
@@ -14,7 +14,7 @@ declare class AIClient extends ReactQueryNetworkClient {
14
14
  authorization: string;
15
15
  xAccountId?: string | null | undefined;
16
16
  quickActionsRequest: import("../api/ai.js").QuickActionsRequest;
17
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").SimpleResponse>;
17
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").SimpleResponse>;
18
18
  /**
19
19
  * Deletes a KO from a KS
20
20
  */
@@ -22,7 +22,7 @@ declare class AIClient extends ReactQueryNetworkClient {
22
22
  customId: string;
23
23
  slug: string;
24
24
  authorization: string;
25
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, unknown>;
25
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
26
26
  /**
27
27
  * Deletes a KO by standalone (reset Knowledge Objects)
28
28
  */
@@ -30,14 +30,14 @@ declare class AIClient extends ReactQueryNetworkClient {
30
30
  slug: string;
31
31
  standalone?: boolean | null | undefined;
32
32
  authorization: string;
33
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, unknown>;
33
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
34
34
  /**
35
35
  * Uploads a KO file
36
36
  */
37
37
  fileUploadFormKnowledgeObject: import("../network/types.js").MutationObject<Omit<{
38
38
  authorization: string;
39
39
  newFileUploadUrlRequest: import("../api/ai.js").NewFileUploadUrlRequest;
40
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").NewFileUploadFormResponse>;
40
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").NewFileUploadFormResponse>;
41
41
  /**
42
42
  * Creates a custom KO (Vectorize)
43
43
  */
@@ -46,7 +46,7 @@ declare class AIClient extends ReactQueryNetworkClient {
46
46
  authorization: string;
47
47
  xAccountId?: string | null | undefined;
48
48
  customKnowledgeSourceRequest: import("../api/ai.js").CustomKnowledgeSourceRequest;
49
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, unknown>;
49
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
50
50
  /**
51
51
  * Lists the AI Stacks according to their visibilities.
52
52
  */
@@ -54,14 +54,14 @@ declare class AIClient extends ReactQueryNetworkClient {
54
54
  visibility?: import("../api/ai.js").VisibilityLevelEnum | undefined;
55
55
  authorization: string;
56
56
  xAccountId?: string | null | undefined;
57
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").GetAiStackResponse[]>;
57
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").GetAiStackResponse[]>;
58
58
  /**
59
59
  * Gets total tokens usage
60
60
  */
61
61
  totalTokensUsage: import("../network/types.js").QueryObject<Omit<{
62
62
  authorization: string;
63
63
  xAccountId?: string | null | undefined;
64
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").TokensCurrentUsageResponse>;
64
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").TokensCurrentUsageResponse>;
65
65
  /**
66
66
  * Gets current tokens usage
67
67
  */
@@ -70,7 +70,7 @@ declare class AIClient extends ReactQueryNetworkClient {
70
70
  month: number;
71
71
  authorization: string;
72
72
  xAccountId?: string | null | undefined;
73
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").TokensCurrentUsageResponse>;
73
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").TokensCurrentUsageResponse>;
74
74
  /**
75
75
  * Gets a workspace by its id.
76
76
  */
@@ -78,7 +78,7 @@ declare class AIClient extends ReactQueryNetworkClient {
78
78
  workspaceId: string;
79
79
  authorization: string;
80
80
  xAccountId?: string | null | undefined;
81
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").KnowledgeSourceResponse[]>;
81
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").KnowledgeSourceResponse[]>;
82
82
  /**
83
83
  * @deprecated
84
84
  * Lists the quick commands according to filters passed as parameter (QC with secrets will not be returned).
@@ -89,7 +89,7 @@ declare class AIClient extends ReactQueryNetworkClient {
89
89
  types?: import("../api/ai.js").QuickCommandTypeRequest[] | null | undefined;
90
90
  authorization: string;
91
91
  xAccountId?: string | null | undefined;
92
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").QuickCommandListResponse[]>;
92
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandListResponse[]>;
93
93
  /**
94
94
  * Lists all the quick commands according to filters passed as parameter (including QC with secrets).
95
95
  */
@@ -99,7 +99,7 @@ declare class AIClient extends ReactQueryNetworkClient {
99
99
  types?: import("../api/ai.js").QuickCommandTypeRequest[] | null | undefined;
100
100
  authorization: string;
101
101
  xAccountId?: string | null | undefined;
102
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").QuickCommandListResponse[]>;
102
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandListResponse[]>;
103
103
  /**
104
104
  * Gets a quick command by its slug.
105
105
  */
@@ -108,7 +108,7 @@ declare class AIClient extends ReactQueryNetworkClient {
108
108
  findAgents?: boolean | undefined;
109
109
  authorization: string;
110
110
  xAccountId?: string | null | undefined;
111
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").QuickCommandResponse>;
111
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandResponse>;
112
112
  /**
113
113
  * Lists the knowledge sources according to filters passed as parameter.
114
114
  */
@@ -119,14 +119,14 @@ declare class AIClient extends ReactQueryNetworkClient {
119
119
  types?: import("../api/ai.js").KnowledgeSourceTypeEnum[] | null | undefined;
120
120
  authorization: string;
121
121
  xAccountId?: string | null | undefined;
122
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").KnowledgeSourceItemResponse[]>;
122
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").KnowledgeSourceItemResponse[]>;
123
123
  /**
124
124
  * Gets a knowledge source by its slug.
125
125
  */
126
126
  knowledgeSource: import("../network/types.js").QueryObject<Omit<{
127
127
  slug: string;
128
128
  authorization: string;
129
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").KnowledgeSourceResponse>;
129
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").KnowledgeSourceResponse>;
130
130
  /**
131
131
  * Gets a knowledge source document by the slug of the parent knowledge source and the document id.
132
132
  */
@@ -134,7 +134,7 @@ declare class AIClient extends ReactQueryNetworkClient {
134
134
  slug: string;
135
135
  customId: string;
136
136
  authorization: string;
137
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").DocumentResponse>;
137
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").DocumentResponse>;
138
138
  /**
139
139
  * Gets the chat history. This is a paginated resource.
140
140
  */
@@ -143,7 +143,7 @@ declare class AIClient extends ReactQueryNetworkClient {
143
143
  page?: number | undefined;
144
144
  authorization: string;
145
145
  xAccountId?: string | null | undefined;
146
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").ConversationResponse[], "">;
146
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").ConversationResponse[], "">;
147
147
  /**
148
148
  * Gets a specific chat from the history according to its id.
149
149
  */
@@ -151,7 +151,7 @@ declare class AIClient extends ReactQueryNetworkClient {
151
151
  conversationId: string;
152
152
  authorization: string;
153
153
  xAccountId?: string | null | undefined;
154
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, FixedConversationResponse>;
154
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, FixedConversationResponse>;
155
155
  /**
156
156
  * Deletes a chat from the chat history.
157
157
  */
@@ -159,7 +159,7 @@ declare class AIClient extends ReactQueryNetworkClient {
159
159
  conversationId: string;
160
160
  authorization: string;
161
161
  xAccountId?: string | null | undefined;
162
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, unknown>;
162
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
163
163
  /**
164
164
  * Gets a plain text version of the chat with id passed as parameter.
165
165
  */
@@ -167,7 +167,7 @@ declare class AIClient extends ReactQueryNetworkClient {
167
167
  conversationId: string;
168
168
  authorization: string;
169
169
  xAccountId?: string | null | undefined;
170
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, any>;
170
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, any>;
171
171
  /**
172
172
  * Renames a chat.
173
173
  */
@@ -176,7 +176,7 @@ declare class AIClient extends ReactQueryNetworkClient {
176
176
  authorization: string;
177
177
  xAccountId?: string | null | undefined;
178
178
  conversationUpdateTitleRequest: import("../api/ai.js").ConversationUpdateTitleRequest;
179
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").ConversationResponse>;
179
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").ConversationResponse>;
180
180
  /**
181
181
  * Creates an event so it can be used as metric by the product designers (analytics).
182
182
  */
@@ -184,7 +184,7 @@ declare class AIClient extends ReactQueryNetworkClient {
184
184
  authorization: string;
185
185
  xAccountId?: string | null | undefined;
186
186
  body: import("../api/ai.js").GenericEventRequest[];
187
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, unknown>;
187
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
188
188
  /**
189
189
  * Runs a step of type "fetch" of a quick command.
190
190
  */
@@ -194,7 +194,7 @@ declare class AIClient extends ReactQueryNetworkClient {
194
194
  authorization: string;
195
195
  xAccountId?: string | null | undefined;
196
196
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
197
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").QuickCommandStepFetchResponse>;
197
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandStepFetchResponse>;
198
198
  /**
199
199
  * Remotely runs a step of type "fetch" of a quick command remotely (used when secrets are present).
200
200
  */
@@ -218,7 +218,7 @@ declare class AIClient extends ReactQueryNetworkClient {
218
218
  authorization: string;
219
219
  xAccountId?: string | null | undefined;
220
220
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
221
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, string | QuickCommandPromptResponse2>;
221
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, string | QuickCommandPromptResponse2>;
222
222
  /**
223
223
  * Runs a stream of a step of type "llm" of a quick command.
224
224
  */
@@ -231,7 +231,7 @@ declare class AIClient extends ReactQueryNetworkClient {
231
231
  authorization: string;
232
232
  xAccountId?: string | null | undefined;
233
233
  quickCommandsExecutionRequest: QuickCommandsExecutionRequest;
234
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/ai.js").QuickCommandFinalResultResponse>;
234
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/ai.js").QuickCommandFinalResultResponse>;
235
235
  /**
236
236
  * Adds the resource of type Stack AI to the list of favorites.
237
237
  */
@@ -239,7 +239,7 @@ declare class AIClient extends ReactQueryNetworkClient {
239
239
  stackId: string;
240
240
  authorization: string;
241
241
  xAccountId?: string | null | undefined;
242
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, unknown>;
242
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
243
243
  /**
244
244
  * Removes the resource of type Stack AI from the list of favorites.
245
245
  */
@@ -247,7 +247,7 @@ declare class AIClient extends ReactQueryNetworkClient {
247
247
  stackId: string;
248
248
  authorization: string;
249
249
  xAccountId?: string | null | undefined;
250
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, unknown>;
250
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
251
251
  /**
252
252
  * Updates a Quick Command
253
253
  */
@@ -256,7 +256,7 @@ declare class AIClient extends ReactQueryNetworkClient {
256
256
  authorization: string;
257
257
  xAccountId?: string | null | undefined;
258
258
  quickCommandsUpdateRequest: import("../api/ai.js").QuickCommandsUpdateRequest;
259
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, unknown>;
259
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
260
260
  /**
261
261
  * Adds the resource of type Quick Command to the list of favorites.
262
262
  */
@@ -264,7 +264,7 @@ declare class AIClient extends ReactQueryNetworkClient {
264
264
  slug: string;
265
265
  authorization: string;
266
266
  xAccountId?: string | null | undefined;
267
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, unknown>;
267
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
268
268
  /**
269
269
  * Removes the resource of type Quick Command from the list of favorites.
270
270
  */
@@ -272,7 +272,7 @@ declare class AIClient extends ReactQueryNetworkClient {
272
272
  slug: string;
273
273
  authorization: string;
274
274
  xAccountId?: string | null | undefined;
275
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, unknown>;
275
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, unknown>;
276
276
  private static toolsOfAgent;
277
277
  sendChatMessage(request: FixedChatRequest, minChangeIntervalMS?: number): StreamedJson<ChatResponseWithSteps>;
278
278
  contentDependencies: import("../network/types.js").QueryObject<Omit<{
@@ -280,7 +280,7 @@ declare class AIClient extends ReactQueryNetworkClient {
280
280
  contentId: string;
281
281
  authorization: string;
282
282
  xAccountId?: string | null | undefined;
283
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, FixedDependencyResponse>;
283
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, FixedDependencyResponse>;
284
284
  }
285
285
  export declare const aiClient: AIClient;
286
286
  export {};
@@ -18,7 +18,7 @@ declare class CloudAccountClient extends ReactQueryNetworkClient {
18
18
  $type?: "CustomCloud" | "CloudServices" | undefined;
19
19
  environment?: string | undefined;
20
20
  status?: "Connecting" | "Connected" | "Disconnected" | "Failed" | "Unknown" | undefined;
21
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/cloudAccount.js").PaginatedResourceCloudAccountResponse, "data">;
21
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/cloudAccount.js").PaginatedResourceCloudAccountResponse, "data">;
22
22
  /**
23
23
  * Gets a list of cloud accounts connected to a workspace
24
24
  */
@@ -26,14 +26,14 @@ declare class CloudAccountClient extends ReactQueryNetworkClient {
26
26
  jwtToken: import("../api/cloudAccount.js").JwtToken;
27
27
  accountId?: string | undefined;
28
28
  id: string;
29
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/cloudAccount.js").CloudAccountDetails[]>;
29
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/cloudAccount.js").CloudAccountDetails[]>;
30
30
  /**
31
31
  * Gets the cloud account workflow of a workspace environment
32
32
  */
33
33
  workflowByWorkspace: import("../network/types.js").QueryObject<Omit<{
34
34
  jwtToken: import("../api/cloudAccount.js").JwtToken;
35
35
  workspaceId: string;
36
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/cloudAccount.js").Workflow>;
36
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/cloudAccount.js").Workflow>;
37
37
  /**
38
38
  * Creates a cloud account.
39
39
  */
@@ -51,7 +51,7 @@ declare class CloudAccountClient extends ReactQueryNetworkClient {
51
51
  jwtToken: import("../api/cloudAccount.js").JwtToken;
52
52
  stackspotCustomerIp?: string | undefined;
53
53
  id: string;
54
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/cloudAccount.js").DeleteCloudAccountResponse>;
54
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/cloudAccount.js").DeleteCloudAccountResponse>;
55
55
  /**
56
56
  * Deletes all accounts in a workspace.
57
57
  */
@@ -59,7 +59,7 @@ declare class CloudAccountClient extends ReactQueryNetworkClient {
59
59
  jwtToken: import("../api/cloudAccount.js").JwtToken;
60
60
  stackspotCustomerIp?: string | undefined;
61
61
  workspaceId: string;
62
- }, "authorization" | "jwtToken" | "authorizationHeader"> & {}, import("../api/cloudAccount.js").DeleteCloudAccountResponse>;
62
+ }, "authorization" | "authorizationHeader" | "jwtToken"> & {}, import("../api/cloudAccount.js").DeleteCloudAccountResponse>;
63
63
  /**
64
64
  * Provisions managed accounts in a workspace.
65
65
  */