From c088545c5b84c472cb8f1751b21cc1e78f7b36be Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 9 Apr 2024 23:31:01 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#270) --- api.md | 2 +- src/resources/request-tracers/index.ts | 2 +- .../request-tracers/request-tracers.ts | 2 +- src/resources/request-tracers/traces.ts | 86 +++++++++---------- 4 files changed, 44 insertions(+), 48 deletions(-) diff --git a/api.md b/api.md index c7b7be1cba..5076497573 100644 --- a/api.md +++ b/api.md @@ -3527,7 +3527,7 @@ Methods: Types: -- RequestTracerTrace +- Trace - TraceCreateResponse Methods: diff --git a/src/resources/request-tracers/index.ts b/src/resources/request-tracers/index.ts index ec052585da..7c742f42d2 100644 --- a/src/resources/request-tracers/index.ts +++ b/src/resources/request-tracers/index.ts @@ -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'; diff --git a/src/resources/request-tracers/request-tracers.ts b/src/resources/request-tracers/request-tracers.ts index d5578843d7..07e4dac476 100644 --- a/src/resources/request-tracers/request-tracers.ts +++ b/src/resources/request-tracers/request-tracers.ts @@ -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; } diff --git a/src/resources/request-tracers/traces.ts b/src/resources/request-tracers/traces.ts index 2dad6ef297..b43b8c899d 100644 --- a/src/resources/request-tracers/traces.ts +++ b/src/resources/request-tracers/traces.ts @@ -22,60 +22,56 @@ export class Traces extends APIResource { } } -export type RequestTracerTrace = Array; - -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; - /** - * Tracing step type - */ - type?: string; - } + /** + * Tracing step type + */ + type?: string; } /** @@ -87,7 +83,7 @@ export interface TraceCreateResponse { */ status_code?: number; - trace?: RequestTracerTrace; + trace?: Array; } export interface TraceCreateParams { @@ -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; }