Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.432.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 6, 2024
1 parent f7af9c9 commit 8e5a07c
Show file tree
Hide file tree
Showing 12 changed files with 380 additions and 16 deletions.
18 changes: 13 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 2858c6d9-f946-4185-ae68-3b8e708830fb
management:
docChecksum: b9f4df1a0421fee4ec97798e335d51a4
docChecksum: f62c8a3acae2b0b2308c3147b20a4ef6
docVersion: 0.4.0
speakeasyVersion: 1.425.1
generationVersion: 2.446.5
releaseVersion: 3.15.2
configChecksum: 5cb9f0db17fab874f2591f0e8918674d
speakeasyVersion: 1.432.0
generationVersion: 2.451.0
releaseVersion: 3.15.3
configChecksum: 76285ceca5bdcdfa0ee48c234bce5c8c
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go.git
repoSubDirectory: .
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-go
Expand Down Expand Up @@ -110,6 +110,7 @@ generatedFiles:
- /pkg/models/operations/githubtriggeraction.go
- /pkg/models/operations/grantuseraccesstoworkspace.go
- /pkg/models/operations/insertversionmetadata.go
- /pkg/models/operations/linkgithubaccess.go
- /pkg/models/operations/listregistrysubscriptions.go
- /pkg/models/operations/listremotesources.go
- /pkg/models/operations/posttags.go
Expand Down Expand Up @@ -342,6 +343,8 @@ generatedFiles:
- docs/pkg/models/operations/grantuseraccesstoworkspaceresponse.md
- docs/pkg/models/operations/insertversionmetadatarequest.md
- docs/pkg/models/operations/insertversionmetadataresponse.md
- docs/pkg/models/operations/linkgithubaccessrequest.md
- docs/pkg/models/operations/linkgithubaccessresponse.md
- docs/pkg/models/operations/listregistrysubscriptionsglobals.md
- docs/pkg/models/operations/listregistrysubscriptionsrequest.md
- docs/pkg/models/operations/listregistrysubscriptionsresponse.md
Expand Down Expand Up @@ -1588,3 +1591,8 @@ examples:
responses:
"200":
application/json: [{"created_at": "2022-12-26T20:06:41.993Z", "event_type": "update", "id": "<id>", "namespace_name": "<value>", "subscription_settings": "<value>", "subscription_type": "cli", "updated_at": "2023-10-12T18:58:27.338Z", "workspace_id": "<id>"}, {"created_at": "2022-07-07T11:51:20.859Z", "event_type": "update", "id": "<id>", "namespace_name": "<value>", "subscription_settings": "<value>", "subscription_type": "cli", "updated_at": "2022-03-26T04:16:26.649Z", "workspace_id": "<id>"}]
linkGithubAccess:
speakeasy-default-link-github-access:
responses:
4XX:
application/json: {"message": "<value>", "status_code": 774553}
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.425.1
speakeasyVersion: 1.432.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:9f3a2ba6bd0cfa6cfd2c1f363414a90b7079e181ba51d0f85130f39d23763cc2
sourceBlobDigest: sha256:b9e8a8eab6c93ac14ac91d11ecccb0f847165c956c85e130fa1e70d99f4f9cde
sourceRevisionDigest: sha256:7fe18d1ea8b63bb932dd2aeeb0a62ea853c135fcb90e8227c10d34756d9a13c3
sourceBlobDigest: sha256:a93984e94f8b39fdbcd40bfec3ed3b798f54cdf021c5b5ebcdb009bf99619b31
tags:
- latest
- main
targets:
speakeasy-client-sdk-go:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:9f3a2ba6bd0cfa6cfd2c1f363414a90b7079e181ba51d0f85130f39d23763cc2
sourceBlobDigest: sha256:b9e8a8eab6c93ac14ac91d11ecccb0f847165c956c85e130fa1e70d99f4f9cde
sourceRevisionDigest: sha256:7fe18d1ea8b63bb932dd2aeeb0a62ea853c135fcb90e8227c10d34756d9a13c3
sourceBlobDigest: sha256:a93984e94f8b39fdbcd40bfec3ed3b798f54cdf021c5b5ebcdb009bf99619b31
codeSamplesNamespace: code-samples-go-speakeasy-client-sdk-go
codeSamplesRevisionDigest: sha256:a3e5284855a93cf62b642551f95c025cc4fbd814d28e109d408634890078227e
codeSamplesRevisionDigest: sha256:707a3b9c1bc3d2bdf55624d5664c3c4f24d67d5a7b4c490c5fcd9ea4ae0413c8
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func main() {
* [ConfigureMintlifyRepo](docs/sdks/github/README.md#configuremintlifyrepo)
* [ConfigureTarget](docs/sdks/github/README.md#configuretarget)
* [GetAction](docs/sdks/github/README.md#getaction)
* [LinkGithub](docs/sdks/github/README.md#linkgithub)
* [StorePublishingSecrets](docs/sdks/github/README.md#storepublishingsecrets)
* [TriggerAction](docs/sdks/github/README.md#triggeraction)

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1356,4 +1356,14 @@ Based on:
### Generated
- [go v3.15.2] .
### Releases
- [Go v3.15.2] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.15.2 - .
- [Go v3.15.2] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.15.2 - .

## 2024-11-06 22:02:23
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.432.0 (2.451.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v3.15.3] .
### Releases
- [Go v3.15.3] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.15.3 - .
32 changes: 32 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,38 @@ actions:
// handle response
}
}
- target: $["paths"]["/v1/github/link"]["post"]
update:
x-codeSamples:
- lang: go
label: linkGithubAccess
source: |-
package main
import(
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"context"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
"log"
)
func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)
ctx := context.Background()
res, err := s.Github.LinkGithub(ctx, operations.LinkGithubAccessRequest{})
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}
- target: $["paths"]["/v1/github/publishing_prs"]["get"]
update:
x-codeSamples:
Expand Down
9 changes: 9 additions & 0 deletions docs/pkg/models/operations/linkgithubaccessrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# LinkGithubAccessRequest


## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `GithubOidcToken` | **string* | :heavy_minus_sign: | N/A |
| `InstallationID` | **string* | :heavy_minus_sign: | N/A |
10 changes: 10 additions & 0 deletions docs/pkg/models/operations/linkgithubaccessresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# LinkGithubAccessResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- |
| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `RawResponse` | [*http.Response](https://pkg.go.dev/net/http#Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
53 changes: 53 additions & 0 deletions docs/sdks/github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* [ConfigureMintlifyRepo](#configuremintlifyrepo)
* [ConfigureTarget](#configuretarget)
* [GetAction](#getaction)
* [LinkGithub](#linkgithub)
* [StorePublishingSecrets](#storepublishingsecrets)
* [TriggerAction](#triggeraction)

Expand Down Expand Up @@ -402,6 +403,58 @@ func main() {
| sdkerrors.Error | 4XX | application/json |
| sdkerrors.SDKError | 5XX | \*/\* |

## LinkGithub

### Example Usage

```go
package main

import(
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
"context"
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/operations"
"log"
)

func main() {
s := speakeasyclientsdkgo.New(
speakeasyclientsdkgo.WithSecurity(shared.Security{
APIKey: speakeasyclientsdkgo.String("<YOUR_API_KEY_HERE>"),
}),
)

ctx := context.Background()
res, err := s.Github.LinkGithub(ctx, operations.LinkGithubAccessRequest{})
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}
```

### Parameters

| Parameter | Type | Required | Description |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| `ctx` | [context.Context](https://pkg.go.dev/context#Context) | :heavy_check_mark: | The context to use for the request. |
| `request` | [operations.LinkGithubAccessRequest](../../pkg/models/operations/linkgithubaccessrequest.md) | :heavy_check_mark: | The request object to use for the request. |
| `opts` | [][operations.Option](../../pkg/models/operations/option.md) | :heavy_minus_sign: | The options for this request. |

### Response

**[*operations.LinkGithubAccessResponse](../../pkg/models/operations/linkgithubaccessresponse.md), error**

### Errors

| Error Type | Status Code | Content Type |
| ------------------ | ------------------ | ------------------ |
| sdkerrors.Error | 4XX | application/json |
| sdkerrors.SDKError | 5XX | \*/\* |

## StorePublishingSecrets

### Example Usage
Expand Down
3 changes: 2 additions & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ generation:
requestResponseComponentNamesFeb2024: false
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
go:
version: 3.15.2
version: 3.15.3
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
Loading

0 comments on commit 8e5a07c

Please sign in to comment.