Skip to content

Commit f033b91

Browse files
committed
feat: update generated APIs
1 parent 9f18271 commit f033b91

File tree

12 files changed

+1271
-54
lines changed

12 files changed

+1271
-54
lines changed

packages/clients/src/api/audit_trail/v1alpha1/api.gen.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ export class API extends ParentAPI {
7272
{
7373
method: 'GET',
7474
path: `/audit-trail/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/products`,
75+
urlParams: urlParams([
76+
'organization_id',
77+
request.organizationId ?? this.client.settings.defaultOrganizationId,
78+
]),
7579
},
7680
unmarshalListProductsResponse,
7781
)

packages/clients/src/api/audit_trail/v1alpha1/marshalling.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ export const unmarshalEvent = (data: unknown): Event => {
179179
requestBody: data.request_body,
180180
requestId: data.request_id,
181181
resource: data.resource ? unmarshalResource(data.resource) : undefined,
182+
resources: unmarshalArrayOfObject(data.resources, unmarshalResource),
182183
serviceName: data.service_name,
183184
sourceIp: data.source_ip,
184185
statusCode: data.status_code,

packages/clients/src/api/audit_trail/v1alpha1/types.gen.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ export interface Event {
127127
serviceName: string
128128
/** API method called to trigger the event. */
129129
methodName: string
130-
/** Resource attached to the event. */
130+
/** @deprecated Resource attached to the event. */
131131
resource?: Resource
132+
/** Resources attached to the event. */
133+
resources: Resource[]
132134
/** Unique identifier of the request at the origin of the event. */
133135
requestId: string
134136
/** Request at the origin of the event. */
@@ -199,6 +201,8 @@ export type ListProductsRequest = {
199201
* config.
200202
*/
201203
region?: ScwRegion
204+
/** ID of the Organization containing the Audit Trail events. */
205+
organizationId?: string
202206
}
203207

204208
export interface ListProductsResponse {

packages/clients/src/api/block/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
* EDIT HERE
44
*/
55

6+
export * as v1 from './v1/index.gen'
67
export * as v1alpha1 from './v1alpha1/index.gen'

0 commit comments

Comments
 (0)