windmill-client 1.185.0 → 1.186.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/dist/core/OpenAPI.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -2
- package/dist/models/FlowModule.d.ts +2 -0
- package/dist/services/AppService.d.ts +3 -3
- package/dist/services/AppService.js +3 -3
- package/dist/services/FlowService.d.ts +4 -4
- package/dist/services/FlowService.js +4 -4
- package/dist/services/IntegrationService.d.ts +16 -0
- package/dist/services/IntegrationService.js +22 -0
- package/dist/services/JobService.d.ts +5 -5
- package/dist/services/JobService.js +5 -5
- package/dist/services/RawAppService.d.ts +2 -2
- package/dist/services/RawAppService.js +2 -2
- package/dist/services/ResourceService.d.ts +5 -13
- package/dist/services/ResourceService.js +3 -14
- package/dist/services/ScriptService.d.ts +45 -22
- package/dist/services/ScriptService.js +22 -16
- package/package.json +1 -1
package/dist/core/OpenAPI.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -134,6 +134,7 @@ export { FolderService } from './services/FolderService';
|
|
|
134
134
|
export { GranularAclService } from './services/GranularAclService';
|
|
135
135
|
export { GroupService } from './services/GroupService';
|
|
136
136
|
export { InputService } from './services/InputService';
|
|
137
|
+
export { IntegrationService } from './services/IntegrationService';
|
|
137
138
|
export { JobService } from './services/JobService';
|
|
138
139
|
export { OauthService } from './services/OauthService';
|
|
139
140
|
export { RawAppService } from './services/RawAppService';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.getState = exports.setState = exports.getResumeUrls = void 0;
|
|
3
|
+
exports.getResource = exports.setVariable = exports.getVariable = exports.setClient = exports.WorkspaceService = exports.WorkerService = exports.VariableService = exports.UserService = exports.SettingsService = exports.SettingService = exports.ScriptService = exports.ScheduleService = exports.ResourceService = exports.RawAppService = exports.OauthService = exports.JobService = exports.IntegrationService = exports.InputService = exports.GroupService = exports.GranularAclService = exports.FolderService = exports.FlowService = exports.FavoriteService = exports.DraftService = exports.ConfigService = exports.CaptureService = exports.AuditService = exports.AppService = exports.AdminService = exports.Script = exports.RunnableType = exports.RawScript = exports.QueuedJob = exports.Preview = exports.Policy = exports.NewScript = exports.MainArgSignature = exports.ListableApp = exports.Job = exports.Http = exports.GlobalUserInfo = exports.FlowStatusModule = exports.CompletedJob = exports.AuditLog = exports.AppWithLastVersion = exports.ActionKind = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
|
|
4
|
+
exports.getState = exports.setState = exports.getResumeUrls = exports.setResource = void 0;
|
|
5
5
|
/* generated using openapi-typescript-codegen -- do no edit */
|
|
6
6
|
/* istanbul ignore file */
|
|
7
7
|
/* tslint:disable */
|
|
@@ -71,6 +71,8 @@ var GroupService_1 = require("./services/GroupService");
|
|
|
71
71
|
Object.defineProperty(exports, "GroupService", { enumerable: true, get: function () { return GroupService_1.GroupService; } });
|
|
72
72
|
var InputService_1 = require("./services/InputService");
|
|
73
73
|
Object.defineProperty(exports, "InputService", { enumerable: true, get: function () { return InputService_1.InputService; } });
|
|
74
|
+
var IntegrationService_1 = require("./services/IntegrationService");
|
|
75
|
+
Object.defineProperty(exports, "IntegrationService", { enumerable: true, get: function () { return IntegrationService_1.IntegrationService; } });
|
|
74
76
|
var JobService_1 = require("./services/JobService");
|
|
75
77
|
Object.defineProperty(exports, "JobService", { enumerable: true, get: function () { return JobService_1.JobService; } });
|
|
76
78
|
var OauthService_1 = require("./services/OauthService");
|
|
@@ -5,7 +5,7 @@ import type { Policy } from '../models/Policy';
|
|
|
5
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
6
|
export declare class AppService {
|
|
7
7
|
/**
|
|
8
|
-
* list all
|
|
8
|
+
* list all hub apps
|
|
9
9
|
* @returns any hub apps list
|
|
10
10
|
* @throws ApiError
|
|
11
11
|
*/
|
|
@@ -44,8 +44,8 @@ export declare class AppService {
|
|
|
44
44
|
value: any;
|
|
45
45
|
}>>;
|
|
46
46
|
/**
|
|
47
|
-
* list all
|
|
48
|
-
* @returns ListableApp All
|
|
47
|
+
* list all apps
|
|
48
|
+
* @returns ListableApp All apps
|
|
49
49
|
* @throws ApiError
|
|
50
50
|
*/
|
|
51
51
|
static listApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }: {
|
|
@@ -5,7 +5,7 @@ const OpenAPI_1 = require("../core/OpenAPI");
|
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
6
|
class AppService {
|
|
7
7
|
/**
|
|
8
|
-
* list all
|
|
8
|
+
* list all hub apps
|
|
9
9
|
* @returns any hub apps list
|
|
10
10
|
* @throws ApiError
|
|
11
11
|
*/
|
|
@@ -44,8 +44,8 @@ class AppService {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* list all
|
|
48
|
-
* @returns ListableApp All
|
|
47
|
+
* list all apps
|
|
48
|
+
* @returns ListableApp All apps
|
|
49
49
|
* @throws ApiError
|
|
50
50
|
*/
|
|
51
51
|
static listApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }) {
|
|
@@ -5,7 +5,7 @@ import type { OpenFlowWPath } from '../models/OpenFlowWPath';
|
|
|
5
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
6
|
export declare class FlowService {
|
|
7
7
|
/**
|
|
8
|
-
* list all
|
|
8
|
+
* list all hub flows
|
|
9
9
|
* @returns any hub flows list
|
|
10
10
|
* @throws ApiError
|
|
11
11
|
*/
|
|
@@ -30,7 +30,7 @@ export declare class FlowService {
|
|
|
30
30
|
flow?: OpenFlow;
|
|
31
31
|
}>;
|
|
32
32
|
/**
|
|
33
|
-
* list all
|
|
33
|
+
* list all flow paths
|
|
34
34
|
* @returns string list of flow paths
|
|
35
35
|
* @throws ApiError
|
|
36
36
|
*/
|
|
@@ -49,8 +49,8 @@ export declare class FlowService {
|
|
|
49
49
|
value: any;
|
|
50
50
|
}>>;
|
|
51
51
|
/**
|
|
52
|
-
* list all
|
|
53
|
-
* @returns any All
|
|
52
|
+
* list all flows
|
|
53
|
+
* @returns any All flow
|
|
54
54
|
* @throws ApiError
|
|
55
55
|
*/
|
|
56
56
|
static listFlows({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, showArchived, starredOnly, }: {
|
|
@@ -5,7 +5,7 @@ const OpenAPI_1 = require("../core/OpenAPI");
|
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
6
|
class FlowService {
|
|
7
7
|
/**
|
|
8
|
-
* list all
|
|
8
|
+
* list all hub flows
|
|
9
9
|
* @returns any hub flows list
|
|
10
10
|
* @throws ApiError
|
|
11
11
|
*/
|
|
@@ -30,7 +30,7 @@ class FlowService {
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
* list all
|
|
33
|
+
* list all flow paths
|
|
34
34
|
* @returns string list of flow paths
|
|
35
35
|
* @throws ApiError
|
|
36
36
|
*/
|
|
@@ -58,8 +58,8 @@ class FlowService {
|
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
* list all
|
|
62
|
-
* @returns any All
|
|
61
|
+
* list all flows
|
|
62
|
+
* @returns any All flow
|
|
63
63
|
* @throws ApiError
|
|
64
64
|
*/
|
|
65
65
|
static listFlows({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, showArchived, starredOnly, }) {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
|
+
export declare class IntegrationService {
|
|
3
|
+
/**
|
|
4
|
+
* list hub integrations
|
|
5
|
+
* @returns any integrations details
|
|
6
|
+
* @throws ApiError
|
|
7
|
+
*/
|
|
8
|
+
static listHubIntegrations({ kind, }: {
|
|
9
|
+
/**
|
|
10
|
+
* query integrations kind
|
|
11
|
+
*/
|
|
12
|
+
kind?: string;
|
|
13
|
+
}): CancelablePromise<Array<{
|
|
14
|
+
name: string;
|
|
15
|
+
}>>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class IntegrationService {
|
|
7
|
+
/**
|
|
8
|
+
* list hub integrations
|
|
9
|
+
* @returns any integrations details
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static listHubIntegrations({ kind, }) {
|
|
13
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/integrations/hub/list',
|
|
16
|
+
query: {
|
|
17
|
+
'kind': kind,
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.IntegrationService = IntegrationService;
|
|
@@ -334,8 +334,8 @@ export declare class JobService {
|
|
|
334
334
|
jobId?: string;
|
|
335
335
|
}): CancelablePromise<string>;
|
|
336
336
|
/**
|
|
337
|
-
* list all
|
|
338
|
-
* @returns QueuedJob All
|
|
337
|
+
* list all queued jobs
|
|
338
|
+
* @returns QueuedJob All queued jobs
|
|
339
339
|
* @throws ApiError
|
|
340
340
|
*/
|
|
341
341
|
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, suspended, running, args, result, tag, }: {
|
|
@@ -434,8 +434,8 @@ export declare class JobService {
|
|
|
434
434
|
workspace: string;
|
|
435
435
|
}): CancelablePromise<Array<string>>;
|
|
436
436
|
/**
|
|
437
|
-
* list all
|
|
438
|
-
* @returns CompletedJob All
|
|
437
|
+
* list all completed jobs
|
|
438
|
+
* @returns CompletedJob All completed jobs
|
|
439
439
|
* @throws ApiError
|
|
440
440
|
*/
|
|
441
441
|
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, isSkipped, isFlowStep, }: {
|
|
@@ -506,7 +506,7 @@ export declare class JobService {
|
|
|
506
506
|
isFlowStep?: boolean;
|
|
507
507
|
}): CancelablePromise<Array<CompletedJob>>;
|
|
508
508
|
/**
|
|
509
|
-
* list all
|
|
509
|
+
* list all jobs
|
|
510
510
|
* @returns Job All jobs
|
|
511
511
|
* @throws ApiError
|
|
512
512
|
*/
|
|
@@ -249,8 +249,8 @@ class JobService {
|
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
251
|
/**
|
|
252
|
-
* list all
|
|
253
|
-
* @returns QueuedJob All
|
|
252
|
+
* list all queued jobs
|
|
253
|
+
* @returns QueuedJob All queued jobs
|
|
254
254
|
* @throws ApiError
|
|
255
255
|
*/
|
|
256
256
|
static listQueue({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, suspended, running, args, result, tag, }) {
|
|
@@ -323,8 +323,8 @@ class JobService {
|
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
/**
|
|
326
|
-
* list all
|
|
327
|
-
* @returns CompletedJob All
|
|
326
|
+
* list all completed jobs
|
|
327
|
+
* @returns CompletedJob All completed jobs
|
|
328
328
|
* @throws ApiError
|
|
329
329
|
*/
|
|
330
330
|
static listCompletedJobs({ workspace, orderDesc, createdBy, parentJob, scriptPathExact, scriptPathStart, schedulePath, scriptHash, startedBefore, startedAfter, success, jobKinds, args, result, tag, isSkipped, isFlowStep, }) {
|
|
@@ -355,7 +355,7 @@ class JobService {
|
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
357
|
/**
|
|
358
|
-
* list all
|
|
358
|
+
* list all jobs
|
|
359
359
|
* @returns Job All jobs
|
|
360
360
|
* @throws ApiError
|
|
361
361
|
*/
|
|
@@ -2,8 +2,8 @@ import type { ListableRawApp } from '../models/ListableRawApp';
|
|
|
2
2
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
3
|
export declare class RawAppService {
|
|
4
4
|
/**
|
|
5
|
-
* list all
|
|
6
|
-
* @returns ListableRawApp All
|
|
5
|
+
* list all raw apps
|
|
6
|
+
* @returns ListableRawApp All raw apps
|
|
7
7
|
* @throws ApiError
|
|
8
8
|
*/
|
|
9
9
|
static listRawApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }: {
|
|
@@ -5,8 +5,8 @@ const OpenAPI_1 = require("../core/OpenAPI");
|
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
6
|
class RawAppService {
|
|
7
7
|
/**
|
|
8
|
-
* list all
|
|
9
|
-
* @returns ListableRawApp All
|
|
8
|
+
* list all raw apps
|
|
9
|
+
* @returns ListableRawApp All raw apps
|
|
10
10
|
* @throws ApiError
|
|
11
11
|
*/
|
|
12
12
|
static listRawApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }) {
|
|
@@ -212,21 +212,11 @@ export declare class ResourceService {
|
|
|
212
212
|
workspace: string;
|
|
213
213
|
}): CancelablePromise<Array<string>>;
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
215
|
+
* query resource types by similarity
|
|
216
216
|
* @returns any resource type details
|
|
217
217
|
* @throws ApiError
|
|
218
218
|
*/
|
|
219
|
-
static
|
|
220
|
-
id: string;
|
|
221
|
-
name: string;
|
|
222
|
-
schema?: any;
|
|
223
|
-
}>>;
|
|
224
|
-
/**
|
|
225
|
-
* query hub resource types by similarity
|
|
226
|
-
* @returns any resource type details
|
|
227
|
-
* @throws ApiError
|
|
228
|
-
*/
|
|
229
|
-
static queryHubResourceTypes({ text, limit, }: {
|
|
219
|
+
static queryResourceTypes({ text, limit, }: {
|
|
230
220
|
/**
|
|
231
221
|
* query text
|
|
232
222
|
*/
|
|
@@ -236,6 +226,8 @@ export declare class ResourceService {
|
|
|
236
226
|
*/
|
|
237
227
|
limit?: number;
|
|
238
228
|
}): CancelablePromise<Array<{
|
|
239
|
-
|
|
229
|
+
name: string;
|
|
230
|
+
score: number;
|
|
231
|
+
schema?: any;
|
|
240
232
|
}>>;
|
|
241
233
|
}
|
|
@@ -291,25 +291,14 @@ class ResourceService {
|
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
/**
|
|
294
|
-
*
|
|
294
|
+
* query resource types by similarity
|
|
295
295
|
* @returns any resource type details
|
|
296
296
|
* @throws ApiError
|
|
297
297
|
*/
|
|
298
|
-
static
|
|
298
|
+
static queryResourceTypes({ text, limit, }) {
|
|
299
299
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
300
300
|
method: 'GET',
|
|
301
|
-
url: '/
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* query hub resource types by similarity
|
|
306
|
-
* @returns any resource type details
|
|
307
|
-
* @throws ApiError
|
|
308
|
-
*/
|
|
309
|
-
static queryHubResourceTypes({ text, limit, }) {
|
|
310
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
311
|
-
method: 'GET',
|
|
312
|
-
url: '/resources/type/hub/query',
|
|
301
|
+
url: '/embeddings/query_resource_types',
|
|
313
302
|
query: {
|
|
314
303
|
'text': text,
|
|
315
304
|
'limit': limit,
|
|
@@ -3,23 +3,6 @@ import type { NewScriptWithDraft } from '../models/NewScriptWithDraft';
|
|
|
3
3
|
import type { Script } from '../models/Script';
|
|
4
4
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
5
|
export declare class ScriptService {
|
|
6
|
-
/**
|
|
7
|
-
* list all available hub scripts
|
|
8
|
-
* @returns any hub scripts list
|
|
9
|
-
* @throws ApiError
|
|
10
|
-
*/
|
|
11
|
-
static listHubScripts(): CancelablePromise<{
|
|
12
|
-
asks?: Array<{
|
|
13
|
-
id: number;
|
|
14
|
-
ask_id: number;
|
|
15
|
-
summary: string;
|
|
16
|
-
app: string;
|
|
17
|
-
approved: boolean;
|
|
18
|
-
kind: 'script' | 'failure' | 'trigger' | 'command' | 'approval';
|
|
19
|
-
votes: number;
|
|
20
|
-
views: number;
|
|
21
|
-
}>;
|
|
22
|
-
}>;
|
|
23
6
|
/**
|
|
24
7
|
* get hub script content by path
|
|
25
8
|
* @returns string script details
|
|
@@ -42,12 +25,42 @@ export declare class ScriptService {
|
|
|
42
25
|
language: string;
|
|
43
26
|
summary?: string;
|
|
44
27
|
}>;
|
|
28
|
+
/**
|
|
29
|
+
* get top hub scripts
|
|
30
|
+
* @returns any hub scripts list
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
static getTopHubScripts({ limit, app, kind, }: {
|
|
34
|
+
/**
|
|
35
|
+
* query limit
|
|
36
|
+
*/
|
|
37
|
+
limit?: number;
|
|
38
|
+
/**
|
|
39
|
+
* query scripts app
|
|
40
|
+
*/
|
|
41
|
+
app?: string;
|
|
42
|
+
/**
|
|
43
|
+
* query scripts kind
|
|
44
|
+
*/
|
|
45
|
+
kind?: string;
|
|
46
|
+
}): CancelablePromise<{
|
|
47
|
+
asks?: Array<{
|
|
48
|
+
id: number;
|
|
49
|
+
ask_id: number;
|
|
50
|
+
summary: string;
|
|
51
|
+
app: string;
|
|
52
|
+
approved: boolean;
|
|
53
|
+
kind: 'script' | 'failure' | 'trigger' | 'command' | 'approval';
|
|
54
|
+
votes: number;
|
|
55
|
+
views: number;
|
|
56
|
+
}>;
|
|
57
|
+
}>;
|
|
45
58
|
/**
|
|
46
59
|
* query hub scripts by similarity
|
|
47
60
|
* @returns any script details
|
|
48
61
|
* @throws ApiError
|
|
49
62
|
*/
|
|
50
|
-
static queryHubScripts({ text, kind, limit, }: {
|
|
63
|
+
static queryHubScripts({ text, kind, limit, app, }: {
|
|
51
64
|
/**
|
|
52
65
|
* query text
|
|
53
66
|
*/
|
|
@@ -60,8 +73,18 @@ export declare class ScriptService {
|
|
|
60
73
|
* query limit
|
|
61
74
|
*/
|
|
62
75
|
limit?: number;
|
|
76
|
+
/**
|
|
77
|
+
* query scripts app
|
|
78
|
+
*/
|
|
79
|
+
app?: string;
|
|
63
80
|
}): CancelablePromise<Array<{
|
|
64
|
-
|
|
81
|
+
ask_id: number;
|
|
82
|
+
id: number;
|
|
83
|
+
version_id: number;
|
|
84
|
+
summary: string;
|
|
85
|
+
app: string;
|
|
86
|
+
kind: 'script' | 'failure' | 'trigger' | 'command' | 'approval';
|
|
87
|
+
score: number;
|
|
65
88
|
}>>;
|
|
66
89
|
/**
|
|
67
90
|
* list scripts for search
|
|
@@ -75,8 +98,8 @@ export declare class ScriptService {
|
|
|
75
98
|
content: string;
|
|
76
99
|
}>>;
|
|
77
100
|
/**
|
|
78
|
-
* list all
|
|
79
|
-
* @returns Script All
|
|
101
|
+
* list all scripts
|
|
102
|
+
* @returns Script All scripts
|
|
80
103
|
* @throws ApiError
|
|
81
104
|
*/
|
|
82
105
|
static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kinds, starredOnly, }: {
|
|
@@ -156,7 +179,7 @@ export declare class ScriptService {
|
|
|
156
179
|
starredOnly?: boolean;
|
|
157
180
|
}): CancelablePromise<Array<Script>>;
|
|
158
181
|
/**
|
|
159
|
-
* list all
|
|
182
|
+
* list all scripts paths
|
|
160
183
|
* @returns string list of script paths
|
|
161
184
|
* @throws ApiError
|
|
162
185
|
*/
|
|
@@ -4,17 +4,6 @@ exports.ScriptService = void 0;
|
|
|
4
4
|
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
5
|
const request_1 = require("../core/request");
|
|
6
6
|
class ScriptService {
|
|
7
|
-
/**
|
|
8
|
-
* list all available hub scripts
|
|
9
|
-
* @returns any hub scripts list
|
|
10
|
-
* @throws ApiError
|
|
11
|
-
*/
|
|
12
|
-
static listHubScripts() {
|
|
13
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
14
|
-
method: 'GET',
|
|
15
|
-
url: '/scripts/hub/list',
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
7
|
/**
|
|
19
8
|
* get hub script content by path
|
|
20
9
|
* @returns string script details
|
|
@@ -43,19 +32,36 @@ class ScriptService {
|
|
|
43
32
|
},
|
|
44
33
|
});
|
|
45
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* get top hub scripts
|
|
37
|
+
* @returns any hub scripts list
|
|
38
|
+
* @throws ApiError
|
|
39
|
+
*/
|
|
40
|
+
static getTopHubScripts({ limit, app, kind, }) {
|
|
41
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
42
|
+
method: 'GET',
|
|
43
|
+
url: '/scripts/hub/top',
|
|
44
|
+
query: {
|
|
45
|
+
'limit': limit,
|
|
46
|
+
'app': app,
|
|
47
|
+
'kind': kind,
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}
|
|
46
51
|
/**
|
|
47
52
|
* query hub scripts by similarity
|
|
48
53
|
* @returns any script details
|
|
49
54
|
* @throws ApiError
|
|
50
55
|
*/
|
|
51
|
-
static queryHubScripts({ text, kind, limit, }) {
|
|
56
|
+
static queryHubScripts({ text, kind, limit, app, }) {
|
|
52
57
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
53
58
|
method: 'GET',
|
|
54
|
-
url: '/
|
|
59
|
+
url: '/embeddings/query_hub_scripts',
|
|
55
60
|
query: {
|
|
56
61
|
'text': text,
|
|
57
62
|
'kind': kind,
|
|
58
63
|
'limit': limit,
|
|
64
|
+
'app': app,
|
|
59
65
|
},
|
|
60
66
|
});
|
|
61
67
|
}
|
|
@@ -74,8 +80,8 @@ class ScriptService {
|
|
|
74
80
|
});
|
|
75
81
|
}
|
|
76
82
|
/**
|
|
77
|
-
* list all
|
|
78
|
-
* @returns Script All
|
|
83
|
+
* list all scripts
|
|
84
|
+
* @returns Script All scripts
|
|
79
85
|
* @throws ApiError
|
|
80
86
|
*/
|
|
81
87
|
static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kinds, starredOnly, }) {
|
|
@@ -103,7 +109,7 @@ class ScriptService {
|
|
|
103
109
|
});
|
|
104
110
|
}
|
|
105
111
|
/**
|
|
106
|
-
* list all
|
|
112
|
+
* list all scripts paths
|
|
107
113
|
* @returns string list of script paths
|
|
108
114
|
* @throws ApiError
|
|
109
115
|
*/
|