@finueva/drive 0.24.0 → 0.25.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.
@@ -1220,6 +1220,115 @@ interface operations {
1220
1220
  };
1221
1221
  };
1222
1222
  };
1223
+ ensurePersonalWorkspace: {
1224
+ parameters: {
1225
+ query?: never;
1226
+ header?: never;
1227
+ path?: never;
1228
+ cookie?: never;
1229
+ };
1230
+ requestBody: {
1231
+ content: {
1232
+ "application/json": Record<string, never>;
1233
+ };
1234
+ };
1235
+ responses: {
1236
+ /** @description The authenticated personal workspace is currently accessible. */
1237
+ 200: {
1238
+ headers: {
1239
+ [name: string]: unknown;
1240
+ };
1241
+ content: {
1242
+ "application/json": {
1243
+ rootItemId: string;
1244
+ rootVolumeId: string;
1245
+ workspaceId: string;
1246
+ workspaceReference: {
1247
+ /** @enum {string} */
1248
+ type: "personal";
1249
+ userId: string;
1250
+ } | {
1251
+ organizationId: string;
1252
+ /** @enum {string} */
1253
+ type: "organization";
1254
+ };
1255
+ };
1256
+ };
1257
+ };
1258
+ /** @description A valid user credential is required. */
1259
+ 401: {
1260
+ headers: {
1261
+ [name: string]: unknown;
1262
+ };
1263
+ content: {
1264
+ "application/json": {
1265
+ error: {
1266
+ /** @enum {string} */
1267
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "invalid_request" | "service_unavailable";
1268
+ details: Record<string, never>;
1269
+ message: string;
1270
+ /** Format: uuid */
1271
+ requestId: string;
1272
+ };
1273
+ };
1274
+ };
1275
+ };
1276
+ /** @description Personal authority is required or storage is disabled. */
1277
+ 403: {
1278
+ headers: {
1279
+ [name: string]: unknown;
1280
+ };
1281
+ content: {
1282
+ "application/json": {
1283
+ error: {
1284
+ /** @enum {string} */
1285
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "invalid_request" | "service_unavailable";
1286
+ details: Record<string, never>;
1287
+ message: string;
1288
+ /** Format: uuid */
1289
+ requestId: string;
1290
+ };
1291
+ };
1292
+ };
1293
+ };
1294
+ /** @description Only an empty JSON object is accepted; no query is allowed. */
1295
+ 422: {
1296
+ headers: {
1297
+ [name: string]: unknown;
1298
+ };
1299
+ content: {
1300
+ "application/json": {
1301
+ error: {
1302
+ /** @enum {string} */
1303
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "invalid_request" | "service_unavailable";
1304
+ details: Record<string, never>;
1305
+ message: string;
1306
+ /** Format: uuid */
1307
+ requestId: string;
1308
+ };
1309
+ };
1310
+ };
1311
+ };
1312
+ /** @description Current storage policy, capacity or canonical state is unavailable. */
1313
+ 503: {
1314
+ headers: {
1315
+ [name: string]: unknown;
1316
+ };
1317
+ content: {
1318
+ "application/json": {
1319
+ error: {
1320
+ /** @enum {string} */
1321
+ code: "authentication_required" | "identity_authority_unavailable" | "permission_denied" | "invalid_request" | "service_unavailable";
1322
+ details: Record<string, never>;
1323
+ message: string;
1324
+ /** Format: uuid */
1325
+ requestId: string;
1326
+ };
1327
+ };
1328
+ };
1329
+ };
1330
+ };
1331
+ };
1223
1332
  getWorkspaceSharingPolicy: {
1224
1333
  parameters: {
1225
1334
  query?: never;
@@ -7624,6 +7733,7 @@ interface DriveOperations {
7624
7733
  updateWorkspaceSharingPolicy(input: UpdateWorkspaceSharingPolicyInput): Promise<DriveOperationResult<WorkspaceSharingPolicy, 200>>;
7625
7734
  getCurrentWorkspaceSources(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<CurrentWorkspaceSources, 200>>;
7626
7735
  getCurrentWorkspace(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<CurrentWorkspace, 200>>;
7736
+ ensurePersonalWorkspace(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<CurrentWorkspace, 200>>;
7627
7737
  ensureOrganizationWorkspaceAccess(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<CurrentWorkspace, 200>>;
7628
7738
  getItem(input: GetItemInput): Promise<DriveOperationResult<ManagedItemMetadata, 200>>;
7629
7739
  searchWorkspaceItems(input: SearchWorkspaceItemsInput): Promise<DriveOperationResult<WorkspaceItemSearchPage, 200>>;