@glodon-aiot/apis 2.4.7

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.
Files changed (64) hide show
  1. package/README.git.md +73 -0
  2. package/README.lib.md +135 -0
  3. package/dist/es/aecpilot/cosntant.mjs +5 -0
  4. package/dist/es/aecpilot/index.mjs +510 -0
  5. package/dist/es/aecpilot/model.mjs +9 -0
  6. package/dist/es/aecpilotui/index.mjs +607 -0
  7. package/dist/es/agentcliui/index.mjs +418 -0
  8. package/dist/es/aishop/index.mjs +97 -0
  9. package/dist/es/aishop/model.mjs +5 -0
  10. package/dist/es/auth/index.mjs +52 -0
  11. package/dist/es/base/index.mjs +158 -0
  12. package/dist/es/contralyze/index.mjs +91 -0
  13. package/dist/es/cvforce/index.mjs +431 -0
  14. package/dist/es/cvforce/model.mjs +12 -0
  15. package/dist/es/cvforce-datahub/index.mjs +435 -0
  16. package/dist/es/cvforce-datahub/model.mjs +8 -0
  17. package/dist/es/cvforce-modelservice/index.mjs +114 -0
  18. package/dist/es/cvforce-modelservice/model.mjs +4 -0
  19. package/dist/es/index.mjs +62 -0
  20. package/dist/es/node_modules/uuid/dist/esm-browser/native.mjs +6 -0
  21. package/dist/es/node_modules/uuid/dist/esm-browser/rng.mjs +10 -0
  22. package/dist/es/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
  23. package/dist/es/node_modules/uuid/dist/esm-browser/v4.mjs +19 -0
  24. package/dist/es/panorama/index.mjs +136 -0
  25. package/dist/es/panorama/model.mjs +5 -0
  26. package/dist/es/pluginmgr/index.mjs +85 -0
  27. package/dist/es/user/index.mjs +193 -0
  28. package/dist/es/utils/fetchEventSource/fetch.mjs +112 -0
  29. package/dist/es/utils/fetchEventSource/parse.mjs +97 -0
  30. package/dist/es/utils/index.mjs +9 -0
  31. package/dist/lib/index.js +3 -0
  32. package/dist/src/aecpilot/cosntant.d.ts +8 -0
  33. package/dist/src/aecpilot/index.d.ts +79 -0
  34. package/dist/src/aecpilot/model.d.ts +350 -0
  35. package/dist/src/aecpilotui/index.d.ts +72 -0
  36. package/dist/src/aecpilotui/model.d.ts +63 -0
  37. package/dist/src/agentcliui/index.d.ts +72 -0
  38. package/dist/src/agentcliui/model.d.ts +39 -0
  39. package/dist/src/aishop/index.d.ts +26 -0
  40. package/dist/src/aishop/model.d.ts +111 -0
  41. package/dist/src/auth/index.d.ts +17 -0
  42. package/dist/src/auth/model.d.ts +24 -0
  43. package/dist/src/base/index.d.ts +41 -0
  44. package/dist/src/base/model.d.ts +20 -0
  45. package/dist/src/contralyze/index.d.ts +24 -0
  46. package/dist/src/contralyze/model.d.ts +75 -0
  47. package/dist/src/cvforce/index.d.ts +130 -0
  48. package/dist/src/cvforce/model.d.ts +519 -0
  49. package/dist/src/cvforce-datahub/index.d.ts +186 -0
  50. package/dist/src/cvforce-datahub/model.d.ts +438 -0
  51. package/dist/src/cvforce-modelservice/index.d.ts +23 -0
  52. package/dist/src/cvforce-modelservice/model.d.ts +156 -0
  53. package/dist/src/index.d.ts +19 -0
  54. package/dist/src/panorama/index.d.ts +42 -0
  55. package/dist/src/panorama/model.d.ts +263 -0
  56. package/dist/src/pluginmgr/index.d.ts +28 -0
  57. package/dist/src/pluginmgr/model.d.ts +48 -0
  58. package/dist/src/user/index.d.ts +42 -0
  59. package/dist/src/user/model.d.ts +247 -0
  60. package/dist/src/utils/fetchEventSource/fetch.d.ts +44 -0
  61. package/dist/src/utils/fetchEventSource/index.d.ts +1 -0
  62. package/dist/src/utils/fetchEventSource/parse.d.ts +36 -0
  63. package/dist/src/utils/index.d.ts +1 -0
  64. package/package.json +88 -0
