Skip to content

Commit

Permalink
feat: OpenAPI spec update via Stainless API (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Feb 28, 2024
1 parent dd023bf commit 48dce4b
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 19 deletions.
1 change: 0 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4105,7 +4105,6 @@ Methods:

Types:

- <code><a href="./src/resources/request-tracers/traces.ts">THy7ZvEaTrace</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.

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

export namespace RequestTracers {
export import Traces = TracesAPI.Traces;
export import THy7ZvEaTrace = TracesAPI.THy7ZvEaTrace;
export import TraceCreateResponse = TracesAPI.TraceCreateResponse;
export import TraceCreateParams = TracesAPI.TraceCreateParams;
}
83 changes: 67 additions & 16 deletions src/resources/request-tracers/traces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,23 @@ export class Traces extends APIResource {
}
}

export type THy7ZvEaTrace = Array<THy7ZvEaTrace.THy7ZvEaTraceItem>;
/**
* Trace result with an origin status code
*/
export interface TraceCreateResponse {
/**
* HTTP Status code of zone response
*/
status_code?: number;

trace?: Array<TraceCreateResponse.Trace>;
}

export namespace THy7ZvEaTrace {
export namespace TraceCreateResponse {
/**
* List of steps acting on request/response
*/
export interface THy7ZvEaTraceItem {
export interface Trace {
/**
* If step type is rule, then action performed by this rule
*/
Expand Down Expand Up @@ -69,25 +79,67 @@ export namespace THy7ZvEaTrace {
*/
step_name?: string;

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

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

/**
* Trace result with an origin status code
*/
export interface TraceCreateResponse {
/**
* HTTP Status code of zone response
*/
status_code?: number;

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

/**
* 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, then expression used to match for this rule
*/
expression?: string;

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

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

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

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

trace?: unknown;

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

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

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

0 comments on commit 48dce4b

Please sign in to comment.