@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/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,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<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 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: typeof Schema.String;
160
- expiresInSec: typeof Schema.Number;
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: typeof Schema.String;
165
- contentType: typeof Schema.String;
166
- expiresInSec: Schema.optional<typeof Schema.Number>;
205
+ readonly key: Schema.String;
206
+ readonly contentType: Schema.String;
207
+ readonly expiresInSec: Schema.optional<Schema.Number>;
167
208
  }>, Schema.Struct<{
168
- url: typeof Schema.String;
209
+ readonly url: Schema.String;
169
210
  }>, typeof StorageError>;
170
211
 
171
212
  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>;
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: typeof Schema.String;
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: typeof Schema.String;
221
+ readonly grantId: Schema.String;
181
222
  }>, Schema.Struct<{
182
- ok: typeof Schema.Boolean;
223
+ readonly ok: Schema.Boolean;
183
224
  }>, typeof StorageError>;
184
225
 
185
226
  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>;
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: typeof Schema.String;
233
+ readonly grantId: Schema.String;
193
234
  }>, typeof StorageError>;
194
235
 
195
236
  export declare const signMultipartPartDescriptor: ActionProcedureDescriptor<"storage.signMultipartPart", Schema.Struct<{
196
- multipartToken: typeof Schema.String;
197
- partNumber: typeof Schema.Number;
237
+ readonly multipartToken: Schema.String;
238
+ readonly partNumber: Schema.Number;
198
239
  }>, Schema.Struct<{
199
- url: typeof Schema.String;
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.TaggedErrorClass<StorageAccessDenied, "StorageAccessDenied", {
211
- readonly _tag: Schema.tag<"StorageAccessDenied">;
212
- } & {
213
- refId: typeof Schema.String;
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.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
- }>;
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.TaggedErrorClass<StorageRejected, "StorageRejected", {
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: typeof Schema.String;
244
- detail: typeof Schema.String;
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.TaggedErrorClass<StorageScanRejected, "StorageScanRejected", {
256
- readonly _tag: Schema.tag<"StorageScanRejected">;
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: 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>;
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: typeof Schema.String;
269
- url: typeof Schema.String;
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 { }