@toshicloud/sdk 0.4.0 → 0.5.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 +102 -19
- package/dist/client.d.ts +40 -4
- package/dist/client.js +35 -4
- package/dist/errors.d.ts +99 -0
- package/dist/errors.js +208 -0
- package/dist/gen/toshi/permission_pb.d.ts +244 -0
- package/dist/gen/toshi/permission_pb.js +94 -0
- package/dist/gen/toshi/workspace/v1/account_pb.d.ts +590 -0
- package/dist/gen/toshi/workspace/v1/account_pb.js +75 -0
- package/dist/gen/toshi/workspace/v1/artifacts_pb.d.ts +14 -8
- package/dist/gen/toshi/workspace/v1/artifacts_pb.js +10 -7
- package/dist/gen/toshi/workspace/v1/audit_events_pb.d.ts +191 -6
- package/dist/gen/toshi/workspace/v1/audit_events_pb.js +12 -1
- package/dist/gen/toshi/workspace/v1/channels_pb.d.ts +1194 -21
- package/dist/gen/toshi/workspace/v1/channels_pb.js +186 -39
- package/dist/gen/toshi/workspace/v1/connections_pb.d.ts +1481 -0
- package/dist/gen/toshi/workspace/v1/connections_pb.js +208 -0
- package/dist/gen/toshi/workspace/v1/discovery_pb.d.ts +924 -0
- package/dist/gen/toshi/workspace/v1/discovery_pb.js +231 -0
- package/dist/gen/toshi/workspace/v1/display_pb.d.ts +198 -15
- package/dist/gen/toshi/workspace/v1/display_pb.js +53 -2
- package/dist/gen/toshi/workspace/v1/domains_pb.d.ts +864 -0
- package/dist/gen/toshi/workspace/v1/domains_pb.js +152 -0
- package/dist/gen/toshi/workspace/v1/fillers_pb.d.ts +12 -4
- package/dist/gen/toshi/workspace/v1/fillers_pb.js +2 -1
- package/dist/gen/toshi/workspace/v1/grants_pb.d.ts +1297 -0
- package/dist/gen/toshi/workspace/v1/grants_pb.js +271 -0
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +315 -15
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +11 -5
- package/dist/gen/toshi/workspace/v1/hosts_pb.d.ts +196 -7
- package/dist/gen/toshi/workspace/v1/hosts_pb.js +13 -7
- package/dist/gen/toshi/workspace/v1/images_pb.d.ts +1463 -0
- package/dist/gen/toshi/workspace/v1/images_pb.js +263 -0
- package/dist/gen/toshi/workspace/v1/products_pb.d.ts +506 -0
- package/dist/gen/toshi/workspace/v1/products_pb.js +60 -0
- package/dist/gen/toshi/workspace/v1/projects_pb.d.ts +1474 -99
- package/dist/gen/toshi/workspace/v1/projects_pb.js +151 -33
- package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +181 -14
- package/dist/gen/toshi/workspace/v1/recordings_pb.js +55 -14
- package/dist/gen/toshi/workspace/v1/roles_pb.d.ts +1994 -0
- package/dist/gen/toshi/workspace/v1/roles_pb.js +355 -0
- package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +314 -8
- package/dist/gen/toshi/workspace/v1/secrets_pb.js +43 -18
- package/dist/gen/toshi/workspace/v1/storage_providers_pb.d.ts +14 -0
- package/dist/gen/toshi/workspace/v1/storage_providers_pb.js +2 -1
- package/dist/gen/toshi/workspace/v1/tokens_pb.d.ts +434 -5
- package/dist/gen/toshi/workspace/v1/tokens_pb.js +66 -8
- package/dist/gen/toshi/workspace/v1/triggers_pb.d.ts +1099 -0
- package/dist/gen/toshi/workspace/v1/triggers_pb.js +185 -0
- package/dist/gen/toshi/workspace/v1/volumes_pb.d.ts +1052 -33
- package/dist/gen/toshi/workspace/v1/volumes_pb.js +170 -11
- package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +66 -8
- package/dist/gen/toshi/workspace/v1/webhook_pb.js +5 -4
- package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +2043 -54
- package/dist/gen/toshi/workspace/v1/workloads_pb.js +205 -54
- package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +6292 -939
- package/dist/gen/toshi/workspace/v1/workspace_pb.js +801 -88
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +2176 -630
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +192 -74
- package/dist/index.d.ts +10 -1
- package/dist/index.js +10 -1
- package/dist/interceptors.d.ts +11 -1
- package/dist/interceptors.js +38 -4
- package/dist/retry.d.ts +18 -0
- package/dist/retry.js +228 -22
- package/dist/test/procedures.js +100 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wait.d.ts +4 -0
- package/dist/wait.js +24 -1
- package/package.json +3 -2
|
@@ -0,0 +1,1481 @@
|
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { Duration, DurationJson, FieldMask, FieldMaskJson, Timestamp, TimestampJson } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file toshi/workspace/v1/connections.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_toshi_workspace_v1_connections: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* Connection is one source of a workspace's events.
|
|
10
|
+
*
|
|
11
|
+
* @generated from message toshi.workspace.v1.Connection
|
|
12
|
+
*/
|
|
13
|
+
export type Connection = Message<"toshi.workspace.v1.Connection"> & {
|
|
14
|
+
/**
|
|
15
|
+
* @generated from field: string id = 1;
|
|
16
|
+
*/
|
|
17
|
+
id: string;
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: toshi.workspace.v1.ConnectionKind kind = 2;
|
|
20
|
+
*/
|
|
21
|
+
kind: ConnectionKind;
|
|
22
|
+
/**
|
|
23
|
+
* Unique among the workspace's WEBHOOK connections; for GITHUB, the
|
|
24
|
+
* login of the account the App is installed on.
|
|
25
|
+
*
|
|
26
|
+
* @generated from field: string name = 3;
|
|
27
|
+
*/
|
|
28
|
+
name: string;
|
|
29
|
+
/**
|
|
30
|
+
* The project and environment a WEBHOOK connection's events belong to;
|
|
31
|
+
* empty for GITHUB, whose events belong to their repository's project.
|
|
32
|
+
*
|
|
33
|
+
* @generated from field: string project = 4;
|
|
34
|
+
*/
|
|
35
|
+
project: string;
|
|
36
|
+
/**
|
|
37
|
+
* @generated from field: string environment = 5;
|
|
38
|
+
*/
|
|
39
|
+
environment: string;
|
|
40
|
+
/**
|
|
41
|
+
* The GitHub App installation of a GITHUB connection; zero otherwise.
|
|
42
|
+
*
|
|
43
|
+
* @generated from field: int64 installation_id = 6;
|
|
44
|
+
*/
|
|
45
|
+
installationId: bigint;
|
|
46
|
+
/**
|
|
47
|
+
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
48
|
+
*/
|
|
49
|
+
createdAt?: Timestamp | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Until when a rotated WEBHOOK connection's previous secret still
|
|
52
|
+
* verifies; unset when there is none.
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: google.protobuf.Timestamp previous_secret_expires_at = 8;
|
|
55
|
+
*/
|
|
56
|
+
previousSecretExpiresAt?: Timestamp | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Where a WEBHOOK connection's deliveries are posted in place of the
|
|
59
|
+
* event log; unset when they become events.
|
|
60
|
+
*
|
|
61
|
+
* @generated from field: toshi.workspace.v1.ConnectionTarget target = 10;
|
|
62
|
+
*/
|
|
63
|
+
target?: ConnectionTarget | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* The inbound address a WEBHOOK connection's sender POSTs to: the
|
|
66
|
+
* deployment's public address and /ingress/ with the connection's
|
|
67
|
+
* address token. Empty for GITHUB, and when the deployment names no
|
|
68
|
+
* public address.
|
|
69
|
+
*
|
|
70
|
+
* @generated from field: string ingress_url = 11;
|
|
71
|
+
*/
|
|
72
|
+
ingressUrl: string;
|
|
73
|
+
/**
|
|
74
|
+
* Who manages this object: "manifest" when the project manifest declares
|
|
75
|
+
* it, empty when nothing does. A manifest apply sets managed_by,
|
|
76
|
+
* manifest_digest, manifest_origin and managed_fields together.
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: string managed_by = 12;
|
|
79
|
+
*/
|
|
80
|
+
managedBy: string;
|
|
81
|
+
/**
|
|
82
|
+
* The SHA-256 of the manifest file that last set this object, as 64
|
|
83
|
+
* lowercase hex characters. Empty when managed_by is empty.
|
|
84
|
+
*
|
|
85
|
+
* @generated from field: string manifest_digest = 13;
|
|
86
|
+
*/
|
|
87
|
+
manifestDigest: string;
|
|
88
|
+
/**
|
|
89
|
+
* The fields of this object the manifest declares, as update mask paths.
|
|
90
|
+
* Empty when managed_by is empty.
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: repeated string managed_fields = 14;
|
|
93
|
+
*/
|
|
94
|
+
managedFields: string[];
|
|
95
|
+
/**
|
|
96
|
+
* How the manifest came to manage this object: "created" when a manifest
|
|
97
|
+
* apply created it, "adopted" when an apply took over an object that
|
|
98
|
+
* already existed. Empty when managed_by is empty.
|
|
99
|
+
*
|
|
100
|
+
* @generated from field: string manifest_origin = 15;
|
|
101
|
+
*/
|
|
102
|
+
manifestOrigin: string;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Connection is one source of a workspace's events.
|
|
106
|
+
*
|
|
107
|
+
* @generated from message toshi.workspace.v1.Connection
|
|
108
|
+
*/
|
|
109
|
+
export type ConnectionJson = {
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: string id = 1;
|
|
112
|
+
*/
|
|
113
|
+
id?: string;
|
|
114
|
+
/**
|
|
115
|
+
* @generated from field: toshi.workspace.v1.ConnectionKind kind = 2;
|
|
116
|
+
*/
|
|
117
|
+
kind?: ConnectionKindJson;
|
|
118
|
+
/**
|
|
119
|
+
* Unique among the workspace's WEBHOOK connections; for GITHUB, the
|
|
120
|
+
* login of the account the App is installed on.
|
|
121
|
+
*
|
|
122
|
+
* @generated from field: string name = 3;
|
|
123
|
+
*/
|
|
124
|
+
name?: string;
|
|
125
|
+
/**
|
|
126
|
+
* The project and environment a WEBHOOK connection's events belong to;
|
|
127
|
+
* empty for GITHUB, whose events belong to their repository's project.
|
|
128
|
+
*
|
|
129
|
+
* @generated from field: string project = 4;
|
|
130
|
+
*/
|
|
131
|
+
project?: string;
|
|
132
|
+
/**
|
|
133
|
+
* @generated from field: string environment = 5;
|
|
134
|
+
*/
|
|
135
|
+
environment?: string;
|
|
136
|
+
/**
|
|
137
|
+
* The GitHub App installation of a GITHUB connection; zero otherwise.
|
|
138
|
+
*
|
|
139
|
+
* @generated from field: int64 installation_id = 6;
|
|
140
|
+
*/
|
|
141
|
+
installationId?: string;
|
|
142
|
+
/**
|
|
143
|
+
* @generated from field: google.protobuf.Timestamp created_at = 7;
|
|
144
|
+
*/
|
|
145
|
+
createdAt?: TimestampJson;
|
|
146
|
+
/**
|
|
147
|
+
* Until when a rotated WEBHOOK connection's previous secret still
|
|
148
|
+
* verifies; unset when there is none.
|
|
149
|
+
*
|
|
150
|
+
* @generated from field: google.protobuf.Timestamp previous_secret_expires_at = 8;
|
|
151
|
+
*/
|
|
152
|
+
previousSecretExpiresAt?: TimestampJson;
|
|
153
|
+
/**
|
|
154
|
+
* Where a WEBHOOK connection's deliveries are posted in place of the
|
|
155
|
+
* event log; unset when they become events.
|
|
156
|
+
*
|
|
157
|
+
* @generated from field: toshi.workspace.v1.ConnectionTarget target = 10;
|
|
158
|
+
*/
|
|
159
|
+
target?: ConnectionTargetJson;
|
|
160
|
+
/**
|
|
161
|
+
* The inbound address a WEBHOOK connection's sender POSTs to: the
|
|
162
|
+
* deployment's public address and /ingress/ with the connection's
|
|
163
|
+
* address token. Empty for GITHUB, and when the deployment names no
|
|
164
|
+
* public address.
|
|
165
|
+
*
|
|
166
|
+
* @generated from field: string ingress_url = 11;
|
|
167
|
+
*/
|
|
168
|
+
ingressUrl?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Who manages this object: "manifest" when the project manifest declares
|
|
171
|
+
* it, empty when nothing does. A manifest apply sets managed_by,
|
|
172
|
+
* manifest_digest, manifest_origin and managed_fields together.
|
|
173
|
+
*
|
|
174
|
+
* @generated from field: string managed_by = 12;
|
|
175
|
+
*/
|
|
176
|
+
managedBy?: string;
|
|
177
|
+
/**
|
|
178
|
+
* The SHA-256 of the manifest file that last set this object, as 64
|
|
179
|
+
* lowercase hex characters. Empty when managed_by is empty.
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: string manifest_digest = 13;
|
|
182
|
+
*/
|
|
183
|
+
manifestDigest?: string;
|
|
184
|
+
/**
|
|
185
|
+
* The fields of this object the manifest declares, as update mask paths.
|
|
186
|
+
* Empty when managed_by is empty.
|
|
187
|
+
*
|
|
188
|
+
* @generated from field: repeated string managed_fields = 14;
|
|
189
|
+
*/
|
|
190
|
+
managedFields?: string[];
|
|
191
|
+
/**
|
|
192
|
+
* How the manifest came to manage this object: "created" when a manifest
|
|
193
|
+
* apply created it, "adopted" when an apply took over an object that
|
|
194
|
+
* already existed. Empty when managed_by is empty.
|
|
195
|
+
*
|
|
196
|
+
* @generated from field: string manifest_origin = 15;
|
|
197
|
+
*/
|
|
198
|
+
manifestOrigin?: string;
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Describes the message toshi.workspace.v1.Connection.
|
|
202
|
+
* Use `create(ConnectionSchema)` to create a new message.
|
|
203
|
+
*/
|
|
204
|
+
export declare const ConnectionSchema: GenMessage<Connection, {
|
|
205
|
+
jsonType: ConnectionJson;
|
|
206
|
+
}>;
|
|
207
|
+
/**
|
|
208
|
+
* ConnectionTarget is the URL a WEBHOOK connection's deliveries are posted
|
|
209
|
+
* to: each delivery's event, as the event log would hold it, signed as
|
|
210
|
+
* Standard Webhooks does with the target's own secret, until the URL
|
|
211
|
+
* answers 2xx or the tries run out.
|
|
212
|
+
*
|
|
213
|
+
* @generated from message toshi.workspace.v1.ConnectionTarget
|
|
214
|
+
*/
|
|
215
|
+
export type ConnectionTarget = Message<"toshi.workspace.v1.ConnectionTarget"> & {
|
|
216
|
+
/**
|
|
217
|
+
* url is the https URL the events are posted to.
|
|
218
|
+
*
|
|
219
|
+
* @generated from field: string url = 1;
|
|
220
|
+
*/
|
|
221
|
+
url: string;
|
|
222
|
+
/**
|
|
223
|
+
* secret is the signing secret: "whsec_" and the base64 of 24 to 64
|
|
224
|
+
* bytes. Input only: no call returns it.
|
|
225
|
+
*
|
|
226
|
+
* @generated from field: string secret = 2;
|
|
227
|
+
*/
|
|
228
|
+
secret: string;
|
|
229
|
+
/**
|
|
230
|
+
* updated_by is who set it last, as the audit log names them.
|
|
231
|
+
*
|
|
232
|
+
* @generated from field: string updated_by = 3;
|
|
233
|
+
*/
|
|
234
|
+
updatedBy: string;
|
|
235
|
+
/**
|
|
236
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 4;
|
|
237
|
+
*/
|
|
238
|
+
updatedAt?: Timestamp | undefined;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* ConnectionTarget is the URL a WEBHOOK connection's deliveries are posted
|
|
242
|
+
* to: each delivery's event, as the event log would hold it, signed as
|
|
243
|
+
* Standard Webhooks does with the target's own secret, until the URL
|
|
244
|
+
* answers 2xx or the tries run out.
|
|
245
|
+
*
|
|
246
|
+
* @generated from message toshi.workspace.v1.ConnectionTarget
|
|
247
|
+
*/
|
|
248
|
+
export type ConnectionTargetJson = {
|
|
249
|
+
/**
|
|
250
|
+
* url is the https URL the events are posted to.
|
|
251
|
+
*
|
|
252
|
+
* @generated from field: string url = 1;
|
|
253
|
+
*/
|
|
254
|
+
url?: string;
|
|
255
|
+
/**
|
|
256
|
+
* secret is the signing secret: "whsec_" and the base64 of 24 to 64
|
|
257
|
+
* bytes. Input only: no call returns it.
|
|
258
|
+
*
|
|
259
|
+
* @generated from field: string secret = 2;
|
|
260
|
+
*/
|
|
261
|
+
secret?: string;
|
|
262
|
+
/**
|
|
263
|
+
* updated_by is who set it last, as the audit log names them.
|
|
264
|
+
*
|
|
265
|
+
* @generated from field: string updated_by = 3;
|
|
266
|
+
*/
|
|
267
|
+
updatedBy?: string;
|
|
268
|
+
/**
|
|
269
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 4;
|
|
270
|
+
*/
|
|
271
|
+
updatedAt?: TimestampJson;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Describes the message toshi.workspace.v1.ConnectionTarget.
|
|
275
|
+
* Use `create(ConnectionTargetSchema)` to create a new message.
|
|
276
|
+
*/
|
|
277
|
+
export declare const ConnectionTargetSchema: GenMessage<ConnectionTarget, {
|
|
278
|
+
jsonType: ConnectionTargetJson;
|
|
279
|
+
}>;
|
|
280
|
+
/**
|
|
281
|
+
* @generated from message toshi.workspace.v1.ListConnectionsRequest
|
|
282
|
+
*/
|
|
283
|
+
export type ListConnectionsRequest = Message<"toshi.workspace.v1.ListConnectionsRequest"> & {
|
|
284
|
+
/**
|
|
285
|
+
* The most connections in one page; zero lets the server choose.
|
|
286
|
+
*
|
|
287
|
+
* @generated from field: int32 page_size = 1;
|
|
288
|
+
*/
|
|
289
|
+
pageSize: number;
|
|
290
|
+
/**
|
|
291
|
+
* From an earlier response's next_page_token; empty for the first page.
|
|
292
|
+
*
|
|
293
|
+
* @generated from field: string page_token = 2;
|
|
294
|
+
*/
|
|
295
|
+
pageToken: string;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* @generated from message toshi.workspace.v1.ListConnectionsRequest
|
|
299
|
+
*/
|
|
300
|
+
export type ListConnectionsRequestJson = {
|
|
301
|
+
/**
|
|
302
|
+
* The most connections in one page; zero lets the server choose.
|
|
303
|
+
*
|
|
304
|
+
* @generated from field: int32 page_size = 1;
|
|
305
|
+
*/
|
|
306
|
+
pageSize?: number;
|
|
307
|
+
/**
|
|
308
|
+
* From an earlier response's next_page_token; empty for the first page.
|
|
309
|
+
*
|
|
310
|
+
* @generated from field: string page_token = 2;
|
|
311
|
+
*/
|
|
312
|
+
pageToken?: string;
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* Describes the message toshi.workspace.v1.ListConnectionsRequest.
|
|
316
|
+
* Use `create(ListConnectionsRequestSchema)` to create a new message.
|
|
317
|
+
*/
|
|
318
|
+
export declare const ListConnectionsRequestSchema: GenMessage<ListConnectionsRequest, {
|
|
319
|
+
jsonType: ListConnectionsRequestJson;
|
|
320
|
+
}>;
|
|
321
|
+
/**
|
|
322
|
+
* @generated from message toshi.workspace.v1.ListConnectionsResponse
|
|
323
|
+
*/
|
|
324
|
+
export type ListConnectionsResponse = Message<"toshi.workspace.v1.ListConnectionsResponse"> & {
|
|
325
|
+
/**
|
|
326
|
+
* @generated from field: repeated toshi.workspace.v1.Connection connections = 1;
|
|
327
|
+
*/
|
|
328
|
+
connections: Connection[];
|
|
329
|
+
/**
|
|
330
|
+
* Empty on the last page.
|
|
331
|
+
*
|
|
332
|
+
* @generated from field: string next_page_token = 2;
|
|
333
|
+
*/
|
|
334
|
+
nextPageToken: string;
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* @generated from message toshi.workspace.v1.ListConnectionsResponse
|
|
338
|
+
*/
|
|
339
|
+
export type ListConnectionsResponseJson = {
|
|
340
|
+
/**
|
|
341
|
+
* @generated from field: repeated toshi.workspace.v1.Connection connections = 1;
|
|
342
|
+
*/
|
|
343
|
+
connections?: ConnectionJson[];
|
|
344
|
+
/**
|
|
345
|
+
* Empty on the last page.
|
|
346
|
+
*
|
|
347
|
+
* @generated from field: string next_page_token = 2;
|
|
348
|
+
*/
|
|
349
|
+
nextPageToken?: string;
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* Describes the message toshi.workspace.v1.ListConnectionsResponse.
|
|
353
|
+
* Use `create(ListConnectionsResponseSchema)` to create a new message.
|
|
354
|
+
*/
|
|
355
|
+
export declare const ListConnectionsResponseSchema: GenMessage<ListConnectionsResponse, {
|
|
356
|
+
jsonType: ListConnectionsResponseJson;
|
|
357
|
+
}>;
|
|
358
|
+
/**
|
|
359
|
+
* @generated from message toshi.workspace.v1.GetConnectionRequest
|
|
360
|
+
*/
|
|
361
|
+
export type GetConnectionRequest = Message<"toshi.workspace.v1.GetConnectionRequest"> & {
|
|
362
|
+
/**
|
|
363
|
+
* @generated from field: string id = 1;
|
|
364
|
+
*/
|
|
365
|
+
id: string;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* @generated from message toshi.workspace.v1.GetConnectionRequest
|
|
369
|
+
*/
|
|
370
|
+
export type GetConnectionRequestJson = {
|
|
371
|
+
/**
|
|
372
|
+
* @generated from field: string id = 1;
|
|
373
|
+
*/
|
|
374
|
+
id?: string;
|
|
375
|
+
};
|
|
376
|
+
/**
|
|
377
|
+
* Describes the message toshi.workspace.v1.GetConnectionRequest.
|
|
378
|
+
* Use `create(GetConnectionRequestSchema)` to create a new message.
|
|
379
|
+
*/
|
|
380
|
+
export declare const GetConnectionRequestSchema: GenMessage<GetConnectionRequest, {
|
|
381
|
+
jsonType: GetConnectionRequestJson;
|
|
382
|
+
}>;
|
|
383
|
+
/**
|
|
384
|
+
* @generated from message toshi.workspace.v1.GetConnectionResponse
|
|
385
|
+
*/
|
|
386
|
+
export type GetConnectionResponse = Message<"toshi.workspace.v1.GetConnectionResponse"> & {
|
|
387
|
+
/**
|
|
388
|
+
* @generated from field: toshi.workspace.v1.Connection connection = 1;
|
|
389
|
+
*/
|
|
390
|
+
connection?: Connection | undefined;
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* @generated from message toshi.workspace.v1.GetConnectionResponse
|
|
394
|
+
*/
|
|
395
|
+
export type GetConnectionResponseJson = {
|
|
396
|
+
/**
|
|
397
|
+
* @generated from field: toshi.workspace.v1.Connection connection = 1;
|
|
398
|
+
*/
|
|
399
|
+
connection?: ConnectionJson;
|
|
400
|
+
};
|
|
401
|
+
/**
|
|
402
|
+
* Describes the message toshi.workspace.v1.GetConnectionResponse.
|
|
403
|
+
* Use `create(GetConnectionResponseSchema)` to create a new message.
|
|
404
|
+
*/
|
|
405
|
+
export declare const GetConnectionResponseSchema: GenMessage<GetConnectionResponse, {
|
|
406
|
+
jsonType: GetConnectionResponseJson;
|
|
407
|
+
}>;
|
|
408
|
+
/**
|
|
409
|
+
* @generated from message toshi.workspace.v1.CreateConnectionRequest
|
|
410
|
+
*/
|
|
411
|
+
export type CreateConnectionRequest = Message<"toshi.workspace.v1.CreateConnectionRequest"> & {
|
|
412
|
+
/**
|
|
413
|
+
* WEBHOOK; no other kind is created here.
|
|
414
|
+
*
|
|
415
|
+
* @generated from field: toshi.workspace.v1.ConnectionKind kind = 1;
|
|
416
|
+
*/
|
|
417
|
+
kind: ConnectionKind;
|
|
418
|
+
/**
|
|
419
|
+
* A lowercase DNS label of at most 63 characters.
|
|
420
|
+
*
|
|
421
|
+
* @generated from field: string name = 2;
|
|
422
|
+
*/
|
|
423
|
+
name: string;
|
|
424
|
+
/**
|
|
425
|
+
* @generated from field: string project = 3;
|
|
426
|
+
*/
|
|
427
|
+
project: string;
|
|
428
|
+
/**
|
|
429
|
+
* @generated from field: string environment = 4;
|
|
430
|
+
*/
|
|
431
|
+
environment: string;
|
|
432
|
+
/**
|
|
433
|
+
* @generated from field: string request_key = 5;
|
|
434
|
+
*/
|
|
435
|
+
requestKey: string;
|
|
436
|
+
};
|
|
437
|
+
/**
|
|
438
|
+
* @generated from message toshi.workspace.v1.CreateConnectionRequest
|
|
439
|
+
*/
|
|
440
|
+
export type CreateConnectionRequestJson = {
|
|
441
|
+
/**
|
|
442
|
+
* WEBHOOK; no other kind is created here.
|
|
443
|
+
*
|
|
444
|
+
* @generated from field: toshi.workspace.v1.ConnectionKind kind = 1;
|
|
445
|
+
*/
|
|
446
|
+
kind?: ConnectionKindJson;
|
|
447
|
+
/**
|
|
448
|
+
* A lowercase DNS label of at most 63 characters.
|
|
449
|
+
*
|
|
450
|
+
* @generated from field: string name = 2;
|
|
451
|
+
*/
|
|
452
|
+
name?: string;
|
|
453
|
+
/**
|
|
454
|
+
* @generated from field: string project = 3;
|
|
455
|
+
*/
|
|
456
|
+
project?: string;
|
|
457
|
+
/**
|
|
458
|
+
* @generated from field: string environment = 4;
|
|
459
|
+
*/
|
|
460
|
+
environment?: string;
|
|
461
|
+
/**
|
|
462
|
+
* @generated from field: string request_key = 5;
|
|
463
|
+
*/
|
|
464
|
+
requestKey?: string;
|
|
465
|
+
};
|
|
466
|
+
/**
|
|
467
|
+
* Describes the message toshi.workspace.v1.CreateConnectionRequest.
|
|
468
|
+
* Use `create(CreateConnectionRequestSchema)` to create a new message.
|
|
469
|
+
*/
|
|
470
|
+
export declare const CreateConnectionRequestSchema: GenMessage<CreateConnectionRequest, {
|
|
471
|
+
jsonType: CreateConnectionRequestJson;
|
|
472
|
+
}>;
|
|
473
|
+
/**
|
|
474
|
+
* @generated from message toshi.workspace.v1.CreateConnectionResponse
|
|
475
|
+
*/
|
|
476
|
+
export type CreateConnectionResponse = Message<"toshi.workspace.v1.CreateConnectionResponse"> & {
|
|
477
|
+
/**
|
|
478
|
+
* @generated from field: toshi.workspace.v1.Connection connection = 1;
|
|
479
|
+
*/
|
|
480
|
+
connection?: Connection | undefined;
|
|
481
|
+
/**
|
|
482
|
+
* The signing secret in its whsec_ form, for the sender to sign its
|
|
483
|
+
* requests with. Shown only in this answer and an identical retry's.
|
|
484
|
+
*
|
|
485
|
+
* @generated from field: string secret = 2;
|
|
486
|
+
*/
|
|
487
|
+
secret: string;
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* @generated from message toshi.workspace.v1.CreateConnectionResponse
|
|
491
|
+
*/
|
|
492
|
+
export type CreateConnectionResponseJson = {
|
|
493
|
+
/**
|
|
494
|
+
* @generated from field: toshi.workspace.v1.Connection connection = 1;
|
|
495
|
+
*/
|
|
496
|
+
connection?: ConnectionJson;
|
|
497
|
+
/**
|
|
498
|
+
* The signing secret in its whsec_ form, for the sender to sign its
|
|
499
|
+
* requests with. Shown only in this answer and an identical retry's.
|
|
500
|
+
*
|
|
501
|
+
* @generated from field: string secret = 2;
|
|
502
|
+
*/
|
|
503
|
+
secret?: string;
|
|
504
|
+
};
|
|
505
|
+
/**
|
|
506
|
+
* Describes the message toshi.workspace.v1.CreateConnectionResponse.
|
|
507
|
+
* Use `create(CreateConnectionResponseSchema)` to create a new message.
|
|
508
|
+
*/
|
|
509
|
+
export declare const CreateConnectionResponseSchema: GenMessage<CreateConnectionResponse, {
|
|
510
|
+
jsonType: CreateConnectionResponseJson;
|
|
511
|
+
}>;
|
|
512
|
+
/**
|
|
513
|
+
* @generated from message toshi.workspace.v1.DeleteConnectionRequest
|
|
514
|
+
*/
|
|
515
|
+
export type DeleteConnectionRequest = Message<"toshi.workspace.v1.DeleteConnectionRequest"> & {
|
|
516
|
+
/**
|
|
517
|
+
* @generated from field: string id = 1;
|
|
518
|
+
*/
|
|
519
|
+
id: string;
|
|
520
|
+
/**
|
|
521
|
+
* @generated from field: string request_key = 2;
|
|
522
|
+
*/
|
|
523
|
+
requestKey: string;
|
|
524
|
+
};
|
|
525
|
+
/**
|
|
526
|
+
* @generated from message toshi.workspace.v1.DeleteConnectionRequest
|
|
527
|
+
*/
|
|
528
|
+
export type DeleteConnectionRequestJson = {
|
|
529
|
+
/**
|
|
530
|
+
* @generated from field: string id = 1;
|
|
531
|
+
*/
|
|
532
|
+
id?: string;
|
|
533
|
+
/**
|
|
534
|
+
* @generated from field: string request_key = 2;
|
|
535
|
+
*/
|
|
536
|
+
requestKey?: string;
|
|
537
|
+
};
|
|
538
|
+
/**
|
|
539
|
+
* Describes the message toshi.workspace.v1.DeleteConnectionRequest.
|
|
540
|
+
* Use `create(DeleteConnectionRequestSchema)` to create a new message.
|
|
541
|
+
*/
|
|
542
|
+
export declare const DeleteConnectionRequestSchema: GenMessage<DeleteConnectionRequest, {
|
|
543
|
+
jsonType: DeleteConnectionRequestJson;
|
|
544
|
+
}>;
|
|
545
|
+
/**
|
|
546
|
+
* @generated from message toshi.workspace.v1.DeleteConnectionResponse
|
|
547
|
+
*/
|
|
548
|
+
export type DeleteConnectionResponse = Message<"toshi.workspace.v1.DeleteConnectionResponse"> & {};
|
|
549
|
+
/**
|
|
550
|
+
* @generated from message toshi.workspace.v1.DeleteConnectionResponse
|
|
551
|
+
*/
|
|
552
|
+
export type DeleteConnectionResponseJson = {};
|
|
553
|
+
/**
|
|
554
|
+
* Describes the message toshi.workspace.v1.DeleteConnectionResponse.
|
|
555
|
+
* Use `create(DeleteConnectionResponseSchema)` to create a new message.
|
|
556
|
+
*/
|
|
557
|
+
export declare const DeleteConnectionResponseSchema: GenMessage<DeleteConnectionResponse, {
|
|
558
|
+
jsonType: DeleteConnectionResponseJson;
|
|
559
|
+
}>;
|
|
560
|
+
/**
|
|
561
|
+
* @generated from message toshi.workspace.v1.RotateConnectionSecretRequest
|
|
562
|
+
*/
|
|
563
|
+
export type RotateConnectionSecretRequest = Message<"toshi.workspace.v1.RotateConnectionSecretRequest"> & {
|
|
564
|
+
/**
|
|
565
|
+
* @generated from field: string id = 1;
|
|
566
|
+
*/
|
|
567
|
+
id: string;
|
|
568
|
+
/**
|
|
569
|
+
* How long the previous secret still verifies; unset is 24 hours, zero
|
|
570
|
+
* stops it at once, and 7 days is the most.
|
|
571
|
+
*
|
|
572
|
+
* @generated from field: google.protobuf.Duration overlap = 2;
|
|
573
|
+
*/
|
|
574
|
+
overlap?: Duration | undefined;
|
|
575
|
+
/**
|
|
576
|
+
* @generated from field: string request_key = 3;
|
|
577
|
+
*/
|
|
578
|
+
requestKey: string;
|
|
579
|
+
};
|
|
580
|
+
/**
|
|
581
|
+
* @generated from message toshi.workspace.v1.RotateConnectionSecretRequest
|
|
582
|
+
*/
|
|
583
|
+
export type RotateConnectionSecretRequestJson = {
|
|
584
|
+
/**
|
|
585
|
+
* @generated from field: string id = 1;
|
|
586
|
+
*/
|
|
587
|
+
id?: string;
|
|
588
|
+
/**
|
|
589
|
+
* How long the previous secret still verifies; unset is 24 hours, zero
|
|
590
|
+
* stops it at once, and 7 days is the most.
|
|
591
|
+
*
|
|
592
|
+
* @generated from field: google.protobuf.Duration overlap = 2;
|
|
593
|
+
*/
|
|
594
|
+
overlap?: DurationJson;
|
|
595
|
+
/**
|
|
596
|
+
* @generated from field: string request_key = 3;
|
|
597
|
+
*/
|
|
598
|
+
requestKey?: string;
|
|
599
|
+
};
|
|
600
|
+
/**
|
|
601
|
+
* Describes the message toshi.workspace.v1.RotateConnectionSecretRequest.
|
|
602
|
+
* Use `create(RotateConnectionSecretRequestSchema)` to create a new message.
|
|
603
|
+
*/
|
|
604
|
+
export declare const RotateConnectionSecretRequestSchema: GenMessage<RotateConnectionSecretRequest, {
|
|
605
|
+
jsonType: RotateConnectionSecretRequestJson;
|
|
606
|
+
}>;
|
|
607
|
+
/**
|
|
608
|
+
* @generated from message toshi.workspace.v1.RotateConnectionSecretResponse
|
|
609
|
+
*/
|
|
610
|
+
export type RotateConnectionSecretResponse = Message<"toshi.workspace.v1.RotateConnectionSecretResponse"> & {
|
|
611
|
+
/**
|
|
612
|
+
* @generated from field: toshi.workspace.v1.Connection connection = 1;
|
|
613
|
+
*/
|
|
614
|
+
connection?: Connection | undefined;
|
|
615
|
+
/**
|
|
616
|
+
* The new signing secret in its whsec_ form. Shown only in this answer
|
|
617
|
+
* and an identical retry's.
|
|
618
|
+
*
|
|
619
|
+
* @generated from field: string secret = 2;
|
|
620
|
+
*/
|
|
621
|
+
secret: string;
|
|
622
|
+
};
|
|
623
|
+
/**
|
|
624
|
+
* @generated from message toshi.workspace.v1.RotateConnectionSecretResponse
|
|
625
|
+
*/
|
|
626
|
+
export type RotateConnectionSecretResponseJson = {
|
|
627
|
+
/**
|
|
628
|
+
* @generated from field: toshi.workspace.v1.Connection connection = 1;
|
|
629
|
+
*/
|
|
630
|
+
connection?: ConnectionJson;
|
|
631
|
+
/**
|
|
632
|
+
* The new signing secret in its whsec_ form. Shown only in this answer
|
|
633
|
+
* and an identical retry's.
|
|
634
|
+
*
|
|
635
|
+
* @generated from field: string secret = 2;
|
|
636
|
+
*/
|
|
637
|
+
secret?: string;
|
|
638
|
+
};
|
|
639
|
+
/**
|
|
640
|
+
* Describes the message toshi.workspace.v1.RotateConnectionSecretResponse.
|
|
641
|
+
* Use `create(RotateConnectionSecretResponseSchema)` to create a new message.
|
|
642
|
+
*/
|
|
643
|
+
export declare const RotateConnectionSecretResponseSchema: GenMessage<RotateConnectionSecretResponse, {
|
|
644
|
+
jsonType: RotateConnectionSecretResponseJson;
|
|
645
|
+
}>;
|
|
646
|
+
/**
|
|
647
|
+
* @generated from message toshi.workspace.v1.UpdateConnectionRequest
|
|
648
|
+
*/
|
|
649
|
+
export type UpdateConnectionRequest = Message<"toshi.workspace.v1.UpdateConnectionRequest"> & {
|
|
650
|
+
/**
|
|
651
|
+
* id names the connection; the fields update_mask names carry the new
|
|
652
|
+
* values.
|
|
653
|
+
*
|
|
654
|
+
* @generated from field: toshi.workspace.v1.Connection connection = 1;
|
|
655
|
+
*/
|
|
656
|
+
connection?: Connection | undefined;
|
|
657
|
+
/**
|
|
658
|
+
* The paths managed_by, manifest_digest, manifest_origin and managed_fields
|
|
659
|
+
* set the management mark and go together: all four or none, and on their
|
|
660
|
+
* own; managed_by "manifest" needs the digest, an origin and at least one
|
|
661
|
+
* field path, and an empty managed_by clears all four.
|
|
662
|
+
*
|
|
663
|
+
* @generated from field: google.protobuf.FieldMask update_mask = 2;
|
|
664
|
+
*/
|
|
665
|
+
updateMask?: FieldMask | undefined;
|
|
666
|
+
};
|
|
667
|
+
/**
|
|
668
|
+
* @generated from message toshi.workspace.v1.UpdateConnectionRequest
|
|
669
|
+
*/
|
|
670
|
+
export type UpdateConnectionRequestJson = {
|
|
671
|
+
/**
|
|
672
|
+
* id names the connection; the fields update_mask names carry the new
|
|
673
|
+
* values.
|
|
674
|
+
*
|
|
675
|
+
* @generated from field: toshi.workspace.v1.Connection connection = 1;
|
|
676
|
+
*/
|
|
677
|
+
connection?: ConnectionJson;
|
|
678
|
+
/**
|
|
679
|
+
* The paths managed_by, manifest_digest, manifest_origin and managed_fields
|
|
680
|
+
* set the management mark and go together: all four or none, and on their
|
|
681
|
+
* own; managed_by "manifest" needs the digest, an origin and at least one
|
|
682
|
+
* field path, and an empty managed_by clears all four.
|
|
683
|
+
*
|
|
684
|
+
* @generated from field: google.protobuf.FieldMask update_mask = 2;
|
|
685
|
+
*/
|
|
686
|
+
updateMask?: FieldMaskJson;
|
|
687
|
+
};
|
|
688
|
+
/**
|
|
689
|
+
* Describes the message toshi.workspace.v1.UpdateConnectionRequest.
|
|
690
|
+
* Use `create(UpdateConnectionRequestSchema)` to create a new message.
|
|
691
|
+
*/
|
|
692
|
+
export declare const UpdateConnectionRequestSchema: GenMessage<UpdateConnectionRequest, {
|
|
693
|
+
jsonType: UpdateConnectionRequestJson;
|
|
694
|
+
}>;
|
|
695
|
+
/**
|
|
696
|
+
* @generated from message toshi.workspace.v1.UpdateConnectionResponse
|
|
697
|
+
*/
|
|
698
|
+
export type UpdateConnectionResponse = Message<"toshi.workspace.v1.UpdateConnectionResponse"> & {
|
|
699
|
+
/**
|
|
700
|
+
* @generated from field: toshi.workspace.v1.Connection connection = 1;
|
|
701
|
+
*/
|
|
702
|
+
connection?: Connection | undefined;
|
|
703
|
+
};
|
|
704
|
+
/**
|
|
705
|
+
* @generated from message toshi.workspace.v1.UpdateConnectionResponse
|
|
706
|
+
*/
|
|
707
|
+
export type UpdateConnectionResponseJson = {
|
|
708
|
+
/**
|
|
709
|
+
* @generated from field: toshi.workspace.v1.Connection connection = 1;
|
|
710
|
+
*/
|
|
711
|
+
connection?: ConnectionJson;
|
|
712
|
+
};
|
|
713
|
+
/**
|
|
714
|
+
* Describes the message toshi.workspace.v1.UpdateConnectionResponse.
|
|
715
|
+
* Use `create(UpdateConnectionResponseSchema)` to create a new message.
|
|
716
|
+
*/
|
|
717
|
+
export declare const UpdateConnectionResponseSchema: GenMessage<UpdateConnectionResponse, {
|
|
718
|
+
jsonType: UpdateConnectionResponseJson;
|
|
719
|
+
}>;
|
|
720
|
+
/**
|
|
721
|
+
* ConnectionDelivery is one message a WEBHOOK connection's sender sent:
|
|
722
|
+
* the tries that carried one webhook id.
|
|
723
|
+
*
|
|
724
|
+
* @generated from message toshi.workspace.v1.ConnectionDelivery
|
|
725
|
+
*/
|
|
726
|
+
export type ConnectionDelivery = Message<"toshi.workspace.v1.ConnectionDelivery"> & {
|
|
727
|
+
/**
|
|
728
|
+
* @generated from field: string id = 1;
|
|
729
|
+
*/
|
|
730
|
+
id: string;
|
|
731
|
+
/**
|
|
732
|
+
* @generated from field: string connection_id = 2;
|
|
733
|
+
*/
|
|
734
|
+
connectionId: string;
|
|
735
|
+
/**
|
|
736
|
+
* The sender's webhook-id header.
|
|
737
|
+
*
|
|
738
|
+
* @generated from field: string webhook_id = 3;
|
|
739
|
+
*/
|
|
740
|
+
webhookId: string;
|
|
741
|
+
/**
|
|
742
|
+
* @generated from field: toshi.workspace.v1.ConnectionDeliveryState state = 4;
|
|
743
|
+
*/
|
|
744
|
+
state: ConnectionDeliveryState;
|
|
745
|
+
/**
|
|
746
|
+
* Why it was dropped or failed, such as delivery_failed or store_error;
|
|
747
|
+
* empty otherwise.
|
|
748
|
+
*
|
|
749
|
+
* @generated from field: string reason = 5;
|
|
750
|
+
*/
|
|
751
|
+
reason: string;
|
|
752
|
+
/**
|
|
753
|
+
* The time the sender signed; when the ingress stored it.
|
|
754
|
+
*
|
|
755
|
+
* @generated from field: google.protobuf.Timestamp sent_at = 6;
|
|
756
|
+
*/
|
|
757
|
+
sentAt?: Timestamp | undefined;
|
|
758
|
+
/**
|
|
759
|
+
* @generated from field: google.protobuf.Timestamp received_at = 7;
|
|
760
|
+
*/
|
|
761
|
+
receivedAt?: Timestamp | undefined;
|
|
762
|
+
/**
|
|
763
|
+
* When it was processed, dropped or failed; unset while received.
|
|
764
|
+
*
|
|
765
|
+
* @generated from field: google.protobuf.Timestamp processed_at = 8;
|
|
766
|
+
*/
|
|
767
|
+
processedAt?: Timestamp | undefined;
|
|
768
|
+
/**
|
|
769
|
+
* Tries a worker made since it was last received or replayed.
|
|
770
|
+
*
|
|
771
|
+
* @generated from field: int32 attempts = 9;
|
|
772
|
+
*/
|
|
773
|
+
attempts: number;
|
|
774
|
+
/**
|
|
775
|
+
* The request's Content-Type header.
|
|
776
|
+
*
|
|
777
|
+
* @generated from field: string content_type = 10;
|
|
778
|
+
*/
|
|
779
|
+
contentType: string;
|
|
780
|
+
/**
|
|
781
|
+
* The hex SHA-256 of the body.
|
|
782
|
+
*
|
|
783
|
+
* @generated from field: string body_digest = 11;
|
|
784
|
+
*/
|
|
785
|
+
bodyDigest: string;
|
|
786
|
+
/**
|
|
787
|
+
* When the workspace's retention removed the body; unset while it is
|
|
788
|
+
* kept. A delivery without its body is not replayed.
|
|
789
|
+
*
|
|
790
|
+
* @generated from field: google.protobuf.Timestamp body_expired_at = 12;
|
|
791
|
+
*/
|
|
792
|
+
bodyExpiredAt?: Timestamp | undefined;
|
|
793
|
+
/**
|
|
794
|
+
* How many times it was replayed.
|
|
795
|
+
*
|
|
796
|
+
* @generated from field: int32 replays = 14;
|
|
797
|
+
*/
|
|
798
|
+
replays: number;
|
|
799
|
+
/**
|
|
800
|
+
* Who asked for the latest replay; empty before one.
|
|
801
|
+
*
|
|
802
|
+
* @generated from field: string replayed_by = 15;
|
|
803
|
+
*/
|
|
804
|
+
replayedBy: string;
|
|
805
|
+
/**
|
|
806
|
+
* The name of the event the delivery carries, such as
|
|
807
|
+
* github.pull_request.opened for a GitHub connection's; empty when the
|
|
808
|
+
* sender named none, as for a webhook connection's.
|
|
809
|
+
*
|
|
810
|
+
* @generated from field: string event_name = 16;
|
|
811
|
+
*/
|
|
812
|
+
eventName: string;
|
|
813
|
+
};
|
|
814
|
+
/**
|
|
815
|
+
* ConnectionDelivery is one message a WEBHOOK connection's sender sent:
|
|
816
|
+
* the tries that carried one webhook id.
|
|
817
|
+
*
|
|
818
|
+
* @generated from message toshi.workspace.v1.ConnectionDelivery
|
|
819
|
+
*/
|
|
820
|
+
export type ConnectionDeliveryJson = {
|
|
821
|
+
/**
|
|
822
|
+
* @generated from field: string id = 1;
|
|
823
|
+
*/
|
|
824
|
+
id?: string;
|
|
825
|
+
/**
|
|
826
|
+
* @generated from field: string connection_id = 2;
|
|
827
|
+
*/
|
|
828
|
+
connectionId?: string;
|
|
829
|
+
/**
|
|
830
|
+
* The sender's webhook-id header.
|
|
831
|
+
*
|
|
832
|
+
* @generated from field: string webhook_id = 3;
|
|
833
|
+
*/
|
|
834
|
+
webhookId?: string;
|
|
835
|
+
/**
|
|
836
|
+
* @generated from field: toshi.workspace.v1.ConnectionDeliveryState state = 4;
|
|
837
|
+
*/
|
|
838
|
+
state?: ConnectionDeliveryStateJson;
|
|
839
|
+
/**
|
|
840
|
+
* Why it was dropped or failed, such as delivery_failed or store_error;
|
|
841
|
+
* empty otherwise.
|
|
842
|
+
*
|
|
843
|
+
* @generated from field: string reason = 5;
|
|
844
|
+
*/
|
|
845
|
+
reason?: string;
|
|
846
|
+
/**
|
|
847
|
+
* The time the sender signed; when the ingress stored it.
|
|
848
|
+
*
|
|
849
|
+
* @generated from field: google.protobuf.Timestamp sent_at = 6;
|
|
850
|
+
*/
|
|
851
|
+
sentAt?: TimestampJson;
|
|
852
|
+
/**
|
|
853
|
+
* @generated from field: google.protobuf.Timestamp received_at = 7;
|
|
854
|
+
*/
|
|
855
|
+
receivedAt?: TimestampJson;
|
|
856
|
+
/**
|
|
857
|
+
* When it was processed, dropped or failed; unset while received.
|
|
858
|
+
*
|
|
859
|
+
* @generated from field: google.protobuf.Timestamp processed_at = 8;
|
|
860
|
+
*/
|
|
861
|
+
processedAt?: TimestampJson;
|
|
862
|
+
/**
|
|
863
|
+
* Tries a worker made since it was last received or replayed.
|
|
864
|
+
*
|
|
865
|
+
* @generated from field: int32 attempts = 9;
|
|
866
|
+
*/
|
|
867
|
+
attempts?: number;
|
|
868
|
+
/**
|
|
869
|
+
* The request's Content-Type header.
|
|
870
|
+
*
|
|
871
|
+
* @generated from field: string content_type = 10;
|
|
872
|
+
*/
|
|
873
|
+
contentType?: string;
|
|
874
|
+
/**
|
|
875
|
+
* The hex SHA-256 of the body.
|
|
876
|
+
*
|
|
877
|
+
* @generated from field: string body_digest = 11;
|
|
878
|
+
*/
|
|
879
|
+
bodyDigest?: string;
|
|
880
|
+
/**
|
|
881
|
+
* When the workspace's retention removed the body; unset while it is
|
|
882
|
+
* kept. A delivery without its body is not replayed.
|
|
883
|
+
*
|
|
884
|
+
* @generated from field: google.protobuf.Timestamp body_expired_at = 12;
|
|
885
|
+
*/
|
|
886
|
+
bodyExpiredAt?: TimestampJson;
|
|
887
|
+
/**
|
|
888
|
+
* How many times it was replayed.
|
|
889
|
+
*
|
|
890
|
+
* @generated from field: int32 replays = 14;
|
|
891
|
+
*/
|
|
892
|
+
replays?: number;
|
|
893
|
+
/**
|
|
894
|
+
* Who asked for the latest replay; empty before one.
|
|
895
|
+
*
|
|
896
|
+
* @generated from field: string replayed_by = 15;
|
|
897
|
+
*/
|
|
898
|
+
replayedBy?: string;
|
|
899
|
+
/**
|
|
900
|
+
* The name of the event the delivery carries, such as
|
|
901
|
+
* github.pull_request.opened for a GitHub connection's; empty when the
|
|
902
|
+
* sender named none, as for a webhook connection's.
|
|
903
|
+
*
|
|
904
|
+
* @generated from field: string event_name = 16;
|
|
905
|
+
*/
|
|
906
|
+
eventName?: string;
|
|
907
|
+
};
|
|
908
|
+
/**
|
|
909
|
+
* Describes the message toshi.workspace.v1.ConnectionDelivery.
|
|
910
|
+
* Use `create(ConnectionDeliverySchema)` to create a new message.
|
|
911
|
+
*/
|
|
912
|
+
export declare const ConnectionDeliverySchema: GenMessage<ConnectionDelivery, {
|
|
913
|
+
jsonType: ConnectionDeliveryJson;
|
|
914
|
+
}>;
|
|
915
|
+
/**
|
|
916
|
+
* ConnectionDeliveryRun is one time a worker ran a delivery to its end.
|
|
917
|
+
*
|
|
918
|
+
* @generated from message toshi.workspace.v1.ConnectionDeliveryRun
|
|
919
|
+
*/
|
|
920
|
+
export type ConnectionDeliveryRun = Message<"toshi.workspace.v1.ConnectionDeliveryRun"> & {
|
|
921
|
+
/**
|
|
922
|
+
* 1 for the first run, counting up.
|
|
923
|
+
*
|
|
924
|
+
* @generated from field: int32 run = 1;
|
|
925
|
+
*/
|
|
926
|
+
run: number;
|
|
927
|
+
/**
|
|
928
|
+
* event, delivered, delivery_failed, connection_deleted, body_not_json,
|
|
929
|
+
* invalid_event, unnamed or failed.
|
|
930
|
+
*
|
|
931
|
+
* @generated from field: string outcome = 4;
|
|
932
|
+
*/
|
|
933
|
+
outcome: string;
|
|
934
|
+
/**
|
|
935
|
+
* The event the run wrote or found; empty when it wrote none.
|
|
936
|
+
*
|
|
937
|
+
* @generated from field: string event_id = 5;
|
|
938
|
+
*/
|
|
939
|
+
eventId: string;
|
|
940
|
+
/**
|
|
941
|
+
* What failed, for a target that took the delivery on no try or a store
|
|
942
|
+
* that failed.
|
|
943
|
+
*
|
|
944
|
+
* @generated from field: string error = 7;
|
|
945
|
+
*/
|
|
946
|
+
error: string;
|
|
947
|
+
/**
|
|
948
|
+
* @generated from field: google.protobuf.Duration duration = 8;
|
|
949
|
+
*/
|
|
950
|
+
duration?: Duration | undefined;
|
|
951
|
+
/**
|
|
952
|
+
* @generated from field: google.protobuf.Timestamp finished_at = 9;
|
|
953
|
+
*/
|
|
954
|
+
finishedAt?: Timestamp | undefined;
|
|
955
|
+
/**
|
|
956
|
+
* Who asked for the replay the run ran; empty for the sender's message.
|
|
957
|
+
*
|
|
958
|
+
* @generated from field: string actor = 10;
|
|
959
|
+
*/
|
|
960
|
+
actor: string;
|
|
961
|
+
/**
|
|
962
|
+
* The outbound delivery that posted it to the connection's target, for
|
|
963
|
+
* delivered and delivery_failed.
|
|
964
|
+
*
|
|
965
|
+
* @generated from field: string target_delivery_id = 11;
|
|
966
|
+
*/
|
|
967
|
+
targetDeliveryId: string;
|
|
968
|
+
};
|
|
969
|
+
/**
|
|
970
|
+
* ConnectionDeliveryRun is one time a worker ran a delivery to its end.
|
|
971
|
+
*
|
|
972
|
+
* @generated from message toshi.workspace.v1.ConnectionDeliveryRun
|
|
973
|
+
*/
|
|
974
|
+
export type ConnectionDeliveryRunJson = {
|
|
975
|
+
/**
|
|
976
|
+
* 1 for the first run, counting up.
|
|
977
|
+
*
|
|
978
|
+
* @generated from field: int32 run = 1;
|
|
979
|
+
*/
|
|
980
|
+
run?: number;
|
|
981
|
+
/**
|
|
982
|
+
* event, delivered, delivery_failed, connection_deleted, body_not_json,
|
|
983
|
+
* invalid_event, unnamed or failed.
|
|
984
|
+
*
|
|
985
|
+
* @generated from field: string outcome = 4;
|
|
986
|
+
*/
|
|
987
|
+
outcome?: string;
|
|
988
|
+
/**
|
|
989
|
+
* The event the run wrote or found; empty when it wrote none.
|
|
990
|
+
*
|
|
991
|
+
* @generated from field: string event_id = 5;
|
|
992
|
+
*/
|
|
993
|
+
eventId?: string;
|
|
994
|
+
/**
|
|
995
|
+
* What failed, for a target that took the delivery on no try or a store
|
|
996
|
+
* that failed.
|
|
997
|
+
*
|
|
998
|
+
* @generated from field: string error = 7;
|
|
999
|
+
*/
|
|
1000
|
+
error?: string;
|
|
1001
|
+
/**
|
|
1002
|
+
* @generated from field: google.protobuf.Duration duration = 8;
|
|
1003
|
+
*/
|
|
1004
|
+
duration?: DurationJson;
|
|
1005
|
+
/**
|
|
1006
|
+
* @generated from field: google.protobuf.Timestamp finished_at = 9;
|
|
1007
|
+
*/
|
|
1008
|
+
finishedAt?: TimestampJson;
|
|
1009
|
+
/**
|
|
1010
|
+
* Who asked for the replay the run ran; empty for the sender's message.
|
|
1011
|
+
*
|
|
1012
|
+
* @generated from field: string actor = 10;
|
|
1013
|
+
*/
|
|
1014
|
+
actor?: string;
|
|
1015
|
+
/**
|
|
1016
|
+
* The outbound delivery that posted it to the connection's target, for
|
|
1017
|
+
* delivered and delivery_failed.
|
|
1018
|
+
*
|
|
1019
|
+
* @generated from field: string target_delivery_id = 11;
|
|
1020
|
+
*/
|
|
1021
|
+
targetDeliveryId?: string;
|
|
1022
|
+
};
|
|
1023
|
+
/**
|
|
1024
|
+
* Describes the message toshi.workspace.v1.ConnectionDeliveryRun.
|
|
1025
|
+
* Use `create(ConnectionDeliveryRunSchema)` to create a new message.
|
|
1026
|
+
*/
|
|
1027
|
+
export declare const ConnectionDeliveryRunSchema: GenMessage<ConnectionDeliveryRun, {
|
|
1028
|
+
jsonType: ConnectionDeliveryRunJson;
|
|
1029
|
+
}>;
|
|
1030
|
+
/**
|
|
1031
|
+
* @generated from message toshi.workspace.v1.ListConnectionDeliveriesRequest
|
|
1032
|
+
*/
|
|
1033
|
+
export type ListConnectionDeliveriesRequest = Message<"toshi.workspace.v1.ListConnectionDeliveriesRequest"> & {
|
|
1034
|
+
/**
|
|
1035
|
+
* @generated from field: string connection_id = 1;
|
|
1036
|
+
*/
|
|
1037
|
+
connectionId: string;
|
|
1038
|
+
/**
|
|
1039
|
+
* Only the deliveries in this state; unspecified lists every state.
|
|
1040
|
+
*
|
|
1041
|
+
* @generated from field: toshi.workspace.v1.ConnectionDeliveryState state = 2;
|
|
1042
|
+
*/
|
|
1043
|
+
state: ConnectionDeliveryState;
|
|
1044
|
+
/**
|
|
1045
|
+
* The most deliveries in one page; zero lets the server choose.
|
|
1046
|
+
*
|
|
1047
|
+
* @generated from field: int32 page_size = 3;
|
|
1048
|
+
*/
|
|
1049
|
+
pageSize: number;
|
|
1050
|
+
/**
|
|
1051
|
+
* From an earlier response's next_page_token; empty for the first page.
|
|
1052
|
+
*
|
|
1053
|
+
* @generated from field: string page_token = 4;
|
|
1054
|
+
*/
|
|
1055
|
+
pageToken: string;
|
|
1056
|
+
};
|
|
1057
|
+
/**
|
|
1058
|
+
* @generated from message toshi.workspace.v1.ListConnectionDeliveriesRequest
|
|
1059
|
+
*/
|
|
1060
|
+
export type ListConnectionDeliveriesRequestJson = {
|
|
1061
|
+
/**
|
|
1062
|
+
* @generated from field: string connection_id = 1;
|
|
1063
|
+
*/
|
|
1064
|
+
connectionId?: string;
|
|
1065
|
+
/**
|
|
1066
|
+
* Only the deliveries in this state; unspecified lists every state.
|
|
1067
|
+
*
|
|
1068
|
+
* @generated from field: toshi.workspace.v1.ConnectionDeliveryState state = 2;
|
|
1069
|
+
*/
|
|
1070
|
+
state?: ConnectionDeliveryStateJson;
|
|
1071
|
+
/**
|
|
1072
|
+
* The most deliveries in one page; zero lets the server choose.
|
|
1073
|
+
*
|
|
1074
|
+
* @generated from field: int32 page_size = 3;
|
|
1075
|
+
*/
|
|
1076
|
+
pageSize?: number;
|
|
1077
|
+
/**
|
|
1078
|
+
* From an earlier response's next_page_token; empty for the first page.
|
|
1079
|
+
*
|
|
1080
|
+
* @generated from field: string page_token = 4;
|
|
1081
|
+
*/
|
|
1082
|
+
pageToken?: string;
|
|
1083
|
+
};
|
|
1084
|
+
/**
|
|
1085
|
+
* Describes the message toshi.workspace.v1.ListConnectionDeliveriesRequest.
|
|
1086
|
+
* Use `create(ListConnectionDeliveriesRequestSchema)` to create a new message.
|
|
1087
|
+
*/
|
|
1088
|
+
export declare const ListConnectionDeliveriesRequestSchema: GenMessage<ListConnectionDeliveriesRequest, {
|
|
1089
|
+
jsonType: ListConnectionDeliveriesRequestJson;
|
|
1090
|
+
}>;
|
|
1091
|
+
/**
|
|
1092
|
+
* @generated from message toshi.workspace.v1.ListConnectionDeliveriesResponse
|
|
1093
|
+
*/
|
|
1094
|
+
export type ListConnectionDeliveriesResponse = Message<"toshi.workspace.v1.ListConnectionDeliveriesResponse"> & {
|
|
1095
|
+
/**
|
|
1096
|
+
* @generated from field: repeated toshi.workspace.v1.ConnectionDelivery deliveries = 1;
|
|
1097
|
+
*/
|
|
1098
|
+
deliveries: ConnectionDelivery[];
|
|
1099
|
+
/**
|
|
1100
|
+
* Empty on the last page.
|
|
1101
|
+
*
|
|
1102
|
+
* @generated from field: string next_page_token = 2;
|
|
1103
|
+
*/
|
|
1104
|
+
nextPageToken: string;
|
|
1105
|
+
};
|
|
1106
|
+
/**
|
|
1107
|
+
* @generated from message toshi.workspace.v1.ListConnectionDeliveriesResponse
|
|
1108
|
+
*/
|
|
1109
|
+
export type ListConnectionDeliveriesResponseJson = {
|
|
1110
|
+
/**
|
|
1111
|
+
* @generated from field: repeated toshi.workspace.v1.ConnectionDelivery deliveries = 1;
|
|
1112
|
+
*/
|
|
1113
|
+
deliveries?: ConnectionDeliveryJson[];
|
|
1114
|
+
/**
|
|
1115
|
+
* Empty on the last page.
|
|
1116
|
+
*
|
|
1117
|
+
* @generated from field: string next_page_token = 2;
|
|
1118
|
+
*/
|
|
1119
|
+
nextPageToken?: string;
|
|
1120
|
+
};
|
|
1121
|
+
/**
|
|
1122
|
+
* Describes the message toshi.workspace.v1.ListConnectionDeliveriesResponse.
|
|
1123
|
+
* Use `create(ListConnectionDeliveriesResponseSchema)` to create a new message.
|
|
1124
|
+
*/
|
|
1125
|
+
export declare const ListConnectionDeliveriesResponseSchema: GenMessage<ListConnectionDeliveriesResponse, {
|
|
1126
|
+
jsonType: ListConnectionDeliveriesResponseJson;
|
|
1127
|
+
}>;
|
|
1128
|
+
/**
|
|
1129
|
+
* @generated from message toshi.workspace.v1.GetConnectionDeliveryRequest
|
|
1130
|
+
*/
|
|
1131
|
+
export type GetConnectionDeliveryRequest = Message<"toshi.workspace.v1.GetConnectionDeliveryRequest"> & {
|
|
1132
|
+
/**
|
|
1133
|
+
* @generated from field: string id = 1;
|
|
1134
|
+
*/
|
|
1135
|
+
id: string;
|
|
1136
|
+
};
|
|
1137
|
+
/**
|
|
1138
|
+
* @generated from message toshi.workspace.v1.GetConnectionDeliveryRequest
|
|
1139
|
+
*/
|
|
1140
|
+
export type GetConnectionDeliveryRequestJson = {
|
|
1141
|
+
/**
|
|
1142
|
+
* @generated from field: string id = 1;
|
|
1143
|
+
*/
|
|
1144
|
+
id?: string;
|
|
1145
|
+
};
|
|
1146
|
+
/**
|
|
1147
|
+
* Describes the message toshi.workspace.v1.GetConnectionDeliveryRequest.
|
|
1148
|
+
* Use `create(GetConnectionDeliveryRequestSchema)` to create a new message.
|
|
1149
|
+
*/
|
|
1150
|
+
export declare const GetConnectionDeliveryRequestSchema: GenMessage<GetConnectionDeliveryRequest, {
|
|
1151
|
+
jsonType: GetConnectionDeliveryRequestJson;
|
|
1152
|
+
}>;
|
|
1153
|
+
/**
|
|
1154
|
+
* @generated from message toshi.workspace.v1.GetConnectionDeliveryResponse
|
|
1155
|
+
*/
|
|
1156
|
+
export type GetConnectionDeliveryResponse = Message<"toshi.workspace.v1.GetConnectionDeliveryResponse"> & {
|
|
1157
|
+
/**
|
|
1158
|
+
* @generated from field: toshi.workspace.v1.ConnectionDelivery delivery = 1;
|
|
1159
|
+
*/
|
|
1160
|
+
delivery?: ConnectionDelivery | undefined;
|
|
1161
|
+
/**
|
|
1162
|
+
* @generated from field: repeated toshi.workspace.v1.ConnectionDeliveryRun runs = 2;
|
|
1163
|
+
*/
|
|
1164
|
+
runs: ConnectionDeliveryRun[];
|
|
1165
|
+
};
|
|
1166
|
+
/**
|
|
1167
|
+
* @generated from message toshi.workspace.v1.GetConnectionDeliveryResponse
|
|
1168
|
+
*/
|
|
1169
|
+
export type GetConnectionDeliveryResponseJson = {
|
|
1170
|
+
/**
|
|
1171
|
+
* @generated from field: toshi.workspace.v1.ConnectionDelivery delivery = 1;
|
|
1172
|
+
*/
|
|
1173
|
+
delivery?: ConnectionDeliveryJson;
|
|
1174
|
+
/**
|
|
1175
|
+
* @generated from field: repeated toshi.workspace.v1.ConnectionDeliveryRun runs = 2;
|
|
1176
|
+
*/
|
|
1177
|
+
runs?: ConnectionDeliveryRunJson[];
|
|
1178
|
+
};
|
|
1179
|
+
/**
|
|
1180
|
+
* Describes the message toshi.workspace.v1.GetConnectionDeliveryResponse.
|
|
1181
|
+
* Use `create(GetConnectionDeliveryResponseSchema)` to create a new message.
|
|
1182
|
+
*/
|
|
1183
|
+
export declare const GetConnectionDeliveryResponseSchema: GenMessage<GetConnectionDeliveryResponse, {
|
|
1184
|
+
jsonType: GetConnectionDeliveryResponseJson;
|
|
1185
|
+
}>;
|
|
1186
|
+
/**
|
|
1187
|
+
* @generated from message toshi.workspace.v1.ReplayConnectionDeliveryRequest
|
|
1188
|
+
*/
|
|
1189
|
+
export type ReplayConnectionDeliveryRequest = Message<"toshi.workspace.v1.ReplayConnectionDeliveryRequest"> & {
|
|
1190
|
+
/**
|
|
1191
|
+
* @generated from field: string id = 1;
|
|
1192
|
+
*/
|
|
1193
|
+
id: string;
|
|
1194
|
+
/**
|
|
1195
|
+
* @generated from field: string request_key = 2;
|
|
1196
|
+
*/
|
|
1197
|
+
requestKey: string;
|
|
1198
|
+
};
|
|
1199
|
+
/**
|
|
1200
|
+
* @generated from message toshi.workspace.v1.ReplayConnectionDeliveryRequest
|
|
1201
|
+
*/
|
|
1202
|
+
export type ReplayConnectionDeliveryRequestJson = {
|
|
1203
|
+
/**
|
|
1204
|
+
* @generated from field: string id = 1;
|
|
1205
|
+
*/
|
|
1206
|
+
id?: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* @generated from field: string request_key = 2;
|
|
1209
|
+
*/
|
|
1210
|
+
requestKey?: string;
|
|
1211
|
+
};
|
|
1212
|
+
/**
|
|
1213
|
+
* Describes the message toshi.workspace.v1.ReplayConnectionDeliveryRequest.
|
|
1214
|
+
* Use `create(ReplayConnectionDeliveryRequestSchema)` to create a new message.
|
|
1215
|
+
*/
|
|
1216
|
+
export declare const ReplayConnectionDeliveryRequestSchema: GenMessage<ReplayConnectionDeliveryRequest, {
|
|
1217
|
+
jsonType: ReplayConnectionDeliveryRequestJson;
|
|
1218
|
+
}>;
|
|
1219
|
+
/**
|
|
1220
|
+
* @generated from message toshi.workspace.v1.ReplayConnectionDeliveryResponse
|
|
1221
|
+
*/
|
|
1222
|
+
export type ReplayConnectionDeliveryResponse = Message<"toshi.workspace.v1.ReplayConnectionDeliveryResponse"> & {
|
|
1223
|
+
/**
|
|
1224
|
+
* The delivery as the replay left it: received, its replays counted.
|
|
1225
|
+
*
|
|
1226
|
+
* @generated from field: toshi.workspace.v1.ConnectionDelivery delivery = 1;
|
|
1227
|
+
*/
|
|
1228
|
+
delivery?: ConnectionDelivery | undefined;
|
|
1229
|
+
};
|
|
1230
|
+
/**
|
|
1231
|
+
* @generated from message toshi.workspace.v1.ReplayConnectionDeliveryResponse
|
|
1232
|
+
*/
|
|
1233
|
+
export type ReplayConnectionDeliveryResponseJson = {
|
|
1234
|
+
/**
|
|
1235
|
+
* The delivery as the replay left it: received, its replays counted.
|
|
1236
|
+
*
|
|
1237
|
+
* @generated from field: toshi.workspace.v1.ConnectionDelivery delivery = 1;
|
|
1238
|
+
*/
|
|
1239
|
+
delivery?: ConnectionDeliveryJson;
|
|
1240
|
+
};
|
|
1241
|
+
/**
|
|
1242
|
+
* Describes the message toshi.workspace.v1.ReplayConnectionDeliveryResponse.
|
|
1243
|
+
* Use `create(ReplayConnectionDeliveryResponseSchema)` to create a new message.
|
|
1244
|
+
*/
|
|
1245
|
+
export declare const ReplayConnectionDeliveryResponseSchema: GenMessage<ReplayConnectionDeliveryResponse, {
|
|
1246
|
+
jsonType: ReplayConnectionDeliveryResponseJson;
|
|
1247
|
+
}>;
|
|
1248
|
+
/**
|
|
1249
|
+
* ConnectionKind is the kind of source a connection receives events from.
|
|
1250
|
+
*
|
|
1251
|
+
* @generated from enum toshi.workspace.v1.ConnectionKind
|
|
1252
|
+
*/
|
|
1253
|
+
export declare enum ConnectionKind {
|
|
1254
|
+
/**
|
|
1255
|
+
* @generated from enum value: CONNECTION_KIND_UNSPECIFIED = 0;
|
|
1256
|
+
*/
|
|
1257
|
+
UNSPECIFIED = 0,
|
|
1258
|
+
/**
|
|
1259
|
+
* A GitHub App installation.
|
|
1260
|
+
*
|
|
1261
|
+
* @generated from enum value: CONNECTION_KIND_GITHUB = 1;
|
|
1262
|
+
*/
|
|
1263
|
+
GITHUB = 1,
|
|
1264
|
+
/**
|
|
1265
|
+
* A sender that signs its requests as Standard Webhooks does.
|
|
1266
|
+
*
|
|
1267
|
+
* @generated from enum value: CONNECTION_KIND_WEBHOOK = 2;
|
|
1268
|
+
*/
|
|
1269
|
+
WEBHOOK = 2
|
|
1270
|
+
}
|
|
1271
|
+
/**
|
|
1272
|
+
* ConnectionKind is the kind of source a connection receives events from.
|
|
1273
|
+
*
|
|
1274
|
+
* @generated from enum toshi.workspace.v1.ConnectionKind
|
|
1275
|
+
*/
|
|
1276
|
+
export type ConnectionKindJson = "CONNECTION_KIND_UNSPECIFIED" | "CONNECTION_KIND_GITHUB" | "CONNECTION_KIND_WEBHOOK";
|
|
1277
|
+
/**
|
|
1278
|
+
* Describes the enum toshi.workspace.v1.ConnectionKind.
|
|
1279
|
+
*/
|
|
1280
|
+
export declare const ConnectionKindSchema: GenEnum<ConnectionKind, ConnectionKindJson>;
|
|
1281
|
+
/**
|
|
1282
|
+
* ConnectionDeliveryState is where a WEBHOOK connection's delivery stands.
|
|
1283
|
+
*
|
|
1284
|
+
* @generated from enum toshi.workspace.v1.ConnectionDeliveryState
|
|
1285
|
+
*/
|
|
1286
|
+
export declare enum ConnectionDeliveryState {
|
|
1287
|
+
/**
|
|
1288
|
+
* @generated from enum value: CONNECTION_DELIVERY_STATE_UNSPECIFIED = 0;
|
|
1289
|
+
*/
|
|
1290
|
+
UNSPECIFIED = 0,
|
|
1291
|
+
/**
|
|
1292
|
+
* Stored and waiting for a worker, or being run.
|
|
1293
|
+
*
|
|
1294
|
+
* @generated from enum value: CONNECTION_DELIVERY_STATE_RECEIVED = 1;
|
|
1295
|
+
*/
|
|
1296
|
+
RECEIVED = 1,
|
|
1297
|
+
/**
|
|
1298
|
+
* It became an event, or its connection's target took it.
|
|
1299
|
+
*
|
|
1300
|
+
* @generated from enum value: CONNECTION_DELIVERY_STATE_PROCESSED = 2;
|
|
1301
|
+
*/
|
|
1302
|
+
PROCESSED = 2,
|
|
1303
|
+
/**
|
|
1304
|
+
* It became no event, for the reason the delivery names.
|
|
1305
|
+
*
|
|
1306
|
+
* @generated from enum value: CONNECTION_DELIVERY_STATE_DROPPED = 3;
|
|
1307
|
+
*/
|
|
1308
|
+
DROPPED = 3,
|
|
1309
|
+
/**
|
|
1310
|
+
* The store failed on every try to write its event, or its connection's
|
|
1311
|
+
* target took it on no try.
|
|
1312
|
+
*
|
|
1313
|
+
* @generated from enum value: CONNECTION_DELIVERY_STATE_FAILED = 4;
|
|
1314
|
+
*/
|
|
1315
|
+
FAILED = 4
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* ConnectionDeliveryState is where a WEBHOOK connection's delivery stands.
|
|
1319
|
+
*
|
|
1320
|
+
* @generated from enum toshi.workspace.v1.ConnectionDeliveryState
|
|
1321
|
+
*/
|
|
1322
|
+
export type ConnectionDeliveryStateJson = "CONNECTION_DELIVERY_STATE_UNSPECIFIED" | "CONNECTION_DELIVERY_STATE_RECEIVED" | "CONNECTION_DELIVERY_STATE_PROCESSED" | "CONNECTION_DELIVERY_STATE_DROPPED" | "CONNECTION_DELIVERY_STATE_FAILED";
|
|
1323
|
+
/**
|
|
1324
|
+
* Describes the enum toshi.workspace.v1.ConnectionDeliveryState.
|
|
1325
|
+
*/
|
|
1326
|
+
export declare const ConnectionDeliveryStateSchema: GenEnum<ConnectionDeliveryState, ConnectionDeliveryStateJson>;
|
|
1327
|
+
/**
|
|
1328
|
+
* ConnectionService keeps a workspace's connections: the sources of the
|
|
1329
|
+
* events it owns. A GitHub App installation is a connection of the kind
|
|
1330
|
+
* GITHUB, which installing the App creates and removing it deletes; the
|
|
1331
|
+
* calls here list it and cannot create or delete it. A WEBHOOK connection
|
|
1332
|
+
* receives events from a sender that signs its requests as Standard
|
|
1333
|
+
* Webhooks does, with a secret the connection keeps.
|
|
1334
|
+
*
|
|
1335
|
+
* The caller's credential names the workspace, as for WorkloadService.
|
|
1336
|
+
* CreateConnection and RotateConnectionSecret require a request_key, which
|
|
1337
|
+
* works as WorkloadService's do: a retry with the same key and the same
|
|
1338
|
+
* request returns what the first call returned and changes nothing. A
|
|
1339
|
+
* signing secret is shown once, in the answer that made it and an identical
|
|
1340
|
+
* retry's; no read returns it. A retry after the connection is deleted, or
|
|
1341
|
+
* after its secret was rotated again, fails with FAILED_PRECONDITION.
|
|
1342
|
+
*
|
|
1343
|
+
* @generated from service toshi.workspace.v1.ConnectionService
|
|
1344
|
+
*/
|
|
1345
|
+
export declare const ConnectionService: GenService<{
|
|
1346
|
+
/**
|
|
1347
|
+
* ListConnections returns the workspace's connections, ordered by id.
|
|
1348
|
+
*
|
|
1349
|
+
* A page holds 100 connections when page_size is zero, and 1000 at most.
|
|
1350
|
+
*
|
|
1351
|
+
* @generated from rpc toshi.workspace.v1.ConnectionService.ListConnections
|
|
1352
|
+
*/
|
|
1353
|
+
listConnections: {
|
|
1354
|
+
methodKind: "unary";
|
|
1355
|
+
input: typeof ListConnectionsRequestSchema;
|
|
1356
|
+
output: typeof ListConnectionsResponseSchema;
|
|
1357
|
+
};
|
|
1358
|
+
/**
|
|
1359
|
+
* GetConnection returns one connection. One the workspace does not have,
|
|
1360
|
+
* or one deleted, is NOT_FOUND.
|
|
1361
|
+
*
|
|
1362
|
+
* @generated from rpc toshi.workspace.v1.ConnectionService.GetConnection
|
|
1363
|
+
*/
|
|
1364
|
+
getConnection: {
|
|
1365
|
+
methodKind: "unary";
|
|
1366
|
+
input: typeof GetConnectionRequestSchema;
|
|
1367
|
+
output: typeof GetConnectionResponseSchema;
|
|
1368
|
+
};
|
|
1369
|
+
/**
|
|
1370
|
+
* CreateConnection creates a WEBHOOK connection whose events belong to a
|
|
1371
|
+
* project's environment, and returns it with its signing secret. A kind
|
|
1372
|
+
* other than WEBHOOK fails with INVALID_ARGUMENT, a name a live
|
|
1373
|
+
* connection of the workspace has with ALREADY_EXISTS, and an
|
|
1374
|
+
* environment the project does not have with NOT_FOUND.
|
|
1375
|
+
*
|
|
1376
|
+
* @generated from rpc toshi.workspace.v1.ConnectionService.CreateConnection
|
|
1377
|
+
*/
|
|
1378
|
+
createConnection: {
|
|
1379
|
+
methodKind: "unary";
|
|
1380
|
+
input: typeof CreateConnectionRequestSchema;
|
|
1381
|
+
output: typeof CreateConnectionResponseSchema;
|
|
1382
|
+
};
|
|
1383
|
+
/**
|
|
1384
|
+
* DeleteConnection deletes a WEBHOOK connection: its events are no longer
|
|
1385
|
+
* received. A GITHUB connection fails with FAILED_PRECONDITION, as only
|
|
1386
|
+
* removing the GitHub App deletes it, as does one that live triggers match
|
|
1387
|
+
* events from, naming them as project/name, and one the workspace does
|
|
1388
|
+
* not have with NOT_FOUND.
|
|
1389
|
+
*
|
|
1390
|
+
* @generated from rpc toshi.workspace.v1.ConnectionService.DeleteConnection
|
|
1391
|
+
*/
|
|
1392
|
+
deleteConnection: {
|
|
1393
|
+
methodKind: "unary";
|
|
1394
|
+
input: typeof DeleteConnectionRequestSchema;
|
|
1395
|
+
output: typeof DeleteConnectionResponseSchema;
|
|
1396
|
+
};
|
|
1397
|
+
/**
|
|
1398
|
+
* RotateConnectionSecret gives a WEBHOOK connection a new signing secret
|
|
1399
|
+
* and returns it. For the overlap after the rotation, the previous secret
|
|
1400
|
+
* still verifies, so the sender can switch over; with an overlap of zero
|
|
1401
|
+
* it stops verifying at once. While a previous secret still verifies, a
|
|
1402
|
+
* rotation with an overlap fails with FAILED_PRECONDITION; one with an
|
|
1403
|
+
* overlap of zero always runs. An overlap above 7 days or below zero fails
|
|
1404
|
+
* with INVALID_ARGUMENT, a GITHUB connection with FAILED_PRECONDITION,
|
|
1405
|
+
* and one the workspace does not have with NOT_FOUND.
|
|
1406
|
+
*
|
|
1407
|
+
* @generated from rpc toshi.workspace.v1.ConnectionService.RotateConnectionSecret
|
|
1408
|
+
*/
|
|
1409
|
+
rotateConnectionSecret: {
|
|
1410
|
+
methodKind: "unary";
|
|
1411
|
+
input: typeof RotateConnectionSecretRequestSchema;
|
|
1412
|
+
output: typeof RotateConnectionSecretResponseSchema;
|
|
1413
|
+
};
|
|
1414
|
+
/**
|
|
1415
|
+
* UpdateConnection sets the fields of connection.id's connection that
|
|
1416
|
+
* update_mask names. The one field it sets is target, the URL a WEBHOOK
|
|
1417
|
+
* connection's deliveries are posted to in place of the event log: its
|
|
1418
|
+
* url and secret, both required, or an empty url to clear it. An unset
|
|
1419
|
+
* update_mask names the fields connection carries. An empty one, an
|
|
1420
|
+
* unset one with no target, "*" and a path of another field are
|
|
1421
|
+
* INVALID_ARGUMENT. The
|
|
1422
|
+
* secret is sealed under the workspace's data key and never returned; a
|
|
1423
|
+
* deployment with no keyring refuses it with FAILED_PRECONDITION. A
|
|
1424
|
+
* GITHUB connection is FAILED_PRECONDITION, and one the workspace does
|
|
1425
|
+
* not have NOT_FOUND.
|
|
1426
|
+
*
|
|
1427
|
+
* @generated from rpc toshi.workspace.v1.ConnectionService.UpdateConnection
|
|
1428
|
+
*/
|
|
1429
|
+
updateConnection: {
|
|
1430
|
+
methodKind: "unary";
|
|
1431
|
+
input: typeof UpdateConnectionRequestSchema;
|
|
1432
|
+
output: typeof UpdateConnectionResponseSchema;
|
|
1433
|
+
};
|
|
1434
|
+
/**
|
|
1435
|
+
* ListConnectionDeliveries returns a WEBHOOK connection's deliveries: the
|
|
1436
|
+
* messages its sender sent, one for each webhook id, newest received
|
|
1437
|
+
* first. A delivery never carries its body. A connection the workspace
|
|
1438
|
+
* does not have is NOT_FOUND; a deleted one's deliveries are still
|
|
1439
|
+
* listed, and a deleted one with none is NOT_FOUND.
|
|
1440
|
+
*
|
|
1441
|
+
* A page holds 100 deliveries when page_size is zero, and 1000 at most.
|
|
1442
|
+
*
|
|
1443
|
+
* @generated from rpc toshi.workspace.v1.ConnectionService.ListConnectionDeliveries
|
|
1444
|
+
*/
|
|
1445
|
+
listConnectionDeliveries: {
|
|
1446
|
+
methodKind: "unary";
|
|
1447
|
+
input: typeof ListConnectionDeliveriesRequestSchema;
|
|
1448
|
+
output: typeof ListConnectionDeliveriesResponseSchema;
|
|
1449
|
+
};
|
|
1450
|
+
/**
|
|
1451
|
+
* GetConnectionDelivery returns one delivery, without its body, and its
|
|
1452
|
+
* runs: each time a worker made it an event, posted it to its
|
|
1453
|
+
* connection's target, dropped it or failed it, oldest first. A delivery the workspace does not have is NOT_FOUND.
|
|
1454
|
+
*
|
|
1455
|
+
* @generated from rpc toshi.workspace.v1.ConnectionService.GetConnectionDelivery
|
|
1456
|
+
*/
|
|
1457
|
+
getConnectionDelivery: {
|
|
1458
|
+
methodKind: "unary";
|
|
1459
|
+
input: typeof GetConnectionDeliveryRequestSchema;
|
|
1460
|
+
output: typeof GetConnectionDeliveryResponseSchema;
|
|
1461
|
+
};
|
|
1462
|
+
/**
|
|
1463
|
+
* ReplayConnectionDelivery sends a processed, dropped or failed delivery
|
|
1464
|
+
* through its connection again, as a new message under the same webhook
|
|
1465
|
+
* id: it goes to the connection's target then, or to the event log when
|
|
1466
|
+
* it has none, and its run records the caller. A delivery still received, whose receipt or body
|
|
1467
|
+
* expired, or whose connection is deleted is FAILED_PRECONDITION, as is
|
|
1468
|
+
* one another replay counted since this call read it. A delivery the
|
|
1469
|
+
* workspace does not have is NOT_FOUND.
|
|
1470
|
+
*
|
|
1471
|
+
* request_key is required: a retry with the same key and the same
|
|
1472
|
+
* request returns what the first call returned and replays nothing.
|
|
1473
|
+
*
|
|
1474
|
+
* @generated from rpc toshi.workspace.v1.ConnectionService.ReplayConnectionDelivery
|
|
1475
|
+
*/
|
|
1476
|
+
replayConnectionDelivery: {
|
|
1477
|
+
methodKind: "unary";
|
|
1478
|
+
input: typeof ReplayConnectionDeliveryRequestSchema;
|
|
1479
|
+
output: typeof ReplayConnectionDeliveryResponseSchema;
|
|
1480
|
+
};
|
|
1481
|
+
}>;
|