Skip to content

Commit

Permalink
chore: Update SDK with latest API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
octoper committed Jun 26, 2024
1 parent 0b26147 commit 9ef68c6
Show file tree
Hide file tree
Showing 25 changed files with 8,709 additions and 180 deletions.
16 changes: 5 additions & 11 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 8c24a12b-d2f1-466a-bdaa-6d83a049a679
management:
docChecksum: b4b3cbe6b1d4fbc0cbd1352ba7388231
docChecksum: 16d57a566fd293ae00cc4172463280a5
docVersion: v1
speakeasyVersion: 1.303.4
generationVersion: 2.340.2
releaseVersion: 0.0.1
configChecksum: 8126157200018e8993de6af0e81f422c
speakeasyVersion: 1.304.0
generationVersion: 2.340.3
releaseVersion: 0.0.2
configChecksum: 34256face4ed02fa3d1ffcabc892a57d
features:
php:
core: 3.3.5
Expand Down Expand Up @@ -162,9 +162,6 @@ generatedFiles:
- src/Models/Operations/SetUserProfileImageResponse.php
- src/Models/Operations/DeleteUserProfileImageRequest.php
- src/Models/Operations/DeleteUserProfileImageResponse.php
- src/Models/Operations/UpdateUserMetadataPublicMetadata.php
- src/Models/Operations/UpdateUserMetadataPrivateMetadata.php
- src/Models/Operations/UpdateUserMetadataUnsafeMetadata.php
- src/Models/Operations/UpdateUserMetadataRequestBody.php
- src/Models/Operations/UpdateUserMetadataRequest.php
- src/Models/Operations/UpdateUserMetadataResponse.php
Expand Down Expand Up @@ -564,9 +561,6 @@ generatedFiles:
- docs/Models/Operations/SetUserProfileImageResponse.md
- docs/Models/Operations/DeleteUserProfileImageRequest.md
- docs/Models/Operations/DeleteUserProfileImageResponse.md
- docs/Models/Operations/UpdateUserMetadataPublicMetadata.md
- docs/Models/Operations/UpdateUserMetadataPrivateMetadata.md
- docs/Models/Operations/UpdateUserMetadataUnsafeMetadata.md
- docs/Models/Operations/UpdateUserMetadataRequestBody.md
- docs/Models/Operations/UpdateUserMetadataRequest.md
- docs/Models/Operations/UpdateUserMetadataResponse.md
Expand Down
2 changes: 1 addition & 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.0.1
version: 0.0.2
flattenGlobalSecurity: true
imports:
option: openapi
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ speakeasyVersion: 1.304.0
sources:
clerk-backend-php:
sourceNamespace: clerk-backend-php
sourceRevisionDigest: sha256:1659b016475c79c826c2bec40b8fa342949de0ff3a5f857d593dc6b1c492ff0e
sourceBlobDigest: sha256:54222731741d6c8a37a3e88a34a64e9e10085cd39c9b3e0ab9981b25048f8e65
sourceRevisionDigest: sha256:8324d4e13b4acf8045e55dfca67ee83c87e440906d93a3b484d45fe3211ff53a
sourceBlobDigest: sha256:426da36af58cfc22dcaccd77120cff8f5f50efef2912cf525aa7394f3a67ea84
tags:
- latest
targets:
my-first-target:
source: clerk-backend-php
sourceNamespace: clerk-backend-php
sourceRevisionDigest: sha256:1659b016475c79c826c2bec40b8fa342949de0ff3a5f857d593dc6b1c492ff0e
sourceBlobDigest: sha256:54222731741d6c8a37a3e88a34a64e9e10085cd39c9b3e0ab9981b25048f8e65
sourceRevisionDigest: sha256:8324d4e13b4acf8045e55dfca67ee83c87e440906d93a3b484d45fe3211ff53a
sourceBlobDigest: sha256:426da36af58cfc22dcaccd77120cff8f5f50efef2912cf525aa7394f3a67ea84
outLocation: /Users/octoper/clerk/projects/clerk-backend-php
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
clerk-backend-php:
inputs:
- location: ../../../Downloads/swagg.json
- location: ./openapi.json
registry:
location: registry.speakeasyapi.dev/octoper-3d0/octoper/clerk-backend-php
targets:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ speakeasyVersion: latest
sources:
clerk-backend-php:
inputs:
- location: ../../../Downloads/swagg.json
- location: ./openapi.json
registry:
location: registry.speakeasyapi.dev/octoper-3d0/octoper/clerk-backend-php
targets:
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ try {

### [EmailAndSMSTemplates](docs/sdks/emailandsmstemplates/README.md)

* [getTemplateList](docs/sdks/emailandsmstemplates/README.md#gettemplatelist) - List all templates
* [getTemplate](docs/sdks/emailandsmstemplates/README.md#gettemplate) - Retrieve a template
* [upsertTemplate](docs/sdks/emailandsmstemplates/README.md#upserttemplate) - Update a template for a given type and slug
* [revertTemplate](docs/sdks/emailandsmstemplates/README.md#reverttemplate) - Revert a template
* [previewTemplate](docs/sdks/emailandsmstemplates/README.md#previewtemplate) - Preview changes to a template
* [toggleTemplateDelivery](docs/sdks/emailandsmstemplates/README.md#toggletemplatedelivery) - Toggle the delivery by Clerk for a template of a given type and slug
* [~~getTemplateList~~](docs/sdks/emailandsmstemplates/README.md#gettemplatelist) - List all templates :warning: **Deprecated**
* [~~getTemplate~~](docs/sdks/emailandsmstemplates/README.md#gettemplate) - Retrieve a template :warning: **Deprecated**
* [~~upsertTemplate~~](docs/sdks/emailandsmstemplates/README.md#upserttemplate) - Update a template for a given type and slug :warning: **Deprecated**
* [~~revertTemplate~~](docs/sdks/emailandsmstemplates/README.md#reverttemplate) - Revert a template :warning: **Deprecated**
* [~~previewTemplate~~](docs/sdks/emailandsmstemplates/README.md#previewtemplate) - Preview changes to a template :warning: **Deprecated**
* [~~toggleTemplateDelivery~~](docs/sdks/emailandsmstemplates/README.md#toggletemplatedelivery) - Toggle the delivery by Clerk for a template of a given type and slug :warning: **Deprecated**

### [Users](docs/sdks/users/README.md)

Expand Down
40 changes: 20 additions & 20 deletions docs/Models/Operations/CreateUserRequestBody.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Models/Operations/GetOAuthAccessTokenResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
| `responseBodies` | array<[\Clerk\Backend\Models\Operations\ResponseBody](../../Models/Operations/ResponseBody.md)> | :heavy_minus_sign: | The OAuth access token of the user, if any. |
| `clerkErrors` | [?\Clerk\Backend\Models\Components\ClerkErrors](../../Models/Components/ClerkErrors.md) | :heavy_minus_sign: | Invalid request parameters |
| `clerkErrors` | [?\Clerk\Backend\Models\Components\ClerkErrors](../../Models/Components/ClerkErrors.md) | :heavy_minus_sign: | Request was not successful |
2 changes: 1 addition & 1 deletion docs/Models/Operations/PasswordHasher.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ For the argon2id case, the value of the algorithm in the first part of the diges
**sha256_salted** (insecure): The digest should be a 64-length hex string with a salt.

The format is the following:
`<hash>$<salt>`
`<hash>$<salt>`

The value is expected to have 2 segments separated by the $ character and include the following information:
_hash:_ The sha256 hash, a 64-length hex string.
Expand Down
10 changes: 0 additions & 10 deletions docs/Models/Operations/UpdateUserMetadataPrivateMetadata.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/Models/Operations/UpdateUserMetadataPublicMetadata.md

This file was deleted.

6 changes: 3 additions & 3 deletions docs/Models/Operations/UpdateUserMetadataRequestBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `publicMetadata` | [?\Clerk\Backend\Models\Operations\UpdateUserMetadataPublicMetadata](../../Models/Operations/UpdateUserMetadataPublicMetadata.md) | :heavy_minus_sign: | Metadata saved on the user, that is visible to both your frontend and backend.<br/>The new object will be merged with the existing value. |
| `privateMetadata` | [?\Clerk\Backend\Models\Operations\UpdateUserMetadataPrivateMetadata](../../Models/Operations/UpdateUserMetadataPrivateMetadata.md) | :heavy_minus_sign: | Metadata saved on the user that is only visible to your backend.<br/>The new object will be merged with the existing value. |
| `unsafeMetadata` | [?\Clerk\Backend\Models\Operations\UpdateUserMetadataUnsafeMetadata](../../Models/Operations/UpdateUserMetadataUnsafeMetadata.md) | :heavy_minus_sign: | Metadata saved on the user, that can be updated from both the Frontend and Backend APIs.<br/>The new object will be merged with the existing value.<br/><br/>Note: Since this data can be modified from the frontend, it is not guaranteed to be safe. |
| `publicMetadata` | array<string, *mixed*> | :heavy_minus_sign: | Metadata saved on the user, that is visible to both your frontend and backend.<br/>The new object will be merged with the existing value. |
| `privateMetadata` | array<string, *mixed*> | :heavy_minus_sign: | Metadata saved on the user that is only visible to your backend.<br/>The new object will be merged with the existing value. |
| `unsafeMetadata` | array<string, *mixed*> | :heavy_minus_sign: | Metadata saved on the user, that can be updated from both the Frontend and Backend APIs.<br/>The new object will be merged with the existing value.<br/><br/>Note: Since this data can be modified from the frontend, it is not guaranteed to be safe. |
12 changes: 0 additions & 12 deletions docs/Models/Operations/UpdateUserMetadataUnsafeMetadata.md

This file was deleted.

Loading

0 comments on commit 9ef68c6

Please sign in to comment.