@toshicloud/sdk 0.3.0 → 0.3.2
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/README.md +33 -7
- package/dist/client.d.ts +23 -5
- package/dist/client.js +20 -4
- package/dist/gen/toshi/workspace/v1/audit_events_pb.d.ts +297 -0
- package/dist/gen/toshi/workspace/v1/audit_events_pb.js +37 -0
- package/dist/gen/toshi/workspace/v1/fillers_pb.d.ts +920 -0
- package/dist/gen/toshi/workspace/v1/fillers_pb.js +94 -0
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +2048 -0
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +226 -0
- package/dist/gen/toshi/workspace/v1/hosts_pb.d.ts +2135 -0
- package/dist/gen/toshi/workspace/v1/hosts_pb.js +301 -0
- package/dist/gen/toshi/workspace/v1/storage_providers_pb.d.ts +717 -0
- package/dist/gen/toshi/workspace/v1/storage_providers_pb.js +74 -0
- package/dist/gen/toshi/workspace/v1/tokens_pb.d.ts +518 -0
- package/dist/gen/toshi/workspace/v1/tokens_pb.js +88 -0
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +3719 -0
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +270 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/retry.js +45 -0
- package/package.json +10 -2
|
@@ -0,0 +1,3719 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { HostEgress, HostEgressJson } from "./hosts_pb.js";
|
|
4
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file toshi/workspace/v1/workspace_service.proto.
|
|
7
|
+
*/
|
|
8
|
+
export declare const file_toshi_workspace_v1_workspace_service: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message toshi.workspace.v1.GetWorkspaceRequest
|
|
11
|
+
*/
|
|
12
|
+
export type GetWorkspaceRequest = Message<"toshi.workspace.v1.GetWorkspaceRequest"> & {};
|
|
13
|
+
/**
|
|
14
|
+
* @generated from message toshi.workspace.v1.GetWorkspaceRequest
|
|
15
|
+
*/
|
|
16
|
+
export type GetWorkspaceRequestJson = {};
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message toshi.workspace.v1.GetWorkspaceRequest.
|
|
19
|
+
* Use `create(GetWorkspaceRequestSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export declare const GetWorkspaceRequestSchema: GenMessage<GetWorkspaceRequest, {
|
|
22
|
+
jsonType: GetWorkspaceRequestJson;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* @generated from message toshi.workspace.v1.GetWorkspaceResponse
|
|
26
|
+
*/
|
|
27
|
+
export type GetWorkspaceResponse = Message<"toshi.workspace.v1.GetWorkspaceResponse"> & {
|
|
28
|
+
/**
|
|
29
|
+
* @generated from field: toshi.workspace.v1.Workspace workspace = 1;
|
|
30
|
+
*/
|
|
31
|
+
workspace?: Workspace | undefined;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @generated from message toshi.workspace.v1.GetWorkspaceResponse
|
|
35
|
+
*/
|
|
36
|
+
export type GetWorkspaceResponseJson = {
|
|
37
|
+
/**
|
|
38
|
+
* @generated from field: toshi.workspace.v1.Workspace workspace = 1;
|
|
39
|
+
*/
|
|
40
|
+
workspace?: WorkspaceJson;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Describes the message toshi.workspace.v1.GetWorkspaceResponse.
|
|
44
|
+
* Use `create(GetWorkspaceResponseSchema)` to create a new message.
|
|
45
|
+
*/
|
|
46
|
+
export declare const GetWorkspaceResponseSchema: GenMessage<GetWorkspaceResponse, {
|
|
47
|
+
jsonType: GetWorkspaceResponseJson;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* @generated from message toshi.workspace.v1.ListWorkspacesRequest
|
|
51
|
+
*/
|
|
52
|
+
export type ListWorkspacesRequest = Message<"toshi.workspace.v1.ListWorkspacesRequest"> & {
|
|
53
|
+
/**
|
|
54
|
+
* The most workspaces in one page; zero lets the server choose.
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: int32 page_size = 1;
|
|
57
|
+
*/
|
|
58
|
+
pageSize: number;
|
|
59
|
+
/**
|
|
60
|
+
* From an earlier response's next_page_token; empty for the first page.
|
|
61
|
+
*
|
|
62
|
+
* @generated from field: string page_token = 2;
|
|
63
|
+
*/
|
|
64
|
+
pageToken: string;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* @generated from message toshi.workspace.v1.ListWorkspacesRequest
|
|
68
|
+
*/
|
|
69
|
+
export type ListWorkspacesRequestJson = {
|
|
70
|
+
/**
|
|
71
|
+
* The most workspaces in one page; zero lets the server choose.
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: int32 page_size = 1;
|
|
74
|
+
*/
|
|
75
|
+
pageSize?: number;
|
|
76
|
+
/**
|
|
77
|
+
* From an earlier response's next_page_token; empty for the first page.
|
|
78
|
+
*
|
|
79
|
+
* @generated from field: string page_token = 2;
|
|
80
|
+
*/
|
|
81
|
+
pageToken?: string;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Describes the message toshi.workspace.v1.ListWorkspacesRequest.
|
|
85
|
+
* Use `create(ListWorkspacesRequestSchema)` to create a new message.
|
|
86
|
+
*/
|
|
87
|
+
export declare const ListWorkspacesRequestSchema: GenMessage<ListWorkspacesRequest, {
|
|
88
|
+
jsonType: ListWorkspacesRequestJson;
|
|
89
|
+
}>;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from message toshi.workspace.v1.ListWorkspacesResponse
|
|
92
|
+
*/
|
|
93
|
+
export type ListWorkspacesResponse = Message<"toshi.workspace.v1.ListWorkspacesResponse"> & {
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: repeated toshi.workspace.v1.Workspace workspaces = 1;
|
|
96
|
+
*/
|
|
97
|
+
workspaces: Workspace[];
|
|
98
|
+
/**
|
|
99
|
+
* Empty on the last page.
|
|
100
|
+
*
|
|
101
|
+
* @generated from field: string next_page_token = 2;
|
|
102
|
+
*/
|
|
103
|
+
nextPageToken: string;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* @generated from message toshi.workspace.v1.ListWorkspacesResponse
|
|
107
|
+
*/
|
|
108
|
+
export type ListWorkspacesResponseJson = {
|
|
109
|
+
/**
|
|
110
|
+
* @generated from field: repeated toshi.workspace.v1.Workspace workspaces = 1;
|
|
111
|
+
*/
|
|
112
|
+
workspaces?: WorkspaceJson[];
|
|
113
|
+
/**
|
|
114
|
+
* Empty on the last page.
|
|
115
|
+
*
|
|
116
|
+
* @generated from field: string next_page_token = 2;
|
|
117
|
+
*/
|
|
118
|
+
nextPageToken?: string;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Describes the message toshi.workspace.v1.ListWorkspacesResponse.
|
|
122
|
+
* Use `create(ListWorkspacesResponseSchema)` to create a new message.
|
|
123
|
+
*/
|
|
124
|
+
export declare const ListWorkspacesResponseSchema: GenMessage<ListWorkspacesResponse, {
|
|
125
|
+
jsonType: ListWorkspacesResponseJson;
|
|
126
|
+
}>;
|
|
127
|
+
/**
|
|
128
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceOwnHostsOnlyResponse
|
|
129
|
+
*/
|
|
130
|
+
export type SetWorkspaceOwnHostsOnlyResponse = Message<"toshi.workspace.v1.SetWorkspaceOwnHostsOnlyResponse"> & {
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: toshi.workspace.v1.Workspace workspace = 1;
|
|
133
|
+
*/
|
|
134
|
+
workspace?: Workspace | undefined;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceOwnHostsOnlyResponse
|
|
138
|
+
*/
|
|
139
|
+
export type SetWorkspaceOwnHostsOnlyResponseJson = {
|
|
140
|
+
/**
|
|
141
|
+
* @generated from field: toshi.workspace.v1.Workspace workspace = 1;
|
|
142
|
+
*/
|
|
143
|
+
workspace?: WorkspaceJson;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Describes the message toshi.workspace.v1.SetWorkspaceOwnHostsOnlyResponse.
|
|
147
|
+
* Use `create(SetWorkspaceOwnHostsOnlyResponseSchema)` to create a new message.
|
|
148
|
+
*/
|
|
149
|
+
export declare const SetWorkspaceOwnHostsOnlyResponseSchema: GenMessage<SetWorkspaceOwnHostsOnlyResponse, {
|
|
150
|
+
jsonType: SetWorkspaceOwnHostsOnlyResponseJson;
|
|
151
|
+
}>;
|
|
152
|
+
/**
|
|
153
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceAllowOverflowResponse
|
|
154
|
+
*/
|
|
155
|
+
export type SetWorkspaceAllowOverflowResponse = Message<"toshi.workspace.v1.SetWorkspaceAllowOverflowResponse"> & {
|
|
156
|
+
/**
|
|
157
|
+
* @generated from field: toshi.workspace.v1.Workspace workspace = 1;
|
|
158
|
+
*/
|
|
159
|
+
workspace?: Workspace | undefined;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceAllowOverflowResponse
|
|
163
|
+
*/
|
|
164
|
+
export type SetWorkspaceAllowOverflowResponseJson = {
|
|
165
|
+
/**
|
|
166
|
+
* @generated from field: toshi.workspace.v1.Workspace workspace = 1;
|
|
167
|
+
*/
|
|
168
|
+
workspace?: WorkspaceJson;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Describes the message toshi.workspace.v1.SetWorkspaceAllowOverflowResponse.
|
|
172
|
+
* Use `create(SetWorkspaceAllowOverflowResponseSchema)` to create a new message.
|
|
173
|
+
*/
|
|
174
|
+
export declare const SetWorkspaceAllowOverflowResponseSchema: GenMessage<SetWorkspaceAllowOverflowResponse, {
|
|
175
|
+
jsonType: SetWorkspaceAllowOverflowResponseJson;
|
|
176
|
+
}>;
|
|
177
|
+
/**
|
|
178
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceAllowCacheWarmResponse
|
|
179
|
+
*/
|
|
180
|
+
export type SetWorkspaceAllowCacheWarmResponse = Message<"toshi.workspace.v1.SetWorkspaceAllowCacheWarmResponse"> & {
|
|
181
|
+
/**
|
|
182
|
+
* @generated from field: toshi.workspace.v1.Workspace workspace = 1;
|
|
183
|
+
*/
|
|
184
|
+
workspace?: Workspace | undefined;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceAllowCacheWarmResponse
|
|
188
|
+
*/
|
|
189
|
+
export type SetWorkspaceAllowCacheWarmResponseJson = {
|
|
190
|
+
/**
|
|
191
|
+
* @generated from field: toshi.workspace.v1.Workspace workspace = 1;
|
|
192
|
+
*/
|
|
193
|
+
workspace?: WorkspaceJson;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Describes the message toshi.workspace.v1.SetWorkspaceAllowCacheWarmResponse.
|
|
197
|
+
* Use `create(SetWorkspaceAllowCacheWarmResponseSchema)` to create a new message.
|
|
198
|
+
*/
|
|
199
|
+
export declare const SetWorkspaceAllowCacheWarmResponseSchema: GenMessage<SetWorkspaceAllowCacheWarmResponse, {
|
|
200
|
+
jsonType: SetWorkspaceAllowCacheWarmResponseJson;
|
|
201
|
+
}>;
|
|
202
|
+
/**
|
|
203
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceCancelRunOnVmDeathResponse
|
|
204
|
+
*/
|
|
205
|
+
export type SetWorkspaceCancelRunOnVmDeathResponse = Message<"toshi.workspace.v1.SetWorkspaceCancelRunOnVmDeathResponse"> & {
|
|
206
|
+
/**
|
|
207
|
+
* @generated from field: toshi.workspace.v1.Workspace workspace = 1;
|
|
208
|
+
*/
|
|
209
|
+
workspace?: Workspace | undefined;
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceCancelRunOnVmDeathResponse
|
|
213
|
+
*/
|
|
214
|
+
export type SetWorkspaceCancelRunOnVmDeathResponseJson = {
|
|
215
|
+
/**
|
|
216
|
+
* @generated from field: toshi.workspace.v1.Workspace workspace = 1;
|
|
217
|
+
*/
|
|
218
|
+
workspace?: WorkspaceJson;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Describes the message toshi.workspace.v1.SetWorkspaceCancelRunOnVmDeathResponse.
|
|
222
|
+
* Use `create(SetWorkspaceCancelRunOnVmDeathResponseSchema)` to create a new message.
|
|
223
|
+
*/
|
|
224
|
+
export declare const SetWorkspaceCancelRunOnVmDeathResponseSchema: GenMessage<SetWorkspaceCancelRunOnVmDeathResponse, {
|
|
225
|
+
jsonType: SetWorkspaceCancelRunOnVmDeathResponseJson;
|
|
226
|
+
}>;
|
|
227
|
+
/**
|
|
228
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceSpendLimitsResponse
|
|
229
|
+
*/
|
|
230
|
+
export type SetWorkspaceSpendLimitsResponse = Message<"toshi.workspace.v1.SetWorkspaceSpendLimitsResponse"> & {
|
|
231
|
+
/**
|
|
232
|
+
* @generated from field: toshi.workspace.v1.Workspace workspace = 1;
|
|
233
|
+
*/
|
|
234
|
+
workspace?: Workspace | undefined;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceSpendLimitsResponse
|
|
238
|
+
*/
|
|
239
|
+
export type SetWorkspaceSpendLimitsResponseJson = {
|
|
240
|
+
/**
|
|
241
|
+
* @generated from field: toshi.workspace.v1.Workspace workspace = 1;
|
|
242
|
+
*/
|
|
243
|
+
workspace?: WorkspaceJson;
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* Describes the message toshi.workspace.v1.SetWorkspaceSpendLimitsResponse.
|
|
247
|
+
* Use `create(SetWorkspaceSpendLimitsResponseSchema)` to create a new message.
|
|
248
|
+
*/
|
|
249
|
+
export declare const SetWorkspaceSpendLimitsResponseSchema: GenMessage<SetWorkspaceSpendLimitsResponse, {
|
|
250
|
+
jsonType: SetWorkspaceSpendLimitsResponseJson;
|
|
251
|
+
}>;
|
|
252
|
+
/**
|
|
253
|
+
* @generated from message toshi.workspace.v1.GetWorkspaceBillingRequest
|
|
254
|
+
*/
|
|
255
|
+
export type GetWorkspaceBillingRequest = Message<"toshi.workspace.v1.GetWorkspaceBillingRequest"> & {
|
|
256
|
+
/**
|
|
257
|
+
* How many UTC months of usage to return, the current one included.
|
|
258
|
+
* 0 means 2; at most 12.
|
|
259
|
+
*
|
|
260
|
+
* @generated from field: int32 months = 1;
|
|
261
|
+
*/
|
|
262
|
+
months: number;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* @generated from message toshi.workspace.v1.GetWorkspaceBillingRequest
|
|
266
|
+
*/
|
|
267
|
+
export type GetWorkspaceBillingRequestJson = {
|
|
268
|
+
/**
|
|
269
|
+
* How many UTC months of usage to return, the current one included.
|
|
270
|
+
* 0 means 2; at most 12.
|
|
271
|
+
*
|
|
272
|
+
* @generated from field: int32 months = 1;
|
|
273
|
+
*/
|
|
274
|
+
months?: number;
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* Describes the message toshi.workspace.v1.GetWorkspaceBillingRequest.
|
|
278
|
+
* Use `create(GetWorkspaceBillingRequestSchema)` to create a new message.
|
|
279
|
+
*/
|
|
280
|
+
export declare const GetWorkspaceBillingRequestSchema: GenMessage<GetWorkspaceBillingRequest, {
|
|
281
|
+
jsonType: GetWorkspaceBillingRequestJson;
|
|
282
|
+
}>;
|
|
283
|
+
/**
|
|
284
|
+
* @generated from message toshi.workspace.v1.GetWorkspaceBillingResponse
|
|
285
|
+
*/
|
|
286
|
+
export type GetWorkspaceBillingResponse = Message<"toshi.workspace.v1.GetWorkspaceBillingResponse"> & {
|
|
287
|
+
/**
|
|
288
|
+
* @generated from field: toshi.workspace.v1.WorkspaceBilling billing = 1;
|
|
289
|
+
*/
|
|
290
|
+
billing?: WorkspaceBilling | undefined;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* @generated from message toshi.workspace.v1.GetWorkspaceBillingResponse
|
|
294
|
+
*/
|
|
295
|
+
export type GetWorkspaceBillingResponseJson = {
|
|
296
|
+
/**
|
|
297
|
+
* @generated from field: toshi.workspace.v1.WorkspaceBilling billing = 1;
|
|
298
|
+
*/
|
|
299
|
+
billing?: WorkspaceBillingJson;
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* Describes the message toshi.workspace.v1.GetWorkspaceBillingResponse.
|
|
303
|
+
* Use `create(GetWorkspaceBillingResponseSchema)` to create a new message.
|
|
304
|
+
*/
|
|
305
|
+
export declare const GetWorkspaceBillingResponseSchema: GenMessage<GetWorkspaceBillingResponse, {
|
|
306
|
+
jsonType: GetWorkspaceBillingResponseJson;
|
|
307
|
+
}>;
|
|
308
|
+
/**
|
|
309
|
+
* @generated from message toshi.workspace.v1.GetWorkspaceStatementRequest
|
|
310
|
+
*/
|
|
311
|
+
export type GetWorkspaceStatementRequest = Message<"toshi.workspace.v1.GetWorkspaceStatementRequest"> & {
|
|
312
|
+
/**
|
|
313
|
+
* The UTC month as YYYY-MM. Empty: the current month.
|
|
314
|
+
*
|
|
315
|
+
* @generated from field: string month = 1;
|
|
316
|
+
*/
|
|
317
|
+
month: string;
|
|
318
|
+
/**
|
|
319
|
+
* Also return the statement as CSV.
|
|
320
|
+
*
|
|
321
|
+
* @generated from field: bool csv = 2;
|
|
322
|
+
*/
|
|
323
|
+
csv: boolean;
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* @generated from message toshi.workspace.v1.GetWorkspaceStatementRequest
|
|
327
|
+
*/
|
|
328
|
+
export type GetWorkspaceStatementRequestJson = {
|
|
329
|
+
/**
|
|
330
|
+
* The UTC month as YYYY-MM. Empty: the current month.
|
|
331
|
+
*
|
|
332
|
+
* @generated from field: string month = 1;
|
|
333
|
+
*/
|
|
334
|
+
month?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Also return the statement as CSV.
|
|
337
|
+
*
|
|
338
|
+
* @generated from field: bool csv = 2;
|
|
339
|
+
*/
|
|
340
|
+
csv?: boolean;
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* Describes the message toshi.workspace.v1.GetWorkspaceStatementRequest.
|
|
344
|
+
* Use `create(GetWorkspaceStatementRequestSchema)` to create a new message.
|
|
345
|
+
*/
|
|
346
|
+
export declare const GetWorkspaceStatementRequestSchema: GenMessage<GetWorkspaceStatementRequest, {
|
|
347
|
+
jsonType: GetWorkspaceStatementRequestJson;
|
|
348
|
+
}>;
|
|
349
|
+
/**
|
|
350
|
+
* @generated from message toshi.workspace.v1.GetWorkspaceStatementResponse
|
|
351
|
+
*/
|
|
352
|
+
export type GetWorkspaceStatementResponse = Message<"toshi.workspace.v1.GetWorkspaceStatementResponse"> & {
|
|
353
|
+
/**
|
|
354
|
+
* @generated from field: toshi.workspace.v1.WorkspaceStatement statement = 1;
|
|
355
|
+
*/
|
|
356
|
+
statement?: WorkspaceStatement | undefined;
|
|
357
|
+
/**
|
|
358
|
+
* The statement as CSV with a header row, when the request asked for it.
|
|
359
|
+
*
|
|
360
|
+
* @generated from field: string csv = 2;
|
|
361
|
+
*/
|
|
362
|
+
csv: string;
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* @generated from message toshi.workspace.v1.GetWorkspaceStatementResponse
|
|
366
|
+
*/
|
|
367
|
+
export type GetWorkspaceStatementResponseJson = {
|
|
368
|
+
/**
|
|
369
|
+
* @generated from field: toshi.workspace.v1.WorkspaceStatement statement = 1;
|
|
370
|
+
*/
|
|
371
|
+
statement?: WorkspaceStatementJson;
|
|
372
|
+
/**
|
|
373
|
+
* The statement as CSV with a header row, when the request asked for it.
|
|
374
|
+
*
|
|
375
|
+
* @generated from field: string csv = 2;
|
|
376
|
+
*/
|
|
377
|
+
csv?: string;
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* Describes the message toshi.workspace.v1.GetWorkspaceStatementResponse.
|
|
381
|
+
* Use `create(GetWorkspaceStatementResponseSchema)` to create a new message.
|
|
382
|
+
*/
|
|
383
|
+
export declare const GetWorkspaceStatementResponseSchema: GenMessage<GetWorkspaceStatementResponse, {
|
|
384
|
+
jsonType: GetWorkspaceStatementResponseJson;
|
|
385
|
+
}>;
|
|
386
|
+
/**
|
|
387
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceOwnHostsOnlyRequest
|
|
388
|
+
*/
|
|
389
|
+
export type SetWorkspaceOwnHostsOnlyRequest = Message<"toshi.workspace.v1.SetWorkspaceOwnHostsOnlyRequest"> & {
|
|
390
|
+
/**
|
|
391
|
+
* @generated from field: bool own_hosts_only = 1;
|
|
392
|
+
*/
|
|
393
|
+
ownHostsOnly: boolean;
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceOwnHostsOnlyRequest
|
|
397
|
+
*/
|
|
398
|
+
export type SetWorkspaceOwnHostsOnlyRequestJson = {
|
|
399
|
+
/**
|
|
400
|
+
* @generated from field: bool own_hosts_only = 1;
|
|
401
|
+
*/
|
|
402
|
+
ownHostsOnly?: boolean;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Describes the message toshi.workspace.v1.SetWorkspaceOwnHostsOnlyRequest.
|
|
406
|
+
* Use `create(SetWorkspaceOwnHostsOnlyRequestSchema)` to create a new message.
|
|
407
|
+
*/
|
|
408
|
+
export declare const SetWorkspaceOwnHostsOnlyRequestSchema: GenMessage<SetWorkspaceOwnHostsOnlyRequest, {
|
|
409
|
+
jsonType: SetWorkspaceOwnHostsOnlyRequestJson;
|
|
410
|
+
}>;
|
|
411
|
+
/**
|
|
412
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceAllowOverflowRequest
|
|
413
|
+
*/
|
|
414
|
+
export type SetWorkspaceAllowOverflowRequest = Message<"toshi.workspace.v1.SetWorkspaceAllowOverflowRequest"> & {
|
|
415
|
+
/**
|
|
416
|
+
* @generated from field: bool allow_overflow = 1;
|
|
417
|
+
*/
|
|
418
|
+
allowOverflow: boolean;
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceAllowOverflowRequest
|
|
422
|
+
*/
|
|
423
|
+
export type SetWorkspaceAllowOverflowRequestJson = {
|
|
424
|
+
/**
|
|
425
|
+
* @generated from field: bool allow_overflow = 1;
|
|
426
|
+
*/
|
|
427
|
+
allowOverflow?: boolean;
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* Describes the message toshi.workspace.v1.SetWorkspaceAllowOverflowRequest.
|
|
431
|
+
* Use `create(SetWorkspaceAllowOverflowRequestSchema)` to create a new message.
|
|
432
|
+
*/
|
|
433
|
+
export declare const SetWorkspaceAllowOverflowRequestSchema: GenMessage<SetWorkspaceAllowOverflowRequest, {
|
|
434
|
+
jsonType: SetWorkspaceAllowOverflowRequestJson;
|
|
435
|
+
}>;
|
|
436
|
+
/**
|
|
437
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceAllowCacheWarmRequest
|
|
438
|
+
*/
|
|
439
|
+
export type SetWorkspaceAllowCacheWarmRequest = Message<"toshi.workspace.v1.SetWorkspaceAllowCacheWarmRequest"> & {
|
|
440
|
+
/**
|
|
441
|
+
* @generated from field: bool allow_cache_warm = 1;
|
|
442
|
+
*/
|
|
443
|
+
allowCacheWarm: boolean;
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceAllowCacheWarmRequest
|
|
447
|
+
*/
|
|
448
|
+
export type SetWorkspaceAllowCacheWarmRequestJson = {
|
|
449
|
+
/**
|
|
450
|
+
* @generated from field: bool allow_cache_warm = 1;
|
|
451
|
+
*/
|
|
452
|
+
allowCacheWarm?: boolean;
|
|
453
|
+
};
|
|
454
|
+
/**
|
|
455
|
+
* Describes the message toshi.workspace.v1.SetWorkspaceAllowCacheWarmRequest.
|
|
456
|
+
* Use `create(SetWorkspaceAllowCacheWarmRequestSchema)` to create a new message.
|
|
457
|
+
*/
|
|
458
|
+
export declare const SetWorkspaceAllowCacheWarmRequestSchema: GenMessage<SetWorkspaceAllowCacheWarmRequest, {
|
|
459
|
+
jsonType: SetWorkspaceAllowCacheWarmRequestJson;
|
|
460
|
+
}>;
|
|
461
|
+
/**
|
|
462
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceCancelRunOnVmDeathRequest
|
|
463
|
+
*/
|
|
464
|
+
export type SetWorkspaceCancelRunOnVmDeathRequest = Message<"toshi.workspace.v1.SetWorkspaceCancelRunOnVmDeathRequest"> & {
|
|
465
|
+
/**
|
|
466
|
+
* @generated from field: bool cancel_run_on_vm_death = 1;
|
|
467
|
+
*/
|
|
468
|
+
cancelRunOnVmDeath: boolean;
|
|
469
|
+
};
|
|
470
|
+
/**
|
|
471
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceCancelRunOnVmDeathRequest
|
|
472
|
+
*/
|
|
473
|
+
export type SetWorkspaceCancelRunOnVmDeathRequestJson = {
|
|
474
|
+
/**
|
|
475
|
+
* @generated from field: bool cancel_run_on_vm_death = 1;
|
|
476
|
+
*/
|
|
477
|
+
cancelRunOnVmDeath?: boolean;
|
|
478
|
+
};
|
|
479
|
+
/**
|
|
480
|
+
* Describes the message toshi.workspace.v1.SetWorkspaceCancelRunOnVmDeathRequest.
|
|
481
|
+
* Use `create(SetWorkspaceCancelRunOnVmDeathRequestSchema)` to create a new message.
|
|
482
|
+
*/
|
|
483
|
+
export declare const SetWorkspaceCancelRunOnVmDeathRequestSchema: GenMessage<SetWorkspaceCancelRunOnVmDeathRequest, {
|
|
484
|
+
jsonType: SetWorkspaceCancelRunOnVmDeathRequestJson;
|
|
485
|
+
}>;
|
|
486
|
+
/**
|
|
487
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceSpendLimitsRequest
|
|
488
|
+
*/
|
|
489
|
+
export type SetWorkspaceSpendLimitsRequest = Message<"toshi.workspace.v1.SetWorkspaceSpendLimitsRequest"> & {
|
|
490
|
+
/**
|
|
491
|
+
* Unset leaves the cap; 0 clears it.
|
|
492
|
+
*
|
|
493
|
+
* @generated from field: optional int64 spend_cap_cents = 1;
|
|
494
|
+
*/
|
|
495
|
+
spendCapCents?: bigint | undefined;
|
|
496
|
+
/**
|
|
497
|
+
* Unset leaves the limit; 0 clears the workspace's own limit.
|
|
498
|
+
*
|
|
499
|
+
* @generated from field: optional int32 max_jobs_per_hour = 2;
|
|
500
|
+
*/
|
|
501
|
+
maxJobsPerHour?: number | undefined;
|
|
502
|
+
};
|
|
503
|
+
/**
|
|
504
|
+
* @generated from message toshi.workspace.v1.SetWorkspaceSpendLimitsRequest
|
|
505
|
+
*/
|
|
506
|
+
export type SetWorkspaceSpendLimitsRequestJson = {
|
|
507
|
+
/**
|
|
508
|
+
* Unset leaves the cap; 0 clears it.
|
|
509
|
+
*
|
|
510
|
+
* @generated from field: optional int64 spend_cap_cents = 1;
|
|
511
|
+
*/
|
|
512
|
+
spendCapCents?: string;
|
|
513
|
+
/**
|
|
514
|
+
* Unset leaves the limit; 0 clears the workspace's own limit.
|
|
515
|
+
*
|
|
516
|
+
* @generated from field: optional int32 max_jobs_per_hour = 2;
|
|
517
|
+
*/
|
|
518
|
+
maxJobsPerHour?: number;
|
|
519
|
+
};
|
|
520
|
+
/**
|
|
521
|
+
* Describes the message toshi.workspace.v1.SetWorkspaceSpendLimitsRequest.
|
|
522
|
+
* Use `create(SetWorkspaceSpendLimitsRequestSchema)` to create a new message.
|
|
523
|
+
*/
|
|
524
|
+
export declare const SetWorkspaceSpendLimitsRequestSchema: GenMessage<SetWorkspaceSpendLimitsRequest, {
|
|
525
|
+
jsonType: SetWorkspaceSpendLimitsRequestJson;
|
|
526
|
+
}>;
|
|
527
|
+
/**
|
|
528
|
+
* @generated from message toshi.workspace.v1.ListEgressIPsRequest
|
|
529
|
+
*/
|
|
530
|
+
export type ListEgressIPsRequest = Message<"toshi.workspace.v1.ListEgressIPsRequest"> & {
|
|
531
|
+
/**
|
|
532
|
+
* The most hosts in one page; zero lets the server choose.
|
|
533
|
+
*
|
|
534
|
+
* @generated from field: int32 page_size = 1;
|
|
535
|
+
*/
|
|
536
|
+
pageSize: number;
|
|
537
|
+
/**
|
|
538
|
+
* From an earlier response's next_page_token; empty for the first page.
|
|
539
|
+
*
|
|
540
|
+
* @generated from field: string page_token = 2;
|
|
541
|
+
*/
|
|
542
|
+
pageToken: string;
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* @generated from message toshi.workspace.v1.ListEgressIPsRequest
|
|
546
|
+
*/
|
|
547
|
+
export type ListEgressIPsRequestJson = {
|
|
548
|
+
/**
|
|
549
|
+
* The most hosts in one page; zero lets the server choose.
|
|
550
|
+
*
|
|
551
|
+
* @generated from field: int32 page_size = 1;
|
|
552
|
+
*/
|
|
553
|
+
pageSize?: number;
|
|
554
|
+
/**
|
|
555
|
+
* From an earlier response's next_page_token; empty for the first page.
|
|
556
|
+
*
|
|
557
|
+
* @generated from field: string page_token = 2;
|
|
558
|
+
*/
|
|
559
|
+
pageToken?: string;
|
|
560
|
+
};
|
|
561
|
+
/**
|
|
562
|
+
* Describes the message toshi.workspace.v1.ListEgressIPsRequest.
|
|
563
|
+
* Use `create(ListEgressIPsRequestSchema)` to create a new message.
|
|
564
|
+
*/
|
|
565
|
+
export declare const ListEgressIPsRequestSchema: GenMessage<ListEgressIPsRequest, {
|
|
566
|
+
jsonType: ListEgressIPsRequestJson;
|
|
567
|
+
}>;
|
|
568
|
+
/**
|
|
569
|
+
* ListEgressIPsResponse lists the addresses to allowlist and the hosts they
|
|
570
|
+
* come from.
|
|
571
|
+
*
|
|
572
|
+
* @generated from message toshi.workspace.v1.ListEgressIPsResponse
|
|
573
|
+
*/
|
|
574
|
+
export type ListEgressIPsResponse = Message<"toshi.workspace.v1.ListEgressIPsResponse"> & {
|
|
575
|
+
/**
|
|
576
|
+
* Every address of the hosts of every page with known addresses, sorted
|
|
577
|
+
* and without repeats. Every page holds all of them.
|
|
578
|
+
*
|
|
579
|
+
* @generated from field: repeated string ips = 1;
|
|
580
|
+
*/
|
|
581
|
+
ips: string[];
|
|
582
|
+
/**
|
|
583
|
+
* The hosts the workspace's jobs can land on, ordered by kind (own hosts
|
|
584
|
+
* first) and ID.
|
|
585
|
+
*
|
|
586
|
+
* @generated from field: repeated toshi.workspace.v1.EgressHost hosts = 2;
|
|
587
|
+
*/
|
|
588
|
+
hosts: EgressHost[];
|
|
589
|
+
/**
|
|
590
|
+
* False when some host of any page has addresses that are unknown or
|
|
591
|
+
* change per job, so ips may not cover every job.
|
|
592
|
+
*
|
|
593
|
+
* @generated from field: bool complete = 3;
|
|
594
|
+
*/
|
|
595
|
+
complete: boolean;
|
|
596
|
+
/**
|
|
597
|
+
* Empty on the last page.
|
|
598
|
+
*
|
|
599
|
+
* @generated from field: string next_page_token = 4;
|
|
600
|
+
*/
|
|
601
|
+
nextPageToken: string;
|
|
602
|
+
};
|
|
603
|
+
/**
|
|
604
|
+
* ListEgressIPsResponse lists the addresses to allowlist and the hosts they
|
|
605
|
+
* come from.
|
|
606
|
+
*
|
|
607
|
+
* @generated from message toshi.workspace.v1.ListEgressIPsResponse
|
|
608
|
+
*/
|
|
609
|
+
export type ListEgressIPsResponseJson = {
|
|
610
|
+
/**
|
|
611
|
+
* Every address of the hosts of every page with known addresses, sorted
|
|
612
|
+
* and without repeats. Every page holds all of them.
|
|
613
|
+
*
|
|
614
|
+
* @generated from field: repeated string ips = 1;
|
|
615
|
+
*/
|
|
616
|
+
ips?: string[];
|
|
617
|
+
/**
|
|
618
|
+
* The hosts the workspace's jobs can land on, ordered by kind (own hosts
|
|
619
|
+
* first) and ID.
|
|
620
|
+
*
|
|
621
|
+
* @generated from field: repeated toshi.workspace.v1.EgressHost hosts = 2;
|
|
622
|
+
*/
|
|
623
|
+
hosts?: EgressHostJson[];
|
|
624
|
+
/**
|
|
625
|
+
* False when some host of any page has addresses that are unknown or
|
|
626
|
+
* change per job, so ips may not cover every job.
|
|
627
|
+
*
|
|
628
|
+
* @generated from field: bool complete = 3;
|
|
629
|
+
*/
|
|
630
|
+
complete?: boolean;
|
|
631
|
+
/**
|
|
632
|
+
* Empty on the last page.
|
|
633
|
+
*
|
|
634
|
+
* @generated from field: string next_page_token = 4;
|
|
635
|
+
*/
|
|
636
|
+
nextPageToken?: string;
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* Describes the message toshi.workspace.v1.ListEgressIPsResponse.
|
|
640
|
+
* Use `create(ListEgressIPsResponseSchema)` to create a new message.
|
|
641
|
+
*/
|
|
642
|
+
export declare const ListEgressIPsResponseSchema: GenMessage<ListEgressIPsResponse, {
|
|
643
|
+
jsonType: ListEgressIPsResponseJson;
|
|
644
|
+
}>;
|
|
645
|
+
/**
|
|
646
|
+
* GetUsageRequest selects the jobs to count. A job is in the window when its
|
|
647
|
+
* queued_at is at or after from and before to.
|
|
648
|
+
*
|
|
649
|
+
* @generated from message toshi.workspace.v1.GetUsageRequest
|
|
650
|
+
*/
|
|
651
|
+
export type GetUsageRequest = Message<"toshi.workspace.v1.GetUsageRequest"> & {
|
|
652
|
+
/**
|
|
653
|
+
* Start of the window, inclusive. Unset: to minus 7 days.
|
|
654
|
+
*
|
|
655
|
+
* @generated from field: google.protobuf.Timestamp from = 1;
|
|
656
|
+
*/
|
|
657
|
+
from?: Timestamp | undefined;
|
|
658
|
+
/**
|
|
659
|
+
* End of the window, exclusive. Unset: now.
|
|
660
|
+
*
|
|
661
|
+
* @generated from field: google.protobuf.Timestamp to = 2;
|
|
662
|
+
*/
|
|
663
|
+
to?: Timestamp | undefined;
|
|
664
|
+
};
|
|
665
|
+
/**
|
|
666
|
+
* GetUsageRequest selects the jobs to count. A job is in the window when its
|
|
667
|
+
* queued_at is at or after from and before to.
|
|
668
|
+
*
|
|
669
|
+
* @generated from message toshi.workspace.v1.GetUsageRequest
|
|
670
|
+
*/
|
|
671
|
+
export type GetUsageRequestJson = {
|
|
672
|
+
/**
|
|
673
|
+
* Start of the window, inclusive. Unset: to minus 7 days.
|
|
674
|
+
*
|
|
675
|
+
* @generated from field: google.protobuf.Timestamp from = 1;
|
|
676
|
+
*/
|
|
677
|
+
from?: TimestampJson;
|
|
678
|
+
/**
|
|
679
|
+
* End of the window, exclusive. Unset: now.
|
|
680
|
+
*
|
|
681
|
+
* @generated from field: google.protobuf.Timestamp to = 2;
|
|
682
|
+
*/
|
|
683
|
+
to?: TimestampJson;
|
|
684
|
+
};
|
|
685
|
+
/**
|
|
686
|
+
* Describes the message toshi.workspace.v1.GetUsageRequest.
|
|
687
|
+
* Use `create(GetUsageRequestSchema)` to create a new message.
|
|
688
|
+
*/
|
|
689
|
+
export declare const GetUsageRequestSchema: GenMessage<GetUsageRequest, {
|
|
690
|
+
jsonType: GetUsageRequestJson;
|
|
691
|
+
}>;
|
|
692
|
+
/**
|
|
693
|
+
* @generated from message toshi.workspace.v1.GetUsageResponse
|
|
694
|
+
*/
|
|
695
|
+
export type GetUsageResponse = Message<"toshi.workspace.v1.GetUsageResponse"> & {
|
|
696
|
+
/**
|
|
697
|
+
* Ordered by day, then conclusion, then outcome, then kind. A
|
|
698
|
+
* window with neither matching jobs nor reserved hours has no rows.
|
|
699
|
+
*
|
|
700
|
+
* @generated from field: repeated toshi.workspace.v1.UsageRow rows = 1;
|
|
701
|
+
*/
|
|
702
|
+
rows: UsageRow[];
|
|
703
|
+
/**
|
|
704
|
+
* The window used, with the defaults filled in.
|
|
705
|
+
*
|
|
706
|
+
* @generated from field: google.protobuf.Timestamp from = 2;
|
|
707
|
+
*/
|
|
708
|
+
from?: Timestamp | undefined;
|
|
709
|
+
/**
|
|
710
|
+
* @generated from field: google.protobuf.Timestamp to = 3;
|
|
711
|
+
*/
|
|
712
|
+
to?: Timestamp | undefined;
|
|
713
|
+
/**
|
|
714
|
+
* The filler jobs that finished in the window. They are not billed and
|
|
715
|
+
* not in rows. Unset when there were none.
|
|
716
|
+
*
|
|
717
|
+
* @generated from field: toshi.workspace.v1.FillerUsage filler = 4;
|
|
718
|
+
*/
|
|
719
|
+
filler?: FillerUsage | undefined;
|
|
720
|
+
};
|
|
721
|
+
/**
|
|
722
|
+
* @generated from message toshi.workspace.v1.GetUsageResponse
|
|
723
|
+
*/
|
|
724
|
+
export type GetUsageResponseJson = {
|
|
725
|
+
/**
|
|
726
|
+
* Ordered by day, then conclusion, then outcome, then kind. A
|
|
727
|
+
* window with neither matching jobs nor reserved hours has no rows.
|
|
728
|
+
*
|
|
729
|
+
* @generated from field: repeated toshi.workspace.v1.UsageRow rows = 1;
|
|
730
|
+
*/
|
|
731
|
+
rows?: UsageRowJson[];
|
|
732
|
+
/**
|
|
733
|
+
* The window used, with the defaults filled in.
|
|
734
|
+
*
|
|
735
|
+
* @generated from field: google.protobuf.Timestamp from = 2;
|
|
736
|
+
*/
|
|
737
|
+
from?: TimestampJson;
|
|
738
|
+
/**
|
|
739
|
+
* @generated from field: google.protobuf.Timestamp to = 3;
|
|
740
|
+
*/
|
|
741
|
+
to?: TimestampJson;
|
|
742
|
+
/**
|
|
743
|
+
* The filler jobs that finished in the window. They are not billed and
|
|
744
|
+
* not in rows. Unset when there were none.
|
|
745
|
+
*
|
|
746
|
+
* @generated from field: toshi.workspace.v1.FillerUsage filler = 4;
|
|
747
|
+
*/
|
|
748
|
+
filler?: FillerUsageJson;
|
|
749
|
+
};
|
|
750
|
+
/**
|
|
751
|
+
* Describes the message toshi.workspace.v1.GetUsageResponse.
|
|
752
|
+
* Use `create(GetUsageResponseSchema)` to create a new message.
|
|
753
|
+
*/
|
|
754
|
+
export declare const GetUsageResponseSchema: GenMessage<GetUsageResponse, {
|
|
755
|
+
jsonType: GetUsageResponseJson;
|
|
756
|
+
}>;
|
|
757
|
+
/**
|
|
758
|
+
* GetQueueTimesRequest selects the jobs to summarize. A job is in the window
|
|
759
|
+
* when its queued_at is at or after from and before to.
|
|
760
|
+
*
|
|
761
|
+
* @generated from message toshi.workspace.v1.GetQueueTimesRequest
|
|
762
|
+
*/
|
|
763
|
+
export type GetQueueTimesRequest = Message<"toshi.workspace.v1.GetQueueTimesRequest"> & {
|
|
764
|
+
/**
|
|
765
|
+
* Start of the window, inclusive. Unset: to minus 7 days.
|
|
766
|
+
*
|
|
767
|
+
* @generated from field: google.protobuf.Timestamp from = 1;
|
|
768
|
+
*/
|
|
769
|
+
from?: Timestamp | undefined;
|
|
770
|
+
/**
|
|
771
|
+
* End of the window, exclusive. Unset: now.
|
|
772
|
+
*
|
|
773
|
+
* @generated from field: google.protobuf.Timestamp to = 2;
|
|
774
|
+
*/
|
|
775
|
+
to?: Timestamp | undefined;
|
|
776
|
+
};
|
|
777
|
+
/**
|
|
778
|
+
* GetQueueTimesRequest selects the jobs to summarize. A job is in the window
|
|
779
|
+
* when its queued_at is at or after from and before to.
|
|
780
|
+
*
|
|
781
|
+
* @generated from message toshi.workspace.v1.GetQueueTimesRequest
|
|
782
|
+
*/
|
|
783
|
+
export type GetQueueTimesRequestJson = {
|
|
784
|
+
/**
|
|
785
|
+
* Start of the window, inclusive. Unset: to minus 7 days.
|
|
786
|
+
*
|
|
787
|
+
* @generated from field: google.protobuf.Timestamp from = 1;
|
|
788
|
+
*/
|
|
789
|
+
from?: TimestampJson;
|
|
790
|
+
/**
|
|
791
|
+
* End of the window, exclusive. Unset: now.
|
|
792
|
+
*
|
|
793
|
+
* @generated from field: google.protobuf.Timestamp to = 2;
|
|
794
|
+
*/
|
|
795
|
+
to?: TimestampJson;
|
|
796
|
+
};
|
|
797
|
+
/**
|
|
798
|
+
* Describes the message toshi.workspace.v1.GetQueueTimesRequest.
|
|
799
|
+
* Use `create(GetQueueTimesRequestSchema)` to create a new message.
|
|
800
|
+
*/
|
|
801
|
+
export declare const GetQueueTimesRequestSchema: GenMessage<GetQueueTimesRequest, {
|
|
802
|
+
jsonType: GetQueueTimesRequestJson;
|
|
803
|
+
}>;
|
|
804
|
+
/**
|
|
805
|
+
* @generated from message toshi.workspace.v1.GetQueueTimesResponse
|
|
806
|
+
*/
|
|
807
|
+
export type GetQueueTimesResponse = Message<"toshi.workspace.v1.GetQueueTimesResponse"> & {
|
|
808
|
+
/**
|
|
809
|
+
* Jobs in the window that reached running (have a started_at).
|
|
810
|
+
*
|
|
811
|
+
* @generated from field: int64 jobs = 1;
|
|
812
|
+
*/
|
|
813
|
+
jobs: bigint;
|
|
814
|
+
/**
|
|
815
|
+
* Nearest-rank percentiles and maximum of started_at - queued_at, in whole
|
|
816
|
+
* milliseconds. All 0 when jobs is 0.
|
|
817
|
+
*
|
|
818
|
+
* @generated from field: int64 p50_ms = 2;
|
|
819
|
+
*/
|
|
820
|
+
p50Ms: bigint;
|
|
821
|
+
/**
|
|
822
|
+
* @generated from field: int64 p90_ms = 3;
|
|
823
|
+
*/
|
|
824
|
+
p90Ms: bigint;
|
|
825
|
+
/**
|
|
826
|
+
* @generated from field: int64 max_ms = 4;
|
|
827
|
+
*/
|
|
828
|
+
maxMs: bigint;
|
|
829
|
+
/**
|
|
830
|
+
* Share of those jobs assigned to a warm instance, from 0 to 1.
|
|
831
|
+
*
|
|
832
|
+
* @generated from field: double warm_share = 5;
|
|
833
|
+
*/
|
|
834
|
+
warmShare: number;
|
|
835
|
+
/**
|
|
836
|
+
* The window used, with the defaults filled in.
|
|
837
|
+
*
|
|
838
|
+
* @generated from field: google.protobuf.Timestamp from = 6;
|
|
839
|
+
*/
|
|
840
|
+
from?: Timestamp | undefined;
|
|
841
|
+
/**
|
|
842
|
+
* @generated from field: google.protobuf.Timestamp to = 7;
|
|
843
|
+
*/
|
|
844
|
+
to?: Timestamp | undefined;
|
|
845
|
+
/**
|
|
846
|
+
* Time held, from first held to assigned, of the jobs the scheduler held, by
|
|
847
|
+
* the latest reason it held each one. A job never held is in none of them.
|
|
848
|
+
* A reason with only jobs held now has jobs 0.
|
|
849
|
+
*
|
|
850
|
+
* @generated from field: repeated toshi.workspace.v1.HoldTimes held = 8;
|
|
851
|
+
*/
|
|
852
|
+
held: HoldTimes[];
|
|
853
|
+
};
|
|
854
|
+
/**
|
|
855
|
+
* @generated from message toshi.workspace.v1.GetQueueTimesResponse
|
|
856
|
+
*/
|
|
857
|
+
export type GetQueueTimesResponseJson = {
|
|
858
|
+
/**
|
|
859
|
+
* Jobs in the window that reached running (have a started_at).
|
|
860
|
+
*
|
|
861
|
+
* @generated from field: int64 jobs = 1;
|
|
862
|
+
*/
|
|
863
|
+
jobs?: string;
|
|
864
|
+
/**
|
|
865
|
+
* Nearest-rank percentiles and maximum of started_at - queued_at, in whole
|
|
866
|
+
* milliseconds. All 0 when jobs is 0.
|
|
867
|
+
*
|
|
868
|
+
* @generated from field: int64 p50_ms = 2;
|
|
869
|
+
*/
|
|
870
|
+
p50Ms?: string;
|
|
871
|
+
/**
|
|
872
|
+
* @generated from field: int64 p90_ms = 3;
|
|
873
|
+
*/
|
|
874
|
+
p90Ms?: string;
|
|
875
|
+
/**
|
|
876
|
+
* @generated from field: int64 max_ms = 4;
|
|
877
|
+
*/
|
|
878
|
+
maxMs?: string;
|
|
879
|
+
/**
|
|
880
|
+
* Share of those jobs assigned to a warm instance, from 0 to 1.
|
|
881
|
+
*
|
|
882
|
+
* @generated from field: double warm_share = 5;
|
|
883
|
+
*/
|
|
884
|
+
warmShare?: number | "NaN" | "Infinity" | "-Infinity";
|
|
885
|
+
/**
|
|
886
|
+
* The window used, with the defaults filled in.
|
|
887
|
+
*
|
|
888
|
+
* @generated from field: google.protobuf.Timestamp from = 6;
|
|
889
|
+
*/
|
|
890
|
+
from?: TimestampJson;
|
|
891
|
+
/**
|
|
892
|
+
* @generated from field: google.protobuf.Timestamp to = 7;
|
|
893
|
+
*/
|
|
894
|
+
to?: TimestampJson;
|
|
895
|
+
/**
|
|
896
|
+
* Time held, from first held to assigned, of the jobs the scheduler held, by
|
|
897
|
+
* the latest reason it held each one. A job never held is in none of them.
|
|
898
|
+
* A reason with only jobs held now has jobs 0.
|
|
899
|
+
*
|
|
900
|
+
* @generated from field: repeated toshi.workspace.v1.HoldTimes held = 8;
|
|
901
|
+
*/
|
|
902
|
+
held?: HoldTimesJson[];
|
|
903
|
+
};
|
|
904
|
+
/**
|
|
905
|
+
* Describes the message toshi.workspace.v1.GetQueueTimesResponse.
|
|
906
|
+
* Use `create(GetQueueTimesResponseSchema)` to create a new message.
|
|
907
|
+
*/
|
|
908
|
+
export declare const GetQueueTimesResponseSchema: GenMessage<GetQueueTimesResponse, {
|
|
909
|
+
jsonType: GetQueueTimesResponseJson;
|
|
910
|
+
}>;
|
|
911
|
+
/**
|
|
912
|
+
* GetWorkflowUsageRequest selects the jobs to count. A job is in the window
|
|
913
|
+
* when its queued_at is at or after from and before to.
|
|
914
|
+
*
|
|
915
|
+
* @generated from message toshi.workspace.v1.GetWorkflowUsageRequest
|
|
916
|
+
*/
|
|
917
|
+
export type GetWorkflowUsageRequest = Message<"toshi.workspace.v1.GetWorkflowUsageRequest"> & {
|
|
918
|
+
/**
|
|
919
|
+
* Start of the window, inclusive. Unset: to minus 7 days.
|
|
920
|
+
*
|
|
921
|
+
* @generated from field: google.protobuf.Timestamp from = 1;
|
|
922
|
+
*/
|
|
923
|
+
from?: Timestamp | undefined;
|
|
924
|
+
/**
|
|
925
|
+
* End of the window, exclusive. Unset: now.
|
|
926
|
+
*
|
|
927
|
+
* @generated from field: google.protobuf.Timestamp to = 2;
|
|
928
|
+
*/
|
|
929
|
+
to?: Timestamp | undefined;
|
|
930
|
+
};
|
|
931
|
+
/**
|
|
932
|
+
* GetWorkflowUsageRequest selects the jobs to count. A job is in the window
|
|
933
|
+
* when its queued_at is at or after from and before to.
|
|
934
|
+
*
|
|
935
|
+
* @generated from message toshi.workspace.v1.GetWorkflowUsageRequest
|
|
936
|
+
*/
|
|
937
|
+
export type GetWorkflowUsageRequestJson = {
|
|
938
|
+
/**
|
|
939
|
+
* Start of the window, inclusive. Unset: to minus 7 days.
|
|
940
|
+
*
|
|
941
|
+
* @generated from field: google.protobuf.Timestamp from = 1;
|
|
942
|
+
*/
|
|
943
|
+
from?: TimestampJson;
|
|
944
|
+
/**
|
|
945
|
+
* End of the window, exclusive. Unset: now.
|
|
946
|
+
*
|
|
947
|
+
* @generated from field: google.protobuf.Timestamp to = 2;
|
|
948
|
+
*/
|
|
949
|
+
to?: TimestampJson;
|
|
950
|
+
};
|
|
951
|
+
/**
|
|
952
|
+
* Describes the message toshi.workspace.v1.GetWorkflowUsageRequest.
|
|
953
|
+
* Use `create(GetWorkflowUsageRequestSchema)` to create a new message.
|
|
954
|
+
*/
|
|
955
|
+
export declare const GetWorkflowUsageRequestSchema: GenMessage<GetWorkflowUsageRequest, {
|
|
956
|
+
jsonType: GetWorkflowUsageRequestJson;
|
|
957
|
+
}>;
|
|
958
|
+
/**
|
|
959
|
+
* @generated from message toshi.workspace.v1.GetWorkflowUsageResponse
|
|
960
|
+
*/
|
|
961
|
+
export type GetWorkflowUsageResponse = Message<"toshi.workspace.v1.GetWorkflowUsageResponse"> & {
|
|
962
|
+
/**
|
|
963
|
+
* Ordered by minutes, then own_host_minutes, then jobs, each descending,
|
|
964
|
+
* then by repository and workflow, byte by byte. A window with no
|
|
965
|
+
* jobs has no rows.
|
|
966
|
+
*
|
|
967
|
+
* @generated from field: repeated toshi.workspace.v1.WorkflowUsageRow rows = 1;
|
|
968
|
+
*/
|
|
969
|
+
rows: WorkflowUsageRow[];
|
|
970
|
+
/**
|
|
971
|
+
* The window used, with the defaults filled in.
|
|
972
|
+
*
|
|
973
|
+
* @generated from field: google.protobuf.Timestamp from = 2;
|
|
974
|
+
*/
|
|
975
|
+
from?: Timestamp | undefined;
|
|
976
|
+
/**
|
|
977
|
+
* @generated from field: google.protobuf.Timestamp to = 3;
|
|
978
|
+
*/
|
|
979
|
+
to?: Timestamp | undefined;
|
|
980
|
+
};
|
|
981
|
+
/**
|
|
982
|
+
* @generated from message toshi.workspace.v1.GetWorkflowUsageResponse
|
|
983
|
+
*/
|
|
984
|
+
export type GetWorkflowUsageResponseJson = {
|
|
985
|
+
/**
|
|
986
|
+
* Ordered by minutes, then own_host_minutes, then jobs, each descending,
|
|
987
|
+
* then by repository and workflow, byte by byte. A window with no
|
|
988
|
+
* jobs has no rows.
|
|
989
|
+
*
|
|
990
|
+
* @generated from field: repeated toshi.workspace.v1.WorkflowUsageRow rows = 1;
|
|
991
|
+
*/
|
|
992
|
+
rows?: WorkflowUsageRowJson[];
|
|
993
|
+
/**
|
|
994
|
+
* The window used, with the defaults filled in.
|
|
995
|
+
*
|
|
996
|
+
* @generated from field: google.protobuf.Timestamp from = 2;
|
|
997
|
+
*/
|
|
998
|
+
from?: TimestampJson;
|
|
999
|
+
/**
|
|
1000
|
+
* @generated from field: google.protobuf.Timestamp to = 3;
|
|
1001
|
+
*/
|
|
1002
|
+
to?: TimestampJson;
|
|
1003
|
+
};
|
|
1004
|
+
/**
|
|
1005
|
+
* Describes the message toshi.workspace.v1.GetWorkflowUsageResponse.
|
|
1006
|
+
* Use `create(GetWorkflowUsageResponseSchema)` to create a new message.
|
|
1007
|
+
*/
|
|
1008
|
+
export declare const GetWorkflowUsageResponseSchema: GenMessage<GetWorkflowUsageResponse, {
|
|
1009
|
+
jsonType: GetWorkflowUsageResponseJson;
|
|
1010
|
+
}>;
|
|
1011
|
+
/**
|
|
1012
|
+
* @generated from message toshi.workspace.v1.ListPlansRequest
|
|
1013
|
+
*/
|
|
1014
|
+
export type ListPlansRequest = Message<"toshi.workspace.v1.ListPlansRequest"> & {
|
|
1015
|
+
/**
|
|
1016
|
+
* The most plans in one page; zero lets the server choose.
|
|
1017
|
+
*
|
|
1018
|
+
* @generated from field: int32 page_size = 1;
|
|
1019
|
+
*/
|
|
1020
|
+
pageSize: number;
|
|
1021
|
+
/**
|
|
1022
|
+
* From an earlier response's next_page_token; empty for the first page.
|
|
1023
|
+
*
|
|
1024
|
+
* @generated from field: string page_token = 2;
|
|
1025
|
+
*/
|
|
1026
|
+
pageToken: string;
|
|
1027
|
+
};
|
|
1028
|
+
/**
|
|
1029
|
+
* @generated from message toshi.workspace.v1.ListPlansRequest
|
|
1030
|
+
*/
|
|
1031
|
+
export type ListPlansRequestJson = {
|
|
1032
|
+
/**
|
|
1033
|
+
* The most plans in one page; zero lets the server choose.
|
|
1034
|
+
*
|
|
1035
|
+
* @generated from field: int32 page_size = 1;
|
|
1036
|
+
*/
|
|
1037
|
+
pageSize?: number;
|
|
1038
|
+
/**
|
|
1039
|
+
* From an earlier response's next_page_token; empty for the first page.
|
|
1040
|
+
*
|
|
1041
|
+
* @generated from field: string page_token = 2;
|
|
1042
|
+
*/
|
|
1043
|
+
pageToken?: string;
|
|
1044
|
+
};
|
|
1045
|
+
/**
|
|
1046
|
+
* Describes the message toshi.workspace.v1.ListPlansRequest.
|
|
1047
|
+
* Use `create(ListPlansRequestSchema)` to create a new message.
|
|
1048
|
+
*/
|
|
1049
|
+
export declare const ListPlansRequestSchema: GenMessage<ListPlansRequest, {
|
|
1050
|
+
jsonType: ListPlansRequestJson;
|
|
1051
|
+
}>;
|
|
1052
|
+
/**
|
|
1053
|
+
* @generated from message toshi.workspace.v1.ListPlansResponse
|
|
1054
|
+
*/
|
|
1055
|
+
export type ListPlansResponse = Message<"toshi.workspace.v1.ListPlansResponse"> & {
|
|
1056
|
+
/**
|
|
1057
|
+
* @generated from field: repeated toshi.workspace.v1.Plan plans = 1;
|
|
1058
|
+
*/
|
|
1059
|
+
plans: Plan[];
|
|
1060
|
+
/**
|
|
1061
|
+
* Empty on the last page.
|
|
1062
|
+
*
|
|
1063
|
+
* @generated from field: string next_page_token = 2;
|
|
1064
|
+
*/
|
|
1065
|
+
nextPageToken: string;
|
|
1066
|
+
};
|
|
1067
|
+
/**
|
|
1068
|
+
* @generated from message toshi.workspace.v1.ListPlansResponse
|
|
1069
|
+
*/
|
|
1070
|
+
export type ListPlansResponseJson = {
|
|
1071
|
+
/**
|
|
1072
|
+
* @generated from field: repeated toshi.workspace.v1.Plan plans = 1;
|
|
1073
|
+
*/
|
|
1074
|
+
plans?: PlanJson[];
|
|
1075
|
+
/**
|
|
1076
|
+
* Empty on the last page.
|
|
1077
|
+
*
|
|
1078
|
+
* @generated from field: string next_page_token = 2;
|
|
1079
|
+
*/
|
|
1080
|
+
nextPageToken?: string;
|
|
1081
|
+
};
|
|
1082
|
+
/**
|
|
1083
|
+
* Describes the message toshi.workspace.v1.ListPlansResponse.
|
|
1084
|
+
* Use `create(ListPlansResponseSchema)` to create a new message.
|
|
1085
|
+
*/
|
|
1086
|
+
export declare const ListPlansResponseSchema: GenMessage<ListPlansResponse, {
|
|
1087
|
+
jsonType: ListPlansResponseJson;
|
|
1088
|
+
}>;
|
|
1089
|
+
/**
|
|
1090
|
+
* @generated from message toshi.workspace.v1.CreateCheckoutSessionRequest
|
|
1091
|
+
*/
|
|
1092
|
+
export type CreateCheckoutSessionRequest = Message<"toshi.workspace.v1.CreateCheckoutSessionRequest"> & {
|
|
1093
|
+
/**
|
|
1094
|
+
* @generated from field: string plan = 1;
|
|
1095
|
+
*/
|
|
1096
|
+
plan: string;
|
|
1097
|
+
};
|
|
1098
|
+
/**
|
|
1099
|
+
* @generated from message toshi.workspace.v1.CreateCheckoutSessionRequest
|
|
1100
|
+
*/
|
|
1101
|
+
export type CreateCheckoutSessionRequestJson = {
|
|
1102
|
+
/**
|
|
1103
|
+
* @generated from field: string plan = 1;
|
|
1104
|
+
*/
|
|
1105
|
+
plan?: string;
|
|
1106
|
+
};
|
|
1107
|
+
/**
|
|
1108
|
+
* Describes the message toshi.workspace.v1.CreateCheckoutSessionRequest.
|
|
1109
|
+
* Use `create(CreateCheckoutSessionRequestSchema)` to create a new message.
|
|
1110
|
+
*/
|
|
1111
|
+
export declare const CreateCheckoutSessionRequestSchema: GenMessage<CreateCheckoutSessionRequest, {
|
|
1112
|
+
jsonType: CreateCheckoutSessionRequestJson;
|
|
1113
|
+
}>;
|
|
1114
|
+
/**
|
|
1115
|
+
* @generated from message toshi.workspace.v1.CreateCheckoutSessionResponse
|
|
1116
|
+
*/
|
|
1117
|
+
export type CreateCheckoutSessionResponse = Message<"toshi.workspace.v1.CreateCheckoutSessionResponse"> & {
|
|
1118
|
+
/**
|
|
1119
|
+
* The provider's hosted Checkout URL to send the browser to.
|
|
1120
|
+
*
|
|
1121
|
+
* @generated from field: string url = 1;
|
|
1122
|
+
*/
|
|
1123
|
+
url: string;
|
|
1124
|
+
};
|
|
1125
|
+
/**
|
|
1126
|
+
* @generated from message toshi.workspace.v1.CreateCheckoutSessionResponse
|
|
1127
|
+
*/
|
|
1128
|
+
export type CreateCheckoutSessionResponseJson = {
|
|
1129
|
+
/**
|
|
1130
|
+
* The provider's hosted Checkout URL to send the browser to.
|
|
1131
|
+
*
|
|
1132
|
+
* @generated from field: string url = 1;
|
|
1133
|
+
*/
|
|
1134
|
+
url?: string;
|
|
1135
|
+
};
|
|
1136
|
+
/**
|
|
1137
|
+
* Describes the message toshi.workspace.v1.CreateCheckoutSessionResponse.
|
|
1138
|
+
* Use `create(CreateCheckoutSessionResponseSchema)` to create a new message.
|
|
1139
|
+
*/
|
|
1140
|
+
export declare const CreateCheckoutSessionResponseSchema: GenMessage<CreateCheckoutSessionResponse, {
|
|
1141
|
+
jsonType: CreateCheckoutSessionResponseJson;
|
|
1142
|
+
}>;
|
|
1143
|
+
/**
|
|
1144
|
+
* @generated from message toshi.workspace.v1.CreateBillingPortalSessionRequest
|
|
1145
|
+
*/
|
|
1146
|
+
export type CreateBillingPortalSessionRequest = Message<"toshi.workspace.v1.CreateBillingPortalSessionRequest"> & {};
|
|
1147
|
+
/**
|
|
1148
|
+
* @generated from message toshi.workspace.v1.CreateBillingPortalSessionRequest
|
|
1149
|
+
*/
|
|
1150
|
+
export type CreateBillingPortalSessionRequestJson = {};
|
|
1151
|
+
/**
|
|
1152
|
+
* Describes the message toshi.workspace.v1.CreateBillingPortalSessionRequest.
|
|
1153
|
+
* Use `create(CreateBillingPortalSessionRequestSchema)` to create a new message.
|
|
1154
|
+
*/
|
|
1155
|
+
export declare const CreateBillingPortalSessionRequestSchema: GenMessage<CreateBillingPortalSessionRequest, {
|
|
1156
|
+
jsonType: CreateBillingPortalSessionRequestJson;
|
|
1157
|
+
}>;
|
|
1158
|
+
/**
|
|
1159
|
+
* @generated from message toshi.workspace.v1.CreateBillingPortalSessionResponse
|
|
1160
|
+
*/
|
|
1161
|
+
export type CreateBillingPortalSessionResponse = Message<"toshi.workspace.v1.CreateBillingPortalSessionResponse"> & {
|
|
1162
|
+
/**
|
|
1163
|
+
* The provider's hosted Customer Portal URL to send the browser to.
|
|
1164
|
+
*
|
|
1165
|
+
* @generated from field: string url = 1;
|
|
1166
|
+
*/
|
|
1167
|
+
url: string;
|
|
1168
|
+
};
|
|
1169
|
+
/**
|
|
1170
|
+
* @generated from message toshi.workspace.v1.CreateBillingPortalSessionResponse
|
|
1171
|
+
*/
|
|
1172
|
+
export type CreateBillingPortalSessionResponseJson = {
|
|
1173
|
+
/**
|
|
1174
|
+
* The provider's hosted Customer Portal URL to send the browser to.
|
|
1175
|
+
*
|
|
1176
|
+
* @generated from field: string url = 1;
|
|
1177
|
+
*/
|
|
1178
|
+
url?: string;
|
|
1179
|
+
};
|
|
1180
|
+
/**
|
|
1181
|
+
* Describes the message toshi.workspace.v1.CreateBillingPortalSessionResponse.
|
|
1182
|
+
* Use `create(CreateBillingPortalSessionResponseSchema)` to create a new message.
|
|
1183
|
+
*/
|
|
1184
|
+
export declare const CreateBillingPortalSessionResponseSchema: GenMessage<CreateBillingPortalSessionResponse, {
|
|
1185
|
+
jsonType: CreateBillingPortalSessionResponseJson;
|
|
1186
|
+
}>;
|
|
1187
|
+
/**
|
|
1188
|
+
* @generated from message toshi.workspace.v1.GetVersionRequest
|
|
1189
|
+
*/
|
|
1190
|
+
export type GetVersionRequest = Message<"toshi.workspace.v1.GetVersionRequest"> & {};
|
|
1191
|
+
/**
|
|
1192
|
+
* @generated from message toshi.workspace.v1.GetVersionRequest
|
|
1193
|
+
*/
|
|
1194
|
+
export type GetVersionRequestJson = {};
|
|
1195
|
+
/**
|
|
1196
|
+
* Describes the message toshi.workspace.v1.GetVersionRequest.
|
|
1197
|
+
* Use `create(GetVersionRequestSchema)` to create a new message.
|
|
1198
|
+
*/
|
|
1199
|
+
export declare const GetVersionRequestSchema: GenMessage<GetVersionRequest, {
|
|
1200
|
+
jsonType: GetVersionRequestJson;
|
|
1201
|
+
}>;
|
|
1202
|
+
/**
|
|
1203
|
+
* @generated from message toshi.workspace.v1.GetVersionResponse
|
|
1204
|
+
*/
|
|
1205
|
+
export type GetVersionResponse = Message<"toshi.workspace.v1.GetVersionResponse"> & {
|
|
1206
|
+
/**
|
|
1207
|
+
* @generated from field: string version = 1;
|
|
1208
|
+
*/
|
|
1209
|
+
version: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* @generated from field: string commit = 2;
|
|
1212
|
+
*/
|
|
1213
|
+
commit: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* @generated from field: string date = 3;
|
|
1216
|
+
*/
|
|
1217
|
+
date: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* The oldest agent release this control plane process admits when the
|
|
1220
|
+
* workspace's own hosts register; empty when unset, which admits every
|
|
1221
|
+
* agent. Each process reads its own configuration.
|
|
1222
|
+
*
|
|
1223
|
+
* @generated from field: string minimum_agent_version = 4;
|
|
1224
|
+
*/
|
|
1225
|
+
minimumAgentVersion: string;
|
|
1226
|
+
};
|
|
1227
|
+
/**
|
|
1228
|
+
* @generated from message toshi.workspace.v1.GetVersionResponse
|
|
1229
|
+
*/
|
|
1230
|
+
export type GetVersionResponseJson = {
|
|
1231
|
+
/**
|
|
1232
|
+
* @generated from field: string version = 1;
|
|
1233
|
+
*/
|
|
1234
|
+
version?: string;
|
|
1235
|
+
/**
|
|
1236
|
+
* @generated from field: string commit = 2;
|
|
1237
|
+
*/
|
|
1238
|
+
commit?: string;
|
|
1239
|
+
/**
|
|
1240
|
+
* @generated from field: string date = 3;
|
|
1241
|
+
*/
|
|
1242
|
+
date?: string;
|
|
1243
|
+
/**
|
|
1244
|
+
* The oldest agent release this control plane process admits when the
|
|
1245
|
+
* workspace's own hosts register; empty when unset, which admits every
|
|
1246
|
+
* agent. Each process reads its own configuration.
|
|
1247
|
+
*
|
|
1248
|
+
* @generated from field: string minimum_agent_version = 4;
|
|
1249
|
+
*/
|
|
1250
|
+
minimumAgentVersion?: string;
|
|
1251
|
+
};
|
|
1252
|
+
/**
|
|
1253
|
+
* Describes the message toshi.workspace.v1.GetVersionResponse.
|
|
1254
|
+
* Use `create(GetVersionResponseSchema)` to create a new message.
|
|
1255
|
+
*/
|
|
1256
|
+
export declare const GetVersionResponseSchema: GenMessage<GetVersionResponse, {
|
|
1257
|
+
jsonType: GetVersionResponseJson;
|
|
1258
|
+
}>;
|
|
1259
|
+
/**
|
|
1260
|
+
* Workspace owns a plan, an optional concurrency override, and its GitHub
|
|
1261
|
+
* App installations.
|
|
1262
|
+
*
|
|
1263
|
+
* @generated from message toshi.workspace.v1.Workspace
|
|
1264
|
+
*/
|
|
1265
|
+
export type Workspace = Message<"toshi.workspace.v1.Workspace"> & {
|
|
1266
|
+
/**
|
|
1267
|
+
* @generated from field: string id = 1;
|
|
1268
|
+
*/
|
|
1269
|
+
id: string;
|
|
1270
|
+
/**
|
|
1271
|
+
* @generated from field: string name = 2;
|
|
1272
|
+
*/
|
|
1273
|
+
name: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* The override; unset when none is set.
|
|
1276
|
+
*
|
|
1277
|
+
* @generated from field: optional int32 concurrency_cap = 3;
|
|
1278
|
+
*/
|
|
1279
|
+
concurrencyCap?: number | undefined;
|
|
1280
|
+
/**
|
|
1281
|
+
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
1282
|
+
*/
|
|
1283
|
+
createdAt?: Timestamp | undefined;
|
|
1284
|
+
/**
|
|
1285
|
+
* @generated from field: string plan = 5;
|
|
1286
|
+
*/
|
|
1287
|
+
plan: string;
|
|
1288
|
+
/**
|
|
1289
|
+
* The cap the scheduler enforces; 0 means unlimited.
|
|
1290
|
+
*
|
|
1291
|
+
* @generated from field: int32 effective_concurrency = 6;
|
|
1292
|
+
*/
|
|
1293
|
+
effectiveConcurrency: number;
|
|
1294
|
+
/**
|
|
1295
|
+
* active or closed.
|
|
1296
|
+
*
|
|
1297
|
+
* @generated from field: string status = 7;
|
|
1298
|
+
*/
|
|
1299
|
+
status: string;
|
|
1300
|
+
/**
|
|
1301
|
+
* The workspace's jobs wait for its own hosts and never run on shared ones.
|
|
1302
|
+
*
|
|
1303
|
+
* @generated from field: bool own_hosts_only = 8;
|
|
1304
|
+
*/
|
|
1305
|
+
ownHostsOnly: boolean;
|
|
1306
|
+
/**
|
|
1307
|
+
* Monthly spending cap in the smallest unit of the billing currency; 0
|
|
1308
|
+
* means none.
|
|
1309
|
+
*
|
|
1310
|
+
* @generated from field: int64 spend_cap_cents = 9;
|
|
1311
|
+
*/
|
|
1312
|
+
spendCapCents: bigint;
|
|
1313
|
+
/**
|
|
1314
|
+
* The workspace's own jobs-per-hour limit; 0 means the plan's applies.
|
|
1315
|
+
*
|
|
1316
|
+
* @generated from field: int32 max_jobs_per_hour = 10;
|
|
1317
|
+
*/
|
|
1318
|
+
maxJobsPerHour: number;
|
|
1319
|
+
/**
|
|
1320
|
+
* The limit the scheduler enforces: the lower of the workspace's and the
|
|
1321
|
+
* plan's; 0 means none.
|
|
1322
|
+
*
|
|
1323
|
+
* @generated from field: int32 effective_max_jobs_per_hour = 11;
|
|
1324
|
+
*/
|
|
1325
|
+
effectiveMaxJobsPerHour: number;
|
|
1326
|
+
/**
|
|
1327
|
+
* The starter credit granted when the workspace was created; 0 when none.
|
|
1328
|
+
*
|
|
1329
|
+
* @generated from field: int64 starter_credit_cents = 12;
|
|
1330
|
+
*/
|
|
1331
|
+
starterCreditCents: bigint;
|
|
1332
|
+
/**
|
|
1333
|
+
* @generated from field: google.protobuf.Timestamp starter_credit_granted_at = 13;
|
|
1334
|
+
*/
|
|
1335
|
+
starterCreditGrantedAt?: Timestamp | undefined;
|
|
1336
|
+
/**
|
|
1337
|
+
* Shared overflow hosts may take the workspace's jobs; its own overflow hosts
|
|
1338
|
+
* always may.
|
|
1339
|
+
*
|
|
1340
|
+
* @generated from field: bool allow_overflow = 14;
|
|
1341
|
+
*/
|
|
1342
|
+
allowOverflow: boolean;
|
|
1343
|
+
/**
|
|
1344
|
+
* Whether the workspace's dispatch fillers, its cache-warming workflows,
|
|
1345
|
+
* run on idle capacity.
|
|
1346
|
+
*
|
|
1347
|
+
* @generated from field: bool allow_cache_warm = 15;
|
|
1348
|
+
*/
|
|
1349
|
+
allowCacheWarm: boolean;
|
|
1350
|
+
/**
|
|
1351
|
+
* The workspace's effective reservations on shared hosts, ordered
|
|
1352
|
+
* by size: its own rows, and its plan's entries where it has none.
|
|
1353
|
+
*
|
|
1354
|
+
* @generated from field: repeated toshi.workspace.v1.Reservation reservations = 16;
|
|
1355
|
+
*/
|
|
1356
|
+
reservations: Reservation[];
|
|
1357
|
+
/**
|
|
1358
|
+
* Lifecycle state: "active"; "suspended", where new and queued jobs are
|
|
1359
|
+
* held, running jobs finish and the workspace is read-only; "deleting", once
|
|
1360
|
+
* purge_after has passed and while the purge runs; or "deleted", when the
|
|
1361
|
+
* purge is done, its sessions ended and its tokens revoked.
|
|
1362
|
+
*
|
|
1363
|
+
* @generated from field: string state = 17;
|
|
1364
|
+
*/
|
|
1365
|
+
state: string;
|
|
1366
|
+
/**
|
|
1367
|
+
* Why the operator suspended or deleted the workspace; empty when active.
|
|
1368
|
+
*
|
|
1369
|
+
* @generated from field: string state_reason = 18;
|
|
1370
|
+
*/
|
|
1371
|
+
stateReason: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* When the workspace entered its state; unset for a workspace always active.
|
|
1374
|
+
*
|
|
1375
|
+
* @generated from field: google.protobuf.Timestamp state_since = 19;
|
|
1376
|
+
*/
|
|
1377
|
+
stateSince?: Timestamp | undefined;
|
|
1378
|
+
/**
|
|
1379
|
+
* When a scheduled deletion purges the workspace; unset when none.
|
|
1380
|
+
*
|
|
1381
|
+
* @generated from field: google.protobuf.Timestamp purge_after = 20;
|
|
1382
|
+
*/
|
|
1383
|
+
purgeAfter?: Timestamp | undefined;
|
|
1384
|
+
/**
|
|
1385
|
+
* Days of finished job history the workspace keeps; unset when the plan's
|
|
1386
|
+
* applies. 0 keeps forever.
|
|
1387
|
+
*
|
|
1388
|
+
* @generated from field: optional int32 history_days = 21;
|
|
1389
|
+
*/
|
|
1390
|
+
historyDays?: number | undefined;
|
|
1391
|
+
/**
|
|
1392
|
+
* The period the retention pass uses: the workspace's value when set, else
|
|
1393
|
+
* its plan's.
|
|
1394
|
+
*
|
|
1395
|
+
* @generated from field: int32 history_days_effective = 22;
|
|
1396
|
+
*/
|
|
1397
|
+
historyDaysEffective: number;
|
|
1398
|
+
/**
|
|
1399
|
+
* Whether Toshi cancels the workflow run of a job whose VM is gone, so
|
|
1400
|
+
* GitHub shows it within seconds as cancelled; off keeps GitHub's own
|
|
1401
|
+
* failure, about 10 minutes later.
|
|
1402
|
+
*
|
|
1403
|
+
* @generated from field: bool cancel_run_on_vm_death = 23;
|
|
1404
|
+
*/
|
|
1405
|
+
cancelRunOnVmDeath: boolean;
|
|
1406
|
+
/**
|
|
1407
|
+
* The workspace's own limits; unset when its plan's applies. 0 is no cap.
|
|
1408
|
+
*
|
|
1409
|
+
* @generated from field: optional int32 secret_max_sets = 24;
|
|
1410
|
+
*/
|
|
1411
|
+
secretMaxSets?: number | undefined;
|
|
1412
|
+
/**
|
|
1413
|
+
* @generated from field: optional int32 secret_max_keys = 25;
|
|
1414
|
+
*/
|
|
1415
|
+
secretMaxKeys?: number | undefined;
|
|
1416
|
+
/**
|
|
1417
|
+
* @generated from field: optional int64 secret_max_kib = 26;
|
|
1418
|
+
*/
|
|
1419
|
+
secretMaxKib?: bigint | undefined;
|
|
1420
|
+
/**
|
|
1421
|
+
* @generated from field: optional int32 preview_max_ports = 27;
|
|
1422
|
+
*/
|
|
1423
|
+
previewMaxPorts?: number | undefined;
|
|
1424
|
+
/**
|
|
1425
|
+
* The limits Toshi enforces: the workspace's own value when set, else its
|
|
1426
|
+
* plan's. 0 is no cap.
|
|
1427
|
+
*
|
|
1428
|
+
* @generated from field: int32 secret_max_sets_effective = 28;
|
|
1429
|
+
*/
|
|
1430
|
+
secretMaxSetsEffective: number;
|
|
1431
|
+
/**
|
|
1432
|
+
* @generated from field: int32 secret_max_keys_effective = 29;
|
|
1433
|
+
*/
|
|
1434
|
+
secretMaxKeysEffective: number;
|
|
1435
|
+
/**
|
|
1436
|
+
* @generated from field: int64 secret_max_kib_effective = 30;
|
|
1437
|
+
*/
|
|
1438
|
+
secretMaxKibEffective: bigint;
|
|
1439
|
+
/**
|
|
1440
|
+
* @generated from field: int32 preview_max_ports_effective = 31;
|
|
1441
|
+
*/
|
|
1442
|
+
previewMaxPortsEffective: number;
|
|
1443
|
+
};
|
|
1444
|
+
/**
|
|
1445
|
+
* Workspace owns a plan, an optional concurrency override, and its GitHub
|
|
1446
|
+
* App installations.
|
|
1447
|
+
*
|
|
1448
|
+
* @generated from message toshi.workspace.v1.Workspace
|
|
1449
|
+
*/
|
|
1450
|
+
export type WorkspaceJson = {
|
|
1451
|
+
/**
|
|
1452
|
+
* @generated from field: string id = 1;
|
|
1453
|
+
*/
|
|
1454
|
+
id?: string;
|
|
1455
|
+
/**
|
|
1456
|
+
* @generated from field: string name = 2;
|
|
1457
|
+
*/
|
|
1458
|
+
name?: string;
|
|
1459
|
+
/**
|
|
1460
|
+
* The override; unset when none is set.
|
|
1461
|
+
*
|
|
1462
|
+
* @generated from field: optional int32 concurrency_cap = 3;
|
|
1463
|
+
*/
|
|
1464
|
+
concurrencyCap?: number;
|
|
1465
|
+
/**
|
|
1466
|
+
* @generated from field: google.protobuf.Timestamp created_at = 4;
|
|
1467
|
+
*/
|
|
1468
|
+
createdAt?: TimestampJson;
|
|
1469
|
+
/**
|
|
1470
|
+
* @generated from field: string plan = 5;
|
|
1471
|
+
*/
|
|
1472
|
+
plan?: string;
|
|
1473
|
+
/**
|
|
1474
|
+
* The cap the scheduler enforces; 0 means unlimited.
|
|
1475
|
+
*
|
|
1476
|
+
* @generated from field: int32 effective_concurrency = 6;
|
|
1477
|
+
*/
|
|
1478
|
+
effectiveConcurrency?: number;
|
|
1479
|
+
/**
|
|
1480
|
+
* active or closed.
|
|
1481
|
+
*
|
|
1482
|
+
* @generated from field: string status = 7;
|
|
1483
|
+
*/
|
|
1484
|
+
status?: string;
|
|
1485
|
+
/**
|
|
1486
|
+
* The workspace's jobs wait for its own hosts and never run on shared ones.
|
|
1487
|
+
*
|
|
1488
|
+
* @generated from field: bool own_hosts_only = 8;
|
|
1489
|
+
*/
|
|
1490
|
+
ownHostsOnly?: boolean;
|
|
1491
|
+
/**
|
|
1492
|
+
* Monthly spending cap in the smallest unit of the billing currency; 0
|
|
1493
|
+
* means none.
|
|
1494
|
+
*
|
|
1495
|
+
* @generated from field: int64 spend_cap_cents = 9;
|
|
1496
|
+
*/
|
|
1497
|
+
spendCapCents?: string;
|
|
1498
|
+
/**
|
|
1499
|
+
* The workspace's own jobs-per-hour limit; 0 means the plan's applies.
|
|
1500
|
+
*
|
|
1501
|
+
* @generated from field: int32 max_jobs_per_hour = 10;
|
|
1502
|
+
*/
|
|
1503
|
+
maxJobsPerHour?: number;
|
|
1504
|
+
/**
|
|
1505
|
+
* The limit the scheduler enforces: the lower of the workspace's and the
|
|
1506
|
+
* plan's; 0 means none.
|
|
1507
|
+
*
|
|
1508
|
+
* @generated from field: int32 effective_max_jobs_per_hour = 11;
|
|
1509
|
+
*/
|
|
1510
|
+
effectiveMaxJobsPerHour?: number;
|
|
1511
|
+
/**
|
|
1512
|
+
* The starter credit granted when the workspace was created; 0 when none.
|
|
1513
|
+
*
|
|
1514
|
+
* @generated from field: int64 starter_credit_cents = 12;
|
|
1515
|
+
*/
|
|
1516
|
+
starterCreditCents?: string;
|
|
1517
|
+
/**
|
|
1518
|
+
* @generated from field: google.protobuf.Timestamp starter_credit_granted_at = 13;
|
|
1519
|
+
*/
|
|
1520
|
+
starterCreditGrantedAt?: TimestampJson;
|
|
1521
|
+
/**
|
|
1522
|
+
* Shared overflow hosts may take the workspace's jobs; its own overflow hosts
|
|
1523
|
+
* always may.
|
|
1524
|
+
*
|
|
1525
|
+
* @generated from field: bool allow_overflow = 14;
|
|
1526
|
+
*/
|
|
1527
|
+
allowOverflow?: boolean;
|
|
1528
|
+
/**
|
|
1529
|
+
* Whether the workspace's dispatch fillers, its cache-warming workflows,
|
|
1530
|
+
* run on idle capacity.
|
|
1531
|
+
*
|
|
1532
|
+
* @generated from field: bool allow_cache_warm = 15;
|
|
1533
|
+
*/
|
|
1534
|
+
allowCacheWarm?: boolean;
|
|
1535
|
+
/**
|
|
1536
|
+
* The workspace's effective reservations on shared hosts, ordered
|
|
1537
|
+
* by size: its own rows, and its plan's entries where it has none.
|
|
1538
|
+
*
|
|
1539
|
+
* @generated from field: repeated toshi.workspace.v1.Reservation reservations = 16;
|
|
1540
|
+
*/
|
|
1541
|
+
reservations?: ReservationJson[];
|
|
1542
|
+
/**
|
|
1543
|
+
* Lifecycle state: "active"; "suspended", where new and queued jobs are
|
|
1544
|
+
* held, running jobs finish and the workspace is read-only; "deleting", once
|
|
1545
|
+
* purge_after has passed and while the purge runs; or "deleted", when the
|
|
1546
|
+
* purge is done, its sessions ended and its tokens revoked.
|
|
1547
|
+
*
|
|
1548
|
+
* @generated from field: string state = 17;
|
|
1549
|
+
*/
|
|
1550
|
+
state?: string;
|
|
1551
|
+
/**
|
|
1552
|
+
* Why the operator suspended or deleted the workspace; empty when active.
|
|
1553
|
+
*
|
|
1554
|
+
* @generated from field: string state_reason = 18;
|
|
1555
|
+
*/
|
|
1556
|
+
stateReason?: string;
|
|
1557
|
+
/**
|
|
1558
|
+
* When the workspace entered its state; unset for a workspace always active.
|
|
1559
|
+
*
|
|
1560
|
+
* @generated from field: google.protobuf.Timestamp state_since = 19;
|
|
1561
|
+
*/
|
|
1562
|
+
stateSince?: TimestampJson;
|
|
1563
|
+
/**
|
|
1564
|
+
* When a scheduled deletion purges the workspace; unset when none.
|
|
1565
|
+
*
|
|
1566
|
+
* @generated from field: google.protobuf.Timestamp purge_after = 20;
|
|
1567
|
+
*/
|
|
1568
|
+
purgeAfter?: TimestampJson;
|
|
1569
|
+
/**
|
|
1570
|
+
* Days of finished job history the workspace keeps; unset when the plan's
|
|
1571
|
+
* applies. 0 keeps forever.
|
|
1572
|
+
*
|
|
1573
|
+
* @generated from field: optional int32 history_days = 21;
|
|
1574
|
+
*/
|
|
1575
|
+
historyDays?: number;
|
|
1576
|
+
/**
|
|
1577
|
+
* The period the retention pass uses: the workspace's value when set, else
|
|
1578
|
+
* its plan's.
|
|
1579
|
+
*
|
|
1580
|
+
* @generated from field: int32 history_days_effective = 22;
|
|
1581
|
+
*/
|
|
1582
|
+
historyDaysEffective?: number;
|
|
1583
|
+
/**
|
|
1584
|
+
* Whether Toshi cancels the workflow run of a job whose VM is gone, so
|
|
1585
|
+
* GitHub shows it within seconds as cancelled; off keeps GitHub's own
|
|
1586
|
+
* failure, about 10 minutes later.
|
|
1587
|
+
*
|
|
1588
|
+
* @generated from field: bool cancel_run_on_vm_death = 23;
|
|
1589
|
+
*/
|
|
1590
|
+
cancelRunOnVmDeath?: boolean;
|
|
1591
|
+
/**
|
|
1592
|
+
* The workspace's own limits; unset when its plan's applies. 0 is no cap.
|
|
1593
|
+
*
|
|
1594
|
+
* @generated from field: optional int32 secret_max_sets = 24;
|
|
1595
|
+
*/
|
|
1596
|
+
secretMaxSets?: number;
|
|
1597
|
+
/**
|
|
1598
|
+
* @generated from field: optional int32 secret_max_keys = 25;
|
|
1599
|
+
*/
|
|
1600
|
+
secretMaxKeys?: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* @generated from field: optional int64 secret_max_kib = 26;
|
|
1603
|
+
*/
|
|
1604
|
+
secretMaxKib?: string;
|
|
1605
|
+
/**
|
|
1606
|
+
* @generated from field: optional int32 preview_max_ports = 27;
|
|
1607
|
+
*/
|
|
1608
|
+
previewMaxPorts?: number;
|
|
1609
|
+
/**
|
|
1610
|
+
* The limits Toshi enforces: the workspace's own value when set, else its
|
|
1611
|
+
* plan's. 0 is no cap.
|
|
1612
|
+
*
|
|
1613
|
+
* @generated from field: int32 secret_max_sets_effective = 28;
|
|
1614
|
+
*/
|
|
1615
|
+
secretMaxSetsEffective?: number;
|
|
1616
|
+
/**
|
|
1617
|
+
* @generated from field: int32 secret_max_keys_effective = 29;
|
|
1618
|
+
*/
|
|
1619
|
+
secretMaxKeysEffective?: number;
|
|
1620
|
+
/**
|
|
1621
|
+
* @generated from field: int64 secret_max_kib_effective = 30;
|
|
1622
|
+
*/
|
|
1623
|
+
secretMaxKibEffective?: string;
|
|
1624
|
+
/**
|
|
1625
|
+
* @generated from field: int32 preview_max_ports_effective = 31;
|
|
1626
|
+
*/
|
|
1627
|
+
previewMaxPortsEffective?: number;
|
|
1628
|
+
};
|
|
1629
|
+
/**
|
|
1630
|
+
* Describes the message toshi.workspace.v1.Workspace.
|
|
1631
|
+
* Use `create(WorkspaceSchema)` to create a new message.
|
|
1632
|
+
*/
|
|
1633
|
+
export declare const WorkspaceSchema: GenMessage<Workspace, {
|
|
1634
|
+
jsonType: WorkspaceJson;
|
|
1635
|
+
}>;
|
|
1636
|
+
/**
|
|
1637
|
+
* Reservation is a workspace's floor of slots jobs of one runner size on shared
|
|
1638
|
+
* hosts, warm of them on warm VMs.
|
|
1639
|
+
*
|
|
1640
|
+
* @generated from message toshi.workspace.v1.Reservation
|
|
1641
|
+
*/
|
|
1642
|
+
export type Reservation = Message<"toshi.workspace.v1.Reservation"> & {
|
|
1643
|
+
/**
|
|
1644
|
+
* A runner size, as a runs-on label.
|
|
1645
|
+
*
|
|
1646
|
+
* @generated from field: string size = 1;
|
|
1647
|
+
*/
|
|
1648
|
+
size: string;
|
|
1649
|
+
/**
|
|
1650
|
+
* How many slots are reserved; at least 1.
|
|
1651
|
+
*
|
|
1652
|
+
* @generated from field: int32 slots = 2;
|
|
1653
|
+
*/
|
|
1654
|
+
slots: number;
|
|
1655
|
+
/**
|
|
1656
|
+
* How many of the slots are kept on warm VMs; 0 when none.
|
|
1657
|
+
*
|
|
1658
|
+
* @generated from field: int32 warm = 3;
|
|
1659
|
+
*/
|
|
1660
|
+
warm: number;
|
|
1661
|
+
/**
|
|
1662
|
+
* "tenant" when the workspace's own row set it, "plan" when its plan did.
|
|
1663
|
+
*
|
|
1664
|
+
* @generated from field: string source = 4;
|
|
1665
|
+
*/
|
|
1666
|
+
source: string;
|
|
1667
|
+
};
|
|
1668
|
+
/**
|
|
1669
|
+
* Reservation is a workspace's floor of slots jobs of one runner size on shared
|
|
1670
|
+
* hosts, warm of them on warm VMs.
|
|
1671
|
+
*
|
|
1672
|
+
* @generated from message toshi.workspace.v1.Reservation
|
|
1673
|
+
*/
|
|
1674
|
+
export type ReservationJson = {
|
|
1675
|
+
/**
|
|
1676
|
+
* A runner size, as a runs-on label.
|
|
1677
|
+
*
|
|
1678
|
+
* @generated from field: string size = 1;
|
|
1679
|
+
*/
|
|
1680
|
+
size?: string;
|
|
1681
|
+
/**
|
|
1682
|
+
* How many slots are reserved; at least 1.
|
|
1683
|
+
*
|
|
1684
|
+
* @generated from field: int32 slots = 2;
|
|
1685
|
+
*/
|
|
1686
|
+
slots?: number;
|
|
1687
|
+
/**
|
|
1688
|
+
* How many of the slots are kept on warm VMs; 0 when none.
|
|
1689
|
+
*
|
|
1690
|
+
* @generated from field: int32 warm = 3;
|
|
1691
|
+
*/
|
|
1692
|
+
warm?: number;
|
|
1693
|
+
/**
|
|
1694
|
+
* "tenant" when the workspace's own row set it, "plan" when its plan did.
|
|
1695
|
+
*
|
|
1696
|
+
* @generated from field: string source = 4;
|
|
1697
|
+
*/
|
|
1698
|
+
source?: string;
|
|
1699
|
+
};
|
|
1700
|
+
/**
|
|
1701
|
+
* Describes the message toshi.workspace.v1.Reservation.
|
|
1702
|
+
* Use `create(ReservationSchema)` to create a new message.
|
|
1703
|
+
*/
|
|
1704
|
+
export declare const ReservationSchema: GenMessage<Reservation, {
|
|
1705
|
+
jsonType: ReservationJson;
|
|
1706
|
+
}>;
|
|
1707
|
+
/**
|
|
1708
|
+
* WorkspaceBilling is the workspace's billing link, its subscription's
|
|
1709
|
+
* status and the usage reported to the billing provider.
|
|
1710
|
+
*
|
|
1711
|
+
* @generated from message toshi.workspace.v1.WorkspaceBilling
|
|
1712
|
+
*/
|
|
1713
|
+
export type WorkspaceBilling = Message<"toshi.workspace.v1.WorkspaceBilling"> & {
|
|
1714
|
+
/**
|
|
1715
|
+
* Empty when the workspace is not linked to a customer.
|
|
1716
|
+
*
|
|
1717
|
+
* @generated from field: string customer_id = 1;
|
|
1718
|
+
*/
|
|
1719
|
+
customerId: string;
|
|
1720
|
+
/**
|
|
1721
|
+
* Empty when no subscription has set the plan.
|
|
1722
|
+
*
|
|
1723
|
+
* @generated from field: string subscription_id = 2;
|
|
1724
|
+
*/
|
|
1725
|
+
subscriptionId: string;
|
|
1726
|
+
/**
|
|
1727
|
+
* When billable usage begins; unset when the workspace is not billed.
|
|
1728
|
+
*
|
|
1729
|
+
* @generated from field: google.protobuf.Timestamp billing_started_at = 3;
|
|
1730
|
+
*/
|
|
1731
|
+
billingStartedAt?: Timestamp | undefined;
|
|
1732
|
+
/**
|
|
1733
|
+
* The provider's status of the subscription from the last event applied,
|
|
1734
|
+
* such as active or past_due; empty when no event has been applied.
|
|
1735
|
+
*
|
|
1736
|
+
* @generated from field: string subscription_status = 4;
|
|
1737
|
+
*/
|
|
1738
|
+
subscriptionStatus: string;
|
|
1739
|
+
/**
|
|
1740
|
+
* When the subscription entered subscription_status.
|
|
1741
|
+
*
|
|
1742
|
+
* @generated from field: google.protobuf.Timestamp subscription_status_since = 5;
|
|
1743
|
+
*/
|
|
1744
|
+
subscriptionStatusSince?: Timestamp | undefined;
|
|
1745
|
+
/**
|
|
1746
|
+
* Meter events per UTC month and runner size, newest month first.
|
|
1747
|
+
*
|
|
1748
|
+
* @generated from field: repeated toshi.workspace.v1.BillingTotals totals = 6;
|
|
1749
|
+
*/
|
|
1750
|
+
totals: BillingTotals[];
|
|
1751
|
+
/**
|
|
1752
|
+
* The workspace's failed meter events, most recently failed first, at
|
|
1753
|
+
* most 50.
|
|
1754
|
+
*
|
|
1755
|
+
* @generated from field: repeated toshi.workspace.v1.BillingEventFailure failed_events = 7;
|
|
1756
|
+
*/
|
|
1757
|
+
failedEvents: BillingEventFailure[];
|
|
1758
|
+
/**
|
|
1759
|
+
* Minutes of the workspace's jobs that finished this UTC calendar month, as
|
|
1760
|
+
* its statement counts them. The free allowance counts these, with or
|
|
1761
|
+
* without a billing customer.
|
|
1762
|
+
*
|
|
1763
|
+
* @generated from field: int64 minutes_this_month = 8;
|
|
1764
|
+
*/
|
|
1765
|
+
minutesThisMonth: bigint;
|
|
1766
|
+
/**
|
|
1767
|
+
* The free minutes per UTC calendar month of the workspace's plan; 0 when the
|
|
1768
|
+
* plan has none.
|
|
1769
|
+
*
|
|
1770
|
+
* @generated from field: int64 free_minutes_per_month = 9;
|
|
1771
|
+
*/
|
|
1772
|
+
freeMinutesPerMonth: bigint;
|
|
1773
|
+
/**
|
|
1774
|
+
* Whether the billing customer has a payment method.
|
|
1775
|
+
*
|
|
1776
|
+
* @generated from field: bool card_verified = 10;
|
|
1777
|
+
*/
|
|
1778
|
+
cardVerified: boolean;
|
|
1779
|
+
/**
|
|
1780
|
+
* When Toshi first saw a payment method on the billing customer; unset
|
|
1781
|
+
* without one.
|
|
1782
|
+
*
|
|
1783
|
+
* @generated from field: google.protobuf.Timestamp card_verified_at = 11;
|
|
1784
|
+
*/
|
|
1785
|
+
cardVerifiedAt?: Timestamp | undefined;
|
|
1786
|
+
/**
|
|
1787
|
+
* The spending cap; 0 when none.
|
|
1788
|
+
*
|
|
1789
|
+
* @generated from field: int64 spend_cap_cents = 12;
|
|
1790
|
+
*/
|
|
1791
|
+
spendCapCents: bigint;
|
|
1792
|
+
/**
|
|
1793
|
+
* Estimated metered spend this UTC month, rounded up: finished jobs plus
|
|
1794
|
+
* what running ones have run so far, at the plan's current prices.
|
|
1795
|
+
*
|
|
1796
|
+
* @generated from field: int64 spend_cents = 13;
|
|
1797
|
+
*/
|
|
1798
|
+
spendCents: bigint;
|
|
1799
|
+
/**
|
|
1800
|
+
* 0, 80 or 100: the share of the cap spend_cents has reached.
|
|
1801
|
+
*
|
|
1802
|
+
* @generated from field: int32 spend_level = 14;
|
|
1803
|
+
*/
|
|
1804
|
+
spendLevel: number;
|
|
1805
|
+
/**
|
|
1806
|
+
* The currency of the plan's prices, lower case; empty when unknown.
|
|
1807
|
+
*
|
|
1808
|
+
* @generated from field: string currency = 15;
|
|
1809
|
+
*/
|
|
1810
|
+
currency: string;
|
|
1811
|
+
/**
|
|
1812
|
+
* False when the billing provider's prices are not known yet, so
|
|
1813
|
+
* spend_cents means nothing.
|
|
1814
|
+
*
|
|
1815
|
+
* @generated from field: bool spend_known = 16;
|
|
1816
|
+
*/
|
|
1817
|
+
spendKnown: boolean;
|
|
1818
|
+
/**
|
|
1819
|
+
* Starter credit granted, and an estimate of what is left: the credit
|
|
1820
|
+
* less the metered spend since billing started.
|
|
1821
|
+
*
|
|
1822
|
+
* @generated from field: int64 starter_credit_cents = 17;
|
|
1823
|
+
*/
|
|
1824
|
+
starterCreditCents: bigint;
|
|
1825
|
+
/**
|
|
1826
|
+
* @generated from field: int64 starter_credit_left_cents = 18;
|
|
1827
|
+
*/
|
|
1828
|
+
starterCreditLeftCents: bigint;
|
|
1829
|
+
/**
|
|
1830
|
+
* When the credit reached the billing customer; unset before.
|
|
1831
|
+
*
|
|
1832
|
+
* @generated from field: google.protobuf.Timestamp starter_credit_applied_at = 19;
|
|
1833
|
+
*/
|
|
1834
|
+
starterCreditAppliedAt?: Timestamp | undefined;
|
|
1835
|
+
/**
|
|
1836
|
+
* True when a billing provider is configured; false means nothing is metered or charged.
|
|
1837
|
+
*
|
|
1838
|
+
* @generated from field: bool billing_enabled = 20;
|
|
1839
|
+
*/
|
|
1840
|
+
billingEnabled: boolean;
|
|
1841
|
+
/**
|
|
1842
|
+
* The workspace's jobs held now, by reason, in the order GetQueueTimes lists
|
|
1843
|
+
* the reasons.
|
|
1844
|
+
*
|
|
1845
|
+
* @generated from field: repeated toshi.workspace.v1.WorkspaceBilling.HeldJobs held_now = 21;
|
|
1846
|
+
*/
|
|
1847
|
+
heldNow: WorkspaceBilling_HeldJobs[];
|
|
1848
|
+
/**
|
|
1849
|
+
* The workspace's jobs that count against its plan concurrency now: assigned,
|
|
1850
|
+
* starting, running or debugging, on Toshi's hosts rather than its own, and
|
|
1851
|
+
* neither a dispatch filler's job nor an open-source job. This is the count
|
|
1852
|
+
* the scheduler checks against the workspace's limit,
|
|
1853
|
+
* Workspace.effective_concurrency.
|
|
1854
|
+
*
|
|
1855
|
+
* @generated from field: int64 concurrency_used = 22;
|
|
1856
|
+
*/
|
|
1857
|
+
concurrencyUsed: bigint;
|
|
1858
|
+
};
|
|
1859
|
+
/**
|
|
1860
|
+
* WorkspaceBilling is the workspace's billing link, its subscription's
|
|
1861
|
+
* status and the usage reported to the billing provider.
|
|
1862
|
+
*
|
|
1863
|
+
* @generated from message toshi.workspace.v1.WorkspaceBilling
|
|
1864
|
+
*/
|
|
1865
|
+
export type WorkspaceBillingJson = {
|
|
1866
|
+
/**
|
|
1867
|
+
* Empty when the workspace is not linked to a customer.
|
|
1868
|
+
*
|
|
1869
|
+
* @generated from field: string customer_id = 1;
|
|
1870
|
+
*/
|
|
1871
|
+
customerId?: string;
|
|
1872
|
+
/**
|
|
1873
|
+
* Empty when no subscription has set the plan.
|
|
1874
|
+
*
|
|
1875
|
+
* @generated from field: string subscription_id = 2;
|
|
1876
|
+
*/
|
|
1877
|
+
subscriptionId?: string;
|
|
1878
|
+
/**
|
|
1879
|
+
* When billable usage begins; unset when the workspace is not billed.
|
|
1880
|
+
*
|
|
1881
|
+
* @generated from field: google.protobuf.Timestamp billing_started_at = 3;
|
|
1882
|
+
*/
|
|
1883
|
+
billingStartedAt?: TimestampJson;
|
|
1884
|
+
/**
|
|
1885
|
+
* The provider's status of the subscription from the last event applied,
|
|
1886
|
+
* such as active or past_due; empty when no event has been applied.
|
|
1887
|
+
*
|
|
1888
|
+
* @generated from field: string subscription_status = 4;
|
|
1889
|
+
*/
|
|
1890
|
+
subscriptionStatus?: string;
|
|
1891
|
+
/**
|
|
1892
|
+
* When the subscription entered subscription_status.
|
|
1893
|
+
*
|
|
1894
|
+
* @generated from field: google.protobuf.Timestamp subscription_status_since = 5;
|
|
1895
|
+
*/
|
|
1896
|
+
subscriptionStatusSince?: TimestampJson;
|
|
1897
|
+
/**
|
|
1898
|
+
* Meter events per UTC month and runner size, newest month first.
|
|
1899
|
+
*
|
|
1900
|
+
* @generated from field: repeated toshi.workspace.v1.BillingTotals totals = 6;
|
|
1901
|
+
*/
|
|
1902
|
+
totals?: BillingTotalsJson[];
|
|
1903
|
+
/**
|
|
1904
|
+
* The workspace's failed meter events, most recently failed first, at
|
|
1905
|
+
* most 50.
|
|
1906
|
+
*
|
|
1907
|
+
* @generated from field: repeated toshi.workspace.v1.BillingEventFailure failed_events = 7;
|
|
1908
|
+
*/
|
|
1909
|
+
failedEvents?: BillingEventFailureJson[];
|
|
1910
|
+
/**
|
|
1911
|
+
* Minutes of the workspace's jobs that finished this UTC calendar month, as
|
|
1912
|
+
* its statement counts them. The free allowance counts these, with or
|
|
1913
|
+
* without a billing customer.
|
|
1914
|
+
*
|
|
1915
|
+
* @generated from field: int64 minutes_this_month = 8;
|
|
1916
|
+
*/
|
|
1917
|
+
minutesThisMonth?: string;
|
|
1918
|
+
/**
|
|
1919
|
+
* The free minutes per UTC calendar month of the workspace's plan; 0 when the
|
|
1920
|
+
* plan has none.
|
|
1921
|
+
*
|
|
1922
|
+
* @generated from field: int64 free_minutes_per_month = 9;
|
|
1923
|
+
*/
|
|
1924
|
+
freeMinutesPerMonth?: string;
|
|
1925
|
+
/**
|
|
1926
|
+
* Whether the billing customer has a payment method.
|
|
1927
|
+
*
|
|
1928
|
+
* @generated from field: bool card_verified = 10;
|
|
1929
|
+
*/
|
|
1930
|
+
cardVerified?: boolean;
|
|
1931
|
+
/**
|
|
1932
|
+
* When Toshi first saw a payment method on the billing customer; unset
|
|
1933
|
+
* without one.
|
|
1934
|
+
*
|
|
1935
|
+
* @generated from field: google.protobuf.Timestamp card_verified_at = 11;
|
|
1936
|
+
*/
|
|
1937
|
+
cardVerifiedAt?: TimestampJson;
|
|
1938
|
+
/**
|
|
1939
|
+
* The spending cap; 0 when none.
|
|
1940
|
+
*
|
|
1941
|
+
* @generated from field: int64 spend_cap_cents = 12;
|
|
1942
|
+
*/
|
|
1943
|
+
spendCapCents?: string;
|
|
1944
|
+
/**
|
|
1945
|
+
* Estimated metered spend this UTC month, rounded up: finished jobs plus
|
|
1946
|
+
* what running ones have run so far, at the plan's current prices.
|
|
1947
|
+
*
|
|
1948
|
+
* @generated from field: int64 spend_cents = 13;
|
|
1949
|
+
*/
|
|
1950
|
+
spendCents?: string;
|
|
1951
|
+
/**
|
|
1952
|
+
* 0, 80 or 100: the share of the cap spend_cents has reached.
|
|
1953
|
+
*
|
|
1954
|
+
* @generated from field: int32 spend_level = 14;
|
|
1955
|
+
*/
|
|
1956
|
+
spendLevel?: number;
|
|
1957
|
+
/**
|
|
1958
|
+
* The currency of the plan's prices, lower case; empty when unknown.
|
|
1959
|
+
*
|
|
1960
|
+
* @generated from field: string currency = 15;
|
|
1961
|
+
*/
|
|
1962
|
+
currency?: string;
|
|
1963
|
+
/**
|
|
1964
|
+
* False when the billing provider's prices are not known yet, so
|
|
1965
|
+
* spend_cents means nothing.
|
|
1966
|
+
*
|
|
1967
|
+
* @generated from field: bool spend_known = 16;
|
|
1968
|
+
*/
|
|
1969
|
+
spendKnown?: boolean;
|
|
1970
|
+
/**
|
|
1971
|
+
* Starter credit granted, and an estimate of what is left: the credit
|
|
1972
|
+
* less the metered spend since billing started.
|
|
1973
|
+
*
|
|
1974
|
+
* @generated from field: int64 starter_credit_cents = 17;
|
|
1975
|
+
*/
|
|
1976
|
+
starterCreditCents?: string;
|
|
1977
|
+
/**
|
|
1978
|
+
* @generated from field: int64 starter_credit_left_cents = 18;
|
|
1979
|
+
*/
|
|
1980
|
+
starterCreditLeftCents?: string;
|
|
1981
|
+
/**
|
|
1982
|
+
* When the credit reached the billing customer; unset before.
|
|
1983
|
+
*
|
|
1984
|
+
* @generated from field: google.protobuf.Timestamp starter_credit_applied_at = 19;
|
|
1985
|
+
*/
|
|
1986
|
+
starterCreditAppliedAt?: TimestampJson;
|
|
1987
|
+
/**
|
|
1988
|
+
* True when a billing provider is configured; false means nothing is metered or charged.
|
|
1989
|
+
*
|
|
1990
|
+
* @generated from field: bool billing_enabled = 20;
|
|
1991
|
+
*/
|
|
1992
|
+
billingEnabled?: boolean;
|
|
1993
|
+
/**
|
|
1994
|
+
* The workspace's jobs held now, by reason, in the order GetQueueTimes lists
|
|
1995
|
+
* the reasons.
|
|
1996
|
+
*
|
|
1997
|
+
* @generated from field: repeated toshi.workspace.v1.WorkspaceBilling.HeldJobs held_now = 21;
|
|
1998
|
+
*/
|
|
1999
|
+
heldNow?: WorkspaceBilling_HeldJobsJson[];
|
|
2000
|
+
/**
|
|
2001
|
+
* The workspace's jobs that count against its plan concurrency now: assigned,
|
|
2002
|
+
* starting, running or debugging, on Toshi's hosts rather than its own, and
|
|
2003
|
+
* neither a dispatch filler's job nor an open-source job. This is the count
|
|
2004
|
+
* the scheduler checks against the workspace's limit,
|
|
2005
|
+
* Workspace.effective_concurrency.
|
|
2006
|
+
*
|
|
2007
|
+
* @generated from field: int64 concurrency_used = 22;
|
|
2008
|
+
*/
|
|
2009
|
+
concurrencyUsed?: string;
|
|
2010
|
+
};
|
|
2011
|
+
/**
|
|
2012
|
+
* Describes the message toshi.workspace.v1.WorkspaceBilling.
|
|
2013
|
+
* Use `create(WorkspaceBillingSchema)` to create a new message.
|
|
2014
|
+
*/
|
|
2015
|
+
export declare const WorkspaceBillingSchema: GenMessage<WorkspaceBilling, {
|
|
2016
|
+
jsonType: WorkspaceBillingJson;
|
|
2017
|
+
}>;
|
|
2018
|
+
/**
|
|
2019
|
+
* HeldJobs counts the jobs held now for one reason.
|
|
2020
|
+
*
|
|
2021
|
+
* @generated from message toshi.workspace.v1.WorkspaceBilling.HeldJobs
|
|
2022
|
+
*/
|
|
2023
|
+
export type WorkspaceBilling_HeldJobs = Message<"toshi.workspace.v1.WorkspaceBilling.HeldJobs"> & {
|
|
2024
|
+
/**
|
|
2025
|
+
* One of the job hold reasons (see Job.hold_reason).
|
|
2026
|
+
*
|
|
2027
|
+
* @generated from field: string reason = 23;
|
|
2028
|
+
*/
|
|
2029
|
+
reason: string;
|
|
2030
|
+
/**
|
|
2031
|
+
* @generated from field: int64 jobs = 24;
|
|
2032
|
+
*/
|
|
2033
|
+
jobs: bigint;
|
|
2034
|
+
/**
|
|
2035
|
+
* Since when the longest-held of them has been held.
|
|
2036
|
+
*
|
|
2037
|
+
* @generated from field: google.protobuf.Timestamp since = 25;
|
|
2038
|
+
*/
|
|
2039
|
+
since?: Timestamp | undefined;
|
|
2040
|
+
};
|
|
2041
|
+
/**
|
|
2042
|
+
* HeldJobs counts the jobs held now for one reason.
|
|
2043
|
+
*
|
|
2044
|
+
* @generated from message toshi.workspace.v1.WorkspaceBilling.HeldJobs
|
|
2045
|
+
*/
|
|
2046
|
+
export type WorkspaceBilling_HeldJobsJson = {
|
|
2047
|
+
/**
|
|
2048
|
+
* One of the job hold reasons (see Job.hold_reason).
|
|
2049
|
+
*
|
|
2050
|
+
* @generated from field: string reason = 23;
|
|
2051
|
+
*/
|
|
2052
|
+
reason?: string;
|
|
2053
|
+
/**
|
|
2054
|
+
* @generated from field: int64 jobs = 24;
|
|
2055
|
+
*/
|
|
2056
|
+
jobs?: string;
|
|
2057
|
+
/**
|
|
2058
|
+
* Since when the longest-held of them has been held.
|
|
2059
|
+
*
|
|
2060
|
+
* @generated from field: google.protobuf.Timestamp since = 25;
|
|
2061
|
+
*/
|
|
2062
|
+
since?: TimestampJson;
|
|
2063
|
+
};
|
|
2064
|
+
/**
|
|
2065
|
+
* Describes the message toshi.workspace.v1.WorkspaceBilling.HeldJobs.
|
|
2066
|
+
* Use `create(WorkspaceBilling_HeldJobsSchema)` to create a new message.
|
|
2067
|
+
*/
|
|
2068
|
+
export declare const WorkspaceBilling_HeldJobsSchema: GenMessage<WorkspaceBilling_HeldJobs, {
|
|
2069
|
+
jsonType: WorkspaceBilling_HeldJobsJson;
|
|
2070
|
+
}>;
|
|
2071
|
+
/**
|
|
2072
|
+
* BillingTotals counts one month's meter events of one runner size by
|
|
2073
|
+
* delivery state. A month or size without events is left out.
|
|
2074
|
+
*
|
|
2075
|
+
* @generated from message toshi.workspace.v1.BillingTotals
|
|
2076
|
+
*/
|
|
2077
|
+
export type BillingTotals = Message<"toshi.workspace.v1.BillingTotals"> & {
|
|
2078
|
+
/**
|
|
2079
|
+
* The UTC month the jobs finished in, as YYYY-MM.
|
|
2080
|
+
*
|
|
2081
|
+
* @generated from field: string month = 1;
|
|
2082
|
+
*/
|
|
2083
|
+
month: string;
|
|
2084
|
+
/**
|
|
2085
|
+
* The runner size; empty for events recorded before sizes were.
|
|
2086
|
+
*
|
|
2087
|
+
* @generated from field: string size = 2;
|
|
2088
|
+
*/
|
|
2089
|
+
size: string;
|
|
2090
|
+
/**
|
|
2091
|
+
* @generated from field: int64 sent_events = 3;
|
|
2092
|
+
*/
|
|
2093
|
+
sentEvents: bigint;
|
|
2094
|
+
/**
|
|
2095
|
+
* @generated from field: int64 sent_minutes = 4;
|
|
2096
|
+
*/
|
|
2097
|
+
sentMinutes: bigint;
|
|
2098
|
+
/**
|
|
2099
|
+
* @generated from field: int64 pending_events = 5;
|
|
2100
|
+
*/
|
|
2101
|
+
pendingEvents: bigint;
|
|
2102
|
+
/**
|
|
2103
|
+
* @generated from field: int64 pending_minutes = 6;
|
|
2104
|
+
*/
|
|
2105
|
+
pendingMinutes: bigint;
|
|
2106
|
+
/**
|
|
2107
|
+
* @generated from field: int64 failed_events = 7;
|
|
2108
|
+
*/
|
|
2109
|
+
failedEvents: bigint;
|
|
2110
|
+
/**
|
|
2111
|
+
* @generated from field: int64 failed_minutes = 8;
|
|
2112
|
+
*/
|
|
2113
|
+
failedMinutes: bigint;
|
|
2114
|
+
};
|
|
2115
|
+
/**
|
|
2116
|
+
* BillingTotals counts one month's meter events of one runner size by
|
|
2117
|
+
* delivery state. A month or size without events is left out.
|
|
2118
|
+
*
|
|
2119
|
+
* @generated from message toshi.workspace.v1.BillingTotals
|
|
2120
|
+
*/
|
|
2121
|
+
export type BillingTotalsJson = {
|
|
2122
|
+
/**
|
|
2123
|
+
* The UTC month the jobs finished in, as YYYY-MM.
|
|
2124
|
+
*
|
|
2125
|
+
* @generated from field: string month = 1;
|
|
2126
|
+
*/
|
|
2127
|
+
month?: string;
|
|
2128
|
+
/**
|
|
2129
|
+
* The runner size; empty for events recorded before sizes were.
|
|
2130
|
+
*
|
|
2131
|
+
* @generated from field: string size = 2;
|
|
2132
|
+
*/
|
|
2133
|
+
size?: string;
|
|
2134
|
+
/**
|
|
2135
|
+
* @generated from field: int64 sent_events = 3;
|
|
2136
|
+
*/
|
|
2137
|
+
sentEvents?: string;
|
|
2138
|
+
/**
|
|
2139
|
+
* @generated from field: int64 sent_minutes = 4;
|
|
2140
|
+
*/
|
|
2141
|
+
sentMinutes?: string;
|
|
2142
|
+
/**
|
|
2143
|
+
* @generated from field: int64 pending_events = 5;
|
|
2144
|
+
*/
|
|
2145
|
+
pendingEvents?: string;
|
|
2146
|
+
/**
|
|
2147
|
+
* @generated from field: int64 pending_minutes = 6;
|
|
2148
|
+
*/
|
|
2149
|
+
pendingMinutes?: string;
|
|
2150
|
+
/**
|
|
2151
|
+
* @generated from field: int64 failed_events = 7;
|
|
2152
|
+
*/
|
|
2153
|
+
failedEvents?: string;
|
|
2154
|
+
/**
|
|
2155
|
+
* @generated from field: int64 failed_minutes = 8;
|
|
2156
|
+
*/
|
|
2157
|
+
failedMinutes?: string;
|
|
2158
|
+
};
|
|
2159
|
+
/**
|
|
2160
|
+
* Describes the message toshi.workspace.v1.BillingTotals.
|
|
2161
|
+
* Use `create(BillingTotalsSchema)` to create a new message.
|
|
2162
|
+
*/
|
|
2163
|
+
export declare const BillingTotalsSchema: GenMessage<BillingTotals, {
|
|
2164
|
+
jsonType: BillingTotalsJson;
|
|
2165
|
+
}>;
|
|
2166
|
+
/**
|
|
2167
|
+
* BillingEventFailure is a meter event the provider will not be sent again.
|
|
2168
|
+
*
|
|
2169
|
+
* @generated from message toshi.workspace.v1.BillingEventFailure
|
|
2170
|
+
*/
|
|
2171
|
+
export type BillingEventFailure = Message<"toshi.workspace.v1.BillingEventFailure"> & {
|
|
2172
|
+
/**
|
|
2173
|
+
* @generated from field: string job_id = 1;
|
|
2174
|
+
*/
|
|
2175
|
+
jobId: string;
|
|
2176
|
+
/**
|
|
2177
|
+
* @generated from field: string size = 2;
|
|
2178
|
+
*/
|
|
2179
|
+
size: string;
|
|
2180
|
+
/**
|
|
2181
|
+
* @generated from field: string event_name = 3;
|
|
2182
|
+
*/
|
|
2183
|
+
eventName: string;
|
|
2184
|
+
/**
|
|
2185
|
+
* @generated from field: int64 minutes = 4;
|
|
2186
|
+
*/
|
|
2187
|
+
minutes: bigint;
|
|
2188
|
+
/**
|
|
2189
|
+
* When the job finished.
|
|
2190
|
+
*
|
|
2191
|
+
* @generated from field: google.protobuf.Timestamp occurred_at = 5;
|
|
2192
|
+
*/
|
|
2193
|
+
occurredAt?: Timestamp | undefined;
|
|
2194
|
+
/**
|
|
2195
|
+
* @generated from field: google.protobuf.Timestamp failed_at = 6;
|
|
2196
|
+
*/
|
|
2197
|
+
failedAt?: Timestamp | undefined;
|
|
2198
|
+
/**
|
|
2199
|
+
* @generated from field: int32 attempts = 7;
|
|
2200
|
+
*/
|
|
2201
|
+
attempts: number;
|
|
2202
|
+
/**
|
|
2203
|
+
* @generated from field: string last_error = 8;
|
|
2204
|
+
*/
|
|
2205
|
+
lastError: string;
|
|
2206
|
+
};
|
|
2207
|
+
/**
|
|
2208
|
+
* BillingEventFailure is a meter event the provider will not be sent again.
|
|
2209
|
+
*
|
|
2210
|
+
* @generated from message toshi.workspace.v1.BillingEventFailure
|
|
2211
|
+
*/
|
|
2212
|
+
export type BillingEventFailureJson = {
|
|
2213
|
+
/**
|
|
2214
|
+
* @generated from field: string job_id = 1;
|
|
2215
|
+
*/
|
|
2216
|
+
jobId?: string;
|
|
2217
|
+
/**
|
|
2218
|
+
* @generated from field: string size = 2;
|
|
2219
|
+
*/
|
|
2220
|
+
size?: string;
|
|
2221
|
+
/**
|
|
2222
|
+
* @generated from field: string event_name = 3;
|
|
2223
|
+
*/
|
|
2224
|
+
eventName?: string;
|
|
2225
|
+
/**
|
|
2226
|
+
* @generated from field: int64 minutes = 4;
|
|
2227
|
+
*/
|
|
2228
|
+
minutes?: string;
|
|
2229
|
+
/**
|
|
2230
|
+
* When the job finished.
|
|
2231
|
+
*
|
|
2232
|
+
* @generated from field: google.protobuf.Timestamp occurred_at = 5;
|
|
2233
|
+
*/
|
|
2234
|
+
occurredAt?: TimestampJson;
|
|
2235
|
+
/**
|
|
2236
|
+
* @generated from field: google.protobuf.Timestamp failed_at = 6;
|
|
2237
|
+
*/
|
|
2238
|
+
failedAt?: TimestampJson;
|
|
2239
|
+
/**
|
|
2240
|
+
* @generated from field: int32 attempts = 7;
|
|
2241
|
+
*/
|
|
2242
|
+
attempts?: number;
|
|
2243
|
+
/**
|
|
2244
|
+
* @generated from field: string last_error = 8;
|
|
2245
|
+
*/
|
|
2246
|
+
lastError?: string;
|
|
2247
|
+
};
|
|
2248
|
+
/**
|
|
2249
|
+
* Describes the message toshi.workspace.v1.BillingEventFailure.
|
|
2250
|
+
* Use `create(BillingEventFailureSchema)` to create a new message.
|
|
2251
|
+
*/
|
|
2252
|
+
export declare const BillingEventFailureSchema: GenMessage<BillingEventFailure, {
|
|
2253
|
+
jsonType: BillingEventFailureJson;
|
|
2254
|
+
}>;
|
|
2255
|
+
/**
|
|
2256
|
+
* @generated from message toshi.workspace.v1.WorkspaceStatement
|
|
2257
|
+
*/
|
|
2258
|
+
export type WorkspaceStatement = Message<"toshi.workspace.v1.WorkspaceStatement"> & {
|
|
2259
|
+
/**
|
|
2260
|
+
* The month as YYYY-MM, and its bounds: from inclusive, to exclusive.
|
|
2261
|
+
*
|
|
2262
|
+
* @generated from field: string month = 1;
|
|
2263
|
+
*/
|
|
2264
|
+
month: string;
|
|
2265
|
+
/**
|
|
2266
|
+
* @generated from field: google.protobuf.Timestamp from = 2;
|
|
2267
|
+
*/
|
|
2268
|
+
from?: Timestamp | undefined;
|
|
2269
|
+
/**
|
|
2270
|
+
* @generated from field: google.protobuf.Timestamp to = 3;
|
|
2271
|
+
*/
|
|
2272
|
+
to?: Timestamp | undefined;
|
|
2273
|
+
/**
|
|
2274
|
+
* The plans the month's metered minutes were recorded at, comma-separated;
|
|
2275
|
+
* the workspace's plan today when no minute has a recorded price.
|
|
2276
|
+
*
|
|
2277
|
+
* @generated from field: string plan = 4;
|
|
2278
|
+
*/
|
|
2279
|
+
plan: string;
|
|
2280
|
+
/**
|
|
2281
|
+
* The jobs that finished in the month, by runner size and OS, counted as
|
|
2282
|
+
* GetUsage counts them.
|
|
2283
|
+
*
|
|
2284
|
+
* @generated from field: repeated toshi.workspace.v1.StatementUsage usage = 5;
|
|
2285
|
+
*/
|
|
2286
|
+
usage: StatementUsage[];
|
|
2287
|
+
/**
|
|
2288
|
+
* The sum of usage; its size and os are empty.
|
|
2289
|
+
*
|
|
2290
|
+
* @generated from field: toshi.workspace.v1.StatementUsage total = 6;
|
|
2291
|
+
*/
|
|
2292
|
+
total?: StatementUsage | undefined;
|
|
2293
|
+
/**
|
|
2294
|
+
* The minutes metered to the billing provider for the month, by the size
|
|
2295
|
+
* they were recorded under, with their estimated cost.
|
|
2296
|
+
*
|
|
2297
|
+
* @generated from field: repeated toshi.workspace.v1.StatementCharge charges = 7;
|
|
2298
|
+
*/
|
|
2299
|
+
charges: StatementCharge[];
|
|
2300
|
+
/**
|
|
2301
|
+
* The estimated cost of every charge, rounded up once, in the smallest
|
|
2302
|
+
* unit of currency: each job at the price recorded for it when it
|
|
2303
|
+
* finished, and minutes with none at today's prices. Leaves out the
|
|
2304
|
+
* plan's own price and any credit.
|
|
2305
|
+
*
|
|
2306
|
+
* @generated from field: int64 estimated_cents = 8;
|
|
2307
|
+
*/
|
|
2308
|
+
estimatedCents: bigint;
|
|
2309
|
+
/**
|
|
2310
|
+
* Empty when the prices are unknown.
|
|
2311
|
+
*
|
|
2312
|
+
* @generated from field: string currency = 9;
|
|
2313
|
+
*/
|
|
2314
|
+
currency: string;
|
|
2315
|
+
/**
|
|
2316
|
+
* False when some minutes have no recorded price and the billing
|
|
2317
|
+
* provider's prices have not been read: those minutes' amounts are 0.
|
|
2318
|
+
*
|
|
2319
|
+
* @generated from field: bool estimate_known = 10;
|
|
2320
|
+
*/
|
|
2321
|
+
estimateKnown: boolean;
|
|
2322
|
+
/**
|
|
2323
|
+
* The starter credit put on the customer's balance in the month; 0 and
|
|
2324
|
+
* unset when it was not applied in it.
|
|
2325
|
+
*
|
|
2326
|
+
* @generated from field: int64 starter_credit_applied_cents = 11;
|
|
2327
|
+
*/
|
|
2328
|
+
starterCreditAppliedCents: bigint;
|
|
2329
|
+
/**
|
|
2330
|
+
* @generated from field: google.protobuf.Timestamp starter_credit_applied_at = 12;
|
|
2331
|
+
*/
|
|
2332
|
+
starterCreditAppliedAt?: Timestamp | undefined;
|
|
2333
|
+
/**
|
|
2334
|
+
* Held time, from first held to assigned, of the jobs queued in the month
|
|
2335
|
+
* that reached running, by the latest reason each was held.
|
|
2336
|
+
*
|
|
2337
|
+
* @generated from field: repeated toshi.workspace.v1.HoldTimes held = 13;
|
|
2338
|
+
*/
|
|
2339
|
+
held: HoldTimes[];
|
|
2340
|
+
/**
|
|
2341
|
+
* The metered minutes with no recorded price, estimated at today's
|
|
2342
|
+
* prices: finished jobs not yet in the usage outbox, and usage from
|
|
2343
|
+
* before prices were recorded.
|
|
2344
|
+
*
|
|
2345
|
+
* @generated from field: int64 current_price_minutes = 14;
|
|
2346
|
+
*/
|
|
2347
|
+
currentPriceMinutes: bigint;
|
|
2348
|
+
/**
|
|
2349
|
+
* The workspace's filler jobs that finished in the month: not billed, not in
|
|
2350
|
+
* usage or charges. Unset when there were none.
|
|
2351
|
+
*
|
|
2352
|
+
* @generated from field: toshi.workspace.v1.FillerUsage filler = 15;
|
|
2353
|
+
*/
|
|
2354
|
+
filler?: FillerUsage | undefined;
|
|
2355
|
+
/**
|
|
2356
|
+
* True when a billing provider is configured; false means nothing is metered or charged.
|
|
2357
|
+
*
|
|
2358
|
+
* @generated from field: bool billing_enabled = 16;
|
|
2359
|
+
*/
|
|
2360
|
+
billingEnabled: boolean;
|
|
2361
|
+
/**
|
|
2362
|
+
* When the month's estimated spend first reached the workspace's spending
|
|
2363
|
+
* cap; unset when it did not.
|
|
2364
|
+
*
|
|
2365
|
+
* @generated from field: google.protobuf.Timestamp spend_cap_reached_at = 17;
|
|
2366
|
+
*/
|
|
2367
|
+
spendCapReachedAt?: Timestamp | undefined;
|
|
2368
|
+
/**
|
|
2369
|
+
* The cap that was reached, in the smallest unit of currency; 0 when it
|
|
2370
|
+
* was not.
|
|
2371
|
+
*
|
|
2372
|
+
* @generated from field: int64 spend_cap_reached_cents = 18;
|
|
2373
|
+
*/
|
|
2374
|
+
spendCapReachedCents: bigint;
|
|
2375
|
+
/**
|
|
2376
|
+
* The workspace's spending cap when the statement was built; 0 when none.
|
|
2377
|
+
*
|
|
2378
|
+
* @generated from field: int64 spend_cap_cents = 19;
|
|
2379
|
+
*/
|
|
2380
|
+
spendCapCents: bigint;
|
|
2381
|
+
};
|
|
2382
|
+
/**
|
|
2383
|
+
* @generated from message toshi.workspace.v1.WorkspaceStatement
|
|
2384
|
+
*/
|
|
2385
|
+
export type WorkspaceStatementJson = {
|
|
2386
|
+
/**
|
|
2387
|
+
* The month as YYYY-MM, and its bounds: from inclusive, to exclusive.
|
|
2388
|
+
*
|
|
2389
|
+
* @generated from field: string month = 1;
|
|
2390
|
+
*/
|
|
2391
|
+
month?: string;
|
|
2392
|
+
/**
|
|
2393
|
+
* @generated from field: google.protobuf.Timestamp from = 2;
|
|
2394
|
+
*/
|
|
2395
|
+
from?: TimestampJson;
|
|
2396
|
+
/**
|
|
2397
|
+
* @generated from field: google.protobuf.Timestamp to = 3;
|
|
2398
|
+
*/
|
|
2399
|
+
to?: TimestampJson;
|
|
2400
|
+
/**
|
|
2401
|
+
* The plans the month's metered minutes were recorded at, comma-separated;
|
|
2402
|
+
* the workspace's plan today when no minute has a recorded price.
|
|
2403
|
+
*
|
|
2404
|
+
* @generated from field: string plan = 4;
|
|
2405
|
+
*/
|
|
2406
|
+
plan?: string;
|
|
2407
|
+
/**
|
|
2408
|
+
* The jobs that finished in the month, by runner size and OS, counted as
|
|
2409
|
+
* GetUsage counts them.
|
|
2410
|
+
*
|
|
2411
|
+
* @generated from field: repeated toshi.workspace.v1.StatementUsage usage = 5;
|
|
2412
|
+
*/
|
|
2413
|
+
usage?: StatementUsageJson[];
|
|
2414
|
+
/**
|
|
2415
|
+
* The sum of usage; its size and os are empty.
|
|
2416
|
+
*
|
|
2417
|
+
* @generated from field: toshi.workspace.v1.StatementUsage total = 6;
|
|
2418
|
+
*/
|
|
2419
|
+
total?: StatementUsageJson;
|
|
2420
|
+
/**
|
|
2421
|
+
* The minutes metered to the billing provider for the month, by the size
|
|
2422
|
+
* they were recorded under, with their estimated cost.
|
|
2423
|
+
*
|
|
2424
|
+
* @generated from field: repeated toshi.workspace.v1.StatementCharge charges = 7;
|
|
2425
|
+
*/
|
|
2426
|
+
charges?: StatementChargeJson[];
|
|
2427
|
+
/**
|
|
2428
|
+
* The estimated cost of every charge, rounded up once, in the smallest
|
|
2429
|
+
* unit of currency: each job at the price recorded for it when it
|
|
2430
|
+
* finished, and minutes with none at today's prices. Leaves out the
|
|
2431
|
+
* plan's own price and any credit.
|
|
2432
|
+
*
|
|
2433
|
+
* @generated from field: int64 estimated_cents = 8;
|
|
2434
|
+
*/
|
|
2435
|
+
estimatedCents?: string;
|
|
2436
|
+
/**
|
|
2437
|
+
* Empty when the prices are unknown.
|
|
2438
|
+
*
|
|
2439
|
+
* @generated from field: string currency = 9;
|
|
2440
|
+
*/
|
|
2441
|
+
currency?: string;
|
|
2442
|
+
/**
|
|
2443
|
+
* False when some minutes have no recorded price and the billing
|
|
2444
|
+
* provider's prices have not been read: those minutes' amounts are 0.
|
|
2445
|
+
*
|
|
2446
|
+
* @generated from field: bool estimate_known = 10;
|
|
2447
|
+
*/
|
|
2448
|
+
estimateKnown?: boolean;
|
|
2449
|
+
/**
|
|
2450
|
+
* The starter credit put on the customer's balance in the month; 0 and
|
|
2451
|
+
* unset when it was not applied in it.
|
|
2452
|
+
*
|
|
2453
|
+
* @generated from field: int64 starter_credit_applied_cents = 11;
|
|
2454
|
+
*/
|
|
2455
|
+
starterCreditAppliedCents?: string;
|
|
2456
|
+
/**
|
|
2457
|
+
* @generated from field: google.protobuf.Timestamp starter_credit_applied_at = 12;
|
|
2458
|
+
*/
|
|
2459
|
+
starterCreditAppliedAt?: TimestampJson;
|
|
2460
|
+
/**
|
|
2461
|
+
* Held time, from first held to assigned, of the jobs queued in the month
|
|
2462
|
+
* that reached running, by the latest reason each was held.
|
|
2463
|
+
*
|
|
2464
|
+
* @generated from field: repeated toshi.workspace.v1.HoldTimes held = 13;
|
|
2465
|
+
*/
|
|
2466
|
+
held?: HoldTimesJson[];
|
|
2467
|
+
/**
|
|
2468
|
+
* The metered minutes with no recorded price, estimated at today's
|
|
2469
|
+
* prices: finished jobs not yet in the usage outbox, and usage from
|
|
2470
|
+
* before prices were recorded.
|
|
2471
|
+
*
|
|
2472
|
+
* @generated from field: int64 current_price_minutes = 14;
|
|
2473
|
+
*/
|
|
2474
|
+
currentPriceMinutes?: string;
|
|
2475
|
+
/**
|
|
2476
|
+
* The workspace's filler jobs that finished in the month: not billed, not in
|
|
2477
|
+
* usage or charges. Unset when there were none.
|
|
2478
|
+
*
|
|
2479
|
+
* @generated from field: toshi.workspace.v1.FillerUsage filler = 15;
|
|
2480
|
+
*/
|
|
2481
|
+
filler?: FillerUsageJson;
|
|
2482
|
+
/**
|
|
2483
|
+
* True when a billing provider is configured; false means nothing is metered or charged.
|
|
2484
|
+
*
|
|
2485
|
+
* @generated from field: bool billing_enabled = 16;
|
|
2486
|
+
*/
|
|
2487
|
+
billingEnabled?: boolean;
|
|
2488
|
+
/**
|
|
2489
|
+
* When the month's estimated spend first reached the workspace's spending
|
|
2490
|
+
* cap; unset when it did not.
|
|
2491
|
+
*
|
|
2492
|
+
* @generated from field: google.protobuf.Timestamp spend_cap_reached_at = 17;
|
|
2493
|
+
*/
|
|
2494
|
+
spendCapReachedAt?: TimestampJson;
|
|
2495
|
+
/**
|
|
2496
|
+
* The cap that was reached, in the smallest unit of currency; 0 when it
|
|
2497
|
+
* was not.
|
|
2498
|
+
*
|
|
2499
|
+
* @generated from field: int64 spend_cap_reached_cents = 18;
|
|
2500
|
+
*/
|
|
2501
|
+
spendCapReachedCents?: string;
|
|
2502
|
+
/**
|
|
2503
|
+
* The workspace's spending cap when the statement was built; 0 when none.
|
|
2504
|
+
*
|
|
2505
|
+
* @generated from field: int64 spend_cap_cents = 19;
|
|
2506
|
+
*/
|
|
2507
|
+
spendCapCents?: string;
|
|
2508
|
+
};
|
|
2509
|
+
/**
|
|
2510
|
+
* Describes the message toshi.workspace.v1.WorkspaceStatement.
|
|
2511
|
+
* Use `create(WorkspaceStatementSchema)` to create a new message.
|
|
2512
|
+
*/
|
|
2513
|
+
export declare const WorkspaceStatementSchema: GenMessage<WorkspaceStatement, {
|
|
2514
|
+
jsonType: WorkspaceStatementJson;
|
|
2515
|
+
}>;
|
|
2516
|
+
/**
|
|
2517
|
+
* @generated from message toshi.workspace.v1.StatementUsage
|
|
2518
|
+
*/
|
|
2519
|
+
export type StatementUsage = Message<"toshi.workspace.v1.StatementUsage"> & {
|
|
2520
|
+
/**
|
|
2521
|
+
* @generated from field: string size = 1;
|
|
2522
|
+
*/
|
|
2523
|
+
size: string;
|
|
2524
|
+
/**
|
|
2525
|
+
* @generated from field: string os = 2;
|
|
2526
|
+
*/
|
|
2527
|
+
os: string;
|
|
2528
|
+
/**
|
|
2529
|
+
* @generated from field: int64 jobs = 3;
|
|
2530
|
+
*/
|
|
2531
|
+
jobs: bigint;
|
|
2532
|
+
/**
|
|
2533
|
+
* Billable minutes on shared hosts, rounded up per job.
|
|
2534
|
+
*
|
|
2535
|
+
* @generated from field: int64 minutes = 4;
|
|
2536
|
+
*/
|
|
2537
|
+
minutes: bigint;
|
|
2538
|
+
/**
|
|
2539
|
+
* Minutes on the workspace's own hosts, which are not billed.
|
|
2540
|
+
*
|
|
2541
|
+
* @generated from field: int64 own_host_minutes = 5;
|
|
2542
|
+
*/
|
|
2543
|
+
ownHostMinutes: bigint;
|
|
2544
|
+
/**
|
|
2545
|
+
* The part of minutes and own_host_minutes spent in debug sessions.
|
|
2546
|
+
*
|
|
2547
|
+
* @generated from field: int64 debug_minutes = 6;
|
|
2548
|
+
*/
|
|
2549
|
+
debugMinutes: bigint;
|
|
2550
|
+
/**
|
|
2551
|
+
* The part of minutes that ran on overflow hosts.
|
|
2552
|
+
*
|
|
2553
|
+
* @generated from field: int64 overflow_minutes = 7;
|
|
2554
|
+
*/
|
|
2555
|
+
overflowMinutes: bigint;
|
|
2556
|
+
/**
|
|
2557
|
+
* Reserved slot-hours the workspace held for this size in the statement's
|
|
2558
|
+
* window. A size with reserved hours but no finished job still
|
|
2559
|
+
* gets a row, with zero minutes.
|
|
2560
|
+
*
|
|
2561
|
+
* @generated from field: int64 reserved_slot_hours = 8;
|
|
2562
|
+
*/
|
|
2563
|
+
reservedSlotHours: bigint;
|
|
2564
|
+
/**
|
|
2565
|
+
* Toshi's own word for the jobs in this entry when Toshi ended them
|
|
2566
|
+
* itself (the values of Job.outcome); empty for every other entry.
|
|
2567
|
+
*
|
|
2568
|
+
* @generated from field: string outcome = 9;
|
|
2569
|
+
*/
|
|
2570
|
+
outcome: string;
|
|
2571
|
+
};
|
|
2572
|
+
/**
|
|
2573
|
+
* @generated from message toshi.workspace.v1.StatementUsage
|
|
2574
|
+
*/
|
|
2575
|
+
export type StatementUsageJson = {
|
|
2576
|
+
/**
|
|
2577
|
+
* @generated from field: string size = 1;
|
|
2578
|
+
*/
|
|
2579
|
+
size?: string;
|
|
2580
|
+
/**
|
|
2581
|
+
* @generated from field: string os = 2;
|
|
2582
|
+
*/
|
|
2583
|
+
os?: string;
|
|
2584
|
+
/**
|
|
2585
|
+
* @generated from field: int64 jobs = 3;
|
|
2586
|
+
*/
|
|
2587
|
+
jobs?: string;
|
|
2588
|
+
/**
|
|
2589
|
+
* Billable minutes on shared hosts, rounded up per job.
|
|
2590
|
+
*
|
|
2591
|
+
* @generated from field: int64 minutes = 4;
|
|
2592
|
+
*/
|
|
2593
|
+
minutes?: string;
|
|
2594
|
+
/**
|
|
2595
|
+
* Minutes on the workspace's own hosts, which are not billed.
|
|
2596
|
+
*
|
|
2597
|
+
* @generated from field: int64 own_host_minutes = 5;
|
|
2598
|
+
*/
|
|
2599
|
+
ownHostMinutes?: string;
|
|
2600
|
+
/**
|
|
2601
|
+
* The part of minutes and own_host_minutes spent in debug sessions.
|
|
2602
|
+
*
|
|
2603
|
+
* @generated from field: int64 debug_minutes = 6;
|
|
2604
|
+
*/
|
|
2605
|
+
debugMinutes?: string;
|
|
2606
|
+
/**
|
|
2607
|
+
* The part of minutes that ran on overflow hosts.
|
|
2608
|
+
*
|
|
2609
|
+
* @generated from field: int64 overflow_minutes = 7;
|
|
2610
|
+
*/
|
|
2611
|
+
overflowMinutes?: string;
|
|
2612
|
+
/**
|
|
2613
|
+
* Reserved slot-hours the workspace held for this size in the statement's
|
|
2614
|
+
* window. A size with reserved hours but no finished job still
|
|
2615
|
+
* gets a row, with zero minutes.
|
|
2616
|
+
*
|
|
2617
|
+
* @generated from field: int64 reserved_slot_hours = 8;
|
|
2618
|
+
*/
|
|
2619
|
+
reservedSlotHours?: string;
|
|
2620
|
+
/**
|
|
2621
|
+
* Toshi's own word for the jobs in this entry when Toshi ended them
|
|
2622
|
+
* itself (the values of Job.outcome); empty for every other entry.
|
|
2623
|
+
*
|
|
2624
|
+
* @generated from field: string outcome = 9;
|
|
2625
|
+
*/
|
|
2626
|
+
outcome?: string;
|
|
2627
|
+
};
|
|
2628
|
+
/**
|
|
2629
|
+
* Describes the message toshi.workspace.v1.StatementUsage.
|
|
2630
|
+
* Use `create(StatementUsageSchema)` to create a new message.
|
|
2631
|
+
*/
|
|
2632
|
+
export declare const StatementUsageSchema: GenMessage<StatementUsage, {
|
|
2633
|
+
jsonType: StatementUsageJson;
|
|
2634
|
+
}>;
|
|
2635
|
+
/**
|
|
2636
|
+
* @generated from message toshi.workspace.v1.StatementCharge
|
|
2637
|
+
*/
|
|
2638
|
+
export type StatementCharge = Message<"toshi.workspace.v1.StatementCharge"> & {
|
|
2639
|
+
/**
|
|
2640
|
+
* Empty for usage recorded without a size, priced at the plan's highest
|
|
2641
|
+
* per-minute price.
|
|
2642
|
+
*
|
|
2643
|
+
* @generated from field: string size = 1;
|
|
2644
|
+
*/
|
|
2645
|
+
size: string;
|
|
2646
|
+
/**
|
|
2647
|
+
* @generated from field: int64 minutes = 2;
|
|
2648
|
+
*/
|
|
2649
|
+
minutes: bigint;
|
|
2650
|
+
/**
|
|
2651
|
+
* The minutes at their recorded prices, or today's for minutes with none,
|
|
2652
|
+
* rounded up.
|
|
2653
|
+
*
|
|
2654
|
+
* @generated from field: int64 estimated_cents = 3;
|
|
2655
|
+
*/
|
|
2656
|
+
estimatedCents: bigint;
|
|
2657
|
+
};
|
|
2658
|
+
/**
|
|
2659
|
+
* @generated from message toshi.workspace.v1.StatementCharge
|
|
2660
|
+
*/
|
|
2661
|
+
export type StatementChargeJson = {
|
|
2662
|
+
/**
|
|
2663
|
+
* Empty for usage recorded without a size, priced at the plan's highest
|
|
2664
|
+
* per-minute price.
|
|
2665
|
+
*
|
|
2666
|
+
* @generated from field: string size = 1;
|
|
2667
|
+
*/
|
|
2668
|
+
size?: string;
|
|
2669
|
+
/**
|
|
2670
|
+
* @generated from field: int64 minutes = 2;
|
|
2671
|
+
*/
|
|
2672
|
+
minutes?: string;
|
|
2673
|
+
/**
|
|
2674
|
+
* The minutes at their recorded prices, or today's for minutes with none,
|
|
2675
|
+
* rounded up.
|
|
2676
|
+
*
|
|
2677
|
+
* @generated from field: int64 estimated_cents = 3;
|
|
2678
|
+
*/
|
|
2679
|
+
estimatedCents?: string;
|
|
2680
|
+
};
|
|
2681
|
+
/**
|
|
2682
|
+
* Describes the message toshi.workspace.v1.StatementCharge.
|
|
2683
|
+
* Use `create(StatementChargeSchema)` to create a new message.
|
|
2684
|
+
*/
|
|
2685
|
+
export declare const StatementChargeSchema: GenMessage<StatementCharge, {
|
|
2686
|
+
jsonType: StatementChargeJson;
|
|
2687
|
+
}>;
|
|
2688
|
+
/**
|
|
2689
|
+
* @generated from message toshi.workspace.v1.HoldTimes
|
|
2690
|
+
*/
|
|
2691
|
+
export type HoldTimes = Message<"toshi.workspace.v1.HoldTimes"> & {
|
|
2692
|
+
/**
|
|
2693
|
+
* One of the job hold reasons (see Job.hold_reason), as the
|
|
2694
|
+
* toshi_jobs_held metric labels them.
|
|
2695
|
+
*
|
|
2696
|
+
* @generated from field: string reason = 1;
|
|
2697
|
+
*/
|
|
2698
|
+
reason: string;
|
|
2699
|
+
/**
|
|
2700
|
+
* The jobs held for this reason whose hold ended (they were assigned and started), and their held time in milliseconds (nearest-rank).
|
|
2701
|
+
*
|
|
2702
|
+
* @generated from field: int64 jobs = 2;
|
|
2703
|
+
*/
|
|
2704
|
+
jobs: bigint;
|
|
2705
|
+
/**
|
|
2706
|
+
* @generated from field: int64 p50_ms = 3;
|
|
2707
|
+
*/
|
|
2708
|
+
p50Ms: bigint;
|
|
2709
|
+
/**
|
|
2710
|
+
* @generated from field: int64 p90_ms = 4;
|
|
2711
|
+
*/
|
|
2712
|
+
p90Ms: bigint;
|
|
2713
|
+
/**
|
|
2714
|
+
* @generated from field: int64 max_ms = 5;
|
|
2715
|
+
*/
|
|
2716
|
+
maxMs: bigint;
|
|
2717
|
+
/**
|
|
2718
|
+
* The jobs held for this reason now, whenever they were queued. 0 when
|
|
2719
|
+
* the window ends before now.
|
|
2720
|
+
*
|
|
2721
|
+
* @generated from field: int64 open_jobs = 6;
|
|
2722
|
+
*/
|
|
2723
|
+
openJobs: bigint;
|
|
2724
|
+
/**
|
|
2725
|
+
* Since when the longest-held of them has been held; unset when
|
|
2726
|
+
* open_jobs is 0.
|
|
2727
|
+
*
|
|
2728
|
+
* @generated from field: google.protobuf.Timestamp open_since = 7;
|
|
2729
|
+
*/
|
|
2730
|
+
openSince?: Timestamp | undefined;
|
|
2731
|
+
};
|
|
2732
|
+
/**
|
|
2733
|
+
* @generated from message toshi.workspace.v1.HoldTimes
|
|
2734
|
+
*/
|
|
2735
|
+
export type HoldTimesJson = {
|
|
2736
|
+
/**
|
|
2737
|
+
* One of the job hold reasons (see Job.hold_reason), as the
|
|
2738
|
+
* toshi_jobs_held metric labels them.
|
|
2739
|
+
*
|
|
2740
|
+
* @generated from field: string reason = 1;
|
|
2741
|
+
*/
|
|
2742
|
+
reason?: string;
|
|
2743
|
+
/**
|
|
2744
|
+
* The jobs held for this reason whose hold ended (they were assigned and started), and their held time in milliseconds (nearest-rank).
|
|
2745
|
+
*
|
|
2746
|
+
* @generated from field: int64 jobs = 2;
|
|
2747
|
+
*/
|
|
2748
|
+
jobs?: string;
|
|
2749
|
+
/**
|
|
2750
|
+
* @generated from field: int64 p50_ms = 3;
|
|
2751
|
+
*/
|
|
2752
|
+
p50Ms?: string;
|
|
2753
|
+
/**
|
|
2754
|
+
* @generated from field: int64 p90_ms = 4;
|
|
2755
|
+
*/
|
|
2756
|
+
p90Ms?: string;
|
|
2757
|
+
/**
|
|
2758
|
+
* @generated from field: int64 max_ms = 5;
|
|
2759
|
+
*/
|
|
2760
|
+
maxMs?: string;
|
|
2761
|
+
/**
|
|
2762
|
+
* The jobs held for this reason now, whenever they were queued. 0 when
|
|
2763
|
+
* the window ends before now.
|
|
2764
|
+
*
|
|
2765
|
+
* @generated from field: int64 open_jobs = 6;
|
|
2766
|
+
*/
|
|
2767
|
+
openJobs?: string;
|
|
2768
|
+
/**
|
|
2769
|
+
* Since when the longest-held of them has been held; unset when
|
|
2770
|
+
* open_jobs is 0.
|
|
2771
|
+
*
|
|
2772
|
+
* @generated from field: google.protobuf.Timestamp open_since = 7;
|
|
2773
|
+
*/
|
|
2774
|
+
openSince?: TimestampJson;
|
|
2775
|
+
};
|
|
2776
|
+
/**
|
|
2777
|
+
* Describes the message toshi.workspace.v1.HoldTimes.
|
|
2778
|
+
* Use `create(HoldTimesSchema)` to create a new message.
|
|
2779
|
+
*/
|
|
2780
|
+
export declare const HoldTimesSchema: GenMessage<HoldTimes, {
|
|
2781
|
+
jsonType: HoldTimesJson;
|
|
2782
|
+
}>;
|
|
2783
|
+
/**
|
|
2784
|
+
* FillerUsage counts one workspace's filler jobs: runs its dispatch fillers
|
|
2785
|
+
* started on shared room. Not billed; a plan's filler_minutes_per_day bounds
|
|
2786
|
+
* them per UTC day.
|
|
2787
|
+
*
|
|
2788
|
+
* @generated from message toshi.workspace.v1.FillerUsage
|
|
2789
|
+
*/
|
|
2790
|
+
export type FillerUsage = Message<"toshi.workspace.v1.FillerUsage"> & {
|
|
2791
|
+
/**
|
|
2792
|
+
* @generated from field: int64 jobs = 1;
|
|
2793
|
+
*/
|
|
2794
|
+
jobs: bigint;
|
|
2795
|
+
/**
|
|
2796
|
+
* Each job's duration rounded up to whole minutes, on any host.
|
|
2797
|
+
*
|
|
2798
|
+
* @generated from field: int64 minutes = 2;
|
|
2799
|
+
*/
|
|
2800
|
+
minutes: bigint;
|
|
2801
|
+
};
|
|
2802
|
+
/**
|
|
2803
|
+
* FillerUsage counts one workspace's filler jobs: runs its dispatch fillers
|
|
2804
|
+
* started on shared room. Not billed; a plan's filler_minutes_per_day bounds
|
|
2805
|
+
* them per UTC day.
|
|
2806
|
+
*
|
|
2807
|
+
* @generated from message toshi.workspace.v1.FillerUsage
|
|
2808
|
+
*/
|
|
2809
|
+
export type FillerUsageJson = {
|
|
2810
|
+
/**
|
|
2811
|
+
* @generated from field: int64 jobs = 1;
|
|
2812
|
+
*/
|
|
2813
|
+
jobs?: string;
|
|
2814
|
+
/**
|
|
2815
|
+
* Each job's duration rounded up to whole minutes, on any host.
|
|
2816
|
+
*
|
|
2817
|
+
* @generated from field: int64 minutes = 2;
|
|
2818
|
+
*/
|
|
2819
|
+
minutes?: string;
|
|
2820
|
+
};
|
|
2821
|
+
/**
|
|
2822
|
+
* Describes the message toshi.workspace.v1.FillerUsage.
|
|
2823
|
+
* Use `create(FillerUsageSchema)` to create a new message.
|
|
2824
|
+
*/
|
|
2825
|
+
export declare const FillerUsageSchema: GenMessage<FillerUsage, {
|
|
2826
|
+
jsonType: FillerUsageJson;
|
|
2827
|
+
}>;
|
|
2828
|
+
/**
|
|
2829
|
+
* UsageRow counts the jobs of one UTC day, conclusion, outcome and kind.
|
|
2830
|
+
*
|
|
2831
|
+
* @generated from message toshi.workspace.v1.UsageRow
|
|
2832
|
+
*/
|
|
2833
|
+
export type UsageRow = Message<"toshi.workspace.v1.UsageRow"> & {
|
|
2834
|
+
/**
|
|
2835
|
+
* The UTC date of the job's queued_at, as YYYY-MM-DD.
|
|
2836
|
+
*
|
|
2837
|
+
* @generated from field: string day = 1;
|
|
2838
|
+
*/
|
|
2839
|
+
day: string;
|
|
2840
|
+
/**
|
|
2841
|
+
* The job's conclusion as stored, such as "success". Empty for a job with
|
|
2842
|
+
* no conclusion yet.
|
|
2843
|
+
*
|
|
2844
|
+
* @generated from field: string conclusion = 2;
|
|
2845
|
+
*/
|
|
2846
|
+
conclusion: string;
|
|
2847
|
+
/**
|
|
2848
|
+
* Number of jobs in this row.
|
|
2849
|
+
*
|
|
2850
|
+
* @generated from field: int64 jobs = 3;
|
|
2851
|
+
*/
|
|
2852
|
+
jobs: bigint;
|
|
2853
|
+
/**
|
|
2854
|
+
* Billable minutes of those jobs that did not run on a host their workspace
|
|
2855
|
+
* owns: each job that started and finished adds its duration rounded up to
|
|
2856
|
+
* whole minutes; other jobs add 0.
|
|
2857
|
+
*
|
|
2858
|
+
* @generated from field: int64 minutes = 4;
|
|
2859
|
+
*/
|
|
2860
|
+
minutes: bigint;
|
|
2861
|
+
/**
|
|
2862
|
+
* Minutes of the row's jobs that ran on hosts their workspace owns,
|
|
2863
|
+
* rounded as minutes.
|
|
2864
|
+
*
|
|
2865
|
+
* @generated from field: int64 own_host_minutes = 5;
|
|
2866
|
+
*/
|
|
2867
|
+
ownHostMinutes: bigint;
|
|
2868
|
+
/**
|
|
2869
|
+
* The part of minutes and own_host_minutes spent in debug sessions: each
|
|
2870
|
+
* job that had one adds its minutes less the minutes up to its session's
|
|
2871
|
+
* start, both rounded up, so a job's run and debug parts add up
|
|
2872
|
+
* to its minutes.
|
|
2873
|
+
*
|
|
2874
|
+
* @generated from field: int64 debug_minutes = 6;
|
|
2875
|
+
*/
|
|
2876
|
+
debugMinutes: bigint;
|
|
2877
|
+
/**
|
|
2878
|
+
* The part of minutes that ran on overflow hosts.
|
|
2879
|
+
*
|
|
2880
|
+
* @generated from field: int64 overflow_minutes = 7;
|
|
2881
|
+
*/
|
|
2882
|
+
overflowMinutes: bigint;
|
|
2883
|
+
/**
|
|
2884
|
+
* Reserved slot-hours the workspace held in the row's window, on the rows
|
|
2885
|
+
* with a conclusion: 0. The reserved hours themselves are in the row with
|
|
2886
|
+
* an empty conclusion added for each UTC day that has them.
|
|
2887
|
+
*
|
|
2888
|
+
* @generated from field: int64 reserved_slot_hours = 8;
|
|
2889
|
+
*/
|
|
2890
|
+
reservedSlotHours: bigint;
|
|
2891
|
+
/**
|
|
2892
|
+
* Toshi's own word for the jobs in this row when Toshi ended them itself
|
|
2893
|
+
* (the values of Job.outcome); empty for every other row.
|
|
2894
|
+
*
|
|
2895
|
+
* @generated from field: string outcome = 9;
|
|
2896
|
+
*/
|
|
2897
|
+
outcome: string;
|
|
2898
|
+
/**
|
|
2899
|
+
* The kind of the row's jobs: "job", "sandbox" or "service". Empty on a
|
|
2900
|
+
* reserved-hours row.
|
|
2901
|
+
*
|
|
2902
|
+
* @generated from field: string kind = 10;
|
|
2903
|
+
*/
|
|
2904
|
+
kind: string;
|
|
2905
|
+
};
|
|
2906
|
+
/**
|
|
2907
|
+
* UsageRow counts the jobs of one UTC day, conclusion, outcome and kind.
|
|
2908
|
+
*
|
|
2909
|
+
* @generated from message toshi.workspace.v1.UsageRow
|
|
2910
|
+
*/
|
|
2911
|
+
export type UsageRowJson = {
|
|
2912
|
+
/**
|
|
2913
|
+
* The UTC date of the job's queued_at, as YYYY-MM-DD.
|
|
2914
|
+
*
|
|
2915
|
+
* @generated from field: string day = 1;
|
|
2916
|
+
*/
|
|
2917
|
+
day?: string;
|
|
2918
|
+
/**
|
|
2919
|
+
* The job's conclusion as stored, such as "success". Empty for a job with
|
|
2920
|
+
* no conclusion yet.
|
|
2921
|
+
*
|
|
2922
|
+
* @generated from field: string conclusion = 2;
|
|
2923
|
+
*/
|
|
2924
|
+
conclusion?: string;
|
|
2925
|
+
/**
|
|
2926
|
+
* Number of jobs in this row.
|
|
2927
|
+
*
|
|
2928
|
+
* @generated from field: int64 jobs = 3;
|
|
2929
|
+
*/
|
|
2930
|
+
jobs?: string;
|
|
2931
|
+
/**
|
|
2932
|
+
* Billable minutes of those jobs that did not run on a host their workspace
|
|
2933
|
+
* owns: each job that started and finished adds its duration rounded up to
|
|
2934
|
+
* whole minutes; other jobs add 0.
|
|
2935
|
+
*
|
|
2936
|
+
* @generated from field: int64 minutes = 4;
|
|
2937
|
+
*/
|
|
2938
|
+
minutes?: string;
|
|
2939
|
+
/**
|
|
2940
|
+
* Minutes of the row's jobs that ran on hosts their workspace owns,
|
|
2941
|
+
* rounded as minutes.
|
|
2942
|
+
*
|
|
2943
|
+
* @generated from field: int64 own_host_minutes = 5;
|
|
2944
|
+
*/
|
|
2945
|
+
ownHostMinutes?: string;
|
|
2946
|
+
/**
|
|
2947
|
+
* The part of minutes and own_host_minutes spent in debug sessions: each
|
|
2948
|
+
* job that had one adds its minutes less the minutes up to its session's
|
|
2949
|
+
* start, both rounded up, so a job's run and debug parts add up
|
|
2950
|
+
* to its minutes.
|
|
2951
|
+
*
|
|
2952
|
+
* @generated from field: int64 debug_minutes = 6;
|
|
2953
|
+
*/
|
|
2954
|
+
debugMinutes?: string;
|
|
2955
|
+
/**
|
|
2956
|
+
* The part of minutes that ran on overflow hosts.
|
|
2957
|
+
*
|
|
2958
|
+
* @generated from field: int64 overflow_minutes = 7;
|
|
2959
|
+
*/
|
|
2960
|
+
overflowMinutes?: string;
|
|
2961
|
+
/**
|
|
2962
|
+
* Reserved slot-hours the workspace held in the row's window, on the rows
|
|
2963
|
+
* with a conclusion: 0. The reserved hours themselves are in the row with
|
|
2964
|
+
* an empty conclusion added for each UTC day that has them.
|
|
2965
|
+
*
|
|
2966
|
+
* @generated from field: int64 reserved_slot_hours = 8;
|
|
2967
|
+
*/
|
|
2968
|
+
reservedSlotHours?: string;
|
|
2969
|
+
/**
|
|
2970
|
+
* Toshi's own word for the jobs in this row when Toshi ended them itself
|
|
2971
|
+
* (the values of Job.outcome); empty for every other row.
|
|
2972
|
+
*
|
|
2973
|
+
* @generated from field: string outcome = 9;
|
|
2974
|
+
*/
|
|
2975
|
+
outcome?: string;
|
|
2976
|
+
/**
|
|
2977
|
+
* The kind of the row's jobs: "job", "sandbox" or "service". Empty on a
|
|
2978
|
+
* reserved-hours row.
|
|
2979
|
+
*
|
|
2980
|
+
* @generated from field: string kind = 10;
|
|
2981
|
+
*/
|
|
2982
|
+
kind?: string;
|
|
2983
|
+
};
|
|
2984
|
+
/**
|
|
2985
|
+
* Describes the message toshi.workspace.v1.UsageRow.
|
|
2986
|
+
* Use `create(UsageRowSchema)` to create a new message.
|
|
2987
|
+
*/
|
|
2988
|
+
export declare const UsageRowSchema: GenMessage<UsageRow, {
|
|
2989
|
+
jsonType: UsageRowJson;
|
|
2990
|
+
}>;
|
|
2991
|
+
/**
|
|
2992
|
+
* WorkflowUsageRow counts the jobs of one repository and workflow.
|
|
2993
|
+
* Its jobs are the ones GetUsage counts, and their minutes are counted as
|
|
2994
|
+
* in UsageRow.
|
|
2995
|
+
*
|
|
2996
|
+
* @generated from message toshi.workspace.v1.WorkflowUsageRow
|
|
2997
|
+
*/
|
|
2998
|
+
export type WorkflowUsageRow = Message<"toshi.workspace.v1.WorkflowUsageRow"> & {
|
|
2999
|
+
/**
|
|
3000
|
+
* The repository, as owner/name.
|
|
3001
|
+
*
|
|
3002
|
+
* @generated from field: string repository = 1;
|
|
3003
|
+
*/
|
|
3004
|
+
repository: string;
|
|
3005
|
+
/**
|
|
3006
|
+
* The workflow's name from the job's workflow_job webhook. Empty for jobs
|
|
3007
|
+
* stored without one.
|
|
3008
|
+
*
|
|
3009
|
+
* @generated from field: string workflow = 2;
|
|
3010
|
+
*/
|
|
3011
|
+
workflow: string;
|
|
3012
|
+
/**
|
|
3013
|
+
* Number of jobs in this row.
|
|
3014
|
+
*
|
|
3015
|
+
* @generated from field: int64 jobs = 3;
|
|
3016
|
+
*/
|
|
3017
|
+
jobs: bigint;
|
|
3018
|
+
/**
|
|
3019
|
+
* Billable minutes, as UsageRow.minutes.
|
|
3020
|
+
*
|
|
3021
|
+
* @generated from field: int64 minutes = 4;
|
|
3022
|
+
*/
|
|
3023
|
+
minutes: bigint;
|
|
3024
|
+
/**
|
|
3025
|
+
* Minutes on hosts the workspace owns, as UsageRow.own_host_minutes.
|
|
3026
|
+
*
|
|
3027
|
+
* @generated from field: int64 own_host_minutes = 5;
|
|
3028
|
+
*/
|
|
3029
|
+
ownHostMinutes: bigint;
|
|
3030
|
+
/**
|
|
3031
|
+
* Jobs whose conclusion is "failure" or whose outcome is "failed".
|
|
3032
|
+
*
|
|
3033
|
+
* @generated from field: int64 failed_jobs = 6;
|
|
3034
|
+
*/
|
|
3035
|
+
failedJobs: bigint;
|
|
3036
|
+
/**
|
|
3037
|
+
* Jobs that started and finished: the ones the percentiles are over.
|
|
3038
|
+
*
|
|
3039
|
+
* @generated from field: int64 timed_jobs = 7;
|
|
3040
|
+
*/
|
|
3041
|
+
timedJobs: bigint;
|
|
3042
|
+
/**
|
|
3043
|
+
* Nearest-rank percentiles of those jobs' run times, from started_at to
|
|
3044
|
+
* the stop request, or to finished_at when there was none, each rounded
|
|
3045
|
+
* up to a whole second. Both 0 when timed_jobs is 0.
|
|
3046
|
+
*
|
|
3047
|
+
* @generated from field: int64 p50_seconds = 8;
|
|
3048
|
+
*/
|
|
3049
|
+
p50Seconds: bigint;
|
|
3050
|
+
/**
|
|
3051
|
+
* @generated from field: int64 p95_seconds = 9;
|
|
3052
|
+
*/
|
|
3053
|
+
p95Seconds: bigint;
|
|
3054
|
+
};
|
|
3055
|
+
/**
|
|
3056
|
+
* WorkflowUsageRow counts the jobs of one repository and workflow.
|
|
3057
|
+
* Its jobs are the ones GetUsage counts, and their minutes are counted as
|
|
3058
|
+
* in UsageRow.
|
|
3059
|
+
*
|
|
3060
|
+
* @generated from message toshi.workspace.v1.WorkflowUsageRow
|
|
3061
|
+
*/
|
|
3062
|
+
export type WorkflowUsageRowJson = {
|
|
3063
|
+
/**
|
|
3064
|
+
* The repository, as owner/name.
|
|
3065
|
+
*
|
|
3066
|
+
* @generated from field: string repository = 1;
|
|
3067
|
+
*/
|
|
3068
|
+
repository?: string;
|
|
3069
|
+
/**
|
|
3070
|
+
* The workflow's name from the job's workflow_job webhook. Empty for jobs
|
|
3071
|
+
* stored without one.
|
|
3072
|
+
*
|
|
3073
|
+
* @generated from field: string workflow = 2;
|
|
3074
|
+
*/
|
|
3075
|
+
workflow?: string;
|
|
3076
|
+
/**
|
|
3077
|
+
* Number of jobs in this row.
|
|
3078
|
+
*
|
|
3079
|
+
* @generated from field: int64 jobs = 3;
|
|
3080
|
+
*/
|
|
3081
|
+
jobs?: string;
|
|
3082
|
+
/**
|
|
3083
|
+
* Billable minutes, as UsageRow.minutes.
|
|
3084
|
+
*
|
|
3085
|
+
* @generated from field: int64 minutes = 4;
|
|
3086
|
+
*/
|
|
3087
|
+
minutes?: string;
|
|
3088
|
+
/**
|
|
3089
|
+
* Minutes on hosts the workspace owns, as UsageRow.own_host_minutes.
|
|
3090
|
+
*
|
|
3091
|
+
* @generated from field: int64 own_host_minutes = 5;
|
|
3092
|
+
*/
|
|
3093
|
+
ownHostMinutes?: string;
|
|
3094
|
+
/**
|
|
3095
|
+
* Jobs whose conclusion is "failure" or whose outcome is "failed".
|
|
3096
|
+
*
|
|
3097
|
+
* @generated from field: int64 failed_jobs = 6;
|
|
3098
|
+
*/
|
|
3099
|
+
failedJobs?: string;
|
|
3100
|
+
/**
|
|
3101
|
+
* Jobs that started and finished: the ones the percentiles are over.
|
|
3102
|
+
*
|
|
3103
|
+
* @generated from field: int64 timed_jobs = 7;
|
|
3104
|
+
*/
|
|
3105
|
+
timedJobs?: string;
|
|
3106
|
+
/**
|
|
3107
|
+
* Nearest-rank percentiles of those jobs' run times, from started_at to
|
|
3108
|
+
* the stop request, or to finished_at when there was none, each rounded
|
|
3109
|
+
* up to a whole second. Both 0 when timed_jobs is 0.
|
|
3110
|
+
*
|
|
3111
|
+
* @generated from field: int64 p50_seconds = 8;
|
|
3112
|
+
*/
|
|
3113
|
+
p50Seconds?: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* @generated from field: int64 p95_seconds = 9;
|
|
3116
|
+
*/
|
|
3117
|
+
p95Seconds?: string;
|
|
3118
|
+
};
|
|
3119
|
+
/**
|
|
3120
|
+
* Describes the message toshi.workspace.v1.WorkflowUsageRow.
|
|
3121
|
+
* Use `create(WorkflowUsageRowSchema)` to create a new message.
|
|
3122
|
+
*/
|
|
3123
|
+
export declare const WorkflowUsageRowSchema: GenMessage<WorkflowUsageRow, {
|
|
3124
|
+
jsonType: WorkflowUsageRowJson;
|
|
3125
|
+
}>;
|
|
3126
|
+
/**
|
|
3127
|
+
* @generated from message toshi.workspace.v1.Plan
|
|
3128
|
+
*/
|
|
3129
|
+
export type Plan = Message<"toshi.workspace.v1.Plan"> & {
|
|
3130
|
+
/**
|
|
3131
|
+
* @generated from field: string name = 1;
|
|
3132
|
+
*/
|
|
3133
|
+
name: string;
|
|
3134
|
+
/**
|
|
3135
|
+
* @generated from field: int32 concurrency = 2;
|
|
3136
|
+
*/
|
|
3137
|
+
concurrency: number;
|
|
3138
|
+
/**
|
|
3139
|
+
* @generated from field: int32 max_job_minutes = 3;
|
|
3140
|
+
*/
|
|
3141
|
+
maxJobMinutes: number;
|
|
3142
|
+
/**
|
|
3143
|
+
* @generated from field: bool is_default = 4;
|
|
3144
|
+
*/
|
|
3145
|
+
isDefault: boolean;
|
|
3146
|
+
/**
|
|
3147
|
+
* Whether a workspace can buy this plan through Checkout: self-serve billing
|
|
3148
|
+
* is on and exactly one lookup key in billing.plan_map maps to the plan.
|
|
3149
|
+
*
|
|
3150
|
+
* @generated from field: bool self_serve = 5;
|
|
3151
|
+
*/
|
|
3152
|
+
selfServe: boolean;
|
|
3153
|
+
/**
|
|
3154
|
+
* Operating systems the plan allows; empty means every OS.
|
|
3155
|
+
*
|
|
3156
|
+
* @generated from field: repeated string allowed_os = 6;
|
|
3157
|
+
*/
|
|
3158
|
+
allowedOs: string[];
|
|
3159
|
+
/**
|
|
3160
|
+
* Largest runner size the plan allows, as a runs-on label; empty means any
|
|
3161
|
+
* size.
|
|
3162
|
+
*
|
|
3163
|
+
* @generated from field: string max_size = 7;
|
|
3164
|
+
*/
|
|
3165
|
+
maxSize: string;
|
|
3166
|
+
/**
|
|
3167
|
+
* vCPUs a workspace may have in assigned, starting or running jobs at once; 0
|
|
3168
|
+
* means no cap.
|
|
3169
|
+
*
|
|
3170
|
+
* @generated from field: int32 max_vcpu = 8;
|
|
3171
|
+
*/
|
|
3172
|
+
maxVcpu: number;
|
|
3173
|
+
/**
|
|
3174
|
+
* Minutes a workspace may run each UTC calendar month without a verified
|
|
3175
|
+
* card; 0 means the plan has no allowance.
|
|
3176
|
+
*
|
|
3177
|
+
* @generated from field: int32 free_minutes_per_month = 9;
|
|
3178
|
+
*/
|
|
3179
|
+
freeMinutesPerMonth: number;
|
|
3180
|
+
/**
|
|
3181
|
+
* Runs-on labels the plan admits under allowed_os, max_size and max_vcpu.
|
|
3182
|
+
* A size whose OS is in card_required_for also needs a verified card.
|
|
3183
|
+
*
|
|
3184
|
+
* @generated from field: repeated string sizes = 10;
|
|
3185
|
+
*/
|
|
3186
|
+
sizes: string[];
|
|
3187
|
+
/**
|
|
3188
|
+
* OSes that require a verified payment card; empty when billing is off.
|
|
3189
|
+
*
|
|
3190
|
+
* @generated from field: repeated string card_required_for = 11;
|
|
3191
|
+
*/
|
|
3192
|
+
cardRequiredFor: string[];
|
|
3193
|
+
/**
|
|
3194
|
+
* Jobs on shared hosts a workspace may start per 60 minutes; 0 means no
|
|
3195
|
+
* limit.
|
|
3196
|
+
*
|
|
3197
|
+
* @generated from field: int32 max_jobs_per_hour = 12;
|
|
3198
|
+
*/
|
|
3199
|
+
maxJobsPerHour: number;
|
|
3200
|
+
/**
|
|
3201
|
+
* Queued jobs of one workflow run that may wait for a host at once; the
|
|
3202
|
+
* rest wait as burst_guard. 0 means off.
|
|
3203
|
+
*
|
|
3204
|
+
* @generated from field: int32 burst_guard_jobs = 13;
|
|
3205
|
+
*/
|
|
3206
|
+
burstGuardJobs: number;
|
|
3207
|
+
/**
|
|
3208
|
+
* Credit a new workspace on this plan gets once, in the smallest currency
|
|
3209
|
+
* unit; 0 means none.
|
|
3210
|
+
*
|
|
3211
|
+
* @generated from field: int64 starter_credit_cents = 14;
|
|
3212
|
+
*/
|
|
3213
|
+
starterCreditCents: bigint;
|
|
3214
|
+
/**
|
|
3215
|
+
* Days of finished job history workspaces on this plan keep; 0 keeps forever.
|
|
3216
|
+
* Left out of configuration, 90.
|
|
3217
|
+
*
|
|
3218
|
+
* @generated from field: int32 history_days = 15;
|
|
3219
|
+
*/
|
|
3220
|
+
historyDays: number;
|
|
3221
|
+
/**
|
|
3222
|
+
* Longest debug session, in minutes, a failed job on this plan may ask
|
|
3223
|
+
* for with a toshi-debug-<n> label; 0 means the plan has no debug
|
|
3224
|
+
* sessions.
|
|
3225
|
+
*
|
|
3226
|
+
* @generated from field: int32 debug_minutes = 16;
|
|
3227
|
+
*/
|
|
3228
|
+
debugMinutes: number;
|
|
3229
|
+
/**
|
|
3230
|
+
* Hosts a workspace on this plan may own at once, cloud hosts included; 0
|
|
3231
|
+
* means no limit. Left out of configuration, 20.
|
|
3232
|
+
*
|
|
3233
|
+
* @generated from field: int32 max_own_hosts = 17;
|
|
3234
|
+
*/
|
|
3235
|
+
maxOwnHosts: number;
|
|
3236
|
+
/**
|
|
3237
|
+
* Whether the plan is the open-source tier: its workspaces' jobs
|
|
3238
|
+
* pass the open-source gate.
|
|
3239
|
+
*
|
|
3240
|
+
* @generated from field: bool open_source = 18;
|
|
3241
|
+
*/
|
|
3242
|
+
openSource: boolean;
|
|
3243
|
+
};
|
|
3244
|
+
/**
|
|
3245
|
+
* @generated from message toshi.workspace.v1.Plan
|
|
3246
|
+
*/
|
|
3247
|
+
export type PlanJson = {
|
|
3248
|
+
/**
|
|
3249
|
+
* @generated from field: string name = 1;
|
|
3250
|
+
*/
|
|
3251
|
+
name?: string;
|
|
3252
|
+
/**
|
|
3253
|
+
* @generated from field: int32 concurrency = 2;
|
|
3254
|
+
*/
|
|
3255
|
+
concurrency?: number;
|
|
3256
|
+
/**
|
|
3257
|
+
* @generated from field: int32 max_job_minutes = 3;
|
|
3258
|
+
*/
|
|
3259
|
+
maxJobMinutes?: number;
|
|
3260
|
+
/**
|
|
3261
|
+
* @generated from field: bool is_default = 4;
|
|
3262
|
+
*/
|
|
3263
|
+
isDefault?: boolean;
|
|
3264
|
+
/**
|
|
3265
|
+
* Whether a workspace can buy this plan through Checkout: self-serve billing
|
|
3266
|
+
* is on and exactly one lookup key in billing.plan_map maps to the plan.
|
|
3267
|
+
*
|
|
3268
|
+
* @generated from field: bool self_serve = 5;
|
|
3269
|
+
*/
|
|
3270
|
+
selfServe?: boolean;
|
|
3271
|
+
/**
|
|
3272
|
+
* Operating systems the plan allows; empty means every OS.
|
|
3273
|
+
*
|
|
3274
|
+
* @generated from field: repeated string allowed_os = 6;
|
|
3275
|
+
*/
|
|
3276
|
+
allowedOs?: string[];
|
|
3277
|
+
/**
|
|
3278
|
+
* Largest runner size the plan allows, as a runs-on label; empty means any
|
|
3279
|
+
* size.
|
|
3280
|
+
*
|
|
3281
|
+
* @generated from field: string max_size = 7;
|
|
3282
|
+
*/
|
|
3283
|
+
maxSize?: string;
|
|
3284
|
+
/**
|
|
3285
|
+
* vCPUs a workspace may have in assigned, starting or running jobs at once; 0
|
|
3286
|
+
* means no cap.
|
|
3287
|
+
*
|
|
3288
|
+
* @generated from field: int32 max_vcpu = 8;
|
|
3289
|
+
*/
|
|
3290
|
+
maxVcpu?: number;
|
|
3291
|
+
/**
|
|
3292
|
+
* Minutes a workspace may run each UTC calendar month without a verified
|
|
3293
|
+
* card; 0 means the plan has no allowance.
|
|
3294
|
+
*
|
|
3295
|
+
* @generated from field: int32 free_minutes_per_month = 9;
|
|
3296
|
+
*/
|
|
3297
|
+
freeMinutesPerMonth?: number;
|
|
3298
|
+
/**
|
|
3299
|
+
* Runs-on labels the plan admits under allowed_os, max_size and max_vcpu.
|
|
3300
|
+
* A size whose OS is in card_required_for also needs a verified card.
|
|
3301
|
+
*
|
|
3302
|
+
* @generated from field: repeated string sizes = 10;
|
|
3303
|
+
*/
|
|
3304
|
+
sizes?: string[];
|
|
3305
|
+
/**
|
|
3306
|
+
* OSes that require a verified payment card; empty when billing is off.
|
|
3307
|
+
*
|
|
3308
|
+
* @generated from field: repeated string card_required_for = 11;
|
|
3309
|
+
*/
|
|
3310
|
+
cardRequiredFor?: string[];
|
|
3311
|
+
/**
|
|
3312
|
+
* Jobs on shared hosts a workspace may start per 60 minutes; 0 means no
|
|
3313
|
+
* limit.
|
|
3314
|
+
*
|
|
3315
|
+
* @generated from field: int32 max_jobs_per_hour = 12;
|
|
3316
|
+
*/
|
|
3317
|
+
maxJobsPerHour?: number;
|
|
3318
|
+
/**
|
|
3319
|
+
* Queued jobs of one workflow run that may wait for a host at once; the
|
|
3320
|
+
* rest wait as burst_guard. 0 means off.
|
|
3321
|
+
*
|
|
3322
|
+
* @generated from field: int32 burst_guard_jobs = 13;
|
|
3323
|
+
*/
|
|
3324
|
+
burstGuardJobs?: number;
|
|
3325
|
+
/**
|
|
3326
|
+
* Credit a new workspace on this plan gets once, in the smallest currency
|
|
3327
|
+
* unit; 0 means none.
|
|
3328
|
+
*
|
|
3329
|
+
* @generated from field: int64 starter_credit_cents = 14;
|
|
3330
|
+
*/
|
|
3331
|
+
starterCreditCents?: string;
|
|
3332
|
+
/**
|
|
3333
|
+
* Days of finished job history workspaces on this plan keep; 0 keeps forever.
|
|
3334
|
+
* Left out of configuration, 90.
|
|
3335
|
+
*
|
|
3336
|
+
* @generated from field: int32 history_days = 15;
|
|
3337
|
+
*/
|
|
3338
|
+
historyDays?: number;
|
|
3339
|
+
/**
|
|
3340
|
+
* Longest debug session, in minutes, a failed job on this plan may ask
|
|
3341
|
+
* for with a toshi-debug-<n> label; 0 means the plan has no debug
|
|
3342
|
+
* sessions.
|
|
3343
|
+
*
|
|
3344
|
+
* @generated from field: int32 debug_minutes = 16;
|
|
3345
|
+
*/
|
|
3346
|
+
debugMinutes?: number;
|
|
3347
|
+
/**
|
|
3348
|
+
* Hosts a workspace on this plan may own at once, cloud hosts included; 0
|
|
3349
|
+
* means no limit. Left out of configuration, 20.
|
|
3350
|
+
*
|
|
3351
|
+
* @generated from field: int32 max_own_hosts = 17;
|
|
3352
|
+
*/
|
|
3353
|
+
maxOwnHosts?: number;
|
|
3354
|
+
/**
|
|
3355
|
+
* Whether the plan is the open-source tier: its workspaces' jobs
|
|
3356
|
+
* pass the open-source gate.
|
|
3357
|
+
*
|
|
3358
|
+
* @generated from field: bool open_source = 18;
|
|
3359
|
+
*/
|
|
3360
|
+
openSource?: boolean;
|
|
3361
|
+
};
|
|
3362
|
+
/**
|
|
3363
|
+
* Describes the message toshi.workspace.v1.Plan.
|
|
3364
|
+
* Use `create(PlanSchema)` to create a new message.
|
|
3365
|
+
*/
|
|
3366
|
+
export declare const PlanSchema: GenMessage<Plan, {
|
|
3367
|
+
jsonType: PlanJson;
|
|
3368
|
+
}>;
|
|
3369
|
+
/**
|
|
3370
|
+
* EgressHost is one host a workspace's jobs can land on.
|
|
3371
|
+
*
|
|
3372
|
+
* @generated from message toshi.workspace.v1.EgressHost
|
|
3373
|
+
*/
|
|
3374
|
+
export type EgressHost = Message<"toshi.workspace.v1.EgressHost"> & {
|
|
3375
|
+
/**
|
|
3376
|
+
* The host's id and name; empty for a shared host.
|
|
3377
|
+
*
|
|
3378
|
+
* @generated from field: string host_id = 1;
|
|
3379
|
+
*/
|
|
3380
|
+
hostId: string;
|
|
3381
|
+
/**
|
|
3382
|
+
* @generated from field: string name = 2;
|
|
3383
|
+
*/
|
|
3384
|
+
name: string;
|
|
3385
|
+
/**
|
|
3386
|
+
* The host is shared between workspaces rather than the workspace's own.
|
|
3387
|
+
*
|
|
3388
|
+
* @generated from field: bool shared = 3;
|
|
3389
|
+
*/
|
|
3390
|
+
shared: boolean;
|
|
3391
|
+
/**
|
|
3392
|
+
* @generated from field: toshi.workspace.v1.HostEgress egress = 4;
|
|
3393
|
+
*/
|
|
3394
|
+
egress?: HostEgress | undefined;
|
|
3395
|
+
/**
|
|
3396
|
+
* For an EGRESS_SOURCE_PER_JOB host: the addresses its jobs ran from in
|
|
3397
|
+
* the last 7 days, sorted.
|
|
3398
|
+
*
|
|
3399
|
+
* @generated from field: repeated string recent_ips = 5;
|
|
3400
|
+
*/
|
|
3401
|
+
recentIps: string[];
|
|
3402
|
+
/**
|
|
3403
|
+
* The host's cloud ("aws"), empty for a host with an agent.
|
|
3404
|
+
*
|
|
3405
|
+
* @generated from field: string cloud = 6;
|
|
3406
|
+
*/
|
|
3407
|
+
cloud: string;
|
|
3408
|
+
/**
|
|
3409
|
+
* For a cloud host: "public" or "nat".
|
|
3410
|
+
*
|
|
3411
|
+
* @generated from field: string cloud_egress = 7;
|
|
3412
|
+
*/
|
|
3413
|
+
cloudEgress: string;
|
|
3414
|
+
/**
|
|
3415
|
+
* For a "nat" cloud host: a job echoed one of the host's addresses in the
|
|
3416
|
+
* last 7 days. Until then the response is not complete, and recent_ips
|
|
3417
|
+
* shows what jobs echoed.
|
|
3418
|
+
*
|
|
3419
|
+
* @generated from field: bool confirmed = 8;
|
|
3420
|
+
*/
|
|
3421
|
+
confirmed: boolean;
|
|
3422
|
+
};
|
|
3423
|
+
/**
|
|
3424
|
+
* EgressHost is one host a workspace's jobs can land on.
|
|
3425
|
+
*
|
|
3426
|
+
* @generated from message toshi.workspace.v1.EgressHost
|
|
3427
|
+
*/
|
|
3428
|
+
export type EgressHostJson = {
|
|
3429
|
+
/**
|
|
3430
|
+
* The host's id and name; empty for a shared host.
|
|
3431
|
+
*
|
|
3432
|
+
* @generated from field: string host_id = 1;
|
|
3433
|
+
*/
|
|
3434
|
+
hostId?: string;
|
|
3435
|
+
/**
|
|
3436
|
+
* @generated from field: string name = 2;
|
|
3437
|
+
*/
|
|
3438
|
+
name?: string;
|
|
3439
|
+
/**
|
|
3440
|
+
* The host is shared between workspaces rather than the workspace's own.
|
|
3441
|
+
*
|
|
3442
|
+
* @generated from field: bool shared = 3;
|
|
3443
|
+
*/
|
|
3444
|
+
shared?: boolean;
|
|
3445
|
+
/**
|
|
3446
|
+
* @generated from field: toshi.workspace.v1.HostEgress egress = 4;
|
|
3447
|
+
*/
|
|
3448
|
+
egress?: HostEgressJson;
|
|
3449
|
+
/**
|
|
3450
|
+
* For an EGRESS_SOURCE_PER_JOB host: the addresses its jobs ran from in
|
|
3451
|
+
* the last 7 days, sorted.
|
|
3452
|
+
*
|
|
3453
|
+
* @generated from field: repeated string recent_ips = 5;
|
|
3454
|
+
*/
|
|
3455
|
+
recentIps?: string[];
|
|
3456
|
+
/**
|
|
3457
|
+
* The host's cloud ("aws"), empty for a host with an agent.
|
|
3458
|
+
*
|
|
3459
|
+
* @generated from field: string cloud = 6;
|
|
3460
|
+
*/
|
|
3461
|
+
cloud?: string;
|
|
3462
|
+
/**
|
|
3463
|
+
* For a cloud host: "public" or "nat".
|
|
3464
|
+
*
|
|
3465
|
+
* @generated from field: string cloud_egress = 7;
|
|
3466
|
+
*/
|
|
3467
|
+
cloudEgress?: string;
|
|
3468
|
+
/**
|
|
3469
|
+
* For a "nat" cloud host: a job echoed one of the host's addresses in the
|
|
3470
|
+
* last 7 days. Until then the response is not complete, and recent_ips
|
|
3471
|
+
* shows what jobs echoed.
|
|
3472
|
+
*
|
|
3473
|
+
* @generated from field: bool confirmed = 8;
|
|
3474
|
+
*/
|
|
3475
|
+
confirmed?: boolean;
|
|
3476
|
+
};
|
|
3477
|
+
/**
|
|
3478
|
+
* Describes the message toshi.workspace.v1.EgressHost.
|
|
3479
|
+
* Use `create(EgressHostSchema)` to create a new message.
|
|
3480
|
+
*/
|
|
3481
|
+
export declare const EgressHostSchema: GenMessage<EgressHost, {
|
|
3482
|
+
jsonType: EgressHostJson;
|
|
3483
|
+
}>;
|
|
3484
|
+
/**
|
|
3485
|
+
* WorkspaceService reads and sets the caller's workspace: its settings, its
|
|
3486
|
+
* billing and usage, and the plans it may buy.
|
|
3487
|
+
*
|
|
3488
|
+
* A workspace's API token acts on its own workspace; a dashboard session
|
|
3489
|
+
* names one of its workspaces in the Toshi-Workspace header. ListWorkspaces
|
|
3490
|
+
* needs no header. A token limited to a project or an environment is
|
|
3491
|
+
* refused with PERMISSION_DENIED. A suspended workspace keeps its reads,
|
|
3492
|
+
* and every other call is refused for it with FAILED_PRECONDITION. A closed
|
|
3493
|
+
* workspace keeps GetWorkspace, ListWorkspaces, GetUsage,
|
|
3494
|
+
* GetWorkspaceStatement and GetVersion during its read-only period.
|
|
3495
|
+
*
|
|
3496
|
+
* @generated from service toshi.workspace.v1.WorkspaceService
|
|
3497
|
+
*/
|
|
3498
|
+
export declare const WorkspaceService: GenService<{
|
|
3499
|
+
/**
|
|
3500
|
+
* GetWorkspace returns the caller's workspace.
|
|
3501
|
+
*
|
|
3502
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.GetWorkspace
|
|
3503
|
+
*/
|
|
3504
|
+
getWorkspace: {
|
|
3505
|
+
methodKind: "unary";
|
|
3506
|
+
input: typeof GetWorkspaceRequestSchema;
|
|
3507
|
+
output: typeof GetWorkspaceResponseSchema;
|
|
3508
|
+
};
|
|
3509
|
+
/**
|
|
3510
|
+
* ListWorkspaces returns the workspaces of the caller, ordered by ID: a
|
|
3511
|
+
* session's workspaces, or a token's one.
|
|
3512
|
+
*
|
|
3513
|
+
* A page holds 100 workspaces when page_size is zero, and 1000 at most.
|
|
3514
|
+
*
|
|
3515
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.ListWorkspaces
|
|
3516
|
+
*/
|
|
3517
|
+
listWorkspaces: {
|
|
3518
|
+
methodKind: "unary";
|
|
3519
|
+
input: typeof ListWorkspacesRequestSchema;
|
|
3520
|
+
output: typeof ListWorkspacesResponseSchema;
|
|
3521
|
+
};
|
|
3522
|
+
/**
|
|
3523
|
+
* GetWorkspaceBilling returns the workspace's billing customer,
|
|
3524
|
+
* subscription and its status, the usage reported to the billing provider
|
|
3525
|
+
* per month and runner size, and the events that failed. months outside
|
|
3526
|
+
* 0 to 12 fails with INVALID_ARGUMENT.
|
|
3527
|
+
*
|
|
3528
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.GetWorkspaceBilling
|
|
3529
|
+
*/
|
|
3530
|
+
getWorkspaceBilling: {
|
|
3531
|
+
methodKind: "unary";
|
|
3532
|
+
input: typeof GetWorkspaceBillingRequestSchema;
|
|
3533
|
+
output: typeof GetWorkspaceBillingResponseSchema;
|
|
3534
|
+
};
|
|
3535
|
+
/**
|
|
3536
|
+
* GetWorkspaceStatement returns the workspace's usage statement for one
|
|
3537
|
+
* UTC month: minutes by runner size and OS of the jobs that finished in
|
|
3538
|
+
* it, the minutes metered to the billing provider by size with their
|
|
3539
|
+
* estimated cost at the plan's prices, the starter credit applied in it,
|
|
3540
|
+
* and held time by reason. A month not in YYYY-MM form fails with
|
|
3541
|
+
* INVALID_ARGUMENT.
|
|
3542
|
+
*
|
|
3543
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.GetWorkspaceStatement
|
|
3544
|
+
*/
|
|
3545
|
+
getWorkspaceStatement: {
|
|
3546
|
+
methodKind: "unary";
|
|
3547
|
+
input: typeof GetWorkspaceStatementRequestSchema;
|
|
3548
|
+
output: typeof GetWorkspaceStatementResponseSchema;
|
|
3549
|
+
};
|
|
3550
|
+
/**
|
|
3551
|
+
* SetWorkspaceOwnHostsOnly sets whether the workspace's jobs wait for its
|
|
3552
|
+
* own hosts and never run on shared ones, and returns the workspace as
|
|
3553
|
+
* stored.
|
|
3554
|
+
*
|
|
3555
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.SetWorkspaceOwnHostsOnly
|
|
3556
|
+
*/
|
|
3557
|
+
setWorkspaceOwnHostsOnly: {
|
|
3558
|
+
methodKind: "unary";
|
|
3559
|
+
input: typeof SetWorkspaceOwnHostsOnlyRequestSchema;
|
|
3560
|
+
output: typeof SetWorkspaceOwnHostsOnlyResponseSchema;
|
|
3561
|
+
};
|
|
3562
|
+
/**
|
|
3563
|
+
* SetWorkspaceAllowOverflow sets whether shared overflow hosts may take
|
|
3564
|
+
* the workspace's jobs and returns the workspace as stored; its own
|
|
3565
|
+
* overflow hosts always may.
|
|
3566
|
+
*
|
|
3567
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.SetWorkspaceAllowOverflow
|
|
3568
|
+
*/
|
|
3569
|
+
setWorkspaceAllowOverflow: {
|
|
3570
|
+
methodKind: "unary";
|
|
3571
|
+
input: typeof SetWorkspaceAllowOverflowRequestSchema;
|
|
3572
|
+
output: typeof SetWorkspaceAllowOverflowResponseSchema;
|
|
3573
|
+
};
|
|
3574
|
+
/**
|
|
3575
|
+
* SetWorkspaceAllowCacheWarm sets whether the workspace's fillers run and
|
|
3576
|
+
* returns the workspace as stored. Off by default.
|
|
3577
|
+
*
|
|
3578
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.SetWorkspaceAllowCacheWarm
|
|
3579
|
+
*/
|
|
3580
|
+
setWorkspaceAllowCacheWarm: {
|
|
3581
|
+
methodKind: "unary";
|
|
3582
|
+
input: typeof SetWorkspaceAllowCacheWarmRequestSchema;
|
|
3583
|
+
output: typeof SetWorkspaceAllowCacheWarmResponseSchema;
|
|
3584
|
+
};
|
|
3585
|
+
/**
|
|
3586
|
+
* SetWorkspaceCancelRunOnVmDeath sets whether Toshi cancels the workflow
|
|
3587
|
+
* run of the workspace's job when the job's VM is gone and returns the
|
|
3588
|
+
* workspace as stored. On by default.
|
|
3589
|
+
*
|
|
3590
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.SetWorkspaceCancelRunOnVmDeath
|
|
3591
|
+
*/
|
|
3592
|
+
setWorkspaceCancelRunOnVmDeath: {
|
|
3593
|
+
methodKind: "unary";
|
|
3594
|
+
input: typeof SetWorkspaceCancelRunOnVmDeathRequestSchema;
|
|
3595
|
+
output: typeof SetWorkspaceCancelRunOnVmDeathResponseSchema;
|
|
3596
|
+
};
|
|
3597
|
+
/**
|
|
3598
|
+
* SetWorkspaceSpendLimits sets the workspace's monthly spending cap and its
|
|
3599
|
+
* own jobs-per-hour limit, and returns the workspace as stored; an unset
|
|
3600
|
+
* field is left as it is. A negative value, or a max_jobs_per_hour above
|
|
3601
|
+
* the plan's, fails with INVALID_ARGUMENT; a spending cap while billing is
|
|
3602
|
+
* off fails with FAILED_PRECONDITION.
|
|
3603
|
+
*
|
|
3604
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.SetWorkspaceSpendLimits
|
|
3605
|
+
*/
|
|
3606
|
+
setWorkspaceSpendLimits: {
|
|
3607
|
+
methodKind: "unary";
|
|
3608
|
+
input: typeof SetWorkspaceSpendLimitsRequestSchema;
|
|
3609
|
+
output: typeof SetWorkspaceSpendLimitsResponseSchema;
|
|
3610
|
+
};
|
|
3611
|
+
/**
|
|
3612
|
+
* ListEgressIPs returns the public addresses the workspace's jobs may
|
|
3613
|
+
* reach the internet from: the egress addresses of the hosts its jobs can
|
|
3614
|
+
* land on, its own hosts and, unless it runs on its own hosts only, the
|
|
3615
|
+
* shared hosts its plan's operating systems run on.
|
|
3616
|
+
*
|
|
3617
|
+
* A page holds 100 hosts when page_size is zero, and 1000 at most.
|
|
3618
|
+
*
|
|
3619
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.ListEgressIPs
|
|
3620
|
+
*/
|
|
3621
|
+
listEgressIPs: {
|
|
3622
|
+
methodKind: "unary";
|
|
3623
|
+
input: typeof ListEgressIPsRequestSchema;
|
|
3624
|
+
output: typeof ListEgressIPsResponseSchema;
|
|
3625
|
+
};
|
|
3626
|
+
/**
|
|
3627
|
+
* GetUsage returns the workspace's job counts and billable minutes per UTC
|
|
3628
|
+
* day, conclusion, outcome and kind, for the jobs whose queued_at is in
|
|
3629
|
+
* the window. The window defaults to the last 7 days. A window whose from
|
|
3630
|
+
* is not before its to fails with INVALID_ARGUMENT.
|
|
3631
|
+
*
|
|
3632
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.GetUsage
|
|
3633
|
+
*/
|
|
3634
|
+
getUsage: {
|
|
3635
|
+
methodKind: "unary";
|
|
3636
|
+
input: typeof GetUsageRequestSchema;
|
|
3637
|
+
output: typeof GetUsageResponseSchema;
|
|
3638
|
+
};
|
|
3639
|
+
/**
|
|
3640
|
+
* GetQueueTimes returns a queue-time summary (percentiles, maximum and
|
|
3641
|
+
* warm share) for the workspace's jobs that reached running in the
|
|
3642
|
+
* window, where a job is in the window by its queued_at. The window
|
|
3643
|
+
* defaults to the last 7 days. A window whose from is not before its to
|
|
3644
|
+
* fails with INVALID_ARGUMENT.
|
|
3645
|
+
*
|
|
3646
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.GetQueueTimes
|
|
3647
|
+
*/
|
|
3648
|
+
getQueueTimes: {
|
|
3649
|
+
methodKind: "unary";
|
|
3650
|
+
input: typeof GetQueueTimesRequestSchema;
|
|
3651
|
+
output: typeof GetQueueTimesResponseSchema;
|
|
3652
|
+
};
|
|
3653
|
+
/**
|
|
3654
|
+
* GetWorkflowUsage returns, per repository and workflow name, the jobs
|
|
3655
|
+
* GetUsage counts: their billable minutes, failed jobs and run-time
|
|
3656
|
+
* percentiles. A job is in the window by its queued_at. The window
|
|
3657
|
+
* defaults to the last 7 days. A window whose from is not before its to
|
|
3658
|
+
* fails with INVALID_ARGUMENT.
|
|
3659
|
+
*
|
|
3660
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.GetWorkflowUsage
|
|
3661
|
+
*/
|
|
3662
|
+
getWorkflowUsage: {
|
|
3663
|
+
methodKind: "unary";
|
|
3664
|
+
input: typeof GetWorkflowUsageRequestSchema;
|
|
3665
|
+
output: typeof GetWorkflowUsageResponseSchema;
|
|
3666
|
+
};
|
|
3667
|
+
/**
|
|
3668
|
+
* ListPlans returns the configured plans sorted by name.
|
|
3669
|
+
*
|
|
3670
|
+
* A page holds 100 plans when page_size is zero, and 1000 at most.
|
|
3671
|
+
*
|
|
3672
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.ListPlans
|
|
3673
|
+
*/
|
|
3674
|
+
listPlans: {
|
|
3675
|
+
methodKind: "unary";
|
|
3676
|
+
input: typeof ListPlansRequestSchema;
|
|
3677
|
+
output: typeof ListPlansResponseSchema;
|
|
3678
|
+
};
|
|
3679
|
+
/**
|
|
3680
|
+
* CreateCheckoutSession returns a Stripe Checkout URL that subscribes the
|
|
3681
|
+
* workspace to plan, first creating and linking a billing customer for a
|
|
3682
|
+
* workspace without one. An empty plan, or a plan the configuration does
|
|
3683
|
+
* not define, fails with INVALID_ARGUMENT; self-serve billing off, a plan
|
|
3684
|
+
* that is not sold or maps to several lookup keys, a price missing in
|
|
3685
|
+
* Stripe, or a workspace that already has a subscription fails with
|
|
3686
|
+
* FAILED_PRECONDITION; a billing provider failure fails with UNAVAILABLE.
|
|
3687
|
+
*
|
|
3688
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.CreateCheckoutSession
|
|
3689
|
+
*/
|
|
3690
|
+
createCheckoutSession: {
|
|
3691
|
+
methodKind: "unary";
|
|
3692
|
+
input: typeof CreateCheckoutSessionRequestSchema;
|
|
3693
|
+
output: typeof CreateCheckoutSessionResponseSchema;
|
|
3694
|
+
};
|
|
3695
|
+
/**
|
|
3696
|
+
* CreateBillingPortalSession returns a Stripe Customer Portal URL where
|
|
3697
|
+
* the workspace manages its card and subscription. Self-serve billing not
|
|
3698
|
+
* configured, or a workspace with no billing customer, fails with
|
|
3699
|
+
* FAILED_PRECONDITION; a billing provider failure fails with UNAVAILABLE.
|
|
3700
|
+
*
|
|
3701
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.CreateBillingPortalSession
|
|
3702
|
+
*/
|
|
3703
|
+
createBillingPortalSession: {
|
|
3704
|
+
methodKind: "unary";
|
|
3705
|
+
input: typeof CreateBillingPortalSessionRequestSchema;
|
|
3706
|
+
output: typeof CreateBillingPortalSessionResponseSchema;
|
|
3707
|
+
};
|
|
3708
|
+
/**
|
|
3709
|
+
* GetVersion returns the control plane's version, commit and commit
|
|
3710
|
+
* date, and the oldest agent release it admits.
|
|
3711
|
+
*
|
|
3712
|
+
* @generated from rpc toshi.workspace.v1.WorkspaceService.GetVersion
|
|
3713
|
+
*/
|
|
3714
|
+
getVersion: {
|
|
3715
|
+
methodKind: "unary";
|
|
3716
|
+
input: typeof GetVersionRequestSchema;
|
|
3717
|
+
output: typeof GetVersionResponseSchema;
|
|
3718
|
+
};
|
|
3719
|
+
}>;
|