@activepieces/piece-zoom 0.6.3 → 0.6.5

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.
@@ -1,142 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zoomCreateMeeting = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const __1 = require("../..");
8
- const defaults = {
9
- agenda: 'My Meeting',
10
- default_password: false,
11
- duration: 30,
12
- pre_schedule: false,
13
- settings: {
14
- allow_multiple_devices: true,
15
- approval_type: 2,
16
- audio: 'telephony',
17
- calendar_type: 1,
18
- close_registration: false,
19
- email_notification: true,
20
- host_video: true,
21
- join_before_host: false,
22
- meeting_authentication: true,
23
- mute_upon_entry: false,
24
- participant_video: false,
25
- private_meeting: false,
26
- registrants_confirmation_email: true,
27
- registrants_email_notification: true,
28
- registration_type: 1,
29
- show_share_button: true,
30
- host_save_video_order: true,
31
- },
32
- timezone: 'UTC',
33
- type: 2,
34
- };
35
- const action = () => {
36
- return (0, pieces_framework_1.createAction)({
37
- auth: __1.zoomAuth,
38
- name: 'zoom_create_meeting', // Must be a unique across the piece, this shouldn't be changed.
39
- displayName: 'Create Zoom Meeting',
40
- description: 'Create a new Zoom Meeting',
41
- audience: 'both',
42
- aiMetadata: { description: 'Schedules a new Zoom meeting on the authenticated user\'s account, returning the meeting ID and join URL. Use to set up a video call; only the topic is required, with optional start time, duration, password, and audio/recording settings. Each call creates a distinct meeting, so it is not idempotent.', idempotent: false },
43
- props: {
44
- topic: pieces_framework_1.Property.ShortText({
45
- displayName: "Meeting's topic",
46
- description: "The meeting's topic",
47
- required: true,
48
- }),
49
- start_time: pieces_framework_1.Property.ShortText({
50
- displayName: 'Start Time',
51
- description: 'Meeting start date-time',
52
- required: false,
53
- }),
54
- duration: pieces_framework_1.Property.Number({
55
- displayName: 'Duration (in Minutes)',
56
- description: 'Duration of the meeting',
57
- required: false,
58
- }),
59
- auto_recording: pieces_framework_1.Property.StaticDropdown({
60
- displayName: 'Auto Recording',
61
- required: false,
62
- options: {
63
- disabled: false,
64
- options: [
65
- { label: 'Local', value: 'local' },
66
- { label: 'Cloud', value: 'cloud' },
67
- { label: 'None', value: 'none' },
68
- ],
69
- },
70
- }),
71
- audio: pieces_framework_1.Property.StaticDropdown({
72
- displayName: 'Audio',
73
- required: false,
74
- options: {
75
- disabled: false,
76
- options: [
77
- { label: 'Both telephony and VoIP', value: 'both' },
78
- { label: 'Telephony only', value: 'telephony' },
79
- { label: 'VoIP only', value: 'voip' },
80
- { label: 'Third party audio conference', value: 'thirdParty' },
81
- ],
82
- },
83
- }),
84
- agenda: pieces_framework_1.Property.LongText({
85
- displayName: 'Agenda',
86
- description: "The meeting's agenda",
87
- required: false,
88
- }),
89
- password: pieces_framework_1.Property.ShortText({
90
- displayName: 'Password',
91
- description: 'The password required to join the meeting. By default, a password can only have a maximum length of 10 characters and only contain alphanumeric characters and the @, -, _, and * characters.',
92
- required: false,
93
- }),
94
- pre_schedule: pieces_framework_1.Property.Checkbox({
95
- displayName: 'Pre Schedule',
96
- description: 'Whether the prescheduled meeting was created via the GSuite app.',
97
- required: false,
98
- }),
99
- schedule_for: pieces_framework_1.Property.ShortText({
100
- displayName: 'Schedule for',
101
- description: 'The email address or user ID of the user to schedule a meeting for.',
102
- required: false,
103
- }),
104
- join_url: pieces_framework_1.Property.LongText({
105
- displayName: 'Join URL',
106
- description: 'URL for participants to join the meeting.',
107
- required: false,
108
- }),
109
- },
110
- run(context) {
111
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
112
- const body = Object.assign(Object.assign({}, defaults), context.propsValue);
113
- if (context.propsValue.auto_recording) {
114
- body.settings.auto_recording = context.propsValue.auto_recording;
115
- }
116
- if (context.propsValue.audio) {
117
- body.settings.audio = context.propsValue.audio;
118
- }
119
- delete body['auth'];
120
- const request = {
121
- method: pieces_common_1.HttpMethod.POST,
122
- url: `https://api.zoom.us/v2/users/me/meetings`,
123
- body: body,
124
- authentication: {
125
- type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
126
- token: context.auth.access_token,
127
- },
128
- queryParams: {},
129
- };
130
- const result = yield pieces_common_1.httpClient.sendRequest(request);
131
- if (result.status === 201) {
132
- return result.body;
133
- }
134
- else {
135
- return result;
136
- }
137
- });
138
- },
139
- });
140
- };
141
- exports.zoomCreateMeeting = action();
142
- //# sourceMappingURL=create-meeting.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-meeting.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-meeting.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAKqC;AAErC,6BAAiC;AAEjC,MAAM,QAAQ,GAAG;IACf,MAAM,EAAE,YAAY;IACpB,gBAAgB,EAAE,KAAK;IACvB,QAAQ,EAAE,EAAE;IACZ,YAAY,EAAE,KAAK;IAEnB,QAAQ,EAAE;QACR,sBAAsB,EAAE,IAAI;QAC5B,aAAa,EAAE,CAAC;QAChB,KAAK,EAAE,WAAW;QAElB,aAAa,EAAE,CAAC;QAChB,kBAAkB,EAAE,KAAK;QAEzB,kBAAkB,EAAE,IAAI;QACxB,UAAU,EAAE,IAAI;QAChB,gBAAgB,EAAE,KAAK;QACvB,sBAAsB,EAAE,IAAI;QAC5B,eAAe,EAAE,KAAK;QACtB,iBAAiB,EAAE,KAAK;QACxB,eAAe,EAAE,KAAK;QACtB,8BAA8B,EAAE,IAAI;QACpC,8BAA8B,EAAE,IAAI;QACpC,iBAAiB,EAAE,CAAC;QACpB,iBAAiB,EAAE,IAAI;QACvB,qBAAqB,EAAE,IAAI;KAC5B;IAED,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,CAAC;CACR,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG,EAAE;IAClB,OAAO,IAAA,+BAAY,EAAC;QAClB,IAAI,EAAE,YAAQ;QACd,IAAI,EAAE,qBA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,CAAC;gBACjD,CAAC;gBACD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;gBACpB,MAAM,OAAO,GAAoC;oBAC/C,MAAM,EAAE,0BAAU,CAAC,IAAI;oBACvB,GAAG,EAAE,0CAA0C;oBAC/C,IAAI,EAAE,IAAI;oBACV,cAAc,EAAE;wBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;wBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;qBACjC;oBACD,WAAW,EAAE,EAAE;iBAChB,CAAC;gBAEF,MAAM,MAAM,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAsB,OAAO,CAAC,CAAC;gBAE1E,IAAI,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;oBAC1B,OAAO,MAAM,CAAC,IAAI,CAAC;gBACrB,CAAC;qBAAM,CAAC;oBACN,OAAO,MAAM,CAAC;gBAChB,CAAC;YACH,CAAC;SAAA;KACF,CAAC,CAAC;AACL,CAAC,CAAC;AAEW,QAAA,iBAAiB,GAAG,MAAM,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const zoomFindMeeting: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- meeting_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- occurrence_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
- show_previous_occurrences: import("@activepieces/pieces-framework").CheckboxProperty<false>;
5
- }>;
6
- //# sourceMappingURL=find-meeting.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find-meeting.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-meeting.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe;;;;EAgD1B,CAAC"}
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zoomFindMeeting = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const props_1 = require("../common/props");
8
- const __1 = require("../..");
9
- exports.zoomFindMeeting = (0, pieces_framework_1.createAction)({
10
- auth: __1.zoomAuth,
11
- name: 'zoom_find_meeting',
12
- displayName: 'Find Zoom Meeting',
13
- description: 'Retrieve the details of an existing meeting or webinar.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Fetches the full details of an existing Zoom meeting or webinar by its meeting ID. Use to look up a meeting before acting on it; optionally target a specific occurrence of a recurring meeting or include all previous occurrences. Read-only and idempotent.', idempotent: true },
16
- props: {
17
- meeting_id: props_1.zoomMeetingDropdown,
18
- occurrence_id: pieces_framework_1.Property.ShortText({
19
- displayName: 'Occurrence ID',
20
- description: 'Meeting Occurrence ID. Provide this field to view meeting details of a particular occurrence of the recurring meeting.',
21
- required: false,
22
- }),
23
- show_previous_occurrences: pieces_framework_1.Property.Checkbox({
24
- displayName: 'Show Previous Occurrences',
25
- description: 'Set to true if you would like to view meeting details of all previous occurrences of a recurring meeting.',
26
- required: false,
27
- defaultValue: false,
28
- }),
29
- },
30
- run(context) {
31
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
32
- const cleanMeetingId = context.propsValue.meeting_id;
33
- const queryParams = {};
34
- if (context.propsValue.occurrence_id) {
35
- queryParams['occurrence_id'] = context.propsValue.occurrence_id;
36
- }
37
- if (context.propsValue.show_previous_occurrences) {
38
- queryParams['show_previous_occurrences'] = 'true';
39
- }
40
- const result = yield pieces_common_1.httpClient.sendRequest({
41
- method: pieces_common_1.HttpMethod.GET,
42
- url: `https://api.zoom.us/v2/meetings/${cleanMeetingId}`,
43
- authentication: {
44
- type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
45
- token: context.auth.access_token,
46
- },
47
- queryParams,
48
- });
49
- return result.body;
50
- });
51
- },
52
- });
53
- //# sourceMappingURL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AAC,GAAG;gBACtB,GAAG,EAAE,mCAAmC,cAAc,EAAE;gBACxD,cAAc,EAAE;oBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;oBACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;iBACjC;gBACD,WAAW;aACZ,CAAC,CAAC;YAEH,OAAO,MAAM,CAAC,IAAI,CAAC;QACrB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- export declare const zoomUpdateMeeting: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- meeting_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- topic: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
- start_time: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
- duration: import("@activepieces/pieces-framework").NumberProperty<false>;
6
- timezone: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
- auto_recording: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
8
- audio: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
9
- agenda: import("@activepieces/pieces-framework").LongTextProperty<false>;
10
- password: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
- host_video: import("@activepieces/pieces-framework").CheckboxProperty<false>;
12
- participant_video: import("@activepieces/pieces-framework").CheckboxProperty<false>;
13
- join_before_host: import("@activepieces/pieces-framework").CheckboxProperty<false>;
14
- mute_upon_entry: import("@activepieces/pieces-framework").CheckboxProperty<false>;
15
- waiting_room: import("@activepieces/pieces-framework").CheckboxProperty<false>;
16
- }>;
17
- //# sourceMappingURL=update-meeting.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-meeting.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-meeting.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EA6J5B,CAAC"}
@@ -1,161 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zoomUpdateMeeting = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_common_1 = require("@activepieces/pieces-common");
7
- const props_1 = require("../common/props");
8
- const __1 = require("../..");
9
- exports.zoomUpdateMeeting = (0, pieces_framework_1.createAction)({
10
- auth: __1.zoomAuth,
11
- name: 'zoom_update_meeting',
12
- displayName: 'Update Zoom Meeting',
13
- description: 'Update the details of an existing meeting.',
14
- audience: 'both',
15
- aiMetadata: { description: 'Modifies an existing Zoom meeting identified by its meeting ID, applying only the fields you supply (topic, start time, duration, timezone, password, and audio/video/recording/waiting-room settings). Use to reschedule or reconfigure a meeting. Repeating the call with the same values produces the same end state, so it is idempotent.', idempotent: true },
16
- props: {
17
- meeting_id: props_1.zoomMeetingDropdown,
18
- topic: pieces_framework_1.Property.ShortText({
19
- displayName: "Meeting's topic",
20
- description: "The meeting's topic",
21
- required: false,
22
- }),
23
- start_time: pieces_framework_1.Property.ShortText({
24
- displayName: 'Start Time',
25
- description: 'Meeting start date-time (ISO 8601 format, e.g., 2023-05-01T12:00:00Z)',
26
- required: false,
27
- }),
28
- duration: pieces_framework_1.Property.Number({
29
- displayName: 'Duration (in Minutes)',
30
- description: 'Duration of the meeting',
31
- required: false,
32
- }),
33
- timezone: pieces_framework_1.Property.ShortText({
34
- displayName: 'Timezone',
35
- description: 'Timezone for the meeting (e.g., UTC, America/New_York)',
36
- required: false,
37
- }),
38
- auto_recording: pieces_framework_1.Property.StaticDropdown({
39
- displayName: 'Auto Recording',
40
- required: false,
41
- options: {
42
- disabled: false,
43
- options: [
44
- { label: 'Local', value: 'local' },
45
- { label: 'Cloud', value: 'cloud' },
46
- { label: 'None', value: 'none' },
47
- ],
48
- },
49
- }),
50
- audio: pieces_framework_1.Property.StaticDropdown({
51
- displayName: 'Audio',
52
- required: false,
53
- options: {
54
- disabled: false,
55
- options: [
56
- { label: 'Both telephony and VoIP', value: 'both' },
57
- { label: 'Telephony only', value: 'telephony' },
58
- { label: 'VoIP only', value: 'voip' },
59
- { label: 'Third party audio conference', value: 'thirdParty' },
60
- ],
61
- },
62
- }),
63
- agenda: pieces_framework_1.Property.LongText({
64
- displayName: 'Agenda',
65
- description: "The meeting's agenda",
66
- required: false,
67
- }),
68
- password: pieces_framework_1.Property.ShortText({
69
- displayName: 'Password',
70
- description: 'The password required to join the meeting. By default, a password can only have a maximum length of 10 characters and only contain alphanumeric characters and the @, -, _, and * characters.',
71
- required: false,
72
- }),
73
- host_video: pieces_framework_1.Property.Checkbox({
74
- displayName: 'Host Video',
75
- description: 'Whether to start video when the host joins the meeting.',
76
- required: false,
77
- }),
78
- participant_video: pieces_framework_1.Property.Checkbox({
79
- displayName: 'Participant Video',
80
- description: 'Whether to start video when participants join the meeting.',
81
- required: false,
82
- }),
83
- join_before_host: pieces_framework_1.Property.Checkbox({
84
- displayName: 'Join Before Host',
85
- description: 'Whether participants can join the meeting before the host starts the meeting.',
86
- required: false,
87
- }),
88
- mute_upon_entry: pieces_framework_1.Property.Checkbox({
89
- displayName: 'Mute Upon Entry',
90
- description: 'Whether to mute participants upon entry.',
91
- required: false,
92
- }),
93
- waiting_room: pieces_framework_1.Property.Checkbox({
94
- displayName: 'Waiting Room',
95
- description: 'Whether to enable waiting room.',
96
- required: false,
97
- }),
98
- },
99
- run(context) {
100
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
101
- const cleanMeetingId = context.propsValue.meeting_id;
102
- const body = {};
103
- if (context.propsValue.topic)
104
- body.topic = context.propsValue.topic;
105
- if (context.propsValue.start_time)
106
- body.start_time = context.propsValue.start_time;
107
- if (context.propsValue.duration)
108
- body.duration = context.propsValue.duration;
109
- if (context.propsValue.timezone)
110
- body.timezone = context.propsValue.timezone;
111
- if (context.propsValue.agenda)
112
- body.agenda = context.propsValue.agenda;
113
- if (context.propsValue.password)
114
- body.password = context.propsValue.password;
115
- const settings = {};
116
- let hasSettings = false;
117
- if (context.propsValue.auto_recording) {
118
- settings.auto_recording = context.propsValue.auto_recording;
119
- hasSettings = true;
120
- }
121
- if (context.propsValue.audio) {
122
- settings.audio = context.propsValue.audio;
123
- hasSettings = true;
124
- }
125
- if (context.propsValue.host_video !== undefined) {
126
- settings.host_video = context.propsValue.host_video;
127
- hasSettings = true;
128
- }
129
- if (context.propsValue.participant_video !== undefined) {
130
- settings.participant_video = context.propsValue.participant_video;
131
- hasSettings = true;
132
- }
133
- if (context.propsValue.join_before_host !== undefined) {
134
- settings.join_before_host = context.propsValue.join_before_host;
135
- hasSettings = true;
136
- }
137
- if (context.propsValue.mute_upon_entry !== undefined) {
138
- settings.mute_upon_entry = context.propsValue.mute_upon_entry;
139
- hasSettings = true;
140
- }
141
- if (context.propsValue.waiting_room !== undefined) {
142
- settings.waiting_room = context.propsValue.waiting_room;
143
- hasSettings = true;
144
- }
145
- if (hasSettings) {
146
- body.settings = settings;
147
- }
148
- yield pieces_common_1.httpClient.sendRequest({
149
- method: pieces_common_1.HttpMethod.PATCH,
150
- url: `https://api.zoom.us/v2/meetings/${cleanMeetingId}`,
151
- body,
152
- authentication: {
153
- type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
154
- token: context.auth.access_token,
155
- },
156
- });
157
- return { success: true, message: 'Meeting updated successfully' };
158
- });
159
- },
160
- });
161
- //# sourceMappingURL=update-meeting.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-meeting.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-meeting.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAIqC;AAErC,2CAAsD;AACtD,6BAAiC;AAEpB,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,YAAQ;IACd,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,4CAA4C;IACzD,QAAQ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B,EAAE,CAAC;QACpE,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,247 +0,0 @@
1
- import { HttpMessageBody } from '@activepieces/pieces-common';
2
- export interface MeetingRegistrant {
3
- first_name: string;
4
- last_name?: string;
5
- email: string;
6
- address?: string;
7
- city?: string;
8
- state?: string;
9
- zip?: string;
10
- country?: string;
11
- phone?: string;
12
- comments?: string;
13
- custom_questions?: {
14
- title: string;
15
- value: string;
16
- }[];
17
- industry?: string;
18
- job_title?: string;
19
- no_of_employees?: string;
20
- org?: string;
21
- purchasing_time_frame?: string;
22
- role_in_purchase_process?: string;
23
- language?: string;
24
- auto_approve?: boolean;
25
- }
26
- export interface RegistrationResponse extends HttpMessageBody {
27
- id: number;
28
- join_url: string;
29
- registrant_id: string;
30
- start_time: string;
31
- topic: string;
32
- occurrences: {
33
- duration: number;
34
- occurrence_id: string;
35
- start_time: string;
36
- status: string;
37
- }[];
38
- participant_pin_code: number;
39
- }
40
- export interface MeetingResponseBody extends HttpMessageBody {
41
- id?: number;
42
- assistant_id?: string;
43
- host_email?: string;
44
- registration_url?: string;
45
- agenda?: string;
46
- created_at?: string;
47
- duration?: number;
48
- join_url?: string;
49
- occurrences?: {
50
- duration?: number;
51
- occurrence_id?: string;
52
- start_time?: string;
53
- status?: string;
54
- }[];
55
- password?: string;
56
- pmi?: string;
57
- pre_schedule?: boolean;
58
- recurrence?: {
59
- end_date_time?: string;
60
- end_times?: number;
61
- monthly_day?: number;
62
- monthly_week?: number;
63
- monthly_week_day?: number;
64
- repeat_interval?: number;
65
- type: number;
66
- weekly_days?: string;
67
- };
68
- settings: {
69
- allow_multiple_devices: boolean;
70
- alternative_hosts: number;
71
- alternative_hosts_email_notification: boolean;
72
- alternative_host_update_polls: boolean;
73
- approval_type: number;
74
- approved_or_denied_countries_or_regions: {
75
- approved_list: string[];
76
- denied_list: string[];
77
- enable: boolean;
78
- method: string;
79
- };
80
- audio: string;
81
- authentication_domains: string;
82
- authentication_exception: {
83
- email: string;
84
- name: string;
85
- join_url: string;
86
- }[];
87
- authentication_name: string;
88
- authentication_option: string;
89
- auto_recording: string;
90
- breakout_room: {
91
- enable: boolean;
92
- rooms: {
93
- name: string;
94
- participants: string[];
95
- }[];
96
- };
97
- calendar_type: number;
98
- close_registration: boolean;
99
- contact_email: string;
100
- contact_name: string;
101
- custom_keys: {
102
- key: string;
103
- value: string;
104
- }[];
105
- email_notification: boolean;
106
- encryption_type: string;
107
- focus_mode: boolean;
108
- global_dial_in_countries: string[];
109
- global_dial_in_numbers: {
110
- city: string;
111
- country: string;
112
- country_name: string;
113
- number: string;
114
- type: string;
115
- }[];
116
- host_video: boolean;
117
- jbh_time: number;
118
- join_before_host: boolean;
119
- language_interpretation: {
120
- enable: boolean;
121
- interpreters: {
122
- email: string;
123
- languages: string;
124
- }[];
125
- };
126
- meeting_authentication: boolean;
127
- mute_upon_entry: boolean;
128
- participant_video: boolean;
129
- private_meeting: boolean;
130
- registrants_confirmation_email: boolean;
131
- registrants_email_notification: boolean;
132
- registration_type: number;
133
- show_share_button: boolean;
134
- use_pmi: boolean;
135
- waiting_room: boolean;
136
- watermark: boolean;
137
- host_save_video_order: boolean;
138
- };
139
- start_time: string;
140
- start_url: string;
141
- timezone: string;
142
- topic: string;
143
- type: number;
144
- tracking_fields: {
145
- field: string;
146
- value: string;
147
- visible: boolean;
148
- }[];
149
- }
150
- export interface MeetingMessageBody extends HttpMessageBody {
151
- agenda?: string;
152
- password?: string;
153
- duration?: number;
154
- pre_schedule?: boolean;
155
- recurrence?: {
156
- end_date_time: string;
157
- end_times: number;
158
- monthly_day: number;
159
- monthly_week: number;
160
- monthly_week_day: number;
161
- repeat_interval: number;
162
- type: number;
163
- weekly_days: string;
164
- };
165
- settings: {
166
- allow_multiple_devices?: boolean;
167
- alternative_hosts?: number;
168
- alternative_hosts_email_notification?: boolean;
169
- alternative_host_update_polls?: boolean;
170
- approval_type?: number;
171
- approved_or_denied_countries_or_regions?: {
172
- approved_list?: string[];
173
- denied_list?: string[];
174
- enable?: boolean;
175
- method?: string;
176
- };
177
- audio?: string;
178
- authentication_domains?: string;
179
- authentication_exception?: {
180
- email?: string;
181
- name?: string;
182
- join_url?: string;
183
- }[];
184
- authentication_name?: string;
185
- authentication_option?: string;
186
- auto_recording?: string;
187
- breakout_room?: {
188
- enable?: boolean;
189
- rooms?: {
190
- name: string;
191
- participants: string[];
192
- }[];
193
- };
194
- calendar_type?: number;
195
- close_registration?: boolean;
196
- contact_email?: string;
197
- contact_name?: string;
198
- custom_keys?: {
199
- key?: string;
200
- value?: string;
201
- }[];
202
- email_notification?: boolean;
203
- encryption_type?: string;
204
- focus_mode?: boolean;
205
- global_dial_in_countries?: string[];
206
- global_dial_in_numbers?: {
207
- city?: string;
208
- country?: string;
209
- country_name?: string;
210
- number?: string;
211
- type?: string;
212
- }[];
213
- host_video?: boolean;
214
- jbh_time?: number;
215
- join_before_host?: boolean;
216
- language_interpretation?: {
217
- enable?: boolean;
218
- interpreters?: {
219
- email?: string;
220
- languages?: string;
221
- }[];
222
- };
223
- meeting_authentication?: boolean;
224
- mute_upon_entry?: boolean;
225
- participant_video?: boolean;
226
- private_meeting?: boolean;
227
- registrants_confirmation_email?: boolean;
228
- registrants_email_notification?: boolean;
229
- registration_type?: number;
230
- show_share_button?: boolean;
231
- use_pmi?: boolean;
232
- waiting_room?: boolean;
233
- watermark?: boolean;
234
- host_save_video_order?: boolean;
235
- };
236
- start_time?: string;
237
- start_url?: string;
238
- timezone?: string;
239
- topic?: string;
240
- type?: number;
241
- tracking_fields?: {
242
- field: string;
243
- value?: string;
244
- visible?: boolean;
245
- }[];
246
- }
247
- //# sourceMappingURL=models.d.ts.map