Skip to content

Commit 5751ee1

Browse files
feat(api): api update
1 parent bc3e2b5 commit 5751ee1

15 files changed

+3015
-12249
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: 45
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-1066fa342808844922c79f57fea5676ba822a7ff57f2143efa70bbadf5ed6428.yml
3-
openapi_spec_hash: 794703adc5978c044203ee5b1a9eb4f0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-fd18483a409117a70113398a50c7ff8bde92455d830e8027f2c2e3cc7a9c67ac.yml
3+
openapi_spec_hash: cb88f02495e1cfd2d73d2f9e3728205d
44
config_hash: 6d3585c0032e08d723d077d660fc8448

finch-java-core/src/main/kotlin/com/tryfinch/api/models/Provider.kt

Lines changed: 412 additions & 9536 deletions
Large diffs are not rendered by default.

finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListPage.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class ProviderListPage
1313
private constructor(
1414
private val service: ProviderService,
1515
private val params: ProviderListParams,
16-
private val items: List<Provider>,
17-
) : Page<Provider> {
16+
private val items: List<ProviderListResponse>,
17+
) : Page<ProviderListResponse> {
1818

1919
override fun hasNextPage(): Boolean = false
2020

@@ -23,13 +23,13 @@ private constructor(
2323

2424
override fun nextPage(): ProviderListPage = service.list(nextPageParams())
2525

26-
fun autoPager(): AutoPager<Provider> = AutoPager.from(this)
26+
fun autoPager(): AutoPager<ProviderListResponse> = AutoPager.from(this)
2727

2828
/** The parameters that were used to request this page. */
2929
fun params(): ProviderListParams = params
3030

3131
/** The response that this page was parsed from. */
32-
override fun items(): List<Provider> = items
32+
override fun items(): List<ProviderListResponse> = items
3333

3434
fun toBuilder() = Builder().from(this)
3535

@@ -53,7 +53,7 @@ private constructor(
5353

5454
private var service: ProviderService? = null
5555
private var params: ProviderListParams? = null
56-
private var items: List<Provider>? = null
56+
private var items: List<ProviderListResponse>? = null
5757

5858
@JvmSynthetic
5959
internal fun from(providerListPage: ProviderListPage) = apply {
@@ -68,7 +68,7 @@ private constructor(
6868
fun params(params: ProviderListParams) = apply { this.params = params }
6969

7070
/** The response that this page was parsed from. */
71-
fun items(items: List<Provider>) = apply { this.items = items }
71+
fun items(items: List<ProviderListResponse>) = apply { this.items = items }
7272

7373
/**
7474
* Returns an immutable instance of [ProviderListPage].

finch-java-core/src/main/kotlin/com/tryfinch/api/models/ProviderListPageAsync.kt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ private constructor(
1616
private val service: ProviderServiceAsync,
1717
private val streamHandlerExecutor: Executor,
1818
private val params: ProviderListParams,
19-
private val items: List<Provider>,
20-
) : PageAsync<Provider> {
19+
private val items: List<ProviderListResponse>,
20+
) : PageAsync<ProviderListResponse> {
2121

2222
override fun hasNextPage(): Boolean = false
2323

@@ -27,13 +27,14 @@ private constructor(
2727
override fun nextPage(): CompletableFuture<ProviderListPageAsync> =
2828
service.list(nextPageParams())
2929

30-
fun autoPager(): AutoPagerAsync<Provider> = AutoPagerAsync.from(this, streamHandlerExecutor)
30+
fun autoPager(): AutoPagerAsync<ProviderListResponse> =
31+
AutoPagerAsync.from(this, streamHandlerExecutor)
3132

3233
/** The parameters that were used to request this page. */
3334
fun params(): ProviderListParams = params
3435

3536
/** The response that this page was parsed from. */
36-
override fun items(): List<Provider> = items
37+
override fun items(): List<ProviderListResponse> = items
3738

3839
fun toBuilder() = Builder().from(this)
3940

@@ -59,7 +60,7 @@ private constructor(
5960
private var service: ProviderServiceAsync? = null
6061
private var streamHandlerExecutor: Executor? = null
6162
private var params: ProviderListParams? = null
62-
private var items: List<Provider>? = null
63+
private var items: List<ProviderListResponse>? = null
6364

6465
@JvmSynthetic
6566
internal fun from(providerListPageAsync: ProviderListPageAsync) = apply {
@@ -79,7 +80,7 @@ private constructor(
7980
fun params(params: ProviderListParams) = apply { this.params = params }
8081

8182
/** The response that this page was parsed from. */
82-
fun items(items: List<Provider>) = apply { this.items = items }
83+
fun items(items: List<ProviderListResponse>) = apply { this.items = items }
8384

8485
/**
8586
* Returns an immutable instance of [ProviderListPageAsync].

0 commit comments

Comments
 (0)