@qlik/api 1.31.0 → 1.33.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.
Files changed (142) hide show
  1. package/api-keys.d.ts +10 -10
  2. package/api-keys.js +64 -50
  3. package/apps.d.ts +56 -56
  4. package/apps.js +392 -304
  5. package/assistants.d.ts +1301 -0
  6. package/assistants.js +329 -0
  7. package/audits.d.ts +10 -10
  8. package/audits.js +48 -36
  9. package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
  10. package/auth.d.ts +17 -4
  11. package/auth.js +4 -2
  12. package/automation-connections.d.ts +366 -0
  13. package/automation-connections.js +107 -0
  14. package/automations.d.ts +27 -27
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +97 -0
  17. package/automl-deployments.js +29 -0
  18. package/automl-predictions.d.ts +214 -0
  19. package/automl-predictions.js +84 -0
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{KBSD75QL.js → 33GQY7N7.js} +1 -1
  23. package/chunks/{M64RLKVG.js → 62DXIH3S.js} +7 -5
  24. package/chunks/7MMXU6EL.js +86 -0
  25. package/chunks/{DLKLPD7T.js → GPRUNZV4.js} +3 -3
  26. package/chunks/{YKZ2QYHN.js → LIEZG7IM.js} +3 -3
  27. package/chunks/{FKDGGR2O.js → OTIO4SEJ.js} +698 -708
  28. package/chunks/{UZTIZ4H5.js → RP3EJGHG.js} +74 -74
  29. package/chunks/{GUU3KZGK.js → SPATCXXU.js} +9 -2
  30. package/chunks/{LY7RP2HA.js → XF3TPZKZ.js} +23 -8
  31. package/chunks/{6ZONDHRN.js → YYZCS5PW.js} +11 -4
  32. package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
  33. package/collections.d.ts +16 -15
  34. package/collections.js +98 -76
  35. package/conditions.d.ts +662 -0
  36. package/conditions.js +135 -0
  37. package/consumption.d.ts +182 -0
  38. package/consumption.js +26 -0
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +62 -0
  42. package/csrf-token.js +25 -0
  43. package/data-alerts.d.ts +1004 -0
  44. package/data-alerts.js +187 -0
  45. package/data-assets.d.ts +8 -8
  46. package/data-assets.js +50 -40
  47. package/data-connections.d.ts +16 -16
  48. package/data-connections.js +87 -69
  49. package/data-credentials.d.ts +11 -11
  50. package/data-credentials.js +52 -42
  51. package/data-files.d.ts +18 -18
  52. package/data-files.js +107 -83
  53. package/data-qualities.d.ts +175 -0
  54. package/data-qualities.js +50 -0
  55. package/data-sets.d.ts +424 -0
  56. package/data-sets.js +87 -0
  57. package/data-sources.d.ts +268 -0
  58. package/data-sources.js +45 -0
  59. package/data-stores.d.ts +537 -0
  60. package/data-stores.js +128 -0
  61. package/dcaas.d.ts +192 -0
  62. package/dcaas.js +45 -0
  63. package/di-projects.d.ts +673 -0
  64. package/di-projects.js +196 -0
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +370 -0
  68. package/encryption.js +118 -0
  69. package/extensions.d.ts +11 -11
  70. package/extensions.js +61 -47
  71. package/glossaries.d.ts +33 -33
  72. package/glossaries.js +221 -173
  73. package/groups.d.ts +12 -12
  74. package/groups.js +72 -56
  75. package/identity-providers.d.ts +11 -11
  76. package/identity-providers.js +67 -51
  77. package/index.d.ts +113 -4
  78. package/index.js +626 -40
  79. package/interceptors.d.ts +9 -2
  80. package/interceptors.js +2 -2
  81. package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
  82. package/items.d.ts +14 -13
  83. package/items.js +71 -55
  84. package/knowledgebases.d.ts +890 -0
  85. package/knowledgebases.js +203 -0
  86. package/licenses.d.ts +14 -14
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +712 -0
  89. package/lineage-graphs.js +108 -0
  90. package/ml.d.ts +2676 -0
  91. package/ml.js +477 -0
  92. package/notes.d.ts +110 -0
  93. package/notes.js +35 -0
  94. package/notifications.d.ts +98 -0
  95. package/notifications.js +26 -0
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +126 -0
  99. package/oauth-tokens.js +35 -0
  100. package/package.json +34 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +364 -0
  104. package/questions.js +38 -0
  105. package/quotas.d.ts +6 -6
  106. package/quotas.js +20 -16
  107. package/reload-tasks.d.ts +8 -8
  108. package/reload-tasks.js +46 -36
  109. package/reloads.d.ts +7 -7
  110. package/reloads.js +36 -28
  111. package/report-templates.d.ts +287 -0
  112. package/report-templates.js +94 -0
  113. package/reports.d.ts +4 -4
  114. package/reports.js +20 -16
  115. package/roles.d.ts +8 -8
  116. package/roles.js +46 -36
  117. package/sharing-tasks.d.ts +952 -0
  118. package/sharing-tasks.js +125 -0
  119. package/spaces.d.ts +22 -22
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +564 -0
  122. package/tasks.js +126 -0
  123. package/temp-contents.d.ts +7 -7
  124. package/temp-contents.js +30 -24
  125. package/tenants.d.ts +8 -8
  126. package/tenants.js +57 -45
  127. package/themes.d.ts +11 -11
  128. package/themes.js +61 -47
  129. package/transports.d.ts +8 -8
  130. package/transports.js +49 -37
  131. package/ui-config.d.ts +274 -0
  132. package/ui-config.js +91 -0
  133. package/users.d.ts +15 -15
  134. package/users.js +81 -63
  135. package/web-integrations.d.ts +8 -8
  136. package/web-integrations.js +46 -36
  137. package/web-notifications.d.ts +9 -9
  138. package/web-notifications.js +53 -41
  139. package/webhooks.d.ts +14 -14
  140. package/webhooks.js +88 -68
  141. package/chunks/2ZQ3ZX7F.js +0 -33
  142. package/invoke-fetch-types-Cq7bjkqn.d.ts +0 -243
