@closerplatform/spinner-openapi 0.12.1102 → 0.12.1104
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/api.d.ts +62 -0
- package/dist/api.js +79 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -1316,6 +1316,25 @@ export interface Call {
|
|
|
1316
1316
|
*/
|
|
1317
1317
|
invitee: string;
|
|
1318
1318
|
}
|
|
1319
|
+
/**
|
|
1320
|
+
*
|
|
1321
|
+
* @export
|
|
1322
|
+
* @interface CallAuthResponse
|
|
1323
|
+
*/
|
|
1324
|
+
export interface CallAuthResponse {
|
|
1325
|
+
/**
|
|
1326
|
+
* API key for authenticated call access
|
|
1327
|
+
* @type {string}
|
|
1328
|
+
* @memberof CallAuthResponse
|
|
1329
|
+
*/
|
|
1330
|
+
apiKey: string;
|
|
1331
|
+
/**
|
|
1332
|
+
* Fingerprint for fingerprint-based authentication (if enabled)
|
|
1333
|
+
* @type {string}
|
|
1334
|
+
* @memberof CallAuthResponse
|
|
1335
|
+
*/
|
|
1336
|
+
fingerprint?: string;
|
|
1337
|
+
}
|
|
1319
1338
|
/**
|
|
1320
1339
|
*
|
|
1321
1340
|
* @export
|
|
@@ -4820,6 +4839,12 @@ export interface OrgConfig {
|
|
|
4820
4839
|
* @memberof OrgConfig
|
|
4821
4840
|
*/
|
|
4822
4841
|
callsEnabled?: boolean;
|
|
4842
|
+
/**
|
|
4843
|
+
*
|
|
4844
|
+
* @type {boolean}
|
|
4845
|
+
* @memberof OrgConfig
|
|
4846
|
+
*/
|
|
4847
|
+
callPopupEnabled: boolean;
|
|
4823
4848
|
/**
|
|
4824
4849
|
*
|
|
4825
4850
|
* @type {boolean}
|
|
@@ -8754,6 +8779,15 @@ export declare const CallsApiFetchParamCreator: (configuration?: Configuration)
|
|
|
8754
8779
|
* @throws {RequiredError}
|
|
8755
8780
|
*/
|
|
8756
8781
|
createCall(body: CreateCall, X_Device_Id: string, options?: any): FetchArgs;
|
|
8782
|
+
/**
|
|
8783
|
+
*
|
|
8784
|
+
* @summary Get authentication credentials for a call using call token
|
|
8785
|
+
* @param {string} id Call ID
|
|
8786
|
+
* @param {string} token Call token
|
|
8787
|
+
* @param {*} [options] Override http request option.
|
|
8788
|
+
* @throws {RequiredError}
|
|
8789
|
+
*/
|
|
8790
|
+
getCallAuth(id: string, token: string, options?: any): FetchArgs;
|
|
8757
8791
|
/**
|
|
8758
8792
|
*
|
|
8759
8793
|
* @summary Retrieves a cursor-paginated list of calls for the caller’s organization
|
|
@@ -8787,6 +8821,15 @@ export declare const CallsApiFp: (configuration?: Configuration) => {
|
|
|
8787
8821
|
* @throws {RequiredError}
|
|
8788
8822
|
*/
|
|
8789
8823
|
createCall(body: CreateCall, X_Device_Id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Call>;
|
|
8824
|
+
/**
|
|
8825
|
+
*
|
|
8826
|
+
* @summary Get authentication credentials for a call using call token
|
|
8827
|
+
* @param {string} id Call ID
|
|
8828
|
+
* @param {string} token Call token
|
|
8829
|
+
* @param {*} [options] Override http request option.
|
|
8830
|
+
* @throws {RequiredError}
|
|
8831
|
+
*/
|
|
8832
|
+
getCallAuth(id: string, token: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<CallAuthResponse>;
|
|
8790
8833
|
/**
|
|
8791
8834
|
*
|
|
8792
8835
|
* @summary Retrieves a cursor-paginated list of calls for the caller’s organization
|
|
@@ -8820,6 +8863,15 @@ export declare const CallsApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
8820
8863
|
* @throws {RequiredError}
|
|
8821
8864
|
*/
|
|
8822
8865
|
createCall(body: CreateCall, X_Device_Id: string, options?: any): Promise<Call>;
|
|
8866
|
+
/**
|
|
8867
|
+
*
|
|
8868
|
+
* @summary Get authentication credentials for a call using call token
|
|
8869
|
+
* @param {string} id Call ID
|
|
8870
|
+
* @param {string} token Call token
|
|
8871
|
+
* @param {*} [options] Override http request option.
|
|
8872
|
+
* @throws {RequiredError}
|
|
8873
|
+
*/
|
|
8874
|
+
getCallAuth(id: string, token: string, options?: any): Promise<CallAuthResponse>;
|
|
8823
8875
|
/**
|
|
8824
8876
|
*
|
|
8825
8877
|
* @summary Retrieves a cursor-paginated list of calls for the caller’s organization
|
|
@@ -8856,6 +8908,16 @@ export declare class CallsApi extends BaseAPI {
|
|
|
8856
8908
|
* @memberof CallsApi
|
|
8857
8909
|
*/
|
|
8858
8910
|
createCall(body: CreateCall, X_Device_Id: string, options?: any): Promise<Call>;
|
|
8911
|
+
/**
|
|
8912
|
+
*
|
|
8913
|
+
* @summary Get authentication credentials for a call using call token
|
|
8914
|
+
* @param {string} id Call ID
|
|
8915
|
+
* @param {string} token Call token
|
|
8916
|
+
* @param {*} [options] Override http request option.
|
|
8917
|
+
* @throws {RequiredError}
|
|
8918
|
+
* @memberof CallsApi
|
|
8919
|
+
*/
|
|
8920
|
+
getCallAuth(id: string, token: string, options?: any): Promise<CallAuthResponse>;
|
|
8859
8921
|
/**
|
|
8860
8922
|
*
|
|
8861
8923
|
* @summary Retrieves a cursor-paginated list of calls for the caller’s organization
|
package/dist/api.js
CHANGED
|
@@ -3366,6 +3366,41 @@ const CallsApiFetchParamCreator = function (configuration) {
|
|
|
3366
3366
|
options: localVarRequestOptions,
|
|
3367
3367
|
};
|
|
3368
3368
|
},
|
|
3369
|
+
/**
|
|
3370
|
+
*
|
|
3371
|
+
* @summary Get authentication credentials for a call using call token
|
|
3372
|
+
* @param {string} id Call ID
|
|
3373
|
+
* @param {string} token Call token
|
|
3374
|
+
* @param {*} [options] Override http request option.
|
|
3375
|
+
* @throws {RequiredError}
|
|
3376
|
+
*/
|
|
3377
|
+
getCallAuth(id, token, options = {}) {
|
|
3378
|
+
// verify required parameter 'id' is not null or undefined
|
|
3379
|
+
if (id === null || id === undefined) {
|
|
3380
|
+
throw new RequiredError('id', 'Required parameter id was null or undefined when calling getCallAuth.');
|
|
3381
|
+
}
|
|
3382
|
+
// verify required parameter 'token' is not null or undefined
|
|
3383
|
+
if (token === null || token === undefined) {
|
|
3384
|
+
throw new RequiredError('token', 'Required parameter token was null or undefined when calling getCallAuth.');
|
|
3385
|
+
}
|
|
3386
|
+
const localVarPath = `/calls/{id}/auth`
|
|
3387
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3388
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
3389
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
3390
|
+
const localVarHeaderParameter = {};
|
|
3391
|
+
const localVarQueryParameter = {};
|
|
3392
|
+
if (token !== undefined) {
|
|
3393
|
+
localVarQueryParameter['token'] = token;
|
|
3394
|
+
}
|
|
3395
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
3396
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
3397
|
+
delete localVarUrlObj.search;
|
|
3398
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
3399
|
+
return {
|
|
3400
|
+
url: url.format(localVarUrlObj),
|
|
3401
|
+
options: localVarRequestOptions,
|
|
3402
|
+
};
|
|
3403
|
+
},
|
|
3369
3404
|
/**
|
|
3370
3405
|
*
|
|
3371
3406
|
* @summary Retrieves a cursor-paginated list of calls for the caller’s organization
|
|
@@ -3486,6 +3521,27 @@ const CallsApiFp = function (configuration) {
|
|
|
3486
3521
|
});
|
|
3487
3522
|
};
|
|
3488
3523
|
},
|
|
3524
|
+
/**
|
|
3525
|
+
*
|
|
3526
|
+
* @summary Get authentication credentials for a call using call token
|
|
3527
|
+
* @param {string} id Call ID
|
|
3528
|
+
* @param {string} token Call token
|
|
3529
|
+
* @param {*} [options] Override http request option.
|
|
3530
|
+
* @throws {RequiredError}
|
|
3531
|
+
*/
|
|
3532
|
+
getCallAuth(id, token, options) {
|
|
3533
|
+
const localVarFetchArgs = (0, exports.CallsApiFetchParamCreator)(configuration).getCallAuth(id, token, options);
|
|
3534
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
3535
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
3536
|
+
if (response.status >= 200 && response.status < 300) {
|
|
3537
|
+
return response.json();
|
|
3538
|
+
}
|
|
3539
|
+
else {
|
|
3540
|
+
throw response;
|
|
3541
|
+
}
|
|
3542
|
+
});
|
|
3543
|
+
};
|
|
3544
|
+
},
|
|
3489
3545
|
/**
|
|
3490
3546
|
*
|
|
3491
3547
|
* @summary Retrieves a cursor-paginated list of calls for the caller’s organization
|
|
@@ -3548,6 +3604,17 @@ const CallsApiFactory = function (configuration, fetch, basePath) {
|
|
|
3548
3604
|
createCall(body, X_Device_Id, options) {
|
|
3549
3605
|
return (0, exports.CallsApiFp)(configuration).createCall(body, X_Device_Id, options)(fetch, basePath);
|
|
3550
3606
|
},
|
|
3607
|
+
/**
|
|
3608
|
+
*
|
|
3609
|
+
* @summary Get authentication credentials for a call using call token
|
|
3610
|
+
* @param {string} id Call ID
|
|
3611
|
+
* @param {string} token Call token
|
|
3612
|
+
* @param {*} [options] Override http request option.
|
|
3613
|
+
* @throws {RequiredError}
|
|
3614
|
+
*/
|
|
3615
|
+
getCallAuth(id, token, options) {
|
|
3616
|
+
return (0, exports.CallsApiFp)(configuration).getCallAuth(id, token, options)(fetch, basePath);
|
|
3617
|
+
},
|
|
3551
3618
|
/**
|
|
3552
3619
|
*
|
|
3553
3620
|
* @summary Retrieves a cursor-paginated list of calls for the caller’s organization
|
|
@@ -3592,6 +3659,18 @@ class CallsApi extends BaseAPI {
|
|
|
3592
3659
|
createCall(body, X_Device_Id, options) {
|
|
3593
3660
|
return (0, exports.CallsApiFp)(this.configuration).createCall(body, X_Device_Id, options)(this.fetch, this.basePath);
|
|
3594
3661
|
}
|
|
3662
|
+
/**
|
|
3663
|
+
*
|
|
3664
|
+
* @summary Get authentication credentials for a call using call token
|
|
3665
|
+
* @param {string} id Call ID
|
|
3666
|
+
* @param {string} token Call token
|
|
3667
|
+
* @param {*} [options] Override http request option.
|
|
3668
|
+
* @throws {RequiredError}
|
|
3669
|
+
* @memberof CallsApi
|
|
3670
|
+
*/
|
|
3671
|
+
getCallAuth(id, token, options) {
|
|
3672
|
+
return (0, exports.CallsApiFp)(this.configuration).getCallAuth(id, token, options)(this.fetch, this.basePath);
|
|
3673
|
+
}
|
|
3595
3674
|
/**
|
|
3596
3675
|
*
|
|
3597
3676
|
* @summary Retrieves a cursor-paginated list of calls for the caller’s organization
|