Skip to content

Commit fce5f5e

Browse files
feat(api): manual updates (#28)
1 parent 2a6f6e7 commit fce5f5e

File tree

5 files changed

+1
-23
lines changed

5 files changed

+1
-23
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-bef0e79f204c51c91f5dca61e621e5e31c7494dccccb200e51da0c7654340816.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-cd6a05ae99d2a050577fa0e729e6ae89b4eacd78f61366a77269398368f8a877.yml

api.md

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
Types:
44

5-
- <code><a href="./src/resources/shared.ts">ArbitraryData</a></code>
65
- <code><a href="./src/resources/shared.ts">AutomationTrigger</a></code>
76
- <code><a href="./src/resources/shared.ts">EnvironmentClass</a></code>
87
- <code><a href="./src/resources/shared.ts">ErrorCode</a></code>

src/client.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,6 @@ export declare namespace Gitpod {
11451145
type UserSetSuspendedParams as UserSetSuspendedParams,
11461146
};
11471147

1148-
export type ArbitraryData = API.ArbitraryData;
11491148
export type AutomationTrigger = API.AutomationTrigger;
11501149
export type EnvironmentClass = API.EnvironmentClass;
11511150
export type ErrorCode = API.ErrorCode;

src/error.ts

-6
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ export class APIError<
2222
* [google.rpc.Code][google.rpc.Code].
2323
*/
2424
readonly code?: Shared.ErrorCode | undefined;
25-
/**
26-
* Contains an arbitrary serialized message along with a @type that describes the
27-
* type of the serialized message.
28-
*/
29-
readonly detail?: Shared.ArbitraryData | undefined;
3025

3126
constructor(status: TStatus, error: TError, message: string | undefined, headers: THeaders) {
3227
super(`${APIError.makeMessage(status, error, message)}`);
@@ -36,7 +31,6 @@ export class APIError<
3631

3732
const data = error as Record<string, any>;
3833
this.code = data?.['code'];
39-
this.detail = data?.['detail'];
4034
}
4135

4236
private static makeMessage(status: number | undefined, error: any, message: string | undefined) {

src/resources/shared.ts

-14
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,6 @@
22

33
import * as Shared from './shared';
44
import { EnvironmentClassesPage, TaskExecutionsPage, TasksPage } from '../pagination';
5-
import { type Uploadable } from '../uploads';
6-
7-
/**
8-
* Contains an arbitrary serialized message along with a @type that describes the
9-
* type of the serialized message.
10-
*/
11-
export interface ArbitraryData {
12-
debug?: Record<string, unknown>;
13-
14-
type?: string;
15-
16-
value?: Uploadable;
17-
[k: string]: unknown;
18-
}
195

206
/**
217
* An AutomationTrigger represents a trigger for an automation action. The

0 commit comments

Comments
 (0)