@polyguard/sdk 1.4.2 → 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.
- package/LICENSE +200 -0
- package/README.md +328 -0
- package/dist/sdk.esm.js +16 -4
- package/dist/sdk.js +16 -4
- package/dist/server.esm.js +83 -0
- package/package.json +14 -3
- package/dist/sdk.global.js +0 -11256
- package/scripts/regenerate-client.sh +0 -59
- package/src/PolyguardClient.js +0 -25
- package/src/PolyguardWebsocketClientImpl.js +0 -183
- package/src/__tests__/PolyguardClient.test.js +0 -65
- package/src/__tests__/PolyguardWebsocketClientImpl.test.js +0 -574
- package/src/__tests__/helpers/fixtures.js +0 -27
- package/src/__tests__/helpers/mockWebSocket.js +0 -66
- package/src/__tests__/sidebar.test.js +0 -289
- package/src/browser.js +0 -9
- package/src/generated/.babelrc +0 -33
- package/src/generated/.openapi-generator/FILES +0 -63
- package/src/generated/.openapi-generator/VERSION +0 -1
- package/src/generated/.openapi-generator-ignore +0 -23
- package/src/generated/.travis.yml +0 -5
- package/src/generated/README.md +0 -211
- package/src/generated/docs/ApiControllersPslStirCallRequest.md +0 -18
- package/src/generated/docs/ApiModelsApiCallModelsCallRequest.md +0 -12
- package/src/generated/docs/AppId.md +0 -8
- package/src/generated/docs/AppleApi.md +0 -88
- package/src/generated/docs/AuthApi.md +0 -1464
- package/src/generated/docs/BlockingApi.md +0 -208
- package/src/generated/docs/CallsApi.md +0 -140
- package/src/generated/docs/Certainty.md +0 -8
- package/src/generated/docs/CreateLinkRequest.md +0 -12
- package/src/generated/docs/DefaultApi.md +0 -128
- package/src/generated/docs/HTTPValidationError.md +0 -9
- package/src/generated/docs/InviteRequestModel.md +0 -10
- package/src/generated/docs/JWTRequest.md +0 -11
- package/src/generated/docs/LinksApi.md +0 -162
- package/src/generated/docs/NumberVerification.md +0 -10
- package/src/generated/docs/SdkApi.md +0 -54
- package/src/generated/docs/SecureLinksApi.md +0 -614
- package/src/generated/docs/StartAttestationRequest.md +0 -9
- package/src/generated/docs/StartMeetingRequest.md +0 -9
- package/src/generated/docs/StirApi.md +0 -52
- package/src/generated/docs/TwilioApi.md +0 -138
- package/src/generated/docs/UsersApi.md +0 -362
- package/src/generated/docs/ValidationError.md +0 -11
- package/src/generated/docs/ValidationErrorLocInner.md +0 -8
- package/src/generated/docs/VeriffApi.md +0 -188
- package/src/generated/docs/VeriffSessionRequest.md +0 -10
- package/src/generated/docs/VerifyRequest.md +0 -10
- package/src/generated/docs/WellKnownApi.md +0 -128
- package/src/generated/docs/ZoomApi.md +0 -848
- package/src/generated/git_push.sh +0 -57
- package/src/generated/mocha.opts +0 -1
- package/src/generated/package.json +0 -46
- package/src/generated/src/ApiClient.js +0 -677
- package/src/generated/src/api/AppleApi.js +0 -109
- package/src/generated/src/api/AuthApi.js +0 -1512
- package/src/generated/src/api/BlockingApi.js +0 -217
- package/src/generated/src/api/CallsApi.js +0 -164
- package/src/generated/src/api/DefaultApi.js +0 -145
- package/src/generated/src/api/LinksApi.js +0 -195
- package/src/generated/src/api/SdkApi.js +0 -81
- package/src/generated/src/api/SecureLinksApi.js +0 -670
- package/src/generated/src/api/StirApi.js +0 -80
- package/src/generated/src/api/TwilioApi.js +0 -158
- package/src/generated/src/api/UsersApi.js +0 -375
- package/src/generated/src/api/VeriffApi.js +0 -209
- package/src/generated/src/api/WellKnownApi.js +0 -145
- package/src/generated/src/api/ZoomApi.js +0 -823
- package/src/generated/src/index.js +0 -244
- package/src/generated/src/model/ApiControllersPslStirCallRequest.js +0 -211
- package/src/generated/src/model/ApiModelsApiCallModelsCallRequest.js +0 -119
- package/src/generated/src/model/CreateLinkRequest.js +0 -131
- package/src/generated/src/model/HTTPValidationError.js +0 -94
- package/src/generated/src/model/InviteRequestModel.js +0 -109
- package/src/generated/src/model/JWTRequest.js +0 -113
- package/src/generated/src/model/NumberVerification.js +0 -107
- package/src/generated/src/model/StartAttestationRequest.js +0 -95
- package/src/generated/src/model/StartMeetingRequest.js +0 -95
- package/src/generated/src/model/ValidationError.js +0 -130
- package/src/generated/src/model/VeriffSessionRequest.js +0 -107
- package/src/generated/src/model/VerifyRequest.js +0 -109
- package/src/generated/test/api/AppleApi.spec.js +0 -73
- package/src/generated/test/api/AuthApi.spec.js +0 -353
- package/src/generated/test/api/BlockingApi.spec.js +0 -103
- package/src/generated/test/api/CallsApi.spec.js +0 -83
- package/src/generated/test/api/DefaultApi.spec.js +0 -73
- package/src/generated/test/api/LinksApi.spec.js +0 -83
- package/src/generated/test/api/SdkApi.spec.js +0 -63
- package/src/generated/test/api/SecureLinksApi.spec.js +0 -143
- package/src/generated/test/api/StirApi.spec.js +0 -63
- package/src/generated/test/api/TwilioApi.spec.js +0 -83
- package/src/generated/test/api/UsersApi.spec.js +0 -133
- package/src/generated/test/api/VeriffApi.spec.js +0 -93
- package/src/generated/test/api/WellKnownApi.spec.js +0 -83
- package/src/generated/test/api/ZoomApi.spec.js +0 -213
- package/src/generated/test/model/ApiControllersPslStirCallRequest.spec.js +0 -119
- package/src/generated/test/model/ApiModelsApiCallModelsCallRequest.spec.js +0 -83
- package/src/generated/test/model/AppId.spec.js +0 -59
- package/src/generated/test/model/Certainty.spec.js +0 -59
- package/src/generated/test/model/CreateLinkRequest.spec.js +0 -83
- package/src/generated/test/model/HTTPValidationError.spec.js +0 -65
- package/src/generated/test/model/InviteRequestModel.spec.js +0 -71
- package/src/generated/test/model/JWTRequest.spec.js +0 -77
- package/src/generated/test/model/NumberVerification.spec.js +0 -71
- package/src/generated/test/model/StartAttestationRequest.spec.js +0 -65
- package/src/generated/test/model/StartMeetingRequest.spec.js +0 -65
- package/src/generated/test/model/ValidationError.spec.js +0 -77
- package/src/generated/test/model/ValidationErrorLocInner.spec.js +0 -59
- package/src/generated/test/model/VeriffSessionRequest.spec.js +0 -71
- package/src/generated/test/model/VerifyRequest.spec.js +0 -71
- package/src/index.js +0 -16
- package/src/messageHandler.js +0 -121
- package/src/ticketService.js +0 -24
- package/src/ui.js +0 -88
- package/vitest.config.js +0 -10
|
@@ -1,80 +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 HTTPValidationError from '../model/HTTPValidationError';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Stir service.
|
|
21
|
-
* @module api/StirApi
|
|
22
|
-
* @version 0.1.0
|
|
23
|
-
*/
|
|
24
|
-
export default class StirApi {
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Constructs a new StirApi.
|
|
28
|
-
* @alias module:api/StirApi
|
|
29
|
-
* @class
|
|
30
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
31
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
32
|
-
*/
|
|
33
|
-
constructor(apiClient) {
|
|
34
|
-
this.apiClient = apiClient || ApiClient.instance;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Callback function to receive the result of the callInitiationStirCallInitiationPost operation.
|
|
40
|
-
* @callback module:api/StirApi~callInitiationStirCallInitiationPostCallback
|
|
41
|
-
* @param {String} error Error message, if any.
|
|
42
|
-
* @param {Object} data The data returned by the service call.
|
|
43
|
-
* @param {String} response The complete HTTP response.
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Call Initiation
|
|
48
|
-
* @param {module:model/ApiControllersPslStirCallRequest} apiControllersPslStirCallRequest
|
|
49
|
-
* @param {module:api/StirApi~callInitiationStirCallInitiationPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
50
|
-
* data is of type: {@link Object}
|
|
51
|
-
*/
|
|
52
|
-
callInitiationStirCallInitiationPost(apiControllersPslStirCallRequest, callback) {
|
|
53
|
-
let postBody = apiControllersPslStirCallRequest;
|
|
54
|
-
// verify the required parameter 'apiControllersPslStirCallRequest' is set
|
|
55
|
-
if (apiControllersPslStirCallRequest === undefined || apiControllersPslStirCallRequest === null) {
|
|
56
|
-
throw new Error("Missing the required parameter 'apiControllersPslStirCallRequest' when calling callInitiationStirCallInitiationPost");
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
let pathParams = {
|
|
60
|
-
};
|
|
61
|
-
let queryParams = {
|
|
62
|
-
};
|
|
63
|
-
let headerParams = {
|
|
64
|
-
};
|
|
65
|
-
let formParams = {
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
let authNames = [];
|
|
69
|
-
let contentTypes = ['application/json'];
|
|
70
|
-
let accepts = ['application/json'];
|
|
71
|
-
let returnType = Object;
|
|
72
|
-
return this.apiClient.callApi(
|
|
73
|
-
'/stir/call_initiation', 'POST',
|
|
74
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
75
|
-
authNames, contentTypes, accepts, returnType, null, callback
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
@@ -1,158 +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
|
-
import NumberVerification from '../model/NumberVerification';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Twilio service.
|
|
21
|
-
* @module api/TwilioApi
|
|
22
|
-
* @version 0.1.0
|
|
23
|
-
*/
|
|
24
|
-
export default class TwilioApi {
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Constructs a new TwilioApi.
|
|
28
|
-
* @alias module:api/TwilioApi
|
|
29
|
-
* @class
|
|
30
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
31
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
32
|
-
*/
|
|
33
|
-
constructor(apiClient) {
|
|
34
|
-
this.apiClient = apiClient || ApiClient.instance;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Callback function to receive the result of the twilioCheckTwilioCheckPost operation.
|
|
40
|
-
* @callback module:api/TwilioApi~twilioCheckTwilioCheckPostCallback
|
|
41
|
-
* @param {String} error Error message, if any.
|
|
42
|
-
* @param {Object} data The data returned by the service call.
|
|
43
|
-
* @param {String} response The complete HTTP response.
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Twilio Check
|
|
48
|
-
* @param {module:model/NumberVerification} numberVerification
|
|
49
|
-
* @param {module:api/TwilioApi~twilioCheckTwilioCheckPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
50
|
-
* data is of type: {@link Object}
|
|
51
|
-
*/
|
|
52
|
-
twilioCheckTwilioCheckPost(numberVerification, callback) {
|
|
53
|
-
let postBody = numberVerification;
|
|
54
|
-
// verify the required parameter 'numberVerification' is set
|
|
55
|
-
if (numberVerification === undefined || numberVerification === null) {
|
|
56
|
-
throw new Error("Missing the required parameter 'numberVerification' when calling twilioCheckTwilioCheckPost");
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
let pathParams = {
|
|
60
|
-
};
|
|
61
|
-
let queryParams = {
|
|
62
|
-
};
|
|
63
|
-
let headerParams = {
|
|
64
|
-
};
|
|
65
|
-
let formParams = {
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
let authNames = [];
|
|
69
|
-
let contentTypes = ['application/json'];
|
|
70
|
-
let accepts = ['application/json'];
|
|
71
|
-
let returnType = Object;
|
|
72
|
-
return this.apiClient.callApi(
|
|
73
|
-
'/twilio/check', 'POST',
|
|
74
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
75
|
-
authNames, contentTypes, accepts, returnType, null, callback
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Callback function to receive the result of the twilioStartTwilioStartPost operation.
|
|
81
|
-
* @callback module:api/TwilioApi~twilioStartTwilioStartPostCallback
|
|
82
|
-
* @param {String} error Error message, if any.
|
|
83
|
-
* @param {Object} data The data returned by the service call.
|
|
84
|
-
* @param {String} response The complete HTTP response.
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Twilio Start
|
|
89
|
-
* @param {module:model/NumberVerification} numberVerification
|
|
90
|
-
* @param {module:api/TwilioApi~twilioStartTwilioStartPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
91
|
-
* data is of type: {@link Object}
|
|
92
|
-
*/
|
|
93
|
-
twilioStartTwilioStartPost(numberVerification, callback) {
|
|
94
|
-
let postBody = numberVerification;
|
|
95
|
-
// verify the required parameter 'numberVerification' is set
|
|
96
|
-
if (numberVerification === undefined || numberVerification === null) {
|
|
97
|
-
throw new Error("Missing the required parameter 'numberVerification' when calling twilioStartTwilioStartPost");
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
let pathParams = {
|
|
101
|
-
};
|
|
102
|
-
let queryParams = {
|
|
103
|
-
};
|
|
104
|
-
let headerParams = {
|
|
105
|
-
};
|
|
106
|
-
let formParams = {
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
let authNames = [];
|
|
110
|
-
let contentTypes = ['application/json'];
|
|
111
|
-
let accepts = ['application/json'];
|
|
112
|
-
let returnType = Object;
|
|
113
|
-
return this.apiClient.callApi(
|
|
114
|
-
'/twilio/start', 'POST',
|
|
115
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
116
|
-
authNames, contentTypes, accepts, returnType, null, callback
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Callback function to receive the result of the twilioWebhookTwilioWebhookPost operation.
|
|
122
|
-
* @callback module:api/TwilioApi~twilioWebhookTwilioWebhookPostCallback
|
|
123
|
-
* @param {String} error Error message, if any.
|
|
124
|
-
* @param {Object} data The data returned by the service call.
|
|
125
|
-
* @param {String} response The complete HTTP response.
|
|
126
|
-
*/
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Twilio Webhook
|
|
130
|
-
* Handle incoming webhook events from Twilio
|
|
131
|
-
* @param {module:api/TwilioApi~twilioWebhookTwilioWebhookPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
132
|
-
* data is of type: {@link Object}
|
|
133
|
-
*/
|
|
134
|
-
twilioWebhookTwilioWebhookPost(callback) {
|
|
135
|
-
let postBody = null;
|
|
136
|
-
|
|
137
|
-
let pathParams = {
|
|
138
|
-
};
|
|
139
|
-
let queryParams = {
|
|
140
|
-
};
|
|
141
|
-
let headerParams = {
|
|
142
|
-
};
|
|
143
|
-
let formParams = {
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
let authNames = [];
|
|
147
|
-
let contentTypes = [];
|
|
148
|
-
let accepts = ['application/json'];
|
|
149
|
-
let returnType = Object;
|
|
150
|
-
return this.apiClient.callApi(
|
|
151
|
-
'/twilio/webhook', 'POST',
|
|
152
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
153
|
-
authNames, contentTypes, accepts, returnType, null, callback
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
@@ -1,375 +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
|
-
import InviteRequestModel from '../model/InviteRequestModel';
|
|
18
|
-
import StartAttestationRequest from '../model/StartAttestationRequest';
|
|
19
|
-
import VerifyRequest from '../model/VerifyRequest';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Users service.
|
|
23
|
-
* @module api/UsersApi
|
|
24
|
-
* @version 0.1.0
|
|
25
|
-
*/
|
|
26
|
-
export default class UsersApi {
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Constructs a new UsersApi.
|
|
30
|
-
* @alias module:api/UsersApi
|
|
31
|
-
* @class
|
|
32
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
33
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
34
|
-
*/
|
|
35
|
-
constructor(apiClient) {
|
|
36
|
-
this.apiClient = apiClient || ApiClient.instance;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Callback function to receive the result of the beginAppAttestBeginAppAttestPost operation.
|
|
42
|
-
* @callback module:api/UsersApi~beginAppAttestBeginAppAttestPostCallback
|
|
43
|
-
* @param {String} error Error message, if any.
|
|
44
|
-
* @param {Object} data The data returned by the service call.
|
|
45
|
-
* @param {String} response The complete HTTP response.
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Begin App Attest
|
|
50
|
-
* @param {module:model/StartAttestationRequest} startAttestationRequest
|
|
51
|
-
* @param {module:api/UsersApi~beginAppAttestBeginAppAttestPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
52
|
-
* data is of type: {@link Object}
|
|
53
|
-
*/
|
|
54
|
-
beginAppAttestBeginAppAttestPost(startAttestationRequest, callback) {
|
|
55
|
-
let postBody = startAttestationRequest;
|
|
56
|
-
// verify the required parameter 'startAttestationRequest' is set
|
|
57
|
-
if (startAttestationRequest === undefined || startAttestationRequest === null) {
|
|
58
|
-
throw new Error("Missing the required parameter 'startAttestationRequest' when calling beginAppAttestBeginAppAttestPost");
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
let pathParams = {
|
|
62
|
-
};
|
|
63
|
-
let queryParams = {
|
|
64
|
-
};
|
|
65
|
-
let headerParams = {
|
|
66
|
-
};
|
|
67
|
-
let formParams = {
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
let authNames = [];
|
|
71
|
-
let contentTypes = ['application/json'];
|
|
72
|
-
let accepts = ['application/json'];
|
|
73
|
-
let returnType = Object;
|
|
74
|
-
return this.apiClient.callApi(
|
|
75
|
-
'/begin_app_attest/', 'POST',
|
|
76
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
77
|
-
authNames, contentTypes, accepts, returnType, null, callback
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Callback function to receive the result of the checkUpdateNeededCheckUpdateNeededPost operation.
|
|
83
|
-
* @callback module:api/UsersApi~checkUpdateNeededCheckUpdateNeededPostCallback
|
|
84
|
-
* @param {String} error Error message, if any.
|
|
85
|
-
* @param {Object} data The data returned by the service call.
|
|
86
|
-
* @param {String} response The complete HTTP response.
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Check Update Needed
|
|
91
|
-
* Check if a user needs to call update_user by finding phones without alerts_device_tokens. Args: user: The user to check session: Database session Returns: Dict containing: - needs_update: bool indicating if update is needed - phone_numbers: list of phone numbers that need alerts_device_tokens
|
|
92
|
-
* @param {String} appattest
|
|
93
|
-
* @param {module:api/UsersApi~checkUpdateNeededCheckUpdateNeededPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
94
|
-
* data is of type: {@link Object}
|
|
95
|
-
*/
|
|
96
|
-
checkUpdateNeededCheckUpdateNeededPost(appattest, callback) {
|
|
97
|
-
let postBody = null;
|
|
98
|
-
// verify the required parameter 'appattest' is set
|
|
99
|
-
if (appattest === undefined || appattest === null) {
|
|
100
|
-
throw new Error("Missing the required parameter 'appattest' when calling checkUpdateNeededCheckUpdateNeededPost");
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
let pathParams = {
|
|
104
|
-
};
|
|
105
|
-
let queryParams = {
|
|
106
|
-
};
|
|
107
|
-
let headerParams = {
|
|
108
|
-
'appattest': appattest
|
|
109
|
-
};
|
|
110
|
-
let formParams = {
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
let authNames = [];
|
|
114
|
-
let contentTypes = [];
|
|
115
|
-
let accepts = ['application/json'];
|
|
116
|
-
let returnType = Object;
|
|
117
|
-
return this.apiClient.callApi(
|
|
118
|
-
'/check_update_needed/', 'POST',
|
|
119
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
120
|
-
authNames, contentTypes, accepts, returnType, null, callback
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Callback function to receive the result of the deleteUserDeleteUserPost operation.
|
|
126
|
-
* @callback module:api/UsersApi~deleteUserDeleteUserPostCallback
|
|
127
|
-
* @param {String} error Error message, if any.
|
|
128
|
-
* @param {Object} data The data returned by the service call.
|
|
129
|
-
* @param {String} response The complete HTTP response.
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Delete User
|
|
134
|
-
* @param {String} appattest
|
|
135
|
-
* @param {module:api/UsersApi~deleteUserDeleteUserPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
136
|
-
* data is of type: {@link Object}
|
|
137
|
-
*/
|
|
138
|
-
deleteUserDeleteUserPost(appattest, callback) {
|
|
139
|
-
let postBody = null;
|
|
140
|
-
// verify the required parameter 'appattest' is set
|
|
141
|
-
if (appattest === undefined || appattest === null) {
|
|
142
|
-
throw new Error("Missing the required parameter 'appattest' when calling deleteUserDeleteUserPost");
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
let pathParams = {
|
|
146
|
-
};
|
|
147
|
-
let queryParams = {
|
|
148
|
-
};
|
|
149
|
-
let headerParams = {
|
|
150
|
-
'appattest': appattest
|
|
151
|
-
};
|
|
152
|
-
let formParams = {
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
let authNames = [];
|
|
156
|
-
let contentTypes = [];
|
|
157
|
-
let accepts = ['application/json'];
|
|
158
|
-
let returnType = Object;
|
|
159
|
-
return this.apiClient.callApi(
|
|
160
|
-
'/delete_user/', 'POST',
|
|
161
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
162
|
-
authNames, contentTypes, accepts, returnType, null, callback
|
|
163
|
-
);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Callback function to receive the result of the fetchRegisteredUsersFetchRegisteredUsersPost operation.
|
|
168
|
-
* @callback module:api/UsersApi~fetchRegisteredUsersFetchRegisteredUsersPostCallback
|
|
169
|
-
* @param {String} error Error message, if any.
|
|
170
|
-
* @param {Array.<Object>} data The data returned by the service call.
|
|
171
|
-
* @param {String} response The complete HTTP response.
|
|
172
|
-
*/
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Fetch Registered Users
|
|
176
|
-
* @param {String} appattest
|
|
177
|
-
* @param {module:api/UsersApi~fetchRegisteredUsersFetchRegisteredUsersPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
178
|
-
* data is of type: {@link Array.<Object>}
|
|
179
|
-
*/
|
|
180
|
-
fetchRegisteredUsersFetchRegisteredUsersPost(appattest, callback) {
|
|
181
|
-
let postBody = null;
|
|
182
|
-
// verify the required parameter 'appattest' is set
|
|
183
|
-
if (appattest === undefined || appattest === null) {
|
|
184
|
-
throw new Error("Missing the required parameter 'appattest' when calling fetchRegisteredUsersFetchRegisteredUsersPost");
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
let pathParams = {
|
|
188
|
-
};
|
|
189
|
-
let queryParams = {
|
|
190
|
-
};
|
|
191
|
-
let headerParams = {
|
|
192
|
-
'appattest': appattest
|
|
193
|
-
};
|
|
194
|
-
let formParams = {
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
let authNames = [];
|
|
198
|
-
let contentTypes = [];
|
|
199
|
-
let accepts = ['application/json'];
|
|
200
|
-
let returnType = [Object];
|
|
201
|
-
return this.apiClient.callApi(
|
|
202
|
-
'/fetch_registered_users/', 'POST',
|
|
203
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
204
|
-
authNames, contentTypes, accepts, returnType, null, callback
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Callback function to receive the result of the inviteUserInviteUserPost operation.
|
|
210
|
-
* @callback module:api/UsersApi~inviteUserInviteUserPostCallback
|
|
211
|
-
* @param {String} error Error message, if any.
|
|
212
|
-
* @param {Object} data The data returned by the service call.
|
|
213
|
-
* @param {String} response The complete HTTP response.
|
|
214
|
-
*/
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Invite User
|
|
218
|
-
* @param {module:model/InviteRequestModel} inviteRequestModel
|
|
219
|
-
* @param {module:api/UsersApi~inviteUserInviteUserPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
220
|
-
* data is of type: {@link Object}
|
|
221
|
-
*/
|
|
222
|
-
inviteUserInviteUserPost(inviteRequestModel, callback) {
|
|
223
|
-
let postBody = inviteRequestModel;
|
|
224
|
-
// verify the required parameter 'inviteRequestModel' is set
|
|
225
|
-
if (inviteRequestModel === undefined || inviteRequestModel === null) {
|
|
226
|
-
throw new Error("Missing the required parameter 'inviteRequestModel' when calling inviteUserInviteUserPost");
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
let pathParams = {
|
|
230
|
-
};
|
|
231
|
-
let queryParams = {
|
|
232
|
-
};
|
|
233
|
-
let headerParams = {
|
|
234
|
-
};
|
|
235
|
-
let formParams = {
|
|
236
|
-
};
|
|
237
|
-
|
|
238
|
-
let authNames = [];
|
|
239
|
-
let contentTypes = ['application/json'];
|
|
240
|
-
let accepts = ['application/json'];
|
|
241
|
-
let returnType = Object;
|
|
242
|
-
return this.apiClient.callApi(
|
|
243
|
-
'/invite_user/', 'POST',
|
|
244
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
245
|
-
authNames, contentTypes, accepts, returnType, null, callback
|
|
246
|
-
);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Callback function to receive the result of the registerUserRegisterUserPost operation.
|
|
251
|
-
* @callback module:api/UsersApi~registerUserRegisterUserPostCallback
|
|
252
|
-
* @param {String} error Error message, if any.
|
|
253
|
-
* @param {Object} data The data returned by the service call.
|
|
254
|
-
* @param {String} response The complete HTTP response.
|
|
255
|
-
*/
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Register User
|
|
259
|
-
* @param {String} appattest
|
|
260
|
-
* @param {module:api/UsersApi~registerUserRegisterUserPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
261
|
-
* data is of type: {@link Object}
|
|
262
|
-
*/
|
|
263
|
-
registerUserRegisterUserPost(appattest, callback) {
|
|
264
|
-
let postBody = null;
|
|
265
|
-
// verify the required parameter 'appattest' is set
|
|
266
|
-
if (appattest === undefined || appattest === null) {
|
|
267
|
-
throw new Error("Missing the required parameter 'appattest' when calling registerUserRegisterUserPost");
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
let pathParams = {
|
|
271
|
-
};
|
|
272
|
-
let queryParams = {
|
|
273
|
-
};
|
|
274
|
-
let headerParams = {
|
|
275
|
-
'appattest': appattest
|
|
276
|
-
};
|
|
277
|
-
let formParams = {
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
let authNames = [];
|
|
281
|
-
let contentTypes = [];
|
|
282
|
-
let accepts = ['application/json'];
|
|
283
|
-
let returnType = Object;
|
|
284
|
-
return this.apiClient.callApi(
|
|
285
|
-
'/register_user/', 'POST',
|
|
286
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
287
|
-
authNames, contentTypes, accepts, returnType, null, callback
|
|
288
|
-
);
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Callback function to receive the result of the updateUserUpdateUserPut operation.
|
|
293
|
-
* @callback module:api/UsersApi~updateUserUpdateUserPutCallback
|
|
294
|
-
* @param {String} error Error message, if any.
|
|
295
|
-
* @param {Object} data The data returned by the service call.
|
|
296
|
-
* @param {String} response The complete HTTP response.
|
|
297
|
-
*/
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Update User
|
|
301
|
-
* @param {String} appattest
|
|
302
|
-
* @param {module:api/UsersApi~updateUserUpdateUserPutCallback} callback The callback function, accepting three arguments: error, data, response
|
|
303
|
-
* data is of type: {@link Object}
|
|
304
|
-
*/
|
|
305
|
-
updateUserUpdateUserPut(appattest, callback) {
|
|
306
|
-
let postBody = null;
|
|
307
|
-
// verify the required parameter 'appattest' is set
|
|
308
|
-
if (appattest === undefined || appattest === null) {
|
|
309
|
-
throw new Error("Missing the required parameter 'appattest' when calling updateUserUpdateUserPut");
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
let pathParams = {
|
|
313
|
-
};
|
|
314
|
-
let queryParams = {
|
|
315
|
-
};
|
|
316
|
-
let headerParams = {
|
|
317
|
-
'appattest': appattest
|
|
318
|
-
};
|
|
319
|
-
let formParams = {
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
let authNames = [];
|
|
323
|
-
let contentTypes = [];
|
|
324
|
-
let accepts = ['application/json'];
|
|
325
|
-
let returnType = Object;
|
|
326
|
-
return this.apiClient.callApi(
|
|
327
|
-
'/update_user/', 'PUT',
|
|
328
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
329
|
-
authNames, contentTypes, accepts, returnType, null, callback
|
|
330
|
-
);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Callback function to receive the result of the verifyAppAttestVerifyAppPost operation.
|
|
335
|
-
* @callback module:api/UsersApi~verifyAppAttestVerifyAppPostCallback
|
|
336
|
-
* @param {String} error Error message, if any.
|
|
337
|
-
* @param {Object} data The data returned by the service call.
|
|
338
|
-
* @param {String} response The complete HTTP response.
|
|
339
|
-
*/
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* Verify App Attest
|
|
343
|
-
* @param {module:model/VerifyRequest} verifyRequest
|
|
344
|
-
* @param {module:api/UsersApi~verifyAppAttestVerifyAppPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
345
|
-
* data is of type: {@link Object}
|
|
346
|
-
*/
|
|
347
|
-
verifyAppAttestVerifyAppPost(verifyRequest, callback) {
|
|
348
|
-
let postBody = verifyRequest;
|
|
349
|
-
// verify the required parameter 'verifyRequest' is set
|
|
350
|
-
if (verifyRequest === undefined || verifyRequest === null) {
|
|
351
|
-
throw new Error("Missing the required parameter 'verifyRequest' when calling verifyAppAttestVerifyAppPost");
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
let pathParams = {
|
|
355
|
-
};
|
|
356
|
-
let queryParams = {
|
|
357
|
-
};
|
|
358
|
-
let headerParams = {
|
|
359
|
-
};
|
|
360
|
-
let formParams = {
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
let authNames = [];
|
|
364
|
-
let contentTypes = ['application/json'];
|
|
365
|
-
let accepts = ['application/json'];
|
|
366
|
-
let returnType = Object;
|
|
367
|
-
return this.apiClient.callApi(
|
|
368
|
-
'/verify_app/', 'POST',
|
|
369
|
-
pathParams, queryParams, headerParams, formParams, postBody,
|
|
370
|
-
authNames, contentTypes, accepts, returnType, null, callback
|
|
371
|
-
);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}
|