@stack-spot/portal-network 0.17.0 → 0.18.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.
@@ -0,0 +1,1808 @@
1
+ /**
2
+ * Content API
3
+ * v1.0.0
4
+ * DO NOT MODIFY - This file has been generated using oazapfts.
5
+ * See https://www.npmjs.com/package/oazapfts
6
+ */
7
+ import * as Oazapfts from "@oazapfts/runtime";
8
+ import * as QS from "@oazapfts/runtime/query";
9
+ export const defaults = {
10
+ headers: {},
11
+ baseUrl: "https://content-content-api.dev.stackspot.com",
12
+ };
13
+ const oazapfts = Oazapfts.runtime(defaults);
14
+ export const servers = {
15
+ generatedServerUrl: "https://content-content-api.dev.stackspot.com"
16
+ };
17
+ /**
18
+ * Update Stack and starter docs
19
+ */
20
+ export function updateStackDoc({ studioSlug, stackSlug, $type, body }, opts) {
21
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/${encodeURIComponent(stackSlug)}/docs${QS.query(QS.explode({
22
+ "type": $type
23
+ }))}`, oazapfts.multipart({
24
+ ...opts,
25
+ method: "PUT",
26
+ body
27
+ })));
28
+ }
29
+ /**
30
+ * Update Plugin Documentation
31
+ */
32
+ export function updateDocumentation({ studioSlug, pluginSlug, body }, opts) {
33
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/docs`, oazapfts.multipart({
34
+ ...opts,
35
+ method: "PUT",
36
+ body
37
+ })));
38
+ }
39
+ /**
40
+ * Update Action Documentation
41
+ */
42
+ export function updateActionDocumentation({ studioSlug, actionSlug, body }, opts) {
43
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/docs`, oazapfts.multipart({
44
+ ...opts,
45
+ method: "PUT",
46
+ body
47
+ })));
48
+ }
49
+ /**
50
+ * Create new stack version
51
+ */
52
+ export function createStackVersion({ stackId, createStackVersionRequest }, opts) {
53
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/stacks/${encodeURIComponent(stackId)}/versions`, oazapfts.json({
54
+ ...opts,
55
+ method: "POST",
56
+ body: createStackVersionRequest
57
+ })));
58
+ }
59
+ /**
60
+ * Create Starter on StackVersion
61
+ */
62
+ export function createStarterV2({ stackVersionId, createStarterV2Request }, opts) {
63
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/stacks/versions/${encodeURIComponent(stackVersionId)}/starters`, oazapfts.json({
64
+ ...opts,
65
+ method: "POST",
66
+ body: createStarterV2Request
67
+ })));
68
+ }
69
+ /**
70
+ * Publish a new stack version
71
+ */
72
+ export function publish({ stackVersionId, publishStackVersionRequest }, opts) {
73
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/stacks/versions/${encodeURIComponent(stackVersionId)}/publish`, oazapfts.json({
74
+ ...opts,
75
+ method: "POST",
76
+ body: publishStackVersionRequest
77
+ })));
78
+ }
79
+ /**
80
+ * Add plugin to a stack
81
+ */
82
+ export function addPlugin({ stackVersionId, body }, opts) {
83
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/stacks/versions/${encodeURIComponent(stackVersionId)}/plugins`, oazapfts.json({
84
+ ...opts,
85
+ method: "POST",
86
+ body
87
+ })));
88
+ }
89
+ /**
90
+ * Associate actions to a plugin
91
+ */
92
+ export function associateActionToPlugin({ stackVersionId, pluginVersionId, body }, opts) {
93
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/stacks/versions/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/actions`, oazapfts.json({
94
+ ...opts,
95
+ method: "POST",
96
+ body
97
+ })));
98
+ }
99
+ /**
100
+ * Add action version to a stack version
101
+ */
102
+ export function addAction({ stackVersionId, body }, opts) {
103
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/stacks/versions/${encodeURIComponent(stackVersionId)}/actions`, oazapfts.json({
104
+ ...opts,
105
+ method: "POST",
106
+ body
107
+ })));
108
+ }
109
+ /**
110
+ * List Connection Interface Types
111
+ */
112
+ export function listConnectionInterfaceTypes(opts) {
113
+ return oazapfts.ok(oazapfts.fetchJson("/v2/connection-interface-types", {
114
+ ...opts
115
+ }));
116
+ }
117
+ /**
118
+ * Create New Connection Interface Type
119
+ */
120
+ export function createConnectionInterfaceType({ createConnectionInterfaceTypeRequest }, opts) {
121
+ return oazapfts.ok(oazapfts.fetchJson("/v2/connection-interface-types", oazapfts.json({
122
+ ...opts,
123
+ method: "POST",
124
+ body: createConnectionInterfaceTypeRequest
125
+ })));
126
+ }
127
+ /**
128
+ * Find studios
129
+ */
130
+ export function getStudios1({ xWorkspaceId, authorization, teamId, aclOnly, filter, isAccountHolder }, opts) {
131
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios${QS.query(QS.explode({
132
+ teamId,
133
+ aclOnly,
134
+ filter,
135
+ isAccountHolder
136
+ }))}`, {
137
+ ...opts,
138
+ headers: oazapfts.mergeHeaders(opts?.headers, {
139
+ "x-workspace-id": xWorkspaceId,
140
+ Authorization: authorization
141
+ })
142
+ }));
143
+ }
144
+ /**
145
+ * Create a new studio
146
+ */
147
+ export function createStudio({ authorization, createStudioRequest }, opts) {
148
+ return oazapfts.ok(oazapfts.fetchJson("/v1/studios", oazapfts.json({
149
+ ...opts,
150
+ method: "POST",
151
+ body: createStudioRequest,
152
+ headers: oazapfts.mergeHeaders(opts?.headers, {
153
+ Authorization: authorization
154
+ })
155
+ })));
156
+ }
157
+ /**
158
+ * List all workspaces for selected studio visibility
159
+ */
160
+ export function listWorkspaces({ studioSlug }, opts) {
161
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workspaces`, {
162
+ ...opts
163
+ }));
164
+ }
165
+ /**
166
+ * Add workspace to given studio
167
+ */
168
+ export function addWorkspace({ studioSlug, studioWorkspaceRequest }, opts) {
169
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workspaces`, oazapfts.json({
170
+ ...opts,
171
+ method: "POST",
172
+ body: studioWorkspaceRequest
173
+ })));
174
+ }
175
+ /**
176
+ * Get Stack by slugs
177
+ */
178
+ export function getStackBySlug({ studioSlug, stackSlug, semanticVersion, onlyPublished, xWorkspaceId }, opts) {
179
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/${encodeURIComponent(stackSlug)}${QS.query(QS.explode({
180
+ semanticVersion,
181
+ onlyPublished
182
+ }))}`, {
183
+ ...opts,
184
+ headers: oazapfts.mergeHeaders(opts?.headers, {
185
+ "x-workspace-id": xWorkspaceId
186
+ })
187
+ }));
188
+ }
189
+ /**
190
+ * Publish Stack
191
+ */
192
+ export function publishStack({ studioSlug, stackSlug, body }, opts) {
193
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/${encodeURIComponent(stackSlug)}`, oazapfts.multipart({
194
+ ...opts,
195
+ method: "POST",
196
+ body
197
+ })));
198
+ }
199
+ /**
200
+ * List stacks from studio by filters
201
+ */
202
+ export function listStacksByFilters({ xWorkspaceId, studioSlug, pageable, filterStackRequest }, opts) {
203
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/filters${QS.query(QS.explode({
204
+ pageable
205
+ }))}`, oazapfts.json({
206
+ ...opts,
207
+ method: "POST",
208
+ body: filterStackRequest,
209
+ headers: oazapfts.mergeHeaders(opts?.headers, {
210
+ "x-workspace-id": xWorkspaceId
211
+ })
212
+ })));
213
+ }
214
+ /**
215
+ * Publish plugin
216
+ */
217
+ export function publishPluginController({ studioSlug, pluginSlug, body }, opts) {
218
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}`, oazapfts.multipart({
219
+ ...opts,
220
+ method: "POST",
221
+ body
222
+ })));
223
+ }
224
+ /**
225
+ * Get available plugin versions by plugin slug
226
+ */
227
+ export function getAvailablePluginVersionsByPluginSlug({ studioSlug, pluginSlug, xWorkspaceId, range, appAllowed }, opts) {
228
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/range${QS.query(QS.explode({
229
+ "x-workspace-id": xWorkspaceId,
230
+ range,
231
+ appAllowed
232
+ }))}`, {
233
+ ...opts
234
+ }));
235
+ }
236
+ /**
237
+ * Get available plugin versions by plugin slug
238
+ */
239
+ export function oldGetAvailablePluginVersionsByPluginSlug({ studioSlug, pluginSlug, xWorkspaceId, getAvailablePluginVersionsRequest }, opts) {
240
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/range`, oazapfts.json({
241
+ ...opts,
242
+ method: "POST",
243
+ body: getAvailablePluginVersionsRequest,
244
+ headers: oazapfts.mergeHeaders(opts?.headers, {
245
+ "x-workspace-id": xWorkspaceId
246
+ })
247
+ })));
248
+ }
249
+ /**
250
+ * Validate a plugin publish
251
+ */
252
+ export function validatePluginPublish({ studioSlug, publishValidatorRequest }, opts) {
253
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/publish/validate`, oazapfts.json({
254
+ ...opts,
255
+ method: "POST",
256
+ body: publishValidatorRequest
257
+ })));
258
+ }
259
+ /**
260
+ * Process a plugin publish
261
+ */
262
+ export function processPluginPublish({ studioSlug, publishProcessRequest }, opts) {
263
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/publish/process`, oazapfts.json({
264
+ ...opts,
265
+ method: "POST",
266
+ body: publishProcessRequest
267
+ })));
268
+ }
269
+ /**
270
+ * Get a filtered list of available plugins
271
+ */
272
+ export function filteredList({ xWorkspaceId, studioSlug, accountOnly, pageable, filterPluginVersionRequest }, opts) {
273
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/filters${QS.query(QS.explode({
274
+ accountOnly,
275
+ pageable
276
+ }))}`, oazapfts.json({
277
+ ...opts,
278
+ method: "POST",
279
+ body: filterPluginVersionRequest,
280
+ headers: oazapfts.mergeHeaders(opts?.headers, {
281
+ "x-workspace-id": xWorkspaceId
282
+ })
283
+ })));
284
+ }
285
+ /**
286
+ * Get Action by slug
287
+ */
288
+ export function getActionBySlug({ studioSlug, actionSlug, version, xWorkspaceId }, opts) {
289
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}${QS.query(QS.explode({
290
+ version
291
+ }))}`, {
292
+ ...opts,
293
+ headers: oazapfts.mergeHeaders(opts?.headers, {
294
+ "x-workspace-id": xWorkspaceId
295
+ })
296
+ }));
297
+ }
298
+ /**
299
+ * Publish Action
300
+ */
301
+ export function createAction({ studioSlug, actionSlug, body }, opts) {
302
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}`, oazapfts.multipart({
303
+ ...opts,
304
+ method: "POST",
305
+ body
306
+ })));
307
+ }
308
+ /**
309
+ * Get available action versions by action slug
310
+ */
311
+ export function getAvailableActionVersionsByActionSlug({ studioSlug, actionSlug, xWorkspaceId, range }, opts) {
312
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/range${QS.query(QS.explode({
313
+ "x-workspace-id": xWorkspaceId,
314
+ range
315
+ }))}`, {
316
+ ...opts
317
+ }));
318
+ }
319
+ /**
320
+ * Get available action versions by action slug
321
+ */
322
+ export function oldGetAvailableActionVersionsByActionSlug({ studioSlug, actionSlug, xWorkspaceId, getAvailableActionVersionsRequest }, opts) {
323
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/range`, oazapfts.json({
324
+ ...opts,
325
+ method: "POST",
326
+ body: getAvailableActionVersionsRequest,
327
+ headers: oazapfts.mergeHeaders(opts?.headers, {
328
+ "x-workspace-id": xWorkspaceId
329
+ })
330
+ })));
331
+ }
332
+ /**
333
+ * List actions from studio by filters
334
+ */
335
+ export function listActionsByFilters({ xWorkspaceId, studioSlug, pageable, filterActionRequest }, opts) {
336
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/filters${QS.query(QS.explode({
337
+ pageable
338
+ }))}`, oazapfts.json({
339
+ ...opts,
340
+ method: "POST",
341
+ body: filterActionRequest,
342
+ headers: oazapfts.mergeHeaders(opts?.headers, {
343
+ "x-workspace-id": xWorkspaceId
344
+ })
345
+ })));
346
+ }
347
+ /**
348
+ * Adds a team to a studio
349
+ */
350
+ export function addTeamsInStudio({ studioId, body }, opts) {
351
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/teams`, oazapfts.json({
352
+ ...opts,
353
+ method: "POST",
354
+ body
355
+ })));
356
+ }
357
+ /**
358
+ * List studios by filters
359
+ */
360
+ export function listStudios({ authorization, xWorkspaceId, filterStudioRequest }, opts) {
361
+ return oazapfts.ok(oazapfts.fetchJson("/v1/studios/filters", oazapfts.json({
362
+ ...opts,
363
+ method: "POST",
364
+ body: filterStudioRequest,
365
+ headers: oazapfts.mergeHeaders(opts?.headers, {
366
+ Authorization: authorization,
367
+ "x-workspace-id": xWorkspaceId
368
+ })
369
+ })));
370
+ }
371
+ /**
372
+ * Validate and return info from a starter
373
+ */
374
+ export function validateStack({ starterPath, body }, opts) {
375
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/starters/validate${QS.query(QS.explode({
376
+ starterPath
377
+ }))}`, oazapfts.json({
378
+ ...opts,
379
+ method: "POST",
380
+ body
381
+ })));
382
+ }
383
+ /**
384
+ * List stacks from account
385
+ */
386
+ export function listStacks1({ xWorkspaceId, isAccountHolder }, opts) {
387
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks${QS.query(QS.explode({
388
+ isAccountHolder
389
+ }))}`, {
390
+ ...opts,
391
+ headers: oazapfts.mergeHeaders(opts?.headers, {
392
+ "x-workspace-id": xWorkspaceId
393
+ })
394
+ }));
395
+ }
396
+ /**
397
+ * Create New Stack
398
+ */
399
+ export function createStack({ createStackRequest }, opts) {
400
+ return oazapfts.ok(oazapfts.fetchJson("/v1/stacks", oazapfts.json({
401
+ ...opts,
402
+ method: "POST",
403
+ body: createStackRequest
404
+ })));
405
+ }
406
+ /**
407
+ * List stack versions
408
+ */
409
+ export function listStackVersions({ stackId, xWorkspaceId, startersOnly, infraOnly, workspaceId }, opts) {
410
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/${encodeURIComponent(stackId)}/versions${QS.query(QS.explode({
411
+ startersOnly,
412
+ infraOnly,
413
+ workspaceId
414
+ }))}`, {
415
+ ...opts,
416
+ headers: oazapfts.mergeHeaders(opts?.headers, {
417
+ "x-workspace-id": xWorkspaceId
418
+ })
419
+ }));
420
+ }
421
+ /**
422
+ * Create new stack version
423
+ */
424
+ export function createStackVersion1({ stackId }, opts) {
425
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/${encodeURIComponent(stackId)}/versions`, {
426
+ ...opts,
427
+ method: "POST"
428
+ }));
429
+ }
430
+ /**
431
+ * Create association between a Stack Version and a Workspace
432
+ */
433
+ export function addStackWorkspace({ stackVersionId, workspaceId, accountId }, opts) {
434
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/workspace/${encodeURIComponent(workspaceId)}`, {
435
+ ...opts,
436
+ method: "POST",
437
+ headers: oazapfts.mergeHeaders(opts?.headers, {
438
+ accountId
439
+ })
440
+ }));
441
+ }
442
+ /**
443
+ * Remove association between a Stack Version and a Workspace
444
+ */
445
+ export function removeStackWorkspace({ stackVersionId, workspaceId }, opts) {
446
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/workspace/${encodeURIComponent(workspaceId)}`, {
447
+ ...opts,
448
+ method: "DELETE"
449
+ }));
450
+ }
451
+ /**
452
+ * Deprecate a starter
453
+ */
454
+ export function deprecateStarterBy({ stackVersionId, starterId, deprecateContentRequest }, opts) {
455
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/starters/${encodeURIComponent(starterId)}/deprecate`, oazapfts.json({
456
+ ...opts,
457
+ method: "POST",
458
+ body: deprecateContentRequest
459
+ })));
460
+ }
461
+ /**
462
+ * Get a starter list paginated from a StackVersion with filters
463
+ */
464
+ export function listStartersWithFilter({ stackVersionId, xWorkspaceId, pageable, filterStarterRequest }, opts) {
465
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/starters/filters${QS.query(QS.explode({
466
+ pageable
467
+ }))}`, oazapfts.json({
468
+ ...opts,
469
+ method: "POST",
470
+ body: filterStarterRequest,
471
+ headers: oazapfts.mergeHeaders(opts?.headers, {
472
+ "x-workspace-id": xWorkspaceId
473
+ })
474
+ })));
475
+ }
476
+ /**
477
+ * Publish a stack
478
+ */
479
+ export function publish1({ stackVersionId }, opts) {
480
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/publish`, {
481
+ ...opts,
482
+ method: "POST"
483
+ }));
484
+ }
485
+ /**
486
+ * Deprecate plugin used by stack
487
+ */
488
+ export function deprecatePluginInStack({ stackVersionId, pluginVersionId, deprecateContentRequest }, opts) {
489
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/plugins/versions/${encodeURIComponent(pluginVersionId)}/deprecate`, oazapfts.json({
490
+ ...opts,
491
+ method: "POST",
492
+ body: deprecateContentRequest
493
+ })));
494
+ }
495
+ /**
496
+ * Filter Plugins by stack version id
497
+ */
498
+ export function filterStackVersionPlugins({ xWorkspaceId, stackVersionId, pageable, filterStackVersionPluginRequest }, opts) {
499
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/plugins/filters${QS.query(QS.explode({
500
+ pageable
501
+ }))}`, oazapfts.json({
502
+ ...opts,
503
+ method: "POST",
504
+ body: filterStackVersionPluginRequest,
505
+ headers: oazapfts.mergeHeaders(opts?.headers, {
506
+ "x-workspace-id": xWorkspaceId
507
+ })
508
+ })));
509
+ }
510
+ /**
511
+ * List links by stack version
512
+ */
513
+ export function listLinksByStackVersion({ stackVersionId }, opts) {
514
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/links`, {
515
+ ...opts
516
+ }));
517
+ }
518
+ /**
519
+ * Add a link to stack versions
520
+ */
521
+ export function addLink({ stackVersionId, addLinkRequest }, opts) {
522
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/links`, oazapfts.json({
523
+ ...opts,
524
+ method: "POST",
525
+ body: addLinkRequest
526
+ })));
527
+ }
528
+ /**
529
+ * Deprecate a stack
530
+ */
531
+ export function deprecateStackVersionBy({ stackVersionId, authorization, deprecateContentRequest }, opts) {
532
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/deprecate`, oazapfts.json({
533
+ ...opts,
534
+ method: "POST",
535
+ body: deprecateContentRequest,
536
+ headers: oazapfts.mergeHeaders(opts?.headers, {
537
+ Authorization: authorization
538
+ })
539
+ })));
540
+ }
541
+ /**
542
+ * Get suggestion of connections interfaces
543
+ */
544
+ export function getConnectionInterfaceSuggestion({ stackVersionId, xWorkspaceId }, opts) {
545
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/connections`, {
546
+ ...opts,
547
+ headers: oazapfts.mergeHeaders(opts?.headers, {
548
+ "x-workspace-id": xWorkspaceId
549
+ })
550
+ }));
551
+ }
552
+ /**
553
+ * Create suggestion of connections interfaces
554
+ */
555
+ export function createConnectionInterfaceSuggestion({ stackVersionId, createConnectionInterfaceSuggestionRequest }, opts) {
556
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/connections`, oazapfts.json({
557
+ ...opts,
558
+ method: "POST",
559
+ body: createConnectionInterfaceSuggestionRequest
560
+ })));
561
+ }
562
+ /**
563
+ * Deprecate an action used by stack
564
+ */
565
+ export function deprecateActionInStack({ stackVersionId, actionVersionId, deprecateContentRequest }, opts) {
566
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/actions/versions/${encodeURIComponent(actionVersionId)}/deprecate`, oazapfts.json({
567
+ ...opts,
568
+ method: "POST",
569
+ body: deprecateContentRequest
570
+ })));
571
+ }
572
+ /**
573
+ * List actions from stack by filters
574
+ */
575
+ export function listActionsByFilters1({ xWorkspaceId, stackVersionId, pageable, filterStackActionRequest }, opts) {
576
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/actions/filters${QS.query(QS.explode({
577
+ pageable
578
+ }))}`, oazapfts.json({
579
+ ...opts,
580
+ method: "POST",
581
+ body: filterStackActionRequest,
582
+ headers: oazapfts.mergeHeaders(opts?.headers, {
583
+ "x-workspace-id": xWorkspaceId
584
+ })
585
+ })));
586
+ }
587
+ /**
588
+ * Find a list of stack versions from filters
589
+ */
590
+ export function getStackVersionListByIds({ xWorkspaceId, filterStackVersionRequest }, opts) {
591
+ return oazapfts.ok(oazapfts.fetchJson("/v1/stacks/versions/filters", oazapfts.json({
592
+ ...opts,
593
+ method: "POST",
594
+ body: filterStackVersionRequest,
595
+ headers: oazapfts.mergeHeaders(opts?.headers, {
596
+ "x-workspace-id": xWorkspaceId
597
+ })
598
+ })));
599
+ }
600
+ /**
601
+ * Validate and return info from a stack
602
+ */
603
+ export function validateStack1({ body }, opts) {
604
+ return oazapfts.ok(oazapfts.fetchJson("/v1/stacks/validate", oazapfts.json({
605
+ ...opts,
606
+ method: "POST",
607
+ body
608
+ })));
609
+ }
610
+ /**
611
+ * List of stacks by its ids
612
+ */
613
+ export function listStackByIdsController({ filterStackByIdsRequest }, opts) {
614
+ return oazapfts.ok(oazapfts.fetchJson("/v1/stacks/summary", oazapfts.json({
615
+ ...opts,
616
+ method: "POST",
617
+ body: filterStackByIdsRequest
618
+ })));
619
+ }
620
+ /**
621
+ * List plugins version by its ids
622
+ */
623
+ export function listPluginVersionByIdsController({ xWorkspaceId, filterPluginVersionByIdsRequest }, opts) {
624
+ return oazapfts.ok(oazapfts.fetchJson("/v1/plugins/versions", oazapfts.json({
625
+ ...opts,
626
+ method: "POST",
627
+ body: filterPluginVersionByIdsRequest,
628
+ headers: oazapfts.mergeHeaders(opts?.headers, {
629
+ "x-workspace-id": xWorkspaceId
630
+ })
631
+ })));
632
+ }
633
+ /**
634
+ * Deprecate a plugin version
635
+ */
636
+ export function deprecatePluginVersion({ pluginVersionId, authorization, deprecateContentRequest }, opts) {
637
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/plugins/versions/${encodeURIComponent(pluginVersionId)}/deprecate`, oazapfts.json({
638
+ ...opts,
639
+ method: "POST",
640
+ body: deprecateContentRequest,
641
+ headers: oazapfts.mergeHeaders(opts?.headers, {
642
+ Authorization: authorization
643
+ })
644
+ })));
645
+ }
646
+ /**
647
+ * Validate and return info from a plugin
648
+ */
649
+ export function validatePlugin({ body }, opts) {
650
+ return oazapfts.ok(oazapfts.fetchJson("/v1/plugins/validate", oazapfts.json({
651
+ ...opts,
652
+ method: "POST",
653
+ body
654
+ })));
655
+ }
656
+ /**
657
+ * Create new documentation
658
+ */
659
+ export function createDoc({ createDocRequest }, opts) {
660
+ return oazapfts.ok(oazapfts.fetchJson("/v1/docs", oazapfts.json({
661
+ ...opts,
662
+ method: "POST",
663
+ body: createDocRequest
664
+ })));
665
+ }
666
+ /**
667
+ * Add revision to content evaluation
668
+ */
669
+ export function contentEvaluationRevision({ contentEvaluationId, addContentEvaluationRevisionRequest }, opts) {
670
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/contents-evaluation/${encodeURIComponent(contentEvaluationId)}/revision`, oazapfts.json({
671
+ ...opts,
672
+ method: "POST",
673
+ body: addContentEvaluationRevisionRequest
674
+ })));
675
+ }
676
+ /**
677
+ * List Connection Interface Types
678
+ */
679
+ export function listConnectionInterfaceTypes1(opts) {
680
+ return oazapfts.ok(oazapfts.fetchJson("/v1/connection-interface-types", {
681
+ ...opts
682
+ }));
683
+ }
684
+ /**
685
+ * Create New Connection Interface Type
686
+ */
687
+ export function createConnectionInterfaceType1({ createConnectionInterfaceTypeRequest }, opts) {
688
+ return oazapfts.ok(oazapfts.fetchJson("/v1/connection-interface-types", oazapfts.json({
689
+ ...opts,
690
+ method: "POST",
691
+ body: createConnectionInterfaceTypeRequest
692
+ })));
693
+ }
694
+ /**
695
+ * Validate Connection Interface Type Object Output Schema
696
+ */
697
+ export function validateConnectionInterfaceTypeObjectOutputSchema({ connectionInterfaceTypeIdOrSlug, outputId, validateConnectionInterfaceTypeSchemaRequest }, opts) {
698
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/connection-interface-types/${encodeURIComponent(connectionInterfaceTypeIdOrSlug)}/outputs/${encodeURIComponent(outputId)}/validate`, oazapfts.json({
699
+ ...opts,
700
+ method: "POST",
701
+ body: validateConnectionInterfaceTypeSchemaRequest
702
+ })));
703
+ }
704
+ /**
705
+ * List actions versions by id and action version or range
706
+ */
707
+ export function getActionsVersions({ body }, opts) {
708
+ return oazapfts.ok(oazapfts.fetchJson("/v1/actions/versions", oazapfts.json({
709
+ ...opts,
710
+ method: "POST",
711
+ body
712
+ })));
713
+ }
714
+ /**
715
+ * Deprecate an action version
716
+ */
717
+ export function deprecateActionVersion({ actionVersionId, deprecateContentRequest }, opts) {
718
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/actions/versions/${encodeURIComponent(actionVersionId)}/deprecate`, oazapfts.json({
719
+ ...opts,
720
+ method: "POST",
721
+ body: deprecateContentRequest
722
+ })));
723
+ }
724
+ /**
725
+ * Validate and return info from a action
726
+ */
727
+ export function validateAction({ body }, opts) {
728
+ return oazapfts.ok(oazapfts.fetchJson("/v1/actions/validate", oazapfts.json({
729
+ ...opts,
730
+ method: "POST",
731
+ body
732
+ })));
733
+ }
734
+ /**
735
+ * Update a starter from a StackVersion
736
+ */
737
+ export function patchStarterV2({ stackVersionId, starterId, patchStarterV2Request }, opts) {
738
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/stacks/versions/${encodeURIComponent(stackVersionId)}/starters/${encodeURIComponent(starterId)}`, oazapfts.json({
739
+ ...opts,
740
+ method: "PATCH",
741
+ body: patchStarterV2Request
742
+ })));
743
+ }
744
+ /**
745
+ * Edit a Connection Interface Type
746
+ */
747
+ export function updateConnectionInterfaceType({ connectionInterfaceTypeId, updateConnectionInterfaceTypeRequest }, opts) {
748
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/connection-interface-types/${encodeURIComponent(connectionInterfaceTypeId)}`, oazapfts.json({
749
+ ...opts,
750
+ method: "PATCH",
751
+ body: updateConnectionInterfaceTypeRequest
752
+ })));
753
+ }
754
+ /**
755
+ * Change the visibility of given studio
756
+ */
757
+ export function changeVisibility({ studioSlug, changeVisibilityRequest }, opts) {
758
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/visibility`, oazapfts.json({
759
+ ...opts,
760
+ method: "PATCH",
761
+ body: changeVisibilityRequest
762
+ })));
763
+ }
764
+ /**
765
+ * Get studio tabs
766
+ */
767
+ export function getStudioTabs({ studioSlug }, opts) {
768
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/tabs`, {
769
+ ...opts
770
+ }));
771
+ }
772
+ /**
773
+ * Updates studio tabs
774
+ */
775
+ export function updateStudioTabs({ studioSlug, body }, opts) {
776
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/tabs`, oazapfts.json({
777
+ ...opts,
778
+ method: "PATCH",
779
+ body
780
+ })));
781
+ }
782
+ /**
783
+ * Get stack tabs
784
+ */
785
+ export function getStackTabs({ studioSlug, stackSlug }, opts) {
786
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/${encodeURIComponent(stackSlug)}/tabs`, {
787
+ ...opts
788
+ }));
789
+ }
790
+ /**
791
+ * Updates stack tabs
792
+ */
793
+ export function updateStackTabs({ studioSlug, stackSlug, body }, opts) {
794
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/${encodeURIComponent(stackSlug)}/tabs`, oazapfts.json({
795
+ ...opts,
796
+ method: "PATCH",
797
+ body
798
+ })));
799
+ }
800
+ /**
801
+ * Checks for content pending review
802
+ */
803
+ export function verifyHasContentPendingReview({ studioSlug }, opts) {
804
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/governance`, {
805
+ ...opts
806
+ }));
807
+ }
808
+ /**
809
+ * Enable or disable studio governance
810
+ */
811
+ export function manageStudioGovernance({ studioSlug, manageStudioGovernanceRequest }, opts) {
812
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/governance`, oazapfts.json({
813
+ ...opts,
814
+ method: "PATCH",
815
+ body: manageStudioGovernanceRequest
816
+ })));
817
+ }
818
+ /**
819
+ * Delete a studio
820
+ */
821
+ export function deleteStudio({ studioId }, opts) {
822
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}`, {
823
+ ...opts,
824
+ method: "DELETE"
825
+ }));
826
+ }
827
+ /**
828
+ * Updates studio
829
+ */
830
+ export function updateStudio({ studioId, updateStudioRequest }, opts) {
831
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}`, oazapfts.json({
832
+ ...opts,
833
+ method: "PATCH",
834
+ body: updateStudioRequest
835
+ })));
836
+ }
837
+ /**
838
+ * get stack
839
+ */
840
+ export function getStackById({ stackId, semanticVersion, xWorkspaceId }, opts) {
841
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/${encodeURIComponent(stackId)}${QS.query(QS.explode({
842
+ semanticVersion
843
+ }))}`, {
844
+ ...opts,
845
+ headers: oazapfts.mergeHeaders(opts?.headers, {
846
+ "x-workspace-id": xWorkspaceId
847
+ })
848
+ }));
849
+ }
850
+ /**
851
+ * update stack
852
+ */
853
+ export function updateStackById({ stackId, updateStackRequest }, opts) {
854
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/${encodeURIComponent(stackId)}`, oazapfts.json({
855
+ ...opts,
856
+ method: "PATCH",
857
+ body: updateStackRequest
858
+ })));
859
+ }
860
+ /**
861
+ * Delete a link from a stack versions
862
+ */
863
+ export function deleteLink({ stackVersionId, linkId }, opts) {
864
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/links/${encodeURIComponent(linkId)}`, {
865
+ ...opts,
866
+ method: "DELETE"
867
+ }));
868
+ }
869
+ /**
870
+ * Edit a link in a stack versions
871
+ */
872
+ export function editLink({ stackVersionId, linkId, editLinkRequest }, opts) {
873
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/links/${encodeURIComponent(linkId)}`, oazapfts.json({
874
+ ...opts,
875
+ method: "PATCH",
876
+ body: editLinkRequest
877
+ })));
878
+ }
879
+ /**
880
+ * Get a documentation
881
+ */
882
+ export function getDoc({ documentationId, language, status }, opts) {
883
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/docs/${encodeURIComponent(documentationId)}/language/${encodeURIComponent(language)}${QS.query(QS.explode({
884
+ status
885
+ }))}`, {
886
+ ...opts
887
+ }));
888
+ }
889
+ /**
890
+ * Delete a documentation
891
+ */
892
+ export function deleteDoc({ documentationId, language, status }, opts) {
893
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/docs/${encodeURIComponent(documentationId)}/language/${encodeURIComponent(language)}${QS.query(QS.explode({
894
+ status
895
+ }))}`, {
896
+ ...opts,
897
+ method: "DELETE"
898
+ }));
899
+ }
900
+ /**
901
+ * Update a documentation
902
+ */
903
+ export function updateDoc({ documentationId, language, updateDocRequest }, opts) {
904
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/docs/${encodeURIComponent(documentationId)}/language/${encodeURIComponent(language)}`, oazapfts.json({
905
+ ...opts,
906
+ method: "PATCH",
907
+ body: updateDocRequest
908
+ })));
909
+ }
910
+ /**
911
+ * Edit a Connection Interface Type
912
+ */
913
+ export function updateConnectionInterfaceType1({ connectionInterfaceTypeId, updateConnectionInterfaceTypeRequest }, opts) {
914
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/connection-interface-types/${encodeURIComponent(connectionInterfaceTypeId)}`, oazapfts.json({
915
+ ...opts,
916
+ method: "PATCH",
917
+ body: updateConnectionInterfaceTypeRequest
918
+ })));
919
+ }
920
+ /**
921
+ * Find studios
922
+ */
923
+ export function getStudios({ xWorkspaceId, authorization, teamId, aclOnly, filter, isAccountHolder, startersOnly, infraOnly, workspaceId, pageable }, opts) {
924
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/studios${QS.query(QS.explode({
925
+ teamId,
926
+ aclOnly,
927
+ filter,
928
+ isAccountHolder,
929
+ startersOnly,
930
+ infraOnly,
931
+ workspaceId,
932
+ pageable
933
+ }))}`, {
934
+ ...opts,
935
+ headers: oazapfts.mergeHeaders(opts?.headers, {
936
+ "x-workspace-id": xWorkspaceId,
937
+ Authorization: authorization
938
+ })
939
+ }));
940
+ }
941
+ /**
942
+ * Download an action by version
943
+ */
944
+ export function downloadAction({ studioSlug, actionSlug, version, xWorkspaceId }, opts) {
945
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download`, {
946
+ ...opts,
947
+ headers: oazapfts.mergeHeaders(opts?.headers, {
948
+ "x-workspace-id": xWorkspaceId
949
+ })
950
+ }));
951
+ }
952
+ /**
953
+ * List stacks from account
954
+ */
955
+ export function listStacks({ xWorkspaceId, isAccountHolder }, opts) {
956
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/stacks${QS.query(QS.explode({
957
+ isAccountHolder
958
+ }))}`, {
959
+ ...opts,
960
+ headers: oazapfts.mergeHeaders(opts?.headers, {
961
+ "x-workspace-id": xWorkspaceId
962
+ })
963
+ }));
964
+ }
965
+ /**
966
+ * Get inputs from a plugin version
967
+ */
968
+ export function getInputs({ pluginVersionId, xWorkspaceId }, opts) {
969
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/plugins/versions/${encodeURIComponent(pluginVersionId)}/inputs`, {
970
+ ...opts,
971
+ headers: oazapfts.mergeHeaders(opts?.headers, {
972
+ "x-workspace-id": xWorkspaceId
973
+ })
974
+ }));
975
+ }
976
+ /**
977
+ * Get Connection Interface Type by Id
978
+ */
979
+ export function getConnectionInterfaceType({ connectionInterfaceTypeIdOrSlug }, opts) {
980
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/connection-interface-types/${encodeURIComponent(connectionInterfaceTypeIdOrSlug)}`, {
981
+ ...opts
982
+ }));
983
+ }
984
+ /**
985
+ * List inputs of an action version
986
+ */
987
+ export function listInputs({ actionVersionId, xWorkspaceId, accountId }, opts) {
988
+ return oazapfts.ok(oazapfts.fetchJson(`/v2/actions/versions/${encodeURIComponent(actionVersionId)}/inputs`, {
989
+ ...opts,
990
+ headers: oazapfts.mergeHeaders(opts?.headers, {
991
+ "x-workspace-id": xWorkspaceId,
992
+ "account-id": accountId
993
+ })
994
+ }));
995
+ }
996
+ /**
997
+ * Get a starter documentation
998
+ */
999
+ export function getStarterDoc({ studioSlug, documentationId, language, status }, opts) {
1000
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/starters/docs/${encodeURIComponent(documentationId)}/language/${encodeURIComponent(language)}${QS.query(QS.explode({
1001
+ status
1002
+ }))}`, {
1003
+ ...opts
1004
+ }));
1005
+ }
1006
+ /**
1007
+ * List Stacks inside a studio
1008
+ */
1009
+ export function listStacksInStudio({ studioSlug, onlyPublished, xWorkspaceId, startersOnly, infraOnly, workspaceId }, opts) {
1010
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks${QS.query(QS.explode({
1011
+ onlyPublished,
1012
+ startersOnly,
1013
+ infraOnly,
1014
+ workspaceId
1015
+ }))}`, {
1016
+ ...opts,
1017
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1018
+ "x-workspace-id": xWorkspaceId
1019
+ })
1020
+ }));
1021
+ }
1022
+ /**
1023
+ * List stacks workspaces view
1024
+ */
1025
+ export function getStackWorkspaces({ studioSlug, stackSlug, filter, pageable }, opts) {
1026
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/${encodeURIComponent(stackSlug)}/workspaces${QS.query(QS.explode({
1027
+ filter,
1028
+ pageable
1029
+ }))}`, {
1030
+ ...opts
1031
+ }));
1032
+ }
1033
+ /**
1034
+ * List stacks workspaces details view
1035
+ */
1036
+ export function getStackWorkspaceDetailView({ studioSlug, stackSlug, workspaceId, pageable }, opts) {
1037
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/${encodeURIComponent(stackSlug)}/workspace/${encodeURIComponent(workspaceId)}/stack-versions${QS.query(QS.explode({
1038
+ pageable
1039
+ }))}`, {
1040
+ ...opts
1041
+ }));
1042
+ }
1043
+ /**
1044
+ * list starters in a stack
1045
+ */
1046
+ export function listStartersInStack({ studioSlug, stackSlug, semanticVersion, $type, xWorkspaceId }, opts) {
1047
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/${encodeURIComponent(stackSlug)}/starters${QS.query(QS.explode({
1048
+ semanticVersion,
1049
+ "type": $type
1050
+ }))}`, {
1051
+ ...opts,
1052
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1053
+ "x-workspace-id": xWorkspaceId
1054
+ })
1055
+ }));
1056
+ }
1057
+ /**
1058
+ * Get unused stack versions
1059
+ */
1060
+ export function getUnusedStackVersions({ studioSlug, stackSlug, pageable }, opts) {
1061
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/${encodeURIComponent(stackSlug)}/not-in-use${QS.query(QS.explode({
1062
+ pageable
1063
+ }))}`, {
1064
+ ...opts
1065
+ }));
1066
+ }
1067
+ /**
1068
+ * Stack Modal View Summary
1069
+ */
1070
+ export function stackModalViewSummary({ studioSlug, stackSlug }, opts) {
1071
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/${encodeURIComponent(stackSlug)}/in-use/summary`, {
1072
+ ...opts
1073
+ }));
1074
+ }
1075
+ /**
1076
+ * Get a stack documentation
1077
+ */
1078
+ export function getStackDoc({ studioSlug, documentationId, language, status }, opts) {
1079
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/stacks/docs/${encodeURIComponent(documentationId)}/language/${encodeURIComponent(language)}${QS.query(QS.explode({
1080
+ status
1081
+ }))}`, {
1082
+ ...opts
1083
+ }));
1084
+ }
1085
+ /**
1086
+ * List versions of a plugin
1087
+ */
1088
+ export function listVersionsOfPlugin({ studioSlug, pluginSlug, appAllowed, xWorkspaceId }, opts) {
1089
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions${QS.query(QS.explode({
1090
+ appAllowed
1091
+ }))}`, {
1092
+ ...opts,
1093
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1094
+ "x-workspace-id": xWorkspaceId
1095
+ })
1096
+ }));
1097
+ }
1098
+ /**
1099
+ * Get plugins requirements
1100
+ */
1101
+ export function getRequirements({ studioSlug, pluginSlug, version, xWorkspaceId }, opts) {
1102
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/requirements`, {
1103
+ ...opts,
1104
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1105
+ "x-workspace-id": xWorkspaceId
1106
+ })
1107
+ }));
1108
+ }
1109
+ /**
1110
+ * Download a plugin by version
1111
+ */
1112
+ export function downloadPlugin({ studioSlug, pluginSlug, version, xWorkspaceId }, opts) {
1113
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download`, {
1114
+ ...opts,
1115
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1116
+ "x-workspace-id": xWorkspaceId
1117
+ })
1118
+ }));
1119
+ }
1120
+ /**
1121
+ * Download a plugin by version (base64 response version)
1122
+ */
1123
+ export function downloadPluginBase64({ studioSlug, pluginSlug, version, xWorkspaceId }, opts) {
1124
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/versions/${encodeURIComponent(version)}/download/base64`, {
1125
+ ...opts,
1126
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1127
+ "x-workspace-id": xWorkspaceId
1128
+ })
1129
+ }));
1130
+ }
1131
+ /**
1132
+ * Get plugin version
1133
+ */
1134
+ export function getPlugin({ studioSlug, pluginSlug, version, xWorkspaceId }, opts) {
1135
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/version${QS.query(QS.explode({
1136
+ version
1137
+ }))}`, {
1138
+ ...opts,
1139
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1140
+ "x-workspace-id": xWorkspaceId
1141
+ })
1142
+ }));
1143
+ }
1144
+ /**
1145
+ * List all starters that use a given plugin
1146
+ */
1147
+ export function getStarterUsesPlugin({ studioSlug, pluginSlug, filter, $type, pageable }, opts) {
1148
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/starters${QS.query(QS.explode({
1149
+ filter,
1150
+ "type": $type,
1151
+ pageable
1152
+ }))}`, {
1153
+ ...opts
1154
+ }));
1155
+ }
1156
+ /**
1157
+ * Get starters that use a plugin
1158
+ */
1159
+ export function getStarterStackVersionsAndPluginsVersions({ studioSlug, pluginSlug, starterSlug, pageable }, opts) {
1160
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/starter/${encodeURIComponent(starterSlug)}/plugin-versions${QS.query(QS.explode({
1161
+ pageable
1162
+ }))}`, {
1163
+ ...opts
1164
+ }));
1165
+ }
1166
+ /**
1167
+ * List all Stacks tha uses a given plugin
1168
+ */
1169
+ export function getStackUsesPlugin({ studioSlug, pluginSlug, filter, pageable }, opts) {
1170
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/stacks${QS.query(QS.explode({
1171
+ filter,
1172
+ pageable
1173
+ }))}`, {
1174
+ ...opts
1175
+ }));
1176
+ }
1177
+ /**
1178
+ * Get plugin versions by stack
1179
+ */
1180
+ export function getPluginVersions({ studioSlug, pluginSlug, stackId, xWorkspaceId, pageable }, opts) {
1181
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/stack/${encodeURIComponent(stackId)}/plugin-versions${QS.query(QS.explode({
1182
+ pageable
1183
+ }))}`, {
1184
+ ...opts,
1185
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1186
+ "x-workspace-id": xWorkspaceId
1187
+ })
1188
+ }));
1189
+ }
1190
+ /**
1191
+ * Plugin Infrastructure View
1192
+ */
1193
+ export function getPluginInfrastructureView({ studioSlug, pluginSlug, filter, pageable }, opts) {
1194
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/shared-infra${QS.query(QS.explode({
1195
+ filter,
1196
+ pageable
1197
+ }))}`, {
1198
+ ...opts
1199
+ }));
1200
+ }
1201
+ /**
1202
+ * Get a list of environments associated to a given infrastructure that uses a plugin
1203
+ */
1204
+ export function getInfrastructureEnvironmentsUsesPlugin({ studioSlug, pluginSlug, infraId, pageable }, opts) {
1205
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/shared-infra/${encodeURIComponent(infraId)}/plugin-versions${QS.query(QS.explode({
1206
+ pageable
1207
+ }))}`, {
1208
+ ...opts
1209
+ }));
1210
+ }
1211
+ /**
1212
+ * List all plugin view of usage insights
1213
+ */
1214
+ export function getGetPluginView({ studioSlug, pluginSlug, studio, filter, $type, pageable }, opts) {
1215
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/plugins${QS.query(QS.explode({
1216
+ studio,
1217
+ filter,
1218
+ "type": $type,
1219
+ pageable
1220
+ }))}`, {
1221
+ ...opts
1222
+ }));
1223
+ }
1224
+ /**
1225
+ * Get plugins versions that depend on a plugin
1226
+ */
1227
+ export function getDependentPluginsVersions({ studioSlug, pluginSlug, pluginId, pageable }, opts) {
1228
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/plugin/${encodeURIComponent(pluginId)}/plugin-versions${QS.query(QS.explode({
1229
+ pageable
1230
+ }))}`, {
1231
+ ...opts
1232
+ }));
1233
+ }
1234
+ /**
1235
+ * Get plugin versions that are not in use
1236
+ */
1237
+ export function getPluginVersionsNotInUse({ studioSlug, pluginSlug, pageable }, opts) {
1238
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/not-in-use${QS.query(QS.explode({
1239
+ pageable
1240
+ }))}`, {
1241
+ ...opts
1242
+ }));
1243
+ }
1244
+ /**
1245
+ * Usage monitor get a summary of usage by given plugin
1246
+ */
1247
+ export function getPluginModalView({ studioSlug, pluginSlug }, opts) {
1248
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/in-use/summary`, {
1249
+ ...opts
1250
+ }));
1251
+ }
1252
+ /**
1253
+ * List all Applications that uses a given plugin
1254
+ */
1255
+ export function getApplicationsUsesPlugin({ studioSlug, pluginSlug, filter, pageable }, opts) {
1256
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/applications${QS.query(QS.explode({
1257
+ filter,
1258
+ pageable
1259
+ }))}`, {
1260
+ ...opts
1261
+ }));
1262
+ }
1263
+ /**
1264
+ * Usage monitor get a application view details by plugin
1265
+ */
1266
+ export function getApplicationDetailsView({ studioSlug, pluginSlug, applicationId, pageable }, opts) {
1267
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/${encodeURIComponent(pluginSlug)}/application/${encodeURIComponent(applicationId)}/plugin-versions${QS.query(QS.explode({
1268
+ pageable
1269
+ }))}`, {
1270
+ ...opts
1271
+ }));
1272
+ }
1273
+ /**
1274
+ * List plugin technologies
1275
+ */
1276
+ export function listPluginTechnologies({ studioSlug, xWorkspaceId, filterForStack }, opts) {
1277
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/technologies${QS.query(QS.explode({
1278
+ filterForStack
1279
+ }))}`, {
1280
+ ...opts,
1281
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1282
+ "x-workspace-id": xWorkspaceId
1283
+ })
1284
+ }));
1285
+ }
1286
+ /**
1287
+ * Get a plugin documentation
1288
+ */
1289
+ export function getPluginDoc({ studioSlug, documentationId, language, status }, opts) {
1290
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/plugins/docs/${encodeURIComponent(documentationId)}/language/${encodeURIComponent(language)}${QS.query(QS.explode({
1291
+ status
1292
+ }))}`, {
1293
+ ...opts
1294
+ }));
1295
+ }
1296
+ /**
1297
+ * List all action versions
1298
+ */
1299
+ export function getAllActionVersions({ studioSlug, actionSlug, status, xWorkspaceId }, opts) {
1300
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions${QS.query(QS.explode({
1301
+ status
1302
+ }))}`, {
1303
+ ...opts,
1304
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1305
+ "x-workspace-id": xWorkspaceId
1306
+ })
1307
+ }));
1308
+ }
1309
+ /**
1310
+ * Download an action by version
1311
+ */
1312
+ export function downloadAction1({ studioSlug, actionSlug, version, xWorkspaceId }, opts) {
1313
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download`, {
1314
+ ...opts,
1315
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1316
+ "x-workspace-id": xWorkspaceId
1317
+ })
1318
+ }));
1319
+ }
1320
+ /**
1321
+ * Download an action by version
1322
+ */
1323
+ export function downloadActionBase64({ studioSlug, actionSlug, version, xWorkspaceId }, opts) {
1324
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download/base64`, {
1325
+ ...opts,
1326
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1327
+ "x-workspace-id": xWorkspaceId
1328
+ })
1329
+ }));
1330
+ }
1331
+ /**
1332
+ * Get an action documentation
1333
+ */
1334
+ export function getActionDoc({ studioSlug, documentationId, language, status }, opts) {
1335
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/actions/docs/${encodeURIComponent(documentationId)}/language/${encodeURIComponent(language)}${QS.query(QS.explode({
1336
+ status
1337
+ }))}`, {
1338
+ ...opts
1339
+ }));
1340
+ }
1341
+ /**
1342
+ * Get a studio by id or slug
1343
+ */
1344
+ export function getStudioByIdOrSlug({ studioIdOrSlug, authorization, xWorkspaceId }, opts) {
1345
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioIdOrSlug)}`, {
1346
+ ...opts,
1347
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1348
+ Authorization: authorization,
1349
+ "x-workspace-id": xWorkspaceId
1350
+ })
1351
+ }));
1352
+ }
1353
+ /**
1354
+ * Get studios from token
1355
+ */
1356
+ export function getStudiosToCreateButton({ authorization }, opts) {
1357
+ return oazapfts.ok(oazapfts.fetchJson("/v1/studios/create", {
1358
+ ...opts,
1359
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1360
+ Authorization: authorization
1361
+ })
1362
+ }));
1363
+ }
1364
+ /**
1365
+ * Get a stack version list from its ids
1366
+ */
1367
+ export function getStackVersionListByIds1({ stackVersionIds, xWorkspaceId }, opts) {
1368
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions${QS.query(QS.explode({
1369
+ stackVersionIds
1370
+ }))}`, {
1371
+ ...opts,
1372
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1373
+ "x-workspace-id": xWorkspaceId
1374
+ })
1375
+ }));
1376
+ }
1377
+ /**
1378
+ * Get a stack version from its id
1379
+ */
1380
+ export function getStackVersionById({ stackVersionId, xWorkspaceId }, opts) {
1381
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}`, {
1382
+ ...opts,
1383
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1384
+ "x-workspace-id": xWorkspaceId
1385
+ })
1386
+ }));
1387
+ }
1388
+ /**
1389
+ * Delete a stack version of type draft or unpublish
1390
+ */
1391
+ export function deleteV1StacksVersionsByStackVersionId({ stackVersionId, deletionType }, opts) {
1392
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}${QS.query(QS.explode({
1393
+ deletionType
1394
+ }))}`, {
1395
+ ...opts,
1396
+ method: "DELETE"
1397
+ }));
1398
+ }
1399
+ /**
1400
+ * Get all workspaces associated with a stack version id
1401
+ */
1402
+ export function getWorkspaces({ stackVersionId }, opts) {
1403
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/workspaces`, {
1404
+ ...opts
1405
+ }));
1406
+ }
1407
+ /**
1408
+ * Get a stack version displayName and imageUrl
1409
+ */
1410
+ export function getStackVersionWorkspaces({ stackVersionId }, opts) {
1411
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/workspaces/summary`, {
1412
+ ...opts
1413
+ }));
1414
+ }
1415
+ /**
1416
+ * Validates the visibility of the given stack version with its studio
1417
+ */
1418
+ export function validateVisibility({ xWorkspaceId, stackVersionId }, opts) {
1419
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/validate-visibility`, {
1420
+ ...opts,
1421
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1422
+ "x-workspace-id": xWorkspaceId
1423
+ })
1424
+ }));
1425
+ }
1426
+ /**
1427
+ * Validate a stack version to delete
1428
+ */
1429
+ export function validate({ stackVersionId }, opts) {
1430
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/unpublish/validate`, {
1431
+ ...opts
1432
+ }));
1433
+ }
1434
+ /**
1435
+ * Get a starter list from a StackVersion
1436
+ */
1437
+ export function listStarters({ stackVersionId, $type, appAllowed, xWorkspaceId }, opts) {
1438
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/starters${QS.query(QS.explode({
1439
+ "type": $type,
1440
+ appAllowed
1441
+ }))}`, {
1442
+ ...opts,
1443
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1444
+ "x-workspace-id": xWorkspaceId
1445
+ })
1446
+ }));
1447
+ }
1448
+ /**
1449
+ * Get suggestions of version for a publish of stack version
1450
+ */
1451
+ export function getPublishSuggestions({ stackVersionId }, opts) {
1452
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/publish/suggestions`, {
1453
+ ...opts
1454
+ }));
1455
+ }
1456
+ /**
1457
+ * List Plugins by stack version id
1458
+ */
1459
+ export function listPlugins({ stackVersionId, starterType, xWorkspaceId }, opts) {
1460
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/plugins${QS.query(QS.explode({
1461
+ starterType
1462
+ }))}`, {
1463
+ ...opts,
1464
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1465
+ "x-workspace-id": xWorkspaceId
1466
+ })
1467
+ }));
1468
+ }
1469
+ /**
1470
+ * Stack Version Usage Summary
1471
+ */
1472
+ export function stackVersionUsageSummary({ stackVersionId }, opts) {
1473
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/in-use/summary`, {
1474
+ ...opts
1475
+ }));
1476
+ }
1477
+ /**
1478
+ * List all action versions from a stack version
1479
+ */
1480
+ export function listActions({ stackVersionId, forPluginVersionId, xWorkspaceId }, opts) {
1481
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/actions${QS.query(QS.explode({
1482
+ forPluginVersionId
1483
+ }))}`, {
1484
+ ...opts,
1485
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1486
+ "x-workspace-id": xWorkspaceId
1487
+ })
1488
+ }));
1489
+ }
1490
+ /**
1491
+ * List stack tags
1492
+ */
1493
+ export function listStackTags({ xWorkspaceId, studioSlug, filter, size }, opts) {
1494
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/tags${QS.query(QS.explode({
1495
+ studioSlug,
1496
+ filter,
1497
+ size
1498
+ }))}`, {
1499
+ ...opts,
1500
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1501
+ "x-workspace-id": xWorkspaceId
1502
+ })
1503
+ }));
1504
+ }
1505
+ /**
1506
+ * List plugins version
1507
+ */
1508
+ export function listPlugins1({ studioSlug, pluginVersionId, name, $type, technologies, status, filter, starterType, accountOnly, xWorkspaceId }, opts) {
1509
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/plugins${QS.query(QS.explode({
1510
+ studioSlug,
1511
+ pluginVersionId,
1512
+ name,
1513
+ "type": $type,
1514
+ technologies,
1515
+ status,
1516
+ filter,
1517
+ starterType,
1518
+ accountOnly
1519
+ }))}`, {
1520
+ ...opts,
1521
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1522
+ "x-workspace-id": xWorkspaceId
1523
+ })
1524
+ }));
1525
+ }
1526
+ /**
1527
+ * Validate a plugin version to delete
1528
+ */
1529
+ export function validatePluginVersion({ pluginVersionId }, opts) {
1530
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/plugins/versions/${encodeURIComponent(pluginVersionId)}/unpublish/validate`, {
1531
+ ...opts
1532
+ }));
1533
+ }
1534
+ /**
1535
+ * Get a plugin version yaml content
1536
+ */
1537
+ export function getPluginYamlContent({ pluginVersionId, xWorkspaceId }, opts) {
1538
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/plugins/versions/${encodeURIComponent(pluginVersionId)}/manifest`, {
1539
+ ...opts,
1540
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1541
+ "x-workspace-id": xWorkspaceId
1542
+ })
1543
+ }));
1544
+ }
1545
+ /**
1546
+ * Get inputs from a plugin version
1547
+ */
1548
+ export function getInputs1({ pluginVersionId, xWorkspaceId }, opts) {
1549
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/plugins/versions/${encodeURIComponent(pluginVersionId)}/inputs`, {
1550
+ ...opts,
1551
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1552
+ "x-workspace-id": xWorkspaceId
1553
+ })
1554
+ }));
1555
+ }
1556
+ /**
1557
+ * Plugin Version Usage Summary
1558
+ */
1559
+ export function getPluginVersionUsageSummary({ pluginVersionId }, opts) {
1560
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/plugins/versions/${encodeURIComponent(pluginVersionId)}/in-use/summary`, {
1561
+ ...opts
1562
+ }));
1563
+ }
1564
+ /**
1565
+ * List plugins version by connection
1566
+ */
1567
+ export function listPluginsByConnectionInterface({ xWorkspaceId, connTypeSlug, studioSlug }, opts) {
1568
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/plugins/generates/connections/${encodeURIComponent(connTypeSlug)}${QS.query(QS.explode({
1569
+ studioSlug
1570
+ }))}`, {
1571
+ ...opts,
1572
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1573
+ "x-workspace-id": xWorkspaceId
1574
+ })
1575
+ }));
1576
+ }
1577
+ /**
1578
+ * List reasons to deprecate content
1579
+ */
1580
+ export function listReasons(opts) {
1581
+ return oazapfts.ok(oazapfts.fetchJson("/v1/deprecated-reasons", {
1582
+ ...opts
1583
+ }));
1584
+ }
1585
+ /**
1586
+ * Get Studio and Content data from Content Type and Content ID
1587
+ */
1588
+ export function getContent({ contentType, contentIdentifier, studioSlug, accountId }, opts) {
1589
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/contents${QS.query(QS.explode({
1590
+ contentType,
1591
+ contentIdentifier,
1592
+ studioSlug,
1593
+ accountId
1594
+ }))}`, {
1595
+ ...opts
1596
+ }));
1597
+ }
1598
+ /**
1599
+ * List contents evaluation
1600
+ */
1601
+ export function listContentsEvaluation({ filter, page, size, statusRevision }, opts) {
1602
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/contents-evaluation${QS.query(QS.explode({
1603
+ filter,
1604
+ page,
1605
+ size,
1606
+ statusRevision
1607
+ }))}`, {
1608
+ ...opts
1609
+ }));
1610
+ }
1611
+ /**
1612
+ * Content evaluation summary details
1613
+ */
1614
+ export function contentEvaluationDetails({ contentEvaluationId }, opts) {
1615
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/contents-evaluation/${encodeURIComponent(contentEvaluationId)}`, {
1616
+ ...opts
1617
+ }));
1618
+ }
1619
+ /**
1620
+ * List discussion messages
1621
+ */
1622
+ export function getDiscussionMessages({ contentEvaluationId }, opts) {
1623
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/contents-evaluation/${encodeURIComponent(contentEvaluationId)}/discussion`, {
1624
+ ...opts
1625
+ }));
1626
+ }
1627
+ /**
1628
+ * Get Connection Interface Type by Id
1629
+ */
1630
+ export function getConnectionInterfaceType1({ connectionInterfaceTypeIdOrSlug }, opts) {
1631
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/connection-interface-types/${encodeURIComponent(connectionInterfaceTypeIdOrSlug)}`, {
1632
+ ...opts
1633
+ }));
1634
+ }
1635
+ /**
1636
+ * List of actions
1637
+ */
1638
+ export function listActions1({ studioSlug, name, $type, technologies, status, filter, accountOnly, xWorkspaceId, requiresConnection }, opts) {
1639
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/actions${QS.query(QS.explode({
1640
+ studioSlug,
1641
+ name,
1642
+ "type": $type,
1643
+ technologies,
1644
+ status,
1645
+ filter,
1646
+ accountOnly,
1647
+ requiresConnection
1648
+ }))}`, {
1649
+ ...opts,
1650
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1651
+ "x-workspace-id": xWorkspaceId
1652
+ })
1653
+ }));
1654
+ }
1655
+ /**
1656
+ * Get Action by actionVersionId
1657
+ */
1658
+ export function getActionVersionById({ actionVersionId, xWorkspaceId }, opts) {
1659
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/actions/versions/${encodeURIComponent(actionVersionId)}`, {
1660
+ ...opts,
1661
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1662
+ "x-workspace-id": xWorkspaceId
1663
+ })
1664
+ }));
1665
+ }
1666
+ /**
1667
+ * Remove an action version
1668
+ */
1669
+ export function deleteActionVersion({ actionVersionId }, opts) {
1670
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/actions/versions/${encodeURIComponent(actionVersionId)}`, {
1671
+ ...opts,
1672
+ method: "DELETE"
1673
+ }));
1674
+ }
1675
+ /**
1676
+ * Validate an action version to delete
1677
+ */
1678
+ export function validateActionVersion({ actionVersionId }, opts) {
1679
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/actions/versions/${encodeURIComponent(actionVersionId)}/unpublish/validate`, {
1680
+ ...opts
1681
+ }));
1682
+ }
1683
+ /**
1684
+ * List inputs of an action version
1685
+ */
1686
+ export function getListOfInputs({ actionVersionId, xWorkspaceId, accountId }, opts) {
1687
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/actions/versions/${encodeURIComponent(actionVersionId)}/inputs`, {
1688
+ ...opts,
1689
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1690
+ "x-workspace-id": xWorkspaceId,
1691
+ "account-id": accountId
1692
+ })
1693
+ }));
1694
+ }
1695
+ /**
1696
+ * Get Actions Versions by secret
1697
+ */
1698
+ export function getActionVersionsBySecret({ secretName }, opts) {
1699
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/actions/secrets/${encodeURIComponent(secretName)}`, {
1700
+ ...opts
1701
+ }));
1702
+ }
1703
+ /**
1704
+ * Get accountInfo
1705
+ */
1706
+ export function getAccountInfo(opts) {
1707
+ return oazapfts.ok(oazapfts.fetchJson("/v1/accounts", {
1708
+ ...opts
1709
+ }));
1710
+ }
1711
+ /**
1712
+ * List all action versions
1713
+ */
1714
+ export function getAllActionVersions1({ accountSlug, studioSlug, actionSlug, status, xWorkspaceId }, opts) {
1715
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/accounts/${encodeURIComponent(accountSlug)}/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions${QS.query(QS.explode({
1716
+ status
1717
+ }))}`, {
1718
+ ...opts,
1719
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1720
+ "x-workspace-id": xWorkspaceId
1721
+ })
1722
+ }));
1723
+ }
1724
+ /**
1725
+ * Download an action by version
1726
+ */
1727
+ export function downloadAction2({ accountSlug, studioSlug, actionSlug, version, xWorkspaceId }, opts) {
1728
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/accounts/${encodeURIComponent(accountSlug)}/studios/${encodeURIComponent(studioSlug)}/actions/${encodeURIComponent(actionSlug)}/versions/${encodeURIComponent(version)}/download`, {
1729
+ ...opts,
1730
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1731
+ "x-workspace-id": xWorkspaceId
1732
+ })
1733
+ }));
1734
+ }
1735
+ /**
1736
+ * List account documentations
1737
+ */
1738
+ export function listDocs({ accountId }, opts) {
1739
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/accounts/${encodeURIComponent(accountId)}/docs`, {
1740
+ ...opts
1741
+ }));
1742
+ }
1743
+ /**
1744
+ * Remove workspace of given studio
1745
+ */
1746
+ export function delWorkspace({ studioSlug, workspaceId }, opts) {
1747
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioSlug)}/workspaces/${encodeURIComponent(workspaceId)}`, {
1748
+ ...opts,
1749
+ method: "DELETE"
1750
+ }));
1751
+ }
1752
+ /**
1753
+ * Remove an team from a studio
1754
+ */
1755
+ export function deleteTeam({ studioId, teamId }, opts) {
1756
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/studios/${encodeURIComponent(studioId)}/teams/${encodeURIComponent(teamId)}`, {
1757
+ ...opts,
1758
+ method: "DELETE"
1759
+ }));
1760
+ }
1761
+ /**
1762
+ * Deletes a Starter from a StackVersion
1763
+ */
1764
+ export function deleteStarter({ stackVersionId, starterId }, opts) {
1765
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/starters/${encodeURIComponent(starterId)}`, {
1766
+ ...opts,
1767
+ method: "DELETE"
1768
+ }));
1769
+ }
1770
+ /**
1771
+ * Delete plugin by id
1772
+ */
1773
+ export function deletePlugin({ stackVersionId, pluginVersionId }, opts) {
1774
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}`, {
1775
+ ...opts,
1776
+ method: "DELETE"
1777
+ }));
1778
+ }
1779
+ /**
1780
+ * Remove an associated action from a plugin
1781
+ */
1782
+ export function removeActionFromPlugin({ stackVersionId, pluginVersionId, actionVersionId }, opts) {
1783
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/plugins/${encodeURIComponent(pluginVersionId)}/actions/${encodeURIComponent(actionVersionId)}`, {
1784
+ ...opts,
1785
+ method: "DELETE"
1786
+ }));
1787
+ }
1788
+ /**
1789
+ * Remove an action from a stack version
1790
+ */
1791
+ export function deleteAction({ stackVersionId, actionVersionId }, opts) {
1792
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/stacks/versions/${encodeURIComponent(stackVersionId)}/actions/${encodeURIComponent(actionVersionId)}`, {
1793
+ ...opts,
1794
+ method: "DELETE"
1795
+ }));
1796
+ }
1797
+ /**
1798
+ * Remove a plugin version
1799
+ */
1800
+ export function deletePluginVersion({ pluginVersionId, $override }, opts) {
1801
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/plugins/versions/${encodeURIComponent(pluginVersionId)}${QS.query(QS.explode({
1802
+ "override": $override
1803
+ }))}`, {
1804
+ ...opts,
1805
+ method: "DELETE"
1806
+ }));
1807
+ }
1808
+ //# sourceMappingURL=content.js.map