@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 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
  };
@@ -16270,6 +16169,10 @@ var ConduitModule = class {
16270
16169
  this._serviceUrl = _serviceUrl;
16271
16170
  this._grpcToken = _grpcToken;
16272
16171
  }
16172
+ _clientName;
16173
+ _serviceName;
16174
+ _serviceUrl;
16175
+ _grpcToken;
16273
16176
  channel;
16274
16177
  protoPath;
16275
16178
  type;
@@ -16454,6 +16357,7 @@ var Storage = class extends ConduitModule {
16454
16357
  this.moduleName = moduleName;
16455
16358
  this.initializeClient(StorageDefinition);
16456
16359
  }
16360
+ moduleName;
16457
16361
  getFile(id, userIdOrOptions, scope) {
16458
16362
  const options = normalizeAuthzOptions(userIdOrOptions, scope);
16459
16363
  return this.client.getFile({ id, ...options });
@@ -16562,6 +16466,7 @@ var Router = class extends ConduitModule {
16562
16466
  this.moduleName = moduleName;
16563
16467
  this.initializeClient(RouterDefinition);
16564
16468
  }
16469
+ moduleName;
16565
16470
  register(paths, url) {
16566
16471
  const request = {
16567
16472
  routes: paths,
@@ -16588,6 +16493,7 @@ var Email = class extends ConduitModule {
16588
16493
  this.moduleName = moduleName;
16589
16494
  this.initializeClient(CommunicationsDefinition);
16590
16495
  }
16496
+ moduleName;
16591
16497
  registerTemplate(template) {
16592
16498
  return this.client.registerTemplate({
16593
16499
  name: template.name,
@@ -16653,6 +16559,7 @@ var DatabaseProvider = class extends ConduitModule {
16653
16559
  this.moduleName = moduleName;
16654
16560
  this.initializeClient(DatabaseProviderDefinition);
16655
16561
  }
16562
+ moduleName;
16656
16563
  getSchema(schemaName) {
16657
16564
  return this.client.getSchema({ schemaName }).then((res) => {
16658
16565
  return {
@@ -16942,6 +16849,7 @@ var Config = class extends ConduitModule {
16942
16849
  this._serviceHealthStatusGetter = serviceHealthStatusGetter;
16943
16850
  this.emitter.setMaxListeners(150);
16944
16851
  }
16852
+ url;
16945
16853
  emitter = new import_events2.EventEmitter();
16946
16854
  coreLive = false;
16947
16855
  _serviceHealthStatusGetter;
@@ -16965,6 +16873,9 @@ var Config = class extends ConduitModule {
16965
16873
  return JSON.parse(res.data);
16966
16874
  });
16967
16875
  }
16876
+ delete(name) {
16877
+ return this.client.deleteConfig({ key: name });
16878
+ }
16968
16879
  configure(config, schema, override) {
16969
16880
  const request = {
16970
16881
  config: JSON.stringify(config),
@@ -17065,6 +16976,7 @@ var Core = class extends ConduitModule {
17065
16976
  this.moduleName = moduleName;
17066
16977
  this.initializeClient(CoreDefinition);
17067
16978
  }
16979
+ moduleName;
17068
16980
  };
17069
16981
 
17070
16982
  // src/modules/admin/index.ts
@@ -17074,6 +16986,7 @@ var Admin = class extends ConduitModule {
17074
16986
  this.moduleName = moduleName;
17075
16987
  this.initializeClient(AdminDefinition);
17076
16988
  }
16989
+ moduleName;
17077
16990
  register(paths, serverUrl) {
17078
16991
  const request = {
17079
16992
  routes: paths,
@@ -17098,6 +17011,7 @@ var PushNotifications = class extends ConduitModule {
17098
17011
  this.moduleName = moduleName;
17099
17012
  this.initializeClient(CommunicationsDefinition);
17100
17013
  }
17014
+ moduleName;
17101
17015
  sendNotificationToken(token, platform, userId) {
17102
17016
  return this.client.setNotificationToken({
17103
17017
  token,
@@ -17156,6 +17070,7 @@ var SMS = class extends ConduitModule {
17156
17070
  this.moduleName = moduleName;
17157
17071
  this.initializeClient(CommunicationsDefinition);
17158
17072
  }
17073
+ moduleName;
17159
17074
  sendSms(to, message) {
17160
17075
  return this.client.sendSms({ to, message });
17161
17076
  }
@@ -17174,6 +17089,7 @@ var Chat = class extends ConduitModule {
17174
17089
  this.moduleName = moduleName;
17175
17090
  this.initializeClient(ChatDefinition);
17176
17091
  }
17092
+ moduleName;
17177
17093
  sendMessage(messageData) {
17178
17094
  return this.client.sendMessage(messageData);
17179
17095
  }
@@ -17192,6 +17108,7 @@ var Authorization = class extends ConduitModule {
17192
17108
  this.moduleName = moduleName;
17193
17109
  this.initializeClient(AuthorizationDefinition);
17194
17110
  }
17111
+ moduleName;
17195
17112
  defineResource(data) {
17196
17113
  return this.client.defineResource(data);
17197
17114
  }
@@ -17240,6 +17157,7 @@ var Authentication = class extends ConduitModule {
17240
17157
  this.moduleName = moduleName;
17241
17158
  this.initializeClient(AuthenticationDefinition);
17242
17159
  }
17160
+ moduleName;
17243
17161
  userLogin(userId, clientId) {
17244
17162
  return this.client.userLogin({ userId, clientId });
17245
17163
  }
@@ -17310,6 +17228,7 @@ var Communications = class extends ConduitModule {
17310
17228
  this.moduleName = moduleName;
17311
17229
  this.initializeClient(CommunicationsDefinition);
17312
17230
  }
17231
+ moduleName;
17313
17232
  // Legacy Email methods
17314
17233
  registerTemplate(template) {
17315
17234
  return this.client.registerTemplate({
@@ -18481,6 +18400,7 @@ var ConduitGrpcSdk = class _ConduitGrpcSdk {
18481
18400
  DatabaseProviderDefinition,
18482
18401
  Decision,
18483
18402
  DeleteAllRelationsRequest,
18403
+ DeleteConfigRequest,
18484
18404
  DeleteFileResponse,
18485
18405
  DeleteResourceRequest,
18486
18406
  DeleteRoomRequest,
@@ -18559,7 +18479,6 @@ var ConduitGrpcSdk = class _ConduitGrpcSdk {
18559
18479
  RegisterAdminRouteRequest_ConduitRouteReturnDefinition,
18560
18480
  RegisterAdminRouteRequest_ErrorDefinition,
18561
18481
  RegisterAdminRouteRequest_PathDefinition,
18562
- RegisterAdminRouteRequest_ProxyRouteOptions,
18563
18482
  RegisterCommunicationTemplateRequest,
18564
18483
  RegisterCommunicationTemplateRequest_CommunicationTemplate,
18565
18484
  RegisterCommunicationTemplateRequest_CommunicationTemplate_EmailTemplate,