Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 9, 2024
1 parent 037097f commit c088545
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 48 deletions.
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3527,7 +3527,7 @@ Methods:

Types:

- <code><a href="./src/resources/request-tracers/traces.ts">RequestTracerTrace</a></code>
- <code><a href="./src/resources/request-tracers/traces.ts">Trace</a></code>
- <code><a href="./src/resources/request-tracers/traces.ts">TraceCreateResponse</a></code>

Methods:
Expand Down
2 changes: 1 addition & 1 deletion src/resources/request-tracers/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

export { RequestTracerTrace, TraceCreateResponse, TraceCreateParams, Traces } from './traces';
export { RequestTracers } from './request-tracers';
export { Trace, TraceCreateResponse, TraceCreateParams, Traces } from './traces';
2 changes: 1 addition & 1 deletion src/resources/request-tracers/request-tracers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class RequestTracers extends APIResource {

export namespace RequestTracers {
export import Traces = TracesAPI.Traces;
export import RequestTracerTrace = TracesAPI.RequestTracerTrace;
export import Trace = TracesAPI.Trace;
export import TraceCreateResponse = TracesAPI.TraceCreateResponse;
export import TraceCreateParams = TracesAPI.TraceCreateParams;
}
86 changes: 41 additions & 45 deletions src/resources/request-tracers/traces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,60 +22,56 @@ export class Traces extends APIResource {
}
}

export type RequestTracerTrace = Array<RequestTracerTrace.RequestTracerTraceItem>;

export namespace RequestTracerTrace {
/**
* List of steps acting on request/response
*/
export interface Trace {
/**
* List of steps acting on request/response
* If step type is rule, then action performed by this rule
*/
export interface RequestTracerTraceItem {
/**
* If step type is rule, then action performed by this rule
*/
action?: string;
action?: string;

/**
* If step type is rule, then action parameters of this rule as JSON
*/
action_parameters?: unknown;
/**
* If step type is rule, then action parameters of this rule as JSON
*/
action_parameters?: unknown;

/**
* If step type is rule or ruleset, the description of this entity
*/
description?: string;
/**
* If step type is rule or ruleset, the description of this entity
*/
description?: string;

/**
* If step type is rule, then expression used to match for this rule
*/
expression?: string;
/**
* If step type is rule, then expression used to match for this rule
*/
expression?: string;

/**
* If step type is ruleset, then kind of this ruleset
*/
kind?: string;
/**
* If step type is ruleset, then kind of this ruleset
*/
kind?: string;

/**
* Whether tracing step affected tracing request/response
*/
matched?: boolean;
/**
* Whether tracing step affected tracing request/response
*/
matched?: boolean;

/**
* If step type is ruleset, then name of this ruleset
*/
name?: string;
/**
* If step type is ruleset, then name of this ruleset
*/
name?: string;

/**
* Tracing step identifying name
*/
step_name?: string;
/**
* Tracing step identifying name
*/
step_name?: string;

trace?: TracesAPI.RequestTracerTrace;
trace?: Array<Trace>;

/**
* Tracing step type
*/
type?: string;
}
/**
* Tracing step type
*/
type?: string;
}

/**
Expand All @@ -87,7 +83,7 @@ export interface TraceCreateResponse {
*/
status_code?: number;

trace?: RequestTracerTrace;
trace?: Array<Trace>;
}

export interface TraceCreateParams {
Expand Down Expand Up @@ -201,7 +197,7 @@ export namespace TraceCreateParams {
}

export namespace Traces {
export import RequestTracerTrace = TracesAPI.RequestTracerTrace;
export import Trace = TracesAPI.Trace;
export import TraceCreateResponse = TracesAPI.TraceCreateResponse;
export import TraceCreateParams = TracesAPI.TraceCreateParams;
}

0 comments on commit c088545

Please sign in to comment.