@toshicloud/sdk 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -18
- package/dist/client.d.ts +111 -18
- package/dist/client.js +82 -16
- package/dist/errors.d.ts +9 -1
- package/dist/errors.js +22 -0
- package/dist/execute.d.ts +3 -2
- package/dist/execute.js +3 -3
- package/dist/gen/toshi/workspace/v1/artifacts_pb.d.ts +25 -23
- package/dist/gen/toshi/workspace/v1/artifacts_pb.js +7 -7
- 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/channels_pb.d.ts +2713 -0
- package/dist/gen/toshi/workspace/v1/channels_pb.js +336 -0
- package/dist/gen/toshi/workspace/v1/display_pb.d.ts +35 -11
- package/dist/gen/toshi/workspace/v1/display_pb.js +2 -2
- 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/projects_pb.d.ts +157 -3
- package/dist/gen/toshi/workspace/v1/projects_pb.js +2 -2
- package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +76 -0
- package/dist/gen/toshi/workspace/v1/recordings_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +175 -23
- package/dist/gen/toshi/workspace/v1/secrets_pb.js +9 -9
- 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/volumes_pb.d.ts +39 -1
- package/dist/gen/toshi/workspace/v1/volumes_pb.js +2 -2
- package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +62 -18
- package/dist/gen/toshi/workspace/v1/webhook_pb.js +3 -3
- package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +2858 -0
- package/dist/gen/toshi/workspace/v1/workloads_pb.js +261 -0
- package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +1377 -2130
- package/dist/gen/toshi/workspace/v1/workspace_pb.js +235 -272
- 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 +14 -2
- package/dist/index.js +13 -1
- package/dist/output.d.ts +3 -2
- package/dist/output.js +2 -2
- package/dist/retry.js +116 -30
- package/dist/run.d.ts +10 -0
- package/dist/run.js +175 -0
- package/dist/wait.d.ts +10 -5
- package/dist/wait.js +23 -11
- package/dist/watch.d.ts +14 -6
- package/dist/watch.js +138 -85
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { file_toshi_workspace_v1_recordings } from "./recordings_pb.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file toshi/workspace/v1/artifacts.proto.
|
|
9
9
|
*/
|
|
10
|
-
export const file_toshi_workspace_v1_artifacts = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_toshi_workspace_v1_artifacts = /*@__PURE__*/ fileDesc("CiJ0b3NoaS93b3Jrc3BhY2UvdjEvYXJ0aWZhY3RzLnByb3RvEhJ0b3NoaS53b3Jrc3BhY2UudjEi9wIKCEFydGlmYWN0EgoKAmlkGAEgASgJEhIKCnByb2plY3RfaWQYAiABKAkSFgoOZW52aXJvbm1lbnRfaWQYAyABKAkSEwoLd29ya2xvYWRfaWQYBCABKAkSFAoMZXhlY3V0aW9uX2lkGAU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9hZBIoLnRvc2hpLndvcmtzcGFjZS52MS5SZXNlcnZlVXBsb2FkUmVxdWVzdBopLnRvc2hpLndvcmtzcGFjZS52MS5SZXNlcnZlVXBsb2FkUmVzcG9uc2USZwoOQ29tcGxldGVVcGxvYWQSKS50b3NoaS53b3Jrc3BhY2UudjEuQ29tcGxldGVVcGxvYWRSZXF1ZXN0GioudG9zaGkud29ya3NwYWNlLnYxLkNvbXBsZXRlVXBsb2FkUmVzcG9uc2Uy2AIKD0FydGlmYWN0U2VydmljZRJkCg1MaXN0QXJ0aWZhY3RzEigudG9zaGkud29ya3NwYWNlLnYxLkxpc3RBcnRpZmFjdHNSZXF1ZXN0GikudG9zaGkud29ya3NwYWNlLnYxLkxpc3RBcnRpZmFjdHNSZXNwb25zZRJeCgtHZXRBcnRpZmFjdBImLnRvc2hpLndvcmtzcGFjZS52MS5HZXRBcnRpZmFjdFJlcXVlc3QaJy50b3NoaS53b3Jrc3BhY2UudjEuR2V0QXJ0aWZhY3RSZXNwb25zZRJ/ChZHZXRBcnRpZmFjdERvd25sb2FkVVJMEjEudG9zaGkud29ya3NwYWNlLnYxLkdldEFydGlmYWN0RG93bmxvYWRVUkxSZXF1ZXN0GjIudG9zaGkud29ya3NwYWNlLnYxLkdldEFydGlmYWN0RG93bmxvYWRVUkxSZXNwb25zZUItWitnaXRodWIuY29tL3Rvc2hpY2xvdWQvdG9zaGktYXBpL3dvcmtzcGFjZXYxYgZwcm90bzM", [file_google_protobuf_timestamp, file_toshi_workspace_v1_recordings]);
|
|
11
11
|
/**
|
|
12
12
|
* Describes the message toshi.workspace.v1.Artifact.
|
|
13
13
|
* Use `create(ArtifactSchema)` to create a new message.
|
|
@@ -59,15 +59,15 @@ export const GetArtifactRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_wor
|
|
|
59
59
|
*/
|
|
60
60
|
export const GetArtifactResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 9);
|
|
61
61
|
/**
|
|
62
|
-
* Describes the message toshi.workspace.v1.
|
|
63
|
-
* Use `create(
|
|
62
|
+
* Describes the message toshi.workspace.v1.GetArtifactDownloadURLRequest.
|
|
63
|
+
* Use `create(GetArtifactDownloadURLRequestSchema)` to create a new message.
|
|
64
64
|
*/
|
|
65
|
-
export const
|
|
65
|
+
export const GetArtifactDownloadURLRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 10);
|
|
66
66
|
/**
|
|
67
|
-
* Describes the message toshi.workspace.v1.
|
|
68
|
-
* Use `create(
|
|
67
|
+
* Describes the message toshi.workspace.v1.GetArtifactDownloadURLResponse.
|
|
68
|
+
* Use `create(GetArtifactDownloadURLResponseSchema)` to create a new message.
|
|
69
69
|
*/
|
|
70
|
-
export const
|
|
70
|
+
export const GetArtifactDownloadURLResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 11);
|
|
71
71
|
/**
|
|
72
72
|
* ArtifactUploadService is how a job uploads what it recorded:
|
|
73
73
|
* it reserves an artifact, uploads each part to a presigned URL, and
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file toshi/workspace/v1/audit_events.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_toshi_workspace_v1_audit_events: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* AuditEvent is one append-only audit log entry.
|
|
10
|
+
*
|
|
11
|
+
* @generated from message toshi.workspace.v1.AuditEvent
|
|
12
|
+
*/
|
|
13
|
+
export type AuditEvent = Message<"toshi.workspace.v1.AuditEvent"> & {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from field: int64 id = 1;
|
|
16
|
+
*/
|
|
17
|
+
id: bigint;
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: google.protobuf.Timestamp at = 2;
|
|
20
|
+
*/
|
|
21
|
+
at?: Timestamp | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* operator, session, token, workload, product, system or webhook.
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: string actor_kind = 3;
|
|
26
|
+
*/
|
|
27
|
+
actorKind: string;
|
|
28
|
+
/**
|
|
29
|
+
* The session's GitHub login; the API or product token's id (never its
|
|
30
|
+
* value); the workload as "<kind>:<id>"; or a system or webhook source
|
|
31
|
+
* name.
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: string actor_id = 4;
|
|
34
|
+
*/
|
|
35
|
+
actorId: string;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from field: string action = 5;
|
|
38
|
+
*/
|
|
39
|
+
action: string;
|
|
40
|
+
/**
|
|
41
|
+
* A "<kind>:<id>" string such as job:..., host:..., token:... or
|
|
42
|
+
* filler:....
|
|
43
|
+
*
|
|
44
|
+
* @generated from field: string target = 6;
|
|
45
|
+
*/
|
|
46
|
+
target: string;
|
|
47
|
+
/**
|
|
48
|
+
* A JSON object whose keys depend on the action.
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: string details_json = 7;
|
|
51
|
+
*/
|
|
52
|
+
detailsJson: string;
|
|
53
|
+
/**
|
|
54
|
+
* @generated from field: string request_id = 8;
|
|
55
|
+
*/
|
|
56
|
+
requestId: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* AuditEvent is one append-only audit log entry.
|
|
60
|
+
*
|
|
61
|
+
* @generated from message toshi.workspace.v1.AuditEvent
|
|
62
|
+
*/
|
|
63
|
+
export type AuditEventJson = {
|
|
64
|
+
/**
|
|
65
|
+
* @generated from field: int64 id = 1;
|
|
66
|
+
*/
|
|
67
|
+
id?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @generated from field: google.protobuf.Timestamp at = 2;
|
|
70
|
+
*/
|
|
71
|
+
at?: TimestampJson;
|
|
72
|
+
/**
|
|
73
|
+
* operator, session, token, workload, product, system or webhook.
|
|
74
|
+
*
|
|
75
|
+
* @generated from field: string actor_kind = 3;
|
|
76
|
+
*/
|
|
77
|
+
actorKind?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The session's GitHub login; the API or product token's id (never its
|
|
80
|
+
* value); the workload as "<kind>:<id>"; or a system or webhook source
|
|
81
|
+
* name.
|
|
82
|
+
*
|
|
83
|
+
* @generated from field: string actor_id = 4;
|
|
84
|
+
*/
|
|
85
|
+
actorId?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: string action = 5;
|
|
88
|
+
*/
|
|
89
|
+
action?: string;
|
|
90
|
+
/**
|
|
91
|
+
* A "<kind>:<id>" string such as job:..., host:..., token:... or
|
|
92
|
+
* filler:....
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: string target = 6;
|
|
95
|
+
*/
|
|
96
|
+
target?: string;
|
|
97
|
+
/**
|
|
98
|
+
* A JSON object whose keys depend on the action.
|
|
99
|
+
*
|
|
100
|
+
* @generated from field: string details_json = 7;
|
|
101
|
+
*/
|
|
102
|
+
detailsJson?: string;
|
|
103
|
+
/**
|
|
104
|
+
* @generated from field: string request_id = 8;
|
|
105
|
+
*/
|
|
106
|
+
requestId?: string;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Describes the message toshi.workspace.v1.AuditEvent.
|
|
110
|
+
* Use `create(AuditEventSchema)` to create a new message.
|
|
111
|
+
*/
|
|
112
|
+
export declare const AuditEventSchema: GenMessage<AuditEvent, {
|
|
113
|
+
jsonType: AuditEventJson;
|
|
114
|
+
}>;
|
|
115
|
+
/**
|
|
116
|
+
* ListAuditEventsRequest selects the audit events to return.
|
|
117
|
+
*
|
|
118
|
+
* @generated from message toshi.workspace.v1.ListAuditEventsRequest
|
|
119
|
+
*/
|
|
120
|
+
export type ListAuditEventsRequest = Message<"toshi.workspace.v1.ListAuditEventsRequest"> & {
|
|
121
|
+
/**
|
|
122
|
+
* Only this action; empty matches every action.
|
|
123
|
+
*
|
|
124
|
+
* @generated from field: string action = 1;
|
|
125
|
+
*/
|
|
126
|
+
action: string;
|
|
127
|
+
/**
|
|
128
|
+
* Only events at or after this time; unset is unbounded.
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: google.protobuf.Timestamp since = 2;
|
|
131
|
+
*/
|
|
132
|
+
since?: Timestamp | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* The most events in one page; zero lets the server choose.
|
|
135
|
+
*
|
|
136
|
+
* @generated from field: int32 page_size = 3;
|
|
137
|
+
*/
|
|
138
|
+
pageSize: number;
|
|
139
|
+
/**
|
|
140
|
+
* Only events whose actor_id is exactly this: the id without the kind (a
|
|
141
|
+
* token id, a GitHub login or user id, a source name). Empty matches
|
|
142
|
+
* every actor.
|
|
143
|
+
*
|
|
144
|
+
* @generated from field: string actor = 4;
|
|
145
|
+
*/
|
|
146
|
+
actor: string;
|
|
147
|
+
/**
|
|
148
|
+
* Only events whose action is one of these; empty matches every action.
|
|
149
|
+
* Setting both action and actions fails with INVALID_ARGUMENT, and so do
|
|
150
|
+
* an empty entry and more than 100 entries.
|
|
151
|
+
*
|
|
152
|
+
* @generated from field: repeated string actions = 5;
|
|
153
|
+
*/
|
|
154
|
+
actions: string[];
|
|
155
|
+
/**
|
|
156
|
+
* Only events whose target is exactly this, in full: "<kind>:<id>", for
|
|
157
|
+
* example "job:<id>". Empty matches every target.
|
|
158
|
+
*
|
|
159
|
+
* @generated from field: string target = 6;
|
|
160
|
+
*/
|
|
161
|
+
target: string;
|
|
162
|
+
/**
|
|
163
|
+
* From an earlier response's next_page_token; empty for the first page.
|
|
164
|
+
*
|
|
165
|
+
* @generated from field: string page_token = 7;
|
|
166
|
+
*/
|
|
167
|
+
pageToken: string;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* ListAuditEventsRequest selects the audit events to return.
|
|
171
|
+
*
|
|
172
|
+
* @generated from message toshi.workspace.v1.ListAuditEventsRequest
|
|
173
|
+
*/
|
|
174
|
+
export type ListAuditEventsRequestJson = {
|
|
175
|
+
/**
|
|
176
|
+
* Only this action; empty matches every action.
|
|
177
|
+
*
|
|
178
|
+
* @generated from field: string action = 1;
|
|
179
|
+
*/
|
|
180
|
+
action?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Only events at or after this time; unset is unbounded.
|
|
183
|
+
*
|
|
184
|
+
* @generated from field: google.protobuf.Timestamp since = 2;
|
|
185
|
+
*/
|
|
186
|
+
since?: TimestampJson;
|
|
187
|
+
/**
|
|
188
|
+
* The most events in one page; zero lets the server choose.
|
|
189
|
+
*
|
|
190
|
+
* @generated from field: int32 page_size = 3;
|
|
191
|
+
*/
|
|
192
|
+
pageSize?: number;
|
|
193
|
+
/**
|
|
194
|
+
* Only events whose actor_id is exactly this: the id without the kind (a
|
|
195
|
+
* token id, a GitHub login or user id, a source name). Empty matches
|
|
196
|
+
* every actor.
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: string actor = 4;
|
|
199
|
+
*/
|
|
200
|
+
actor?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Only events whose action is one of these; empty matches every action.
|
|
203
|
+
* Setting both action and actions fails with INVALID_ARGUMENT, and so do
|
|
204
|
+
* an empty entry and more than 100 entries.
|
|
205
|
+
*
|
|
206
|
+
* @generated from field: repeated string actions = 5;
|
|
207
|
+
*/
|
|
208
|
+
actions?: string[];
|
|
209
|
+
/**
|
|
210
|
+
* Only events whose target is exactly this, in full: "<kind>:<id>", for
|
|
211
|
+
* example "job:<id>". Empty matches every target.
|
|
212
|
+
*
|
|
213
|
+
* @generated from field: string target = 6;
|
|
214
|
+
*/
|
|
215
|
+
target?: string;
|
|
216
|
+
/**
|
|
217
|
+
* From an earlier response's next_page_token; empty for the first page.
|
|
218
|
+
*
|
|
219
|
+
* @generated from field: string page_token = 7;
|
|
220
|
+
*/
|
|
221
|
+
pageToken?: string;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Describes the message toshi.workspace.v1.ListAuditEventsRequest.
|
|
225
|
+
* Use `create(ListAuditEventsRequestSchema)` to create a new message.
|
|
226
|
+
*/
|
|
227
|
+
export declare const ListAuditEventsRequestSchema: GenMessage<ListAuditEventsRequest, {
|
|
228
|
+
jsonType: ListAuditEventsRequestJson;
|
|
229
|
+
}>;
|
|
230
|
+
/**
|
|
231
|
+
* @generated from message toshi.workspace.v1.ListAuditEventsResponse
|
|
232
|
+
*/
|
|
233
|
+
export type ListAuditEventsResponse = Message<"toshi.workspace.v1.ListAuditEventsResponse"> & {
|
|
234
|
+
/**
|
|
235
|
+
* Newest first.
|
|
236
|
+
*
|
|
237
|
+
* @generated from field: repeated toshi.workspace.v1.AuditEvent events = 1;
|
|
238
|
+
*/
|
|
239
|
+
events: AuditEvent[];
|
|
240
|
+
/**
|
|
241
|
+
* Empty on the last page.
|
|
242
|
+
*
|
|
243
|
+
* @generated from field: string next_page_token = 2;
|
|
244
|
+
*/
|
|
245
|
+
nextPageToken: string;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* @generated from message toshi.workspace.v1.ListAuditEventsResponse
|
|
249
|
+
*/
|
|
250
|
+
export type ListAuditEventsResponseJson = {
|
|
251
|
+
/**
|
|
252
|
+
* Newest first.
|
|
253
|
+
*
|
|
254
|
+
* @generated from field: repeated toshi.workspace.v1.AuditEvent events = 1;
|
|
255
|
+
*/
|
|
256
|
+
events?: AuditEventJson[];
|
|
257
|
+
/**
|
|
258
|
+
* Empty on the last page.
|
|
259
|
+
*
|
|
260
|
+
* @generated from field: string next_page_token = 2;
|
|
261
|
+
*/
|
|
262
|
+
nextPageToken?: string;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* Describes the message toshi.workspace.v1.ListAuditEventsResponse.
|
|
266
|
+
* Use `create(ListAuditEventsResponseSchema)` to create a new message.
|
|
267
|
+
*/
|
|
268
|
+
export declare const ListAuditEventsResponseSchema: GenMessage<ListAuditEventsResponse, {
|
|
269
|
+
jsonType: ListAuditEventsResponseJson;
|
|
270
|
+
}>;
|
|
271
|
+
/**
|
|
272
|
+
* AuditEventService reads the workspace's audit log: what its members, its
|
|
273
|
+
* tokens, the operator and the control plane did in it.
|
|
274
|
+
*
|
|
275
|
+
* A workspace's API token acts on its own workspace; a dashboard session
|
|
276
|
+
* names one of its workspaces in the Toshi-Workspace header. A
|
|
277
|
+
* token limited to a project or an environment is refused with
|
|
278
|
+
* PERMISSION_DENIED. A suspended workspace reads its audit log, and so does
|
|
279
|
+
* a closed one during its read-only period.
|
|
280
|
+
*
|
|
281
|
+
* @generated from service toshi.workspace.v1.AuditEventService
|
|
282
|
+
*/
|
|
283
|
+
export declare const AuditEventService: GenService<{
|
|
284
|
+
/**
|
|
285
|
+
* ListAuditEvents returns the workspace's audit events that match every
|
|
286
|
+
* filter field that is set, newest first.
|
|
287
|
+
*
|
|
288
|
+
* A page holds 100 events when page_size is zero, and 1000 at most.
|
|
289
|
+
*
|
|
290
|
+
* @generated from rpc toshi.workspace.v1.AuditEventService.ListAuditEvents
|
|
291
|
+
*/
|
|
292
|
+
listAuditEvents: {
|
|
293
|
+
methodKind: "unary";
|
|
294
|
+
input: typeof ListAuditEventsRequestSchema;
|
|
295
|
+
output: typeof ListAuditEventsResponseSchema;
|
|
296
|
+
};
|
|
297
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts,json_types=true,import_extension=js"
|
|
2
|
+
// @generated from file toshi/workspace/v1/audit_events.proto (package toshi.workspace.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file toshi/workspace/v1/audit_events.proto.
|
|
8
|
+
*/
|
|
9
|
+
export const file_toshi_workspace_v1_audit_events = /*@__PURE__*/ fileDesc("CiV0b3NoaS93b3Jrc3BhY2UvdjEvYXVkaXRfZXZlbnRzLnByb3RvEhJ0b3NoaS53b3Jrc3BhY2UudjEisAEKCkF1ZGl0RXZlbnQSCgoCaWQYASABKAMSJgoCYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhIKCmFjdG9yX2tpbmQYAyABKAkSEAoIYWN0b3JfaWQYBCABKAkSDgoGYWN0aW9uGAUgASgJEg4KBnRhcmdldBgGIAEoCRIUCgxkZXRhaWxzX2pzb24YByABKAkSEgoKcmVxdWVzdF9pZBgIIAEoCSKqAQoWTGlzdEF1ZGl0RXZlbnRzUmVxdWVzdBIOCgZhY3Rpb24YASABKAkSKQoFc2luY2UYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhEKCXBhZ2Vfc2l6ZRgDIAEoBRINCgVhY3RvchgEIAEoCRIPCgdhY3Rpb25zGAUgAygJEg4KBnRhcmdldBgGIAEoCRISCgpwYWdlX3Rva2VuGAcgASgJImIKF0xpc3RBdWRpdEV2ZW50c1Jlc3BvbnNlEi4KBmV2ZW50cxgBIAMoCzIeLnRvc2hpLndvcmtzcGFjZS52MS5BdWRpdEV2ZW50EhcKD25leHRfcGFnZV90b2tlbhgCIAEoCTJ/ChFBdWRpdEV2ZW50U2VydmljZRJqCg9MaXN0QXVkaXRFdmVudHMSKi50b3NoaS53b3Jrc3BhY2UudjEuTGlzdEF1ZGl0RXZlbnRzUmVxdWVzdBorLnRvc2hpLndvcmtzcGFjZS52MS5MaXN0QXVkaXRFdmVudHNSZXNwb25zZUItWitnaXRodWIuY29tL3Rvc2hpY2xvdWQvdG9zaGktYXBpL3dvcmtzcGFjZXYxYgZwcm90bzM", [file_google_protobuf_timestamp]);
|
|
10
|
+
/**
|
|
11
|
+
* Describes the message toshi.workspace.v1.AuditEvent.
|
|
12
|
+
* Use `create(AuditEventSchema)` to create a new message.
|
|
13
|
+
*/
|
|
14
|
+
export const AuditEventSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_audit_events, 0);
|
|
15
|
+
/**
|
|
16
|
+
* Describes the message toshi.workspace.v1.ListAuditEventsRequest.
|
|
17
|
+
* Use `create(ListAuditEventsRequestSchema)` to create a new message.
|
|
18
|
+
*/
|
|
19
|
+
export const ListAuditEventsRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_audit_events, 1);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message toshi.workspace.v1.ListAuditEventsResponse.
|
|
22
|
+
* Use `create(ListAuditEventsResponseSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const ListAuditEventsResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_audit_events, 2);
|
|
25
|
+
/**
|
|
26
|
+
* AuditEventService reads the workspace's audit log: what its members, its
|
|
27
|
+
* tokens, the operator and the control plane did in it.
|
|
28
|
+
*
|
|
29
|
+
* A workspace's API token acts on its own workspace; a dashboard session
|
|
30
|
+
* names one of its workspaces in the Toshi-Workspace header. A
|
|
31
|
+
* token limited to a project or an environment is refused with
|
|
32
|
+
* PERMISSION_DENIED. A suspended workspace reads its audit log, and so does
|
|
33
|
+
* a closed one during its read-only period.
|
|
34
|
+
*
|
|
35
|
+
* @generated from service toshi.workspace.v1.AuditEventService
|
|
36
|
+
*/
|
|
37
|
+
export const AuditEventService = /*@__PURE__*/ serviceDesc(file_toshi_workspace_v1_audit_events, 0);
|