@polyguard/sdk 1.5.0 → 1.5.1

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 (134) hide show
  1. package/LICENSE +200 -0
  2. package/README.md +328 -0
  3. package/package.json +7 -3
  4. package/coverage/base.css +0 -224
  5. package/coverage/block-navigation.js +0 -87
  6. package/coverage/clover.xml +0 -268
  7. package/coverage/coverage-final.json +0 -8
  8. package/coverage/favicon.png +0 -0
  9. package/coverage/index.html +0 -131
  10. package/coverage/prettify.css +0 -1
  11. package/coverage/prettify.js +0 -2
  12. package/coverage/sort-arrow-sprite.png +0 -0
  13. package/coverage/sorter.js +0 -210
  14. package/coverage/src/PolyguardClient.js.html +0 -160
  15. package/coverage/src/PolyguardWebsocketClientImpl.js.html +0 -634
  16. package/coverage/src/__tests__/helpers/fixtures.js.html +0 -166
  17. package/coverage/src/__tests__/helpers/index.html +0 -131
  18. package/coverage/src/__tests__/helpers/mockWebSocket.js.html +0 -283
  19. package/coverage/src/index.html +0 -176
  20. package/coverage/src/messageHandler.js.html +0 -448
  21. package/coverage/src/ticketService.js.html +0 -157
  22. package/coverage/src/ui.js.html +0 -349
  23. package/dist/sdk.global.js +0 -11256
  24. package/scripts/regenerate-client.sh +0 -59
  25. package/src/PolyguardClient.js +0 -25
  26. package/src/PolyguardWebsocketClientImpl.js +0 -198
  27. package/src/__tests__/PolyguardClient.test.js +0 -65
  28. package/src/__tests__/PolyguardWebsocketClientImpl.test.js +0 -617
  29. package/src/__tests__/helpers/fixtures.js +0 -27
  30. package/src/__tests__/helpers/mockWebSocket.js +0 -66
  31. package/src/__tests__/server.test.js +0 -148
  32. package/src/__tests__/sidebar.test.js +0 -289
  33. package/src/browser.js +0 -9
  34. package/src/generated/.babelrc +0 -33
  35. package/src/generated/.openapi-generator/FILES +0 -63
  36. package/src/generated/.openapi-generator/VERSION +0 -1
  37. package/src/generated/.openapi-generator-ignore +0 -23
  38. package/src/generated/.travis.yml +0 -5
  39. package/src/generated/README.md +0 -211
  40. package/src/generated/docs/ApiControllersPslStirCallRequest.md +0 -18
  41. package/src/generated/docs/ApiModelsApiCallModelsCallRequest.md +0 -12
  42. package/src/generated/docs/AppId.md +0 -8
  43. package/src/generated/docs/AppleApi.md +0 -88
  44. package/src/generated/docs/AuthApi.md +0 -1464
  45. package/src/generated/docs/BlockingApi.md +0 -208
  46. package/src/generated/docs/CallsApi.md +0 -140
  47. package/src/generated/docs/Certainty.md +0 -8
  48. package/src/generated/docs/CreateLinkRequest.md +0 -12
  49. package/src/generated/docs/DefaultApi.md +0 -128
  50. package/src/generated/docs/HTTPValidationError.md +0 -9
  51. package/src/generated/docs/InviteRequestModel.md +0 -10
  52. package/src/generated/docs/JWTRequest.md +0 -11
  53. package/src/generated/docs/LinksApi.md +0 -162
  54. package/src/generated/docs/NumberVerification.md +0 -10
  55. package/src/generated/docs/SdkApi.md +0 -54
  56. package/src/generated/docs/SecureLinksApi.md +0 -614
  57. package/src/generated/docs/StartAttestationRequest.md +0 -9
  58. package/src/generated/docs/StartMeetingRequest.md +0 -9
  59. package/src/generated/docs/StirApi.md +0 -52
  60. package/src/generated/docs/TwilioApi.md +0 -138
  61. package/src/generated/docs/UsersApi.md +0 -362
  62. package/src/generated/docs/ValidationError.md +0 -11
  63. package/src/generated/docs/ValidationErrorLocInner.md +0 -8
  64. package/src/generated/docs/VeriffApi.md +0 -188
  65. package/src/generated/docs/VeriffSessionRequest.md +0 -10
  66. package/src/generated/docs/VerifyRequest.md +0 -10
  67. package/src/generated/docs/WellKnownApi.md +0 -128
  68. package/src/generated/docs/ZoomApi.md +0 -848
  69. package/src/generated/git_push.sh +0 -57
  70. package/src/generated/mocha.opts +0 -1
  71. package/src/generated/package.json +0 -46
  72. package/src/generated/src/ApiClient.js +0 -677
  73. package/src/generated/src/api/AppleApi.js +0 -109
  74. package/src/generated/src/api/AuthApi.js +0 -1512
  75. package/src/generated/src/api/BlockingApi.js +0 -217
  76. package/src/generated/src/api/CallsApi.js +0 -164
  77. package/src/generated/src/api/DefaultApi.js +0 -145
  78. package/src/generated/src/api/LinksApi.js +0 -195
  79. package/src/generated/src/api/SdkApi.js +0 -81
  80. package/src/generated/src/api/SecureLinksApi.js +0 -670
  81. package/src/generated/src/api/StirApi.js +0 -80
  82. package/src/generated/src/api/TwilioApi.js +0 -158
  83. package/src/generated/src/api/UsersApi.js +0 -375
  84. package/src/generated/src/api/VeriffApi.js +0 -209
  85. package/src/generated/src/api/WellKnownApi.js +0 -145
  86. package/src/generated/src/api/ZoomApi.js +0 -823
  87. package/src/generated/src/index.js +0 -244
  88. package/src/generated/src/model/ApiControllersPslStirCallRequest.js +0 -211
  89. package/src/generated/src/model/ApiModelsApiCallModelsCallRequest.js +0 -119
  90. package/src/generated/src/model/CreateLinkRequest.js +0 -131
  91. package/src/generated/src/model/HTTPValidationError.js +0 -94
  92. package/src/generated/src/model/InviteRequestModel.js +0 -109
  93. package/src/generated/src/model/JWTRequest.js +0 -113
  94. package/src/generated/src/model/NumberVerification.js +0 -107
  95. package/src/generated/src/model/StartAttestationRequest.js +0 -95
  96. package/src/generated/src/model/StartMeetingRequest.js +0 -95
  97. package/src/generated/src/model/ValidationError.js +0 -130
  98. package/src/generated/src/model/VeriffSessionRequest.js +0 -107
  99. package/src/generated/src/model/VerifyRequest.js +0 -109
  100. package/src/generated/test/api/AppleApi.spec.js +0 -73
  101. package/src/generated/test/api/AuthApi.spec.js +0 -353
  102. package/src/generated/test/api/BlockingApi.spec.js +0 -103
  103. package/src/generated/test/api/CallsApi.spec.js +0 -83
  104. package/src/generated/test/api/DefaultApi.spec.js +0 -73
  105. package/src/generated/test/api/LinksApi.spec.js +0 -83
  106. package/src/generated/test/api/SdkApi.spec.js +0 -63
  107. package/src/generated/test/api/SecureLinksApi.spec.js +0 -143
  108. package/src/generated/test/api/StirApi.spec.js +0 -63
  109. package/src/generated/test/api/TwilioApi.spec.js +0 -83
  110. package/src/generated/test/api/UsersApi.spec.js +0 -133
  111. package/src/generated/test/api/VeriffApi.spec.js +0 -93
  112. package/src/generated/test/api/WellKnownApi.spec.js +0 -83
  113. package/src/generated/test/api/ZoomApi.spec.js +0 -213
  114. package/src/generated/test/model/ApiControllersPslStirCallRequest.spec.js +0 -119
  115. package/src/generated/test/model/ApiModelsApiCallModelsCallRequest.spec.js +0 -83
  116. package/src/generated/test/model/AppId.spec.js +0 -59
  117. package/src/generated/test/model/Certainty.spec.js +0 -59
  118. package/src/generated/test/model/CreateLinkRequest.spec.js +0 -83
  119. package/src/generated/test/model/HTTPValidationError.spec.js +0 -65
  120. package/src/generated/test/model/InviteRequestModel.spec.js +0 -71
  121. package/src/generated/test/model/JWTRequest.spec.js +0 -77
  122. package/src/generated/test/model/NumberVerification.spec.js +0 -71
  123. package/src/generated/test/model/StartAttestationRequest.spec.js +0 -65
  124. package/src/generated/test/model/StartMeetingRequest.spec.js +0 -65
  125. package/src/generated/test/model/ValidationError.spec.js +0 -77
  126. package/src/generated/test/model/ValidationErrorLocInner.spec.js +0 -59
  127. package/src/generated/test/model/VeriffSessionRequest.spec.js +0 -71
  128. package/src/generated/test/model/VerifyRequest.spec.js +0 -71
  129. package/src/index.js +0 -16
  130. package/src/messageHandler.js +0 -121
  131. package/src/server.js +0 -91
  132. package/src/ticketService.js +0 -28
  133. package/src/ui.js +0 -88
  134. package/vitest.config.js +0 -10
@@ -1,670 +0,0 @@
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
- }