@polyguard/sdk 1.0.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.
Files changed (87) hide show
  1. package/dist/sdk.js +11630 -0
  2. package/package.json +33 -0
  3. package/scripts/regenerate-client.sh +55 -0
  4. package/src/PolyguardClient.js +25 -0
  5. package/src/PolyguardWebsocketClientImpl.js +190 -0
  6. package/src/generated/.babelrc +33 -0
  7. package/src/generated/.openapi-generator/FILES +57 -0
  8. package/src/generated/.openapi-generator/VERSION +1 -0
  9. package/src/generated/.openapi-generator-ignore +23 -0
  10. package/src/generated/.travis.yml +5 -0
  11. package/src/generated/README.md +220 -0
  12. package/src/generated/docs/ApiControllersPslStirCallRequest.md +18 -0
  13. package/src/generated/docs/ApiModelsApiCallModelsCallRequest.md +12 -0
  14. package/src/generated/docs/AppleApi.md +88 -0
  15. package/src/generated/docs/AuthApi.md +1464 -0
  16. package/src/generated/docs/BlockingApi.md +208 -0
  17. package/src/generated/docs/CallsApi.md +140 -0
  18. package/src/generated/docs/Certainty.md +8 -0
  19. package/src/generated/docs/CreateLinkRequest.md +12 -0
  20. package/src/generated/docs/DefaultApi.md +88 -0
  21. package/src/generated/docs/HTTPValidationError.md +9 -0
  22. package/src/generated/docs/InviteRequestModel.md +10 -0
  23. package/src/generated/docs/JWTRequest.md +11 -0
  24. package/src/generated/docs/NumberVerification.md +10 -0
  25. package/src/generated/docs/StartAttestationRequest.md +9 -0
  26. package/src/generated/docs/StartMeetingRequest.md +9 -0
  27. package/src/generated/docs/StirApi.md +52 -0
  28. package/src/generated/docs/TwilioApi.md +138 -0
  29. package/src/generated/docs/UsersApi.md +362 -0
  30. package/src/generated/docs/ValidationError.md +11 -0
  31. package/src/generated/docs/ValidationErrorLocInner.md +8 -0
  32. package/src/generated/docs/VeriffApi.md +188 -0
  33. package/src/generated/docs/VeriffSessionRequest.md +10 -0
  34. package/src/generated/docs/VerifyRequest.md +10 -0
  35. package/src/generated/docs/ZoomApi.md +744 -0
  36. package/src/generated/git_push.sh +57 -0
  37. package/src/generated/mocha.opts +1 -0
  38. package/src/generated/package.json +46 -0
  39. package/src/generated/src/ApiClient.js +693 -0
  40. package/src/generated/src/api/AppleApi.js +109 -0
  41. package/src/generated/src/api/AuthApi.js +1512 -0
  42. package/src/generated/src/api/BlockingApi.js +217 -0
  43. package/src/generated/src/api/CallsApi.js +164 -0
  44. package/src/generated/src/api/DefaultApi.js +109 -0
  45. package/src/generated/src/api/StirApi.js +80 -0
  46. package/src/generated/src/api/TwilioApi.js +158 -0
  47. package/src/generated/src/api/UsersApi.js +375 -0
  48. package/src/generated/src/api/VeriffApi.js +209 -0
  49. package/src/generated/src/api/ZoomApi.js +715 -0
  50. package/src/generated/src/index.js +223 -0
  51. package/src/generated/src/model/ApiControllersPslStirCallRequest.js +211 -0
  52. package/src/generated/src/model/ApiModelsApiCallModelsCallRequest.js +119 -0
  53. package/src/generated/src/model/CreateLinkRequest.js +131 -0
  54. package/src/generated/src/model/HTTPValidationError.js +94 -0
  55. package/src/generated/src/model/InviteRequestModel.js +109 -0
  56. package/src/generated/src/model/JWTRequest.js +113 -0
  57. package/src/generated/src/model/NumberVerification.js +107 -0
  58. package/src/generated/src/model/StartAttestationRequest.js +95 -0
  59. package/src/generated/src/model/StartMeetingRequest.js +95 -0
  60. package/src/generated/src/model/ValidationError.js +130 -0
  61. package/src/generated/src/model/VeriffSessionRequest.js +107 -0
  62. package/src/generated/src/model/VerifyRequest.js +109 -0
  63. package/src/generated/test/api/AppleApi.spec.js +73 -0
  64. package/src/generated/test/api/AuthApi.spec.js +353 -0
  65. package/src/generated/test/api/BlockingApi.spec.js +103 -0
  66. package/src/generated/test/api/CallsApi.spec.js +83 -0
  67. package/src/generated/test/api/DefaultApi.spec.js +73 -0
  68. package/src/generated/test/api/StirApi.spec.js +63 -0
  69. package/src/generated/test/api/TwilioApi.spec.js +83 -0
  70. package/src/generated/test/api/UsersApi.spec.js +133 -0
  71. package/src/generated/test/api/VeriffApi.spec.js +93 -0
  72. package/src/generated/test/api/ZoomApi.spec.js +213 -0
  73. package/src/generated/test/model/ApiControllersPslStirCallRequest.spec.js +119 -0
  74. package/src/generated/test/model/ApiModelsApiCallModelsCallRequest.spec.js +83 -0
  75. package/src/generated/test/model/Certainty.spec.js +59 -0
  76. package/src/generated/test/model/CreateLinkRequest.spec.js +83 -0
  77. package/src/generated/test/model/HTTPValidationError.spec.js +65 -0
  78. package/src/generated/test/model/InviteRequestModel.spec.js +71 -0
  79. package/src/generated/test/model/JWTRequest.spec.js +77 -0
  80. package/src/generated/test/model/NumberVerification.spec.js +71 -0
  81. package/src/generated/test/model/StartAttestationRequest.spec.js +65 -0
  82. package/src/generated/test/model/StartMeetingRequest.spec.js +65 -0
  83. package/src/generated/test/model/ValidationError.spec.js +77 -0
  84. package/src/generated/test/model/ValidationErrorLocInner.spec.js +59 -0
  85. package/src/generated/test/model/VeriffSessionRequest.spec.js +71 -0
  86. package/src/generated/test/model/VerifyRequest.spec.js +71 -0
  87. package/src/index.js +20 -0
