@polyguard/sdk 1.0.0 → 1.0.2

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.
@@ -0,0 +1,670 @@
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
+
18
+ /**
19
+ * SecureLinks service.
20
+ * @module api/SecureLinksApi
21
+ * @version 0.1.0
22
+ */
23
+ export default class SecureLinksApi {
24
+
25
+ /**
26
+ * Constructs a new SecureLinksApi.
27
+ * @alias module:api/SecureLinksApi
28
+ * @class
29
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
30
+ * default to {@link module:ApiClient#instance} if unspecified.
31
+ */
32
+ constructor(apiClient) {
33
+ this.apiClient = apiClient || ApiClient.instance;
34
+ }
35
+
36
+
37
+ /**
38
+ * Callback function to receive the result of the getRedirectInfoV2PreviewAppIdLinkUuidGet operation.
39
+ * @callback module:api/SecureLinksApi~getRedirectInfoV2PreviewAppIdLinkUuidGetCallback
40
+ * @param {String} error Error message, if any.
41
+ * @param {Object} data The data returned by the service call.
42
+ * @param {String} response The complete HTTP response.
43
+ */
44
+
45
+ /**
46
+ * Get Redirect Info
47
+ * Get detailed information about a secure link.
48
+ * @param {String} linkUuid
49
+ * @param {String} appId
50
+ * @param {Object} opts Optional parameters
51
+ * @param {String} [formatType = 'A')]
52
+ * @param {module:api/SecureLinksApi~getRedirectInfoV2PreviewAppIdLinkUuidGetCallback} callback The callback function, accepting three arguments: error, data, response
53
+ * data is of type: {@link Object}
54
+ */
55
+ getRedirectInfoV2PreviewAppIdLinkUuidGet(linkUuid, appId, opts, callback) {
56
+ opts = opts || {};
57
+ let postBody = null;
58
+ // verify the required parameter 'linkUuid' is set
59
+ if (linkUuid === undefined || linkUuid === null) {
60
+ throw new Error("Missing the required parameter 'linkUuid' when calling getRedirectInfoV2PreviewAppIdLinkUuidGet");
61
+ }
62
+ // verify the required parameter 'appId' is set
63
+ if (appId === undefined || appId === null) {
64
+ throw new Error("Missing the required parameter 'appId' when calling getRedirectInfoV2PreviewAppIdLinkUuidGet");
65
+ }
66
+
67
+ let pathParams = {
68
+ 'link_uuid': linkUuid,
69
+ 'app_id': appId
70
+ };
71
+ let queryParams = {
72
+ 'format_type': opts['formatType']
73
+ };
74
+ let headerParams = {
75
+ };
76
+ let formParams = {
77
+ };
78
+
79
+ let authNames = [];
80
+ let contentTypes = [];
81
+ let accepts = ['application/json'];
82
+ let returnType = Object;
83
+ return this.apiClient.callApi(
84
+ '/v2/preview/{app_id}/{link_uuid}', 'GET',
85
+ pathParams, queryParams, headerParams, formParams, postBody,
86
+ authNames, contentTypes, accepts, returnType, null, callback
87
+ );
88
+ }
89
+
90
+ /**
91
+ * Callback function to receive the result of the getRedirectInfoV2PreviewFormatTypeAppIdLinkUuidGet operation.
92
+ * @callback module:api/SecureLinksApi~getRedirectInfoV2PreviewFormatTypeAppIdLinkUuidGetCallback
93
+ * @param {String} error Error message, if any.
94
+ * @param {Object} data The data returned by the service call.
95
+ * @param {String} response The complete HTTP response.
96
+ */
97
+
98
+ /**
99
+ * Get Redirect Info
100
+ * Get detailed information about a secure link.
101
+ * @param {String} formatType
102
+ * @param {String} linkUuid
103
+ * @param {String} appId
104
+ * @param {module:api/SecureLinksApi~getRedirectInfoV2PreviewFormatTypeAppIdLinkUuidGetCallback} callback The callback function, accepting three arguments: error, data, response
105
+ * data is of type: {@link Object}
106
+ */
107
+ getRedirectInfoV2PreviewFormatTypeAppIdLinkUuidGet(formatType, linkUuid, appId, callback) {
108
+ let postBody = null;
109
+ // verify the required parameter 'formatType' is set
110
+ if (formatType === undefined || formatType === null) {
111
+ throw new Error("Missing the required parameter 'formatType' when calling getRedirectInfoV2PreviewFormatTypeAppIdLinkUuidGet");
112
+ }
113
+ // verify the required parameter 'linkUuid' is set
114
+ if (linkUuid === undefined || linkUuid === null) {
115
+ throw new Error("Missing the required parameter 'linkUuid' when calling getRedirectInfoV2PreviewFormatTypeAppIdLinkUuidGet");
116
+ }
117
+ // verify the required parameter 'appId' is set
118
+ if (appId === undefined || appId === null) {
119
+ throw new Error("Missing the required parameter 'appId' when calling getRedirectInfoV2PreviewFormatTypeAppIdLinkUuidGet");
120
+ }
121
+
122
+ let pathParams = {
123
+ 'format_type': formatType,
124
+ 'link_uuid': linkUuid,
125
+ 'app_id': appId
126
+ };
127
+ let queryParams = {
128
+ };
129
+ let headerParams = {
130
+ };
131
+ let formParams = {
132
+ };
133
+
134
+ let authNames = [];
135
+ let contentTypes = [];
136
+ let accepts = ['application/json'];
137
+ let returnType = Object;
138
+ return this.apiClient.callApi(
139
+ '/v2/preview/{format_type}/{app_id}/{link_uuid}', 'GET',
140
+ pathParams, queryParams, headerParams, formParams, postBody,
141
+ authNames, contentTypes, accepts, returnType, null, callback
142
+ );
143
+ }
144
+
145
+ /**
146
+ * Callback function to receive the result of the getRedirectInfoV2PreviewLinkUuidGet operation.
147
+ * @callback module:api/SecureLinksApi~getRedirectInfoV2PreviewLinkUuidGetCallback
148
+ * @param {String} error Error message, if any.
149
+ * @param {Object} data The data returned by the service call.
150
+ * @param {String} response The complete HTTP response.
151
+ */
152
+
153
+ /**
154
+ * Get Redirect Info
155
+ * Get detailed information about a secure link.
156
+ * @param {String} linkUuid
157
+ * @param {Object} opts Optional parameters
158
+ * @param {String} [formatType = 'A')]
159
+ * @param {String} [appId]
160
+ * @param {module:api/SecureLinksApi~getRedirectInfoV2PreviewLinkUuidGetCallback} callback The callback function, accepting three arguments: error, data, response
161
+ * data is of type: {@link Object}
162
+ */
163
+ getRedirectInfoV2PreviewLinkUuidGet(linkUuid, opts, callback) {
164
+ opts = opts || {};
165
+ let postBody = null;
166
+ // verify the required parameter 'linkUuid' is set
167
+ if (linkUuid === undefined || linkUuid === null) {
168
+ throw new Error("Missing the required parameter 'linkUuid' when calling getRedirectInfoV2PreviewLinkUuidGet");
169
+ }
170
+
171
+ let pathParams = {
172
+ 'link_uuid': linkUuid
173
+ };
174
+ let queryParams = {
175
+ 'format_type': opts['formatType'],
176
+ 'app_id': opts['appId']
177
+ };
178
+ let headerParams = {
179
+ };
180
+ let formParams = {
181
+ };
182
+
183
+ let authNames = [];
184
+ let contentTypes = [];
185
+ let accepts = ['application/json'];
186
+ let returnType = Object;
187
+ return this.apiClient.callApi(
188
+ '/v2/preview/{link_uuid}', 'GET',
189
+ pathParams, queryParams, headerParams, formParams, postBody,
190
+ authNames, contentTypes, accepts, returnType, null, callback
191
+ );
192
+ }
193
+
194
+ /**
195
+ * Callback function to receive the result of the getSvgResponseV2ScanAppIdLinkUuidGet operation.
196
+ * @callback module:api/SecureLinksApi~getSvgResponseV2ScanAppIdLinkUuidGetCallback
197
+ * @param {String} error Error message, if any.
198
+ * @param {Object} data The data returned by the service call.
199
+ * @param {String} response The complete HTTP response.
200
+ */
201
+
202
+ /**
203
+ * Get Svg Response
204
+ * @param {String} appId
205
+ * @param {String} linkUuid
206
+ * @param {module:api/SecureLinksApi~getSvgResponseV2ScanAppIdLinkUuidGetCallback} callback The callback function, accepting three arguments: error, data, response
207
+ * data is of type: {@link Object}
208
+ */
209
+ getSvgResponseV2ScanAppIdLinkUuidGet(appId, linkUuid, callback) {
210
+ let postBody = null;
211
+ // verify the required parameter 'appId' is set
212
+ if (appId === undefined || appId === null) {
213
+ throw new Error("Missing the required parameter 'appId' when calling getSvgResponseV2ScanAppIdLinkUuidGet");
214
+ }
215
+ // verify the required parameter 'linkUuid' is set
216
+ if (linkUuid === undefined || linkUuid === null) {
217
+ throw new Error("Missing the required parameter 'linkUuid' when calling getSvgResponseV2ScanAppIdLinkUuidGet");
218
+ }
219
+
220
+ let pathParams = {
221
+ 'app_id': appId,
222
+ 'link_uuid': linkUuid
223
+ };
224
+ let queryParams = {
225
+ };
226
+ let headerParams = {
227
+ };
228
+ let formParams = {
229
+ };
230
+
231
+ let authNames = [];
232
+ let contentTypes = [];
233
+ let accepts = ['application/json'];
234
+ let returnType = Object;
235
+ return this.apiClient.callApi(
236
+ '/v2/scan/{app_id}/{link_uuid}', 'GET',
237
+ pathParams, queryParams, headerParams, formParams, postBody,
238
+ authNames, contentTypes, accepts, returnType, null, callback
239
+ );
240
+ }
241
+
242
+ /**
243
+ * Callback function to receive the result of the getSvgResponseV2ScanFormatTypeAppIdLinkUuidGet operation.
244
+ * @callback module:api/SecureLinksApi~getSvgResponseV2ScanFormatTypeAppIdLinkUuidGetCallback
245
+ * @param {String} error Error message, if any.
246
+ * @param {Object} data The data returned by the service call.
247
+ * @param {String} response The complete HTTP response.
248
+ */
249
+
250
+ /**
251
+ * Get Svg Response
252
+ * @param {String} appId
253
+ * @param {String} linkUuid
254
+ * @param {module:api/SecureLinksApi~getSvgResponseV2ScanFormatTypeAppIdLinkUuidGetCallback} callback The callback function, accepting three arguments: error, data, response
255
+ * data is of type: {@link Object}
256
+ */
257
+ getSvgResponseV2ScanFormatTypeAppIdLinkUuidGet(appId, linkUuid, callback) {
258
+ let postBody = null;
259
+ // verify the required parameter 'appId' is set
260
+ if (appId === undefined || appId === null) {
261
+ throw new Error("Missing the required parameter 'appId' when calling getSvgResponseV2ScanFormatTypeAppIdLinkUuidGet");
262
+ }
263
+ // verify the required parameter 'linkUuid' is set
264
+ if (linkUuid === undefined || linkUuid === null) {
265
+ throw new Error("Missing the required parameter 'linkUuid' when calling getSvgResponseV2ScanFormatTypeAppIdLinkUuidGet");
266
+ }
267
+
268
+ let pathParams = {
269
+ 'app_id': appId,
270
+ 'link_uuid': linkUuid
271
+ };
272
+ let queryParams = {
273
+ };
274
+ let headerParams = {
275
+ };
276
+ let formParams = {
277
+ };
278
+
279
+ let authNames = [];
280
+ let contentTypes = [];
281
+ let accepts = ['application/json'];
282
+ let returnType = Object;
283
+ return this.apiClient.callApi(
284
+ '/v2/scan/{format_type}/{app_id}/{link_uuid}', 'GET',
285
+ pathParams, queryParams, headerParams, formParams, postBody,
286
+ authNames, contentTypes, accepts, returnType, null, callback
287
+ );
288
+ }
289
+
290
+ /**
291
+ * Callback function to receive the result of the pgCompleteRedirectV2RedirectAppIdLinkUuidPost operation.
292
+ * @callback module:api/SecureLinksApi~pgCompleteRedirectV2RedirectAppIdLinkUuidPostCallback
293
+ * @param {String} error Error message, if any.
294
+ * @param {Object} data The data returned by the service call.
295
+ * @param {String} response The complete HTTP response.
296
+ */
297
+
298
+ /**
299
+ * Pg Complete Redirect
300
+ * @param {String} linkUuid
301
+ * @param {String} appId
302
+ * @param {String} appattest
303
+ * @param {Object} opts Optional parameters
304
+ * @param {String} [formatType = 'A')]
305
+ * @param {String} [pcre]
306
+ * @param {module:api/SecureLinksApi~pgCompleteRedirectV2RedirectAppIdLinkUuidPostCallback} callback The callback function, accepting three arguments: error, data, response
307
+ * data is of type: {@link Object}
308
+ */
309
+ pgCompleteRedirectV2RedirectAppIdLinkUuidPost(linkUuid, appId, appattest, opts, callback) {
310
+ opts = opts || {};
311
+ let postBody = null;
312
+ // verify the required parameter 'linkUuid' is set
313
+ if (linkUuid === undefined || linkUuid === null) {
314
+ throw new Error("Missing the required parameter 'linkUuid' when calling pgCompleteRedirectV2RedirectAppIdLinkUuidPost");
315
+ }
316
+ // verify the required parameter 'appId' is set
317
+ if (appId === undefined || appId === null) {
318
+ throw new Error("Missing the required parameter 'appId' when calling pgCompleteRedirectV2RedirectAppIdLinkUuidPost");
319
+ }
320
+ // verify the required parameter 'appattest' is set
321
+ if (appattest === undefined || appattest === null) {
322
+ throw new Error("Missing the required parameter 'appattest' when calling pgCompleteRedirectV2RedirectAppIdLinkUuidPost");
323
+ }
324
+
325
+ let pathParams = {
326
+ 'link_uuid': linkUuid,
327
+ 'app_id': appId
328
+ };
329
+ let queryParams = {
330
+ 'format_type': opts['formatType'],
331
+ 'pcre': opts['pcre']
332
+ };
333
+ let headerParams = {
334
+ 'appattest': appattest
335
+ };
336
+ let formParams = {
337
+ };
338
+
339
+ let authNames = [];
340
+ let contentTypes = [];
341
+ let accepts = ['application/json'];
342
+ let returnType = Object;
343
+ return this.apiClient.callApi(
344
+ '/v2/redirect/{app_id}/{link_uuid}', 'POST',
345
+ pathParams, queryParams, headerParams, formParams, postBody,
346
+ authNames, contentTypes, accepts, returnType, null, callback
347
+ );
348
+ }
349
+
350
+ /**
351
+ * Callback function to receive the result of the pgCompleteRedirectV2RedirectFormatTypeAppIdLinkUuidPost operation.
352
+ * @callback module:api/SecureLinksApi~pgCompleteRedirectV2RedirectFormatTypeAppIdLinkUuidPostCallback
353
+ * @param {String} error Error message, if any.
354
+ * @param {Object} data The data returned by the service call.
355
+ * @param {String} response The complete HTTP response.
356
+ */
357
+
358
+ /**
359
+ * Pg Complete Redirect
360
+ * @param {String} formatType
361
+ * @param {String} linkUuid
362
+ * @param {String} appId
363
+ * @param {String} appattest
364
+ * @param {Object} opts Optional parameters
365
+ * @param {String} [pcre]
366
+ * @param {module:api/SecureLinksApi~pgCompleteRedirectV2RedirectFormatTypeAppIdLinkUuidPostCallback} callback The callback function, accepting three arguments: error, data, response
367
+ * data is of type: {@link Object}
368
+ */
369
+ pgCompleteRedirectV2RedirectFormatTypeAppIdLinkUuidPost(formatType, linkUuid, appId, appattest, opts, callback) {
370
+ opts = opts || {};
371
+ let postBody = null;
372
+ // verify the required parameter 'formatType' is set
373
+ if (formatType === undefined || formatType === null) {
374
+ throw new Error("Missing the required parameter 'formatType' when calling pgCompleteRedirectV2RedirectFormatTypeAppIdLinkUuidPost");
375
+ }
376
+ // verify the required parameter 'linkUuid' is set
377
+ if (linkUuid === undefined || linkUuid === null) {
378
+ throw new Error("Missing the required parameter 'linkUuid' when calling pgCompleteRedirectV2RedirectFormatTypeAppIdLinkUuidPost");
379
+ }
380
+ // verify the required parameter 'appId' is set
381
+ if (appId === undefined || appId === null) {
382
+ throw new Error("Missing the required parameter 'appId' when calling pgCompleteRedirectV2RedirectFormatTypeAppIdLinkUuidPost");
383
+ }
384
+ // verify the required parameter 'appattest' is set
385
+ if (appattest === undefined || appattest === null) {
386
+ throw new Error("Missing the required parameter 'appattest' when calling pgCompleteRedirectV2RedirectFormatTypeAppIdLinkUuidPost");
387
+ }
388
+
389
+ let pathParams = {
390
+ 'format_type': formatType,
391
+ 'link_uuid': linkUuid,
392
+ 'app_id': appId
393
+ };
394
+ let queryParams = {
395
+ 'pcre': opts['pcre']
396
+ };
397
+ let headerParams = {
398
+ 'appattest': appattest
399
+ };
400
+ let formParams = {
401
+ };
402
+
403
+ let authNames = [];
404
+ let contentTypes = [];
405
+ let accepts = ['application/json'];
406
+ let returnType = Object;
407
+ return this.apiClient.callApi(
408
+ '/v2/redirect/{format_type}/{app_id}/{link_uuid}', 'POST',
409
+ pathParams, queryParams, headerParams, formParams, postBody,
410
+ authNames, contentTypes, accepts, returnType, null, callback
411
+ );
412
+ }
413
+
414
+ /**
415
+ * Callback function to receive the result of the pgCompleteRedirectV2RedirectLinkUuidPost operation.
416
+ * @callback module:api/SecureLinksApi~pgCompleteRedirectV2RedirectLinkUuidPostCallback
417
+ * @param {String} error Error message, if any.
418
+ * @param {Object} data The data returned by the service call.
419
+ * @param {String} response The complete HTTP response.
420
+ */
421
+
422
+ /**
423
+ * Pg Complete Redirect
424
+ * @param {String} linkUuid
425
+ * @param {String} appattest
426
+ * @param {Object} opts Optional parameters
427
+ * @param {String} [formatType = 'A')]
428
+ * @param {String} [pcre]
429
+ * @param {String} [appId]
430
+ * @param {module:api/SecureLinksApi~pgCompleteRedirectV2RedirectLinkUuidPostCallback} callback The callback function, accepting three arguments: error, data, response
431
+ * data is of type: {@link Object}
432
+ */
433
+ pgCompleteRedirectV2RedirectLinkUuidPost(linkUuid, appattest, opts, callback) {
434
+ opts = opts || {};
435
+ let postBody = null;
436
+ // verify the required parameter 'linkUuid' is set
437
+ if (linkUuid === undefined || linkUuid === null) {
438
+ throw new Error("Missing the required parameter 'linkUuid' when calling pgCompleteRedirectV2RedirectLinkUuidPost");
439
+ }
440
+ // verify the required parameter 'appattest' is set
441
+ if (appattest === undefined || appattest === null) {
442
+ throw new Error("Missing the required parameter 'appattest' when calling pgCompleteRedirectV2RedirectLinkUuidPost");
443
+ }
444
+
445
+ let pathParams = {
446
+ 'link_uuid': linkUuid
447
+ };
448
+ let queryParams = {
449
+ 'format_type': opts['formatType'],
450
+ 'pcre': opts['pcre'],
451
+ 'app_id': opts['appId']
452
+ };
453
+ let headerParams = {
454
+ 'appattest': appattest
455
+ };
456
+ let formParams = {
457
+ };
458
+
459
+ let authNames = [];
460
+ let contentTypes = [];
461
+ let accepts = ['application/json'];
462
+ let returnType = Object;
463
+ return this.apiClient.callApi(
464
+ '/v2/redirect/{link_uuid}', 'POST',
465
+ pathParams, queryParams, headerParams, formParams, postBody,
466
+ authNames, contentTypes, accepts, returnType, null, callback
467
+ );
468
+ }
469
+
470
+ /**
471
+ * Callback function to receive the result of the pgLoginV2AppIdLinkUuidGet operation.
472
+ * @callback module:api/SecureLinksApi~pgLoginV2AppIdLinkUuidGetCallback
473
+ * @param {String} error Error message, if any.
474
+ * @param {Object} data The data returned by the service call.
475
+ * @param {String} response The complete HTTP response.
476
+ */
477
+
478
+ /**
479
+ * Pg Login
480
+ * PRESENTS LOGIN PAGE ON DESKTOP. HIJACKED by PSL ON MOBILE and REDIRECTED BY DECORATOR.
481
+ * @param {String} linkUuid
482
+ * @param {String} appId
483
+ * @param {Object} opts Optional parameters
484
+ * @param {String} [formatType = 'A')]
485
+ * @param {module:api/SecureLinksApi~pgLoginV2AppIdLinkUuidGetCallback} callback The callback function, accepting three arguments: error, data, response
486
+ * data is of type: {@link Object}
487
+ */
488
+ pgLoginV2AppIdLinkUuidGet(linkUuid, appId, opts, callback) {
489
+ opts = opts || {};
490
+ let postBody = null;
491
+ // verify the required parameter 'linkUuid' is set
492
+ if (linkUuid === undefined || linkUuid === null) {
493
+ throw new Error("Missing the required parameter 'linkUuid' when calling pgLoginV2AppIdLinkUuidGet");
494
+ }
495
+ // verify the required parameter 'appId' is set
496
+ if (appId === undefined || appId === null) {
497
+ throw new Error("Missing the required parameter 'appId' when calling pgLoginV2AppIdLinkUuidGet");
498
+ }
499
+
500
+ let pathParams = {
501
+ 'link_uuid': linkUuid,
502
+ 'app_id': appId
503
+ };
504
+ let queryParams = {
505
+ 'format_type': opts['formatType']
506
+ };
507
+ let headerParams = {
508
+ };
509
+ let formParams = {
510
+ };
511
+
512
+ let authNames = [];
513
+ let contentTypes = [];
514
+ let accepts = ['application/json'];
515
+ let returnType = Object;
516
+ return this.apiClient.callApi(
517
+ '/v2/{app_id}/{link_uuid}', 'GET',
518
+ pathParams, queryParams, headerParams, formParams, postBody,
519
+ authNames, contentTypes, accepts, returnType, null, callback
520
+ );
521
+ }
522
+
523
+ /**
524
+ * Callback function to receive the result of the pgLoginV2FormatTypeAppIdLinkUuidGet operation.
525
+ * @callback module:api/SecureLinksApi~pgLoginV2FormatTypeAppIdLinkUuidGetCallback
526
+ * @param {String} error Error message, if any.
527
+ * @param {Object} data The data returned by the service call.
528
+ * @param {String} response The complete HTTP response.
529
+ */
530
+
531
+ /**
532
+ * Pg Login
533
+ * PRESENTS LOGIN PAGE ON DESKTOP. HIJACKED by PSL ON MOBILE and REDIRECTED BY DECORATOR.
534
+ * @param {String} linkUuid
535
+ * @param {String} appId
536
+ * @param {String} formatType
537
+ * @param {module:api/SecureLinksApi~pgLoginV2FormatTypeAppIdLinkUuidGetCallback} callback The callback function, accepting three arguments: error, data, response
538
+ * data is of type: {@link Object}
539
+ */
540
+ pgLoginV2FormatTypeAppIdLinkUuidGet(linkUuid, appId, formatType, callback) {
541
+ let postBody = null;
542
+ // verify the required parameter 'linkUuid' is set
543
+ if (linkUuid === undefined || linkUuid === null) {
544
+ throw new Error("Missing the required parameter 'linkUuid' when calling pgLoginV2FormatTypeAppIdLinkUuidGet");
545
+ }
546
+ // verify the required parameter 'appId' is set
547
+ if (appId === undefined || appId === null) {
548
+ throw new Error("Missing the required parameter 'appId' when calling pgLoginV2FormatTypeAppIdLinkUuidGet");
549
+ }
550
+ // verify the required parameter 'formatType' is set
551
+ if (formatType === undefined || formatType === null) {
552
+ throw new Error("Missing the required parameter 'formatType' when calling pgLoginV2FormatTypeAppIdLinkUuidGet");
553
+ }
554
+
555
+ let pathParams = {
556
+ 'link_uuid': linkUuid,
557
+ 'app_id': appId,
558
+ 'format_type': formatType
559
+ };
560
+ let queryParams = {
561
+ };
562
+ let headerParams = {
563
+ };
564
+ let formParams = {
565
+ };
566
+
567
+ let authNames = [];
568
+ let contentTypes = [];
569
+ let accepts = ['application/json'];
570
+ let returnType = Object;
571
+ return this.apiClient.callApi(
572
+ '/v2/{format_type}/{app_id}/{link_uuid}', 'GET',
573
+ pathParams, queryParams, headerParams, formParams, postBody,
574
+ authNames, contentTypes, accepts, returnType, null, callback
575
+ );
576
+ }
577
+
578
+ /**
579
+ * Callback function to receive the result of the pgLoginV2LinkUuidGet operation.
580
+ * @callback module:api/SecureLinksApi~pgLoginV2LinkUuidGetCallback
581
+ * @param {String} error Error message, if any.
582
+ * @param {Object} data The data returned by the service call.
583
+ * @param {String} response The complete HTTP response.
584
+ */
585
+
586
+ /**
587
+ * Pg Login
588
+ * PRESENTS LOGIN PAGE ON DESKTOP. HIJACKED by PSL ON MOBILE and REDIRECTED BY DECORATOR.
589
+ * @param {String} linkUuid
590
+ * @param {Object} opts Optional parameters
591
+ * @param {String} [appId]
592
+ * @param {String} [formatType = 'A')]
593
+ * @param {module:api/SecureLinksApi~pgLoginV2LinkUuidGetCallback} callback The callback function, accepting three arguments: error, data, response
594
+ * data is of type: {@link Object}
595
+ */
596
+ pgLoginV2LinkUuidGet(linkUuid, opts, callback) {
597
+ opts = opts || {};
598
+ let postBody = null;
599
+ // verify the required parameter 'linkUuid' is set
600
+ if (linkUuid === undefined || linkUuid === null) {
601
+ throw new Error("Missing the required parameter 'linkUuid' when calling pgLoginV2LinkUuidGet");
602
+ }
603
+
604
+ let pathParams = {
605
+ 'link_uuid': linkUuid
606
+ };
607
+ let queryParams = {
608
+ 'app_id': opts['appId'],
609
+ 'format_type': opts['formatType']
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
+ '/v2/{link_uuid}', '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 pgPollV2PollPcreGet operation.
629
+ * @callback module:api/SecureLinksApi~pgPollV2PollPcreGetCallback
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
+ * Pg Poll
637
+ * @param {String} pcre
638
+ * @param {module:api/SecureLinksApi~pgPollV2PollPcreGetCallback} callback The callback function, accepting three arguments: error, data, response
639
+ * data is of type: {@link Object}
640
+ */
641
+ pgPollV2PollPcreGet(pcre, callback) {
642
+ let postBody = null;
643
+ // verify the required parameter 'pcre' is set
644
+ if (pcre === undefined || pcre === null) {
645
+ throw new Error("Missing the required parameter 'pcre' when calling pgPollV2PollPcreGet");
646
+ }
647
+
648
+ let pathParams = {
649
+ 'pcre': pcre
650
+ };
651
+ let queryParams = {
652
+ };
653
+ let headerParams = {
654
+ };
655
+ let formParams = {
656
+ };
657
+
658
+ let authNames = [];
659
+ let contentTypes = [];
660
+ let accepts = ['application/json'];
661
+ let returnType = Object;
662
+ return this.apiClient.callApi(
663
+ '/v2/poll/{pcre}', 'GET',
664
+ pathParams, queryParams, headerParams, formParams, postBody,
665
+ authNames, contentTypes, accepts, returnType, null, callback
666
+ );
667
+ }
668
+
669
+
670
+ }