@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,244 +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 ApiControllersPslStirCallRequest from './model/ApiControllersPslStirCallRequest';
17
- import ApiModelsApiCallModelsCallRequest from './model/ApiModelsApiCallModelsCallRequest';
18
- // import AppId from './model/AppId';
19
- // import Certainty from './model/Certainty';
20
- import CreateLinkRequest from './model/CreateLinkRequest';
21
- import HTTPValidationError from './model/HTTPValidationError';
22
- import InviteRequestModel from './model/InviteRequestModel';
23
- import JWTRequest from './model/JWTRequest';
24
- import NumberVerification from './model/NumberVerification';
25
- import StartAttestationRequest from './model/StartAttestationRequest';
26
- import StartMeetingRequest from './model/StartMeetingRequest';
27
- import ValidationError from './model/ValidationError';
28
- // import ValidationErrorLocInner from './model/ValidationErrorLocInner';
29
- import VeriffSessionRequest from './model/VeriffSessionRequest';
30
- import VerifyRequest from './model/VerifyRequest';
31
- import BlockingApi from './api/BlockingApi';
32
- import CallsApi from './api/CallsApi';
33
- import DefaultApi from './api/DefaultApi';
34
- import LinksApi from './api/LinksApi';
35
- import SdkApi from './api/SdkApi';
36
- import SecureLinksApi from './api/SecureLinksApi';
37
- import StirApi from './api/StirApi';
38
- import TwilioApi from './api/TwilioApi';
39
- import UsersApi from './api/UsersApi';
40
- import VeriffApi from './api/VeriffApi';
41
- import WellKnownApi from './api/WellKnownApi';
42
- import ZoomApi from './api/ZoomApi';
43
-
44
-
45
- /**
46
- * JS API client generated by OpenAPI Generator.<br>
47
- * The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
48
- * <p>
49
- * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
50
- * <pre>
51
- * var FastApi = require('index'); // See note below*.
52
- * var xxxSvc = new FastApi.XxxApi(); // Allocate the API class we're going to use.
53
- * var yyyModel = new FastApi.Yyy(); // Construct a model instance.
54
- * yyyModel.someProperty = 'someValue';
55
- * ...
56
- * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
57
- * ...
58
- * </pre>
59
- * <em>*NOTE: For a top-level AMD script, use require(['index'], function(){...})
60
- * and put the application logic within the callback function.</em>
61
- * </p>
62
- * <p>
63
- * A non-AMD browser application (discouraged) might do something like this:
64
- * <pre>
65
- * var xxxSvc = new FastApi.XxxApi(); // Allocate the API class we're going to use.
66
- * var yyy = new FastApi.Yyy(); // Construct a model instance.
67
- * yyyModel.someProperty = 'someValue';
68
- * ...
69
- * var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
70
- * ...
71
- * </pre>
72
- * </p>
73
- * @module index
74
- * @version 0.1.0
75
- */
76
- export {
77
- /**
78
- * The ApiClient constructor.
79
- * @property {module:ApiClient}
80
- */
81
- ApiClient,
82
-
83
- /**
84
- * The ApiControllersPslStirCallRequest model constructor.
85
- * @property {module:model/ApiControllersPslStirCallRequest}
86
- */
87
- ApiControllersPslStirCallRequest,
88
-
89
- /**
90
- * The ApiModelsApiCallModelsCallRequest model constructor.
91
- * @property {module:model/ApiModelsApiCallModelsCallRequest}
92
- */
93
- ApiModelsApiCallModelsCallRequest,
94
-
95
- /**
96
- * The AppId model constructor.
97
- * @property {module:model/AppId}
98
- */
99
- // AppId,
100
-
101
- /**
102
- * The Certainty model constructor.
103
- * @property {module:model/Certainty}
104
- */
105
- // Certainty,
106
-
107
- /**
108
- * The CreateLinkRequest model constructor.
109
- * @property {module:model/CreateLinkRequest}
110
- */
111
- CreateLinkRequest,
112
-
113
- /**
114
- * The HTTPValidationError model constructor.
115
- * @property {module:model/HTTPValidationError}
116
- */
117
- HTTPValidationError,
118
-
119
- /**
120
- * The InviteRequestModel model constructor.
121
- * @property {module:model/InviteRequestModel}
122
- */
123
- InviteRequestModel,
124
-
125
- /**
126
- * The JWTRequest model constructor.
127
- * @property {module:model/JWTRequest}
128
- */
129
- JWTRequest,
130
-
131
- /**
132
- * The NumberVerification model constructor.
133
- * @property {module:model/NumberVerification}
134
- */
135
- NumberVerification,
136
-
137
- /**
138
- * The StartAttestationRequest model constructor.
139
- * @property {module:model/StartAttestationRequest}
140
- */
141
- StartAttestationRequest,
142
-
143
- /**
144
- * The StartMeetingRequest model constructor.
145
- * @property {module:model/StartMeetingRequest}
146
- */
147
- StartMeetingRequest,
148
-
149
- /**
150
- * The ValidationError model constructor.
151
- * @property {module:model/ValidationError}
152
- */
153
- ValidationError,
154
-
155
- /**
156
- * The ValidationErrorLocInner model constructor.
157
- * @property {module:model/ValidationErrorLocInner}
158
- */
159
- // ValidationErrorLocInner,
160
-
161
- /**
162
- * The VeriffSessionRequest model constructor.
163
- * @property {module:model/VeriffSessionRequest}
164
- */
165
- VeriffSessionRequest,
166
-
167
- /**
168
- * The VerifyRequest model constructor.
169
- * @property {module:model/VerifyRequest}
170
- */
171
- VerifyRequest,
172
-
173
- /**
174
- * The BlockingApi service constructor.
175
- * @property {module:api/BlockingApi}
176
- */
177
- BlockingApi,
178
-
179
- /**
180
- * The CallsApi service constructor.
181
- * @property {module:api/CallsApi}
182
- */
183
- CallsApi,
184
-
185
- /**
186
- * The DefaultApi service constructor.
187
- * @property {module:api/DefaultApi}
188
- */
189
- DefaultApi,
190
-
191
- /**
192
- * The LinksApi service constructor.
193
- * @property {module:api/LinksApi}
194
- */
195
- LinksApi,
196
-
197
- /**
198
- * The SdkApi service constructor.
199
- * @property {module:api/SdkApi}
200
- */
201
- SdkApi,
202
-
203
- /**
204
- * The SecureLinksApi service constructor.
205
- * @property {module:api/SecureLinksApi}
206
- */
207
- SecureLinksApi,
208
-
209
- /**
210
- * The StirApi service constructor.
211
- * @property {module:api/StirApi}
212
- */
213
- StirApi,
214
-
215
- /**
216
- * The TwilioApi service constructor.
217
- * @property {module:api/TwilioApi}
218
- */
219
- TwilioApi,
220
-
221
- /**
222
- * The UsersApi service constructor.
223
- * @property {module:api/UsersApi}
224
- */
225
- UsersApi,
226
-
227
- /**
228
- * The VeriffApi service constructor.
229
- * @property {module:api/VeriffApi}
230
- */
231
- VeriffApi,
232
-
233
- /**
234
- * The WellKnownApi service constructor.
235
- * @property {module:api/WellKnownApi}
236
- */
237
- WellKnownApi,
238
-
239
- /**
240
- * The ZoomApi service constructor.
241
- * @property {module:api/ZoomApi}
242
- */
243
- ZoomApi
244
- };
@@ -1,211 +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
- import ApiClient from '../ApiClient';
15
- // import Certainty from './Certainty';
16
-
17
- /**
18
- * The ApiControllersPslStirCallRequest model module.
19
- * @module model/ApiControllersPslStirCallRequest
20
- * @version 0.1.0
21
- */
22
- class ApiControllersPslStirCallRequest {
23
- /**
24
- * Constructs a new <code>ApiControllersPslStirCallRequest</code>.
25
- * Model for incoming call start requests.
26
- * @alias module:model/ApiControllersPslStirCallRequest
27
- * @param callerName {String}
28
- * @param callerNumber {String}
29
- * @param recipientNumber {String}
30
- * @param certainty {module:model/Certainty}
31
- */
32
- constructor(callerName, callerNumber, recipientNumber, certainty) {
33
-
34
- ApiControllersPslStirCallRequest.initialize(this, callerName, callerNumber, recipientNumber, certainty);
35
- }
36
-
37
- /**
38
- * Initializes the fields of this object.
39
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
40
- * Only for internal use.
41
- */
42
- static initialize(obj, callerName, callerNumber, recipientNumber, certainty) {
43
- obj['caller_name'] = callerName;
44
- obj['caller_number'] = callerNumber;
45
- obj['recipient_number'] = recipientNumber;
46
- obj['certainty'] = certainty;
47
- }
48
-
49
- /**
50
- * Constructs a <code>ApiControllersPslStirCallRequest</code> from a plain JavaScript object, optionally creating a new instance.
51
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
52
- * @param {Object} data The plain JavaScript object bearing properties of interest.
53
- * @param {module:model/ApiControllersPslStirCallRequest} obj Optional instance to populate.
54
- * @return {module:model/ApiControllersPslStirCallRequest} The populated <code>ApiControllersPslStirCallRequest</code> instance.
55
- */
56
- static constructFromObject(data, obj) {
57
- if (data) {
58
- obj = obj || new ApiControllersPslStirCallRequest();
59
-
60
- if (data.hasOwnProperty('caller_name')) {
61
- obj['caller_name'] = ApiClient.convertToType(data['caller_name'], 'String');
62
- }
63
- if (data.hasOwnProperty('caller_number')) {
64
- obj['caller_number'] = ApiClient.convertToType(data['caller_number'], 'String');
65
- }
66
- if (data.hasOwnProperty('recipient_number')) {
67
- obj['recipient_number'] = ApiClient.convertToType(data['recipient_number'], 'String');
68
- }
69
- if (data.hasOwnProperty('certainty')) {
70
- obj['certainty'] = Certainty.constructFromObject(data['certainty']);
71
- }
72
- if (data.hasOwnProperty('e2ee_status')) {
73
- obj['e2ee_status'] = ApiClient.convertToType(data['e2ee_status'], 'String');
74
- }
75
- if (data.hasOwnProperty('verified_via')) {
76
- obj['verified_via'] = ApiClient.convertToType(data['verified_via'], 'String');
77
- }
78
- if (data.hasOwnProperty('verification_time')) {
79
- obj['verification_time'] = ApiClient.convertToType(data['verification_time'], 'String');
80
- }
81
- if (data.hasOwnProperty('last_call')) {
82
- obj['last_call'] = ApiClient.convertToType(data['last_call'], 'String');
83
- }
84
- if (data.hasOwnProperty('security_grade')) {
85
- obj['security_grade'] = ApiClient.convertToType(data['security_grade'], 'String');
86
- }
87
- if (data.hasOwnProperty('security_score')) {
88
- obj['security_score'] = ApiClient.convertToType(data['security_score'], 'String');
89
- }
90
- }
91
- return obj;
92
- }
93
-
94
- /**
95
- * Validates the JSON data with respect to <code>ApiControllersPslStirCallRequest</code>.
96
- * @param {Object} data The plain JavaScript object bearing properties of interest.
97
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ApiControllersPslStirCallRequest</code>.
98
- */
99
- static validateJSON(data) {
100
- // check to make sure all required properties are present in the JSON string
101
- for (const property of ApiControllersPslStirCallRequest.RequiredProperties) {
102
- if (!data.hasOwnProperty(property)) {
103
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
104
- }
105
- }
106
- // ensure the json data is a string
107
- if (data['caller_name'] && !(typeof data['caller_name'] === 'string' || data['caller_name'] instanceof String)) {
108
- throw new Error("Expected the field `caller_name` to be a primitive type in the JSON string but got " + data['caller_name']);
109
- }
110
- // ensure the json data is a string
111
- if (data['caller_number'] && !(typeof data['caller_number'] === 'string' || data['caller_number'] instanceof String)) {
112
- throw new Error("Expected the field `caller_number` to be a primitive type in the JSON string but got " + data['caller_number']);
113
- }
114
- // ensure the json data is a string
115
- if (data['recipient_number'] && !(typeof data['recipient_number'] === 'string' || data['recipient_number'] instanceof String)) {
116
- throw new Error("Expected the field `recipient_number` to be a primitive type in the JSON string but got " + data['recipient_number']);
117
- }
118
- // validate the optional field `certainty`
119
- if (data['certainty']) { // data not null
120
- Certainty.validateJSON(data['certainty']);
121
- }
122
- // ensure the json data is a string
123
- if (data['e2ee_status'] && !(typeof data['e2ee_status'] === 'string' || data['e2ee_status'] instanceof String)) {
124
- throw new Error("Expected the field `e2ee_status` to be a primitive type in the JSON string but got " + data['e2ee_status']);
125
- }
126
- // ensure the json data is a string
127
- if (data['verified_via'] && !(typeof data['verified_via'] === 'string' || data['verified_via'] instanceof String)) {
128
- throw new Error("Expected the field `verified_via` to be a primitive type in the JSON string but got " + data['verified_via']);
129
- }
130
- // ensure the json data is a string
131
- if (data['verification_time'] && !(typeof data['verification_time'] === 'string' || data['verification_time'] instanceof String)) {
132
- throw new Error("Expected the field `verification_time` to be a primitive type in the JSON string but got " + data['verification_time']);
133
- }
134
- // ensure the json data is a string
135
- if (data['last_call'] && !(typeof data['last_call'] === 'string' || data['last_call'] instanceof String)) {
136
- throw new Error("Expected the field `last_call` to be a primitive type in the JSON string but got " + data['last_call']);
137
- }
138
- // ensure the json data is a string
139
- if (data['security_grade'] && !(typeof data['security_grade'] === 'string' || data['security_grade'] instanceof String)) {
140
- throw new Error("Expected the field `security_grade` to be a primitive type in the JSON string but got " + data['security_grade']);
141
- }
142
- // ensure the json data is a string
143
- if (data['security_score'] && !(typeof data['security_score'] === 'string' || data['security_score'] instanceof String)) {
144
- throw new Error("Expected the field `security_score` to be a primitive type in the JSON string but got " + data['security_score']);
145
- }
146
-
147
- return true;
148
- }
149
-
150
-
151
- }
152
-
153
- ApiControllersPslStirCallRequest.RequiredProperties = ["caller_name", "caller_number", "recipient_number", "certainty"];
154
-
155
- /**
156
- * @member {String} caller_name
157
- */
158
- ApiControllersPslStirCallRequest.prototype['caller_name'] = undefined;
159
-
160
- /**
161
- * @member {String} caller_number
162
- */
163
- ApiControllersPslStirCallRequest.prototype['caller_number'] = undefined;
164
-
165
- /**
166
- * @member {String} recipient_number
167
- */
168
- ApiControllersPslStirCallRequest.prototype['recipient_number'] = undefined;
169
-
170
- /**
171
- * @member {module:model/Certainty} certainty
172
- */
173
- ApiControllersPslStirCallRequest.prototype['certainty'] = undefined;
174
-
175
- /**
176
- * @member {String} e2ee_status
177
- */
178
- ApiControllersPslStirCallRequest.prototype['e2ee_status'] = undefined;
179
-
180
- /**
181
- * @member {String} verified_via
182
- */
183
- ApiControllersPslStirCallRequest.prototype['verified_via'] = undefined;
184
-
185
- /**
186
- * @member {String} verification_time
187
- */
188
- ApiControllersPslStirCallRequest.prototype['verification_time'] = undefined;
189
-
190
- /**
191
- * @member {String} last_call
192
- */
193
- ApiControllersPslStirCallRequest.prototype['last_call'] = undefined;
194
-
195
- /**
196
- * @member {String} security_grade
197
- */
198
- ApiControllersPslStirCallRequest.prototype['security_grade'] = undefined;
199
-
200
- /**
201
- * @member {String} security_score
202
- */
203
- ApiControllersPslStirCallRequest.prototype['security_score'] = undefined;
204
-
205
-
206
-
207
-
208
-
209
-
210
- export default ApiControllersPslStirCallRequest;
211
-
@@ -1,119 +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
- import ApiClient from '../ApiClient';
15
-
16
- /**
17
- * The ApiModelsApiCallModelsCallRequest model module.
18
- * @module model/ApiModelsApiCallModelsCallRequest
19
- * @version 0.1.0
20
- */
21
- class ApiModelsApiCallModelsCallRequest {
22
- /**
23
- * Constructs a new <code>ApiModelsApiCallModelsCallRequest</code>.
24
- * @alias module:model/ApiModelsApiCallModelsCallRequest
25
- */
26
- constructor() {
27
-
28
- ApiModelsApiCallModelsCallRequest.initialize(this);
29
- }
30
-
31
- /**
32
- * Initializes the fields of this object.
33
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
34
- * Only for internal use.
35
- */
36
- static initialize(obj) {
37
- }
38
-
39
- /**
40
- * Constructs a <code>ApiModelsApiCallModelsCallRequest</code> from a plain JavaScript object, optionally creating a new instance.
41
- * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
42
- * @param {Object} data The plain JavaScript object bearing properties of interest.
43
- * @param {module:model/ApiModelsApiCallModelsCallRequest} obj Optional instance to populate.
44
- * @return {module:model/ApiModelsApiCallModelsCallRequest} The populated <code>ApiModelsApiCallModelsCallRequest</code> instance.
45
- */
46
- static constructFromObject(data, obj) {
47
- if (data) {
48
- obj = obj || new ApiModelsApiCallModelsCallRequest();
49
-
50
- if (data.hasOwnProperty('user_from')) {
51
- obj['user_from'] = ApiClient.convertToType(data['user_from'], 'String');
52
- }
53
- if (data.hasOwnProperty('user_to')) {
54
- obj['user_to'] = ApiClient.convertToType(data['user_to'], 'String');
55
- }
56
- if (data.hasOwnProperty('callUUID')) {
57
- obj['callUUID'] = ApiClient.convertToType(data['callUUID'], 'String');
58
- }
59
- if (data.hasOwnProperty('hasVideo')) {
60
- obj['hasVideo'] = ApiClient.convertToType(data['hasVideo'], 'Boolean');
61
- }
62
- }
63
- return obj;
64
- }
65
-
66
- /**
67
- * Validates the JSON data with respect to <code>ApiModelsApiCallModelsCallRequest</code>.
68
- * @param {Object} data The plain JavaScript object bearing properties of interest.
69
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ApiModelsApiCallModelsCallRequest</code>.
70
- */
71
- static validateJSON(data) {
72
- // ensure the json data is a string
73
- if (data['user_from'] && !(typeof data['user_from'] === 'string' || data['user_from'] instanceof String)) {
74
- throw new Error("Expected the field `user_from` to be a primitive type in the JSON string but got " + data['user_from']);
75
- }
76
- // ensure the json data is a string
77
- if (data['user_to'] && !(typeof data['user_to'] === 'string' || data['user_to'] instanceof String)) {
78
- throw new Error("Expected the field `user_to` to be a primitive type in the JSON string but got " + data['user_to']);
79
- }
80
- // ensure the json data is a string
81
- if (data['callUUID'] && !(typeof data['callUUID'] === 'string' || data['callUUID'] instanceof String)) {
82
- throw new Error("Expected the field `callUUID` to be a primitive type in the JSON string but got " + data['callUUID']);
83
- }
84
-
85
- return true;
86
- }
87
-
88
-
89
- }
90
-
91
-
92
-
93
- /**
94
- * @member {String} user_from
95
- */
96
- ApiModelsApiCallModelsCallRequest.prototype['user_from'] = undefined;
97
-
98
- /**
99
- * @member {String} user_to
100
- */
101
- ApiModelsApiCallModelsCallRequest.prototype['user_to'] = undefined;
102
-
103
- /**
104
- * @member {String} callUUID
105
- */
106
- ApiModelsApiCallModelsCallRequest.prototype['callUUID'] = undefined;
107
-
108
- /**
109
- * @member {Boolean} hasVideo
110
- */
111
- ApiModelsApiCallModelsCallRequest.prototype['hasVideo'] = undefined;
112
-
113
-
114
-
115
-
116
-
117
-
118
- export default ApiModelsApiCallModelsCallRequest;
119
-