Skip to content

Commit 8afa1ba

Browse files
lanbytescursoragent
andcommitted
Add Speakeasy-generated TwexAPI PHP SDK.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 parents  commit 8afa1ba

520 files changed

Lines changed: 44846 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This allows generated code to be indexed correctly
2+
*.php linguist-generated=false
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Generate
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
force:
11+
description: Force generation of SDKs
12+
type: boolean
13+
default: false
14+
set_version:
15+
description: Optional version to force for generation
16+
type: string
17+
schedule:
18+
- cron: 0 0 * * *
19+
jobs:
20+
generate:
21+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
22+
with:
23+
speakeasy_version: latest
24+
force: ${{ github.event.inputs.force }}
25+
mode: pr
26+
set_version: ${{ github.event.inputs.set_version }}
27+
secrets:
28+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
29+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
30+
packagist_username: ${{ secrets.PACKAGIST_USERNAME }}
31+
packagist_token: ${{ secrets.PACKAGIST_TOKEN }}

.github/workflows/sdk_publish.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
on:
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- .speakeasy/gen.lock
13+
workflow_dispatch:
14+
jobs:
15+
publish:
16+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
17+
with:
18+
create_release: true
19+
secrets:
20+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
21+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
22+
packagist_username: ${{ secrets.PACKAGIST_USERNAME }}
23+
packagist_token: ${{ secrets.PACKAGIST_TOKEN }}

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
composer.lock
2+
vendor
3+
.DS_Store
4+
**/.speakeasy/temp/
5+
**/.speakeasy/logs/
6+
.speakeasy/reports
7+
.speakeasy/out.openapi.yaml
8+
.env
9+
.env.local

.speakeasy/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
logs/
2+
temp/
3+
reports/

.speakeasy/gen.lock

Lines changed: 1676 additions & 0 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
configVersion: 2.0.0
2+
generation:
3+
sdkClassName: XapiScraper
4+
maintainOpenAPIOrder: true
5+
usageSnippets:
6+
optionalPropertyRendering: withExample
7+
sdkInitStyle: constructor
8+
useClassNamesForArrayFields: true
9+
fixes:
10+
nameResolutionDec2023: true
11+
nameResolutionFeb2025: true
12+
parameterOrderingFeb2024: true
13+
requestResponseComponentNamesFeb2024: true
14+
securityFeb2025: true
15+
sharedErrorComponentsApr2025: true
16+
sharedNestedComponentsJan2026: true
17+
nameOverrideFeb2026: true
18+
auth:
19+
oAuth2ClientCredentialsEnabled: true
20+
oAuth2PasswordEnabled: true
21+
hoistGlobalSecurity: true
22+
inferSSEOverload: true
23+
sdkHooksConfigAccess: true
24+
schemas:
25+
allOfMergeStrategy: shallowMerge
26+
requestBodyFieldName: body
27+
versioningStrategy: manual
28+
persistentEdits: {}
29+
tests:
30+
generateTests: false
31+
generateNewTests: true
32+
skipResponseBodyAssertions: false
33+
repoUrl: https://github.com/twexapi-dev/x-api-scraper-php
34+
php:
35+
version: 0.1.0
36+
additionalDependencies:
37+
autoload: {}
38+
autoload-dev: {}
39+
require: {}
40+
require-dev: {}
41+
baseErrorName: XapiScraperException
42+
clientServerStatusCodesAsErrors: true
43+
defaultErrorName: APIException
44+
flattenGlobalSecurity: true
45+
imports:
46+
option: openapi
47+
paths:
48+
callbacks: Models/Callbacks
49+
errors: Models/Errors
50+
operations: Models/Operations
51+
shared: Models/Components
52+
webhooks: Models/Webhooks
53+
inferUnionDiscriminators: true
54+
inputModelSuffix: input
55+
laravelServiceProvider:
56+
enabled: false
57+
svcName: openapi
58+
maxMethodParams: 4
59+
methodArguments: infer-optional-args
60+
multipartArrayFormat: standard
61+
namespace: XapiScraper
62+
outputModelSuffix: output
63+
packageName: twexapi/x-api-scraper

