Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .spec-version
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
spec: openapi-v241.25.0
generator: chat v241.25.0
spec: openapi-v241.25.1
generator: chat v241.25.1
2 changes: 1 addition & 1 deletion src/Generated/CommonTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ public function upsertPushTemplate(GeneratedModels\UpsertPushTemplateRequest $re
return StreamResponse::fromJson($this->makeRequest('POST', $path, $queryParams, $requestData), GeneratedModels\UpsertPushTemplateResponse::class);
}
/**
* Get rate limits usage and quotas
* Get rate limits usage and quotas, and the query budget status of budgeted endpoints
*
* @param ?bool $serverSide
* @param ?bool $android
Expand Down
20 changes: 20 additions & 0 deletions src/GeneratedModels/BudgetStatusResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class BudgetStatusResponse extends BaseModel
{
public function __construct(
public ?int $limitMs = null, // Database time in milliseconds the endpoint may use per sliding window
public ?int $usedMs = null, // Database time in milliseconds used in the current sliding window, including requests still in flight
public ?int $remainingMs = null, // Database time in milliseconds left in the current sliding window, never negative
public ?int $windowSeconds = null, // Length of the sliding window in seconds
public ?int $reset = null, // The Unix timestamp at which all usage currently in the window will have expired, if no new usage is added. The current time when no usage is recorded in the window. Can be in the future while used_ms is 0, when earlier usage was refunded
public ?bool $enforced = null, // Whether exhausting the budget rejects requests with HTTP 429. False when the budget is only measured, or while enforcement is temporarily suspended
) {
}

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
38 changes: 38 additions & 0 deletions src/GeneratedModels/BudgetsResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

declare(strict_types=1);

namespace GetStream\GeneratedModels;
class BudgetsResponse extends BaseModel
{
public function __construct(
/** @var array<string, BudgetStatusResponse>|null */
#[MapOf(BudgetStatusResponse::class)]
public ?array $all = null, // Map of endpoint budgets shared by all platforms. Set when budgets are not tracked per platform
/** @var array<string, BudgetStatusResponse>|null */
#[MapOf(BudgetStatusResponse::class)]
public ?array $serverSide = null, // Map of endpoint budgets for the server-side platform
/** @var array<string, BudgetStatusResponse>|null */
#[MapOf(BudgetStatusResponse::class)]
public ?array $android = null, // Map of endpoint budgets for the Android platform
/** @var array<string, BudgetStatusResponse>|null */
#[MapOf(BudgetStatusResponse::class)]
public ?array $ios = null, // Map of endpoint budgets for the iOS platform
/** @var array<string, BudgetStatusResponse>|null */
#[MapOf(BudgetStatusResponse::class)]
public ?array $web = null, // Map of endpoint budgets for the web platform
/** @var array<string, BudgetStatusResponse>|null */
#[MapOf(BudgetStatusResponse::class)]
public ?array $unity = null, // Map of endpoint budgets for the Unity platform
/** @var array<string, BudgetStatusResponse>|null */
#[MapOf(BudgetStatusResponse::class)]
public ?array $unityDesktop = null, // Map of endpoint budgets for the Unity desktop platform
/** @var array<string, BudgetStatusResponse>|null */
#[MapOf(BudgetStatusResponse::class)]
public ?array $unityConsole = null, // Map of endpoint budgets for the Unity console platform
) {
}

// BaseModel automatically handles jsonSerialize(), toArray(), and fromJson() using constructor types!
// Use #[JsonKey('user_id')] to override field names if needed.
}
1 change: 1 addition & 0 deletions src/GeneratedModels/GetRateLimitsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function __construct(
/** @var array<string, LimitInfoResponse>|null */
#[MapOf(LimitInfoResponse::class)]
public ?array $unityConsole = null, // Map of endpoint rate limits for the Unity console platform
public ?BudgetsResponse $budgets = null,
public ?string $duration = null,
) {
}
Expand Down
Loading