@@ -0,0 +1,715 @@
1
+ /**
2
+ * FastAPI
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ *
12
+ */
13
+
14
+
15
+ import ApiClient from "../ApiClient";
16
+ import HTTPValidationError from '../model/HTTPValidationError';
17
+ import JWTRequest from '../model/JWTRequest';
18
+
19
+ /**
20
+ * Zoom service.
21
+ * @module api/ZoomApi
22
+ * @version 0.1.0
23
+ */
24
+ export default class ZoomApi {
25
+
26
+ /**
27
+ * Constructs a new ZoomApi.
28
+ * @alias module:api/ZoomApi
29
+ * @class
30
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
31
+ * default to {@link module:ApiClient#instance} if unspecified.
32
+ */
33
+ constructor(apiClient) {
34
+ this.apiClient = apiClient || ApiClient.instance;
35
+ }
36
+
37
+
38
+ /**
39
+ * Callback function to receive the result of the cookietestCookietestGet operation.
40
+ * @callback module:api/ZoomApi~cookietestCookietestGetCallback
41
+ * @param {String} error Error message, if any.
42
+ * @param {Object} data The data returned by the service call.
43
+ * @param {String} response The complete HTTP response.
44
+ */
45
+
46
+ /**
47
+ * Cookietest
48
+ * @param {module:api/ZoomApi~cookietestCookietestGetCallback} callback The callback function, accepting three arguments: error, data, response
49
+ * data is of type: {@link Object}
50
+ */
51
+ cookietestCookietestGet(callback) {
52
+ let postBody = null;
53
+
54
+ let pathParams = {
55
+ };
56
+ let queryParams = {
57
+ };
58
+ let headerParams = {
59
+ };
60
+ let formParams = {
61
+ };
62
+
63
+ let authNames = [];
64
+ let contentTypes = [];
65
+ let accepts = ['application/json'];
66
+ let returnType = Object;
67
+ return this.apiClient.callApi(
68
+ '/cookietest', 'GET',
69
+ pathParams, queryParams, headerParams, formParams, postBody,
70
+ authNames, contentTypes, accepts, returnType, null, callback
71
+ );
72
+ }
73
+
74
+ /**
75
+ * Callback function to receive the result of the generateMeetingReportZoomPhoneReportsMeetingPost operation.
76
+ * @callback module:api/ZoomApi~generateMeetingReportZoomPhoneReportsMeetingPostCallback
77
+ * @param {String} error Error message, if any.
78
+ * @param {Object} data The data returned by the service call.
79
+ * @param {String} response The complete HTTP response.
80
+ */
81
+
82
+ /**
83
+ * Generate Meeting Report
84
+ * Generate a PDF report for a meeting by collecting event data from S3.
85
+ * @param {module:api/ZoomApi~generateMeetingReportZoomPhoneReportsMeetingPostCallback} callback The callback function, accepting three arguments: error, data, response
86
+ * data is of type: {@link Object}
87
+ */
88
+ generateMeetingReportZoomPhoneReportsMeetingPost(callback) {
89
+ let postBody = null;
90
+
91
+ let pathParams = {
92
+ };
93
+ let queryParams = {
94
+ };
95
+ let headerParams = {
96
+ };
97
+ let formParams = {
98
+ };
99
+
100
+ let authNames = [];
101
+ let contentTypes = [];
102
+ let accepts = ['application/json'];
103
+ let returnType = Object;
104
+ return this.apiClient.callApi(
105
+ '/zoom-phone/reports/meeting', 'POST',
106
+ pathParams, queryParams, headerParams, formParams, postBody,
107
+ authNames, contentTypes, accepts, returnType, null, callback
108
+ );
109
+ }
110
+
111
+ /**
112
+ * Callback function to receive the result of the getMeetingDetailsZoomPhoneLogsMeetingDetailsPost operation.
113
+ * @callback module:api/ZoomApi~getMeetingDetailsZoomPhoneLogsMeetingDetailsPostCallback
114
+ * @param {String} error Error message, if any.
115
+ * @param {Object} data The data returned by the service call.
116
+ * @param {String} response The complete HTTP response.
117
+ */
118
+
119
+ /**
120
+ * Get Meeting Details
121
+ * Get detailed information about a specific meeting including participants and other metadata.
122
+ * @param {module:api/ZoomApi~getMeetingDetailsZoomPhoneLogsMeetingDetailsPostCallback} callback The callback function, accepting three arguments: error, data, response
123
+ * data is of type: {@link Object}
124
+ */
125
+ getMeetingDetailsZoomPhoneLogsMeetingDetailsPost(callback) {
126
+ let postBody = null;
127
+
128
+ let pathParams = {
129
+ };
130
+ let queryParams = {
131
+ };
132
+ let headerParams = {
133
+ };
134
+ let formParams = {
135
+ };
136
+
137
+ let authNames = [];
138
+ let contentTypes = [];
139
+ let accepts = ['application/json'];
140
+ let returnType = Object;
141
+ return this.apiClient.callApi(
142
+ '/zoom-phone/logs/meeting/details', 'POST',
143
+ pathParams, queryParams, headerParams, formParams, postBody,
144
+ authNames, contentTypes, accepts, returnType, null, callback
145
+ );
146
+ }
147
+
148
+ /**
149
+ * Callback function to receive the result of the getTicketZoomPhoneTicketAccountIdPost operation.
150
+ * @callback module:api/ZoomApi~getTicketZoomPhoneTicketAccountIdPostCallback
151
+ * @param {String} error Error message, if any.
152
+ * @param {Object} data The data returned by the service call.
153
+ * @param {String} response The complete HTTP response.
154
+ */
155
+
156
+ /**
157
+ * Get Ticket
158
+ * Get a ticket for the given account ID and uid for webhook startup.
159
+ * @param {String} accountId
160
+ * @param {Object} opts Optional parameters
161
+ * @param {String} [clientSecret = 'ghFlPlwVN11IQuTIEj4nlB1i67iQQel9')]
162
+ * @param {String} [clientId = '7c19WxdRTkyf9w0EDbbfbg')]
163
+ * @param {module:api/ZoomApi~getTicketZoomPhoneTicketAccountIdPostCallback} callback The callback function, accepting three arguments: error, data, response
164
+ * data is of type: {@link Object}
165
+ */
166
+ getTicketZoomPhoneTicketAccountIdPost(accountId, opts, callback) {
167
+ opts = opts || {};
168
+ let postBody = null;
169
+ // verify the required parameter 'accountId' is set
170
+ if (accountId === undefined || accountId === null) {
171
+ throw new Error("Missing the required parameter 'accountId' when calling getTicketZoomPhoneTicketAccountIdPost");
172
+ }
173
+
174
+ let pathParams = {
175
+ 'account_id': accountId
176
+ };
177
+ let queryParams = {
178
+ 'client_secret': opts['clientSecret'],
179
+ 'client_id': opts['clientId']
180
+ };
181
+ let headerParams = {
182
+ };
183
+ let formParams = {
184
+ };
185
+
186
+ let authNames = [];
187
+ let contentTypes = [];
188
+ let accepts = ['application/json'];
189
+ let returnType = Object;
190
+ return this.apiClient.callApi(
191
+ '/zoom-phone/ticket/{account_id}', 'POST',
192
+ pathParams, queryParams, headerParams, formParams, postBody,
193
+ authNames, contentTypes, accepts, returnType, null, callback
194
+ );
195
+ }
196
+
197
+ /**
198
+ * Callback function to receive the result of the getUserLogsZoomPhoneLogsPolyUserIdGet operation.
199
+ * @callback module:api/ZoomApi~getUserLogsZoomPhoneLogsPolyUserIdGetCallback
200
+ * @param {String} error Error message, if any.
201
+ * @param {Object} data The data returned by the service call.
202
+ * @param {String} response The complete HTTP response.
203
+ */
204
+
205
+ /**
206
+ * Get User Logs
207
+ * Get meeting and call logs for a specific user with pagination.
208
+ * @param {String} polyUserId Polyguard user ID
209
+ * @param {Object} opts Optional parameters
210
+ * @param {Number} [page = 1)] Page number, starting from 1
211
+ * @param {Number} [pageSize = 10)] Number of records per page
212
+ * @param {module:api/ZoomApi~getUserLogsZoomPhoneLogsPolyUserIdGetCallback} callback The callback function, accepting three arguments: error, data, response
213
+ * data is of type: {@link Object}
214
+ */
215
+ getUserLogsZoomPhoneLogsPolyUserIdGet(polyUserId, opts, callback) {
216
+ opts = opts || {};
217
+ let postBody = null;
218
+ // verify the required parameter 'polyUserId' is set
219
+ if (polyUserId === undefined || polyUserId === null) {
220
+ throw new Error("Missing the required parameter 'polyUserId' when calling getUserLogsZoomPhoneLogsPolyUserIdGet");
221
+ }
222
+
223
+ let pathParams = {
224
+ 'poly_user_id': polyUserId
225
+ };
226
+ let queryParams = {
227
+ 'page': opts['page'],
228
+ 'page_size': opts['pageSize']
229
+ };
230
+ let headerParams = {
231
+ };
232
+ let formParams = {
233
+ };
234
+
235
+ let authNames = [];
236
+ let contentTypes = [];
237
+ let accepts = ['application/json'];
238
+ let returnType = Object;
239
+ return this.apiClient.callApi(
240
+ '/zoom-phone/logs/{poly_user_id}', 'GET',
241
+ pathParams, queryParams, headerParams, formParams, postBody,
242
+ authNames, contentTypes, accepts, returnType, null, callback
243
+ );
244
+ }
245
+
246
+ /**
247
+ * Callback function to receive the result of the meetingJwtMeetingjwtPost operation.
248
+ * @callback module:api/ZoomApi~meetingJwtMeetingjwtPostCallback
249
+ * @param {String} error Error message, if any.
250
+ * @param {Object} data The data returned by the service call.
251
+ * @param {String} response The complete HTTP response.
252
+ */
253
+
254
+ /**
255
+ * Meeting Jwt
256
+ * @param {module:model/JWTRequest} jWTRequest
257
+ * @param {module:api/ZoomApi~meetingJwtMeetingjwtPostCallback} callback The callback function, accepting three arguments: error, data, response
258
+ * data is of type: {@link Object}
259
+ */
260
+ meetingJwtMeetingjwtPost(jWTRequest, callback) {
261
+ let postBody = jWTRequest;
262
+ // verify the required parameter 'jWTRequest' is set
263
+ if (jWTRequest === undefined || jWTRequest === null) {
264
+ throw new Error("Missing the required parameter 'jWTRequest' when calling meetingJwtMeetingjwtPost");
265
+ }
266
+
267
+ let pathParams = {
268
+ };
269
+ let queryParams = {
270
+ };
271
+ let headerParams = {
272
+ };
273
+ let formParams = {
274
+ };
275
+
276
+ let authNames = [];
277
+ let contentTypes = ['application/json'];
278
+ let accepts = ['application/json'];
279
+ let returnType = Object;
280
+ return this.apiClient.callApi(
281
+ '/meetingjwt', 'POST',
282
+ pathParams, queryParams, headerParams, formParams, postBody,
283
+ authNames, contentTypes, accepts, returnType, null, callback
284
+ );
285
+ }
286
+
287
+ /**
288
+ * Callback function to receive the result of the redirectToAppStoreZoomPhoneAppStoreGet operation.
289
+ * @callback module:api/ZoomApi~redirectToAppStoreZoomPhoneAppStoreGetCallback
290
+ * @param {String} error Error message, if any.
291
+ * @param {Object} data The data returned by the service call.
292
+ * @param {String} response The complete HTTP response.
293
+ */
294
+
295
+ /**
296
+ * Redirect To App Store
297
+ * @param {module:api/ZoomApi~redirectToAppStoreZoomPhoneAppStoreGetCallback} callback The callback function, accepting three arguments: error, data, response
298
+ * data is of type: {@link Object}
299
+ */
300
+ redirectToAppStoreZoomPhoneAppStoreGet(callback) {
301
+ let postBody = null;
302
+
303
+ let pathParams = {
304
+ };
305
+ let queryParams = {
306
+ };
307
+ let headerParams = {
308
+ };
309
+ let formParams = {
310
+ };
311
+
312
+ let authNames = [];
313
+ let contentTypes = [];
314
+ let accepts = ['application/json'];
315
+ let returnType = Object;
316
+ return this.apiClient.callApi(
317
+ '/zoom-phone/app-store', 'GET',
318
+ pathParams, queryParams, headerParams, formParams, postBody,
319
+ authNames, contentTypes, accepts, returnType, null, callback
320
+ );
321
+ }
322
+
323
+ /**
324
+ * Callback function to receive the result of the redirectToMeetingReportZoomPhoneReportsMeetingEncodedS3UrlGet operation.
325
+ * @callback module:api/ZoomApi~redirectToMeetingReportZoomPhoneReportsMeetingEncodedS3UrlGetCallback
326
+ * @param {String} error Error message, if any.
327
+ * @param {Object} data The data returned by the service call.
328
+ * @param {String} response The complete HTTP response.
329
+ */
330
+
331
+ /**
332
+ * Redirect To Meeting Report
333
+ * @param {String} encodedS3Url
334
+ * @param {module:api/ZoomApi~redirectToMeetingReportZoomPhoneReportsMeetingEncodedS3UrlGetCallback} callback The callback function, accepting three arguments: error, data, response
335
+ * data is of type: {@link Object}
336
+ */
337
+ redirectToMeetingReportZoomPhoneReportsMeetingEncodedS3UrlGet(encodedS3Url, callback) {
338
+ let postBody = null;
339
+ // verify the required parameter 'encodedS3Url' is set
340
+ if (encodedS3Url === undefined || encodedS3Url === null) {
341
+ throw new Error("Missing the required parameter 'encodedS3Url' when calling redirectToMeetingReportZoomPhoneReportsMeetingEncodedS3UrlGet");
342
+ }
343
+
344
+ let pathParams = {
345
+ 'encoded_s3_url': encodedS3Url
346
+ };
347
+ let queryParams = {
348
+ };
349
+ let headerParams = {
350
+ };
351
+ let formParams = {
352
+ };
353
+
354
+ let authNames = [];
355
+ let contentTypes = [];
356
+ let accepts = ['application/json'];
357
+ let returnType = Object;
358
+ return this.apiClient.callApi(
359
+ '/zoom-phone/reports/meeting/{encoded_s3_url}', 'GET',
360
+ pathParams, queryParams, headerParams, formParams, postBody,
361
+ authNames, contentTypes, accepts, returnType, null, callback
362
+ );
363
+ }
364
+
365
+ /**
366
+ * Callback function to receive the result of the testWebsocketDisconnectZoomPhoneTestDisconnectPost operation.
367
+ * @callback module:api/ZoomApi~testWebsocketDisconnectZoomPhoneTestDisconnectPostCallback
368
+ * @param {String} error Error message, if any.
369
+ * @param {Object} data The data returned by the service call.
370
+ * @param {String} response The complete HTTP response.
371
+ */
372
+
373
+ /**
374
+ * Test Websocket Disconnect
375
+ * @param {module:api/ZoomApi~testWebsocketDisconnectZoomPhoneTestDisconnectPostCallback} callback The callback function, accepting three arguments: error, data, response
376
+ * data is of type: {@link Object}
377
+ */
378
+ testWebsocketDisconnectZoomPhoneTestDisconnectPost(callback) {
379
+ let postBody = null;
380
+
381
+ let pathParams = {
382
+ };
383
+ let queryParams = {
384
+ };
385
+ let headerParams = {
386
+ };
387
+ let formParams = {
388
+ };
389
+
390
+ let authNames = [];
391
+ let contentTypes = [];
392
+ let accepts = ['application/json'];
393
+ let returnType = Object;
394
+ return this.apiClient.callApi(
395
+ '/zoom-phone/test-disconnect', 'POST',
396
+ pathParams, queryParams, headerParams, formParams, postBody,
397
+ authNames, contentTypes, accepts, returnType, null, callback
398
+ );
399
+ }
400
+
401
+ /**
402
+ * Callback function to receive the result of the webhookWebhookPost operation.
403
+ * @callback module:api/ZoomApi~webhookWebhookPostCallback
404
+ * @param {String} error Error message, if any.
405
+ * @param {Object} data The data returned by the service call.
406
+ * @param {String} response The complete HTTP response.
407
+ */
408
+
409
+ /**
410
+ * Webhook
411
+ * @param {String} xZmSignature
412
+ * @param {String} xZmRequestTimestamp
413
+ * @param {module:api/ZoomApi~webhookWebhookPostCallback} callback The callback function, accepting three arguments: error, data, response
414
+ * data is of type: {@link Object}
415
+ */
416
+ webhookWebhookPost(xZmSignature, xZmRequestTimestamp, callback) {
417
+ let postBody = null;
418
+ // verify the required parameter 'xZmSignature' is set
419
+ if (xZmSignature === undefined || xZmSignature === null) {
420
+ throw new Error("Missing the required parameter 'xZmSignature' when calling webhookWebhookPost");
421
+ }
422
+ // verify the required parameter 'xZmRequestTimestamp' is set
423
+ if (xZmRequestTimestamp === undefined || xZmRequestTimestamp === null) {
424
+ throw new Error("Missing the required parameter 'xZmRequestTimestamp' when calling webhookWebhookPost");
425
+ }
426
+
427
+ let pathParams = {
428
+ };
429
+ let queryParams = {
430
+ };
431
+ let headerParams = {
432
+ 'x-zm-signature': xZmSignature,
433
+ 'x-zm-request-timestamp': xZmRequestTimestamp
434
+ };
435
+ let formParams = {
436
+ };
437
+
438
+ let authNames = [];
439
+ let contentTypes = [];
440
+ let accepts = ['application/json'];
441
+ let returnType = Object;
442
+ return this.apiClient.callApi(
443
+ '/webhook', 'POST',
444
+ pathParams, queryParams, headerParams, formParams, postBody,
445
+ authNames, contentTypes, accepts, returnType, null, callback
446
+ );
447
+ }
448
+
449
+ /**
450
+ * Callback function to receive the result of the zoomCallbackZoomCallbackPost operation.
451
+ * @callback module:api/ZoomApi~zoomCallbackZoomCallbackPostCallback
452
+ * @param {String} error Error message, if any.
453
+ * @param {Object} data The data returned by the service call.
454
+ * @param {String} response The complete HTTP response.
455
+ */
456
+
457
+ /**
458
+ * Zoom Callback
459
+ * @param {Object} error
460
+ * @param {Object} code
461
+ * @param {module:api/ZoomApi~zoomCallbackZoomCallbackPostCallback} callback The callback function, accepting three arguments: error, data, response
462
+ * data is of type: {@link Object}
463
+ */
464
+ zoomCallbackZoomCallbackPost(error, code, callback) {
465
+ let postBody = null;
466
+ // verify the required parameter 'error' is set
467
+ if (error === undefined || error === null) {
468
+ throw new Error("Missing the required parameter 'error' when calling zoomCallbackZoomCallbackPost");
469
+ }
470
+ // verify the required parameter 'code' is set
471
+ if (code === undefined || code === null) {
472
+ throw new Error("Missing the required parameter 'code' when calling zoomCallbackZoomCallbackPost");
473
+ }
474
+
475
+ let pathParams = {
476
+ };
477
+ let queryParams = {
478
+ 'error': error,
479
+ 'code': code
480
+ };
481
+ let headerParams = {
482
+ };
483
+ let formParams = {
484
+ };
485
+
486
+ let authNames = [];
487
+ let contentTypes = [];
488
+ let accepts = ['application/json'];
489
+ let returnType = Object;
490
+ return this.apiClient.callApi(
491
+ '/zoom_callback', 'POST',
492
+ pathParams, queryParams, headerParams, formParams, postBody,
493
+ authNames, contentTypes, accepts, returnType, null, callback
494
+ );
495
+ }
496
+
497
+ /**
498
+ * Callback function to receive the result of the zoomInstallInstallGet operation.
499
+ * @callback module:api/ZoomApi~zoomInstallInstallGetCallback
500
+ * @param {String} error Error message, if any.
501
+ * @param {Object} data The data returned by the service call.
502
+ * @param {String} response The complete HTTP response.
503
+ */
504
+
505
+ /**
506
+ * Zoom Install
507
+ * @param {Object} opts Optional parameters
508
+ * @param {Object} [code]
509
+ * @param {Object} [error]
510
+ * @param {module:api/ZoomApi~zoomInstallInstallGetCallback} callback The callback function, accepting three arguments: error, data, response
511
+ * data is of type: {@link Object}
512
+ */
513
+ zoomInstallInstallGet(opts, callback) {
514
+ opts = opts || {};
515
+ let postBody = null;
516
+
517
+ let pathParams = {
518
+ };
519
+ let queryParams = {
520
+ 'code': opts['code'],
521
+ 'error': opts['error']
522
+ };
523
+ let headerParams = {
524
+ };
525
+ let formParams = {
526
+ };
527
+
528
+ let authNames = [];
529
+ let contentTypes = [];
530
+ let accepts = ['application/json'];
531
+ let returnType = Object;
532
+ return this.apiClient.callApi(
533
+ '/install', 'GET',
534
+ pathParams, queryParams, headerParams, formParams, postBody,
535
+ authNames, contentTypes, accepts, returnType, null, callback
536
+ );
537
+ }
538
+
539
+ /**
540
+ * Callback function to receive the result of the zoomInstallInstallPost operation.
541
+ * @callback module:api/ZoomApi~zoomInstallInstallPostCallback
542
+ * @param {String} error Error message, if any.
543
+ * @param {Object} data The data returned by the service call.
544
+ * @param {String} response The complete HTTP response.
545
+ */
546
+
547
+ /**
548
+ * Zoom Install
549
+ * @param {Object} opts Optional parameters
550
+ * @param {Object} [code]
551
+ * @param {Object} [error]
552
+ * @param {module:api/ZoomApi~zoomInstallInstallPostCallback} callback The callback function, accepting three arguments: error, data, response
553
+ * data is of type: {@link Object}
554
+ */
555
+ zoomInstallInstallPost(opts, callback) {
556
+ opts = opts || {};
557
+ let postBody = null;
558
+
559
+ let pathParams = {
560
+ };
561
+ let queryParams = {
562
+ 'code': opts['code'],
563
+ 'error': opts['error']
564
+ };
565
+ let headerParams = {
566
+ };
567
+ let formParams = {
568
+ };
569
+
570
+ let authNames = [];
571
+ let contentTypes = [];
572
+ let accepts = ['application/json'];
573
+ let returnType = Object;
574
+ return this.apiClient.callApi(
575
+ '/install', 'POST',
576
+ pathParams, queryParams, headerParams, formParams, postBody,
577
+ authNames, contentTypes, accepts, returnType, null, callback
578
+ );
579
+ }
580
+
581
+ /**
582
+ * Callback function to receive the result of the zoomPhoneInstallZoomPhoneInstallGet operation.
583
+ * @callback module:api/ZoomApi~zoomPhoneInstallZoomPhoneInstallGetCallback
584
+ * @param {String} error Error message, if any.
585
+ * @param {Object} data The data returned by the service call.
586
+ * @param {String} response The complete HTTP response.
587
+ */
588
+
589
+ /**
590
+ * Zoom Phone Install
591
+ * @param {Object} opts Optional parameters
592
+ * @param {Object} [code]
593
+ * @param {Object} [state]
594
+ * @param {Object} [error]
595
+ * @param {String} [redirectUri = '')]
596
+ * @param {module:api/ZoomApi~zoomPhoneInstallZoomPhoneInstallGetCallback} callback The callback function, accepting three arguments: error, data, response
597
+ * data is of type: {@link Object}
598
+ */
599
+ zoomPhoneInstallZoomPhoneInstallGet(opts, callback) {
600
+ opts = opts || {};
601
+ let postBody = null;
602
+
603
+ let pathParams = {
604
+ };
605
+ let queryParams = {
606
+ 'code': opts['code'],
607
+ 'state': opts['state'],
608
+ 'error': opts['error'],
609
+ 'redirect_uri': opts['redirectUri']
610
+ };
611
+ let headerParams = {
612
+ };
613
+ let formParams = {
614
+ };
615
+
616
+ let authNames = [];
617
+ let contentTypes = [];
618
+ let accepts = ['application/json'];
619
+ let returnType = Object;
620
+ return this.apiClient.callApi(
621
+ '/zoom-phone/install', 'GET',
622
+ pathParams, queryParams, headerParams, formParams, postBody,
623
+ authNames, contentTypes, accepts, returnType, null, callback
624
+ );
625
+ }
626
+
627
+ /**
628
+ * Callback function to receive the result of the zoomPhoneInstallZoomPhoneInstallPost operation.
629
+ * @callback module:api/ZoomApi~zoomPhoneInstallZoomPhoneInstallPostCallback
630
+ * @param {String} error Error message, if any.
631
+ * @param {Object} data The data returned by the service call.
632
+ * @param {String} response The complete HTTP response.
633
+ */
634
+
635
+ /**
636
+ * Zoom Phone Install
637
+ * @param {Object} opts Optional parameters
638
+ * @param {Object} [code]
639
+ * @param {Object} [state]
640
+ * @param {Object} [error]
641
+ * @param {String} [redirectUri = '')]
642
+ * @param {module:api/ZoomApi~zoomPhoneInstallZoomPhoneInstallPostCallback} callback The callback function, accepting three arguments: error, data, response
643
+ * data is of type: {@link Object}
644
+ */
645
+ zoomPhoneInstallZoomPhoneInstallPost(opts, callback) {
646
+ opts = opts || {};
647
+ let postBody = null;
648
+
649
+ let pathParams = {
650
+ };
651
+ let queryParams = {
652
+ 'code': opts['code'],
653
+ 'state': opts['state'],
654
+ 'error': opts['error'],
655
+ 'redirect_uri': opts['redirectUri']
656
+ };
657
+ let headerParams = {
658
+ };
659
+ let formParams = {
660
+ };
661
+
662
+ let authNames = [];
663
+ let contentTypes = [];
664
+ let accepts = ['application/json'];
665
+ let returnType = Object;
666
+ return this.apiClient.callApi(
667
+ '/zoom-phone/install', 'POST',
668
+ pathParams, queryParams, headerParams, formParams, postBody,
669
+ authNames, contentTypes, accepts, returnType, null, callback
670
+ );
671
+ }
672
+
673
+ /**
674
+ * Callback function to receive the result of the zoomWebhookZoomPhoneWebhookPost operation.
675
+ * @callback module:api/ZoomApi~zoomWebhookZoomPhoneWebhookPostCallback
676
+ * @param {String} error Error message, if any.
677
+ * @param {Object} data The data returned by the service call.
678
+ * @param {String} response The complete HTTP response.
679
+ */
680
+
681
+ /**
682
+ * Zoom Webhook
683
+ * Handle incoming webhooks from Zoom Phone.
684
+ * @param {Object} opts Optional parameters
685
+ * @param {Object} [dependencies]
686
+ * @param {module:api/ZoomApi~zoomWebhookZoomPhoneWebhookPostCallback} callback The callback function, accepting three arguments: error, data, response
687
+ * data is of type: {@link Object}
688
+ */
689
+ zoomWebhookZoomPhoneWebhookPost(opts, callback) {
690
+ opts = opts || {};
691
+ let postBody = null;
692
+
693
+ let pathParams = {
694
+ };
695
+ let queryParams = {
696
+ 'dependencies': opts['dependencies']
697
+ };
698
+ let headerParams = {
699
+ };
700
+ let formParams = {
701
+ };
702
+
703
+ let authNames = [];
704
+ let contentTypes = [];
705
+ let accepts = ['application/json'];
706
+ let returnType = Object;
707
+ return this.apiClient.callApi(
708
+ '/zoom-phone/webhook', 'POST',
709
+ pathParams, queryParams, headerParams, formParams, postBody,
710
+ authNames, contentTypes, accepts, returnType, null, callback
711
+ );
712
+ }
713
+
714
+
715
+ }