@@ -0,0 +1,435 @@
1
+ var v = Object.defineProperty, I = Object.defineProperties;
2
+ var V = Object.getOwnPropertyDescriptors;
3
+ var g = Object.getOwnPropertySymbols;
4
+ var b = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
5
+ var S = (n, s, t) => s in n ? v(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t, h = (n, s) => {
6
+ for (var t in s || (s = {}))
7
+ b.call(s, t) && S(n, t, s[t]);
8
+ if (g)
9
+ for (var t of g(s))
10
+ D.call(s, t) && S(n, t, s[t]);
11
+ return n;
12
+ }, y = (n, s) => I(n, V(s));
13
+ var a = (n, s, t) => new Promise((e, r) => {
14
+ var l = (i) => {
15
+ try {
16
+ p(t.next(i));
17
+ } catch (d) {
18
+ r(d);
19
+ }
20
+ }, c = (i) => {
21
+ try {
22
+ p(t.throw(i));
23
+ } catch (d) {
24
+ r(d);
25
+ }
26
+ }, p = (i) => i.done ? e(i.value) : Promise.resolve(i.value).then(l, c);
27
+ p((t = t.apply(n, s)).next());
28
+ });
29
+ import L from "axios";
30
+ import { UploadZipsStatus as u } from "./model.mjs";
31
+ import { GenerateStatus as w, IDatasetLevel as z, PreLabelTaskStatus as E, SubsectionStatus as G } from "./model.mjs";
32
+ import { BaseApi as k } from "../base/index.mjs";
33
+ import "@glodon-aiot/minio";
34
+ import "dayjs";
35
+ import "../agentcliui/index.mjs";
36
+ import "../aecpilotui/index.mjs";
37
+ import { getUuid as T } from "../utils/index.mjs";
38
+ class F extends k {
39
+ constructor(s, t) {
40
+ super(s != null ? s : L.create(), t);
41
+ }
42
+ getDatasets(s) {
43
+ return a(this, null, function* () {
44
+ return this.get("/datasets", s);
45
+ });
46
+ }
47
+ postDatasets(s) {
48
+ return a(this, null, function* () {
49
+ return this.post("/datasets", s);
50
+ });
51
+ }
52
+ getDatasetsId(s) {
53
+ return a(this, null, function* () {
54
+ return this.get(`/datasets/${s}`);
55
+ });
56
+ }
57
+ delDatasetsId(s) {
58
+ return a(this, null, function* () {
59
+ return this.delete(`/datasets/${s}`);
60
+ });
61
+ }
62
+ patchDatasetsId(s, t) {
63
+ return a(this, null, function* () {
64
+ return this.patch(`/datasets/${s}`, t);
65
+ });
66
+ }
67
+ getDatasetsIdVersions(s, t, e) {
68
+ return a(this, null, function* () {
69
+ return this.get(`/datasets/${s}/versions?pageNo=${t}&pageSize=${e}`);
70
+ });
71
+ }
72
+ getDatasetsIdVersionsVidNextno(s) {
73
+ return a(this, null, function* () {
74
+ return this.get(`/datasets/${s}/versions/nextno`);
75
+ });
76
+ }
77
+ getS3Iam(s, t) {
78
+ return a(this, null, function* () {
79
+ return this.post("/s3/iam", {
80
+ datasetId: s,
81
+ publicBucket: t
82
+ });
83
+ });
84
+ }
85
+ postDatasetsIdVersions(s, t) {
86
+ return a(this, null, function* () {
87
+ return this.post(`/datasets/${s}/versions`, t);
88
+ });
89
+ }
90
+ patchDatasetsIdVersionsVid(s, t, e) {
91
+ return a(this, null, function* () {
92
+ return this.patch(`/datasets/${s}/versions/${t}`, e);
93
+ });
94
+ }
95
+ getDatasetsIdVersionsVid(s, t) {
96
+ return a(this, null, function* () {
97
+ return this.get(`/datasets/${s}/versions/${t}`);
98
+ });
99
+ }
100
+ delDatasetsIdVersionsVid(s, t) {
101
+ return a(this, null, function* () {
102
+ return this.delete(`/datasets/${s}/versions/${t}`);
103
+ });
104
+ }
105
+ getDatasetsIdVersionsNo(s, t) {
106
+ return a(this, null, function* () {
107
+ return this.get(`/datasets/${s}/versions/no`, t);
108
+ });
109
+ }
110
+ listDatasetsIdLabels(s, t) {
111
+ return a(this, null, function* () {
112
+ return this.listPaged(`/datasets/${s}/labels`, t);
113
+ });
114
+ }
115
+ getDatasetsIdVersionsVidLabelcount(s, t, e) {
116
+ return a(this, null, function* () {
117
+ return this.get(`/datasets/${s}/versions/${t}/labelcount`, e);
118
+ });
119
+ }
120
+ getDatasetsIdVersionsVidSamples(s, t, e) {
121
+ return a(this, null, function* () {
122
+ return this.get(`/datasets/${s}/versions/${t}/samples`, e);
123
+ });
124
+ }
125
+ updateSamples(s, t, e, r) {
126
+ return a(this, null, function* () {
127
+ return this.patch(`/datasets/${s}/versions/${t}/samples`, {
128
+ samples: e,
129
+ confirmStatus: r
130
+ });
131
+ });
132
+ }
133
+ delDatasetsIdVersionsVidSamplesId(s, t, e) {
134
+ return a(this, null, function* () {
135
+ return this.delete(`/datasets/${s}/versions/${t}/samples/${e}`);
136
+ });
137
+ }
138
+ delDatasetsIdVersionsVidLlmSamplesId(s, t, e) {
139
+ return a(this, null, function* () {
140
+ return this.delete(`datasets/${s}/versions/${t}/llmSamples/${e}`);
141
+ });
142
+ }
143
+ getDatasetsIdVersionsVidSsamplesSid(s, t, e) {
144
+ return a(this, null, function* () {
145
+ return this.get(`/datasets/${s}/versions/${t}/samples/${e}`).then((r) => y(h({}, r), {
146
+ labels: r.labels ? r.labels.map((l) => y(h({}, l), {
147
+ uuid: l.uuid || T()
148
+ })) : []
149
+ }));
150
+ });
151
+ }
152
+ getImportInfo() {
153
+ return a(this, null, function* () {
154
+ return this.get("/importInfo");
155
+ });
156
+ }
157
+ getOptionsMarkType() {
158
+ return a(this, null, function* () {
159
+ return this.get("/options/markType");
160
+ });
161
+ }
162
+ getOptionsOcrMarkTmpl() {
163
+ return a(this, null, function* () {
164
+ return this.get("/options/ocrMarkTmpl");
165
+ });
166
+ }
167
+ getOptionsLlmMarkTmpl() {
168
+ return a(this, null, function* () {
169
+ return this.get("/options/llmMarkTmpl");
170
+ });
171
+ }
172
+ getOptionsLlmResponseSort() {
173
+ return a(this, null, function* () {
174
+ return this.get("/options/llmResponseSort");
175
+ });
176
+ }
177
+ getOptionsImgproxy() {
178
+ return a(this, null, function* () {
179
+ return this.get("/options/imgproxy");
180
+ });
181
+ }
182
+ getDeduplication(s, t) {
183
+ return a(this, null, function* () {
184
+ return this.post("/files/deduplication", {
185
+ md5s: s,
186
+ datasetId: t
187
+ });
188
+ });
189
+ }
190
+ postDatasetsIdVersionsVidSamples(s, t, e) {
191
+ return a(this, null, function* () {
192
+ return this.post(`/datasets/${s}/versions/${t}/samples`, e);
193
+ });
194
+ }
195
+ patchDatasetsIdVersionsVidSamples(s, t, e) {
196
+ return a(this, null, function* () {
197
+ return this.patch(`/datasets/${s}/versions/${t}/samples`, e);
198
+ });
199
+ }
200
+ listCategory(s) {
201
+ return a(this, null, function* () {
202
+ return this.list(`/datasets/${s}/catagory`);
203
+ });
204
+ }
205
+ postCategory(s, t) {
206
+ return a(this, null, function* () {
207
+ return this.post(`/datasets/${s}/catagory`, {
208
+ name: t
209
+ });
210
+ });
211
+ }
212
+ updateCategory(s, t, e) {
213
+ return a(this, null, function* () {
214
+ return this.patch(`/datasets/${s}/catagory/${t}`, {
215
+ name: e
216
+ });
217
+ });
218
+ }
219
+ deleteCategory(s, t) {
220
+ return a(this, null, function* () {
221
+ return this.delete(`/datasets/${s}/catagory/${t}`);
222
+ });
223
+ }
224
+ postDatasetIdVersionIdFilesDeduplication(s, t, e) {
225
+ return a(this, null, function* () {
226
+ return this.post(`/datasets/${s}/versions/${t}/files/deduplication`, e);
227
+ });
228
+ }
229
+ postDatasetIdVersionIdLlmSamples(s, t, e) {
230
+ return a(this, null, function* () {
231
+ return this.post(`/datasets/${s}/versions/${t}/llmSamples`, e);
232
+ });
233
+ }
234
+ patchDatasetIdVersionIdLlmSampleId(s, t, e, r) {
235
+ return a(this, null, function* () {
236
+ return this.patch(`/datasets/${s}/versions/${t}/llmSamples/${e}`, r);
237
+ });
238
+ }
239
+ postLlmSamplesSubsection(s, t, e) {
240
+ return a(this, null, function* () {
241
+ return this.post(`/datasets/${s}/versions/${t}/llmSamples/subsection`, e);
242
+ });
243
+ }
244
+ generatellmSamplesSubsection(s, t, e) {
245
+ return a(this, null, function* () {
246
+ return this.post(`/datasets/${s}/versions/${t}/llmSamples/subsection`, e);
247
+ });
248
+ }
249
+ listSubsection(s, t, e, r) {
250
+ return a(this, null, function* () {
251
+ return this.listPaged(`/datasets/${s}/versions/${t}/llmSamples/${e}/subsection`, r);
252
+ });
253
+ }
254
+ postSubsection(s, t, e, r) {
255
+ return a(this, null, function* () {
256
+ return this.post(`/datasets/${s}/versions/${t}/llmSamples/${e}/subsection`, r);
257
+ });
258
+ }
259
+ updateSubsection(s, t, e, r, l) {
260
+ return a(this, null, function* () {
261
+ return this.patch(`/datasets/${s}/versions/${t}/llmSamples/${e}/subsection/${r}`, l);
262
+ });
263
+ }
264
+ deleteSubsection(s, t, e, r) {
265
+ return a(this, null, function* () {
266
+ return this.delete(`/datasets/${s}/versions/${t}/llmSamples/${e}/subsection/${r}`);
267
+ });
268
+ }
269
+ llmSupervisedRecordGenerate(s) {
270
+ return a(this, null, function* () {
271
+ return this.post("/llm/supervisedRecord/generatedata", s);
272
+ });
273
+ }
274
+ llmSupervisedRecordAbordTask(s) {
275
+ return a(this, null, function* () {
276
+ return this.post("/llm/supervisedRecord/abortTask", s);
277
+ });
278
+ }
279
+ llmSupervisedRecordPauseTask(s) {
280
+ return a(this, null, function* () {
281
+ return this.post("/llm/supervisedRecord/pauseTask", s);
282
+ });
283
+ }
284
+ getLlmSupervisedRecord(s) {
285
+ return a(this, null, function* () {
286
+ return this.get(`/llm/supervisedRecord/${s}`);
287
+ });
288
+ }
289
+ getDatasetsIdVersionsIdLlmSamplesV2(s, t, e) {
290
+ return a(this, null, function* () {
291
+ return this.listPaged(`/datasets/${s}/versions/${t}/llmSamplesV2`, e);
292
+ });
293
+ }
294
+ postDatasetsIdVersionsIdLlmSamplesV2(s, t, e) {
295
+ return a(this, null, function* () {
296
+ return this.post(`/datasets/${s}/versions/${t}/llmSamplesV2`, e);
297
+ });
298
+ }
299
+ getDatasetsIdVersionsIdLlmSamplesV2Sid(s, t, e) {
300
+ return a(this, null, function* () {
301
+ return this.get(`/datasets/${s}/versions/${t}/llmSamplesV2/${e}`);
302
+ });
303
+ }
304
+ patchDatasetsIdVersionsIdLlmSamplesV2Sid(s, t, e, r) {
305
+ return a(this, null, function* () {
306
+ return this.patch(`/datasets/${s}/versions/${t}/llmSamplesV2/${e}`, r);
307
+ });
308
+ }
309
+ delDatasetsIdVersionsIdLlmSamplesV2Sid(s, t, e) {
310
+ return a(this, null, function* () {
311
+ return this.delete(`/datasets/${s}/versions/${t}/llmSamplesV2/${e}`);
312
+ });
313
+ }
314
+ getDatasetsIdVersionsIdExportLLMSamples(s, t) {
315
+ return a(this, null, function* () {
316
+ return this.getNonStandard(`/datasets/${s}/versions/${t}/exportLLMSamples`, {
317
+ responseType: "blob"
318
+ });
319
+ });
320
+ }
321
+ llmSamplesSubsectionView(s, t, e, r) {
322
+ return a(this, null, function* () {
323
+ return this.post(`/datasets/${s}/versions/${t}/llmSamples/${e}/previewSubsection`, r);
324
+ });
325
+ }
326
+ listLabels(s, t) {
327
+ return a(this, null, function* () {
328
+ return this.listPaged(`/datasets/${s}/labels`, t);
329
+ });
330
+ }
331
+ postLabels(s, t) {
332
+ return a(this, null, function* () {
333
+ return this.post(`/datasets/${s}/labels`, t);
334
+ });
335
+ }
336
+ patchLabel(s, t, e) {
337
+ return a(this, null, function* () {
338
+ return this.patch(`/datasets/${s}/labels/${t}`, e);
339
+ });
340
+ }
341
+ deleteLabel(s, t) {
342
+ return a(this, null, function* () {
343
+ return this.delete(`/datasets/${s}/labels/${t}`);
344
+ });
345
+ }
346
+ postUploadPicsZip(s, t, e) {
347
+ return a(this, null, function* () {
348
+ return this.post(`/datasets/${s}/versions/${t}/uploadzip`, e);
349
+ });
350
+ }
351
+ checkFileResult(s, t, e, r = 1e3, l) {
352
+ return a(this, null, function* () {
353
+ return new Promise((c, p) => {
354
+ const i = () => {
355
+ s ? this.getUploadPicsZipResult(s, t, e).then((m) => {
356
+ const o = m[0];
357
+ if (o.state === u.Started || o.state === u.Pending) {
358
+ const $ = o.process || 0;
359
+ l && l($);
360
+ }
361
+ if (o.state === u.Success && (clearInterval(d), c(o.lastTaskResult)), o.state === u.Failure) {
362
+ clearInterval(d);
363
+ const $ = "该文件处理失败";
364
+ p(Error($, {
365
+ cause: {
366
+ code: -101,
367
+ message: $,
368
+ data: o.lastTaskResult
369
+ }
370
+ }));
371
+ }
372
+ o.state === u.Abort && (clearInterval(d), c(o.lastTaskResult));
373
+ }).catch((m) => {
374
+ clearInterval(d), p(m);
375
+ }) : c(null);
376
+ }, d = setInterval(i, r);
377
+ i();
378
+ });
379
+ });
380
+ }
381
+ getUploadPicsZipResult(s, t, e) {
382
+ return a(this, null, function* () {
383
+ return this.get(`/datasets/${s}/versions/${t}/uploadzip`, e);
384
+ });
385
+ }
386
+ getUploadabort(s, t, e) {
387
+ return a(this, null, function* () {
388
+ return this.get(`/datasets/${s}/versions/${t}/uploadabort`, e);
389
+ });
390
+ }
391
+ postPreLabelTask(s, t, e) {
392
+ return a(this, null, function* () {
393
+ return this.post(`/datasets/${s}/versions/${t}/prelabeltask`, e);
394
+ });
395
+ }
396
+ getPreLabelTask(s, t) {
397
+ return a(this, null, function* () {
398
+ return this.get(`/datasets/${s}/versions/${t}/prelabeltask`);
399
+ });
400
+ }
401
+ delPreLabelTask(s, t, e) {
402
+ return a(this, null, function* () {
403
+ return this.delete(`/datasets/${s}/versions/${t}/prelabeltask/${e}`);
404
+ });
405
+ }
406
+ // 物体检测预标注一键保存
407
+ getAllConfirmSamples(s, t) {
408
+ return a(this, null, function* () {
409
+ return this.get(`/datasets/${s}/versions/${t}/confirm`);
410
+ });
411
+ }
412
+ getDataSetCopyTask(s, t) {
413
+ return a(this, null, function* () {
414
+ return this.get(`/datasets/${s}/versions/${t}/copyDataset`);
415
+ });
416
+ }
417
+ postDataSetCopyTask(s, t, e) {
418
+ return a(this, null, function* () {
419
+ return this.post(`/datasets/${s}/versions/${t}/copyDataset`, e);
420
+ });
421
+ }
422
+ deleteDatasetCopyTask(s, t, e) {
423
+ return a(this, null, function* () {
424
+ return this.delete(`/datasets/${s}/versions/${t}/copyDataset`, e);
425
+ });
426
+ }
427
+ }
428
+ export {
429
+ F as CVForceDatahubApi,
430
+ w as GenerateStatus,
431
+ z as IDatasetLevel,
432
+ E as PreLabelTaskStatus,
433
+ G as SubsectionStatus,
434
+ u as UploadZipsStatus
435
+ };
@@ -0,0 +1,8 @@
1
+ var i = /* @__PURE__ */ ((r) => (r[r.inital = 0] = "inital", r[r.success = 1] = "success", r[r.processing = 2] = "processing", r[r.failed = 3] = "failed", r))(i || {}), d = /* @__PURE__ */ ((r) => (r[r.inital = 0] = "inital", r[r.processing = 1] = "processing", r[r.paused = 2] = "paused", r[r.failed = 3] = "failed", r[r.done = 4] = "done", r))(d || {}), g = /* @__PURE__ */ ((r) => (r.Pending = "PENDING", r.Started = "STARTED", r.Failure = "FAILURE", r.Success = "SUCCESS", r.Abort = "ABORT", r))(g || {}), E = /* @__PURE__ */ ((r) => (r.Pending = "PENDING", r.Started = "STARTED", r.Success = "SUCCESS", r.Failure = "FAILURE ", r))(E || {}), A = /* @__PURE__ */ ((r) => (r[r.all = 0] = "all", r[r.general = 1] = "general", r[r.major = 2] = "major", r))(A || {});
2
+ export {
3
+ d as GenerateStatus,
4
+ A as IDatasetLevel,
5
+ E as PreLabelTaskStatus,
6
+ i as SubsectionStatus,
7
+ g as UploadZipsStatus
8
+ };
@@ -0,0 +1,114 @@
1
+ var r = (s, e, t) => new Promise((d, l) => {
2
+ var n = (i) => {
3
+ try {
4
+ c(t.next(i));
5
+ } catch (o) {
6
+ l(o);
7
+ }
8
+ }, S = (i) => {
9
+ try {
10
+ c(t.throw(i));
11
+ } catch (o) {
12
+ l(o);
13
+ }
14
+ }, c = (i) => i.done ? d(i.value) : Promise.resolve(i.value).then(n, S);
15
+ c((t = t.apply(s, e)).next());
16
+ });
17
+ import v from "axios";
18
+ import { BaseApi as p } from "../base/index.mjs";
19
+ class u extends p {
20
+ constructor(e, t) {
21
+ super(e != null ? e : v.create(), t);
22
+ }
23
+ listModelServices(e) {
24
+ return r(this, null, function* () {
25
+ return this.listPaged("/modelService", e);
26
+ });
27
+ }
28
+ postModelService(e) {
29
+ return r(this, null, function* () {
30
+ return this.post("/modelService", e);
31
+ });
32
+ }
33
+ getModelServiceById(e) {
34
+ return r(this, null, function* () {
35
+ return this.get(`/modelService/${e}`);
36
+ });
37
+ }
38
+ patchModelServiceById(e, t) {
39
+ return r(this, null, function* () {
40
+ return this.patch(`/modelService/${e}`, t);
41
+ });
42
+ }
43
+ deleteModelService(e) {
44
+ return r(this, null, function* () {
45
+ return this.delete(`/modelService/${e}`);
46
+ });
47
+ }
48
+ getEnableModelService(e) {
49
+ return r(this, null, function* () {
50
+ return this.get(`/modelService/${e}/enable`);
51
+ });
52
+ }
53
+ getDisableModelService(e) {
54
+ return r(this, null, function* () {
55
+ return this.get(`/modelService/${e}/disable`);
56
+ });
57
+ }
58
+ // 上架
59
+ getModelServiceList(e) {
60
+ return r(this, null, function* () {
61
+ return this.get(`/modelService/${e}/list`);
62
+ });
63
+ }
64
+ // 下架
65
+ getModelServiceDelist(e) {
66
+ return r(this, null, function* () {
67
+ return this.get(`/modelService/${e}/delist`);
68
+ });
69
+ }
70
+ // 导入
71
+ importService(e) {
72
+ return r(this, null, function* () {
73
+ return this.post("/modelService/import", e);
74
+ });
75
+ }
76
+ // 编辑服务
77
+ patchModelService(e, t) {
78
+ return r(this, null, function* () {
79
+ return this.patch(`/modelService/${e}`, t);
80
+ });
81
+ }
82
+ // async listStatistic(params: PageQueryParams & IStatisticQueryParams) {
83
+ // return this.listPaged<IStatistic>(`/modelService/statistics`, params);
84
+ // }
85
+ // async getServiceStastic(sid: string, params: IServiceStasticParams) {
86
+ // return this.get<IServiceStastic[]>(
87
+ // `/modelService/${sid}/statistics`,
88
+ // params
89
+ // );
90
+ // }
91
+ openModelServices(e) {
92
+ return r(this, null, function* () {
93
+ return this.get("/openModelService", e);
94
+ });
95
+ }
96
+ importMirronService(e) {
97
+ return r(this, null, function* () {
98
+ return this.post("/modelService/importMirron", e);
99
+ });
100
+ }
101
+ patchMirronService(e, t) {
102
+ return r(this, null, function* () {
103
+ return this.patch(`/modelService/importMirron/${e}`, t);
104
+ });
105
+ }
106
+ getServiceSignList(e) {
107
+ return r(this, null, function* () {
108
+ return this.get("/serviceSign", e);
109
+ });
110
+ }
111
+ }
112
+ export {
113
+ u as ModelServiceApi
114
+ };
@@ -0,0 +1,4 @@
1
+ var p = /* @__PURE__ */ ((i) => (i[i.minio = 0] = "minio", i[i.pvc = 1] = "pvc", i))(p || {});
2
+ export {
3
+ p as ImodelStoreEnum
4
+ };
@@ -0,0 +1,62 @@
1
+ import { AuthApi as t } from "./auth/index.mjs";
2
+ import { BaseApi as p, needPrettifyMsg as i, prettifyMsg as a } from "./base/index.mjs";
3
+ import { DataApi as A } from "./user/index.mjs";
4
+ import { PanoramaApi as m } from "./panorama/index.mjs";
5
+ import { PanoramaPluginMgrApi as n } from "./pluginmgr/index.mjs";
6
+ import { AECPilotApi as S } from "./aecpilot/index.mjs";
7
+ import { AgentClientUIApi as c } from "./agentcliui/index.mjs";
8
+ import { AecpilotUIApi as P } from "./aecpilotui/index.mjs";
9
+ import { CVForceApi as g } from "./cvforce/index.mjs";
10
+ import { CVForceDatahubApi as M } from "./cvforce-datahub/index.mjs";
11
+ import { ModelServiceApi as y } from "./cvforce-modelservice/index.mjs";
12
+ import { AIShopApi as R } from "./aishop/index.mjs";
13
+ import { ContralyzeApi as _ } from "./contralyze/index.mjs";
14
+ import { ISpacetwinStatus as L, RecordStatus as v } from "./panorama/model.mjs";
15
+ import { AecKnowledgeFileStatus as G, IFileOrigin as H, IHistoryRole as K, ISourceType as O, IThinkingStatus as U, IversionInfo as b } from "./aecpilot/model.mjs";
16
+ import { PROMPT_SEARCH_MAX_LENGTH as k, PROMPT_TITLE_MAX_LENGTH as N } from "./aecpilot/cosntant.mjs";
17
+ import { ApplicationTypes as X, ArchiGptUIKeys as z, ChatMessageRole as B, ChatMode as Z, FileProccessStatus as j, KnowledgeFileStatus as q, KnowledgeType as J, PromptStatus as Q, SourceType as W } from "./cvforce/model.mjs";
18
+ import { GenerateStatus as $, IDatasetLevel as ee, PreLabelTaskStatus as oe, SubsectionStatus as te, UploadZipsStatus as re } from "./cvforce-datahub/model.mjs";
19
+ import { IChatRole as ie, OCRServiceId as ae } from "./aishop/model.mjs";
20
+ export {
21
+ S as AECPilotApi,
22
+ R as AIShopApi,
23
+ G as AecKnowledgeFileStatus,
24
+ P as AecpilotUIApi,
25
+ c as AgentClientUIApi,
26
+ X as ApplicationTypes,
27
+ z as ArchiGptUIKeys,
28
+ t as AuthApi,
29
+ p as BaseApi,
30
+ g as CVForceApi,
31
+ M as CVForceDatahubApi,
32
+ B as ChatMessageRole,
33
+ Z as ChatMode,
34
+ _ as ContralyzeApi,
35
+ A as DataApi,
36
+ j as FileProccessStatus,
37
+ $ as GenerateStatus,
38
+ ie as IChatRole,
39
+ ee as IDatasetLevel,
40
+ H as IFileOrigin,
41
+ K as IHistoryRole,
42
+ O as ISourceType,
43
+ L as ISpacetwinStatus,
44
+ U as IThinkingStatus,
45
+ b as IversionInfo,
46
+ q as KnowledgeFileStatus,
47
+ J as KnowledgeType,
48
+ y as ModelServiceApi,
49
+ ae as OCRServiceId,
50
+ k as PROMPT_SEARCH_MAX_LENGTH,
51
+ N as PROMPT_TITLE_MAX_LENGTH,
52
+ m as PanoramaApi,
53
+ n as PanoramaPluginMgrApi,
54
+ oe as PreLabelTaskStatus,
55
+ Q as PromptStatus,
56
+ v as RecordStatus,
57
+ W as SourceType,
58
+ te as SubsectionStatus,
59
+ re as UploadZipsStatus,
60
+ i as needPrettifyMsg,
61
+ a as prettifyMsg
62
+ };
@@ -0,0 +1,6 @@
1
+ const o = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto), t = {
2
+ randomUUID: o
3
+ };
4
+ export {
5
+ t as default
6
+ };
@@ -0,0 +1,10 @@
1
+ let t;
2
+ const e = new Uint8Array(16);
3
+ function o() {
4
+ if (!t && (t = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !t))
5
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
6
+ return t(e);
7
+ }
8
+ export {
9
+ o as default
10
+ };
@@ -0,0 +1,9 @@
1
+ const i = [];
2
+ for (let n = 0; n < 256; ++n)
3
+ i.push((n + 256).toString(16).slice(1));
4
+ function c(n, u = 0) {
5
+ return i[n[u + 0]] + i[n[u + 1]] + i[n[u + 2]] + i[n[u + 3]] + "-" + i[n[u + 4]] + i[n[u + 5]] + "-" + i[n[u + 6]] + i[n[u + 7]] + "-" + i[n[u + 8]] + i[n[u + 9]] + "-" + i[n[u + 10]] + i[n[u + 11]] + i[n[u + 12]] + i[n[u + 13]] + i[n[u + 14]] + i[n[u + 15]];
6
+ }
7
+ export {
8
+ c as unsafeStringify
9
+ };
@@ -0,0 +1,19 @@
1
+ import e from "./native.mjs";
2
+ import i from "./rng.mjs";
3
+ import { unsafeStringify as d } from "./stringify.mjs";
4
+ function g(n, m, t) {
5
+ if (e.randomUUID && !m && !n)
6
+ return e.randomUUID();
7
+ n = n || {};
8
+ const r = n.random || (n.rng || i)();
9
+ if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, m) {
10
+ t = t || 0;
11
+ for (let a = 0; a < 16; ++a)
12
+ m[t + a] = r[a];
13
+ return m;
14
+ }
15
+ return d(r);
16
+ }
17
+ export {
18
+ g as default
19
+ };