@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/CHANGELOG.md +1215 -0
- package/README.md +50 -0
- package/THIRD-PARTY-NOTICES.md +91 -365
- package/dist/access.js +47 -0
- package/dist/assetRef.js +13 -0
- package/dist/avatar.js +39 -0
- package/dist/constraints.js +93 -0
- package/dist/derivatives.js +30 -0
- package/dist/env.js +156 -0
- package/dist/grant.js +112 -0
- package/dist/index.d.ts +175 -65
- package/dist/index.js +620 -3072
- package/dist/ingest.js +81 -0
- package/dist/ingestPolicy.js +1 -0
- package/dist/metadataError.js +19 -0
- package/dist/objectLifecycle.js +209 -0
- package/dist/objectMetadata.js +150 -0
- package/dist/objectWriter.js +58 -0
- package/dist/pathDurability.js +16 -0
- package/dist/providers.js +493 -0
- package/dist/referenceCatalogue.js +31 -0
- package/dist/rpc.d.ts +212 -166
- package/dist/rpc.js +63 -40
- package/dist/scanners.js +46 -0
- package/dist/service.js +1084 -0
- package/dist/storageNamespaces.js +56 -0
- package/dist/storageNumbers.js +13 -0
- package/dist/storageObjectNamespaces.js +194 -0
- package/dist/storageReferenceInstances.js +52 -0
- package/dist/streamBridge.js +30 -0
- package/dist/table.js +53 -0
- package/dist/transcodeVideo.js +53 -0
- package/dist/transform.js +90 -0
- package/dist/transformCache.js +31 -0
- package/dist/types.d.ts +31 -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,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<
|
|
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
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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:
|
|
160
|
-
expiresInSec:
|
|
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:
|
|
165
|
-
contentType:
|
|
166
|
-
expiresInSec: Schema.optional<
|
|
207
|
+
readonly key: Schema.String;
|
|
208
|
+
readonly contentType: Schema.String;
|
|
209
|
+
readonly expiresInSec: Schema.optional<Schema.Number>;
|
|
167
210
|
}>, Schema.Struct<{
|
|
168
|
-
url:
|
|
211
|
+
readonly url: Schema.String;
|
|
169
212
|
}>, typeof StorageError>;
|
|
170
213
|
|
|
171
214
|
export declare const mintUrlDescriptor: ActionProcedureDescriptor<"storage.mintUrl", Schema.Struct<{
|
|
172
|
-
id:
|
|
173
|
-
password: Schema.optional<
|
|
174
|
-
expiresInSec: Schema.optional<
|
|
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:
|
|
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:
|
|
223
|
+
readonly grantId: Schema.String;
|
|
181
224
|
}>, Schema.Struct<{
|
|
182
|
-
ok:
|
|
225
|
+
readonly ok: Schema.Boolean;
|
|
183
226
|
}>, typeof StorageError>;
|
|
184
227
|
|
|
185
228
|
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<
|
|
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:
|
|
235
|
+
readonly grantId: Schema.String;
|
|
193
236
|
}>, typeof StorageError>;
|
|
194
237
|
|
|
195
238
|
export declare const signMultipartPartDescriptor: ActionProcedureDescriptor<"storage.signMultipartPart", Schema.Struct<{
|
|
196
|
-
multipartToken:
|
|
197
|
-
partNumber:
|
|
239
|
+
readonly multipartToken: Schema.String;
|
|
240
|
+
readonly partNumber: Schema.Number;
|
|
198
241
|
}>, Schema.Struct<{
|
|
199
|
-
url:
|
|
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.
|
|
211
|
-
readonly
|
|
212
|
-
|
|
213
|
-
|
|
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.
|
|
226
|
-
readonly
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
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.
|
|
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:
|
|
244
|
-
detail:
|
|
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.
|
|
256
|
-
readonly
|
|
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:
|
|
263
|
-
contentType:
|
|
264
|
-
visibility: Schema.optional<Schema.
|
|
265
|
-
|
|
266
|
-
|
|
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:
|
|
269
|
-
url:
|
|
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 { }
|