From b8eb8d72585fcf75036e79f58f6aca67342488fe Mon Sep 17 00:00:00 2001 From: Niklas Nielsen Date: Fri, 24 May 2024 17:23:28 -0700 Subject: [PATCH] Adding dot files --- .eslintrc.js | 28 ++++ .gitattributes | 2 + .github/workflows/sdk_generation.yaml | 25 ++++ .gitignore | 10 ++ .npmignore | 7 + .speakeasy/gen.lock | 203 ++++++++++++++++++++++++++ .speakeasy/gen.yaml | 39 +++++ .speakeasy/workflow.lock | 28 ++++ .speakeasy/workflow.yaml | 12 ++ 9 files changed, 354 insertions(+) create mode 100644 .eslintrc.js create mode 100644 .gitattributes create mode 100644 .github/workflows/sdk_generation.yaml create mode 100644 .gitignore create mode 100644 .npmignore create mode 100755 .speakeasy/gen.lock create mode 100755 .speakeasy/gen.yaml create mode 100644 .speakeasy/workflow.lock create mode 100644 .speakeasy/workflow.yaml diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..4d160bd --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,28 @@ +/* eslint-env node */ +module.exports = { + root: true, + extends: [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:import/recommended", + "plugin:import/typescript", + ], + parser: "@typescript-eslint/parser", + plugins: ["@typescript-eslint"], + settings: { + "import/resolver": { + typescript: true, + node: true, + }, + }, + rules: { + // Handled by typescript compiler + "@typescript-eslint/no-unused-vars": "off", + "@typescript-eslint/ban-types": "off", + "@typescript-eslint/no-namespace": "off", + "@typescript-eslint/no-explicit-any": "off", + "import/no-named-as-default-member": "off", + + "import/no-default-export": "error", + }, +}; diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..113eead --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# This allows generated code to be indexed correctly +*.ts 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..cc2681a --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +/models +/models/errors +/types +/lib +/sdk +/hooks +/index.* +/cjs +/node_modules +/.tsbuildinfo diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..709e684 --- /dev/null +++ b/.npmignore @@ -0,0 +1,7 @@ +**/* +!/**/*.ts +!/**/*.js +!/**/*.map + +/.eslintrc.js +/cjs diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock new file mode 100755 index 0000000..1ff5d05 --- /dev/null +++ b/.speakeasy/gen.lock @@ -0,0 +1,203 @@ +lockVersion: 2.0.0 +id: ca95c839-5377-4981-9bcb-4cedc7e35f2b +management: + docChecksum: 5e7cc152f137f5919734cc70b836a4d6 + docVersion: 1.0.0 + speakeasyVersion: 1.296.1 + generationVersion: 2.338.1 + releaseVersion: 0.0.2 + configChecksum: 75e8b9d8a69b87d0c3b16dc2ac8f25dc +features: + typescript: + additionalDependencies: 0.1.0 + constsAndDefaults: 0.1.5 + core: 3.9.9 + deprecations: 2.81.1 + examples: 2.81.4 + flattening: 2.81.1 + globalSecurity: 2.82.9 + globalSecurityCallbacks: 0.1.0 + globalSecurityFlattening: 0.1.0 + globalServerURLs: 2.82.4 + globals: 2.82.1 + nameOverrides: 2.81.2 + nullables: 0.1.0 + responseFormat: 0.2.3 + sdkHooks: 0.1.0 + typeOverrides: 2.81.1 + unions: 2.85.5 +generatedFiles: + - src/sdk/completions.ts + - src/sdk/sessions.ts + - src/sdk/feedback.ts + - src/sdk/feedbacktasks.ts + - src/sdk/sdk.ts + - .eslintrc.js + - .npmignore + - RUNTIMES.md + - jsr.json + - package.json + - src/index.ts + - src/lib/base64.ts + - src/lib/config.ts + - src/lib/encodings.ts + - src/lib/http.ts + - src/lib/is-plain-object.ts + - src/lib/retries.ts + - src/lib/schemas.ts + - src/lib/sdks.ts + - src/lib/security.ts + - src/lib/url.ts + - src/sdk/index.ts + - src/models/errors/sdkerror.ts + - src/models/errors/sdkvalidationerror.ts + - src/types/blobs.ts + - src/types/enums.ts + - src/types/index.ts + - src/types/operations.ts + - src/types/rfcdate.ts + - tsconfig.json + - src/models/operations/create.ts + - src/models/operations/update.ts + - src/models/operations/listungraded.ts + - src/models/operations/createsession.ts + - src/models/operations/get.ts + - src/models/operations/upload.ts + - src/models/operations/listfeedbacktasks.ts + - src/models/operations/createfeedbacktask.ts + - src/models/operations/getfeedbacktask.ts + - src/models/components/completion.ts + - src/models/components/createchatcompletionresponse.ts + - src/models/components/completionusage.ts + - src/models/components/chatcompletiontokenlogprob.ts + - src/models/components/chatcompletionresponsemessage.ts + - src/models/components/chatcompletionmessagetoolcall.ts + - src/models/components/createchatcompletionrequest.ts + - src/models/components/chatcompletionfunctions.ts + - src/models/components/chatcompletionfunctioncalloption.ts + - src/models/components/chatcompletiontoolchoiceoption.ts + - src/models/components/chatcompletionnamedtoolchoice.ts + - src/models/components/chatcompletiontool.ts + - src/models/components/functionobject.ts + - src/models/components/chatcompletionstreamoptions.ts + - src/models/components/chatcompletionrequestmessage.ts + - src/models/components/chatcompletionrequestsystemmessage.ts + - src/models/components/chatcompletionrequestusermessage.ts + - src/models/components/chatcompletionrequestmessagecontentpart.ts + - src/models/components/chatcompletionrequestmessagecontentparttext.ts + - src/models/components/chatcompletionrequestmessagecontentpartimage.ts + - src/models/components/chatcompletionrequestassistantmessage.ts + - src/models/components/chatcompletionrequesttoolmessage.ts + - src/models/components/chatcompletionrequestfunctionmessage.ts + - src/models/components/httpmetadata.ts + - src/models/components/session.ts + - src/models/components/feedback.ts + - src/models/components/task.ts + - src/models/components/security.ts + - src/models/errors/index.ts + - src/models/operations/index.ts + - src/models/components/index.ts + - 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/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/objectt.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/functiont.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/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/hooks/hooks.ts + - src/hooks/types.ts + - src/hooks/index.ts diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml new file mode 100755 index 0000000..5965988 --- /dev/null +++ b/.speakeasy/gen.yaml @@ -0,0 +1,39 @@ +configVersion: 2.0.0 +generation: + sdkClassName: Log10 + maintainOpenAPIOrder: true + usageSnippets: + optionalPropertyRendering: withExample + useClassNamesForArrayFields: true + fixes: + nameResolutionDec2023: true + parameterOrderingFeb2024: true + requestResponseComponentNamesFeb2024: true + auth: + oAuth2ClientCredentialsEnabled: false +typescript: + version: 0.0.2 + additionalDependencies: + dependencies: {} + devDependencies: {} + peerDependencies: {} + additionalPackageJSON: {} + author: Speakeasy + clientServerStatusCodesAsErrors: true + enumFormat: enum + 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: log10ts + responseFormat: envelope-http + templateVersion: v2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock new file mode 100644 index 0000000..44e011c --- /dev/null +++ b/.speakeasy/workflow.lock @@ -0,0 +1,28 @@ +speakeasyVersion: 1.296.1 +sources: + default: + sourceNamespace: default + sourceRevisionDigest: sha256:5ebc8867d9f479376a13b153f5979e047d44008c1beaf53d5f7af90db1b01b8f + sourceBlobDigest: sha256:c308fbe03d4912eef94619e105bb7667a453731b94f0f5ca33d33b17f86a185a + tags: + - latest +targets: + my-first-target: + source: default + sourceNamespace: default + sourceRevisionDigest: sha256:5ebc8867d9f479376a13b153f5979e047d44008c1beaf53d5f7af90db1b01b8f + sourceBlobDigest: sha256:c308fbe03d4912eef94619e105bb7667a453731b94f0f5ca33d33b17f86a185a + outLocation: /Users/niklasqnielsen/workspace/log10/log10ts +workflow: + workflowVersion: 1.0.0 + speakeasyVersion: latest + sources: + default: + inputs: + - location: openapi.yaml + registry: + location: registry.speakeasyapi.dev/log10/log10/default + targets: + my-first-target: + target: typescript + source: default diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml new file mode 100644 index 0000000..06105e6 --- /dev/null +++ b/.speakeasy/workflow.yaml @@ -0,0 +1,12 @@ +workflowVersion: 1.0.0 +speakeasyVersion: latest +sources: + default: + inputs: + - location: openapi.yaml + registry: + location: registry.speakeasyapi.dev/log10/log10/default +targets: + my-first-target: + target: typescript + source: default