Skip to content

Commit a54665b

Browse files
## Go SDK Changes Detected:
* `SquadcastSdk.EscalationPolicies.GetByTeam()`: `request` **Changed** **Breaking** ⚠️ * `SquadcastSdk.GlobalEventRules.List()`: `request.Request` **Changed** **Breaking** ⚠️ * `SquadcastSdk.GlobalEventRules.Rulesets.ListRulesetRules()`: `request.Request` **Changed** **Breaking** ⚠️ * `SquadcastSdk.Webforms.GetAll()`: `request` **Changed** **Breaking** ⚠️ * `SquadcastSdk.Workflows.List()`: `request.Request` **Changed** **Breaking** ⚠️ * `SquadcastSdk.Workflows.GetLogs()`: `request` **Changed** **Breaking** ⚠️ * `SquadcastSdk.StatusPages.List()`: `request` **Changed** **Breaking** ⚠️
1 parent 44fea62 commit a54665b

40 files changed

+935
-123
lines changed

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ generation:
3030
generateNewTests: true
3131
skipResponseBodyAssertions: false
3232
go:
33-
version: 1.2.0
33+
version: 1.3.0
3434
additionalDependencies: {}
3535
allowUnknownFieldsInWeakUnions: false
3636
baseErrorName: SquadcastSDKError
@@ -55,3 +55,4 @@ go:
5555
respectRequiredFields: false
5656
responseFormat: envelope-http
5757
sdkPackageName: SquadcastSdk
58+
unionDeserializationStrategy: left-to-right

