@closerplatform/spinner-openapi 0.12.1102 → 0.12.1103

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 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
@@ -8754,6 +8773,15 @@ export declare const CallsApiFetchParamCreator: (configuration?: Configuration)
8754
8773
  * @throws {RequiredError}
8755
8774
  */
8756
8775
  createCall(body: CreateCall, X_Device_Id: string, options?: any): FetchArgs;
8776
+ /**
8777
+ *
8778
+ * @summary Get authentication credentials for a call using call token
8779
+ * @param {string} id Call ID
8780
+ * @param {string} token Call token
8781
+ * @param {*} [options] Override http request option.
8782
+ * @throws {RequiredError}
8783
+ */
8784
+ getCallAuth(id: string, token: string, options?: any): FetchArgs;
8757
8785
  /**
8758
8786
  *
8759
8787
  * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
@@ -8787,6 +8815,15 @@ export declare const CallsApiFp: (configuration?: Configuration) => {
8787
8815
  * @throws {RequiredError}
8788
8816
  */
8789
8817
  createCall(body: CreateCall, X_Device_Id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Call>;
8818
+ /**
8819
+ *
8820
+ * @summary Get authentication credentials for a call using call token
8821
+ * @param {string} id Call ID
8822
+ * @param {string} token Call token
8823
+ * @param {*} [options] Override http request option.
8824
+ * @throws {RequiredError}
8825
+ */
8826
+ getCallAuth(id: string, token: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<CallAuthResponse>;
8790
8827
  /**
8791
8828
  *
8792
8829
  * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
@@ -8820,6 +8857,15 @@ export declare const CallsApiFactory: (configuration?: Configuration, fetch?: Fe
8820
8857
  * @throws {RequiredError}
8821
8858
  */
8822
8859
  createCall(body: CreateCall, X_Device_Id: string, options?: any): Promise<Call>;
8860
+ /**
8861
+ *
8862
+ * @summary Get authentication credentials for a call using call token
8863
+ * @param {string} id Call ID
8864
+ * @param {string} token Call token
8865
+ * @param {*} [options] Override http request option.
8866
+ * @throws {RequiredError}
8867
+ */
8868
+ getCallAuth(id: string, token: string, options?: any): Promise<CallAuthResponse>;
8823
8869
  /**
8824
8870
  *
8825
8871
  * @summary Retrieves a cursor-paginated list of calls for the caller’s organization
@@ -8856,6 +8902,16 @@ export declare class CallsApi extends BaseAPI {
8856
8902
  * @memberof CallsApi
8857
8903
  */
8858
8904
  createCall(body: CreateCall, X_Device_Id: string, options?: any): Promise<Call>;
8905
+ /**
8906
+ *
8907
+ * @summary Get authentication credentials for a call using call token
8908
+ * @param {string} id Call ID
8909
+ * @param {string} token Call token
8910
+ * @param {*} [options] Override http request option.
8911
+ * @throws {RequiredError}
8912
+ * @memberof CallsApi
8913
+ */
8914
+ getCallAuth(id: string, token: string, options?: any): Promise<CallAuthResponse>;
8859
8915
  /**
8860
8916
  *
8861
8917
  * @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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.1102",
3
+ "version": "0.12.1103",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [