@rocket.chat/core-typings 8.4.1 → 8.5.0-rc.1

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.
Files changed (63) hide show
  1. package/dist/Ajv.js +71 -57
  2. package/dist/Ajv.js.map +1 -1
  3. package/dist/IBanner.d.ts +3 -3
  4. package/dist/IBanner.js +2 -3
  5. package/dist/IBanner.js.map +1 -1
  6. package/dist/ICredentialToken.d.ts +2 -2
  7. package/dist/ICronHistoryItem.d.ts +2 -2
  8. package/dist/ICustomSound.d.ts +2 -3
  9. package/dist/ICustomUserStatus.d.ts +2 -2
  10. package/dist/IEmailInbox.d.ts +2 -3
  11. package/dist/IEmailMessageHistory.d.ts +2 -2
  12. package/dist/IIncomingMessage.d.ts +1 -1
  13. package/dist/IInquiry.d.ts +0 -5
  14. package/dist/IInquiry.js.map +1 -1
  15. package/dist/IInstanceStatus.d.ts +2 -2
  16. package/dist/IIntegrationHistory.d.ts +0 -1
  17. package/dist/ILivechatBusinessHour.d.ts +2 -3
  18. package/dist/ILivechatBusinessHour.js.map +1 -1
  19. package/dist/ILivechatDepartment.d.ts +2 -3
  20. package/dist/ILivechatDepartmentRecord.d.ts +0 -1
  21. package/dist/ILivechatTag.d.ts +2 -2
  22. package/dist/ILivechatTagRecord.d.ts +0 -1
  23. package/dist/ILoginServiceConfiguration.d.ts +5 -0
  24. package/dist/IMessage/IMessage.d.ts +1 -1
  25. package/dist/INotification.d.ts +2 -2
  26. package/dist/INps.d.ts +0 -1
  27. package/dist/IOAuthAccessToken.d.ts +2 -2
  28. package/dist/IOAuthApps.d.ts +2 -3
  29. package/dist/IOAuthAuthCode.d.ts +2 -2
  30. package/dist/IOAuthRefreshToken.d.ts +2 -2
  31. package/dist/IOEmbedCache.d.ts +2 -2
  32. package/dist/IOmnichannelBusinessUnit.d.ts +0 -1
  33. package/dist/IPermission.d.ts +2 -3
  34. package/dist/IReadReceipt.d.ts +3 -2
  35. package/dist/IRocketChatRecord.d.ts +6 -3
  36. package/dist/IRocketChatRecord.js +40 -0
  37. package/dist/IRocketChatRecord.js.map +1 -1
  38. package/dist/IRole.d.ts +2 -2
  39. package/dist/IRoom.js +1 -1
  40. package/dist/IRoom.js.map +1 -1
  41. package/dist/IServerEvent.d.ts +2 -2
  42. package/dist/IServerEvent.js.map +1 -1
  43. package/dist/ISession.d.ts +2 -3
  44. package/dist/ISmarshHistory.d.ts +2 -2
  45. package/dist/ISocketConnection.d.ts +1 -1
  46. package/dist/IStats.d.ts +3 -3
  47. package/dist/ISubscription.d.ts +1 -0
  48. package/dist/ISubscription.js.map +1 -1
  49. package/dist/ITwoFactorChallenge.d.ts +7 -0
  50. package/dist/ITwoFactorChallenge.js +3 -0
  51. package/dist/ITwoFactorChallenge.js.map +1 -0
  52. package/dist/IUpload.d.ts +2 -2
  53. package/dist/IUser.d.ts +1 -1
  54. package/dist/IUser.js.map +1 -1
  55. package/dist/MessageReads.d.ts +3 -3
  56. package/dist/cloud/Announcement.d.ts +1 -1
  57. package/dist/cloud/WorkspaceSyncPayload.d.ts +2 -2
  58. package/dist/ee/IWorkspaceCredentials.d.ts +0 -1
  59. package/dist/federation/v1/FederationKey.d.ts +3 -2
  60. package/dist/import/IImportRecord.d.ts +2 -2
  61. package/dist/index.d.ts +1 -0
  62. package/dist/migrations/IControl.d.ts +2 -2
  63. package/package.json +3 -3
package/dist/Ajv.js CHANGED
@@ -33,6 +33,10 @@ exports.schemas = {
33
33
  },
34
34
  _id: {
35
35
  type: "string"
36
+ },
37
+ _updatedAt: {
38
+ type: "string",
39
+ format: "date-time"
36
40
  }
37
41
  },
38
42
  required: [
@@ -40,7 +44,8 @@ exports.schemas = {
40
44
  "name",
41
45
  "protected",
42
46
  "scope",
43
- "_id"
47
+ "_id",
48
+ "_updatedAt"
44
49
  ]
45
50
  },
46
51
  IUser: {
@@ -142,10 +147,6 @@ exports.schemas = {
142
147
  "authorizedClients"
143
148
  ]
144
149
  },
145
- _updatedAt: {
146
- type: "string",
147
- format: "date-time"
148
- },
149
150
  e2e: {
150
151
  type: "object",
151
152
  properties: {
@@ -302,6 +303,9 @@ exports.schemas = {
302
303
  "idle_too_long"
303
304
  ]
304
305
  },
306
+ providerId: {
307
+ type: "string"
308
+ },
305
309
  abacAttributes: {
306
310
  type: "array",
307
311
  items: {
@@ -310,6 +314,10 @@ exports.schemas = {
310
314
  },
311
315
  _id: {
312
316
  type: "string"
317
+ },
318
+ _updatedAt: {
319
+ type: "string",
320
+ format: "date-time"
313
321
  }
314
322
  },
315
323
  required: [
@@ -317,8 +325,8 @@ exports.schemas = {
317
325
  "roles",
318
326
  "type",
319
327
  "active",
320
- "_updatedAt",
321
- "_id"
328
+ "_id",
329
+ "_updatedAt"
322
330
  ]
323
331
  },
324
332
  IUserServices: {
@@ -737,6 +745,10 @@ exports.schemas = {
737
745
  _id: {
738
746
  type: "string"
739
747
  },
748
+ _updatedAt: {
749
+ type: "string",
750
+ format: "date-time"
751
+ },
740
752
  platform: {
741
753
  type: "array",
742
754
  items: {
@@ -794,10 +806,6 @@ exports.schemas = {
794
806
  "modal"
795
807
  ]
796
808
  },
797
- _updatedAt: {
798
- type: "string",
799
- format: "date-time"
800
- },
801
809
  roles: {
802
810
  type: "array",
803
811
  items: {
@@ -821,6 +829,7 @@ exports.schemas = {
821
829
  },
822
830
  required: [
823
831
  "_id",
832
+ "_updatedAt",
824
833
  "platform",
825
834
  "expireAt",
826
835
  "startAt",
@@ -7022,9 +7031,6 @@ exports.schemas = {
7022
7031
  ICustomSound: {
7023
7032
  type: "object",
7024
7033
  properties: {
7025
- _id: {
7026
- type: "string"
7027
- },
7028
7034
  name: {
7029
7035
  type: "string"
7030
7036
  },
@@ -7035,23 +7041,24 @@ exports.schemas = {
7035
7041
  type: "string"
7036
7042
  },
7037
7043
  random: {},
7044
+ _id: {
7045
+ type: "string"
7046
+ },
7038
7047
  _updatedAt: {
7039
7048
  type: "string",
7040
7049
  format: "date-time"
7041
7050
  }
7042
7051
  },
7043
7052
  required: [
7044
- "_id",
7045
7053
  "name",
7046
- "extension"
7054
+ "extension",
7055
+ "_id",
7056
+ "_updatedAt"
7047
7057
  ]
7048
7058
  },
7049
7059
  IEmailInbox: {
7050
7060
  type: "object",
7051
7061
  properties: {
7052
- _id: {
7053
- type: "string"
7054
- },
7055
7062
  active: {
7056
7063
  type: "boolean"
7057
7064
  },
@@ -7147,13 +7154,15 @@ exports.schemas = {
7147
7154
  ],
7148
7155
  nullable: true
7149
7156
  },
7157
+ _id: {
7158
+ type: "string"
7159
+ },
7150
7160
  _updatedAt: {
7151
7161
  type: "string",
7152
7162
  format: "date-time"
7153
7163
  }
7154
7164
  },
7155
7165
  required: [
7156
- "_id",
7157
7166
  "active",
7158
7167
  "name",
7159
7168
  "email",
@@ -7161,6 +7170,7 @@ exports.schemas = {
7161
7170
  "imap",
7162
7171
  "_createdAt",
7163
7172
  "_createdBy",
7173
+ "_id",
7164
7174
  "_updatedAt"
7165
7175
  ]
7166
7176
  },
@@ -7492,10 +7502,6 @@ exports.schemas = {
7492
7502
  type: "string",
7493
7503
  format: "date-time"
7494
7504
  },
7495
- _updatedAt: {
7496
- type: "string",
7497
- format: "date-time"
7498
- },
7499
7505
  data: {
7500
7506
  type: "object",
7501
7507
  properties: {
@@ -7573,6 +7579,10 @@ exports.schemas = {
7573
7579
  errorStack: {},
7574
7580
  _id: {
7575
7581
  type: "string"
7582
+ },
7583
+ _updatedAt: {
7584
+ type: "string",
7585
+ format: "date-time"
7576
7586
  }
7577
7587
  },
7578
7588
  required: [
@@ -7581,10 +7591,10 @@ exports.schemas = {
7581
7591
  "integration",
7582
7592
  "event",
7583
7593
  "_createdAt",
7584
- "_updatedAt",
7585
7594
  "ranPrepareScript",
7586
7595
  "finished",
7587
- "_id"
7596
+ "_id",
7597
+ "_updatedAt"
7588
7598
  ]
7589
7599
  },
7590
7600
  PartialIMessage: {
@@ -8655,9 +8665,6 @@ exports.schemas = {
8655
8665
  IOAuthApps: {
8656
8666
  type: "object",
8657
8667
  properties: {
8658
- _id: {
8659
- type: "string"
8660
- },
8661
8668
  name: {
8662
8669
  type: "string"
8663
8670
  },
@@ -8692,35 +8699,31 @@ exports.schemas = {
8692
8699
  "username"
8693
8700
  ]
8694
8701
  },
8702
+ appId: {
8703
+ type: "string"
8704
+ },
8705
+ _id: {
8706
+ type: "string"
8707
+ },
8695
8708
  _updatedAt: {
8696
8709
  type: "string",
8697
8710
  format: "date-time"
8698
- },
8699
- appId: {
8700
- type: "string"
8701
8711
  }
8702
8712
  },
8703
8713
  required: [
8704
- "_id",
8705
8714
  "name",
8706
8715
  "active",
8707
8716
  "clientId",
8708
8717
  "redirectUri",
8709
8718
  "_createdAt",
8710
8719
  "_createdBy",
8720
+ "_id",
8711
8721
  "_updatedAt"
8712
8722
  ]
8713
8723
  },
8714
8724
  IPermission: {
8715
8725
  type: "object",
8716
8726
  properties: {
8717
- _id: {
8718
- type: "string"
8719
- },
8720
- _updatedAt: {
8721
- type: "string",
8722
- format: "date-time"
8723
- },
8724
8727
  roles: {
8725
8728
  type: "array",
8726
8729
  items: {
@@ -8752,12 +8755,19 @@ exports.schemas = {
8752
8755
  },
8753
8756
  sorter: {
8754
8757
  type: "number"
8758
+ },
8759
+ _id: {
8760
+ type: "string"
8761
+ },
8762
+ _updatedAt: {
8763
+ type: "string",
8764
+ format: "date-time"
8755
8765
  }
8756
8766
  },
8757
8767
  required: [
8768
+ "roles",
8758
8769
  "_id",
8759
- "_updatedAt",
8760
- "roles"
8770
+ "_updatedAt"
8761
8771
  ]
8762
8772
  },
8763
8773
  ISubscription: {
@@ -8941,6 +8951,9 @@ exports.schemas = {
8941
8951
  }
8942
8952
  },
8943
8953
  department: {},
8954
+ draft: {
8955
+ type: "string"
8956
+ },
8944
8957
  desktopPrefOrigin: {
8945
8958
  type: "string",
8946
8959
  "enum": [
@@ -9896,12 +9909,12 @@ exports.schemas = {
9896
9909
  IDirectoryChannelResult: {
9897
9910
  type: "object",
9898
9911
  properties: {
9899
- _id: {
9900
- type: "string"
9901
- },
9902
9912
  "default": {
9903
9913
  type: "boolean"
9904
9914
  },
9915
+ _id: {
9916
+ type: "string"
9917
+ },
9905
9918
  name: {
9906
9919
  type: "string"
9907
9920
  },
@@ -9964,12 +9977,12 @@ exports.schemas = {
9964
9977
  IRoomAdmin: {
9965
9978
  type: "object",
9966
9979
  properties: {
9967
- _id: {
9968
- type: "string"
9969
- },
9970
9980
  "default": {
9971
9981
  type: "boolean"
9972
9982
  },
9983
+ _id: {
9984
+ type: "string"
9985
+ },
9973
9986
  name: {
9974
9987
  type: "string"
9975
9988
  },
@@ -10237,6 +10250,10 @@ exports.schemas = {
10237
10250
  _id: {
10238
10251
  type: "string"
10239
10252
  },
10253
+ _updatedAt: {
10254
+ type: "string",
10255
+ format: "date-time"
10256
+ },
10240
10257
  ldap: {
10241
10258
  type: "boolean"
10242
10259
  },
@@ -10327,10 +10344,6 @@ exports.schemas = {
10327
10344
  "authorizedClients"
10328
10345
  ]
10329
10346
  },
10330
- _updatedAt: {
10331
- type: "string",
10332
- format: "date-time"
10333
- },
10334
10347
  customFields: {
10335
10348
  $ref: "#/components/schemas/Recordstringany"
10336
10349
  },
@@ -10839,10 +10852,6 @@ exports.schemas = {
10839
10852
  ICustomUserStatus: {
10840
10853
  type: "object",
10841
10854
  properties: {
10842
- _updatedAt: {
10843
- type: "string",
10844
- format: "date-time"
10845
- },
10846
10855
  _id: {
10847
10856
  type: "string"
10848
10857
  },
@@ -10851,12 +10860,17 @@ exports.schemas = {
10851
10860
  },
10852
10861
  statusType: {
10853
10862
  type: "string"
10863
+ },
10864
+ _updatedAt: {
10865
+ type: "string",
10866
+ format: "date-time"
10854
10867
  }
10855
10868
  },
10856
10869
  required: [
10857
10870
  "_id",
10858
10871
  "name",
10859
- "statusType"
10872
+ "statusType",
10873
+ "_updatedAt"
10860
10874
  ]
10861
10875
  },
10862
10876
  SlashCommand: {
package/dist/Ajv.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsChB"}
package/dist/IBanner.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type * as UiKit from '@rocket.chat/ui-kit';
2
2
  import * as z from 'zod';
3
- import type { IRocketChatRecord } from './IRocketChatRecord';
3
+ import { type IRocketChatRecord } from './IRocketChatRecord';
4
4
  import type { IUser } from './IUser';
5
5
  export declare enum BannerPlatform {
6
6
  Web = "web",
@@ -8,7 +8,7 @@ export declare enum BannerPlatform {
8
8
  }
9
9
  export declare const IBannerSchema: z.ZodObject<{
10
10
  _id: z.ZodString;
11
- _updatedAt: z.ZodOptional<z.ZodCodec<z.ZodISODateTime, z.ZodDate>>;
11
+ _updatedAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
12
12
  platform: z.ZodArray<z.ZodEnum<typeof BannerPlatform>>;
13
13
  expireAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
14
14
  startAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
@@ -31,7 +31,7 @@ export declare const IBannerSchema: z.ZodObject<{
31
31
  modal: "modal";
32
32
  }>;
33
33
  }, z.core.$strip>;
34
- export interface IBanner extends z.infer<typeof IBannerSchema> {
34
+ export interface IBanner extends z.infer<typeof IBannerSchema>, IRocketChatRecord {
35
35
  }
36
36
  export type InactiveBanner = IBanner & {
37
37
  active: false;
package/dist/IBanner.js CHANGED
@@ -35,15 +35,14 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.isInactiveBanner = exports.IBannerSchema = exports.BannerPlatform = void 0;
37
37
  const z = __importStar(require("zod"));
38
+ const IRocketChatRecord_1 = require("./IRocketChatRecord");
38
39
  const utils_1 = require("./utils");
39
40
  var BannerPlatform;
40
41
  (function (BannerPlatform) {
41
42
  BannerPlatform["Web"] = "web";
42
43
  BannerPlatform["Mobile"] = "mobile";
43
44
  })(BannerPlatform || (exports.BannerPlatform = BannerPlatform = {}));
44
- exports.IBannerSchema = z.object({
45
- _id: z.string(),
46
- _updatedAt: utils_1.TimestampSchema.optional(),
45
+ exports.IBannerSchema = IRocketChatRecord_1.IRocketChatRecordSchema.extend({
47
46
  platform: z.array(z.enum(BannerPlatform)), // pĺatforms a banner could be shown
48
47
  expireAt: utils_1.TimestampSchema, // date when banner should not be shown anymore
49
48
  startAt: utils_1.TimestampSchema, // start date a banner should be presented
@@ -1 +1 @@
1
- {"version":3,"file":"IBanner.js","sourceRoot":"","sources":["../src/IBanner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC;KAC3B,CAAC;IACF,SAAS,EAAE,uBAAe;IAC1B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAoB;IAClC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,WAAW,EAAE,uBAAe,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7E,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;CACpC,CAAC,CAAC;AASI,MAAM,gBAAgB,GAAG,CAAC,MAAe,EAA4B,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC;AAA1F,QAAA,gBAAgB,oBAA0E"}
@@ -1,5 +1,5 @@
1
- export interface ICredentialToken {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface ICredentialToken extends IRocketChatRecord {
3
3
  userInfo: {
4
4
  username?: string;
5
5
  attributes?: any;
@@ -1,5 +1,5 @@
1
- export interface ICronHistoryItem {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface ICronHistoryItem extends IRocketChatRecord {
3
3
  name: string;
4
4
  intendedAt: Date;
5
5
  startedAt: Date;
@@ -1,8 +1,7 @@
1
- export interface ICustomSound {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface ICustomSound extends IRocketChatRecord {
3
3
  name: string;
4
4
  extension: string;
5
5
  src?: string;
6
6
  random?: unknown;
7
- _updatedAt?: Date;
8
7
  }
@@ -1,4 +1,4 @@
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
1
2
  import type { IUserStatus } from './IUserStatus';
2
- export interface ICustomUserStatus extends IUserStatus {
3
- _updatedAt?: Date;
3
+ export interface ICustomUserStatus extends IUserStatus, IRocketChatRecord {
4
4
  }
@@ -1,5 +1,5 @@
1
- export interface IEmailInbox {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface IEmailInbox extends IRocketChatRecord {
3
3
  active: boolean;
4
4
  name: string;
5
5
  email: string;
@@ -26,6 +26,5 @@ export interface IEmailInbox {
26
26
  _id: string;
27
27
  username?: string;
28
28
  } | null;
29
- _updatedAt: Date;
30
29
  }
31
30
  export type IEmailInboxPayload = Omit<IEmailInbox, '_createdAt' | '_createdBy' | '_updatedAt'>;
@@ -1,5 +1,5 @@
1
- export interface IEmailMessageHistory {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface IEmailMessageHistory extends IRocketChatRecord {
3
3
  email: string;
4
4
  createdAt?: Date;
5
5
  }
@@ -1,4 +1,4 @@
1
- import type { IncomingMessage } from 'http';
1
+ import type { IncomingMessage } from 'node:http';
2
2
  export interface IIncomingMessage extends IncomingMessage {
3
3
  query: Record<string, any>;
4
4
  body: Record<string, any>;
@@ -5,11 +5,6 @@ import type { IOmnichannelServiceLevelAgreements } from './IOmnichannelServiceLe
5
5
  import type { IRocketChatRecord } from './IRocketChatRecord';
6
6
  import type { IOmnichannelRoom, OmnichannelSourceType } from './IRoom';
7
7
  import type { SelectedAgent } from './omnichannel/routing';
8
- export interface IInquiry {
9
- _id: string;
10
- _updatedAt?: Date;
11
- department?: string;
12
- }
13
8
  export declare enum LivechatInquiryStatus {
14
9
  VERIFYING = "verifying",
15
10
  QUEUED = "queued",
@@ -1 +1 @@
1
- {"version":3,"file":"IInquiry.js","sourceRoot":"","sources":["../src/IInquiry.ts"],"names":[],"mappings":";;;AAcA,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAChC,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;IACjB,wCAAe,CAAA;IACf,wCAAe,CAAA;IACf,sCAAa,CAAA;AACd,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC;AA0CM,MAAM,uBAAuB,GAAG,CAAC,MAAe,EAAoC,EAAE,CAC5F,OAAO,MAAM,KAAK,QAAQ;IAC1B,MAAM,KAAK,IAAI;IACf,QAAQ,IAAI,MAAM;IAClB,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ;IACjC,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAL9D,QAAA,uBAAuB,2BAKuC"}
1
+ {"version":3,"file":"IInquiry.js","sourceRoot":"","sources":["../src/IInquiry.ts"],"names":[],"mappings":";;;AAQA,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAChC,gDAAuB,CAAA;IACvB,0CAAiB,CAAA;IACjB,wCAAe,CAAA;IACf,wCAAe,CAAA;IACf,sCAAa,CAAA;AACd,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC;AA0CM,MAAM,uBAAuB,GAAG,CAAC,MAAe,EAAoC,EAAE,CAC5F,OAAO,MAAM,KAAK,QAAQ;IAC1B,MAAM,KAAK,IAAI;IACf,QAAQ,IAAI,MAAM;IAClB,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ;IACjC,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAL9D,QAAA,uBAAuB,2BAKuC"}
@@ -1,5 +1,5 @@
1
- import type { IRocketChatRecord } from './IRocketChatRecord';
2
- export interface IInstanceStatus extends IRocketChatRecord {
1
+ export interface IInstanceStatus {
2
+ _id: string;
3
3
  _createdAt: Date;
4
4
  name: string;
5
5
  pid: number;
@@ -9,7 +9,6 @@ export interface IIntegrationHistory extends IRocketChatRecord {
9
9
  };
10
10
  event: OutgoingIntegrationEvent;
11
11
  _createdAt: Date;
12
- _updatedAt: Date;
13
12
  data?: {
14
13
  user?: any;
15
14
  room?: any;
@@ -1,4 +1,5 @@
1
1
  import type { ILivechatDepartment } from './ILivechatDepartment';
2
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
3
  export declare enum LivechatBusinessHourTypes {
3
4
  DEFAULT = "default",
4
5
  CUSTOM = "custom"
@@ -29,15 +30,13 @@ export interface IBusinessHourTimezone {
29
30
  name: string;
30
31
  utc: string;
31
32
  }
32
- export interface ILivechatBusinessHour {
33
- _id: string;
33
+ export interface ILivechatBusinessHour extends IRocketChatRecord {
34
34
  name: string;
35
35
  active: boolean;
36
36
  type: LivechatBusinessHourTypes;
37
37
  timezone: IBusinessHourTimezone;
38
38
  ts: Date;
39
39
  workHours: IBusinessHourWorkHour[];
40
- _updatedAt?: Date;
41
40
  departments?: ILivechatDepartment[];
42
41
  }
43
42
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ILivechatBusinessHour.js","sourceRoot":"","sources":["../src/ILivechatBusinessHour.ts"],"names":[],"mappings":";;;AAEA,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACpC,gDAAmB,CAAA;IACnB,8CAAiB,CAAA;AAClB,CAAC,EAHW,yBAAyB,yCAAzB,yBAAyB,QAGpC;AAED,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACxC,kDAAiB,CAAA;IACjB,sDAAqB,CAAA;AACtB,CAAC,EAHW,6BAA6B,6CAA7B,6BAA6B,QAGxC"}
1
+ {"version":3,"file":"ILivechatBusinessHour.js","sourceRoot":"","sources":["../src/ILivechatBusinessHour.ts"],"names":[],"mappings":";;;AAGA,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACpC,gDAAmB,CAAA;IACnB,8CAAiB,CAAA;AAClB,CAAC,EAHW,yBAAyB,yCAAzB,yBAAyB,QAGpC;AAED,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACxC,kDAAiB,CAAA;IACjB,sDAAqB,CAAA;AACtB,CAAC,EAHW,6BAA6B,6CAA7B,6BAA6B,QAGxC"}
@@ -1,5 +1,5 @@
1
- export interface ILivechatDepartment {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface ILivechatDepartment extends IRocketChatRecord {
3
3
  name: string;
4
4
  enabled: boolean;
5
5
  description?: string;
@@ -10,7 +10,6 @@ export interface ILivechatDepartment {
10
10
  chatClosingTags?: string[];
11
11
  offlineMessageChannelName: string;
12
12
  numAgents: number;
13
- _updatedAt?: Date;
14
13
  businessHourId?: string;
15
14
  fallbackForwardDepartment?: string;
16
15
  archived?: boolean;
@@ -1,7 +1,6 @@
1
1
  import type { IRocketChatRecord } from './IRocketChatRecord';
2
2
  /** @deprecated */
3
3
  export interface ILivechatDepartmentRecord extends IRocketChatRecord {
4
- _id: string;
5
4
  name: string;
6
5
  enabled: boolean;
7
6
  description?: string;
@@ -1,5 +1,5 @@
1
- export interface ILivechatTag {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface ILivechatTag extends IRocketChatRecord {
3
3
  name: string;
4
4
  description?: string;
5
5
  numDepartments: number;
@@ -1,6 +1,5 @@
1
1
  import type { IRocketChatRecord } from './IRocketChatRecord';
2
2
  export interface ILivechatTagRecord extends IRocketChatRecord {
3
- _id: string;
4
3
  name: string;
5
4
  description: string;
6
5
  numDepartments: number;
@@ -33,6 +33,11 @@ export type OAuthConfiguration = {
33
33
  mergeRoles: boolean;
34
34
  rolesToSync: string;
35
35
  showButton: boolean;
36
+ addAutopublishFields?: {
37
+ forLoggedInUser: string[];
38
+ forOtherUsers: string[];
39
+ };
40
+ pkce?: boolean;
36
41
  };
37
42
  export type FacebookOAuthConfiguration = Omit<Partial<OAuthConfiguration>, 'clientId'> & {
38
43
  appId: OAuthConfiguration['clientId'];
@@ -1,4 +1,4 @@
1
- import type { UrlWithStringQuery } from 'url';
1
+ import type { UrlWithStringQuery } from 'node:url';
2
2
  import type Icons from '@rocket.chat/icons';
3
3
  import type { Root } from '@rocket.chat/message-parser';
4
4
  import type { MessageSurfaceLayout } from '@rocket.chat/ui-kit';
@@ -1,5 +1,6 @@
1
1
  import type { ICalendarEvent } from './ICalendarEvent';
2
2
  import type { IMessage } from './IMessage';
3
+ import type { IRocketChatRecord } from './IRocketChatRecord';
3
4
  import type { IRoom } from './IRoom';
4
5
  import type { ISubscription } from './ISubscription';
5
6
  export interface INotificationItemPush {
@@ -33,8 +34,7 @@ export interface INotificationItemEmail {
33
34
  };
34
35
  }
35
36
  export type NotificationItem = INotificationItemPush | INotificationItemEmail;
36
- export interface INotification {
37
- _id: string;
37
+ export interface INotification extends IRocketChatRecord {
38
38
  uid: string;
39
39
  rid: string;
40
40
  mid: string;
package/dist/INps.d.ts CHANGED
@@ -19,7 +19,6 @@ export declare enum INpsVoteStatus {
19
19
  SENT = "sent"
20
20
  }
21
21
  export interface INpsVote extends IRocketChatRecord {
22
- _id: string;
23
22
  npsId: INps['_id'];
24
23
  ts: Date;
25
24
  identifier: string;
@@ -1,5 +1,5 @@
1
- export interface IOAuthAccessToken {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface IOAuthAccessToken extends IRocketChatRecord {
3
3
  accessToken: string;
4
4
  expires?: Date;
5
5
  clientId: string;
@@ -1,5 +1,5 @@
1
- export interface IOAuthApps {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface IOAuthApps extends IRocketChatRecord {
3
3
  name: string;
4
4
  active: boolean;
5
5
  clientId: string;
@@ -10,6 +10,5 @@ export interface IOAuthApps {
10
10
  _id: string;
11
11
  username: string;
12
12
  };
13
- _updatedAt: Date;
14
13
  appId?: string;
15
14
  }
@@ -1,5 +1,5 @@
1
- export interface IOAuthAuthCode {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface IOAuthAuthCode extends IRocketChatRecord {
3
3
  authCode: string;
4
4
  clientId: string;
5
5
  userId: string;
@@ -1,5 +1,5 @@
1
- export interface IOAuthRefreshToken {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface IOAuthRefreshToken extends IRocketChatRecord {
3
3
  refreshToken: string;
4
4
  expires?: Date;
5
5
  clientId: string;
@@ -1,5 +1,5 @@
1
- export interface IOEmbedCache {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface IOEmbedCache extends IRocketChatRecord {
3
3
  data: any;
4
4
  updatedAt: Date;
5
5
  }
@@ -1,6 +1,5 @@
1
1
  import type { IRocketChatRecord } from './IRocketChatRecord';
2
2
  export interface IOmnichannelBusinessUnit extends IRocketChatRecord {
3
- _id: string;
4
3
  name: string;
5
4
  visibility: 'public' | 'private';
6
5
  type: string;
@@ -1,6 +1,5 @@
1
- export interface IPermission {
2
- _id: string;
3
- _updatedAt: Date;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface IPermission extends IRocketChatRecord {
4
3
  roles: string[];
5
4
  group?: string | null;
6
5
  section?: string | null;
@@ -1,8 +1,9 @@
1
1
  import type { IMessage } from './IMessage/IMessage';
2
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
3
  import type { IRoom } from './IRoom';
3
4
  import type { IUser } from './IUser';
4
- export interface IReadReceipt {
5
- _id: string;
5
+ export interface IReadReceipt extends IRocketChatRecord {
6
+ token?: string;
6
7
  messageId: IMessage['_id'];
7
8
  roomId: IRoom['_id'];
8
9
  userId: IUser['_id'];
@@ -1,7 +1,10 @@
1
1
  import type { WithId } from 'mongodb';
2
- export interface IRocketChatRecord {
3
- _id: string;
4
- _updatedAt: Date;
2
+ import * as z from 'zod';
3
+ export declare const IRocketChatRecordSchema: z.ZodObject<{
4
+ _id: z.ZodString;
5
+ _updatedAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
6
+ }, z.core.$strip>;
7
+ export interface IRocketChatRecord extends z.infer<typeof IRocketChatRecordSchema> {
5
8
  }
6
9
  export type RocketChatRecordDeleted<T> = WithId<T> & {
7
10
  _updatedAt: Date;
@@ -1,3 +1,43 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.IRocketChatRecordSchema = void 0;
37
+ const z = __importStar(require("zod"));
38
+ const utils_1 = require("./utils");
39
+ exports.IRocketChatRecordSchema = z.object({
40
+ _id: z.string(),
41
+ _updatedAt: utils_1.TimestampSchema,
42
+ });
3
43
  //# sourceMappingURL=IRocketChatRecord.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IRocketChatRecord.js","sourceRoot":"","sources":["../src/IRocketChatRecord.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"IRocketChatRecord.js","sourceRoot":"","sources":["../src/IRocketChatRecord.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uCAAyB;AAEzB,mCAA0C;AAE7B,QAAA,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,UAAU,EAAE,uBAAe;CAC3B,CAAC,CAAC"}
package/dist/IRole.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export interface IRole {
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface IRole extends IRocketChatRecord {
2
3
  description: string;
3
4
  mandatory2fa?: boolean;
4
5
  name: string;
5
6
  protected: boolean;
6
7
  scope: 'Users' | 'Subscriptions';
7
- _id: string;
8
8
  }
package/dist/IRoom.js CHANGED
@@ -23,7 +23,7 @@ const isPublicRoom = (room) => room.t === 'c';
23
23
  exports.isPublicRoom = isPublicRoom;
24
24
  const isPrivateRoom = (room) => room.t === 'p';
25
25
  exports.isPrivateRoom = isPrivateRoom;
26
- const isABACManagedRoom = (room) => Array.isArray(room?.abacAttributes) && room.abacAttributes.length > 0;
26
+ const isABACManagedRoom = (room) => room?.t === 'p' && Array.isArray(room?.abacAttributes) && room.abacAttributes.length > 0;
27
27
  exports.isABACManagedRoom = isABACManagedRoom;
28
28
  const isDirectMessageRoom = (room) => room.t === 'd';
29
29
  exports.isDirectMessageRoom = isDirectMessageRoom;
package/dist/IRoom.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"IRoom.js","sourceRoot":"","sources":["../src/IRoom.ts"],"names":[],"mappings":";;;AA6GO,MAAM,kBAAkB,GAAG,CAAC,IAAoB,EAA6B,EAAE,CACrF,kBAAkB,IAAI,IAAI,IAAK,IAAY,CAAC,gBAAgB,KAAK,IAAI,CAAC;AAD1D,QAAA,kBA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AAW,CAAA;IACX,oCAAW,CAAA;IACX,wCAAe,CAAA;AAChB,CAAC,EAPW,qBAAqB,qCAArB,qBAAqB,QAOhC;AAyKM,MAAM,iBAAiB,GAAG,CAAC,IAAsB,EAAoC,EAAE,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC;AAAjG,QAAA,iBAAiB,qBAAgF;AAEvG,MAAM,0BAA0B,GAAG,CAAC,MAA0B,EAAuC,EAAE;IAC7G,OAAO,MAAM,EAAE,IAAI,KAAK,qBAAqB,CAAC,GAAG,CAAC;AACnD,CAAC,CAAC;AAFW,QAAA,0BAA0B,8BAErC;AAmDW,QAAA,sBAAsB,GAAG;IACrC,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,GAAG;IACX,SAAS,EAAE,GAAG;IACd,OAAO,EAAE,KAAK;CACd,CAAC"}
@@ -1,3 +1,4 @@
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
1
2
  import type { IUser } from './IUser';
2
3
  import type { IServerEventAbacActionPerformed, IServerEventAbacAttributeChanged, IServerEventAbacObjectAttributeChanged, IServerEventAbacObjectAttributesRemoved, IServerEventAbacSubjectAttributeChanged } from './ServerAudit/IAuditServerAbacAction';
3
4
  import type { IServerEventSettingsChanged } from './ServerAudit/IAuditServerSettingEvent';
@@ -6,8 +7,7 @@ export declare enum ServerEventType {
6
7
  FAILED_LOGIN_ATTEMPT = "failed-login-attempt",
7
8
  LOGIN = "login"
8
9
  }
9
- export interface IServerEvent {
10
- _id: string;
10
+ export interface IServerEvent extends IRocketChatRecord {
11
11
  t: ServerEventType | keyof IServerEvents;
12
12
  ts: Date;
13
13
  ip: string;
@@ -1 +1 @@
1
- {"version":3,"file":"IServerEvent.js","sourceRoot":"","sources":["../src/IServerEvent.ts"],"names":[],"mappings":";;;AAWA,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,gEAA6C,CAAA;IAC7C,kCAAe,CAAA;AAChB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
1
+ {"version":3,"file":"IServerEvent.js","sourceRoot":"","sources":["../src/IServerEvent.ts"],"names":[],"mappings":";;;AAYA,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,gEAA6C,CAAA;IAC7C,kCAAe,CAAA;AAChB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
@@ -1,3 +1,4 @@
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
1
2
  import type { IRole } from './IRole';
2
3
  import type { IUser } from './IUser';
3
4
  export interface ISessionDevice {
@@ -10,8 +11,7 @@ export interface ISessionDevice {
10
11
  };
11
12
  version: string;
12
13
  }
13
- export interface ISession {
14
- _id: string;
14
+ export interface ISession extends IRocketChatRecord {
15
15
  type: 'session' | 'computed-session' | 'user_daily';
16
16
  mostImportantRole: IRole['_id'];
17
17
  userId: string;
@@ -23,7 +23,6 @@ export interface ISession {
23
23
  day: number;
24
24
  instanceId: string;
25
25
  sessionId: string;
26
- _updatedAt: Date;
27
26
  createdAt: Date;
28
27
  host: string;
29
28
  ip: string;
@@ -1,5 +1,5 @@
1
- export interface ISmarshHistory {
2
- _id: string;
1
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
+ export interface ISmarshHistory extends IRocketChatRecord {
3
3
  lastRan: Date;
4
4
  lastResult: string;
5
5
  }
@@ -1,4 +1,4 @@
1
- import type { IncomingHttpHeaders } from 'http';
1
+ import type { IncomingHttpHeaders } from 'node:http';
2
2
  export interface ISocketConnection {
3
3
  id: string;
4
4
  instanceId: string;
package/dist/IStats.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import type { CpuInfo } from 'os';
1
+ import type { CpuInfo } from 'node:os';
2
2
  import type { IMatrixFederationStatistics } from './IMatrixFederationStatistics';
3
+ import type { IRocketChatRecord } from './IRocketChatRecord';
3
4
  import type { DeviceSessionAggregationResult, OSSessionAggregationResult, UserSessionAggregationResult } from './ISession';
4
5
  import type { ISettingStatisticsObject } from './ISetting';
5
6
  import type { ITeamStats } from './ITeam';
@@ -14,8 +15,7 @@ interface IVoIPPeriodStats {
14
15
  failedCalls?: number;
15
16
  callsDuration?: number;
16
17
  }
17
- export interface IStats {
18
- _id: string;
18
+ export interface IStats extends IRocketChatRecord {
19
19
  wizard: {
20
20
  organizationType?: string;
21
21
  industry?: string;
@@ -57,6 +57,7 @@ export interface ISubscription extends IRocketChatRecord {
57
57
  muteGroupMentions?: boolean;
58
58
  ignored?: IUser['_id'][];
59
59
  department?: unknown;
60
+ draft?: string;
60
61
  desktopPrefOrigin?: 'subscription' | 'user';
61
62
  mobilePrefOrigin?: 'subscription' | 'user';
62
63
  emailPrefOrigin?: 'subscription' | 'user';
@@ -1 +1 @@
1
- {"version":3,"file":"ISubscription.js","sourceRoot":"","sources":["../src/ISubscription.ts"],"names":[],"mappings":";;;AAuFO,MAAM,oBAAoB,GAAG,CAAC,YAA2B,EAAuC,EAAE;IACxG,OAAO,YAAY,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC;AACrE,CAAC,CAAC;AAFW,QAAA,oBAAoB,wBAE/B;AAMK,MAAM,oBAAoB,GAAG,CAAC,YAA2B,EAAuC,EAAE;IACxG,OAAO,YAAY,EAAE,MAAM,KAAK,QAAQ,CAAC;AAC1C,CAAC,CAAC;AAFW,QAAA,oBAAoB,wBAE/B"}
1
+ {"version":3,"file":"ISubscription.js","sourceRoot":"","sources":["../src/ISubscription.ts"],"names":[],"mappings":";;;AAyFO,MAAM,oBAAoB,GAAG,CAAC,YAA2B,EAAuC,EAAE;IACxG,OAAO,YAAY,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC;AACrE,CAAC,CAAC;AAFW,QAAA,oBAAoB,wBAE/B;AAMK,MAAM,oBAAoB,GAAG,CAAC,YAA2B,EAAuC,EAAE;IACxG,OAAO,YAAY,EAAE,MAAM,KAAK,QAAQ,CAAC;AAC1C,CAAC,CAAC;AAFW,QAAA,oBAAoB,wBAE/B"}
@@ -0,0 +1,7 @@
1
+ export interface ITwoFactorChallenge {
2
+ _id: string;
3
+ userId: string;
4
+ method: 'email' | 'totp';
5
+ expireAt: Date;
6
+ createdAt: Date;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ITwoFactorChallenge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ITwoFactorChallenge.js","sourceRoot":"","sources":["../src/ITwoFactorChallenge.ts"],"names":[],"mappings":""}
package/dist/IUpload.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { EncryptedContent } from './IMessage';
2
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
3
  import type { IUser } from './IUser';
3
- export interface IUpload {
4
- _id: string;
4
+ export interface IUpload extends IRocketChatRecord {
5
5
  typeGroup?: string;
6
6
  description?: string;
7
7
  type?: string;
package/dist/IUser.d.ts CHANGED
@@ -145,7 +145,6 @@ export interface IUser extends IRocketChatRecord {
145
145
  oauth?: {
146
146
  authorizedClients: string[];
147
147
  };
148
- _updatedAt: Date;
149
148
  e2e?: {
150
149
  private_key: string;
151
150
  public_key: string;
@@ -187,6 +186,7 @@ export interface IUser extends IRocketChatRecord {
187
186
  isOAuthUser?: boolean;
188
187
  __rooms?: string[];
189
188
  inactiveReason?: 'deactivated' | 'pending_approval' | 'idle_too_long';
189
+ providerId?: string;
190
190
  abacAttributes?: IAbacAttributeDefinition[];
191
191
  }
192
192
  export interface IRegisterUser extends IUser {
package/dist/IUser.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"IUser.js","sourceRoot":"","sources":["../src/IUser.ts"],"names":[],"mappings":";;;AA0BO,MAAM,qBAAqB,GAAG,CAAC,KAAiB,EAAiC,EAAE,CACzF,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,qBAAqB,CAAC;AAD5C,QAAA,qBAAqB,yBACuB;AAiGzD,MAAM,gBAAgB,GAAoB;IAC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C,CAAC,CAAC,QAAQ,CAAC;AAD9B,QAAA,kBAAkB,sBACY"}
@@ -1,8 +1,8 @@
1
1
  import type { IMessage } from './IMessage/IMessage';
2
+ import type { IRocketChatRecord } from './IRocketChatRecord';
2
3
  import type { IUser } from './IUser';
3
- export type MessageReads = {
4
- _id: string;
4
+ export interface MessageReads extends IRocketChatRecord {
5
5
  tmid: IMessage['_id'];
6
6
  ls: Date;
7
7
  userId: IUser['_id'];
8
- };
8
+ }
@@ -1,7 +1,7 @@
1
1
  import * as z from 'zod';
2
2
  export declare const AnnouncementSchema: z.ZodObject<{
3
3
  _id: z.ZodString;
4
- _updatedAt: z.ZodOptional<z.ZodCodec<z.ZodISODateTime, z.ZodDate>>;
4
+ _updatedAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
5
5
  platform: z.ZodArray<z.ZodEnum<typeof import("../IBanner").BannerPlatform>>;
6
6
  expireAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
7
7
  startAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
@@ -25,7 +25,7 @@ export declare const WorkspaceSyncPayloadSchema: z.ZodObject<{
25
25
  }, z.core.$strip>>;
26
26
  banners: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
27
  _id: z.ZodString;
28
- _updatedAt: z.ZodOptional<z.ZodCodec<z.ZodISODateTime, z.ZodDate>>;
28
+ _updatedAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
29
29
  platform: z.ZodArray<z.ZodEnum<typeof import("../IBanner").BannerPlatform>>;
30
30
  expireAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
31
31
  startAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
@@ -82,7 +82,7 @@ export declare const WorkspaceCommsResponsePayloadSchema: z.ZodObject<{
82
82
  announcements: z.ZodOptional<z.ZodObject<{
83
83
  create: z.ZodArray<z.ZodObject<{
84
84
  _id: z.ZodString;
85
- _updatedAt: z.ZodOptional<z.ZodCodec<z.ZodISODateTime, z.ZodDate>>;
85
+ _updatedAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
86
86
  platform: z.ZodArray<z.ZodEnum<typeof import("../IBanner").BannerPlatform>>;
87
87
  expireAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
88
88
  startAt: z.ZodCodec<z.ZodISODateTime, z.ZodDate>;
@@ -1,6 +1,5 @@
1
1
  import type { IRocketChatRecord } from '../IRocketChatRecord';
2
2
  export interface IWorkspaceCredentials extends IRocketChatRecord {
3
- _id: string;
4
3
  scope: string;
5
4
  expirationDate: Date;
6
5
  accessToken: string;
@@ -1,5 +1,6 @@
1
- export type FederationKey = {
1
+ import type { IRocketChatRecord } from '../../IRocketChatRecord';
2
+ export interface FederationKey extends IRocketChatRecord {
2
3
  _id: string;
3
4
  type: 'private' | 'public';
4
5
  key: string;
5
- };
6
+ }
@@ -2,12 +2,12 @@ import type { IImportChannel } from './IImportChannel';
2
2
  import type { IImportContact } from './IImportContact';
3
3
  import type { IImportMessage } from './IImportMessage';
4
4
  import type { IImportUser } from './IImportUser';
5
+ import type { IRocketChatRecord } from '../IRocketChatRecord';
5
6
  export type IImportRecordType = 'user' | 'channel' | 'message' | 'contact';
6
7
  export type IImportData = IImportUser | IImportChannel | IImportMessage | IImportContact;
7
- export interface IImportRecord {
8
+ export interface IImportRecord extends IRocketChatRecord {
8
9
  data: IImportData;
9
10
  dataType: IImportRecordType;
10
- _id: string;
11
11
  options?: Record<string, any>;
12
12
  errors?: Array<{
13
13
  message: string;
package/dist/index.d.ts CHANGED
@@ -114,3 +114,4 @@ export * from './Abac';
114
114
  export type * from './ServerAudit/IAuditServerAbacAction';
115
115
  export type * from './ServerAudit/IAuditUserChangedEvent';
116
116
  export { schemas } from './Ajv';
117
+ export type * from './ITwoFactorChallenge';
@@ -1,5 +1,5 @@
1
- export interface IControl {
2
- _id: string;
1
+ import type { IRocketChatRecord } from '../IRocketChatRecord';
2
+ export interface IControl extends IRocketChatRecord {
3
3
  version: number;
4
4
  locked: boolean;
5
5
  hash?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@rocket.chat/core-typings",
4
- "version": "8.4.1",
4
+ "version": "8.5.0-rc.1",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",
7
7
  "files": [
@@ -20,12 +20,12 @@
20
20
  "dependencies": {
21
21
  "@rocket.chat/icons": "~0.47.0",
22
22
  "@rocket.chat/message-parser": "^0.31.36",
23
- "@rocket.chat/ui-kit": "~1.0.0",
23
+ "@rocket.chat/ui-kit": "~1.1.0-rc.0",
24
24
  "typia": "patch:typia@npm%3A9.7.2#~/.yarn/patches/typia-npm-9.7.2-5c5d9c80b4.patch",
25
25
  "zod": "~4.3.6"
26
26
  },
27
27
  "devDependencies": {
28
- "@rocket.chat/apps-engine": "^1.62.0",
28
+ "@rocket.chat/apps-engine": "^1.63.0-rc.0",
29
29
  "@types/express": "^4.17.25",
30
30
  "eslint": "~9.39.4",
31
31
  "mongodb": "6.16.0",