@rocket.chat/core-typings 6.5.0-rc.9 → 6.5.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 (55) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/IBanner.d.ts +9 -0
  3. package/dist/IBanner.js.map +1 -1
  4. package/dist/IMessage/IMessage.d.ts +8 -3
  5. package/dist/IMessage/IMessage.js +4 -2
  6. package/dist/IMessage/IMessage.js.map +1 -1
  7. package/dist/INotification.d.ts +1 -0
  8. package/dist/IUser.d.ts +2 -1
  9. package/dist/IUser.js.map +1 -1
  10. package/dist/cloud/Announcement.d.ts +2 -19
  11. package/dist/cloud/Announcement.js +0 -1
  12. package/dist/cloud/Announcement.js.map +1 -1
  13. package/dist/cloud/WorkspaceSyncPayload.d.ts +6 -0
  14. package/dist/cloud/index.d.ts +1 -1
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.js +1 -0
  17. package/dist/index.js.map +1 -1
  18. package/dist/license/ILicenseTag.d.ts +4 -0
  19. package/dist/license/ILicenseTag.js +3 -0
  20. package/dist/license/ILicenseTag.js.map +1 -0
  21. package/dist/license/ILicenseV2.d.ts +20 -0
  22. package/dist/license/ILicenseV2.js +3 -0
  23. package/dist/license/ILicenseV2.js.map +1 -0
  24. package/dist/license/ILicenseV3.d.ts +63 -0
  25. package/dist/license/ILicenseV3.js +3 -0
  26. package/dist/license/ILicenseV3.js.map +1 -0
  27. package/dist/license/LicenseBehavior.d.ts +13 -0
  28. package/dist/license/LicenseBehavior.js +3 -0
  29. package/dist/license/LicenseBehavior.js.map +1 -0
  30. package/dist/license/LicenseInfo.d.ts +14 -0
  31. package/dist/license/LicenseInfo.js +3 -0
  32. package/dist/license/LicenseInfo.js.map +1 -0
  33. package/dist/license/LicenseLimit.d.ts +11 -0
  34. package/dist/license/LicenseLimit.js +3 -0
  35. package/dist/license/LicenseLimit.js.map +1 -0
  36. package/dist/license/LicenseModule.d.ts +1 -0
  37. package/dist/license/LicenseModule.js +3 -0
  38. package/dist/license/LicenseModule.js.map +1 -0
  39. package/dist/license/LicensePeriod.d.ts +18 -0
  40. package/dist/license/LicensePeriod.js +3 -0
  41. package/dist/license/LicensePeriod.js.map +1 -0
  42. package/dist/license/LicenseValidationOptions.d.ts +13 -0
  43. package/dist/license/LicenseValidationOptions.js +3 -0
  44. package/dist/license/LicenseValidationOptions.js.map +1 -0
  45. package/dist/license/LimitContext.d.ts +7 -0
  46. package/dist/license/LimitContext.js +3 -0
  47. package/dist/license/LimitContext.js.map +1 -0
  48. package/dist/license/events.d.ts +25 -0
  49. package/dist/license/events.js +3 -0
  50. package/dist/license/events.js.map +1 -0
  51. package/dist/license/index.d.ts +11 -0
  52. package/dist/license/index.js +28 -0
  53. package/dist/license/index.js.map +1 -0
  54. package/dist/uikit/ServerInteraction.d.ts +1 -0
  55. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,59 @@
1
1
  # @rocket.chat/core-typings
2
2
 
