Skip to content

Commit

Permalink
Updating github integration
Browse files Browse the repository at this point in the history
  • Loading branch information
nqn committed May 25, 2024
0 parents commit 65b4442
Show file tree
Hide file tree
Showing 179 changed files with 23,972 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
*.go linguist-generated=false
25 changes: 25 additions & 0 deletions .github/workflows/sdk_generation.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# .gitignore
199 changes: 199 additions & 0 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
lockVersion: 2.0.0
id: af921c1a-d48f-4ab5-a412-4cf4ba8a50ad
management:
docChecksum: 5e7cc152f137f5919734cc70b836a4d6
docVersion: 1.0.0
speakeasyVersion: 1.296.1
generationVersion: 2.338.1
releaseVersion: 0.0.1
configChecksum: e63fe754c82a6ad123e8ccf7b0e616cd
features:
go:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.4
core: 3.4.10
deprecations: 2.81.1
examples: 2.81.3
flattening: 2.81.1
getRequestBodies: 2.81.1
globalSecurity: 2.82.9
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
globalServerURLs: 2.82.2
globals: 2.82.2
intellisenseMarkdownSupport: 0.1.0
nameOverrides: 2.81.2
nullables: 0.1.0
responseFormat: 0.1.2
sdkHooks: 0.1.0
typeOverrides: 2.81.1
unions: 2.85.8
generatedFiles:
- completions.go
- sessions.go
- feedback.go
- feedbacktasks.go
- log10.go
- go.mod
- models/sdkerrors/sdkerror.go
- types/bigint.go
- types/date.go
- types/datetime.go
- types/decimal.go
- types/pointers.go
- internal/utils/contenttype.go
- internal/utils/form.go
- internal/utils/headers.go
- internal/utils/json.go
- internal/utils/pathparams.go
- internal/utils/queryparams.go
- internal/utils/requestbody.go
- internal/utils/retries.go
- internal/utils/security.go
- internal/utils/utils.go
- internal/globals/globals.go
- /models/operations/create.go
- /models/operations/update.go
- /models/operations/listungraded.go
- /models/operations/createsession.go
- /models/operations/get.go
- /models/operations/list.go
- /models/operations/upload.go
- /models/operations/listfeedbacktasks.go
- /models/operations/createfeedbacktask.go
- /models/operations/getfeedbacktask.go
- /models/components/completion.go
- /models/components/createchatcompletionresponse.go
- /models/components/completionusage.go
- /models/components/chatcompletiontokenlogprob.go
- /models/components/chatcompletionresponsemessage.go
- /models/components/chatcompletionmessagetoolcall.go
- /models/components/createchatcompletionrequest.go
- /models/components/chatcompletionfunctions.go
- /models/components/chatcompletionfunctioncalloption.go
- /models/components/chatcompletiontoolchoiceoption.go
- /models/components/chatcompletionnamedtoolchoice.go
- /models/components/chatcompletiontool.go
- /models/components/functionobject.go
- /models/components/chatcompletionstreamoptions.go
- /models/components/chatcompletionrequestmessage.go
- /models/components/chatcompletionrequestsystemmessage.go
- /models/components/chatcompletionrequestusermessage.go
- /models/components/chatcompletionrequestmessagecontentpart.go
- /models/components/chatcompletionrequestmessagecontentparttext.go
- /models/components/chatcompletionrequestmessagecontentpartimage.go
- /models/components/chatcompletionrequestassistantmessage.go
- /models/components/chatcompletionrequesttoolmessage.go
- /models/components/chatcompletionrequestfunctionmessage.go
- /models/components/httpmetadata.go
- /models/components/session.go
- /models/components/feedback.go
- /models/components/task.go
- /models/components/security.go
- 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/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
- internal/hooks/hooks.go
33 changes: 33 additions & 0 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
configVersion: 2.0.0
generation:
sdkClassName: Log10
maintainOpenAPIOrder: true
usageSnippets:
optionalPropertyRendering: withExample
useClassNamesForArrayFields: true
fixes:
nameResolutionDec2023: true
parameterOrderingFeb2024: true
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: false
go:
version: 0.0.1
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
imports:
option: openapi
paths:
callbacks: models/callbacks
errors: models/sdkerrors
operations: models/operations
shared: models/components
webhooks: models/webhooks
inputModelSuffix: input
maxMethodParams: 4
methodArguments: require-security-and-request
outputModelSuffix: output
packageName: github.com/log10-io/log10go
responseFormat: envelope-http
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.296.1
sources:
default:
sourceNamespace: default
sourceRevisionDigest: sha256:e13d61f8be0f7ff07045d20f2e0671b5c93c2f2f185d768d991ab68ca99760e0
sourceBlobDigest: sha256:7811f9a53e442babdafdc93fd2ec222a80fe0a260d6dfc2603b48c0aa05350db
tags:
- latest
targets:
my-first-target:
source: default
sourceNamespace: default
sourceRevisionDigest: sha256:e13d61f8be0f7ff07045d20f2e0671b5c93c2f2f185d768d991ab68ca99760e0
sourceBlobDigest: sha256:7811f9a53e442babdafdc93fd2ec222a80fe0a260d6dfc2603b48c0aa05350db
outLocation: /Users/niklasqnielsen/workspace/log10/log10go
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: go
source: default
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:
default:
inputs:
- location: openapi.yaml
registry:
location: registry.speakeasyapi.dev/log10/log10/default
targets:
my-first-target:
target: go
source: default
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
download_specs:
wget -q https://raw.githubusercontent.com/log10-io/openapi/main/openapi.yaml -O openapi.yaml
wget -q https://raw.githubusercontent.com/log10-io/openapi/main/openai.yaml -O openai.yaml
Loading

0 comments on commit 65b4442

Please sign in to comment.