Skip to content

Commit 9ff9fad

Browse files
committed
feat: snake case the id
1 parent 4fbf41e commit 9ff9fad

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/apis/guardrails.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export interface ListGuardrailsResponse extends APIResponseType {
8484

8585
// Get Guardrail parameters
8686
export interface GetGuardrailParams {
87-
guardrailId: string;
87+
guardrail_id: string;
8888
}
8989

9090
// Guardrail Details interface
@@ -109,13 +109,13 @@ export interface UpdateGuardrailResponse extends APIResponseType {
109109

110110
// Update Guardrail parameters
111111
export interface UpdateGuardrailParams {
112-
guardrailId?: string;
112+
guardrail_id?: string;
113113
workspace_id?: string;
114114
}
115115

116116
// Delete Guardrail parameters
117117
export interface DeleteGuardrailParams {
118-
guardrailId: string;
118+
guardrail_id: string;
119119
}
120120

121121
export class Guardrails extends ApiResource {
@@ -164,7 +164,7 @@ export class Guardrails extends ApiResource {
164164
opts?: RequestOptions
165165
): APIPromise<GuardrailDetails> {
166166
const body = _body;
167-
const guardrailId = body.guardrailId;
167+
const guardrailId = body.guardrail_id;
168168
if (params) {
169169
this.client.customHeaders = {
170170
...this.client.customHeaders,
@@ -184,8 +184,8 @@ export class Guardrails extends ApiResource {
184184
opts?: RequestOptions
185185
): APIPromise<UpdateGuardrailResponse> {
186186
const body = _body;
187-
const guardrailId = body.guardrailId;
188-
delete body.guardrailId;
187+
const guardrailId = body.guardrail_id;
188+
delete body.guardrail_id;
189189
if (params) {
190190
this.client.customHeaders = {
191191
...this.client.customHeaders,
@@ -205,7 +205,7 @@ export class Guardrails extends ApiResource {
205205
opts?: RequestOptions
206206
): APIPromise<any> {
207207
const body = _body;
208-
const guardrailId = body.guardrailId;
208+
const guardrailId = body.guardrail_id;
209209
if (params) {
210210
this.client.customHeaders = {
211211
...this.client.customHeaders,

0 commit comments

Comments
 (0)