From 11a0378d586c5791a6107e4936780ff44ca55744 Mon Sep 17 00:00:00 2001 From: Navneet Garg Date: Tue, 23 Sep 2025 22:02:36 -0400 Subject: [PATCH 1/2] Add new models for Exports and fix CallResult --- .gitignore | 1 - .openapi-generator/FILES | 24 + CHANGELOG.md | 13 + README.md | 15 +- composer.json | 2 +- composer.lock | 557 ++- docs/Api/DefaultApi.md | 314 +- docs/Model/CallResult.md | 2 +- docs/Model/CreateConference.md | 3 +- docs/Model/ExportList.md | 16 + docs/Model/ExportOutputType.md | 8 + docs/Model/ExportRequest.md | 12 + docs/Model/ExportRequestOutput.md | 9 + docs/Model/ExportResourceType.md | 8 + docs/Model/ExportResult.md | 20 + docs/Model/ExportResultOutput.md | 9 + docs/Model/ExportStatus.md | 8 + lib/Api/DefaultApi.php | 6069 +++++++++++++++--------- lib/Configuration.php | 4 +- lib/Model/CallResult.php | 34 +- lib/Model/CreateConference.php | 52 +- lib/Model/ExportList.php | 706 +++ lib/Model/ExportOutputType.php | 64 + lib/Model/ExportRequest.php | 520 ++ lib/Model/ExportRequestOutput.php | 415 ++ lib/Model/ExportResourceType.php | 66 + lib/Model/ExportResult.php | 845 ++++ lib/Model/ExportResultOutput.php | 415 ++ lib/Model/ExportStatus.php | 74 + openapi.json | 372 +- test/Api/DefaultApiTest.php | 153 +- test/Model/CallResultTest.php | 36 +- test/Model/CreateConferenceTest.php | 15 +- test/Model/ExportListTest.php | 151 + test/Model/ExportOutputTypeTest.php | 76 + test/Model/ExportRequestOutputTest.php | 82 + test/Model/ExportRequestTest.php | 103 + test/Model/ExportResourceTypeTest.php | 76 + test/Model/ExportResultOutputTest.php | 82 + test/Model/ExportResultTest.php | 179 + test/Model/ExportStatusTest.php | 76 + 41 files changed, 9179 insertions(+), 2507 deletions(-) create mode 100644 docs/Model/ExportList.md create mode 100644 docs/Model/ExportOutputType.md create mode 100644 docs/Model/ExportRequest.md create mode 100644 docs/Model/ExportRequestOutput.md create mode 100644 docs/Model/ExportResourceType.md create mode 100644 docs/Model/ExportResult.md create mode 100644 docs/Model/ExportResultOutput.md create mode 100644 docs/Model/ExportStatus.md create mode 100644 lib/Model/ExportList.php create mode 100644 lib/Model/ExportOutputType.php create mode 100644 lib/Model/ExportRequest.php create mode 100644 lib/Model/ExportRequestOutput.php create mode 100644 lib/Model/ExportResourceType.php create mode 100644 lib/Model/ExportResult.php create mode 100644 lib/Model/ExportResultOutput.php create mode 100644 lib/Model/ExportStatus.php create mode 100644 test/Model/ExportListTest.php create mode 100644 test/Model/ExportOutputTypeTest.php create mode 100644 test/Model/ExportRequestOutputTest.php create mode 100644 test/Model/ExportRequestTest.php create mode 100644 test/Model/ExportResourceTypeTest.php create mode 100644 test/Model/ExportResultOutputTest.php create mode 100644 test/Model/ExportResultTest.php create mode 100644 test/Model/ExportStatusTest.php diff --git a/.gitignore b/.gitignore index b58769c..9f1681c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,6 @@ composer.phar /vendor/ -node_modules # Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control # You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index af1168c..68ddd02 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -44,6 +44,14 @@ docs/Model/CreateWebRTCToken.md docs/Model/Dequeue.md docs/Model/DequeueWebhook.md docs/Model/Enqueue.md +docs/Model/ExportList.md +docs/Model/ExportOutputType.md +docs/Model/ExportRequest.md +docs/Model/ExportRequestOutput.md +docs/Model/ExportResourceType.md +docs/Model/ExportResult.md +docs/Model/ExportResultOutput.md +docs/Model/ExportStatus.md docs/Model/FilterLogsRequest.md docs/Model/GetDigits.md docs/Model/GetDigitsReason.md @@ -189,6 +197,14 @@ lib/Model/CreateWebRTCToken.php lib/Model/Dequeue.php lib/Model/DequeueWebhook.php lib/Model/Enqueue.php +lib/Model/ExportList.php +lib/Model/ExportOutputType.php +lib/Model/ExportRequest.php +lib/Model/ExportRequestOutput.php +lib/Model/ExportResourceType.php +lib/Model/ExportResult.php +lib/Model/ExportResultOutput.php +lib/Model/ExportStatus.php lib/Model/FilterLogsRequest.php lib/Model/GetDigits.php lib/Model/GetDigitsReason.php @@ -333,6 +349,14 @@ test/Model/CreateWebRTCTokenTest.php test/Model/DequeueTest.php test/Model/DequeueWebhookTest.php test/Model/EnqueueTest.php +test/Model/ExportListTest.php +test/Model/ExportOutputTypeTest.php +test/Model/ExportRequestOutputTest.php +test/Model/ExportRequestTest.php +test/Model/ExportResourceTypeTest.php +test/Model/ExportResultOutputTest.php +test/Model/ExportResultTest.php +test/Model/ExportStatusTest.php test/Model/FilterLogsRequestTest.php test/Model/GetDigitsReasonTest.php test/Model/GetDigitsTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 41b1e26..03f1290 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,19 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm None + + +## [5.2.0] - 2025-09-23 + +### Added + +- Add models for ExportResult and ExportRequest + +### Changed + +- CallResult.callStatus -> CallResult.status +- CreateConference now includes parentCallId + ## [5.1.1] - 2025-02-18 diff --git a/README.md b/README.md index 43bd4c9..dfe54bf 100644 --- a/README.md +++ b/README.md @@ -125,13 +125,16 @@ Class | Method | HTTP request | Description *DefaultApi* | [**createAConference**](docs/Api/DefaultApi.md#createaconference) | **POST** /Accounts/{accountId}/Conferences | Create a Conference *DefaultApi* | [**createAQueue**](docs/Api/DefaultApi.md#createaqueue) | **POST** /Accounts/{accountId}/Queues | Create a Queue *DefaultApi* | [**createAnApplication**](docs/Api/DefaultApi.md#createanapplication) | **POST** /Accounts/{accountId}/Applications | Create an application +*DefaultApi* | [**createExport**](docs/Api/DefaultApi.md#createexport) | **POST** /Accounts/{accountId}/Exports | Create an Export *DefaultApi* | [**createKnowledgeBaseCompletion**](docs/Api/DefaultApi.md#createknowledgebasecompletion) | **POST** /Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion | Query the knowledge base *DefaultApi* | [**deleteARecording**](docs/Api/DefaultApi.md#deletearecording) | **DELETE** /Accounts/{accountId}/Recordings/{recordingId} | Delete a Recording *DefaultApi* | [**deleteAnApplication**](docs/Api/DefaultApi.md#deleteanapplication) | **DELETE** /Accounts/{accountId}/Applications/{applicationId} | Delete an application +*DefaultApi* | [**deleteAnExport**](docs/Api/DefaultApi.md#deleteanexport) | **DELETE** /Accounts/{accountId}/Exports/{exportId} | Delete an Export *DefaultApi* | [**deleteAnIncomingNumber**](docs/Api/DefaultApi.md#deleteanincomingnumber) | **DELETE** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Delete an Incoming Number *DefaultApi* | [**dequeueAMember**](docs/Api/DefaultApi.md#dequeueamember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/{callId} | Dequeue a Member *DefaultApi* | [**dequeueHeadMember**](docs/Api/DefaultApi.md#dequeueheadmember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Dequeue Head Member *DefaultApi* | [**downloadARecordingFile**](docs/Api/DefaultApi.md#downloadarecordingfile) | **GET** /Accounts/{accountId}/Recordings/{recordingId}/Download | Download a Recording File +*DefaultApi* | [**downloadAnExport**](docs/Api/DefaultApi.md#downloadanexport) | **GET** /Accounts/{accountId}/Exports/{exportId}/Download | Download an Export *DefaultApi* | [**filterLogs**](docs/Api/DefaultApi.md#filterlogs) | **POST** /Accounts/{accountId}/Logs | Filter Logs *DefaultApi* | [**getACall**](docs/Api/DefaultApi.md#getacall) | **GET** /Accounts/{accountId}/Calls/{callId} | Get a Call *DefaultApi* | [**getAConference**](docs/Api/DefaultApi.md#getaconference) | **GET** /Accounts/{accountId}/Conferences/{conferenceId} | Get a Conference @@ -141,6 +144,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**getARecording**](docs/Api/DefaultApi.md#getarecording) | **GET** /Accounts/{accountId}/Recordings/{recordingId} | Get a Recording *DefaultApi* | [**getAnAccount**](docs/Api/DefaultApi.md#getanaccount) | **GET** /Accounts/{accountId} | Get an Account *DefaultApi* | [**getAnApplication**](docs/Api/DefaultApi.md#getanapplication) | **GET** /Accounts/{accountId}/Applications/{applicationId} | Get an Application +*DefaultApi* | [**getAnExport**](docs/Api/DefaultApi.md#getanexport) | **GET** /Accounts/{accountId}/Exports/{exportId} | Get an Export *DefaultApi* | [**getAnIncomingNumber**](docs/Api/DefaultApi.md#getanincomingnumber) | **GET** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Get an Incoming Number *DefaultApi* | [**getAnSmsMessage**](docs/Api/DefaultApi.md#getansmsmessage) | **GET** /Accounts/{accountId}/Messages/{messageId} | Get an SMS Message *DefaultApi* | [**getHeadMember**](docs/Api/DefaultApi.md#getheadmember) | **GET** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Get Head Member @@ -161,6 +165,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**listCalls**](docs/Api/DefaultApi.md#listcalls) | **GET** /Accounts/{accountId}/Calls | List Calls *DefaultApi* | [**listConferenceRecordings**](docs/Api/DefaultApi.md#listconferencerecordings) | **GET** /Accounts/{accountId}/Conferences/{conferenceId}/Recordings | List Conference Recordings *DefaultApi* | [**listConferences**](docs/Api/DefaultApi.md#listconferences) | **GET** /Accounts/{accountId}/Conferences | List Conferences +*DefaultApi* | [**listExports**](docs/Api/DefaultApi.md#listexports) | **GET** /Accounts/{accountId}/Exports | List Exports *DefaultApi* | [**listIncomingNumbers**](docs/Api/DefaultApi.md#listincomingnumbers) | **GET** /Accounts/{accountId}/IncomingPhoneNumbers | List Incoming Numbers *DefaultApi* | [**listMembers**](docs/Api/DefaultApi.md#listmembers) | **GET** /Accounts/{accountId}/Queues/{queueId}/Members | List Members *DefaultApi* | [**listParticipants**](docs/Api/DefaultApi.md#listparticipants) | **GET** /Accounts/{accountId}/Conferences/{conferenceId}/Participants | List Participants @@ -221,6 +226,14 @@ Class | Method | HTTP request | Description - [Dequeue](docs/Model/Dequeue.md) - [DequeueWebhook](docs/Model/DequeueWebhook.md) - [Enqueue](docs/Model/Enqueue.md) +- [ExportList](docs/Model/ExportList.md) +- [ExportOutputType](docs/Model/ExportOutputType.md) +- [ExportRequest](docs/Model/ExportRequest.md) +- [ExportRequestOutput](docs/Model/ExportRequestOutput.md) +- [ExportResourceType](docs/Model/ExportResourceType.md) +- [ExportResult](docs/Model/ExportResult.md) +- [ExportResultOutput](docs/Model/ExportResultOutput.md) +- [ExportStatus](docs/Model/ExportStatus.md) - [FilterLogsRequest](docs/Model/FilterLogsRequest.md) - [GetDigits](docs/Model/GetDigits.md) - [GetDigitsReason](docs/Model/GetDigitsReason.md) @@ -347,6 +360,6 @@ support@freeclimb.com This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: `1.0.0` - - Package version: `5.1.1` + - Package version: `5.2.0` - Generator version: `7.9.0` - Build package: `org.openapitools.codegen.languages.PhpClientCodegen` diff --git a/composer.json b/composer.json index d47ce03..a073361 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "freeclimbapi/php-sdk", - "version": "5.1.1", + "version": "5.2.0", "description": "FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.", "keywords": [ "openapitools", diff --git a/composer.lock b/composer.lock index 5c1fb85..a99a2d4 100644 --- a/composer.lock +++ b/composer.lock @@ -4,26 +4,26 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "4c61bba6615e1f22e317f7878d575aa9", + "content-hash": "d7fed7cb060bb4b0eaeffb063b0dbde5", "packages": [ { "name": "guzzlehttp/guzzle", - "version": "7.9.2", + "version": "7.10.0", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "d281ed313b989f213357e3be1a179f02196ac99b" + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/d281ed313b989f213357e3be1a179f02196ac99b", - "reference": "d281ed313b989f213357e3be1a179f02196ac99b", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^1.5.3 || ^2.0.3", - "guzzlehttp/psr7": "^2.7.0", + "guzzlehttp/promises": "^2.3", + "guzzlehttp/psr7": "^2.8", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", "symfony/deprecation-contracts": "^2.2 || ^3.0" @@ -114,7 +114,7 @@ ], "support": { "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/7.9.2" + "source": "https://github.com/guzzle/guzzle/tree/7.10.0" }, "funding": [ { @@ -130,20 +130,20 @@ "type": "tidelift" } ], - "time": "2024-07-24T11:22:20+00:00" + "time": "2025-08-23T22:36:01+00:00" }, { "name": "guzzlehttp/promises", - "version": "2.0.4", + "version": "2.3.0", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455" + "reference": "481557b130ef3790cf82b713667b43030dc9c957" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/f9c436286ab2892c7db7be8c8da4ef61ccf7b455", - "reference": "f9c436286ab2892c7db7be8c8da4ef61ccf7b455", + "url": "https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957", + "reference": "481557b130ef3790cf82b713667b43030dc9c957", "shasum": "" }, "require": { @@ -151,7 +151,7 @@ }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", - "phpunit/phpunit": "^8.5.39 || ^9.6.20" + "phpunit/phpunit": "^8.5.44 || ^9.6.25" }, "type": "library", "extra": { @@ -197,7 +197,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/2.0.4" + "source": "https://github.com/guzzle/promises/tree/2.3.0" }, "funding": [ { @@ -213,20 +213,20 @@ "type": "tidelift" } ], - "time": "2024-10-17T10:06:22+00:00" + "time": "2025-08-22T14:34:08+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.7.0", + "version": "2.8.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201" + "reference": "21dc724a0583619cd1652f673303492272778051" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/a70f5c95fb43bc83f07c9c948baa0dc1829bf201", - "reference": "a70f5c95fb43bc83f07c9c948baa0dc1829bf201", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/21dc724a0583619cd1652f673303492272778051", + "reference": "21dc724a0583619cd1652f673303492272778051", "shasum": "" }, "require": { @@ -242,7 +242,7 @@ "require-dev": { "bamarni/composer-bin-plugin": "^1.8.2", "http-interop/http-factory-tests": "0.9.0", - "phpunit/phpunit": "^8.5.39 || ^9.6.20" + "phpunit/phpunit": "^8.5.44 || ^9.6.25" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" @@ -313,7 +313,7 @@ ], "support": { "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/2.7.0" + "source": "https://github.com/guzzle/psr7/tree/2.8.0" }, "funding": [ { @@ -329,7 +329,7 @@ "type": "tidelift" } ], - "time": "2024-07-18T11:15:46+00:00" + "time": "2025-08-23T21:21:41+00:00" }, { "name": "psr/http-client", @@ -537,16 +537,16 @@ }, { "name": "symfony/deprecation-contracts", - "version": "v3.5.1", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", - "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62", "shasum": "" }, "require": { @@ -559,7 +559,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.5-dev" + "dev-main": "3.6-dev" } }, "autoload": { @@ -584,7 +584,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0" }, "funding": [ { @@ -600,7 +600,7 @@ "type": "tidelift" } ], - "time": "2024-09-25T14:20:29+00:00" + "time": "2024-09-25T14:21:43+00:00" } ], "packages-dev": [ @@ -749,16 +749,16 @@ }, { "name": "composer/semver", - "version": "3.4.3", + "version": "3.4.4", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12" + "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", - "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "url": "https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95", + "reference": "198166618906cb2de69b95d7d47e5fa8aa1b2b95", "shasum": "" }, "require": { @@ -810,7 +810,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.3" + "source": "https://github.com/composer/semver/tree/3.4.4" }, "funding": [ { @@ -820,13 +820,9 @@ { "url": "https://github.com/composer", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/composer/composer", - "type": "tidelift" } ], - "time": "2024-09-19T14:15:21+00:00" + "time": "2025-08-20T19:15:30+00:00" }, { "name": "composer/xdebug-handler", @@ -1013,16 +1009,16 @@ }, { "name": "fidry/cpu-core-counter", - "version": "1.2.0", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/theofidry/cpu-core-counter.git", - "reference": "8520451a140d3f46ac33042715115e290cf5785f" + "reference": "db9508f7b1474469d9d3c53b86f817e344732678" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/8520451a140d3f46ac33042715115e290cf5785f", - "reference": "8520451a140d3f46ac33042715115e290cf5785f", + "url": "https://api.github.com/repos/theofidry/cpu-core-counter/zipball/db9508f7b1474469d9d3c53b86f817e344732678", + "reference": "db9508f7b1474469d9d3c53b86f817e344732678", "shasum": "" }, "require": { @@ -1032,10 +1028,10 @@ "fidry/makefile": "^0.2.0", "fidry/php-cs-fixer-config": "^1.1.2", "phpstan/extension-installer": "^1.2.0", - "phpstan/phpstan": "^1.9.2", - "phpstan/phpstan-deprecation-rules": "^1.0.0", - "phpstan/phpstan-phpunit": "^1.2.2", - "phpstan/phpstan-strict-rules": "^1.4.4", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-deprecation-rules": "^2.0.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", "phpunit/phpunit": "^8.5.31 || ^9.5.26", "webmozarts/strict-phpunit": "^7.5" }, @@ -1062,7 +1058,7 @@ ], "support": { "issues": "https://github.com/theofidry/cpu-core-counter/issues", - "source": "https://github.com/theofidry/cpu-core-counter/tree/1.2.0" + "source": "https://github.com/theofidry/cpu-core-counter/tree/1.3.0" }, "funding": [ { @@ -1070,61 +1066,62 @@ "type": "github" } ], - "time": "2024-08-06T10:04:20+00:00" + "time": "2025-08-14T07:29:31+00:00" }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.69.1", + "version": "v3.87.2", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "13b0c0eede38c11cd674b080f2b485d0f14ffa9f" + "reference": "da5f0a7858c79b56fc0b8c36d3efcfe5f37f0992" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/13b0c0eede38c11cd674b080f2b485d0f14ffa9f", - "reference": "13b0c0eede38c11cd674b080f2b485d0f14ffa9f", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/da5f0a7858c79b56fc0b8c36d3efcfe5f37f0992", + "reference": "da5f0a7858c79b56fc0b8c36d3efcfe5f37f0992", "shasum": "" }, "require": { - "clue/ndjson-react": "^1.0", + "clue/ndjson-react": "^1.3", "composer/semver": "^3.4", - "composer/xdebug-handler": "^3.0.3", + "composer/xdebug-handler": "^3.0.5", "ext-filter": "*", + "ext-hash": "*", "ext-json": "*", "ext-tokenizer": "*", - "fidry/cpu-core-counter": "^1.2", + "fidry/cpu-core-counter": "^1.3", "php": "^7.4 || ^8.0", - "react/child-process": "^0.6.5", - "react/event-loop": "^1.0", - "react/promise": "^2.0 || ^3.0", - "react/socket": "^1.0", - "react/stream": "^1.0", - "sebastian/diff": "^4.0 || ^5.1 || ^6.0 || ^7.0", - "symfony/console": "^5.4 || ^6.4 || ^7.0", - "symfony/event-dispatcher": "^5.4 || ^6.4 || ^7.0", - "symfony/filesystem": "^5.4 || ^6.4 || ^7.0", - "symfony/finder": "^5.4 || ^6.4 || ^7.0", - "symfony/options-resolver": "^5.4 || ^6.4 || ^7.0", - "symfony/polyfill-mbstring": "^1.31", - "symfony/polyfill-php80": "^1.31", - "symfony/polyfill-php81": "^1.31", - "symfony/process": "^5.4 || ^6.4 || ^7.2", - "symfony/stopwatch": "^5.4 || ^6.4 || ^7.0" + "react/child-process": "^0.6.6", + "react/event-loop": "^1.5", + "react/promise": "^3.3", + "react/socket": "^1.16", + "react/stream": "^1.4", + "sebastian/diff": "^4.0.6 || ^5.1.1 || ^6.0.2 || ^7.0", + "symfony/console": "^5.4.47 || ^6.4.24 || ^7.0", + "symfony/event-dispatcher": "^5.4.45 || ^6.4.24 || ^7.0", + "symfony/filesystem": "^5.4.45 || ^6.4.24 || ^7.0", + "symfony/finder": "^5.4.45 || ^6.4.24 || ^7.0", + "symfony/options-resolver": "^5.4.45 || ^6.4.24 || ^7.0", + "symfony/polyfill-mbstring": "^1.33", + "symfony/polyfill-php80": "^1.33", + "symfony/polyfill-php81": "^1.33", + "symfony/process": "^5.4.47 || ^6.4.24 || ^7.2", + "symfony/stopwatch": "^5.4.45 || ^6.4.24 || ^7.0" }, "require-dev": { - "facile-it/paraunit": "^1.3.1 || ^2.5", - "infection/infection": "^0.29.10", - "justinrainbow/json-schema": "^5.3 || ^6.0", - "keradus/cli-executor": "^2.1", + "facile-it/paraunit": "^1.3.1 || ^2.7", + "infection/infection": "^0.29.14", + "justinrainbow/json-schema": "^6.5", + "keradus/cli-executor": "^2.2", "mikey179/vfsstream": "^1.6.12", - "php-coveralls/php-coveralls": "^2.7", - "php-cs-fixer/accessible-object": "^1.1", + "php-coveralls/php-coveralls": "^2.8", "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.6", "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.6", - "phpunit/phpunit": "^9.6.22 || ^10.5.45 || ^11.5.7", - "symfony/var-dumper": "^5.4.48 || ^6.4.18 || ^7.2.0", - "symfony/yaml": "^5.4.45 || ^6.4.18 || ^7.2.0" + "phpunit/phpunit": "^9.6.25 || ^10.5.53 || ^11.5.34", + "symfony/polyfill-php84": "^1.33", + "symfony/var-dumper": "^5.4.48 || ^6.4.24 || ^7.3.2", + "symfony/yaml": "^5.4.45 || ^6.4.24 || ^7.3.2" }, "suggest": { "ext-dom": "For handling output formats in XML", @@ -1165,7 +1162,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.69.1" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.87.2" }, "funding": [ { @@ -1173,20 +1170,20 @@ "type": "github" } ], - "time": "2025-02-18T23:57:43+00:00" + "time": "2025-09-10T09:51:40+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.13.0", + "version": "1.13.4", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "024473a478be9df5fdaca2c793f2232fe788e414" + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/024473a478be9df5fdaca2c793f2232fe788e414", - "reference": "024473a478be9df5fdaca2c793f2232fe788e414", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", "shasum": "" }, "require": { @@ -1225,7 +1222,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.13.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" }, "funding": [ { @@ -1233,20 +1230,20 @@ "type": "tidelift" } ], - "time": "2025-02-12T12:17:51+00:00" + "time": "2025-08-01T08:46:24+00:00" }, { "name": "nikic/php-parser", - "version": "v5.4.0", + "version": "v5.6.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "447a020a1f875a434d62f2a401f53b82a396e494" + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/447a020a1f875a434d62f2a401f53b82a396e494", - "reference": "447a020a1f875a434d62f2a401f53b82a396e494", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", "shasum": "" }, "require": { @@ -1265,7 +1262,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "5.x-dev" } }, "autoload": { @@ -1289,9 +1286,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.4.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.1" }, - "time": "2024-12-30T11:07:19+00:00" + "time": "2025-08-13T20:13:15+00:00" }, { "name": "phar-io/manifest", @@ -1732,16 +1729,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.22", + "version": "9.6.28", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "f80235cb4d3caa59ae09be3adf1ded27521d1a9c" + "reference": "a8017241a554a259997a5285eee5d10c69ff7187" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f80235cb4d3caa59ae09be3adf1ded27521d1a9c", - "reference": "f80235cb4d3caa59ae09be3adf1ded27521d1a9c", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a8017241a554a259997a5285eee5d10c69ff7187", + "reference": "a8017241a554a259997a5285eee5d10c69ff7187", "shasum": "" }, "require": { @@ -1752,7 +1749,7 @@ "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.12.1", + "myclabs/deep-copy": "^1.13.4", "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", "php": ">=7.3", @@ -1763,11 +1760,11 @@ "phpunit/php-timer": "^5.0.3", "sebastian/cli-parser": "^1.0.2", "sebastian/code-unit": "^1.0.8", - "sebastian/comparator": "^4.0.8", + "sebastian/comparator": "^4.0.9", "sebastian/diff": "^4.0.6", "sebastian/environment": "^5.1.5", - "sebastian/exporter": "^4.0.6", - "sebastian/global-state": "^5.0.7", + "sebastian/exporter": "^4.0.7", + "sebastian/global-state": "^5.0.8", "sebastian/object-enumerator": "^4.0.4", "sebastian/resource-operations": "^3.0.4", "sebastian/type": "^3.2.1", @@ -1815,7 +1812,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.22" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.28" }, "funding": [ { @@ -1826,12 +1823,20 @@ "url": "https://github.com/sebastianbergmann", "type": "github" }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, { "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", "type": "tidelift" } ], - "time": "2024-12-05T13:48:26+00:00" + "time": "2025-09-23T06:20:12+00:00" }, { "name": "psr/container", @@ -2283,23 +2288,23 @@ }, { "name": "react/promise", - "version": "v3.2.0", + "version": "v3.3.0", "source": { "type": "git", "url": "https://github.com/reactphp/promise.git", - "reference": "8a164643313c71354582dc850b42b33fa12a4b63" + "reference": "23444f53a813a3296c1368bb104793ce8d88f04a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise/zipball/8a164643313c71354582dc850b42b33fa12a4b63", - "reference": "8a164643313c71354582dc850b42b33fa12a4b63", + "url": "https://api.github.com/repos/reactphp/promise/zipball/23444f53a813a3296c1368bb104793ce8d88f04a", + "reference": "23444f53a813a3296c1368bb104793ce8d88f04a", "shasum": "" }, "require": { "php": ">=7.1.0" }, "require-dev": { - "phpstan/phpstan": "1.10.39 || 1.4.10", + "phpstan/phpstan": "1.12.28 || 1.4.10", "phpunit/phpunit": "^9.6 || ^7.5" }, "type": "library", @@ -2344,7 +2349,7 @@ ], "support": { "issues": "https://github.com/reactphp/promise/issues", - "source": "https://github.com/reactphp/promise/tree/v3.2.0" + "source": "https://github.com/reactphp/promise/tree/v3.3.0" }, "funding": [ { @@ -2352,7 +2357,7 @@ "type": "open_collective" } ], - "time": "2024-05-24T10:39:05+00:00" + "time": "2025-08-19T18:57:03+00:00" }, { "name": "react/socket", @@ -2681,16 +2686,16 @@ }, { "name": "sebastian/comparator", - "version": "4.0.8", + "version": "4.0.9", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a" + "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", - "reference": "fa0f136dd2334583309d32b62544682ee972b51a", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/67a2df3a62639eab2cc5906065e9805d4fd5dfc5", + "reference": "67a2df3a62639eab2cc5906065e9805d4fd5dfc5", "shasum": "" }, "require": { @@ -2743,15 +2748,27 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.9" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", + "type": "tidelift" } ], - "time": "2022-09-14T12:41:17+00:00" + "time": "2025-08-10T06:51:50+00:00" }, { "name": "sebastian/complexity", @@ -2941,16 +2958,16 @@ }, { "name": "sebastian/exporter", - "version": "4.0.6", + "version": "4.0.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72" + "reference": "eb49b981ef0817890129cb70f774506bebe57740" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/78c00df8f170e02473b682df15bfcdacc3d32d72", - "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/eb49b981ef0817890129cb70f774506bebe57740", + "reference": "eb49b981ef0817890129cb70f774506bebe57740", "shasum": "" }, "require": { @@ -3006,28 +3023,40 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.6" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.7" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/exporter", + "type": "tidelift" } ], - "time": "2024-03-02T06:33:00+00:00" + "time": "2025-09-22T05:18:21+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.7", + "version": "5.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9" + "reference": "b6781316bdcd28260904e7cc18ec983d0d2ef4f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", - "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/b6781316bdcd28260904e7cc18ec983d0d2ef4f6", + "reference": "b6781316bdcd28260904e7cc18ec983d0d2ef4f6", "shasum": "" }, "require": { @@ -3070,15 +3099,27 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.7" + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.8" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", + "type": "tidelift" } ], - "time": "2024-03-02T06:35:11+00:00" + "time": "2025-08-10T07:10:35+00:00" }, { "name": "sebastian/lines-of-code", @@ -3251,16 +3292,16 @@ }, { "name": "sebastian/recursion-context", - "version": "4.0.5", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1" + "reference": "539c6691e0623af6dc6f9c20384c120f963465a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", - "reference": "e75bd0f07204fec2a0af9b0f3cfe97d05f92efc1", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/539c6691e0623af6dc6f9c20384c120f963465a0", + "reference": "539c6691e0623af6dc6f9c20384c120f963465a0", "shasum": "" }, "require": { @@ -3302,15 +3343,27 @@ "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.6" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", + "type": "tidelift" } ], - "time": "2023-02-03T06:07:39+00:00" + "time": "2025-08-10T06:57:39+00:00" }, { "name": "sebastian/resource-operations", @@ -3477,23 +3530,24 @@ }, { "name": "symfony/console", - "version": "v7.2.1", + "version": "v7.3.3", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "fefcc18c0f5d0efe3ab3152f15857298868dc2c3" + "reference": "cb0102a1c5ac3807cf3fdf8bea96007df7fdbea7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/fefcc18c0f5d0efe3ab3152f15857298868dc2c3", - "reference": "fefcc18c0f5d0efe3ab3152f15857298868dc2c3", + "url": "https://api.github.com/repos/symfony/console/zipball/cb0102a1c5ac3807cf3fdf8bea96007df7fdbea7", + "reference": "cb0102a1c5ac3807cf3fdf8bea96007df7fdbea7", "shasum": "" }, "require": { "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", "symfony/polyfill-mbstring": "~1.0", "symfony/service-contracts": "^2.5|^3", - "symfony/string": "^6.4|^7.0" + "symfony/string": "^7.2" }, "conflict": { "symfony/dependency-injection": "<6.4", @@ -3550,7 +3604,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.2.1" + "source": "https://github.com/symfony/console/tree/v7.3.3" }, "funding": [ { @@ -3561,25 +3615,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-12-11T03:49:26+00:00" + "time": "2025-08-25T06:35:40+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v7.2.0", + "version": "v7.3.3", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "910c5db85a5356d0fea57680defec4e99eb9c8c1" + "reference": "b7dc69e71de420ac04bc9ab830cf3ffebba48191" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/910c5db85a5356d0fea57680defec4e99eb9c8c1", - "reference": "910c5db85a5356d0fea57680defec4e99eb9c8c1", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/b7dc69e71de420ac04bc9ab830cf3ffebba48191", + "reference": "b7dc69e71de420ac04bc9ab830cf3ffebba48191", "shasum": "" }, "require": { @@ -3630,7 +3688,7 @@ "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v7.2.0" + "source": "https://github.com/symfony/event-dispatcher/tree/v7.3.3" }, "funding": [ { @@ -3641,25 +3699,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-25T14:21:43+00:00" + "time": "2025-08-13T11:49:31+00:00" }, { "name": "symfony/event-dispatcher-contracts", - "version": "v3.5.1", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher-contracts.git", - "reference": "7642f5e970b672283b7823222ae8ef8bbc160b9f" + "reference": "59eb412e93815df44f05f342958efa9f46b1e586" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7642f5e970b672283b7823222ae8ef8bbc160b9f", - "reference": "7642f5e970b672283b7823222ae8ef8bbc160b9f", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/59eb412e93815df44f05f342958efa9f46b1e586", + "reference": "59eb412e93815df44f05f342958efa9f46b1e586", "shasum": "" }, "require": { @@ -3673,7 +3735,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.5-dev" + "dev-main": "3.6-dev" } }, "autoload": { @@ -3706,7 +3768,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.5.1" + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.6.0" }, "funding": [ { @@ -3722,20 +3784,20 @@ "type": "tidelift" } ], - "time": "2024-09-25T14:20:29+00:00" + "time": "2024-09-25T14:21:43+00:00" }, { "name": "symfony/filesystem", - "version": "v7.2.0", + "version": "v7.3.2", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "b8dce482de9d7c9fe2891155035a7248ab5c7fdb" + "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/b8dce482de9d7c9fe2891155035a7248ab5c7fdb", - "reference": "b8dce482de9d7c9fe2891155035a7248ab5c7fdb", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/edcbb768a186b5c3f25d0643159a787d3e63b7fd", + "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd", "shasum": "" }, "require": { @@ -3772,7 +3834,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v7.2.0" + "source": "https://github.com/symfony/filesystem/tree/v7.3.2" }, "funding": [ { @@ -3783,25 +3845,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-10-25T15:15:23+00:00" + "time": "2025-07-07T08:17:47+00:00" }, { "name": "symfony/finder", - "version": "v7.2.2", + "version": "v7.3.2", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "87a71856f2f56e4100373e92529eed3171695cfb" + "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/87a71856f2f56e4100373e92529eed3171695cfb", - "reference": "87a71856f2f56e4100373e92529eed3171695cfb", + "url": "https://api.github.com/repos/symfony/finder/zipball/2a6614966ba1074fa93dae0bc804227422df4dfe", + "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe", "shasum": "" }, "require": { @@ -3836,7 +3902,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.2.2" + "source": "https://github.com/symfony/finder/tree/v7.3.2" }, "funding": [ { @@ -3847,25 +3913,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-12-30T19:00:17+00:00" + "time": "2025-07-15T13:41:35+00:00" }, { "name": "symfony/options-resolver", - "version": "v7.2.0", + "version": "v7.3.3", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "7da8fbac9dcfef75ffc212235d76b2754ce0cf50" + "reference": "0ff2f5c3df08a395232bbc3c2eb7e84912df911d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/7da8fbac9dcfef75ffc212235d76b2754ce0cf50", - "reference": "7da8fbac9dcfef75ffc212235d76b2754ce0cf50", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/0ff2f5c3df08a395232bbc3c2eb7e84912df911d", + "reference": "0ff2f5c3df08a395232bbc3c2eb7e84912df911d", "shasum": "" }, "require": { @@ -3903,7 +3973,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v7.2.0" + "source": "https://github.com/symfony/options-resolver/tree/v7.3.3" }, "funding": [ { @@ -3914,16 +3984,20 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-11-20T11:17:29+00:00" + "time": "2025-08-05T10:16:07+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", @@ -3982,7 +4056,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.33.0" }, "funding": [ { @@ -3993,6 +4067,10 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" @@ -4002,16 +4080,16 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe" + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", - "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/380872130d3a5dd3ace2f4010d95125fde5d5c70", + "reference": "380872130d3a5dd3ace2f4010d95125fde5d5c70", "shasum": "" }, "require": { @@ -4060,7 +4138,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.33.0" }, "funding": [ { @@ -4071,16 +4149,20 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2025-06-27T09:58:17+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", @@ -4141,7 +4223,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.33.0" }, "funding": [ { @@ -4152,6 +4234,10 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" @@ -4161,19 +4247,20 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", - "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", "shasum": "" }, "require": { + "ext-iconv": "*", "php": ">=7.2" }, "provide": { @@ -4221,7 +4308,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0" }, "funding": [ { @@ -4232,25 +4319,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2024-12-23T08:48:59+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" + "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", - "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608", + "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608", "shasum": "" }, "require": { @@ -4301,7 +4392,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.33.0" }, "funding": [ { @@ -4312,16 +4403,20 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2025-01-02T08:10:11+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.31.0", + "version": "v1.33.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", @@ -4377,7 +4472,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.31.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.33.0" }, "funding": [ { @@ -4388,6 +4483,10 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" @@ -4397,16 +4496,16 @@ }, { "name": "symfony/process", - "version": "v7.2.0", + "version": "v7.3.3", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "d34b22ba9390ec19d2dd966c40aa9e8462f27a7e" + "reference": "32241012d521e2e8a9d713adb0812bb773b907f1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/d34b22ba9390ec19d2dd966c40aa9e8462f27a7e", - "reference": "d34b22ba9390ec19d2dd966c40aa9e8462f27a7e", + "url": "https://api.github.com/repos/symfony/process/zipball/32241012d521e2e8a9d713adb0812bb773b907f1", + "reference": "32241012d521e2e8a9d713adb0812bb773b907f1", "shasum": "" }, "require": { @@ -4438,7 +4537,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v7.2.0" + "source": "https://github.com/symfony/process/tree/v7.3.3" }, "funding": [ { @@ -4449,25 +4548,29 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-11-06T14:24:19+00:00" + "time": "2025-08-18T09:42:54+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.5.1", + "version": "v3.6.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0" + "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e53260aabf78fb3d63f8d79d69ece59f80d5eda0", - "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4", + "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4", "shasum": "" }, "require": { @@ -4485,7 +4588,7 @@ "name": "symfony/contracts" }, "branch-alias": { - "dev-main": "3.5-dev" + "dev-main": "3.6-dev" } }, "autoload": { @@ -4521,7 +4624,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.5.1" + "source": "https://github.com/symfony/service-contracts/tree/v3.6.0" }, "funding": [ { @@ -4537,20 +4640,20 @@ "type": "tidelift" } ], - "time": "2024-09-25T14:20:29+00:00" + "time": "2025-04-25T09:37:31+00:00" }, { "name": "symfony/stopwatch", - "version": "v7.2.2", + "version": "v7.3.0", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "e46690d5b9d7164a6d061cab1e8d46141b9f49df" + "reference": "5a49289e2b308214c8b9c2fda4ea454d8b8ad7cd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/e46690d5b9d7164a6d061cab1e8d46141b9f49df", - "reference": "e46690d5b9d7164a6d061cab1e8d46141b9f49df", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/5a49289e2b308214c8b9c2fda4ea454d8b8ad7cd", + "reference": "5a49289e2b308214c8b9c2fda4ea454d8b8ad7cd", "shasum": "" }, "require": { @@ -4583,7 +4686,7 @@ "description": "Provides a way to profile code", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/stopwatch/tree/v7.2.2" + "source": "https://github.com/symfony/stopwatch/tree/v7.3.0" }, "funding": [ { @@ -4599,20 +4702,20 @@ "type": "tidelift" } ], - "time": "2024-12-18T14:28:33+00:00" + "time": "2025-02-24T10:49:57+00:00" }, { "name": "symfony/string", - "version": "v7.2.0", + "version": "v7.3.3", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "446e0d146f991dde3e73f45f2c97a9faad773c82" + "reference": "17a426cce5fd1f0901fefa9b2a490d0038fd3c9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/446e0d146f991dde3e73f45f2c97a9faad773c82", - "reference": "446e0d146f991dde3e73f45f2c97a9faad773c82", + "url": "https://api.github.com/repos/symfony/string/zipball/17a426cce5fd1f0901fefa9b2a490d0038fd3c9c", + "reference": "17a426cce5fd1f0901fefa9b2a490d0038fd3c9c", "shasum": "" }, "require": { @@ -4670,7 +4773,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.2.0" + "source": "https://github.com/symfony/string/tree/v7.3.3" }, "funding": [ { @@ -4681,12 +4784,16 @@ "url": "https://github.com/fabpot", "type": "github" }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, { "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", "type": "tidelift" } ], - "time": "2024-11-13T13:31:26+00:00" + "time": "2025-08-25T06:35:40+00:00" }, { "name": "theseer/tokenizer", diff --git a/docs/Api/DefaultApi.md b/docs/Api/DefaultApi.md index c5966e9..4608db5 100644 --- a/docs/Api/DefaultApi.md +++ b/docs/Api/DefaultApi.md @@ -8,13 +8,16 @@ All URIs are relative to https://www.freeclimb.com/apiserver, except if the oper | [**createAConference()**](DefaultApi.md#createAConference) | **POST** /Accounts/{accountId}/Conferences | Create a Conference | | [**createAQueue()**](DefaultApi.md#createAQueue) | **POST** /Accounts/{accountId}/Queues | Create a Queue | | [**createAnApplication()**](DefaultApi.md#createAnApplication) | **POST** /Accounts/{accountId}/Applications | Create an application | +| [**createExport()**](DefaultApi.md#createExport) | **POST** /Accounts/{accountId}/Exports | Create an Export | | [**createKnowledgeBaseCompletion()**](DefaultApi.md#createKnowledgeBaseCompletion) | **POST** /Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion | Query the knowledge base | | [**deleteARecording()**](DefaultApi.md#deleteARecording) | **DELETE** /Accounts/{accountId}/Recordings/{recordingId} | Delete a Recording | | [**deleteAnApplication()**](DefaultApi.md#deleteAnApplication) | **DELETE** /Accounts/{accountId}/Applications/{applicationId} | Delete an application | +| [**deleteAnExport()**](DefaultApi.md#deleteAnExport) | **DELETE** /Accounts/{accountId}/Exports/{exportId} | Delete an Export | | [**deleteAnIncomingNumber()**](DefaultApi.md#deleteAnIncomingNumber) | **DELETE** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Delete an Incoming Number | | [**dequeueAMember()**](DefaultApi.md#dequeueAMember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/{callId} | Dequeue a Member | | [**dequeueHeadMember()**](DefaultApi.md#dequeueHeadMember) | **POST** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Dequeue Head Member | | [**downloadARecordingFile()**](DefaultApi.md#downloadARecordingFile) | **GET** /Accounts/{accountId}/Recordings/{recordingId}/Download | Download a Recording File | +| [**downloadAnExport()**](DefaultApi.md#downloadAnExport) | **GET** /Accounts/{accountId}/Exports/{exportId}/Download | Download an Export | | [**filterLogs()**](DefaultApi.md#filterLogs) | **POST** /Accounts/{accountId}/Logs | Filter Logs | | [**getACall()**](DefaultApi.md#getACall) | **GET** /Accounts/{accountId}/Calls/{callId} | Get a Call | | [**getAConference()**](DefaultApi.md#getAConference) | **GET** /Accounts/{accountId}/Conferences/{conferenceId} | Get a Conference | @@ -24,6 +27,7 @@ All URIs are relative to https://www.freeclimb.com/apiserver, except if the oper | [**getARecording()**](DefaultApi.md#getARecording) | **GET** /Accounts/{accountId}/Recordings/{recordingId} | Get a Recording | | [**getAnAccount()**](DefaultApi.md#getAnAccount) | **GET** /Accounts/{accountId} | Get an Account | | [**getAnApplication()**](DefaultApi.md#getAnApplication) | **GET** /Accounts/{accountId}/Applications/{applicationId} | Get an Application | +| [**getAnExport()**](DefaultApi.md#getAnExport) | **GET** /Accounts/{accountId}/Exports/{exportId} | Get an Export | | [**getAnIncomingNumber()**](DefaultApi.md#getAnIncomingNumber) | **GET** /Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId} | Get an Incoming Number | | [**getAnSmsMessage()**](DefaultApi.md#getAnSmsMessage) | **GET** /Accounts/{accountId}/Messages/{messageId} | Get an SMS Message | | [**getHeadMember()**](DefaultApi.md#getHeadMember) | **GET** /Accounts/{accountId}/Queues/{queueId}/Members/Front | Get Head Member | @@ -44,6 +48,7 @@ All URIs are relative to https://www.freeclimb.com/apiserver, except if the oper | [**listCalls()**](DefaultApi.md#listCalls) | **GET** /Accounts/{accountId}/Calls | List Calls | | [**listConferenceRecordings()**](DefaultApi.md#listConferenceRecordings) | **GET** /Accounts/{accountId}/Conferences/{conferenceId}/Recordings | List Conference Recordings | | [**listConferences()**](DefaultApi.md#listConferences) | **GET** /Accounts/{accountId}/Conferences | List Conferences | +| [**listExports()**](DefaultApi.md#listExports) | **GET** /Accounts/{accountId}/Exports | List Exports | | [**listIncomingNumbers()**](DefaultApi.md#listIncomingNumbers) | **GET** /Accounts/{accountId}/IncomingPhoneNumbers | List Incoming Numbers | | [**listMembers()**](DefaultApi.md#listMembers) | **GET** /Accounts/{accountId}/Queues/{queueId}/Members | List Members | | [**listParticipants()**](DefaultApi.md#listParticipants) | **GET** /Accounts/{accountId}/Conferences/{conferenceId}/Participants | List Participants | @@ -303,6 +308,66 @@ try { [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) +## `createExport()` + +```php +createExport($export_request): \FreeClimb\Api\Model\ExportResult +``` + +Create an Export + +### Example + +```php +setUsername('YOUR_ACCOUNT_ID') + ->setPassword('YOUR_API_KEY'); + + +$apiInstance = new FreeClimb\Api\Api\DefaultApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$export_request = new \FreeClimb\Api\Model\ExportRequest(); // \FreeClimb\Api\Model\ExportRequest | A JSON object containing export creation parameters + +try { + $result = $apiInstance->createExport($export_request); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling DefaultApi->createExport: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **export_request** | [**\FreeClimb\Api\Model\ExportRequest**](../Model/ExportRequest.md)| A JSON object containing export creation parameters | [optional] | + +### Return type + +[**\FreeClimb\Api\Model\ExportResult**](../Model/ExportResult.md) + +### Authorization + +[fc](../../README.md#fc) + +### HTTP request headers + +- **Content-Type**: `application/json` +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + ## `createKnowledgeBaseCompletion()` ```php @@ -483,6 +548,65 @@ void (empty response body) [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) +## `deleteAnExport()` + +```php +deleteAnExport($export_id) +``` + +Delete an Export + +### Example + +```php +setUsername('YOUR_ACCOUNT_ID') + ->setPassword('YOUR_API_KEY'); + + +$apiInstance = new FreeClimb\Api\Api\DefaultApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$export_id = 'export_id_example'; // string | A string that uniquely identifies this export resource. + +try { + $apiInstance->deleteAnExport($export_id); +} catch (Exception $e) { + echo 'Exception when calling DefaultApi->deleteAnExport: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **export_id** | **string**| A string that uniquely identifies this export resource. | | + +### Return type + +void (empty response body) + +### Authorization + +[fc](../../README.md#fc) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + ## `deleteAnIncomingNumber()` ```php @@ -724,6 +848,66 @@ try { [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) +## `downloadAnExport()` + +```php +downloadAnExport($export_id): string +``` + +Download an Export + +### Example + +```php +setUsername('YOUR_ACCOUNT_ID') + ->setPassword('YOUR_API_KEY'); + + +$apiInstance = new FreeClimb\Api\Api\DefaultApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$export_id = 'export_id_example'; // string | A string that uniquely identifies this export resource. + +try { + $result = $apiInstance->downloadAnExport($export_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling DefaultApi->downloadAnExport: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **export_id** | **string**| A string that uniquely identifies this export resource. | | + +### Return type + +**string** + +### Authorization + +[fc](../../README.md#fc) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `text/csv` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + ## `filterLogs()` ```php @@ -1265,6 +1449,66 @@ try { [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) +## `getAnExport()` + +```php +getAnExport($export_id): \FreeClimb\Api\Model\ExportResult +``` + +Get an Export + +### Example + +```php +setUsername('YOUR_ACCOUNT_ID') + ->setPassword('YOUR_API_KEY'); + + +$apiInstance = new FreeClimb\Api\Api\DefaultApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$export_id = 'export_id_example'; // string | A string that uniquely identifies this export resource. + +try { + $result = $apiInstance->getAnExport($export_id); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling DefaultApi->getAnExport: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **export_id** | **string**| A string that uniquely identifies this export resource. | | + +### Return type + +[**\FreeClimb\Api\Model\ExportResult**](../Model/ExportResult.md) + +### Authorization + +[fc](../../README.md#fc) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + ## `getAnIncomingNumber()` ```php @@ -2299,7 +2543,7 @@ try { ## `listCalls()` ```php -listCalls($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id): \FreeClimb\Api\Model\CallList +listCalls($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max): \FreeClimb\Api\Model\CallList ``` List Calls @@ -2331,9 +2575,11 @@ $start_time = 'start_time_example'; // string | Only show Calls that started at $end_time = 'end_time_example'; // string | Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. $parent_call_id = 'parent_call_id_example'; // string | Only show Calls spawned by the call with this ID. $application_id = array('application_id_example'); // string[] | Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. +$risk_score_min = 56; // int | The minimum riskScore that should be included in the list. +$risk_score_max = 56; // int | The maximum riskScore that should be included in the list. try { - $result = $apiInstance->listCalls($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id); + $result = $apiInstance->listCalls($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->listCalls: ', $e->getMessage(), PHP_EOL; @@ -2352,6 +2598,8 @@ try { | **end_time** | **string**| Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. | [optional] | | **parent_call_id** | **string**| Only show Calls spawned by the call with this ID. | [optional] | | **application_id** | [**string[]**](../Model/string.md)| Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. | [optional] | +| **risk_score_min** | **int**| The minimum riskScore that should be included in the list. | [optional] | +| **risk_score_max** | **int**| The maximum riskScore that should be included in the list. | [optional] | ### Return type @@ -2500,6 +2748,68 @@ try { [[Back to Model list]](../../README.md#models) [[Back to README]](../../README.md) +## `listExports()` + +```php +listExports($status, $cursor): \FreeClimb\Api\Model\ExportList +``` + +List Exports + +### Example + +```php +setUsername('YOUR_ACCOUNT_ID') + ->setPassword('YOUR_API_KEY'); + + +$apiInstance = new FreeClimb\Api\Api\DefaultApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$status = new \FreeClimb\Api\Model\\FreeClimb\Api\Model\ExportStatus(); // \FreeClimb\Api\Model\ExportStatus | Status of export +$cursor = 'cursor_example'; // string | Used to reference pages of a list of exports + +try { + $result = $apiInstance->listExports($status, $cursor); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling DefaultApi->listExports: ', $e->getMessage(), PHP_EOL; +} +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------- | ------------- | ------------- | ------------- | +| **status** | [**\FreeClimb\Api\Model\ExportStatus**](../Model/.md)| Status of export | [optional] | +| **cursor** | **string**| Used to reference pages of a list of exports | [optional] | + +### Return type + +[**\FreeClimb\Api\Model\ExportList**](../Model/ExportList.md) + +### Authorization + +[fc](../../README.md#fc) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: `application/json` + +[[Back to top]](#) [[Back to API list]](../../README.md#endpoints) +[[Back to Model list]](../../README.md#models) +[[Back to README]](../../README.md) + ## `listIncomingNumbers()` ```php diff --git a/docs/Model/CallResult.md b/docs/Model/CallResult.md index 33aadc9..1782590 100644 --- a/docs/Model/CallResult.md +++ b/docs/Model/CallResult.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **from** | **string** | Phone number that initiated this Call. | [optional] **to** | **string** | Phone number that received this Call. | [optional] **phone_number_id** | **string** | If the Call was inbound, this is the ID of the IncomingPhoneNumber that received the Call (DNIS). If the Call was outbound, this is the ID of the phone number from which the Call was placed (ANI). | [optional] -**call_status** | [**\FreeClimb\Api\Model\CallStatus**](CallStatus.md) | | [optional] +**status** | [**\FreeClimb\Api\Model\CallStatus**](CallStatus.md) | | [optional] **start_time** | **string** | Start time of the Call (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call has not yet been dialed. | [optional] **connect_time** | **string** | Time the Call was answered (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call has not yet been dialed. | [optional] **end_time** | **string** | End time of the Call (GMT) in RFC 1123 format (e.g., Mon, 15 Jun 2009 20:45:30 GMT). Empty if the Call did not complete successfully. | [optional] diff --git a/docs/Model/CreateConference.md b/docs/Model/CreateConference.md index 8fb3faf..3015fc0 100644 --- a/docs/Model/CreateConference.md +++ b/docs/Model/CreateConference.md @@ -5,10 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action_url** | **string** | This URL is invoked once the Conference is successfully created. Actions on the Conference, such as adding Participants, can be performed via the PerCL script returned in the response. | -**alias** | **bool** | Descriptive name for the Conference. | [optional] +**alias** | **string** | Descriptive name for the Conference. | [optional] **play_beep** | [**\FreeClimb\Api\Model\PlayBeep**](PlayBeep.md) | | [optional] **record** | **bool** | When set to `true`, the entire Conference is recorded. The `statusCallbackUrl` of the Conference will receive a `conferenceRecordingEnded` Webhook when the Conference transitions from the `inProgress` to empty state. | [optional] **status_callback_url** | **string** | This URL is invoked when the status of the Conference changes or when a recording of the Conference has become available. | [optional] **wait_url** | **string** | If specified, this URL provides the custom hold music for the Conference when it is in the populated state. This attribute is always fetched using HTTP GET and is fetched just once – when the Conference is created. The URL must be an audio file that is reachable and readable by FreeClimb. | [optional] +**parent_call_id** | **string** | ID of the Call that created this leg (child call). | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ExportList.md b/docs/Model/ExportList.md new file mode 100644 index 0000000..b454786 --- /dev/null +++ b/docs/Model/ExportList.md @@ -0,0 +1,16 @@ +# # ExportList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | **int** | Total amount of requested resource. | [optional] +**start** | **int** | Resource index at start of current page | [optional] +**end** | **int** | Resource index at end of current page | [optional] +**page** | **int** | Current page | [optional] +**num_pages** | **int** | Total number of pages | [optional] +**page_size** | **int** | Number of items per page | [optional] +**next_page_uri** | **string** | Uri to retrieve the next page of items | [optional] +**exports** | [**\FreeClimb\Api\Model\ExportResult[]**](ExportResult.md) | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ExportOutputType.md b/docs/Model/ExportOutputType.md new file mode 100644 index 0000000..5cac5ba --- /dev/null +++ b/docs/Model/ExportOutputType.md @@ -0,0 +1,8 @@ +# # ExportOutputType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ExportRequest.md b/docs/Model/ExportRequest.md new file mode 100644 index 0000000..e80a221 --- /dev/null +++ b/docs/Model/ExportRequest.md @@ -0,0 +1,12 @@ +# # ExportRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_type** | [**\FreeClimb\Api\Model\ExportResourceType**](ExportResourceType.md) | | +**format** | **string[]** | | [optional] +**output** | [**\FreeClimb\Api\Model\ExportRequestOutput**](ExportRequestOutput.md) | | +**query** | **object** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ExportRequestOutput.md b/docs/Model/ExportRequestOutput.md new file mode 100644 index 0000000..b51d747 --- /dev/null +++ b/docs/Model/ExportRequestOutput.md @@ -0,0 +1,9 @@ +# # ExportRequestOutput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**\FreeClimb\Api\Model\ExportOutputType**](ExportOutputType.md) | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ExportResourceType.md b/docs/Model/ExportResourceType.md new file mode 100644 index 0000000..5606896 --- /dev/null +++ b/docs/Model/ExportResourceType.md @@ -0,0 +1,8 @@ +# # ExportResourceType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ExportResult.md b/docs/Model/ExportResult.md new file mode 100644 index 0000000..a9468ed --- /dev/null +++ b/docs/Model/ExportResult.md @@ -0,0 +1,20 @@ +# # ExportResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_id** | **string** | String that uniquely identifies this account resource. | +**uri** | **string** | | +**date_created** | **string** | | +**date_updated** | **string** | | +**revision** | **int** | | +**export_id** | **string** | String that uniquely identifies this export resource | +**status** | [**\FreeClimb\Api\Model\ExportStatus**](ExportStatus.md) | | +**size** | **int** | | +**resource_type** | [**\FreeClimb\Api\Model\ExportResourceType**](ExportResourceType.md) | | +**query** | **object** | Query params used to filter exported documents | +**format** | **string[]** | Desired fields of exported documents | +**output** | [**\FreeClimb\Api\Model\ExportResultOutput**](ExportResultOutput.md) | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ExportResultOutput.md b/docs/Model/ExportResultOutput.md new file mode 100644 index 0000000..7bfd86f --- /dev/null +++ b/docs/Model/ExportResultOutput.md @@ -0,0 +1,9 @@ +# # ExportResultOutput + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | [**\FreeClimb\Api\Model\ExportOutputType**](ExportOutputType.md) | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/ExportStatus.md b/docs/Model/ExportStatus.md new file mode 100644 index 0000000..ba5f449 --- /dev/null +++ b/docs/Model/ExportStatus.md @@ -0,0 +1,8 @@ +# # ExportStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/lib/Api/DefaultApi.php b/lib/Api/DefaultApi.php index 2331503..0204b76 100644 --- a/lib/Api/DefaultApi.php +++ b/lib/Api/DefaultApi.php @@ -85,6 +85,9 @@ class DefaultApi 'createAnApplication' => [ 'application/json', ], + 'createExport' => [ + 'application/json', + ], 'createKnowledgeBaseCompletion' => [ 'application/json', ], @@ -94,6 +97,9 @@ class DefaultApi 'deleteAnApplication' => [ 'application/json', ], + 'deleteAnExport' => [ + 'application/json', + ], 'deleteAnIncomingNumber' => [ 'application/json', ], @@ -106,6 +112,9 @@ class DefaultApi 'downloadARecordingFile' => [ 'application/json', ], + 'downloadAnExport' => [ + 'application/json', + ], 'filterLogs' => [ 'application/json', ], @@ -133,6 +142,9 @@ class DefaultApi 'getAnApplication' => [ 'application/json', ], + 'getAnExport' => [ + 'application/json', + ], 'getAnIncomingNumber' => [ 'application/json', ], @@ -193,6 +205,9 @@ class DefaultApi 'listConferences' => [ 'application/json', ], + 'listExports' => [ + 'application/json', + ], 'listIncomingNumbers' => [ 'application/json', ], @@ -1595,45 +1610,41 @@ public function createAnApplicationRequest($application_request = null, string $ } /** - * Operation createKnowledgeBaseCompletion + * Operation createExport * - * Query the knowledge base + * Create an Export * - * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required) - - * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional) + * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\CompletionResult + * @return \FreeClimb\Api\Model\ExportResult */ - public function createKnowledgeBaseCompletion($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0]) + public function createExport($export_request = null, string $contentType = self::contentTypes['createExport'][0]) { - list($response) = $this->createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $completion_request, $contentType); + list($response) = $this->createExportWithHttpInfo($export_request, $contentType); return $response; } /** - * Operation createKnowledgeBaseCompletionWithHttpInfo + * Operation createExportWithHttpInfo * - * Query the knowledge base + * Create an Export * - * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required) - - * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional) + * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\CompletionResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\ExportResult, HTTP status code, HTTP response headers (array of strings) */ - public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0]) + public function createExportWithHttpInfo($export_request = null, string $contentType = self::contentTypes['createExport'][0]) { - $request = $this->createKnowledgeBaseCompletionRequest($knowledge_base_id, $completion_request, $contentType); + $request = $this->createExportRequest($export_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -1660,11 +1671,11 @@ public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $c switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\CompletionResult' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\ExportResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\CompletionResult' !== 'string') { + if ('\FreeClimb\Api\Model\ExportResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -1682,7 +1693,7 @@ public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $c } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CompletionResult', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ExportResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -1701,7 +1712,7 @@ public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $c ); } - $returnType = '\FreeClimb\Api\Model\CompletionResult'; + $returnType = '\FreeClimb\Api\Model\ExportResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -1734,7 +1745,7 @@ public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $c case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\CompletionResult', + '\FreeClimb\Api\Model\ExportResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1745,23 +1756,21 @@ public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $c } /** - * Operation createKnowledgeBaseCompletionAsync + * Operation createExportAsync * - * Query the knowledge base + * Create an Export * - * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required) - - * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional) + * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createKnowledgeBaseCompletionAsync($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0]) + public function createExportAsync($export_request = null, string $contentType = self::contentTypes['createExport'][0]) { - return $this->createKnowledgeBaseCompletionAsyncWithHttpInfo($knowledge_base_id, $completion_request, $contentType) + return $this->createExportAsyncWithHttpInfo($export_request, $contentType) ->then( function ($response) { return $response[0]; @@ -1770,24 +1779,22 @@ function ($response) { } /** - * Operation createKnowledgeBaseCompletionAsyncWithHttpInfo + * Operation createExportAsyncWithHttpInfo * - * Query the knowledge base + * Create an Export * - * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required) - - * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional) + * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createKnowledgeBaseCompletionAsyncWithHttpInfo($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0]) + public function createExportAsyncWithHttpInfo($export_request = null, string $contentType = self::contentTypes['createExport'][0]) { - $returnType = '\FreeClimb\Api\Model\CompletionResult'; - $request = $this->createKnowledgeBaseCompletionRequest($knowledge_base_id, $completion_request, $contentType); + $returnType = '\FreeClimb\Api\Model\ExportResult'; + $request = $this->createExportRequest($export_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1826,33 +1833,24 @@ function ($exception) { } /** - * Create request for operation 'createKnowledgeBaseCompletion' + * Create request for operation 'createExport' * - * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required) - - * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional) + * @param \FreeClimb\Api\Model\ExportRequest $export_request A JSON object containing export creation parameters (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createExport'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function createKnowledgeBaseCompletionRequest($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0]) + public function createExportRequest($export_request = null, string $contentType = self::contentTypes['createExport'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'knowledge_base_id' is set - if ($knowledge_base_id === null || (is_array($knowledge_base_id) && count($knowledge_base_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $knowledge_base_id when calling createKnowledgeBaseCompletion' - ); - } - - $resourcePath = '/Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion'; + $resourcePath = '/Accounts/{accountId}/Exports'; $formParams = []; $queryParams = []; $headerParams = []; @@ -1869,14 +1867,6 @@ public function createKnowledgeBaseCompletionRequest($knowledge_base_id, $comple $resourcePath ); } - // path params - if ($knowledge_base_id !== null) { - $resourcePath = str_replace( - '{' . 'knowledgeBaseId' . '}', - ObjectSerializer::toPathValue($knowledge_base_id), - $resourcePath - ); - } $headers = $this->headerSelector->selectHeaders( @@ -1886,12 +1876,12 @@ public function createKnowledgeBaseCompletionRequest($knowledge_base_id, $comple ); // for model (json/xml) - if (isset($completion_request)) { + if (isset($export_request)) { if (stripos($headers['Content-Type'], 'application/json') !== false) { # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($completion_request)); + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($export_request)); } else { - $httpBody = $completion_request; + $httpBody = $export_request; } } elseif (count($formParams) > 0) { if ($multipart) { @@ -1944,40 +1934,45 @@ public function createKnowledgeBaseCompletionRequest($knowledge_base_id, $comple } /** - * Operation deleteARecording + * Operation createKnowledgeBaseCompletion * - * Delete a Recording + * Query the knowledge base * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation + * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return void + * @return \FreeClimb\Api\Model\CompletionResult */ - public function deleteARecording($recording_id, string $contentType = self::contentTypes['deleteARecording'][0]) + public function createKnowledgeBaseCompletion($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0]) { - $this->deleteARecordingWithHttpInfo($recording_id, $contentType); + list($response) = $this->createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $completion_request, $contentType); + return $response; } /** - * Operation deleteARecordingWithHttpInfo + * Operation createKnowledgeBaseCompletionWithHttpInfo * - * Delete a Recording + * Query the knowledge base * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation + * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of null, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\CompletionResult, HTTP status code, HTTP response headers (array of strings) */ - public function deleteARecordingWithHttpInfo($recording_id, string $contentType = self::contentTypes['deleteARecording'][0]) + public function createKnowledgeBaseCompletionWithHttpInfo($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0]) { - $request = $this->deleteARecordingRequest($recording_id, $contentType); + $request = $this->createKnowledgeBaseCompletionRequest($knowledge_base_id, $completion_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -2002,31 +1997,110 @@ public function deleteARecordingWithHttpInfo($recording_id, string $contentType $statusCode = $response->getStatusCode(); - return [null, $statusCode, $response->getHeaders()]; + switch ($statusCode) { + case 200: + if ('\FreeClimb\Api\Model\CompletionResult' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\FreeClimb\Api\Model\CompletionResult' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CompletionResult', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + $returnType = '\FreeClimb\Api\Model\CompletionResult'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; } catch (ApiException $e) { switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\FreeClimb\Api\Model\CompletionResult', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; } throw $e; } } /** - * Operation deleteARecordingAsync + * Operation createKnowledgeBaseCompletionAsync * - * Delete a Recording + * Query the knowledge base * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation + * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteARecordingAsync($recording_id, string $contentType = self::contentTypes['deleteARecording'][0]) + public function createKnowledgeBaseCompletionAsync($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0]) { - return $this->deleteARecordingAsyncWithHttpInfo($recording_id, $contentType) + return $this->createKnowledgeBaseCompletionAsyncWithHttpInfo($knowledge_base_id, $completion_request, $contentType) ->then( function ($response) { return $response[0]; @@ -2035,28 +2109,43 @@ function ($response) { } /** - * Operation deleteARecordingAsyncWithHttpInfo + * Operation createKnowledgeBaseCompletionAsyncWithHttpInfo * - * Delete a Recording + * Query the knowledge base * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation + * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteARecordingAsyncWithHttpInfo($recording_id, string $contentType = self::contentTypes['deleteARecording'][0]) + public function createKnowledgeBaseCompletionAsyncWithHttpInfo($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0]) { - $returnType = ''; - $request = $this->deleteARecordingRequest($recording_id, $contentType); + $returnType = '\FreeClimb\Api\Model\CompletionResult'; + $request = $this->createKnowledgeBaseCompletionRequest($knowledge_base_id, $completion_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - return [null, $response->getStatusCode(), $response->getHeaders()]; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; }, function ($exception) { $response = $exception->getResponse(); @@ -2076,30 +2165,33 @@ function ($exception) { } /** - * Create request for operation 'deleteARecording' + * Create request for operation 'createKnowledgeBaseCompletion' * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $knowledge_base_id A string that uniquely identifies the KnowledgeBase resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation + * @param \FreeClimb\Api\Model\CompletionRequest $completion_request Completion request details (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['createKnowledgeBaseCompletion'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteARecordingRequest($recording_id, string $contentType = self::contentTypes['deleteARecording'][0]) + public function createKnowledgeBaseCompletionRequest($knowledge_base_id, $completion_request = null, string $contentType = self::contentTypes['createKnowledgeBaseCompletion'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'recording_id' is set - if ($recording_id === null || (is_array($recording_id) && count($recording_id) === 0)) { + // verify the required parameter 'knowledge_base_id' is set + if ($knowledge_base_id === null || (is_array($knowledge_base_id) && count($knowledge_base_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $recording_id when calling deleteARecording' + 'Missing the required parameter $knowledge_base_id when calling createKnowledgeBaseCompletion' ); } - $resourcePath = '/Accounts/{accountId}/Recordings/{recordingId}'; + + $resourcePath = '/Accounts/{accountId}/KnowledgeBases/{knowledgeBaseId}/Completion'; $formParams = []; $queryParams = []; $headerParams = []; @@ -2117,23 +2209,30 @@ public function deleteARecordingRequest($recording_id, string $contentType = sel ); } // path params - if ($recording_id !== null) { + if ($knowledge_base_id !== null) { $resourcePath = str_replace( - '{' . 'recordingId' . '}', - ObjectSerializer::toPathValue($recording_id), - $resourcePath + '{' . 'knowledgeBaseId' . '}', + ObjectSerializer::toPathValue($knowledge_base_id), + $resourcePath ); } $headers = $this->headerSelector->selectHeaders( - [], + ['application/json', ], $contentType, $multipart ); // for model (json/xml) - if (count($formParams) > 0) { + if (isset($completion_request)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($completion_request)); + } else { + $httpBody = $completion_request; + } + } elseif (count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { @@ -2176,7 +2275,7 @@ public function deleteARecordingRequest($recording_id, string $contentType = sel $operationHost = $this->config->getHost(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( - 'DELETE', + 'POST', $operationHost . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody @@ -2184,40 +2283,40 @@ public function deleteARecordingRequest($recording_id, string $contentType = sel } /** - * Operation deleteAnApplication + * Operation deleteARecording * - * Delete an application + * Delete a Recording * - * @param string $application_id String that uniquely identifies this application resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnApplication'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return void */ - public function deleteAnApplication($application_id, string $contentType = self::contentTypes['deleteAnApplication'][0]) + public function deleteARecording($recording_id, string $contentType = self::contentTypes['deleteARecording'][0]) { - $this->deleteAnApplicationWithHttpInfo($application_id, $contentType); + $this->deleteARecordingWithHttpInfo($recording_id, $contentType); } /** - * Operation deleteAnApplicationWithHttpInfo + * Operation deleteARecordingWithHttpInfo * - * Delete an application + * Delete a Recording * - * @param string $application_id String that uniquely identifies this application resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnApplication'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteAnApplicationWithHttpInfo($application_id, string $contentType = self::contentTypes['deleteAnApplication'][0]) + public function deleteARecordingWithHttpInfo($recording_id, string $contentType = self::contentTypes['deleteARecording'][0]) { - $request = $this->deleteAnApplicationRequest($application_id, $contentType); + $request = $this->deleteARecordingRequest($recording_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -2252,21 +2351,21 @@ public function deleteAnApplicationWithHttpInfo($application_id, string $content } /** - * Operation deleteAnApplicationAsync + * Operation deleteARecordingAsync * - * Delete an application + * Delete a Recording * - * @param string $application_id String that uniquely identifies this application resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnApplication'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAnApplicationAsync($application_id, string $contentType = self::contentTypes['deleteAnApplication'][0]) + public function deleteARecordingAsync($recording_id, string $contentType = self::contentTypes['deleteARecording'][0]) { - return $this->deleteAnApplicationAsyncWithHttpInfo($application_id, $contentType) + return $this->deleteARecordingAsyncWithHttpInfo($recording_id, $contentType) ->then( function ($response) { return $response[0]; @@ -2275,22 +2374,22 @@ function ($response) { } /** - * Operation deleteAnApplicationAsyncWithHttpInfo + * Operation deleteARecordingAsyncWithHttpInfo * - * Delete an application + * Delete a Recording * - * @param string $application_id String that uniquely identifies this application resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnApplication'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAnApplicationAsyncWithHttpInfo($application_id, string $contentType = self::contentTypes['deleteAnApplication'][0]) + public function deleteARecordingAsyncWithHttpInfo($recording_id, string $contentType = self::contentTypes['deleteARecording'][0]) { $returnType = ''; - $request = $this->deleteAnApplicationRequest($application_id, $contentType); + $request = $this->deleteARecordingRequest($recording_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2316,30 +2415,30 @@ function ($exception) { } /** - * Create request for operation 'deleteAnApplication' + * Create request for operation 'deleteARecording' * - * @param string $application_id String that uniquely identifies this application resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnApplication'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteARecording'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteAnApplicationRequest($application_id, string $contentType = self::contentTypes['deleteAnApplication'][0]) + public function deleteARecordingRequest($recording_id, string $contentType = self::contentTypes['deleteARecording'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'application_id' is set - if ($application_id === null || (is_array($application_id) && count($application_id) === 0)) { + // verify the required parameter 'recording_id' is set + if ($recording_id === null || (is_array($recording_id) && count($recording_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $application_id when calling deleteAnApplication' + 'Missing the required parameter $recording_id when calling deleteARecording' ); } - $resourcePath = '/Accounts/{accountId}/Applications/{applicationId}'; + $resourcePath = '/Accounts/{accountId}/Recordings/{recordingId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -2357,10 +2456,10 @@ public function deleteAnApplicationRequest($application_id, string $contentType ); } // path params - if ($application_id !== null) { + if ($recording_id !== null) { $resourcePath = str_replace( - '{' . 'applicationId' . '}', - ObjectSerializer::toPathValue($application_id), + '{' . 'recordingId' . '}', + ObjectSerializer::toPathValue($recording_id), $resourcePath ); } @@ -2424,40 +2523,40 @@ public function deleteAnApplicationRequest($application_id, string $contentType } /** - * Operation deleteAnIncomingNumber + * Operation deleteAnApplication * - * Delete an Incoming Number + * Delete an application * - * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + * @param string $application_id String that uniquely identifies this application resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnIncomingNumber'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnApplication'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return void */ - public function deleteAnIncomingNumber($phone_number_id, string $contentType = self::contentTypes['deleteAnIncomingNumber'][0]) + public function deleteAnApplication($application_id, string $contentType = self::contentTypes['deleteAnApplication'][0]) { - $this->deleteAnIncomingNumberWithHttpInfo($phone_number_id, $contentType); + $this->deleteAnApplicationWithHttpInfo($application_id, $contentType); } /** - * Operation deleteAnIncomingNumberWithHttpInfo + * Operation deleteAnApplicationWithHttpInfo * - * Delete an Incoming Number + * Delete an application * - * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + * @param string $application_id String that uniquely identifies this application resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnIncomingNumber'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnApplication'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteAnIncomingNumberWithHttpInfo($phone_number_id, string $contentType = self::contentTypes['deleteAnIncomingNumber'][0]) + public function deleteAnApplicationWithHttpInfo($application_id, string $contentType = self::contentTypes['deleteAnApplication'][0]) { - $request = $this->deleteAnIncomingNumberRequest($phone_number_id, $contentType); + $request = $this->deleteAnApplicationRequest($application_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -2492,21 +2591,21 @@ public function deleteAnIncomingNumberWithHttpInfo($phone_number_id, string $con } /** - * Operation deleteAnIncomingNumberAsync + * Operation deleteAnApplicationAsync * - * Delete an Incoming Number + * Delete an application * - * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + * @param string $application_id String that uniquely identifies this application resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnIncomingNumber'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnApplication'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAnIncomingNumberAsync($phone_number_id, string $contentType = self::contentTypes['deleteAnIncomingNumber'][0]) + public function deleteAnApplicationAsync($application_id, string $contentType = self::contentTypes['deleteAnApplication'][0]) { - return $this->deleteAnIncomingNumberAsyncWithHttpInfo($phone_number_id, $contentType) + return $this->deleteAnApplicationAsyncWithHttpInfo($application_id, $contentType) ->then( function ($response) { return $response[0]; @@ -2515,22 +2614,22 @@ function ($response) { } /** - * Operation deleteAnIncomingNumberAsyncWithHttpInfo + * Operation deleteAnApplicationAsyncWithHttpInfo * - * Delete an Incoming Number + * Delete an application * - * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + * @param string $application_id String that uniquely identifies this application resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnIncomingNumber'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnApplication'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteAnIncomingNumberAsyncWithHttpInfo($phone_number_id, string $contentType = self::contentTypes['deleteAnIncomingNumber'][0]) + public function deleteAnApplicationAsyncWithHttpInfo($application_id, string $contentType = self::contentTypes['deleteAnApplication'][0]) { $returnType = ''; - $request = $this->deleteAnIncomingNumberRequest($phone_number_id, $contentType); + $request = $this->deleteAnApplicationRequest($application_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2556,30 +2655,30 @@ function ($exception) { } /** - * Create request for operation 'deleteAnIncomingNumber' + * Create request for operation 'deleteAnApplication' * - * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + * @param string $application_id String that uniquely identifies this application resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnIncomingNumber'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnApplication'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function deleteAnIncomingNumberRequest($phone_number_id, string $contentType = self::contentTypes['deleteAnIncomingNumber'][0]) + public function deleteAnApplicationRequest($application_id, string $contentType = self::contentTypes['deleteAnApplication'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'phone_number_id' is set - if ($phone_number_id === null || (is_array($phone_number_id) && count($phone_number_id) === 0)) { + // verify the required parameter 'application_id' is set + if ($application_id === null || (is_array($application_id) && count($application_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $phone_number_id when calling deleteAnIncomingNumber' + 'Missing the required parameter $application_id when calling deleteAnApplication' ); } - $resourcePath = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'; + $resourcePath = '/Accounts/{accountId}/Applications/{applicationId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -2597,10 +2696,10 @@ public function deleteAnIncomingNumberRequest($phone_number_id, string $contentT ); } // path params - if ($phone_number_id !== null) { + if ($application_id !== null) { $resourcePath = str_replace( - '{' . 'phoneNumberId' . '}', - ObjectSerializer::toPathValue($phone_number_id), + '{' . 'applicationId' . '}', + ObjectSerializer::toPathValue($application_id), $resourcePath ); } @@ -2664,45 +2763,40 @@ public function deleteAnIncomingNumberRequest($phone_number_id, string $contentT } /** - * Operation dequeueAMember + * Operation deleteAnExport * - * Dequeue a Member + * Delete an Export * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - - * @param string $call_id ID if the Call that the Member belongs to (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnExport'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\QueueMember + * @return void */ - public function dequeueAMember($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0]) + public function deleteAnExport($export_id, string $contentType = self::contentTypes['deleteAnExport'][0]) { - list($response) = $this->dequeueAMemberWithHttpInfo($queue_id, $call_id, $contentType); - return $response; + $this->deleteAnExportWithHttpInfo($export_id, $contentType); } /** - * Operation dequeueAMemberWithHttpInfo + * Operation deleteAnExportWithHttpInfo * - * Dequeue a Member + * Delete an Export * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - - * @param string $call_id ID if the Call that the Member belongs to (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnExport'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings) + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function dequeueAMemberWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0]) + public function deleteAnExportWithHttpInfo($export_id, string $contentType = self::contentTypes['deleteAnExport'][0]) { - $request = $this->dequeueAMemberRequest($queue_id, $call_id, $contentType); + $request = $this->deleteAnExportRequest($export_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -2727,110 +2821,31 @@ public function dequeueAMemberWithHttpInfo($queue_id, $call_id, string $contentT $statusCode = $response->getStatusCode(); - switch ($statusCode) { - case 202: - if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\QueueMember' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - $returnType = '\FreeClimb\Api\Model\QueueMember'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\FreeClimb\Api\Model\QueueMember', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; } throw $e; } } /** - * Operation dequeueAMemberAsync + * Operation deleteAnExportAsync * - * Dequeue a Member + * Delete an Export * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - - * @param string $call_id ID if the Call that the Member belongs to (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnExport'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function dequeueAMemberAsync($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0]) + public function deleteAnExportAsync($export_id, string $contentType = self::contentTypes['deleteAnExport'][0]) { - return $this->dequeueAMemberAsyncWithHttpInfo($queue_id, $call_id, $contentType) + return $this->deleteAnExportAsyncWithHttpInfo($export_id, $contentType) ->then( function ($response) { return $response[0]; @@ -2839,43 +2854,28 @@ function ($response) { } /** - * Operation dequeueAMemberAsyncWithHttpInfo + * Operation deleteAnExportAsyncWithHttpInfo * - * Dequeue a Member + * Delete an Export * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - - * @param string $call_id ID if the Call that the Member belongs to (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnExport'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function dequeueAMemberAsyncWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0]) + public function deleteAnExportAsyncWithHttpInfo($export_id, string $contentType = self::contentTypes['deleteAnExport'][0]) { - $returnType = '\FreeClimb\Api\Model\QueueMember'; - $request = $this->dequeueAMemberRequest($queue_id, $call_id, $contentType); + $returnType = ''; + $request = $this->deleteAnExportRequest($export_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); @@ -2895,39 +2895,30 @@ function ($exception) { } /** - * Create request for operation 'dequeueAMember' + * Create request for operation 'deleteAnExport' * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - - * @param string $call_id ID if the Call that the Member belongs to (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnExport'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function dequeueAMemberRequest($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0]) + public function deleteAnExportRequest($export_id, string $contentType = self::contentTypes['deleteAnExport'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'queue_id' is set - if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $queue_id when calling dequeueAMember' - ); - } - - // verify the required parameter 'call_id' is set - if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) { + // verify the required parameter 'export_id' is set + if ($export_id === null || (is_array($export_id) && count($export_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $call_id when calling dequeueAMember' + 'Missing the required parameter $export_id when calling deleteAnExport' ); } - $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'; + $resourcePath = '/Accounts/{accountId}/Exports/{exportId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -2945,25 +2936,17 @@ public function dequeueAMemberRequest($queue_id, $call_id, string $contentType = ); } // path params - if ($queue_id !== null) { - $resourcePath = str_replace( - '{' . 'queueId' . '}', - ObjectSerializer::toPathValue($queue_id), - $resourcePath - ); - } - // path params - if ($call_id !== null) { + if ($export_id !== null) { $resourcePath = str_replace( - '{' . 'callId' . '}', - ObjectSerializer::toPathValue($call_id), + '{' . 'exportId' . '}', + ObjectSerializer::toPathValue($export_id), $resourcePath ); } $headers = $this->headerSelector->selectHeaders( - ['application/json', ], + [], $contentType, $multipart ); @@ -3012,7 +2995,7 @@ public function dequeueAMemberRequest($queue_id, $call_id, string $contentType = $operationHost = $this->config->getHost(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( - 'POST', + 'DELETE', $operationHost . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody @@ -3020,41 +3003,40 @@ public function dequeueAMemberRequest($queue_id, $call_id, string $contentType = } /** - * Operation dequeueHeadMember + * Operation deleteAnIncomingNumber * - * Dequeue Head Member + * Delete an Incoming Number * - * @param string $queue_id String that uniquely identifies this queue resource. (required) + * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnIncomingNumber'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\QueueMember + * @return void */ - public function dequeueHeadMember($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0]) + public function deleteAnIncomingNumber($phone_number_id, string $contentType = self::contentTypes['deleteAnIncomingNumber'][0]) { - list($response) = $this->dequeueHeadMemberWithHttpInfo($queue_id, $contentType); - return $response; + $this->deleteAnIncomingNumberWithHttpInfo($phone_number_id, $contentType); } /** - * Operation dequeueHeadMemberWithHttpInfo + * Operation deleteAnIncomingNumberWithHttpInfo * - * Dequeue Head Member + * Delete an Incoming Number * - * @param string $queue_id String that uniquely identifies this queue resource. (required) + * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnIncomingNumber'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings) + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function dequeueHeadMemberWithHttpInfo($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0]) + public function deleteAnIncomingNumberWithHttpInfo($phone_number_id, string $contentType = self::contentTypes['deleteAnIncomingNumber'][0]) { - $request = $this->dequeueHeadMemberRequest($queue_id, $contentType); + $request = $this->deleteAnIncomingNumberRequest($phone_number_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -3079,108 +3061,31 @@ public function dequeueHeadMemberWithHttpInfo($queue_id, string $contentType = s $statusCode = $response->getStatusCode(); - switch ($statusCode) { - case 202: - if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\QueueMember' !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - if ($statusCode < 200 || $statusCode > 299) { - throw new ApiException( - sprintf( - '[%d] Error connecting to the API (%s)', - $statusCode, - (string) $request->getUri() - ), - $statusCode, - $response->getHeaders(), - (string) $response->getBody() - ); - } - - $returnType = '\FreeClimb\Api\Model\QueueMember'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - try { - $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); - } catch (\JsonException $exception) { - throw new ApiException( - sprintf( - 'Error JSON decoding server response (%s)', - $request->getUri() - ), - $statusCode, - $response->getHeaders(), - $content - ); - } - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { - case 202: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\FreeClimb\Api\Model\QueueMember', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; } throw $e; } } /** - * Operation dequeueHeadMemberAsync + * Operation deleteAnIncomingNumberAsync * - * Dequeue Head Member + * Delete an Incoming Number * - * @param string $queue_id String that uniquely identifies this queue resource. (required) + * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnIncomingNumber'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function dequeueHeadMemberAsync($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0]) + public function deleteAnIncomingNumberAsync($phone_number_id, string $contentType = self::contentTypes['deleteAnIncomingNumber'][0]) { - return $this->dequeueHeadMemberAsyncWithHttpInfo($queue_id, $contentType) + return $this->deleteAnIncomingNumberAsyncWithHttpInfo($phone_number_id, $contentType) ->then( function ($response) { return $response[0]; @@ -3189,41 +3094,28 @@ function ($response) { } /** - * Operation dequeueHeadMemberAsyncWithHttpInfo + * Operation deleteAnIncomingNumberAsyncWithHttpInfo * - * Dequeue Head Member + * Delete an Incoming Number * - * @param string $queue_id String that uniquely identifies this queue resource. (required) + * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnIncomingNumber'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function dequeueHeadMemberAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0]) + public function deleteAnIncomingNumberAsyncWithHttpInfo($phone_number_id, string $contentType = self::contentTypes['deleteAnIncomingNumber'][0]) { - $returnType = '\FreeClimb\Api\Model\QueueMember'; - $request = $this->dequeueHeadMemberRequest($queue_id, $contentType); + $returnType = ''; + $request = $this->deleteAnIncomingNumberRequest($phone_number_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); @@ -3243,30 +3135,30 @@ function ($exception) { } /** - * Create request for operation 'dequeueHeadMember' + * Create request for operation 'deleteAnIncomingNumber' * - * @param string $queue_id String that uniquely identifies this queue resource. (required) + * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteAnIncomingNumber'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function dequeueHeadMemberRequest($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0]) + public function deleteAnIncomingNumberRequest($phone_number_id, string $contentType = self::contentTypes['deleteAnIncomingNumber'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'queue_id' is set - if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) { + // verify the required parameter 'phone_number_id' is set + if ($phone_number_id === null || (is_array($phone_number_id) && count($phone_number_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $queue_id when calling dequeueHeadMember' + 'Missing the required parameter $phone_number_id when calling deleteAnIncomingNumber' ); } - $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'; + $resourcePath = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -3284,17 +3176,17 @@ public function dequeueHeadMemberRequest($queue_id, string $contentType = self:: ); } // path params - if ($queue_id !== null) { + if ($phone_number_id !== null) { $resourcePath = str_replace( - '{' . 'queueId' . '}', - ObjectSerializer::toPathValue($queue_id), + '{' . 'phoneNumberId' . '}', + ObjectSerializer::toPathValue($phone_number_id), $resourcePath ); } $headers = $this->headerSelector->selectHeaders( - ['application/json', ], + [], $contentType, $multipart ); @@ -3343,7 +3235,7 @@ public function dequeueHeadMemberRequest($queue_id, string $contentType = self:: $operationHost = $this->config->getHost(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( - 'POST', + 'DELETE', $operationHost . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody @@ -3351,41 +3243,45 @@ public function dequeueHeadMemberRequest($queue_id, string $contentType = self:: } /** - * Operation downloadARecordingFile + * Operation dequeueAMember * - * Download a Recording File + * Dequeue a Member * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation + * @param string $call_id ID if the Call that the Member belongs to (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \SplFileObject + * @return \FreeClimb\Api\Model\QueueMember */ - public function downloadARecordingFile($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0]) + public function dequeueAMember($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0]) { - list($response) = $this->downloadARecordingFileWithHttpInfo($recording_id, $contentType); + list($response) = $this->dequeueAMemberWithHttpInfo($queue_id, $call_id, $contentType); return $response; } /** - * Operation downloadARecordingFileWithHttpInfo + * Operation dequeueAMemberWithHttpInfo * - * Download a Recording File + * Dequeue a Member * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation + * @param string $call_id ID if the Call that the Member belongs to (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings) */ - public function downloadARecordingFileWithHttpInfo($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0]) + public function dequeueAMemberWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0]) { - $request = $this->downloadARecordingFileRequest($recording_id, $contentType); + $request = $this->dequeueAMemberRequest($queue_id, $call_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -3411,12 +3307,12 @@ public function downloadARecordingFileWithHttpInfo($recording_id, string $conten switch ($statusCode) { - case 200: - if ('\SplFileObject' === '\SplFileObject') { + case 202: + if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\SplFileObject' !== 'string') { + if ('\FreeClimb\Api\Model\QueueMember' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -3434,7 +3330,7 @@ public function downloadARecordingFileWithHttpInfo($recording_id, string $conten } return [ - ObjectSerializer::deserialize($content, '\SplFileObject', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -3453,7 +3349,7 @@ public function downloadARecordingFileWithHttpInfo($recording_id, string $conten ); } - $returnType = '\SplFileObject'; + $returnType = '\FreeClimb\Api\Model\QueueMember'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -3483,10 +3379,10 @@ public function downloadARecordingFileWithHttpInfo($recording_id, string $conten } catch (ApiException $e) { switch ($e->getCode()) { - case 200: + case 202: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\SplFileObject', + '\FreeClimb\Api\Model\QueueMember', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -3497,21 +3393,23 @@ public function downloadARecordingFileWithHttpInfo($recording_id, string $conten } /** - * Operation downloadARecordingFileAsync + * Operation dequeueAMemberAsync * - * Download a Recording File + * Dequeue a Member * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation + * @param string $call_id ID if the Call that the Member belongs to (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function downloadARecordingFileAsync($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0]) + public function dequeueAMemberAsync($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0]) { - return $this->downloadARecordingFileAsyncWithHttpInfo($recording_id, $contentType) + return $this->dequeueAMemberAsyncWithHttpInfo($queue_id, $call_id, $contentType) ->then( function ($response) { return $response[0]; @@ -3520,22 +3418,24 @@ function ($response) { } /** - * Operation downloadARecordingFileAsyncWithHttpInfo + * Operation dequeueAMemberAsyncWithHttpInfo * - * Download a Recording File + * Dequeue a Member * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation + * @param string $call_id ID if the Call that the Member belongs to (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function downloadARecordingFileAsyncWithHttpInfo($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0]) + public function dequeueAMemberAsyncWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0]) { - $returnType = '\SplFileObject'; - $request = $this->downloadARecordingFileRequest($recording_id, $contentType); + $returnType = '\FreeClimb\Api\Model\QueueMember'; + $request = $this->dequeueAMemberRequest($queue_id, $call_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3574,30 +3474,39 @@ function ($exception) { } /** - * Create request for operation 'downloadARecordingFile' + * Create request for operation 'dequeueAMember' * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation + * @param string $call_id ID if the Call that the Member belongs to (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueAMember'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function downloadARecordingFileRequest($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0]) + public function dequeueAMemberRequest($queue_id, $call_id, string $contentType = self::contentTypes['dequeueAMember'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'recording_id' is set - if ($recording_id === null || (is_array($recording_id) && count($recording_id) === 0)) { + // verify the required parameter 'queue_id' is set + if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $recording_id when calling downloadARecordingFile' + 'Missing the required parameter $queue_id when calling dequeueAMember' + ); + } + + // verify the required parameter 'call_id' is set + if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $call_id when calling dequeueAMember' ); } - $resourcePath = '/Accounts/{accountId}/Recordings/{recordingId}/Download'; + $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -3615,17 +3524,25 @@ public function downloadARecordingFileRequest($recording_id, string $contentType ); } // path params - if ($recording_id !== null) { + if ($queue_id !== null) { $resourcePath = str_replace( - '{' . 'recordingId' . '}', - ObjectSerializer::toPathValue($recording_id), + '{' . 'queueId' . '}', + ObjectSerializer::toPathValue($queue_id), + $resourcePath + ); + } + // path params + if ($call_id !== null) { + $resourcePath = str_replace( + '{' . 'callId' . '}', + ObjectSerializer::toPathValue($call_id), $resourcePath ); } $headers = $this->headerSelector->selectHeaders( - ['audio/x-wav', ], + ['application/json', ], $contentType, $multipart ); @@ -3674,7 +3591,7 @@ public function downloadARecordingFileRequest($recording_id, string $contentType $operationHost = $this->config->getHost(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( - 'GET', + 'POST', $operationHost . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody @@ -3682,41 +3599,41 @@ public function downloadARecordingFileRequest($recording_id, string $contentType } /** - * Operation filterLogs + * Operation dequeueHeadMember * - * Filter Logs + * Dequeue Head Member * - * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required) + * @param string $queue_id String that uniquely identifies this queue resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\LogList + * @return \FreeClimb\Api\Model\QueueMember */ - public function filterLogs($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0]) + public function dequeueHeadMember($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0]) { - list($response) = $this->filterLogsWithHttpInfo($filter_logs_request, $contentType); + list($response) = $this->dequeueHeadMemberWithHttpInfo($queue_id, $contentType); return $response; } /** - * Operation filterLogsWithHttpInfo + * Operation dequeueHeadMemberWithHttpInfo * - * Filter Logs + * Dequeue Head Member * - * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required) + * @param string $queue_id String that uniquely identifies this queue resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\LogList, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings) */ - public function filterLogsWithHttpInfo($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0]) + public function dequeueHeadMemberWithHttpInfo($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0]) { - $request = $this->filterLogsRequest($filter_logs_request, $contentType); + $request = $this->dequeueHeadMemberRequest($queue_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -3742,12 +3659,12 @@ public function filterLogsWithHttpInfo($filter_logs_request, string $contentType switch ($statusCode) { - case 200: - if ('\FreeClimb\Api\Model\LogList' === '\SplFileObject') { + case 202: + if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\LogList' !== 'string') { + if ('\FreeClimb\Api\Model\QueueMember' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -3765,7 +3682,7 @@ public function filterLogsWithHttpInfo($filter_logs_request, string $contentType } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\LogList', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -3784,7 +3701,7 @@ public function filterLogsWithHttpInfo($filter_logs_request, string $contentType ); } - $returnType = '\FreeClimb\Api\Model\LogList'; + $returnType = '\FreeClimb\Api\Model\QueueMember'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -3814,10 +3731,10 @@ public function filterLogsWithHttpInfo($filter_logs_request, string $contentType } catch (ApiException $e) { switch ($e->getCode()) { - case 200: + case 202: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\LogList', + '\FreeClimb\Api\Model\QueueMember', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -3828,21 +3745,21 @@ public function filterLogsWithHttpInfo($filter_logs_request, string $contentType } /** - * Operation filterLogsAsync + * Operation dequeueHeadMemberAsync * - * Filter Logs + * Dequeue Head Member * - * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required) + * @param string $queue_id String that uniquely identifies this queue resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function filterLogsAsync($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0]) + public function dequeueHeadMemberAsync($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0]) { - return $this->filterLogsAsyncWithHttpInfo($filter_logs_request, $contentType) + return $this->dequeueHeadMemberAsyncWithHttpInfo($queue_id, $contentType) ->then( function ($response) { return $response[0]; @@ -3851,22 +3768,22 @@ function ($response) { } /** - * Operation filterLogsAsyncWithHttpInfo + * Operation dequeueHeadMemberAsyncWithHttpInfo * - * Filter Logs + * Dequeue Head Member * - * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required) + * @param string $queue_id String that uniquely identifies this queue resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function filterLogsAsyncWithHttpInfo($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0]) + public function dequeueHeadMemberAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0]) { - $returnType = '\FreeClimb\Api\Model\LogList'; - $request = $this->filterLogsRequest($filter_logs_request, $contentType); + $returnType = '\FreeClimb\Api\Model\QueueMember'; + $request = $this->dequeueHeadMemberRequest($queue_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3905,30 +3822,30 @@ function ($exception) { } /** - * Create request for operation 'filterLogs' + * Create request for operation 'dequeueHeadMember' * - * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required) + * @param string $queue_id String that uniquely identifies this queue resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['dequeueHeadMember'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function filterLogsRequest($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0]) + public function dequeueHeadMemberRequest($queue_id, string $contentType = self::contentTypes['dequeueHeadMember'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'filter_logs_request' is set - if ($filter_logs_request === null || (is_array($filter_logs_request) && count($filter_logs_request) === 0)) { + // verify the required parameter 'queue_id' is set + if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $filter_logs_request when calling filterLogs' + 'Missing the required parameter $queue_id when calling dequeueHeadMember' ); } - $resourcePath = '/Accounts/{accountId}/Logs'; + $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'; $formParams = []; $queryParams = []; $headerParams = []; @@ -3945,6 +3862,14 @@ public function filterLogsRequest($filter_logs_request, string $contentType = se $resourcePath ); } + // path params + if ($queue_id !== null) { + $resourcePath = str_replace( + '{' . 'queueId' . '}', + ObjectSerializer::toPathValue($queue_id), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -3954,14 +3879,7 @@ public function filterLogsRequest($filter_logs_request, string $contentType = se ); // for model (json/xml) - if (isset($filter_logs_request)) { - if (stripos($headers['Content-Type'], 'application/json') !== false) { - # if Content-Type contains "application/json", json_encode the body - $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($filter_logs_request)); - } else { - $httpBody = $filter_logs_request; - } - } elseif (count($formParams) > 0) { + if (count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { @@ -4012,41 +3930,41 @@ public function filterLogsRequest($filter_logs_request, string $contentType = se } /** - * Operation getACall + * Operation downloadARecordingFile * - * Get a Call + * Download a Recording File * - * @param string $call_id String that uniquely identifies this call resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\CallResult + * @return \SplFileObject */ - public function getACall($call_id, string $contentType = self::contentTypes['getACall'][0]) + public function downloadARecordingFile($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0]) { - list($response) = $this->getACallWithHttpInfo($call_id, $contentType); + list($response) = $this->downloadARecordingFileWithHttpInfo($recording_id, $contentType); return $response; } /** - * Operation getACallWithHttpInfo + * Operation downloadARecordingFileWithHttpInfo * - * Get a Call + * Download a Recording File * - * @param string $call_id String that uniquely identifies this call resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\CallResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \SplFileObject, HTTP status code, HTTP response headers (array of strings) */ - public function getACallWithHttpInfo($call_id, string $contentType = self::contentTypes['getACall'][0]) + public function downloadARecordingFileWithHttpInfo($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0]) { - $request = $this->getACallRequest($call_id, $contentType); + $request = $this->downloadARecordingFileRequest($recording_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -4073,11 +3991,11 @@ public function getACallWithHttpInfo($call_id, string $contentType = self::conte switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\CallResult' === '\SplFileObject') { + if ('\SplFileObject' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\CallResult' !== 'string') { + if ('\SplFileObject' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -4095,7 +4013,7 @@ public function getACallWithHttpInfo($call_id, string $contentType = self::conte } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CallResult', []), + ObjectSerializer::deserialize($content, '\SplFileObject', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -4114,7 +4032,7 @@ public function getACallWithHttpInfo($call_id, string $contentType = self::conte ); } - $returnType = '\FreeClimb\Api\Model\CallResult'; + $returnType = '\SplFileObject'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -4147,7 +4065,7 @@ public function getACallWithHttpInfo($call_id, string $contentType = self::conte case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\CallResult', + '\SplFileObject', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -4158,21 +4076,21 @@ public function getACallWithHttpInfo($call_id, string $contentType = self::conte } /** - * Operation getACallAsync + * Operation downloadARecordingFileAsync * - * Get a Call + * Download a Recording File * - * @param string $call_id String that uniquely identifies this call resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getACallAsync($call_id, string $contentType = self::contentTypes['getACall'][0]) + public function downloadARecordingFileAsync($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0]) { - return $this->getACallAsyncWithHttpInfo($call_id, $contentType) + return $this->downloadARecordingFileAsyncWithHttpInfo($recording_id, $contentType) ->then( function ($response) { return $response[0]; @@ -4181,22 +4099,22 @@ function ($response) { } /** - * Operation getACallAsyncWithHttpInfo + * Operation downloadARecordingFileAsyncWithHttpInfo * - * Get a Call + * Download a Recording File * - * @param string $call_id String that uniquely identifies this call resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getACallAsyncWithHttpInfo($call_id, string $contentType = self::contentTypes['getACall'][0]) + public function downloadARecordingFileAsyncWithHttpInfo($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0]) { - $returnType = '\FreeClimb\Api\Model\CallResult'; - $request = $this->getACallRequest($call_id, $contentType); + $returnType = '\SplFileObject'; + $request = $this->downloadARecordingFileRequest($recording_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4235,30 +4153,30 @@ function ($exception) { } /** - * Create request for operation 'getACall' + * Create request for operation 'downloadARecordingFile' * - * @param string $call_id String that uniquely identifies this call resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadARecordingFile'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getACallRequest($call_id, string $contentType = self::contentTypes['getACall'][0]) + public function downloadARecordingFileRequest($recording_id, string $contentType = self::contentTypes['downloadARecordingFile'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'call_id' is set - if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) { + // verify the required parameter 'recording_id' is set + if ($recording_id === null || (is_array($recording_id) && count($recording_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $call_id when calling getACall' + 'Missing the required parameter $recording_id when calling downloadARecordingFile' ); } - $resourcePath = '/Accounts/{accountId}/Calls/{callId}'; + $resourcePath = '/Accounts/{accountId}/Recordings/{recordingId}/Download'; $formParams = []; $queryParams = []; $headerParams = []; @@ -4276,17 +4194,17 @@ public function getACallRequest($call_id, string $contentType = self::contentTyp ); } // path params - if ($call_id !== null) { + if ($recording_id !== null) { $resourcePath = str_replace( - '{' . 'callId' . '}', - ObjectSerializer::toPathValue($call_id), + '{' . 'recordingId' . '}', + ObjectSerializer::toPathValue($recording_id), $resourcePath ); } $headers = $this->headerSelector->selectHeaders( - ['application/json', ], + ['audio/x-wav', ], $contentType, $multipart ); @@ -4343,41 +4261,41 @@ public function getACallRequest($call_id, string $contentType = self::contentTyp } /** - * Operation getAConference + * Operation downloadAnExport * - * Get a Conference + * Download an Export * - * @param string $conference_id A string that uniquely identifies this conference resource. (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\ConferenceResult + * @return string */ - public function getAConference($conference_id, string $contentType = self::contentTypes['getAConference'][0]) + public function downloadAnExport($export_id, string $contentType = self::contentTypes['downloadAnExport'][0]) { - list($response) = $this->getAConferenceWithHttpInfo($conference_id, $contentType); + list($response) = $this->downloadAnExportWithHttpInfo($export_id, $contentType); return $response; } /** - * Operation getAConferenceWithHttpInfo + * Operation downloadAnExportWithHttpInfo * - * Get a Conference + * Download an Export * - * @param string $conference_id A string that uniquely identifies this conference resource. (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\ConferenceResult, HTTP status code, HTTP response headers (array of strings) + * @return array of string, HTTP status code, HTTP response headers (array of strings) */ - public function getAConferenceWithHttpInfo($conference_id, string $contentType = self::contentTypes['getAConference'][0]) + public function downloadAnExportWithHttpInfo($export_id, string $contentType = self::contentTypes['downloadAnExport'][0]) { - $request = $this->getAConferenceRequest($conference_id, $contentType); + $request = $this->downloadAnExportRequest($export_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -4404,11 +4322,11 @@ public function getAConferenceWithHttpInfo($conference_id, string $contentType = switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\ConferenceResult' === '\SplFileObject') { + if ('string' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\ConferenceResult' !== 'string') { + if ('string' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -4426,7 +4344,7 @@ public function getAConferenceWithHttpInfo($conference_id, string $contentType = } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceResult', []), + ObjectSerializer::deserialize($content, 'string', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -4445,7 +4363,7 @@ public function getAConferenceWithHttpInfo($conference_id, string $contentType = ); } - $returnType = '\FreeClimb\Api\Model\ConferenceResult'; + $returnType = 'string'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -4478,7 +4396,7 @@ public function getAConferenceWithHttpInfo($conference_id, string $contentType = case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\ConferenceResult', + 'string', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -4489,21 +4407,21 @@ public function getAConferenceWithHttpInfo($conference_id, string $contentType = } /** - * Operation getAConferenceAsync + * Operation downloadAnExportAsync * - * Get a Conference + * Download an Export * - * @param string $conference_id A string that uniquely identifies this conference resource. (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAConferenceAsync($conference_id, string $contentType = self::contentTypes['getAConference'][0]) + public function downloadAnExportAsync($export_id, string $contentType = self::contentTypes['downloadAnExport'][0]) { - return $this->getAConferenceAsyncWithHttpInfo($conference_id, $contentType) + return $this->downloadAnExportAsyncWithHttpInfo($export_id, $contentType) ->then( function ($response) { return $response[0]; @@ -4512,22 +4430,22 @@ function ($response) { } /** - * Operation getAConferenceAsyncWithHttpInfo + * Operation downloadAnExportAsyncWithHttpInfo * - * Get a Conference + * Download an Export * - * @param string $conference_id A string that uniquely identifies this conference resource. (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAConferenceAsyncWithHttpInfo($conference_id, string $contentType = self::contentTypes['getAConference'][0]) + public function downloadAnExportAsyncWithHttpInfo($export_id, string $contentType = self::contentTypes['downloadAnExport'][0]) { - $returnType = '\FreeClimb\Api\Model\ConferenceResult'; - $request = $this->getAConferenceRequest($conference_id, $contentType); + $returnType = 'string'; + $request = $this->downloadAnExportRequest($export_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4566,30 +4484,30 @@ function ($exception) { } /** - * Create request for operation 'getAConference' + * Create request for operation 'downloadAnExport' * - * @param string $conference_id A string that uniquely identifies this conference resource. (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['downloadAnExport'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAConferenceRequest($conference_id, string $contentType = self::contentTypes['getAConference'][0]) + public function downloadAnExportRequest($export_id, string $contentType = self::contentTypes['downloadAnExport'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'conference_id' is set - if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) { + // verify the required parameter 'export_id' is set + if ($export_id === null || (is_array($export_id) && count($export_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $conference_id when calling getAConference' + 'Missing the required parameter $export_id when calling downloadAnExport' ); } - $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}'; + $resourcePath = '/Accounts/{accountId}/Exports/{exportId}/Download'; $formParams = []; $queryParams = []; $headerParams = []; @@ -4607,17 +4525,17 @@ public function getAConferenceRequest($conference_id, string $contentType = self ); } // path params - if ($conference_id !== null) { + if ($export_id !== null) { $resourcePath = str_replace( - '{' . 'conferenceId' . '}', - ObjectSerializer::toPathValue($conference_id), + '{' . 'exportId' . '}', + ObjectSerializer::toPathValue($export_id), $resourcePath ); } $headers = $this->headerSelector->selectHeaders( - ['application/json', ], + ['text/csv', ], $contentType, $multipart ); @@ -4674,45 +4592,41 @@ public function getAConferenceRequest($conference_id, string $contentType = self } /** - * Operation getAMember + * Operation filterLogs * - * Get a Member + * Filter Logs * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - - * @param string $call_id ID of the Call that the Member belongs to (required) + * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\QueueMember + * @return \FreeClimb\Api\Model\LogList */ - public function getAMember($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0]) + public function filterLogs($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0]) { - list($response) = $this->getAMemberWithHttpInfo($queue_id, $call_id, $contentType); + list($response) = $this->filterLogsWithHttpInfo($filter_logs_request, $contentType); return $response; } /** - * Operation getAMemberWithHttpInfo + * Operation filterLogsWithHttpInfo * - * Get a Member + * Filter Logs * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - - * @param string $call_id ID of the Call that the Member belongs to (required) + * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\LogList, HTTP status code, HTTP response headers (array of strings) */ - public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0]) + public function filterLogsWithHttpInfo($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0]) { - $request = $this->getAMemberRequest($queue_id, $call_id, $contentType); + $request = $this->filterLogsRequest($filter_logs_request, $contentType); try { $options = $this->createHttpClientOption(); @@ -4739,11 +4653,11 @@ public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\LogList' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\QueueMember' !== 'string') { + if ('\FreeClimb\Api\Model\LogList' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -4761,7 +4675,7 @@ public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\LogList', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -4780,7 +4694,7 @@ public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType ); } - $returnType = '\FreeClimb\Api\Model\QueueMember'; + $returnType = '\FreeClimb\Api\Model\LogList'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -4813,7 +4727,7 @@ public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\QueueMember', + '\FreeClimb\Api\Model\LogList', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -4824,23 +4738,21 @@ public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType } /** - * Operation getAMemberAsync + * Operation filterLogsAsync * - * Get a Member + * Filter Logs * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - - * @param string $call_id ID of the Call that the Member belongs to (required) + * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAMemberAsync($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0]) + public function filterLogsAsync($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0]) { - return $this->getAMemberAsyncWithHttpInfo($queue_id, $call_id, $contentType) + return $this->filterLogsAsyncWithHttpInfo($filter_logs_request, $contentType) ->then( function ($response) { return $response[0]; @@ -4849,24 +4761,22 @@ function ($response) { } /** - * Operation getAMemberAsyncWithHttpInfo + * Operation filterLogsAsyncWithHttpInfo * - * Get a Member + * Filter Logs * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - - * @param string $call_id ID of the Call that the Member belongs to (required) + * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAMemberAsyncWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0]) + public function filterLogsAsyncWithHttpInfo($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0]) { - $returnType = '\FreeClimb\Api\Model\QueueMember'; - $request = $this->getAMemberRequest($queue_id, $call_id, $contentType); + $returnType = '\FreeClimb\Api\Model\LogList'; + $request = $this->filterLogsRequest($filter_logs_request, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -4905,39 +4815,30 @@ function ($exception) { } /** - * Create request for operation 'getAMember' + * Create request for operation 'filterLogs' * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - - * @param string $call_id ID of the Call that the Member belongs to (required) + * @param \FreeClimb\Api\Model\FilterLogsRequest $filter_logs_request Filter logs request paramters (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['filterLogs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAMemberRequest($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0]) + public function filterLogsRequest($filter_logs_request, string $contentType = self::contentTypes['filterLogs'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'queue_id' is set - if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $queue_id when calling getAMember' - ); - } - - // verify the required parameter 'call_id' is set - if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) { + // verify the required parameter 'filter_logs_request' is set + if ($filter_logs_request === null || (is_array($filter_logs_request) && count($filter_logs_request) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $call_id when calling getAMember' + 'Missing the required parameter $filter_logs_request when calling filterLogs' ); } - $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'; + $resourcePath = '/Accounts/{accountId}/Logs'; $formParams = []; $queryParams = []; $headerParams = []; @@ -4954,22 +4855,6 @@ public function getAMemberRequest($queue_id, $call_id, string $contentType = sel $resourcePath ); } - // path params - if ($queue_id !== null) { - $resourcePath = str_replace( - '{' . 'queueId' . '}', - ObjectSerializer::toPathValue($queue_id), - $resourcePath - ); - } - // path params - if ($call_id !== null) { - $resourcePath = str_replace( - '{' . 'callId' . '}', - ObjectSerializer::toPathValue($call_id), - $resourcePath - ); - } $headers = $this->headerSelector->selectHeaders( @@ -4979,7 +4864,14 @@ public function getAMemberRequest($queue_id, $call_id, string $contentType = sel ); // for model (json/xml) - if (count($formParams) > 0) { + if (isset($filter_logs_request)) { + if (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the body + $httpBody = \GuzzleHttp\Utils::jsonEncode(ObjectSerializer::sanitizeForSerialization($filter_logs_request)); + } else { + $httpBody = $filter_logs_request; + } + } elseif (count($formParams) > 0) { if ($multipart) { $multipartContents = []; foreach ($formParams as $formParamName => $formParamValue) { @@ -5022,7 +4914,7 @@ public function getAMemberRequest($queue_id, $call_id, string $contentType = sel $operationHost = $this->config->getHost(); $query = ObjectSerializer::buildQuery($queryParams); return new Request( - 'GET', + 'POST', $operationHost . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody @@ -5030,45 +4922,41 @@ public function getAMemberRequest($queue_id, $call_id, string $contentType = sel } /** - * Operation getAParticipant + * Operation getACall * - * Get a Participant + * Get a Call * - * @param string $conference_id ID of the conference this participant is in. (required) - - * @param string $call_id ID of the Call associated with this participant. (required) + * @param string $call_id String that uniquely identifies this call resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\ConferenceParticipantResult + * @return \FreeClimb\Api\Model\CallResult */ - public function getAParticipant($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0]) + public function getACall($call_id, string $contentType = self::contentTypes['getACall'][0]) { - list($response) = $this->getAParticipantWithHttpInfo($conference_id, $call_id, $contentType); + list($response) = $this->getACallWithHttpInfo($call_id, $contentType); return $response; } /** - * Operation getAParticipantWithHttpInfo + * Operation getACallWithHttpInfo * - * Get a Participant + * Get a Call * - * @param string $conference_id ID of the conference this participant is in. (required) - - * @param string $call_id ID of the Call associated with this participant. (required) + * @param string $call_id String that uniquely identifies this call resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\ConferenceParticipantResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\CallResult, HTTP status code, HTTP response headers (array of strings) */ - public function getAParticipantWithHttpInfo($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0]) + public function getACallWithHttpInfo($call_id, string $contentType = self::contentTypes['getACall'][0]) { - $request = $this->getAParticipantRequest($conference_id, $call_id, $contentType); + $request = $this->getACallRequest($call_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -5095,11 +4983,11 @@ public function getAParticipantWithHttpInfo($conference_id, $call_id, string $co switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\ConferenceParticipantResult' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\CallResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\ConferenceParticipantResult' !== 'string') { + if ('\FreeClimb\Api\Model\CallResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -5117,7 +5005,7 @@ public function getAParticipantWithHttpInfo($conference_id, $call_id, string $co } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceParticipantResult', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CallResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -5136,7 +5024,7 @@ public function getAParticipantWithHttpInfo($conference_id, $call_id, string $co ); } - $returnType = '\FreeClimb\Api\Model\ConferenceParticipantResult'; + $returnType = '\FreeClimb\Api\Model\CallResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -5169,7 +5057,7 @@ public function getAParticipantWithHttpInfo($conference_id, $call_id, string $co case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\ConferenceParticipantResult', + '\FreeClimb\Api\Model\CallResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -5180,23 +5068,21 @@ public function getAParticipantWithHttpInfo($conference_id, $call_id, string $co } /** - * Operation getAParticipantAsync + * Operation getACallAsync * - * Get a Participant + * Get a Call * - * @param string $conference_id ID of the conference this participant is in. (required) - - * @param string $call_id ID of the Call associated with this participant. (required) + * @param string $call_id String that uniquely identifies this call resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAParticipantAsync($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0]) + public function getACallAsync($call_id, string $contentType = self::contentTypes['getACall'][0]) { - return $this->getAParticipantAsyncWithHttpInfo($conference_id, $call_id, $contentType) + return $this->getACallAsyncWithHttpInfo($call_id, $contentType) ->then( function ($response) { return $response[0]; @@ -5205,24 +5091,22 @@ function ($response) { } /** - * Operation getAParticipantAsyncWithHttpInfo + * Operation getACallAsyncWithHttpInfo * - * Get a Participant + * Get a Call * - * @param string $conference_id ID of the conference this participant is in. (required) - - * @param string $call_id ID of the Call associated with this participant. (required) + * @param string $call_id String that uniquely identifies this call resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAParticipantAsyncWithHttpInfo($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0]) + public function getACallAsyncWithHttpInfo($call_id, string $contentType = self::contentTypes['getACall'][0]) { - $returnType = '\FreeClimb\Api\Model\ConferenceParticipantResult'; - $request = $this->getAParticipantRequest($conference_id, $call_id, $contentType); + $returnType = '\FreeClimb\Api\Model\CallResult'; + $request = $this->getACallRequest($call_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5261,39 +5145,30 @@ function ($exception) { } /** - * Create request for operation 'getAParticipant' + * Create request for operation 'getACall' * - * @param string $conference_id ID of the conference this participant is in. (required) - - * @param string $call_id ID of the Call associated with this participant. (required) + * @param string $call_id String that uniquely identifies this call resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getACall'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAParticipantRequest($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0]) + public function getACallRequest($call_id, string $contentType = self::contentTypes['getACall'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'conference_id' is set - if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $conference_id when calling getAParticipant' - ); - } - // verify the required parameter 'call_id' is set if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $call_id when calling getAParticipant' + 'Missing the required parameter $call_id when calling getACall' ); } - $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'; + $resourcePath = '/Accounts/{accountId}/Calls/{callId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -5311,14 +5186,6 @@ public function getAParticipantRequest($conference_id, $call_id, string $content ); } // path params - if ($conference_id !== null) { - $resourcePath = str_replace( - '{' . 'conferenceId' . '}', - ObjectSerializer::toPathValue($conference_id), - $resourcePath - ); - } - // path params if ($call_id !== null) { $resourcePath = str_replace( '{' . 'callId' . '}', @@ -5386,41 +5253,41 @@ public function getAParticipantRequest($conference_id, $call_id, string $content } /** - * Operation getAQueue + * Operation getAConference * - * Get a Queue + * Get a Conference * - * @param string $queue_id A string that uniquely identifies this queue resource. (required) + * @param string $conference_id A string that uniquely identifies this conference resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\QueueResult + * @return \FreeClimb\Api\Model\ConferenceResult */ - public function getAQueue($queue_id, string $contentType = self::contentTypes['getAQueue'][0]) + public function getAConference($conference_id, string $contentType = self::contentTypes['getAConference'][0]) { - list($response) = $this->getAQueueWithHttpInfo($queue_id, $contentType); + list($response) = $this->getAConferenceWithHttpInfo($conference_id, $contentType); return $response; } /** - * Operation getAQueueWithHttpInfo + * Operation getAConferenceWithHttpInfo * - * Get a Queue + * Get a Conference * - * @param string $queue_id A string that uniquely identifies this queue resource. (required) + * @param string $conference_id A string that uniquely identifies this conference resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\QueueResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\ConferenceResult, HTTP status code, HTTP response headers (array of strings) */ - public function getAQueueWithHttpInfo($queue_id, string $contentType = self::contentTypes['getAQueue'][0]) + public function getAConferenceWithHttpInfo($conference_id, string $contentType = self::contentTypes['getAConference'][0]) { - $request = $this->getAQueueRequest($queue_id, $contentType); + $request = $this->getAConferenceRequest($conference_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -5447,11 +5314,11 @@ public function getAQueueWithHttpInfo($queue_id, string $contentType = self::con switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\QueueResult' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\ConferenceResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\QueueResult' !== 'string') { + if ('\FreeClimb\Api\Model\ConferenceResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -5469,7 +5336,7 @@ public function getAQueueWithHttpInfo($queue_id, string $contentType = self::con } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueResult', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -5488,7 +5355,7 @@ public function getAQueueWithHttpInfo($queue_id, string $contentType = self::con ); } - $returnType = '\FreeClimb\Api\Model\QueueResult'; + $returnType = '\FreeClimb\Api\Model\ConferenceResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -5521,7 +5388,7 @@ public function getAQueueWithHttpInfo($queue_id, string $contentType = self::con case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\QueueResult', + '\FreeClimb\Api\Model\ConferenceResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -5532,21 +5399,21 @@ public function getAQueueWithHttpInfo($queue_id, string $contentType = self::con } /** - * Operation getAQueueAsync + * Operation getAConferenceAsync * - * Get a Queue + * Get a Conference * - * @param string $queue_id A string that uniquely identifies this queue resource. (required) + * @param string $conference_id A string that uniquely identifies this conference resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAQueueAsync($queue_id, string $contentType = self::contentTypes['getAQueue'][0]) + public function getAConferenceAsync($conference_id, string $contentType = self::contentTypes['getAConference'][0]) { - return $this->getAQueueAsyncWithHttpInfo($queue_id, $contentType) + return $this->getAConferenceAsyncWithHttpInfo($conference_id, $contentType) ->then( function ($response) { return $response[0]; @@ -5555,22 +5422,22 @@ function ($response) { } /** - * Operation getAQueueAsyncWithHttpInfo + * Operation getAConferenceAsyncWithHttpInfo * - * Get a Queue + * Get a Conference * - * @param string $queue_id A string that uniquely identifies this queue resource. (required) + * @param string $conference_id A string that uniquely identifies this conference resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAQueueAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['getAQueue'][0]) + public function getAConferenceAsyncWithHttpInfo($conference_id, string $contentType = self::contentTypes['getAConference'][0]) { - $returnType = '\FreeClimb\Api\Model\QueueResult'; - $request = $this->getAQueueRequest($queue_id, $contentType); + $returnType = '\FreeClimb\Api\Model\ConferenceResult'; + $request = $this->getAConferenceRequest($conference_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5609,30 +5476,30 @@ function ($exception) { } /** - * Create request for operation 'getAQueue' + * Create request for operation 'getAConference' * - * @param string $queue_id A string that uniquely identifies this queue resource. (required) + * @param string $conference_id A string that uniquely identifies this conference resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAConference'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAQueueRequest($queue_id, string $contentType = self::contentTypes['getAQueue'][0]) + public function getAConferenceRequest($conference_id, string $contentType = self::contentTypes['getAConference'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'queue_id' is set - if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) { + // verify the required parameter 'conference_id' is set + if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $queue_id when calling getAQueue' + 'Missing the required parameter $conference_id when calling getAConference' ); } - $resourcePath = '/Accounts/{accountId}/Queues/{queueId}'; + $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -5650,10 +5517,10 @@ public function getAQueueRequest($queue_id, string $contentType = self::contentT ); } // path params - if ($queue_id !== null) { + if ($conference_id !== null) { $resourcePath = str_replace( - '{' . 'queueId' . '}', - ObjectSerializer::toPathValue($queue_id), + '{' . 'conferenceId' . '}', + ObjectSerializer::toPathValue($conference_id), $resourcePath ); } @@ -5717,41 +5584,45 @@ public function getAQueueRequest($queue_id, string $contentType = self::contentT } /** - * Operation getARecording + * Operation getAMember * - * Get a Recording + * Get a Member * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation + * @param string $call_id ID of the Call that the Member belongs to (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\RecordingResult + * @return \FreeClimb\Api\Model\QueueMember */ - public function getARecording($recording_id, string $contentType = self::contentTypes['getARecording'][0]) + public function getAMember($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0]) { - list($response) = $this->getARecordingWithHttpInfo($recording_id, $contentType); + list($response) = $this->getAMemberWithHttpInfo($queue_id, $call_id, $contentType); return $response; } /** - * Operation getARecordingWithHttpInfo + * Operation getAMemberWithHttpInfo * - * Get a Recording + * Get a Member * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation + * @param string $call_id ID of the Call that the Member belongs to (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\RecordingResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings) */ - public function getARecordingWithHttpInfo($recording_id, string $contentType = self::contentTypes['getARecording'][0]) + public function getAMemberWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0]) { - $request = $this->getARecordingRequest($recording_id, $contentType); + $request = $this->getAMemberRequest($queue_id, $call_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -5778,11 +5649,11 @@ public function getARecordingWithHttpInfo($recording_id, string $contentType = s switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\RecordingResult' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\RecordingResult' !== 'string') { + if ('\FreeClimb\Api\Model\QueueMember' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -5800,7 +5671,7 @@ public function getARecordingWithHttpInfo($recording_id, string $contentType = s } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingResult', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -5819,7 +5690,7 @@ public function getARecordingWithHttpInfo($recording_id, string $contentType = s ); } - $returnType = '\FreeClimb\Api\Model\RecordingResult'; + $returnType = '\FreeClimb\Api\Model\QueueMember'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -5852,7 +5723,7 @@ public function getARecordingWithHttpInfo($recording_id, string $contentType = s case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\RecordingResult', + '\FreeClimb\Api\Model\QueueMember', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -5863,21 +5734,23 @@ public function getARecordingWithHttpInfo($recording_id, string $contentType = s } /** - * Operation getARecordingAsync + * Operation getAMemberAsync * - * Get a Recording + * Get a Member * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation + * @param string $call_id ID of the Call that the Member belongs to (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getARecordingAsync($recording_id, string $contentType = self::contentTypes['getARecording'][0]) + public function getAMemberAsync($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0]) { - return $this->getARecordingAsyncWithHttpInfo($recording_id, $contentType) + return $this->getAMemberAsyncWithHttpInfo($queue_id, $call_id, $contentType) ->then( function ($response) { return $response[0]; @@ -5886,22 +5759,24 @@ function ($response) { } /** - * Operation getARecordingAsyncWithHttpInfo + * Operation getAMemberAsyncWithHttpInfo * - * Get a Recording + * Get a Member * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation + * @param string $call_id ID of the Call that the Member belongs to (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getARecordingAsyncWithHttpInfo($recording_id, string $contentType = self::contentTypes['getARecording'][0]) + public function getAMemberAsyncWithHttpInfo($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0]) { - $returnType = '\FreeClimb\Api\Model\RecordingResult'; - $request = $this->getARecordingRequest($recording_id, $contentType); + $returnType = '\FreeClimb\Api\Model\QueueMember'; + $request = $this->getAMemberRequest($queue_id, $call_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -5940,30 +5815,39 @@ function ($exception) { } /** - * Create request for operation 'getARecording' + * Create request for operation 'getAMember' * - * @param string $recording_id String that uniquely identifies this recording resource. (required) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation + * @param string $call_id ID of the Call that the Member belongs to (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAMember'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getARecordingRequest($recording_id, string $contentType = self::contentTypes['getARecording'][0]) + public function getAMemberRequest($queue_id, $call_id, string $contentType = self::contentTypes['getAMember'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'recording_id' is set - if ($recording_id === null || (is_array($recording_id) && count($recording_id) === 0)) { + // verify the required parameter 'queue_id' is set + if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $recording_id when calling getARecording' + 'Missing the required parameter $queue_id when calling getAMember' + ); + } + + // verify the required parameter 'call_id' is set + if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $call_id when calling getAMember' ); } - $resourcePath = '/Accounts/{accountId}/Recordings/{recordingId}'; + $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/{callId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -5981,10 +5865,18 @@ public function getARecordingRequest($recording_id, string $contentType = self:: ); } // path params - if ($recording_id !== null) { + if ($queue_id !== null) { $resourcePath = str_replace( - '{' . 'recordingId' . '}', - ObjectSerializer::toPathValue($recording_id), + '{' . 'queueId' . '}', + ObjectSerializer::toPathValue($queue_id), + $resourcePath + ); + } + // path params + if ($call_id !== null) { + $resourcePath = str_replace( + '{' . 'callId' . '}', + ObjectSerializer::toPathValue($call_id), $resourcePath ); } @@ -6048,37 +5940,45 @@ public function getARecordingRequest($recording_id, string $contentType = self:: } /** - * Operation getAnAccount + * Operation getAParticipant * - * Get an Account + * Get a Participant * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation + * @param string $conference_id ID of the conference this participant is in. (required) + + * @param string $call_id ID of the Call associated with this participant. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\AccountResult + * @return \FreeClimb\Api\Model\ConferenceParticipantResult */ - public function getAnAccount(string $contentType = self::contentTypes['getAnAccount'][0]) + public function getAParticipant($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0]) { - list($response) = $this->getAnAccountWithHttpInfo($contentType); + list($response) = $this->getAParticipantWithHttpInfo($conference_id, $call_id, $contentType); return $response; } /** - * Operation getAnAccountWithHttpInfo + * Operation getAParticipantWithHttpInfo * - * Get an Account + * Get a Participant * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation + * @param string $conference_id ID of the conference this participant is in. (required) + + * @param string $call_id ID of the Call associated with this participant. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\AccountResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\ConferenceParticipantResult, HTTP status code, HTTP response headers (array of strings) */ - public function getAnAccountWithHttpInfo(string $contentType = self::contentTypes['getAnAccount'][0]) + public function getAParticipantWithHttpInfo($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0]) { - $request = $this->getAnAccountRequest($contentType); + $request = $this->getAParticipantRequest($conference_id, $call_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -6105,11 +6005,11 @@ public function getAnAccountWithHttpInfo(string $contentType = self::contentType switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\AccountResult' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\ConferenceParticipantResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\AccountResult' !== 'string') { + if ('\FreeClimb\Api\Model\ConferenceParticipantResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -6127,7 +6027,7 @@ public function getAnAccountWithHttpInfo(string $contentType = self::contentType } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\AccountResult', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceParticipantResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -6146,7 +6046,7 @@ public function getAnAccountWithHttpInfo(string $contentType = self::contentType ); } - $returnType = '\FreeClimb\Api\Model\AccountResult'; + $returnType = '\FreeClimb\Api\Model\ConferenceParticipantResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -6179,7 +6079,7 @@ public function getAnAccountWithHttpInfo(string $contentType = self::contentType case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\AccountResult', + '\FreeClimb\Api\Model\ConferenceParticipantResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -6190,19 +6090,23 @@ public function getAnAccountWithHttpInfo(string $contentType = self::contentType } /** - * Operation getAnAccountAsync + * Operation getAParticipantAsync * - * Get an Account + * Get a Participant * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation + * @param string $conference_id ID of the conference this participant is in. (required) + + * @param string $call_id ID of the Call associated with this participant. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAnAccountAsync(string $contentType = self::contentTypes['getAnAccount'][0]) + public function getAParticipantAsync($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0]) { - return $this->getAnAccountAsyncWithHttpInfo($contentType) + return $this->getAParticipantAsyncWithHttpInfo($conference_id, $call_id, $contentType) ->then( function ($response) { return $response[0]; @@ -6211,20 +6115,24 @@ function ($response) { } /** - * Operation getAnAccountAsyncWithHttpInfo + * Operation getAParticipantAsyncWithHttpInfo * - * Get an Account + * Get a Participant * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation + * @param string $conference_id ID of the conference this participant is in. (required) + + * @param string $call_id ID of the Call associated with this participant. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAnAccountAsyncWithHttpInfo(string $contentType = self::contentTypes['getAnAccount'][0]) + public function getAParticipantAsyncWithHttpInfo($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0]) { - $returnType = '\FreeClimb\Api\Model\AccountResult'; - $request = $this->getAnAccountRequest($contentType); + $returnType = '\FreeClimb\Api\Model\ConferenceParticipantResult'; + $request = $this->getAParticipantRequest($conference_id, $call_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6263,21 +6171,39 @@ function ($exception) { } /** - * Create request for operation 'getAnAccount' + * Create request for operation 'getAParticipant' * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation + * @param string $conference_id ID of the conference this participant is in. (required) + + * @param string $call_id ID of the Call associated with this participant. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAParticipant'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAnAccountRequest(string $contentType = self::contentTypes['getAnAccount'][0]) + public function getAParticipantRequest($conference_id, $call_id, string $contentType = self::contentTypes['getAParticipant'][0]) { $account_id = $this->config->getUsername(); + // verify the required parameter 'conference_id' is set + if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $conference_id when calling getAParticipant' + ); + } + + // verify the required parameter 'call_id' is set + if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $call_id when calling getAParticipant' + ); + } - $resourcePath = '/Accounts/{accountId}'; + + $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}/Participants/{callId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -6294,6 +6220,22 @@ public function getAnAccountRequest(string $contentType = self::contentTypes['ge $resourcePath ); } + // path params + if ($conference_id !== null) { + $resourcePath = str_replace( + '{' . 'conferenceId' . '}', + ObjectSerializer::toPathValue($conference_id), + $resourcePath + ); + } + // path params + if ($call_id !== null) { + $resourcePath = str_replace( + '{' . 'callId' . '}', + ObjectSerializer::toPathValue($call_id), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -6354,41 +6296,41 @@ public function getAnAccountRequest(string $contentType = self::contentTypes['ge } /** - * Operation getAnApplication + * Operation getAQueue * - * Get an Application + * Get a Queue * - * @param string $application_id A string that uniquely identifies this application resource. (required) + * @param string $queue_id A string that uniquely identifies this queue resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\ApplicationResult + * @return \FreeClimb\Api\Model\QueueResult */ - public function getAnApplication($application_id, string $contentType = self::contentTypes['getAnApplication'][0]) + public function getAQueue($queue_id, string $contentType = self::contentTypes['getAQueue'][0]) { - list($response) = $this->getAnApplicationWithHttpInfo($application_id, $contentType); + list($response) = $this->getAQueueWithHttpInfo($queue_id, $contentType); return $response; } /** - * Operation getAnApplicationWithHttpInfo + * Operation getAQueueWithHttpInfo * - * Get an Application + * Get a Queue * - * @param string $application_id A string that uniquely identifies this application resource. (required) + * @param string $queue_id A string that uniquely identifies this queue resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\ApplicationResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\QueueResult, HTTP status code, HTTP response headers (array of strings) */ - public function getAnApplicationWithHttpInfo($application_id, string $contentType = self::contentTypes['getAnApplication'][0]) + public function getAQueueWithHttpInfo($queue_id, string $contentType = self::contentTypes['getAQueue'][0]) { - $request = $this->getAnApplicationRequest($application_id, $contentType); + $request = $this->getAQueueRequest($queue_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -6415,11 +6357,11 @@ public function getAnApplicationWithHttpInfo($application_id, string $contentTyp switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\ApplicationResult' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\QueueResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\ApplicationResult' !== 'string') { + if ('\FreeClimb\Api\Model\QueueResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -6437,7 +6379,7 @@ public function getAnApplicationWithHttpInfo($application_id, string $contentTyp } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ApplicationResult', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -6456,7 +6398,7 @@ public function getAnApplicationWithHttpInfo($application_id, string $contentTyp ); } - $returnType = '\FreeClimb\Api\Model\ApplicationResult'; + $returnType = '\FreeClimb\Api\Model\QueueResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -6489,7 +6431,7 @@ public function getAnApplicationWithHttpInfo($application_id, string $contentTyp case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\ApplicationResult', + '\FreeClimb\Api\Model\QueueResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -6500,21 +6442,21 @@ public function getAnApplicationWithHttpInfo($application_id, string $contentTyp } /** - * Operation getAnApplicationAsync + * Operation getAQueueAsync * - * Get an Application + * Get a Queue * - * @param string $application_id A string that uniquely identifies this application resource. (required) + * @param string $queue_id A string that uniquely identifies this queue resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAnApplicationAsync($application_id, string $contentType = self::contentTypes['getAnApplication'][0]) + public function getAQueueAsync($queue_id, string $contentType = self::contentTypes['getAQueue'][0]) { - return $this->getAnApplicationAsyncWithHttpInfo($application_id, $contentType) + return $this->getAQueueAsyncWithHttpInfo($queue_id, $contentType) ->then( function ($response) { return $response[0]; @@ -6523,22 +6465,22 @@ function ($response) { } /** - * Operation getAnApplicationAsyncWithHttpInfo + * Operation getAQueueAsyncWithHttpInfo * - * Get an Application + * Get a Queue * - * @param string $application_id A string that uniquely identifies this application resource. (required) + * @param string $queue_id A string that uniquely identifies this queue resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAnApplicationAsyncWithHttpInfo($application_id, string $contentType = self::contentTypes['getAnApplication'][0]) + public function getAQueueAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['getAQueue'][0]) { - $returnType = '\FreeClimb\Api\Model\ApplicationResult'; - $request = $this->getAnApplicationRequest($application_id, $contentType); + $returnType = '\FreeClimb\Api\Model\QueueResult'; + $request = $this->getAQueueRequest($queue_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6577,30 +6519,30 @@ function ($exception) { } /** - * Create request for operation 'getAnApplication' + * Create request for operation 'getAQueue' * - * @param string $application_id A string that uniquely identifies this application resource. (required) + * @param string $queue_id A string that uniquely identifies this queue resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAQueue'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAnApplicationRequest($application_id, string $contentType = self::contentTypes['getAnApplication'][0]) + public function getAQueueRequest($queue_id, string $contentType = self::contentTypes['getAQueue'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'application_id' is set - if ($application_id === null || (is_array($application_id) && count($application_id) === 0)) { + // verify the required parameter 'queue_id' is set + if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $application_id when calling getAnApplication' + 'Missing the required parameter $queue_id when calling getAQueue' ); } - $resourcePath = '/Accounts/{accountId}/Applications/{applicationId}'; + $resourcePath = '/Accounts/{accountId}/Queues/{queueId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -6618,10 +6560,10 @@ public function getAnApplicationRequest($application_id, string $contentType = s ); } // path params - if ($application_id !== null) { + if ($queue_id !== null) { $resourcePath = str_replace( - '{' . 'applicationId' . '}', - ObjectSerializer::toPathValue($application_id), + '{' . 'queueId' . '}', + ObjectSerializer::toPathValue($queue_id), $resourcePath ); } @@ -6685,41 +6627,41 @@ public function getAnApplicationRequest($application_id, string $contentType = s } /** - * Operation getAnIncomingNumber + * Operation getARecording * - * Get an Incoming Number + * Get a Recording * - * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\IncomingNumberResult + * @return \FreeClimb\Api\Model\RecordingResult */ - public function getAnIncomingNumber($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0]) + public function getARecording($recording_id, string $contentType = self::contentTypes['getARecording'][0]) { - list($response) = $this->getAnIncomingNumberWithHttpInfo($phone_number_id, $contentType); + list($response) = $this->getARecordingWithHttpInfo($recording_id, $contentType); return $response; } /** - * Operation getAnIncomingNumberWithHttpInfo + * Operation getARecordingWithHttpInfo * - * Get an Incoming Number + * Get a Recording * - * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\IncomingNumberResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\RecordingResult, HTTP status code, HTTP response headers (array of strings) */ - public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0]) + public function getARecordingWithHttpInfo($recording_id, string $contentType = self::contentTypes['getARecording'][0]) { - $request = $this->getAnIncomingNumberRequest($phone_number_id, $contentType); + $request = $this->getARecordingRequest($recording_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -6746,11 +6688,11 @@ public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $conten switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\IncomingNumberResult' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\RecordingResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\IncomingNumberResult' !== 'string') { + if ('\FreeClimb\Api\Model\RecordingResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -6768,7 +6710,7 @@ public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $conten } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\IncomingNumberResult', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -6787,7 +6729,7 @@ public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $conten ); } - $returnType = '\FreeClimb\Api\Model\IncomingNumberResult'; + $returnType = '\FreeClimb\Api\Model\RecordingResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -6820,7 +6762,7 @@ public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $conten case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\IncomingNumberResult', + '\FreeClimb\Api\Model\RecordingResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -6831,21 +6773,21 @@ public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $conten } /** - * Operation getAnIncomingNumberAsync + * Operation getARecordingAsync * - * Get an Incoming Number + * Get a Recording * - * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAnIncomingNumberAsync($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0]) + public function getARecordingAsync($recording_id, string $contentType = self::contentTypes['getARecording'][0]) { - return $this->getAnIncomingNumberAsyncWithHttpInfo($phone_number_id, $contentType) + return $this->getARecordingAsyncWithHttpInfo($recording_id, $contentType) ->then( function ($response) { return $response[0]; @@ -6854,22 +6796,22 @@ function ($response) { } /** - * Operation getAnIncomingNumberAsyncWithHttpInfo + * Operation getARecordingAsyncWithHttpInfo * - * Get an Incoming Number + * Get a Recording * - * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAnIncomingNumberAsyncWithHttpInfo($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0]) + public function getARecordingAsyncWithHttpInfo($recording_id, string $contentType = self::contentTypes['getARecording'][0]) { - $returnType = '\FreeClimb\Api\Model\IncomingNumberResult'; - $request = $this->getAnIncomingNumberRequest($phone_number_id, $contentType); + $returnType = '\FreeClimb\Api\Model\RecordingResult'; + $request = $this->getARecordingRequest($recording_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -6908,30 +6850,30 @@ function ($exception) { } /** - * Create request for operation 'getAnIncomingNumber' + * Create request for operation 'getARecording' * - * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + * @param string $recording_id String that uniquely identifies this recording resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getARecording'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAnIncomingNumberRequest($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0]) + public function getARecordingRequest($recording_id, string $contentType = self::contentTypes['getARecording'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'phone_number_id' is set - if ($phone_number_id === null || (is_array($phone_number_id) && count($phone_number_id) === 0)) { + // verify the required parameter 'recording_id' is set + if ($recording_id === null || (is_array($recording_id) && count($recording_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $phone_number_id when calling getAnIncomingNumber' + 'Missing the required parameter $recording_id when calling getARecording' ); } - $resourcePath = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'; + $resourcePath = '/Accounts/{accountId}/Recordings/{recordingId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -6949,10 +6891,10 @@ public function getAnIncomingNumberRequest($phone_number_id, string $contentType ); } // path params - if ($phone_number_id !== null) { + if ($recording_id !== null) { $resourcePath = str_replace( - '{' . 'phoneNumberId' . '}', - ObjectSerializer::toPathValue($phone_number_id), + '{' . 'recordingId' . '}', + ObjectSerializer::toPathValue($recording_id), $resourcePath ); } @@ -7016,41 +6958,37 @@ public function getAnIncomingNumberRequest($phone_number_id, string $contentType } /** - * Operation getAnSmsMessage + * Operation getAnAccount * - * Get an SMS Message + * Get an Account * - * @param string $message_id String that uniquely identifies this Message resource. (required) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\MessageResult + * @return \FreeClimb\Api\Model\AccountResult */ - public function getAnSmsMessage($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0]) + public function getAnAccount(string $contentType = self::contentTypes['getAnAccount'][0]) { - list($response) = $this->getAnSmsMessageWithHttpInfo($message_id, $contentType); + list($response) = $this->getAnAccountWithHttpInfo($contentType); return $response; } /** - * Operation getAnSmsMessageWithHttpInfo + * Operation getAnAccountWithHttpInfo * - * Get an SMS Message + * Get an Account * - * @param string $message_id String that uniquely identifies this Message resource. (required) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\MessageResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\AccountResult, HTTP status code, HTTP response headers (array of strings) */ - public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0]) + public function getAnAccountWithHttpInfo(string $contentType = self::contentTypes['getAnAccount'][0]) { - $request = $this->getAnSmsMessageRequest($message_id, $contentType); + $request = $this->getAnAccountRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -7077,11 +7015,11 @@ public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = s switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\MessageResult' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\AccountResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\MessageResult' !== 'string') { + if ('\FreeClimb\Api\Model\AccountResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -7099,7 +7037,7 @@ public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = s } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\MessageResult', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\AccountResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -7118,7 +7056,7 @@ public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = s ); } - $returnType = '\FreeClimb\Api\Model\MessageResult'; + $returnType = '\FreeClimb\Api\Model\AccountResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -7151,7 +7089,7 @@ public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = s case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\MessageResult', + '\FreeClimb\Api\Model\AccountResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -7162,21 +7100,19 @@ public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = s } /** - * Operation getAnSmsMessageAsync + * Operation getAnAccountAsync * - * Get an SMS Message + * Get an Account * - * @param string $message_id String that uniquely identifies this Message resource. (required) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAnSmsMessageAsync($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0]) + public function getAnAccountAsync(string $contentType = self::contentTypes['getAnAccount'][0]) { - return $this->getAnSmsMessageAsyncWithHttpInfo($message_id, $contentType) + return $this->getAnAccountAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -7185,22 +7121,20 @@ function ($response) { } /** - * Operation getAnSmsMessageAsyncWithHttpInfo + * Operation getAnAccountAsyncWithHttpInfo * - * Get an SMS Message + * Get an Account * - * @param string $message_id String that uniquely identifies this Message resource. (required) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAnSmsMessageAsyncWithHttpInfo($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0]) + public function getAnAccountAsyncWithHttpInfo(string $contentType = self::contentTypes['getAnAccount'][0]) { - $returnType = '\FreeClimb\Api\Model\MessageResult'; - $request = $this->getAnSmsMessageRequest($message_id, $contentType); + $returnType = '\FreeClimb\Api\Model\AccountResult'; + $request = $this->getAnAccountRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7239,30 +7173,21 @@ function ($exception) { } /** - * Create request for operation 'getAnSmsMessage' + * Create request for operation 'getAnAccount' * - * @param string $message_id String that uniquely identifies this Message resource. (required) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnAccount'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getAnSmsMessageRequest($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0]) + public function getAnAccountRequest(string $contentType = self::contentTypes['getAnAccount'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'message_id' is set - if ($message_id === null || (is_array($message_id) && count($message_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $message_id when calling getAnSmsMessage' - ); - } - - $resourcePath = '/Accounts/{accountId}/Messages/{messageId}'; + $resourcePath = '/Accounts/{accountId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -7279,14 +7204,6 @@ public function getAnSmsMessageRequest($message_id, string $contentType = self:: $resourcePath ); } - // path params - if ($message_id !== null) { - $resourcePath = str_replace( - '{' . 'messageId' . '}', - ObjectSerializer::toPathValue($message_id), - $resourcePath - ); - } $headers = $this->headerSelector->selectHeaders( @@ -7347,41 +7264,41 @@ public function getAnSmsMessageRequest($message_id, string $contentType = self:: } /** - * Operation getHeadMember + * Operation getAnApplication * - * Get Head Member + * Get an Application * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) + * @param string $application_id A string that uniquely identifies this application resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\QueueMember + * @return \FreeClimb\Api\Model\ApplicationResult */ - public function getHeadMember($queue_id, string $contentType = self::contentTypes['getHeadMember'][0]) + public function getAnApplication($application_id, string $contentType = self::contentTypes['getAnApplication'][0]) { - list($response) = $this->getHeadMemberWithHttpInfo($queue_id, $contentType); + list($response) = $this->getAnApplicationWithHttpInfo($application_id, $contentType); return $response; } /** - * Operation getHeadMemberWithHttpInfo + * Operation getAnApplicationWithHttpInfo * - * Get Head Member + * Get an Application * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) + * @param string $application_id A string that uniquely identifies this application resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\ApplicationResult, HTTP status code, HTTP response headers (array of strings) */ - public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self::contentTypes['getHeadMember'][0]) + public function getAnApplicationWithHttpInfo($application_id, string $contentType = self::contentTypes['getAnApplication'][0]) { - $request = $this->getHeadMemberRequest($queue_id, $contentType); + $request = $this->getAnApplicationRequest($application_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -7408,11 +7325,11 @@ public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self: switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\ApplicationResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\QueueMember' !== 'string') { + if ('\FreeClimb\Api\Model\ApplicationResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -7430,7 +7347,7 @@ public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self: } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ApplicationResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -7449,7 +7366,7 @@ public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self: ); } - $returnType = '\FreeClimb\Api\Model\QueueMember'; + $returnType = '\FreeClimb\Api\Model\ApplicationResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -7482,7 +7399,7 @@ public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self: case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\QueueMember', + '\FreeClimb\Api\Model\ApplicationResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -7493,21 +7410,21 @@ public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self: } /** - * Operation getHeadMemberAsync + * Operation getAnApplicationAsync * - * Get Head Member + * Get an Application * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) + * @param string $application_id A string that uniquely identifies this application resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getHeadMemberAsync($queue_id, string $contentType = self::contentTypes['getHeadMember'][0]) + public function getAnApplicationAsync($application_id, string $contentType = self::contentTypes['getAnApplication'][0]) { - return $this->getHeadMemberAsyncWithHttpInfo($queue_id, $contentType) + return $this->getAnApplicationAsyncWithHttpInfo($application_id, $contentType) ->then( function ($response) { return $response[0]; @@ -7516,22 +7433,22 @@ function ($response) { } /** - * Operation getHeadMemberAsyncWithHttpInfo + * Operation getAnApplicationAsyncWithHttpInfo * - * Get Head Member + * Get an Application * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) + * @param string $application_id A string that uniquely identifies this application resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getHeadMemberAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['getHeadMember'][0]) + public function getAnApplicationAsyncWithHttpInfo($application_id, string $contentType = self::contentTypes['getAnApplication'][0]) { - $returnType = '\FreeClimb\Api\Model\QueueMember'; - $request = $this->getHeadMemberRequest($queue_id, $contentType); + $returnType = '\FreeClimb\Api\Model\ApplicationResult'; + $request = $this->getAnApplicationRequest($application_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7570,30 +7487,30 @@ function ($exception) { } /** - * Create request for operation 'getHeadMember' + * Create request for operation 'getAnApplication' * - * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) + * @param string $application_id A string that uniquely identifies this application resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnApplication'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getHeadMemberRequest($queue_id, string $contentType = self::contentTypes['getHeadMember'][0]) + public function getAnApplicationRequest($application_id, string $contentType = self::contentTypes['getAnApplication'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'queue_id' is set - if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) { + // verify the required parameter 'application_id' is set + if ($application_id === null || (is_array($application_id) && count($application_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $queue_id when calling getHeadMember' + 'Missing the required parameter $application_id when calling getAnApplication' ); } - $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'; + $resourcePath = '/Accounts/{accountId}/Applications/{applicationId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -7611,10 +7528,10 @@ public function getHeadMemberRequest($queue_id, string $contentType = self::cont ); } // path params - if ($queue_id !== null) { + if ($application_id !== null) { $resourcePath = str_replace( - '{' . 'queueId' . '}', - ObjectSerializer::toPathValue($queue_id), + '{' . 'applicationId' . '}', + ObjectSerializer::toPathValue($application_id), $resourcePath ); } @@ -7678,41 +7595,41 @@ public function getHeadMemberRequest($queue_id, string $contentType = self::cont } /** - * Operation getTenDLCSmsBrand + * Operation getAnExport * - * Get a 10DLC SMS Brand + * Get an Export * - * @param string $brand_id String that uniquely identifies this brand resource. (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\SMSTenDLCBrand + * @return \FreeClimb\Api\Model\ExportResult */ - public function getTenDLCSmsBrand($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0]) + public function getAnExport($export_id, string $contentType = self::contentTypes['getAnExport'][0]) { - list($response) = $this->getTenDLCSmsBrandWithHttpInfo($brand_id, $contentType); + list($response) = $this->getAnExportWithHttpInfo($export_id, $contentType); return $response; } /** - * Operation getTenDLCSmsBrandWithHttpInfo + * Operation getAnExportWithHttpInfo * - * Get a 10DLC SMS Brand + * Get an Export * - * @param string $brand_id String that uniquely identifies this brand resource. (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\SMSTenDLCBrand, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\ExportResult, HTTP status code, HTTP response headers (array of strings) */ - public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0]) + public function getAnExportWithHttpInfo($export_id, string $contentType = self::contentTypes['getAnExport'][0]) { - $request = $this->getTenDLCSmsBrandRequest($brand_id, $contentType); + $request = $this->getAnExportRequest($export_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -7739,11 +7656,11 @@ public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = s switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\SMSTenDLCBrand' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\ExportResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\SMSTenDLCBrand' !== 'string') { + if ('\FreeClimb\Api\Model\ExportResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -7761,7 +7678,7 @@ public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = s } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCBrand', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ExportResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -7780,7 +7697,7 @@ public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = s ); } - $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrand'; + $returnType = '\FreeClimb\Api\Model\ExportResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -7813,7 +7730,7 @@ public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = s case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\SMSTenDLCBrand', + '\FreeClimb\Api\Model\ExportResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -7824,21 +7741,21 @@ public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = s } /** - * Operation getTenDLCSmsBrandAsync + * Operation getAnExportAsync * - * Get a 10DLC SMS Brand + * Get an Export * - * @param string $brand_id String that uniquely identifies this brand resource. (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTenDLCSmsBrandAsync($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0]) + public function getAnExportAsync($export_id, string $contentType = self::contentTypes['getAnExport'][0]) { - return $this->getTenDLCSmsBrandAsyncWithHttpInfo($brand_id, $contentType) + return $this->getAnExportAsyncWithHttpInfo($export_id, $contentType) ->then( function ($response) { return $response[0]; @@ -7847,22 +7764,22 @@ function ($response) { } /** - * Operation getTenDLCSmsBrandAsyncWithHttpInfo + * Operation getAnExportAsyncWithHttpInfo * - * Get a 10DLC SMS Brand + * Get an Export * - * @param string $brand_id String that uniquely identifies this brand resource. (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTenDLCSmsBrandAsyncWithHttpInfo($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0]) + public function getAnExportAsyncWithHttpInfo($export_id, string $contentType = self::contentTypes['getAnExport'][0]) { - $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrand'; - $request = $this->getTenDLCSmsBrandRequest($brand_id, $contentType); + $returnType = '\FreeClimb\Api\Model\ExportResult'; + $request = $this->getAnExportRequest($export_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -7901,30 +7818,30 @@ function ($exception) { } /** - * Create request for operation 'getTenDLCSmsBrand' + * Create request for operation 'getAnExport' * - * @param string $brand_id String that uniquely identifies this brand resource. (required) + * @param string $export_id A string that uniquely identifies this export resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnExport'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getTenDLCSmsBrandRequest($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0]) + public function getAnExportRequest($export_id, string $contentType = self::contentTypes['getAnExport'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'brand_id' is set - if ($brand_id === null || (is_array($brand_id) && count($brand_id) === 0)) { + // verify the required parameter 'export_id' is set + if ($export_id === null || (is_array($export_id) && count($export_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $brand_id when calling getTenDLCSmsBrand' + 'Missing the required parameter $export_id when calling getAnExport' ); } - $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Brands/{brandId}'; + $resourcePath = '/Accounts/{accountId}/Exports/{exportId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -7942,10 +7859,10 @@ public function getTenDLCSmsBrandRequest($brand_id, string $contentType = self:: ); } // path params - if ($brand_id !== null) { + if ($export_id !== null) { $resourcePath = str_replace( - '{' . 'brandId' . '}', - ObjectSerializer::toPathValue($brand_id), + '{' . 'exportId' . '}', + ObjectSerializer::toPathValue($export_id), $resourcePath ); } @@ -8009,37 +7926,41 @@ public function getTenDLCSmsBrandRequest($brand_id, string $contentType = self:: } /** - * Operation getTenDLCSmsBrands + * Operation getAnIncomingNumber * - * Get list of SMS 10DLC Brands + * Get an Incoming Number * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation + * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\SMSTenDLCBrandsListResult + * @return \FreeClimb\Api\Model\IncomingNumberResult */ - public function getTenDLCSmsBrands(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0]) + public function getAnIncomingNumber($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0]) { - list($response) = $this->getTenDLCSmsBrandsWithHttpInfo($contentType); + list($response) = $this->getAnIncomingNumberWithHttpInfo($phone_number_id, $contentType); return $response; } /** - * Operation getTenDLCSmsBrandsWithHttpInfo + * Operation getAnIncomingNumberWithHttpInfo * - * Get list of SMS 10DLC Brands + * Get an Incoming Number * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation + * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\SMSTenDLCBrandsListResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\IncomingNumberResult, HTTP status code, HTTP response headers (array of strings) */ - public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0]) + public function getAnIncomingNumberWithHttpInfo($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0]) { - $request = $this->getTenDLCSmsBrandsRequest($contentType); + $request = $this->getAnIncomingNumberRequest($phone_number_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -8066,11 +7987,11 @@ public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::conte switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\SMSTenDLCBrandsListResult' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\IncomingNumberResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\SMSTenDLCBrandsListResult' !== 'string') { + if ('\FreeClimb\Api\Model\IncomingNumberResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -8088,7 +8009,7 @@ public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::conte } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\IncomingNumberResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -8107,7 +8028,7 @@ public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::conte ); } - $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult'; + $returnType = '\FreeClimb\Api\Model\IncomingNumberResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -8140,7 +8061,7 @@ public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::conte case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult', + '\FreeClimb\Api\Model\IncomingNumberResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -8151,19 +8072,21 @@ public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::conte } /** - * Operation getTenDLCSmsBrandsAsync + * Operation getAnIncomingNumberAsync * - * Get list of SMS 10DLC Brands + * Get an Incoming Number * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation + * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTenDLCSmsBrandsAsync(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0]) + public function getAnIncomingNumberAsync($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0]) { - return $this->getTenDLCSmsBrandsAsyncWithHttpInfo($contentType) + return $this->getAnIncomingNumberAsyncWithHttpInfo($phone_number_id, $contentType) ->then( function ($response) { return $response[0]; @@ -8172,20 +8095,22 @@ function ($response) { } /** - * Operation getTenDLCSmsBrandsAsyncWithHttpInfo + * Operation getAnIncomingNumberAsyncWithHttpInfo * - * Get list of SMS 10DLC Brands + * Get an Incoming Number * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation + * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTenDLCSmsBrandsAsyncWithHttpInfo(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0]) + public function getAnIncomingNumberAsyncWithHttpInfo($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0]) { - $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult'; - $request = $this->getTenDLCSmsBrandsRequest($contentType); + $returnType = '\FreeClimb\Api\Model\IncomingNumberResult'; + $request = $this->getAnIncomingNumberRequest($phone_number_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8224,21 +8149,30 @@ function ($exception) { } /** - * Create request for operation 'getTenDLCSmsBrands' + * Create request for operation 'getAnIncomingNumber' * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation + * @param string $phone_number_id String that uniquely identifies this phone number resource. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnIncomingNumber'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getTenDLCSmsBrandsRequest(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0]) + public function getAnIncomingNumberRequest($phone_number_id, string $contentType = self::contentTypes['getAnIncomingNumber'][0]) { $account_id = $this->config->getUsername(); + // verify the required parameter 'phone_number_id' is set + if ($phone_number_id === null || (is_array($phone_number_id) && count($phone_number_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $phone_number_id when calling getAnIncomingNumber' + ); + } + - $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Brands'; + $resourcePath = '/Accounts/{accountId}/IncomingPhoneNumbers/{phoneNumberId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -8255,6 +8189,14 @@ public function getTenDLCSmsBrandsRequest(string $contentType = self::contentTyp $resourcePath ); } + // path params + if ($phone_number_id !== null) { + $resourcePath = str_replace( + '{' . 'phoneNumberId' . '}', + ObjectSerializer::toPathValue($phone_number_id), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -8315,41 +8257,41 @@ public function getTenDLCSmsBrandsRequest(string $contentType = self::contentTyp } /** - * Operation getTenDLCSmsCampaign + * Operation getAnSmsMessage * - * Get a 10DLC SMS Campaign + * Get an SMS Message * - * @param string $campaign_id String that uniquely identifies this campaign resource. (required) + * @param string $message_id String that uniquely identifies this Message resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\SMSTenDLCCampaign + * @return \FreeClimb\Api\Model\MessageResult */ - public function getTenDLCSmsCampaign($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0]) + public function getAnSmsMessage($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0]) { - list($response) = $this->getTenDLCSmsCampaignWithHttpInfo($campaign_id, $contentType); + list($response) = $this->getAnSmsMessageWithHttpInfo($message_id, $contentType); return $response; } /** - * Operation getTenDLCSmsCampaignWithHttpInfo + * Operation getAnSmsMessageWithHttpInfo * - * Get a 10DLC SMS Campaign + * Get an SMS Message * - * @param string $campaign_id String that uniquely identifies this campaign resource. (required) + * @param string $message_id String that uniquely identifies this Message resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\SMSTenDLCCampaign, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\MessageResult, HTTP status code, HTTP response headers (array of strings) */ - public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0]) + public function getAnSmsMessageWithHttpInfo($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0]) { - $request = $this->getTenDLCSmsCampaignRequest($campaign_id, $contentType); + $request = $this->getAnSmsMessageRequest($message_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -8376,11 +8318,11 @@ public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentTy switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\SMSTenDLCCampaign' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\MessageResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\SMSTenDLCCampaign' !== 'string') { + if ('\FreeClimb\Api\Model\MessageResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -8398,7 +8340,7 @@ public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentTy } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCCampaign', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\MessageResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -8417,7 +8359,7 @@ public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentTy ); } - $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaign'; + $returnType = '\FreeClimb\Api\Model\MessageResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -8450,7 +8392,7 @@ public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentTy case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\SMSTenDLCCampaign', + '\FreeClimb\Api\Model\MessageResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -8461,21 +8403,21 @@ public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentTy } /** - * Operation getTenDLCSmsCampaignAsync + * Operation getAnSmsMessageAsync * - * Get a 10DLC SMS Campaign + * Get an SMS Message * - * @param string $campaign_id String that uniquely identifies this campaign resource. (required) + * @param string $message_id String that uniquely identifies this Message resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTenDLCSmsCampaignAsync($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0]) + public function getAnSmsMessageAsync($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0]) { - return $this->getTenDLCSmsCampaignAsyncWithHttpInfo($campaign_id, $contentType) + return $this->getAnSmsMessageAsyncWithHttpInfo($message_id, $contentType) ->then( function ($response) { return $response[0]; @@ -8484,22 +8426,22 @@ function ($response) { } /** - * Operation getTenDLCSmsCampaignAsyncWithHttpInfo + * Operation getAnSmsMessageAsyncWithHttpInfo * - * Get a 10DLC SMS Campaign + * Get an SMS Message * - * @param string $campaign_id String that uniquely identifies this campaign resource. (required) + * @param string $message_id String that uniquely identifies this Message resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTenDLCSmsCampaignAsyncWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0]) + public function getAnSmsMessageAsyncWithHttpInfo($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0]) { - $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaign'; - $request = $this->getTenDLCSmsCampaignRequest($campaign_id, $contentType); + $returnType = '\FreeClimb\Api\Model\MessageResult'; + $request = $this->getAnSmsMessageRequest($message_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8538,30 +8480,30 @@ function ($exception) { } /** - * Create request for operation 'getTenDLCSmsCampaign' + * Create request for operation 'getAnSmsMessage' * - * @param string $campaign_id String that uniquely identifies this campaign resource. (required) + * @param string $message_id String that uniquely identifies this Message resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getAnSmsMessage'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getTenDLCSmsCampaignRequest($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0]) + public function getAnSmsMessageRequest($message_id, string $contentType = self::contentTypes['getAnSmsMessage'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null || (is_array($campaign_id) && count($campaign_id) === 0)) { + // verify the required parameter 'message_id' is set + if ($message_id === null || (is_array($message_id) && count($message_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $campaign_id when calling getTenDLCSmsCampaign' + 'Missing the required parameter $message_id when calling getAnSmsMessage' ); } - $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Campaigns/{campaignId}'; + $resourcePath = '/Accounts/{accountId}/Messages/{messageId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -8579,10 +8521,10 @@ public function getTenDLCSmsCampaignRequest($campaign_id, string $contentType = ); } // path params - if ($campaign_id !== null) { + if ($message_id !== null) { $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaign_id), + '{' . 'messageId' . '}', + ObjectSerializer::toPathValue($message_id), $resourcePath ); } @@ -8646,41 +8588,41 @@ public function getTenDLCSmsCampaignRequest($campaign_id, string $contentType = } /** - * Operation getTenDLCSmsCampaigns + * Operation getHeadMember * - * Get list of SMS 10DLC Campaigns + * Get Head Member * - * @param string $brand_id The unique identifier for a brand (optional) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\SMSTenDLCCampaignsListResult + * @return \FreeClimb\Api\Model\QueueMember */ - public function getTenDLCSmsCampaigns($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0]) + public function getHeadMember($queue_id, string $contentType = self::contentTypes['getHeadMember'][0]) { - list($response) = $this->getTenDLCSmsCampaignsWithHttpInfo($brand_id, $contentType); + list($response) = $this->getHeadMemberWithHttpInfo($queue_id, $contentType); return $response; } /** - * Operation getTenDLCSmsCampaignsWithHttpInfo + * Operation getHeadMemberWithHttpInfo * - * Get list of SMS 10DLC Campaigns + * Get Head Member * - * @param string $brand_id The unique identifier for a brand (optional) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\SMSTenDLCCampaignsListResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\QueueMember, HTTP status code, HTTP response headers (array of strings) */ - public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0]) + public function getHeadMemberWithHttpInfo($queue_id, string $contentType = self::contentTypes['getHeadMember'][0]) { - $request = $this->getTenDLCSmsCampaignsRequest($brand_id, $contentType); + $request = $this->getHeadMemberRequest($queue_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -8707,11 +8649,11 @@ public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $cont switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\QueueMember' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult' !== 'string') { + if ('\FreeClimb\Api\Model\QueueMember' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -8729,7 +8671,7 @@ public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $cont } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueMember', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -8748,7 +8690,7 @@ public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $cont ); } - $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult'; + $returnType = '\FreeClimb\Api\Model\QueueMember'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -8781,7 +8723,7 @@ public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $cont case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult', + '\FreeClimb\Api\Model\QueueMember', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -8792,21 +8734,21 @@ public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $cont } /** - * Operation getTenDLCSmsCampaignsAsync + * Operation getHeadMemberAsync * - * Get list of SMS 10DLC Campaigns + * Get Head Member * - * @param string $brand_id The unique identifier for a brand (optional) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTenDLCSmsCampaignsAsync($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0]) + public function getHeadMemberAsync($queue_id, string $contentType = self::contentTypes['getHeadMember'][0]) { - return $this->getTenDLCSmsCampaignsAsyncWithHttpInfo($brand_id, $contentType) + return $this->getHeadMemberAsyncWithHttpInfo($queue_id, $contentType) ->then( function ($response) { return $response[0]; @@ -8815,22 +8757,22 @@ function ($response) { } /** - * Operation getTenDLCSmsCampaignsAsyncWithHttpInfo + * Operation getHeadMemberAsyncWithHttpInfo * - * Get list of SMS 10DLC Campaigns + * Get Head Member * - * @param string $brand_id The unique identifier for a brand (optional) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTenDLCSmsCampaignsAsyncWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0]) + public function getHeadMemberAsyncWithHttpInfo($queue_id, string $contentType = self::contentTypes['getHeadMember'][0]) { - $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult'; - $request = $this->getTenDLCSmsCampaignsRequest($brand_id, $contentType); + $returnType = '\FreeClimb\Api\Model\QueueMember'; + $request = $this->getHeadMemberRequest($queue_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -8869,39 +8811,36 @@ function ($exception) { } /** - * Create request for operation 'getTenDLCSmsCampaigns' + * Create request for operation 'getHeadMember' * - * @param string $brand_id The unique identifier for a brand (optional) + * @param string $queue_id String that uniquely identifies the Queue that the Member belongs to. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getHeadMember'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getTenDLCSmsCampaignsRequest($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0]) + public function getHeadMemberRequest($queue_id, string $contentType = self::contentTypes['getHeadMember'][0]) { $account_id = $this->config->getUsername(); + // verify the required parameter 'queue_id' is set + if ($queue_id === null || (is_array($queue_id) && count($queue_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $queue_id when calling getHeadMember' + ); + } - $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Campaigns'; + $resourcePath = '/Accounts/{accountId}/Queues/{queueId}/Members/Front'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $brand_id, - 'brandId', // param base name - 'string', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); // path params @@ -8912,8 +8851,16 @@ public function getTenDLCSmsCampaignsRequest($brand_id = null, string $contentTy $resourcePath ); } - - + // path params + if ($queue_id !== null) { + $resourcePath = str_replace( + '{' . 'queueId' . '}', + ObjectSerializer::toPathValue($queue_id), + $resourcePath + ); + } + + $headers = $this->headerSelector->selectHeaders( ['application/json', ], $contentType, @@ -8972,41 +8919,41 @@ public function getTenDLCSmsCampaignsRequest($brand_id = null, string $contentTy } /** - * Operation getTenDLCSmsPartnerCampaign + * Operation getTenDLCSmsBrand * - * Get a 10DLC SMS Partner Campaign + * Get a 10DLC SMS Brand * - * @param string $campaign_id String that uniquely identifies this campaign resource. (required) + * @param string $brand_id String that uniquely identifies this brand resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\SMSTenDLCPartnerCampaign + * @return \FreeClimb\Api\Model\SMSTenDLCBrand */ - public function getTenDLCSmsPartnerCampaign($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0]) + public function getTenDLCSmsBrand($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0]) { - list($response) = $this->getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, $contentType); + list($response) = $this->getTenDLCSmsBrandWithHttpInfo($brand_id, $contentType); return $response; } /** - * Operation getTenDLCSmsPartnerCampaignWithHttpInfo + * Operation getTenDLCSmsBrandWithHttpInfo * - * Get a 10DLC SMS Partner Campaign + * Get a 10DLC SMS Brand * - * @param string $campaign_id String that uniquely identifies this campaign resource. (required) + * @param string $brand_id String that uniquely identifies this brand resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\SMSTenDLCPartnerCampaign, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\SMSTenDLCBrand, HTTP status code, HTTP response headers (array of strings) */ - public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0]) + public function getTenDLCSmsBrandWithHttpInfo($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0]) { - $request = $this->getTenDLCSmsPartnerCampaignRequest($campaign_id, $contentType); + $request = $this->getTenDLCSmsBrandRequest($brand_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -9033,11 +8980,11 @@ public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $co switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\SMSTenDLCBrand' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign' !== 'string') { + if ('\FreeClimb\Api\Model\SMSTenDLCBrand' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -9055,7 +9002,7 @@ public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $co } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCBrand', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -9074,7 +9021,7 @@ public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $co ); } - $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign'; + $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrand'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -9107,7 +9054,7 @@ public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $co case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign', + '\FreeClimb\Api\Model\SMSTenDLCBrand', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -9118,21 +9065,21 @@ public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $co } /** - * Operation getTenDLCSmsPartnerCampaignAsync + * Operation getTenDLCSmsBrandAsync * - * Get a 10DLC SMS Partner Campaign + * Get a 10DLC SMS Brand * - * @param string $campaign_id String that uniquely identifies this campaign resource. (required) + * @param string $brand_id String that uniquely identifies this brand resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTenDLCSmsPartnerCampaignAsync($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0]) + public function getTenDLCSmsBrandAsync($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0]) { - return $this->getTenDLCSmsPartnerCampaignAsyncWithHttpInfo($campaign_id, $contentType) + return $this->getTenDLCSmsBrandAsyncWithHttpInfo($brand_id, $contentType) ->then( function ($response) { return $response[0]; @@ -9141,22 +9088,22 @@ function ($response) { } /** - * Operation getTenDLCSmsPartnerCampaignAsyncWithHttpInfo + * Operation getTenDLCSmsBrandAsyncWithHttpInfo * - * Get a 10DLC SMS Partner Campaign + * Get a 10DLC SMS Brand * - * @param string $campaign_id String that uniquely identifies this campaign resource. (required) + * @param string $brand_id String that uniquely identifies this brand resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTenDLCSmsPartnerCampaignAsyncWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0]) + public function getTenDLCSmsBrandAsyncWithHttpInfo($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0]) { - $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign'; - $request = $this->getTenDLCSmsPartnerCampaignRequest($campaign_id, $contentType); + $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrand'; + $request = $this->getTenDLCSmsBrandRequest($brand_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9195,30 +9142,30 @@ function ($exception) { } /** - * Create request for operation 'getTenDLCSmsPartnerCampaign' + * Create request for operation 'getTenDLCSmsBrand' * - * @param string $campaign_id String that uniquely identifies this campaign resource. (required) + * @param string $brand_id String that uniquely identifies this brand resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrand'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getTenDLCSmsPartnerCampaignRequest($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0]) + public function getTenDLCSmsBrandRequest($brand_id, string $contentType = self::contentTypes['getTenDLCSmsBrand'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'campaign_id' is set - if ($campaign_id === null || (is_array($campaign_id) && count($campaign_id) === 0)) { + // verify the required parameter 'brand_id' is set + if ($brand_id === null || (is_array($brand_id) && count($brand_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $campaign_id when calling getTenDLCSmsPartnerCampaign' + 'Missing the required parameter $brand_id when calling getTenDLCSmsBrand' ); } - $resourcePath = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns/{campaignId}'; + $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Brands/{brandId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -9236,10 +9183,10 @@ public function getTenDLCSmsPartnerCampaignRequest($campaign_id, string $content ); } // path params - if ($campaign_id !== null) { + if ($brand_id !== null) { $resourcePath = str_replace( - '{' . 'campaignId' . '}', - ObjectSerializer::toPathValue($campaign_id), + '{' . 'brandId' . '}', + ObjectSerializer::toPathValue($brand_id), $resourcePath ); } @@ -9303,41 +9250,37 @@ public function getTenDLCSmsPartnerCampaignRequest($campaign_id, string $content } /** - * Operation getTenDLCSmsPartnerCampaigns + * Operation getTenDLCSmsBrands * - * Get list of SMS 10DLC Partner Campaigns + * Get list of SMS 10DLC Brands * - * @param string $brand_id The unique identifier for a brand (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult + * @return \FreeClimb\Api\Model\SMSTenDLCBrandsListResult */ - public function getTenDLCSmsPartnerCampaigns($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0]) + public function getTenDLCSmsBrands(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0]) { - list($response) = $this->getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id, $contentType); + list($response) = $this->getTenDLCSmsBrandsWithHttpInfo($contentType); return $response; } /** - * Operation getTenDLCSmsPartnerCampaignsWithHttpInfo + * Operation getTenDLCSmsBrandsWithHttpInfo * - * Get list of SMS 10DLC Partner Campaigns + * Get list of SMS 10DLC Brands * - * @param string $brand_id The unique identifier for a brand (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\SMSTenDLCBrandsListResult, HTTP status code, HTTP response headers (array of strings) */ - public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0]) + public function getTenDLCSmsBrandsWithHttpInfo(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0]) { - $request = $this->getTenDLCSmsPartnerCampaignsRequest($brand_id, $contentType); + $request = $this->getTenDLCSmsBrandsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -9364,11 +9307,11 @@ public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, strin switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\SMSTenDLCBrandsListResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult' !== 'string') { + if ('\FreeClimb\Api\Model\SMSTenDLCBrandsListResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -9386,7 +9329,7 @@ public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, strin } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -9405,7 +9348,7 @@ public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, strin ); } - $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult'; + $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -9438,7 +9381,7 @@ public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, strin case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult', + '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -9449,21 +9392,19 @@ public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, strin } /** - * Operation getTenDLCSmsPartnerCampaignsAsync + * Operation getTenDLCSmsBrandsAsync * - * Get list of SMS 10DLC Partner Campaigns + * Get list of SMS 10DLC Brands * - * @param string $brand_id The unique identifier for a brand (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTenDLCSmsPartnerCampaignsAsync($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0]) + public function getTenDLCSmsBrandsAsync(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0]) { - return $this->getTenDLCSmsPartnerCampaignsAsyncWithHttpInfo($brand_id, $contentType) + return $this->getTenDLCSmsBrandsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -9472,22 +9413,20 @@ function ($response) { } /** - * Operation getTenDLCSmsPartnerCampaignsAsyncWithHttpInfo + * Operation getTenDLCSmsBrandsAsyncWithHttpInfo * - * Get list of SMS 10DLC Partner Campaigns + * Get list of SMS 10DLC Brands * - * @param string $brand_id The unique identifier for a brand (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTenDLCSmsPartnerCampaignsAsyncWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0]) + public function getTenDLCSmsBrandsAsyncWithHttpInfo(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0]) { - $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult'; - $request = $this->getTenDLCSmsPartnerCampaignsRequest($brand_id, $contentType); + $returnType = '\FreeClimb\Api\Model\SMSTenDLCBrandsListResult'; + $request = $this->getTenDLCSmsBrandsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9526,39 +9465,27 @@ function ($exception) { } /** - * Create request for operation 'getTenDLCSmsPartnerCampaigns' + * Create request for operation 'getTenDLCSmsBrands' * - * @param string $brand_id The unique identifier for a brand (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsBrands'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getTenDLCSmsPartnerCampaignsRequest($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0]) + public function getTenDLCSmsBrandsRequest(string $contentType = self::contentTypes['getTenDLCSmsBrands'][0]) { $account_id = $this->config->getUsername(); - - $resourcePath = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns'; + $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Brands'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $brand_id, - 'brandId', // param base name - 'string', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); // path params @@ -9629,41 +9556,41 @@ public function getTenDLCSmsPartnerCampaignsRequest($brand_id = null, string $co } /** - * Operation getTollFreeSmsCampaign + * Operation getTenDLCSmsCampaign * - * Get a TollFree SMS Campaign + * Get a 10DLC SMS Campaign * - * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required) + * @param string $campaign_id String that uniquely identifies this campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\SMSTollFreeCampaign + * @return \FreeClimb\Api\Model\SMSTenDLCCampaign */ - public function getTollFreeSmsCampaign($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0]) + public function getTenDLCSmsCampaign($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0]) { - list($response) = $this->getTollFreeSmsCampaignWithHttpInfo($campaign_id, $contentType); + list($response) = $this->getTenDLCSmsCampaignWithHttpInfo($campaign_id, $contentType); return $response; } /** - * Operation getTollFreeSmsCampaignWithHttpInfo + * Operation getTenDLCSmsCampaignWithHttpInfo * - * Get a TollFree SMS Campaign + * Get a 10DLC SMS Campaign * - * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required) + * @param string $campaign_id String that uniquely identifies this campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\SMSTollFreeCampaign, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\SMSTenDLCCampaign, HTTP status code, HTTP response headers (array of strings) */ - public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0]) + public function getTenDLCSmsCampaignWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0]) { - $request = $this->getTollFreeSmsCampaignRequest($campaign_id, $contentType); + $request = $this->getTenDLCSmsCampaignRequest($campaign_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -9690,11 +9617,11 @@ public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $content switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\SMSTollFreeCampaign' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\SMSTenDLCCampaign' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\SMSTollFreeCampaign' !== 'string') { + if ('\FreeClimb\Api\Model\SMSTenDLCCampaign' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -9712,7 +9639,7 @@ public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $content } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTollFreeCampaign', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCCampaign', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -9731,7 +9658,7 @@ public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $content ); } - $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaign'; + $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaign'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -9764,7 +9691,7 @@ public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $content case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\SMSTollFreeCampaign', + '\FreeClimb\Api\Model\SMSTenDLCCampaign', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -9775,21 +9702,21 @@ public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $content } /** - * Operation getTollFreeSmsCampaignAsync + * Operation getTenDLCSmsCampaignAsync * - * Get a TollFree SMS Campaign + * Get a 10DLC SMS Campaign * - * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required) + * @param string $campaign_id String that uniquely identifies this campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTollFreeSmsCampaignAsync($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0]) + public function getTenDLCSmsCampaignAsync($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0]) { - return $this->getTollFreeSmsCampaignAsyncWithHttpInfo($campaign_id, $contentType) + return $this->getTenDLCSmsCampaignAsyncWithHttpInfo($campaign_id, $contentType) ->then( function ($response) { return $response[0]; @@ -9798,22 +9725,22 @@ function ($response) { } /** - * Operation getTollFreeSmsCampaignAsyncWithHttpInfo + * Operation getTenDLCSmsCampaignAsyncWithHttpInfo * - * Get a TollFree SMS Campaign + * Get a 10DLC SMS Campaign * - * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required) + * @param string $campaign_id String that uniquely identifies this campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTollFreeSmsCampaignAsyncWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0]) + public function getTenDLCSmsCampaignAsyncWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0]) { - $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaign'; - $request = $this->getTollFreeSmsCampaignRequest($campaign_id, $contentType); + $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaign'; + $request = $this->getTenDLCSmsCampaignRequest($campaign_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -9852,30 +9779,30 @@ function ($exception) { } /** - * Create request for operation 'getTollFreeSmsCampaign' + * Create request for operation 'getTenDLCSmsCampaign' * - * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required) + * @param string $campaign_id String that uniquely identifies this campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaign'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getTollFreeSmsCampaignRequest($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0]) + public function getTenDLCSmsCampaignRequest($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsCampaign'][0]) { $account_id = $this->config->getUsername(); // verify the required parameter 'campaign_id' is set if ($campaign_id === null || (is_array($campaign_id) && count($campaign_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $campaign_id when calling getTollFreeSmsCampaign' + 'Missing the required parameter $campaign_id when calling getTenDLCSmsCampaign' ); } - $resourcePath = '/Accounts/{accountId}/Messages/TollFree/Campaigns/{campaignId}'; + $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Campaigns/{campaignId}'; $formParams = []; $queryParams = []; $headerParams = []; @@ -9960,37 +9887,41 @@ public function getTollFreeSmsCampaignRequest($campaign_id, string $contentType } /** - * Operation getTollFreeSmsCampaigns + * Operation getTenDLCSmsCampaigns * - * Get list of TollFree Campaigns + * Get list of SMS 10DLC Campaigns * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation + * @param string $brand_id The unique identifier for a brand (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\SMSTollFreeCampaignsListResult + * @return \FreeClimb\Api\Model\SMSTenDLCCampaignsListResult */ - public function getTollFreeSmsCampaigns(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0]) + public function getTenDLCSmsCampaigns($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0]) { - list($response) = $this->getTollFreeSmsCampaignsWithHttpInfo($contentType); + list($response) = $this->getTenDLCSmsCampaignsWithHttpInfo($brand_id, $contentType); return $response; } /** - * Operation getTollFreeSmsCampaignsWithHttpInfo + * Operation getTenDLCSmsCampaignsWithHttpInfo * - * Get list of TollFree Campaigns + * Get list of SMS 10DLC Campaigns * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation + * @param string $brand_id The unique identifier for a brand (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\SMSTollFreeCampaignsListResult, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\SMSTenDLCCampaignsListResult, HTTP status code, HTTP response headers (array of strings) */ - public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0]) + public function getTenDLCSmsCampaignsWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0]) { - $request = $this->getTollFreeSmsCampaignsRequest($contentType); + $request = $this->getTenDLCSmsCampaignsRequest($brand_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -10017,11 +9948,11 @@ public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self:: switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult' !== 'string') { + if ('\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -10039,7 +9970,7 @@ public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self:: } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -10058,7 +9989,7 @@ public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self:: ); } - $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult'; + $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -10091,7 +10022,7 @@ public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self:: case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult', + '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -10102,19 +10033,21 @@ public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self:: } /** - * Operation getTollFreeSmsCampaignsAsync + * Operation getTenDLCSmsCampaignsAsync * - * Get list of TollFree Campaigns + * Get list of SMS 10DLC Campaigns * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation + * @param string $brand_id The unique identifier for a brand (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTollFreeSmsCampaignsAsync(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0]) + public function getTenDLCSmsCampaignsAsync($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0]) { - return $this->getTollFreeSmsCampaignsAsyncWithHttpInfo($contentType) + return $this->getTenDLCSmsCampaignsAsyncWithHttpInfo($brand_id, $contentType) ->then( function ($response) { return $response[0]; @@ -10123,20 +10056,22 @@ function ($response) { } /** - * Operation getTollFreeSmsCampaignsAsyncWithHttpInfo + * Operation getTenDLCSmsCampaignsAsyncWithHttpInfo * - * Get list of TollFree Campaigns + * Get list of SMS 10DLC Campaigns * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation + * @param string $brand_id The unique identifier for a brand (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTollFreeSmsCampaignsAsyncWithHttpInfo(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0]) + public function getTenDLCSmsCampaignsAsyncWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0]) { - $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult'; - $request = $this->getTollFreeSmsCampaignsRequest($contentType); + $returnType = '\FreeClimb\Api\Model\SMSTenDLCCampaignsListResult'; + $request = $this->getTenDLCSmsCampaignsRequest($brand_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -10175,27 +10110,39 @@ function ($exception) { } /** - * Create request for operation 'getTollFreeSmsCampaigns' + * Create request for operation 'getTenDLCSmsCampaigns' * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation + * @param string $brand_id The unique identifier for a brand (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsCampaigns'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getTollFreeSmsCampaignsRequest(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0]) + public function getTenDLCSmsCampaignsRequest($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsCampaigns'][0]) { $account_id = $this->config->getUsername(); - $resourcePath = '/Accounts/{accountId}/Messages/TollFree/Campaigns'; + + $resourcePath = '/Accounts/{accountId}/Messages/10DLC/Campaigns'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $brand_id, + 'brandId', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params @@ -10266,41 +10213,41 @@ public function getTollFreeSmsCampaignsRequest(string $contentType = self::conte } /** - * Operation listActiveQueues + * Operation getTenDLCSmsPartnerCampaign * - * List Active Queues + * Get a 10DLC SMS Partner Campaign * - * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional) + * @param string $campaign_id String that uniquely identifies this campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\QueueList + * @return \FreeClimb\Api\Model\SMSTenDLCPartnerCampaign */ - public function listActiveQueues($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0]) + public function getTenDLCSmsPartnerCampaign($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0]) { - list($response) = $this->listActiveQueuesWithHttpInfo($alias, $contentType); + list($response) = $this->getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, $contentType); return $response; } /** - * Operation listActiveQueuesWithHttpInfo + * Operation getTenDLCSmsPartnerCampaignWithHttpInfo * - * List Active Queues + * Get a 10DLC SMS Partner Campaign * - * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional) + * @param string $campaign_id String that uniquely identifies this campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\QueueList, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\SMSTenDLCPartnerCampaign, HTTP status code, HTTP response headers (array of strings) */ - public function listActiveQueuesWithHttpInfo($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0]) + public function getTenDLCSmsPartnerCampaignWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0]) { - $request = $this->listActiveQueuesRequest($alias, $contentType); + $request = $this->getTenDLCSmsPartnerCampaignRequest($campaign_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -10327,11 +10274,11 @@ public function listActiveQueuesWithHttpInfo($alias = null, string $contentType switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\QueueList' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\QueueList' !== 'string') { + if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -10349,7 +10296,7 @@ public function listActiveQueuesWithHttpInfo($alias = null, string $contentType } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueList', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -10368,7 +10315,7 @@ public function listActiveQueuesWithHttpInfo($alias = null, string $contentType ); } - $returnType = '\FreeClimb\Api\Model\QueueList'; + $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -10401,7 +10348,7 @@ public function listActiveQueuesWithHttpInfo($alias = null, string $contentType case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\QueueList', + '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -10412,21 +10359,21 @@ public function listActiveQueuesWithHttpInfo($alias = null, string $contentType } /** - * Operation listActiveQueuesAsync + * Operation getTenDLCSmsPartnerCampaignAsync * - * List Active Queues + * Get a 10DLC SMS Partner Campaign * - * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional) + * @param string $campaign_id String that uniquely identifies this campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listActiveQueuesAsync($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0]) + public function getTenDLCSmsPartnerCampaignAsync($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0]) { - return $this->listActiveQueuesAsyncWithHttpInfo($alias, $contentType) + return $this->getTenDLCSmsPartnerCampaignAsyncWithHttpInfo($campaign_id, $contentType) ->then( function ($response) { return $response[0]; @@ -10435,22 +10382,22 @@ function ($response) { } /** - * Operation listActiveQueuesAsyncWithHttpInfo + * Operation getTenDLCSmsPartnerCampaignAsyncWithHttpInfo * - * List Active Queues + * Get a 10DLC SMS Partner Campaign * - * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional) + * @param string $campaign_id String that uniquely identifies this campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listActiveQueuesAsyncWithHttpInfo($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0]) + public function getTenDLCSmsPartnerCampaignAsyncWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0]) { - $returnType = '\FreeClimb\Api\Model\QueueList'; - $request = $this->listActiveQueuesRequest($alias, $contentType); + $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaign'; + $request = $this->getTenDLCSmsPartnerCampaignRequest($campaign_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -10489,39 +10436,36 @@ function ($exception) { } /** - * Create request for operation 'listActiveQueues' + * Create request for operation 'getTenDLCSmsPartnerCampaign' * - * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional) + * @param string $campaign_id String that uniquely identifies this campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaign'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listActiveQueuesRequest($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0]) + public function getTenDLCSmsPartnerCampaignRequest($campaign_id, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaign'][0]) { $account_id = $this->config->getUsername(); + // verify the required parameter 'campaign_id' is set + if ($campaign_id === null || (is_array($campaign_id) && count($campaign_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $campaign_id when calling getTenDLCSmsPartnerCampaign' + ); + } - $resourcePath = '/Accounts/{accountId}/Queues'; + $resourcePath = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns/{campaignId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $alias, - 'alias', // param base name - 'string', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); // path params @@ -10532,6 +10476,14 @@ public function listActiveQueuesRequest($alias = null, string $contentType = sel $resourcePath ); } + // path params + if ($campaign_id !== null) { + $resourcePath = str_replace( + '{' . 'campaignId' . '}', + ObjectSerializer::toPathValue($campaign_id), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -10592,37 +10544,41 @@ public function listActiveQueuesRequest($alias = null, string $contentType = sel } /** - * Operation listAllAccountLogs + * Operation getTenDLCSmsPartnerCampaigns * - * List All Account Logs + * Get list of SMS 10DLC Partner Campaigns * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation + * @param string $brand_id The unique identifier for a brand (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\LogList + * @return \FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult */ - public function listAllAccountLogs(string $contentType = self::contentTypes['listAllAccountLogs'][0]) + public function getTenDLCSmsPartnerCampaigns($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0]) { - list($response) = $this->listAllAccountLogsWithHttpInfo($contentType); + list($response) = $this->getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id, $contentType); return $response; } /** - * Operation listAllAccountLogsWithHttpInfo + * Operation getTenDLCSmsPartnerCampaignsWithHttpInfo * - * List All Account Logs + * Get list of SMS 10DLC Partner Campaigns * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation + * @param string $brand_id The unique identifier for a brand (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\LogList, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult, HTTP status code, HTTP response headers (array of strings) */ - public function listAllAccountLogsWithHttpInfo(string $contentType = self::contentTypes['listAllAccountLogs'][0]) + public function getTenDLCSmsPartnerCampaignsWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0]) { - $request = $this->listAllAccountLogsRequest($contentType); + $request = $this->getTenDLCSmsPartnerCampaignsRequest($brand_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -10649,11 +10605,11 @@ public function listAllAccountLogsWithHttpInfo(string $contentType = self::conte switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\LogList' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\LogList' !== 'string') { + if ('\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -10671,7 +10627,7 @@ public function listAllAccountLogsWithHttpInfo(string $contentType = self::conte } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\LogList', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -10690,7 +10646,7 @@ public function listAllAccountLogsWithHttpInfo(string $contentType = self::conte ); } - $returnType = '\FreeClimb\Api\Model\LogList'; + $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -10723,7 +10679,7 @@ public function listAllAccountLogsWithHttpInfo(string $contentType = self::conte case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\LogList', + '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -10734,19 +10690,21 @@ public function listAllAccountLogsWithHttpInfo(string $contentType = self::conte } /** - * Operation listAllAccountLogsAsync + * Operation getTenDLCSmsPartnerCampaignsAsync * - * List All Account Logs + * Get list of SMS 10DLC Partner Campaigns * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation + * @param string $brand_id The unique identifier for a brand (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listAllAccountLogsAsync(string $contentType = self::contentTypes['listAllAccountLogs'][0]) + public function getTenDLCSmsPartnerCampaignsAsync($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0]) { - return $this->listAllAccountLogsAsyncWithHttpInfo($contentType) + return $this->getTenDLCSmsPartnerCampaignsAsyncWithHttpInfo($brand_id, $contentType) ->then( function ($response) { return $response[0]; @@ -10755,20 +10713,22 @@ function ($response) { } /** - * Operation listAllAccountLogsAsyncWithHttpInfo + * Operation getTenDLCSmsPartnerCampaignsAsyncWithHttpInfo * - * List All Account Logs + * Get list of SMS 10DLC Partner Campaigns * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation + * @param string $brand_id The unique identifier for a brand (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listAllAccountLogsAsyncWithHttpInfo(string $contentType = self::contentTypes['listAllAccountLogs'][0]) + public function getTenDLCSmsPartnerCampaignsAsyncWithHttpInfo($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0]) { - $returnType = '\FreeClimb\Api\Model\LogList'; - $request = $this->listAllAccountLogsRequest($contentType); + $returnType = '\FreeClimb\Api\Model\SMSTenDLCPartnerCampaignsListResult'; + $request = $this->getTenDLCSmsPartnerCampaignsRequest($brand_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -10807,27 +10767,39 @@ function ($exception) { } /** - * Create request for operation 'listAllAccountLogs' + * Create request for operation 'getTenDLCSmsPartnerCampaigns' * - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation + * @param string $brand_id The unique identifier for a brand (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTenDLCSmsPartnerCampaigns'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listAllAccountLogsRequest(string $contentType = self::contentTypes['listAllAccountLogs'][0]) + public function getTenDLCSmsPartnerCampaignsRequest($brand_id = null, string $contentType = self::contentTypes['getTenDLCSmsPartnerCampaigns'][0]) { $account_id = $this->config->getUsername(); - $resourcePath = '/Accounts/{accountId}/Logs'; + + $resourcePath = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $brand_id, + 'brandId', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params @@ -10898,41 +10870,41 @@ public function listAllAccountLogsRequest(string $contentType = self::contentTyp } /** - * Operation listApplications + * Operation getTollFreeSmsCampaign * - * List applications + * Get a TollFree SMS Campaign * - * @param string $alias Return only applications with aliases that exactly match this value. (optional) + * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\ApplicationList + * @return \FreeClimb\Api\Model\SMSTollFreeCampaign */ - public function listApplications($alias = null, string $contentType = self::contentTypes['listApplications'][0]) + public function getTollFreeSmsCampaign($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0]) { - list($response) = $this->listApplicationsWithHttpInfo($alias, $contentType); + list($response) = $this->getTollFreeSmsCampaignWithHttpInfo($campaign_id, $contentType); return $response; } /** - * Operation listApplicationsWithHttpInfo + * Operation getTollFreeSmsCampaignWithHttpInfo * - * List applications + * Get a TollFree SMS Campaign * - * @param string $alias Return only applications with aliases that exactly match this value. (optional) + * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\ApplicationList, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\SMSTollFreeCampaign, HTTP status code, HTTP response headers (array of strings) */ - public function listApplicationsWithHttpInfo($alias = null, string $contentType = self::contentTypes['listApplications'][0]) + public function getTollFreeSmsCampaignWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0]) { - $request = $this->listApplicationsRequest($alias, $contentType); + $request = $this->getTollFreeSmsCampaignRequest($campaign_id, $contentType); try { $options = $this->createHttpClientOption(); @@ -10959,11 +10931,11 @@ public function listApplicationsWithHttpInfo($alias = null, string $contentType switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\ApplicationList' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\SMSTollFreeCampaign' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\ApplicationList' !== 'string') { + if ('\FreeClimb\Api\Model\SMSTollFreeCampaign' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -10981,7 +10953,7 @@ public function listApplicationsWithHttpInfo($alias = null, string $contentType } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ApplicationList', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTollFreeCampaign', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -11000,7 +10972,7 @@ public function listApplicationsWithHttpInfo($alias = null, string $contentType ); } - $returnType = '\FreeClimb\Api\Model\ApplicationList'; + $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaign'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -11033,7 +11005,7 @@ public function listApplicationsWithHttpInfo($alias = null, string $contentType case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\ApplicationList', + '\FreeClimb\Api\Model\SMSTollFreeCampaign', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -11044,21 +11016,21 @@ public function listApplicationsWithHttpInfo($alias = null, string $contentType } /** - * Operation listApplicationsAsync + * Operation getTollFreeSmsCampaignAsync * - * List applications + * Get a TollFree SMS Campaign * - * @param string $alias Return only applications with aliases that exactly match this value. (optional) + * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listApplicationsAsync($alias = null, string $contentType = self::contentTypes['listApplications'][0]) + public function getTollFreeSmsCampaignAsync($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0]) { - return $this->listApplicationsAsyncWithHttpInfo($alias, $contentType) + return $this->getTollFreeSmsCampaignAsyncWithHttpInfo($campaign_id, $contentType) ->then( function ($response) { return $response[0]; @@ -11067,22 +11039,22 @@ function ($response) { } /** - * Operation listApplicationsAsyncWithHttpInfo + * Operation getTollFreeSmsCampaignAsyncWithHttpInfo * - * List applications + * Get a TollFree SMS Campaign * - * @param string $alias Return only applications with aliases that exactly match this value. (optional) + * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listApplicationsAsyncWithHttpInfo($alias = null, string $contentType = self::contentTypes['listApplications'][0]) + public function getTollFreeSmsCampaignAsyncWithHttpInfo($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0]) { - $returnType = '\FreeClimb\Api\Model\ApplicationList'; - $request = $this->listApplicationsRequest($alias, $contentType); + $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaign'; + $request = $this->getTollFreeSmsCampaignRequest($campaign_id, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -11121,39 +11093,36 @@ function ($exception) { } /** - * Create request for operation 'listApplications' + * Create request for operation 'getTollFreeSmsCampaign' * - * @param string $alias Return only applications with aliases that exactly match this value. (optional) + * @param string $campaign_id String that uniquely identifies this TollFree Campaign resource. (required) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaign'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listApplicationsRequest($alias = null, string $contentType = self::contentTypes['listApplications'][0]) + public function getTollFreeSmsCampaignRequest($campaign_id, string $contentType = self::contentTypes['getTollFreeSmsCampaign'][0]) { $account_id = $this->config->getUsername(); + // verify the required parameter 'campaign_id' is set + if ($campaign_id === null || (is_array($campaign_id) && count($campaign_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $campaign_id when calling getTollFreeSmsCampaign' + ); + } - $resourcePath = '/Accounts/{accountId}/Applications'; + $resourcePath = '/Accounts/{accountId}/Messages/TollFree/Campaigns/{campaignId}'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $alias, - 'alias', // param base name - 'string', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); // path params @@ -11164,6 +11133,14 @@ public function listApplicationsRequest($alias = null, string $contentType = sel $resourcePath ); } + // path params + if ($campaign_id !== null) { + $resourcePath = str_replace( + '{' . 'campaignId' . '}', + ObjectSerializer::toPathValue($campaign_id), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -11224,77 +11201,37 @@ public function listApplicationsRequest($alias = null, string $contentType = sel } /** - * Operation listAvailableNumbers + * Operation getTollFreeSmsCampaigns * - * List available numbers + * Get list of TollFree Campaigns * - * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional) - - * @param string $region State or province of this phone number. (optional) - - * @param string $country Country of this phone number. (optional) - - * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) - - * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) - - * @param bool $capabilities_voice (optional) - - * @param bool $capabilities_sms (optional) - - * @param bool $capabilities_toll_free (optional) - - * @param bool $capabilities_ten_dlc (optional) - - * @param bool $capabilities_short_code (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\AvailableNumberList + * @return \FreeClimb\Api\Model\SMSTollFreeCampaignsListResult */ - public function listAvailableNumbers($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0]) + public function getTollFreeSmsCampaigns(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0]) { - list($response) = $this->listAvailableNumbersWithHttpInfo($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType); + list($response) = $this->getTollFreeSmsCampaignsWithHttpInfo($contentType); return $response; } /** - * Operation listAvailableNumbersWithHttpInfo + * Operation getTollFreeSmsCampaignsWithHttpInfo * - * List available numbers + * Get list of TollFree Campaigns * - * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional) - - * @param string $region State or province of this phone number. (optional) - - * @param string $country Country of this phone number. (optional) - - * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) - - * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) - - * @param bool $capabilities_voice (optional) - - * @param bool $capabilities_sms (optional) - - * @param bool $capabilities_toll_free (optional) - - * @param bool $capabilities_ten_dlc (optional) - - * @param bool $capabilities_short_code (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\AvailableNumberList, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\SMSTollFreeCampaignsListResult, HTTP status code, HTTP response headers (array of strings) */ - public function listAvailableNumbersWithHttpInfo($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0]) + public function getTollFreeSmsCampaignsWithHttpInfo(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0]) { - $request = $this->listAvailableNumbersRequest($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType); + $request = $this->getTollFreeSmsCampaignsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -11321,11 +11258,11 @@ public function listAvailableNumbersWithHttpInfo($phone_number = null, $region = switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\AvailableNumberList' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\AvailableNumberList' !== 'string') { + if ('\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -11343,7 +11280,7 @@ public function listAvailableNumbersWithHttpInfo($phone_number = null, $region = } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\AvailableNumberList', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -11362,7 +11299,7 @@ public function listAvailableNumbersWithHttpInfo($phone_number = null, $region = ); } - $returnType = '\FreeClimb\Api\Model\AvailableNumberList'; + $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -11395,7 +11332,7 @@ public function listAvailableNumbersWithHttpInfo($phone_number = null, $region = case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\AvailableNumberList', + '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -11406,39 +11343,19 @@ public function listAvailableNumbersWithHttpInfo($phone_number = null, $region = } /** - * Operation listAvailableNumbersAsync + * Operation getTollFreeSmsCampaignsAsync * - * List available numbers + * Get list of TollFree Campaigns * - * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional) - - * @param string $region State or province of this phone number. (optional) - - * @param string $country Country of this phone number. (optional) - - * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) - - * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) - - * @param bool $capabilities_voice (optional) - - * @param bool $capabilities_sms (optional) - - * @param bool $capabilities_toll_free (optional) - - * @param bool $capabilities_ten_dlc (optional) - - * @param bool $capabilities_short_code (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listAvailableNumbersAsync($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0]) + public function getTollFreeSmsCampaignsAsync(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0]) { - return $this->listAvailableNumbersAsyncWithHttpInfo($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType) + return $this->getTollFreeSmsCampaignsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -11447,40 +11364,20 @@ function ($response) { } /** - * Operation listAvailableNumbersAsyncWithHttpInfo + * Operation getTollFreeSmsCampaignsAsyncWithHttpInfo * - * List available numbers + * Get list of TollFree Campaigns * - * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional) - - * @param string $region State or province of this phone number. (optional) - - * @param string $country Country of this phone number. (optional) - - * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) - - * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) - - * @param bool $capabilities_voice (optional) - - * @param bool $capabilities_sms (optional) - - * @param bool $capabilities_toll_free (optional) - - * @param bool $capabilities_ten_dlc (optional) - - * @param bool $capabilities_short_code (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listAvailableNumbersAsyncWithHttpInfo($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0]) + public function getTollFreeSmsCampaignsAsyncWithHttpInfo(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0]) { - $returnType = '\FreeClimb\Api\Model\AvailableNumberList'; - $request = $this->listAvailableNumbersRequest($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType); + $returnType = '\FreeClimb\Api\Model\SMSTollFreeCampaignsListResult'; + $request = $this->getTollFreeSmsCampaignsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -11519,149 +11416,37 @@ function ($exception) { } /** - * Create request for operation 'listAvailableNumbers' + * Create request for operation 'getTollFreeSmsCampaigns' * - * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTollFreeSmsCampaigns'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function getTollFreeSmsCampaignsRequest(string $contentType = self::contentTypes['getTollFreeSmsCampaigns'][0]) + { + $account_id = $this->config->getUsername(); - * @param string $region State or province of this phone number. (optional) - * @param string $country Country of this phone number. (optional) - * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) - - * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) - - * @param bool $capabilities_voice (optional) - - * @param bool $capabilities_sms (optional) - - * @param bool $capabilities_toll_free (optional) - - * @param bool $capabilities_ten_dlc (optional) - - * @param bool $capabilities_short_code (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation - * - * @throws \InvalidArgumentException - * @return \GuzzleHttp\Psr7\Request - */ - public function listAvailableNumbersRequest($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0]) - { - $account_id = $this->config->getUsername(); - - - - - - - - - - - - - - $resourcePath = '/AvailablePhoneNumbers'; + $resourcePath = '/Accounts/{accountId}/Messages/TollFree/Campaigns'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $phone_number, - 'phoneNumber', // param base name - 'string', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $region, - 'region', // param base name - 'string', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $country, - 'country', // param base name - 'string', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $voice_enabled, - 'voiceEnabled', // param base name - 'boolean', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $sms_enabled, - 'smsEnabled', // param base name - 'boolean', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $capabilities_voice, - 'capabilities.voice', // param base name - 'boolean', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $capabilities_sms, - 'capabilities.sms', // param base name - 'boolean', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $capabilities_toll_free, - 'capabilities.tollFree', // param base name - 'boolean', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $capabilities_ten_dlc, - 'capabilities.tenDLC', // param base name - 'boolean', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $capabilities_short_code, - 'capabilities.shortCode', // param base name - 'boolean', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + '{' . 'accountId' . '}', + ObjectSerializer::toPathValue($account_id), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -11722,41 +11507,41 @@ public function listAvailableNumbersRequest($phone_number = null, $region = null } /** - * Operation listCallLogs + * Operation listActiveQueues * - * List Call Logs + * List Active Queues * - * @param string $call_id String that uniquely identifies this call resource. (required) + * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\LogList + * @return \FreeClimb\Api\Model\QueueList */ - public function listCallLogs($call_id, string $contentType = self::contentTypes['listCallLogs'][0]) + public function listActiveQueues($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0]) { - list($response) = $this->listCallLogsWithHttpInfo($call_id, $contentType); + list($response) = $this->listActiveQueuesWithHttpInfo($alias, $contentType); return $response; } /** - * Operation listCallLogsWithHttpInfo + * Operation listActiveQueuesWithHttpInfo * - * List Call Logs + * List Active Queues * - * @param string $call_id String that uniquely identifies this call resource. (required) + * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\LogList, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\QueueList, HTTP status code, HTTP response headers (array of strings) */ - public function listCallLogsWithHttpInfo($call_id, string $contentType = self::contentTypes['listCallLogs'][0]) + public function listActiveQueuesWithHttpInfo($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0]) { - $request = $this->listCallLogsRequest($call_id, $contentType); + $request = $this->listActiveQueuesRequest($alias, $contentType); try { $options = $this->createHttpClientOption(); @@ -11783,11 +11568,11 @@ public function listCallLogsWithHttpInfo($call_id, string $contentType = self::c switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\LogList' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\QueueList' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\LogList' !== 'string') { + if ('\FreeClimb\Api\Model\QueueList' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -11805,7 +11590,7 @@ public function listCallLogsWithHttpInfo($call_id, string $contentType = self::c } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\LogList', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\QueueList', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -11824,7 +11609,7 @@ public function listCallLogsWithHttpInfo($call_id, string $contentType = self::c ); } - $returnType = '\FreeClimb\Api\Model\LogList'; + $returnType = '\FreeClimb\Api\Model\QueueList'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -11857,7 +11642,7 @@ public function listCallLogsWithHttpInfo($call_id, string $contentType = self::c case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\LogList', + '\FreeClimb\Api\Model\QueueList', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -11868,21 +11653,21 @@ public function listCallLogsWithHttpInfo($call_id, string $contentType = self::c } /** - * Operation listCallLogsAsync + * Operation listActiveQueuesAsync * - * List Call Logs + * List Active Queues * - * @param string $call_id String that uniquely identifies this call resource. (required) + * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listCallLogsAsync($call_id, string $contentType = self::contentTypes['listCallLogs'][0]) + public function listActiveQueuesAsync($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0]) { - return $this->listCallLogsAsyncWithHttpInfo($call_id, $contentType) + return $this->listActiveQueuesAsyncWithHttpInfo($alias, $contentType) ->then( function ($response) { return $response[0]; @@ -11891,22 +11676,22 @@ function ($response) { } /** - * Operation listCallLogsAsyncWithHttpInfo + * Operation listActiveQueuesAsyncWithHttpInfo * - * List Call Logs + * List Active Queues * - * @param string $call_id String that uniquely identifies this call resource. (required) + * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listCallLogsAsyncWithHttpInfo($call_id, string $contentType = self::contentTypes['listCallLogs'][0]) + public function listActiveQueuesAsyncWithHttpInfo($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0]) { - $returnType = '\FreeClimb\Api\Model\LogList'; - $request = $this->listCallLogsRequest($call_id, $contentType); + $returnType = '\FreeClimb\Api\Model\QueueList'; + $request = $this->listActiveQueuesRequest($alias, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -11945,36 +11730,39 @@ function ($exception) { } /** - * Create request for operation 'listCallLogs' + * Create request for operation 'listActiveQueues' * - * @param string $call_id String that uniquely identifies this call resource. (required) + * @param string $alias Return only the Queue resources with aliases that exactly match this name. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listActiveQueues'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listCallLogsRequest($call_id, string $contentType = self::contentTypes['listCallLogs'][0]) + public function listActiveQueuesRequest($alias = null, string $contentType = self::contentTypes['listActiveQueues'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'call_id' is set - if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $call_id when calling listCallLogs' - ); - } - $resourcePath = '/Accounts/{accountId}/Calls/{callId}/Logs'; + $resourcePath = '/Accounts/{accountId}/Queues'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $alias, + 'alias', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params @@ -11985,14 +11773,6 @@ public function listCallLogsRequest($call_id, string $contentType = self::conten $resourcePath ); } - // path params - if ($call_id !== null) { - $resourcePath = str_replace( - '{' . 'callId' . '}', - ObjectSerializer::toPathValue($call_id), - $resourcePath - ); - } $headers = $this->headerSelector->selectHeaders( @@ -12053,45 +11833,37 @@ public function listCallLogsRequest($call_id, string $contentType = self::conten } /** - * Operation listCallRecordings + * Operation listAllAccountLogs * - * List Call Recordings + * List All Account Logs * - * @param string $call_id String that uniquely identifies this call resource. (required) - - * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\RecordingList + * @return \FreeClimb\Api\Model\LogList */ - public function listCallRecordings($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0]) + public function listAllAccountLogs(string $contentType = self::contentTypes['listAllAccountLogs'][0]) { - list($response) = $this->listCallRecordingsWithHttpInfo($call_id, $date_created, $contentType); + list($response) = $this->listAllAccountLogsWithHttpInfo($contentType); return $response; } /** - * Operation listCallRecordingsWithHttpInfo + * Operation listAllAccountLogsWithHttpInfo * - * List Call Recordings + * List All Account Logs * - * @param string $call_id String that uniquely identifies this call resource. (required) - - * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\RecordingList, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\LogList, HTTP status code, HTTP response headers (array of strings) */ - public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0]) + public function listAllAccountLogsWithHttpInfo(string $contentType = self::contentTypes['listAllAccountLogs'][0]) { - $request = $this->listCallRecordingsRequest($call_id, $date_created, $contentType); + $request = $this->listAllAccountLogsRequest($contentType); try { $options = $this->createHttpClientOption(); @@ -12118,11 +11890,11 @@ public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, s switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\RecordingList' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\LogList' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\RecordingList' !== 'string') { + if ('\FreeClimb\Api\Model\LogList' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -12140,7 +11912,7 @@ public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, s } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingList', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\LogList', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -12159,7 +11931,7 @@ public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, s ); } - $returnType = '\FreeClimb\Api\Model\RecordingList'; + $returnType = '\FreeClimb\Api\Model\LogList'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -12192,7 +11964,7 @@ public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, s case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\RecordingList', + '\FreeClimb\Api\Model\LogList', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -12203,23 +11975,19 @@ public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, s } /** - * Operation listCallRecordingsAsync + * Operation listAllAccountLogsAsync * - * List Call Recordings + * List All Account Logs * - * @param string $call_id String that uniquely identifies this call resource. (required) - - * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listCallRecordingsAsync($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0]) + public function listAllAccountLogsAsync(string $contentType = self::contentTypes['listAllAccountLogs'][0]) { - return $this->listCallRecordingsAsyncWithHttpInfo($call_id, $date_created, $contentType) + return $this->listAllAccountLogsAsyncWithHttpInfo($contentType) ->then( function ($response) { return $response[0]; @@ -12228,24 +11996,20 @@ function ($response) { } /** - * Operation listCallRecordingsAsyncWithHttpInfo + * Operation listAllAccountLogsAsyncWithHttpInfo * - * List Call Recordings + * List All Account Logs * - * @param string $call_id String that uniquely identifies this call resource. (required) - - * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listCallRecordingsAsyncWithHttpInfo($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0]) + public function listAllAccountLogsAsyncWithHttpInfo(string $contentType = self::contentTypes['listAllAccountLogs'][0]) { - $returnType = '\FreeClimb\Api\Model\RecordingList'; - $request = $this->listCallRecordingsRequest($call_id, $date_created, $contentType); + $returnType = '\FreeClimb\Api\Model\LogList'; + $request = $this->listAllAccountLogsRequest($contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -12284,48 +12048,27 @@ function ($exception) { } /** - * Create request for operation 'listCallRecordings' + * Create request for operation 'listAllAccountLogs' * - * @param string $call_id String that uniquely identifies this call resource. (required) - - * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional) - - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAllAccountLogs'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listCallRecordingsRequest($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0]) + public function listAllAccountLogsRequest(string $contentType = self::contentTypes['listAllAccountLogs'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'call_id' is set - if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $call_id when calling listCallRecordings' - ); - } - - - $resourcePath = '/Accounts/{accountId}/Calls/{callId}/Recordings'; + $resourcePath = '/Accounts/{accountId}/Logs'; $formParams = []; $queryParams = []; $headerParams = []; $httpBody = ''; $multipart = false; - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $date_created, - 'dateCreated', // param base name - 'string', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); // path params @@ -12336,14 +12079,6 @@ public function listCallRecordingsRequest($call_id, $date_created = null, string $resourcePath ); } - // path params - if ($call_id !== null) { - $resourcePath = str_replace( - '{' . 'callId' . '}', - ObjectSerializer::toPathValue($call_id), - $resourcePath - ); - } $headers = $this->headerSelector->selectHeaders( @@ -12404,69 +12139,41 @@ public function listCallRecordingsRequest($call_id, $date_created = null, string } /** - * Operation listCalls + * Operation listApplications * - * List Calls + * List applications * - * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false) - - * @param string $to Only show Calls to this phone number. (optional) - - * @param string $from Only show Calls from this phone number. (optional) - - * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional) - - * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional) - - * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional) - - * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional) - - * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional) + * @param string $alias Return only applications with aliases that exactly match this value. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\CallList + * @return \FreeClimb\Api\Model\ApplicationList */ - public function listCalls($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, string $contentType = self::contentTypes['listCalls'][0]) + public function listApplications($alias = null, string $contentType = self::contentTypes['listApplications'][0]) { - list($response) = $this->listCallsWithHttpInfo($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $contentType); + list($response) = $this->listApplicationsWithHttpInfo($alias, $contentType); return $response; } /** - * Operation listCallsWithHttpInfo + * Operation listApplicationsWithHttpInfo * - * List Calls + * List applications * - * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false) - - * @param string $to Only show Calls to this phone number. (optional) - - * @param string $from Only show Calls from this phone number. (optional) - - * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional) - - * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional) - - * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional) - - * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional) - - * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional) + * @param string $alias Return only applications with aliases that exactly match this value. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\CallList, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\ApplicationList, HTTP status code, HTTP response headers (array of strings) */ - public function listCallsWithHttpInfo($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, string $contentType = self::contentTypes['listCalls'][0]) + public function listApplicationsWithHttpInfo($alias = null, string $contentType = self::contentTypes['listApplications'][0]) { - $request = $this->listCallsRequest($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $contentType); + $request = $this->listApplicationsRequest($alias, $contentType); try { $options = $this->createHttpClientOption(); @@ -12493,11 +12200,11 @@ public function listCallsWithHttpInfo($active = false, $to = null, $from = null, switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\CallList' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\ApplicationList' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\CallList' !== 'string') { + if ('\FreeClimb\Api\Model\ApplicationList' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -12515,7 +12222,7 @@ public function listCallsWithHttpInfo($active = false, $to = null, $from = null, } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CallList', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ApplicationList', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -12534,7 +12241,7 @@ public function listCallsWithHttpInfo($active = false, $to = null, $from = null, ); } - $returnType = '\FreeClimb\Api\Model\CallList'; + $returnType = '\FreeClimb\Api\Model\ApplicationList'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -12567,7 +12274,7 @@ public function listCallsWithHttpInfo($active = false, $to = null, $from = null, case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\CallList', + '\FreeClimb\Api\Model\ApplicationList', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -12578,35 +12285,21 @@ public function listCallsWithHttpInfo($active = false, $to = null, $from = null, } /** - * Operation listCallsAsync + * Operation listApplicationsAsync * - * List Calls + * List applications * - * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false) - - * @param string $to Only show Calls to this phone number. (optional) - - * @param string $from Only show Calls from this phone number. (optional) - - * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional) - - * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional) - - * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional) - - * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional) - - * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional) + * @param string $alias Return only applications with aliases that exactly match this value. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listCallsAsync($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, string $contentType = self::contentTypes['listCalls'][0]) + public function listApplicationsAsync($alias = null, string $contentType = self::contentTypes['listApplications'][0]) { - return $this->listCallsAsyncWithHttpInfo($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $contentType) + return $this->listApplicationsAsyncWithHttpInfo($alias, $contentType) ->then( function ($response) { return $response[0]; @@ -12615,36 +12308,22 @@ function ($response) { } /** - * Operation listCallsAsyncWithHttpInfo + * Operation listApplicationsAsyncWithHttpInfo * - * List Calls + * List applications * - * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false) - - * @param string $to Only show Calls to this phone number. (optional) - - * @param string $from Only show Calls from this phone number. (optional) - - * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional) - - * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional) - - * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional) - - * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional) - - * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional) + * @param string $alias Return only applications with aliases that exactly match this value. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listCallsAsyncWithHttpInfo($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, string $contentType = self::contentTypes['listCalls'][0]) + public function listApplicationsAsyncWithHttpInfo($alias = null, string $contentType = self::contentTypes['listApplications'][0]) { - $returnType = '\FreeClimb\Api\Model\CallList'; - $request = $this->listCallsRequest($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $contentType); + $returnType = '\FreeClimb\Api\Model\ApplicationList'; + $request = $this->listApplicationsRequest($alias, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -12683,48 +12362,24 @@ function ($exception) { } /** - * Create request for operation 'listCalls' + * Create request for operation 'listApplications' * - * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false) - - * @param string $to Only show Calls to this phone number. (optional) - - * @param string $from Only show Calls from this phone number. (optional) - - * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional) - - * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional) - - * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional) - - * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional) - - * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional) + * @param string $alias Return only applications with aliases that exactly match this value. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listApplications'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listCallsRequest($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, string $contentType = self::contentTypes['listCalls'][0]) + public function listApplicationsRequest($alias = null, string $contentType = self::contentTypes['listApplications'][0]) { $account_id = $this->config->getUsername(); - - - - - if ($application_id !== null && count($application_id) > 16) { - throw new \InvalidArgumentException('invalid value for "$application_id" when calling DefaultApi.listCalls, number of items must be less than or equal to 16.'); - } - - - - $resourcePath = '/Accounts/{accountId}/Calls'; + $resourcePath = '/Accounts/{accountId}/Applications'; $formParams = []; $queryParams = []; $headerParams = []; @@ -12733,36 +12388,1644 @@ public function listCallsRequest($active = false, $to = null, $from = null, $sta // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $active, - 'active', // param base name - 'boolean', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $to, - 'to', // param base name - 'string', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $from, - 'from', // param base name + $alias, + 'alias', // param base name 'string', // openApiType 'form', // style true, // explode false // required ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $status, - 'status', // param base name - 'CallStatus', // openApiType + + + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + '{' . 'accountId' . '}', + ObjectSerializer::toPathValue($account_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listAvailableNumbers + * + * List available numbers + * + + * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional) + + * @param string $region State or province of this phone number. (optional) + + * @param string $country Country of this phone number. (optional) + + * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) + + * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) + + * @param bool $capabilities_voice (optional) + + * @param bool $capabilities_sms (optional) + + * @param bool $capabilities_toll_free (optional) + + * @param bool $capabilities_ten_dlc (optional) + + * @param bool $capabilities_short_code (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation + * + * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \FreeClimb\Api\Model\AvailableNumberList + */ + public function listAvailableNumbers($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0]) + { + list($response) = $this->listAvailableNumbersWithHttpInfo($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType); + return $response; + } + /** + * Operation listAvailableNumbersWithHttpInfo + * + * List available numbers + * + + * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional) + + * @param string $region State or province of this phone number. (optional) + + * @param string $country Country of this phone number. (optional) + + * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) + + * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) + + * @param bool $capabilities_voice (optional) + + * @param bool $capabilities_sms (optional) + + * @param bool $capabilities_toll_free (optional) + + * @param bool $capabilities_ten_dlc (optional) + + * @param bool $capabilities_short_code (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation + * + * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \FreeClimb\Api\Model\AvailableNumberList, HTTP status code, HTTP response headers (array of strings) + */ + public function listAvailableNumbersWithHttpInfo($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0]) + { + $request = $this->listAvailableNumbersRequest($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch ($statusCode) { + case 200: + if ('\FreeClimb\Api\Model\AvailableNumberList' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\FreeClimb\Api\Model\AvailableNumberList' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\AvailableNumberList', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + $returnType = '\FreeClimb\Api\Model\AvailableNumberList'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\FreeClimb\Api\Model\AvailableNumberList', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listAvailableNumbersAsync + * + * List available numbers + * + + * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional) + + * @param string $region State or province of this phone number. (optional) + + * @param string $country Country of this phone number. (optional) + + * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) + + * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) + + * @param bool $capabilities_voice (optional) + + * @param bool $capabilities_sms (optional) + + * @param bool $capabilities_toll_free (optional) + + * @param bool $capabilities_ten_dlc (optional) + + * @param bool $capabilities_short_code (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listAvailableNumbersAsync($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0]) + { + return $this->listAvailableNumbersAsyncWithHttpInfo($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listAvailableNumbersAsyncWithHttpInfo + * + * List available numbers + * + + * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional) + + * @param string $region State or province of this phone number. (optional) + + * @param string $country Country of this phone number. (optional) + + * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) + + * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) + + * @param bool $capabilities_voice (optional) + + * @param bool $capabilities_sms (optional) + + * @param bool $capabilities_toll_free (optional) + + * @param bool $capabilities_ten_dlc (optional) + + * @param bool $capabilities_short_code (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listAvailableNumbersAsyncWithHttpInfo($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0]) + { + $returnType = '\FreeClimb\Api\Model\AvailableNumberList'; + $request = $this->listAvailableNumbersRequest($phone_number, $region, $country, $voice_enabled, $sms_enabled, $capabilities_voice, $capabilities_sms, $capabilities_toll_free, $capabilities_ten_dlc, $capabilities_short_code, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listAvailableNumbers' + * + + * @param string $phone_number PCRE-compatible regular expression to filter against `phoneNumber` field, which is in E.164 format. (optional) + + * @param string $region State or province of this phone number. (optional) + + * @param string $country Country of this phone number. (optional) + + * @param bool $voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (optional, default to true) + + * @param bool $sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (optional, default to true) + + * @param bool $capabilities_voice (optional) + + * @param bool $capabilities_sms (optional) + + * @param bool $capabilities_toll_free (optional) + + * @param bool $capabilities_ten_dlc (optional) + + * @param bool $capabilities_short_code (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listAvailableNumbers'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listAvailableNumbersRequest($phone_number = null, $region = null, $country = null, $voice_enabled = true, $sms_enabled = true, $capabilities_voice = null, $capabilities_sms = null, $capabilities_toll_free = null, $capabilities_ten_dlc = null, $capabilities_short_code = null, string $contentType = self::contentTypes['listAvailableNumbers'][0]) + { + $account_id = $this->config->getUsername(); + + + + + + + + + + + + + + $resourcePath = '/AvailablePhoneNumbers'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $phone_number, + 'phoneNumber', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $region, + 'region', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $country, + 'country', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $voice_enabled, + 'voiceEnabled', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $sms_enabled, + 'smsEnabled', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $capabilities_voice, + 'capabilities.voice', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $capabilities_sms, + 'capabilities.sms', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $capabilities_toll_free, + 'capabilities.tollFree', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $capabilities_ten_dlc, + 'capabilities.tenDLC', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $capabilities_short_code, + 'capabilities.shortCode', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listCallLogs + * + * List Call Logs + * + + * @param string $call_id String that uniquely identifies this call resource. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation + * + * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \FreeClimb\Api\Model\LogList + */ + public function listCallLogs($call_id, string $contentType = self::contentTypes['listCallLogs'][0]) + { + list($response) = $this->listCallLogsWithHttpInfo($call_id, $contentType); + return $response; + } + /** + * Operation listCallLogsWithHttpInfo + * + * List Call Logs + * + + * @param string $call_id String that uniquely identifies this call resource. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation + * + * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \FreeClimb\Api\Model\LogList, HTTP status code, HTTP response headers (array of strings) + */ + public function listCallLogsWithHttpInfo($call_id, string $contentType = self::contentTypes['listCallLogs'][0]) + { + $request = $this->listCallLogsRequest($call_id, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch ($statusCode) { + case 200: + if ('\FreeClimb\Api\Model\LogList' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\FreeClimb\Api\Model\LogList' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\LogList', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + $returnType = '\FreeClimb\Api\Model\LogList'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\FreeClimb\Api\Model\LogList', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listCallLogsAsync + * + * List Call Logs + * + + * @param string $call_id String that uniquely identifies this call resource. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listCallLogsAsync($call_id, string $contentType = self::contentTypes['listCallLogs'][0]) + { + return $this->listCallLogsAsyncWithHttpInfo($call_id, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listCallLogsAsyncWithHttpInfo + * + * List Call Logs + * + + * @param string $call_id String that uniquely identifies this call resource. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listCallLogsAsyncWithHttpInfo($call_id, string $contentType = self::contentTypes['listCallLogs'][0]) + { + $returnType = '\FreeClimb\Api\Model\LogList'; + $request = $this->listCallLogsRequest($call_id, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listCallLogs' + * + + * @param string $call_id String that uniquely identifies this call resource. (required) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallLogs'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listCallLogsRequest($call_id, string $contentType = self::contentTypes['listCallLogs'][0]) + { + $account_id = $this->config->getUsername(); + + // verify the required parameter 'call_id' is set + if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $call_id when calling listCallLogs' + ); + } + + + + $resourcePath = '/Accounts/{accountId}/Calls/{callId}/Logs'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + '{' . 'accountId' . '}', + ObjectSerializer::toPathValue($account_id), + $resourcePath + ); + } + // path params + if ($call_id !== null) { + $resourcePath = str_replace( + '{' . 'callId' . '}', + ObjectSerializer::toPathValue($call_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listCallRecordings + * + * List Call Recordings + * + + * @param string $call_id String that uniquely identifies this call resource. (required) + + * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation + * + * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \FreeClimb\Api\Model\RecordingList + */ + public function listCallRecordings($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0]) + { + list($response) = $this->listCallRecordingsWithHttpInfo($call_id, $date_created, $contentType); + return $response; + } + /** + * Operation listCallRecordingsWithHttpInfo + * + * List Call Recordings + * + + * @param string $call_id String that uniquely identifies this call resource. (required) + + * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation + * + * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \FreeClimb\Api\Model\RecordingList, HTTP status code, HTTP response headers (array of strings) + */ + public function listCallRecordingsWithHttpInfo($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0]) + { + $request = $this->listCallRecordingsRequest($call_id, $date_created, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch ($statusCode) { + case 200: + if ('\FreeClimb\Api\Model\RecordingList' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\FreeClimb\Api\Model\RecordingList' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingList', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + $returnType = '\FreeClimb\Api\Model\RecordingList'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\FreeClimb\Api\Model\RecordingList', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listCallRecordingsAsync + * + * List Call Recordings + * + + * @param string $call_id String that uniquely identifies this call resource. (required) + + * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listCallRecordingsAsync($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0]) + { + return $this->listCallRecordingsAsyncWithHttpInfo($call_id, $date_created, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listCallRecordingsAsyncWithHttpInfo + * + * List Call Recordings + * + + * @param string $call_id String that uniquely identifies this call resource. (required) + + * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listCallRecordingsAsyncWithHttpInfo($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0]) + { + $returnType = '\FreeClimb\Api\Model\RecordingList'; + $request = $this->listCallRecordingsRequest($call_id, $date_created, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listCallRecordings' + * + + * @param string $call_id String that uniquely identifies this call resource. (required) + + * @param string $date_created Only show recordings created on the specified date, in the form *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCallRecordings'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listCallRecordingsRequest($call_id, $date_created = null, string $contentType = self::contentTypes['listCallRecordings'][0]) + { + $account_id = $this->config->getUsername(); + + // verify the required parameter 'call_id' is set + if ($call_id === null || (is_array($call_id) && count($call_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $call_id when calling listCallRecordings' + ); + } + + + + + $resourcePath = '/Accounts/{accountId}/Calls/{callId}/Recordings'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $date_created, + 'dateCreated', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + '{' . 'accountId' . '}', + ObjectSerializer::toPathValue($account_id), + $resourcePath + ); + } + // path params + if ($call_id !== null) { + $resourcePath = str_replace( + '{' . 'callId' . '}', + ObjectSerializer::toPathValue($call_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listCalls + * + * List Calls + * + + * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false) + + * @param string $to Only show Calls to this phone number. (optional) + + * @param string $from Only show Calls from this phone number. (optional) + + * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional) + + * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional) + + * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional) + + * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional) + + * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional) + + * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional) + + * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation + * + * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \FreeClimb\Api\Model\CallList + */ + public function listCalls($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0]) + { + list($response) = $this->listCallsWithHttpInfo($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max, $contentType); + return $response; + } + /** + * Operation listCallsWithHttpInfo + * + * List Calls + * + + * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false) + + * @param string $to Only show Calls to this phone number. (optional) + + * @param string $from Only show Calls from this phone number. (optional) + + * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional) + + * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional) + + * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional) + + * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional) + + * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional) + + * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional) + + * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation + * + * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \FreeClimb\Api\Model\CallList, HTTP status code, HTTP response headers (array of strings) + */ + public function listCallsWithHttpInfo($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0]) + { + $request = $this->listCallsRequest($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch ($statusCode) { + case 200: + if ('\FreeClimb\Api\Model\CallList' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\FreeClimb\Api\Model\CallList' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\CallList', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + $returnType = '\FreeClimb\Api\Model\CallList'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\FreeClimb\Api\Model\CallList', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listCallsAsync + * + * List Calls + * + + * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false) + + * @param string $to Only show Calls to this phone number. (optional) + + * @param string $from Only show Calls from this phone number. (optional) + + * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional) + + * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional) + + * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional) + + * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional) + + * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional) + + * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional) + + * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listCallsAsync($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0]) + { + return $this->listCallsAsyncWithHttpInfo($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listCallsAsyncWithHttpInfo + * + * List Calls + * + + * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false) + + * @param string $to Only show Calls to this phone number. (optional) + + * @param string $from Only show Calls from this phone number. (optional) + + * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional) + + * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional) + + * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional) + + * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional) + + * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional) + + * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional) + + * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listCallsAsyncWithHttpInfo($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0]) + { + $returnType = '\FreeClimb\Api\Model\CallList'; + $request = $this->listCallsRequest($active, $to, $from, $status, $start_time, $end_time, $parent_call_id, $application_id, $risk_score_min, $risk_score_max, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listCalls' + * + + * @param bool $active If active is set to true then all calls of the nature queued, ringing, inProgress are returned in the query. (optional, default to false) + + * @param string $to Only show Calls to this phone number. (optional) + + * @param string $from Only show Calls from this phone number. (optional) + + * @param \FreeClimb\Api\Model\CallStatus $status Only show Calls currently in this status. May be `queued`, `ringing`, `inProgress`, `canceled`, `completed`, `failed`, `busy`, or `noAnswer`. (optional) + + * @param string $start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss. (optional) + + * @param string $end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss. (optional) + + * @param string $parent_call_id Only show Calls spawned by the call with this ID. (optional) + + * @param string[] $application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications. (optional) + + * @param int $risk_score_min The minimum riskScore that should be included in the list. (optional) + + * @param int $risk_score_max The maximum riskScore that should be included in the list. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listCalls'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listCallsRequest($active = false, $to = null, $from = null, $status = null, $start_time = null, $end_time = null, $parent_call_id = null, $application_id = null, $risk_score_min = null, $risk_score_max = null, string $contentType = self::contentTypes['listCalls'][0]) + { + $account_id = $this->config->getUsername(); + + + + + + + + + if ($application_id !== null && count($application_id) > 16) { + throw new \InvalidArgumentException('invalid value for "$application_id" when calling DefaultApi.listCalls, number of items must be less than or equal to 16.'); + } + + + + + + $resourcePath = '/Accounts/{accountId}/Calls'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $active, + 'active', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $to, + 'to', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $from, + 'from', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $status, + 'status', // param base name + 'CallStatus', // openApiType 'form', // style true, // explode false // required @@ -12778,8 +14041,398 @@ public function listCallsRequest($active = false, $to = null, $from = null, $sta ) ?? []); // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $end_time, - 'endTime', // param base name + $end_time, + 'endTime', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $parent_call_id, + 'parentCallId', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $application_id, + 'applicationId', // param base name + 'array', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $risk_score_min, + 'riskScoreMin', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $risk_score_max, + 'riskScoreMax', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + // path params + if ($account_id !== null) { + $resourcePath = str_replace( + '{' . 'accountId' . '}', + ObjectSerializer::toPathValue($account_id), + $resourcePath + ); + } + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = \GuzzleHttp\Utils::jsonEncode($formParams); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires HTTP basic authentication + if (!empty($this->config->getUsername()) || !(empty($this->config->getPassword()))) { + $headers['Authorization'] = 'Basic ' . base64_encode($this->config->getUsername() . ":" . $this->config->getPassword()); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listConferenceRecordings + * + * List Conference Recordings + * + + * @param string $conference_id Show only Recordings made during the conference with this ID. (required) + + * @param string $call_id Show only Recordings made during the Call with this ID. (optional) + + * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation + * + * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \FreeClimb\Api\Model\RecordingList + */ + public function listConferenceRecordings($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0]) + { + list($response) = $this->listConferenceRecordingsWithHttpInfo($conference_id, $call_id, $date_created, $contentType); + return $response; + } + /** + * Operation listConferenceRecordingsWithHttpInfo + * + * List Conference Recordings + * + + * @param string $conference_id Show only Recordings made during the conference with this ID. (required) + + * @param string $call_id Show only Recordings made during the Call with this ID. (optional) + + * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation + * + * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \FreeClimb\Api\Model\RecordingList, HTTP status code, HTTP response headers (array of strings) + */ + public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0]) + { + $request = $this->listConferenceRecordingsRequest($conference_id, $call_id, $date_created, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } catch (ConnectException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch ($statusCode) { + case 200: + if ('\FreeClimb\Api\Model\RecordingList' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\FreeClimb\Api\Model\RecordingList' !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingList', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + $returnType = '\FreeClimb\Api\Model\RecordingList'; + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\FreeClimb\Api\Model\RecordingList', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listConferenceRecordingsAsync + * + * List Conference Recordings + * + + * @param string $conference_id Show only Recordings made during the conference with this ID. (required) + + * @param string $call_id Show only Recordings made during the Call with this ID. (optional) + + * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listConferenceRecordingsAsync($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0]) + { + return $this->listConferenceRecordingsAsyncWithHttpInfo($conference_id, $call_id, $date_created, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listConferenceRecordingsAsyncWithHttpInfo + * + * List Conference Recordings + * + + * @param string $conference_id Show only Recordings made during the conference with this ID. (required) + + * @param string $call_id Show only Recordings made during the Call with this ID. (optional) + + * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listConferenceRecordingsAsyncWithHttpInfo($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0]) + { + $returnType = '\FreeClimb\Api\Model\RecordingList'; + $request = $this->listConferenceRecordingsRequest($conference_id, $call_id, $date_created, $contentType); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + if ($returnType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listConferenceRecordings' + * + + * @param string $conference_id Show only Recordings made during the conference with this ID. (required) + + * @param string $call_id Show only Recordings made during the Call with this ID. (optional) + + * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function listConferenceRecordingsRequest($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0]) + { + $account_id = $this->config->getUsername(); + + // verify the required parameter 'conference_id' is set + if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $conference_id when calling listConferenceRecordings' + ); + } + + + + + + $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}/Recordings'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $call_id, + 'callId', // param base name 'string', // openApiType 'form', // style true, // explode @@ -12787,22 +14440,13 @@ public function listCallsRequest($active = false, $to = null, $from = null, $sta ) ?? []); // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $parent_call_id, - 'parentCallId', // param base name + $date_created, + 'dateCreated', // param base name 'string', // openApiType 'form', // style true, // explode false // required ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $application_id, - 'applicationId', // param base name - 'array', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); // path params @@ -12813,6 +14457,14 @@ public function listCallsRequest($active = false, $to = null, $from = null, $sta $resourcePath ); } + // path params + if ($conference_id !== null) { + $resourcePath = str_replace( + '{' . 'conferenceId' . '}', + ObjectSerializer::toPathValue($conference_id), + $resourcePath + ); + } $headers = $this->headerSelector->selectHeaders( @@ -12873,49 +14525,53 @@ public function listCallsRequest($active = false, $to = null, $from = null, $sta } /** - * Operation listConferenceRecordings + * Operation listConferences * - * List Conference Recordings + * List Conferences * - * @param string $conference_id Show only Recordings made during the conference with this ID. (required) + * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional) - * @param string $call_id Show only Recordings made during the Call with this ID. (optional) + * @param string $alias List Conferences whose alias exactly matches this string. (optional) - * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional) + * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation + * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\RecordingList + * @return \FreeClimb\Api\Model\ConferenceList */ - public function listConferenceRecordings($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0]) + public function listConferences($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0]) { - list($response) = $this->listConferenceRecordingsWithHttpInfo($conference_id, $call_id, $date_created, $contentType); + list($response) = $this->listConferencesWithHttpInfo($status, $alias, $date_created, $date_updated, $contentType); return $response; } /** - * Operation listConferenceRecordingsWithHttpInfo + * Operation listConferencesWithHttpInfo * - * List Conference Recordings + * List Conferences * - * @param string $conference_id Show only Recordings made during the conference with this ID. (required) + * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional) - * @param string $call_id Show only Recordings made during the Call with this ID. (optional) + * @param string $alias List Conferences whose alias exactly matches this string. (optional) - * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional) + * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation + * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\RecordingList, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\ConferenceList, HTTP status code, HTTP response headers (array of strings) */ - public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0]) + public function listConferencesWithHttpInfo($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0]) { - $request = $this->listConferenceRecordingsRequest($conference_id, $call_id, $date_created, $contentType); + $request = $this->listConferencesRequest($status, $alias, $date_created, $date_updated, $contentType); try { $options = $this->createHttpClientOption(); @@ -12942,11 +14598,11 @@ public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id = switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\RecordingList' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\ConferenceList' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\RecordingList' !== 'string') { + if ('\FreeClimb\Api\Model\ConferenceList' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -12964,7 +14620,7 @@ public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id = } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\RecordingList', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceList', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -12983,7 +14639,7 @@ public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id = ); } - $returnType = '\FreeClimb\Api\Model\RecordingList'; + $returnType = '\FreeClimb\Api\Model\ConferenceList'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -13016,7 +14672,7 @@ public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id = case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\RecordingList', + '\FreeClimb\Api\Model\ConferenceList', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -13027,25 +14683,27 @@ public function listConferenceRecordingsWithHttpInfo($conference_id, $call_id = } /** - * Operation listConferenceRecordingsAsync + * Operation listConferencesAsync * - * List Conference Recordings + * List Conferences * - * @param string $conference_id Show only Recordings made during the conference with this ID. (required) + * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional) - * @param string $call_id Show only Recordings made during the Call with this ID. (optional) + * @param string $alias List Conferences whose alias exactly matches this string. (optional) - * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional) + * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation + * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listConferenceRecordingsAsync($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0]) + public function listConferencesAsync($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0]) { - return $this->listConferenceRecordingsAsyncWithHttpInfo($conference_id, $call_id, $date_created, $contentType) + return $this->listConferencesAsyncWithHttpInfo($status, $alias, $date_created, $date_updated, $contentType) ->then( function ($response) { return $response[0]; @@ -13054,26 +14712,28 @@ function ($response) { } /** - * Operation listConferenceRecordingsAsyncWithHttpInfo + * Operation listConferencesAsyncWithHttpInfo * - * List Conference Recordings + * List Conferences * - * @param string $conference_id Show only Recordings made during the conference with this ID. (required) + * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional) - * @param string $call_id Show only Recordings made during the Call with this ID. (optional) + * @param string $alias List Conferences whose alias exactly matches this string. (optional) - * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional) + * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation + * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listConferenceRecordingsAsyncWithHttpInfo($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0]) + public function listConferencesAsyncWithHttpInfo($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0]) { - $returnType = '\FreeClimb\Api\Model\RecordingList'; - $request = $this->listConferenceRecordingsRequest($conference_id, $call_id, $date_created, $contentType); + $returnType = '\FreeClimb\Api\Model\ConferenceList'; + $request = $this->listConferencesRequest($status, $alias, $date_created, $date_updated, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -13112,36 +14772,33 @@ function ($exception) { } /** - * Create request for operation 'listConferenceRecordings' + * Create request for operation 'listConferences' * - * @param string $conference_id Show only Recordings made during the conference with this ID. (required) + * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional) - * @param string $call_id Show only Recordings made during the Call with this ID. (optional) + * @param string $alias List Conferences whose alias exactly matches this string. (optional) - * @param string $date_created Only show Recordings created on this date, formatted as *YYYY-MM-DD*. (optional) + * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferenceRecordings'] to see the possible values for this operation + * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional) + + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listConferenceRecordingsRequest($conference_id, $call_id = null, $date_created = null, string $contentType = self::contentTypes['listConferenceRecordings'][0]) + public function listConferencesRequest($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0]) { $account_id = $this->config->getUsername(); - // verify the required parameter 'conference_id' is set - if ($conference_id === null || (is_array($conference_id) && count($conference_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $conference_id when calling listConferenceRecordings' - ); - } - $resourcePath = '/Accounts/{accountId}/Conferences/{conferenceId}/Recordings'; + + $resourcePath = '/Accounts/{accountId}/Conferences'; $formParams = []; $queryParams = []; $headerParams = []; @@ -13150,8 +14807,17 @@ public function listConferenceRecordingsRequest($conference_id, $call_id = null, // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $call_id, - 'callId', // param base name + $status, + 'status', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $alias, + 'alias', // param base name 'string', // openApiType 'form', // style true, // explode @@ -13166,6 +14832,15 @@ public function listConferenceRecordingsRequest($conference_id, $call_id = null, true, // explode false // required ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $date_updated, + 'dateUpdated', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params @@ -13176,14 +14851,6 @@ public function listConferenceRecordingsRequest($conference_id, $call_id = null, $resourcePath ); } - // path params - if ($conference_id !== null) { - $resourcePath = str_replace( - '{' . 'conferenceId' . '}', - ObjectSerializer::toPathValue($conference_id), - $resourcePath - ); - } $headers = $this->headerSelector->selectHeaders( @@ -13244,53 +14911,45 @@ public function listConferenceRecordingsRequest($conference_id, $call_id = null, } /** - * Operation listConferences + * Operation listExports * - * List Conferences + * List Exports * - * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional) - - * @param string $alias List Conferences whose alias exactly matches this string. (optional) - - * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional) + * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional) - * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional) + * @param string $cursor Used to reference pages of a list of exports (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return \FreeClimb\Api\Model\ConferenceList + * @return \FreeClimb\Api\Model\ExportList */ - public function listConferences($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0]) + public function listExports($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0]) { - list($response) = $this->listConferencesWithHttpInfo($status, $alias, $date_created, $date_updated, $contentType); + list($response) = $this->listExportsWithHttpInfo($status, $cursor, $contentType); return $response; } /** - * Operation listConferencesWithHttpInfo + * Operation listExportsWithHttpInfo * - * List Conferences + * List Exports * - * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional) - - * @param string $alias List Conferences whose alias exactly matches this string. (optional) - - * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional) + * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional) - * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional) + * @param string $cursor Used to reference pages of a list of exports (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation * * @throws \FreeClimb\Api\ApiException on non-2xx response or if the response body is not in the expected format * @throws \InvalidArgumentException - * @return array of \FreeClimb\Api\Model\ConferenceList, HTTP status code, HTTP response headers (array of strings) + * @return array of \FreeClimb\Api\Model\ExportList, HTTP status code, HTTP response headers (array of strings) */ - public function listConferencesWithHttpInfo($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0]) + public function listExportsWithHttpInfo($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0]) { - $request = $this->listConferencesRequest($status, $alias, $date_created, $date_updated, $contentType); + $request = $this->listExportsRequest($status, $cursor, $contentType); try { $options = $this->createHttpClientOption(); @@ -13317,11 +14976,11 @@ public function listConferencesWithHttpInfo($status = null, $alias = null, $date switch ($statusCode) { case 200: - if ('\FreeClimb\Api\Model\ConferenceList' === '\SplFileObject') { + if ('\FreeClimb\Api\Model\ExportList' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); - if ('\FreeClimb\Api\Model\ConferenceList' !== 'string') { + if ('\FreeClimb\Api\Model\ExportList' !== 'string') { try { $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); } catch (\JsonException $exception) { @@ -13339,7 +14998,7 @@ public function listConferencesWithHttpInfo($status = null, $alias = null, $date } return [ - ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ConferenceList', []), + ObjectSerializer::deserialize($content, '\FreeClimb\Api\Model\ExportList', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -13358,7 +15017,7 @@ public function listConferencesWithHttpInfo($status = null, $alias = null, $date ); } - $returnType = '\FreeClimb\Api\Model\ConferenceList'; + $returnType = '\FreeClimb\Api\Model\ExportList'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -13391,7 +15050,7 @@ public function listConferencesWithHttpInfo($status = null, $alias = null, $date case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\FreeClimb\Api\Model\ConferenceList', + '\FreeClimb\Api\Model\ExportList', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -13402,27 +15061,23 @@ public function listConferencesWithHttpInfo($status = null, $alias = null, $date } /** - * Operation listConferencesAsync + * Operation listExportsAsync * - * List Conferences + * List Exports * - * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional) - - * @param string $alias List Conferences whose alias exactly matches this string. (optional) - - * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional) + * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional) - * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional) + * @param string $cursor Used to reference pages of a list of exports (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listConferencesAsync($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0]) + public function listExportsAsync($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0]) { - return $this->listConferencesAsyncWithHttpInfo($status, $alias, $date_created, $date_updated, $contentType) + return $this->listExportsAsyncWithHttpInfo($status, $cursor, $contentType) ->then( function ($response) { return $response[0]; @@ -13431,28 +15086,24 @@ function ($response) { } /** - * Operation listConferencesAsyncWithHttpInfo + * Operation listExportsAsyncWithHttpInfo * - * List Conferences + * List Exports * - * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional) - - * @param string $alias List Conferences whose alias exactly matches this string. (optional) - - * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional) + * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional) - * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional) + * @param string $cursor Used to reference pages of a list of exports (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listConferencesAsyncWithHttpInfo($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0]) + public function listExportsAsyncWithHttpInfo($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0]) { - $returnType = '\FreeClimb\Api\Model\ConferenceList'; - $request = $this->listConferencesRequest($status, $alias, $date_created, $date_updated, $contentType); + $returnType = '\FreeClimb\Api\Model\ExportList'; + $request = $this->listExportsRequest($status, $cursor, $contentType); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -13491,23 +15142,19 @@ function ($exception) { } /** - * Create request for operation 'listConferences' + * Create request for operation 'listExports' * - * @param string $status Only show conferences that currently have the specified status. Valid values: `empty`, `populated`, `inProgress`, or `terminated`. (optional) - - * @param string $alias List Conferences whose alias exactly matches this string. (optional) - - * @param string $date_created Only show Conferences that were created on the specified date, in the form *YYYY-MM-DD*. (optional) + * @param \FreeClimb\Api\Model\ExportStatus $status Status of export (optional) - * @param string $date_updated Only show Conferences that were last updated on the specified date, in the form *YYYY-MM-DD*. (optional) + * @param string $cursor Used to reference pages of a list of exports (optional) - * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listConferences'] to see the possible values for this operation + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['listExports'] to see the possible values for this operation * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listConferencesRequest($status = null, $alias = null, $date_created = null, $date_updated = null, string $contentType = self::contentTypes['listConferences'][0]) + public function listExportsRequest($status = null, $cursor = null, string $contentType = self::contentTypes['listExports'][0]) { $account_id = $this->config->getUsername(); @@ -13515,9 +15162,7 @@ public function listConferencesRequest($status = null, $alias = null, $date_crea - - - $resourcePath = '/Accounts/{accountId}/Conferences'; + $resourcePath = '/Accounts/{accountId}/Exports'; $formParams = []; $queryParams = []; $headerParams = []; @@ -13528,33 +15173,15 @@ public function listConferencesRequest($status = null, $alias = null, $date_crea $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( $status, 'status', // param base name - 'string', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $alias, - 'alias', // param base name - 'string', // openApiType - 'form', // style - true, // explode - false // required - ) ?? []); - // query params - $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $date_created, - 'dateCreated', // param base name - 'string', // openApiType + 'ExportStatus', // openApiType 'form', // style true, // explode false // required ) ?? []); // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $date_updated, - 'dateUpdated', // param base name + $cursor, + 'cursor', // param base name 'string', // openApiType 'form', // style true, // explode diff --git a/lib/Configuration.php b/lib/Configuration.php index e8716ab..04dcc31 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -102,7 +102,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/5.1.1/PHP'; + protected $userAgent = 'OpenAPI-Generator/5.2.0/PHP'; /** * Debug switch (default set to false) @@ -435,7 +435,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' The version of the OpenAPI document: 1.0.0' . PHP_EOL; - $report .= ' SDK Package Version: 5.1.1' . PHP_EOL; + $report .= ' SDK Package Version: 5.2.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Model/CallResult.php b/lib/Model/CallResult.php index 16f8e4d..fe19c7e 100644 --- a/lib/Model/CallResult.php +++ b/lib/Model/CallResult.php @@ -69,7 +69,7 @@ class CallResult implements ModelInterface, ArrayAccess, \JsonSerializable 'from' => 'string', 'to' => 'string', 'phone_number_id' => 'string', - 'call_status' => '\FreeClimb\Api\Model\CallStatus', + 'status' => '\FreeClimb\Api\Model\CallStatus', 'start_time' => 'string', 'connect_time' => 'string', 'end_time' => 'string', @@ -99,7 +99,7 @@ class CallResult implements ModelInterface, ArrayAccess, \JsonSerializable 'from' => null, 'to' => null, 'phone_number_id' => null, - 'call_status' => null, + 'status' => null, 'start_time' => null, 'connect_time' => null, 'end_time' => null, @@ -127,7 +127,7 @@ class CallResult implements ModelInterface, ArrayAccess, \JsonSerializable 'from' => true, 'to' => true, 'phone_number_id' => true, - 'call_status' => true, + 'status' => true, 'start_time' => true, 'connect_time' => true, 'end_time' => true, @@ -235,7 +235,7 @@ public function isNullableSetToNull(string $property): bool 'from' => 'from', 'to' => 'to', 'phone_number_id' => 'phoneNumberId', - 'call_status' => 'callStatus', + 'status' => 'status', 'start_time' => 'startTime', 'connect_time' => 'connectTime', 'end_time' => 'endTime', @@ -263,7 +263,7 @@ public function isNullableSetToNull(string $property): bool 'from' => 'setFrom', 'to' => 'setTo', 'phone_number_id' => 'setPhoneNumberId', - 'call_status' => 'setCallStatus', + 'status' => 'setStatus', 'start_time' => 'setStartTime', 'connect_time' => 'setConnectTime', 'end_time' => 'setEndTime', @@ -291,7 +291,7 @@ public function isNullableSetToNull(string $property): bool 'from' => 'getFrom', 'to' => 'getTo', 'phone_number_id' => 'getPhoneNumberId', - 'call_status' => 'getCallStatus', + 'status' => 'getStatus', 'start_time' => 'getStartTime', 'connect_time' => 'getConnectTime', 'end_time' => 'getEndTime', @@ -370,7 +370,7 @@ public function __construct(?array $data = null) $this->setIfExists('from', $data ?? [], null); $this->setIfExists('to', $data ?? [], null); $this->setIfExists('phone_number_id', $data ?? [], null); - $this->setIfExists('call_status', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); $this->setIfExists('start_time', $data ?? [], null); $this->setIfExists('connect_time', $data ?? [], null); $this->setIfExists('end_time', $data ?? [], null); @@ -737,35 +737,35 @@ public function setPhoneNumberId($phone_number_id) } /** - * Gets call_status + * Gets status * * @return \FreeClimb\Api\Model\CallStatus|null */ - public function getCallStatus() + public function getStatus() { - return $this->container['call_status']; + return $this->container['status']; } /** - * Sets call_status + * Sets status * - * @param \FreeClimb\Api\Model\CallStatus|null $call_status call_status + * @param \FreeClimb\Api\Model\CallStatus|null $status status * * @return self */ - public function setCallStatus($call_status) + public function setStatus($status) { - if (is_null($call_status)) { - array_push($this->openAPINullablesSetToNull, 'call_status'); + if (is_null($status)) { + array_push($this->openAPINullablesSetToNull, 'status'); } else { $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); - $index = array_search('call_status', $nullablesSetToNull, true); + $index = array_search('status', $nullablesSetToNull, true); if ($index !== false) { unset($nullablesSetToNull[$index]); $this->setOpenAPINullablesSetToNull($nullablesSetToNull); } } - $this->container['call_status'] = $call_status; + $this->container['status'] = $status; return $this; } diff --git a/lib/Model/CreateConference.php b/lib/Model/CreateConference.php index 55a2f99..74b9bac 100644 --- a/lib/Model/CreateConference.php +++ b/lib/Model/CreateConference.php @@ -59,11 +59,12 @@ class CreateConference extends PerclCommand */ protected static $openAPITypes = [ 'action_url' => 'string', - 'alias' => 'bool', + 'alias' => 'string', 'play_beep' => '\FreeClimb\Api\Model\PlayBeep', 'record' => 'bool', 'status_callback_url' => 'string', - 'wait_url' => 'string' + 'wait_url' => 'string', + 'parent_call_id' => 'string' ]; /** @@ -79,7 +80,8 @@ class CreateConference extends PerclCommand 'play_beep' => null, 'record' => null, 'status_callback_url' => 'uri', - 'wait_url' => 'uri' + 'wait_url' => 'uri', + 'parent_call_id' => null ]; /** @@ -93,7 +95,8 @@ class CreateConference extends PerclCommand 'play_beep' => true, 'record' => false, 'status_callback_url' => false, - 'wait_url' => false + 'wait_url' => false, + 'parent_call_id' => false ]; /** @@ -187,7 +190,8 @@ public function isNullableSetToNull(string $property): bool 'play_beep' => 'playBeep', 'record' => 'record', 'status_callback_url' => 'statusCallbackUrl', - 'wait_url' => 'waitUrl' + 'wait_url' => 'waitUrl', + 'parent_call_id' => 'parentCallId' ]; /** @@ -201,7 +205,8 @@ public function isNullableSetToNull(string $property): bool 'play_beep' => 'setPlayBeep', 'record' => 'setRecord', 'status_callback_url' => 'setStatusCallbackUrl', - 'wait_url' => 'setWaitUrl' + 'wait_url' => 'setWaitUrl', + 'parent_call_id' => 'setParentCallId' ]; /** @@ -215,7 +220,8 @@ public function isNullableSetToNull(string $property): bool 'play_beep' => 'getPlayBeep', 'record' => 'getRecord', 'status_callback_url' => 'getStatusCallbackUrl', - 'wait_url' => 'getWaitUrl' + 'wait_url' => 'getWaitUrl', + 'parent_call_id' => 'getParentCallId' ]; /** @@ -277,6 +283,7 @@ public function __construct(?array $data = null) $this->setIfExists('record', $data ?? [], null); $this->setIfExists('status_callback_url', $data ?? [], null); $this->setIfExists('wait_url', $data ?? [], null); + $this->setIfExists('parent_call_id', $data ?? [], null); } /** @@ -354,7 +361,7 @@ public function setActionUrl($action_url) /** * Gets alias * - * @return bool|null + * @return string|null */ public function getAlias() { @@ -364,7 +371,7 @@ public function getAlias() /** * Sets alias * - * @param bool|null $alias Descriptive name for the Conference. + * @param string|null $alias Descriptive name for the Conference. * * @return self */ @@ -492,6 +499,33 @@ public function setWaitUrl($wait_url) return $this; } + + /** + * Gets parent_call_id + * + * @return string|null + */ + public function getParentCallId() + { + return $this->container['parent_call_id']; + } + + /** + * Sets parent_call_id + * + * @param string|null $parent_call_id ID of the Call that created this leg (child call). + * + * @return self + */ + public function setParentCallId($parent_call_id) + { + if (is_null($parent_call_id)) { + throw new \InvalidArgumentException('non-nullable parent_call_id cannot be null'); + } + $this->container['parent_call_id'] = $parent_call_id; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/ExportList.php b/lib/Model/ExportList.php new file mode 100644 index 0000000..38d885f --- /dev/null +++ b/lib/Model/ExportList.php @@ -0,0 +1,706 @@ + + */ +class ExportList implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ExportList'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'total' => 'int', + 'start' => 'int', + 'end' => 'int', + 'page' => 'int', + 'num_pages' => 'int', + 'page_size' => 'int', + 'next_page_uri' => 'string', + 'exports' => '\FreeClimb\Api\Model\ExportResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'total' => null, + 'start' => null, + 'end' => null, + 'page' => null, + 'num_pages' => null, + 'page_size' => null, + 'next_page_uri' => null, + 'exports' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'total' => true, + 'start' => true, + 'end' => true, + 'page' => true, + 'num_pages' => true, + 'page_size' => true, + 'next_page_uri' => true, + 'exports' => true + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'total' => 'total', + 'start' => 'start', + 'end' => 'end', + 'page' => 'page', + 'num_pages' => 'numPages', + 'page_size' => 'pageSize', + 'next_page_uri' => 'nextPageUri', + 'exports' => 'exports' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'total' => 'setTotal', + 'start' => 'setStart', + 'end' => 'setEnd', + 'page' => 'setPage', + 'num_pages' => 'setNumPages', + 'page_size' => 'setPageSize', + 'next_page_uri' => 'setNextPageUri', + 'exports' => 'setExports' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'total' => 'getTotal', + 'start' => 'getStart', + 'end' => 'getEnd', + 'page' => 'getPage', + 'num_pages' => 'getNumPages', + 'page_size' => 'getPageSize', + 'next_page_uri' => 'getNextPageUri', + 'exports' => 'getExports' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('total', $data ?? [], null); + $this->setIfExists('start', $data ?? [], null); + $this->setIfExists('end', $data ?? [], null); + $this->setIfExists('page', $data ?? [], null); + $this->setIfExists('num_pages', $data ?? [], null); + $this->setIfExists('page_size', $data ?? [], null); + $this->setIfExists('next_page_uri', $data ?? [], null); + $this->setIfExists('exports', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets total + * + * @return int|null + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int|null $total Total amount of requested resource. + * + * @return self + */ + public function setTotal($total) + { + if (is_null($total)) { + array_push($this->openAPINullablesSetToNull, 'total'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('total', $nullablesSetToNull, true); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['total'] = $total; + + return $this; + } + + /** + * Gets start + * + * @return int|null + */ + public function getStart() + { + return $this->container['start']; + } + + /** + * Sets start + * + * @param int|null $start Resource index at start of current page + * + * @return self + */ + public function setStart($start) + { + if (is_null($start)) { + array_push($this->openAPINullablesSetToNull, 'start'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('start', $nullablesSetToNull, true); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['start'] = $start; + + return $this; + } + + /** + * Gets end + * + * @return int|null + */ + public function getEnd() + { + return $this->container['end']; + } + + /** + * Sets end + * + * @param int|null $end Resource index at end of current page + * + * @return self + */ + public function setEnd($end) + { + if (is_null($end)) { + array_push($this->openAPINullablesSetToNull, 'end'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('end', $nullablesSetToNull, true); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['end'] = $end; + + return $this; + } + + /** + * Gets page + * + * @return int|null + */ + public function getPage() + { + return $this->container['page']; + } + + /** + * Sets page + * + * @param int|null $page Current page + * + * @return self + */ + public function setPage($page) + { + if (is_null($page)) { + array_push($this->openAPINullablesSetToNull, 'page'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('page', $nullablesSetToNull, true); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['page'] = $page; + + return $this; + } + + /** + * Gets num_pages + * + * @return int|null + */ + public function getNumPages() + { + return $this->container['num_pages']; + } + + /** + * Sets num_pages + * + * @param int|null $num_pages Total number of pages + * + * @return self + */ + public function setNumPages($num_pages) + { + if (is_null($num_pages)) { + array_push($this->openAPINullablesSetToNull, 'num_pages'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('num_pages', $nullablesSetToNull, true); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['num_pages'] = $num_pages; + + return $this; + } + + /** + * Gets page_size + * + * @return int|null + */ + public function getPageSize() + { + return $this->container['page_size']; + } + + /** + * Sets page_size + * + * @param int|null $page_size Number of items per page + * + * @return self + */ + public function setPageSize($page_size) + { + if (is_null($page_size)) { + array_push($this->openAPINullablesSetToNull, 'page_size'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('page_size', $nullablesSetToNull, true); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['page_size'] = $page_size; + + return $this; + } + + /** + * Gets next_page_uri + * + * @return string|null + */ + public function getNextPageUri() + { + return $this->container['next_page_uri']; + } + + /** + * Sets next_page_uri + * + * @param string|null $next_page_uri Uri to retrieve the next page of items + * + * @return self + */ + public function setNextPageUri($next_page_uri) + { + if (is_null($next_page_uri)) { + array_push($this->openAPINullablesSetToNull, 'next_page_uri'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('next_page_uri', $nullablesSetToNull, true); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['next_page_uri'] = $next_page_uri; + + return $this; + } + + /** + * Gets exports + * + * @return \FreeClimb\Api\Model\ExportResult[]|null + */ + public function getExports() + { + return $this->container['exports']; + } + + /** + * Sets exports + * + * @param \FreeClimb\Api\Model\ExportResult[]|null $exports exports + * + * @return self + */ + public function setExports($exports) + { + if (is_null($exports)) { + array_push($this->openAPINullablesSetToNull, 'exports'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('exports', $nullablesSetToNull, true); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['exports'] = $exports; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + +} + + diff --git a/lib/Model/ExportOutputType.php b/lib/Model/ExportOutputType.php new file mode 100644 index 0000000..3933ed4 --- /dev/null +++ b/lib/Model/ExportOutputType.php @@ -0,0 +1,64 @@ + + */ +class ExportRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ExportRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'resource_type' => '\FreeClimb\Api\Model\ExportResourceType', + 'format' => 'string[]', + 'output' => '\FreeClimb\Api\Model\ExportRequestOutput', + 'query' => 'object' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'resource_type' => null, + 'format' => null, + 'output' => null, + 'query' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'resource_type' => false, + 'format' => false, + 'output' => false, + 'query' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'resource_type' => 'resourceType', + 'format' => 'format', + 'output' => 'output', + 'query' => 'query' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'resource_type' => 'setResourceType', + 'format' => 'setFormat', + 'output' => 'setOutput', + 'query' => 'setQuery' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'resource_type' => 'getResourceType', + 'format' => 'getFormat', + 'output' => 'getOutput', + 'query' => 'getQuery' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('resource_type', $data ?? [], null); + $this->setIfExists('format', $data ?? [], null); + $this->setIfExists('output', $data ?? [], null); + $this->setIfExists('query', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['resource_type'] === null) { + $invalidProperties[] = "'resource_type' can't be null"; + } + if ($this->container['output'] === null) { + $invalidProperties[] = "'output' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets resource_type + * + * @return \FreeClimb\Api\Model\ExportResourceType + */ + public function getResourceType() + { + return $this->container['resource_type']; + } + + /** + * Sets resource_type + * + * @param \FreeClimb\Api\Model\ExportResourceType $resource_type resource_type + * + * @return self + */ + public function setResourceType($resource_type) + { + if (is_null($resource_type)) { + throw new \InvalidArgumentException('non-nullable resource_type cannot be null'); + } + $this->container['resource_type'] = $resource_type; + + return $this; + } + + /** + * Gets format + * + * @return string[]|null + */ + public function getFormat() + { + return $this->container['format']; + } + + /** + * Sets format + * + * @param string[]|null $format format + * + * @return self + */ + public function setFormat($format) + { + if (is_null($format)) { + throw new \InvalidArgumentException('non-nullable format cannot be null'); + } + $this->container['format'] = $format; + + return $this; + } + + /** + * Gets output + * + * @return \FreeClimb\Api\Model\ExportRequestOutput + */ + public function getOutput() + { + return $this->container['output']; + } + + /** + * Sets output + * + * @param \FreeClimb\Api\Model\ExportRequestOutput $output output + * + * @return self + */ + public function setOutput($output) + { + if (is_null($output)) { + throw new \InvalidArgumentException('non-nullable output cannot be null'); + } + $this->container['output'] = $output; + + return $this; + } + + /** + * Gets query + * + * @return object|null + */ + public function getQuery() + { + return $this->container['query']; + } + + /** + * Sets query + * + * @param object|null $query query + * + * @return self + */ + public function setQuery($query) + { + if (is_null($query)) { + throw new \InvalidArgumentException('non-nullable query cannot be null'); + } + $this->container['query'] = $query; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + +} + + diff --git a/lib/Model/ExportRequestOutput.php b/lib/Model/ExportRequestOutput.php new file mode 100644 index 0000000..c00f0bf --- /dev/null +++ b/lib/Model/ExportRequestOutput.php @@ -0,0 +1,415 @@ + + */ +class ExportRequestOutput implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ExportRequestOutput'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'type' => '\FreeClimb\Api\Model\ExportOutputType' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'type' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'type' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('type', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return \FreeClimb\Api\Model\ExportOutputType + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param \FreeClimb\Api\Model\ExportOutputType $type type + * + * @return self + */ + public function setType($type) + { + if (is_null($type)) { + throw new \InvalidArgumentException('non-nullable type cannot be null'); + } + $this->container['type'] = $type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + +} + + diff --git a/lib/Model/ExportResourceType.php b/lib/Model/ExportResourceType.php new file mode 100644 index 0000000..7196f09 --- /dev/null +++ b/lib/Model/ExportResourceType.php @@ -0,0 +1,66 @@ + + */ +class ExportResult implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ExportResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'account_id' => 'string', + 'uri' => 'string', + 'date_created' => 'string', + 'date_updated' => 'string', + 'revision' => 'int', + 'export_id' => 'string', + 'status' => '\FreeClimb\Api\Model\ExportStatus', + 'size' => 'int', + 'resource_type' => '\FreeClimb\Api\Model\ExportResourceType', + 'query' => 'object', + 'format' => 'string[]', + 'output' => '\FreeClimb\Api\Model\ExportResultOutput' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'account_id' => null, + 'uri' => 'uri-reference', + 'date_created' => null, + 'date_updated' => null, + 'revision' => null, + 'export_id' => null, + 'status' => null, + 'size' => null, + 'resource_type' => null, + 'query' => null, + 'format' => null, + 'output' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'account_id' => true, + 'uri' => false, + 'date_created' => false, + 'date_updated' => false, + 'revision' => false, + 'export_id' => true, + 'status' => false, + 'size' => false, + 'resource_type' => false, + 'query' => false, + 'format' => false, + 'output' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'account_id' => 'accountId', + 'uri' => 'uri', + 'date_created' => 'dateCreated', + 'date_updated' => 'dateUpdated', + 'revision' => 'revision', + 'export_id' => 'exportId', + 'status' => 'status', + 'size' => 'size', + 'resource_type' => 'resourceType', + 'query' => 'query', + 'format' => 'format', + 'output' => 'output' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'account_id' => 'setAccountId', + 'uri' => 'setUri', + 'date_created' => 'setDateCreated', + 'date_updated' => 'setDateUpdated', + 'revision' => 'setRevision', + 'export_id' => 'setExportId', + 'status' => 'setStatus', + 'size' => 'setSize', + 'resource_type' => 'setResourceType', + 'query' => 'setQuery', + 'format' => 'setFormat', + 'output' => 'setOutput' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'account_id' => 'getAccountId', + 'uri' => 'getUri', + 'date_created' => 'getDateCreated', + 'date_updated' => 'getDateUpdated', + 'revision' => 'getRevision', + 'export_id' => 'getExportId', + 'status' => 'getStatus', + 'size' => 'getSize', + 'resource_type' => 'getResourceType', + 'query' => 'getQuery', + 'format' => 'getFormat', + 'output' => 'getOutput' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('account_id', $data ?? [], null); + $this->setIfExists('uri', $data ?? [], null); + $this->setIfExists('date_created', $data ?? [], null); + $this->setIfExists('date_updated', $data ?? [], null); + $this->setIfExists('revision', $data ?? [], null); + $this->setIfExists('export_id', $data ?? [], null); + $this->setIfExists('status', $data ?? [], null); + $this->setIfExists('size', $data ?? [], null); + $this->setIfExists('resource_type', $data ?? [], null); + $this->setIfExists('query', $data ?? [], null); + $this->setIfExists('format', $data ?? [], null); + $this->setIfExists('output', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['account_id'] === null) { + $invalidProperties[] = "'account_id' can't be null"; + } + if ($this->container['uri'] === null) { + $invalidProperties[] = "'uri' can't be null"; + } + if ($this->container['date_created'] === null) { + $invalidProperties[] = "'date_created' can't be null"; + } + if ($this->container['date_updated'] === null) { + $invalidProperties[] = "'date_updated' can't be null"; + } + if ($this->container['revision'] === null) { + $invalidProperties[] = "'revision' can't be null"; + } + if (($this->container['revision'] < 0)) { + $invalidProperties[] = "invalid value for 'revision', must be bigger than or equal to 0."; + } + + if ($this->container['export_id'] === null) { + $invalidProperties[] = "'export_id' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + if ($this->container['size'] === null) { + $invalidProperties[] = "'size' can't be null"; + } + if ($this->container['resource_type'] === null) { + $invalidProperties[] = "'resource_type' can't be null"; + } + if ($this->container['query'] === null) { + $invalidProperties[] = "'query' can't be null"; + } + if ($this->container['format'] === null) { + $invalidProperties[] = "'format' can't be null"; + } + if ($this->container['output'] === null) { + $invalidProperties[] = "'output' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets account_id + * + * @return string + */ + public function getAccountId() + { + return $this->container['account_id']; + } + + /** + * Sets account_id + * + * @param string $account_id String that uniquely identifies this account resource. + * + * @return self + */ + public function setAccountId($account_id) + { + if (is_null($account_id)) { + array_push($this->openAPINullablesSetToNull, 'account_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('account_id', $nullablesSetToNull, true); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['account_id'] = $account_id; + + return $this; + } + + /** + * Gets uri + * + * @return string + */ + public function getUri() + { + return $this->container['uri']; + } + + /** + * Sets uri + * + * @param string $uri uri + * + * @return self + */ + public function setUri($uri) + { + if (is_null($uri)) { + throw new \InvalidArgumentException('non-nullable uri cannot be null'); + } + $this->container['uri'] = $uri; + + return $this; + } + + /** + * Gets date_created + * + * @return string + */ + public function getDateCreated() + { + return $this->container['date_created']; + } + + /** + * Sets date_created + * + * @param string $date_created date_created + * + * @return self + */ + public function setDateCreated($date_created) + { + if (is_null($date_created)) { + throw new \InvalidArgumentException('non-nullable date_created cannot be null'); + } + $this->container['date_created'] = $date_created; + + return $this; + } + + /** + * Gets date_updated + * + * @return string + */ + public function getDateUpdated() + { + return $this->container['date_updated']; + } + + /** + * Sets date_updated + * + * @param string $date_updated date_updated + * + * @return self + */ + public function setDateUpdated($date_updated) + { + if (is_null($date_updated)) { + throw new \InvalidArgumentException('non-nullable date_updated cannot be null'); + } + $this->container['date_updated'] = $date_updated; + + return $this; + } + + /** + * Gets revision + * + * @return int + */ + public function getRevision() + { + return $this->container['revision']; + } + + /** + * Sets revision + * + * @param int $revision revision + * + * @return self + */ + public function setRevision($revision) + { + if (is_null($revision)) { + throw new \InvalidArgumentException('non-nullable revision cannot be null'); + } + + if (($revision < 0)) { + throw new \InvalidArgumentException('invalid value for $revision when calling ExportResult., must be bigger than or equal to 0.'); + } + + $this->container['revision'] = $revision; + + return $this; + } + + /** + * Gets export_id + * + * @return string + */ + public function getExportId() + { + return $this->container['export_id']; + } + + /** + * Sets export_id + * + * @param string $export_id String that uniquely identifies this export resource + * + * @return self + */ + public function setExportId($export_id) + { + if (is_null($export_id)) { + array_push($this->openAPINullablesSetToNull, 'export_id'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('export_id', $nullablesSetToNull, true); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['export_id'] = $export_id; + + return $this; + } + + /** + * Gets status + * + * @return \FreeClimb\Api\Model\ExportStatus + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param \FreeClimb\Api\Model\ExportStatus $status status + * + * @return self + */ + public function setStatus($status) + { + if (is_null($status)) { + throw new \InvalidArgumentException('non-nullable status cannot be null'); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets size + * + * @return int + */ + public function getSize() + { + return $this->container['size']; + } + + /** + * Sets size + * + * @param int $size size + * + * @return self + */ + public function setSize($size) + { + if (is_null($size)) { + throw new \InvalidArgumentException('non-nullable size cannot be null'); + } + $this->container['size'] = $size; + + return $this; + } + + /** + * Gets resource_type + * + * @return \FreeClimb\Api\Model\ExportResourceType + */ + public function getResourceType() + { + return $this->container['resource_type']; + } + + /** + * Sets resource_type + * + * @param \FreeClimb\Api\Model\ExportResourceType $resource_type resource_type + * + * @return self + */ + public function setResourceType($resource_type) + { + if (is_null($resource_type)) { + throw new \InvalidArgumentException('non-nullable resource_type cannot be null'); + } + $this->container['resource_type'] = $resource_type; + + return $this; + } + + /** + * Gets query + * + * @return object + */ + public function getQuery() + { + return $this->container['query']; + } + + /** + * Sets query + * + * @param object $query Query params used to filter exported documents + * + * @return self + */ + public function setQuery($query) + { + if (is_null($query)) { + throw new \InvalidArgumentException('non-nullable query cannot be null'); + } + $this->container['query'] = $query; + + return $this; + } + + /** + * Gets format + * + * @return string[] + */ + public function getFormat() + { + return $this->container['format']; + } + + /** + * Sets format + * + * @param string[] $format Desired fields of exported documents + * + * @return self + */ + public function setFormat($format) + { + if (is_null($format)) { + throw new \InvalidArgumentException('non-nullable format cannot be null'); + } + $this->container['format'] = $format; + + return $this; + } + + /** + * Gets output + * + * @return \FreeClimb\Api\Model\ExportResultOutput + */ + public function getOutput() + { + return $this->container['output']; + } + + /** + * Sets output + * + * @param \FreeClimb\Api\Model\ExportResultOutput $output output + * + * @return self + */ + public function setOutput($output) + { + if (is_null($output)) { + throw new \InvalidArgumentException('non-nullable output cannot be null'); + } + $this->container['output'] = $output; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + +} + + diff --git a/lib/Model/ExportResultOutput.php b/lib/Model/ExportResultOutput.php new file mode 100644 index 0000000..8931731 --- /dev/null +++ b/lib/Model/ExportResultOutput.php @@ -0,0 +1,415 @@ + + */ +class ExportResultOutput implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ExportResultOutput'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'type' => '\FreeClimb\Api\Model\ExportOutputType' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'type' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'type' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('type', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return \FreeClimb\Api\Model\ExportOutputType + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param \FreeClimb\Api\Model\ExportOutputType $type type + * + * @return self + */ + public function setType($type) + { + if (is_null($type)) { + throw new \InvalidArgumentException('non-nullable type cannot be null'); + } + $this->container['type'] = $type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + +} + + diff --git a/lib/Model/ExportStatus.php b/lib/Model/ExportStatus.php new file mode 100644 index 0000000..0063c1d --- /dev/null +++ b/lib/Model/ExportStatus.php @@ -0,0 +1,74 @@ + \FreeClimb\Api\Model\ExportResourceType::MESSAGES, + "output" => new \FreeClimb\Api\Model\ExportRequestOutput([ + "type" => \FreeClimb\Api\Model\ExportOutputType::CSV + ]), + "format" => ["id", "from", "to", "text"], + "query" => (object)["status" => "completed"] + ]); + } + + public function export_id_deleteAnExport_test_value() + { + return "delete_export_id_test_value"; + } + + public function export_id_downloadAnExport_test_value() + { + return "download_export_id_value"; + } + + public function export_id_getAnExport_test_value() + { + return "get_export_id_value"; + } + + public function risk_score_min_listCalls_test_value() + { + return 10; + } + + public function risk_score_max_listCalls_test_value() + { + return 90; + } + + public function status_listExports_test_value() + { + return \FreeClimb\Api\Model\ExportStatus::COMPLETED; + } + + public function cursor_listExports_test_value() + { + return "cursor_test_value"; + } /** * Setup before running each test case */ @@ -709,6 +756,22 @@ public function testCreateAnApplication() $this->assertInstanceOf('\FreeClimb\Api\Model\ApplicationResult', $response); } + /** + * Test case for createExport + * + * Create an Export. + * + */ + public function testCreateExport() + { + + //$export_request = $export_request_test_value; + + + $response = static::$apiInstance->createExport($this->export_request_createExport_test_value()); + $this->assertInstanceOf('\FreeClimb\Api\Model\ExportResult', $response); + } + /** * Test case for createKnowledgeBaseCompletion * @@ -759,6 +822,22 @@ public function testDeleteAnApplication() $this->assertNull($response); } + /** + * Test case for deleteAnExport + * + * Delete an Export. + * + */ + public function testDeleteAnExport() + { + + //$export_id = $export_id_test_value; + + + $response = static::$apiInstance->deleteAnExport($this->export_id_deleteAnExport_test_value()); + $this->assertNull($response); + } + /** * Test case for deleteAnIncomingNumber * @@ -825,6 +904,23 @@ public function testDownloadARecordingFile() $this->assertInstanceOf('\SplFileObject', $response); } + /** + * Test case for downloadAnExport + * + * Download an Export. + * + */ + public function testDownloadAnExport() + { + + //$export_id = $export_id_test_value; + + + $response = static::$apiInstance->downloadAnExport($this->export_id_downloadAnExport_test_value()); + + $this->assertIsString($response); + } + /** * Test case for filterLogs * @@ -971,6 +1067,22 @@ public function testGetAnApplication() $this->assertInstanceOf('\FreeClimb\Api\Model\ApplicationResult', $response); } + /** + * Test case for getAnExport + * + * Get an Export. + * + */ + public function testGetAnExport() + { + + //$export_id = $export_id_test_value; + + + $response = static::$apiInstance->getAnExport($this->export_id_getAnExport_test_value()); + $this->assertInstanceOf('\FreeClimb\Api\Model\ExportResult', $response); + } + /** * Test case for getAnIncomingNumber * @@ -1282,8 +1394,12 @@ public function testListCalls() //$application_id = $application_id_test_value; + //$risk_score_min = $risk_score_min_test_value; - $response = static::$apiInstance->listCalls($this->active_listCalls_test_value(), $this->to_listCalls_test_value(), $this->from_listCalls_test_value(), $this->status_listCalls_test_value(), $this->start_time_listCalls_test_value(), $this->end_time_listCalls_test_value(), $this->parent_call_id_listCalls_test_value(), $this->application_id_listCalls_test_value()); + //$risk_score_max = $risk_score_max_test_value; + + + $response = static::$apiInstance->listCalls($this->active_listCalls_test_value(), $this->to_listCalls_test_value(), $this->from_listCalls_test_value(), $this->status_listCalls_test_value(), $this->start_time_listCalls_test_value(), $this->end_time_listCalls_test_value(), $this->parent_call_id_listCalls_test_value(), $this->application_id_listCalls_test_value(), $this->risk_score_min_listCalls_test_value(), $this->risk_score_max_listCalls_test_value()); $this->assertInstanceOf('\FreeClimb\Api\Model\CallList', $response); } @@ -1329,6 +1445,24 @@ public function testListConferences() $this->assertInstanceOf('\FreeClimb\Api\Model\ConferenceList', $response); } + /** + * Test case for listExports + * + * List Exports. + * + */ + public function testListExports() + { + + //$status = $status_test_value; + + //$cursor = $cursor_test_value; + + + $response = static::$apiInstance->listExports($this->status_listExports_test_value(), $this->cursor_listExports_test_value()); + $this->assertInstanceOf('\FreeClimb\Api\Model\ExportList', $response); + } + /** * Test case for listIncomingNumbers * @@ -1822,7 +1956,7 @@ public function testGetNextPageListCallRecordings() public function testGetNextPageListCalls() { - $response = static::$apiInstance->listCalls($this->active_listCalls_test_value(), $this->to_listCalls_test_value(), $this->from_listCalls_test_value(), $this->status_listCalls_test_value(), $this->start_time_listCalls_test_value(), $this->end_time_listCalls_test_value(), $this->parent_call_id_listCalls_test_value(), $this->application_id_listCalls_test_value()); + $response = static::$apiInstance->listCalls($this->active_listCalls_test_value(), $this->to_listCalls_test_value(), $this->from_listCalls_test_value(), $this->status_listCalls_test_value(), $this->start_time_listCalls_test_value(), $this->end_time_listCalls_test_value(), $this->parent_call_id_listCalls_test_value(), $this->application_id_listCalls_test_value(), $this->risk_score_min_listCalls_test_value(), $this->risk_score_max_listCalls_test_value()); $response['next_page_uri'] = '/Accounts/{accountId}/Calls?cursor=1'; $nextPageResponse = static::$apiInstance->getNextPage($response); $this->assertInstanceOf('\FreeClimb\Api\Model\CallList', $nextPageResponse); @@ -1853,6 +1987,19 @@ public function testGetNextPageListConferences() $nextPageResponse = static::$apiInstance->getNextPage($response); $this->assertInstanceOf('\FreeClimb\Api\Model\ConferenceList', $nextPageResponse); } + /** + * Test case for getNextPage of listExports + * + * Get next page of resource. + */ + + public function testGetNextPageListExports() + { + $response = static::$apiInstance->listExports($this->status_listExports_test_value(), $this->cursor_listExports_test_value()); + $response['next_page_uri'] = '/Accounts/{accountId}/Exports?cursor=1'; + $nextPageResponse = static::$apiInstance->getNextPage($response); + $this->assertInstanceOf('\FreeClimb\Api\Model\ExportList', $nextPageResponse); + } /** * Test case for getNextPage of listIncomingNumbers * @@ -1916,7 +2063,7 @@ public function testGetNextPageListSmsMessages() $response = static::$apiInstance->listSmsMessages($this->to_listSmsMessages_test_value(), $this->from_listSmsMessages_test_value(), $this->begin_time_listSmsMessages_test_value(), $this->end_time_listSmsMessages_test_value(), $this->direction_listSmsMessages_test_value(), $this->campaign_id_listSmsMessages_test_value(), $this->brand_id_listSmsMessages_test_value(), $this->is10_dlc_listSmsMessages_test_value()); $response['next_page_uri'] = '/Accounts/{accountId}/Messages?cursor=1'; $nextPageResponse = static::$apiInstance->getNextPage($response); - $this->assertInstanceOf('\FreeClimb\Api\Model\MessagesList', $nextPageResponse); + $this->assertInstanceOf('\FreeClimb\Api\Model\MessagesList',$nextPageResponse); } } diff --git a/test/Model/CallResultTest.php b/test/Model/CallResultTest.php index 68a14f9..356c048 100644 --- a/test/Model/CallResultTest.php +++ b/test/Model/CallResultTest.php @@ -156,24 +156,24 @@ public function testPropertyPhoneNumberId() $this->assertIsString($this->CallResult->getPhoneNumberId()); } - public function testPropertyCallStatus() - { - $this->CallResult->setcallStatus(\FreeClimb\Api\Model\CallStatus::QUEUED); - $this->assertEquals(\FreeClimb\Api\Model\CallStatus::QUEUED, $this->CallResult->getcallStatus()); - $this->CallResult->setcallStatus(\FreeClimb\Api\Model\CallStatus::RINGING); - $this->assertEquals(\FreeClimb\Api\Model\CallStatus::RINGING, $this->CallResult->getcallStatus()); - $this->CallResult->setcallStatus(\FreeClimb\Api\Model\CallStatus::IN_PROGRESS); - $this->assertEquals(\FreeClimb\Api\Model\CallStatus::IN_PROGRESS, $this->CallResult->getcallStatus()); - $this->CallResult->setcallStatus(\FreeClimb\Api\Model\CallStatus::CANCELED); - $this->assertEquals(\FreeClimb\Api\Model\CallStatus::CANCELED, $this->CallResult->getcallStatus()); - $this->CallResult->setcallStatus(\FreeClimb\Api\Model\CallStatus::COMPLETED); - $this->assertEquals(\FreeClimb\Api\Model\CallStatus::COMPLETED, $this->CallResult->getcallStatus()); - $this->CallResult->setcallStatus(\FreeClimb\Api\Model\CallStatus::FAILED); - $this->assertEquals(\FreeClimb\Api\Model\CallStatus::FAILED, $this->CallResult->getcallStatus()); - $this->CallResult->setcallStatus(\FreeClimb\Api\Model\CallStatus::BUSY); - $this->assertEquals(\FreeClimb\Api\Model\CallStatus::BUSY, $this->CallResult->getcallStatus()); - $this->CallResult->setcallStatus(\FreeClimb\Api\Model\CallStatus::NO_ANSWER); - $this->assertEquals(\FreeClimb\Api\Model\CallStatus::NO_ANSWER, $this->CallResult->getcallStatus()); + public function testPropertyStatus() + { + $this->CallResult->setstatus(\FreeClimb\Api\Model\CallStatus::QUEUED); + $this->assertEquals(\FreeClimb\Api\Model\CallStatus::QUEUED, $this->CallResult->getstatus()); + $this->CallResult->setstatus(\FreeClimb\Api\Model\CallStatus::RINGING); + $this->assertEquals(\FreeClimb\Api\Model\CallStatus::RINGING, $this->CallResult->getstatus()); + $this->CallResult->setstatus(\FreeClimb\Api\Model\CallStatus::IN_PROGRESS); + $this->assertEquals(\FreeClimb\Api\Model\CallStatus::IN_PROGRESS, $this->CallResult->getstatus()); + $this->CallResult->setstatus(\FreeClimb\Api\Model\CallStatus::CANCELED); + $this->assertEquals(\FreeClimb\Api\Model\CallStatus::CANCELED, $this->CallResult->getstatus()); + $this->CallResult->setstatus(\FreeClimb\Api\Model\CallStatus::COMPLETED); + $this->assertEquals(\FreeClimb\Api\Model\CallStatus::COMPLETED, $this->CallResult->getstatus()); + $this->CallResult->setstatus(\FreeClimb\Api\Model\CallStatus::FAILED); + $this->assertEquals(\FreeClimb\Api\Model\CallStatus::FAILED, $this->CallResult->getstatus()); + $this->CallResult->setstatus(\FreeClimb\Api\Model\CallStatus::BUSY); + $this->assertEquals(\FreeClimb\Api\Model\CallStatus::BUSY, $this->CallResult->getstatus()); + $this->CallResult->setstatus(\FreeClimb\Api\Model\CallStatus::NO_ANSWER); + $this->assertEquals(\FreeClimb\Api\Model\CallStatus::NO_ANSWER, $this->CallResult->getstatus()); } public function testPropertyStartTime() diff --git a/test/Model/CreateConferenceTest.php b/test/Model/CreateConferenceTest.php index 5ed56cd..10004be 100644 --- a/test/Model/CreateConferenceTest.php +++ b/test/Model/CreateConferenceTest.php @@ -84,9 +84,10 @@ public function testPropertyActionUrl() public function testPropertyAlias() { - $this->CreateConference->setalias(false); - $this->assertFalse($this->CreateConference->getalias()); - $this->assertIsBool($this->CreateConference->getalias()); + + $this->CreateConference->setAlias('TS'); + $this->assertEquals('TS', $this->CreateConference->getAlias()); + $this->assertIsString($this->CreateConference->getAlias()); } public function testPropertyPlayBeep() @@ -123,4 +124,12 @@ public function testPropertyWaitUrl() $this->assertEquals('TS', $this->CreateConference->getWaitUrl()); $this->assertIsString($this->CreateConference->getWaitUrl()); } + + public function testPropertyParentCallId() + { + + $this->CreateConference->setParentCallId('TS'); + $this->assertEquals('TS', $this->CreateConference->getParentCallId()); + $this->assertIsString($this->CreateConference->getParentCallId()); + } } diff --git a/test/Model/ExportListTest.php b/test/Model/ExportListTest.php new file mode 100644 index 0000000..0b80c91 --- /dev/null +++ b/test/Model/ExportListTest.php @@ -0,0 +1,151 @@ +ExportList = new \FreeClimb\Api\Model\ExportList(); + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + + public function testPropertyTotal() + { + + + $this->ExportList->settotal(1); + $this->assertEquals(1, $this->ExportList->gettotal()); + $this->assertIsNumeric($this->ExportList->gettotal()); + + } + + public function testPropertyStart() + { + + + $this->ExportList->setstart(1); + $this->assertEquals(1, $this->ExportList->getstart()); + $this->assertIsNumeric($this->ExportList->getstart()); + + } + + public function testPropertyEnd() + { + + + $this->ExportList->setend(1); + $this->assertEquals(1, $this->ExportList->getend()); + $this->assertIsNumeric($this->ExportList->getend()); + + } + + public function testPropertyPage() + { + + + $this->ExportList->setpage(1); + $this->assertEquals(1, $this->ExportList->getpage()); + $this->assertIsNumeric($this->ExportList->getpage()); + + } + + public function testPropertyNumPages() + { + + + $this->ExportList->setnumPages(1); + $this->assertEquals(1, $this->ExportList->getnumPages()); + $this->assertIsNumeric($this->ExportList->getnumPages()); + + } + + public function testPropertyPageSize() + { + + + $this->ExportList->setpageSize(1); + $this->assertEquals(1, $this->ExportList->getpageSize()); + $this->assertIsNumeric($this->ExportList->getpageSize()); + + } + + public function testPropertyNextPageUri() + { + + $this->ExportList->setNextPageUri('TS'); + $this->assertEquals('TS', $this->ExportList->getNextPageUri()); + $this->assertIsString($this->ExportList->getNextPageUri()); + } + + public function testPropertyExports() + { + $this->ExportList->setexports([]); + $this->assertEquals([], $this->ExportList->getexports()); + $this->assertIsArray($this->ExportList->getexports()); + } +} diff --git a/test/Model/ExportOutputTypeTest.php b/test/Model/ExportOutputTypeTest.php new file mode 100644 index 0000000..701b1c9 --- /dev/null +++ b/test/Model/ExportOutputTypeTest.php @@ -0,0 +1,76 @@ +ExportOutputType = new \FreeClimb\Api\Model\ExportOutputType(); + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + +} diff --git a/test/Model/ExportRequestOutputTest.php b/test/Model/ExportRequestOutputTest.php new file mode 100644 index 0000000..c361c3d --- /dev/null +++ b/test/Model/ExportRequestOutputTest.php @@ -0,0 +1,82 @@ +ExportRequestOutput = new \FreeClimb\Api\Model\ExportRequestOutput(); + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + + public function testPropertyType() + { + $this->ExportRequestOutput->settype(\FreeClimb\Api\Model\ExportOutputType::CSV); + $this->assertEquals(\FreeClimb\Api\Model\ExportOutputType::CSV, $this->ExportRequestOutput->gettype()); + } +} diff --git a/test/Model/ExportRequestTest.php b/test/Model/ExportRequestTest.php new file mode 100644 index 0000000..88b2299 --- /dev/null +++ b/test/Model/ExportRequestTest.php @@ -0,0 +1,103 @@ +ExportRequest = new \FreeClimb\Api\Model\ExportRequest(); + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + + public function testPropertyResourceType() + { + $this->ExportRequest->setresourceType(\FreeClimb\Api\Model\ExportResourceType::MESSAGES); + $this->assertEquals(\FreeClimb\Api\Model\ExportResourceType::MESSAGES, $this->ExportRequest->getresourceType()); + $this->ExportRequest->setresourceType(\FreeClimb\Api\Model\ExportResourceType::CALLS); + $this->assertEquals(\FreeClimb\Api\Model\ExportResourceType::CALLS, $this->ExportRequest->getresourceType()); + } + + public function testPropertyFormat() + { + $this->ExportRequest->setformat([]); + $this->assertEquals([], $this->ExportRequest->getformat()); + $this->assertIsArray($this->ExportRequest->getformat()); + } + + public function testPropertyOutput() + { + $this->ExportRequest->setoutput(new \stdClass()); + $this->assertInstanceOf(\stdClass::class, $this->ExportRequest->getoutput()); + } + + public function testPropertyQuery() + { + $this->ExportRequest->setquery(new \stdClass()); + $this->assertInstanceOf(\stdClass::class, $this->ExportRequest->getquery()); + } +} diff --git a/test/Model/ExportResourceTypeTest.php b/test/Model/ExportResourceTypeTest.php new file mode 100644 index 0000000..21b99d2 --- /dev/null +++ b/test/Model/ExportResourceTypeTest.php @@ -0,0 +1,76 @@ +ExportResourceType = new \FreeClimb\Api\Model\ExportResourceType(); + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + +} diff --git a/test/Model/ExportResultOutputTest.php b/test/Model/ExportResultOutputTest.php new file mode 100644 index 0000000..7a8688a --- /dev/null +++ b/test/Model/ExportResultOutputTest.php @@ -0,0 +1,82 @@ +ExportResultOutput = new \FreeClimb\Api\Model\ExportResultOutput(); + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + + public function testPropertyType() + { + $this->ExportResultOutput->settype(\FreeClimb\Api\Model\ExportOutputType::CSV); + $this->assertEquals(\FreeClimb\Api\Model\ExportOutputType::CSV, $this->ExportResultOutput->gettype()); + } +} diff --git a/test/Model/ExportResultTest.php b/test/Model/ExportResultTest.php new file mode 100644 index 0000000..e4bc022 --- /dev/null +++ b/test/Model/ExportResultTest.php @@ -0,0 +1,179 @@ +ExportResult = new \FreeClimb\Api\Model\ExportResult(); + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + + + public function testPropertyAccountId() + { + + $this->ExportResult->setAccountId('TS'); + $this->assertEquals('TS', $this->ExportResult->getAccountId()); + $this->assertIsString($this->ExportResult->getAccountId()); + } + + public function testPropertyUri() + { + + $this->ExportResult->setUri('TS'); + $this->assertEquals('TS', $this->ExportResult->getUri()); + $this->assertIsString($this->ExportResult->getUri()); + } + + public function testPropertyDateCreated() + { + + $this->ExportResult->setDateCreated('TS'); + $this->assertEquals('TS', $this->ExportResult->getDateCreated()); + $this->assertIsString($this->ExportResult->getDateCreated()); + } + + public function testPropertyDateUpdated() + { + + $this->ExportResult->setDateUpdated('TS'); + $this->assertEquals('TS', $this->ExportResult->getDateUpdated()); + $this->assertIsString($this->ExportResult->getDateUpdated()); + } + + public function testPropertyRevision() + { + + $this->ExportResult->setrevision(0); + $this->assertEquals(0, $this->ExportResult->getrevision()); + $this->assertIsNumeric($this->ExportResult->getrevision()); + + + } + + public function testPropertyExportId() + { + + $this->ExportResult->setExportId('TS'); + $this->assertEquals('TS', $this->ExportResult->getExportId()); + $this->assertIsString($this->ExportResult->getExportId()); + } + + public function testPropertyStatus() + { + $this->ExportResult->setstatus(\FreeClimb\Api\Model\ExportStatus::INTAKING); + $this->assertEquals(\FreeClimb\Api\Model\ExportStatus::INTAKING, $this->ExportResult->getstatus()); + $this->ExportResult->setstatus(\FreeClimb\Api\Model\ExportStatus::QUEUED); + $this->assertEquals(\FreeClimb\Api\Model\ExportStatus::QUEUED, $this->ExportResult->getstatus()); + $this->ExportResult->setstatus(\FreeClimb\Api\Model\ExportStatus::IN_PROGRESS); + $this->assertEquals(\FreeClimb\Api\Model\ExportStatus::IN_PROGRESS, $this->ExportResult->getstatus()); + $this->ExportResult->setstatus(\FreeClimb\Api\Model\ExportStatus::COMPLETED); + $this->assertEquals(\FreeClimb\Api\Model\ExportStatus::COMPLETED, $this->ExportResult->getstatus()); + $this->ExportResult->setstatus(\FreeClimb\Api\Model\ExportStatus::FAILED); + $this->assertEquals(\FreeClimb\Api\Model\ExportStatus::FAILED, $this->ExportResult->getstatus()); + $this->ExportResult->setstatus(\FreeClimb\Api\Model\ExportStatus::DELETED); + $this->assertEquals(\FreeClimb\Api\Model\ExportStatus::DELETED, $this->ExportResult->getstatus()); + } + + public function testPropertySize() + { + + + $this->ExportResult->setsize(1); + $this->assertEquals(1, $this->ExportResult->getsize()); + $this->assertIsNumeric($this->ExportResult->getsize()); + + } + + public function testPropertyResourceType() + { + $this->ExportResult->setresourceType(\FreeClimb\Api\Model\ExportResourceType::MESSAGES); + $this->assertEquals(\FreeClimb\Api\Model\ExportResourceType::MESSAGES, $this->ExportResult->getresourceType()); + $this->ExportResult->setresourceType(\FreeClimb\Api\Model\ExportResourceType::CALLS); + $this->assertEquals(\FreeClimb\Api\Model\ExportResourceType::CALLS, $this->ExportResult->getresourceType()); + } + + public function testPropertyQuery() + { + $this->ExportResult->setquery(new \stdClass()); + $this->assertInstanceOf(\stdClass::class, $this->ExportResult->getquery()); + } + + public function testPropertyFormat() + { + $this->ExportResult->setformat([]); + $this->assertEquals([], $this->ExportResult->getformat()); + $this->assertIsArray($this->ExportResult->getformat()); + } + + public function testPropertyOutput() + { + $this->ExportResult->setoutput(new \stdClass()); + $this->assertInstanceOf(\stdClass::class, $this->ExportResult->getoutput()); + } +} diff --git a/test/Model/ExportStatusTest.php b/test/Model/ExportStatusTest.php new file mode 100644 index 0000000..811d3d7 --- /dev/null +++ b/test/Model/ExportStatusTest.php @@ -0,0 +1,76 @@ +ExportStatus = new \FreeClimb\Api\Model\ExportStatus(); + } + + /** + * Clean up after running each test case + */ + public function tearDown(): void + { + } + + /** + * Clean up after running all test cases + */ + public static function tearDownAfterClass(): void + { + } + +} From 51326c1909c5cb8ebdd6f4018e9cdc5f423345a2 Mon Sep 17 00:00:00 2001 From: Navneet Garg Date: Tue, 23 Sep 2025 22:06:47 -0400 Subject: [PATCH 2/2] Upgrade stoplight prism cli --- .gitignore | 2 ++ yarn.lock | 80 ++++++++++++++++++++++++++---------------------------- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/.gitignore b/.gitignore index 9f1681c..9d72b91 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ composer.phar # PHPUnit cache .phpunit.result.cache + +node_modules \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 6aeaf0f..c52c0a7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -145,9 +145,9 @@ tslib "^2.3.1" "@stoplight/prism-http-server@^5.6.0": - version "5.12.0" - resolved "https://registry.yarnpkg.com/@stoplight/prism-http-server/-/prism-http-server-5.12.0.tgz#c1fdc86bcb7d42d3420b9b84f05f9ae8977bc953" - integrity sha512-rnACUB950kvgDGXk1MsVk1v8nAZNCRaxdrTlACoJpQA0qzF8eBszYikoDsVmx2BbGsOrCC/49+nQc+HyFFpMdQ== + version "5.12.2" + resolved "https://registry.yarnpkg.com/@stoplight/prism-http-server/-/prism-http-server-5.12.2.tgz#d8de94f6b3506b464a5c89ff049b1e0fc9822ef9" + integrity sha512-h7MpOuv/WPvf4MhQmXw3CygAZp64Ts0SOM4BdoafcgAOJZyvRAOjUNJeelGJsHYdPK0aB9NZsqsaKBtNfkYj+A== dependencies: "@stoplight/prism-core" "^5.8.0" "@stoplight/prism-http" "^5.12.0" @@ -252,11 +252,11 @@ integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== "@types/node@*": - version "22.10.5" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.5.tgz#95af89a3fb74a2bb41ef9927f206e6472026e48b" - integrity sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ== + version "24.5.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-24.5.2.tgz#52ceb83f50fe0fcfdfbd2a9fab6db2e9e7ef6446" + integrity sha512-FYxk1I7wPv3K2XBaoyH2cTnocQEu8AOZ60hPbsyukMPLv5/5qr7V1i8PLHdl6Zf87I+xZXFvPCXYjiTFq+YSDQ== dependencies: - undici-types "~6.20.0" + undici-types "~7.12.0" "@types/swagger-schema-official@~2.0.22": version "2.0.25" @@ -264,9 +264,9 @@ integrity sha512-T92Xav+Gf/Ik1uPW581nA+JftmjWPgskw/WBf4TJzxRG/SJ+DfNnNE+WuZ4mrXuzflQMqMkm1LSYjzYW7MB1Cg== "@types/type-is@^1.6.3": - version "1.6.6" - resolved "https://registry.yarnpkg.com/@types/type-is/-/type-is-1.6.6.tgz#0adeafa0d6879f0ce17c81228d487270e8b80d7d" - integrity sha512-fs1KHv/f9OvmTMsu4sBNaUu32oyda9Y9uK25naJG8gayxNrfqGIjPQsbLIYyfe7xFkppnPlJB+BuTldOaX9bXw== + version "1.6.7" + resolved "https://registry.yarnpkg.com/@types/type-is/-/type-is-1.6.7.tgz#4d7934d2c795749800e767cd9af7ffbd4f16cf1c" + integrity sha512-gEsh7n8824nusZ2Sidh6POxNsIdTSvIAl5gXbeFj+TUaD1CO2r4i7MQYNMfEQkChU42s2bVWAda6x6BzIhtFbQ== dependencies: "@types/node" "*" @@ -475,9 +475,9 @@ cross-fetch@^3.1.5: node-fetch "^2.7.0" debug@4: - version "4.4.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a" - integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA== + version "4.4.3" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a" + integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== dependencies: ms "^2.1.3" @@ -487,9 +487,9 @@ emoji-regex@^8.0.0: integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + version "1.3.4" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.4.tgz#b3a8d8bb6f92eecc1629e3e27d3c8607a8a32414" + integrity sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ== dependencies: is-arrayish "^0.2.1" @@ -524,11 +524,18 @@ fast-safe-stringify@^2.0.8: integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== fast-uri@^3.0.1: - version "3.0.5" - resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.5.tgz#19f5f9691d0dab9b85861a7bb5d98fca961da9cd" - integrity sha512-5JnBCWpFlMo0a3ciDy/JckMzzv1U9coZrIhedq+HXxxUfDTAiS0LA8OKVao4G9BxmCVck/jtA5r3KAtRWEyD8Q== + version "3.1.0" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.1.0.tgz#66eecff6c764c0df9b762e62ca7edcfb53b4edfa" + integrity sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA== -fast-xml-parser@^4.2.0, fast-xml-parser@^4.5.0: +fast-xml-parser@^4.2.0: + version "4.5.3" + resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.5.3.tgz#c54d6b35aa0f23dc1ea60b6c884340c006dc6efb" + integrity sha512-RKihhV+SHsIUGXObeVy9AXiBbFwkVk7Syp8XgwN5U3JV416+Gwp/GO9i0JYKmikykgz/UHRrrV4ROuZEo/T0ig== + dependencies: + strnum "^1.1.1" + +fast-xml-parser@^4.5.0: version "4.5.1" resolved "https://registry.yarnpkg.com/fast-xml-parser/-/fast-xml-parser-4.5.1.tgz#a7e665ff79b7919100a5202f23984b6150f9b31e" integrity sha512-y655CeyUQ+jj7KBbYMc4FG01V8ZQqjN+gDYGJ50RtfsUB8iG9AmwmwoAgeKLJdmueKKMrH1RJ7yXHTSoczdv5w== @@ -587,9 +594,9 @@ format-util@^1.0.3: integrity sha512-varLbTj0e0yVyRpqQhuWV+8hlePAgaoFRhNFj50BNjEIrw1/DphHSObtqwskVCPWNgzwPoQrZAbfa/SBiicNeg== fp-ts@^2.11.5: - version "2.16.9" - resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-2.16.9.tgz#99628fc5e0bb3b432c4a16d8f4455247380bae8a" - integrity sha512-+I2+FnVB+tVaxcYyQkHUq7ZdKScaBlX53A41mxQtpIccsfyv8PzdzP7fzp2AY832T4aoK6UZ5WRX/ebGd8uZuQ== + version "2.16.11" + resolved "https://registry.yarnpkg.com/fp-ts/-/fp-ts-2.16.11.tgz#831a10514bf4e22adf12065732fc5a20c85d9623" + integrity sha512-LaI+KaX2NFkfn1ZGHoKCmcfv7yrZsC3b8NtWsTVQeHkq4F27vI5igUuO53sxqDEa2gNQMHFPmpojDw/1zmUK7w== fsevents@~2.3.2: version "2.3.3" @@ -783,16 +790,7 @@ jsonc-parser@~2.2.1: resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-2.2.1.tgz#db73cd59d78cce28723199466b2a03d1be1df2bc" integrity sha512-o6/yDBYccGvTz1+QFevz6l6OBZ2+fMVu2JZ9CIhzsYRX4mjaK5IyX9eldUdCmga16zlgQxyrj5pt9kzuj2C02w== -jsonpath-plus@^10.1.0: - version "10.2.0" - resolved "https://registry.yarnpkg.com/jsonpath-plus/-/jsonpath-plus-10.2.0.tgz#84d680544d9868579cc7c8f59bbe153a5aad54c4" - integrity sha512-T9V+8iNYKFL2n2rF+w02LBOT2JjDnTjioaNFrxRy0Bv1y/hNsqR/EBK7Ojy2ythRHwmz2cRIls+9JitQGZC/sw== - dependencies: - "@jsep-plugin/assignment" "^1.3.0" - "@jsep-plugin/regex" "^1.0.4" - jsep "^1.4.0" - -jsonpath-plus@^10.3.0: +jsonpath-plus@^10.1.0, jsonpath-plus@^10.3.0: version "10.3.0" resolved "https://registry.yarnpkg.com/jsonpath-plus/-/jsonpath-plus-10.3.0.tgz#59e22e4fa2298c68dfcd70659bb47f0cad525238" integrity sha512-8TNmfeTCk2Le33A3vRRwtuworG/L5RrgMvdjhKZxvyShO+mBu2fP50OWUjRLNtvw344DdDarFh9buFAZs5ujeA== @@ -1160,10 +1158,10 @@ strip-bom@^3.0.0: resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== -strnum@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db" - integrity sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA== +strnum@^1.0.5, strnum@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.1.2.tgz#57bca4fbaa6f271081715dbc9ed7cee5493e28e4" + integrity sha512-vrN+B7DBIoTTZjnPNewwhx6cBA/H+IS7rfW68n7XxC1y7uoiGQBxaKzqucGUgavX15dJgiGztLJ8vxuEzwqBdA== supports-color@^5.3.0: version "5.5.0" @@ -1204,10 +1202,10 @@ type-is@^1.6.18: media-typer "0.3.0" mime-types "~2.1.24" -undici-types@~6.20.0: - version "6.20.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433" - integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg== +undici-types@~7.12.0: + version "7.12.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.12.0.tgz#15c5c7475c2a3ba30659529f5cdb4674b622fafb" + integrity sha512-goOacqME2GYyOZZfb5Lgtu+1IDmAlAEu5xnD3+xTzS10hT0vzpf0SPjkXwAw9Jm+4n/mQGDP3LO8CPbYROeBfQ== uri-template-lite@^22.9.0: version "22.9.0"