3
+ ## 6.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c2b224fd82: Exceeding API calls when sending OTR messages
8
+
9
+ ## 6.5.0
10
+
11
+ ### Minor Changes
12
+
13
+ - c0ef13a0bf: Added `push` statistic, containing three bits. Each bit represents a boolean:
14
+ ```
15
+ 1 1 1
16
+ | | |
17
+ | | +- push enabled = 0b1 = 1
18
+ | +--- push gateway enabled = 0b10 = 2
19
+ +----- push gateway changed = 0b100 = 4
20
+ ```
21
+ - 92613680b7: Added option to select between two script engine options for the integrations
22
+ - ec1b2b9846: Create a deployment fingerprint to identify possible deployment changes caused by database cloning. A question to the admin will confirm if it's a regular deployment change or an intent of a new deployment and correct identification values as needed.
23
+ The fingerprint is composed by `${siteUrl}${dbConnectionString}` and hashed via `sha256` in `base64`.
24
+ An environment variable named `AUTO_ACCEPT_FINGERPRINT`, when set to `true`, can be used to auto-accept an expected fingerprint change as a regular deployment update.
25
+ - 5f81a0f3cb: Implemented the License library, it is used to handle the functionality like expiration date, modules, limits, etc.
26
+ Also added a version v3 of the license, which contains an extended list of features.
27
+ v2 is still supported, since we convert it to v3 on the fly.
28
+
29
+ ### Patch Changes
30
+
31
+ - dea1fe9191: chore: Calculate & Store MAC stats
32
+ Added new info to the stats: `omnichannelContactsBySource`, `uniqueContactsOfLastMonth`, `uniqueContactsOfLastWeek`, `uniqueContactsOfYesterday`
33
+ - 5b9d6883bf: feat: Improve UI when MAC limits are reached
34
+ feat: Limit endpoints on MAC limit reached
35
+ - dea1fe9191: feat: Disable and annonimize visitors instead of removing
36
+
37
+ ## 6.5.0-rc.19
38
+
39
+ ## 6.5.0-rc.18
40
+
41
+ ## 6.5.0-rc.17
42
+
43
+ ## 6.5.0-rc.16
44
+
45
+ ## 6.5.0-rc.15
46
+
47
+ ## 6.5.0-rc.14
48
+
49
+ ## 6.5.0-rc.13
50
+
51
+ ## 6.5.0-rc.12
52
+
53
+ ## 6.5.0-rc.11
54
+
55
+ ## 6.5.0-rc.10
56
+
3
57
  ## 6.5.0-rc.9
4
58
 
5
59
  ## 6.5.0-rc.8
package/dist/IBanner.d.ts CHANGED
@@ -5,10 +5,16 @@ export declare enum BannerPlatform {
5
5
  Web = "web",
6
6
  Mobile = "mobile"
7
7
  }
