Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#269)
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 63d3bfa commit 037097f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 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">Trace</a></code>
- <code><a href="./src/resources/request-tracers/traces.ts">RequestTracerTrace</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 Trace = TracesAPI.Trace;
export import RequestTracerTrace = TracesAPI.RequestTracerTrace;
export import TraceCreateResponse = TracesAPI.TraceCreateResponse;
export import TraceCreateParams = TracesAPI.TraceCreateParams;
}
12 changes: 6 additions & 6 deletions src/resources/request-tracers/traces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export class Traces extends APIResource {
}
}

export type Trace = Array<Trace.TraceItem>;
export type RequestTracerTrace = Array<RequestTracerTrace.RequestTracerTraceItem>;

export namespace Trace {
export namespace RequestTracerTrace {
/**
* List of steps acting on request/response
*/
export interface TraceItem {
export interface RequestTracerTraceItem {
/**
* If step type is rule, then action performed by this rule
*/
Expand Down Expand Up @@ -69,7 +69,7 @@ export namespace Trace {
*/
step_name?: string;

trace?: TracesAPI.Trace;
trace?: TracesAPI.RequestTracerTrace;

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

trace?: Trace;
trace?: RequestTracerTrace;
}

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

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

0 comments on commit 037097f

Please sign in to comment.