@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,94 @@
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 ValidationError from './ValidationError';
16
+
17
+ /**
18
+ * The HTTPValidationError model module.
19
+ * @module model/HTTPValidationError
20
+ * @version 0.1.0
21
+ */
22
+ class HTTPValidationError {
23
+ /**
24
+ * Constructs a new <code>HTTPValidationError</code>.
25
+ * @alias module:model/HTTPValidationError
26
+ */
27
+ constructor() {
28
+
29
+ HTTPValidationError.initialize(this);
30
+ }
31
+
32
+ /**
33
+ * Initializes the fields of this object.
34
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35
+ * Only for internal use.
36
+ */
37
+ static initialize(obj) {
38
+ }
39
+
40
+ /**
41
+ * Constructs a <code>HTTPValidationError</code> from a plain JavaScript object, optionally creating a new instance.
42
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
43
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
44
+ * @param {module:model/HTTPValidationError} obj Optional instance to populate.
45
+ * @return {module:model/HTTPValidationError} The populated <code>HTTPValidationError</code> instance.
46
+ */
47
+ static constructFromObject(data, obj) {
48
+ if (data) {
49
+ obj = obj || new HTTPValidationError();
50
+
51
+ if (data.hasOwnProperty('detail')) {
52
+ obj['detail'] = ApiClient.convertToType(data['detail'], [ValidationError]);
53
+ }
54
+ }
55
+ return obj;
56
+ }
57
+
58
+ /**
59
+ * Validates the JSON data with respect to <code>HTTPValidationError</code>.
60
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
61
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>HTTPValidationError</code>.
62
+ */
63
+ static validateJSON(data) {
64
+ if (data['detail']) { // data not null
65
+ // ensure the json data is an array
66
+ if (!Array.isArray(data['detail'])) {
67
+ throw new Error("Expected the field `detail` to be an array in the JSON data but got " + data['detail']);
68
+ }
69
+ // validate the optional field `detail` (array)
70
+ for (const item of data['detail']) {
71
+ ValidationError.validateJSON(item);
72
+ };
73
+ }
74
+
75
+ return true;
76
+ }
77
+
78
+
79
+ }
80
+
81
+
82
+
83
+ /**
84
+ * @member {Array.<module:model/ValidationError>} detail
85
+ */
86
+ HTTPValidationError.prototype['detail'] = undefined;
87
+
88
+
89
+
90
+
91
+
92
+
93
+ export default HTTPValidationError;
94
+
@@ -0,0 +1,109 @@
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 InviteRequestModel model module.
18
+ * @module model/InviteRequestModel
19
+ * @version 0.1.0
20
+ */
21
+ class InviteRequestModel {
22
+ /**
23
+ * Constructs a new <code>InviteRequestModel</code>.
24
+ * @alias module:model/InviteRequestModel
25
+ * @param polyUserId {String}
26
+ * @param phoneNumber {String}
27
+ */
28
+ constructor(polyUserId, phoneNumber) {
29
+
30
+ InviteRequestModel.initialize(this, polyUserId, phoneNumber);
31
+ }
32
+
33
+ /**
34
+ * Initializes the fields of this object.
35
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
36
+ * Only for internal use.
37
+ */
38
+ static initialize(obj, polyUserId, phoneNumber) {
39
+ obj['poly_user_id'] = polyUserId;
40
+ obj['phone_number'] = phoneNumber;
41
+ }
42
+
43
+ /**
44
+ * Constructs a <code>InviteRequestModel</code> from a plain JavaScript object, optionally creating a new instance.
45
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
46
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
47
+ * @param {module:model/InviteRequestModel} obj Optional instance to populate.
48
+ * @return {module:model/InviteRequestModel} The populated <code>InviteRequestModel</code> instance.
49
+ */
50
+ static constructFromObject(data, obj) {
51
+ if (data) {
52
+ obj = obj || new InviteRequestModel();
53
+
54
+ if (data.hasOwnProperty('poly_user_id')) {
55
+ obj['poly_user_id'] = ApiClient.convertToType(data['poly_user_id'], 'String');
56
+ }
57
+ if (data.hasOwnProperty('phone_number')) {
58
+ obj['phone_number'] = ApiClient.convertToType(data['phone_number'], 'String');
59
+ }
60
+ }
61
+ return obj;
62
+ }
63
+
64
+ /**
65
+ * Validates the JSON data with respect to <code>InviteRequestModel</code>.
66
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
67
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>InviteRequestModel</code>.
68
+ */
69
+ static validateJSON(data) {
70
+ // check to make sure all required properties are present in the JSON string
71
+ for (const property of InviteRequestModel.RequiredProperties) {
72
+ if (!data.hasOwnProperty(property)) {
73
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
74
+ }
75
+ }
76
+ // ensure the json data is a string
77
+ if (data['poly_user_id'] && !(typeof data['poly_user_id'] === 'string' || data['poly_user_id'] instanceof String)) {
78
+ throw new Error("Expected the field `poly_user_id` to be a primitive type in the JSON string but got " + data['poly_user_id']);
79
+ }
80
+ // ensure the json data is a string
81
+ if (data['phone_number'] && !(typeof data['phone_number'] === 'string' || data['phone_number'] instanceof String)) {
82
+ throw new Error("Expected the field `phone_number` to be a primitive type in the JSON string but got " + data['phone_number']);
83
+ }
84
+
85
+ return true;
86
+ }
87
+
88
+
89
+ }
90
+
91
+ InviteRequestModel.RequiredProperties = ["poly_user_id", "phone_number"];
92
+
93
+ /**
94
+ * @member {String} poly_user_id
95
+ */
96
+ InviteRequestModel.prototype['poly_user_id'] = undefined;
97
+
98
+ /**
99
+ * @member {String} phone_number
100
+ */
101
+ InviteRequestModel.prototype['phone_number'] = undefined;
102
+
103
+
104
+
105
+
106
+
107
+
108
+ export default InviteRequestModel;
109
+
@@ -0,0 +1,113 @@
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 JWTRequest model module.
18
+ * @module model/JWTRequest
19
+ * @version 0.1.0
20
+ */
21
+ class JWTRequest {
22
+ /**
23
+ * Constructs a new <code>JWTRequest</code>.
24
+ * @alias module:model/JWTRequest
25
+ * @param meetingNumber {String}
26
+ * @param role {Number}
27
+ */
28
+ constructor(meetingNumber, role) {
29
+
30
+ JWTRequest.initialize(this, meetingNumber, role);
31
+ }
32
+
33
+ /**
34
+ * Initializes the fields of this object.
35
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
36
+ * Only for internal use.
37
+ */
38
+ static initialize(obj, meetingNumber, role) {
39
+ obj['meetingNumber'] = meetingNumber;
40
+ obj['role'] = role;
41
+ }
42
+
43
+ /**
44
+ * Constructs a <code>JWTRequest</code> from a plain JavaScript object, optionally creating a new instance.
45
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
46
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
47
+ * @param {module:model/JWTRequest} obj Optional instance to populate.
48
+ * @return {module:model/JWTRequest} The populated <code>JWTRequest</code> instance.
49
+ */
50
+ static constructFromObject(data, obj) {
51
+ if (data) {
52
+ obj = obj || new JWTRequest();
53
+
54
+ if (data.hasOwnProperty('meetingNumber')) {
55
+ obj['meetingNumber'] = ApiClient.convertToType(data['meetingNumber'], 'String');
56
+ }
57
+ if (data.hasOwnProperty('role')) {
58
+ obj['role'] = ApiClient.convertToType(data['role'], 'Number');
59
+ }
60
+ if (data.hasOwnProperty('expirationSeconds')) {
61
+ obj['expirationSeconds'] = ApiClient.convertToType(data['expirationSeconds'], 'Number');
62
+ }
63
+ }
64
+ return obj;
65
+ }
66
+
67
+ /**
68
+ * Validates the JSON data with respect to <code>JWTRequest</code>.
69
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
70
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>JWTRequest</code>.
71
+ */
72
+ static validateJSON(data) {
73
+ // check to make sure all required properties are present in the JSON string
74
+ for (const property of JWTRequest.RequiredProperties) {
75
+ if (!data.hasOwnProperty(property)) {
76
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
77
+ }
78
+ }
79
+ // ensure the json data is a string
80
+ if (data['meetingNumber'] && !(typeof data['meetingNumber'] === 'string' || data['meetingNumber'] instanceof String)) {
81
+ throw new Error("Expected the field `meetingNumber` to be a primitive type in the JSON string but got " + data['meetingNumber']);
82
+ }
83
+
84
+ return true;
85
+ }
86
+
87
+
88
+ }
89
+
90
+ JWTRequest.RequiredProperties = ["meetingNumber", "role"];
91
+
92
+ /**
93
+ * @member {String} meetingNumber
94
+ */
95
+ JWTRequest.prototype['meetingNumber'] = undefined;
96
+
97
+ /**
98
+ * @member {Number} role
99
+ */
100
+ JWTRequest.prototype['role'] = undefined;
101
+
102
+ /**
103
+ * @member {Number} expirationSeconds
104
+ */
105
+ JWTRequest.prototype['expirationSeconds'] = undefined;
106
+
107
+
108
+
109
+
110
+
111
+
112
+ export default JWTRequest;
113
+
@@ -0,0 +1,107 @@
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 NumberVerification model module.
18
+ * @module model/NumberVerification
19
+ * @version 0.1.0
20
+ */
21
+ class NumberVerification {
22
+ /**
23
+ * Constructs a new <code>NumberVerification</code>.
24
+ * @alias module:model/NumberVerification
25
+ * @param phoneNumber {String}
26
+ */
27
+ constructor(phoneNumber) {
28
+
29
+ NumberVerification.initialize(this, phoneNumber);
30
+ }
31
+
32
+ /**
33
+ * Initializes the fields of this object.
34
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35
+ * Only for internal use.
36
+ */
37
+ static initialize(obj, phoneNumber) {
38
+ obj['phone_number'] = phoneNumber;
39
+ }
40
+
41
+ /**
42
+ * Constructs a <code>NumberVerification</code> from a plain JavaScript object, optionally creating a new instance.
43
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
44
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
45
+ * @param {module:model/NumberVerification} obj Optional instance to populate.
46
+ * @return {module:model/NumberVerification} The populated <code>NumberVerification</code> instance.
47
+ */
48
+ static constructFromObject(data, obj) {
49
+ if (data) {
50
+ obj = obj || new NumberVerification();
51
+
52
+ if (data.hasOwnProperty('phone_number')) {
53
+ obj['phone_number'] = ApiClient.convertToType(data['phone_number'], 'String');
54
+ }
55
+ if (data.hasOwnProperty('verification_code')) {
56
+ obj['verification_code'] = ApiClient.convertToType(data['verification_code'], 'String');
57
+ }
58
+ }
59
+ return obj;
60
+ }
61
+
62
+ /**
63
+ * Validates the JSON data with respect to <code>NumberVerification</code>.
64
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
65
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>NumberVerification</code>.
66
+ */
67
+ static validateJSON(data) {
68
+ // check to make sure all required properties are present in the JSON string
69
+ for (const property of NumberVerification.RequiredProperties) {
70
+ if (!data.hasOwnProperty(property)) {
71
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
72
+ }
73
+ }
74
+ // ensure the json data is a string
75
+ if (data['phone_number'] && !(typeof data['phone_number'] === 'string' || data['phone_number'] instanceof String)) {
76
+ throw new Error("Expected the field `phone_number` to be a primitive type in the JSON string but got " + data['phone_number']);
77
+ }
78
+ // ensure the json data is a string
79
+ if (data['verification_code'] && !(typeof data['verification_code'] === 'string' || data['verification_code'] instanceof String)) {
80
+ throw new Error("Expected the field `verification_code` to be a primitive type in the JSON string but got " + data['verification_code']);
81
+ }
82
+
83
+ return true;
84
+ }
85
+
86
+
87
+ }
88
+
89
+ NumberVerification.RequiredProperties = ["phone_number"];
90
+
91
+ /**
92
+ * @member {String} phone_number
93
+ */
94
+ NumberVerification.prototype['phone_number'] = undefined;
95
+
96
+ /**
97
+ * @member {String} verification_code
98
+ */
99
+ NumberVerification.prototype['verification_code'] = undefined;
100
+
101
+
102
+
103
+
104
+
105
+
106
+ export default NumberVerification;
107
+
@@ -0,0 +1,95 @@
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 StartAttestationRequest model module.
18
+ * @module model/StartAttestationRequest
19
+ * @version 0.1.0
20
+ */
21
+ class StartAttestationRequest {
22
+ /**
23
+ * Constructs a new <code>StartAttestationRequest</code>.
24
+ * @alias module:model/StartAttestationRequest
25
+ * @param keyId {String}
26
+ */
27
+ constructor(keyId) {
28
+
29
+ StartAttestationRequest.initialize(this, keyId);
30
+ }
31
+
32
+ /**
33
+ * Initializes the fields of this object.
34
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35
+ * Only for internal use.
36
+ */
37
+ static initialize(obj, keyId) {
38
+ obj['keyId'] = keyId;
39
+ }
40
+
41
+ /**
42
+ * Constructs a <code>StartAttestationRequest</code> from a plain JavaScript object, optionally creating a new instance.
43
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
44
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
45
+ * @param {module:model/StartAttestationRequest} obj Optional instance to populate.
46
+ * @return {module:model/StartAttestationRequest} The populated <code>StartAttestationRequest</code> instance.
47
+ */
48
+ static constructFromObject(data, obj) {
49
+ if (data) {
50
+ obj = obj || new StartAttestationRequest();
51
+
52
+ if (data.hasOwnProperty('keyId')) {
53
+ obj['keyId'] = ApiClient.convertToType(data['keyId'], 'String');
54
+ }
55
+ }
56
+ return obj;
57
+ }
58
+
59
+ /**
60
+ * Validates the JSON data with respect to <code>StartAttestationRequest</code>.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>StartAttestationRequest</code>.
63
+ */
64
+ static validateJSON(data) {
65
+ // check to make sure all required properties are present in the JSON string
66
+ for (const property of StartAttestationRequest.RequiredProperties) {
67
+ if (!data.hasOwnProperty(property)) {
68
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
69
+ }
70
+ }
71
+ // ensure the json data is a string
72
+ if (data['keyId'] && !(typeof data['keyId'] === 'string' || data['keyId'] instanceof String)) {
73
+ throw new Error("Expected the field `keyId` to be a primitive type in the JSON string but got " + data['keyId']);
74
+ }
75
+
76
+ return true;
77
+ }
78
+
79
+
80
+ }
81
+
82
+ StartAttestationRequest.RequiredProperties = ["keyId"];
83
+
84
+ /**
85
+ * @member {String} keyId
86
+ */
87
+ StartAttestationRequest.prototype['keyId'] = undefined;
88
+
89
+
90
+
91
+
92
+
93
+
94
+ export default StartAttestationRequest;
95
+
@@ -0,0 +1,95 @@
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 StartMeetingRequest model module.
18
+ * @module model/StartMeetingRequest
19
+ * @version 0.1.0
20
+ */
21
+ class StartMeetingRequest {
22
+ /**
23
+ * Constructs a new <code>StartMeetingRequest</code>.
24
+ * @alias module:model/StartMeetingRequest
25
+ * @param jwtBlob {String}
26
+ */
27
+ constructor(jwtBlob) {
28
+
29
+ StartMeetingRequest.initialize(this, jwtBlob);
30
+ }
31
+
32
+ /**
33
+ * Initializes the fields of this object.
34
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
35
+ * Only for internal use.
36
+ */
37
+ static initialize(obj, jwtBlob) {
38
+ obj['jwtBlob'] = jwtBlob;
39
+ }
40
+
41
+ /**
42
+ * Constructs a <code>StartMeetingRequest</code> from a plain JavaScript object, optionally creating a new instance.
43
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
44
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
45
+ * @param {module:model/StartMeetingRequest} obj Optional instance to populate.
46
+ * @return {module:model/StartMeetingRequest} The populated <code>StartMeetingRequest</code> instance.
47
+ */
48
+ static constructFromObject(data, obj) {
49
+ if (data) {
50
+ obj = obj || new StartMeetingRequest();
51
+
52
+ if (data.hasOwnProperty('jwtBlob')) {
53
+ obj['jwtBlob'] = ApiClient.convertToType(data['jwtBlob'], 'String');
54
+ }
55
+ }
56
+ return obj;
57
+ }
58
+
59
+ /**
60
+ * Validates the JSON data with respect to <code>StartMeetingRequest</code>.
61
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
62
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>StartMeetingRequest</code>.
63
+ */
64
+ static validateJSON(data) {
65
+ // check to make sure all required properties are present in the JSON string
66
+ for (const property of StartMeetingRequest.RequiredProperties) {
67
+ if (!data.hasOwnProperty(property)) {
68
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
69
+ }
70
+ }
71
+ // ensure the json data is a string
72
+ if (data['jwtBlob'] && !(typeof data['jwtBlob'] === 'string' || data['jwtBlob'] instanceof String)) {
73
+ throw new Error("Expected the field `jwtBlob` to be a primitive type in the JSON string but got " + data['jwtBlob']);
74
+ }
75
+
76
+ return true;
77
+ }
78
+
79
+
80
+ }
81
+
82
+ StartMeetingRequest.RequiredProperties = ["jwtBlob"];
83
+
84
+ /**
85
+ * @member {String} jwtBlob
86
+ */
87
+ StartMeetingRequest.prototype['jwtBlob'] = undefined;
88
+
89
+
90
+
91
+
92
+
93
+
94
+ export default StartMeetingRequest;
95
+