@finueva/drive 0.1.0 → 0.2.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 +12 -0
- package/README.md +16 -12
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1160 -1067
- package/dist/contract.d.ts +395 -500
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1160 -1067
- package/dist/server.d.ts +2 -2
- package/dist/server.js +1160 -1067
- package/dist/types.d.ts +2 -2
- package/package.json +6 -6
package/dist/contract.d.ts
CHANGED
|
@@ -1,5 +1,137 @@
|
|
|
1
1
|
//#region src/generated/openapi.d.ts
|
|
2
2
|
interface operations {
|
|
3
|
+
getCurrentWorkspace: {
|
|
4
|
+
parameters: {
|
|
5
|
+
query?: never;
|
|
6
|
+
header?: never;
|
|
7
|
+
path?: never;
|
|
8
|
+
cookie?: never;
|
|
9
|
+
};
|
|
10
|
+
requestBody?: never;
|
|
11
|
+
responses: {
|
|
12
|
+
/** @description The exact managed workspace and canonical root selected by the Drive credential. */
|
|
13
|
+
200: {
|
|
14
|
+
headers: {
|
|
15
|
+
[name: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
content: {
|
|
18
|
+
"application/json": {
|
|
19
|
+
rootItemId: string;
|
|
20
|
+
rootVolumeId: string;
|
|
21
|
+
workspaceId: string;
|
|
22
|
+
workspaceReference: {
|
|
23
|
+
/** @enum {string} */
|
|
24
|
+
type: "personal";
|
|
25
|
+
userId: string;
|
|
26
|
+
} | {
|
|
27
|
+
organizationId: string;
|
|
28
|
+
/** @enum {string} */
|
|
29
|
+
type: "organization";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
/** @description A valid Drive user bearer credential is required. */
|
|
35
|
+
401: {
|
|
36
|
+
headers: {
|
|
37
|
+
[name: string]: unknown;
|
|
38
|
+
};
|
|
39
|
+
content: {
|
|
40
|
+
"application/json": {
|
|
41
|
+
error: {
|
|
42
|
+
/** @enum {string} */
|
|
43
|
+
code: "authentication_required";
|
|
44
|
+
details: Record<string, never>;
|
|
45
|
+
/** @enum {string} */
|
|
46
|
+
message: "Authentication is required.";
|
|
47
|
+
requestId: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
/** @description Managed storage is disabled for the current workspace. */
|
|
53
|
+
403: {
|
|
54
|
+
headers: {
|
|
55
|
+
[name: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
content: {
|
|
58
|
+
"application/json": {
|
|
59
|
+
error: {
|
|
60
|
+
/** @enum {string} */
|
|
61
|
+
code: "permission_denied";
|
|
62
|
+
details: Record<string, never>;
|
|
63
|
+
/** @enum {string} */
|
|
64
|
+
message: "The requested action is not permitted.";
|
|
65
|
+
requestId: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
/** @description The selected Auth workspace is not provisioned or is not available to this User. */
|
|
71
|
+
404: {
|
|
72
|
+
headers: {
|
|
73
|
+
[name: string]: unknown;
|
|
74
|
+
};
|
|
75
|
+
content: {
|
|
76
|
+
"application/json": {
|
|
77
|
+
error: {
|
|
78
|
+
/** @enum {string} */
|
|
79
|
+
code: "resource_not_found";
|
|
80
|
+
details: Record<string, never>;
|
|
81
|
+
/** @enum {string} */
|
|
82
|
+
message: "The requested resource was not found.";
|
|
83
|
+
requestId: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
/** @description The request contains unsupported query input. */
|
|
89
|
+
422: {
|
|
90
|
+
headers: {
|
|
91
|
+
[name: string]: unknown;
|
|
92
|
+
};
|
|
93
|
+
content: {
|
|
94
|
+
"application/json": {
|
|
95
|
+
error: {
|
|
96
|
+
/** @enum {string} */
|
|
97
|
+
code: "invalid_request";
|
|
98
|
+
details: Record<string, never>;
|
|
99
|
+
/** @enum {string} */
|
|
100
|
+
message: "The request is invalid.";
|
|
101
|
+
requestId: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
/** @description Identity authority, D1, or the canonical managed root is unavailable. */
|
|
107
|
+
503: {
|
|
108
|
+
headers: {
|
|
109
|
+
[name: string]: unknown;
|
|
110
|
+
};
|
|
111
|
+
content: {
|
|
112
|
+
"application/json": {
|
|
113
|
+
error: {
|
|
114
|
+
/** @enum {string} */
|
|
115
|
+
code: "identity_authority_unavailable";
|
|
116
|
+
details: Record<string, never>;
|
|
117
|
+
/** @enum {string} */
|
|
118
|
+
message: "Authentication is temporarily unavailable.";
|
|
119
|
+
requestId: string;
|
|
120
|
+
};
|
|
121
|
+
} | {
|
|
122
|
+
error: {
|
|
123
|
+
/** @enum {string} */
|
|
124
|
+
code: "service_unavailable";
|
|
125
|
+
details: Record<string, never>;
|
|
126
|
+
/** @enum {string} */
|
|
127
|
+
message: "The service is temporarily unavailable.";
|
|
128
|
+
requestId: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
3
135
|
listFolderChildren: {
|
|
4
136
|
parameters: {
|
|
5
137
|
query?: {
|
|
@@ -50,17 +182,12 @@ interface operations {
|
|
|
50
182
|
content: {
|
|
51
183
|
"application/json": {
|
|
52
184
|
error: {
|
|
53
|
-
code: string;
|
|
54
|
-
details: Record<string, never>;
|
|
55
|
-
message: string;
|
|
56
|
-
requestId: string;
|
|
57
|
-
};
|
|
58
|
-
} & {
|
|
59
|
-
error?: {
|
|
60
185
|
/** @enum {string} */
|
|
61
|
-
code
|
|
186
|
+
code: "authentication_required";
|
|
187
|
+
details: Record<string, never>;
|
|
62
188
|
/** @enum {string} */
|
|
63
|
-
message
|
|
189
|
+
message: "Authentication is required.";
|
|
190
|
+
requestId: string;
|
|
64
191
|
};
|
|
65
192
|
};
|
|
66
193
|
};
|
|
@@ -73,17 +200,12 @@ interface operations {
|
|
|
73
200
|
content: {
|
|
74
201
|
"application/json": {
|
|
75
202
|
error: {
|
|
76
|
-
code: string;
|
|
77
|
-
details: Record<string, never>;
|
|
78
|
-
message: string;
|
|
79
|
-
requestId: string;
|
|
80
|
-
};
|
|
81
|
-
} & {
|
|
82
|
-
error?: {
|
|
83
203
|
/** @enum {string} */
|
|
84
|
-
code
|
|
204
|
+
code: "permission_denied";
|
|
205
|
+
details: Record<string, never>;
|
|
85
206
|
/** @enum {string} */
|
|
86
|
-
message
|
|
207
|
+
message: "The requested action is not permitted.";
|
|
208
|
+
requestId: string;
|
|
87
209
|
};
|
|
88
210
|
};
|
|
89
211
|
};
|
|
@@ -130,21 +252,16 @@ interface operations {
|
|
|
130
252
|
[name: string]: unknown;
|
|
131
253
|
};
|
|
132
254
|
content: {
|
|
133
|
-
"application/json":
|
|
255
|
+
"application/json": {
|
|
134
256
|
error: {
|
|
135
|
-
code: string;
|
|
136
|
-
details: Record<string, never>;
|
|
137
|
-
message: string;
|
|
138
|
-
requestId: string;
|
|
139
|
-
};
|
|
140
|
-
} & {
|
|
141
|
-
error?: {
|
|
142
257
|
/** @enum {string} */
|
|
143
|
-
code
|
|
258
|
+
code: "invalid_request";
|
|
259
|
+
details: Record<string, never>;
|
|
144
260
|
/** @enum {string} */
|
|
145
|
-
message
|
|
261
|
+
message: "The request is invalid.";
|
|
262
|
+
requestId: string;
|
|
146
263
|
};
|
|
147
|
-
}
|
|
264
|
+
} | {
|
|
148
265
|
error: {
|
|
149
266
|
/** @enum {string} */
|
|
150
267
|
code: "invalid_pagination_cursor";
|
|
@@ -162,35 +279,25 @@ interface operations {
|
|
|
162
279
|
[name: string]: unknown;
|
|
163
280
|
};
|
|
164
281
|
content: {
|
|
165
|
-
"application/json":
|
|
282
|
+
"application/json": {
|
|
166
283
|
error: {
|
|
167
|
-
code: string;
|
|
168
|
-
details: Record<string, never>;
|
|
169
|
-
message: string;
|
|
170
|
-
requestId: string;
|
|
171
|
-
};
|
|
172
|
-
} & {
|
|
173
|
-
error?: {
|
|
174
284
|
/** @enum {string} */
|
|
175
|
-
code
|
|
176
|
-
/** @enum {string} */
|
|
177
|
-
message?: "Authentication is temporarily unavailable.";
|
|
178
|
-
};
|
|
179
|
-
}) | ({
|
|
180
|
-
error: {
|
|
181
|
-
code: string;
|
|
285
|
+
code: "identity_authority_unavailable";
|
|
182
286
|
details: Record<string, never>;
|
|
183
|
-
|
|
287
|
+
/** @enum {string} */
|
|
288
|
+
message: "Authentication is temporarily unavailable.";
|
|
184
289
|
requestId: string;
|
|
185
290
|
};
|
|
186
|
-
}
|
|
187
|
-
error
|
|
291
|
+
} | {
|
|
292
|
+
error: {
|
|
188
293
|
/** @enum {string} */
|
|
189
|
-
code
|
|
294
|
+
code: "service_unavailable";
|
|
295
|
+
details: Record<string, never>;
|
|
190
296
|
/** @enum {string} */
|
|
191
|
-
message
|
|
297
|
+
message: "The service is temporarily unavailable.";
|
|
298
|
+
requestId: string;
|
|
192
299
|
};
|
|
193
|
-
}
|
|
300
|
+
};
|
|
194
301
|
};
|
|
195
302
|
};
|
|
196
303
|
};
|
|
@@ -275,17 +382,12 @@ interface operations {
|
|
|
275
382
|
content: {
|
|
276
383
|
"application/json": {
|
|
277
384
|
error: {
|
|
278
|
-
code: string;
|
|
279
|
-
details: Record<string, never>;
|
|
280
|
-
message: string;
|
|
281
|
-
requestId: string;
|
|
282
|
-
};
|
|
283
|
-
} & {
|
|
284
|
-
error?: {
|
|
285
385
|
/** @enum {string} */
|
|
286
|
-
code
|
|
386
|
+
code: "authentication_required";
|
|
387
|
+
details: Record<string, never>;
|
|
287
388
|
/** @enum {string} */
|
|
288
|
-
message
|
|
389
|
+
message: "Authentication is required.";
|
|
390
|
+
requestId: string;
|
|
289
391
|
};
|
|
290
392
|
};
|
|
291
393
|
};
|
|
@@ -298,17 +400,12 @@ interface operations {
|
|
|
298
400
|
content: {
|
|
299
401
|
"application/json": {
|
|
300
402
|
error: {
|
|
301
|
-
code: string;
|
|
302
|
-
details: Record<string, never>;
|
|
303
|
-
message: string;
|
|
304
|
-
requestId: string;
|
|
305
|
-
};
|
|
306
|
-
} & {
|
|
307
|
-
error?: {
|
|
308
403
|
/** @enum {string} */
|
|
309
|
-
code
|
|
404
|
+
code: "permission_denied";
|
|
405
|
+
details: Record<string, never>;
|
|
310
406
|
/** @enum {string} */
|
|
311
|
-
message
|
|
407
|
+
message: "The requested action is not permitted.";
|
|
408
|
+
requestId: string;
|
|
312
409
|
};
|
|
313
410
|
};
|
|
314
411
|
};
|
|
@@ -337,21 +434,16 @@ interface operations {
|
|
|
337
434
|
[name: string]: unknown;
|
|
338
435
|
};
|
|
339
436
|
content: {
|
|
340
|
-
"application/json":
|
|
437
|
+
"application/json": {
|
|
341
438
|
error: {
|
|
342
|
-
code: string;
|
|
343
|
-
details: Record<string, never>;
|
|
344
|
-
message: string;
|
|
345
|
-
requestId: string;
|
|
346
|
-
};
|
|
347
|
-
} & {
|
|
348
|
-
error?: {
|
|
349
439
|
/** @enum {string} */
|
|
350
|
-
code
|
|
440
|
+
code: "idempotency_conflict";
|
|
441
|
+
details: Record<string, never>;
|
|
351
442
|
/** @enum {string} */
|
|
352
|
-
message
|
|
443
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
444
|
+
requestId: string;
|
|
353
445
|
};
|
|
354
|
-
}
|
|
446
|
+
} | {
|
|
355
447
|
error: {
|
|
356
448
|
/** @enum {string} */
|
|
357
449
|
code: "precondition_failed";
|
|
@@ -369,21 +461,16 @@ interface operations {
|
|
|
369
461
|
[name: string]: unknown;
|
|
370
462
|
};
|
|
371
463
|
content: {
|
|
372
|
-
"application/json":
|
|
464
|
+
"application/json": {
|
|
373
465
|
error: {
|
|
374
|
-
code: string;
|
|
375
|
-
details: Record<string, never>;
|
|
376
|
-
message: string;
|
|
377
|
-
requestId: string;
|
|
378
|
-
};
|
|
379
|
-
} & {
|
|
380
|
-
error?: {
|
|
381
466
|
/** @enum {string} */
|
|
382
|
-
code
|
|
467
|
+
code: "invalid_request";
|
|
468
|
+
details: Record<string, never>;
|
|
383
469
|
/** @enum {string} */
|
|
384
|
-
message
|
|
470
|
+
message: "The request is invalid.";
|
|
471
|
+
requestId: string;
|
|
385
472
|
};
|
|
386
|
-
}
|
|
473
|
+
} | {
|
|
387
474
|
error: {
|
|
388
475
|
/** @enum {string} */
|
|
389
476
|
code: "invalid_idempotency_key";
|
|
@@ -401,35 +488,25 @@ interface operations {
|
|
|
401
488
|
[name: string]: unknown;
|
|
402
489
|
};
|
|
403
490
|
content: {
|
|
404
|
-
"application/json":
|
|
491
|
+
"application/json": {
|
|
405
492
|
error: {
|
|
406
|
-
code: string;
|
|
407
|
-
details: Record<string, never>;
|
|
408
|
-
message: string;
|
|
409
|
-
requestId: string;
|
|
410
|
-
};
|
|
411
|
-
} & {
|
|
412
|
-
error?: {
|
|
413
|
-
/** @enum {string} */
|
|
414
|
-
code?: "identity_authority_unavailable";
|
|
415
493
|
/** @enum {string} */
|
|
416
|
-
|
|
417
|
-
};
|
|
418
|
-
}) | ({
|
|
419
|
-
error: {
|
|
420
|
-
code: string;
|
|
494
|
+
code: "identity_authority_unavailable";
|
|
421
495
|
details: Record<string, never>;
|
|
422
|
-
|
|
496
|
+
/** @enum {string} */
|
|
497
|
+
message: "Authentication is temporarily unavailable.";
|
|
423
498
|
requestId: string;
|
|
424
499
|
};
|
|
425
|
-
}
|
|
426
|
-
error
|
|
500
|
+
} | {
|
|
501
|
+
error: {
|
|
427
502
|
/** @enum {string} */
|
|
428
|
-
code
|
|
503
|
+
code: "service_unavailable";
|
|
504
|
+
details: Record<string, never>;
|
|
429
505
|
/** @enum {string} */
|
|
430
|
-
message
|
|
506
|
+
message: "The service is temporarily unavailable.";
|
|
507
|
+
requestId: string;
|
|
431
508
|
};
|
|
432
|
-
}
|
|
509
|
+
};
|
|
433
510
|
};
|
|
434
511
|
};
|
|
435
512
|
};
|
|
@@ -495,17 +572,12 @@ interface operations {
|
|
|
495
572
|
content: {
|
|
496
573
|
"application/json": {
|
|
497
574
|
error: {
|
|
498
|
-
code: string;
|
|
499
|
-
details: Record<string, never>;
|
|
500
|
-
message: string;
|
|
501
|
-
requestId: string;
|
|
502
|
-
};
|
|
503
|
-
} & {
|
|
504
|
-
error?: {
|
|
505
575
|
/** @enum {string} */
|
|
506
|
-
code
|
|
576
|
+
code: "authentication_required";
|
|
577
|
+
details: Record<string, never>;
|
|
507
578
|
/** @enum {string} */
|
|
508
|
-
message
|
|
579
|
+
message: "Authentication is required.";
|
|
580
|
+
requestId: string;
|
|
509
581
|
};
|
|
510
582
|
};
|
|
511
583
|
};
|
|
@@ -518,17 +590,12 @@ interface operations {
|
|
|
518
590
|
content: {
|
|
519
591
|
"application/json": {
|
|
520
592
|
error: {
|
|
521
|
-
code: string;
|
|
522
|
-
details: Record<string, never>;
|
|
523
|
-
message: string;
|
|
524
|
-
requestId: string;
|
|
525
|
-
};
|
|
526
|
-
} & {
|
|
527
|
-
error?: {
|
|
528
593
|
/** @enum {string} */
|
|
529
|
-
code
|
|
594
|
+
code: "permission_denied";
|
|
595
|
+
details: Record<string, never>;
|
|
530
596
|
/** @enum {string} */
|
|
531
|
-
message
|
|
597
|
+
message: "The requested action is not permitted.";
|
|
598
|
+
requestId: string;
|
|
532
599
|
};
|
|
533
600
|
};
|
|
534
601
|
};
|
|
@@ -575,21 +642,16 @@ interface operations {
|
|
|
575
642
|
[name: string]: unknown;
|
|
576
643
|
};
|
|
577
644
|
content: {
|
|
578
|
-
"application/json":
|
|
645
|
+
"application/json": {
|
|
579
646
|
error: {
|
|
580
|
-
code: string;
|
|
581
|
-
details: Record<string, never>;
|
|
582
|
-
message: string;
|
|
583
|
-
requestId: string;
|
|
584
|
-
};
|
|
585
|
-
} & {
|
|
586
|
-
error?: {
|
|
587
647
|
/** @enum {string} */
|
|
588
|
-
code
|
|
648
|
+
code: "invalid_request";
|
|
649
|
+
details: Record<string, never>;
|
|
589
650
|
/** @enum {string} */
|
|
590
|
-
message
|
|
651
|
+
message: "The request is invalid.";
|
|
652
|
+
requestId: string;
|
|
591
653
|
};
|
|
592
|
-
}
|
|
654
|
+
} | {
|
|
593
655
|
error: {
|
|
594
656
|
/** @enum {string} */
|
|
595
657
|
code: "invalid_pagination_cursor";
|
|
@@ -607,35 +669,25 @@ interface operations {
|
|
|
607
669
|
[name: string]: unknown;
|
|
608
670
|
};
|
|
609
671
|
content: {
|
|
610
|
-
"application/json":
|
|
672
|
+
"application/json": {
|
|
611
673
|
error: {
|
|
612
|
-
code: string;
|
|
613
|
-
details: Record<string, never>;
|
|
614
|
-
message: string;
|
|
615
|
-
requestId: string;
|
|
616
|
-
};
|
|
617
|
-
} & {
|
|
618
|
-
error?: {
|
|
619
674
|
/** @enum {string} */
|
|
620
|
-
code
|
|
621
|
-
/** @enum {string} */
|
|
622
|
-
message?: "Authentication is temporarily unavailable.";
|
|
623
|
-
};
|
|
624
|
-
}) | ({
|
|
625
|
-
error: {
|
|
626
|
-
code: string;
|
|
675
|
+
code: "identity_authority_unavailable";
|
|
627
676
|
details: Record<string, never>;
|
|
628
|
-
|
|
677
|
+
/** @enum {string} */
|
|
678
|
+
message: "Authentication is temporarily unavailable.";
|
|
629
679
|
requestId: string;
|
|
630
680
|
};
|
|
631
|
-
}
|
|
632
|
-
error
|
|
681
|
+
} | {
|
|
682
|
+
error: {
|
|
633
683
|
/** @enum {string} */
|
|
634
|
-
code
|
|
684
|
+
code: "service_unavailable";
|
|
685
|
+
details: Record<string, never>;
|
|
635
686
|
/** @enum {string} */
|
|
636
|
-
message
|
|
687
|
+
message: "The service is temporarily unavailable.";
|
|
688
|
+
requestId: string;
|
|
637
689
|
};
|
|
638
|
-
}
|
|
690
|
+
};
|
|
639
691
|
};
|
|
640
692
|
};
|
|
641
693
|
};
|
|
@@ -753,17 +805,12 @@ interface operations {
|
|
|
753
805
|
content: {
|
|
754
806
|
"application/json": {
|
|
755
807
|
error: {
|
|
756
|
-
code: string;
|
|
757
|
-
details: Record<string, never>;
|
|
758
|
-
message: string;
|
|
759
|
-
requestId: string;
|
|
760
|
-
};
|
|
761
|
-
} & {
|
|
762
|
-
error?: {
|
|
763
808
|
/** @enum {string} */
|
|
764
|
-
code
|
|
809
|
+
code: "authentication_required";
|
|
810
|
+
details: Record<string, never>;
|
|
765
811
|
/** @enum {string} */
|
|
766
|
-
message
|
|
812
|
+
message: "Authentication is required.";
|
|
813
|
+
requestId: string;
|
|
767
814
|
};
|
|
768
815
|
};
|
|
769
816
|
};
|
|
@@ -776,17 +823,12 @@ interface operations {
|
|
|
776
823
|
content: {
|
|
777
824
|
"application/json": {
|
|
778
825
|
error: {
|
|
779
|
-
code: string;
|
|
780
|
-
details: Record<string, never>;
|
|
781
|
-
message: string;
|
|
782
|
-
requestId: string;
|
|
783
|
-
};
|
|
784
|
-
} & {
|
|
785
|
-
error?: {
|
|
786
826
|
/** @enum {string} */
|
|
787
|
-
code
|
|
827
|
+
code: "permission_denied";
|
|
828
|
+
details: Record<string, never>;
|
|
788
829
|
/** @enum {string} */
|
|
789
|
-
message
|
|
830
|
+
message: "The requested action is not permitted.";
|
|
831
|
+
requestId: string;
|
|
790
832
|
};
|
|
791
833
|
};
|
|
792
834
|
};
|
|
@@ -817,17 +859,12 @@ interface operations {
|
|
|
817
859
|
content: {
|
|
818
860
|
"application/json": {
|
|
819
861
|
error: {
|
|
820
|
-
code: string;
|
|
821
|
-
details: Record<string, never>;
|
|
822
|
-
message: string;
|
|
823
|
-
requestId: string;
|
|
824
|
-
};
|
|
825
|
-
} & {
|
|
826
|
-
error?: {
|
|
827
862
|
/** @enum {string} */
|
|
828
|
-
code
|
|
863
|
+
code: "idempotency_conflict";
|
|
864
|
+
details: Record<string, never>;
|
|
829
865
|
/** @enum {string} */
|
|
830
|
-
message
|
|
866
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
867
|
+
requestId: string;
|
|
831
868
|
};
|
|
832
869
|
};
|
|
833
870
|
};
|
|
@@ -856,21 +893,16 @@ interface operations {
|
|
|
856
893
|
[name: string]: unknown;
|
|
857
894
|
};
|
|
858
895
|
content: {
|
|
859
|
-
"application/json":
|
|
896
|
+
"application/json": {
|
|
860
897
|
error: {
|
|
861
|
-
code: string;
|
|
862
|
-
details: Record<string, never>;
|
|
863
|
-
message: string;
|
|
864
|
-
requestId: string;
|
|
865
|
-
};
|
|
866
|
-
} & {
|
|
867
|
-
error?: {
|
|
868
898
|
/** @enum {string} */
|
|
869
|
-
code
|
|
899
|
+
code: "invalid_request";
|
|
900
|
+
details: Record<string, never>;
|
|
870
901
|
/** @enum {string} */
|
|
871
|
-
message
|
|
902
|
+
message: "The request is invalid.";
|
|
903
|
+
requestId: string;
|
|
872
904
|
};
|
|
873
|
-
}
|
|
905
|
+
} | {
|
|
874
906
|
error: {
|
|
875
907
|
/** @enum {string} */
|
|
876
908
|
code: "invalid_idempotency_key";
|
|
@@ -888,35 +920,25 @@ interface operations {
|
|
|
888
920
|
[name: string]: unknown;
|
|
889
921
|
};
|
|
890
922
|
content: {
|
|
891
|
-
"application/json":
|
|
923
|
+
"application/json": {
|
|
892
924
|
error: {
|
|
893
|
-
code: string;
|
|
894
|
-
details: Record<string, never>;
|
|
895
|
-
message: string;
|
|
896
|
-
requestId: string;
|
|
897
|
-
};
|
|
898
|
-
} & {
|
|
899
|
-
error?: {
|
|
900
925
|
/** @enum {string} */
|
|
901
|
-
code
|
|
902
|
-
/** @enum {string} */
|
|
903
|
-
message?: "Authentication is temporarily unavailable.";
|
|
904
|
-
};
|
|
905
|
-
}) | ({
|
|
906
|
-
error: {
|
|
907
|
-
code: string;
|
|
926
|
+
code: "identity_authority_unavailable";
|
|
908
927
|
details: Record<string, never>;
|
|
909
|
-
|
|
928
|
+
/** @enum {string} */
|
|
929
|
+
message: "Authentication is temporarily unavailable.";
|
|
910
930
|
requestId: string;
|
|
911
931
|
};
|
|
912
|
-
}
|
|
913
|
-
error
|
|
932
|
+
} | {
|
|
933
|
+
error: {
|
|
914
934
|
/** @enum {string} */
|
|
915
|
-
code
|
|
935
|
+
code: "service_unavailable";
|
|
936
|
+
details: Record<string, never>;
|
|
916
937
|
/** @enum {string} */
|
|
917
|
-
message
|
|
938
|
+
message: "The service is temporarily unavailable.";
|
|
939
|
+
requestId: string;
|
|
918
940
|
};
|
|
919
|
-
}
|
|
941
|
+
};
|
|
920
942
|
};
|
|
921
943
|
};
|
|
922
944
|
};
|
|
@@ -944,7 +966,8 @@ interface operations {
|
|
|
944
966
|
/** @enum {string} */
|
|
945
967
|
action: "items:content:read" | "items:create" | "items:delete" | "items:metadata:read" | "items:permissions:manage" | "items:permissions:read" | "items:update";
|
|
946
968
|
allowed: boolean;
|
|
947
|
-
|
|
969
|
+
/** @enum {string|null} */
|
|
970
|
+
basis: "workspace_visibility" | "restricted_administrator_bypass" | "direct_grant" | "inherited_grant" | null;
|
|
948
971
|
grantId: string | null;
|
|
949
972
|
sourceItemId: string | null;
|
|
950
973
|
}[] & (unknown & unknown & unknown & unknown & unknown & unknown & unknown);
|
|
@@ -959,17 +982,12 @@ interface operations {
|
|
|
959
982
|
content: {
|
|
960
983
|
"application/json": {
|
|
961
984
|
error: {
|
|
962
|
-
code: string;
|
|
963
|
-
details: Record<string, never>;
|
|
964
|
-
message: string;
|
|
965
|
-
requestId: string;
|
|
966
|
-
};
|
|
967
|
-
} & {
|
|
968
|
-
error?: {
|
|
969
985
|
/** @enum {string} */
|
|
970
|
-
code
|
|
986
|
+
code: "authentication_required";
|
|
987
|
+
details: Record<string, never>;
|
|
971
988
|
/** @enum {string} */
|
|
972
|
-
message
|
|
989
|
+
message: "Authentication is required.";
|
|
990
|
+
requestId: string;
|
|
973
991
|
};
|
|
974
992
|
};
|
|
975
993
|
};
|
|
@@ -982,17 +1000,12 @@ interface operations {
|
|
|
982
1000
|
content: {
|
|
983
1001
|
"application/json": {
|
|
984
1002
|
error: {
|
|
985
|
-
code: string;
|
|
986
|
-
details: Record<string, never>;
|
|
987
|
-
message: string;
|
|
988
|
-
requestId: string;
|
|
989
|
-
};
|
|
990
|
-
} & {
|
|
991
|
-
error?: {
|
|
992
1003
|
/** @enum {string} */
|
|
993
|
-
code
|
|
1004
|
+
code: "permission_denied";
|
|
1005
|
+
details: Record<string, never>;
|
|
994
1006
|
/** @enum {string} */
|
|
995
|
-
message
|
|
1007
|
+
message: "The requested action is not permitted.";
|
|
1008
|
+
requestId: string;
|
|
996
1009
|
};
|
|
997
1010
|
};
|
|
998
1011
|
};
|
|
@@ -1041,17 +1054,12 @@ interface operations {
|
|
|
1041
1054
|
content: {
|
|
1042
1055
|
"application/json": {
|
|
1043
1056
|
error: {
|
|
1044
|
-
code: string;
|
|
1045
|
-
details: Record<string, never>;
|
|
1046
|
-
message: string;
|
|
1047
|
-
requestId: string;
|
|
1048
|
-
};
|
|
1049
|
-
} & {
|
|
1050
|
-
error?: {
|
|
1051
1057
|
/** @enum {string} */
|
|
1052
|
-
code
|
|
1058
|
+
code: "invalid_request";
|
|
1059
|
+
details: Record<string, never>;
|
|
1053
1060
|
/** @enum {string} */
|
|
1054
|
-
message
|
|
1061
|
+
message: "The request is invalid.";
|
|
1062
|
+
requestId: string;
|
|
1055
1063
|
};
|
|
1056
1064
|
};
|
|
1057
1065
|
};
|
|
@@ -1062,35 +1070,25 @@ interface operations {
|
|
|
1062
1070
|
[name: string]: unknown;
|
|
1063
1071
|
};
|
|
1064
1072
|
content: {
|
|
1065
|
-
"application/json":
|
|
1073
|
+
"application/json": {
|
|
1066
1074
|
error: {
|
|
1067
|
-
code: string;
|
|
1068
|
-
details: Record<string, never>;
|
|
1069
|
-
message: string;
|
|
1070
|
-
requestId: string;
|
|
1071
|
-
};
|
|
1072
|
-
} & {
|
|
1073
|
-
error?: {
|
|
1074
|
-
/** @enum {string} */
|
|
1075
|
-
code?: "identity_authority_unavailable";
|
|
1076
1075
|
/** @enum {string} */
|
|
1077
|
-
|
|
1078
|
-
};
|
|
1079
|
-
}) | ({
|
|
1080
|
-
error: {
|
|
1081
|
-
code: string;
|
|
1076
|
+
code: "identity_authority_unavailable";
|
|
1082
1077
|
details: Record<string, never>;
|
|
1083
|
-
|
|
1078
|
+
/** @enum {string} */
|
|
1079
|
+
message: "Authentication is temporarily unavailable.";
|
|
1084
1080
|
requestId: string;
|
|
1085
1081
|
};
|
|
1086
|
-
}
|
|
1087
|
-
error
|
|
1082
|
+
} | {
|
|
1083
|
+
error: {
|
|
1088
1084
|
/** @enum {string} */
|
|
1089
|
-
code
|
|
1085
|
+
code: "service_unavailable";
|
|
1086
|
+
details: Record<string, never>;
|
|
1090
1087
|
/** @enum {string} */
|
|
1091
|
-
message
|
|
1088
|
+
message: "The service is temporarily unavailable.";
|
|
1089
|
+
requestId: string;
|
|
1092
1090
|
};
|
|
1093
|
-
}
|
|
1091
|
+
};
|
|
1094
1092
|
};
|
|
1095
1093
|
};
|
|
1096
1094
|
};
|
|
@@ -1154,17 +1152,12 @@ interface operations {
|
|
|
1154
1152
|
content: {
|
|
1155
1153
|
"application/json": {
|
|
1156
1154
|
error: {
|
|
1157
|
-
code: string;
|
|
1158
|
-
details: Record<string, never>;
|
|
1159
|
-
message: string;
|
|
1160
|
-
requestId: string;
|
|
1161
|
-
};
|
|
1162
|
-
} & {
|
|
1163
|
-
error?: {
|
|
1164
1155
|
/** @enum {string} */
|
|
1165
|
-
code
|
|
1156
|
+
code: "authentication_required";
|
|
1157
|
+
details: Record<string, never>;
|
|
1166
1158
|
/** @enum {string} */
|
|
1167
|
-
message
|
|
1159
|
+
message: "Authentication is required.";
|
|
1160
|
+
requestId: string;
|
|
1168
1161
|
};
|
|
1169
1162
|
};
|
|
1170
1163
|
};
|
|
@@ -1177,17 +1170,12 @@ interface operations {
|
|
|
1177
1170
|
content: {
|
|
1178
1171
|
"application/json": {
|
|
1179
1172
|
error: {
|
|
1180
|
-
code: string;
|
|
1181
|
-
details: Record<string, never>;
|
|
1182
|
-
message: string;
|
|
1183
|
-
requestId: string;
|
|
1184
|
-
};
|
|
1185
|
-
} & {
|
|
1186
|
-
error?: {
|
|
1187
1173
|
/** @enum {string} */
|
|
1188
|
-
code
|
|
1174
|
+
code: "permission_denied";
|
|
1175
|
+
details: Record<string, never>;
|
|
1189
1176
|
/** @enum {string} */
|
|
1190
|
-
message
|
|
1177
|
+
message: "The requested action is not permitted.";
|
|
1178
|
+
requestId: string;
|
|
1191
1179
|
};
|
|
1192
1180
|
};
|
|
1193
1181
|
};
|
|
@@ -1218,17 +1206,12 @@ interface operations {
|
|
|
1218
1206
|
content: {
|
|
1219
1207
|
"application/json": {
|
|
1220
1208
|
error: {
|
|
1221
|
-
code: string;
|
|
1222
|
-
details: Record<string, never>;
|
|
1223
|
-
message: string;
|
|
1224
|
-
requestId: string;
|
|
1225
|
-
};
|
|
1226
|
-
} & {
|
|
1227
|
-
error?: {
|
|
1228
1209
|
/** @enum {string} */
|
|
1229
|
-
code
|
|
1210
|
+
code: "idempotency_conflict";
|
|
1211
|
+
details: Record<string, never>;
|
|
1230
1212
|
/** @enum {string} */
|
|
1231
|
-
message
|
|
1213
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
1214
|
+
requestId: string;
|
|
1232
1215
|
};
|
|
1233
1216
|
};
|
|
1234
1217
|
};
|
|
@@ -1257,21 +1240,16 @@ interface operations {
|
|
|
1257
1240
|
[name: string]: unknown;
|
|
1258
1241
|
};
|
|
1259
1242
|
content: {
|
|
1260
|
-
"application/json":
|
|
1243
|
+
"application/json": {
|
|
1261
1244
|
error: {
|
|
1262
|
-
code: string;
|
|
1263
|
-
details: Record<string, never>;
|
|
1264
|
-
message: string;
|
|
1265
|
-
requestId: string;
|
|
1266
|
-
};
|
|
1267
|
-
} & {
|
|
1268
|
-
error?: {
|
|
1269
1245
|
/** @enum {string} */
|
|
1270
|
-
code
|
|
1246
|
+
code: "invalid_request";
|
|
1247
|
+
details: Record<string, never>;
|
|
1271
1248
|
/** @enum {string} */
|
|
1272
|
-
message
|
|
1249
|
+
message: "The request is invalid.";
|
|
1250
|
+
requestId: string;
|
|
1273
1251
|
};
|
|
1274
|
-
}
|
|
1252
|
+
} | {
|
|
1275
1253
|
error: {
|
|
1276
1254
|
/** @enum {string} */
|
|
1277
1255
|
code: "invalid_idempotency_key";
|
|
@@ -1289,35 +1267,25 @@ interface operations {
|
|
|
1289
1267
|
[name: string]: unknown;
|
|
1290
1268
|
};
|
|
1291
1269
|
content: {
|
|
1292
|
-
"application/json":
|
|
1270
|
+
"application/json": {
|
|
1293
1271
|
error: {
|
|
1294
|
-
code: string;
|
|
1295
|
-
details: Record<string, never>;
|
|
1296
|
-
message: string;
|
|
1297
|
-
requestId: string;
|
|
1298
|
-
};
|
|
1299
|
-
} & {
|
|
1300
|
-
error?: {
|
|
1301
|
-
/** @enum {string} */
|
|
1302
|
-
code?: "identity_authority_unavailable";
|
|
1303
1272
|
/** @enum {string} */
|
|
1304
|
-
|
|
1305
|
-
};
|
|
1306
|
-
}) | ({
|
|
1307
|
-
error: {
|
|
1308
|
-
code: string;
|
|
1273
|
+
code: "identity_authority_unavailable";
|
|
1309
1274
|
details: Record<string, never>;
|
|
1310
|
-
|
|
1275
|
+
/** @enum {string} */
|
|
1276
|
+
message: "Authentication is temporarily unavailable.";
|
|
1311
1277
|
requestId: string;
|
|
1312
1278
|
};
|
|
1313
|
-
}
|
|
1314
|
-
error
|
|
1279
|
+
} | {
|
|
1280
|
+
error: {
|
|
1315
1281
|
/** @enum {string} */
|
|
1316
|
-
code
|
|
1282
|
+
code: "service_unavailable";
|
|
1283
|
+
details: Record<string, never>;
|
|
1317
1284
|
/** @enum {string} */
|
|
1318
|
-
message
|
|
1285
|
+
message: "The service is temporarily unavailable.";
|
|
1286
|
+
requestId: string;
|
|
1319
1287
|
};
|
|
1320
|
-
}
|
|
1288
|
+
};
|
|
1321
1289
|
};
|
|
1322
1290
|
};
|
|
1323
1291
|
};
|
|
@@ -1390,17 +1358,12 @@ interface operations {
|
|
|
1390
1358
|
content: {
|
|
1391
1359
|
"application/json": {
|
|
1392
1360
|
error: {
|
|
1393
|
-
code: string;
|
|
1394
|
-
details: Record<string, never>;
|
|
1395
|
-
message: string;
|
|
1396
|
-
requestId: string;
|
|
1397
|
-
};
|
|
1398
|
-
} & {
|
|
1399
|
-
error?: {
|
|
1400
1361
|
/** @enum {string} */
|
|
1401
|
-
code
|
|
1362
|
+
code: "authentication_required";
|
|
1363
|
+
details: Record<string, never>;
|
|
1402
1364
|
/** @enum {string} */
|
|
1403
|
-
message
|
|
1365
|
+
message: "Authentication is required.";
|
|
1366
|
+
requestId: string;
|
|
1404
1367
|
};
|
|
1405
1368
|
};
|
|
1406
1369
|
};
|
|
@@ -1413,17 +1376,12 @@ interface operations {
|
|
|
1413
1376
|
content: {
|
|
1414
1377
|
"application/json": {
|
|
1415
1378
|
error: {
|
|
1416
|
-
code: string;
|
|
1417
|
-
details: Record<string, never>;
|
|
1418
|
-
message: string;
|
|
1419
|
-
requestId: string;
|
|
1420
|
-
};
|
|
1421
|
-
} & {
|
|
1422
|
-
error?: {
|
|
1423
1379
|
/** @enum {string} */
|
|
1424
|
-
code
|
|
1380
|
+
code: "permission_denied";
|
|
1381
|
+
details: Record<string, never>;
|
|
1425
1382
|
/** @enum {string} */
|
|
1426
|
-
message
|
|
1383
|
+
message: "The requested action is not permitted.";
|
|
1384
|
+
requestId: string;
|
|
1427
1385
|
};
|
|
1428
1386
|
};
|
|
1429
1387
|
};
|
|
@@ -1454,17 +1412,12 @@ interface operations {
|
|
|
1454
1412
|
content: {
|
|
1455
1413
|
"application/json": {
|
|
1456
1414
|
error: {
|
|
1457
|
-
code: string;
|
|
1458
|
-
details: Record<string, never>;
|
|
1459
|
-
message: string;
|
|
1460
|
-
requestId: string;
|
|
1461
|
-
};
|
|
1462
|
-
} & {
|
|
1463
|
-
error?: {
|
|
1464
1415
|
/** @enum {string} */
|
|
1465
|
-
code
|
|
1416
|
+
code: "idempotency_conflict";
|
|
1417
|
+
details: Record<string, never>;
|
|
1466
1418
|
/** @enum {string} */
|
|
1467
|
-
message
|
|
1419
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
1420
|
+
requestId: string;
|
|
1468
1421
|
};
|
|
1469
1422
|
};
|
|
1470
1423
|
};
|
|
@@ -1493,21 +1446,16 @@ interface operations {
|
|
|
1493
1446
|
[name: string]: unknown;
|
|
1494
1447
|
};
|
|
1495
1448
|
content: {
|
|
1496
|
-
"application/json":
|
|
1449
|
+
"application/json": {
|
|
1497
1450
|
error: {
|
|
1498
|
-
code: string;
|
|
1499
|
-
details: Record<string, never>;
|
|
1500
|
-
message: string;
|
|
1501
|
-
requestId: string;
|
|
1502
|
-
};
|
|
1503
|
-
} & {
|
|
1504
|
-
error?: {
|
|
1505
1451
|
/** @enum {string} */
|
|
1506
|
-
code
|
|
1452
|
+
code: "invalid_request";
|
|
1453
|
+
details: Record<string, never>;
|
|
1507
1454
|
/** @enum {string} */
|
|
1508
|
-
message
|
|
1455
|
+
message: "The request is invalid.";
|
|
1456
|
+
requestId: string;
|
|
1509
1457
|
};
|
|
1510
|
-
}
|
|
1458
|
+
} | {
|
|
1511
1459
|
error: {
|
|
1512
1460
|
/** @enum {string} */
|
|
1513
1461
|
code: "invalid_idempotency_key";
|
|
@@ -1525,35 +1473,25 @@ interface operations {
|
|
|
1525
1473
|
[name: string]: unknown;
|
|
1526
1474
|
};
|
|
1527
1475
|
content: {
|
|
1528
|
-
"application/json":
|
|
1476
|
+
"application/json": {
|
|
1529
1477
|
error: {
|
|
1530
|
-
code: string;
|
|
1531
|
-
details: Record<string, never>;
|
|
1532
|
-
message: string;
|
|
1533
|
-
requestId: string;
|
|
1534
|
-
};
|
|
1535
|
-
} & {
|
|
1536
|
-
error?: {
|
|
1537
|
-
/** @enum {string} */
|
|
1538
|
-
code?: "identity_authority_unavailable";
|
|
1539
1478
|
/** @enum {string} */
|
|
1540
|
-
|
|
1541
|
-
};
|
|
1542
|
-
}) | ({
|
|
1543
|
-
error: {
|
|
1544
|
-
code: string;
|
|
1479
|
+
code: "identity_authority_unavailable";
|
|
1545
1480
|
details: Record<string, never>;
|
|
1546
|
-
|
|
1481
|
+
/** @enum {string} */
|
|
1482
|
+
message: "Authentication is temporarily unavailable.";
|
|
1547
1483
|
requestId: string;
|
|
1548
1484
|
};
|
|
1549
|
-
}
|
|
1550
|
-
error
|
|
1485
|
+
} | {
|
|
1486
|
+
error: {
|
|
1551
1487
|
/** @enum {string} */
|
|
1552
|
-
code
|
|
1488
|
+
code: "service_unavailable";
|
|
1489
|
+
details: Record<string, never>;
|
|
1553
1490
|
/** @enum {string} */
|
|
1554
|
-
message
|
|
1491
|
+
message: "The service is temporarily unavailable.";
|
|
1492
|
+
requestId: string;
|
|
1555
1493
|
};
|
|
1556
|
-
}
|
|
1494
|
+
};
|
|
1557
1495
|
};
|
|
1558
1496
|
};
|
|
1559
1497
|
};
|
|
@@ -1591,7 +1529,9 @@ interface operations {
|
|
|
1591
1529
|
parentItemId: string;
|
|
1592
1530
|
/** @enum {string} */
|
|
1593
1531
|
state: "reserved";
|
|
1532
|
+
/** @enum {unknown|null} */
|
|
1594
1533
|
terminalAtEpochMilliseconds: null;
|
|
1534
|
+
/** @enum {unknown|null} */
|
|
1595
1535
|
terminalReason: null;
|
|
1596
1536
|
uploadId: string;
|
|
1597
1537
|
workspaceId: string;
|
|
@@ -1611,7 +1551,9 @@ interface operations {
|
|
|
1611
1551
|
parentItemId: string;
|
|
1612
1552
|
/** @enum {string} */
|
|
1613
1553
|
state: "reserved";
|
|
1554
|
+
/** @enum {unknown|null} */
|
|
1614
1555
|
terminalAtEpochMilliseconds: null;
|
|
1556
|
+
/** @enum {unknown|null} */
|
|
1615
1557
|
terminalReason: null;
|
|
1616
1558
|
uploadId: string;
|
|
1617
1559
|
workspaceId: string;
|
|
@@ -1626,17 +1568,12 @@ interface operations {
|
|
|
1626
1568
|
content: {
|
|
1627
1569
|
"application/json": {
|
|
1628
1570
|
error: {
|
|
1629
|
-
code: string;
|
|
1630
|
-
details: Record<string, never>;
|
|
1631
|
-
message: string;
|
|
1632
|
-
requestId: string;
|
|
1633
|
-
};
|
|
1634
|
-
} & {
|
|
1635
|
-
error?: {
|
|
1636
1571
|
/** @enum {string} */
|
|
1637
|
-
code
|
|
1572
|
+
code: "authentication_required";
|
|
1573
|
+
details: Record<string, never>;
|
|
1638
1574
|
/** @enum {string} */
|
|
1639
|
-
message
|
|
1575
|
+
message: "Authentication is required.";
|
|
1576
|
+
requestId: string;
|
|
1640
1577
|
};
|
|
1641
1578
|
};
|
|
1642
1579
|
};
|
|
@@ -1649,17 +1586,12 @@ interface operations {
|
|
|
1649
1586
|
content: {
|
|
1650
1587
|
"application/json": {
|
|
1651
1588
|
error: {
|
|
1652
|
-
code: string;
|
|
1653
|
-
details: Record<string, never>;
|
|
1654
|
-
message: string;
|
|
1655
|
-
requestId: string;
|
|
1656
|
-
};
|
|
1657
|
-
} & {
|
|
1658
|
-
error?: {
|
|
1659
1589
|
/** @enum {string} */
|
|
1660
|
-
code
|
|
1590
|
+
code: "permission_denied";
|
|
1591
|
+
details: Record<string, never>;
|
|
1661
1592
|
/** @enum {string} */
|
|
1662
|
-
message
|
|
1593
|
+
message: "The requested action is not permitted.";
|
|
1594
|
+
requestId: string;
|
|
1663
1595
|
};
|
|
1664
1596
|
};
|
|
1665
1597
|
};
|
|
@@ -1688,7 +1620,7 @@ interface operations {
|
|
|
1688
1620
|
[name: string]: unknown;
|
|
1689
1621
|
};
|
|
1690
1622
|
content: {
|
|
1691
|
-
"application/json":
|
|
1623
|
+
"application/json": {
|
|
1692
1624
|
error: {
|
|
1693
1625
|
/** @enum {string} */
|
|
1694
1626
|
code: "quota_exceeded";
|
|
@@ -1697,21 +1629,16 @@ interface operations {
|
|
|
1697
1629
|
message: "The workspace storage quota would be exceeded.";
|
|
1698
1630
|
requestId: string;
|
|
1699
1631
|
};
|
|
1700
|
-
} |
|
|
1632
|
+
} | {
|
|
1701
1633
|
error: {
|
|
1702
|
-
code: string;
|
|
1703
|
-
details: Record<string, never>;
|
|
1704
|
-
message: string;
|
|
1705
|
-
requestId: string;
|
|
1706
|
-
};
|
|
1707
|
-
} & {
|
|
1708
|
-
error?: {
|
|
1709
1634
|
/** @enum {string} */
|
|
1710
|
-
code
|
|
1635
|
+
code: "idempotency_conflict";
|
|
1636
|
+
details: Record<string, never>;
|
|
1711
1637
|
/** @enum {string} */
|
|
1712
|
-
message
|
|
1638
|
+
message: "The idempotency key conflicts with an earlier request.";
|
|
1639
|
+
requestId: string;
|
|
1713
1640
|
};
|
|
1714
|
-
}
|
|
1641
|
+
} | {
|
|
1715
1642
|
error: {
|
|
1716
1643
|
/** @enum {string} */
|
|
1717
1644
|
code: "precondition_failed";
|
|
@@ -1720,7 +1647,7 @@ interface operations {
|
|
|
1720
1647
|
message: "The request precondition failed.";
|
|
1721
1648
|
requestId: string;
|
|
1722
1649
|
};
|
|
1723
|
-
}
|
|
1650
|
+
};
|
|
1724
1651
|
};
|
|
1725
1652
|
};
|
|
1726
1653
|
/** @description The path, key, media type, or strict request body is invalid. */
|
|
@@ -1729,21 +1656,16 @@ interface operations {
|
|
|
1729
1656
|
[name: string]: unknown;
|
|
1730
1657
|
};
|
|
1731
1658
|
content: {
|
|
1732
|
-
"application/json":
|
|
1659
|
+
"application/json": {
|
|
1733
1660
|
error: {
|
|
1734
|
-
code: string;
|
|
1735
|
-
details: Record<string, never>;
|
|
1736
|
-
message: string;
|
|
1737
|
-
requestId: string;
|
|
1738
|
-
};
|
|
1739
|
-
} & {
|
|
1740
|
-
error?: {
|
|
1741
1661
|
/** @enum {string} */
|
|
1742
|
-
code
|
|
1662
|
+
code: "invalid_request";
|
|
1663
|
+
details: Record<string, never>;
|
|
1743
1664
|
/** @enum {string} */
|
|
1744
|
-
message
|
|
1665
|
+
message: "The request is invalid.";
|
|
1666
|
+
requestId: string;
|
|
1745
1667
|
};
|
|
1746
|
-
}
|
|
1668
|
+
} | {
|
|
1747
1669
|
error: {
|
|
1748
1670
|
/** @enum {string} */
|
|
1749
1671
|
code: "invalid_idempotency_key";
|
|
@@ -1752,7 +1674,7 @@ interface operations {
|
|
|
1752
1674
|
message: "The idempotency key is invalid.";
|
|
1753
1675
|
requestId: string;
|
|
1754
1676
|
};
|
|
1755
|
-
}
|
|
1677
|
+
};
|
|
1756
1678
|
};
|
|
1757
1679
|
};
|
|
1758
1680
|
/** @description Identity, D1, authorization, entitlement, or trusted capacity authority is unavailable. */
|
|
@@ -1761,35 +1683,25 @@ interface operations {
|
|
|
1761
1683
|
[name: string]: unknown;
|
|
1762
1684
|
};
|
|
1763
1685
|
content: {
|
|
1764
|
-
"application/json":
|
|
1686
|
+
"application/json": {
|
|
1765
1687
|
error: {
|
|
1766
|
-
code: string;
|
|
1767
|
-
details: Record<string, never>;
|
|
1768
|
-
message: string;
|
|
1769
|
-
requestId: string;
|
|
1770
|
-
};
|
|
1771
|
-
} & {
|
|
1772
|
-
error?: {
|
|
1773
|
-
/** @enum {string} */
|
|
1774
|
-
code?: "identity_authority_unavailable";
|
|
1775
1688
|
/** @enum {string} */
|
|
1776
|
-
|
|
1777
|
-
};
|
|
1778
|
-
}) | ({
|
|
1779
|
-
error: {
|
|
1780
|
-
code: string;
|
|
1689
|
+
code: "identity_authority_unavailable";
|
|
1781
1690
|
details: Record<string, never>;
|
|
1782
|
-
|
|
1691
|
+
/** @enum {string} */
|
|
1692
|
+
message: "Authentication is temporarily unavailable.";
|
|
1783
1693
|
requestId: string;
|
|
1784
1694
|
};
|
|
1785
|
-
}
|
|
1786
|
-
error
|
|
1695
|
+
} | {
|
|
1696
|
+
error: {
|
|
1787
1697
|
/** @enum {string} */
|
|
1788
|
-
code
|
|
1698
|
+
code: "service_unavailable";
|
|
1699
|
+
details: Record<string, never>;
|
|
1789
1700
|
/** @enum {string} */
|
|
1790
|
-
message
|
|
1701
|
+
message: "The service is temporarily unavailable.";
|
|
1702
|
+
requestId: string;
|
|
1791
1703
|
};
|
|
1792
|
-
}
|
|
1704
|
+
};
|
|
1793
1705
|
};
|
|
1794
1706
|
};
|
|
1795
1707
|
};
|
|
@@ -1835,17 +1747,12 @@ interface operations {
|
|
|
1835
1747
|
content: {
|
|
1836
1748
|
"application/json": {
|
|
1837
1749
|
error: {
|
|
1838
|
-
code: string;
|
|
1839
|
-
details: Record<string, never>;
|
|
1840
|
-
message: string;
|
|
1841
|
-
requestId: string;
|
|
1842
|
-
};
|
|
1843
|
-
} & {
|
|
1844
|
-
error?: {
|
|
1845
1750
|
/** @enum {string} */
|
|
1846
|
-
code
|
|
1751
|
+
code: "authentication_required";
|
|
1752
|
+
details: Record<string, never>;
|
|
1847
1753
|
/** @enum {string} */
|
|
1848
|
-
message
|
|
1754
|
+
message: "Authentication is required.";
|
|
1755
|
+
requestId: string;
|
|
1849
1756
|
};
|
|
1850
1757
|
};
|
|
1851
1758
|
};
|
|
@@ -1858,17 +1765,12 @@ interface operations {
|
|
|
1858
1765
|
content: {
|
|
1859
1766
|
"application/json": {
|
|
1860
1767
|
error: {
|
|
1861
|
-
code: string;
|
|
1862
|
-
details: Record<string, never>;
|
|
1863
|
-
message: string;
|
|
1864
|
-
requestId: string;
|
|
1865
|
-
};
|
|
1866
|
-
} & {
|
|
1867
|
-
error?: {
|
|
1868
1768
|
/** @enum {string} */
|
|
1869
|
-
code
|
|
1769
|
+
code: "permission_denied";
|
|
1770
|
+
details: Record<string, never>;
|
|
1870
1771
|
/** @enum {string} */
|
|
1871
|
-
message
|
|
1772
|
+
message: "The requested action is not permitted.";
|
|
1773
|
+
requestId: string;
|
|
1872
1774
|
};
|
|
1873
1775
|
};
|
|
1874
1776
|
};
|
|
@@ -1917,17 +1819,12 @@ interface operations {
|
|
|
1917
1819
|
content: {
|
|
1918
1820
|
"application/json": {
|
|
1919
1821
|
error: {
|
|
1920
|
-
code: string;
|
|
1921
|
-
details: Record<string, never>;
|
|
1922
|
-
message: string;
|
|
1923
|
-
requestId: string;
|
|
1924
|
-
};
|
|
1925
|
-
} & {
|
|
1926
|
-
error?: {
|
|
1927
1822
|
/** @enum {string} */
|
|
1928
|
-
code
|
|
1823
|
+
code: "invalid_request";
|
|
1824
|
+
details: Record<string, never>;
|
|
1929
1825
|
/** @enum {string} */
|
|
1930
|
-
message
|
|
1826
|
+
message: "The request is invalid.";
|
|
1827
|
+
requestId: string;
|
|
1931
1828
|
};
|
|
1932
1829
|
};
|
|
1933
1830
|
};
|
|
@@ -1938,35 +1835,25 @@ interface operations {
|
|
|
1938
1835
|
[name: string]: unknown;
|
|
1939
1836
|
};
|
|
1940
1837
|
content: {
|
|
1941
|
-
"application/json":
|
|
1838
|
+
"application/json": {
|
|
1942
1839
|
error: {
|
|
1943
|
-
code: string;
|
|
1944
|
-
details: Record<string, never>;
|
|
1945
|
-
message: string;
|
|
1946
|
-
requestId: string;
|
|
1947
|
-
};
|
|
1948
|
-
} & {
|
|
1949
|
-
error?: {
|
|
1950
1840
|
/** @enum {string} */
|
|
1951
|
-
code
|
|
1952
|
-
/** @enum {string} */
|
|
1953
|
-
message?: "Authentication is temporarily unavailable.";
|
|
1954
|
-
};
|
|
1955
|
-
}) | ({
|
|
1956
|
-
error: {
|
|
1957
|
-
code: string;
|
|
1841
|
+
code: "identity_authority_unavailable";
|
|
1958
1842
|
details: Record<string, never>;
|
|
1959
|
-
|
|
1843
|
+
/** @enum {string} */
|
|
1844
|
+
message: "Authentication is temporarily unavailable.";
|
|
1960
1845
|
requestId: string;
|
|
1961
1846
|
};
|
|
1962
|
-
}
|
|
1963
|
-
error
|
|
1847
|
+
} | {
|
|
1848
|
+
error: {
|
|
1964
1849
|
/** @enum {string} */
|
|
1965
|
-
code
|
|
1850
|
+
code: "service_unavailable";
|
|
1851
|
+
details: Record<string, never>;
|
|
1966
1852
|
/** @enum {string} */
|
|
1967
|
-
message
|
|
1853
|
+
message: "The service is temporarily unavailable.";
|
|
1854
|
+
requestId: string;
|
|
1968
1855
|
};
|
|
1969
|
-
}
|
|
1856
|
+
};
|
|
1970
1857
|
};
|
|
1971
1858
|
};
|
|
1972
1859
|
};
|
|
@@ -1999,6 +1886,10 @@ type CreateUploadPath = operations["createUpload"]["parameters"]["path"];
|
|
|
1999
1886
|
type CreateUploadHeaders = operations["createUpload"]["parameters"]["header"];
|
|
2000
1887
|
type CreateUploadBody = JsonRequest<"createUpload">;
|
|
2001
1888
|
type AbortUploadPath = operations["abortUpload"]["parameters"]["path"];
|
|
1889
|
+
type GeneratedCurrentWorkspace = JsonResponse<"getCurrentWorkspace", 200>;
|
|
1890
|
+
type CurrentWorkspace = Readonly<Omit<GeneratedCurrentWorkspace, "workspaceReference"> & {
|
|
1891
|
+
readonly workspaceReference: Readonly<GeneratedCurrentWorkspace["workspaceReference"]>;
|
|
1892
|
+
}>;
|
|
2002
1893
|
type FolderItem = Readonly<JsonResponse<"createFolder", 201>>;
|
|
2003
1894
|
type ReservedUploadQuota = Readonly<JsonResponse<"createUpload", 201>>;
|
|
2004
1895
|
type AbortedUploadQuota = Readonly<JsonResponse<"abortUpload", 200>>;
|
|
@@ -2086,7 +1977,11 @@ type CreateUploadInput = Readonly<CreateUploadPath> & Readonly<CreateUploadBody>
|
|
|
2086
1977
|
type AbortUploadInput = Readonly<AbortUploadPath> & {
|
|
2087
1978
|
readonly signal?: AbortSignal;
|
|
2088
1979
|
};
|
|
1980
|
+
interface GetCurrentWorkspaceInput {
|
|
1981
|
+
readonly signal?: AbortSignal;
|
|
1982
|
+
}
|
|
2089
1983
|
interface DriveClient {
|
|
1984
|
+
getCurrentWorkspace(input?: GetCurrentWorkspaceInput): Promise<DriveOperationResult<CurrentWorkspace, 200>>;
|
|
2090
1985
|
listFolderChildren(input: ListFolderChildrenInput): Promise<DriveOperationResult<FolderPage, 200>>;
|
|
2091
1986
|
createFolder(input: CreateFolderInput): Promise<DriveOperationResult<FolderItem, 200 | 201>>;
|
|
2092
1987
|
listItemPermissions(input: ListItemPermissionsInput): Promise<DriveOperationResult<PermissionPage, 200>>;
|
|
@@ -2098,4 +1993,4 @@ interface DriveClient {
|
|
|
2098
1993
|
abortUpload(input: AbortUploadInput): Promise<DriveOperationResult<AbortedUploadQuota, 200>>;
|
|
2099
1994
|
}
|
|
2100
1995
|
//#endregion
|
|
2101
|
-
export {
|
|
1996
|
+
export { UploadQuotaReservation as A, PermissionGrantee as C, ReservedUploadQuota as D, ReadEffectiveItemPermissionsInput as E, RevokeItemPermissionInput as O, PermissionGrant as S, PermissionPage as T, FolderPage as _, CreateUploadInput as a, ListItemPermissionsInput as b, DriveClientConfig as c, DriveOperationResult as d, DriveResponseValidators as f, FolderItem as g, EffectivePermissionResponse as h, CreateItemPermissionInput as i, UpdateItemPermissionInput as k, DriveCredentialContext as l, EffectivePermissionAction as m, AbortedUploadQuota as n, CurrentWorkspace as o, DriveServerClientConfig as p, CreateFolderInput as r, DriveClient as s, AbortUploadInput as t, DriveCredentialProvider as u, GetCurrentWorkspaceInput as v, PermissionMutation as w, PermissionAction as x, ListFolderChildrenInput as y };
|