@osaas/client-services 0.12.1 → 0.13.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/ablindberg-chaosmaker.d.ts +575 -0
- package/lib/generated/ablindberg-chaosmaker.d.ts.map +1 -0
- package/lib/generated/ablindberg-chaosmaker.js +86 -0
- package/lib/generated/ablindberg-chaosmaker.js.map +1 -0
- package/lib/generated/apache-couchdb.d.ts +1 -1
- package/lib/generated/apache-couchdb.js +1 -1
- package/lib/generated/birme-bucket-commander.d.ts +566 -0
- package/lib/generated/birme-bucket-commander.d.ts.map +1 -0
- package/lib/generated/birme-bucket-commander.js +87 -0
- package/lib/generated/birme-bucket-commander.js.map +1 -0
- package/lib/generated/birme-video-uploader.d.ts +4 -4
- package/lib/generated/birme-video-uploader.js +4 -4
- package/lib/generated/channel-engine.d.ts +4 -4
- package/lib/generated/eyevinn-channel-scheduler.d.ts +566 -0
- package/lib/generated/eyevinn-channel-scheduler.d.ts.map +1 -0
- package/lib/generated/eyevinn-channel-scheduler.js +87 -0
- package/lib/generated/eyevinn-channel-scheduler.js.map +1 -0
- package/lib/generated/eyevinn-encore-callback-listener.d.ts +231 -5
- package/lib/generated/eyevinn-encore-callback-listener.d.ts.map +1 -1
- package/lib/generated/eyevinn-encore-callback-listener.js.map +1 -1
- package/lib/generated/eyevinn-encore-packager.d.ts +7 -0
- package/lib/generated/eyevinn-encore-packager.d.ts.map +1 -1
- package/lib/generated/eyevinn-encore-packager.js +1 -0
- package/lib/generated/eyevinn-encore-packager.js.map +1 -1
- package/lib/generated/eyevinn-encore-ui.d.ts +7 -0
- package/lib/generated/eyevinn-encore-ui.d.ts.map +1 -1
- package/lib/generated/eyevinn-encore-ui.js +1 -0
- package/lib/generated/eyevinn-encore-ui.js.map +1 -1
- package/lib/generated/eyevinn-intercom-manager.d.ts +1 -1
- package/lib/generated/eyevinn-intercom-manager.js +1 -1
- package/lib/generated/eyevinn-player-analytics-eventsink.d.ts +113 -0
- package/lib/generated/eyevinn-player-analytics-eventsink.d.ts.map +1 -1
- package/lib/generated/eyevinn-player-analytics-eventsink.js.map +1 -1
- package/lib/generated/eyevinn-player-analytics-worker.d.ts +127 -0
- package/lib/generated/eyevinn-player-analytics-worker.d.ts.map +1 -1
- package/lib/generated/eyevinn-player-analytics-worker.js +2 -0
- package/lib/generated/eyevinn-player-analytics-worker.js.map +1 -1
- package/lib/generated/eyevinn-web-video-review.d.ts +601 -0
- package/lib/generated/eyevinn-web-video-review.d.ts.map +1 -0
- package/lib/generated/eyevinn-web-video-review.js +92 -0
- package/lib/generated/eyevinn-web-video-review.js.map +1 -0
- package/lib/generated/grafana-grafana.d.ts +221 -5
- package/lib/generated/grafana-grafana.d.ts.map +1 -1
- package/lib/generated/grafana-grafana.js +2 -0
- package/lib/generated/grafana-grafana.js.map +1 -1
- package/lib/generated/grusell-encore-profile-server.d.ts +631 -0
- package/lib/generated/grusell-encore-profile-server.d.ts.map +1 -0
- package/lib/generated/grusell-encore-profile-server.js +94 -0
- package/lib/generated/grusell-encore-profile-server.js.map +1 -0
- package/lib/generated/locustio-locust.d.ts +566 -0
- package/lib/generated/locustio-locust.d.ts.map +1 -0
- package/lib/generated/locustio-locust.js +87 -0
- package/lib/generated/locustio-locust.js.map +1 -0
- package/lib/generated/minio-minio.d.ts +25 -2
- package/lib/generated/minio-minio.d.ts.map +1 -1
- package/lib/generated/minio-minio.js +2 -2
- package/lib/generated/minio-minio.js.map +1 -1
- package/lib/generated/nextcloud-server.d.ts +580 -0
- package/lib/generated/nextcloud-server.d.ts.map +1 -0
- package/lib/generated/nextcloud-server.js +89 -0
- package/lib/generated/nextcloud-server.js.map +1 -0
- package/lib/generated/nolltre-lab-test-prep-quiz.d.ts +575 -0
- package/lib/generated/nolltre-lab-test-prep-quiz.d.ts.map +1 -0
- package/lib/generated/nolltre-lab-test-prep-quiz.js +86 -0
- package/lib/generated/nolltre-lab-test-prep-quiz.js.map +1 -0
- package/lib/generated/poundifdef-smoothmq.d.ts +245 -5
- package/lib/generated/poundifdef-smoothmq.d.ts.map +1 -1
- package/lib/generated/poundifdef-smoothmq.js.map +1 -1
- package/lib/generated/valkey-io-valkey.d.ts +227 -5
- package/lib/generated/valkey-io-valkey.d.ts.map +1 -1
- package/lib/generated/valkey-io-valkey.js.map +1 -1
- package/lib/index.d.ts +9 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +44 -16
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,580 @@
|
|
|
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
|
+
/** Health check endpoint */
|
|
8
|
+
get: {
|
|
9
|
+
parameters: {
|
|
10
|
+
query: {
|
|
11
|
+
verbose?: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
responses: {
|
|
15
|
+
/** Default Response */
|
|
16
|
+
200: {
|
|
17
|
+
schema: Partial<string> & Partial<{
|
|
18
|
+
status: string;
|
|
19
|
+
versions: {
|
|
20
|
+
'@osaas/orchestrator': string;
|
|
21
|
+
};
|
|
22
|
+
environment: string;
|
|
23
|
+
_links: {
|
|
24
|
+
self: {
|
|
25
|
+
href: string;
|
|
26
|
+
};
|
|
27
|
+
api: {
|
|
28
|
+
href: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
};
|
|
33
|
+
/** Default Response */
|
|
34
|
+
500: {
|
|
35
|
+
schema: {
|
|
36
|
+
status: string;
|
|
37
|
+
reason: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
'/serverinstance': {
|
|
44
|
+
/** List all running server instances */
|
|
45
|
+
get: {
|
|
46
|
+
responses: {
|
|
47
|
+
/** Default Response */
|
|
48
|
+
200: {
|
|
49
|
+
schema: ({
|
|
50
|
+
/** @description Name of the server instance */
|
|
51
|
+
name: string;
|
|
52
|
+
/** @description URL to instance API */
|
|
53
|
+
url: string;
|
|
54
|
+
resources: {
|
|
55
|
+
license: {
|
|
56
|
+
/** @description URL to license information */
|
|
57
|
+
url: string;
|
|
58
|
+
};
|
|
59
|
+
apiDocs?: {
|
|
60
|
+
/** @description URL to instance API documentation */
|
|
61
|
+
url: string;
|
|
62
|
+
};
|
|
63
|
+
app?: {
|
|
64
|
+
/** @description URL to instance application (GUI) */
|
|
65
|
+
url: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
AdminUser: string;
|
|
69
|
+
AdminPassword: string;
|
|
70
|
+
DatabaseUrl?: string;
|
|
71
|
+
} & {
|
|
72
|
+
_links: {
|
|
73
|
+
self: {
|
|
74
|
+
/** @description Instance resource */
|
|
75
|
+
href: string;
|
|
76
|
+
};
|
|
77
|
+
logs?: {
|
|
78
|
+
/** @description Get logs for this instance */
|
|
79
|
+
href: string;
|
|
80
|
+
};
|
|
81
|
+
health?: {
|
|
82
|
+
/** @description Get health status for this instance */
|
|
83
|
+
href: string;
|
|
84
|
+
};
|
|
85
|
+
ports?: {
|
|
86
|
+
/** @description Get exposed ports for this instance */
|
|
87
|
+
href: string;
|
|
88
|
+
};
|
|
89
|
+
restart?: {
|
|
90
|
+
/** @description Restart this instance */
|
|
91
|
+
href: string;
|
|
92
|
+
};
|
|
93
|
+
update?: {
|
|
94
|
+
/** @description Update this instance */
|
|
95
|
+
href: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
})[];
|
|
99
|
+
};
|
|
100
|
+
/** Default Response */
|
|
101
|
+
500: {
|
|
102
|
+
schema: {
|
|
103
|
+
/** @description Reason why something failed */
|
|
104
|
+
reason: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
/** Launch a new server instance */
|
|
110
|
+
post: {
|
|
111
|
+
parameters: {
|
|
112
|
+
body: {
|
|
113
|
+
body?: {
|
|
114
|
+
/** @description Name of the server instance */
|
|
115
|
+
name: string;
|
|
116
|
+
AdminUser: string;
|
|
117
|
+
AdminPassword: string;
|
|
118
|
+
DatabaseUrl?: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
responses: {
|
|
123
|
+
/** Default Response */
|
|
124
|
+
200: {
|
|
125
|
+
schema: {
|
|
126
|
+
/** @description Name of the server instance */
|
|
127
|
+
name: string;
|
|
128
|
+
/** @description URL to instance API */
|
|
129
|
+
url: string;
|
|
130
|
+
resources: {
|
|
131
|
+
license: {
|
|
132
|
+
/** @description URL to license information */
|
|
133
|
+
url: string;
|
|
134
|
+
};
|
|
135
|
+
apiDocs?: {
|
|
136
|
+
/** @description URL to instance API documentation */
|
|
137
|
+
url: string;
|
|
138
|
+
};
|
|
139
|
+
app?: {
|
|
140
|
+
/** @description URL to instance application (GUI) */
|
|
141
|
+
url: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
AdminUser: string;
|
|
145
|
+
AdminPassword: string;
|
|
146
|
+
DatabaseUrl?: string;
|
|
147
|
+
} & {
|
|
148
|
+
_links: {
|
|
149
|
+
self: {
|
|
150
|
+
/** @description Instance resource */
|
|
151
|
+
href: string;
|
|
152
|
+
};
|
|
153
|
+
logs?: {
|
|
154
|
+
/** @description Get logs for this instance */
|
|
155
|
+
href: string;
|
|
156
|
+
};
|
|
157
|
+
health?: {
|
|
158
|
+
/** @description Get health status for this instance */
|
|
159
|
+
href: string;
|
|
160
|
+
};
|
|
161
|
+
ports?: {
|
|
162
|
+
/** @description Get exposed ports for this instance */
|
|
163
|
+
href: string;
|
|
164
|
+
};
|
|
165
|
+
restart?: {
|
|
166
|
+
/** @description Restart this instance */
|
|
167
|
+
href: string;
|
|
168
|
+
};
|
|
169
|
+
update?: {
|
|
170
|
+
/** @description Update this instance */
|
|
171
|
+
href: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
/** Default Response */
|
|
177
|
+
403: {
|
|
178
|
+
schema: {
|
|
179
|
+
/** @description Reason why something failed */
|
|
180
|
+
reason: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
/** Default Response */
|
|
184
|
+
409: {
|
|
185
|
+
schema: {
|
|
186
|
+
/** @description Reason why something failed */
|
|
187
|
+
reason: string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
/** Default Response */
|
|
191
|
+
500: {
|
|
192
|
+
schema: {
|
|
193
|
+
/** @description Reason why something failed */
|
|
194
|
+
reason: string;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
'/restart/{id}': {
|
|
201
|
+
/** Restart server */
|
|
202
|
+
post: {
|
|
203
|
+
parameters: {
|
|
204
|
+
path: {
|
|
205
|
+
/** Name of the server instance */
|
|
206
|
+
id: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
responses: {
|
|
210
|
+
/** Default Response */
|
|
211
|
+
204: {
|
|
212
|
+
schema: string;
|
|
213
|
+
};
|
|
214
|
+
/** Default Response */
|
|
215
|
+
500: {
|
|
216
|
+
schema: {
|
|
217
|
+
/** @description Reason why something failed */
|
|
218
|
+
reason: string;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
'/serverinstance/{id}': {
|
|
225
|
+
/** Obtain status and resource URLs for an server instance */
|
|
226
|
+
get: {
|
|
227
|
+
parameters: {
|
|
228
|
+
path: {
|
|
229
|
+
/** Name of the server instance */
|
|
230
|
+
id: string;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
responses: {
|
|
234
|
+
/** Default Response */
|
|
235
|
+
200: {
|
|
236
|
+
schema: {
|
|
237
|
+
/** @description Name of the server instance */
|
|
238
|
+
name: string;
|
|
239
|
+
/** @description URL to instance API */
|
|
240
|
+
url: string;
|
|
241
|
+
resources: {
|
|
242
|
+
license: {
|
|
243
|
+
/** @description URL to license information */
|
|
244
|
+
url: string;
|
|
245
|
+
};
|
|
246
|
+
apiDocs?: {
|
|
247
|
+
/** @description URL to instance API documentation */
|
|
248
|
+
url: string;
|
|
249
|
+
};
|
|
250
|
+
app?: {
|
|
251
|
+
/** @description URL to instance application (GUI) */
|
|
252
|
+
url: string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
AdminUser: string;
|
|
256
|
+
AdminPassword: string;
|
|
257
|
+
DatabaseUrl?: string;
|
|
258
|
+
} & {
|
|
259
|
+
_links: {
|
|
260
|
+
self: {
|
|
261
|
+
/** @description Instance resource */
|
|
262
|
+
href: string;
|
|
263
|
+
};
|
|
264
|
+
logs?: {
|
|
265
|
+
/** @description Get logs for this instance */
|
|
266
|
+
href: string;
|
|
267
|
+
};
|
|
268
|
+
health?: {
|
|
269
|
+
/** @description Get health status for this instance */
|
|
270
|
+
href: string;
|
|
271
|
+
};
|
|
272
|
+
ports?: {
|
|
273
|
+
/** @description Get exposed ports for this instance */
|
|
274
|
+
href: string;
|
|
275
|
+
};
|
|
276
|
+
restart?: {
|
|
277
|
+
/** @description Restart this instance */
|
|
278
|
+
href: string;
|
|
279
|
+
};
|
|
280
|
+
update?: {
|
|
281
|
+
/** @description Update this instance */
|
|
282
|
+
href: string;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
/** Default Response */
|
|
288
|
+
404: {
|
|
289
|
+
schema: {
|
|
290
|
+
/** @description Reason why something failed */
|
|
291
|
+
reason: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
/** Default Response */
|
|
295
|
+
500: {
|
|
296
|
+
schema: {
|
|
297
|
+
/** @description Reason why something failed */
|
|
298
|
+
reason: string;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
/** Stop and remove an server instance */
|
|
304
|
+
delete: {
|
|
305
|
+
parameters: {
|
|
306
|
+
path: {
|
|
307
|
+
/** Name of the server instance */
|
|
308
|
+
id: string;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
responses: {
|
|
312
|
+
/** Default Response */
|
|
313
|
+
204: {
|
|
314
|
+
schema: string;
|
|
315
|
+
};
|
|
316
|
+
/** Default Response */
|
|
317
|
+
500: {
|
|
318
|
+
schema: {
|
|
319
|
+
/** @description Reason why something failed */
|
|
320
|
+
reason: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
/** Patch server instance with new parameters and restart */
|
|
326
|
+
patch: {
|
|
327
|
+
parameters: {
|
|
328
|
+
body: {
|
|
329
|
+
body?: {
|
|
330
|
+
/** @description Name of the server instance */
|
|
331
|
+
name?: string;
|
|
332
|
+
AdminUser?: string;
|
|
333
|
+
AdminPassword?: string;
|
|
334
|
+
DatabaseUrl?: string;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
path: {
|
|
338
|
+
/** Name of the server instance */
|
|
339
|
+
id: string;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
responses: {
|
|
343
|
+
/** Default Response */
|
|
344
|
+
200: {
|
|
345
|
+
schema: {
|
|
346
|
+
/** @description Name of the server instance */
|
|
347
|
+
name: string;
|
|
348
|
+
/** @description URL to instance API */
|
|
349
|
+
url: string;
|
|
350
|
+
resources: {
|
|
351
|
+
license: {
|
|
352
|
+
/** @description URL to license information */
|
|
353
|
+
url: string;
|
|
354
|
+
};
|
|
355
|
+
apiDocs?: {
|
|
356
|
+
/** @description URL to instance API documentation */
|
|
357
|
+
url: string;
|
|
358
|
+
};
|
|
359
|
+
app?: {
|
|
360
|
+
/** @description URL to instance application (GUI) */
|
|
361
|
+
url: string;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
AdminUser: string;
|
|
365
|
+
AdminPassword: string;
|
|
366
|
+
DatabaseUrl?: string;
|
|
367
|
+
} & {
|
|
368
|
+
_links: {
|
|
369
|
+
self: {
|
|
370
|
+
/** @description Instance resource */
|
|
371
|
+
href: string;
|
|
372
|
+
};
|
|
373
|
+
logs?: {
|
|
374
|
+
/** @description Get logs for this instance */
|
|
375
|
+
href: string;
|
|
376
|
+
};
|
|
377
|
+
health?: {
|
|
378
|
+
/** @description Get health status for this instance */
|
|
379
|
+
href: string;
|
|
380
|
+
};
|
|
381
|
+
ports?: {
|
|
382
|
+
/** @description Get exposed ports for this instance */
|
|
383
|
+
href: string;
|
|
384
|
+
};
|
|
385
|
+
restart?: {
|
|
386
|
+
/** @description Restart this instance */
|
|
387
|
+
href: string;
|
|
388
|
+
};
|
|
389
|
+
update?: {
|
|
390
|
+
/** @description Update this instance */
|
|
391
|
+
href: string;
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
/** Default Response */
|
|
397
|
+
400: {
|
|
398
|
+
schema: {
|
|
399
|
+
/** @description Reason why something failed */
|
|
400
|
+
reason: string;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
/** Default Response */
|
|
404
|
+
404: {
|
|
405
|
+
schema: {
|
|
406
|
+
/** @description Reason why something failed */
|
|
407
|
+
reason: string;
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
/** Default Response */
|
|
411
|
+
500: {
|
|
412
|
+
schema: {
|
|
413
|
+
/** @description Reason why something failed */
|
|
414
|
+
reason: string;
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
'/health/{id}': {
|
|
421
|
+
/** Return status of server instance */
|
|
422
|
+
get: {
|
|
423
|
+
parameters: {
|
|
424
|
+
path: {
|
|
425
|
+
/** Name of the server instance */
|
|
426
|
+
id: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
responses: {
|
|
430
|
+
/** Default Response */
|
|
431
|
+
200: {
|
|
432
|
+
schema: {
|
|
433
|
+
/** @enum {string} */
|
|
434
|
+
status: 'starting' | 'running' | 'stopped' | 'failed' | 'unknown';
|
|
435
|
+
images?: string[];
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
/** Default Response */
|
|
439
|
+
500: {
|
|
440
|
+
schema: {
|
|
441
|
+
/** @description Reason why something failed */
|
|
442
|
+
reason: string;
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
'/logs/{id}': {
|
|
449
|
+
/** Return the latest logs from the server instance */
|
|
450
|
+
get: {
|
|
451
|
+
parameters: {
|
|
452
|
+
query: {
|
|
453
|
+
timestamps?: boolean;
|
|
454
|
+
sinceSeconds?: number;
|
|
455
|
+
};
|
|
456
|
+
path: {
|
|
457
|
+
/** Name of the server instance */
|
|
458
|
+
id: string;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
responses: {
|
|
462
|
+
/** Default Response */
|
|
463
|
+
200: {
|
|
464
|
+
schema: string;
|
|
465
|
+
};
|
|
466
|
+
/** Default Response */
|
|
467
|
+
500: {
|
|
468
|
+
schema: {
|
|
469
|
+
/** @description Reason why something failed */
|
|
470
|
+
reason: string;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
'/ports/{id}': {
|
|
477
|
+
/** Return the exposed extra ports for server instance */
|
|
478
|
+
get: {
|
|
479
|
+
parameters: {
|
|
480
|
+
path: {
|
|
481
|
+
/** Name of the server instance */
|
|
482
|
+
id: string;
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
responses: {
|
|
486
|
+
/** Default Response */
|
|
487
|
+
200: {
|
|
488
|
+
schema: {
|
|
489
|
+
externalIp: string;
|
|
490
|
+
externalPort: number;
|
|
491
|
+
internalPort: number;
|
|
492
|
+
}[];
|
|
493
|
+
};
|
|
494
|
+
/** Default Response */
|
|
495
|
+
500: {
|
|
496
|
+
schema: {
|
|
497
|
+
/** @description Reason why something failed */
|
|
498
|
+
reason: string;
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
export interface definitions {
|
|
506
|
+
}
|
|
507
|
+
export interface operations {
|
|
508
|
+
}
|
|
509
|
+
export interface external {
|
|
510
|
+
}
|
|
511
|
+
export type NextcloudServer = paths['/serverinstance/{id}']['get']['responses']['200']['schema'];
|
|
512
|
+
export type NextcloudServerConfig = paths['/serverinstance']['post']['parameters']['body']['body'];
|
|
513
|
+
import { Context } from '@osaas/client-core';
|
|
514
|
+
/**
|
|
515
|
+
* @namespace nextcloud-server
|
|
516
|
+
* @description Empower your data with Nextcloud! Securely store, sync, and share your files, contacts, and calendars across devices. With robust security, expandability, and ease of use, your data thrives effortlessly.
|
|
517
|
+
* @author Eyevinn Technology AB <osc@eyevinn.se>
|
|
518
|
+
* @copyright 2025 Eyevinn Technology AB
|
|
519
|
+
*
|
|
520
|
+
*/
|
|
521
|
+
/**
|
|
522
|
+
* @typedef {Object} NextcloudServerConfig
|
|
523
|
+
* @property {string} name - Name of server
|
|
524
|
+
* @property {string} AdminUser - Choose an admin username
|
|
525
|
+
* @property {string} AdminPassword - Choose an admin password
|
|
526
|
+
* @property {string} [DatabaseUrl] - DatabaseUrl
|
|
527
|
+
|
|
528
|
+
*
|
|
529
|
+
*/
|
|
530
|
+
/**
|
|
531
|
+
* @typedef {Object} NextcloudServer
|
|
532
|
+
* @property {string} name - Name of the Nextcloud instance
|
|
533
|
+
* @property {string} url - URL of the Nextcloud instance
|
|
534
|
+
*
|
|
535
|
+
*/
|
|
536
|
+
/**
|
|
537
|
+
* Create a new Nextcloud instance
|
|
538
|
+
*
|
|
539
|
+
* @memberOf nextcloud-server
|
|
540
|
+
* @async
|
|
541
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
542
|
+
* @param {NextcloudServerConfig} body - Service instance configuration
|
|
543
|
+
* @returns {NextcloudServer} - Service instance
|
|
544
|
+
* @example
|
|
545
|
+
* import { Context } from '@osaas/client-core';
|
|
546
|
+
* import { createNextcloudServerInstance } from '@osaas/client-services';
|
|
547
|
+
*
|
|
548
|
+
* const ctx = new Context();
|
|
549
|
+
* const body: NextcloudServerConfig = { name: 'myinstance', ... };
|
|
550
|
+
* const instance = await createNextcloudServerInstance(ctx, body);
|
|
551
|
+
* console.log(instance.url);
|
|
552
|
+
*/
|
|
553
|
+
export declare function createNextcloudServerInstance(ctx: Context, body: NextcloudServerConfig): Promise<NextcloudServer>;
|
|
554
|
+
/**
|
|
555
|
+
* Remove a Nextcloud instance
|
|
556
|
+
*
|
|
557
|
+
* @memberOf nextcloud-server
|
|
558
|
+
* @async
|
|
559
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
560
|
+
* @param {string} name - Name of the server to be removed
|
|
561
|
+
*/
|
|
562
|
+
export declare function removeNextcloudServerInstance(ctx: Context, name: string): Promise<void>;
|
|
563
|
+
/**
|
|
564
|
+
* Get a Nextcloud instance
|
|
565
|
+
*
|
|
566
|
+
* @memberOf nextcloud-server
|
|
567
|
+
* @async
|
|
568
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
569
|
+
* @param {string} name - Name of the server to be retrieved
|
|
570
|
+
* @returns {NextcloudServer} - Service instance
|
|
571
|
+
* @example
|
|
572
|
+
* import { Context } from '@osaas/client-core';
|
|
573
|
+
* import { getNextcloudServerInstance } from '@osaas/client-services';
|
|
574
|
+
*
|
|
575
|
+
* const ctx = new Context();
|
|
576
|
+
* const instance = await getNextcloudServerInstance(ctx, 'myinstance');
|
|
577
|
+
* console.log(instance.url);
|
|
578
|
+
*/
|
|
579
|
+
export declare function getNextcloudServerInstance(ctx: Context, name: string): Promise<NextcloudServer>;
|
|
580
|
+
//# sourceMappingURL=nextcloud-server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nextcloud-server.d.ts","sourceRoot":"","sources":["../../src/generated/nextcloud-server.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,KAAK;IACpB,GAAG,EAAE;QACH,4BAA4B;QAC5B,GAAG,EAAE;YACH,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,OAAO,CAAC,EAAE,OAAO,CAAC;iBACnB,CAAC;aACH,CAAC;YACF,SAAS,EAAE;gBACT,uBAAuB;gBACvB,GAAG,EAAE;oBACH,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,GACrB,OAAO,CAAC;wBACN,MAAM,EAAE,MAAM,CAAC;wBACf,QAAQ,EAAE;4BACR,qBAAqB,EAAE,MAAM,CAAC;yBAC/B,CAAC;wBACF,WAAW,EAAE,MAAM,CAAC;wBACpB,MAAM,EAAE;4BACN,IAAI,EAAE;gCACJ,IAAI,EAAE,MAAM,CAAC;6BACd,CAAC;4BACF,GAAG,EAAE;gCACH,IAAI,EAAE,MAAM,CAAC;6BACd,CAAC;yBACH,CAAC;qBACH,CAAC,CAAC;iBACN,CAAC;gBACF,uBAAuB;gBACvB,GAAG,EAAE;oBACH,MAAM,EAAE;wBACN,MAAM,EAAE,MAAM,CAAC;wBACf,MAAM,EAAE,MAAM,CAAC;qBAChB,CAAC;iBACH,CAAC;aACH,CAAC;SACH,CAAC;KACH,CAAC;IACF,iBAAiB,EAAE;QACjB,wCAAwC;QACxC,GAAG,EAAE;YACH,SAAS,EAAE;gBACT,uBAAuB;gBACvB,GAAG,EAAE;oBACH,MAAM,EAAE,CAAC;wBACP,+CAA+C;wBAC/C,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,EAA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CAAC,QAAQ,CAAC,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAC/B,KAAK,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AACjE,OAAO,EACL,OAAO,EAKR,MAAM,oBAAoB,CAAC;AAC5B;;;;;;GAMG;AAEH;;;;;;;;GAQG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,6BAA6B,CACjD,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,qBAAqB,GAC1B,OAAO,CAAC,eAAe,CAAC,CAY1B;AAED;;;;;;;GAOG;AACH,wBAAsB,6BAA6B,CACjD,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC,CAKf;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,0BAA0B,CAC9C,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,eAAe,CAAC,CAK1B"}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.getNextcloudServerInstance = exports.removeNextcloudServerInstance = exports.createNextcloudServerInstance = void 0;
|
|
8
|
+
const client_core_1 = require("@osaas/client-core");
|
|
9
|
+
/**
|
|
10
|
+
* @namespace nextcloud-server
|
|
11
|
+
* @description Empower your data with Nextcloud! Securely store, sync, and share your files, contacts, and calendars across devices. With robust security, expandability, and ease of use, your data thrives effortlessly.
|
|
12
|
+
* @author Eyevinn Technology AB <osc@eyevinn.se>
|
|
13
|
+
* @copyright 2025 Eyevinn Technology AB
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @typedef {Object} NextcloudServerConfig
|
|
18
|
+
* @property {string} name - Name of server
|
|
19
|
+
* @property {string} AdminUser - Choose an admin username
|
|
20
|
+
* @property {string} AdminPassword - Choose an admin password
|
|
21
|
+
* @property {string} [DatabaseUrl] - DatabaseUrl
|
|
22
|
+
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* @typedef {Object} NextcloudServer
|
|
27
|
+
* @property {string} name - Name of the Nextcloud instance
|
|
28
|
+
* @property {string} url - URL of the Nextcloud instance
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Create a new Nextcloud instance
|
|
33
|
+
*
|
|
34
|
+
* @memberOf nextcloud-server
|
|
35
|
+
* @async
|
|
36
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
37
|
+
* @param {NextcloudServerConfig} body - Service instance configuration
|
|
38
|
+
* @returns {NextcloudServer} - Service instance
|
|
39
|
+
* @example
|
|
40
|
+
* import { Context } from '@osaas/client-core';
|
|
41
|
+
* import { createNextcloudServerInstance } from '@osaas/client-services';
|
|
42
|
+
*
|
|
43
|
+
* const ctx = new Context();
|
|
44
|
+
* const body: NextcloudServerConfig = { name: 'myinstance', ... };
|
|
45
|
+
* const instance = await createNextcloudServerInstance(ctx, body);
|
|
46
|
+
* console.log(instance.url);
|
|
47
|
+
*/
|
|
48
|
+
async function createNextcloudServerInstance(ctx, body) {
|
|
49
|
+
const serviceAccessToken = await ctx.getServiceAccessToken('nextcloud-server');
|
|
50
|
+
const instance = await (0, client_core_1.createInstance)(ctx, 'nextcloud-server', serviceAccessToken, body);
|
|
51
|
+
await (0, client_core_1.waitForInstanceReady)('nextcloud-server', instance.name, ctx);
|
|
52
|
+
return instance;
|
|
53
|
+
}
|
|
54
|
+
exports.createNextcloudServerInstance = createNextcloudServerInstance;
|
|
55
|
+
/**
|
|
56
|
+
* Remove a Nextcloud instance
|
|
57
|
+
*
|
|
58
|
+
* @memberOf nextcloud-server
|
|
59
|
+
* @async
|
|
60
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
61
|
+
* @param {string} name - Name of the server to be removed
|
|
62
|
+
*/
|
|
63
|
+
async function removeNextcloudServerInstance(ctx, name) {
|
|
64
|
+
const serviceAccessToken = await ctx.getServiceAccessToken('nextcloud-server');
|
|
65
|
+
await (0, client_core_1.removeInstance)(ctx, 'nextcloud-server', name, serviceAccessToken);
|
|
66
|
+
}
|
|
67
|
+
exports.removeNextcloudServerInstance = removeNextcloudServerInstance;
|
|
68
|
+
/**
|
|
69
|
+
* Get a Nextcloud instance
|
|
70
|
+
*
|
|
71
|
+
* @memberOf nextcloud-server
|
|
72
|
+
* @async
|
|
73
|
+
* @param {Context} context - Open Source Cloud configuration context
|
|
74
|
+
* @param {string} name - Name of the server to be retrieved
|
|
75
|
+
* @returns {NextcloudServer} - Service instance
|
|
76
|
+
* @example
|
|
77
|
+
* import { Context } from '@osaas/client-core';
|
|
78
|
+
* import { getNextcloudServerInstance } from '@osaas/client-services';
|
|
79
|
+
*
|
|
80
|
+
* const ctx = new Context();
|
|
81
|
+
* const instance = await getNextcloudServerInstance(ctx, 'myinstance');
|
|
82
|
+
* console.log(instance.url);
|
|
83
|
+
*/
|
|
84
|
+
async function getNextcloudServerInstance(ctx, name) {
|
|
85
|
+
const serviceAccessToken = await ctx.getServiceAccessToken('nextcloud-server');
|
|
86
|
+
return await (0, client_core_1.getInstance)(ctx, 'nextcloud-server', name, serviceAccessToken);
|
|
87
|
+
}
|
|
88
|
+
exports.getNextcloudServerInstance = getNextcloudServerInstance;
|
|
89
|
+
//# sourceMappingURL=nextcloud-server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nextcloud-server.js","sourceRoot":"","sources":["../../src/generated/nextcloud-server.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAmgBH,oDAM4B;AAC5B;;;;;;GAMG;AAEH;;;;;;;;GAQG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACI,KAAK,UAAU,6BAA6B,CACjD,GAAY,EACZ,IAA2B;IAE3B,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CACxD,kBAAkB,CACnB,CAAC;IACF,MAAM,QAAQ,GAAG,MAAM,IAAA,4BAAc,EACnC,GAAG,EACH,kBAAkB,EAClB,kBAAkB,EAClB,IAAI,CACL,CAAC;IACF,MAAM,IAAA,kCAAoB,EAAC,kBAAkB,EAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IACnE,OAAO,QAAQ,CAAC;AAClB,CAAC;AAfD,sEAeC;AAED;;;;;;;GAOG;AACI,KAAK,UAAU,6BAA6B,CACjD,GAAY,EACZ,IAAY;IAEZ,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CACxD,kBAAkB,CACnB,CAAC;IACF,MAAM,IAAA,4BAAc,EAAC,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC;AAC1E,CAAC;AARD,sEAQC;AAED;;;;;;;;;;;;;;;GAeG;AACI,KAAK,UAAU,0BAA0B,CAC9C,GAAY,EACZ,IAAY;IAEZ,MAAM,kBAAkB,GAAG,MAAM,GAAG,CAAC,qBAAqB,CACxD,kBAAkB,CACnB,CAAC;IACF,OAAO,MAAM,IAAA,yBAAW,EAAC,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE,kBAAkB,CAAC,CAAC;AAC9E,CAAC;AARD,gEAQC"}
|