Skip to content

Commit

Permalink
Regenerate SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Nov 1, 2024
1 parent a9928a6 commit 22f05d7
Show file tree
Hide file tree
Showing 694 changed files with 14,776 additions and 6,366 deletions.
3,066 changes: 2,139 additions & 927 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
php:
version: 0.1.2
version: 0.2.0
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
imports:
Expand All @@ -24,7 +24,11 @@ php:
shared: Models/Components
webhooks: Models/Webhooks
inputModelSuffix: input
laravelServiceProvider:
enabled: false
svcName: openapi
maxMethodParams: 4
methodArguments: infer-optional-args
namespace: Clerk\Backend
outputModelSuffix: output
packageName: clerk/backend-php
22 changes: 15 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
speakeasyVersion: 1.390.8
speakeasyVersion: 1.424.0
sources:
clerk-backend-php:
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:6353205af3f19bb156736f0b9e892105994cdb88a27501203bc48fa966be9cd2
sourceBlobDigest: sha256:70485a857719071de692222b345b03eb8c8d415420074439d45ec731a9dee8aa
sourceRevisionDigest: sha256:1b286b5fed33a83bc8f8565131d2a072b75dbac14f4d2d47e67033f3ae2af2c8
sourceBlobDigest: sha256:a1fe6e2b6b88ebb94a1ed12cf3aa9acf83572460a5f825e8af217a692289a9f2
tags:
- latest
targets:
clerk-php:
source: clerk-backend-php
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:6353205af3f19bb156736f0b9e892105994cdb88a27501203bc48fa966be9cd2
sourceBlobDigest: sha256:70485a857719071de692222b345b03eb8c8d415420074439d45ec731a9dee8aa
outLocation: /Users/octoper/clerk/php/clerk-php
sourceRevisionDigest: sha256:1b286b5fed33a83bc8f8565131d2a072b75dbac14f4d2d47e67033f3ae2af2c8
sourceBlobDigest: sha256:a1fe6e2b6b88ebb94a1ed12cf3aa9acf83572460a5f825e8af217a692289a9f2
codeSamplesNamespace: clerk-openapi-code-samples
codeSamplesRevisionDigest: sha256:220becc6b1b15b3ebe33c2a76a7f712f38f7c889d1522460eba85847cb041c9b
my-first-target:
source: clerk-backend-php
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:c169e1d91c0cf96f1b0efcd65d90aa47ab9f42cfcde30514813f38ee86c14a75
sourceBlobDigest: sha256:70485a857719071de692222b345b03eb8c8d415420074439d45ec731a9dee8aa
outLocation: /Users/octoper/clerk/php/clerk-php
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -32,3 +32,11 @@ workflow:
clerk-php:
target: php
source: clerk-backend-php
publish:
packagist:
username: clerkinc
token: $packagist_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/clerk/clerk/clerk-openapi-code-samples
blocking: false
4 changes: 4 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ targets:
packagist:
username: clerkinc
token: $packagist_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/clerk/clerk/clerk-openapi-code-samples
blocking: false
318 changes: 182 additions & 136 deletions README.md

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ use Clerk\Backend;

$sdk = Backend\ClerkBackend::builder()->build();

