protobuf-platform 1.2.322 → 1.2.323
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/config/config.proto +53 -0
- package/config/config_grpc_pb.js +100 -0
- package/config/config_pb.js +1974 -0
- package/package.json +1 -1
package/config/config.proto
CHANGED
|
@@ -27,6 +27,10 @@ service Config {
|
|
|
27
27
|
//File Uploads: R2
|
|
28
28
|
rpc uploadR2File(R2FileRequest) returns (R2FileResponse);
|
|
29
29
|
rpc getR2FilesList(R2FileListRequest) returns (R2FileListResponse);
|
|
30
|
+
//Private R2 (KYC): presigned upload, HEAD verify, and signed download URL.
|
|
31
|
+
rpc preparePrivateR2Upload(PreparePrivateR2UploadRequest) returns (PreparePrivateR2UploadResponse);
|
|
32
|
+
rpc verifyPrivateR2Object(VerifyPrivateR2ObjectRequest) returns (VerifyPrivateR2ObjectResponse);
|
|
33
|
+
rpc getPrivateR2DownloadUrl(GetPrivateR2DownloadUrlRequest) returns (GetPrivateR2DownloadUrlResponse);
|
|
30
34
|
//Cloud Flare
|
|
31
35
|
rpc getZonesList(GetZoneRequest) returns (ZonesResponse);
|
|
32
36
|
rpc getZone(GetZoneRequest) returns (ZoneItemResponse);
|
|
@@ -187,6 +191,55 @@ message R2FileListRequest {
|
|
|
187
191
|
message R2FileListResponse {
|
|
188
192
|
repeated string filename = 1;
|
|
189
193
|
}
|
|
194
|
+
// Private R2 object lifecycle contracts.
|
|
195
|
+
message PreparePrivateR2UploadRequest {
|
|
196
|
+
string environment = 1;
|
|
197
|
+
string customer = 2;
|
|
198
|
+
string scope = 3;
|
|
199
|
+
int32 owner_id = 4;
|
|
200
|
+
string file_name = 5;
|
|
201
|
+
string mime_type = 6;
|
|
202
|
+
int64 file_size = 7;
|
|
203
|
+
optional string document_type = 8;
|
|
204
|
+
optional string document_side = 9;
|
|
205
|
+
}
|
|
206
|
+
message PreparePrivateR2UploadResponse {
|
|
207
|
+
string storage_provider = 1;
|
|
208
|
+
string storage_ref = 2;
|
|
209
|
+
string upload_url = 3;
|
|
210
|
+
string method = 4;
|
|
211
|
+
int32 expires_in_seconds = 5;
|
|
212
|
+
optional string expires_at = 6;
|
|
213
|
+
}
|
|
214
|
+
message VerifyPrivateR2ObjectRequest {
|
|
215
|
+
string environment = 1;
|
|
216
|
+
string customer = 2;
|
|
217
|
+
string storage_provider = 3;
|
|
218
|
+
string storage_ref = 4;
|
|
219
|
+
string expected_mime_type = 5;
|
|
220
|
+
int64 expected_file_size = 6;
|
|
221
|
+
}
|
|
222
|
+
message VerifyPrivateR2ObjectResponse {
|
|
223
|
+
bool exists = 1;
|
|
224
|
+
string storage_provider = 2;
|
|
225
|
+
string storage_ref = 3;
|
|
226
|
+
optional string mime_type = 4;
|
|
227
|
+
optional int64 file_size = 5;
|
|
228
|
+
optional string etag = 6;
|
|
229
|
+
}
|
|
230
|
+
message GetPrivateR2DownloadUrlRequest {
|
|
231
|
+
string environment = 1;
|
|
232
|
+
string customer = 2;
|
|
233
|
+
string storage_provider = 3;
|
|
234
|
+
string storage_ref = 4;
|
|
235
|
+
optional string file_name = 5;
|
|
236
|
+
optional string disposition = 6;
|
|
237
|
+
}
|
|
238
|
+
message GetPrivateR2DownloadUrlResponse {
|
|
239
|
+
string url = 1;
|
|
240
|
+
int32 expires_in_seconds = 2;
|
|
241
|
+
optional string expires_at = 3;
|
|
242
|
+
}
|
|
190
243
|
//Cloud Flare
|
|
191
244
|
message GetZoneRequest {
|
|
192
245
|
optional string domain = 1;
|
package/config/config_grpc_pb.js
CHANGED
|
@@ -158,6 +158,28 @@ function deserialize_config_GeneratedTextResponse(buffer_arg) {
|
|
|
158
158
|
return config_pb.GeneratedTextResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
function serialize_config_GetPrivateR2DownloadUrlRequest(arg) {
|
|
162
|
+
if (!(arg instanceof config_pb.GetPrivateR2DownloadUrlRequest)) {
|
|
163
|
+
throw new Error('Expected argument of type config.GetPrivateR2DownloadUrlRequest');
|
|
164
|
+
}
|
|
165
|
+
return Buffer.from(arg.serializeBinary());
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function deserialize_config_GetPrivateR2DownloadUrlRequest(buffer_arg) {
|
|
169
|
+
return config_pb.GetPrivateR2DownloadUrlRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function serialize_config_GetPrivateR2DownloadUrlResponse(arg) {
|
|
173
|
+
if (!(arg instanceof config_pb.GetPrivateR2DownloadUrlResponse)) {
|
|
174
|
+
throw new Error('Expected argument of type config.GetPrivateR2DownloadUrlResponse');
|
|
175
|
+
}
|
|
176
|
+
return Buffer.from(arg.serializeBinary());
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function deserialize_config_GetPrivateR2DownloadUrlResponse(buffer_arg) {
|
|
180
|
+
return config_pb.GetPrivateR2DownloadUrlResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
181
|
+
}
|
|
182
|
+
|
|
161
183
|
function serialize_config_GetZoneRequest(arg) {
|
|
162
184
|
if (!(arg instanceof config_pb.GetZoneRequest)) {
|
|
163
185
|
throw new Error('Expected argument of type config.GetZoneRequest');
|
|
@@ -279,6 +301,28 @@ function deserialize_config_PongResponse(buffer_arg) {
|
|
|
279
301
|
return config_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
280
302
|
}
|
|
281
303
|
|
|
304
|
+
function serialize_config_PreparePrivateR2UploadRequest(arg) {
|
|
305
|
+
if (!(arg instanceof config_pb.PreparePrivateR2UploadRequest)) {
|
|
306
|
+
throw new Error('Expected argument of type config.PreparePrivateR2UploadRequest');
|
|
307
|
+
}
|
|
308
|
+
return Buffer.from(arg.serializeBinary());
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
function deserialize_config_PreparePrivateR2UploadRequest(buffer_arg) {
|
|
312
|
+
return config_pb.PreparePrivateR2UploadRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
function serialize_config_PreparePrivateR2UploadResponse(arg) {
|
|
316
|
+
if (!(arg instanceof config_pb.PreparePrivateR2UploadResponse)) {
|
|
317
|
+
throw new Error('Expected argument of type config.PreparePrivateR2UploadResponse');
|
|
318
|
+
}
|
|
319
|
+
return Buffer.from(arg.serializeBinary());
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
function deserialize_config_PreparePrivateR2UploadResponse(buffer_arg) {
|
|
323
|
+
return config_pb.PreparePrivateR2UploadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
324
|
+
}
|
|
325
|
+
|
|
282
326
|
function serialize_config_PromptRequest(arg) {
|
|
283
327
|
if (!(arg instanceof config_pb.PromptRequest)) {
|
|
284
328
|
throw new Error('Expected argument of type config.PromptRequest');
|
|
@@ -356,6 +400,28 @@ function deserialize_config_SettingsResponse(buffer_arg) {
|
|
|
356
400
|
return config_pb.SettingsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
357
401
|
}
|
|
358
402
|
|
|
403
|
+
function serialize_config_VerifyPrivateR2ObjectRequest(arg) {
|
|
404
|
+
if (!(arg instanceof config_pb.VerifyPrivateR2ObjectRequest)) {
|
|
405
|
+
throw new Error('Expected argument of type config.VerifyPrivateR2ObjectRequest');
|
|
406
|
+
}
|
|
407
|
+
return Buffer.from(arg.serializeBinary());
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
function deserialize_config_VerifyPrivateR2ObjectRequest(buffer_arg) {
|
|
411
|
+
return config_pb.VerifyPrivateR2ObjectRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
function serialize_config_VerifyPrivateR2ObjectResponse(arg) {
|
|
415
|
+
if (!(arg instanceof config_pb.VerifyPrivateR2ObjectResponse)) {
|
|
416
|
+
throw new Error('Expected argument of type config.VerifyPrivateR2ObjectResponse');
|
|
417
|
+
}
|
|
418
|
+
return Buffer.from(arg.serializeBinary());
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
function deserialize_config_VerifyPrivateR2ObjectResponse(buffer_arg) {
|
|
422
|
+
return config_pb.VerifyPrivateR2ObjectResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
423
|
+
}
|
|
424
|
+
|
|
359
425
|
function serialize_config_ZoneItemResponse(arg) {
|
|
360
426
|
if (!(arg instanceof config_pb.ZoneItemResponse)) {
|
|
361
427
|
throw new Error('Expected argument of type config.ZoneItemResponse');
|
|
@@ -575,6 +641,40 @@ uploadR2File: {
|
|
|
575
641
|
responseSerialize: serialize_config_R2FileListResponse,
|
|
576
642
|
responseDeserialize: deserialize_config_R2FileListResponse,
|
|
577
643
|
},
|
|
644
|
+
// Private R2 (KYC): presigned upload, HEAD verify, and signed download URL.
|
|
645
|
+
preparePrivateR2Upload: {
|
|
646
|
+
path: '/config.Config/preparePrivateR2Upload',
|
|
647
|
+
requestStream: false,
|
|
648
|
+
responseStream: false,
|
|
649
|
+
requestType: config_pb.PreparePrivateR2UploadRequest,
|
|
650
|
+
responseType: config_pb.PreparePrivateR2UploadResponse,
|
|
651
|
+
requestSerialize: serialize_config_PreparePrivateR2UploadRequest,
|
|
652
|
+
requestDeserialize: deserialize_config_PreparePrivateR2UploadRequest,
|
|
653
|
+
responseSerialize: serialize_config_PreparePrivateR2UploadResponse,
|
|
654
|
+
responseDeserialize: deserialize_config_PreparePrivateR2UploadResponse,
|
|
655
|
+
},
|
|
656
|
+
verifyPrivateR2Object: {
|
|
657
|
+
path: '/config.Config/verifyPrivateR2Object',
|
|
658
|
+
requestStream: false,
|
|
659
|
+
responseStream: false,
|
|
660
|
+
requestType: config_pb.VerifyPrivateR2ObjectRequest,
|
|
661
|
+
responseType: config_pb.VerifyPrivateR2ObjectResponse,
|
|
662
|
+
requestSerialize: serialize_config_VerifyPrivateR2ObjectRequest,
|
|
663
|
+
requestDeserialize: deserialize_config_VerifyPrivateR2ObjectRequest,
|
|
664
|
+
responseSerialize: serialize_config_VerifyPrivateR2ObjectResponse,
|
|
665
|
+
responseDeserialize: deserialize_config_VerifyPrivateR2ObjectResponse,
|
|
666
|
+
},
|
|
667
|
+
getPrivateR2DownloadUrl: {
|
|
668
|
+
path: '/config.Config/getPrivateR2DownloadUrl',
|
|
669
|
+
requestStream: false,
|
|
670
|
+
responseStream: false,
|
|
671
|
+
requestType: config_pb.GetPrivateR2DownloadUrlRequest,
|
|
672
|
+
responseType: config_pb.GetPrivateR2DownloadUrlResponse,
|
|
673
|
+
requestSerialize: serialize_config_GetPrivateR2DownloadUrlRequest,
|
|
674
|
+
requestDeserialize: deserialize_config_GetPrivateR2DownloadUrlRequest,
|
|
675
|
+
responseSerialize: serialize_config_GetPrivateR2DownloadUrlResponse,
|
|
676
|
+
responseDeserialize: deserialize_config_GetPrivateR2DownloadUrlResponse,
|
|
677
|
+
},
|
|
578
678
|
// Cloud Flare
|
|
579
679
|
getZonesList: {
|
|
580
680
|
path: '/config.Config/getZonesList',
|