8
+ type Dictionary = {
9
+ [lng: string]: {
10
+ [key: string]: string;
11
+ };
12
+ };
8
13
  export interface IBanner extends IRocketChatRecord {
9
14
  platform: BannerPlatform[];
10
15
  expireAt: Date;
11
16
  startAt: Date;
17
+ /** @deprecated a new `selector` field should be created for filtering instead */
12
18
  roles?: string[];
13
19
  createdBy: Pick<IUser, '_id' | 'username'>;
14
20
  createdAt: Date;
@@ -16,6 +22,8 @@ export interface IBanner extends IRocketChatRecord {
16
22
  active?: boolean;
17
23
  inactivedAt?: Date;
18
24
  snapshot?: string;
25
+ dictionary?: Dictionary;
26
+ surface: 'banner' | 'modal';
19
27
  }
20
28
  export type InactiveBanner = IBanner & {
21
29
  active: false;
@@ -28,3 +36,4 @@ export interface IBannerDismiss extends IRocketChatRecord {
28
36
  dismissedAt: Date;
29
37
  dismissedBy: Pick<IUser, '_id' | 'username'>;
30
38
  }
39
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"IBanner.js","sourceRoot":"","sources":["../src/IBanner.ts"],"names":[],"mappings":";;;AAIA,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,6BAAW,CAAA;IACX,mCAAiB,CAAA;AAClB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAmBM,MAAM,gBAAgB,GAAG,CAAC,MAAe,EAA4B,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC;AAA1F,QAAA,gBAAgB,oBAA0E"}
1
+ {"version":3,"file":"IBanner.js","sourceRoot":"","sources":["../src/IBanner.ts"],"names":[],"mappings":";;;AAIA,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,6BAAW,CAAA;IACX,mCAAiB,CAAA;AAClB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AA8BM,MAAM,gBAAgB,GAAG,CAAC,MAAe,EAA4B,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC;AAA1F,QAAA,gBAAgB,oBAA0E"}
@@ -237,14 +237,19 @@ export type IE2EEMessage = IMessage & {
237
237
  t: 'e2e';
238
238
  e2e: 'pending' | 'done';
239
239
  };
240
- export type IOTRMessage = IMessage & {
241
- t: 'otr' | 'otr-ack';
242
- };
240
+ export interface IOTRMessage extends IMessage {
241
+ t: 'otr';
242
+ otrAck?: string;
243
+ }
244
+ export interface IOTRAckMessage extends IMessage {
245
+ t: 'otr-ack';
246
+ }
243
247
  export type IVideoConfMessage = IMessage & {
244
248
  t: 'videoconf';
245
249
  };
246
250
  export declare const isE2EEMessage: (message: IMessage) => message is IE2EEMessage;
247
251
  export declare const isOTRMessage: (message: IMessage) => message is IOTRMessage;
252
+ export declare const isOTRAckMessage: (message: IMessage) => message is IOTRAckMessage;
248
253
  export declare const isVideoConfMessage: (message: IMessage) => message is IVideoConfMessage;
249
254
  export type IMessageWithPendingFileImport = IMessage & {
250
255
  _importFile: {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isVideoConfMessage = exports.isOTRMessage = exports.isE2EEMessage = exports.isVoipMessage = exports.isIMessageInbox = exports.isMessageDiscussion = exports.isMessageReactionsNormalized = exports.isPrivateMessage = exports.isDiscussionMessage = exports.isThreadMessage = exports.isThreadMainMessage = exports.isTranslatedMessage = exports.isMessageFromMatrixFederation = exports.isDeletedMessage = exports.isEditedMessage = void 0;
3
+ exports.isVideoConfMessage = exports.isOTRAckMessage = exports.isOTRMessage = exports.isE2EEMessage = exports.isVoipMessage = exports.isIMessageInbox = exports.isMessageDiscussion = exports.isMessageReactionsNormalized = exports.isPrivateMessage = exports.isDiscussionMessage = exports.isThreadMessage = exports.isThreadMainMessage = exports.isTranslatedMessage = exports.isMessageFromMatrixFederation = exports.isDeletedMessage = exports.isEditedMessage = void 0;
4
4
  const isEditedMessage = (message) => 'editedAt' in message &&
5
5
  message.editedAt instanceof Date &&
6
6
  'editedBy' in message &&
@@ -35,8 +35,10 @@ const isVoipMessage = (message) => 'voipData' in message;
35
35
  exports.isVoipMessage = isVoipMessage;
36
36
  const isE2EEMessage = (message) => message.t === 'e2e';
37
37
  exports.isE2EEMessage = isE2EEMessage;
38
- const isOTRMessage = (message) => message.t === 'otr' || message.t === 'otr-ack';
38
+ const isOTRMessage = (message) => message.t === 'otr';
39
39
  exports.isOTRMessage = isOTRMessage;
40
+ const isOTRAckMessage = (message) => message.t === 'otr-ack';
41
+ exports.isOTRAckMessage = isOTRAckMessage;
40
42
  const isVideoConfMessage = (message) => message.t === 'videoconf';
41
43
  exports.isVideoConfMessage = isVideoConfMessage;
42
44
  //# sourceMappingURL=IMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IMessage.js","sourceRoot":"","sources":["../../src/IMessage/IMessage.ts"],"names":[],"mappings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AAxF,QAAA,gBAAgB,oBAAwE;AAW9F,MAAM,4BAA4B,GAAG,CAAC,OAAiB,EAA0C,EAAE,CACzG,OAAO,CAAC,WAAW,IAAI,OAAO,IAAI,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,OAAO,IAAI,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AADpG,QAAA,4BAA4B,gCACwE;AAgD1G,MAAM,mBAAmB,GAAG,CAAC,OAAiB,EAAiC,EAAE;IACvF,OAAO,MAAM,IAAI,OAAO,CAAC;AAC1B,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAWK,MAAM,eAAe,GAAG,CAAC,OAAiB,EAA4B,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC;AAAtF,QAAA,eAAe,mBAAuE;AAC5F,MAAM,aAAa,GAAG,CAAC,OAAiB,EAA2B,EAAE,CAAC,UAAU,IAAI,OAAO,CAAC;AAAtF,QAAA,aAAa,iBAAyE;AAoB5F,MAAM,aAAa,GAAG,CAAC,OAAiB,EAA2B,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK,KAAK,CAAC;AAApF,QAAA,aAAa,iBAAuE;AAC1F,MAAM,YAAY,GAAG,CAAC,OAAiB,EAA0B,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK,KAAK,CAAC;AAAlF,QAAA,YAAY,gBAAsE;AACxF,MAAM,eAAe,GAAG,CAAC,OAAiB,EAA6B,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK,SAAS,CAAC;AAA5F,QAAA,eAAe,mBAA6E;AAClG,MAAM,kBAAkB,GAAG,CAAC,OAAiB,EAAgC,EAAE,CAAC,OAAO,CAAC,CAAC,KAAK,WAAW,CAAC;AAApG,QAAA,kBAAkB,sBAAkF"}
@@ -46,6 +46,7 @@ export interface INotification {
46
46
  export interface INotificationDesktop {
47
47
  title: string;
48
48
  text: string;
49
+ icon?: string;
49
50
  duration?: number;
50
51
  payload: {
51
52
  _id: IMessage['_id'];
package/dist/IUser.d.ts CHANGED
@@ -24,6 +24,7 @@ export interface IUserEmailVerificationToken {
24
24
  export interface IUserEmailCode {
25
25
  code: string;
26
26
  expire: Date;
27
+ attempts: number;
27
28
  }
28
29
  type LoginToken = IMeteorLoginToken | IPersonalAccessToken;
29
30
  export type Username = string;
@@ -65,7 +66,7 @@ export interface IUserServices {
65
66
  enabled: boolean;
66
67
  changedAt: Date;
67
68
  };
68
- emailCode?: IUserEmailCode[];
69
+ emailCode?: IUserEmailCode;
69
70
  saml?: {
70
71
  inResponseTo?: string;
71
72
  provider?: string;
package/dist/IUser.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"IUser.js","sourceRoot":"","sources":["../src/IUser.ts"],"names":[],"mappings":";;;AA8LO,MAAM,cAAc,GAAG,CAAC,IAAW,EAAyB,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC;AAAhH,QAAA,cAAc,kBAAkG;AACtH,MAAM,eAAe,GAAG,CAAC,IAAoB,EAAE,EAAE,CAAC,WAAW,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC;AAA3F,QAAA,eAAe,mBAA4E"}
1
+ {"version":3,"file":"IUser.js","sourceRoot":"","sources":["../src/IUser.ts"],"names":[],"mappings":";;;AA+LO,MAAM,cAAc,GAAG,CAAC,IAAW,EAAyB,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC;AAAhH,QAAA,cAAc,kBAAkG;AACtH,MAAM,eAAe,GAAG,CAAC,IAAoB,EAAE,EAAE,CAAC,WAAW,IAAI,IAAI,IAAI,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC;AAA3F,QAAA,eAAe,mBAA4E"}
@@ -1,23 +1,6 @@
1
- import type { IRocketChatRecord } from '../IRocketChatRecord';
2
- import type * as UiKit from '../uikit';
3
- type TargetPlatform = 'web' | 'mobile';
4
- type Dictionary = {
5
- [lng: string]: {
6
- [key: string]: string;
7
- };
8
- };
9
- type Creator = 'cloud' | 'system';
10
- export interface Announcement extends IRocketChatRecord {
1
+ import type { IBanner } from '../IBanner';
2
+ export interface Announcement extends IBanner {
11
3
  selector?: {
12
4
  roles?: string[];
13
5
  };
14
- platform: TargetPlatform[];
15
- expireAt: Date;
16
- startAt: Date;
17
- createdBy: Creator;
18
- createdAt: Date;
19
- dictionary?: Dictionary;
20
- view: UiKit.View;
21
- surface: 'banner' | 'modal';
22
6
  }
23
- export {};
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- /* eslint-disable @typescript-eslint/naming-convention */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=Announcement.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Announcement.js","sourceRoot":"","sources":["../../src/cloud/Announcement.ts"],"names":[],"mappings":";AAAA,yDAAyD"}
1
+ {"version":3,"file":"Announcement.js","sourceRoot":"","sources":["../../src/cloud/Announcement.ts"],"names":[],"mappings":""}
@@ -1,3 +1,4 @@
1
+ import type { UiKit } from '..';
1
2
  import type { IBanner } from '../IBanner';
2
3
  import type { Announcement } from './Announcement';
3
4
  import type { NpsSurveyAnnouncement } from './NpsSurveyAnnouncement';
@@ -41,6 +42,7 @@ export interface WorkspaceSyncResponse {
41
42
  workspaceId: string;
42
43
  publicKey: string;
43
44
  license: unknown;
45
+ removeLicense?: boolean;
44
46
  }
45
47
  export interface WorkspaceCommsRequestPayload {
46
48
  npsEnabled: boolean;
@@ -55,3 +57,7 @@ export interface WorkspaceCommsResponsePayload {
55
57
  delete: Announcement['_id'][];
56
58
  };
57
59
  }
60
+ export interface WorkspaceInteractionResponsePayload {
61
+ serverInteraction: UiKit.ServerInteraction;
62
+ serverAction?: 'syncWorkspace';
63
+ }
@@ -1,4 +1,4 @@
1
1
  export { Announcement } from './Announcement';
2
2
  export { NpsSurveyAnnouncement } from './NpsSurveyAnnouncement';
3
3
  export { WorkspaceLicensePayload } from './WorkspaceLicensePayload';
4
- export { WorkspaceSyncPayload, WorkspaceSyncRequestPayload, WorkspaceSyncResponse, WorkspaceCommsRequestPayload, WorkspaceCommsResponsePayload, } from './WorkspaceSyncPayload';
4
+ export { WorkspaceSyncPayload, WorkspaceSyncRequestPayload, WorkspaceSyncResponse, WorkspaceCommsRequestPayload, WorkspaceCommsResponsePayload, WorkspaceInteractionResponsePayload, } from './WorkspaceSyncPayload';
package/dist/index.d.ts CHANGED
@@ -33,6 +33,7 @@ export * from './IRocketChatAssets';
33
33
  export * from './IPushToken';
34
34
  export * from './IPushNotificationConfig';
35
35
  export * from './SlashCommands';
36
+ export * from './license';
36
37
  export * from './IUserDataFile';
37
38
  export * from './IUserSession';
38
39
  export * from './IUserStatus';
package/dist/index.js CHANGED
@@ -62,6 +62,7 @@ __exportStar(require("./IRocketChatAssets"), exports);
62
62
  __exportStar(require("./IPushToken"), exports);
63
63
  __exportStar(require("./IPushNotificationConfig"), exports);
64
64
  __exportStar(require("./SlashCommands"), exports);
65
+ __exportStar(require("./license"), exports);
65
66
  __exportStar(require("./IUserDataFile"), exports);
66
67
  __exportStar(require("./IUserSession"), exports);
67
68
  __exportStar(require("./IUserStatus"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,gDAA8B;AAC9B,iDAA+B;AAC/B,gDAA8B;AAC9B,oDAAkC;AAClC,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,+CAA6B;AAC7B,6CAA2B;AAC3B,kDAAgC;AAChC,0CAAwB;AACxB,6CAA2B;AAC3B,4CAA0B;AAC1B,sDAAoC;AACpC,+CAA6B;AAC7B,gDAA8B;AAC9B,4CAA0B;AAC1B,2CAAyB;AACzB,gDA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C,yDAAuC;AAEvC,gDAA8B;AAC9B,iDAA+B;AAC/B,4CAA0B;AAC1B,iDAA+B;AAC/B,4CAA0B;AAC1B,wDAAwD;AAExD,gDAA8B;AAC9B,+DAA6C;AAC7C,sDAAoC;AACpC,oDAAkC;AAClC,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,mDAAiC;AACjC,sDAAoC;AACpC,uDAAqC;AACrC,mDAAiC;AACjC,4CAA0B;AAE1B,uCAAuC;AAEvC,yCAAuB;AACvB,kCAAkC;AAElC,6DAA2C;AAC3C,4DAA0C;AAE1C,iDAA+B;AAC/B,8CAA4B;AAC5B,qDAAmC;AACnC,uDAAqC;AACrC,qDAAmC;AACnC,yDAAuC;AACvC,iDAA+B;AAC/B,2DAAyC;AACzC,0DAAwC;AACxC,qDAAmC;AACnC,8DAA4C;AAC5C,mDAAiC;AACjC,8DAA4C;AAC5C,+DAA6C;AAC7C,2DAAyC;AACzC,wDAAsC;AACtC,sDAAoC;AACpC,4DAA0C;AAC1C,mDAAiC;AACjC,yCAAuB;AACvB,8CAA4B;AAC5B,yDAAuC;AACvC,sDAAoC;AACpC,kEAAgD;AAChD,kEAAgD;AAChD,6CAA2B;AAC3B,sDAAoC;AACpC,0CAAwB;AACxB,uEAAqD;AAErD,mDAAiC;AACjC,qDAAmC;AACnC,gEAA8C;AAC9C,2DAAyC;AAEzC,kDAAgC;AAChC,mDAAiC;AAEjC,2CAAyB;AACzB,gDAA8B;AAC9B,+CAA6B;AAC7B,yDAAuC;AACvC,qDAAmC;AAEnC,wDAAsC;AACtC,uDAAqC;AAErC,sDAAoC;AACpC,wDAAsC;AAEtC,iDAAiC;AAEjC,iDAAiC"}
@@ -0,0 +1,4 @@
1
+ export interface ILicenseTag {
2
+ name: string;
3
+ color: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ILicenseTag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILicenseTag.js","sourceRoot":"","sources":["../../src/license/ILicenseTag.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import type { ILicenseTag } from './ILicenseTag';
2
+ export interface ILicenseV2 {
3
+ url: string;
4
+ expiry: string;
5
+ maxActiveUsers: number;
6
+ modules: string[];
7
+ maxGuestUsers: number;
8
+ maxRoomsPerGuest: number;
9
+ tag?: ILicenseTag;
10
+ meta?: {
11
+ trial: boolean;
12
+ trialEnd: string;
13
+ workspaceId: string;
14
+ };
15
+ apps?: {
16
+ maxPrivateApps: number;
17
+ maxMarketplaceApps: number;
18
+ };
19
+ }
20
+ export type LicenseAppSources = 'private' | 'marketplace';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ILicenseV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILicenseV2.js","sourceRoot":"","sources":["../../src/license/ILicenseV2.ts"],"names":[],"mappings":""}
@@ -0,0 +1,63 @@
1
+ import type { ILicenseTag } from './ILicenseTag';
2
+ import type { LicenseLimit } from './LicenseLimit';
3
+ import type { LicenseModule } from './LicenseModule';
4
+ import type { LicensePeriod, Timestamp } from './LicensePeriod';
5
+ export interface ILicenseV3 {
6
+ version: '3.0';
7
+ information: {
8
+ id?: string;
9
+ autoRenew: boolean;
10
+ visualExpiration?: Timestamp;
11
+ notifyAdminsAt?: Timestamp;
12
+ notifyUsersAt?: Timestamp;
13
+ trial: boolean;
14
+ cancellable?: boolean;
15
+ offline: boolean;
16
+ createdAt: Timestamp;
17
+ grantedBy: {
18
+ method: 'manual' | 'self-service' | 'sales' | 'support' | 'reseller';
19
+ seller?: string;
20
+ };
21
+ grantedTo?: {
22
+ name?: string;
23
+ company?: string;
24
+ email?: string;
25
+ };
26
+ legalText?: string;
27
+ notes?: string;
28
+ tags?: ILicenseTag[];
29
+ };
30
+ validation: {
31
+ serverUrls: {
32
+ value: string;
33
+ type: 'url' | 'regex' | 'hash';
34
+ }[];
35
+ serverVersions?: {
36
+ value: string;
37
+ }[];
38
+ serverUniqueId?: string;
39
+ cloudWorkspaceId?: string;
40
+ validPeriods: LicensePeriod[];
41
+ legalTextAgreement?: {
42
+ type: 'required' | 'not-required' | 'accepted';
43
+ acceptedVia?: 'cloud';
44
+ };
45
+ statisticsReport: {
46
+ required: boolean;
47
+ allowedStaleInDays?: number;
48
+ };
49
+ };
50
+ grantedModules: {
51
+ module: LicenseModule;
52
+ }[];
53
+ limits: {
54
+ activeUsers?: LicenseLimit[];
55
+ guestUsers?: LicenseLimit[];
56
+ roomsPerGuest?: LicenseLimit<'prevent_action'>[];
57
+ privateApps?: LicenseLimit[];
58
+ marketplaceApps?: LicenseLimit[];
59
+ monthlyActiveContacts?: LicenseLimit[];
60
+ };
61
+ cloudMeta?: Record<string, any>;
62
+ }
63
+ export type LicenseLimitKind = keyof ILicenseV3['limits'];
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ILicenseV3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILicenseV3.js","sourceRoot":"","sources":["../../src/license/ILicenseV3.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import type { LicenseLimitKind } from './ILicenseV3';
2
+ import type { LicenseModule } from './LicenseModule';
3
+ export type LicenseBehavior = 'invalidate_license' | 'start_fair_policy' | 'prevent_action' | 'allow_action' | 'prevent_installation' | 'disable_modules';
4
+ export type BehaviorWithContext = {
5
+ behavior: LicenseBehavior;
6
+ modules?: LicenseModule[];
7
+ reason: 'limit';
8
+ limit?: LicenseLimitKind;
9
+ } | {
10
+ behavior: LicenseBehavior;
11
+ modules?: LicenseModule[];
12
+ reason: 'period' | 'url';
13
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LicenseBehavior.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LicenseBehavior.js","sourceRoot":"","sources":["../../src/license/LicenseBehavior.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import type { ILicenseTag } from './ILicenseTag';
2
+ import type { ILicenseV3, LicenseLimitKind } from './ILicenseV3';
3
+ import type { LicenseModule } from './LicenseModule';
4
+ export type LicenseInfo = {
5
+ license?: ILicenseV3;
6
+ activeModules: LicenseModule[];
7
+ preventedActions: Record<LicenseLimitKind, boolean>;
8
+ limits: Record<LicenseLimitKind, {
9
+ value?: number;
10
+ max: number;
11
+ }>;
12
+ tags: ILicenseTag[];
13
+ trial: boolean;
14
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LicenseInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LicenseInfo.js","sourceRoot":"","sources":["../../src/license/LicenseInfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { LicenseBehavior } from './LicenseBehavior';
2
+ import type { LicenseModule } from './LicenseModule';
3
+ export type LicenseLimit<T extends LicenseBehavior = LicenseBehavior> = {
4
+ max: number;
5
+ behavior: T;
6
+ } & (T extends 'disable_modules' ? {
7
+ behavior: T;
8
+ modules: LicenseModule[];
9
+ } : {
10
+ behavior: T;
11
+ });
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LicenseLimit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LicenseLimit.js","sourceRoot":"","sources":["../../src/license/LicenseLimit.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export type LicenseModule = 'auditing' | 'canned-responses' | 'ldap-enterprise' | 'livechat-enterprise' | 'voip-enterprise' | 'omnichannel-mobile-enterprise' | 'engagement-dashboard' | 'push-privacy' | 'scalability' | 'teams-mention' | 'saml-enterprise' | 'oauth-enterprise' | 'device-management' | 'federation' | 'videoconference-enterprise' | 'message-read-receipt' | 'outlook-calendar' | 'hide-watermark' | 'custom-roles' | 'accessibility-certification';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LicenseModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LicenseModule.js","sourceRoot":"","sources":["../../src/license/LicenseModule.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import type { LicenseBehavior } from './LicenseBehavior';
2
+ import type { LicenseModule } from './LicenseModule';
3
+ export type Timestamp = string;
4
+ export type LicensePeriod = {
5
+ validFrom?: Timestamp;
6
+ validUntil?: Timestamp;
7
+ invalidBehavior: LicenseBehavior;
8
+ } & ({
9
+ validFrom: Timestamp;
10
+ } | {
11
+ validUntil: Timestamp;
12
+ }) & ({
13
+ invalidBehavior: 'disable_modules';
14
+ modules: LicenseModule[];
15
+ } | {
16
+ invalidBehavior: Exclude<LicenseBehavior, 'disable_modules'>;
17
+ });
18
+ export type LicensePeriodBehavior = Exclude<LicenseBehavior, 'prevent_action'>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LicensePeriod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LicensePeriod.js","sourceRoot":"","sources":["../../src/license/LicensePeriod.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import type { LicenseLimitKind } from './ILicenseV3';
2
+ import type { LicenseBehavior } from './LicenseBehavior';
3
+ import type { LimitContext } from './LimitContext';
4
+ export type LicenseValidationOptions = {
5
+ behaviors?: LicenseBehavior[];
6
+ limits?: LicenseLimitKind[];
7
+ suppressLog?: boolean;
8
+ isNewLicense?: boolean;
9
+ context?: Partial<{
10
+ [K in LicenseLimitKind]: Partial<LimitContext<LicenseLimitKind>>;
11
+ }>;
12
+ triggerSync?: boolean;
13
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LicenseValidationOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LicenseValidationOptions.js","sourceRoot":"","sources":["../../src/license/LicenseValidationOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { IUser } from '../IUser';
2
+ import type { LicenseLimitKind } from './ILicenseV3';
3
+ export type LimitContext<T extends LicenseLimitKind> = {
4
+ extraCount?: number;
5
+ } & (T extends 'roomsPerGuest' ? {
6
+ userId: IUser['_id'];
7
+ } : Record<string, never>);
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=LimitContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LimitContext.js","sourceRoot":"","sources":["../../src/license/LimitContext.ts"],"names":[],"mappings":""}
@@ -0,0 +1,25 @@
1
+ import type { LicenseLimitKind } from './ILicenseV3';
2
+ import type { BehaviorWithContext, LicenseBehavior } from './LicenseBehavior';
3
+ import type { LicenseModule } from './LicenseModule';
4
+ type ModuleValidation = Record<`${'invalid' | 'valid'}:${LicenseModule}`, undefined>;
5
+ type BehaviorTriggered = Record<`behavior:${LicenseBehavior}`, {
6
+ reason: BehaviorWithContext['reason'];
7
+ limit?: LicenseLimitKind;
8
+ }>;
9
+ type BehaviorTriggeredToggled = Record<`behaviorToggled:${LicenseBehavior}`, {
10
+ reason: BehaviorWithContext['reason'];
11
+ limit?: LicenseLimitKind;
12
+ }>;
13
+ type LimitReached = Record<`limitReached:${LicenseLimitKind}`, undefined>;
14
+ export type LicenseEvents = ModuleValidation & BehaviorTriggeredToggled & BehaviorTriggered & LimitReached & {
15
+ installed: undefined;
16
+ removed: undefined;
17
+ validate: undefined;
18
+ invalidate: undefined;
19
+ module: {
20
+ module: LicenseModule;
21
+ valid: boolean;
22
+ };
23
+ sync: undefined;
24
+ };
25
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/license/events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ export * from './events';
2
+ export * from './ILicenseTag';
3
+ export * from './ILicenseV2';
4
+ export * from './ILicenseV3';
5
+ export * from './LicenseBehavior';
6
+ export * from './LicenseInfo';
7
+ export * from './LicenseLimit';
8
+ export * from './LicenseModule';
9
+ export * from './LicensePeriod';
10
+ export * from './LicenseValidationOptions';
11
+ export * from './LimitContext';
@@ -0,0 +1,28 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./events"), exports);
18
+ __exportStar(require("./ILicenseTag"), exports);
19
+ __exportStar(require("./ILicenseV2"), exports);
20
+ __exportStar(require("./ILicenseV3"), exports);
21
+ __exportStar(require("./LicenseBehavior"), exports);
22
+ __exportStar(require("./LicenseInfo"), exports);
23
+ __exportStar(require("./LicenseLimit"), exports);
24
+ __exportStar(require("./LicenseModule"), exports);
25
+ __exportStar(require("./LicensePeriod"), exports);
26
+ __exportStar(require("./LicenseValidationOptions"), exports);
27
+ __exportStar(require("./LimitContext"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/license/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,gDAA8B;AAC9B,+CAA6B;AAC7B,+CAA6B;AAC7B,oDAAkC;AAClC,gDAA8B;AAC9B,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC;AAChC,6DAA2C;AAC3C,iDAA+B"}
@@ -17,6 +17,7 @@ type CloseModalServerInteraction = {
17
17
  type: 'modal.close';
18
18
  triggerId: string;
19
19
  appId: string;
20
+ viewId: ModalView['id'];
20
21
  };
21
22
  type OpenBannerServerInteraction = {
22
23
  type: 'banner.open';
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": "6.5.0-rc.9",
4
+ "version": "6.5.1",
5
5
  "devDependencies": {
6
6
  "@rocket.chat/eslint-config": "^0.6.0",
7
7
  "eslint": "~8.45.0",
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@rocket.chat/apps-engine": "1.41.0",
26
26
  "@rocket.chat/icons": "~0.32.0",
27
- "@rocket.chat/message-parser": "~0.31.26",
27
+ "@rocket.chat/message-parser": "~0.31.27",
28
28
  "@rocket.chat/ui-kit": "~0.32.1"
29
29
  },
30
30
  "volta": {