package/ml.js ADDED
@@ -0,0 +1,477 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
+
8
+ // src/public/rest/ml.ts
9
+ async function getMlDeployments(query, options) {
10
+ return invokeFetch("ml", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/ml/deployments",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createMlDeployment(body, options) {
18
+ return invokeFetch("ml", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/ml/deployments",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function deleteMlDeployment(deploymentId, options) {
27
+ return invokeFetch("ml", {
28
+ method: "delete",
29
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}",
30
+ pathVariables: { deploymentId },
31
+ options
32
+ });
33
+ }
34
+ async function getMlDeployment(deploymentId, options) {
35
+ return invokeFetch("ml", {
36
+ method: "get",
37
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}",
38
+ pathVariables: { deploymentId },
39
+ options
40
+ });
41
+ }
42
+ async function patchMlDeployment(deploymentId, body, options) {
43
+ return invokeFetch("ml", {
44
+ method: "patch",
45
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}",
46
+ pathVariables: { deploymentId },
47
+ body,
48
+ contentType: "application/json",
49
+ options
50
+ });
51
+ }
52
+ async function activateModelsMlDeployment(deploymentId, options) {
53
+ return invokeFetch("ml", {
54
+ method: "post",
55
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/actions/activate-models",
56
+ pathVariables: { deploymentId },
57
+ options
58
+ });
59
+ }
60
+ async function deactivateModelsMlDeployment(deploymentId, options) {
61
+ return invokeFetch("ml", {
62
+ method: "post",
63
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/actions/deactivate-models",
64
+ pathVariables: { deploymentId },
65
+ options
66
+ });
67
+ }
68
+ async function getMlDeploymentAliases(deploymentId, query, options) {
69
+ return invokeFetch("ml", {
70
+ method: "get",
71
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/aliases",
72
+ pathVariables: { deploymentId },
73
+ query,
74
+ options
75
+ });
76
+ }
77
+ async function createMlDeploymentAliase(deploymentId, body, options) {
78
+ return invokeFetch("ml", {
79
+ method: "post",
80
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/aliases",
81
+ pathVariables: { deploymentId },
82
+ body,
83
+ contentType: "application/json",
84
+ options
85
+ });
86
+ }
87
+ async function deleteMlDeploymentAliase(deploymentId, aliasId, options) {
88
+ return invokeFetch("ml", {
89
+ method: "delete",
90
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/aliases/{aliasId}",
91
+ pathVariables: { deploymentId, aliasId },
92
+ options
93
+ });
94
+ }
95
+ async function getMlDeploymentAliase(deploymentId, aliasId, options) {
96
+ return invokeFetch("ml", {
97
+ method: "get",
98
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/aliases/{aliasId}",
99
+ pathVariables: { deploymentId, aliasId },
100
+ options
101
+ });
102
+ }
103
+ async function patchMlDeploymentAliase(deploymentId, aliasId, body, options) {
104
+ return invokeFetch("ml", {
105
+ method: "patch",
106
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/aliases/{aliasId}",
107
+ pathVariables: { deploymentId, aliasId },
108
+ body,
109
+ contentType: "application/json",
110
+ options
111
+ });
112
+ }
113
+ async function runMlDeploymentAliaseRealtimePredictions(deploymentId, aliasName, query, body, options) {
114
+ return invokeFetch("ml", {
115
+ method: "post",
116
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/aliases/{aliasName}/realtime-predictions/actions/run",
117
+ pathVariables: { deploymentId, aliasName },
118
+ query,
119
+ body,
120
+ contentType: "application/json",
121
+ options
122
+ });
123
+ }
124
+ async function getMlDeploymentBatchPredictions(deploymentId, query, options) {
125
+ return invokeFetch("ml", {
126
+ method: "get",
127
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/batch-predictions",
128
+ pathVariables: { deploymentId },
129
+ query,
130
+ options
131
+ });
132
+ }
133
+ async function createMlDeploymentBatchPrediction(deploymentId, body, options) {
134
+ return invokeFetch("ml", {
135
+ method: "post",
136
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/batch-predictions",
137
+ pathVariables: { deploymentId },
138
+ body,
139
+ contentType: "application/json",
140
+ options
141
+ });
142
+ }
143
+ async function deleteMlDeploymentBatchPrediction(deploymentId, batchPredictionId, options) {
144
+ return invokeFetch("ml", {
145
+ method: "delete",
146
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/batch-predictions/{batchPredictionId}",
147
+ pathVariables: { deploymentId, batchPredictionId },
148
+ options
149
+ });
150
+ }
151
+ async function getMlDeploymentBatchPrediction(deploymentId, batchPredictionId, options) {
152
+ return invokeFetch("ml", {
153
+ method: "get",
154
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/batch-predictions/{batchPredictionId}",
155
+ pathVariables: { deploymentId, batchPredictionId },
156
+ options
157
+ });
158
+ }
159
+ async function patchMlDeploymentBatchPrediction(deploymentId, batchPredictionId, body, options) {
160
+ return invokeFetch("ml", {
161
+ method: "patch",
162
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/batch-predictions/{batchPredictionId}",
163
+ pathVariables: { deploymentId, batchPredictionId },
164
+ body,
165
+ contentType: "application/json",
166
+ options
167
+ });
168
+ }
169
+ async function predictMlDeploymentBatchPrediction(deploymentId, batchPredictionId, options) {
170
+ return invokeFetch("ml", {
171
+ method: "post",
172
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/batch-predictions/{batchPredictionId}/actions/predict",
173
+ pathVariables: { deploymentId, batchPredictionId },
174
+ options
175
+ });
176
+ }
177
+ async function deleteMlDeploymentBatchPredictionSchedule(deploymentId, batchPredictionId, options) {
178
+ return invokeFetch("ml", {
179
+ method: "delete",
180
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/batch-predictions/{batchPredictionId}/schedule",
181
+ pathVariables: { deploymentId, batchPredictionId },
182
+ options
183
+ });
184
+ }
185
+ async function getMlDeploymentBatchPredictionSchedule(deploymentId, batchPredictionId, options) {
186
+ return invokeFetch("ml", {
187
+ method: "get",
188
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/batch-predictions/{batchPredictionId}/schedule",
189
+ pathVariables: { deploymentId, batchPredictionId },
190
+ options
191
+ });
192
+ }
193
+ async function updateMlDeploymentBatchPredictionSchedule(deploymentId, batchPredictionId, body, options) {
194
+ return invokeFetch("ml", {
195
+ method: "patch",
196
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/batch-predictions/{batchPredictionId}/schedule",
197
+ pathVariables: { deploymentId, batchPredictionId },
198
+ body,
199
+ contentType: "application/json",
200
+ options
201
+ });
202
+ }
203
+ async function setMlDeploymentBatchPredictionSchedule(deploymentId, batchPredictionId, body, options) {
204
+ return invokeFetch("ml", {
205
+ method: "put",
206
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/batch-predictions/{batchPredictionId}/schedule",
207
+ pathVariables: { deploymentId, batchPredictionId },
208
+ body,
209
+ contentType: "application/json",
210
+ options
211
+ });
212
+ }
213
+ async function addMlDeploymentModels(deploymentId, body, options) {
214
+ return invokeFetch("ml", {
215
+ method: "post",
216
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/models/actions/add",
217
+ pathVariables: { deploymentId },
218
+ body,
219
+ contentType: "application/json",
220
+ options
221
+ });
222
+ }
223
+ async function removeMlDeploymentModels(deploymentId, body, options) {
224
+ return invokeFetch("ml", {
225
+ method: "post",
226
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/models/actions/remove",
227
+ pathVariables: { deploymentId },
228
+ body,
229
+ contentType: "application/json",
230
+ options
231
+ });
232
+ }
233
+ async function runMlDeploymentRealtimePredictions(deploymentId, query, body, options) {
234
+ return invokeFetch("ml", {
235
+ method: "post",
236
+ pathTemplate: "/api/v1/ml/deployments/{deploymentId}/realtime-predictions/actions/run",
237
+ pathVariables: { deploymentId },
238
+ query,
239
+ body,
240
+ contentType: "application/json",
241
+ options
242
+ });
243
+ }
244
+ async function getMlExperiments(query, options) {
245
+ return invokeFetch("ml", {
246
+ method: "get",
247
+ pathTemplate: "/api/v1/ml/experiments",
248
+ query,
249
+ options
250
+ });
251
+ }
252
+ async function createMlExperiment(body, options) {
253
+ return invokeFetch("ml", {
254
+ method: "post",
255
+ pathTemplate: "/api/v1/ml/experiments",
256
+ body,
257
+ contentType: "application/json",
258
+ options
259
+ });
260
+ }
261
+ async function deleteMlExperiment(experimentId, options) {
262
+ return invokeFetch("ml", {
263
+ method: "delete",
264
+ pathTemplate: "/api/v1/ml/experiments/{experimentId}",
265
+ pathVariables: { experimentId },
266
+ options
267
+ });
268
+ }
269
+ async function getMlExperiment(experimentId, options) {
270
+ return invokeFetch("ml", {
271
+ method: "get",
272
+ pathTemplate: "/api/v1/ml/experiments/{experimentId}",
273
+ pathVariables: { experimentId },
274
+ options
275
+ });
276
+ }
277
+ async function patchMlExperiment(experimentId, body, options) {
278
+ return invokeFetch("ml", {
279
+ method: "patch",
280
+ pathTemplate: "/api/v1/ml/experiments/{experimentId}",
281
+ pathVariables: { experimentId },
282
+ body,
283
+ contentType: "application/json",
284
+ options
285
+ });
286
+ }
287
+ async function getMlExperimentModels(experimentId, query, options) {
288
+ return invokeFetch("ml", {
289
+ method: "get",
290
+ pathTemplate: "/api/v1/ml/experiments/{experimentId}/models",
291
+ pathVariables: { experimentId },
292
+ query,
293
+ options
294
+ });
295
+ }
296
+ async function getMlExperimentModel(experimentId, modelId, options) {
297
+ return invokeFetch("ml", {
298
+ method: "get",
299
+ pathTemplate: "/api/v1/ml/experiments/{experimentId}/models/{modelId}",
300
+ pathVariables: { experimentId, modelId },
301
+ options
302
+ });
303
+ }
304
+ async function getMlExperimentVersions(experimentId, query, options) {
305
+ return invokeFetch("ml", {
306
+ method: "get",
307
+ pathTemplate: "/api/v1/ml/experiments/{experimentId}/versions",
308
+ pathVariables: { experimentId },
309
+ query,
310
+ options
311
+ });
312
+ }
313
+ async function createMlExperimentVersion(experimentId, body, options) {
314
+ return invokeFetch("ml", {
315
+ method: "post",
316
+ pathTemplate: "/api/v1/ml/experiments/{experimentId}/versions",
317
+ pathVariables: { experimentId },
318
+ body,
319
+ contentType: "application/json",
320
+ options
321
+ });
322
+ }
323
+ async function deleteMlExperimentVersion(experimentId, experimentVersionId, options) {
324
+ return invokeFetch("ml", {
325
+ method: "delete",
326
+ pathTemplate: "/api/v1/ml/experiments/{experimentId}/versions/{experimentVersionId}",
327
+ pathVariables: { experimentId, experimentVersionId },
328
+ options
329
+ });
330
+ }
331
+ async function getMlExperimentVersion(experimentId, experimentVersionId, options) {
332
+ return invokeFetch("ml", {
333
+ method: "get",
334
+ pathTemplate: "/api/v1/ml/experiments/{experimentId}/versions/{experimentVersionId}",
335
+ pathVariables: { experimentId, experimentVersionId },
336
+ options
337
+ });
338
+ }
339
+ async function patchMlExperimentVersion(experimentId, experimentVersionId, body, options) {
340
+ return invokeFetch("ml", {
341
+ method: "patch",
342
+ pathTemplate: "/api/v1/ml/experiments/{experimentId}/versions/{experimentVersionId}",
343
+ pathVariables: { experimentId, experimentVersionId },
344
+ body,
345
+ contentType: "application/json",
346
+ options
347
+ });
348
+ }
349
+ async function cancelMlJob(corrType, corrId, options) {
350
+ return invokeFetch("ml", {
351
+ method: "post",
352
+ pathTemplate: "/api/v1/ml/jobs/{corrType}/{corrId}/actions/cancel",
353
+ pathVariables: { corrType, corrId },
354
+ options
355
+ });
356
+ }
357
+ async function createMlProfileInsight(body, options) {
358
+ return invokeFetch("ml", {
359
+ method: "post",
360
+ pathTemplate: "/api/v1/ml/profile-insights",
361
+ body,
362
+ contentType: "application/json",
363
+ options
364
+ });
365
+ }
366
+ async function getMlProfileInsightWithQuery(dataSetId, query, options) {
367
+ return invokeFetch("ml", {
368
+ method: "get",
369
+ pathTemplate: "/api/v1/ml/profile-insights/{dataSetId}",
370
+ pathVariables: { dataSetId },
371
+ query,
372
+ options
373
+ });
374
+ }
375
+ async function getMlProfileInsight(dataSetId, options) {
376
+ return invokeFetch("ml", {
377
+ method: "get",
378
+ pathTemplate: "/api/v1/ml/profile-insights/{dataSetId}",
379
+ pathVariables: { dataSetId },
380
+ options
381
+ });
382
+ }
383
+ function clearCache() {
384
+ return clearApiCache("ml");
385
+ }
386
+ var mlExport = {
387
+ getMlDeployments,
388
+ createMlDeployment,
389
+ deleteMlDeployment,
390
+ getMlDeployment,
391
+ patchMlDeployment,
392
+ activateModelsMlDeployment,
393
+ deactivateModelsMlDeployment,
394
+ getMlDeploymentAliases,
395
+ createMlDeploymentAliase,
396
+ deleteMlDeploymentAliase,
397
+ getMlDeploymentAliase,
398
+ patchMlDeploymentAliase,
399
+ runMlDeploymentAliaseRealtimePredictions,
400
+ getMlDeploymentBatchPredictions,
401
+ createMlDeploymentBatchPrediction,
402
+ deleteMlDeploymentBatchPrediction,
403
+ getMlDeploymentBatchPrediction,
404
+ patchMlDeploymentBatchPrediction,
405
+ predictMlDeploymentBatchPrediction,
406
+ deleteMlDeploymentBatchPredictionSchedule,
407
+ getMlDeploymentBatchPredictionSchedule,
408
+ updateMlDeploymentBatchPredictionSchedule,
409
+ setMlDeploymentBatchPredictionSchedule,
410
+ addMlDeploymentModels,
411
+ removeMlDeploymentModels,
412
+ runMlDeploymentRealtimePredictions,
413
+ getMlExperiments,
414
+ createMlExperiment,
415
+ deleteMlExperiment,
416
+ getMlExperiment,
417
+ patchMlExperiment,
418
+ getMlExperimentModels,
419
+ getMlExperimentModel,
420
+ getMlExperimentVersions,
421
+ createMlExperimentVersion,
422
+ deleteMlExperimentVersion,
423
+ getMlExperimentVersion,
424
+ patchMlExperimentVersion,
425
+ cancelMlJob,
426
+ createMlProfileInsight,
427
+ getMlProfileInsightWithQuery,
428
+ getMlProfileInsight,
429
+ clearCache
430
+ };
431
+ var ml_default = mlExport;
432
+ export {
433
+ activateModelsMlDeployment,
434
+ addMlDeploymentModels,
435
+ cancelMlJob,
436
+ clearCache,
437
+ createMlDeployment,
438
+ createMlDeploymentAliase,
439
+ createMlDeploymentBatchPrediction,
440
+ createMlExperiment,
441
+ createMlExperimentVersion,
442
+ createMlProfileInsight,
443
+ deactivateModelsMlDeployment,
444
+ ml_default as default,
445
+ deleteMlDeployment,
446
+ deleteMlDeploymentAliase,
447
+ deleteMlDeploymentBatchPrediction,
448
+ deleteMlDeploymentBatchPredictionSchedule,
449
+ deleteMlExperiment,
450
+ deleteMlExperimentVersion,
451
+ getMlDeployment,
452
+ getMlDeploymentAliase,
453
+ getMlDeploymentAliases,
454
+ getMlDeploymentBatchPrediction,
455
+ getMlDeploymentBatchPredictionSchedule,
456
+ getMlDeploymentBatchPredictions,
457
+ getMlDeployments,
458
+ getMlExperiment,
459
+ getMlExperimentModel,
460
+ getMlExperimentModels,
461
+ getMlExperimentVersion,
462
+ getMlExperimentVersions,
463
+ getMlExperiments,
464
+ getMlProfileInsight,
465
+ getMlProfileInsightWithQuery,
466
+ patchMlDeployment,
467
+ patchMlDeploymentAliase,
468
+ patchMlDeploymentBatchPrediction,
469
+ patchMlExperiment,
470
+ patchMlExperimentVersion,
471
+ predictMlDeploymentBatchPrediction,
472
+ removeMlDeploymentModels,
473
+ runMlDeploymentAliaseRealtimePredictions,
474
+ runMlDeploymentRealtimePredictions,
475
+ setMlDeploymentBatchPredictionSchedule,
476
+ updateMlDeploymentBatchPredictionSchedule
477
+ };
package/notes.d.ts ADDED
@@ -0,0 +1,110 @@
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
+
4
+ /**
5
+ * The possible states for the status of notes configuration GET or POST operation
6
+ */
7
+ type ConfigReasonCode = "deployment" | "toggle" | "license";
8
+ type Error = {
9
+ /** Error code specific to notes broker service. */
10
+ readonly code?: string;
11
+ /** Error cause. */
12
+ readonly detail?: string;
13
+ /** Error title. */
14
+ readonly title?: string;
15
+ };
16
+ /**
17
+ * @example
18
+ * {
19
+ * errors: [
20
+ * {
21
+ * code: "HTTP-123",
22
+ * title: "short error message"
23
+ * }
24
+ * ],
25
+ * traceId: "7326ce0d-1946-41d0-b890-609865cc42ea"
26
+ * }
27
+ */
28
+ type Errors = {
29
+ errors?: Error[];
30
+ /** An optional traceId */
31
+ traceId?: string;
32
+ };
33
+ type NoteSettingsPutPayload = {
34
+ /** pass 'true' to enable the note toggle for the tenant, 'false' to disable the toggle (other values are ignore). */
35
+ toggledOn?: boolean;
36
+ };
37
+ type NoteSettingsPutResponse = {
38
+ /** 'true' if the note feature is enabled for this tenant and user otherwise 'false'. */
39
+ toggleOn?: boolean;
40
+ };
41
+ type NotesUserSettings = {
42
+ /** 'true' if the note feature is enabled for this tenant and user otherwise 'false'. */
43
+ available: boolean;
44
+ /** The timestamp for the last time this users notes settings were fetched from downstream services. */
45
+ lastFetch?: string;
46
+ /** The possible states for the status of notes configuration GET or POST operation */
47
+ reason?: ConfigReasonCode;
48
+ };
49
+ /**
50
+ * Get the enablement status of the notes feature set for this tenant and user.
51
+ *
52
+ * @throws GetNotesSettingsHttpError
53
+ */
54
+ declare function getNotesSettings(options?: ApiCallOptions): Promise<GetNotesSettingsHttpResponse>;
55
+ type GetNotesSettingsHttpResponse = {
56
+ data: NotesUserSettings;
57
+ headers: Headers;
58
+ status: 200;
59
+ };
60
+ type GetNotesSettingsHttpError = {
61
+ data: Errors;
62
+ headers: Headers;
63
+ status: number;
64
+ };
65
+ /**
66
+ * update the settings
67
+ *
68
+ * @param body an object with the body content
69
+ * @throws SetNotesSettingsHttpError
70
+ */
71
+ declare function setNotesSettings(body: NoteSettingsPutPayload, options?: ApiCallOptions): Promise<SetNotesSettingsHttpResponse>;
72
+ type SetNotesSettingsHttpResponse = {
73
+ data: NoteSettingsPutResponse;
74
+ headers: Headers;
75
+ status: 200;
76
+ };
77
+ type SetNotesSettingsHttpError = {
78
+ data: Errors;
79
+ headers: Headers;
80
+ status: number;
81
+ };
82
+ /**
83
+ * Clears the cache for notes api requests.
84
+ */
85
+ declare function clearCache(): void;
86
+ interface NotesAPI {
87
+ /**
88
+ * Get the enablement status of the notes feature set for this tenant and user.
89
+ *
90
+ * @throws GetNotesSettingsHttpError
91
+ */
92
+ getNotesSettings: typeof getNotesSettings;
93
+ /**
94
+ * update the settings
95
+ *
96
+ * @param body an object with the body content
97
+ * @throws SetNotesSettingsHttpError
98
+ */
99
+ setNotesSettings: typeof setNotesSettings;
100
+ /**
101
+ * Clears the cache for notes api requests.
102
+ */
103
+ clearCache: typeof clearCache;
104
+ }
105
+ /**
106
+ * Functions for the notes api
107
+ */
108
+ declare const notesExport: NotesAPI;
109
+
110
+ export { type ConfigReasonCode, type Error, type Errors, type GetNotesSettingsHttpError, type GetNotesSettingsHttpResponse, type NoteSettingsPutPayload, type NoteSettingsPutResponse, type NotesAPI, type NotesUserSettings, type SetNotesSettingsHttpError, type SetNotesSettingsHttpResponse, clearCache, notesExport as default, getNotesSettings, setNotesSettings };
package/notes.js ADDED
@@ -0,0 +1,35 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/LIEZG7IM.js";
5
+ import "./chunks/GPRUNZV4.js";
6
+ import "./chunks/7MMXU6EL.js";
7
+
8
+ // src/public/rest/notes.ts
9
+ async function getNotesSettings(options) {
10
+ return invokeFetch("notes", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/notes/settings",
13
+ options
14
+ });
15
+ }
16
+ async function setNotesSettings(body, options) {
17
+ return invokeFetch("notes", {
18
+ method: "put",
19
+ pathTemplate: "/api/v1/notes/settings",
20
+ body,
21
+ contentType: "application/json",
22
+ options
23
+ });
24
+ }
25
+ function clearCache() {
26
+ return clearApiCache("notes");
27
+ }
28
+ var notesExport = { getNotesSettings, setNotesSettings, clearCache };
29
+ var notes_default = notesExport;
30
+ export {
31
+ clearCache,
32
+ notes_default as default,
33
+ getNotesSettings,
34
+ setNotesSettings
35
+ };