This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@gitpod/flex-sdk

1.0.0-20250110.0 • Public • Published

The Gitpod Flex SDK provides a TypeScript/JavaScript client for interacting with the Gitpod Flex API.

Installation

npm install @gitpod/flex-sdk

Usage

The SDK uses Connect-ES for type-safe API communication. Here's how to set up and use the client:

import { createPromiseClient } from "@connectrpc/connect";
import { createConnectTransport } from "@connectrpc/connect-web";
import { UserService } from "gitpod-flex-api/gitpod/v1/user_connect";
// Import other services as needed

// Create transport with authentication
const transport = createConnectTransport({
    baseUrl: "https://your-gitpod-instance.com/api",
    interceptors: [
        // Add bearer token interceptor
        (next) => async (req) => {
            req.header.set("Authorization", `Bearer ${your_access_token}`);
            return await next(req);
        }
    ],
});

// Create service clients
const userService = createPromiseClient(UserService, transport);
// Initialize other services similarly

// Make API calls
const response = await userService.getUser({ /* params */ });

Available Services

  • AccountService
  • UserService
  • OrganizationService
  • EnvironmentService
  • EnvironmentAutomationService
  • ProjectService
  • SecretService
  • RunnerService
  • RunnerConfigurationService
  • RunnerInteractionService
  • GroupService
  • EventService
  • EditorService

Version Policy

⚠️ Important: This package does not follow semantic versioning (semver). Breaking changes may be introduced in any release. Always pin your dependency to an exact version and test thoroughly when upgrading.

Authentication

The SDK requires a Gitpod Personal Access Token for authentication. You can create one in your Gitpod user settings. Pass the token in the transport configuration as shown in the usage example above.

Readme

Keywords

none

Package Sidebar

Install

npm i @gitpod/flex-sdk

Weekly Downloads

3

Version

1.0.0-20250110.0

License

Apache-2.0

Unpacked Size

2.09 MB

Total Files

113

Last publish

Collaborators

  • gitpod-publish
  • meysholdt