@polyguard/sdk 1.0.1 → 1.0.2
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 +703 -1153
- package/package.json +1 -1
- package/scripts/regenerate-client.sh +4 -0
- package/src/PolyguardWebsocketClientImpl.js +2 -2
- package/src/generated/.openapi-generator/FILES +10 -4
- package/src/generated/README.md +25 -34
- package/src/generated/docs/AppId.md +8 -0
- package/src/generated/docs/DefaultApi.md +40 -0
- package/src/generated/docs/LinksApi.md +162 -0
- package/src/generated/docs/SdkApi.md +54 -0
- package/src/generated/docs/SecureLinksApi.md +614 -0
- package/src/generated/docs/WellKnownApi.md +128 -0
- package/src/generated/docs/ZoomApi.md +108 -4
- package/src/generated/src/api/DefaultApi.js +36 -0
- package/src/generated/src/api/LinksApi.js +195 -0
- package/src/generated/src/api/SdkApi.js +81 -0
- package/src/generated/src/api/SecureLinksApi.js +670 -0
- package/src/generated/src/api/WellKnownApi.js +145 -0
- package/src/generated/src/api/ZoomApi.js +110 -2
- package/src/generated/src/index.js +35 -14
- package/src/generated/test/api/LinksApi.spec.js +83 -0
- package/src/generated/test/api/SdkApi.spec.js +63 -0
- package/src/generated/test/api/SecureLinksApi.spec.js +143 -0
- package/src/generated/test/api/WellKnownApi.spec.js +83 -0
- package/src/generated/test/model/AppId.spec.js +59 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# FastApi.WellKnownApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**appleAppSiteAssociationAppleAppSiteAssociationGet**](WellKnownApi.md#appleAppSiteAssociationAppleAppSiteAssociationGet) | **GET** /apple-app-site-association | Apple App Site Association
|
|
8
|
+
[**appleAppSiteAssociationWellKnownAppleAppSiteAssociationGet**](WellKnownApi.md#appleAppSiteAssociationWellKnownAppleAppSiteAssociationGet) | **GET** /.well-known/apple-app-site-association | Apple App Site Association
|
|
9
|
+
[**jwksWellKnownJwksJsonGet**](WellKnownApi.md#jwksWellKnownJwksJsonGet) | **GET** /.well-known/jwks.json | Jwks
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## appleAppSiteAssociationAppleAppSiteAssociationGet
|
|
14
|
+
|
|
15
|
+
> Object appleAppSiteAssociationAppleAppSiteAssociationGet()
|
|
16
|
+
|
|
17
|
+
Apple App Site Association
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```javascript
|
|
22
|
+
import FastApi from 'fast_api';
|
|
23
|
+
|
|
24
|
+
let apiInstance = new FastApi.WellKnownApi();
|
|
25
|
+
apiInstance.appleAppSiteAssociationAppleAppSiteAssociationGet((error, data, response) => {
|
|
26
|
+
if (error) {
|
|
27
|
+
console.error(error);
|
|
28
|
+
} else {
|
|
29
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
This endpoint does not need any parameter.
|
|
37
|
+
|
|
38
|
+
### Return type
|
|
39
|
+
|
|
40
|
+
**Object**
|
|
41
|
+
|
|
42
|
+
### Authorization
|
|
43
|
+
|
|
44
|
+
No authorization required
|
|
45
|
+
|
|
46
|
+
### HTTP request headers
|
|
47
|
+
|
|
48
|
+
- **Content-Type**: Not defined
|
|
49
|
+
- **Accept**: application/json
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## appleAppSiteAssociationWellKnownAppleAppSiteAssociationGet
|
|
53
|
+
|
|
54
|
+
> Object appleAppSiteAssociationWellKnownAppleAppSiteAssociationGet()
|
|
55
|
+
|
|
56
|
+
Apple App Site Association
|
|
57
|
+
|
|
58
|
+
### Example
|
|
59
|
+
|
|
60
|
+
```javascript
|
|
61
|
+
import FastApi from 'fast_api';
|
|
62
|
+
|
|
63
|
+
let apiInstance = new FastApi.WellKnownApi();
|
|
64
|
+
apiInstance.appleAppSiteAssociationWellKnownAppleAppSiteAssociationGet((error, data, response) => {
|
|
65
|
+
if (error) {
|
|
66
|
+
console.error(error);
|
|
67
|
+
} else {
|
|
68
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Parameters
|
|
74
|
+
|
|
75
|
+
This endpoint does not need any parameter.
|
|
76
|
+
|
|
77
|
+
### Return type
|
|
78
|
+
|
|
79
|
+
**Object**
|
|
80
|
+
|
|
81
|
+
### Authorization
|
|
82
|
+
|
|
83
|
+
No authorization required
|
|
84
|
+
|
|
85
|
+
### HTTP request headers
|
|
86
|
+
|
|
87
|
+
- **Content-Type**: Not defined
|
|
88
|
+
- **Accept**: application/json
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## jwksWellKnownJwksJsonGet
|
|
92
|
+
|
|
93
|
+
> Object jwksWellKnownJwksJsonGet()
|
|
94
|
+
|
|
95
|
+
Jwks
|
|
96
|
+
|
|
97
|
+
### Example
|
|
98
|
+
|
|
99
|
+
```javascript
|
|
100
|
+
import FastApi from 'fast_api';
|
|
101
|
+
|
|
102
|
+
let apiInstance = new FastApi.WellKnownApi();
|
|
103
|
+
apiInstance.jwksWellKnownJwksJsonGet((error, data, response) => {
|
|
104
|
+
if (error) {
|
|
105
|
+
console.error(error);
|
|
106
|
+
} else {
|
|
107
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Parameters
|
|
113
|
+
|
|
114
|
+
This endpoint does not need any parameter.
|
|
115
|
+
|
|
116
|
+
### Return type
|
|
117
|
+
|
|
118
|
+
**Object**
|
|
119
|
+
|
|
120
|
+
### Authorization
|
|
121
|
+
|
|
122
|
+
No authorization required
|
|
123
|
+
|
|
124
|
+
### HTTP request headers
|
|
125
|
+
|
|
126
|
+
- **Content-Type**: Not defined
|
|
127
|
+
- **Accept**: application/json
|
|
128
|
+
|
|
@@ -10,6 +10,8 @@ Method | HTTP request | Description
|
|
|
10
10
|
[**getTicketZoomPhoneTicketAccountIdPost**](ZoomApi.md#getTicketZoomPhoneTicketAccountIdPost) | **POST** /zoom-phone/ticket/{account_id} | Get Ticket
|
|
11
11
|
[**getUserLogsZoomPhoneLogsPolyUserIdGet**](ZoomApi.md#getUserLogsZoomPhoneLogsPolyUserIdGet) | **GET** /zoom-phone/logs/{poly_user_id} | Get User Logs
|
|
12
12
|
[**meetingJwtMeetingjwtPost**](ZoomApi.md#meetingJwtMeetingjwtPost) | **POST** /meetingjwt | Meeting Jwt
|
|
13
|
+
[**pgGetMeetingDetailsV2ZoomMeetingMeetingUuidGet**](ZoomApi.md#pgGetMeetingDetailsV2ZoomMeetingMeetingUuidGet) | **GET** /v2/zoom/meeting/{meeting_uuid} | Pg Get Meeting Details
|
|
14
|
+
[**pgStartZoomMeetingV2ZoomStartAppIdLinkUuidPost**](ZoomApi.md#pgStartZoomMeetingV2ZoomStartAppIdLinkUuidPost) | **POST** /v2/zoom/start/{app_id}/{link_uuid} | Pg Start Zoom Meeting
|
|
13
15
|
[**redirectToAppStoreZoomPhoneAppStoreGet**](ZoomApi.md#redirectToAppStoreZoomPhoneAppStoreGet) | **GET** /zoom-phone/app-store | Redirect To App Store
|
|
14
16
|
[**redirectToMeetingReportZoomPhoneReportsMeetingEncodedS3UrlGet**](ZoomApi.md#redirectToMeetingReportZoomPhoneReportsMeetingEncodedS3UrlGet) | **GET** /zoom-phone/reports/meeting/{encoded_s3_url} | Redirect To Meeting Report
|
|
15
17
|
[**testWebsocketDisconnectZoomPhoneTestDisconnectPost**](ZoomApi.md#testWebsocketDisconnectZoomPhoneTestDisconnectPost) | **POST** /zoom-phone/test-disconnect | Test Websocket Disconnect
|
|
@@ -160,8 +162,8 @@ import FastApi from 'fast_api';
|
|
|
160
162
|
let apiInstance = new FastApi.ZoomApi();
|
|
161
163
|
let accountId = "accountId_example"; // String |
|
|
162
164
|
let opts = {
|
|
163
|
-
'clientSecret': "'
|
|
164
|
-
'clientId': "'
|
|
165
|
+
'clientSecret': "'ARlaFJJRMWLexEnPW4AtkCmHmerOaIGc'", // String |
|
|
166
|
+
'clientId': "'qxzT5xZCRmCDnvUqbnqHtw'" // String |
|
|
165
167
|
};
|
|
166
168
|
apiInstance.getTicketZoomPhoneTicketAccountIdPost(accountId, opts, (error, data, response) => {
|
|
167
169
|
if (error) {
|
|
@@ -178,8 +180,8 @@ apiInstance.getTicketZoomPhoneTicketAccountIdPost(accountId, opts, (error, data,
|
|
|
178
180
|
Name | Type | Description | Notes
|
|
179
181
|
------------- | ------------- | ------------- | -------------
|
|
180
182
|
**accountId** | **String**| |
|
|
181
|
-
**clientSecret** | **String**| | [optional] [default to '
|
|
182
|
-
**clientId** | **String**| | [optional] [default to '
|
|
183
|
+
**clientSecret** | **String**| | [optional] [default to 'ARlaFJJRMWLexEnPW4AtkCmHmerOaIGc']
|
|
184
|
+
**clientId** | **String**| | [optional] [default to 'qxzT5xZCRmCDnvUqbnqHtw']
|
|
183
185
|
|
|
184
186
|
### Return type
|
|
185
187
|
|
|
@@ -289,6 +291,108 @@ No authorization required
|
|
|
289
291
|
- **Accept**: application/json
|
|
290
292
|
|
|
291
293
|
|
|
294
|
+
## pgGetMeetingDetailsV2ZoomMeetingMeetingUuidGet
|
|
295
|
+
|
|
296
|
+
> Object pgGetMeetingDetailsV2ZoomMeetingMeetingUuidGet(meetingUuid, opts)
|
|
297
|
+
|
|
298
|
+
Pg Get Meeting Details
|
|
299
|
+
|
|
300
|
+
### Example
|
|
301
|
+
|
|
302
|
+
```javascript
|
|
303
|
+
import FastApi from 'fast_api';
|
|
304
|
+
|
|
305
|
+
let apiInstance = new FastApi.ZoomApi();
|
|
306
|
+
let meetingUuid = "meetingUuid_example"; // String |
|
|
307
|
+
let opts = {
|
|
308
|
+
'clientSecret': "'ARlaFJJRMWLexEnPW4AtkCmHmerOaIGc'", // String |
|
|
309
|
+
'clientId': "'qxzT5xZCRmCDnvUqbnqHtw'" // String |
|
|
310
|
+
};
|
|
311
|
+
apiInstance.pgGetMeetingDetailsV2ZoomMeetingMeetingUuidGet(meetingUuid, opts, (error, data, response) => {
|
|
312
|
+
if (error) {
|
|
313
|
+
console.error(error);
|
|
314
|
+
} else {
|
|
315
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### Parameters
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
Name | Type | Description | Notes
|
|
324
|
+
------------- | ------------- | ------------- | -------------
|
|
325
|
+
**meetingUuid** | **String**| |
|
|
326
|
+
**clientSecret** | **String**| | [optional] [default to 'ARlaFJJRMWLexEnPW4AtkCmHmerOaIGc']
|
|
327
|
+
**clientId** | **String**| | [optional] [default to 'qxzT5xZCRmCDnvUqbnqHtw']
|
|
328
|
+
|
|
329
|
+
### Return type
|
|
330
|
+
|
|
331
|
+
**Object**
|
|
332
|
+
|
|
333
|
+
### Authorization
|
|
334
|
+
|
|
335
|
+
No authorization required
|
|
336
|
+
|
|
337
|
+
### HTTP request headers
|
|
338
|
+
|
|
339
|
+
- **Content-Type**: Not defined
|
|
340
|
+
- **Accept**: application/json
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
## pgStartZoomMeetingV2ZoomStartAppIdLinkUuidPost
|
|
344
|
+
|
|
345
|
+
> Object pgStartZoomMeetingV2ZoomStartAppIdLinkUuidPost(appId, linkUuid, startMeetingRequest, opts)
|
|
346
|
+
|
|
347
|
+
Pg Start Zoom Meeting
|
|
348
|
+
|
|
349
|
+
### Example
|
|
350
|
+
|
|
351
|
+
```javascript
|
|
352
|
+
import FastApi from 'fast_api';
|
|
353
|
+
|
|
354
|
+
let apiInstance = new FastApi.ZoomApi();
|
|
355
|
+
let appId = "appId_example"; // String |
|
|
356
|
+
let linkUuid = "linkUuid_example"; // String |
|
|
357
|
+
let startMeetingRequest = new FastApi.StartMeetingRequest(); // StartMeetingRequest |
|
|
358
|
+
let opts = {
|
|
359
|
+
'clientSecret': "'ARlaFJJRMWLexEnPW4AtkCmHmerOaIGc'", // String |
|
|
360
|
+
'clientId': "'qxzT5xZCRmCDnvUqbnqHtw'" // String |
|
|
361
|
+
};
|
|
362
|
+
apiInstance.pgStartZoomMeetingV2ZoomStartAppIdLinkUuidPost(appId, linkUuid, startMeetingRequest, opts, (error, data, response) => {
|
|
363
|
+
if (error) {
|
|
364
|
+
console.error(error);
|
|
365
|
+
} else {
|
|
366
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
### Parameters
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
Name | Type | Description | Notes
|
|
375
|
+
------------- | ------------- | ------------- | -------------
|
|
376
|
+
**appId** | **String**| |
|
|
377
|
+
**linkUuid** | **String**| |
|
|
378
|
+
**startMeetingRequest** | [**StartMeetingRequest**](StartMeetingRequest.md)| |
|
|
379
|
+
**clientSecret** | **String**| | [optional] [default to 'ARlaFJJRMWLexEnPW4AtkCmHmerOaIGc']
|
|
380
|
+
**clientId** | **String**| | [optional] [default to 'qxzT5xZCRmCDnvUqbnqHtw']
|
|
381
|
+
|
|
382
|
+
### Return type
|
|
383
|
+
|
|
384
|
+
**Object**
|
|
385
|
+
|
|
386
|
+
### Authorization
|
|
387
|
+
|
|
388
|
+
No authorization required
|
|
389
|
+
|
|
390
|
+
### HTTP request headers
|
|
391
|
+
|
|
392
|
+
- **Content-Type**: application/json
|
|
393
|
+
- **Accept**: application/json
|
|
394
|
+
|
|
395
|
+
|
|
292
396
|
## redirectToAppStoreZoomPhoneAppStoreGet
|
|
293
397
|
|
|
294
398
|
> Object redirectToAppStoreZoomPhoneAppStoreGet()
|
|
@@ -33,6 +33,42 @@ export default class DefaultApi {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Callback function to receive the result of the getApplicationsApplicationsGet operation.
|
|
38
|
+
* @callback module:api/DefaultApi~getApplicationsApplicationsGetCallback
|
|
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
|
+
* Get Applications
|
|
46
|
+
* @param {module:api/DefaultApi~getApplicationsApplicationsGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
47
|
+
* data is of type: {@link Object}
|
|
48
|
+
*/
|
|
49
|
+
getApplicationsApplicationsGet(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
|
+
'/applications', 'GET',
|
|
67
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
68
|
+
authNames, contentTypes, accepts, returnType, null, callback
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
36
72
|
/**
|
|
37
73
|
* Callback function to receive the result of the rootGet operation.
|
|
38
74
|
* @callback module:api/DefaultApi~rootGetCallback
|
|
@@ -0,0 +1,195 @@
|
|
|
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 AppId from '../model/AppId';
|
|
17
|
+
import CreateLinkRequest from '../model/CreateLinkRequest';
|
|
18
|
+
import HTTPValidationError from '../model/HTTPValidationError';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Links service.
|
|
22
|
+
* @module api/LinksApi
|
|
23
|
+
* @version 0.1.0
|
|
24
|
+
*/
|
|
25
|
+
export default class LinksApi {
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Constructs a new LinksApi.
|
|
29
|
+
* @alias module:api/LinksApi
|
|
30
|
+
* @class
|
|
31
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
32
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
33
|
+
*/
|
|
34
|
+
constructor(apiClient) {
|
|
35
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Callback function to receive the result of the pgCreateLinkV2AppIdPut operation.
|
|
41
|
+
* @callback module:api/LinksApi~pgCreateLinkV2AppIdPutCallback
|
|
42
|
+
* @param {String} error Error message, if any.
|
|
43
|
+
* @param {Object} data The data returned by the service call.
|
|
44
|
+
* @param {String} response The complete HTTP response.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Pg Create Link
|
|
49
|
+
* @param {module:model/AppId} appId
|
|
50
|
+
* @param {module:model/CreateLinkRequest} createLinkRequest
|
|
51
|
+
* @param {Object} opts Optional parameters
|
|
52
|
+
* @param {String} [clientSecret = 'ARlaFJJRMWLexEnPW4AtkCmHmerOaIGc')]
|
|
53
|
+
* @param {String} [clientId = 'qxzT5xZCRmCDnvUqbnqHtw')]
|
|
54
|
+
* @param {module:api/LinksApi~pgCreateLinkV2AppIdPutCallback} callback The callback function, accepting three arguments: error, data, response
|
|
55
|
+
* data is of type: {@link Object}
|
|
56
|
+
*/
|
|
57
|
+
pgCreateLinkV2AppIdPut(appId, createLinkRequest, opts, callback) {
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
let postBody = createLinkRequest;
|
|
60
|
+
// verify the required parameter 'appId' is set
|
|
61
|
+
if (appId === undefined || appId === null) {
|
|
62
|
+
throw new Error("Missing the required parameter 'appId' when calling pgCreateLinkV2AppIdPut");
|
|
63
|
+
}
|
|
64
|
+
// verify the required parameter 'createLinkRequest' is set
|
|
65
|
+
if (createLinkRequest === undefined || createLinkRequest === null) {
|
|
66
|
+
throw new Error("Missing the required parameter 'createLinkRequest' when calling pgCreateLinkV2AppIdPut");
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
let pathParams = {
|
|
70
|
+
'app_id': appId
|
|
71
|
+
};
|
|
72
|
+
let queryParams = {
|
|
73
|
+
'client_secret': opts['clientSecret'],
|
|
74
|
+
'client_id': opts['clientId']
|
|
75
|
+
};
|
|
76
|
+
let headerParams = {
|
|
77
|
+
};
|
|
78
|
+
let formParams = {
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
let authNames = [];
|
|
82
|
+
let contentTypes = ['application/json'];
|
|
83
|
+
let accepts = ['application/json'];
|
|
84
|
+
let returnType = Object;
|
|
85
|
+
return this.apiClient.callApi(
|
|
86
|
+
'/v2/{app_id}', 'PUT',
|
|
87
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
88
|
+
authNames, contentTypes, accepts, returnType, null, callback
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Callback function to receive the result of the pgDeleteLinkV2AppIdLinkUuidDelete operation.
|
|
94
|
+
* @callback module:api/LinksApi~pgDeleteLinkV2AppIdLinkUuidDeleteCallback
|
|
95
|
+
* @param {String} error Error message, if any.
|
|
96
|
+
* @param {Object} data The data returned by the service call.
|
|
97
|
+
* @param {String} response The complete HTTP response.
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Pg Delete Link
|
|
102
|
+
* @param {String} appId
|
|
103
|
+
* @param {String} linkUuid
|
|
104
|
+
* @param {Object} opts Optional parameters
|
|
105
|
+
* @param {String} [clientSecret = 'ARlaFJJRMWLexEnPW4AtkCmHmerOaIGc')]
|
|
106
|
+
* @param {String} [clientId = 'qxzT5xZCRmCDnvUqbnqHtw')]
|
|
107
|
+
* @param {module:api/LinksApi~pgDeleteLinkV2AppIdLinkUuidDeleteCallback} callback The callback function, accepting three arguments: error, data, response
|
|
108
|
+
* data is of type: {@link Object}
|
|
109
|
+
*/
|
|
110
|
+
pgDeleteLinkV2AppIdLinkUuidDelete(appId, linkUuid, opts, callback) {
|
|
111
|
+
opts = opts || {};
|
|
112
|
+
let postBody = null;
|
|
113
|
+
// verify the required parameter 'appId' is set
|
|
114
|
+
if (appId === undefined || appId === null) {
|
|
115
|
+
throw new Error("Missing the required parameter 'appId' when calling pgDeleteLinkV2AppIdLinkUuidDelete");
|
|
116
|
+
}
|
|
117
|
+
// verify the required parameter 'linkUuid' is set
|
|
118
|
+
if (linkUuid === undefined || linkUuid === null) {
|
|
119
|
+
throw new Error("Missing the required parameter 'linkUuid' when calling pgDeleteLinkV2AppIdLinkUuidDelete");
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
let pathParams = {
|
|
123
|
+
'app_id': appId,
|
|
124
|
+
'link_uuid': linkUuid
|
|
125
|
+
};
|
|
126
|
+
let queryParams = {
|
|
127
|
+
'client_secret': opts['clientSecret'],
|
|
128
|
+
'client_id': opts['clientId']
|
|
129
|
+
};
|
|
130
|
+
let headerParams = {
|
|
131
|
+
};
|
|
132
|
+
let formParams = {
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
let authNames = [];
|
|
136
|
+
let contentTypes = [];
|
|
137
|
+
let accepts = ['application/json'];
|
|
138
|
+
let returnType = Object;
|
|
139
|
+
return this.apiClient.callApi(
|
|
140
|
+
'/v2/{app_id}/{link_uuid}', 'DELETE',
|
|
141
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
142
|
+
authNames, contentTypes, accepts, returnType, null, callback
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Callback function to receive the result of the pgListMeetingLinksV2ListlinksAccountIdGet operation.
|
|
148
|
+
* @callback module:api/LinksApi~pgListMeetingLinksV2ListlinksAccountIdGetCallback
|
|
149
|
+
* @param {String} error Error message, if any.
|
|
150
|
+
* @param {Object} data The data returned by the service call.
|
|
151
|
+
* @param {String} response The complete HTTP response.
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Pg List Meeting Links
|
|
156
|
+
* @param {String} accountId
|
|
157
|
+
* @param {Object} opts Optional parameters
|
|
158
|
+
* @param {String} [clientSecret = 'ARlaFJJRMWLexEnPW4AtkCmHmerOaIGc')]
|
|
159
|
+
* @param {String} [clientId = 'qxzT5xZCRmCDnvUqbnqHtw')]
|
|
160
|
+
* @param {module:api/LinksApi~pgListMeetingLinksV2ListlinksAccountIdGetCallback} callback The callback function, accepting three arguments: error, data, response
|
|
161
|
+
* data is of type: {@link Object}
|
|
162
|
+
*/
|
|
163
|
+
pgListMeetingLinksV2ListlinksAccountIdGet(accountId, opts, callback) {
|
|
164
|
+
opts = opts || {};
|
|
165
|
+
let postBody = null;
|
|
166
|
+
// verify the required parameter 'accountId' is set
|
|
167
|
+
if (accountId === undefined || accountId === null) {
|
|
168
|
+
throw new Error("Missing the required parameter 'accountId' when calling pgListMeetingLinksV2ListlinksAccountIdGet");
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
let pathParams = {
|
|
172
|
+
'account_id': accountId
|
|
173
|
+
};
|
|
174
|
+
let queryParams = {
|
|
175
|
+
'client_secret': opts['clientSecret'],
|
|
176
|
+
'client_id': opts['clientId']
|
|
177
|
+
};
|
|
178
|
+
let headerParams = {
|
|
179
|
+
};
|
|
180
|
+
let formParams = {
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
let authNames = [];
|
|
184
|
+
let contentTypes = [];
|
|
185
|
+
let accepts = ['application/json'];
|
|
186
|
+
let returnType = Object;
|
|
187
|
+
return this.apiClient.callApi(
|
|
188
|
+
'/v2/listlinks/{account_id}', 'GET',
|
|
189
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
190
|
+
authNames, contentTypes, accepts, returnType, null, callback
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Sdk service.
|
|
20
|
+
* @module api/SdkApi
|
|
21
|
+
* @version 0.1.0
|
|
22
|
+
*/
|
|
23
|
+
export default class SdkApi {
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a new SdkApi.
|
|
27
|
+
* @alias module:api/SdkApi
|
|
28
|
+
* @class
|
|
29
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
30
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
31
|
+
*/
|
|
32
|
+
constructor(apiClient) {
|
|
33
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Callback function to receive the result of the createTicketV2TicketAppIdPost operation.
|
|
39
|
+
* @callback module:api/SdkApi~createTicketV2TicketAppIdPostCallback
|
|
40
|
+
* @param {String} error Error message, if any.
|
|
41
|
+
* @param {Object} data The data returned by the service call.
|
|
42
|
+
* @param {String} response The complete HTTP response.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Create Ticket
|
|
47
|
+
* Issue a short-lived ticket for a given app_id and requiredProofs. The ticket is used for real-time auth via WebSocket. Stores a link object in Redis under link-{ticket} with requiredProofs and app_id.
|
|
48
|
+
* @param {String} appId
|
|
49
|
+
* @param {module:api/SdkApi~createTicketV2TicketAppIdPostCallback} callback The callback function, accepting three arguments: error, data, response
|
|
50
|
+
* data is of type: {@link Object}
|
|
51
|
+
*/
|
|
52
|
+
createTicketV2TicketAppIdPost(appId, callback) {
|
|
53
|
+
let postBody = null;
|
|
54
|
+
// verify the required parameter 'appId' is set
|
|
55
|
+
if (appId === undefined || appId === null) {
|
|
56
|
+
throw new Error("Missing the required parameter 'appId' when calling createTicketV2TicketAppIdPost");
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
let pathParams = {
|
|
60
|
+
'app_id': appId
|
|
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
|
+
'/v2/ticket/{app_id}', 'POST',
|
|
75
|
+
pathParams, queryParams, headerParams, formParams, postBody,
|
|
76
|
+
authNames, contentTypes, accepts, returnType, null, callback
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
}
|