diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..4d75d59 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# This allows generated code to be indexed correctly +*.py linguist-generated=false \ No newline at end of file diff --git a/.github/workflows/sdk_generation.yaml b/.github/workflows/sdk_generation.yaml new file mode 100644 index 0000000..7525d1f --- /dev/null +++ b/.github/workflows/sdk_generation.yaml @@ -0,0 +1,25 @@ +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 + 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 + speakeasy_version: latest + secrets: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3cdf338 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +venv/ +src/*.egg-info/ +__pycache__/ +.pytest_cache/ +.python-version +.DS_Store diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock new file mode 100755 index 0000000..2ef0175 --- /dev/null +++ b/.speakeasy/gen.lock @@ -0,0 +1,198 @@ +lockVersion: 2.0.0 +id: 2a6c8ff2-6c9d-4fc5-a507-95a5d089b5af +management: + docChecksum: 5e7cc152f137f5919734cc70b836a4d6 + docVersion: 1.0.0 + speakeasyVersion: 1.296.1 + generationVersion: 2.338.1 + releaseVersion: 0.0.1 + configChecksum: 487271216a48e050d4190586db2ed9c4 +features: + python: + additionalDependencies: 0.1.0 + constsAndDefaults: 0.1.3 + core: 4.6.8 + deprecations: 2.81.1 + examples: 2.81.3 + flattening: 2.81.1 + getRequestBodies: 2.81.1 + globalSecurity: 2.83.5 + globalSecurityCallbacks: 0.1.0 + globalSecurityFlattening: 0.1.0 + globalServerURLs: 2.82.2 + globals: 2.82.1 + nameOverrides: 2.81.2 + nullables: 0.1.0 + responseFormat: 0.1.0 + sdkHooks: 0.1.0 + typeOverrides: 2.81.1 + unions: 2.82.7 +generatedFiles: + - src/log10/sdkconfiguration.py + - src/log10/completions.py + - src/log10/sessions.py + - src/log10/feedback.py + - src/log10/feedbacktasks.py + - src/log10/sdk.py + - py.typed + - pylintrc + - setup.py + - src/log10/__init__.py + - src/log10/utils/__init__.py + - src/log10/utils/retries.py + - src/log10/utils/utils.py + - src/log10/models/errors/sdkerror.py + - src/log10/models/operations/create.py + - src/log10/models/operations/update.py + - src/log10/models/operations/listungraded.py + - src/log10/models/operations/createsession.py + - src/log10/models/operations/get.py + - src/log10/models/operations/list.py + - src/log10/models/operations/upload.py + - src/log10/models/operations/listfeedbacktasks.py + - src/log10/models/operations/createfeedbacktask.py + - src/log10/models/operations/getfeedbacktask.py + - src/log10/models/components/completion.py + - src/log10/models/components/createchatcompletionresponse.py + - src/log10/models/components/completionusage.py + - src/log10/models/components/chatcompletiontokenlogprob.py + - src/log10/models/components/chatcompletionresponsemessage.py + - src/log10/models/components/chatcompletionmessagetoolcall.py + - src/log10/models/components/createchatcompletionrequest.py + - src/log10/models/components/chatcompletionfunctions.py + - src/log10/models/components/chatcompletionfunctioncalloption.py + - src/log10/models/components/chatcompletiontoolchoiceoption.py + - src/log10/models/components/chatcompletionnamedtoolchoice.py + - src/log10/models/components/chatcompletiontool.py + - src/log10/models/components/functionobject.py + - src/log10/models/components/chatcompletionstreamoptions.py + - src/log10/models/components/chatcompletionrequestmessage.py + - src/log10/models/components/chatcompletionrequestsystemmessage.py + - src/log10/models/components/chatcompletionrequestusermessage.py + - src/log10/models/components/chatcompletionrequestmessagecontentpart.py + - src/log10/models/components/chatcompletionrequestmessagecontentparttext.py + - src/log10/models/components/chatcompletionrequestmessagecontentpartimage.py + - src/log10/models/components/chatcompletionrequestassistantmessage.py + - src/log10/models/components/chatcompletionrequesttoolmessage.py + - src/log10/models/components/chatcompletionrequestfunctionmessage.py + - src/log10/models/components/httpmetadata.py + - src/log10/models/components/session.py + - src/log10/models/components/feedback.py + - src/log10/models/components/task.py + - src/log10/models/components/security.py + - src/log10/models/internal/globals.py + - src/log10/models/__init__.py + - src/log10/models/errors/__init__.py + - src/log10/models/operations/__init__.py + - src/log10/models/components/__init__.py + - src/log10/models/internal/__init__.py + - docs/models/operations/createglobals.md + - docs/models/operations/createrequest.md + - docs/models/operations/createresponse.md + - docs/models/operations/updateglobals.md + - docs/models/operations/updaterequest.md + - docs/models/operations/updateresponse.md + - docs/models/operations/listungradedglobals.md + - docs/models/operations/listungradedrequest.md + - docs/models/operations/listungradedresponsebody.md + - docs/models/operations/listungradedresponse.md + - docs/models/operations/createsessionglobals.md + - docs/models/operations/createsessionrequest.md + - docs/models/operations/createsessionresponsebody.md + - docs/models/operations/createsessionresponse.md + - docs/models/operations/getglobals.md + - docs/models/operations/getrequest.md + - docs/models/operations/getresponse.md + - docs/models/operations/listglobals.md + - docs/models/operations/listrequestbody.md + - docs/models/operations/listrequest.md + - docs/models/operations/listresponsebody.md + - docs/models/operations/listresponse.md + - docs/models/operations/uploadglobals.md + - docs/models/operations/requestbodyjsonvalues.md + - docs/models/operations/two.md + - docs/models/operations/jsonvalues.md + - docs/models/operations/one.md + - docs/models/operations/uploadrequestbody.md + - docs/models/operations/uploadrequest.md + - docs/models/operations/uploadresponse.md + - docs/models/operations/listfeedbacktasksresponse.md + - docs/models/operations/createfeedbacktaskresponse.md + - docs/models/operations/getfeedbacktaskrequest.md + - docs/models/operations/getfeedbacktaskresponse.md + - docs/models/components/kind.md + - docs/models/components/status.md + - docs/models/components/stacktrace.md + - docs/models/components/completion.md + - docs/models/components/finishreason.md + - docs/models/components/logprobs.md + - docs/models/components/choices.md + - docs/models/components/object.md + - docs/models/components/createchatcompletionresponse.md + - docs/models/components/completionusage.md + - docs/models/components/toplogprobs.md + - docs/models/components/chatcompletiontokenlogprob.md + - docs/models/components/chatcompletionresponsemessagerole.md + - docs/models/components/chatcompletionresponsemessagefunctioncall.md + - docs/models/components/chatcompletionresponsemessage.md + - docs/models/components/chatcompletionmessagetoolcalltype.md + - docs/models/components/function.md + - docs/models/components/chatcompletionmessagetoolcall.md + - docs/models/components/two.md + - docs/models/components/model.md + - docs/models/components/createchatcompletionrequesttype.md + - docs/models/components/responseformat.md + - docs/models/components/stop.md + - docs/models/components/one.md + - docs/models/components/createchatcompletionrequestfunctioncall.md + - docs/models/components/createchatcompletionrequest.md + - docs/models/components/chatcompletionfunctions.md + - docs/models/components/chatcompletionfunctioncalloption.md + - docs/models/components/chatcompletiontoolchoiceoption1.md + - docs/models/components/chatcompletiontoolchoiceoption.md + - docs/models/components/chatcompletionnamedtoolchoicetype.md + - docs/models/components/chatcompletionnamedtoolchoicefunction.md + - docs/models/components/chatcompletionnamedtoolchoice.md + - docs/models/components/chatcompletiontooltype.md + - docs/models/components/chatcompletiontool.md + - docs/models/components/functionobject.md + - docs/models/components/chatcompletionstreamoptions.md + - docs/models/components/chatcompletionrequestmessage.md + - docs/models/components/role.md + - docs/models/components/chatcompletionrequestsystemmessage.md + - docs/models/components/content.md + - docs/models/components/chatcompletionrequestusermessagerole.md + - docs/models/components/chatcompletionrequestusermessage.md + - docs/models/components/chatcompletionrequestmessagecontentpart.md + - docs/models/components/type.md + - docs/models/components/chatcompletionrequestmessagecontentparttext.md + - docs/models/components/chatcompletionrequestmessagecontentpartimagetype.md + - docs/models/components/detail.md + - docs/models/components/imageurl.md + - docs/models/components/chatcompletionrequestmessagecontentpartimage.md + - docs/models/components/chatcompletionrequestassistantmessagerole.md + - docs/models/components/functioncall.md + - docs/models/components/chatcompletionrequestassistantmessage.md + - docs/models/components/chatcompletionrequesttoolmessagerole.md + - docs/models/components/chatcompletionrequesttoolmessage.md + - docs/models/components/chatcompletionrequestfunctionmessagerole.md + - docs/models/components/chatcompletionrequestfunctionmessage.md + - docs/models/components/httpmetadata.md + - docs/models/components/session.md + - docs/models/components/jsonvalues.md + - docs/models/components/feedback.md + - docs/models/components/jsonschema.md + - docs/models/components/completiontagsselector.md + - docs/models/components/task.md + - docs/models/components/security.md + - docs/models/internal/globals.md + - docs/sdks/log10/README.md + - docs/sdks/completions/README.md + - docs/sdks/sessions/README.md + - docs/sdks/feedback/README.md + - docs/sdks/feedbacktasks/README.md + - USAGE.md + - .gitattributes + - src/log10/_hooks/sdkhooks.py + - src/log10/_hooks/types.py + - src/log10/_hooks/__init__.py diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml new file mode 100755 index 0000000..a50ab57 --- /dev/null +++ b/.speakeasy/gen.yaml @@ -0,0 +1,38 @@ +configVersion: 2.0.0 +generation: + sdkClassName: Log10 + maintainOpenAPIOrder: true + usageSnippets: + optionalPropertyRendering: withExample + useClassNamesForArrayFields: true + fixes: + nameResolutionDec2023: true + parameterOrderingFeb2024: true + requestResponseComponentNamesFeb2024: true + auth: + oAuth2ClientCredentialsEnabled: false +python: + version: 0.0.1 + additionalDependencies: + dependencies: {} + extraDependencies: + dev: {} + author: Speakeasy + clientServerStatusCodesAsErrors: true + description: Python Client SDK Generated by Speakeasy + 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 + methodArguments: require-security-and-request + outputModelSuffix: output + packageName: log10py + projectUrls: {} + responseFormat: envelope-http diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock new file mode 100644 index 0000000..3d2e760 --- /dev/null +++ b/.speakeasy/workflow.lock @@ -0,0 +1,27 @@ +speakeasyVersion: 1.296.1 +sources: + default: + sourceNamespace: default + sourceRevisionDigest: sha256:c5dac52dda8ea676f42d99e8ed3f5d84c17d17c738d5dab93af7e2d759d1d76d + sourceBlobDigest: sha256:ecad176fb44b269bf0c8cfdb819080f45147740db62a767b7bfe8ff4c1b1fd7c + tags: + - latest +targets: + my-first-target: + source: default + sourceNamespace: default + sourceRevisionDigest: sha256:c5dac52dda8ea676f42d99e8ed3f5d84c17d17c738d5dab93af7e2d759d1d76d + sourceBlobDigest: sha256:ecad176fb44b269bf0c8cfdb819080f45147740db62a767b7bfe8ff4c1b1fd7c + outLocation: /Users/niklasqnielsen/workspace/log10/log10py +workflow: + workflowVersion: 1.0.0 + sources: + default: + inputs: + - location: openapi.yaml + registry: + location: registry.speakeasyapi.dev/log10/log10/default + targets: + my-first-target: + target: python + source: default diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml new file mode 100644 index 0000000..61b8a37 --- /dev/null +++ b/.speakeasy/workflow.yaml @@ -0,0 +1,11 @@ +workflowVersion: 1.0.0 +sources: + default: + inputs: + - location: openapi.yaml + registry: + location: registry.speakeasyapi.dev/log10/log10/default +targets: + my-first-target: + target: python + source: default