Skip to content

Commit 2622137

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.1
1 parent 36a19b6 commit 2622137

File tree

53 files changed

+3842
-217
lines changed

Some content is hidden

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

53 files changed

+3842
-217
lines changed

.speakeasy/gen.lock

Lines changed: 238 additions & 172 deletions
Large diffs are not rendered by default.

.speakeasy/tests.arazzo.yaml

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,3 +1780,123 @@ workflows:
17801780
}
17811781
type: simple
17821782
x-speakeasy-test-group: SchemaStore
1783+
- workflowId: createPublishingToken
1784+
steps:
1785+
- stepId: test
1786+
operationId: createPublishingToken
1787+
requestBody:
1788+
contentType: application/json
1789+
payload:
1790+
created_at: "2025-10-25T02:17:15.413Z"
1791+
id: <id>
1792+
target_id: <id>
1793+
target_resource: <value>
1794+
token: <value>
1795+
successCriteria:
1796+
- condition: $statusCode == 200
1797+
- condition: $response.header.Content-Type == application/json
1798+
- context: $response.body
1799+
condition: |
1800+
{
1801+
"created_at": "2023-12-11T20:09:47.767Z",
1802+
"id": "\u003cid\u003e",
1803+
"target_id": "\u003cid\u003e",
1804+
"target_resource": "\u003cvalue\u003e",
1805+
"token": "\u003cvalue\u003e"
1806+
}
1807+
type: simple
1808+
x-speakeasy-test-group: speakeasy
1809+
- workflowId: deletePublishingToken
1810+
steps:
1811+
- stepId: test
1812+
operationId: deletePublishingToken
1813+
parameters:
1814+
- name: tokenID
1815+
in: path
1816+
value: <id>
1817+
successCriteria:
1818+
- condition: $statusCode == 200
1819+
x-speakeasy-test-group: speakeasy
1820+
- workflowId: getPublishingTokenByID
1821+
steps:
1822+
- stepId: test
1823+
operationId: getPublishingTokenByID
1824+
parameters:
1825+
- name: tokenID
1826+
in: path
1827+
value: <id>
1828+
successCriteria:
1829+
- condition: $statusCode == 200
1830+
- condition: $response.header.Content-Type == application/json
1831+
- context: $response.body
1832+
condition: |
1833+
{
1834+
"created_at": "2025-10-20T08:51:57.553Z",
1835+
"id": "\u003cid\u003e",
1836+
"target_id": "\u003cid\u003e",
1837+
"target_resource": "\u003cvalue\u003e",
1838+
"token": "\u003cvalue\u003e"
1839+
}
1840+
type: simple
1841+
x-speakeasy-test-group: speakeasy
1842+
- workflowId: getPublishingTokenTargetByID
1843+
steps:
1844+
- stepId: test
1845+
operationId: getPublishingTokenTargetByID
1846+
parameters:
1847+
- name: tokenID
1848+
in: path
1849+
value: <id>
1850+
successCriteria:
1851+
- condition: $statusCode == 200
1852+
- condition: $response.header.Content-Type == application/json
1853+
- context: $response.body
1854+
condition: |
1855+
{}
1856+
type: simple
1857+
x-speakeasy-test-group: speakeasy
1858+
- workflowId: updatePublishingTokenExpiration
1859+
steps:
1860+
- stepId: test
1861+
operationId: updatePublishingTokenExpiration
1862+
parameters:
1863+
- name: tokenID
1864+
in: path
1865+
value: <id>
1866+
successCriteria:
1867+
- condition: $statusCode == 200
1868+
x-speakeasy-test-group: speakeasy
1869+
- workflowId: getPublishingToken
1870+
steps:
1871+
- stepId: test
1872+
operationId: getPublishingToken
1873+
successCriteria:
1874+
- condition: $statusCode == 200
1875+
- condition: $response.header.Content-Type == application/json
1876+
- context: $response.body
1877+
condition: |
1878+
[
1879+
{
1880+
"created_at": "2023-01-18T23:26:03.849Z",
1881+
"id": "\u003cid\u003e",
1882+
"target_id": "\u003cid\u003e",
1883+
"target_resource": "\u003cvalue\u003e",
1884+
"token": "\u003cvalue\u003e"
1885+
},
1886+
{
1887+
"created_at": "2023-08-07T04:00:26.830Z",
1888+
"id": "\u003cid\u003e",
1889+
"target_id": "\u003cid\u003e",
1890+
"target_resource": "\u003cvalue\u003e",
1891+
"token": "\u003cvalue\u003e"
1892+
},
1893+
{
1894+
"created_at": "2024-01-27T14:50:38.288Z",
1895+
"id": "\u003cid\u003e",
1896+
"target_id": "\u003cid\u003e",
1897+
"target_resource": "\u003cvalue\u003e",
1898+
"token": "\u003cvalue\u003e"
1899+
}
1900+
]
1901+
type: simple
1902+
x-speakeasy-test-group: Workspaces

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.528.1
1+
speakeasyVersion: 1.531.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:00516f212a01c7df69e81727c142a8af5f90db67f68d8998786b344f65810b1e
6-
sourceBlobDigest: sha256:7d89bc5d5d174d4b21964c5c8e198e1910b6a2753080cc7c73a8cbede420c980
5+
sourceRevisionDigest: sha256:e5b3696476bc7597afe3b64b25ddcde47ba2eee3334778dbb88a55aa17dfe386
6+
sourceBlobDigest: sha256:68f7956d7c719348b690e596d2008eebcfed880cf34e81d540738ab3a939b4fd
77
tags:
88
- latest
99
- main
@@ -12,10 +12,10 @@ targets:
1212
speakeasy-client-sdk-go:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:00516f212a01c7df69e81727c142a8af5f90db67f68d8998786b344f65810b1e
16-
sourceBlobDigest: sha256:7d89bc5d5d174d4b21964c5c8e198e1910b6a2753080cc7c73a8cbede420c980
15+
sourceRevisionDigest: sha256:e5b3696476bc7597afe3b64b25ddcde47ba2eee3334778dbb88a55aa17dfe386
16+
sourceBlobDigest: sha256:68f7956d7c719348b690e596d2008eebcfed880cf34e81d540738ab3a939b4fd
1717
codeSamplesNamespace: code-samples-go-speakeasy-client-sdk-go
18-
codeSamplesRevisionDigest: sha256:44fe6957332898fb1c06416472203f87f11f1f9448587a7c931efd7e87b9e56f
18+
codeSamplesRevisionDigest: sha256:65885fdc3de66da59df3c6b5d0ee28ff921d364f5f8b8a0f52aa33ef8cc93bad
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 71 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import (
5656
"context"
5757
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
5858
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
59+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/types"
5960
"log"
6061
)
6162

