@stack-spot/portal-network 0.183.0 → 0.184.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2412 -2405
- 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.js +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.d.ts +16 -10
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +11 -1
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/api/workspaceSearchEngine.js +1 -1
- package/dist/client/workspace-manager.d.ts +6 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +10 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/package.json +6 -6
- package/scripts/generate-apis.ts +134 -134
- package/src/api/account.ts +8367 -8367
- package/src/api/agent-tools.ts +2169 -2169
- package/src/api/agent.ts +1083 -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 +3481 -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 +334 -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 -2936
- 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 +395 -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 +349 -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 +377 -377
- package/src/client/workflow.ts +83 -83
- package/src/client/workspace-ai.ts +191 -191
- package/src/client/workspace-manager.ts +564 -560
- 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/workspace-ai.ts
CHANGED
|
@@ -1,677 +1,677 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FastAPI
|
|
3
|
-
* 0.1.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: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
-
headers: {},
|
|
11
|
-
baseUrl: "/",
|
|
12
|
-
};
|
|
13
|
-
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
-
export const servers = {};
|
|
15
|
-
export type NewWorkspaceRequest = {
|
|
16
|
-
name: string;
|
|
17
|
-
slug: string;
|
|
18
|
-
description?: string | null;
|
|
19
|
-
logo?: string | null;
|
|
20
|
-
};
|
|
21
|
-
export type NewWorkspaceResponse = {
|
|
22
|
-
id: string;
|
|
23
|
-
};
|
|
24
|
-
export type ValidationError = {
|
|
25
|
-
loc: (string | number)[];
|
|
26
|
-
msg: string;
|
|
27
|
-
"type": string;
|
|
28
|
-
};
|
|
29
|
-
export type HttpValidationError = {
|
|
30
|
-
detail?: ValidationError[];
|
|
31
|
-
};
|
|
32
|
-
export type WorkspaceVisibilityLevelEnum = "all" | "favorite";
|
|
33
|
-
export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
|
|
34
|
-
export type WorkspaceResponse = {
|
|
35
|
-
id: string;
|
|
36
|
-
slug: string;
|
|
37
|
-
name: string;
|
|
38
|
-
description?: string | null;
|
|
39
|
-
logo?: string | null;
|
|
40
|
-
created_by: string;
|
|
41
|
-
};
|
|
42
|
-
export type UpdateWorkspaceRequest = {
|
|
43
|
-
name: string;
|
|
44
|
-
description?: string | null;
|
|
45
|
-
logo?: string | null;
|
|
46
|
-
};
|
|
47
|
-
export type ShareableLinkResponse = {
|
|
48
|
-
id: string;
|
|
49
|
-
workspace_id: string;
|
|
50
|
-
"type": string;
|
|
51
|
-
created_by: string;
|
|
52
|
-
};
|
|
53
|
-
export type Action = "view" | "edit" | "grant_access";
|
|
54
|
-
export type PermissionListRequest = {
|
|
55
|
-
identifier: string;
|
|
56
|
-
action: Action;
|
|
57
|
-
};
|
|
58
|
-
export type PermissionType = "group" | "member";
|
|
59
|
-
export type WorkspacePermissionRequest = {
|
|
60
|
-
permission_list: PermissionListRequest[];
|
|
61
|
-
permission_type: PermissionType;
|
|
62
|
-
};
|
|
63
|
-
export type SortBy = "name" | "permission";
|
|
64
|
-
export type ContentType = "knowledge_source" | "quick_command" | "agent" | "stack" | "spot" | "toolkit";
|
|
65
|
-
export type AddWorkspaceContentRequest = {
|
|
66
|
-
content_identifier: string[];
|
|
67
|
-
};
|
|
68
|
-
export type ListWksContentsResponse = {
|
|
69
|
-
space_name: string;
|
|
70
|
-
space_id: string;
|
|
71
|
-
stacks?: {
|
|
72
|
-
[key: string]: any;
|
|
73
|
-
}[] | null;
|
|
74
|
-
qcs?: {
|
|
75
|
-
[key: string]: any;
|
|
76
|
-
}[] | null;
|
|
77
|
-
kss?: {
|
|
78
|
-
[key: string]: any;
|
|
79
|
-
}[] | null;
|
|
80
|
-
agents?: {
|
|
81
|
-
[key: string]: any;
|
|
82
|
-
}[] | null;
|
|
83
|
-
toolkits?: {
|
|
84
|
-
[key: string]: any;
|
|
85
|
-
}[] | null;
|
|
86
|
-
};
|
|
87
|
-
export type ActionShared = "VIEW" | "EDIT" | "GRANT_ACESS";
|
|
88
|
-
export type PermissionForSharedRequest = {
|
|
89
|
-
userId: string;
|
|
90
|
-
action: ActionShared;
|
|
91
|
-
userName?: string | null;
|
|
92
|
-
};
|
|
93
|
-
export type PermissionListForSharedRequest = {
|
|
94
|
-
users: PermissionForSharedRequest[];
|
|
95
|
-
};
|
|
96
|
-
export type ResourceMembersResponse = {
|
|
97
|
-
id: string;
|
|
98
|
-
username: string;
|
|
99
|
-
email: string;
|
|
100
|
-
name: string;
|
|
101
|
-
actions: string[];
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Create Workspace
|
|
105
|
-
*/
|
|
106
|
-
export function createWorkspaceV1WorkspacesPost({ authorization, xAccountId, newWorkspaceRequest }: {
|
|
107
|
-
authorization: string;
|
|
108
|
-
xAccountId?: string | null;
|
|
109
|
-
newWorkspaceRequest: NewWorkspaceRequest;
|
|
110
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
111
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
112
|
-
status: 201;
|
|
113
|
-
data: NewWorkspaceResponse;
|
|
114
|
-
} | {
|
|
115
|
-
status: 404;
|
|
116
|
-
} | {
|
|
117
|
-
status: 422;
|
|
118
|
-
data: HttpValidationError;
|
|
119
|
-
}>("/v1/workspaces", oazapfts.json({
|
|
120
|
-
...opts,
|
|
121
|
-
method: "POST",
|
|
122
|
-
body: newWorkspaceRequest,
|
|
123
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
124
|
-
authorization,
|
|
125
|
-
"x-account-id": xAccountId
|
|
126
|
-
})
|
|
127
|
-
})));
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* List Workspaces
|
|
131
|
-
*/
|
|
132
|
-
export function listWorkspacesV1WorkspacesGet({ visibility, order, name, authorization, xAccountId }: {
|
|
133
|
-
visibility?: WorkspaceVisibilityLevelEnum;
|
|
134
|
-
order?: OrderEnum;
|
|
135
|
-
name?: string | null;
|
|
136
|
-
authorization: string;
|
|
137
|
-
xAccountId?: string | null;
|
|
138
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
139
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
140
|
-
status: 200;
|
|
141
|
-
data: WorkspaceResponse[];
|
|
142
|
-
} | {
|
|
143
|
-
status: 404;
|
|
144
|
-
} | {
|
|
145
|
-
status: 422;
|
|
146
|
-
data: HttpValidationError;
|
|
147
|
-
}>(`/v1/workspaces${QS.query(QS.explode({
|
|
148
|
-
visibility,
|
|
149
|
-
order,
|
|
150
|
-
name
|
|
151
|
-
}))}`, {
|
|
152
|
-
...opts,
|
|
153
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
154
|
-
authorization,
|
|
155
|
-
"x-account-id": xAccountId
|
|
156
|
-
})
|
|
157
|
-
}));
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Get Workspace By Id
|
|
161
|
-
*/
|
|
162
|
-
export function getWorkspaceByIdV1WorkspacesIdGet({ id, authorization, xAccountId }: {
|
|
163
|
-
id: string;
|
|
164
|
-
authorization: string;
|
|
165
|
-
xAccountId?: string | null;
|
|
166
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
167
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
168
|
-
status: 200;
|
|
169
|
-
data: WorkspaceResponse;
|
|
170
|
-
} | {
|
|
171
|
-
status: 404;
|
|
172
|
-
} | {
|
|
173
|
-
status: 422;
|
|
174
|
-
data: HttpValidationError;
|
|
175
|
-
}>(`/v1/workspaces/${encodeURIComponent(id)}`, {
|
|
176
|
-
...opts,
|
|
177
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
178
|
-
authorization,
|
|
179
|
-
"x-account-id": xAccountId
|
|
180
|
-
})
|
|
181
|
-
}));
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Update Workspace
|
|
185
|
-
*/
|
|
186
|
-
export function updateWorkspaceV1WorkspacesWorkspaceIdPatch({ workspaceId, authorization, xAccountId, updateWorkspaceRequest }: {
|
|
187
|
-
workspaceId: string;
|
|
188
|
-
authorization: string;
|
|
189
|
-
xAccountId?: string | null;
|
|
190
|
-
updateWorkspaceRequest: UpdateWorkspaceRequest;
|
|
191
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
192
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
193
|
-
status: 204;
|
|
194
|
-
} | {
|
|
195
|
-
status: 404;
|
|
196
|
-
} | {
|
|
197
|
-
status: 422;
|
|
198
|
-
data: HttpValidationError;
|
|
199
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}`, oazapfts.json({
|
|
200
|
-
...opts,
|
|
201
|
-
method: "PATCH",
|
|
202
|
-
body: updateWorkspaceRequest,
|
|
203
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
204
|
-
authorization,
|
|
205
|
-
"x-account-id": xAccountId
|
|
206
|
-
})
|
|
207
|
-
})));
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Delete Workspace
|
|
211
|
-
*/
|
|
212
|
-
export function deleteWorkspaceV1WorkspacesWorkspaceIdDelete({ workspaceId, authorization, xAccountId }: {
|
|
213
|
-
workspaceId: string;
|
|
214
|
-
authorization: string;
|
|
215
|
-
xAccountId?: string | null;
|
|
216
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
217
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
218
|
-
status: 204;
|
|
219
|
-
} | {
|
|
220
|
-
status: 404;
|
|
221
|
-
} | {
|
|
222
|
-
status: 422;
|
|
223
|
-
data: HttpValidationError;
|
|
224
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}`, {
|
|
225
|
-
...opts,
|
|
226
|
-
method: "DELETE",
|
|
227
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
228
|
-
authorization,
|
|
229
|
-
"x-account-id": xAccountId
|
|
230
|
-
})
|
|
231
|
-
}));
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Add Favorite
|
|
235
|
-
*/
|
|
236
|
-
export function addFavoriteV1WorkspacesWorkspaceIdFavoritePost({ workspaceId, authorization, xAccountId }: {
|
|
237
|
-
workspaceId: string;
|
|
238
|
-
authorization: string;
|
|
239
|
-
xAccountId?: string | null;
|
|
240
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
241
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
242
|
-
status: 204;
|
|
243
|
-
} | {
|
|
244
|
-
status: 404;
|
|
245
|
-
} | {
|
|
246
|
-
status: 422;
|
|
247
|
-
data: HttpValidationError;
|
|
248
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/favorite`, {
|
|
249
|
-
...opts,
|
|
250
|
-
method: "POST",
|
|
251
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
252
|
-
authorization,
|
|
253
|
-
"x-account-id": xAccountId
|
|
254
|
-
})
|
|
255
|
-
}));
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* Delete Favorite
|
|
259
|
-
*/
|
|
260
|
-
export function deleteFavoriteV1WorkspacesWorkspaceIdFavoriteDelete({ workspaceId, authorization, xAccountId }: {
|
|
261
|
-
workspaceId: string;
|
|
262
|
-
authorization: string;
|
|
263
|
-
xAccountId?: string | null;
|
|
264
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
265
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
266
|
-
status: 204;
|
|
267
|
-
} | {
|
|
268
|
-
status: 404;
|
|
269
|
-
} | {
|
|
270
|
-
status: 422;
|
|
271
|
-
data: HttpValidationError;
|
|
272
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/favorite`, {
|
|
273
|
-
...opts,
|
|
274
|
-
method: "DELETE",
|
|
275
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
276
|
-
authorization,
|
|
277
|
-
"x-account-id": xAccountId
|
|
278
|
-
})
|
|
279
|
-
}));
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* Create Shareable Link
|
|
283
|
-
*/
|
|
284
|
-
export function createShareableLinkV1WorkspacesWorkspaceIdSharePost({ workspaceId, authorization, xAccountId }: {
|
|
285
|
-
workspaceId: string;
|
|
286
|
-
authorization: string;
|
|
287
|
-
xAccountId?: string | null;
|
|
288
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
289
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
290
|
-
status: 201;
|
|
291
|
-
data: ShareableLinkResponse;
|
|
292
|
-
} | {
|
|
293
|
-
status: 404;
|
|
294
|
-
} | {
|
|
295
|
-
status: 422;
|
|
296
|
-
data: HttpValidationError;
|
|
297
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/share`, {
|
|
298
|
-
...opts,
|
|
299
|
-
method: "POST",
|
|
300
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
301
|
-
authorization,
|
|
302
|
-
"x-account-id": xAccountId
|
|
303
|
-
})
|
|
304
|
-
}));
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Add Permission
|
|
308
|
-
*/
|
|
309
|
-
export function addPermissionV1WorkspacesWorkspaceIdPermissionsPatch({ workspaceId, authorization, xAccountId, workspacePermissionRequest }: {
|
|
310
|
-
workspaceId: string;
|
|
311
|
-
authorization: string;
|
|
312
|
-
xAccountId?: string | null;
|
|
313
|
-
workspacePermissionRequest: WorkspacePermissionRequest;
|
|
314
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
315
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
316
|
-
status: 204;
|
|
317
|
-
} | {
|
|
318
|
-
status: 404;
|
|
319
|
-
} | {
|
|
320
|
-
status: 422;
|
|
321
|
-
data: HttpValidationError;
|
|
322
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/permissions`, oazapfts.json({
|
|
323
|
-
...opts,
|
|
324
|
-
method: "PATCH",
|
|
325
|
-
body: workspacePermissionRequest,
|
|
326
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
327
|
-
authorization,
|
|
328
|
-
"x-account-id": xAccountId
|
|
329
|
-
})
|
|
330
|
-
})));
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* Remove Permission
|
|
334
|
-
*/
|
|
335
|
-
export function removePermissionV1WorkspacesWorkspaceIdPermissionsDelete({ workspaceId, authorization, xAccountId, workspacePermissionRequest }: {
|
|
336
|
-
workspaceId: string;
|
|
337
|
-
authorization: string;
|
|
338
|
-
xAccountId?: string | null;
|
|
339
|
-
workspacePermissionRequest: WorkspacePermissionRequest;
|
|
340
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
341
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
342
|
-
status: 204;
|
|
343
|
-
} | {
|
|
344
|
-
status: 404;
|
|
345
|
-
} | {
|
|
346
|
-
status: 422;
|
|
347
|
-
data: HttpValidationError;
|
|
348
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/permissions`, oazapfts.json({
|
|
349
|
-
...opts,
|
|
350
|
-
method: "DELETE",
|
|
351
|
-
body: workspacePermissionRequest,
|
|
352
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
353
|
-
authorization,
|
|
354
|
-
"x-account-id": xAccountId
|
|
355
|
-
})
|
|
356
|
-
})));
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* List Groups And Members Permission In Workspace
|
|
360
|
-
*/
|
|
361
|
-
export function listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceIdPermissionsGet({ workspaceId, search, filterBy, filterValue, sortBy, page, size, order, authorization, xAccountId }: {
|
|
362
|
-
workspaceId: string;
|
|
363
|
-
search?: string | null;
|
|
364
|
-
filterBy?: string | null;
|
|
365
|
-
filterValue?: string | null;
|
|
366
|
-
sortBy?: SortBy | null;
|
|
367
|
-
page?: number;
|
|
368
|
-
size?: number;
|
|
369
|
-
order?: OrderEnum;
|
|
370
|
-
authorization: string;
|
|
371
|
-
xAccountId?: string | null;
|
|
372
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
373
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
374
|
-
status: 200;
|
|
375
|
-
data: {
|
|
376
|
-
[key: string]: any;
|
|
377
|
-
};
|
|
378
|
-
} | {
|
|
379
|
-
status: 404;
|
|
380
|
-
} | {
|
|
381
|
-
status: 422;
|
|
382
|
-
data: HttpValidationError;
|
|
383
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/permissions${QS.query(QS.explode({
|
|
384
|
-
search,
|
|
385
|
-
filter_by: filterBy,
|
|
386
|
-
filter_value: filterValue,
|
|
387
|
-
sort_by: sortBy,
|
|
388
|
-
page,
|
|
389
|
-
size,
|
|
390
|
-
order
|
|
391
|
-
}))}`, {
|
|
392
|
-
...opts,
|
|
393
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
394
|
-
authorization,
|
|
395
|
-
"x-account-id": xAccountId
|
|
396
|
-
})
|
|
397
|
-
}));
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* Add Content
|
|
401
|
-
*/
|
|
402
|
-
export function addContentV1WorkspacesWorkspaceIdContentTypePost({ workspaceId, contentType, authorization, xAccountId, addWorkspaceContentRequest }: {
|
|
403
|
-
workspaceId: string;
|
|
404
|
-
contentType: ContentType;
|
|
405
|
-
authorization: string;
|
|
406
|
-
xAccountId?: string | null;
|
|
407
|
-
addWorkspaceContentRequest: AddWorkspaceContentRequest;
|
|
408
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
409
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
410
|
-
status: 200;
|
|
411
|
-
data: {
|
|
412
|
-
[key: string]: any;
|
|
413
|
-
};
|
|
414
|
-
} | {
|
|
415
|
-
status: 404;
|
|
416
|
-
} | {
|
|
417
|
-
status: 422;
|
|
418
|
-
data: HttpValidationError;
|
|
419
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/${encodeURIComponent(contentType)}`, oazapfts.json({
|
|
420
|
-
...opts,
|
|
421
|
-
method: "POST",
|
|
422
|
-
body: addWorkspaceContentRequest,
|
|
423
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
424
|
-
authorization,
|
|
425
|
-
"x-account-id": xAccountId
|
|
426
|
-
})
|
|
427
|
-
})));
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
* List All By Content Type
|
|
431
|
-
*/
|
|
432
|
-
export function listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet({ workspaceId, contentType, name, authorization, xAccountId }: {
|
|
433
|
-
workspaceId: string;
|
|
434
|
-
contentType: ContentType;
|
|
435
|
-
name?: string | null;
|
|
436
|
-
authorization: string;
|
|
437
|
-
xAccountId?: string | null;
|
|
438
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
439
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
440
|
-
status: 200;
|
|
441
|
-
data: any;
|
|
442
|
-
} | {
|
|
443
|
-
status: 404;
|
|
444
|
-
} | {
|
|
445
|
-
status: 422;
|
|
446
|
-
data: HttpValidationError;
|
|
447
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/${encodeURIComponent(contentType)}${QS.query(QS.explode({
|
|
448
|
-
name
|
|
449
|
-
}))}`, {
|
|
450
|
-
...opts,
|
|
451
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
452
|
-
authorization,
|
|
453
|
-
"x-account-id": xAccountId
|
|
454
|
-
})
|
|
455
|
-
}));
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* Remove Content
|
|
459
|
-
*/
|
|
460
|
-
export function removeContentV1WorkspacesWorkspaceIdContentTypeContentIdDelete({ workspaceId, contentType, contentId, authorization, xAccountId }: {
|
|
461
|
-
workspaceId: string;
|
|
462
|
-
contentType: ContentType;
|
|
463
|
-
contentId: string;
|
|
464
|
-
authorization: string;
|
|
465
|
-
xAccountId?: string | null;
|
|
466
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
467
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
468
|
-
status: 204;
|
|
469
|
-
} | {
|
|
470
|
-
status: 404;
|
|
471
|
-
} | {
|
|
472
|
-
status: 422;
|
|
473
|
-
data: HttpValidationError;
|
|
474
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/${encodeURIComponent(contentType)}/${encodeURIComponent(contentId)}`, {
|
|
475
|
-
...opts,
|
|
476
|
-
method: "DELETE",
|
|
477
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
478
|
-
authorization,
|
|
479
|
-
"x-account-id": xAccountId
|
|
480
|
-
})
|
|
481
|
-
}));
|
|
482
|
-
}
|
|
483
|
-
/**
|
|
484
|
-
* List All Contents
|
|
485
|
-
*/
|
|
486
|
-
export function listAllContentsV1WorkspacesContentsContentTypeGet({ contentType, name, authorization, xAccountId }: {
|
|
487
|
-
contentType: ContentType;
|
|
488
|
-
name?: string | null;
|
|
489
|
-
authorization: string;
|
|
490
|
-
xAccountId?: string | null;
|
|
491
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
492
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
493
|
-
status: 200;
|
|
494
|
-
data: ListWksContentsResponse[];
|
|
495
|
-
} | {
|
|
496
|
-
status: 404;
|
|
497
|
-
} | {
|
|
498
|
-
status: 422;
|
|
499
|
-
data: HttpValidationError;
|
|
500
|
-
}>(`/v1/workspaces/contents/${encodeURIComponent(contentType)}${QS.query(QS.explode({
|
|
501
|
-
name
|
|
502
|
-
}))}`, {
|
|
503
|
-
...opts,
|
|
504
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
505
|
-
authorization,
|
|
506
|
-
"x-account-id": xAccountId
|
|
507
|
-
})
|
|
508
|
-
}));
|
|
509
|
-
}
|
|
510
|
-
/**
|
|
511
|
-
* List All Contents
|
|
512
|
-
*/
|
|
513
|
-
export function listAllContentsV1WorkspacesWorkspaceIdContentsGet({ workspaceId, name, authorization, xAccountId }: {
|
|
514
|
-
workspaceId: string;
|
|
515
|
-
name?: string | null;
|
|
516
|
-
authorization: string;
|
|
517
|
-
xAccountId?: string | null;
|
|
518
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
519
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
520
|
-
status: 200;
|
|
521
|
-
data: any;
|
|
522
|
-
} | {
|
|
523
|
-
status: 404;
|
|
524
|
-
} | {
|
|
525
|
-
status: 422;
|
|
526
|
-
data: HttpValidationError;
|
|
527
|
-
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/contents${QS.query(QS.explode({
|
|
528
|
-
name
|
|
529
|
-
}))}`, {
|
|
530
|
-
...opts,
|
|
531
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
532
|
-
authorization,
|
|
533
|
-
"x-account-id": xAccountId
|
|
534
|
-
})
|
|
535
|
-
}));
|
|
536
|
-
}
|
|
537
|
-
/**
|
|
538
|
-
* Use Shareable Link
|
|
539
|
-
*/
|
|
540
|
-
export function useShareableLinkV1ShareShareIdPatch({ shareId, authorization, xAccountId }: {
|
|
541
|
-
shareId: string;
|
|
542
|
-
authorization: string;
|
|
543
|
-
xAccountId?: string | null;
|
|
544
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
545
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
546
|
-
status: 200;
|
|
547
|
-
data: ShareableLinkResponse;
|
|
548
|
-
} | {
|
|
549
|
-
status: 404;
|
|
550
|
-
} | {
|
|
551
|
-
status: 422;
|
|
552
|
-
data: HttpValidationError;
|
|
553
|
-
}>(`/v1/share/${encodeURIComponent(shareId)}`, {
|
|
554
|
-
...opts,
|
|
555
|
-
method: "PATCH",
|
|
556
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
557
|
-
authorization,
|
|
558
|
-
"x-account-id": xAccountId
|
|
559
|
-
})
|
|
560
|
-
}));
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* Add Permission
|
|
564
|
-
*/
|
|
565
|
-
export function addPermissionV1ResourceTypeResourceTypeResourcesResourceIdentifierPatch({ resourceType, resourceIdentifier, authorization, xAccountId, permissionListForSharedRequest }: {
|
|
566
|
-
resourceType: ContentType;
|
|
567
|
-
resourceIdentifier: string;
|
|
568
|
-
authorization: string;
|
|
569
|
-
xAccountId?: string | null;
|
|
570
|
-
permissionListForSharedRequest: PermissionListForSharedRequest;
|
|
571
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
572
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
573
|
-
status: 204;
|
|
574
|
-
} | {
|
|
575
|
-
status: 404;
|
|
576
|
-
} | {
|
|
577
|
-
status: 422;
|
|
578
|
-
data: HttpValidationError;
|
|
579
|
-
}>(`/v1/resource-type/${encodeURIComponent(resourceType)}/resources/${encodeURIComponent(resourceIdentifier)}`, oazapfts.json({
|
|
580
|
-
...opts,
|
|
581
|
-
method: "PATCH",
|
|
582
|
-
body: permissionListForSharedRequest,
|
|
583
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
584
|
-
authorization,
|
|
585
|
-
"x-account-id": xAccountId
|
|
586
|
-
})
|
|
587
|
-
})));
|
|
588
|
-
}
|
|
589
|
-
/**
|
|
590
|
-
* Remove Permission
|
|
591
|
-
*/
|
|
592
|
-
export function removePermissionV1ResourceTypeResourceTypeResourcesResourceIdentifierDelete({ resourceType, resourceIdentifier, authorization, xAccountId, permissionListForSharedRequest }: {
|
|
593
|
-
resourceType: ContentType;
|
|
594
|
-
resourceIdentifier: string;
|
|
595
|
-
authorization: string;
|
|
596
|
-
xAccountId?: string | null;
|
|
597
|
-
permissionListForSharedRequest: PermissionListForSharedRequest;
|
|
598
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
599
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
600
|
-
status: 204;
|
|
601
|
-
} | {
|
|
602
|
-
status: 404;
|
|
603
|
-
} | {
|
|
604
|
-
status: 422;
|
|
605
|
-
data: HttpValidationError;
|
|
606
|
-
}>(`/v1/resource-type/${encodeURIComponent(resourceType)}/resources/${encodeURIComponent(resourceIdentifier)}`, oazapfts.json({
|
|
607
|
-
...opts,
|
|
608
|
-
method: "DELETE",
|
|
609
|
-
body: permissionListForSharedRequest,
|
|
610
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
611
|
-
authorization,
|
|
612
|
-
"x-account-id": xAccountId
|
|
613
|
-
})
|
|
614
|
-
})));
|
|
615
|
-
}
|
|
616
|
-
/**
|
|
617
|
-
* List Members
|
|
618
|
-
*/
|
|
619
|
-
export function listMembersV1ResourceTypeResourceTypeResourcesResourceIdentifierMembersGet({ resourceType, resourceIdentifier, search, filterBy, filterValue, sortBy, page, size, order, authorization, xAccountId }: {
|
|
620
|
-
resourceType: ContentType;
|
|
621
|
-
resourceIdentifier: string;
|
|
622
|
-
search?: string | null;
|
|
623
|
-
filterBy?: string | null;
|
|
624
|
-
filterValue?: string | null;
|
|
625
|
-
sortBy?: SortBy | null;
|
|
626
|
-
page?: number;
|
|
627
|
-
size?: number;
|
|
628
|
-
order?: OrderEnum;
|
|
629
|
-
authorization: string;
|
|
630
|
-
xAccountId?: string | null;
|
|
631
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
632
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
633
|
-
status: 200;
|
|
634
|
-
data: ResourceMembersResponse[];
|
|
635
|
-
} | {
|
|
636
|
-
status: 404;
|
|
637
|
-
} | {
|
|
638
|
-
status: 422;
|
|
639
|
-
data: HttpValidationError;
|
|
640
|
-
}>(`/v1/resource-type/${encodeURIComponent(resourceType)}/resources/${encodeURIComponent(resourceIdentifier)}/members${QS.query(QS.explode({
|
|
641
|
-
search,
|
|
642
|
-
filter_by: filterBy,
|
|
643
|
-
filter_value: filterValue,
|
|
644
|
-
sort_by: sortBy,
|
|
645
|
-
page,
|
|
646
|
-
size,
|
|
647
|
-
order
|
|
648
|
-
}))}`, {
|
|
649
|
-
...opts,
|
|
650
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
651
|
-
authorization,
|
|
652
|
-
"x-account-id": xAccountId
|
|
653
|
-
})
|
|
654
|
-
}));
|
|
655
|
-
}
|
|
656
|
-
/**
|
|
657
|
-
* Healthz
|
|
658
|
-
*/
|
|
659
|
-
export function healthzHealthzGet(opts?: Oazapfts.RequestOpts) {
|
|
660
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
661
|
-
status: 200;
|
|
662
|
-
data: any;
|
|
663
|
-
}>("/healthz", {
|
|
664
|
-
...opts
|
|
665
|
-
}));
|
|
666
|
-
}
|
|
667
|
-
/**
|
|
668
|
-
* Base Get
|
|
669
|
-
*/
|
|
670
|
-
export function baseGetGet(opts?: Oazapfts.RequestOpts) {
|
|
671
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
672
|
-
status: 200;
|
|
673
|
-
data: any;
|
|
674
|
-
}>("/", {
|
|
675
|
-
...opts
|
|
676
|
-
}));
|
|
677
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* FastAPI
|
|
3
|
+
* 0.1.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: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
+
headers: {},
|
|
11
|
+
baseUrl: "/",
|
|
12
|
+
};
|
|
13
|
+
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
+
export const servers = {};
|
|
15
|
+
export type NewWorkspaceRequest = {
|
|
16
|
+
name: string;
|
|
17
|
+
slug: string;
|
|
18
|
+
description?: string | null;
|
|
19
|
+
logo?: string | null;
|
|
20
|
+
};
|
|
21
|
+
export type NewWorkspaceResponse = {
|
|
22
|
+
id: string;
|
|
23
|
+
};
|
|
24
|
+
export type ValidationError = {
|
|
25
|
+
loc: (string | number)[];
|
|
26
|
+
msg: string;
|
|
27
|
+
"type": string;
|
|
28
|
+
};
|
|
29
|
+
export type HttpValidationError = {
|
|
30
|
+
detail?: ValidationError[];
|
|
31
|
+
};
|
|
32
|
+
export type WorkspaceVisibilityLevelEnum = "all" | "favorite";
|
|
33
|
+
export type OrderEnum = "a-to-z" | "z-to-a" | "oldest-first" | "newest-first";
|
|
34
|
+
export type WorkspaceResponse = {
|
|
35
|
+
id: string;
|
|
36
|
+
slug: string;
|
|
37
|
+
name: string;
|
|
38
|
+
description?: string | null;
|
|
39
|
+
logo?: string | null;
|
|
40
|
+
created_by: string;
|
|
41
|
+
};
|
|
42
|
+
export type UpdateWorkspaceRequest = {
|
|
43
|
+
name: string;
|
|
44
|
+
description?: string | null;
|
|
45
|
+
logo?: string | null;
|
|
46
|
+
};
|
|
47
|
+
export type ShareableLinkResponse = {
|
|
48
|
+
id: string;
|
|
49
|
+
workspace_id: string;
|
|
50
|
+
"type": string;
|
|
51
|
+
created_by: string;
|
|
52
|
+
};
|
|
53
|
+
export type Action = "view" | "edit" | "grant_access";
|
|
54
|
+
export type PermissionListRequest = {
|
|
55
|
+
identifier: string;
|
|
56
|
+
action: Action;
|
|
57
|
+
};
|
|
58
|
+
export type PermissionType = "group" | "member";
|
|
59
|
+
export type WorkspacePermissionRequest = {
|
|
60
|
+
permission_list: PermissionListRequest[];
|
|
61
|
+
permission_type: PermissionType;
|
|
62
|
+
};
|
|
63
|
+
export type SortBy = "name" | "permission";
|
|
64
|
+
export type ContentType = "knowledge_source" | "quick_command" | "agent" | "stack" | "spot" | "toolkit";
|
|
65
|
+
export type AddWorkspaceContentRequest = {
|
|
66
|
+
content_identifier: string[];
|
|
67
|
+
};
|
|
68
|
+
export type ListWksContentsResponse = {
|
|
69
|
+
space_name: string;
|
|
70
|
+
space_id: string;
|
|
71
|
+
stacks?: {
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
}[] | null;
|
|
74
|
+
qcs?: {
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
}[] | null;
|
|
77
|
+
kss?: {
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
}[] | null;
|
|
80
|
+
agents?: {
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}[] | null;
|
|
83
|
+
toolkits?: {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
}[] | null;
|
|
86
|
+
};
|
|
87
|
+
export type ActionShared = "VIEW" | "EDIT" | "GRANT_ACESS";
|
|
88
|
+
export type PermissionForSharedRequest = {
|
|
89
|
+
userId: string;
|
|
90
|
+
action: ActionShared;
|
|
91
|
+
userName?: string | null;
|
|
92
|
+
};
|
|
93
|
+
export type PermissionListForSharedRequest = {
|
|
94
|
+
users: PermissionForSharedRequest[];
|
|
95
|
+
};
|
|
96
|
+
export type ResourceMembersResponse = {
|
|
97
|
+
id: string;
|
|
98
|
+
username: string;
|
|
99
|
+
email: string;
|
|
100
|
+
name: string;
|
|
101
|
+
actions: string[];
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Create Workspace
|
|
105
|
+
*/
|
|
106
|
+
export function createWorkspaceV1WorkspacesPost({ authorization, xAccountId, newWorkspaceRequest }: {
|
|
107
|
+
authorization: string;
|
|
108
|
+
xAccountId?: string | null;
|
|
109
|
+
newWorkspaceRequest: NewWorkspaceRequest;
|
|
110
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
111
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
112
|
+
status: 201;
|
|
113
|
+
data: NewWorkspaceResponse;
|
|
114
|
+
} | {
|
|
115
|
+
status: 404;
|
|
116
|
+
} | {
|
|
117
|
+
status: 422;
|
|
118
|
+
data: HttpValidationError;
|
|
119
|
+
}>("/v1/workspaces", oazapfts.json({
|
|
120
|
+
...opts,
|
|
121
|
+
method: "POST",
|
|
122
|
+
body: newWorkspaceRequest,
|
|
123
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
124
|
+
authorization,
|
|
125
|
+
"x-account-id": xAccountId
|
|
126
|
+
})
|
|
127
|
+
})));
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* List Workspaces
|
|
131
|
+
*/
|
|
132
|
+
export function listWorkspacesV1WorkspacesGet({ visibility, order, name, authorization, xAccountId }: {
|
|
133
|
+
visibility?: WorkspaceVisibilityLevelEnum;
|
|
134
|
+
order?: OrderEnum;
|
|
135
|
+
name?: string | null;
|
|
136
|
+
authorization: string;
|
|
137
|
+
xAccountId?: string | null;
|
|
138
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
139
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
140
|
+
status: 200;
|
|
141
|
+
data: WorkspaceResponse[];
|
|
142
|
+
} | {
|
|
143
|
+
status: 404;
|
|
144
|
+
} | {
|
|
145
|
+
status: 422;
|
|
146
|
+
data: HttpValidationError;
|
|
147
|
+
}>(`/v1/workspaces${QS.query(QS.explode({
|
|
148
|
+
visibility,
|
|
149
|
+
order,
|
|
150
|
+
name
|
|
151
|
+
}))}`, {
|
|
152
|
+
...opts,
|
|
153
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
154
|
+
authorization,
|
|
155
|
+
"x-account-id": xAccountId
|
|
156
|
+
})
|
|
157
|
+
}));
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Get Workspace By Id
|
|
161
|
+
*/
|
|
162
|
+
export function getWorkspaceByIdV1WorkspacesIdGet({ id, authorization, xAccountId }: {
|
|
163
|
+
id: string;
|
|
164
|
+
authorization: string;
|
|
165
|
+
xAccountId?: string | null;
|
|
166
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
167
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
168
|
+
status: 200;
|
|
169
|
+
data: WorkspaceResponse;
|
|
170
|
+
} | {
|
|
171
|
+
status: 404;
|
|
172
|
+
} | {
|
|
173
|
+
status: 422;
|
|
174
|
+
data: HttpValidationError;
|
|
175
|
+
}>(`/v1/workspaces/${encodeURIComponent(id)}`, {
|
|
176
|
+
...opts,
|
|
177
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
178
|
+
authorization,
|
|
179
|
+
"x-account-id": xAccountId
|
|
180
|
+
})
|
|
181
|
+
}));
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Update Workspace
|
|
185
|
+
*/
|
|
186
|
+
export function updateWorkspaceV1WorkspacesWorkspaceIdPatch({ workspaceId, authorization, xAccountId, updateWorkspaceRequest }: {
|
|
187
|
+
workspaceId: string;
|
|
188
|
+
authorization: string;
|
|
189
|
+
xAccountId?: string | null;
|
|
190
|
+
updateWorkspaceRequest: UpdateWorkspaceRequest;
|
|
191
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
192
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
193
|
+
status: 204;
|
|
194
|
+
} | {
|
|
195
|
+
status: 404;
|
|
196
|
+
} | {
|
|
197
|
+
status: 422;
|
|
198
|
+
data: HttpValidationError;
|
|
199
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}`, oazapfts.json({
|
|
200
|
+
...opts,
|
|
201
|
+
method: "PATCH",
|
|
202
|
+
body: updateWorkspaceRequest,
|
|
203
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
204
|
+
authorization,
|
|
205
|
+
"x-account-id": xAccountId
|
|
206
|
+
})
|
|
207
|
+
})));
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Delete Workspace
|
|
211
|
+
*/
|
|
212
|
+
export function deleteWorkspaceV1WorkspacesWorkspaceIdDelete({ workspaceId, authorization, xAccountId }: {
|
|
213
|
+
workspaceId: string;
|
|
214
|
+
authorization: string;
|
|
215
|
+
xAccountId?: string | null;
|
|
216
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
217
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
218
|
+
status: 204;
|
|
219
|
+
} | {
|
|
220
|
+
status: 404;
|
|
221
|
+
} | {
|
|
222
|
+
status: 422;
|
|
223
|
+
data: HttpValidationError;
|
|
224
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}`, {
|
|
225
|
+
...opts,
|
|
226
|
+
method: "DELETE",
|
|
227
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
228
|
+
authorization,
|
|
229
|
+
"x-account-id": xAccountId
|
|
230
|
+
})
|
|
231
|
+
}));
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Add Favorite
|
|
235
|
+
*/
|
|
236
|
+
export function addFavoriteV1WorkspacesWorkspaceIdFavoritePost({ workspaceId, authorization, xAccountId }: {
|
|
237
|
+
workspaceId: string;
|
|
238
|
+
authorization: string;
|
|
239
|
+
xAccountId?: string | null;
|
|
240
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
241
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
242
|
+
status: 204;
|
|
243
|
+
} | {
|
|
244
|
+
status: 404;
|
|
245
|
+
} | {
|
|
246
|
+
status: 422;
|
|
247
|
+
data: HttpValidationError;
|
|
248
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/favorite`, {
|
|
249
|
+
...opts,
|
|
250
|
+
method: "POST",
|
|
251
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
252
|
+
authorization,
|
|
253
|
+
"x-account-id": xAccountId
|
|
254
|
+
})
|
|
255
|
+
}));
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Delete Favorite
|
|
259
|
+
*/
|
|
260
|
+
export function deleteFavoriteV1WorkspacesWorkspaceIdFavoriteDelete({ workspaceId, authorization, xAccountId }: {
|
|
261
|
+
workspaceId: string;
|
|
262
|
+
authorization: string;
|
|
263
|
+
xAccountId?: string | null;
|
|
264
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
265
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
266
|
+
status: 204;
|
|
267
|
+
} | {
|
|
268
|
+
status: 404;
|
|
269
|
+
} | {
|
|
270
|
+
status: 422;
|
|
271
|
+
data: HttpValidationError;
|
|
272
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/favorite`, {
|
|
273
|
+
...opts,
|
|
274
|
+
method: "DELETE",
|
|
275
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
276
|
+
authorization,
|
|
277
|
+
"x-account-id": xAccountId
|
|
278
|
+
})
|
|
279
|
+
}));
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Create Shareable Link
|
|
283
|
+
*/
|
|
284
|
+
export function createShareableLinkV1WorkspacesWorkspaceIdSharePost({ workspaceId, authorization, xAccountId }: {
|
|
285
|
+
workspaceId: string;
|
|
286
|
+
authorization: string;
|
|
287
|
+
xAccountId?: string | null;
|
|
288
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
289
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
290
|
+
status: 201;
|
|
291
|
+
data: ShareableLinkResponse;
|
|
292
|
+
} | {
|
|
293
|
+
status: 404;
|
|
294
|
+
} | {
|
|
295
|
+
status: 422;
|
|
296
|
+
data: HttpValidationError;
|
|
297
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/share`, {
|
|
298
|
+
...opts,
|
|
299
|
+
method: "POST",
|
|
300
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
301
|
+
authorization,
|
|
302
|
+
"x-account-id": xAccountId
|
|
303
|
+
})
|
|
304
|
+
}));
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Add Permission
|
|
308
|
+
*/
|
|
309
|
+
export function addPermissionV1WorkspacesWorkspaceIdPermissionsPatch({ workspaceId, authorization, xAccountId, workspacePermissionRequest }: {
|
|
310
|
+
workspaceId: string;
|
|
311
|
+
authorization: string;
|
|
312
|
+
xAccountId?: string | null;
|
|
313
|
+
workspacePermissionRequest: WorkspacePermissionRequest;
|
|
314
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
315
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
316
|
+
status: 204;
|
|
317
|
+
} | {
|
|
318
|
+
status: 404;
|
|
319
|
+
} | {
|
|
320
|
+
status: 422;
|
|
321
|
+
data: HttpValidationError;
|
|
322
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/permissions`, oazapfts.json({
|
|
323
|
+
...opts,
|
|
324
|
+
method: "PATCH",
|
|
325
|
+
body: workspacePermissionRequest,
|
|
326
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
327
|
+
authorization,
|
|
328
|
+
"x-account-id": xAccountId
|
|
329
|
+
})
|
|
330
|
+
})));
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Remove Permission
|
|
334
|
+
*/
|
|
335
|
+
export function removePermissionV1WorkspacesWorkspaceIdPermissionsDelete({ workspaceId, authorization, xAccountId, workspacePermissionRequest }: {
|
|
336
|
+
workspaceId: string;
|
|
337
|
+
authorization: string;
|
|
338
|
+
xAccountId?: string | null;
|
|
339
|
+
workspacePermissionRequest: WorkspacePermissionRequest;
|
|
340
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
341
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
342
|
+
status: 204;
|
|
343
|
+
} | {
|
|
344
|
+
status: 404;
|
|
345
|
+
} | {
|
|
346
|
+
status: 422;
|
|
347
|
+
data: HttpValidationError;
|
|
348
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/permissions`, oazapfts.json({
|
|
349
|
+
...opts,
|
|
350
|
+
method: "DELETE",
|
|
351
|
+
body: workspacePermissionRequest,
|
|
352
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
353
|
+
authorization,
|
|
354
|
+
"x-account-id": xAccountId
|
|
355
|
+
})
|
|
356
|
+
})));
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* List Groups And Members Permission In Workspace
|
|
360
|
+
*/
|
|
361
|
+
export function listGroupsAndMembersPermissionInWorkspaceV1WorkspacesWorkspaceIdPermissionsGet({ workspaceId, search, filterBy, filterValue, sortBy, page, size, order, authorization, xAccountId }: {
|
|
362
|
+
workspaceId: string;
|
|
363
|
+
search?: string | null;
|
|
364
|
+
filterBy?: string | null;
|
|
365
|
+
filterValue?: string | null;
|
|
366
|
+
sortBy?: SortBy | null;
|
|
367
|
+
page?: number;
|
|
368
|
+
size?: number;
|
|
369
|
+
order?: OrderEnum;
|
|
370
|
+
authorization: string;
|
|
371
|
+
xAccountId?: string | null;
|
|
372
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
373
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
374
|
+
status: 200;
|
|
375
|
+
data: {
|
|
376
|
+
[key: string]: any;
|
|
377
|
+
};
|
|
378
|
+
} | {
|
|
379
|
+
status: 404;
|
|
380
|
+
} | {
|
|
381
|
+
status: 422;
|
|
382
|
+
data: HttpValidationError;
|
|
383
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/permissions${QS.query(QS.explode({
|
|
384
|
+
search,
|
|
385
|
+
filter_by: filterBy,
|
|
386
|
+
filter_value: filterValue,
|
|
387
|
+
sort_by: sortBy,
|
|
388
|
+
page,
|
|
389
|
+
size,
|
|
390
|
+
order
|
|
391
|
+
}))}`, {
|
|
392
|
+
...opts,
|
|
393
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
394
|
+
authorization,
|
|
395
|
+
"x-account-id": xAccountId
|
|
396
|
+
})
|
|
397
|
+
}));
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Add Content
|
|
401
|
+
*/
|
|
402
|
+
export function addContentV1WorkspacesWorkspaceIdContentTypePost({ workspaceId, contentType, authorization, xAccountId, addWorkspaceContentRequest }: {
|
|
403
|
+
workspaceId: string;
|
|
404
|
+
contentType: ContentType;
|
|
405
|
+
authorization: string;
|
|
406
|
+
xAccountId?: string | null;
|
|
407
|
+
addWorkspaceContentRequest: AddWorkspaceContentRequest;
|
|
408
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
409
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
410
|
+
status: 200;
|
|
411
|
+
data: {
|
|
412
|
+
[key: string]: any;
|
|
413
|
+
};
|
|
414
|
+
} | {
|
|
415
|
+
status: 404;
|
|
416
|
+
} | {
|
|
417
|
+
status: 422;
|
|
418
|
+
data: HttpValidationError;
|
|
419
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/${encodeURIComponent(contentType)}`, oazapfts.json({
|
|
420
|
+
...opts,
|
|
421
|
+
method: "POST",
|
|
422
|
+
body: addWorkspaceContentRequest,
|
|
423
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
424
|
+
authorization,
|
|
425
|
+
"x-account-id": xAccountId
|
|
426
|
+
})
|
|
427
|
+
})));
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* List All By Content Type
|
|
431
|
+
*/
|
|
432
|
+
export function listAllByContentTypeV1WorkspacesWorkspaceIdContentTypeGet({ workspaceId, contentType, name, authorization, xAccountId }: {
|
|
433
|
+
workspaceId: string;
|
|
434
|
+
contentType: ContentType;
|
|
435
|
+
name?: string | null;
|
|
436
|
+
authorization: string;
|
|
437
|
+
xAccountId?: string | null;
|
|
438
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
439
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
440
|
+
status: 200;
|
|
441
|
+
data: any;
|
|
442
|
+
} | {
|
|
443
|
+
status: 404;
|
|
444
|
+
} | {
|
|
445
|
+
status: 422;
|
|
446
|
+
data: HttpValidationError;
|
|
447
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/${encodeURIComponent(contentType)}${QS.query(QS.explode({
|
|
448
|
+
name
|
|
449
|
+
}))}`, {
|
|
450
|
+
...opts,
|
|
451
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
452
|
+
authorization,
|
|
453
|
+
"x-account-id": xAccountId
|
|
454
|
+
})
|
|
455
|
+
}));
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Remove Content
|
|
459
|
+
*/
|
|
460
|
+
export function removeContentV1WorkspacesWorkspaceIdContentTypeContentIdDelete({ workspaceId, contentType, contentId, authorization, xAccountId }: {
|
|
461
|
+
workspaceId: string;
|
|
462
|
+
contentType: ContentType;
|
|
463
|
+
contentId: string;
|
|
464
|
+
authorization: string;
|
|
465
|
+
xAccountId?: string | null;
|
|
466
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
467
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
468
|
+
status: 204;
|
|
469
|
+
} | {
|
|
470
|
+
status: 404;
|
|
471
|
+
} | {
|
|
472
|
+
status: 422;
|
|
473
|
+
data: HttpValidationError;
|
|
474
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/${encodeURIComponent(contentType)}/${encodeURIComponent(contentId)}`, {
|
|
475
|
+
...opts,
|
|
476
|
+
method: "DELETE",
|
|
477
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
478
|
+
authorization,
|
|
479
|
+
"x-account-id": xAccountId
|
|
480
|
+
})
|
|
481
|
+
}));
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* List All Contents
|
|
485
|
+
*/
|
|
486
|
+
export function listAllContentsV1WorkspacesContentsContentTypeGet({ contentType, name, authorization, xAccountId }: {
|
|
487
|
+
contentType: ContentType;
|
|
488
|
+
name?: string | null;
|
|
489
|
+
authorization: string;
|
|
490
|
+
xAccountId?: string | null;
|
|
491
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
492
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
493
|
+
status: 200;
|
|
494
|
+
data: ListWksContentsResponse[];
|
|
495
|
+
} | {
|
|
496
|
+
status: 404;
|
|
497
|
+
} | {
|
|
498
|
+
status: 422;
|
|
499
|
+
data: HttpValidationError;
|
|
500
|
+
}>(`/v1/workspaces/contents/${encodeURIComponent(contentType)}${QS.query(QS.explode({
|
|
501
|
+
name
|
|
502
|
+
}))}`, {
|
|
503
|
+
...opts,
|
|
504
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
505
|
+
authorization,
|
|
506
|
+
"x-account-id": xAccountId
|
|
507
|
+
})
|
|
508
|
+
}));
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* List All Contents
|
|
512
|
+
*/
|
|
513
|
+
export function listAllContentsV1WorkspacesWorkspaceIdContentsGet({ workspaceId, name, authorization, xAccountId }: {
|
|
514
|
+
workspaceId: string;
|
|
515
|
+
name?: string | null;
|
|
516
|
+
authorization: string;
|
|
517
|
+
xAccountId?: string | null;
|
|
518
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
519
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
520
|
+
status: 200;
|
|
521
|
+
data: any;
|
|
522
|
+
} | {
|
|
523
|
+
status: 404;
|
|
524
|
+
} | {
|
|
525
|
+
status: 422;
|
|
526
|
+
data: HttpValidationError;
|
|
527
|
+
}>(`/v1/workspaces/${encodeURIComponent(workspaceId)}/contents${QS.query(QS.explode({
|
|
528
|
+
name
|
|
529
|
+
}))}`, {
|
|
530
|
+
...opts,
|
|
531
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
532
|
+
authorization,
|
|
533
|
+
"x-account-id": xAccountId
|
|
534
|
+
})
|
|
535
|
+
}));
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Use Shareable Link
|
|
539
|
+
*/
|
|
540
|
+
export function useShareableLinkV1ShareShareIdPatch({ shareId, authorization, xAccountId }: {
|
|
541
|
+
shareId: string;
|
|
542
|
+
authorization: string;
|
|
543
|
+
xAccountId?: string | null;
|
|
544
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
545
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
546
|
+
status: 200;
|
|
547
|
+
data: ShareableLinkResponse;
|
|
548
|
+
} | {
|
|
549
|
+
status: 404;
|
|
550
|
+
} | {
|
|
551
|
+
status: 422;
|
|
552
|
+
data: HttpValidationError;
|
|
553
|
+
}>(`/v1/share/${encodeURIComponent(shareId)}`, {
|
|
554
|
+
...opts,
|
|
555
|
+
method: "PATCH",
|
|
556
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
557
|
+
authorization,
|
|
558
|
+
"x-account-id": xAccountId
|
|
559
|
+
})
|
|
560
|
+
}));
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Add Permission
|
|
564
|
+
*/
|
|
565
|
+
export function addPermissionV1ResourceTypeResourceTypeResourcesResourceIdentifierPatch({ resourceType, resourceIdentifier, authorization, xAccountId, permissionListForSharedRequest }: {
|
|
566
|
+
resourceType: ContentType;
|
|
567
|
+
resourceIdentifier: string;
|
|
568
|
+
authorization: string;
|
|
569
|
+
xAccountId?: string | null;
|
|
570
|
+
permissionListForSharedRequest: PermissionListForSharedRequest;
|
|
571
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
572
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
573
|
+
status: 204;
|
|
574
|
+
} | {
|
|
575
|
+
status: 404;
|
|
576
|
+
} | {
|
|
577
|
+
status: 422;
|
|
578
|
+
data: HttpValidationError;
|
|
579
|
+
}>(`/v1/resource-type/${encodeURIComponent(resourceType)}/resources/${encodeURIComponent(resourceIdentifier)}`, oazapfts.json({
|
|
580
|
+
...opts,
|
|
581
|
+
method: "PATCH",
|
|
582
|
+
body: permissionListForSharedRequest,
|
|
583
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
584
|
+
authorization,
|
|
585
|
+
"x-account-id": xAccountId
|
|
586
|
+
})
|
|
587
|
+
})));
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* Remove Permission
|
|
591
|
+
*/
|
|
592
|
+
export function removePermissionV1ResourceTypeResourceTypeResourcesResourceIdentifierDelete({ resourceType, resourceIdentifier, authorization, xAccountId, permissionListForSharedRequest }: {
|
|
593
|
+
resourceType: ContentType;
|
|
594
|
+
resourceIdentifier: string;
|
|
595
|
+
authorization: string;
|
|
596
|
+
xAccountId?: string | null;
|
|
597
|
+
permissionListForSharedRequest: PermissionListForSharedRequest;
|
|
598
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
599
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
600
|
+
status: 204;
|
|
601
|
+
} | {
|
|
602
|
+
status: 404;
|
|
603
|
+
} | {
|
|
604
|
+
status: 422;
|
|
605
|
+
data: HttpValidationError;
|
|
606
|
+
}>(`/v1/resource-type/${encodeURIComponent(resourceType)}/resources/${encodeURIComponent(resourceIdentifier)}`, oazapfts.json({
|
|
607
|
+
...opts,
|
|
608
|
+
method: "DELETE",
|
|
609
|
+
body: permissionListForSharedRequest,
|
|
610
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
611
|
+
authorization,
|
|
612
|
+
"x-account-id": xAccountId
|
|
613
|
+
})
|
|
614
|
+
})));
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* List Members
|
|
618
|
+
*/
|
|
619
|
+
export function listMembersV1ResourceTypeResourceTypeResourcesResourceIdentifierMembersGet({ resourceType, resourceIdentifier, search, filterBy, filterValue, sortBy, page, size, order, authorization, xAccountId }: {
|
|
620
|
+
resourceType: ContentType;
|
|
621
|
+
resourceIdentifier: string;
|
|
622
|
+
search?: string | null;
|
|
623
|
+
filterBy?: string | null;
|
|
624
|
+
filterValue?: string | null;
|
|
625
|
+
sortBy?: SortBy | null;
|
|
626
|
+
page?: number;
|
|
627
|
+
size?: number;
|
|
628
|
+
order?: OrderEnum;
|
|
629
|
+
authorization: string;
|
|
630
|
+
xAccountId?: string | null;
|
|
631
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
632
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
633
|
+
status: 200;
|
|
634
|
+
data: ResourceMembersResponse[];
|
|
635
|
+
} | {
|
|
636
|
+
status: 404;
|
|
637
|
+
} | {
|
|
638
|
+
status: 422;
|
|
639
|
+
data: HttpValidationError;
|
|
640
|
+
}>(`/v1/resource-type/${encodeURIComponent(resourceType)}/resources/${encodeURIComponent(resourceIdentifier)}/members${QS.query(QS.explode({
|
|
641
|
+
search,
|
|
642
|
+
filter_by: filterBy,
|
|
643
|
+
filter_value: filterValue,
|
|
644
|
+
sort_by: sortBy,
|
|
645
|
+
page,
|
|
646
|
+
size,
|
|
647
|
+
order
|
|
648
|
+
}))}`, {
|
|
649
|
+
...opts,
|
|
650
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
651
|
+
authorization,
|
|
652
|
+
"x-account-id": xAccountId
|
|
653
|
+
})
|
|
654
|
+
}));
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Healthz
|
|
658
|
+
*/
|
|
659
|
+
export function healthzHealthzGet(opts?: Oazapfts.RequestOpts) {
|
|
660
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
661
|
+
status: 200;
|
|
662
|
+
data: any;
|
|
663
|
+
}>("/healthz", {
|
|
664
|
+
...opts
|
|
665
|
+
}));
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* Base Get
|
|
669
|
+
*/
|
|
670
|
+
export function baseGetGet(opts?: Oazapfts.RequestOpts) {
|
|
671
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
672
|
+
status: 200;
|
|
673
|
+
data: any;
|
|
674
|
+
}>("/", {
|
|
675
|
+
...opts
|
|
676
|
+
}));
|
|
677
|
+
}
|