@withone/platform-perplexity 0.0.0-stage → 0.1.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/README.md +64 -2
- package/banner.svg +11 -0
- package/dist/index.d.mts +4071 -0
- package/dist/index.d.ts +4071 -0
- package/dist/index.js +358 -0
- package/dist/index.mjs +304 -0
- package/fingerprint.json +1 -0
- package/package.json +33 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
addSkillRevision: () => addSkillRevision,
|
|
24
|
+
answerQuestions: () => answerQuestions,
|
|
25
|
+
cancelAgentResponse: () => cancelAgentResponse,
|
|
26
|
+
cancelBatch: () => cancelBatch,
|
|
27
|
+
createAgentResponse: () => createAgentResponse,
|
|
28
|
+
createAsyncChatCompletionSonar: () => createAsyncChatCompletionSonar,
|
|
29
|
+
createBatch: () => createBatch,
|
|
30
|
+
createChatCompletion: () => createChatCompletion,
|
|
31
|
+
createContextualizedEmbeddings: () => createContextualizedEmbeddings,
|
|
32
|
+
createEmbeddings: () => createEmbeddings,
|
|
33
|
+
createSkill: () => createSkill,
|
|
34
|
+
deleteFile: () => deleteFile,
|
|
35
|
+
deleteSkill: () => deleteSkill,
|
|
36
|
+
downloadAgentResponseFile: () => downloadAgentResponseFile,
|
|
37
|
+
downloadFileContent: () => downloadFileContent,
|
|
38
|
+
getAsyncChatCompletionResponse: () => getAsyncChatCompletionResponse,
|
|
39
|
+
getSkill: () => getSkill,
|
|
40
|
+
getSkillDownloadUrl: () => getSkillDownloadUrl,
|
|
41
|
+
listAsyncChatCompletionsAuthenticatedUser: () => listAsyncChatCompletionsAuthenticatedUser,
|
|
42
|
+
listAvailableAgentApiModels: () => listAvailableAgentApiModels,
|
|
43
|
+
listBatches: () => listBatches,
|
|
44
|
+
listFilesProducedAgentResponse: () => listFilesProducedAgentResponse,
|
|
45
|
+
listOrganizationFiles: () => listOrganizationFiles,
|
|
46
|
+
listSkills: () => listSkills,
|
|
47
|
+
listSkillsRevisions: () => listSkillsRevisions,
|
|
48
|
+
retrieveAgentResponse: () => retrieveAgentResponse,
|
|
49
|
+
retrieveBatch: () => retrieveBatch,
|
|
50
|
+
retrieveFile: () => retrieveFile,
|
|
51
|
+
searchWeb: () => searchWeb,
|
|
52
|
+
uploadBatchInputFile: () => uploadBatchInputFile
|
|
53
|
+
});
|
|
54
|
+
module.exports = __toCommonJS(src_exports);
|
|
55
|
+
var import_codegen = require("@withone/sdk/codegen");
|
|
56
|
+
var __createEmbeddingsRouting = { "routes": [["dimensions", "body"], ["encoding_format", "body"], ["input", "body"], ["model", "body"]], "requiredParts": ["body"] };
|
|
57
|
+
function createEmbeddings(input) {
|
|
58
|
+
return new import_codegen.Action({
|
|
59
|
+
systemId: "conn_mod_def::GJ6CZdszRmI::5QKcMrnZSe6MnnVIKtksZQ",
|
|
60
|
+
method: "POST",
|
|
61
|
+
path: "/v1/embeddings",
|
|
62
|
+
...(0, import_codegen.routeInput)(input, __createEmbeddingsRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
var __getAsyncChatCompletionResponseRouting = { "routes": [["apiRequest", "path"]], "requiredParts": ["path"] };
|
|
66
|
+
function getAsyncChatCompletionResponse(input) {
|
|
67
|
+
return new import_codegen.Action({
|
|
68
|
+
systemId: "conn_mod_def::GJ6CZpCyaCE::92w3q2h1RBy0zJ6NmDUWRg",
|
|
69
|
+
method: "GET",
|
|
70
|
+
path: "/v1/async/sonar/{{apiRequest}}",
|
|
71
|
+
...(0, import_codegen.routeInput)(input, __getAsyncChatCompletionResponseRouting, { "headers": { "Accept": "application/json" } })
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
var __searchWebRouting = { "routes": [["country", "body"], ["last_updated_after_filter", "body"], ["last_updated_before_filter", "body"], ["max_results", "body"], ["max_tokens", "body"], ["max_tokens_per_page", "body"], ["query", "body"], ["search_after_date_filter", "body"], ["search_before_date_filter", "body"], ["search_domain_filter", "body"], ["search_language_filter", "body"], ["search_recency_filter", "body"]], "requiredParts": ["body"] };
|
|
75
|
+
function searchWeb(input) {
|
|
76
|
+
return new import_codegen.Action({
|
|
77
|
+
systemId: "conn_mod_def::GJ6CZpg0YYw::53LshJC5TNOM_Bv6M_ptHw",
|
|
78
|
+
method: "POST",
|
|
79
|
+
path: "/search",
|
|
80
|
+
...(0, import_codegen.routeInput)(input, __searchWebRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
var __listAsyncChatCompletionsAuthenticatedUserRouting = { "routes": [], "requiredParts": [] };
|
|
84
|
+
function listAsyncChatCompletionsAuthenticatedUser(input) {
|
|
85
|
+
return new import_codegen.Action({
|
|
86
|
+
systemId: "conn_mod_def::GJ6CZphdHPE::77KKEaKnSkmhEM2ynmq16A",
|
|
87
|
+
method: "GET",
|
|
88
|
+
path: "/v1/async/sonar",
|
|
89
|
+
...(0, import_codegen.routeInput)(input, __listAsyncChatCompletionsAuthenticatedUserRouting, { "headers": { "Accept": "application/json" } })
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
var __createContextualizedEmbeddingsRouting = { "routes": [["dimensions", "body"], ["encoding_format", "body"], ["input", "body"], ["model", "body"]], "requiredParts": ["body"] };
|
|
93
|
+
function createContextualizedEmbeddings(input) {
|
|
94
|
+
return new import_codegen.Action({
|
|
95
|
+
systemId: "conn_mod_def::GJ6CZg7PP6o::SZxilv2RT0GHpYxYECfmgQ",
|
|
96
|
+
method: "POST",
|
|
97
|
+
path: "/v1/contextualizedembeddings",
|
|
98
|
+
...(0, import_codegen.routeInput)(input, __createContextualizedEmbeddingsRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
var __createAgentResponseRouting = { "routes": [["body", "body", null], ["headers", "headers", null]], "requiredParts": [] };
|
|
102
|
+
function createAgentResponse(input) {
|
|
103
|
+
return new import_codegen.Action({
|
|
104
|
+
systemId: "conn_mod_def::GJ6CZd-ZY-8::3LNxtXrfQAqRFKo2zDUT5A",
|
|
105
|
+
method: "POST",
|
|
106
|
+
path: "/v1/agent",
|
|
107
|
+
...(0, import_codegen.routeInput)(input, __createAgentResponseRouting, { "headers": { "Content-Type": "application/json" } })
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
var __createChatCompletionRouting = { "routes": [["disable_search", "body"], ["enable_search_classifier", "body"], ["image_domain_filter", "body"], ["image_format_filter", "body"], ["language_preference", "body"], ["last_updated_after_filter", "body"], ["last_updated_before_filter", "body"], ["max_tokens", "body"], ["messages", "body"], ["model", "body"], ["reasoning_effort", "body"], ["response_format", "body"], ["return_images", "body"], ["return_related_questions", "body"], ["search_after_date_filter", "body"], ["search_before_date_filter", "body"], ["search_domain_filter", "body"], ["search_language_filter", "body"], ["search_mode", "body"], ["search_recency_filter", "body"], ["stop", "body"], ["stream", "body"], ["stream_mode", "body"], ["temperature", "body"], ["top_p", "body"], ["web_search_options", "body"]], "requiredParts": ["body"] };
|
|
111
|
+
function createChatCompletion(input) {
|
|
112
|
+
return new import_codegen.Action({
|
|
113
|
+
systemId: "conn_mod_def::GJ6CZeTvPJc::zmkwnSM8S6egtsvqG96MKQ",
|
|
114
|
+
method: "POST",
|
|
115
|
+
path: "/v1/sonar",
|
|
116
|
+
...(0, import_codegen.routeInput)(input, __createChatCompletionRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
var __createAsyncChatCompletionSonarRouting = { "routes": [["idempotency_key", "body"], ["request", "body"]], "requiredParts": ["body"] };
|
|
120
|
+
function createAsyncChatCompletionSonar(input) {
|
|
121
|
+
return new import_codegen.Action({
|
|
122
|
+
systemId: "conn_mod_def::GJ6CZhlw03k::e46CEqjNTEqKVz-hX2SWUQ",
|
|
123
|
+
method: "POST",
|
|
124
|
+
path: "/async/sonar",
|
|
125
|
+
...(0, import_codegen.routeInput)(input, __createAsyncChatCompletionSonarRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
var __downloadFileContentRouting = { "routes": [["fileId", "path"]], "requiredParts": ["path"] };
|
|
129
|
+
function downloadFileContent(input) {
|
|
130
|
+
return new import_codegen.Action({
|
|
131
|
+
systemId: "conn_mod_def::GOQ4Cvj6LtA::4dW3DoZhRoiAdi4PgsFkow",
|
|
132
|
+
method: "GET",
|
|
133
|
+
path: "/v1/files/{{fileId}}/content",
|
|
134
|
+
...(0, import_codegen.routeInput)(input, __downloadFileContentRouting, { "headers": { "Accept": "application/octet-stream" } })
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
var __deleteFileRouting = { "routes": [["fileId", "path"]], "requiredParts": ["path"] };
|
|
138
|
+
function deleteFile(input) {
|
|
139
|
+
return new import_codegen.Action({
|
|
140
|
+
systemId: "conn_mod_def::GOQ4CvkDEEA::mgo1j6gNQ3KCkFZENFv7MA",
|
|
141
|
+
method: "DELETE",
|
|
142
|
+
path: "/v1/files/{{fileId}}",
|
|
143
|
+
...(0, import_codegen.routeInput)(input, __deleteFileRouting, { "headers": { "Accept": "application/json" } })
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
var __cancelBatchRouting = { "routes": [["batchId", "path"]], "requiredParts": ["path"] };
|
|
147
|
+
function cancelBatch(input) {
|
|
148
|
+
return new import_codegen.Action({
|
|
149
|
+
systemId: "conn_mod_def::GOQ4Cvo0xfg::i2gO9cmgT7GY1AwJPA0g8A",
|
|
150
|
+
method: "POST",
|
|
151
|
+
path: "/v1/batches/{{batchId}}/cancel",
|
|
152
|
+
...(0, import_codegen.routeInput)(input, __cancelBatchRouting, { "headers": { "Accept": "application/json" } })
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
var __createBatchRouting = { "routes": [["completion_window", "body"], ["input_file_id", "body"], ["metadata", "body"], ["headers", "headers", null]], "requiredParts": ["body"] };
|
|
156
|
+
function createBatch(input) {
|
|
157
|
+
return new import_codegen.Action({
|
|
158
|
+
systemId: "conn_mod_def::GOQ4Cvwn-tg::U4xxnqWXRx6MfT8y3dns8g",
|
|
159
|
+
method: "POST",
|
|
160
|
+
path: "/v1/batches",
|
|
161
|
+
...(0, import_codegen.routeInput)(input, __createBatchRouting, { "body": { "endpoint": "/v1/responses" }, "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
var __listBatchesRouting = { "routes": [["after_id", "query"], ["limit", "query"]], "requiredParts": [] };
|
|
165
|
+
function listBatches(input) {
|
|
166
|
+
return new import_codegen.Action({
|
|
167
|
+
systemId: "conn_mod_def::GOQ4Cv6q_Dg::K7rPnHKGRIm35BQqDikVXg",
|
|
168
|
+
method: "GET",
|
|
169
|
+
path: "/v1/batches",
|
|
170
|
+
...(0, import_codegen.routeInput)(input, __listBatchesRouting, { "headers": { "Accept": "application/json" } })
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
var __retrieveBatchRouting = { "routes": [["batchId", "path"]], "requiredParts": ["path"] };
|
|
174
|
+
function retrieveBatch(input) {
|
|
175
|
+
return new import_codegen.Action({
|
|
176
|
+
systemId: "conn_mod_def::GOQ4C2r7VUA::KPYnRbCSRaOY2MXu0W1CAg",
|
|
177
|
+
method: "GET",
|
|
178
|
+
path: "/v1/batches/{{batchId}}",
|
|
179
|
+
...(0, import_codegen.routeInput)(input, __retrieveBatchRouting, { "headers": { "Accept": "application/json" } })
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
var __retrieveFileRouting = { "routes": [["fileId", "path"]], "requiredParts": ["path"] };
|
|
183
|
+
function retrieveFile(input) {
|
|
184
|
+
return new import_codegen.Action({
|
|
185
|
+
systemId: "conn_mod_def::GOQ4C298Pcg::SWXBuEhRS--8ACQW8_RMCw",
|
|
186
|
+
method: "GET",
|
|
187
|
+
path: "/v1/files/{{fileId}}",
|
|
188
|
+
...(0, import_codegen.routeInput)(input, __retrieveFileRouting, { "headers": { "Accept": "application/json" } })
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
var __answerQuestionsRouting = { "routes": [["model", "body"], ["questions", "body"], ["state", "body"]], "requiredParts": ["body"] };
|
|
192
|
+
function answerQuestions(input) {
|
|
193
|
+
return new import_codegen.Action({
|
|
194
|
+
systemId: "conn_mod_def::GOQ4C3RnlGg::ftX2lIFDQVSYsgMYEpB4hw",
|
|
195
|
+
method: "POST",
|
|
196
|
+
path: "/v1/decisions",
|
|
197
|
+
...(0, import_codegen.routeInput)(input, __answerQuestionsRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
var __uploadBatchInputFileRouting = { "routes": [["file", "body"], ["purpose", "body"]], "requiredParts": ["body"] };
|
|
201
|
+
function uploadBatchInputFile(input) {
|
|
202
|
+
return new import_codegen.Action({
|
|
203
|
+
systemId: "conn_mod_def::GOQ4C3-c16g::ip7Zrl7dS0GxYogF8tkVnw",
|
|
204
|
+
method: "POST",
|
|
205
|
+
path: "/v1/files",
|
|
206
|
+
...(0, import_codegen.routeInput)(input, __uploadBatchInputFileRouting, { "headers": { "Accept": "application/json", "Content-Type": "multipart/form-data" } })
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
var __listOrganizationFilesRouting = { "routes": [["after_id", "query"], ["limit", "query"], ["order", "query"], ["purpose", "query"]], "requiredParts": [] };
|
|
210
|
+
function listOrganizationFiles(input) {
|
|
211
|
+
return new import_codegen.Action({
|
|
212
|
+
systemId: "conn_mod_def::GOQ4C4ADJxA::GjuOjehzSNy9beABVaA0zQ",
|
|
213
|
+
method: "GET",
|
|
214
|
+
path: "/v1/files",
|
|
215
|
+
...(0, import_codegen.routeInput)(input, __listOrganizationFilesRouting, { "headers": { "Accept": "application/json" } })
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
var __listAvailableAgentApiModelsRouting = { "routes": [], "requiredParts": [] };
|
|
219
|
+
function listAvailableAgentApiModels(input) {
|
|
220
|
+
return new import_codegen.Action({
|
|
221
|
+
systemId: "conn_mod_def::GOQ4C_mphGA::NM3qTBtiRKKKrFiCZw5WlA",
|
|
222
|
+
method: "GET",
|
|
223
|
+
path: "/v1/models",
|
|
224
|
+
...(0, import_codegen.routeInput)(input, __listAvailableAgentApiModelsRouting, { "headers": { "Accept": "application/json" } })
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
var __cancelAgentResponseRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
228
|
+
function cancelAgentResponse(input) {
|
|
229
|
+
return new import_codegen.Action({
|
|
230
|
+
systemId: "conn_mod_def::GOQ4C_ow__g::-HDfrxXrRLKWMZR_WKA_nA",
|
|
231
|
+
method: "POST",
|
|
232
|
+
path: "/v1/agent/{{id}}/cancel",
|
|
233
|
+
...(0, import_codegen.routeInput)(input, __cancelAgentResponseRouting, { "headers": { "Accept": "application/json" } })
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
var __downloadAgentResponseFileRouting = { "routes": [["fileId", "path"], ["id", "path"]], "requiredParts": ["path"] };
|
|
237
|
+
function downloadAgentResponseFile(input) {
|
|
238
|
+
return new import_codegen.Action({
|
|
239
|
+
systemId: "conn_mod_def::GOQ4C_1ULUA::GpV9-iA0SJmqaAjef6JzmQ",
|
|
240
|
+
method: "GET",
|
|
241
|
+
path: "/v1/agent/{{id}}/files/{{fileId}}/content",
|
|
242
|
+
...(0, import_codegen.routeInput)(input, __downloadAgentResponseFileRouting, { "headers": { "Accept": "application/octet-stream" } })
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
var __listFilesProducedAgentResponseRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
246
|
+
function listFilesProducedAgentResponse(input) {
|
|
247
|
+
return new import_codegen.Action({
|
|
248
|
+
systemId: "conn_mod_def::GOQ4DAEIZ1g::LnDZak9-QIiiuJCLWddVwg",
|
|
249
|
+
method: "GET",
|
|
250
|
+
path: "/v1/agent/{{id}}/files",
|
|
251
|
+
...(0, import_codegen.routeInput)(input, __listFilesProducedAgentResponseRouting, { "headers": { "Accept": "application/json" } })
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
var __retrieveAgentResponseRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
|
|
255
|
+
function retrieveAgentResponse(input) {
|
|
256
|
+
return new import_codegen.Action({
|
|
257
|
+
systemId: "conn_mod_def::GOQ4DAutPfA::zBfHj2pfT4mAb_sPwyGRIw",
|
|
258
|
+
method: "GET",
|
|
259
|
+
path: "/v1/agent/{{id}}",
|
|
260
|
+
...(0, import_codegen.routeInput)(input, __retrieveAgentResponseRouting, { "headers": { "Accept": "application/json" } })
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
var __getSkillRouting = { "routes": [["skillId", "path"], ["revision", "query"]], "requiredParts": ["path"] };
|
|
264
|
+
function getSkill(input) {
|
|
265
|
+
return new import_codegen.Action({
|
|
266
|
+
systemId: "conn_mod_def::GOQ4DIN3eKA::yhjbogK_SHWQZIhg-SoceQ",
|
|
267
|
+
method: "GET",
|
|
268
|
+
path: "/v1/skills/{{skillId}}",
|
|
269
|
+
...(0, import_codegen.routeInput)(input, __getSkillRouting, { "headers": { "Accept": "application/json" } })
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
var __createSkillRouting = { "routes": [["body", "body", null]], "requiredParts": [] };
|
|
273
|
+
function createSkill(input) {
|
|
274
|
+
return new import_codegen.Action({
|
|
275
|
+
systemId: "conn_mod_def::GOQ4DIbW82g::sDPpYm1SRS--29tChlbS8Q",
|
|
276
|
+
method: "POST",
|
|
277
|
+
path: "/v1/skills",
|
|
278
|
+
...(0, import_codegen.routeInput)(input, __createSkillRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
var __deleteSkillRouting = { "routes": [["skillId", "path"], ["expected_revision", "query"]], "requiredParts": ["path", "query"] };
|
|
282
|
+
function deleteSkill(input) {
|
|
283
|
+
return new import_codegen.Action({
|
|
284
|
+
systemId: "conn_mod_def::GOQ4DIr6ahA::g_T7ajOaRJiWdwnyT-FW1w",
|
|
285
|
+
method: "DELETE",
|
|
286
|
+
path: "/v1/skills/{{skillId}}",
|
|
287
|
+
...(0, import_codegen.routeInput)(input, __deleteSkillRouting, { "headers": { "Accept": "application/json" } })
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
var __addSkillRevisionRouting = { "routes": [["skillId", "path"], ["expected_revision", "query"], ["body", "body", null]], "requiredParts": ["path", "query"] };
|
|
291
|
+
function addSkillRevision(input) {
|
|
292
|
+
return new import_codegen.Action({
|
|
293
|
+
systemId: "conn_mod_def::GOQ4DJZcdig::YyfJSqHhRQ28MhSJ5ZrWIw",
|
|
294
|
+
method: "PUT",
|
|
295
|
+
path: "/v1/skills/{{skillId}}",
|
|
296
|
+
...(0, import_codegen.routeInput)(input, __addSkillRevisionRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
var __getSkillDownloadUrlRouting = { "routes": [["skillId", "path"], ["revision", "query"]], "requiredParts": ["path"] };
|
|
300
|
+
function getSkillDownloadUrl(input) {
|
|
301
|
+
return new import_codegen.Action({
|
|
302
|
+
systemId: "conn_mod_def::GOQ4DJ1-dzA::KdBX1BYRQvaANmBsnzSnhw",
|
|
303
|
+
method: "GET",
|
|
304
|
+
path: "/v1/skills/{{skillId}}/download",
|
|
305
|
+
...(0, import_codegen.routeInput)(input, __getSkillDownloadUrlRouting, { "headers": { "Accept": "application/json" } })
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
var __listSkillsRouting = { "routes": [["limit", "query"], ["page_token", "query"]], "requiredParts": [] };
|
|
309
|
+
function listSkills(input) {
|
|
310
|
+
return new import_codegen.Action({
|
|
311
|
+
systemId: "conn_mod_def::GOQ4DRK3CoA::ISxLnkcDQQGiA-6BuB4_Ag",
|
|
312
|
+
method: "GET",
|
|
313
|
+
path: "/v1/skills",
|
|
314
|
+
...(0, import_codegen.routeInput)(input, __listSkillsRouting, { "headers": { "Accept": "application/json" } })
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
var __listSkillsRevisionsRouting = { "routes": [["skillId", "path"], ["limit", "query"], ["page_token", "query"]], "requiredParts": ["path"] };
|
|
318
|
+
function listSkillsRevisions(input) {
|
|
319
|
+
return new import_codegen.Action({
|
|
320
|
+
systemId: "conn_mod_def::GOQ4DUG-wng::WtvnvCI2RZ-uo9uDz5acFw",
|
|
321
|
+
method: "GET",
|
|
322
|
+
path: "/v1/skills/{{skillId}}/revisions",
|
|
323
|
+
...(0, import_codegen.routeInput)(input, __listSkillsRevisionsRouting, { "headers": { "Accept": "application/json" } })
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
327
|
+
0 && (module.exports = {
|
|
328
|
+
addSkillRevision,
|
|
329
|
+
answerQuestions,
|
|
330
|
+
cancelAgentResponse,
|
|
331
|
+
cancelBatch,
|
|
332
|
+
createAgentResponse,
|
|
333
|
+
createAsyncChatCompletionSonar,
|
|
334
|
+
createBatch,
|
|
335
|
+
createChatCompletion,
|
|
336
|
+
createContextualizedEmbeddings,
|
|
337
|
+
createEmbeddings,
|
|
338
|
+
createSkill,
|
|
339
|
+
deleteFile,
|
|
340
|
+
deleteSkill,
|
|
341
|
+
downloadAgentResponseFile,
|
|
342
|
+
downloadFileContent,
|
|
343
|
+
getAsyncChatCompletionResponse,
|
|
344
|
+
getSkill,
|
|
345
|
+
getSkillDownloadUrl,
|
|
346
|
+
listAsyncChatCompletionsAuthenticatedUser,
|
|
347
|
+
listAvailableAgentApiModels,
|
|
348
|
+
listBatches,
|
|
349
|
+
listFilesProducedAgentResponse,
|
|
350
|
+
listOrganizationFiles,
|
|
351
|
+
listSkills,
|
|
352
|
+
listSkillsRevisions,
|
|
353
|
+
retrieveAgentResponse,
|
|
354
|
+
retrieveBatch,
|
|
355
|
+
retrieveFile,
|
|
356
|
+
searchWeb,
|
|
357
|
+
uploadBatchInputFile
|
|
358
|
+
});
|