@stack-spot/portal-network 0.139.1-beta.0 → 0.140.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.
- package/CHANGELOG.md +7 -0
- package/dist/api/agent-tools.d.ts +4 -178
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +2 -98
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/discovery.d.ts +17 -11
- package/dist/api/discovery.d.ts.map +1 -1
- package/dist/api/discovery.js +15 -25
- package/dist/api/discovery.js.map +1 -1
- package/dist/client/agent-tools.d.ts +0 -77
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +1 -134
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +49 -2
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/agent.js +63 -0
- package/dist/client/agent.js.map +1 -1
- package/dist/client/ai.d.ts +0 -7
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +1 -10
- package/dist/client/ai.js.map +1 -1
- package/dist/client/discovery.d.ts +19 -3
- package/dist/client/discovery.d.ts.map +1 -1
- package/dist/client/discovery.js +28 -1
- package/dist/client/discovery.js.map +1 -1
- package/dist/client/types.d.ts +3 -5
- package/dist/client/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/api/agent-tools.ts +4 -306
- package/src/api/discovery.ts +29 -31
- package/src/client/agent-tools.ts +1 -103
- package/src/client/agent.ts +67 -1
- package/src/client/ai.ts +0 -5
- package/src/client/discovery.ts +13 -1
- package/src/client/types.ts +4 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.js","sourceRoot":"","sources":["../../src/client/discovery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,8BAA8B,EAAE,cAAc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ACH;;;;mBAAmB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;WAAA;QAC5E;;WAEG;QACH;;;;mBAAiB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;WAAA;QAChE;;WAEG;QACH;;;;mBAAyB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAC;WAAA;QACxE;;WAEG;QACH;;;;mBAAmB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,oBAAoB,CAAC,CAAC;WAAA;QAChF;;WAEG;QACH;;;;mBAAiB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,sDAAsD,CAAC,CAAC;WAAA;QAChH;;WAEG;QACH;;;;mBAAmB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;WAAA;IAxDjE,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;CAqDF;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAA"}
|
package/dist/client/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RequestOpts } from '@oazapfts/runtime';
|
|
2
2
|
import { AccountScmInfoSaveRequest, AccountScmInfoUpdateRequest, AccountScmStatusResponse, GroupsFromResourceResponse, MembersFromResourceResponse } from '../api/account.js';
|
|
3
|
-
import {
|
|
3
|
+
import { AgentResponse, VisibilityLevel } from '../api/agent.js';
|
|
4
4
|
import { ChatRequest, ChatResponse3, ContentDependencyResponse, ConversationHistoryResponse, ConversationResponse, DependencyResponse } from '../api/ai.js';
|
|
5
5
|
import { ConnectAccountRequestV2, ManagedAccountProvisionRequest } from '../api/cloudAccount.js';
|
|
6
6
|
import { AllocationCostRequest, AllocationCostResponse, ChargePeriod, getAllocationCostFilters, ManagedService, ServiceResource } from '../api/cloudServices.js';
|
|
@@ -294,12 +294,10 @@ export type FixVariables<T extends OazapftsFunction, Fix extends Record<string,
|
|
|
294
294
|
[K in keyof Fix as Fix[K] extends never ? never : K]: Fix[K];
|
|
295
295
|
}, Unpromisify<ReturnType<T>>>;
|
|
296
296
|
export type ReplaceResult<T extends (...args: any[]) => Promise<any>, Fix> = (...args: Parameters<T>) => Promise<Fix>;
|
|
297
|
-
export interface AgentResponseWithBuiltIn extends
|
|
297
|
+
export interface AgentResponseWithBuiltIn extends AgentResponse {
|
|
298
298
|
builtIn?: boolean;
|
|
299
299
|
spaceName?: string;
|
|
300
|
-
conversation_starter?: string[] | null;
|
|
301
|
-
avatar?: string | null | undefined;
|
|
302
300
|
}
|
|
303
|
-
export type AgentVisibilityLevel =
|
|
301
|
+
export type AgentVisibilityLevel = VisibilityLevel | 'BUILT-IN' | 'ALL';
|
|
304
302
|
export {};
|
|
305
303
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/client/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AAC1K,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/client/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AAC1K,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,cA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AC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;AAErH,MAAM,WAAW,wBAAyB,SAAQ,aAAa;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG,UAAU,GAAG,KAAK,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stack-spot/portal-network",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.140.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -56,4 +56,4 @@
|
|
|
56
56
|
"fetch-event-stream": "^0.1.5",
|
|
57
57
|
"lodash": "^4.17.21"
|
|
58
58
|
}
|
|
59
|
-
}
|
|
59
|
+
}
|
package/src/api/agent-tools.ts
CHANGED
|
@@ -45,9 +45,7 @@ export type FunctionParameter = {
|
|
|
45
45
|
/** A list of possible values for the parameter (optional) */
|
|
46
46
|
"enum"?: string[] | null;
|
|
47
47
|
/** A dictionary of properties for the parameter (optional) */
|
|
48
|
-
properties?:
|
|
49
|
-
[key: string]: any;
|
|
50
|
-
} | null;
|
|
48
|
+
properties?: object | null;
|
|
51
49
|
/** A list of required parameters (optional) */
|
|
52
50
|
required?: string[] | null;
|
|
53
51
|
/** Allow arbitrary data of specific typed */
|
|
@@ -75,115 +73,6 @@ export type ExecuteAgentToolRequest = {
|
|
|
75
73
|
export type AgentToolExecutionResponse = {
|
|
76
74
|
result: string;
|
|
77
75
|
};
|
|
78
|
-
export type AgentVisibilityLevelEnum = "built_in";
|
|
79
|
-
export type VisibilityLevelEnum = "account" | "personal" | "shared" | "workspace" | "favorite";
|
|
80
|
-
export type ListAgentResponse = {
|
|
81
|
-
id: string;
|
|
82
|
-
name: string;
|
|
83
|
-
slug: string;
|
|
84
|
-
created_by: string | null;
|
|
85
|
-
visibility_level: string;
|
|
86
|
-
avatar: string | null;
|
|
87
|
-
conversation_starter: string[] | null;
|
|
88
|
-
};
|
|
89
|
-
export type AgentType = "CONVERSATIONAL" | "SINGLE_ANSWER";
|
|
90
|
-
export type SimilarityFunctionEnum = "cosine" | "euclidean" | "dot_product";
|
|
91
|
-
export type KnowledgeSourcesConfigRequest = {
|
|
92
|
-
similarity_function?: SimilarityFunctionEnum | null;
|
|
93
|
-
post_processing?: boolean | null;
|
|
94
|
-
max_number_of_kos?: number | null;
|
|
95
|
-
relevancy_threshold?: number | null;
|
|
96
|
-
knowledge_sources?: string[] | null;
|
|
97
|
-
sealed?: boolean | null;
|
|
98
|
-
};
|
|
99
|
-
export type NewAgentRequest = {
|
|
100
|
-
/** LLM model name */
|
|
101
|
-
model_name?: string | null;
|
|
102
|
-
/** LLM model id */
|
|
103
|
-
model_id?: string | null;
|
|
104
|
-
/** Agent name */
|
|
105
|
-
name: string;
|
|
106
|
-
/** Agent unique slug */
|
|
107
|
-
slug: string;
|
|
108
|
-
/** Agent description */
|
|
109
|
-
description?: string | null;
|
|
110
|
-
/** Agent avatar image */
|
|
111
|
-
avatar?: string | null;
|
|
112
|
-
/** Agent suggested prompt */
|
|
113
|
-
suggested_prompts?: string[];
|
|
114
|
-
/** System prompt */
|
|
115
|
-
system_prompt?: string | null;
|
|
116
|
-
/** Agent type */
|
|
117
|
-
"type": AgentType;
|
|
118
|
-
knowledge_sources_config?: KnowledgeSourcesConfigRequest | null;
|
|
119
|
-
builtin_tools_ids?: string[];
|
|
120
|
-
detail_mode?: boolean;
|
|
121
|
-
structured_output?: string | null;
|
|
122
|
-
llm_settings?: {
|
|
123
|
-
[key: string]: any;
|
|
124
|
-
} | null;
|
|
125
|
-
};
|
|
126
|
-
export type NewAgentResponse = {
|
|
127
|
-
id: string;
|
|
128
|
-
};
|
|
129
|
-
export type SearchAgentsRequest = {
|
|
130
|
-
/** Agent ids to filter for */
|
|
131
|
-
ids: string[];
|
|
132
|
-
};
|
|
133
|
-
export type KnowledgeSourceConfigModel = {
|
|
134
|
-
similarity_function: SimilarityFunctionEnum;
|
|
135
|
-
max_number_of_kos: number;
|
|
136
|
-
relevancy_threshold: number;
|
|
137
|
-
post_processing: boolean;
|
|
138
|
-
knowledge_sources: string[];
|
|
139
|
-
sealed: boolean;
|
|
140
|
-
created_by?: string | null;
|
|
141
|
-
created_at?: string | null;
|
|
142
|
-
updated_by?: string | null;
|
|
143
|
-
updated_at?: string | null;
|
|
144
|
-
};
|
|
145
|
-
export type AgentToolModel = {
|
|
146
|
-
agent_id: string;
|
|
147
|
-
builtin_tool_id: string;
|
|
148
|
-
builtin_toolkit_id?: string | null;
|
|
149
|
-
created_by?: string | null;
|
|
150
|
-
created_at?: string | null;
|
|
151
|
-
updated_by?: string | null;
|
|
152
|
-
updated_at?: string | null;
|
|
153
|
-
};
|
|
154
|
-
export type LlmSettingsModel = {
|
|
155
|
-
property_key?: string | null;
|
|
156
|
-
property_value?: string | null;
|
|
157
|
-
property_type?: string | null;
|
|
158
|
-
agent_id: string;
|
|
159
|
-
created_by?: string | null;
|
|
160
|
-
created_at?: string | null;
|
|
161
|
-
updated_by?: string | null;
|
|
162
|
-
updated_at?: string | null;
|
|
163
|
-
};
|
|
164
|
-
export type AgentModel = {
|
|
165
|
-
id: string;
|
|
166
|
-
name: string;
|
|
167
|
-
slug: string;
|
|
168
|
-
description?: string | null;
|
|
169
|
-
system_prompt: string;
|
|
170
|
-
visibility_level: string;
|
|
171
|
-
avatar?: string | null;
|
|
172
|
-
"type": string;
|
|
173
|
-
conversation_starter?: string[] | null;
|
|
174
|
-
use_only: boolean;
|
|
175
|
-
detail_mode: boolean;
|
|
176
|
-
structured_output?: string | null;
|
|
177
|
-
model_id?: string | null;
|
|
178
|
-
model_name?: string | null;
|
|
179
|
-
knowledge_source_config?: KnowledgeSourceConfigModel | null;
|
|
180
|
-
tools?: AgentToolModel[];
|
|
181
|
-
settings?: LlmSettingsModel[];
|
|
182
|
-
created_by?: string | null;
|
|
183
|
-
created_at?: string | null;
|
|
184
|
-
updated_by?: string | null;
|
|
185
|
-
updated_at?: string | null;
|
|
186
|
-
};
|
|
187
76
|
/**
|
|
188
77
|
* Health Check
|
|
189
78
|
*/
|
|
@@ -198,9 +87,9 @@ export function healthCheckHealthzGet(opts?: Oazapfts.RequestOpts) {
|
|
|
198
87
|
}));
|
|
199
88
|
}
|
|
200
89
|
/**
|
|
201
|
-
*
|
|
90
|
+
* Health Check
|
|
202
91
|
*/
|
|
203
|
-
export function
|
|
92
|
+
export function healthCheckReadyzGet(opts?: Oazapfts.RequestOpts) {
|
|
204
93
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
205
94
|
status: 200;
|
|
206
95
|
data: any;
|
|
@@ -318,9 +207,7 @@ export function listToolsByAgentForSchemaV1AgentsAgentIdToolsSchemaSchemaGet({ a
|
|
|
318
207
|
}, opts?: Oazapfts.RequestOpts) {
|
|
319
208
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
320
209
|
status: 200;
|
|
321
|
-
data: (OpenAiTool |
|
|
322
|
-
[key: string]: any;
|
|
323
|
-
})[];
|
|
210
|
+
data: (OpenAiTool | object)[];
|
|
324
211
|
} | {
|
|
325
212
|
status: 404;
|
|
326
213
|
} | {
|
|
@@ -366,192 +253,3 @@ export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, is
|
|
|
366
253
|
})
|
|
367
254
|
})));
|
|
368
255
|
}
|
|
369
|
-
/**
|
|
370
|
-
* List Agents
|
|
371
|
-
*/
|
|
372
|
-
export function listAgentsV1AgentsGet({ name, slug, visibility, size, page, xAccountId, authorization }: {
|
|
373
|
-
name?: string | null;
|
|
374
|
-
slug?: string | null;
|
|
375
|
-
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
376
|
-
size?: number;
|
|
377
|
-
page?: number;
|
|
378
|
-
xAccountId?: string | null;
|
|
379
|
-
authorization: string;
|
|
380
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
381
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
382
|
-
status: 200;
|
|
383
|
-
data: ListAgentResponse[];
|
|
384
|
-
} | {
|
|
385
|
-
status: 404;
|
|
386
|
-
} | {
|
|
387
|
-
status: 422;
|
|
388
|
-
data: HttpValidationError;
|
|
389
|
-
}>(`/v1/agents${QS.query(QS.explode({
|
|
390
|
-
name,
|
|
391
|
-
slug,
|
|
392
|
-
visibility,
|
|
393
|
-
size,
|
|
394
|
-
page
|
|
395
|
-
}))}`, {
|
|
396
|
-
...opts,
|
|
397
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
398
|
-
"x-account-id": xAccountId,
|
|
399
|
-
authorization
|
|
400
|
-
})
|
|
401
|
-
}));
|
|
402
|
-
}
|
|
403
|
-
/**
|
|
404
|
-
* Create Agent
|
|
405
|
-
*/
|
|
406
|
-
export function createAgentV1AgentsPost({ isPublic, xAccountId, authorization, newAgentRequest }: {
|
|
407
|
-
isPublic?: boolean;
|
|
408
|
-
xAccountId?: string | null;
|
|
409
|
-
authorization: string;
|
|
410
|
-
newAgentRequest: NewAgentRequest;
|
|
411
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
412
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
413
|
-
status: 201;
|
|
414
|
-
data: NewAgentResponse;
|
|
415
|
-
} | {
|
|
416
|
-
status: 404;
|
|
417
|
-
} | {
|
|
418
|
-
status: 422;
|
|
419
|
-
data: HttpValidationError;
|
|
420
|
-
}>(`/v1/agents${QS.query(QS.explode({
|
|
421
|
-
is_public: isPublic
|
|
422
|
-
}))}`, oazapfts.json({
|
|
423
|
-
...opts,
|
|
424
|
-
method: "POST",
|
|
425
|
-
body: newAgentRequest,
|
|
426
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
427
|
-
"x-account-id": xAccountId,
|
|
428
|
-
authorization
|
|
429
|
-
})
|
|
430
|
-
})));
|
|
431
|
-
}
|
|
432
|
-
/**
|
|
433
|
-
* Search Agents
|
|
434
|
-
*/
|
|
435
|
-
export function searchAgentsV1AgentsSearchPost({ xAccountId, authorization, searchAgentsRequest }: {
|
|
436
|
-
xAccountId?: string | null;
|
|
437
|
-
authorization: string;
|
|
438
|
-
searchAgentsRequest: SearchAgentsRequest;
|
|
439
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
440
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
441
|
-
status: 200;
|
|
442
|
-
data: ListAgentResponse[];
|
|
443
|
-
} | {
|
|
444
|
-
status: 404;
|
|
445
|
-
} | {
|
|
446
|
-
status: 422;
|
|
447
|
-
data: HttpValidationError;
|
|
448
|
-
}>("/v1/agents/search", oazapfts.json({
|
|
449
|
-
...opts,
|
|
450
|
-
method: "POST",
|
|
451
|
-
body: searchAgentsRequest,
|
|
452
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
453
|
-
"x-account-id": xAccountId,
|
|
454
|
-
authorization
|
|
455
|
-
})
|
|
456
|
-
})));
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* Get Agent
|
|
460
|
-
*/
|
|
461
|
-
export function getAgentV1AgentsAgentIdGet({ agentId, xAccountId, authorization }: {
|
|
462
|
-
agentId: string;
|
|
463
|
-
xAccountId?: string | null;
|
|
464
|
-
authorization: string;
|
|
465
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
466
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
467
|
-
status: 200;
|
|
468
|
-
data: AgentModel;
|
|
469
|
-
} | {
|
|
470
|
-
status: 404;
|
|
471
|
-
} | {
|
|
472
|
-
status: 422;
|
|
473
|
-
data: HttpValidationError;
|
|
474
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}`, {
|
|
475
|
-
...opts,
|
|
476
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
477
|
-
"x-account-id": xAccountId,
|
|
478
|
-
authorization
|
|
479
|
-
})
|
|
480
|
-
}));
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* Update Agent
|
|
484
|
-
*/
|
|
485
|
-
export function updateAgentV1AgentsAgentIdPut({ agentId }: {
|
|
486
|
-
agentId: string;
|
|
487
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
488
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
489
|
-
status: 200;
|
|
490
|
-
data: any;
|
|
491
|
-
} | {
|
|
492
|
-
status: 404;
|
|
493
|
-
} | {
|
|
494
|
-
status: 422;
|
|
495
|
-
data: HttpValidationError;
|
|
496
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}`, {
|
|
497
|
-
...opts,
|
|
498
|
-
method: "PUT"
|
|
499
|
-
}));
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Delete Agent
|
|
503
|
-
*/
|
|
504
|
-
export function deleteAgentV1AgentsAgentIdDelete({ agentId }: {
|
|
505
|
-
agentId: string;
|
|
506
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
507
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
508
|
-
status: 200;
|
|
509
|
-
data: any;
|
|
510
|
-
} | {
|
|
511
|
-
status: 404;
|
|
512
|
-
} | {
|
|
513
|
-
status: 422;
|
|
514
|
-
data: HttpValidationError;
|
|
515
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}`, {
|
|
516
|
-
...opts,
|
|
517
|
-
method: "DELETE"
|
|
518
|
-
}));
|
|
519
|
-
}
|
|
520
|
-
/**
|
|
521
|
-
* Add Favorite
|
|
522
|
-
*/
|
|
523
|
-
export function addFavoriteV1AgentsAgentIdFavoritePost({ agentId }: {
|
|
524
|
-
agentId: string;
|
|
525
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
526
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
527
|
-
status: 200;
|
|
528
|
-
data: any;
|
|
529
|
-
} | {
|
|
530
|
-
status: 404;
|
|
531
|
-
} | {
|
|
532
|
-
status: 422;
|
|
533
|
-
data: HttpValidationError;
|
|
534
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/favorite`, {
|
|
535
|
-
...opts,
|
|
536
|
-
method: "POST"
|
|
537
|
-
}));
|
|
538
|
-
}
|
|
539
|
-
/**
|
|
540
|
-
* Publish Agent
|
|
541
|
-
*/
|
|
542
|
-
export function publishAgentV1AgentsAgentIdPublishPost({ agentId }: {
|
|
543
|
-
agentId: string;
|
|
544
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
545
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
546
|
-
status: 200;
|
|
547
|
-
data: any;
|
|
548
|
-
} | {
|
|
549
|
-
status: 404;
|
|
550
|
-
} | {
|
|
551
|
-
status: 422;
|
|
552
|
-
data: HttpValidationError;
|
|
553
|
-
}>(`/v1/agents/${encodeURIComponent(agentId)}/publish`, {
|
|
554
|
-
...opts,
|
|
555
|
-
method: "POST"
|
|
556
|
-
}));
|
|
557
|
-
}
|
package/src/api/discovery.ts
CHANGED
|
@@ -28,6 +28,7 @@ export type HypothesisResponse = {
|
|
|
28
28
|
id?: string;
|
|
29
29
|
opportunity?: OpportunityResponse;
|
|
30
30
|
name?: string;
|
|
31
|
+
description?: string;
|
|
31
32
|
"number"?: string;
|
|
32
33
|
status?: "TO_DO" | "PRIORITIZED" | "IN_EXPERIMENTATION" | "VALIDATED" | "DISCARDED" | "CANCELED";
|
|
33
34
|
createdAt?: string;
|
|
@@ -37,6 +38,7 @@ export type HypothesisResponse = {
|
|
|
37
38
|
};
|
|
38
39
|
export type HypothesisUpdateRequest = {
|
|
39
40
|
name?: string;
|
|
41
|
+
description?: string;
|
|
40
42
|
opportunityId?: string;
|
|
41
43
|
status?: string;
|
|
42
44
|
};
|
|
@@ -70,6 +72,7 @@ export type PageResponseHypothesisResponse = {
|
|
|
70
72
|
};
|
|
71
73
|
export type HypothesisCreateRequest = {
|
|
72
74
|
name?: string;
|
|
75
|
+
description?: string;
|
|
73
76
|
opportunityId?: string;
|
|
74
77
|
};
|
|
75
78
|
export type DocumentUploadRequest = {
|
|
@@ -97,6 +100,10 @@ export type DocumentTypeResponse = {
|
|
|
97
100
|
description?: string;
|
|
98
101
|
createdAt?: string;
|
|
99
102
|
};
|
|
103
|
+
export type DocumentDetailContent = {
|
|
104
|
+
hasPreview?: boolean;
|
|
105
|
+
content?: string;
|
|
106
|
+
};
|
|
100
107
|
export type DocumentDetailResponse = {
|
|
101
108
|
id?: string;
|
|
102
109
|
name?: string;
|
|
@@ -105,7 +112,7 @@ export type DocumentDetailResponse = {
|
|
|
105
112
|
origin?: "AI" | "UPLOAD";
|
|
106
113
|
createdAt?: string;
|
|
107
114
|
createdBy?: string;
|
|
108
|
-
|
|
115
|
+
details?: DocumentDetailContent;
|
|
109
116
|
};
|
|
110
117
|
export type DocumentPatchRequest = {
|
|
111
118
|
file?: Blob;
|
|
@@ -158,6 +165,7 @@ export type DocumentSummaryResponse = {
|
|
|
158
165
|
name?: string;
|
|
159
166
|
description?: string;
|
|
160
167
|
origin?: "AI" | "UPLOAD";
|
|
168
|
+
hasMultipleHypotheses?: boolean;
|
|
161
169
|
createdAt?: string;
|
|
162
170
|
createdBy?: string;
|
|
163
171
|
};
|
|
@@ -184,18 +192,14 @@ export function findHypothesisById({ hypothesisId }: {
|
|
|
184
192
|
...opts
|
|
185
193
|
}));
|
|
186
194
|
}
|
|
187
|
-
export function updateHypothesis({ hypothesisId,
|
|
195
|
+
export function updateHypothesis({ hypothesisId, hypothesisUpdateRequest }: {
|
|
188
196
|
hypothesisId: string;
|
|
189
|
-
authorization: string;
|
|
190
197
|
hypothesisUpdateRequest: HypothesisUpdateRequest;
|
|
191
198
|
}, opts?: Oazapfts.RequestOpts) {
|
|
192
199
|
return oazapfts.ok(oazapfts.fetchText(`/v1/hypotheses/${encodeURIComponent(hypothesisId)}`, oazapfts.json({
|
|
193
200
|
...opts,
|
|
194
201
|
method: "PUT",
|
|
195
|
-
body: hypothesisUpdateRequest
|
|
196
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
197
|
-
Authorization: authorization
|
|
198
|
-
})
|
|
202
|
+
body: hypothesisUpdateRequest
|
|
199
203
|
})));
|
|
200
204
|
}
|
|
201
205
|
export function deleteHypothesisById({ hypothesisId }: {
|
|
@@ -228,8 +232,7 @@ export function listHypothesis({ filter, page, size, sort, direction, status }:
|
|
|
228
232
|
...opts
|
|
229
233
|
}));
|
|
230
234
|
}
|
|
231
|
-
export function createHypothesis({
|
|
232
|
-
authorization: string;
|
|
235
|
+
export function createHypothesis({ hypothesisCreateRequest }: {
|
|
233
236
|
hypothesisCreateRequest: HypothesisCreateRequest;
|
|
234
237
|
}, opts?: Oazapfts.RequestOpts) {
|
|
235
238
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -238,38 +241,27 @@ export function createHypothesis({ authorization, hypothesisCreateRequest }: {
|
|
|
238
241
|
}>("/v1/hypotheses", oazapfts.json({
|
|
239
242
|
...opts,
|
|
240
243
|
method: "POST",
|
|
241
|
-
body: hypothesisCreateRequest
|
|
242
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
243
|
-
Authorization: authorization
|
|
244
|
-
})
|
|
244
|
+
body: hypothesisCreateRequest
|
|
245
245
|
})));
|
|
246
246
|
}
|
|
247
|
-
export function upload({ hypothesisId,
|
|
247
|
+
export function upload({ hypothesisId, documentUploadRequest }: {
|
|
248
248
|
hypothesisId: string;
|
|
249
|
-
authorization: string;
|
|
250
249
|
documentUploadRequest?: DocumentUploadRequest;
|
|
251
250
|
}, opts?: Oazapfts.RequestOpts) {
|
|
252
251
|
return oazapfts.ok(oazapfts.fetchText(`/v1/documents/hypotheses/${encodeURIComponent(hypothesisId)}/upload`, oazapfts.multipart({
|
|
253
252
|
...opts,
|
|
254
253
|
method: "POST",
|
|
255
|
-
body: documentUploadRequest
|
|
256
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
257
|
-
Authorization: authorization
|
|
258
|
-
})
|
|
254
|
+
body: documentUploadRequest
|
|
259
255
|
})));
|
|
260
256
|
}
|
|
261
|
-
export function attach({ hypothesisId,
|
|
257
|
+
export function attach({ hypothesisId, documentAttachRequest }: {
|
|
262
258
|
hypothesisId: string;
|
|
263
|
-
authorization: string;
|
|
264
259
|
documentAttachRequest: DocumentAttachRequest;
|
|
265
260
|
}, opts?: Oazapfts.RequestOpts) {
|
|
266
261
|
return oazapfts.ok(oazapfts.fetchText(`/v1/documents/hypotheses/${encodeURIComponent(hypothesisId)}/attach`, oazapfts.json({
|
|
267
262
|
...opts,
|
|
268
263
|
method: "POST",
|
|
269
|
-
body: documentAttachRequest
|
|
270
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
271
|
-
Authorization: authorization
|
|
272
|
-
})
|
|
264
|
+
body: documentAttachRequest
|
|
273
265
|
})));
|
|
274
266
|
}
|
|
275
267
|
export function getById({ documentId }: {
|
|
@@ -282,18 +274,14 @@ export function getById({ documentId }: {
|
|
|
282
274
|
...opts
|
|
283
275
|
}));
|
|
284
276
|
}
|
|
285
|
-
export function update({ documentId,
|
|
277
|
+
export function update({ documentId, documentPatchRequest }: {
|
|
286
278
|
documentId: string;
|
|
287
|
-
authorization: string;
|
|
288
279
|
documentPatchRequest?: DocumentPatchRequest;
|
|
289
280
|
}, opts?: Oazapfts.RequestOpts) {
|
|
290
281
|
return oazapfts.ok(oazapfts.fetchText(`/v1/documents/${encodeURIComponent(documentId)}`, oazapfts.multipart({
|
|
291
282
|
...opts,
|
|
292
283
|
method: "PATCH",
|
|
293
|
-
body: documentPatchRequest
|
|
294
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
295
|
-
Authorization: authorization
|
|
296
|
-
})
|
|
284
|
+
body: documentPatchRequest
|
|
297
285
|
})));
|
|
298
286
|
}
|
|
299
287
|
export function list({ filter, page, size, sort, direction }: {
|
|
@@ -346,6 +334,16 @@ export function listAllDocumentsWithHypotheses({ filter, page, size, sort, direc
|
|
|
346
334
|
...opts
|
|
347
335
|
}));
|
|
348
336
|
}
|
|
337
|
+
export function download({ documentId }: {
|
|
338
|
+
documentId: string;
|
|
339
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
340
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
341
|
+
status: 200;
|
|
342
|
+
data: Blob;
|
|
343
|
+
}>(`/v1/documents/${encodeURIComponent(documentId)}/download`, {
|
|
344
|
+
...opts
|
|
345
|
+
}));
|
|
346
|
+
}
|
|
349
347
|
export function list1({ filter, page, size, sort, direction, hypothesisId }: {
|
|
350
348
|
filter?: string;
|
|
351
349
|
page?: number;
|