@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.
- package/dist/sdk.js +11630 -0
- package/package.json +33 -0
- package/scripts/regenerate-client.sh +55 -0
- package/src/PolyguardClient.js +25 -0
- package/src/PolyguardWebsocketClientImpl.js +190 -0
- package/src/generated/.babelrc +33 -0
- package/src/generated/.openapi-generator/FILES +57 -0
- package/src/generated/.openapi-generator/VERSION +1 -0
- package/src/generated/.openapi-generator-ignore +23 -0
- package/src/generated/.travis.yml +5 -0
- package/src/generated/README.md +220 -0
- package/src/generated/docs/ApiControllersPslStirCallRequest.md +18 -0
- package/src/generated/docs/ApiModelsApiCallModelsCallRequest.md +12 -0
- package/src/generated/docs/AppleApi.md +88 -0
- package/src/generated/docs/AuthApi.md +1464 -0
- package/src/generated/docs/BlockingApi.md +208 -0
- package/src/generated/docs/CallsApi.md +140 -0
- package/src/generated/docs/Certainty.md +8 -0
- package/src/generated/docs/CreateLinkRequest.md +12 -0
- package/src/generated/docs/DefaultApi.md +88 -0
- package/src/generated/docs/HTTPValidationError.md +9 -0
- package/src/generated/docs/InviteRequestModel.md +10 -0
- package/src/generated/docs/JWTRequest.md +11 -0
- package/src/generated/docs/NumberVerification.md +10 -0
- package/src/generated/docs/StartAttestationRequest.md +9 -0
- package/src/generated/docs/StartMeetingRequest.md +9 -0
- package/src/generated/docs/StirApi.md +52 -0
- package/src/generated/docs/TwilioApi.md +138 -0
- package/src/generated/docs/UsersApi.md +362 -0
- package/src/generated/docs/ValidationError.md +11 -0
- package/src/generated/docs/ValidationErrorLocInner.md +8 -0
- package/src/generated/docs/VeriffApi.md +188 -0
- package/src/generated/docs/VeriffSessionRequest.md +10 -0
- package/src/generated/docs/VerifyRequest.md +10 -0
- package/src/generated/docs/ZoomApi.md +744 -0
- package/src/generated/git_push.sh +57 -0
- package/src/generated/mocha.opts +1 -0
- package/src/generated/package.json +46 -0
- package/src/generated/src/ApiClient.js +693 -0
- package/src/generated/src/api/AppleApi.js +109 -0
- package/src/generated/src/api/AuthApi.js +1512 -0
- package/src/generated/src/api/BlockingApi.js +217 -0
- package/src/generated/src/api/CallsApi.js +164 -0
- package/src/generated/src/api/DefaultApi.js +109 -0
- package/src/generated/src/api/StirApi.js +80 -0
- package/src/generated/src/api/TwilioApi.js +158 -0
- package/src/generated/src/api/UsersApi.js +375 -0
- package/src/generated/src/api/VeriffApi.js +209 -0
- package/src/generated/src/api/ZoomApi.js +715 -0
- package/src/generated/src/index.js +223 -0
- package/src/generated/src/model/ApiControllersPslStirCallRequest.js +211 -0
- package/src/generated/src/model/ApiModelsApiCallModelsCallRequest.js +119 -0
- package/src/generated/src/model/CreateLinkRequest.js +131 -0
- package/src/generated/src/model/HTTPValidationError.js +94 -0
- package/src/generated/src/model/InviteRequestModel.js +109 -0
- package/src/generated/src/model/JWTRequest.js +113 -0
- package/src/generated/src/model/NumberVerification.js +107 -0
- package/src/generated/src/model/StartAttestationRequest.js +95 -0
- package/src/generated/src/model/StartMeetingRequest.js +95 -0
- package/src/generated/src/model/ValidationError.js +130 -0
- package/src/generated/src/model/VeriffSessionRequest.js +107 -0
- package/src/generated/src/model/VerifyRequest.js +109 -0
- package/src/generated/test/api/AppleApi.spec.js +73 -0
- package/src/generated/test/api/AuthApi.spec.js +353 -0
- package/src/generated/test/api/BlockingApi.spec.js +103 -0
- package/src/generated/test/api/CallsApi.spec.js +83 -0
- package/src/generated/test/api/DefaultApi.spec.js +73 -0
- package/src/generated/test/api/StirApi.spec.js +63 -0
- package/src/generated/test/api/TwilioApi.spec.js +83 -0
- package/src/generated/test/api/UsersApi.spec.js +133 -0
- package/src/generated/test/api/VeriffApi.spec.js +93 -0
- package/src/generated/test/api/ZoomApi.spec.js +213 -0
- package/src/generated/test/model/ApiControllersPslStirCallRequest.spec.js +119 -0
- package/src/generated/test/model/ApiModelsApiCallModelsCallRequest.spec.js +83 -0
- package/src/generated/test/model/Certainty.spec.js +59 -0
- package/src/generated/test/model/CreateLinkRequest.spec.js +83 -0
- package/src/generated/test/model/HTTPValidationError.spec.js +65 -0
- package/src/generated/test/model/InviteRequestModel.spec.js +71 -0
- package/src/generated/test/model/JWTRequest.spec.js +77 -0
- package/src/generated/test/model/NumberVerification.spec.js +71 -0
- package/src/generated/test/model/StartAttestationRequest.spec.js +65 -0
- package/src/generated/test/model/StartMeetingRequest.spec.js +65 -0
- package/src/generated/test/model/ValidationError.spec.js +77 -0
- package/src/generated/test/model/ValidationErrorLocInner.spec.js +59 -0
- package/src/generated/test/model/VeriffSessionRequest.spec.js +71 -0
- package/src/generated/test/model/VerifyRequest.spec.js +71 -0
- package/src/index.js +20 -0
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
(function(root, factory) {
|
|
15
|
+
if (typeof define === 'function' && define.amd) {
|
|
16
|
+
// AMD.
|
|
17
|
+
define(['expect.js', process.cwd()+'/src/index'], factory);
|
|
18
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
19
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
20
|
+
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
|
21
|
+
} else {
|
|
22
|
+
// Browser globals (root is window)
|
|
23
|
+
factory(root.expect, root.FastApi);
|
|
24
|
+
}
|
|
25
|
+
}(this, function(expect, FastApi) {
|
|
26
|
+
'use strict';
|
|
27
|
+
|
|
28
|
+
var instance;
|
|
29
|
+
|
|
30
|
+
beforeEach(function() {
|
|
31
|
+
instance = new FastApi.ValidationError();
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
var getProperty = function(object, getter, property) {
|
|
35
|
+
// Use getter method if present; otherwise, get the property directly.
|
|
36
|
+
if (typeof object[getter] === 'function')
|
|
37
|
+
return object[getter]();
|
|
38
|
+
else
|
|
39
|
+
return object[property];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var setProperty = function(object, setter, property, value) {
|
|
43
|
+
// Use setter method if present; otherwise, set the property directly.
|
|
44
|
+
if (typeof object[setter] === 'function')
|
|
45
|
+
object[setter](value);
|
|
46
|
+
else
|
|
47
|
+
object[property] = value;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
describe('ValidationError', function() {
|
|
51
|
+
it('should create an instance of ValidationError', function() {
|
|
52
|
+
// uncomment below and update the code to test ValidationError
|
|
53
|
+
//var instance = new FastApi.ValidationError();
|
|
54
|
+
//expect(instance).to.be.a(FastApi.ValidationError);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('should have the property loc (base name: "loc")', function() {
|
|
58
|
+
// uncomment below and update the code to test the property loc
|
|
59
|
+
//var instance = new FastApi.ValidationError();
|
|
60
|
+
//expect(instance).to.be();
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('should have the property msg (base name: "msg")', function() {
|
|
64
|
+
// uncomment below and update the code to test the property msg
|
|
65
|
+
//var instance = new FastApi.ValidationError();
|
|
66
|
+
//expect(instance).to.be();
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it('should have the property type (base name: "type")', function() {
|
|
70
|
+
// uncomment below and update the code to test the property type
|
|
71
|
+
//var instance = new FastApi.ValidationError();
|
|
72
|
+
//expect(instance).to.be();
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
}));
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
(function(root, factory) {
|
|
15
|
+
if (typeof define === 'function' && define.amd) {
|
|
16
|
+
// AMD.
|
|
17
|
+
define(['expect.js', process.cwd()+'/src/index'], factory);
|
|
18
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
19
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
20
|
+
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
|
21
|
+
} else {
|
|
22
|
+
// Browser globals (root is window)
|
|
23
|
+
factory(root.expect, root.FastApi);
|
|
24
|
+
}
|
|
25
|
+
}(this, function(expect, FastApi) {
|
|
26
|
+
'use strict';
|
|
27
|
+
|
|
28
|
+
var instance;
|
|
29
|
+
|
|
30
|
+
beforeEach(function() {
|
|
31
|
+
instance = new FastApi.ValidationErrorLocInner();
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
var getProperty = function(object, getter, property) {
|
|
35
|
+
// Use getter method if present; otherwise, get the property directly.
|
|
36
|
+
if (typeof object[getter] === 'function')
|
|
37
|
+
return object[getter]();
|
|
38
|
+
else
|
|
39
|
+
return object[property];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var setProperty = function(object, setter, property, value) {
|
|
43
|
+
// Use setter method if present; otherwise, set the property directly.
|
|
44
|
+
if (typeof object[setter] === 'function')
|
|
45
|
+
object[setter](value);
|
|
46
|
+
else
|
|
47
|
+
object[property] = value;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
describe('ValidationErrorLocInner', function() {
|
|
51
|
+
it('should create an instance of ValidationErrorLocInner', function() {
|
|
52
|
+
// uncomment below and update the code to test ValidationErrorLocInner
|
|
53
|
+
//var instance = new FastApi.ValidationErrorLocInner();
|
|
54
|
+
//expect(instance).to.be.a(FastApi.ValidationErrorLocInner);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
}));
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
(function(root, factory) {
|
|
15
|
+
if (typeof define === 'function' && define.amd) {
|
|
16
|
+
// AMD.
|
|
17
|
+
define(['expect.js', process.cwd()+'/src/index'], factory);
|
|
18
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
19
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
20
|
+
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
|
21
|
+
} else {
|
|
22
|
+
// Browser globals (root is window)
|
|
23
|
+
factory(root.expect, root.FastApi);
|
|
24
|
+
}
|
|
25
|
+
}(this, function(expect, FastApi) {
|
|
26
|
+
'use strict';
|
|
27
|
+
|
|
28
|
+
var instance;
|
|
29
|
+
|
|
30
|
+
beforeEach(function() {
|
|
31
|
+
instance = new FastApi.VeriffSessionRequest();
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
var getProperty = function(object, getter, property) {
|
|
35
|
+
// Use getter method if present; otherwise, get the property directly.
|
|
36
|
+
if (typeof object[getter] === 'function')
|
|
37
|
+
return object[getter]();
|
|
38
|
+
else
|
|
39
|
+
return object[property];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var setProperty = function(object, setter, property, value) {
|
|
43
|
+
// Use setter method if present; otherwise, set the property directly.
|
|
44
|
+
if (typeof object[setter] === 'function')
|
|
45
|
+
object[setter](value);
|
|
46
|
+
else
|
|
47
|
+
object[property] = value;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
describe('VeriffSessionRequest', function() {
|
|
51
|
+
it('should create an instance of VeriffSessionRequest', function() {
|
|
52
|
+
// uncomment below and update the code to test VeriffSessionRequest
|
|
53
|
+
//var instance = new FastApi.VeriffSessionRequest();
|
|
54
|
+
//expect(instance).to.be.a(FastApi.VeriffSessionRequest);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('should have the property userDocument (base name: "user_document")', function() {
|
|
58
|
+
// uncomment below and update the code to test the property userDocument
|
|
59
|
+
//var instance = new FastApi.VeriffSessionRequest();
|
|
60
|
+
//expect(instance).to.be();
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('should have the property documentType (base name: "document_type")', function() {
|
|
64
|
+
// uncomment below and update the code to test the property documentType
|
|
65
|
+
//var instance = new FastApi.VeriffSessionRequest();
|
|
66
|
+
//expect(instance).to.be();
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
}));
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
(function(root, factory) {
|
|
15
|
+
if (typeof define === 'function' && define.amd) {
|
|
16
|
+
// AMD.
|
|
17
|
+
define(['expect.js', process.cwd()+'/src/index'], factory);
|
|
18
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
19
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
20
|
+
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
|
21
|
+
} else {
|
|
22
|
+
// Browser globals (root is window)
|
|
23
|
+
factory(root.expect, root.FastApi);
|
|
24
|
+
}
|
|
25
|
+
}(this, function(expect, FastApi) {
|
|
26
|
+
'use strict';
|
|
27
|
+
|
|
28
|
+
var instance;
|
|
29
|
+
|
|
30
|
+
beforeEach(function() {
|
|
31
|
+
instance = new FastApi.VerifyRequest();
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
var getProperty = function(object, getter, property) {
|
|
35
|
+
// Use getter method if present; otherwise, get the property directly.
|
|
36
|
+
if (typeof object[getter] === 'function')
|
|
37
|
+
return object[getter]();
|
|
38
|
+
else
|
|
39
|
+
return object[property];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var setProperty = function(object, setter, property, value) {
|
|
43
|
+
// Use setter method if present; otherwise, set the property directly.
|
|
44
|
+
if (typeof object[setter] === 'function')
|
|
45
|
+
object[setter](value);
|
|
46
|
+
else
|
|
47
|
+
object[property] = value;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
describe('VerifyRequest', function() {
|
|
51
|
+
it('should create an instance of VerifyRequest', function() {
|
|
52
|
+
// uncomment below and update the code to test VerifyRequest
|
|
53
|
+
//var instance = new FastApi.VerifyRequest();
|
|
54
|
+
//expect(instance).to.be.a(FastApi.VerifyRequest);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
it('should have the property attestation (base name: "attestation")', function() {
|
|
58
|
+
// uncomment below and update the code to test the property attestation
|
|
59
|
+
//var instance = new FastApi.VerifyRequest();
|
|
60
|
+
//expect(instance).to.be();
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('should have the property keyId (base name: "keyId")', function() {
|
|
64
|
+
// uncomment below and update the code to test the property keyId
|
|
65
|
+
//var instance = new FastApi.VerifyRequest();
|
|
66
|
+
//expect(instance).to.be();
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
}));
|
package/src/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as PolyguardApi from './generated/src/index.js';
|
|
2
|
+
import { PolyguardClient } from './PolyguardClient.js';
|
|
3
|
+
|
|
4
|
+
// UMD export for browser usage
|
|
5
|
+
if (typeof window !== 'undefined') {
|
|
6
|
+
window.Polyguard = window.Polyguard || {};
|
|
7
|
+
window.Polyguard.Client = PolyguardClient;
|
|
8
|
+
Object.assign(window.Polyguard, PolyguardApi);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { PolyguardClient };
|
|
12
|
+
export * from './generated/src/index.js';
|
|
13
|
+
|
|
14
|
+
// Add this for CommonJS compatibility
|
|
15
|
+
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
|
|
16
|
+
module.exports = {
|
|
17
|
+
PolyguardClient,
|
|
18
|
+
...PolyguardApi
|
|
19
|
+
};
|
|
20
|
+
}
|