.speakeasy/workflow.lock

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
speakeasyVersion: 1.795.1
2+
sources:
3+
X API Scraper:
4+
sourceNamespace: x-api-scraper
5+
sourceRevisionDigest: sha256:f8060dbd014f0f4bc1db1a027bcec3334dabc2fe86e5fea950aa4632275be18f
6+
sourceBlobDigest: sha256:6e013e2ccb496e995907ac9004c6b8f922022360569ad08af4ad9399b7203d88
7+
tags:
8+
- latest
9+
- 1.0.0
10+
x-api-scraper:
11+
sourceNamespace: x-api-scraper
12+
sourceRevisionDigest: sha256:4c2219a33c1368f6023c6ff6f493dd8994a426fbf2d49b20c63d0dc0a51ef6b1
13+
sourceBlobDigest: sha256:0185b157502bb647f45328368fa002d4761d1de66b10dfb3285a7155e285ef16
14+
tags:
15+
- latest
16+
- 1.0.0
17+
targets:
18+
php:
19+
source: x-api-scraper
20+
sourceNamespace: x-api-scraper
21+
sourceRevisionDigest: sha256:4c2219a33c1368f6023c6ff6f493dd8994a426fbf2d49b20c63d0dc0a51ef6b1
22+
sourceBlobDigest: sha256:0185b157502bb647f45328368fa002d4761d1de66b10dfb3285a7155e285ef16
23+
codeSamplesNamespace: x-api-scraper-php-code-samples
24+
codeSamplesRevisionDigest: sha256:24990a2397e3ec4e63492f1e743fa1ff1c5001480e4e7a9073a548d052996d1d
25+
xapi-scraper:
26+
source: X API Scraper
27+
sourceNamespace: x-api-scraper
28+
sourceRevisionDigest: sha256:f8060dbd014f0f4bc1db1a027bcec3334dabc2fe86e5fea950aa4632275be18f
29+
sourceBlobDigest: sha256:6e013e2ccb496e995907ac9004c6b8f922022360569ad08af4ad9399b7203d88
30+
codeSamplesNamespace: x-api-scraper-php-code-samples
31+
codeSamplesRevisionDigest: sha256:c21498c4f0931082da800cdd93e74ff7397a81aade18302b7645b68bc7bc8f2e
32+
workflow:
33+
workflowVersion: 1.0.0
34+
speakeasyVersion: latest
35+
sources:
36+
x-api-scraper:
37+
inputs:
38+
- location: ./openapi.sdk.json
39+
registry:
40+
location: registry.speakeasyapi.dev/twexapi/sdk/x-api-scraper
41+
targets:
42+
php:
43+
target: php
44+
source: x-api-scraper
45+
codeSamples:
46+
registry:
47+
location: registry.speakeasyapi.dev/twexapi/sdk/x-api-scraper-php-code-samples
48+
labelOverride:
49+
fixedValue: PHP (SDK)
50+
blocking: false

.speakeasy/workflow.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
workflowVersion: 1.0.0
2+
speakeasyVersion: latest
3+
sources:
4+
x-api-scraper:
5+
inputs:
6+
- location: ./openapi.sdk.json
7+
registry:
8+
location: registry.speakeasyapi.dev/twexapi/sdk/x-api-scraper
9+
targets:
10+
php:
11+
target: php
12+
source: x-api-scraper
13+
codeSamples:
14+
registry:
15+
location: registry.speakeasyapi.dev/twexapi/sdk/x-api-scraper-php-code-samples
16+
labelOverride:
17+
fixedValue: PHP (SDK)
18+
blocking: false

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing to This Repository
2+
3+
Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.
4+
5+
## How to Report Issues
6+
7+
If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:
8+
9+
- A clear and descriptive title
10+
- Steps to reproduce the issue
11+
- Expected and actual behavior
12+
- Any relevant logs, screenshots, or error messages
13+
- Information about your environment (e.g., operating system, software versions)
14+
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed
15+
16+
## Issue Triage and Upstream Fixes
17+
18+
We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.
19+
20+
## Contact
21+
22+
If you have any questions or need further assistance, please feel free to reach out by opening an issue.
23+
24+
Thank you for your understanding and cooperation!
25+
26+
The Maintainers

0 commit comments

Comments
 (0)