Skip to content

Commit 1cfbbe5

Browse files
committed
feat(block): add support for block v1
1 parent f033b91 commit 1cfbbe5

File tree

4 files changed

+55
-64
lines changed

4 files changed

+55
-64
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ 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-
]),
7975
},
8076
unmarshalListProductsResponse,
8177
)

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ 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),
183182
serviceName: data.service_name,
184183
sourceIp: data.source_ip,
185184
statusCode: data.status_code,

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,8 @@ export interface Event {
127127
serviceName: string
128128
/** API method called to trigger the event. */
129129
methodName: string
130-
/** @deprecated Resource attached to the event. */
130+
/** Resource attached to the event. */
131131
resource?: Resource
132-
/** Resources attached to the event. */
133-
resources: Resource[]
134132
/** Unique identifier of the request at the origin of the event. */
135133
requestId: string
136134
/** Request at the origin of the event. */
@@ -151,7 +149,7 @@ export interface Product {
151149
services: ProductService[]
152150
}
153151

154-
export type ListEventsRequest = {
152+
export interface ListEventsRequest {
155153
/**
156154
* Region to target. If none is passed will use default region from the
157155
* config.
@@ -195,14 +193,12 @@ export interface ListEventsResponse {
195193
nextPageToken?: string
196194
}
197195

198-
export type ListProductsRequest = {
196+
export interface ListProductsRequest {
199197
/**
200198
* Region to target. If none is passed will use default region from the
201199
* config.
202200
*/
203201
region?: ScwRegion
204-
/** ID of the Organization containing the Audit Trail events. */
205-
organizationId?: string
206202
}
207203

208204
export interface ListProductsResponse {

0 commit comments

Comments
 (0)