Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.477.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jan 30, 2025
1 parent 4eae5fc commit 1883ccc
Show file tree
Hide file tree
Showing 54 changed files with 745 additions and 722 deletions.
16 changes: 8 additions & 8 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
lockVersion: 2.0.0
id: 8c24a12b-d2f1-466a-bdaa-6d83a049a679
management:
docChecksum: 293282b19953a337b7a810122b9b8ffc
docChecksum: 2c157674c76a26bd7a7d49d8b6461530
docVersion: v1
speakeasyVersion: 1.469.12
generationVersion: 2.493.34
releaseVersion: 0.1.4
configChecksum: e7a1ea77238fea976a13a337a8df7ee3
speakeasyVersion: 1.477.2
generationVersion: 2.497.8
releaseVersion: 0.1.5
configChecksum: e875c2911ac71e8e02a64c7fbe30a132
repoURL: https://github.com/clerk/clerk-sdk-php.git
installationURL: https://github.com/clerk/clerk-sdk-php
published: true
features:
php:
constsAndDefaults: 0.2.0
core: 3.7.9
core: 3.7.12
deprecations: 2.81.1
examples: 2.81.5
flattening: 2.81.1
Expand Down Expand Up @@ -167,7 +169,6 @@ generatedFiles:
- docs/Models/Components/TicketVerificationStrategy.md
- docs/Models/Components/TotalCount.md
- docs/Models/Components/TotalCountObject.md
- docs/Models/Components/Type.md
- docs/Models/Components/User.md
- docs/Models/Components/UserObject.md
- docs/Models/Components/Verification.md
Expand Down Expand Up @@ -708,7 +709,6 @@ generatedFiles:
- src/Models/Components/TicketVerificationStrategy.php
- src/Models/Components/TotalCount.php
- src/Models/Components/TotalCountObject.php
- src/Models/Components/Type.php
- src/Models/Components/User.php
- src/Models/Components/UserObject.php
- src/Models/Components/VerificationAdmin.php
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
php:
version: 0.1.4
version: 0.1.5
additionalDependencies:
autoload-dev:
Clerk\Backend\Tests\: Tests/
Expand Down
13 changes: 7 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.469.12
speakeasyVersion: 1.477.2
sources:
backend-php:
sourceNamespace: clerk-openapi
Expand All @@ -14,19 +14,20 @@ sources:
- latest
clerk-openapi:
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:7669e744dd69717cc754742276d79ab6f8951ffd9193654c24363edf0394bc21
sourceBlobDigest: sha256:6fdff14cae98538645534e6d753b3d0343b46cc748151c493d99dca7ca717ffd
sourceRevisionDigest: sha256:80854158121722d4754bc5782f6dc2bf6fe6d0d6bf728c1405268f9767159481
sourceBlobDigest: sha256:4dad462e2249a72dbba80807908d50af76a9fc3ace51cfa7a3331cc23eee8efb
tags:
- latest
- speakeasy-sdk-regen-1738024123
- v1
targets:
clerk-php:
source: clerk-openapi
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:7669e744dd69717cc754742276d79ab6f8951ffd9193654c24363edf0394bc21
sourceBlobDigest: sha256:6fdff14cae98538645534e6d753b3d0343b46cc748151c493d99dca7ca717ffd
sourceRevisionDigest: sha256:80854158121722d4754bc5782f6dc2bf6fe6d0d6bf728c1405268f9767159481
sourceBlobDigest: sha256:4dad462e2249a72dbba80807908d50af76a9fc3ace51cfa7a3331cc23eee8efb
codeSamplesNamespace: clerk-openapi-php-code-samples
codeSamplesRevisionDigest: sha256:d760121c650fb22bcf246e2d830011efc8c790e936d4b2a96f0dd2b61d7b76aa
codeSamplesRevisionDigest: sha256:d142a0b6168d0116e5b345517c8f7a494948a668c83bbc142e01519f09602ea1
my-first-target:
source: clerk-backend-php
sourceNamespace: clerk-openapi
Expand Down
1 change: 0 additions & 1 deletion .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ targets:
packagist:
username: $packagist_username
token: $packagist_token
packageName: clerkinc/backend-php
codeSamples:
registry:
location: registry.speakeasyapi.dev/clerk/clerk/clerk-openapi-php-code-samples
Expand Down
11 changes: 11 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


