@sandbox-kit/contracts 0.0.0-stage → 0.1.1
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 +21 -0
- package/README.md +18 -2
- package/dist/buf/validate/validate_pb.d.ts +4833 -0
- package/dist/buf/validate/validate_pb.js +356 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/kit/codegen/v1/options_pb.d.ts +139 -0
- package/dist/kit/codegen/v1/options_pb.js +39 -0
- package/dist/kit/sandbox/v1/client_pb.d.ts +231 -0
- package/dist/kit/sandbox/v1/client_pb.js +45 -0
- package/dist/kit/sandbox/v1/sandbox_pb.d.ts +1552 -0
- package/dist/kit/sandbox/v1/sandbox_pb.js +610 -0
- package/dist/sandbox.d.ts +2 -0
- package/dist/sandbox.js +2 -0
- package/package.json +54 -4
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import type { GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { FileOptions, MethodOptions } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file kit/codegen/v1/options.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_kit_codegen_v1_options: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* ClientDeclaration describes a local SDK client, not an RPC service.
|
|
10
|
+
* These annotations are build-time metadata; SDK clients and credentials are
|
|
11
|
+
* ordinary language objects and are never serialized into these messages.
|
|
12
|
+
*
|
|
13
|
+
* @generated from message kit.codegen.v1.ClientDeclaration
|
|
14
|
+
*/
|
|
15
|
+
export type ClientDeclaration = Message<"kit.codegen.v1.ClientDeclaration"> & {
|
|
16
|
+
/**
|
|
17
|
+
* The protobuf service that defines the complete local SDK surface.
|
|
18
|
+
* Despite being expressed as a protobuf service, this is a descriptor input
|
|
19
|
+
* for native SDK generation; Kit does not deploy a gRPC endpoint.
|
|
20
|
+
*
|
|
21
|
+
* @generated from field: string creation_service = 1;
|
|
22
|
+
*/
|
|
23
|
+
creationService: string;
|
|
24
|
+
/**
|
|
25
|
+
* Native initialization settings; runtime provider factories are attached by emitters.
|
|
26
|
+
*
|
|
27
|
+
* @generated from field: string config_message = 2;
|
|
28
|
+
*/
|
|
29
|
+
configMessage: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message kit.codegen.v1.ClientDeclaration.
|
|
33
|
+
* Use `create(ClientDeclarationSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
export declare const ClientDeclarationSchema: GenMessage<ClientDeclaration>;
|
|
36
|
+
/**
|
|
37
|
+
* OperationDeclaration binds a unary service method to the generated native
|
|
38
|
+
* SDK surface. It deliberately describes behavior, never target-language
|
|
39
|
+
* syntax: language emitters choose receiver and interface conventions.
|
|
40
|
+
*
|
|
41
|
+
* @generated from message kit.codegen.v1.OperationDeclaration
|
|
42
|
+
*/
|
|
43
|
+
export type OperationDeclaration = Message<"kit.codegen.v1.OperationDeclaration"> & {
|
|
44
|
+
/**
|
|
45
|
+
* Stable portable operation identity, for example "start".
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: string id = 1;
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
* Capability enum suffix, for example "start" or "refresh".
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: string capability = 2;
|
|
54
|
+
*/
|
|
55
|
+
capability: string;
|
|
56
|
+
/**
|
|
57
|
+
* True when the native method belongs on a Sandbox handle. False means the
|
|
58
|
+
* method belongs on Client (for example create, get, or attach).
|
|
59
|
+
*
|
|
60
|
+
* @generated from field: bool handle = 3;
|
|
61
|
+
*/
|
|
62
|
+
handle: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Existing option message passed to a handle operation, when any.
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: string options_message = 4;
|
|
67
|
+
*/
|
|
68
|
+
optionsMessage: string;
|
|
69
|
+
/**
|
|
70
|
+
* "update_handle" replaces handle metadata; "exit_result" returns an
|
|
71
|
+
* execution result; "create_handle" returns a newly created handle.
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: string outcome = 5;
|
|
74
|
+
*/
|
|
75
|
+
outcome: string;
|
|
76
|
+
/**
|
|
77
|
+
* Normalized terminal state after a successful operation, when any.
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: string terminal_state = 6;
|
|
80
|
+
*/
|
|
81
|
+
terminalState: string;
|
|
82
|
+
/**
|
|
83
|
+
* Whether timeout is obtained from the option message before Config.Timeout.
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: bool timeout = 7;
|
|
86
|
+
*/
|
|
87
|
+
timeout: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Generated adapter capability interface identifier. This is a portable
|
|
90
|
+
* generator symbol, not a target-language type name.
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: string adapter_interface = 8;
|
|
93
|
+
*/
|
|
94
|
+
adapterInterface: string;
|
|
95
|
+
/**
|
|
96
|
+
* Generated adapter method identifier. This is a portable generator symbol,
|
|
97
|
+
* not a target-language member spelling.
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: string adapter_method = 9;
|
|
100
|
+
*/
|
|
101
|
+
adapterMethod: string;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Describes the message kit.codegen.v1.OperationDeclaration.
|
|
105
|
+
* Use `create(OperationDeclarationSchema)` to create a new message.
|
|
106
|
+
*/
|
|
107
|
+
export declare const OperationDeclarationSchema: GenMessage<OperationDeclaration>;
|
|
108
|
+
/**
|
|
109
|
+
* ProviderDeclaration identifies a provider integration entrypoint.
|
|
110
|
+
* Native SDK import paths and client types live in specs/providers/*.yaml.
|
|
111
|
+
*
|
|
112
|
+
* @generated from message kit.codegen.v1.ProviderDeclaration
|
|
113
|
+
*/
|
|
114
|
+
export type ProviderDeclaration = Message<"kit.codegen.v1.ProviderDeclaration"> & {
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: string provider_name = 1;
|
|
117
|
+
*/
|
|
118
|
+
providerName: string;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Describes the message kit.codegen.v1.ProviderDeclaration.
|
|
122
|
+
* Use `create(ProviderDeclarationSchema)` to create a new message.
|
|
123
|
+
*/
|
|
124
|
+
export declare const ProviderDeclarationSchema: GenMessage<ProviderDeclaration>;
|
|
125
|
+
/**
|
|
126
|
+
* @generated from extension: kit.codegen.v1.ClientDeclaration client = 51000;
|
|
127
|
+
*/
|
|
128
|
+
export declare const client: GenExtension<FileOptions, ClientDeclaration>;
|
|
129
|
+
/**
|
|
130
|
+
* @generated from extension: kit.codegen.v1.ProviderDeclaration provider = 51001;
|
|
131
|
+
*/
|
|
132
|
+
export declare const provider: GenExtension<FileOptions, ProviderDeclaration>;
|
|
133
|
+
/**
|
|
134
|
+
* Native SDK operation metadata. Public Client/Sandbox methods are handwritten;
|
|
135
|
+
* these annotations still describe the portable operation graph on SandboxService.
|
|
136
|
+
*
|
|
137
|
+
* @generated from extension: kit.codegen.v1.OperationDeclaration operation = 51002;
|
|
138
|
+
*/
|
|
139
|
+
export declare const operation: GenExtension<MethodOptions, OperationDeclaration>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts,import_extension=js,map_imports=buf/validate/:@bufbuild/protovalidate/gen"
|
|
2
|
+
// @generated from file kit/codegen/v1/options.proto (package kit.codegen.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file kit/codegen/v1/options.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_kit_codegen_v1_options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ientDeclaration.
|
|
12
|
+
* Use `create(ClientDeclarationSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const ClientDeclarationSchema = /*@__PURE__*/ messageDesc(file_kit_codegen_v1_options, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message kit.codegen.v1.OperationDeclaration.
|
|
17
|
+
* Use `create(OperationDeclarationSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const OperationDeclarationSchema = /*@__PURE__*/ messageDesc(file_kit_codegen_v1_options, 1);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message kit.codegen.v1.ProviderDeclaration.
|
|
22
|
+
* Use `create(ProviderDeclarationSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const ProviderDeclarationSchema = /*@__PURE__*/ messageDesc(file_kit_codegen_v1_options, 2);
|
|
25
|
+
/**
|
|
26
|
+
* @generated from extension: kit.codegen.v1.ClientDeclaration client = 51000;
|
|
27
|
+
*/
|
|
28
|
+
export const client = /*@__PURE__*/ extDesc(file_kit_codegen_v1_options, 0);
|
|
29
|
+
/**
|
|
30
|
+
* @generated from extension: kit.codegen.v1.ProviderDeclaration provider = 51001;
|
|
31
|
+
*/
|
|
32
|
+
export const provider = /*@__PURE__*/ extDesc(file_kit_codegen_v1_options, 1);
|
|
33
|
+
/**
|
|
34
|
+
* Native SDK operation metadata. Public Client/Sandbox methods are handwritten;
|
|
35
|
+
* these annotations still describe the portable operation graph on SandboxService.
|
|
36
|
+
*
|
|
37
|
+
* @generated from extension: kit.codegen.v1.OperationDeclaration operation = 51002;
|
|
38
|
+
*/
|
|
39
|
+
export const operation = /*@__PURE__*/ extDesc(file_kit_codegen_v1_options, 2);
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Duration } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file kit/sandbox/v1/client.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_kit_sandbox_v1_client: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* Shared client configuration. Provider selection is a language SDK concern and
|
|
10
|
+
* is not part of this portable message.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message kit.sandbox.v1.Config
|
|
13
|
+
*/
|
|
14
|
+
export type Config = Message<"kit.sandbox.v1.Config"> & {
|
|
15
|
+
/**
|
|
16
|
+
* is one credential alternative. Nil lets the native SDK resolve its own environment or profile.
|
|
17
|
+
*
|
|
18
|
+
* @generated from field: kit.sandbox.v1.AuthConfig auth = 1;
|
|
19
|
+
*/
|
|
20
|
+
auth?: AuthConfig | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* is the provider API URL where the integration supports an override.
|
|
23
|
+
* HTTPS is required except for loopback HTTP; that secure_endpoint check stays handwritten.
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: optional string endpoint = 2;
|
|
26
|
+
*/
|
|
27
|
+
endpoint?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* is a region or target preference.
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: optional string region = 3;
|
|
32
|
+
*/
|
|
33
|
+
region?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* is the app, environment, organization, or project scope. JSON name is "context".
|
|
36
|
+
*
|
|
37
|
+
* @generated from field: kit.sandbox.v1.Scope scope = 4 [json_name = "context"];
|
|
38
|
+
*/
|
|
39
|
+
scope?: Scope | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* is the default Kit operation deadline. An explicit creation timeout overrides it.
|
|
42
|
+
* Nil and explicit zero add no Kit deadline.
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: google.protobuf.Duration timeout = 5;
|
|
45
|
+
*/
|
|
46
|
+
timeout?: Duration | undefined;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Describes the message kit.sandbox.v1.Config.
|
|
50
|
+
* Use `create(ConfigSchema)` to create a new message.
|
|
51
|
+
*/
|
|
52
|
+
export declare const ConfigSchema: GenMessage<Config>;
|
|
53
|
+
/**
|
|
54
|
+
* holds exactly one credential alternative. When AuthConfig itself is set, one
|
|
55
|
+
* credential alternative is required. Omitting Config.auth still lets the
|
|
56
|
+
* provider SDK resolve credentials from the environment or a profile.
|
|
57
|
+
*
|
|
58
|
+
* @generated from message kit.sandbox.v1.AuthConfig
|
|
59
|
+
*/
|
|
60
|
+
export type AuthConfig = Message<"kit.sandbox.v1.AuthConfig"> & {
|
|
61
|
+
/**
|
|
62
|
+
* is the selected credential.
|
|
63
|
+
*
|
|
64
|
+
* @generated from oneof kit.sandbox.v1.AuthConfig.credentials
|
|
65
|
+
*/
|
|
66
|
+
credentials: {
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: kit.sandbox.v1.APIKeyCredentials api_key = 1;
|
|
69
|
+
*/
|
|
70
|
+
value: APIKeyCredentials;
|
|
71
|
+
case: "apiKey";
|
|
72
|
+
} | {
|
|
73
|
+
/**
|
|
74
|
+
* @generated from field: kit.sandbox.v1.TokenPairCredentials token_pair = 2;
|
|
75
|
+
*/
|
|
76
|
+
value: TokenPairCredentials;
|
|
77
|
+
case: "tokenPair";
|
|
78
|
+
} | {
|
|
79
|
+
/**
|
|
80
|
+
* @generated from field: kit.sandbox.v1.BearerTokenCredentials bearer_token = 3;
|
|
81
|
+
*/
|
|
82
|
+
value: BearerTokenCredentials;
|
|
83
|
+
case: "bearerToken";
|
|
84
|
+
} | {
|
|
85
|
+
/**
|
|
86
|
+
* @generated from field: kit.sandbox.v1.OAuthCredentials oauth_refresh = 4;
|
|
87
|
+
*/
|
|
88
|
+
value: OAuthCredentials;
|
|
89
|
+
case: "oauthRefresh";
|
|
90
|
+
} | {
|
|
91
|
+
case: undefined;
|
|
92
|
+
value?: undefined;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Describes the message kit.sandbox.v1.AuthConfig.
|
|
97
|
+
* Use `create(AuthConfigSchema)` to create a new message.
|
|
98
|
+
*/
|
|
99
|
+
export declare const AuthConfigSchema: GenMessage<AuthConfig>;
|
|
100
|
+
/**
|
|
101
|
+
* is an API-key credential. Daytona uses Key.
|
|
102
|
+
*
|
|
103
|
+
* @generated from message kit.sandbox.v1.APIKeyCredentials
|
|
104
|
+
*/
|
|
105
|
+
export type APIKeyCredentials = Message<"kit.sandbox.v1.APIKeyCredentials"> & {
|
|
106
|
+
/**
|
|
107
|
+
* is the secret API key. It is excluded from generated JSON.
|
|
108
|
+
*
|
|
109
|
+
* @generated from field: string key = 1;
|
|
110
|
+
*/
|
|
111
|
+
key: string;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Describes the message kit.sandbox.v1.APIKeyCredentials.
|
|
115
|
+
* Use `create(APIKeyCredentialsSchema)` to create a new message.
|
|
116
|
+
*/
|
|
117
|
+
export declare const APIKeyCredentialsSchema: GenMessage<APIKeyCredentials>;
|
|
118
|
+
/**
|
|
119
|
+
* is a token-id and token-secret pair. Modal uses both fields.
|
|
120
|
+
*
|
|
121
|
+
* @generated from message kit.sandbox.v1.TokenPairCredentials
|
|
122
|
+
*/
|
|
123
|
+
export type TokenPairCredentials = Message<"kit.sandbox.v1.TokenPairCredentials"> & {
|
|
124
|
+
/**
|
|
125
|
+
* is the token identifier.
|
|
126
|
+
*
|
|
127
|
+
* @generated from field: string id = 1;
|
|
128
|
+
*/
|
|
129
|
+
id: string;
|
|
130
|
+
/**
|
|
131
|
+
* is the token secret. It is excluded from generated JSON.
|
|
132
|
+
*
|
|
133
|
+
* @generated from field: string secret = 2;
|
|
134
|
+
*/
|
|
135
|
+
secret: string;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Describes the message kit.sandbox.v1.TokenPairCredentials.
|
|
139
|
+
* Use `create(TokenPairCredentialsSchema)` to create a new message.
|
|
140
|
+
*/
|
|
141
|
+
export declare const TokenPairCredentialsSchema: GenMessage<TokenPairCredentials>;
|
|
142
|
+
/**
|
|
143
|
+
* is a bearer or JWT credential. Daytona also requires an organization.
|
|
144
|
+
*
|
|
145
|
+
* @generated from message kit.sandbox.v1.BearerTokenCredentials
|
|
146
|
+
*/
|
|
147
|
+
export type BearerTokenCredentials = Message<"kit.sandbox.v1.BearerTokenCredentials"> & {
|
|
148
|
+
/**
|
|
149
|
+
* is the bearer token. It is excluded from generated JSON.
|
|
150
|
+
*
|
|
151
|
+
* @generated from field: string token = 1;
|
|
152
|
+
*/
|
|
153
|
+
token: string;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Describes the message kit.sandbox.v1.BearerTokenCredentials.
|
|
157
|
+
* Use `create(BearerTokenCredentialsSchema)` to create a new message.
|
|
158
|
+
*/
|
|
159
|
+
export declare const BearerTokenCredentialsSchema: GenMessage<BearerTokenCredentials>;
|
|
160
|
+
/**
|
|
161
|
+
* is an OAuth refresh credential. Supply ClientID and exactly one of ClientSecret or JWTKey.
|
|
162
|
+
*
|
|
163
|
+
* @generated from message kit.sandbox.v1.OAuthCredentials
|
|
164
|
+
*/
|
|
165
|
+
export type OAuthCredentials = Message<"kit.sandbox.v1.OAuthCredentials"> & {
|
|
166
|
+
/**
|
|
167
|
+
* is the refresh token. It is excluded from generated JSON.
|
|
168
|
+
*
|
|
169
|
+
* @generated from field: string refresh_token = 1;
|
|
170
|
+
*/
|
|
171
|
+
refreshToken: string;
|
|
172
|
+
/**
|
|
173
|
+
* is the OAuth client identifier.
|
|
174
|
+
*
|
|
175
|
+
* @generated from field: string client_id = 2;
|
|
176
|
+
*/
|
|
177
|
+
clientId: string;
|
|
178
|
+
/**
|
|
179
|
+
* is one client secret. Do not set this together with JWTKey.
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: optional string client_secret = 3;
|
|
182
|
+
*/
|
|
183
|
+
clientSecret?: string | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* is one JWT signing key. Do not set this together with ClientSecret.
|
|
186
|
+
*
|
|
187
|
+
* @generated from field: optional string jwt_key = 4;
|
|
188
|
+
*/
|
|
189
|
+
jwtKey?: string | undefined;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Describes the message kit.sandbox.v1.OAuthCredentials.
|
|
193
|
+
* Use `create(OAuthCredentialsSchema)` to create a new message.
|
|
194
|
+
*/
|
|
195
|
+
export declare const OAuthCredentialsSchema: GenMessage<OAuthCredentials>;
|
|
196
|
+
/**
|
|
197
|
+
* names the provider scope. Each provider accepts a subset of these fields.
|
|
198
|
+
*
|
|
199
|
+
* @generated from message kit.sandbox.v1.Scope
|
|
200
|
+
*/
|
|
201
|
+
export type Scope = Message<"kit.sandbox.v1.Scope"> & {
|
|
202
|
+
/**
|
|
203
|
+
* is the Modal app name. The app must already exist.
|
|
204
|
+
*
|
|
205
|
+
* @generated from field: optional string app_name = 1;
|
|
206
|
+
*/
|
|
207
|
+
appName?: string | undefined;
|
|
208
|
+
/**
|
|
209
|
+
* is the Modal environment. The example default is "main".
|
|
210
|
+
*
|
|
211
|
+
* @generated from field: optional string environment = 2;
|
|
212
|
+
*/
|
|
213
|
+
environment?: string | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* is the Daytona organization. Bearer auth requires it when the SDK cannot resolve one.
|
|
216
|
+
*
|
|
217
|
+
* @generated from field: optional string organization_id = 3;
|
|
218
|
+
*/
|
|
219
|
+
organizationId?: string | undefined;
|
|
220
|
+
/**
|
|
221
|
+
* is reserved for providers that scope work to a project. Current providers reject it when supplied.
|
|
222
|
+
*
|
|
223
|
+
* @generated from field: optional string project_id = 4;
|
|
224
|
+
*/
|
|
225
|
+
projectId?: string | undefined;
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Describes the message kit.sandbox.v1.Scope.
|
|
229
|
+
* Use `create(ScopeSchema)` to create a new message.
|
|
230
|
+
*/
|
|
231
|
+
export declare const ScopeSchema: GenMessage<Scope>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts,import_extension=js,map_imports=buf/validate/:@bufbuild/protovalidate/gen"
|
|
2
|
+
// @generated from file kit/sandbox/v1/client.proto (package kit.sandbox.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_buf_validate_validate } from "@bufbuild/protovalidate/gen/buf/validate/validate_pb.js";
|
|
6
|
+
import { file_google_protobuf_duration } from "@bufbuild/protobuf/wkt";
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file kit/sandbox/v1/client.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_kit_sandbox_v1_client = /*@__PURE__*/ fileDesc("ChtraXQvc2FuZGJveC92MS9jbGllbnQucHJvdG8SDmtpdC5zYW5kYm94LnYxIssCCgZDb25maWcSKAoEYXV0aBgBIAEoCzIaLmtpdC5zYW5kYm94LnYxLkF1dGhDb25maWcSTQoIZW5kcG9pbnQYAiABKAlCNrpIM7oBMAoIbm9uYmxhbmsSEW11c3Qgbm90IGJlIGJsYW5rGhF0aGlzLnRyaW0oKSAhPSAnJ0gAiAEBEksKBnJlZ2lvbhgDIAEoCUI2ukgzugEwCghub25ibGFuaxIRbXVzdCBub3QgYmUgYmxhbmsaEXRoaXMudHJpbSgpICE9ICcnSAGIAQESLQoFc2NvcGUYBCABKAsyFS5raXQuc2FuZGJveC52MS5TY29wZVIHY29udGV4dBI0Cgd0aW1lb3V0GAUgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uQgi6SAWqAQIyAEILCglfZW5kcG9pbnRCCQoHX3JlZ2lvbiLCAwoKQXV0aENvbmZpZxI0CgdhcGlfa2V5GAEgASgLMiEua2l0LnNhbmRib3gudjEuQVBJS2V5Q3JlZGVudGlhbHNIABI6Cgp0b2tlbl9wYWlyGAIgASgLMiQua2l0LnNhbmRib3gudjEuVG9rZW5QYWlyQ3JlZGVudGlhbHNIABI+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zM", [file_buf_validate_validate, file_google_protobuf_duration]);
|
|
11
|
+
/**
|
|
12
|
+
* Describes the message kit.sandbox.v1.Config.
|
|
13
|
+
* Use `create(ConfigSchema)` to create a new message.
|
|
14
|
+
*/
|
|
15
|
+
export const ConfigSchema = /*@__PURE__*/ messageDesc(file_kit_sandbox_v1_client, 0);
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message kit.sandbox.v1.AuthConfig.
|
|
18
|
+
* Use `create(AuthConfigSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export const AuthConfigSchema = /*@__PURE__*/ messageDesc(file_kit_sandbox_v1_client, 1);
|
|
21
|
+
/**
|
|
22
|
+
* Describes the message kit.sandbox.v1.APIKeyCredentials.
|
|
23
|
+
* Use `create(APIKeyCredentialsSchema)` to create a new message.
|
|
24
|
+
*/
|
|
25
|
+
export const APIKeyCredentialsSchema = /*@__PURE__*/ messageDesc(file_kit_sandbox_v1_client, 2);
|
|
26
|
+
/**
|
|
27
|
+
* Describes the message kit.sandbox.v1.TokenPairCredentials.
|
|
28
|
+
* Use `create(TokenPairCredentialsSchema)` to create a new message.
|
|
29
|
+
*/
|
|
30
|
+
export const TokenPairCredentialsSchema = /*@__PURE__*/ messageDesc(file_kit_sandbox_v1_client, 3);
|
|
31
|
+
/**
|
|
32
|
+
* Describes the message kit.sandbox.v1.BearerTokenCredentials.
|
|
33
|
+
* Use `create(BearerTokenCredentialsSchema)` to create a new message.
|
|
34
|
+
*/
|
|
35
|
+
export const BearerTokenCredentialsSchema = /*@__PURE__*/ messageDesc(file_kit_sandbox_v1_client, 4);
|
|
36
|
+
/**
|
|
37
|
+
* Describes the message kit.sandbox.v1.OAuthCredentials.
|
|
38
|
+
* Use `create(OAuthCredentialsSchema)` to create a new message.
|
|
39
|
+
*/
|
|
40
|
+
export const OAuthCredentialsSchema = /*@__PURE__*/ messageDesc(file_kit_sandbox_v1_client, 5);
|
|
41
|
+
/**
|
|
42
|
+
* Describes the message kit.sandbox.v1.Scope.
|
|
43
|
+
* Use `create(ScopeSchema)` to create a new message.
|
|
44
|
+
*/
|
|
45
|
+
export const ScopeSchema = /*@__PURE__*/ messageDesc(file_kit_sandbox_v1_client, 6);
|