-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0b26147
Showing
889 changed files
with
38,790 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# This allows generated code to be indexed correctly | ||
*.php linguist-generated=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Generate | ||
permissions: | ||
checks: write | ||
contents: write | ||
pull-requests: write | ||
statuses: write | ||
"on": | ||
workflow_dispatch: | ||
inputs: | ||
force: | ||
description: Force generation of SDKs | ||
type: boolean | ||
default: false | ||
set_version: | ||
description: optionally set a specific SDK version | ||
type: string | ||
schedule: | ||
- cron: 0 0 * * * | ||
jobs: | ||
generate: | ||
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 | ||
with: | ||
force: ${{ github.event.inputs.force }} | ||
mode: pr | ||
set_version: ${{ github.event.inputs.set_version }} | ||
speakeasy_version: latest | ||
secrets: | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
composer.lock | ||
vendor | ||
.DS_Store |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
configVersion: 2.0.0 | ||
generation: | ||
sdkClassName: ClerkBackend | ||
maintainOpenAPIOrder: true | ||
usageSnippets: | ||
optionalPropertyRendering: withExample | ||
useClassNamesForArrayFields: true | ||
fixes: | ||
nameResolutionDec2023: true | ||
parameterOrderingFeb2024: true | ||
requestResponseComponentNamesFeb2024: true | ||
auth: | ||
oAuth2ClientCredentialsEnabled: false | ||
php: | ||
version: 0.0.1 | ||
flattenGlobalSecurity: true | ||
imports: | ||
option: openapi | ||
paths: | ||
callbacks: Models/Callbacks | ||
errors: Models/Errors | ||
operations: Models/Operations | ||
shared: Models/Components | ||
webhooks: Models/Webhooks | ||
inputModelSuffix: input | ||
maxMethodParams: 4 | ||
namespace: Clerk\Backend | ||
outputModelSuffix: output | ||
packageName: clerk/backend-php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
speakeasyVersion: 1.304.0 | ||
sources: | ||
clerk-backend-php: | ||
sourceNamespace: clerk-backend-php | ||
sourceRevisionDigest: sha256:1659b016475c79c826c2bec40b8fa342949de0ff3a5f857d593dc6b1c492ff0e | ||
sourceBlobDigest: sha256:54222731741d6c8a37a3e88a34a64e9e10085cd39c9b3e0ab9981b25048f8e65 | ||
tags: | ||
- latest | ||
targets: | ||
my-first-target: | ||
source: clerk-backend-php | ||
sourceNamespace: clerk-backend-php | ||
sourceRevisionDigest: sha256:1659b016475c79c826c2bec40b8fa342949de0ff3a5f857d593dc6b1c492ff0e | ||
sourceBlobDigest: sha256:54222731741d6c8a37a3e88a34a64e9e10085cd39c9b3e0ab9981b25048f8e65 | ||
outLocation: /Users/octoper/clerk/projects/clerk-backend-php | ||
workflow: | ||
workflowVersion: 1.0.0 | ||
speakeasyVersion: latest | ||
sources: | ||
clerk-backend-php: | ||
inputs: | ||
- location: ../../../Downloads/swagg.json | ||
registry: | ||
location: registry.speakeasyapi.dev/octoper-3d0/octoper/clerk-backend-php | ||
targets: | ||
my-first-target: | ||
target: php | ||
source: clerk-backend-php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
workflowVersion: 1.0.0 | ||
speakeasyVersion: latest | ||
sources: | ||
clerk-backend-php: | ||
inputs: | ||
- location: ../../../Downloads/swagg.json | ||
registry: | ||
location: registry.speakeasyapi.dev/octoper-3d0/octoper/clerk-backend-php | ||
targets: | ||
my-first-target: | ||
target: php | ||
source: clerk-backend-php |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- Start SDK Example Usage [usage] --> | ||
```php | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
require 'vendor/autoload.php'; | ||
|
||
use Clerk\Backend; | ||
use Clerk\Backend\Models\Components; | ||
use Clerk\Backend\Models\Operations; | ||
|
||
$sdk = Backend\ClerkBackend::builder()->build(); | ||
|
||
try { | ||
$response = $sdk->miscellaneous->getPublicInterstitial('<value>', '<value>'); | ||
|
||
if ($response->statusCode === 200) { | ||
// handle response | ||
} | ||
} catch (Throwable $e) { | ||
// handle exception | ||
} | ||
|
||
``` | ||
<!-- End SDK Example Usage [usage] --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "clerk/backend-php", | ||
"type": "library", | ||
"autoload": { | ||
"psr-4": { | ||
"Clerk\\Backend\\": "src/" | ||
} | ||
}, | ||
"license": "MIT", | ||
"require": { | ||
"php": "^8.1", | ||
"guzzlehttp/guzzle": "^7.0", | ||
"jms/serializer": "^3.22" | ||
}, | ||
"require-dev": { | ||
"laravel/pint": "^1.15", | ||
"phpstan/phpstan": "^1.9", | ||
"phpunit/phpunit": "^10", | ||
"rector/rector": "^0.18.13", | ||
"roave/security-advisories": "dev-latest" | ||
}, | ||
"minimum-stability": "stable", | ||
"prefer-stable": true, | ||
"config": { | ||
"optimize-autoloader": true, | ||
"classmap-authoritative": true, | ||
"sort-packages": true | ||
}, | ||
"scripts": { | ||
"test": [ | ||
"./vendor/bin/phpunit --testdox" | ||
], | ||
"stan": [ | ||
"./vendor/bin/phpstan analyse --memory-limit=2g" | ||
] | ||
}, | ||
"script-descriptions": { | ||
"test": "Run PhpUnit test scripts.", | ||
"stan": "Run PhpStan static analysis." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Actor | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | | ||
| ----------- | ----------- | ----------- | ----------- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# ActorToken | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | | ||
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | | ||
| `object` | [\Clerk\Backend\Models\Components\ActorTokenObject](../../Models/Components/ActorTokenObject.md) | :heavy_check_mark: | N/A | | ||
| `id` | *string* | :heavy_check_mark: | N/A | | ||
| `status` | [\Clerk\Backend\Models\Components\ActorTokenStatus](../../Models/Components/ActorTokenStatus.md) | :heavy_check_mark: | N/A | | ||
| `userId` | *string* | :heavy_check_mark: | N/A | | ||
| `actor` | [\Clerk\Backend\Models\Components\ActorTokenActor](../../Models/Components/ActorTokenActor.md) | :heavy_check_mark: | N/A | | ||
| `token` | *?string* | :heavy_minus_sign: | N/A | | ||
| `url` | *?string* | :heavy_minus_sign: | N/A | | ||
| `createdAt` | *int* | :heavy_check_mark: | Unix timestamp of creation.<br/> | | ||
| `updatedAt` | *int* | :heavy_check_mark: | Unix timestamp of last update.<br/> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# ActorTokenActor | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | | ||
| ----------- | ----------- | ----------- | ----------- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# ActorTokenObject | ||
|
||
|
||
## Values | ||
|
||
| Name | Value | | ||
| ------------ | ------------ | | ||
| `ActorToken` | actor_token | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ActorTokenStatus | ||
|
||
|
||
## Values | ||
|
||
| Name | Value | | ||
| ---------- | ---------- | | ||
| `Pending` | pending | | ||
| `Accepted` | accepted | | ||
| `Revoked` | revoked | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# AllowlistIdentifier | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | | ||
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | ||
| `object` | [?\Clerk\Backend\Models\Components\AllowlistIdentifierObject](../../Models/Components/AllowlistIdentifierObject.md) | :heavy_minus_sign: | String representing the object's type. Objects of the same type share the same value.<br/> | | ||
| `id` | *?string* | :heavy_minus_sign: | N/A | | ||
| `invitationId` | *?string* | :heavy_minus_sign: | N/A | | ||
| `identifier` | *?string* | :heavy_minus_sign: | An email address or a phone number.<br/> | | ||
| `identifierType` | [?\Clerk\Backend\Models\Components\IdentifierType](../../Models/Components/IdentifierType.md) | :heavy_minus_sign: | N/A | | ||
| `instanceId` | *?string* | :heavy_minus_sign: | N/A | | ||
| `createdAt` | *?int* | :heavy_minus_sign: | Unix timestamp of creation<br/> | | ||
| `updatedAt` | *?int* | :heavy_minus_sign: | Unix timestamp of last update.<br/> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# AllowlistIdentifierObject | ||
|
||
String representing the object's type. Objects of the same type share the same value. | ||
|
||
|
||
|
||
## Values | ||
|
||
| Name | Value | | ||
| --------------------- | --------------------- | | ||
| `AllowlistIdentifier` | allowlist_identifier | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# AttributeMapping | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | | ||
| ------------------ | ------------------ | ------------------ | ------------------ | | ||
| `userId` | *?string* | :heavy_minus_sign: | N/A | | ||
| `emailAddress` | *?string* | :heavy_minus_sign: | N/A | | ||
| `firstName` | *?string* | :heavy_minus_sign: | N/A | | ||
| `lastName` | *?string* | :heavy_minus_sign: | N/A | |
Oops, something went wrong.