@conduitplatform/grpc-sdk 0.16.8 → 0.16.9

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.esm.js CHANGED
@@ -2,6 +2,7 @@ import { Metadata, createChannel, createClientFactory } from 'nice-grpc';
2
2
  import { retryMiddleware } from 'nice-grpc-client-middleware-retry';
3
3
  import _m0 from 'protobufjs/minimal.js';
4
4
  import { EventEmitter } from 'events';
5
+ import { isNil } from 'lodash-es';
5
6
  import crypto from 'crypto';
6
7
  import fs from 'fs-extra';
7
8
  import { Cluster, Redis } from 'ioredis';
@@ -205,7 +206,7 @@ const UserLoginRequest = {
205
206
  },
206
207
  };
207
208
  function createBaseUserCreateRequest() {
208
- return { email: "", password: undefined, verify: false };
209
+ return { email: "", password: undefined, verify: false, anonymousId: undefined };
209
210
  }
210
211
  const UserCreateRequest = {
211
212
  encode(message, writer = _m0.Writer.create()) {
@@ -218,6 +219,9 @@ const UserCreateRequest = {
218
219
  if (message.verify === true) {
219
220
  writer.uint32(24).bool(message.verify);
220
221
  }
222
+ if (message.anonymousId !== undefined) {
223
+ writer.uint32(34).string(message.anonymousId);
224
+ }
221
225
  return writer;
222
226
  },
223
227
  decode(input, length) {
@@ -245,6 +249,12 @@ const UserCreateRequest = {
245
249
  }
246
250
  message.verify = reader.bool();
247
251
  continue;
252
+ case 4:
253
+ if (tag !== 34) {
254
+ break;
255
+ }
256
+ message.anonymousId = reader.string();
257
+ continue;
248
258
  }
249
259
  if ((tag & 7) === 4 || tag === 0) {
250
260
  break;
@@ -258,6 +268,7 @@ const UserCreateRequest = {
258
268
  email: isSet$b(object.email) ? globalThis.String(object.email) : "",
259
269
  password: isSet$b(object.password) ? globalThis.String(object.password) : undefined,
260
270
  verify: isSet$b(object.verify) ? globalThis.Boolean(object.verify) : false,
271
+ anonymousId: isSet$b(object.anonymousId) ? globalThis.String(object.anonymousId) : undefined,
261
272
  };
262
273
  },
263
274
  toJSON(message) {
@@ -271,6 +282,9 @@ const UserCreateRequest = {
271
282
  if (message.verify === true) {
272
283
  obj.verify = message.verify;
273
284
  }
285
+ if (message.anonymousId !== undefined) {
286
+ obj.anonymousId = message.anonymousId;
287
+ }
274
288
  return obj;
275
289
  },
276
290
  create(base) {
@@ -281,6 +295,7 @@ const UserCreateRequest = {
281
295
  message.email = object.email ?? "";
282
296
  message.password = object.password ?? undefined;
283
297
  message.verify = object.verify ?? false;
298
+ message.anonymousId = object.anonymousId ?? undefined;
284
299
  return message;
285
300
  },
286
301
  };
@@ -1090,6 +1105,56 @@ const ValidateAccessTokenResponse = {
1090
1105
  return message;
1091
1106
  },
1092
1107
  };
1108
+ function createBaseAnonymousUserCreateRequest() {
1109
+ return { clientId: "" };
1110
+ }
1111
+ const AnonymousUserCreateRequest = {
1112
+ encode(message, writer = _m0.Writer.create()) {
1113
+ if (message.clientId !== "") {
1114
+ writer.uint32(10).string(message.clientId);
1115
+ }
1116
+ return writer;
1117
+ },
1118
+ decode(input, length) {
1119
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
1120
+ let end = length === undefined ? reader.len : reader.pos + length;
1121
+ const message = createBaseAnonymousUserCreateRequest();
1122
+ while (reader.pos < end) {
1123
+ const tag = reader.uint32();
1124
+ switch (tag >>> 3) {
1125
+ case 1:
1126
+ if (tag !== 10) {
1127
+ break;
1128
+ }
1129
+ message.clientId = reader.string();
1130
+ continue;
1131
+ }
1132
+ if ((tag & 7) === 4 || tag === 0) {
1133
+ break;
1134
+ }
1135
+ reader.skipType(tag & 7);
1136
+ }
1137
+ return message;
1138
+ },
1139
+ fromJSON(object) {
1140
+ return { clientId: isSet$b(object.clientId) ? globalThis.String(object.clientId) : "" };
1141
+ },
1142
+ toJSON(message) {
1143
+ const obj = {};
1144
+ if (message.clientId !== "") {
1145
+ obj.clientId = message.clientId;
1146
+ }
1147
+ return obj;
1148
+ },
1149
+ create(base) {
1150
+ return AnonymousUserCreateRequest.fromPartial(base ?? {});
1151
+ },
1152
+ fromPartial(object) {
1153
+ const message = createBaseAnonymousUserCreateRequest();
1154
+ message.clientId = object.clientId ?? "";
1155
+ return message;
1156
+ },
1157
+ };
1093
1158
  const AuthenticationDefinition = {
1094
1159
  name: "Authentication",
1095
1160
  fullName: "authentication.Authentication",
@@ -1110,6 +1175,14 @@ const AuthenticationDefinition = {
1110
1175
  responseStream: false,
1111
1176
  options: {},
1112
1177
  },
1178
+ anonymousUserCreate: {
1179
+ name: "AnonymousUserCreate",
1180
+ requestType: AnonymousUserCreateRequest,
1181
+ requestStream: false,
1182
+ responseType: UserLoginResponse,
1183
+ responseStream: false,
1184
+ options: {},
1185
+ },
1113
1186
  changePass: {
1114
1187
  name: "ChangePass",
1115
1188
  requestType: UserChangePass,
@@ -7616,6 +7689,206 @@ const SendEmailResponse = {
7616
7689
  return message;
7617
7690
  },
7618
7691
  };
7692
+ function createBaseResendEmailRequest() {
7693
+ return { emailRecordId: "" };
7694
+ }
7695
+ const ResendEmailRequest = {
7696
+ encode(message, writer = _m0.Writer.create()) {
7697
+ if (message.emailRecordId !== "") {
7698
+ writer.uint32(10).string(message.emailRecordId);
7699
+ }
7700
+ return writer;
7701
+ },
7702
+ decode(input, length) {
7703
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7704
+ let end = length === undefined ? reader.len : reader.pos + length;
7705
+ const message = createBaseResendEmailRequest();
7706
+ while (reader.pos < end) {
7707
+ const tag = reader.uint32();
7708
+ switch (tag >>> 3) {
7709
+ case 1:
7710
+ if (tag !== 10) {
7711
+ break;
7712
+ }
7713
+ message.emailRecordId = reader.string();
7714
+ continue;
7715
+ }
7716
+ if ((tag & 7) === 4 || tag === 0) {
7717
+ break;
7718
+ }
7719
+ reader.skipType(tag & 7);
7720
+ }
7721
+ return message;
7722
+ },
7723
+ fromJSON(object) {
7724
+ return { emailRecordId: isSet$6(object.emailRecordId) ? globalThis.String(object.emailRecordId) : "" };
7725
+ },
7726
+ toJSON(message) {
7727
+ const obj = {};
7728
+ if (message.emailRecordId !== "") {
7729
+ obj.emailRecordId = message.emailRecordId;
7730
+ }
7731
+ return obj;
7732
+ },
7733
+ create(base) {
7734
+ return ResendEmailRequest.fromPartial(base ?? {});
7735
+ },
7736
+ fromPartial(object) {
7737
+ const message = createBaseResendEmailRequest();
7738
+ message.emailRecordId = object.emailRecordId ?? "";
7739
+ return message;
7740
+ },
7741
+ };
7742
+ function createBaseResendEmailResponse() {
7743
+ return { sentMessageInfo: "" };
7744
+ }
7745
+ const ResendEmailResponse = {
7746
+ encode(message, writer = _m0.Writer.create()) {
7747
+ if (message.sentMessageInfo !== "") {
7748
+ writer.uint32(10).string(message.sentMessageInfo);
7749
+ }
7750
+ return writer;
7751
+ },
7752
+ decode(input, length) {
7753
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7754
+ let end = length === undefined ? reader.len : reader.pos + length;
7755
+ const message = createBaseResendEmailResponse();
7756
+ while (reader.pos < end) {
7757
+ const tag = reader.uint32();
7758
+ switch (tag >>> 3) {
7759
+ case 1:
7760
+ if (tag !== 10) {
7761
+ break;
7762
+ }
7763
+ message.sentMessageInfo = reader.string();
7764
+ continue;
7765
+ }
7766
+ if ((tag & 7) === 4 || tag === 0) {
7767
+ break;
7768
+ }
7769
+ reader.skipType(tag & 7);
7770
+ }
7771
+ return message;
7772
+ },
7773
+ fromJSON(object) {
7774
+ return { sentMessageInfo: isSet$6(object.sentMessageInfo) ? globalThis.String(object.sentMessageInfo) : "" };
7775
+ },
7776
+ toJSON(message) {
7777
+ const obj = {};
7778
+ if (message.sentMessageInfo !== "") {
7779
+ obj.sentMessageInfo = message.sentMessageInfo;
7780
+ }
7781
+ return obj;
7782
+ },
7783
+ create(base) {
7784
+ return ResendEmailResponse.fromPartial(base ?? {});
7785
+ },
7786
+ fromPartial(object) {
7787
+ const message = createBaseResendEmailResponse();
7788
+ message.sentMessageInfo = object.sentMessageInfo ?? "";
7789
+ return message;
7790
+ },
7791
+ };
7792
+ function createBaseGetEmailStatusRequest() {
7793
+ return { messageId: "" };
7794
+ }
7795
+ const GetEmailStatusRequest = {
7796
+ encode(message, writer = _m0.Writer.create()) {
7797
+ if (message.messageId !== "") {
7798
+ writer.uint32(10).string(message.messageId);
7799
+ }
7800
+ return writer;
7801
+ },
7802
+ decode(input, length) {
7803
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7804
+ let end = length === undefined ? reader.len : reader.pos + length;
7805
+ const message = createBaseGetEmailStatusRequest();
7806
+ while (reader.pos < end) {
7807
+ const tag = reader.uint32();
7808
+ switch (tag >>> 3) {
7809
+ case 1:
7810
+ if (tag !== 10) {
7811
+ break;
7812
+ }
7813
+ message.messageId = reader.string();
7814
+ continue;
7815
+ }
7816
+ if ((tag & 7) === 4 || tag === 0) {
7817
+ break;
7818
+ }
7819
+ reader.skipType(tag & 7);
7820
+ }
7821
+ return message;
7822
+ },
7823
+ fromJSON(object) {
7824
+ return { messageId: isSet$6(object.messageId) ? globalThis.String(object.messageId) : "" };
7825
+ },
7826
+ toJSON(message) {
7827
+ const obj = {};
7828
+ if (message.messageId !== "") {
7829
+ obj.messageId = message.messageId;
7830
+ }
7831
+ return obj;
7832
+ },
7833
+ create(base) {
7834
+ return GetEmailStatusRequest.fromPartial(base ?? {});
7835
+ },
7836
+ fromPartial(object) {
7837
+ const message = createBaseGetEmailStatusRequest();
7838
+ message.messageId = object.messageId ?? "";
7839
+ return message;
7840
+ },
7841
+ };
7842
+ function createBaseGetEmailStatusResponse() {
7843
+ return { statusInfo: "" };
7844
+ }
7845
+ const GetEmailStatusResponse = {
7846
+ encode(message, writer = _m0.Writer.create()) {
7847
+ if (message.statusInfo !== "") {
7848
+ writer.uint32(10).string(message.statusInfo);
7849
+ }
7850
+ return writer;
7851
+ },
7852
+ decode(input, length) {
7853
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7854
+ let end = length === undefined ? reader.len : reader.pos + length;
7855
+ const message = createBaseGetEmailStatusResponse();
7856
+ while (reader.pos < end) {
7857
+ const tag = reader.uint32();
7858
+ switch (tag >>> 3) {
7859
+ case 1:
7860
+ if (tag !== 10) {
7861
+ break;
7862
+ }
7863
+ message.statusInfo = reader.string();
7864
+ continue;
7865
+ }
7866
+ if ((tag & 7) === 4 || tag === 0) {
7867
+ break;
7868
+ }
7869
+ reader.skipType(tag & 7);
7870
+ }
7871
+ return message;
7872
+ },
7873
+ fromJSON(object) {
7874
+ return { statusInfo: isSet$6(object.statusInfo) ? globalThis.String(object.statusInfo) : "" };
7875
+ },
7876
+ toJSON(message) {
7877
+ const obj = {};
7878
+ if (message.statusInfo !== "") {
7879
+ obj.statusInfo = message.statusInfo;
7880
+ }
7881
+ return obj;
7882
+ },
7883
+ create(base) {
7884
+ return GetEmailStatusResponse.fromPartial(base ?? {});
7885
+ },
7886
+ fromPartial(object) {
7887
+ const message = createBaseGetEmailStatusResponse();
7888
+ message.statusInfo = object.statusInfo ?? "";
7889
+ return message;
7890
+ },
7891
+ };
7619
7892
  const EmailDefinition = {
7620
7893
  name: "Email",
7621
7894
  fullName: "email.Email",
@@ -7636,6 +7909,22 @@ const EmailDefinition = {
7636
7909
  responseStream: false,
7637
7910
  options: {},
7638
7911
  },
7912
+ resendEmail: {
7913
+ name: "ResendEmail",
7914
+ requestType: ResendEmailRequest,
7915
+ requestStream: false,
7916
+ responseType: ResendEmailResponse,
7917
+ responseStream: false,
7918
+ options: {},
7919
+ },
7920
+ getEmailStatus: {
7921
+ name: "GetEmailStatus",
7922
+ requestType: GetEmailStatusRequest,
7923
+ requestStream: false,
7924
+ responseType: GetEmailStatusResponse,
7925
+ responseStream: false,
7926
+ options: {},
7927
+ },
7639
7928
  },
7640
7929
  };
7641
7930
  function isSet$6(value) {
@@ -10842,7 +11131,7 @@ const GetFileUrlResponse = {
10842
11131
  };
10843
11132
  function createBaseCreateFileRequest() {
10844
11133
  return {
10845
- name: "",
11134
+ name: undefined,
10846
11135
  data: "",
10847
11136
  isPublic: false,
10848
11137
  folder: undefined,
@@ -10850,11 +11139,12 @@ function createBaseCreateFileRequest() {
10850
11139
  mimeType: undefined,
10851
11140
  userId: undefined,
10852
11141
  scope: undefined,
11142
+ alias: undefined,
10853
11143
  };
10854
11144
  }
10855
11145
  const CreateFileRequest = {
10856
11146
  encode(message, writer = _m0.Writer.create()) {
10857
- if (message.name !== "") {
11147
+ if (message.name !== undefined) {
10858
11148
  writer.uint32(10).string(message.name);
10859
11149
  }
10860
11150
  if (message.data !== "") {
@@ -10878,6 +11168,9 @@ const CreateFileRequest = {
10878
11168
  if (message.scope !== undefined) {
10879
11169
  writer.uint32(66).string(message.scope);
10880
11170
  }
11171
+ if (message.alias !== undefined) {
11172
+ writer.uint32(74).string(message.alias);
11173
+ }
10881
11174
  return writer;
10882
11175
  },
10883
11176
  decode(input, length) {
@@ -10935,6 +11228,12 @@ const CreateFileRequest = {
10935
11228
  }
10936
11229
  message.scope = reader.string();
10937
11230
  continue;
11231
+ case 9:
11232
+ if (tag !== 74) {
11233
+ break;
11234
+ }
11235
+ message.alias = reader.string();
11236
+ continue;
10938
11237
  }
10939
11238
  if ((tag & 7) === 4 || tag === 0) {
10940
11239
  break;
@@ -10945,7 +11244,7 @@ const CreateFileRequest = {
10945
11244
  },
10946
11245
  fromJSON(object) {
10947
11246
  return {
10948
- name: isSet(object.name) ? globalThis.String(object.name) : "",
11247
+ name: isSet(object.name) ? globalThis.String(object.name) : undefined,
10949
11248
  data: isSet(object.data) ? globalThis.String(object.data) : "",
10950
11249
  isPublic: isSet(object.isPublic) ? globalThis.Boolean(object.isPublic) : false,
10951
11250
  folder: isSet(object.folder) ? globalThis.String(object.folder) : undefined,
@@ -10953,11 +11252,12 @@ const CreateFileRequest = {
10953
11252
  mimeType: isSet(object.mimeType) ? globalThis.String(object.mimeType) : undefined,
10954
11253
  userId: isSet(object.userId) ? globalThis.String(object.userId) : undefined,
10955
11254
  scope: isSet(object.scope) ? globalThis.String(object.scope) : undefined,
11255
+ alias: isSet(object.alias) ? globalThis.String(object.alias) : undefined,
10956
11256
  };
10957
11257
  },
10958
11258
  toJSON(message) {
10959
11259
  const obj = {};
10960
- if (message.name !== "") {
11260
+ if (message.name !== undefined) {
10961
11261
  obj.name = message.name;
10962
11262
  }
10963
11263
  if (message.data !== "") {
@@ -10981,6 +11281,9 @@ const CreateFileRequest = {
10981
11281
  if (message.scope !== undefined) {
10982
11282
  obj.scope = message.scope;
10983
11283
  }
11284
+ if (message.alias !== undefined) {
11285
+ obj.alias = message.alias;
11286
+ }
10984
11287
  return obj;
10985
11288
  },
10986
11289
  create(base) {
@@ -10988,7 +11291,7 @@ const CreateFileRequest = {
10988
11291
  },
10989
11292
  fromPartial(object) {
10990
11293
  const message = createBaseCreateFileRequest();
10991
- message.name = object.name ?? "";
11294
+ message.name = object.name ?? undefined;
10992
11295
  message.data = object.data ?? "";
10993
11296
  message.isPublic = object.isPublic ?? false;
10994
11297
  message.folder = object.folder ?? undefined;
@@ -10996,6 +11299,7 @@ const CreateFileRequest = {
10996
11299
  message.mimeType = object.mimeType ?? undefined;
10997
11300
  message.userId = object.userId ?? undefined;
10998
11301
  message.scope = object.scope ?? undefined;
11302
+ message.alias = object.alias ?? undefined;
10999
11303
  return message;
11000
11304
  },
11001
11305
  };
@@ -11009,6 +11313,7 @@ function createBaseUpdateFileRequest() {
11009
11313
  mimeType: undefined,
11010
11314
  userId: undefined,
11011
11315
  scope: undefined,
11316
+ alias: undefined,
11012
11317
  };
11013
11318
  }
11014
11319
  const UpdateFileRequest = {
@@ -11037,6 +11342,9 @@ const UpdateFileRequest = {
11037
11342
  if (message.scope !== undefined) {
11038
11343
  writer.uint32(66).string(message.scope);
11039
11344
  }
11345
+ if (message.alias !== undefined) {
11346
+ writer.uint32(74).string(message.alias);
11347
+ }
11040
11348
  return writer;
11041
11349
  },
11042
11350
  decode(input, length) {
@@ -11094,6 +11402,12 @@ const UpdateFileRequest = {
11094
11402
  }
11095
11403
  message.scope = reader.string();
11096
11404
  continue;
11405
+ case 9:
11406
+ if (tag !== 74) {
11407
+ break;
11408
+ }
11409
+ message.alias = reader.string();
11410
+ continue;
11097
11411
  }
11098
11412
  if ((tag & 7) === 4 || tag === 0) {
11099
11413
  break;
@@ -11112,6 +11426,7 @@ const UpdateFileRequest = {
11112
11426
  mimeType: isSet(object.mimeType) ? globalThis.String(object.mimeType) : undefined,
11113
11427
  userId: isSet(object.userId) ? globalThis.String(object.userId) : undefined,
11114
11428
  scope: isSet(object.scope) ? globalThis.String(object.scope) : undefined,
11429
+ alias: isSet(object.alias) ? globalThis.String(object.alias) : undefined,
11115
11430
  };
11116
11431
  },
11117
11432
  toJSON(message) {
@@ -11140,6 +11455,9 @@ const UpdateFileRequest = {
11140
11455
  if (message.scope !== undefined) {
11141
11456
  obj.scope = message.scope;
11142
11457
  }
11458
+ if (message.alias !== undefined) {
11459
+ obj.alias = message.alias;
11460
+ }
11143
11461
  return obj;
11144
11462
  },
11145
11463
  create(base) {
@@ -11155,6 +11473,7 @@ const UpdateFileRequest = {
11155
11473
  message.mimeType = object.mimeType ?? undefined;
11156
11474
  message.userId = object.userId ?? undefined;
11157
11475
  message.scope = object.scope ?? undefined;
11476
+ message.alias = object.alias ?? undefined;
11158
11477
  return message;
11159
11478
  },
11160
11479
  };
@@ -11340,7 +11659,7 @@ const DeleteFileResponse = {
11340
11659
  };
11341
11660
  function createBaseCreateFileByUrlRequest() {
11342
11661
  return {
11343
- name: "",
11662
+ name: undefined,
11344
11663
  isPublic: false,
11345
11664
  folder: undefined,
11346
11665
  container: undefined,
@@ -11348,11 +11667,12 @@ function createBaseCreateFileByUrlRequest() {
11348
11667
  size: undefined,
11349
11668
  userId: undefined,
11350
11669
  scope: undefined,
11670
+ alias: undefined,
11351
11671
  };
11352
11672
  }
11353
11673
  const CreateFileByUrlRequest = {
11354
11674
  encode(message, writer = _m0.Writer.create()) {
11355
- if (message.name !== "") {
11675
+ if (message.name !== undefined) {
11356
11676
  writer.uint32(10).string(message.name);
11357
11677
  }
11358
11678
  if (message.isPublic === true) {
@@ -11376,6 +11696,9 @@ const CreateFileByUrlRequest = {
11376
11696
  if (message.scope !== undefined) {
11377
11697
  writer.uint32(66).string(message.scope);
11378
11698
  }
11699
+ if (message.alias !== undefined) {
11700
+ writer.uint32(74).string(message.alias);
11701
+ }
11379
11702
  return writer;
11380
11703
  },
11381
11704
  decode(input, length) {
@@ -11433,6 +11756,12 @@ const CreateFileByUrlRequest = {
11433
11756
  }
11434
11757
  message.scope = reader.string();
11435
11758
  continue;
11759
+ case 9:
11760
+ if (tag !== 74) {
11761
+ break;
11762
+ }
11763
+ message.alias = reader.string();
11764
+ continue;
11436
11765
  }
11437
11766
  if ((tag & 7) === 4 || tag === 0) {
11438
11767
  break;
@@ -11443,7 +11772,7 @@ const CreateFileByUrlRequest = {
11443
11772
  },
11444
11773
  fromJSON(object) {
11445
11774
  return {
11446
- name: isSet(object.name) ? globalThis.String(object.name) : "",
11775
+ name: isSet(object.name) ? globalThis.String(object.name) : undefined,
11447
11776
  isPublic: isSet(object.isPublic) ? globalThis.Boolean(object.isPublic) : false,
11448
11777
  folder: isSet(object.folder) ? globalThis.String(object.folder) : undefined,
11449
11778
  container: isSet(object.container) ? globalThis.String(object.container) : undefined,
@@ -11451,11 +11780,12 @@ const CreateFileByUrlRequest = {
11451
11780
  size: isSet(object.size) ? globalThis.Number(object.size) : undefined,
11452
11781
  userId: isSet(object.userId) ? globalThis.String(object.userId) : undefined,
11453
11782
  scope: isSet(object.scope) ? globalThis.String(object.scope) : undefined,
11783
+ alias: isSet(object.alias) ? globalThis.String(object.alias) : undefined,
11454
11784
  };
11455
11785
  },
11456
11786
  toJSON(message) {
11457
11787
  const obj = {};
11458
- if (message.name !== "") {
11788
+ if (message.name !== undefined) {
11459
11789
  obj.name = message.name;
11460
11790
  }
11461
11791
  if (message.isPublic === true) {
@@ -11479,6 +11809,9 @@ const CreateFileByUrlRequest = {
11479
11809
  if (message.scope !== undefined) {
11480
11810
  obj.scope = message.scope;
11481
11811
  }
11812
+ if (message.alias !== undefined) {
11813
+ obj.alias = message.alias;
11814
+ }
11482
11815
  return obj;
11483
11816
  },
11484
11817
  create(base) {
@@ -11486,7 +11819,7 @@ const CreateFileByUrlRequest = {
11486
11819
  },
11487
11820
  fromPartial(object) {
11488
11821
  const message = createBaseCreateFileByUrlRequest();
11489
- message.name = object.name ?? "";
11822
+ message.name = object.name ?? undefined;
11490
11823
  message.isPublic = object.isPublic ?? false;
11491
11824
  message.folder = object.folder ?? undefined;
11492
11825
  message.container = object.container ?? undefined;
@@ -11494,6 +11827,7 @@ const CreateFileByUrlRequest = {
11494
11827
  message.size = object.size ?? undefined;
11495
11828
  message.userId = object.userId ?? undefined;
11496
11829
  message.scope = object.scope ?? undefined;
11830
+ message.alias = object.alias ?? undefined;
11497
11831
  return message;
11498
11832
  },
11499
11833
  };
@@ -11601,6 +11935,7 @@ function createBaseUpdateFileByUrlRequest() {
11601
11935
  size: undefined,
11602
11936
  userId: undefined,
11603
11937
  scope: undefined,
11938
+ alias: undefined,
11604
11939
  };
11605
11940
  }
11606
11941
  const UpdateFileByUrlRequest = {
@@ -11629,6 +11964,9 @@ const UpdateFileByUrlRequest = {
11629
11964
  if (message.scope !== undefined) {
11630
11965
  writer.uint32(66).string(message.scope);
11631
11966
  }
11967
+ if (message.alias !== undefined) {
11968
+ writer.uint32(74).string(message.alias);
11969
+ }
11632
11970
  return writer;
11633
11971
  },
11634
11972
  decode(input, length) {
@@ -11686,6 +12024,12 @@ const UpdateFileByUrlRequest = {
11686
12024
  }
11687
12025
  message.scope = reader.string();
11688
12026
  continue;
12027
+ case 9:
12028
+ if (tag !== 74) {
12029
+ break;
12030
+ }
12031
+ message.alias = reader.string();
12032
+ continue;
11689
12033
  }
11690
12034
  if ((tag & 7) === 4 || tag === 0) {
11691
12035
  break;
@@ -11704,6 +12048,7 @@ const UpdateFileByUrlRequest = {
11704
12048
  size: isSet(object.size) ? globalThis.Number(object.size) : undefined,
11705
12049
  userId: isSet(object.userId) ? globalThis.String(object.userId) : undefined,
11706
12050
  scope: isSet(object.scope) ? globalThis.String(object.scope) : undefined,
12051
+ alias: isSet(object.alias) ? globalThis.String(object.alias) : undefined,
11707
12052
  };
11708
12053
  },
11709
12054
  toJSON(message) {
@@ -11732,6 +12077,9 @@ const UpdateFileByUrlRequest = {
11732
12077
  if (message.scope !== undefined) {
11733
12078
  obj.scope = message.scope;
11734
12079
  }
12080
+ if (message.alias !== undefined) {
12081
+ obj.alias = message.alias;
12082
+ }
11735
12083
  return obj;
11736
12084
  },
11737
12085
  create(base) {
@@ -11747,6 +12095,7 @@ const UpdateFileByUrlRequest = {
11747
12095
  message.size = object.size ?? undefined;
11748
12096
  message.userId = object.userId ?? undefined;
11749
12097
  message.scope = object.scope ?? undefined;
12098
+ message.alias = object.alias ?? undefined;
11750
12099
  return message;
11751
12100
  },
11752
12101
  };
@@ -11984,7 +12333,8 @@ class ConduitAuthorizedResource {
11984
12333
  name;
11985
12334
  relations = [];
11986
12335
  permissions = [];
11987
- constructor(name, relations, permissions) {
12336
+ version;
12337
+ constructor(name, relations, permissions, version) {
11988
12338
  this.name = name;
11989
12339
  this.relations = Object.keys(relations).map(relation => {
11990
12340
  return {
@@ -12002,9 +12352,25 @@ class ConduitAuthorizedResource {
12002
12352
  : [permissions[permission]],
12003
12353
  };
12004
12354
  });
12355
+ this.version = version;
12005
12356
  }
12006
12357
  }
12007
12358
 
12359
+ function normalizeAuthzOptions(userIdOrOptions, scope) {
12360
+ if (typeof userIdOrOptions === 'string' || isNil(userIdOrOptions)) {
12361
+ return { userId: userIdOrOptions, scope };
12362
+ }
12363
+ return userIdOrOptions;
12364
+ }
12365
+ function normalizePopulateAuthzOptions(populateOrOptions, userId, scope) {
12366
+ if (typeof populateOrOptions === 'string' ||
12367
+ Array.isArray(populateOrOptions) ||
12368
+ isNil(populateOrOptions)) {
12369
+ return { populate: populateOrOptions, userId, scope };
12370
+ }
12371
+ return populateOrOptions;
12372
+ }
12373
+
12008
12374
  class Storage extends ConduitModule {
12009
12375
  moduleName;
12010
12376
  constructor(moduleName, url, grpcToken) {
@@ -12012,65 +12378,108 @@ class Storage extends ConduitModule {
12012
12378
  this.moduleName = moduleName;
12013
12379
  this.initializeClient(StorageDefinition);
12014
12380
  }
12015
- getFile(id, userId, scope) {
12016
- return this.client.getFile({ id, userId, scope });
12017
- }
12018
- getFileUrl(id, userId, scope) {
12019
- return this.client.getFileUrl({ id, userId, scope });
12020
- }
12021
- getFileData(id, userId, scope) {
12022
- return this.client.getFileData({ id, userId, scope });
12023
- }
12024
- createFile(name, data, folder, container, mimeType, isPublic = false, userId, scope) {
12381
+ getFile(id, userIdOrOptions, scope) {
12382
+ const options = normalizeAuthzOptions(userIdOrOptions, scope);
12383
+ return this.client.getFile({ id, ...options });
12384
+ }
12385
+ getFileUrl(id, userIdOrOptions, scope) {
12386
+ const options = normalizeAuthzOptions(userIdOrOptions, scope);
12387
+ return this.client.getFileUrl({ id, ...options });
12388
+ }
12389
+ getFileData(id, userIdOrOptions, scope) {
12390
+ const options = normalizeAuthzOptions(userIdOrOptions, scope);
12391
+ return this.client.getFileData({ id, ...options });
12392
+ }
12393
+ createFile(name, data, folderOrOptions, container, mimeType, isPublic, userId, scope, alias) {
12394
+ let options;
12395
+ if (typeof folderOrOptions === 'string' || isNil(folderOrOptions)) {
12396
+ options = {
12397
+ folder: folderOrOptions,
12398
+ container,
12399
+ mimeType,
12400
+ isPublic,
12401
+ userId,
12402
+ scope,
12403
+ alias,
12404
+ };
12405
+ }
12406
+ else {
12407
+ options = folderOrOptions;
12408
+ }
12025
12409
  return this.client.createFile({
12026
12410
  name,
12027
- mimeType,
12028
12411
  data,
12029
- folder,
12030
- isPublic,
12031
- container,
12032
- userId,
12033
- scope,
12412
+ ...options,
12413
+ isPublic: options.isPublic ?? false,
12034
12414
  });
12035
12415
  }
12036
- updateFile(id, data, name, folder, container, mimeType, userId, scope) {
12416
+ updateFile(id, data, nameOrOptions, folder, container, mimeType, userId, scope, alias) {
12417
+ let options;
12418
+ if (typeof nameOrOptions === 'string' || isNil(nameOrOptions)) {
12419
+ options = {
12420
+ name: nameOrOptions,
12421
+ folder,
12422
+ container,
12423
+ mimeType,
12424
+ userId,
12425
+ scope,
12426
+ alias,
12427
+ };
12428
+ }
12429
+ else {
12430
+ options = nameOrOptions;
12431
+ }
12037
12432
  return this.client.updateFile({
12038
- name,
12039
- mimeType,
12040
- data,
12041
- folder,
12042
12433
  id,
12043
- container,
12044
- userId,
12045
- scope,
12434
+ data,
12435
+ ...options,
12046
12436
  });
12047
12437
  }
12048
- deleteFile(id, userId, scope) {
12049
- return this.client.deleteFile({ id, userId, scope });
12050
- }
12051
- createFileByUrl(name, folder, container, mimeType, size, isPublic = false, userId, scope) {
12438
+ deleteFile(id, userIdOrOptions, scope) {
12439
+ const options = normalizeAuthzOptions(userIdOrOptions, scope);
12440
+ return this.client.deleteFile({ id, ...options });
12441
+ }
12442
+ createFileByUrl(name, folderOrOptions, container, mimeType, size, isPublic, userId, scope, alias) {
12443
+ let options;
12444
+ if (typeof folderOrOptions === 'string' || isNil(folderOrOptions)) {
12445
+ options = {
12446
+ folder: folderOrOptions,
12447
+ container,
12448
+ mimeType,
12449
+ size,
12450
+ isPublic,
12451
+ userId,
12452
+ scope,
12453
+ alias,
12454
+ };
12455
+ }
12456
+ else {
12457
+ options = folderOrOptions;
12458
+ }
12052
12459
  return this.client.createFileByUrl({
12053
12460
  name,
12054
- mimeType,
12055
- folder,
12056
- container,
12057
- size,
12058
- isPublic,
12059
- userId,
12060
- scope,
12461
+ ...options,
12462
+ isPublic: options.isPublic ?? false,
12061
12463
  });
12062
12464
  }
12063
- updateFileByUrl(id, name, folder, container, mimeType, size, userId, scope) {
12064
- return this.client.updateFileByUrl({
12065
- id,
12066
- name,
12067
- folder,
12068
- container,
12069
- mimeType,
12070
- size,
12071
- userId,
12072
- scope,
12073
- });
12465
+ updateFileByUrl(id, nameOrOptions, folder, container, mimeType, size, userId, scope, alias) {
12466
+ let options;
12467
+ if (typeof nameOrOptions === 'string' || isNil(nameOrOptions)) {
12468
+ options = {
12469
+ name: nameOrOptions,
12470
+ folder,
12471
+ container,
12472
+ mimeType,
12473
+ size,
12474
+ userId,
12475
+ scope,
12476
+ alias,
12477
+ };
12478
+ }
12479
+ else {
12480
+ options = nameOrOptions;
12481
+ }
12482
+ return this.client.updateFileByUrl({ id, ...options });
12074
12483
  }
12075
12484
  }
12076
12485
 
@@ -12133,6 +12542,16 @@ class Email extends ConduitModule {
12133
12542
  return res.sentMessageInfo;
12134
12543
  });
12135
12544
  }
12545
+ resendEmail(emailRecordId) {
12546
+ return this.client.resendEmail({ emailRecordId }).then(res => {
12547
+ return res.sentMessageInfo;
12548
+ });
12549
+ }
12550
+ getEmailStatus(messageId) {
12551
+ return this.client.getEmailStatus({ messageId }).then(res => {
12552
+ return JSON.parse(res.statusInfo);
12553
+ });
12554
+ }
12136
12555
  }
12137
12556
 
12138
12557
  class DatabaseProvider extends ConduitModule {
@@ -12202,170 +12621,188 @@ class DatabaseProvider extends ConduitModule {
12202
12621
  processQuery(query) {
12203
12622
  return JSON.stringify(query);
12204
12623
  }
12205
- findOne(schemaName, query, select, populate, userId, scope) {
12206
- let populateArray = populate;
12207
- if (populate && !Array.isArray(populate)) {
12208
- populateArray = [populate];
12624
+ findOne(schemaName, query, selectOrOptions, populate, userId, scope) {
12625
+ let options;
12626
+ if (typeof selectOrOptions === 'string' || isNil(selectOrOptions)) {
12627
+ options = { select: selectOrOptions, populate, userId, scope };
12628
+ }
12629
+ else {
12630
+ options = selectOrOptions;
12631
+ }
12632
+ let populateArray = options.populate;
12633
+ if (options.populate && !Array.isArray(options.populate)) {
12634
+ populateArray = [options.populate];
12209
12635
  }
12210
12636
  return this.client.findOne({
12211
12637
  schemaName,
12212
12638
  query: this.processQuery(query),
12213
- select: select === null ? undefined : select,
12639
+ ...options,
12640
+ select: options.select === null ? undefined : options.select,
12214
12641
  populate: populateArray ?? [],
12215
- userId,
12216
- scope,
12217
- }).then(res => {
12218
- return JSON.parse(res.result);
12219
- });
12220
- }
12221
- findMany(schemaName, query, select, skip, limit, sort, populate, userId, scope) {
12222
- if (typeof sort === 'string')
12223
- sort = [sort];
12224
- const sortObj = Array.isArray(sort) ? this.constructSortObj(sort) : sort;
12225
- let populateArray = populate;
12226
- if (populate && !Array.isArray(populate)) {
12227
- populateArray = [populate];
12642
+ }).then(res => JSON.parse(res.result));
12643
+ }
12644
+ findMany(schemaName, query, selectOrOptions, skip, limit, sort, populate, userId, scope) {
12645
+ let options;
12646
+ if (typeof selectOrOptions === 'string' || isNil(selectOrOptions)) {
12647
+ options = {
12648
+ select: selectOrOptions,
12649
+ skip,
12650
+ limit,
12651
+ sort,
12652
+ populate,
12653
+ userId,
12654
+ scope,
12655
+ };
12656
+ }
12657
+ else {
12658
+ options = selectOrOptions;
12659
+ }
12660
+ if (typeof options.sort === 'string')
12661
+ options.sort = [options.sort];
12662
+ const sortObj = Array.isArray(options.sort)
12663
+ ? this.constructSortObj(options.sort)
12664
+ : options.sort;
12665
+ let populateArray = options.populate;
12666
+ if (options.populate && !Array.isArray(options.populate)) {
12667
+ populateArray = [options.populate];
12228
12668
  }
12229
12669
  return this.client.findMany({
12230
12670
  schemaName,
12231
12671
  query: this.processQuery(query),
12232
- select: select === null ? undefined : select,
12233
- skip,
12234
- limit,
12672
+ ...options,
12673
+ select: options.select === null ? undefined : options.select,
12235
12674
  sort: sortObj,
12236
12675
  populate: populateArray ?? [],
12237
- userId,
12238
- scope,
12239
12676
  }).then(res => {
12240
12677
  return JSON.parse(res.result);
12241
12678
  });
12242
12679
  }
12243
- create(schemaName, query, userId, scope) {
12680
+ create(schemaName, query, userIdOrOptions, scope) {
12681
+ const options = normalizeAuthzOptions(userIdOrOptions, scope);
12244
12682
  return this.client.create({
12245
12683
  schemaName,
12246
12684
  query: this.processQuery(query),
12247
- userId,
12248
- scope,
12685
+ ...options,
12249
12686
  }).then(res => {
12250
12687
  return JSON.parse(res.result);
12251
12688
  });
12252
12689
  }
12253
- createMany(schemaName, query, userId, scope) {
12690
+ createMany(schemaName, query, userIdOrOptions, scope) {
12691
+ const options = normalizeAuthzOptions(userIdOrOptions, scope);
12254
12692
  return this.client.createMany({
12255
12693
  schemaName,
12256
12694
  query: this.processQuery(query),
12257
- userId,
12258
- scope,
12695
+ ...options,
12259
12696
  }).then(res => {
12260
12697
  return JSON.parse(res.result);
12261
12698
  });
12262
12699
  }
12263
- findByIdAndUpdate(schemaName, id, document, populate, userId, scope) {
12264
- let populateArray = populate;
12265
- if (populate && !Array.isArray(populate)) {
12266
- populateArray = [populate];
12700
+ findByIdAndUpdate(schemaName, id, document, populateOrOptions, userId, scope) {
12701
+ const options = normalizePopulateAuthzOptions(populateOrOptions, userId, scope);
12702
+ let populateArray = options.populate;
12703
+ if (options.populate && !Array.isArray(options.populate)) {
12704
+ populateArray = [options.populate];
12267
12705
  }
12268
12706
  return this.client.findByIdAndUpdate({
12269
12707
  schemaName,
12270
12708
  id,
12271
12709
  query: this.processQuery(document),
12710
+ ...options,
12272
12711
  populate: populateArray ?? [],
12273
- userId,
12274
- scope,
12275
12712
  }).then(res => {
12276
12713
  return JSON.parse(res.result);
12277
12714
  });
12278
12715
  }
12279
- findByIdAndReplace(schemaName, id, document, populate, userId, scope) {
12280
- let populateArray = populate;
12281
- if (populate && !Array.isArray(populate)) {
12282
- populateArray = [populate];
12716
+ findByIdAndReplace(schemaName, id, document, populateOrOptions, userId, scope) {
12717
+ const options = normalizePopulateAuthzOptions(populateOrOptions, userId, scope);
12718
+ let populateArray = options.populate;
12719
+ if (options.populate && !Array.isArray(options.populate)) {
12720
+ populateArray = [options.populate];
12283
12721
  }
12284
12722
  return this.client.findByIdAndReplace({
12285
12723
  schemaName,
12286
12724
  id,
12287
12725
  query: this.processQuery(document),
12726
+ ...options,
12288
12727
  populate: populateArray ?? [],
12289
- userId,
12290
- scope,
12291
12728
  }).then(res => {
12292
12729
  return JSON.parse(res.result);
12293
12730
  });
12294
12731
  }
12295
- updateMany(schemaName, filterQuery, query, populate, userId, scope) {
12296
- let populateArray = populate;
12297
- if (populate && !Array.isArray(populate)) {
12298
- populateArray = [populate];
12732
+ updateMany(schemaName, filterQuery, query, populateOrOptions, userId, scope) {
12733
+ const options = normalizePopulateAuthzOptions(populateOrOptions, userId, scope);
12734
+ let populateArray = options.populate;
12735
+ if (options.populate && !Array.isArray(options.populate)) {
12736
+ populateArray = [options.populate];
12299
12737
  }
12300
12738
  return this.client.updateMany({
12301
12739
  schemaName,
12302
12740
  filterQuery: this.processQuery(filterQuery),
12303
12741
  query: this.processQuery(query),
12742
+ ...options,
12304
12743
  populate: populateArray ?? [],
12305
- userId,
12306
- scope,
12307
12744
  }).then(res => {
12308
12745
  return JSON.parse(res.result);
12309
12746
  });
12310
12747
  }
12311
- updateOne(schemaName, filterQuery, query, populate, userId, scope) {
12312
- let populateArray = populate;
12313
- if (populate && !Array.isArray(populate)) {
12314
- populateArray = [populate];
12748
+ updateOne(schemaName, filterQuery, query, populateOrOptions, userId, scope) {
12749
+ const options = normalizePopulateAuthzOptions(populateOrOptions, userId, scope);
12750
+ let populateArray = options.populate;
12751
+ if (options.populate && !Array.isArray(options.populate)) {
12752
+ populateArray = [options.populate];
12315
12753
  }
12316
12754
  return this.client.updateOne({
12317
12755
  schemaName,
12318
12756
  filterQuery: this.processQuery(filterQuery),
12319
12757
  query: this.processQuery(query),
12758
+ ...options,
12320
12759
  populate: populateArray ?? [],
12321
- userId,
12322
- scope,
12323
12760
  }).then(res => {
12324
12761
  return JSON.parse(res.result);
12325
12762
  });
12326
12763
  }
12327
- replaceOne(schemaName, filterQuery, query, populate, userId, scope) {
12328
- let populateArray = populate;
12329
- if (populate && !Array.isArray(populate)) {
12330
- populateArray = [populate];
12764
+ replaceOne(schemaName, filterQuery, query, populateOrOptions, userId, scope) {
12765
+ const options = normalizePopulateAuthzOptions(populateOrOptions, userId, scope);
12766
+ let populateArray = options.populate;
12767
+ if (options.populate && !Array.isArray(options.populate)) {
12768
+ populateArray = [options.populate];
12331
12769
  }
12332
12770
  return this.client.replaceOne({
12333
12771
  schemaName,
12334
12772
  filterQuery: this.processQuery(filterQuery),
12335
12773
  query: this.processQuery(query),
12774
+ ...options,
12336
12775
  populate: populateArray ?? [],
12337
- userId,
12338
- scope,
12339
12776
  }).then(res => {
12340
12777
  return JSON.parse(res.result);
12341
12778
  });
12342
12779
  }
12343
- deleteOne(schemaName, query, userId, scope) {
12780
+ deleteOne(schemaName, query, userIdOrOptions, scope) {
12781
+ const options = normalizeAuthzOptions(userIdOrOptions, scope);
12344
12782
  return this.client.deleteOne({
12345
12783
  schemaName,
12346
12784
  query: this.processQuery(query),
12347
- userId,
12348
- scope,
12785
+ ...options,
12349
12786
  }).then(res => {
12350
12787
  return JSON.parse(res.result);
12351
12788
  });
12352
12789
  }
12353
- deleteMany(schemaName, query, userId, scope) {
12790
+ deleteMany(schemaName, query, userIdOrOptions, scope) {
12791
+ const options = normalizeAuthzOptions(userIdOrOptions, scope);
12354
12792
  return this.client.deleteMany({
12355
12793
  schemaName,
12356
12794
  query: this.processQuery(query),
12357
- userId,
12358
- scope,
12795
+ ...options,
12359
12796
  }).then(res => {
12360
12797
  return JSON.parse(res.result);
12361
12798
  });
12362
12799
  }
12363
- countDocuments(schemaName, query, userId, scope) {
12800
+ countDocuments(schemaName, query, userIdOrOptions, scope) {
12801
+ const options = normalizeAuthzOptions(userIdOrOptions, scope);
12364
12802
  return this.client.countDocuments({
12365
12803
  schemaName,
12366
12804
  query: this.processQuery(query),
12367
- userId,
12368
- scope,
12805
+ ...options,
12369
12806
  }).then(res => {
12370
12807
  return JSON.parse(res.result);
12371
12808
  });
@@ -12639,13 +13076,18 @@ class PushNotifications extends ConduitModule {
12639
13076
  });
12640
13077
  });
12641
13078
  }
12642
- sendNotification(sendTo, title, body, data, platform) {
13079
+ sendNotification(sendTo, title, bodyOrOptions, data, platform) {
13080
+ let options;
13081
+ if (typeof bodyOrOptions === 'string' || isNil(bodyOrOptions)) {
13082
+ options = { body: bodyOrOptions, data, platform };
13083
+ }
13084
+ else {
13085
+ options = bodyOrOptions;
13086
+ }
12643
13087
  return this.client.sendNotification({
12644
13088
  sendTo,
12645
13089
  title,
12646
- body,
12647
- data,
12648
- platform,
13090
+ ...options,
12649
13091
  });
12650
13092
  }
12651
13093
  sendManyNotifications(notifications) {
@@ -12653,13 +13095,18 @@ class PushNotifications extends ConduitModule {
12653
13095
  notifications,
12654
13096
  });
12655
13097
  }
12656
- sendNotificationToManyDevices(sendTo, title, body, data, platform) {
13098
+ sendNotificationToManyDevices(sendTo, title, bodyOrOptions, data, platform) {
13099
+ let options;
13100
+ if (typeof bodyOrOptions === 'string' || isNil(bodyOrOptions)) {
13101
+ options = { body: bodyOrOptions, data, platform };
13102
+ }
13103
+ else {
13104
+ options = bodyOrOptions;
13105
+ }
12657
13106
  return this.client.sendNotificationToManyDevices({
12658
13107
  sendTo,
12659
13108
  title,
12660
- body,
12661
- data,
12662
- platform,
13109
+ ...options,
12663
13110
  });
12664
13111
  }
12665
13112
  }
@@ -12761,8 +13208,11 @@ class Authentication extends ConduitModule {
12761
13208
  userDelete(userId) {
12762
13209
  return this.client.userDelete({ userId });
12763
13210
  }
12764
- userCreate(email, verify = false, password) {
12765
- return this.client.userCreate({ email, verify, password });
13211
+ userCreate(email, verify = false, password, anonymousId) {
13212
+ return this.client.userCreate({ email, verify, password, anonymousId });
13213
+ }
13214
+ anonymousUserCreate(clientId) {
13215
+ return this.client.anonymousUserCreate({ clientId });
12766
13216
  }
12767
13217
  changePass(email, password) {
12768
13218
  return this.client.changePass({ email, password });
@@ -13590,5 +14040,5 @@ class ConduitGrpcSdk {
13590
14040
  }
13591
14041
  }
13592
14042
 
13593
- export { Admin, AdminDefinition, AdminRouterDefinition, AllowedResourcesRequest, AllowedResourcesResponse, Authentication, AuthenticationDefinition, Authorization, AuthorizationDefinition, Chat, ChatDefinition, ClientRouterDefinition, ColumnExistenceRequest, ColumnExistenceResponse, ConduitAuthorizedResource, ConduitError, ConduitGrpcSdk, ConduitModelOptionsPermModifyType, ConduitModule, ConduitModuleDefinition, ConduitRouteActions, ConduitRouteReturnDefinition, ConduitSchema, Config, ConfigDefinition, Cookie, CookieOptions, Core, CoreDefinition, CreateFileByUrlRequest, CreateFileRequest, CreateRelationsRequest, CreateRoomRequest, CreateSchemaRequest, CreateTeamRequest, CreateViewRequest, CreateViewRequest_RawQuery, DatabaseProvider, DatabaseProviderDefinition, Decision, DeleteAllRelationsRequest, DeleteFileResponse, DeleteResourceRequest, DeleteRoomRequest, DeleteViewRequest, DropCollectionRequest, DropCollectionResponse, Email, EmailDefinition, EventBus, FileByUrlResponse, FileResponse, FindOneRequest, FindRelationRequest, FindRelationResponse, FindRequest, FindRequest_SortEntry, GetConfigRequest, GetConfigResponse, GetDatabaseTypeResponse, GetFileDataResponse, GetFileRequest, GetFileUrlRequest, GetFileUrlResponse, GetNotificationTokensRequest, GetNotificationTokensResponse, GetRedisDetailsResponse, GetRoomResponse, GetSchemaRequest, GetSchemasRequest, GetSchemasResponse, GetTeamRequest, GrpcError, HealthCheckRequest, HealthCheckResponse, HealthCheckResponse_ServingStatus, HealthCheckStatus, HealthDefinition, KNOWN_LOCKS, MetricType, MigrateRequest, ModifyTeamMembersRequest, ModuleByNameRequest, ModuleByNameResponse, ModuleExistsRequest, ModuleExistsResponse, ModuleHealthRequest, ModuleListResponse, ModuleListResponse_ModuleResponse, MongoIndexType, PatchAppRouteMiddlewaresRequest, PatchRouteMiddlewaresRequest, PermissionCheck, PermissionRequest, PlatformTypesEnum, PostgresIndexType, ProxyRouteActions, PushNotifications, PushNotificationsDefinition, QueryRequest, QueryResponse, RawQueryRequest, RawQueryRequest_RawQuery, RawQueryRequest_RawQuery_MongoQuery, RawQueryRequest_RawQuery_SQLQuery, RedisManager, RegisterAdminRouteRequest, RegisterAdminRouteRequest_ConduitRouteOptions, RegisterAdminRouteRequest_ConduitRouteReturnDefinition, RegisterAdminRouteRequest_PathDefinition, RegisterAdminRouteRequest_ProxyRouteOptions, RegisterConduitRouteRequest, RegisterConduitRouteRequest_ConduitRouteOptions, RegisterConduitRouteRequest_ConduitRouteReturnDefinition, RegisterConduitRouteRequest_PathDefinition, RegisterConduitRouteRequest_ProxyRouteOptions, RegisterModuleRequest, RegisterModuleResponse, RegisterModulesConfigRequest, RegisterTemplateRequest, RegisterTemplateResponse, Relation, Request, Resource, ResourceAccessListRequest, ResourceAccessListResponse, ResourceModificationAcknowledgement, ResourceModificationAcknowledgement_Status, Resource_Permission, Resource_Relation, Response, Room, Router, RouterDefinition, SMS, SQLDataType, Schema, SchemaExtension, SendEmailRequest, SendEmailRequest_SendEmailParams, SendEmailResponse, SendManyNotificationsRequest, SendMessageRequest, SendNotificationRequest, SendNotificationResponse, SendNotificationToManyDevicesRequest, SendSmsRequest, SendSmsResponse, SendVerificationCodeRequest, SendVerificationCodeResponse, SetConfigRequest, SetConfigResponse, SetNotificationTokenRequest, SetNotificationTokenResponse, SmsDefinition, SocketData, SocketRequest, SocketResponse, StateManager, Storage, StorageDefinition, TYPE, Team, TeamDeleteRequest, TeamDeleteResponse, UpdateConfigRequest, UpdateConfigResponse, UpdateFileByUrlRequest, UpdateFileRequest, UpdateManyRequest, UpdateRequest, UserChangePass, UserCreateRequest, UserCreateResponse, UserDeleteRequest, UserDeleteResponse, UserLoginRequest, UserLoginResponse, ValidateAccessTokenRequest, ValidateAccessTokenResponse, ValidateAccessTokenResponse_Status, VerifyRequest, VerifyResponse, checkModuleHealth, getJsonEnv, healthCheckResponse_ServingStatusFromJSON, healthCheckResponse_ServingStatusToJSON, resourceModificationAcknowledgement_StatusFromJSON, resourceModificationAcknowledgement_StatusToJSON, sleep, validateAccessTokenResponse_StatusFromJSON, validateAccessTokenResponse_StatusToJSON };
14043
+ export { Admin, AdminDefinition, AdminRouterDefinition, AllowedResourcesRequest, AllowedResourcesResponse, AnonymousUserCreateRequest, Authentication, AuthenticationDefinition, Authorization, AuthorizationDefinition, Chat, ChatDefinition, ClientRouterDefinition, ColumnExistenceRequest, ColumnExistenceResponse, ConduitAuthorizedResource, ConduitError, ConduitGrpcSdk, ConduitModelOptionsPermModifyType, ConduitModule, ConduitModuleDefinition, ConduitRouteActions, ConduitRouteReturnDefinition, ConduitSchema, Config, ConfigDefinition, Cookie, CookieOptions, Core, CoreDefinition, CreateFileByUrlRequest, CreateFileRequest, CreateRelationsRequest, CreateRoomRequest, CreateSchemaRequest, CreateTeamRequest, CreateViewRequest, CreateViewRequest_RawQuery, DatabaseProvider, DatabaseProviderDefinition, Decision, DeleteAllRelationsRequest, DeleteFileResponse, DeleteResourceRequest, DeleteRoomRequest, DeleteViewRequest, DropCollectionRequest, DropCollectionResponse, Email, EmailDefinition, EventBus, FileByUrlResponse, FileResponse, FindOneRequest, FindRelationRequest, FindRelationResponse, FindRequest, FindRequest_SortEntry, GetConfigRequest, GetConfigResponse, GetDatabaseTypeResponse, GetEmailStatusRequest, GetEmailStatusResponse, GetFileDataResponse, GetFileRequest, GetFileUrlRequest, GetFileUrlResponse, GetNotificationTokensRequest, GetNotificationTokensResponse, GetRedisDetailsResponse, GetRoomResponse, GetSchemaRequest, GetSchemasRequest, GetSchemasResponse, GetTeamRequest, GrpcError, HealthCheckRequest, HealthCheckResponse, HealthCheckResponse_ServingStatus, HealthCheckStatus, HealthDefinition, KNOWN_LOCKS, MetricType, MigrateRequest, ModifyTeamMembersRequest, ModuleByNameRequest, ModuleByNameResponse, ModuleExistsRequest, ModuleExistsResponse, ModuleHealthRequest, ModuleListResponse, ModuleListResponse_ModuleResponse, MongoIndexType, PatchAppRouteMiddlewaresRequest, PatchRouteMiddlewaresRequest, PermissionCheck, PermissionRequest, PlatformTypesEnum, PostgresIndexType, ProxyRouteActions, PushNotifications, PushNotificationsDefinition, QueryRequest, QueryResponse, RawQueryRequest, RawQueryRequest_RawQuery, RawQueryRequest_RawQuery_MongoQuery, RawQueryRequest_RawQuery_SQLQuery, RedisManager, RegisterAdminRouteRequest, RegisterAdminRouteRequest_ConduitRouteOptions, RegisterAdminRouteRequest_ConduitRouteReturnDefinition, RegisterAdminRouteRequest_PathDefinition, RegisterAdminRouteRequest_ProxyRouteOptions, RegisterConduitRouteRequest, RegisterConduitRouteRequest_ConduitRouteOptions, RegisterConduitRouteRequest_ConduitRouteReturnDefinition, RegisterConduitRouteRequest_PathDefinition, RegisterConduitRouteRequest_ProxyRouteOptions, RegisterModuleRequest, RegisterModuleResponse, RegisterModulesConfigRequest, RegisterTemplateRequest, RegisterTemplateResponse, Relation, Request, ResendEmailRequest, ResendEmailResponse, Resource, ResourceAccessListRequest, ResourceAccessListResponse, ResourceModificationAcknowledgement, ResourceModificationAcknowledgement_Status, Resource_Permission, Resource_Relation, Response, Room, Router, RouterDefinition, SMS, SQLDataType, Schema, SchemaExtension, SendEmailRequest, SendEmailRequest_SendEmailParams, SendEmailResponse, SendManyNotificationsRequest, SendMessageRequest, SendNotificationRequest, SendNotificationResponse, SendNotificationToManyDevicesRequest, SendSmsRequest, SendSmsResponse, SendVerificationCodeRequest, SendVerificationCodeResponse, SetConfigRequest, SetConfigResponse, SetNotificationTokenRequest, SetNotificationTokenResponse, SmsDefinition, SocketData, SocketRequest, SocketResponse, StateManager, Storage, StorageDefinition, TYPE, Team, TeamDeleteRequest, TeamDeleteResponse, UpdateConfigRequest, UpdateConfigResponse, UpdateFileByUrlRequest, UpdateFileRequest, UpdateManyRequest, UpdateRequest, UserChangePass, UserCreateRequest, UserCreateResponse, UserDeleteRequest, UserDeleteResponse, UserLoginRequest, UserLoginResponse, ValidateAccessTokenRequest, ValidateAccessTokenResponse, ValidateAccessTokenResponse_Status, VerifyRequest, VerifyResponse, checkModuleHealth, getJsonEnv, healthCheckResponse_ServingStatusFromJSON, healthCheckResponse_ServingStatusToJSON, resourceModificationAcknowledgement_StatusFromJSON, resourceModificationAcknowledgement_StatusToJSON, sleep, validateAccessTokenResponse_StatusFromJSON, validateAccessTokenResponse_StatusToJSON };
13594
14044
  //# sourceMappingURL=index.esm.js.map