@rivetkit/engine-api-full 2.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +203 -0
- package/dist/browser/cjs/core.js +2338 -0
- package/dist/browser/cjs/index.js +4030 -0
- package/dist/browser/cjs/serialization.js +1916 -0
- package/dist/browser/esm/core.js +2312 -0
- package/dist/browser/esm/index.js +4004 -0
- package/dist/browser/esm/serialization.js +1889 -0
- package/dist/node/core.js +2353 -0
- package/dist/node/index.js +4043 -0
- package/dist/node/serialization.js +1976 -0
- package/package.json +58 -0
- package/types/Client.d.ts +233 -0
- package/types/api/client/index.d.ts +1 -0
- package/types/api/client/requests/ActorsCreateRequest.d.ts +22 -0
- package/types/api/client/requests/ActorsDeleteRequest.d.ts +10 -0
- package/types/api/client/requests/ActorsGetOrCreateRequest.d.ts +23 -0
- package/types/api/client/requests/ActorsListNamesRequest.d.ts +14 -0
- package/types/api/client/requests/ActorsListRequest.d.ts +18 -0
- package/types/api/client/requests/RunnerConfigsDeleteRequest.d.ts +12 -0
- package/types/api/client/requests/RunnerConfigsListRequest.d.ts +17 -0
- package/types/api/client/requests/RunnerConfigsRefreshMetadataRequest.d.ts +17 -0
- package/types/api/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +15 -0
- package/types/api/client/requests/RunnerConfigsUpsertRequestBody.d.ts +17 -0
- package/types/api/client/requests/index.d.ts +10 -0
- package/types/api/index.d.ts +3 -0
- package/types/api/resources/datacenters/client/Client.d.ts +36 -0
- package/types/api/resources/datacenters/client/index.d.ts +1 -0
- package/types/api/resources/datacenters/index.d.ts +1 -0
- package/types/api/resources/health/client/Client.d.ts +36 -0
- package/types/api/resources/health/client/index.d.ts +1 -0
- package/types/api/resources/health/index.d.ts +1 -0
- package/types/api/resources/index.d.ts +6 -0
- package/types/api/resources/namespaces/client/Client.d.ts +48 -0
- package/types/api/resources/namespaces/client/index.d.ts +1 -0
- package/types/api/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +14 -0
- package/types/api/resources/namespaces/client/requests/NamespacesListRequest.d.ts +13 -0
- package/types/api/resources/namespaces/client/requests/index.d.ts +2 -0
- package/types/api/resources/namespaces/index.d.ts +1 -0
- package/types/api/resources/runners/client/Client.d.ts +54 -0
- package/types/api/resources/runners/client/index.d.ts +1 -0
- package/types/api/resources/runners/client/requests/RunnersListNamesRequest.d.ts +14 -0
- package/types/api/resources/runners/client/requests/RunnersListRequest.d.ts +17 -0
- package/types/api/resources/runners/client/requests/index.d.ts +2 -0
- package/types/api/resources/runners/index.d.ts +1 -0
- package/types/api/types/Actor.d.ts +19 -0
- package/types/api/types/ActorName.d.ts +6 -0
- package/types/api/types/ActorsCreateResponse.d.ts +7 -0
- package/types/api/types/ActorsDeleteResponse.d.ts +4 -0
- package/types/api/types/ActorsGetOrCreateResponse.d.ts +8 -0
- package/types/api/types/ActorsListNamesResponse.d.ts +8 -0
- package/types/api/types/ActorsListResponse.d.ts +8 -0
- package/types/api/types/CrashPolicy.d.ts +9 -0
- package/types/api/types/Datacenter.d.ts +8 -0
- package/types/api/types/DatacenterHealth.d.ts +12 -0
- package/types/api/types/DatacentersListResponse.d.ts +8 -0
- package/types/api/types/HealthFanoutResponse.d.ts +7 -0
- package/types/api/types/HealthResponse.d.ts +8 -0
- package/types/api/types/HealthStatus.d.ts +8 -0
- package/types/api/types/Namespace.d.ts +10 -0
- package/types/api/types/NamespaceListResponse.d.ts +8 -0
- package/types/api/types/NamespacesCreateResponse.d.ts +7 -0
- package/types/api/types/Pagination.d.ts +6 -0
- package/types/api/types/RivetId.d.ts +4 -0
- package/types/api/types/Runner.d.ts +21 -0
- package/types/api/types/RunnerConfig.d.ts +9 -0
- package/types/api/types/RunnerConfigKind.d.ts +5 -0
- package/types/api/types/RunnerConfigKindNormal.d.ts +6 -0
- package/types/api/types/RunnerConfigKindServerless.d.ts +7 -0
- package/types/api/types/RunnerConfigKindServerlessServerless.d.ts +13 -0
- package/types/api/types/RunnerConfigServerless.d.ts +13 -0
- package/types/api/types/RunnerConfigVariant.d.ts +8 -0
- package/types/api/types/RunnerConfigsDeleteResponse.d.ts +4 -0
- package/types/api/types/RunnerConfigsListResponse.d.ts +8 -0
- package/types/api/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +7 -0
- package/types/api/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +4 -0
- package/types/api/types/RunnerConfigsRefreshMetadataResponse.d.ts +4 -0
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +5 -0
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +6 -0
- package/types/api/types/RunnerConfigsServerlessMetadataError.d.ts +5 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidRequest.d.ts +6 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidResponseJson.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidResponseJsonInvalidResponseJson.d.ts +6 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidResponseSchema.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorInvalidResponseSchemaInvalidResponseSchema.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorNonSuccessStatus.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorNonSuccessStatusNonSuccessStatus.d.ts +7 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorRequestFailed.d.ts +6 -0
- package/types/api/types/RunnerConfigsServerlessMetadataErrorRequestTimedOut.d.ts +6 -0
- package/types/api/types/RunnerConfigsUpsertResponse.d.ts +6 -0
- package/types/api/types/RunnersListNamesResponse.d.ts +8 -0
- package/types/api/types/RunnersListResponse.d.ts +8 -0
- package/types/api/types/index.d.ts +50 -0
- package/types/core/auth/BasicAuth.d.ts +8 -0
- package/types/core/auth/BearerToken.d.ts +5 -0
- package/types/core/auth/index.d.ts +2 -0
- package/types/core/fetcher/APIResponse.d.ts +10 -0
- package/types/core/fetcher/Fetcher.d.ts +39 -0
- package/types/core/fetcher/Supplier.d.ts +4 -0
- package/types/core/fetcher/createRequestUrl.d.ts +1 -0
- package/types/core/fetcher/getFetchFn.d.ts +4 -0
- package/types/core/fetcher/getHeader.d.ts +1 -0
- package/types/core/fetcher/getRequestBody.d.ts +7 -0
- package/types/core/fetcher/getResponseBody.d.ts +1 -0
- package/types/core/fetcher/index.d.ts +5 -0
- package/types/core/fetcher/makeRequest.d.ts +1 -0
- package/types/core/fetcher/requestWithRetries.d.ts +1 -0
- package/types/core/fetcher/signals.d.ts +11 -0
- package/types/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/types/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/types/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/types/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/types/core/index.d.ts +4 -0
- package/types/core/json.d.ts +15 -0
- package/types/core/runtime/index.d.ts +1 -0
- package/types/core/runtime/runtime.d.ts +9 -0
- package/types/core/schemas/Schema.d.ts +87 -0
- package/types/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/types/core/schemas/builders/bigint/index.d.ts +1 -0
- package/types/core/schemas/builders/date/date.d.ts +2 -0
- package/types/core/schemas/builders/date/index.d.ts +1 -0
- package/types/core/schemas/builders/enum/enum.d.ts +2 -0
- package/types/core/schemas/builders/enum/index.d.ts +1 -0
- package/types/core/schemas/builders/index.d.ts +14 -0
- package/types/core/schemas/builders/lazy/index.d.ts +3 -0
- package/types/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/types/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/types/core/schemas/builders/list/index.d.ts +1 -0
- package/types/core/schemas/builders/list/list.d.ts +2 -0
- package/types/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/types/core/schemas/builders/literals/index.d.ts +2 -0
- package/types/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/types/core/schemas/builders/object/index.d.ts +6 -0
- package/types/core/schemas/builders/object/object.d.ts +3 -0
- package/types/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/types/core/schemas/builders/object/property.d.ts +8 -0
- package/types/core/schemas/builders/object/types.d.ts +31 -0
- package/types/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/types/core/schemas/builders/object-like/index.d.ts +2 -0
- package/types/core/schemas/builders/object-like/types.d.ts +7 -0
- package/types/core/schemas/builders/primitives/any.d.ts +1 -0
- package/types/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/types/core/schemas/builders/primitives/index.d.ts +5 -0
- package/types/core/schemas/builders/primitives/number.d.ts +1 -0
- package/types/core/schemas/builders/primitives/string.d.ts +1 -0
- package/types/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/types/core/schemas/builders/record/index.d.ts +2 -0
- package/types/core/schemas/builders/record/record.d.ts +3 -0
- package/types/core/schemas/builders/record/types.d.ts +4 -0
- package/types/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/types/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +21 -0
- package/types/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/types/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/types/core/schemas/builders/set/index.d.ts +1 -0
- package/types/core/schemas/builders/set/set.d.ts +2 -0
- package/types/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/types/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/types/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/types/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/types/core/schemas/builders/union/index.d.ts +4 -0
- package/types/core/schemas/builders/union/types.d.ts +13 -0
- package/types/core/schemas/builders/union/union.d.ts +4 -0
- package/types/core/schemas/index.d.ts +2 -0
- package/types/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/types/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/types/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/types/core/schemas/utils/entries.d.ts +1 -0
- package/types/core/schemas/utils/filterObject.d.ts +1 -0
- package/types/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/types/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/types/core/schemas/utils/keys.d.ts +1 -0
- package/types/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/types/core/schemas/utils/partition.d.ts +1 -0
- package/types/errors/RivetError.d.ts +12 -0
- package/types/errors/RivetTimeoutError.d.ts +6 -0
- package/types/errors/index.d.ts +2 -0
- package/types/index.d.ts +4 -0
- package/types/serialization/client/index.d.ts +1 -0
- package/types/serialization/client/requests/ActorsCreateRequest.d.ts +18 -0
- package/types/serialization/client/requests/ActorsGetOrCreateRequest.d.ts +18 -0
- package/types/serialization/client/requests/RunnerConfigsServerlessHealthCheckRequest.d.ts +13 -0
- package/types/serialization/client/requests/RunnerConfigsUpsertRequestBody.d.ts +13 -0
- package/types/serialization/client/requests/index.d.ts +4 -0
- package/types/serialization/index.d.ts +3 -0
- package/types/serialization/resources/index.d.ts +2 -0
- package/types/serialization/resources/namespaces/client/index.d.ts +1 -0
- package/types/serialization/resources/namespaces/client/requests/NamespacesCreateRequest.d.ts +13 -0
- package/types/serialization/resources/namespaces/client/requests/index.d.ts +1 -0
- package/types/serialization/resources/namespaces/index.d.ts +1 -0
- package/types/serialization/types/Actor.d.ts +26 -0
- package/types/serialization/types/ActorName.d.ts +12 -0
- package/types/serialization/types/ActorsCreateResponse.d.ts +13 -0
- package/types/serialization/types/ActorsDeleteResponse.d.ts +10 -0
- package/types/serialization/types/ActorsGetOrCreateResponse.d.ts +14 -0
- package/types/serialization/types/ActorsListNamesResponse.d.ts +15 -0
- package/types/serialization/types/ActorsListResponse.d.ts +15 -0
- package/types/serialization/types/CrashPolicy.d.ts +10 -0
- package/types/serialization/types/Datacenter.d.ts +14 -0
- package/types/serialization/types/DatacenterHealth.d.ts +19 -0
- package/types/serialization/types/DatacentersListResponse.d.ts +15 -0
- package/types/serialization/types/HealthFanoutResponse.d.ts +13 -0
- package/types/serialization/types/HealthResponse.d.ts +14 -0
- package/types/serialization/types/HealthStatus.d.ts +10 -0
- package/types/serialization/types/Namespace.d.ts +16 -0
- package/types/serialization/types/NamespaceListResponse.d.ts +15 -0
- package/types/serialization/types/NamespacesCreateResponse.d.ts +13 -0
- package/types/serialization/types/Pagination.d.ts +12 -0
- package/types/serialization/types/RivetId.d.ts +10 -0
- package/types/serialization/types/Runner.d.ts +27 -0
- package/types/serialization/types/RunnerConfig.d.ts +15 -0
- package/types/serialization/types/RunnerConfigKind.d.ts +12 -0
- package/types/serialization/types/RunnerConfigKindNormal.d.ts +12 -0
- package/types/serialization/types/RunnerConfigKindServerless.d.ts +13 -0
- package/types/serialization/types/RunnerConfigKindServerlessServerless.d.ts +18 -0
- package/types/serialization/types/RunnerConfigServerless.d.ts +18 -0
- package/types/serialization/types/RunnerConfigVariant.d.ts +10 -0
- package/types/serialization/types/RunnerConfigsDeleteResponse.d.ts +10 -0
- package/types/serialization/types/RunnerConfigsListResponse.d.ts +15 -0
- package/types/serialization/types/RunnerConfigsListResponseRunnerConfigsValue.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsRefreshMetadataRequestBody.d.ts +10 -0
- package/types/serialization/types/RunnerConfigsRefreshMetadataResponse.d.ts +10 -0
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponse.d.ts +12 -0
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailure.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseFailureFailure.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccess.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessHealthCheckResponseSuccessSuccess.d.ts +12 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataError.d.ts +16 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidRequest.d.ts +12 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidResponseJson.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidResponseJsonInvalidResponseJson.d.ts +12 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidResponseSchema.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorInvalidResponseSchemaInvalidResponseSchema.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorNonSuccessStatus.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorNonSuccessStatusNonSuccessStatus.d.ts +13 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorRequestFailed.d.ts +12 -0
- package/types/serialization/types/RunnerConfigsServerlessMetadataErrorRequestTimedOut.d.ts +12 -0
- package/types/serialization/types/RunnerConfigsUpsertResponse.d.ts +12 -0
- package/types/serialization/types/RunnersListNamesResponse.d.ts +14 -0
- package/types/serialization/types/RunnersListResponse.d.ts +15 -0
- package/types/serialization/types/index.d.ts +50 -0
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rivetkit/engine-api-full",
|
|
3
|
+
"version": "2.0.21",
|
|
4
|
+
"repository": "https://github.com/rivet-gg/rivet/tree/main/sdks/typescript",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist",
|
|
7
|
+
"types",
|
|
8
|
+
"core.d.ts",
|
|
9
|
+
"serialization.d.ts"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"node": "./dist/node/index.js",
|
|
14
|
+
"import": "./dist/browser/esm/index.js",
|
|
15
|
+
"require": "./dist/browser/cjs/index.js",
|
|
16
|
+
"default": "./dist/browser/cjs/index.js",
|
|
17
|
+
"types": "./types/index.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./core": {
|
|
20
|
+
"node": "./dist/node/core.js",
|
|
21
|
+
"import": "./dist/browser/esm/core.js",
|
|
22
|
+
"require": "./dist/browser/cjs/core.js",
|
|
23
|
+
"default": "./dist/browser/cjs/core.js",
|
|
24
|
+
"types": "./types/core/index.d.ts"
|
|
25
|
+
},
|
|
26
|
+
"./serialization": {
|
|
27
|
+
"node": "./dist/node/serialization.js",
|
|
28
|
+
"import": "./dist/browser/esm/serialization.js",
|
|
29
|
+
"require": "./dist/browser/cjs/serialization.js",
|
|
30
|
+
"default": "./dist/browser/cjs/serialization.js",
|
|
31
|
+
"types": "./types/serialization/index.d.ts"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"types": "./types/index.d.ts",
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"form-data": "^4.0.4",
|
|
37
|
+
"js-base64": "^3.7.8",
|
|
38
|
+
"node-fetch": "^2.7.0",
|
|
39
|
+
"qs": "^6.14.0",
|
|
40
|
+
"readable-stream": "^4.7.0",
|
|
41
|
+
"url-join": "^5.0.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "17.0.33",
|
|
45
|
+
"@types/node-fetch": "2.6.11",
|
|
46
|
+
"@types/qs": "6.9.8",
|
|
47
|
+
"@types/readable-stream": "^4.0.21",
|
|
48
|
+
"@types/url-join": "4.0.1",
|
|
49
|
+
"esbuild": "^0.19.12",
|
|
50
|
+
"prettier": "2.7.1",
|
|
51
|
+
"typescript": "5.8.2"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"compile": "tsc",
|
|
55
|
+
"bundle": "node build.js",
|
|
56
|
+
"build": "pnpm compile && pnpm bundle"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "./core";
|
|
5
|
+
import * as Rivet from "./api/index";
|
|
6
|
+
import { Datacenters } from "./api/resources/datacenters/client/Client";
|
|
7
|
+
import { Health } from "./api/resources/health/client/Client";
|
|
8
|
+
import { Namespaces } from "./api/resources/namespaces/client/Client";
|
|
9
|
+
import { Runners } from "./api/resources/runners/client/Client";
|
|
10
|
+
export declare namespace RivetClient {
|
|
11
|
+
interface Options {
|
|
12
|
+
environment: core.Supplier<string>;
|
|
13
|
+
/** Specify a custom URL to connect the client to. */
|
|
14
|
+
baseUrl?: core.Supplier<string>;
|
|
15
|
+
token: core.Supplier<core.BearerToken>;
|
|
16
|
+
fetcher?: core.FetchFunction;
|
|
17
|
+
}
|
|
18
|
+
interface RequestOptions {
|
|
19
|
+
/** The maximum time to wait for a response in seconds. */
|
|
20
|
+
timeoutInSeconds?: number;
|
|
21
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
22
|
+
maxRetries?: number;
|
|
23
|
+
/** A hook to abort the request. */
|
|
24
|
+
abortSignal?: AbortSignal;
|
|
25
|
+
/** Additional headers to include in the request. */
|
|
26
|
+
headers?: Record<string, string>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare class RivetClient {
|
|
30
|
+
protected readonly _options: RivetClient.Options;
|
|
31
|
+
protected _datacenters: Datacenters | undefined;
|
|
32
|
+
protected _health: Health | undefined;
|
|
33
|
+
protected _namespaces: Namespaces | undefined;
|
|
34
|
+
protected _runners: Runners | undefined;
|
|
35
|
+
constructor(_options: RivetClient.Options);
|
|
36
|
+
get datacenters(): Datacenters;
|
|
37
|
+
get health(): Health;
|
|
38
|
+
get namespaces(): Namespaces;
|
|
39
|
+
get runners(): Runners;
|
|
40
|
+
/**
|
|
41
|
+
* **If key is some & `include_destroyed` is false**
|
|
42
|
+
*
|
|
43
|
+
* 2 round trips:
|
|
44
|
+
*
|
|
45
|
+
* - namespace::ops::resolve_for_name_global
|
|
46
|
+
* - GET /actors (multiple DCs based on actor IDs)
|
|
47
|
+
*
|
|
48
|
+
* This path is optimized because we can read the actor IDs fro the key directly from Epoxy with
|
|
49
|
+
* stale consistency to determine which datacenter the actor lives in. Under most circumstances,
|
|
50
|
+
* this means we don't need to fan out to all datacenters (like normal list does).
|
|
51
|
+
*
|
|
52
|
+
* The reason `include_destroyed` has to be false is Epoxy only stores currently active actors. If
|
|
53
|
+
* `include_destroyed` is true, we show all previous iterations of actors with the same key.
|
|
54
|
+
*
|
|
55
|
+
* **Otherwise**
|
|
56
|
+
*
|
|
57
|
+
* 2 round trips:
|
|
58
|
+
*
|
|
59
|
+
* - namespace::ops::resolve_for_name_global
|
|
60
|
+
* - GET /actors (fanout)
|
|
61
|
+
*
|
|
62
|
+
* ## Optimized Alternative Routes
|
|
63
|
+
*
|
|
64
|
+
* @param {Rivet.ActorsListRequest} request
|
|
65
|
+
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.actorsList({
|
|
69
|
+
* namespace: "namespace"
|
|
70
|
+
* })
|
|
71
|
+
*/
|
|
72
|
+
actorsList(request: Rivet.ActorsListRequest, requestOptions?: RivetClient.RequestOptions): Promise<Rivet.ActorsListResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* **If actor is created in the current datacenter:**
|
|
75
|
+
*
|
|
76
|
+
* 2 round trips:
|
|
77
|
+
*
|
|
78
|
+
* - namespace::ops::resolve_for_name_global
|
|
79
|
+
* - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation)
|
|
80
|
+
*
|
|
81
|
+
* **If actor is created in a different datacenter:**
|
|
82
|
+
*
|
|
83
|
+
* 3 round trips:
|
|
84
|
+
*
|
|
85
|
+
* - namespace::ops::resolve_for_name_global
|
|
86
|
+
* - POST /actors to remote datacenter
|
|
87
|
+
* - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation)
|
|
88
|
+
*
|
|
89
|
+
* actor::get will always be in the same datacenter.
|
|
90
|
+
*
|
|
91
|
+
* @param {Rivet.ActorsCreateRequest} request
|
|
92
|
+
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* await client.actorsCreate({
|
|
96
|
+
* namespace: "namespace",
|
|
97
|
+
* crashPolicy: "restart",
|
|
98
|
+
* name: "name",
|
|
99
|
+
* runnerNameSelector: "runner_name_selector"
|
|
100
|
+
* })
|
|
101
|
+
*/
|
|
102
|
+
actorsCreate(request: Rivet.ActorsCreateRequest, requestOptions?: RivetClient.RequestOptions): Promise<Rivet.ActorsCreateResponse>;
|
|
103
|
+
/**
|
|
104
|
+
* **If actor exists**
|
|
105
|
+
*
|
|
106
|
+
* 2 round trips:
|
|
107
|
+
*
|
|
108
|
+
* - namespace::ops::resolve_for_name_global
|
|
109
|
+
* - GET /actors/{}
|
|
110
|
+
*
|
|
111
|
+
* **If actor does not exist and is created in the current datacenter:**
|
|
112
|
+
*
|
|
113
|
+
* 2 round trips:
|
|
114
|
+
*
|
|
115
|
+
* - namespace::ops::resolve_for_name_global
|
|
116
|
+
* - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation)
|
|
117
|
+
*
|
|
118
|
+
* **If actor does not exist and is created in a different datacenter:**
|
|
119
|
+
*
|
|
120
|
+
* 3 round trips:
|
|
121
|
+
*
|
|
122
|
+
* - namespace::ops::resolve_for_name_global
|
|
123
|
+
* - POST /actors to remote datacenter
|
|
124
|
+
* - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation)
|
|
125
|
+
*
|
|
126
|
+
* actor::get will always be in the same datacenter.
|
|
127
|
+
*
|
|
128
|
+
* ## Optimized Alternative Routes
|
|
129
|
+
*
|
|
130
|
+
* @param {Rivet.ActorsGetOrCreateRequest} request
|
|
131
|
+
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* await client.actorsGetOrCreate({
|
|
135
|
+
* namespace: "namespace",
|
|
136
|
+
* crashPolicy: "restart",
|
|
137
|
+
* key: "key",
|
|
138
|
+
* name: "name",
|
|
139
|
+
* runnerNameSelector: "runner_name_selector"
|
|
140
|
+
* })
|
|
141
|
+
*/
|
|
142
|
+
actorsGetOrCreate(request: Rivet.ActorsGetOrCreateRequest, requestOptions?: RivetClient.RequestOptions): Promise<Rivet.ActorsGetOrCreateResponse>;
|
|
143
|
+
/**
|
|
144
|
+
* 2 round trips:
|
|
145
|
+
*
|
|
146
|
+
* - GET /actors/names (fanout)
|
|
147
|
+
* - [api-peer] namespace::ops::resolve_for_name_global
|
|
148
|
+
*
|
|
149
|
+
* @param {Rivet.ActorsListNamesRequest} request
|
|
150
|
+
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* await client.actorsListNames({
|
|
154
|
+
* namespace: "namespace"
|
|
155
|
+
* })
|
|
156
|
+
*/
|
|
157
|
+
actorsListNames(request: Rivet.ActorsListNamesRequest, requestOptions?: RivetClient.RequestOptions): Promise<Rivet.ActorsListNamesResponse>;
|
|
158
|
+
/**
|
|
159
|
+
* 2 round trip:
|
|
160
|
+
*
|
|
161
|
+
* - DELETE /actors/{}
|
|
162
|
+
* - [api-peer] namespace::ops::resolve_for_name_global
|
|
163
|
+
*
|
|
164
|
+
* @param {Rivet.RivetId} actorId
|
|
165
|
+
* @param {Rivet.ActorsDeleteRequest} request
|
|
166
|
+
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* await client.actorsDelete("actor_id")
|
|
170
|
+
*/
|
|
171
|
+
actorsDelete(actorId: Rivet.RivetId, request?: Rivet.ActorsDeleteRequest, requestOptions?: RivetClient.RequestOptions): Promise<Rivet.ActorsDeleteResponse>;
|
|
172
|
+
/**
|
|
173
|
+
* @param {Rivet.RunnerConfigsListRequest} request
|
|
174
|
+
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* await client.runnerConfigsList({
|
|
178
|
+
* namespace: "namespace"
|
|
179
|
+
* })
|
|
180
|
+
*/
|
|
181
|
+
runnerConfigsList(request: Rivet.RunnerConfigsListRequest, requestOptions?: RivetClient.RequestOptions): Promise<Rivet.RunnerConfigsListResponse>;
|
|
182
|
+
/**
|
|
183
|
+
* @param {Rivet.RunnerConfigsServerlessHealthCheckRequest} request
|
|
184
|
+
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* await client.runnerConfigsServerlessHealthCheck({
|
|
188
|
+
* namespace: "namespace",
|
|
189
|
+
* url: "url"
|
|
190
|
+
* })
|
|
191
|
+
*/
|
|
192
|
+
runnerConfigsServerlessHealthCheck(request: Rivet.RunnerConfigsServerlessHealthCheckRequest, requestOptions?: RivetClient.RequestOptions): Promise<Rivet.RunnerConfigsServerlessHealthCheckResponse>;
|
|
193
|
+
/**
|
|
194
|
+
* @param {string} runnerName
|
|
195
|
+
* @param {Rivet.RunnerConfigsUpsertRequestBody} request
|
|
196
|
+
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* await client.runnerConfigsUpsert("runner_name", {
|
|
200
|
+
* namespace: "namespace",
|
|
201
|
+
* datacenters: {
|
|
202
|
+
* "key": {}
|
|
203
|
+
* }
|
|
204
|
+
* })
|
|
205
|
+
*/
|
|
206
|
+
runnerConfigsUpsert(runnerName: string, request: Rivet.RunnerConfigsUpsertRequestBody, requestOptions?: RivetClient.RequestOptions): Promise<Rivet.RunnerConfigsUpsertResponse>;
|
|
207
|
+
/**
|
|
208
|
+
* @param {string} runnerName
|
|
209
|
+
* @param {Rivet.RunnerConfigsDeleteRequest} request
|
|
210
|
+
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* await client.runnerConfigsDelete("runner_name", {
|
|
214
|
+
* namespace: "namespace"
|
|
215
|
+
* })
|
|
216
|
+
*/
|
|
217
|
+
runnerConfigsDelete(runnerName: string, request: Rivet.RunnerConfigsDeleteRequest, requestOptions?: RivetClient.RequestOptions): Promise<Rivet.RunnerConfigsDeleteResponse>;
|
|
218
|
+
/**
|
|
219
|
+
* @param {string} runnerName
|
|
220
|
+
* @param {Rivet.RunnerConfigsRefreshMetadataRequest} request
|
|
221
|
+
* @param {RivetClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* await client.runnerConfigsRefreshMetadata("runner_name", {
|
|
225
|
+
* namespace: "namespace",
|
|
226
|
+
* body: {
|
|
227
|
+
* "key": "value"
|
|
228
|
+
* }
|
|
229
|
+
* })
|
|
230
|
+
*/
|
|
231
|
+
runnerConfigsRefreshMetadata(runnerName: string, request: Rivet.RunnerConfigsRefreshMetadataRequest, requestOptions?: RivetClient.RequestOptions): Promise<Rivet.RunnerConfigsRefreshMetadataResponse>;
|
|
232
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
233
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Rivet from "../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* namespace: "namespace",
|
|
9
|
+
* crashPolicy: "restart",
|
|
10
|
+
* name: "name",
|
|
11
|
+
* runnerNameSelector: "runner_name_selector"
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface ActorsCreateRequest {
|
|
15
|
+
namespace: string;
|
|
16
|
+
crashPolicy: Rivet.CrashPolicy;
|
|
17
|
+
datacenter?: string;
|
|
18
|
+
input?: string;
|
|
19
|
+
key?: string;
|
|
20
|
+
name: string;
|
|
21
|
+
runnerNameSelector: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Rivet from "../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* namespace: "namespace",
|
|
9
|
+
* crashPolicy: "restart",
|
|
10
|
+
* key: "key",
|
|
11
|
+
* name: "name",
|
|
12
|
+
* runnerNameSelector: "runner_name_selector"
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface ActorsGetOrCreateRequest {
|
|
16
|
+
namespace: string;
|
|
17
|
+
crashPolicy: Rivet.CrashPolicy;
|
|
18
|
+
datacenter?: string;
|
|
19
|
+
input?: string;
|
|
20
|
+
key: string;
|
|
21
|
+
name: string;
|
|
22
|
+
runnerNameSelector: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* namespace: "namespace"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface ActorsListRequest {
|
|
11
|
+
namespace: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
key?: string;
|
|
14
|
+
actorIds?: string;
|
|
15
|
+
includeDestroyed?: boolean;
|
|
16
|
+
limit?: number;
|
|
17
|
+
cursor?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Rivet from "../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* namespace: "namespace"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface RunnerConfigsListRequest {
|
|
12
|
+
namespace: string;
|
|
13
|
+
limit?: number;
|
|
14
|
+
cursor?: string;
|
|
15
|
+
variant?: Rivet.RunnerConfigVariant;
|
|
16
|
+
runnerNames?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Rivet from "../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* namespace: "namespace",
|
|
9
|
+
* body: {
|
|
10
|
+
* "key": "value"
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface RunnerConfigsRefreshMetadataRequest {
|
|
15
|
+
namespace: string;
|
|
16
|
+
body: Rivet.RunnerConfigsRefreshMetadataRequestBody;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* namespace: "namespace",
|
|
8
|
+
* url: "url"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface RunnerConfigsServerlessHealthCheckRequest {
|
|
12
|
+
namespace: string;
|
|
13
|
+
headers?: Record<string, string>;
|
|
14
|
+
url: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Rivet from "../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* namespace: "namespace",
|
|
9
|
+
* datacenters: {
|
|
10
|
+
* "key": {}
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
*/
|
|
14
|
+
export interface RunnerConfigsUpsertRequestBody {
|
|
15
|
+
namespace: string;
|
|
16
|
+
datacenters: Record<string, Rivet.RunnerConfig>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { type ActorsListRequest } from "./ActorsListRequest";
|
|
2
|
+
export { type ActorsCreateRequest } from "./ActorsCreateRequest";
|
|
3
|
+
export { type ActorsGetOrCreateRequest } from "./ActorsGetOrCreateRequest";
|
|
4
|
+
export { type ActorsListNamesRequest } from "./ActorsListNamesRequest";
|
|
5
|
+
export { type ActorsDeleteRequest } from "./ActorsDeleteRequest";
|
|
6
|
+
export { type RunnerConfigsListRequest } from "./RunnerConfigsListRequest";
|
|
7
|
+
export { type RunnerConfigsServerlessHealthCheckRequest } from "./RunnerConfigsServerlessHealthCheckRequest";
|
|
8
|
+
export { type RunnerConfigsUpsertRequestBody } from "./RunnerConfigsUpsertRequestBody";
|
|
9
|
+
export { type RunnerConfigsDeleteRequest } from "./RunnerConfigsDeleteRequest";
|
|
10
|
+
export { type RunnerConfigsRefreshMetadataRequest } from "./RunnerConfigsRefreshMetadataRequest";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import * as Rivet from "../../../index";
|
|
6
|
+
export declare namespace Datacenters {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: core.Supplier<string>;
|
|
9
|
+
/** Specify a custom URL to connect the client to. */
|
|
10
|
+
baseUrl?: core.Supplier<string>;
|
|
11
|
+
token: core.Supplier<core.BearerToken>;
|
|
12
|
+
fetcher?: core.FetchFunction;
|
|
13
|
+
}
|
|
14
|
+
interface RequestOptions {
|
|
15
|
+
/** The maximum time to wait for a response in seconds. */
|
|
16
|
+
timeoutInSeconds?: number;
|
|
17
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
18
|
+
maxRetries?: number;
|
|
19
|
+
/** A hook to abort the request. */
|
|
20
|
+
abortSignal?: AbortSignal;
|
|
21
|
+
/** Additional headers to include in the request. */
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare class Datacenters {
|
|
26
|
+
protected readonly _options: Datacenters.Options;
|
|
27
|
+
constructor(_options: Datacenters.Options);
|
|
28
|
+
/**
|
|
29
|
+
* @param {Datacenters.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.datacenters.list()
|
|
33
|
+
*/
|
|
34
|
+
list(requestOptions?: Datacenters.RequestOptions): Promise<Rivet.DatacentersListResponse>;
|
|
35
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import * as Rivet from "../../../index";
|
|
6
|
+
export declare namespace Health {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: core.Supplier<string>;
|
|
9
|
+
/** Specify a custom URL to connect the client to. */
|
|
10
|
+
baseUrl?: core.Supplier<string>;
|
|
11
|
+
token: core.Supplier<core.BearerToken>;
|
|
12
|
+
fetcher?: core.FetchFunction;
|
|
13
|
+
}
|
|
14
|
+
interface RequestOptions {
|
|
15
|
+
/** The maximum time to wait for a response in seconds. */
|
|
16
|
+
timeoutInSeconds?: number;
|
|
17
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
18
|
+
maxRetries?: number;
|
|
19
|
+
/** A hook to abort the request. */
|
|
20
|
+
abortSignal?: AbortSignal;
|
|
21
|
+
/** Additional headers to include in the request. */
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare class Health {
|
|
26
|
+
protected readonly _options: Health.Options;
|
|
27
|
+
constructor(_options: Health.Options);
|
|
28
|
+
/**
|
|
29
|
+
* @param {Health.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.health.fanout()
|
|
33
|
+
*/
|
|
34
|
+
fanout(requestOptions?: Health.RequestOptions): Promise<Rivet.HealthFanoutResponse>;
|
|
35
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import * as Rivet from "../../../index";
|
|
6
|
+
export declare namespace Namespaces {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: core.Supplier<string>;
|
|
9
|
+
/** Specify a custom URL to connect the client to. */
|
|
10
|
+
baseUrl?: core.Supplier<string>;
|
|
11
|
+
token: core.Supplier<core.BearerToken>;
|
|
12
|
+
fetcher?: core.FetchFunction;
|
|
13
|
+
}
|
|
14
|
+
interface RequestOptions {
|
|
15
|
+
/** The maximum time to wait for a response in seconds. */
|
|
16
|
+
timeoutInSeconds?: number;
|
|
17
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
18
|
+
maxRetries?: number;
|
|
19
|
+
/** A hook to abort the request. */
|
|
20
|
+
abortSignal?: AbortSignal;
|
|
21
|
+
/** Additional headers to include in the request. */
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare class Namespaces {
|
|
26
|
+
protected readonly _options: Namespaces.Options;
|
|
27
|
+
constructor(_options: Namespaces.Options);
|
|
28
|
+
/**
|
|
29
|
+
* @param {Rivet.NamespacesListRequest} request
|
|
30
|
+
* @param {Namespaces.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* await client.namespaces.list()
|
|
34
|
+
*/
|
|
35
|
+
list(request?: Rivet.NamespacesListRequest, requestOptions?: Namespaces.RequestOptions): Promise<Rivet.NamespaceListResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* @param {Rivet.NamespacesCreateRequest} request
|
|
38
|
+
* @param {Namespaces.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* await client.namespaces.create({
|
|
42
|
+
* displayName: "display_name",
|
|
43
|
+
* name: "name"
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
create(request: Rivet.NamespacesCreateRequest, requestOptions?: Namespaces.RequestOptions): Promise<Rivet.NamespacesCreateResponse>;
|
|
47
|
+
protected _getAuthorizationHeader(): Promise<string>;
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* displayName: "display_name",
|
|
8
|
+
* name: "name"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface NamespacesCreateRequest {
|
|
12
|
+
displayName: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|