@stack-spot/portal-network 0.184.0 → 0.185.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2444 -2412
- package/dist/api/account.js +1 -1
- package/dist/api/agent-tools.js +1 -1
- package/dist/api/agent.js +1 -1
- package/dist/api/ai.js +1 -1
- package/dist/api/apiManagement.js +1 -1
- package/dist/api/apiRuntime.js +1 -1
- package/dist/api/cloudAccount.js +1 -1
- package/dist/api/cloudPlatform.js +1 -1
- package/dist/api/cloudPlatformHorizon.js +1 -1
- package/dist/api/cloudRuntimes.js +1 -1
- package/dist/api/cloudServices.js +1 -1
- package/dist/api/codeShift.d.ts +63 -4
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +14 -1
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/content.js +1 -1
- package/dist/api/dataIntegration.js +1 -1
- package/dist/api/discover.js +1 -1
- package/dist/api/genAiInference.js +1 -1
- package/dist/api/insights.js +1 -1
- package/dist/api/notification.js +1 -1
- package/dist/api/secrets.js +1 -1
- package/dist/api/serviceCatalog.js +1 -1
- package/dist/api/workspace-ai.js +1 -1
- package/dist/api/workspace.js +1 -1
- package/dist/api/workspaceManager.js +1 -1
- package/dist/api/workspaceSearchEngine.js +1 -1
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +84 -14
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts +30 -0
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +37 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/types.d.ts +26 -6
- package/dist/client/types.d.ts.map +1 -1
- package/package.json +7 -7
- package/readme.md +1 -1
- package/scripts/generate-apis.ts +134 -134
- package/src/api/account.ts +8368 -8367
- package/src/api/agent-tools.ts +2172 -2169
- package/src/api/agent.ts +1085 -1083
- package/src/api/ai.ts +3388 -3388
- package/src/api/apiManagement.ts +570 -570
- package/src/api/apiRuntime.ts +2103 -2103
- package/src/api/cloudAccount.ts +1239 -1239
- package/src/api/cloudPlatform.ts +927 -927
- package/src/api/cloudPlatformHorizon.ts +2655 -2655
- package/src/api/cloudRuntimes.ts +2043 -2043
- package/src/api/cloudServices.ts +1445 -1445
- package/src/api/codeShift.ts +3567 -3481
- package/src/api/content.ts +9785 -9785
- package/src/api/dataIntegration.ts +1657 -1657
- package/src/api/discover.ts +435 -435
- package/src/api/eventBus.ts +171 -171
- package/src/api/genAiInference.ts +603 -603
- package/src/api/insights.ts +310 -310
- package/src/api/notification.ts +336 -334
- package/src/api/secrets.ts +342 -342
- package/src/api/serviceCatalog.ts +2908 -2908
- package/src/api/workflows.ts +1669 -1669
- package/src/api/workspace-ai.ts +677 -677
- package/src/api/workspace.ts +5889 -5889
- package/src/api/workspaceManager.ts +2951 -2951
- package/src/api/workspaceSearchEngine.ts +153 -153
- package/src/api-addresses.ts +120 -120
- package/src/apis-itau.json +225 -225
- package/src/apis.json +225 -225
- package/src/client/account.ts +902 -902
- package/src/client/agent-tools.ts +210 -210
- package/src/client/agent.ts +81 -81
- package/src/client/ai.ts +469 -395
- package/src/client/api-management.ts +40 -40
- package/src/client/cloud-account.ts +70 -70
- package/src/client/cloud-platform-horizon.ts +113 -113
- package/src/client/cloud-platform.ts +163 -163
- package/src/client/cloud-runtimes.ts +129 -129
- package/src/client/cloud-services.ts +94 -94
- package/src/client/code-shift.ts +371 -349
- package/src/client/content.ts +538 -538
- package/src/client/data-integration.ts +191 -191
- package/src/client/discover.ts +89 -89
- package/src/client/event-bus.ts +84 -84
- package/src/client/gen-ai-inference.ts +65 -65
- package/src/client/insights.ts +28 -28
- package/src/client/notification.ts +32 -32
- package/src/client/runtime-manager.ts +76 -76
- package/src/client/secrets.ts +60 -60
- package/src/client/types.ts +398 -377
- package/src/client/workflow.ts +83 -83
- package/src/client/workspace-ai.ts +191 -191
- package/src/client/workspace-manager.ts +564 -564
- package/src/client/workspace-search.ts +39 -39
- package/src/client/workspace.ts +480 -480
- package/src/error/DefaultAPIError.ts +151 -151
- package/src/error/FileUploadError.ts +18 -18
- package/src/error/IgnoredErrorCodes.ts +3 -3
- package/src/error/StackspotAPIError.ts +101 -101
- package/src/error/StreamCanceledError.ts +10 -10
- package/src/error/StreamError.ts +7 -7
- package/src/error/StreamJsonError.ts +10 -10
- package/src/error/dictionary/account.ts +58 -58
- package/src/error/dictionary/action-details.ts +20 -20
- package/src/error/dictionary/action.ts +211 -211
- package/src/error/dictionary/agent-tools.ts +75 -75
- package/src/error/dictionary/ai-inference.ts +28 -28
- package/src/error/dictionary/base.ts +22 -22
- package/src/error/dictionary/cloud-platform.ts +82 -82
- package/src/error/dictionary/cnt-fields.ts +14 -14
- package/src/error/dictionary/cnt.ts +103 -103
- package/src/error/dictionary/code-shift.ts +12 -12
- package/src/error/dictionary/rte.ts +24 -24
- package/src/error/dictionary/rtm.ts +10 -10
- package/src/error/dictionary/secrets.ts +14 -14
- package/src/error/dictionary/workspace-ai.ts +10 -10
- package/src/error/dictionary/workspace-details.ts +15 -15
- package/src/error/dictionary/workspace-fields.ts +10 -10
- package/src/error/dictionary/workspace.ts +209 -209
- package/src/error/types.ts +21 -21
- package/src/index.ts +43 -43
- package/src/network/AutoInfiniteQuery.ts +115 -115
- package/src/network/AutoMutation.ts +27 -27
- package/src/network/AutoOperation.ts +73 -73
- package/src/network/AutoQuery.ts +75 -75
- package/src/network/ManualInfiniteQuery.ts +95 -95
- package/src/network/ManualMutation.ts +40 -40
- package/src/network/ManualOperation.ts +52 -52
- package/src/network/ManualQuery.ts +82 -82
- package/src/network/NetworkClient.ts +167 -167
- package/src/network/ReactQueryNetworkClient.ts +312 -312
- package/src/network/react-query-client.ts +14 -14
- package/src/network/types.ts +294 -294
- package/src/types.ts +1 -1
- package/src/utils/StreamedArray.tsx +146 -146
- package/src/utils/StreamedJson.tsx +166 -166
- package/src/utils/remove-authorization-param.ts +6 -6
- package/src/utils/string.ts +19 -19
- package/src/utils/use-extended-list.ts +80 -80
- package/src/utils/use-streamed-array.ts +17 -17
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +10 -10
package/src/api/apiManagement.ts
CHANGED
|
@@ -1,570 +1,570 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OpenAPI definition
|
|
3
|
-
* v0
|
|
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: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
-
headers: {},
|
|
11
|
-
baseUrl: "http://api-management-catalog-assets-api.stg.stackspot.com",
|
|
12
|
-
};
|
|
13
|
-
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
-
export const servers = {
|
|
15
|
-
generatedServerUrl: "http://api-management-catalog-assets-api.stg.stackspot.com"
|
|
16
|
-
};
|
|
17
|
-
export type CreateTagRequest = {
|
|
18
|
-
key: string;
|
|
19
|
-
value?: string;
|
|
20
|
-
};
|
|
21
|
-
export type JsonNode = object;
|
|
22
|
-
export type CreateSchemaRequest = {
|
|
23
|
-
name: string;
|
|
24
|
-
description: string;
|
|
25
|
-
schema: JsonNode;
|
|
26
|
-
};
|
|
27
|
-
export type RequestParams = {
|
|
28
|
-
page: number;
|
|
29
|
-
size: number;
|
|
30
|
-
search?: string;
|
|
31
|
-
slugs?: string[];
|
|
32
|
-
restrict: boolean;
|
|
33
|
-
parentEntryId?: string;
|
|
34
|
-
workspaceId?: string;
|
|
35
|
-
presenter?: string;
|
|
36
|
-
bySlug: boolean;
|
|
37
|
-
isExact: boolean;
|
|
38
|
-
attribute?: string;
|
|
39
|
-
tag?: string[];
|
|
40
|
-
};
|
|
41
|
-
export type TagInputRequest = {
|
|
42
|
-
key: string;
|
|
43
|
-
value?: string;
|
|
44
|
-
};
|
|
45
|
-
export type CreateEntryRequest = {
|
|
46
|
-
slug: string;
|
|
47
|
-
tags?: TagInputRequest[];
|
|
48
|
-
metadata: JsonNode;
|
|
49
|
-
artifacts?: JsonNode;
|
|
50
|
-
workspaceId: string;
|
|
51
|
-
};
|
|
52
|
-
export type CreateSubSchemaRequest = {
|
|
53
|
-
name: string;
|
|
54
|
-
description: string;
|
|
55
|
-
is_dependency: boolean;
|
|
56
|
-
schema: JsonNode;
|
|
57
|
-
};
|
|
58
|
-
export type CreateSubEntryRequest = {
|
|
59
|
-
slug: string;
|
|
60
|
-
tags?: {
|
|
61
|
-
[key: string]: string;
|
|
62
|
-
};
|
|
63
|
-
parentEntryId: string;
|
|
64
|
-
metadata: JsonNode;
|
|
65
|
-
artifacts?: JsonNode;
|
|
66
|
-
workspaceId: string;
|
|
67
|
-
};
|
|
68
|
-
export type UpdateEntryRequest = {
|
|
69
|
-
tags?: TagInputRequest[];
|
|
70
|
-
metadata?: JsonNode;
|
|
71
|
-
};
|
|
72
|
-
export type UpdateEntryTag = {
|
|
73
|
-
key: string;
|
|
74
|
-
value?: string;
|
|
75
|
-
};
|
|
76
|
-
export function list({ size, page, tag, search }: {
|
|
77
|
-
size?: number;
|
|
78
|
-
page?: number;
|
|
79
|
-
tag?: string[];
|
|
80
|
-
search?: string;
|
|
81
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
82
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
83
|
-
status: 200;
|
|
84
|
-
data: object;
|
|
85
|
-
}>(`/v1/tags${QS.query(QS.explode({
|
|
86
|
-
size,
|
|
87
|
-
page,
|
|
88
|
-
tag,
|
|
89
|
-
search
|
|
90
|
-
}))}`, {
|
|
91
|
-
...opts
|
|
92
|
-
}));
|
|
93
|
-
}
|
|
94
|
-
export function createTag({ createTagRequest }: {
|
|
95
|
-
createTagRequest: CreateTagRequest;
|
|
96
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
97
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
98
|
-
status: 200;
|
|
99
|
-
data: object;
|
|
100
|
-
}>("/v1/tags", oazapfts.json({
|
|
101
|
-
...opts,
|
|
102
|
-
method: "POST",
|
|
103
|
-
body: createTagRequest
|
|
104
|
-
})));
|
|
105
|
-
}
|
|
106
|
-
export function getObjectSchemas(opts?: Oazapfts.RequestOpts) {
|
|
107
|
-
return oazapfts.ok(oazapfts.fetchText("/v1/schemas", {
|
|
108
|
-
...opts
|
|
109
|
-
}));
|
|
110
|
-
}
|
|
111
|
-
export function createSchema({ createSchemaRequest }: {
|
|
112
|
-
createSchemaRequest: CreateSchemaRequest;
|
|
113
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
114
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
115
|
-
status: 200;
|
|
116
|
-
data: object;
|
|
117
|
-
}>("/v1/schemas", oazapfts.json({
|
|
118
|
-
...opts,
|
|
119
|
-
method: "POST",
|
|
120
|
-
body: createSchemaRequest
|
|
121
|
-
})));
|
|
122
|
-
}
|
|
123
|
-
export function uploadSchemaArtifact({ schemaId, versionId, contentLength }: {
|
|
124
|
-
schemaId: string;
|
|
125
|
-
versionId: string;
|
|
126
|
-
contentLength: number;
|
|
127
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
128
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
129
|
-
status: 200;
|
|
130
|
-
data: object;
|
|
131
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(versionId)}/artifacts`, {
|
|
132
|
-
...opts,
|
|
133
|
-
method: "POST",
|
|
134
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
135
|
-
"Content-Length": contentLength
|
|
136
|
-
})
|
|
137
|
-
}));
|
|
138
|
-
}
|
|
139
|
-
export function getEntries({ schemaId, schemaVersionId, queryParams, allRequestParams }: {
|
|
140
|
-
schemaId: string;
|
|
141
|
-
schemaVersionId: string;
|
|
142
|
-
queryParams: RequestParams;
|
|
143
|
-
allRequestParams: {
|
|
144
|
-
[key: string]: string;
|
|
145
|
-
};
|
|
146
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
147
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
148
|
-
status: 200;
|
|
149
|
-
data: object;
|
|
150
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries${QS.query(QS.explode({
|
|
151
|
-
queryParams,
|
|
152
|
-
allRequestParams
|
|
153
|
-
}))}`, {
|
|
154
|
-
...opts
|
|
155
|
-
}));
|
|
156
|
-
}
|
|
157
|
-
export function createEntry({ schemaId, schemaVersionId, createEntryRequest }: {
|
|
158
|
-
schemaId: string;
|
|
159
|
-
schemaVersionId: string;
|
|
160
|
-
createEntryRequest: CreateEntryRequest;
|
|
161
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
162
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
163
|
-
status: 200;
|
|
164
|
-
data: object;
|
|
165
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries`, oazapfts.json({
|
|
166
|
-
...opts,
|
|
167
|
-
method: "POST",
|
|
168
|
-
body: createEntryRequest
|
|
169
|
-
})));
|
|
170
|
-
}
|
|
171
|
-
export function getSubSchemas(opts?: Oazapfts.RequestOpts) {
|
|
172
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas`, {
|
|
173
|
-
...opts
|
|
174
|
-
}));
|
|
175
|
-
}
|
|
176
|
-
export function createSubSchema({ schemaId, createSubSchemaRequest }: {
|
|
177
|
-
schemaId: string;
|
|
178
|
-
createSubSchemaRequest: CreateSubSchemaRequest;
|
|
179
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
180
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
181
|
-
status: 200;
|
|
182
|
-
data: object;
|
|
183
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas`, oazapfts.json({
|
|
184
|
-
...opts,
|
|
185
|
-
method: "POST",
|
|
186
|
-
body: createSubSchemaRequest
|
|
187
|
-
})));
|
|
188
|
-
}
|
|
189
|
-
export function uploadSchemaArtifact1({ schemaId, subSchemaId, versionId, contentLength }: {
|
|
190
|
-
schemaId: string;
|
|
191
|
-
subSchemaId: string;
|
|
192
|
-
versionId: string;
|
|
193
|
-
contentLength: number;
|
|
194
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
195
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
196
|
-
status: 200;
|
|
197
|
-
data: object;
|
|
198
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(versionId)}/artifacts`, {
|
|
199
|
-
...opts,
|
|
200
|
-
method: "POST",
|
|
201
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
202
|
-
"Content-Length": contentLength
|
|
203
|
-
})
|
|
204
|
-
}));
|
|
205
|
-
}
|
|
206
|
-
export function getSubEntries({ schemaId, subSchemaId, subVersionId, allRequestParams, queryParams }: {
|
|
207
|
-
schemaId: string;
|
|
208
|
-
subSchemaId: string;
|
|
209
|
-
subVersionId: string;
|
|
210
|
-
allRequestParams: {
|
|
211
|
-
[key: string]: string;
|
|
212
|
-
};
|
|
213
|
-
queryParams: RequestParams;
|
|
214
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
215
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
216
|
-
status: 200;
|
|
217
|
-
data: object;
|
|
218
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries${QS.query(QS.explode({
|
|
219
|
-
allRequestParams,
|
|
220
|
-
queryParams
|
|
221
|
-
}))}`, {
|
|
222
|
-
...opts
|
|
223
|
-
}));
|
|
224
|
-
}
|
|
225
|
-
export function createSubEntry({ schemaId, subSchemaId, subVersionId, createSubEntryRequest }: {
|
|
226
|
-
schemaId: string;
|
|
227
|
-
subSchemaId: string;
|
|
228
|
-
subVersionId: string;
|
|
229
|
-
createSubEntryRequest: CreateSubEntryRequest;
|
|
230
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
231
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
232
|
-
status: 200;
|
|
233
|
-
data: object;
|
|
234
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries`, oazapfts.json({
|
|
235
|
-
...opts,
|
|
236
|
-
method: "POST",
|
|
237
|
-
body: createSubEntryRequest
|
|
238
|
-
})));
|
|
239
|
-
}
|
|
240
|
-
export function getObjectSchemaId({ schemaId }: {
|
|
241
|
-
schemaId: string;
|
|
242
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
243
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
244
|
-
status: 200;
|
|
245
|
-
data: object;
|
|
246
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}`, {
|
|
247
|
-
...opts
|
|
248
|
-
}));
|
|
249
|
-
}
|
|
250
|
-
export function createSchemaVersion({ schemaId, jsonNode }: {
|
|
251
|
-
schemaId: string;
|
|
252
|
-
jsonNode: JsonNode;
|
|
253
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
254
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
255
|
-
status: 200;
|
|
256
|
-
data: object;
|
|
257
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}`, oazapfts.json({
|
|
258
|
-
...opts,
|
|
259
|
-
method: "PATCH",
|
|
260
|
-
body: jsonNode
|
|
261
|
-
})));
|
|
262
|
-
}
|
|
263
|
-
export function getEntryById({ schemaId, schemaVersionId, entryId, presenter }: {
|
|
264
|
-
schemaId: string;
|
|
265
|
-
schemaVersionId: string;
|
|
266
|
-
entryId: string;
|
|
267
|
-
presenter?: string;
|
|
268
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
269
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
270
|
-
status: 200;
|
|
271
|
-
data: object;
|
|
272
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}${QS.query(QS.explode({
|
|
273
|
-
presenter
|
|
274
|
-
}))}`, {
|
|
275
|
-
...opts
|
|
276
|
-
}));
|
|
277
|
-
}
|
|
278
|
-
export function updateEntry({ schemaId, schemaVersionId, entryId, updateEntryRequest }: {
|
|
279
|
-
schemaId: string;
|
|
280
|
-
schemaVersionId: string;
|
|
281
|
-
entryId: string;
|
|
282
|
-
updateEntryRequest: UpdateEntryRequest;
|
|
283
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
284
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
285
|
-
status: 200;
|
|
286
|
-
data: object;
|
|
287
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}`, oazapfts.json({
|
|
288
|
-
...opts,
|
|
289
|
-
method: "PATCH",
|
|
290
|
-
body: updateEntryRequest
|
|
291
|
-
})));
|
|
292
|
-
}
|
|
293
|
-
export function updateTag({ schemaId, schemaVersionId, entryId, oldTag, updateEntryTag }: {
|
|
294
|
-
schemaId: string;
|
|
295
|
-
schemaVersionId: string;
|
|
296
|
-
entryId: string;
|
|
297
|
-
oldTag: string;
|
|
298
|
-
updateEntryTag: UpdateEntryTag;
|
|
299
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
300
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
301
|
-
status: 200;
|
|
302
|
-
data: object;
|
|
303
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}/tags/${encodeURIComponent(oldTag)}`, oazapfts.json({
|
|
304
|
-
...opts,
|
|
305
|
-
method: "PATCH",
|
|
306
|
-
body: updateEntryTag
|
|
307
|
-
})));
|
|
308
|
-
}
|
|
309
|
-
export function downloadObjectArtifacts({ schemaId, schemaVersionId, entryId, name }: {
|
|
310
|
-
schemaId: string;
|
|
311
|
-
schemaVersionId: string;
|
|
312
|
-
entryId: string;
|
|
313
|
-
name?: string;
|
|
314
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
315
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
316
|
-
status: 200;
|
|
317
|
-
data: object;
|
|
318
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}/artifacts${QS.query(QS.explode({
|
|
319
|
-
name
|
|
320
|
-
}))}`, {
|
|
321
|
-
...opts
|
|
322
|
-
}));
|
|
323
|
-
}
|
|
324
|
-
export function attachArtifacts({ schemaId, schemaVersionId, entryId, jsonNode }: {
|
|
325
|
-
schemaId: string;
|
|
326
|
-
schemaVersionId: string;
|
|
327
|
-
entryId: string;
|
|
328
|
-
jsonNode: JsonNode;
|
|
329
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
330
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
331
|
-
status: 200;
|
|
332
|
-
data: object;
|
|
333
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}/artifacts`, oazapfts.json({
|
|
334
|
-
...opts,
|
|
335
|
-
method: "PATCH",
|
|
336
|
-
body: jsonNode
|
|
337
|
-
})));
|
|
338
|
-
}
|
|
339
|
-
export function downloadSchemaArtifact({ schemaId, schemaVersionId, entryId, artifactId }: {
|
|
340
|
-
schemaId: string;
|
|
341
|
-
schemaVersionId: string;
|
|
342
|
-
entryId: string;
|
|
343
|
-
artifactId: string;
|
|
344
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
345
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
346
|
-
status: 200;
|
|
347
|
-
data: object;
|
|
348
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}/artifacts/${encodeURIComponent(artifactId)}`, {
|
|
349
|
-
...opts
|
|
350
|
-
}));
|
|
351
|
-
}
|
|
352
|
-
export function updatedArtifact({ artifactId, schemaId, schemaVersionId, entryId, contentLength }: {
|
|
353
|
-
artifactId: string;
|
|
354
|
-
schemaId: string;
|
|
355
|
-
schemaVersionId: string;
|
|
356
|
-
entryId: string;
|
|
357
|
-
contentLength: number;
|
|
358
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
359
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
360
|
-
status: 200;
|
|
361
|
-
data: object;
|
|
362
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}/artifacts/${encodeURIComponent(artifactId)}`, {
|
|
363
|
-
...opts,
|
|
364
|
-
method: "PATCH",
|
|
365
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
366
|
-
"Content-Length": contentLength
|
|
367
|
-
})
|
|
368
|
-
}));
|
|
369
|
-
}
|
|
370
|
-
export function getSubSchema({ schemaId, subSchemaId }: {
|
|
371
|
-
schemaId: string;
|
|
372
|
-
subSchemaId: string;
|
|
373
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
374
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
375
|
-
status: 200;
|
|
376
|
-
data: object;
|
|
377
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}`, {
|
|
378
|
-
...opts
|
|
379
|
-
}));
|
|
380
|
-
}
|
|
381
|
-
export function newVersion({ schemaId, subSchemaId, jsonNode }: {
|
|
382
|
-
schemaId: string;
|
|
383
|
-
subSchemaId: string;
|
|
384
|
-
jsonNode: JsonNode;
|
|
385
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
386
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
387
|
-
status: 200;
|
|
388
|
-
data: object;
|
|
389
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}`, oazapfts.json({
|
|
390
|
-
...opts,
|
|
391
|
-
method: "PATCH",
|
|
392
|
-
body: jsonNode
|
|
393
|
-
})));
|
|
394
|
-
}
|
|
395
|
-
export function updateTag1({ schemaId, subSchemaId, subVersionId, subEntryId, oldTag, updateEntryTag }: {
|
|
396
|
-
schemaId: string;
|
|
397
|
-
subSchemaId: string;
|
|
398
|
-
subVersionId: string;
|
|
399
|
-
subEntryId: string;
|
|
400
|
-
oldTag: string;
|
|
401
|
-
updateEntryTag: UpdateEntryTag;
|
|
402
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
403
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
404
|
-
status: 200;
|
|
405
|
-
data: object;
|
|
406
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}/tags/${encodeURIComponent(oldTag)}`, oazapfts.json({
|
|
407
|
-
...opts,
|
|
408
|
-
method: "PATCH",
|
|
409
|
-
body: updateEntryTag
|
|
410
|
-
})));
|
|
411
|
-
}
|
|
412
|
-
export function downloadObjectArtifacts1({ schemaId, subSchemaId, subVersionId, subEntryId, name }: {
|
|
413
|
-
schemaId: string;
|
|
414
|
-
subSchemaId: string;
|
|
415
|
-
subVersionId: string;
|
|
416
|
-
subEntryId: string;
|
|
417
|
-
name?: string;
|
|
418
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
419
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
420
|
-
status: 200;
|
|
421
|
-
data: object;
|
|
422
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}/artifacts${QS.query(QS.explode({
|
|
423
|
-
name
|
|
424
|
-
}))}`, {
|
|
425
|
-
...opts
|
|
426
|
-
}));
|
|
427
|
-
}
|
|
428
|
-
export function attachArtifacts1({ schemaId, subSchemaId, subVersionId, subEntryId, jsonNode }: {
|
|
429
|
-
schemaId: string;
|
|
430
|
-
subSchemaId: string;
|
|
431
|
-
subVersionId: string;
|
|
432
|
-
subEntryId: string;
|
|
433
|
-
jsonNode: JsonNode;
|
|
434
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
435
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
436
|
-
status: 200;
|
|
437
|
-
data: object;
|
|
438
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}/artifacts`, oazapfts.json({
|
|
439
|
-
...opts,
|
|
440
|
-
method: "PATCH",
|
|
441
|
-
body: jsonNode
|
|
442
|
-
})));
|
|
443
|
-
}
|
|
444
|
-
export function downloadSchemaArtifact1({ schemaId, subSchemaId, subVersionId, subEntryId, artifactId }: {
|
|
445
|
-
schemaId: string;
|
|
446
|
-
subSchemaId: string;
|
|
447
|
-
subVersionId: string;
|
|
448
|
-
subEntryId: string;
|
|
449
|
-
artifactId: string;
|
|
450
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
451
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
452
|
-
status: 200;
|
|
453
|
-
data: object;
|
|
454
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}/artifacts/${encodeURIComponent(artifactId)}`, {
|
|
455
|
-
...opts
|
|
456
|
-
}));
|
|
457
|
-
}
|
|
458
|
-
export function updatedArtifact1({ artifactId, schemaId, subSchemaId, subVersionId, subEntryId, contentLength }: {
|
|
459
|
-
artifactId: string;
|
|
460
|
-
schemaId: string;
|
|
461
|
-
subSchemaId: string;
|
|
462
|
-
subVersionId: string;
|
|
463
|
-
subEntryId: string;
|
|
464
|
-
contentLength: number;
|
|
465
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
466
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
467
|
-
status: 200;
|
|
468
|
-
data: object;
|
|
469
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}/artifacts/${encodeURIComponent(artifactId)}`, {
|
|
470
|
-
...opts,
|
|
471
|
-
method: "PATCH",
|
|
472
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
473
|
-
"Content-Length": contentLength
|
|
474
|
-
})
|
|
475
|
-
}));
|
|
476
|
-
}
|
|
477
|
-
export function updateEntry1({ schemaId, subSchemaId, subVersionId, entryId, updateEntryRequest }: {
|
|
478
|
-
schemaId: string;
|
|
479
|
-
subSchemaId: string;
|
|
480
|
-
subVersionId: string;
|
|
481
|
-
entryId: string;
|
|
482
|
-
updateEntryRequest: UpdateEntryRequest;
|
|
483
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
484
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
485
|
-
status: 200;
|
|
486
|
-
data: object;
|
|
487
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(entryId)}`, oazapfts.json({
|
|
488
|
-
...opts,
|
|
489
|
-
method: "PATCH",
|
|
490
|
-
body: updateEntryRequest
|
|
491
|
-
})));
|
|
492
|
-
}
|
|
493
|
-
export function getTag({ tag }: {
|
|
494
|
-
tag: string;
|
|
495
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
496
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
497
|
-
status: 200;
|
|
498
|
-
data: object;
|
|
499
|
-
}>(`/v1/tags/${encodeURIComponent(tag)}`, {
|
|
500
|
-
...opts
|
|
501
|
-
}));
|
|
502
|
-
}
|
|
503
|
-
export function getSchemaVersions(opts?: Oazapfts.RequestOpts) {
|
|
504
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/schemas/${encodeURIComponent(schemaId)}/versions`, {
|
|
505
|
-
...opts
|
|
506
|
-
}));
|
|
507
|
-
}
|
|
508
|
-
export function getSchemaVersionById({ schemaId, versionId }: {
|
|
509
|
-
schemaId: string;
|
|
510
|
-
versionId: string;
|
|
511
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
512
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
513
|
-
status: 200;
|
|
514
|
-
data: object;
|
|
515
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(versionId)}`, {
|
|
516
|
-
...opts
|
|
517
|
-
}));
|
|
518
|
-
}
|
|
519
|
-
export function getSchemaVersions1(opts?: Oazapfts.RequestOpts) {
|
|
520
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions`, {
|
|
521
|
-
...opts
|
|
522
|
-
}));
|
|
523
|
-
}
|
|
524
|
-
export function getSchemaVersionById1(opts?: Oazapfts.RequestOpts) {
|
|
525
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(versionId)}`, {
|
|
526
|
-
...opts
|
|
527
|
-
}));
|
|
528
|
-
}
|
|
529
|
-
export function getSubEntriesById({ schemaId, subSchemaId, subVersionId, subEntryId }: {
|
|
530
|
-
schemaId: string;
|
|
531
|
-
subSchemaId: string;
|
|
532
|
-
subVersionId: string;
|
|
533
|
-
subEntryId: string;
|
|
534
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
535
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
536
|
-
status: 200;
|
|
537
|
-
data: object;
|
|
538
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}`, {
|
|
539
|
-
...opts
|
|
540
|
-
}));
|
|
541
|
-
}
|
|
542
|
-
export function removeTag({ schemaId, schemaVersionId, entryId, tag }: {
|
|
543
|
-
schemaId: string;
|
|
544
|
-
schemaVersionId: string;
|
|
545
|
-
entryId: string;
|
|
546
|
-
tag: string;
|
|
547
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
548
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
549
|
-
status: 200;
|
|
550
|
-
data: object;
|
|
551
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}/tags/${encodeURIComponent(tag)}`, {
|
|
552
|
-
...opts,
|
|
553
|
-
method: "DELETE"
|
|
554
|
-
}));
|
|
555
|
-
}
|
|
556
|
-
export function removeTag1({ schemaId, subSchemaId, subVersionId, subEntryId, tag }: {
|
|
557
|
-
schemaId: string;
|
|
558
|
-
subSchemaId: string;
|
|
559
|
-
subVersionId: string;
|
|
560
|
-
subEntryId: string;
|
|
561
|
-
tag: string;
|
|
562
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
563
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
564
|
-
status: 200;
|
|
565
|
-
data: object;
|
|
566
|
-
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}/tags/${encodeURIComponent(tag)}`, {
|
|
567
|
-
...opts,
|
|
568
|
-
method: "DELETE"
|
|
569
|
-
}));
|
|
570
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* v0
|
|
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: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
+
headers: {},
|
|
11
|
+
baseUrl: "http://api-management-catalog-assets-api.stg.stackspot.com",
|
|
12
|
+
};
|
|
13
|
+
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
+
export const servers = {
|
|
15
|
+
generatedServerUrl: "http://api-management-catalog-assets-api.stg.stackspot.com"
|
|
16
|
+
};
|
|
17
|
+
export type CreateTagRequest = {
|
|
18
|
+
key: string;
|
|
19
|
+
value?: string;
|
|
20
|
+
};
|
|
21
|
+
export type JsonNode = object;
|
|
22
|
+
export type CreateSchemaRequest = {
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
schema: JsonNode;
|
|
26
|
+
};
|
|
27
|
+
export type RequestParams = {
|
|
28
|
+
page: number;
|
|
29
|
+
size: number;
|
|
30
|
+
search?: string;
|
|
31
|
+
slugs?: string[];
|
|
32
|
+
restrict: boolean;
|
|
33
|
+
parentEntryId?: string;
|
|
34
|
+
workspaceId?: string;
|
|
35
|
+
presenter?: string;
|
|
36
|
+
bySlug: boolean;
|
|
37
|
+
isExact: boolean;
|
|
38
|
+
attribute?: string;
|
|
39
|
+
tag?: string[];
|
|
40
|
+
};
|
|
41
|
+
export type TagInputRequest = {
|
|
42
|
+
key: string;
|
|
43
|
+
value?: string;
|
|
44
|
+
};
|
|
45
|
+
export type CreateEntryRequest = {
|
|
46
|
+
slug: string;
|
|
47
|
+
tags?: TagInputRequest[];
|
|
48
|
+
metadata: JsonNode;
|
|
49
|
+
artifacts?: JsonNode;
|
|
50
|
+
workspaceId: string;
|
|
51
|
+
};
|
|
52
|
+
export type CreateSubSchemaRequest = {
|
|
53
|
+
name: string;
|
|
54
|
+
description: string;
|
|
55
|
+
is_dependency: boolean;
|
|
56
|
+
schema: JsonNode;
|
|
57
|
+
};
|
|
58
|
+
export type CreateSubEntryRequest = {
|
|
59
|
+
slug: string;
|
|
60
|
+
tags?: {
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
};
|
|
63
|
+
parentEntryId: string;
|
|
64
|
+
metadata: JsonNode;
|
|
65
|
+
artifacts?: JsonNode;
|
|
66
|
+
workspaceId: string;
|
|
67
|
+
};
|
|
68
|
+
export type UpdateEntryRequest = {
|
|
69
|
+
tags?: TagInputRequest[];
|
|
70
|
+
metadata?: JsonNode;
|
|
71
|
+
};
|
|
72
|
+
export type UpdateEntryTag = {
|
|
73
|
+
key: string;
|
|
74
|
+
value?: string;
|
|
75
|
+
};
|
|
76
|
+
export function list({ size, page, tag, search }: {
|
|
77
|
+
size?: number;
|
|
78
|
+
page?: number;
|
|
79
|
+
tag?: string[];
|
|
80
|
+
search?: string;
|
|
81
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
82
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
83
|
+
status: 200;
|
|
84
|
+
data: object;
|
|
85
|
+
}>(`/v1/tags${QS.query(QS.explode({
|
|
86
|
+
size,
|
|
87
|
+
page,
|
|
88
|
+
tag,
|
|
89
|
+
search
|
|
90
|
+
}))}`, {
|
|
91
|
+
...opts
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
export function createTag({ createTagRequest }: {
|
|
95
|
+
createTagRequest: CreateTagRequest;
|
|
96
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
97
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
98
|
+
status: 200;
|
|
99
|
+
data: object;
|
|
100
|
+
}>("/v1/tags", oazapfts.json({
|
|
101
|
+
...opts,
|
|
102
|
+
method: "POST",
|
|
103
|
+
body: createTagRequest
|
|
104
|
+
})));
|
|
105
|
+
}
|
|
106
|
+
export function getObjectSchemas(opts?: Oazapfts.RequestOpts) {
|
|
107
|
+
return oazapfts.ok(oazapfts.fetchText("/v1/schemas", {
|
|
108
|
+
...opts
|
|
109
|
+
}));
|
|
110
|
+
}
|
|
111
|
+
export function createSchema({ createSchemaRequest }: {
|
|
112
|
+
createSchemaRequest: CreateSchemaRequest;
|
|
113
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
114
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
115
|
+
status: 200;
|
|
116
|
+
data: object;
|
|
117
|
+
}>("/v1/schemas", oazapfts.json({
|
|
118
|
+
...opts,
|
|
119
|
+
method: "POST",
|
|
120
|
+
body: createSchemaRequest
|
|
121
|
+
})));
|
|
122
|
+
}
|
|
123
|
+
export function uploadSchemaArtifact({ schemaId, versionId, contentLength }: {
|
|
124
|
+
schemaId: string;
|
|
125
|
+
versionId: string;
|
|
126
|
+
contentLength: number;
|
|
127
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
128
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
129
|
+
status: 200;
|
|
130
|
+
data: object;
|
|
131
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(versionId)}/artifacts`, {
|
|
132
|
+
...opts,
|
|
133
|
+
method: "POST",
|
|
134
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
135
|
+
"Content-Length": contentLength
|
|
136
|
+
})
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
export function getEntries({ schemaId, schemaVersionId, queryParams, allRequestParams }: {
|
|
140
|
+
schemaId: string;
|
|
141
|
+
schemaVersionId: string;
|
|
142
|
+
queryParams: RequestParams;
|
|
143
|
+
allRequestParams: {
|
|
144
|
+
[key: string]: string;
|
|
145
|
+
};
|
|
146
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
147
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
148
|
+
status: 200;
|
|
149
|
+
data: object;
|
|
150
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries${QS.query(QS.explode({
|
|
151
|
+
queryParams,
|
|
152
|
+
allRequestParams
|
|
153
|
+
}))}`, {
|
|
154
|
+
...opts
|
|
155
|
+
}));
|
|
156
|
+
}
|
|
157
|
+
export function createEntry({ schemaId, schemaVersionId, createEntryRequest }: {
|
|
158
|
+
schemaId: string;
|
|
159
|
+
schemaVersionId: string;
|
|
160
|
+
createEntryRequest: CreateEntryRequest;
|
|
161
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
162
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
163
|
+
status: 200;
|
|
164
|
+
data: object;
|
|
165
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries`, oazapfts.json({
|
|
166
|
+
...opts,
|
|
167
|
+
method: "POST",
|
|
168
|
+
body: createEntryRequest
|
|
169
|
+
})));
|
|
170
|
+
}
|
|
171
|
+
export function getSubSchemas(opts?: Oazapfts.RequestOpts) {
|
|
172
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas`, {
|
|
173
|
+
...opts
|
|
174
|
+
}));
|
|
175
|
+
}
|
|
176
|
+
export function createSubSchema({ schemaId, createSubSchemaRequest }: {
|
|
177
|
+
schemaId: string;
|
|
178
|
+
createSubSchemaRequest: CreateSubSchemaRequest;
|
|
179
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
180
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
181
|
+
status: 200;
|
|
182
|
+
data: object;
|
|
183
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas`, oazapfts.json({
|
|
184
|
+
...opts,
|
|
185
|
+
method: "POST",
|
|
186
|
+
body: createSubSchemaRequest
|
|
187
|
+
})));
|
|
188
|
+
}
|
|
189
|
+
export function uploadSchemaArtifact1({ schemaId, subSchemaId, versionId, contentLength }: {
|
|
190
|
+
schemaId: string;
|
|
191
|
+
subSchemaId: string;
|
|
192
|
+
versionId: string;
|
|
193
|
+
contentLength: number;
|
|
194
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
195
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
196
|
+
status: 200;
|
|
197
|
+
data: object;
|
|
198
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(versionId)}/artifacts`, {
|
|
199
|
+
...opts,
|
|
200
|
+
method: "POST",
|
|
201
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
202
|
+
"Content-Length": contentLength
|
|
203
|
+
})
|
|
204
|
+
}));
|
|
205
|
+
}
|
|
206
|
+
export function getSubEntries({ schemaId, subSchemaId, subVersionId, allRequestParams, queryParams }: {
|
|
207
|
+
schemaId: string;
|
|
208
|
+
subSchemaId: string;
|
|
209
|
+
subVersionId: string;
|
|
210
|
+
allRequestParams: {
|
|
211
|
+
[key: string]: string;
|
|
212
|
+
};
|
|
213
|
+
queryParams: RequestParams;
|
|
214
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
215
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
216
|
+
status: 200;
|
|
217
|
+
data: object;
|
|
218
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries${QS.query(QS.explode({
|
|
219
|
+
allRequestParams,
|
|
220
|
+
queryParams
|
|
221
|
+
}))}`, {
|
|
222
|
+
...opts
|
|
223
|
+
}));
|
|
224
|
+
}
|
|
225
|
+
export function createSubEntry({ schemaId, subSchemaId, subVersionId, createSubEntryRequest }: {
|
|
226
|
+
schemaId: string;
|
|
227
|
+
subSchemaId: string;
|
|
228
|
+
subVersionId: string;
|
|
229
|
+
createSubEntryRequest: CreateSubEntryRequest;
|
|
230
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
231
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
232
|
+
status: 200;
|
|
233
|
+
data: object;
|
|
234
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries`, oazapfts.json({
|
|
235
|
+
...opts,
|
|
236
|
+
method: "POST",
|
|
237
|
+
body: createSubEntryRequest
|
|
238
|
+
})));
|
|
239
|
+
}
|
|
240
|
+
export function getObjectSchemaId({ schemaId }: {
|
|
241
|
+
schemaId: string;
|
|
242
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
243
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
244
|
+
status: 200;
|
|
245
|
+
data: object;
|
|
246
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}`, {
|
|
247
|
+
...opts
|
|
248
|
+
}));
|
|
249
|
+
}
|
|
250
|
+
export function createSchemaVersion({ schemaId, jsonNode }: {
|
|
251
|
+
schemaId: string;
|
|
252
|
+
jsonNode: JsonNode;
|
|
253
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
254
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
255
|
+
status: 200;
|
|
256
|
+
data: object;
|
|
257
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}`, oazapfts.json({
|
|
258
|
+
...opts,
|
|
259
|
+
method: "PATCH",
|
|
260
|
+
body: jsonNode
|
|
261
|
+
})));
|
|
262
|
+
}
|
|
263
|
+
export function getEntryById({ schemaId, schemaVersionId, entryId, presenter }: {
|
|
264
|
+
schemaId: string;
|
|
265
|
+
schemaVersionId: string;
|
|
266
|
+
entryId: string;
|
|
267
|
+
presenter?: string;
|
|
268
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
269
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
270
|
+
status: 200;
|
|
271
|
+
data: object;
|
|
272
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}${QS.query(QS.explode({
|
|
273
|
+
presenter
|
|
274
|
+
}))}`, {
|
|
275
|
+
...opts
|
|
276
|
+
}));
|
|
277
|
+
}
|
|
278
|
+
export function updateEntry({ schemaId, schemaVersionId, entryId, updateEntryRequest }: {
|
|
279
|
+
schemaId: string;
|
|
280
|
+
schemaVersionId: string;
|
|
281
|
+
entryId: string;
|
|
282
|
+
updateEntryRequest: UpdateEntryRequest;
|
|
283
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
284
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
285
|
+
status: 200;
|
|
286
|
+
data: object;
|
|
287
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}`, oazapfts.json({
|
|
288
|
+
...opts,
|
|
289
|
+
method: "PATCH",
|
|
290
|
+
body: updateEntryRequest
|
|
291
|
+
})));
|
|
292
|
+
}
|
|
293
|
+
export function updateTag({ schemaId, schemaVersionId, entryId, oldTag, updateEntryTag }: {
|
|
294
|
+
schemaId: string;
|
|
295
|
+
schemaVersionId: string;
|
|
296
|
+
entryId: string;
|
|
297
|
+
oldTag: string;
|
|
298
|
+
updateEntryTag: UpdateEntryTag;
|
|
299
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
300
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
301
|
+
status: 200;
|
|
302
|
+
data: object;
|
|
303
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}/tags/${encodeURIComponent(oldTag)}`, oazapfts.json({
|
|
304
|
+
...opts,
|
|
305
|
+
method: "PATCH",
|
|
306
|
+
body: updateEntryTag
|
|
307
|
+
})));
|
|
308
|
+
}
|
|
309
|
+
export function downloadObjectArtifacts({ schemaId, schemaVersionId, entryId, name }: {
|
|
310
|
+
schemaId: string;
|
|
311
|
+
schemaVersionId: string;
|
|
312
|
+
entryId: string;
|
|
313
|
+
name?: string;
|
|
314
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
315
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
316
|
+
status: 200;
|
|
317
|
+
data: object;
|
|
318
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}/artifacts${QS.query(QS.explode({
|
|
319
|
+
name
|
|
320
|
+
}))}`, {
|
|
321
|
+
...opts
|
|
322
|
+
}));
|
|
323
|
+
}
|
|
324
|
+
export function attachArtifacts({ schemaId, schemaVersionId, entryId, jsonNode }: {
|
|
325
|
+
schemaId: string;
|
|
326
|
+
schemaVersionId: string;
|
|
327
|
+
entryId: string;
|
|
328
|
+
jsonNode: JsonNode;
|
|
329
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
330
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
331
|
+
status: 200;
|
|
332
|
+
data: object;
|
|
333
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}/artifacts`, oazapfts.json({
|
|
334
|
+
...opts,
|
|
335
|
+
method: "PATCH",
|
|
336
|
+
body: jsonNode
|
|
337
|
+
})));
|
|
338
|
+
}
|
|
339
|
+
export function downloadSchemaArtifact({ schemaId, schemaVersionId, entryId, artifactId }: {
|
|
340
|
+
schemaId: string;
|
|
341
|
+
schemaVersionId: string;
|
|
342
|
+
entryId: string;
|
|
343
|
+
artifactId: string;
|
|
344
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
345
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
346
|
+
status: 200;
|
|
347
|
+
data: object;
|
|
348
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}/artifacts/${encodeURIComponent(artifactId)}`, {
|
|
349
|
+
...opts
|
|
350
|
+
}));
|
|
351
|
+
}
|
|
352
|
+
export function updatedArtifact({ artifactId, schemaId, schemaVersionId, entryId, contentLength }: {
|
|
353
|
+
artifactId: string;
|
|
354
|
+
schemaId: string;
|
|
355
|
+
schemaVersionId: string;
|
|
356
|
+
entryId: string;
|
|
357
|
+
contentLength: number;
|
|
358
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
359
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
360
|
+
status: 200;
|
|
361
|
+
data: object;
|
|
362
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}/artifacts/${encodeURIComponent(artifactId)}`, {
|
|
363
|
+
...opts,
|
|
364
|
+
method: "PATCH",
|
|
365
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
366
|
+
"Content-Length": contentLength
|
|
367
|
+
})
|
|
368
|
+
}));
|
|
369
|
+
}
|
|
370
|
+
export function getSubSchema({ schemaId, subSchemaId }: {
|
|
371
|
+
schemaId: string;
|
|
372
|
+
subSchemaId: string;
|
|
373
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
374
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
375
|
+
status: 200;
|
|
376
|
+
data: object;
|
|
377
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}`, {
|
|
378
|
+
...opts
|
|
379
|
+
}));
|
|
380
|
+
}
|
|
381
|
+
export function newVersion({ schemaId, subSchemaId, jsonNode }: {
|
|
382
|
+
schemaId: string;
|
|
383
|
+
subSchemaId: string;
|
|
384
|
+
jsonNode: JsonNode;
|
|
385
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
386
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
387
|
+
status: 200;
|
|
388
|
+
data: object;
|
|
389
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}`, oazapfts.json({
|
|
390
|
+
...opts,
|
|
391
|
+
method: "PATCH",
|
|
392
|
+
body: jsonNode
|
|
393
|
+
})));
|
|
394
|
+
}
|
|
395
|
+
export function updateTag1({ schemaId, subSchemaId, subVersionId, subEntryId, oldTag, updateEntryTag }: {
|
|
396
|
+
schemaId: string;
|
|
397
|
+
subSchemaId: string;
|
|
398
|
+
subVersionId: string;
|
|
399
|
+
subEntryId: string;
|
|
400
|
+
oldTag: string;
|
|
401
|
+
updateEntryTag: UpdateEntryTag;
|
|
402
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
403
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
404
|
+
status: 200;
|
|
405
|
+
data: object;
|
|
406
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}/tags/${encodeURIComponent(oldTag)}`, oazapfts.json({
|
|
407
|
+
...opts,
|
|
408
|
+
method: "PATCH",
|
|
409
|
+
body: updateEntryTag
|
|
410
|
+
})));
|
|
411
|
+
}
|
|
412
|
+
export function downloadObjectArtifacts1({ schemaId, subSchemaId, subVersionId, subEntryId, name }: {
|
|
413
|
+
schemaId: string;
|
|
414
|
+
subSchemaId: string;
|
|
415
|
+
subVersionId: string;
|
|
416
|
+
subEntryId: string;
|
|
417
|
+
name?: string;
|
|
418
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
419
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
420
|
+
status: 200;
|
|
421
|
+
data: object;
|
|
422
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}/artifacts${QS.query(QS.explode({
|
|
423
|
+
name
|
|
424
|
+
}))}`, {
|
|
425
|
+
...opts
|
|
426
|
+
}));
|
|
427
|
+
}
|
|
428
|
+
export function attachArtifacts1({ schemaId, subSchemaId, subVersionId, subEntryId, jsonNode }: {
|
|
429
|
+
schemaId: string;
|
|
430
|
+
subSchemaId: string;
|
|
431
|
+
subVersionId: string;
|
|
432
|
+
subEntryId: string;
|
|
433
|
+
jsonNode: JsonNode;
|
|
434
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
435
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
436
|
+
status: 200;
|
|
437
|
+
data: object;
|
|
438
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}/artifacts`, oazapfts.json({
|
|
439
|
+
...opts,
|
|
440
|
+
method: "PATCH",
|
|
441
|
+
body: jsonNode
|
|
442
|
+
})));
|
|
443
|
+
}
|
|
444
|
+
export function downloadSchemaArtifact1({ schemaId, subSchemaId, subVersionId, subEntryId, artifactId }: {
|
|
445
|
+
schemaId: string;
|
|
446
|
+
subSchemaId: string;
|
|
447
|
+
subVersionId: string;
|
|
448
|
+
subEntryId: string;
|
|
449
|
+
artifactId: string;
|
|
450
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
451
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
452
|
+
status: 200;
|
|
453
|
+
data: object;
|
|
454
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}/artifacts/${encodeURIComponent(artifactId)}`, {
|
|
455
|
+
...opts
|
|
456
|
+
}));
|
|
457
|
+
}
|
|
458
|
+
export function updatedArtifact1({ artifactId, schemaId, subSchemaId, subVersionId, subEntryId, contentLength }: {
|
|
459
|
+
artifactId: string;
|
|
460
|
+
schemaId: string;
|
|
461
|
+
subSchemaId: string;
|
|
462
|
+
subVersionId: string;
|
|
463
|
+
subEntryId: string;
|
|
464
|
+
contentLength: number;
|
|
465
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
466
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
467
|
+
status: 200;
|
|
468
|
+
data: object;
|
|
469
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}/artifacts/${encodeURIComponent(artifactId)}`, {
|
|
470
|
+
...opts,
|
|
471
|
+
method: "PATCH",
|
|
472
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
473
|
+
"Content-Length": contentLength
|
|
474
|
+
})
|
|
475
|
+
}));
|
|
476
|
+
}
|
|
477
|
+
export function updateEntry1({ schemaId, subSchemaId, subVersionId, entryId, updateEntryRequest }: {
|
|
478
|
+
schemaId: string;
|
|
479
|
+
subSchemaId: string;
|
|
480
|
+
subVersionId: string;
|
|
481
|
+
entryId: string;
|
|
482
|
+
updateEntryRequest: UpdateEntryRequest;
|
|
483
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
484
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
485
|
+
status: 200;
|
|
486
|
+
data: object;
|
|
487
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(entryId)}`, oazapfts.json({
|
|
488
|
+
...opts,
|
|
489
|
+
method: "PATCH",
|
|
490
|
+
body: updateEntryRequest
|
|
491
|
+
})));
|
|
492
|
+
}
|
|
493
|
+
export function getTag({ tag }: {
|
|
494
|
+
tag: string;
|
|
495
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
496
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
497
|
+
status: 200;
|
|
498
|
+
data: object;
|
|
499
|
+
}>(`/v1/tags/${encodeURIComponent(tag)}`, {
|
|
500
|
+
...opts
|
|
501
|
+
}));
|
|
502
|
+
}
|
|
503
|
+
export function getSchemaVersions(opts?: Oazapfts.RequestOpts) {
|
|
504
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/schemas/${encodeURIComponent(schemaId)}/versions`, {
|
|
505
|
+
...opts
|
|
506
|
+
}));
|
|
507
|
+
}
|
|
508
|
+
export function getSchemaVersionById({ schemaId, versionId }: {
|
|
509
|
+
schemaId: string;
|
|
510
|
+
versionId: string;
|
|
511
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
512
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
513
|
+
status: 200;
|
|
514
|
+
data: object;
|
|
515
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(versionId)}`, {
|
|
516
|
+
...opts
|
|
517
|
+
}));
|
|
518
|
+
}
|
|
519
|
+
export function getSchemaVersions1(opts?: Oazapfts.RequestOpts) {
|
|
520
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions`, {
|
|
521
|
+
...opts
|
|
522
|
+
}));
|
|
523
|
+
}
|
|
524
|
+
export function getSchemaVersionById1(opts?: Oazapfts.RequestOpts) {
|
|
525
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(versionId)}`, {
|
|
526
|
+
...opts
|
|
527
|
+
}));
|
|
528
|
+
}
|
|
529
|
+
export function getSubEntriesById({ schemaId, subSchemaId, subVersionId, subEntryId }: {
|
|
530
|
+
schemaId: string;
|
|
531
|
+
subSchemaId: string;
|
|
532
|
+
subVersionId: string;
|
|
533
|
+
subEntryId: string;
|
|
534
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
535
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
536
|
+
status: 200;
|
|
537
|
+
data: object;
|
|
538
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}`, {
|
|
539
|
+
...opts
|
|
540
|
+
}));
|
|
541
|
+
}
|
|
542
|
+
export function removeTag({ schemaId, schemaVersionId, entryId, tag }: {
|
|
543
|
+
schemaId: string;
|
|
544
|
+
schemaVersionId: string;
|
|
545
|
+
entryId: string;
|
|
546
|
+
tag: string;
|
|
547
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
548
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
549
|
+
status: 200;
|
|
550
|
+
data: object;
|
|
551
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/versions/${encodeURIComponent(schemaVersionId)}/entries/${encodeURIComponent(entryId)}/tags/${encodeURIComponent(tag)}`, {
|
|
552
|
+
...opts,
|
|
553
|
+
method: "DELETE"
|
|
554
|
+
}));
|
|
555
|
+
}
|
|
556
|
+
export function removeTag1({ schemaId, subSchemaId, subVersionId, subEntryId, tag }: {
|
|
557
|
+
schemaId: string;
|
|
558
|
+
subSchemaId: string;
|
|
559
|
+
subVersionId: string;
|
|
560
|
+
subEntryId: string;
|
|
561
|
+
tag: string;
|
|
562
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
563
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
564
|
+
status: 200;
|
|
565
|
+
data: object;
|
|
566
|
+
}>(`/v1/schemas/${encodeURIComponent(schemaId)}/subschemas/${encodeURIComponent(subSchemaId)}/versions/${encodeURIComponent(subVersionId)}/entries/${encodeURIComponent(subEntryId)}/tags/${encodeURIComponent(tag)}`, {
|
|
567
|
+
...opts,
|
|
568
|
+
method: "DELETE"
|
|
569
|
+
}));
|
|
570
|
+
}
|