Skip to content

Commit a5d31a4

Browse files
feat(api): improve SearchRepositories pagination with next_page and total_count
1 parent ca0a81c commit a5d31a4

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 160
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-f35d75f04023f8de20cc787ab5202c4853a79ea14fa8e639f598e034b312207f.yml
3-
openapi_spec_hash: 0b2bf8b46a5bb29402fb9ae08ce6314f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-b40906da1a429be933f59cd9c3b2f7197aef9b302033558e7cbb65579357240a.yml
3+
openapi_spec_hash: bc0aec8cac7bfb2a69792bb43cfe50d2
44
config_hash: d3267594264bfb76d2ee7e881d5f8a5a

src/resources/runners/runners.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -962,12 +962,16 @@ export namespace RunnerParseContextURLResponse {
962962

963963
export interface RunnerSearchRepositoriesResponse {
964964
/**
965-
* Last page in the responses
965+
* Deprecated: Use pagination token instead. Total pages can be extracted from
966+
* token.
966967
*/
967968
lastPage?: number;
968969

969970
/**
970-
* Pagination information for the response
971+
* Pagination information for the response. Token format:
972+
* "NEXT_PAGE/TOTAL_PAGES/TOTAL_COUNT" (e.g., "2/40/1000"). Use -1 for unknown
973+
* values (e.g., "2/-1/-1" when totals unavailable). Empty token means no more
974+
* pages.
971975
*/
972976
pagination?: RunnerSearchRepositoriesResponse.Pagination;
973977

@@ -979,7 +983,10 @@ export interface RunnerSearchRepositoriesResponse {
979983

980984
export namespace RunnerSearchRepositoriesResponse {
981985
/**
982-
* Pagination information for the response
986+
* Pagination information for the response. Token format:
987+
* "NEXT_PAGE/TOTAL_PAGES/TOTAL_COUNT" (e.g., "2/40/1000"). Use -1 for unknown
988+
* values (e.g., "2/-1/-1" when totals unavailable). Empty token means no more
989+
* pages.
983990
*/
984991
export interface Pagination {
985992
/**

0 commit comments

Comments
 (0)