@rocket.chat/core-typings 8.5.1 → 8.6.0-rc.0

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/Abac.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { AbacAttributeStoreType, AbacPdpType } from './ServerAudit/IAuditServerAbacAction';
1
2
  export declare enum AbacAccessOperation {
2
3
  READ = "read",
3
4
  WRITE = "write"
@@ -5,3 +6,11 @@ export declare enum AbacAccessOperation {
5
6
  export declare enum AbacObjectType {
6
7
  ROOM = "room"
7
8
  }
9
+ export declare const isAbacPdpType: (value: unknown) => value is AbacPdpType;
10
+ export declare const isAbacAttributeStoreType: (value: unknown) => value is AbacAttributeStoreType;
11
+ export type AbacUserIdentifiers = {
12
+ usernames?: string[];
13
+ ids?: string[];
14
+ emails?: string[];
15
+ ldapIds?: string[];
16
+ };
package/dist/Abac.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AbacObjectType = exports.AbacAccessOperation = void 0;
3
+ exports.isAbacAttributeStoreType = exports.isAbacPdpType = exports.AbacObjectType = exports.AbacAccessOperation = void 0;
4
4
  var AbacAccessOperation;
5
5
  (function (AbacAccessOperation) {
6
6
  AbacAccessOperation["READ"] = "read";
@@ -11,4 +11,8 @@ var AbacObjectType;
11
11
  AbacObjectType["ROOM"] = "room";
12
12
  // Just room for now :)
13
13
  })(AbacObjectType || (exports.AbacObjectType = AbacObjectType = {}));
14
+ const isAbacPdpType = (value) => value === 'local' || value === 'virtru';
15
+ exports.isAbacPdpType = isAbacPdpType;
16
+ const isAbacAttributeStoreType = (value) => value === 'local' || value === 'virtru';
17
+ exports.isAbacAttributeStoreType = isAbacAttributeStoreType;
14
18
  //# sourceMappingURL=Abac.js.map
package/dist/Abac.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Abac.js","sourceRoot":"","sources":["../src/Abac.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC9B,oCAAa,CAAA;IACb,sCAAe,CAAA;AAChB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,+BAAa,CAAA;IACb,uBAAuB;AACxB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB"}
1
+ {"version":3,"file":"Abac.js","sourceRoot":"","sources":["../src/Abac.ts"],"names":[],"mappings":";;;AAEA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC9B,oCAAa,CAAA;IACb,sCAAe,CAAA;AAChB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACzB,+BAAa,CAAA;IACb,uBAAuB;AACxB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAEM,MAAM,aAAa,GAAG,CAAC,KAAc,EAAwB,EAAE,CAAC,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,QAAQ,CAAC;AAAlG,QAAA,aAAa,iBAAqF;AAExG,MAAM,wBAAwB,GAAG,CAAC,KAAc,EAAmC,EAAE,CAAC,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,QAAQ,CAAC;AAAxH,QAAA,wBAAwB,4BAAgG"}
package/dist/Ajv.d.ts CHANGED
@@ -24,4 +24,4 @@ import type { SlashCommand } from './SlashCommands';
24
24
  import type { VideoConferenceCapabilities } from './VideoConferenceCapabilities';
25
25
  import type { IImport } from './import/IImport';
26
26
  import type { IMediaCall } from './mediaCalls/IMediaCall';
27
- export declare const schemas: typia.IJsonSchemaCollection.IV3_0<[IRole | IUser | IDirectoryUserResult | IBanner | ICalendarEvent | IRoom | IMessage | IDirectoryChannelResult | IRoomAdmin | CloudRegistrationStatus | CloudRegistrationIntentData | CloudConfirmationPollData | ICustomSound | IEmailInbox | IEmojiCustom | IIntegration | IIntegrationHistory | IInvite | IMeApiUser | IModerationReport | IModerationAudit | IOAuthApps | IPermission | ISubscription | VideoConference | VideoConferenceInstructions | VideoConferenceCapabilities | IImport | IMediaCall, CallHistoryItem, ICustomUserStatus, SlashCommand]>;
27
+ export declare const schemas: typia.IJsonSchemaCollection.IV3_0<[IRole | IUser | IDirectoryUserResult | IBanner | IMessage | IRoom | IDirectoryChannelResult | IRoomAdmin | ISubscription | IInvite | IPermission | IIntegration | IIntegrationHistory | ICustomSound | CloudRegistrationStatus | CloudRegistrationIntentData | CloudConfirmationPollData | IMeApiUser | IImport | ICalendarEvent | IEmojiCustom | IEmailInbox | IOAuthApps | VideoConference | VideoConferenceInstructions | VideoConferenceCapabilities | IModerationReport | IModerationAudit | IMediaCall, CallHistoryItem, ICustomUserStatus, SlashCommand]>;