.speakeasy/out.openapi.yaml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -382,12 +382,12 @@ paths:
382382
in: "query"
383383
required: false
384384
schema:
385-
type: "string"
385+
type: "integer"
386386
- name: "page_size"
387387
in: "query"
388388
required: false
389389
schema:
390-
type: "string"
390+
type: "integer"
391391
- name: "authorization"
392392
in: "header"
393393
required: true
@@ -527,6 +527,7 @@ paths:
527527
- "meta"
528528
tags:
529529
- "Escalation Policies"
530+
x-speakeasy-pagination: {"type": "offsetLimit", "inputs": [{"name": "page_number", "in": "parameters", "type": "page"}, {"name": "page_size", "in": "parameters", "type": "limit"}], "outputs": {"results": "$.data"}}
530531
x-speakeasy-group: "escalationPolicies"
531532
x-speakeasy-name-override: "getByTeam"
532533
post:
@@ -2463,12 +2464,12 @@ paths:
24632464
in: "query"
24642465
required: false
24652466
schema:
2466-
type: "string"
2467+
type: "integer"
24672468
- name: "page_number"
24682469
in: "query"
24692470
required: false
24702471
schema:
2471-
type: "string"
2472+
type: "integer"
24722473
- name: "filters.owner_id[]"
24732474
in: "query"
24742475
required: false
@@ -2614,6 +2615,7 @@ paths:
26142615
- "meta"
26152616
tags:
26162617
- "Global Event Rules"
2618+
x-speakeasy-pagination: {"type": "offsetLimit", "inputs": [{"name": "page_number", "in": "parameters", "type": "page"}, {"name": "page_size", "in": "parameters", "type": "limit"}], "outputs": {"results": "$.data"}}
26172619
x-speakeasy-group: "globalEventRules"
26182620
x-speakeasy-name-override: "list"
26192621
post:
@@ -3801,12 +3803,12 @@ paths:
38013803
in: "query"
38023804
required: false
38033805
schema:
3804-
type: "string"
3806+
type: "integer"
38053807
- name: "page_number"
38063808
in: "query"
38073809
required: false
38083810
schema:
3809-
type: "string"
3811+
type: "integer"
38103812
- name: "filters.search"
38113813
in: "query"
38123814
required: false
@@ -3945,6 +3947,7 @@ paths:
39453947
- "meta"
39463948
tags:
39473949
- "Global Event Rules/Rulesets/Rules"
3950+
x-speakeasy-pagination: {"type": "offsetLimit", "inputs": [{"name": "page_number", "in": "parameters", "type": "page"}, {"name": "page_size", "in": "parameters", "type": "limit"}], "outputs": {"results": "$.data"}}
39483951
x-speakeasy-group: "globalEventRules.rulesets"
39493952
x-speakeasy-name-override: "listRulesetRules"
39503953
post:
@@ -20908,12 +20911,12 @@ paths:
2090820911
in: "query"
2090920912
required: false
2091020913
schema:
20911-
type: "string"
20914+
type: "integer"
2091220915
- name: "page_size"
2091320916
in: "query"
2091420917
required: false
2091520918
schema:
20916-
type: "string"
20919+
type: "integer"
2091720920
responses:
2091820921
"200":
2091920922
description: "The request has succeeded."
@@ -21048,6 +21051,7 @@ paths:
2104821051
- "meta"
2104921052
tags:
2105021053
- "Webforms"
21054+
x-speakeasy-pagination: {"type": "offsetLimit", "inputs": [{"name": "page_number", "in": "parameters", "type": "page"}, {"name": "page_size", "in": "parameters", "type": "limit"}], "outputs": {"results": "$.data"}}
2105121055
x-speakeasy-name-override: "getAll"
2105221056
post:
2105321057
operationId: "Webforms_createWebform"
@@ -21624,13 +21628,13 @@ paths:
2162421628
in: "query"
2162521629
required: false
2162621630
schema:
21627-
type: "string"
21631+
type: "integer"
2162821632
explode: false
2162921633
- name: "page_number"
2163021634
in: "query"
2163121635
required: false
2163221636
schema:
21633-
type: "string"
21637+
type: "integer"
2163421638
explode: false
2163521639
- name: "search"
2163621640
in: "query"
@@ -21810,6 +21814,7 @@ paths:
2181021814
- "meta"
2181121815
tags:
2181221816
- "Workflows"
21817+
x-speakeasy-pagination: {"type": "offsetLimit", "inputs": [{"name": "page_number", "in": "parameters", "type": "page"}, {"name": "page_size", "in": "parameters", "type": "limit"}], "outputs": {"results": "$.data"}}
2181321818
x-speakeasy-name-override: "list"
2181421819
post:
2181521820
operationId: "Workflows_createWorkflow"
@@ -23314,13 +23319,13 @@ paths:
2331423319
in: "query"
2331523320
required: false
2331623321
schema:
23317-
type: "string"
23322+
type: "integer"
2331823323
explode: false
2331923324
- name: "page_number"
2332023325
in: "query"
2332123326
required: false
2332223327
schema:
23323-
type: "string"
23328+
type: "integer"
2332423329
explode: false
2332523330
responses:
2332623331
"200":
@@ -23440,6 +23445,7 @@ paths:
2344023445
- "meta"
2344123446
tags:
2344223447
- "Workflows"
23448+
x-speakeasy-pagination: {"type": "offsetLimit", "inputs": [{"name": "page_number", "in": "parameters", "type": "page"}, {"name": "page_size", "in": "parameters", "type": "limit"}], "outputs": {"results": "$.data"}}
2344323449
x-speakeasy-name-override: "getLogs"
2344423450
"/v4/schedules":
2344523451
get:
@@ -23602,6 +23608,7 @@ paths:
2360223608
schema: {"$ref": "#/components/schemas/Common.V4.Error"}
2360323609
tags:
2360423610
- "Schedule"
23611+
x-speakeasy-pagination: {"type": "cursor", "inputs": [{"name": "cursor", "in": "parameters", "type": "cursor"}, {"name": "pageSize", "in": "parameters", "type": "limit"}], "outputs": {"results": "$.data", "nextCursor": "$.pageInfo.nextCursor"}}
2360523612
x-speakeasy-group: "schedules"
2360623613
x-speakeasy-name-override: "list"
2360723614
post:
@@ -26258,13 +26265,13 @@ paths:
2625826265
in: "query"
2625926266
required: true
2626026267
schema:
26261-
type: "string"
26268+
type: "integer"
2626226269
explode: false
2626326270
- name: "pageNumber"
2626426271
in: "query"
2626526272
required: true
2626626273
schema:
26267-
type: "string"
26274+
type: "integer"
2626826275
explode: false
2626926276
- name: "filters.isPublic"
2627026277
in: "query"
@@ -26396,6 +26403,7 @@ paths:
2639626403
- "meta"
2639726404
tags:
2639826405
- "Status Pages"
26406+
x-speakeasy-pagination: {"type": "offsetLimit", "inputs": [{"name": "pageNumber", "in": "parameters", "type": "page"}, {"name": "pageSize", "in": "parameters", "type": "limit"}], "outputs": {"results": "$.data"}}
2639926407
x-speakeasy-group: "statusPages"
2640026408
x-speakeasy-name-override: "list"
2640126409
post:

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.637.3
1+
speakeasyVersion: 1.639.1
22
sources:
33
Squadcast:
44
sourceNamespace: squadcast
5-
sourceRevisionDigest: sha256:8e9774505213cbee0a6308bdf24ca882723fd66bd1350be0d33c9b7c72905862
6-
sourceBlobDigest: sha256:b7b9a264673f05aba36bae15175865d3e0ca033d09c587bb8b5b0bc845cdd584
5+
sourceRevisionDigest: sha256:ed0fcbcd0bbd50e67d4c0cf48618f4ed644cbecbe540b6264abe0c58dae64692
6+
sourceBlobDigest: sha256:3cffe56606c933039d1aff60f85362cc68d12c51e3d1d3db3b889296027d8f77
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1761025982
9+
- speakeasy-sdk-regen-1761287149
1010
- 1.0.0
1111
targets:
1212
squadcast-sdk:
1313
source: Squadcast
1414
sourceNamespace: squadcast
15-
sourceRevisionDigest: sha256:8e9774505213cbee0a6308bdf24ca882723fd66bd1350be0d33c9b7c72905862
16-
sourceBlobDigest: sha256:b7b9a264673f05aba36bae15175865d3e0ca033d09c587bb8b5b0bc845cdd584
15+
sourceRevisionDigest: sha256:ed0fcbcd0bbd50e67d4c0cf48618f4ed644cbecbe540b6264abe0c58dae64692
16+
sourceBlobDigest: sha256:3cffe56606c933039d1aff60f85362cc68d12c51e3d1d3db3b889296027d8f77
1717
codeSamplesNamespace: squadcast-go-code-samples
18-
codeSamplesRevisionDigest: sha256:fb7ac57b8b530a726376a31fe2a890c8898116f549133d4b9f2e0fe1c1e94367
18+
codeSamplesRevisionDigest: sha256:71e07cf185d1af567a85af054a79109816c79fa46460220bae5fb37d5d426f6d
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