## 2025-01-30 00:27:50
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.477.2 (2.497.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v0.1.5] .
### Releases
- [Composer v0.1.5] https://packagist.org/packages/clerkinc/backend-php#v0.1.5 - .
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"brick/date-time": "^0.7.0",
"phpdocumentor/type-resolver": "^1.8",
"brick/math": "^0.12.1",
"firebase/php-jwt": "^6.10",
"phpseclib/phpseclib": "^3.0"
"phpseclib/phpseclib": "^3.0",
"firebase/php-jwt": "^6.10"
},
"require-dev": {
"laravel/pint": "^1.18.1",
Expand Down
8 changes: 4 additions & 4 deletions docs/Models/Components/IdentificationLink.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
| `type` | [Components\Type](../../Models/Components/Type.md) | :heavy_check_mark: | N/A |
| `id` | *string* | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `type` | *string* | :heavy_check_mark: | N/A |
| `id` | *string* | :heavy_check_mark: | N/A |
14 changes: 0 additions & 14 deletions docs/Models/Components/Type.md

This file was deleted.

20 changes: 10 additions & 10 deletions src/ActorTokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ public function create(?Operations\CreateActorTokenRequestBody $request = null,
$contentType = $httpResponse->getHeader('Content-Type')[0] ?? '';

$statusCode = $httpResponse->getStatusCode();
if ($statusCode == 400 || $statusCode == 402 || $statusCode == 422 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) {
if (Utils\Utils::matchStatusCodes($statusCode, ['400', '402', '422', '4XX', '5XX'])) {
$res = $this->sdkConfiguration->hooks->afterError(new Hooks\AfterErrorContext($hookContext), $httpResponse, null);
$httpResponse = $res;
}
if ($statusCode == 200) {
if (Utils\Utils::matchStatusCodes($statusCode, ['200'])) {
if (Utils\Utils::matchContentType($contentType, 'application/json')) {
$httpResponse = $this->sdkConfiguration->hooks->afterSuccess(new Hooks\AfterSuccessContext($hookContext), $httpResponse);

Expand All @@ -101,7 +101,7 @@ public function create(?Operations\CreateActorTokenRequestBody $request = null,
} else {
throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
}
} elseif (in_array($statusCode, [400, 402, 422])) {
} elseif (Utils\Utils::matchStatusCodes($statusCode, ['400', '402', '422'])) {
if (Utils\Utils::matchContentType($contentType, 'application/json')) {
$httpResponse = $this->sdkConfiguration->hooks->afterSuccess(new Hooks\AfterSuccessContext($hookContext), $httpResponse);

Expand All @@ -112,9 +112,9 @@ public function create(?Operations\CreateActorTokenRequestBody $request = null,
} else {
throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
}
} elseif ($statusCode >= 400 && $statusCode < 500) {
} elseif (Utils\Utils::matchStatusCodes($statusCode, ['4XX'])) {
throw new \Clerk\Backend\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
} elseif ($statusCode >= 500 && $statusCode < 600) {
} elseif (Utils\Utils::matchStatusCodes($statusCode, ['5XX'])) {
throw new \Clerk\Backend\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
} else {
throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
Expand Down Expand Up @@ -155,11 +155,11 @@ public function revoke(string $actorTokenId, ?Options $options = null): Operatio
$contentType = $httpResponse->getHeader('Content-Type')[0] ?? '';

$statusCode = $httpResponse->getStatusCode();
if ($statusCode == 400 || $statusCode == 404 || $statusCode >= 400 && $statusCode < 500 || $statusCode >= 500 && $statusCode < 600) {
if (Utils\Utils::matchStatusCodes($statusCode, ['400', '404', '4XX', '5XX'])) {
$res = $this->sdkConfiguration->hooks->afterError(new Hooks\AfterErrorContext($hookContext), $httpResponse, null);
$httpResponse = $res;
}
if ($statusCode == 200) {
if (Utils\Utils::matchStatusCodes($statusCode, ['200'])) {
if (Utils\Utils::matchContentType($contentType, 'application/json')) {
$httpResponse = $this->sdkConfiguration->hooks->afterSuccess(new Hooks\AfterSuccessContext($hookContext), $httpResponse);

Expand All @@ -176,7 +176,7 @@ public function revoke(string $actorTokenId, ?Options $options = null): Operatio
} else {
throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
}
} elseif (in_array($statusCode, [400, 404])) {
} elseif (Utils\Utils::matchStatusCodes($statusCode, ['400', '404'])) {
if (Utils\Utils::matchContentType($contentType, 'application/json')) {
$httpResponse = $this->sdkConfiguration->hooks->afterSuccess(new Hooks\AfterSuccessContext($hookContext), $httpResponse);

Expand All @@ -187,9 +187,9 @@ public function revoke(string $actorTokenId, ?Options $options = null): Operatio
} else {
throw new \Clerk\Backend\Models\Errors\SDKException('Unknown content type received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
}
} elseif ($statusCode >= 400 && $statusCode < 500) {
} elseif (Utils\Utils::matchStatusCodes($statusCode, ['4XX'])) {
throw new \Clerk\Backend\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
} elseif ($statusCode >= 500 && $statusCode < 600) {
} elseif (Utils\Utils::matchStatusCodes($statusCode, ['5XX'])) {
throw new \Clerk\Backend\Models\Errors\SDKException('API error occurred', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
} else {
throw new \Clerk\Backend\Models\Errors\SDKException('Unknown status code received', $statusCode, $httpResponse->getBody()->getContents(), $httpResponse);
Expand Down
Loading

0 comments on commit 1883ccc

Please sign in to comment.