@voltro/plugin-storage 0.84.0 → 0.86.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/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: typeof Schema.String;
9
+ readonly multipartToken: Schema.String;
9
10
  }>, Schema.Struct<{
10
- ok: typeof Schema.Boolean;
11
+ readonly ok: Schema.Boolean;
11
12
  }>, typeof StorageError>;
12
13
 
13
14
  export declare const beginMultipartUploadDescriptor: ActionProcedureDescriptor<"storage.beginMultipartUpload", Schema.Struct<{
14
- contentType: typeof Schema.String;
15
- size: typeof Schema.Number;
16
- visibility: Schema.optional<Schema.Literal<["public", "private"]>>;
17
- folder: Schema.optional<typeof Schema.String>;
18
- tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
19
- alt: Schema.optional<typeof Schema.String>;
20
- caption: Schema.optional<typeof Schema.String>;
21
- partSize: Schema.optional<typeof Schema.Number>;
22
- expiresInSec: Schema.optional<typeof Schema.Number>;
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: typeof Schema.String;
25
- partSize: typeof Schema.Number;
26
- expiresInSec: typeof Schema.Number;
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: typeof Schema.String;
31
- size: typeof Schema.Number;
32
- visibility: Schema.optional<Schema.Literal<["public", "private"]>>;
33
- folder: Schema.optional<typeof Schema.String>;
34
- tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
35
- alt: Schema.optional<typeof Schema.String>;
36
- caption: Schema.optional<typeof Schema.String>;
37
- chunkSize: Schema.optional<typeof Schema.Number>;
38
- expiresInSec: Schema.optional<typeof Schema.Number>;
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: typeof Schema.String;
41
- resumableToken: typeof Schema.String;
42
- uploadUrl: typeof Schema.String;
43
- chunkSize: typeof Schema.Number;
44
- expiresInSec: typeof Schema.Number;
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: typeof Schema.String;
49
- parts: Schema.Array$<Schema.Struct<{
50
- partNumber: typeof Schema.Number;
51
- etag: typeof Schema.String;
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: typeof Schema.String;
55
- url: typeof Schema.String;
56
- size: typeof Schema.Number;
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: typeof Schema.String;
81
+ readonly finalizeToken: Schema.String;
61
82
  }>, Schema.Struct<{
62
- id: typeof Schema.String;
63
- url: typeof Schema.String;
64
- contentType: typeof Schema.String;
65
- size: typeof Schema.Number;
66
- width: Schema.optional<typeof Schema.Number>;
67
- height: Schema.optional<typeof Schema.Number>;
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: typeof Schema.String;
72
- visibility: Schema.optional<Schema.Literal<["public", "private"]>>;
73
- folder: Schema.optional<typeof Schema.String>;
74
- tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
75
- alt: Schema.optional<typeof Schema.String>;
76
- caption: Schema.optional<typeof Schema.String>;
77
- key: Schema.optional<typeof Schema.String>;
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: typeof Schema.String;
80
- url: typeof Schema.String;
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: typeof Schema.String;
105
+ readonly refId: Schema.String;
85
106
  }>, Schema.Struct<{
86
- grants: Schema.Array$<Schema.Struct<{
87
- id: typeof Schema.String;
88
- refId: typeof Schema.String;
89
- principalType: Schema.Literal<["user", "group", "apiKey"]>;
90
- principalId: typeof Schema.String;
91
- permission: Schema.Literal<["read", "write"]>;
92
- createdAt: typeof Schema.String;
93
- expiresAt: Schema.NullOr<typeof Schema.String>;
94
- createdBy: Schema.NullOr<typeof Schema.String>;
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,126 @@ 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<typeof Schema.String>;
103
- tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
104
- ownerId: Schema.optional<typeof Schema.String>;
105
- includeDerived: Schema.optional<typeof Schema.Boolean>;
106
- limit: Schema.optional<typeof Schema.Number>;
107
- offset: Schema.optional<typeof Schema.Number>;
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.Array$<Schema.Struct<{
110
- id: typeof Schema.String;
111
- tenantId: Schema.NullOr<typeof Schema.String>;
112
- ownerId: Schema.NullOr<typeof Schema.String>;
113
- bucket: typeof Schema.String;
114
- key: typeof Schema.String;
115
- contentType: typeof Schema.String;
116
- size: typeof Schema.Number;
117
- checksum: typeof Schema.String;
118
- visibility: Schema.Literal<["public", "private"]>;
119
- hasPassword: typeof Schema.Boolean;
120
- createdAt: typeof Schema.String;
121
- width: Schema.NullOr<typeof Schema.Number>;
122
- height: Schema.NullOr<typeof Schema.Number>;
123
- duration: Schema.NullOr<typeof Schema.Number>;
124
- placeholder: Schema.NullOr<typeof Schema.String>;
125
- folder: Schema.NullOr<typeof Schema.String>;
126
- tags: Schema.NullOr<Schema.Array$<typeof Schema.String>>;
127
- alt: Schema.NullOr<typeof Schema.String>;
128
- caption: Schema.NullOr<typeof Schema.String>;
129
- derivedFrom: Schema.NullOr<typeof Schema.String>;
130
- kind: Schema.NullOr<typeof Schema.String>;
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<typeof Schema.Number>;
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: typeof Schema.String;
137
- visibility: Schema.optional<Schema.Literal<["public", "private"]>>;
138
- folder: Schema.optional<typeof Schema.String>;
139
- tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
140
- alt: Schema.optional<typeof Schema.String>;
141
- caption: Schema.optional<typeof Schema.String>;
142
- expiresInSec: Schema.optional<typeof Schema.Number>;
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: typeof Schema.String;
145
- finalizeToken: typeof Schema.String;
146
- expiresInSec: typeof Schema.Number;
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: typeof Schema.String;
151
- visibility: Schema.optional<Schema.Literal<["public", "private"]>>;
152
- key: Schema.optional<typeof Schema.String>;
153
- folder: Schema.optional<typeof Schema.String>;
154
- tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
155
- alt: Schema.optional<typeof Schema.String>;
156
- caption: Schema.optional<typeof Schema.String>;
157
- expiresInSec: Schema.optional<typeof Schema.Number>;
181
+ readonly operationId: Schema.optional<Schema.String>;
182
+ readonly contentType: Schema.String;
183
+ readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
184
+ readonly access: Schema.optional<Schema.$Array<Schema.Struct<{
185
+ readonly owner: Schema.optional<Schema.Boolean>;
186
+ readonly roles: Schema.optional<Schema.$Array<Schema.String>>;
187
+ readonly groups: Schema.optional<Schema.$Array<Schema.String>>;
188
+ readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
189
+ readonly tenant: Schema.optional<Schema.Boolean>;
190
+ readonly apiKey: Schema.optional<Schema.Boolean>;
191
+ readonly password: Schema.optional<Schema.Boolean>;
192
+ readonly guard: Schema.optional<Schema.String>;
193
+ }>>>;
194
+ readonly key: Schema.optional<Schema.String>;
195
+ readonly folder: Schema.optional<Schema.String>;
196
+ readonly tags: Schema.optional<Schema.$Array<Schema.String>>;
197
+ readonly alt: Schema.optional<Schema.String>;
198
+ readonly caption: Schema.optional<Schema.String>;
199
+ readonly expiresInSec: Schema.optional<Schema.Number>;
158
200
  }>, Schema.Struct<{
159
- uploadUrl: typeof Schema.String;
160
- expiresInSec: typeof Schema.Number;
201
+ readonly uploadUrl: Schema.String;
202
+ readonly expiresInSec: Schema.Number;
203
+ readonly operationId: Schema.optional<Schema.String>;
161
204
  }>, typeof StorageError>;
162
205
 
163
206
  export declare const mintUploadUrlDescriptor: ActionProcedureDescriptor<"storage.mintUploadUrl", Schema.Struct<{
164
- key: typeof Schema.String;
165
- contentType: typeof Schema.String;
166
- expiresInSec: Schema.optional<typeof Schema.Number>;
207
+ readonly key: Schema.String;
208
+ readonly contentType: Schema.String;
209
+ readonly expiresInSec: Schema.optional<Schema.Number>;
167
210
  }>, Schema.Struct<{
168
- url: typeof Schema.String;
211
+ readonly url: Schema.String;
169
212
  }>, typeof StorageError>;
170
213
 
171
214
  export declare const mintUrlDescriptor: ActionProcedureDescriptor<"storage.mintUrl", Schema.Struct<{
172
- id: typeof Schema.String;
173
- password: Schema.optional<typeof Schema.String>;
174
- expiresInSec: Schema.optional<typeof Schema.Number>;
215
+ readonly id: Schema.String;
216
+ readonly password: Schema.optional<Schema.String>;
217
+ readonly expiresInSec: Schema.optional<Schema.Number>;
175
218
  }>, Schema.Struct<{
176
- url: typeof Schema.String;
177
- }>, Schema.Union<[typeof StorageError, typeof StorageAccessDenied]>>;
219
+ readonly url: Schema.String;
220
+ }>, Schema.Union<readonly [typeof StorageError, typeof StorageAccessDenied]>>;
178
221
 
179
222
  export declare const revokeDescriptor: MutationProcedureDescriptor<"storage.revoke", Schema.Struct<{
180
- grantId: typeof Schema.String;
223
+ readonly grantId: Schema.String;
181
224
  }>, Schema.Struct<{
182
- ok: typeof Schema.Boolean;
225
+ readonly ok: Schema.Boolean;
183
226
  }>, typeof StorageError>;
184
227
 
185
228
  export declare const shareDescriptor: MutationProcedureDescriptor<"storage.share", Schema.Struct<{
186
- refId: typeof Schema.String;
187
- principalType: Schema.Literal<["user", "group", "apiKey"]>;
188
- principalId: typeof Schema.String;
189
- permission: Schema.optional<Schema.Literal<["read", "write"]>>;
190
- expiresInDays: Schema.optional<typeof Schema.Number>;
229
+ readonly refId: Schema.String;
230
+ readonly principalType: Schema.Literals<readonly ["user", "group", "apiKey"]>;
231
+ readonly principalId: Schema.String;
232
+ readonly permission: Schema.optional<Schema.Literals<readonly ["read", "write"]>>;
233
+ readonly expiresInDays: Schema.optional<Schema.Number>;
191
234
  }>, Schema.Struct<{
192
- grantId: typeof Schema.String;
235
+ readonly grantId: Schema.String;
193
236
  }>, typeof StorageError>;
194
237
 
195
238
  export declare const signMultipartPartDescriptor: ActionProcedureDescriptor<"storage.signMultipartPart", Schema.Struct<{
196
- multipartToken: typeof Schema.String;
197
- partNumber: typeof Schema.Number;
239
+ readonly multipartToken: Schema.String;
240
+ readonly partNumber: Schema.Number;
198
241
  }>, Schema.Struct<{
199
- url: typeof Schema.String;
242
+ readonly url: Schema.String;
200
243
  }>, typeof StorageError>;
201
244
 
202
245
  /**
@@ -207,12 +250,10 @@ export declare const signMultipartPartDescriptor: ActionProcedureDescriptor<"sto
207
250
  declare class StorageAccessDenied extends StorageAccessDenied_base {
208
251
  }
209
252
 
210
- declare const StorageAccessDenied_base: Schema.TaggedErrorClass<StorageAccessDenied, "StorageAccessDenied", {
211
- readonly _tag: Schema.tag<"StorageAccessDenied">;
212
- } & {
213
- refId: typeof Schema.String;
214
- reason: typeof Schema.String;
215
- }>;
253
+ declare const StorageAccessDenied_base: Schema.Class<StorageAccessDenied, Schema.TaggedStruct<"StorageAccessDenied", {
254
+ readonly refId: Schema.String;
255
+ readonly reason: Schema.String;
256
+ }>, YieldableError>;
216
257
 
217
258
  /**
218
259
  * Storage failure. `transient` drives retry — `true` for 429 / 5xx /
@@ -222,27 +263,24 @@ declare const StorageAccessDenied_base: Schema.TaggedErrorClass<StorageAccessDen
222
263
  declare class StorageError extends StorageError_base {
223
264
  }
224
265
 
225
- declare const StorageError_base: Schema.TaggedErrorClass<StorageError, "StorageError", {
226
- readonly _tag: Schema.tag<"StorageError">;
227
- } & {
228
- provider: typeof Schema.String;
229
- message: typeof Schema.String;
230
- transient: typeof Schema.Boolean;
231
- status: Schema.optional<typeof Schema.Number>;
232
- }>;
266
+ declare const StorageError_base: Schema.Class<StorageError, Schema.TaggedStruct<"StorageError", {
267
+ readonly provider: Schema.String;
268
+ readonly message: Schema.String;
269
+ readonly transient: Schema.Boolean;
270
+ readonly status: Schema.optional<Schema.Number>;
271
+ }>, YieldableError>;
233
272
 
234
273
  /** An upload was rejected by a constraint (size / content-type / magic-byte
235
274
  * mismatch). `reason` is a stable code; `detail` is human-readable. */
236
275
  declare class StorageRejected extends StorageRejected_base {
276
+ get message(): string;
237
277
  }
238
278
 
239
- declare const StorageRejected_base: Schema.TaggedErrorClass<StorageRejected, "StorageRejected", {
240
- readonly _tag: Schema.tag<"StorageRejected">;
241
- } & {
279
+ declare const StorageRejected_base: Schema.Class<StorageRejected, Schema.TaggedStruct<"StorageRejected", {
242
280
  /** `'too-large' | 'content-type-not-allowed' | 'content-mismatch'` */
243
- reason: typeof Schema.String;
244
- detail: typeof Schema.String;
245
- }>;
281
+ readonly reason: Schema.String;
282
+ readonly detail: Schema.String;
283
+ }>, YieldableError>;
246
284
 
247
285
  /** Declared for the codegen (`VoltroPlugin.rpcClientDescriptors`) so each tag is
248
286
  * emitted into the generated client group. Kept in lockstep with the exports. */
@@ -252,21 +290,29 @@ export declare const storageRpcClientImports: ReadonlyArray<PluginRpcClientDescr
252
290
  declare class StorageScanRejected extends StorageScanRejected_base {
253
291
  }
254
292
 
255
- declare const StorageScanRejected_base: Schema.TaggedErrorClass<StorageScanRejected, "StorageScanRejected", {
256
- readonly _tag: Schema.tag<"StorageScanRejected">;
257
- } & {
258
- threat: typeof Schema.String;
259
- }>;
293
+ declare const StorageScanRejected_base: Schema.Class<StorageScanRejected, Schema.TaggedStruct<"StorageScanRejected", {
294
+ readonly threat: Schema.String;
295
+ }>, YieldableError>;
260
296
 
261
297
  export declare const uploadDescriptor: ActionProcedureDescriptor<"storage.upload", Schema.Struct<{
262
- bytesBase64: typeof Schema.String;
263
- contentType: typeof Schema.String;
264
- visibility: Schema.optional<Schema.Literal<["public", "private"]>>;
265
- key: Schema.optional<typeof Schema.String>;
266
- password: Schema.optional<typeof Schema.String>;
298
+ readonly bytesBase64: Schema.String;
299
+ readonly contentType: Schema.String;
300
+ readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
301
+ readonly access: Schema.optional<Schema.$Array<Schema.Struct<{
302
+ readonly owner: Schema.optional<Schema.Boolean>;
303
+ readonly roles: Schema.optional<Schema.$Array<Schema.String>>;
304
+ readonly groups: Schema.optional<Schema.$Array<Schema.String>>;
305
+ readonly scopes: Schema.optional<Schema.$Array<Schema.String>>;
306
+ readonly tenant: Schema.optional<Schema.Boolean>;
307
+ readonly apiKey: Schema.optional<Schema.Boolean>;
308
+ readonly password: Schema.optional<Schema.Boolean>;
309
+ readonly guard: Schema.optional<Schema.String>;
310
+ }>>>;
311
+ readonly key: Schema.optional<Schema.String>;
312
+ readonly password: Schema.optional<Schema.String>;
267
313
  }>, Schema.Struct<{
268
- id: typeof Schema.String;
269
- url: typeof Schema.String;
270
- }>, Schema.Union<[typeof StorageError, typeof StorageRejected, typeof StorageScanRejected]>>;
314
+ readonly id: Schema.String;
315
+ readonly url: Schema.String;
316
+ }>, Schema.Union<readonly [typeof StorageError, typeof StorageRejected, typeof StorageScanRejected]>>;
271
317
 
272
318
  export { }