diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index bf48385..8867a4a 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 4286f3ad-fa54-4c63-a599-e5773b27ae7b management: - docChecksum: d1632819398aa0f78d5e472d361f69ef + docChecksum: a4242f993b10b703f4f3e5eb570c8398 docVersion: "1.0" - speakeasyVersion: 1.483.0 - generationVersion: 2.502.0 - releaseVersion: 0.0.9 - configChecksum: 22b02057f95fab96c064d85d41d48c9f + speakeasyVersion: 1.484.1 + generationVersion: 2.503.2 + releaseVersion: 0.0.10 + configChecksum: 39ceac7298bfcb02e6a11cabe8c5a95f repoURL: https://github.com/novuhq/php-novu.git installationURL: https://github.com/novuhq/php-novu published: true @@ -18,7 +18,7 @@ features: examples: 2.81.5 flattening: 2.81.1 globalSecurity: 2.81.7 - globalSecurityFlattening: 0.1.1 + globalSecurityFlattening: 0.1.2 globalServerURLs: 2.82.1 groups: 2.81.2 methodArguments: 0.1.0 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 7de1b3c..f09519e 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true php: - version: 0.0.9 + version: 0.0.10 additionalDependencies: autoload: {} autoload-dev: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 1c63843..7324870 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.483.0 +speakeasyVersion: 1.484.1 sources: novu-OAS: sourceNamespace: novu-oas - sourceRevisionDigest: sha256:9ba8150c482bf407b7ee8c72d6aa6e18eb7f0102099784081fd1b60738a60aaa - sourceBlobDigest: sha256:94dc96203886bdb1449550da72edec8a90de8bb2bb1f382ce2e43078cb14c371 + sourceRevisionDigest: sha256:2b78c81442796b4ed8956f50645319b3ff08d23207e6f0eb7c61f7259eaf4b7f + sourceBlobDigest: sha256:f6d6bbf4d990b215b5676ab879d3a2dd445686ee2f65f2cffeffd119f4cdde74 tags: - latest - - speakeasy-sdk-regen-1738671594 + - speakeasy-sdk-regen-1738714375 - "1.0" targets: novu: source: novu-OAS sourceNamespace: novu-oas - sourceRevisionDigest: sha256:9ba8150c482bf407b7ee8c72d6aa6e18eb7f0102099784081fd1b60738a60aaa - sourceBlobDigest: sha256:94dc96203886bdb1449550da72edec8a90de8bb2bb1f382ce2e43078cb14c371 + sourceRevisionDigest: sha256:2b78c81442796b4ed8956f50645319b3ff08d23207e6f0eb7c61f7259eaf4b7f + sourceBlobDigest: sha256:f6d6bbf4d990b215b5676ab879d3a2dd445686ee2f65f2cffeffd119f4cdde74 codeSamplesNamespace: novu-oas-php-code-samples - codeSamplesRevisionDigest: sha256:38cb09195dbcd72473e7020e985989793d0d55ad35e2ec49cd017ce52cb54a5f + codeSamplesRevisionDigest: sha256:dfd706acb58b30636dbf75bf0cd650ca326759d2cd5cac4fbfb2e09772034a13 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest @@ -39,5 +39,5 @@ workflow: registry: location: registry.speakeasyapi.dev/novu/novu/novu-oas-php-code-samples labelOverride: - fixedValue: Php (SDK) + fixedValue: PHP blocking: false diff --git a/README.md b/README.md index b287438..d0d4e61 100644 --- a/README.md +++ b/README.md @@ -345,7 +345,7 @@ if ($response->triggerEventResponseDto !== null) { #### [subscribers->preferences](docs/sdks/preferences/README.md) -* [getByLevel](docs/sdks/preferences/README.md#getbylevel) - Get subscriber preferences by level +* [~~getByLevel~~](docs/sdks/preferences/README.md#getbylevel) - Get subscriber preferences by level :warning: **Deprecated** * [update](docs/sdks/preferences/README.md#update) - Update subscriber preference ### [subscribersAuthentication](docs/sdks/subscribersauthentication/README.md) @@ -368,7 +368,7 @@ if ($response->triggerEventResponseDto !== null) { ### [subscribersPreferences](docs/sdks/subscriberspreferences/README.md) * [retrieve](docs/sdks/subscriberspreferences/README.md#retrieve) - Get subscriber preferences -* [list](docs/sdks/subscriberspreferences/README.md#list) - Get subscriber preferences +* [~~listLegacy~~](docs/sdks/subscriberspreferences/README.md#listlegacy) - Get subscriber preferences :warning: **Deprecated** * [updateGlobal](docs/sdks/subscriberspreferences/README.md#updateglobal) - Update subscriber global preferences ### [topics](docs/sdks/topics/README.md) diff --git a/RELEASES.md b/RELEASES.md index e763df5..0ebe47a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -8,4 +8,14 @@ Based on: ### Generated - [php v0.0.9] . ### Releases -- [Composer v0.0.9] https://packagist.org/packages/novuhq/novu#v0.0.9 - . \ No newline at end of file +- [Composer v0.0.9] https://packagist.org/packages/novuhq/novu#v0.0.9 - . + +## 2025-02-06 00:12:36 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.484.1 (2.503.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.0.10] . +### Releases +- [Composer v0.0.10] https://packagist.org/packages/novuhq/novu#v0.0.10 - . \ No newline at end of file diff --git a/docs/sdks/preferences/README.md b/docs/sdks/preferences/README.md index 537a9c1..c214174 100644 --- a/docs/sdks/preferences/README.md +++ b/docs/sdks/preferences/README.md @@ -5,13 +5,15 @@ ### Available Operations -* [getByLevel](#getbylevel) - Get subscriber preferences by level +* [~~getByLevel~~](#getbylevel) - Get subscriber preferences by level :warning: **Deprecated** * [update](#update) - Update subscriber preference -## getByLevel +## ~~getByLevel~~ Get subscriber preferences by level +> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. + ### Example Usage ```php diff --git a/docs/sdks/subscriberspreferences/README.md b/docs/sdks/subscriberspreferences/README.md index 9267317..2566cde 100644 --- a/docs/sdks/subscriberspreferences/README.md +++ b/docs/sdks/subscriberspreferences/README.md @@ -6,7 +6,7 @@ ### Available Operations * [retrieve](#retrieve) - Get subscriber preferences -* [list](#list) - Get subscriber preferences +* [~~listLegacy~~](#listlegacy) - Get subscriber preferences :warning: **Deprecated** * [updateGlobal](#updateglobal) - Update subscriber global preferences ## retrieve @@ -62,10 +62,12 @@ if ($response->getSubscriberPreferencesDto !== null) { | Errors\ErrorDto | 500 | application/json | | Errors\APIException | 4XX, 5XX | \*/\* | -## list +## ~~listLegacy~~ Get subscriber preferences +> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. + ### Example Usage ```php @@ -83,7 +85,7 @@ $sdk = novu\Novu::builder() -$response = $sdk->subscribersPreferences->list( +$response = $sdk->subscribersPreferences->listLegacy( subscriberId: '', includeInactiveChannels: false, idempotencyKey: '' diff --git a/src/Models/Components/ActivitiesResponseDto.php b/src/Models/Components/ActivitiesResponseDto.php index 837b057..71fc295 100644 --- a/src/Models/Components/ActivitiesResponseDto.php +++ b/src/Models/Components/ActivitiesResponseDto.php @@ -49,6 +49,7 @@ class ActivitiesResponseDto * @param array $data * @param float $pageSize * @param float $page + * @phpstan-pure */ public function __construct(bool $hasMore, array $data, float $pageSize, float $page) { diff --git a/src/Models/Components/ActivityGraphStatesResponse.php b/src/Models/Components/ActivityGraphStatesResponse.php index 9201901..ebaad15 100644 --- a/src/Models/Components/ActivityGraphStatesResponse.php +++ b/src/Models/Components/ActivityGraphStatesResponse.php @@ -48,6 +48,7 @@ class ActivityGraphStatesResponse * @param float $count * @param array $templates * @param array $channels + * @phpstan-pure */ public function __construct(string $id, float $count, array $templates, array $channels) { diff --git a/src/Models/Components/ActivityNotificationExecutionDetailResponseDto.php b/src/Models/Components/ActivityNotificationExecutionDetailResponseDto.php index 96b141b..b5970e7 100644 --- a/src/Models/Components/ActivityNotificationExecutionDetailResponseDto.php +++ b/src/Models/Components/ActivityNotificationExecutionDetailResponseDto.php @@ -98,6 +98,7 @@ class ActivityNotificationExecutionDetailResponseDto * @param ExecutionDetailsSourceEnum $source * @param ?string $createdAt * @param ?string $raw + * @phpstan-pure */ public function __construct(string $id, ExecutionDetailsStatusEnum $status, string $detail, bool $isRetry, bool $isTest, ProvidersIdEnum $providerId, ExecutionDetailsSourceEnum $source, ?string $createdAt = null, ?string $raw = null) { diff --git a/src/Models/Components/ActivityNotificationJobResponseDto.php b/src/Models/Components/ActivityNotificationJobResponseDto.php index d80f73a..0704e16 100644 --- a/src/Models/Components/ActivityNotificationJobResponseDto.php +++ b/src/Models/Components/ActivityNotificationJobResponseDto.php @@ -102,6 +102,7 @@ class ActivityNotificationJobResponseDto * @param ?DigestMetadataDto $digest * @param ?Payload $payload * @param ?string $updatedAt + * @phpstan-pure */ public function __construct(string $id, ActivityNotificationJobResponseDtoType $type, array $executionDetails, ActivityNotificationStepResponseDto $step, ProvidersIdEnum $providerId, string $status, ?DigestMetadataDto $digest = null, ?Payload $payload = null, ?string $updatedAt = null) { diff --git a/src/Models/Components/ActivityNotificationResponseDto.php b/src/Models/Components/ActivityNotificationResponseDto.php index 8514e3b..6a22c2b 100644 --- a/src/Models/Components/ActivityNotificationResponseDto.php +++ b/src/Models/Components/ActivityNotificationResponseDto.php @@ -186,6 +186,7 @@ class ActivityNotificationResponseDto * @param ?array $tags * @param ?Controls $controls * @param ?ActivityNotificationResponseDtoTo $to + * @phpstan-pure */ public function __construct(string $environmentId, string $organizationId, string $subscriberId, string $transactionId, ?string $id = null, ?string $templateId = null, ?string $digestedNotificationId = null, ?string $createdAt = null, ?string $updatedAt = null, ?array $channels = null, ?ActivityNotificationSubscriberResponseDto $subscriber = null, ?ActivityNotificationTemplateResponseDto $template = null, ?array $jobs = null, ?ActivityNotificationResponseDtoPayload $payload = null, ?array $tags = null, ?Controls $controls = null, ?ActivityNotificationResponseDtoTo $to = null) { diff --git a/src/Models/Components/ActivityNotificationStepResponseDto.php b/src/Models/Components/ActivityNotificationStepResponseDto.php index d56c18d..33670dd 100644 --- a/src/Models/Components/ActivityNotificationStepResponseDto.php +++ b/src/Models/Components/ActivityNotificationStepResponseDto.php @@ -135,6 +135,7 @@ class ActivityNotificationStepResponseDto * @param ?array $variants * @param ?string $name * @param ?string $parentId + * @phpstan-pure */ public function __construct(string $id, bool $active, array $filters, string $templateId, ?ActivityNotificationStepResponseDtoReplyCallback $replyCallback = null, ?ControlVariables $controlVariables = null, ?Metadata $metadata = null, ?Issues $issues = null, ?MessageTemplateDto $template = null, ?array $variants = null, ?string $name = null, ?string $parentId = null) { diff --git a/src/Models/Components/ActivityNotificationSubscriberResponseDto.php b/src/Models/Components/ActivityNotificationSubscriberResponseDto.php index 12bde3a..73d06ad 100644 --- a/src/Models/Components/ActivityNotificationSubscriberResponseDto.php +++ b/src/Models/Components/ActivityNotificationSubscriberResponseDto.php @@ -70,6 +70,7 @@ class ActivityNotificationSubscriberResponseDto * @param ?string $lastName * @param ?string $email * @param ?string $phone + * @phpstan-pure */ public function __construct(string $subscriberId, string $id, ?string $firstName = null, ?string $lastName = null, ?string $email = null, ?string $phone = null) { diff --git a/src/Models/Components/ActivityNotificationTemplateResponseDto.php b/src/Models/Components/ActivityNotificationTemplateResponseDto.php index 3ebe9f4..c03d577 100644 --- a/src/Models/Components/ActivityNotificationTemplateResponseDto.php +++ b/src/Models/Components/ActivityNotificationTemplateResponseDto.php @@ -41,6 +41,7 @@ class ActivityNotificationTemplateResponseDto * @param string $name * @param array $triggers * @param ?string $id + * @phpstan-pure */ public function __construct(string $name, array $triggers, ?string $id = null) { diff --git a/src/Models/Components/ActivityStatsResponseDto.php b/src/Models/Components/ActivityStatsResponseDto.php index 3b107d8..e6f0572 100644 --- a/src/Models/Components/ActivityStatsResponseDto.php +++ b/src/Models/Components/ActivityStatsResponseDto.php @@ -28,6 +28,7 @@ class ActivityStatsResponseDto /** * @param float $weeklySent * @param float $monthlySent + * @phpstan-pure */ public function __construct(float $weeklySent, float $monthlySent) { diff --git a/src/Models/Components/ActorFeedItemDto.php b/src/Models/Components/ActorFeedItemDto.php index 3357d57..cd6c28f 100644 --- a/src/Models/Components/ActorFeedItemDto.php +++ b/src/Models/Components/ActorFeedItemDto.php @@ -31,6 +31,7 @@ class ActorFeedItemDto /** * @param ActorTypeEnum $type * @param ?string $data + * @phpstan-pure */ public function __construct(ActorTypeEnum $type, ?string $data = null) { diff --git a/src/Models/Components/AddSubscribersRequestDto.php b/src/Models/Components/AddSubscribersRequestDto.php index 318807c..31dd2c3 100644 --- a/src/Models/Components/AddSubscribersRequestDto.php +++ b/src/Models/Components/AddSubscribersRequestDto.php @@ -22,6 +22,7 @@ class AddSubscribersRequestDto /** * @param array $subscribers + * @phpstan-pure */ public function __construct(array $subscribers) { diff --git a/src/Models/Components/AssignSubscriberToTopicDto.php b/src/Models/Components/AssignSubscriberToTopicDto.php index f1afa2a..ed1ce72 100644 --- a/src/Models/Components/AssignSubscriberToTopicDto.php +++ b/src/Models/Components/AssignSubscriberToTopicDto.php @@ -33,6 +33,7 @@ class AssignSubscriberToTopicDto /** * @param array $succeeded * @param ?FailedAssignmentsDto $failed + * @phpstan-pure */ public function __construct(array $succeeded, ?FailedAssignmentsDto $failed = null) { diff --git a/src/Models/Components/BulkCreateSubscriberResponseDto.php b/src/Models/Components/BulkCreateSubscriberResponseDto.php index 6aaa9db..dec8c65 100644 --- a/src/Models/Components/BulkCreateSubscriberResponseDto.php +++ b/src/Models/Components/BulkCreateSubscriberResponseDto.php @@ -42,6 +42,7 @@ class BulkCreateSubscriberResponseDto * @param array $updated * @param array $created * @param array $failed + * @phpstan-pure */ public function __construct(array $updated, array $created, array $failed) { diff --git a/src/Models/Components/BulkSubscriberCreateDto.php b/src/Models/Components/BulkSubscriberCreateDto.php index 0fad08d..1fb2d30 100644 --- a/src/Models/Components/BulkSubscriberCreateDto.php +++ b/src/Models/Components/BulkSubscriberCreateDto.php @@ -22,6 +22,7 @@ class BulkSubscriberCreateDto /** * @param array $subscribers + * @phpstan-pure */ public function __construct(array $subscribers) { diff --git a/src/Models/Components/BulkTriggerEventDto.php b/src/Models/Components/BulkTriggerEventDto.php index f3b9a03..21a2e3a 100644 --- a/src/Models/Components/BulkTriggerEventDto.php +++ b/src/Models/Components/BulkTriggerEventDto.php @@ -22,6 +22,7 @@ class BulkTriggerEventDto /** * @param array $events + * @phpstan-pure */ public function __construct(array $events) { diff --git a/src/Models/Components/ChannelCredentials.php b/src/Models/Components/ChannelCredentials.php index 88c87da..d15de2f 100644 --- a/src/Models/Components/ChannelCredentials.php +++ b/src/Models/Components/ChannelCredentials.php @@ -93,6 +93,7 @@ class ChannelCredentials * @param ?string $imageUrl * @param ?string $state * @param ?string $externalUrl + * @phpstan-pure */ public function __construct(?string $webhookUrl = null, ?string $channel = null, ?array $deviceTokens = null, ?string $alertUid = null, ?string $title = null, ?string $imageUrl = null, ?string $state = null, ?string $externalUrl = null) { diff --git a/src/Models/Components/ChannelCredentialsDto.php b/src/Models/Components/ChannelCredentialsDto.php index ddf01b2..88a33ee 100644 --- a/src/Models/Components/ChannelCredentialsDto.php +++ b/src/Models/Components/ChannelCredentialsDto.php @@ -33,6 +33,7 @@ class ChannelCredentialsDto /** * @param ?string $webhookUrl * @param ?array $deviceTokens + * @phpstan-pure */ public function __construct(?string $webhookUrl = null, ?array $deviceTokens = null) { diff --git a/src/Models/Components/ChannelPreference.php b/src/Models/Components/ChannelPreference.php index aafe643..2941066 100644 --- a/src/Models/Components/ChannelPreference.php +++ b/src/Models/Components/ChannelPreference.php @@ -31,6 +31,7 @@ class ChannelPreference /** * @param ChannelTypeEnum $type * @param bool $enabled + * @phpstan-pure */ public function __construct(ChannelTypeEnum $type, bool $enabled) { diff --git a/src/Models/Components/ChannelSettingsDto.php b/src/Models/Components/ChannelSettingsDto.php index 1072144..c7dc009 100644 --- a/src/Models/Components/ChannelSettingsDto.php +++ b/src/Models/Components/ChannelSettingsDto.php @@ -51,6 +51,7 @@ class ChannelSettingsDto * @param ChannelCredentials $credentials * @param string $integrationId * @param ?string $integrationIdentifier + * @phpstan-pure */ public function __construct(ChannelSettingsDtoProviderId $providerId, ChannelCredentials $credentials, string $integrationId, ?string $integrationIdentifier = null) { diff --git a/src/Models/Components/CreateIntegrationRequestDto.php b/src/Models/Components/CreateIntegrationRequestDto.php index 436c65d..4f925fd 100644 --- a/src/Models/Components/CreateIntegrationRequestDto.php +++ b/src/Models/Components/CreateIntegrationRequestDto.php @@ -103,6 +103,7 @@ class CreateIntegrationRequestDto * @param ?bool $active * @param ?bool $check * @param ?array $conditions + * @phpstan-pure */ public function __construct(string $providerId, CreateIntegrationRequestDtoChannel $channel, ?string $name = null, ?string $identifier = null, ?string $environmentId = null, ?CredentialsDto $credentials = null, ?bool $active = null, ?bool $check = null, ?array $conditions = null) { diff --git a/src/Models/Components/CreateSubscriberRequestDto.php b/src/Models/Components/CreateSubscriberRequestDto.php index 01114f8..7795718 100644 --- a/src/Models/Components/CreateSubscriberRequestDto.php +++ b/src/Models/Components/CreateSubscriberRequestDto.php @@ -103,6 +103,7 @@ class CreateSubscriberRequestDto * @param ?string $locale * @param ?array|bool|float> $data * @param ?array $channels + * @phpstan-pure */ public function __construct(string $subscriberId, ?string $email = null, ?string $firstName = null, ?string $lastName = null, ?string $phone = null, ?string $avatar = null, ?string $locale = null, ?array $data = null, ?array $channels = null) { diff --git a/src/Models/Components/CreateTopicRequestDto.php b/src/Models/Components/CreateTopicRequestDto.php index 9b83e71..dd854ee 100644 --- a/src/Models/Components/CreateTopicRequestDto.php +++ b/src/Models/Components/CreateTopicRequestDto.php @@ -30,6 +30,7 @@ class CreateTopicRequestDto /** * @param string $key * @param string $name + * @phpstan-pure */ public function __construct(string $key, string $name) { diff --git a/src/Models/Components/CreateTopicResponseDto.php b/src/Models/Components/CreateTopicResponseDto.php index 49ad34b..d72a5a1 100644 --- a/src/Models/Components/CreateTopicResponseDto.php +++ b/src/Models/Components/CreateTopicResponseDto.php @@ -31,6 +31,7 @@ class CreateTopicResponseDto /** * @param string $key * @param ?string $id + * @phpstan-pure */ public function __construct(string $key, ?string $id = null) { diff --git a/src/Models/Components/CreatedSubscriberDto.php b/src/Models/Components/CreatedSubscriberDto.php index df9a650..51fe264 100644 --- a/src/Models/Components/CreatedSubscriberDto.php +++ b/src/Models/Components/CreatedSubscriberDto.php @@ -21,6 +21,7 @@ class CreatedSubscriberDto /** * @param string $subscriberId + * @phpstan-pure */ public function __construct(string $subscriberId) { diff --git a/src/Models/Components/CredentialsDto.php b/src/Models/Components/CredentialsDto.php index 5d81b6d..d060dda 100644 --- a/src/Models/Components/CredentialsDto.php +++ b/src/Models/Components/CredentialsDto.php @@ -391,6 +391,7 @@ class CredentialsDto * @param ?string $channelId * @param ?string $phoneNumberIdentification * @param ?string $accessKey + * @phpstan-pure */ public function __construct(?string $apiKey = null, ?string $user = null, ?string $secretKey = null, ?string $domain = null, ?string $password = null, ?string $host = null, ?string $port = null, ?bool $secure = null, ?string $region = null, ?string $accountSid = null, ?string $messageProfileId = null, ?string $token = null, ?string $from = null, ?string $senderName = null, ?string $projectName = null, ?string $applicationId = null, ?string $clientId = null, ?bool $requireTls = null, ?bool $ignoreTls = null, ?TlsOptions $tlsOptions = null, ?string $baseUrl = null, ?string $webhookUrl = null, ?string $redirectUrl = null, ?bool $hmac = null, ?string $serviceAccount = null, ?string $ipPoolName = null, ?string $apiKeyRequestHeader = null, ?string $secretKeyRequestHeader = null, ?string $idPath = null, ?string $datePath = null, ?string $apiToken = null, ?bool $authenticateByToken = null, ?string $authenticationTokenKey = null, ?string $instanceId = null, ?string $alertUid = null, ?string $title = null, ?string $imageUrl = null, ?string $state = null, ?string $externalLink = null, ?string $channelId = null, ?string $phoneNumberIdentification = null, ?string $accessKey = null) { diff --git a/src/Models/Components/DataBooleanDto.php b/src/Models/Components/DataBooleanDto.php index a2bd57e..031f225 100644 --- a/src/Models/Components/DataBooleanDto.php +++ b/src/Models/Components/DataBooleanDto.php @@ -20,6 +20,7 @@ class DataBooleanDto /** * @param bool $data + * @phpstan-pure */ public function __construct(bool $data) { diff --git a/src/Models/Components/DelayRegularMetadata.php b/src/Models/Components/DelayRegularMetadata.php index b064378..d36c6c2 100644 --- a/src/Models/Components/DelayRegularMetadata.php +++ b/src/Models/Components/DelayRegularMetadata.php @@ -40,6 +40,7 @@ class DelayRegularMetadata * @param DelayRegularMetadataType $type * @param ?float $amount * @param ?DelayRegularMetadataUnit $unit + * @phpstan-pure */ public function __construct(DelayRegularMetadataType $type, ?float $amount = null, ?DelayRegularMetadataUnit $unit = null) { diff --git a/src/Models/Components/DelayScheduledMetadata.php b/src/Models/Components/DelayScheduledMetadata.php index 6702fd9..141cb2b 100644 --- a/src/Models/Components/DelayScheduledMetadata.php +++ b/src/Models/Components/DelayScheduledMetadata.php @@ -29,6 +29,7 @@ class DelayScheduledMetadata /** * @param DelayScheduledMetadataType $type * @param string $delayPath + * @phpstan-pure */ public function __construct(DelayScheduledMetadataType $type, string $delayPath) { diff --git a/src/Models/Components/DeleteMessageResponseDto.php b/src/Models/Components/DeleteMessageResponseDto.php index ab29046..d10227f 100644 --- a/src/Models/Components/DeleteMessageResponseDto.php +++ b/src/Models/Components/DeleteMessageResponseDto.php @@ -31,6 +31,7 @@ class DeleteMessageResponseDto /** * @param bool $acknowledged * @param DeleteMessageResponseDtoStatus $status + * @phpstan-pure */ public function __construct(bool $acknowledged, DeleteMessageResponseDtoStatus $status) { diff --git a/src/Models/Components/DeleteSubscriberResponseDto.php b/src/Models/Components/DeleteSubscriberResponseDto.php index 61dba3c..1cf5075 100644 --- a/src/Models/Components/DeleteSubscriberResponseDto.php +++ b/src/Models/Components/DeleteSubscriberResponseDto.php @@ -31,6 +31,7 @@ class DeleteSubscriberResponseDto /** * @param bool $acknowledged * @param DeleteSubscriberResponseDtoStatus $status + * @phpstan-pure */ public function __construct(bool $acknowledged, DeleteSubscriberResponseDtoStatus $status) { diff --git a/src/Models/Components/DigestMetadataDto.php b/src/Models/Components/DigestMetadataDto.php index 9749afd..30e5d1e 100644 --- a/src/Models/Components/DigestMetadataDto.php +++ b/src/Models/Components/DigestMetadataDto.php @@ -116,6 +116,7 @@ class DigestMetadataDto * @param ?DigestUnitEnum $backoffUnit * @param ?bool $updateMode * @param ?DigestTimedConfigDto $timed + * @phpstan-pure */ public function __construct(DigestTypeEnum $type, ?string $digestKey = null, ?float $amount = null, ?Unit $unit = null, ?array $events = null, ?bool $backoff = null, ?float $backoffAmount = null, ?DigestUnitEnum $backoffUnit = null, ?bool $updateMode = null, ?DigestTimedConfigDto $timed = null) { diff --git a/src/Models/Components/DigestRegularMetadata.php b/src/Models/Components/DigestRegularMetadata.php index 0d59f16..00d0900 100644 --- a/src/Models/Components/DigestRegularMetadata.php +++ b/src/Models/Components/DigestRegularMetadata.php @@ -86,6 +86,7 @@ class DigestRegularMetadata * @param ?float $backoffAmount * @param ?BackoffUnit $backoffUnit * @param ?bool $updateMode + * @phpstan-pure */ public function __construct(DigestRegularMetadataType $type, ?float $amount = null, ?DigestRegularMetadataUnit $unit = null, ?string $digestKey = null, ?bool $backoff = null, ?float $backoffAmount = null, ?BackoffUnit $backoffUnit = null, ?bool $updateMode = null) { diff --git a/src/Models/Components/DigestTimedConfigDto.php b/src/Models/Components/DigestTimedConfigDto.php index 94c5354..8d8402d 100644 --- a/src/Models/Components/DigestTimedConfigDto.php +++ b/src/Models/Components/DigestTimedConfigDto.php @@ -87,6 +87,7 @@ class DigestTimedConfigDto * @param ?OrdinalValueEnum $ordinalValue * @param ?MonthlyTypeEnum $monthlyType * @param ?string $cronExpression + * @phpstan-pure */ public function __construct(?string $atTime = null, ?array $weekDays = null, ?array $monthDays = null, ?OrdinalEnum $ordinal = null, ?OrdinalValueEnum $ordinalValue = null, ?MonthlyTypeEnum $monthlyType = null, ?string $cronExpression = null) { diff --git a/src/Models/Components/DigestTimedMetadata.php b/src/Models/Components/DigestTimedMetadata.php index 4e406c3..584e7a6 100644 --- a/src/Models/Components/DigestTimedMetadata.php +++ b/src/Models/Components/DigestTimedMetadata.php @@ -59,6 +59,7 @@ class DigestTimedMetadata * @param ?DigestTimedMetadataUnit $unit * @param ?string $digestKey * @param ?TimedConfig $timed + * @phpstan-pure */ public function __construct(DigestTimedMetadataType $type, ?float $amount = null, ?DigestTimedMetadataUnit $unit = null, ?string $digestKey = null, ?TimedConfig $timed = null) { diff --git a/src/Models/Components/EmailBlock.php b/src/Models/Components/EmailBlock.php index a76eff0..c32cb97 100644 --- a/src/Models/Components/EmailBlock.php +++ b/src/Models/Components/EmailBlock.php @@ -52,6 +52,7 @@ class EmailBlock * @param string $content * @param ?string $url * @param ?EmailBlockStyles $styles + * @phpstan-pure */ public function __construct(EmailBlockTypeEnum $type, string $content, ?string $url = null, ?EmailBlockStyles $styles = null) { diff --git a/src/Models/Components/EmailBlockStyles.php b/src/Models/Components/EmailBlockStyles.php index c5564f0..4b25072 100644 --- a/src/Models/Components/EmailBlockStyles.php +++ b/src/Models/Components/EmailBlockStyles.php @@ -22,6 +22,7 @@ class EmailBlockStyles /** * @param TextAlignEnum $textAlign + * @phpstan-pure */ public function __construct(TextAlignEnum $textAlign) { diff --git a/src/Models/Components/FailedAssignmentsDto.php b/src/Models/Components/FailedAssignmentsDto.php index eba8dc6..39edb4c 100644 --- a/src/Models/Components/FailedAssignmentsDto.php +++ b/src/Models/Components/FailedAssignmentsDto.php @@ -23,6 +23,7 @@ class FailedAssignmentsDto /** * @param ?array $notFound + * @phpstan-pure */ public function __construct(?array $notFound = null) { diff --git a/src/Models/Components/FailedOperationDto.php b/src/Models/Components/FailedOperationDto.php index d8c83e7..09c5a31 100644 --- a/src/Models/Components/FailedOperationDto.php +++ b/src/Models/Components/FailedOperationDto.php @@ -32,6 +32,7 @@ class FailedOperationDto /** * @param ?string $message * @param ?string $subscriberId + * @phpstan-pure */ public function __construct(?string $message = null, ?string $subscriberId = null) { diff --git a/src/Models/Components/FeedResponseDto.php b/src/Models/Components/FeedResponseDto.php index da285e2..295e558 100644 --- a/src/Models/Components/FeedResponseDto.php +++ b/src/Models/Components/FeedResponseDto.php @@ -59,6 +59,7 @@ class FeedResponseDto * @param float $pageSize * @param float $page * @param ?float $totalCount + * @phpstan-pure */ public function __construct(bool $hasMore, array $data, float $pageSize, float $page, ?float $totalCount = null) { diff --git a/src/Models/Components/FieldFilterPartDto.php b/src/Models/Components/FieldFilterPartDto.php index fbd21ec..5289ca9 100644 --- a/src/Models/Components/FieldFilterPartDto.php +++ b/src/Models/Components/FieldFilterPartDto.php @@ -46,6 +46,7 @@ class FieldFilterPartDto * @param string $value * @param Operator $operator * @param On $on + * @phpstan-pure */ public function __construct(string $field, string $value, Operator $operator, On $on) { diff --git a/src/Models/Components/FilterTopicsResponseDto.php b/src/Models/Components/FilterTopicsResponseDto.php index 03cc101..b7685bb 100644 --- a/src/Models/Components/FilterTopicsResponseDto.php +++ b/src/Models/Components/FilterTopicsResponseDto.php @@ -49,6 +49,7 @@ class FilterTopicsResponseDto * @param float $page * @param float $pageSize * @param float $totalCount + * @phpstan-pure */ public function __construct(array $data, float $page, float $pageSize, float $totalCount) { diff --git a/src/Models/Components/GetSubscriberPreferencesDto.php b/src/Models/Components/GetSubscriberPreferencesDto.php index 1c79425..5473e40 100644 --- a/src/Models/Components/GetSubscriberPreferencesDto.php +++ b/src/Models/Components/GetSubscriberPreferencesDto.php @@ -32,6 +32,7 @@ class GetSubscriberPreferencesDto /** * @param GlobalPreferenceDto $global * @param array $workflows + * @phpstan-pure */ public function __construct(GlobalPreferenceDto $global, array $workflows) { diff --git a/src/Models/Components/GetSubscriberPreferencesResponseDto.php b/src/Models/Components/GetSubscriberPreferencesResponseDto.php index b3050b4..9d43454 100644 --- a/src/Models/Components/GetSubscriberPreferencesResponseDto.php +++ b/src/Models/Components/GetSubscriberPreferencesResponseDto.php @@ -33,6 +33,7 @@ class GetSubscriberPreferencesResponseDto /** * @param Preference $preference * @param ?TemplateResponse $template + * @phpstan-pure */ public function __construct(Preference $preference, ?TemplateResponse $template = null) { diff --git a/src/Models/Components/GetTopicResponseDto.php b/src/Models/Components/GetTopicResponseDto.php index 0066117..33a4e77 100644 --- a/src/Models/Components/GetTopicResponseDto.php +++ b/src/Models/Components/GetTopicResponseDto.php @@ -63,6 +63,7 @@ class GetTopicResponseDto * @param string $name * @param array $subscribers * @param ?string $id + * @phpstan-pure */ public function __construct(string $organizationId, string $environmentId, string $key, string $name, array $subscribers, ?string $id = null) { diff --git a/src/Models/Components/GlobalPreferenceDto.php b/src/Models/Components/GlobalPreferenceDto.php index 85dfa7f..4d570d3 100644 --- a/src/Models/Components/GlobalPreferenceDto.php +++ b/src/Models/Components/GlobalPreferenceDto.php @@ -31,6 +31,7 @@ class GlobalPreferenceDto /** * @param bool $enabled * @param PreferenceChannels $channels + * @phpstan-pure */ public function __construct(bool $enabled, PreferenceChannels $channels) { diff --git a/src/Models/Components/IntegrationResponseDto.php b/src/Models/Components/IntegrationResponseDto.php index 53c2891..8e50fbe 100644 --- a/src/Models/Components/IntegrationResponseDto.php +++ b/src/Models/Components/IntegrationResponseDto.php @@ -145,6 +145,7 @@ class IntegrationResponseDto * @param ?string $deletedAt * @param ?string $deletedBy * @param ?array $conditions + * @phpstan-pure */ public function __construct(string $environmentId, string $organizationId, string $name, string $identifier, string $providerId, Channel $channel, CredentialsDto $credentials, bool $active, bool $deleted, bool $primary, ?string $id = null, ?string $deletedAt = null, ?string $deletedBy = null, ?array $conditions = null) { diff --git a/src/Models/Components/ListSubscribersResponseDto.php b/src/Models/Components/ListSubscribersResponseDto.php index f2156f3..99f2200 100644 --- a/src/Models/Components/ListSubscribersResponseDto.php +++ b/src/Models/Components/ListSubscribersResponseDto.php @@ -40,6 +40,7 @@ class ListSubscribersResponseDto * @param array $data * @param ?string $next * @param ?string $previous + * @phpstan-pure */ public function __construct(array $data, ?string $next = null, ?string $previous = null) { diff --git a/src/Models/Components/MarkAllMessageAsRequestDto.php b/src/Models/Components/MarkAllMessageAsRequestDto.php index fc13f18..d723f98 100644 --- a/src/Models/Components/MarkAllMessageAsRequestDto.php +++ b/src/Models/Components/MarkAllMessageAsRequestDto.php @@ -33,6 +33,7 @@ class MarkAllMessageAsRequestDto /** * @param MarkAllMessageAsRequestDtoMarkAs $markAs * @param string|array|null $feedIdentifier + * @phpstan-pure */ public function __construct(MarkAllMessageAsRequestDtoMarkAs $markAs, string|array|null $feedIdentifier = null) { diff --git a/src/Models/Components/MarkMessageActionAsSeenDto.php b/src/Models/Components/MarkMessageActionAsSeenDto.php index 6e42b74..da0e6de 100644 --- a/src/Models/Components/MarkMessageActionAsSeenDto.php +++ b/src/Models/Components/MarkMessageActionAsSeenDto.php @@ -33,6 +33,7 @@ class MarkMessageActionAsSeenDto /** * @param MarkMessageActionAsSeenDtoStatus $status * @param ?MarkMessageActionAsSeenDtoPayload $payload + * @phpstan-pure */ public function __construct(MarkMessageActionAsSeenDtoStatus $status, ?MarkMessageActionAsSeenDtoPayload $payload = null) { diff --git a/src/Models/Components/MessageAction.php b/src/Models/Components/MessageAction.php index d8e11be..3d610b9 100644 --- a/src/Models/Components/MessageAction.php +++ b/src/Models/Components/MessageAction.php @@ -45,6 +45,7 @@ class MessageAction * @param ?MessageActionStatusEnum $status * @param ?array $buttons * @param ?MessageActionResult $result + * @phpstan-pure */ public function __construct(?MessageActionStatusEnum $status = null, ?array $buttons = null, ?MessageActionResult $result = null) { diff --git a/src/Models/Components/MessageActionResult.php b/src/Models/Components/MessageActionResult.php index c5482f1..db0bd30 100644 --- a/src/Models/Components/MessageActionResult.php +++ b/src/Models/Components/MessageActionResult.php @@ -34,6 +34,7 @@ class MessageActionResult /** * @param ?MessageActionResultPayload $payload * @param ?ButtonTypeEnum $type + * @phpstan-pure */ public function __construct(?MessageActionResultPayload $payload = null, ?ButtonTypeEnum $type = null) { diff --git a/src/Models/Components/MessageButton.php b/src/Models/Components/MessageButton.php index 478c304..ec14934 100644 --- a/src/Models/Components/MessageButton.php +++ b/src/Models/Components/MessageButton.php @@ -41,6 +41,7 @@ class MessageButton * @param ButtonTypeEnum $type * @param string $content * @param ?string $resultContent + * @phpstan-pure */ public function __construct(ButtonTypeEnum $type, string $content, ?string $resultContent = null) { diff --git a/src/Models/Components/MessageCTA.php b/src/Models/Components/MessageCTA.php index 37c1194..4953e35 100644 --- a/src/Models/Components/MessageCTA.php +++ b/src/Models/Components/MessageCTA.php @@ -44,6 +44,7 @@ class MessageCTA * @param MessageCTAData $data * @param ?ChannelCTATypeEnum $type * @param ?MessageAction $action + * @phpstan-pure */ public function __construct(MessageCTAData $data, ?ChannelCTATypeEnum $type = null, ?MessageAction $action = null) { diff --git a/src/Models/Components/MessageCTAData.php b/src/Models/Components/MessageCTAData.php index 0491ae6..0d112a9 100644 --- a/src/Models/Components/MessageCTAData.php +++ b/src/Models/Components/MessageCTAData.php @@ -22,6 +22,7 @@ class MessageCTAData /** * @param ?string $url + * @phpstan-pure */ public function __construct(?string $url = null) { diff --git a/src/Models/Components/MessageMarkAsRequestDto.php b/src/Models/Components/MessageMarkAsRequestDto.php index da1bb8c..ad9e465 100644 --- a/src/Models/Components/MessageMarkAsRequestDto.php +++ b/src/Models/Components/MessageMarkAsRequestDto.php @@ -30,6 +30,7 @@ class MessageMarkAsRequestDto /** * @param string|array $messageId * @param MarkAs $markAs + * @phpstan-pure */ public function __construct(string|array $messageId, MarkAs $markAs) { diff --git a/src/Models/Components/MessageResponseDto.php b/src/Models/Components/MessageResponseDto.php index 586ce7e..577a029 100644 --- a/src/Models/Components/MessageResponseDto.php +++ b/src/Models/Components/MessageResponseDto.php @@ -327,6 +327,7 @@ class MessageResponseDto * @param ?MessageResponseDtoPayload $payload * @param ?MessageResponseDtoOverrides $overrides * @param ?string $feedId + * @phpstan-pure */ public function __construct(string $templateId, string $environmentId, string $messageTemplateId, string $organizationId, string $notificationId, string $subscriberId, string $createdAt, EmailBlock|string $content, string $transactionId, ChannelTypeEnum $channel, bool $read, bool $seen, MessageCTA $cta, MessageStatusEnum $status, ?string $id = null, ?SubscriberResponseDto $subscriber = null, ?WorkflowResponse $template = null, ?string $templateIdentifier = null, ?string $lastSeenDate = null, ?string $lastReadDate = null, ?string $subject = null, ?string $email = null, ?string $phone = null, ?string $directWebhookUrl = null, ?string $providerId = null, ?array $deviceTokens = null, ?string $title = null, ?string $errorId = null, ?string $errorText = null, ?MessageResponseDtoPayload $payload = null, ?MessageResponseDtoOverrides $overrides = null, ?string $feedId = null) { diff --git a/src/Models/Components/NotificationFeedItemDto.php b/src/Models/Components/NotificationFeedItemDto.php index 340ee54..f07a9e8 100644 --- a/src/Models/Components/NotificationFeedItemDto.php +++ b/src/Models/Components/NotificationFeedItemDto.php @@ -273,6 +273,7 @@ class NotificationFeedItemDto * @param ?string $providerId * @param ?string $subject * @param ?array $deviceTokens + * @phpstan-pure */ public function __construct(string $id, string $templateId, string $environmentId, string $messageTemplateId, string $organizationId, string $notificationId, string $subscriberId, string $feedId, string $jobId, string $transactionId, string $content, ChannelTypeEnum $channel, bool $read, bool $seen, bool $deleted, MessageCTA $cta, NotificationFeedItemDtoStatus $status, ?ActorFeedItemDto $actor = null, ?SubscriberFeedResponseDto $subscriber = null, ?array $payload = null, ?array $overrides = null, ?\DateTime $createdAt = null, ?\DateTime $updatedAt = null, ?string $templateIdentifier = null, ?string $providerId = null, ?string $subject = null, ?array $deviceTokens = null) { diff --git a/src/Models/Components/NotificationGroup.php b/src/Models/Components/NotificationGroup.php index 113f079..f68a498 100644 --- a/src/Models/Components/NotificationGroup.php +++ b/src/Models/Components/NotificationGroup.php @@ -54,6 +54,7 @@ class NotificationGroup * @param string $organizationId * @param ?string $id * @param ?string $parentId + * @phpstan-pure */ public function __construct(string $name, string $environmentId, string $organizationId, ?string $id = null, ?string $parentId = null) { diff --git a/src/Models/Components/NotificationStepData.php b/src/Models/Components/NotificationStepData.php index aea012b..a2ed928 100644 --- a/src/Models/Components/NotificationStepData.php +++ b/src/Models/Components/NotificationStepData.php @@ -126,6 +126,7 @@ class NotificationStepData * @param ?string $parentId * @param DigestRegularMetadata|DigestTimedMetadata|DelayRegularMetadata|DelayScheduledMetadata|null $metadata * @param ?ReplyCallback $replyCallback + * @phpstan-pure */ public function __construct(?string $id = null, ?string $uuid = null, ?string $name = null, ?string $templateId = null, ?bool $active = null, ?bool $shouldStopOnFail = null, ?MessageTemplate $template = null, ?array $filters = null, ?string $parentId = null, DigestRegularMetadata|DigestTimedMetadata|DelayRegularMetadata|DelayScheduledMetadata|null $metadata = null, ?ReplyCallback $replyCallback = null) { diff --git a/src/Models/Components/NotificationStepDto.php b/src/Models/Components/NotificationStepDto.php index 030c025..3fcff22 100644 --- a/src/Models/Components/NotificationStepDto.php +++ b/src/Models/Components/NotificationStepDto.php @@ -137,6 +137,7 @@ class NotificationStepDto * @param DigestRegularMetadata|DigestTimedMetadata|DelayRegularMetadata|DelayScheduledMetadata|null $metadata * @param ?ReplyCallback $replyCallback * @param ?array $variants + * @phpstan-pure */ public function __construct(?string $id = null, ?string $uuid = null, ?string $name = null, ?string $templateId = null, ?bool $active = null, ?bool $shouldStopOnFail = null, ?MessageTemplate $template = null, ?array $filters = null, ?string $parentId = null, DigestRegularMetadata|DigestTimedMetadata|DelayRegularMetadata|DelayScheduledMetadata|null $metadata = null, ?ReplyCallback $replyCallback = null, ?array $variants = null) { diff --git a/src/Models/Components/NotificationTrigger.php b/src/Models/Components/NotificationTrigger.php index 1521afb..8c622e6 100644 --- a/src/Models/Components/NotificationTrigger.php +++ b/src/Models/Components/NotificationTrigger.php @@ -50,6 +50,7 @@ class NotificationTrigger * @param string $identifier * @param array $variables * @param ?array $subscriberVariables + * @phpstan-pure */ public function __construct(NotificationTriggerType $type, string $identifier, array $variables, ?array $subscriberVariables = null) { diff --git a/src/Models/Components/NotificationTriggerDto.php b/src/Models/Components/NotificationTriggerDto.php index ee43e9a..83da68c 100644 --- a/src/Models/Components/NotificationTriggerDto.php +++ b/src/Models/Components/NotificationTriggerDto.php @@ -52,6 +52,7 @@ class NotificationTriggerDto * @param string $identifier * @param array $variables * @param ?array $subscriberVariables + * @phpstan-pure */ public function __construct(Type $type, string $identifier, array $variables, ?array $subscriberVariables = null) { diff --git a/src/Models/Components/NotificationTriggerResponse.php b/src/Models/Components/NotificationTriggerResponse.php index c418174..0f670ba 100644 --- a/src/Models/Components/NotificationTriggerResponse.php +++ b/src/Models/Components/NotificationTriggerResponse.php @@ -63,6 +63,7 @@ class NotificationTriggerResponse * @param array $variables * @param ?array $subscriberVariables * @param ?array $reservedVariables + * @phpstan-pure */ public function __construct(TriggerTypeEnum $type, string $identifier, array $variables, ?array $subscriberVariables = null, ?array $reservedVariables = null) { diff --git a/src/Models/Components/NotificationTriggerVariable.php b/src/Models/Components/NotificationTriggerVariable.php index 47acf69..0a1a0aa 100644 --- a/src/Models/Components/NotificationTriggerVariable.php +++ b/src/Models/Components/NotificationTriggerVariable.php @@ -21,6 +21,7 @@ class NotificationTriggerVariable /** * @param string $name + * @phpstan-pure */ public function __construct(string $name) { diff --git a/src/Models/Components/NotificationTriggerVariableResponse.php b/src/Models/Components/NotificationTriggerVariableResponse.php index 86ab67a..46989f6 100644 --- a/src/Models/Components/NotificationTriggerVariableResponse.php +++ b/src/Models/Components/NotificationTriggerVariableResponse.php @@ -43,6 +43,7 @@ class NotificationTriggerVariableResponse * @param string $name * @param ?NotificationTriggerVariableResponseValue $value * @param ?NotificationTriggerVariableResponseType $type + * @phpstan-pure */ public function __construct(string $name, ?NotificationTriggerVariableResponseValue $value = null, ?NotificationTriggerVariableResponseType $type = null) { diff --git a/src/Models/Components/Overrides.php b/src/Models/Components/Overrides.php index 93d2a60..9071eda 100644 --- a/src/Models/Components/Overrides.php +++ b/src/Models/Components/Overrides.php @@ -32,6 +32,7 @@ class Overrides /** * @param OverridesChannel $channel * @param Source $source + * @phpstan-pure */ public function __construct(OverridesChannel $channel, Source $source) { diff --git a/src/Models/Components/PatchPreferenceChannelsDto.php b/src/Models/Components/PatchPreferenceChannelsDto.php index 8fd37fc..0219aca 100644 --- a/src/Models/Components/PatchPreferenceChannelsDto.php +++ b/src/Models/Components/PatchPreferenceChannelsDto.php @@ -62,6 +62,7 @@ class PatchPreferenceChannelsDto * @param ?bool $inApp * @param ?bool $push * @param ?bool $chat + * @phpstan-pure */ public function __construct(?bool $email = null, ?bool $sms = null, ?bool $inApp = null, ?bool $push = null, ?bool $chat = null) { diff --git a/src/Models/Components/PatchSubscriberPreferencesDto.php b/src/Models/Components/PatchSubscriberPreferencesDto.php index 967450b..296c10e 100644 --- a/src/Models/Components/PatchSubscriberPreferencesDto.php +++ b/src/Models/Components/PatchSubscriberPreferencesDto.php @@ -32,6 +32,7 @@ class PatchSubscriberPreferencesDto /** * @param PatchPreferenceChannelsDto $channels * @param ?string $workflowId + * @phpstan-pure */ public function __construct(PatchPreferenceChannelsDto $channels, ?string $workflowId = null) { diff --git a/src/Models/Components/PatchSubscriberRequestDto.php b/src/Models/Components/PatchSubscriberRequestDto.php index 65320ea..5c6350e 100644 --- a/src/Models/Components/PatchSubscriberRequestDto.php +++ b/src/Models/Components/PatchSubscriberRequestDto.php @@ -103,6 +103,7 @@ class PatchSubscriberRequestDto * @param ?string $timezone * @param ?string $locale * @param ?PatchSubscriberRequestDtoData $data + * @phpstan-pure */ public function __construct(?string $subscriberId = null, ?string $firstName = null, ?string $lastName = null, ?string $email = null, ?string $phone = null, ?string $avatar = null, ?string $timezone = null, ?string $locale = null, ?PatchSubscriberRequestDtoData $data = null) { diff --git a/src/Models/Components/Preference.php b/src/Models/Components/Preference.php index 96a56bd..ba06c56 100644 --- a/src/Models/Components/Preference.php +++ b/src/Models/Components/Preference.php @@ -31,6 +31,7 @@ class Preference /** * @param bool $enabled * @param PreferenceChannels $channels + * @phpstan-pure */ public function __construct(bool $enabled, PreferenceChannels $channels) { diff --git a/src/Models/Components/PreferenceChannels.php b/src/Models/Components/PreferenceChannels.php index a85ab79..21a009d 100644 --- a/src/Models/Components/PreferenceChannels.php +++ b/src/Models/Components/PreferenceChannels.php @@ -57,6 +57,7 @@ class PreferenceChannels * @param ?bool $inApp * @param ?bool $chat * @param ?bool $push + * @phpstan-pure */ public function __construct(?bool $email = null, ?bool $sms = null, ?bool $inApp = null, ?bool $chat = null, ?bool $push = null) { diff --git a/src/Models/Components/RemoveSubscriberResponseDto.php b/src/Models/Components/RemoveSubscriberResponseDto.php index e28e972..ba5e912 100644 --- a/src/Models/Components/RemoveSubscriberResponseDto.php +++ b/src/Models/Components/RemoveSubscriberResponseDto.php @@ -30,6 +30,7 @@ class RemoveSubscriberResponseDto /** * @param bool $acknowledged * @param string $status + * @phpstan-pure */ public function __construct(bool $acknowledged, string $status) { diff --git a/src/Models/Components/RemoveSubscribersRequestDto.php b/src/Models/Components/RemoveSubscribersRequestDto.php index 07fecac..861de24 100644 --- a/src/Models/Components/RemoveSubscribersRequestDto.php +++ b/src/Models/Components/RemoveSubscribersRequestDto.php @@ -22,6 +22,7 @@ class RemoveSubscribersRequestDto /** * @param array $subscribers + * @phpstan-pure */ public function __construct(array $subscribers) { diff --git a/src/Models/Components/RenameTopicRequestDto.php b/src/Models/Components/RenameTopicRequestDto.php index d2293fc..ad103e9 100644 --- a/src/Models/Components/RenameTopicRequestDto.php +++ b/src/Models/Components/RenameTopicRequestDto.php @@ -21,6 +21,7 @@ class RenameTopicRequestDto /** * @param string $name + * @phpstan-pure */ public function __construct(string $name) { diff --git a/src/Models/Components/RenameTopicResponseDto.php b/src/Models/Components/RenameTopicResponseDto.php index c620643..3e9c847 100644 --- a/src/Models/Components/RenameTopicResponseDto.php +++ b/src/Models/Components/RenameTopicResponseDto.php @@ -63,6 +63,7 @@ class RenameTopicResponseDto * @param string $name * @param array $subscribers * @param ?string $id + * @phpstan-pure */ public function __construct(string $organizationId, string $environmentId, string $key, string $name, array $subscribers, ?string $id = null) { diff --git a/src/Models/Components/ReplyCallback.php b/src/Models/Components/ReplyCallback.php index caed85e..f3de73c 100644 --- a/src/Models/Components/ReplyCallback.php +++ b/src/Models/Components/ReplyCallback.php @@ -32,6 +32,7 @@ class ReplyCallback /** * @param ?bool $active * @param ?string $url + * @phpstan-pure */ public function __construct(?bool $active = null, ?string $url = null) { diff --git a/src/Models/Components/Security.php b/src/Models/Components/Security.php index afabd4c..6e3709b 100644 --- a/src/Models/Components/Security.php +++ b/src/Models/Components/Security.php @@ -20,6 +20,7 @@ class Security /** * @param string $secretKey + * @phpstan-pure */ public function __construct(string $secretKey) { diff --git a/src/Models/Components/StepFilterDto.php b/src/Models/Components/StepFilterDto.php index e11bcf2..7093634 100644 --- a/src/Models/Components/StepFilterDto.php +++ b/src/Models/Components/StepFilterDto.php @@ -48,6 +48,7 @@ class StepFilterDto * @param BuilderFieldTypeEnum $type * @param Value $value * @param array $children + * @phpstan-pure */ public function __construct(bool $isNegated, BuilderFieldTypeEnum $type, Value $value, array $children) { diff --git a/src/Models/Components/SubscriberChannelDto.php b/src/Models/Components/SubscriberChannelDto.php index 0852cb4..71a46cf 100644 --- a/src/Models/Components/SubscriberChannelDto.php +++ b/src/Models/Components/SubscriberChannelDto.php @@ -42,6 +42,7 @@ class SubscriberChannelDto * @param ProviderId $providerId * @param ChannelCredentialsDto $credentials * @param ?string $integrationIdentifier + * @phpstan-pure */ public function __construct(ProviderId $providerId, ChannelCredentialsDto $credentials, ?string $integrationIdentifier = null) { diff --git a/src/Models/Components/SubscriberFeedResponseDto.php b/src/Models/Components/SubscriberFeedResponseDto.php index bbdb2ec..6f6b6b8 100644 --- a/src/Models/Components/SubscriberFeedResponseDto.php +++ b/src/Models/Components/SubscriberFeedResponseDto.php @@ -61,6 +61,7 @@ class SubscriberFeedResponseDto * @param ?string $firstName * @param ?string $lastName * @param ?string $avatar + * @phpstan-pure */ public function __construct(string $subscriberId, ?string $id = null, ?string $firstName = null, ?string $lastName = null, ?string $avatar = null) { diff --git a/src/Models/Components/SubscriberPayloadDto.php b/src/Models/Components/SubscriberPayloadDto.php index ed0e3f3..c852add 100644 --- a/src/Models/Components/SubscriberPayloadDto.php +++ b/src/Models/Components/SubscriberPayloadDto.php @@ -103,6 +103,7 @@ class SubscriberPayloadDto * @param ?string $locale * @param ?array|bool|float> $data * @param ?array $channels + * @phpstan-pure */ public function __construct(string $subscriberId, ?string $email = null, ?string $firstName = null, ?string $lastName = null, ?string $phone = null, ?string $avatar = null, ?string $locale = null, ?array $data = null, ?array $channels = null) { diff --git a/src/Models/Components/SubscriberResponseDto.php b/src/Models/Components/SubscriberResponseDto.php index 892c5a4..2d39ee0 100644 --- a/src/Models/Components/SubscriberResponseDto.php +++ b/src/Models/Components/SubscriberResponseDto.php @@ -200,6 +200,7 @@ class SubscriberResponseDto * @param ?float $v * @param ?string $email * @param ?array $data + * @phpstan-pure */ public function __construct(string $subscriberId, string $organizationId, string $environmentId, bool $deleted, string $createdAt, string $updatedAt, ?string $id = null, ?string $firstName = null, ?string $lastName = null, ?string $phone = null, ?string $avatar = null, ?string $locale = null, ?array $channels = null, ?array $topics = null, ?bool $isOnline = null, ?string $lastOnlineAt = null, ?float $v = null, ?string $email = null, ?array $data = null) { diff --git a/src/Models/Components/TemplateResponse.php b/src/Models/Components/TemplateResponse.php index 070e891..ff1742d 100644 --- a/src/Models/Components/TemplateResponse.php +++ b/src/Models/Components/TemplateResponse.php @@ -49,6 +49,7 @@ class TemplateResponse * @param string $name * @param bool $critical * @param array $triggers + * @phpstan-pure */ public function __construct(string $id, string $name, bool $critical, array $triggers) { diff --git a/src/Models/Components/TenantPayloadDto.php b/src/Models/Components/TenantPayloadDto.php index 50f89eb..2adafff 100644 --- a/src/Models/Components/TenantPayloadDto.php +++ b/src/Models/Components/TenantPayloadDto.php @@ -40,6 +40,7 @@ class TenantPayloadDto * @param ?string $identifier * @param ?string $name * @param ?TenantPayloadDtoData $data + * @phpstan-pure */ public function __construct(?string $identifier = null, ?string $name = null, ?TenantPayloadDtoData $data = null) { diff --git a/src/Models/Components/TimedConfig.php b/src/Models/Components/TimedConfig.php index abc5abf..02f6177 100644 --- a/src/Models/Components/TimedConfig.php +++ b/src/Models/Components/TimedConfig.php @@ -73,6 +73,7 @@ class TimedConfig * @param ?Ordinal $ordinal * @param ?OrdinalValue $ordinalValue * @param ?MonthlyType $monthlyType + * @phpstan-pure */ public function __construct(?string $atTime = null, ?array $weekDays = null, ?array $monthDays = null, ?Ordinal $ordinal = null, ?OrdinalValue $ordinalValue = null, ?MonthlyType $monthlyType = null) { diff --git a/src/Models/Components/TopicDto.php b/src/Models/Components/TopicDto.php index 6c21c3c..78b09db 100644 --- a/src/Models/Components/TopicDto.php +++ b/src/Models/Components/TopicDto.php @@ -63,6 +63,7 @@ class TopicDto * @param string $name * @param array $subscribers * @param ?string $id + * @phpstan-pure */ public function __construct(string $organizationId, string $environmentId, string $key, string $name, array $subscribers, ?string $id = null) { diff --git a/src/Models/Components/TopicPayloadDto.php b/src/Models/Components/TopicPayloadDto.php index 1f7c103..8c5ecf7 100644 --- a/src/Models/Components/TopicPayloadDto.php +++ b/src/Models/Components/TopicPayloadDto.php @@ -29,6 +29,7 @@ class TopicPayloadDto /** * @param string $topicKey * @param TriggerRecipientsTypeEnum $type + * @phpstan-pure */ public function __construct(string $topicKey, TriggerRecipientsTypeEnum $type) { diff --git a/src/Models/Components/TopicSubscriberDto.php b/src/Models/Components/TopicSubscriberDto.php index ff00cdb..b130256 100644 --- a/src/Models/Components/TopicSubscriberDto.php +++ b/src/Models/Components/TopicSubscriberDto.php @@ -66,6 +66,7 @@ class TopicSubscriberDto * @param string $topicId * @param string $topicKey * @param string $externalSubscriberId + * @phpstan-pure */ public function __construct(string $organizationId, string $environmentId, string $subscriberId, string $topicId, string $topicKey, string $externalSubscriberId) { diff --git a/src/Models/Components/TriggerEventRequestDto.php b/src/Models/Components/TriggerEventRequestDto.php index 1c786ca..d89ef40 100644 --- a/src/Models/Components/TriggerEventRequestDto.php +++ b/src/Models/Components/TriggerEventRequestDto.php @@ -93,6 +93,7 @@ class TriggerEventRequestDto * @param ?string $transactionId * @param string|SubscriberPayloadDto|null $actor * @param string|TenantPayloadDto|null $tenant + * @phpstan-pure */ public function __construct(string $workflowId, array|string|SubscriberPayloadDto|TopicPayloadDto $to, ?array $payload = null, ?array $overrides = null, ?string $transactionId = null, string|SubscriberPayloadDto|null $actor = null, string|TenantPayloadDto|null $tenant = null) { diff --git a/src/Models/Components/TriggerEventResponseDto.php b/src/Models/Components/TriggerEventResponseDto.php index d5dc227..d108955 100644 --- a/src/Models/Components/TriggerEventResponseDto.php +++ b/src/Models/Components/TriggerEventResponseDto.php @@ -52,6 +52,7 @@ class TriggerEventResponseDto * @param Status $status * @param ?array $error * @param ?string $transactionId + * @phpstan-pure */ public function __construct(bool $acknowledged, Status $status, ?array $error = null, ?string $transactionId = null) { diff --git a/src/Models/Components/TriggerEventToAllRequestDto.php b/src/Models/Components/TriggerEventToAllRequestDto.php index 4bcc116..26d0880 100644 --- a/src/Models/Components/TriggerEventToAllRequestDto.php +++ b/src/Models/Components/TriggerEventToAllRequestDto.php @@ -83,6 +83,7 @@ class TriggerEventToAllRequestDto * @param ?string $transactionId * @param string|SubscriberPayloadDto|null $actor * @param string|TenantPayloadDto|null $tenant + * @phpstan-pure */ public function __construct(string $name, array $payload, ?TriggerEventToAllRequestDtoOverrides $overrides = null, ?string $transactionId = null, string|SubscriberPayloadDto|null $actor = null, string|TenantPayloadDto|null $tenant = null) { diff --git a/src/Models/Components/TriggerReservedVariableResponse.php b/src/Models/Components/TriggerReservedVariableResponse.php index 21d1bbe..92fe5e2 100644 --- a/src/Models/Components/TriggerReservedVariableResponse.php +++ b/src/Models/Components/TriggerReservedVariableResponse.php @@ -32,6 +32,7 @@ class TriggerReservedVariableResponse /** * @param TriggerReservedVariableResponseType $type * @param array $variables + * @phpstan-pure */ public function __construct(TriggerReservedVariableResponseType $type, array $variables) { diff --git a/src/Models/Components/UnseenCountResponse.php b/src/Models/Components/UnseenCountResponse.php index d4e5836..49ee2ea 100644 --- a/src/Models/Components/UnseenCountResponse.php +++ b/src/Models/Components/UnseenCountResponse.php @@ -20,6 +20,7 @@ class UnseenCountResponse /** * @param float $count + * @phpstan-pure */ public function __construct(float $count) { diff --git a/src/Models/Components/UpdateIntegrationRequestDto.php b/src/Models/Components/UpdateIntegrationRequestDto.php index 10d4a9b..f6a2b23 100644 --- a/src/Models/Components/UpdateIntegrationRequestDto.php +++ b/src/Models/Components/UpdateIntegrationRequestDto.php @@ -89,6 +89,7 @@ class UpdateIntegrationRequestDto * @param ?bool $removeNovuBranding * @param ?bool $check * @param ?array $conditions + * @phpstan-pure */ public function __construct(?string $name = null, ?string $identifier = null, ?string $environmentId = null, ?bool $active = null, ?CredentialsDto $credentials = null, ?bool $removeNovuBranding = null, ?bool $check = null, ?array $conditions = null) { diff --git a/src/Models/Components/UpdateSubscriberChannelRequestDto.php b/src/Models/Components/UpdateSubscriberChannelRequestDto.php index 2ca019f..dd412b3 100644 --- a/src/Models/Components/UpdateSubscriberChannelRequestDto.php +++ b/src/Models/Components/UpdateSubscriberChannelRequestDto.php @@ -42,6 +42,7 @@ class UpdateSubscriberChannelRequestDto * @param UpdateSubscriberChannelRequestDtoProviderId $providerId * @param ChannelCredentials $credentials * @param ?string $integrationIdentifier + * @phpstan-pure */ public function __construct(UpdateSubscriberChannelRequestDtoProviderId $providerId, ChannelCredentials $credentials, ?string $integrationIdentifier = null) { diff --git a/src/Models/Components/UpdateSubscriberGlobalPreferencesRequestDto.php b/src/Models/Components/UpdateSubscriberGlobalPreferencesRequestDto.php index 34c677c..11c6971 100644 --- a/src/Models/Components/UpdateSubscriberGlobalPreferencesRequestDto.php +++ b/src/Models/Components/UpdateSubscriberGlobalPreferencesRequestDto.php @@ -33,6 +33,7 @@ class UpdateSubscriberGlobalPreferencesRequestDto /** * @param ?bool $enabled * @param ?array $preferences + * @phpstan-pure */ public function __construct(?bool $enabled = null, ?array $preferences = null) { diff --git a/src/Models/Components/UpdateSubscriberOnlineFlagRequestDto.php b/src/Models/Components/UpdateSubscriberOnlineFlagRequestDto.php index 1fecdeb..edc20b2 100644 --- a/src/Models/Components/UpdateSubscriberOnlineFlagRequestDto.php +++ b/src/Models/Components/UpdateSubscriberOnlineFlagRequestDto.php @@ -20,6 +20,7 @@ class UpdateSubscriberOnlineFlagRequestDto /** * @param bool $isOnline + * @phpstan-pure */ public function __construct(bool $isOnline) { diff --git a/src/Models/Components/UpdateSubscriberPreferenceGlobalResponseDto.php b/src/Models/Components/UpdateSubscriberPreferenceGlobalResponseDto.php index 5ec7b16..ee5939a 100644 --- a/src/Models/Components/UpdateSubscriberPreferenceGlobalResponseDto.php +++ b/src/Models/Components/UpdateSubscriberPreferenceGlobalResponseDto.php @@ -22,6 +22,7 @@ class UpdateSubscriberPreferenceGlobalResponseDto /** * @param Preference $preference + * @phpstan-pure */ public function __construct(Preference $preference) { diff --git a/src/Models/Components/UpdateSubscriberPreferenceRequestDto.php b/src/Models/Components/UpdateSubscriberPreferenceRequestDto.php index 2bde91c..e439b13 100644 --- a/src/Models/Components/UpdateSubscriberPreferenceRequestDto.php +++ b/src/Models/Components/UpdateSubscriberPreferenceRequestDto.php @@ -33,6 +33,7 @@ class UpdateSubscriberPreferenceRequestDto /** * @param ?ChannelPreference $channel * @param ?bool $enabled + * @phpstan-pure */ public function __construct(?ChannelPreference $channel = null, ?bool $enabled = null) { diff --git a/src/Models/Components/UpdateSubscriberPreferenceResponseDto.php b/src/Models/Components/UpdateSubscriberPreferenceResponseDto.php index 165683e..51a8991 100644 --- a/src/Models/Components/UpdateSubscriberPreferenceResponseDto.php +++ b/src/Models/Components/UpdateSubscriberPreferenceResponseDto.php @@ -32,6 +32,7 @@ class UpdateSubscriberPreferenceResponseDto /** * @param TemplateResponse $template * @param Preference $preference + * @phpstan-pure */ public function __construct(TemplateResponse $template, Preference $preference) { diff --git a/src/Models/Components/UpdateSubscriberRequestDto.php b/src/Models/Components/UpdateSubscriberRequestDto.php index c0b7d5f..84d0b4f 100644 --- a/src/Models/Components/UpdateSubscriberRequestDto.php +++ b/src/Models/Components/UpdateSubscriberRequestDto.php @@ -94,6 +94,7 @@ class UpdateSubscriberRequestDto * @param ?string $locale * @param ?array $data * @param ?array $channels + * @phpstan-pure */ public function __construct(?string $email = null, ?string $firstName = null, ?string $lastName = null, ?string $phone = null, ?string $avatar = null, ?string $locale = null, ?array $data = null, ?array $channels = null) { diff --git a/src/Models/Components/UpdatedSubscriberDto.php b/src/Models/Components/UpdatedSubscriberDto.php index 15794e7..c73ad30 100644 --- a/src/Models/Components/UpdatedSubscriberDto.php +++ b/src/Models/Components/UpdatedSubscriberDto.php @@ -21,6 +21,7 @@ class UpdatedSubscriberDto /** * @param string $subscriberId + * @phpstan-pure */ public function __construct(string $subscriberId) { diff --git a/src/Models/Components/WorkflowInfoDto.php b/src/Models/Components/WorkflowInfoDto.php index b51baa2..9912567 100644 --- a/src/Models/Components/WorkflowInfoDto.php +++ b/src/Models/Components/WorkflowInfoDto.php @@ -39,6 +39,7 @@ class WorkflowInfoDto * @param string $slug * @param string $identifier * @param string $name + * @phpstan-pure */ public function __construct(string $slug, string $identifier, string $name) { diff --git a/src/Models/Components/WorkflowPreferenceDto.php b/src/Models/Components/WorkflowPreferenceDto.php index f807cef..66c551a 100644 --- a/src/Models/Components/WorkflowPreferenceDto.php +++ b/src/Models/Components/WorkflowPreferenceDto.php @@ -51,6 +51,7 @@ class WorkflowPreferenceDto * @param PreferenceChannels $channels * @param array $overrides * @param WorkflowInfoDto $workflow + * @phpstan-pure */ public function __construct(bool $enabled, PreferenceChannels $channels, array $overrides, WorkflowInfoDto $workflow) { diff --git a/src/Models/Components/WorkflowResponse.php b/src/Models/Components/WorkflowResponse.php index d1c6099..cc06f1e 100644 --- a/src/Models/Components/WorkflowResponse.php +++ b/src/Models/Components/WorkflowResponse.php @@ -195,6 +195,7 @@ class WorkflowResponse * @param ?NotificationGroup $notificationGroup * @param ?WorkflowResponseData $data * @param ?WorkflowIntegrationStatus $workflowIntegrationStatus + * @phpstan-pure */ public function __construct(string $name, string $description, bool $active, bool $draft, PreferenceChannels $preferenceSettings, bool $critical, array $tags, array $steps, string $organizationId, string $creatorId, string $environmentId, array $triggers, string $notificationGroupId, bool $deleted, string $deletedAt, string $deletedBy, ?string $id = null, ?string $parentId = null, ?NotificationGroup $notificationGroup = null, ?WorkflowResponseData $data = null, ?WorkflowIntegrationStatus $workflowIntegrationStatus = null) { diff --git a/src/Models/Errors/ErrorDto.php b/src/Models/Errors/ErrorDto.php index 15c3c1e..441e9e3 100644 --- a/src/Models/Errors/ErrorDto.php +++ b/src/Models/Errors/ErrorDto.php @@ -71,6 +71,7 @@ class ErrorDto * @param string $message * @param ?array $ctx * @param ?string $errorId + * @phpstan-pure */ public function __construct(float $statusCode, string $timestamp, string $path, string $message, ?array $ctx = null, ?string $errorId = null) { diff --git a/src/Models/Errors/Errors.php b/src/Models/Errors/Errors.php index feafd57..54f2e08 100644 --- a/src/Models/Errors/Errors.php +++ b/src/Models/Errors/Errors.php @@ -31,6 +31,7 @@ class Errors /** * @param array $messages * @param string|float|bool|array|array>|null $value + * @phpstan-pure */ public function __construct(array $messages, string|float|bool|array|null $value = null) { diff --git a/src/Models/Errors/ValidationErrorDto.php b/src/Models/Errors/ValidationErrorDto.php index b7991d1..6fe98f1 100644 --- a/src/Models/Errors/ValidationErrorDto.php +++ b/src/Models/Errors/ValidationErrorDto.php @@ -81,6 +81,7 @@ class ValidationErrorDto * @param array $errors * @param ?array $ctx * @param ?string $errorId + * @phpstan-pure */ public function __construct(float $statusCode, string $timestamp, string $path, string $message, array $errors, ?array $ctx = null, ?string $errorId = null) { diff --git a/src/Models/Operations/EventsControllerBroadcastEventToAllRequest.php b/src/Models/Operations/EventsControllerBroadcastEventToAllRequest.php index 07649b8..9f0cbb3 100644 --- a/src/Models/Operations/EventsControllerBroadcastEventToAllRequest.php +++ b/src/Models/Operations/EventsControllerBroadcastEventToAllRequest.php @@ -30,6 +30,7 @@ class EventsControllerBroadcastEventToAllRequest /** * @param Components\TriggerEventToAllRequestDto $triggerEventToAllRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(Components\TriggerEventToAllRequestDto $triggerEventToAllRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/EventsControllerBroadcastEventToAllResponse.php b/src/Models/Operations/EventsControllerBroadcastEventToAllResponse.php index e5197cb..d6f6e24 100644 --- a/src/Models/Operations/EventsControllerBroadcastEventToAllResponse.php +++ b/src/Models/Operations/EventsControllerBroadcastEventToAllResponse.php @@ -52,6 +52,7 @@ class EventsControllerBroadcastEventToAllResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\TriggerEventResponseDto $triggerEventResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\TriggerEventResponseDto $triggerEventResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/EventsControllerCancelRequest.php b/src/Models/Operations/EventsControllerCancelRequest.php index ddb81c0..b21801c 100644 --- a/src/Models/Operations/EventsControllerCancelRequest.php +++ b/src/Models/Operations/EventsControllerCancelRequest.php @@ -29,6 +29,7 @@ class EventsControllerCancelRequest /** * @param string $transactionId * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $transactionId, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/EventsControllerCancelResponse.php b/src/Models/Operations/EventsControllerCancelResponse.php index 83c8a91..8ede681 100644 --- a/src/Models/Operations/EventsControllerCancelResponse.php +++ b/src/Models/Operations/EventsControllerCancelResponse.php @@ -51,6 +51,7 @@ class EventsControllerCancelResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\DataBooleanDto $dataBooleanDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DataBooleanDto $dataBooleanDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/EventsControllerTriggerBulkRequest.php b/src/Models/Operations/EventsControllerTriggerBulkRequest.php index 4d367fe..f544cfe 100644 --- a/src/Models/Operations/EventsControllerTriggerBulkRequest.php +++ b/src/Models/Operations/EventsControllerTriggerBulkRequest.php @@ -30,6 +30,7 @@ class EventsControllerTriggerBulkRequest /** * @param Components\BulkTriggerEventDto $bulkTriggerEventDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(Components\BulkTriggerEventDto $bulkTriggerEventDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/EventsControllerTriggerBulkResponse.php b/src/Models/Operations/EventsControllerTriggerBulkResponse.php index 93daa4e..67c1c27 100644 --- a/src/Models/Operations/EventsControllerTriggerBulkResponse.php +++ b/src/Models/Operations/EventsControllerTriggerBulkResponse.php @@ -52,6 +52,7 @@ class EventsControllerTriggerBulkResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?array $triggerEventResponseDtos + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $triggerEventResponseDtos = null, ?array $headers = []) { diff --git a/src/Models/Operations/EventsControllerTriggerRequest.php b/src/Models/Operations/EventsControllerTriggerRequest.php index 4bf19ad..8813c6f 100644 --- a/src/Models/Operations/EventsControllerTriggerRequest.php +++ b/src/Models/Operations/EventsControllerTriggerRequest.php @@ -30,6 +30,7 @@ class EventsControllerTriggerRequest /** * @param Components\TriggerEventRequestDto $triggerEventRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(Components\TriggerEventRequestDto $triggerEventRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/EventsControllerTriggerResponse.php b/src/Models/Operations/EventsControllerTriggerResponse.php index a6658f1..4812ad5 100644 --- a/src/Models/Operations/EventsControllerTriggerResponse.php +++ b/src/Models/Operations/EventsControllerTriggerResponse.php @@ -52,6 +52,7 @@ class EventsControllerTriggerResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\TriggerEventResponseDto $triggerEventResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\TriggerEventResponseDto $triggerEventResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/IntegrationsControllerCreateIntegrationRequest.php b/src/Models/Operations/IntegrationsControllerCreateIntegrationRequest.php index 911ebd1..286b0f2 100644 --- a/src/Models/Operations/IntegrationsControllerCreateIntegrationRequest.php +++ b/src/Models/Operations/IntegrationsControllerCreateIntegrationRequest.php @@ -30,6 +30,7 @@ class IntegrationsControllerCreateIntegrationRequest /** * @param Components\CreateIntegrationRequestDto $createIntegrationRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(Components\CreateIntegrationRequestDto $createIntegrationRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/IntegrationsControllerCreateIntegrationResponse.php b/src/Models/Operations/IntegrationsControllerCreateIntegrationResponse.php index a2c3922..76fee23 100644 --- a/src/Models/Operations/IntegrationsControllerCreateIntegrationResponse.php +++ b/src/Models/Operations/IntegrationsControllerCreateIntegrationResponse.php @@ -52,6 +52,7 @@ class IntegrationsControllerCreateIntegrationResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\IntegrationResponseDto $integrationResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\IntegrationResponseDto $integrationResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/IntegrationsControllerGetActiveIntegrationsRequest.php b/src/Models/Operations/IntegrationsControllerGetActiveIntegrationsRequest.php index 2d0e929..e46793b 100644 --- a/src/Models/Operations/IntegrationsControllerGetActiveIntegrationsRequest.php +++ b/src/Models/Operations/IntegrationsControllerGetActiveIntegrationsRequest.php @@ -21,6 +21,7 @@ class IntegrationsControllerGetActiveIntegrationsRequest /** * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(?string $idempotencyKey = null) { diff --git a/src/Models/Operations/IntegrationsControllerGetActiveIntegrationsResponse.php b/src/Models/Operations/IntegrationsControllerGetActiveIntegrationsResponse.php index 5225b4a..ebe25a7 100644 --- a/src/Models/Operations/IntegrationsControllerGetActiveIntegrationsResponse.php +++ b/src/Models/Operations/IntegrationsControllerGetActiveIntegrationsResponse.php @@ -52,6 +52,7 @@ class IntegrationsControllerGetActiveIntegrationsResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?array $integrationResponseDtos + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $integrationResponseDtos = null, ?array $headers = []) { diff --git a/src/Models/Operations/IntegrationsControllerGetWebhookSupportStatusRequest.php b/src/Models/Operations/IntegrationsControllerGetWebhookSupportStatusRequest.php index 38aec9c..ee3feaa 100644 --- a/src/Models/Operations/IntegrationsControllerGetWebhookSupportStatusRequest.php +++ b/src/Models/Operations/IntegrationsControllerGetWebhookSupportStatusRequest.php @@ -29,6 +29,7 @@ class IntegrationsControllerGetWebhookSupportStatusRequest /** * @param string $providerOrIntegrationId * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $providerOrIntegrationId, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/IntegrationsControllerGetWebhookSupportStatusResponse.php b/src/Models/Operations/IntegrationsControllerGetWebhookSupportStatusResponse.php index 4a08c04..da4cd8b 100644 --- a/src/Models/Operations/IntegrationsControllerGetWebhookSupportStatusResponse.php +++ b/src/Models/Operations/IntegrationsControllerGetWebhookSupportStatusResponse.php @@ -52,6 +52,7 @@ class IntegrationsControllerGetWebhookSupportStatusResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?bool $boolean + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?bool $boolean = null, ?array $headers = []) { diff --git a/src/Models/Operations/IntegrationsControllerListIntegrationsRequest.php b/src/Models/Operations/IntegrationsControllerListIntegrationsRequest.php index 8dba71a..3b40c2a 100644 --- a/src/Models/Operations/IntegrationsControllerListIntegrationsRequest.php +++ b/src/Models/Operations/IntegrationsControllerListIntegrationsRequest.php @@ -21,6 +21,7 @@ class IntegrationsControllerListIntegrationsRequest /** * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(?string $idempotencyKey = null) { diff --git a/src/Models/Operations/IntegrationsControllerListIntegrationsResponse.php b/src/Models/Operations/IntegrationsControllerListIntegrationsResponse.php index 4633990..9c7cb24 100644 --- a/src/Models/Operations/IntegrationsControllerListIntegrationsResponse.php +++ b/src/Models/Operations/IntegrationsControllerListIntegrationsResponse.php @@ -52,6 +52,7 @@ class IntegrationsControllerListIntegrationsResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?array $integrationResponseDtos + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $integrationResponseDtos = null, ?array $headers = []) { diff --git a/src/Models/Operations/IntegrationsControllerRemoveIntegrationRequest.php b/src/Models/Operations/IntegrationsControllerRemoveIntegrationRequest.php index 9a5f2f9..33fff77 100644 --- a/src/Models/Operations/IntegrationsControllerRemoveIntegrationRequest.php +++ b/src/Models/Operations/IntegrationsControllerRemoveIntegrationRequest.php @@ -29,6 +29,7 @@ class IntegrationsControllerRemoveIntegrationRequest /** * @param string $integrationId * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $integrationId, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/IntegrationsControllerRemoveIntegrationResponse.php b/src/Models/Operations/IntegrationsControllerRemoveIntegrationResponse.php index ed443b3..19f2f11 100644 --- a/src/Models/Operations/IntegrationsControllerRemoveIntegrationResponse.php +++ b/src/Models/Operations/IntegrationsControllerRemoveIntegrationResponse.php @@ -52,6 +52,7 @@ class IntegrationsControllerRemoveIntegrationResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?array $integrationResponseDtos + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $integrationResponseDtos = null, ?array $headers = []) { diff --git a/src/Models/Operations/IntegrationsControllerSetIntegrationAsPrimaryRequest.php b/src/Models/Operations/IntegrationsControllerSetIntegrationAsPrimaryRequest.php index 81b665f..aac8e14 100644 --- a/src/Models/Operations/IntegrationsControllerSetIntegrationAsPrimaryRequest.php +++ b/src/Models/Operations/IntegrationsControllerSetIntegrationAsPrimaryRequest.php @@ -29,6 +29,7 @@ class IntegrationsControllerSetIntegrationAsPrimaryRequest /** * @param string $integrationId * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $integrationId, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/IntegrationsControllerSetIntegrationAsPrimaryResponse.php b/src/Models/Operations/IntegrationsControllerSetIntegrationAsPrimaryResponse.php index f141b34..a210920 100644 --- a/src/Models/Operations/IntegrationsControllerSetIntegrationAsPrimaryResponse.php +++ b/src/Models/Operations/IntegrationsControllerSetIntegrationAsPrimaryResponse.php @@ -52,6 +52,7 @@ class IntegrationsControllerSetIntegrationAsPrimaryResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\IntegrationResponseDto $integrationResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\IntegrationResponseDto $integrationResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/IntegrationsControllerUpdateIntegrationByIdRequest.php b/src/Models/Operations/IntegrationsControllerUpdateIntegrationByIdRequest.php index e020dde..c0668ee 100644 --- a/src/Models/Operations/IntegrationsControllerUpdateIntegrationByIdRequest.php +++ b/src/Models/Operations/IntegrationsControllerUpdateIntegrationByIdRequest.php @@ -38,6 +38,7 @@ class IntegrationsControllerUpdateIntegrationByIdRequest * @param string $integrationId * @param Components\UpdateIntegrationRequestDto $updateIntegrationRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $integrationId, Components\UpdateIntegrationRequestDto $updateIntegrationRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/IntegrationsControllerUpdateIntegrationByIdResponse.php b/src/Models/Operations/IntegrationsControllerUpdateIntegrationByIdResponse.php index 63457e6..e75c94a 100644 --- a/src/Models/Operations/IntegrationsControllerUpdateIntegrationByIdResponse.php +++ b/src/Models/Operations/IntegrationsControllerUpdateIntegrationByIdResponse.php @@ -52,6 +52,7 @@ class IntegrationsControllerUpdateIntegrationByIdResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\IntegrationResponseDto $integrationResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\IntegrationResponseDto $integrationResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/MessagesControllerDeleteMessageRequest.php b/src/Models/Operations/MessagesControllerDeleteMessageRequest.php index 4e8901e..916adff 100644 --- a/src/Models/Operations/MessagesControllerDeleteMessageRequest.php +++ b/src/Models/Operations/MessagesControllerDeleteMessageRequest.php @@ -29,6 +29,7 @@ class MessagesControllerDeleteMessageRequest /** * @param string $messageId * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $messageId, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/MessagesControllerDeleteMessageResponse.php b/src/Models/Operations/MessagesControllerDeleteMessageResponse.php index c7665ee..d87cbff 100644 --- a/src/Models/Operations/MessagesControllerDeleteMessageResponse.php +++ b/src/Models/Operations/MessagesControllerDeleteMessageResponse.php @@ -52,6 +52,7 @@ class MessagesControllerDeleteMessageResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\DeleteMessageResponseDto $deleteMessageResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeleteMessageResponseDto $deleteMessageResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/MessagesControllerDeleteMessagesByTransactionIdRequest.php b/src/Models/Operations/MessagesControllerDeleteMessagesByTransactionIdRequest.php index ab0872a..2f302dc 100644 --- a/src/Models/Operations/MessagesControllerDeleteMessagesByTransactionIdRequest.php +++ b/src/Models/Operations/MessagesControllerDeleteMessagesByTransactionIdRequest.php @@ -38,6 +38,7 @@ class MessagesControllerDeleteMessagesByTransactionIdRequest * @param string $transactionId * @param ?Channel $channel * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $transactionId, ?Channel $channel = null, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/MessagesControllerDeleteMessagesByTransactionIdResponse.php b/src/Models/Operations/MessagesControllerDeleteMessagesByTransactionIdResponse.php index 58255fc..201bd4d 100644 --- a/src/Models/Operations/MessagesControllerDeleteMessagesByTransactionIdResponse.php +++ b/src/Models/Operations/MessagesControllerDeleteMessagesByTransactionIdResponse.php @@ -44,6 +44,7 @@ class MessagesControllerDeleteMessagesByTransactionIdResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $headers = []) { diff --git a/src/Models/Operations/MessagesControllerGetMessagesRequest.php b/src/Models/Operations/MessagesControllerGetMessagesRequest.php index 24732d8..5c41b66 100644 --- a/src/Models/Operations/MessagesControllerGetMessagesRequest.php +++ b/src/Models/Operations/MessagesControllerGetMessagesRequest.php @@ -64,6 +64,7 @@ class MessagesControllerGetMessagesRequest * @param ?float $page * @param ?float $limit * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(?Components\ChannelTypeEnum $channel = null, ?string $subscriberId = null, ?array $transactionId = null, ?string $idempotencyKey = null, ?float $page = 0, ?float $limit = 10) { diff --git a/src/Models/Operations/MessagesControllerGetMessagesResponse.php b/src/Models/Operations/MessagesControllerGetMessagesResponse.php index 77f8c3e..0a3838f 100644 --- a/src/Models/Operations/MessagesControllerGetMessagesResponse.php +++ b/src/Models/Operations/MessagesControllerGetMessagesResponse.php @@ -51,6 +51,7 @@ class MessagesControllerGetMessagesResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\ActivitiesResponseDto $activitiesResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\ActivitiesResponseDto $activitiesResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/NotificationsControllerGetActivityGraphStatsRequest.php b/src/Models/Operations/NotificationsControllerGetActivityGraphStatsRequest.php index fe574f5..a8e90b4 100644 --- a/src/Models/Operations/NotificationsControllerGetActivityGraphStatsRequest.php +++ b/src/Models/Operations/NotificationsControllerGetActivityGraphStatsRequest.php @@ -29,6 +29,7 @@ class NotificationsControllerGetActivityGraphStatsRequest /** * @param ?float $days * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(?float $days = null, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/NotificationsControllerGetActivityGraphStatsResponse.php b/src/Models/Operations/NotificationsControllerGetActivityGraphStatsResponse.php index b75f584..eeb651c 100644 --- a/src/Models/Operations/NotificationsControllerGetActivityGraphStatsResponse.php +++ b/src/Models/Operations/NotificationsControllerGetActivityGraphStatsResponse.php @@ -52,6 +52,7 @@ class NotificationsControllerGetActivityGraphStatsResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?array $activityGraphStatesResponses + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $activityGraphStatesResponses = null, ?array $headers = []) { diff --git a/src/Models/Operations/NotificationsControllerGetActivityStatsRequest.php b/src/Models/Operations/NotificationsControllerGetActivityStatsRequest.php index 20bf9aa..b59e63b 100644 --- a/src/Models/Operations/NotificationsControllerGetActivityStatsRequest.php +++ b/src/Models/Operations/NotificationsControllerGetActivityStatsRequest.php @@ -21,6 +21,7 @@ class NotificationsControllerGetActivityStatsRequest /** * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(?string $idempotencyKey = null) { diff --git a/src/Models/Operations/NotificationsControllerGetActivityStatsResponse.php b/src/Models/Operations/NotificationsControllerGetActivityStatsResponse.php index ae4fad5..0df0290 100644 --- a/src/Models/Operations/NotificationsControllerGetActivityStatsResponse.php +++ b/src/Models/Operations/NotificationsControllerGetActivityStatsResponse.php @@ -52,6 +52,7 @@ class NotificationsControllerGetActivityStatsResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\ActivityStatsResponseDto $activityStatsResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\ActivityStatsResponseDto $activityStatsResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/NotificationsControllerGetNotificationRequest.php b/src/Models/Operations/NotificationsControllerGetNotificationRequest.php index d10bb78..25a2410 100644 --- a/src/Models/Operations/NotificationsControllerGetNotificationRequest.php +++ b/src/Models/Operations/NotificationsControllerGetNotificationRequest.php @@ -29,6 +29,7 @@ class NotificationsControllerGetNotificationRequest /** * @param string $notificationId * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $notificationId, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/NotificationsControllerGetNotificationResponse.php b/src/Models/Operations/NotificationsControllerGetNotificationResponse.php index a75b9a1..5e0402b 100644 --- a/src/Models/Operations/NotificationsControllerGetNotificationResponse.php +++ b/src/Models/Operations/NotificationsControllerGetNotificationResponse.php @@ -52,6 +52,7 @@ class NotificationsControllerGetNotificationResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\ActivityNotificationResponseDto $activityNotificationResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\ActivityNotificationResponseDto $activityNotificationResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/NotificationsControllerListNotificationsRequest.php b/src/Models/Operations/NotificationsControllerListNotificationsRequest.php index 9ea7cad..6eec237 100644 --- a/src/Models/Operations/NotificationsControllerListNotificationsRequest.php +++ b/src/Models/Operations/NotificationsControllerListNotificationsRequest.php @@ -104,6 +104,7 @@ class NotificationsControllerListNotificationsRequest * @param ?string $after * @param ?string $before * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(?array $channels = null, ?array $templates = null, ?array $emails = null, ?string $search = null, ?array $subscriberIds = null, ?string $transactionId = null, ?string $after = null, ?string $before = null, ?string $idempotencyKey = null, ?float $page = 0) { diff --git a/src/Models/Operations/NotificationsControllerListNotificationsResponse.php b/src/Models/Operations/NotificationsControllerListNotificationsResponse.php index 91825b0..9ed5f0d 100644 --- a/src/Models/Operations/NotificationsControllerListNotificationsResponse.php +++ b/src/Models/Operations/NotificationsControllerListNotificationsResponse.php @@ -51,6 +51,7 @@ class NotificationsControllerListNotificationsResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\ActivitiesResponseDto $activitiesResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\ActivitiesResponseDto $activitiesResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersControllerGetSubscriberPreferencesRequest.php b/src/Models/Operations/SubscribersControllerGetSubscriberPreferencesRequest.php index a013c46..f8ea014 100644 --- a/src/Models/Operations/SubscribersControllerGetSubscriberPreferencesRequest.php +++ b/src/Models/Operations/SubscribersControllerGetSubscriberPreferencesRequest.php @@ -29,6 +29,7 @@ class SubscribersControllerGetSubscriberPreferencesRequest /** * @param string $subscriberId * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersControllerGetSubscriberPreferencesResponse.php b/src/Models/Operations/SubscribersControllerGetSubscriberPreferencesResponse.php index eff27fe..82a22dd 100644 --- a/src/Models/Operations/SubscribersControllerGetSubscriberPreferencesResponse.php +++ b/src/Models/Operations/SubscribersControllerGetSubscriberPreferencesResponse.php @@ -52,6 +52,7 @@ class SubscribersControllerGetSubscriberPreferencesResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\GetSubscriberPreferencesDto $getSubscriberPreferencesDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\GetSubscriberPreferencesDto $getSubscriberPreferencesDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersControllerGetSubscriberRequest.php b/src/Models/Operations/SubscribersControllerGetSubscriberRequest.php index 6d3de33..12013a8 100644 --- a/src/Models/Operations/SubscribersControllerGetSubscriberRequest.php +++ b/src/Models/Operations/SubscribersControllerGetSubscriberRequest.php @@ -29,6 +29,7 @@ class SubscribersControllerGetSubscriberRequest /** * @param string $subscriberId * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersControllerGetSubscriberResponse.php b/src/Models/Operations/SubscribersControllerGetSubscriberResponse.php index 3966853..f7933fd 100644 --- a/src/Models/Operations/SubscribersControllerGetSubscriberResponse.php +++ b/src/Models/Operations/SubscribersControllerGetSubscriberResponse.php @@ -52,6 +52,7 @@ class SubscribersControllerGetSubscriberResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\SubscriberResponseDto $subscriberResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SubscriberResponseDto $subscriberResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersControllerPatchSubscriberRequest.php b/src/Models/Operations/SubscribersControllerPatchSubscriberRequest.php index 4d9b8e4..27e9fd1 100644 --- a/src/Models/Operations/SubscribersControllerPatchSubscriberRequest.php +++ b/src/Models/Operations/SubscribersControllerPatchSubscriberRequest.php @@ -38,6 +38,7 @@ class SubscribersControllerPatchSubscriberRequest * @param string $subscriberId * @param Components\PatchSubscriberRequestDto $patchSubscriberRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, Components\PatchSubscriberRequestDto $patchSubscriberRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersControllerPatchSubscriberResponse.php b/src/Models/Operations/SubscribersControllerPatchSubscriberResponse.php index 9c5198a..b4f081d 100644 --- a/src/Models/Operations/SubscribersControllerPatchSubscriberResponse.php +++ b/src/Models/Operations/SubscribersControllerPatchSubscriberResponse.php @@ -52,6 +52,7 @@ class SubscribersControllerPatchSubscriberResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\SubscriberResponseDto $subscriberResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SubscriberResponseDto $subscriberResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersControllerRemoveSubscriberRequest.php b/src/Models/Operations/SubscribersControllerRemoveSubscriberRequest.php index 1f93819..7068fc5 100644 --- a/src/Models/Operations/SubscribersControllerRemoveSubscriberRequest.php +++ b/src/Models/Operations/SubscribersControllerRemoveSubscriberRequest.php @@ -29,6 +29,7 @@ class SubscribersControllerRemoveSubscriberRequest /** * @param string $subscriberId * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersControllerRemoveSubscriberResponse.php b/src/Models/Operations/SubscribersControllerRemoveSubscriberResponse.php index de9f20c..92057ed 100644 --- a/src/Models/Operations/SubscribersControllerRemoveSubscriberResponse.php +++ b/src/Models/Operations/SubscribersControllerRemoveSubscriberResponse.php @@ -52,6 +52,7 @@ class SubscribersControllerRemoveSubscriberResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\RemoveSubscriberResponseDto $removeSubscriberResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\RemoveSubscriberResponseDto $removeSubscriberResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersControllerSearchSubscribersRequest.php b/src/Models/Operations/SubscribersControllerSearchSubscribersRequest.php index 2bbc0e6..5031c88 100644 --- a/src/Models/Operations/SubscribersControllerSearchSubscribersRequest.php +++ b/src/Models/Operations/SubscribersControllerSearchSubscribersRequest.php @@ -99,6 +99,7 @@ class SubscribersControllerSearchSubscribersRequest * @param ?OrderDirection $orderDirection * @param mixed $orderBy * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(?string $after = null, ?string $before = null, ?string $email = null, ?string $name = null, ?string $phone = null, ?string $subscriberId = null, ?float $limit = null, ?OrderDirection $orderDirection = null, mixed $orderBy = null, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersControllerSearchSubscribersResponse.php b/src/Models/Operations/SubscribersControllerSearchSubscribersResponse.php index ad44d5b..9f1438e 100644 --- a/src/Models/Operations/SubscribersControllerSearchSubscribersResponse.php +++ b/src/Models/Operations/SubscribersControllerSearchSubscribersResponse.php @@ -52,6 +52,7 @@ class SubscribersControllerSearchSubscribersResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\ListSubscribersResponseDto $listSubscribersResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\ListSubscribersResponseDto $listSubscribersResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersControllerUpdateSubscriberPreferencesRequest.php b/src/Models/Operations/SubscribersControllerUpdateSubscriberPreferencesRequest.php index a8be45c..8e21fd6 100644 --- a/src/Models/Operations/SubscribersControllerUpdateSubscriberPreferencesRequest.php +++ b/src/Models/Operations/SubscribersControllerUpdateSubscriberPreferencesRequest.php @@ -38,6 +38,7 @@ class SubscribersControllerUpdateSubscriberPreferencesRequest * @param string $subscriberId * @param Components\PatchSubscriberPreferencesDto $patchSubscriberPreferencesDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, Components\PatchSubscriberPreferencesDto $patchSubscriberPreferencesDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersControllerUpdateSubscriberPreferencesResponse.php b/src/Models/Operations/SubscribersControllerUpdateSubscriberPreferencesResponse.php index 0a27521..bfadf85 100644 --- a/src/Models/Operations/SubscribersControllerUpdateSubscriberPreferencesResponse.php +++ b/src/Models/Operations/SubscribersControllerUpdateSubscriberPreferencesResponse.php @@ -52,6 +52,7 @@ class SubscribersControllerUpdateSubscriberPreferencesResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\GetSubscriberPreferencesDto $getSubscriberPreferencesDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\GetSubscriberPreferencesDto $getSubscriberPreferencesDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerBulkCreateSubscribersRequest.php b/src/Models/Operations/SubscribersV1ControllerBulkCreateSubscribersRequest.php index 9d1036d..9ccb5d9 100644 --- a/src/Models/Operations/SubscribersV1ControllerBulkCreateSubscribersRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerBulkCreateSubscribersRequest.php @@ -30,6 +30,7 @@ class SubscribersV1ControllerBulkCreateSubscribersRequest /** * @param Components\BulkSubscriberCreateDto $bulkSubscriberCreateDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(Components\BulkSubscriberCreateDto $bulkSubscriberCreateDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerBulkCreateSubscribersResponse.php b/src/Models/Operations/SubscribersV1ControllerBulkCreateSubscribersResponse.php index d5a2282..c09f97f 100644 --- a/src/Models/Operations/SubscribersV1ControllerBulkCreateSubscribersResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerBulkCreateSubscribersResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerBulkCreateSubscribersResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\BulkCreateSubscriberResponseDto $bulkCreateSubscriberResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\BulkCreateSubscriberResponseDto $bulkCreateSubscriberResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerChatAccessOauthRequest.php b/src/Models/Operations/SubscribersV1ControllerChatAccessOauthRequest.php index 5d514d5..c68dfff 100644 --- a/src/Models/Operations/SubscribersV1ControllerChatAccessOauthRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerChatAccessOauthRequest.php @@ -64,6 +64,7 @@ class SubscribersV1ControllerChatAccessOauthRequest * @param string $environmentId * @param ?string $integrationIdentifier * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, mixed $providerId, string $hmacHash, string $environmentId, ?string $integrationIdentifier = null, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerChatAccessOauthResponse.php b/src/Models/Operations/SubscribersV1ControllerChatAccessOauthResponse.php index 7f86b11..61aad2f 100644 --- a/src/Models/Operations/SubscribersV1ControllerChatAccessOauthResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerChatAccessOauthResponse.php @@ -44,6 +44,7 @@ class SubscribersV1ControllerChatAccessOauthResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerChatOauthCallbackRequest.php b/src/Models/Operations/SubscribersV1ControllerChatOauthCallbackRequest.php index ee02a3c..5a57c3e 100644 --- a/src/Models/Operations/SubscribersV1ControllerChatOauthCallbackRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerChatOauthCallbackRequest.php @@ -73,6 +73,7 @@ class SubscribersV1ControllerChatOauthCallbackRequest * @param string $code * @param ?string $integrationIdentifier * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, mixed $providerId, string $hmacHash, string $environmentId, string $code, ?string $integrationIdentifier = null, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerChatOauthCallbackResponse.php b/src/Models/Operations/SubscribersV1ControllerChatOauthCallbackResponse.php index 220db62..6d79544 100644 --- a/src/Models/Operations/SubscribersV1ControllerChatOauthCallbackResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerChatOauthCallbackResponse.php @@ -60,6 +60,7 @@ class SubscribersV1ControllerChatOauthCallbackResponse * @param array> $headers * @param ?string $res * @param ?string $string + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?string $res = null, ?string $string = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerCreateSubscriberRequest.php b/src/Models/Operations/SubscribersV1ControllerCreateSubscriberRequest.php index 3b7c706..f66e74c 100644 --- a/src/Models/Operations/SubscribersV1ControllerCreateSubscriberRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerCreateSubscriberRequest.php @@ -30,6 +30,7 @@ class SubscribersV1ControllerCreateSubscriberRequest /** * @param Components\CreateSubscriberRequestDto $createSubscriberRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(Components\CreateSubscriberRequestDto $createSubscriberRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerCreateSubscriberResponse.php b/src/Models/Operations/SubscribersV1ControllerCreateSubscriberResponse.php index b5a6a88..4d9807b 100644 --- a/src/Models/Operations/SubscribersV1ControllerCreateSubscriberResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerCreateSubscriberResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerCreateSubscriberResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\SubscriberResponseDto $subscriberResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SubscriberResponseDto $subscriberResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerDeleteSubscriberCredentialsRequest.php b/src/Models/Operations/SubscribersV1ControllerDeleteSubscriberCredentialsRequest.php index 7b362bc..59cf305 100644 --- a/src/Models/Operations/SubscribersV1ControllerDeleteSubscriberCredentialsRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerDeleteSubscriberCredentialsRequest.php @@ -37,6 +37,7 @@ class SubscribersV1ControllerDeleteSubscriberCredentialsRequest * @param string $subscriberId * @param string $providerId * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, string $providerId, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerDeleteSubscriberCredentialsResponse.php b/src/Models/Operations/SubscribersV1ControllerDeleteSubscriberCredentialsResponse.php index c6b8b2f..d8afcb1 100644 --- a/src/Models/Operations/SubscribersV1ControllerDeleteSubscriberCredentialsResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerDeleteSubscriberCredentialsResponse.php @@ -44,6 +44,7 @@ class SubscribersV1ControllerDeleteSubscriberCredentialsResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerGetNotificationsFeedRequest.php b/src/Models/Operations/SubscribersV1ControllerGetNotificationsFeedRequest.php index f14d70f..787a202 100644 --- a/src/Models/Operations/SubscribersV1ControllerGetNotificationsFeedRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerGetNotificationsFeedRequest.php @@ -70,6 +70,7 @@ class SubscribersV1ControllerGetNotificationsFeedRequest * @param ?bool $seen * @param ?string $payload * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, ?float $page = null, ?bool $read = null, ?bool $seen = null, ?string $payload = null, ?string $idempotencyKey = null, ?float $limit = 10) { diff --git a/src/Models/Operations/SubscribersV1ControllerGetNotificationsFeedResponse.php b/src/Models/Operations/SubscribersV1ControllerGetNotificationsFeedResponse.php index e3f74c2..7d19049 100644 --- a/src/Models/Operations/SubscribersV1ControllerGetNotificationsFeedResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerGetNotificationsFeedResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerGetNotificationsFeedResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\FeedResponseDto $feedResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\FeedResponseDto $feedResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerGetSubscriberPreferenceByLevelRequest.php b/src/Models/Operations/SubscribersV1ControllerGetSubscriberPreferenceByLevelRequest.php index 1c3809f..283038a 100644 --- a/src/Models/Operations/SubscribersV1ControllerGetSubscriberPreferenceByLevelRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerGetSubscriberPreferenceByLevelRequest.php @@ -47,6 +47,7 @@ class SubscribersV1ControllerGetSubscriberPreferenceByLevelRequest * @param string $subscriberId * @param ?bool $includeInactiveChannels * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(Parameter $preferenceLevel, string $subscriberId, ?bool $includeInactiveChannels = null, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerGetSubscriberPreferenceByLevelResponse.php b/src/Models/Operations/SubscribersV1ControllerGetSubscriberPreferenceByLevelResponse.php index 1d13f46..eb9ea08 100644 --- a/src/Models/Operations/SubscribersV1ControllerGetSubscriberPreferenceByLevelResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerGetSubscriberPreferenceByLevelResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerGetSubscriberPreferenceByLevelResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?array $getSubscriberPreferencesResponseDtos + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $getSubscriberPreferencesResponseDtos = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerGetSubscriberRequest.php b/src/Models/Operations/SubscribersV1ControllerGetSubscriberRequest.php index fa4e6ab..5ccdc72 100644 --- a/src/Models/Operations/SubscribersV1ControllerGetSubscriberRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerGetSubscriberRequest.php @@ -38,6 +38,7 @@ class SubscribersV1ControllerGetSubscriberRequest * @param string $subscriberId * @param ?bool $includeTopics * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, ?bool $includeTopics = null, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerGetSubscriberResponse.php b/src/Models/Operations/SubscribersV1ControllerGetSubscriberResponse.php index aaf48c8..4124f8b 100644 --- a/src/Models/Operations/SubscribersV1ControllerGetSubscriberResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerGetSubscriberResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerGetSubscriberResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\SubscriberResponseDto $subscriberResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SubscriberResponseDto $subscriberResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerGetUnseenCountRequest.php b/src/Models/Operations/SubscribersV1ControllerGetUnseenCountRequest.php index a4f9372..dd55ca6 100644 --- a/src/Models/Operations/SubscribersV1ControllerGetUnseenCountRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerGetUnseenCountRequest.php @@ -47,6 +47,7 @@ class SubscribersV1ControllerGetUnseenCountRequest * @param ?bool $seen * @param ?float $limit * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, ?string $idempotencyKey = null, ?bool $seen = false, ?float $limit = 100) { diff --git a/src/Models/Operations/SubscribersV1ControllerGetUnseenCountResponse.php b/src/Models/Operations/SubscribersV1ControllerGetUnseenCountResponse.php index 118c88f..af67920 100644 --- a/src/Models/Operations/SubscribersV1ControllerGetUnseenCountResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerGetUnseenCountResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerGetUnseenCountResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\UnseenCountResponse $unseenCountResponse + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\UnseenCountResponse $unseenCountResponse = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerListSubscriberPreferencesRequest.php b/src/Models/Operations/SubscribersV1ControllerListSubscriberPreferencesRequest.php index be2044b..9db38cd 100644 --- a/src/Models/Operations/SubscribersV1ControllerListSubscriberPreferencesRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerListSubscriberPreferencesRequest.php @@ -38,6 +38,7 @@ class SubscribersV1ControllerListSubscriberPreferencesRequest * @param string $subscriberId * @param ?bool $includeInactiveChannels * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, ?bool $includeInactiveChannels = null, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerListSubscriberPreferencesResponse.php b/src/Models/Operations/SubscribersV1ControllerListSubscriberPreferencesResponse.php index 994170f..336b60b 100644 --- a/src/Models/Operations/SubscribersV1ControllerListSubscriberPreferencesResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerListSubscriberPreferencesResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerListSubscriberPreferencesResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?array $updateSubscriberPreferenceResponseDtos + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $updateSubscriberPreferenceResponseDtos = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerListSubscribersRequest.php b/src/Models/Operations/SubscribersV1ControllerListSubscribersRequest.php index 6ca7cee..b62c3cc 100644 --- a/src/Models/Operations/SubscribersV1ControllerListSubscribersRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerListSubscribersRequest.php @@ -37,6 +37,7 @@ class SubscribersV1ControllerListSubscribersRequest * @param ?float $page * @param ?float $limit * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(?float $page = null, ?string $idempotencyKey = null, ?float $limit = 10) { diff --git a/src/Models/Operations/SubscribersV1ControllerListSubscribersResponse.php b/src/Models/Operations/SubscribersV1ControllerListSubscribersResponse.php index d173358..8c83857 100644 --- a/src/Models/Operations/SubscribersV1ControllerListSubscribersResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerListSubscribersResponse.php @@ -55,6 +55,7 @@ class SubscribersV1ControllerListSubscribersResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?SubscribersV1ControllerListSubscribersResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?SubscribersV1ControllerListSubscribersResponseBody $object = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerListSubscribersResponseBody.php b/src/Models/Operations/SubscribersV1ControllerListSubscribersResponseBody.php index 879b08e..1a51b48 100644 --- a/src/Models/Operations/SubscribersV1ControllerListSubscribersResponseBody.php +++ b/src/Models/Operations/SubscribersV1ControllerListSubscribersResponseBody.php @@ -49,6 +49,7 @@ class SubscribersV1ControllerListSubscribersResponseBody * @param bool $hasMore * @param float $pageSize * @param array $data + * @phpstan-pure */ public function __construct(float $page, bool $hasMore, float $pageSize, array $data) { diff --git a/src/Models/Operations/SubscribersV1ControllerMarkActionAsSeenRequest.php b/src/Models/Operations/SubscribersV1ControllerMarkActionAsSeenRequest.php index 9b0d40a..7649655 100644 --- a/src/Models/Operations/SubscribersV1ControllerMarkActionAsSeenRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerMarkActionAsSeenRequest.php @@ -54,6 +54,7 @@ class SubscribersV1ControllerMarkActionAsSeenRequest * @param string $subscriberId * @param Components\MarkMessageActionAsSeenDto $markMessageActionAsSeenDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $messageId, mixed $type, string $subscriberId, Components\MarkMessageActionAsSeenDto $markMessageActionAsSeenDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerMarkActionAsSeenResponse.php b/src/Models/Operations/SubscribersV1ControllerMarkActionAsSeenResponse.php index 9789875..d50ba59 100644 --- a/src/Models/Operations/SubscribersV1ControllerMarkActionAsSeenResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerMarkActionAsSeenResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerMarkActionAsSeenResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\MessageResponseDto $messageResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\MessageResponseDto $messageResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerMarkAllUnreadAsReadRequest.php b/src/Models/Operations/SubscribersV1ControllerMarkAllUnreadAsReadRequest.php index c5cc068..668e1ad 100644 --- a/src/Models/Operations/SubscribersV1ControllerMarkAllUnreadAsReadRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerMarkAllUnreadAsReadRequest.php @@ -38,6 +38,7 @@ class SubscribersV1ControllerMarkAllUnreadAsReadRequest * @param string $subscriberId * @param Components\MarkAllMessageAsRequestDto $markAllMessageAsRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, Components\MarkAllMessageAsRequestDto $markAllMessageAsRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerMarkAllUnreadAsReadResponse.php b/src/Models/Operations/SubscribersV1ControllerMarkAllUnreadAsReadResponse.php index 521096e..16afd62 100644 --- a/src/Models/Operations/SubscribersV1ControllerMarkAllUnreadAsReadResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerMarkAllUnreadAsReadResponse.php @@ -51,6 +51,7 @@ class SubscribersV1ControllerMarkAllUnreadAsReadResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?float $number + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?float $number = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerMarkMessagesAsRequest.php b/src/Models/Operations/SubscribersV1ControllerMarkMessagesAsRequest.php index aa2bc5a..c246fd7 100644 --- a/src/Models/Operations/SubscribersV1ControllerMarkMessagesAsRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerMarkMessagesAsRequest.php @@ -38,6 +38,7 @@ class SubscribersV1ControllerMarkMessagesAsRequest * @param string $subscriberId * @param Components\MessageMarkAsRequestDto $messageMarkAsRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, Components\MessageMarkAsRequestDto $messageMarkAsRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerMarkMessagesAsResponse.php b/src/Models/Operations/SubscribersV1ControllerMarkMessagesAsResponse.php index a49610a..dbf8119 100644 --- a/src/Models/Operations/SubscribersV1ControllerMarkMessagesAsResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerMarkMessagesAsResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerMarkMessagesAsResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?array $messageResponseDtos + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $messageResponseDtos = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerModifySubscriberChannelRequest.php b/src/Models/Operations/SubscribersV1ControllerModifySubscriberChannelRequest.php index d1c984e..3a9be2a 100644 --- a/src/Models/Operations/SubscribersV1ControllerModifySubscriberChannelRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerModifySubscriberChannelRequest.php @@ -38,6 +38,7 @@ class SubscribersV1ControllerModifySubscriberChannelRequest * @param string $subscriberId * @param Components\UpdateSubscriberChannelRequestDto $updateSubscriberChannelRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, Components\UpdateSubscriberChannelRequestDto $updateSubscriberChannelRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerModifySubscriberChannelResponse.php b/src/Models/Operations/SubscribersV1ControllerModifySubscriberChannelResponse.php index 95f57e9..db7a24d 100644 --- a/src/Models/Operations/SubscribersV1ControllerModifySubscriberChannelResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerModifySubscriberChannelResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerModifySubscriberChannelResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\SubscriberResponseDto $subscriberResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SubscriberResponseDto $subscriberResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerRemoveSubscriberRequest.php b/src/Models/Operations/SubscribersV1ControllerRemoveSubscriberRequest.php index 9f85b21..323bfe4 100644 --- a/src/Models/Operations/SubscribersV1ControllerRemoveSubscriberRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerRemoveSubscriberRequest.php @@ -29,6 +29,7 @@ class SubscribersV1ControllerRemoveSubscriberRequest /** * @param string $subscriberId * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerRemoveSubscriberResponse.php b/src/Models/Operations/SubscribersV1ControllerRemoveSubscriberResponse.php index 6927b1c..ab8b78d 100644 --- a/src/Models/Operations/SubscribersV1ControllerRemoveSubscriberResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerRemoveSubscriberResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerRemoveSubscriberResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\DeleteSubscriberResponseDto $deleteSubscriberResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DeleteSubscriberResponseDto $deleteSubscriberResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberChannelRequest.php b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberChannelRequest.php index 01c0f9c..db133e3 100644 --- a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberChannelRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberChannelRequest.php @@ -38,6 +38,7 @@ class SubscribersV1ControllerUpdateSubscriberChannelRequest * @param string $subscriberId * @param Components\UpdateSubscriberChannelRequestDto $updateSubscriberChannelRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, Components\UpdateSubscriberChannelRequestDto $updateSubscriberChannelRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberChannelResponse.php b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberChannelResponse.php index ff2b124..6a889a5 100644 --- a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberChannelResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberChannelResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerUpdateSubscriberChannelResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\SubscriberResponseDto $subscriberResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SubscriberResponseDto $subscriberResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberGlobalPreferencesRequest.php b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberGlobalPreferencesRequest.php index d09310a..9fc3cc4 100644 --- a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberGlobalPreferencesRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberGlobalPreferencesRequest.php @@ -38,6 +38,7 @@ class SubscribersV1ControllerUpdateSubscriberGlobalPreferencesRequest * @param string $subscriberId * @param Components\UpdateSubscriberGlobalPreferencesRequestDto $updateSubscriberGlobalPreferencesRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, Components\UpdateSubscriberGlobalPreferencesRequestDto $updateSubscriberGlobalPreferencesRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberGlobalPreferencesResponse.php b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberGlobalPreferencesResponse.php index fd582a7..33f8346 100644 --- a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberGlobalPreferencesResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberGlobalPreferencesResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerUpdateSubscriberGlobalPreferencesResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\UpdateSubscriberPreferenceGlobalResponseDto $updateSubscriberPreferenceGlobalResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\UpdateSubscriberPreferenceGlobalResponseDto $updateSubscriberPreferenceGlobalResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberOnlineFlagRequest.php b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberOnlineFlagRequest.php index 3a9f5a2..c58ef22 100644 --- a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberOnlineFlagRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberOnlineFlagRequest.php @@ -38,6 +38,7 @@ class SubscribersV1ControllerUpdateSubscriberOnlineFlagRequest * @param string $subscriberId * @param Components\UpdateSubscriberOnlineFlagRequestDto $updateSubscriberOnlineFlagRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, Components\UpdateSubscriberOnlineFlagRequestDto $updateSubscriberOnlineFlagRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberOnlineFlagResponse.php b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberOnlineFlagResponse.php index 7a10adf..438f3fc 100644 --- a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberOnlineFlagResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberOnlineFlagResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerUpdateSubscriberOnlineFlagResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\SubscriberResponseDto $subscriberResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SubscriberResponseDto $subscriberResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberPreferenceRequest.php b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberPreferenceRequest.php index 5794aba..046bbe1 100644 --- a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberPreferenceRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberPreferenceRequest.php @@ -46,6 +46,7 @@ class SubscribersV1ControllerUpdateSubscriberPreferenceRequest * @param string $workflowId * @param Components\UpdateSubscriberPreferenceRequestDto $updateSubscriberPreferenceRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, string $workflowId, Components\UpdateSubscriberPreferenceRequestDto $updateSubscriberPreferenceRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberPreferenceResponse.php b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberPreferenceResponse.php index 93344ab..0dc7aa0 100644 --- a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberPreferenceResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberPreferenceResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerUpdateSubscriberPreferenceResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\UpdateSubscriberPreferenceResponseDto $updateSubscriberPreferenceResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\UpdateSubscriberPreferenceResponseDto $updateSubscriberPreferenceResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberRequest.php b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberRequest.php index f02ec94..b9d70fb 100644 --- a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberRequest.php +++ b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberRequest.php @@ -38,6 +38,7 @@ class SubscribersV1ControllerUpdateSubscriberRequest * @param string $subscriberId * @param Components\UpdateSubscriberRequestDto $updateSubscriberRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $subscriberId, Components\UpdateSubscriberRequestDto $updateSubscriberRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberResponse.php b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberResponse.php index ba8bb9a..1c363a3 100644 --- a/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberResponse.php +++ b/src/Models/Operations/SubscribersV1ControllerUpdateSubscriberResponse.php @@ -52,6 +52,7 @@ class SubscribersV1ControllerUpdateSubscriberResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\SubscriberResponseDto $subscriberResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\SubscriberResponseDto $subscriberResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/TopicsControllerAssignRequest.php b/src/Models/Operations/TopicsControllerAssignRequest.php index 9a5f2f1..cc39a18 100644 --- a/src/Models/Operations/TopicsControllerAssignRequest.php +++ b/src/Models/Operations/TopicsControllerAssignRequest.php @@ -39,6 +39,7 @@ class TopicsControllerAssignRequest * @param string $topicKey * @param Components\AddSubscribersRequestDto $addSubscribersRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $topicKey, Components\AddSubscribersRequestDto $addSubscribersRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/TopicsControllerAssignResponse.php b/src/Models/Operations/TopicsControllerAssignResponse.php index 9310655..96d14d9 100644 --- a/src/Models/Operations/TopicsControllerAssignResponse.php +++ b/src/Models/Operations/TopicsControllerAssignResponse.php @@ -51,6 +51,7 @@ class TopicsControllerAssignResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\AssignSubscriberToTopicDto $assignSubscriberToTopicDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\AssignSubscriberToTopicDto $assignSubscriberToTopicDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/TopicsControllerCreateTopicRequest.php b/src/Models/Operations/TopicsControllerCreateTopicRequest.php index ec68d94..3524de0 100644 --- a/src/Models/Operations/TopicsControllerCreateTopicRequest.php +++ b/src/Models/Operations/TopicsControllerCreateTopicRequest.php @@ -30,6 +30,7 @@ class TopicsControllerCreateTopicRequest /** * @param Components\CreateTopicRequestDto $createTopicRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(Components\CreateTopicRequestDto $createTopicRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/TopicsControllerCreateTopicResponse.php b/src/Models/Operations/TopicsControllerCreateTopicResponse.php index 2ed74e2..15c868e 100644 --- a/src/Models/Operations/TopicsControllerCreateTopicResponse.php +++ b/src/Models/Operations/TopicsControllerCreateTopicResponse.php @@ -52,6 +52,7 @@ class TopicsControllerCreateTopicResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\CreateTopicResponseDto $createTopicResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\CreateTopicResponseDto $createTopicResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/TopicsControllerDeleteTopicRequest.php b/src/Models/Operations/TopicsControllerDeleteTopicRequest.php index 51307cc..49a4c36 100644 --- a/src/Models/Operations/TopicsControllerDeleteTopicRequest.php +++ b/src/Models/Operations/TopicsControllerDeleteTopicRequest.php @@ -30,6 +30,7 @@ class TopicsControllerDeleteTopicRequest /** * @param string $topicKey * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $topicKey, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/TopicsControllerDeleteTopicResponse.php b/src/Models/Operations/TopicsControllerDeleteTopicResponse.php index 58c1e52..8b7e340 100644 --- a/src/Models/Operations/TopicsControllerDeleteTopicResponse.php +++ b/src/Models/Operations/TopicsControllerDeleteTopicResponse.php @@ -44,6 +44,7 @@ class TopicsControllerDeleteTopicResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $headers = []) { diff --git a/src/Models/Operations/TopicsControllerGetTopicRequest.php b/src/Models/Operations/TopicsControllerGetTopicRequest.php index e0d6844..de2ef49 100644 --- a/src/Models/Operations/TopicsControllerGetTopicRequest.php +++ b/src/Models/Operations/TopicsControllerGetTopicRequest.php @@ -30,6 +30,7 @@ class TopicsControllerGetTopicRequest /** * @param string $topicKey * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $topicKey, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/TopicsControllerGetTopicResponse.php b/src/Models/Operations/TopicsControllerGetTopicResponse.php index a24f556..b401349 100644 --- a/src/Models/Operations/TopicsControllerGetTopicResponse.php +++ b/src/Models/Operations/TopicsControllerGetTopicResponse.php @@ -52,6 +52,7 @@ class TopicsControllerGetTopicResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\GetTopicResponseDto $getTopicResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\GetTopicResponseDto $getTopicResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/TopicsControllerGetTopicSubscriberRequest.php b/src/Models/Operations/TopicsControllerGetTopicSubscriberRequest.php index bd39f21..b5e5893 100644 --- a/src/Models/Operations/TopicsControllerGetTopicSubscriberRequest.php +++ b/src/Models/Operations/TopicsControllerGetTopicSubscriberRequest.php @@ -39,6 +39,7 @@ class TopicsControllerGetTopicSubscriberRequest * @param string $externalSubscriberId * @param string $topicKey * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $externalSubscriberId, string $topicKey, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/TopicsControllerGetTopicSubscriberResponse.php b/src/Models/Operations/TopicsControllerGetTopicSubscriberResponse.php index 1499283..633846e 100644 --- a/src/Models/Operations/TopicsControllerGetTopicSubscriberResponse.php +++ b/src/Models/Operations/TopicsControllerGetTopicSubscriberResponse.php @@ -51,6 +51,7 @@ class TopicsControllerGetTopicSubscriberResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\TopicSubscriberDto $topicSubscriberDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\TopicSubscriberDto $topicSubscriberDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/TopicsControllerListTopicsRequest.php b/src/Models/Operations/TopicsControllerListTopicsRequest.php index 8784b47..467002a 100644 --- a/src/Models/Operations/TopicsControllerListTopicsRequest.php +++ b/src/Models/Operations/TopicsControllerListTopicsRequest.php @@ -48,6 +48,7 @@ class TopicsControllerListTopicsRequest * @param ?int $pageSize * @param ?string $key * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(?string $key = null, ?string $idempotencyKey = null, ?int $page = 0, ?int $pageSize = 10) { diff --git a/src/Models/Operations/TopicsControllerListTopicsResponse.php b/src/Models/Operations/TopicsControllerListTopicsResponse.php index 5cc6f6a..dfb9318 100644 --- a/src/Models/Operations/TopicsControllerListTopicsResponse.php +++ b/src/Models/Operations/TopicsControllerListTopicsResponse.php @@ -51,6 +51,7 @@ class TopicsControllerListTopicsResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\FilterTopicsResponseDto $filterTopicsResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\FilterTopicsResponseDto $filterTopicsResponseDto = null, ?array $headers = []) { diff --git a/src/Models/Operations/TopicsControllerRemoveSubscribersRequest.php b/src/Models/Operations/TopicsControllerRemoveSubscribersRequest.php index 8e23085..58b75c9 100644 --- a/src/Models/Operations/TopicsControllerRemoveSubscribersRequest.php +++ b/src/Models/Operations/TopicsControllerRemoveSubscribersRequest.php @@ -39,6 +39,7 @@ class TopicsControllerRemoveSubscribersRequest * @param string $topicKey * @param Components\RemoveSubscribersRequestDto $removeSubscribersRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $topicKey, Components\RemoveSubscribersRequestDto $removeSubscribersRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/TopicsControllerRemoveSubscribersResponse.php b/src/Models/Operations/TopicsControllerRemoveSubscribersResponse.php index f1099c4..715996b 100644 --- a/src/Models/Operations/TopicsControllerRemoveSubscribersResponse.php +++ b/src/Models/Operations/TopicsControllerRemoveSubscribersResponse.php @@ -44,6 +44,7 @@ class TopicsControllerRemoveSubscribersResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $headers = []) { diff --git a/src/Models/Operations/TopicsControllerRenameTopicRequest.php b/src/Models/Operations/TopicsControllerRenameTopicRequest.php index f170742..7f509a2 100644 --- a/src/Models/Operations/TopicsControllerRenameTopicRequest.php +++ b/src/Models/Operations/TopicsControllerRenameTopicRequest.php @@ -39,6 +39,7 @@ class TopicsControllerRenameTopicRequest * @param string $topicKey * @param Components\RenameTopicRequestDto $renameTopicRequestDto * @param ?string $idempotencyKey + * @phpstan-pure */ public function __construct(string $topicKey, Components\RenameTopicRequestDto $renameTopicRequestDto, ?string $idempotencyKey = null) { diff --git a/src/Models/Operations/TopicsControllerRenameTopicResponse.php b/src/Models/Operations/TopicsControllerRenameTopicResponse.php index 8af9598..fce6978 100644 --- a/src/Models/Operations/TopicsControllerRenameTopicResponse.php +++ b/src/Models/Operations/TopicsControllerRenameTopicResponse.php @@ -52,6 +52,7 @@ class TopicsControllerRenameTopicResponse * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array> $headers * @param ?Components\RenameTopicResponseDto $renameTopicResponseDto + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\RenameTopicResponseDto $renameTopicResponseDto = null, ?array $headers = []) { diff --git a/src/NovuBuilder.php b/src/NovuBuilder.php index 0cb5192..e094b95 100644 --- a/src/NovuBuilder.php +++ b/src/NovuBuilder.php @@ -44,7 +44,7 @@ public function setSecurity(string $secretKey): NovuBuilder $security = new Models\Components\Security( secretKey: $secretKey ); - $this->sdkConfig->security = $security; + $this->sdkConfig->securitySource = fn () => $security; return $this; } @@ -58,7 +58,7 @@ public function setSecurity(string $secretKey): NovuBuilder */ public function setSecuritySource(\Closure $securitySource): NovuBuilder { - $this->sdkConfig->securitySource = $securitySource; + $this->sdkConfig->securitySource = fn () => new Models\Components\Security(secretKey: $securitySource()); return $this; } diff --git a/src/Preferences.php b/src/Preferences.php index 2d661ac..b406aff 100644 --- a/src/Preferences.php +++ b/src/Preferences.php @@ -56,9 +56,11 @@ public function getUrl(string $baseUrl, array $urlVariables): string * @param ?string $idempotencyKey * @return Operations\SubscribersV1ControllerGetSubscriberPreferenceByLevelResponse * @throws \novu\Models\Errors\APIException + * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ public function getByLevel(Operations\Parameter $preferenceLevel, string $subscriberId, ?bool $includeInactiveChannels = null, ?string $idempotencyKey = null, ?Options $options = null): Operations\SubscribersV1ControllerGetSubscriberPreferenceByLevelResponse { + trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED); $retryConfig = null; if ($options) { $retryConfig = $options->retryConfig; diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index aea3fe4..3663439 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -14,9 +14,7 @@ class SDKConfiguration public ?\GuzzleHttp\ClientInterface $client = null; public Hooks\SDKHooks $hooks; - public ?Models\Components\Security $security = null; - - /** @var pure-Closure(): string */ + /** @var ?pure-Closure(): Models\Components\Security */ public ?\Closure $securitySource = null; public string $serverUrl = ''; @@ -26,11 +24,11 @@ class SDKConfiguration public string $openapiDocVersion = '1.0'; - public string $sdkVersion = '0.0.9'; + public string $sdkVersion = '0.0.10'; - public string $genVersion = '2.502.0'; + public string $genVersion = '2.503.2'; - public string $userAgent = 'speakeasy-sdk/php 0.0.9 2.502.0 1.0 novuhq/novu'; + public string $userAgent = 'speakeasy-sdk/php 0.0.10 2.503.2 1.0 novuhq/novu'; public ?RetryConfig $retryConfig = null; @@ -54,20 +52,12 @@ public function getServerUrl(): string } public function hasSecurity(): bool { - return $this->security !== null || $this->securitySource !== null; + return $this->securitySource !== null; } public function getSecurity(): ?Models\Components\Security { - if ($this->securitySource !== null) { - $security = new Models\Components\Security( - secretKey: $this->securitySource->call($this) - ); - - return $security; - } else { - return $this->security; - } + return $this->securitySource->call($this); } /** diff --git a/src/SubscribersPreferences.php b/src/SubscribersPreferences.php index 9829cc7..4b6849c 100644 --- a/src/SubscribersPreferences.php +++ b/src/SubscribersPreferences.php @@ -201,9 +201,11 @@ public function retrieve(string $subscriberId, ?string $idempotencyKey = null, ? * @param ?string $idempotencyKey * @return Operations\SubscribersV1ControllerListSubscriberPreferencesResponse * @throws \novu\Models\Errors\APIException + * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ - public function list(string $subscriberId, ?bool $includeInactiveChannels = null, ?string $idempotencyKey = null, ?Options $options = null): Operations\SubscribersV1ControllerListSubscriberPreferencesResponse + public function listLegacy(string $subscriberId, ?bool $includeInactiveChannels = null, ?string $idempotencyKey = null, ?Options $options = null): Operations\SubscribersV1ControllerListSubscriberPreferencesResponse { + trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED); $retryConfig = null; if ($options) { $retryConfig = $options->retryConfig; diff --git a/src/Utils/UnionHandler.php b/src/Utils/UnionHandler.php index 5db9f05..6490489 100644 --- a/src/Utils/UnionHandler.php +++ b/src/Utils/UnionHandler.php @@ -72,26 +72,11 @@ public function serializeUnion( if ($this->isPrimitiveType(gettype($data))) { return $this->matchSimpleType($data, $type, $context); } else { - if (is_array($data)) { - if (array_is_list($data) && ! empty($data)) { - $innerType = gettype($data[0]); - if ($innerType === 'object') { - $innerType = get_class($data[0]); - } - $resolvedType = [ - 'name' => 'array', - 'params' => ['name' => $innerType, 'params' => []], - ]; + if (is_array($data) && ! empty($data)) { + if (array_is_list($data)) { + return $this->matchArrayType($data, $type, $context); } else { - $keyType = gettype(array_key_first($data)); - $valueType = gettype($data[array_key_first($data)]); - $resolvedType = [ - 'name' => 'array', - 'params' => [ - ['name' => $keyType, 'params' => []], - ['name' => $valueType, 'params' => []], - ], - ]; + return $this->matchAssociativeArrayType($data, $type, $context); } } else { $resolvedType = null; @@ -112,7 +97,6 @@ public function serializeUnion( return $context->getNavigator()->accept($data, $resolvedType); } } - /** * @param DeserializationVisitorInterface $visitor * @param mixed $data @@ -234,6 +218,85 @@ private function matchSimpleType(mixed $data, array $type, Context $context): mi return null; } + /** + * @param mixed $data + * @param array $type + * @param Context $context + */ + private function matchArrayType(mixed $data, array $type, Context $context): mixed + { + $dataType = gettype($data[0]); + if ($dataType === 'object') { + $dataType = get_class($data[0]); + } + + foreach ($type['params'] as $possibleType) { + $isNotArray = $possibleType['name'] != 'array'; + $isNotListArray = $possibleType['name'] == 'array' && count($possibleType['params']) > 1 && $possibleType['params'][0]['name'] != 'integer'; + + if ($isNotArray || $isNotListArray) { + continue; + } else { + if (count($possibleType['params']) == 2) { + $possibleValueType = $possibleType['params'][1]['name']; + } else { + $possibleValueType = $possibleType['params'][0]['name']; + } + + if ($possibleValueType == 'mixed' || $possibleValueType == $dataType) { + return $context->getNavigator()->accept($data, $possibleType); + } + } + } + + $resolvedType = [ + 'name' => 'array', + 'params' => ['name' => $dataType, 'params' => []], + ]; + + return $context->getNavigator()->accept($data, $resolvedType); + } + + /** + * @param mixed $data + * @param array $type + * @param Context $context + */ + private function matchAssociativeArrayType(mixed $data, array $type, Context $context): mixed + { + $keyType = gettype(array_key_first($data)); + $value = $data[array_key_first($data)]; + $valueType = gettype($value); + foreach ($type['params'] as $possibleType) { + $isNotArray = $possibleType['name'] != 'array'; + $isNotAssociativeArray = $possibleType['name'] == 'array' && (count($possibleType['params']) < 2 || $possibleType['params'][0]['name'] != 'string'); + + if ($isNotArray || $isNotAssociativeArray) { + continue; + } else { + $possibleValueType = $possibleType['params'][1]['name']; + + if ($valueType == 'object') { + $valueType = get_class($value); + } + + if ($possibleValueType == 'mixed' || $possibleValueType == $valueType) { + return $context->getNavigator()->accept($data, $possibleType); + } + } + } + + $resolvedType = [ + 'name' => 'array', + 'params' => [ + ['name' => $keyType, 'params' => []], + ['name' => $valueType, 'params' => []], + ], + ]; + + return $context->getNavigator()->accept($data, $resolvedType); + } + /** * @param string $type * @return bool