@voltro/plugin-storage 0.84.0 → 0.85.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 +549 -0
- package/THIRD-PARTY-NOTICES.md +87 -333
- package/dist/index.d.ts +84 -58
- package/dist/index.js +985 -833
- package/dist/rpc.d.ts +210 -166
- package/dist/rpc.js +60 -39
- package/dist/types.d.ts +27 -45
- package/dist/types.js +5 -1
- package/package.json +6 -6
package/dist/rpc.d.ts
CHANGED
|
@@ -3,95 +3,116 @@ import { MutationProcedureDescriptor } from '@voltro/protocol';
|
|
|
3
3
|
import { PluginRpcClientDescriptor } from '@voltro/protocol';
|
|
4
4
|
import { QueryProcedureDescriptor } from '@voltro/protocol';
|
|
5
5
|
import { Schema } from 'effect';
|
|
6
|
+
import { YieldableError } from 'effect/Cause';
|
|
6
7
|
|
|
7
8
|
export declare const abortMultipartUploadDescriptor: ActionProcedureDescriptor<"storage.abortMultipartUpload", Schema.Struct<{
|
|
8
|
-
multipartToken:
|
|
9
|
+
readonly multipartToken: Schema.String;
|
|
9
10
|
}>, Schema.Struct<{
|
|
10
|
-
ok:
|
|
11
|
+
readonly ok: Schema.Boolean;
|
|
11
12
|
}>, typeof StorageError>;
|
|
12
13
|
|
|
13
14
|
export declare const beginMultipartUploadDescriptor: ActionProcedureDescriptor<"storage.beginMultipartUpload", Schema.Struct<{
|
|
14
|
-
contentType:
|
|
15
|
-
size:
|
|
16
|
-
visibility: Schema.optional<Schema.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
readonly contentType: Schema.String;
|
|
16
|
+
readonly size: Schema.Number;
|
|
17
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
18
|
+
readonly access: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
19
|
+
readonly owner: Schema.optional<Schema.Boolean>;
|
|
20
|
+
readonly roles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
21
|
+
readonly groups: Schema.optional<Schema.$Array<Schema.String>>;
|
|
22
|
+
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
23
|
+
readonly tenant: Schema.optional<Schema.Boolean>;
|
|
24
|
+
readonly apiKey: Schema.optional<Schema.Boolean>;
|
|
25
|
+
readonly password: Schema.optional<Schema.Boolean>;
|
|
26
|
+
readonly guard: Schema.optional<Schema.String>;
|
|
27
|
+
}>>>;
|
|
28
|
+
readonly folder: Schema.optional<Schema.String>;
|
|
29
|
+
readonly tags: Schema.optional<Schema.$Array<Schema.String>>;
|
|
30
|
+
readonly alt: Schema.optional<Schema.String>;
|
|
31
|
+
readonly caption: Schema.optional<Schema.String>;
|
|
32
|
+
readonly partSize: Schema.optional<Schema.Number>;
|
|
33
|
+
readonly expiresInSec: Schema.optional<Schema.Number>;
|
|
23
34
|
}>, Schema.Struct<{
|
|
24
|
-
multipartToken:
|
|
25
|
-
partSize:
|
|
26
|
-
expiresInSec:
|
|
35
|
+
readonly multipartToken: Schema.String;
|
|
36
|
+
readonly partSize: Schema.Number;
|
|
37
|
+
readonly expiresInSec: Schema.Number;
|
|
27
38
|
}>, typeof StorageError>;
|
|
28
39
|
|
|
29
40
|
export declare const beginResumableUploadDescriptor: ActionProcedureDescriptor<"storage.beginResumableUpload", Schema.Struct<{
|
|
30
|
-
contentType:
|
|
31
|
-
size:
|
|
32
|
-
visibility: Schema.optional<Schema.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
readonly contentType: Schema.String;
|
|
42
|
+
readonly size: Schema.Number;
|
|
43
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
44
|
+
readonly access: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
45
|
+
readonly owner: Schema.optional<Schema.Boolean>;
|
|
46
|
+
readonly roles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
47
|
+
readonly groups: Schema.optional<Schema.$Array<Schema.String>>;
|
|
48
|
+
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
49
|
+
readonly tenant: Schema.optional<Schema.Boolean>;
|
|
50
|
+
readonly apiKey: Schema.optional<Schema.Boolean>;
|
|
51
|
+
readonly password: Schema.optional<Schema.Boolean>;
|
|
52
|
+
readonly guard: Schema.optional<Schema.String>;
|
|
53
|
+
}>>>;
|
|
54
|
+
readonly folder: Schema.optional<Schema.String>;
|
|
55
|
+
readonly tags: Schema.optional<Schema.$Array<Schema.String>>;
|
|
56
|
+
readonly alt: Schema.optional<Schema.String>;
|
|
57
|
+
readonly caption: Schema.optional<Schema.String>;
|
|
58
|
+
readonly chunkSize: Schema.optional<Schema.Number>;
|
|
59
|
+
readonly expiresInSec: Schema.optional<Schema.Number>;
|
|
39
60
|
}>, Schema.Struct<{
|
|
40
|
-
uploadId:
|
|
41
|
-
resumableToken:
|
|
42
|
-
uploadUrl:
|
|
43
|
-
chunkSize:
|
|
44
|
-
expiresInSec:
|
|
61
|
+
readonly uploadId: Schema.String;
|
|
62
|
+
readonly resumableToken: Schema.String;
|
|
63
|
+
readonly uploadUrl: Schema.String;
|
|
64
|
+
readonly chunkSize: Schema.Number;
|
|
65
|
+
readonly expiresInSec: Schema.Number;
|
|
45
66
|
}>, typeof StorageError>;
|
|
46
67
|
|
|
47
68
|
export declare const completeMultipartUploadDescriptor: ActionProcedureDescriptor<"storage.completeMultipartUpload", Schema.Struct<{
|
|
48
|
-
multipartToken:
|
|
49
|
-
parts: Schema
|
|
50
|
-
partNumber:
|
|
51
|
-
etag:
|
|
69
|
+
readonly multipartToken: Schema.String;
|
|
70
|
+
readonly parts: Schema.$Array<Schema.Struct<{
|
|
71
|
+
readonly partNumber: Schema.Number;
|
|
72
|
+
readonly etag: Schema.String;
|
|
52
73
|
}>>;
|
|
53
74
|
}>, Schema.Struct<{
|
|
54
|
-
id:
|
|
55
|
-
url:
|
|
56
|
-
size:
|
|
57
|
-
}>, Schema.Union<[typeof StorageError, typeof StorageRejected]>>;
|
|
75
|
+
readonly id: Schema.String;
|
|
76
|
+
readonly url: Schema.String;
|
|
77
|
+
readonly size: Schema.Number;
|
|
78
|
+
}>, Schema.Union<readonly [typeof StorageError, typeof StorageRejected]>>;
|
|
58
79
|
|
|
59
80
|
export declare const finalizeUploadDescriptor: ActionProcedureDescriptor<"storage.finalizeUpload", Schema.Struct<{
|
|
60
|
-
finalizeToken:
|
|
81
|
+
readonly finalizeToken: Schema.String;
|
|
61
82
|
}>, Schema.Struct<{
|
|
62
|
-
id:
|
|
63
|
-
url:
|
|
64
|
-
contentType:
|
|
65
|
-
size:
|
|
66
|
-
width: Schema.optional<
|
|
67
|
-
height: Schema.optional<
|
|
68
|
-
}>, Schema.Union<[typeof StorageError, typeof StorageRejected, typeof StorageScanRejected]>>;
|
|
83
|
+
readonly id: Schema.String;
|
|
84
|
+
readonly url: Schema.String;
|
|
85
|
+
readonly contentType: Schema.String;
|
|
86
|
+
readonly size: Schema.Number;
|
|
87
|
+
readonly width: Schema.optional<Schema.Number>;
|
|
88
|
+
readonly height: Schema.optional<Schema.Number>;
|
|
89
|
+
}>, Schema.Union<readonly [typeof StorageError, typeof StorageRejected, typeof StorageScanRejected]>>;
|
|
69
90
|
|
|
70
91
|
export declare const ingestUrlDescriptor: ActionProcedureDescriptor<"storage.ingestUrl", Schema.Struct<{
|
|
71
|
-
url:
|
|
72
|
-
visibility: Schema.optional<Schema.
|
|
73
|
-
folder: Schema.optional<
|
|
74
|
-
tags: Schema.optional<Schema
|
|
75
|
-
alt: Schema.optional<
|
|
76
|
-
caption: Schema.optional<
|
|
77
|
-
key: Schema.optional<
|
|
92
|
+
readonly url: Schema.String;
|
|
93
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
94
|
+
readonly folder: Schema.optional<Schema.String>;
|
|
95
|
+
readonly tags: Schema.optional<Schema.$Array<Schema.String>>;
|
|
96
|
+
readonly alt: Schema.optional<Schema.String>;
|
|
97
|
+
readonly caption: Schema.optional<Schema.String>;
|
|
98
|
+
readonly key: Schema.optional<Schema.String>;
|
|
78
99
|
}>, Schema.Struct<{
|
|
79
|
-
id:
|
|
80
|
-
url:
|
|
81
|
-
}>, Schema.Union<[typeof StorageError, typeof StorageRejected, typeof StorageScanRejected]>>;
|
|
100
|
+
readonly id: Schema.String;
|
|
101
|
+
readonly url: Schema.String;
|
|
102
|
+
}>, Schema.Union<readonly [typeof StorageError, typeof StorageRejected, typeof StorageScanRejected]>>;
|
|
82
103
|
|
|
83
104
|
export declare const listGrantsDescriptor: QueryProcedureDescriptor<"storage.listGrants", Schema.Struct<{
|
|
84
|
-
refId:
|
|
105
|
+
readonly refId: Schema.String;
|
|
85
106
|
}>, Schema.Struct<{
|
|
86
|
-
grants: Schema
|
|
87
|
-
id:
|
|
88
|
-
refId:
|
|
89
|
-
principalType: Schema.
|
|
90
|
-
principalId:
|
|
91
|
-
permission: Schema.
|
|
92
|
-
createdAt:
|
|
93
|
-
expiresAt: Schema.NullOr<
|
|
94
|
-
createdBy: Schema.NullOr<
|
|
107
|
+
readonly grants: Schema.$Array<Schema.Struct<{
|
|
108
|
+
readonly id: Schema.String;
|
|
109
|
+
readonly refId: Schema.String;
|
|
110
|
+
readonly principalType: Schema.Literals<readonly ["user", "group", "apiKey"]>;
|
|
111
|
+
readonly principalId: Schema.String;
|
|
112
|
+
readonly permission: Schema.Literals<readonly ["read", "write"]>;
|
|
113
|
+
readonly createdAt: Schema.String;
|
|
114
|
+
readonly expiresAt: Schema.NullOr<Schema.String>;
|
|
115
|
+
readonly createdBy: Schema.NullOr<Schema.String>;
|
|
95
116
|
}>>;
|
|
96
117
|
}>, typeof StorageError>;
|
|
97
118
|
|
|
@@ -99,104 +120,124 @@ export declare const listGrantsDescriptor: QueryProcedureDescriptor<"storage.lis
|
|
|
99
120
|
* The media-library / file-manager read (F6). Tenant is taken from the caller
|
|
100
121
|
* subject server-side — a client can't list another tenant's objects. */
|
|
101
122
|
export declare const listRefsDescriptor: QueryProcedureDescriptor<"storage.listRefs", Schema.Struct<{
|
|
102
|
-
folder: Schema.optional<
|
|
103
|
-
tags: Schema.optional<Schema
|
|
104
|
-
ownerId: Schema.optional<
|
|
105
|
-
includeDerived: Schema.optional<
|
|
106
|
-
limit: Schema.optional<
|
|
107
|
-
offset: Schema.optional<
|
|
123
|
+
readonly folder: Schema.optional<Schema.String>;
|
|
124
|
+
readonly tags: Schema.optional<Schema.$Array<Schema.String>>;
|
|
125
|
+
readonly ownerId: Schema.optional<Schema.String>;
|
|
126
|
+
readonly includeDerived: Schema.optional<Schema.Boolean>;
|
|
127
|
+
readonly limit: Schema.optional<Schema.Number>;
|
|
128
|
+
readonly offset: Schema.optional<Schema.Number>;
|
|
108
129
|
}>, Schema.Struct<{
|
|
109
|
-
refs: Schema
|
|
110
|
-
id:
|
|
111
|
-
tenantId: Schema.NullOr<
|
|
112
|
-
ownerId: Schema.NullOr<
|
|
113
|
-
bucket:
|
|
114
|
-
key:
|
|
115
|
-
contentType:
|
|
116
|
-
size:
|
|
117
|
-
checksum:
|
|
118
|
-
visibility: Schema.
|
|
119
|
-
hasPassword:
|
|
120
|
-
createdAt:
|
|
121
|
-
width: Schema.NullOr<
|
|
122
|
-
height: Schema.NullOr<
|
|
123
|
-
duration: Schema.NullOr<
|
|
124
|
-
placeholder: Schema.NullOr<
|
|
125
|
-
folder: Schema.NullOr<
|
|
126
|
-
tags: Schema.NullOr<Schema
|
|
127
|
-
alt: Schema.NullOr<
|
|
128
|
-
caption: Schema.NullOr<
|
|
129
|
-
derivedFrom: Schema.NullOr<
|
|
130
|
-
kind: Schema.NullOr<
|
|
130
|
+
readonly refs: Schema.$Array<Schema.Struct<{
|
|
131
|
+
readonly id: Schema.String;
|
|
132
|
+
readonly tenantId: Schema.NullOr<Schema.String>;
|
|
133
|
+
readonly ownerId: Schema.NullOr<Schema.String>;
|
|
134
|
+
readonly bucket: Schema.String;
|
|
135
|
+
readonly key: Schema.String;
|
|
136
|
+
readonly contentType: Schema.String;
|
|
137
|
+
readonly size: Schema.Number;
|
|
138
|
+
readonly checksum: Schema.String;
|
|
139
|
+
readonly visibility: Schema.Literals<readonly ["public", "private"]>;
|
|
140
|
+
readonly hasPassword: Schema.Boolean;
|
|
141
|
+
readonly createdAt: Schema.String;
|
|
142
|
+
readonly width: Schema.NullOr<Schema.Number>;
|
|
143
|
+
readonly height: Schema.NullOr<Schema.Number>;
|
|
144
|
+
readonly duration: Schema.NullOr<Schema.Number>;
|
|
145
|
+
readonly placeholder: Schema.NullOr<Schema.String>;
|
|
146
|
+
readonly folder: Schema.NullOr<Schema.String>;
|
|
147
|
+
readonly tags: Schema.NullOr<Schema.$Array<Schema.String>>;
|
|
148
|
+
readonly alt: Schema.NullOr<Schema.String>;
|
|
149
|
+
readonly caption: Schema.NullOr<Schema.String>;
|
|
150
|
+
readonly derivedFrom: Schema.NullOr<Schema.String>;
|
|
151
|
+
readonly kind: Schema.NullOr<Schema.String>;
|
|
131
152
|
}>>;
|
|
132
|
-
nextOffset: Schema.NullOr<
|
|
153
|
+
readonly nextOffset: Schema.NullOr<Schema.Number>;
|
|
133
154
|
}>, typeof StorageError>;
|
|
134
155
|
|
|
135
156
|
export declare const mintPresignedUploadDescriptor: ActionProcedureDescriptor<"storage.mintPresignedUpload", Schema.Struct<{
|
|
136
|
-
contentType:
|
|
137
|
-
visibility: Schema.optional<Schema.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
157
|
+
readonly contentType: Schema.String;
|
|
158
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
159
|
+
readonly access: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
160
|
+
readonly owner: Schema.optional<Schema.Boolean>;
|
|
161
|
+
readonly roles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
162
|
+
readonly groups: Schema.optional<Schema.$Array<Schema.String>>;
|
|
163
|
+
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
164
|
+
readonly tenant: Schema.optional<Schema.Boolean>;
|
|
165
|
+
readonly apiKey: Schema.optional<Schema.Boolean>;
|
|
166
|
+
readonly password: Schema.optional<Schema.Boolean>;
|
|
167
|
+
readonly guard: Schema.optional<Schema.String>;
|
|
168
|
+
}>>>;
|
|
169
|
+
readonly folder: Schema.optional<Schema.String>;
|
|
170
|
+
readonly tags: Schema.optional<Schema.$Array<Schema.String>>;
|
|
171
|
+
readonly alt: Schema.optional<Schema.String>;
|
|
172
|
+
readonly caption: Schema.optional<Schema.String>;
|
|
173
|
+
readonly expiresInSec: Schema.optional<Schema.Number>;
|
|
143
174
|
}>, Schema.Struct<{
|
|
144
|
-
uploadUrl:
|
|
145
|
-
finalizeToken:
|
|
146
|
-
expiresInSec:
|
|
175
|
+
readonly uploadUrl: Schema.String;
|
|
176
|
+
readonly finalizeToken: Schema.String;
|
|
177
|
+
readonly expiresInSec: Schema.Number;
|
|
147
178
|
}>, typeof StorageError>;
|
|
148
179
|
|
|
149
180
|
export declare const mintUploadTicketDescriptor: ActionProcedureDescriptor<"storage.mintUploadTicket", Schema.Struct<{
|
|
150
|
-
contentType:
|
|
151
|
-
visibility: Schema.optional<Schema.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
181
|
+
readonly contentType: Schema.String;
|
|
182
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
183
|
+
readonly access: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
184
|
+
readonly owner: Schema.optional<Schema.Boolean>;
|
|
185
|
+
readonly roles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
186
|
+
readonly groups: Schema.optional<Schema.$Array<Schema.String>>;
|
|
187
|
+
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
188
|
+
readonly tenant: Schema.optional<Schema.Boolean>;
|
|
189
|
+
readonly apiKey: Schema.optional<Schema.Boolean>;
|
|
190
|
+
readonly password: Schema.optional<Schema.Boolean>;
|
|
191
|
+
readonly guard: Schema.optional<Schema.String>;
|
|
192
|
+
}>>>;
|
|
193
|
+
readonly key: Schema.optional<Schema.String>;
|
|
194
|
+
readonly folder: Schema.optional<Schema.String>;
|
|
195
|
+
readonly tags: Schema.optional<Schema.$Array<Schema.String>>;
|
|
196
|
+
readonly alt: Schema.optional<Schema.String>;
|
|
197
|
+
readonly caption: Schema.optional<Schema.String>;
|
|
198
|
+
readonly expiresInSec: Schema.optional<Schema.Number>;
|
|
158
199
|
}>, Schema.Struct<{
|
|
159
|
-
uploadUrl:
|
|
160
|
-
expiresInSec:
|
|
200
|
+
readonly uploadUrl: Schema.String;
|
|
201
|
+
readonly expiresInSec: Schema.Number;
|
|
161
202
|
}>, typeof StorageError>;
|
|
162
203
|
|
|
163
204
|
export declare const mintUploadUrlDescriptor: ActionProcedureDescriptor<"storage.mintUploadUrl", Schema.Struct<{
|
|
164
|
-
key:
|
|
165
|
-
contentType:
|
|
166
|
-
expiresInSec: Schema.optional<
|
|
205
|
+
readonly key: Schema.String;
|
|
206
|
+
readonly contentType: Schema.String;
|
|
207
|
+
readonly expiresInSec: Schema.optional<Schema.Number>;
|
|
167
208
|
}>, Schema.Struct<{
|
|
168
|
-
url:
|
|
209
|
+
readonly url: Schema.String;
|
|
169
210
|
}>, typeof StorageError>;
|
|
170
211
|
|
|
171
212
|
export declare const mintUrlDescriptor: ActionProcedureDescriptor<"storage.mintUrl", Schema.Struct<{
|
|
172
|
-
id:
|
|
173
|
-
password: Schema.optional<
|
|
174
|
-
expiresInSec: Schema.optional<
|
|
213
|
+
readonly id: Schema.String;
|
|
214
|
+
readonly password: Schema.optional<Schema.String>;
|
|
215
|
+
readonly expiresInSec: Schema.optional<Schema.Number>;
|
|
175
216
|
}>, Schema.Struct<{
|
|
176
|
-
url:
|
|
177
|
-
}>, Schema.Union<[typeof StorageError, typeof StorageAccessDenied]>>;
|
|
217
|
+
readonly url: Schema.String;
|
|
218
|
+
}>, Schema.Union<readonly [typeof StorageError, typeof StorageAccessDenied]>>;
|
|
178
219
|
|
|
179
220
|
export declare const revokeDescriptor: MutationProcedureDescriptor<"storage.revoke", Schema.Struct<{
|
|
180
|
-
grantId:
|
|
221
|
+
readonly grantId: Schema.String;
|
|
181
222
|
}>, Schema.Struct<{
|
|
182
|
-
ok:
|
|
223
|
+
readonly ok: Schema.Boolean;
|
|
183
224
|
}>, typeof StorageError>;
|
|
184
225
|
|
|
185
226
|
export declare const shareDescriptor: MutationProcedureDescriptor<"storage.share", Schema.Struct<{
|
|
186
|
-
refId:
|
|
187
|
-
principalType: Schema.
|
|
188
|
-
principalId:
|
|
189
|
-
permission: Schema.optional<Schema.
|
|
190
|
-
expiresInDays: Schema.optional<
|
|
227
|
+
readonly refId: Schema.String;
|
|
228
|
+
readonly principalType: Schema.Literals<readonly ["user", "group", "apiKey"]>;
|
|
229
|
+
readonly principalId: Schema.String;
|
|
230
|
+
readonly permission: Schema.optional<Schema.Literals<readonly ["read", "write"]>>;
|
|
231
|
+
readonly expiresInDays: Schema.optional<Schema.Number>;
|
|
191
232
|
}>, Schema.Struct<{
|
|
192
|
-
grantId:
|
|
233
|
+
readonly grantId: Schema.String;
|
|
193
234
|
}>, typeof StorageError>;
|
|
194
235
|
|
|
195
236
|
export declare const signMultipartPartDescriptor: ActionProcedureDescriptor<"storage.signMultipartPart", Schema.Struct<{
|
|
196
|
-
multipartToken:
|
|
197
|
-
partNumber:
|
|
237
|
+
readonly multipartToken: Schema.String;
|
|
238
|
+
readonly partNumber: Schema.Number;
|
|
198
239
|
}>, Schema.Struct<{
|
|
199
|
-
url:
|
|
240
|
+
readonly url: Schema.String;
|
|
200
241
|
}>, typeof StorageError>;
|
|
201
242
|
|
|
202
243
|
/**
|
|
@@ -207,12 +248,10 @@ export declare const signMultipartPartDescriptor: ActionProcedureDescriptor<"sto
|
|
|
207
248
|
declare class StorageAccessDenied extends StorageAccessDenied_base {
|
|
208
249
|
}
|
|
209
250
|
|
|
210
|
-
declare const StorageAccessDenied_base: Schema.
|
|
211
|
-
readonly
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
reason: typeof Schema.String;
|
|
215
|
-
}>;
|
|
251
|
+
declare const StorageAccessDenied_base: Schema.Class<StorageAccessDenied, Schema.TaggedStruct<"StorageAccessDenied", {
|
|
252
|
+
readonly refId: Schema.String;
|
|
253
|
+
readonly reason: Schema.String;
|
|
254
|
+
}>, YieldableError>;
|
|
216
255
|
|
|
217
256
|
/**
|
|
218
257
|
* Storage failure. `transient` drives retry — `true` for 429 / 5xx /
|
|
@@ -222,27 +261,24 @@ declare const StorageAccessDenied_base: Schema.TaggedErrorClass<StorageAccessDen
|
|
|
222
261
|
declare class StorageError extends StorageError_base {
|
|
223
262
|
}
|
|
224
263
|
|
|
225
|
-
declare const StorageError_base: Schema.
|
|
226
|
-
readonly
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
status: Schema.optional<typeof Schema.Number>;
|
|
232
|
-
}>;
|
|
264
|
+
declare const StorageError_base: Schema.Class<StorageError, Schema.TaggedStruct<"StorageError", {
|
|
265
|
+
readonly provider: Schema.String;
|
|
266
|
+
readonly message: Schema.String;
|
|
267
|
+
readonly transient: Schema.Boolean;
|
|
268
|
+
readonly status: Schema.optional<Schema.Number>;
|
|
269
|
+
}>, YieldableError>;
|
|
233
270
|
|
|
234
271
|
/** An upload was rejected by a constraint (size / content-type / magic-byte
|
|
235
272
|
* mismatch). `reason` is a stable code; `detail` is human-readable. */
|
|
236
273
|
declare class StorageRejected extends StorageRejected_base {
|
|
274
|
+
get message(): string;
|
|
237
275
|
}
|
|
238
276
|
|
|
239
|
-
declare const StorageRejected_base: Schema.
|
|
240
|
-
readonly _tag: Schema.tag<"StorageRejected">;
|
|
241
|
-
} & {
|
|
277
|
+
declare const StorageRejected_base: Schema.Class<StorageRejected, Schema.TaggedStruct<"StorageRejected", {
|
|
242
278
|
/** `'too-large' | 'content-type-not-allowed' | 'content-mismatch'` */
|
|
243
|
-
reason:
|
|
244
|
-
detail:
|
|
245
|
-
}>;
|
|
279
|
+
readonly reason: Schema.String;
|
|
280
|
+
readonly detail: Schema.String;
|
|
281
|
+
}>, YieldableError>;
|
|
246
282
|
|
|
247
283
|
/** Declared for the codegen (`VoltroPlugin.rpcClientDescriptors`) so each tag is
|
|
248
284
|
* emitted into the generated client group. Kept in lockstep with the exports. */
|
|
@@ -252,21 +288,29 @@ export declare const storageRpcClientImports: ReadonlyArray<PluginRpcClientDescr
|
|
|
252
288
|
declare class StorageScanRejected extends StorageScanRejected_base {
|
|
253
289
|
}
|
|
254
290
|
|
|
255
|
-
declare const StorageScanRejected_base: Schema.
|
|
256
|
-
readonly
|
|
257
|
-
}
|
|
258
|
-
threat: typeof Schema.String;
|
|
259
|
-
}>;
|
|
291
|
+
declare const StorageScanRejected_base: Schema.Class<StorageScanRejected, Schema.TaggedStruct<"StorageScanRejected", {
|
|
292
|
+
readonly threat: Schema.String;
|
|
293
|
+
}>, YieldableError>;
|
|
260
294
|
|
|
261
295
|
export declare const uploadDescriptor: ActionProcedureDescriptor<"storage.upload", Schema.Struct<{
|
|
262
|
-
bytesBase64:
|
|
263
|
-
contentType:
|
|
264
|
-
visibility: Schema.optional<Schema.
|
|
265
|
-
|
|
266
|
-
|
|
296
|
+
readonly bytesBase64: Schema.String;
|
|
297
|
+
readonly contentType: Schema.String;
|
|
298
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
299
|
+
readonly access: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
300
|
+
readonly owner: Schema.optional<Schema.Boolean>;
|
|
301
|
+
readonly roles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
302
|
+
readonly groups: Schema.optional<Schema.$Array<Schema.String>>;
|
|
303
|
+
readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
304
|
+
readonly tenant: Schema.optional<Schema.Boolean>;
|
|
305
|
+
readonly apiKey: Schema.optional<Schema.Boolean>;
|
|
306
|
+
readonly password: Schema.optional<Schema.Boolean>;
|
|
307
|
+
readonly guard: Schema.optional<Schema.String>;
|
|
308
|
+
}>>>;
|
|
309
|
+
readonly key: Schema.optional<Schema.String>;
|
|
310
|
+
readonly password: Schema.optional<Schema.String>;
|
|
267
311
|
}>, Schema.Struct<{
|
|
268
|
-
id:
|
|
269
|
-
url:
|
|
270
|
-
}>, Schema.Union<[typeof StorageError, typeof StorageRejected, typeof StorageScanRejected]>>;
|
|
312
|
+
readonly id: Schema.String;
|
|
313
|
+
readonly url: Schema.String;
|
|
314
|
+
}>, Schema.Union<readonly [typeof StorageError, typeof StorageRejected, typeof StorageScanRejected]>>;
|
|
271
315
|
|
|
272
316
|
export { }
|