Skip to content

Commit 0aeb652

Browse files
committed
fix(sdk): generator
1 parent 0a4e808 commit 0aeb652

13 files changed

Lines changed: 2621 additions & 491 deletions

File tree

api/spec/packages/aip-client-javascript/src/models/operations/addons.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@ import type {
1212
export interface ListAddonsQuery {
1313
/** Determines which page of the collection to retrieve. */
1414
page?: { size?: number; number?: number }
15-
/** Sort add-ons returned in the response. Supported sort attributes are: - `id` - `key` - `name` - `created_at` (default) - `updated_at` The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order. */
15+
/**
16+
* Sort add-ons returned in the response. Supported sort attributes are:
17+
*
18+
* - `id`
19+
* - `key`
20+
* - `name`
21+
* - `created_at` (default)
22+
* - `updated_at`
23+
*
24+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
25+
* suffix is used to specify a descending order.
26+
*/
1627
sort?: SortQueryInput
1728
/** Filter add-ons returned in the response. */
1829
filter?: ListAddonsParamsFilter

api/spec/packages/aip-client-javascript/src/models/operations/currencies.ts

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,21 @@ import type {
1515
export interface ListCurrenciesQuery {
1616
/** Determines which page of the collection to retrieve. */
1717
page?: { size?: number; number?: number }
18-
/** Sort currencies returned in the response. Supported sort attributes are: - `code` (default) - `name` The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order. */
18+
/**
19+
* Sort currencies returned in the response. Supported sort attributes are:
20+
*
21+
* - `code` (default)
22+
* - `name`
23+
*
24+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
25+
* suffix is used to specify a descending order.
26+
*/
1927
sort?: SortQueryInput
20-
/** Filter currencies returned in the response. To filter currencies by type add the following query param: filter[type]=custom */
28+
/**
29+
* Filter currencies returned in the response.
30+
*
31+
* To filter currencies by type add the following query param: filter[type]=custom
32+
*/
2133
filter?: ListCurrenciesParamsFilter
2234
}
2335

@@ -28,7 +40,12 @@ export type CreateCustomCurrencyRequest = CreateCurrencyCustomRequest
2840
export type CreateCustomCurrencyResponse = CurrencyCustom
2941

3042
export interface ListCostBasesQuery {
31-
/** Filter cost bases returned in the response. To filter cost bases by fiat currency code add the following query param: filter[fiat_code]=USD */
43+
/**
44+
* Filter cost bases returned in the response.
45+
*
46+
* To filter cost bases by fiat currency code add the following query param:
47+
* filter[fiat_code]=USD
48+
*/
3249
filter?: ListCostBasesParamsFilter
3350
/** Determines which page of the collection to retrieve. */
3451
page?: { size?: number; number?: number }

api/spec/packages/aip-client-javascript/src/models/operations/customers.ts

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,22 @@ export type GetCustomerResponse = Customer
4444
export interface ListCustomersQuery {
4545
/** Determines which page of the collection to retrieve. */
4646
page?: { size?: number; number?: number }
47-
/** Sort customers returned in the response. Supported sort attributes are: - `id` - `name` (default) - `created_at` The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order. */
47+
/**
48+
* Sort customers returned in the response. Supported sort attributes are:
49+
*
50+
* - `id`
51+
* - `name` (default)
52+
* - `created_at`
53+
*
54+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
55+
* suffix is used to specify a descending order.
56+
*/
4857
sort?: SortQueryInput
49-
/** Filter customers returned in the response. To filter customers by key add the following query param: filter[key]=my-db-id */
58+
/**
59+
* Filter customers returned in the response.
60+
*
61+
* To filter customers by key add the following query param: filter[key]=my-db-id
62+
*/
5063
filter?: ListCustomersParamsFilter
5164
}
5265

@@ -120,7 +133,11 @@ export type ListCreditGrantsRequest = ListCreditGrantsQuery & {
120133
export type ListCreditGrantsResponse = CreditGrantPagePaginatedResponse
121134

122135
export interface GetCustomerCreditBalanceQuery {
123-
/** Return the credit balance as of this timestamp. Defaults to the current time. */
136+
/**
137+
* Return the credit balance as of this timestamp.
138+
*
139+
* Defaults to the current time.
140+
*/
124141
timestamp?: string
125142
filter?: GetCreditBalanceParamsFilter
126143
}
@@ -157,11 +174,31 @@ export type ListCreditTransactionsResponse = CreditTransactionPaginatedResponse
157174
export interface ListCustomerChargesQuery {
158175
/** Determines which page of the collection to retrieve. */
159176
page?: { size?: number; number?: number }
160-
/** Sort charges returned in the response. Supported sort attributes are: - `id` - `created_at` - `service_period.from` - `billing_period.from` */
177+
/**
178+
* Sort charges returned in the response.
179+
*
180+
* Supported sort attributes are:
181+
*
182+
* - `id`
183+
* - `created_at`
184+
* - `service_period.from`
185+
* - `billing_period.from`
186+
*/
161187
sort?: SortQueryInput
162-
/** Filter charges. To filter charges by status add the following query param: `filter[status][oeq]=created,active` */
188+
/**
189+
* Filter charges.
190+
*
191+
* To filter charges by status add the following query param:
192+
* `filter[status][oeq]=created,active`
193+
*/
163194
filter?: ListChargesParamsFilter
164-
/** Expand full objects for referenced entities. Supported values are: - `real_time_usage`: Expand the charge's real-time usage. */
195+
/**
196+
* Expand full objects for referenced entities.
197+
*
198+
* Supported values are:
199+
*
200+
* - `real_time_usage`: Expand the charge's real-time usage.
201+
*/
165202
expand?: 'real_time_usage'[]
166203
}
167204

api/spec/packages/aip-client-javascript/src/models/operations/events.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,24 @@ import type {
1010

1111
export interface ListMeteringEventsQuery {
1212
page?: CursorPaginationQueryPage
13-
/** Filter events returned in the response. To filter events by subject add the following query param: filter[subject][eq]=customer-1 */
13+
/**
14+
* Filter events returned in the response.
15+
*
16+
* To filter events by subject add the following query param:
17+
* filter[subject][eq]=customer-1
18+
*/
1419
filter?: ListEventsParamsFilter
15-
/** Sort events returned in the response. Supported sort attributes are: - `time` (default) - `ingested_at` - `stored_at` When omitted, events are sorted by `time desc` (most recent first). When a sort field is provided without a suffix, it sorts descending. Append the `asc` suffix to sort ascending, or the `desc` suffix to sort descending. */
20+
/**
21+
* Sort events returned in the response. Supported sort attributes are:
22+
*
23+
* - `time` (default)
24+
* - `ingested_at`
25+
* - `stored_at`
26+
*
27+
* When omitted, events are sorted by `time desc` (most recent first). When a sort
28+
* field is provided without a suffix, it sorts descending. Append the `asc` suffix
29+
* to sort ascending, or the `desc` suffix to sort descending.
30+
*/
1631
sort?: SortQueryInput
1732
}
1833

api/spec/packages/aip-client-javascript/src/models/operations/features.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,24 @@ import type {
1414
export interface ListFeaturesQuery {
1515
/** Determines which page of the collection to retrieve. */
1616
page?: { size?: number; number?: number }
17-
/** Sort features returned in the response. Supported sort attributes are: - `key` - `name` - `created_at` (default) - `updated_at` The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order. */
17+
/**
18+
* Sort features returned in the response. Supported sort attributes are:
19+
*
20+
* - `key`
21+
* - `name`
22+
* - `created_at` (default)
23+
* - `updated_at`
24+
*
25+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
26+
* suffix is used to specify a descending order.
27+
*/
1828
sort?: SortQueryInput
19-
/** Filter features returned in the response. To filter features by meter_id add the following query param: filter[meter_id][oeq]=<id> */
29+
/**
30+
* Filter features returned in the response.
31+
*
32+
* To filter features by meter_id add the following query param:
33+
* filter[meter_id][oeq]=<id>
34+
*/
2035
filter?: ListFeatureParamsFilter
2136
}
2237

api/spec/packages/aip-client-javascript/src/models/operations/llmCost.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,18 @@ import type {
1111
export interface ListLlmCostPricesQuery {
1212
/** Filter prices. */
1313
filter?: ListLlmCostPricesParamsFilter
14-
/** Sort prices returned in the response. Supported sort attributes are: - `id` - `provider.id` - `model.id` (default) - `effective_from` - `effective_to` The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order. */
14+
/**
15+
* Sort prices returned in the response. Supported sort attributes are:
16+
*
17+
* - `id`
18+
* - `provider.id`
19+
* - `model.id` (default)
20+
* - `effective_from`
21+
* - `effective_to`
22+
*
23+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
24+
* suffix is used to specify a descending order.
25+
*/
1526
sort?: SortQueryInput
1627
/** Determines which page of the collection to retrieve. */
1728
page?: { size?: number; number?: number }

api/spec/packages/aip-client-javascript/src/models/operations/meters.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,24 @@ export type GetMeterResponse = Meter
2222
export interface ListMetersQuery {
2323
/** Determines which page of the collection to retrieve. */
2424
page?: { size?: number; number?: number }
25-
/** Sort meters returned in the response. Supported sort attributes are: - `key` - `name` - `aggregation` - `created_at` (default) - `updated_at` The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order. */
25+
/**
26+
* Sort meters returned in the response. Supported sort attributes are:
27+
*
28+
* - `key`
29+
* - `name`
30+
* - `aggregation`
31+
* - `created_at` (default)
32+
* - `updated_at`
33+
*
34+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
35+
* suffix is used to specify a descending order.
36+
*/
2637
sort?: SortQueryInput
27-
/** Filter meters returned in the response. To filter meters by key add the following query param: filter[key]=my-meter-key */
38+
/**
39+
* Filter meters returned in the response.
40+
*
41+
* To filter meters by key add the following query param: filter[key]=my-meter-key
42+
*/
2843
filter?: ListMetersParamsFilter
2944
}
3045

api/spec/packages/aip-client-javascript/src/models/operations/plans.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ import type {
1212
export interface ListPlansQuery {
1313
/** Determines which page of the collection to retrieve. */
1414
page?: { size?: number; number?: number }
15-
/** Sort plans returned in the response. Supported sort attributes are: - `id` - `key` - `version` - `created_at` (default) - `updated_at` */
15+
/**
16+
* Sort plans returned in the response. Supported sort attributes are:
17+
*
18+
* - `id`
19+
* - `key`
20+
* - `version`
21+
* - `created_at` (default)
22+
* - `updated_at`
23+
*/
1624
sort?: SortQueryInput
1725
/** Filter plans returned in the response. */
1826
filter?: ListPlansParamsFilter

api/spec/packages/aip-client-javascript/src/models/operations/subscriptions.ts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,16 @@ export type CreateSubscriptionResponse = Subscription
1919
export interface ListSubscriptionsQuery {
2020
/** Determines which page of the collection to retrieve. */
2121
page?: { size?: number; number?: number }
22-
/** Sort subscriptions returned in the response. Supported sort attributes are: - `id` - `active_from` (default) - `active_to` The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order. */
22+
/**
23+
* Sort subscriptions returned in the response. Supported sort attributes are:
24+
*
25+
* - `id`
26+
* - `active_from` (default)
27+
* - `active_to`
28+
*
29+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
30+
* suffix is used to specify a descending order.
31+
*/
2332
sort?: SortQueryInput
2433
/** Filter subscriptions. */
2534
filter?: ListSubscriptionsParamsFilter
@@ -53,7 +62,17 @@ export type ChangeSubscriptionResponse = SubscriptionChangeResponse
5362
export interface ListSubscriptionAddonsQuery {
5463
/** Determines which page of the collection to retrieve. */
5564
page?: { size?: number; number?: number }
56-
/** Sort subscription addons returned in the response. Supported sort attributes are: - `id` - `created_at` (default) - `updated_at` The `asc` suffix is optional as the default sort order is ascending. The `desc` suffix is used to specify a descending order. */
65+
/**
66+
* Sort subscription addons returned in the response. Supported sort attributes
67+
* are:
68+
*
69+
* - `id`
70+
* - `created_at` (default)
71+
* - `updated_at`
72+
*
73+
* The `asc` suffix is optional as the default sort order is ascending. The `desc`
74+
* suffix is used to specify a descending order.
75+
*/
5776
sort?: SortQueryInput
5877
}
5978

0 commit comments

Comments
 (0)