Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Jun 26, 2024
0 parents commit 0b26147
Show file tree
Hide file tree
Showing 889 changed files with 38,790 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
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
29 changes: 29 additions & 0 deletions .github/workflows/sdk_generation.yaml
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 }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
composer.lock
vendor
.DS_Store
900 changes: 900 additions & 0 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions .speakeasy/gen.yaml
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
28 changes: 28 additions & 0 deletions .speakeasy/workflow.lock
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
12 changes: 12 additions & 0 deletions .speakeasy/workflow.yaml
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
306 changes: 306 additions & 0 deletions README.md

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions USAGE.md
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] -->
41 changes: 41 additions & 0 deletions composer.json
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."
}
}
7 changes: 7 additions & 0 deletions docs/Models/Components/Actor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Actor


## Fields

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
16 changes: 16 additions & 0 deletions docs/Models/Components/ActorToken.md
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/> |
7 changes: 7 additions & 0 deletions docs/Models/Components/ActorTokenActor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ActorTokenActor


## Fields

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
8 changes: 8 additions & 0 deletions docs/Models/Components/ActorTokenObject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ActorTokenObject


## Values

| Name | Value |
| ------------ | ------------ |
| `ActorToken` | actor_token |
10 changes: 10 additions & 0 deletions docs/Models/Components/ActorTokenStatus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ActorTokenStatus


## Values

| Name | Value |
| ---------- | ---------- |
| `Pending` | pending |
| `Accepted` | accepted |
| `Revoked` | revoked |
15 changes: 15 additions & 0 deletions docs/Models/Components/AllowlistIdentifier.md
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/> |
11 changes: 11 additions & 0 deletions docs/Models/Components/AllowlistIdentifierObject.md
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 |
11 changes: 11 additions & 0 deletions docs/Models/Components/AttributeMapping.md
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 |
Loading

0 comments on commit 0b26147

Please sign in to comment.