From bb2668c7410ca0065d9efac77bb7edffadbf9c15 Mon Sep 17 00:00:00 2001 From: activitysmith-bot Date: Thu, 28 May 2026 09:36:57 +0000 Subject: [PATCH] chore: regenerate SDK --- generated/Configuration.php | 4 ++-- generated/Model/ContentStateEnd.php | 10 +++++----- generated/Model/ContentStateStart.php | 10 +++++----- generated/Model/ContentStateUpdate.php | 10 +++++----- generated/Model/StreamContentState.php | 10 +++++----- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/generated/Configuration.php b/generated/Configuration.php index 86519c1..e32d5f8 100644 --- a/generated/Configuration.php +++ b/generated/Configuration.php @@ -100,7 +100,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/1.4.1/PHP'; + protected $userAgent = 'OpenAPI-Generator/1.5.0/PHP'; /** * Debug switch (default set to false) @@ -433,7 +433,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' The version of the OpenAPI document: 1.0.0' . PHP_EOL; - $report .= ' SDK Package Version: 1.4.1' . PHP_EOL; + $report .= ' SDK Package Version: 1.5.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/generated/Model/ContentStateEnd.php b/generated/Model/ContentStateEnd.php index b02b1c8..2d24d1f 100644 --- a/generated/Model/ContentStateEnd.php +++ b/generated/Model/ContentStateEnd.php @@ -501,8 +501,8 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'numberOfSteps', must be bigger than or equal to 1."; } - if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 1)) { - $invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 1."; + if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 0)) { + $invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 0."; } if (!is_null($this->container['percentage']) && ($this->container['percentage'] > 100)) { @@ -670,7 +670,7 @@ public function getCurrentStep() /** * Sets currentStep * - * @param int|null $currentStep Current step. Use for type=segmented_progress. + * @param int|null $currentStep Current completed step count. Use for type=segmented_progress. Must be less than or equal to number_of_steps when number_of_steps is provided. * * @return self */ @@ -680,8 +680,8 @@ public function setCurrentStep($currentStep) throw new \InvalidArgumentException('non-nullable currentStep cannot be null'); } - if (($currentStep < 1)) { - throw new \InvalidArgumentException('invalid value for $currentStep when calling ContentStateEnd., must be bigger than or equal to 1.'); + if (($currentStep < 0)) { + throw new \InvalidArgumentException('invalid value for $currentStep when calling ContentStateEnd., must be bigger than or equal to 0.'); } $this->container['currentStep'] = $currentStep; diff --git a/generated/Model/ContentStateStart.php b/generated/Model/ContentStateStart.php index 839a0fb..5f9839c 100644 --- a/generated/Model/ContentStateStart.php +++ b/generated/Model/ContentStateStart.php @@ -494,8 +494,8 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'numberOfSteps', must be bigger than or equal to 1."; } - if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 1)) { - $invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 1."; + if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 0)) { + $invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 0."; } if (!is_null($this->container['percentage']) && ($this->container['percentage'] > 100)) { @@ -662,7 +662,7 @@ public function getCurrentStep() /** * Sets currentStep * - * @param int|null $currentStep Current step. Use for type=segmented_progress. + * @param int|null $currentStep Current completed step count. Use for type=segmented_progress. Set 0 when the activity has started but no segment is complete yet. Must be less than or equal to number_of_steps. * * @return self */ @@ -672,8 +672,8 @@ public function setCurrentStep($currentStep) throw new \InvalidArgumentException('non-nullable currentStep cannot be null'); } - if (($currentStep < 1)) { - throw new \InvalidArgumentException('invalid value for $currentStep when calling ContentStateStart., must be bigger than or equal to 1.'); + if (($currentStep < 0)) { + throw new \InvalidArgumentException('invalid value for $currentStep when calling ContentStateStart., must be bigger than or equal to 0.'); } $this->container['currentStep'] = $currentStep; diff --git a/generated/Model/ContentStateUpdate.php b/generated/Model/ContentStateUpdate.php index bc6195d..428819c 100644 --- a/generated/Model/ContentStateUpdate.php +++ b/generated/Model/ContentStateUpdate.php @@ -494,8 +494,8 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'numberOfSteps', must be bigger than or equal to 1."; } - if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 1)) { - $invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 1."; + if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 0)) { + $invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 0."; } if (!is_null($this->container['percentage']) && ($this->container['percentage'] > 100)) { @@ -659,7 +659,7 @@ public function getCurrentStep() /** * Sets currentStep * - * @param int|null $currentStep Current step. Use for type=segmented_progress. + * @param int|null $currentStep Current completed step count. Use for type=segmented_progress. Set 0 when no segment is complete yet. Must be less than or equal to number_of_steps when number_of_steps is provided. * * @return self */ @@ -669,8 +669,8 @@ public function setCurrentStep($currentStep) throw new \InvalidArgumentException('non-nullable currentStep cannot be null'); } - if (($currentStep < 1)) { - throw new \InvalidArgumentException('invalid value for $currentStep when calling ContentStateUpdate., must be bigger than or equal to 1.'); + if (($currentStep < 0)) { + throw new \InvalidArgumentException('invalid value for $currentStep when calling ContentStateUpdate., must be bigger than or equal to 0.'); } $this->container['currentStep'] = $currentStep; diff --git a/generated/Model/StreamContentState.php b/generated/Model/StreamContentState.php index 0103be1..748be3e 100644 --- a/generated/Model/StreamContentState.php +++ b/generated/Model/StreamContentState.php @@ -508,8 +508,8 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'numberOfSteps', must be bigger than or equal to 1."; } - if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 1)) { - $invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 1."; + if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 0)) { + $invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 0."; } if (!is_null($this->container['percentage']) && ($this->container['percentage'] > 100)) { @@ -681,7 +681,7 @@ public function getCurrentStep() /** * Sets currentStep * - * @param int|null $currentStep Use for segmented_progress. + * @param int|null $currentStep Use for segmented_progress. Set 0 when no segment is complete yet. Must be less than or equal to number_of_steps when number_of_steps is provided. * * @return self */ @@ -691,8 +691,8 @@ public function setCurrentStep($currentStep) throw new \InvalidArgumentException('non-nullable currentStep cannot be null'); } - if (($currentStep < 1)) { - throw new \InvalidArgumentException('invalid value for $currentStep when calling StreamContentState., must be bigger than or equal to 1.'); + if (($currentStep < 0)) { + throw new \InvalidArgumentException('invalid value for $currentStep when calling StreamContentState., must be bigger than or equal to 0.'); } $this->container['currentStep'] = $currentStep;