@conduitplatform/grpc-sdk 0.17.0-alpha.2 → 0.17.0-alpha.4
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/index.cjs +208 -289
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +56 -31
- package/dist/index.d.ts +56 -31
- package/dist/index.esm.js +207 -288
- package/dist/index.esm.js.map +1 -1
- package/dist/module.proto +2 -0
- package/package.json +16 -16
package/dist/index.esm.js
CHANGED
|
@@ -8081,8 +8081,7 @@ function createBaseRegisterAdminRouteRequest_PathDefinition() {
|
|
|
8081
8081
|
returns: void 0,
|
|
8082
8082
|
grpcFunction: void 0,
|
|
8083
8083
|
isMiddleware: void 0,
|
|
8084
|
-
events: void 0
|
|
8085
|
-
proxy: void 0
|
|
8084
|
+
events: void 0
|
|
8086
8085
|
};
|
|
8087
8086
|
}
|
|
8088
8087
|
var RegisterAdminRouteRequest_PathDefinition = {
|
|
@@ -8102,9 +8101,6 @@ var RegisterAdminRouteRequest_PathDefinition = {
|
|
|
8102
8101
|
if (message.events !== void 0) {
|
|
8103
8102
|
writer.uint32(42).string(message.events);
|
|
8104
8103
|
}
|
|
8105
|
-
if (message.proxy !== void 0) {
|
|
8106
|
-
RegisterAdminRouteRequest_ProxyRouteOptions.encode(message.proxy, writer.uint32(50).fork()).join();
|
|
8107
|
-
}
|
|
8108
8104
|
return writer;
|
|
8109
8105
|
},
|
|
8110
8106
|
decode(input, length) {
|
|
@@ -8149,13 +8145,6 @@ var RegisterAdminRouteRequest_PathDefinition = {
|
|
|
8149
8145
|
message.events = reader.string();
|
|
8150
8146
|
continue;
|
|
8151
8147
|
}
|
|
8152
|
-
case 6: {
|
|
8153
|
-
if (tag !== 50) {
|
|
8154
|
-
break;
|
|
8155
|
-
}
|
|
8156
|
-
message.proxy = RegisterAdminRouteRequest_ProxyRouteOptions.decode(reader, reader.uint32());
|
|
8157
|
-
continue;
|
|
8158
|
-
}
|
|
8159
8148
|
}
|
|
8160
8149
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8161
8150
|
break;
|
|
@@ -8170,8 +8159,7 @@ var RegisterAdminRouteRequest_PathDefinition = {
|
|
|
8170
8159
|
returns: isSet5(object.returns) ? RegisterAdminRouteRequest_ConduitRouteReturnDefinition.fromJSON(object.returns) : void 0,
|
|
8171
8160
|
grpcFunction: isSet5(object.grpcFunction) ? globalThis.String(object.grpcFunction) : void 0,
|
|
8172
8161
|
isMiddleware: isSet5(object.isMiddleware) ? globalThis.Boolean(object.isMiddleware) : void 0,
|
|
8173
|
-
events: isSet5(object.events) ? globalThis.String(object.events) : void 0
|
|
8174
|
-
proxy: isSet5(object.proxy) ? RegisterAdminRouteRequest_ProxyRouteOptions.fromJSON(object.proxy) : void 0
|
|
8162
|
+
events: isSet5(object.events) ? globalThis.String(object.events) : void 0
|
|
8175
8163
|
};
|
|
8176
8164
|
},
|
|
8177
8165
|
toJSON(message) {
|
|
@@ -8191,9 +8179,6 @@ var RegisterAdminRouteRequest_PathDefinition = {
|
|
|
8191
8179
|
if (message.events !== void 0) {
|
|
8192
8180
|
obj.events = message.events;
|
|
8193
8181
|
}
|
|
8194
|
-
if (message.proxy !== void 0) {
|
|
8195
|
-
obj.proxy = RegisterAdminRouteRequest_ProxyRouteOptions.toJSON(message.proxy);
|
|
8196
|
-
}
|
|
8197
8182
|
return obj;
|
|
8198
8183
|
},
|
|
8199
8184
|
create(base) {
|
|
@@ -8206,7 +8191,6 @@ var RegisterAdminRouteRequest_PathDefinition = {
|
|
|
8206
8191
|
message.grpcFunction = object.grpcFunction ?? void 0;
|
|
8207
8192
|
message.isMiddleware = object.isMiddleware ?? void 0;
|
|
8208
8193
|
message.events = object.events ?? void 0;
|
|
8209
|
-
message.proxy = object.proxy !== void 0 && object.proxy !== null ? RegisterAdminRouteRequest_ProxyRouteOptions.fromPartial(object.proxy) : void 0;
|
|
8210
8194
|
return message;
|
|
8211
8195
|
}
|
|
8212
8196
|
};
|
|
@@ -8224,7 +8208,9 @@ function createBaseRegisterAdminRouteRequest_ConduitRouteOptions() {
|
|
|
8224
8208
|
errors: [],
|
|
8225
8209
|
mcp: void 0,
|
|
8226
8210
|
strictParams: void 0,
|
|
8227
|
-
rateLimit: void 0
|
|
8211
|
+
rateLimit: void 0,
|
|
8212
|
+
captureRawBody: void 0,
|
|
8213
|
+
captureRawHeaders: void 0
|
|
8228
8214
|
};
|
|
8229
8215
|
}
|
|
8230
8216
|
var RegisterAdminRouteRequest_ConduitRouteOptions = {
|
|
@@ -8268,6 +8254,12 @@ var RegisterAdminRouteRequest_ConduitRouteOptions = {
|
|
|
8268
8254
|
if (message.rateLimit !== void 0) {
|
|
8269
8255
|
writer.uint32(106).string(message.rateLimit);
|
|
8270
8256
|
}
|
|
8257
|
+
if (message.captureRawBody !== void 0) {
|
|
8258
|
+
writer.uint32(112).bool(message.captureRawBody);
|
|
8259
|
+
}
|
|
8260
|
+
if (message.captureRawHeaders !== void 0) {
|
|
8261
|
+
writer.uint32(120).bool(message.captureRawHeaders);
|
|
8262
|
+
}
|
|
8271
8263
|
return writer;
|
|
8272
8264
|
},
|
|
8273
8265
|
decode(input, length) {
|
|
@@ -8368,6 +8360,20 @@ var RegisterAdminRouteRequest_ConduitRouteOptions = {
|
|
|
8368
8360
|
message.rateLimit = reader.string();
|
|
8369
8361
|
continue;
|
|
8370
8362
|
}
|
|
8363
|
+
case 14: {
|
|
8364
|
+
if (tag !== 112) {
|
|
8365
|
+
break;
|
|
8366
|
+
}
|
|
8367
|
+
message.captureRawBody = reader.bool();
|
|
8368
|
+
continue;
|
|
8369
|
+
}
|
|
8370
|
+
case 15: {
|
|
8371
|
+
if (tag !== 120) {
|
|
8372
|
+
break;
|
|
8373
|
+
}
|
|
8374
|
+
message.captureRawHeaders = reader.bool();
|
|
8375
|
+
continue;
|
|
8376
|
+
}
|
|
8371
8377
|
}
|
|
8372
8378
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8373
8379
|
break;
|
|
@@ -8390,7 +8396,9 @@ var RegisterAdminRouteRequest_ConduitRouteOptions = {
|
|
|
8390
8396
|
errors: globalThis.Array.isArray(object?.errors) ? object.errors.map((e) => RegisterAdminRouteRequest_ErrorDefinition.fromJSON(e)) : [],
|
|
8391
8397
|
mcp: isSet5(object.mcp) ? globalThis.Boolean(object.mcp) : void 0,
|
|
8392
8398
|
strictParams: isSet5(object.strictParams) ? globalThis.Boolean(object.strictParams) : void 0,
|
|
8393
|
-
rateLimit: isSet5(object.rateLimit) ? globalThis.String(object.rateLimit) : void 0
|
|
8399
|
+
rateLimit: isSet5(object.rateLimit) ? globalThis.String(object.rateLimit) : void 0,
|
|
8400
|
+
captureRawBody: isSet5(object.captureRawBody) ? globalThis.Boolean(object.captureRawBody) : void 0,
|
|
8401
|
+
captureRawHeaders: isSet5(object.captureRawHeaders) ? globalThis.Boolean(object.captureRawHeaders) : void 0
|
|
8394
8402
|
};
|
|
8395
8403
|
},
|
|
8396
8404
|
toJSON(message) {
|
|
@@ -8434,6 +8442,12 @@ var RegisterAdminRouteRequest_ConduitRouteOptions = {
|
|
|
8434
8442
|
if (message.rateLimit !== void 0) {
|
|
8435
8443
|
obj.rateLimit = message.rateLimit;
|
|
8436
8444
|
}
|
|
8445
|
+
if (message.captureRawBody !== void 0) {
|
|
8446
|
+
obj.captureRawBody = message.captureRawBody;
|
|
8447
|
+
}
|
|
8448
|
+
if (message.captureRawHeaders !== void 0) {
|
|
8449
|
+
obj.captureRawHeaders = message.captureRawHeaders;
|
|
8450
|
+
}
|
|
8437
8451
|
return obj;
|
|
8438
8452
|
},
|
|
8439
8453
|
create(base) {
|
|
@@ -8454,269 +8468,8 @@ var RegisterAdminRouteRequest_ConduitRouteOptions = {
|
|
|
8454
8468
|
message.mcp = object.mcp ?? void 0;
|
|
8455
8469
|
message.strictParams = object.strictParams ?? void 0;
|
|
8456
8470
|
message.rateLimit = object.rateLimit ?? void 0;
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
};
|
|
8460
|
-
function createBaseRegisterAdminRouteRequest_ProxyRouteOptions() {
|
|
8461
|
-
return {
|
|
8462
|
-
target: void 0,
|
|
8463
|
-
changeOrigin: void 0,
|
|
8464
|
-
secure: void 0,
|
|
8465
|
-
context: void 0,
|
|
8466
|
-
pathRewrite: void 0,
|
|
8467
|
-
headers: void 0,
|
|
8468
|
-
proxyTimeout: void 0,
|
|
8469
|
-
cookieDomainRewrite: void 0,
|
|
8470
|
-
autoRewrite: void 0,
|
|
8471
|
-
followRedirects: void 0,
|
|
8472
|
-
xfwd: void 0,
|
|
8473
|
-
ws: void 0,
|
|
8474
|
-
router: void 0,
|
|
8475
|
-
preserveHeaderKeyCase: void 0
|
|
8476
|
-
};
|
|
8477
|
-
}
|
|
8478
|
-
var RegisterAdminRouteRequest_ProxyRouteOptions = {
|
|
8479
|
-
encode(message, writer = new BinaryWriter6()) {
|
|
8480
|
-
if (message.target !== void 0) {
|
|
8481
|
-
writer.uint32(10).string(message.target);
|
|
8482
|
-
}
|
|
8483
|
-
if (message.changeOrigin !== void 0) {
|
|
8484
|
-
writer.uint32(16).bool(message.changeOrigin);
|
|
8485
|
-
}
|
|
8486
|
-
if (message.secure !== void 0) {
|
|
8487
|
-
writer.uint32(24).bool(message.secure);
|
|
8488
|
-
}
|
|
8489
|
-
if (message.context !== void 0) {
|
|
8490
|
-
writer.uint32(34).string(message.context);
|
|
8491
|
-
}
|
|
8492
|
-
if (message.pathRewrite !== void 0) {
|
|
8493
|
-
writer.uint32(42).string(message.pathRewrite);
|
|
8494
|
-
}
|
|
8495
|
-
if (message.headers !== void 0) {
|
|
8496
|
-
writer.uint32(50).string(message.headers);
|
|
8497
|
-
}
|
|
8498
|
-
if (message.proxyTimeout !== void 0) {
|
|
8499
|
-
writer.uint32(56).int32(message.proxyTimeout);
|
|
8500
|
-
}
|
|
8501
|
-
if (message.cookieDomainRewrite !== void 0) {
|
|
8502
|
-
writer.uint32(66).string(message.cookieDomainRewrite);
|
|
8503
|
-
}
|
|
8504
|
-
if (message.autoRewrite !== void 0) {
|
|
8505
|
-
writer.uint32(72).bool(message.autoRewrite);
|
|
8506
|
-
}
|
|
8507
|
-
if (message.followRedirects !== void 0) {
|
|
8508
|
-
writer.uint32(80).bool(message.followRedirects);
|
|
8509
|
-
}
|
|
8510
|
-
if (message.xfwd !== void 0) {
|
|
8511
|
-
writer.uint32(88).bool(message.xfwd);
|
|
8512
|
-
}
|
|
8513
|
-
if (message.ws !== void 0) {
|
|
8514
|
-
writer.uint32(96).bool(message.ws);
|
|
8515
|
-
}
|
|
8516
|
-
if (message.router !== void 0) {
|
|
8517
|
-
writer.uint32(106).string(message.router);
|
|
8518
|
-
}
|
|
8519
|
-
if (message.preserveHeaderKeyCase !== void 0) {
|
|
8520
|
-
writer.uint32(112).bool(message.preserveHeaderKeyCase);
|
|
8521
|
-
}
|
|
8522
|
-
return writer;
|
|
8523
|
-
},
|
|
8524
|
-
decode(input, length) {
|
|
8525
|
-
const reader = input instanceof BinaryReader6 ? input : new BinaryReader6(input);
|
|
8526
|
-
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
8527
|
-
const message = createBaseRegisterAdminRouteRequest_ProxyRouteOptions();
|
|
8528
|
-
while (reader.pos < end) {
|
|
8529
|
-
const tag = reader.uint32();
|
|
8530
|
-
switch (tag >>> 3) {
|
|
8531
|
-
case 1: {
|
|
8532
|
-
if (tag !== 10) {
|
|
8533
|
-
break;
|
|
8534
|
-
}
|
|
8535
|
-
message.target = reader.string();
|
|
8536
|
-
continue;
|
|
8537
|
-
}
|
|
8538
|
-
case 2: {
|
|
8539
|
-
if (tag !== 16) {
|
|
8540
|
-
break;
|
|
8541
|
-
}
|
|
8542
|
-
message.changeOrigin = reader.bool();
|
|
8543
|
-
continue;
|
|
8544
|
-
}
|
|
8545
|
-
case 3: {
|
|
8546
|
-
if (tag !== 24) {
|
|
8547
|
-
break;
|
|
8548
|
-
}
|
|
8549
|
-
message.secure = reader.bool();
|
|
8550
|
-
continue;
|
|
8551
|
-
}
|
|
8552
|
-
case 4: {
|
|
8553
|
-
if (tag !== 34) {
|
|
8554
|
-
break;
|
|
8555
|
-
}
|
|
8556
|
-
message.context = reader.string();
|
|
8557
|
-
continue;
|
|
8558
|
-
}
|
|
8559
|
-
case 5: {
|
|
8560
|
-
if (tag !== 42) {
|
|
8561
|
-
break;
|
|
8562
|
-
}
|
|
8563
|
-
message.pathRewrite = reader.string();
|
|
8564
|
-
continue;
|
|
8565
|
-
}
|
|
8566
|
-
case 6: {
|
|
8567
|
-
if (tag !== 50) {
|
|
8568
|
-
break;
|
|
8569
|
-
}
|
|
8570
|
-
message.headers = reader.string();
|
|
8571
|
-
continue;
|
|
8572
|
-
}
|
|
8573
|
-
case 7: {
|
|
8574
|
-
if (tag !== 56) {
|
|
8575
|
-
break;
|
|
8576
|
-
}
|
|
8577
|
-
message.proxyTimeout = reader.int32();
|
|
8578
|
-
continue;
|
|
8579
|
-
}
|
|
8580
|
-
case 8: {
|
|
8581
|
-
if (tag !== 66) {
|
|
8582
|
-
break;
|
|
8583
|
-
}
|
|
8584
|
-
message.cookieDomainRewrite = reader.string();
|
|
8585
|
-
continue;
|
|
8586
|
-
}
|
|
8587
|
-
case 9: {
|
|
8588
|
-
if (tag !== 72) {
|
|
8589
|
-
break;
|
|
8590
|
-
}
|
|
8591
|
-
message.autoRewrite = reader.bool();
|
|
8592
|
-
continue;
|
|
8593
|
-
}
|
|
8594
|
-
case 10: {
|
|
8595
|
-
if (tag !== 80) {
|
|
8596
|
-
break;
|
|
8597
|
-
}
|
|
8598
|
-
message.followRedirects = reader.bool();
|
|
8599
|
-
continue;
|
|
8600
|
-
}
|
|
8601
|
-
case 11: {
|
|
8602
|
-
if (tag !== 88) {
|
|
8603
|
-
break;
|
|
8604
|
-
}
|
|
8605
|
-
message.xfwd = reader.bool();
|
|
8606
|
-
continue;
|
|
8607
|
-
}
|
|
8608
|
-
case 12: {
|
|
8609
|
-
if (tag !== 96) {
|
|
8610
|
-
break;
|
|
8611
|
-
}
|
|
8612
|
-
message.ws = reader.bool();
|
|
8613
|
-
continue;
|
|
8614
|
-
}
|
|
8615
|
-
case 13: {
|
|
8616
|
-
if (tag !== 106) {
|
|
8617
|
-
break;
|
|
8618
|
-
}
|
|
8619
|
-
message.router = reader.string();
|
|
8620
|
-
continue;
|
|
8621
|
-
}
|
|
8622
|
-
case 14: {
|
|
8623
|
-
if (tag !== 112) {
|
|
8624
|
-
break;
|
|
8625
|
-
}
|
|
8626
|
-
message.preserveHeaderKeyCase = reader.bool();
|
|
8627
|
-
continue;
|
|
8628
|
-
}
|
|
8629
|
-
}
|
|
8630
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
8631
|
-
break;
|
|
8632
|
-
}
|
|
8633
|
-
reader.skip(tag & 7);
|
|
8634
|
-
}
|
|
8635
|
-
return message;
|
|
8636
|
-
},
|
|
8637
|
-
fromJSON(object) {
|
|
8638
|
-
return {
|
|
8639
|
-
target: isSet5(object.target) ? globalThis.String(object.target) : void 0,
|
|
8640
|
-
changeOrigin: isSet5(object.changeOrigin) ? globalThis.Boolean(object.changeOrigin) : void 0,
|
|
8641
|
-
secure: isSet5(object.secure) ? globalThis.Boolean(object.secure) : void 0,
|
|
8642
|
-
context: isSet5(object.context) ? globalThis.String(object.context) : void 0,
|
|
8643
|
-
pathRewrite: isSet5(object.pathRewrite) ? globalThis.String(object.pathRewrite) : void 0,
|
|
8644
|
-
headers: isSet5(object.headers) ? globalThis.String(object.headers) : void 0,
|
|
8645
|
-
proxyTimeout: isSet5(object.proxyTimeout) ? globalThis.Number(object.proxyTimeout) : void 0,
|
|
8646
|
-
cookieDomainRewrite: isSet5(object.cookieDomainRewrite) ? globalThis.String(object.cookieDomainRewrite) : void 0,
|
|
8647
|
-
autoRewrite: isSet5(object.autoRewrite) ? globalThis.Boolean(object.autoRewrite) : void 0,
|
|
8648
|
-
followRedirects: isSet5(object.followRedirects) ? globalThis.Boolean(object.followRedirects) : void 0,
|
|
8649
|
-
xfwd: isSet5(object.xfwd) ? globalThis.Boolean(object.xfwd) : void 0,
|
|
8650
|
-
ws: isSet5(object.ws) ? globalThis.Boolean(object.ws) : void 0,
|
|
8651
|
-
router: isSet5(object.router) ? globalThis.String(object.router) : void 0,
|
|
8652
|
-
preserveHeaderKeyCase: isSet5(object.preserveHeaderKeyCase) ? globalThis.Boolean(object.preserveHeaderKeyCase) : void 0
|
|
8653
|
-
};
|
|
8654
|
-
},
|
|
8655
|
-
toJSON(message) {
|
|
8656
|
-
const obj = {};
|
|
8657
|
-
if (message.target !== void 0) {
|
|
8658
|
-
obj.target = message.target;
|
|
8659
|
-
}
|
|
8660
|
-
if (message.changeOrigin !== void 0) {
|
|
8661
|
-
obj.changeOrigin = message.changeOrigin;
|
|
8662
|
-
}
|
|
8663
|
-
if (message.secure !== void 0) {
|
|
8664
|
-
obj.secure = message.secure;
|
|
8665
|
-
}
|
|
8666
|
-
if (message.context !== void 0) {
|
|
8667
|
-
obj.context = message.context;
|
|
8668
|
-
}
|
|
8669
|
-
if (message.pathRewrite !== void 0) {
|
|
8670
|
-
obj.pathRewrite = message.pathRewrite;
|
|
8671
|
-
}
|
|
8672
|
-
if (message.headers !== void 0) {
|
|
8673
|
-
obj.headers = message.headers;
|
|
8674
|
-
}
|
|
8675
|
-
if (message.proxyTimeout !== void 0) {
|
|
8676
|
-
obj.proxyTimeout = Math.round(message.proxyTimeout);
|
|
8677
|
-
}
|
|
8678
|
-
if (message.cookieDomainRewrite !== void 0) {
|
|
8679
|
-
obj.cookieDomainRewrite = message.cookieDomainRewrite;
|
|
8680
|
-
}
|
|
8681
|
-
if (message.autoRewrite !== void 0) {
|
|
8682
|
-
obj.autoRewrite = message.autoRewrite;
|
|
8683
|
-
}
|
|
8684
|
-
if (message.followRedirects !== void 0) {
|
|
8685
|
-
obj.followRedirects = message.followRedirects;
|
|
8686
|
-
}
|
|
8687
|
-
if (message.xfwd !== void 0) {
|
|
8688
|
-
obj.xfwd = message.xfwd;
|
|
8689
|
-
}
|
|
8690
|
-
if (message.ws !== void 0) {
|
|
8691
|
-
obj.ws = message.ws;
|
|
8692
|
-
}
|
|
8693
|
-
if (message.router !== void 0) {
|
|
8694
|
-
obj.router = message.router;
|
|
8695
|
-
}
|
|
8696
|
-
if (message.preserveHeaderKeyCase !== void 0) {
|
|
8697
|
-
obj.preserveHeaderKeyCase = message.preserveHeaderKeyCase;
|
|
8698
|
-
}
|
|
8699
|
-
return obj;
|
|
8700
|
-
},
|
|
8701
|
-
create(base) {
|
|
8702
|
-
return RegisterAdminRouteRequest_ProxyRouteOptions.fromPartial(base ?? {});
|
|
8703
|
-
},
|
|
8704
|
-
fromPartial(object) {
|
|
8705
|
-
const message = createBaseRegisterAdminRouteRequest_ProxyRouteOptions();
|
|
8706
|
-
message.target = object.target ?? void 0;
|
|
8707
|
-
message.changeOrigin = object.changeOrigin ?? void 0;
|
|
8708
|
-
message.secure = object.secure ?? void 0;
|
|
8709
|
-
message.context = object.context ?? void 0;
|
|
8710
|
-
message.pathRewrite = object.pathRewrite ?? void 0;
|
|
8711
|
-
message.headers = object.headers ?? void 0;
|
|
8712
|
-
message.proxyTimeout = object.proxyTimeout ?? void 0;
|
|
8713
|
-
message.cookieDomainRewrite = object.cookieDomainRewrite ?? void 0;
|
|
8714
|
-
message.autoRewrite = object.autoRewrite ?? void 0;
|
|
8715
|
-
message.followRedirects = object.followRedirects ?? void 0;
|
|
8716
|
-
message.xfwd = object.xfwd ?? void 0;
|
|
8717
|
-
message.ws = object.ws ?? void 0;
|
|
8718
|
-
message.router = object.router ?? void 0;
|
|
8719
|
-
message.preserveHeaderKeyCase = object.preserveHeaderKeyCase ?? void 0;
|
|
8471
|
+
message.captureRawBody = object.captureRawBody ?? void 0;
|
|
8472
|
+
message.captureRawHeaders = object.captureRawHeaders ?? void 0;
|
|
8720
8473
|
return message;
|
|
8721
8474
|
}
|
|
8722
8475
|
};
|
|
@@ -9479,6 +9232,57 @@ var GetConfigRequest = {
|
|
|
9479
9232
|
return message;
|
|
9480
9233
|
}
|
|
9481
9234
|
};
|
|
9235
|
+
function createBaseDeleteConfigRequest() {
|
|
9236
|
+
return { key: "" };
|
|
9237
|
+
}
|
|
9238
|
+
var DeleteConfigRequest = {
|
|
9239
|
+
encode(message, writer = new BinaryWriter6()) {
|
|
9240
|
+
if (message.key !== "") {
|
|
9241
|
+
writer.uint32(10).string(message.key);
|
|
9242
|
+
}
|
|
9243
|
+
return writer;
|
|
9244
|
+
},
|
|
9245
|
+
decode(input, length) {
|
|
9246
|
+
const reader = input instanceof BinaryReader6 ? input : new BinaryReader6(input);
|
|
9247
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
9248
|
+
const message = createBaseDeleteConfigRequest();
|
|
9249
|
+
while (reader.pos < end) {
|
|
9250
|
+
const tag = reader.uint32();
|
|
9251
|
+
switch (tag >>> 3) {
|
|
9252
|
+
case 1: {
|
|
9253
|
+
if (tag !== 10) {
|
|
9254
|
+
break;
|
|
9255
|
+
}
|
|
9256
|
+
message.key = reader.string();
|
|
9257
|
+
continue;
|
|
9258
|
+
}
|
|
9259
|
+
}
|
|
9260
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9261
|
+
break;
|
|
9262
|
+
}
|
|
9263
|
+
reader.skip(tag & 7);
|
|
9264
|
+
}
|
|
9265
|
+
return message;
|
|
9266
|
+
},
|
|
9267
|
+
fromJSON(object) {
|
|
9268
|
+
return { key: isSet5(object.key) ? globalThis.String(object.key) : "" };
|
|
9269
|
+
},
|
|
9270
|
+
toJSON(message) {
|
|
9271
|
+
const obj = {};
|
|
9272
|
+
if (message.key !== "") {
|
|
9273
|
+
obj.key = message.key;
|
|
9274
|
+
}
|
|
9275
|
+
return obj;
|
|
9276
|
+
},
|
|
9277
|
+
create(base) {
|
|
9278
|
+
return DeleteConfigRequest.fromPartial(base ?? {});
|
|
9279
|
+
},
|
|
9280
|
+
fromPartial(object) {
|
|
9281
|
+
const message = createBaseDeleteConfigRequest();
|
|
9282
|
+
message.key = object.key ?? "";
|
|
9283
|
+
return message;
|
|
9284
|
+
}
|
|
9285
|
+
};
|
|
9482
9286
|
function createBaseGetRedisDetailsResponse() {
|
|
9483
9287
|
return {
|
|
9484
9288
|
redisHost: void 0,
|
|
@@ -9952,6 +9756,14 @@ var ConfigDefinition = {
|
|
|
9952
9756
|
responseType: ModuleByNameResponse,
|
|
9953
9757
|
responseStream: false,
|
|
9954
9758
|
options: {}
|
|
9759
|
+
},
|
|
9760
|
+
deleteConfig: {
|
|
9761
|
+
name: "DeleteConfig",
|
|
9762
|
+
requestType: DeleteConfigRequest,
|
|
9763
|
+
requestStream: false,
|
|
9764
|
+
responseType: Empty,
|
|
9765
|
+
responseStream: false,
|
|
9766
|
+
options: {}
|
|
9955
9767
|
}
|
|
9956
9768
|
}
|
|
9957
9769
|
};
|
|
@@ -13043,7 +12855,9 @@ function createBaseRequest() {
|
|
|
13043
12855
|
bodyParams: "",
|
|
13044
12856
|
urlParams: "",
|
|
13045
12857
|
queryParams: "",
|
|
13046
|
-
functionName: ""
|
|
12858
|
+
functionName: "",
|
|
12859
|
+
rawHeaders: "",
|
|
12860
|
+
rawBody: new Uint8Array(0)
|
|
13047
12861
|
};
|
|
13048
12862
|
}
|
|
13049
12863
|
var Request = {
|
|
@@ -13075,6 +12889,12 @@ var Request = {
|
|
|
13075
12889
|
if (message.functionName !== "") {
|
|
13076
12890
|
writer.uint32(74).string(message.functionName);
|
|
13077
12891
|
}
|
|
12892
|
+
if (message.rawHeaders !== "") {
|
|
12893
|
+
writer.uint32(82).string(message.rawHeaders);
|
|
12894
|
+
}
|
|
12895
|
+
if (message.rawBody.length !== 0) {
|
|
12896
|
+
writer.uint32(90).bytes(message.rawBody);
|
|
12897
|
+
}
|
|
13078
12898
|
return writer;
|
|
13079
12899
|
},
|
|
13080
12900
|
decode(input, length) {
|
|
@@ -13147,6 +12967,20 @@ var Request = {
|
|
|
13147
12967
|
message.functionName = reader.string();
|
|
13148
12968
|
continue;
|
|
13149
12969
|
}
|
|
12970
|
+
case 10: {
|
|
12971
|
+
if (tag !== 82) {
|
|
12972
|
+
break;
|
|
12973
|
+
}
|
|
12974
|
+
message.rawHeaders = reader.string();
|
|
12975
|
+
continue;
|
|
12976
|
+
}
|
|
12977
|
+
case 11: {
|
|
12978
|
+
if (tag !== 90) {
|
|
12979
|
+
break;
|
|
12980
|
+
}
|
|
12981
|
+
message.rawBody = reader.bytes();
|
|
12982
|
+
continue;
|
|
12983
|
+
}
|
|
13150
12984
|
}
|
|
13151
12985
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13152
12986
|
break;
|
|
@@ -13165,7 +12999,9 @@ var Request = {
|
|
|
13165
12999
|
bodyParams: isSet8(object.bodyParams) ? globalThis.String(object.bodyParams) : "",
|
|
13166
13000
|
urlParams: isSet8(object.urlParams) ? globalThis.String(object.urlParams) : "",
|
|
13167
13001
|
queryParams: isSet8(object.queryParams) ? globalThis.String(object.queryParams) : "",
|
|
13168
|
-
functionName: isSet8(object.functionName) ? globalThis.String(object.functionName) : ""
|
|
13002
|
+
functionName: isSet8(object.functionName) ? globalThis.String(object.functionName) : "",
|
|
13003
|
+
rawHeaders: isSet8(object.rawHeaders) ? globalThis.String(object.rawHeaders) : "",
|
|
13004
|
+
rawBody: isSet8(object.rawBody) ? bytesFromBase642(object.rawBody) : new Uint8Array(0)
|
|
13169
13005
|
};
|
|
13170
13006
|
},
|
|
13171
13007
|
toJSON(message) {
|
|
@@ -13197,6 +13033,12 @@ var Request = {
|
|
|
13197
13033
|
if (message.functionName !== "") {
|
|
13198
13034
|
obj.functionName = message.functionName;
|
|
13199
13035
|
}
|
|
13036
|
+
if (message.rawHeaders !== "") {
|
|
13037
|
+
obj.rawHeaders = message.rawHeaders;
|
|
13038
|
+
}
|
|
13039
|
+
if (message.rawBody.length !== 0) {
|
|
13040
|
+
obj.rawBody = base64FromBytes2(message.rawBody);
|
|
13041
|
+
}
|
|
13200
13042
|
return obj;
|
|
13201
13043
|
},
|
|
13202
13044
|
create(base) {
|
|
@@ -13213,6 +13055,8 @@ var Request = {
|
|
|
13213
13055
|
message.urlParams = object.urlParams ?? "";
|
|
13214
13056
|
message.queryParams = object.queryParams ?? "";
|
|
13215
13057
|
message.functionName = object.functionName ?? "";
|
|
13058
|
+
message.rawHeaders = object.rawHeaders ?? "";
|
|
13059
|
+
message.rawBody = object.rawBody ?? new Uint8Array(0);
|
|
13216
13060
|
return message;
|
|
13217
13061
|
}
|
|
13218
13062
|
};
|
|
@@ -13833,6 +13677,29 @@ var AdminRouterDefinition = {
|
|
|
13833
13677
|
}
|
|
13834
13678
|
}
|
|
13835
13679
|
};
|
|
13680
|
+
function bytesFromBase642(b64) {
|
|
13681
|
+
if (globalThis.Buffer) {
|
|
13682
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
13683
|
+
} else {
|
|
13684
|
+
const bin = globalThis.atob(b64);
|
|
13685
|
+
const arr = new Uint8Array(bin.length);
|
|
13686
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
13687
|
+
arr[i] = bin.charCodeAt(i);
|
|
13688
|
+
}
|
|
13689
|
+
return arr;
|
|
13690
|
+
}
|
|
13691
|
+
}
|
|
13692
|
+
function base64FromBytes2(arr) {
|
|
13693
|
+
if (globalThis.Buffer) {
|
|
13694
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
13695
|
+
} else {
|
|
13696
|
+
const bin = [];
|
|
13697
|
+
arr.forEach((byte) => {
|
|
13698
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
13699
|
+
});
|
|
13700
|
+
return globalThis.btoa(bin.join(""));
|
|
13701
|
+
}
|
|
13702
|
+
}
|
|
13836
13703
|
function isSet8(value) {
|
|
13837
13704
|
return value !== null && value !== void 0;
|
|
13838
13705
|
}
|
|
@@ -14319,7 +14186,9 @@ function createBaseRegisterConduitRouteRequest_ConduitRouteOptions() {
|
|
|
14319
14186
|
errors: [],
|
|
14320
14187
|
mcp: void 0,
|
|
14321
14188
|
strictParams: void 0,
|
|
14322
|
-
rateLimit: void 0
|
|
14189
|
+
rateLimit: void 0,
|
|
14190
|
+
captureRawBody: void 0,
|
|
14191
|
+
captureRawHeaders: void 0
|
|
14323
14192
|
};
|
|
14324
14193
|
}
|
|
14325
14194
|
var RegisterConduitRouteRequest_ConduitRouteOptions = {
|
|
@@ -14363,6 +14232,12 @@ var RegisterConduitRouteRequest_ConduitRouteOptions = {
|
|
|
14363
14232
|
if (message.rateLimit !== void 0) {
|
|
14364
14233
|
writer.uint32(106).string(message.rateLimit);
|
|
14365
14234
|
}
|
|
14235
|
+
if (message.captureRawBody !== void 0) {
|
|
14236
|
+
writer.uint32(112).bool(message.captureRawBody);
|
|
14237
|
+
}
|
|
14238
|
+
if (message.captureRawHeaders !== void 0) {
|
|
14239
|
+
writer.uint32(120).bool(message.captureRawHeaders);
|
|
14240
|
+
}
|
|
14366
14241
|
return writer;
|
|
14367
14242
|
},
|
|
14368
14243
|
decode(input, length) {
|
|
@@ -14463,6 +14338,20 @@ var RegisterConduitRouteRequest_ConduitRouteOptions = {
|
|
|
14463
14338
|
message.rateLimit = reader.string();
|
|
14464
14339
|
continue;
|
|
14465
14340
|
}
|
|
14341
|
+
case 14: {
|
|
14342
|
+
if (tag !== 112) {
|
|
14343
|
+
break;
|
|
14344
|
+
}
|
|
14345
|
+
message.captureRawBody = reader.bool();
|
|
14346
|
+
continue;
|
|
14347
|
+
}
|
|
14348
|
+
case 15: {
|
|
14349
|
+
if (tag !== 120) {
|
|
14350
|
+
break;
|
|
14351
|
+
}
|
|
14352
|
+
message.captureRawHeaders = reader.bool();
|
|
14353
|
+
continue;
|
|
14354
|
+
}
|
|
14466
14355
|
}
|
|
14467
14356
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14468
14357
|
break;
|
|
@@ -14485,7 +14374,9 @@ var RegisterConduitRouteRequest_ConduitRouteOptions = {
|
|
|
14485
14374
|
errors: globalThis.Array.isArray(object?.errors) ? object.errors.map((e) => RegisterConduitRouteRequest_ErrorDefinition.fromJSON(e)) : [],
|
|
14486
14375
|
mcp: isSet9(object.mcp) ? globalThis.Boolean(object.mcp) : void 0,
|
|
14487
14376
|
strictParams: isSet9(object.strictParams) ? globalThis.Boolean(object.strictParams) : void 0,
|
|
14488
|
-
rateLimit: isSet9(object.rateLimit) ? globalThis.String(object.rateLimit) : void 0
|
|
14377
|
+
rateLimit: isSet9(object.rateLimit) ? globalThis.String(object.rateLimit) : void 0,
|
|
14378
|
+
captureRawBody: isSet9(object.captureRawBody) ? globalThis.Boolean(object.captureRawBody) : void 0,
|
|
14379
|
+
captureRawHeaders: isSet9(object.captureRawHeaders) ? globalThis.Boolean(object.captureRawHeaders) : void 0
|
|
14489
14380
|
};
|
|
14490
14381
|
},
|
|
14491
14382
|
toJSON(message) {
|
|
@@ -14529,6 +14420,12 @@ var RegisterConduitRouteRequest_ConduitRouteOptions = {
|
|
|
14529
14420
|
if (message.rateLimit !== void 0) {
|
|
14530
14421
|
obj.rateLimit = message.rateLimit;
|
|
14531
14422
|
}
|
|
14423
|
+
if (message.captureRawBody !== void 0) {
|
|
14424
|
+
obj.captureRawBody = message.captureRawBody;
|
|
14425
|
+
}
|
|
14426
|
+
if (message.captureRawHeaders !== void 0) {
|
|
14427
|
+
obj.captureRawHeaders = message.captureRawHeaders;
|
|
14428
|
+
}
|
|
14532
14429
|
return obj;
|
|
14533
14430
|
},
|
|
14534
14431
|
create(base) {
|
|
@@ -14549,6 +14446,8 @@ var RegisterConduitRouteRequest_ConduitRouteOptions = {
|
|
|
14549
14446
|
message.mcp = object.mcp ?? void 0;
|
|
14550
14447
|
message.strictParams = object.strictParams ?? void 0;
|
|
14551
14448
|
message.rateLimit = object.rateLimit ?? void 0;
|
|
14449
|
+
message.captureRawBody = object.captureRawBody ?? void 0;
|
|
14450
|
+
message.captureRawHeaders = object.captureRawHeaders ?? void 0;
|
|
14552
14451
|
return message;
|
|
14553
14452
|
}
|
|
14554
14453
|
};
|
|
@@ -16011,6 +15910,10 @@ var ConduitModule = class {
|
|
|
16011
15910
|
this._serviceUrl = _serviceUrl;
|
|
16012
15911
|
this._grpcToken = _grpcToken;
|
|
16013
15912
|
}
|
|
15913
|
+
_clientName;
|
|
15914
|
+
_serviceName;
|
|
15915
|
+
_serviceUrl;
|
|
15916
|
+
_grpcToken;
|
|
16014
15917
|
channel;
|
|
16015
15918
|
protoPath;
|
|
16016
15919
|
type;
|
|
@@ -16195,6 +16098,7 @@ var Storage = class extends ConduitModule {
|
|
|
16195
16098
|
this.moduleName = moduleName;
|
|
16196
16099
|
this.initializeClient(StorageDefinition);
|
|
16197
16100
|
}
|
|
16101
|
+
moduleName;
|
|
16198
16102
|
getFile(id, userIdOrOptions, scope) {
|
|
16199
16103
|
const options = normalizeAuthzOptions(userIdOrOptions, scope);
|
|
16200
16104
|
return this.client.getFile({ id, ...options });
|
|
@@ -16303,6 +16207,7 @@ var Router = class extends ConduitModule {
|
|
|
16303
16207
|
this.moduleName = moduleName;
|
|
16304
16208
|
this.initializeClient(RouterDefinition);
|
|
16305
16209
|
}
|
|
16210
|
+
moduleName;
|
|
16306
16211
|
register(paths, url) {
|
|
16307
16212
|
const request = {
|
|
16308
16213
|
routes: paths,
|
|
@@ -16329,6 +16234,7 @@ var Email = class extends ConduitModule {
|
|
|
16329
16234
|
this.moduleName = moduleName;
|
|
16330
16235
|
this.initializeClient(CommunicationsDefinition);
|
|
16331
16236
|
}
|
|
16237
|
+
moduleName;
|
|
16332
16238
|
registerTemplate(template) {
|
|
16333
16239
|
return this.client.registerTemplate({
|
|
16334
16240
|
name: template.name,
|
|
@@ -16394,6 +16300,7 @@ var DatabaseProvider = class extends ConduitModule {
|
|
|
16394
16300
|
this.moduleName = moduleName;
|
|
16395
16301
|
this.initializeClient(DatabaseProviderDefinition);
|
|
16396
16302
|
}
|
|
16303
|
+
moduleName;
|
|
16397
16304
|
getSchema(schemaName) {
|
|
16398
16305
|
return this.client.getSchema({ schemaName }).then((res) => {
|
|
16399
16306
|
return {
|
|
@@ -16683,6 +16590,7 @@ var Config = class extends ConduitModule {
|
|
|
16683
16590
|
this._serviceHealthStatusGetter = serviceHealthStatusGetter;
|
|
16684
16591
|
this.emitter.setMaxListeners(150);
|
|
16685
16592
|
}
|
|
16593
|
+
url;
|
|
16686
16594
|
emitter = new EventEmitter2();
|
|
16687
16595
|
coreLive = false;
|
|
16688
16596
|
_serviceHealthStatusGetter;
|
|
@@ -16706,6 +16614,9 @@ var Config = class extends ConduitModule {
|
|
|
16706
16614
|
return JSON.parse(res.data);
|
|
16707
16615
|
});
|
|
16708
16616
|
}
|
|
16617
|
+
delete(name) {
|
|
16618
|
+
return this.client.deleteConfig({ key: name });
|
|
16619
|
+
}
|
|
16709
16620
|
configure(config, schema, override) {
|
|
16710
16621
|
const request = {
|
|
16711
16622
|
config: JSON.stringify(config),
|
|
@@ -16806,6 +16717,7 @@ var Core = class extends ConduitModule {
|
|
|
16806
16717
|
this.moduleName = moduleName;
|
|
16807
16718
|
this.initializeClient(CoreDefinition);
|
|
16808
16719
|
}
|
|
16720
|
+
moduleName;
|
|
16809
16721
|
};
|
|
16810
16722
|
|
|
16811
16723
|
// src/modules/admin/index.ts
|
|
@@ -16815,6 +16727,7 @@ var Admin = class extends ConduitModule {
|
|
|
16815
16727
|
this.moduleName = moduleName;
|
|
16816
16728
|
this.initializeClient(AdminDefinition);
|
|
16817
16729
|
}
|
|
16730
|
+
moduleName;
|
|
16818
16731
|
register(paths, serverUrl) {
|
|
16819
16732
|
const request = {
|
|
16820
16733
|
routes: paths,
|
|
@@ -16839,6 +16752,7 @@ var PushNotifications = class extends ConduitModule {
|
|
|
16839
16752
|
this.moduleName = moduleName;
|
|
16840
16753
|
this.initializeClient(CommunicationsDefinition);
|
|
16841
16754
|
}
|
|
16755
|
+
moduleName;
|
|
16842
16756
|
sendNotificationToken(token, platform, userId) {
|
|
16843
16757
|
return this.client.setNotificationToken({
|
|
16844
16758
|
token,
|
|
@@ -16897,6 +16811,7 @@ var SMS = class extends ConduitModule {
|
|
|
16897
16811
|
this.moduleName = moduleName;
|
|
16898
16812
|
this.initializeClient(CommunicationsDefinition);
|
|
16899
16813
|
}
|
|
16814
|
+
moduleName;
|
|
16900
16815
|
sendSms(to, message) {
|
|
16901
16816
|
return this.client.sendSms({ to, message });
|
|
16902
16817
|
}
|
|
@@ -16915,6 +16830,7 @@ var Chat = class extends ConduitModule {
|
|
|
16915
16830
|
this.moduleName = moduleName;
|
|
16916
16831
|
this.initializeClient(ChatDefinition);
|
|
16917
16832
|
}
|
|
16833
|
+
moduleName;
|
|
16918
16834
|
sendMessage(messageData) {
|
|
16919
16835
|
return this.client.sendMessage(messageData);
|
|
16920
16836
|
}
|
|
@@ -16933,6 +16849,7 @@ var Authorization = class extends ConduitModule {
|
|
|
16933
16849
|
this.moduleName = moduleName;
|
|
16934
16850
|
this.initializeClient(AuthorizationDefinition);
|
|
16935
16851
|
}
|
|
16852
|
+
moduleName;
|
|
16936
16853
|
defineResource(data) {
|
|
16937
16854
|
return this.client.defineResource(data);
|
|
16938
16855
|
}
|
|
@@ -16981,6 +16898,7 @@ var Authentication = class extends ConduitModule {
|
|
|
16981
16898
|
this.moduleName = moduleName;
|
|
16982
16899
|
this.initializeClient(AuthenticationDefinition);
|
|
16983
16900
|
}
|
|
16901
|
+
moduleName;
|
|
16984
16902
|
userLogin(userId, clientId) {
|
|
16985
16903
|
return this.client.userLogin({ userId, clientId });
|
|
16986
16904
|
}
|
|
@@ -17051,6 +16969,7 @@ var Communications = class extends ConduitModule {
|
|
|
17051
16969
|
this.moduleName = moduleName;
|
|
17052
16970
|
this.initializeClient(CommunicationsDefinition);
|
|
17053
16971
|
}
|
|
16972
|
+
moduleName;
|
|
17054
16973
|
// Legacy Email methods
|
|
17055
16974
|
registerTemplate(template) {
|
|
17056
16975
|
return this.client.registerTemplate({
|
|
@@ -18221,6 +18140,7 @@ export {
|
|
|
18221
18140
|
DatabaseProviderDefinition,
|
|
18222
18141
|
Decision,
|
|
18223
18142
|
DeleteAllRelationsRequest,
|
|
18143
|
+
DeleteConfigRequest,
|
|
18224
18144
|
DeleteFileResponse,
|
|
18225
18145
|
DeleteResourceRequest,
|
|
18226
18146
|
DeleteRoomRequest,
|
|
@@ -18299,7 +18219,6 @@ export {
|
|
|
18299
18219
|
RegisterAdminRouteRequest_ConduitRouteReturnDefinition,
|
|
18300
18220
|
RegisterAdminRouteRequest_ErrorDefinition,
|
|
18301
18221
|
RegisterAdminRouteRequest_PathDefinition,
|
|
18302
|
-
RegisterAdminRouteRequest_ProxyRouteOptions,
|
|
18303
18222
|
RegisterCommunicationTemplateRequest,
|
|
18304
18223
|
RegisterCommunicationTemplateRequest_CommunicationTemplate,
|
|
18305
18224
|
RegisterCommunicationTemplateRequest_CommunicationTemplate_EmailTemplate,
|