@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,217 @@
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
+
17
+ /**
18
+ * Blocking service.
19
+ * @module api/BlockingApi
20
+ * @version 0.1.0
21
+ */
22
+ export default class BlockingApi {
23
+
24
+ /**
25
+ * Constructs a new BlockingApi.
26
+ * @alias module:api/BlockingApi
27
+ * @class
28
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
29
+ * default to {@link module:ApiClient#instance} if unspecified.
30
+ */
31
+ constructor(apiClient) {
32
+ this.apiClient = apiClient || ApiClient.instance;
33
+ }
34
+
35
+
36
+ /**
37
+ * Callback function to receive the result of the ftcDeleteBlockingFtcDelete operation.
38
+ * @callback module:api/BlockingApi~ftcDeleteBlockingFtcDeleteCallback
39
+ * @param {String} error Error message, if any.
40
+ * @param {Object} data The data returned by the service call.
41
+ * @param {String} response The complete HTTP response.
42
+ */
43
+
44
+ /**
45
+ * Ftc Delete
46
+ * @param {module:api/BlockingApi~ftcDeleteBlockingFtcDeleteCallback} callback The callback function, accepting three arguments: error, data, response
47
+ * data is of type: {@link Object}
48
+ */
49
+ ftcDeleteBlockingFtcDelete(callback) {
50
+ let postBody = null;
51
+
52
+ let pathParams = {
53
+ };
54
+ let queryParams = {
55
+ };
56
+ let headerParams = {
57
+ };
58
+ let formParams = {
59
+ };
60
+
61
+ let authNames = [];
62
+ let contentTypes = [];
63
+ let accepts = ['application/json'];
64
+ let returnType = Object;
65
+ return this.apiClient.callApi(
66
+ '/blocking/ftc', 'DELETE',
67
+ pathParams, queryParams, headerParams, formParams, postBody,
68
+ authNames, contentTypes, accepts, returnType, null, callback
69
+ );
70
+ }
71
+
72
+ /**
73
+ * Callback function to receive the result of the ftcPullBlockingFtcpullPost operation.
74
+ * @callback module:api/BlockingApi~ftcPullBlockingFtcpullPostCallback
75
+ * @param {String} error Error message, if any.
76
+ * @param {Object} data The data returned by the service call.
77
+ * @param {String} response The complete HTTP response.
78
+ */
79
+
80
+ /**
81
+ * Ftc Pull
82
+ * @param {module:api/BlockingApi~ftcPullBlockingFtcpullPostCallback} callback The callback function, accepting three arguments: error, data, response
83
+ * data is of type: {@link Object}
84
+ */
85
+ ftcPullBlockingFtcpullPost(callback) {
86
+ let postBody = null;
87
+
88
+ let pathParams = {
89
+ };
90
+ let queryParams = {
91
+ };
92
+ let headerParams = {
93
+ };
94
+ let formParams = {
95
+ };
96
+
97
+ let authNames = [];
98
+ let contentTypes = [];
99
+ let accepts = ['application/json'];
100
+ let returnType = Object;
101
+ return this.apiClient.callApi(
102
+ '/blocking/ftcpull', 'POST',
103
+ pathParams, queryParams, headerParams, formParams, postBody,
104
+ authNames, contentTypes, accepts, returnType, null, callback
105
+ );
106
+ }
107
+
108
+ /**
109
+ * Callback function to receive the result of the fullReportBlockingFullreportGet operation.
110
+ * @callback module:api/BlockingApi~fullReportBlockingFullreportGetCallback
111
+ * @param {String} error Error message, if any.
112
+ * @param {Object} data The data returned by the service call.
113
+ * @param {String} response The complete HTTP response.
114
+ */
115
+
116
+ /**
117
+ * Full Report
118
+ * @param {module:api/BlockingApi~fullReportBlockingFullreportGetCallback} callback The callback function, accepting three arguments: error, data, response
119
+ * data is of type: {@link Object}
120
+ */
121
+ fullReportBlockingFullreportGet(callback) {
122
+ let postBody = null;
123
+
124
+ let pathParams = {
125
+ };
126
+ let queryParams = {
127
+ };
128
+ let headerParams = {
129
+ };
130
+ let formParams = {
131
+ };
132
+
133
+ let authNames = [];
134
+ let contentTypes = [];
135
+ let accepts = ['application/json'];
136
+ let returnType = Object;
137
+ return this.apiClient.callApi(
138
+ '/blocking/fullreport', 'GET',
139
+ pathParams, queryParams, headerParams, formParams, postBody,
140
+ authNames, contentTypes, accepts, returnType, null, callback
141
+ );
142
+ }
143
+
144
+ /**
145
+ * Callback function to receive the result of the fullReportBlockingFullreportPost operation.
146
+ * @callback module:api/BlockingApi~fullReportBlockingFullreportPostCallback
147
+ * @param {String} error Error message, if any.
148
+ * @param {Object} data The data returned by the service call.
149
+ * @param {String} response The complete HTTP response.
150
+ */
151
+
152
+ /**
153
+ * Full Report
154
+ * @param {module:api/BlockingApi~fullReportBlockingFullreportPostCallback} callback The callback function, accepting three arguments: error, data, response
155
+ * data is of type: {@link Object}
156
+ */
157
+ fullReportBlockingFullreportPost(callback) {
158
+ let postBody = null;
159
+
160
+ let pathParams = {
161
+ };
162
+ let queryParams = {
163
+ };
164
+ let headerParams = {
165
+ };
166
+ let formParams = {
167
+ };
168
+
169
+ let authNames = [];
170
+ let contentTypes = [];
171
+ let accepts = ['application/json'];
172
+ let returnType = Object;
173
+ return this.apiClient.callApi(
174
+ '/blocking/fullreport', 'POST',
175
+ pathParams, queryParams, headerParams, formParams, postBody,
176
+ authNames, contentTypes, accepts, returnType, null, callback
177
+ );
178
+ }
179
+
180
+ /**
181
+ * Callback function to receive the result of the fullReportHeadBlockingFullreportHead operation.
182
+ * @callback module:api/BlockingApi~fullReportHeadBlockingFullreportHeadCallback
183
+ * @param {String} error Error message, if any.
184
+ * @param {Object} data The data returned by the service call.
185
+ * @param {String} response The complete HTTP response.
186
+ */
187
+
188
+ /**
189
+ * Full Report Head
190
+ * @param {module:api/BlockingApi~fullReportHeadBlockingFullreportHeadCallback} callback The callback function, accepting three arguments: error, data, response
191
+ * data is of type: {@link Object}
192
+ */
193
+ fullReportHeadBlockingFullreportHead(callback) {
194
+ let postBody = null;
195
+
196
+ let pathParams = {
197
+ };
198
+ let queryParams = {
199
+ };
200
+ let headerParams = {
201
+ };
202
+ let formParams = {
203
+ };
204
+
205
+ let authNames = [];
206
+ let contentTypes = [];
207
+ let accepts = ['application/json'];
208
+ let returnType = Object;
209
+ return this.apiClient.callApi(
210
+ '/blocking/fullreport', 'HEAD',
211
+ pathParams, queryParams, headerParams, formParams, postBody,
212
+ authNames, contentTypes, accepts, returnType, null, callback
213
+ );
214
+ }
215
+
216
+
217
+ }
@@ -0,0 +1,164 @@
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 ApiModelsApiCallModelsCallRequest from '../model/ApiModelsApiCallModelsCallRequest';
17
+ import HTTPValidationError from '../model/HTTPValidationError';
18
+
19
+ /**
20
+ * Calls service.
21
+ * @module api/CallsApi
22
+ * @version 0.1.0
23
+ */
24
+ export default class CallsApi {
25
+
26
+ /**
27
+ * Constructs a new CallsApi.
28
+ * @alias module:api/CallsApi
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 cancelCallCancelCallCallIdPost operation.
40
+ * @callback module:api/CallsApi~cancelCallCancelCallCallIdPostCallback
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
+ * Cancel Call
48
+ * @param {String} callId
49
+ * @param {module:api/CallsApi~cancelCallCancelCallCallIdPostCallback} callback The callback function, accepting three arguments: error, data, response
50
+ * data is of type: {@link Object}
51
+ */
52
+ cancelCallCancelCallCallIdPost(callId, callback) {
53
+ let postBody = null;
54
+ // verify the required parameter 'callId' is set
55
+ if (callId === undefined || callId === null) {
56
+ throw new Error("Missing the required parameter 'callId' when calling cancelCallCancelCallCallIdPost");
57
+ }
58
+
59
+ let pathParams = {
60
+ 'call_id': callId
61
+ };
62
+ let queryParams = {
63
+ };
64
+ let headerParams = {
65
+ };
66
+ let formParams = {
67
+ };
68
+
69
+ let authNames = [];
70
+ let contentTypes = [];
71
+ let accepts = ['application/json'];
72
+ let returnType = Object;
73
+ return this.apiClient.callApi(
74
+ '/cancel_call/{call_id}', 'POST',
75
+ pathParams, queryParams, headerParams, formParams, postBody,
76
+ authNames, contentTypes, accepts, returnType, null, callback
77
+ );
78
+ }
79
+
80
+ /**
81
+ * Callback function to receive the result of the joinCallJoinCallCallIdPost operation.
82
+ * @callback module:api/CallsApi~joinCallJoinCallCallIdPostCallback
83
+ * @param {String} error Error message, if any.
84
+ * @param {Object} data The data returned by the service call.
85
+ * @param {String} response The complete HTTP response.
86
+ */
87
+
88
+ /**
89
+ * Join Call
90
+ * @param {String} callId
91
+ * @param {module:api/CallsApi~joinCallJoinCallCallIdPostCallback} callback The callback function, accepting three arguments: error, data, response
92
+ * data is of type: {@link Object}
93
+ */
94
+ joinCallJoinCallCallIdPost(callId, callback) {
95
+ let postBody = null;
96
+ // verify the required parameter 'callId' is set
97
+ if (callId === undefined || callId === null) {
98
+ throw new Error("Missing the required parameter 'callId' when calling joinCallJoinCallCallIdPost");
99
+ }
100
+
101
+ let pathParams = {
102
+ 'call_id': callId
103
+ };
104
+ let queryParams = {
105
+ };
106
+ let headerParams = {
107
+ };
108
+ let formParams = {
109
+ };
110
+
111
+ let authNames = [];
112
+ let contentTypes = [];
113
+ let accepts = ['application/json'];
114
+ let returnType = Object;
115
+ return this.apiClient.callApi(
116
+ '/join_call/{call_id}', 'POST',
117
+ pathParams, queryParams, headerParams, formParams, postBody,
118
+ authNames, contentTypes, accepts, returnType, null, callback
119
+ );
120
+ }
121
+
122
+ /**
123
+ * Callback function to receive the result of the startCallStartCallPost operation.
124
+ * @callback module:api/CallsApi~startCallStartCallPostCallback
125
+ * @param {String} error Error message, if any.
126
+ * @param {Object} data The data returned by the service call.
127
+ * @param {String} response The complete HTTP response.
128
+ */
129
+
130
+ /**
131
+ * Start Call
132
+ * @param {module:model/ApiModelsApiCallModelsCallRequest} apiModelsApiCallModelsCallRequest
133
+ * @param {module:api/CallsApi~startCallStartCallPostCallback} callback The callback function, accepting three arguments: error, data, response
134
+ * data is of type: {@link Object}
135
+ */
136
+ startCallStartCallPost(apiModelsApiCallModelsCallRequest, callback) {
137
+ let postBody = apiModelsApiCallModelsCallRequest;
138
+ // verify the required parameter 'apiModelsApiCallModelsCallRequest' is set
139
+ if (apiModelsApiCallModelsCallRequest === undefined || apiModelsApiCallModelsCallRequest === null) {
140
+ throw new Error("Missing the required parameter 'apiModelsApiCallModelsCallRequest' when calling startCallStartCallPost");
141
+ }
142
+
143
+ let pathParams = {
144
+ };
145
+ let queryParams = {
146
+ };
147
+ let headerParams = {
148
+ };
149
+ let formParams = {
150
+ };
151
+
152
+ let authNames = [];
153
+ let contentTypes = ['application/json'];
154
+ let accepts = ['application/json'];
155
+ let returnType = Object;
156
+ return this.apiClient.callApi(
157
+ '/start_call/', 'POST',
158
+ pathParams, queryParams, headerParams, formParams, postBody,
159
+ authNames, contentTypes, accepts, returnType, null, callback
160
+ );
161
+ }
162
+
163
+
164
+ }
@@ -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
+
15
+ import ApiClient from "../ApiClient";
16
+
17
+ /**
18
+ * Default service.
19
+ * @module api/DefaultApi
20
+ * @version 0.1.0
21
+ */
22
+ export default class DefaultApi {
23
+
24
+ /**
25
+ * Constructs a new DefaultApi.
26
+ * @alias module:api/DefaultApi
27
+ * @class
28
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
29
+ * default to {@link module:ApiClient#instance} if unspecified.
30
+ */
31
+ constructor(apiClient) {
32
+ this.apiClient = apiClient || ApiClient.instance;
33
+ }
34
+
35
+
36
+ /**
37
+ * Callback function to receive the result of the rootGet operation.
38
+ * @callback module:api/DefaultApi~rootGetCallback
39
+ * @param {String} error Error message, if any.
40
+ * @param {Object} data The data returned by the service call.
41
+ * @param {String} response The complete HTTP response.
42
+ */
43
+
44
+ /**
45
+ * Root
46
+ * @param {module:api/DefaultApi~rootGetCallback} callback The callback function, accepting three arguments: error, data, response
47
+ * data is of type: {@link Object}
48
+ */
49
+ rootGet(callback) {
50
+ let postBody = null;
51
+
52
+ let pathParams = {
53
+ };
54
+ let queryParams = {
55
+ };
56
+ let headerParams = {
57
+ };
58
+ let formParams = {
59
+ };
60
+
61
+ let authNames = [];
62
+ let contentTypes = [];
63
+ let accepts = ['application/json'];
64
+ let returnType = Object;
65
+ return this.apiClient.callApi(
66
+ '/', 'GET',
67
+ pathParams, queryParams, headerParams, formParams, postBody,
68
+ authNames, contentTypes, accepts, returnType, null, callback
69
+ );
70
+ }
71
+
72
+ /**
73
+ * Callback function to receive the result of the rootHealthGet operation.
74
+ * @callback module:api/DefaultApi~rootHealthGetCallback
75
+ * @param {String} error Error message, if any.
76
+ * @param {Object} data The data returned by the service call.
77
+ * @param {String} response The complete HTTP response.
78
+ */
79
+
80
+ /**
81
+ * Root
82
+ * @param {module:api/DefaultApi~rootHealthGetCallback} callback The callback function, accepting three arguments: error, data, response
83
+ * data is of type: {@link Object}
84
+ */
85
+ rootHealthGet(callback) {
86
+ let postBody = null;
87
+
88
+ let pathParams = {
89
+ };
90
+ let queryParams = {
91
+ };
92
+ let headerParams = {
93
+ };
94
+ let formParams = {
95
+ };
96
+
97
+ let authNames = [];
98
+ let contentTypes = [];
99
+ let accepts = ['application/json'];
100
+ let returnType = Object;
101
+ return this.apiClient.callApi(
102
+ '/health', 'GET',
103
+ pathParams, queryParams, headerParams, formParams, postBody,
104
+ authNames, contentTypes, accepts, returnType, null, callback
105
+ );
106
+ }
107
+
108
+
109
+ }
@@ -0,0 +1,80 @@
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
+ }