diff --git a/.gitignore b/.gitignore index b2ecebc..a124036 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,6 @@ # Dependencies /vendor/ -# Composer -composer.lock - # IDE files .idea/ .vscode/ @@ -34,4 +31,4 @@ logs/ # src/Models/ # src/Requests/ # src/Generated/ -# composer-generated.json \ No newline at end of file +# composer-generated.json diff --git a/README.md b/README.md index 8a05eab..0bb5217 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,9 @@ echo "Duration: " . $response->duration; ## Models +> **Note:** When constructing models directly, always use **named arguments** (e.g. `new Message(text: 'hello')`). +> Positional argument usage is not supported and may break across SDK updates as parameter order is not guaranteed. + ### Automatic JSON Parsing Generated models automatically handle JSON parsing and serialization: diff --git a/composer-generated.json b/composer-generated.json index 7af4010..0c06ccd 100644 --- a/composer-generated.json +++ b/composer-generated.json @@ -7,7 +7,7 @@ "php": "^8.1", "ext-json": "*", "ext-curl": "*", - "firebase/php-jwt": "^6.0", + "firebase/php-jwt": "^7.0", "guzzlehttp/guzzle": "^7.0", "vlucas/phpdotenv": "^5.0" }, diff --git a/composer.json b/composer.json index c560c1b..0d3ca69 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "php": "^8.1", "ext-curl": "*", "ext-json": "*", - "firebase/php-jwt": "^6.0", + "firebase/php-jwt": "^7.0", "guzzlehttp/guzzle": "^7.0", "vlucas/phpdotenv": "^5.0" }, diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..b0ba853 --- /dev/null +++ b/composer.lock @@ -0,0 +1,2957 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "8365a203851af87de835f075e10b5a9e", + "packages": [ + { + "name": "firebase/php-jwt", + "version": "v7.0.2", + "source": { + "type": "git", + "url": "https://github.com/firebase/php-jwt.git", + "reference": "5645b43af647b6947daac1d0f659dd1fbe8d3b65" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/firebase/php-jwt/zipball/5645b43af647b6947daac1d0f659dd1fbe8d3b65", + "reference": "5645b43af647b6947daac1d0f659dd1fbe8d3b65", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.4", + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^9.5", + "psr/cache": "^2.0||^3.0", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.0" + }, + "suggest": { + "ext-sodium": "Support EdDSA (Ed25519) signatures", + "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" + }, + "type": "library", + "autoload": { + "psr-4": { + "Firebase\\JWT\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Neuman Vong", + "email": "neuman+pear@twilio.com", + "role": "Developer" + }, + { + "name": "Anant Narayanan", + "email": "anant@php.net", + "role": "Developer" + } + ], + "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", + "homepage": "https://github.com/firebase/php-jwt", + "keywords": [ + "jwt", + "php" + ], + "support": { + "issues": "https://github.com/firebase/php-jwt/issues", + "source": "https://github.com/firebase/php-jwt/tree/v7.0.2" + }, + "time": "2025-12-16T22:17:28+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.4", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/e01f4a821471308ba86aa202fed6698b6b695e3b", + "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.5" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.41 || ^9.6.22 || ^10.5.45 || ^11.5.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.4" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:43:20+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.10.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "shasum": "" + }, + "require": { + "ext-json": "*", + "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" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-curl": "*", + "guzzle/client-integration-tests": "3.0.2", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.39 || ^9.6.20", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.10.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2025-08-23T22:36:01+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "481557b130ef3790cf82b713667b43030dc9c957" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957", + "reference": "481557b130ef3790cf82b713667b43030dc9c957", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/2.3.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2025-08-22T14:34:08+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.8.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "21dc724a0583619cd1652f673303492272778051" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/21dc724a0583619cd1652f673303492272778051", + "reference": "21dc724a0583619cd1652f673303492272778051", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "http-interop/http-factory-tests": "0.9.0", + "phpunit/phpunit": "^8.5.44 || ^9.6.25" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.8.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2025-08-23T21:21:41+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.5", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "75365b91986c2405cf5e1e012c5595cd487a98be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/75365b91986c2405cf5e1e012c5595cd487a98be", + "reference": "75365b91986c2405cf5e1e012c5595cd487a98be", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25 || ^10.5.53 || ^11.5.34" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.9.5" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:41:33+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.6.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62", + "reference": "63afe740e99a13ba87ec199bb07bbdee937a5b62", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.6-dev" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.6.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-25T14:21:43+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "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" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "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-23T08:48:59+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608", + "reference": "0cc9dd0f17f61d8131e7df6b84bd344899fe2608", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "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": "2025-01-02T08:10:11+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v5.6.3", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "955e7815d677a3eaa7075231212f2110983adecc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/955e7815d677a3eaa7075231212f2110983adecc", + "reference": "955e7815d677a3eaa7075231212f2110983adecc", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "graham-campbell/result-type": "^1.1.4", + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.5", + "symfony/polyfill-ctype": "^1.26", + "symfony/polyfill-mbstring": "^1.26", + "symfony/polyfill-php80": "^1.26" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-filter": "*", + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator." + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "5.6-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:49:13+00:00" + } + ], + "packages-dev": [ + { + "name": "myclabs/deep-copy", + "version": "1.13.4", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3 <3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2025-08-01T08:46:24+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v5.7.0", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82", + "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-json": "*", + "ext-tokenizer": "*", + "php": ">=7.4" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v5.7.0" + }, + "time": "2025-12-06T11:56:16+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "54750ef60c58e43759730615a392c31c80e23176" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "phpstan/phpstan", + "version": "1.12.32", + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/2770dcdf5078d0b0d53f94317e06affe88419aa8", + "reference": "2770dcdf5078d0b0d53f94317e06affe88419aa8", + "shasum": "" + }, + "require": { + "php": "^7.2|^8.0" + }, + "conflict": { + "phpstan/phpstan-shim": "*" + }, + "bin": [ + "phpstan", + "phpstan.phar" + ], + "type": "library", + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPStan - PHP Static Analysis Tool", + "keywords": [ + "dev", + "static analysis" + ], + "support": { + "docs": "https://phpstan.org/user-guide/getting-started", + "forum": "https://github.com/phpstan/phpstan/discussions", + "issues": "https://github.com/phpstan/phpstan/issues", + "security": "https://github.com/phpstan/phpstan/security/policy", + "source": "https://github.com/phpstan/phpstan-src" + }, + "funding": [ + { + "url": "https://github.com/ondrejmirtes", + "type": "github" + }, + { + "url": "https://github.com/phpstan", + "type": "github" + } + ], + "time": "2025-09-30T10:16:31+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "10.1.16", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "7e308268858ed6baedc8704a304727d20bc07c77" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7e308268858ed6baedc8704a304727d20bc07c77", + "reference": "7e308268858ed6baedc8704a304727d20bc07c77", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.19.1 || ^5.1.0", + "php": ">=8.1", + "phpunit/php-file-iterator": "^4.1.0", + "phpunit/php-text-template": "^3.0.1", + "sebastian/code-unit-reverse-lookup": "^3.0.0", + "sebastian/complexity": "^3.2.0", + "sebastian/environment": "^6.1.0", + "sebastian/lines-of-code": "^2.0.2", + "sebastian/version": "^4.0.1", + "theseer/tokenizer": "^1.2.3" + }, + "require-dev": { + "phpunit/phpunit": "^10.1" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "10.1.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.16" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-08-22T04:31:57+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "4.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/a95037b6d9e608ba092da1b23931e537cadc3c3c", + "reference": "a95037b6d9e608ba092da1b23931e537cadc3c3c", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/4.1.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-08-31T06:24:48+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^10.0" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/4.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:56:09+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/0c7b06ff49e3d5072f057eb1fa59258bf287a748", + "reference": "0c7b06ff49e3d5072f057eb1fa59258bf287a748", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/3.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-08-31T14:07:24+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:57:52+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "10.5.63", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "33198268dad71e926626b618f3ec3966661e4d90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/33198268dad71e926626b618f3ec3966661e4d90", + "reference": "33198268dad71e926626b618f3ec3966661e4d90", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.13.4", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", + "php": ">=8.1", + "phpunit/php-code-coverage": "^10.1.16", + "phpunit/php-file-iterator": "^4.1.0", + "phpunit/php-invoker": "^4.0.0", + "phpunit/php-text-template": "^3.0.1", + "phpunit/php-timer": "^6.0.0", + "sebastian/cli-parser": "^2.0.1", + "sebastian/code-unit": "^2.0.0", + "sebastian/comparator": "^5.0.5", + "sebastian/diff": "^5.1.1", + "sebastian/environment": "^6.1.0", + "sebastian/exporter": "^5.1.4", + "sebastian/global-state": "^6.0.2", + "sebastian/object-enumerator": "^5.0.0", + "sebastian/recursion-context": "^5.0.1", + "sebastian/type": "^4.0.0", + "sebastian/version": "^4.0.1" + }, + "suggest": { + "ext-soap": "To be able to generate mocks based on WSDL files" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "10.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.63" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "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": "2026-01-27T05:48:37+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "c34583b87e7b7a8055bf6c450c2c77ce32a24084" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/c34583b87e7b7a8055bf6c450c2c77ce32a24084", + "reference": "c34583b87e7b7a8055bf6c450c2c77ce32a24084", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/2.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T07:12:49+00:00" + }, + { + "name": "sebastian/code-unit", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/a81fee9eef0b7a76af11d121767abc44c104e503", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/2.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:58:43+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/3.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:59:15+00:00" + }, + { + "name": "sebastian/comparator", + "version": "5.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "55dfef806eb7dfeb6e7a6935601fef866f8ca48d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55dfef806eb7dfeb6e7a6935601fef866f8ca48d", + "reference": "55dfef806eb7dfeb6e7a6935601fef866f8ca48d", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/diff": "^5.0", + "sebastian/exporter": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.5" + }, + "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": "2026-01-24T09:25:16+00:00" + }, + { + "name": "sebastian/complexity", + "version": "3.2.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "68ff824baeae169ec9f2137158ee529584553799" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/68ff824baeae169ec9f2137158ee529584553799", + "reference": "68ff824baeae169ec9f2137158ee529584553799", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.18 || ^5.0", + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-12-21T08:37:17+00:00" + }, + { + "name": "sebastian/diff", + "version": "5.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/c41e007b4b62af48218231d6c2275e4c9b975b2e", + "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0", + "symfony/process": "^6.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/5.1.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T07:15:17+00:00" + }, + { + "name": "sebastian/environment", + "version": "6.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "8074dbcd93529b357029f5cc5058fd3e43666984" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/8074dbcd93529b357029f5cc5058fd3e43666984", + "reference": "8074dbcd93529b357029f5cc5058fd3e43666984", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "https://github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/6.1.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-23T08:47:14+00:00" + }, + { + "name": "sebastian/exporter", + "version": "5.1.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "0735b90f4da94969541dac1da743446e276defa6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/0735b90f4da94969541dac1da743446e276defa6", + "reference": "0735b90f4da94969541dac1da743446e276defa6", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/recursion-context": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/5.1.4" + }, + "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": "2025-09-24T06:09:11+00:00" + }, + { + "name": "sebastian/global-state", + "version": "6.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "987bafff24ecc4c9ac418cab1145b96dd6e9cbd9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/987bafff24ecc4c9ac418cab1145b96dd6e9cbd9", + "reference": "987bafff24ecc4c9ac418cab1145b96dd6e9cbd9", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/6.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T07:19:19+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "856e7f6a75a84e339195d48c556f23be2ebf75d0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/856e7f6a75a84e339195d48c556f23be2ebf75d0", + "reference": "856e7f6a75a84e339195d48c556f23be2ebf75d0", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.18 || ^5.0", + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-12-21T08:38:20+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/202d0e344a580d7f7d04b3fafce6933e59dae906", + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:08:32+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/24ed13d98130f0e7122df55d06c5c4942a577957", + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/3.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:06:18+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "5.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "47e34210757a2f37a97dcd207d032e1b01e64c7a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/47e34210757a2f37a97dcd207d032e1b01e64c7a", + "reference": "47e34210757a2f37a97dcd207d032e1b01e64c7a", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.1" + }, + "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": "2025-08-10T07:50:56+00:00" + }, + { + "name": "sebastian/type", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/4.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:10:45+00:00" + }, + { + "name": "sebastian/version", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/4.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-07T11:34:05+00:00" + }, + { + "name": "squizlabs/php_codesniffer", + "version": "3.13.5", + "source": { + "type": "git", + "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", + "reference": "0ca86845ce43291e8f5692c7356fccf3bcf02bf4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0ca86845ce43291e8f5692c7356fccf3bcf02bf4", + "reference": "0ca86845ce43291e8f5692c7356fccf3bcf02bf4", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" + }, + "bin": [ + "bin/phpcbf", + "bin/phpcs" + ], + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "Former lead" + }, + { + "name": "Juliette Reinders Folmer", + "role": "Current lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer", + "keywords": [ + "phpcs", + "standards", + "static analysis" + ], + "support": { + "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues", + "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy", + "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer", + "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki" + }, + "funding": [ + { + "url": "https://github.com/PHPCSStandards", + "type": "github" + }, + { + "url": "https://github.com/jrfnl", + "type": "github" + }, + { + "url": "https://opencollective.com/php_codesniffer", + "type": "open_collective" + }, + { + "url": "https://thanks.dev/u/gh/phpcsstandards", + "type": "thanks_dev" + } + ], + "time": "2025-11-04T16:30:35+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.3.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "b7489ce515e168639d17feec34b8847c326b0b3c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b7489ce515e168639d17feec34b8847c326b0b3c", + "reference": "b7489ce515e168639d17feec34b8847c326b0b3c", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.3.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2025-11-17T20:03:58+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^8.1", + "ext-curl": "*", + "ext-json": "*" + }, + "platform-dev": {}, + "plugin-api-version": "2.9.0" +} diff --git a/generate.sh b/generate.sh index cb5992e..713d133 100755 --- a/generate.sh +++ b/generate.sh @@ -16,7 +16,7 @@ then exit 1; fi -set -ex +set -e # cd in API repo, generate new spec and then generate code from it ( cd $SOURCE_PATH ; make openapi ; go run ./cmd/chat-manager openapi generate-client --language php --spec ./releases/v2/serverside-api.yaml --output $DST_PATH ) diff --git a/src/Generated/CommonTrait.php b/src/Generated/CommonTrait.php index 7ace699..51316de 100644 --- a/src/Generated/CommonTrait.php +++ b/src/Generated/CommonTrait.php @@ -16,7 +16,6 @@ trait CommonTrait { /** * This Method returns the application settings - * * * @return StreamResponse * @throws StreamException @@ -30,7 +29,6 @@ public function getApp(): StreamResponse { } /** * This Method updates one or more application settings - * * * @param GeneratedModels\UpdateAppRequest $requestData * @return StreamResponse @@ -45,7 +43,6 @@ public function updateApp(GeneratedModels\UpdateAppRequest $requestData): Stream } /** * Returns all available block lists - * * * @param string $team * @return StreamResponse @@ -63,7 +60,6 @@ public function listBlockLists(string $team): StreamResponse { } /** * Creates a new application blocklist, once created the blocklist can be used by any channel type - * * * @param GeneratedModels\CreateBlockListRequest $requestData * @return StreamResponse @@ -78,7 +74,6 @@ public function createBlockList(GeneratedModels\CreateBlockListRequest $requestD } /** * Deletes previously created application blocklist - * * * @param string $name * @param string $team @@ -98,7 +93,6 @@ public function deleteBlockList(string $name, string $team): StreamResponse { } /** * Returns block list by given name - * * * @param string $name * @param string $team @@ -118,7 +112,6 @@ public function getBlockList(string $name, string $team): StreamResponse { } /** * Updates contents of the block list - * * * @param string $name * @param GeneratedModels\UpdateBlockListRequest $requestData @@ -135,7 +128,6 @@ public function updateBlockList(string $name, GeneratedModels\UpdateBlockListReq } /** * Sends a test message via push, this is a test endpoint to verify your push settings - * * * @param GeneratedModels\CheckPushRequest $requestData * @return StreamResponse @@ -150,7 +142,6 @@ public function checkPush(GeneratedModels\CheckPushRequest $requestData): Stream } /** * Validates Amazon SNS configuration - * * * @param GeneratedModels\CheckSNSRequest $requestData * @return StreamResponse @@ -165,7 +156,6 @@ public function checkSNS(GeneratedModels\CheckSNSRequest $requestData): StreamRe } /** * Validates Amazon SQS credentials - * * * @param GeneratedModels\CheckSQSRequest $requestData * @return StreamResponse @@ -180,7 +170,6 @@ public function checkSQS(GeneratedModels\CheckSQSRequest $requestData): StreamRe } /** * Deletes one device - * * * @param string $id * @param string $userID @@ -202,7 +191,6 @@ public function deleteDevice(string $id, string $userID): StreamResponse { } /** * Returns all available devices - * * * @param string $userID * @return StreamResponse @@ -220,7 +208,6 @@ public function listDevices(string $userID): StreamResponse { } /** * Adds a new device to a user, if the same device already exists the call will have no effect - * * * @param GeneratedModels\CreateDeviceRequest $requestData * @return StreamResponse @@ -235,7 +222,6 @@ public function createDevice(GeneratedModels\CreateDeviceRequest $requestData): } /** * Exports user profile, reactions and messages for list of given users - * * * @param GeneratedModels\ExportUsersRequest $requestData * @return StreamResponse @@ -250,7 +236,6 @@ public function exportUsers(GeneratedModels\ExportUsersRequest $requestData): St } /** * Lists external storage - * * * @return StreamResponse * @throws StreamException @@ -264,7 +249,6 @@ public function listExternalStorage(): StreamResponse { } /** * Creates new external storage - * * * @param GeneratedModels\CreateExternalStorageRequest $requestData * @return StreamResponse @@ -279,7 +263,6 @@ public function createExternalStorage(GeneratedModels\CreateExternalStorageReque } /** * Deletes external storage - * * * @param string $name * @return StreamResponse @@ -294,8 +277,6 @@ public function deleteExternalStorage(string $name): StreamResponse { return StreamResponse::fromJson($this->makeRequest('DELETE', $path, $queryParams, $requestData), GeneratedModels\DeleteExternalStorageResponse::class); } /** - * - * * * @param string $name * @param GeneratedModels\UpdateExternalStorageRequest $requestData @@ -311,8 +292,6 @@ public function updateExternalStorage(string $name, GeneratedModels\UpdateExtern return StreamResponse::fromJson($this->makeRequest('PUT', $path, $queryParams, $requestData), GeneratedModels\UpdateExternalStorageResponse::class); } /** - * - * * * @param string $name * @return StreamResponse @@ -327,8 +306,6 @@ public function checkExternalStorage(string $name): StreamResponse { return StreamResponse::fromJson($this->makeRequest('GET', $path, $queryParams, $requestData), GeneratedModels\CheckExternalStorageResponse::class); } /** - * - * * * @param GeneratedModels\CreateGuestRequest $requestData * @return StreamResponse @@ -343,7 +320,6 @@ public function createGuest(GeneratedModels\CreateGuestRequest $requestData): St } /** * Creates a new import URL - * * * @param GeneratedModels\CreateImportURLRequest $requestData * @return StreamResponse @@ -358,7 +334,6 @@ public function createImportURL(GeneratedModels\CreateImportURLRequest $requestD } /** * Gets an import - * * * @return StreamResponse * @throws StreamException @@ -372,7 +347,6 @@ public function listImports(): StreamResponse { } /** * Creates a new import - * * * @param GeneratedModels\CreateImportRequest $requestData * @return StreamResponse @@ -387,7 +361,6 @@ public function createImport(GeneratedModels\CreateImportRequest $requestData): } /** * Lists all import v2 tasks for the app - * * * @param int $state * @return StreamResponse @@ -405,7 +378,6 @@ public function listImportV2Tasks(int $state): StreamResponse { } /** * Creates a new import v2 task - * * * @param GeneratedModels\CreateImportV2TaskRequest $requestData * @return StreamResponse @@ -420,7 +392,6 @@ public function createImportV2Task(GeneratedModels\CreateImportV2TaskRequest $re } /** * Deletes an import v2 task. Can only delete tasks in queued state. - * * * @param string $id * @return StreamResponse @@ -436,7 +407,6 @@ public function deleteImportV2Task(string $id): StreamResponse { } /** * Gets a single import v2 task by ID - * * * @param string $id * @return StreamResponse @@ -452,7 +422,6 @@ public function getImportV2Task(string $id): StreamResponse { } /** * Gets an import - * * * @param string $id * @return StreamResponse @@ -468,7 +437,6 @@ public function getImport(string $id): StreamResponse { } /** * Get an OpenGraph attachment for a link - * * * @param string $url * @return StreamResponse @@ -486,7 +454,6 @@ public function getOG(string $url): StreamResponse { } /** * Lists all available permissions - * * * @return StreamResponse * @throws StreamException @@ -500,7 +467,6 @@ public function listPermissions(): StreamResponse { } /** * Gets custom permission - * * * @param string $id * @return StreamResponse @@ -516,7 +482,6 @@ public function getPermission(string $id): StreamResponse { } /** * Creates a new poll - * * * @param GeneratedModels\CreatePollRequest $requestData * @return StreamResponse @@ -531,13 +496,11 @@ public function createPoll(GeneratedModels\CreatePollRequest $requestData): Stre } /** * Updates a poll - * * Sends events: * - feeds.poll.closed * - feeds.poll.updated * - poll.closed * - poll.updated - * * * @param GeneratedModels\UpdatePollRequest $requestData * @return StreamResponse @@ -552,7 +515,6 @@ public function updatePoll(GeneratedModels\UpdatePollRequest $requestData): Stre } /** * Queries polls - * * * @param string $userID * @param GeneratedModels\QueryPollsRequest $requestData @@ -571,11 +533,9 @@ public function queryPolls(string $userID, GeneratedModels\QueryPollsRequest $re } /** * Deletes a poll - * * Sends events: * - feeds.poll.deleted * - poll.deleted - * * * @param string $pollID * @param string $userID @@ -595,7 +555,6 @@ public function deletePoll(string $pollID, string $userID): StreamResponse { } /** * Retrieves a poll - * * * @param string $pollID * @param string $userID @@ -615,13 +574,11 @@ public function getPoll(string $pollID, string $userID): StreamResponse { } /** * Updates a poll partially - * * Sends events: * - feeds.poll.closed * - feeds.poll.updated * - poll.closed * - poll.updated - * * * @param string $pollID * @param GeneratedModels\UpdatePollPartialRequest $requestData @@ -638,11 +595,9 @@ public function updatePollPartial(string $pollID, GeneratedModels\UpdatePollPart } /** * Creates a poll option - * * Sends events: * - feeds.poll.updated * - poll.updated - * * * @param string $pollID * @param GeneratedModels\CreatePollOptionRequest $requestData @@ -659,11 +614,9 @@ public function createPollOption(string $pollID, GeneratedModels\CreatePollOptio } /** * Updates a poll option - * * Sends events: * - feeds.poll.updated * - poll.updated - * * * @param string $pollID * @param GeneratedModels\UpdatePollOptionRequest $requestData @@ -680,11 +633,9 @@ public function updatePollOption(string $pollID, GeneratedModels\UpdatePollOptio } /** * Deletes a poll option - * * Sends events: * - feeds.poll.updated * - poll.updated - * * * @param string $pollID * @param string $optionID @@ -706,7 +657,6 @@ public function deletePollOption(string $pollID, string $optionID, string $userI } /** * Retrieves a poll option - * * * @param string $pollID * @param string $optionID @@ -728,7 +678,6 @@ public function getPollOption(string $pollID, string $optionID, string $userID): } /** * Queries votes - * * * @param string $pollID * @param string $userID @@ -749,7 +698,6 @@ public function queryPollVotes(string $pollID, string $userID, GeneratedModels\Q } /** * Upserts the push preferences for a user and or channel member. Set to all, mentions or none - * * * @param GeneratedModels\UpsertPushPreferencesRequest $requestData * @return StreamResponse @@ -764,7 +712,6 @@ public function updatePushNotificationPreferences(GeneratedModels\UpsertPushPref } /** * List details of all push providers. - * * * @return StreamResponse * @throws StreamException @@ -778,7 +725,6 @@ public function listPushProviders(): StreamResponse { } /** * Upsert a push provider for v2 with multi bundle/package support - * * * @param GeneratedModels\UpsertPushProviderRequest $requestData * @return StreamResponse @@ -793,7 +739,6 @@ public function upsertPushProvider(GeneratedModels\UpsertPushProviderRequest $re } /** * Delete a push provider from v2 with multi bundle/package support. v1 isn't supported in this endpoint - * * * @param string $type * @param string $name @@ -811,7 +756,6 @@ public function deletePushProvider(string $type, string $name): StreamResponse { } /** * Retrieve push notification templates for Chat. - * * * @param string $pushProviderType * @param string $pushProviderName @@ -833,7 +777,6 @@ public function getPushTemplates(string $pushProviderType, string $pushProviderN } /** * Create or update a push notification template for a specific event type and push provider - * * * @param GeneratedModels\UpsertPushTemplateRequest $requestData * @return StreamResponse @@ -848,7 +791,6 @@ public function upsertPushTemplate(GeneratedModels\UpsertPushTemplateRequest $re } /** * Get rate limits usage and quotas - * * * @param bool $serverSide * @param bool $android @@ -882,7 +824,6 @@ public function getRateLimits(bool $serverSide, bool $android, bool $ios, bool $ } /** * Lists all available roles - * * * @return StreamResponse * @throws StreamException @@ -896,7 +837,6 @@ public function listRoles(): StreamResponse { } /** * Creates custom role - * * * @param GeneratedModels\CreateRoleRequest $requestData * @return StreamResponse @@ -911,7 +851,6 @@ public function createRole(GeneratedModels\CreateRoleRequest $requestData): Stre } /** * Deletes custom role - * * * @param string $name * @return StreamResponse @@ -927,7 +866,6 @@ public function deleteRole(string $name): StreamResponse { } /** * Gets status of a task - * * * @param string $id * @return StreamResponse @@ -943,7 +881,6 @@ public function getTask(string $id): StreamResponse { } /** * Deletes previously uploaded file - * * * @param string $url * @return StreamResponse @@ -961,7 +898,6 @@ public function deleteFile(string $url): StreamResponse { } /** * Uploads file - * * * @param GeneratedModels\FileUploadRequest $requestData * @return StreamResponse @@ -976,7 +912,6 @@ public function uploadFile(GeneratedModels\FileUploadRequest $requestData): Stre } /** * Deletes previously uploaded image - * * * @param string $url * @return StreamResponse @@ -994,7 +929,6 @@ public function deleteImage(string $url): StreamResponse { } /** * Uploads image - * * * @param GeneratedModels\ImageUploadRequest $requestData * @return StreamResponse @@ -1009,7 +943,6 @@ public function uploadImage(GeneratedModels\ImageUploadRequest $requestData): St } /** * Find and filter users - * * * @param GeneratedModels\QueryUsersPayload $payload * @return StreamResponse @@ -1027,12 +960,10 @@ public function queryUsers(GeneratedModels\QueryUsersPayload $payload): StreamRe } /** * Updates certain fields of the user - * * Sends events: * - user.presence.changed * - user.updated * - user.presence.changed - * * * @param GeneratedModels\UpdateUsersPartialRequest $requestData * @return StreamResponse @@ -1047,10 +978,8 @@ public function updateUsersPartial(GeneratedModels\UpdateUsersPartialRequest $re } /** * Update or create users in bulk - * * Sends events: * - user.updated - * * * @param GeneratedModels\UpdateUsersRequest $requestData * @return StreamResponse @@ -1065,7 +994,6 @@ public function updateUsers(GeneratedModels\UpdateUsersRequest $requestData): St } /** * Get list of blocked Users - * * * @param string $userID * @return StreamResponse @@ -1083,7 +1011,6 @@ public function getBlockedUsers(string $userID): StreamResponse { } /** * Block users - * * * @param GeneratedModels\BlockUsersRequest $requestData * @return StreamResponse @@ -1098,10 +1025,8 @@ public function blockUsers(GeneratedModels\BlockUsersRequest $requestData): Stre } /** * Deactivate users in batches - * * Sends events: * - user.deactivated - * * * @param GeneratedModels\DeactivateUsersRequest $requestData * @return StreamResponse @@ -1116,11 +1041,9 @@ public function deactivateUsers(GeneratedModels\DeactivateUsersRequest $requestD } /** * Deletes users and optionally all their belongings asynchronously. - * * Sends events: * - channel.deleted * - user.deleted - * * * @param GeneratedModels\DeleteUsersRequest $requestData * @return StreamResponse @@ -1135,7 +1058,6 @@ public function deleteUsers(GeneratedModels\DeleteUsersRequest $requestData): St } /** * Retrieves all active live locations for a user - * * * @param string $userID * @return StreamResponse @@ -1153,7 +1075,6 @@ public function getUserLiveLocations(string $userID): StreamResponse { } /** * Updates an existing live location with new coordinates or expiration time - * * * @param string $userID * @param GeneratedModels\UpdateLiveLocationRequest $requestData @@ -1172,11 +1093,9 @@ public function updateLiveLocation(string $userID, GeneratedModels\UpdateLiveLoc } /** * Reactivate users in batches - * * Sends events: * - user.reactivated * - user.reactivated - * * * @param GeneratedModels\ReactivateUsersRequest $requestData * @return StreamResponse @@ -1191,7 +1110,6 @@ public function reactivateUsers(GeneratedModels\ReactivateUsersRequest $requestD } /** * Restore soft deleted users - * * * @param GeneratedModels\RestoreUsersRequest $requestData * @return StreamResponse @@ -1206,7 +1124,6 @@ public function restoreUsers(GeneratedModels\RestoreUsersRequest $requestData): } /** * Unblock users - * * * @param GeneratedModels\UnblockUsersRequest $requestData * @return StreamResponse @@ -1221,10 +1138,8 @@ public function unblockUsers(GeneratedModels\UnblockUsersRequest $requestData): } /** * Deactivates user with possibility to activate it back - * * Sends events: * - user.deactivated - * * * @param string $userID * @param GeneratedModels\DeactivateUserRequest $requestData @@ -1241,7 +1156,6 @@ public function deactivateUser(string $userID, GeneratedModels\DeactivateUserReq } /** * Exports the user's profile, reactions and messages. Raises an error if a user has more than 10k messages or reactions - * * * @param string $userID * @return StreamResponse @@ -1257,10 +1171,8 @@ public function exportUser(string $userID): StreamResponse { } /** * Activates user who's been deactivated previously - * * Sends events: * - user.reactivated - * * * @param string $userID * @param GeneratedModels\ReactivateUserRequest $requestData diff --git a/src/Generated/FeedMethods.php b/src/Generated/FeedMethods.php index 7540cc6..289ff88 100644 --- a/src/Generated/FeedMethods.php +++ b/src/Generated/FeedMethods.php @@ -16,7 +16,6 @@ trait FeedMethods { /** * Delete a single feed by its ID - * * * @param bool $hardDelete * @return StreamResponse @@ -28,7 +27,6 @@ public function deleteFeed( } /** * Create a single feed for a given feed group - * * * @param GeneratedModels\GetOrCreateFeedRequest $requestData * @return StreamResponse @@ -40,7 +38,6 @@ public function getOrCreateFeed( } /** * Update an existing feed - * * * @param GeneratedModels\UpdateFeedRequest $requestData * @return StreamResponse @@ -52,7 +49,6 @@ public function updateFeed( } /** * Mark activities as read/seen/watched. Can mark by timestamp (seen), activity IDs (read), or all as read. - * * * @param GeneratedModels\MarkActivityRequest $requestData * @return StreamResponse @@ -64,7 +60,6 @@ public function markActivity( } /** * Unpin an activity from a feed. This removes the pin, so the activity will no longer be displayed at the top of the feed. - * * * @param string $activityID * @param string $userID @@ -77,7 +72,6 @@ public function unpinActivity( } /** * Pin an activity to a feed. Pinned activities are typically displayed at the top of a feed. - * * * @param string $activityID * @param GeneratedModels\PinActivityRequest $requestData @@ -90,7 +84,6 @@ public function pinActivity( } /** * Add, remove, or set members for a feed - * * * @param GeneratedModels\UpdateFeedMembersRequest $requestData * @return StreamResponse @@ -102,7 +95,6 @@ public function updateFeedMembers( } /** * Accepts a pending feed member request - * * * @param GeneratedModels\AcceptFeedMemberInviteRequest $requestData * @return StreamResponse @@ -114,7 +106,6 @@ public function acceptFeedMemberInvite( } /** * Query feed members based on filters with pagination and sorting options - * * * @param GeneratedModels\QueryFeedMembersRequest $requestData * @return StreamResponse @@ -126,7 +117,6 @@ public function queryFeedMembers( } /** * Rejects a pending feed member request - * * * @param GeneratedModels\RejectFeedMemberInviteRequest $requestData * @return StreamResponse @@ -136,6 +126,17 @@ public function rejectFeedMemberInvite( GeneratedModels\RejectFeedMemberInviteRequest $requestData): StreamResponse { return $this->feedsV3Client->rejectFeedMemberInvite($this->feedGroup, $this->feedId, $requestData); } + /** + * Query pinned activities for a feed with filter query + * + * @param GeneratedModels\QueryPinnedActivitiesRequest $requestData + * @return StreamResponse + * @throws StreamException + */ + public function queryPinnedActivities( + GeneratedModels\QueryPinnedActivitiesRequest $requestData): StreamResponse { + return $this->feedsV3Client->queryPinnedActivities($this->feedGroup, $this->feedId, $requestData); + } } diff --git a/src/Generated/FeedsTrait.php b/src/Generated/FeedsTrait.php index 508b9b3..ccbe601 100644 --- a/src/Generated/FeedsTrait.php +++ b/src/Generated/FeedsTrait.php @@ -16,7 +16,6 @@ trait FeedsTrait { /** * Create a new activity or update an existing one - * * * @param GeneratedModels\AddActivityRequest $requestData * @return StreamResponse @@ -31,7 +30,6 @@ public function addActivity(GeneratedModels\AddActivityRequest $requestData): St } /** * Create new activities or update existing ones in a batch operation - * * * @param GeneratedModels\UpsertActivitiesRequest $requestData * @return StreamResponse @@ -46,10 +44,8 @@ public function upsertActivities(GeneratedModels\UpsertActivitiesRequest $reques } /** * Updates certain fields of multiple activities in a batch. Use 'set' to update specific fields and 'unset' to remove fields. Activities that fail due to not found, permission denied, or no changes detected are silently skipped and not included in the response. However, validation errors (e.g., updating reserved fields, invalid field values) will fail the entire batch request. - * * Sends events: * - feeds.activity.updated - * * * @param GeneratedModels\UpdateActivitiesPartialBatchRequest $requestData * @return StreamResponse @@ -64,7 +60,6 @@ public function updateActivitiesPartialBatch(GeneratedModels\UpdateActivitiesPar } /** * Delete one or more activities by their IDs - * * * @param GeneratedModels\DeleteActivitiesRequest $requestData * @return StreamResponse @@ -79,7 +74,6 @@ public function deleteActivities(GeneratedModels\DeleteActivitiesRequest $reques } /** * Query activities based on filters with pagination and sorting options - * * * @param GeneratedModels\QueryActivitiesRequest $requestData * @return StreamResponse @@ -94,7 +88,6 @@ public function queryActivities(GeneratedModels\QueryActivitiesRequest $requestD } /** * Deletes a bookmark from an activity - * * * @param string $activityID * @param string $folderID @@ -118,7 +111,6 @@ public function deleteBookmark(string $activityID, string $folderID, string $use } /** * Updates a bookmark for an activity - * * * @param string $activityID * @param GeneratedModels\UpdateBookmarkRequest $requestData @@ -135,7 +127,6 @@ public function updateBookmark(string $activityID, GeneratedModels\UpdateBookmar } /** * Adds a bookmark to an activity - * * * @param string $activityID * @param GeneratedModels\AddBookmarkRequest $requestData @@ -152,7 +143,6 @@ public function addBookmark(string $activityID, GeneratedModels\AddBookmarkReque } /** * Submit feedback for an activity including options to show less, hide, report, or mute the user - * * * @param string $activityID * @param GeneratedModels\ActivityFeedbackRequest $requestData @@ -169,7 +159,6 @@ public function activityFeedback(string $activityID, GeneratedModels\ActivityFee } /** * Cast a vote on a poll - * * Sends events: * - feeds.poll.vote_casted * - feeds.poll.vote_changed @@ -177,7 +166,6 @@ public function activityFeedback(string $activityID, GeneratedModels\ActivityFee * - poll.vote_casted * - poll.vote_changed * - poll.vote_removed - * * * @param string $activityID * @param string $pollID @@ -196,11 +184,9 @@ public function castPollVote(string $activityID, string $pollID, GeneratedModels } /** * Delete a vote from a poll - * * Sends events: * - feeds.poll.vote_removed * - poll.vote_removed - * * * @param string $activityID * @param string $pollID @@ -224,7 +210,6 @@ public function deletePollVote(string $activityID, string $pollID, string $voteI } /** * Adds a reaction to an activity - * * * @param string $activityID * @param GeneratedModels\AddReactionRequest $requestData @@ -241,7 +226,6 @@ public function addActivityReaction(string $activityID, GeneratedModels\AddReact } /** * Query activity reactions - * * * @param string $activityID * @param GeneratedModels\QueryActivityReactionsRequest $requestData @@ -258,7 +242,6 @@ public function queryActivityReactions(string $activityID, GeneratedModels\Query } /** * Removes a reaction from an activity - * * * @param string $activityID * @param string $type @@ -284,7 +267,6 @@ public function deleteActivityReaction(string $activityID, string $type, bool $d } /** * Delete a single activity by its ID - * * * @param string $id * @param bool $hardDelete @@ -308,7 +290,6 @@ public function deleteActivity(string $id, bool $hardDelete, bool $deleteNotific } /** * Returns activity by ID - * * * @param string $id * @return StreamResponse @@ -324,10 +305,8 @@ public function getActivity(string $id): StreamResponse { } /** * Updates certain fields of the activity. Use 'set' to update specific fields and 'unset' to remove fields. This allows you to update only the fields you need without replacing the entire activity. Useful for updating reply restrictions ('restrict_replies'), mentioned users, or custom data. - * * Sends events: * - feeds.activity.updated - * * * @param string $id * @param GeneratedModels\UpdateActivityPartialRequest $requestData @@ -344,10 +323,8 @@ public function updateActivityPartial(string $id, GeneratedModels\UpdateActivity } /** * Replaces an activity with the provided data. Use this to update text, attachments, reply restrictions ('restrict_replies'), mentioned users, and other activity fields. Note: This is a full update - any fields not provided will be cleared. - * * Sends events: * - feeds.activity.updated - * * * @param string $id * @param GeneratedModels\UpdateActivityRequest $requestData @@ -364,7 +341,6 @@ public function updateActivity(string $id, GeneratedModels\UpdateActivityRequest } /** * Restores a soft-deleted activity by its ID. Only the activity owner can restore their own activities. - * * * @param string $id * @param GeneratedModels\RestoreActivityRequest $requestData @@ -381,7 +357,6 @@ public function restoreActivity(string $id, GeneratedModels\RestoreActivityReque } /** * Query bookmark folders with filter query - * * * @param GeneratedModels\QueryBookmarkFoldersRequest $requestData * @return StreamResponse @@ -396,7 +371,6 @@ public function queryBookmarkFolders(GeneratedModels\QueryBookmarkFoldersRequest } /** * Delete a bookmark folder by its ID - * * * @param string $folderID * @return StreamResponse @@ -412,7 +386,6 @@ public function deleteBookmarkFolder(string $folderID): StreamResponse { } /** * Update a bookmark folder by its ID - * * * @param string $folderID * @param GeneratedModels\UpdateBookmarkFolderRequest $requestData @@ -429,7 +402,6 @@ public function updateBookmarkFolder(string $folderID, GeneratedModels\UpdateBoo } /** * Query bookmarks with filter query - * * * @param GeneratedModels\QueryBookmarksRequest $requestData * @return StreamResponse @@ -444,7 +416,6 @@ public function queryBookmarks(GeneratedModels\QueryBookmarksRequest $requestDat } /** * Delete collections in a batch operation. Users can only delete their own collections. - * * * @param array $collectionRefs * @return StreamResponse @@ -462,7 +433,6 @@ public function deleteCollections(array $collectionRefs): StreamResponse { } /** * Read collections with optional filtering by user ID and collection name. By default, users can only read their own collections. - * * * @param array $collectionRefs * @param string $userID @@ -484,7 +454,6 @@ public function readCollections(array $collectionRefs, string $userID): StreamRe } /** * Update existing collections in a batch operation. Only the custom data field is updatable. Users can only update their own collections. - * * * @param GeneratedModels\UpdateCollectionsRequest $requestData * @return StreamResponse @@ -499,7 +468,6 @@ public function updateCollections(GeneratedModels\UpdateCollectionsRequest $requ } /** * Create new collections in a batch operation. Collections are data objects that can be attached to activities for managing shared data across multiple activities. - * * * @param GeneratedModels\CreateCollectionsRequest $requestData * @return StreamResponse @@ -514,7 +482,6 @@ public function createCollections(GeneratedModels\CreateCollectionsRequest $requ } /** * Insert new collections or update existing ones in a batch operation. Only the custom data field is updatable for existing collections. - * * * @param GeneratedModels\UpsertCollectionsRequest $requestData * @return StreamResponse @@ -529,7 +496,6 @@ public function upsertCollections(GeneratedModels\UpsertCollectionsRequest $requ } /** * Retrieve a threaded list of comments for a specific object (e.g., activity), with configurable depth, sorting, and pagination - * * * @param string $objectID * @param string $objectType @@ -579,7 +545,6 @@ public function getComments(string $objectID, string $objectType, int $depth, st } /** * Adds a comment to an object (e.g., activity) or a reply to an existing comment, and broadcasts appropriate events - * * * @param GeneratedModels\AddCommentRequest $requestData * @return StreamResponse @@ -594,7 +559,6 @@ public function addComment(GeneratedModels\AddCommentRequest $requestData): Stre } /** * Adds multiple comments in a single request. Each comment must specify the object type and ID. - * * * @param GeneratedModels\AddCommentsBatchRequest $requestData * @return StreamResponse @@ -609,7 +573,6 @@ public function addCommentsBatch(GeneratedModels\AddCommentsBatchRequest $reques } /** * Query comments using MongoDB-style filters with pagination and sorting options - * * * @param GeneratedModels\QueryCommentsRequest $requestData * @return StreamResponse @@ -624,7 +587,6 @@ public function queryComments(GeneratedModels\QueryCommentsRequest $requestData) } /** * Deletes a comment from an object (e.g., activity) and broadcasts appropriate events - * * * @param string $id * @param bool $hardDelete @@ -648,7 +610,6 @@ public function deleteComment(string $id, bool $hardDelete, bool $deleteNotifica } /** * Get a comment by ID - * * * @param string $id * @return StreamResponse @@ -664,7 +625,6 @@ public function getComment(string $id): StreamResponse { } /** * Updates a comment on an object (e.g., activity) and broadcasts appropriate events - * * * @param string $id * @param GeneratedModels\UpdateCommentRequest $requestData @@ -681,7 +641,6 @@ public function updateComment(string $id, GeneratedModels\UpdateCommentRequest $ } /** * Adds a reaction to a comment - * * * @param string $id * @param GeneratedModels\AddCommentReactionRequest $requestData @@ -698,7 +657,6 @@ public function addCommentReaction(string $id, GeneratedModels\AddCommentReactio } /** * Query comment reactions - * * * @param string $id * @param GeneratedModels\QueryCommentReactionsRequest $requestData @@ -715,7 +673,6 @@ public function queryCommentReactions(string $id, GeneratedModels\QueryCommentRe } /** * Deletes a reaction from a comment - * * * @param string $id * @param string $type @@ -741,7 +698,6 @@ public function deleteCommentReaction(string $id, string $type, bool $deleteNoti } /** * Retrieve a threaded list of replies for a single comment, with configurable depth, sorting, and pagination - * * * @param string $id * @param int $depth @@ -785,7 +741,6 @@ public function getCommentReplies(string $id, int $depth, string $sort, int $rep } /** * List all feed groups for the application - * * * @param bool $includeSoftDeleted * @return StreamResponse @@ -803,7 +758,6 @@ public function listFeedGroups(bool $includeSoftDeleted): StreamResponse { } /** * Creates a new feed group with the specified configuration - * * * @param GeneratedModels\CreateFeedGroupRequest $requestData * @return StreamResponse @@ -818,7 +772,6 @@ public function createFeedGroup(GeneratedModels\CreateFeedGroupRequest $requestD } /** * Delete a single feed by its ID - * * * @param string $feedGroupID * @param string $feedID @@ -840,7 +793,6 @@ public function deleteFeed(string $feedGroupID, string $feedID, bool $hardDelete } /** * Create a single feed for a given feed group - * * * @param string $feedGroupID * @param string $feedID @@ -859,7 +811,6 @@ public function getOrCreateFeed(string $feedGroupID, string $feedID, GeneratedMo } /** * Update an existing feed - * * * @param string $feedGroupID * @param string $feedID @@ -878,7 +829,6 @@ public function updateFeed(string $feedGroupID, string $feedID, GeneratedModels\ } /** * Mark activities as read/seen/watched. Can mark by timestamp (seen), activity IDs (read), or all as read. - * * * @param string $feedGroupID * @param string $feedID @@ -897,7 +847,6 @@ public function markActivity(string $feedGroupID, string $feedID, GeneratedModel } /** * Unpin an activity from a feed. This removes the pin, so the activity will no longer be displayed at the top of the feed. - * * * @param string $feedGroupID * @param string $feedID @@ -921,7 +870,6 @@ public function unpinActivity(string $feedGroupID, string $feedID, string $activ } /** * Pin an activity to a feed. Pinned activities are typically displayed at the top of a feed. - * * * @param string $feedGroupID * @param string $feedID @@ -942,7 +890,6 @@ public function pinActivity(string $feedGroupID, string $feedID, string $activit } /** * Add, remove, or set members for a feed - * * * @param string $feedGroupID * @param string $feedID @@ -961,7 +908,6 @@ public function updateFeedMembers(string $feedGroupID, string $feedID, Generated } /** * Accepts a pending feed member request - * * * @param string $feedID * @param string $feedGroupID @@ -980,7 +926,6 @@ public function acceptFeedMemberInvite(string $feedID, string $feedGroupID, Gene } /** * Query feed members based on filters with pagination and sorting options - * * * @param string $feedGroupID * @param string $feedID @@ -999,7 +944,6 @@ public function queryFeedMembers(string $feedGroupID, string $feedID, GeneratedM } /** * Rejects a pending feed member request - * * * @param string $feedGroupID * @param string $feedID @@ -1016,9 +960,26 @@ public function rejectFeedMemberInvite(string $feedGroupID, string $feedID, Gene // Use the provided request data array directly return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\RejectFeedMemberInviteResponse::class); } + /** + * Query pinned activities for a feed with filter query + * + * @param string $feedGroupID + * @param string $feedID + * @param GeneratedModels\QueryPinnedActivitiesRequest $requestData + * @return StreamResponse + * @throws StreamException + */ + public function queryPinnedActivities(string $feedGroupID, string $feedID, GeneratedModels\QueryPinnedActivitiesRequest $requestData): StreamResponse { + $path = '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/pinned_activities/query'; + $path = str_replace('{feed_group_id}', (string) $feedGroupID, $path); + $path = str_replace('{feed_id}', (string) $feedID, $path); + + $queryParams = []; + // Use the provided request data array directly + return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\QueryPinnedActivitiesResponse::class); + } /** * Get follow suggestions for a feed group - * * * @param string $feedGroupID * @param int $limit @@ -1042,7 +1003,6 @@ public function getFollowSuggestions(string $feedGroupID, int $limit, string $us } /** * Delete a feed group by its ID. Can perform a soft delete (default) or hard delete. - * * * @param string $id * @param bool $hardDelete @@ -1062,7 +1022,6 @@ public function deleteFeedGroup(string $id, bool $hardDelete): StreamResponse { } /** * Get a feed group by ID - * * * @param string $id * @param bool $includeSoftDeleted @@ -1082,7 +1041,6 @@ public function getFeedGroup(string $id, bool $includeSoftDeleted): StreamRespon } /** * Get an existing feed group or create a new one if it doesn't exist - * * * @param string $id * @param GeneratedModels\GetOrCreateFeedGroupRequest $requestData @@ -1099,7 +1057,6 @@ public function getOrCreateFeedGroup(string $id, GeneratedModels\GetOrCreateFeed } /** * Update a feed group by ID - * * * @param string $id * @param GeneratedModels\UpdateFeedGroupRequest $requestData @@ -1116,7 +1073,6 @@ public function updateFeedGroup(string $id, GeneratedModels\UpdateFeedGroupReque } /** * List all feed views for a feed group - * * * @return StreamResponse * @throws StreamException @@ -1130,7 +1086,6 @@ public function listFeedViews(): StreamResponse { } /** * Create a custom view for a feed group with specific selectors, ranking, or aggregation options - * * * @param GeneratedModels\CreateFeedViewRequest $requestData * @return StreamResponse @@ -1145,7 +1100,6 @@ public function createFeedView(GeneratedModels\CreateFeedViewRequest $requestDat } /** * Delete an existing custom feed view - * * * @param string $id * @return StreamResponse @@ -1161,7 +1115,6 @@ public function deleteFeedView(string $id): StreamResponse { } /** * Get a feed view by its ID - * * * @param string $id * @return StreamResponse @@ -1177,7 +1130,6 @@ public function getFeedView(string $id): StreamResponse { } /** * Get an existing feed view or create a new one if it doesn't exist - * * * @param string $id * @param GeneratedModels\GetOrCreateFeedViewRequest $requestData @@ -1194,7 +1146,6 @@ public function getOrCreateFeedView(string $id, GeneratedModels\GetOrCreateFeedV } /** * Update an existing custom feed view with new selectors, ranking, or aggregation options - * * * @param string $id * @param GeneratedModels\UpdateFeedViewRequest $requestData @@ -1211,7 +1162,6 @@ public function updateFeedView(string $id, GeneratedModels\UpdateFeedViewRequest } /** * Gets all available feed visibility configurations and their permissions - * * * @return StreamResponse * @throws StreamException @@ -1225,7 +1175,6 @@ public function listFeedVisibilities(): StreamResponse { } /** * Gets feed visibility configuration and permissions - * * * @param string $name * @return StreamResponse @@ -1241,7 +1190,6 @@ public function getFeedVisibility(string $name): StreamResponse { } /** * Updates an existing predefined feed visibility configuration - * * * @param string $name * @param GeneratedModels\UpdateFeedVisibilityRequest $requestData @@ -1258,7 +1206,6 @@ public function updateFeedVisibility(string $name, GeneratedModels\UpdateFeedVis } /** * Create multiple feeds at once for a given feed group - * * * @param GeneratedModels\CreateFeedsBatchRequest $requestData * @return StreamResponse @@ -1273,7 +1220,6 @@ public function createFeedsBatch(GeneratedModels\CreateFeedsBatchRequest $reques } /** * Delete multiple feeds by their IDs. All feeds must exist. This endpoint is server-side only. - * * * @param GeneratedModels\DeleteFeedsBatchRequest $requestData * @return StreamResponse @@ -1288,7 +1234,6 @@ public function deleteFeedsBatch(GeneratedModels\DeleteFeedsBatchRequest $reques } /** * Retrieves own_follows, own_capabilities, and/or own_membership for multiple feeds in a single request. If fields are not specified, all three fields are returned. - * * * @param GeneratedModels\OwnBatchRequest $requestData * @return StreamResponse @@ -1303,7 +1248,6 @@ public function ownBatch(GeneratedModels\OwnBatchRequest $requestData): StreamRe } /** * Query feeds with filter query - * * * @param GeneratedModels\QueryFeedsRequest $requestData * @return StreamResponse @@ -1319,7 +1263,6 @@ public function queryFeeds(GeneratedModels\QueryFeedsRequest $requestData): Stre /** * Retrieve current rate limit status for feeds operations. * Returns information about limits, usage, and remaining quota for various feed operations. - * * * @param string $endpoints * @param bool $android @@ -1353,7 +1296,6 @@ public function getFeedsRateLimits(string $endpoints, bool $android, bool $ios, } /** * Updates a follow's custom data, push preference, and follower role. Source owner can update custom data and push preference. Follower role can only be updated via server-side requests. - * * * @param GeneratedModels\UpdateFollowRequest $requestData * @return StreamResponse @@ -1368,7 +1310,6 @@ public function updateFollow(GeneratedModels\UpdateFollowRequest $requestData): } /** * Creates a follow and broadcasts FollowAddedEvent - * * * @param GeneratedModels\FollowRequest $requestData * @return StreamResponse @@ -1383,7 +1324,6 @@ public function follow(GeneratedModels\FollowRequest $requestData): StreamRespon } /** * Accepts a pending follow request - * * * @param GeneratedModels\AcceptFollowRequest $requestData * @return StreamResponse @@ -1398,7 +1338,6 @@ public function acceptFollow(GeneratedModels\AcceptFollowRequest $requestData): } /** * Creates multiple follows at once and broadcasts FollowAddedEvent for each follow - * * * @param GeneratedModels\FollowBatchRequest $requestData * @return StreamResponse @@ -1413,7 +1352,6 @@ public function followBatch(GeneratedModels\FollowBatchRequest $requestData): St } /** * Creates or updates multiple follows at once. Does not return an error if follows already exist. Broadcasts FollowAddedEvent only for newly created follows. - * * * @param GeneratedModels\FollowBatchRequest $requestData * @return StreamResponse @@ -1428,7 +1366,6 @@ public function getOrCreateFollows(GeneratedModels\FollowBatchRequest $requestDa } /** * Query follows based on filters with pagination and sorting options - * * * @param GeneratedModels\QueryFollowsRequest $requestData * @return StreamResponse @@ -1443,7 +1380,6 @@ public function queryFollows(GeneratedModels\QueryFollowsRequest $requestData): } /** * Rejects a pending follow request - * * * @param GeneratedModels\RejectFollowRequest $requestData * @return StreamResponse @@ -1458,7 +1394,6 @@ public function rejectFollow(GeneratedModels\RejectFollowRequest $requestData): } /** * Removes a follow and broadcasts FollowRemovedEvent - * * * @param string $source * @param string $target @@ -1480,7 +1415,6 @@ public function unfollow(string $source, string $target, bool $deleteNotificatio } /** * Create a new membership level with tag-based access controls - * * * @param GeneratedModels\CreateMembershipLevelRequest $requestData * @return StreamResponse @@ -1495,7 +1429,6 @@ public function createMembershipLevel(GeneratedModels\CreateMembershipLevelReque } /** * Query membership levels with filter query - * * * @param GeneratedModels\QueryMembershipLevelsRequest $requestData * @return StreamResponse @@ -1510,7 +1443,6 @@ public function queryMembershipLevels(GeneratedModels\QueryMembershipLevelsReque } /** * Delete a membership level by its UUID. This operation is irreversible. - * * * @param string $id * @return StreamResponse @@ -1526,7 +1458,6 @@ public function deleteMembershipLevel(string $id): StreamResponse { } /** * Update a membership level with partial updates. Only specified fields will be updated. - * * * @param string $id * @param GeneratedModels\UpdateMembershipLevelRequest $requestData @@ -1545,7 +1476,6 @@ public function updateMembershipLevel(string $id, GeneratedModels\UpdateMembersh * Retrieve usage statistics for feeds including activity count, follow count, and API request count. * Returns data aggregated by day with pagination support via from/to date parameters. * This endpoint is server-side only. - * * * @param GeneratedModels\QueryFeedsUsageStatsRequest $requestData * @return StreamResponse @@ -1560,7 +1490,6 @@ public function queryFeedsUsageStats(GeneratedModels\QueryFeedsUsageStatsRequest } /** * Removes multiple follows at once and broadcasts FollowRemovedEvent for each one - * * * @param GeneratedModels\UnfollowBatchRequest $requestData * @return StreamResponse @@ -1575,7 +1504,6 @@ public function unfollowBatch(GeneratedModels\UnfollowBatchRequest $requestData) } /** * Removes multiple follows and broadcasts FollowRemovedEvent for each. Does not return an error if follows don't exist. - * * * @param GeneratedModels\UnfollowBatchRequest $requestData * @return StreamResponse @@ -1590,7 +1518,6 @@ public function getOrCreateUnfollows(GeneratedModels\UnfollowBatchRequest $reque } /** * Delete all feed data for a user including: feeds, activities, follows, comments, feed reactions, bookmark folders, bookmarks, and collections owned by the user - * * * @param string $userID * @param GeneratedModels\DeleteFeedUserDataRequest $requestData @@ -1607,7 +1534,6 @@ public function deleteFeedUserData(string $userID, GeneratedModels\DeleteFeedUse } /** * Export all feed data for a user including: user profile, feeds, activities, follows, comments, feed reactions, bookmark folders, bookmarks, and collections owned by the user - * * * @param string $userID * @return StreamResponse diff --git a/src/Generated/ModerationTrait.php b/src/Generated/ModerationTrait.php index 91c04f6..b8501ca 100644 --- a/src/Generated/ModerationTrait.php +++ b/src/Generated/ModerationTrait.php @@ -16,7 +16,6 @@ trait ModerationTrait { /** * Appeal against the moderation decision - * * * @param GeneratedModels\AppealRequest $requestData * @return StreamResponse @@ -31,7 +30,6 @@ public function appeal(GeneratedModels\AppealRequest $requestData): StreamRespon } /** * Retrieve a specific appeal item by its ID - * * * @param string $id * @return StreamResponse @@ -47,7 +45,6 @@ public function getAppeal(string $id): StreamResponse { } /** * Query Appeals - * * * @param GeneratedModels\QueryAppealsRequest $requestData * @return StreamResponse @@ -62,7 +59,6 @@ public function queryAppeals(GeneratedModels\QueryAppealsRequest $requestData): } /** * Ban a user from a channel or the entire app - * * * @param GeneratedModels\BanRequest $requestData * @return StreamResponse @@ -77,7 +73,6 @@ public function ban(GeneratedModels\BanRequest $requestData): StreamResponse { } /** * Moderate multiple images in bulk using a CSV file - * * * @param GeneratedModels\BulkImageModerationRequest $requestData * @return StreamResponse @@ -92,7 +87,6 @@ public function bulkImageModeration(GeneratedModels\BulkImageModerationRequest $ } /** * Run moderation checks on the provided content - * * * @param GeneratedModels\CheckRequest $requestData * @return StreamResponse @@ -107,7 +101,6 @@ public function check(GeneratedModels\CheckRequest $requestData): StreamResponse } /** * Create a new moderation configuration or update an existing one. Configure settings for content filtering, AI analysis, toxicity detection, and other moderation features. - * * * @param GeneratedModels\UpsertConfigRequest $requestData * @return StreamResponse @@ -122,7 +115,6 @@ public function upsertConfig(GeneratedModels\UpsertConfigRequest $requestData): } /** * Delete a specific moderation policy by its name - * * * @param string $key * @param string $team @@ -142,7 +134,6 @@ public function deleteConfig(string $key, string $team): StreamResponse { } /** * Retrieve a specific moderation configuration by its key and team. This configuration contains settings for various moderation features like toxicity detection, AI analysis, and filtering rules. - * * * @param string $key * @param string $team @@ -162,7 +153,6 @@ public function getConfig(string $key, string $team): StreamResponse { } /** * Search and filter moderation configurations across your application. This endpoint is designed for building moderation dashboards and managing multiple configuration sets. - * * * @param GeneratedModels\QueryModerationConfigsRequest $requestData * @return StreamResponse @@ -177,7 +167,6 @@ public function queryModerationConfigs(GeneratedModels\QueryModerationConfigsReq } /** * Custom check, add your own AI model reports to the review queue - * * * @param GeneratedModels\CustomCheckRequest $requestData * @return StreamResponse @@ -192,7 +181,6 @@ public function customCheck(GeneratedModels\CustomCheckRequest $requestData): St } /** * Delete a specific moderation template by its name - * * * @return StreamResponse * @throws StreamException @@ -206,7 +194,6 @@ public function v2DeleteTemplate(): StreamResponse { } /** * Retrieve a list of feed moderation templates that define preset moderation rules and configurations. Limited to 100 templates per request. - * * * @return StreamResponse * @throws StreamException @@ -220,7 +207,6 @@ public function v2QueryTemplates(): StreamResponse { } /** * Upsert feeds template for moderation - * * * @param GeneratedModels\UpsertModerationTemplateRequest $requestData * @return StreamResponse @@ -235,7 +221,6 @@ public function v2UpsertTemplate(GeneratedModels\UpsertModerationTemplateRequest } /** * Flag any type of content (messages, users, channels, activities) for moderation review. Supports custom content types and additional metadata for flagged content. - * * * @param GeneratedModels\FlagRequest $requestData * @return StreamResponse @@ -250,7 +235,6 @@ public function flag(GeneratedModels\FlagRequest $requestData): StreamResponse { } /** * Query flags associated with moderation items. This is used for building a moderation dashboard. - * * * @param GeneratedModels\QueryModerationFlagsRequest $requestData * @return StreamResponse @@ -265,7 +249,6 @@ public function queryModerationFlags(GeneratedModels\QueryModerationFlagsRequest } /** * Search and filter moderation action logs with support for pagination. View the history of moderation actions taken, including who performed them and when. - * * * @param GeneratedModels\QueryModerationLogsRequest $requestData * @return StreamResponse @@ -280,7 +263,6 @@ public function queryModerationLogs(GeneratedModels\QueryModerationLogsRequest $ } /** * Create or update a moderation rule that can apply app-wide or to specific moderation configs - * * * @param GeneratedModels\UpsertModerationRuleRequest $requestData * @return StreamResponse @@ -295,7 +277,6 @@ public function upsertModerationRule(GeneratedModels\UpsertModerationRuleRequest } /** * Delete an existing moderation rule - * * * @return StreamResponse * @throws StreamException @@ -309,7 +290,6 @@ public function deleteModerationRule(): StreamResponse { } /** * Get a specific moderation rule by ID - * * * @return StreamResponse * @throws StreamException @@ -323,7 +303,6 @@ public function getModerationRule(): StreamResponse { } /** * Search and filter moderation rules across your application. This endpoint is designed for building moderation dashboards and managing multiple rule sets. - * * * @param GeneratedModels\QueryModerationRulesRequest $requestData * @return StreamResponse @@ -338,7 +317,6 @@ public function queryModerationRules(GeneratedModels\QueryModerationRulesRequest } /** * Mute a user. Mutes are generally not visible to the user you mute, while block is something you notice. - * * * @param GeneratedModels\MuteRequest $requestData * @return StreamResponse @@ -353,7 +331,6 @@ public function mute(GeneratedModels\MuteRequest $requestData): StreamResponse { } /** * Query review queue items allows you to filter the review queue items. This is used for building a moderation dashboard. - * * * @param GeneratedModels\QueryReviewQueueRequest $requestData * @return StreamResponse @@ -368,7 +345,6 @@ public function queryReviewQueue(GeneratedModels\QueryReviewQueueRequest $reques } /** * Retrieve a specific review queue item by its ID - * * * @param string $id * @return StreamResponse @@ -384,7 +360,6 @@ public function getReviewQueueItem(string $id): StreamResponse { } /** * Take action on flagged content, such as marking content as safe, deleting content, banning users, or executing custom moderation actions. Supports various action types with configurable parameters. - * * * @param GeneratedModels\SubmitActionRequest $requestData * @return StreamResponse @@ -399,7 +374,6 @@ public function submitAction(GeneratedModels\SubmitActionRequest $requestData): } /** * Unban a user from a channel or globally. - * * * @param string $targetUserID * @param string $channelCid @@ -426,7 +400,6 @@ public function unban(string $targetUserID, string $channelCid, string $createdB } /** * Unmute a user - * * * @param GeneratedModels\UnmuteRequest $requestData * @return StreamResponse diff --git a/src/Generated/Webhook.php b/src/Generated/Webhook.php new file mode 100644 index 0000000..8b6bc85 --- /dev/null +++ b/src/Generated/Webhook.php @@ -0,0 +1,569 @@ +getMessage(), 0, $e); + } + } + + private static function parseToArray(mixed $rawEvent): array + { + if (is_array($rawEvent)) { + return $rawEvent; + } + + if (is_string($rawEvent)) { + $decoded = json_decode($rawEvent, true); + if (json_last_error() !== JSON_ERROR_NONE) { + throw new \InvalidArgumentException('Invalid JSON in webhook payload: ' . json_last_error_msg()); + } + return $decoded; + } + + throw new \InvalidArgumentException('Webhook payload must be a string or array'); + } + + private static function getEventClass(string $eventType): ?string + { + $eventClassMap = [ + '*' => CustomEvent::class, + 'appeal.accepted' => AppealAcceptedEvent::class, + 'appeal.created' => AppealCreatedEvent::class, + 'appeal.rejected' => AppealRejectedEvent::class, + 'call.accepted' => CallAcceptedEvent::class, + 'call.blocked_user' => BlockedUserEvent::class, + 'call.closed_caption' => ClosedCaptionEvent::class, + 'call.closed_captions_failed' => CallClosedCaptionsFailedEvent::class, + 'call.closed_captions_started' => CallClosedCaptionsStartedEvent::class, + 'call.closed_captions_stopped' => CallClosedCaptionsStoppedEvent::class, + 'call.created' => CallCreatedEvent::class, + 'call.deleted' => CallDeletedEvent::class, + 'call.dtmf' => CallDTMFEvent::class, + 'call.ended' => CallEndedEvent::class, + 'call.frame_recording_failed' => CallFrameRecordingFailedEvent::class, + 'call.frame_recording_ready' => CallFrameRecordingFrameReadyEvent::class, + 'call.frame_recording_started' => CallFrameRecordingStartedEvent::class, + 'call.frame_recording_stopped' => CallFrameRecordingStoppedEvent::class, + 'call.hls_broadcasting_failed' => CallHLSBroadcastingFailedEvent::class, + 'call.hls_broadcasting_started' => CallHLSBroadcastingStartedEvent::class, + 'call.hls_broadcasting_stopped' => CallHLSBroadcastingStoppedEvent::class, + 'call.kicked_user' => KickedUserEvent::class, + 'call.live_started' => CallLiveStartedEvent::class, + 'call.member_added' => CallMemberAddedEvent::class, + 'call.member_removed' => CallMemberRemovedEvent::class, + 'call.member_updated' => CallMemberUpdatedEvent::class, + 'call.member_updated_permission' => CallMemberUpdatedPermissionEvent::class, + 'call.missed' => CallMissedEvent::class, + 'call.moderation_blur' => CallModerationBlurEvent::class, + 'call.moderation_warning' => CallModerationWarningEvent::class, + 'call.notification' => CallNotificationEvent::class, + 'call.permission_request' => PermissionRequestEvent::class, + 'call.permissions_updated' => UpdatedCallPermissionsEvent::class, + 'call.reaction_new' => CallReactionEvent::class, + 'call.recording_failed' => CallRecordingFailedEvent::class, + 'call.recording_ready' => CallRecordingReadyEvent::class, + 'call.recording_started' => CallRecordingStartedEvent::class, + 'call.recording_stopped' => CallRecordingStoppedEvent::class, + 'call.rejected' => CallRejectedEvent::class, + 'call.ring' => CallRingEvent::class, + 'call.rtmp_broadcast_failed' => CallRtmpBroadcastFailedEvent::class, + 'call.rtmp_broadcast_started' => CallRtmpBroadcastStartedEvent::class, + 'call.rtmp_broadcast_stopped' => CallRtmpBroadcastStoppedEvent::class, + 'call.session_ended' => CallSessionEndedEvent::class, + 'call.session_participant_count_updated' => CallSessionParticipantCountsUpdatedEvent::class, + 'call.session_participant_joined' => CallSessionParticipantJoinedEvent::class, + 'call.session_participant_left' => CallSessionParticipantLeftEvent::class, + 'call.session_started' => CallSessionStartedEvent::class, + 'call.stats_report_ready' => CallStatsReportReadyEvent::class, + 'call.transcription_failed' => CallTranscriptionFailedEvent::class, + 'call.transcription_ready' => CallTranscriptionReadyEvent::class, + 'call.transcription_started' => CallTranscriptionStartedEvent::class, + 'call.transcription_stopped' => CallTranscriptionStoppedEvent::class, + 'call.unblocked_user' => UnblockedUserEvent::class, + 'call.updated' => CallUpdatedEvent::class, + 'call.user_feedback_submitted' => CallUserFeedbackSubmittedEvent::class, + 'call.user_muted' => CallUserMutedEvent::class, + 'campaign.completed' => CampaignCompletedEvent::class, + 'campaign.started' => CampaignStartedEvent::class, + 'channel.created' => ChannelCreatedEvent::class, + 'channel.deleted' => ChannelDeletedEvent::class, + 'channel.frozen' => ChannelFrozenEvent::class, + 'channel.hidden' => ChannelHiddenEvent::class, + 'channel.max_streak_changed' => MaxStreakChangedEvent::class, + 'channel.muted' => ChannelMutedEvent::class, + 'channel.truncated' => ChannelTruncatedEvent::class, + 'channel.unfrozen' => ChannelUnFrozenEvent::class, + 'channel.unmuted' => ChannelUnmutedEvent::class, + 'channel.updated' => ChannelUpdatedEvent::class, + 'channel.visible' => ChannelVisibleEvent::class, + 'channel_batch_update.completed' => ChannelBatchCompletedEvent::class, + 'channel_batch_update.started' => ChannelBatchStartedEvent::class, + 'custom' => CustomVideoEvent::class, + 'export.bulk_image_moderation.error' => AsyncExportErrorEvent::class, + 'export.bulk_image_moderation.success' => AsyncBulkImageModerationEvent::class, + 'export.channels.error' => AsyncExportErrorEvent::class, + 'export.channels.success' => AsyncExportChannelsEvent::class, + 'export.moderation_logs.error' => AsyncExportErrorEvent::class, + 'export.moderation_logs.success' => AsyncExportModerationLogsEvent::class, + 'export.users.error' => AsyncExportErrorEvent::class, + 'export.users.success' => AsyncExportUsersEvent::class, + 'feeds.activity.added' => ActivityAddedEvent::class, + 'feeds.activity.deleted' => ActivityDeletedEvent::class, + 'feeds.activity.feedback' => ActivityFeedbackEvent::class, + 'feeds.activity.marked' => ActivityMarkEvent::class, + 'feeds.activity.pinned' => ActivityPinnedEvent::class, + 'feeds.activity.reaction.added' => ActivityReactionAddedEvent::class, + 'feeds.activity.reaction.deleted' => ActivityReactionDeletedEvent::class, + 'feeds.activity.reaction.updated' => ActivityReactionUpdatedEvent::class, + 'feeds.activity.removed_from_feed' => ActivityRemovedFromFeedEvent::class, + 'feeds.activity.restored' => ActivityRestoredEvent::class, + 'feeds.activity.unpinned' => ActivityUnpinnedEvent::class, + 'feeds.activity.updated' => ActivityUpdatedEvent::class, + 'feeds.bookmark.added' => BookmarkAddedEvent::class, + 'feeds.bookmark.deleted' => BookmarkDeletedEvent::class, + 'feeds.bookmark.updated' => BookmarkUpdatedEvent::class, + 'feeds.bookmark_folder.deleted' => BookmarkFolderDeletedEvent::class, + 'feeds.bookmark_folder.updated' => BookmarkFolderUpdatedEvent::class, + 'feeds.comment.added' => CommentAddedEvent::class, + 'feeds.comment.deleted' => CommentDeletedEvent::class, + 'feeds.comment.reaction.added' => CommentReactionAddedEvent::class, + 'feeds.comment.reaction.deleted' => CommentReactionDeletedEvent::class, + 'feeds.comment.reaction.updated' => CommentReactionUpdatedEvent::class, + 'feeds.comment.updated' => CommentUpdatedEvent::class, + 'feeds.feed.created' => FeedCreatedEvent::class, + 'feeds.feed.deleted' => FeedDeletedEvent::class, + 'feeds.feed.updated' => FeedUpdatedEvent::class, + 'feeds.feed_group.changed' => FeedGroupChangedEvent::class, + 'feeds.feed_group.deleted' => FeedGroupDeletedEvent::class, + 'feeds.feed_member.added' => FeedMemberAddedEvent::class, + 'feeds.feed_member.removed' => FeedMemberRemovedEvent::class, + 'feeds.feed_member.updated' => FeedMemberUpdatedEvent::class, + 'feeds.follow.created' => FollowCreatedEvent::class, + 'feeds.follow.deleted' => FollowDeletedEvent::class, + 'feeds.follow.updated' => FollowUpdatedEvent::class, + 'feeds.notification_feed.updated' => NotificationFeedUpdatedEvent::class, + 'feeds.stories_feed.updated' => StoriesFeedUpdatedEvent::class, + 'flag.updated' => FlagUpdatedEvent::class, + 'ingress.error' => IngressErrorEvent::class, + 'ingress.started' => IngressStartedEvent::class, + 'ingress.stopped' => IngressStoppedEvent::class, + 'member.added' => MemberAddedEvent::class, + 'member.removed' => MemberRemovedEvent::class, + 'member.updated' => MemberUpdatedEvent::class, + 'message.deleted' => MessageDeletedEvent::class, + 'message.flagged' => MessageFlaggedEvent::class, + 'message.new' => MessageNewEvent::class, + 'message.pending' => PendingMessageEvent::class, + 'message.read' => MessageReadEvent::class, + 'message.unblocked' => MessageUnblockedEvent::class, + 'message.undeleted' => MessageUndeletedEvent::class, + 'message.updated' => MessageUpdatedEvent::class, + 'moderation.custom_action' => ModerationCustomActionEvent::class, + 'moderation.flagged' => ModerationFlaggedEvent::class, + 'moderation.mark_reviewed' => ModerationMarkReviewedEvent::class, + 'moderation_check.completed' => ModerationCheckCompletedEvent::class, + 'moderation_rule.triggered' => ModerationRulesTriggeredEvent::class, + 'notification.mark_unread' => NotificationMarkUnreadEvent::class, + 'notification.reminder_due' => ReminderNotificationEvent::class, + 'notification.thread_message_new' => NotificationThreadMessageNewEvent::class, + 'reaction.deleted' => ReactionDeletedEvent::class, + 'reaction.new' => ReactionNewEvent::class, + 'reaction.updated' => ReactionUpdatedEvent::class, + 'reminder.created' => ReminderCreatedEvent::class, + 'reminder.deleted' => ReminderDeletedEvent::class, + 'reminder.updated' => ReminderUpdatedEvent::class, + 'review_queue_item.new' => ReviewQueueItemNewEvent::class, + 'review_queue_item.updated' => ReviewQueueItemUpdatedEvent::class, + 'thread.updated' => ThreadUpdatedEvent::class, + 'user.banned' => UserBannedEvent::class, + 'user.deactivated' => UserDeactivatedEvent::class, + 'user.deleted' => UserDeletedEvent::class, + 'user.flagged' => UserFlaggedEvent::class, + 'user.messages.deleted' => UserMessagesDeletedEvent::class, + 'user.muted' => UserMutedEvent::class, + 'user.reactivated' => UserReactivatedEvent::class, + 'user.unbanned' => UserUnbannedEvent::class, + 'user.unmuted' => UserUnmutedEvent::class, + 'user.unread_message_reminder' => UserUnreadReminderEvent::class, + 'user.updated' => UserUpdatedEvent::class, + ]; + + return $eventClassMap[$eventType] ?? null; + } + + /** + * Verify the HMAC-SHA256 signature of a webhook payload. + * + * @param string $body The raw request body + * @param string $signature The signature from the X-Signature header + * @param string $secret Your webhook secret (found in the Stream Dashboard) + * @return bool true if the signature is valid, false otherwise + */ + public static function verifySignature(string $body, string $signature, string $secret): bool + { + $expected = hash_hmac('sha256', $body, $secret); + return hash_equals($signature, $expected); + } +} diff --git a/src/GeneratedModels/AIImageConfig.php b/src/GeneratedModels/AIImageConfig.php index 498715a..072b9a3 100644 --- a/src/GeneratedModels/AIImageConfig.php +++ b/src/GeneratedModels/AIImageConfig.php @@ -3,25 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $async - * @property bool|null $enabled - * @property array|null $ocrRules - * @property array|null $rules - */ class AIImageConfig extends BaseModel { public function __construct( public ?bool $async = null, public ?bool $enabled = null, - /** @var array|null */ - #[ArrayOf(OCRRule::class)] - public ?array $ocrRules = null, /** @var array|null */ #[ArrayOf(AWSRekognitionRule::class)] public ?array $rules = null, + /** @var array|null */ + #[ArrayOf(OCRRule::class)] + public ?array $ocrRules = null, ) { } diff --git a/src/GeneratedModels/AITextConfig.php b/src/GeneratedModels/AITextConfig.php index a06bb64..de69a48 100644 --- a/src/GeneratedModels/AITextConfig.php +++ b/src/GeneratedModels/AITextConfig.php @@ -3,15 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $async - * @property bool|null $enabled - * @property string|null $profile - * @property array|null $rules - * @property array|null $severityRules - */ class AITextConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/AIVideoConfig.php b/src/GeneratedModels/AIVideoConfig.php index 030e09d..40ba94c 100644 --- a/src/GeneratedModels/AIVideoConfig.php +++ b/src/GeneratedModels/AIVideoConfig.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $async - * @property bool|null $enabled - * @property array|null $rules - */ class AIVideoConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/APIError.php b/src/GeneratedModels/APIError.php index b7e81e6..6654dff 100644 --- a/src/GeneratedModels/APIError.php +++ b/src/GeneratedModels/APIError.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $code - * @property string $duration - * @property string $message - * @property string $moreInfo - * @property int $statusCode - * @property array $details - * @property bool|null $unrecoverable - * @property array|null $exceptionFields - */ class APIError extends BaseModel { public function __construct( public ?int $code = null, // API error code - public ?string $duration = null, // Request duration public ?string $message = null, // Message describing an error - public ?string $moreInfo = null, // URL with additional information + public ?array $exceptionFields = null, // Additional error info public ?int $statusCode = null, // Response HTTP status code + public ?string $duration = null, // Request duration + public ?string $moreInfo = null, // URL with additional information public ?array $details = null, // Additional error-specific information public ?bool $unrecoverable = null, // Flag that indicates if the error is unrecoverable, requests that return unrecoverable errors should not be retried, this error only applies to the request that caused it - public ?array $exceptionFields = null, // Additional error info ) { } diff --git a/src/GeneratedModels/APNConfig.php b/src/GeneratedModels/APNConfig.php index a081d29..fefcf07 100644 --- a/src/GeneratedModels/APNConfig.php +++ b/src/GeneratedModels/APNConfig.php @@ -3,33 +3,19 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $authKey - * @property string|null $authType - * @property string|null $bundleID - * @property bool|null $development - * @property bool|null $disabled - * @property string|null $host - * @property string|null $keyID - * @property string|null $notificationTemplate - * @property string|null $p12Cert - * @property string|null $teamID - */ class APNConfig extends BaseModel { public function __construct( - public ?string $authKey = null, public ?string $authType = null, - public ?string $bundleID = null, public ?bool $development = null, - public ?bool $disabled = null, public ?string $host = null, + public ?string $bundleID = null, + public ?bool $disabled = null, + public ?string $authKey = null, public ?string $keyID = null, - public ?string $notificationTemplate = null, - public ?string $p12Cert = null, public ?string $teamID = null, + public ?string $p12Cert = null, + public ?string $notificationTemplate = null, ) { } diff --git a/src/GeneratedModels/APNConfigFields.php b/src/GeneratedModels/APNConfigFields.php index decd5db..1dd04d0 100644 --- a/src/GeneratedModels/APNConfigFields.php +++ b/src/GeneratedModels/APNConfigFields.php @@ -3,33 +3,19 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $development - * @property bool $enabled - * @property string|null $authKey - * @property string|null $authType - * @property string|null $bundleID - * @property string|null $host - * @property string|null $keyID - * @property string|null $notificationTemplate - * @property string|null $p12Cert - * @property string|null $teamID - */ class APNConfigFields extends BaseModel { public function __construct( - public ?bool $development = null, public ?bool $enabled = null, - public ?string $authKey = null, + public ?bool $development = null, public ?string $authType = null, - public ?string $bundleID = null, + public ?string $notificationTemplate = null, public ?string $host = null, + public ?string $bundleID = null, + public ?string $teamID = null, public ?string $keyID = null, - public ?string $notificationTemplate = null, + public ?string $authKey = null, public ?string $p12Cert = null, - public ?string $teamID = null, ) { } diff --git a/src/GeneratedModels/APNS.php b/src/GeneratedModels/APNS.php index 88f98e0..90e2216 100644 --- a/src/GeneratedModels/APNS.php +++ b/src/GeneratedModels/APNS.php @@ -3,24 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $body - * @property string $title - * @property int|null $contentAvailable - * @property int|null $mutableContent - * @property string|null $sound - * @property object|null $data - */ class APNS extends BaseModel { public function __construct( - public ?string $body = null, public ?string $title = null, + public ?string $body = null, + public ?string $sound = null, public ?int $contentAvailable = null, public ?int $mutableContent = null, - public ?string $sound = null, public ?object $data = null, ) { } diff --git a/src/GeneratedModels/APNSPayload.php b/src/GeneratedModels/APNSPayload.php new file mode 100644 index 0000000..bd154c2 --- /dev/null +++ b/src/GeneratedModels/APNSPayload.php @@ -0,0 +1,20 @@ +|null $attachments - * @property array|null $collectionRefs - * @property array|null $filterTags - * @property array|null $interestTags - * @property array|null $mentionedUserIds - * @property object|null $custom - * @property ActivityLocation|null $location - * @property object|null $searchData - */ class ActivityRequest extends BaseModel { public function __construct( + public ?ActivityLocation $location = null, + public ?string $id = null, // Optional ID for the activity public ?string $type = null, // Type of activity + public ?string $userID = null, // ID of the user creating the activity public ?array $feeds = null, // List of feeds to add the activity to with a default max limit of 25 feeds - public ?bool $createNotificationActivity = null, // Whether to create notification activities for mentioned users - public ?string $expiresAt = null, // Expiration time for the activity - public ?string $id = null, // Optional ID for the activity - public ?string $parentID = null, // ID of parent activity for replies/comments - public ?string $pollID = null, // ID of a poll to attach to activity - public ?string $restrictReplies = null, // Controls who can add comments/replies to this activity. Options: 'everyone' (default - anyone can reply), 'people_i_follow' (only people the activity creator follows can reply), 'nobody' (no one can reply) - public ?bool $skipEnrichUrl = null, // Whether to skip URL enrichment for the activity - public ?bool $skipPush = null, // Whether to skip push notifications public ?string $text = null, // Text content of the activity - public ?string $userID = null, // ID of the user creating the activity - public ?string $visibility = null, // Visibility setting for the activity - public ?string $visibilityTag = null, // If visibility is 'tag', this is the tag name and is required - /** @var array|null List of attachments for the activity */ + /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, // List of attachments for the activity - public ?array $collectionRefs = null, // Collections that this activity references + public ?string $visibility = null, // Visibility setting for the activity. One of: public, private, tag + public ?string $visibilityTag = null, // If visibility is 'tag', this is the tag name and is required + public ?string $restrictReplies = null, // Controls who can add comments/replies to this activity. One of: everyone, people_i_follow, nobody + public ?string $expiresAt = null, // Expiration time for the activity + public ?array $mentionedUserIds = null, // List of users mentioned in the activity + public ?object $searchData = null, // Additional data for search indexing public ?array $filterTags = null, // Tags for filtering activities public ?array $interestTags = null, // Tags for indicating user interests - public ?array $mentionedUserIds = null, // List of users mentioned in the activity + public ?array $collectionRefs = null, // Collections that this activity references + public ?string $parentID = null, // ID of parent activity for replies/comments + public ?string $pollID = null, // ID of a poll to attach to activity public ?object $custom = null, // Custom data for the activity - public ?ActivityLocation $location = null, - public ?object $searchData = null, // Additional data for search indexing + public ?bool $skipEnrichUrl = null, // Whether to skip URL enrichment for the activity + public ?bool $createNotificationActivity = null, // Whether to create notification activities for mentioned users + public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) + public ?bool $skipPush = null, // Whether to skip push notifications ) { } diff --git a/src/GeneratedModels/ActivityResponse.php b/src/GeneratedModels/ActivityResponse.php index 27feba8..213b30a 100644 --- a/src/GeneratedModels/ActivityResponse.php +++ b/src/GeneratedModels/ActivityResponse.php @@ -3,109 +3,71 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $bookmarkCount - * @property int $commentCount - * @property \DateTime $createdAt - * @property bool $hidden - * @property string $id - * @property int $popularity - * @property bool $preview - * @property int $reactionCount - * @property string $restrictReplies - * @property int $score - * @property int $shareCount - * @property string $type - * @property \DateTime $updatedAt - * @property string $visibility - * @property array $attachments - * @property array $comments - * @property array $feeds - * @property array $filterTags - * @property array $interestTags - * @property array $latestReactions - * @property array $mentionedUsers - * @property array $ownBookmarks - * @property array $ownReactions - * @property array $collections - * @property object $custom - * @property array $reactionGroups - * @property object $searchData - * @property UserResponse $user - * @property \DateTime|null $deletedAt - * @property \DateTime|null $editedAt - * @property \DateTime|null $expiresAt - * @property bool|null $isWatched - * @property string|null $moderationAction - * @property string|null $selectorSource - * @property string|null $text - * @property string|null $visibilityTag - * @property FeedResponse|null $currentFeed - * @property ActivityLocation|null $location - * @property ModerationV2Response|null $moderation - * @property NotificationContext|null $notificationContext - * @property ActivityResponse|null $parent - * @property PollResponseData|null $poll - */ class ActivityResponse extends BaseModel { public function __construct( - public ?int $bookmarkCount = null, // Number of bookmarks on the activity - public ?int $commentCount = null, // Number of comments on the activity - public ?\DateTime $createdAt = null, // When the activity was created - public ?bool $hidden = null, // If this activity is hidden by this user (using activity feedback) + public ?FeedResponse $currentFeed = null, + public ?ActivityLocation $location = null, + public ?ModerationV2Response $moderation = null, + public ?NotificationContext $notificationContext = null, + public ?ActivityResponse $parent = null, + public ?PollResponseData $poll = null, + public ?UserResponse $user = null, public ?string $id = null, // Unique identifier for the activity - public ?int $popularity = null, // Popularity score of the activity - public ?bool $preview = null, // If this activity is obfuscated for this user. For premium content where you want to show a preview - public ?int $reactionCount = null, // Number of reactions to the activity - public ?string $restrictReplies = null, // Controls who can reply to this activity. Values: everyone, people_i_follow, nobody - public ?int $score = null, // Ranking score for this activity - public ?int $shareCount = null, // Number of times the activity was shared public ?string $type = null, // Type of activity + public ?array $feeds = null, // List of feed IDs containing this activity + public ?string $visibility = null, // Visibility setting for the activity. One of: public, private, tag + public ?string $visibilityTag = null, // If visibility is 'tag', this is the tag name + public ?string $restrictReplies = null, // Controls who can add comments/replies to this activity. One of: everyone, people_i_follow, nobody + public ?\DateTime $createdAt = null, // When the activity was created public ?\DateTime $updatedAt = null, // When the activity was last updated - public ?string $visibility = null, // Visibility setting for the activity - /** @var array|null Media attachments for the activity */ + /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, // Media attachments for the activity - /** @var array|null Latest 5 comments of this activity (comment replies excluded) */ + /** @var array|null */ + #[ArrayOf(UserResponse::class)] + public ?array $mentionedUsers = null, // Users mentioned in the activity + public ?object $custom = null, // Custom data for the activity + public ?int $popularity = null, // Popularity score of the activity + public ?int $score = null, // Ranking score for this activity + public ?string $selectorSource = null, // Which activity selector provided this activity (e.g., 'following', 'popular', 'interest'). Only set when using multiple activity selectors with ranking. + /** @var array|null */ #[ArrayOf(CommentResponse::class)] public ?array $comments = null, // Latest 5 comments of this activity (comment replies excluded) - public ?array $feeds = null, // List of feed IDs containing this activity + public ?string $text = null, // Text content of the activity + public ?\DateTime $editedAt = null, // When the activity was last edited + public ?\DateTime $deletedAt = null, // When the activity was deleted + public ?\DateTime $expiresAt = null, // When the activity will expire + public ?object $searchData = null, // Data for search indexing public ?array $filterTags = null, // Tags for filtering public ?array $interestTags = null, // Tags for user interests - /** @var array|null Recent reactions to the activity */ + public ?string $moderationAction = null, + public ?int $commentCount = null, // Number of comments on the activity + public ?int $bookmarkCount = null, // Number of bookmarks on the activity + public ?int $shareCount = null, // Number of times the activity was shared + public ?int $reactionCount = null, // Number of reactions to the activity + /** @var array|null */ #[ArrayOf(FeedsReactionResponse::class)] public ?array $latestReactions = null, // Recent reactions to the activity - /** @var array|null Users mentioned in the activity */ - #[ArrayOf(UserResponse::class)] - public ?array $mentionedUsers = null, // Users mentioned in the activity - /** @var array|null Current user's bookmarks for this activity */ - #[ArrayOf(BookmarkResponse::class)] - public ?array $ownBookmarks = null, // Current user's bookmarks for this activity - /** @var array|null Current user's reactions to this activity */ + /** @var array|null */ + #[MapOf(FeedsReactionGroupResponse::class)] + public ?array $reactionGroups = null, // Grouped reactions by type + /** @var array|null */ #[ArrayOf(FeedsReactionResponse::class)] public ?array $ownReactions = null, // Current user's reactions to this activity + /** @var array|null */ + #[ArrayOf(BookmarkResponse::class)] + public ?array $ownBookmarks = null, // Current user's bookmarks for this activity + /** @var array|null */ + #[MapOf(EnrichedCollectionResponse::class)] public ?array $collections = null, // Enriched collection data referenced by this activity - public ?object $custom = null, // Custom data for the activity - public ?array $reactionGroups = null, // Grouped reactions by type - public ?object $searchData = null, // Data for search indexing - public ?UserResponse $user = null, - public ?\DateTime $deletedAt = null, // When the activity was deleted - public ?\DateTime $editedAt = null, // When the activity was last edited - public ?\DateTime $expiresAt = null, // When the activity will expire + /** @var array|null */ + #[ArrayOf(FeedsReactionResponse::class)] + public ?array $friendReactions = null, // Reactions from users the current user follows or has mutual follows with + public ?int $friendReactionCount = null, // Total count of reactions from friends on this activity + public ?bool $hidden = null, // If this activity is hidden by this user (using activity feedback) + public ?bool $preview = null, // If this activity is obfuscated for this user. For premium content where you want to show a preview public ?bool $isWatched = null, - public ?string $moderationAction = null, - public ?string $selectorSource = null, // Which activity selector provided this activity (e.g., 'following', 'popular', 'interest'). Only set when using multiple activity selectors with ranking. - public ?string $text = null, // Text content of the activity - public ?string $visibilityTag = null, // If visibility is 'tag', this is the tag name - public ?FeedResponse $currentFeed = null, - public ?ActivityLocation $location = null, - public ?ModerationV2Response $moderation = null, - public ?NotificationContext $notificationContext = null, - public ?ActivityResponse $parent = null, - public ?PollResponseData $poll = null, ) { } diff --git a/src/GeneratedModels/ActivityRestoredEvent.php b/src/GeneratedModels/ActivityRestoredEvent.php index 43c52c2..17dccc7 100644 --- a/src/GeneratedModels/ActivityRestoredEvent.php +++ b/src/GeneratedModels/ActivityRestoredEvent.php @@ -5,27 +5,18 @@ namespace GetStream\GeneratedModels; /** * Emitted when an activity is restored. - * - * @property \DateTime $createdAt - * @property string $fid - * @property ActivityResponse $activity - * @property object $custom - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class ActivityRestoredEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, public ?ActivityResponse $activity = null, - public ?object $custom = null, + public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of the event - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, + public ?string $fid = null, + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/ActivitySelectorConfig.php b/src/GeneratedModels/ActivitySelectorConfig.php index f0f430d..d8c603d 100644 --- a/src/GeneratedModels/ActivitySelectorConfig.php +++ b/src/GeneratedModels/ActivitySelectorConfig.php @@ -3,28 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $type - * @property string|null $cutoffTime - * @property string|null $cutoffWindow - * @property int|null $minPopularity - * @property array|null $sort - * @property object|null $filter - * @property object|null $params - */ class ActivitySelectorConfig extends BaseModel { public function __construct( - public ?string $type = null, // Type of selector + public ?string $type = null, // Type of selector. One of: popular, proximity, following, current_feed, query, interest, follow_suggestion + public ?object $filter = null, // Filter for activity selection + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sort parameters for activity selection public ?string $cutoffTime = null, // Time threshold for activity selection (string). Expected RFC3339 format (e.g., 2006-01-02T15:04:05Z07:00). Cannot be used together with cutoff_window public ?string $cutoffWindow = null, // Flexible relative time window for activity selection (e.g., '1h', '3d', '1y'). Activities older than this duration will be filtered out. Cannot be used together with cutoff_time public ?int $minPopularity = null, // Minimum popularity threshold - /** @var array|null Sort parameters for activity selection */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sort parameters for activity selection - public ?object $filter = null, // Filter for activity selection public ?object $params = null, ) { } diff --git a/src/GeneratedModels/ActivitySelectorConfigResponse.php b/src/GeneratedModels/ActivitySelectorConfigResponse.php index 883b140..957418b 100644 --- a/src/GeneratedModels/ActivitySelectorConfigResponse.php +++ b/src/GeneratedModels/ActivitySelectorConfigResponse.php @@ -3,28 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $type - * @property \DateTime|null $cutoffTime - * @property string|null $cutoffWindow - * @property int|null $minPopularity - * @property array|null $sort - * @property object|null $filter - * @property object|null $params - */ class ActivitySelectorConfigResponse extends BaseModel { public function __construct( public ?string $type = null, // Type of selector + public ?object $filter = null, // Filter for activity selection + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sort parameters for activity selection public ?\DateTime $cutoffTime = null, // Time threshold for activity selection (timestamp) public ?string $cutoffWindow = null, // Flexible relative time window for activity selection (e.g., '1h', '3d', '1y') public ?int $minPopularity = null, // Minimum popularity threshold - /** @var array|null Sort parameters for activity selection */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sort parameters for activity selection - public ?object $filter = null, // Filter for activity selection public ?object $params = null, // Generic params for selector-specific configuration ) { } diff --git a/src/GeneratedModels/ActivityUnpinnedEvent.php b/src/GeneratedModels/ActivityUnpinnedEvent.php index 2845de6..e18235e 100644 --- a/src/GeneratedModels/ActivityUnpinnedEvent.php +++ b/src/GeneratedModels/ActivityUnpinnedEvent.php @@ -5,27 +5,18 @@ namespace GetStream\GeneratedModels; /** * Emitted when an activity is unpinned. - * - * @property \DateTime $createdAt - * @property string $fid - * @property object $custom - * @property PinActivityResponse $pinnedActivity - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class ActivityUnpinnedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, // The ID of the feed - public ?object $custom = null, public ?PinActivityResponse $pinnedActivity = null, + public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "feeds.activity.unpinned" in this case - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, + public ?string $fid = null, // The ID of the feed + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/ActivityUpdatedEvent.php b/src/GeneratedModels/ActivityUpdatedEvent.php index ac827ed..cb0f018 100644 --- a/src/GeneratedModels/ActivityUpdatedEvent.php +++ b/src/GeneratedModels/ActivityUpdatedEvent.php @@ -5,27 +5,18 @@ namespace GetStream\GeneratedModels; /** * Emitted when an activity is updated. - * - * @property \DateTime $createdAt - * @property string $fid - * @property ActivityResponse $activity - * @property object $custom - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class ActivityUpdatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, public ?ActivityResponse $activity = null, - public ?object $custom = null, + public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of the event - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, + public ?string $fid = null, + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/AddActivityRequest.php b/src/GeneratedModels/AddActivityRequest.php index b7add14..bda40d1 100644 --- a/src/GeneratedModels/AddActivityRequest.php +++ b/src/GeneratedModels/AddActivityRequest.php @@ -3,59 +3,34 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $type - * @property array $feeds - * @property bool|null $createNotificationActivity - * @property string|null $expiresAt - * @property string|null $id - * @property string|null $parentID - * @property string|null $pollID - * @property string|null $restrictReplies - * @property bool|null $skipEnrichUrl - * @property bool|null $skipPush - * @property string|null $text - * @property string|null $userID - * @property string|null $visibility - * @property string|null $visibilityTag - * @property array|null $attachments - * @property array|null $collectionRefs - * @property array|null $filterTags - * @property array|null $interestTags - * @property array|null $mentionedUserIds - * @property object|null $custom - * @property ActivityLocation|null $location - * @property object|null $searchData - */ class AddActivityRequest extends BaseModel { public function __construct( + public ?ActivityLocation $location = null, + public ?string $id = null, // Optional ID for the activity public ?string $type = null, // Type of activity + public ?string $userID = null, // ID of the user creating the activity public ?array $feeds = null, // List of feeds to add the activity to with a default max limit of 25 feeds - public ?bool $createNotificationActivity = null, // Whether to create notification activities for mentioned users - public ?string $expiresAt = null, // Expiration time for the activity - public ?string $id = null, // Optional ID for the activity - public ?string $parentID = null, // ID of parent activity for replies/comments - public ?string $pollID = null, // ID of a poll to attach to activity - public ?string $restrictReplies = null, // Controls who can add comments/replies to this activity. Options: 'everyone' (default - anyone can reply), 'people_i_follow' (only people the activity creator follows can reply), 'nobody' (no one can reply) - public ?bool $skipEnrichUrl = null, // Whether to skip URL enrichment for the activity - public ?bool $skipPush = null, // Whether to skip push notifications public ?string $text = null, // Text content of the activity - public ?string $userID = null, // ID of the user creating the activity - public ?string $visibility = null, // Visibility setting for the activity - public ?string $visibilityTag = null, // If visibility is 'tag', this is the tag name and is required - /** @var array|null List of attachments for the activity */ + /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, // List of attachments for the activity - public ?array $collectionRefs = null, // Collections that this activity references + public ?string $visibility = null, // Visibility setting for the activity. One of: public, private, tag + public ?string $visibilityTag = null, // If visibility is 'tag', this is the tag name and is required + public ?string $restrictReplies = null, // Controls who can add comments/replies to this activity. One of: everyone, people_i_follow, nobody + public ?string $expiresAt = null, // Expiration time for the activity + public ?array $mentionedUserIds = null, // List of users mentioned in the activity + public ?object $searchData = null, // Additional data for search indexing public ?array $filterTags = null, // Tags for filtering activities public ?array $interestTags = null, // Tags for indicating user interests - public ?array $mentionedUserIds = null, // List of users mentioned in the activity + public ?array $collectionRefs = null, // Collections that this activity references + public ?string $parentID = null, // ID of parent activity for replies/comments + public ?string $pollID = null, // ID of a poll to attach to activity public ?object $custom = null, // Custom data for the activity - public ?ActivityLocation $location = null, - public ?object $searchData = null, // Additional data for search indexing + public ?bool $skipEnrichUrl = null, // Whether to skip URL enrichment for the activity + public ?bool $createNotificationActivity = null, // Whether to create notification activities for mentioned users + public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) + public ?bool $skipPush = null, // Whether to skip push notifications ) { } diff --git a/src/GeneratedModels/AddActivityResponse.php b/src/GeneratedModels/AddActivityResponse.php index 24ac42b..8146267 100644 --- a/src/GeneratedModels/AddActivityResponse.php +++ b/src/GeneratedModels/AddActivityResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ActivityResponse $activity - * @property int|null $mentionNotificationsCreated - */ class AddActivityResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?ActivityResponse $activity = null, public ?int $mentionNotificationsCreated = null, // Number of mention notification activities created for mentioned users + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/AddBookmarkRequest.php b/src/GeneratedModels/AddBookmarkRequest.php index 2d633db..a82ae8c 100644 --- a/src/GeneratedModels/AddBookmarkRequest.php +++ b/src/GeneratedModels/AddBookmarkRequest.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $folderID - * @property string|null $userID - * @property object|null $custom - * @property AddFolderRequest|null $newFolder - * @property UserRequest|null $user - */ class AddBookmarkRequest extends BaseModel { public function __construct( - public ?string $folderID = null, // ID of the folder to add the bookmark to - public ?string $userID = null, - public ?object $custom = null, // Custom data for the bookmark public ?AddFolderRequest $newFolder = null, public ?UserRequest $user = null, + public ?string $folderID = null, // ID of the folder to add the bookmark to + public ?object $custom = null, // Custom data for the bookmark + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/AddBookmarkResponse.php b/src/GeneratedModels/AddBookmarkResponse.php index 2389c9c..cccb5eb 100644 --- a/src/GeneratedModels/AddBookmarkResponse.php +++ b/src/GeneratedModels/AddBookmarkResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property BookmarkResponse $bookmark - */ class AddBookmarkResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?BookmarkResponse $bookmark = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/AddCommentReactionRequest.php b/src/GeneratedModels/AddCommentReactionRequest.php index 40cab77..6481af0 100644 --- a/src/GeneratedModels/AddCommentReactionRequest.php +++ b/src/GeneratedModels/AddCommentReactionRequest.php @@ -3,27 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $type - * @property bool|null $createNotificationActivity - * @property bool|null $enforceUnique - * @property bool|null $skipPush - * @property string|null $userID - * @property object|null $custom - * @property UserRequest|null $user - */ class AddCommentReactionRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $type = null, // The type of reaction, eg upvote, like, ... + public ?object $custom = null, // Optional custom data to add to the reaction public ?bool $createNotificationActivity = null, // Whether to create a notification activity for this reaction - public ?bool $enforceUnique = null, // Whether to enforce unique reactions per user (remove other reaction types from the user when adding this one) + public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) public ?bool $skipPush = null, + public ?bool $enforceUnique = null, // Whether to enforce unique reactions per user (remove other reaction types from the user when adding this one) public ?string $userID = null, - public ?object $custom = null, // Optional custom data to add to the reaction - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/AddCommentReactionResponse.php b/src/GeneratedModels/AddCommentReactionResponse.php index ff67c17..7a48321 100644 --- a/src/GeneratedModels/AddCommentReactionResponse.php +++ b/src/GeneratedModels/AddCommentReactionResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property CommentResponse $comment - * @property FeedsReactionResponse $reaction - * @property bool|null $notificationCreated - */ class AddCommentReactionResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request public ?CommentResponse $comment = null, public ?FeedsReactionResponse $reaction = null, public ?bool $notificationCreated = null, // Whether a notification activity was successfully created + public ?string $duration = null, // Duration of the request ) { } diff --git a/src/GeneratedModels/AddCommentRequest.php b/src/GeneratedModels/AddCommentRequest.php index 9392ab0..3bd5114 100644 --- a/src/GeneratedModels/AddCommentRequest.php +++ b/src/GeneratedModels/AddCommentRequest.php @@ -3,41 +3,25 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $comment - * @property bool|null $createNotificationActivity - * @property string|null $id - * @property string|null $objectID - * @property string|null $objectType - * @property string|null $parentID - * @property bool|null $skipEnrichUrl - * @property bool|null $skipPush - * @property string|null $userID - * @property array|null $attachments - * @property array|null $mentionedUserIds - * @property object|null $custom - * @property UserRequest|null $user - */ class AddCommentRequest extends BaseModel { public function __construct( - public ?string $comment = null, // Text content of the comment - public ?bool $createNotificationActivity = null, // Whether to create a notification activity for this comment + public ?UserRequest $user = null, public ?string $id = null, // Optional custom ID for the comment (max 255 characters). If not provided, a UUID will be generated. public ?string $objectID = null, // ID of the object to comment on. Required for root comments public ?string $objectType = null, // Type of the object to comment on. Required for root comments - public ?string $parentID = null, // ID of parent comment for replies. When provided, object_id and object_type are automatically inherited from the parent comment. - public ?bool $skipEnrichUrl = null, // Whether to skip URL enrichment for this comment - public ?bool $skipPush = null, - public ?string $userID = null, - /** @var array|null Media attachments for the reply */ + public ?string $comment = null, // Text content of the comment + /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, // Media attachments for the reply public ?array $mentionedUserIds = null, // List of users mentioned in the reply + public ?string $parentID = null, // ID of parent comment for replies. When provided, object_id and object_type are automatically inherited from the parent comment. public ?object $custom = null, // Custom data for the comment - public ?UserRequest $user = null, + public ?bool $createNotificationActivity = null, // Whether to create a notification activity for this comment + public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) + public ?bool $skipPush = null, + public ?bool $skipEnrichUrl = null, // Whether to skip URL enrichment for this comment + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/AddCommentResponse.php b/src/GeneratedModels/AddCommentResponse.php index 4db2156..7f720f2 100644 --- a/src/GeneratedModels/AddCommentResponse.php +++ b/src/GeneratedModels/AddCommentResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property CommentResponse $comment - * @property int|null $mentionNotificationsCreated - * @property bool|null $notificationCreated - */ class AddCommentResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?CommentResponse $comment = null, - public ?int $mentionNotificationsCreated = null, // Number of mention notification activities created for mentioned users public ?bool $notificationCreated = null, // Whether a notification activity was successfully created + public ?int $mentionNotificationsCreated = null, // Number of mention notification activities created for mentioned users + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/AddCommentsBatchRequest.php b/src/GeneratedModels/AddCommentsBatchRequest.php index d0976ef..bf091cf 100644 --- a/src/GeneratedModels/AddCommentsBatchRequest.php +++ b/src/GeneratedModels/AddCommentsBatchRequest.php @@ -3,15 +3,10 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $comments - */ class AddCommentsBatchRequest extends BaseModel { public function __construct( - /** @var array|null List of comments to add */ + /** @var array|null */ #[ArrayOf(AddCommentRequest::class)] public ?array $comments = null, // List of comments to add ) { diff --git a/src/GeneratedModels/AddCommentsBatchResponse.php b/src/GeneratedModels/AddCommentsBatchResponse.php index 707a45f..18d6bd2 100644 --- a/src/GeneratedModels/AddCommentsBatchResponse.php +++ b/src/GeneratedModels/AddCommentsBatchResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $comments - */ class AddCommentsBatchResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of comments added */ + /** @var array|null */ #[ArrayOf(CommentResponse::class)] public ?array $comments = null, // List of comments added + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/AddFolderRequest.php b/src/GeneratedModels/AddFolderRequest.php index 5aa0c84..0e3ea0f 100644 --- a/src/GeneratedModels/AddFolderRequest.php +++ b/src/GeneratedModels/AddFolderRequest.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $name - * @property object|null $custom - */ class AddFolderRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/AddReactionRequest.php b/src/GeneratedModels/AddReactionRequest.php index 770dd77..581ab4c 100644 --- a/src/GeneratedModels/AddReactionRequest.php +++ b/src/GeneratedModels/AddReactionRequest.php @@ -3,27 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $type - * @property bool|null $createNotificationActivity - * @property bool|null $enforceUnique - * @property bool|null $skipPush - * @property string|null $userID - * @property object|null $custom - * @property UserRequest|null $user - */ class AddReactionRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $type = null, // Type of reaction + public ?object $custom = null, // Custom data for the reaction public ?bool $createNotificationActivity = null, // Whether to create a notification activity for this reaction - public ?bool $enforceUnique = null, // Whether to enforce unique reactions per user (remove other reaction types from the user when adding this one) + public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) public ?bool $skipPush = null, + public ?bool $enforceUnique = null, // Whether to enforce unique reactions per user (remove other reaction types from the user when adding this one) public ?string $userID = null, - public ?object $custom = null, // Custom data for the reaction - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/AddReactionResponse.php b/src/GeneratedModels/AddReactionResponse.php index 8f26350..89a1c9a 100644 --- a/src/GeneratedModels/AddReactionResponse.php +++ b/src/GeneratedModels/AddReactionResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ActivityResponse $activity - * @property FeedsReactionResponse $reaction - * @property bool|null $notificationCreated - */ class AddReactionResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?ActivityResponse $activity = null, public ?FeedsReactionResponse $reaction = null, public ?bool $notificationCreated = null, // Whether a notification activity was successfully created + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/AggregatedActivityResponse.php b/src/GeneratedModels/AggregatedActivityResponse.php index 59e35b1..e117720 100644 --- a/src/GeneratedModels/AggregatedActivityResponse.php +++ b/src/GeneratedModels/AggregatedActivityResponse.php @@ -3,32 +3,19 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $activityCount - * @property \DateTime $createdAt - * @property string $group - * @property int $score - * @property \DateTime $updatedAt - * @property int $userCount - * @property bool $userCountTruncated - * @property array $activities - * @property bool|null $isWatched - */ class AggregatedActivityResponse extends BaseModel { public function __construct( + /** @var array|null */ + #[ArrayOf(ActivityResponse::class)] + public ?array $activities = null, // List of activities in this aggregation public ?int $activityCount = null, // Number of activities in this aggregation - public ?\DateTime $createdAt = null, // When the aggregation was created + public ?int $userCount = null, // Number of unique users in this aggregation + public ?bool $userCountTruncated = null, // Whether this activity group has been truncated due to exceeding the group size limit public ?string $group = null, // Grouping identifier public ?int $score = null, // Ranking score for this aggregation + public ?\DateTime $createdAt = null, // When the aggregation was created public ?\DateTime $updatedAt = null, // When the aggregation was last updated - public ?int $userCount = null, // Number of unique users in this aggregation - public ?bool $userCountTruncated = null, // Whether this activity group has been truncated due to exceeding the group size limit - /** @var array|null List of activities in this aggregation */ - #[ArrayOf(ActivityResponse::class)] - public ?array $activities = null, // List of activities in this aggregation public ?bool $isWatched = null, ) { } diff --git a/src/GeneratedModels/AggregationConfig.php b/src/GeneratedModels/AggregationConfig.php index 632ec88..4b050f6 100644 --- a/src/GeneratedModels/AggregationConfig.php +++ b/src/GeneratedModels/AggregationConfig.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $format - */ class AggregationConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/AppResponseFields.php b/src/GeneratedModels/AppResponseFields.php index 809ee67..b93c15b 100644 --- a/src/GeneratedModels/AppResponseFields.php +++ b/src/GeneratedModels/AppResponseFields.php @@ -3,121 +3,68 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $allowMultiUserDevices - * @property bool $asyncUrlEnrichEnabled - * @property bool $autoTranslationEnabled - * @property bool $campaignEnabled - * @property int $cdnExpirationSeconds - * @property string $customActionHandlerUrl - * @property bool $disableAuthChecks - * @property bool $disablePermissionsChecks - * @property string $enforceUniqueUsernames - * @property bool $guestUserCreationDisabled - * @property int $id - * @property bool $imageModerationEnabled - * @property int $maxAggregatedActivitiesLength - * @property bool $moderationBulkSubmitActionEnabled - * @property bool $moderationEnabled - * @property bool $moderationLlmConfigurabilityEnabled - * @property bool $moderationMultitenantBlocklistEnabled - * @property string $moderationWebhookUrl - * @property bool $multiTenantEnabled - * @property string $name - * @property string $organization - * @property string $permissionVersion - * @property string $placement - * @property int $remindersInterval - * @property string $snsKey - * @property string $snsSecret - * @property string $snsTopicArn - * @property string $sqsKey - * @property string $sqsSecret - * @property string $sqsUrl - * @property bool $suspended - * @property string $suspendedExplanation - * @property bool $useHookV2 - * @property bool $userResponseTimeEnabled - * @property string $webhookUrl - * @property array $eventHooks - * @property array $userSearchDisallowedRoles - * @property array $webhookEvents - * @property array $callTypes - * @property array $channelConfigs - * @property FileUploadConfig $fileUploadConfig - * @property array $grants - * @property FileUploadConfig $imageUploadConfig - * @property array $policies - * @property PushNotificationFields $pushNotifications - * @property string|null $beforeMessageSendHookUrl - * @property \DateTime|null $revokeTokensIssuedBefore - * @property array|null $allowedFlagReasons - * @property array|null $geofences - * @property array|null $imageModerationLabels - * @property DataDogInfo|null $datadogInfo - * @property ModerationDashboardPreferences|null $moderationDashboardPreferences - */ class AppResponseFields extends BaseModel { public function __construct( - public ?bool $allowMultiUserDevices = null, - public ?bool $asyncUrlEnrichEnabled = null, - public ?bool $autoTranslationEnabled = null, - public ?bool $campaignEnabled = null, - public ?int $cdnExpirationSeconds = null, - public ?string $customActionHandlerUrl = null, - public ?bool $disableAuthChecks = null, - public ?bool $disablePermissionsChecks = null, - public ?string $enforceUniqueUsernames = null, - public ?bool $guestUserCreationDisabled = null, + public ?DataDogInfo $datadogInfo = null, + public ?FileUploadConfig $fileUploadConfig = null, + public ?FileUploadConfig $imageUploadConfig = null, + public ?ModerationDashboardPreferences $moderationDashboardPreferences = null, + public ?PushNotificationFields $pushNotifications = null, public ?int $id = null, - public ?bool $imageModerationEnabled = null, - public ?int $maxAggregatedActivitiesLength = null, - public ?bool $moderationBulkSubmitActionEnabled = null, - public ?bool $moderationEnabled = null, - public ?bool $moderationLlmConfigurabilityEnabled = null, - public ?bool $moderationMultitenantBlocklistEnabled = null, - public ?string $moderationWebhookUrl = null, - public ?bool $multiTenantEnabled = null, public ?string $name = null, public ?string $organization = null, - public ?string $permissionVersion = null, public ?string $placement = null, - public ?int $remindersInterval = null, - public ?string $snsKey = null, - public ?string $snsSecret = null, - public ?string $snsTopicArn = null, - public ?string $sqsKey = null, - public ?string $sqsSecret = null, - public ?string $sqsUrl = null, - public ?bool $suspended = null, - public ?string $suspendedExplanation = null, - public ?bool $useHookV2 = null, - public ?bool $userResponseTimeEnabled = null, public ?string $webhookUrl = null, - /** @var array|null */ - #[ArrayOf(EventHook::class)] - public ?array $eventHooks = null, - public ?array $userSearchDisallowedRoles = null, - public ?array $webhookEvents = null, - public ?array $callTypes = null, + public ?string $moderationWebhookUrl = null, + /** @var array|null */ + #[MapOf(ChannelConfig::class)] public ?array $channelConfigs = null, - public ?FileUploadConfig $fileUploadConfig = null, - public ?array $grants = null, - public ?FileUploadConfig $imageUploadConfig = null, + /** @var array|null */ + #[MapOf(CallType::class)] + public ?array $callTypes = null, public ?array $policies = null, - public ?PushNotificationFields $pushNotifications = null, + public ?bool $suspended = null, + public ?string $suspendedExplanation = null, + public ?bool $disableAuthChecks = null, + public ?bool $disablePermissionsChecks = null, + public ?string $permissionVersion = null, + public ?array $userSearchDisallowedRoles = null, + public ?bool $multiTenantEnabled = null, + public ?bool $allowMultiUserDevices = null, + public ?bool $imageModerationEnabled = null, + public ?bool $asyncUrlEnrichEnabled = null, + public ?array $imageModerationLabels = null, + public ?array $allowedFlagReasons = null, + public ?bool $autoTranslationEnabled = null, public ?string $beforeMessageSendHookUrl = null, + public ?string $customActionHandlerUrl = null, + public ?string $enforceUniqueUsernames = null, + public ?string $sqsUrl = null, + public ?string $sqsKey = null, + public ?string $sqsSecret = null, + public ?string $snsTopicArn = null, + public ?string $snsKey = null, + public ?string $snsSecret = null, public ?\DateTime $revokeTokensIssuedBefore = null, - public ?array $allowedFlagReasons = null, + public ?array $grants = null, + public ?bool $campaignEnabled = null, + public ?array $webhookEvents = null, + public ?int $remindersInterval = null, + public ?int $cdnExpirationSeconds = null, /** @var array|null */ #[ArrayOf(GeofenceResponse::class)] public ?array $geofences = null, - public ?array $imageModerationLabels = null, - public ?DataDogInfo $datadogInfo = null, - public ?ModerationDashboardPreferences $moderationDashboardPreferences = null, + public ?bool $moderationEnabled = null, + public ?bool $moderationMultitenantBlocklistEnabled = null, + public ?bool $guestUserCreationDisabled = null, + /** @var array|null */ + #[ArrayOf(EventHook::class)] + public ?array $eventHooks = null, + public ?bool $useHookV2 = null, + public ?bool $userResponseTimeEnabled = null, + public ?bool $moderationLlmConfigurabilityEnabled = null, + public ?int $maxAggregatedActivitiesLength = null, ) { } diff --git a/src/GeneratedModels/AppealAcceptedEvent.php b/src/GeneratedModels/AppealAcceptedEvent.php index 282ac7f..8c0f92e 100644 --- a/src/GeneratedModels/AppealAcceptedEvent.php +++ b/src/GeneratedModels/AppealAcceptedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when an appeal is accepted - * - * @property \DateTime $createdAt - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - * @property AppealItemResponse|null $appeal */ class AppealAcceptedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?object $custom = null, + public ?AppealItemResponse $appeal = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, - public ?AppealItemResponse $appeal = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/AppealCreatedEvent.php b/src/GeneratedModels/AppealCreatedEvent.php index ac4d683..5ef1dcd 100644 --- a/src/GeneratedModels/AppealCreatedEvent.php +++ b/src/GeneratedModels/AppealCreatedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when an appeal is created - * - * @property \DateTime $createdAt - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - * @property AppealItemResponse|null $appeal */ class AppealCreatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?object $custom = null, + public ?AppealItemResponse $appeal = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, - public ?AppealItemResponse $appeal = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/AppealItemResponse.php b/src/GeneratedModels/AppealItemResponse.php index 2e3550a..45d9f95 100644 --- a/src/GeneratedModels/AppealItemResponse.php +++ b/src/GeneratedModels/AppealItemResponse.php @@ -3,35 +3,20 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $appealReason - * @property \DateTime $createdAt - * @property string $entityID - * @property string $entityType - * @property string $id - * @property string $status - * @property \DateTime $updatedAt - * @property string|null $decisionReason - * @property array|null $attachments - * @property ModerationPayload|null $entityContent - * @property UserResponse|null $user - */ class AppealItemResponse extends BaseModel { public function __construct( - public ?string $appealReason = null, // Reason Text of the Appeal Item - public ?\DateTime $createdAt = null, // When the flag was created - public ?string $entityID = null, // ID of the entity - public ?string $entityType = null, // Type of entity + public ?ModerationPayload $entityContent = null, + public ?UserResponse $user = null, public ?string $id = null, + public ?string $entityType = null, // Type of entity + public ?string $entityID = null, // ID of the entity + public ?string $appealReason = null, // Reason Text of the Appeal Item public ?string $status = null, // Status of the Appeal Item - public ?\DateTime $updatedAt = null, // When the flag was last updated public ?string $decisionReason = null, // Decision Reason of the Appeal Item public ?array $attachments = null, // Attachments(e.g. Images) of the Appeal Item - public ?ModerationPayload $entityContent = null, - public ?UserResponse $user = null, + public ?\DateTime $createdAt = null, // When the flag was created + public ?\DateTime $updatedAt = null, // When the flag was last updated ) { } diff --git a/src/GeneratedModels/AppealRejectedEvent.php b/src/GeneratedModels/AppealRejectedEvent.php index 5fea3c4..9ebd100 100644 --- a/src/GeneratedModels/AppealRejectedEvent.php +++ b/src/GeneratedModels/AppealRejectedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when an appeal is rejected - * - * @property \DateTime $createdAt - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - * @property AppealItemResponse|null $appeal */ class AppealRejectedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?object $custom = null, + public ?AppealItemResponse $appeal = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, - public ?AppealItemResponse $appeal = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/AppealRequest.php b/src/GeneratedModels/AppealRequest.php index d83c06f..825db41 100644 --- a/src/GeneratedModels/AppealRequest.php +++ b/src/GeneratedModels/AppealRequest.php @@ -3,25 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $appealReason - * @property string $entityID - * @property string $entityType - * @property string|null $userID - * @property array|null $attachments - * @property UserRequest|null $user - */ class AppealRequest extends BaseModel { public function __construct( - public ?string $appealReason = null, // Explanation for why the content is being appealed + public ?UserRequest $user = null, public ?string $entityID = null, // Unique identifier of the entity being appealed public ?string $entityType = null, // Type of entity being appealed (e.g., message, user) - public ?string $userID = null, + public ?string $appealReason = null, // Explanation for why the content is being appealed public ?array $attachments = null, // Array of Attachment URLs(e.g., images) - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/AppealResponse.php b/src/GeneratedModels/AppealResponse.php index 3f63176..c0a6d67 100644 --- a/src/GeneratedModels/AppealResponse.php +++ b/src/GeneratedModels/AppealResponse.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $appealID - * @property string $duration - */ class AppealResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/AsyncBulkImageModerationEvent.php b/src/GeneratedModels/AsyncBulkImageModerationEvent.php index 16136ad..82b6b68 100644 --- a/src/GeneratedModels/AsyncBulkImageModerationEvent.php +++ b/src/GeneratedModels/AsyncBulkImageModerationEvent.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property \DateTime $finishedAt - * @property \DateTime $startedAt - * @property string $taskID - * @property string $url - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - */ class AsyncBulkImageModerationEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?\DateTime $finishedAt = null, - public ?\DateTime $startedAt = null, - public ?string $taskID = null, public ?string $url = null, - public ?object $custom = null, + public ?string $taskID = null, + public ?\DateTime $startedAt = null, + public ?\DateTime $finishedAt = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/AsyncExportChannelsEvent.php b/src/GeneratedModels/AsyncExportChannelsEvent.php index 753e4fd..1018fa9 100644 --- a/src/GeneratedModels/AsyncExportChannelsEvent.php +++ b/src/GeneratedModels/AsyncExportChannelsEvent.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property \DateTime $finishedAt - * @property \DateTime $startedAt - * @property string $taskID - * @property string $url - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - */ class AsyncExportChannelsEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?\DateTime $finishedAt = null, - public ?\DateTime $startedAt = null, - public ?string $taskID = null, public ?string $url = null, - public ?object $custom = null, + public ?string $taskID = null, + public ?\DateTime $startedAt = null, + public ?\DateTime $finishedAt = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/AsyncExportErrorEvent.php b/src/GeneratedModels/AsyncExportErrorEvent.php index 2734a46..d709439 100644 --- a/src/GeneratedModels/AsyncExportErrorEvent.php +++ b/src/GeneratedModels/AsyncExportErrorEvent.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $error - * @property \DateTime $finishedAt - * @property \DateTime $startedAt - * @property string $taskID - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - */ class AsyncExportErrorEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, public ?string $error = null, - public ?\DateTime $finishedAt = null, - public ?\DateTime $startedAt = null, public ?string $taskID = null, - public ?object $custom = null, + public ?\DateTime $startedAt = null, + public ?\DateTime $finishedAt = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/AsyncExportModerationLogsEvent.php b/src/GeneratedModels/AsyncExportModerationLogsEvent.php index 13edd1e..ddfaba5 100644 --- a/src/GeneratedModels/AsyncExportModerationLogsEvent.php +++ b/src/GeneratedModels/AsyncExportModerationLogsEvent.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property \DateTime $finishedAt - * @property \DateTime $startedAt - * @property string $taskID - * @property string $url - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - */ class AsyncExportModerationLogsEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?\DateTime $finishedAt = null, - public ?\DateTime $startedAt = null, - public ?string $taskID = null, public ?string $url = null, - public ?object $custom = null, + public ?string $taskID = null, + public ?\DateTime $startedAt = null, + public ?\DateTime $finishedAt = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/AsyncExportUsersEvent.php b/src/GeneratedModels/AsyncExportUsersEvent.php index d48b1b5..1969e80 100644 --- a/src/GeneratedModels/AsyncExportUsersEvent.php +++ b/src/GeneratedModels/AsyncExportUsersEvent.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property \DateTime $finishedAt - * @property \DateTime $startedAt - * @property string $taskID - * @property string $url - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - */ class AsyncExportUsersEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?\DateTime $finishedAt = null, - public ?\DateTime $startedAt = null, - public ?string $taskID = null, public ?string $url = null, - public ?object $custom = null, + public ?string $taskID = null, + public ?\DateTime $startedAt = null, + public ?\DateTime $finishedAt = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/AsyncModerationCallbackConfig.php b/src/GeneratedModels/AsyncModerationCallbackConfig.php index 57624a3..f86ebd1 100644 --- a/src/GeneratedModels/AsyncModerationCallbackConfig.php +++ b/src/GeneratedModels/AsyncModerationCallbackConfig.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $mode - * @property string|null $serverUrl - */ class AsyncModerationCallbackConfig extends BaseModel { public function __construct( - public ?string $mode = null, public ?string $serverUrl = null, + public ?string $mode = null, ) { } diff --git a/src/GeneratedModels/AsyncModerationConfiguration.php b/src/GeneratedModels/AsyncModerationConfiguration.php index 9f16704..2924ce1 100644 --- a/src/GeneratedModels/AsyncModerationConfiguration.php +++ b/src/GeneratedModels/AsyncModerationConfiguration.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $timeoutMs - * @property AsyncModerationCallbackConfig|null $callback - */ class AsyncModerationConfiguration extends BaseModel { public function __construct( - public ?int $timeoutMs = null, public ?AsyncModerationCallbackConfig $callback = null, + public ?int $timeoutMs = null, ) { } diff --git a/src/GeneratedModels/Attachment.php b/src/GeneratedModels/Attachment.php index 7af1b97..3c116e4 100644 --- a/src/GeneratedModels/Attachment.php +++ b/src/GeneratedModels/Attachment.php @@ -5,59 +5,36 @@ namespace GetStream\GeneratedModels; /** * An attachment is a message object that represents a file uploaded by a user. - * - * @property object $custom - * @property string|null $assetUrl - * @property string|null $authorIcon - * @property string|null $authorLink - * @property string|null $authorName - * @property string|null $color - * @property string|null $fallback - * @property string|null $footer - * @property string|null $footerIcon - * @property string|null $imageUrl - * @property string|null $ogScrapeUrl - * @property int|null $originalHeight - * @property int|null $originalWidth - * @property string|null $pretext - * @property string|null $text - * @property string|null $thumbUrl - * @property string|null $title - * @property string|null $titleLink - * @property string|null $type - * @property array|null $actions - * @property array|null $fields - * @property Images|null $giphy */ class Attachment extends BaseModel { public function __construct( - public ?object $custom = null, - public ?string $assetUrl = null, - public ?string $authorIcon = null, - public ?string $authorLink = null, - public ?string $authorName = null, - public ?string $color = null, + public ?Images $giphy = null, + public ?string $type = null, // Attachment type (e.g. image, video, url) public ?string $fallback = null, - public ?string $footer = null, - public ?string $footerIcon = null, - public ?string $imageUrl = null, - public ?string $ogScrapeUrl = null, - public ?int $originalHeight = null, - public ?int $originalWidth = null, + public ?string $color = null, public ?string $pretext = null, - public ?string $text = null, - public ?string $thumbUrl = null, + public ?string $authorName = null, + public ?string $authorLink = null, + public ?string $authorIcon = null, public ?string $title = null, public ?string $titleLink = null, - public ?string $type = null, // Attachment type (e.g. image, video, url) + public ?string $text = null, + public ?string $imageUrl = null, + public ?string $thumbUrl = null, + public ?string $footer = null, + public ?string $footerIcon = null, /** @var array|null */ #[ArrayOf(Action::class)] public ?array $actions = null, /** @var array|null */ #[ArrayOf(Field::class)] public ?array $fields = null, - public ?Images $giphy = null, + public ?string $assetUrl = null, + public ?object $custom = null, + public ?string $ogScrapeUrl = null, + public ?int $originalWidth = null, + public ?int $originalHeight = null, ) { } diff --git a/src/GeneratedModels/AudioSettings.php b/src/GeneratedModels/AudioSettings.php index 2be8940..528fce3 100644 --- a/src/GeneratedModels/AudioSettings.php +++ b/src/GeneratedModels/AudioSettings.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $accessRequestEnabled - * @property string $defaultDevice - * @property bool $hifiAudioEnabled - * @property bool $micDefaultOn - * @property bool $opusDtxEnabled - * @property bool $redundantCodingEnabled - * @property bool $speakerDefaultOn - * @property NoiseCancellationSettings|null $noiseCancellation - */ class AudioSettings extends BaseModel { public function __construct( + public ?NoiseCancellationSettings $noiseCancellation = null, public ?bool $accessRequestEnabled = null, - public ?string $defaultDevice = null, - public ?bool $hifiAudioEnabled = null, - public ?bool $micDefaultOn = null, public ?bool $opusDtxEnabled = null, public ?bool $redundantCodingEnabled = null, + public ?bool $micDefaultOn = null, public ?bool $speakerDefaultOn = null, - public ?NoiseCancellationSettings $noiseCancellation = null, + public ?string $defaultDevice = null, + public ?bool $hifiAudioEnabled = null, ) { } diff --git a/src/GeneratedModels/AudioSettingsRequest.php b/src/GeneratedModels/AudioSettingsRequest.php index efe2e03..9e02945 100644 --- a/src/GeneratedModels/AudioSettingsRequest.php +++ b/src/GeneratedModels/AudioSettingsRequest.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $defaultDevice - * @property bool|null $accessRequestEnabled - * @property bool|null $hifiAudioEnabled - * @property bool|null $micDefaultOn - * @property bool|null $opusDtxEnabled - * @property bool|null $redundantCodingEnabled - * @property bool|null $speakerDefaultOn - * @property NoiseCancellationSettings|null $noiseCancellation - */ class AudioSettingsRequest extends BaseModel { public function __construct( - public ?string $defaultDevice = null, + public ?NoiseCancellationSettings $noiseCancellation = null, public ?bool $accessRequestEnabled = null, - public ?bool $hifiAudioEnabled = null, - public ?bool $micDefaultOn = null, public ?bool $opusDtxEnabled = null, public ?bool $redundantCodingEnabled = null, + public ?bool $micDefaultOn = null, public ?bool $speakerDefaultOn = null, - public ?NoiseCancellationSettings $noiseCancellation = null, + public ?string $defaultDevice = null, + public ?bool $hifiAudioEnabled = null, ) { } diff --git a/src/GeneratedModels/AudioSettingsResponse.php b/src/GeneratedModels/AudioSettingsResponse.php index 45d6d0a..926ab43 100644 --- a/src/GeneratedModels/AudioSettingsResponse.php +++ b/src/GeneratedModels/AudioSettingsResponse.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $accessRequestEnabled - * @property string $defaultDevice - * @property bool $hifiAudioEnabled - * @property bool $micDefaultOn - * @property bool $opusDtxEnabled - * @property bool $redundantCodingEnabled - * @property bool $speakerDefaultOn - * @property NoiseCancellationSettings|null $noiseCancellation - */ class AudioSettingsResponse extends BaseModel { public function __construct( + public ?NoiseCancellationSettings $noiseCancellation = null, public ?bool $accessRequestEnabled = null, - public ?string $defaultDevice = null, - public ?bool $hifiAudioEnabled = null, - public ?bool $micDefaultOn = null, public ?bool $opusDtxEnabled = null, public ?bool $redundantCodingEnabled = null, + public ?bool $micDefaultOn = null, public ?bool $speakerDefaultOn = null, - public ?NoiseCancellationSettings $noiseCancellation = null, + public ?string $defaultDevice = null, + public ?bool $hifiAudioEnabled = null, ) { } diff --git a/src/GeneratedModels/AutomodDetailsResponse.php b/src/GeneratedModels/AutomodDetailsResponse.php new file mode 100644 index 0000000..50d241d --- /dev/null +++ b/src/GeneratedModels/AutomodDetailsResponse.php @@ -0,0 +1,19 @@ +|null $rules - */ class AutomodPlatformCircumventionConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/AutomodRule.php b/src/GeneratedModels/AutomodRule.php index 3c0b353..d0b4481 100644 --- a/src/GeneratedModels/AutomodRule.php +++ b/src/GeneratedModels/AutomodRule.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $action - * @property string $label - * @property int $threshold - */ class AutomodRule extends BaseModel { public function __construct( - public ?string $action = null, public ?string $label = null, public ?int $threshold = null, + public ?string $action = null, ) { } diff --git a/src/GeneratedModels/AutomodSemanticFiltersConfig.php b/src/GeneratedModels/AutomodSemanticFiltersConfig.php index 246c644..78bf859 100644 --- a/src/GeneratedModels/AutomodSemanticFiltersConfig.php +++ b/src/GeneratedModels/AutomodSemanticFiltersConfig.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $async - * @property bool|null $enabled - * @property array|null $rules - */ class AutomodSemanticFiltersConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/AutomodSemanticFiltersRule.php b/src/GeneratedModels/AutomodSemanticFiltersRule.php index c39bb6c..dae2d68 100644 --- a/src/GeneratedModels/AutomodSemanticFiltersRule.php +++ b/src/GeneratedModels/AutomodSemanticFiltersRule.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $action - * @property string $name - * @property int $threshold - */ class AutomodSemanticFiltersRule extends BaseModel { public function __construct( - public ?string $action = null, public ?string $name = null, public ?int $threshold = null, + public ?string $action = null, ) { } diff --git a/src/GeneratedModels/AutomodToxicityConfig.php b/src/GeneratedModels/AutomodToxicityConfig.php index e753d1b..6e5b47c 100644 --- a/src/GeneratedModels/AutomodToxicityConfig.php +++ b/src/GeneratedModels/AutomodToxicityConfig.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $async - * @property bool|null $enabled - * @property array|null $rules - */ class AutomodToxicityConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/AzureRequest.php b/src/GeneratedModels/AzureRequest.php index 68653b6..51b79ef 100644 --- a/src/GeneratedModels/AzureRequest.php +++ b/src/GeneratedModels/AzureRequest.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * Config for creating Azure Blob Storage storage - * - * @property string $absAccountName - * @property string $absClientID - * @property string $absClientSecret - * @property string $absTenantID */ class AzureRequest extends BaseModel { public function __construct( public ?string $absAccountName = null, // The account name + public ?string $absTenantID = null, // The tenant id public ?string $absClientID = null, // The client id public ?string $absClientSecret = null, // The client secret - public ?string $absTenantID = null, // The tenant id ) { } diff --git a/src/GeneratedModels/BackstageSettings.php b/src/GeneratedModels/BackstageSettings.php index 3cc1426..2341c02 100644 --- a/src/GeneratedModels/BackstageSettings.php +++ b/src/GeneratedModels/BackstageSettings.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - * @property int|null $joinAheadTimeSeconds - */ class BackstageSettings extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/BackstageSettingsRequest.php b/src/GeneratedModels/BackstageSettingsRequest.php index b0c073e..ef381e6 100644 --- a/src/GeneratedModels/BackstageSettingsRequest.php +++ b/src/GeneratedModels/BackstageSettingsRequest.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $enabled - * @property int|null $joinAheadTimeSeconds - */ class BackstageSettingsRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/BackstageSettingsResponse.php b/src/GeneratedModels/BackstageSettingsResponse.php index 5b05656..3ee06a7 100644 --- a/src/GeneratedModels/BackstageSettingsResponse.php +++ b/src/GeneratedModels/BackstageSettingsResponse.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - * @property int|null $joinAheadTimeSeconds - */ class BackstageSettingsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/BanActionRequestPayload.php b/src/GeneratedModels/BanActionRequestPayload.php new file mode 100644 index 0000000..ff77bb6 --- /dev/null +++ b/src/GeneratedModels/BanActionRequestPayload.php @@ -0,0 +1,24 @@ +getAttributes(MapOf::class); + if (!empty($attributes)) { + return $attributes[0]->newInstance()->modelClass; + } + return null; + } + + /** + * Parse associative array (map) of model objects, preserving string keys + */ + private static function parseMapOfModels(array $value, string $modelClass): array + { + if (!class_exists($modelClass) || !is_subclass_of($modelClass, BaseModel::class)) { + return $value; + } + + $result = []; + foreach ($value as $key => $item) { + $result[$key] = is_array($item) ? $modelClass::fromJson($item) : $item; + } + return $result; + } + /** * Parse array of model objects */ diff --git a/src/GeneratedModels/BaseResponseModel.php b/src/GeneratedModels/BaseResponseModel.php deleted file mode 100644 index e31f061..0000000 --- a/src/GeneratedModels/BaseResponseModel.php +++ /dev/null @@ -1,67 +0,0 @@ -|null $rules - */ class BlockListConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/BlockListOptions.php b/src/GeneratedModels/BlockListOptions.php index e492f62..a2f91d0 100644 --- a/src/GeneratedModels/BlockListOptions.php +++ b/src/GeneratedModels/BlockListOptions.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $behavior - * @property string $blocklist - */ class BlockListOptions extends BaseModel { public function __construct( - public ?string $behavior = null, // Blocklist behavior public ?string $blocklist = null, // Blocklist name + public ?string $behavior = null, // Blocklist behavior. One of: flag, block, shadow_block ) { } diff --git a/src/GeneratedModels/BlockListResponse.php b/src/GeneratedModels/BlockListResponse.php index 5fbd90d..0bb94f0 100644 --- a/src/GeneratedModels/BlockListResponse.php +++ b/src/GeneratedModels/BlockListResponse.php @@ -5,29 +5,19 @@ namespace GetStream\GeneratedModels; /** * Block list contains restricted words - * - * @property bool $isLeetCheckEnabled - * @property bool $isPluralCheckEnabled - * @property string $name - * @property string $type - * @property array $words - * @property \DateTime|null $createdAt - * @property string|null $id - * @property string|null $team - * @property \DateTime|null $updatedAt */ class BlockListResponse extends BaseModel { public function __construct( - public ?bool $isLeetCheckEnabled = null, - public ?bool $isPluralCheckEnabled = null, - public ?string $name = null, // Block list name - public ?string $type = null, // Block list type. - public ?array $words = null, // List of words to block public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $updatedAt = null, // Date/time of the last update public ?string $id = null, + public ?string $name = null, // Block list name + public ?string $type = null, // Block list type. One of: regex, domain, domain_allowlist, email, email_allowlist, word + public ?array $words = null, // List of words to block public ?string $team = null, - public ?\DateTime $updatedAt = null, // Date/time of the last update + public ?bool $isLeetCheckEnabled = null, + public ?bool $isPluralCheckEnabled = null, ) { } diff --git a/src/GeneratedModels/BlockListRule.php b/src/GeneratedModels/BlockListRule.php index ecf1df9..c23cbbc 100644 --- a/src/GeneratedModels/BlockListRule.php +++ b/src/GeneratedModels/BlockListRule.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $action - * @property string|null $name - * @property string|null $team - */ class BlockListRule extends BaseModel { public function __construct( - public ?string $action = null, public ?string $name = null, public ?string $team = null, + public ?string $action = null, ) { } diff --git a/src/GeneratedModels/BlockUserRequest.php b/src/GeneratedModels/BlockUserRequest.php index 4b4b1b6..8c49e9f 100644 --- a/src/GeneratedModels/BlockUserRequest.php +++ b/src/GeneratedModels/BlockUserRequest.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * BlockUserRequest is the payload for blocking a user. - * - * @property string $userID */ class BlockUserRequest extends BaseModel { diff --git a/src/GeneratedModels/BlockUserResponse.php b/src/GeneratedModels/BlockUserResponse.php index f21d2c9..4b1ba3b 100644 --- a/src/GeneratedModels/BlockUserResponse.php +++ b/src/GeneratedModels/BlockUserResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * BlockUserResponse is the payload for blocking a user. - * - * @property string $duration */ class BlockUserResponse extends BaseModel { diff --git a/src/GeneratedModels/BlockUsersRequest.php b/src/GeneratedModels/BlockUsersRequest.php index 11550a2..0f8e785 100644 --- a/src/GeneratedModels/BlockUsersRequest.php +++ b/src/GeneratedModels/BlockUsersRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $blockedUserID - * @property string|null $userID - * @property UserRequest|null $user - */ class BlockUsersRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $blockedUserID = null, // User id to block public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/BlockUsersResponse.php b/src/GeneratedModels/BlockUsersResponse.php index 85dfff7..7a8cb3c 100644 --- a/src/GeneratedModels/BlockUsersResponse.php +++ b/src/GeneratedModels/BlockUsersResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $blockedByUserID - * @property string $blockedUserID - * @property \DateTime $createdAt - * @property string $duration - */ class BlockUsersResponse extends BaseModel { public function __construct( + public ?string $duration = null, // Duration of the request in milliseconds public ?string $blockedByUserID = null, // User id who blocked another user public ?string $blockedUserID = null, // User id who got blocked public ?\DateTime $createdAt = null, // Timestamp when the user was blocked - public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/BlockedUserEvent.php b/src/GeneratedModels/BlockedUserEvent.php index 5eea684..b19536d 100644 --- a/src/GeneratedModels/BlockedUserEvent.php +++ b/src/GeneratedModels/BlockedUserEvent.php @@ -6,21 +6,15 @@ /** * This event is sent to call participants to notify when a user is blocked on a call, clients can use this event to show a notification. * If the user is the current user, the client should leave the call screen as well - * - * @property string $callCid - * @property \DateTime $createdAt - * @property UserResponse $user - * @property string $type - * @property UserResponse|null $blockedByUser */ class BlockedUserEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, + public ?UserResponse $blockedByUser = null, public ?UserResponse $user = null, public ?string $type = null, // The type of event: "call.blocked_user" in this case - public ?UserResponse $blockedByUser = null, + public ?\DateTime $createdAt = null, + public ?string $callCid = null, ) { } diff --git a/src/GeneratedModels/BlockedUserResponse.php b/src/GeneratedModels/BlockedUserResponse.php index fd4a68a..681a3f2 100644 --- a/src/GeneratedModels/BlockedUserResponse.php +++ b/src/GeneratedModels/BlockedUserResponse.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $blockedUserID - * @property \DateTime $createdAt - * @property string $userID - * @property UserResponse $blockedUser - * @property UserResponse $user - */ class BlockedUserResponse extends BaseModel { public function __construct( - public ?string $blockedUserID = null, // ID of the user who got blocked - public ?\DateTime $createdAt = null, - public ?string $userID = null, // ID of the user who blocked another user public ?UserResponse $blockedUser = null, public ?UserResponse $user = null, + public ?string $userID = null, // ID of the user who blocked another user + public ?string $blockedUserID = null, // ID of the user who got blocked + public ?\DateTime $createdAt = null, ) { } diff --git a/src/GeneratedModels/BodyguardImageAnalysisConfig.php b/src/GeneratedModels/BodyguardImageAnalysisConfig.php index 73cd4b1..180d475 100644 --- a/src/GeneratedModels/BodyguardImageAnalysisConfig.php +++ b/src/GeneratedModels/BodyguardImageAnalysisConfig.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $rules - */ class BodyguardImageAnalysisConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/BodyguardRule.php b/src/GeneratedModels/BodyguardRule.php index 49b9b20..24e06b2 100644 --- a/src/GeneratedModels/BodyguardRule.php +++ b/src/GeneratedModels/BodyguardRule.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $label - * @property string|null $action - * @property array|null $severityRules - */ class BodyguardRule extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/BodyguardSeverityRule.php b/src/GeneratedModels/BodyguardSeverityRule.php index 614cdad..a18f881 100644 --- a/src/GeneratedModels/BodyguardSeverityRule.php +++ b/src/GeneratedModels/BodyguardSeverityRule.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $action - * @property string $severity - */ class BodyguardSeverityRule extends BaseModel { public function __construct( - public ?string $action = null, public ?string $severity = null, + public ?string $action = null, ) { } diff --git a/src/GeneratedModels/BookmarkAddedEvent.php b/src/GeneratedModels/BookmarkAddedEvent.php index c853ea1..c4b4aa7 100644 --- a/src/GeneratedModels/BookmarkAddedEvent.php +++ b/src/GeneratedModels/BookmarkAddedEvent.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * Emitted when a user bookmarks an activity. - * - * @property \DateTime $createdAt - * @property BookmarkResponse $bookmark - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class BookmarkAddedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation public ?BookmarkResponse $bookmark = null, - public ?object $custom = null, + public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "feeds.bookmark.added" in this case + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/BookmarkDeletedEvent.php b/src/GeneratedModels/BookmarkDeletedEvent.php index 184bde7..3695bbe 100644 --- a/src/GeneratedModels/BookmarkDeletedEvent.php +++ b/src/GeneratedModels/BookmarkDeletedEvent.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * Emitted when a user deletes a bookmark from an activity. - * - * @property \DateTime $createdAt - * @property BookmarkResponse $bookmark - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class BookmarkDeletedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation public ?BookmarkResponse $bookmark = null, - public ?object $custom = null, + public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "feeds.bookmark.deleted" in this case + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/BookmarkFolderDeletedEvent.php b/src/GeneratedModels/BookmarkFolderDeletedEvent.php index c5a2eda..fb36ccf 100644 --- a/src/GeneratedModels/BookmarkFolderDeletedEvent.php +++ b/src/GeneratedModels/BookmarkFolderDeletedEvent.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * Emitted when a bookmark folder is deleted. - * - * @property \DateTime $createdAt - * @property BookmarkFolderResponse $bookmarkFolder - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class BookmarkFolderDeletedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation public ?BookmarkFolderResponse $bookmarkFolder = null, - public ?object $custom = null, + public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "feeds.bookmark_folder.deleted" in this case + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/BookmarkFolderResponse.php b/src/GeneratedModels/BookmarkFolderResponse.php index b1c1678..bee7c25 100644 --- a/src/GeneratedModels/BookmarkFolderResponse.php +++ b/src/GeneratedModels/BookmarkFolderResponse.php @@ -3,25 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $id - * @property string $name - * @property \DateTime $updatedAt - * @property UserResponse $user - * @property object|null $custom - */ class BookmarkFolderResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // When the folder was created + public ?UserResponse $user = null, public ?string $id = null, // Unique identifier for the folder public ?string $name = null, // Name of the folder - public ?\DateTime $updatedAt = null, // When the folder was last updated - public ?UserResponse $user = null, public ?object $custom = null, // Custom data for the folder + public ?\DateTime $createdAt = null, // When the folder was created + public ?\DateTime $updatedAt = null, // When the folder was last updated ) { } diff --git a/src/GeneratedModels/BookmarkFolderUpdatedEvent.php b/src/GeneratedModels/BookmarkFolderUpdatedEvent.php index ebac80f..b272cd7 100644 --- a/src/GeneratedModels/BookmarkFolderUpdatedEvent.php +++ b/src/GeneratedModels/BookmarkFolderUpdatedEvent.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * Emitted when a bookmark folder is updated. - * - * @property \DateTime $createdAt - * @property BookmarkFolderResponse $bookmarkFolder - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class BookmarkFolderUpdatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation public ?BookmarkFolderResponse $bookmarkFolder = null, - public ?object $custom = null, + public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "feeds.bookmark_folder.updated" in this case + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/BookmarkResponse.php b/src/GeneratedModels/BookmarkResponse.php index cfd1b38..6539e72 100644 --- a/src/GeneratedModels/BookmarkResponse.php +++ b/src/GeneratedModels/BookmarkResponse.php @@ -3,25 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property \DateTime $updatedAt - * @property ActivityResponse $activity - * @property UserResponse $user - * @property object|null $custom - * @property BookmarkFolderResponse|null $folder - */ class BookmarkResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // When the bookmark was created - public ?\DateTime $updatedAt = null, // When the bookmark was last updated public ?ActivityResponse $activity = null, + public ?BookmarkFolderResponse $folder = null, public ?UserResponse $user = null, public ?object $custom = null, // Custom data for the bookmark - public ?BookmarkFolderResponse $folder = null, + public ?\DateTime $createdAt = null, // When the bookmark was created + public ?\DateTime $updatedAt = null, // When the bookmark was last updated ) { } diff --git a/src/GeneratedModels/BookmarkUpdatedEvent.php b/src/GeneratedModels/BookmarkUpdatedEvent.php index 6e71d92..f4fbfbd 100644 --- a/src/GeneratedModels/BookmarkUpdatedEvent.php +++ b/src/GeneratedModels/BookmarkUpdatedEvent.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * Emitted when a user updates a bookmark. - * - * @property \DateTime $createdAt - * @property BookmarkResponse $bookmark - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class BookmarkUpdatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation public ?BookmarkResponse $bookmark = null, - public ?object $custom = null, + public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "feeds.bookmark.updated" in this case + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/Bound.php b/src/GeneratedModels/Bound.php index cb9474e..d421e9f 100644 --- a/src/GeneratedModels/Bound.php +++ b/src/GeneratedModels/Bound.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $inclusive - * @property int $value - */ class Bound extends BaseModel { public function __construct( - public ?bool $inclusive = null, public ?int $value = null, + public ?bool $inclusive = null, ) { } diff --git a/src/GeneratedModels/BroadcastSettings.php b/src/GeneratedModels/BroadcastSettings.php index da8b2a8..9385259 100644 --- a/src/GeneratedModels/BroadcastSettings.php +++ b/src/GeneratedModels/BroadcastSettings.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - * @property HLSSettings|null $hls - * @property RTMPSettings|null $rtmp - */ class BroadcastSettings extends BaseModel { public function __construct( - public ?bool $enabled = null, public ?HLSSettings $hls = null, public ?RTMPSettings $rtmp = null, + public ?bool $enabled = null, ) { } diff --git a/src/GeneratedModels/BroadcastSettingsRequest.php b/src/GeneratedModels/BroadcastSettingsRequest.php index 0b44e91..1d3a785 100644 --- a/src/GeneratedModels/BroadcastSettingsRequest.php +++ b/src/GeneratedModels/BroadcastSettingsRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $enabled - * @property HLSSettingsRequest|null $hls - * @property RTMPSettingsRequest|null $rtmp - */ class BroadcastSettingsRequest extends BaseModel { public function __construct( - public ?bool $enabled = null, public ?HLSSettingsRequest $hls = null, public ?RTMPSettingsRequest $rtmp = null, + public ?bool $enabled = null, ) { } diff --git a/src/GeneratedModels/BroadcastSettingsResponse.php b/src/GeneratedModels/BroadcastSettingsResponse.php index 85f503a..c176deb 100644 --- a/src/GeneratedModels/BroadcastSettingsResponse.php +++ b/src/GeneratedModels/BroadcastSettingsResponse.php @@ -5,17 +5,13 @@ namespace GetStream\GeneratedModels; /** * BroadcastSettingsResponse is the payload for broadcasting settings - * - * @property bool $enabled - * @property HLSSettingsResponse $hls - * @property RTMPSettingsResponse $rtmp */ class BroadcastSettingsResponse extends BaseModel { public function __construct( - public ?bool $enabled = null, public ?HLSSettingsResponse $hls = null, public ?RTMPSettingsResponse $rtmp = null, + public ?bool $enabled = null, ) { } diff --git a/src/GeneratedModels/BrowserDataResponse.php b/src/GeneratedModels/BrowserDataResponse.php index 2709739..4ebdfc5 100644 --- a/src/GeneratedModels/BrowserDataResponse.php +++ b/src/GeneratedModels/BrowserDataResponse.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $name - * @property string|null $version - */ class BrowserDataResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/BulkImageModerationRequest.php b/src/GeneratedModels/BulkImageModerationRequest.php index 0ae2340..ab3e1a5 100644 --- a/src/GeneratedModels/BulkImageModerationRequest.php +++ b/src/GeneratedModels/BulkImageModerationRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $csvFile - */ class BulkImageModerationRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/BulkImageModerationResponse.php b/src/GeneratedModels/BulkImageModerationResponse.php index 720947d..f69fccf 100644 --- a/src/GeneratedModels/BulkImageModerationResponse.php +++ b/src/GeneratedModels/BulkImageModerationResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string $taskID - */ class BulkImageModerationResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?string $taskID = null, // ID of the task for processing the bulk image moderation + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CallAcceptedEvent.php b/src/GeneratedModels/CallAcceptedEvent.php index e0186e8..2ad7643 100644 --- a/src/GeneratedModels/CallAcceptedEvent.php +++ b/src/GeneratedModels/CallAcceptedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a user accepts a notification to join a call. - * - * @property string $callCid - * @property \DateTime $createdAt - * @property CallResponse $call - * @property UserResponse $user - * @property string $type */ class CallAcceptedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, public ?CallResponse $call = null, public ?UserResponse $user = null, public ?string $type = null, // The type of event: "call.accepted" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, ) { } diff --git a/src/GeneratedModels/CallActionOptions.php b/src/GeneratedModels/CallActionOptions.php new file mode 100644 index 0000000..a79afef --- /dev/null +++ b/src/GeneratedModels/CallActionOptions.php @@ -0,0 +1,21 @@ + $members - * @property CallResponse $call - * @property string $type */ class CallCreatedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?CallResponse $call = null, + public ?string $type = null, // The type of event: "call.created" in this case public ?\DateTime $createdAt = null, - /** @var array|null the members added to this call */ + public ?string $callCid = null, + /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // the members added to this call - public ?CallResponse $call = null, - public ?string $type = null, // The type of event: "call.created" in this case ) { } diff --git a/src/GeneratedModels/CallCustomPropertyParameters.php b/src/GeneratedModels/CallCustomPropertyParameters.php new file mode 100644 index 0000000..45e0881 --- /dev/null +++ b/src/GeneratedModels/CallCustomPropertyParameters.php @@ -0,0 +1,16 @@ + $histogram - */ class CallDurationReport extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CallDurationReportResponse.php b/src/GeneratedModels/CallDurationReportResponse.php index 20cc724..3a28208 100644 --- a/src/GeneratedModels/CallDurationReportResponse.php +++ b/src/GeneratedModels/CallDurationReportResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $daily - */ class CallDurationReportResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CallEndedEvent.php b/src/GeneratedModels/CallEndedEvent.php index 343eae4..361d87f 100644 --- a/src/GeneratedModels/CallEndedEvent.php +++ b/src/GeneratedModels/CallEndedEvent.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a call is mark as ended for all its participants. Clients receiving this event should leave the call screen - * - * @property string $callCid - * @property \DateTime $createdAt - * @property CallResponse $call - * @property string $type - * @property string|null $reason - * @property UserResponse|null $user */ class CallEndedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, public ?CallResponse $call = null, + public ?UserResponse $user = null, public ?string $type = null, // The type of event: "call.ended" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, public ?string $reason = null, // The reason why the call ended, if available - public ?UserResponse $user = null, ) { } diff --git a/src/GeneratedModels/CallFrameRecordingFailedEvent.php b/src/GeneratedModels/CallFrameRecordingFailedEvent.php index fdd7acd..fa82e6b 100644 --- a/src/GeneratedModels/CallFrameRecordingFailedEvent.php +++ b/src/GeneratedModels/CallFrameRecordingFailedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when frame recording has failed - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $egressID - * @property CallResponse $call - * @property string $type */ class CallFrameRecordingFailedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, - public ?string $egressID = null, public ?CallResponse $call = null, public ?string $type = null, // The type of event: "call.frame_recording_failed" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, + public ?string $egressID = null, ) { } diff --git a/src/GeneratedModels/CallFrameRecordingFrameReadyEvent.php b/src/GeneratedModels/CallFrameRecordingFrameReadyEvent.php index e18bf0a..5cae60f 100644 --- a/src/GeneratedModels/CallFrameRecordingFrameReadyEvent.php +++ b/src/GeneratedModels/CallFrameRecordingFrameReadyEvent.php @@ -5,29 +5,21 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a frame is captured from a call - * - * @property string $callCid - * @property \DateTime $capturedAt - * @property \DateTime $createdAt - * @property string $egressID - * @property string $sessionID - * @property string $trackType - * @property string $url - * @property array $users - * @property string $type */ class CallFrameRecordingFrameReadyEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $capturedAt = null, // The time the frame was captured + public ?string $type = null, // The type of event: "call.frame_recording_ready" in this case public ?\DateTime $createdAt = null, - public ?string $egressID = null, + public ?string $callCid = null, public ?string $sessionID = null, // Call session ID public ?string $trackType = null, // The type of the track frame was captured from (TRACK_TYPE_VIDEO|TRACK_TYPE_SCREEN_SHARE) public ?string $url = null, // The URL of the frame + public ?\DateTime $capturedAt = null, // The time the frame was captured + /** @var array|null */ + #[MapOf(UserResponse::class)] public ?array $users = null, // The users in the frame - public ?string $type = null, // The type of event: "call.frame_recording_ready" in this case + public ?string $egressID = null, ) { } diff --git a/src/GeneratedModels/CallFrameRecordingStartedEvent.php b/src/GeneratedModels/CallFrameRecordingStartedEvent.php index a5acf9b..ca815b7 100644 --- a/src/GeneratedModels/CallFrameRecordingStartedEvent.php +++ b/src/GeneratedModels/CallFrameRecordingStartedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when frame recording has started - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $egressID - * @property CallResponse $call - * @property string $type */ class CallFrameRecordingStartedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, - public ?string $egressID = null, public ?CallResponse $call = null, public ?string $type = null, // The type of event: "call.frame_recording_started" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, + public ?string $egressID = null, ) { } diff --git a/src/GeneratedModels/CallFrameRecordingStoppedEvent.php b/src/GeneratedModels/CallFrameRecordingStoppedEvent.php index 938a627..d11da32 100644 --- a/src/GeneratedModels/CallFrameRecordingStoppedEvent.php +++ b/src/GeneratedModels/CallFrameRecordingStoppedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when frame recording has stopped - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $egressID - * @property CallResponse $call - * @property string $type */ class CallFrameRecordingStoppedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, - public ?string $egressID = null, public ?CallResponse $call = null, public ?string $type = null, // The type of event: "call.frame_recording_stopped" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, + public ?string $egressID = null, ) { } diff --git a/src/GeneratedModels/CallHLSBroadcastingFailedEvent.php b/src/GeneratedModels/CallHLSBroadcastingFailedEvent.php index b1390df..e7e0cb8 100644 --- a/src/GeneratedModels/CallHLSBroadcastingFailedEvent.php +++ b/src/GeneratedModels/CallHLSBroadcastingFailedEvent.php @@ -5,17 +5,13 @@ namespace GetStream\GeneratedModels; /** * This event is sent when HLS broadcasting has failed - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $type */ class CallHLSBroadcastingFailedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, public ?string $type = null, // The type of event: "call.hls_broadcasting_failed" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, ) { } diff --git a/src/GeneratedModels/CallHLSBroadcastingStartedEvent.php b/src/GeneratedModels/CallHLSBroadcastingStartedEvent.php index 689c342..4e439b2 100644 --- a/src/GeneratedModels/CallHLSBroadcastingStartedEvent.php +++ b/src/GeneratedModels/CallHLSBroadcastingStartedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when HLS broadcasting has started - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $hlsPlaylistUrl - * @property CallResponse $call - * @property string $type */ class CallHLSBroadcastingStartedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, - public ?string $hlsPlaylistUrl = null, public ?CallResponse $call = null, public ?string $type = null, // The type of event: "call.hls_broadcasting_started" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, + public ?string $hlsPlaylistUrl = null, ) { } diff --git a/src/GeneratedModels/CallHLSBroadcastingStoppedEvent.php b/src/GeneratedModels/CallHLSBroadcastingStoppedEvent.php index 3486c8f..3962f82 100644 --- a/src/GeneratedModels/CallHLSBroadcastingStoppedEvent.php +++ b/src/GeneratedModels/CallHLSBroadcastingStoppedEvent.php @@ -5,17 +5,13 @@ namespace GetStream\GeneratedModels; /** * This event is sent when HLS broadcasting has stopped - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $type */ class CallHLSBroadcastingStoppedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, public ?string $type = null, // The type of event: "call.hls_broadcasting_stopped" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, ) { } diff --git a/src/GeneratedModels/CallIngressResponse.php b/src/GeneratedModels/CallIngressResponse.php index 79d195a..a025f36 100644 --- a/src/GeneratedModels/CallIngressResponse.php +++ b/src/GeneratedModels/CallIngressResponse.php @@ -5,10 +5,6 @@ namespace GetStream\GeneratedModels; /** * CallIngressResponse is the payload for ingress settings - * - * @property RTMPIngress $rtmp - * @property SRTIngress $srt - * @property WHIPIngress $whip */ class CallIngressResponse extends BaseModel { diff --git a/src/GeneratedModels/CallLiveStartedEvent.php b/src/GeneratedModels/CallLiveStartedEvent.php index 4640288..c240fe0 100644 --- a/src/GeneratedModels/CallLiveStartedEvent.php +++ b/src/GeneratedModels/CallLiveStartedEvent.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a call is started. Clients receiving this event should start the call. - * - * @property string $callCid - * @property \DateTime $createdAt - * @property CallResponse $call - * @property string $type */ class CallLiveStartedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, public ?CallResponse $call = null, public ?string $type = null, // The type of event: "call.live_started" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, ) { } diff --git a/src/GeneratedModels/CallMemberAddedEvent.php b/src/GeneratedModels/CallMemberAddedEvent.php index 4876674..7478378 100644 --- a/src/GeneratedModels/CallMemberAddedEvent.php +++ b/src/GeneratedModels/CallMemberAddedEvent.php @@ -5,23 +5,17 @@ namespace GetStream\GeneratedModels; /** * This event is sent when one or more members are added to a call - * - * @property string $callCid - * @property \DateTime $createdAt - * @property array $members - * @property CallResponse $call - * @property string $type */ class CallMemberAddedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?CallResponse $call = null, + public ?string $type = null, // The type of event: "call.member_added" in this case public ?\DateTime $createdAt = null, - /** @var array|null the members added to this call */ + public ?string $callCid = null, + /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // the members added to this call - public ?CallResponse $call = null, - public ?string $type = null, // The type of event: "call.member_added" in this case ) { } diff --git a/src/GeneratedModels/CallMemberRemovedEvent.php b/src/GeneratedModels/CallMemberRemovedEvent.php index 0ad45a5..4056ddb 100644 --- a/src/GeneratedModels/CallMemberRemovedEvent.php +++ b/src/GeneratedModels/CallMemberRemovedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when one or more members are removed from a call - * - * @property string $callCid - * @property \DateTime $createdAt - * @property array $members - * @property CallResponse $call - * @property string $type */ class CallMemberRemovedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, - public ?array $members = null, // the list of member IDs removed from the call public ?CallResponse $call = null, public ?string $type = null, // The type of event: "call.member_removed" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, + public ?array $members = null, // the list of member IDs removed from the call ) { } diff --git a/src/GeneratedModels/CallMemberUpdatedEvent.php b/src/GeneratedModels/CallMemberUpdatedEvent.php index 32c195d..7d5a4aa 100644 --- a/src/GeneratedModels/CallMemberUpdatedEvent.php +++ b/src/GeneratedModels/CallMemberUpdatedEvent.php @@ -5,23 +5,17 @@ namespace GetStream\GeneratedModels; /** * This event is sent when one or more members are updated - * - * @property string $callCid - * @property \DateTime $createdAt - * @property array $members - * @property CallResponse $call - * @property string $type */ class CallMemberUpdatedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?CallResponse $call = null, + public ?string $type = null, // The type of event: "call.member_updated" in this case public ?\DateTime $createdAt = null, - /** @var array|null The list of members that were updated */ + public ?string $callCid = null, + /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // The list of members that were updated - public ?CallResponse $call = null, - public ?string $type = null, // The type of event: "call.member_updated" in this case ) { } diff --git a/src/GeneratedModels/CallMemberUpdatedPermissionEvent.php b/src/GeneratedModels/CallMemberUpdatedPermissionEvent.php index 3fd22d0..f36779d 100644 --- a/src/GeneratedModels/CallMemberUpdatedPermissionEvent.php +++ b/src/GeneratedModels/CallMemberUpdatedPermissionEvent.php @@ -5,25 +5,18 @@ namespace GetStream\GeneratedModels; /** * This event is sent when one or more members get its role updated - * - * @property string $callCid - * @property \DateTime $createdAt - * @property array $members - * @property CallResponse $call - * @property array $capabilitiesByRole - * @property string $type */ class CallMemberUpdatedPermissionEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?CallResponse $call = null, + public ?string $type = null, // The type of event: "call.member_added" in this case public ?\DateTime $createdAt = null, - /** @var array|null The list of members that were updated */ + public ?string $callCid = null, + public ?array $capabilitiesByRole = null, // The capabilities by role for this call + /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // The list of members that were updated - public ?CallResponse $call = null, - public ?array $capabilitiesByRole = null, // The capabilities by role for this call - public ?string $type = null, // The type of event: "call.member_added" in this case ) { } diff --git a/src/GeneratedModels/CallMissedEvent.php b/src/GeneratedModels/CallMissedEvent.php index 7aeefde..bb6772c 100644 --- a/src/GeneratedModels/CallMissedEvent.php +++ b/src/GeneratedModels/CallMissedEvent.php @@ -5,29 +5,20 @@ namespace GetStream\GeneratedModels; /** * This event is sent to call members who did not accept/reject/join the call to notify they missed the call - * - * @property string $callCid - * @property \DateTime $createdAt - * @property bool $notifyUser - * @property string $sessionID - * @property array $members - * @property CallResponse $call - * @property UserResponse $user - * @property string $type */ class CallMissedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?CallResponse $call = null, + public ?UserResponse $user = null, + public ?string $type = null, // The type of event: "call.notification" in this case public ?\DateTime $createdAt = null, - public ?bool $notifyUser = null, + public ?string $callCid = null, public ?string $sessionID = null, // Call session ID - /** @var array|null List of members who missed the call */ + /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // List of members who missed the call - public ?CallResponse $call = null, - public ?UserResponse $user = null, - public ?string $type = null, // The type of event: "call.notification" in this case + public ?bool $notifyUser = null, ) { } diff --git a/src/GeneratedModels/CallModerationBlurEvent.php b/src/GeneratedModels/CallModerationBlurEvent.php index 829e890..5273b84 100644 --- a/src/GeneratedModels/CallModerationBlurEvent.php +++ b/src/GeneratedModels/CallModerationBlurEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a moderation blur action is applied to a user's video stream - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $userID - * @property object $custom - * @property string $type */ class CallModerationBlurEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?string $type = null, // The type of event: "call.moderation_blur" in this case public ?\DateTime $createdAt = null, + public ?string $callCid = null, public ?string $userID = null, // The user ID whose video stream is being blurred public ?object $custom = null, // Custom data associated with the moderation action - public ?string $type = null, // The type of event: "call.moderation_blur" in this case ) { } diff --git a/src/GeneratedModels/CallModerationWarningEvent.php b/src/GeneratedModels/CallModerationWarningEvent.php index cb8e47b..ed0a274 100644 --- a/src/GeneratedModels/CallModerationWarningEvent.php +++ b/src/GeneratedModels/CallModerationWarningEvent.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a moderation warning is issued to a user - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $message - * @property string $userID - * @property object $custom - * @property string $type */ class CallModerationWarningEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?string $type = null, // The type of event: "call.moderation_warning" in this case public ?\DateTime $createdAt = null, - public ?string $message = null, // The warning message + public ?string $callCid = null, public ?string $userID = null, // The user ID who is receiving the warning + public ?string $message = null, // The warning message public ?object $custom = null, // Custom data associated with the moderation action - public ?string $type = null, // The type of event: "call.moderation_warning" in this case ) { } diff --git a/src/GeneratedModels/CallNotificationEvent.php b/src/GeneratedModels/CallNotificationEvent.php index 66811b5..a202612 100644 --- a/src/GeneratedModels/CallNotificationEvent.php +++ b/src/GeneratedModels/CallNotificationEvent.php @@ -5,27 +5,19 @@ namespace GetStream\GeneratedModels; /** * This event is sent to all call members to notify they are getting called - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $sessionID - * @property array $members - * @property CallResponse $call - * @property UserResponse $user - * @property string $type */ class CallNotificationEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?CallResponse $call = null, + public ?UserResponse $user = null, + public ?string $type = null, // The type of event: "call.notification" in this case public ?\DateTime $createdAt = null, + public ?string $callCid = null, public ?string $sessionID = null, // Call session ID - /** @var array|null Call members */ + /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // Call members - public ?CallResponse $call = null, - public ?UserResponse $user = null, - public ?string $type = null, // The type of event: "call.notification" in this case ) { } diff --git a/src/GeneratedModels/CallParticipantCountReport.php b/src/GeneratedModels/CallParticipantCountReport.php index 2b3fa68..1c031e0 100644 --- a/src/GeneratedModels/CallParticipantCountReport.php +++ b/src/GeneratedModels/CallParticipantCountReport.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $histogram - */ class CallParticipantCountReport extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CallParticipantCountReportResponse.php b/src/GeneratedModels/CallParticipantCountReportResponse.php index a352a24..f25a383 100644 --- a/src/GeneratedModels/CallParticipantCountReportResponse.php +++ b/src/GeneratedModels/CallParticipantCountReportResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $daily - */ class CallParticipantCountReportResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CallParticipantResponse.php b/src/GeneratedModels/CallParticipantResponse.php index f8300ab..7b376c0 100644 --- a/src/GeneratedModels/CallParticipantResponse.php +++ b/src/GeneratedModels/CallParticipantResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $joinedAt - * @property string $role - * @property string $userSessionID - * @property UserResponse $user - */ class CallParticipantResponse extends BaseModel { public function __construct( - public ?\DateTime $joinedAt = null, - public ?string $role = null, - public ?string $userSessionID = null, public ?UserResponse $user = null, + public ?string $userSessionID = null, + public ?string $role = null, + public ?\DateTime $joinedAt = null, ) { } diff --git a/src/GeneratedModels/CallParticipantTimeline.php b/src/GeneratedModels/CallParticipantTimeline.php index 82cce1e..c38a988 100644 --- a/src/GeneratedModels/CallParticipantTimeline.php +++ b/src/GeneratedModels/CallParticipantTimeline.php @@ -3,20 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $severity - * @property \DateTime $timestamp - * @property string $type - * @property object $data - */ class CallParticipantTimeline extends BaseModel { public function __construct( - public ?string $severity = null, public ?\DateTime $timestamp = null, public ?string $type = null, + public ?string $severity = null, public ?object $data = null, ) { } diff --git a/src/GeneratedModels/CallReactionEvent.php b/src/GeneratedModels/CallReactionEvent.php index 247dc12..373d9d4 100644 --- a/src/GeneratedModels/CallReactionEvent.php +++ b/src/GeneratedModels/CallReactionEvent.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a reaction is sent in a call, clients should use this to show the reaction in the call screen - * - * @property string $callCid - * @property \DateTime $createdAt - * @property ReactionResponse $reaction - * @property string $type */ class CallReactionEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, - public ?ReactionResponse $reaction = null, + public ?VideoReactionResponse $reaction = null, public ?string $type = null, // The type of event: "call.reaction_new" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, ) { } diff --git a/src/GeneratedModels/CallRecording.php b/src/GeneratedModels/CallRecording.php index f9ba61a..d490bb8 100644 --- a/src/GeneratedModels/CallRecording.php +++ b/src/GeneratedModels/CallRecording.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * CallRecording represents a recording of a call. - * - * @property \DateTime $endTime - * @property string $filename - * @property string $recordingType - * @property string $sessionID - * @property \DateTime $startTime - * @property string $url */ class CallRecording extends BaseModel { public function __construct( - public ?\DateTime $endTime = null, public ?string $filename = null, - public ?string $recordingType = null, - public ?string $sessionID = null, - public ?\DateTime $startTime = null, public ?string $url = null, + public ?\DateTime $startTime = null, + public ?\DateTime $endTime = null, + public ?string $sessionID = null, + public ?string $recordingType = null, ) { } diff --git a/src/GeneratedModels/CallRecordingFailedEvent.php b/src/GeneratedModels/CallRecordingFailedEvent.php index 58449b0..7e67019 100644 --- a/src/GeneratedModels/CallRecordingFailedEvent.php +++ b/src/GeneratedModels/CallRecordingFailedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when call recording has failed - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $egressID - * @property string $recordingType - * @property string $type */ class CallRecordingFailedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?string $type = null, // The type of event: "call.recording_failed" in this case public ?\DateTime $createdAt = null, + public ?string $callCid = null, public ?string $egressID = null, public ?string $recordingType = null, // The type of recording - public ?string $type = null, // The type of event: "call.recording_failed" in this case ) { } diff --git a/src/GeneratedModels/CallRecordingReadyEvent.php b/src/GeneratedModels/CallRecordingReadyEvent.php index 001b31d..88841d8 100644 --- a/src/GeneratedModels/CallRecordingReadyEvent.php +++ b/src/GeneratedModels/CallRecordingReadyEvent.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * This event is sent when call recording is ready - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $egressID - * @property string $recordingType - * @property CallRecording $callRecording - * @property string $type */ class CallRecordingReadyEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?CallRecording $callRecording = null, + public ?string $type = null, // The type of event: "call.recording_ready" in this case public ?\DateTime $createdAt = null, + public ?string $callCid = null, public ?string $egressID = null, public ?string $recordingType = null, // The type of recording - public ?CallRecording $callRecording = null, - public ?string $type = null, // The type of event: "call.recording_ready" in this case ) { } diff --git a/src/GeneratedModels/CallRecordingStartedEvent.php b/src/GeneratedModels/CallRecordingStartedEvent.php index 0ebe27c..16cb81c 100644 --- a/src/GeneratedModels/CallRecordingStartedEvent.php +++ b/src/GeneratedModels/CallRecordingStartedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when call recording has started - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $egressID - * @property string $recordingType - * @property string $type */ class CallRecordingStartedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, public ?string $egressID = null, - public ?string $recordingType = null, // The type of recording public ?string $type = null, // The type of event: "call.recording_started" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, + public ?string $recordingType = null, // The type of recording ) { } diff --git a/src/GeneratedModels/CallRecordingStoppedEvent.php b/src/GeneratedModels/CallRecordingStoppedEvent.php index 9c6ba2c..aeb3576 100644 --- a/src/GeneratedModels/CallRecordingStoppedEvent.php +++ b/src/GeneratedModels/CallRecordingStoppedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when call recording has stopped - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $egressID - * @property string $recordingType - * @property string $type */ class CallRecordingStoppedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, public ?string $egressID = null, - public ?string $recordingType = null, // The type of recording public ?string $type = null, // The type of event: "call.recording_stopped" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, + public ?string $recordingType = null, // The type of recording ) { } diff --git a/src/GeneratedModels/CallRejectedEvent.php b/src/GeneratedModels/CallRejectedEvent.php index 1f159d1..349de58 100644 --- a/src/GeneratedModels/CallRejectedEvent.php +++ b/src/GeneratedModels/CallRejectedEvent.php @@ -5,22 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a user rejects a notification to join a call. - * - * @property string $callCid - * @property \DateTime $createdAt - * @property CallResponse $call - * @property UserResponse $user - * @property string $type - * @property string|null $reason */ class CallRejectedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, public ?CallResponse $call = null, public ?UserResponse $user = null, public ?string $type = null, // The type of event: "call.rejected" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, public ?string $reason = null, // Provides information about why the call was rejected. You can provide any value, but the Stream API and SDKs use these default values: rejected, cancel, timeout and busy ) { } diff --git a/src/GeneratedModels/CallReportResponse.php b/src/GeneratedModels/CallReportResponse.php index c36a7d6..de2dab2 100644 --- a/src/GeneratedModels/CallReportResponse.php +++ b/src/GeneratedModels/CallReportResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $score - * @property \DateTime|null $endedAt - * @property \DateTime|null $startedAt - */ class CallReportResponse extends BaseModel { public function __construct( public ?int $score = null, - public ?\DateTime $endedAt = null, public ?\DateTime $startedAt = null, + public ?\DateTime $endedAt = null, ) { } diff --git a/src/GeneratedModels/CallRequest.php b/src/GeneratedModels/CallRequest.php index 0cd4f14..de6a409 100644 --- a/src/GeneratedModels/CallRequest.php +++ b/src/GeneratedModels/CallRequest.php @@ -5,31 +5,21 @@ namespace GetStream\GeneratedModels; /** * CallRequest is the payload for creating a call. - * - * @property string|null $channelCid - * @property string|null $createdByID - * @property \DateTime|null $startsAt - * @property string|null $team - * @property bool|null $video - * @property array|null $members - * @property UserRequest|null $createdBy - * @property object|null $custom - * @property CallSettingsRequest|null $settingsOverride */ class CallRequest extends BaseModel { public function __construct( - public ?string $channelCid = null, - public ?string $createdByID = null, - public ?\DateTime $startsAt = null, + public ?UserRequest $createdBy = null, + public ?CallSettingsRequest $settingsOverride = null, public ?string $team = null, - public ?bool $video = null, + public ?string $createdByID = null, + public ?object $custom = null, /** @var array|null */ #[ArrayOf(MemberRequest::class)] public ?array $members = null, - public ?UserRequest $createdBy = null, - public ?object $custom = null, - public ?CallSettingsRequest $settingsOverride = null, + public ?\DateTime $startsAt = null, + public ?bool $video = null, + public ?string $channelCid = null, ) { } diff --git a/src/GeneratedModels/CallResponse.php b/src/GeneratedModels/CallResponse.php index 18f7b8f..5bd9ed3 100644 --- a/src/GeneratedModels/CallResponse.php +++ b/src/GeneratedModels/CallResponse.php @@ -5,61 +5,35 @@ namespace GetStream\GeneratedModels; /** * Represents a call - * - * @property bool $backstage - * @property bool $captioning - * @property string $cid - * @property \DateTime $createdAt - * @property string $currentSessionID - * @property string $id - * @property bool $recording - * @property bool $transcribing - * @property bool $translating - * @property string $type - * @property \DateTime $updatedAt - * @property array $blockedUserIds - * @property UserResponse $createdBy - * @property object $custom - * @property EgressResponse $egress - * @property CallIngressResponse $ingress - * @property CallSettingsResponse $settings - * @property string|null $channelCid - * @property \DateTime|null $endedAt - * @property int|null $joinAheadTimeSeconds - * @property string|null $routingNumber - * @property \DateTime|null $startsAt - * @property string|null $team - * @property CallSessionResponse|null $session - * @property ThumbnailResponse|null $thumbnails */ class CallResponse extends BaseModel { public function __construct( - public ?bool $backstage = null, - public ?bool $captioning = null, + public ?UserResponse $createdBy = null, + public ?EgressResponse $egress = null, + public ?CallIngressResponse $ingress = null, + public ?CallSessionResponse $session = null, + public ?CallSettingsResponse $settings = null, + public ?ThumbnailResponse $thumbnails = null, + public ?string $type = null, // The type of call + public ?string $id = null, // Call ID public ?string $cid = null, // The unique identifier for a call (:) - public ?\DateTime $createdAt = null, // Date/time of creation public ?string $currentSessionID = null, - public ?string $id = null, // Call ID + public ?string $team = null, + public ?object $custom = null, // Custom data for this object + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $updatedAt = null, // Date/time of the last update public ?bool $recording = null, public ?bool $transcribing = null, + public ?bool $captioning = null, public ?bool $translating = null, - public ?string $type = null, // The type of call - public ?\DateTime $updatedAt = null, // Date/time of the last update - public ?array $blockedUserIds = null, - public ?UserResponse $createdBy = null, - public ?object $custom = null, // Custom data for this object - public ?EgressResponse $egress = null, - public ?CallIngressResponse $ingress = null, - public ?CallSettingsResponse $settings = null, - public ?string $channelCid = null, public ?\DateTime $endedAt = null, // Date/time when the call ended + public ?\DateTime $startsAt = null, // Date/time when the call will start + public ?bool $backstage = null, + public ?array $blockedUserIds = null, public ?int $joinAheadTimeSeconds = null, + public ?string $channelCid = null, public ?string $routingNumber = null, // 10-digit routing number for SIP routing - public ?\DateTime $startsAt = null, // Date/time when the call will start - public ?string $team = null, - public ?CallSessionResponse $session = null, - public ?ThumbnailResponse $thumbnails = null, ) { } diff --git a/src/GeneratedModels/CallRingEvent.php b/src/GeneratedModels/CallRingEvent.php index 212a46e..d6a898f 100644 --- a/src/GeneratedModels/CallRingEvent.php +++ b/src/GeneratedModels/CallRingEvent.php @@ -5,29 +5,20 @@ namespace GetStream\GeneratedModels; /** * This event is sent to all call members to notify they are getting called - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $sessionID - * @property bool $video - * @property array $members - * @property CallResponse $call - * @property UserResponse $user - * @property string $type */ class CallRingEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?CallResponse $call = null, + public ?UserResponse $user = null, + public ?string $type = null, // The type of event: "call.notification" in this case public ?\DateTime $createdAt = null, + public ?string $callCid = null, public ?string $sessionID = null, // Call session ID - public ?bool $video = null, - /** @var array|null Call members */ + /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // Call members - public ?CallResponse $call = null, - public ?UserResponse $user = null, - public ?string $type = null, // The type of event: "call.notification" in this case + public ?bool $video = null, ) { } diff --git a/src/GeneratedModels/CallRtmpBroadcastFailedEvent.php b/src/GeneratedModels/CallRtmpBroadcastFailedEvent.php index a7fd0e6..2d16054 100644 --- a/src/GeneratedModels/CallRtmpBroadcastFailedEvent.php +++ b/src/GeneratedModels/CallRtmpBroadcastFailedEvent.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a call RTMP broadcast has failed - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $name - * @property string $type */ class CallRtmpBroadcastFailedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, // The unique identifier for a call (:) + public ?string $type = null, // The type of event: "call.rtmp_broadcast_failed" in this case public ?\DateTime $createdAt = null, // Date/time of creation + public ?string $callCid = null, // The unique identifier for a call (:) public ?string $name = null, // Name of the given RTMP broadcast - public ?string $type = null, // The type of event: "call.rtmp_broadcast_failed" in this case ) { } diff --git a/src/GeneratedModels/CallRtmpBroadcastStartedEvent.php b/src/GeneratedModels/CallRtmpBroadcastStartedEvent.php index 8471169..0b7d690 100644 --- a/src/GeneratedModels/CallRtmpBroadcastStartedEvent.php +++ b/src/GeneratedModels/CallRtmpBroadcastStartedEvent.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * This event is sent when RTMP broadcast has started - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $name - * @property string $type */ class CallRtmpBroadcastStartedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, // The unique identifier for a call (:) + public ?string $type = null, // The type of event: "call.rtmp_broadcast_started" in this case public ?\DateTime $createdAt = null, // Date/time of creation + public ?string $callCid = null, // The unique identifier for a call (:) public ?string $name = null, // Name of the given RTMP broadcast - public ?string $type = null, // The type of event: "call.rtmp_broadcast_started" in this case ) { } diff --git a/src/GeneratedModels/CallRtmpBroadcastStoppedEvent.php b/src/GeneratedModels/CallRtmpBroadcastStoppedEvent.php index 1fff94d..50f1bd1 100644 --- a/src/GeneratedModels/CallRtmpBroadcastStoppedEvent.php +++ b/src/GeneratedModels/CallRtmpBroadcastStoppedEvent.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * This event is sent when RTMP broadcast has stopped - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $name - * @property string $type */ class CallRtmpBroadcastStoppedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, // The unique identifier for a call (:) + public ?string $type = null, // The type of event: "call.rtmp_broadcast_stopped" in this case public ?\DateTime $createdAt = null, // Date/time of creation + public ?string $callCid = null, // The unique identifier for a call (:) public ?string $name = null, // Name of the given RTMP broadcast - public ?string $type = null, // The type of event: "call.rtmp_broadcast_stopped" in this case ) { } diff --git a/src/GeneratedModels/CallRuleActionSequence.php b/src/GeneratedModels/CallRuleActionSequence.php new file mode 100644 index 0000000..8373f35 --- /dev/null +++ b/src/GeneratedModels/CallRuleActionSequence.php @@ -0,0 +1,17 @@ + $participants - * @property array $acceptedBy - * @property array $missedBy - * @property array $participantsCountByRole - * @property array $rejectedBy - * @property \DateTime|null $endedAt - * @property \DateTime|null $liveEndedAt - * @property \DateTime|null $liveStartedAt - * @property \DateTime|null $startedAt - * @property \DateTime|null $timerEndsAt - */ class CallSessionResponse extends BaseModel { public function __construct( - public ?int $anonymousParticipantCount = null, public ?string $id = null, + public ?\DateTime $startedAt = null, + public ?\DateTime $endedAt = null, /** @var array|null */ #[ArrayOf(CallParticipantResponse::class)] public ?array $participants = null, - public ?array $acceptedBy = null, - public ?array $missedBy = null, public ?array $participantsCountByRole = null, + public ?int $anonymousParticipantCount = null, public ?array $rejectedBy = null, - public ?\DateTime $endedAt = null, - public ?\DateTime $liveEndedAt = null, + public ?array $acceptedBy = null, + public ?array $missedBy = null, public ?\DateTime $liveStartedAt = null, - public ?\DateTime $startedAt = null, + public ?\DateTime $liveEndedAt = null, public ?\DateTime $timerEndsAt = null, ) { } diff --git a/src/GeneratedModels/CallSessionStartedEvent.php b/src/GeneratedModels/CallSessionStartedEvent.php index 57f843f..85c59a0 100644 --- a/src/GeneratedModels/CallSessionStartedEvent.php +++ b/src/GeneratedModels/CallSessionStartedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a call session starts - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $sessionID - * @property CallResponse $call - * @property string $type */ class CallSessionStartedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, - public ?string $sessionID = null, // Call session ID public ?CallResponse $call = null, public ?string $type = null, // The type of event: "call.session_started" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, + public ?string $sessionID = null, // Call session ID ) { } diff --git a/src/GeneratedModels/CallSettings.php b/src/GeneratedModels/CallSettings.php index b6b4fe1..643a4b9 100644 --- a/src/GeneratedModels/CallSettings.php +++ b/src/GeneratedModels/CallSettings.php @@ -3,26 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property AudioSettings|null $audio - * @property BackstageSettings|null $backstage - * @property BroadcastSettings|null $broadcasting - * @property FrameRecordSettings|null $frameRecording - * @property GeofenceSettings|null $geofencing - * @property IndividualRecordSettings|null $individualRecording - * @property IngressSettings|null $ingress - * @property LimitsSettings|null $limits - * @property RawRecordSettings|null $rawRecording - * @property RecordSettings|null $recording - * @property RingSettings|null $ring - * @property ScreensharingSettings|null $screensharing - * @property SessionSettings|null $session - * @property ThumbnailsSettings|null $thumbnails - * @property TranscriptionSettings|null $transcription - * @property VideoSettings|null $video - */ class CallSettings extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CallSettingsRequest.php b/src/GeneratedModels/CallSettingsRequest.php index d3447de..c2ec5a2 100644 --- a/src/GeneratedModels/CallSettingsRequest.php +++ b/src/GeneratedModels/CallSettingsRequest.php @@ -3,26 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property AudioSettingsRequest|null $audio - * @property BackstageSettingsRequest|null $backstage - * @property BroadcastSettingsRequest|null $broadcasting - * @property FrameRecordingSettingsRequest|null $frameRecording - * @property GeofenceSettingsRequest|null $geofencing - * @property IndividualRecordingSettingsRequest|null $individualRecording - * @property IngressSettingsRequest|null $ingress - * @property LimitsSettingsRequest|null $limits - * @property RawRecordingSettingsRequest|null $rawRecording - * @property RecordSettingsRequest|null $recording - * @property RingSettingsRequest|null $ring - * @property ScreensharingSettingsRequest|null $screensharing - * @property SessionSettingsRequest|null $session - * @property ThumbnailsSettingsRequest|null $thumbnails - * @property TranscriptionSettingsRequest|null $transcription - * @property VideoSettingsRequest|null $video - */ class CallSettingsRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CallSettingsResponse.php b/src/GeneratedModels/CallSettingsResponse.php index e3ca293..c97632d 100644 --- a/src/GeneratedModels/CallSettingsResponse.php +++ b/src/GeneratedModels/CallSettingsResponse.php @@ -3,26 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property AudioSettingsResponse $audio - * @property BackstageSettingsResponse $backstage - * @property BroadcastSettingsResponse $broadcasting - * @property FrameRecordingSettingsResponse $frameRecording - * @property GeofenceSettingsResponse $geofencing - * @property IndividualRecordingSettingsResponse $individualRecording - * @property LimitsSettingsResponse $limits - * @property RawRecordingSettingsResponse $rawRecording - * @property RecordSettingsResponse $recording - * @property RingSettingsResponse $ring - * @property ScreensharingSettingsResponse $screensharing - * @property SessionSettingsResponse $session - * @property ThumbnailsSettingsResponse $thumbnails - * @property TranscriptionSettingsResponse $transcription - * @property VideoSettingsResponse $video - * @property IngressSettingsResponse|null $ingress - */ class CallSettingsResponse extends BaseModel { public function __construct( @@ -32,6 +12,7 @@ public function __construct( public ?FrameRecordingSettingsResponse $frameRecording = null, public ?GeofenceSettingsResponse $geofencing = null, public ?IndividualRecordingSettingsResponse $individualRecording = null, + public ?IngressSettingsResponse $ingress = null, public ?LimitsSettingsResponse $limits = null, public ?RawRecordingSettingsResponse $rawRecording = null, public ?RecordSettingsResponse $recording = null, @@ -41,7 +22,6 @@ public function __construct( public ?ThumbnailsSettingsResponse $thumbnails = null, public ?TranscriptionSettingsResponse $transcription = null, public ?VideoSettingsResponse $video = null, - public ?IngressSettingsResponse $ingress = null, ) { } diff --git a/src/GeneratedModels/CallStateResponseFields.php b/src/GeneratedModels/CallStateResponseFields.php index 41194ae..a319c4d 100644 --- a/src/GeneratedModels/CallStateResponseFields.php +++ b/src/GeneratedModels/CallStateResponseFields.php @@ -5,21 +5,17 @@ namespace GetStream\GeneratedModels; /** * CallStateResponseFields is the payload for call state response - * - * @property array $members - * @property array $ownCapabilities - * @property CallResponse $call */ class CallStateResponseFields extends BaseModel { public function __construct( - /** @var array|null List of call members */ + public ?CallResponse $call = null, + /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, // List of call members /** @var array|null */ #[ArrayOf(OwnCapability::class)] public ?array $ownCapabilities = null, - public ?CallResponse $call = null, ) { } diff --git a/src/GeneratedModels/CallStatsLocation.php b/src/GeneratedModels/CallStatsLocation.php index 80cf527..790f1f3 100644 --- a/src/GeneratedModels/CallStatsLocation.php +++ b/src/GeneratedModels/CallStatsLocation.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $accuracyRadiusMeters - * @property string|null $city - * @property string|null $continent - * @property string|null $country - * @property string|null $countryIsoCode - * @property int|null $latitude - * @property int|null $longitude - * @property string|null $subdivision - */ class CallStatsLocation extends BaseModel { public function __construct( - public ?int $accuracyRadiusMeters = null, public ?string $city = null, - public ?string $continent = null, + public ?string $subdivision = null, public ?string $country = null, public ?string $countryIsoCode = null, + public ?string $continent = null, public ?int $latitude = null, public ?int $longitude = null, - public ?string $subdivision = null, + public ?int $accuracyRadiusMeters = null, ) { } diff --git a/src/GeneratedModels/CallStatsMapLocation.php b/src/GeneratedModels/CallStatsMapLocation.php index fbe29ea..c518209 100644 --- a/src/GeneratedModels/CallStatsMapLocation.php +++ b/src/GeneratedModels/CallStatsMapLocation.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $count - * @property int $liveCount - * @property CallStatsLocation|null $location - */ class CallStatsMapLocation extends BaseModel { public function __construct( + public ?CallStatsLocation $location = null, public ?int $count = null, public ?int $liveCount = null, - public ?CallStatsLocation $location = null, ) { } diff --git a/src/GeneratedModels/CallStatsMapPublisher.php b/src/GeneratedModels/CallStatsMapPublisher.php index 582c04c..0489ff6 100644 --- a/src/GeneratedModels/CallStatsMapPublisher.php +++ b/src/GeneratedModels/CallStatsMapPublisher.php @@ -3,27 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $isLive - * @property string $userID - * @property string $userSessionID - * @property PublishedTrackFlags $publishedTracks - * @property string|null $name - * @property string|null $publisherType - * @property CallStatsLocation|null $location - */ class CallStatsMapPublisher extends BaseModel { public function __construct( - public ?bool $isLive = null, - public ?string $userID = null, - public ?string $userSessionID = null, + public ?CallStatsLocation $location = null, public ?PublishedTrackFlags $publishedTracks = null, + public ?string $userID = null, public ?string $name = null, + public ?string $userSessionID = null, public ?string $publisherType = null, - public ?CallStatsLocation $location = null, + public ?bool $isLive = null, ) { } diff --git a/src/GeneratedModels/CallStatsMapPublishers.php b/src/GeneratedModels/CallStatsMapPublishers.php index a4d367f..1f21159 100644 --- a/src/GeneratedModels/CallStatsMapPublishers.php +++ b/src/GeneratedModels/CallStatsMapPublishers.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $publishers - */ class CallStatsMapPublishers extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CallStatsMapSFUs.php b/src/GeneratedModels/CallStatsMapSFUs.php index 3ecb5f0..94f8e6d 100644 --- a/src/GeneratedModels/CallStatsMapSFUs.php +++ b/src/GeneratedModels/CallStatsMapSFUs.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $locations - */ class CallStatsMapSFUs extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CallStatsMapSubscriber.php b/src/GeneratedModels/CallStatsMapSubscriber.php index 61e14e4..4f5c355 100644 --- a/src/GeneratedModels/CallStatsMapSubscriber.php +++ b/src/GeneratedModels/CallStatsMapSubscriber.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $isLive - * @property string $userID - * @property string $userSessionID - * @property string|null $name - * @property CallStatsLocation|null $location - */ class CallStatsMapSubscriber extends BaseModel { public function __construct( - public ?bool $isLive = null, + public ?CallStatsLocation $location = null, public ?string $userID = null, - public ?string $userSessionID = null, public ?string $name = null, - public ?CallStatsLocation $location = null, + public ?string $userSessionID = null, + public ?bool $isLive = null, ) { } diff --git a/src/GeneratedModels/CallStatsMapSubscribers.php b/src/GeneratedModels/CallStatsMapSubscribers.php index a29ebe1..3ebb23c 100644 --- a/src/GeneratedModels/CallStatsMapSubscribers.php +++ b/src/GeneratedModels/CallStatsMapSubscribers.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $locations - * @property array|null $participants - */ class CallStatsMapSubscribers extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CallStatsParticipant.php b/src/GeneratedModels/CallStatsParticipant.php index 44aa12a..8500739 100644 --- a/src/GeneratedModels/CallStatsParticipant.php +++ b/src/GeneratedModels/CallStatsParticipant.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $userID - * @property array $sessions - * @property \DateTime|null $latestActivityAt - * @property string|null $name - * @property array|null $roles - */ class CallStatsParticipant extends BaseModel { public function __construct( public ?string $userID = null, + public ?string $name = null, + public ?array $roles = null, /** @var array|null */ #[ArrayOf(CallStatsParticipantSession::class)] public ?array $sessions = null, public ?\DateTime $latestActivityAt = null, - public ?string $name = null, - public ?array $roles = null, ) { } diff --git a/src/GeneratedModels/CallStatsParticipantCounts.php b/src/GeneratedModels/CallStatsParticipantCounts.php index 7bc3fe1..9c40df8 100644 --- a/src/GeneratedModels/CallStatsParticipantCounts.php +++ b/src/GeneratedModels/CallStatsParticipantCounts.php @@ -3,26 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $liveSessions - * @property int $participants - * @property int $peakConcurrentSessions - * @property int $peakConcurrentUsers - * @property int $publishers - * @property int $sessions - * @property int|null $totalParticipantDuration - */ class CallStatsParticipantCounts extends BaseModel { public function __construct( - public ?int $liveSessions = null, public ?int $participants = null, - public ?int $peakConcurrentSessions = null, - public ?int $peakConcurrentUsers = null, - public ?int $publishers = null, public ?int $sessions = null, + public ?int $liveSessions = null, + public ?int $publishers = null, + public ?int $peakConcurrentUsers = null, + public ?int $peakConcurrentSessions = null, public ?int $totalParticipantDuration = null, ) { } diff --git a/src/GeneratedModels/CallStatsParticipantSession.php b/src/GeneratedModels/CallStatsParticipantSession.php index ea739f2..a3a8bb3 100644 --- a/src/GeneratedModels/CallStatsParticipantSession.php +++ b/src/GeneratedModels/CallStatsParticipantSession.php @@ -3,49 +3,27 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $isLive - * @property string $userSessionID - * @property PublishedTrackFlags $publishedTracks - * @property string|null $browser - * @property string|null $browserVersion - * @property int|null $cqScore - * @property string|null $currentIp - * @property string|null $currentSfu - * @property int|null $distanceToSfuKilometers - * @property \DateTime|null $endedAt - * @property string|null $os - * @property string|null $publisherType - * @property string|null $sdk - * @property string|null $sdkVersion - * @property \DateTime|null $startedAt - * @property string|null $unifiedSessionID - * @property string|null $webrtcVersion - * @property CallStatsLocation|null $location - */ class CallStatsParticipantSession extends BaseModel { public function __construct( - public ?bool $isLive = null, - public ?string $userSessionID = null, + public ?CallStatsLocation $location = null, public ?PublishedTrackFlags $publishedTracks = null, + public ?string $userSessionID = null, + public ?string $unifiedSessionID = null, + public ?\DateTime $startedAt = null, + public ?\DateTime $endedAt = null, + public ?bool $isLive = null, + public ?string $publisherType = null, + public ?string $sdk = null, + public ?string $sdkVersion = null, + public ?string $webrtcVersion = null, public ?string $browser = null, public ?string $browserVersion = null, - public ?int $cqScore = null, public ?string $currentIp = null, public ?string $currentSfu = null, public ?int $distanceToSfuKilometers = null, - public ?\DateTime $endedAt = null, + public ?int $cqScore = null, public ?string $os = null, - public ?string $publisherType = null, - public ?string $sdk = null, - public ?string $sdkVersion = null, - public ?\DateTime $startedAt = null, - public ?string $unifiedSessionID = null, - public ?string $webrtcVersion = null, - public ?CallStatsLocation $location = null, ) { } diff --git a/src/GeneratedModels/CallStatsReportReadyEvent.php b/src/GeneratedModels/CallStatsReportReadyEvent.php index 545e2e7..1e8d1fa 100644 --- a/src/GeneratedModels/CallStatsReportReadyEvent.php +++ b/src/GeneratedModels/CallStatsReportReadyEvent.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * This event is sent when the insights report is ready - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $sessionID - * @property string $type */ class CallStatsReportReadyEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?string $type = null, // The type of event, "call.report_ready" in this case public ?\DateTime $createdAt = null, + public ?string $callCid = null, public ?string $sessionID = null, // Call session ID - public ?string $type = null, // The type of event, "call.report_ready" in this case ) { } diff --git a/src/GeneratedModels/CallStatsReportSummaryResponse.php b/src/GeneratedModels/CallStatsReportSummaryResponse.php index 6b69c47..cc50fd3 100644 --- a/src/GeneratedModels/CallStatsReportSummaryResponse.php +++ b/src/GeneratedModels/CallStatsReportSummaryResponse.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $callCid - * @property int $callDurationSeconds - * @property string $callSessionID - * @property string $callStatus - * @property \DateTime $firstStatsTime - * @property \DateTime|null $createdAt - * @property int|null $minUserRating - * @property int|null $qualityScore - */ class CallStatsReportSummaryResponse extends BaseModel { public function __construct( public ?string $callCid = null, - public ?int $callDurationSeconds = null, public ?string $callSessionID = null, - public ?string $callStatus = null, public ?\DateTime $firstStatsTime = null, - public ?\DateTime $createdAt = null, - public ?int $minUserRating = null, + public ?string $callStatus = null, public ?int $qualityScore = null, + public ?int $minUserRating = null, + public ?\DateTime $createdAt = null, + public ?int $callDurationSeconds = null, ) { } diff --git a/src/GeneratedModels/CallTranscription.php b/src/GeneratedModels/CallTranscription.php index 10aa3d6..f4d9a27 100644 --- a/src/GeneratedModels/CallTranscription.php +++ b/src/GeneratedModels/CallTranscription.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * CallTranscription represents a transcription of a call. - * - * @property \DateTime $endTime - * @property string $filename - * @property string $sessionID - * @property \DateTime $startTime - * @property string $url */ class CallTranscription extends BaseModel { public function __construct( - public ?\DateTime $endTime = null, public ?string $filename = null, - public ?string $sessionID = null, - public ?\DateTime $startTime = null, public ?string $url = null, + public ?\DateTime $startTime = null, + public ?\DateTime $endTime = null, + public ?string $sessionID = null, ) { } diff --git a/src/GeneratedModels/CallTranscriptionFailedEvent.php b/src/GeneratedModels/CallTranscriptionFailedEvent.php index 81c5b43..ccf0c8e 100644 --- a/src/GeneratedModels/CallTranscriptionFailedEvent.php +++ b/src/GeneratedModels/CallTranscriptionFailedEvent.php @@ -5,20 +5,14 @@ namespace GetStream\GeneratedModels; /** * This event is sent when call transcription has failed - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $egressID - * @property string $type - * @property string|null $error */ class CallTranscriptionFailedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?string $type = null, // The type of event: "call.transcription_failed" in this case public ?\DateTime $createdAt = null, + public ?string $callCid = null, public ?string $egressID = null, - public ?string $type = null, // The type of event: "call.transcription_failed" in this case public ?string $error = null, // The error message detailing why transcription failed. ) { } diff --git a/src/GeneratedModels/CallTranscriptionReadyEvent.php b/src/GeneratedModels/CallTranscriptionReadyEvent.php index 5ea5d27..7cbabe4 100644 --- a/src/GeneratedModels/CallTranscriptionReadyEvent.php +++ b/src/GeneratedModels/CallTranscriptionReadyEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when call transcription is ready - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $egressID - * @property CallTranscription $callTranscription - * @property string $type */ class CallTranscriptionReadyEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, - public ?string $egressID = null, public ?CallTranscription $callTranscription = null, public ?string $type = null, // The type of event: "call.transcription_ready" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, + public ?string $egressID = null, ) { } diff --git a/src/GeneratedModels/CallTranscriptionStartedEvent.php b/src/GeneratedModels/CallTranscriptionStartedEvent.php index 8b1a484..60d54f3 100644 --- a/src/GeneratedModels/CallTranscriptionStartedEvent.php +++ b/src/GeneratedModels/CallTranscriptionStartedEvent.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * This event is sent when call transcription has started - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $egressID - * @property string $type */ class CallTranscriptionStartedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, public ?string $egressID = null, public ?string $type = null, // The type of event: "call.transcription_started" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, ) { } diff --git a/src/GeneratedModels/CallTranscriptionStoppedEvent.php b/src/GeneratedModels/CallTranscriptionStoppedEvent.php index dbdc5b4..08ff312 100644 --- a/src/GeneratedModels/CallTranscriptionStoppedEvent.php +++ b/src/GeneratedModels/CallTranscriptionStoppedEvent.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * This event is sent when call transcription has stopped - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $egressID - * @property string $type */ class CallTranscriptionStoppedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?string $type = null, // The type of event: "call.transcription_stopped" in this case public ?\DateTime $createdAt = null, + public ?string $callCid = null, public ?string $egressID = null, - public ?string $type = null, // The type of event: "call.transcription_stopped" in this case ) { } diff --git a/src/GeneratedModels/CallType.php b/src/GeneratedModels/CallType.php index 898ea8e..234dc4a 100644 --- a/src/GeneratedModels/CallType.php +++ b/src/GeneratedModels/CallType.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $app - * @property \DateTime $createdAt - * @property int $id - * @property string $name - * @property string $recordingExternalStorage - * @property \DateTime $updatedAt - * @property NotificationSettings|null $notificationSettings - * @property CallSettings|null $settings - */ class CallType extends BaseModel { public function __construct( - public ?int $app = null, - public ?\DateTime $createdAt = null, + public ?NotificationSettings $notificationSettings = null, + public ?CallSettings $settings = null, public ?int $id = null, + public ?int $app = null, public ?string $name = null, - public ?string $recordingExternalStorage = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, - public ?NotificationSettings $notificationSettings = null, - public ?CallSettings $settings = null, + public ?string $recordingExternalStorage = null, ) { } diff --git a/src/GeneratedModels/CallTypeResponse.php b/src/GeneratedModels/CallTypeResponse.php index 40a8b3a..c28c875 100644 --- a/src/GeneratedModels/CallTypeResponse.php +++ b/src/GeneratedModels/CallTypeResponse.php @@ -5,24 +5,16 @@ namespace GetStream\GeneratedModels; /** * CallTypeResponse is the payload for a call type. - * - * @property \DateTime $createdAt - * @property string $name - * @property \DateTime $updatedAt - * @property array $grants - * @property NotificationSettings $notificationSettings - * @property CallSettingsResponse $settings - * @property string|null $externalStorage */ class CallTypeResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // the time the call type was created + public ?NotificationSettingsResponse $notificationSettings = null, + public ?CallSettingsResponse $settings = null, public ?string $name = null, // the name of the call type - public ?\DateTime $updatedAt = null, // the time the call type was last updated public ?array $grants = null, // the permissions granted to each role - public ?NotificationSettings $notificationSettings = null, - public ?CallSettingsResponse $settings = null, + public ?\DateTime $createdAt = null, // the time the call type was created + public ?\DateTime $updatedAt = null, // the time the call type was last updated public ?string $externalStorage = null, // the external storage for the call type ) { } diff --git a/src/GeneratedModels/CallTypeRuleParameters.php b/src/GeneratedModels/CallTypeRuleParameters.php new file mode 100644 index 0000000..7f32060 --- /dev/null +++ b/src/GeneratedModels/CallTypeRuleParameters.php @@ -0,0 +1,15 @@ + $daily - */ class CallsPerDayReportResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CampaignChannelMember.php b/src/GeneratedModels/CampaignChannelMember.php index 7018644..e083283 100644 --- a/src/GeneratedModels/CampaignChannelMember.php +++ b/src/GeneratedModels/CampaignChannelMember.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $userID - * @property string|null $channelRole - * @property object|null $custom - */ class CampaignChannelMember extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CampaignChannelTemplate.php b/src/GeneratedModels/CampaignChannelTemplate.php index 48bc2f9..a57910c 100644 --- a/src/GeneratedModels/CampaignChannelTemplate.php +++ b/src/GeneratedModels/CampaignChannelTemplate.php @@ -3,27 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $type - * @property object $custom - * @property string|null $id - * @property string|null $team - * @property array|null $members - * @property array|null $membersTemplate - */ class CampaignChannelTemplate extends BaseModel { public function __construct( public ?string $type = null, - public ?object $custom = null, public ?string $id = null, - public ?string $team = null, public ?array $members = null, /** @var array|null */ #[ArrayOf(CampaignChannelMember::class)] public ?array $membersTemplate = null, + public ?string $team = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/CampaignCompletedEvent.php b/src/GeneratedModels/CampaignCompletedEvent.php index 685c6d7..8b047f8 100644 --- a/src/GeneratedModels/CampaignCompletedEvent.php +++ b/src/GeneratedModels/CampaignCompletedEvent.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - * @property CampaignResponse|null $campaign - */ class CampaignCompletedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?object $custom = null, + public ?CampaignResponse $campaign = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, - public ?CampaignResponse $campaign = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/CampaignMessageTemplate.php b/src/GeneratedModels/CampaignMessageTemplate.php index f94773f..597a331 100644 --- a/src/GeneratedModels/CampaignMessageTemplate.php +++ b/src/GeneratedModels/CampaignMessageTemplate.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $pollID - * @property bool $searchable - * @property string $text - * @property array $attachments - * @property object $custom - */ class CampaignMessageTemplate extends BaseModel { public function __construct( - public ?string $pollID = null, - public ?bool $searchable = null, public ?string $text = null, /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, + public ?string $pollID = null, public ?object $custom = null, + public ?bool $searchable = null, ) { } diff --git a/src/GeneratedModels/CampaignResponse.php b/src/GeneratedModels/CampaignResponse.php index 186ff29..6071808 100644 --- a/src/GeneratedModels/CampaignResponse.php +++ b/src/GeneratedModels/CampaignResponse.php @@ -3,63 +3,36 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $createChannels - * @property \DateTime $createdAt - * @property string $description - * @property string $id - * @property string $name - * @property string $senderID - * @property string $senderMode - * @property string $senderVisibility - * @property bool $showChannels - * @property bool $skipPush - * @property bool $skipWebhook - * @property string $status - * @property \DateTime $updatedAt - * @property array $segmentIds - * @property array $segments - * @property array $userIds - * @property array $users - * @property CampaignStatsResponse $stats - * @property \DateTime|null $scheduledFor - * @property \DateTime|null $stopAt - * @property CampaignChannelTemplate|null $channelTemplate - * @property CampaignMessageTemplate|null $messageTemplate - * @property UserResponse|null $sender - */ class CampaignResponse extends BaseModel { public function __construct( - public ?bool $createChannels = null, - public ?\DateTime $createdAt = null, - public ?string $description = null, + public ?CampaignChannelTemplate $channelTemplate = null, + public ?CampaignMessageTemplate $messageTemplate = null, + public ?UserResponse $sender = null, + public ?CampaignStatsResponse $stats = null, public ?string $id = null, - public ?string $name = null, + public ?array $segmentIds = null, + /** @var array|null */ + #[ArrayOf(Segment::class)] + public ?array $segments = null, public ?string $senderID = null, public ?string $senderMode = null, public ?string $senderVisibility = null, + public ?string $name = null, + public ?bool $createChannels = null, public ?bool $showChannels = null, + public ?string $description = null, public ?bool $skipPush = null, public ?bool $skipWebhook = null, - public ?string $status = null, - public ?\DateTime $updatedAt = null, - public ?array $segmentIds = null, - /** @var array|null */ - #[ArrayOf(Segment::class)] - public ?array $segments = null, + public ?\DateTime $scheduledFor = null, + public ?\DateTime $stopAt = null, public ?array $userIds = null, /** @var array|null */ #[ArrayOf(UserResponse::class)] public ?array $users = null, - public ?CampaignStatsResponse $stats = null, - public ?\DateTime $scheduledFor = null, - public ?\DateTime $stopAt = null, - public ?CampaignChannelTemplate $channelTemplate = null, - public ?CampaignMessageTemplate $messageTemplate = null, - public ?UserResponse $sender = null, + public ?string $status = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, ) { } diff --git a/src/GeneratedModels/CampaignStartedEvent.php b/src/GeneratedModels/CampaignStartedEvent.php index 1d2d50c..3816238 100644 --- a/src/GeneratedModels/CampaignStartedEvent.php +++ b/src/GeneratedModels/CampaignStartedEvent.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - * @property CampaignResponse|null $campaign - */ class CampaignStartedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?object $custom = null, + public ?CampaignResponse $campaign = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, - public ?CampaignResponse $campaign = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/CampaignStatsResponse.php b/src/GeneratedModels/CampaignStatsResponse.php index 83c04f3..0b4dd5f 100644 --- a/src/GeneratedModels/CampaignStatsResponse.php +++ b/src/GeneratedModels/CampaignStatsResponse.php @@ -3,27 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $progress - * @property int $statsChannelsCreated - * @property \DateTime $statsCompletedAt - * @property int $statsMessagesSent - * @property \DateTime $statsStartedAt - * @property int $statsUsersRead - * @property int $statsUsersSent - */ class CampaignStatsResponse extends BaseModel { public function __construct( - public ?int $progress = null, - public ?int $statsChannelsCreated = null, + public ?\DateTime $statsStartedAt = null, public ?\DateTime $statsCompletedAt = null, public ?int $statsMessagesSent = null, - public ?\DateTime $statsStartedAt = null, - public ?int $statsUsersRead = null, + public ?int $statsChannelsCreated = null, + public ?int $progress = null, public ?int $statsUsersSent = null, + public ?int $statsUsersRead = null, ) { } diff --git a/src/GeneratedModels/CastPollVoteRequest.php b/src/GeneratedModels/CastPollVoteRequest.php index 8449489..6d78313 100644 --- a/src/GeneratedModels/CastPollVoteRequest.php +++ b/src/GeneratedModels/CastPollVoteRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $userID - * @property UserRequest|null $user - * @property VoteData|null $vote - */ class CastPollVoteRequest extends BaseModel { public function __construct( - public ?string $userID = null, public ?UserRequest $user = null, public ?VoteData $vote = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/ChannelBatchCompletedEvent.php b/src/GeneratedModels/ChannelBatchCompletedEvent.php index b529654..924db84 100644 --- a/src/GeneratedModels/ChannelBatchCompletedEvent.php +++ b/src/GeneratedModels/ChannelBatchCompletedEvent.php @@ -3,37 +3,22 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $batchCreatedAt - * @property \DateTime $createdAt - * @property \DateTime $finishedAt - * @property string $operation - * @property string $status - * @property int $successChannelsCount - * @property string $taskID - * @property array $failedChannels - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - */ class ChannelBatchCompletedEvent extends BaseModel { public function __construct( - public ?\DateTime $batchCreatedAt = null, + public ?string $type = null, public ?\DateTime $createdAt = null, - public ?\DateTime $finishedAt = null, + public ?\DateTime $receivedAt = null, + public ?object $custom = null, public ?string $operation = null, public ?string $status = null, - public ?int $successChannelsCount = null, public ?string $taskID = null, /** @var array|null */ #[ArrayOf(FailedChannelUpdates::class)] public ?array $failedChannels = null, - public ?object $custom = null, - public ?string $type = null, - public ?\DateTime $receivedAt = null, + public ?int $successChannelsCount = null, + public ?\DateTime $batchCreatedAt = null, + public ?\DateTime $finishedAt = null, ) { } diff --git a/src/GeneratedModels/ChannelBatchStartedEvent.php b/src/GeneratedModels/ChannelBatchStartedEvent.php index 49d731c..8b60fcd 100644 --- a/src/GeneratedModels/ChannelBatchStartedEvent.php +++ b/src/GeneratedModels/ChannelBatchStartedEvent.php @@ -3,37 +3,22 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $batchCreatedAt - * @property \DateTime $createdAt - * @property \DateTime $finishedAt - * @property string $operation - * @property string $status - * @property int $successChannelsCount - * @property string $taskID - * @property array $failedChannels - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - */ class ChannelBatchStartedEvent extends BaseModel { public function __construct( - public ?\DateTime $batchCreatedAt = null, + public ?string $type = null, public ?\DateTime $createdAt = null, - public ?\DateTime $finishedAt = null, + public ?\DateTime $receivedAt = null, + public ?object $custom = null, public ?string $operation = null, public ?string $status = null, - public ?int $successChannelsCount = null, public ?string $taskID = null, /** @var array|null */ #[ArrayOf(FailedChannelUpdates::class)] public ?array $failedChannels = null, - public ?object $custom = null, - public ?string $type = null, - public ?\DateTime $receivedAt = null, + public ?int $successChannelsCount = null, + public ?\DateTime $batchCreatedAt = null, + public ?\DateTime $finishedAt = null, ) { } diff --git a/src/GeneratedModels/ChannelConfig.php b/src/GeneratedModels/ChannelConfig.php index 5ad365c..e60a5c8 100644 --- a/src/GeneratedModels/ChannelConfig.php +++ b/src/GeneratedModels/ChannelConfig.php @@ -3,83 +3,46 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $automod - * @property string $automodBehavior - * @property bool $connectEvents - * @property bool $countMessages - * @property \DateTime $createdAt - * @property bool $customEvents - * @property bool $deliveryEvents - * @property bool $markMessagesPending - * @property int $maxMessageLength - * @property bool $mutes - * @property string $name - * @property bool $polls - * @property bool $pushNotifications - * @property bool $quotes - * @property bool $reactions - * @property bool $readEvents - * @property bool $reminders - * @property bool $replies - * @property bool $search - * @property bool $sharedLocations - * @property bool $skipLastMsgUpdateForSystemMsgs - * @property bool $typingEvents - * @property \DateTime $updatedAt - * @property bool $uploads - * @property bool $urlEnrichment - * @property bool $userMessageReminders - * @property array $commands - * @property string|null $blocklist - * @property string|null $blocklistBehavior - * @property int|null $partitionSize - * @property string|null $partitionTtl - * @property array|null $allowedFlagReasons - * @property array|null $blocklists - * @property Thresholds|null $automodThresholds - */ class ChannelConfig extends BaseModel { public function __construct( - public ?string $automod = null, - public ?string $automodBehavior = null, + public ?Thresholds $automodThresholds = null, + public ?string $name = null, + public ?bool $typingEvents = null, + public ?bool $readEvents = null, public ?bool $connectEvents = null, - public ?bool $countMessages = null, - public ?\DateTime $createdAt = null, - public ?bool $customEvents = null, public ?bool $deliveryEvents = null, - public ?bool $markMessagesPending = null, - public ?int $maxMessageLength = null, - public ?bool $mutes = null, - public ?string $name = null, - public ?bool $polls = null, - public ?bool $pushNotifications = null, - public ?bool $quotes = null, + public ?bool $search = null, public ?bool $reactions = null, - public ?bool $readEvents = null, - public ?bool $reminders = null, public ?bool $replies = null, - public ?bool $search = null, - public ?bool $sharedLocations = null, - public ?bool $skipLastMsgUpdateForSystemMsgs = null, - public ?bool $typingEvents = null, - public ?\DateTime $updatedAt = null, + public ?bool $quotes = null, + public ?bool $mutes = null, public ?bool $uploads = null, public ?bool $urlEnrichment = null, + public ?bool $customEvents = null, + public ?bool $pushNotifications = null, + public ?bool $reminders = null, + public ?bool $markMessagesPending = null, + public ?bool $polls = null, public ?bool $userMessageReminders = null, - public ?array $commands = null, // List of commands that channel supports + public ?bool $sharedLocations = null, + public ?bool $countMessages = null, + public ?int $maxMessageLength = null, + public ?string $automod = null, + public ?string $automodBehavior = null, public ?string $blocklist = null, public ?string $blocklistBehavior = null, - public ?int $partitionSize = null, - public ?string $partitionTtl = null, - public ?array $allowedFlagReasons = null, /** @var array|null */ #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, - public ?Thresholds $automodThresholds = null, + public ?array $allowedFlagReasons = null, + public ?int $partitionSize = null, + public ?string $partitionTtl = null, + public ?bool $skipLastMsgUpdateForSystemMsgs = null, + public ?string $pushLevel = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, + public ?array $commands = null, // List of commands that channel supports ) { } diff --git a/src/GeneratedModels/ChannelConfigWithInfo.php b/src/GeneratedModels/ChannelConfigWithInfo.php index e0b95b1..db380ca 100644 --- a/src/GeneratedModels/ChannelConfigWithInfo.php +++ b/src/GeneratedModels/ChannelConfigWithInfo.php @@ -3,86 +3,48 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $automod - * @property string $automodBehavior - * @property bool $connectEvents - * @property bool $countMessages - * @property \DateTime $createdAt - * @property bool $customEvents - * @property bool $deliveryEvents - * @property bool $markMessagesPending - * @property int $maxMessageLength - * @property bool $mutes - * @property string $name - * @property bool $polls - * @property bool $pushNotifications - * @property bool $quotes - * @property bool $reactions - * @property bool $readEvents - * @property bool $reminders - * @property bool $replies - * @property bool $search - * @property bool $sharedLocations - * @property bool $skipLastMsgUpdateForSystemMsgs - * @property bool $typingEvents - * @property \DateTime $updatedAt - * @property bool $uploads - * @property bool $urlEnrichment - * @property bool $userMessageReminders - * @property array $commands - * @property string|null $blocklist - * @property string|null $blocklistBehavior - * @property int|null $partitionSize - * @property string|null $partitionTtl - * @property array|null $allowedFlagReasons - * @property array|null $blocklists - * @property Thresholds|null $automodThresholds - * @property array|null $grants - */ class ChannelConfigWithInfo extends BaseModel { public function __construct( - public ?string $automod = null, - public ?string $automodBehavior = null, - public ?bool $connectEvents = null, - public ?bool $countMessages = null, + public ?Thresholds $automodThresholds = null, public ?\DateTime $createdAt = null, - public ?bool $customEvents = null, - public ?bool $deliveryEvents = null, - public ?bool $markMessagesPending = null, - public ?int $maxMessageLength = null, - public ?bool $mutes = null, + public ?\DateTime $updatedAt = null, public ?string $name = null, - public ?bool $polls = null, - public ?bool $pushNotifications = null, - public ?bool $quotes = null, - public ?bool $reactions = null, + public ?bool $typingEvents = null, public ?bool $readEvents = null, - public ?bool $reminders = null, - public ?bool $replies = null, + public ?bool $connectEvents = null, + public ?bool $deliveryEvents = null, public ?bool $search = null, - public ?bool $sharedLocations = null, - public ?bool $skipLastMsgUpdateForSystemMsgs = null, - public ?bool $typingEvents = null, - public ?\DateTime $updatedAt = null, + public ?bool $reactions = null, + public ?bool $replies = null, + public ?bool $quotes = null, + public ?bool $mutes = null, public ?bool $uploads = null, public ?bool $urlEnrichment = null, + public ?bool $customEvents = null, + public ?bool $pushNotifications = null, + public ?bool $reminders = null, + public ?bool $markMessagesPending = null, + public ?bool $polls = null, public ?bool $userMessageReminders = null, - /** @var array|null */ - #[ArrayOf(Command::class)] - public ?array $commands = null, + public ?bool $sharedLocations = null, + public ?bool $countMessages = null, + public ?int $maxMessageLength = null, + public ?string $automod = null, + public ?string $automodBehavior = null, public ?string $blocklist = null, public ?string $blocklistBehavior = null, - public ?int $partitionSize = null, - public ?string $partitionTtl = null, - public ?array $allowedFlagReasons = null, /** @var array|null */ #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, - public ?Thresholds $automodThresholds = null, + public ?array $allowedFlagReasons = null, + public ?int $partitionSize = null, + public ?string $partitionTtl = null, + public ?bool $skipLastMsgUpdateForSystemMsgs = null, + public ?string $pushLevel = null, + /** @var array|null */ + #[ArrayOf(Command::class)] + public ?array $commands = null, public ?array $grants = null, ) { } diff --git a/src/GeneratedModels/ChannelCreatedEvent.php b/src/GeneratedModels/ChannelCreatedEvent.php index 19b9571..8288b87 100644 --- a/src/GeneratedModels/ChannelCreatedEvent.php +++ b/src/GeneratedModels/ChannelCreatedEvent.php @@ -4,16 +4,24 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property \DateTime $createdAt - * @property string $type + * Emitted when a channel is successfully created. */ class ChannelCreatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?string $type = null, + public ?ChannelResponse $channel = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "channel.created" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel which was created + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel which was created + public ?string $channelID = null, // The ID of the channel which was created ) { } diff --git a/src/GeneratedModels/ChannelDeletedEvent.php b/src/GeneratedModels/ChannelDeletedEvent.php index 9c9f524..277ba43 100644 --- a/src/GeneratedModels/ChannelDeletedEvent.php +++ b/src/GeneratedModels/ChannelDeletedEvent.php @@ -4,28 +4,24 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property int $channelMemberCount - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $type - * @property string|null $team - * @property ChannelResponse|null $channel + * Emitted when a channel is successfully deleted. */ class ChannelDeletedEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?int $channelMemberCount = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, - public ?string $team = null, public ?ChannelResponse $channel = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "channel.deleted" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel which was deleted + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel which was deleted + public ?string $channelID = null, // The ID of the channel which was deleted ) { } diff --git a/src/GeneratedModels/ChannelExport.php b/src/GeneratedModels/ChannelExport.php index 3dd5801..f431476 100644 --- a/src/GeneratedModels/ChannelExport.php +++ b/src/GeneratedModels/ChannelExport.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $cid - * @property string|null $id - * @property \DateTime|null $messagesSince - * @property \DateTime|null $messagesUntil - * @property string|null $type - */ class ChannelExport extends BaseModel { public function __construct( - public ?string $cid = null, + public ?string $type = null, // Channel type public ?string $id = null, // Channel ID + public ?string $cid = null, public ?\DateTime $messagesSince = null, // Date to export messages since public ?\DateTime $messagesUntil = null, // Date to export messages until - public ?string $type = null, // Channel type ) { } diff --git a/src/GeneratedModels/ChannelFrozenEvent.php b/src/GeneratedModels/ChannelFrozenEvent.php index a9f5fc7..107d17e 100644 --- a/src/GeneratedModels/ChannelFrozenEvent.php +++ b/src/GeneratedModels/ChannelFrozenEvent.php @@ -4,22 +4,18 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $type + * Emitted when a channel is successfully frozen. */ class ChannelFrozenEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, + public ?string $type = null, // The type of event: "channel.frozen" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel which was frozen + public ?string $channelType = null, // The type of the channel which was frozen + public ?string $channelID = null, // The ID of the channel which was frozen ) { } diff --git a/src/GeneratedModels/ChannelGetOrCreateRequest.php b/src/GeneratedModels/ChannelGetOrCreateRequest.php index e5c4971..0b37e37 100644 --- a/src/GeneratedModels/ChannelGetOrCreateRequest.php +++ b/src/GeneratedModels/ChannelGetOrCreateRequest.php @@ -3,27 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $hideForCreator - * @property bool|null $state - * @property bool|null $threadUnreadCounts - * @property ChannelInput|null $data - * @property PaginationParams|null $members - * @property MessagePaginationParams|null $messages - * @property PaginationParams|null $watchers - */ class ChannelGetOrCreateRequest extends BaseModel { public function __construct( - public ?bool $hideForCreator = null, // Whether this channel will be hidden for the user who created the channel or not - public ?bool $state = null, // Refresh channel state - public ?bool $threadUnreadCounts = null, public ?ChannelInput $data = null, public ?PaginationParams $members = null, public ?MessagePaginationParams $messages = null, public ?PaginationParams $watchers = null, + public ?bool $state = null, // Refresh channel state + public ?bool $hideForCreator = null, // Whether this channel will be hidden for the user who created the channel or not + public ?bool $threadUnreadCounts = null, ) { } diff --git a/src/GeneratedModels/ChannelHiddenEvent.php b/src/GeneratedModels/ChannelHiddenEvent.php index 2fd4af6..aefa66c 100644 --- a/src/GeneratedModels/ChannelHiddenEvent.php +++ b/src/GeneratedModels/ChannelHiddenEvent.php @@ -4,30 +4,25 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property int $channelMemberCount - * @property string $channelType - * @property string $cid - * @property bool $clearHistory - * @property \DateTime $createdAt - * @property string $type - * @property ChannelResponse|null $channel - * @property User|null $user + * Emitted when a channel is successfully hidden. */ class ChannelHiddenEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?int $channelMemberCount = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?bool $clearHistory = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, public ?ChannelResponse $channel = null, - public ?User $user = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "channel.hidden" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel which was hidden + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel which was hidden + public ?string $channelID = null, // The ID of the channel which was hidden + public ?bool $clearHistory = null, // Whether the history was cleared ) { } diff --git a/src/GeneratedModels/ChannelInput.php b/src/GeneratedModels/ChannelInput.php index 1b9dbf0..f33db35 100644 --- a/src/GeneratedModels/ChannelInput.php +++ b/src/GeneratedModels/ChannelInput.php @@ -3,43 +3,26 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $autoTranslationEnabled - * @property string|null $autoTranslationLanguage - * @property string|null $createdByID - * @property bool|null $disabled - * @property bool|null $frozen - * @property string|null $team - * @property string|null $truncatedByID - * @property array|null $filterTags - * @property array|null $invites - * @property array|null $members - * @property ChannelConfig|null $configOverrides - * @property UserRequest|null $createdBy - * @property object|null $custom - */ class ChannelInput extends BaseModel { public function __construct( + public ?ChannelConfig $configOverrides = null, + public ?UserRequest $createdBy = null, + public ?string $team = null, // Team the channel belongs to (if multi-tenant mode is enabled) public ?bool $autoTranslationEnabled = null, // Enable or disable auto translation public ?string $autoTranslationLanguage = null, // Switch auto translation language public ?string $createdByID = null, - public ?bool $disabled = null, - public ?bool $frozen = null, // Freeze or unfreeze the channel - public ?string $team = null, // Team the channel belongs to (if multi-tenant mode is enabled) public ?string $truncatedByID = null, - public ?array $filterTags = null, + public ?bool $frozen = null, // Freeze or unfreeze the channel + public ?bool $disabled = null, + public ?object $custom = null, /** @var array|null */ #[ArrayOf(ChannelMemberRequest::class)] public ?array $invites = null, /** @var array|null */ #[ArrayOf(ChannelMemberRequest::class)] public ?array $members = null, - public ?ChannelConfig $configOverrides = null, - public ?UserRequest $createdBy = null, - public ?object $custom = null, + public ?array $filterTags = null, ) { } diff --git a/src/GeneratedModels/ChannelInputRequest.php b/src/GeneratedModels/ChannelInputRequest.php index 3d4e337..239133d 100644 --- a/src/GeneratedModels/ChannelInputRequest.php +++ b/src/GeneratedModels/ChannelInputRequest.php @@ -3,37 +3,23 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $autoTranslationEnabled - * @property string|null $autoTranslationLanguage - * @property bool|null $disabled - * @property bool|null $frozen - * @property string|null $team - * @property array|null $invites - * @property array|null $members - * @property ConfigOverrides|null $configOverrides - * @property User|null $createdBy - * @property object|null $custom - */ class ChannelInputRequest extends BaseModel { public function __construct( + public ?ConfigOverridesRequest $configOverrides = null, + public ?UserRequest $createdBy = null, + public ?string $team = null, public ?bool $autoTranslationEnabled = null, public ?string $autoTranslationLanguage = null, - public ?bool $disabled = null, public ?bool $frozen = null, - public ?string $team = null, - /** @var array|null */ - #[ArrayOf(ChannelMember::class)] + public ?bool $disabled = null, + public ?object $custom = null, + /** @var array|null */ + #[ArrayOf(ChannelMemberRequest::class)] public ?array $invites = null, - /** @var array|null */ - #[ArrayOf(ChannelMember::class)] + /** @var array|null */ + #[ArrayOf(ChannelMemberRequest::class)] public ?array $members = null, - public ?ConfigOverrides $configOverrides = null, - public ?User $createdBy = null, - public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/ChannelMemberRequest.php b/src/GeneratedModels/ChannelMemberRequest.php index 4c881ae..3aad9f3 100644 --- a/src/GeneratedModels/ChannelMemberRequest.php +++ b/src/GeneratedModels/ChannelMemberRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $userID - * @property string|null $channelRole - * @property object|null $custom - * @property UserResponse|null $user - */ class ChannelMemberRequest extends BaseModel { public function __construct( + public ?UserResponse $user = null, public ?string $userID = null, - public ?string $channelRole = null, // Role of the member in the channel public ?object $custom = null, - public ?UserResponse $user = null, + public ?string $channelRole = null, // Role of the member in the channel ) { } diff --git a/src/GeneratedModels/ChannelMemberResponse.php b/src/GeneratedModels/ChannelMemberResponse.php index f79cbbb..211f633 100644 --- a/src/GeneratedModels/ChannelMemberResponse.php +++ b/src/GeneratedModels/ChannelMemberResponse.php @@ -3,53 +3,29 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $banned - * @property string $channelRole - * @property \DateTime $createdAt - * @property bool $notificationsMuted - * @property bool $shadowBanned - * @property \DateTime $updatedAt - * @property object $custom - * @property \DateTime|null $archivedAt - * @property \DateTime|null $banExpires - * @property \DateTime|null $deletedAt - * @property \DateTime|null $inviteAcceptedAt - * @property \DateTime|null $inviteRejectedAt - * @property bool|null $invited - * @property bool|null $isModerator - * @property \DateTime|null $pinnedAt - * @property string|null $role - * @property string|null $status - * @property string|null $userID - * @property array|null $deletedMessages - * @property UserResponse|null $user - */ class ChannelMemberResponse extends BaseModel { public function __construct( - public ?bool $banned = null, // Whether member is banned this channel or not - public ?string $channelRole = null, // Role of the member in the channel - public ?\DateTime $createdAt = null, // Date/time of creation - public ?bool $notificationsMuted = null, - public ?bool $shadowBanned = null, // Whether member is shadow banned in this channel or not - public ?\DateTime $updatedAt = null, // Date/time of the last update + public ?UserResponse $user = null, + public ?string $userID = null, + public ?bool $isModerator = null, // Whether member is channel moderator or not public ?object $custom = null, - public ?\DateTime $archivedAt = null, - public ?\DateTime $banExpires = null, // Expiration date of the ban - public ?\DateTime $deletedAt = null, + public ?bool $invited = null, // Whether member was invited or not public ?\DateTime $inviteAcceptedAt = null, // Date when invite was accepted public ?\DateTime $inviteRejectedAt = null, // Date when invite was rejected - public ?bool $invited = null, // Whether member was invited or not - public ?bool $isModerator = null, // Whether member is channel moderator or not - public ?\DateTime $pinnedAt = null, - public ?string $role = null, // Permission level of the member in the channel (DEPRECATED: use channel_role instead) public ?string $status = null, - public ?string $userID = null, + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $updatedAt = null, // Date/time of the last update + public ?\DateTime $deletedAt = null, + public ?bool $banned = null, // Whether member is banned this channel or not + public ?\DateTime $banExpires = null, // Expiration date of the ban + public ?bool $shadowBanned = null, // Whether member is shadow banned in this channel or not + public ?\DateTime $pinnedAt = null, + public ?\DateTime $archivedAt = null, + public ?string $role = null, // Permission level of the member in the channel (DEPRECATED: use channel_role instead). One of: member, moderator, admin, owner + public ?string $channelRole = null, // Role of the member in the channel + public ?bool $notificationsMuted = null, public ?array $deletedMessages = null, - public ?UserResponse $user = null, ) { } diff --git a/src/GeneratedModels/ChannelMessagesResponse.php b/src/GeneratedModels/ChannelMessagesResponse.php new file mode 100644 index 0000000..c7f87ff --- /dev/null +++ b/src/GeneratedModels/ChannelMessagesResponse.php @@ -0,0 +1,21 @@ +|null */ + #[ArrayOf(MessageResponse::class)] + public ?array $messages = null, // List of messages + ) { + } + + // BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types! + // Use #[JsonKey('user_id')] to override field names if needed. +} diff --git a/src/GeneratedModels/ChannelMute.php b/src/GeneratedModels/ChannelMute.php index e1e1289..b22e359 100644 --- a/src/GeneratedModels/ChannelMute.php +++ b/src/GeneratedModels/ChannelMute.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property \DateTime $updatedAt - * @property \DateTime|null $expires - * @property ChannelResponse|null $channel - * @property UserResponse|null $user - */ class ChannelMute extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?\DateTime $updatedAt = null, // Date/time of the last update - public ?\DateTime $expires = null, // Date/time of mute expiration public ?ChannelResponse $channel = null, public ?UserResponse $user = null, + public ?\DateTime $expires = null, // Date/time of mute expiration + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $updatedAt = null, // Date/time of the last update ) { } diff --git a/src/GeneratedModels/ChannelMutedEvent.php b/src/GeneratedModels/ChannelMutedEvent.php index f2313dc..0fe837e 100644 --- a/src/GeneratedModels/ChannelMutedEvent.php +++ b/src/GeneratedModels/ChannelMutedEvent.php @@ -4,16 +4,20 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property \DateTime $createdAt - * @property string $type + * Emitted when a channel is successfully muted. */ class ChannelMutedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?string $type = null, + public ?ChannelMute $mute = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "channel.muted" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + /** @var array|null */ + #[ArrayOf(ChannelMute::class)] + public ?array $mutes = null, // The mute objects ) { } diff --git a/src/GeneratedModels/ChannelPushPreferencesResponse.php b/src/GeneratedModels/ChannelPushPreferencesResponse.php index 4c35fb5..6bbc4f4 100644 --- a/src/GeneratedModels/ChannelPushPreferencesResponse.php +++ b/src/GeneratedModels/ChannelPushPreferencesResponse.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $chatLevel - * @property \DateTime|null $disabledUntil - */ class ChannelPushPreferencesResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ChannelResponse.php b/src/GeneratedModels/ChannelResponse.php index 9550d09..1eb6763 100644 --- a/src/GeneratedModels/ChannelResponse.php +++ b/src/GeneratedModels/ChannelResponse.php @@ -5,71 +5,42 @@ namespace GetStream\GeneratedModels; /** * Represents channel in chat - * - * @property string $cid - * @property \DateTime $createdAt - * @property bool $disabled - * @property bool $frozen - * @property string $id - * @property string $type - * @property \DateTime $updatedAt - * @property object $custom - * @property bool|null $autoTranslationEnabled - * @property string|null $autoTranslationLanguage - * @property bool|null $blocked - * @property int|null $cooldown - * @property \DateTime|null $deletedAt - * @property bool|null $hidden - * @property \DateTime|null $hideMessagesBefore - * @property \DateTime|null $lastMessageAt - * @property int|null $memberCount - * @property int|null $messageCount - * @property \DateTime|null $muteExpiresAt - * @property bool|null $muted - * @property string|null $team - * @property \DateTime|null $truncatedAt - * @property array|null $filterTags - * @property array|null $members - * @property array|null $ownCapabilities - * @property ChannelConfigWithInfo|null $config - * @property UserResponse|null $createdBy - * @property UserResponse|null $truncatedBy */ class ChannelResponse extends BaseModel { public function __construct( - public ?string $cid = null, // Channel CID (:) - public ?\DateTime $createdAt = null, // Date/time of creation - public ?bool $disabled = null, - public ?bool $frozen = null, // Whether channel is frozen or not + public ?ChannelConfigWithInfo $config = null, + public ?UserResponse $createdBy = null, + public ?UserResponse $truncatedBy = null, public ?string $id = null, // Channel unique ID public ?string $type = null, // Type of the channel + public ?string $cid = null, // Channel CID (:) + public ?\DateTime $lastMessageAt = null, // Date of the last message sent + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $updatedAt = null, // Date/time of the last update - public ?object $custom = null, // Custom data for this object - public ?bool $autoTranslationEnabled = null, // Whether auto translation is enabled or not - public ?string $autoTranslationLanguage = null, // Language to translate to when auto translation is active - public ?bool $blocked = null, // Whether this channel is blocked by current user or not - public ?int $cooldown = null, // Cooldown period after sending each message public ?\DateTime $deletedAt = null, // Date/time of deletion - public ?bool $hidden = null, // Whether this channel is hidden by current user or not - public ?\DateTime $hideMessagesBefore = null, // Date since when the message history is accessible - public ?\DateTime $lastMessageAt = null, // Date of the last message sent + public ?bool $frozen = null, // Whether channel is frozen or not + public ?bool $disabled = null, + /** @var array|null */ + #[ArrayOf(ChannelMemberResponse::class)] + public ?array $members = null, // List of channel members (max 100) public ?int $memberCount = null, // Number of members in the channel - public ?int $messageCount = null, // Number of messages in the channel - public ?\DateTime $muteExpiresAt = null, // Date of mute expiration public ?bool $muted = null, // Whether this channel is muted or not + public ?\DateTime $muteExpiresAt = null, // Date of mute expiration public ?string $team = null, // Team the channel belongs to (multi-tenant only) - public ?\DateTime $truncatedAt = null, // Date of the latest truncation of the channel - public ?array $filterTags = null, // List of filter tags associated with the channel - /** @var array|null List of channel members (max 100) */ - #[ArrayOf(ChannelMemberResponse::class)] - public ?array $members = null, // List of channel members (max 100) - /** @var array|null List of channel capabilities of authenticated user */ + public ?bool $autoTranslationEnabled = null, // Whether auto translation is enabled or not + public ?string $autoTranslationLanguage = null, // Language to translate to when auto translation is active + public ?\DateTime $hideMessagesBefore = null, // Date since when the message history is accessible + public ?int $cooldown = null, // Cooldown period after sending each message + /** @var array|null */ #[ArrayOf(ChannelOwnCapability::class)] public ?array $ownCapabilities = null, // List of channel capabilities of authenticated user - public ?ChannelConfigWithInfo $config = null, - public ?UserResponse $createdBy = null, - public ?UserResponse $truncatedBy = null, + public ?bool $hidden = null, // Whether this channel is hidden by current user or not + public ?bool $blocked = null, // Whether this channel is blocked by current user or not + public ?\DateTime $truncatedAt = null, // Date of the latest truncation of the channel + public ?object $custom = null, // Custom data for this object + public ?int $messageCount = null, // Number of messages in the channel + public ?array $filterTags = null, // List of filter tags associated with the channel ) { } diff --git a/src/GeneratedModels/ChannelStateResponse.php b/src/GeneratedModels/ChannelStateResponse.php index 45459a9..77715b0 100644 --- a/src/GeneratedModels/ChannelStateResponse.php +++ b/src/GeneratedModels/ChannelStateResponse.php @@ -3,61 +3,41 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $members - * @property array $messages - * @property array $pinnedMessages - * @property array $threads - * @property bool|null $hidden - * @property \DateTime|null $hideMessagesBefore - * @property int|null $watcherCount - * @property array|null $activeLiveLocations - * @property array|null $pendingMessages - * @property array|null $read - * @property array|null $watchers - * @property ChannelResponse|null $channel - * @property DraftResponse|null $draft - * @property ChannelMemberResponse|null $membership - * @property ChannelPushPreferencesResponse|null $pushPreferences - */ class ChannelStateResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null */ - #[ArrayOf(ChannelMemberResponse::class)] - public ?array $members = null, + public ?ChannelResponse $channel = null, + public ?DraftResponse $draft = null, + public ?ChannelMemberResponse $membership = null, + public ?ChannelPushPreferencesResponse $pushPreferences = null, /** @var array|null */ #[ArrayOf(MessageResponse::class)] public ?array $messages = null, /** @var array|null */ #[ArrayOf(MessageResponse::class)] public ?array $pinnedMessages = null, + public ?int $watcherCount = null, + /** @var array|null */ + #[ArrayOf(UserResponse::class)] + public ?array $watchers = null, + /** @var array|null */ + #[ArrayOf(ReadStateResponse::class)] + public ?array $read = null, + /** @var array|null */ + #[ArrayOf(ChannelMemberResponse::class)] + public ?array $members = null, /** @var array|null */ #[ArrayOf(ThreadStateResponse::class)] public ?array $threads = null, public ?bool $hidden = null, public ?\DateTime $hideMessagesBefore = null, - public ?int $watcherCount = null, - /** @var array|null */ - #[ArrayOf(SharedLocationResponseData::class)] - public ?array $activeLiveLocations = null, /** @var array|null */ #[ArrayOf(PendingMessageResponse::class)] public ?array $pendingMessages = null, - /** @var array|null */ - #[ArrayOf(ReadStateResponse::class)] - public ?array $read = null, - /** @var array|null */ - #[ArrayOf(UserResponse::class)] - public ?array $watchers = null, - public ?ChannelResponse $channel = null, - public ?DraftResponse $draft = null, - public ?ChannelMemberResponse $membership = null, - public ?ChannelPushPreferencesResponse $pushPreferences = null, + /** @var array|null */ + #[ArrayOf(SharedLocationResponseData::class)] + public ?array $activeLiveLocations = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ChannelStateResponseFields.php b/src/GeneratedModels/ChannelStateResponseFields.php index d788830..80e4c20 100644 --- a/src/GeneratedModels/ChannelStateResponseFields.php +++ b/src/GeneratedModels/ChannelStateResponseFields.php @@ -3,59 +3,40 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $members - * @property array $messages - * @property array $pinnedMessages - * @property array $threads - * @property bool|null $hidden - * @property \DateTime|null $hideMessagesBefore - * @property int|null $watcherCount - * @property array|null $activeLiveLocations - * @property array|null $pendingMessages - * @property array|null $read - * @property array|null $watchers - * @property ChannelResponse|null $channel - * @property DraftResponse|null $draft - * @property ChannelMemberResponse|null $membership - * @property ChannelPushPreferencesResponse|null $pushPreferences - */ class ChannelStateResponseFields extends BaseModel { public function __construct( - /** @var array|null List of channel members */ - #[ArrayOf(ChannelMemberResponse::class)] - public ?array $members = null, // List of channel members - /** @var array|null List of channel messages */ + public ?ChannelResponse $channel = null, + public ?DraftResponse $draft = null, + public ?ChannelMemberResponse $membership = null, + public ?ChannelPushPreferencesResponse $pushPreferences = null, + /** @var array|null */ #[ArrayOf(MessageResponse::class)] public ?array $messages = null, // List of channel messages - /** @var array|null List of pinned messages in the channel */ + /** @var array|null */ #[ArrayOf(MessageResponse::class)] public ?array $pinnedMessages = null, // List of pinned messages in the channel + public ?int $watcherCount = null, // Number of channel watchers + /** @var array|null */ + #[ArrayOf(UserResponse::class)] + public ?array $watchers = null, // List of user who is watching the channel + /** @var array|null */ + #[ArrayOf(ReadStateResponse::class)] + public ?array $read = null, // List of read states + /** @var array|null */ + #[ArrayOf(ChannelMemberResponse::class)] + public ?array $members = null, // List of channel members /** @var array|null */ #[ArrayOf(ThreadStateResponse::class)] public ?array $threads = null, public ?bool $hidden = null, // Whether this channel is hidden or not public ?\DateTime $hideMessagesBefore = null, // Messages before this date are hidden from the user - public ?int $watcherCount = null, // Number of channel watchers - /** @var array|null Active live locations in the channel */ - #[ArrayOf(SharedLocationResponseData::class)] - public ?array $activeLiveLocations = null, // Active live locations in the channel - /** @var array|null Pending messages that this user has sent */ + /** @var array|null */ #[ArrayOf(PendingMessageResponse::class)] public ?array $pendingMessages = null, // Pending messages that this user has sent - /** @var array|null List of read states */ - #[ArrayOf(ReadStateResponse::class)] - public ?array $read = null, // List of read states - /** @var array|null List of user who is watching the channel */ - #[ArrayOf(UserResponse::class)] - public ?array $watchers = null, // List of user who is watching the channel - public ?ChannelResponse $channel = null, - public ?DraftResponse $draft = null, - public ?ChannelMemberResponse $membership = null, - public ?ChannelPushPreferencesResponse $pushPreferences = null, + /** @var array|null */ + #[ArrayOf(SharedLocationResponseData::class)] + public ?array $activeLiveLocations = null, // Active live locations in the channel ) { } diff --git a/src/GeneratedModels/ChannelTruncatedEvent.php b/src/GeneratedModels/ChannelTruncatedEvent.php index dba51e6..849868e 100644 --- a/src/GeneratedModels/ChannelTruncatedEvent.php +++ b/src/GeneratedModels/ChannelTruncatedEvent.php @@ -4,26 +4,26 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property int $channelMemberCount - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $type - * @property ChannelResponse|null $channel + * Emitted when a channel is successfully truncated. */ class ChannelTruncatedEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?int $channelMemberCount = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, public ?ChannelResponse $channel = null, + public ?MessageResponse $message = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "channel.truncated" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel which was truncated + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel which was truncated + public ?string $channelID = null, // The ID of the channel which was truncated + public ?string $messageID = null, ) { } diff --git a/src/GeneratedModels/ChannelTypeConfig.php b/src/GeneratedModels/ChannelTypeConfig.php index 490f63f..723105d 100644 --- a/src/GeneratedModels/ChannelTypeConfig.php +++ b/src/GeneratedModels/ChannelTypeConfig.php @@ -3,91 +3,52 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $automod - * @property string $automodBehavior - * @property bool $connectEvents - * @property bool $countMessages - * @property \DateTime $createdAt - * @property bool $customEvents - * @property bool $deliveryEvents - * @property bool $markMessagesPending - * @property int $maxMessageLength - * @property bool $mutes - * @property string $name - * @property bool $polls - * @property bool $pushNotifications - * @property bool $quotes - * @property bool $reactions - * @property bool $readEvents - * @property bool $reminders - * @property bool $replies - * @property bool $search - * @property bool $sharedLocations - * @property bool $skipLastMsgUpdateForSystemMsgs - * @property bool $typingEvents - * @property \DateTime $updatedAt - * @property bool $uploads - * @property bool $urlEnrichment - * @property bool $userMessageReminders - * @property array $commands - * @property array $permissions - * @property array $grants - * @property string|null $blocklist - * @property string|null $blocklistBehavior - * @property int|null $partitionSize - * @property string|null $partitionTtl - * @property array|null $allowedFlagReasons - * @property array|null $blocklists - * @property Thresholds|null $automodThresholds - */ class ChannelTypeConfig extends BaseModel { public function __construct( - public ?string $automod = null, - public ?string $automodBehavior = null, - public ?bool $connectEvents = null, - public ?bool $countMessages = null, + public ?Thresholds $automodThresholds = null, + /** @var array|null */ + #[ArrayOf(PolicyRequest::class)] + public ?array $permissions = null, + public ?array $grants = null, public ?\DateTime $createdAt = null, - public ?bool $customEvents = null, - public ?bool $deliveryEvents = null, - public ?bool $markMessagesPending = null, - public ?int $maxMessageLength = null, - public ?bool $mutes = null, + public ?\DateTime $updatedAt = null, public ?string $name = null, - public ?bool $polls = null, - public ?bool $pushNotifications = null, - public ?bool $quotes = null, - public ?bool $reactions = null, + public ?bool $typingEvents = null, public ?bool $readEvents = null, - public ?bool $reminders = null, - public ?bool $replies = null, + public ?bool $connectEvents = null, + public ?bool $deliveryEvents = null, public ?bool $search = null, - public ?bool $sharedLocations = null, - public ?bool $skipLastMsgUpdateForSystemMsgs = null, - public ?bool $typingEvents = null, - public ?\DateTime $updatedAt = null, + public ?bool $reactions = null, + public ?bool $replies = null, + public ?bool $quotes = null, + public ?bool $mutes = null, public ?bool $uploads = null, public ?bool $urlEnrichment = null, + public ?bool $customEvents = null, + public ?bool $pushNotifications = null, + public ?bool $reminders = null, + public ?bool $markMessagesPending = null, + public ?bool $polls = null, public ?bool $userMessageReminders = null, - /** @var array|null */ - #[ArrayOf(Command::class)] - public ?array $commands = null, - /** @var array|null */ - #[ArrayOf(PolicyRequest::class)] - public ?array $permissions = null, - public ?array $grants = null, + public ?bool $sharedLocations = null, + public ?bool $countMessages = null, + public ?int $maxMessageLength = null, + public ?string $automod = null, + public ?string $automodBehavior = null, public ?string $blocklist = null, public ?string $blocklistBehavior = null, - public ?int $partitionSize = null, - public ?string $partitionTtl = null, - public ?array $allowedFlagReasons = null, /** @var array|null */ #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, - public ?Thresholds $automodThresholds = null, + public ?array $allowedFlagReasons = null, + public ?int $partitionSize = null, + public ?string $partitionTtl = null, + public ?bool $skipLastMsgUpdateForSystemMsgs = null, + public ?string $pushLevel = null, + /** @var array|null */ + #[ArrayOf(Command::class)] + public ?array $commands = null, ) { } diff --git a/src/GeneratedModels/ChannelUnFrozenEvent.php b/src/GeneratedModels/ChannelUnFrozenEvent.php index 718dd0a..9b3bf2f 100644 --- a/src/GeneratedModels/ChannelUnFrozenEvent.php +++ b/src/GeneratedModels/ChannelUnFrozenEvent.php @@ -4,22 +4,18 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $type + * Emitted when a channel is successfully unfrozen. */ class ChannelUnFrozenEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, + public ?string $type = null, // The type of event: "channel.unfrozen" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel which was unfrozen + public ?string $channelType = null, // The type of the channel which was unfrozen + public ?string $channelID = null, // The ID of the channel which was unfrozen ) { } diff --git a/src/GeneratedModels/ChannelUnmutedEvent.php b/src/GeneratedModels/ChannelUnmutedEvent.php index 3e97ef6..c45fba4 100644 --- a/src/GeneratedModels/ChannelUnmutedEvent.php +++ b/src/GeneratedModels/ChannelUnmutedEvent.php @@ -4,16 +4,20 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property \DateTime $createdAt - * @property string $type + * Emitted when a channel is successfully unmuted. */ class ChannelUnmutedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?string $type = null, + public ?ChannelMute $mute = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "channel.unmuted" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + /** @var array|null */ + #[ArrayOf(ChannelMute::class)] + public ?array $mutes = null, // The mute objects ) { } diff --git a/src/GeneratedModels/ChannelUpdatedEvent.php b/src/GeneratedModels/ChannelUpdatedEvent.php index cfed8f3..bf2c127 100644 --- a/src/GeneratedModels/ChannelUpdatedEvent.php +++ b/src/GeneratedModels/ChannelUpdatedEvent.php @@ -4,32 +4,26 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property int $channelMemberCount - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $type - * @property string|null $team - * @property ChannelResponse|null $channel - * @property Message|null $message - * @property User|null $user + * Emitted when a channel is successfully updated. */ class ChannelUpdatedEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?int $channelMemberCount = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, - public ?string $team = null, public ?ChannelResponse $channel = null, - public ?Message $message = null, - public ?User $user = null, + public ?MessageResponse $message = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "channel.updated" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel which was updated + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel which was updated + public ?string $channelID = null, // The ID of the channel which was updated + public ?string $messageID = null, ) { } diff --git a/src/GeneratedModels/ChannelVisibleEvent.php b/src/GeneratedModels/ChannelVisibleEvent.php index 5a1a2bf..176a4ea 100644 --- a/src/GeneratedModels/ChannelVisibleEvent.php +++ b/src/GeneratedModels/ChannelVisibleEvent.php @@ -4,24 +4,24 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $type - * @property User|null $user + * Emitted when a channel is successfully shown. */ class ChannelVisibleEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, - public ?User $user = null, + public ?ChannelResponse $channel = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "channel.visible" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel which was shown + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel which was shown + public ?string $channelID = null, // The ID of the channel which was shown ) { } diff --git a/src/GeneratedModels/ChatActivityStatsResponse.php b/src/GeneratedModels/ChatActivityStatsResponse.php index f2b7d4e..cc435cd 100644 --- a/src/GeneratedModels/ChatActivityStatsResponse.php +++ b/src/GeneratedModels/ChatActivityStatsResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property MessageStatsResponse|null $messages - */ class ChatActivityStatsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CheckExternalStorageResponse.php b/src/GeneratedModels/CheckExternalStorageResponse.php index b31f84a..c668843 100644 --- a/src/GeneratedModels/CheckExternalStorageResponse.php +++ b/src/GeneratedModels/CheckExternalStorageResponse.php @@ -5,9 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property string $fileUrl */ class CheckExternalStorageResponse extends BaseModel { diff --git a/src/GeneratedModels/CheckPushRequest.php b/src/GeneratedModels/CheckPushRequest.php index 35115e4..492b9aa 100644 --- a/src/GeneratedModels/CheckPushRequest.php +++ b/src/GeneratedModels/CheckPushRequest.php @@ -5,31 +5,20 @@ namespace GetStream\GeneratedModels; /** * Check push request - * - * @property string|null $apnTemplate - * @property string|null $eventType - * @property string|null $firebaseDataTemplate - * @property string|null $firebaseTemplate - * @property string|null $messageID - * @property string|null $pushProviderName - * @property string|null $pushProviderType - * @property bool|null $skipDevices - * @property string|null $userID - * @property UserRequest|null $user */ class CheckPushRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, + public ?string $messageID = null, // Message ID to send push notification for public ?string $apnTemplate = null, // Push message template for APN - public ?string $eventType = null, // Type of event for push templates (default: message.new) - public ?string $firebaseDataTemplate = null, // Push message data template for Firebase public ?string $firebaseTemplate = null, // Push message template for Firebase - public ?string $messageID = null, // Message ID to send push notification for - public ?string $pushProviderName = null, // Name of push provider - public ?string $pushProviderType = null, // Push provider type + public ?string $firebaseDataTemplate = null, // Push message data template for Firebase public ?bool $skipDevices = null, // Don't require existing devices to render templates + public ?string $pushProviderType = null, // Push provider type. One of: firebase, apn, huawei, xiaomi + public ?string $pushProviderName = null, // Name of push provider + public ?string $eventType = null, // Type of event for push templates (default: message.new). One of: message.new, message.updated, reaction.new, reaction.updated, notification.reminder_due public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/CheckPushResponse.php b/src/GeneratedModels/CheckPushResponse.php index 0780bfb..e362a1a 100644 --- a/src/GeneratedModels/CheckPushResponse.php +++ b/src/GeneratedModels/CheckPushResponse.php @@ -3,29 +3,19 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string|null $eventType - * @property string|null $renderedApnTemplate - * @property string|null $renderedFirebaseTemplate - * @property bool|null $skipDevices - * @property array|null $generalErrors - * @property array|null $deviceErrors - * @property array|null $renderedMessage - */ class CheckPushResponse extends BaseModel { public function __construct( - public ?string $duration = null, + /** @var array|null */ + #[MapOf(DeviceErrorInfo::class)] + public ?array $deviceErrors = null, // Object with device errors + public ?array $generalErrors = null, // List of general errors + public ?bool $skipDevices = null, // Don't require existing devices to render templates public ?string $eventType = null, // The event type that was tested public ?string $renderedApnTemplate = null, public ?string $renderedFirebaseTemplate = null, - public ?bool $skipDevices = null, // Don't require existing devices to render templates - public ?array $generalErrors = null, // List of general errors - public ?array $deviceErrors = null, // Object with device errors public ?array $renderedMessage = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CheckRequest.php b/src/GeneratedModels/CheckRequest.php index fdc387d..9142672 100644 --- a/src/GeneratedModels/CheckRequest.php +++ b/src/GeneratedModels/CheckRequest.php @@ -3,35 +3,20 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $entityCreatorID - * @property string $entityID - * @property string $entityType - * @property string|null $configKey - * @property string|null $configTeam - * @property bool|null $testMode - * @property string|null $userID - * @property ModerationConfig|null $config - * @property ModerationPayload|null $moderationPayload - * @property object|null $options - * @property UserRequest|null $user - */ class CheckRequest extends BaseModel { public function __construct( - public ?string $entityCreatorID = null, // ID of the user who created the entity - public ?string $entityID = null, // Unique identifier of the entity to moderate + public ?ModerationConfig $config = null, + public ?ModerationPayload $moderationPayload = null, + public ?UserRequest $user = null, public ?string $entityType = null, // Type of entity to moderate + public ?string $entityID = null, // Unique identifier of the entity to moderate + public ?string $entityCreatorID = null, // ID of the user who created the entity public ?string $configKey = null, // Key of the moderation configuration to use public ?string $configTeam = null, // Team associated with the configuration + public ?object $options = null, // Additional moderation configuration options public ?bool $testMode = null, // Whether to run moderation in test mode public ?string $userID = null, - public ?ModerationConfig $config = null, - public ?ModerationPayload $moderationPayload = null, - public ?object $options = null, // Additional moderation configuration options - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/CheckResponse.php b/src/GeneratedModels/CheckResponse.php index c8315f1..d3b93a3 100644 --- a/src/GeneratedModels/CheckResponse.php +++ b/src/GeneratedModels/CheckResponse.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string $recommendedAction - * @property string $status - * @property string|null $taskID - * @property ReviewQueueItemResponse|null $item - */ class CheckResponse extends BaseModel { public function __construct( - public ?string $duration = null, - public ?string $recommendedAction = null, // Suggested action based on moderation results + public ?ReviewQueueItemResponse $item = null, public ?string $status = null, // Status of the moderation check (completed or pending) public ?string $taskID = null, // ID of the running moderation task - public ?ReviewQueueItemResponse $item = null, + public ?string $recommendedAction = null, // Suggested action based on moderation results + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CheckSNSRequest.php b/src/GeneratedModels/CheckSNSRequest.php index 331a235..12185f0 100644 --- a/src/GeneratedModels/CheckSNSRequest.php +++ b/src/GeneratedModels/CheckSNSRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $snsKey - * @property string|null $snsSecret - * @property string|null $snsTopicArn - */ class CheckSNSRequest extends BaseModel { public function __construct( + public ?string $snsTopicArn = null, // AWS SNS topic ARN public ?string $snsKey = null, // AWS SNS access key public ?string $snsSecret = null, // AWS SNS key secret - public ?string $snsTopicArn = null, // AWS SNS topic ARN ) { } diff --git a/src/GeneratedModels/CheckSNSResponse.php b/src/GeneratedModels/CheckSNSResponse.php index a02f698..81a272c 100644 --- a/src/GeneratedModels/CheckSNSResponse.php +++ b/src/GeneratedModels/CheckSNSResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string $status - * @property string|null $error - * @property object|null $data - */ class CheckSNSResponse extends BaseModel { public function __construct( - public ?string $duration = null, - public ?string $status = null, // Validation result + public ?string $status = null, // Validation result. One of: ok, error public ?string $error = null, // Error text public ?object $data = null, // Error data + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CheckSQSRequest.php b/src/GeneratedModels/CheckSQSRequest.php index d364ac5..e84606b 100644 --- a/src/GeneratedModels/CheckSQSRequest.php +++ b/src/GeneratedModels/CheckSQSRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $sqsKey - * @property string|null $sqsSecret - * @property string|null $sqsUrl - */ class CheckSQSRequest extends BaseModel { public function __construct( + public ?string $sqsUrl = null, // AWS SQS endpoint URL public ?string $sqsKey = null, // AWS SQS access key public ?string $sqsSecret = null, // AWS SQS key secret - public ?string $sqsUrl = null, // AWS SQS endpoint URL ) { } diff --git a/src/GeneratedModels/CheckSQSResponse.php b/src/GeneratedModels/CheckSQSResponse.php index 8a3f9a2..e0060e1 100644 --- a/src/GeneratedModels/CheckSQSResponse.php +++ b/src/GeneratedModels/CheckSQSResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string $status - * @property string|null $error - * @property object|null $data - */ class CheckSQSResponse extends BaseModel { public function __construct( - public ?string $duration = null, - public ?string $status = null, // Validation result + public ?string $status = null, // Validation result. One of: ok, error public ?string $error = null, // Error text public ?object $data = null, // Error data + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ClientOSDataResponse.php b/src/GeneratedModels/ClientOSDataResponse.php index bb63a1e..2c24f28 100644 --- a/src/GeneratedModels/ClientOSDataResponse.php +++ b/src/GeneratedModels/ClientOSDataResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $architecture - * @property string|null $name - * @property string|null $version - */ class ClientOSDataResponse extends BaseModel { public function __construct( - public ?string $architecture = null, public ?string $name = null, public ?string $version = null, + public ?string $architecture = null, ) { } diff --git a/src/GeneratedModels/ClosedCaptionEvent.php b/src/GeneratedModels/ClosedCaptionEvent.php index 6d85aca..19e36aa 100644 --- a/src/GeneratedModels/ClosedCaptionEvent.php +++ b/src/GeneratedModels/ClosedCaptionEvent.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * This event is sent when closed captions are being sent in a call, clients should use this to show the closed captions in the call screen - * - * @property string $callCid - * @property \DateTime $createdAt - * @property CallClosedCaption $closedCaption - * @property string $type */ class ClosedCaptionEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, public ?CallClosedCaption $closedCaption = null, public ?string $type = null, // The type of event: "call.closed_caption" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, ) { } diff --git a/src/GeneratedModels/ClosedCaptionRuleParameters.php b/src/GeneratedModels/ClosedCaptionRuleParameters.php new file mode 100644 index 0000000..54c8fdb --- /dev/null +++ b/src/GeneratedModels/ClosedCaptionRuleParameters.php @@ -0,0 +1,17 @@ + $mentionedUsers - * @property array $ownReactions - * @property UserResponse $user - * @property int|null $controversyScore - * @property \DateTime|null $deletedAt - * @property \DateTime|null $editedAt - * @property string|null $parentID - * @property string|null $text - * @property array|null $attachments - * @property array|null $latestReactions - * @property object|null $custom - * @property ModerationV2Response|null $moderation - * @property array|null $reactionGroups - */ class CommentResponse extends BaseModel { public function __construct( - public ?int $confidenceScore = null, // Confidence score of the comment - public ?\DateTime $createdAt = null, // When the comment was created - public ?int $downvoteCount = null, // Number of downvotes for this comment + public ?ModerationV2Response $moderation = null, + public ?UserResponse $user = null, public ?string $id = null, // Unique identifier for the comment public ?string $objectID = null, // ID of the object this comment is associated with public ?string $objectType = null, // Type of the object this comment is associated with + public ?string $text = null, // Text content of the comment + public ?object $custom = null, // Custom data for the comment + public ?string $parentID = null, // ID of parent comment for nested replies public ?int $reactionCount = null, // Number of reactions to this comment - public ?int $replyCount = null, // Number of replies to this comment - public ?int $score = null, // Score of the comment based on reactions - public ?string $status = null, // Status of the comment (e.g., active, deleted) - public ?\DateTime $updatedAt = null, // When the comment was last updated - public ?int $upvoteCount = null, // Number of upvotes for this comment - /** @var array|null Users mentioned in the comment */ - #[ArrayOf(UserResponse::class)] - public ?array $mentionedUsers = null, // Users mentioned in the comment - /** @var array|null Current user's reactions to this activity */ + /** @var array|null */ #[ArrayOf(FeedsReactionResponse::class)] - public ?array $ownReactions = null, // Current user's reactions to this activity - public ?UserResponse $user = null, - public ?int $controversyScore = null, // Controversy score of the comment - public ?\DateTime $deletedAt = null, // When the comment was deleted - public ?\DateTime $editedAt = null, // When the comment was last edited - public ?string $parentID = null, // ID of parent comment for nested replies - public ?string $text = null, // Text content of the comment + public ?array $latestReactions = null, // Recent reactions to the comment + /** @var array|null */ + #[MapOf(FeedsReactionGroupResponse::class)] + public ?array $reactionGroups = null, // Grouped reactions by type /** @var array|null */ #[ArrayOf(Attachment::class)] - public ?array $attachments = null, - /** @var array|null Recent reactions to the comment */ + public ?array $attachments = null, // Attachments associated with the comment + /** @var array|null */ + #[ArrayOf(UserResponse::class)] + public ?array $mentionedUsers = null, // Users mentioned in the comment + public ?string $status = null, // Status of the comment. One of: active, deleted, removed, hidden + public ?\DateTime $createdAt = null, // When the comment was created + public ?\DateTime $updatedAt = null, // When the comment was last updated + public ?\DateTime $editedAt = null, // When the comment was last edited + public ?\DateTime $deletedAt = null, // When the comment was deleted + public ?int $replyCount = null, // Number of replies to this comment + public ?int $upvoteCount = null, // Number of upvotes for this comment + public ?int $downvoteCount = null, // Number of downvotes for this comment + public ?int $score = null, // Score of the comment based on reactions + public ?int $confidenceScore = null, // Confidence score of the comment + public ?int $controversyScore = null, // Controversy score of the comment + /** @var array|null */ #[ArrayOf(FeedsReactionResponse::class)] - public ?array $latestReactions = null, // Recent reactions to the comment - public ?object $custom = null, // Custom data for the comment - public ?ModerationV2Response $moderation = null, - public ?array $reactionGroups = null, // Grouped reactions by type + public ?array $ownReactions = null, // Current user's reactions to this activity ) { } diff --git a/src/GeneratedModels/CommentUpdatedEvent.php b/src/GeneratedModels/CommentUpdatedEvent.php index 15202d9..c3c38c1 100644 --- a/src/GeneratedModels/CommentUpdatedEvent.php +++ b/src/GeneratedModels/CommentUpdatedEvent.php @@ -5,27 +5,18 @@ namespace GetStream\GeneratedModels; /** * Emitted when a comment is updated. - * - * @property \DateTime $createdAt - * @property string $fid - * @property CommentResponse $comment - * @property object $custom - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class CommentUpdatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, public ?CommentResponse $comment = null, - public ?object $custom = null, + public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "feeds.comment.updated" in this case - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, + public ?string $fid = null, + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/CommitMessageRequest.php b/src/GeneratedModels/CommitMessageRequest.php index bf36d1f..7c96559 100644 --- a/src/GeneratedModels/CommitMessageRequest.php +++ b/src/GeneratedModels/CommitMessageRequest.php @@ -3,9 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - */ class CommitMessageRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CompositeRecordingResponse.php b/src/GeneratedModels/CompositeRecordingResponse.php index dca02dd..b971155 100644 --- a/src/GeneratedModels/CompositeRecordingResponse.php +++ b/src/GeneratedModels/CompositeRecordingResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $status - */ class CompositeRecordingResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ConfigOverridesRequest.php b/src/GeneratedModels/ConfigOverridesRequest.php new file mode 100644 index 0000000..113bd57 --- /dev/null +++ b/src/GeneratedModels/ConfigOverridesRequest.php @@ -0,0 +1,31 @@ +|null $blocklists - * @property array|null $commands - * @property array|null $permissions - * @property array|null $grants - */ class CreateChannelTypeRequest extends BaseModel { public function __construct( - public ?string $automod = null, // Automod - public ?string $automodBehavior = null, // Automod behavior - public ?int $maxMessageLength = null, // Max message length public ?string $name = null, // Channel type name - public ?string $blocklist = null, // Blocklist - public ?string $blocklistBehavior = null, // Blocklist behavior + public ?bool $typingEvents = null, // Typing events + public ?bool $readEvents = null, // Read events public ?bool $connectEvents = null, // Connect events - public ?bool $countMessages = null, // Count messages in channel. - public ?bool $customEvents = null, // Custom events public ?bool $deliveryEvents = null, - public ?bool $markMessagesPending = null, // Mark messages pending - public ?string $messageRetention = null, // Message retention - public ?bool $mutes = null, // Mutes - public ?int $partitionSize = null, // Partition size - public ?string $partitionTtl = null, // Partition TTL - public ?bool $polls = null, // Polls - public ?bool $pushNotifications = null, // Push notifications public ?bool $reactions = null, // Reactions - public ?bool $readEvents = null, // Read events public ?bool $replies = null, // Replies public ?bool $search = null, // Search - public ?bool $sharedLocations = null, // Enables shared location messages - public ?bool $skipLastMsgUpdateForSystemMsgs = null, - public ?bool $typingEvents = null, // Typing events + public ?bool $mutes = null, // Mutes public ?bool $uploads = null, // Uploads public ?bool $urlEnrichment = null, // URL enrichment + public ?bool $customEvents = null, // Custom events + public ?bool $pushNotifications = null, // Push notifications + public ?bool $markMessagesPending = null, // Mark messages pending + public ?bool $polls = null, // Polls public ?bool $userMessageReminders = null, - /** @var array|null Blocklists */ - #[ArrayOf(BlockListOptions::class)] - public ?array $blocklists = null, // Blocklists + public ?bool $sharedLocations = null, // Enables shared location messages + public ?bool $countMessages = null, // Count messages in channel. + public ?string $messageRetention = null, // Message retention. One of: infinite, numeric + public ?int $maxMessageLength = null, // Max message length + public ?string $automod = null, // Automod. One of: disabled, simple, AI + public ?string $automodBehavior = null, // Automod behavior. One of: flag, block public ?array $commands = null, // List of commands that channel supports - /** @var array|null List of permissions for the channel type */ + /** @var array|null */ #[ArrayOf(PolicyRequest::class)] public ?array $permissions = null, // List of permissions for the channel type public ?array $grants = null, // List of grants for the channel type + public ?string $blocklist = null, // Blocklist + public ?string $blocklistBehavior = null, // Blocklist behavior. One of: flag, block, shadow_block + /** @var array|null */ + #[ArrayOf(BlockListOptions::class)] + public ?array $blocklists = null, // Blocklists + public ?int $partitionSize = null, // Partition size + public ?string $partitionTtl = null, // Partition TTL + public ?bool $skipLastMsgUpdateForSystemMsgs = null, + public ?string $pushLevel = null, // Default push notification level for the channel type. One of: all, all_mentions, mentions, direct_mentions, none ) { } diff --git a/src/GeneratedModels/CreateChannelTypeResponse.php b/src/GeneratedModels/CreateChannelTypeResponse.php index 7f20030..1e12bb0 100644 --- a/src/GeneratedModels/CreateChannelTypeResponse.php +++ b/src/GeneratedModels/CreateChannelTypeResponse.php @@ -3,91 +3,51 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $automod - * @property string $automodBehavior - * @property bool $connectEvents - * @property bool $countMessages - * @property \DateTime $createdAt - * @property bool $customEvents - * @property bool $deliveryEvents - * @property string $duration - * @property bool $markMessagesPending - * @property int $maxMessageLength - * @property bool $mutes - * @property string $name - * @property bool $polls - * @property bool $pushNotifications - * @property bool $quotes - * @property bool $reactions - * @property bool $readEvents - * @property bool $reminders - * @property bool $replies - * @property bool $search - * @property bool $sharedLocations - * @property bool $skipLastMsgUpdateForSystemMsgs - * @property bool $typingEvents - * @property \DateTime $updatedAt - * @property bool $uploads - * @property bool $urlEnrichment - * @property bool $userMessageReminders - * @property array $commands - * @property array $permissions - * @property array $grants - * @property string|null $blocklist - * @property string|null $blocklistBehavior - * @property int|null $partitionSize - * @property string|null $partitionTtl - * @property array|null $allowedFlagReasons - * @property array|null $blocklists - * @property Thresholds|null $automodThresholds - */ class CreateChannelTypeResponse extends BaseModel { public function __construct( - public ?string $automod = null, - public ?string $automodBehavior = null, + public ?Thresholds $automodThresholds = null, + public ?string $name = null, + public ?bool $typingEvents = null, + public ?bool $readEvents = null, public ?bool $connectEvents = null, - public ?bool $countMessages = null, - public ?\DateTime $createdAt = null, - public ?bool $customEvents = null, public ?bool $deliveryEvents = null, - public ?string $duration = null, - public ?bool $markMessagesPending = null, - public ?int $maxMessageLength = null, + public ?bool $search = null, + public ?bool $reactions = null, + public ?bool $replies = null, + public ?bool $quotes = null, public ?bool $mutes = null, - public ?string $name = null, - public ?bool $polls = null, + public ?bool $uploads = null, + public ?bool $urlEnrichment = null, + public ?bool $customEvents = null, public ?bool $pushNotifications = null, - public ?bool $quotes = null, - public ?bool $reactions = null, - public ?bool $readEvents = null, public ?bool $reminders = null, - public ?bool $replies = null, - public ?bool $search = null, + public ?bool $markMessagesPending = null, + public ?bool $polls = null, + public ?bool $userMessageReminders = null, public ?bool $sharedLocations = null, + public ?bool $countMessages = null, + public ?int $maxMessageLength = null, + public ?string $automod = null, + public ?string $automodBehavior = null, + public ?string $blocklist = null, + public ?string $blocklistBehavior = null, + /** @var array|null */ + #[ArrayOf(BlockListOptions::class)] + public ?array $blocklists = null, + public ?array $allowedFlagReasons = null, + public ?int $partitionSize = null, + public ?string $partitionTtl = null, public ?bool $skipLastMsgUpdateForSystemMsgs = null, - public ?bool $typingEvents = null, + public ?string $pushLevel = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, - public ?bool $uploads = null, - public ?bool $urlEnrichment = null, - public ?bool $userMessageReminders = null, public ?array $commands = null, /** @var array|null */ #[ArrayOf(PolicyRequest::class)] public ?array $permissions = null, public ?array $grants = null, - public ?string $blocklist = null, - public ?string $blocklistBehavior = null, - public ?int $partitionSize = null, - public ?string $partitionTtl = null, - public ?array $allowedFlagReasons = null, - /** @var array|null */ - #[ArrayOf(BlockListOptions::class)] - public ?array $blocklists = null, - public ?Thresholds $automodThresholds = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CreateCollectionsRequest.php b/src/GeneratedModels/CreateCollectionsRequest.php index ef7b0a9..4fe3fd3 100644 --- a/src/GeneratedModels/CreateCollectionsRequest.php +++ b/src/GeneratedModels/CreateCollectionsRequest.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $collections - * @property string|null $userID - * @property UserRequest|null $user - */ class CreateCollectionsRequest extends BaseModel { public function __construct( - /** @var array|null List of collections to create */ + public ?UserRequest $user = null, + /** @var array|null */ #[ArrayOf(CollectionRequest::class)] public ?array $collections = null, // List of collections to create public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/CreateCollectionsResponse.php b/src/GeneratedModels/CreateCollectionsResponse.php index c84bda6..854eab6 100644 --- a/src/GeneratedModels/CreateCollectionsResponse.php +++ b/src/GeneratedModels/CreateCollectionsResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $collections - */ class CreateCollectionsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of created collections */ + /** @var array|null */ #[ArrayOf(CollectionResponse::class)] public ?array $collections = null, // List of created collections + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CreateCommandRequest.php b/src/GeneratedModels/CreateCommandRequest.php index ee39a36..3984d61 100644 --- a/src/GeneratedModels/CreateCommandRequest.php +++ b/src/GeneratedModels/CreateCommandRequest.php @@ -5,17 +5,12 @@ namespace GetStream\GeneratedModels; /** * Create a new command - * - * @property string $description - * @property string $name - * @property string|null $args - * @property string|null $set */ class CreateCommandRequest extends BaseModel { public function __construct( - public ?string $description = null, // Description, shown in commands auto-completion public ?string $name = null, // Unique command name + public ?string $description = null, // Description, shown in commands auto-completion public ?string $args = null, // Arguments help text, shown in commands auto-completion public ?string $set = null, // Set name used for grouping commands ) { diff --git a/src/GeneratedModels/CreateCommandResponse.php b/src/GeneratedModels/CreateCommandResponse.php index 0fa9a63..ec68916 100644 --- a/src/GeneratedModels/CreateCommandResponse.php +++ b/src/GeneratedModels/CreateCommandResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property Command|null $command - */ class CreateCommandResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?Command $command = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CreateDeviceRequest.php b/src/GeneratedModels/CreateDeviceRequest.php index abe3dba..4719740 100644 --- a/src/GeneratedModels/CreateDeviceRequest.php +++ b/src/GeneratedModels/CreateDeviceRequest.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * Create device request - * - * @property string $id - * @property string $pushProvider - * @property string|null $pushProviderName - * @property string|null $userID - * @property bool|null $voipToken - * @property UserRequest|null $user */ class CreateDeviceRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $id = null, // Device ID public ?string $pushProvider = null, // Push provider public ?string $pushProviderName = null, // Push provider name - public ?string $userID = null, // **Server-side only**. User ID which server acts upon public ?bool $voipToken = null, // When true the token is for Apple VoIP push notifications - public ?UserRequest $user = null, + public ?string $userID = null, // **Server-side only**. User ID which server acts upon ) { } diff --git a/src/GeneratedModels/CreateExternalStorageRequest.php b/src/GeneratedModels/CreateExternalStorageRequest.php index 684d335..852397f 100644 --- a/src/GeneratedModels/CreateExternalStorageRequest.php +++ b/src/GeneratedModels/CreateExternalStorageRequest.php @@ -5,25 +5,17 @@ namespace GetStream\GeneratedModels; /** * Create external storage - * - * @property string $bucket - * @property string $name - * @property string $storageType - * @property string|null $gcsCredentials - * @property string|null $path - * @property S3Request|null $awsS3 - * @property AzureRequest|null $azureBlob */ class CreateExternalStorageRequest extends BaseModel { public function __construct( - public ?string $bucket = null, // The name of the bucket on the service provider + public ?S3Request $awsS3 = null, + public ?AzureRequest $azureBlob = null, public ?string $name = null, // The name of the provider, this must be unique public ?string $storageType = null, // The type of storage to use - public ?string $gcsCredentials = null, + public ?string $bucket = null, // The name of the bucket on the service provider public ?string $path = null, // The path prefix to use for storing files - public ?S3Request $awsS3 = null, - public ?AzureRequest $azureBlob = null, + public ?string $gcsCredentials = null, ) { } diff --git a/src/GeneratedModels/CreateExternalStorageResponse.php b/src/GeneratedModels/CreateExternalStorageResponse.php index d764db7..897cd82 100644 --- a/src/GeneratedModels/CreateExternalStorageResponse.php +++ b/src/GeneratedModels/CreateExternalStorageResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration */ class CreateExternalStorageResponse extends BaseModel { diff --git a/src/GeneratedModels/CreateFeedGroupRequest.php b/src/GeneratedModels/CreateFeedGroupRequest.php index b382de2..8522e14 100644 --- a/src/GeneratedModels/CreateFeedGroupRequest.php +++ b/src/GeneratedModels/CreateFeedGroupRequest.php @@ -3,37 +3,23 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property string|null $defaultVisibility - * @property array|null $activityProcessors - * @property array|null $activitySelectors - * @property AggregationConfig|null $aggregation - * @property object|null $custom - * @property NotificationConfig|null $notification - * @property PushNotificationConfig|null $pushNotification - * @property RankingConfig|null $ranking - * @property StoriesConfig|null $stories - */ class CreateFeedGroupRequest extends BaseModel { public function __construct( + public ?AggregationConfig $aggregation = null, + public ?NotificationConfig $notification = null, + public ?PushNotificationConfig $pushNotification = null, + public ?RankingConfig $ranking = null, + public ?StoriesConfig $stories = null, public ?string $id = null, // Unique identifier for the feed group + public ?object $custom = null, // Custom data for the feed group public ?string $defaultVisibility = null, // Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided. - /** @var array|null Configuration for activity processors */ + /** @var array|null */ #[ArrayOf(ActivityProcessorConfig::class)] public ?array $activityProcessors = null, // Configuration for activity processors - /** @var array|null Configuration for activity selectors */ + /** @var array|null */ #[ArrayOf(ActivitySelectorConfig::class)] public ?array $activitySelectors = null, // Configuration for activity selectors - public ?AggregationConfig $aggregation = null, - public ?object $custom = null, // Custom data for the feed group - public ?NotificationConfig $notification = null, - public ?PushNotificationConfig $pushNotification = null, - public ?RankingConfig $ranking = null, - public ?StoriesConfig $stories = null, ) { } diff --git a/src/GeneratedModels/CreateFeedGroupResponse.php b/src/GeneratedModels/CreateFeedGroupResponse.php index b45df8b..103489d 100644 --- a/src/GeneratedModels/CreateFeedGroupResponse.php +++ b/src/GeneratedModels/CreateFeedGroupResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property FeedGroupResponse $feedGroup - */ class CreateFeedGroupResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?FeedGroupResponse $feedGroup = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CreateFeedViewRequest.php b/src/GeneratedModels/CreateFeedViewRequest.php index b00a80f..d9ed041 100644 --- a/src/GeneratedModels/CreateFeedViewRequest.php +++ b/src/GeneratedModels/CreateFeedViewRequest.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property array|null $activitySelectors - * @property AggregationConfig|null $aggregation - * @property RankingConfig|null $ranking - */ class CreateFeedViewRequest extends BaseModel { public function __construct( + public ?AggregationConfig $aggregation = null, + public ?RankingConfig $ranking = null, public ?string $id = null, // Unique identifier for the feed view - /** @var array|null Configuration for selecting activities */ + /** @var array|null */ #[ArrayOf(ActivitySelectorConfig::class)] public ?array $activitySelectors = null, // Configuration for selecting activities - public ?AggregationConfig $aggregation = null, - public ?RankingConfig $ranking = null, ) { } diff --git a/src/GeneratedModels/CreateFeedViewResponse.php b/src/GeneratedModels/CreateFeedViewResponse.php index 9e07aa4..38ec8cb 100644 --- a/src/GeneratedModels/CreateFeedViewResponse.php +++ b/src/GeneratedModels/CreateFeedViewResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property FeedViewResponse $feedView - */ class CreateFeedViewResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?FeedViewResponse $feedView = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CreateFeedsBatchRequest.php b/src/GeneratedModels/CreateFeedsBatchRequest.php index 281d713..b75b9ba 100644 --- a/src/GeneratedModels/CreateFeedsBatchRequest.php +++ b/src/GeneratedModels/CreateFeedsBatchRequest.php @@ -3,15 +3,10 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $feeds - */ class CreateFeedsBatchRequest extends BaseModel { public function __construct( - /** @var array|null List of feeds to create */ + /** @var array|null */ #[ArrayOf(FeedRequest::class)] public ?array $feeds = null, // List of feeds to create ) { diff --git a/src/GeneratedModels/CreateFeedsBatchResponse.php b/src/GeneratedModels/CreateFeedsBatchResponse.php index c67a694..10dc09a 100644 --- a/src/GeneratedModels/CreateFeedsBatchResponse.php +++ b/src/GeneratedModels/CreateFeedsBatchResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $feeds - */ class CreateFeedsBatchResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of created feeds */ + /** @var array|null */ #[ArrayOf(FeedResponse::class)] public ?array $feeds = null, // List of created feeds + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CreateGuestRequest.php b/src/GeneratedModels/CreateGuestRequest.php index 6894872..670e1c3 100644 --- a/src/GeneratedModels/CreateGuestRequest.php +++ b/src/GeneratedModels/CreateGuestRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property UserRequest $user - */ class CreateGuestRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CreateGuestResponse.php b/src/GeneratedModels/CreateGuestResponse.php index 0993b5a..410e37d 100644 --- a/src/GeneratedModels/CreateGuestResponse.php +++ b/src/GeneratedModels/CreateGuestResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $accessToken - * @property string $duration - * @property UserResponse $user - */ class CreateGuestResponse extends BaseModel { public function __construct( + public ?UserResponse $user = null, public ?string $accessToken = null, // the access token to authenticate the user public ?string $duration = null, // Duration of the request in milliseconds - public ?UserResponse $user = null, ) { } diff --git a/src/GeneratedModels/CreateImportRequest.php b/src/GeneratedModels/CreateImportRequest.php index f8d85e8..b39e57e 100644 --- a/src/GeneratedModels/CreateImportRequest.php +++ b/src/GeneratedModels/CreateImportRequest.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $mode - * @property string $path - */ class CreateImportRequest extends BaseModel { public function __construct( - public ?string $mode = null, public ?string $path = null, + public ?string $mode = null, ) { } diff --git a/src/GeneratedModels/CreateImportResponse.php b/src/GeneratedModels/CreateImportResponse.php index e455f8d..109e804 100644 --- a/src/GeneratedModels/CreateImportResponse.php +++ b/src/GeneratedModels/CreateImportResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property ImportTask|null $importTask */ class CreateImportResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?ImportTask $importTask = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/CreateImportURLRequest.php b/src/GeneratedModels/CreateImportURLRequest.php index 6d34c79..dbf971b 100644 --- a/src/GeneratedModels/CreateImportURLRequest.php +++ b/src/GeneratedModels/CreateImportURLRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $filename - */ class CreateImportURLRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CreateImportURLResponse.php b/src/GeneratedModels/CreateImportURLResponse.php index 8ce26d3..6197682 100644 --- a/src/GeneratedModels/CreateImportURLResponse.php +++ b/src/GeneratedModels/CreateImportURLResponse.php @@ -5,17 +5,13 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property string $path - * @property string $uploadUrl */ class CreateImportURLResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?string $path = null, public ?string $uploadUrl = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/CreateImportV2TaskRequest.php b/src/GeneratedModels/CreateImportV2TaskRequest.php index 6303d23..2ce0c38 100644 --- a/src/GeneratedModels/CreateImportV2TaskRequest.php +++ b/src/GeneratedModels/CreateImportV2TaskRequest.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * Client request - * - * @property string $product - * @property ImportV2TaskSettings $settings - * @property string|null $userID - * @property UserRequest|null $user */ class CreateImportV2TaskRequest extends BaseModel { public function __construct( - public ?string $product = null, public ?ImportV2TaskSettings $settings = null, - public ?string $userID = null, public ?UserRequest $user = null, + public ?string $product = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/CreateImportV2TaskResponse.php b/src/GeneratedModels/CreateImportV2TaskResponse.php index e9823b8..8e61800 100644 --- a/src/GeneratedModels/CreateImportV2TaskResponse.php +++ b/src/GeneratedModels/CreateImportV2TaskResponse.php @@ -5,27 +5,18 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property int $appPk - * @property \DateTime $createdAt - * @property string $duration - * @property string $id - * @property string $product - * @property int $state - * @property \DateTime $updatedAt - * @property ImportV2TaskSettings $settings */ class CreateImportV2TaskResponse extends BaseModel { public function __construct( - public ?int $appPk = null, - public ?\DateTime $createdAt = null, - public ?string $duration = null, // Duration of the request in milliseconds + public ?ImportV2TaskSettings $settings = null, public ?string $id = null, + public ?int $appPk = null, public ?string $product = null, public ?int $state = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, - public ?ImportV2TaskSettings $settings = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/CreateMembershipLevelRequest.php b/src/GeneratedModels/CreateMembershipLevelRequest.php index 02128c9..8dbe7f3 100644 --- a/src/GeneratedModels/CreateMembershipLevelRequest.php +++ b/src/GeneratedModels/CreateMembershipLevelRequest.php @@ -3,16 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property string $name - * @property string|null $description - * @property int|null $priority - * @property array|null $tags - * @property object|null $custom - */ class CreateMembershipLevelRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CreateMembershipLevelResponse.php b/src/GeneratedModels/CreateMembershipLevelResponse.php index ce6f29a..2008880 100644 --- a/src/GeneratedModels/CreateMembershipLevelResponse.php +++ b/src/GeneratedModels/CreateMembershipLevelResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property MembershipLevelResponse $membershipLevel - */ class CreateMembershipLevelResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?MembershipLevelResponse $membershipLevel = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CreatePollOptionRequest.php b/src/GeneratedModels/CreatePollOptionRequest.php index 4256fb6..de96811 100644 --- a/src/GeneratedModels/CreatePollOptionRequest.php +++ b/src/GeneratedModels/CreatePollOptionRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $text - * @property string|null $userID - * @property object|null $custom - * @property UserRequest|null $user - */ class CreatePollOptionRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $text = null, // Option text - public ?string $userID = null, public ?object $custom = null, - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/CreatePollRequest.php b/src/GeneratedModels/CreatePollRequest.php index f886b44..0192244 100644 --- a/src/GeneratedModels/CreatePollRequest.php +++ b/src/GeneratedModels/CreatePollRequest.php @@ -5,39 +5,25 @@ namespace GetStream\GeneratedModels; /** * Contains all information needed to create a new poll - * - * @property string $name - * @property bool|null $allowAnswers - * @property bool|null $allowUserSuggestedOptions - * @property string|null $description - * @property bool|null $enforceUniqueVote - * @property string|null $id - * @property bool|null $isClosed - * @property int|null $maxVotesAllowed - * @property string|null $userID - * @property string|null $votingVisibility - * @property array|null $options - * @property object|null $custom - * @property UserRequest|null $user */ class CreatePollRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, + public ?string $id = null, public ?string $name = null, // The name of the poll - public ?bool $allowAnswers = null, // Indicates whether users can suggest user defined answers - public ?bool $allowUserSuggestedOptions = null, public ?string $description = null, // A description of the poll - public ?bool $enforceUniqueVote = null, // Indicates whether users can cast multiple votes - public ?string $id = null, - public ?bool $isClosed = null, // Indicates whether the poll is open for voting - public ?int $maxVotesAllowed = null, // Indicates the maximum amount of votes a user can cast - public ?string $userID = null, - public ?string $votingVisibility = null, /** @var array|null */ #[ArrayOf(PollOptionInput::class)] public ?array $options = null, + public ?string $votingVisibility = null, + public ?bool $enforceUniqueVote = null, // Indicates whether users can cast multiple votes + public ?int $maxVotesAllowed = null, // Indicates the maximum amount of votes a user can cast + public ?bool $allowUserSuggestedOptions = null, + public ?bool $allowAnswers = null, // Indicates whether users can suggest user defined answers + public ?bool $isClosed = null, // Indicates whether the poll is open for voting public ?object $custom = null, - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/CreateReminderRequest.php b/src/GeneratedModels/CreateReminderRequest.php index a5de259..c7b9396 100644 --- a/src/GeneratedModels/CreateReminderRequest.php +++ b/src/GeneratedModels/CreateReminderRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime|null $remindAt - * @property string|null $userID - * @property UserRequest|null $user - */ class CreateReminderRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?\DateTime $remindAt = null, public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/CreateRoleRequest.php b/src/GeneratedModels/CreateRoleRequest.php index 03f199c..a91806a 100644 --- a/src/GeneratedModels/CreateRoleRequest.php +++ b/src/GeneratedModels/CreateRoleRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $name - */ class CreateRoleRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/CreateRoleResponse.php b/src/GeneratedModels/CreateRoleResponse.php index 59430ef..be232bf 100644 --- a/src/GeneratedModels/CreateRoleResponse.php +++ b/src/GeneratedModels/CreateRoleResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property Role $role */ class CreateRoleResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?Role $role = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/CreateSIPTrunkRequest.php b/src/GeneratedModels/CreateSIPTrunkRequest.php index f8e4ffa..47fe3fb 100644 --- a/src/GeneratedModels/CreateSIPTrunkRequest.php +++ b/src/GeneratedModels/CreateSIPTrunkRequest.php @@ -5,9 +5,6 @@ namespace GetStream\GeneratedModels; /** * Request to create a new SIP trunk - * - * @property string $name - * @property array $numbers */ class CreateSIPTrunkRequest extends BaseModel { diff --git a/src/GeneratedModels/CreateSIPTrunkResponse.php b/src/GeneratedModels/CreateSIPTrunkResponse.php index 85ee030..ac96961 100644 --- a/src/GeneratedModels/CreateSIPTrunkResponse.php +++ b/src/GeneratedModels/CreateSIPTrunkResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Response containing the created SIP trunk - * - * @property string $duration - * @property SIPTrunkResponse|null $sipTrunk */ class CreateSIPTrunkResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?SIPTrunkResponse $sipTrunk = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CustomActionRequestPayload.php b/src/GeneratedModels/CustomActionRequestPayload.php new file mode 100644 index 0000000..7242003 --- /dev/null +++ b/src/GeneratedModels/CustomActionRequestPayload.php @@ -0,0 +1,19 @@ + $flags - * @property string|null $entityCreatorID - * @property string|null $userID - * @property ModerationPayload|null $moderationPayload - * @property UserRequest|null $user - */ class CustomCheckRequest extends BaseModel { public function __construct( - public ?string $entityID = null, // Unique identifier of the entity + public ?ModerationPayloadRequest $moderationPayload = null, + public ?UserRequest $user = null, public ?string $entityType = null, // Type of entity to perform custom check on - /** @var array|null List of custom check flags (1-10 flags required) */ + public ?string $entityID = null, // Unique identifier of the entity + public ?string $entityCreatorID = null, // ID of the user who created the entity (required for non-message entities) + /** @var array|null */ #[ArrayOf(CustomCheckFlag::class)] public ?array $flags = null, // List of custom check flags (1-10 flags required) - public ?string $entityCreatorID = null, // ID of the user who created the entity (required for non-message entities) public ?string $userID = null, - public ?ModerationPayload $moderationPayload = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/CustomCheckResponse.php b/src/GeneratedModels/CustomCheckResponse.php index 14adcbb..4cfe1f0 100644 --- a/src/GeneratedModels/CustomCheckResponse.php +++ b/src/GeneratedModels/CustomCheckResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string $id - * @property string $status - * @property ReviewQueueItemResponse|null $item - */ class CustomCheckResponse extends BaseModel { public function __construct( - public ?string $duration = null, + public ?ReviewQueueItemResponse $item = null, public ?string $id = null, // Unique identifier of the custom check public ?string $status = null, // Status of the custom check - public ?ReviewQueueItemResponse $item = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/CustomEvent.php b/src/GeneratedModels/CustomEvent.php new file mode 100644 index 0000000..794cc36 --- /dev/null +++ b/src/GeneratedModels/CustomEvent.php @@ -0,0 +1,18 @@ + $daily - */ class DailyMetricStatsResponse extends BaseModel { public function __construct( - public ?int $total = null, // Total value across all days in the date range - /** @var array|null Array of daily metric values */ + /** @var array|null */ #[ArrayOf(DailyMetricResponse::class)] public ?array $daily = null, // Array of daily metric values + public ?int $total = null, // Total value across all days in the date range ) { } diff --git a/src/GeneratedModels/Data.php b/src/GeneratedModels/Data.php index 9dc60ef..a988e18 100644 --- a/src/GeneratedModels/Data.php +++ b/src/GeneratedModels/Data.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - */ class Data extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/DataDogInfo.php b/src/GeneratedModels/DataDogInfo.php index 110d9df..68a94cc 100644 --- a/src/GeneratedModels/DataDogInfo.php +++ b/src/GeneratedModels/DataDogInfo.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $apiKey - * @property bool|null $enabled - * @property string|null $site - */ class DataDogInfo extends BaseModel { public function __construct( public ?string $apiKey = null, - public ?bool $enabled = null, public ?string $site = null, + public ?bool $enabled = null, ) { } diff --git a/src/GeneratedModels/DeactivateUserRequest.php b/src/GeneratedModels/DeactivateUserRequest.php index 83b3f4c..e8e7567 100644 --- a/src/GeneratedModels/DeactivateUserRequest.php +++ b/src/GeneratedModels/DeactivateUserRequest.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $createdByID - * @property bool|null $markMessagesDeleted - */ class DeactivateUserRequest extends BaseModel { public function __construct( - public ?string $createdByID = null, // ID of the user who deactivated the user public ?bool $markMessagesDeleted = null, // Makes messages appear to be deleted + public ?string $createdByID = null, // ID of the user who deactivated the user ) { } diff --git a/src/GeneratedModels/DeactivateUserResponse.php b/src/GeneratedModels/DeactivateUserResponse.php index 1916d91..1a2f03d 100644 --- a/src/GeneratedModels/DeactivateUserResponse.php +++ b/src/GeneratedModels/DeactivateUserResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property UserResponse|null $user - */ class DeactivateUserResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?UserResponse $user = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/DeactivateUsersRequest.php b/src/GeneratedModels/DeactivateUsersRequest.php index a2807dc..f0e4348 100644 --- a/src/GeneratedModels/DeactivateUsersRequest.php +++ b/src/GeneratedModels/DeactivateUsersRequest.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * Deactivate users request - * - * @property array $userIds - * @property string|null $createdByID - * @property bool|null $markChannelsDeleted - * @property bool|null $markMessagesDeleted */ class DeactivateUsersRequest extends BaseModel { public function __construct( public ?array $userIds = null, // User IDs to deactivate + public ?bool $markMessagesDeleted = null, // Makes messages appear to be deleted public ?string $createdByID = null, // ID of the user who deactivated the users public ?bool $markChannelsDeleted = null, - public ?bool $markMessagesDeleted = null, // Makes messages appear to be deleted ) { } diff --git a/src/GeneratedModels/DeactivateUsersResponse.php b/src/GeneratedModels/DeactivateUsersResponse.php index 1285908..c3ea084 100644 --- a/src/GeneratedModels/DeactivateUsersResponse.php +++ b/src/GeneratedModels/DeactivateUsersResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property string $taskID */ class DeactivateUsersResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?string $taskID = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/DecayFunctionConfig.php b/src/GeneratedModels/DecayFunctionConfig.php index 9e373a3..f552e9a 100644 --- a/src/GeneratedModels/DecayFunctionConfig.php +++ b/src/GeneratedModels/DecayFunctionConfig.php @@ -3,25 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $base - * @property string|null $decay - * @property string|null $direction - * @property string|null $offset - * @property string|null $origin - * @property string|null $scale - */ class DecayFunctionConfig extends BaseModel { public function __construct( public ?string $base = null, // Base value for decay function - public ?string $decay = null, // Decay rate - public ?string $direction = null, // Direction of decay - public ?string $offset = null, // Offset value for decay function public ?string $origin = null, // Origin value for decay function public ?string $scale = null, // Scale factor for decay function + public ?string $offset = null, // Offset value for decay function + public ?string $decay = null, // Decay rate + public ?string $direction = null, // Direction of decay ) { } diff --git a/src/GeneratedModels/DeleteActivitiesRequest.php b/src/GeneratedModels/DeleteActivitiesRequest.php index bde8b1e..c93153e 100644 --- a/src/GeneratedModels/DeleteActivitiesRequest.php +++ b/src/GeneratedModels/DeleteActivitiesRequest.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $ids - * @property bool|null $deleteNotificationActivity - * @property bool|null $hardDelete - * @property string|null $userID - * @property UserRequest|null $user - */ class DeleteActivitiesRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?array $ids = null, // List of activity IDs to delete - public ?bool $deleteNotificationActivity = null, // Whether to also delete any notification activities created from mentions in these activities public ?bool $hardDelete = null, // Whether to permanently delete the activities + public ?bool $deleteNotificationActivity = null, // Whether to also delete any notification activities created from mentions in these activities public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/DeleteActivitiesResponse.php b/src/GeneratedModels/DeleteActivitiesResponse.php index cc9972d..e7a483b 100644 --- a/src/GeneratedModels/DeleteActivitiesResponse.php +++ b/src/GeneratedModels/DeleteActivitiesResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $deletedIds - */ class DeleteActivitiesResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?array $deletedIds = null, // List of activity IDs that were successfully deleted + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/DeleteActivityReactionResponse.php b/src/GeneratedModels/DeleteActivityReactionResponse.php index a66cc70..a5d4fb7 100644 --- a/src/GeneratedModels/DeleteActivityReactionResponse.php +++ b/src/GeneratedModels/DeleteActivityReactionResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ActivityResponse $activity - * @property FeedsReactionResponse $reaction - */ class DeleteActivityReactionResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?ActivityResponse $activity = null, public ?FeedsReactionResponse $reaction = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/DeleteActivityRequestPayload.php b/src/GeneratedModels/DeleteActivityRequestPayload.php new file mode 100644 index 0000000..d295652 --- /dev/null +++ b/src/GeneratedModels/DeleteActivityRequestPayload.php @@ -0,0 +1,19 @@ +|null */ + #[MapOf(DeleteChannelsResultResponse::class)] public ?array $result = null, // Map of channel IDs and their deletion results + public ?string $taskID = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/DeleteChannelsResultResponse.php b/src/GeneratedModels/DeleteChannelsResultResponse.php index 73122b1..455c4c1 100644 --- a/src/GeneratedModels/DeleteChannelsResultResponse.php +++ b/src/GeneratedModels/DeleteChannelsResultResponse.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $status - * @property string|null $error - */ class DeleteChannelsResultResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/DeleteCollectionsResponse.php b/src/GeneratedModels/DeleteCollectionsResponse.php index c65c331..48e7be1 100644 --- a/src/GeneratedModels/DeleteCollectionsResponse.php +++ b/src/GeneratedModels/DeleteCollectionsResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - */ class DeleteCollectionsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/DeleteCommandResponse.php b/src/GeneratedModels/DeleteCommandResponse.php index 211ed24..6cb448f 100644 --- a/src/GeneratedModels/DeleteCommandResponse.php +++ b/src/GeneratedModels/DeleteCommandResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string $name - */ class DeleteCommandResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?string $name = null, // Command name + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/DeleteCommentReactionResponse.php b/src/GeneratedModels/DeleteCommentReactionResponse.php index e38a9b6..8a5f1d4 100644 --- a/src/GeneratedModels/DeleteCommentReactionResponse.php +++ b/src/GeneratedModels/DeleteCommentReactionResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property CommentResponse $comment - * @property FeedsReactionResponse $reaction - */ class DeleteCommentReactionResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?CommentResponse $comment = null, public ?FeedsReactionResponse $reaction = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/DeleteCommentRequestPayload.php b/src/GeneratedModels/DeleteCommentRequestPayload.php new file mode 100644 index 0000000..687df47 --- /dev/null +++ b/src/GeneratedModels/DeleteCommentRequestPayload.php @@ -0,0 +1,19 @@ +|null $attachments - * @property array|null $mentionedUsers + * Contains the draft message content */ class DraftPayloadResponse extends BaseModel { public function __construct( - public ?string $id = null, - public ?string $text = null, - public ?object $custom = null, - public ?string $html = null, - public ?string $mml = null, - public ?string $parentID = null, - public ?string $pollID = null, - public ?string $quotedMessageID = null, - public ?bool $showInChannel = null, - public ?bool $silent = null, - public ?string $type = null, + public ?string $id = null, // Message ID is unique string identifier of the message + public ?string $text = null, // Text of the message + public ?string $mml = null, // MML content of the message /** @var array|null */ #[ArrayOf(Attachment::class)] - public ?array $attachments = null, + public ?array $attachments = null, // Array of message attachments + public ?string $parentID = null, // ID of parent message (thread) + public ?bool $showInChannel = null, // Whether thread reply should be shown in the channel as well + public ?object $custom = null, /** @var array|null */ #[ArrayOf(UserResponse::class)] - public ?array $mentionedUsers = null, + public ?array $mentionedUsers = null, // List of mentioned users + public ?string $quotedMessageID = null, + public ?string $html = null, // Contains HTML markup of the message + public ?string $type = null, // Contains type of the message. One of: regular, system + public ?bool $silent = null, // Whether message is silent or not + public ?string $pollID = null, // Identifier of the poll to include in the message ) { } diff --git a/src/GeneratedModels/DraftResponse.php b/src/GeneratedModels/DraftResponse.php index 52dcd72..116ee2c 100644 --- a/src/GeneratedModels/DraftResponse.php +++ b/src/GeneratedModels/DraftResponse.php @@ -3,27 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $channelCid - * @property \DateTime $createdAt - * @property DraftPayloadResponse $message - * @property string|null $parentID - * @property ChannelResponse|null $channel - * @property MessageResponse|null $parentMessage - * @property MessageResponse|null $quotedMessage - */ class DraftResponse extends BaseModel { public function __construct( - public ?string $channelCid = null, - public ?\DateTime $createdAt = null, - public ?DraftPayloadResponse $message = null, - public ?string $parentID = null, public ?ChannelResponse $channel = null, + public ?DraftPayloadResponse $message = null, public ?MessageResponse $parentMessage = null, public ?MessageResponse $quotedMessage = null, + public ?string $channelCid = null, + public ?string $parentID = null, + public ?\DateTime $createdAt = null, ) { } diff --git a/src/GeneratedModels/EdgeResponse.php b/src/GeneratedModels/EdgeResponse.php index 6b6a210..d36fd2b 100644 --- a/src/GeneratedModels/EdgeResponse.php +++ b/src/GeneratedModels/EdgeResponse.php @@ -3,33 +3,19 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $continentCode - * @property string $countryIsoCode - * @property int $green - * @property string $id - * @property string $latencyTestUrl - * @property int $latitude - * @property int $longitude - * @property int $red - * @property string $subdivisionIsoCode - * @property int $yellow - */ class EdgeResponse extends BaseModel { public function __construct( - public ?string $continentCode = null, - public ?string $countryIsoCode = null, - public ?int $green = null, public ?string $id = null, public ?string $latencyTestUrl = null, + public ?int $green = null, + public ?int $yellow = null, + public ?int $red = null, public ?int $latitude = null, public ?int $longitude = null, - public ?int $red = null, public ?string $subdivisionIsoCode = null, - public ?int $yellow = null, + public ?string $countryIsoCode = null, + public ?string $continentCode = null, ) { } diff --git a/src/GeneratedModels/EgressHLSResponse.php b/src/GeneratedModels/EgressHLSResponse.php index 59efc30..f778442 100644 --- a/src/GeneratedModels/EgressHLSResponse.php +++ b/src/GeneratedModels/EgressHLSResponse.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $playlistUrl - * @property string $status - */ class EgressHLSResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/EgressRTMPResponse.php b/src/GeneratedModels/EgressRTMPResponse.php index af36655..b5c9f6b 100644 --- a/src/GeneratedModels/EgressRTMPResponse.php +++ b/src/GeneratedModels/EgressRTMPResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $name - * @property \DateTime $startedAt - * @property string|null $streamKey - * @property string|null $streamUrl - */ class EgressRTMPResponse extends BaseModel { public function __construct( public ?string $name = null, - public ?\DateTime $startedAt = null, - public ?string $streamKey = null, public ?string $streamUrl = null, + public ?string $streamKey = null, + public ?\DateTime $startedAt = null, ) { } diff --git a/src/GeneratedModels/EgressResponse.php b/src/GeneratedModels/EgressResponse.php index 11b00d9..16554c5 100644 --- a/src/GeneratedModels/EgressResponse.php +++ b/src/GeneratedModels/EgressResponse.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $broadcasting - * @property array $rtmps - * @property CompositeRecordingResponse|null $compositeRecording - * @property FrameRecordingResponse|null $frameRecording - * @property EgressHLSResponse|null $hls - * @property IndividualRecordingResponse|null $individualRecording - * @property RawRecordingResponse|null $rawRecording - */ class EgressResponse extends BaseModel { public function __construct( - public ?bool $broadcasting = null, - /** @var array|null */ - #[ArrayOf(EgressRTMPResponse::class)] - public ?array $rtmps = null, public ?CompositeRecordingResponse $compositeRecording = null, public ?FrameRecordingResponse $frameRecording = null, public ?EgressHLSResponse $hls = null, public ?IndividualRecordingResponse $individualRecording = null, public ?RawRecordingResponse $rawRecording = null, + public ?bool $broadcasting = null, + /** @var array|null */ + #[ArrayOf(EgressRTMPResponse::class)] + public ?array $rtmps = null, ) { } diff --git a/src/GeneratedModels/EndCallResponse.php b/src/GeneratedModels/EndCallResponse.php index 0c8772a..1b97b78 100644 --- a/src/GeneratedModels/EndCallResponse.php +++ b/src/GeneratedModels/EndCallResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Response for ending a call - * - * @property string $duration */ class EndCallResponse extends BaseModel { diff --git a/src/GeneratedModels/EnrichedActivity.php b/src/GeneratedModels/EnrichedActivity.php index eb69e04..2445aa8 100644 --- a/src/GeneratedModels/EnrichedActivity.php +++ b/src/GeneratedModels/EnrichedActivity.php @@ -3,37 +3,21 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $foreignID - * @property string|null $id - * @property int|null $score - * @property string|null $verb - * @property array|null $to - * @property Data|null $actor - * @property array|null $latestReactions - * @property Data|null $object - * @property Data|null $origin - * @property array|null $ownReactions - * @property array|null $reactionCounts - * @property Data|null $target - */ class EnrichedActivity extends BaseModel { public function __construct( - public ?string $foreignID = null, - public ?string $id = null, - public ?int $score = null, - public ?string $verb = null, - public ?array $to = null, public ?Data $actor = null, - public ?array $latestReactions = null, public ?Data $object = null, public ?Data $origin = null, - public ?array $ownReactions = null, - public ?array $reactionCounts = null, public ?Data $target = null, + public ?string $id = null, + public ?string $verb = null, + public ?string $foreignID = null, + public ?array $to = null, + public ?int $score = null, + public ?array $reactionCounts = null, + public ?array $ownReactions = null, + public ?array $latestReactions = null, ) { } diff --git a/src/GeneratedModels/EnrichedCollectionResponse.php b/src/GeneratedModels/EnrichedCollectionResponse.php index 858975d..437e41c 100644 --- a/src/GeneratedModels/EnrichedCollectionResponse.php +++ b/src/GeneratedModels/EnrichedCollectionResponse.php @@ -3,27 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property string $name - * @property string $status - * @property \DateTime|null $createdAt - * @property \DateTime|null $updatedAt - * @property string|null $userID - * @property object|null $custom - */ class EnrichedCollectionResponse extends BaseModel { public function __construct( - public ?string $id = null, // Unique identifier for the collection within its name public ?string $name = null, // Name/type of the collection - public ?string $status = null, // Enrichment status of the collection + public ?string $id = null, // Unique identifier for the collection within its name + public ?object $custom = null, // Custom data for the collection + public ?string $userID = null, // ID of the user who owns this collection public ?\DateTime $createdAt = null, // When the collection was created public ?\DateTime $updatedAt = null, // When the collection was last updated - public ?string $userID = null, // ID of the user who owns this collection - public ?object $custom = null, // Custom data for the collection + public ?string $status = null, // Enrichment status of the collection. One of: ok, notfound ) { } diff --git a/src/GeneratedModels/EnrichedReaction.php b/src/GeneratedModels/EnrichedReaction.php index ff05fc1..6819c1c 100644 --- a/src/GeneratedModels/EnrichedReaction.php +++ b/src/GeneratedModels/EnrichedReaction.php @@ -3,39 +3,22 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $activityID - * @property string $kind - * @property string $userID - * @property string|null $id - * @property string|null $parent - * @property array|null $targetFeeds - * @property array|null $childrenCounts - * @property Time|null $createdAt - * @property object|null $data - * @property array|null $latestChildren - * @property array|null $ownChildren - * @property Time|null $updatedAt - * @property Data|null $user - */ class EnrichedReaction extends BaseModel { public function __construct( - public ?string $activityID = null, + public ?Time $createdAt = null, + public ?Time $updatedAt = null, + public ?Data $user = null, + public ?string $id = null, public ?string $kind = null, + public ?string $activityID = null, public ?string $userID = null, - public ?string $id = null, - public ?string $parent = null, - public ?array $targetFeeds = null, - public ?array $childrenCounts = null, - public ?Time $createdAt = null, public ?object $data = null, + public ?array $targetFeeds = null, + public ?string $parent = null, public ?array $latestChildren = null, public ?array $ownChildren = null, - public ?Time $updatedAt = null, - public ?Data $user = null, + public ?array $childrenCounts = null, ) { } diff --git a/src/GeneratedModels/EnrichmentOptions.php b/src/GeneratedModels/EnrichmentOptions.php index bb0d565..92dada9 100644 --- a/src/GeneratedModels/EnrichmentOptions.php +++ b/src/GeneratedModels/EnrichmentOptions.php @@ -5,47 +5,28 @@ namespace GetStream\GeneratedModels; /** * Options to skip specific enrichments to improve performance. Default is false (enrichments are included). Setting a field to true skips that enrichment. - * - * @property bool|null $enrichOwnFollowings - * @property bool|null $skipActivity - * @property bool|null $skipActivityCollections - * @property bool|null $skipActivityComments - * @property bool|null $skipActivityCurrentFeed - * @property bool|null $skipActivityMentionedUsers - * @property bool|null $skipActivityOwnBookmarks - * @property bool|null $skipActivityParents - * @property bool|null $skipActivityPoll - * @property bool|null $skipActivityReactions - * @property bool|null $skipActivityRefreshImageUrls - * @property bool|null $skipAll - * @property bool|null $skipFeedMemberUser - * @property bool|null $skipFollowers - * @property bool|null $skipFollowing - * @property bool|null $skipOwnCapabilities - * @property bool|null $skipOwnFollows - * @property bool|null $skipPins */ class EnrichmentOptions extends BaseModel { public function __construct( - public ?bool $enrichOwnFollowings = null, // Default: false. When true, includes fetching and enriching own_followings (follows where activity author's feeds follow current user's feeds). public ?bool $skipActivity = null, // Default: false. When true, skips all activity enrichments. - public ?bool $skipActivityCollections = null, // Default: false. When true, skips enriching collections on activities. + public ?bool $skipActivityParents = null, // Default: false. When true, skips enriching parent activities. + public ?bool $skipActivityReactions = null, // Default: false. When true, skips fetching and enriching latest and own reactions on activities. Note: If reactions are already denormalized in the database, they will still be included. + public ?bool $skipActivityOwnBookmarks = null, // Default: false. When true, skips enriching own bookmarks on activities. public ?bool $skipActivityComments = null, // Default: false. When true, skips enriching comments on activities. - public ?bool $skipActivityCurrentFeed = null, // Default: false. When true, skips enriching current_feed on activities. Note: CurrentFeed is still computed for permission checks, but enrichment is skipped. public ?bool $skipActivityMentionedUsers = null, // Default: false. When true, skips enriching mentioned users on activities. - public ?bool $skipActivityOwnBookmarks = null, // Default: false. When true, skips enriching own bookmarks on activities. - public ?bool $skipActivityParents = null, // Default: false. When true, skips enriching parent activities. public ?bool $skipActivityPoll = null, // Default: false. When true, skips enriching poll data on activities. - public ?bool $skipActivityReactions = null, // Default: false. When true, skips fetching and enriching latest and own reactions on activities. Note: If reactions are already denormalized in the database, they will still be included. + public ?bool $skipActivityCollections = null, // Default: false. When true, skips enriching collections on activities. public ?bool $skipActivityRefreshImageUrls = null, // Default: false. When true, skips refreshing image URLs on activities. - public ?bool $skipAll = null, // Default: false. When true, skips all enrichments. + public ?bool $skipActivityCurrentFeed = null, // Default: false. When true, skips enriching current_feed on activities. Note: CurrentFeed is still computed for permission checks, but enrichment is skipped. + public ?bool $skipPins = null, // Default: false. When true, skips enriching pinned activities. public ?bool $skipFeedMemberUser = null, // Default: false. When true, skips enriching user data on feed members. public ?bool $skipFollowers = null, // Default: false. When true, skips fetching and enriching followers. Note: If followers_pagination is explicitly provided, followers will be fetched regardless of this setting. public ?bool $skipFollowing = null, // Default: false. When true, skips fetching and enriching following. Note: If following_pagination is explicitly provided, following will be fetched regardless of this setting. - public ?bool $skipOwnCapabilities = null, // Default: false. When true, skips computing and including capabilities for feeds. public ?bool $skipOwnFollows = null, // Default: false. When true, skips fetching and enriching own_follows (follows where user's feeds follow target feeds). - public ?bool $skipPins = null, // Default: false. When true, skips enriching pinned activities. + public ?bool $enrichOwnFollowings = null, // Default: false. When true, includes fetching and enriching own_followings (follows where activity author's feeds follow current user's feeds). + public ?bool $skipOwnCapabilities = null, // Default: false. When true, skips computing and including capabilities for feeds. + public ?bool $skipAll = null, // Default: false. When true, skips all enrichments. ) { } diff --git a/src/GeneratedModels/EntityCreatorResponse.php b/src/GeneratedModels/EntityCreatorResponse.php index 56335e0..f1cdbfd 100644 --- a/src/GeneratedModels/EntityCreatorResponse.php +++ b/src/GeneratedModels/EntityCreatorResponse.php @@ -3,69 +3,38 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $banCount - * @property bool $banned - * @property \DateTime $createdAt - * @property int $deletedContentCount - * @property int $flaggedCount - * @property string $id - * @property bool $invisible - * @property string $language - * @property bool $online - * @property string $role - * @property bool $shadowBanned - * @property \DateTime $updatedAt - * @property array $blockedUserIds - * @property array $teams - * @property object $custom - * @property int|null $avgResponseTime - * @property \DateTime|null $banExpires - * @property \DateTime|null $deactivatedAt - * @property \DateTime|null $deletedAt - * @property string|null $image - * @property \DateTime|null $lastActive - * @property string|null $name - * @property \DateTime|null $revokeTokensIssuedBefore - * @property array|null $devices - * @property PrivacySettingsResponse|null $privacySettings - * @property PushNotificationSettingsResponse|null $pushNotifications - * @property array|null $teamsRole - */ class EntityCreatorResponse extends BaseModel { public function __construct( - public ?int $banCount = null, // Number of minor actions performed on the user - public ?bool $banned = null, - public ?\DateTime $createdAt = null, - public ?int $deletedContentCount = null, // Number of major actions performed on the user - public ?int $flaggedCount = null, // Number of flag actions performed on the user + public ?PrivacySettingsResponse $privacySettings = null, + public ?PushNotificationSettingsResponse $pushNotifications = null, public ?string $id = null, - public ?bool $invisible = null, + public ?string $name = null, + public ?string $image = null, + public ?object $custom = null, public ?string $language = null, - public ?bool $online = null, public ?string $role = null, - public ?bool $shadowBanned = null, - public ?\DateTime $updatedAt = null, - public ?array $blockedUserIds = null, public ?array $teams = null, - public ?object $custom = null, - public ?int $avgResponseTime = null, - public ?\DateTime $banExpires = null, - public ?\DateTime $deactivatedAt = null, + public ?array $teamsRole = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, public ?\DateTime $deletedAt = null, - public ?string $image = null, + public ?bool $banned = null, + public ?bool $online = null, public ?\DateTime $lastActive = null, - public ?string $name = null, public ?\DateTime $revokeTokensIssuedBefore = null, + public ?\DateTime $deactivatedAt = null, + public ?array $blockedUserIds = null, + public ?int $avgResponseTime = null, + public ?bool $shadowBanned = null, + public ?\DateTime $banExpires = null, /** @var array|null */ #[ArrayOf(DeviceResponse::class)] public ?array $devices = null, - public ?PrivacySettingsResponse $privacySettings = null, - public ?PushNotificationSettingsResponse $pushNotifications = null, - public ?array $teamsRole = null, + public ?bool $invisible = null, + public ?int $banCount = null, // Number of minor actions performed on the user + public ?int $deletedContentCount = null, // Number of major actions performed on the user + public ?int $flaggedCount = null, // Number of flag actions performed on the user ) { } diff --git a/src/GeneratedModels/ErrorResult.php b/src/GeneratedModels/ErrorResult.php index 37c8700..d140193 100644 --- a/src/GeneratedModels/ErrorResult.php +++ b/src/GeneratedModels/ErrorResult.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $type - * @property string|null $stacktrace - * @property string|null $version - */ class ErrorResult extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/EventHook.php b/src/GeneratedModels/EventHook.php index 33cd7e4..8df325b 100644 --- a/src/GeneratedModels/EventHook.php +++ b/src/GeneratedModels/EventHook.php @@ -3,61 +3,33 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime|null $createdAt - * @property bool|null $enabled - * @property string|null $hookType - * @property string|null $id - * @property string|null $product - * @property bool|null $shouldSendCustomEvents - * @property string|null $snsAuthType - * @property bool|null $snsEventBasedMessageGroupIDEnabled - * @property string|null $snsKey - * @property string|null $snsRegion - * @property string|null $snsRoleArn - * @property string|null $snsSecret - * @property string|null $snsTopicArn - * @property string|null $sqsAuthType - * @property string|null $sqsKey - * @property string|null $sqsQueueUrl - * @property string|null $sqsRegion - * @property string|null $sqsRoleArn - * @property string|null $sqsSecret - * @property int|null $timeoutMs - * @property \DateTime|null $updatedAt - * @property string|null $webhookUrl - * @property array|null $eventTypes - * @property AsyncModerationCallbackConfig|null $callback - */ class EventHook extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?bool $enabled = null, - public ?string $hookType = null, + public ?AsyncModerationCallbackConfig $callback = null, public ?string $id = null, - public ?string $product = null, - public ?bool $shouldSendCustomEvents = null, - public ?string $snsAuthType = null, - public ?bool $snsEventBasedMessageGroupIDEnabled = null, - public ?string $snsKey = null, - public ?string $snsRegion = null, - public ?string $snsRoleArn = null, - public ?string $snsSecret = null, - public ?string $snsTopicArn = null, - public ?string $sqsAuthType = null, - public ?string $sqsKey = null, + public ?string $hookType = null, + public ?bool $enabled = null, + public ?array $eventTypes = null, + public ?string $webhookUrl = null, public ?string $sqsQueueUrl = null, public ?string $sqsRegion = null, - public ?string $sqsRoleArn = null, + public ?string $sqsAuthType = null, + public ?string $sqsKey = null, public ?string $sqsSecret = null, + public ?string $sqsRoleArn = null, + public ?string $snsTopicArn = null, + public ?string $snsRegion = null, + public ?string $snsAuthType = null, + public ?string $snsKey = null, + public ?string $snsSecret = null, + public ?string $snsRoleArn = null, + public ?string $product = null, + public ?bool $shouldSendCustomEvents = null, public ?int $timeoutMs = null, + public ?bool $snsEventBasedMessageGroupIDEnabled = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, - public ?string $webhookUrl = null, - public ?array $eventTypes = null, - public ?AsyncModerationCallbackConfig $callback = null, ) { } diff --git a/src/GeneratedModels/EventNotificationSettings.php b/src/GeneratedModels/EventNotificationSettings.php index b9c0f17..0f6ce4f 100644 --- a/src/GeneratedModels/EventNotificationSettings.php +++ b/src/GeneratedModels/EventNotificationSettings.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - * @property APNS $apns - * @property FCM $fcm - */ class EventNotificationSettings extends BaseModel { public function __construct( - public ?bool $enabled = null, public ?APNS $apns = null, public ?FCM $fcm = null, + public ?bool $enabled = null, ) { } diff --git a/src/GeneratedModels/EventNotificationSettingsRequest.php b/src/GeneratedModels/EventNotificationSettingsRequest.php new file mode 100644 index 0000000..898ca3a --- /dev/null +++ b/src/GeneratedModels/EventNotificationSettingsRequest.php @@ -0,0 +1,17 @@ + $channels - * @property bool|null $clearDeletedMessageText - * @property bool|null $exportUsers - * @property bool|null $includeSoftDeletedChannels - * @property bool|null $includeTruncatedMessages - * @property string|null $version - */ class ExportChannelsRequest extends BaseModel { public function __construct( - /** @var array|null Export options for channels */ + public ?string $version = null, // Export version + /** @var array|null */ #[ArrayOf(ChannelExport::class)] public ?array $channels = null, // Export options for channels public ?bool $clearDeletedMessageText = null, // Set if deleted message text should be cleared - public ?bool $exportUsers = null, - public ?bool $includeSoftDeletedChannels = null, // Set if you want to include deleted channels public ?bool $includeTruncatedMessages = null, // Set if you want to include truncated messages - public ?string $version = null, // Export version + public ?bool $includeSoftDeletedChannels = null, // Set if you want to include deleted channels + public ?bool $exportUsers = null, ) { } diff --git a/src/GeneratedModels/ExportChannelsResponse.php b/src/GeneratedModels/ExportChannelsResponse.php index 49c5b39..c692db2 100644 --- a/src/GeneratedModels/ExportChannelsResponse.php +++ b/src/GeneratedModels/ExportChannelsResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string $taskID - */ class ExportChannelsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?string $taskID = null, // ID of the task to export channels + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/ExportFeedUserDataResponse.php b/src/GeneratedModels/ExportFeedUserDataResponse.php index cc9b327..9b54080 100644 --- a/src/GeneratedModels/ExportFeedUserDataResponse.php +++ b/src/GeneratedModels/ExportFeedUserDataResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Response for exporting feed user data - * - * @property string $duration - * @property string $taskID */ class ExportFeedUserDataResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?string $taskID = null, // The task ID for the export task + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ExportUserResponse.php b/src/GeneratedModels/ExportUserResponse.php index 7b65865..ae5e5d5 100644 --- a/src/GeneratedModels/ExportUserResponse.php +++ b/src/GeneratedModels/ExportUserResponse.php @@ -3,25 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array|null $messages - * @property array|null $reactions - * @property UserResponse|null $user - */ class ExportUserResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null List of exported messages */ + public ?UserResponse $user = null, + /** @var array|null */ #[ArrayOf(MessageResponse::class)] public ?array $messages = null, // List of exported messages - /** @var array|null List of exported reactions */ + /** @var array|null */ #[ArrayOf(ReactionResponse::class)] public ?array $reactions = null, // List of exported reactions - public ?UserResponse $user = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/ExportUsersRequest.php b/src/GeneratedModels/ExportUsersRequest.php index ac0b336..4d9514f 100644 --- a/src/GeneratedModels/ExportUsersRequest.php +++ b/src/GeneratedModels/ExportUsersRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $userIds - */ class ExportUsersRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ExportUsersResponse.php b/src/GeneratedModels/ExportUsersResponse.php index 327034f..5ee2511 100644 --- a/src/GeneratedModels/ExportUsersResponse.php +++ b/src/GeneratedModels/ExportUsersResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property string $taskID */ class ExportUsersResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?string $taskID = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/ExternalStorageResponse.php b/src/GeneratedModels/ExternalStorageResponse.php index eb8717f..fb36c3f 100644 --- a/src/GeneratedModels/ExternalStorageResponse.php +++ b/src/GeneratedModels/ExternalStorageResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $bucket - * @property string $name - * @property string $path - * @property string $type - */ class ExternalStorageResponse extends BaseModel { public function __construct( - public ?string $bucket = null, public ?string $name = null, - public ?string $path = null, public ?string $type = null, + public ?string $bucket = null, + public ?string $path = null, ) { } diff --git a/src/GeneratedModels/FCM.php b/src/GeneratedModels/FCM.php index 04efc73..cce28d4 100644 --- a/src/GeneratedModels/FCM.php +++ b/src/GeneratedModels/FCM.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property object|null $data - */ class FCM extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/FCMPayload.php b/src/GeneratedModels/FCMPayload.php new file mode 100644 index 0000000..dd76cda --- /dev/null +++ b/src/GeneratedModels/FCMPayload.php @@ -0,0 +1,15 @@ + $members - * @property object $custom - * @property FeedResponse $feed - * @property UserResponseCommonFields $user - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt */ class FeedCreatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, + public ?FeedResponse $feed = null, + public ?UserResponseCommonFields $user = null, /** @var array|null */ #[ArrayOf(FeedMemberResponse::class)] public ?array $members = null, - public ?object $custom = null, - public ?FeedResponse $feed = null, - public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "feeds.feed.created" in this case - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $fid = null, + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/FeedDeletedEvent.php b/src/GeneratedModels/FeedDeletedEvent.php index ca2c096..272eb96 100644 --- a/src/GeneratedModels/FeedDeletedEvent.php +++ b/src/GeneratedModels/FeedDeletedEvent.php @@ -5,25 +5,17 @@ namespace GetStream\GeneratedModels; /** * Emitted when a feed is deleted. - * - * @property \DateTime $createdAt - * @property string $fid - * @property object $custom - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class FeedDeletedEvent extends BaseModel { public function __construct( + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "feeds.feed.deleted" in this case public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, + public ?\DateTime $receivedAt = null, public ?object $custom = null, - public ?string $type = null, // The type of event: "feeds.feed.deleted" in this case + public ?string $fid = null, public ?string $feedVisibility = null, - public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, ) { } diff --git a/src/GeneratedModels/FeedGroup.php b/src/GeneratedModels/FeedGroup.php index d0e58c8..2cd47b1 100644 --- a/src/GeneratedModels/FeedGroup.php +++ b/src/GeneratedModels/FeedGroup.php @@ -3,49 +3,29 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $aggregationVersion - * @property int $appPk - * @property \DateTime $createdAt - * @property string $defaultVisibility - * @property string $groupID - * @property \DateTime $updatedAt - * @property array $activityProcessors - * @property array $activitySelectors - * @property object $custom - * @property \DateTime|null $deletedAt - * @property \DateTime|null $lastFeedGetAt - * @property AggregationConfig|null $aggregation - * @property NotificationConfig|null $notification - * @property PushNotificationConfig|null $pushNotification - * @property RankingConfig|null $ranking - * @property StoriesConfig|null $stories - */ class FeedGroup extends BaseModel { public function __construct( - public ?int $aggregationVersion = null, + public ?AggregationConfig $aggregation = null, + public ?NotificationConfig $notification = null, + public ?PushNotificationConfig $pushNotification = null, + public ?RankingConfig $ranking = null, + public ?StoriesConfig $stories = null, public ?int $appPk = null, - public ?\DateTime $createdAt = null, - public ?string $defaultVisibility = null, public ?string $groupID = null, + public ?string $defaultVisibility = null, + public ?object $custom = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, + public ?\DateTime $deletedAt = null, /** @var array|null */ #[ArrayOf(ActivityProcessorConfig::class)] public ?array $activityProcessors = null, /** @var array|null */ #[ArrayOf(ActivitySelectorConfig::class)] public ?array $activitySelectors = null, - public ?object $custom = null, - public ?\DateTime $deletedAt = null, + public ?int $aggregationVersion = null, public ?\DateTime $lastFeedGetAt = null, - public ?AggregationConfig $aggregation = null, - public ?NotificationConfig $notification = null, - public ?PushNotificationConfig $pushNotification = null, - public ?RankingConfig $ranking = null, - public ?StoriesConfig $stories = null, ) { } diff --git a/src/GeneratedModels/FeedGroupChangedEvent.php b/src/GeneratedModels/FeedGroupChangedEvent.php index 71365dc..d96d647 100644 --- a/src/GeneratedModels/FeedGroupChangedEvent.php +++ b/src/GeneratedModels/FeedGroupChangedEvent.php @@ -5,27 +5,18 @@ namespace GetStream\GeneratedModels; /** * Emitted when a feed group is changed. - * - * @property \DateTime $createdAt - * @property string $fid - * @property object $custom - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt - * @property FeedGroup|null $feedGroup - * @property UserResponseCommonFields|null $user */ class FeedGroupChangedEvent extends BaseModel { public function __construct( + public ?FeedGroup $feedGroup = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "feeds.feed_group.changed" in this case public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, + public ?\DateTime $receivedAt = null, public ?object $custom = null, - public ?string $type = null, // The type of event: "feeds.feed_group.changed" in this case + public ?string $fid = null, public ?string $feedVisibility = null, - public ?\DateTime $receivedAt = null, - public ?FeedGroup $feedGroup = null, - public ?UserResponseCommonFields $user = null, ) { } diff --git a/src/GeneratedModels/FeedGroupDeletedEvent.php b/src/GeneratedModels/FeedGroupDeletedEvent.php index 10357e7..44a7979 100644 --- a/src/GeneratedModels/FeedGroupDeletedEvent.php +++ b/src/GeneratedModels/FeedGroupDeletedEvent.php @@ -5,25 +5,17 @@ namespace GetStream\GeneratedModels; /** * Emitted when a feed group is deleted. - * - * @property \DateTime $createdAt - * @property string $fid - * @property string $groupID - * @property object $custom - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt */ class FeedGroupDeletedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, public ?string $groupID = null, // The ID of the feed group that was deleted - public ?object $custom = null, public ?string $type = null, // The type of event: "feeds.feed_group.deleted" in this case - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $fid = null, + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/FeedGroupResponse.php b/src/GeneratedModels/FeedGroupResponse.php index e9b8b56..895194d 100644 --- a/src/GeneratedModels/FeedGroupResponse.php +++ b/src/GeneratedModels/FeedGroupResponse.php @@ -3,43 +3,26 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $id - * @property \DateTime $updatedAt - * @property string|null $defaultVisibility - * @property \DateTime|null $deletedAt - * @property array|null $activityProcessors - * @property array|null $activitySelectors - * @property AggregationConfig|null $aggregation - * @property object|null $custom - * @property NotificationConfig|null $notification - * @property PushNotificationConfig|null $pushNotification - * @property RankingConfig|null $ranking - * @property StoriesConfig|null $stories - */ class FeedGroupResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // When the feed group was created + public ?AggregationConfig $aggregation = null, + public ?NotificationConfig $notification = null, + public ?PushNotificationConfig $pushNotification = null, + public ?RankingConfig $ranking = null, + public ?StoriesConfig $stories = null, public ?string $id = null, // Identifier within the group + public ?string $defaultVisibility = null, // Default visibility for activities. One of: public, visible, followers, members, private + public ?object $custom = null, // Custom data for the feed group + public ?\DateTime $createdAt = null, // When the feed group was created public ?\DateTime $updatedAt = null, // When the feed group was last updated - public ?string $defaultVisibility = null, // Default visibility for activities public ?\DateTime $deletedAt = null, - /** @var array|null Configuration for activity processors */ + /** @var array|null */ #[ArrayOf(ActivityProcessorConfig::class)] public ?array $activityProcessors = null, // Configuration for activity processors - /** @var array|null Configuration for activity selectors */ + /** @var array|null */ #[ArrayOf(ActivitySelectorConfigResponse::class)] public ?array $activitySelectors = null, // Configuration for activity selectors - public ?AggregationConfig $aggregation = null, - public ?object $custom = null, // Custom data for the feed group - public ?NotificationConfig $notification = null, - public ?PushNotificationConfig $pushNotification = null, - public ?RankingConfig $ranking = null, - public ?StoriesConfig $stories = null, ) { } diff --git a/src/GeneratedModels/FeedInput.php b/src/GeneratedModels/FeedInput.php index 9b3eb93..56cd670 100644 --- a/src/GeneratedModels/FeedInput.php +++ b/src/GeneratedModels/FeedInput.php @@ -3,27 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $description - * @property string|null $name - * @property string|null $visibility - * @property array|null $filterTags - * @property array|null $members - * @property object|null $custom - */ class FeedInput extends BaseModel { public function __construct( - public ?string $description = null, public ?string $name = null, + public ?string $description = null, public ?string $visibility = null, + public ?object $custom = null, public ?array $filterTags = null, /** @var array|null */ #[ArrayOf(FeedMemberRequest::class)] public ?array $members = null, - public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/FeedMemberAddedEvent.php b/src/GeneratedModels/FeedMemberAddedEvent.php index 6936182..a384357 100644 --- a/src/GeneratedModels/FeedMemberAddedEvent.php +++ b/src/GeneratedModels/FeedMemberAddedEvent.php @@ -5,27 +5,18 @@ namespace GetStream\GeneratedModels; /** * Emitted when a feed member is added. - * - * @property \DateTime $createdAt - * @property string $fid - * @property object $custom - * @property FeedMemberResponse $member - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class FeedMemberAddedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, - public ?object $custom = null, public ?FeedMemberResponse $member = null, + public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "feeds.feed_member.added" in this case - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, + public ?string $fid = null, + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/FeedMemberRemovedEvent.php b/src/GeneratedModels/FeedMemberRemovedEvent.php index 291e1c4..7d7c9b4 100644 --- a/src/GeneratedModels/FeedMemberRemovedEvent.php +++ b/src/GeneratedModels/FeedMemberRemovedEvent.php @@ -5,27 +5,18 @@ namespace GetStream\GeneratedModels; /** * Emitted when a feed member is removed. - * - * @property \DateTime $createdAt - * @property string $fid - * @property string $memberID - * @property object $custom - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class FeedMemberRemovedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, + public ?UserResponseCommonFields $user = null, public ?string $memberID = null, - public ?object $custom = null, public ?string $type = null, // The type of event: "feeds.feed_member.removed" in this case - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, + public ?string $fid = null, + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/FeedMemberRequest.php b/src/GeneratedModels/FeedMemberRequest.php index da07153..4191655 100644 --- a/src/GeneratedModels/FeedMemberRequest.php +++ b/src/GeneratedModels/FeedMemberRequest.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $userID - * @property bool|null $invite - * @property string|null $membershipLevel - * @property string|null $role - * @property object|null $custom - */ class FeedMemberRequest extends BaseModel { public function __construct( public ?string $userID = null, // ID of the user to add as a member - public ?bool $invite = null, // Whether this is an invite to become a member - public ?string $membershipLevel = null, // ID of the membership level to assign to the member public ?string $role = null, // Role of the member in the feed + public ?string $membershipLevel = null, // ID of the membership level to assign to the member public ?object $custom = null, // Custom data for the member + public ?bool $invite = null, // Whether this is an invite to become a member ) { } diff --git a/src/GeneratedModels/FeedMemberResponse.php b/src/GeneratedModels/FeedMemberResponse.php index 00d0de8..f9b8b0a 100644 --- a/src/GeneratedModels/FeedMemberResponse.php +++ b/src/GeneratedModels/FeedMemberResponse.php @@ -3,31 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $role - * @property string $status - * @property \DateTime $updatedAt - * @property UserResponse $user - * @property \DateTime|null $inviteAcceptedAt - * @property \DateTime|null $inviteRejectedAt - * @property object|null $custom - * @property MembershipLevelResponse|null $membershipLevel - */ class FeedMemberResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // When the membership was created - public ?string $role = null, // Role of the member in the feed - public ?string $status = null, // Status of the membership - public ?\DateTime $updatedAt = null, // When the membership was last updated + public ?MembershipLevelResponse $membershipLevel = null, public ?UserResponse $user = null, + public ?string $role = null, // Role of the member in the feed + public ?string $status = null, // Status of the membership. One of: member, pending, rejected public ?\DateTime $inviteAcceptedAt = null, // When the invite was accepted public ?\DateTime $inviteRejectedAt = null, // When the invite was rejected public ?object $custom = null, // Custom data for the membership - public ?MembershipLevelResponse $membershipLevel = null, + public ?\DateTime $createdAt = null, // When the membership was created + public ?\DateTime $updatedAt = null, // When the membership was last updated ) { } diff --git a/src/GeneratedModels/FeedMemberUpdatedEvent.php b/src/GeneratedModels/FeedMemberUpdatedEvent.php index 91168c2..0424315 100644 --- a/src/GeneratedModels/FeedMemberUpdatedEvent.php +++ b/src/GeneratedModels/FeedMemberUpdatedEvent.php @@ -5,27 +5,18 @@ namespace GetStream\GeneratedModels; /** * Emitted when a feed member is updated. - * - * @property \DateTime $createdAt - * @property string $fid - * @property object $custom - * @property FeedMemberResponse $member - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class FeedMemberUpdatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, - public ?object $custom = null, public ?FeedMemberResponse $member = null, + public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "feeds.feed_member.updated" in this case - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, + public ?string $fid = null, + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/FeedOwnData.php b/src/GeneratedModels/FeedOwnData.php index 7767a89..87a1516 100644 --- a/src/GeneratedModels/FeedOwnData.php +++ b/src/GeneratedModels/FeedOwnData.php @@ -3,27 +3,19 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $ownCapabilities - * @property array|null $ownFollowings - * @property array|null $ownFollows - * @property FeedMemberResponse|null $ownMembership - */ class FeedOwnData extends BaseModel { public function __construct( - /** @var array|null Capabilities the current user has for this feed */ - #[ArrayOf(FeedOwnCapability::class)] - public ?array $ownCapabilities = null, // Capabilities the current user has for this feed - /** @var array|null Follow relationships where the feed owner's feeds are following the current user's feeds (up to 5 total) */ - #[ArrayOf(FollowResponse::class)] - public ?array $ownFollowings = null, // Follow relationships where the feed owner's feeds are following the current user's feeds (up to 5 total) - /** @var array|null Follow relationships where the current user's feeds are following this feed */ + public ?FeedMemberResponse $ownMembership = null, + /** @var array|null */ #[ArrayOf(FollowResponse::class)] public ?array $ownFollows = null, // Follow relationships where the current user's feeds are following this feed - public ?FeedMemberResponse $ownMembership = null, + /** @var array|null */ + #[ArrayOf(FollowResponse::class)] + public ?array $ownFollowings = null, // Follow relationships where the feed owner's feeds are following the current user's feeds (up to 5 total) + /** @var array|null */ + #[ArrayOf(FeedOwnCapability::class)] + public ?array $ownCapabilities = null, // Capabilities the current user has for this feed ) { } diff --git a/src/GeneratedModels/FeedRequest.php b/src/GeneratedModels/FeedRequest.php index ff8a7ee..6614014 100644 --- a/src/GeneratedModels/FeedRequest.php +++ b/src/GeneratedModels/FeedRequest.php @@ -3,33 +3,20 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $feedGroupID - * @property string $feedID - * @property string|null $createdByID - * @property string|null $description - * @property string|null $name - * @property string|null $visibility - * @property array|null $filterTags - * @property array|null $members - * @property object|null $custom - */ class FeedRequest extends BaseModel { public function __construct( public ?string $feedGroupID = null, // ID of the feed group public ?string $feedID = null, // ID of the feed public ?string $createdByID = null, // ID of the feed creator - public ?string $description = null, // Description of the feed public ?string $name = null, // Name of the feed - public ?string $visibility = null, // Visibility setting for the feed + public ?string $description = null, // Description of the feed + public ?string $visibility = null, // Visibility setting for the feed. One of: public, visible, followers, members, private + public ?object $custom = null, // Custom data for the feed public ?array $filterTags = null, // Tags used for filtering feeds - /** @var array|null Initial members for the feed */ + /** @var array|null */ #[ArrayOf(FeedMemberRequest::class)] public ?array $members = null, // Initial members for the feed - public ?object $custom = null, // Custom data for the feed ) { } diff --git a/src/GeneratedModels/FeedResponse.php b/src/GeneratedModels/FeedResponse.php index 764d268..da7790b 100644 --- a/src/GeneratedModels/FeedResponse.php +++ b/src/GeneratedModels/FeedResponse.php @@ -3,61 +3,36 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $activityCount - * @property \DateTime $createdAt - * @property string $description - * @property string $feed - * @property int $followerCount - * @property int $followingCount - * @property string $groupID - * @property string $id - * @property int $memberCount - * @property string $name - * @property int $pinCount - * @property \DateTime $updatedAt - * @property UserResponse $createdBy - * @property \DateTime|null $deletedAt - * @property string|null $visibility - * @property array|null $filterTags - * @property array|null $ownCapabilities - * @property array|null $ownFollowings - * @property array|null $ownFollows - * @property object|null $custom - * @property FeedMemberResponse|null $ownMembership - */ class FeedResponse extends BaseModel { public function __construct( - public ?int $activityCount = null, - public ?\DateTime $createdAt = null, // When the feed was created - public ?string $description = null, // Description of the feed - public ?string $feed = null, // Fully qualified feed ID (group_id:id) - public ?int $followerCount = null, // Number of followers of this feed - public ?int $followingCount = null, // Number of feeds this feed follows + public ?UserResponse $createdBy = null, + public ?FeedMemberResponse $ownMembership = null, public ?string $groupID = null, // Group this feed belongs to public ?string $id = null, // Unique identifier for the feed - public ?int $memberCount = null, // Number of members in this feed + public ?string $feed = null, // Fully qualified feed ID (group_id:id) public ?string $name = null, // Name of the feed - public ?int $pinCount = null, // Number of pinned activities in this feed - public ?\DateTime $updatedAt = null, // When the feed was last updated - public ?UserResponse $createdBy = null, - public ?\DateTime $deletedAt = null, // When the feed was deleted - public ?string $visibility = null, // Visibility setting for the feed + public ?string $description = null, // Description of the feed + public ?object $custom = null, // Custom data for the feed public ?array $filterTags = null, // Tags used for filtering feeds - /** @var array|null Capabilities the current user has for this feed */ - #[ArrayOf(FeedOwnCapability::class)] - public ?array $ownCapabilities = null, // Capabilities the current user has for this feed - /** @var array|null Follow relationships where the feed owner’s feeds are following the current user's feeds */ - #[ArrayOf(FollowResponse::class)] - public ?array $ownFollowings = null, // Follow relationships where the feed owner’s feeds are following the current user's feeds - /** @var array|null Follow relationships where the current user's feeds are following this feed */ + public ?string $visibility = null, // Visibility setting for the feed + public ?int $memberCount = null, // Number of members in this feed + public ?int $followerCount = null, // Number of followers of this feed + public ?int $followingCount = null, // Number of feeds this feed follows + public ?int $activityCount = null, + public ?int $pinCount = null, // Number of pinned activities in this feed + /** @var array|null */ #[ArrayOf(FollowResponse::class)] public ?array $ownFollows = null, // Follow relationships where the current user's feeds are following this feed - public ?object $custom = null, // Custom data for the feed - public ?FeedMemberResponse $ownMembership = null, + /** @var array|null */ + #[ArrayOf(FollowResponse::class)] + public ?array $ownFollowings = null, // Follow relationships where the feed owner’s feeds are following the current user's feeds + /** @var array|null */ + #[ArrayOf(FeedOwnCapability::class)] + public ?array $ownCapabilities = null, // Capabilities the current user has for this feed + public ?\DateTime $createdAt = null, // When the feed was created + public ?\DateTime $updatedAt = null, // When the feed was last updated + public ?\DateTime $deletedAt = null, // When the feed was deleted ) { } diff --git a/src/GeneratedModels/FeedSuggestionResponse.php b/src/GeneratedModels/FeedSuggestionResponse.php index 4720964..b9ce264 100644 --- a/src/GeneratedModels/FeedSuggestionResponse.php +++ b/src/GeneratedModels/FeedSuggestionResponse.php @@ -3,67 +3,39 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $activityCount - * @property \DateTime $createdAt - * @property string $description - * @property string $feed - * @property int $followerCount - * @property int $followingCount - * @property string $groupID - * @property string $id - * @property int $memberCount - * @property string $name - * @property int $pinCount - * @property \DateTime $updatedAt - * @property UserResponse $createdBy - * @property \DateTime|null $deletedAt - * @property string|null $reason - * @property int|null $recommendationScore - * @property string|null $visibility - * @property array|null $filterTags - * @property array|null $ownCapabilities - * @property array|null $ownFollowings - * @property array|null $ownFollows - * @property array|null $algorithmScores - * @property object|null $custom - * @property FeedMemberResponse|null $ownMembership - */ class FeedSuggestionResponse extends BaseModel { public function __construct( - public ?int $activityCount = null, - public ?\DateTime $createdAt = null, // When the feed was created - public ?string $description = null, // Description of the feed - public ?string $feed = null, // Fully qualified feed ID (group_id:id) - public ?int $followerCount = null, // Number of followers of this feed - public ?int $followingCount = null, // Number of feeds this feed follows + public ?UserResponse $createdBy = null, + public ?FeedMemberResponse $ownMembership = null, public ?string $groupID = null, // Group this feed belongs to public ?string $id = null, // Unique identifier for the feed - public ?int $memberCount = null, // Number of members in this feed + public ?string $feed = null, // Fully qualified feed ID (group_id:id) public ?string $name = null, // Name of the feed + public ?string $description = null, // Description of the feed + public ?object $custom = null, // Custom data for the feed + public ?array $filterTags = null, // Tags used for filtering feeds + public ?string $visibility = null, // Visibility setting for the feed + public ?int $memberCount = null, // Number of members in this feed + public ?int $followerCount = null, // Number of followers of this feed + public ?int $followingCount = null, // Number of feeds this feed follows + public ?int $activityCount = null, public ?int $pinCount = null, // Number of pinned activities in this feed + /** @var array|null */ + #[ArrayOf(FollowResponse::class)] + public ?array $ownFollows = null, // Follow relationships where the current user's feeds are following this feed + /** @var array|null */ + #[ArrayOf(FollowResponse::class)] + public ?array $ownFollowings = null, // Follow relationships where the feed owner’s feeds are following the current user's feeds + /** @var array|null */ + #[ArrayOf(FeedOwnCapability::class)] + public ?array $ownCapabilities = null, // Capabilities the current user has for this feed + public ?\DateTime $createdAt = null, // When the feed was created public ?\DateTime $updatedAt = null, // When the feed was last updated - public ?UserResponse $createdBy = null, public ?\DateTime $deletedAt = null, // When the feed was deleted - public ?string $reason = null, public ?int $recommendationScore = null, - public ?string $visibility = null, // Visibility setting for the feed - public ?array $filterTags = null, // Tags used for filtering feeds - /** @var array|null Capabilities the current user has for this feed */ - #[ArrayOf(FeedOwnCapability::class)] - public ?array $ownCapabilities = null, // Capabilities the current user has for this feed - /** @var array|null Follow relationships where the feed owner’s feeds are following the current user's feeds */ - #[ArrayOf(FollowResponse::class)] - public ?array $ownFollowings = null, // Follow relationships where the feed owner’s feeds are following the current user's feeds - /** @var array|null Follow relationships where the current user's feeds are following this feed */ - #[ArrayOf(FollowResponse::class)] - public ?array $ownFollows = null, // Follow relationships where the current user's feeds are following this feed + public ?string $reason = null, public ?array $algorithmScores = null, - public ?object $custom = null, // Custom data for the feed - public ?FeedMemberResponse $ownMembership = null, ) { } diff --git a/src/GeneratedModels/FeedUpdatedEvent.php b/src/GeneratedModels/FeedUpdatedEvent.php index 89c7270..b3df2e4 100644 --- a/src/GeneratedModels/FeedUpdatedEvent.php +++ b/src/GeneratedModels/FeedUpdatedEvent.php @@ -5,27 +5,18 @@ namespace GetStream\GeneratedModels; /** * Emitted when a feed is created. - * - * @property \DateTime $createdAt - * @property string $fid - * @property object $custom - * @property FeedResponse $feed - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt - * @property UserResponseCommonFields|null $user */ class FeedUpdatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?string $fid = null, - public ?object $custom = null, public ?FeedResponse $feed = null, + public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "feeds.feed.updated" in this case - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, - public ?UserResponseCommonFields $user = null, + public ?object $custom = null, + public ?string $fid = null, + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/FeedViewResponse.php b/src/GeneratedModels/FeedViewResponse.php index 72be517..f29833a 100644 --- a/src/GeneratedModels/FeedViewResponse.php +++ b/src/GeneratedModels/FeedViewResponse.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property \DateTime|null $lastUsedAt - * @property array|null $activitySelectors - * @property AggregationConfig|null $aggregation - * @property RankingConfig|null $ranking - */ class FeedViewResponse extends BaseModel { public function __construct( + public ?AggregationConfig $aggregation = null, + public ?RankingConfig $ranking = null, public ?string $id = null, // Unique identifier for the custom feed view - public ?\DateTime $lastUsedAt = null, // When the feed view was last used - /** @var array|null Configured activity selectors */ + /** @var array|null */ #[ArrayOf(ActivitySelectorConfigResponse::class)] public ?array $activitySelectors = null, // Configured activity selectors - public ?AggregationConfig $aggregation = null, - public ?RankingConfig $ranking = null, + public ?\DateTime $lastUsedAt = null, // When the feed view was last used ) { } diff --git a/src/GeneratedModels/FeedVisibilityResponse.php b/src/GeneratedModels/FeedVisibilityResponse.php index 653a785..ce8ea7f 100644 --- a/src/GeneratedModels/FeedVisibilityResponse.php +++ b/src/GeneratedModels/FeedVisibilityResponse.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $name - * @property array $permissions - * @property array $grants - */ class FeedVisibilityResponse extends BaseModel { public function __construct( public ?string $name = null, // Name of the feed visibility level - /** @var array|null List of permission policies */ + public ?array $grants = null, // Permission grants for each role + /** @var array|null */ #[ArrayOf(Permission::class)] public ?array $permissions = null, // List of permission policies - public ?array $grants = null, // Permission grants for each role ) { } diff --git a/src/GeneratedModels/FeedsModerationTemplateConfigPayload.php b/src/GeneratedModels/FeedsModerationTemplateConfigPayload.php new file mode 100644 index 0000000..9e25e5b --- /dev/null +++ b/src/GeneratedModels/FeedsModerationTemplateConfigPayload.php @@ -0,0 +1,19 @@ +|null */ + #[ArrayOf(LabelResponse::class)] + public ?array $labels = null, + ) { + } + + // BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types! + // Use #[JsonKey('user_id')] to override field names if needed. +} diff --git a/src/GeneratedModels/FlagMessageDetailsResponse.php b/src/GeneratedModels/FlagMessageDetailsResponse.php new file mode 100644 index 0000000..a828c32 --- /dev/null +++ b/src/GeneratedModels/FlagMessageDetailsResponse.php @@ -0,0 +1,18 @@ + $follows - */ class FollowBatchRequest extends BaseModel { public function __construct( - /** @var array|null List of follow relationships to create */ + /** @var array|null */ #[ArrayOf(FollowRequest::class)] public ?array $follows = null, // List of follow relationships to create ) { diff --git a/src/GeneratedModels/FollowBatchResponse.php b/src/GeneratedModels/FollowBatchResponse.php index 1c84377..b76b3b7 100644 --- a/src/GeneratedModels/FollowBatchResponse.php +++ b/src/GeneratedModels/FollowBatchResponse.php @@ -3,23 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $created - * @property array $follows - */ class FollowBatchResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of newly created follow relationships */ - #[ArrayOf(FollowResponse::class)] - public ?array $created = null, // List of newly created follow relationships - /** @var array|null List of current follow relationships */ + /** @var array|null */ #[ArrayOf(FollowResponse::class)] public ?array $follows = null, // List of current follow relationships + /** @var array|null */ + #[ArrayOf(FollowResponse::class)] + public ?array $created = null, // List of newly created follow relationships + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/FollowCreatedEvent.php b/src/GeneratedModels/FollowCreatedEvent.php index 0be9db0..66567f3 100644 --- a/src/GeneratedModels/FollowCreatedEvent.php +++ b/src/GeneratedModels/FollowCreatedEvent.php @@ -5,25 +5,17 @@ namespace GetStream\GeneratedModels; /** * Emitted when a feed follows another feed. - * - * @property \DateTime $createdAt - * @property string $fid - * @property object $custom - * @property FollowResponse $follow - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt */ class FollowCreatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, - public ?object $custom = null, public ?FollowResponse $follow = null, public ?string $type = null, // The type of event: "feeds.follow.created" in this case - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $fid = null, + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/FollowDeletedEvent.php b/src/GeneratedModels/FollowDeletedEvent.php index a89226f..c51f2af 100644 --- a/src/GeneratedModels/FollowDeletedEvent.php +++ b/src/GeneratedModels/FollowDeletedEvent.php @@ -5,25 +5,17 @@ namespace GetStream\GeneratedModels; /** * Emitted when a feed unfollows another feed. - * - * @property \DateTime $createdAt - * @property string $fid - * @property object $custom - * @property FollowResponse $follow - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt */ class FollowDeletedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, - public ?object $custom = null, public ?FollowResponse $follow = null, public ?string $type = null, // The type of event: "feeds.follow.deleted" in this case - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $fid = null, + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/FollowPair.php b/src/GeneratedModels/FollowPair.php index d5ab567..ecc61de 100644 --- a/src/GeneratedModels/FollowPair.php +++ b/src/GeneratedModels/FollowPair.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $source - * @property string $target - */ class FollowPair extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/FollowRequest.php b/src/GeneratedModels/FollowRequest.php index 75a927e..36a1cd8 100644 --- a/src/GeneratedModels/FollowRequest.php +++ b/src/GeneratedModels/FollowRequest.php @@ -3,27 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $source - * @property string $target - * @property bool|null $createNotificationActivity - * @property string|null $pushPreference - * @property bool|null $skipPush - * @property string|null $status - * @property object|null $custom - */ class FollowRequest extends BaseModel { public function __construct( public ?string $source = null, // Fully qualified ID of the source feed public ?string $target = null, // Fully qualified ID of the target feed - public ?bool $createNotificationActivity = null, // Whether to create a notification activity for this follow + public ?object $custom = null, // Custom data for the follow relationship public ?string $pushPreference = null, // Push preference for the follow relationship + public ?bool $createNotificationActivity = null, // Whether to create a notification activity for this follow + public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) public ?bool $skipPush = null, // Whether to skip push for this follow - public ?string $status = null, // Status of the follow relationship - public ?object $custom = null, // Custom data for the follow relationship + public ?string $status = null, // Status of the follow relationship. One of: accepted, pending, rejected ) { } diff --git a/src/GeneratedModels/FollowResponse.php b/src/GeneratedModels/FollowResponse.php index a205645..f44c922 100644 --- a/src/GeneratedModels/FollowResponse.php +++ b/src/GeneratedModels/FollowResponse.php @@ -3,33 +3,19 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $followerRole - * @property string $pushPreference - * @property string $status - * @property \DateTime $updatedAt - * @property FeedResponse $sourceFeed - * @property FeedResponse $targetFeed - * @property \DateTime|null $requestAcceptedAt - * @property \DateTime|null $requestRejectedAt - * @property object|null $custom - */ class FollowResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // When the follow relationship was created - public ?string $followerRole = null, // Role of the follower (source user) in the follow relationship - public ?string $pushPreference = null, // Push preference for notifications - public ?string $status = null, // Status of the follow relationship - public ?\DateTime $updatedAt = null, // When the follow relationship was last updated public ?FeedResponse $sourceFeed = null, public ?FeedResponse $targetFeed = null, + public ?string $pushPreference = null, // Push preference for notifications. One of: all, none + public ?object $custom = null, // Custom data for the follow relationship public ?\DateTime $requestAcceptedAt = null, // When the follow request was accepted public ?\DateTime $requestRejectedAt = null, // When the follow request was rejected - public ?object $custom = null, // Custom data for the follow relationship + public ?string $status = null, // Status of the follow relationship. One of: accepted, pending, rejected + public ?string $followerRole = null, // Role of the follower (source user) in the follow relationship + public ?\DateTime $createdAt = null, // When the follow relationship was created + public ?\DateTime $updatedAt = null, // When the follow relationship was last updated ) { } diff --git a/src/GeneratedModels/FollowUpdatedEvent.php b/src/GeneratedModels/FollowUpdatedEvent.php index b2de062..2d2af1b 100644 --- a/src/GeneratedModels/FollowUpdatedEvent.php +++ b/src/GeneratedModels/FollowUpdatedEvent.php @@ -5,25 +5,17 @@ namespace GetStream\GeneratedModels; /** * Emitted when a follow relationship is updated. - * - * @property \DateTime $createdAt - * @property string $fid - * @property object $custom - * @property FollowResponse $follow - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt */ class FollowUpdatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, - public ?object $custom = null, public ?FollowResponse $follow = null, public ?string $type = null, // The type of event: "feeds.follow.updated" in this case - public ?string $feedVisibility = null, + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $fid = null, + public ?string $feedVisibility = null, ) { } diff --git a/src/GeneratedModels/FrameRecordSettings.php b/src/GeneratedModels/FrameRecordSettings.php index 035745a..5f1878a 100644 --- a/src/GeneratedModels/FrameRecordSettings.php +++ b/src/GeneratedModels/FrameRecordSettings.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $captureIntervalInSeconds - * @property string $mode - * @property string|null $quality - */ class FrameRecordSettings extends BaseModel { public function __construct( - public ?int $captureIntervalInSeconds = null, public ?string $mode = null, public ?string $quality = null, + public ?int $captureIntervalInSeconds = null, ) { } diff --git a/src/GeneratedModels/FrameRecordingResponse.php b/src/GeneratedModels/FrameRecordingResponse.php index cad67de..6b6dec0 100644 --- a/src/GeneratedModels/FrameRecordingResponse.php +++ b/src/GeneratedModels/FrameRecordingResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $status - */ class FrameRecordingResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/FrameRecordingSettingsRequest.php b/src/GeneratedModels/FrameRecordingSettingsRequest.php index 9dee147..a5490a8 100644 --- a/src/GeneratedModels/FrameRecordingSettingsRequest.php +++ b/src/GeneratedModels/FrameRecordingSettingsRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $captureIntervalInSeconds - * @property string $mode - * @property string|null $quality - */ class FrameRecordingSettingsRequest extends BaseModel { public function __construct( - public ?int $captureIntervalInSeconds = null, public ?string $mode = null, public ?string $quality = null, + public ?int $captureIntervalInSeconds = null, ) { } diff --git a/src/GeneratedModels/FrameRecordingSettingsResponse.php b/src/GeneratedModels/FrameRecordingSettingsResponse.php index 8ae2cd0..fa712db 100644 --- a/src/GeneratedModels/FrameRecordingSettingsResponse.php +++ b/src/GeneratedModels/FrameRecordingSettingsResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $captureIntervalInSeconds - * @property string $mode - * @property string|null $quality - */ class FrameRecordingSettingsResponse extends BaseModel { public function __construct( - public ?int $captureIntervalInSeconds = null, public ?string $mode = null, public ?string $quality = null, + public ?int $captureIntervalInSeconds = null, ) { } diff --git a/src/GeneratedModels/FriendReactionsOptions.php b/src/GeneratedModels/FriendReactionsOptions.php new file mode 100644 index 0000000..e751785 --- /dev/null +++ b/src/GeneratedModels/FriendReactionsOptions.php @@ -0,0 +1,20 @@ + $channelMutes - * @property array $devices - * @property array $mutes - * @property array $teams - * @property object $custom - * @property int|null $avgResponseTime - * @property \DateTime|null $banExpires - * @property \DateTime|null $deactivatedAt - * @property \DateTime|null $deletedAt - * @property string|null $image - * @property \DateTime|null $lastActive - * @property string|null $name - * @property \DateTime|null $revokeTokensIssuedBefore - * @property array|null $latestHiddenChannels - * @property PrivacySettingsResponse|null $privacySettings - * @property array|null $teamsRole - */ class FullUserResponse extends BaseModel { public function __construct( - public ?bool $banned = null, - public ?\DateTime $createdAt = null, + public ?PrivacySettingsResponse $privacySettings = null, public ?string $id = null, - public ?bool $invisible = null, + public ?string $name = null, + public ?string $image = null, + public ?object $custom = null, public ?string $language = null, - public ?bool $online = null, public ?string $role = null, - public ?bool $shadowBanned = null, - public ?int $totalUnreadCount = null, - public ?int $unreadChannels = null, - public ?int $unreadCount = null, - public ?int $unreadThreads = null, + public ?array $teams = null, + public ?array $teamsRole = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, - public ?array $blockedUserIds = null, - /** @var array|null */ - #[ArrayOf(ChannelMute::class)] - public ?array $channelMutes = null, + public ?\DateTime $deletedAt = null, + public ?bool $banned = null, + public ?bool $online = null, + public ?\DateTime $lastActive = null, + public ?\DateTime $revokeTokensIssuedBefore = null, + public ?\DateTime $deactivatedAt = null, + public ?int $avgResponseTime = null, /** @var array|null */ #[ArrayOf(DeviceResponse::class)] public ?array $devices = null, + public ?bool $invisible = null, /** @var array|null */ #[ArrayOf(UserMuteResponse::class)] public ?array $mutes = null, - public ?array $teams = null, - public ?object $custom = null, - public ?int $avgResponseTime = null, - public ?\DateTime $banExpires = null, - public ?\DateTime $deactivatedAt = null, - public ?\DateTime $deletedAt = null, - public ?string $image = null, - public ?\DateTime $lastActive = null, - public ?string $name = null, - public ?\DateTime $revokeTokensIssuedBefore = null, + /** @var array|null */ + #[ArrayOf(ChannelMute::class)] + public ?array $channelMutes = null, + public ?int $unreadCount = null, + public ?int $totalUnreadCount = null, + public ?int $unreadChannels = null, + public ?int $unreadThreads = null, public ?array $latestHiddenChannels = null, - public ?PrivacySettingsResponse $privacySettings = null, - public ?array $teamsRole = null, + public ?bool $shadowBanned = null, + public ?array $blockedUserIds = null, + public ?\DateTime $banExpires = null, ) { } diff --git a/src/GeneratedModels/FutureChannelBanResponse.php b/src/GeneratedModels/FutureChannelBanResponse.php index c4d9334..632f618 100644 --- a/src/GeneratedModels/FutureChannelBanResponse.php +++ b/src/GeneratedModels/FutureChannelBanResponse.php @@ -3,25 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property \DateTime|null $expires - * @property string|null $reason - * @property bool|null $shadow - * @property UserResponse|null $bannedBy - * @property UserResponse|null $user - */ class FutureChannelBanResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, + public ?UserResponse $bannedBy = null, + public ?UserResponse $user = null, public ?\DateTime $expires = null, public ?string $reason = null, public ?bool $shadow = null, - public ?UserResponse $bannedBy = null, - public ?UserResponse $user = null, + public ?\DateTime $createdAt = null, ) { } diff --git a/src/GeneratedModels/GeofenceResponse.php b/src/GeneratedModels/GeofenceResponse.php index ebf5601..4118ceb 100644 --- a/src/GeneratedModels/GeofenceResponse.php +++ b/src/GeneratedModels/GeofenceResponse.php @@ -3,20 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $name - * @property string|null $description - * @property string|null $type - * @property array|null $countryCodes - */ class GeofenceResponse extends BaseModel { public function __construct( public ?string $name = null, - public ?string $description = null, public ?string $type = null, + public ?string $description = null, public ?array $countryCodes = null, ) { } diff --git a/src/GeneratedModels/GeofenceSettings.php b/src/GeneratedModels/GeofenceSettings.php index 1b79bdd..3672ddf 100644 --- a/src/GeneratedModels/GeofenceSettings.php +++ b/src/GeneratedModels/GeofenceSettings.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $names - */ class GeofenceSettings extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/GeofenceSettingsRequest.php b/src/GeneratedModels/GeofenceSettingsRequest.php index 4dc2c3f..7ee8f54 100644 --- a/src/GeneratedModels/GeofenceSettingsRequest.php +++ b/src/GeneratedModels/GeofenceSettingsRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $names - */ class GeofenceSettingsRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/GeofenceSettingsResponse.php b/src/GeneratedModels/GeofenceSettingsResponse.php index d1366f9..546e1b6 100644 --- a/src/GeneratedModels/GeofenceSettingsResponse.php +++ b/src/GeneratedModels/GeofenceSettingsResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $names - */ class GeofenceSettingsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/GetActiveCallsStatusResponse.php b/src/GeneratedModels/GetActiveCallsStatusResponse.php index 20629ae..980b463 100644 --- a/src/GeneratedModels/GetActiveCallsStatusResponse.php +++ b/src/GeneratedModels/GetActiveCallsStatusResponse.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * Response containing active calls status information - * - * @property string $duration - * @property \DateTime $endTime - * @property \DateTime $startTime - * @property ActiveCallsMetrics|null $metrics - * @property ActiveCallsSummary|null $summary */ class GetActiveCallsStatusResponse extends BaseModel { public function __construct( - public ?string $duration = null, - public ?\DateTime $endTime = null, // End time of the status period - public ?\DateTime $startTime = null, // Start time of the status period public ?ActiveCallsMetrics $metrics = null, public ?ActiveCallsSummary $summary = null, + public ?string $duration = null, + public ?\DateTime $startTime = null, // Start time of the status period + public ?\DateTime $endTime = null, // End time of the status period ) { } diff --git a/src/GeneratedModels/GetActivityResponse.php b/src/GeneratedModels/GetActivityResponse.php index 6f48b2d..34d647c 100644 --- a/src/GeneratedModels/GetActivityResponse.php +++ b/src/GeneratedModels/GetActivityResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ActivityResponse $activity - */ class GetActivityResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?ActivityResponse $activity = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetAppealResponse.php b/src/GeneratedModels/GetAppealResponse.php index 073480d..23443ff 100644 --- a/src/GeneratedModels/GetAppealResponse.php +++ b/src/GeneratedModels/GetAppealResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property AppealItemResponse|null $item - */ class GetAppealResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?AppealItemResponse $item = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetApplicationResponse.php b/src/GeneratedModels/GetApplicationResponse.php index 944ba44..4f5a3c8 100644 --- a/src/GeneratedModels/GetApplicationResponse.php +++ b/src/GeneratedModels/GetApplicationResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property AppResponseFields $app */ class GetApplicationResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?AppResponseFields $app = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetBlockListResponse.php b/src/GeneratedModels/GetBlockListResponse.php index a5cb2a6..78b5260 100644 --- a/src/GeneratedModels/GetBlockListResponse.php +++ b/src/GeneratedModels/GetBlockListResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Response for get block list - * - * @property string $duration - * @property BlockListResponse|null $blocklist */ class GetBlockListResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?BlockListResponse $blocklist = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetBlockedUsersResponse.php b/src/GeneratedModels/GetBlockedUsersResponse.php index 11f6ea7..3056cfd 100644 --- a/src/GeneratedModels/GetBlockedUsersResponse.php +++ b/src/GeneratedModels/GetBlockedUsersResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $blocks - */ class GetBlockedUsersResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null Array of blocked user object */ + /** @var array|null */ #[ArrayOf(BlockedUserResponse::class)] public ?array $blocks = null, // Array of blocked user object + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetCallParticipantSessionMetricsResponse.php b/src/GeneratedModels/GetCallParticipantSessionMetricsResponse.php index 4556ca7..308bbd4 100644 --- a/src/GeneratedModels/GetCallParticipantSessionMetricsResponse.php +++ b/src/GeneratedModels/GetCallParticipantSessionMetricsResponse.php @@ -5,31 +5,21 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property bool|null $isPublisher - * @property bool|null $isSubscriber - * @property \DateTime|null $joinedAt - * @property string|null $publisherType - * @property string|null $userID - * @property string|null $userSessionID - * @property array|null $publishedTracks - * @property SessionClient|null $client */ class GetCallParticipantSessionMetricsResponse extends BaseModel { public function __construct( + public ?SessionClient $client = null, public ?string $duration = null, // Duration of the request in milliseconds - public ?bool $isPublisher = null, - public ?bool $isSubscriber = null, - public ?\DateTime $joinedAt = null, - public ?string $publisherType = null, public ?string $userID = null, public ?string $userSessionID = null, + public ?string $publisherType = null, + public ?\DateTime $joinedAt = null, + public ?bool $isPublisher = null, + public ?bool $isSubscriber = null, /** @var array|null */ #[ArrayOf(PublishedTrackMetrics::class)] public ?array $publishedTracks = null, - public ?SessionClient $client = null, ) { } diff --git a/src/GeneratedModels/GetCallReportResponse.php b/src/GeneratedModels/GetCallReportResponse.php index acf387e..a5d4e0b 100644 --- a/src/GeneratedModels/GetCallReportResponse.php +++ b/src/GeneratedModels/GetCallReportResponse.php @@ -5,25 +5,18 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property string $sessionID - * @property ReportResponse $report - * @property array|null $videoReactions - * @property ChatActivityStatsResponse|null $chatActivity - * @property CallSessionResponse|null $session */ class GetCallReportResponse extends BaseModel { public function __construct( + public ?ChatActivityStatsResponse $chatActivity = null, + public ?ReportResponse $report = null, + public ?CallSessionResponse $session = null, public ?string $duration = null, // Duration of the request in milliseconds public ?string $sessionID = null, - public ?ReportResponse $report = null, /** @var array|null */ #[ArrayOf(VideoReactionsResponse::class)] public ?array $videoReactions = null, - public ?ChatActivityStatsResponse $chatActivity = null, - public ?CallSessionResponse $session = null, ) { } diff --git a/src/GeneratedModels/GetCallResponse.php b/src/GeneratedModels/GetCallResponse.php index 326dee9..f3483b8 100644 --- a/src/GeneratedModels/GetCallResponse.php +++ b/src/GeneratedModels/GetCallResponse.php @@ -3,25 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $members - * @property array $ownCapabilities - * @property CallResponse $call - */ class GetCallResponse extends BaseModel { public function __construct( - public ?string $duration = null, + public ?CallResponse $call = null, /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, /** @var array|null */ #[ArrayOf(OwnCapability::class)] public ?array $ownCapabilities = null, - public ?CallResponse $call = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetCallSessionParticipantStatsDetailsResponse.php b/src/GeneratedModels/GetCallSessionParticipantStatsDetailsResponse.php index 6086541..6fa113a 100644 --- a/src/GeneratedModels/GetCallSessionParticipantStatsDetailsResponse.php +++ b/src/GeneratedModels/GetCallSessionParticipantStatsDetailsResponse.php @@ -5,31 +5,20 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $callID - * @property string $callSessionID - * @property string $callType - * @property string $duration - * @property string $userID - * @property string $userSessionID - * @property ParticipantSeriesPublisherStats|null $publisher - * @property ParticipantSeriesSubscriberStats|null $subscriber - * @property ParticipantSeriesTimeframe|null $timeframe - * @property ParticipantSeriesUserStats|null $user */ class GetCallSessionParticipantStatsDetailsResponse extends BaseModel { public function __construct( - public ?string $callID = null, - public ?string $callSessionID = null, - public ?string $callType = null, - public ?string $duration = null, // Duration of the request in milliseconds - public ?string $userID = null, - public ?string $userSessionID = null, public ?ParticipantSeriesPublisherStats $publisher = null, public ?ParticipantSeriesSubscriberStats $subscriber = null, public ?ParticipantSeriesTimeframe $timeframe = null, public ?ParticipantSeriesUserStats $user = null, + public ?string $duration = null, // Duration of the request in milliseconds + public ?string $callType = null, + public ?string $callID = null, + public ?string $callSessionID = null, + public ?string $userID = null, + public ?string $userSessionID = null, ) { } diff --git a/src/GeneratedModels/GetCallTypeResponse.php b/src/GeneratedModels/GetCallTypeResponse.php index 672bd74..d7ec992 100644 --- a/src/GeneratedModels/GetCallTypeResponse.php +++ b/src/GeneratedModels/GetCallTypeResponse.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $duration - * @property string $name - * @property \DateTime $updatedAt - * @property array $grants - * @property NotificationSettings $notificationSettings - * @property CallSettingsResponse $settings - * @property string|null $externalStorage - */ class GetCallTypeResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?string $duration = null, + public ?NotificationSettingsResponse $notificationSettings = null, + public ?CallSettingsResponse $settings = null, public ?string $name = null, - public ?\DateTime $updatedAt = null, public ?array $grants = null, - public ?NotificationSettings $notificationSettings = null, - public ?CallSettingsResponse $settings = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, public ?string $externalStorage = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetCampaignResponse.php b/src/GeneratedModels/GetCampaignResponse.php index 3ba3f11..673253e 100644 --- a/src/GeneratedModels/GetCampaignResponse.php +++ b/src/GeneratedModels/GetCampaignResponse.php @@ -5,17 +5,13 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property CampaignResponse|null $campaign - * @property PagerResponse|null $users */ class GetCampaignResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?CampaignResponse $campaign = null, public ?PagerResponse $users = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetChannelTypeResponse.php b/src/GeneratedModels/GetChannelTypeResponse.php index 170a772..c992891 100644 --- a/src/GeneratedModels/GetChannelTypeResponse.php +++ b/src/GeneratedModels/GetChannelTypeResponse.php @@ -5,91 +5,54 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $automod - * @property string $automodBehavior - * @property bool $connectEvents - * @property bool $countMessages - * @property \DateTime $createdAt - * @property bool $customEvents - * @property bool $deliveryEvents - * @property string $duration - * @property bool $markMessagesPending - * @property int $maxMessageLength - * @property bool $mutes - * @property string $name - * @property bool $polls - * @property bool $pushNotifications - * @property bool $quotes - * @property bool $reactions - * @property bool $readEvents - * @property bool $reminders - * @property bool $replies - * @property bool $search - * @property bool $sharedLocations - * @property bool $skipLastMsgUpdateForSystemMsgs - * @property bool $typingEvents - * @property \DateTime $updatedAt - * @property bool $uploads - * @property bool $urlEnrichment - * @property bool $userMessageReminders - * @property array $commands - * @property array $permissions - * @property array $grants - * @property string|null $blocklist - * @property string|null $blocklistBehavior - * @property int|null $partitionSize - * @property string|null $partitionTtl - * @property array|null $allowedFlagReasons - * @property array|null $blocklists - * @property Thresholds|null $automodThresholds */ class GetChannelTypeResponse extends BaseModel { public function __construct( - public ?string $automod = null, - public ?string $automodBehavior = null, - public ?bool $connectEvents = null, - public ?bool $countMessages = null, + public ?Thresholds $automodThresholds = null, + /** @var array|null */ + #[ArrayOf(PolicyRequest::class)] + public ?array $permissions = null, + public ?array $grants = null, public ?\DateTime $createdAt = null, - public ?bool $customEvents = null, - public ?bool $deliveryEvents = null, - public ?string $duration = null, // Duration of the request in milliseconds - public ?bool $markMessagesPending = null, - public ?int $maxMessageLength = null, - public ?bool $mutes = null, + public ?\DateTime $updatedAt = null, public ?string $name = null, - public ?bool $polls = null, - public ?bool $pushNotifications = null, - public ?bool $quotes = null, - public ?bool $reactions = null, + public ?bool $typingEvents = null, public ?bool $readEvents = null, - public ?bool $reminders = null, - public ?bool $replies = null, + public ?bool $connectEvents = null, + public ?bool $deliveryEvents = null, public ?bool $search = null, - public ?bool $sharedLocations = null, - public ?bool $skipLastMsgUpdateForSystemMsgs = null, - public ?bool $typingEvents = null, - public ?\DateTime $updatedAt = null, + public ?bool $reactions = null, + public ?bool $replies = null, + public ?bool $quotes = null, + public ?bool $mutes = null, public ?bool $uploads = null, public ?bool $urlEnrichment = null, + public ?bool $customEvents = null, + public ?bool $pushNotifications = null, + public ?bool $reminders = null, + public ?bool $markMessagesPending = null, + public ?bool $polls = null, public ?bool $userMessageReminders = null, - /** @var array|null */ - #[ArrayOf(Command::class)] - public ?array $commands = null, - /** @var array|null */ - #[ArrayOf(PolicyRequest::class)] - public ?array $permissions = null, - public ?array $grants = null, + public ?bool $sharedLocations = null, + public ?bool $countMessages = null, + public ?int $maxMessageLength = null, + public ?string $automod = null, + public ?string $automodBehavior = null, public ?string $blocklist = null, public ?string $blocklistBehavior = null, - public ?int $partitionSize = null, - public ?string $partitionTtl = null, - public ?array $allowedFlagReasons = null, /** @var array|null */ #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, - public ?Thresholds $automodThresholds = null, + public ?array $allowedFlagReasons = null, + public ?int $partitionSize = null, + public ?string $partitionTtl = null, + public ?bool $skipLastMsgUpdateForSystemMsgs = null, + public ?string $pushLevel = null, + /** @var array|null */ + #[ArrayOf(Command::class)] + public ?array $commands = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetCommandResponse.php b/src/GeneratedModels/GetCommandResponse.php index 8430bfa..7e76f56 100644 --- a/src/GeneratedModels/GetCommandResponse.php +++ b/src/GeneratedModels/GetCommandResponse.php @@ -3,27 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $args - * @property string $description - * @property string $duration - * @property string $name - * @property string $set - * @property \DateTime|null $createdAt - * @property \DateTime|null $updatedAt - */ class GetCommandResponse extends BaseModel { public function __construct( - public ?string $args = null, - public ?string $description = null, - public ?string $duration = null, - public ?string $name = null, - public ?string $set = null, public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, + public ?string $name = null, + public ?string $description = null, + public ?string $args = null, + public ?string $set = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetCommentRepliesResponse.php b/src/GeneratedModels/GetCommentRepliesResponse.php index f48c1d3..d32c5ec 100644 --- a/src/GeneratedModels/GetCommentRepliesResponse.php +++ b/src/GeneratedModels/GetCommentRepliesResponse.php @@ -3,23 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $comments - * @property string|null $next - * @property string|null $prev - */ class GetCommentRepliesResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null Threaded listing of replies to the comment */ + /** @var array|null */ #[ArrayOf(ThreadedCommentResponse::class)] public ?array $comments = null, // Threaded listing of replies to the comment + public ?string $sort = null, // Sort order used for the replies (first, last, top, best, controversial) public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetCommentResponse.php b/src/GeneratedModels/GetCommentResponse.php index b920602..25ca8ef 100644 --- a/src/GeneratedModels/GetCommentResponse.php +++ b/src/GeneratedModels/GetCommentResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property CommentResponse $comment - */ class GetCommentResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?CommentResponse $comment = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetCommentsResponse.php b/src/GeneratedModels/GetCommentsResponse.php index 9f3c2c6..182b0fd 100644 --- a/src/GeneratedModels/GetCommentsResponse.php +++ b/src/GeneratedModels/GetCommentsResponse.php @@ -3,23 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $comments - * @property string|null $next - * @property string|null $prev - */ class GetCommentsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null Threaded listing for the activity */ + /** @var array|null */ #[ArrayOf(ThreadedCommentResponse::class)] public ?array $comments = null, // Threaded listing for the activity + public ?string $sort = null, // Sort order used for the comments (first, last, top, best, controversial) public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetConfigResponse.php b/src/GeneratedModels/GetConfigResponse.php index b9ab623..10b5e07 100644 --- a/src/GeneratedModels/GetConfigResponse.php +++ b/src/GeneratedModels/GetConfigResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ConfigResponse|null $config - */ class GetConfigResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?ConfigResponse $config = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetCustomPermissionResponse.php b/src/GeneratedModels/GetCustomPermissionResponse.php index 2ef346e..5f2f4cd 100644 --- a/src/GeneratedModels/GetCustomPermissionResponse.php +++ b/src/GeneratedModels/GetCustomPermissionResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property Permission $permission */ class GetCustomPermissionResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?Permission $permission = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetDraftResponse.php b/src/GeneratedModels/GetDraftResponse.php index 6a174ca..fe44818 100644 --- a/src/GeneratedModels/GetDraftResponse.php +++ b/src/GeneratedModels/GetDraftResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property DraftResponse $draft */ class GetDraftResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?DraftResponse $draft = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetEdgesResponse.php b/src/GeneratedModels/GetEdgesResponse.php index ead771a..1d710bf 100644 --- a/src/GeneratedModels/GetEdgesResponse.php +++ b/src/GeneratedModels/GetEdgesResponse.php @@ -5,17 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $edges */ class GetEdgesResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(EdgeResponse::class)] public ?array $edges = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetFeedGroupResponse.php b/src/GeneratedModels/GetFeedGroupResponse.php index d961214..0ba2e62 100644 --- a/src/GeneratedModels/GetFeedGroupResponse.php +++ b/src/GeneratedModels/GetFeedGroupResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property FeedGroupResponse $feedGroup - */ class GetFeedGroupResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?FeedGroupResponse $feedGroup = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetFeedViewResponse.php b/src/GeneratedModels/GetFeedViewResponse.php index 3d7740c..624d85f 100644 --- a/src/GeneratedModels/GetFeedViewResponse.php +++ b/src/GeneratedModels/GetFeedViewResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property FeedViewResponse $feedView - */ class GetFeedViewResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?FeedViewResponse $feedView = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetFeedVisibilityResponse.php b/src/GeneratedModels/GetFeedVisibilityResponse.php index 3d44b22..fb87ef5 100644 --- a/src/GeneratedModels/GetFeedVisibilityResponse.php +++ b/src/GeneratedModels/GetFeedVisibilityResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property FeedVisibilityResponse $feedVisibility - */ class GetFeedVisibilityResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?FeedVisibilityResponse $feedVisibility = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetFeedsRateLimitsResponse.php b/src/GeneratedModels/GetFeedsRateLimitsResponse.php index 5ab4348..690a87f 100644 --- a/src/GeneratedModels/GetFeedsRateLimitsResponse.php +++ b/src/GeneratedModels/GetFeedsRateLimitsResponse.php @@ -3,23 +3,22 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array|null $android - * @property array|null $ios - * @property array|null $serverSide - * @property array|null $web - */ class GetFeedsRateLimitsResponse extends BaseModel { public function __construct( public ?string $duration = null, + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] public ?array $android = null, // Rate limits for Android platform (endpoint name -> limit info) + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] public ?array $ios = null, // Rate limits for iOS platform (endpoint name -> limit info) - public ?array $serverSide = null, // Rate limits for server-side platform (endpoint name -> limit info) + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] public ?array $web = null, // Rate limits for Web platform (endpoint name -> limit info) + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] + public ?array $serverSide = null, // Rate limits for server-side platform (endpoint name -> limit info) ) { } diff --git a/src/GeneratedModels/GetFollowSuggestionsResponse.php b/src/GeneratedModels/GetFollowSuggestionsResponse.php index 7eff0e8..021cb07 100644 --- a/src/GeneratedModels/GetFollowSuggestionsResponse.php +++ b/src/GeneratedModels/GetFollowSuggestionsResponse.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $suggestions - * @property string|null $algorithmUsed - */ class GetFollowSuggestionsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of suggested feeds to follow */ + /** @var array|null */ #[ArrayOf(FeedSuggestionResponse::class)] public ?array $suggestions = null, // List of suggested feeds to follow public ?string $algorithmUsed = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetImportResponse.php b/src/GeneratedModels/GetImportResponse.php index 9e7e49f..c2fc779 100644 --- a/src/GeneratedModels/GetImportResponse.php +++ b/src/GeneratedModels/GetImportResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property ImportTask|null $importTask */ class GetImportResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?ImportTask $importTask = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetImportV2TaskResponse.php b/src/GeneratedModels/GetImportV2TaskResponse.php index 8f9d07a..2320d59 100644 --- a/src/GeneratedModels/GetImportV2TaskResponse.php +++ b/src/GeneratedModels/GetImportV2TaskResponse.php @@ -5,27 +5,18 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property int $appPk - * @property \DateTime $createdAt - * @property string $duration - * @property string $id - * @property string $product - * @property int $state - * @property \DateTime $updatedAt - * @property ImportV2TaskSettings $settings */ class GetImportV2TaskResponse extends BaseModel { public function __construct( - public ?int $appPk = null, - public ?\DateTime $createdAt = null, - public ?string $duration = null, // Duration of the request in milliseconds + public ?ImportV2TaskSettings $settings = null, public ?string $id = null, + public ?int $appPk = null, public ?string $product = null, public ?int $state = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, - public ?ImportV2TaskSettings $settings = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetManyMessagesResponse.php b/src/GeneratedModels/GetManyMessagesResponse.php index 1467bea..2dc284d 100644 --- a/src/GeneratedModels/GetManyMessagesResponse.php +++ b/src/GeneratedModels/GetManyMessagesResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $messages - */ class GetManyMessagesResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of messages */ + /** @var array|null */ #[ArrayOf(MessageResponse::class)] public ?array $messages = null, // List of messages + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetMessageResponse.php b/src/GeneratedModels/GetMessageResponse.php index 7e160ac..91d4b76 100644 --- a/src/GeneratedModels/GetMessageResponse.php +++ b/src/GeneratedModels/GetMessageResponse.php @@ -5,17 +5,13 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property MessageWithChannelResponse $message - * @property array|null $pendingMessageMetadata */ class GetMessageResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?MessageWithChannelResponse $message = null, public ?array $pendingMessageMetadata = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetModerationRuleResponse.php b/src/GeneratedModels/GetModerationRuleResponse.php index ba796ae..c9317d8 100644 --- a/src/GeneratedModels/GetModerationRuleResponse.php +++ b/src/GeneratedModels/GetModerationRuleResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property ModerationRuleV2Response|null $rule */ class GetModerationRuleResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?ModerationRuleV2Response $rule = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetOGResponse.php b/src/GeneratedModels/GetOGResponse.php index 6c8b0cf..822679a 100644 --- a/src/GeneratedModels/GetOGResponse.php +++ b/src/GeneratedModels/GetOGResponse.php @@ -3,63 +3,36 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property object $custom - * @property string|null $assetUrl - * @property string|null $authorIcon - * @property string|null $authorLink - * @property string|null $authorName - * @property string|null $color - * @property string|null $fallback - * @property string|null $footer - * @property string|null $footerIcon - * @property string|null $imageUrl - * @property string|null $ogScrapeUrl - * @property int|null $originalHeight - * @property int|null $originalWidth - * @property string|null $pretext - * @property string|null $text - * @property string|null $thumbUrl - * @property string|null $title - * @property string|null $titleLink - * @property string|null $type - * @property array|null $actions - * @property array|null $fields - * @property Images|null $giphy - */ class GetOGResponse extends BaseModel { public function __construct( - public ?string $duration = null, - public ?object $custom = null, - public ?string $assetUrl = null, // URL of detected video or audio - public ?string $authorIcon = null, - public ?string $authorLink = null, // og:site - public ?string $authorName = null, // og:site_name - public ?string $color = null, + public ?Images $giphy = null, + public ?string $type = null, // Attachment type, could be empty, image, audio or video public ?string $fallback = null, - public ?string $footer = null, - public ?string $footerIcon = null, - public ?string $imageUrl = null, // URL of detected image - public ?string $ogScrapeUrl = null, // extracted url from the text - public ?int $originalHeight = null, - public ?int $originalWidth = null, + public ?string $color = null, public ?string $pretext = null, - public ?string $text = null, // og:description - public ?string $thumbUrl = null, // URL of detected thumb image + public ?string $authorName = null, // og:site_name + public ?string $authorLink = null, // og:site + public ?string $authorIcon = null, public ?string $title = null, // og:title public ?string $titleLink = null, // og:url - public ?string $type = null, // Attachment type, could be empty, image, audio or video + public ?string $text = null, // og:description + public ?string $imageUrl = null, // URL of detected image + public ?string $thumbUrl = null, // URL of detected thumb image + public ?string $footer = null, + public ?string $footerIcon = null, /** @var array|null */ #[ArrayOf(Action::class)] public ?array $actions = null, /** @var array|null */ #[ArrayOf(Field::class)] public ?array $fields = null, - public ?Images $giphy = null, + public ?string $assetUrl = null, // URL of detected video or audio + public ?object $custom = null, + public ?string $ogScrapeUrl = null, // extracted url from the text + public ?int $originalWidth = null, + public ?int $originalHeight = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetOrCreateCallRequest.php b/src/GeneratedModels/GetOrCreateCallRequest.php index e7cc973..c6d144e 100644 --- a/src/GeneratedModels/GetOrCreateCallRequest.php +++ b/src/GeneratedModels/GetOrCreateCallRequest.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $membersLimit - * @property bool|null $notify - * @property bool|null $ring - * @property bool|null $video - * @property CallRequest|null $data - */ class GetOrCreateCallRequest extends BaseModel { public function __construct( - public ?int $membersLimit = null, - public ?bool $notify = null, // if provided it sends a notification event to the members for this call + public ?CallRequest $data = null, public ?bool $ring = null, // if provided it sends a ring event to the members for this call + public ?bool $notify = null, // if provided it sends a notification event to the members for this call public ?bool $video = null, - public ?CallRequest $data = null, + public ?int $membersLimit = null, ) { } diff --git a/src/GeneratedModels/GetOrCreateCallResponse.php b/src/GeneratedModels/GetOrCreateCallResponse.php index 82f24d3..5e9f820 100644 --- a/src/GeneratedModels/GetOrCreateCallResponse.php +++ b/src/GeneratedModels/GetOrCreateCallResponse.php @@ -3,27 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $created - * @property string $duration - * @property array $members - * @property array $ownCapabilities - * @property CallResponse $call - */ class GetOrCreateCallResponse extends BaseModel { public function __construct( - public ?bool $created = null, - public ?string $duration = null, + public ?CallResponse $call = null, /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, /** @var array|null */ #[ArrayOf(OwnCapability::class)] public ?array $ownCapabilities = null, - public ?CallResponse $call = null, + public ?bool $created = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetOrCreateFeedGroupRequest.php b/src/GeneratedModels/GetOrCreateFeedGroupRequest.php index fe7f6cc..826f211 100644 --- a/src/GeneratedModels/GetOrCreateFeedGroupRequest.php +++ b/src/GeneratedModels/GetOrCreateFeedGroupRequest.php @@ -3,35 +3,22 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $defaultVisibility - * @property array|null $activityProcessors - * @property array|null $activitySelectors - * @property AggregationConfig|null $aggregation - * @property object|null $custom - * @property NotificationConfig|null $notification - * @property PushNotificationConfig|null $pushNotification - * @property RankingConfig|null $ranking - * @property StoriesConfig|null $stories - */ class GetOrCreateFeedGroupRequest extends BaseModel { public function __construct( - public ?string $defaultVisibility = null, // Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided. - /** @var array|null Configuration for activity processors */ - #[ArrayOf(ActivityProcessorConfig::class)] - public ?array $activityProcessors = null, // Configuration for activity processors - /** @var array|null Configuration for activity selectors */ - #[ArrayOf(ActivitySelectorConfig::class)] - public ?array $activitySelectors = null, // Configuration for activity selectors public ?AggregationConfig $aggregation = null, - public ?object $custom = null, // Custom data for the feed group public ?NotificationConfig $notification = null, public ?PushNotificationConfig $pushNotification = null, public ?RankingConfig $ranking = null, public ?StoriesConfig $stories = null, + public ?object $custom = null, // Custom data for the feed group + public ?string $defaultVisibility = null, // Default visibility for the feed group, can be 'public', 'visible', 'followers', 'members', or 'private'. Defaults to 'visible' if not provided. + /** @var array|null */ + #[ArrayOf(ActivityProcessorConfig::class)] + public ?array $activityProcessors = null, // Configuration for activity processors + /** @var array|null */ + #[ArrayOf(ActivitySelectorConfig::class)] + public ?array $activitySelectors = null, // Configuration for activity selectors ) { } diff --git a/src/GeneratedModels/GetOrCreateFeedGroupResponse.php b/src/GeneratedModels/GetOrCreateFeedGroupResponse.php index d885c92..d6c10b5 100644 --- a/src/GeneratedModels/GetOrCreateFeedGroupResponse.php +++ b/src/GeneratedModels/GetOrCreateFeedGroupResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property bool $wasCreated - * @property FeedGroupResponse $feedGroup - */ class GetOrCreateFeedGroupResponse extends BaseModel { public function __construct( - public ?string $duration = null, - public ?bool $wasCreated = null, // Indicates whether the feed group was created (true) or already existed (false) public ?FeedGroupResponse $feedGroup = null, + public ?bool $wasCreated = null, // Indicates whether the feed group was created (true) or already existed (false) + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetOrCreateFeedRequest.php b/src/GeneratedModels/GetOrCreateFeedRequest.php index 34f1ec2..b0acdd3 100644 --- a/src/GeneratedModels/GetOrCreateFeedRequest.php +++ b/src/GeneratedModels/GetOrCreateFeedRequest.php @@ -5,43 +5,27 @@ namespace GetStream\GeneratedModels; /** * Client request - * - * @property string|null $idAround - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property string|null $userID - * @property string|null $view - * @property bool|null $watch - * @property FeedInput|null $data - * @property EnrichmentOptions|null $enrichmentOptions - * @property object|null $externalRanking - * @property object|null $filter - * @property PagerRequest|null $followersPagination - * @property PagerRequest|null $followingPagination - * @property array|null $interestWeights - * @property PagerRequest|null $memberPagination - * @property UserRequest|null $user */ class GetOrCreateFeedRequest extends BaseModel { public function __construct( - public ?string $idAround = null, - public ?int $limit = null, - public ?string $next = null, - public ?string $prev = null, - public ?string $userID = null, - public ?string $view = null, - public ?bool $watch = null, public ?FeedInput $data = null, public ?EnrichmentOptions $enrichmentOptions = null, - public ?object $externalRanking = null, - public ?object $filter = null, public ?PagerRequest $followersPagination = null, public ?PagerRequest $followingPagination = null, - public ?array $interestWeights = null, + public ?FriendReactionsOptions $friendReactionsOptions = null, public ?PagerRequest $memberPagination = null, public ?UserRequest $user = null, + public ?bool $watch = null, + public ?string $view = null, + public ?object $externalRanking = null, + public ?array $interestWeights = null, + public ?object $filter = null, + public ?int $limit = null, + public ?string $next = null, + public ?string $prev = null, + public ?string $idAround = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/GetOrCreateFeedResponse.php b/src/GeneratedModels/GetOrCreateFeedResponse.php index 9f5681b..20671b2 100644 --- a/src/GeneratedModels/GetOrCreateFeedResponse.php +++ b/src/GeneratedModels/GetOrCreateFeedResponse.php @@ -5,53 +5,37 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property bool $created - * @property string $duration - * @property array $activities - * @property array $aggregatedActivities - * @property array $followers - * @property array $following - * @property array $members - * @property array $pinnedActivities - * @property FeedResponse $feed - * @property string|null $next - * @property string|null $prev - * @property PagerResponse|null $followersPagination - * @property PagerResponse|null $followingPagination - * @property PagerResponse|null $memberPagination - * @property NotificationStatusResponse|null $notificationStatus */ class GetOrCreateFeedResponse extends BaseModel { public function __construct( - public ?bool $created = null, - public ?string $duration = null, // Duration of the request in milliseconds + public ?FeedResponse $feed = null, + public ?PagerResponse $followersPagination = null, + public ?PagerResponse $followingPagination = null, + public ?PagerResponse $memberPagination = null, + public ?NotificationStatusResponse $notificationStatus = null, /** @var array|null */ #[ArrayOf(ActivityResponse::class)] public ?array $activities = null, /** @var array|null */ #[ArrayOf(AggregatedActivityResponse::class)] public ?array $aggregatedActivities = null, + /** @var array|null */ + #[ArrayOf(FeedMemberResponse::class)] + public ?array $members = null, /** @var array|null */ #[ArrayOf(FollowResponse::class)] public ?array $followers = null, /** @var array|null */ #[ArrayOf(FollowResponse::class)] public ?array $following = null, - /** @var array|null */ - #[ArrayOf(FeedMemberResponse::class)] - public ?array $members = null, /** @var array|null */ #[ArrayOf(ActivityPinResponse::class)] public ?array $pinnedActivities = null, - public ?FeedResponse $feed = null, + public ?bool $created = null, public ?string $next = null, public ?string $prev = null, - public ?PagerResponse $followersPagination = null, - public ?PagerResponse $followingPagination = null, - public ?PagerResponse $memberPagination = null, - public ?NotificationStatusResponse $notificationStatus = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetOrCreateFeedViewRequest.php b/src/GeneratedModels/GetOrCreateFeedViewRequest.php index eb395c2..58655d8 100644 --- a/src/GeneratedModels/GetOrCreateFeedViewRequest.php +++ b/src/GeneratedModels/GetOrCreateFeedViewRequest.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $activitySelectors - * @property AggregationConfig|null $aggregation - * @property RankingConfig|null $ranking - */ class GetOrCreateFeedViewRequest extends BaseModel { public function __construct( - /** @var array|null Configuration for selecting activities */ - #[ArrayOf(ActivitySelectorConfig::class)] - public ?array $activitySelectors = null, // Configuration for selecting activities public ?AggregationConfig $aggregation = null, public ?RankingConfig $ranking = null, + /** @var array|null */ + #[ArrayOf(ActivitySelectorConfig::class)] + public ?array $activitySelectors = null, // Configuration for selecting activities ) { } diff --git a/src/GeneratedModels/GetOrCreateFeedViewResponse.php b/src/GeneratedModels/GetOrCreateFeedViewResponse.php index 3bb386a..974561b 100644 --- a/src/GeneratedModels/GetOrCreateFeedViewResponse.php +++ b/src/GeneratedModels/GetOrCreateFeedViewResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property bool $wasCreated - * @property FeedViewResponse $feedView - */ class GetOrCreateFeedViewResponse extends BaseModel { public function __construct( - public ?string $duration = null, - public ?bool $wasCreated = null, // Indicates whether the feed view was newly created (true) or already existed (false) public ?FeedViewResponse $feedView = null, + public ?bool $wasCreated = null, // Indicates whether the feed view was newly created (true) or already existed (false) + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetPushTemplatesResponse.php b/src/GeneratedModels/GetPushTemplatesResponse.php index e31bd36..a286ab0 100644 --- a/src/GeneratedModels/GetPushTemplatesResponse.php +++ b/src/GeneratedModels/GetPushTemplatesResponse.php @@ -5,16 +5,13 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $templates */ class GetPushTemplatesResponse extends BaseModel { public function __construct( public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null */ - #[ArrayOf(PushTemplate::class)] + /** @var array|null */ + #[ArrayOf(PushTemplateResponse::class)] public ?array $templates = null, ) { } diff --git a/src/GeneratedModels/GetRateLimitsResponse.php b/src/GeneratedModels/GetRateLimitsResponse.php index e7a43ea..cb0014d 100644 --- a/src/GeneratedModels/GetRateLimitsResponse.php +++ b/src/GeneratedModels/GetRateLimitsResponse.php @@ -3,23 +3,22 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array|null $android - * @property array|null $ios - * @property array|null $serverSide - * @property array|null $web - */ class GetRateLimitsResponse extends BaseModel { public function __construct( - public ?string $duration = null, + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] + public ?array $serverSide = null, // Map of endpoint rate limits for the server-side platform + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] public ?array $android = null, // Map of endpoint rate limits for the Android platform + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] public ?array $ios = null, // Map of endpoint rate limits for the iOS platform - public ?array $serverSide = null, // Map of endpoint rate limits for the server-side platform + /** @var array|null */ + #[MapOf(LimitInfoResponse::class)] public ?array $web = null, // Map of endpoint rate limits for the web platform + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetReactionsResponse.php b/src/GeneratedModels/GetReactionsResponse.php index d459844..bbbaffa 100644 --- a/src/GeneratedModels/GetReactionsResponse.php +++ b/src/GeneratedModels/GetReactionsResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $reactions - */ class GetReactionsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of reactions */ + /** @var array|null */ #[ArrayOf(ReactionResponse::class)] public ?array $reactions = null, // List of reactions + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetRepliesResponse.php b/src/GeneratedModels/GetRepliesResponse.php index dd9739e..f1d7de8 100644 --- a/src/GeneratedModels/GetRepliesResponse.php +++ b/src/GeneratedModels/GetRepliesResponse.php @@ -5,17 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $messages */ class GetRepliesResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(MessageResponse::class)] public ?array $messages = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetReviewQueueItemResponse.php b/src/GeneratedModels/GetReviewQueueItemResponse.php index e852f56..5c64287 100644 --- a/src/GeneratedModels/GetReviewQueueItemResponse.php +++ b/src/GeneratedModels/GetReviewQueueItemResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ReviewQueueItemResponse|null $item - */ class GetReviewQueueItemResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?ReviewQueueItemResponse $item = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetSegmentResponse.php b/src/GeneratedModels/GetSegmentResponse.php index 58f4d2d..283e2c9 100644 --- a/src/GeneratedModels/GetSegmentResponse.php +++ b/src/GeneratedModels/GetSegmentResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property SegmentResponse|null $segment - */ class GetSegmentResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?SegmentResponse $segment = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GetTaskResponse.php b/src/GeneratedModels/GetTaskResponse.php index 4450150..62899dc 100644 --- a/src/GeneratedModels/GetTaskResponse.php +++ b/src/GeneratedModels/GetTaskResponse.php @@ -3,27 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $duration - * @property string $status - * @property string $taskID - * @property \DateTime $updatedAt - * @property ErrorResult|null $error - * @property object|null $result - */ class GetTaskResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?string $duration = null, - public ?string $status = null, // Current status of task + public ?ErrorResult $error = null, public ?string $taskID = null, // ID of task + public ?string $status = null, // Current status of task + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, - public ?ErrorResult $error = null, public ?object $result = null, // Result produced by task after completion + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GetThreadResponse.php b/src/GeneratedModels/GetThreadResponse.php index a962017..5ad572e 100644 --- a/src/GeneratedModels/GetThreadResponse.php +++ b/src/GeneratedModels/GetThreadResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ThreadStateResponse $thread - */ class GetThreadResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?ThreadStateResponse $thread = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/GoLiveRequest.php b/src/GeneratedModels/GoLiveRequest.php index 14c6e10..16a56e8 100644 --- a/src/GeneratedModels/GoLiveRequest.php +++ b/src/GeneratedModels/GoLiveRequest.php @@ -3,31 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $recordingStorageName - * @property bool|null $startClosedCaption - * @property bool|null $startCompositeRecording - * @property bool|null $startHLS - * @property bool|null $startIndividualRecording - * @property bool|null $startRawRecording - * @property bool|null $startRecording - * @property bool|null $startTranscription - * @property string|null $transcriptionStorageName - */ class GoLiveRequest extends BaseModel { public function __construct( - public ?string $recordingStorageName = null, - public ?bool $startClosedCaption = null, - public ?bool $startCompositeRecording = null, public ?bool $startHLS = null, + public ?bool $startRecording = null, + public ?bool $startCompositeRecording = null, public ?bool $startIndividualRecording = null, public ?bool $startRawRecording = null, - public ?bool $startRecording = null, - public ?bool $startTranscription = null, + public ?string $recordingStorageName = null, public ?string $transcriptionStorageName = null, + public ?bool $startTranscription = null, + public ?bool $startClosedCaption = null, ) { } diff --git a/src/GeneratedModels/GoLiveResponse.php b/src/GeneratedModels/GoLiveResponse.php index 609c5b4..f0fb7d7 100644 --- a/src/GeneratedModels/GoLiveResponse.php +++ b/src/GeneratedModels/GoLiveResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property CallResponse $call */ class GoLiveResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?CallResponse $call = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/GoogleVisionConfig.php b/src/GeneratedModels/GoogleVisionConfig.php index 6a862b6..a740527 100644 --- a/src/GeneratedModels/GoogleVisionConfig.php +++ b/src/GeneratedModels/GoogleVisionConfig.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $enabled - */ class GoogleVisionConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/GroupedStatsResponse.php b/src/GeneratedModels/GroupedStatsResponse.php index a614dd0..b97d107 100644 --- a/src/GeneratedModels/GroupedStatsResponse.php +++ b/src/GeneratedModels/GroupedStatsResponse.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $name - * @property int $unique - */ class GroupedStatsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/HLSSettings.php b/src/GeneratedModels/HLSSettings.php index 177ec77..5342210 100644 --- a/src/GeneratedModels/HLSSettings.php +++ b/src/GeneratedModels/HLSSettings.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $autoOn - * @property bool $enabled - * @property array $qualityTracks - * @property LayoutSettings|null $layout - */ class HLSSettings extends BaseModel { public function __construct( + public ?LayoutSettings $layout = null, public ?bool $autoOn = null, public ?bool $enabled = null, public ?array $qualityTracks = null, - public ?LayoutSettings $layout = null, ) { } diff --git a/src/GeneratedModels/HLSSettingsRequest.php b/src/GeneratedModels/HLSSettingsRequest.php index efaf784..7a7bc2e 100644 --- a/src/GeneratedModels/HLSSettingsRequest.php +++ b/src/GeneratedModels/HLSSettingsRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $qualityTracks - * @property bool|null $autoOn - * @property bool|null $enabled - * @property LayoutSettingsRequest|null $layout - */ class HLSSettingsRequest extends BaseModel { public function __construct( - public ?array $qualityTracks = null, - public ?bool $autoOn = null, - public ?bool $enabled = null, public ?LayoutSettingsRequest $layout = null, + public ?bool $autoOn = null, // Whether HLS broadcasting should start automatically + public ?bool $enabled = null, // Whether HLS broadcasting is enabled + public ?array $qualityTracks = null, // Quality tracks for HLS. One of: 360p, 480p, 720p, 1080p, 1440p, portrait-360x640, portrait-480x854, portrait-720x1280, portrait-1080x1920, portrait-1440x2560 ) { } diff --git a/src/GeneratedModels/HLSSettingsResponse.php b/src/GeneratedModels/HLSSettingsResponse.php index 6afed3e..32e4686 100644 --- a/src/GeneratedModels/HLSSettingsResponse.php +++ b/src/GeneratedModels/HLSSettingsResponse.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * HLSSettings is the payload for HLS settings - * - * @property bool $autoOn - * @property bool $enabled - * @property array $qualityTracks - * @property LayoutSettingsResponse $layout */ class HLSSettingsResponse extends BaseModel { public function __construct( + public ?LayoutSettingsResponse $layout = null, public ?bool $autoOn = null, public ?bool $enabled = null, public ?array $qualityTracks = null, - public ?LayoutSettingsResponse $layout = null, ) { } diff --git a/src/GeneratedModels/HarmConfig.php b/src/GeneratedModels/HarmConfig.php index 6002090..c7d9b11 100644 --- a/src/GeneratedModels/HarmConfig.php +++ b/src/GeneratedModels/HarmConfig.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $cooldownPeriod - * @property int|null $severity - * @property int|null $threshold - * @property array|null $actionSequences - * @property array|null $harmTypes - */ class HarmConfig extends BaseModel { public function __construct( - public ?int $cooldownPeriod = null, - public ?int $severity = null, - public ?int $threshold = null, /** @var array|null */ #[ArrayOf(ActionSequence::class)] public ?array $actionSequences = null, + public ?int $severity = null, public ?array $harmTypes = null, + public ?int $threshold = null, + public ?int $cooldownPeriod = null, ) { } diff --git a/src/GeneratedModels/HideChannelRequest.php b/src/GeneratedModels/HideChannelRequest.php index 0a3719a..2f044fa 100644 --- a/src/GeneratedModels/HideChannelRequest.php +++ b/src/GeneratedModels/HideChannelRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $clearHistory - * @property string|null $userID - * @property UserRequest|null $user - */ class HideChannelRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?bool $clearHistory = null, // Whether to clear message history of the channel or not public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/HideChannelResponse.php b/src/GeneratedModels/HideChannelResponse.php index 5c2329a..e187406 100644 --- a/src/GeneratedModels/HideChannelResponse.php +++ b/src/GeneratedModels/HideChannelResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration */ class HideChannelResponse extends BaseModel { diff --git a/src/GeneratedModels/HuaweiConfig.php b/src/GeneratedModels/HuaweiConfig.php index 45366f3..fbd6247 100644 --- a/src/GeneratedModels/HuaweiConfig.php +++ b/src/GeneratedModels/HuaweiConfig.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $disabled - * @property string|null $id - * @property string|null $secret - */ class HuaweiConfig extends BaseModel { public function __construct( - public ?bool $disabled = null, public ?string $id = null, public ?string $secret = null, + public ?bool $disabled = null, ) { } diff --git a/src/GeneratedModels/HuaweiConfigFields.php b/src/GeneratedModels/HuaweiConfigFields.php index 7ba99ec..4951d6f 100644 --- a/src/GeneratedModels/HuaweiConfigFields.php +++ b/src/GeneratedModels/HuaweiConfigFields.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - * @property string|null $id - * @property string|null $secret - */ class HuaweiConfigFields extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ImageContentParameters.php b/src/GeneratedModels/ImageContentParameters.php index 48fb027..9b2e587 100644 --- a/src/GeneratedModels/ImageContentParameters.php +++ b/src/GeneratedModels/ImageContentParameters.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $harmLabels - */ class ImageContentParameters extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ImageData.php b/src/GeneratedModels/ImageData.php index 9fecc8c..d718bdb 100644 --- a/src/GeneratedModels/ImageData.php +++ b/src/GeneratedModels/ImageData.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $frames - * @property string $height - * @property string $size - * @property string $url - * @property string $width - */ class ImageData extends BaseModel { public function __construct( - public ?string $frames = null, - public ?string $height = null, - public ?string $size = null, public ?string $url = null, public ?string $width = null, + public ?string $height = null, + public ?string $size = null, + public ?string $frames = null, ) { } diff --git a/src/GeneratedModels/ImageRuleParameters.php b/src/GeneratedModels/ImageRuleParameters.php index 616c115..953257a 100644 --- a/src/GeneratedModels/ImageRuleParameters.php +++ b/src/GeneratedModels/ImageRuleParameters.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $threshold - * @property string|null $timeWindow - * @property array|null $harmLabels - */ class ImageRuleParameters extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ImageSize.php b/src/GeneratedModels/ImageSize.php index cc7a041..19c649a 100644 --- a/src/GeneratedModels/ImageSize.php +++ b/src/GeneratedModels/ImageSize.php @@ -3,20 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $crop - * @property int|null $height - * @property string|null $resize - * @property int|null $width - */ class ImageSize extends BaseModel { public function __construct( - public ?string $crop = null, // Crop mode + public ?string $crop = null, // Crop mode. One of: top, bottom, left, right, center + public ?string $resize = null, // Resize method. One of: clip, crop, scale, fill public ?int $height = null, // Target image height - public ?string $resize = null, // Resize method public ?int $width = null, // Target image width ) { } diff --git a/src/GeneratedModels/ImageUploadRequest.php b/src/GeneratedModels/ImageUploadRequest.php index a87f48e..d92e84a 100644 --- a/src/GeneratedModels/ImageUploadRequest.php +++ b/src/GeneratedModels/ImageUploadRequest.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $file - * @property array|null $uploadSizes - * @property OnlyUserID|null $user - */ class ImageUploadRequest extends BaseModel { public function __construct( + public ?OnlyUserID $user = null, public ?string $file = null, - /** @var array|null field with JSON-encoded array of image size configurations */ + /** @var array|null */ #[ArrayOf(ImageSize::class)] public ?array $uploadSizes = null, // field with JSON-encoded array of image size configurations - public ?OnlyUserID $user = null, ) { } diff --git a/src/GeneratedModels/ImageUploadResponse.php b/src/GeneratedModels/ImageUploadResponse.php index 3e3ae08..5d2886c 100644 --- a/src/GeneratedModels/ImageUploadResponse.php +++ b/src/GeneratedModels/ImageUploadResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string|null $file - * @property string|null $thumbUrl - * @property array|null $uploadSizes - */ class ImageUploadResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?string $file = null, public ?string $thumbUrl = null, - /** @var array|null Array of image size configurations */ + public ?string $duration = null, // Duration of the request in milliseconds + /** @var array|null */ #[ArrayOf(ImageSize::class)] public ?array $uploadSizes = null, // Array of image size configurations ) { diff --git a/src/GeneratedModels/Images.php b/src/GeneratedModels/Images.php index 15b8a9c..b593625 100644 --- a/src/GeneratedModels/Images.php +++ b/src/GeneratedModels/Images.php @@ -3,17 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property ImageData $fixedHeight - * @property ImageData $fixedHeightDownsampled - * @property ImageData $fixedHeightStill - * @property ImageData $fixedWidth - * @property ImageData $fixedWidthDownsampled - * @property ImageData $fixedWidthStill - * @property ImageData $original - */ class Images extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ImportTask.php b/src/GeneratedModels/ImportTask.php index 585a317..e181951 100644 --- a/src/GeneratedModels/ImportTask.php +++ b/src/GeneratedModels/ImportTask.php @@ -3,31 +3,19 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $id - * @property string $mode - * @property string $path - * @property string $state - * @property \DateTime $updatedAt - * @property array $history - * @property int|null $size - */ class ImportTask extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, public ?string $id = null, - public ?string $mode = null, public ?string $path = null, + public ?string $mode = null, + public ?int $size = null, public ?string $state = null, - public ?\DateTime $updatedAt = null, /** @var array|null */ #[ArrayOf(ImportTaskHistory::class)] public ?array $history = null, - public ?int $size = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, ) { } diff --git a/src/GeneratedModels/ImportTaskHistory.php b/src/GeneratedModels/ImportTaskHistory.php index 81fbd7f..cd02e31 100644 --- a/src/GeneratedModels/ImportTaskHistory.php +++ b/src/GeneratedModels/ImportTaskHistory.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $nextState - * @property string $prevState - */ class ImportTaskHistory extends BaseModel { public function __construct( public ?\DateTime $createdAt = null, - public ?string $nextState = null, public ?string $prevState = null, + public ?string $nextState = null, ) { } diff --git a/src/GeneratedModels/ImportV2TaskItem.php b/src/GeneratedModels/ImportV2TaskItem.php index 9f695a9..47c7b13 100644 --- a/src/GeneratedModels/ImportV2TaskItem.php +++ b/src/GeneratedModels/ImportV2TaskItem.php @@ -3,27 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $appPk - * @property \DateTime $createdAt - * @property string $id - * @property string $product - * @property int $state - * @property \DateTime $updatedAt - * @property ImportV2TaskSettings $settings - */ class ImportV2TaskItem extends BaseModel { public function __construct( - public ?int $appPk = null, - public ?\DateTime $createdAt = null, + public ?ImportV2TaskSettings $settings = null, public ?string $id = null, + public ?int $appPk = null, public ?string $product = null, public ?int $state = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, - public ?ImportV2TaskSettings $settings = null, ) { } diff --git a/src/GeneratedModels/ImportV2TaskSettings.php b/src/GeneratedModels/ImportV2TaskSettings.php index 3898235..331da00 100644 --- a/src/GeneratedModels/ImportV2TaskSettings.php +++ b/src/GeneratedModels/ImportV2TaskSettings.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $mode - * @property string|null $path - * @property bool|null $skipReferencesCheck - * @property ImportV2TaskSettingsS3|null $s3 - */ class ImportV2TaskSettings extends BaseModel { public function __construct( + public ?ImportV2TaskSettingsS3 $s3 = null, public ?string $mode = null, public ?string $path = null, public ?bool $skipReferencesCheck = null, - public ?ImportV2TaskSettingsS3 $s3 = null, ) { } diff --git a/src/GeneratedModels/ImportV2TaskSettingsS3.php b/src/GeneratedModels/ImportV2TaskSettingsS3.php index ead9717..9cf0555 100644 --- a/src/GeneratedModels/ImportV2TaskSettingsS3.php +++ b/src/GeneratedModels/ImportV2TaskSettingsS3.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $bucket - * @property string|null $dir - * @property string|null $region - */ class ImportV2TaskSettingsS3 extends BaseModel { public function __construct( + public ?string $region = null, public ?string $bucket = null, public ?string $dir = null, - public ?string $region = null, ) { } diff --git a/src/GeneratedModels/IndividualRecordSettings.php b/src/GeneratedModels/IndividualRecordSettings.php index f58b510..b07e269 100644 --- a/src/GeneratedModels/IndividualRecordSettings.php +++ b/src/GeneratedModels/IndividualRecordSettings.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $mode - */ class IndividualRecordSettings extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/IndividualRecordingResponse.php b/src/GeneratedModels/IndividualRecordingResponse.php index 630a3fb..85a0778 100644 --- a/src/GeneratedModels/IndividualRecordingResponse.php +++ b/src/GeneratedModels/IndividualRecordingResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $status - */ class IndividualRecordingResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/IndividualRecordingSettingsRequest.php b/src/GeneratedModels/IndividualRecordingSettingsRequest.php index b14b6e3..f01ec6c 100644 --- a/src/GeneratedModels/IndividualRecordingSettingsRequest.php +++ b/src/GeneratedModels/IndividualRecordingSettingsRequest.php @@ -3,15 +3,10 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $mode - */ class IndividualRecordingSettingsRequest extends BaseModel { public function __construct( - public ?string $mode = null, + public ?string $mode = null, // Recording mode. One of: available, disabled, auto-on ) { } diff --git a/src/GeneratedModels/IndividualRecordingSettingsResponse.php b/src/GeneratedModels/IndividualRecordingSettingsResponse.php index 33e1177..51437aa 100644 --- a/src/GeneratedModels/IndividualRecordingSettingsResponse.php +++ b/src/GeneratedModels/IndividualRecordingSettingsResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $mode - */ class IndividualRecordingSettingsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/IngressAudioEncodingOptions.php b/src/GeneratedModels/IngressAudioEncodingOptions.php index 9432a44..94abd8a 100644 --- a/src/GeneratedModels/IngressAudioEncodingOptions.php +++ b/src/GeneratedModels/IngressAudioEncodingOptions.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $bitrate - * @property int $channels - * @property bool $enableDtx - */ class IngressAudioEncodingOptions extends BaseModel { public function __construct( - public ?int $bitrate = null, public ?int $channels = null, public ?bool $enableDtx = null, + public ?int $bitrate = null, ) { } diff --git a/src/GeneratedModels/IngressAudioEncodingOptionsRequest.php b/src/GeneratedModels/IngressAudioEncodingOptionsRequest.php index db313ed..553bb2a 100644 --- a/src/GeneratedModels/IngressAudioEncodingOptionsRequest.php +++ b/src/GeneratedModels/IngressAudioEncodingOptionsRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $bitrate - * @property int $channels - * @property bool|null $enableDtx - */ class IngressAudioEncodingOptionsRequest extends BaseModel { public function __construct( - public ?int $bitrate = null, public ?int $channels = null, public ?bool $enableDtx = null, + public ?int $bitrate = null, ) { } diff --git a/src/GeneratedModels/IngressAudioEncodingResponse.php b/src/GeneratedModels/IngressAudioEncodingResponse.php index d5a3b46..e369484 100644 --- a/src/GeneratedModels/IngressAudioEncodingResponse.php +++ b/src/GeneratedModels/IngressAudioEncodingResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $bitrate - * @property int $channels - * @property bool $enableDtx - */ class IngressAudioEncodingResponse extends BaseModel { public function __construct( - public ?int $bitrate = null, public ?int $channels = null, public ?bool $enableDtx = null, + public ?int $bitrate = null, ) { } diff --git a/src/GeneratedModels/IngressErrorEvent.php b/src/GeneratedModels/IngressErrorEvent.php index 6d159e8..70b2a87 100644 --- a/src/GeneratedModels/IngressErrorEvent.php +++ b/src/GeneratedModels/IngressErrorEvent.php @@ -5,24 +5,16 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a critical error occurs that breaks the streaming pipeline - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $error - * @property string $ingressStreamID - * @property string $userID - * @property string $type - * @property string|null $code */ class IngressErrorEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?string $type = null, // The type of event: "ingress.error" in this case public ?\DateTime $createdAt = null, - public ?string $error = null, // Human-readable error message + public ?string $callCid = null, public ?string $ingressStreamID = null, // Unique identifier for the stream public ?string $userID = null, // User who was streaming - public ?string $type = null, // The type of event: "ingress.error" in this case + public ?string $error = null, // Human-readable error message public ?string $code = null, // Error code ) { } diff --git a/src/GeneratedModels/IngressSettings.php b/src/GeneratedModels/IngressSettings.php index 67b3d24..a382316 100644 --- a/src/GeneratedModels/IngressSettings.php +++ b/src/GeneratedModels/IngressSettings.php @@ -3,18 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - * @property IngressAudioEncodingOptions|null $audioEncodingOptions - * @property array|null $videoEncodingOptions - */ class IngressSettings extends BaseModel { public function __construct( - public ?bool $enabled = null, public ?IngressAudioEncodingOptions $audioEncodingOptions = null, + public ?bool $enabled = null, + /** @var array|null */ + #[MapOf(IngressVideoEncodingOptions::class)] public ?array $videoEncodingOptions = null, ) { } diff --git a/src/GeneratedModels/IngressSettingsRequest.php b/src/GeneratedModels/IngressSettingsRequest.php index 7d3cb06..9bf7818 100644 --- a/src/GeneratedModels/IngressSettingsRequest.php +++ b/src/GeneratedModels/IngressSettingsRequest.php @@ -3,18 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $enabled - * @property IngressAudioEncodingOptionsRequest|null $audioEncodingOptions - * @property array|null $videoEncodingOptions - */ class IngressSettingsRequest extends BaseModel { public function __construct( - public ?bool $enabled = null, public ?IngressAudioEncodingOptionsRequest $audioEncodingOptions = null, + public ?bool $enabled = null, + /** @var array|null */ + #[MapOf(IngressVideoEncodingOptionsRequest::class)] public ?array $videoEncodingOptions = null, ) { } diff --git a/src/GeneratedModels/IngressSettingsResponse.php b/src/GeneratedModels/IngressSettingsResponse.php index 03808bf..7ccb9fb 100644 --- a/src/GeneratedModels/IngressSettingsResponse.php +++ b/src/GeneratedModels/IngressSettingsResponse.php @@ -3,18 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - * @property IngressAudioEncodingResponse|null $audioEncodingOptions - * @property array|null $videoEncodingOptions - */ class IngressSettingsResponse extends BaseModel { public function __construct( - public ?bool $enabled = null, public ?IngressAudioEncodingResponse $audioEncodingOptions = null, + public ?bool $enabled = null, + /** @var array|null */ + #[MapOf(IngressVideoEncodingResponse::class)] public ?array $videoEncodingOptions = null, ) { } diff --git a/src/GeneratedModels/IngressSource.php b/src/GeneratedModels/IngressSource.php index e45c69c..f9521fc 100644 --- a/src/GeneratedModels/IngressSource.php +++ b/src/GeneratedModels/IngressSource.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $fps - * @property int $height - * @property int $width - */ class IngressSource extends BaseModel { public function __construct( - public ?int $fps = null, - public ?int $height = null, public ?int $width = null, + public ?int $height = null, + public ?int $fps = null, ) { } diff --git a/src/GeneratedModels/IngressSourceRequest.php b/src/GeneratedModels/IngressSourceRequest.php index ad16028..c6be05d 100644 --- a/src/GeneratedModels/IngressSourceRequest.php +++ b/src/GeneratedModels/IngressSourceRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $fps - * @property int $height - * @property int $width - */ class IngressSourceRequest extends BaseModel { public function __construct( - public ?int $fps = null, public ?int $height = null, public ?int $width = null, + public ?int $fps = null, ) { } diff --git a/src/GeneratedModels/IngressSourceResponse.php b/src/GeneratedModels/IngressSourceResponse.php index 954d80e..fd80c37 100644 --- a/src/GeneratedModels/IngressSourceResponse.php +++ b/src/GeneratedModels/IngressSourceResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $fps - * @property int $height - * @property int $width - */ class IngressSourceResponse extends BaseModel { public function __construct( - public ?int $fps = null, - public ?int $height = null, public ?int $width = null, + public ?int $height = null, + public ?int $fps = null, ) { } diff --git a/src/GeneratedModels/IngressStartedEvent.php b/src/GeneratedModels/IngressStartedEvent.php index 3895cc6..81823fc 100644 --- a/src/GeneratedModels/IngressStartedEvent.php +++ b/src/GeneratedModels/IngressStartedEvent.php @@ -5,29 +5,19 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a user begins streaming into a call - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $ingressStreamID - * @property string $publisherType - * @property string $userID - * @property string $type - * @property string|null $clientIp - * @property string|null $clientName - * @property string|null $version */ class IngressStartedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?string $type = null, // The type of event: "ingress.started" in this case public ?\DateTime $createdAt = null, + public ?string $callCid = null, public ?string $ingressStreamID = null, // Unique identifier for this stream - public ?string $publisherType = null, // Streaming protocol (e.g., 'rtmps', 'srt', 'rtmp', 'rtsp') public ?string $userID = null, // User who started the stream - public ?string $type = null, // The type of event: "ingress.started" in this case - public ?string $clientIp = null, // Client IP address + public ?string $publisherType = null, // Streaming protocol (e.g., 'rtmps', 'srt', 'rtmp', 'rtsp') public ?string $clientName = null, // Streaming client software name (e.g., 'OBS Studio') public ?string $version = null, // Client software version + public ?string $clientIp = null, // Client IP address ) { } diff --git a/src/GeneratedModels/IngressStoppedEvent.php b/src/GeneratedModels/IngressStoppedEvent.php index 933b7c2..e78b37b 100644 --- a/src/GeneratedModels/IngressStoppedEvent.php +++ b/src/GeneratedModels/IngressStoppedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when streaming stops due to user action or call ended - * - * @property string $callCid - * @property \DateTime $createdAt - * @property string $ingressStreamID - * @property string $userID - * @property string $type */ class IngressStoppedEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?string $type = null, // The type of event: "ingress.stopped" in this case public ?\DateTime $createdAt = null, + public ?string $callCid = null, public ?string $ingressStreamID = null, // Unique identifier for the stream public ?string $userID = null, // User who was streaming - public ?string $type = null, // The type of event: "ingress.stopped" in this case ) { } diff --git a/src/GeneratedModels/IngressVideoEncodingOptions.php b/src/GeneratedModels/IngressVideoEncodingOptions.php index b0e8c59..55c53c5 100644 --- a/src/GeneratedModels/IngressVideoEncodingOptions.php +++ b/src/GeneratedModels/IngressVideoEncodingOptions.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $layers - * @property IngressSource|null $source - */ class IngressVideoEncodingOptions extends BaseModel { public function __construct( + public ?IngressSource $source = null, /** @var array|null */ #[ArrayOf(IngressVideoLayer::class)] public ?array $layers = null, - public ?IngressSource $source = null, ) { } diff --git a/src/GeneratedModels/IngressVideoEncodingOptionsRequest.php b/src/GeneratedModels/IngressVideoEncodingOptionsRequest.php index 27c932b..f2bd1c8 100644 --- a/src/GeneratedModels/IngressVideoEncodingOptionsRequest.php +++ b/src/GeneratedModels/IngressVideoEncodingOptionsRequest.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $layers - * @property IngressSourceRequest $source - */ class IngressVideoEncodingOptionsRequest extends BaseModel { public function __construct( + public ?IngressSourceRequest $source = null, /** @var array|null */ #[ArrayOf(IngressVideoLayerRequest::class)] public ?array $layers = null, - public ?IngressSourceRequest $source = null, ) { } diff --git a/src/GeneratedModels/IngressVideoEncodingResponse.php b/src/GeneratedModels/IngressVideoEncodingResponse.php index 29facdb..2c41ce1 100644 --- a/src/GeneratedModels/IngressVideoEncodingResponse.php +++ b/src/GeneratedModels/IngressVideoEncodingResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $layers - * @property IngressSourceResponse $source - */ class IngressVideoEncodingResponse extends BaseModel { public function __construct( + public ?IngressSourceResponse $source = null, /** @var array|null */ #[ArrayOf(IngressVideoLayerResponse::class)] public ?array $layers = null, - public ?IngressSourceResponse $source = null, ) { } diff --git a/src/GeneratedModels/IngressVideoLayer.php b/src/GeneratedModels/IngressVideoLayer.php index 9e71499..3f994d5 100644 --- a/src/GeneratedModels/IngressVideoLayer.php +++ b/src/GeneratedModels/IngressVideoLayer.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $bitrate - * @property string $codec - * @property int $frameRate - * @property int $maxDimension - * @property int $minDimension - */ class IngressVideoLayer extends BaseModel { public function __construct( - public ?int $bitrate = null, public ?string $codec = null, + public ?int $bitrate = null, public ?int $frameRate = null, - public ?int $maxDimension = null, public ?int $minDimension = null, + public ?int $maxDimension = null, ) { } diff --git a/src/GeneratedModels/IngressVideoLayerRequest.php b/src/GeneratedModels/IngressVideoLayerRequest.php index 224fe5a..6f32f61 100644 --- a/src/GeneratedModels/IngressVideoLayerRequest.php +++ b/src/GeneratedModels/IngressVideoLayerRequest.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $bitrate - * @property string $codec - * @property int $frameRateLimit - * @property int $maxDimension - * @property int $minDimension - */ class IngressVideoLayerRequest extends BaseModel { public function __construct( - public ?int $bitrate = null, public ?string $codec = null, - public ?int $frameRateLimit = null, - public ?int $maxDimension = null, + public ?int $bitrate = null, public ?int $minDimension = null, + public ?int $maxDimension = null, + public ?int $frameRateLimit = null, ) { } diff --git a/src/GeneratedModels/IngressVideoLayerResponse.php b/src/GeneratedModels/IngressVideoLayerResponse.php index eaa85a8..6487ef3 100644 --- a/src/GeneratedModels/IngressVideoLayerResponse.php +++ b/src/GeneratedModels/IngressVideoLayerResponse.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $bitrate - * @property string $codec - * @property int $frameRateLimit - * @property int $maxDimension - * @property int $minDimension - */ class IngressVideoLayerResponse extends BaseModel { public function __construct( - public ?int $bitrate = null, public ?string $codec = null, - public ?int $frameRateLimit = null, - public ?int $maxDimension = null, + public ?int $bitrate = null, public ?int $minDimension = null, + public ?int $maxDimension = null, + public ?int $frameRateLimit = null, ) { } diff --git a/src/GeneratedModels/JoinCallAPIMetrics.php b/src/GeneratedModels/JoinCallAPIMetrics.php index f9049ec..f11b57c 100644 --- a/src/GeneratedModels/JoinCallAPIMetrics.php +++ b/src/GeneratedModels/JoinCallAPIMetrics.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $failures - * @property int $total - * @property ActiveCallsLatencyStats|null $latency - */ class JoinCallAPIMetrics extends BaseModel { public function __construct( - public ?int $failures = null, - public ?int $total = null, public ?ActiveCallsLatencyStats $latency = null, + public ?int $total = null, + public ?int $failures = null, ) { } diff --git a/src/GeneratedModels/KeyframeRuleParameters.php b/src/GeneratedModels/KeyframeRuleParameters.php new file mode 100644 index 0000000..2a969f9 --- /dev/null +++ b/src/GeneratedModels/KeyframeRuleParameters.php @@ -0,0 +1,17 @@ +|null $rules - * @property array|null $severityDescriptions - */ class LLMConfig extends BaseModel { public function __construct( - public ?string $appContext = null, public ?bool $async = null, public ?bool $enabled = null, /** @var array|null */ #[ArrayOf(LLMRule::class)] public ?array $rules = null, public ?array $severityDescriptions = null, + public ?string $appContext = null, ) { } diff --git a/src/GeneratedModels/LLMRule.php b/src/GeneratedModels/LLMRule.php index 411c657..94c3404 100644 --- a/src/GeneratedModels/LLMRule.php +++ b/src/GeneratedModels/LLMRule.php @@ -3,19 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $description - * @property string $label - * @property string|null $action - * @property array|null $severityRules - */ class LLMRule extends BaseModel { public function __construct( - public ?string $description = null, public ?string $label = null, + public ?string $description = null, public ?string $action = null, /** @var array|null */ #[ArrayOf(BodyguardSeverityRule::class)] diff --git a/src/GeneratedModels/LabelResponse.php b/src/GeneratedModels/LabelResponse.php new file mode 100644 index 0000000..d1e0750 --- /dev/null +++ b/src/GeneratedModels/LabelResponse.php @@ -0,0 +1,17 @@ + $blocklists */ class ListBlockListResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(BlockListResponse::class)] public ?array $blocklists = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/ListCallTypeResponse.php b/src/GeneratedModels/ListCallTypeResponse.php index cf82452..39e1597 100644 --- a/src/GeneratedModels/ListCallTypeResponse.php +++ b/src/GeneratedModels/ListCallTypeResponse.php @@ -5,15 +5,14 @@ namespace GetStream\GeneratedModels; /** * Response for ListCallType - * - * @property string $duration - * @property array $callTypes */ class ListCallTypeResponse extends BaseModel { public function __construct( - public ?string $duration = null, + /** @var array|null */ + #[MapOf(CallTypeResponse::class)] public ?array $callTypes = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ListChannelTypesResponse.php b/src/GeneratedModels/ListChannelTypesResponse.php index 134b6d7..ed154bf 100644 --- a/src/GeneratedModels/ListChannelTypesResponse.php +++ b/src/GeneratedModels/ListChannelTypesResponse.php @@ -3,17 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $channelTypes - */ class ListChannelTypesResponse extends BaseModel { public function __construct( - public ?string $duration = null, + /** @var array|null */ + #[MapOf(ChannelTypeConfig::class)] public ?array $channelTypes = null, // Object with all channel types + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ListCommandsResponse.php b/src/GeneratedModels/ListCommandsResponse.php index 8dc7f5f..65864b3 100644 --- a/src/GeneratedModels/ListCommandsResponse.php +++ b/src/GeneratedModels/ListCommandsResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $commands - */ class ListCommandsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of commands */ + /** @var array|null */ #[ArrayOf(Command::class)] public ?array $commands = null, // List of commands + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ListDevicesResponse.php b/src/GeneratedModels/ListDevicesResponse.php index f4881c5..38232ec 100644 --- a/src/GeneratedModels/ListDevicesResponse.php +++ b/src/GeneratedModels/ListDevicesResponse.php @@ -5,17 +5,14 @@ namespace GetStream\GeneratedModels; /** * List devices response - * - * @property string $duration - * @property array $devices */ class ListDevicesResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of devices */ + /** @var array|null */ #[ArrayOf(DeviceResponse::class)] public ?array $devices = null, // List of devices + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ListExternalStorageResponse.php b/src/GeneratedModels/ListExternalStorageResponse.php index 688d159..174d980 100644 --- a/src/GeneratedModels/ListExternalStorageResponse.php +++ b/src/GeneratedModels/ListExternalStorageResponse.php @@ -5,14 +5,13 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $externalStorages */ class ListExternalStorageResponse extends BaseModel { public function __construct( public ?string $duration = null, // Duration of the request in milliseconds + /** @var array|null */ + #[MapOf(ExternalStorageResponse::class)] public ?array $externalStorages = null, ) { } diff --git a/src/GeneratedModels/ListFeedGroupsResponse.php b/src/GeneratedModels/ListFeedGroupsResponse.php index f64a28f..20950b2 100644 --- a/src/GeneratedModels/ListFeedGroupsResponse.php +++ b/src/GeneratedModels/ListFeedGroupsResponse.php @@ -5,15 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $groups */ class ListFeedGroupsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds + /** @var array|null */ + #[MapOf(FeedGroupResponse::class)] public ?array $groups = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/ListFeedViewsResponse.php b/src/GeneratedModels/ListFeedViewsResponse.php index aab44a0..18fbd2f 100644 --- a/src/GeneratedModels/ListFeedViewsResponse.php +++ b/src/GeneratedModels/ListFeedViewsResponse.php @@ -3,17 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $views - */ class ListFeedViewsResponse extends BaseModel { public function __construct( - public ?string $duration = null, + /** @var array|null */ + #[MapOf(FeedViewResponse::class)] public ?array $views = null, // Map of feed view ID to feed view + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ListFeedVisibilitiesResponse.php b/src/GeneratedModels/ListFeedVisibilitiesResponse.php index 16688d7..63ec45f 100644 --- a/src/GeneratedModels/ListFeedVisibilitiesResponse.php +++ b/src/GeneratedModels/ListFeedVisibilitiesResponse.php @@ -3,17 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $feedVisibilities - */ class ListFeedVisibilitiesResponse extends BaseModel { public function __construct( - public ?string $duration = null, + /** @var array|null */ + #[MapOf(FeedVisibilityResponse::class)] public ?array $feedVisibilities = null, // Map of feed visibility configurations by name + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ListImportV2TasksResponse.php b/src/GeneratedModels/ListImportV2TasksResponse.php index 0a48abe..25cad03 100644 --- a/src/GeneratedModels/ListImportV2TasksResponse.php +++ b/src/GeneratedModels/ListImportV2TasksResponse.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $importTasks - * @property string|null $next - * @property string|null $prev */ class ListImportV2TasksResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(ImportV2TaskItem::class)] public ?array $importTasks = null, + public ?string $duration = null, // Duration of the request in milliseconds public ?string $next = null, public ?string $prev = null, ) { diff --git a/src/GeneratedModels/ListImportsResponse.php b/src/GeneratedModels/ListImportsResponse.php index 760a7d0..480c118 100644 --- a/src/GeneratedModels/ListImportsResponse.php +++ b/src/GeneratedModels/ListImportsResponse.php @@ -5,17 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $importTasks */ class ListImportsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(ImportTask::class)] public ?array $importTasks = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/ListPermissionsResponse.php b/src/GeneratedModels/ListPermissionsResponse.php index f7023cb..d87857a 100644 --- a/src/GeneratedModels/ListPermissionsResponse.php +++ b/src/GeneratedModels/ListPermissionsResponse.php @@ -5,17 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $permissions */ class ListPermissionsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(Permission::class)] public ?array $permissions = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/ListPushProvidersResponse.php b/src/GeneratedModels/ListPushProvidersResponse.php index f077778..05e18a4 100644 --- a/src/GeneratedModels/ListPushProvidersResponse.php +++ b/src/GeneratedModels/ListPushProvidersResponse.php @@ -5,17 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $pushProviders */ class ListPushProvidersResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(PushProviderResponse::class)] public ?array $pushProviders = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/ListRecordingsResponse.php b/src/GeneratedModels/ListRecordingsResponse.php index e45aab3..958a0a7 100644 --- a/src/GeneratedModels/ListRecordingsResponse.php +++ b/src/GeneratedModels/ListRecordingsResponse.php @@ -5,9 +5,6 @@ namespace GetStream\GeneratedModels; /** * Response for listing recordings - * - * @property string $duration - * @property array $recordings */ class ListRecordingsResponse extends BaseModel { diff --git a/src/GeneratedModels/ListRolesResponse.php b/src/GeneratedModels/ListRolesResponse.php index 5737642..e297a75 100644 --- a/src/GeneratedModels/ListRolesResponse.php +++ b/src/GeneratedModels/ListRolesResponse.php @@ -5,17 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $roles */ class ListRolesResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(Role::class)] public ?array $roles = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/ListSIPInboundRoutingRuleResponse.php b/src/GeneratedModels/ListSIPInboundRoutingRuleResponse.php index e964b55..e262dff 100644 --- a/src/GeneratedModels/ListSIPInboundRoutingRuleResponse.php +++ b/src/GeneratedModels/ListSIPInboundRoutingRuleResponse.php @@ -5,17 +5,14 @@ namespace GetStream\GeneratedModels; /** * Response containing the list of SIP Inbound Routing Rules - * - * @property string $duration - * @property array $sipInboundRoutingRules */ class ListSIPInboundRoutingRuleResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of SIP Inbound Routing Rules for the application */ + /** @var array|null */ #[ArrayOf(SIPInboundRoutingRuleResponse::class)] public ?array $sipInboundRoutingRules = null, // List of SIP Inbound Routing Rules for the application + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ListSIPTrunksResponse.php b/src/GeneratedModels/ListSIPTrunksResponse.php index 61009b4..3f849be 100644 --- a/src/GeneratedModels/ListSIPTrunksResponse.php +++ b/src/GeneratedModels/ListSIPTrunksResponse.php @@ -5,17 +5,14 @@ namespace GetStream\GeneratedModels; /** * Response containing the list of SIP trunks - * - * @property string $duration - * @property array $sipTrunks */ class ListSIPTrunksResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of SIP trunks for the application */ + /** @var array|null */ #[ArrayOf(SIPTrunkResponse::class)] public ?array $sipTrunks = null, // List of SIP trunks for the application + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ListTranscriptionsResponse.php b/src/GeneratedModels/ListTranscriptionsResponse.php index c19445a..d722cff 100644 --- a/src/GeneratedModels/ListTranscriptionsResponse.php +++ b/src/GeneratedModels/ListTranscriptionsResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $transcriptions - */ class ListTranscriptionsResponse extends BaseModel { public function __construct( public ?string $duration = null, - /** @var array|null List of transcriptions for the call */ + /** @var array|null */ #[ArrayOf(CallTranscription::class)] public ?array $transcriptions = null, // List of transcriptions for the call ) { diff --git a/src/GeneratedModels/LocationResponse.php b/src/GeneratedModels/LocationResponse.php new file mode 100644 index 0000000..91351ff --- /dev/null +++ b/src/GeneratedModels/LocationResponse.php @@ -0,0 +1,20 @@ +|null $latestDeliveredMessages - */ class MarkDeliveredRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/MarkDeliveredResponse.php b/src/GeneratedModels/MarkDeliveredResponse.php index e4c495f..cb330d4 100644 --- a/src/GeneratedModels/MarkDeliveredResponse.php +++ b/src/GeneratedModels/MarkDeliveredResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration */ class MarkDeliveredResponse extends BaseModel { diff --git a/src/GeneratedModels/MarkReadRequest.php b/src/GeneratedModels/MarkReadRequest.php index 37c1a60..d46da4e 100644 --- a/src/GeneratedModels/MarkReadRequest.php +++ b/src/GeneratedModels/MarkReadRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $messageID - * @property string|null $threadID - * @property string|null $userID - * @property UserRequest|null $user - */ class MarkReadRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $messageID = null, // ID of the message that is considered last read by client public ?string $threadID = null, // Optional Thread ID to specifically mark a given thread as read public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/MarkReadResponse.php b/src/GeneratedModels/MarkReadResponse.php index 060bb0b..5a6abb0 100644 --- a/src/GeneratedModels/MarkReadResponse.php +++ b/src/GeneratedModels/MarkReadResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property MessageReadEvent|null $event - */ class MarkReadResponse extends BaseModel { public function __construct( + public ?MarkReadResponseEvent $event = null, public ?string $duration = null, // Duration of the request in milliseconds - public ?MessageReadEvent $event = null, ) { } diff --git a/src/GeneratedModels/MarkReadResponseEvent.php b/src/GeneratedModels/MarkReadResponseEvent.php new file mode 100644 index 0000000..be26778 --- /dev/null +++ b/src/GeneratedModels/MarkReadResponseEvent.php @@ -0,0 +1,25 @@ + $members - */ class MembersResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null List of found members */ + /** @var array|null */ #[ArrayOf(ChannelMemberResponse::class)] public ?array $members = null, // List of found members + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/MembershipLevelResponse.php b/src/GeneratedModels/MembershipLevelResponse.php index cafb2ff..d6ff643 100644 --- a/src/GeneratedModels/MembershipLevelResponse.php +++ b/src/GeneratedModels/MembershipLevelResponse.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $id - * @property string $name - * @property int $priority - * @property \DateTime $updatedAt - * @property array $tags - * @property string|null $description - * @property object|null $custom - */ class MembershipLevelResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // When the membership level was created public ?string $id = null, // Unique identifier for the membership level public ?string $name = null, // Display name for the membership level + public ?string $description = null, // Description of the membership level public ?int $priority = null, // Priority level - public ?\DateTime $updatedAt = null, // When the membership level was last updated public ?array $tags = null, // Activity tags this membership level gives access to - public ?string $description = null, // Description of the membership level public ?object $custom = null, // Custom data for the membership level + public ?\DateTime $createdAt = null, // When the membership level was created + public ?\DateTime $updatedAt = null, // When the membership level was last updated ) { } diff --git a/src/GeneratedModels/MessageActionRequest.php b/src/GeneratedModels/MessageActionRequest.php index cc8bb58..39e2c94 100644 --- a/src/GeneratedModels/MessageActionRequest.php +++ b/src/GeneratedModels/MessageActionRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $formData - * @property string|null $userID - * @property UserRequest|null $user - */ class MessageActionRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?array $formData = null, // ReadOnlyData to execute command with public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/MessageActionResponse.php b/src/GeneratedModels/MessageActionResponse.php new file mode 100644 index 0000000..c25945e --- /dev/null +++ b/src/GeneratedModels/MessageActionResponse.php @@ -0,0 +1,19 @@ +|null $threadParticipants - * @property Message|null $message - * @property User|null $user + * Emitted when a message is deleted. */ class MessageDeletedEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?bool $hardDelete = null, - public ?string $type = null, - public ?bool $deletedForMe = null, - public ?string $team = null, - /** @var array|null */ - #[ArrayOf(User::class)] - public ?array $threadParticipants = null, - public ?Message $message = null, - public ?User $user = null, + public ?MessageResponse $message = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "message.deleted" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel where the message was sent + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, // The number of messages in the channel + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel where the message was sent + public ?string $channelID = null, // The ID of the channel where the message was sent + public ?string $messageID = null, + public ?bool $hardDelete = null, // Whether the message was hard deleted + public ?bool $deletedForMe = null, // Whether the message was deleted only for the current user ) { } diff --git a/src/GeneratedModels/MessageFlagResponse.php b/src/GeneratedModels/MessageFlagResponse.php index a5f772b..1aeeacf 100644 --- a/src/GeneratedModels/MessageFlagResponse.php +++ b/src/GeneratedModels/MessageFlagResponse.php @@ -3,41 +3,23 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property bool $createdByAutomod - * @property \DateTime $updatedAt - * @property \DateTime|null $approvedAt - * @property string|null $reason - * @property \DateTime|null $rejectedAt - * @property \DateTime|null $reviewedAt - * @property object|null $custom - * @property FlagDetails|null $details - * @property Message|null $message - * @property FlagFeedback|null $moderationFeedback - * @property MessageModerationResult|null $moderationResult - * @property UserResponse|null $reviewedBy - * @property UserResponse|null $user - */ class MessageFlagResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, + public ?FlagDetailsResponse $details = null, + public ?MessageResponse $message = null, + public ?FlagFeedbackResponse $moderationFeedback = null, + public ?MessageModerationResult $moderationResult = null, + public ?UserResponse $reviewedBy = null, + public ?UserResponse $user = null, public ?bool $createdByAutomod = null, + public ?string $reason = null, + public ?object $custom = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, + public ?\DateTime $reviewedAt = null, public ?\DateTime $approvedAt = null, - public ?string $reason = null, public ?\DateTime $rejectedAt = null, - public ?\DateTime $reviewedAt = null, - public ?object $custom = null, - public ?FlagDetails $details = null, - public ?Message $message = null, - public ?FlagFeedback $moderationFeedback = null, - public ?MessageModerationResult $moderationResult = null, - public ?UserResponse $reviewedBy = null, - public ?UserResponse $user = null, ) { } diff --git a/src/GeneratedModels/MessageFlaggedEvent.php b/src/GeneratedModels/MessageFlaggedEvent.php index ff63245..3bc6c7d 100644 --- a/src/GeneratedModels/MessageFlaggedEvent.php +++ b/src/GeneratedModels/MessageFlaggedEvent.php @@ -4,28 +4,29 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $cid - * @property \DateTime $createdAt - * @property string $type - * @property array|null $threadParticipants - * @property Flag|null $flag - * @property Message|null $message - * @property User|null $user + * This event is sent when a message gets flagged. The event contains information about the message that was flagged. */ class MessageFlaggedEvent extends BaseModel { public function __construct( - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, - /** @var array|null */ - #[ArrayOf(User::class)] - public ?array $threadParticipants = null, - public ?Flag $flag = null, - public ?Message $message = null, - public ?User $user = null, + public ?MessageModerationResult $details = null, + public ?FlagResponse $flag = null, + public ?MessageResponse $message = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "message.flagged" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?string $cid = null, // The CID of the channel where the message was sent + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, // The number of messages in the channel + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel where the message was sent + public ?string $channelID = null, // The ID of the channel where the message was sent + public ?string $messageID = null, + public ?string $reason = null, // The reason for the flag + public ?int $totalFlags = null, // The total number of flags for the user + public ?object $custom = null, // Custom data ) { } diff --git a/src/GeneratedModels/MessageHistoryEntryResponse.php b/src/GeneratedModels/MessageHistoryEntryResponse.php index f5ae37b..a8ce4e6 100644 --- a/src/GeneratedModels/MessageHistoryEntryResponse.php +++ b/src/GeneratedModels/MessageHistoryEntryResponse.php @@ -3,24 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $isDeleted - * @property string $messageID - * @property \DateTime $messageUpdatedAt - * @property string $messageUpdatedByID - * @property string $text - * @property array $attachments - * @property object $custom - */ class MessageHistoryEntryResponse extends BaseModel { public function __construct( - public ?bool $isDeleted = null, public ?string $messageID = null, - public ?\DateTime $messageUpdatedAt = null, public ?string $messageUpdatedByID = null, + public ?\DateTime $messageUpdatedAt = null, + public ?bool $isDeleted = null, public ?string $text = null, /** @var array|null */ #[ArrayOf(Attachment::class)] diff --git a/src/GeneratedModels/MessageModerationResult.php b/src/GeneratedModels/MessageModerationResult.php index 0446d55..9dd3201 100644 --- a/src/GeneratedModels/MessageModerationResult.php +++ b/src/GeneratedModels/MessageModerationResult.php @@ -5,33 +5,21 @@ namespace GetStream\GeneratedModels; /** * Result of the message moderation - * - * @property string $action - * @property \DateTime $createdAt - * @property string $messageID - * @property \DateTime $updatedAt - * @property bool $userBadKarma - * @property int $userKarma - * @property string|null $blockedWord - * @property string|null $blocklistName - * @property string|null $moderatedBy - * @property ModerationResponse|null $aiModerationResponse - * @property Thresholds|null $moderationThresholds */ class MessageModerationResult extends BaseModel { public function __construct( - public ?string $action = null, // Action taken by automod - public ?\DateTime $createdAt = null, // Date/time of creation + public ?ModerationResponse $aiModerationResponse = null, + public ?Thresholds $moderationThresholds = null, public ?string $messageID = null, // ID of the message - public ?\DateTime $updatedAt = null, // Date/time of the last update - public ?bool $userBadKarma = null, // Whether user has bad karma - public ?int $userKarma = null, // Karma of the user + public ?string $action = null, // Action taken by automod + public ?string $moderatedBy = null, // User who moderated the message public ?string $blockedWord = null, // Word that was blocked public ?string $blocklistName = null, // Name of the blocklist - public ?string $moderatedBy = null, // User who moderated the message - public ?ModerationResponse $aiModerationResponse = null, - public ?Thresholds $moderationThresholds = null, + public ?int $userKarma = null, // Karma of the user + public ?bool $userBadKarma = null, // Whether user has bad karma + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $updatedAt = null, // Date/time of the last update ) { } diff --git a/src/GeneratedModels/MessageNewEvent.php b/src/GeneratedModels/MessageNewEvent.php index 12a4aa3..982f8d6 100644 --- a/src/GeneratedModels/MessageNewEvent.php +++ b/src/GeneratedModels/MessageNewEvent.php @@ -4,34 +4,34 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property int $watcherCount - * @property string $type - * @property string|null $team - * @property array|null $threadParticipants - * @property Message|null $message - * @property User|null $user + * Emitted when a message was successfully sent or when a message became visible after command execution. */ class MessageNewEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?int $watcherCount = null, - public ?string $type = null, - public ?string $team = null, - /** @var array|null */ - #[ArrayOf(User::class)] - public ?array $threadParticipants = null, - public ?Message $message = null, - public ?User $user = null, + public ?ChannelResponse $channel = null, + public ?MessageResponse $message = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "message.new" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel where the message was sent + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, // The number of messages in the channel + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel where the message was sent + public ?string $channelID = null, // The ID of the channel where the message was sent + public ?string $messageID = null, + public ?int $watcherCount = null, // The number of watchers + /** @var array|null */ + #[ArrayOf(UserResponseCommonFields::class)] + public ?array $threadParticipants = null, // The participants of the thread + public ?string $parentAuthor = null, // The author of the parent message + public ?int $unreadCount = null, // The number of unread messages + public ?int $totalUnreadCount = null, + public ?int $unreadChannels = null, ) { } diff --git a/src/GeneratedModels/MessageOptions.php b/src/GeneratedModels/MessageOptions.php index 51ababa..22e91bf 100644 --- a/src/GeneratedModels/MessageOptions.php +++ b/src/GeneratedModels/MessageOptions.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $includeThreadParticipants - */ class MessageOptions extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/MessagePaginationParams.php b/src/GeneratedModels/MessagePaginationParams.php index 8a4b51d..c7eec0f 100644 --- a/src/GeneratedModels/MessagePaginationParams.php +++ b/src/GeneratedModels/MessagePaginationParams.php @@ -3,35 +3,20 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime|null $createdAtAfter - * @property \DateTime|null $createdAtAfterOrEqual - * @property \DateTime|null $createdAtAround - * @property \DateTime|null $createdAtBefore - * @property \DateTime|null $createdAtBeforeOrEqual - * @property string|null $idAround - * @property string|null $idGt - * @property string|null $idGte - * @property string|null $idLt - * @property string|null $idLte - * @property int|null $limit - */ class MessagePaginationParams extends BaseModel { public function __construct( - public ?\DateTime $createdAtAfter = null, // The timestamp to get messages with a created_at timestamp greater than + public ?int $limit = null, // The maximum number of messages to return (max limit + public ?string $idGte = null, // The ID of the message to get messages with a timestamp greater than or equal to + public ?string $idGt = null, // The ID of the message to get messages with a timestamp greater than + public ?string $idLte = null, // The ID of the message to get messages with a timestamp smaller than or equal to + public ?string $idLt = null, // The ID of the message to get messages with a timestamp smaller than public ?\DateTime $createdAtAfterOrEqual = null, // The timestamp to get messages with a created_at timestamp greater than or equal to - public ?\DateTime $createdAtAround = null, // The result will be a set of messages, that are both older and newer than the created_at timestamp provided, distributed evenly around the timestamp - public ?\DateTime $createdAtBefore = null, // The timestamp to get messages with a created_at timestamp smaller than + public ?\DateTime $createdAtAfter = null, // The timestamp to get messages with a created_at timestamp greater than public ?\DateTime $createdAtBeforeOrEqual = null, // The timestamp to get messages with a created_at timestamp smaller than or equal to + public ?\DateTime $createdAtBefore = null, // The timestamp to get messages with a created_at timestamp smaller than public ?string $idAround = null, // The result will be a set of messages, that are both older and newer than the message with the provided ID, and the message with the ID provided will be in the middle of the set - public ?string $idGt = null, // The ID of the message to get messages with a timestamp greater than - public ?string $idGte = null, // The ID of the message to get messages with a timestamp greater than or equal to - public ?string $idLt = null, // The ID of the message to get messages with a timestamp smaller than - public ?string $idLte = null, // The ID of the message to get messages with a timestamp smaller than or equal to - public ?int $limit = null, // The maximum number of messages to return (max limit + public ?\DateTime $createdAtAround = null, // The result will be a set of messages, that are both older and newer than the created_at timestamp provided, distributed evenly around the timestamp ) { } diff --git a/src/GeneratedModels/MessageReadEvent.php b/src/GeneratedModels/MessageReadEvent.php index 88d68d8..d5407d2 100644 --- a/src/GeneratedModels/MessageReadEvent.php +++ b/src/GeneratedModels/MessageReadEvent.php @@ -4,34 +4,26 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $type - * @property \DateTime|null $channelLastMessageAt - * @property string|null $lastReadMessageID - * @property string|null $team - * @property ChannelResponse|null $channel - * @property ThreadResponse|null $thread - * @property UserResponseCommonFields|null $user + * Emitted when a channel or thread is marked as read. */ class MessageReadEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, - public ?\DateTime $channelLastMessageAt = null, - public ?string $lastReadMessageID = null, - public ?string $team = null, public ?ChannelResponse $channel = null, public ?ThreadResponse $thread = null, public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "message.read" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel where the message was read + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, // The number of messages in the channel + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel where the message was read + public ?string $channelID = null, // The ID of the channel where the message was read + public ?string $lastReadMessageID = null, // The ID of the last read message ) { } diff --git a/src/GeneratedModels/MessageRequest.php b/src/GeneratedModels/MessageRequest.php index 8964b8b..1600bd1 100644 --- a/src/GeneratedModels/MessageRequest.php +++ b/src/GeneratedModels/MessageRequest.php @@ -4,54 +4,35 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string|null $html - * @property string|null $id - * @property string|null $mml - * @property string|null $parentID - * @property \DateTime|null $pinExpires - * @property bool|null $pinned - * @property \DateTime|null $pinnedAt - * @property string|null $pollID - * @property string|null $quotedMessageID - * @property bool|null $showInChannel - * @property bool|null $silent - * @property string|null $text - * @property string|null $type - * @property string|null $userID - * @property array|null $attachments - * @property array|null $mentionedUsers - * @property array|null $restrictedVisibility - * @property object|null $custom - * @property SharedLocation|null $sharedLocation - * @property UserRequest|null $user + * Message data for creating or updating a message */ class MessageRequest extends BaseModel { public function __construct( - public ?string $html = null, - public ?string $id = null, - public ?string $mml = null, - public ?string $parentID = null, - public ?\DateTime $pinExpires = null, - public ?bool $pinned = null, - public ?\DateTime $pinnedAt = null, - public ?string $pollID = null, - public ?string $quotedMessageID = null, - public ?bool $showInChannel = null, - public ?bool $silent = null, - public ?string $text = null, - public ?string $type = null, - public ?string $userID = null, + public ?SharedLocation $sharedLocation = null, + public ?UserRequest $user = null, + public ?string $id = null, // Message ID is unique string identifier of the message + public ?string $text = null, // Text of the message. Should be empty if `mml` is provided + public ?string $mml = null, // Should be empty if `text` is provided. Can only be set when using server-side API /** @var array|null */ #[ArrayOf(Attachment::class)] - public ?array $attachments = null, - public ?array $mentionedUsers = null, - public ?array $restrictedVisibility = null, + public ?array $attachments = null, // Array of message attachments + public ?string $parentID = null, // ID of parent message (thread) + public ?bool $showInChannel = null, // Whether thread reply should be shown in the channel as well public ?object $custom = null, - public ?SharedLocation $sharedLocation = null, - public ?UserRequest $user = null, + public ?array $mentionedUsers = null, // Array of user IDs to mention + public ?bool $mentionedChannel = null, + public ?bool $mentionedHere = null, + public ?string $quotedMessageID = null, + public ?string $html = null, // Contains HTML markup of the message. Can only be set when using server-side API + public ?string $type = null, // Contains type of the message. One of: regular, system + public ?bool $silent = null, // Whether message is silent or not + public ?bool $pinned = null, // Whether message is pinned or not + public ?\DateTime $pinnedAt = null, // Date when message got pinned + public ?\DateTime $pinExpires = null, // Date when pinned message expires + public ?array $restrictedVisibility = null, // A list of user ids that have restricted visibility to the message + public ?string $userID = null, + public ?string $pollID = null, // Identifier of the poll to include in the message ) { } diff --git a/src/GeneratedModels/MessageResponse.php b/src/GeneratedModels/MessageResponse.php index 22ed36f..e46bcb7 100644 --- a/src/GeneratedModels/MessageResponse.php +++ b/src/GeneratedModels/MessageResponse.php @@ -5,109 +5,68 @@ namespace GetStream\GeneratedModels; /** * Represents any chat message - * - * @property string $cid - * @property \DateTime $createdAt - * @property int $deletedReplyCount - * @property string $html - * @property string $id - * @property bool $pinned - * @property int $replyCount - * @property bool $shadowed - * @property bool $silent - * @property string $text - * @property string $type - * @property \DateTime $updatedAt - * @property array $attachments - * @property array $latestReactions - * @property array $mentionedUsers - * @property array $ownReactions - * @property array $restrictedVisibility - * @property object $custom - * @property array $reactionCounts - * @property array $reactionScores - * @property UserResponse $user - * @property string|null $command - * @property \DateTime|null $deletedAt - * @property bool|null $deletedForMe - * @property \DateTime|null $messageTextUpdatedAt - * @property string|null $mml - * @property string|null $parentID - * @property \DateTime|null $pinExpires - * @property \DateTime|null $pinnedAt - * @property string|null $pollID - * @property string|null $quotedMessageID - * @property bool|null $showInChannel - * @property array|null $threadParticipants - * @property DraftResponse|null $draft - * @property array|null $i18n - * @property array|null $imageLabels - * @property ChannelMemberResponse|null $member - * @property ModerationV2Response|null $moderation - * @property UserResponse|null $pinnedBy - * @property PollResponseData|null $poll - * @property MessageResponse|null $quotedMessage - * @property array|null $reactionGroups - * @property ReminderResponseData|null $reminder - * @property SharedLocationResponseData|null $sharedLocation */ class MessageResponse extends BaseModel { public function __construct( - public ?string $cid = null, // Channel unique identifier in : format - public ?\DateTime $createdAt = null, // Date/time of creation - public ?int $deletedReplyCount = null, - public ?string $html = null, // Contains HTML markup of the message. Can only be set when using server-side API + public ?DraftResponse $draft = null, + public ?ChannelMemberResponse $member = null, + public ?ModerationV2Response $moderation = null, + public ?UserResponse $pinnedBy = null, + public ?PollResponseData $poll = null, + public ?MessageResponse $quotedMessage = null, + public ?ReminderResponseData $reminder = null, + public ?SharedLocationResponseData $sharedLocation = null, + public ?UserResponse $user = null, public ?string $id = null, // Message ID is unique string identifier of the message - public ?bool $pinned = null, // Whether message is pinned or not - public ?int $replyCount = null, // Number of replies to this message - public ?bool $shadowed = null, // Whether the message was shadowed or not - public ?bool $silent = null, // Whether message is silent or not public ?string $text = null, // Text of the message. Should be empty if `mml` is provided - public ?string $type = null, // Contains type of the message - public ?\DateTime $updatedAt = null, // Date/time of the last update - /** @var array|null Array of message attachments */ + public ?string $mml = null, // Should be empty if `text` is provided. Can only be set when using server-side API + public ?string $command = null, // Contains provided slash command + public ?string $html = null, // Contains HTML markup of the message. Can only be set when using server-side API + public ?string $type = null, // Contains type of the message. One of: regular, ephemeral, error, reply, system, deleted + /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, // Array of message attachments - /** @var array|null List of 10 latest reactions to this message */ + /** @var array|null */ #[ArrayOf(ReactionResponse::class)] public ?array $latestReactions = null, // List of 10 latest reactions to this message - /** @var array|null List of mentioned users */ - #[ArrayOf(UserResponse::class)] - public ?array $mentionedUsers = null, // List of mentioned users - /** @var array|null List of 10 latest reactions of authenticated user to this message */ + /** @var array|null */ #[ArrayOf(ReactionResponse::class)] public ?array $ownReactions = null, // List of 10 latest reactions of authenticated user to this message - public ?array $restrictedVisibility = null, // A list of user ids that have restricted visibility to the message, if the list is not empty, the message is only visible to the users in the list - public ?object $custom = null, public ?array $reactionCounts = null, // An object containing number of reactions of each type. Key: reaction type (string), value: number of reactions (int) public ?array $reactionScores = null, // An object containing scores of reactions of each type. Key: reaction type (string), value: total score of reactions (int) - public ?UserResponse $user = null, - public ?string $command = null, // Contains provided slash command - public ?\DateTime $deletedAt = null, // Date/time of deletion - public ?bool $deletedForMe = null, - public ?\DateTime $messageTextUpdatedAt = null, - public ?string $mml = null, // Should be empty if `text` is provided. Can only be set when using server-side API + /** @var array|null */ + #[MapOf(ReactionGroupResponse::class)] + public ?array $reactionGroups = null, public ?string $parentID = null, // ID of parent message (thread) - public ?\DateTime $pinExpires = null, // Date when pinned message expires - public ?\DateTime $pinnedAt = null, // Date when message got pinned - public ?string $pollID = null, // Identifier of the poll to include in the message - public ?string $quotedMessageID = null, public ?bool $showInChannel = null, // Whether thread reply should be shown in the channel as well - /** @var array|null List of users who participate in thread */ + public ?int $replyCount = null, // Number of replies to this message + public ?int $deletedReplyCount = null, + public ?string $quotedMessageID = null, + /** @var array|null */ #[ArrayOf(UserResponse::class)] public ?array $threadParticipants = null, // List of users who participate in thread - public ?DraftResponse $draft = null, - public ?array $i18n = null, // Object with translations. Key `language` contains the original language key. Other keys contain translations + public ?string $cid = null, // Channel unique identifier in : format + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $updatedAt = null, // Date/time of the last update + public ?\DateTime $deletedAt = null, // Date/time of deletion + public ?object $custom = null, + public ?bool $shadowed = null, // Whether the message was shadowed or not public ?array $imageLabels = null, // Contains image moderation information - public ?ChannelMemberResponse $member = null, - public ?ModerationV2Response $moderation = null, - public ?UserResponse $pinnedBy = null, - public ?PollResponseData $poll = null, - public ?MessageResponse $quotedMessage = null, - public ?array $reactionGroups = null, - public ?ReminderResponseData $reminder = null, - public ?SharedLocationResponseData $sharedLocation = null, + /** @var array|null */ + #[ArrayOf(UserResponse::class)] + public ?array $mentionedUsers = null, // List of mentioned users + public ?bool $mentionedChannel = null, // Whether the message mentioned the channel tag + public ?bool $mentionedHere = null, // Whether the message mentioned online users with @here tag + public ?array $i18n = null, // Object with translations. Key `language` contains the original language key. Other keys contain translations + public ?bool $silent = null, // Whether message is silent or not + public ?bool $pinned = null, // Whether message is pinned or not + public ?\DateTime $pinnedAt = null, // Date when message got pinned + public ?\DateTime $pinExpires = null, // Date when pinned message expires + public ?\DateTime $messageTextUpdatedAt = null, + public ?string $pollID = null, // Identifier of the poll to include in the message + public ?array $restrictedVisibility = null, // A list of user ids that have restricted visibility to the message, if the list is not empty, the message is only visible to the users in the list + public ?bool $deletedForMe = null, ) { } diff --git a/src/GeneratedModels/MessageStatsResponse.php b/src/GeneratedModels/MessageStatsResponse.php index e6673cc..454ef91 100644 --- a/src/GeneratedModels/MessageStatsResponse.php +++ b/src/GeneratedModels/MessageStatsResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $countOverTime - */ class MessageStatsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/MessageUnblockedEvent.php b/src/GeneratedModels/MessageUnblockedEvent.php index 8c3be8b..3fd5b71 100644 --- a/src/GeneratedModels/MessageUnblockedEvent.php +++ b/src/GeneratedModels/MessageUnblockedEvent.php @@ -4,26 +4,19 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $cid - * @property \DateTime $createdAt - * @property string $type - * @property array|null $threadParticipants - * @property Message|null $message - * @property User|null $user + * Emitted when a message is unblocked. */ class MessageUnblockedEvent extends BaseModel { public function __construct( - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, - /** @var array|null */ - #[ArrayOf(User::class)] - public ?array $threadParticipants = null, - public ?Message $message = null, - public ?User $user = null, + public ?MessageResponse $message = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "message.unblocked" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel where the message was unblocked + public ?string $messageID = null, ) { } diff --git a/src/GeneratedModels/MessageUndeletedEvent.php b/src/GeneratedModels/MessageUndeletedEvent.php index cdb1c30..4080944 100644 --- a/src/GeneratedModels/MessageUndeletedEvent.php +++ b/src/GeneratedModels/MessageUndeletedEvent.php @@ -4,32 +4,24 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $type - * @property string|null $team - * @property array|null $threadParticipants - * @property Message|null $message - * @property User|null $user + * Emitted when a message is undeleted. */ class MessageUndeletedEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, - public ?string $team = null, - /** @var array|null */ - #[ArrayOf(User::class)] - public ?array $threadParticipants = null, - public ?Message $message = null, - public ?User $user = null, + public ?MessageResponse $message = null, + public ?string $type = null, // The type of event: "message.undeleted" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel where the message was sent + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, // The number of messages in the channel + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel where the message was sent + public ?string $channelID = null, // The ID of the channel where the message was sent + public ?string $messageID = null, ) { } diff --git a/src/GeneratedModels/MessageUpdate.php b/src/GeneratedModels/MessageUpdate.php index 9e157ed..0baa5c7 100644 --- a/src/GeneratedModels/MessageUpdate.php +++ b/src/GeneratedModels/MessageUpdate.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $oldText - * @property MessageChangeSet|null $changeSet - */ class MessageUpdate extends BaseModel { public function __construct( - public ?string $oldText = null, public ?MessageChangeSet $changeSet = null, + public ?string $oldText = null, ) { } diff --git a/src/GeneratedModels/MessageUpdatedEvent.php b/src/GeneratedModels/MessageUpdatedEvent.php index fbb7edc..862de74 100644 --- a/src/GeneratedModels/MessageUpdatedEvent.php +++ b/src/GeneratedModels/MessageUpdatedEvent.php @@ -4,32 +4,26 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $type - * @property string|null $team - * @property array|null $threadParticipants - * @property Message|null $message - * @property User|null $user + * Emitted when a BaseEvent is updated with translation data or when a message is updated. */ class MessageUpdatedEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, - public ?string $team = null, - /** @var array|null */ - #[ArrayOf(User::class)] - public ?array $threadParticipants = null, - public ?Message $message = null, - public ?User $user = null, + public ?MessageResponse $message = null, + public ?MessageUpdate $messageUpdate = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "message.updated" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel where the message was sent + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, // The number of messages in the channel + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel where the message was sent + public ?string $channelID = null, // The ID of the channel where the message was sent + public ?string $messageID = null, ) { } diff --git a/src/GeneratedModels/MessageWithChannelResponse.php b/src/GeneratedModels/MessageWithChannelResponse.php index 4525248..34f6601 100644 --- a/src/GeneratedModels/MessageWithChannelResponse.php +++ b/src/GeneratedModels/MessageWithChannelResponse.php @@ -5,111 +5,69 @@ namespace GetStream\GeneratedModels; /** * Represents any chat message - * - * @property string $cid - * @property \DateTime $createdAt - * @property int $deletedReplyCount - * @property string $html - * @property string $id - * @property bool $pinned - * @property int $replyCount - * @property bool $shadowed - * @property bool $silent - * @property string $text - * @property string $type - * @property \DateTime $updatedAt - * @property array $attachments - * @property array $latestReactions - * @property array $mentionedUsers - * @property array $ownReactions - * @property array $restrictedVisibility - * @property ChannelResponse $channel - * @property object $custom - * @property array $reactionCounts - * @property array $reactionScores - * @property UserResponse $user - * @property string|null $command - * @property \DateTime|null $deletedAt - * @property bool|null $deletedForMe - * @property \DateTime|null $messageTextUpdatedAt - * @property string|null $mml - * @property string|null $parentID - * @property \DateTime|null $pinExpires - * @property \DateTime|null $pinnedAt - * @property string|null $pollID - * @property string|null $quotedMessageID - * @property bool|null $showInChannel - * @property array|null $threadParticipants - * @property DraftResponse|null $draft - * @property array|null $i18n - * @property array|null $imageLabels - * @property ChannelMemberResponse|null $member - * @property ModerationV2Response|null $moderation - * @property UserResponse|null $pinnedBy - * @property PollResponseData|null $poll - * @property MessageResponse|null $quotedMessage - * @property array|null $reactionGroups - * @property ReminderResponseData|null $reminder - * @property SharedLocationResponseData|null $sharedLocation */ class MessageWithChannelResponse extends BaseModel { public function __construct( - public ?string $cid = null, // Channel unique identifier in : format - public ?\DateTime $createdAt = null, // Date/time of creation - public ?int $deletedReplyCount = null, - public ?string $html = null, // Contains HTML markup of the message. Can only be set when using server-side API + public ?ChannelResponse $channel = null, + public ?DraftResponse $draft = null, + public ?ChannelMemberResponse $member = null, + public ?ModerationV2Response $moderation = null, + public ?UserResponse $pinnedBy = null, + public ?PollResponseData $poll = null, + public ?MessageResponse $quotedMessage = null, + public ?ReminderResponseData $reminder = null, + public ?SharedLocationResponseData $sharedLocation = null, + public ?UserResponse $user = null, public ?string $id = null, // Message ID is unique string identifier of the message - public ?bool $pinned = null, // Whether message is pinned or not - public ?int $replyCount = null, // Number of replies to this message - public ?bool $shadowed = null, // Whether the message was shadowed or not - public ?bool $silent = null, // Whether message is silent or not public ?string $text = null, // Text of the message. Should be empty if `mml` is provided - public ?string $type = null, // Contains type of the message - public ?\DateTime $updatedAt = null, // Date/time of the last update - /** @var array|null Array of message attachments */ + public ?string $mml = null, // Should be empty if `text` is provided. Can only be set when using server-side API + public ?string $command = null, // Contains provided slash command + public ?string $html = null, // Contains HTML markup of the message. Can only be set when using server-side API + public ?string $type = null, // Contains type of the message. One of: regular, ephemeral, error, reply, system, deleted + /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, // Array of message attachments - /** @var array|null List of 10 latest reactions to this message */ + /** @var array|null */ #[ArrayOf(ReactionResponse::class)] public ?array $latestReactions = null, // List of 10 latest reactions to this message - /** @var array|null List of mentioned users */ - #[ArrayOf(UserResponse::class)] - public ?array $mentionedUsers = null, // List of mentioned users - /** @var array|null List of 10 latest reactions of authenticated user to this message */ + /** @var array|null */ #[ArrayOf(ReactionResponse::class)] public ?array $ownReactions = null, // List of 10 latest reactions of authenticated user to this message - public ?array $restrictedVisibility = null, // A list of user ids that have restricted visibility to the message, if the list is not empty, the message is only visible to the users in the list - public ?ChannelResponse $channel = null, - public ?object $custom = null, public ?array $reactionCounts = null, // An object containing number of reactions of each type. Key: reaction type (string), value: number of reactions (int) public ?array $reactionScores = null, // An object containing scores of reactions of each type. Key: reaction type (string), value: total score of reactions (int) - public ?UserResponse $user = null, - public ?string $command = null, // Contains provided slash command - public ?\DateTime $deletedAt = null, // Date/time of deletion - public ?bool $deletedForMe = null, - public ?\DateTime $messageTextUpdatedAt = null, - public ?string $mml = null, // Should be empty if `text` is provided. Can only be set when using server-side API + /** @var array|null */ + #[MapOf(ReactionGroupResponse::class)] + public ?array $reactionGroups = null, public ?string $parentID = null, // ID of parent message (thread) - public ?\DateTime $pinExpires = null, // Date when pinned message expires - public ?\DateTime $pinnedAt = null, // Date when message got pinned - public ?string $pollID = null, // Identifier of the poll to include in the message - public ?string $quotedMessageID = null, public ?bool $showInChannel = null, // Whether thread reply should be shown in the channel as well - /** @var array|null List of users who participate in thread */ + public ?int $replyCount = null, // Number of replies to this message + public ?int $deletedReplyCount = null, + public ?string $quotedMessageID = null, + /** @var array|null */ #[ArrayOf(UserResponse::class)] public ?array $threadParticipants = null, // List of users who participate in thread - public ?DraftResponse $draft = null, - public ?array $i18n = null, // Object with translations. Key `language` contains the original language key. Other keys contain translations + public ?string $cid = null, // Channel unique identifier in : format + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $updatedAt = null, // Date/time of the last update + public ?\DateTime $deletedAt = null, // Date/time of deletion + public ?object $custom = null, + public ?bool $shadowed = null, // Whether the message was shadowed or not public ?array $imageLabels = null, // Contains image moderation information - public ?ChannelMemberResponse $member = null, - public ?ModerationV2Response $moderation = null, - public ?UserResponse $pinnedBy = null, - public ?PollResponseData $poll = null, - public ?MessageResponse $quotedMessage = null, - public ?array $reactionGroups = null, - public ?ReminderResponseData $reminder = null, - public ?SharedLocationResponseData $sharedLocation = null, + /** @var array|null */ + #[ArrayOf(UserResponse::class)] + public ?array $mentionedUsers = null, // List of mentioned users + public ?bool $mentionedChannel = null, // Whether the message mentioned the channel tag + public ?bool $mentionedHere = null, // Whether the message mentioned online users with @here tag + public ?array $i18n = null, // Object with translations. Key `language` contains the original language key. Other keys contain translations + public ?bool $silent = null, // Whether message is silent or not + public ?bool $pinned = null, // Whether message is pinned or not + public ?\DateTime $pinnedAt = null, // Date when message got pinned + public ?\DateTime $pinExpires = null, // Date when pinned message expires + public ?\DateTime $messageTextUpdatedAt = null, + public ?string $pollID = null, // Identifier of the poll to include in the message + public ?array $restrictedVisibility = null, // A list of user ids that have restricted visibility to the message, if the list is not empty, the message is only visible to the users in the list + public ?bool $deletedForMe = null, ) { } diff --git a/src/GeneratedModels/MetricDescriptor.php b/src/GeneratedModels/MetricDescriptor.php index 2fc6a3f..56caccb 100644 --- a/src/GeneratedModels/MetricDescriptor.php +++ b/src/GeneratedModels/MetricDescriptor.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $label - * @property string|null $description - * @property string|null $unit - */ class MetricDescriptor extends BaseModel { public function __construct( public ?string $label = null, - public ?string $description = null, public ?string $unit = null, + public ?string $description = null, ) { } diff --git a/src/GeneratedModels/MetricThreshold.php b/src/GeneratedModels/MetricThreshold.php index 7a0af16..87c6343 100644 --- a/src/GeneratedModels/MetricThreshold.php +++ b/src/GeneratedModels/MetricThreshold.php @@ -3,15 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $level - * @property string $operator - * @property int $value - * @property string|null $valueUnit - * @property int|null $windowSeconds - */ class MetricThreshold extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/MetricTimeSeries.php b/src/GeneratedModels/MetricTimeSeries.php index be05799..a5084b2 100644 --- a/src/GeneratedModels/MetricTimeSeries.php +++ b/src/GeneratedModels/MetricTimeSeries.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $dataPoints - */ class MetricTimeSeries extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ModerationActionConfigResponse.php b/src/GeneratedModels/ModerationActionConfigResponse.php new file mode 100644 index 0000000..8a8dbd6 --- /dev/null +++ b/src/GeneratedModels/ModerationActionConfigResponse.php @@ -0,0 +1,23 @@ + $result - * @property string|null $entityCreatorID - * @property string|null $reason - * @property string|null $reviewQueueItemID - * @property array|null $labels - * @property object|null $custom - * @property ModerationPayload|null $moderationPayload - * @property ReviewQueueItemResponse|null $reviewQueueItem - * @property UserResponse|null $user - */ class ModerationFlagResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?string $entityID = null, - public ?string $entityType = null, + public ?ModerationPayloadResponse $moderationPayload = null, + public ?ReviewQueueItemResponse $reviewQueueItem = null, + public ?UserResponse $user = null, public ?string $type = null, - public ?\DateTime $updatedAt = null, public ?string $userID = null, - public ?array $result = null, + public ?string $entityType = null, + public ?string $entityID = null, public ?string $entityCreatorID = null, public ?string $reason = null, - public ?string $reviewQueueItemID = null, - public ?array $labels = null, public ?object $custom = null, - public ?ModerationPayload $moderationPayload = null, - public ?ReviewQueueItemResponse $reviewQueueItem = null, - public ?UserResponse $user = null, + public ?array $labels = null, + public ?array $result = null, + public ?string $reviewQueueItemID = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, ) { } diff --git a/src/GeneratedModels/ModerationFlaggedEvent.php b/src/GeneratedModels/ModerationFlaggedEvent.php index 8b81a95..d9e84a6 100644 --- a/src/GeneratedModels/ModerationFlaggedEvent.php +++ b/src/GeneratedModels/ModerationFlaggedEvent.php @@ -4,22 +4,17 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property \DateTime $createdAt - * @property string $type - * @property string|null $item - * @property string|null $objectID - * @property User|null $user + * This event is sent when content is flagged for moderation */ class ModerationFlaggedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, public ?string $type = null, - public ?string $item = null, - public ?string $objectID = null, - public ?User $user = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $contentType = null, // The type of content that was flagged + public ?string $objectID = null, // The ID of the flagged content ) { } diff --git a/src/GeneratedModels/ModerationMarkReviewedEvent.php b/src/GeneratedModels/ModerationMarkReviewedEvent.php index 056b5a0..2bd9510 100644 --- a/src/GeneratedModels/ModerationMarkReviewedEvent.php +++ b/src/GeneratedModels/ModerationMarkReviewedEvent.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a moderation item is marked as reviewed - * - * @property \DateTime $createdAt - * @property object $custom - * @property ReviewQueueItemResponse $item - * @property string $type - * @property \DateTime|null $receivedAt - * @property MessageResponse|null $message */ class ModerationMarkReviewedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?object $custom = null, public ?ReviewQueueItemResponse $item = null, + public ?MessageResponse $message = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, - public ?MessageResponse $message = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/ModerationPayload.php b/src/GeneratedModels/ModerationPayload.php index 2602593..cd99d9d 100644 --- a/src/GeneratedModels/ModerationPayload.php +++ b/src/GeneratedModels/ModerationPayload.php @@ -3,19 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $images - * @property array|null $texts - * @property array|null $videos - * @property object|null $custom - */ class ModerationPayload extends BaseModel { public function __construct( - public ?array $images = null, public ?array $texts = null, + public ?array $images = null, public ?array $videos = null, public ?object $custom = null, ) { diff --git a/src/GeneratedModels/ModerationPayloadRequest.php b/src/GeneratedModels/ModerationPayloadRequest.php new file mode 100644 index 0000000..3fa8ecf --- /dev/null +++ b/src/GeneratedModels/ModerationPayloadRequest.php @@ -0,0 +1,21 @@ +|null $conditions - * @property array|null $groups - */ class ModerationRuleV2Response extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?string $description = null, - public ?bool $enabled = null, + public ?RuleBuilderAction $action = null, public ?string $id = null, public ?string $name = null, - public ?string $ruleType = null, - public ?string $team = null, - public ?\DateTime $updatedAt = null, + public ?string $description = null, public ?array $configKeys = null, - public ?RuleBuilderAction $action = null, - public ?string $cooldownPeriod = null, - public ?string $logic = null, + public ?string $team = null, + public ?string $ruleType = null, /** @var array|null */ #[ArrayOf(RuleBuilderCondition::class)] public ?array $conditions = null, + public ?string $logic = null, /** @var array|null */ #[ArrayOf(RuleBuilderConditionGroup::class)] public ?array $groups = null, + /** @var array|null */ + #[ArrayOf(CallRuleActionSequence::class)] + public ?array $actionSequences = null, + public ?string $cooldownPeriod = null, + public ?bool $enabled = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, ) { } diff --git a/src/GeneratedModels/ModerationRulesTriggeredEvent.php b/src/GeneratedModels/ModerationRulesTriggeredEvent.php new file mode 100644 index 0000000..7ad9926 --- /dev/null +++ b/src/GeneratedModels/ModerationRulesTriggeredEvent.php @@ -0,0 +1,28 @@ +|null $channelMutes - * @property ChannelMute|null $channelMute - * @property OwnUser|null $ownUser - */ class MuteChannelResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null Object with mutes (if multiple channels were muted) */ + public ?ChannelMute $channelMute = null, + public ?OwnUserResponse $ownUser = null, + /** @var array|null */ #[ArrayOf(ChannelMute::class)] public ?array $channelMutes = null, // Object with mutes (if multiple channels were muted) - public ?ChannelMute $channelMute = null, - public ?OwnUser $ownUser = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/MuteRequest.php b/src/GeneratedModels/MuteRequest.php index e72410d..dd5ee59 100644 --- a/src/GeneratedModels/MuteRequest.php +++ b/src/GeneratedModels/MuteRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $targetIds - * @property int|null $timeout - * @property string|null $userID - * @property UserRequest|null $user - */ class MuteRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?array $targetIds = null, // User IDs to mute (if multiple users) public ?int $timeout = null, // Duration of mute in minutes public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/MuteResponse.php b/src/GeneratedModels/MuteResponse.php index 2c01f2b..227a5ba 100644 --- a/src/GeneratedModels/MuteResponse.php +++ b/src/GeneratedModels/MuteResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array|null $mutes - * @property array|null $nonExistingUsers - * @property OwnUser|null $ownUser - */ class MuteResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null Object with mutes (if multiple users were muted) */ - #[ArrayOf(UserMute::class)] + public ?OwnUserResponse $ownUser = null, + /** @var array|null */ + #[ArrayOf(UserMuteResponse::class)] public ?array $mutes = null, // Object with mutes (if multiple users were muted) public ?array $nonExistingUsers = null, // A list of users that can't be found. Common cause for this is deleted users - public ?OwnUser $ownUser = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/MuteUsersRequest.php b/src/GeneratedModels/MuteUsersRequest.php index 9e39237..cc3cce4 100644 --- a/src/GeneratedModels/MuteUsersRequest.php +++ b/src/GeneratedModels/MuteUsersRequest.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $audio - * @property bool|null $muteAllUsers - * @property string|null $mutedByID - * @property bool|null $screenshare - * @property bool|null $screenshareAudio - * @property bool|null $video - * @property array|null $userIds - * @property UserRequest|null $mutedBy - */ class MuteUsersRequest extends BaseModel { public function __construct( - public ?bool $audio = null, + public ?UserRequest $mutedBy = null, public ?bool $muteAllUsers = null, - public ?string $mutedByID = null, + public ?array $userIds = null, + public ?bool $audio = null, + public ?bool $video = null, public ?bool $screenshare = null, public ?bool $screenshareAudio = null, - public ?bool $video = null, - public ?array $userIds = null, - public ?UserRequest $mutedBy = null, + public ?string $mutedByID = null, ) { } diff --git a/src/GeneratedModels/MuteUsersResponse.php b/src/GeneratedModels/MuteUsersResponse.php index 7f59b1d..add6a34 100644 --- a/src/GeneratedModels/MuteUsersResponse.php +++ b/src/GeneratedModels/MuteUsersResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * MuteUsersResponse is the response payload for the mute users endpoint. - * - * @property string $duration */ class MuteUsersResponse extends BaseModel { diff --git a/src/GeneratedModels/NetworkMetricsReportResponse.php b/src/GeneratedModels/NetworkMetricsReportResponse.php index c5cb4f2..b830029 100644 --- a/src/GeneratedModels/NetworkMetricsReportResponse.php +++ b/src/GeneratedModels/NetworkMetricsReportResponse.php @@ -3,20 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $averageConnectionTime - * @property int|null $averageJitter - * @property int|null $averageLatency - * @property int|null $averageTimeToReconnect - */ class NetworkMetricsReportResponse extends BaseModel { public function __construct( - public ?int $averageConnectionTime = null, - public ?int $averageJitter = null, public ?int $averageLatency = null, + public ?int $averageJitter = null, + public ?int $averageConnectionTime = null, public ?int $averageTimeToReconnect = null, ) { } diff --git a/src/GeneratedModels/NoiseCancellationSettings.php b/src/GeneratedModels/NoiseCancellationSettings.php index 14ebef5..06aa21d 100644 --- a/src/GeneratedModels/NoiseCancellationSettings.php +++ b/src/GeneratedModels/NoiseCancellationSettings.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $mode - */ class NoiseCancellationSettings extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/NotificationComment.php b/src/GeneratedModels/NotificationComment.php index 4a9d0ee..79808f4 100644 --- a/src/GeneratedModels/NotificationComment.php +++ b/src/GeneratedModels/NotificationComment.php @@ -3,20 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $comment - * @property string $id - * @property string $userID - * @property array|null $attachments - */ class NotificationComment extends BaseModel { public function __construct( - public ?string $comment = null, public ?string $id = null, public ?string $userID = null, + public ?string $comment = null, /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, diff --git a/src/GeneratedModels/NotificationConfig.php b/src/GeneratedModels/NotificationConfig.php index 14e457f..9edca99 100644 --- a/src/GeneratedModels/NotificationConfig.php +++ b/src/GeneratedModels/NotificationConfig.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $deduplicationWindow - * @property bool|null $trackRead - * @property bool|null $trackSeen - */ class NotificationConfig extends BaseModel { public function __construct( - public ?string $deduplicationWindow = null, // Time window for deduplicating notification activities (reactions and follows). Empty or '0' = always deduplicate (default). Examples: '1h', '24h', '7d', '1w' - public ?bool $trackRead = null, // Whether to track read status public ?bool $trackSeen = null, // Whether to track seen status + public ?bool $trackRead = null, // Whether to track read status + public ?string $deduplicationWindow = null, // Time window for deduplicating notification activities (reactions and follows). Empty or '0' = always deduplicate (default). Examples: '1h', '24h', '7d', '1w' ) { } diff --git a/src/GeneratedModels/NotificationContext.php b/src/GeneratedModels/NotificationContext.php index 3ca9602..ea0a2a5 100644 --- a/src/GeneratedModels/NotificationContext.php +++ b/src/GeneratedModels/NotificationContext.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property NotificationTarget|null $target - * @property NotificationTrigger|null $trigger - */ class NotificationContext extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/NotificationFeedUpdatedEvent.php b/src/GeneratedModels/NotificationFeedUpdatedEvent.php index 6d84814..a3cfe8e 100644 --- a/src/GeneratedModels/NotificationFeedUpdatedEvent.php +++ b/src/GeneratedModels/NotificationFeedUpdatedEvent.php @@ -5,31 +5,21 @@ namespace GetStream\GeneratedModels; /** * Emitted when notification feed is updated. - * - * @property \DateTime $createdAt - * @property string $fid - * @property object $custom - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt - * @property array|null $aggregatedActivities - * @property NotificationStatusResponse|null $notificationStatus - * @property UserResponseCommonFields|null $user */ class NotificationFeedUpdatedEvent extends BaseModel { public function __construct( + public ?NotificationStatusResponse $notificationStatus = null, + public ?UserResponseCommonFields $user = null, + /** @var array|null */ + #[ArrayOf(AggregatedActivityResponse::class)] + public ?array $aggregatedActivities = null, // Aggregated activities for notification feeds + public ?string $type = null, // The type of event: "feeds.notification_feed.updated" in this case public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, // The ID of the feed + public ?\DateTime $receivedAt = null, public ?object $custom = null, - public ?string $type = null, // The type of event: "feeds.notification_feed.updated" in this case + public ?string $fid = null, // The ID of the feed public ?string $feedVisibility = null, - public ?\DateTime $receivedAt = null, - /** @var array|null Aggregated activities for notification feeds */ - #[ArrayOf(AggregatedActivityResponse::class)] - public ?array $aggregatedActivities = null, // Aggregated activities for notification feeds - public ?NotificationStatusResponse $notificationStatus = null, - public ?UserResponseCommonFields $user = null, ) { } diff --git a/src/GeneratedModels/NotificationMarkUnreadEvent.php b/src/GeneratedModels/NotificationMarkUnreadEvent.php index 603c90d..f1793f9 100644 --- a/src/GeneratedModels/NotificationMarkUnreadEvent.php +++ b/src/GeneratedModels/NotificationMarkUnreadEvent.php @@ -4,48 +4,34 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property int $channelMemberCount - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $firstUnreadMessageID - * @property \DateTime $lastReadAt - * @property int $totalUnreadCount - * @property int $unreadChannels - * @property int $unreadCount - * @property int $unreadMessages - * @property int $unreadThreads - * @property string $type - * @property string|null $lastReadMessageID - * @property string|null $team - * @property string|null $threadID - * @property ChannelResponse|null $channel - * @property User|null $user + * Emitted when a channel/thread is marked as unread. */ class NotificationMarkUnreadEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?int $channelMemberCount = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $firstUnreadMessageID = null, - public ?\DateTime $lastReadAt = null, - public ?int $totalUnreadCount = null, - public ?int $unreadChannels = null, - public ?int $unreadCount = null, - public ?int $unreadMessages = null, - public ?int $unreadThreads = null, - public ?string $type = null, - public ?string $lastReadMessageID = null, - public ?string $team = null, - public ?string $threadID = null, public ?ChannelResponse $channel = null, - public ?User $user = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "notification.mark_unread" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel which was marked as unread + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel which was marked as unread + public ?string $channelID = null, // The ID of the channel which was marked as unread + public ?string $threadID = null, // The ID of the thread which was marked as unread + public ?string $firstUnreadMessageID = null, // The ID of the first unread message + public ?\DateTime $lastReadAt = null, // The time when the channel/thread was marked as unread + public ?string $lastReadMessageID = null, // The ID of the last read message + public ?int $unreadMessages = null, // The number of unread messages in the channel/thread after first_unread_message_id + public ?int $unreadCount = null, // The total number of unread messages + public ?int $totalUnreadCount = null, // The total number of unread messages + public ?int $unreadChannels = null, // The number of channels with unread messages + public ?int $unreadThreads = null, // The number of unread threads + public ?int $unreadThreadMessages = null, // The total number of unread messages in the threads ) { } diff --git a/src/GeneratedModels/NotificationParentActivity.php b/src/GeneratedModels/NotificationParentActivity.php index 596527b..477e70a 100644 --- a/src/GeneratedModels/NotificationParentActivity.php +++ b/src/GeneratedModels/NotificationParentActivity.php @@ -3,22 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property string|null $text - * @property string|null $type - * @property string|null $userID - * @property array|null $attachments - */ class NotificationParentActivity extends BaseModel { public function __construct( public ?string $id = null, - public ?string $text = null, - public ?string $type = null, public ?string $userID = null, + public ?string $type = null, + public ?string $text = null, /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, diff --git a/src/GeneratedModels/NotificationSettings.php b/src/GeneratedModels/NotificationSettings.php index e57852b..efe48a2 100644 --- a/src/GeneratedModels/NotificationSettings.php +++ b/src/GeneratedModels/NotificationSettings.php @@ -3,25 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - * @property EventNotificationSettings $callLiveStarted - * @property EventNotificationSettings $callMissed - * @property EventNotificationSettings $callNotification - * @property EventNotificationSettings $callRing - * @property EventNotificationSettings $sessionStarted - */ class NotificationSettings extends BaseModel { public function __construct( - public ?bool $enabled = null, public ?EventNotificationSettings $callLiveStarted = null, public ?EventNotificationSettings $callMissed = null, public ?EventNotificationSettings $callNotification = null, public ?EventNotificationSettings $callRing = null, public ?EventNotificationSettings $sessionStarted = null, + public ?bool $enabled = null, ) { } diff --git a/src/GeneratedModels/NotificationSettingsRequest.php b/src/GeneratedModels/NotificationSettingsRequest.php new file mode 100644 index 0000000..7403d38 --- /dev/null +++ b/src/GeneratedModels/NotificationSettingsRequest.php @@ -0,0 +1,20 @@ +|null $attachments - * @property NotificationComment|null $comment - * @property NotificationParentActivity|null $parentActivity - */ class NotificationTarget extends BaseModel { public function __construct( + public ?NotificationComment $comment = null, + public ?NotificationParentActivity $parentActivity = null, public ?string $id = null, // The ID of the target (activity ID or user ID) - public ?string $name = null, // The name of the target user (for user targets like follows) - public ?string $text = null, // The text content of the target activity (for activity targets) - public ?string $type = null, // The type of the target activity (for activity targets) public ?string $userID = null, // The ID of the user who created the target activity (for activity targets) - /** @var array|null Attachments on the target activity (for activity targets) */ + public ?string $type = null, // The type of the target activity (for activity targets) + public ?string $text = null, // The text content of the target activity (for activity targets) + /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, // Attachments on the target activity (for activity targets) - public ?NotificationComment $comment = null, - public ?NotificationParentActivity $parentActivity = null, + public ?string $name = null, // The name of the target user (for user targets like follows) ) { } diff --git a/src/GeneratedModels/NotificationThreadMessageNewEvent.php b/src/GeneratedModels/NotificationThreadMessageNewEvent.php new file mode 100644 index 0000000..839163e --- /dev/null +++ b/src/GeneratedModels/NotificationThreadMessageNewEvent.php @@ -0,0 +1,39 @@ +|null */ + #[ArrayOf(UserResponseCommonFields::class)] + public ?array $threadParticipants = null, // The participants of the thread + public ?string $team = null, // The team ID + public ?string $parentAuthor = null, + public ?int $unreadThreads = null, + public ?int $unreadThreadMessages = null, + ) { + } + + // BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types! + // Use #[JsonKey('user_id')] to override field names if needed. +} diff --git a/src/GeneratedModels/NotificationTrigger.php b/src/GeneratedModels/NotificationTrigger.php index 9307135..e9ca9e2 100644 --- a/src/GeneratedModels/NotificationTrigger.php +++ b/src/GeneratedModels/NotificationTrigger.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $text - * @property string $type - * @property NotificationComment|null $comment - */ class NotificationTrigger extends BaseModel { public function __construct( - public ?string $text = null, // Human-readable text describing the notification - public ?string $type = null, // The type of notification (mention, reaction, comment, follow, etc.) public ?NotificationComment $comment = null, + public ?string $type = null, // The type of notification (mention, reaction, comment, follow, etc.) + public ?string $text = null, // Human-readable text describing the notification ) { } diff --git a/src/GeneratedModels/OCRRule.php b/src/GeneratedModels/OCRRule.php index 825e380..1971f54 100644 --- a/src/GeneratedModels/OCRRule.php +++ b/src/GeneratedModels/OCRRule.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $action - * @property string $label - */ class OCRRule extends BaseModel { public function __construct( - public ?string $action = null, public ?string $label = null, + public ?string $action = null, ) { } diff --git a/src/GeneratedModels/OnlyUserID.php b/src/GeneratedModels/OnlyUserID.php index 7f3fdaa..3512292 100644 --- a/src/GeneratedModels/OnlyUserID.php +++ b/src/GeneratedModels/OnlyUserID.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - */ class OnlyUserID extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/OverviewDashboardConfig.php b/src/GeneratedModels/OverviewDashboardConfig.php index b2498c2..9cc29f8 100644 --- a/src/GeneratedModels/OverviewDashboardConfig.php +++ b/src/GeneratedModels/OverviewDashboardConfig.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $defaultDateRangeDays - * @property array|null $visibleCharts - */ class OverviewDashboardConfig extends BaseModel { public function __construct( - public ?int $defaultDateRangeDays = null, public ?array $visibleCharts = null, + public ?int $defaultDateRangeDays = null, ) { } diff --git a/src/GeneratedModels/OwnBatchRequest.php b/src/GeneratedModels/OwnBatchRequest.php index 9e4b7f0..ebeaf19 100644 --- a/src/GeneratedModels/OwnBatchRequest.php +++ b/src/GeneratedModels/OwnBatchRequest.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * Request to get own_follows, own_followings, own_capabilities, and/or own_membership for multiple feeds. If fields is not specified, all fields are returned. - * - * @property array $feeds - * @property string|null $userID - * @property array|null $fields - * @property UserRequest|null $user */ class OwnBatchRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?array $feeds = null, // List of feed IDs to get own fields for - public ?string $userID = null, public ?array $fields = null, // Optional list of specific fields to return. If not specified, all fields (own_follows, own_followings, own_capabilities, own_membership) are returned - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/OwnBatchResponse.php b/src/GeneratedModels/OwnBatchResponse.php index 7bc5d82..d97ffb9 100644 --- a/src/GeneratedModels/OwnBatchResponse.php +++ b/src/GeneratedModels/OwnBatchResponse.php @@ -3,17 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $data - */ class OwnBatchResponse extends BaseModel { public function __construct( - public ?string $duration = null, + /** @var array|null */ + #[MapOf(FeedOwnData::class)] public ?array $data = null, // Map of feed ID to own fields data + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/OwnUserResponse.php b/src/GeneratedModels/OwnUserResponse.php index fa4c6f0..3ffa04a 100644 --- a/src/GeneratedModels/OwnUserResponse.php +++ b/src/GeneratedModels/OwnUserResponse.php @@ -3,79 +3,45 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $banned - * @property \DateTime $createdAt - * @property string $id - * @property bool $invisible - * @property string $language - * @property bool $online - * @property string $role - * @property int $totalUnreadCount - * @property int $unreadChannels - * @property int $unreadCount - * @property int $unreadThreads - * @property \DateTime $updatedAt - * @property array $channelMutes - * @property array $devices - * @property array $mutes - * @property array $teams - * @property object $custom - * @property int|null $avgResponseTime - * @property \DateTime|null $deactivatedAt - * @property \DateTime|null $deletedAt - * @property string|null $image - * @property \DateTime|null $lastActive - * @property string|null $name - * @property \DateTime|null $revokeTokensIssuedBefore - * @property array|null $blockedUserIds - * @property array|null $latestHiddenChannels - * @property PrivacySettingsResponse|null $privacySettings - * @property PushPreferencesResponse|null $pushPreferences - * @property array|null $teamsRole - * @property array|null $totalUnreadCountByTeam - */ class OwnUserResponse extends BaseModel { public function __construct( - public ?bool $banned = null, - public ?\DateTime $createdAt = null, + public ?PrivacySettingsResponse $privacySettings = null, + public ?PushPreferencesResponse $pushPreferences = null, public ?string $id = null, - public ?bool $invisible = null, + public ?string $name = null, + public ?string $image = null, + public ?object $custom = null, public ?string $language = null, - public ?bool $online = null, public ?string $role = null, - public ?int $totalUnreadCount = null, - public ?int $unreadChannels = null, - public ?int $unreadCount = null, - public ?int $unreadThreads = null, + public ?array $teams = null, + public ?array $teamsRole = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, - /** @var array|null */ - #[ArrayOf(ChannelMute::class)] - public ?array $channelMutes = null, + public ?\DateTime $deletedAt = null, + public ?bool $banned = null, + public ?bool $online = null, + public ?\DateTime $lastActive = null, + public ?\DateTime $revokeTokensIssuedBefore = null, + public ?\DateTime $deactivatedAt = null, + public ?int $avgResponseTime = null, /** @var array|null */ #[ArrayOf(DeviceResponse::class)] public ?array $devices = null, + public ?bool $invisible = null, /** @var array|null */ #[ArrayOf(UserMuteResponse::class)] public ?array $mutes = null, - public ?array $teams = null, - public ?object $custom = null, - public ?int $avgResponseTime = null, - public ?\DateTime $deactivatedAt = null, - public ?\DateTime $deletedAt = null, - public ?string $image = null, - public ?\DateTime $lastActive = null, - public ?string $name = null, - public ?\DateTime $revokeTokensIssuedBefore = null, - public ?array $blockedUserIds = null, - public ?array $latestHiddenChannels = null, - public ?PrivacySettingsResponse $privacySettings = null, - public ?PushPreferencesResponse $pushPreferences = null, - public ?array $teamsRole = null, + /** @var array|null */ + #[ArrayOf(ChannelMute::class)] + public ?array $channelMutes = null, + public ?int $unreadCount = null, + public ?int $totalUnreadCount = null, public ?array $totalUnreadCountByTeam = null, + public ?int $unreadChannels = null, + public ?int $unreadThreads = null, + public ?array $latestHiddenChannels = null, + public ?array $blockedUserIds = null, ) { } diff --git a/src/GeneratedModels/PagerRequest.php b/src/GeneratedModels/PagerRequest.php index e55fe8c..1374a40 100644 --- a/src/GeneratedModels/PagerRequest.php +++ b/src/GeneratedModels/PagerRequest.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - */ class PagerRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PagerResponse.php b/src/GeneratedModels/PagerResponse.php index 5d03647..8ef5e77 100644 --- a/src/GeneratedModels/PagerResponse.php +++ b/src/GeneratedModels/PagerResponse.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $next - * @property string|null $prev - */ class PagerResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PaginationParams.php b/src/GeneratedModels/PaginationParams.php index d204dd1..f76d453 100644 --- a/src/GeneratedModels/PaginationParams.php +++ b/src/GeneratedModels/PaginationParams.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property int|null $offset - */ class PaginationParams extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ParsedPredefinedFilterResponse.php b/src/GeneratedModels/ParsedPredefinedFilterResponse.php index 3671395..5999a04 100644 --- a/src/GeneratedModels/ParsedPredefinedFilterResponse.php +++ b/src/GeneratedModels/ParsedPredefinedFilterResponse.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $name - * @property object $filter - * @property array|null $sort - */ class ParsedPredefinedFilterResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ParticipantCountByMinuteResponse.php b/src/GeneratedModels/ParticipantCountByMinuteResponse.php index 6cd94cc..33af209 100644 --- a/src/GeneratedModels/ParticipantCountByMinuteResponse.php +++ b/src/GeneratedModels/ParticipantCountByMinuteResponse.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $first - * @property int $last - * @property int $max - * @property int $min - * @property \DateTime $startTs - */ class ParticipantCountByMinuteResponse extends BaseModel { public function __construct( + public ?\DateTime $startTs = null, public ?int $first = null, public ?int $last = null, public ?int $max = null, public ?int $min = null, - public ?\DateTime $startTs = null, ) { } diff --git a/src/GeneratedModels/ParticipantCountOverTimeResponse.php b/src/GeneratedModels/ParticipantCountOverTimeResponse.php index 352423e..b5dbcfe 100644 --- a/src/GeneratedModels/ParticipantCountOverTimeResponse.php +++ b/src/GeneratedModels/ParticipantCountOverTimeResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $byMinute - */ class ParticipantCountOverTimeResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ParticipantReportResponse.php b/src/GeneratedModels/ParticipantReportResponse.php index dd8d526..07a41fe 100644 --- a/src/GeneratedModels/ParticipantReportResponse.php +++ b/src/GeneratedModels/ParticipantReportResponse.php @@ -3,31 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $sum - * @property int $unique - * @property int|null $maxConcurrent - * @property array|null $byBrowser - * @property array|null $byCountry - * @property array|null $byDevice - * @property array|null $byOperatingSystem - * @property ParticipantCountOverTimeResponse|null $countOverTime - * @property PublisherStatsResponse|null $publishers - * @property SubscriberStatsResponse|null $subscribers - */ class ParticipantReportResponse extends BaseModel { public function __construct( + public ?ParticipantCountOverTimeResponse $countOverTime = null, + public ?PublisherStatsResponse $publishers = null, + public ?SubscriberStatsResponse $subscribers = null, public ?int $sum = null, public ?int $unique = null, public ?int $maxConcurrent = null, /** @var array|null */ #[ArrayOf(GroupedStatsResponse::class)] - public ?array $byBrowser = null, - /** @var array|null */ - #[ArrayOf(GroupedStatsResponse::class)] public ?array $byCountry = null, /** @var array|null */ #[ArrayOf(GroupedStatsResponse::class)] @@ -35,9 +21,9 @@ public function __construct( /** @var array|null */ #[ArrayOf(GroupedStatsResponse::class)] public ?array $byOperatingSystem = null, - public ?ParticipantCountOverTimeResponse $countOverTime = null, - public ?PublisherStatsResponse $publishers = null, - public ?SubscriberStatsResponse $subscribers = null, + /** @var array|null */ + #[ArrayOf(GroupedStatsResponse::class)] + public ?array $byBrowser = null, ) { } diff --git a/src/GeneratedModels/ParticipantSeriesPublisherStats.php b/src/GeneratedModels/ParticipantSeriesPublisherStats.php index 459c297..dd3cfa8 100644 --- a/src/GeneratedModels/ParticipantSeriesPublisherStats.php +++ b/src/GeneratedModels/ParticipantSeriesPublisherStats.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $globalMetricsOrder - * @property array|null $global - * @property array|null $globalMeta - * @property array|null $globalThresholds - * @property array|null $tracks - */ class ParticipantSeriesPublisherStats extends BaseModel { public function __construct( - public ?array $globalMetricsOrder = null, public ?array $global = null, + /** @var array|null */ + #[MapOf(MetricDescriptor::class)] public ?array $globalMeta = null, + public ?array $globalMetricsOrder = null, public ?array $globalThresholds = null, public ?array $tracks = null, ) { diff --git a/src/GeneratedModels/ParticipantSeriesSubscriberStats.php b/src/GeneratedModels/ParticipantSeriesSubscriberStats.php index 9d5c616..e060a6a 100644 --- a/src/GeneratedModels/ParticipantSeriesSubscriberStats.php +++ b/src/GeneratedModels/ParticipantSeriesSubscriberStats.php @@ -3,25 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $globalMetricsOrder - * @property array|null $subscriptions - * @property array|null $global - * @property array|null $globalMeta - * @property array|null $globalThresholds - */ class ParticipantSeriesSubscriberStats extends BaseModel { public function __construct( + public ?array $global = null, + /** @var array|null */ + #[MapOf(MetricDescriptor::class)] + public ?array $globalMeta = null, public ?array $globalMetricsOrder = null, + public ?array $globalThresholds = null, /** @var array|null */ #[ArrayOf(ParticipantSeriesSubscriptionTrackMetrics::class)] public ?array $subscriptions = null, - public ?array $global = null, - public ?array $globalMeta = null, - public ?array $globalThresholds = null, ) { } diff --git a/src/GeneratedModels/ParticipantSeriesSubscriptionTrackMetrics.php b/src/GeneratedModels/ParticipantSeriesSubscriptionTrackMetrics.php index 7723567..b2231ff 100644 --- a/src/GeneratedModels/ParticipantSeriesSubscriptionTrackMetrics.php +++ b/src/GeneratedModels/ParticipantSeriesSubscriptionTrackMetrics.php @@ -3,20 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $publisherUserID - * @property string|null $publisherName - * @property string|null $publisherUserSessionID - * @property array|null $tracks - */ class ParticipantSeriesSubscriptionTrackMetrics extends BaseModel { public function __construct( public ?string $publisherUserID = null, - public ?string $publisherName = null, public ?string $publisherUserSessionID = null, + public ?string $publisherName = null, public ?array $tracks = null, ) { } diff --git a/src/GeneratedModels/ParticipantSeriesTimeframe.php b/src/GeneratedModels/ParticipantSeriesTimeframe.php index 96f63c9..9e23e3c 100644 --- a/src/GeneratedModels/ParticipantSeriesTimeframe.php +++ b/src/GeneratedModels/ParticipantSeriesTimeframe.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $maxPoints - * @property \DateTime $since - * @property int $stepSeconds - * @property \DateTime $until - */ class ParticipantSeriesTimeframe extends BaseModel { public function __construct( - public ?int $maxPoints = null, public ?\DateTime $since = null, - public ?int $stepSeconds = null, public ?\DateTime $until = null, + public ?int $stepSeconds = null, + public ?int $maxPoints = null, ) { } diff --git a/src/GeneratedModels/ParticipantSeriesTrackMetrics.php b/src/GeneratedModels/ParticipantSeriesTrackMetrics.php index 5feb530..79a756c 100644 --- a/src/GeneratedModels/ParticipantSeriesTrackMetrics.php +++ b/src/GeneratedModels/ParticipantSeriesTrackMetrics.php @@ -3,30 +3,19 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $trackID - * @property string|null $codec - * @property string|null $label - * @property string|null $rid - * @property string|null $trackType - * @property array|null $metricsOrder - * @property array|null $metrics - * @property array|null $metricsMeta - * @property array|null $thresholds - */ class ParticipantSeriesTrackMetrics extends BaseModel { public function __construct( public ?string $trackID = null, - public ?string $codec = null, public ?string $label = null, - public ?string $rid = null, public ?string $trackType = null, - public ?array $metricsOrder = null, + public ?string $codec = null, + public ?string $rid = null, public ?array $metrics = null, + /** @var array|null */ + #[MapOf(MetricDescriptor::class)] public ?array $metricsMeta = null, + public ?array $metricsOrder = null, public ?array $thresholds = null, ) { } diff --git a/src/GeneratedModels/ParticipantSeriesUserStats.php b/src/GeneratedModels/ParticipantSeriesUserStats.php index 53b5557..efa73eb 100644 --- a/src/GeneratedModels/ParticipantSeriesUserStats.php +++ b/src/GeneratedModels/ParticipantSeriesUserStats.php @@ -3,20 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $metricsOrder - * @property array|null $metrics - * @property array|null $metricsMeta - * @property array|null $thresholds - */ class ParticipantSeriesUserStats extends BaseModel { public function __construct( - public ?array $metricsOrder = null, public ?array $metrics = null, + /** @var array|null */ + #[MapOf(MetricDescriptor::class)] public ?array $metricsMeta = null, + public ?array $metricsOrder = null, public ?array $thresholds = null, ) { } diff --git a/src/GeneratedModels/ParticipantSessionDetails.php b/src/GeneratedModels/ParticipantSessionDetails.php index f6596b5..f568ba9 100644 --- a/src/GeneratedModels/ParticipantSessionDetails.php +++ b/src/GeneratedModels/ParticipantSessionDetails.php @@ -3,27 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $publisherType - * @property string $userID - * @property string $userSessionID - * @property array $roles - * @property int|null $durationInSeconds - * @property \DateTime|null $joinedAt - * @property \DateTime|null $leftAt - */ class ParticipantSessionDetails extends BaseModel { public function __construct( - public ?string $publisherType = null, public ?string $userID = null, public ?string $userSessionID = null, - public ?array $roles = null, - public ?int $durationInSeconds = null, public ?\DateTime $joinedAt = null, public ?\DateTime $leftAt = null, + public ?string $publisherType = null, + public ?array $roles = null, + public ?int $durationInSeconds = null, ) { } diff --git a/src/GeneratedModels/PendingMessageEvent.php b/src/GeneratedModels/PendingMessageEvent.php index eca5679..a717ef5 100644 --- a/src/GeneratedModels/PendingMessageEvent.php +++ b/src/GeneratedModels/PendingMessageEvent.php @@ -5,29 +5,19 @@ namespace GetStream\GeneratedModels; /** * Pending message event for async moderation - * - * @property \DateTime $createdAt - * @property string $method - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - * @property Channel|null $channel - * @property Message|null $message - * @property array|null $metadata - * @property User|null $user */ class PendingMessageEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $method = null, // The method used for the pending message - public ?object $custom = null, + public ?ChannelResponse $channel = null, + public ?MessageResponse $message = null, + public ?UserResponse $user = null, public ?string $type = null, // The type of event: "message.pending" in this case public ?\DateTime $receivedAt = null, - public ?Channel $channel = null, - public ?Message $message = null, - public ?array $metadata = null, - public ?User $user = null, + public ?object $custom = null, + public ?array $metadata = null, // Metadata attached to the pending message + public ?string $method = null, // The method used for the pending message + public ?\DateTime $createdAt = null, // Date/time of creation ) { } diff --git a/src/GeneratedModels/PendingMessageResponse.php b/src/GeneratedModels/PendingMessageResponse.php index 6f23469..8e044da 100644 --- a/src/GeneratedModels/PendingMessageResponse.php +++ b/src/GeneratedModels/PendingMessageResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property ChannelResponse|null $channel - * @property MessageResponse|null $message - * @property array|null $metadata - * @property UserResponse|null $user - */ class PendingMessageResponse extends BaseModel { public function __construct( public ?ChannelResponse $channel = null, public ?MessageResponse $message = null, - public ?array $metadata = null, public ?UserResponse $user = null, + public ?array $metadata = null, ) { } diff --git a/src/GeneratedModels/PerSDKUsageReport.php b/src/GeneratedModels/PerSDKUsageReport.php index 5de34d4..2cd3f89 100644 --- a/src/GeneratedModels/PerSDKUsageReport.php +++ b/src/GeneratedModels/PerSDKUsageReport.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $total - * @property array $byVersion - */ class PerSDKUsageReport extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/Permission.php b/src/GeneratedModels/Permission.php index 47446d4..023729f 100644 --- a/src/GeneratedModels/Permission.php +++ b/src/GeneratedModels/Permission.php @@ -3,33 +3,19 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $action - * @property bool $custom - * @property string $description - * @property string $id - * @property string $level - * @property string $name - * @property bool $owner - * @property bool $sameTeam - * @property array $tags - * @property object|null $condition - */ class Permission extends BaseModel { public function __construct( - public ?string $action = null, // Action name this permission is for (e.g. SendMessage) - public ?bool $custom = null, // Whether this is a custom permission or built-in - public ?string $description = null, // Description of the permission public ?string $id = null, // Unique permission ID - public ?string $level = null, // Level at which permission could be applied (app or channel) public ?string $name = null, // Name of the permission + public ?string $description = null, // Description of the permission + public ?string $action = null, // Action name this permission is for (e.g. SendMessage) public ?bool $owner = null, // Whether this permission applies to resource owner or not public ?bool $sameTeam = null, // Whether this permission applies to teammates (multi-tenancy mode only) - public ?array $tags = null, // List of tags of the permission public ?object $condition = null, // MongoDB style condition which decides whether or not the permission is granted + public ?bool $custom = null, // Whether this is a custom permission or built-in + public ?string $level = null, // Level at which permission could be applied (app or channel). One of: app, channel + public ?array $tags = null, // List of tags of the permission ) { } diff --git a/src/GeneratedModels/PermissionRequestEvent.php b/src/GeneratedModels/PermissionRequestEvent.php index 44c74cc..9212b61 100644 --- a/src/GeneratedModels/PermissionRequestEvent.php +++ b/src/GeneratedModels/PermissionRequestEvent.php @@ -6,21 +6,15 @@ /** * This event is sent when a user requests access to a feature on a call, * clients receiving this event should display a permission request to the user - * - * @property string $callCid - * @property \DateTime $createdAt - * @property array $permissions - * @property UserResponse $user - * @property string $type */ class PermissionRequestEvent extends BaseModel { public function __construct( - public ?string $callCid = null, - public ?\DateTime $createdAt = null, - public ?array $permissions = null, // The list of permissions requested by the user public ?UserResponse $user = null, public ?string $type = null, // The type of event: "call.permission_request" in this case + public ?\DateTime $createdAt = null, + public ?string $callCid = null, + public ?array $permissions = null, // The list of permissions requested by the user ) { } diff --git a/src/GeneratedModels/PinActivityRequest.php b/src/GeneratedModels/PinActivityRequest.php index 3c5bc23..2e7f4f9 100644 --- a/src/GeneratedModels/PinActivityRequest.php +++ b/src/GeneratedModels/PinActivityRequest.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $userID - * @property UserRequest|null $user - */ class PinActivityRequest extends BaseModel { public function __construct( - public ?string $userID = null, public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/PinActivityResponse.php b/src/GeneratedModels/PinActivityResponse.php index f33db4e..113ca3d 100644 --- a/src/GeneratedModels/PinActivityResponse.php +++ b/src/GeneratedModels/PinActivityResponse.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $duration - * @property string $feed - * @property string $userID - * @property ActivityResponse $activity - */ class PinActivityResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // When the activity was pinned - public ?string $duration = null, + public ?ActivityResponse $activity = null, public ?string $feed = null, // Fully qualified ID of the feed the activity was pinned to public ?string $userID = null, // ID of the user who pinned the activity - public ?ActivityResponse $activity = null, + public ?\DateTime $createdAt = null, // When the activity was pinned + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/PinRequest.php b/src/GeneratedModels/PinRequest.php index 4899e36..4aa090f 100644 --- a/src/GeneratedModels/PinRequest.php +++ b/src/GeneratedModels/PinRequest.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * PinRequest is the payload for pinning a message. - * - * @property string $sessionID - * @property string $userID */ class PinRequest extends BaseModel { public function __construct( - public ?string $sessionID = null, // the session ID of the user who pinned the message public ?string $userID = null, // the user ID of the user who pinned the message + public ?string $sessionID = null, // the session ID of the user who pinned the message ) { } diff --git a/src/GeneratedModels/PinResponse.php b/src/GeneratedModels/PinResponse.php index 686b230..57dd73a 100644 --- a/src/GeneratedModels/PinResponse.php +++ b/src/GeneratedModels/PinResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration */ class PinResponse extends BaseModel { diff --git a/src/GeneratedModels/PlatformDataResponse.php b/src/GeneratedModels/PlatformDataResponse.php index 6a7a5f4..7e27c93 100644 --- a/src/GeneratedModels/PlatformDataResponse.php +++ b/src/GeneratedModels/PlatformDataResponse.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property BrowserDataResponse $browser - * @property DeviceDataResponse $device - * @property ClientOSDataResponse $os - */ class PlatformDataResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/Policy.php b/src/GeneratedModels/Policy.php index 1041cf5..f3141d7 100644 --- a/src/GeneratedModels/Policy.php +++ b/src/GeneratedModels/Policy.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $action - * @property \DateTime $createdAt - * @property string $name - * @property bool $owner - * @property int $priority - * @property \DateTime $updatedAt - * @property array $resources - * @property array $roles - */ class Policy extends BaseModel { public function __construct( - public ?int $action = null, - public ?\DateTime $createdAt = null, public ?string $name = null, + public ?array $resources = null, + public ?array $roles = null, + public ?int $action = null, public ?bool $owner = null, public ?int $priority = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, - public ?array $resources = null, - public ?array $roles = null, ) { } diff --git a/src/GeneratedModels/PolicyRequest.php b/src/GeneratedModels/PolicyRequest.php index 186b181..6cb8c91 100644 --- a/src/GeneratedModels/PolicyRequest.php +++ b/src/GeneratedModels/PolicyRequest.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * Policy request - * - * @property string $action - * @property string $name - * @property bool $owner - * @property int $priority - * @property array $resources - * @property array $roles */ class PolicyRequest extends BaseModel { public function __construct( public ?string $action = null, public ?string $name = null, // User-friendly policy name - public ?bool $owner = null, // Whether policy applies to resource owner or not - public ?int $priority = null, // Policy priority public ?array $resources = null, // List of resources to apply policy to public ?array $roles = null, // List of roles to apply policy to + public ?bool $owner = null, // Whether policy applies to resource owner or not + public ?int $priority = null, // Policy priority ) { } diff --git a/src/GeneratedModels/PollOptionInput.php b/src/GeneratedModels/PollOptionInput.php index 03d030d..d4e2038 100644 --- a/src/GeneratedModels/PollOptionInput.php +++ b/src/GeneratedModels/PollOptionInput.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $text - * @property object|null $custom - */ class PollOptionInput extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PollOptionRequest.php b/src/GeneratedModels/PollOptionRequest.php index 6cca12f..ac2e6ac 100644 --- a/src/GeneratedModels/PollOptionRequest.php +++ b/src/GeneratedModels/PollOptionRequest.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property string|null $text - * @property object|null $custom - */ class PollOptionRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PollOptionResponse.php b/src/GeneratedModels/PollOptionResponse.php index 7678b80..39e43ec 100644 --- a/src/GeneratedModels/PollOptionResponse.php +++ b/src/GeneratedModels/PollOptionResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property PollOptionResponseData $pollOption - */ class PollOptionResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?PollOptionResponseData $pollOption = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/PollOptionResponseData.php b/src/GeneratedModels/PollOptionResponseData.php index 212aaa9..0b9f653 100644 --- a/src/GeneratedModels/PollOptionResponseData.php +++ b/src/GeneratedModels/PollOptionResponseData.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property string $text - * @property object $custom - */ class PollOptionResponseData extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PollResponse.php b/src/GeneratedModels/PollResponse.php index ae0daaa..92f494a 100644 --- a/src/GeneratedModels/PollResponse.php +++ b/src/GeneratedModels/PollResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property PollResponseData $poll - */ class PollResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?PollResponseData $poll = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/PollResponseData.php b/src/GeneratedModels/PollResponseData.php index e623a26..6bfd4cc 100644 --- a/src/GeneratedModels/PollResponseData.php +++ b/src/GeneratedModels/PollResponseData.php @@ -3,61 +3,36 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $allowAnswers - * @property bool $allowUserSuggestedOptions - * @property int $answersCount - * @property \DateTime $createdAt - * @property string $createdByID - * @property string $description - * @property bool $enforceUniqueVote - * @property string $id - * @property string $name - * @property \DateTime $updatedAt - * @property int $voteCount - * @property string $votingVisibility - * @property array $latestAnswers - * @property array $options - * @property array $ownVotes - * @property object $custom - * @property array $latestVotesByOption - * @property array $voteCountsByOption - * @property bool|null $isClosed - * @property int|null $maxVotesAllowed - * @property UserResponse|null $createdBy - */ class PollResponseData extends BaseModel { public function __construct( - public ?bool $allowAnswers = null, - public ?bool $allowUserSuggestedOptions = null, - public ?int $answersCount = null, - public ?\DateTime $createdAt = null, - public ?string $createdByID = null, - public ?string $description = null, - public ?bool $enforceUniqueVote = null, + public ?UserResponse $createdBy = null, public ?string $id = null, public ?string $name = null, - public ?\DateTime $updatedAt = null, - public ?int $voteCount = null, + public ?string $description = null, public ?string $votingVisibility = null, - /** @var array|null */ - #[ArrayOf(PollVoteResponseData::class)] - public ?array $latestAnswers = null, + public ?bool $enforceUniqueVote = null, + public ?int $maxVotesAllowed = null, + public ?bool $allowUserSuggestedOptions = null, + public ?bool $allowAnswers = null, + public ?bool $isClosed = null, + public ?int $voteCount = null, /** @var array|null */ #[ArrayOf(PollOptionResponseData::class)] public ?array $options = null, + public ?int $answersCount = null, + public ?array $voteCountsByOption = null, + public ?array $latestVotesByOption = null, + /** @var array|null */ + #[ArrayOf(PollVoteResponseData::class)] + public ?array $latestAnswers = null, /** @var array|null */ #[ArrayOf(PollVoteResponseData::class)] public ?array $ownVotes = null, + public ?string $createdByID = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, public ?object $custom = null, - public ?array $latestVotesByOption = null, - public ?array $voteCountsByOption = null, - public ?bool $isClosed = null, - public ?int $maxVotesAllowed = null, - public ?UserResponse $createdBy = null, ) { } diff --git a/src/GeneratedModels/PollVoteResponse.php b/src/GeneratedModels/PollVoteResponse.php index 7e2b24f..abb29f4 100644 --- a/src/GeneratedModels/PollVoteResponse.php +++ b/src/GeneratedModels/PollVoteResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property PollResponseData|null $poll - * @property PollVoteResponseData|null $vote - */ class PollVoteResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?PollResponseData $poll = null, public ?PollVoteResponseData $vote = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/PollVoteResponseData.php b/src/GeneratedModels/PollVoteResponseData.php index 5c06f06..47d01ad 100644 --- a/src/GeneratedModels/PollVoteResponseData.php +++ b/src/GeneratedModels/PollVoteResponseData.php @@ -3,31 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $id - * @property string $optionID - * @property string $pollID - * @property \DateTime $updatedAt - * @property string|null $answerText - * @property bool|null $isAnswer - * @property string|null $userID - * @property UserResponse|null $user - */ class PollVoteResponseData extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, + public ?UserResponse $user = null, + public ?string $pollID = null, public ?string $id = null, public ?string $optionID = null, - public ?string $pollID = null, - public ?\DateTime $updatedAt = null, - public ?string $answerText = null, public ?bool $isAnswer = null, + public ?string $answerText = null, public ?string $userID = null, - public ?UserResponse $user = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, ) { } diff --git a/src/GeneratedModels/PollVotesResponse.php b/src/GeneratedModels/PollVotesResponse.php index 99852fc..4e7642a 100644 --- a/src/GeneratedModels/PollVotesResponse.php +++ b/src/GeneratedModels/PollVotesResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $votes - * @property string|null $next - * @property string|null $prev - */ class PollVotesResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null Poll votes */ + /** @var array|null */ #[ArrayOf(PollVoteResponseData::class)] public ?array $votes = null, // Poll votes public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/PrivacySettingsResponse.php b/src/GeneratedModels/PrivacySettingsResponse.php index 8c1edc2..3e03cab 100644 --- a/src/GeneratedModels/PrivacySettingsResponse.php +++ b/src/GeneratedModels/PrivacySettingsResponse.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property DeliveryReceiptsResponse|null $deliveryReceipts - * @property ReadReceiptsResponse|null $readReceipts - * @property TypingIndicatorsResponse|null $typingIndicators - */ class PrivacySettingsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PublishedTrackFlags.php b/src/GeneratedModels/PublishedTrackFlags.php index 6b138b0..34827ae 100644 --- a/src/GeneratedModels/PublishedTrackFlags.php +++ b/src/GeneratedModels/PublishedTrackFlags.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $audio - * @property bool $screenshare - * @property bool $screenshareAudio - * @property bool $video - */ class PublishedTrackFlags extends BaseModel { public function __construct( + public ?bool $video = null, public ?bool $audio = null, public ?bool $screenshare = null, public ?bool $screenshareAudio = null, - public ?bool $video = null, ) { } diff --git a/src/GeneratedModels/PublishedTrackMetrics.php b/src/GeneratedModels/PublishedTrackMetrics.php index a1b6f4d..fe74398 100644 --- a/src/GeneratedModels/PublishedTrackMetrics.php +++ b/src/GeneratedModels/PublishedTrackMetrics.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $codec - * @property string|null $trackID - * @property string|null $trackType - * @property array|null $warnings - * @property MetricTimeSeries|null $bitrate - * @property MetricTimeSeries|null $framerate - * @property ResolutionMetricsTimeSeries|null $resolution - */ class PublishedTrackMetrics extends BaseModel { public function __construct( - public ?string $codec = null, + public ?MetricTimeSeries $bitrate = null, + public ?MetricTimeSeries $framerate = null, + public ?ResolutionMetricsTimeSeries $resolution = null, public ?string $trackID = null, public ?string $trackType = null, + public ?string $codec = null, /** @var array|null */ #[ArrayOf(SessionWarningResponse::class)] public ?array $warnings = null, - public ?MetricTimeSeries $bitrate = null, - public ?MetricTimeSeries $framerate = null, - public ?ResolutionMetricsTimeSeries $resolution = null, ) { } diff --git a/src/GeneratedModels/PublisherAllMetrics.php b/src/GeneratedModels/PublisherAllMetrics.php index b2ef698..ce542fd 100644 --- a/src/GeneratedModels/PublisherAllMetrics.php +++ b/src/GeneratedModels/PublisherAllMetrics.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property PublisherAudioMetrics|null $audio - * @property ActiveCallsLatencyStats|null $rttMs - * @property PublisherVideoMetrics|null $video - */ class PublisherAllMetrics extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PublisherAudioMetrics.php b/src/GeneratedModels/PublisherAudioMetrics.php index f12f8c7..76c5add 100644 --- a/src/GeneratedModels/PublisherAudioMetrics.php +++ b/src/GeneratedModels/PublisherAudioMetrics.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property ActiveCallsLatencyStats|null $jitterMs - */ class PublisherAudioMetrics extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PublisherStatsResponse.php b/src/GeneratedModels/PublisherStatsResponse.php index ddec2bd..655f14a 100644 --- a/src/GeneratedModels/PublisherStatsResponse.php +++ b/src/GeneratedModels/PublisherStatsResponse.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $total - * @property int $unique - * @property array|null $byTrack - */ class PublisherStatsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PublisherVideoMetrics.php b/src/GeneratedModels/PublisherVideoMetrics.php index a7df133..c259116 100644 --- a/src/GeneratedModels/PublisherVideoMetrics.php +++ b/src/GeneratedModels/PublisherVideoMetrics.php @@ -3,15 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property ActiveCallsBitrateStats|null $bitrate - * @property ActiveCallsFPSStats|null $fps30 - * @property ActiveCallsLatencyStats|null $frameEncodingTimeMs - * @property ActiveCallsLatencyStats|null $jitterMs - * @property ActiveCallsResolutionStats|null $resolution - */ class PublisherVideoMetrics extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PublishersMetrics.php b/src/GeneratedModels/PublishersMetrics.php index ba70930..2f728d2 100644 --- a/src/GeneratedModels/PublishersMetrics.php +++ b/src/GeneratedModels/PublishersMetrics.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property PublisherAllMetrics|null $all - */ class PublishersMetrics extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PushConfig.php b/src/GeneratedModels/PushConfig.php index 9201466..37aa444 100644 --- a/src/GeneratedModels/PushConfig.php +++ b/src/GeneratedModels/PushConfig.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $version - * @property bool|null $offlineOnly - */ class PushConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PushNotificationConfig.php b/src/GeneratedModels/PushNotificationConfig.php index 5d99eb6..5c75d5d 100644 --- a/src/GeneratedModels/PushNotificationConfig.php +++ b/src/GeneratedModels/PushNotificationConfig.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $enablePush - * @property array|null $pushTypes - */ class PushNotificationConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PushNotificationFields.php b/src/GeneratedModels/PushNotificationFields.php index 0353947..25c8d05 100644 --- a/src/GeneratedModels/PushNotificationFields.php +++ b/src/GeneratedModels/PushNotificationFields.php @@ -3,26 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $offlineOnly - * @property string $version - * @property APNConfigFields $apn - * @property FirebaseConfigFields $firebase - * @property HuaweiConfigFields $huawei - * @property XiaomiConfigFields $xiaomi - * @property array|null $providers - */ class PushNotificationFields extends BaseModel { public function __construct( - public ?bool $offlineOnly = null, - public ?string $version = null, public ?APNConfigFields $apn = null, public ?FirebaseConfigFields $firebase = null, public ?HuaweiConfigFields $huawei = null, public ?XiaomiConfigFields $xiaomi = null, + public ?string $version = null, + public ?bool $offlineOnly = null, /** @var array|null */ #[ArrayOf(PushProvider::class)] public ?array $providers = null, diff --git a/src/GeneratedModels/PushNotificationSettingsResponse.php b/src/GeneratedModels/PushNotificationSettingsResponse.php index f7859e9..93742b4 100644 --- a/src/GeneratedModels/PushNotificationSettingsResponse.php +++ b/src/GeneratedModels/PushNotificationSettingsResponse.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $disabled - * @property \DateTime|null $disabledUntil - */ class PushNotificationSettingsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/PushPreferenceInput.php b/src/GeneratedModels/PushPreferenceInput.php index 248c0fd..42b964c 100644 --- a/src/GeneratedModels/PushPreferenceInput.php +++ b/src/GeneratedModels/PushPreferenceInput.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $callLevel - * @property string|null $channelCid - * @property string|null $chatLevel - * @property \DateTime|null $disabledUntil - * @property string|null $feedsLevel - * @property bool|null $removeDisable - * @property string|null $userID - * @property FeedsPreferences|null $feedsPreferences - */ class PushPreferenceInput extends BaseModel { public function __construct( - public ?string $callLevel = null, // Set the level of call push notifications for the user. One of all, none, default + public ?FeedsPreferences $feedsPreferences = null, + public ?string $userID = null, // The user id for which to set the push preferences. Required when using server side auths, defaults to current user with client side auth. public ?string $channelCid = null, // Set the push preferences for a specific channel. If empty it sets the default for the user - public ?string $chatLevel = null, // Set the level of chat push notifications for the user. One of all, mentions, none, default + public ?string $chatLevel = null, // Set the level of chat push notifications for the user. Note: "mentions" is deprecated in favor of "direct_mentions". One of: all, mentions, direct_mentions, all_mentions, none, default + public ?string $callLevel = null, // Set the level of call push notifications for the user. One of: all, none, default + public ?string $feedsLevel = null, // Set the level of feeds push notifications for the user. One of: all, none, default public ?\DateTime $disabledUntil = null, // Disable push notifications till a certain time - public ?string $feedsLevel = null, // Set the level of feeds push notifications for the user. One of all, none, default public ?bool $removeDisable = null, // Remove the disabled until time. (IE stop snoozing notifications) - public ?string $userID = null, // The user id for which to set the push preferences. Required when using server side auths, defaults to current user with client side auth. - public ?FeedsPreferences $feedsPreferences = null, ) { } diff --git a/src/GeneratedModels/PushPreferencesResponse.php b/src/GeneratedModels/PushPreferencesResponse.php index bb400bb..159cfb0 100644 --- a/src/GeneratedModels/PushPreferencesResponse.php +++ b/src/GeneratedModels/PushPreferencesResponse.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $callLevel - * @property string|null $chatLevel - * @property \DateTime|null $disabledUntil - * @property string|null $feedsLevel - * @property FeedsPreferencesResponse|null $feedsPreferences - */ class PushPreferencesResponse extends BaseModel { public function __construct( - public ?string $callLevel = null, + public ?FeedsPreferencesResponse $feedsPreferences = null, public ?string $chatLevel = null, - public ?\DateTime $disabledUntil = null, + public ?string $callLevel = null, public ?string $feedsLevel = null, - public ?FeedsPreferencesResponse $feedsPreferences = null, + public ?\DateTime $disabledUntil = null, ) { } diff --git a/src/GeneratedModels/PushProvider.php b/src/GeneratedModels/PushProvider.php index f0a890c..d49bb45 100644 --- a/src/GeneratedModels/PushProvider.php +++ b/src/GeneratedModels/PushProvider.php @@ -3,71 +3,39 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $name - * @property string $type - * @property \DateTime $updatedAt - * @property string|null $apnAuthKey - * @property string|null $apnAuthType - * @property bool|null $apnDevelopment - * @property string|null $apnHost - * @property string|null $apnKeyID - * @property string|null $apnNotificationTemplate - * @property string|null $apnP12Cert - * @property string|null $apnTeamID - * @property string|null $apnTopic - * @property string|null $description - * @property \DateTime|null $disabledAt - * @property string|null $disabledReason - * @property string|null $firebaseApnTemplate - * @property string|null $firebaseCredentials - * @property string|null $firebaseDataTemplate - * @property string|null $firebaseHost - * @property string|null $firebaseNotificationTemplate - * @property string|null $firebaseServerKey - * @property string|null $huaweiAppID - * @property string|null $huaweiAppSecret - * @property string|null $huaweiHost - * @property string|null $xiaomiAppSecret - * @property string|null $xiaomiPackageName - * @property array|null $pushTemplates - */ class PushProvider extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, public ?string $name = null, public ?string $type = null, + public ?string $description = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, + public ?\DateTime $disabledAt = null, + public ?string $disabledReason = null, public ?string $apnAuthKey = null, - public ?string $apnAuthType = null, - public ?bool $apnDevelopment = null, - public ?string $apnHost = null, public ?string $apnKeyID = null, - public ?string $apnNotificationTemplate = null, public ?string $apnP12Cert = null, public ?string $apnTeamID = null, public ?string $apnTopic = null, - public ?string $description = null, - public ?\DateTime $disabledAt = null, - public ?string $disabledReason = null, - public ?string $firebaseApnTemplate = null, + public ?string $apnAuthType = null, + public ?bool $apnDevelopment = null, + public ?string $apnHost = null, + public ?string $apnNotificationTemplate = null, + public ?string $firebaseServerKey = null, public ?string $firebaseCredentials = null, public ?string $firebaseDataTemplate = null, - public ?string $firebaseHost = null, public ?string $firebaseNotificationTemplate = null, - public ?string $firebaseServerKey = null, + public ?string $firebaseApnTemplate = null, + public ?string $firebaseHost = null, public ?string $huaweiAppID = null, public ?string $huaweiAppSecret = null, - public ?string $huaweiHost = null, - public ?string $xiaomiAppSecret = null, public ?string $xiaomiPackageName = null, + public ?string $xiaomiAppSecret = null, /** @var array|null */ #[ArrayOf(PushTemplate::class)] public ?array $pushTemplates = null, + public ?string $huaweiHost = null, ) { } diff --git a/src/GeneratedModels/PushProviderRequest.php b/src/GeneratedModels/PushProviderRequest.php new file mode 100644 index 0000000..41f5b07 --- /dev/null +++ b/src/GeneratedModels/PushProviderRequest.php @@ -0,0 +1,38 @@ + $histogram - */ class QualityScoreReport extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/QualityScoreReportResponse.php b/src/GeneratedModels/QualityScoreReportResponse.php index 7cabfd3..a0f4127 100644 --- a/src/GeneratedModels/QualityScoreReportResponse.php +++ b/src/GeneratedModels/QualityScoreReportResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $daily - */ class QualityScoreReportResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/QueryActivitiesRequest.php b/src/GeneratedModels/QueryActivitiesRequest.php index cc38fe5..d276ddc 100644 --- a/src/GeneratedModels/QueryActivitiesRequest.php +++ b/src/GeneratedModels/QueryActivitiesRequest.php @@ -3,31 +3,20 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $includePrivateActivities - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property string|null $userID - * @property array|null $sort - * @property object|null $filter - * @property UserRequest|null $user - */ class QueryActivitiesRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, + public ?object $filter = null, // Filters to apply to the query. Supports location-based queries with 'near' and 'within_bounds' operators. + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sorting parameters for the query public ?bool $includePrivateActivities = null, + public ?bool $includeExpiredActivities = null, // When true, include both expired and non-expired activities in the result. public ?int $limit = null, public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - /** @var array|null Sorting parameters for the query */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sorting parameters for the query - public ?object $filter = null, // Filters to apply to the query. Supports location-based queries with 'near' and 'within_bounds' operators. - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/QueryActivitiesResponse.php b/src/GeneratedModels/QueryActivitiesResponse.php index 0caca6d..9455859 100644 --- a/src/GeneratedModels/QueryActivitiesResponse.php +++ b/src/GeneratedModels/QueryActivitiesResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $activities - * @property string|null $next - * @property string|null $prev - */ class QueryActivitiesResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of activities matching the query */ + /** @var array|null */ #[ArrayOf(ActivityResponse::class)] public ?array $activities = null, // List of activities matching the query public ?string $next = null, // Cursor for next page public ?string $prev = null, // Cursor for previous page + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryActivityReactionsRequest.php b/src/GeneratedModels/QueryActivityReactionsRequest.php index d396dd3..0f69db0 100644 --- a/src/GeneratedModels/QueryActivityReactionsRequest.php +++ b/src/GeneratedModels/QueryActivityReactionsRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filter - */ class QueryActivityReactionsRequest extends BaseModel { public function __construct( - public ?int $limit = null, - public ?string $next = null, - public ?string $prev = null, + public ?object $filter = null, /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, - public ?object $filter = null, + public ?int $limit = null, + public ?string $next = null, + public ?string $prev = null, ) { } diff --git a/src/GeneratedModels/QueryActivityReactionsResponse.php b/src/GeneratedModels/QueryActivityReactionsResponse.php index e1c7fbc..2a59604 100644 --- a/src/GeneratedModels/QueryActivityReactionsResponse.php +++ b/src/GeneratedModels/QueryActivityReactionsResponse.php @@ -5,21 +5,16 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $reactions - * @property string|null $next - * @property string|null $prev */ class QueryActivityReactionsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(FeedsReactionResponse::class)] public ?array $reactions = null, public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryAggregateCallStatsRequest.php b/src/GeneratedModels/QueryAggregateCallStatsRequest.php index b996f2c..a698dde 100644 --- a/src/GeneratedModels/QueryAggregateCallStatsRequest.php +++ b/src/GeneratedModels/QueryAggregateCallStatsRequest.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $from - * @property string|null $to - * @property array|null $reportTypes - */ class QueryAggregateCallStatsRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/QueryAggregateCallStatsResponse.php b/src/GeneratedModels/QueryAggregateCallStatsResponse.php index 92691ea..3790908 100644 --- a/src/GeneratedModels/QueryAggregateCallStatsResponse.php +++ b/src/GeneratedModels/QueryAggregateCallStatsResponse.php @@ -5,20 +5,10 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property CallDurationReportResponse|null $callDurationReport - * @property CallParticipantCountReportResponse|null $callParticipantCountReport - * @property CallsPerDayReportResponse|null $callsPerDayReport - * @property NetworkMetricsReportResponse|null $networkMetricsReport - * @property QualityScoreReportResponse|null $qualityScoreReport - * @property SDKUsageReportResponse|null $sdkUsageReport - * @property UserFeedbackReportResponse|null $userFeedbackReport */ class QueryAggregateCallStatsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?CallDurationReportResponse $callDurationReport = null, public ?CallParticipantCountReportResponse $callParticipantCountReport = null, public ?CallsPerDayReportResponse $callsPerDayReport = null, @@ -26,6 +16,7 @@ public function __construct( public ?QualityScoreReportResponse $qualityScoreReport = null, public ?SDKUsageReportResponse $sdkUsageReport = null, public ?UserFeedbackReportResponse $userFeedbackReport = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryAppealsRequest.php b/src/GeneratedModels/QueryAppealsRequest.php index 5416e1a..c528463 100644 --- a/src/GeneratedModels/QueryAppealsRequest.php +++ b/src/GeneratedModels/QueryAppealsRequest.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property string|null $userID - * @property array|null $sort - * @property object|null $filter - * @property UserRequest|null $user - */ class QueryAppealsRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, + public ?object $filter = null, // Filter conditions for appeals + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sorting parameters for appeals public ?int $limit = null, public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - /** @var array|null Sorting parameters for appeals */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sorting parameters for appeals - public ?object $filter = null, // Filter conditions for appeals - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/QueryAppealsResponse.php b/src/GeneratedModels/QueryAppealsResponse.php index fdf26d1..c1f8bd2 100644 --- a/src/GeneratedModels/QueryAppealsResponse.php +++ b/src/GeneratedModels/QueryAppealsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $items - * @property string|null $next - * @property string|null $prev - */ class QueryAppealsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of Appeal Items */ + /** @var array|null */ #[ArrayOf(AppealItemResponse::class)] public ?array $items = null, // List of Appeal Items public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryBannedUsersPayload.php b/src/GeneratedModels/QueryBannedUsersPayload.php index 8afb1ea..0e2b7f2 100644 --- a/src/GeneratedModels/QueryBannedUsersPayload.php +++ b/src/GeneratedModels/QueryBannedUsersPayload.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property object $filterConditions - * @property bool|null $excludeExpiredBans - * @property int|null $limit - * @property int|null $offset - * @property string|null $userID - * @property array|null $sort - * @property UserRequest|null $user - */ class QueryBannedUsersPayload extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?object $filterConditions = null, - public ?bool $excludeExpiredBans = null, // Whether to exclude expired bans or not + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Array of sort parameters public ?int $limit = null, // Number of records to return public ?int $offset = null, // Number of records to offset + public ?bool $excludeExpiredBans = null, // Whether to exclude expired bans or not public ?string $userID = null, - /** @var array|null Array of sort parameters */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Array of sort parameters - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/QueryBannedUsersResponse.php b/src/GeneratedModels/QueryBannedUsersResponse.php index 0020894..0b5f591 100644 --- a/src/GeneratedModels/QueryBannedUsersResponse.php +++ b/src/GeneratedModels/QueryBannedUsersResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $bans - */ class QueryBannedUsersResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null List of found bans */ + /** @var array|null */ #[ArrayOf(BanResponse::class)] public ?array $bans = null, // List of found bans + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryBookmarkFoldersRequest.php b/src/GeneratedModels/QueryBookmarkFoldersRequest.php index 4f95fd4..ee856a2 100644 --- a/src/GeneratedModels/QueryBookmarkFoldersRequest.php +++ b/src/GeneratedModels/QueryBookmarkFoldersRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filter - */ class QueryBookmarkFoldersRequest extends BaseModel { public function __construct( + public ?object $filter = null, // Filters to apply to the query + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sorting parameters for the query public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - /** @var array|null Sorting parameters for the query */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sorting parameters for the query - public ?object $filter = null, // Filters to apply to the query ) { } diff --git a/src/GeneratedModels/QueryBookmarkFoldersResponse.php b/src/GeneratedModels/QueryBookmarkFoldersResponse.php index c10746b..342a437 100644 --- a/src/GeneratedModels/QueryBookmarkFoldersResponse.php +++ b/src/GeneratedModels/QueryBookmarkFoldersResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $bookmarkFolders - * @property string|null $next - * @property string|null $prev - */ class QueryBookmarkFoldersResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of bookmark folders matching the query */ + /** @var array|null */ #[ArrayOf(BookmarkFolderResponse::class)] public ?array $bookmarkFolders = null, // List of bookmark folders matching the query public ?string $next = null, // Cursor for next page public ?string $prev = null, // Cursor for previous page + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryBookmarksRequest.php b/src/GeneratedModels/QueryBookmarksRequest.php index 1e65b10..f832534 100644 --- a/src/GeneratedModels/QueryBookmarksRequest.php +++ b/src/GeneratedModels/QueryBookmarksRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filter - */ class QueryBookmarksRequest extends BaseModel { public function __construct( + public ?object $filter = null, // Filters to apply to the query + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sorting parameters for the query public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - /** @var array|null Sorting parameters for the query */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sorting parameters for the query - public ?object $filter = null, // Filters to apply to the query ) { } diff --git a/src/GeneratedModels/QueryBookmarksResponse.php b/src/GeneratedModels/QueryBookmarksResponse.php index 88953bc..132e176 100644 --- a/src/GeneratedModels/QueryBookmarksResponse.php +++ b/src/GeneratedModels/QueryBookmarksResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $bookmarks - * @property string|null $next - * @property string|null $prev - */ class QueryBookmarksResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of bookmarks matching the query */ + /** @var array|null */ #[ArrayOf(BookmarkResponse::class)] public ?array $bookmarks = null, // List of bookmarks matching the query public ?string $next = null, // Cursor for next page public ?string $prev = null, // Cursor for previous page + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryCallMembersRequest.php b/src/GeneratedModels/QueryCallMembersRequest.php index 3c46c8c..861397b 100644 --- a/src/GeneratedModels/QueryCallMembersRequest.php +++ b/src/GeneratedModels/QueryCallMembersRequest.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property string $type - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filterConditions - */ class QueryCallMembersRequest extends BaseModel { public function __construct( - public ?string $id = null, public ?string $type = null, - public ?int $limit = null, - public ?string $next = null, - public ?string $prev = null, + public ?string $id = null, + public ?object $filterConditions = null, /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, - public ?object $filterConditions = null, + public ?int $limit = null, + public ?string $next = null, + public ?string $prev = null, ) { } diff --git a/src/GeneratedModels/QueryCallMembersResponse.php b/src/GeneratedModels/QueryCallMembersResponse.php index dbca176..f1ec46d 100644 --- a/src/GeneratedModels/QueryCallMembersResponse.php +++ b/src/GeneratedModels/QueryCallMembersResponse.php @@ -5,21 +5,16 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $members - * @property string|null $next - * @property string|null $prev */ class QueryCallMembersResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryCallParticipantSessionsResponse.php b/src/GeneratedModels/QueryCallParticipantSessionsResponse.php index f99026c..182d6d0 100644 --- a/src/GeneratedModels/QueryCallParticipantSessionsResponse.php +++ b/src/GeneratedModels/QueryCallParticipantSessionsResponse.php @@ -5,33 +5,22 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $callID - * @property string $callSessionID - * @property string $callType - * @property int $duration - * @property int $totalParticipantDuration - * @property int $totalParticipantSessions - * @property array $participantsSessions - * @property string|null $next - * @property string|null $prev - * @property CallSessionResponse|null $session */ class QueryCallParticipantSessionsResponse extends BaseModel { public function __construct( + public ?CallSessionResponse $session = null, + public ?string $next = null, + public ?string $prev = null, + public ?string $callType = null, public ?string $callID = null, public ?string $callSessionID = null, - public ?string $callType = null, public ?int $duration = null, // Duration of the request in milliseconds - public ?int $totalParticipantDuration = null, public ?int $totalParticipantSessions = null, + public ?int $totalParticipantDuration = null, /** @var array|null */ #[ArrayOf(ParticipantSessionDetails::class)] public ?array $participantsSessions = null, - public ?string $next = null, - public ?string $prev = null, - public ?CallSessionResponse $session = null, ) { } diff --git a/src/GeneratedModels/QueryCallParticipantsRequest.php b/src/GeneratedModels/QueryCallParticipantsRequest.php index 7bf203c..6daa362 100644 --- a/src/GeneratedModels/QueryCallParticipantsRequest.php +++ b/src/GeneratedModels/QueryCallParticipantsRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property object|null $filterConditions - */ class QueryCallParticipantsRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/QueryCallParticipantsResponse.php b/src/GeneratedModels/QueryCallParticipantsResponse.php index dd219f5..202eae6 100644 --- a/src/GeneratedModels/QueryCallParticipantsResponse.php +++ b/src/GeneratedModels/QueryCallParticipantsResponse.php @@ -3,31 +3,21 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property int $totalParticipants - * @property array $members - * @property array $ownCapabilities - * @property array $participants - * @property CallResponse $call - */ class QueryCallParticipantsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - public ?int $totalParticipants = null, + public ?CallResponse $call = null, /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, /** @var array|null */ #[ArrayOf(OwnCapability::class)] public ?array $ownCapabilities = null, - /** @var array|null List of call participants */ + /** @var array|null */ #[ArrayOf(CallParticipantResponse::class)] public ?array $participants = null, // List of call participants - public ?CallResponse $call = null, + public ?int $totalParticipants = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryCallSessionParticipantStatsResponse.php b/src/GeneratedModels/QueryCallSessionParticipantStatsResponse.php index 347ece3..d9760c4 100644 --- a/src/GeneratedModels/QueryCallSessionParticipantStatsResponse.php +++ b/src/GeneratedModels/QueryCallSessionParticipantStatsResponse.php @@ -5,34 +5,22 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $callID - * @property string $callSessionID - * @property string $callType - * @property string $duration - * @property array $participants - * @property CallStatsParticipantCounts $counts - * @property \DateTime|null $callEndedAt - * @property \DateTime|null $callStartedAt - * @property string|null $next - * @property string|null $prev - * @property string|null $tmpDataSource */ class QueryCallSessionParticipantStatsResponse extends BaseModel { public function __construct( + public ?CallStatsParticipantCounts $counts = null, + public ?string $duration = null, // Duration of the request in milliseconds + public ?string $next = null, + public ?string $prev = null, + public ?string $callType = null, public ?string $callID = null, public ?string $callSessionID = null, - public ?string $callType = null, - public ?string $duration = null, // Duration of the request in milliseconds + public ?\DateTime $callStartedAt = null, + public ?\DateTime $callEndedAt = null, /** @var array|null */ #[ArrayOf(CallStatsParticipant::class)] public ?array $participants = null, - public ?CallStatsParticipantCounts $counts = null, - public ?\DateTime $callEndedAt = null, - public ?\DateTime $callStartedAt = null, - public ?string $next = null, - public ?string $prev = null, public ?string $tmpDataSource = null, ) { } diff --git a/src/GeneratedModels/QueryCallSessionParticipantStatsTimelineResponse.php b/src/GeneratedModels/QueryCallSessionParticipantStatsTimelineResponse.php index a7d4a3d..359c199 100644 --- a/src/GeneratedModels/QueryCallSessionParticipantStatsTimelineResponse.php +++ b/src/GeneratedModels/QueryCallSessionParticipantStatsTimelineResponse.php @@ -5,22 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $callID - * @property string $callSessionID - * @property string $callType - * @property string $duration - * @property string $userID - * @property string $userSessionID - * @property array $events */ class QueryCallSessionParticipantStatsTimelineResponse extends BaseModel { public function __construct( + public ?string $duration = null, // Duration of the request in milliseconds + public ?string $callType = null, public ?string $callID = null, public ?string $callSessionID = null, - public ?string $callType = null, - public ?string $duration = null, // Duration of the request in milliseconds public ?string $userID = null, public ?string $userSessionID = null, /** @var array|null */ diff --git a/src/GeneratedModels/QueryCallStatsMapResponse.php b/src/GeneratedModels/QueryCallStatsMapResponse.php index b534a47..df60fc4 100644 --- a/src/GeneratedModels/QueryCallStatsMapResponse.php +++ b/src/GeneratedModels/QueryCallStatsMapResponse.php @@ -5,39 +5,24 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $callID - * @property string $callSessionID - * @property string $callType - * @property string $duration - * @property CallStatsParticipantCounts $counts - * @property \DateTime|null $callEndedAt - * @property \DateTime|null $callStartedAt - * @property string|null $dataSource - * @property \DateTime|null $endTime - * @property \DateTime|null $generatedAt - * @property \DateTime|null $startTime - * @property CallStatsMapPublishers|null $publishers - * @property CallStatsMapSFUs|null $sfus - * @property CallStatsMapSubscribers|null $subscribers */ class QueryCallStatsMapResponse extends BaseModel { public function __construct( + public ?CallStatsParticipantCounts $counts = null, + public ?CallStatsMapPublishers $publishers = null, + public ?CallStatsMapSFUs $sfus = null, + public ?CallStatsMapSubscribers $subscribers = null, + public ?string $duration = null, // Duration of the request in milliseconds + public ?string $callType = null, public ?string $callID = null, public ?string $callSessionID = null, - public ?string $callType = null, - public ?string $duration = null, // Duration of the request in milliseconds - public ?CallStatsParticipantCounts $counts = null, - public ?\DateTime $callEndedAt = null, public ?\DateTime $callStartedAt = null, - public ?string $dataSource = null, + public ?\DateTime $callEndedAt = null, + public ?\DateTime $startTime = null, public ?\DateTime $endTime = null, public ?\DateTime $generatedAt = null, - public ?\DateTime $startTime = null, - public ?CallStatsMapPublishers $publishers = null, - public ?CallStatsMapSFUs $sfus = null, - public ?CallStatsMapSubscribers $subscribers = null, + public ?string $dataSource = null, ) { } diff --git a/src/GeneratedModels/QueryCallStatsRequest.php b/src/GeneratedModels/QueryCallStatsRequest.php index 4ca08db..23b1fda 100644 --- a/src/GeneratedModels/QueryCallStatsRequest.php +++ b/src/GeneratedModels/QueryCallStatsRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filterConditions - */ class QueryCallStatsRequest extends BaseModel { public function __construct( - public ?int $limit = null, - public ?string $next = null, - public ?string $prev = null, + public ?object $filterConditions = null, /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, - public ?object $filterConditions = null, + public ?int $limit = null, + public ?string $next = null, + public ?string $prev = null, ) { } diff --git a/src/GeneratedModels/QueryCallStatsResponse.php b/src/GeneratedModels/QueryCallStatsResponse.php index 8b784de..ad2be5f 100644 --- a/src/GeneratedModels/QueryCallStatsResponse.php +++ b/src/GeneratedModels/QueryCallStatsResponse.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $reports - * @property string|null $next - * @property string|null $prev */ class QueryCallStatsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(CallStatsReportSummaryResponse::class)] public ?array $reports = null, + public ?string $duration = null, // Duration of the request in milliseconds public ?string $next = null, public ?string $prev = null, ) { diff --git a/src/GeneratedModels/QueryCallsRequest.php b/src/GeneratedModels/QueryCallsRequest.php index d6d19b0..ed25b5f 100644 --- a/src/GeneratedModels/QueryCallsRequest.php +++ b/src/GeneratedModels/QueryCallsRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filterConditions - */ class QueryCallsRequest extends BaseModel { public function __construct( + public ?object $filterConditions = null, + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Array of sort parameters public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - /** @var array|null Array of sort parameters */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Array of sort parameters - public ?object $filterConditions = null, ) { } diff --git a/src/GeneratedModels/QueryCallsResponse.php b/src/GeneratedModels/QueryCallsResponse.php index c947b28..decf3ab 100644 --- a/src/GeneratedModels/QueryCallsResponse.php +++ b/src/GeneratedModels/QueryCallsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $calls - * @property string|null $next - * @property string|null $prev - */ class QueryCallsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(CallStateResponseFields::class)] public ?array $calls = null, public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryCampaignsRequest.php b/src/GeneratedModels/QueryCampaignsRequest.php index 7fd8ba6..5f75306 100644 --- a/src/GeneratedModels/QueryCampaignsRequest.php +++ b/src/GeneratedModels/QueryCampaignsRequest.php @@ -3,27 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property int|null $userLimit - * @property array|null $sort - * @property object|null $filter - */ class QueryCampaignsRequest extends BaseModel { public function __construct( - public ?int $limit = null, - public ?string $next = null, - public ?string $prev = null, - public ?int $userLimit = null, + public ?object $filter = null, /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, - public ?object $filter = null, + public ?int $userLimit = null, + public ?int $limit = null, + public ?string $next = null, + public ?string $prev = null, ) { } diff --git a/src/GeneratedModels/QueryCampaignsResponse.php b/src/GeneratedModels/QueryCampaignsResponse.php index 745e959..8ad3684 100644 --- a/src/GeneratedModels/QueryCampaignsResponse.php +++ b/src/GeneratedModels/QueryCampaignsResponse.php @@ -5,21 +5,16 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $campaigns - * @property string|null $next - * @property string|null $prev */ class QueryCampaignsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(CampaignResponse::class)] public ?array $campaigns = null, public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryChannelsRequest.php b/src/GeneratedModels/QueryChannelsRequest.php index a76b894..8be924a 100644 --- a/src/GeneratedModels/QueryChannelsRequest.php +++ b/src/GeneratedModels/QueryChannelsRequest.php @@ -3,39 +3,23 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property int|null $memberLimit - * @property int|null $messageLimit - * @property int|null $offset - * @property string|null $predefinedFilter - * @property bool|null $state - * @property string|null $userID - * @property array|null $sort - * @property object|null $filterConditions - * @property object|null $filterValues - * @property object|null $sortValues - * @property UserRequest|null $user - */ class QueryChannelsRequest extends BaseModel { public function __construct( - public ?int $limit = null, // Number of channels to limit - public ?int $memberLimit = null, // Number of members to limit + public ?UserRequest $user = null, + public ?object $filterConditions = null, + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // List of sort parameters + public ?bool $state = null, // Whether to update channel state or not public ?int $messageLimit = null, // Number of messages to limit + public ?int $memberLimit = null, // Number of members to limit + public ?int $limit = null, // Number of channels to limit public ?int $offset = null, // Channel pagination offset public ?string $predefinedFilter = null, // ID of a predefined filter to use instead of filter_conditions - public ?bool $state = null, // Whether to update channel state or not - public ?string $userID = null, - /** @var array|null List of sort parameters */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // List of sort parameters - public ?object $filterConditions = null, public ?object $filterValues = null, // Values to interpolate into the predefined filter template public ?object $sortValues = null, - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/QueryChannelsResponse.php b/src/GeneratedModels/QueryChannelsResponse.php index 9f23f4b..85a592e 100644 --- a/src/GeneratedModels/QueryChannelsResponse.php +++ b/src/GeneratedModels/QueryChannelsResponse.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $channels - * @property ParsedPredefinedFilterResponse|null $predefinedFilter - */ class QueryChannelsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null List of channels */ + public ?ParsedPredefinedFilterResponse $predefinedFilter = null, + /** @var array|null */ #[ArrayOf(ChannelStateResponseFields::class)] public ?array $channels = null, // List of channels - public ?ParsedPredefinedFilterResponse $predefinedFilter = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryCommentReactionsRequest.php b/src/GeneratedModels/QueryCommentReactionsRequest.php index efcb256..efeaf7a 100644 --- a/src/GeneratedModels/QueryCommentReactionsRequest.php +++ b/src/GeneratedModels/QueryCommentReactionsRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filter - */ class QueryCommentReactionsRequest extends BaseModel { public function __construct( - public ?int $limit = null, - public ?string $next = null, - public ?string $prev = null, + public ?object $filter = null, /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, - public ?object $filter = null, + public ?int $limit = null, + public ?string $next = null, + public ?string $prev = null, ) { } diff --git a/src/GeneratedModels/QueryCommentReactionsResponse.php b/src/GeneratedModels/QueryCommentReactionsResponse.php index c6dafcd..3f673b2 100644 --- a/src/GeneratedModels/QueryCommentReactionsResponse.php +++ b/src/GeneratedModels/QueryCommentReactionsResponse.php @@ -5,21 +5,16 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $reactions - * @property string|null $next - * @property string|null $prev */ class QueryCommentReactionsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(FeedsReactionResponse::class)] public ?array $reactions = null, public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryCommentsRequest.php b/src/GeneratedModels/QueryCommentsRequest.php index aa9e083..6dc3b6f 100644 --- a/src/GeneratedModels/QueryCommentsRequest.php +++ b/src/GeneratedModels/QueryCommentsRequest.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property object $filter - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property string|null $sort - */ class QueryCommentsRequest extends BaseModel { public function __construct( public ?object $filter = null, // MongoDB-style filter for querying comments + public ?string $sort = null, // first (oldest), last (newest) or top. One of: first, last, top, best, controversial public ?int $limit = null, // Maximum number of comments to return public ?string $next = null, public ?string $prev = null, - public ?string $sort = null, // first (oldest), last (newest) or top ) { } diff --git a/src/GeneratedModels/QueryCommentsResponse.php b/src/GeneratedModels/QueryCommentsResponse.php index 021820a..ee6a3dd 100644 --- a/src/GeneratedModels/QueryCommentsResponse.php +++ b/src/GeneratedModels/QueryCommentsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $comments - * @property string|null $next - * @property string|null $prev - */ class QueryCommentsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of comments matching the query */ + /** @var array|null */ #[ArrayOf(CommentResponse::class)] public ?array $comments = null, // List of comments matching the query public ?string $next = null, // Cursor for next page public ?string $prev = null, // Cursor for previous page + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryDraftsRequest.php b/src/GeneratedModels/QueryDraftsRequest.php index 84a675d..b3e274c 100644 --- a/src/GeneratedModels/QueryDraftsRequest.php +++ b/src/GeneratedModels/QueryDraftsRequest.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property string|null $userID - * @property array|null $sort - * @property object|null $filter - * @property UserRequest|null $user - */ class QueryDraftsRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, + public ?object $filter = null, // Filter to apply to the query + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Array of sort parameters + public ?string $userID = null, public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - public ?string $userID = null, - /** @var array|null Array of sort parameters */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Array of sort parameters - public ?object $filter = null, // Filter to apply to the query - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/QueryDraftsResponse.php b/src/GeneratedModels/QueryDraftsResponse.php index b24a434..34c04e5 100644 --- a/src/GeneratedModels/QueryDraftsResponse.php +++ b/src/GeneratedModels/QueryDraftsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $drafts - * @property string|null $next - * @property string|null $prev - */ class QueryDraftsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null Drafts */ + /** @var array|null */ #[ArrayOf(DraftResponse::class)] public ?array $drafts = null, // Drafts public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryFeedMembersRequest.php b/src/GeneratedModels/QueryFeedMembersRequest.php index b68d5ab..5148303 100644 --- a/src/GeneratedModels/QueryFeedMembersRequest.php +++ b/src/GeneratedModels/QueryFeedMembersRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filter - */ class QueryFeedMembersRequest extends BaseModel { public function __construct( + public ?object $filter = null, // Filter parameters for the query + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sort parameters for the query public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - /** @var array|null Sort parameters for the query */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sort parameters for the query - public ?object $filter = null, // Filter parameters for the query ) { } diff --git a/src/GeneratedModels/QueryFeedMembersResponse.php b/src/GeneratedModels/QueryFeedMembersResponse.php index 9ba6d10..cb16277 100644 --- a/src/GeneratedModels/QueryFeedMembersResponse.php +++ b/src/GeneratedModels/QueryFeedMembersResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $members - * @property string|null $next - * @property string|null $prev - */ class QueryFeedMembersResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of feed members */ + /** @var array|null */ #[ArrayOf(FeedMemberResponse::class)] public ?array $members = null, // List of feed members public ?string $next = null, // Cursor for next page public ?string $prev = null, // Cursor for previous page + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryFeedModerationTemplate.php b/src/GeneratedModels/QueryFeedModerationTemplate.php index 2f9a9c4..195564f 100644 --- a/src/GeneratedModels/QueryFeedModerationTemplate.php +++ b/src/GeneratedModels/QueryFeedModerationTemplate.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $name - * @property \DateTime $updatedAt - * @property FeedsModerationTemplateConfig|null $config - */ class QueryFeedModerationTemplate extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // When the template was created + public ?FeedsModerationTemplateConfigPayload $config = null, public ?string $name = null, // Name of the moderation template + public ?\DateTime $createdAt = null, // When the template was created public ?\DateTime $updatedAt = null, // When the template was last updated - public ?FeedsModerationTemplateConfig $config = null, ) { } diff --git a/src/GeneratedModels/QueryFeedModerationTemplatesResponse.php b/src/GeneratedModels/QueryFeedModerationTemplatesResponse.php index 3d9b14f..d889bbd 100644 --- a/src/GeneratedModels/QueryFeedModerationTemplatesResponse.php +++ b/src/GeneratedModels/QueryFeedModerationTemplatesResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $templates - */ class QueryFeedModerationTemplatesResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of moderation templates */ + /** @var array|null */ #[ArrayOf(QueryFeedModerationTemplate::class)] public ?array $templates = null, // List of moderation templates + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryFeedsRequest.php b/src/GeneratedModels/QueryFeedsRequest.php index 2595d24..e204e93 100644 --- a/src/GeneratedModels/QueryFeedsRequest.php +++ b/src/GeneratedModels/QueryFeedsRequest.php @@ -3,27 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property bool|null $watch - * @property array|null $sort - * @property object|null $filter - */ class QueryFeedsRequest extends BaseModel { public function __construct( - public ?int $limit = null, - public ?string $next = null, - public ?string $prev = null, + public ?object $filter = null, // Filters to apply to the query public ?bool $watch = null, // Whether to subscribe to realtime updates - /** @var array|null Sorting parameters for the query */ + /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, // Sorting parameters for the query - public ?object $filter = null, // Filters to apply to the query + public ?int $limit = null, + public ?string $next = null, + public ?string $prev = null, ) { } diff --git a/src/GeneratedModels/QueryFeedsResponse.php b/src/GeneratedModels/QueryFeedsResponse.php index ade3c27..e157f92 100644 --- a/src/GeneratedModels/QueryFeedsResponse.php +++ b/src/GeneratedModels/QueryFeedsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $feeds - * @property string|null $next - * @property string|null $prev - */ class QueryFeedsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of feeds matching the query */ + /** @var array|null */ #[ArrayOf(FeedResponse::class)] public ?array $feeds = null, // List of feeds matching the query public ?string $next = null, // Cursor for next page public ?string $prev = null, // Cursor for previous page + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryFeedsUsageStatsRequest.php b/src/GeneratedModels/QueryFeedsUsageStatsRequest.php index be9a298..bd42bde 100644 --- a/src/GeneratedModels/QueryFeedsUsageStatsRequest.php +++ b/src/GeneratedModels/QueryFeedsUsageStatsRequest.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $from - * @property string|null $to - */ class QueryFeedsUsageStatsRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/QueryFeedsUsageStatsResponse.php b/src/GeneratedModels/QueryFeedsUsageStatsResponse.php index af9b1d4..0df2387 100644 --- a/src/GeneratedModels/QueryFeedsUsageStatsResponse.php +++ b/src/GeneratedModels/QueryFeedsUsageStatsResponse.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property DailyMetricStatsResponse $activities - * @property DailyMetricStatsResponse $apiRequests - * @property DailyMetricStatsResponse $follows - * @property DailyMetricStatsResponse $openaiRequests - */ class QueryFeedsUsageStatsResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?DailyMetricStatsResponse $activities = null, public ?DailyMetricStatsResponse $apiRequests = null, public ?DailyMetricStatsResponse $follows = null, public ?DailyMetricStatsResponse $openaiRequests = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryFollowsRequest.php b/src/GeneratedModels/QueryFollowsRequest.php index d433a4a..ab728d3 100644 --- a/src/GeneratedModels/QueryFollowsRequest.php +++ b/src/GeneratedModels/QueryFollowsRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filter - */ class QueryFollowsRequest extends BaseModel { public function __construct( + public ?object $filter = null, // Filters to apply to the query + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sorting parameters for the query public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - /** @var array|null Sorting parameters for the query */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sorting parameters for the query - public ?object $filter = null, // Filters to apply to the query ) { } diff --git a/src/GeneratedModels/QueryFollowsResponse.php b/src/GeneratedModels/QueryFollowsResponse.php index 64eb381..00cb58f 100644 --- a/src/GeneratedModels/QueryFollowsResponse.php +++ b/src/GeneratedModels/QueryFollowsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $follows - * @property string|null $next - * @property string|null $prev - */ class QueryFollowsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of follow relationships matching the query */ + /** @var array|null */ #[ArrayOf(FollowResponse::class)] public ?array $follows = null, // List of follow relationships matching the query public ?string $next = null, // Cursor for next page public ?string $prev = null, // Cursor for previous page + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryFutureChannelBansPayload.php b/src/GeneratedModels/QueryFutureChannelBansPayload.php index 8bbc09d..7ad3a6e 100644 --- a/src/GeneratedModels/QueryFutureChannelBansPayload.php +++ b/src/GeneratedModels/QueryFutureChannelBansPayload.php @@ -3,25 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $excludeExpiredBans - * @property int|null $limit - * @property int|null $offset - * @property string|null $targetUserID - * @property string|null $userID - * @property UserRequest|null $user - */ class QueryFutureChannelBansPayload extends BaseModel { public function __construct( - public ?bool $excludeExpiredBans = null, // Whether to exclude expired bans or not + public ?UserRequest $user = null, public ?int $limit = null, // Number of records to return public ?int $offset = null, // Number of records to offset + public ?bool $excludeExpiredBans = null, // Whether to exclude expired bans or not public ?string $targetUserID = null, // Filter by the target user ID. For server-side requests only. public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/QueryFutureChannelBansResponse.php b/src/GeneratedModels/QueryFutureChannelBansResponse.php index 79c5c44..1639474 100644 --- a/src/GeneratedModels/QueryFutureChannelBansResponse.php +++ b/src/GeneratedModels/QueryFutureChannelBansResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $bans - */ class QueryFutureChannelBansResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null List of found future channel bans */ + /** @var array|null */ #[ArrayOf(FutureChannelBanResponse::class)] public ?array $bans = null, // List of found future channel bans + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryMembersPayload.php b/src/GeneratedModels/QueryMembersPayload.php index 60409ab..4116476 100644 --- a/src/GeneratedModels/QueryMembersPayload.php +++ b/src/GeneratedModels/QueryMembersPayload.php @@ -5,33 +5,23 @@ namespace GetStream\GeneratedModels; /** * Client request - * - * @property string $type - * @property object $filterConditions - * @property string|null $id - * @property int|null $limit - * @property int|null $offset - * @property string|null $userID - * @property array|null $members - * @property array|null $sort - * @property UserRequest|null $user */ class QueryMembersPayload extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $type = null, - public ?object $filterConditions = null, public ?string $id = null, - public ?int $limit = null, - public ?int $offset = null, - public ?string $userID = null, /** @var array|null */ #[ArrayOf(ChannelMemberRequest::class)] public ?array $members = null, + public ?object $filterConditions = null, /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, - public ?UserRequest $user = null, + public ?int $limit = null, + public ?int $offset = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/QueryMembershipLevelsRequest.php b/src/GeneratedModels/QueryMembershipLevelsRequest.php index 4a32f3e..2558b70 100644 --- a/src/GeneratedModels/QueryMembershipLevelsRequest.php +++ b/src/GeneratedModels/QueryMembershipLevelsRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filter - */ class QueryMembershipLevelsRequest extends BaseModel { public function __construct( + public ?object $filter = null, // Filters to apply to the query + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sorting parameters for the query public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - /** @var array|null Sorting parameters for the query */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sorting parameters for the query - public ?object $filter = null, // Filters to apply to the query ) { } diff --git a/src/GeneratedModels/QueryMembershipLevelsResponse.php b/src/GeneratedModels/QueryMembershipLevelsResponse.php index 8e9e665..99aa4b2 100644 --- a/src/GeneratedModels/QueryMembershipLevelsResponse.php +++ b/src/GeneratedModels/QueryMembershipLevelsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $membershipLevels - * @property string|null $next - * @property string|null $prev - */ class QueryMembershipLevelsResponse extends BaseModel { public function __construct( - public ?string $duration = null, /** @var array|null */ #[ArrayOf(MembershipLevelResponse::class)] public ?array $membershipLevels = null, public ?string $next = null, // Cursor for next page public ?string $prev = null, // Cursor for previous page + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryMessageFlagsPayload.php b/src/GeneratedModels/QueryMessageFlagsPayload.php index 6ae4213..2f32820 100644 --- a/src/GeneratedModels/QueryMessageFlagsPayload.php +++ b/src/GeneratedModels/QueryMessageFlagsPayload.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property int|null $offset - * @property bool|null $showDeletedMessages - * @property string|null $userID - * @property array|null $sort - * @property object|null $filterConditions - * @property UserRequest|null $user - */ class QueryMessageFlagsPayload extends BaseModel { public function __construct( + public ?UserRequest $user = null, + public ?object $filterConditions = null, + public ?bool $showDeletedMessages = null, // Whether to include deleted messages in the results public ?int $limit = null, public ?int $offset = null, - public ?bool $showDeletedMessages = null, // Whether to include deleted messages in the results - public ?string $userID = null, /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, - public ?object $filterConditions = null, - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/QueryMessageFlagsResponse.php b/src/GeneratedModels/QueryMessageFlagsResponse.php index 7639aab..2504750 100644 --- a/src/GeneratedModels/QueryMessageFlagsResponse.php +++ b/src/GeneratedModels/QueryMessageFlagsResponse.php @@ -5,17 +5,14 @@ namespace GetStream\GeneratedModels; /** * Query message flags response - * - * @property string $duration - * @property array $flags */ class QueryMessageFlagsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null The flags that match the query */ + /** @var array|null */ #[ArrayOf(MessageFlagResponse::class)] public ?array $flags = null, // The flags that match the query + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryMessageHistoryRequest.php b/src/GeneratedModels/QueryMessageHistoryRequest.php index 41ba0bb..f23eb3c 100644 --- a/src/GeneratedModels/QueryMessageHistoryRequest.php +++ b/src/GeneratedModels/QueryMessageHistoryRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property object $filter - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - */ class QueryMessageHistoryRequest extends BaseModel { public function __construct( public ?object $filter = null, // Filter to apply to the query + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Array of sort parameters public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - /** @var array|null Array of sort parameters */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Array of sort parameters ) { } diff --git a/src/GeneratedModels/QueryMessageHistoryResponse.php b/src/GeneratedModels/QueryMessageHistoryResponse.php index b13bd3b..6d43182 100644 --- a/src/GeneratedModels/QueryMessageHistoryResponse.php +++ b/src/GeneratedModels/QueryMessageHistoryResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $messageHistory - * @property string|null $next - * @property string|null $prev - */ class QueryMessageHistoryResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null Message history entries */ + /** @var array|null */ #[ArrayOf(MessageHistoryEntryResponse::class)] public ?array $messageHistory = null, // Message history entries public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryModerationConfigsRequest.php b/src/GeneratedModels/QueryModerationConfigsRequest.php index 0b5bed7..3a75bf8 100644 --- a/src/GeneratedModels/QueryModerationConfigsRequest.php +++ b/src/GeneratedModels/QueryModerationConfigsRequest.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property string|null $userID - * @property array|null $sort - * @property object|null $filter - * @property UserRequest|null $user - */ class QueryModerationConfigsRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, + public ?object $filter = null, // Filter conditions for moderation configs + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sorting parameters for the results public ?int $limit = null, public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - /** @var array|null Sorting parameters for the results */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sorting parameters for the results - public ?object $filter = null, // Filter conditions for moderation configs - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/QueryModerationConfigsResponse.php b/src/GeneratedModels/QueryModerationConfigsResponse.php index feec9db..587d528 100644 --- a/src/GeneratedModels/QueryModerationConfigsResponse.php +++ b/src/GeneratedModels/QueryModerationConfigsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $configs - * @property string|null $next - * @property string|null $prev - */ class QueryModerationConfigsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of moderation configurations */ + /** @var array|null */ #[ArrayOf(ConfigResponse::class)] public ?array $configs = null, // List of moderation configurations public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryModerationFlagsRequest.php b/src/GeneratedModels/QueryModerationFlagsRequest.php index 0f30a4d..9873f51 100644 --- a/src/GeneratedModels/QueryModerationFlagsRequest.php +++ b/src/GeneratedModels/QueryModerationFlagsRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filter - */ class QueryModerationFlagsRequest extends BaseModel { public function __construct( + public ?object $filter = null, + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - /** @var array|null */ - #[ArrayOf(SortParam::class)] - public ?array $sort = null, - public ?object $filter = null, ) { } diff --git a/src/GeneratedModels/QueryModerationFlagsResponse.php b/src/GeneratedModels/QueryModerationFlagsResponse.php index a59a383..5000367 100644 --- a/src/GeneratedModels/QueryModerationFlagsResponse.php +++ b/src/GeneratedModels/QueryModerationFlagsResponse.php @@ -5,21 +5,16 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $flags - * @property string|null $next - * @property string|null $prev */ class QueryModerationFlagsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(ModerationFlagResponse::class)] public ?array $flags = null, public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryModerationLogsRequest.php b/src/GeneratedModels/QueryModerationLogsRequest.php index 32d392a..426be3c 100644 --- a/src/GeneratedModels/QueryModerationLogsRequest.php +++ b/src/GeneratedModels/QueryModerationLogsRequest.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property string|null $userID - * @property array|null $sort - * @property object|null $filter - * @property UserRequest|null $user - */ class QueryModerationLogsRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, + public ?object $filter = null, // Filter conditions for moderation logs + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sorting parameters for the results public ?int $limit = null, public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - /** @var array|null Sorting parameters for the results */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sorting parameters for the results - public ?object $filter = null, // Filter conditions for moderation logs - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/QueryModerationLogsResponse.php b/src/GeneratedModels/QueryModerationLogsResponse.php index 2bc0d39..aa46148 100644 --- a/src/GeneratedModels/QueryModerationLogsResponse.php +++ b/src/GeneratedModels/QueryModerationLogsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $logs - * @property string|null $next - * @property string|null $prev - */ class QueryModerationLogsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of moderation action logs */ + /** @var array|null */ #[ArrayOf(ActionLogResponse::class)] public ?array $logs = null, // List of moderation action logs public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryModerationRulesRequest.php b/src/GeneratedModels/QueryModerationRulesRequest.php index b678f2f..2224d6e 100644 --- a/src/GeneratedModels/QueryModerationRulesRequest.php +++ b/src/GeneratedModels/QueryModerationRulesRequest.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property string|null $userID - * @property array|null $sort - * @property object|null $filter - * @property UserRequest|null $user - */ class QueryModerationRulesRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, + public ?object $filter = null, // Filter conditions for moderation rules + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sorting parameters for the results public ?int $limit = null, public ?string $next = null, public ?string $prev = null, public ?string $userID = null, - /** @var array|null Sorting parameters for the results */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sorting parameters for the results - public ?object $filter = null, // Filter conditions for moderation rules - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/QueryModerationRulesResponse.php b/src/GeneratedModels/QueryModerationRulesResponse.php index 16ceb51..3d69a9f 100644 --- a/src/GeneratedModels/QueryModerationRulesResponse.php +++ b/src/GeneratedModels/QueryModerationRulesResponse.php @@ -3,25 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $rules - * @property array $defaultLlmLabels - * @property string|null $next - * @property string|null $prev - */ class QueryModerationRulesResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of moderation rules */ + /** @var array|null */ #[ArrayOf(ModerationRuleV2Response::class)] public ?array $rules = null, // List of moderation rules public ?array $defaultLlmLabels = null, // Default LLM label descriptions + public ?array $keyframeLabels = null, // Available harm labels for keyframe rules + public ?array $closedCaptionLabels = null, // Available harm labels for closed caption rules public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QueryPinnedActivitiesRequest.php b/src/GeneratedModels/QueryPinnedActivitiesRequest.php new file mode 100644 index 0000000..19ff8f4 --- /dev/null +++ b/src/GeneratedModels/QueryPinnedActivitiesRequest.php @@ -0,0 +1,21 @@ +|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sorting parameters for the query + public ?int $limit = null, + public ?string $next = null, + public ?string $prev = null, + ) { + } + + // BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types! + // Use #[JsonKey('user_id')] to override field names if needed. +} diff --git a/src/GeneratedModels/QueryPinnedActivitiesResponse.php b/src/GeneratedModels/QueryPinnedActivitiesResponse.php new file mode 100644 index 0000000..bec85e9 --- /dev/null +++ b/src/GeneratedModels/QueryPinnedActivitiesResponse.php @@ -0,0 +1,20 @@ +|null */ + #[ArrayOf(ActivityPinResponse::class)] + public ?array $pinnedActivities = null, // List of pinned activities matching the query + public ?string $next = null, // Cursor for next page + public ?string $prev = null, // Cursor for previous page + public ?string $duration = null, + ) { + } + + // BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types! + // Use #[JsonKey('user_id')] to override field names if needed. +} diff --git a/src/GeneratedModels/QueryPollVotesRequest.php b/src/GeneratedModels/QueryPollVotesRequest.php index 3eb63fa..e6df93a 100644 --- a/src/GeneratedModels/QueryPollVotesRequest.php +++ b/src/GeneratedModels/QueryPollVotesRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filter - */ class QueryPollVotesRequest extends BaseModel { public function __construct( + public ?object $filter = null, // Filter to apply to the query + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Array of sort parameters public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - /** @var array|null Array of sort parameters */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Array of sort parameters - public ?object $filter = null, // Filter to apply to the query ) { } diff --git a/src/GeneratedModels/QueryPollsRequest.php b/src/GeneratedModels/QueryPollsRequest.php index ef2503e..28f65eb 100644 --- a/src/GeneratedModels/QueryPollsRequest.php +++ b/src/GeneratedModels/QueryPollsRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filter - */ class QueryPollsRequest extends BaseModel { public function __construct( + public ?object $filter = null, // Filter to apply to the query + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Array of sort parameters public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - /** @var array|null Array of sort parameters */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Array of sort parameters - public ?object $filter = null, // Filter to apply to the query ) { } diff --git a/src/GeneratedModels/QueryPollsResponse.php b/src/GeneratedModels/QueryPollsResponse.php index 218fe12..db1b095 100644 --- a/src/GeneratedModels/QueryPollsResponse.php +++ b/src/GeneratedModels/QueryPollsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $polls - * @property string|null $next - * @property string|null $prev - */ class QueryPollsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null Polls data returned by the query */ + /** @var array|null */ #[ArrayOf(PollResponseData::class)] public ?array $polls = null, // Polls data returned by the query public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryReactionsRequest.php b/src/GeneratedModels/QueryReactionsRequest.php index ce87ab0..2069648 100644 --- a/src/GeneratedModels/QueryReactionsRequest.php +++ b/src/GeneratedModels/QueryReactionsRequest.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property string|null $userID - * @property array|null $sort - * @property object|null $filter - * @property UserRequest|null $user - */ class QueryReactionsRequest extends BaseModel { public function __construct( - public ?int $limit = null, - public ?string $next = null, - public ?string $prev = null, - public ?string $userID = null, + public ?UserRequest $user = null, + public ?object $filter = null, /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, - public ?object $filter = null, - public ?UserRequest $user = null, + public ?string $userID = null, + public ?int $limit = null, + public ?string $next = null, + public ?string $prev = null, ) { } diff --git a/src/GeneratedModels/QueryReactionsResponse.php b/src/GeneratedModels/QueryReactionsResponse.php index 3d7cdf2..9cef97b 100644 --- a/src/GeneratedModels/QueryReactionsResponse.php +++ b/src/GeneratedModels/QueryReactionsResponse.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $reactions - * @property string|null $next - * @property string|null $prev */ class QueryReactionsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(ReactionResponse::class)] public ?array $reactions = null, + public ?string $duration = null, // Duration of the request in milliseconds public ?string $next = null, public ?string $prev = null, ) { diff --git a/src/GeneratedModels/QueryRemindersRequest.php b/src/GeneratedModels/QueryRemindersRequest.php index a8ec468..90d5347 100644 --- a/src/GeneratedModels/QueryRemindersRequest.php +++ b/src/GeneratedModels/QueryRemindersRequest.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property string|null $userID - * @property array|null $sort - * @property object|null $filter - * @property UserRequest|null $user - */ class QueryRemindersRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, + public ?object $filter = null, // Filter to apply to the query + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Array of sort parameters + public ?string $userID = null, public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - public ?string $userID = null, - /** @var array|null Array of sort parameters */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Array of sort parameters - public ?object $filter = null, // Filter to apply to the query - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/QueryRemindersResponse.php b/src/GeneratedModels/QueryRemindersResponse.php index dcb84b4..0cb50ed 100644 --- a/src/GeneratedModels/QueryRemindersResponse.php +++ b/src/GeneratedModels/QueryRemindersResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $reminders - * @property string|null $next - * @property string|null $prev - */ class QueryRemindersResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null MessageReminders data returned by the query */ + /** @var array|null */ #[ArrayOf(ReminderResponseData::class)] public ?array $reminders = null, // MessageReminders data returned by the query public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryReviewQueueRequest.php b/src/GeneratedModels/QueryReviewQueueRequest.php index 6a3bd71..be059d5 100644 --- a/src/GeneratedModels/QueryReviewQueueRequest.php +++ b/src/GeneratedModels/QueryReviewQueueRequest.php @@ -3,37 +3,22 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property int|null $lockCount - * @property int|null $lockDuration - * @property bool|null $lockItems - * @property string|null $next - * @property string|null $prev - * @property bool|null $statsOnly - * @property string|null $userID - * @property array|null $sort - * @property object|null $filter - * @property UserRequest|null $user - */ class QueryReviewQueueRequest extends BaseModel { public function __construct( - public ?int $limit = null, - public ?int $lockCount = null, // Number of items to lock (1-25) - public ?int $lockDuration = null, // Duration for which items should be locked + public ?UserRequest $user = null, + public ?object $filter = null, // Filter conditions for review queue items + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sorting parameters for the results public ?bool $lockItems = null, // Whether to lock items for review (true), unlock items (false), or just fetch (nil) + public ?int $lockDuration = null, // Duration for which items should be locked + public ?int $lockCount = null, // Number of items to lock (1-25) + public ?bool $statsOnly = null, // Whether to return only statistics + public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - public ?bool $statsOnly = null, // Whether to return only statistics public ?string $userID = null, - /** @var array|null Sorting parameters for the results */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sorting parameters for the results - public ?object $filter = null, // Filter conditions for review queue items - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/QueryReviewQueueResponse.php b/src/GeneratedModels/QueryReviewQueueResponse.php index 0f6a5d6..d293d46 100644 --- a/src/GeneratedModels/QueryReviewQueueResponse.php +++ b/src/GeneratedModels/QueryReviewQueueResponse.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $items - * @property array $actionConfig - * @property object $stats - * @property string|null $next - * @property string|null $prev - * @property FilterConfigResponse|null $filterConfig - */ class QueryReviewQueueResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of review queue items */ + public ?FilterConfigResponse $filterConfig = null, + /** @var array|null */ #[ArrayOf(ReviewQueueItemResponse::class)] public ?array $items = null, // List of review queue items public ?array $actionConfig = null, // Configuration for moderation actions public ?object $stats = null, // Statistics about the review queue public ?string $next = null, public ?string $prev = null, - public ?FilterConfigResponse $filterConfig = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/QuerySegmentTargetsRequest.php b/src/GeneratedModels/QuerySegmentTargetsRequest.php index 4dcea61..e3fdc87 100644 --- a/src/GeneratedModels/QuerySegmentTargetsRequest.php +++ b/src/GeneratedModels/QuerySegmentTargetsRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filter - */ class QuerySegmentTargetsRequest extends BaseModel { public function __construct( public ?int $limit = null, // Limit public ?string $next = null, // Next public ?string $prev = null, // Prev + public ?object $filter = null, /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, - public ?object $filter = null, ) { } diff --git a/src/GeneratedModels/QuerySegmentTargetsResponse.php b/src/GeneratedModels/QuerySegmentTargetsResponse.php index 27d647f..af72ef1 100644 --- a/src/GeneratedModels/QuerySegmentTargetsResponse.php +++ b/src/GeneratedModels/QuerySegmentTargetsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $targets - * @property string|null $next - * @property string|null $prev - */ class QuerySegmentTargetsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null Targets */ + /** @var array|null */ #[ArrayOf(SegmentTargetResponse::class)] public ?array $targets = null, // Targets public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QuerySegmentsRequest.php b/src/GeneratedModels/QuerySegmentsRequest.php index 64d2daf..68aa95e 100644 --- a/src/GeneratedModels/QuerySegmentsRequest.php +++ b/src/GeneratedModels/QuerySegmentsRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property object $filter - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - */ class QuerySegmentsRequest extends BaseModel { public function __construct( public ?object $filter = null, // Filter to apply to the query + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Array of sort parameters public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - /** @var array|null Array of sort parameters */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Array of sort parameters ) { } diff --git a/src/GeneratedModels/QuerySegmentsResponse.php b/src/GeneratedModels/QuerySegmentsResponse.php index 5d2f55d..24130b7 100644 --- a/src/GeneratedModels/QuerySegmentsResponse.php +++ b/src/GeneratedModels/QuerySegmentsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $segments - * @property string|null $next - * @property string|null $prev - */ class QuerySegmentsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null Segments */ + /** @var array|null */ #[ArrayOf(SegmentResponse::class)] public ?array $segments = null, // Segments public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryThreadsRequest.php b/src/GeneratedModels/QueryThreadsRequest.php index 942fd55..9f7c272 100644 --- a/src/GeneratedModels/QueryThreadsRequest.php +++ b/src/GeneratedModels/QueryThreadsRequest.php @@ -3,35 +3,21 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property int|null $memberLimit - * @property string|null $next - * @property int|null $participantLimit - * @property string|null $prev - * @property int|null $replyLimit - * @property string|null $userID - * @property array|null $sort - * @property object|null $filter - * @property UserRequest|null $user - */ class QueryThreadsRequest extends BaseModel { public function __construct( - public ?int $limit = null, + public ?UserRequest $user = null, + public ?int $replyLimit = null, // Limit the number of replies returned per each thread + public ?int $participantLimit = null, // Limit the number of participants returned per each thread public ?int $memberLimit = null, + public ?object $filter = null, // Filter conditions to apply to threads + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, // Sort conditions to apply to threads + public ?int $limit = null, public ?string $next = null, - public ?int $participantLimit = null, // Limit the number of participants returned per each thread public ?string $prev = null, - public ?int $replyLimit = null, // Limit the number of replies returned per each thread public ?string $userID = null, - /** @var array|null Sort conditions to apply to threads */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, // Sort conditions to apply to threads - public ?object $filter = null, // Filter conditions to apply to threads - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/QueryThreadsResponse.php b/src/GeneratedModels/QueryThreadsResponse.php index 36ab8dc..9f1350c 100644 --- a/src/GeneratedModels/QueryThreadsResponse.php +++ b/src/GeneratedModels/QueryThreadsResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $threads - * @property string|null $next - * @property string|null $prev - */ class QueryThreadsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null List of enriched thread states */ + /** @var array|null */ #[ArrayOf(ThreadStateResponse::class)] public ?array $threads = null, // List of enriched thread states public ?string $next = null, public ?string $prev = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/QueryUserFeedbackRequest.php b/src/GeneratedModels/QueryUserFeedbackRequest.php index 6eb5a04..af76b42 100644 --- a/src/GeneratedModels/QueryUserFeedbackRequest.php +++ b/src/GeneratedModels/QueryUserFeedbackRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $sort - * @property object|null $filterConditions - */ class QueryUserFeedbackRequest extends BaseModel { public function __construct( - public ?int $limit = null, - public ?string $next = null, - public ?string $prev = null, + public ?object $filterConditions = null, /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, - public ?object $filterConditions = null, + public ?int $limit = null, + public ?string $next = null, + public ?string $prev = null, ) { } diff --git a/src/GeneratedModels/QueryUserFeedbackResponse.php b/src/GeneratedModels/QueryUserFeedbackResponse.php index 67a02e3..df956fd 100644 --- a/src/GeneratedModels/QueryUserFeedbackResponse.php +++ b/src/GeneratedModels/QueryUserFeedbackResponse.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $userFeedback - * @property string|null $next - * @property string|null $prev */ class QueryUserFeedbackResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(UserFeedbackResponse::class)] public ?array $userFeedback = null, + public ?string $duration = null, // Duration of the request in milliseconds public ?string $next = null, public ?string $prev = null, ) { diff --git a/src/GeneratedModels/QueryUsersPayload.php b/src/GeneratedModels/QueryUsersPayload.php index 0b32478..42e473a 100644 --- a/src/GeneratedModels/QueryUsersPayload.php +++ b/src/GeneratedModels/QueryUsersPayload.php @@ -4,30 +4,21 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property object $filterConditions - * @property bool|null $includeDeactivatedUsers - * @property int|null $limit - * @property int|null $offset - * @property bool|null $presence - * @property string|null $userID - * @property array|null $sort - * @property UserRequest|null $user + * Client request */ class QueryUsersPayload extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?object $filterConditions = null, + /** @var array|null */ + #[ArrayOf(SortParamRequest::class)] + public ?array $sort = null, + public ?bool $presence = null, public ?bool $includeDeactivatedUsers = null, public ?int $limit = null, public ?int $offset = null, - public ?bool $presence = null, public ?string $userID = null, - /** @var array|null */ - #[ArrayOf(SortParamRequest::class)] - public ?array $sort = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/QueryUsersResponse.php b/src/GeneratedModels/QueryUsersResponse.php index 282015c..ae220c2 100644 --- a/src/GeneratedModels/QueryUsersResponse.php +++ b/src/GeneratedModels/QueryUsersResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $users - */ class QueryUsersResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null Array of users as result of filters applied. */ + /** @var array|null */ #[ArrayOf(FullUserResponse::class)] public ?array $users = null, // Array of users as result of filters applied. + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/RTMPBroadcastRequest.php b/src/GeneratedModels/RTMPBroadcastRequest.php index f486b2d..3dfdd2b 100644 --- a/src/GeneratedModels/RTMPBroadcastRequest.php +++ b/src/GeneratedModels/RTMPBroadcastRequest.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * RTMPBroadcastRequest is the payload for starting an RTMP broadcast. - * - * @property string $name - * @property string $streamUrl - * @property string|null $quality - * @property string|null $streamKey - * @property LayoutSettingsRequest|null $layout */ class RTMPBroadcastRequest extends BaseModel { public function __construct( + public ?LayoutSettingsRequest $layout = null, public ?string $name = null, // Name identifier for RTMP broadcast, must be unique in call public ?string $streamUrl = null, // URL for the RTMP server to send the call to - public ?string $quality = null, // If provided, will override the call's RTMP settings quality public ?string $streamKey = null, // If provided, will be appended at the end of stream_url - public ?LayoutSettingsRequest $layout = null, + public ?string $quality = null, // If provided, will override the call's RTMP settings quality. One of: 360p, 480p, 720p, 1080p, 1440p, portrait-360x640, portrait-480x854, portrait-720x1280, portrait-1080x1920, portrait-1440x2560 ) { } diff --git a/src/GeneratedModels/RTMPIngress.php b/src/GeneratedModels/RTMPIngress.php index 0bf2336..c522512 100644 --- a/src/GeneratedModels/RTMPIngress.php +++ b/src/GeneratedModels/RTMPIngress.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * RTMP input settings - * - * @property string $address */ class RTMPIngress extends BaseModel { diff --git a/src/GeneratedModels/RTMPLocation.php b/src/GeneratedModels/RTMPLocation.php index dcd413b..992a8f8 100644 --- a/src/GeneratedModels/RTMPLocation.php +++ b/src/GeneratedModels/RTMPLocation.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $name - * @property string $streamKey - * @property string $streamUrl - */ class RTMPLocation extends BaseModel { public function __construct( public ?string $name = null, - public ?string $streamKey = null, public ?string $streamUrl = null, + public ?string $streamKey = null, ) { } diff --git a/src/GeneratedModels/RTMPSettings.php b/src/GeneratedModels/RTMPSettings.php index 3133788..f4eed0a 100644 --- a/src/GeneratedModels/RTMPSettings.php +++ b/src/GeneratedModels/RTMPSettings.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - * @property string|null $qualityName - * @property LayoutSettings|null $layout - * @property RTMPLocation|null $location - */ class RTMPSettings extends BaseModel { public function __construct( - public ?bool $enabled = null, - public ?string $qualityName = null, public ?LayoutSettings $layout = null, public ?RTMPLocation $location = null, + public ?bool $enabled = null, + public ?string $qualityName = null, ) { } diff --git a/src/GeneratedModels/RTMPSettingsRequest.php b/src/GeneratedModels/RTMPSettingsRequest.php index 2749222..61dc5ff 100644 --- a/src/GeneratedModels/RTMPSettingsRequest.php +++ b/src/GeneratedModels/RTMPSettingsRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $enabled - * @property string|null $quality - * @property LayoutSettingsRequest|null $layout - */ class RTMPSettingsRequest extends BaseModel { public function __construct( - public ?bool $enabled = null, - public ?string $quality = null, // Resolution to set for the RTMP stream public ?LayoutSettingsRequest $layout = null, + public ?bool $enabled = null, // Whether RTMP broadcasting is enabled + public ?string $quality = null, // Resolution to set for the RTMP stream. One of: 360p, 480p, 720p, 1080p, 1440p, portrait-360x640, portrait-480x854, portrait-720x1280, portrait-1080x1920, portrait-1440x2560 ) { } diff --git a/src/GeneratedModels/RTMPSettingsResponse.php b/src/GeneratedModels/RTMPSettingsResponse.php index ff4ae47..48f645f 100644 --- a/src/GeneratedModels/RTMPSettingsResponse.php +++ b/src/GeneratedModels/RTMPSettingsResponse.php @@ -5,17 +5,13 @@ namespace GetStream\GeneratedModels; /** * RTMPSettingsResponse is the payload for RTMP settings - * - * @property bool $enabled - * @property string $quality - * @property LayoutSettingsResponse $layout */ class RTMPSettingsResponse extends BaseModel { public function __construct( + public ?LayoutSettingsResponse $layout = null, public ?bool $enabled = null, public ?string $quality = null, - public ?LayoutSettingsResponse $layout = null, ) { } diff --git a/src/GeneratedModels/RankingConfig.php b/src/GeneratedModels/RankingConfig.php index ff83b39..5ab8a6f 100644 --- a/src/GeneratedModels/RankingConfig.php +++ b/src/GeneratedModels/RankingConfig.php @@ -3,20 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $type - * @property string|null $score - * @property object|null $defaults - * @property array|null $functions - */ class RankingConfig extends BaseModel { public function __construct( - public ?string $type = null, // Type of ranking algorithm. Required. Must be one of: expression, interest + public ?string $type = null, // Type of ranking algorithm. Required. One of: expression, interest public ?string $score = null, // Scoring formula. Required when type is 'expression' or 'interest' public ?object $defaults = null, // Default values for ranking + /** @var array|null */ + #[MapOf(DecayFunctionConfig::class)] public ?array $functions = null, // Decay functions configuration ) { } diff --git a/src/GeneratedModels/RawRecordSettings.php b/src/GeneratedModels/RawRecordSettings.php index 9deac19..8763b54 100644 --- a/src/GeneratedModels/RawRecordSettings.php +++ b/src/GeneratedModels/RawRecordSettings.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $mode - */ class RawRecordSettings extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/RawRecordingResponse.php b/src/GeneratedModels/RawRecordingResponse.php index ab1f4e9..ebe161c 100644 --- a/src/GeneratedModels/RawRecordingResponse.php +++ b/src/GeneratedModels/RawRecordingResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $status - */ class RawRecordingResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/RawRecordingSettingsRequest.php b/src/GeneratedModels/RawRecordingSettingsRequest.php index 7029550..d926557 100644 --- a/src/GeneratedModels/RawRecordingSettingsRequest.php +++ b/src/GeneratedModels/RawRecordingSettingsRequest.php @@ -3,15 +3,10 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $mode - */ class RawRecordingSettingsRequest extends BaseModel { public function __construct( - public ?string $mode = null, + public ?string $mode = null, // Recording mode. One of: available, disabled, auto-on ) { } diff --git a/src/GeneratedModels/RawRecordingSettingsResponse.php b/src/GeneratedModels/RawRecordingSettingsResponse.php index 8e3c3b7..5cf0ef7 100644 --- a/src/GeneratedModels/RawRecordingSettingsResponse.php +++ b/src/GeneratedModels/RawRecordingSettingsResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $mode - */ class RawRecordingSettingsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/Reaction.php b/src/GeneratedModels/Reaction.php index 6b8b2f0..4f1b206 100644 --- a/src/GeneratedModels/Reaction.php +++ b/src/GeneratedModels/Reaction.php @@ -3,29 +3,26 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $messageID - * @property int $score - * @property string $type - * @property \DateTime $updatedAt - * @property object $custom - * @property string|null $userID - * @property User|null $user - */ class Reaction extends BaseModel { public function __construct( + public ?User $user = null, + public ?string $id = null, + public ?string $kind = null, + public ?string $activityID = null, + public ?string $userID = null, + public ?object $data = null, + public ?array $targetFeeds = null, + public ?object $targetFeedsExtraData = null, + public ?string $parent = null, + public ?array $latestChildren = null, + public ?array $ownChildren = null, + public ?object $childrenCounts = null, public ?\DateTime $createdAt = null, - public ?string $messageID = null, - public ?int $score = null, - public ?string $type = null, public ?\DateTime $updatedAt = null, - public ?object $custom = null, - public ?string $userID = null, - public ?User $user = null, + public ?\DateTime $deletedAt = null, + public ?int $score = null, + public ?object $moderation = null, ) { } diff --git a/src/GeneratedModels/ReactionDeletedEvent.php b/src/GeneratedModels/ReactionDeletedEvent.php index da695b6..6893014 100644 --- a/src/GeneratedModels/ReactionDeletedEvent.php +++ b/src/GeneratedModels/ReactionDeletedEvent.php @@ -4,34 +4,30 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $type - * @property string|null $team - * @property array|null $threadParticipants - * @property Message|null $message - * @property Reaction|null $reaction - * @property User|null $user + * Emitted when a reaction is deleted from a message. */ class ReactionDeletedEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, - public ?string $team = null, - /** @var array|null */ - #[ArrayOf(User::class)] - public ?array $threadParticipants = null, - public ?Message $message = null, - public ?Reaction $reaction = null, - public ?User $user = null, + public ?ChannelResponse $channel = null, + public ?MessageResponse $message = null, + public ?ReactionResponse $reaction = null, + public ?UserResponseCommonFields $user = null, + public ?string $messageID = null, + /** @var array|null */ + #[ArrayOf(UserResponseCommonFields::class)] + public ?array $threadParticipants = null, // The participants of the thread + public ?string $type = null, // The type of event: "reaction.deleted" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel containing the message + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, // The number of messages in the channel + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel containing the message + public ?string $channelID = null, // The ID of the channel containing the message ) { } diff --git a/src/GeneratedModels/ReactionGroupResponse.php b/src/GeneratedModels/ReactionGroupResponse.php index 0d7169f..4e82620 100644 --- a/src/GeneratedModels/ReactionGroupResponse.php +++ b/src/GeneratedModels/ReactionGroupResponse.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * ReactionGroupResponse contains all information about a reaction of the same type. - * - * @property int $count - * @property \DateTime $firstReactionAt - * @property \DateTime $lastReactionAt - * @property int $sumScores */ class ReactionGroupResponse extends BaseModel { public function __construct( public ?int $count = null, // Count is the number of reactions of this type. + public ?int $sumScores = null, // SumScores is the sum of all scores of reactions of this type. Medium allows you to clap articles more than once and shows the sum of all claps from all users. For example, you can send `clap` x5 using `score: 5`. public ?\DateTime $firstReactionAt = null, // FirstReactionAt is the time of the first reaction of this type. This is the same also if all reaction of this type are deleted, because if someone will react again with the same type, will be preserved the sorting. public ?\DateTime $lastReactionAt = null, // LastReactionAt is the time of the last reaction of this type. - public ?int $sumScores = null, // SumScores is the sum of all scores of reactions of this type. Medium allows you to clap articles more than once and shows the sum of all claps from all users. For example, you can send `clap` x5 using `score: 5`. ) { } diff --git a/src/GeneratedModels/ReactionNewEvent.php b/src/GeneratedModels/ReactionNewEvent.php index 1268d83..d2e07e4 100644 --- a/src/GeneratedModels/ReactionNewEvent.php +++ b/src/GeneratedModels/ReactionNewEvent.php @@ -4,34 +4,30 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $type - * @property string|null $team - * @property array|null $threadParticipants - * @property Message|null $message - * @property Reaction|null $reaction - * @property User|null $user + * Emitted when a new reaction is added to a message. */ class ReactionNewEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, - public ?string $team = null, - /** @var array|null */ - #[ArrayOf(User::class)] - public ?array $threadParticipants = null, - public ?Message $message = null, - public ?Reaction $reaction = null, - public ?User $user = null, + public ?ChannelResponse $channel = null, + public ?MessageResponse $message = null, + public ?ReactionResponse $reaction = null, + public ?UserResponseCommonFields $user = null, + public ?string $messageID = null, + /** @var array|null */ + #[ArrayOf(UserResponseCommonFields::class)] + public ?array $threadParticipants = null, // The participants of the thread + public ?string $type = null, // The type of event: "reaction.new" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel containing the message + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, // The number of messages in the channel + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel containing the message + public ?string $channelID = null, // The ID of the channel containing the message ) { } diff --git a/src/GeneratedModels/ReactionRequest.php b/src/GeneratedModels/ReactionRequest.php index a1bab22..c878aaa 100644 --- a/src/GeneratedModels/ReactionRequest.php +++ b/src/GeneratedModels/ReactionRequest.php @@ -5,25 +5,17 @@ namespace GetStream\GeneratedModels; /** * Represents user reaction to a message - * - * @property string $type - * @property \DateTime|null $createdAt - * @property int|null $score - * @property \DateTime|null $updatedAt - * @property string|null $userID - * @property object|null $custom - * @property UserRequest|null $user */ class ReactionRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $type = null, // The type of reaction (e.g. 'like', 'laugh', 'wow') - public ?\DateTime $createdAt = null, // Date/time of creation public ?int $score = null, // Reaction score. If not specified reaction has score of 1 + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $updatedAt = null, // Date/time of the last update - public ?string $userID = null, public ?object $custom = null, - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/ReactionResponse.php b/src/GeneratedModels/ReactionResponse.php index 6650d0d..6fb322c 100644 --- a/src/GeneratedModels/ReactionResponse.php +++ b/src/GeneratedModels/ReactionResponse.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $messageID - * @property int $score - * @property string $type - * @property \DateTime $updatedAt - * @property string $userID - * @property object $custom - * @property UserResponse $user - */ class ReactionResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation + public ?UserResponse $user = null, public ?string $messageID = null, // Message ID - public ?int $score = null, // Score of the reaction + public ?string $userID = null, // User ID public ?string $type = null, // Type of reaction + public ?int $score = null, // Score of the reaction + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $updatedAt = null, // Date/time of the last update - public ?string $userID = null, // User ID public ?object $custom = null, // Custom data for this object - public ?UserResponse $user = null, ) { } diff --git a/src/GeneratedModels/ReactionUpdatedEvent.php b/src/GeneratedModels/ReactionUpdatedEvent.php index 21a9681..cf2b961 100644 --- a/src/GeneratedModels/ReactionUpdatedEvent.php +++ b/src/GeneratedModels/ReactionUpdatedEvent.php @@ -4,30 +4,27 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property Message $message - * @property Reaction $reaction - * @property string $type - * @property string|null $team - * @property User|null $user + * Emitted when a reaction is updated on a message. */ class ReactionUpdatedEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?Message $message = null, - public ?Reaction $reaction = null, - public ?string $type = null, - public ?string $team = null, - public ?User $user = null, + public ?ChannelResponse $channel = null, + public ?MessageResponse $message = null, + public ?ReactionResponse $reaction = null, + public ?UserResponseCommonFields $user = null, + public ?string $messageID = null, + public ?string $type = null, // The type of event: "reaction.updated" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel containing the message + public ?string $team = null, // The team ID + public ?int $channelMemberCount = null, // The number of members in the channel + public ?int $channelMessageCount = null, // The number of messages in the channel + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel containing the message + public ?string $channelID = null, // The ID of the channel containing the message ) { } diff --git a/src/GeneratedModels/ReactivateUserRequest.php b/src/GeneratedModels/ReactivateUserRequest.php index 10d5729..0ab986e 100644 --- a/src/GeneratedModels/ReactivateUserRequest.php +++ b/src/GeneratedModels/ReactivateUserRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $createdByID - * @property string|null $name - * @property bool|null $restoreMessages - */ class ReactivateUserRequest extends BaseModel { public function __construct( - public ?string $createdByID = null, // ID of the user who's reactivating the user - public ?string $name = null, // Set this field to put new name for the user public ?bool $restoreMessages = null, // Restore previously deleted messages + public ?string $name = null, // Set this field to put new name for the user + public ?string $createdByID = null, // ID of the user who's reactivating the user ) { } diff --git a/src/GeneratedModels/ReactivateUserResponse.php b/src/GeneratedModels/ReactivateUserResponse.php index b6d7a7c..6309cbe 100644 --- a/src/GeneratedModels/ReactivateUserResponse.php +++ b/src/GeneratedModels/ReactivateUserResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property UserResponse|null $user - */ class ReactivateUserResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?UserResponse $user = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/ReactivateUsersRequest.php b/src/GeneratedModels/ReactivateUsersRequest.php index 151c991..1f15e7c 100644 --- a/src/GeneratedModels/ReactivateUsersRequest.php +++ b/src/GeneratedModels/ReactivateUsersRequest.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * Reactivate users in batches - * - * @property array $userIds - * @property string|null $createdByID - * @property bool|null $restoreChannels - * @property bool|null $restoreMessages */ class ReactivateUsersRequest extends BaseModel { public function __construct( public ?array $userIds = null, // User IDs to reactivate + public ?bool $restoreMessages = null, // Restore previously deleted messages public ?string $createdByID = null, // ID of the user who's reactivating the users public ?bool $restoreChannels = null, - public ?bool $restoreMessages = null, // Restore previously deleted messages ) { } diff --git a/src/GeneratedModels/ReactivateUsersResponse.php b/src/GeneratedModels/ReactivateUsersResponse.php index ca30994..e5c4923 100644 --- a/src/GeneratedModels/ReactivateUsersResponse.php +++ b/src/GeneratedModels/ReactivateUsersResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property string $taskID */ class ReactivateUsersResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?string $taskID = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/ReadCollectionsResponse.php b/src/GeneratedModels/ReadCollectionsResponse.php index 5cf8e82..98c0277 100644 --- a/src/GeneratedModels/ReadCollectionsResponse.php +++ b/src/GeneratedModels/ReadCollectionsResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $collections - */ class ReadCollectionsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of collections matching the query */ + /** @var array|null */ #[ArrayOf(CollectionResponse::class)] public ?array $collections = null, // List of collections matching the query + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ReadReceiptsResponse.php b/src/GeneratedModels/ReadReceiptsResponse.php index d2a03fd..29eb5c2 100644 --- a/src/GeneratedModels/ReadReceiptsResponse.php +++ b/src/GeneratedModels/ReadReceiptsResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $enabled - */ class ReadReceiptsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ReadStateResponse.php b/src/GeneratedModels/ReadStateResponse.php index c349057..122959d 100644 --- a/src/GeneratedModels/ReadStateResponse.php +++ b/src/GeneratedModels/ReadStateResponse.php @@ -3,25 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $lastRead - * @property int $unreadMessages - * @property UserResponse $user - * @property \DateTime|null $lastDeliveredAt - * @property string|null $lastDeliveredMessageID - * @property string|null $lastReadMessageID - */ class ReadStateResponse extends BaseModel { public function __construct( + public ?UserResponse $user = null, public ?\DateTime $lastRead = null, public ?int $unreadMessages = null, - public ?UserResponse $user = null, + public ?string $lastReadMessageID = null, public ?\DateTime $lastDeliveredAt = null, public ?string $lastDeliveredMessageID = null, - public ?string $lastReadMessageID = null, ) { } diff --git a/src/GeneratedModels/RecordSettings.php b/src/GeneratedModels/RecordSettings.php index e836082..728de59 100644 --- a/src/GeneratedModels/RecordSettings.php +++ b/src/GeneratedModels/RecordSettings.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $mode - * @property bool|null $audioOnly - * @property string|null $quality - * @property LayoutSettings|null $layout - */ class RecordSettings extends BaseModel { public function __construct( - public ?string $mode = null, + public ?LayoutSettings $layout = null, public ?bool $audioOnly = null, + public ?string $mode = null, public ?string $quality = null, - public ?LayoutSettings $layout = null, ) { } diff --git a/src/GeneratedModels/RecordSettingsRequest.php b/src/GeneratedModels/RecordSettingsRequest.php index c2f34d0..4ca35ae 100644 --- a/src/GeneratedModels/RecordSettingsRequest.php +++ b/src/GeneratedModels/RecordSettingsRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $mode - * @property bool|null $audioOnly - * @property string|null $quality - * @property LayoutSettingsRequest|null $layout - */ class RecordSettingsRequest extends BaseModel { public function __construct( - public ?string $mode = null, - public ?bool $audioOnly = null, - public ?string $quality = null, public ?LayoutSettingsRequest $layout = null, + public ?bool $audioOnly = null, // Whether to record audio only + public ?string $mode = null, // Recording mode. One of: available, disabled, auto-on + public ?string $quality = null, // Recording quality. One of: 360p, 480p, 720p, 1080p, 1440p, portrait-360x640, portrait-480x854, portrait-720x1280, portrait-1080x1920, portrait-1440x2560 ) { } diff --git a/src/GeneratedModels/RecordSettingsResponse.php b/src/GeneratedModels/RecordSettingsResponse.php index 9bcf97e..45fb305 100644 --- a/src/GeneratedModels/RecordSettingsResponse.php +++ b/src/GeneratedModels/RecordSettingsResponse.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * RecordSettings is the payload for recording settings - * - * @property bool $audioOnly - * @property string $mode - * @property string $quality - * @property LayoutSettingsResponse $layout */ class RecordSettingsResponse extends BaseModel { public function __construct( + public ?LayoutSettingsResponse $layout = null, public ?bool $audioOnly = null, public ?string $mode = null, public ?string $quality = null, - public ?LayoutSettingsResponse $layout = null, ) { } diff --git a/src/GeneratedModels/RejectAppealRequestPayload.php b/src/GeneratedModels/RejectAppealRequestPayload.php new file mode 100644 index 0000000..d76a7fe --- /dev/null +++ b/src/GeneratedModels/RejectAppealRequestPayload.php @@ -0,0 +1,18 @@ +|null $flags - * @property ActionLogResponse|null $action - * @property ReviewQueueItemResponse|null $reviewQueueItem */ class ReviewQueueItemNewEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?object $custom = null, + public ?ActionLogResponse $action = null, + public ?ReviewQueueItemResponse $reviewQueueItem = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, - /** @var array|null The flags associated with this review queue item */ + public ?object $custom = null, + /** @var array|null */ #[ArrayOf(ModerationFlagResponse::class)] public ?array $flags = null, // The flags associated with this review queue item - public ?ActionLogResponse $action = null, - public ?ReviewQueueItemResponse $reviewQueueItem = null, ) { } diff --git a/src/GeneratedModels/ReviewQueueItemResponse.php b/src/GeneratedModels/ReviewQueueItemResponse.php index 8a0138b..5080f3b 100644 --- a/src/GeneratedModels/ReviewQueueItemResponse.php +++ b/src/GeneratedModels/ReviewQueueItemResponse.php @@ -3,73 +3,9 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $aiTextSeverity - * @property \DateTime $createdAt - * @property string $entityID - * @property string $entityType - * @property int $flagsCount - * @property string $id - * @property string $latestModeratorAction - * @property string $recommendedAction - * @property string $reviewedBy - * @property int $severity - * @property string $status - * @property \DateTime $updatedAt - * @property array $actions - * @property array $bans - * @property array $flags - * @property array $languages - * @property \DateTime|null $completedAt - * @property string|null $configKey - * @property string|null $entityCreatorID - * @property \DateTime|null $reviewedAt - * @property array|null $teams - * @property EnrichedActivity|null $activity - * @property AppealItemResponse|null $appeal - * @property UserResponse|null $assignedTo - * @property CallResponse|null $call - * @property EntityCreatorResponse|null $entityCreator - * @property EnrichedActivity|null $feedsV2Activity - * @property Reaction|null $feedsV2Reaction - * @property ActivityResponse|null $feedsV3Activity - * @property CommentResponse|null $feedsV3Comment - * @property MessageResponse|null $message - * @property ModerationPayload|null $moderationPayload - * @property Reaction|null $reaction - */ class ReviewQueueItemResponse extends BaseModel { public function __construct( - public ?string $aiTextSeverity = null, // AI-determined text severity - public ?\DateTime $createdAt = null, // When the item was created - public ?string $entityID = null, // ID of the entity being reviewed - public ?string $entityType = null, // Type of entity being reviewed - public ?int $flagsCount = null, - public ?string $id = null, // Unique identifier of the review queue item - public ?string $latestModeratorAction = null, - public ?string $recommendedAction = null, // Suggested moderation action - public ?string $reviewedBy = null, // ID of the moderator who reviewed the item - public ?int $severity = null, // Severity level of the content - public ?string $status = null, // Current status of the review - public ?\DateTime $updatedAt = null, // When the item was last updated - /** @var array|null Moderation actions taken */ - #[ArrayOf(ActionLogResponse::class)] - public ?array $actions = null, // Moderation actions taken - /** @var array|null Associated ban records */ - #[ArrayOf(Ban::class)] - public ?array $bans = null, // Associated ban records - /** @var array|null Associated flag records */ - #[ArrayOf(ModerationFlagResponse::class)] - public ?array $flags = null, // Associated flag records - public ?array $languages = null, // Detected languages in the content - public ?\DateTime $completedAt = null, // When the review was completed - public ?string $configKey = null, - public ?string $entityCreatorID = null, // ID of who created the entity - public ?\DateTime $reviewedAt = null, // When the item was reviewed - public ?array $teams = null, // Teams associated with this item public ?EnrichedActivity $activity = null, public ?AppealItemResponse $appeal = null, public ?UserResponse $assignedTo = null, @@ -80,8 +16,35 @@ public function __construct( public ?ActivityResponse $feedsV3Activity = null, public ?CommentResponse $feedsV3Comment = null, public ?MessageResponse $message = null, - public ?ModerationPayload $moderationPayload = null, + public ?ModerationPayloadResponse $moderationPayload = null, public ?Reaction $reaction = null, + public ?string $id = null, // Unique identifier of the review queue item + public ?\DateTime $createdAt = null, // When the item was created + public ?\DateTime $updatedAt = null, // When the item was last updated + public ?string $entityType = null, // Type of entity being reviewed + public ?string $entityID = null, // ID of the entity being reviewed + public ?string $status = null, // Current status of the review + public ?string $recommendedAction = null, // Suggested moderation action + public ?\DateTime $completedAt = null, // When the review was completed + public ?\DateTime $reviewedAt = null, // When the item was reviewed + public ?string $reviewedBy = null, // ID of the moderator who reviewed the item + public ?array $languages = null, // Detected languages in the content + public ?int $severity = null, // Severity level of the content + public ?string $aiTextSeverity = null, // AI-determined text severity + public ?string $latestModeratorAction = null, + public ?string $entityCreatorID = null, // ID of who created the entity + /** @var array|null */ + #[ArrayOf(BanInfoResponse::class)] + public ?array $bans = null, // Associated ban records + /** @var array|null */ + #[ArrayOf(ModerationFlagResponse::class)] + public ?array $flags = null, // Associated flag records + /** @var array|null */ + #[ArrayOf(ActionLogResponse::class)] + public ?array $actions = null, // Moderation actions taken + public ?array $teams = null, // Teams associated with this item + public ?string $configKey = null, + public ?int $flagsCount = null, ) { } diff --git a/src/GeneratedModels/ReviewQueueItemUpdatedEvent.php b/src/GeneratedModels/ReviewQueueItemUpdatedEvent.php index 20a40ba..83c3b3e 100644 --- a/src/GeneratedModels/ReviewQueueItemUpdatedEvent.php +++ b/src/GeneratedModels/ReviewQueueItemUpdatedEvent.php @@ -5,27 +5,19 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a moderation review queue item is updated - * - * @property \DateTime $createdAt - * @property object $custom - * @property string $type - * @property \DateTime|null $receivedAt - * @property array|null $flags - * @property ActionLogResponse|null $action - * @property ReviewQueueItemResponse|null $reviewQueueItem */ class ReviewQueueItemUpdatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?object $custom = null, + public ?ActionLogResponse $action = null, + public ?ReviewQueueItemResponse $reviewQueueItem = null, public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $receivedAt = null, - /** @var array|null The flags associated with this review queue item */ + public ?object $custom = null, + /** @var array|null */ #[ArrayOf(ModerationFlagResponse::class)] public ?array $flags = null, // The flags associated with this review queue item - public ?ActionLogResponse $action = null, - public ?ReviewQueueItemResponse $reviewQueueItem = null, ) { } diff --git a/src/GeneratedModels/RingCallRequest.php b/src/GeneratedModels/RingCallRequest.php index ed16144..e1ce3e5 100644 --- a/src/GeneratedModels/RingCallRequest.php +++ b/src/GeneratedModels/RingCallRequest.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $video - * @property array|null $membersIds - */ class RingCallRequest extends BaseModel { public function __construct( - public ?bool $video = null, // Indicate if call should be video public ?array $membersIds = null, // Members that should receive the ring. If no ids are provided, all call members who are not already in the call will receive ring notifications. + public ?bool $video = null, // Indicate if call should be video ) { } diff --git a/src/GeneratedModels/RingCallResponse.php b/src/GeneratedModels/RingCallResponse.php index 76be640..746f06d 100644 --- a/src/GeneratedModels/RingCallResponse.php +++ b/src/GeneratedModels/RingCallResponse.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $membersIds - */ class RingCallResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/RingSettings.php b/src/GeneratedModels/RingSettings.php index 25f643a..50f415e 100644 --- a/src/GeneratedModels/RingSettings.php +++ b/src/GeneratedModels/RingSettings.php @@ -3,18 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $autoCancelTimeoutMs - * @property int $incomingCallTimeoutMs - * @property int $missedCallTimeoutMs - */ class RingSettings extends BaseModel { public function __construct( - public ?int $autoCancelTimeoutMs = null, public ?int $incomingCallTimeoutMs = null, + public ?int $autoCancelTimeoutMs = null, public ?int $missedCallTimeoutMs = null, ) { } diff --git a/src/GeneratedModels/RingSettingsRequest.php b/src/GeneratedModels/RingSettingsRequest.php index d4bf55d..712fe64 100644 --- a/src/GeneratedModels/RingSettingsRequest.php +++ b/src/GeneratedModels/RingSettingsRequest.php @@ -3,18 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $autoCancelTimeoutMs - * @property int $incomingCallTimeoutMs - * @property int|null $missedCallTimeoutMs - */ class RingSettingsRequest extends BaseModel { public function __construct( - public ?int $autoCancelTimeoutMs = null, // When none of the callees accept a ring call in this time a rejection will be sent by the caller with reason 'timeout' by the SDKs public ?int $incomingCallTimeoutMs = null, // When a callee is online but doesn't answer a ring call in this time a rejection will be sent with reason 'timeout' by the SDKs + public ?int $autoCancelTimeoutMs = null, // When none of the callees accept a ring call in this time a rejection will be sent by the caller with reason 'timeout' by the SDKs public ?int $missedCallTimeoutMs = null, // When a callee doesn't accept or reject a ring call in this time a missed call event will be sent ) { } diff --git a/src/GeneratedModels/RingSettingsResponse.php b/src/GeneratedModels/RingSettingsResponse.php index 4c4965f..9fb4b8d 100644 --- a/src/GeneratedModels/RingSettingsResponse.php +++ b/src/GeneratedModels/RingSettingsResponse.php @@ -3,18 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $autoCancelTimeoutMs - * @property int $incomingCallTimeoutMs - * @property int $missedCallTimeoutMs - */ class RingSettingsResponse extends BaseModel { public function __construct( - public ?int $autoCancelTimeoutMs = null, public ?int $incomingCallTimeoutMs = null, + public ?int $autoCancelTimeoutMs = null, public ?int $missedCallTimeoutMs = null, ) { } diff --git a/src/GeneratedModels/Role.php b/src/GeneratedModels/Role.php index c8c3c83..ae3b343 100644 --- a/src/GeneratedModels/Role.php +++ b/src/GeneratedModels/Role.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property bool $custom - * @property string $name - * @property \DateTime $updatedAt - * @property array $scopes - */ class Role extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?bool $custom = null, // Whether this is a custom role or built-in public ?string $name = null, // Unique role name - public ?\DateTime $updatedAt = null, // Date/time of the last update + public ?bool $custom = null, // Whether this is a custom role or built-in public ?array $scopes = null, // List of scopes where this role is currently present. `.app` means that role is present in app-level grants + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $updatedAt = null, // Date/time of the last update ) { } diff --git a/src/GeneratedModels/RuleBuilderAction.php b/src/GeneratedModels/RuleBuilderAction.php index a74aa5c..95bf299 100644 --- a/src/GeneratedModels/RuleBuilderAction.php +++ b/src/GeneratedModels/RuleBuilderAction.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $type - * @property BanOptions|null $banOptions - * @property FlagUserOptions|null $flagUserOptions - */ class RuleBuilderAction extends BaseModel { public function __construct( - public ?string $type = null, public ?BanOptions $banOptions = null, + public ?CallActionOptions $callOptions = null, public ?FlagUserOptions $flagUserOptions = null, + public ?string $type = null, ) { } diff --git a/src/GeneratedModels/RuleBuilderCondition.php b/src/GeneratedModels/RuleBuilderCondition.php index 8eca9dd..5694288 100644 --- a/src/GeneratedModels/RuleBuilderCondition.php +++ b/src/GeneratedModels/RuleBuilderCondition.php @@ -3,35 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $confidence - * @property string|null $type - * @property ContentCountRuleParameters|null $contentCountRuleParams - * @property FlagCountRuleParameters|null $contentFlagCountRuleParams - * @property ImageContentParameters|null $imageContentParams - * @property ImageRuleParameters|null $imageRuleParams - * @property TextContentParameters|null $textContentParams - * @property TextRuleParameters|null $textRuleParams - * @property UserCreatedWithinParameters|null $userCreatedWithinParams - * @property UserCustomPropertyParameters|null $userCustomPropertyParams - * @property FlagCountRuleParameters|null $userFlagCountRuleParams - * @property UserIdenticalContentCountParameters|null $userIdenticalContentCountParams - * @property UserRoleParameters|null $userRoleParams - * @property UserRuleParameters|null $userRuleParams - * @property VideoContentParameters|null $videoContentParams - * @property VideoRuleParameters|null $videoRuleParams - */ class RuleBuilderCondition extends BaseModel { public function __construct( - public ?int $confidence = null, - public ?string $type = null, + public ?CallCustomPropertyParameters $callCustomPropertyParams = null, + public ?CallTypeRuleParameters $callTypeRuleParams = null, + public ?ClosedCaptionRuleParameters $closedCaptionRuleParams = null, public ?ContentCountRuleParameters $contentCountRuleParams = null, public ?FlagCountRuleParameters $contentFlagCountRuleParams = null, public ?ImageContentParameters $imageContentParams = null, public ?ImageRuleParameters $imageRuleParams = null, + public ?KeyframeRuleParameters $keyframeRuleParams = null, public ?TextContentParameters $textContentParams = null, public ?TextRuleParameters $textRuleParams = null, public ?UserCreatedWithinParameters $userCreatedWithinParams = null, @@ -42,6 +24,8 @@ public function __construct( public ?UserRuleParameters $userRuleParams = null, public ?VideoContentParameters $videoContentParams = null, public ?VideoRuleParameters $videoRuleParams = null, + public ?string $type = null, + public ?int $confidence = null, ) { } diff --git a/src/GeneratedModels/RuleBuilderConditionGroup.php b/src/GeneratedModels/RuleBuilderConditionGroup.php index f4f16a7..15335da 100644 --- a/src/GeneratedModels/RuleBuilderConditionGroup.php +++ b/src/GeneratedModels/RuleBuilderConditionGroup.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $logic - * @property array|null $conditions - */ class RuleBuilderConditionGroup extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/RuleBuilderConfig.php b/src/GeneratedModels/RuleBuilderConfig.php index b822274..c85bab3 100644 --- a/src/GeneratedModels/RuleBuilderConfig.php +++ b/src/GeneratedModels/RuleBuilderConfig.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $async - * @property array|null $rules - */ class RuleBuilderConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/RuleBuilderRule.php b/src/GeneratedModels/RuleBuilderRule.php index ad58d0e..5b2652d 100644 --- a/src/GeneratedModels/RuleBuilderRule.php +++ b/src/GeneratedModels/RuleBuilderRule.php @@ -3,31 +3,23 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $ruleType - * @property RuleBuilderAction $action - * @property string|null $cooldownPeriod - * @property string|null $id - * @property string|null $logic - * @property array|null $conditions - * @property array|null $groups - */ class RuleBuilderRule extends BaseModel { public function __construct( - public ?string $ruleType = null, public ?RuleBuilderAction $action = null, - public ?string $cooldownPeriod = null, public ?string $id = null, - public ?string $logic = null, + public ?string $ruleType = null, /** @var array|null */ #[ArrayOf(RuleBuilderCondition::class)] public ?array $conditions = null, + public ?string $logic = null, /** @var array|null */ #[ArrayOf(RuleBuilderConditionGroup::class)] public ?array $groups = null, + /** @var array|null */ + #[ArrayOf(CallRuleActionSequence::class)] + public ?array $actionSequences = null, + public ?string $cooldownPeriod = null, ) { } diff --git a/src/GeneratedModels/S3Request.php b/src/GeneratedModels/S3Request.php index 9d4c426..a378ea3 100644 --- a/src/GeneratedModels/S3Request.php +++ b/src/GeneratedModels/S3Request.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * Config for creating Amazon S3 storage. - * - * @property string $s3Region - * @property string|null $s3APIKey - * @property string|null $s3CustomEndpointUrl - * @property string|null $s3Secret */ class S3Request extends BaseModel { public function __construct( public ?string $s3Region = null, // The AWS region where the bucket is hosted public ?string $s3APIKey = null, // The AWS API key. To use Amazon S3 as your storage provider, you have two authentication options: IAM role or API key. If you do not specify the `s3_api_key` parameter, Stream will use IAM role authentication. In that case make sure to have the correct IAM role configured for your application. - public ?string $s3CustomEndpointUrl = null, // The custom endpoint for S3. If you want to use a custom endpoint, you must also provide the `s3_api_key` and `s3_secret` parameters. public ?string $s3Secret = null, // The AWS API Secret + public ?string $s3CustomEndpointUrl = null, // The custom endpoint for S3. If you want to use a custom endpoint, you must also provide the `s3_api_key` and `s3_secret` parameters. ) { } diff --git a/src/GeneratedModels/SDKUsageReport.php b/src/GeneratedModels/SDKUsageReport.php index e1c0cf1..cebf818 100644 --- a/src/GeneratedModels/SDKUsageReport.php +++ b/src/GeneratedModels/SDKUsageReport.php @@ -3,14 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $perSdkUsage - */ class SDKUsageReport extends BaseModel { public function __construct( + /** @var array|null */ + #[MapOf(PerSDKUsageReport::class)] public ?array $perSdkUsage = null, ) { } diff --git a/src/GeneratedModels/SDKUsageReportResponse.php b/src/GeneratedModels/SDKUsageReportResponse.php index eb256f6..96d7a2e 100644 --- a/src/GeneratedModels/SDKUsageReportResponse.php +++ b/src/GeneratedModels/SDKUsageReportResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $daily - */ class SDKUsageReportResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SFULocationResponse.php b/src/GeneratedModels/SFULocationResponse.php index 4985a2f..38f1679 100644 --- a/src/GeneratedModels/SFULocationResponse.php +++ b/src/GeneratedModels/SFULocationResponse.php @@ -3,22 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $datacenter - * @property string $id - * @property Coordinates $coordinates - * @property Location $location - * @property int|null $count - */ class SFULocationResponse extends BaseModel { public function __construct( - public ?string $datacenter = null, + public ?CoordinatesResponse $coordinates = null, + public ?LocationResponse $location = null, public ?string $id = null, - public ?Coordinates $coordinates = null, - public ?Location $location = null, + public ?string $datacenter = null, public ?int $count = null, ) { } diff --git a/src/GeneratedModels/SIPCallConfigsRequest.php b/src/GeneratedModels/SIPCallConfigsRequest.php index 34c35ff..b7c8280 100644 --- a/src/GeneratedModels/SIPCallConfigsRequest.php +++ b/src/GeneratedModels/SIPCallConfigsRequest.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Configuration for SIP call settings - * - * @property object|null $customData */ class SIPCallConfigsRequest extends BaseModel { diff --git a/src/GeneratedModels/SIPCallConfigsResponse.php b/src/GeneratedModels/SIPCallConfigsResponse.php index da51d65..72ba3f4 100644 --- a/src/GeneratedModels/SIPCallConfigsResponse.php +++ b/src/GeneratedModels/SIPCallConfigsResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * SIP call configuration response - * - * @property object $customData */ class SIPCallConfigsResponse extends BaseModel { diff --git a/src/GeneratedModels/SIPCallerConfigsRequest.php b/src/GeneratedModels/SIPCallerConfigsRequest.php index 4a3dc16..cbc5c3e 100644 --- a/src/GeneratedModels/SIPCallerConfigsRequest.php +++ b/src/GeneratedModels/SIPCallerConfigsRequest.php @@ -5,9 +5,6 @@ namespace GetStream\GeneratedModels; /** * Configuration for SIP caller settings - * - * @property string $id - * @property object|null $customData */ class SIPCallerConfigsRequest extends BaseModel { diff --git a/src/GeneratedModels/SIPCallerConfigsResponse.php b/src/GeneratedModels/SIPCallerConfigsResponse.php index 64283de..76a445b 100644 --- a/src/GeneratedModels/SIPCallerConfigsResponse.php +++ b/src/GeneratedModels/SIPCallerConfigsResponse.php @@ -5,9 +5,6 @@ namespace GetStream\GeneratedModels; /** * SIP caller configuration response - * - * @property string $id - * @property object $customData */ class SIPCallerConfigsResponse extends BaseModel { diff --git a/src/GeneratedModels/SIPChallengeRequest.php b/src/GeneratedModels/SIPChallengeRequest.php new file mode 100644 index 0000000..fdc41e6 --- /dev/null +++ b/src/GeneratedModels/SIPChallengeRequest.php @@ -0,0 +1,33 @@ +|null $sort - * @property object|null $messageFilterConditions - * @property MessageOptions|null $messageOptions - */ class SearchPayload extends BaseModel { public function __construct( + public ?MessageOptions $messageOptions = null, + public ?string $query = null, // Search phrase public ?object $filterConditions = null, // Channel filter conditions - public ?bool $forceDefaultSearch = null, - public ?bool $forceSqlV2Backend = null, + public ?object $messageFilterConditions = null, // Message filter conditions public ?int $limit = null, // Number of messages to return - public ?string $next = null, // Pagination parameter. Cannot be used with non-zero offset. public ?int $offset = null, // Pagination offset. Cannot be used with sort or next. - public ?string $query = null, // Search phrase - /** @var array|null Sort parameters. Cannot be used with non-zero offset */ + /** @var array|null */ #[ArrayOf(SortParamRequest::class)] public ?array $sort = null, // Sort parameters. Cannot be used with non-zero offset - public ?object $messageFilterConditions = null, // Message filter conditions - public ?MessageOptions $messageOptions = null, + public ?string $next = null, // Pagination parameter. Cannot be used with non-zero offset. + public ?bool $forceDefaultSearch = null, + public ?bool $forceSqlV2Backend = null, ) { } diff --git a/src/GeneratedModels/SearchResponse.php b/src/GeneratedModels/SearchResponse.php index 612285b..bc6ea13 100644 --- a/src/GeneratedModels/SearchResponse.php +++ b/src/GeneratedModels/SearchResponse.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $results - * @property string|null $next - * @property string|null $previous - * @property SearchWarning|null $resultsWarning - */ class SearchResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null Search results */ + public ?SearchWarning $resultsWarning = null, + /** @var array|null */ #[ArrayOf(SearchResult::class)] public ?array $results = null, // Search results public ?string $next = null, // Value to pass to the next search query in order to paginate public ?string $previous = null, // Value that points to the previous page. Pass as the next value in a search query to paginate backwards - public ?SearchWarning $resultsWarning = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/SearchResult.php b/src/GeneratedModels/SearchResult.php index e9668b0..ed46e6e 100644 --- a/src/GeneratedModels/SearchResult.php +++ b/src/GeneratedModels/SearchResult.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property SearchResultMessage|null $message - */ class SearchResult extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SearchResultMessage.php b/src/GeneratedModels/SearchResultMessage.php index 0fc0289..89ab516 100644 --- a/src/GeneratedModels/SearchResultMessage.php +++ b/src/GeneratedModels/SearchResultMessage.php @@ -3,113 +3,68 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $cid - * @property \DateTime $createdAt - * @property int $deletedReplyCount - * @property string $html - * @property string $id - * @property bool $pinned - * @property int $replyCount - * @property bool $shadowed - * @property bool $silent - * @property string $text - * @property string $type - * @property \DateTime $updatedAt - * @property array $attachments - * @property array $latestReactions - * @property array $mentionedUsers - * @property array $ownReactions - * @property array $restrictedVisibility - * @property object $custom - * @property array $reactionCounts - * @property array $reactionScores - * @property UserResponse $user - * @property string|null $command - * @property \DateTime|null $deletedAt - * @property bool|null $deletedForMe - * @property \DateTime|null $messageTextUpdatedAt - * @property string|null $mml - * @property string|null $parentID - * @property \DateTime|null $pinExpires - * @property \DateTime|null $pinnedAt - * @property string|null $pollID - * @property string|null $quotedMessageID - * @property bool|null $showInChannel - * @property array|null $threadParticipants - * @property ChannelResponse|null $channel - * @property DraftResponse|null $draft - * @property array|null $i18n - * @property array|null $imageLabels - * @property ChannelMemberResponse|null $member - * @property ModerationV2Response|null $moderation - * @property UserResponse|null $pinnedBy - * @property PollResponseData|null $poll - * @property MessageResponse|null $quotedMessage - * @property array|null $reactionGroups - * @property ReminderResponseData|null $reminder - * @property SharedLocationResponseData|null $sharedLocation - */ class SearchResultMessage extends BaseModel { public function __construct( - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?int $deletedReplyCount = null, - public ?string $html = null, + public ?ChannelResponse $channel = null, + public ?DraftResponse $draft = null, + public ?ChannelMemberResponse $member = null, + public ?ModerationV2Response $moderation = null, + public ?UserResponse $pinnedBy = null, + public ?PollResponseData $poll = null, + public ?MessageResponse $quotedMessage = null, + public ?ReminderResponseData $reminder = null, + public ?SharedLocationResponseData $sharedLocation = null, + public ?UserResponse $user = null, public ?string $id = null, - public ?bool $pinned = null, - public ?int $replyCount = null, - public ?bool $shadowed = null, - public ?bool $silent = null, public ?string $text = null, + public ?string $mml = null, + public ?string $command = null, + public ?string $html = null, public ?string $type = null, - public ?\DateTime $updatedAt = null, /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, /** @var array|null */ #[ArrayOf(ReactionResponse::class)] public ?array $latestReactions = null, - /** @var array|null */ - #[ArrayOf(UserResponse::class)] - public ?array $mentionedUsers = null, /** @var array|null */ #[ArrayOf(ReactionResponse::class)] public ?array $ownReactions = null, - public ?array $restrictedVisibility = null, - public ?object $custom = null, public ?array $reactionCounts = null, public ?array $reactionScores = null, - public ?UserResponse $user = null, - public ?string $command = null, - public ?\DateTime $deletedAt = null, - public ?bool $deletedForMe = null, - public ?\DateTime $messageTextUpdatedAt = null, - public ?string $mml = null, + /** @var array|null */ + #[MapOf(ReactionGroupResponse::class)] + public ?array $reactionGroups = null, public ?string $parentID = null, - public ?\DateTime $pinExpires = null, - public ?\DateTime $pinnedAt = null, - public ?string $pollID = null, - public ?string $quotedMessageID = null, public ?bool $showInChannel = null, + public ?int $replyCount = null, + public ?int $deletedReplyCount = null, + public ?string $quotedMessageID = null, /** @var array|null */ #[ArrayOf(UserResponse::class)] public ?array $threadParticipants = null, - public ?ChannelResponse $channel = null, - public ?DraftResponse $draft = null, - public ?array $i18n = null, + public ?string $cid = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, + public ?\DateTime $deletedAt = null, + public ?object $custom = null, + public ?bool $shadowed = null, public ?array $imageLabels = null, - public ?ChannelMemberResponse $member = null, - public ?ModerationV2Response $moderation = null, - public ?UserResponse $pinnedBy = null, - public ?PollResponseData $poll = null, - public ?MessageResponse $quotedMessage = null, - public ?array $reactionGroups = null, - public ?ReminderResponseData $reminder = null, - public ?SharedLocationResponseData $sharedLocation = null, + /** @var array|null */ + #[ArrayOf(UserResponse::class)] + public ?array $mentionedUsers = null, + public ?bool $mentionedChannel = null, + public ?bool $mentionedHere = null, + public ?array $i18n = null, + public ?bool $silent = null, + public ?bool $pinned = null, + public ?\DateTime $pinnedAt = null, + public ?\DateTime $pinExpires = null, + public ?\DateTime $messageTextUpdatedAt = null, + public ?string $pollID = null, + public ?array $restrictedVisibility = null, + public ?bool $deletedForMe = null, ) { } diff --git a/src/GeneratedModels/SearchWarning.php b/src/GeneratedModels/SearchWarning.php index 9c49b93..8933f53 100644 --- a/src/GeneratedModels/SearchWarning.php +++ b/src/GeneratedModels/SearchWarning.php @@ -3,19 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $warningCode - * @property string $warningDescription - * @property int|null $channelSearchCount - * @property array|null $channelSearchCids - */ class SearchWarning extends BaseModel { public function __construct( - public ?int $warningCode = null, // Code corresponding to the warning public ?string $warningDescription = null, // Description of the warning + public ?int $warningCode = null, // Code corresponding to the warning public ?int $channelSearchCount = null, // Number of channels searched public ?array $channelSearchCids = null, // Channel CIDs for the searched channels ) { diff --git a/src/GeneratedModels/Segment.php b/src/GeneratedModels/Segment.php index ff8567e..6ed127c 100644 --- a/src/GeneratedModels/Segment.php +++ b/src/GeneratedModels/Segment.php @@ -3,37 +3,21 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $allSenderChannels - * @property bool $allUsers - * @property \DateTime $createdAt - * @property string $id - * @property string $name - * @property int $size - * @property string $type - * @property \DateTime $updatedAt - * @property \DateTime|null $deletedAt - * @property string|null $description - * @property string|null $taskID - * @property object|null $filter - */ class Segment extends BaseModel { public function __construct( - public ?bool $allSenderChannels = null, - public ?bool $allUsers = null, - public ?\DateTime $createdAt = null, public ?string $id = null, + public ?string $type = null, public ?string $name = null, + public ?string $description = null, + public ?object $filter = null, + public ?bool $allUsers = null, + public ?bool $allSenderChannels = null, + public ?string $taskID = null, public ?int $size = null, - public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, public ?\DateTime $deletedAt = null, - public ?string $description = null, - public ?string $taskID = null, - public ?object $filter = null, ) { } diff --git a/src/GeneratedModels/SegmentResponse.php b/src/GeneratedModels/SegmentResponse.php index ad9e136..def223b 100644 --- a/src/GeneratedModels/SegmentResponse.php +++ b/src/GeneratedModels/SegmentResponse.php @@ -3,35 +3,20 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $allSenderChannels - * @property bool $allUsers - * @property \DateTime $createdAt - * @property \DateTime $deletedAt - * @property string $description - * @property string $id - * @property string $name - * @property int $size - * @property string $type - * @property \DateTime $updatedAt - * @property object $filter - */ class SegmentResponse extends BaseModel { public function __construct( - public ?bool $allSenderChannels = null, - public ?bool $allUsers = null, - public ?\DateTime $createdAt = null, - public ?\DateTime $deletedAt = null, - public ?string $description = null, public ?string $id = null, + public ?string $type = null, public ?string $name = null, + public ?string $description = null, + public ?object $filter = null, + public ?bool $allUsers = null, + public ?bool $allSenderChannels = null, public ?int $size = null, - public ?string $type = null, + public ?\DateTime $createdAt = null, public ?\DateTime $updatedAt = null, - public ?object $filter = null, + public ?\DateTime $deletedAt = null, ) { } diff --git a/src/GeneratedModels/SegmentTargetResponse.php b/src/GeneratedModels/SegmentTargetResponse.php index b1c87f3..43e5f6c 100644 --- a/src/GeneratedModels/SegmentTargetResponse.php +++ b/src/GeneratedModels/SegmentTargetResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $appPk - * @property \DateTime $createdAt - * @property string $segmentID - * @property string $targetID - */ class SegmentTargetResponse extends BaseModel { public function __construct( public ?int $appPk = null, - public ?\DateTime $createdAt = null, public ?string $segmentID = null, public ?string $targetID = null, + public ?\DateTime $createdAt = null, ) { } diff --git a/src/GeneratedModels/SendCallEventRequest.php b/src/GeneratedModels/SendCallEventRequest.php index 8b3e4d7..5c715e6 100644 --- a/src/GeneratedModels/SendCallEventRequest.php +++ b/src/GeneratedModels/SendCallEventRequest.php @@ -5,17 +5,13 @@ namespace GetStream\GeneratedModels; /** * Send a call event to the other user - * - * @property string|null $userID - * @property object|null $custom - * @property UserRequest|null $user */ class SendCallEventRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $userID = null, public ?object $custom = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/SendCallEventResponse.php b/src/GeneratedModels/SendCallEventResponse.php index 9559e62..72d0a5b 100644 --- a/src/GeneratedModels/SendCallEventResponse.php +++ b/src/GeneratedModels/SendCallEventResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - */ class SendCallEventResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SendClosedCaptionRequest.php b/src/GeneratedModels/SendClosedCaptionRequest.php index 5d737ae..4a4f3dc 100644 --- a/src/GeneratedModels/SendClosedCaptionRequest.php +++ b/src/GeneratedModels/SendClosedCaptionRequest.php @@ -3,31 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $speakerID - * @property string $text - * @property \DateTime|null $endTime - * @property string|null $language - * @property string|null $service - * @property \DateTime|null $startTime - * @property bool|null $translated - * @property string|null $userID - * @property UserRequest|null $user - */ class SendClosedCaptionRequest extends BaseModel { public function __construct( - public ?string $speakerID = null, + public ?UserRequest $user = null, + public ?string $userID = null, public ?string $text = null, + public ?string $speakerID = null, + public ?\DateTime $startTime = null, public ?\DateTime $endTime = null, - public ?string $language = null, public ?string $service = null, - public ?\DateTime $startTime = null, + public ?string $language = null, public ?bool $translated = null, - public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/SendClosedCaptionResponse.php b/src/GeneratedModels/SendClosedCaptionResponse.php index cb60495..1df4bc3 100644 --- a/src/GeneratedModels/SendClosedCaptionResponse.php +++ b/src/GeneratedModels/SendClosedCaptionResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - */ class SendClosedCaptionResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SendEventRequest.php b/src/GeneratedModels/SendEventRequest.php index 782856c..a2c2515 100644 --- a/src/GeneratedModels/SendEventRequest.php +++ b/src/GeneratedModels/SendEventRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property EventRequest $event - */ class SendEventRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SendMessageRequest.php b/src/GeneratedModels/SendMessageRequest.php index 2f115ff..a049cd1 100644 --- a/src/GeneratedModels/SendMessageRequest.php +++ b/src/GeneratedModels/SendMessageRequest.php @@ -3,27 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property MessageRequest $message - * @property bool|null $forceModeration - * @property bool|null $keepChannelHidden - * @property bool|null $pending - * @property bool|null $skipEnrichUrl - * @property bool|null $skipPush - * @property array|null $pendingMessageMetadata - */ class SendMessageRequest extends BaseModel { public function __construct( public ?MessageRequest $message = null, - public ?bool $forceModeration = null, - public ?bool $keepChannelHidden = null, - public ?bool $pending = null, - public ?bool $skipEnrichUrl = null, public ?bool $skipPush = null, + public ?bool $skipEnrichUrl = null, public ?array $pendingMessageMetadata = null, + public ?bool $pending = null, + public ?bool $forceModeration = null, + public ?bool $keepChannelHidden = null, ) { } diff --git a/src/GeneratedModels/SendMessageResponse.php b/src/GeneratedModels/SendMessageResponse.php index 70106e4..1b5fa54 100644 --- a/src/GeneratedModels/SendMessageResponse.php +++ b/src/GeneratedModels/SendMessageResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property MessageResponse $message - * @property array|null $pendingMessageMetadata - */ class SendMessageResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?MessageResponse $message = null, public ?array $pendingMessageMetadata = null, // Pending message metadata + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/SendReactionRequest.php b/src/GeneratedModels/SendReactionRequest.php index 40a137a..316d465 100644 --- a/src/GeneratedModels/SendReactionRequest.php +++ b/src/GeneratedModels/SendReactionRequest.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property ReactionRequest $reaction - * @property bool|null $enforceUnique - * @property bool|null $skipPush - */ class SendReactionRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SendReactionResponse.php b/src/GeneratedModels/SendReactionResponse.php index cb7fa58..4b87a3e 100644 --- a/src/GeneratedModels/SendReactionResponse.php +++ b/src/GeneratedModels/SendReactionResponse.php @@ -5,17 +5,13 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property MessageResponse $message - * @property ReactionResponse $reaction */ class SendReactionResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?MessageResponse $message = null, public ?ReactionResponse $reaction = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/SendUserCustomEventRequest.php b/src/GeneratedModels/SendUserCustomEventRequest.php index d555da9..6b8a575 100644 --- a/src/GeneratedModels/SendUserCustomEventRequest.php +++ b/src/GeneratedModels/SendUserCustomEventRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property UserCustomEventRequest $event - */ class SendUserCustomEventRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SessionClient.php b/src/GeneratedModels/SessionClient.php index 31ce7c3..0d84ec2 100644 --- a/src/GeneratedModels/SessionClient.php +++ b/src/GeneratedModels/SessionClient.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $ip - * @property string|null $name - * @property string|null $networkType - * @property string|null $version - * @property CallStatsLocation|null $location - */ class SessionClient extends BaseModel { public function __construct( - public ?string $ip = null, + public ?CallStatsLocation $location = null, public ?string $name = null, - public ?string $networkType = null, public ?string $version = null, - public ?CallStatsLocation $location = null, + public ?string $ip = null, + public ?string $networkType = null, ) { } diff --git a/src/GeneratedModels/SessionSettings.php b/src/GeneratedModels/SessionSettings.php index 2e0f184..7f6c0ea 100644 --- a/src/GeneratedModels/SessionSettings.php +++ b/src/GeneratedModels/SessionSettings.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $inactivityTimeoutSeconds - */ class SessionSettings extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SessionSettingsRequest.php b/src/GeneratedModels/SessionSettingsRequest.php index e73f0ce..a461c10 100644 --- a/src/GeneratedModels/SessionSettingsRequest.php +++ b/src/GeneratedModels/SessionSettingsRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $inactivityTimeoutSeconds - */ class SessionSettingsRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SessionSettingsResponse.php b/src/GeneratedModels/SessionSettingsResponse.php index b60d3e0..2d62d94 100644 --- a/src/GeneratedModels/SessionSettingsResponse.php +++ b/src/GeneratedModels/SessionSettingsResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $inactivityTimeoutSeconds - */ class SessionSettingsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SessionWarningResponse.php b/src/GeneratedModels/SessionWarningResponse.php index f0ce277..9ae5a39 100644 --- a/src/GeneratedModels/SessionWarningResponse.php +++ b/src/GeneratedModels/SessionWarningResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $code - * @property string $warning - * @property \DateTime|null $time - */ class SessionWarningResponse extends BaseModel { public function __construct( + public ?\DateTime $time = null, public ?string $code = null, public ?string $warning = null, - public ?\DateTime $time = null, ) { } diff --git a/src/GeneratedModels/ShadowBlockActionRequestPayload.php b/src/GeneratedModels/ShadowBlockActionRequestPayload.php new file mode 100644 index 0000000..cd8dc81 --- /dev/null +++ b/src/GeneratedModels/ShadowBlockActionRequestPayload.php @@ -0,0 +1,18 @@ + $activeLiveLocations - */ class SharedLocationsResponse extends BaseModel { public function __construct( - public ?string $duration = null, /** @var array|null */ #[ArrayOf(SharedLocationResponseData::class)] public ?array $activeLiveLocations = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/ShowChannelRequest.php b/src/GeneratedModels/ShowChannelRequest.php index 189d4cf..7e33245 100644 --- a/src/GeneratedModels/ShowChannelRequest.php +++ b/src/GeneratedModels/ShowChannelRequest.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $userID - * @property UserRequest|null $user - */ class ShowChannelRequest extends BaseModel { public function __construct( - public ?string $userID = null, public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/ShowChannelResponse.php b/src/GeneratedModels/ShowChannelResponse.php index 7150c6e..c5b0ddb 100644 --- a/src/GeneratedModels/ShowChannelResponse.php +++ b/src/GeneratedModels/ShowChannelResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration */ class ShowChannelResponse extends BaseModel { diff --git a/src/GeneratedModels/SingleFollowResponse.php b/src/GeneratedModels/SingleFollowResponse.php index 054bf01..ea9b907 100644 --- a/src/GeneratedModels/SingleFollowResponse.php +++ b/src/GeneratedModels/SingleFollowResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property FollowResponse $follow - * @property bool|null $notificationCreated - */ class SingleFollowResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?FollowResponse $follow = null, public ?bool $notificationCreated = null, // Whether a notification activity was successfully created + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/SipInboundCredentials.php b/src/GeneratedModels/SipInboundCredentials.php index e74b538..2a2f17d 100644 --- a/src/GeneratedModels/SipInboundCredentials.php +++ b/src/GeneratedModels/SipInboundCredentials.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * Credentials for SIP inbound call authentication - * - * @property string $callID - * @property string $callType - * @property string $token - * @property string $userID - * @property object $callCustomData - * @property object $userCustomData */ class SipInboundCredentials extends BaseModel { public function __construct( - public ?string $callID = null, // ID of the call public ?string $callType = null, // Type of the call - public ?string $token = null, // Authentication token for the call + public ?string $callID = null, // ID of the call public ?string $userID = null, // User ID for the call + public ?string $token = null, // Authentication token for the call + public ?string $apiKey = null, // API key for the application public ?object $callCustomData = null, // Custom data associated with the call public ?object $userCustomData = null, // Custom data associated with the user ) { diff --git a/src/GeneratedModels/SortParamRequest.php b/src/GeneratedModels/SortParamRequest.php index f03fe30..53a7b8c 100644 --- a/src/GeneratedModels/SortParamRequest.php +++ b/src/GeneratedModels/SortParamRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $direction - * @property string|null $field - * @property string|null $type - */ class SortParamRequest extends BaseModel { public function __construct( - public ?int $direction = null, // Direction of sorting, 1 for Ascending, -1 for Descending, default is 1 public ?string $field = null, // Name of field to sort by - public ?string $type = null, // Type of field to sort by (default is string) + public ?string $type = null, // Type of field to sort by. Empty string or omitted means string type (default). One of: number, boolean + public ?int $direction = null, // Direction of sorting, 1 for Ascending, -1 for Descending, default is 1. One of: -1, 1 ) { } diff --git a/src/GeneratedModels/SpeechSegmentConfig.php b/src/GeneratedModels/SpeechSegmentConfig.php index f81c1f8..8d62dd9 100644 --- a/src/GeneratedModels/SpeechSegmentConfig.php +++ b/src/GeneratedModels/SpeechSegmentConfig.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $maxSpeechCaptionMs - * @property int|null $silenceDurationMs - */ class SpeechSegmentConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StartCampaignRequest.php b/src/GeneratedModels/StartCampaignRequest.php index e2cf78e..50f848b 100644 --- a/src/GeneratedModels/StartCampaignRequest.php +++ b/src/GeneratedModels/StartCampaignRequest.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime|null $scheduledFor - * @property \DateTime|null $stopAt - */ class StartCampaignRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StartCampaignResponse.php b/src/GeneratedModels/StartCampaignResponse.php index f0b8662..2e4ea95 100644 --- a/src/GeneratedModels/StartCampaignResponse.php +++ b/src/GeneratedModels/StartCampaignResponse.php @@ -5,17 +5,13 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property CampaignResponse|null $campaign - * @property PagerResponse|null $users */ class StartCampaignResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?CampaignResponse $campaign = null, public ?PagerResponse $users = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/StartClosedCaptionsRequest.php b/src/GeneratedModels/StartClosedCaptionsRequest.php index 149ed6f..4e81808 100644 --- a/src/GeneratedModels/StartClosedCaptionsRequest.php +++ b/src/GeneratedModels/StartClosedCaptionsRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $enableTranscription - * @property string|null $externalStorage - * @property string|null $language - * @property SpeechSegmentConfig|null $speechSegmentConfig - */ class StartClosedCaptionsRequest extends BaseModel { public function __construct( + public ?SpeechSegmentConfig $speechSegmentConfig = null, public ?bool $enableTranscription = null, // Enable transcriptions along with closed captions public ?string $externalStorage = null, // Which external storage to use for transcriptions (only applicable if enable_transcription is true) - public ?string $language = null, // The spoken language in the call, if not provided the language defined in the transcription settings will be used - public ?SpeechSegmentConfig $speechSegmentConfig = null, + public ?string $language = null, // The spoken language in the call, if not provided the language defined in the transcription settings will be used. One of: auto, ar, bg, ca, cs, da, de, el, en, es, et, fi, fr, he, hi, hr, hu, id, it, ja, ko, ms, nl, no, pl, pt, ro, ru, sk, sl, sv, ta, th, tl, tr, uk, zh ) { } diff --git a/src/GeneratedModels/StartClosedCaptionsResponse.php b/src/GeneratedModels/StartClosedCaptionsResponse.php index d8fa453..0e549ea 100644 --- a/src/GeneratedModels/StartClosedCaptionsResponse.php +++ b/src/GeneratedModels/StartClosedCaptionsResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - */ class StartClosedCaptionsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StartFrameRecordingRequest.php b/src/GeneratedModels/StartFrameRecordingRequest.php index 572c377..1811755 100644 --- a/src/GeneratedModels/StartFrameRecordingRequest.php +++ b/src/GeneratedModels/StartFrameRecordingRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $recordingExternalStorage - */ class StartFrameRecordingRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StartFrameRecordingResponse.php b/src/GeneratedModels/StartFrameRecordingResponse.php index eccb0a7..f105c1f 100644 --- a/src/GeneratedModels/StartFrameRecordingResponse.php +++ b/src/GeneratedModels/StartFrameRecordingResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * StartFrameRecordingResponse is the response payload for the start frame recording endpoint. - * - * @property string $duration */ class StartFrameRecordingResponse extends BaseModel { diff --git a/src/GeneratedModels/StartHLSBroadcastingResponse.php b/src/GeneratedModels/StartHLSBroadcastingResponse.php index 3a0b993..9da95b6 100644 --- a/src/GeneratedModels/StartHLSBroadcastingResponse.php +++ b/src/GeneratedModels/StartHLSBroadcastingResponse.php @@ -5,9 +5,6 @@ namespace GetStream\GeneratedModels; /** * StartHLSBroadcastingResponse is the payload for starting an HLS broadcasting. - * - * @property string $duration - * @property string $playlistUrl */ class StartHLSBroadcastingResponse extends BaseModel { diff --git a/src/GeneratedModels/StartRTMPBroadcastsRequest.php b/src/GeneratedModels/StartRTMPBroadcastsRequest.php index 19fe6bc..681ae8a 100644 --- a/src/GeneratedModels/StartRTMPBroadcastsRequest.php +++ b/src/GeneratedModels/StartRTMPBroadcastsRequest.php @@ -5,13 +5,11 @@ namespace GetStream\GeneratedModels; /** * StartRTMPBroadcastsRequest is the payload for starting RTMP broadcasts. - * - * @property array $broadcasts */ class StartRTMPBroadcastsRequest extends BaseModel { public function __construct( - /** @var array|null List of broadcasts to start */ + /** @var array|null */ #[ArrayOf(RTMPBroadcastRequest::class)] public ?array $broadcasts = null, // List of broadcasts to start ) { diff --git a/src/GeneratedModels/StartRTMPBroadcastsResponse.php b/src/GeneratedModels/StartRTMPBroadcastsResponse.php index 9dcb83c..85c5177 100644 --- a/src/GeneratedModels/StartRTMPBroadcastsResponse.php +++ b/src/GeneratedModels/StartRTMPBroadcastsResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * StartRTMPBroadcastsResponse is the payload for starting an RTMP broadcast. - * - * @property string $duration */ class StartRTMPBroadcastsResponse extends BaseModel { diff --git a/src/GeneratedModels/StartRecordingRequest.php b/src/GeneratedModels/StartRecordingRequest.php index 86d135e..e772539 100644 --- a/src/GeneratedModels/StartRecordingRequest.php +++ b/src/GeneratedModels/StartRecordingRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $recordingExternalStorage - */ class StartRecordingRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StartRecordingResponse.php b/src/GeneratedModels/StartRecordingResponse.php index 25386af..1c81fe6 100644 --- a/src/GeneratedModels/StartRecordingResponse.php +++ b/src/GeneratedModels/StartRecordingResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * StartRecordingResponse is the response payload for the start recording endpoint. - * - * @property string $duration */ class StartRecordingResponse extends BaseModel { diff --git a/src/GeneratedModels/StartTranscriptionRequest.php b/src/GeneratedModels/StartTranscriptionRequest.php index 14c7c9b..79ac0e5 100644 --- a/src/GeneratedModels/StartTranscriptionRequest.php +++ b/src/GeneratedModels/StartTranscriptionRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $enableClosedCaptions - * @property string|null $language - * @property string|null $transcriptionExternalStorage - */ class StartTranscriptionRequest extends BaseModel { public function __construct( - public ?bool $enableClosedCaptions = null, // Enable closed captions along with transcriptions - public ?string $language = null, // The spoken language in the call, if not provided the language defined in the transcription settings will be used public ?string $transcriptionExternalStorage = null, // Store transcriptions in this external storage + public ?bool $enableClosedCaptions = null, // Enable closed captions along with transcriptions + public ?string $language = null, // The spoken language in the call, if not provided the language defined in the transcription settings will be used. One of: auto, ar, bg, ca, cs, da, de, el, en, es, et, fi, fr, he, hi, hr, hu, id, it, ja, ko, ms, nl, no, pl, pt, ro, ru, sk, sl, sv, ta, th, tl, tr, uk, zh ) { } diff --git a/src/GeneratedModels/StartTranscriptionResponse.php b/src/GeneratedModels/StartTranscriptionResponse.php index aa6f7d2..f6dc652 100644 --- a/src/GeneratedModels/StartTranscriptionResponse.php +++ b/src/GeneratedModels/StartTranscriptionResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - */ class StartTranscriptionResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StopAllRTMPBroadcastsRequest.php b/src/GeneratedModels/StopAllRTMPBroadcastsRequest.php index 9ba5521..d612c32 100644 --- a/src/GeneratedModels/StopAllRTMPBroadcastsRequest.php +++ b/src/GeneratedModels/StopAllRTMPBroadcastsRequest.php @@ -3,9 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - */ class StopAllRTMPBroadcastsRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StopAllRTMPBroadcastsResponse.php b/src/GeneratedModels/StopAllRTMPBroadcastsResponse.php index 36dbd60..56dca3b 100644 --- a/src/GeneratedModels/StopAllRTMPBroadcastsResponse.php +++ b/src/GeneratedModels/StopAllRTMPBroadcastsResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - */ class StopAllRTMPBroadcastsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StopCampaignRequest.php b/src/GeneratedModels/StopCampaignRequest.php index c61f716..0fab14c 100644 --- a/src/GeneratedModels/StopCampaignRequest.php +++ b/src/GeneratedModels/StopCampaignRequest.php @@ -3,9 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - */ class StopCampaignRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StopClosedCaptionsRequest.php b/src/GeneratedModels/StopClosedCaptionsRequest.php index 22bfe48..52b217e 100644 --- a/src/GeneratedModels/StopClosedCaptionsRequest.php +++ b/src/GeneratedModels/StopClosedCaptionsRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $stopTranscription - */ class StopClosedCaptionsRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StopClosedCaptionsResponse.php b/src/GeneratedModels/StopClosedCaptionsResponse.php index f538ba2..751c9ae 100644 --- a/src/GeneratedModels/StopClosedCaptionsResponse.php +++ b/src/GeneratedModels/StopClosedCaptionsResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration */ class StopClosedCaptionsResponse extends BaseModel { diff --git a/src/GeneratedModels/StopFrameRecordingRequest.php b/src/GeneratedModels/StopFrameRecordingRequest.php index 97c54aa..991cf6d 100644 --- a/src/GeneratedModels/StopFrameRecordingRequest.php +++ b/src/GeneratedModels/StopFrameRecordingRequest.php @@ -3,9 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - */ class StopFrameRecordingRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StopFrameRecordingResponse.php b/src/GeneratedModels/StopFrameRecordingResponse.php index 9d2742e..411771c 100644 --- a/src/GeneratedModels/StopFrameRecordingResponse.php +++ b/src/GeneratedModels/StopFrameRecordingResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration */ class StopFrameRecordingResponse extends BaseModel { diff --git a/src/GeneratedModels/StopHLSBroadcastingRequest.php b/src/GeneratedModels/StopHLSBroadcastingRequest.php index e4a2d40..a145152 100644 --- a/src/GeneratedModels/StopHLSBroadcastingRequest.php +++ b/src/GeneratedModels/StopHLSBroadcastingRequest.php @@ -3,9 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - */ class StopHLSBroadcastingRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StopHLSBroadcastingResponse.php b/src/GeneratedModels/StopHLSBroadcastingResponse.php index 7c2f0e0..1597a4c 100644 --- a/src/GeneratedModels/StopHLSBroadcastingResponse.php +++ b/src/GeneratedModels/StopHLSBroadcastingResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration */ class StopHLSBroadcastingResponse extends BaseModel { diff --git a/src/GeneratedModels/StopLiveRequest.php b/src/GeneratedModels/StopLiveRequest.php index 0c20381..ee9fb6c 100644 --- a/src/GeneratedModels/StopLiveRequest.php +++ b/src/GeneratedModels/StopLiveRequest.php @@ -3,29 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $continueClosedCaption - * @property bool|null $continueCompositeRecording - * @property bool|null $continueHLS - * @property bool|null $continueIndividualRecording - * @property bool|null $continueRTMPBroadcasts - * @property bool|null $continueRawRecording - * @property bool|null $continueRecording - * @property bool|null $continueTranscription - */ class StopLiveRequest extends BaseModel { public function __construct( - public ?bool $continueClosedCaption = null, - public ?bool $continueCompositeRecording = null, public ?bool $continueHLS = null, + public ?bool $continueRecording = null, + public ?bool $continueCompositeRecording = null, public ?bool $continueIndividualRecording = null, - public ?bool $continueRTMPBroadcasts = null, public ?bool $continueRawRecording = null, - public ?bool $continueRecording = null, public ?bool $continueTranscription = null, + public ?bool $continueClosedCaption = null, + public ?bool $continueRTMPBroadcasts = null, ) { } diff --git a/src/GeneratedModels/StopLiveResponse.php b/src/GeneratedModels/StopLiveResponse.php index 9ba3e59..c022104 100644 --- a/src/GeneratedModels/StopLiveResponse.php +++ b/src/GeneratedModels/StopLiveResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property CallResponse $call - */ class StopLiveResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?CallResponse $call = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/StopRTMPBroadcastsResponse.php b/src/GeneratedModels/StopRTMPBroadcastsResponse.php index 7928e4d..757d7b6 100644 --- a/src/GeneratedModels/StopRTMPBroadcastsResponse.php +++ b/src/GeneratedModels/StopRTMPBroadcastsResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration */ class StopRTMPBroadcastsResponse extends BaseModel { diff --git a/src/GeneratedModels/StopRecordingRequest.php b/src/GeneratedModels/StopRecordingRequest.php index 0f5caa6..89f9178 100644 --- a/src/GeneratedModels/StopRecordingRequest.php +++ b/src/GeneratedModels/StopRecordingRequest.php @@ -3,9 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - */ class StopRecordingRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StopRecordingResponse.php b/src/GeneratedModels/StopRecordingResponse.php index abc678c..5a91444 100644 --- a/src/GeneratedModels/StopRecordingResponse.php +++ b/src/GeneratedModels/StopRecordingResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration */ class StopRecordingResponse extends BaseModel { diff --git a/src/GeneratedModels/StopTranscriptionRequest.php b/src/GeneratedModels/StopTranscriptionRequest.php index cea7fc1..3439106 100644 --- a/src/GeneratedModels/StopTranscriptionRequest.php +++ b/src/GeneratedModels/StopTranscriptionRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $stopClosedCaptions - */ class StopTranscriptionRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StopTranscriptionResponse.php b/src/GeneratedModels/StopTranscriptionResponse.php index 067f4e3..053a47d 100644 --- a/src/GeneratedModels/StopTranscriptionResponse.php +++ b/src/GeneratedModels/StopTranscriptionResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration */ class StopTranscriptionResponse extends BaseModel { diff --git a/src/GeneratedModels/StoriesConfig.php b/src/GeneratedModels/StoriesConfig.php index fd1b705..6ec4de4 100644 --- a/src/GeneratedModels/StoriesConfig.php +++ b/src/GeneratedModels/StoriesConfig.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $skipWatched - * @property bool|null $trackWatched - */ class StoriesConfig extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/StoriesFeedUpdatedEvent.php b/src/GeneratedModels/StoriesFeedUpdatedEvent.php index 9b2d94f..1594049 100644 --- a/src/GeneratedModels/StoriesFeedUpdatedEvent.php +++ b/src/GeneratedModels/StoriesFeedUpdatedEvent.php @@ -5,33 +5,23 @@ namespace GetStream\GeneratedModels; /** * Emitted when stories feed is updated. - * - * @property \DateTime $createdAt - * @property string $fid - * @property object $custom - * @property string $type - * @property string|null $feedVisibility - * @property \DateTime|null $receivedAt - * @property array|null $activities - * @property array|null $aggregatedActivities - * @property UserResponseCommonFields|null $user */ class StoriesFeedUpdatedEvent extends BaseModel { public function __construct( + public ?UserResponseCommonFields $user = null, + /** @var array|null */ + #[ArrayOf(AggregatedActivityResponse::class)] + public ?array $aggregatedActivities = null, // Aggregated activities for stories feeds + /** @var array|null */ + #[ArrayOf(ActivityResponse::class)] + public ?array $activities = null, // Individual activities for stories feeds + public ?string $type = null, // The type of event: "feeds.stories_feed.updated" in this case public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $fid = null, // The ID of the feed + public ?\DateTime $receivedAt = null, public ?object $custom = null, - public ?string $type = null, // The type of event: "feeds.stories_feed.updated" in this case + public ?string $fid = null, // The ID of the feed public ?string $feedVisibility = null, - public ?\DateTime $receivedAt = null, - /** @var array|null Individual activities for stories feeds */ - #[ArrayOf(ActivityResponse::class)] - public ?array $activities = null, // Individual activities for stories feeds - /** @var array|null Aggregated activities for stories feeds */ - #[ArrayOf(AggregatedActivityResponse::class)] - public ?array $aggregatedActivities = null, // Aggregated activities for stories feeds - public ?UserResponseCommonFields $user = null, ) { } diff --git a/src/GeneratedModels/SubmitActionRequest.php b/src/GeneratedModels/SubmitActionRequest.php index c77e85c..fdf0886 100644 --- a/src/GeneratedModels/SubmitActionRequest.php +++ b/src/GeneratedModels/SubmitActionRequest.php @@ -3,51 +3,29 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $actionType - * @property string|null $appealID - * @property string|null $itemID - * @property string|null $userID - * @property BanActionRequest|null $ban - * @property BlockActionRequest|null $block - * @property CustomActionRequest|null $custom - * @property DeleteActivityRequest|null $deleteActivity - * @property DeleteCommentRequest|null $deleteComment - * @property DeleteMessageRequest|null $deleteMessage - * @property DeleteReactionRequest|null $deleteReaction - * @property DeleteUserRequest|null $deleteUser - * @property MarkReviewedRequest|null $markReviewed - * @property RejectAppealRequest|null $rejectAppeal - * @property RestoreActionRequest|null $restore - * @property ShadowBlockActionRequest|null $shadowBlock - * @property UnbanActionRequest|null $unban - * @property UnblockActionRequest|null $unblock - * @property UserRequest|null $user - */ class SubmitActionRequest extends BaseModel { public function __construct( - public ?string $actionType = null, // Type of moderation action to perform (mark_reviewed, delete_message, etc.) - public ?string $appealID = null, // UUID of the appeal to act on (required for reject_appeal, optional for other actions) + public ?BanActionRequestPayload $ban = null, + public ?BlockActionRequestPayload $block = null, + public ?CustomActionRequestPayload $custom = null, + public ?DeleteActivityRequestPayload $deleteActivity = null, + public ?DeleteCommentRequestPayload $deleteComment = null, + public ?DeleteMessageRequestPayload $deleteMessage = null, + public ?DeleteReactionRequestPayload $deleteReaction = null, + public ?DeleteUserRequestPayload $deleteUser = null, + public ?FlagRequest $flag = null, + public ?MarkReviewedRequestPayload $markReviewed = null, + public ?RejectAppealRequestPayload $rejectAppeal = null, + public ?RestoreActionRequestPayload $restore = null, + public ?ShadowBlockActionRequestPayload $shadowBlock = null, + public ?UnbanActionRequestPayload $unban = null, + public ?UnblockActionRequestPayload $unblock = null, + public ?UserRequest $user = null, public ?string $itemID = null, // UUID of the review queue item to act on + public ?string $actionType = null, // Type of moderation action to perform. One of: mark_reviewed, delete_message, delete_activity, delete_comment, delete_reaction, ban, custom, unban, restore, delete_user, unblock, block, shadow_block, unmask, kick_user, end_call + public ?string $appealID = null, // UUID of the appeal to act on (required for reject_appeal, optional for other actions) public ?string $userID = null, - public ?BanActionRequest $ban = null, - public ?BlockActionRequest $block = null, - public ?CustomActionRequest $custom = null, - public ?DeleteActivityRequest $deleteActivity = null, - public ?DeleteCommentRequest $deleteComment = null, - public ?DeleteMessageRequest $deleteMessage = null, - public ?DeleteReactionRequest $deleteReaction = null, - public ?DeleteUserRequest $deleteUser = null, - public ?MarkReviewedRequest $markReviewed = null, - public ?RejectAppealRequest $rejectAppeal = null, - public ?RestoreActionRequest $restore = null, - public ?ShadowBlockActionRequest $shadowBlock = null, - public ?UnbanActionRequest $unban = null, - public ?UnblockActionRequest $unblock = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/SubmitActionResponse.php b/src/GeneratedModels/SubmitActionResponse.php index e5fb082..d89c7a5 100644 --- a/src/GeneratedModels/SubmitActionResponse.php +++ b/src/GeneratedModels/SubmitActionResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property AppealItemResponse|null $appealItem - * @property ReviewQueueItemResponse|null $item - */ class SubmitActionResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?AppealItemResponse $appealItem = null, public ?ReviewQueueItemResponse $item = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/SubscriberAllMetrics.php b/src/GeneratedModels/SubscriberAllMetrics.php index 73e09b7..e6adaf4 100644 --- a/src/GeneratedModels/SubscriberAllMetrics.php +++ b/src/GeneratedModels/SubscriberAllMetrics.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property SubscriberAudioMetrics|null $audio - * @property ActiveCallsLatencyStats|null $rttMs - * @property SubscriberVideoMetrics|null $video - */ class SubscriberAllMetrics extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SubscriberAudioMetrics.php b/src/GeneratedModels/SubscriberAudioMetrics.php index 1090ef4..17c8445 100644 --- a/src/GeneratedModels/SubscriberAudioMetrics.php +++ b/src/GeneratedModels/SubscriberAudioMetrics.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property ActiveCallsLatencyStats|null $concealmentPct - * @property ActiveCallsLatencyStats|null $jitterMs - * @property ActiveCallsLatencyStats|null $packetsLostPct - */ class SubscriberAudioMetrics extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SubscriberStatsResponse.php b/src/GeneratedModels/SubscriberStatsResponse.php index 5ebe8ad..a2e7a43 100644 --- a/src/GeneratedModels/SubscriberStatsResponse.php +++ b/src/GeneratedModels/SubscriberStatsResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $total - * @property int $totalSubscribedDurationSeconds - * @property int $unique - */ class SubscriberStatsResponse extends BaseModel { public function __construct( public ?int $total = null, - public ?int $totalSubscribedDurationSeconds = null, public ?int $unique = null, + public ?int $totalSubscribedDurationSeconds = null, ) { } diff --git a/src/GeneratedModels/SubscriberVideoMetrics.php b/src/GeneratedModels/SubscriberVideoMetrics.php index adf3a68..ac96de4 100644 --- a/src/GeneratedModels/SubscriberVideoMetrics.php +++ b/src/GeneratedModels/SubscriberVideoMetrics.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property ActiveCallsFPSStats|null $fps30 - * @property ActiveCallsLatencyStats|null $jitterMs - * @property ActiveCallsLatencyStats|null $packetsLostPct - */ class SubscriberVideoMetrics extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/SubscribersMetrics.php b/src/GeneratedModels/SubscribersMetrics.php index 0d0bc60..17e7ee2 100644 --- a/src/GeneratedModels/SubscribersMetrics.php +++ b/src/GeneratedModels/SubscribersMetrics.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property SubscriberAllMetrics|null $all - */ class SubscribersMetrics extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/TargetResolution.php b/src/GeneratedModels/TargetResolution.php index 71cba9a..1c0de99 100644 --- a/src/GeneratedModels/TargetResolution.php +++ b/src/GeneratedModels/TargetResolution.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $bitrate - * @property int $height - * @property int $width - */ class TargetResolution extends BaseModel { public function __construct( - public ?int $bitrate = null, - public ?int $height = null, public ?int $width = null, + public ?int $height = null, + public ?int $bitrate = null, ) { } diff --git a/src/GeneratedModels/TextContentParameters.php b/src/GeneratedModels/TextContentParameters.php index cca4cec..2a73d03 100644 --- a/src/GeneratedModels/TextContentParameters.php +++ b/src/GeneratedModels/TextContentParameters.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $containsUrl - * @property string|null $severity - * @property array|null $blocklistMatch - * @property array|null $harmLabels - * @property array|null $llmHarmLabels - */ class TextContentParameters extends BaseModel { public function __construct( + public ?array $harmLabels = null, + public ?array $llmHarmLabels = null, public ?bool $containsUrl = null, public ?string $severity = null, public ?array $blocklistMatch = null, - public ?array $harmLabels = null, - public ?array $llmHarmLabels = null, ) { } diff --git a/src/GeneratedModels/TextRuleParameters.php b/src/GeneratedModels/TextRuleParameters.php index 25e8f1f..1b1926e 100644 --- a/src/GeneratedModels/TextRuleParameters.php +++ b/src/GeneratedModels/TextRuleParameters.php @@ -3,31 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $containsUrl - * @property int|null $semanticFilterMinThreshold - * @property string|null $severity - * @property int|null $threshold - * @property string|null $timeWindow - * @property array|null $blocklistMatch - * @property array|null $harmLabels - * @property array|null $semanticFilterNames - * @property array|null $llmHarmLabels - */ class TextRuleParameters extends BaseModel { public function __construct( - public ?bool $containsUrl = null, - public ?int $semanticFilterMinThreshold = null, - public ?string $severity = null, public ?int $threshold = null, public ?string $timeWindow = null, - public ?array $blocklistMatch = null, public ?array $harmLabels = null, - public ?array $semanticFilterNames = null, public ?array $llmHarmLabels = null, + public ?bool $containsUrl = null, + public ?string $severity = null, + public ?array $blocklistMatch = null, + public ?array $semanticFilterNames = null, + public ?int $semanticFilterMinThreshold = null, ) { } diff --git a/src/GeneratedModels/ThreadParticipant.php b/src/GeneratedModels/ThreadParticipant.php index 862ceae..b0a0e87 100644 --- a/src/GeneratedModels/ThreadParticipant.php +++ b/src/GeneratedModels/ThreadParticipant.php @@ -5,31 +5,20 @@ namespace GetStream\GeneratedModels; /** * Represents a user that is participating in a thread. - * - * @property int $appPk - * @property string $channelCid - * @property \DateTime $createdAt - * @property \DateTime $lastReadAt - * @property object $custom - * @property \DateTime|null $lastThreadMessageAt - * @property \DateTime|null $leftThreadAt - * @property string|null $threadID - * @property string|null $userID - * @property UserResponse|null $user */ class ThreadParticipant extends BaseModel { public function __construct( + public ?UserResponse $user = null, public ?int $appPk = null, public ?string $channelCid = null, - public ?\DateTime $createdAt = null, // Date/time of creation - public ?\DateTime $lastReadAt = null, - public ?object $custom = null, public ?\DateTime $lastThreadMessageAt = null, - public ?\DateTime $leftThreadAt = null, // Left Thread At is the time when the user left the thread public ?string $threadID = null, // Thead ID is unique string identifier of the thread public ?string $userID = null, // User ID is unique string identifier of the user - public ?UserResponse $user = null, + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $leftThreadAt = null, // Left Thread At is the time when the user left the thread + public ?\DateTime $lastReadAt = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/ThreadResponse.php b/src/GeneratedModels/ThreadResponse.php index 205c951..cef0a89 100644 --- a/src/GeneratedModels/ThreadResponse.php +++ b/src/GeneratedModels/ThreadResponse.php @@ -3,47 +3,27 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $activeParticipantCount - * @property string $channelCid - * @property \DateTime $createdAt - * @property string $createdByUserID - * @property string $parentMessageID - * @property int $participantCount - * @property string $title - * @property \DateTime $updatedAt - * @property object $custom - * @property \DateTime|null $deletedAt - * @property \DateTime|null $lastMessageAt - * @property int|null $replyCount - * @property array|null $threadParticipants - * @property ChannelResponse|null $channel - * @property UserResponse|null $createdBy - * @property MessageResponse|null $parentMessage - */ class ThreadResponse extends BaseModel { public function __construct( - public ?int $activeParticipantCount = null, // Active Participant Count + public ?ChannelResponse $channel = null, + public ?UserResponse $createdBy = null, + public ?MessageResponse $parentMessage = null, public ?string $channelCid = null, // Channel CID - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $createdByUserID = null, // Created By User ID public ?string $parentMessageID = null, // Parent Message ID - public ?int $participantCount = null, // Participant Count - public ?string $title = null, // Title - public ?\DateTime $updatedAt = null, // Date/time of the last update - public ?object $custom = null, // Custom data for this object - public ?\DateTime $deletedAt = null, // Deleted At - public ?\DateTime $lastMessageAt = null, // Last Message At + public ?string $createdByUserID = null, // Created By User ID public ?int $replyCount = null, // Reply Count - /** @var array|null Thread Participants */ + public ?int $participantCount = null, // Participant Count + public ?int $activeParticipantCount = null, // Active Participant Count + /** @var array|null */ #[ArrayOf(ThreadParticipant::class)] public ?array $threadParticipants = null, // Thread Participants - public ?ChannelResponse $channel = null, - public ?UserResponse $createdBy = null, - public ?MessageResponse $parentMessage = null, + public ?\DateTime $lastMessageAt = null, // Last Message At + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $updatedAt = null, // Date/time of the last update + public ?\DateTime $deletedAt = null, // Deleted At + public ?string $title = null, // Title + public ?object $custom = null, // Custom data for this object ) { } diff --git a/src/GeneratedModels/ThreadStateResponse.php b/src/GeneratedModels/ThreadStateResponse.php index 76c35b2..6d41a4f 100644 --- a/src/GeneratedModels/ThreadStateResponse.php +++ b/src/GeneratedModels/ThreadStateResponse.php @@ -3,57 +3,34 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $activeParticipantCount - * @property string $channelCid - * @property \DateTime $createdAt - * @property string $createdByUserID - * @property string $parentMessageID - * @property int $participantCount - * @property string $title - * @property \DateTime $updatedAt - * @property array $latestReplies - * @property object $custom - * @property \DateTime|null $deletedAt - * @property \DateTime|null $lastMessageAt - * @property int|null $replyCount - * @property array|null $read - * @property array|null $threadParticipants - * @property ChannelResponse|null $channel - * @property UserResponse|null $createdBy - * @property DraftResponse|null $draft - * @property MessageResponse|null $parentMessage - */ class ThreadStateResponse extends BaseModel { public function __construct( - public ?int $activeParticipantCount = null, // Active Participant Count + public ?ChannelResponse $channel = null, + public ?UserResponse $createdBy = null, + public ?DraftResponse $draft = null, + public ?MessageResponse $parentMessage = null, public ?string $channelCid = null, // Channel CID - public ?\DateTime $createdAt = null, // Date/time of creation - public ?string $createdByUserID = null, // Created By User ID public ?string $parentMessageID = null, // Parent Message ID + public ?string $createdByUserID = null, // Created By User ID + public ?int $replyCount = null, // Reply Count public ?int $participantCount = null, // Participant Count - public ?string $title = null, // Title + public ?int $activeParticipantCount = null, // Active Participant Count + /** @var array|null */ + #[ArrayOf(ThreadParticipant::class)] + public ?array $threadParticipants = null, // Thread Participants + public ?\DateTime $lastMessageAt = null, // Last Message At + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $updatedAt = null, // Date/time of the last update + public ?\DateTime $deletedAt = null, // Deleted At + public ?string $title = null, // Title + public ?object $custom = null, // Custom data for this object /** @var array|null */ #[ArrayOf(MessageResponse::class)] public ?array $latestReplies = null, - public ?object $custom = null, // Custom data for this object - public ?\DateTime $deletedAt = null, // Deleted At - public ?\DateTime $lastMessageAt = null, // Last Message At - public ?int $replyCount = null, // Reply Count /** @var array|null */ #[ArrayOf(ReadStateResponse::class)] public ?array $read = null, - /** @var array|null Thread Participants */ - #[ArrayOf(ThreadParticipant::class)] - public ?array $threadParticipants = null, // Thread Participants - public ?ChannelResponse $channel = null, - public ?UserResponse $createdBy = null, - public ?DraftResponse $draft = null, - public ?MessageResponse $parentMessage = null, ) { } diff --git a/src/GeneratedModels/ThreadUpdatedEvent.php b/src/GeneratedModels/ThreadUpdatedEvent.php index 90bba08..f2b4446 100644 --- a/src/GeneratedModels/ThreadUpdatedEvent.php +++ b/src/GeneratedModels/ThreadUpdatedEvent.php @@ -3,27 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property string $type - * @property ThreadResponse|null $thread - * @property User|null $user - */ class ThreadUpdatedEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?string $type = null, public ?ThreadResponse $thread = null, - public ?User $user = null, + public ?string $type = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, + public ?string $channelType = null, + public ?string $channelID = null, ) { } diff --git a/src/GeneratedModels/ThreadedCommentResponse.php b/src/GeneratedModels/ThreadedCommentResponse.php index 5fa9489..10a6122 100644 --- a/src/GeneratedModels/ThreadedCommentResponse.php +++ b/src/GeneratedModels/ThreadedCommentResponse.php @@ -5,75 +5,49 @@ namespace GetStream\GeneratedModels; /** * A comment with an optional, depth‑limited slice of nested replies. - * - * @property int $confidenceScore - * @property \DateTime $createdAt - * @property int $downvoteCount - * @property string $id - * @property string $objectID - * @property string $objectType - * @property int $reactionCount - * @property int $replyCount - * @property int $score - * @property string $status - * @property \DateTime $updatedAt - * @property int $upvoteCount - * @property array $mentionedUsers - * @property array $ownReactions - * @property UserResponse $user - * @property int|null $controversyScore - * @property \DateTime|null $deletedAt - * @property \DateTime|null $editedAt - * @property string|null $parentID - * @property string|null $text - * @property array|null $attachments - * @property array|null $latestReactions - * @property array|null $replies - * @property object|null $custom - * @property RepliesMeta|null $meta - * @property ModerationV2Response|null $moderation - * @property array|null $reactionGroups */ class ThreadedCommentResponse extends BaseModel { public function __construct( - public ?int $confidenceScore = null, - public ?\DateTime $createdAt = null, - public ?int $downvoteCount = null, + public ?RepliesMeta $meta = null, + public ?ModerationV2Response $moderation = null, + public ?UserResponse $user = null, public ?string $id = null, public ?string $objectID = null, public ?string $objectType = null, + public ?string $text = null, + public ?object $custom = null, + public ?string $parentID = null, public ?int $reactionCount = null, - public ?int $replyCount = null, - public ?int $score = null, - public ?string $status = null, - public ?\DateTime $updatedAt = null, - public ?int $upvoteCount = null, - /** @var array|null */ - #[ArrayOf(UserResponse::class)] - public ?array $mentionedUsers = null, /** @var array|null */ #[ArrayOf(FeedsReactionResponse::class)] - public ?array $ownReactions = null, - public ?UserResponse $user = null, - public ?int $controversyScore = null, - public ?\DateTime $deletedAt = null, - public ?\DateTime $editedAt = null, - public ?string $parentID = null, - public ?string $text = null, + public ?array $latestReactions = null, + /** @var array|null */ + #[MapOf(FeedsReactionGroupResponse::class)] + public ?array $reactionGroups = null, /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, + /** @var array|null */ + #[ArrayOf(UserResponse::class)] + public ?array $mentionedUsers = null, + public ?string $status = null, // Status of the comment. One of: active, deleted, removed, hidden + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, + public ?\DateTime $editedAt = null, + public ?\DateTime $deletedAt = null, + public ?int $replyCount = null, + public ?int $upvoteCount = null, + public ?int $downvoteCount = null, + public ?int $score = null, + public ?int $confidenceScore = null, + public ?int $controversyScore = null, /** @var array|null */ #[ArrayOf(FeedsReactionResponse::class)] - public ?array $latestReactions = null, - /** @var array|null Slice of nested comments (may be empty). */ + public ?array $ownReactions = null, + /** @var array|null */ #[ArrayOf(ThreadedCommentResponse::class)] public ?array $replies = null, // Slice of nested comments (may be empty). - public ?object $custom = null, - public ?RepliesMeta $meta = null, - public ?ModerationV2Response $moderation = null, - public ?array $reactionGroups = null, ) { } diff --git a/src/GeneratedModels/Thresholds.php b/src/GeneratedModels/Thresholds.php index e86ed78..faf6877 100644 --- a/src/GeneratedModels/Thresholds.php +++ b/src/GeneratedModels/Thresholds.php @@ -5,10 +5,6 @@ namespace GetStream\GeneratedModels; /** * Sets thresholds for AI moderation - * - * @property LabelThresholds|null $explicit - * @property LabelThresholds|null $spam - * @property LabelThresholds|null $toxic */ class Thresholds extends BaseModel { diff --git a/src/GeneratedModels/ThumbnailResponse.php b/src/GeneratedModels/ThumbnailResponse.php index 81b63a9..44fbb60 100644 --- a/src/GeneratedModels/ThumbnailResponse.php +++ b/src/GeneratedModels/ThumbnailResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $imageUrl - */ class ThumbnailResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ThumbnailsSettings.php b/src/GeneratedModels/ThumbnailsSettings.php index 0bc5a01..7a98bb1 100644 --- a/src/GeneratedModels/ThumbnailsSettings.php +++ b/src/GeneratedModels/ThumbnailsSettings.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - */ class ThumbnailsSettings extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ThumbnailsSettingsRequest.php b/src/GeneratedModels/ThumbnailsSettingsRequest.php index 3f12bbf..8205c2a 100644 --- a/src/GeneratedModels/ThumbnailsSettingsRequest.php +++ b/src/GeneratedModels/ThumbnailsSettingsRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $enabled - */ class ThumbnailsSettingsRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/ThumbnailsSettingsResponse.php b/src/GeneratedModels/ThumbnailsSettingsResponse.php index 3624699..117ec89 100644 --- a/src/GeneratedModels/ThumbnailsSettingsResponse.php +++ b/src/GeneratedModels/ThumbnailsSettingsResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - */ class ThumbnailsSettingsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/Time.php b/src/GeneratedModels/Time.php index a38f5d7..5feabf9 100644 --- a/src/GeneratedModels/Time.php +++ b/src/GeneratedModels/Time.php @@ -3,9 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - */ class Time extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/TrackStatsResponse.php b/src/GeneratedModels/TrackStatsResponse.php index 87e36c9..7bd8ea4 100644 --- a/src/GeneratedModels/TrackStatsResponse.php +++ b/src/GeneratedModels/TrackStatsResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $durationSeconds - * @property string $trackType - */ class TrackStatsResponse extends BaseModel { public function __construct( - public ?int $durationSeconds = null, public ?string $trackType = null, + public ?int $durationSeconds = null, ) { } diff --git a/src/GeneratedModels/TranscriptionSettings.php b/src/GeneratedModels/TranscriptionSettings.php index 492e08e..f6faeff 100644 --- a/src/GeneratedModels/TranscriptionSettings.php +++ b/src/GeneratedModels/TranscriptionSettings.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $closedCaptionMode - * @property string $language - * @property string $mode - * @property SpeechSegmentConfig|null $speechSegmentConfig - * @property TranslationSettings|null $translation - */ class TranscriptionSettings extends BaseModel { public function __construct( - public ?string $closedCaptionMode = null, - public ?string $language = null, // The language used in this call as a two letter code - public ?string $mode = null, public ?SpeechSegmentConfig $speechSegmentConfig = null, public ?TranslationSettings $translation = null, + public ?string $mode = null, + public ?string $closedCaptionMode = null, // One of: available, disabled, auto-on + public ?string $language = null, // The language used in this call as a two letter code ) { } diff --git a/src/GeneratedModels/TranscriptionSettingsRequest.php b/src/GeneratedModels/TranscriptionSettingsRequest.php index c675cb8..c683ca7 100644 --- a/src/GeneratedModels/TranscriptionSettingsRequest.php +++ b/src/GeneratedModels/TranscriptionSettingsRequest.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $closedCaptionMode - * @property string|null $language - * @property string|null $mode - * @property SpeechSegmentConfig|null $speechSegmentConfig - * @property TranslationSettings|null $translation - */ class TranscriptionSettingsRequest extends BaseModel { public function __construct( - public ?string $closedCaptionMode = null, - public ?string $language = null, - public ?string $mode = null, public ?SpeechSegmentConfig $speechSegmentConfig = null, public ?TranslationSettings $translation = null, + public ?string $mode = null, + public ?string $closedCaptionMode = null, + public ?string $language = null, ) { } diff --git a/src/GeneratedModels/TranscriptionSettingsResponse.php b/src/GeneratedModels/TranscriptionSettingsResponse.php index ca27dcd..5e9aa9d 100644 --- a/src/GeneratedModels/TranscriptionSettingsResponse.php +++ b/src/GeneratedModels/TranscriptionSettingsResponse.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $closedCaptionMode - * @property string $language - * @property string $mode - * @property SpeechSegmentConfig|null $speechSegmentConfig - * @property TranslationSettings|null $translation - */ class TranscriptionSettingsResponse extends BaseModel { public function __construct( - public ?string $closedCaptionMode = null, - public ?string $language = null, - public ?string $mode = null, public ?SpeechSegmentConfig $speechSegmentConfig = null, public ?TranslationSettings $translation = null, + public ?string $mode = null, + public ?string $closedCaptionMode = null, + public ?string $language = null, ) { } diff --git a/src/GeneratedModels/TranslateMessageRequest.php b/src/GeneratedModels/TranslateMessageRequest.php index 7528fde..4a20834 100644 --- a/src/GeneratedModels/TranslateMessageRequest.php +++ b/src/GeneratedModels/TranslateMessageRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $language - */ class TranslateMessageRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/TranslationSettings.php b/src/GeneratedModels/TranslationSettings.php index f421647..d8c61cb 100644 --- a/src/GeneratedModels/TranslationSettings.php +++ b/src/GeneratedModels/TranslationSettings.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - * @property array $languages - */ class TranslationSettings extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/TruncateChannelRequest.php b/src/GeneratedModels/TruncateChannelRequest.php index 82b811c..4be7fa5 100644 --- a/src/GeneratedModels/TruncateChannelRequest.php +++ b/src/GeneratedModels/TruncateChannelRequest.php @@ -3,27 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $hardDelete - * @property bool|null $skipPush - * @property \DateTime|null $truncatedAt - * @property string|null $userID - * @property array|null $memberIds - * @property MessageRequest|null $message - * @property UserRequest|null $user - */ class TruncateChannelRequest extends BaseModel { public function __construct( + public ?MessageRequest $message = null, + public ?UserRequest $user = null, public ?bool $hardDelete = null, // Permanently delete channel data (messages, reactions, etc.) public ?bool $skipPush = null, // When `message` is set disables all push notifications for it public ?\DateTime $truncatedAt = null, // Truncate channel data up to `truncated_at`. The system message (if provided) creation time is always greater than `truncated_at` - public ?string $userID = null, public ?array $memberIds = null, // List of member IDs to hide message history for. If empty, truncates the channel for all members - public ?MessageRequest $message = null, - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/TruncateChannelResponse.php b/src/GeneratedModels/TruncateChannelResponse.php index 1600e84..f20f8f3 100644 --- a/src/GeneratedModels/TruncateChannelResponse.php +++ b/src/GeneratedModels/TruncateChannelResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ChannelResponse|null $channel - * @property MessageResponse|null $message - */ class TruncateChannelResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?ChannelResponse $channel = null, public ?MessageResponse $message = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/TypingIndicatorsResponse.php b/src/GeneratedModels/TypingIndicatorsResponse.php index 8fbfd04..8af2c2b 100644 --- a/src/GeneratedModels/TypingIndicatorsResponse.php +++ b/src/GeneratedModels/TypingIndicatorsResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $enabled - */ class TypingIndicatorsResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/UnbanActionRequestPayload.php b/src/GeneratedModels/UnbanActionRequestPayload.php new file mode 100644 index 0000000..0d272c8 --- /dev/null +++ b/src/GeneratedModels/UnbanActionRequestPayload.php @@ -0,0 +1,19 @@ + $follows - * @property bool|null $deleteNotificationActivity - */ class UnfollowBatchRequest extends BaseModel { public function __construct( - /** @var array|null List of follow relationships to remove */ + /** @var array|null */ #[ArrayOf(FollowPair::class)] public ?array $follows = null, // List of follow relationships to remove public ?bool $deleteNotificationActivity = null, // Whether to delete the corresponding notification activity (default: false) diff --git a/src/GeneratedModels/UnfollowBatchResponse.php b/src/GeneratedModels/UnfollowBatchResponse.php index 295a51f..f34adb9 100644 --- a/src/GeneratedModels/UnfollowBatchResponse.php +++ b/src/GeneratedModels/UnfollowBatchResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $follows - */ class UnfollowBatchResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of follow relationships that were removed */ + /** @var array|null */ #[ArrayOf(FollowResponse::class)] public ?array $follows = null, // List of follow relationships that were removed + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UnfollowResponse.php b/src/GeneratedModels/UnfollowResponse.php index a8edc0a..1fff3a4 100644 --- a/src/GeneratedModels/UnfollowResponse.php +++ b/src/GeneratedModels/UnfollowResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property FollowResponse $follow - */ class UnfollowResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?FollowResponse $follow = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UnmuteChannelRequest.php b/src/GeneratedModels/UnmuteChannelRequest.php index 0fda390..b2baf91 100644 --- a/src/GeneratedModels/UnmuteChannelRequest.php +++ b/src/GeneratedModels/UnmuteChannelRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $expiration - * @property string|null $userID - * @property array|null $channelCids - * @property UserRequest|null $user - */ class UnmuteChannelRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, + public ?array $channelCids = null, // Channel CIDs to mute (if multiple channels) public ?int $expiration = null, // Duration of mute in milliseconds public ?string $userID = null, - public ?array $channelCids = null, // Channel CIDs to mute (if multiple channels) - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/UnmuteRequest.php b/src/GeneratedModels/UnmuteRequest.php index 26bbcfa..433d3ac 100644 --- a/src/GeneratedModels/UnmuteRequest.php +++ b/src/GeneratedModels/UnmuteRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $targetIds - * @property string|null $userID - * @property UserRequest|null $user - */ class UnmuteRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?array $targetIds = null, // User IDs to unmute public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/UnmuteResponse.php b/src/GeneratedModels/UnmuteResponse.php index b9b1f3c..2dc6c93 100644 --- a/src/GeneratedModels/UnmuteResponse.php +++ b/src/GeneratedModels/UnmuteResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * Basic response information - * - * @property string $duration - * @property array|null $nonExistingUsers - */ class UnmuteResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - public ?array $nonExistingUsers = null, + public ?array $nonExistingUsers = null, // A list of users that can't be found. Common cause for this is deleted users + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UnpinActivityResponse.php b/src/GeneratedModels/UnpinActivityResponse.php index 0ecc879..c3c0935 100644 --- a/src/GeneratedModels/UnpinActivityResponse.php +++ b/src/GeneratedModels/UnpinActivityResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string $feed - * @property string $userID - * @property ActivityResponse $activity - */ class UnpinActivityResponse extends BaseModel { public function __construct( - public ?string $duration = null, + public ?ActivityResponse $activity = null, public ?string $feed = null, // Fully qualified ID of the feed the activity was unpinned from public ?string $userID = null, // ID of the user who unpinned the activity - public ?ActivityResponse $activity = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UnpinRequest.php b/src/GeneratedModels/UnpinRequest.php index ae0e8e7..5414eec 100644 --- a/src/GeneratedModels/UnpinRequest.php +++ b/src/GeneratedModels/UnpinRequest.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * UnpinRequest is the payload for unpinning a message. - * - * @property string $sessionID - * @property string $userID */ class UnpinRequest extends BaseModel { public function __construct( - public ?string $sessionID = null, // the session ID of the user who pinned the message public ?string $userID = null, // the user ID of the user who pinned the message + public ?string $sessionID = null, // the session ID of the user who pinned the message ) { } diff --git a/src/GeneratedModels/UnpinResponse.php b/src/GeneratedModels/UnpinResponse.php index 1d32dbd..dd2335a 100644 --- a/src/GeneratedModels/UnpinResponse.php +++ b/src/GeneratedModels/UnpinResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * UnpinResponse is the payload for unpinning a message. - * - * @property string $duration */ class UnpinResponse extends BaseModel { diff --git a/src/GeneratedModels/UnreadCountsBatchRequest.php b/src/GeneratedModels/UnreadCountsBatchRequest.php index 776e776..9a6ce65 100644 --- a/src/GeneratedModels/UnreadCountsBatchRequest.php +++ b/src/GeneratedModels/UnreadCountsBatchRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $userIds - */ class UnreadCountsBatchRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/UnreadCountsBatchResponse.php b/src/GeneratedModels/UnreadCountsBatchResponse.php index d182114..c9e6f0a 100644 --- a/src/GeneratedModels/UnreadCountsBatchResponse.php +++ b/src/GeneratedModels/UnreadCountsBatchResponse.php @@ -5,15 +5,14 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $countsByUser */ class UnreadCountsBatchResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds + /** @var array|null */ + #[MapOf(UnreadCountsResponse::class)] public ?array $countsByUser = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UnreadCountsChannel.php b/src/GeneratedModels/UnreadCountsChannel.php index 6fd28f5..8861254 100644 --- a/src/GeneratedModels/UnreadCountsChannel.php +++ b/src/GeneratedModels/UnreadCountsChannel.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $channelID - * @property \DateTime $lastRead - * @property int $unreadCount - */ class UnreadCountsChannel extends BaseModel { public function __construct( public ?string $channelID = null, - public ?\DateTime $lastRead = null, public ?int $unreadCount = null, + public ?\DateTime $lastRead = null, ) { } diff --git a/src/GeneratedModels/UnreadCountsChannelType.php b/src/GeneratedModels/UnreadCountsChannelType.php index 70f054c..0effc74 100644 --- a/src/GeneratedModels/UnreadCountsChannelType.php +++ b/src/GeneratedModels/UnreadCountsChannelType.php @@ -3,18 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $channelCount - * @property string $channelType - * @property int $unreadCount - */ class UnreadCountsChannelType extends BaseModel { public function __construct( - public ?int $channelCount = null, public ?string $channelType = null, + public ?int $channelCount = null, public ?int $unreadCount = null, ) { } diff --git a/src/GeneratedModels/UnreadCountsResponse.php b/src/GeneratedModels/UnreadCountsResponse.php index 269323d..e0ed244 100644 --- a/src/GeneratedModels/UnreadCountsResponse.php +++ b/src/GeneratedModels/UnreadCountsResponse.php @@ -3,31 +3,21 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $totalUnreadCount - * @property int $totalUnreadThreadsCount - * @property array $channelType - * @property array $channels - * @property array $threads - * @property array|null $totalUnreadCountByTeam - */ class UnreadCountsResponse extends BaseModel { public function __construct( public ?int $totalUnreadCount = null, public ?int $totalUnreadThreadsCount = null, - /** @var array|null */ - #[ArrayOf(UnreadCountsChannelType::class)] - public ?array $channelType = null, + public ?array $totalUnreadCountByTeam = null, /** @var array|null */ #[ArrayOf(UnreadCountsChannel::class)] public ?array $channels = null, + /** @var array|null */ + #[ArrayOf(UnreadCountsChannelType::class)] + public ?array $channelType = null, /** @var array|null */ #[ArrayOf(UnreadCountsThread::class)] public ?array $threads = null, - public ?array $totalUnreadCountByTeam = null, ) { } diff --git a/src/GeneratedModels/UnreadCountsThread.php b/src/GeneratedModels/UnreadCountsThread.php index 4117c3f..628e290 100644 --- a/src/GeneratedModels/UnreadCountsThread.php +++ b/src/GeneratedModels/UnreadCountsThread.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $lastRead - * @property string $lastReadMessageID - * @property string $parentMessageID - * @property int $unreadCount - */ class UnreadCountsThread extends BaseModel { public function __construct( + public ?int $unreadCount = null, public ?\DateTime $lastRead = null, public ?string $lastReadMessageID = null, public ?string $parentMessageID = null, - public ?int $unreadCount = null, ) { } diff --git a/src/GeneratedModels/UpdateActivitiesPartialBatchRequest.php b/src/GeneratedModels/UpdateActivitiesPartialBatchRequest.php index feaa7f6..089e85b 100644 --- a/src/GeneratedModels/UpdateActivitiesPartialBatchRequest.php +++ b/src/GeneratedModels/UpdateActivitiesPartialBatchRequest.php @@ -3,15 +3,10 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $changes - */ class UpdateActivitiesPartialBatchRequest extends BaseModel { public function __construct( - /** @var array|null List of activity changes to apply. Each change specifies an activity ID and the fields to set/unset */ + /** @var array|null */ #[ArrayOf(UpdateActivityPartialChangeRequest::class)] public ?array $changes = null, // List of activity changes to apply. Each change specifies an activity ID and the fields to set/unset ) { diff --git a/src/GeneratedModels/UpdateActivitiesPartialBatchResponse.php b/src/GeneratedModels/UpdateActivitiesPartialBatchResponse.php index abc3ff8..02c07bc 100644 --- a/src/GeneratedModels/UpdateActivitiesPartialBatchResponse.php +++ b/src/GeneratedModels/UpdateActivitiesPartialBatchResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $activities - */ class UpdateActivitiesPartialBatchResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of successfully updated activities */ + /** @var array|null */ #[ArrayOf(ActivityResponse::class)] public ?array $activities = null, // List of successfully updated activities + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateActivityPartialChangeRequest.php b/src/GeneratedModels/UpdateActivityPartialChangeRequest.php index 5d57907..fd4cc34 100644 --- a/src/GeneratedModels/UpdateActivityPartialChangeRequest.php +++ b/src/GeneratedModels/UpdateActivityPartialChangeRequest.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $activityID - * @property bool|null $handleMentionNotifications - * @property array|null $unset - * @property object|null $set - */ class UpdateActivityPartialChangeRequest extends BaseModel { public function __construct( public ?string $activityID = null, // ID of the activity to update - public ?bool $handleMentionNotifications = null, // When true and 'mentioned_user_ids' is updated, automatically creates or deletes mention notifications for added/removed users. Only applicable for client-side requests (ignored for server-side requests) - public ?array $unset = null, // List of field names to remove. Supported fields: 'custom', 'location', 'expires_at', 'filter_tags', 'interest_tags', 'attachments', 'poll_id', 'mentioned_user_ids'. Use dot-notation for nested custom fields (e.g., 'custom.field_name') public ?object $set = null, // Map of field names to new values. Supported fields: 'text', 'attachments', 'custom', 'visibility', 'visibility_tag', 'restrict_replies' (values: 'everyone', 'people_i_follow', 'nobody'), 'location', 'expires_at', 'filter_tags', 'interest_tags', 'poll_id', 'feeds', 'mentioned_user_ids'. For custom fields, use dot-notation (e.g., 'custom.field_name') + public ?array $unset = null, // List of field names to remove. Supported fields: 'custom', 'location', 'expires_at', 'filter_tags', 'interest_tags', 'attachments', 'poll_id', 'mentioned_user_ids'. Use dot-notation for nested custom fields (e.g., 'custom.field_name') + public ?bool $handleMentionNotifications = null, // When true and 'mentioned_user_ids' is updated, automatically creates or deletes mention notifications for added/removed users. Only applicable for client-side requests (ignored for server-side requests) + public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) ) { } diff --git a/src/GeneratedModels/UpdateActivityPartialRequest.php b/src/GeneratedModels/UpdateActivityPartialRequest.php index bf56e52..62584f4 100644 --- a/src/GeneratedModels/UpdateActivityPartialRequest.php +++ b/src/GeneratedModels/UpdateActivityPartialRequest.php @@ -3,23 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $handleMentionNotifications - * @property string|null $userID - * @property array|null $unset - * @property object|null $set - * @property UserRequest|null $user - */ class UpdateActivityPartialRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, + public ?object $set = null, // Map of field names to new values. Supported fields: 'text', 'attachments', 'custom', 'visibility', 'visibility_tag', 'restrict_replies' (values: 'everyone', 'people_i_follow', 'nobody'), 'location', 'expires_at', 'filter_tags', 'interest_tags', 'poll_id', 'feeds', 'mentioned_user_ids', 'search_data'. For custom fields, use dot-notation (e.g., 'custom.field_name') + public ?array $unset = null, // List of field names to remove. Supported fields: 'custom', 'visibility_tag', 'location', 'expires_at', 'filter_tags', 'interest_tags', 'attachments', 'poll_id', 'mentioned_user_ids', 'search_data'. Use dot-notation for nested custom fields (e.g., 'custom.field_name') public ?bool $handleMentionNotifications = null, // If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned + public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) + public ?bool $runActivityProcessors = null, // If true, runs activity processors on the updated activity. Processors will only run if the activity text and/or attachments are changed. Defaults to false. public ?string $userID = null, - public ?array $unset = null, // List of field names to remove. Supported fields: 'custom', 'location', 'expires_at', 'filter_tags', 'interest_tags', 'attachments', 'poll_id', 'mentioned_user_ids'. Use dot-notation for nested custom fields (e.g., 'custom.field_name') - public ?object $set = null, // Map of field names to new values. Supported fields: 'text', 'attachments', 'custom', 'visibility', 'visibility_tag', 'restrict_replies' (values: 'everyone', 'people_i_follow', 'nobody'), 'location', 'expires_at', 'filter_tags', 'interest_tags', 'poll_id', 'feeds', 'mentioned_user_ids'. For custom fields, use dot-notation (e.g., 'custom.field_name') - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/UpdateActivityPartialResponse.php b/src/GeneratedModels/UpdateActivityPartialResponse.php index 1cd693f..fb9cd1e 100644 --- a/src/GeneratedModels/UpdateActivityPartialResponse.php +++ b/src/GeneratedModels/UpdateActivityPartialResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ActivityResponse $activity - */ class UpdateActivityPartialResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?ActivityResponse $activity = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateActivityRequest.php b/src/GeneratedModels/UpdateActivityRequest.php index f955b80..018c6d4 100644 --- a/src/GeneratedModels/UpdateActivityRequest.php +++ b/src/GeneratedModels/UpdateActivityRequest.php @@ -3,51 +3,32 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime|null $expiresAt - * @property bool|null $handleMentionNotifications - * @property string|null $pollID - * @property string|null $restrictReplies - * @property bool|null $skipEnrichUrl - * @property string|null $text - * @property string|null $userID - * @property string|null $visibility - * @property string|null $visibilityTag - * @property array|null $attachments - * @property array|null $collectionRefs - * @property array|null $feeds - * @property array|null $filterTags - * @property array|null $interestTags - * @property array|null $mentionedUserIds - * @property object|null $custom - * @property ActivityLocation|null $location - * @property UserRequest|null $user - */ class UpdateActivityRequest extends BaseModel { public function __construct( - public ?\DateTime $expiresAt = null, // Time when the activity will expire - public ?bool $handleMentionNotifications = null, // If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned - public ?string $pollID = null, // Poll ID - public ?string $restrictReplies = null, // Controls who can add comments/replies to this activity. Options: 'everyone' (default - anyone can reply), 'people_i_follow' (only people the activity creator follows can reply), 'nobody' (no one can reply) - public ?bool $skipEnrichUrl = null, // Whether to skip URL enrichment for the activity + public ?ActivityLocation $location = null, + public ?UserRequest $user = null, public ?string $text = null, // The text content of the activity - public ?string $userID = null, - public ?string $visibility = null, // Visibility setting for the activity - public ?string $visibilityTag = null, // If visibility is 'tag', this is the tag name and is required - /** @var array|null List of attachments for the activity */ + /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, // List of attachments for the activity - public ?array $collectionRefs = null, // Collections that this activity references - public ?array $feeds = null, // List of feeds the activity is present in + public ?object $custom = null, // Custom data for the activity + public ?string $visibility = null, // Visibility setting for the activity + public ?string $visibilityTag = null, // If visibility is 'tag', this is the tag name and is required + public ?string $restrictReplies = null, // Controls who can add comments/replies to this activity. One of: everyone, people_i_follow, nobody + public ?\DateTime $expiresAt = null, // Time when the activity will expire public ?array $filterTags = null, // Tags used for filtering the activity public ?array $interestTags = null, // Tags indicating interest categories + public ?array $collectionRefs = null, // Collections that this activity references + public ?string $pollID = null, // Poll ID + public ?array $feeds = null, // List of feeds the activity is present in + public ?bool $skipEnrichUrl = null, // Whether to skip URL enrichment for the activity public ?array $mentionedUserIds = null, // List of user IDs mentioned in the activity - public ?object $custom = null, // Custom data for the activity - public ?ActivityLocation $location = null, - public ?UserRequest $user = null, + public ?bool $handleMentionNotifications = null, // If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned + public ?bool $runActivityProcessors = null, // If true, runs activity processors on the updated activity. Processors will only run if the activity text and/or attachments are changed. Defaults to false. + public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) + public ?object $searchData = null, // Additional data for search indexing + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/UpdateActivityResponse.php b/src/GeneratedModels/UpdateActivityResponse.php index 79658b3..d20d9e7 100644 --- a/src/GeneratedModels/UpdateActivityResponse.php +++ b/src/GeneratedModels/UpdateActivityResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ActivityResponse $activity - */ class UpdateActivityResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?ActivityResponse $activity = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateAppRequest.php b/src/GeneratedModels/UpdateAppRequest.php index 078733f..35e5290 100644 --- a/src/GeneratedModels/UpdateAppRequest.php +++ b/src/GeneratedModels/UpdateAppRequest.php @@ -3,109 +3,58 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $asyncUrlEnrichEnabled - * @property bool|null $autoTranslationEnabled - * @property string|null $beforeMessageSendHookUrl - * @property int|null $cdnExpirationSeconds - * @property bool|null $channelHideMembersOnly - * @property string|null $customActionHandlerUrl - * @property bool|null $disableAuthChecks - * @property bool|null $disablePermissionsChecks - * @property string|null $enforceUniqueUsernames - * @property bool|null $feedsModerationEnabled - * @property string|null $feedsV2Region - * @property bool|null $guestUserCreationDisabled - * @property bool|null $imageModerationEnabled - * @property int|null $maxAggregatedActivitiesLength - * @property bool|null $migratePermissionsToV2 - * @property bool|null $moderationEnabled - * @property string|null $moderationWebhookUrl - * @property bool|null $multiTenantEnabled - * @property string|null $permissionVersion - * @property int|null $remindersInterval - * @property int|null $remindersMaxMembers - * @property \DateTime|null $revokeTokensIssuedBefore - * @property string|null $snsKey - * @property string|null $snsSecret - * @property string|null $snsTopicArn - * @property string|null $sqsKey - * @property string|null $sqsSecret - * @property string|null $sqsUrl - * @property bool|null $userResponseTimeEnabled - * @property string|null $webhookUrl - * @property array|null $allowedFlagReasons - * @property array|null $eventHooks - * @property array|null $imageModerationBlockLabels - * @property array|null $imageModerationLabels - * @property array|null $userSearchDisallowedRoles - * @property array|null $webhookEvents - * @property APNConfig|null $apnConfig - * @property AsyncModerationConfiguration|null $asyncModerationConfig - * @property DataDogInfo|null $datadogInfo - * @property FileUploadConfig|null $fileUploadConfig - * @property FirebaseConfig|null $firebaseConfig - * @property array|null $grants - * @property HuaweiConfig|null $huaweiConfig - * @property FileUploadConfig|null $imageUploadConfig - * @property ModerationDashboardPreferences|null $moderationDashboardPreferences - * @property PushConfig|null $pushConfig - * @property XiaomiConfig|null $xiaomiConfig - */ class UpdateAppRequest extends BaseModel { public function __construct( - public ?bool $asyncUrlEnrichEnabled = null, - public ?bool $autoTranslationEnabled = null, - public ?string $beforeMessageSendHookUrl = null, - public ?int $cdnExpirationSeconds = null, - public ?bool $channelHideMembersOnly = null, - public ?string $customActionHandlerUrl = null, - public ?bool $disableAuthChecks = null, - public ?bool $disablePermissionsChecks = null, - public ?string $enforceUniqueUsernames = null, - public ?bool $feedsModerationEnabled = null, - public ?string $feedsV2Region = null, - public ?bool $guestUserCreationDisabled = null, - public ?bool $imageModerationEnabled = null, - public ?int $maxAggregatedActivitiesLength = null, - public ?bool $migratePermissionsToV2 = null, - public ?bool $moderationEnabled = null, - public ?string $moderationWebhookUrl = null, - public ?bool $multiTenantEnabled = null, - public ?string $permissionVersion = null, - public ?int $remindersInterval = null, - public ?int $remindersMaxMembers = null, - public ?\DateTime $revokeTokensIssuedBefore = null, - public ?string $snsKey = null, - public ?string $snsSecret = null, - public ?string $snsTopicArn = null, - public ?string $sqsKey = null, - public ?string $sqsSecret = null, - public ?string $sqsUrl = null, - public ?bool $userResponseTimeEnabled = null, - public ?string $webhookUrl = null, - public ?array $allowedFlagReasons = null, - /** @var array|null */ - #[ArrayOf(EventHook::class)] - public ?array $eventHooks = null, - public ?array $imageModerationBlockLabels = null, - public ?array $imageModerationLabels = null, - public ?array $userSearchDisallowedRoles = null, - public ?array $webhookEvents = null, public ?APNConfig $apnConfig = null, public ?AsyncModerationConfiguration $asyncModerationConfig = null, public ?DataDogInfo $datadogInfo = null, public ?FileUploadConfig $fileUploadConfig = null, public ?FirebaseConfig $firebaseConfig = null, - public ?array $grants = null, public ?HuaweiConfig $huaweiConfig = null, public ?FileUploadConfig $imageUploadConfig = null, public ?ModerationDashboardPreferences $moderationDashboardPreferences = null, public ?PushConfig $pushConfig = null, public ?XiaomiConfig $xiaomiConfig = null, + public ?bool $disableAuthChecks = null, + public ?bool $disablePermissionsChecks = null, + public ?string $webhookUrl = null, + public ?bool $moderationEnabled = null, + public ?string $moderationWebhookUrl = null, + public ?string $permissionVersion = null, + public ?array $userSearchDisallowedRoles = null, + public ?bool $multiTenantEnabled = null, + public ?array $imageModerationLabels = null, + public ?array $imageModerationBlockLabels = null, + public ?bool $imageModerationEnabled = null, + public ?array $allowedFlagReasons = null, + public ?bool $autoTranslationEnabled = null, + public ?bool $asyncUrlEnrichEnabled = null, + public ?string $beforeMessageSendHookUrl = null, + public ?string $customActionHandlerUrl = null, + public ?string $enforceUniqueUsernames = null, + public ?string $sqsUrl = null, + public ?string $sqsKey = null, + public ?string $sqsSecret = null, + public ?string $snsTopicArn = null, + public ?string $snsKey = null, + public ?string $snsSecret = null, + public ?\DateTime $revokeTokensIssuedBefore = null, + public ?array $webhookEvents = null, + public ?bool $channelHideMembersOnly = null, + public ?array $grants = null, + public ?bool $migratePermissionsToV2 = null, + public ?int $remindersInterval = null, + public ?int $remindersMaxMembers = null, + public ?int $cdnExpirationSeconds = null, + public ?string $feedsV2Region = null, + public ?bool $feedsModerationEnabled = null, + public ?bool $guestUserCreationDisabled = null, + /** @var array|null */ + #[ArrayOf(EventHook::class)] + public ?array $eventHooks = null, + public ?bool $userResponseTimeEnabled = null, + public ?int $maxAggregatedActivitiesLength = null, ) { } diff --git a/src/GeneratedModels/UpdateBlockListRequest.php b/src/GeneratedModels/UpdateBlockListRequest.php index d042d98..f111abd 100644 --- a/src/GeneratedModels/UpdateBlockListRequest.php +++ b/src/GeneratedModels/UpdateBlockListRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $isLeetCheckEnabled - * @property bool|null $isPluralCheckEnabled - * @property string|null $team - * @property array|null $words - */ class UpdateBlockListRequest extends BaseModel { public function __construct( - public ?bool $isLeetCheckEnabled = null, - public ?bool $isPluralCheckEnabled = null, public ?string $team = null, public ?array $words = null, // List of words to block + public ?bool $isLeetCheckEnabled = null, + public ?bool $isPluralCheckEnabled = null, ) { } diff --git a/src/GeneratedModels/UpdateBlockListResponse.php b/src/GeneratedModels/UpdateBlockListResponse.php index 850a048..89c9ce0 100644 --- a/src/GeneratedModels/UpdateBlockListResponse.php +++ b/src/GeneratedModels/UpdateBlockListResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property BlockListResponse|null $blocklist */ class UpdateBlockListResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?BlockListResponse $blocklist = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpdateBookmarkFolderRequest.php b/src/GeneratedModels/UpdateBookmarkFolderRequest.php index 10e22a0..cbc40cf 100644 --- a/src/GeneratedModels/UpdateBookmarkFolderRequest.php +++ b/src/GeneratedModels/UpdateBookmarkFolderRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $name - * @property string|null $userID - * @property object|null $custom - * @property UserRequest|null $user - */ class UpdateBookmarkFolderRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $name = null, // Name of the folder - public ?string $userID = null, public ?object $custom = null, // Custom data for the folder - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/UpdateBookmarkFolderResponse.php b/src/GeneratedModels/UpdateBookmarkFolderResponse.php index d889db0..e215367 100644 --- a/src/GeneratedModels/UpdateBookmarkFolderResponse.php +++ b/src/GeneratedModels/UpdateBookmarkFolderResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property BookmarkFolderResponse $bookmarkFolder - */ class UpdateBookmarkFolderResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?BookmarkFolderResponse $bookmarkFolder = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateBookmarkRequest.php b/src/GeneratedModels/UpdateBookmarkRequest.php index 27c2cc7..d47a400 100644 --- a/src/GeneratedModels/UpdateBookmarkRequest.php +++ b/src/GeneratedModels/UpdateBookmarkRequest.php @@ -3,25 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $folderID - * @property string|null $newFolderID - * @property string|null $userID - * @property object|null $custom - * @property AddFolderRequest|null $newFolder - * @property UserRequest|null $user - */ class UpdateBookmarkRequest extends BaseModel { public function __construct( + public ?AddFolderRequest $newFolder = null, + public ?UserRequest $user = null, public ?string $folderID = null, // ID of the folder to move the bookmark to public ?string $newFolderID = null, - public ?string $userID = null, public ?object $custom = null, // Custom data for the bookmark - public ?AddFolderRequest $newFolder = null, - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/UpdateBookmarkResponse.php b/src/GeneratedModels/UpdateBookmarkResponse.php index 4f5573c..29cd7e1 100644 --- a/src/GeneratedModels/UpdateBookmarkResponse.php +++ b/src/GeneratedModels/UpdateBookmarkResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property BookmarkResponse $bookmark - */ class UpdateBookmarkResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?BookmarkResponse $bookmark = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateCallMembersRequest.php b/src/GeneratedModels/UpdateCallMembersRequest.php index 4de8135..c7c3a4c 100644 --- a/src/GeneratedModels/UpdateCallMembersRequest.php +++ b/src/GeneratedModels/UpdateCallMembersRequest.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Update call members - * - * @property array|null $removeMembers - * @property array|null $updateMembers */ class UpdateCallMembersRequest extends BaseModel { public function __construct( public ?array $removeMembers = null, // List of userID to remove - /** @var array|null List of members to update or insert */ + /** @var array|null */ #[ArrayOf(MemberRequest::class)] public ?array $updateMembers = null, // List of members to update or insert ) { diff --git a/src/GeneratedModels/UpdateCallMembersResponse.php b/src/GeneratedModels/UpdateCallMembersResponse.php index 8ecb39d..9d13acf 100644 --- a/src/GeneratedModels/UpdateCallMembersResponse.php +++ b/src/GeneratedModels/UpdateCallMembersResponse.php @@ -5,9 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $members */ class UpdateCallMembersResponse extends BaseModel { diff --git a/src/GeneratedModels/UpdateCallRequest.php b/src/GeneratedModels/UpdateCallRequest.php index 2c1db1a..50242a4 100644 --- a/src/GeneratedModels/UpdateCallRequest.php +++ b/src/GeneratedModels/UpdateCallRequest.php @@ -5,17 +5,13 @@ namespace GetStream\GeneratedModels; /** * Request for updating a call - * - * @property \DateTime|null $startsAt - * @property object|null $custom - * @property CallSettingsRequest|null $settingsOverride */ class UpdateCallRequest extends BaseModel { public function __construct( - public ?\DateTime $startsAt = null, // the time the call is scheduled to start - public ?object $custom = null, // Custom data for this object public ?CallSettingsRequest $settingsOverride = null, + public ?object $custom = null, // Custom data for this object + public ?\DateTime $startsAt = null, // the time the call is scheduled to start ) { } diff --git a/src/GeneratedModels/UpdateCallResponse.php b/src/GeneratedModels/UpdateCallResponse.php index a2db059..e414c80 100644 --- a/src/GeneratedModels/UpdateCallResponse.php +++ b/src/GeneratedModels/UpdateCallResponse.php @@ -5,23 +5,18 @@ namespace GetStream\GeneratedModels; /** * Response for updating a call - * - * @property string $duration - * @property array $members - * @property array $ownCapabilities - * @property CallResponse $call */ class UpdateCallResponse extends BaseModel { public function __construct( - public ?string $duration = null, + public ?CallResponse $call = null, /** @var array|null */ #[ArrayOf(MemberResponse::class)] public ?array $members = null, /** @var array|null */ #[ArrayOf(OwnCapability::class)] public ?array $ownCapabilities = null, - public ?CallResponse $call = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateCallTypeRequest.php b/src/GeneratedModels/UpdateCallTypeRequest.php index 3df3ad8..886de2a 100644 --- a/src/GeneratedModels/UpdateCallTypeRequest.php +++ b/src/GeneratedModels/UpdateCallTypeRequest.php @@ -5,19 +5,14 @@ namespace GetStream\GeneratedModels; /** * UpdateCallTypeRequest is the payload for updating a call type. - * - * @property string|null $externalStorage - * @property array|null $grants - * @property NotificationSettings|null $notificationSettings - * @property CallSettingsRequest|null $settings */ class UpdateCallTypeRequest extends BaseModel { public function __construct( - public ?string $externalStorage = null, - public ?array $grants = null, - public ?NotificationSettings $notificationSettings = null, + public ?NotificationSettingsRequest $notificationSettings = null, public ?CallSettingsRequest $settings = null, + public ?array $grants = null, + public ?string $externalStorage = null, ) { } diff --git a/src/GeneratedModels/UpdateCallTypeResponse.php b/src/GeneratedModels/UpdateCallTypeResponse.php index 934ef0a..472c643 100644 --- a/src/GeneratedModels/UpdateCallTypeResponse.php +++ b/src/GeneratedModels/UpdateCallTypeResponse.php @@ -5,27 +5,18 @@ namespace GetStream\GeneratedModels; /** * UpdateCallTypeResponse is the payload for updating a call type. - * - * @property \DateTime $createdAt - * @property string $duration - * @property string $name - * @property \DateTime $updatedAt - * @property array $grants - * @property NotificationSettings $notificationSettings - * @property CallSettingsResponse $settings - * @property string|null $externalStorage */ class UpdateCallTypeResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // the time the call type was created - public ?string $duration = null, + public ?NotificationSettingsResponse $notificationSettings = null, + public ?CallSettingsResponse $settings = null, public ?string $name = null, // the name of the call type - public ?\DateTime $updatedAt = null, // the time the call type was last updated public ?array $grants = null, // the permissions granted to each role - public ?NotificationSettings $notificationSettings = null, - public ?CallSettingsResponse $settings = null, + public ?\DateTime $createdAt = null, // the time the call type was created + public ?\DateTime $updatedAt = null, // the time the call type was last updated public ?string $externalStorage = null, // the external storage for the call type + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateChannelPartialRequest.php b/src/GeneratedModels/UpdateChannelPartialRequest.php index 515d2a7..0ae5f25 100644 --- a/src/GeneratedModels/UpdateChannelPartialRequest.php +++ b/src/GeneratedModels/UpdateChannelPartialRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $userID - * @property array|null $unset - * @property object|null $set - * @property UserRequest|null $user - */ class UpdateChannelPartialRequest extends BaseModel { public function __construct( - public ?string $userID = null, - public ?array $unset = null, - public ?object $set = null, public ?UserRequest $user = null, + public ?object $set = null, + public ?array $unset = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/UpdateChannelPartialResponse.php b/src/GeneratedModels/UpdateChannelPartialResponse.php index 8214662..6e5b47e 100644 --- a/src/GeneratedModels/UpdateChannelPartialResponse.php +++ b/src/GeneratedModels/UpdateChannelPartialResponse.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $members - * @property ChannelResponse|null $channel - */ class UpdateChannelPartialResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null List of updated members */ + public ?ChannelResponse $channel = null, + /** @var array|null */ #[ArrayOf(ChannelMemberResponse::class)] public ?array $members = null, // List of updated members - public ?ChannelResponse $channel = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpdateChannelRequest.php b/src/GeneratedModels/UpdateChannelRequest.php index 5abeda0..bf1f476 100644 --- a/src/GeneratedModels/UpdateChannelRequest.php +++ b/src/GeneratedModels/UpdateChannelRequest.php @@ -3,55 +3,33 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $acceptInvite - * @property int|null $cooldown - * @property bool|null $hideHistory - * @property \DateTime|null $hideHistoryBefore - * @property bool|null $rejectInvite - * @property bool|null $skipPush - * @property string|null $userID - * @property array|null $addFilterTags - * @property array|null $addMembers - * @property array|null $addModerators - * @property array|null $assignRoles - * @property array|null $demoteModerators - * @property array|null $invites - * @property array|null $removeFilterTags - * @property array|null $removeMembers - * @property ChannelInputRequest|null $data - * @property MessageRequest|null $message - * @property UserRequest|null $user - */ class UpdateChannelRequest extends BaseModel { public function __construct( - public ?bool $acceptInvite = null, // Set to `true` to accept the invite - public ?int $cooldown = null, // Sets cool down period for the channel in seconds - public ?bool $hideHistory = null, // Set to `true` to hide channel's history when adding new members - public ?\DateTime $hideHistoryBefore = null, // If set, hides channel's history before this time when adding new members. Takes precedence over `hide_history` when both are provided. Must be in RFC3339 format (e.g., "2024-01-01T10:00:00Z") and in the past. - public ?bool $rejectInvite = null, // Set to `true` to reject the invite - public ?bool $skipPush = null, // When `message` is set disables all push notifications for it - public ?string $userID = null, - public ?array $addFilterTags = null, // List of filter tags to add to the channel - /** @var array|null List of user IDs to add to the channel */ + public ?ChannelInputRequest $data = null, + public ?MessageRequest $message = null, + public ?UserRequest $user = null, + /** @var array|null */ #[ArrayOf(ChannelMemberRequest::class)] public ?array $addMembers = null, // List of user IDs to add to the channel + public ?array $removeMembers = null, // List of user IDs to remove from the channel public ?array $addModerators = null, // List of user IDs to make channel moderators - /** @var array|null List of channel member role assignments. If any specified user is not part of the channel, the request will fail */ - #[ArrayOf(ChannelMemberRequest::class)] - public ?array $assignRoles = null, // List of channel member role assignments. If any specified user is not part of the channel, the request will fail public ?array $demoteModerators = null, // List of user IDs to take away moderators status from - /** @var array|null List of user IDs to invite to the channel */ + /** @var array|null */ #[ArrayOf(ChannelMemberRequest::class)] public ?array $invites = null, // List of user IDs to invite to the channel + /** @var array|null */ + #[ArrayOf(ChannelMemberRequest::class)] + public ?array $assignRoles = null, // List of channel member role assignments. If any specified user is not part of the channel, the request will fail + public ?int $cooldown = null, // Sets cool down period for the channel in seconds + public ?bool $acceptInvite = null, // Set to `true` to accept the invite + public ?bool $rejectInvite = null, // Set to `true` to reject the invite + public ?bool $skipPush = null, // When `message` is set disables all push notifications for it + public ?bool $hideHistory = null, // Set to `true` to hide channel's history when adding new members + public ?\DateTime $hideHistoryBefore = null, // If set, hides channel's history before this time when adding new members. Takes precedence over `hide_history` when both are provided. Must be in RFC3339 format (e.g., "2024-01-01T10:00:00Z") and in the past. + public ?array $addFilterTags = null, // List of filter tags to add to the channel public ?array $removeFilterTags = null, // List of filter tags to remove from the channel - public ?array $removeMembers = null, // List of user IDs to remove from the channel - public ?ChannelInputRequest $data = null, - public ?MessageRequest $message = null, - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/UpdateChannelResponse.php b/src/GeneratedModels/UpdateChannelResponse.php index a36aa43..28a7dff 100644 --- a/src/GeneratedModels/UpdateChannelResponse.php +++ b/src/GeneratedModels/UpdateChannelResponse.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $members - * @property ChannelResponse|null $channel - * @property MessageResponse|null $message - */ class UpdateChannelResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - /** @var array|null List of channel members */ - #[ArrayOf(ChannelMemberResponse::class)] - public ?array $members = null, // List of channel members public ?ChannelResponse $channel = null, public ?MessageResponse $message = null, + /** @var array|null */ + #[ArrayOf(ChannelMemberResponse::class)] + public ?array $members = null, // List of channel members + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpdateChannelTypeRequest.php b/src/GeneratedModels/UpdateChannelTypeRequest.php index ef9fdf8..97e0438 100644 --- a/src/GeneratedModels/UpdateChannelTypeRequest.php +++ b/src/GeneratedModels/UpdateChannelTypeRequest.php @@ -3,83 +3,47 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $automod - * @property string $automodBehavior - * @property int $maxMessageLength - * @property string|null $blocklist - * @property string|null $blocklistBehavior - * @property bool|null $connectEvents - * @property bool|null $countMessages - * @property bool|null $customEvents - * @property bool|null $deliveryEvents - * @property bool|null $markMessagesPending - * @property bool|null $mutes - * @property int|null $partitionSize - * @property string|null $partitionTtl - * @property bool|null $polls - * @property bool|null $pushNotifications - * @property bool|null $quotes - * @property bool|null $reactions - * @property bool|null $readEvents - * @property bool|null $reminders - * @property bool|null $replies - * @property bool|null $search - * @property bool|null $sharedLocations - * @property bool|null $skipLastMsgUpdateForSystemMsgs - * @property bool|null $typingEvents - * @property bool|null $uploads - * @property bool|null $urlEnrichment - * @property bool|null $userMessageReminders - * @property array|null $allowedFlagReasons - * @property array|null $blocklists - * @property array|null $commands - * @property array|null $permissions - * @property Thresholds|null $automodThresholds - * @property array|null $grants - */ class UpdateChannelTypeRequest extends BaseModel { public function __construct( - public ?string $automod = null, - public ?string $automodBehavior = null, - public ?int $maxMessageLength = null, - public ?string $blocklist = null, - public ?string $blocklistBehavior = null, - public ?bool $connectEvents = null, - public ?bool $countMessages = null, - public ?bool $customEvents = null, - public ?bool $deliveryEvents = null, - public ?bool $markMessagesPending = null, - public ?bool $mutes = null, + public ?Thresholds $automodThresholds = null, + /** @var array|null */ + #[ArrayOf(PolicyRequest::class)] + public ?array $permissions = null, + public ?array $grants = null, public ?int $partitionSize = null, public ?string $partitionTtl = null, - public ?bool $polls = null, - public ?bool $pushNotifications = null, - public ?bool $quotes = null, - public ?bool $reactions = null, + public ?bool $typingEvents = null, public ?bool $readEvents = null, - public ?bool $reminders = null, - public ?bool $replies = null, + public ?bool $connectEvents = null, + public ?bool $deliveryEvents = null, public ?bool $search = null, - public ?bool $sharedLocations = null, - public ?bool $skipLastMsgUpdateForSystemMsgs = null, - public ?bool $typingEvents = null, + public ?bool $reactions = null, + public ?bool $replies = null, + public ?bool $quotes = null, + public ?bool $mutes = null, public ?bool $uploads = null, public ?bool $urlEnrichment = null, + public ?bool $customEvents = null, + public ?bool $pushNotifications = null, + public ?bool $reminders = null, + public ?bool $markMessagesPending = null, + public ?bool $polls = null, public ?bool $userMessageReminders = null, - public ?array $allowedFlagReasons = null, + public ?bool $sharedLocations = null, + public ?bool $countMessages = null, + public ?int $maxMessageLength = null, + public ?string $automod = null, + public ?string $automodBehavior = null, + public ?string $blocklist = null, + public ?string $blocklistBehavior = null, /** @var array|null */ #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, + public ?array $allowedFlagReasons = null, + public ?bool $skipLastMsgUpdateForSystemMsgs = null, + public ?string $pushLevel = null, public ?array $commands = null, // List of commands that channel supports - /** @var array|null */ - #[ArrayOf(PolicyRequest::class)] - public ?array $permissions = null, - public ?Thresholds $automodThresholds = null, - public ?array $grants = null, ) { } diff --git a/src/GeneratedModels/UpdateChannelTypeResponse.php b/src/GeneratedModels/UpdateChannelTypeResponse.php index 6303255..b38fd28 100644 --- a/src/GeneratedModels/UpdateChannelTypeResponse.php +++ b/src/GeneratedModels/UpdateChannelTypeResponse.php @@ -3,91 +3,51 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $automod - * @property string $automodBehavior - * @property bool $connectEvents - * @property bool $countMessages - * @property \DateTime $createdAt - * @property bool $customEvents - * @property bool $deliveryEvents - * @property string $duration - * @property bool $markMessagesPending - * @property int $maxMessageLength - * @property bool $mutes - * @property string $name - * @property bool $polls - * @property bool $pushNotifications - * @property bool $quotes - * @property bool $reactions - * @property bool $readEvents - * @property bool $reminders - * @property bool $replies - * @property bool $search - * @property bool $sharedLocations - * @property bool $skipLastMsgUpdateForSystemMsgs - * @property bool $typingEvents - * @property \DateTime $updatedAt - * @property bool $uploads - * @property bool $urlEnrichment - * @property bool $userMessageReminders - * @property array $commands - * @property array $permissions - * @property array $grants - * @property string|null $blocklist - * @property string|null $blocklistBehavior - * @property int|null $partitionSize - * @property string|null $partitionTtl - * @property array|null $allowedFlagReasons - * @property array|null $blocklists - * @property Thresholds|null $automodThresholds - */ class UpdateChannelTypeResponse extends BaseModel { public function __construct( - public ?string $automod = null, - public ?string $automodBehavior = null, + public ?Thresholds $automodThresholds = null, + /** @var array|null */ + #[ArrayOf(PolicyRequest::class)] + public ?array $permissions = null, + public ?array $grants = null, + public ?string $name = null, + public ?bool $typingEvents = null, + public ?bool $readEvents = null, public ?bool $connectEvents = null, - public ?bool $countMessages = null, - public ?\DateTime $createdAt = null, - public ?bool $customEvents = null, public ?bool $deliveryEvents = null, - public ?string $duration = null, - public ?bool $markMessagesPending = null, - public ?int $maxMessageLength = null, - public ?bool $mutes = null, - public ?string $name = null, - public ?bool $polls = null, - public ?bool $pushNotifications = null, - public ?bool $quotes = null, + public ?bool $search = null, public ?bool $reactions = null, - public ?bool $readEvents = null, - public ?bool $reminders = null, public ?bool $replies = null, - public ?bool $search = null, - public ?bool $sharedLocations = null, - public ?bool $skipLastMsgUpdateForSystemMsgs = null, - public ?bool $typingEvents = null, - public ?\DateTime $updatedAt = null, + public ?bool $quotes = null, + public ?bool $mutes = null, public ?bool $uploads = null, public ?bool $urlEnrichment = null, + public ?bool $customEvents = null, + public ?bool $pushNotifications = null, + public ?bool $reminders = null, + public ?bool $markMessagesPending = null, + public ?bool $polls = null, public ?bool $userMessageReminders = null, - public ?array $commands = null, - /** @var array|null */ - #[ArrayOf(PolicyRequest::class)] - public ?array $permissions = null, - public ?array $grants = null, + public ?bool $sharedLocations = null, + public ?bool $countMessages = null, + public ?int $maxMessageLength = null, + public ?string $automod = null, + public ?string $automodBehavior = null, public ?string $blocklist = null, public ?string $blocklistBehavior = null, - public ?int $partitionSize = null, - public ?string $partitionTtl = null, - public ?array $allowedFlagReasons = null, /** @var array|null */ #[ArrayOf(BlockListOptions::class)] public ?array $blocklists = null, - public ?Thresholds $automodThresholds = null, + public ?array $allowedFlagReasons = null, + public ?int $partitionSize = null, + public ?string $partitionTtl = null, + public ?bool $skipLastMsgUpdateForSystemMsgs = null, + public ?string $pushLevel = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, + public ?array $commands = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateCollectionRequest.php b/src/GeneratedModels/UpdateCollectionRequest.php index 34399d3..f428385 100644 --- a/src/GeneratedModels/UpdateCollectionRequest.php +++ b/src/GeneratedModels/UpdateCollectionRequest.php @@ -3,18 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property string $name - * @property object $custom - */ class UpdateCollectionRequest extends BaseModel { public function __construct( - public ?string $id = null, // Unique identifier for the collection within its name public ?string $name = null, // Name/type of the collection + public ?string $id = null, // Unique identifier for the collection within its name public ?object $custom = null, // Custom data for the collection (required, must contain at least one key) ) { } diff --git a/src/GeneratedModels/UpdateCollectionsRequest.php b/src/GeneratedModels/UpdateCollectionsRequest.php index bbb6f10..ed67b7f 100644 --- a/src/GeneratedModels/UpdateCollectionsRequest.php +++ b/src/GeneratedModels/UpdateCollectionsRequest.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $collections - * @property string|null $userID - * @property UserRequest|null $user - */ class UpdateCollectionsRequest extends BaseModel { public function __construct( - /** @var array|null List of collections to update (only custom data is updatable) */ + public ?UserRequest $user = null, + /** @var array|null */ #[ArrayOf(UpdateCollectionRequest::class)] public ?array $collections = null, // List of collections to update (only custom data is updatable) public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/UpdateCollectionsResponse.php b/src/GeneratedModels/UpdateCollectionsResponse.php index efe9e78..f9d0de0 100644 --- a/src/GeneratedModels/UpdateCollectionsResponse.php +++ b/src/GeneratedModels/UpdateCollectionsResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $collections - */ class UpdateCollectionsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of updated collections */ + /** @var array|null */ #[ArrayOf(CollectionResponse::class)] public ?array $collections = null, // List of updated collections + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateCommandRequest.php b/src/GeneratedModels/UpdateCommandRequest.php index 077d88a..ac9581e 100644 --- a/src/GeneratedModels/UpdateCommandRequest.php +++ b/src/GeneratedModels/UpdateCommandRequest.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $description - * @property string|null $args - * @property string|null $set - */ class UpdateCommandRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/UpdateCommandResponse.php b/src/GeneratedModels/UpdateCommandResponse.php index 3faad82..d7c535a 100644 --- a/src/GeneratedModels/UpdateCommandResponse.php +++ b/src/GeneratedModels/UpdateCommandResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property Command|null $command - */ class UpdateCommandResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?Command $command = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateCommentRequest.php b/src/GeneratedModels/UpdateCommentRequest.php index f4ed970..fa69a67 100644 --- a/src/GeneratedModels/UpdateCommentRequest.php +++ b/src/GeneratedModels/UpdateCommentRequest.php @@ -3,33 +3,21 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $comment - * @property bool|null $handleMentionNotifications - * @property bool|null $skipEnrichUrl - * @property bool|null $skipPush - * @property string|null $userID - * @property array|null $attachments - * @property array|null $mentionedUserIds - * @property object|null $custom - * @property UserRequest|null $user - */ class UpdateCommentRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $comment = null, // Updated text content of the comment - public ?bool $handleMentionNotifications = null, // If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned - public ?bool $skipEnrichUrl = null, // Whether to skip URL enrichment for this comment - public ?bool $skipPush = null, - public ?string $userID = null, - /** @var array|null Updated media attachments for the comment. Providing this field will replace all existing attachments. */ + /** @var array|null */ #[ArrayOf(Attachment::class)] public ?array $attachments = null, // Updated media attachments for the comment. Providing this field will replace all existing attachments. - public ?array $mentionedUserIds = null, // List of user IDs mentioned in the comment public ?object $custom = null, // Updated custom data for the comment - public ?UserRequest $user = null, + public ?array $mentionedUserIds = null, // List of user IDs mentioned in the comment + public ?bool $skipPush = null, + public ?bool $skipEnrichUrl = null, // Whether to skip URL enrichment for this comment + public ?bool $handleMentionNotifications = null, // If true, creates notification activities for newly mentioned users and deletes notifications for users no longer mentioned + public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when handle_mention_notifications creates notifications) + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/UpdateCommentResponse.php b/src/GeneratedModels/UpdateCommentResponse.php index 564dc91..d974a1d 100644 --- a/src/GeneratedModels/UpdateCommentResponse.php +++ b/src/GeneratedModels/UpdateCommentResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property CommentResponse $comment - */ class UpdateCommentResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?CommentResponse $comment = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateExternalStorageRequest.php b/src/GeneratedModels/UpdateExternalStorageRequest.php index 2d8c981..675c678 100644 --- a/src/GeneratedModels/UpdateExternalStorageRequest.php +++ b/src/GeneratedModels/UpdateExternalStorageRequest.php @@ -5,23 +5,16 @@ namespace GetStream\GeneratedModels; /** * External storage - * - * @property string $bucket - * @property string $storageType - * @property string|null $gcsCredentials - * @property string|null $path - * @property S3Request|null $awsS3 - * @property AzureRequest|null $azureBlob */ class UpdateExternalStorageRequest extends BaseModel { public function __construct( - public ?string $bucket = null, // The name of the bucket on the service provider - public ?string $storageType = null, // The type of storage to use - public ?string $gcsCredentials = null, - public ?string $path = null, // The path prefix to use for storing files public ?S3Request $awsS3 = null, public ?AzureRequest $azureBlob = null, + public ?string $storageType = null, // The type of storage to use + public ?string $bucket = null, // The name of the bucket on the service provider + public ?string $path = null, // The path prefix to use for storing files + public ?string $gcsCredentials = null, ) { } diff --git a/src/GeneratedModels/UpdateExternalStorageResponse.php b/src/GeneratedModels/UpdateExternalStorageResponse.php index 5013af0..112c2cb 100644 --- a/src/GeneratedModels/UpdateExternalStorageResponse.php +++ b/src/GeneratedModels/UpdateExternalStorageResponse.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $bucket - * @property string $duration - * @property string $name - * @property string $path - * @property string $type */ class UpdateExternalStorageResponse extends BaseModel { public function __construct( - public ?string $bucket = null, - public ?string $duration = null, // Duration of the request in milliseconds public ?string $name = null, - public ?string $path = null, public ?string $type = null, + public ?string $bucket = null, + public ?string $path = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpdateFeedGroupRequest.php b/src/GeneratedModels/UpdateFeedGroupRequest.php index 53a9324..3670c87 100644 --- a/src/GeneratedModels/UpdateFeedGroupRequest.php +++ b/src/GeneratedModels/UpdateFeedGroupRequest.php @@ -3,35 +3,22 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $defaultVisibility - * @property array|null $activityProcessors - * @property array|null $activitySelectors - * @property AggregationConfig|null $aggregation - * @property object|null $custom - * @property NotificationConfig|null $notification - * @property PushNotificationConfig|null $pushNotification - * @property RankingConfig|null $ranking - * @property StoriesConfig|null $stories - */ class UpdateFeedGroupRequest extends BaseModel { public function __construct( - public ?string $defaultVisibility = null, - /** @var array|null Configuration for activity processors */ - #[ArrayOf(ActivityProcessorConfig::class)] - public ?array $activityProcessors = null, // Configuration for activity processors - /** @var array|null Configuration for activity selectors */ - #[ArrayOf(ActivitySelectorConfig::class)] - public ?array $activitySelectors = null, // Configuration for activity selectors public ?AggregationConfig $aggregation = null, - public ?object $custom = null, // Custom data for the feed group public ?NotificationConfig $notification = null, public ?PushNotificationConfig $pushNotification = null, public ?RankingConfig $ranking = null, public ?StoriesConfig $stories = null, + public ?object $custom = null, // Custom data for the feed group + public ?string $defaultVisibility = null, + /** @var array|null */ + #[ArrayOf(ActivityProcessorConfig::class)] + public ?array $activityProcessors = null, // Configuration for activity processors + /** @var array|null */ + #[ArrayOf(ActivitySelectorConfig::class)] + public ?array $activitySelectors = null, // Configuration for activity selectors ) { } diff --git a/src/GeneratedModels/UpdateFeedGroupResponse.php b/src/GeneratedModels/UpdateFeedGroupResponse.php index f2ac12c..00d5e01 100644 --- a/src/GeneratedModels/UpdateFeedGroupResponse.php +++ b/src/GeneratedModels/UpdateFeedGroupResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property FeedGroupResponse $feedGroup - */ class UpdateFeedGroupResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?FeedGroupResponse $feedGroup = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateFeedMembersRequest.php b/src/GeneratedModels/UpdateFeedMembersRequest.php index 5a8bfe7..c716d84 100644 --- a/src/GeneratedModels/UpdateFeedMembersRequest.php +++ b/src/GeneratedModels/UpdateFeedMembersRequest.php @@ -3,25 +3,16 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $operation - * @property int|null $limit - * @property string|null $next - * @property string|null $prev - * @property array|null $members - */ class UpdateFeedMembersRequest extends BaseModel { public function __construct( - public ?string $operation = null, // Type of update operation to perform + public ?string $operation = null, // Type of update operation to perform. One of: upsert, remove, set + /** @var array|null */ + #[ArrayOf(FeedMemberRequest::class)] + public ?array $members = null, // List of members to upsert, remove, or set public ?int $limit = null, public ?string $next = null, public ?string $prev = null, - /** @var array|null List of members to upsert, remove, or set */ - #[ArrayOf(FeedMemberRequest::class)] - public ?array $members = null, // List of members to upsert, remove, or set ) { } diff --git a/src/GeneratedModels/UpdateFeedMembersResponse.php b/src/GeneratedModels/UpdateFeedMembersResponse.php index f30360b..7503f49 100644 --- a/src/GeneratedModels/UpdateFeedMembersResponse.php +++ b/src/GeneratedModels/UpdateFeedMembersResponse.php @@ -5,23 +5,18 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property array $added - * @property array $removedIds - * @property array $updated */ class UpdateFeedMembersResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds /** @var array|null */ #[ArrayOf(FeedMemberResponse::class)] public ?array $added = null, - public ?array $removedIds = null, /** @var array|null */ #[ArrayOf(FeedMemberResponse::class)] public ?array $updated = null, + public ?array $removedIds = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpdateFeedRequest.php b/src/GeneratedModels/UpdateFeedRequest.php index 330ab17..d8bebe2 100644 --- a/src/GeneratedModels/UpdateFeedRequest.php +++ b/src/GeneratedModels/UpdateFeedRequest.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $createdByID - * @property string|null $description - * @property string|null $name - * @property array|null $filterTags - * @property object|null $custom - */ class UpdateFeedRequest extends BaseModel { public function __construct( public ?string $createdByID = null, // ID of the new feed creator (owner) - public ?string $description = null, // Description of the feed public ?string $name = null, // Name of the feed - public ?array $filterTags = null, // Tags used for filtering feeds + public ?string $description = null, // Description of the feed public ?object $custom = null, // Custom data for the feed + public ?array $filterTags = null, // Tags used for filtering feeds ) { } diff --git a/src/GeneratedModels/UpdateFeedResponse.php b/src/GeneratedModels/UpdateFeedResponse.php index 7ef35e9..e824632 100644 --- a/src/GeneratedModels/UpdateFeedResponse.php +++ b/src/GeneratedModels/UpdateFeedResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property FeedResponse $feed - */ class UpdateFeedResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?FeedResponse $feed = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateFeedViewRequest.php b/src/GeneratedModels/UpdateFeedViewRequest.php index ae92131..1a61073 100644 --- a/src/GeneratedModels/UpdateFeedViewRequest.php +++ b/src/GeneratedModels/UpdateFeedViewRequest.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $activitySelectors - * @property AggregationConfig|null $aggregation - * @property RankingConfig|null $ranking - */ class UpdateFeedViewRequest extends BaseModel { public function __construct( - /** @var array|null Updated configuration for selecting activities */ - #[ArrayOf(ActivitySelectorConfig::class)] - public ?array $activitySelectors = null, // Updated configuration for selecting activities public ?AggregationConfig $aggregation = null, public ?RankingConfig $ranking = null, + /** @var array|null */ + #[ArrayOf(ActivitySelectorConfig::class)] + public ?array $activitySelectors = null, // Updated configuration for selecting activities ) { } diff --git a/src/GeneratedModels/UpdateFeedViewResponse.php b/src/GeneratedModels/UpdateFeedViewResponse.php index e26a55d..ef63ebe 100644 --- a/src/GeneratedModels/UpdateFeedViewResponse.php +++ b/src/GeneratedModels/UpdateFeedViewResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property FeedViewResponse $feedView - */ class UpdateFeedViewResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?FeedViewResponse $feedView = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateFeedVisibilityRequest.php b/src/GeneratedModels/UpdateFeedVisibilityRequest.php index da14636..6eb128a 100644 --- a/src/GeneratedModels/UpdateFeedVisibilityRequest.php +++ b/src/GeneratedModels/UpdateFeedVisibilityRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $grants - */ class UpdateFeedVisibilityRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/UpdateFeedVisibilityResponse.php b/src/GeneratedModels/UpdateFeedVisibilityResponse.php index e936eb7..1535d17 100644 --- a/src/GeneratedModels/UpdateFeedVisibilityResponse.php +++ b/src/GeneratedModels/UpdateFeedVisibilityResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property FeedVisibilityResponse $feedVisibility - */ class UpdateFeedVisibilityResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?FeedVisibilityResponse $feedVisibility = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateFollowRequest.php b/src/GeneratedModels/UpdateFollowRequest.php index fe6c30e..5bccb21 100644 --- a/src/GeneratedModels/UpdateFollowRequest.php +++ b/src/GeneratedModels/UpdateFollowRequest.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $source - * @property string $target - * @property bool|null $createNotificationActivity - * @property string|null $followerRole - * @property string|null $pushPreference - * @property bool|null $skipPush - * @property string|null $status - * @property object|null $custom - */ class UpdateFollowRequest extends BaseModel { public function __construct( public ?string $source = null, // Fully qualified ID of the source feed public ?string $target = null, // Fully qualified ID of the target feed - public ?bool $createNotificationActivity = null, // Whether to create a notification activity for this follow - public ?string $followerRole = null, + public ?object $custom = null, // Custom data for the follow relationship public ?string $pushPreference = null, // Push preference for the follow relationship + public ?bool $createNotificationActivity = null, // Whether to create a notification activity for this follow + public ?bool $copyCustomToNotification = null, // Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) public ?bool $skipPush = null, // Whether to skip push for this follow - public ?string $status = null, // Status of the follow relationship - public ?object $custom = null, // Custom data for the follow relationship + public ?string $status = null, // Status of the follow relationship. One of: accepted, pending, rejected + public ?string $followerRole = null, ) { } diff --git a/src/GeneratedModels/UpdateFollowResponse.php b/src/GeneratedModels/UpdateFollowResponse.php index bd5dbeb..f0d138e 100644 --- a/src/GeneratedModels/UpdateFollowResponse.php +++ b/src/GeneratedModels/UpdateFollowResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property FollowResponse $follow - */ class UpdateFollowResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?FollowResponse $follow = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateLiveLocationRequest.php b/src/GeneratedModels/UpdateLiveLocationRequest.php index 375f48e..67642ca 100644 --- a/src/GeneratedModels/UpdateLiveLocationRequest.php +++ b/src/GeneratedModels/UpdateLiveLocationRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $messageID - * @property \DateTime|null $endAt - * @property int|null $latitude - * @property int|null $longitude - */ class UpdateLiveLocationRequest extends BaseModel { public function __construct( public ?string $messageID = null, // Live location ID - public ?\DateTime $endAt = null, // Time when the live location expires public ?int $latitude = null, // Latitude coordinate public ?int $longitude = null, // Longitude coordinate + public ?\DateTime $endAt = null, // Time when the live location expires ) { } diff --git a/src/GeneratedModels/UpdateMemberPartialRequest.php b/src/GeneratedModels/UpdateMemberPartialRequest.php index 3fcfeed..dc4f9b9 100644 --- a/src/GeneratedModels/UpdateMemberPartialRequest.php +++ b/src/GeneratedModels/UpdateMemberPartialRequest.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $unset - * @property object|null $set - */ class UpdateMemberPartialRequest extends BaseModel { public function __construct( - public ?array $unset = null, public ?object $set = null, + public ?array $unset = null, ) { } diff --git a/src/GeneratedModels/UpdateMemberPartialResponse.php b/src/GeneratedModels/UpdateMemberPartialResponse.php index 862fe94..d99779a 100644 --- a/src/GeneratedModels/UpdateMemberPartialResponse.php +++ b/src/GeneratedModels/UpdateMemberPartialResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ChannelMemberResponse|null $channelMember - */ class UpdateMemberPartialResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?ChannelMemberResponse $channelMember = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpdateMembershipLevelRequest.php b/src/GeneratedModels/UpdateMembershipLevelRequest.php index 5895004..9991397 100644 --- a/src/GeneratedModels/UpdateMembershipLevelRequest.php +++ b/src/GeneratedModels/UpdateMembershipLevelRequest.php @@ -5,18 +5,12 @@ namespace GetStream\GeneratedModels; /** * Partial update request for membership level fields. Only specified fields will be updated. - * - * @property string|null $description - * @property string|null $name - * @property int|null $priority - * @property array|null $tags - * @property object|null $custom */ class UpdateMembershipLevelRequest extends BaseModel { public function __construct( - public ?string $description = null, // Optional description of the membership level public ?string $name = null, // Display name for the membership level + public ?string $description = null, // Optional description of the membership level public ?int $priority = null, // Priority level (higher numbers = higher priority) public ?array $tags = null, // Activity tags this membership level gives access to public ?object $custom = null, // Custom data for the membership level diff --git a/src/GeneratedModels/UpdateMembershipLevelResponse.php b/src/GeneratedModels/UpdateMembershipLevelResponse.php index 0ccbac4..ab28b0d 100644 --- a/src/GeneratedModels/UpdateMembershipLevelResponse.php +++ b/src/GeneratedModels/UpdateMembershipLevelResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property MembershipLevelResponse $membershipLevel - */ class UpdateMembershipLevelResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?MembershipLevelResponse $membershipLevel = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateMessagePartialRequest.php b/src/GeneratedModels/UpdateMessagePartialRequest.php index edefea9..bd7b780 100644 --- a/src/GeneratedModels/UpdateMessagePartialRequest.php +++ b/src/GeneratedModels/UpdateMessagePartialRequest.php @@ -3,23 +3,15 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $skipEnrichUrl - * @property string|null $userID - * @property array|null $unset - * @property object|null $set - * @property UserRequest|null $user - */ class UpdateMessagePartialRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?bool $skipEnrichUrl = null, // Skip enriching the URL in the message - public ?string $userID = null, - public ?array $unset = null, // Array of field names to unset + public ?bool $skipPush = null, public ?object $set = null, // Sets new field values - public ?UserRequest $user = null, + public ?array $unset = null, // Array of field names to unset + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/UpdateMessagePartialResponse.php b/src/GeneratedModels/UpdateMessagePartialResponse.php index eb9db94..c508a21 100644 --- a/src/GeneratedModels/UpdateMessagePartialResponse.php +++ b/src/GeneratedModels/UpdateMessagePartialResponse.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property MessageResponse|null $message - * @property array|null $pendingMessageMetadata - */ class UpdateMessagePartialResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?MessageResponse $message = null, public ?array $pendingMessageMetadata = null, // Pending message metadata + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpdateMessageRequest.php b/src/GeneratedModels/UpdateMessageRequest.php index b801609..14e1e58 100644 --- a/src/GeneratedModels/UpdateMessageRequest.php +++ b/src/GeneratedModels/UpdateMessageRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property MessageRequest $message - * @property bool|null $skipEnrichUrl - * @property bool|null $skipPush - */ class UpdateMessageRequest extends BaseModel { public function __construct( public ?MessageRequest $message = null, - public ?bool $skipEnrichUrl = null, // Skip enrich URL public ?bool $skipPush = null, + public ?bool $skipEnrichUrl = null, // Skip enrich URL ) { } diff --git a/src/GeneratedModels/UpdateMessageResponse.php b/src/GeneratedModels/UpdateMessageResponse.php index a32f5d7..047bc75 100644 --- a/src/GeneratedModels/UpdateMessageResponse.php +++ b/src/GeneratedModels/UpdateMessageResponse.php @@ -5,17 +5,13 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property MessageResponse $message - * @property array|null $pendingMessageMetadata */ class UpdateMessageResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?MessageResponse $message = null, public ?array $pendingMessageMetadata = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpdatePollOptionRequest.php b/src/GeneratedModels/UpdatePollOptionRequest.php index d09f6f5..eb10f1b 100644 --- a/src/GeneratedModels/UpdatePollOptionRequest.php +++ b/src/GeneratedModels/UpdatePollOptionRequest.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property string $text - * @property string|null $userID - * @property object|null $custom - * @property UserRequest|null $user - */ class UpdatePollOptionRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $id = null, // Option ID public ?string $text = null, // Option text - public ?string $userID = null, public ?object $custom = null, - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/UpdatePollPartialRequest.php b/src/GeneratedModels/UpdatePollPartialRequest.php index cfec2e3..473e976 100644 --- a/src/GeneratedModels/UpdatePollPartialRequest.php +++ b/src/GeneratedModels/UpdatePollPartialRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $userID - * @property array|null $unset - * @property object|null $set - * @property UserRequest|null $user - */ class UpdatePollPartialRequest extends BaseModel { public function __construct( - public ?string $userID = null, - public ?array $unset = null, // Array of field names to unset - public ?object $set = null, // Sets new field values public ?UserRequest $user = null, + public ?object $set = null, // Sets new field values + public ?array $unset = null, // Array of field names to unset + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/UpdatePollRequest.php b/src/GeneratedModels/UpdatePollRequest.php index 90d0308..91a0f0e 100644 --- a/src/GeneratedModels/UpdatePollRequest.php +++ b/src/GeneratedModels/UpdatePollRequest.php @@ -3,41 +3,24 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property string $name - * @property bool|null $allowAnswers - * @property bool|null $allowUserSuggestedOptions - * @property string|null $description - * @property bool|null $enforceUniqueVote - * @property bool|null $isClosed - * @property int|null $maxVotesAllowed - * @property string|null $userID - * @property string|null $votingVisibility - * @property array|null $options - * @property object|null $custom - * @property UserRequest|null $user - */ class UpdatePollRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $id = null, // Poll ID public ?string $name = null, // Poll name - public ?bool $allowAnswers = null, // Allow answers - public ?bool $allowUserSuggestedOptions = null, // Allow user suggested options public ?string $description = null, // Poll description - public ?bool $enforceUniqueVote = null, // Enforce unique vote - public ?bool $isClosed = null, // Is closed - public ?int $maxVotesAllowed = null, // Max votes allowed - public ?string $userID = null, - public ?string $votingVisibility = null, // Voting visibility - /** @var array|null Poll options */ + /** @var array|null */ #[ArrayOf(PollOptionRequest::class)] public ?array $options = null, // Poll options + public ?bool $enforceUniqueVote = null, // Enforce unique vote + public ?string $votingVisibility = null, // Voting visibility + public ?int $maxVotesAllowed = null, // Max votes allowed + public ?bool $allowUserSuggestedOptions = null, // Allow user suggested options + public ?bool $allowAnswers = null, // Allow answers + public ?bool $isClosed = null, // Is closed public ?object $custom = null, - public ?UserRequest $user = null, + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/UpdateReminderRequest.php b/src/GeneratedModels/UpdateReminderRequest.php index bb065a3..e7b917b 100644 --- a/src/GeneratedModels/UpdateReminderRequest.php +++ b/src/GeneratedModels/UpdateReminderRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime|null $remindAt - * @property string|null $userID - * @property UserRequest|null $user - */ class UpdateReminderRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?\DateTime $remindAt = null, public ?string $userID = null, - public ?UserRequest $user = null, ) { } diff --git a/src/GeneratedModels/UpdateReminderResponse.php b/src/GeneratedModels/UpdateReminderResponse.php index 4d6aad4..27693a8 100644 --- a/src/GeneratedModels/UpdateReminderResponse.php +++ b/src/GeneratedModels/UpdateReminderResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property ReminderResponseData $reminder */ class UpdateReminderResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?ReminderResponseData $reminder = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpdateSIPInboundRoutingRuleRequest.php b/src/GeneratedModels/UpdateSIPInboundRoutingRuleRequest.php index 15b5f32..ce6e415 100644 --- a/src/GeneratedModels/UpdateSIPInboundRoutingRuleRequest.php +++ b/src/GeneratedModels/UpdateSIPInboundRoutingRuleRequest.php @@ -5,29 +5,19 @@ namespace GetStream\GeneratedModels; /** * Request to update a SIP Inbound Routing Rule - * - * @property string $name - * @property array $calledNumbers - * @property array $trunkIds - * @property SIPCallerConfigsRequest $callerConfigs - * @property array|null $callerNumbers - * @property SIPCallConfigsRequest|null $callConfigs - * @property SIPDirectRoutingRuleCallConfigsRequest|null $directRoutingConfigs - * @property SIPPinProtectionConfigsRequest|null $pinProtectionConfigs - * @property SIPInboundRoutingRulePinConfigsRequest|null $pinRoutingConfigs */ class UpdateSIPInboundRoutingRuleRequest extends BaseModel { public function __construct( - public ?string $name = null, // Name of the SIP Inbound Routing Rule - public ?array $calledNumbers = null, // List of called numbers - public ?array $trunkIds = null, // List of SIP trunk IDs - public ?SIPCallerConfigsRequest $callerConfigs = null, - public ?array $callerNumbers = null, // List of caller numbers (optional) public ?SIPCallConfigsRequest $callConfigs = null, + public ?SIPCallerConfigsRequest $callerConfigs = null, public ?SIPDirectRoutingRuleCallConfigsRequest $directRoutingConfigs = null, public ?SIPPinProtectionConfigsRequest $pinProtectionConfigs = null, public ?SIPInboundRoutingRulePinConfigsRequest $pinRoutingConfigs = null, + public ?string $name = null, // Name of the SIP Inbound Routing Rule + public ?array $trunkIds = null, // List of SIP trunk IDs + public ?array $calledNumbers = null, // List of called numbers + public ?array $callerNumbers = null, // List of caller numbers (optional) ) { } diff --git a/src/GeneratedModels/UpdateSIPInboundRoutingRuleResponse.php b/src/GeneratedModels/UpdateSIPInboundRoutingRuleResponse.php index 09d0fd7..c6ff0a8 100644 --- a/src/GeneratedModels/UpdateSIPInboundRoutingRuleResponse.php +++ b/src/GeneratedModels/UpdateSIPInboundRoutingRuleResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Response containing the updated SIP Inbound Routing Rule - * - * @property string $duration - * @property SIPInboundRoutingRuleResponse|null $sipInboundRoutingRule */ class UpdateSIPInboundRoutingRuleResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?SIPInboundRoutingRuleResponse $sipInboundRoutingRule = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateSIPTrunkRequest.php b/src/GeneratedModels/UpdateSIPTrunkRequest.php index 581f40e..152d6d2 100644 --- a/src/GeneratedModels/UpdateSIPTrunkRequest.php +++ b/src/GeneratedModels/UpdateSIPTrunkRequest.php @@ -5,9 +5,6 @@ namespace GetStream\GeneratedModels; /** * Request to update a SIP trunk - * - * @property string $name - * @property array $numbers */ class UpdateSIPTrunkRequest extends BaseModel { diff --git a/src/GeneratedModels/UpdateSIPTrunkResponse.php b/src/GeneratedModels/UpdateSIPTrunkResponse.php index e2c4daf..eeafd11 100644 --- a/src/GeneratedModels/UpdateSIPTrunkResponse.php +++ b/src/GeneratedModels/UpdateSIPTrunkResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Response containing the updated SIP trunk - * - * @property string $duration - * @property SIPTrunkResponse|null $sipTrunk */ class UpdateSIPTrunkResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?SIPTrunkResponse $sipTrunk = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpdateThreadPartialRequest.php b/src/GeneratedModels/UpdateThreadPartialRequest.php index d52cb21..0cd6be8 100644 --- a/src/GeneratedModels/UpdateThreadPartialRequest.php +++ b/src/GeneratedModels/UpdateThreadPartialRequest.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $userID - * @property array|null $unset - * @property object|null $set - * @property UserRequest|null $user - */ class UpdateThreadPartialRequest extends BaseModel { public function __construct( + public ?UserRequest $user = null, public ?string $userID = null, - public ?array $unset = null, // Array of field names to unset public ?object $set = null, // Sets new field values - public ?UserRequest $user = null, + public ?array $unset = null, // Array of field names to unset ) { } diff --git a/src/GeneratedModels/UpdateThreadPartialResponse.php b/src/GeneratedModels/UpdateThreadPartialResponse.php index f752c13..64f4de5 100644 --- a/src/GeneratedModels/UpdateThreadPartialResponse.php +++ b/src/GeneratedModels/UpdateThreadPartialResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ThreadResponse $thread - */ class UpdateThreadPartialResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?ThreadResponse $thread = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpdateUserPartialRequest.php b/src/GeneratedModels/UpdateUserPartialRequest.php index cc8c286..e4506d0 100644 --- a/src/GeneratedModels/UpdateUserPartialRequest.php +++ b/src/GeneratedModels/UpdateUserPartialRequest.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property array|null $unset - * @property object|null $set - */ class UpdateUserPartialRequest extends BaseModel { public function __construct( public ?string $id = null, // User ID to update - public ?array $unset = null, public ?object $set = null, + public ?array $unset = null, ) { } diff --git a/src/GeneratedModels/UpdateUserPermissionsRequest.php b/src/GeneratedModels/UpdateUserPermissionsRequest.php index 2ff3fd9..eb65697 100644 --- a/src/GeneratedModels/UpdateUserPermissionsRequest.php +++ b/src/GeneratedModels/UpdateUserPermissionsRequest.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $userID - * @property array|null $grantPermissions - * @property array|null $revokePermissions - */ class UpdateUserPermissionsRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/UpdateUserPermissionsResponse.php b/src/GeneratedModels/UpdateUserPermissionsResponse.php index 0b6fcff..a35cf1d 100644 --- a/src/GeneratedModels/UpdateUserPermissionsResponse.php +++ b/src/GeneratedModels/UpdateUserPermissionsResponse.php @@ -5,8 +5,6 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration */ class UpdateUserPermissionsResponse extends BaseModel { diff --git a/src/GeneratedModels/UpdateUsersPartialRequest.php b/src/GeneratedModels/UpdateUsersPartialRequest.php index b6e44e0..fccff12 100644 --- a/src/GeneratedModels/UpdateUsersPartialRequest.php +++ b/src/GeneratedModels/UpdateUsersPartialRequest.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $users - */ class UpdateUsersPartialRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/UpdateUsersRequest.php b/src/GeneratedModels/UpdateUsersRequest.php index 0b76d0d..c335ff1 100644 --- a/src/GeneratedModels/UpdateUsersRequest.php +++ b/src/GeneratedModels/UpdateUsersRequest.php @@ -3,14 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $users - */ class UpdateUsersRequest extends BaseModel { public function __construct( + /** @var array|null */ + #[MapOf(UserRequest::class)] public ?array $users = null, // Object containing users ) { } diff --git a/src/GeneratedModels/UpdateUsersResponse.php b/src/GeneratedModels/UpdateUsersResponse.php index 4170c87..d87da79 100644 --- a/src/GeneratedModels/UpdateUsersResponse.php +++ b/src/GeneratedModels/UpdateUsersResponse.php @@ -3,19 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string $membershipDeletionTaskID - * @property array $users - */ class UpdateUsersResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - public ?string $membershipDeletionTaskID = null, + /** @var array|null */ + #[MapOf(FullUserResponse::class)] public ?array $users = null, // Object containing users + public ?string $membershipDeletionTaskID = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpdatedCallPermissionsEvent.php b/src/GeneratedModels/UpdatedCallPermissionsEvent.php index 03323ec..1fa29dd 100644 --- a/src/GeneratedModels/UpdatedCallPermissionsEvent.php +++ b/src/GeneratedModels/UpdatedCallPermissionsEvent.php @@ -5,23 +5,17 @@ namespace GetStream\GeneratedModels; /** * This event is sent to notify about permission changes for a user, clients receiving this event should update their UI accordingly - * - * @property string $callCid - * @property \DateTime $createdAt - * @property array $ownCapabilities - * @property UserResponse $user - * @property string $type */ class UpdatedCallPermissionsEvent extends BaseModel { public function __construct( - public ?string $callCid = null, + public ?UserResponse $user = null, + public ?string $type = null, // The type of event: "call.permissions_updated" in this case public ?\DateTime $createdAt = null, - /** @var array|null The capabilities of the current user */ + public ?string $callCid = null, + /** @var array|null */ #[ArrayOf(OwnCapability::class)] public ?array $ownCapabilities = null, // The capabilities of the current user - public ?UserResponse $user = null, - public ?string $type = null, // The type of event: "call.permissions_updated" in this case ) { } diff --git a/src/GeneratedModels/UploadChannelFileRequest.php b/src/GeneratedModels/UploadChannelFileRequest.php index 54655e5..97afc69 100644 --- a/src/GeneratedModels/UploadChannelFileRequest.php +++ b/src/GeneratedModels/UploadChannelFileRequest.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $file - * @property OnlyUserID|null $user - */ class UploadChannelFileRequest extends BaseModel { public function __construct( - public ?string $file = null, // file field public ?OnlyUserID $user = null, + public ?string $file = null, // file field ) { } diff --git a/src/GeneratedModels/UploadChannelFileResponse.php b/src/GeneratedModels/UploadChannelFileResponse.php index 551fe82..0bf4caa 100644 --- a/src/GeneratedModels/UploadChannelFileResponse.php +++ b/src/GeneratedModels/UploadChannelFileResponse.php @@ -3,21 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string|null $file - * @property string|null $moderationAction - * @property string|null $thumbUrl - */ class UploadChannelFileResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?string $file = null, // URL to the uploaded asset. Should be used to put to `asset_url` attachment field - public ?string $moderationAction = null, public ?string $thumbUrl = null, // URL of the file thumbnail for supported file formats. Should be put to `thumb_url` attachment field + public ?string $moderationAction = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UploadChannelRequest.php b/src/GeneratedModels/UploadChannelRequest.php index 45c97b3..2912aa8 100644 --- a/src/GeneratedModels/UploadChannelRequest.php +++ b/src/GeneratedModels/UploadChannelRequest.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $file - * @property array|null $uploadSizes - * @property OnlyUserID|null $user - */ class UploadChannelRequest extends BaseModel { public function __construct( + public ?OnlyUserID $user = null, public ?string $file = null, - /** @var array|null field with JSON-encoded array of image size configurations */ + /** @var array|null */ #[ArrayOf(ImageSize::class)] public ?array $uploadSizes = null, // field with JSON-encoded array of image size configurations - public ?OnlyUserID $user = null, ) { } diff --git a/src/GeneratedModels/UploadChannelResponse.php b/src/GeneratedModels/UploadChannelResponse.php index deb4735..7fe9e5d 100644 --- a/src/GeneratedModels/UploadChannelResponse.php +++ b/src/GeneratedModels/UploadChannelResponse.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property string|null $file - * @property string|null $moderationAction - * @property string|null $thumbUrl - * @property array|null $uploadSizes - */ class UploadChannelResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?string $file = null, - public ?string $moderationAction = null, public ?string $thumbUrl = null, - /** @var array|null Array of image size configurations */ + public ?string $moderationAction = null, + public ?string $duration = null, // Duration of the request in milliseconds + /** @var array|null */ #[ArrayOf(ImageSize::class)] public ?array $uploadSizes = null, // Array of image size configurations ) { diff --git a/src/GeneratedModels/UpsertActivitiesRequest.php b/src/GeneratedModels/UpsertActivitiesRequest.php index 800e13d..89ab02f 100644 --- a/src/GeneratedModels/UpsertActivitiesRequest.php +++ b/src/GeneratedModels/UpsertActivitiesRequest.php @@ -3,15 +3,10 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $activities - */ class UpsertActivitiesRequest extends BaseModel { public function __construct( - /** @var array|null List of activities to create or update */ + /** @var array|null */ #[ArrayOf(ActivityRequest::class)] public ?array $activities = null, // List of activities to create or update ) { diff --git a/src/GeneratedModels/UpsertActivitiesResponse.php b/src/GeneratedModels/UpsertActivitiesResponse.php index 50f521c..62c77ab 100644 --- a/src/GeneratedModels/UpsertActivitiesResponse.php +++ b/src/GeneratedModels/UpsertActivitiesResponse.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $activities - * @property int|null $mentionNotificationsCreated - */ class UpsertActivitiesResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of created or updated activities */ + /** @var array|null */ #[ArrayOf(ActivityResponse::class)] public ?array $activities = null, // List of created or updated activities public ?int $mentionNotificationsCreated = null, // Total number of mention notification activities created for mentioned users across all activities + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpsertCollectionsRequest.php b/src/GeneratedModels/UpsertCollectionsRequest.php index cc70882..c15a8b4 100644 --- a/src/GeneratedModels/UpsertCollectionsRequest.php +++ b/src/GeneratedModels/UpsertCollectionsRequest.php @@ -3,15 +3,10 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $collections - */ class UpsertCollectionsRequest extends BaseModel { public function __construct( - /** @var array|null List of collections to upsert (insert if new, update if existing) */ + /** @var array|null */ #[ArrayOf(CollectionRequest::class)] public ?array $collections = null, // List of collections to upsert (insert if new, update if existing) ) { diff --git a/src/GeneratedModels/UpsertCollectionsResponse.php b/src/GeneratedModels/UpsertCollectionsResponse.php index c48b1ba..85ce1fc 100644 --- a/src/GeneratedModels/UpsertCollectionsResponse.php +++ b/src/GeneratedModels/UpsertCollectionsResponse.php @@ -3,19 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $collections - */ class UpsertCollectionsResponse extends BaseModel { public function __construct( - public ?string $duration = null, - /** @var array|null List of upserted collections */ + /** @var array|null */ #[ArrayOf(CollectionResponse::class)] public ?array $collections = null, // List of upserted collections + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpsertConfigRequest.php b/src/GeneratedModels/UpsertConfigRequest.php index 78f7c58..bf0d402 100644 --- a/src/GeneratedModels/UpsertConfigRequest.php +++ b/src/GeneratedModels/UpsertConfigRequest.php @@ -3,36 +3,9 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $key - * @property bool|null $async - * @property string|null $team - * @property string|null $userID - * @property AIImageConfig|null $aiImageConfig - * @property AITextConfig|null $aiTextConfig - * @property AIVideoConfig|null $aiVideoConfig - * @property AutomodPlatformCircumventionConfig|null $automodPlatformCircumventionConfig - * @property AutomodSemanticFiltersConfig|null $automodSemanticFiltersConfig - * @property AutomodToxicityConfig|null $automodToxicityConfig - * @property AIImageConfig|null $awsRekognitionConfig - * @property BlockListConfig|null $blockListConfig - * @property AITextConfig|null $bodyguardConfig - * @property GoogleVisionConfig|null $googleVisionConfig - * @property LLMConfig|null $llmConfig - * @property RuleBuilderConfig|null $ruleBuilderConfig - * @property UserRequest|null $user - * @property VelocityFilterConfig|null $velocityFilterConfig - * @property VideoCallRuleConfig|null $videoCallRuleConfig - */ class UpsertConfigRequest extends BaseModel { public function __construct( - public ?string $key = null, // Unique identifier for the moderation configuration - public ?bool $async = null, // Whether moderation should be performed asynchronously - public ?string $team = null, // Team associated with the configuration - public ?string $userID = null, public ?AIImageConfig $aiImageConfig = null, public ?AITextConfig $aiTextConfig = null, public ?AIVideoConfig $aiVideoConfig = null, @@ -48,6 +21,10 @@ public function __construct( public ?UserRequest $user = null, public ?VelocityFilterConfig $velocityFilterConfig = null, public ?VideoCallRuleConfig $videoCallRuleConfig = null, + public ?string $key = null, // Unique identifier for the moderation configuration + public ?string $team = null, // Team associated with the configuration + public ?bool $async = null, // Whether moderation should be performed asynchronously + public ?string $userID = null, ) { } diff --git a/src/GeneratedModels/UpsertConfigResponse.php b/src/GeneratedModels/UpsertConfigResponse.php index ab99ea7..af22d85 100644 --- a/src/GeneratedModels/UpsertConfigResponse.php +++ b/src/GeneratedModels/UpsertConfigResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property ConfigResponse|null $config - */ class UpsertConfigResponse extends BaseModel { public function __construct( - public ?string $duration = null, public ?ConfigResponse $config = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpsertModerationRuleRequest.php b/src/GeneratedModels/UpsertModerationRuleRequest.php index 78e2878..8961fd0 100644 --- a/src/GeneratedModels/UpsertModerationRuleRequest.php +++ b/src/GeneratedModels/UpsertModerationRuleRequest.php @@ -3,39 +3,27 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $name - * @property string $ruleType - * @property RuleBuilderAction $action - * @property string|null $cooldownPeriod - * @property string|null $description - * @property bool|null $enabled - * @property string|null $logic - * @property string|null $team - * @property array|null $conditions - * @property array|null $configKeys - * @property array|null $groups - */ class UpsertModerationRuleRequest extends BaseModel { public function __construct( - public ?string $name = null, - public ?string $ruleType = null, public ?RuleBuilderAction $action = null, - public ?string $cooldownPeriod = null, + public ?string $name = null, public ?string $description = null, - public ?bool $enabled = null, - public ?string $logic = null, + public ?array $configKeys = null, public ?string $team = null, + public ?string $ruleType = null, /** @var array|null */ #[ArrayOf(RuleBuilderCondition::class)] public ?array $conditions = null, - public ?array $configKeys = null, + public ?string $logic = null, /** @var array|null */ #[ArrayOf(RuleBuilderConditionGroup::class)] public ?array $groups = null, + /** @var array|null */ + #[ArrayOf(CallRuleActionSequence::class)] + public ?array $actionSequences = null, + public ?string $cooldownPeriod = null, + public ?bool $enabled = null, ) { } diff --git a/src/GeneratedModels/UpsertModerationRuleResponse.php b/src/GeneratedModels/UpsertModerationRuleResponse.php index b6d687c..1a75872 100644 --- a/src/GeneratedModels/UpsertModerationRuleResponse.php +++ b/src/GeneratedModels/UpsertModerationRuleResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property ModerationRuleV2Response|null $rule */ class UpsertModerationRuleResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?ModerationRuleV2Response $rule = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpsertModerationTemplateRequest.php b/src/GeneratedModels/UpsertModerationTemplateRequest.php index 8739a4e..65ca4a4 100644 --- a/src/GeneratedModels/UpsertModerationTemplateRequest.php +++ b/src/GeneratedModels/UpsertModerationTemplateRequest.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $name - * @property FeedsModerationTemplateConfig $config - */ class UpsertModerationTemplateRequest extends BaseModel { public function __construct( + public ?FeedsModerationTemplateConfigPayload $config = null, public ?string $name = null, // Name of the moderation template - public ?FeedsModerationTemplateConfig $config = null, ) { } diff --git a/src/GeneratedModels/UpsertModerationTemplateResponse.php b/src/GeneratedModels/UpsertModerationTemplateResponse.php index 3ea8975..5b4f03b 100644 --- a/src/GeneratedModels/UpsertModerationTemplateResponse.php +++ b/src/GeneratedModels/UpsertModerationTemplateResponse.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property string $duration - * @property string $name - * @property \DateTime $updatedAt - * @property FeedsModerationTemplateConfig|null $config - */ class UpsertModerationTemplateResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // When the template was created - public ?string $duration = null, + public ?FeedsModerationTemplateConfigPayload $config = null, public ?string $name = null, // Name of the moderation template + public ?\DateTime $createdAt = null, // When the template was created public ?\DateTime $updatedAt = null, // When the template was last updated - public ?FeedsModerationTemplateConfig $config = null, + public ?string $duration = null, ) { } diff --git a/src/GeneratedModels/UpsertPushPreferencesRequest.php b/src/GeneratedModels/UpsertPushPreferencesRequest.php index 2d16345..9f79256 100644 --- a/src/GeneratedModels/UpsertPushPreferencesRequest.php +++ b/src/GeneratedModels/UpsertPushPreferencesRequest.php @@ -3,15 +3,10 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $preferences - */ class UpsertPushPreferencesRequest extends BaseModel { public function __construct( - /** @var array|null A list of push preferences for channels, calls, or the user. */ + /** @var array|null */ #[ArrayOf(PushPreferenceInput::class)] public ?array $preferences = null, // A list of push preferences for channels, calls, or the user. ) { diff --git a/src/GeneratedModels/UpsertPushPreferencesResponse.php b/src/GeneratedModels/UpsertPushPreferencesResponse.php index b67cf72..10c0349 100644 --- a/src/GeneratedModels/UpsertPushPreferencesResponse.php +++ b/src/GeneratedModels/UpsertPushPreferencesResponse.php @@ -3,19 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $duration - * @property array $userChannelPreferences - * @property array $userPreferences - */ class UpsertPushPreferencesResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds - public ?array $userChannelPreferences = null, // The channel specific push notification preferences, only returned for channels you've edited. + /** @var array|null */ + #[MapOf(PushPreferencesResponse::class)] public ?array $userPreferences = null, // The user preferences, always returned regardless if you edited it + public ?array $userChannelPreferences = null, // The channel specific push notification preferences, only returned for channels you've edited. + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpsertPushProviderRequest.php b/src/GeneratedModels/UpsertPushProviderRequest.php index b23b51d..c2da106 100644 --- a/src/GeneratedModels/UpsertPushProviderRequest.php +++ b/src/GeneratedModels/UpsertPushProviderRequest.php @@ -3,15 +3,10 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property PushProvider|null $pushProvider - */ class UpsertPushProviderRequest extends BaseModel { public function __construct( - public ?PushProvider $pushProvider = null, + public ?PushProviderRequest $pushProvider = null, ) { } diff --git a/src/GeneratedModels/UpsertPushProviderResponse.php b/src/GeneratedModels/UpsertPushProviderResponse.php index c3b409c..0582888 100644 --- a/src/GeneratedModels/UpsertPushProviderResponse.php +++ b/src/GeneratedModels/UpsertPushProviderResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property PushProviderResponse $pushProvider */ class UpsertPushProviderResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?PushProviderResponse $pushProvider = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/UpsertPushTemplateRequest.php b/src/GeneratedModels/UpsertPushTemplateRequest.php index 02882e5..655c0d7 100644 --- a/src/GeneratedModels/UpsertPushTemplateRequest.php +++ b/src/GeneratedModels/UpsertPushTemplateRequest.php @@ -3,22 +3,13 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $eventType - * @property string $pushProviderType - * @property bool|null $enablePush - * @property string|null $pushProviderName - * @property string|null $template - */ class UpsertPushTemplateRequest extends BaseModel { public function __construct( - public ?string $eventType = null, // Event type (message.new, message.updated, reaction.new) - public ?string $pushProviderType = null, // Push provider type (firebase, apn, huawei, xiaomi) public ?bool $enablePush = null, // Whether to send push notification for this event + public ?string $eventType = null, // Event type. One of: message.new, message.updated, reaction.new, notification.reminder_due, feeds.activity.added, feeds.comment.added, feeds.activity.reaction.added, feeds.comment.reaction.added, feeds.follow.created, feeds.notification_feed.updated public ?string $pushProviderName = null, // Push provider name + public ?string $pushProviderType = null, // Push provider type. One of: firebase, apn, huawei, xiaomi public ?string $template = null, // Push template ) { } diff --git a/src/GeneratedModels/UpsertPushTemplateResponse.php b/src/GeneratedModels/UpsertPushTemplateResponse.php index 38c4e4f..4f0477c 100644 --- a/src/GeneratedModels/UpsertPushTemplateResponse.php +++ b/src/GeneratedModels/UpsertPushTemplateResponse.php @@ -5,15 +5,12 @@ namespace GetStream\GeneratedModels; /** * Basic response information - * - * @property string $duration - * @property PushTemplate|null $template */ class UpsertPushTemplateResponse extends BaseModel { public function __construct( + public ?PushTemplateResponse $template = null, public ?string $duration = null, // Duration of the request in milliseconds - public ?PushTemplate $template = null, ) { } diff --git a/src/GeneratedModels/User.php b/src/GeneratedModels/User.php index fa8b61c..66c5bb2 100644 --- a/src/GeneratedModels/User.php +++ b/src/GeneratedModels/User.php @@ -3,35 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $id - * @property \DateTime|null $banExpires - * @property bool|null $banned - * @property bool|null $invisible - * @property string|null $language - * @property \DateTime|null $revokeTokensIssuedBefore - * @property string|null $role - * @property array|null $teams - * @property object|null $custom - * @property PrivacySettings|null $privacySettings - * @property array|null $teamsRole - */ class User extends BaseModel { public function __construct( public ?string $id = null, - public ?\DateTime $banExpires = null, - public ?bool $banned = null, - public ?bool $invisible = null, - public ?string $language = null, - public ?\DateTime $revokeTokensIssuedBefore = null, - public ?string $role = null, - public ?array $teams = null, - public ?object $custom = null, - public ?PrivacySettings $privacySettings = null, - public ?array $teamsRole = null, + public ?object $data = null, ) { } diff --git a/src/GeneratedModels/UserBannedEvent.php b/src/GeneratedModels/UserBannedEvent.php index 19fffcf..ac926d1 100644 --- a/src/GeneratedModels/UserBannedEvent.php +++ b/src/GeneratedModels/UserBannedEvent.php @@ -4,34 +4,28 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property bool $shadow - * @property User $createdBy - * @property string $type - * @property \DateTime|null $expiration - * @property string|null $reason - * @property string|null $team - * @property User|null $user + * This event is sent when a user gets banned. The event contains information about the user that was banned. */ class UserBannedEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?bool $shadow = null, - public ?User $createdBy = null, - public ?string $type = null, - public ?\DateTime $expiration = null, - public ?string $reason = null, - public ?string $team = null, - public ?User $user = null, + public ?UserResponseCommonFields $createdBy = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "user.banned" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel where the target user was banned + public ?string $team = null, // The team of the channel where the target user was banned + public ?int $channelMemberCount = null, + public ?int $channelMessageCount = null, + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel where the target user was banned + public ?string $channelID = null, // The ID of the channel where the target user was banned + public ?string $reason = null, // The reason for the ban + public ?\DateTime $expiration = null, // The expiration date of the ban + public ?bool $shadow = null, // Whether the user was shadow banned + public ?int $totalBans = null, ) { } diff --git a/src/GeneratedModels/UserCreatedWithinParameters.php b/src/GeneratedModels/UserCreatedWithinParameters.php index 6172e87..2e9bf07 100644 --- a/src/GeneratedModels/UserCreatedWithinParameters.php +++ b/src/GeneratedModels/UserCreatedWithinParameters.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $maxAge - */ class UserCreatedWithinParameters extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/UserCustomEventRequest.php b/src/GeneratedModels/UserCustomEventRequest.php index 46a4514..4463132 100644 --- a/src/GeneratedModels/UserCustomEventRequest.php +++ b/src/GeneratedModels/UserCustomEventRequest.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $type - * @property object|null $custom - */ class UserCustomEventRequest extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/UserCustomPropertyParameters.php b/src/GeneratedModels/UserCustomPropertyParameters.php index 6ae60d6..5f47460 100644 --- a/src/GeneratedModels/UserCustomPropertyParameters.php +++ b/src/GeneratedModels/UserCustomPropertyParameters.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $operator - * @property string|null $propertyKey - */ class UserCustomPropertyParameters extends BaseModel { public function __construct( - public ?string $operator = null, public ?string $propertyKey = null, + public ?string $operator = null, ) { } diff --git a/src/GeneratedModels/UserDeactivatedEvent.php b/src/GeneratedModels/UserDeactivatedEvent.php index 41e1973..22bb5a7 100644 --- a/src/GeneratedModels/UserDeactivatedEvent.php +++ b/src/GeneratedModels/UserDeactivatedEvent.php @@ -4,20 +4,17 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property \DateTime $createdAt - * @property User $createdBy - * @property string $type - * @property User|null $user + * This event is sent when a user gets deactivated. The event contains information about the user that was deactivated. */ class UserDeactivatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?User $createdBy = null, - public ?string $type = null, - public ?User $user = null, + public ?UserResponseCommonFields $createdBy = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "user.deactivated" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/UserDeletedEvent.php b/src/GeneratedModels/UserDeletedEvent.php index 04bb0d6..d22cd04 100644 --- a/src/GeneratedModels/UserDeletedEvent.php +++ b/src/GeneratedModels/UserDeletedEvent.php @@ -4,24 +4,22 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property \DateTime $createdAt - * @property bool $deleteConversationChannels - * @property bool $hardDelete - * @property bool $markMessagesDeleted - * @property string $type - * @property User|null $user + * This event is sent when a user gets deleted. The event contains information about the user that was deleted and the deletion options that were used. */ class UserDeletedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?bool $deleteConversationChannels = null, - public ?bool $hardDelete = null, - public ?bool $markMessagesDeleted = null, - public ?string $type = null, - public ?User $user = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "user.deleted" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $deleteMessages = null, // The type of deletion that was used for the user's messages. One of: hard, soft, pruning, (empty string) + public ?string $deleteConversation = null, // The type of deletion that was used for the user's conversations. One of: hard, soft, pruning, (empty string) + public ?string $deleteUser = null, // The type of deletion that was used for the user. One of: hard, soft, pruning, (empty string) + public ?bool $hardDelete = null, // Whether the user was hard deleted + public ?bool $markMessagesDeleted = null, // Whether the user's messages were marked as deleted + public ?bool $deleteConversationChannels = null, // Whether the user's conversation channels were deleted ) { } diff --git a/src/GeneratedModels/UserFeedbackReport.php b/src/GeneratedModels/UserFeedbackReport.php index 66fb91a..5d6f02b 100644 --- a/src/GeneratedModels/UserFeedbackReport.php +++ b/src/GeneratedModels/UserFeedbackReport.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $unreportedCount - * @property array $countByRating - */ class UserFeedbackReport extends BaseModel { public function __construct( - public ?int $unreportedCount = null, public ?array $countByRating = null, + public ?int $unreportedCount = null, ) { } diff --git a/src/GeneratedModels/UserFeedbackReportResponse.php b/src/GeneratedModels/UserFeedbackReportResponse.php index 1e12fdf..d967ed6 100644 --- a/src/GeneratedModels/UserFeedbackReportResponse.php +++ b/src/GeneratedModels/UserFeedbackReportResponse.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array $daily - */ class UserFeedbackReportResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/UserFeedbackResponse.php b/src/GeneratedModels/UserFeedbackResponse.php index 6812e68..a718568 100644 --- a/src/GeneratedModels/UserFeedbackResponse.php +++ b/src/GeneratedModels/UserFeedbackResponse.php @@ -3,30 +3,17 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $cid - * @property int $rating - * @property string $reason - * @property string $sdk - * @property string $sdkVersion - * @property string $sessionID - * @property string $userID - * @property PlatformDataResponse $platform - * @property object|null $custom - */ class UserFeedbackResponse extends BaseModel { public function __construct( + public ?PlatformDataResponse $platform = null, public ?string $cid = null, + public ?string $sessionID = null, + public ?string $userID = null, public ?int $rating = null, public ?string $reason = null, public ?string $sdk = null, public ?string $sdkVersion = null, - public ?string $sessionID = null, - public ?string $userID = null, - public ?PlatformDataResponse $platform = null, public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/UserFlaggedEvent.php b/src/GeneratedModels/UserFlaggedEvent.php index d7edee8..44265f4 100644 --- a/src/GeneratedModels/UserFlaggedEvent.php +++ b/src/GeneratedModels/UserFlaggedEvent.php @@ -4,22 +4,19 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property \DateTime $createdAt - * @property string $type - * @property string|null $targetUser - * @property array|null $targetUsers - * @property User|null $user + * This event is sent when a user gets flagged. The event contains information about the user that was flagged. */ class UserFlaggedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?string $type = null, - public ?string $targetUser = null, - public ?array $targetUsers = null, - public ?User $user = null, + public ?UserResponseCommonFields $targetUser = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "user.flagged" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?string $reason = null, // The reason for the flag + public ?int $totalFlags = null, // The total number of flags for the user + public ?object $custom = null, // Custom data ) { } diff --git a/src/GeneratedModels/UserIdenticalContentCountParameters.php b/src/GeneratedModels/UserIdenticalContentCountParameters.php index c64371b..9620b20 100644 --- a/src/GeneratedModels/UserIdenticalContentCountParameters.php +++ b/src/GeneratedModels/UserIdenticalContentCountParameters.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int|null $threshold - * @property string|null $timeWindow - */ class UserIdenticalContentCountParameters extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/UserMessagesDeletedEvent.php b/src/GeneratedModels/UserMessagesDeletedEvent.php index ee90aa6..b532a83 100644 --- a/src/GeneratedModels/UserMessagesDeletedEvent.php +++ b/src/GeneratedModels/UserMessagesDeletedEvent.php @@ -5,37 +5,23 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a user's message get deleted. The event contains information about the user whose messages got deleted. - * - * @property \DateTime $createdAt - * @property object $custom - * @property UserResponseCommonFields $user - * @property string $type - * @property string|null $channelID - * @property int|null $channelMemberCount - * @property int|null $channelMessageCount - * @property string|null $channelType - * @property string|null $cid - * @property bool|null $hardDelete - * @property \DateTime|null $receivedAt - * @property string|null $team - * @property object|null $channelCustom */ class UserMessagesDeletedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?object $custom = null, public ?UserResponseCommonFields $user = null, public ?string $type = null, // The type of event: "user.messages.deleted" in this case - public ?string $channelID = null, // The ID of the channel where the target user's messages were deleted + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel where the target user's messages were deleted + public ?string $team = null, // The team of the channel where the target user's messages were deleted public ?int $channelMemberCount = null, public ?int $channelMessageCount = null, + public ?object $channelCustom = null, public ?string $channelType = null, // The type of the channel where the target user's messages were deleted - public ?string $cid = null, // The CID of the channel where the target user's messages were deleted + public ?string $channelID = null, // The ID of the channel where the target user's messages were deleted public ?bool $hardDelete = null, // Whether Messages were hard deleted - public ?\DateTime $receivedAt = null, - public ?string $team = null, // The team of the channel where the target user's messages were deleted - public ?object $channelCustom = null, ) { } diff --git a/src/GeneratedModels/UserMuteResponse.php b/src/GeneratedModels/UserMuteResponse.php index d395f48..559b081 100644 --- a/src/GeneratedModels/UserMuteResponse.php +++ b/src/GeneratedModels/UserMuteResponse.php @@ -3,23 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property \DateTime $createdAt - * @property \DateTime $updatedAt - * @property \DateTime|null $expires - * @property UserResponse|null $target - * @property UserResponse|null $user - */ class UserMuteResponse extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?\DateTime $updatedAt = null, - public ?\DateTime $expires = null, public ?UserResponse $target = null, public ?UserResponse $user = null, + public ?\DateTime $expires = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, ) { } diff --git a/src/GeneratedModels/UserMutedEvent.php b/src/GeneratedModels/UserMutedEvent.php index 0d1dbbd..3b63993 100644 --- a/src/GeneratedModels/UserMutedEvent.php +++ b/src/GeneratedModels/UserMutedEvent.php @@ -4,22 +4,20 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property \DateTime $createdAt - * @property string $type - * @property string|null $targetUser - * @property array|null $targetUsers - * @property User|null $user + * This event is sent when a user gets muted. The event contains information about the user that was muted. */ class UserMutedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?string $type = null, - public ?string $targetUser = null, - public ?array $targetUsers = null, - public ?User $user = null, + public ?UserResponseCommonFields $targetUser = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "user.muted" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + /** @var array|null */ + #[ArrayOf(UserResponseCommonFields::class)] + public ?array $targetUsers = null, // The target users that were muted ) { } diff --git a/src/GeneratedModels/UserRatingReportResponse.php b/src/GeneratedModels/UserRatingReportResponse.php index b3dcc49..ddccfb9 100644 --- a/src/GeneratedModels/UserRatingReportResponse.php +++ b/src/GeneratedModels/UserRatingReportResponse.php @@ -3,17 +3,11 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property int $average - * @property int $count - */ class UserRatingReportResponse extends BaseModel { public function __construct( - public ?int $average = null, public ?int $count = null, + public ?int $average = null, ) { } diff --git a/src/GeneratedModels/UserReactivatedEvent.php b/src/GeneratedModels/UserReactivatedEvent.php index d8035f3..e9ca821 100644 --- a/src/GeneratedModels/UserReactivatedEvent.php +++ b/src/GeneratedModels/UserReactivatedEvent.php @@ -4,18 +4,17 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property \DateTime $createdAt - * @property string $type - * @property User|null $user + * This event is sent when a user gets reactivated. The event contains information about the user that was reactivated. */ class UserReactivatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?string $type = null, - public ?User $user = null, + public ?UserResponseCommonFields $createdBy = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "user.reactivated" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/UserRequest.php b/src/GeneratedModels/UserRequest.php index 55d932d..5a86977 100644 --- a/src/GeneratedModels/UserRequest.php +++ b/src/GeneratedModels/UserRequest.php @@ -5,31 +5,20 @@ namespace GetStream\GeneratedModels; /** * User request object - * - * @property string $id - * @property string|null $image - * @property bool|null $invisible - * @property string|null $language - * @property string|null $name - * @property string|null $role - * @property array|null $teams - * @property object|null $custom - * @property PrivacySettingsResponse|null $privacySettings - * @property array|null $teamsRole */ class UserRequest extends BaseModel { public function __construct( + public ?PrivacySettingsResponse $privacySettings = null, public ?string $id = null, // User ID + public ?string $name = null, // Optional name of user public ?string $image = null, // User's profile image URL - public ?bool $invisible = null, + public ?object $custom = null, // Custom user data public ?string $language = null, - public ?string $name = null, // Optional name of user + public ?bool $invisible = null, public ?string $role = null, // User's global role - public ?array $teams = null, // List of teams the user belongs to - public ?object $custom = null, // Custom user data - public ?PrivacySettingsResponse $privacySettings = null, public ?array $teamsRole = null, // Map of team-specific roles for the user + public ?array $teams = null, // List of teams the user belongs to ) { } diff --git a/src/GeneratedModels/UserResponse.php b/src/GeneratedModels/UserResponse.php index 2a7fdab..34d7d39 100644 --- a/src/GeneratedModels/UserResponse.php +++ b/src/GeneratedModels/UserResponse.php @@ -5,61 +5,36 @@ namespace GetStream\GeneratedModels; /** * User response object - * - * @property bool $banned - * @property \DateTime $createdAt - * @property string $id - * @property bool $invisible - * @property string $language - * @property bool $online - * @property string $role - * @property bool $shadowBanned - * @property \DateTime $updatedAt - * @property array $blockedUserIds - * @property array $teams - * @property object $custom - * @property int|null $avgResponseTime - * @property \DateTime|null $banExpires - * @property \DateTime|null $deactivatedAt - * @property \DateTime|null $deletedAt - * @property string|null $image - * @property \DateTime|null $lastActive - * @property string|null $name - * @property \DateTime|null $revokeTokensIssuedBefore - * @property array|null $devices - * @property PrivacySettingsResponse|null $privacySettings - * @property PushNotificationSettingsResponse|null $pushNotifications - * @property array|null $teamsRole */ class UserResponse extends BaseModel { public function __construct( - public ?bool $banned = null, // Whether a user is banned or not - public ?\DateTime $createdAt = null, // Date/time of creation + public ?PrivacySettingsResponse $privacySettings = null, + public ?PushNotificationSettingsResponse $pushNotifications = null, public ?string $id = null, // Unique user identifier - public ?bool $invisible = null, + public ?string $name = null, // Optional name of user + public ?string $image = null, + public ?object $custom = null, // Custom data for this object public ?string $language = null, // Preferred language of a user - public ?bool $online = null, // Whether a user online or not public ?string $role = null, // Determines the set of user permissions - public ?bool $shadowBanned = null, // Whether a user is shadow banned - public ?\DateTime $updatedAt = null, // Date/time of the last update - public ?array $blockedUserIds = null, public ?array $teams = null, // List of teams user is a part of - public ?object $custom = null, // Custom data for this object - public ?int $avgResponseTime = null, - public ?\DateTime $banExpires = null, // Date when ban expires - public ?\DateTime $deactivatedAt = null, // Date of deactivation + public ?array $teamsRole = null, + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $updatedAt = null, // Date/time of the last update public ?\DateTime $deletedAt = null, // Date/time of deletion - public ?string $image = null, + public ?bool $banned = null, // Whether a user is banned or not + public ?bool $online = null, // Whether a user online or not public ?\DateTime $lastActive = null, // Date of last activity - public ?string $name = null, // Optional name of user public ?\DateTime $revokeTokensIssuedBefore = null, // Revocation date for tokens - /** @var array|null List of devices user is using */ + public ?\DateTime $deactivatedAt = null, // Date of deactivation + public ?array $blockedUserIds = null, + public ?int $avgResponseTime = null, + public ?bool $shadowBanned = null, // Whether a user is shadow banned + public ?\DateTime $banExpires = null, // Date when ban expires + /** @var array|null */ #[ArrayOf(DeviceResponse::class)] public ?array $devices = null, // List of devices user is using - public ?PrivacySettingsResponse $privacySettings = null, - public ?PushNotificationSettingsResponse $pushNotifications = null, - public ?array $teamsRole = null, + public ?bool $invisible = null, ) { } diff --git a/src/GeneratedModels/UserResponseCommonFields.php b/src/GeneratedModels/UserResponseCommonFields.php index 97cd675..8c54317 100644 --- a/src/GeneratedModels/UserResponseCommonFields.php +++ b/src/GeneratedModels/UserResponseCommonFields.php @@ -3,49 +3,27 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $banned - * @property \DateTime $createdAt - * @property string $id - * @property string $language - * @property bool $online - * @property string $role - * @property \DateTime $updatedAt - * @property array $blockedUserIds - * @property array $teams - * @property object $custom - * @property int|null $avgResponseTime - * @property \DateTime|null $deactivatedAt - * @property \DateTime|null $deletedAt - * @property string|null $image - * @property \DateTime|null $lastActive - * @property string|null $name - * @property \DateTime|null $revokeTokensIssuedBefore - * @property array|null $teamsRole - */ class UserResponseCommonFields extends BaseModel { public function __construct( - public ?bool $banned = null, - public ?\DateTime $createdAt = null, public ?string $id = null, + public ?string $name = null, + public ?string $image = null, + public ?object $custom = null, public ?string $language = null, - public ?bool $online = null, public ?string $role = null, - public ?\DateTime $updatedAt = null, - public ?array $blockedUserIds = null, public ?array $teams = null, - public ?object $custom = null, - public ?int $avgResponseTime = null, - public ?\DateTime $deactivatedAt = null, + public ?array $teamsRole = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, public ?\DateTime $deletedAt = null, - public ?string $image = null, + public ?bool $banned = null, + public ?bool $online = null, public ?\DateTime $lastActive = null, - public ?string $name = null, public ?\DateTime $revokeTokensIssuedBefore = null, - public ?array $teamsRole = null, + public ?\DateTime $deactivatedAt = null, + public ?array $blockedUserIds = null, + public ?int $avgResponseTime = null, ) { } diff --git a/src/GeneratedModels/UserResponsePrivacyFields.php b/src/GeneratedModels/UserResponsePrivacyFields.php index 6ddbb86..f50564d 100644 --- a/src/GeneratedModels/UserResponsePrivacyFields.php +++ b/src/GeneratedModels/UserResponsePrivacyFields.php @@ -3,53 +3,29 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $banned - * @property \DateTime $createdAt - * @property string $id - * @property string $language - * @property bool $online - * @property string $role - * @property \DateTime $updatedAt - * @property array $blockedUserIds - * @property array $teams - * @property object $custom - * @property int|null $avgResponseTime - * @property \DateTime|null $deactivatedAt - * @property \DateTime|null $deletedAt - * @property string|null $image - * @property bool|null $invisible - * @property \DateTime|null $lastActive - * @property string|null $name - * @property \DateTime|null $revokeTokensIssuedBefore - * @property PrivacySettingsResponse|null $privacySettings - * @property array|null $teamsRole - */ class UserResponsePrivacyFields extends BaseModel { public function __construct( - public ?bool $banned = null, - public ?\DateTime $createdAt = null, + public ?PrivacySettingsResponse $privacySettings = null, public ?string $id = null, + public ?string $name = null, + public ?string $image = null, + public ?object $custom = null, public ?string $language = null, - public ?bool $online = null, public ?string $role = null, - public ?\DateTime $updatedAt = null, - public ?array $blockedUserIds = null, public ?array $teams = null, - public ?object $custom = null, - public ?int $avgResponseTime = null, - public ?\DateTime $deactivatedAt = null, + public ?array $teamsRole = null, + public ?\DateTime $createdAt = null, + public ?\DateTime $updatedAt = null, public ?\DateTime $deletedAt = null, - public ?string $image = null, - public ?bool $invisible = null, + public ?bool $banned = null, + public ?bool $online = null, public ?\DateTime $lastActive = null, - public ?string $name = null, public ?\DateTime $revokeTokensIssuedBefore = null, - public ?PrivacySettingsResponse $privacySettings = null, - public ?array $teamsRole = null, + public ?\DateTime $deactivatedAt = null, + public ?array $blockedUserIds = null, + public ?int $avgResponseTime = null, + public ?bool $invisible = null, ) { } diff --git a/src/GeneratedModels/UserRoleParameters.php b/src/GeneratedModels/UserRoleParameters.php index 793970c..a16f2be 100644 --- a/src/GeneratedModels/UserRoleParameters.php +++ b/src/GeneratedModels/UserRoleParameters.php @@ -3,12 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $operator - * @property string|null $role - */ class UserRoleParameters extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/UserRuleParameters.php b/src/GeneratedModels/UserRuleParameters.php index 38a28ff..c36db0e 100644 --- a/src/GeneratedModels/UserRuleParameters.php +++ b/src/GeneratedModels/UserRuleParameters.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string|null $maxAge - */ class UserRuleParameters extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/UserUnbannedEvent.php b/src/GeneratedModels/UserUnbannedEvent.php index 269d55d..f725f55 100644 --- a/src/GeneratedModels/UserUnbannedEvent.php +++ b/src/GeneratedModels/UserUnbannedEvent.php @@ -4,28 +4,25 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property string $channelID - * @property string $channelType - * @property string $cid - * @property \DateTime $createdAt - * @property bool $shadow - * @property string $type - * @property string|null $team - * @property User|null $user + * This event is sent when a user gets unbanned. The event contains information about the user that was unbanned. */ class UserUnbannedEvent extends BaseModel { public function __construct( - public ?string $channelID = null, - public ?string $channelType = null, - public ?string $cid = null, - public ?\DateTime $createdAt = null, - public ?bool $shadow = null, - public ?string $type = null, - public ?string $team = null, - public ?User $user = null, + public ?UserResponseCommonFields $createdBy = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "user.unbanned" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + public ?string $cid = null, // The CID of the channel where the target user was unbanned + public ?string $team = null, // The team of the channel where the target user was unbanned + public ?int $channelMemberCount = null, + public ?int $channelMessageCount = null, + public ?object $channelCustom = null, + public ?string $channelType = null, // The type of the channel where the target user was unbanned + public ?string $channelID = null, // The ID of the channel where the target user was unbanned + public ?bool $shadow = null, // Whether the target user was shadow unbanned ) { } diff --git a/src/GeneratedModels/UserUnmutedEvent.php b/src/GeneratedModels/UserUnmutedEvent.php index 82c8133..1188415 100644 --- a/src/GeneratedModels/UserUnmutedEvent.php +++ b/src/GeneratedModels/UserUnmutedEvent.php @@ -4,22 +4,20 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property \DateTime $createdAt - * @property string $type - * @property string|null $targetUser - * @property array|null $targetUsers - * @property User|null $user + * This event is sent when a user gets unmuted. The event contains information about the user that was unmuted. */ class UserUnmutedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?string $type = null, - public ?string $targetUser = null, - public ?array $targetUsers = null, - public ?User $user = null, + public ?UserResponseCommonFields $targetUser = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "user.unmuted" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + /** @var array|null */ + #[ArrayOf(UserResponseCommonFields::class)] + public ?array $targetUsers = null, // The target users that were unmuted ) { } diff --git a/src/GeneratedModels/UserUnreadReminderEvent.php b/src/GeneratedModels/UserUnreadReminderEvent.php index 9071368..1c559bd 100644 --- a/src/GeneratedModels/UserUnreadReminderEvent.php +++ b/src/GeneratedModels/UserUnreadReminderEvent.php @@ -4,20 +4,19 @@ namespace GetStream\GeneratedModels; /** - * - * - * @property \DateTime $createdAt - * @property array $channels - * @property string $type - * @property User|null $user + * Reminder events allow you to notify your users about unread messages. Reminders can be used to trigger an email, push notification or SMS to the user. */ class UserUnreadReminderEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, - public ?array $channels = null, - public ?string $type = null, - public ?User $user = null, + public ?UserResponseCommonFields $user = null, + public ?string $type = null, // The type of event: "user.unread_message_reminder" in this case + public ?\DateTime $createdAt = null, // Date/time of creation + public ?\DateTime $receivedAt = null, + public ?object $custom = null, + /** @var array|null */ + #[MapOf(ChannelMessagesResponse::class)] + public ?array $channels = null, // The channels with unread messages ) { } diff --git a/src/GeneratedModels/UserUpdatedEvent.php b/src/GeneratedModels/UserUpdatedEvent.php index 87fb0e2..253847e 100644 --- a/src/GeneratedModels/UserUpdatedEvent.php +++ b/src/GeneratedModels/UserUpdatedEvent.php @@ -5,21 +5,15 @@ namespace GetStream\GeneratedModels; /** * This event is sent when a user gets updated. The event contains information about the updated user. - * - * @property \DateTime $createdAt - * @property object $custom - * @property UserResponsePrivacyFields $user - * @property string $type - * @property \DateTime|null $receivedAt */ class UserUpdatedEvent extends BaseModel { public function __construct( - public ?\DateTime $createdAt = null, // Date/time of creation - public ?object $custom = null, public ?UserResponsePrivacyFields $user = null, public ?string $type = null, // The type of event: "user.updated" in this case + public ?\DateTime $createdAt = null, // Date/time of creation public ?\DateTime $receivedAt = null, + public ?object $custom = null, ) { } diff --git a/src/GeneratedModels/VelocityFilterConfig.php b/src/GeneratedModels/VelocityFilterConfig.php index 59d3fc7..c2074fd 100644 --- a/src/GeneratedModels/VelocityFilterConfig.php +++ b/src/GeneratedModels/VelocityFilterConfig.php @@ -3,29 +3,18 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $advancedFilters - * @property bool|null $async - * @property bool|null $cascadingActions - * @property int|null $cidsPerUser - * @property bool|null $enabled - * @property bool|null $firstMessageOnly - * @property array|null $rules - */ class VelocityFilterConfig extends BaseModel { public function __construct( - public ?bool $advancedFilters = null, public ?bool $async = null, - public ?bool $cascadingActions = null, - public ?int $cidsPerUser = null, public ?bool $enabled = null, - public ?bool $firstMessageOnly = null, /** @var array|null */ #[ArrayOf(VelocityFilterConfigRule::class)] public ?array $rules = null, + public ?bool $cascadingActions = null, + public ?bool $firstMessageOnly = null, + public ?int $cidsPerUser = null, + public ?bool $advancedFilters = null, ) { } diff --git a/src/GeneratedModels/VelocityFilterConfigRule.php b/src/GeneratedModels/VelocityFilterConfigRule.php index f98a4ab..efafcb3 100644 --- a/src/GeneratedModels/VelocityFilterConfigRule.php +++ b/src/GeneratedModels/VelocityFilterConfigRule.php @@ -3,41 +3,23 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property string $action - * @property int|null $banDuration - * @property string|null $cascadingAction - * @property int|null $cascadingThreshold - * @property bool|null $checkMessageContext - * @property int|null $fastSpamThreshold - * @property int|null $fastSpamTtl - * @property bool|null $ipBan - * @property int|null $probationPeriod - * @property bool|null $shadowBan - * @property int|null $slowSpamBanDuration - * @property int|null $slowSpamThreshold - * @property int|null $slowSpamTtl - * @property bool|null $urlOnly - */ class VelocityFilterConfigRule extends BaseModel { public function __construct( public ?string $action = null, public ?int $banDuration = null, - public ?string $cascadingAction = null, + public ?bool $shadowBan = null, + public ?bool $ipBan = null, public ?int $cascadingThreshold = null, - public ?bool $checkMessageContext = null, + public ?string $cascadingAction = null, public ?int $fastSpamThreshold = null, - public ?int $fastSpamTtl = null, - public ?bool $ipBan = null, - public ?int $probationPeriod = null, - public ?bool $shadowBan = null, - public ?int $slowSpamBanDuration = null, public ?int $slowSpamThreshold = null, + public ?bool $checkMessageContext = null, + public ?int $fastSpamTtl = null, public ?int $slowSpamTtl = null, + public ?int $slowSpamBanDuration = null, public ?bool $urlOnly = null, + public ?int $probationPeriod = null, ) { } diff --git a/src/GeneratedModels/VideoCallRuleConfig.php b/src/GeneratedModels/VideoCallRuleConfig.php index 080c50f..a6a3688 100644 --- a/src/GeneratedModels/VideoCallRuleConfig.php +++ b/src/GeneratedModels/VideoCallRuleConfig.php @@ -3,21 +3,14 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $flagAllLabels - * @property array|null $flaggedLabels - * @property array|null $rules - */ class VideoCallRuleConfig extends BaseModel { public function __construct( - public ?bool $flagAllLabels = null, - public ?array $flaggedLabels = null, /** @var array|null */ #[ArrayOf(HarmConfig::class)] public ?array $rules = null, + public ?bool $flagAllLabels = null, + public ?array $flaggedLabels = null, ) { } diff --git a/src/GeneratedModels/VideoContentParameters.php b/src/GeneratedModels/VideoContentParameters.php index 7c9a6b2..130d638 100644 --- a/src/GeneratedModels/VideoContentParameters.php +++ b/src/GeneratedModels/VideoContentParameters.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property array|null $harmLabels - */ class VideoContentParameters extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/VideoEndCallRequestPayload.php b/src/GeneratedModels/VideoEndCallRequestPayload.php new file mode 100644 index 0000000..47c150a --- /dev/null +++ b/src/GeneratedModels/VideoEndCallRequestPayload.php @@ -0,0 +1,17 @@ +|null $byMinute - */ class VideoReactionOverTimeResponse extends BaseModel { public function __construct( diff --git a/src/GeneratedModels/VideoReactionResponse.php b/src/GeneratedModels/VideoReactionResponse.php new file mode 100644 index 0000000..928b615 --- /dev/null +++ b/src/GeneratedModels/VideoReactionResponse.php @@ -0,0 +1,18 @@ + $channelType - * @property array $channels - * @property array $threads - * @property array|null $totalUnreadCountByTeam */ class WrappedUnreadCountsResponse extends BaseModel { public function __construct( - public ?string $duration = null, // Duration of the request in milliseconds public ?int $totalUnreadCount = null, public ?int $totalUnreadThreadsCount = null, - /** @var array|null */ - #[ArrayOf(UnreadCountsChannelType::class)] - public ?array $channelType = null, + public ?array $totalUnreadCountByTeam = null, /** @var array|null */ #[ArrayOf(UnreadCountsChannel::class)] public ?array $channels = null, + /** @var array|null */ + #[ArrayOf(UnreadCountsChannelType::class)] + public ?array $channelType = null, /** @var array|null */ #[ArrayOf(UnreadCountsThread::class)] public ?array $threads = null, - public ?array $totalUnreadCountByTeam = null, + public ?string $duration = null, // Duration of the request in milliseconds ) { } diff --git a/src/GeneratedModels/XiaomiConfig.php b/src/GeneratedModels/XiaomiConfig.php index 310f854..ac80413 100644 --- a/src/GeneratedModels/XiaomiConfig.php +++ b/src/GeneratedModels/XiaomiConfig.php @@ -3,19 +3,12 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool|null $disabled - * @property string|null $packageName - * @property string|null $secret - */ class XiaomiConfig extends BaseModel { public function __construct( - public ?bool $disabled = null, public ?string $packageName = null, public ?string $secret = null, + public ?bool $disabled = null, ) { } diff --git a/src/GeneratedModels/XiaomiConfigFields.php b/src/GeneratedModels/XiaomiConfigFields.php index 4bd97ff..644e9b8 100644 --- a/src/GeneratedModels/XiaomiConfigFields.php +++ b/src/GeneratedModels/XiaomiConfigFields.php @@ -3,13 +3,6 @@ declare(strict_types=1); namespace GetStream\GeneratedModels; -/** - * - * - * @property bool $enabled - * @property string|null $packageName - * @property string|null $secret - */ class XiaomiConfigFields extends BaseModel { public function __construct( diff --git a/tests/WebhookTest.php b/tests/WebhookTest.php new file mode 100644 index 0000000..8e08f22 --- /dev/null +++ b/tests/WebhookTest.php @@ -0,0 +1,271 @@ +computeSignature($this->body, $this->secret); + $this->assertTrue(Webhook::verifySignature($this->body, $signature, $this->secret)); + } + + public function testVerifySignatureWrongSignature(): void + { + $this->assertFalse(Webhook::verifySignature($this->body, 'invalidsignature', $this->secret)); + } + + public function testVerifySignatureTamperedBody(): void + { + $signature = $this->computeSignature($this->body, $this->secret); + $this->assertFalse(Webhook::verifySignature('{"type":"tampered"}', $signature, $this->secret)); + } + + public function testVerifySignatureWrongSecret(): void + { + $signature = $this->computeSignature($this->body, $this->secret); + $this->assertFalse(Webhook::verifySignature($this->body, $signature, 'wrong-secret')); + } + + public function testVerifySignatureEmptySignature(): void + { + $this->assertFalse(Webhook::verifySignature($this->body, '', $this->secret)); + } + + public function testGetEventTypeValid(): void + { + $this->assertEquals('message.new', Webhook::getEventType('{"type":"message.new"}')); + } + + public function testGetEventTypeFromArray(): void + { + $this->assertEquals('message.new', Webhook::getEventType(['type' => 'message.new'])); + } + + public function testGetEventTypeMissingField(): void + { + $this->assertNull(Webhook::getEventType('{"foo":"bar"}')); + } + + public function testGetEventTypeInvalidJson(): void + { + $this->expectException(\InvalidArgumentException::class); + Webhook::getEventType('not json'); + } + + public function testGetEventTypeEmptyObject(): void + { + $this->assertNull(Webhook::getEventType('{}')); + } + + /** + * @dataProvider webhookEventProvider + */ + public function testParseWebhookEvent(string $eventType, string $expectedClassName): void + { + $payload = '{"type":"' . $eventType . '"}'; + $event = Webhook::parseWebhookEvent($payload); + $this->assertNotNull($event); + $parts = explode('\\', get_class($event)); + $this->assertEquals($expectedClassName, end($parts)); + } + + public static function webhookEventProvider(): array + { + return [ + '*' => ['*', 'CustomEvent'], + 'appeal.accepted' => ['appeal.accepted', 'AppealAcceptedEvent'], + 'appeal.created' => ['appeal.created', 'AppealCreatedEvent'], + 'appeal.rejected' => ['appeal.rejected', 'AppealRejectedEvent'], + 'call.accepted' => ['call.accepted', 'CallAcceptedEvent'], + 'call.blocked_user' => ['call.blocked_user', 'BlockedUserEvent'], + 'call.closed_caption' => ['call.closed_caption', 'ClosedCaptionEvent'], + 'call.closed_captions_failed' => ['call.closed_captions_failed', 'CallClosedCaptionsFailedEvent'], + 'call.closed_captions_started' => ['call.closed_captions_started', 'CallClosedCaptionsStartedEvent'], + 'call.closed_captions_stopped' => ['call.closed_captions_stopped', 'CallClosedCaptionsStoppedEvent'], + 'call.created' => ['call.created', 'CallCreatedEvent'], + 'call.deleted' => ['call.deleted', 'CallDeletedEvent'], + 'call.dtmf' => ['call.dtmf', 'CallDTMFEvent'], + 'call.ended' => ['call.ended', 'CallEndedEvent'], + 'call.frame_recording_failed' => ['call.frame_recording_failed', 'CallFrameRecordingFailedEvent'], + 'call.frame_recording_ready' => ['call.frame_recording_ready', 'CallFrameRecordingFrameReadyEvent'], + 'call.frame_recording_started' => ['call.frame_recording_started', 'CallFrameRecordingStartedEvent'], + 'call.frame_recording_stopped' => ['call.frame_recording_stopped', 'CallFrameRecordingStoppedEvent'], + 'call.hls_broadcasting_failed' => ['call.hls_broadcasting_failed', 'CallHLSBroadcastingFailedEvent'], + 'call.hls_broadcasting_started' => ['call.hls_broadcasting_started', 'CallHLSBroadcastingStartedEvent'], + 'call.hls_broadcasting_stopped' => ['call.hls_broadcasting_stopped', 'CallHLSBroadcastingStoppedEvent'], + 'call.kicked_user' => ['call.kicked_user', 'KickedUserEvent'], + 'call.live_started' => ['call.live_started', 'CallLiveStartedEvent'], + 'call.member_added' => ['call.member_added', 'CallMemberAddedEvent'], + 'call.member_removed' => ['call.member_removed', 'CallMemberRemovedEvent'], + 'call.member_updated' => ['call.member_updated', 'CallMemberUpdatedEvent'], + 'call.member_updated_permission' => ['call.member_updated_permission', 'CallMemberUpdatedPermissionEvent'], + 'call.missed' => ['call.missed', 'CallMissedEvent'], + 'call.moderation_blur' => ['call.moderation_blur', 'CallModerationBlurEvent'], + 'call.moderation_warning' => ['call.moderation_warning', 'CallModerationWarningEvent'], + 'call.notification' => ['call.notification', 'CallNotificationEvent'], + 'call.permission_request' => ['call.permission_request', 'PermissionRequestEvent'], + 'call.permissions_updated' => ['call.permissions_updated', 'UpdatedCallPermissionsEvent'], + 'call.reaction_new' => ['call.reaction_new', 'CallReactionEvent'], + 'call.recording_failed' => ['call.recording_failed', 'CallRecordingFailedEvent'], + 'call.recording_ready' => ['call.recording_ready', 'CallRecordingReadyEvent'], + 'call.recording_started' => ['call.recording_started', 'CallRecordingStartedEvent'], + 'call.recording_stopped' => ['call.recording_stopped', 'CallRecordingStoppedEvent'], + 'call.rejected' => ['call.rejected', 'CallRejectedEvent'], + 'call.ring' => ['call.ring', 'CallRingEvent'], + 'call.rtmp_broadcast_failed' => ['call.rtmp_broadcast_failed', 'CallRtmpBroadcastFailedEvent'], + 'call.rtmp_broadcast_started' => ['call.rtmp_broadcast_started', 'CallRtmpBroadcastStartedEvent'], + 'call.rtmp_broadcast_stopped' => ['call.rtmp_broadcast_stopped', 'CallRtmpBroadcastStoppedEvent'], + 'call.session_ended' => ['call.session_ended', 'CallSessionEndedEvent'], + 'call.session_participant_count_updated' => ['call.session_participant_count_updated', 'CallSessionParticipantCountsUpdatedEvent'], + 'call.session_participant_joined' => ['call.session_participant_joined', 'CallSessionParticipantJoinedEvent'], + 'call.session_participant_left' => ['call.session_participant_left', 'CallSessionParticipantLeftEvent'], + 'call.session_started' => ['call.session_started', 'CallSessionStartedEvent'], + 'call.stats_report_ready' => ['call.stats_report_ready', 'CallStatsReportReadyEvent'], + 'call.transcription_failed' => ['call.transcription_failed', 'CallTranscriptionFailedEvent'], + 'call.transcription_ready' => ['call.transcription_ready', 'CallTranscriptionReadyEvent'], + 'call.transcription_started' => ['call.transcription_started', 'CallTranscriptionStartedEvent'], + 'call.transcription_stopped' => ['call.transcription_stopped', 'CallTranscriptionStoppedEvent'], + 'call.unblocked_user' => ['call.unblocked_user', 'UnblockedUserEvent'], + 'call.updated' => ['call.updated', 'CallUpdatedEvent'], + 'call.user_feedback_submitted' => ['call.user_feedback_submitted', 'CallUserFeedbackSubmittedEvent'], + 'call.user_muted' => ['call.user_muted', 'CallUserMutedEvent'], + 'campaign.completed' => ['campaign.completed', 'CampaignCompletedEvent'], + 'campaign.started' => ['campaign.started', 'CampaignStartedEvent'], + 'channel.created' => ['channel.created', 'ChannelCreatedEvent'], + 'channel.deleted' => ['channel.deleted', 'ChannelDeletedEvent'], + 'channel.frozen' => ['channel.frozen', 'ChannelFrozenEvent'], + 'channel.hidden' => ['channel.hidden', 'ChannelHiddenEvent'], + 'channel.max_streak_changed' => ['channel.max_streak_changed', 'MaxStreakChangedEvent'], + 'channel.muted' => ['channel.muted', 'ChannelMutedEvent'], + 'channel.truncated' => ['channel.truncated', 'ChannelTruncatedEvent'], + 'channel.unfrozen' => ['channel.unfrozen', 'ChannelUnFrozenEvent'], + 'channel.unmuted' => ['channel.unmuted', 'ChannelUnmutedEvent'], + 'channel.updated' => ['channel.updated', 'ChannelUpdatedEvent'], + 'channel.visible' => ['channel.visible', 'ChannelVisibleEvent'], + 'channel_batch_update.completed' => ['channel_batch_update.completed', 'ChannelBatchCompletedEvent'], + 'channel_batch_update.started' => ['channel_batch_update.started', 'ChannelBatchStartedEvent'], + 'custom' => ['custom', 'CustomVideoEvent'], + 'export.bulk_image_moderation.error' => ['export.bulk_image_moderation.error', 'AsyncExportErrorEvent'], + 'export.bulk_image_moderation.success' => ['export.bulk_image_moderation.success', 'AsyncBulkImageModerationEvent'], + 'export.channels.error' => ['export.channels.error', 'AsyncExportErrorEvent'], + 'export.channels.success' => ['export.channels.success', 'AsyncExportChannelsEvent'], + 'export.moderation_logs.error' => ['export.moderation_logs.error', 'AsyncExportErrorEvent'], + 'export.moderation_logs.success' => ['export.moderation_logs.success', 'AsyncExportModerationLogsEvent'], + 'export.users.error' => ['export.users.error', 'AsyncExportErrorEvent'], + 'export.users.success' => ['export.users.success', 'AsyncExportUsersEvent'], + 'feeds.activity.added' => ['feeds.activity.added', 'ActivityAddedEvent'], + 'feeds.activity.deleted' => ['feeds.activity.deleted', 'ActivityDeletedEvent'], + 'feeds.activity.feedback' => ['feeds.activity.feedback', 'ActivityFeedbackEvent'], + 'feeds.activity.marked' => ['feeds.activity.marked', 'ActivityMarkEvent'], + 'feeds.activity.pinned' => ['feeds.activity.pinned', 'ActivityPinnedEvent'], + 'feeds.activity.reaction.added' => ['feeds.activity.reaction.added', 'ActivityReactionAddedEvent'], + 'feeds.activity.reaction.deleted' => ['feeds.activity.reaction.deleted', 'ActivityReactionDeletedEvent'], + 'feeds.activity.reaction.updated' => ['feeds.activity.reaction.updated', 'ActivityReactionUpdatedEvent'], + 'feeds.activity.removed_from_feed' => ['feeds.activity.removed_from_feed', 'ActivityRemovedFromFeedEvent'], + 'feeds.activity.restored' => ['feeds.activity.restored', 'ActivityRestoredEvent'], + 'feeds.activity.unpinned' => ['feeds.activity.unpinned', 'ActivityUnpinnedEvent'], + 'feeds.activity.updated' => ['feeds.activity.updated', 'ActivityUpdatedEvent'], + 'feeds.bookmark.added' => ['feeds.bookmark.added', 'BookmarkAddedEvent'], + 'feeds.bookmark.deleted' => ['feeds.bookmark.deleted', 'BookmarkDeletedEvent'], + 'feeds.bookmark.updated' => ['feeds.bookmark.updated', 'BookmarkUpdatedEvent'], + 'feeds.bookmark_folder.deleted' => ['feeds.bookmark_folder.deleted', 'BookmarkFolderDeletedEvent'], + 'feeds.bookmark_folder.updated' => ['feeds.bookmark_folder.updated', 'BookmarkFolderUpdatedEvent'], + 'feeds.comment.added' => ['feeds.comment.added', 'CommentAddedEvent'], + 'feeds.comment.deleted' => ['feeds.comment.deleted', 'CommentDeletedEvent'], + 'feeds.comment.reaction.added' => ['feeds.comment.reaction.added', 'CommentReactionAddedEvent'], + 'feeds.comment.reaction.deleted' => ['feeds.comment.reaction.deleted', 'CommentReactionDeletedEvent'], + 'feeds.comment.reaction.updated' => ['feeds.comment.reaction.updated', 'CommentReactionUpdatedEvent'], + 'feeds.comment.updated' => ['feeds.comment.updated', 'CommentUpdatedEvent'], + 'feeds.feed.created' => ['feeds.feed.created', 'FeedCreatedEvent'], + 'feeds.feed.deleted' => ['feeds.feed.deleted', 'FeedDeletedEvent'], + 'feeds.feed.updated' => ['feeds.feed.updated', 'FeedUpdatedEvent'], + 'feeds.feed_group.changed' => ['feeds.feed_group.changed', 'FeedGroupChangedEvent'], + 'feeds.feed_group.deleted' => ['feeds.feed_group.deleted', 'FeedGroupDeletedEvent'], + 'feeds.feed_member.added' => ['feeds.feed_member.added', 'FeedMemberAddedEvent'], + 'feeds.feed_member.removed' => ['feeds.feed_member.removed', 'FeedMemberRemovedEvent'], + 'feeds.feed_member.updated' => ['feeds.feed_member.updated', 'FeedMemberUpdatedEvent'], + 'feeds.follow.created' => ['feeds.follow.created', 'FollowCreatedEvent'], + 'feeds.follow.deleted' => ['feeds.follow.deleted', 'FollowDeletedEvent'], + 'feeds.follow.updated' => ['feeds.follow.updated', 'FollowUpdatedEvent'], + 'feeds.notification_feed.updated' => ['feeds.notification_feed.updated', 'NotificationFeedUpdatedEvent'], + 'feeds.stories_feed.updated' => ['feeds.stories_feed.updated', 'StoriesFeedUpdatedEvent'], + 'flag.updated' => ['flag.updated', 'FlagUpdatedEvent'], + 'ingress.error' => ['ingress.error', 'IngressErrorEvent'], + 'ingress.started' => ['ingress.started', 'IngressStartedEvent'], + 'ingress.stopped' => ['ingress.stopped', 'IngressStoppedEvent'], + 'member.added' => ['member.added', 'MemberAddedEvent'], + 'member.removed' => ['member.removed', 'MemberRemovedEvent'], + 'member.updated' => ['member.updated', 'MemberUpdatedEvent'], + 'message.deleted' => ['message.deleted', 'MessageDeletedEvent'], + 'message.flagged' => ['message.flagged', 'MessageFlaggedEvent'], + 'message.new' => ['message.new', 'MessageNewEvent'], + 'message.pending' => ['message.pending', 'PendingMessageEvent'], + 'message.read' => ['message.read', 'MessageReadEvent'], + 'message.unblocked' => ['message.unblocked', 'MessageUnblockedEvent'], + 'message.undeleted' => ['message.undeleted', 'MessageUndeletedEvent'], + 'message.updated' => ['message.updated', 'MessageUpdatedEvent'], + 'moderation.custom_action' => ['moderation.custom_action', 'ModerationCustomActionEvent'], + 'moderation.flagged' => ['moderation.flagged', 'ModerationFlaggedEvent'], + 'moderation.mark_reviewed' => ['moderation.mark_reviewed', 'ModerationMarkReviewedEvent'], + 'moderation_check.completed' => ['moderation_check.completed', 'ModerationCheckCompletedEvent'], + 'moderation_rule.triggered' => ['moderation_rule.triggered', 'ModerationRulesTriggeredEvent'], + 'notification.mark_unread' => ['notification.mark_unread', 'NotificationMarkUnreadEvent'], + 'notification.reminder_due' => ['notification.reminder_due', 'ReminderNotificationEvent'], + 'notification.thread_message_new' => ['notification.thread_message_new', 'NotificationThreadMessageNewEvent'], + 'reaction.deleted' => ['reaction.deleted', 'ReactionDeletedEvent'], + 'reaction.new' => ['reaction.new', 'ReactionNewEvent'], + 'reaction.updated' => ['reaction.updated', 'ReactionUpdatedEvent'], + 'reminder.created' => ['reminder.created', 'ReminderCreatedEvent'], + 'reminder.deleted' => ['reminder.deleted', 'ReminderDeletedEvent'], + 'reminder.updated' => ['reminder.updated', 'ReminderUpdatedEvent'], + 'review_queue_item.new' => ['review_queue_item.new', 'ReviewQueueItemNewEvent'], + 'review_queue_item.updated' => ['review_queue_item.updated', 'ReviewQueueItemUpdatedEvent'], + 'thread.updated' => ['thread.updated', 'ThreadUpdatedEvent'], + 'user.banned' => ['user.banned', 'UserBannedEvent'], + 'user.deactivated' => ['user.deactivated', 'UserDeactivatedEvent'], + 'user.deleted' => ['user.deleted', 'UserDeletedEvent'], + 'user.flagged' => ['user.flagged', 'UserFlaggedEvent'], + 'user.messages.deleted' => ['user.messages.deleted', 'UserMessagesDeletedEvent'], + 'user.muted' => ['user.muted', 'UserMutedEvent'], + 'user.reactivated' => ['user.reactivated', 'UserReactivatedEvent'], + 'user.unbanned' => ['user.unbanned', 'UserUnbannedEvent'], + 'user.unmuted' => ['user.unmuted', 'UserUnmutedEvent'], + 'user.unread_message_reminder' => ['user.unread_message_reminder', 'UserUnreadReminderEvent'], + 'user.updated' => ['user.updated', 'UserUpdatedEvent'], + ]; + } + + public function testParseWebhookEventUnknownType(): void + { + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage('Unknown webhook event type'); + Webhook::parseWebhookEvent('{"type":"unknown.event"}'); + } + + public function testParseWebhookEventMissingType(): void + { + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage("missing 'type' field"); + Webhook::parseWebhookEvent('{"foo":"bar"}'); + } + + public function testParseWebhookEventInvalidJson(): void + { + $this->expectException(\InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid JSON'); + Webhook::parseWebhookEvent('not json'); + } +}