-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add typescript bindings to the cloud api
- Loading branch information
1 parent
3885268
commit b20a011
Showing
5 changed files
with
1,082 additions
and
1 deletion.
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.