@toshicloud/sdk 0.0.0-stage → 0.2.0
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 +202 -0
- package/README.md +201 -2
- package/dist/client.d.ts +78 -0
- package/dist/client.js +42 -0
- package/dist/errors.d.ts +20 -0
- package/dist/errors.js +55 -0
- package/dist/execute.d.ts +6 -0
- package/dist/execute.js +380 -0
- package/dist/gen/toshi/workspace/v1/artifacts_pb.d.ts +841 -0
- package/dist/gen/toshi/workspace/v1/artifacts_pb.js +96 -0
- package/dist/gen/toshi/workspace/v1/display_pb.d.ts +1142 -0
- package/dist/gen/toshi/workspace/v1/display_pb.js +214 -0
- package/dist/gen/toshi/workspace/v1/projects_pb.d.ts +1386 -0
- package/dist/gen/toshi/workspace/v1/projects_pb.js +207 -0
- package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +948 -0
- package/dist/gen/toshi/workspace/v1/recordings_pb.js +201 -0
- package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +1062 -0
- package/dist/gen/toshi/workspace/v1/secrets_pb.js +182 -0
- package/dist/gen/toshi/workspace/v1/volumes_pb.d.ts +406 -0
- package/dist/gen/toshi/workspace/v1/volumes_pb.js +107 -0
- package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +974 -0
- package/dist/gen/toshi/workspace/v1/webhook_pb.js +153 -0
- package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +6133 -0
- package/dist/gen/toshi/workspace/v1/workspace_pb.js +892 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +9 -0
- package/dist/interceptors.d.ts +10 -0
- package/dist/interceptors.js +159 -0
- package/dist/output.d.ts +6 -0
- package/dist/output.js +77 -0
- package/dist/retry.d.ts +42 -0
- package/dist/retry.js +213 -0
- package/dist/stream.d.ts +21 -0
- package/dist/stream.js +84 -0
- package/dist/wait.d.ts +8 -0
- package/dist/wait.js +29 -0
- package/dist/watch.d.ts +8 -0
- package/dist/watch.js +224 -0
- package/package.json +47 -4
|
@@ -0,0 +1,1062 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file toshi/workspace/v1/secrets.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_toshi_workspace_v1_secrets: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* SecretSet is a project's set: an environment's, or the shared one.
|
|
10
|
+
*
|
|
11
|
+
* @generated from message toshi.workspace.v1.SecretSet
|
|
12
|
+
*/
|
|
13
|
+
export type SecretSet = Message<"toshi.workspace.v1.SecretSet"> & {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from field: string project = 1;
|
|
16
|
+
*/
|
|
17
|
+
project: string;
|
|
18
|
+
/**
|
|
19
|
+
* Empty for the shared set.
|
|
20
|
+
*
|
|
21
|
+
* @generated from field: string environment = 2;
|
|
22
|
+
*/
|
|
23
|
+
environment: string;
|
|
24
|
+
/**
|
|
25
|
+
* @generated from field: bool shared = 3;
|
|
26
|
+
*/
|
|
27
|
+
shared: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
30
|
+
*/
|
|
31
|
+
createdAt?: Timestamp | undefined;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* SecretSet is a project's set: an environment's, or the shared one.
|
|
35
|
+
*
|
|
36
|
+
* @generated from message toshi.workspace.v1.SecretSet
|
|
37
|
+
*/
|
|
38
|
+
export type SecretSetJson = {
|
|
39
|
+
/**
|
|
40
|
+
* @generated from field: string project = 1;
|
|
41
|
+
*/
|
|
42
|
+
project?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Empty for the shared set.
|
|
45
|
+
*
|
|
46
|
+
* @generated from field: string environment = 2;
|
|
47
|
+
*/
|
|
48
|
+
environment?: string;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: bool shared = 3;
|
|
51
|
+
*/
|
|
52
|
+
shared?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
55
|
+
*/
|
|
56
|
+
createdAt?: TimestampJson;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Describes the message toshi.workspace.v1.SecretSet.
|
|
60
|
+
* Use `create(SecretSetSchema)` to create a new message.
|
|
61
|
+
*/
|
|
62
|
+
export declare const SecretSetSchema: GenMessage<SecretSet, {
|
|
63
|
+
jsonType: SecretSetJson;
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
* Secret is a key as anyone may see it: never its value.
|
|
67
|
+
*
|
|
68
|
+
* @generated from message toshi.workspace.v1.Secret
|
|
69
|
+
*/
|
|
70
|
+
export type Secret = Message<"toshi.workspace.v1.Secret"> & {
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: string name = 1;
|
|
73
|
+
*/
|
|
74
|
+
name: string;
|
|
75
|
+
/**
|
|
76
|
+
* The newest version, from 1.
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: int64 version = 2;
|
|
79
|
+
*/
|
|
80
|
+
version: bigint;
|
|
81
|
+
/**
|
|
82
|
+
* The newest version's size in bytes.
|
|
83
|
+
*
|
|
84
|
+
* @generated from field: int64 size = 3;
|
|
85
|
+
*/
|
|
86
|
+
size: bigint;
|
|
87
|
+
/**
|
|
88
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 4;
|
|
89
|
+
*/
|
|
90
|
+
updatedAt?: Timestamp | undefined;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Secret is a key as anyone may see it: never its value.
|
|
94
|
+
*
|
|
95
|
+
* @generated from message toshi.workspace.v1.Secret
|
|
96
|
+
*/
|
|
97
|
+
export type SecretJson = {
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: string name = 1;
|
|
100
|
+
*/
|
|
101
|
+
name?: string;
|
|
102
|
+
/**
|
|
103
|
+
* The newest version, from 1.
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: int64 version = 2;
|
|
106
|
+
*/
|
|
107
|
+
version?: string;
|
|
108
|
+
/**
|
|
109
|
+
* The newest version's size in bytes.
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: int64 size = 3;
|
|
112
|
+
*/
|
|
113
|
+
size?: string;
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 4;
|
|
116
|
+
*/
|
|
117
|
+
updatedAt?: TimestampJson;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Describes the message toshi.workspace.v1.Secret.
|
|
121
|
+
* Use `create(SecretSchema)` to create a new message.
|
|
122
|
+
*/
|
|
123
|
+
export declare const SecretSchema: GenMessage<Secret, {
|
|
124
|
+
jsonType: SecretJson;
|
|
125
|
+
}>;
|
|
126
|
+
/**
|
|
127
|
+
* SecretVersion is one stored version of a key, without its value.
|
|
128
|
+
*
|
|
129
|
+
* @generated from message toshi.workspace.v1.SecretVersion
|
|
130
|
+
*/
|
|
131
|
+
export type SecretVersion = Message<"toshi.workspace.v1.SecretVersion"> & {
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: int64 version = 1;
|
|
134
|
+
*/
|
|
135
|
+
version: bigint;
|
|
136
|
+
/**
|
|
137
|
+
* @generated from field: int64 size = 2;
|
|
138
|
+
*/
|
|
139
|
+
size: bigint;
|
|
140
|
+
/**
|
|
141
|
+
* @generated from field: google.protobuf.Timestamp created_at = 3;
|
|
142
|
+
*/
|
|
143
|
+
createdAt?: Timestamp | undefined;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* SecretVersion is one stored version of a key, without its value.
|
|
147
|
+
*
|
|
148
|
+
* @generated from message toshi.workspace.v1.SecretVersion
|
|
149
|
+
*/
|
|
150
|
+
export type SecretVersionJson = {
|
|
151
|
+
/**
|
|
152
|
+
* @generated from field: int64 version = 1;
|
|
153
|
+
*/
|
|
154
|
+
version?: string;
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: int64 size = 2;
|
|
157
|
+
*/
|
|
158
|
+
size?: string;
|
|
159
|
+
/**
|
|
160
|
+
* @generated from field: google.protobuf.Timestamp created_at = 3;
|
|
161
|
+
*/
|
|
162
|
+
createdAt?: TimestampJson;
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Describes the message toshi.workspace.v1.SecretVersion.
|
|
166
|
+
* Use `create(SecretVersionSchema)` to create a new message.
|
|
167
|
+
*/
|
|
168
|
+
export declare const SecretVersionSchema: GenMessage<SecretVersion, {
|
|
169
|
+
jsonType: SecretVersionJson;
|
|
170
|
+
}>;
|
|
171
|
+
/**
|
|
172
|
+
* @generated from message toshi.workspace.v1.SecretGrant
|
|
173
|
+
*/
|
|
174
|
+
export type SecretGrant = Message<"toshi.workspace.v1.SecretGrant"> & {
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: toshi.workspace.v1.SecretGranteeKind kind = 1;
|
|
177
|
+
*/
|
|
178
|
+
kind: SecretGranteeKind;
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: string grantee = 2;
|
|
181
|
+
*/
|
|
182
|
+
grantee: string;
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: google.protobuf.Timestamp created_at = 3;
|
|
185
|
+
*/
|
|
186
|
+
createdAt?: Timestamp | undefined;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* @generated from message toshi.workspace.v1.SecretGrant
|
|
190
|
+
*/
|
|
191
|
+
export type SecretGrantJson = {
|
|
192
|
+
/**
|
|
193
|
+
* @generated from field: toshi.workspace.v1.SecretGranteeKind kind = 1;
|
|
194
|
+
*/
|
|
195
|
+
kind?: SecretGranteeKindJson;
|
|
196
|
+
/**
|
|
197
|
+
* @generated from field: string grantee = 2;
|
|
198
|
+
*/
|
|
199
|
+
grantee?: string;
|
|
200
|
+
/**
|
|
201
|
+
* @generated from field: google.protobuf.Timestamp created_at = 3;
|
|
202
|
+
*/
|
|
203
|
+
createdAt?: TimestampJson;
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* Describes the message toshi.workspace.v1.SecretGrant.
|
|
207
|
+
* Use `create(SecretGrantSchema)` to create a new message.
|
|
208
|
+
*/
|
|
209
|
+
export declare const SecretGrantSchema: GenMessage<SecretGrant, {
|
|
210
|
+
jsonType: SecretGrantJson;
|
|
211
|
+
}>;
|
|
212
|
+
/**
|
|
213
|
+
* @generated from message toshi.workspace.v1.CreateSecretSetRequest
|
|
214
|
+
*/
|
|
215
|
+
export type CreateSecretSetRequest = Message<"toshi.workspace.v1.CreateSecretSetRequest"> & {
|
|
216
|
+
/**
|
|
217
|
+
* @generated from field: string project = 1;
|
|
218
|
+
*/
|
|
219
|
+
project: string;
|
|
220
|
+
/**
|
|
221
|
+
* @generated from field: string environment = 2;
|
|
222
|
+
*/
|
|
223
|
+
environment: string;
|
|
224
|
+
/**
|
|
225
|
+
* @generated from field: bool shared = 3;
|
|
226
|
+
*/
|
|
227
|
+
shared: boolean;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* @generated from message toshi.workspace.v1.CreateSecretSetRequest
|
|
231
|
+
*/
|
|
232
|
+
export type CreateSecretSetRequestJson = {
|
|
233
|
+
/**
|
|
234
|
+
* @generated from field: string project = 1;
|
|
235
|
+
*/
|
|
236
|
+
project?: string;
|
|
237
|
+
/**
|
|
238
|
+
* @generated from field: string environment = 2;
|
|
239
|
+
*/
|
|
240
|
+
environment?: string;
|
|
241
|
+
/**
|
|
242
|
+
* @generated from field: bool shared = 3;
|
|
243
|
+
*/
|
|
244
|
+
shared?: boolean;
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* Describes the message toshi.workspace.v1.CreateSecretSetRequest.
|
|
248
|
+
* Use `create(CreateSecretSetRequestSchema)` to create a new message.
|
|
249
|
+
*/
|
|
250
|
+
export declare const CreateSecretSetRequestSchema: GenMessage<CreateSecretSetRequest, {
|
|
251
|
+
jsonType: CreateSecretSetRequestJson;
|
|
252
|
+
}>;
|
|
253
|
+
/**
|
|
254
|
+
* @generated from message toshi.workspace.v1.CreateSecretSetResponse
|
|
255
|
+
*/
|
|
256
|
+
export type CreateSecretSetResponse = Message<"toshi.workspace.v1.CreateSecretSetResponse"> & {
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: toshi.workspace.v1.SecretSet set = 1;
|
|
259
|
+
*/
|
|
260
|
+
set?: SecretSet | undefined;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* @generated from message toshi.workspace.v1.CreateSecretSetResponse
|
|
264
|
+
*/
|
|
265
|
+
export type CreateSecretSetResponseJson = {
|
|
266
|
+
/**
|
|
267
|
+
* @generated from field: toshi.workspace.v1.SecretSet set = 1;
|
|
268
|
+
*/
|
|
269
|
+
set?: SecretSetJson;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Describes the message toshi.workspace.v1.CreateSecretSetResponse.
|
|
273
|
+
* Use `create(CreateSecretSetResponseSchema)` to create a new message.
|
|
274
|
+
*/
|
|
275
|
+
export declare const CreateSecretSetResponseSchema: GenMessage<CreateSecretSetResponse, {
|
|
276
|
+
jsonType: CreateSecretSetResponseJson;
|
|
277
|
+
}>;
|
|
278
|
+
/**
|
|
279
|
+
* @generated from message toshi.workspace.v1.ListSecretSetsRequest
|
|
280
|
+
*/
|
|
281
|
+
export type ListSecretSetsRequest = Message<"toshi.workspace.v1.ListSecretSetsRequest"> & {
|
|
282
|
+
/**
|
|
283
|
+
* @generated from field: string project = 1;
|
|
284
|
+
*/
|
|
285
|
+
project: string;
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* @generated from message toshi.workspace.v1.ListSecretSetsRequest
|
|
289
|
+
*/
|
|
290
|
+
export type ListSecretSetsRequestJson = {
|
|
291
|
+
/**
|
|
292
|
+
* @generated from field: string project = 1;
|
|
293
|
+
*/
|
|
294
|
+
project?: string;
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* Describes the message toshi.workspace.v1.ListSecretSetsRequest.
|
|
298
|
+
* Use `create(ListSecretSetsRequestSchema)` to create a new message.
|
|
299
|
+
*/
|
|
300
|
+
export declare const ListSecretSetsRequestSchema: GenMessage<ListSecretSetsRequest, {
|
|
301
|
+
jsonType: ListSecretSetsRequestJson;
|
|
302
|
+
}>;
|
|
303
|
+
/**
|
|
304
|
+
* @generated from message toshi.workspace.v1.ListSecretSetsResponse
|
|
305
|
+
*/
|
|
306
|
+
export type ListSecretSetsResponse = Message<"toshi.workspace.v1.ListSecretSetsResponse"> & {
|
|
307
|
+
/**
|
|
308
|
+
* @generated from field: repeated toshi.workspace.v1.SecretSet sets = 1;
|
|
309
|
+
*/
|
|
310
|
+
sets: SecretSet[];
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* @generated from message toshi.workspace.v1.ListSecretSetsResponse
|
|
314
|
+
*/
|
|
315
|
+
export type ListSecretSetsResponseJson = {
|
|
316
|
+
/**
|
|
317
|
+
* @generated from field: repeated toshi.workspace.v1.SecretSet sets = 1;
|
|
318
|
+
*/
|
|
319
|
+
sets?: SecretSetJson[];
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* Describes the message toshi.workspace.v1.ListSecretSetsResponse.
|
|
323
|
+
* Use `create(ListSecretSetsResponseSchema)` to create a new message.
|
|
324
|
+
*/
|
|
325
|
+
export declare const ListSecretSetsResponseSchema: GenMessage<ListSecretSetsResponse, {
|
|
326
|
+
jsonType: ListSecretSetsResponseJson;
|
|
327
|
+
}>;
|
|
328
|
+
/**
|
|
329
|
+
* @generated from message toshi.workspace.v1.DeleteSecretSetRequest
|
|
330
|
+
*/
|
|
331
|
+
export type DeleteSecretSetRequest = Message<"toshi.workspace.v1.DeleteSecretSetRequest"> & {
|
|
332
|
+
/**
|
|
333
|
+
* @generated from field: string project = 1;
|
|
334
|
+
*/
|
|
335
|
+
project: string;
|
|
336
|
+
/**
|
|
337
|
+
* @generated from field: string environment = 2;
|
|
338
|
+
*/
|
|
339
|
+
environment: string;
|
|
340
|
+
/**
|
|
341
|
+
* @generated from field: bool shared = 3;
|
|
342
|
+
*/
|
|
343
|
+
shared: boolean;
|
|
344
|
+
};
|
|
345
|
+
/**
|
|
346
|
+
* @generated from message toshi.workspace.v1.DeleteSecretSetRequest
|
|
347
|
+
*/
|
|
348
|
+
export type DeleteSecretSetRequestJson = {
|
|
349
|
+
/**
|
|
350
|
+
* @generated from field: string project = 1;
|
|
351
|
+
*/
|
|
352
|
+
project?: string;
|
|
353
|
+
/**
|
|
354
|
+
* @generated from field: string environment = 2;
|
|
355
|
+
*/
|
|
356
|
+
environment?: string;
|
|
357
|
+
/**
|
|
358
|
+
* @generated from field: bool shared = 3;
|
|
359
|
+
*/
|
|
360
|
+
shared?: boolean;
|
|
361
|
+
};
|
|
362
|
+
/**
|
|
363
|
+
* Describes the message toshi.workspace.v1.DeleteSecretSetRequest.
|
|
364
|
+
* Use `create(DeleteSecretSetRequestSchema)` to create a new message.
|
|
365
|
+
*/
|
|
366
|
+
export declare const DeleteSecretSetRequestSchema: GenMessage<DeleteSecretSetRequest, {
|
|
367
|
+
jsonType: DeleteSecretSetRequestJson;
|
|
368
|
+
}>;
|
|
369
|
+
/**
|
|
370
|
+
* @generated from message toshi.workspace.v1.DeleteSecretSetResponse
|
|
371
|
+
*/
|
|
372
|
+
export type DeleteSecretSetResponse = Message<"toshi.workspace.v1.DeleteSecretSetResponse"> & {};
|
|
373
|
+
/**
|
|
374
|
+
* @generated from message toshi.workspace.v1.DeleteSecretSetResponse
|
|
375
|
+
*/
|
|
376
|
+
export type DeleteSecretSetResponseJson = {};
|
|
377
|
+
/**
|
|
378
|
+
* Describes the message toshi.workspace.v1.DeleteSecretSetResponse.
|
|
379
|
+
* Use `create(DeleteSecretSetResponseSchema)` to create a new message.
|
|
380
|
+
*/
|
|
381
|
+
export declare const DeleteSecretSetResponseSchema: GenMessage<DeleteSecretSetResponse, {
|
|
382
|
+
jsonType: DeleteSecretSetResponseJson;
|
|
383
|
+
}>;
|
|
384
|
+
/**
|
|
385
|
+
* @generated from message toshi.workspace.v1.SetSecretRequest
|
|
386
|
+
*/
|
|
387
|
+
export type SetSecretRequest = Message<"toshi.workspace.v1.SetSecretRequest"> & {
|
|
388
|
+
/**
|
|
389
|
+
* @generated from field: string project = 1;
|
|
390
|
+
*/
|
|
391
|
+
project: string;
|
|
392
|
+
/**
|
|
393
|
+
* @generated from field: string environment = 2;
|
|
394
|
+
*/
|
|
395
|
+
environment: string;
|
|
396
|
+
/**
|
|
397
|
+
* @generated from field: bool shared = 3;
|
|
398
|
+
*/
|
|
399
|
+
shared: boolean;
|
|
400
|
+
/**
|
|
401
|
+
* An environment variable's name: a letter or _, then letters, digits or
|
|
402
|
+
* _, at most 128 characters.
|
|
403
|
+
*
|
|
404
|
+
* @generated from field: string name = 4;
|
|
405
|
+
*/
|
|
406
|
+
name: string;
|
|
407
|
+
/**
|
|
408
|
+
* @generated from field: bytes value = 5;
|
|
409
|
+
*/
|
|
410
|
+
value: Uint8Array;
|
|
411
|
+
};
|
|
412
|
+
/**
|
|
413
|
+
* @generated from message toshi.workspace.v1.SetSecretRequest
|
|
414
|
+
*/
|
|
415
|
+
export type SetSecretRequestJson = {
|
|
416
|
+
/**
|
|
417
|
+
* @generated from field: string project = 1;
|
|
418
|
+
*/
|
|
419
|
+
project?: string;
|
|
420
|
+
/**
|
|
421
|
+
* @generated from field: string environment = 2;
|
|
422
|
+
*/
|
|
423
|
+
environment?: string;
|
|
424
|
+
/**
|
|
425
|
+
* @generated from field: bool shared = 3;
|
|
426
|
+
*/
|
|
427
|
+
shared?: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* An environment variable's name: a letter or _, then letters, digits or
|
|
430
|
+
* _, at most 128 characters.
|
|
431
|
+
*
|
|
432
|
+
* @generated from field: string name = 4;
|
|
433
|
+
*/
|
|
434
|
+
name?: string;
|
|
435
|
+
/**
|
|
436
|
+
* @generated from field: bytes value = 5;
|
|
437
|
+
*/
|
|
438
|
+
value?: string;
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* Describes the message toshi.workspace.v1.SetSecretRequest.
|
|
442
|
+
* Use `create(SetSecretRequestSchema)` to create a new message.
|
|
443
|
+
*/
|
|
444
|
+
export declare const SetSecretRequestSchema: GenMessage<SetSecretRequest, {
|
|
445
|
+
jsonType: SetSecretRequestJson;
|
|
446
|
+
}>;
|
|
447
|
+
/**
|
|
448
|
+
* @generated from message toshi.workspace.v1.SetSecretResponse
|
|
449
|
+
*/
|
|
450
|
+
export type SetSecretResponse = Message<"toshi.workspace.v1.SetSecretResponse"> & {
|
|
451
|
+
/**
|
|
452
|
+
* @generated from field: toshi.workspace.v1.Secret secret = 1;
|
|
453
|
+
*/
|
|
454
|
+
secret?: Secret | undefined;
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* @generated from message toshi.workspace.v1.SetSecretResponse
|
|
458
|
+
*/
|
|
459
|
+
export type SetSecretResponseJson = {
|
|
460
|
+
/**
|
|
461
|
+
* @generated from field: toshi.workspace.v1.Secret secret = 1;
|
|
462
|
+
*/
|
|
463
|
+
secret?: SecretJson;
|
|
464
|
+
};
|
|
465
|
+
/**
|
|
466
|
+
* Describes the message toshi.workspace.v1.SetSecretResponse.
|
|
467
|
+
* Use `create(SetSecretResponseSchema)` to create a new message.
|
|
468
|
+
*/
|
|
469
|
+
export declare const SetSecretResponseSchema: GenMessage<SetSecretResponse, {
|
|
470
|
+
jsonType: SetSecretResponseJson;
|
|
471
|
+
}>;
|
|
472
|
+
/**
|
|
473
|
+
* @generated from message toshi.workspace.v1.DeleteSecretRequest
|
|
474
|
+
*/
|
|
475
|
+
export type DeleteSecretRequest = Message<"toshi.workspace.v1.DeleteSecretRequest"> & {
|
|
476
|
+
/**
|
|
477
|
+
* @generated from field: string project = 1;
|
|
478
|
+
*/
|
|
479
|
+
project: string;
|
|
480
|
+
/**
|
|
481
|
+
* @generated from field: string environment = 2;
|
|
482
|
+
*/
|
|
483
|
+
environment: string;
|
|
484
|
+
/**
|
|
485
|
+
* @generated from field: bool shared = 3;
|
|
486
|
+
*/
|
|
487
|
+
shared: boolean;
|
|
488
|
+
/**
|
|
489
|
+
* @generated from field: string name = 4;
|
|
490
|
+
*/
|
|
491
|
+
name: string;
|
|
492
|
+
};
|
|
493
|
+
/**
|
|
494
|
+
* @generated from message toshi.workspace.v1.DeleteSecretRequest
|
|
495
|
+
*/
|
|
496
|
+
export type DeleteSecretRequestJson = {
|
|
497
|
+
/**
|
|
498
|
+
* @generated from field: string project = 1;
|
|
499
|
+
*/
|
|
500
|
+
project?: string;
|
|
501
|
+
/**
|
|
502
|
+
* @generated from field: string environment = 2;
|
|
503
|
+
*/
|
|
504
|
+
environment?: string;
|
|
505
|
+
/**
|
|
506
|
+
* @generated from field: bool shared = 3;
|
|
507
|
+
*/
|
|
508
|
+
shared?: boolean;
|
|
509
|
+
/**
|
|
510
|
+
* @generated from field: string name = 4;
|
|
511
|
+
*/
|
|
512
|
+
name?: string;
|
|
513
|
+
};
|
|
514
|
+
/**
|
|
515
|
+
* Describes the message toshi.workspace.v1.DeleteSecretRequest.
|
|
516
|
+
* Use `create(DeleteSecretRequestSchema)` to create a new message.
|
|
517
|
+
*/
|
|
518
|
+
export declare const DeleteSecretRequestSchema: GenMessage<DeleteSecretRequest, {
|
|
519
|
+
jsonType: DeleteSecretRequestJson;
|
|
520
|
+
}>;
|
|
521
|
+
/**
|
|
522
|
+
* @generated from message toshi.workspace.v1.DeleteSecretResponse
|
|
523
|
+
*/
|
|
524
|
+
export type DeleteSecretResponse = Message<"toshi.workspace.v1.DeleteSecretResponse"> & {};
|
|
525
|
+
/**
|
|
526
|
+
* @generated from message toshi.workspace.v1.DeleteSecretResponse
|
|
527
|
+
*/
|
|
528
|
+
export type DeleteSecretResponseJson = {};
|
|
529
|
+
/**
|
|
530
|
+
* Describes the message toshi.workspace.v1.DeleteSecretResponse.
|
|
531
|
+
* Use `create(DeleteSecretResponseSchema)` to create a new message.
|
|
532
|
+
*/
|
|
533
|
+
export declare const DeleteSecretResponseSchema: GenMessage<DeleteSecretResponse, {
|
|
534
|
+
jsonType: DeleteSecretResponseJson;
|
|
535
|
+
}>;
|
|
536
|
+
/**
|
|
537
|
+
* @generated from message toshi.workspace.v1.ListSecretsRequest
|
|
538
|
+
*/
|
|
539
|
+
export type ListSecretsRequest = Message<"toshi.workspace.v1.ListSecretsRequest"> & {
|
|
540
|
+
/**
|
|
541
|
+
* @generated from field: string project = 1;
|
|
542
|
+
*/
|
|
543
|
+
project: string;
|
|
544
|
+
/**
|
|
545
|
+
* @generated from field: string environment = 2;
|
|
546
|
+
*/
|
|
547
|
+
environment: string;
|
|
548
|
+
/**
|
|
549
|
+
* @generated from field: bool shared = 3;
|
|
550
|
+
*/
|
|
551
|
+
shared: boolean;
|
|
552
|
+
};
|
|
553
|
+
/**
|
|
554
|
+
* @generated from message toshi.workspace.v1.ListSecretsRequest
|
|
555
|
+
*/
|
|
556
|
+
export type ListSecretsRequestJson = {
|
|
557
|
+
/**
|
|
558
|
+
* @generated from field: string project = 1;
|
|
559
|
+
*/
|
|
560
|
+
project?: string;
|
|
561
|
+
/**
|
|
562
|
+
* @generated from field: string environment = 2;
|
|
563
|
+
*/
|
|
564
|
+
environment?: string;
|
|
565
|
+
/**
|
|
566
|
+
* @generated from field: bool shared = 3;
|
|
567
|
+
*/
|
|
568
|
+
shared?: boolean;
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* Describes the message toshi.workspace.v1.ListSecretsRequest.
|
|
572
|
+
* Use `create(ListSecretsRequestSchema)` to create a new message.
|
|
573
|
+
*/
|
|
574
|
+
export declare const ListSecretsRequestSchema: GenMessage<ListSecretsRequest, {
|
|
575
|
+
jsonType: ListSecretsRequestJson;
|
|
576
|
+
}>;
|
|
577
|
+
/**
|
|
578
|
+
* @generated from message toshi.workspace.v1.ListSecretsResponse
|
|
579
|
+
*/
|
|
580
|
+
export type ListSecretsResponse = Message<"toshi.workspace.v1.ListSecretsResponse"> & {
|
|
581
|
+
/**
|
|
582
|
+
* @generated from field: repeated toshi.workspace.v1.Secret secrets = 1;
|
|
583
|
+
*/
|
|
584
|
+
secrets: Secret[];
|
|
585
|
+
};
|
|
586
|
+
/**
|
|
587
|
+
* @generated from message toshi.workspace.v1.ListSecretsResponse
|
|
588
|
+
*/
|
|
589
|
+
export type ListSecretsResponseJson = {
|
|
590
|
+
/**
|
|
591
|
+
* @generated from field: repeated toshi.workspace.v1.Secret secrets = 1;
|
|
592
|
+
*/
|
|
593
|
+
secrets?: SecretJson[];
|
|
594
|
+
};
|
|
595
|
+
/**
|
|
596
|
+
* Describes the message toshi.workspace.v1.ListSecretsResponse.
|
|
597
|
+
* Use `create(ListSecretsResponseSchema)` to create a new message.
|
|
598
|
+
*/
|
|
599
|
+
export declare const ListSecretsResponseSchema: GenMessage<ListSecretsResponse, {
|
|
600
|
+
jsonType: ListSecretsResponseJson;
|
|
601
|
+
}>;
|
|
602
|
+
/**
|
|
603
|
+
* @generated from message toshi.workspace.v1.ListSecretVersionsRequest
|
|
604
|
+
*/
|
|
605
|
+
export type ListSecretVersionsRequest = Message<"toshi.workspace.v1.ListSecretVersionsRequest"> & {
|
|
606
|
+
/**
|
|
607
|
+
* @generated from field: string project = 1;
|
|
608
|
+
*/
|
|
609
|
+
project: string;
|
|
610
|
+
/**
|
|
611
|
+
* @generated from field: string environment = 2;
|
|
612
|
+
*/
|
|
613
|
+
environment: string;
|
|
614
|
+
/**
|
|
615
|
+
* @generated from field: bool shared = 3;
|
|
616
|
+
*/
|
|
617
|
+
shared: boolean;
|
|
618
|
+
/**
|
|
619
|
+
* @generated from field: string name = 4;
|
|
620
|
+
*/
|
|
621
|
+
name: string;
|
|
622
|
+
};
|
|
623
|
+
/**
|
|
624
|
+
* @generated from message toshi.workspace.v1.ListSecretVersionsRequest
|
|
625
|
+
*/
|
|
626
|
+
export type ListSecretVersionsRequestJson = {
|
|
627
|
+
/**
|
|
628
|
+
* @generated from field: string project = 1;
|
|
629
|
+
*/
|
|
630
|
+
project?: string;
|
|
631
|
+
/**
|
|
632
|
+
* @generated from field: string environment = 2;
|
|
633
|
+
*/
|
|
634
|
+
environment?: string;
|
|
635
|
+
/**
|
|
636
|
+
* @generated from field: bool shared = 3;
|
|
637
|
+
*/
|
|
638
|
+
shared?: boolean;
|
|
639
|
+
/**
|
|
640
|
+
* @generated from field: string name = 4;
|
|
641
|
+
*/
|
|
642
|
+
name?: string;
|
|
643
|
+
};
|
|
644
|
+
/**
|
|
645
|
+
* Describes the message toshi.workspace.v1.ListSecretVersionsRequest.
|
|
646
|
+
* Use `create(ListSecretVersionsRequestSchema)` to create a new message.
|
|
647
|
+
*/
|
|
648
|
+
export declare const ListSecretVersionsRequestSchema: GenMessage<ListSecretVersionsRequest, {
|
|
649
|
+
jsonType: ListSecretVersionsRequestJson;
|
|
650
|
+
}>;
|
|
651
|
+
/**
|
|
652
|
+
* @generated from message toshi.workspace.v1.ListSecretVersionsResponse
|
|
653
|
+
*/
|
|
654
|
+
export type ListSecretVersionsResponse = Message<"toshi.workspace.v1.ListSecretVersionsResponse"> & {
|
|
655
|
+
/**
|
|
656
|
+
* @generated from field: repeated toshi.workspace.v1.SecretVersion versions = 1;
|
|
657
|
+
*/
|
|
658
|
+
versions: SecretVersion[];
|
|
659
|
+
};
|
|
660
|
+
/**
|
|
661
|
+
* @generated from message toshi.workspace.v1.ListSecretVersionsResponse
|
|
662
|
+
*/
|
|
663
|
+
export type ListSecretVersionsResponseJson = {
|
|
664
|
+
/**
|
|
665
|
+
* @generated from field: repeated toshi.workspace.v1.SecretVersion versions = 1;
|
|
666
|
+
*/
|
|
667
|
+
versions?: SecretVersionJson[];
|
|
668
|
+
};
|
|
669
|
+
/**
|
|
670
|
+
* Describes the message toshi.workspace.v1.ListSecretVersionsResponse.
|
|
671
|
+
* Use `create(ListSecretVersionsResponseSchema)` to create a new message.
|
|
672
|
+
*/
|
|
673
|
+
export declare const ListSecretVersionsResponseSchema: GenMessage<ListSecretVersionsResponse, {
|
|
674
|
+
jsonType: ListSecretVersionsResponseJson;
|
|
675
|
+
}>;
|
|
676
|
+
/**
|
|
677
|
+
* @generated from message toshi.workspace.v1.GrantSecretSetRequest
|
|
678
|
+
*/
|
|
679
|
+
export type GrantSecretSetRequest = Message<"toshi.workspace.v1.GrantSecretSetRequest"> & {
|
|
680
|
+
/**
|
|
681
|
+
* @generated from field: string project = 1;
|
|
682
|
+
*/
|
|
683
|
+
project: string;
|
|
684
|
+
/**
|
|
685
|
+
* @generated from field: string environment = 2;
|
|
686
|
+
*/
|
|
687
|
+
environment: string;
|
|
688
|
+
/**
|
|
689
|
+
* @generated from field: bool shared = 3;
|
|
690
|
+
*/
|
|
691
|
+
shared: boolean;
|
|
692
|
+
/**
|
|
693
|
+
* @generated from field: toshi.workspace.v1.SecretGranteeKind kind = 4;
|
|
694
|
+
*/
|
|
695
|
+
kind: SecretGranteeKind;
|
|
696
|
+
/**
|
|
697
|
+
* @generated from field: string grantee = 5;
|
|
698
|
+
*/
|
|
699
|
+
grantee: string;
|
|
700
|
+
};
|
|
701
|
+
/**
|
|
702
|
+
* @generated from message toshi.workspace.v1.GrantSecretSetRequest
|
|
703
|
+
*/
|
|
704
|
+
export type GrantSecretSetRequestJson = {
|
|
705
|
+
/**
|
|
706
|
+
* @generated from field: string project = 1;
|
|
707
|
+
*/
|
|
708
|
+
project?: string;
|
|
709
|
+
/**
|
|
710
|
+
* @generated from field: string environment = 2;
|
|
711
|
+
*/
|
|
712
|
+
environment?: string;
|
|
713
|
+
/**
|
|
714
|
+
* @generated from field: bool shared = 3;
|
|
715
|
+
*/
|
|
716
|
+
shared?: boolean;
|
|
717
|
+
/**
|
|
718
|
+
* @generated from field: toshi.workspace.v1.SecretGranteeKind kind = 4;
|
|
719
|
+
*/
|
|
720
|
+
kind?: SecretGranteeKindJson;
|
|
721
|
+
/**
|
|
722
|
+
* @generated from field: string grantee = 5;
|
|
723
|
+
*/
|
|
724
|
+
grantee?: string;
|
|
725
|
+
};
|
|
726
|
+
/**
|
|
727
|
+
* Describes the message toshi.workspace.v1.GrantSecretSetRequest.
|
|
728
|
+
* Use `create(GrantSecretSetRequestSchema)` to create a new message.
|
|
729
|
+
*/
|
|
730
|
+
export declare const GrantSecretSetRequestSchema: GenMessage<GrantSecretSetRequest, {
|
|
731
|
+
jsonType: GrantSecretSetRequestJson;
|
|
732
|
+
}>;
|
|
733
|
+
/**
|
|
734
|
+
* @generated from message toshi.workspace.v1.GrantSecretSetResponse
|
|
735
|
+
*/
|
|
736
|
+
export type GrantSecretSetResponse = Message<"toshi.workspace.v1.GrantSecretSetResponse"> & {
|
|
737
|
+
/**
|
|
738
|
+
* @generated from field: toshi.workspace.v1.SecretGrant grant = 1;
|
|
739
|
+
*/
|
|
740
|
+
grant?: SecretGrant | undefined;
|
|
741
|
+
};
|
|
742
|
+
/**
|
|
743
|
+
* @generated from message toshi.workspace.v1.GrantSecretSetResponse
|
|
744
|
+
*/
|
|
745
|
+
export type GrantSecretSetResponseJson = {
|
|
746
|
+
/**
|
|
747
|
+
* @generated from field: toshi.workspace.v1.SecretGrant grant = 1;
|
|
748
|
+
*/
|
|
749
|
+
grant?: SecretGrantJson;
|
|
750
|
+
};
|
|
751
|
+
/**
|
|
752
|
+
* Describes the message toshi.workspace.v1.GrantSecretSetResponse.
|
|
753
|
+
* Use `create(GrantSecretSetResponseSchema)` to create a new message.
|
|
754
|
+
*/
|
|
755
|
+
export declare const GrantSecretSetResponseSchema: GenMessage<GrantSecretSetResponse, {
|
|
756
|
+
jsonType: GrantSecretSetResponseJson;
|
|
757
|
+
}>;
|
|
758
|
+
/**
|
|
759
|
+
* @generated from message toshi.workspace.v1.RevokeSecretSetRequest
|
|
760
|
+
*/
|
|
761
|
+
export type RevokeSecretSetRequest = Message<"toshi.workspace.v1.RevokeSecretSetRequest"> & {
|
|
762
|
+
/**
|
|
763
|
+
* @generated from field: string project = 1;
|
|
764
|
+
*/
|
|
765
|
+
project: string;
|
|
766
|
+
/**
|
|
767
|
+
* @generated from field: string environment = 2;
|
|
768
|
+
*/
|
|
769
|
+
environment: string;
|
|
770
|
+
/**
|
|
771
|
+
* @generated from field: bool shared = 3;
|
|
772
|
+
*/
|
|
773
|
+
shared: boolean;
|
|
774
|
+
/**
|
|
775
|
+
* @generated from field: toshi.workspace.v1.SecretGranteeKind kind = 4;
|
|
776
|
+
*/
|
|
777
|
+
kind: SecretGranteeKind;
|
|
778
|
+
/**
|
|
779
|
+
* @generated from field: string grantee = 5;
|
|
780
|
+
*/
|
|
781
|
+
grantee: string;
|
|
782
|
+
};
|
|
783
|
+
/**
|
|
784
|
+
* @generated from message toshi.workspace.v1.RevokeSecretSetRequest
|
|
785
|
+
*/
|
|
786
|
+
export type RevokeSecretSetRequestJson = {
|
|
787
|
+
/**
|
|
788
|
+
* @generated from field: string project = 1;
|
|
789
|
+
*/
|
|
790
|
+
project?: string;
|
|
791
|
+
/**
|
|
792
|
+
* @generated from field: string environment = 2;
|
|
793
|
+
*/
|
|
794
|
+
environment?: string;
|
|
795
|
+
/**
|
|
796
|
+
* @generated from field: bool shared = 3;
|
|
797
|
+
*/
|
|
798
|
+
shared?: boolean;
|
|
799
|
+
/**
|
|
800
|
+
* @generated from field: toshi.workspace.v1.SecretGranteeKind kind = 4;
|
|
801
|
+
*/
|
|
802
|
+
kind?: SecretGranteeKindJson;
|
|
803
|
+
/**
|
|
804
|
+
* @generated from field: string grantee = 5;
|
|
805
|
+
*/
|
|
806
|
+
grantee?: string;
|
|
807
|
+
};
|
|
808
|
+
/**
|
|
809
|
+
* Describes the message toshi.workspace.v1.RevokeSecretSetRequest.
|
|
810
|
+
* Use `create(RevokeSecretSetRequestSchema)` to create a new message.
|
|
811
|
+
*/
|
|
812
|
+
export declare const RevokeSecretSetRequestSchema: GenMessage<RevokeSecretSetRequest, {
|
|
813
|
+
jsonType: RevokeSecretSetRequestJson;
|
|
814
|
+
}>;
|
|
815
|
+
/**
|
|
816
|
+
* @generated from message toshi.workspace.v1.RevokeSecretSetResponse
|
|
817
|
+
*/
|
|
818
|
+
export type RevokeSecretSetResponse = Message<"toshi.workspace.v1.RevokeSecretSetResponse"> & {};
|
|
819
|
+
/**
|
|
820
|
+
* @generated from message toshi.workspace.v1.RevokeSecretSetResponse
|
|
821
|
+
*/
|
|
822
|
+
export type RevokeSecretSetResponseJson = {};
|
|
823
|
+
/**
|
|
824
|
+
* Describes the message toshi.workspace.v1.RevokeSecretSetResponse.
|
|
825
|
+
* Use `create(RevokeSecretSetResponseSchema)` to create a new message.
|
|
826
|
+
*/
|
|
827
|
+
export declare const RevokeSecretSetResponseSchema: GenMessage<RevokeSecretSetResponse, {
|
|
828
|
+
jsonType: RevokeSecretSetResponseJson;
|
|
829
|
+
}>;
|
|
830
|
+
/**
|
|
831
|
+
* @generated from message toshi.workspace.v1.ListSecretSetGrantsRequest
|
|
832
|
+
*/
|
|
833
|
+
export type ListSecretSetGrantsRequest = Message<"toshi.workspace.v1.ListSecretSetGrantsRequest"> & {
|
|
834
|
+
/**
|
|
835
|
+
* @generated from field: string project = 1;
|
|
836
|
+
*/
|
|
837
|
+
project: string;
|
|
838
|
+
/**
|
|
839
|
+
* @generated from field: string environment = 2;
|
|
840
|
+
*/
|
|
841
|
+
environment: string;
|
|
842
|
+
/**
|
|
843
|
+
* @generated from field: bool shared = 3;
|
|
844
|
+
*/
|
|
845
|
+
shared: boolean;
|
|
846
|
+
};
|
|
847
|
+
/**
|
|
848
|
+
* @generated from message toshi.workspace.v1.ListSecretSetGrantsRequest
|
|
849
|
+
*/
|
|
850
|
+
export type ListSecretSetGrantsRequestJson = {
|
|
851
|
+
/**
|
|
852
|
+
* @generated from field: string project = 1;
|
|
853
|
+
*/
|
|
854
|
+
project?: string;
|
|
855
|
+
/**
|
|
856
|
+
* @generated from field: string environment = 2;
|
|
857
|
+
*/
|
|
858
|
+
environment?: string;
|
|
859
|
+
/**
|
|
860
|
+
* @generated from field: bool shared = 3;
|
|
861
|
+
*/
|
|
862
|
+
shared?: boolean;
|
|
863
|
+
};
|
|
864
|
+
/**
|
|
865
|
+
* Describes the message toshi.workspace.v1.ListSecretSetGrantsRequest.
|
|
866
|
+
* Use `create(ListSecretSetGrantsRequestSchema)` to create a new message.
|
|
867
|
+
*/
|
|
868
|
+
export declare const ListSecretSetGrantsRequestSchema: GenMessage<ListSecretSetGrantsRequest, {
|
|
869
|
+
jsonType: ListSecretSetGrantsRequestJson;
|
|
870
|
+
}>;
|
|
871
|
+
/**
|
|
872
|
+
* @generated from message toshi.workspace.v1.ListSecretSetGrantsResponse
|
|
873
|
+
*/
|
|
874
|
+
export type ListSecretSetGrantsResponse = Message<"toshi.workspace.v1.ListSecretSetGrantsResponse"> & {
|
|
875
|
+
/**
|
|
876
|
+
* @generated from field: repeated toshi.workspace.v1.SecretGrant grants = 1;
|
|
877
|
+
*/
|
|
878
|
+
grants: SecretGrant[];
|
|
879
|
+
};
|
|
880
|
+
/**
|
|
881
|
+
* @generated from message toshi.workspace.v1.ListSecretSetGrantsResponse
|
|
882
|
+
*/
|
|
883
|
+
export type ListSecretSetGrantsResponseJson = {
|
|
884
|
+
/**
|
|
885
|
+
* @generated from field: repeated toshi.workspace.v1.SecretGrant grants = 1;
|
|
886
|
+
*/
|
|
887
|
+
grants?: SecretGrantJson[];
|
|
888
|
+
};
|
|
889
|
+
/**
|
|
890
|
+
* Describes the message toshi.workspace.v1.ListSecretSetGrantsResponse.
|
|
891
|
+
* Use `create(ListSecretSetGrantsResponseSchema)` to create a new message.
|
|
892
|
+
*/
|
|
893
|
+
export declare const ListSecretSetGrantsResponseSchema: GenMessage<ListSecretSetGrantsResponse, {
|
|
894
|
+
jsonType: ListSecretSetGrantsResponseJson;
|
|
895
|
+
}>;
|
|
896
|
+
/**
|
|
897
|
+
* SecretGranteeKind is what a set is granted to.
|
|
898
|
+
*
|
|
899
|
+
* @generated from enum toshi.workspace.v1.SecretGranteeKind
|
|
900
|
+
*/
|
|
901
|
+
export declare enum SecretGranteeKind {
|
|
902
|
+
/**
|
|
903
|
+
* @generated from enum value: SECRET_GRANTEE_KIND_UNSPECIFIED = 0;
|
|
904
|
+
*/
|
|
905
|
+
UNSPECIFIED = 0,
|
|
906
|
+
/**
|
|
907
|
+
* VMs of a workload kind: grantee is job, sandbox or service.
|
|
908
|
+
*
|
|
909
|
+
* @generated from enum value: SECRET_GRANTEE_KIND_KIND = 1;
|
|
910
|
+
*/
|
|
911
|
+
KIND = 1,
|
|
912
|
+
/**
|
|
913
|
+
* VMs of an image: grantee is the image's name.
|
|
914
|
+
*
|
|
915
|
+
* @generated from enum value: SECRET_GRANTEE_KIND_IMAGE = 2;
|
|
916
|
+
*/
|
|
917
|
+
IMAGE = 2,
|
|
918
|
+
/**
|
|
919
|
+
* One service: grantee is its name.
|
|
920
|
+
*
|
|
921
|
+
* @generated from enum value: SECRET_GRANTEE_KIND_SERVICE = 3;
|
|
922
|
+
*/
|
|
923
|
+
SERVICE = 3
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* SecretGranteeKind is what a set is granted to.
|
|
927
|
+
*
|
|
928
|
+
* @generated from enum toshi.workspace.v1.SecretGranteeKind
|
|
929
|
+
*/
|
|
930
|
+
export type SecretGranteeKindJson = "SECRET_GRANTEE_KIND_UNSPECIFIED" | "SECRET_GRANTEE_KIND_KIND" | "SECRET_GRANTEE_KIND_IMAGE" | "SECRET_GRANTEE_KIND_SERVICE";
|
|
931
|
+
/**
|
|
932
|
+
* Describes the enum toshi.workspace.v1.SecretGranteeKind.
|
|
933
|
+
*/
|
|
934
|
+
export declare const SecretGranteeKindSchema: GenEnum<SecretGranteeKind, SecretGranteeKindJson>;
|
|
935
|
+
/**
|
|
936
|
+
* SecretService keeps a workspace's secrets: a project's sets,
|
|
937
|
+
* their write-only keys and their grants. Each value is sealed with
|
|
938
|
+
* AES-256-GCM under the workspace's data key before the store sees it, and
|
|
939
|
+
* every version of a key is kept until the key or its set is deleted.
|
|
940
|
+
*
|
|
941
|
+
* The caller's credential names the workspace, as for WorkspaceService.
|
|
942
|
+
* Every request names a set by its project and either its environment or
|
|
943
|
+
* shared, which is the project's shared set; a request that names both, or
|
|
944
|
+
* neither, fails with INVALID_ARGUMENT. A project or environment the
|
|
945
|
+
* workspace does not have is NOT_FOUND.
|
|
946
|
+
*
|
|
947
|
+
* No call returns a value: a key is answered with its name, version, size
|
|
948
|
+
* and time. The calls take no request_key: a retried SetSecret makes one
|
|
949
|
+
* more version.
|
|
950
|
+
*
|
|
951
|
+
* @generated from service toshi.workspace.v1.SecretService
|
|
952
|
+
*/
|
|
953
|
+
export declare const SecretService: GenService<{
|
|
954
|
+
/**
|
|
955
|
+
* CreateSecretSet creates the set. A second set of the same environment,
|
|
956
|
+
* or a second shared set, fails with ALREADY_EXISTS.
|
|
957
|
+
*
|
|
958
|
+
* @generated from rpc toshi.workspace.v1.SecretService.CreateSecretSet
|
|
959
|
+
*/
|
|
960
|
+
createSecretSet: {
|
|
961
|
+
methodKind: "unary";
|
|
962
|
+
input: typeof CreateSecretSetRequestSchema;
|
|
963
|
+
output: typeof CreateSecretSetResponseSchema;
|
|
964
|
+
};
|
|
965
|
+
/**
|
|
966
|
+
* ListSecretSets returns the project's sets, the shared set first.
|
|
967
|
+
*
|
|
968
|
+
* @generated from rpc toshi.workspace.v1.SecretService.ListSecretSets
|
|
969
|
+
*/
|
|
970
|
+
listSecretSets: {
|
|
971
|
+
methodKind: "unary";
|
|
972
|
+
input: typeof ListSecretSetsRequestSchema;
|
|
973
|
+
output: typeof ListSecretSetsResponseSchema;
|
|
974
|
+
};
|
|
975
|
+
/**
|
|
976
|
+
* DeleteSecretSet removes the set with its keys, versions and grants.
|
|
977
|
+
*
|
|
978
|
+
* @generated from rpc toshi.workspace.v1.SecretService.DeleteSecretSet
|
|
979
|
+
*/
|
|
980
|
+
deleteSecretSet: {
|
|
981
|
+
methodKind: "unary";
|
|
982
|
+
input: typeof DeleteSecretSetRequestSchema;
|
|
983
|
+
output: typeof DeleteSecretSetResponseSchema;
|
|
984
|
+
};
|
|
985
|
+
/**
|
|
986
|
+
* SetSecret makes the key's next version, holding value, and returns the
|
|
987
|
+
* key without it. A name is either shared or set per environment: a
|
|
988
|
+
* shared name set in an environment's set, or an environment's name set
|
|
989
|
+
* in the shared set, fails with FAILED_PRECONDITION. Two environments'
|
|
990
|
+
* sets may hold the same name.
|
|
991
|
+
*
|
|
992
|
+
* @generated from rpc toshi.workspace.v1.SecretService.SetSecret
|
|
993
|
+
*/
|
|
994
|
+
setSecret: {
|
|
995
|
+
methodKind: "unary";
|
|
996
|
+
input: typeof SetSecretRequestSchema;
|
|
997
|
+
output: typeof SetSecretResponseSchema;
|
|
998
|
+
};
|
|
999
|
+
/**
|
|
1000
|
+
* DeleteSecret removes the key and every version of it.
|
|
1001
|
+
*
|
|
1002
|
+
* @generated from rpc toshi.workspace.v1.SecretService.DeleteSecret
|
|
1003
|
+
*/
|
|
1004
|
+
deleteSecret: {
|
|
1005
|
+
methodKind: "unary";
|
|
1006
|
+
input: typeof DeleteSecretRequestSchema;
|
|
1007
|
+
output: typeof DeleteSecretResponseSchema;
|
|
1008
|
+
};
|
|
1009
|
+
/**
|
|
1010
|
+
* ListSecrets returns the set's keys by name, each with its newest
|
|
1011
|
+
* version.
|
|
1012
|
+
*
|
|
1013
|
+
* @generated from rpc toshi.workspace.v1.SecretService.ListSecrets
|
|
1014
|
+
*/
|
|
1015
|
+
listSecrets: {
|
|
1016
|
+
methodKind: "unary";
|
|
1017
|
+
input: typeof ListSecretsRequestSchema;
|
|
1018
|
+
output: typeof ListSecretsResponseSchema;
|
|
1019
|
+
};
|
|
1020
|
+
/**
|
|
1021
|
+
* ListSecretVersions returns the key's versions, oldest first.
|
|
1022
|
+
*
|
|
1023
|
+
* @generated from rpc toshi.workspace.v1.SecretService.ListSecretVersions
|
|
1024
|
+
*/
|
|
1025
|
+
listSecretVersions: {
|
|
1026
|
+
methodKind: "unary";
|
|
1027
|
+
input: typeof ListSecretVersionsRequestSchema;
|
|
1028
|
+
output: typeof ListSecretVersionsResponseSchema;
|
|
1029
|
+
};
|
|
1030
|
+
/**
|
|
1031
|
+
* GrantSecretSet lets VMs of a kind, of an image or of one service use an
|
|
1032
|
+
* environment's set. The shared set takes no grants, and a set granted to
|
|
1033
|
+
* a service has no other grantee: both fail with FAILED_PRECONDITION.
|
|
1034
|
+
*
|
|
1035
|
+
* @generated from rpc toshi.workspace.v1.SecretService.GrantSecretSet
|
|
1036
|
+
*/
|
|
1037
|
+
grantSecretSet: {
|
|
1038
|
+
methodKind: "unary";
|
|
1039
|
+
input: typeof GrantSecretSetRequestSchema;
|
|
1040
|
+
output: typeof GrantSecretSetResponseSchema;
|
|
1041
|
+
};
|
|
1042
|
+
/**
|
|
1043
|
+
* RevokeSecretSet removes a grant.
|
|
1044
|
+
*
|
|
1045
|
+
* @generated from rpc toshi.workspace.v1.SecretService.RevokeSecretSet
|
|
1046
|
+
*/
|
|
1047
|
+
revokeSecretSet: {
|
|
1048
|
+
methodKind: "unary";
|
|
1049
|
+
input: typeof RevokeSecretSetRequestSchema;
|
|
1050
|
+
output: typeof RevokeSecretSetResponseSchema;
|
|
1051
|
+
};
|
|
1052
|
+
/**
|
|
1053
|
+
* ListSecretSetGrants returns the set's grants by kind and grantee.
|
|
1054
|
+
*
|
|
1055
|
+
* @generated from rpc toshi.workspace.v1.SecretService.ListSecretSetGrants
|
|
1056
|
+
*/
|
|
1057
|
+
listSecretSetGrants: {
|
|
1058
|
+
methodKind: "unary";
|
|
1059
|
+
input: typeof ListSecretSetGrantsRequestSchema;
|
|
1060
|
+
output: typeof ListSecretSetGrantsResponseSchema;
|
|
1061
|
+
};
|
|
1062
|
+
}>;
|