v1/.speakeasy/gen.lock

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 5681fcb7-9ba0-45f7-bfe6-07e0ceb77a13
33
management:
4-
docChecksum: 6eeeaaa9001b7902792dd7c3a2d8b805
4+
docChecksum: 769e6824627e79042648a6973d8b77f1
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.637.3
7-
generationVersion: 2.727.9
8-
releaseVersion: 1.2.0
9-
configChecksum: 50837666d6e61c568197e6f5d3a46679
6+
speakeasyVersion: 1.639.1
7+
generationVersion: 2.730.0
8+
releaseVersion: 1.3.0
9+
configChecksum: 4f8c309f4e379eb2aca50b012fd1d0d5
1010
repoURL: https://github.com/SquadcastHub/squadcast-sdk-go.git
1111
repoSubDirectory: v1
1212
installationURL: https://github.com/SquadcastHub/squadcast-sdk-go/v1
@@ -27,10 +27,11 @@ features:
2727
intellisenseMarkdownSupport: 0.1.0
2828
nameOverrides: 2.81.2
2929
nullables: 0.2.1
30+
pagination: 2.82.5
3031
responseFormat: 0.1.2
3132
retries: 2.84.2
3233
sdkHooks: 0.2.0
33-
unions: 2.86.0
34+
unions: 2.87.0
3435
uploadStreams: 0.1.0
3536
generatedFiles:
3637
- .devcontainer/README.md
@@ -7625,8 +7626,8 @@ examples:
76257626
speakeasy-default-status-pages-list-status-pages:
76267627
parameters:
76277628
query:
7628-
pageSize: "<value>"
7629-
pageNumber: "<value>"
7629+
pageSize: null
7630+
pageNumber: null
76307631
filters.isPublic: "<value>"
76317632
teamID: "<id>"
76327633
responses:
@@ -8464,3 +8465,12 @@ examples:
84648465
"504":
84658466
application/json: {"meta": {"status": "<value>", "error_message": "<value>"}}
84668467
examplesVersion: 1.0.2
8468+
releaseNotes: |
8469+
## Go SDK Changes Detected:
8470+
* `SquadcastSdk.EscalationPolicies.GetByTeam()`: `request` **Changed** **Breaking** :warning:
8471+
* `SquadcastSdk.GlobalEventRules.List()`: `request.Request` **Changed** **Breaking** :warning:
8472+
* `SquadcastSdk.GlobalEventRules.Rulesets.ListRulesetRules()`: `request.Request` **Changed** **Breaking** :warning:
8473+
* `SquadcastSdk.Webforms.GetAll()`: `request` **Changed** **Breaking** :warning:
8474+
* `SquadcastSdk.Workflows.List()`: `request.Request` **Changed** **Breaking** :warning:
8475+
* `SquadcastSdk.Workflows.GetLogs()`: `request` **Changed** **Breaking** :warning:
8476+
* `SquadcastSdk.StatusPages.List()`: `request` **Changed** **Breaking** :warning:

v1/README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Developer-friendly & type-safe Go SDK specifically catered to leverage *squadcas
3737
* [SDK Example Usage](#sdk-example-usage)
3838
* [Authentication](#authentication)
3939
* [Available Resources and Operations](#available-resources-and-operations)
40+
* [Pagination](#pagination)
4041
* [Retries](#retries)
4142
* [Error Handling](#error-handling)
4243
* [Server Selection](#server-selection)
@@ -569,6 +570,55 @@ func main() {
569570
</details>
570571
<!-- End Available Resources and Operations [operations] -->
571572

573+
<!-- Start Pagination [pagination] -->
574+
## Pagination
575+
576+
Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
577+
returned response object will have a `Next` method that can be called to pull down the next group of results. If the
578+
return value of `Next` is `nil`, then there are no more pages to be fetched.
579+
580+
Here's an example of one such pagination call:
581+
```go
582+
package main
583+
584+
import (
585+
"context"
586+
squadcastsdk "github.com/SquadcastHub/squadcast-sdk-go/v1"
587+
"log"
588+
"os"
589+
)
590+
591+
func main() {
592+
ctx := context.Background()
593+
594+
s := squadcastsdk.New(
595+
squadcastsdk.WithSecurity(os.Getenv("SQUADCASTSDK_BEARER_AUTH")),
596+
)
597+
598+
res, err := s.EscalationPolicies.GetByTeam(ctx, "<id>", nil, nil)
599+
if err != nil {
600+
log.Fatal(err)
601+
}
602+
if res.Object != nil {
603+
for {
604+
// handle items
605+
606+
res, err = res.Next()
607+
608+
if err != nil {
609+
// handle error
610+
}
611+
612+
if res == nil {
613+
break
614+
}
615+
}
616+
}
617+
}
618+
619+
```
620+
<!-- End Pagination [pagination] -->
621+
572622
<!-- Start Retries [retries] -->
573623
## Retries
574624

v1/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,14 @@ Based on:
88
### Generated
99
- [go v1.2.0] v1
1010
### Releases
11-
- [Go v1.2.0] https://github.com/SquadcastHub/squadcast-sdk-go/releases/tag/v1/v1.2.0 - v1
11+
- [Go v1.2.0] https://github.com/SquadcastHub/squadcast-sdk-go/releases/tag/v1/v1.2.0 - v1
12+
13+
## 2025-10-24 06:25:32
14+
### Changes
15+
Based on:
16+
- OpenAPI Doc
17+
- Speakeasy CLI 1.639.1 (2.730.0) https://github.com/speakeasy-api/speakeasy
18+
### Generated
19+
- [go v1.3.0] v1
20+
### Releases
21+
- [Go v1.3.0] https://github.com/SquadcastHub/squadcast-sdk-go/releases/tag/v1/v1.3.0 - v1

v1/docs/models/operations/escalationpoliciesgetescalationpolicybyteamrequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
| Field | Type | Required | Description |
77
| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
88
| `OwnerID` | *string* | :heavy_check_mark: | here owner_id represents team_id, if team_id is not provided, it will return escalation policies of all teams. |
9-
| `PageNumber` | **string* | :heavy_minus_sign: | N/A |
10-
| `PageSize` | **string* | :heavy_minus_sign: | N/A |
9+
| `PageNumber` | **int64* | :heavy_minus_sign: | N/A |
10+
| `PageSize` | **int64* | :heavy_minus_sign: | N/A |

v1/docs/models/operations/globaleventruleslistglobaleventrulesrequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| Field | Type | Required | Description |
77
| ------------------ | ------------------ | ------------------ | ------------------ |
88
| `OwnerID` | *string* | :heavy_check_mark: | N/A |
9-
| `PageSize` | **string* | :heavy_minus_sign: | N/A |
10-
| `PageNumber` | **string* | :heavy_minus_sign: | N/A |
9+
| `PageSize` | **int64* | :heavy_minus_sign: | N/A |
10+
| `PageNumber` | **int64* | :heavy_minus_sign: | N/A |
1111
| `FiltersOwnerID` | []*string* | :heavy_minus_sign: | N/A |
1212
| `FiltersSearch` | **string* | :heavy_minus_sign: | N/A |

v1/docs/models/operations/globaleventruleslistrulesetrulesrequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
| `GerID` | *int64* | :heavy_check_mark: | N/A |
99
| `AlertSourceVersion` | *string* | :heavy_check_mark: | N/A |
1010
| `AlertSourceShortname` | *string* | :heavy_check_mark: | N/A |
11-
| `PageSize` | **string* | :heavy_minus_sign: | N/A |
12-
| `PageNumber` | **string* | :heavy_minus_sign: | N/A |
11+
| `PageSize` | **int64* | :heavy_minus_sign: | N/A |
12+
| `PageNumber` | **int64* | :heavy_minus_sign: | N/A |
1313
| `FiltersSearch` | **string* | :heavy_minus_sign: | N/A |

v1/docs/models/operations/statuspagesliststatuspagesrequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
| Field | Type | Required | Description |
77
| ------------------ | ------------------ | ------------------ | ------------------ |
8-
| `PageSize` | *string* | :heavy_check_mark: | N/A |
9-
| `PageNumber` | *string* | :heavy_check_mark: | N/A |
8+
| `PageSize` | *int64* | :heavy_check_mark: | N/A |
9+
| `PageNumber` | *int64* | :heavy_check_mark: | N/A |
1010
| `FiltersIsPublic` | *string* | :heavy_check_mark: | N/A |
1111
| `TeamID` | *string* | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)