@conduitplatform/grpc-sdk 0.17.0-alpha.3 → 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 CHANGED
@@ -76,6 +76,7 @@ __export(index_exports, {
76
76
  DatabaseProviderDefinition: () => DatabaseProviderDefinition,
77
77
  Decision: () => Decision,
78
78
  DeleteAllRelationsRequest: () => DeleteAllRelationsRequest,
79
+ DeleteConfigRequest: () => DeleteConfigRequest,
79
80
  DeleteFileResponse: () => DeleteFileResponse,
80
81
  DeleteResourceRequest: () => DeleteResourceRequest,
81
82
  DeleteRoomRequest: () => DeleteRoomRequest,
@@ -154,7 +155,6 @@ __export(index_exports, {
154
155
  RegisterAdminRouteRequest_ConduitRouteReturnDefinition: () => RegisterAdminRouteRequest_ConduitRouteReturnDefinition,
155
156
  RegisterAdminRouteRequest_ErrorDefinition: () => RegisterAdminRouteRequest_ErrorDefinition,
156
157
  RegisterAdminRouteRequest_PathDefinition: () => RegisterAdminRouteRequest_PathDefinition,
157
- RegisterAdminRouteRequest_ProxyRouteOptions: () => RegisterAdminRouteRequest_ProxyRouteOptions,
158
158
  RegisterCommunicationTemplateRequest: () => RegisterCommunicationTemplateRequest,
159
159
  RegisterCommunicationTemplateRequest_CommunicationTemplate: () => RegisterCommunicationTemplateRequest_CommunicationTemplate,
160
160
  RegisterCommunicationTemplateRequest_CommunicationTemplate_EmailTemplate: () => RegisterCommunicationTemplateRequest_CommunicationTemplate_EmailTemplate,
@@ -8340,8 +8340,7 @@ function createBaseRegisterAdminRouteRequest_PathDefinition() {
8340
8340
  returns: void 0,
8341
8341
  grpcFunction: void 0,
8342
8342
  isMiddleware: void 0,
8343
- events: void 0,
8344
- proxy: void 0
8343
+ events: void 0
8345
8344
  };
8346
8345
  }
8347
8346
  var RegisterAdminRouteRequest_PathDefinition = {
@@ -8361,9 +8360,6 @@ var RegisterAdminRouteRequest_PathDefinition = {
8361
8360
  if (message.events !== void 0) {
8362
8361
  writer.uint32(42).string(message.events);
8363
8362
  }
8364
- if (message.proxy !== void 0) {
8365
- RegisterAdminRouteRequest_ProxyRouteOptions.encode(message.proxy, writer.uint32(50).fork()).join();
8366
- }
8367
8363
  return writer;
8368
8364
  },
8369
8365
  decode(input, length) {
@@ -8408,13 +8404,6 @@ var RegisterAdminRouteRequest_PathDefinition = {
8408
8404
  message.events = reader.string();
8409
8405
  continue;
8410
8406
  }
8411
- case 6: {
8412
- if (tag !== 50) {
8413
- break;
8414
- }
8415
- message.proxy = RegisterAdminRouteRequest_ProxyRouteOptions.decode(reader, reader.uint32());
8416
- continue;
8417
- }
8418
8407
  }
8419
8408
  if ((tag & 7) === 4 || tag === 0) {
8420
8409
  break;
@@ -8429,8 +8418,7 @@ var RegisterAdminRouteRequest_PathDefinition = {
8429
8418
  returns: isSet5(object.returns) ? RegisterAdminRouteRequest_ConduitRouteReturnDefinition.fromJSON(object.returns) : void 0,
8430
8419
  grpcFunction: isSet5(object.grpcFunction) ? globalThis.String(object.grpcFunction) : void 0,
8431
8420
  isMiddleware: isSet5(object.isMiddleware) ? globalThis.Boolean(object.isMiddleware) : void 0,
8432
- events: isSet5(object.events) ? globalThis.String(object.events) : void 0,
8433
- proxy: isSet5(object.proxy) ? RegisterAdminRouteRequest_ProxyRouteOptions.fromJSON(object.proxy) : void 0
8421
+ events: isSet5(object.events) ? globalThis.String(object.events) : void 0
8434
8422
  };
8435
8423
  },
8436
8424
  toJSON(message) {
@@ -8450,9 +8438,6 @@ var RegisterAdminRouteRequest_PathDefinition = {
8450
8438
  if (message.events !== void 0) {
8451
8439
  obj.events = message.events;
8452
8440
  }
8453
- if (message.proxy !== void 0) {
8454
- obj.proxy = RegisterAdminRouteRequest_ProxyRouteOptions.toJSON(message.proxy);
8455
- }
8456
8441
  return obj;
8457
8442
  },
8458
8443
  create(base) {
@@ -8465,7 +8450,6 @@ var RegisterAdminRouteRequest_PathDefinition = {
8465
8450
  message.grpcFunction = object.grpcFunction ?? void 0;
8466
8451
  message.isMiddleware = object.isMiddleware ?? void 0;
8467
8452
  message.events = object.events ?? void 0;
8468
- message.proxy = object.proxy !== void 0 && object.proxy !== null ? RegisterAdminRouteRequest_ProxyRouteOptions.fromPartial(object.proxy) : void 0;
8469
8453
  return message;
8470
8454
  }
8471
8455
  };
@@ -8483,7 +8467,9 @@ function createBaseRegisterAdminRouteRequest_ConduitRouteOptions() {
8483
8467
  errors: [],
8484
8468
  mcp: void 0,
8485
8469
  strictParams: void 0,
8486
- rateLimit: void 0
8470
+ rateLimit: void 0,
8471
+ captureRawBody: void 0,
8472
+ captureRawHeaders: void 0
8487
8473
  };
8488
8474
  }
8489
8475
  var RegisterAdminRouteRequest_ConduitRouteOptions = {
@@ -8527,6 +8513,12 @@ var RegisterAdminRouteRequest_ConduitRouteOptions = {
8527
8513
  if (message.rateLimit !== void 0) {
8528
8514
  writer.uint32(106).string(message.rateLimit);
8529
8515
  }
8516
+ if (message.captureRawBody !== void 0) {
8517
+ writer.uint32(112).bool(message.captureRawBody);
8518
+ }
8519
+ if (message.captureRawHeaders !== void 0) {
8520
+ writer.uint32(120).bool(message.captureRawHeaders);
8521
+ }
8530
8522
  return writer;
8531
8523
  },
8532
8524
  decode(input, length) {
@@ -8627,6 +8619,20 @@ var RegisterAdminRouteRequest_ConduitRouteOptions = {
8627
8619
  message.rateLimit = reader.string();
8628
8620
  continue;
8629
8621
  }
8622
+ case 14: {
8623
+ if (tag !== 112) {
8624
+ break;
8625
+ }
8626
+ message.captureRawBody = reader.bool();
8627
+ continue;
8628
+ }
8629
+ case 15: {
8630
+ if (tag !== 120) {
8631
+ break;
8632
+ }
8633
+ message.captureRawHeaders = reader.bool();
8634
+ continue;
8635
+ }
8630
8636
  }
8631
8637
  if ((tag & 7) === 4 || tag === 0) {
8632
8638
  break;
@@ -8649,7 +8655,9 @@ var RegisterAdminRouteRequest_ConduitRouteOptions = {
8649
8655
  errors: globalThis.Array.isArray(object?.errors) ? object.errors.map((e) => RegisterAdminRouteRequest_ErrorDefinition.fromJSON(e)) : [],
8650
8656
  mcp: isSet5(object.mcp) ? globalThis.Boolean(object.mcp) : void 0,
8651
8657
  strictParams: isSet5(object.strictParams) ? globalThis.Boolean(object.strictParams) : void 0,
8652
- rateLimit: isSet5(object.rateLimit) ? globalThis.String(object.rateLimit) : void 0
8658
+ rateLimit: isSet5(object.rateLimit) ? globalThis.String(object.rateLimit) : void 0,
8659
+ captureRawBody: isSet5(object.captureRawBody) ? globalThis.Boolean(object.captureRawBody) : void 0,
8660
+ captureRawHeaders: isSet5(object.captureRawHeaders) ? globalThis.Boolean(object.captureRawHeaders) : void 0
8653
8661
  };
8654
8662
  },
8655
8663
  toJSON(message) {
@@ -8693,6 +8701,12 @@ var RegisterAdminRouteRequest_ConduitRouteOptions = {
8693
8701
  if (message.rateLimit !== void 0) {
8694
8702
  obj.rateLimit = message.rateLimit;
8695
8703
  }
8704
+ if (message.captureRawBody !== void 0) {
8705
+ obj.captureRawBody = message.captureRawBody;
8706
+ }
8707
+ if (message.captureRawHeaders !== void 0) {
8708
+ obj.captureRawHeaders = message.captureRawHeaders;
8709
+ }
8696
8710
  return obj;
8697
8711
  },
8698
8712
  create(base) {
@@ -8713,269 +8727,8 @@ var RegisterAdminRouteRequest_ConduitRouteOptions = {
8713
8727
  message.mcp = object.mcp ?? void 0;
8714
8728
  message.strictParams = object.strictParams ?? void 0;
8715
8729
  message.rateLimit = object.rateLimit ?? void 0;
8716
- return message;
8717
- }
8718
- };
8719
- function createBaseRegisterAdminRouteRequest_ProxyRouteOptions() {
8720
- return {
8721
- target: void 0,
8722
- changeOrigin: void 0,
8723
- secure: void 0,
8724
- context: void 0,
8725
- pathRewrite: void 0,
8726
- headers: void 0,
8727
- proxyTimeout: void 0,
8728
- cookieDomainRewrite: void 0,
8729
- autoRewrite: void 0,
8730
- followRedirects: void 0,
8731
- xfwd: void 0,
8732
- ws: void 0,
8733
- router: void 0,
8734
- preserveHeaderKeyCase: void 0
8735
- };
8736
- }
8737
- var RegisterAdminRouteRequest_ProxyRouteOptions = {
8738
- encode(message, writer = new import_wire6.BinaryWriter()) {
8739
- if (message.target !== void 0) {
8740
- writer.uint32(10).string(message.target);
8741
- }
8742
- if (message.changeOrigin !== void 0) {
8743
- writer.uint32(16).bool(message.changeOrigin);
8744
- }
8745
- if (message.secure !== void 0) {
8746
- writer.uint32(24).bool(message.secure);
8747
- }
8748
- if (message.context !== void 0) {
8749
- writer.uint32(34).string(message.context);
8750
- }
8751
- if (message.pathRewrite !== void 0) {
8752
- writer.uint32(42).string(message.pathRewrite);
8753
- }
8754
- if (message.headers !== void 0) {
8755
- writer.uint32(50).string(message.headers);
8756
- }
8757
- if (message.proxyTimeout !== void 0) {
8758
- writer.uint32(56).int32(message.proxyTimeout);
8759
- }
8760
- if (message.cookieDomainRewrite !== void 0) {
8761
- writer.uint32(66).string(message.cookieDomainRewrite);
8762
- }
8763
- if (message.autoRewrite !== void 0) {
8764
- writer.uint32(72).bool(message.autoRewrite);
8765
- }
8766
- if (message.followRedirects !== void 0) {
8767
- writer.uint32(80).bool(message.followRedirects);
8768
- }
8769
- if (message.xfwd !== void 0) {
8770
- writer.uint32(88).bool(message.xfwd);
8771
- }
8772
- if (message.ws !== void 0) {
8773
- writer.uint32(96).bool(message.ws);
8774
- }
8775
- if (message.router !== void 0) {
8776
- writer.uint32(106).string(message.router);
8777
- }
8778
- if (message.preserveHeaderKeyCase !== void 0) {
8779
- writer.uint32(112).bool(message.preserveHeaderKeyCase);
8780
- }
8781
- return writer;
8782
- },
8783
- decode(input, length) {
8784
- const reader = input instanceof import_wire6.BinaryReader ? input : new import_wire6.BinaryReader(input);
8785
- const end = length === void 0 ? reader.len : reader.pos + length;
8786
- const message = createBaseRegisterAdminRouteRequest_ProxyRouteOptions();
8787
- while (reader.pos < end) {
8788
- const tag = reader.uint32();
8789
- switch (tag >>> 3) {
8790
- case 1: {
8791
- if (tag !== 10) {
8792
- break;
8793
- }
8794
- message.target = reader.string();
8795
- continue;
8796
- }
8797
- case 2: {
8798
- if (tag !== 16) {
8799
- break;
8800
- }
8801
- message.changeOrigin = reader.bool();
8802
- continue;
8803
- }
8804
- case 3: {
8805
- if (tag !== 24) {
8806
- break;
8807
- }
8808
- message.secure = reader.bool();
8809
- continue;
8810
- }
8811
- case 4: {
8812
- if (tag !== 34) {
8813
- break;
8814
- }
8815
- message.context = reader.string();
8816
- continue;
8817
- }
8818
- case 5: {
8819
- if (tag !== 42) {
8820
- break;
8821
- }
8822
- message.pathRewrite = reader.string();
8823
- continue;
8824
- }
8825
- case 6: {
8826
- if (tag !== 50) {
8827
- break;
8828
- }
8829
- message.headers = reader.string();
8830
- continue;
8831
- }
8832
- case 7: {
8833
- if (tag !== 56) {
8834
- break;
8835
- }
8836
- message.proxyTimeout = reader.int32();
8837
- continue;
8838
- }
8839
- case 8: {
8840
- if (tag !== 66) {
8841
- break;
8842
- }
8843
- message.cookieDomainRewrite = reader.string();
8844
- continue;
8845
- }
8846
- case 9: {
8847
- if (tag !== 72) {
8848
- break;
8849
- }
8850
- message.autoRewrite = reader.bool();
8851
- continue;
8852
- }
8853
- case 10: {
8854
- if (tag !== 80) {
8855
- break;
8856
- }
8857
- message.followRedirects = reader.bool();
8858
- continue;
8859
- }
8860
- case 11: {
8861
- if (tag !== 88) {
8862
- break;
8863
- }
8864
- message.xfwd = reader.bool();
8865
- continue;
8866
- }
8867
- case 12: {
8868
- if (tag !== 96) {
8869
- break;
8870
- }
8871
- message.ws = reader.bool();
8872
- continue;
8873
- }
8874
- case 13: {
8875
- if (tag !== 106) {
8876
- break;
8877
- }
8878
- message.router = reader.string();
8879
- continue;
8880
- }
8881
- case 14: {
8882
- if (tag !== 112) {
8883
- break;
8884
- }
8885
- message.preserveHeaderKeyCase = reader.bool();
8886
- continue;
8887
- }
8888
- }
8889
- if ((tag & 7) === 4 || tag === 0) {
8890
- break;
8891
- }
8892
- reader.skip(tag & 7);
8893
- }
8894
- return message;
8895
- },
8896
- fromJSON(object) {
8897
- return {
8898
- target: isSet5(object.target) ? globalThis.String(object.target) : void 0,
8899
- changeOrigin: isSet5(object.changeOrigin) ? globalThis.Boolean(object.changeOrigin) : void 0,
8900
- secure: isSet5(object.secure) ? globalThis.Boolean(object.secure) : void 0,
8901
- context: isSet5(object.context) ? globalThis.String(object.context) : void 0,
8902
- pathRewrite: isSet5(object.pathRewrite) ? globalThis.String(object.pathRewrite) : void 0,
8903
- headers: isSet5(object.headers) ? globalThis.String(object.headers) : void 0,
8904
- proxyTimeout: isSet5(object.proxyTimeout) ? globalThis.Number(object.proxyTimeout) : void 0,
8905
- cookieDomainRewrite: isSet5(object.cookieDomainRewrite) ? globalThis.String(object.cookieDomainRewrite) : void 0,
8906
- autoRewrite: isSet5(object.autoRewrite) ? globalThis.Boolean(object.autoRewrite) : void 0,
8907
- followRedirects: isSet5(object.followRedirects) ? globalThis.Boolean(object.followRedirects) : void 0,
8908
- xfwd: isSet5(object.xfwd) ? globalThis.Boolean(object.xfwd) : void 0,
8909
- ws: isSet5(object.ws) ? globalThis.Boolean(object.ws) : void 0,
8910
- router: isSet5(object.router) ? globalThis.String(object.router) : void 0,
8911
- preserveHeaderKeyCase: isSet5(object.preserveHeaderKeyCase) ? globalThis.Boolean(object.preserveHeaderKeyCase) : void 0
8912
- };
8913
- },
8914
- toJSON(message) {
8915
- const obj = {};
8916
- if (message.target !== void 0) {
8917
- obj.target = message.target;
8918
- }
8919
- if (message.changeOrigin !== void 0) {
8920
- obj.changeOrigin = message.changeOrigin;
8921
- }
8922
- if (message.secure !== void 0) {
8923
- obj.secure = message.secure;
8924
- }
8925
- if (message.context !== void 0) {
8926
- obj.context = message.context;
8927
- }
8928
- if (message.pathRewrite !== void 0) {
8929
- obj.pathRewrite = message.pathRewrite;
8930
- }
8931
- if (message.headers !== void 0) {
8932
- obj.headers = message.headers;
8933
- }
8934
- if (message.proxyTimeout !== void 0) {
8935
- obj.proxyTimeout = Math.round(message.proxyTimeout);
8936
- }
8937
- if (message.cookieDomainRewrite !== void 0) {
8938
- obj.cookieDomainRewrite = message.cookieDomainRewrite;
8939
- }
8940
- if (message.autoRewrite !== void 0) {
8941
- obj.autoRewrite = message.autoRewrite;
8942
- }
8943
- if (message.followRedirects !== void 0) {
8944
- obj.followRedirects = message.followRedirects;
8945
- }
8946
- if (message.xfwd !== void 0) {
8947
- obj.xfwd = message.xfwd;
8948
- }
8949
- if (message.ws !== void 0) {
8950
- obj.ws = message.ws;
8951
- }
8952
- if (message.router !== void 0) {
8953
- obj.router = message.router;
8954
- }
8955
- if (message.preserveHeaderKeyCase !== void 0) {
8956
- obj.preserveHeaderKeyCase = message.preserveHeaderKeyCase;
8957
- }
8958
- return obj;
8959
- },
8960
- create(base) {
8961
- return RegisterAdminRouteRequest_ProxyRouteOptions.fromPartial(base ?? {});
8962
- },
8963
- fromPartial(object) {
8964
- const message = createBaseRegisterAdminRouteRequest_ProxyRouteOptions();
8965
- message.target = object.target ?? void 0;
8966
- message.changeOrigin = object.changeOrigin ?? void 0;
8967
- message.secure = object.secure ?? void 0;
8968
- message.context = object.context ?? void 0;
8969
- message.pathRewrite = object.pathRewrite ?? void 0;
8970
- message.headers = object.headers ?? void 0;
8971
- message.proxyTimeout = object.proxyTimeout ?? void 0;
8972
- message.cookieDomainRewrite = object.cookieDomainRewrite ?? void 0;
8973
- message.autoRewrite = object.autoRewrite ?? void 0;
8974
- message.followRedirects = object.followRedirects ?? void 0;
8975
- message.xfwd = object.xfwd ?? void 0;
8976
- message.ws = object.ws ?? void 0;
8977
- message.router = object.router ?? void 0;
8978
- message.preserveHeaderKeyCase = object.preserveHeaderKeyCase ?? void 0;
8730
+ message.captureRawBody = object.captureRawBody ?? void 0;
8731
+ message.captureRawHeaders = object.captureRawHeaders ?? void 0;
8979
8732
  return message;
8980
8733
  }
8981
8734
  };
@@ -9738,6 +9491,57 @@ var GetConfigRequest = {
9738
9491
  return message;
9739
9492
  }
9740
9493
  };
9494
+ function createBaseDeleteConfigRequest() {
9495
+ return { key: "" };
9496
+ }
9497
+ var DeleteConfigRequest = {
9498
+ encode(message, writer = new import_wire6.BinaryWriter()) {
9499
+ if (message.key !== "") {
9500
+ writer.uint32(10).string(message.key);
9501
+ }
9502
+ return writer;
9503
+ },
9504
+ decode(input, length) {
9505
+ const reader = input instanceof import_wire6.BinaryReader ? input : new import_wire6.BinaryReader(input);
9506
+ const end = length === void 0 ? reader.len : reader.pos + length;
9507
+ const message = createBaseDeleteConfigRequest();
9508
+ while (reader.pos < end) {
9509
+ const tag = reader.uint32();
9510
+ switch (tag >>> 3) {
9511
+ case 1: {
9512
+ if (tag !== 10) {
9513
+ break;
9514
+ }
9515
+ message.key = reader.string();
9516
+ continue;
9517
+ }
9518
+ }
9519
+ if ((tag & 7) === 4 || tag === 0) {
9520
+ break;
9521
+ }
9522
+ reader.skip(tag & 7);
9523
+ }
9524
+ return message;
9525
+ },
9526
+ fromJSON(object) {
9527
+ return { key: isSet5(object.key) ? globalThis.String(object.key) : "" };
9528
+ },
9529
+ toJSON(message) {
9530
+ const obj = {};
9531
+ if (message.key !== "") {
9532
+ obj.key = message.key;
9533
+ }
9534
+ return obj;
9535
+ },
9536
+ create(base) {
9537
+ return DeleteConfigRequest.fromPartial(base ?? {});
9538
+ },
9539
+ fromPartial(object) {
9540
+ const message = createBaseDeleteConfigRequest();
9541
+ message.key = object.key ?? "";
9542
+ return message;
9543
+ }
9544
+ };
9741
9545
  function createBaseGetRedisDetailsResponse() {
9742
9546
  return {
9743
9547
  redisHost: void 0,
@@ -10211,6 +10015,14 @@ var ConfigDefinition = {
10211
10015
  responseType: ModuleByNameResponse,
10212
10016
  responseStream: false,
10213
10017
  options: {}
10018
+ },
10019
+ deleteConfig: {
10020
+ name: "DeleteConfig",
10021
+ requestType: DeleteConfigRequest,
10022
+ requestStream: false,
10023
+ responseType: Empty,
10024
+ responseStream: false,
10025
+ options: {}
10214
10026
  }
10215
10027
  }
10216
10028
  };
@@ -13302,7 +13114,9 @@ function createBaseRequest() {
13302
13114
  bodyParams: "",
13303
13115
  urlParams: "",
13304
13116
  queryParams: "",
13305
- functionName: ""
13117
+ functionName: "",
13118
+ rawHeaders: "",
13119
+ rawBody: new Uint8Array(0)
13306
13120
  };
13307
13121
  }
13308
13122
  var Request = {
@@ -13334,6 +13148,12 @@ var Request = {
13334
13148
  if (message.functionName !== "") {
13335
13149
  writer.uint32(74).string(message.functionName);
13336
13150
  }
13151
+ if (message.rawHeaders !== "") {
13152
+ writer.uint32(82).string(message.rawHeaders);
13153
+ }
13154
+ if (message.rawBody.length !== 0) {
13155
+ writer.uint32(90).bytes(message.rawBody);
13156
+ }
13337
13157
  return writer;
13338
13158
  },
13339
13159
  decode(input, length) {
@@ -13406,6 +13226,20 @@ var Request = {
13406
13226
  message.functionName = reader.string();
13407
13227
  continue;
13408
13228
  }
13229
+ case 10: {
13230
+ if (tag !== 82) {
13231
+ break;
13232
+ }
13233
+ message.rawHeaders = reader.string();
13234
+ continue;
13235
+ }
13236
+ case 11: {
13237
+ if (tag !== 90) {
13238
+ break;
13239
+ }
13240
+ message.rawBody = reader.bytes();
13241
+ continue;
13242
+ }
13409
13243
  }
13410
13244
  if ((tag & 7) === 4 || tag === 0) {
13411
13245
  break;
@@ -13424,7 +13258,9 @@ var Request = {
13424
13258
  bodyParams: isSet8(object.bodyParams) ? globalThis.String(object.bodyParams) : "",
13425
13259
  urlParams: isSet8(object.urlParams) ? globalThis.String(object.urlParams) : "",
13426
13260
  queryParams: isSet8(object.queryParams) ? globalThis.String(object.queryParams) : "",
13427
- functionName: isSet8(object.functionName) ? globalThis.String(object.functionName) : ""
13261
+ functionName: isSet8(object.functionName) ? globalThis.String(object.functionName) : "",
13262
+ rawHeaders: isSet8(object.rawHeaders) ? globalThis.String(object.rawHeaders) : "",
13263
+ rawBody: isSet8(object.rawBody) ? bytesFromBase642(object.rawBody) : new Uint8Array(0)
13428
13264
  };
13429
13265
  },
13430
13266
  toJSON(message) {
@@ -13456,6 +13292,12 @@ var Request = {
13456
13292
  if (message.functionName !== "") {
13457
13293
  obj.functionName = message.functionName;
13458
13294
  }
13295
+ if (message.rawHeaders !== "") {
13296
+ obj.rawHeaders = message.rawHeaders;
13297
+ }
13298
+ if (message.rawBody.length !== 0) {
13299
+ obj.rawBody = base64FromBytes2(message.rawBody);
13300
+ }
13459
13301
  return obj;
13460
13302
  },
13461
13303
  create(base) {
@@ -13472,6 +13314,8 @@ var Request = {
13472
13314
  message.urlParams = object.urlParams ?? "";
13473
13315
  message.queryParams = object.queryParams ?? "";
13474
13316
  message.functionName = object.functionName ?? "";
13317
+ message.rawHeaders = object.rawHeaders ?? "";
13318
+ message.rawBody = object.rawBody ?? new Uint8Array(0);
13475
13319
  return message;
13476
13320
  }
13477
13321
  };
@@ -14092,6 +13936,29 @@ var AdminRouterDefinition = {
14092
13936
  }
14093
13937
  }
14094
13938
  };
13939
+ function bytesFromBase642(b64) {
13940
+ if (globalThis.Buffer) {
13941
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
13942
+ } else {
13943
+ const bin = globalThis.atob(b64);
13944
+ const arr = new Uint8Array(bin.length);
13945
+ for (let i = 0; i < bin.length; ++i) {
13946
+ arr[i] = bin.charCodeAt(i);
13947
+ }
13948
+ return arr;
13949
+ }
13950
+ }
13951
+ function base64FromBytes2(arr) {
13952
+ if (globalThis.Buffer) {
13953
+ return globalThis.Buffer.from(arr).toString("base64");
13954
+ } else {
13955
+ const bin = [];
13956
+ arr.forEach((byte) => {
13957
+ bin.push(globalThis.String.fromCharCode(byte));
13958
+ });
13959
+ return globalThis.btoa(bin.join(""));
13960
+ }
13961
+ }
14095
13962
  function isSet8(value) {
14096
13963
  return value !== null && value !== void 0;
14097
13964
  }
@@ -14578,7 +14445,9 @@ function createBaseRegisterConduitRouteRequest_ConduitRouteOptions() {
14578
14445
  errors: [],
14579
14446
  mcp: void 0,
14580
14447
  strictParams: void 0,
14581
- rateLimit: void 0
14448
+ rateLimit: void 0,
14449
+ captureRawBody: void 0,
14450
+ captureRawHeaders: void 0
14582
14451
  };
14583
14452
  }
14584
14453
  var RegisterConduitRouteRequest_ConduitRouteOptions = {
@@ -14622,6 +14491,12 @@ var RegisterConduitRouteRequest_ConduitRouteOptions = {
14622
14491
  if (message.rateLimit !== void 0) {
14623
14492
  writer.uint32(106).string(message.rateLimit);
14624
14493
  }
14494
+ if (message.captureRawBody !== void 0) {
14495
+ writer.uint32(112).bool(message.captureRawBody);
14496
+ }
14497
+ if (message.captureRawHeaders !== void 0) {
14498
+ writer.uint32(120).bool(message.captureRawHeaders);
14499
+ }
14625
14500
  return writer;
14626
14501
  },
14627
14502
  decode(input, length) {
@@ -14722,6 +14597,20 @@ var RegisterConduitRouteRequest_ConduitRouteOptions = {
14722
14597
  message.rateLimit = reader.string();
14723
14598
  continue;
14724
14599
  }
14600
+ case 14: {
14601
+ if (tag !== 112) {
14602
+ break;
14603
+ }
14604
+ message.captureRawBody = reader.bool();
14605
+ continue;
14606
+ }
14607
+ case 15: {
14608
+ if (tag !== 120) {
14609
+ break;
14610
+ }
14611
+ message.captureRawHeaders = reader.bool();
14612
+ continue;
14613
+ }
14725
14614
  }
14726
14615
  if ((tag & 7) === 4 || tag === 0) {
14727
14616
  break;
@@ -14744,7 +14633,9 @@ var RegisterConduitRouteRequest_ConduitRouteOptions = {
14744
14633
  errors: globalThis.Array.isArray(object?.errors) ? object.errors.map((e) => RegisterConduitRouteRequest_ErrorDefinition.fromJSON(e)) : [],
14745
14634
  mcp: isSet9(object.mcp) ? globalThis.Boolean(object.mcp) : void 0,
14746
14635
  strictParams: isSet9(object.strictParams) ? globalThis.Boolean(object.strictParams) : void 0,
14747
- rateLimit: isSet9(object.rateLimit) ? globalThis.String(object.rateLimit) : void 0
14636
+ rateLimit: isSet9(object.rateLimit) ? globalThis.String(object.rateLimit) : void 0,
14637
+ captureRawBody: isSet9(object.captureRawBody) ? globalThis.Boolean(object.captureRawBody) : void 0,
14638
+ captureRawHeaders: isSet9(object.captureRawHeaders) ? globalThis.Boolean(object.captureRawHeaders) : void 0
14748
14639
  };
14749
14640
  },
14750
14641
  toJSON(message) {
@@ -14788,6 +14679,12 @@ var RegisterConduitRouteRequest_ConduitRouteOptions = {
14788
14679
  if (message.rateLimit !== void 0) {
14789
14680
  obj.rateLimit = message.rateLimit;
14790
14681
  }
14682
+ if (message.captureRawBody !== void 0) {
14683
+ obj.captureRawBody = message.captureRawBody;
14684
+ }
14685
+ if (message.captureRawHeaders !== void 0) {
14686
+ obj.captureRawHeaders = message.captureRawHeaders;
14687
+ }
14791
14688
  return obj;
14792
14689
  },
14793
14690
  create(base) {
@@ -14808,6 +14705,8 @@ var RegisterConduitRouteRequest_ConduitRouteOptions = {
14808
14705
  message.mcp = object.mcp ?? void 0;
14809
14706
  message.strictParams = object.strictParams ?? void 0;
14810
14707
  message.rateLimit = object.rateLimit ?? void 0;
14708
+ message.captureRawBody = object.captureRawBody ?? void 0;
14709
+ message.captureRawHeaders = object.captureRawHeaders ?? void 0;
14811
14710
  return message;
14812
14711
  }
14813
14712
  };
@@ -16974,6 +16873,9 @@ var Config = class extends ConduitModule {
16974
16873
  return JSON.parse(res.data);
16975
16874
  });
16976
16875
  }
16876
+ delete(name) {
16877
+ return this.client.deleteConfig({ key: name });
16878
+ }
16977
16879
  configure(config, schema, override) {
16978
16880
  const request = {
16979
16881
  config: JSON.stringify(config),
@@ -18498,6 +18400,7 @@ var ConduitGrpcSdk = class _ConduitGrpcSdk {
18498
18400
  DatabaseProviderDefinition,
18499
18401
  Decision,
18500
18402
  DeleteAllRelationsRequest,
18403
+ DeleteConfigRequest,
18501
18404
  DeleteFileResponse,
18502
18405
  DeleteResourceRequest,
18503
18406
  DeleteRoomRequest,
@@ -18576,7 +18479,6 @@ var ConduitGrpcSdk = class _ConduitGrpcSdk {
18576
18479
  RegisterAdminRouteRequest_ConduitRouteReturnDefinition,
18577
18480
  RegisterAdminRouteRequest_ErrorDefinition,
18578
18481
  RegisterAdminRouteRequest_PathDefinition,
18579
- RegisterAdminRouteRequest_ProxyRouteOptions,
18580
18482
  RegisterCommunicationTemplateRequest,
18581
18483
  RegisterCommunicationTemplateRequest_CommunicationTemplate,
18582
18484
  RegisterCommunicationTemplateRequest_CommunicationTemplate_EmailTemplate,