-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Make the cloud instance config available to the EM UI (#2350)
## Description The EM UI needs to retrieve the cloud instance config as part of the instance termination warning work. We add this method to the EM API. The cloud api requires typescript bindings so the GetCloudInstanceConfig response definition can be found. ## Is this change user facing? NO
- Loading branch information
1 parent
1900abe
commit 8b9b5ce
Showing
16 changed files
with
1,475 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"version": "0.0.0", | ||
"name": "kurtosis-cloud-sdk", | ||
"main": "./build/index", | ||
"description": "This repo contains a Typescript client for communicating with the Kurtosis cloud backend.", | ||
"types": "./build/index", | ||
"scripts": { | ||
"clean": "rm -rf build", | ||
"build": "tsc", | ||
"test": "jest" | ||
}, | ||
"files": [ | ||
"build" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/kurtosis-tech/kurtosis-cloud-sdk.git" | ||
}, | ||
"keywords": [ | ||
"kurtosis", | ||
"cloud" | ||
], | ||
"author": "Kurtosis Technologies Inc <[email protected]> (https://www.kurtosistech.com/)", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/kurtosis-tech/kurtosis-cloud-sdk/issues" | ||
}, | ||
"homepage": "https://github.com/kurtosis-tech/kurtosis-cloud-sdk#readme", | ||
"engines": { | ||
"node": ">=16.13.0" | ||
}, | ||
"dependencies": { | ||
"@bufbuild/protobuf": "^1.3.3", | ||
"@connectrpc/connect": "^0.13.0", | ||
"@connectrpc/connect-web": "^0.13.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.23.2", | ||
"@babel/preset-env": "^7.23.2", | ||
"@bufbuild/protoc-gen-es": "^1.3.3", | ||
"@connectrpc/protoc-gen-connect-es": "^0.13.0", | ||
"@types/jest": "^29.5.6", | ||
"jest": "^29.7.0", | ||
"typescript": "^4.3.5" | ||
} | ||
} |
91 changes: 91 additions & 0 deletions
91
cloud/api/typescript/src/kurtosis_backend_server_api_connect.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
// @generated by protoc-gen-connect-es v0.13.0 with parameter "target=ts" | ||
// @generated from file kurtosis_backend_server_api.proto (package kurtosis_cloud, syntax proto3) | ||
/* eslint-disable */ | ||
// @ts-nocheck | ||
|
||
import { Empty, MethodIdempotency, MethodKind } from "@bufbuild/protobuf"; | ||
import { CancelPaymentSubscriptionArgs, GetCloudInstanceConfigArgs, GetCloudInstanceConfigResponse, GetOrCreateApiKeyRequest, GetOrCreateApiKeyResponse, GetOrCreateInstanceRequest, GetOrCreateInstanceResponse, GetOrCreatePaymentConfigArgs, GetOrCreatePaymentConfigResponse, RefreshDefaultPaymentMethodArgs, UpdateAddressArgs } from "./kurtosis_backend_server_api_pb.js"; | ||
|
||
/** | ||
* @generated from service kurtosis_cloud.KurtosisCloudBackendServer | ||
*/ | ||
export const KurtosisCloudBackendServer = { | ||
typeName: "kurtosis_cloud.KurtosisCloudBackendServer", | ||
methods: { | ||
/** | ||
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.IsAvailable | ||
*/ | ||
isAvailable: { | ||
name: "IsAvailable", | ||
I: Empty, | ||
O: Empty, | ||
kind: MethodKind.Unary, | ||
idempotency: MethodIdempotency.NoSideEffects, | ||
}, | ||
/** | ||
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.GetCloudInstanceConfig | ||
*/ | ||
getCloudInstanceConfig: { | ||
name: "GetCloudInstanceConfig", | ||
I: GetCloudInstanceConfigArgs, | ||
O: GetCloudInstanceConfigResponse, | ||
kind: MethodKind.Unary, | ||
idempotency: MethodIdempotency.NoSideEffects, | ||
}, | ||
/** | ||
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreateApiKey | ||
*/ | ||
getOrCreateApiKey: { | ||
name: "GetOrCreateApiKey", | ||
I: GetOrCreateApiKeyRequest, | ||
O: GetOrCreateApiKeyResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreateInstance | ||
*/ | ||
getOrCreateInstance: { | ||
name: "GetOrCreateInstance", | ||
I: GetOrCreateInstanceRequest, | ||
O: GetOrCreateInstanceResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.GetOrCreatePaymentConfig | ||
*/ | ||
getOrCreatePaymentConfig: { | ||
name: "GetOrCreatePaymentConfig", | ||
I: GetOrCreatePaymentConfigArgs, | ||
O: GetOrCreatePaymentConfigResponse, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.RefreshDefaultPaymentMethod | ||
*/ | ||
refreshDefaultPaymentMethod: { | ||
name: "RefreshDefaultPaymentMethod", | ||
I: RefreshDefaultPaymentMethodArgs, | ||
O: Empty, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.CancelPaymentSubscription | ||
*/ | ||
cancelPaymentSubscription: { | ||
name: "CancelPaymentSubscription", | ||
I: CancelPaymentSubscriptionArgs, | ||
O: Empty, | ||
kind: MethodKind.Unary, | ||
}, | ||
/** | ||
* @generated from rpc kurtosis_cloud.KurtosisCloudBackendServer.UpdateAddress | ||
*/ | ||
updateAddress: { | ||
name: "UpdateAddress", | ||
I: UpdateAddressArgs, | ||
O: Empty, | ||
kind: MethodKind.Unary, | ||
}, | ||
} | ||
} as const; | ||
|
Oops, something went wrong.