From 62020017bd140014f569d38717f13d7c34aa7ff1 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 18 Feb 2025 16:00:48 +0000
Subject: [PATCH] feat(api): manual updates
---
.stats.yml | 2 +-
api.md | 1 -
src/client.ts | 1 -
src/error.ts | 6 ------
src/resources/shared.ts | 14 --------------
5 files changed, 1 insertion(+), 23 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 21d6a3d..f08fd6b 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,2 +1,2 @@
configured_endpoints: 111
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-bef0e79f204c51c91f5dca61e621e5e31c7494dccccb200e51da0c7654340816.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-cd6a05ae99d2a050577fa0e729e6ae89b4eacd78f61366a77269398368f8a877.yml
diff --git a/api.md b/api.md
index ac4a55a..8e80f38 100644
--- a/api.md
+++ b/api.md
@@ -2,7 +2,6 @@
Types:
-- ArbitraryData
- AutomationTrigger
- EnvironmentClass
- ErrorCode
diff --git a/src/client.ts b/src/client.ts
index c118587..c300e85 100644
--- a/src/client.ts
+++ b/src/client.ts
@@ -1145,7 +1145,6 @@ export declare namespace Gitpod {
type UserSetSuspendedParams as UserSetSuspendedParams,
};
- export type ArbitraryData = API.ArbitraryData;
export type AutomationTrigger = API.AutomationTrigger;
export type EnvironmentClass = API.EnvironmentClass;
export type ErrorCode = API.ErrorCode;
diff --git a/src/error.ts b/src/error.ts
index 1169f9b..67145c6 100644
--- a/src/error.ts
+++ b/src/error.ts
@@ -22,11 +22,6 @@ export class APIError<
* [google.rpc.Code][google.rpc.Code].
*/
readonly code?: Shared.ErrorCode | undefined;
- /**
- * Contains an arbitrary serialized message along with a @type that describes the
- * type of the serialized message.
- */
- readonly detail?: Shared.ArbitraryData | undefined;
constructor(status: TStatus, error: TError, message: string | undefined, headers: THeaders) {
super(`${APIError.makeMessage(status, error, message)}`);
@@ -36,7 +31,6 @@ export class APIError<
const data = error as Record;
this.code = data?.['code'];
- this.detail = data?.['detail'];
}
private static makeMessage(status: number | undefined, error: any, message: string | undefined) {
diff --git a/src/resources/shared.ts b/src/resources/shared.ts
index 64f898f..048dc03 100644
--- a/src/resources/shared.ts
+++ b/src/resources/shared.ts
@@ -2,20 +2,6 @@
import * as Shared from './shared';
import { EnvironmentClassesPage, TaskExecutionsPage, TasksPage } from '../pagination';
-import { type Uploadable } from '../uploads';
-
-/**
- * Contains an arbitrary serialized message along with a @type that describes the
- * type of the serialized message.
- */
-export interface ArbitraryData {
- debug?: Record;
-
- type?: string;
-
- value?: Uploadable;
- [k: string]: unknown;
-}
/**
* An AutomationTrigger represents a trigger for an automation action. The