@osaas/client-services 0.4.0 → 0.6.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/lib/generated/bluewave-labs-checkmate.d.ts +308 -0
- package/lib/generated/bluewave-labs-checkmate.d.ts.map +1 -0
- package/lib/generated/bluewave-labs-checkmate.js +55 -0
- package/lib/generated/bluewave-labs-checkmate.js.map +1 -0
- package/lib/generated/dicedb-dice.d.ts +308 -0
- package/lib/generated/dicedb-dice.d.ts.map +1 -0
- package/lib/generated/dicedb-dice.js +55 -0
- package/lib/generated/dicedb-dice.js.map +1 -0
- package/lib/generated/eyevinn-encore-packager.d.ts +4 -0
- package/lib/generated/eyevinn-encore-packager.d.ts.map +1 -1
- package/lib/generated/eyevinn-encore-packager.js.map +1 -1
- package/lib/generated/eyevinn-lambda-stitch.d.ts +4 -0
- package/lib/generated/eyevinn-lambda-stitch.d.ts.map +1 -1
- package/lib/generated/eyevinn-lambda-stitch.js.map +1 -1
- package/lib/generated/eyevinn-web-runner.d.ts +316 -0
- package/lib/generated/eyevinn-web-runner.d.ts.map +1 -0
- package/lib/generated/eyevinn-web-runner.js +55 -0
- package/lib/generated/eyevinn-web-runner.js.map +1 -0
- package/lib/generated/searxng-searxng.d.ts +312 -0
- package/lib/generated/searxng-searxng.d.ts.map +1 -0
- package/lib/generated/searxng-searxng.js +55 -0
- package/lib/generated/searxng-searxng.js.map +1 -0
- package/lib/generated/supercorp-ai-supergateway.d.ts +316 -0
- package/lib/generated/supercorp-ai-supergateway.d.ts.map +1 -0
- package/lib/generated/supercorp-ai-supergateway.js +55 -0
- package/lib/generated/supercorp-ai-supergateway.js.map +1 -0
- package/lib/index.d.ts +5 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +25 -9
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
'/': {
|
|
7
|
+
/** Say hello */
|
|
8
|
+
get: {
|
|
9
|
+
responses: {
|
|
10
|
+
/** The magical words! */
|
|
11
|
+
200: {
|
|
12
|
+
schema: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
'/searxnginstance': {
|
|
18
|
+
/** List all running searxng instances */
|
|
19
|
+
get: {
|
|
20
|
+
responses: {
|
|
21
|
+
/** Default Response */
|
|
22
|
+
200: {
|
|
23
|
+
schema: {
|
|
24
|
+
/** @description Name of the searxng instance */
|
|
25
|
+
name: string;
|
|
26
|
+
/** @description URL to instance API */
|
|
27
|
+
url: string;
|
|
28
|
+
resources: {
|
|
29
|
+
license: {
|
|
30
|
+
/** @description URL to license information */
|
|
31
|
+
url: string;
|
|
32
|
+
};
|
|
33
|
+
apiDocs?: {
|
|
34
|
+
/** @description URL to instance API documentation */
|
|
35
|
+
url: string;
|
|
36
|
+
};
|
|
37
|
+
app?: {
|
|
38
|
+
/** @description URL to instance application (GUI) */
|
|
39
|
+
url: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
AutoComplete?: string;
|
|
43
|
+
}[];
|
|
44
|
+
};
|
|
45
|
+
/** Default Response */
|
|
46
|
+
500: {
|
|
47
|
+
schema: {
|
|
48
|
+
/** @description Reason why something failed */
|
|
49
|
+
reason: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
/** Launch a new searxng instance */
|
|
55
|
+
post: {
|
|
56
|
+
parameters: {
|
|
57
|
+
body: {
|
|
58
|
+
body?: {
|
|
59
|
+
/** @description Name of the searxng instance */
|
|
60
|
+
name: string;
|
|
61
|
+
AutoComplete?: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
responses: {
|
|
66
|
+
/** Default Response */
|
|
67
|
+
200: {
|
|
68
|
+
schema: {
|
|
69
|
+
/** @description Name of the searxng instance */
|
|
70
|
+
name: string;
|
|
71
|
+
/** @description URL to instance API */
|
|
72
|
+
url: string;
|
|
73
|
+
resources: {
|
|
74
|
+
license: {
|
|
75
|
+
/** @description URL to license information */
|
|
76
|
+
url: string;
|
|
77
|
+
};
|
|
78
|
+
apiDocs?: {
|
|
79
|
+
/** @description URL to instance API documentation */
|
|
80
|
+
url: string;
|
|
81
|
+
};
|
|
82
|
+
app?: {
|
|
83
|
+
/** @description URL to instance application (GUI) */
|
|
84
|
+
url: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
AutoComplete?: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
/** Default Response */
|
|
91
|
+
403: {
|
|
92
|
+
schema: {
|
|
93
|
+
/** @description Reason why something failed */
|
|
94
|
+
reason: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
/** Default Response */
|
|
98
|
+
409: {
|
|
99
|
+
schema: {
|
|
100
|
+
/** @description Reason why something failed */
|
|
101
|
+
reason: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
/** Default Response */
|
|
105
|
+
500: {
|
|
106
|
+
schema: {
|
|
107
|
+
/** @description Reason why something failed */
|
|
108
|
+
reason: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
'/searxnginstance/{id}': {
|
|
115
|
+
/** Obtain status and resource URLs for an searxng instance */
|
|
116
|
+
get: {
|
|
117
|
+
parameters: {
|
|
118
|
+
path: {
|
|
119
|
+
/** Name of the searxng instance */
|
|
120
|
+
id: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
responses: {
|
|
124
|
+
/** Default Response */
|
|
125
|
+
200: {
|
|
126
|
+
schema: {
|
|
127
|
+
/** @description Name of the searxng instance */
|
|
128
|
+
name: string;
|
|
129
|
+
/** @description URL to instance API */
|
|
130
|
+
url: string;
|
|
131
|
+
resources: {
|
|
132
|
+
license: {
|
|
133
|
+
/** @description URL to license information */
|
|
134
|
+
url: string;
|
|
135
|
+
};
|
|
136
|
+
apiDocs?: {
|
|
137
|
+
/** @description URL to instance API documentation */
|
|
138
|
+
url: string;
|
|
139
|
+
};
|
|
140
|
+
app?: {
|
|
141
|
+
/** @description URL to instance application (GUI) */
|
|
142
|
+
url: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
AutoComplete?: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
/** Default Response */
|
|
149
|
+
404: {
|
|
150
|
+
schema: {
|
|
151
|
+
/** @description Reason why something failed */
|
|
152
|
+
reason: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
/** Default Response */
|
|
156
|
+
500: {
|
|
157
|
+
schema: {
|
|
158
|
+
/** @description Reason why something failed */
|
|
159
|
+
reason: string;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
/** Stop and remove an searxng instance */
|
|
165
|
+
delete: {
|
|
166
|
+
parameters: {
|
|
167
|
+
path: {
|
|
168
|
+
/** Name of the searxng instance */
|
|
169
|
+
id: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
responses: {
|
|
173
|
+
/** Default Response */
|
|
174
|
+
204: {
|
|
175
|
+
schema: string;
|
|
176
|
+
};
|
|
177
|
+
/** Default Response */
|
|
178
|
+
500: {
|
|
179
|
+
schema: {
|
|
180
|
+
/** @description Reason why something failed */
|
|
181
|
+
reason: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
'/health/{id}': {
|
|
188
|
+
/** Return status of searxng instance */
|
|
189
|
+
get: {
|
|
190
|
+
parameters: {
|
|
191
|
+
path: {
|
|
192
|
+
/** Name of the searxng instance */
|
|
193
|
+
id: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
responses: {
|
|
197
|
+
/** Default Response */
|
|
198
|
+
200: {
|
|
199
|
+
schema: {
|
|
200
|
+
/** @enum {string} */
|
|
201
|
+
status: 'starting' | 'running' | 'stopped' | 'failed' | 'unknown';
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
/** Default Response */
|
|
205
|
+
500: {
|
|
206
|
+
schema: {
|
|
207
|
+
/** @description Reason why something failed */
|
|
208
|
+
reason: string;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
'/logs/{id}': {
|
|
215
|
+
/** Return the latest logs from the searxng instance */
|
|
216
|
+
get: {
|
|
217
|
+
parameters: {
|
|
218
|
+
query: {
|
|
219
|
+
timestamps?: boolean;
|
|
220
|
+
sinceSeconds?: number;
|
|
221
|
+
};
|
|
222
|
+
path: {
|
|
223
|
+
/** Name of the searxng instance */
|
|
224
|
+
id: string;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
responses: {
|
|
228
|
+
/** Default Response */
|
|
229
|
+
200: {
|
|
230
|
+
schema: string;
|
|
231
|
+
};
|
|
232
|
+
/** Default Response */
|
|
233
|
+
500: {
|
|
234
|
+
schema: {
|
|
235
|
+
/** @description Reason why something failed */
|
|
236
|
+
reason: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
'/ports/{id}': {
|
|
243
|
+
/** Return the exposed extra ports for searxng instance */
|
|
244
|
+
get: {
|
|
245
|
+
parameters: {
|
|
246
|
+
path: {
|
|
247
|
+
/** Name of the searxng instance */
|
|
248
|
+
id: string;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
responses: {
|
|
252
|
+
/** Default Response */
|
|
253
|
+
200: {
|
|
254
|
+
schema: {
|
|
255
|
+
externalIp: string;
|
|
256
|
+
externalPort: number;
|
|
257
|
+
internalPort: number;
|
|
258
|
+
}[];
|
|
259
|
+
};
|
|
260
|
+
/** Default Response */
|
|
261
|
+
500: {
|
|
262
|
+
schema: {
|
|
263
|
+
/** @description Reason why something failed */
|
|
264
|
+
reason: string;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
export interface definitions {
|
|
272
|
+
}
|
|
273
|
+
export interface operations {
|
|
274
|
+
}
|
|
275
|
+
export interface external {
|
|
276
|
+
}
|
|
277
|
+
export type SearxngSearxng = paths['/searxnginstance/{id}']['get']['responses']['200']['schema'];
|
|
278
|
+
export type SearxngSearxngConfig = paths['/searxnginstance']['post']['parameters']['body']['body'];
|
|
279
|
+
import { Context } from '@osaas/client-core';
|
|
280
|
+
/**
|
|
281
|
+
* Create a new SearXNG instance
|
|
282
|
+
*
|
|
283
|
+
* @description Experience the power of privacy with SearXNG, a customizable metasearch engine delivering unmatched confidentiality. Explore the web securely with our easy setup and extensive admin tools.
|
|
284
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
285
|
+
* @param {SearxngSearxngConfig}} body - Service instance configuration
|
|
286
|
+
* @returns {SearxngSearxng} - Service instance
|
|
287
|
+
* @example
|
|
288
|
+
* import { Context, createSearxngSearxngInstance } from '@osaas/client-services';
|
|
289
|
+
*
|
|
290
|
+
* const ctx = new Context();
|
|
291
|
+
* const instance = await createSearxngSearxngInstance(ctx, { name: 'myinstance' });
|
|
292
|
+
* console.log(instance.url);
|
|
293
|
+
*/
|
|
294
|
+
export declare function createSearxngSearxngInstance(ctx: Context, body: SearxngSearxngConfig): Promise<SearxngSearxng>;
|
|
295
|
+
/**
|
|
296
|
+
* Remove a SearXNG instance
|
|
297
|
+
*
|
|
298
|
+
* @description Experience the power of privacy with SearXNG, a customizable metasearch engine delivering unmatched confidentiality. Explore the web securely with our easy setup and extensive admin tools.
|
|
299
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
300
|
+
* @param {string} name - Name of the searxng to be removed
|
|
301
|
+
*/
|
|
302
|
+
export declare function removeSearxngSearxngInstance(ctx: Context, name: string): Promise<void>;
|
|
303
|
+
/**
|
|
304
|
+
* Get a SearXNG instance
|
|
305
|
+
*
|
|
306
|
+
* @description Experience the power of privacy with SearXNG, a customizable metasearch engine delivering unmatched confidentiality. Explore the web securely with our easy setup and extensive admin tools.
|
|
307
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
308
|
+
* @param {string} name - Name of the searxng to be retrieved
|
|
309
|
+
* @returns {SearxngSearxng} - Service instance
|
|
310
|
+
*/
|
|
311
|
+
export declare function getSearxngSearxngInstance(ctx: Context, name: string): Promise<SearxngSearxng>;
|
|
312
|
+
//# sourceMappingURL=searxng-searxng.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searxng-searxng.d.ts","sourceRoot":"","sources":["../../src/generated/searxng-searxng.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,KAAK;IACpB,GAAG,EAAE;QACH,gBAAgB;QAChB,GAAG,EAAE;YACH,SAAS,EAAE;gBACT,yBAAyB;gBACzB,GAAG,EAAE;oBACH,MAAM,EAAE,MAAM,CAAC;iBAChB,CAAC;aACH,CAAC;SACH,CAAC;KACH,CAAC;IACF,kBAAkB,EAAE;QAClB,yCAAyC;QACzC,GAAG,EAAE;YACH,SAAS,EAAE;gBACT,uBAAuB;gBACvB,GAAG,EAAE;oBACH,MAAM,EAAE;wBACN,gDAAgD;wBAChD,IAAI,EAAE,MAAM,CAAC;wBACb,uCAAuC;wBACvC,GAAG,EAAE,MAAM,CAAC;wBACZ,SAAS,EAAE;4BACT,OAAO,EAAE;gCACP,8CAA8C;gCAC9C,GAAG,EAAE,MAAM,CAAC;6BACb,CAAC;4BACF,OAAO,CAAC,EAAE;gCACR,qDAAqD;gCACrD,GAAG,EAAE,MAAM,CAAC;6BACb,CAAC;4BACF,GAAG,CAAC,EAAE;gCACJ,qD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B,CAC7C,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,cAAc,CAAC,CAGzB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by openapi-typescript.
|
|
4
|
+
* Do not make direct changes to the file.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getSearxngSearxngInstance = exports.removeSearxngSearxngInstance = exports.createSearxngSearxngInstance = void 0;
|
|
8
|
+
const client_core_1 = require("@osaas/client-core");
|
|
9
|
+
/**
|
|
10
|
+
* Create a new SearXNG instance
|
|
11
|
+
*
|
|
12
|
+
* @description Experience the power of privacy with SearXNG, a customizable metasearch engine delivering unmatched confidentiality. Explore the web securely with our easy setup and extensive admin tools.
|
|
13
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
14
|
+
* @param {SearxngSearxngConfig}} body - Service instance configuration
|
|
15
|
+
* @returns {SearxngSearxng} - Service instance
|
|
16
|
+
* @example
|
|
17
|
+
* import { Context, createSearxngSearxngInstance } from '@osaas/client-services';
|
|
18
|
+
*
|
|
19
|
+
* const ctx = new Context();
|
|
20
|
+
* const instance = await createSearxngSearxngInstance(ctx, { name: 'myinstance' });
|
|
21
|
+
* console.log(instance.url);
|
|
22
|
+
*/
|
|
23
|
+
async function createSearxngSearxngInstance(ctx, body) {
|
|
24
|
+
const serviceAccessToken = await ctx.getServiceAccessToken('searxng-searxng');
|
|
25
|
+
const instance = await (0, client_core_1.createInstance)(ctx, 'searxng-searxng', serviceAccessToken, body);
|
|
26
|
+
await (0, client_core_1.waitForInstanceReady)('searxng-searxng', instance.name, ctx);
|
|
27
|
+
return instance;
|
|
28
|
+
}
|
|
29
|
+
exports.createSearxngSearxngInstance = createSearxngSearxngInstance;
|
|
30
|
+
/**
|
|
31
|
+
* Remove a SearXNG instance
|
|
32
|
+
*
|
|
33
|
+
* @description Experience the power of privacy with SearXNG, a customizable metasearch engine delivering unmatched confidentiality. Explore the web securely with our easy setup and extensive admin tools.
|
|
34
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
35
|
+
* @param {string} name - Name of the searxng to be removed
|
|
36
|
+
*/
|
|
37
|
+
async function removeSearxngSearxngInstance(ctx, name) {
|
|
38
|
+
const serviceAccessToken = await ctx.getServiceAccessToken('searxng-searxng');
|
|
39
|
+
await (0, client_core_1.removeInstance)(ctx, 'searxng-searxng', name, serviceAccessToken);
|
|
40
|
+
}
|
|
41
|
+
exports.removeSearxngSearxngInstance = removeSearxngSearxngInstance;
|
|
42
|
+
/**
|
|
43
|
+
* Get a SearXNG instance
|
|
44
|
+
*
|
|
45
|
+
* @description Experience the power of privacy with SearXNG, a customizable metasearch engine delivering unmatched confidentiality. Explore the web securely with our easy setup and extensive admin tools.
|
|
46
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
47
|
+
* @param {string} name - Name of the searxng to be retrieved
|
|
48
|
+
* @returns {SearxngSearxng} - Service instance
|
|
49
|
+
*/
|
|
50
|
+
async function getSearxngSearxngInstance(ctx, name) {
|
|
51
|
+
const serviceAccessToken = await ctx.getServiceAccessToken('searxng-searxng');
|
|
52
|
+
return await (0, client_core_1.getInstance)(ctx, 'searxng-searxng', name, serviceAccessToken);
|
|
53
|
+
}
|
|
54
|
+
exports.getSearxngSearxngInstance = getSearxngSearxngInstance;
|
|
55
|
+
//# sourceMappingURL=searxng-searxng.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searxng-searxng.js","sourceRoot":"","sources":["../../src/generated/searxng-searxng.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAyRH,oDAM4B;AAE5B;;;;;;;;;;;;;GAaG;AACI,KAAK,UAAU,4BAA4B,CAChD,GAAY,EACZ,IAA0B;IAE1B,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;IAC9E,MAAM,QAAQ,GAAG,MAAM,IAAA,4BAAc,EACnC,GAAG,EACH,iBAAiB,EACjB,kBAAkB,EAClB,IAAI,CACL,CAAC;IACF,MAAM,IAAA,kCAAoB,EAAC,iBAAiB,EAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAClE,OAAO,QAAQ,CAAC;AAClB,CAAC;AAbD,oEAaC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,4BAA4B,CAChD,GAAY,EACZ,IAAY;IAEZ,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;IAC9E,MAAM,IAAA,4BAAc,EAAC,GAAG,EAAE,iBAAiB,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC;AACzE,CAAC;AAND,oEAMC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,yBAAyB,CAC7C,GAAY,EACZ,IAAY;IAEZ,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;IAC9E,OAAO,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,iBAAiB,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC;AAC7E,CAAC;AAND,8DAMC"}
|