@@ -68,11 +69,17 @@ func main() {
6869
}),
6970
)
7071

71-
res, err := s.Artifacts.CreateRemoteSource(ctx, nil)
72+
res, err := s.CreatePublishingToken(ctx, shared.PublishingToken{
73+
CreatedAt: types.MustTimeFromString("2025-10-25T02:17:15.413Z"),
74+
ID: "<id>",
75+
TargetID: "<id>",
76+
TargetResource: "<value>",
77+
Token: "<value>",
78+
})
7279
if err != nil {
7380
log.Fatal(err)
7481
}
75-
if res != nil {
82+
if res.PublishingToken != nil {
7683
// handle response
7784
}
7885
}
@@ -162,6 +169,13 @@ func main() {
162169

163170
* [Create](docs/sdks/shorturls/README.md#create) - Shorten a URL.
164171

172+
### [Speakeasy SDK](docs/sdks/speakeasy/README.md)
173+
174+
* [CreatePublishingToken](docs/sdks/speakeasy/README.md#createpublishingtoken) - Create a publishing token for a workspace
175+
* [DeletePublishingToken](docs/sdks/speakeasy/README.md#deletepublishingtoken) - Delete a specific publishing token
176+
* [GetPublishingTokenByID](docs/sdks/speakeasy/README.md#getpublishingtokenbyid) - Get a specific publishing token
177+
* [GetPublishingTokenTargetByID](docs/sdks/speakeasy/README.md#getpublishingtokentargetbyid) - Get a specific publishing token target
178+
* [UpdatePublishingTokenExpiration](docs/sdks/speakeasy/README.md#updatepublishingtokenexpiration) - Updates the validitity period of a publishing token
165179

166180
### [Subscriptions](docs/sdks/subscriptions/README.md)
167181

@@ -184,6 +198,7 @@ func main() {
184198
* [GetAll](docs/sdks/workspaces/README.md#getall) - Get workspaces for a user
185199
* [GetByID](docs/sdks/workspaces/README.md#getbyid) - Get workspace
186200
* [GetFeatureFlags](docs/sdks/workspaces/README.md#getfeatureflags) - Get workspace feature flags
201+
* [GetPublishingToken](docs/sdks/workspaces/README.md#getpublishingtoken) - Get publishing tokens for a workspace
187202
* [GetSettings](docs/sdks/workspaces/README.md#getsettings) - Get workspace settings
188203
* [GetTeam](docs/sdks/workspaces/README.md#getteam) - Get team members for a particular workspace
189204
* [GetTokens](docs/sdks/workspaces/README.md#gettokens) - Get tokens for a particular workspace
@@ -211,7 +226,7 @@ Handling errors in this SDK should largely match your expectations. All operatio
211226

212227
By Default, an API error will return `sdkerrors.SDKError`. When custom error responses are specified for an operation, the SDK may also return their associated error. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation.
213228

214-
For example, the `CreateRemoteSource` function may return the following errors:
229+
For example, the `CreatePublishingToken` function may return the following errors:
215230

216231
| Error Type | Status Code | Content Type |
217232
| ------------------ | ----------- | ---------------- |
@@ -229,6 +244,7 @@ import (
229244
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
230245
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/sdkerrors"
231246
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
247+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/types"
232248
"log"
233249
)
234250

@@ -241,7 +257,13 @@ func main() {
241257
}),
242258
)
243259

244-
res, err := s.Artifacts.CreateRemoteSource(ctx, nil)
260+
res, err := s.CreatePublishingToken(ctx, shared.PublishingToken{
261+
CreatedAt: types.MustTimeFromString("2025-10-25T02:17:15.413Z"),
262+
ID: "<id>",
263+
TargetID: "<id>",
264+
TargetResource: "<value>",
265+
Token: "<value>",
266+
})
245267
if err != nil {
246268

247269
var e *sdkerrors.Error
@@ -283,6 +305,7 @@ import (
283305
"context"
284306
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
285307
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
308+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/types"
286309
"log"
287310
)
288311

@@ -296,11 +319,17 @@ func main() {
296319
}),
297320
)
298321

299-
res, err := s.Artifacts.CreateRemoteSource(ctx, nil)
322+
res, err := s.CreatePublishingToken(ctx, shared.PublishingToken{
323+
CreatedAt: types.MustTimeFromString("2025-10-25T02:17:15.413Z"),
324+
ID: "<id>",
325+
TargetID: "<id>",
326+
TargetResource: "<value>",
327+
Token: "<value>",
328+
})
300329
if err != nil {
301330
log.Fatal(err)
302331
}
303-
if res != nil {
332+
if res.PublishingToken != nil {
304333
// handle response
305334
}
306335
}
@@ -317,6 +346,7 @@ import (
317346
"context"
318347
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
319348
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
349+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/types"
320350
"log"
321351
)
322352

@@ -330,11 +360,17 @@ func main() {
330360
}),
331361
)
332362

333-
res, err := s.Artifacts.CreateRemoteSource(ctx, nil)
363+
res, err := s.CreatePublishingToken(ctx, shared.PublishingToken{
364+
CreatedAt: types.MustTimeFromString("2025-10-25T02:17:15.413Z"),
365+
ID: "<id>",
366+
TargetID: "<id>",
367+
TargetResource: "<value>",
368+
Token: "<value>",
369+
})
334370
if err != nil {
335371
log.Fatal(err)
336372
}
337-
if res != nil {
373+
if res.PublishingToken != nil {
338374
// handle response
339375
}
340376
}
@@ -396,6 +432,7 @@ import (
396432
"context"
397433
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
398434
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
435+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/types"
399436
"log"
400437
)
401438

@@ -408,11 +445,17 @@ func main() {
408445
}),
409446
)
410447

411-
res, err := s.Artifacts.CreateRemoteSource(ctx, nil)
448+
res, err := s.CreatePublishingToken(ctx, shared.PublishingToken{
449+
CreatedAt: types.MustTimeFromString("2025-10-25T02:17:15.413Z"),
450+
ID: "<id>",
451+
TargetID: "<id>",
452+
TargetResource: "<value>",
453+
Token: "<value>",
454+
})
412455
if err != nil {
413456
log.Fatal(err)
414457
}
415-
if res != nil {
458+
if res.PublishingToken != nil {
416459
// handle response
417460
}
418461
}
@@ -481,6 +524,7 @@ import (
481524
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
482525
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
483526
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/retry"
527+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/types"
484528
"log"
485529
"pkg/models/operations"
486530
)
@@ -494,7 +538,13 @@ func main() {
494538
}),
495539
)
496540

497-
res, err := s.Artifacts.CreateRemoteSource(ctx, nil, operations.WithRetries(
541+
res, err := s.CreatePublishingToken(ctx, shared.PublishingToken{
542+
CreatedAt: types.MustTimeFromString("2025-10-25T02:17:15.413Z"),
543+
ID: "<id>",
544+
TargetID: "<id>",
545+
TargetResource: "<value>",
546+
Token: "<value>",
547+
}, operations.WithRetries(
498548
retry.Config{
499549
Strategy: "backoff",
500550
Backoff: &retry.BackoffStrategy{
@@ -508,7 +558,7 @@ func main() {
508558
if err != nil {
509559
log.Fatal(err)
510560
}
511-
if res != nil {
561+
if res.PublishingToken != nil {
512562
// handle response
513563
}
514564
}
@@ -524,6 +574,7 @@ import (
524574
speakeasyclientsdkgo "github.com/speakeasy-api/speakeasy-client-sdk-go/v3"
525575
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/models/shared"
526576
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/retry"
577+
"github.com/speakeasy-api/speakeasy-client-sdk-go/v3/pkg/types"
527578
"log"
528579
)
529580

@@ -547,11 +598,17 @@ func main() {
547598
}),
548599
)
549600

550-
res, err := s.Artifacts.CreateRemoteSource(ctx, nil)
601+
res, err := s.CreatePublishingToken(ctx, shared.PublishingToken{
602+
CreatedAt: types.MustTimeFromString("2025-10-25T02:17:15.413Z"),
603+
ID: "<id>",
604+
TargetID: "<id>",
605+
TargetResource: "<value>",
606+
Token: "<value>",
607+
})
551608
if err != nil {
552609
log.Fatal(err)
553610
}
554-
if res != nil {
611+
if res.PublishingToken != nil {
555612
// handle response
556613
}
557614
}

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,4 +1676,14 @@ Based on:
16761676
### Generated
16771677
- [go v3.26.1] .
16781678
### Releases
1679-
- [Go v3.26.1] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.26.1 - .
1679+
- [Go v3.26.1] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.26.1 - .
1680+
1681+
## 2025-04-09 22:02:22
1682+
### Changes
1683+
Based on:
1684+
- OpenAPI Doc
1685+
- Speakeasy CLI 1.531.1 (2.568.5) https://github.com/speakeasy-api/speakeasy
1686+
### Generated
1687+
- [go v3.26.2] .
1688+
### Releases
1689+
- [Go v3.26.2] https://github.com/speakeasy-api/speakeasy-client-sdk-go/releases/tag/v3.26.2 - .

0 commit comments

Comments
 (0)