try {

$response = $sdk->miscellaneous->getPublicInterstitial('<value>', '<value>');

if ($response->statusCode === 200) {
// handle response
}
} catch (Throwable $e) {
// handle exception
$response = $sdk->miscellaneous->getPublicInterstitial(
frontendApi: '<value>',
publishableKey: '<value>'

);

if ($response->statusCode === 200) {
// handle response
}
```
<!-- End SDK Example Usage [usage] -->
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@
},
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"guzzlehttp/guzzle": "^7.0",
"speakeasy/serializer": "^3.40.0",
"speakeasy/serializer": "^4.0.0",
"brick/date-time": "^0.7.0",
"phpdocumentor/type-resolver": "^1.8"
"phpdocumentor/type-resolver": "^1.8",
"brick/math": "^0.12.1"
},
"require-dev": {
"laravel/pint": "^1.15",
"phpstan/phpstan": "^1.9",
"laravel/pint": "^1.18.1",
"phpstan/phpstan": "^1.12",
"phpunit/phpunit": "^10",
"rector/rector": "^0.18.13",
"rector/rector": "^0.19",
"roave/security-advisories": "dev-latest"
},
"minimum-stability": "stable",
Expand Down
2 changes: 2 additions & 0 deletions docs/Models/Components/ActorToken.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ActorToken

Success


## Fields

Expand Down
2 changes: 2 additions & 0 deletions docs/Models/Components/AllowlistIdentifier.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# AllowlistIdentifier

Success


## Fields

Expand Down
2 changes: 2 additions & 0 deletions docs/Models/Components/BlocklistIdentifiers.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# BlocklistIdentifiers

Success


## Fields

Expand Down
8 changes: 5 additions & 3 deletions docs/Models/Components/Client.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Client

Success


## Fields

Expand All @@ -9,8 +11,8 @@
| `id` | *string* | :heavy_check_mark: | String representing the identifier of the session.<br/> |
| `sessionIds` | array<*string*> | :heavy_check_mark: | N/A |
| `sessions` | array<[Components\Session](../../Models/Components/Session.md)> | :heavy_check_mark: | N/A |
| `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of last update.<br/> |
| `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation.<br/> |
| `signInId` | *string* | :heavy_check_mark: | N/A |
| `signUpId` | *string* | :heavy_check_mark: | N/A |
| `lastActiveSessionId` | *string* | :heavy_check_mark: | Last active session_id.<br/> |
| `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of last update.<br/> |
| `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation.<br/> |
| `lastActiveSessionId` | *string* | :heavy_check_mark: | Last active session_id.<br/> |
2 changes: 2 additions & 0 deletions docs/Models/Components/DeletedObject.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# DeletedObject

Deleted Object


## Fields

Expand Down
2 changes: 2 additions & 0 deletions docs/Models/Components/Domains.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Domains

A list of domains


## Fields

Expand Down
6 changes: 4 additions & 2 deletions docs/Models/Components/EmailAddress.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# EmailAddress

Success


## Fields

Expand All @@ -8,8 +10,8 @@
| `object` | [Components\EmailAddressObject](../../Models/Components/EmailAddressObject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value.<br/> |
| `emailAddress` | *string* | :heavy_check_mark: | N/A |
| `reserved` | *bool* | :heavy_check_mark: | N/A |
| `verification` | [Components\Otp\|Components\Admin\|Components\Oauth](../../Models/Components/Verification.md) | :heavy_check_mark: | N/A |
| `linkedTo` | array<[Components\IdentificationLink](../../Models/Components/IdentificationLink.md)> | :heavy_check_mark: | N/A |
| `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation<br/> |
| `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of creation<br/> |
| `id` | *?string* | :heavy_minus_sign: | N/A |
| `id` | *?string* | :heavy_minus_sign: | N/A |
| `verification` | [Components\Otp\|Components\Admin\|Components\Oauth](../../Models/Components/Verification.md) | :heavy_check_mark: | N/A |
2 changes: 2 additions & 0 deletions docs/Models/Components/InstanceRestrictions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# InstanceRestrictions

Success


## Fields

Expand Down
2 changes: 2 additions & 0 deletions docs/Models/Components/InstanceSettings.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# InstanceSettings

InstanceSettings Server API


## Fields

Expand Down
2 changes: 2 additions & 0 deletions docs/Models/Components/Invitation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Invitation

Success


## Fields

Expand Down
2 changes: 2 additions & 0 deletions docs/Models/Components/InvitationRevoked.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# InvitationRevoked

Success


## Fields

Expand Down
2 changes: 2 additions & 0 deletions docs/Models/Components/JWTTemplate.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# JWTTemplate

List of JWT templates


## Fields

Expand Down
2 changes: 2 additions & 0 deletions docs/Models/Components/OAuthApplications.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# OAuthApplications

A list of OAuth applications


## Fields

Expand Down
4 changes: 2 additions & 2 deletions docs/Models/Components/Organization.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
| `privateMetadata` | [Components\OrganizationPrivateMetadata](../../Models/Components/OrganizationPrivateMetadata.md) | :heavy_check_mark: | N/A |
| `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation.<br/> |
| `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of last update.<br/> |
| `membersCount` | *?int* | :heavy_minus_sign: | N/A |
| `adminDeleteEnabled` | *?bool* | :heavy_minus_sign: | N/A |
| `createdBy` | *?string* | :heavy_minus_sign: | N/A |
| `createdBy` | *?string* | :heavy_minus_sign: | N/A |
| `membersCount` | *?int* | :heavy_minus_sign: | N/A |
2 changes: 2 additions & 0 deletions docs/Models/Components/OrganizationInvitations.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# OrganizationInvitations

A list of organization invitations


## Fields

Expand Down
Loading

0 comments on commit 22f05d7

Please sign in to comment.