@brivioio/api-server-types 7.13.0 → 7.14.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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './jobRoleChatHistory.types';
2
2
  export * from './jobRoles.types';
3
+ export * from './meetingBots.types';
3
4
  export * from './organizationUsers.types';
4
5
  export * from './organizations.types';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './jobRoleChatHistory.types';
2
2
  export * from './jobRoles.types';
3
+ export * from './meetingBots.types';
3
4
  export * from './organizationUsers.types';
4
5
  export * from './organizations.types';
@@ -0,0 +1,107 @@
1
+ import type { IResponse } from './utils.types';
2
+ export declare enum EMeetingPlatform {
3
+ ZOOM = "zoom",
4
+ GOOGLE_MEET = "google_meet",
5
+ MS_TEAMS = "ms_teams",
6
+ UNKNOWN = "unknown"
7
+ }
8
+ export declare enum EMeetingBotStatus {
9
+ READY = "ready",
10
+ JOINING_CALL = "joining_call",
11
+ IN_WAITING_ROOM = "in_waiting_room",
12
+ IN_CALL_NOT_RECORDING = "in_call_not_recording",
13
+ IN_CALL_RECORDING = "in_call_recording",
14
+ CALL_ENDED = "call_ended",
15
+ DONE = "done",
16
+ FATAL = "fatal",
17
+ RECORDING_PERMISSION_DENIED = "recording_permission_denied"
18
+ }
19
+ export declare enum EMeetingTranscriptStatus {
20
+ PENDING = "pending",
21
+ READY = "ready",
22
+ FAILED = "failed"
23
+ }
24
+ export type TMeetingParticipant = {
25
+ recallParticipantId: string | null;
26
+ name: string;
27
+ email: string | null;
28
+ joinedAt: string | null;
29
+ leftAt: string | null;
30
+ };
31
+ export type TMeetingTranscriptTurn = {
32
+ speakerName: string;
33
+ speakerParticipantId: string | null;
34
+ startTime: number;
35
+ endTime: number;
36
+ text: string;
37
+ };
38
+ export type TMeetingStatusHistoryEntry = {
39
+ status: EMeetingBotStatus;
40
+ subCode: string | null;
41
+ at: string;
42
+ };
43
+ export interface IMeetingBot {
44
+ _id: string;
45
+ isDeleted: boolean;
46
+ organizationId: string;
47
+ jobRoleId: string;
48
+ createdBy: string;
49
+ createdByEmail: string;
50
+ recallBotId: string;
51
+ meetingUrl: string;
52
+ platform: EMeetingPlatform;
53
+ botName: string;
54
+ status: EMeetingBotStatus;
55
+ statusSubCode: string | null;
56
+ statusHistory: TMeetingStatusHistoryEntry[];
57
+ participants: TMeetingParticipant[];
58
+ transcript: TMeetingTranscriptTurn[];
59
+ transcriptStatus: EMeetingTranscriptStatus;
60
+ errorMessage: string | null;
61
+ startedAt: Date | null;
62
+ endedAt: Date | null;
63
+ createdAt: string;
64
+ updatedAt: string;
65
+ }
66
+ export type TMeetingBot = {
67
+ id: string;
68
+ organizationId: string;
69
+ jobRoleId: string;
70
+ createdBy: string;
71
+ createdByEmail: string;
72
+ recallBotId: string;
73
+ meetingUrl: string;
74
+ platform: EMeetingPlatform;
75
+ botName: string;
76
+ status: EMeetingBotStatus;
77
+ statusSubCode: string | null;
78
+ statusHistory: TMeetingStatusHistoryEntry[];
79
+ participants: TMeetingParticipant[];
80
+ transcript: TMeetingTranscriptTurn[];
81
+ transcriptStatus: EMeetingTranscriptStatus;
82
+ errorMessage: string | null;
83
+ startedAt: string | null;
84
+ endedAt: string | null;
85
+ createdAt: string;
86
+ updatedAt: string;
87
+ };
88
+ export declare namespace MeetingBotsAPITypes {
89
+ type TCreateBotRequestBody = {
90
+ jobRoleId: string;
91
+ meetingUrl: string;
92
+ botName?: string;
93
+ };
94
+ type TCreateBotResponse = IResponse<{
95
+ bot: TMeetingBot;
96
+ } | null>;
97
+ type TListBotsQuery = {
98
+ jobRoleId: string;
99
+ };
100
+ type TListBotsResponse = IResponse<{
101
+ bots: TMeetingBot[];
102
+ } | null>;
103
+ type TGetBotResponse = IResponse<{
104
+ bot: TMeetingBot;
105
+ } | null>;
106
+ }
107
+ //# sourceMappingURL=meetingBots.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meetingBots.types.d.ts","sourceRoot":"","sources":["../src/meetingBots.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,eAAe,oBAAoB;IACnC,qBAAqB,0BAA0B;IAC/C,iBAAiB,sBAAsB;IACvC,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,2BAA2B,gCAAgC;CAC5D;AAED,oBAAY,wBAAwB;IAClC,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,M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meet";
5
+ EMeetingPlatform["MS_TEAMS"] = "ms_teams";
6
+ EMeetingPlatform["UNKNOWN"] = "unknown";
7
+ })(EMeetingPlatform || (EMeetingPlatform = {}));
8
+ export var EMeetingBotStatus;
9
+ (function (EMeetingBotStatus) {
10
+ EMeetingBotStatus["READY"] = "ready";
11
+ EMeetingBotStatus["JOINING_CALL"] = "joining_call";
12
+ EMeetingBotStatus["IN_WAITING_ROOM"] = "in_waiting_room";
13
+ EMeetingBotStatus["IN_CALL_NOT_RECORDING"] = "in_call_not_recording";
14
+ EMeetingBotStatus["IN_CALL_RECORDING"] = "in_call_recording";
15
+ EMeetingBotStatus["CALL_ENDED"] = "call_ended";
16
+ EMeetingBotStatus["DONE"] = "done";
17
+ EMeetingBotStatus["FATAL"] = "fatal";
18
+ EMeetingBotStatus["RECORDING_PERMISSION_DENIED"] = "recording_permission_denied";
19
+ })(EMeetingBotStatus || (EMeetingBotStatus = {}));
20
+ export var EMeetingTranscriptStatus;
21
+ (function (EMeetingTranscriptStatus) {
22
+ EMeetingTranscriptStatus["PENDING"] = "pending";
23
+ EMeetingTranscriptStatus["READY"] = "ready";
24
+ EMeetingTranscriptStatus["FAILED"] = "failed";
25
+ })(EMeetingTranscriptStatus || (EMeetingTranscriptStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brivioio/api-server-types",
3
- "version": "7.13.0",
3
+ "version": "7.14.0",
4
4
  "description": "TypeScript type definitions for Brivio API Server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",