@toshicloud/sdk 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -455
- package/dist/client.d.ts +76 -6
- package/dist/client.js +20 -4
- package/dist/gen/toshi/permission_pb.d.ts +12 -0
- package/dist/gen/toshi/permission_pb.js +14 -2
- package/dist/gen/toshi/workspace/v1/connections_pb.d.ts +358 -29
- package/dist/gen/toshi/workspace/v1/connections_pb.js +112 -24
- package/dist/gen/toshi/workspace/v1/domains_pb.d.ts +26 -26
- package/dist/gen/toshi/workspace/v1/domains_pb.js +4 -4
- package/dist/gen/toshi/workspace/v1/{channels_pb.d.ts → endpoints_pb.d.ts} +945 -822
- package/dist/gen/toshi/workspace/v1/endpoints_pb.js +488 -0
- package/dist/gen/toshi/workspace/v1/grants_pb.d.ts +10 -10
- package/dist/gen/toshi/workspace/v1/grants_pb.js +3 -3
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +62 -24
- package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/hosts_pb.d.ts +110 -36
- package/dist/gen/toshi/workspace/v1/hosts_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/model_credentials_pb.d.ts +654 -0
- package/dist/gen/toshi/workspace/v1/model_credentials_pb.js +110 -0
- package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +21 -2
- package/dist/gen/toshi/workspace/v1/recordings_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/roles_pb.d.ts +1 -1
- package/dist/gen/toshi/workspace/v1/roles_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +19 -2
- package/dist/gen/toshi/workspace/v1/secrets_pb.js +1 -1
- package/dist/gen/toshi/workspace/v1/triggers_pb.d.ts +28 -28
- package/dist/gen/toshi/workspace/v1/triggers_pb.js +6 -6
- package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +202 -202
- package/dist/gen/toshi/workspace/v1/webhook_pb.js +46 -46
- package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +579 -30
- package/dist/gen/toshi/workspace/v1/workloads_pb.js +85 -55
- package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +991 -123
- package/dist/gen/toshi/workspace/v1/workspace_pb.js +294 -102
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +390 -8
- package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +75 -50
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/retry.js +38 -22
- package/dist/test/alarms.d.ts +29 -0
- package/dist/test/alarms.js +144 -0
- package/dist/test/fake.js +31 -0
- package/dist/test/index.d.ts +12 -2
- package/dist/test/index.js +12 -2
- package/dist/test/procedures.js +40 -34
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/gen/toshi/workspace/v1/channels_pb.js +0 -483
|
@@ -6,9 +6,9 @@ import type { Message } from "@bufbuild/protobuf";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const file_toshi_workspace_v1_webhook: GenFile;
|
|
8
8
|
/**
|
|
9
|
-
* @generated from message toshi.workspace.v1.
|
|
9
|
+
* @generated from message toshi.workspace.v1.Webhook
|
|
10
10
|
*/
|
|
11
|
-
export type
|
|
11
|
+
export type Webhook = Message<"toshi.workspace.v1.Webhook"> & {
|
|
12
12
|
/**
|
|
13
13
|
* Assigned by the server; unique within the workspace.
|
|
14
14
|
*
|
|
@@ -22,7 +22,7 @@ export type WebhookEndpoint = Message<"toshi.workspace.v1.WebhookEndpoint"> & {
|
|
|
22
22
|
*/
|
|
23
23
|
url: string;
|
|
24
24
|
/**
|
|
25
|
-
* The event names the
|
|
25
|
+
* The event names the webhook is owed, each a name (job.state_changed)
|
|
26
26
|
* or a prefix ending in ".*" (job.*); at most 64. Empty keeps every
|
|
27
27
|
* event but those a connection received, which only a name or prefix
|
|
28
28
|
* that matches them keeps.
|
|
@@ -35,7 +35,7 @@ export type WebhookEndpoint = Message<"toshi.workspace.v1.WebhookEndpoint"> & {
|
|
|
35
35
|
*/
|
|
36
36
|
enabled: boolean;
|
|
37
37
|
/**
|
|
38
|
-
* The position in the workspace's event log the
|
|
38
|
+
* The position in the workspace's event log the webhook has read up to,
|
|
39
39
|
* an Event's cursor.
|
|
40
40
|
*
|
|
41
41
|
* @generated from field: string cursor = 5;
|
|
@@ -57,8 +57,8 @@ export type WebhookEndpoint = Message<"toshi.workspace.v1.WebhookEndpoint"> & {
|
|
|
57
57
|
*/
|
|
58
58
|
updatedAt?: Timestamp | undefined;
|
|
59
59
|
/**
|
|
60
|
-
* Set when events after the
|
|
61
|
-
* The
|
|
60
|
+
* Set when events after the webhook's cursor were removed by retention.
|
|
61
|
+
* The webhook is owed nothing until its cursor is moved.
|
|
62
62
|
*
|
|
63
63
|
* @generated from field: bool cursor_expired = 9;
|
|
64
64
|
*/
|
|
@@ -70,7 +70,7 @@ export type WebhookEndpoint = Message<"toshi.workspace.v1.WebhookEndpoint"> & {
|
|
|
70
70
|
*/
|
|
71
71
|
retentionBoundary?: Timestamp | undefined;
|
|
72
72
|
/**
|
|
73
|
-
* The name of a project in the workspace: the
|
|
73
|
+
* The name of a project in the workspace: the webhook is owed only that
|
|
74
74
|
* project's events, those of its workloads and those its connections
|
|
75
75
|
* received. Empty keeps the events of every project.
|
|
76
76
|
*
|
|
@@ -79,9 +79,9 @@ export type WebhookEndpoint = Message<"toshi.workspace.v1.WebhookEndpoint"> & {
|
|
|
79
79
|
project: string;
|
|
80
80
|
};
|
|
81
81
|
/**
|
|
82
|
-
* @generated from message toshi.workspace.v1.
|
|
82
|
+
* @generated from message toshi.workspace.v1.Webhook
|
|
83
83
|
*/
|
|
84
|
-
export type
|
|
84
|
+
export type WebhookJson = {
|
|
85
85
|
/**
|
|
86
86
|
* Assigned by the server; unique within the workspace.
|
|
87
87
|
*
|
|
@@ -95,7 +95,7 @@ export type WebhookEndpointJson = {
|
|
|
95
95
|
*/
|
|
96
96
|
url?: string;
|
|
97
97
|
/**
|
|
98
|
-
* The event names the
|
|
98
|
+
* The event names the webhook is owed, each a name (job.state_changed)
|
|
99
99
|
* or a prefix ending in ".*" (job.*); at most 64. Empty keeps every
|
|
100
100
|
* event but those a connection received, which only a name or prefix
|
|
101
101
|
* that matches them keeps.
|
|
@@ -108,7 +108,7 @@ export type WebhookEndpointJson = {
|
|
|
108
108
|
*/
|
|
109
109
|
enabled?: boolean;
|
|
110
110
|
/**
|
|
111
|
-
* The position in the workspace's event log the
|
|
111
|
+
* The position in the workspace's event log the webhook has read up to,
|
|
112
112
|
* an Event's cursor.
|
|
113
113
|
*
|
|
114
114
|
* @generated from field: string cursor = 5;
|
|
@@ -130,8 +130,8 @@ export type WebhookEndpointJson = {
|
|
|
130
130
|
*/
|
|
131
131
|
updatedAt?: TimestampJson;
|
|
132
132
|
/**
|
|
133
|
-
* Set when events after the
|
|
134
|
-
* The
|
|
133
|
+
* Set when events after the webhook's cursor were removed by retention.
|
|
134
|
+
* The webhook is owed nothing until its cursor is moved.
|
|
135
135
|
*
|
|
136
136
|
* @generated from field: bool cursor_expired = 9;
|
|
137
137
|
*/
|
|
@@ -143,7 +143,7 @@ export type WebhookEndpointJson = {
|
|
|
143
143
|
*/
|
|
144
144
|
retentionBoundary?: TimestampJson;
|
|
145
145
|
/**
|
|
146
|
-
* The name of a project in the workspace: the
|
|
146
|
+
* The name of a project in the workspace: the webhook is owed only that
|
|
147
147
|
* project's events, those of its workloads and those its connections
|
|
148
148
|
* received. Empty keeps the events of every project.
|
|
149
149
|
*
|
|
@@ -152,14 +152,14 @@ export type WebhookEndpointJson = {
|
|
|
152
152
|
project?: string;
|
|
153
153
|
};
|
|
154
154
|
/**
|
|
155
|
-
* Describes the message toshi.workspace.v1.
|
|
156
|
-
* Use `create(
|
|
155
|
+
* Describes the message toshi.workspace.v1.Webhook.
|
|
156
|
+
* Use `create(WebhookSchema)` to create a new message.
|
|
157
157
|
*/
|
|
158
|
-
export declare const
|
|
159
|
-
jsonType:
|
|
158
|
+
export declare const WebhookSchema: GenMessage<Webhook, {
|
|
159
|
+
jsonType: WebhookJson;
|
|
160
160
|
}>;
|
|
161
161
|
/**
|
|
162
|
-
* WebhookDelivery is one event owed to one
|
|
162
|
+
* WebhookDelivery is one event owed to one webhook.
|
|
163
163
|
*
|
|
164
164
|
* @generated from message toshi.workspace.v1.WebhookDelivery
|
|
165
165
|
*/
|
|
@@ -218,7 +218,7 @@ export type WebhookDelivery = Message<"toshi.workspace.v1.WebhookDelivery"> & {
|
|
|
218
218
|
doneAt?: Timestamp | undefined;
|
|
219
219
|
};
|
|
220
220
|
/**
|
|
221
|
-
* WebhookDelivery is one event owed to one
|
|
221
|
+
* WebhookDelivery is one event owed to one webhook.
|
|
222
222
|
*
|
|
223
223
|
* @generated from message toshi.workspace.v1.WebhookDelivery
|
|
224
224
|
*/
|
|
@@ -284,9 +284,9 @@ export declare const WebhookDeliverySchema: GenMessage<WebhookDelivery, {
|
|
|
284
284
|
jsonType: WebhookDeliveryJson;
|
|
285
285
|
}>;
|
|
286
286
|
/**
|
|
287
|
-
* @generated from message toshi.workspace.v1.
|
|
287
|
+
* @generated from message toshi.workspace.v1.CreateWebhookRequest
|
|
288
288
|
*/
|
|
289
|
-
export type
|
|
289
|
+
export type CreateWebhookRequest = Message<"toshi.workspace.v1.CreateWebhookRequest"> & {
|
|
290
290
|
/**
|
|
291
291
|
* @generated from field: string url = 1;
|
|
292
292
|
*/
|
|
@@ -296,7 +296,7 @@ export type CreateWebhookEndpointRequest = Message<"toshi.workspace.v1.CreateWeb
|
|
|
296
296
|
*/
|
|
297
297
|
events: string[];
|
|
298
298
|
/**
|
|
299
|
-
* Set to make the
|
|
299
|
+
* Set to make the webhook disabled.
|
|
300
300
|
*
|
|
301
301
|
* @generated from field: bool disabled = 3;
|
|
302
302
|
*/
|
|
@@ -306,16 +306,16 @@ export type CreateWebhookEndpointRequest = Message<"toshi.workspace.v1.CreateWeb
|
|
|
306
306
|
*/
|
|
307
307
|
requestKey: string;
|
|
308
308
|
/**
|
|
309
|
-
* The name of a project in the workspace; see
|
|
309
|
+
* The name of a project in the workspace; see Webhook.project.
|
|
310
310
|
*
|
|
311
311
|
* @generated from field: string project = 5;
|
|
312
312
|
*/
|
|
313
313
|
project: string;
|
|
314
314
|
};
|
|
315
315
|
/**
|
|
316
|
-
* @generated from message toshi.workspace.v1.
|
|
316
|
+
* @generated from message toshi.workspace.v1.CreateWebhookRequest
|
|
317
317
|
*/
|
|
318
|
-
export type
|
|
318
|
+
export type CreateWebhookRequestJson = {
|
|
319
319
|
/**
|
|
320
320
|
* @generated from field: string url = 1;
|
|
321
321
|
*/
|
|
@@ -325,7 +325,7 @@ export type CreateWebhookEndpointRequestJson = {
|
|
|
325
325
|
*/
|
|
326
326
|
events?: string[];
|
|
327
327
|
/**
|
|
328
|
-
* Set to make the
|
|
328
|
+
* Set to make the webhook disabled.
|
|
329
329
|
*
|
|
330
330
|
* @generated from field: bool disabled = 3;
|
|
331
331
|
*/
|
|
@@ -335,27 +335,27 @@ export type CreateWebhookEndpointRequestJson = {
|
|
|
335
335
|
*/
|
|
336
336
|
requestKey?: string;
|
|
337
337
|
/**
|
|
338
|
-
* The name of a project in the workspace; see
|
|
338
|
+
* The name of a project in the workspace; see Webhook.project.
|
|
339
339
|
*
|
|
340
340
|
* @generated from field: string project = 5;
|
|
341
341
|
*/
|
|
342
342
|
project?: string;
|
|
343
343
|
};
|
|
344
344
|
/**
|
|
345
|
-
* Describes the message toshi.workspace.v1.
|
|
346
|
-
* Use `create(
|
|
345
|
+
* Describes the message toshi.workspace.v1.CreateWebhookRequest.
|
|
346
|
+
* Use `create(CreateWebhookRequestSchema)` to create a new message.
|
|
347
347
|
*/
|
|
348
|
-
export declare const
|
|
349
|
-
jsonType:
|
|
348
|
+
export declare const CreateWebhookRequestSchema: GenMessage<CreateWebhookRequest, {
|
|
349
|
+
jsonType: CreateWebhookRequestJson;
|
|
350
350
|
}>;
|
|
351
351
|
/**
|
|
352
|
-
* @generated from message toshi.workspace.v1.
|
|
352
|
+
* @generated from message toshi.workspace.v1.CreateWebhookResponse
|
|
353
353
|
*/
|
|
354
|
-
export type
|
|
354
|
+
export type CreateWebhookResponse = Message<"toshi.workspace.v1.CreateWebhookResponse"> & {
|
|
355
355
|
/**
|
|
356
|
-
* @generated from field: toshi.workspace.v1.
|
|
356
|
+
* @generated from field: toshi.workspace.v1.Webhook webhook = 1;
|
|
357
357
|
*/
|
|
358
|
-
|
|
358
|
+
webhook?: Webhook | undefined;
|
|
359
359
|
/**
|
|
360
360
|
* whsec_ and the base64 of 32 random bytes. No other answer carries it.
|
|
361
361
|
*
|
|
@@ -364,13 +364,13 @@ export type CreateWebhookEndpointResponse = Message<"toshi.workspace.v1.CreateWe
|
|
|
364
364
|
secret: string;
|
|
365
365
|
};
|
|
366
366
|
/**
|
|
367
|
-
* @generated from message toshi.workspace.v1.
|
|
367
|
+
* @generated from message toshi.workspace.v1.CreateWebhookResponse
|
|
368
368
|
*/
|
|
369
|
-
export type
|
|
369
|
+
export type CreateWebhookResponseJson = {
|
|
370
370
|
/**
|
|
371
|
-
* @generated from field: toshi.workspace.v1.
|
|
371
|
+
* @generated from field: toshi.workspace.v1.Webhook webhook = 1;
|
|
372
372
|
*/
|
|
373
|
-
|
|
373
|
+
webhook?: WebhookJson;
|
|
374
374
|
/**
|
|
375
375
|
* whsec_ and the base64 of 32 random bytes. No other answer carries it.
|
|
376
376
|
*
|
|
@@ -379,68 +379,68 @@ export type CreateWebhookEndpointResponseJson = {
|
|
|
379
379
|
secret?: string;
|
|
380
380
|
};
|
|
381
381
|
/**
|
|
382
|
-
* Describes the message toshi.workspace.v1.
|
|
383
|
-
* Use `create(
|
|
382
|
+
* Describes the message toshi.workspace.v1.CreateWebhookResponse.
|
|
383
|
+
* Use `create(CreateWebhookResponseSchema)` to create a new message.
|
|
384
384
|
*/
|
|
385
|
-
export declare const
|
|
386
|
-
jsonType:
|
|
385
|
+
export declare const CreateWebhookResponseSchema: GenMessage<CreateWebhookResponse, {
|
|
386
|
+
jsonType: CreateWebhookResponseJson;
|
|
387
387
|
}>;
|
|
388
388
|
/**
|
|
389
|
-
* @generated from message toshi.workspace.v1.
|
|
389
|
+
* @generated from message toshi.workspace.v1.GetWebhookRequest
|
|
390
390
|
*/
|
|
391
|
-
export type
|
|
391
|
+
export type GetWebhookRequest = Message<"toshi.workspace.v1.GetWebhookRequest"> & {
|
|
392
392
|
/**
|
|
393
393
|
* @generated from field: string id = 1;
|
|
394
394
|
*/
|
|
395
395
|
id: string;
|
|
396
396
|
};
|
|
397
397
|
/**
|
|
398
|
-
* @generated from message toshi.workspace.v1.
|
|
398
|
+
* @generated from message toshi.workspace.v1.GetWebhookRequest
|
|
399
399
|
*/
|
|
400
|
-
export type
|
|
400
|
+
export type GetWebhookRequestJson = {
|
|
401
401
|
/**
|
|
402
402
|
* @generated from field: string id = 1;
|
|
403
403
|
*/
|
|
404
404
|
id?: string;
|
|
405
405
|
};
|
|
406
406
|
/**
|
|
407
|
-
* Describes the message toshi.workspace.v1.
|
|
408
|
-
* Use `create(
|
|
407
|
+
* Describes the message toshi.workspace.v1.GetWebhookRequest.
|
|
408
|
+
* Use `create(GetWebhookRequestSchema)` to create a new message.
|
|
409
409
|
*/
|
|
410
|
-
export declare const
|
|
411
|
-
jsonType:
|
|
410
|
+
export declare const GetWebhookRequestSchema: GenMessage<GetWebhookRequest, {
|
|
411
|
+
jsonType: GetWebhookRequestJson;
|
|
412
412
|
}>;
|
|
413
413
|
/**
|
|
414
|
-
* @generated from message toshi.workspace.v1.
|
|
414
|
+
* @generated from message toshi.workspace.v1.GetWebhookResponse
|
|
415
415
|
*/
|
|
416
|
-
export type
|
|
416
|
+
export type GetWebhookResponse = Message<"toshi.workspace.v1.GetWebhookResponse"> & {
|
|
417
417
|
/**
|
|
418
|
-
* @generated from field: toshi.workspace.v1.
|
|
418
|
+
* @generated from field: toshi.workspace.v1.Webhook webhook = 1;
|
|
419
419
|
*/
|
|
420
|
-
|
|
420
|
+
webhook?: Webhook | undefined;
|
|
421
421
|
};
|
|
422
422
|
/**
|
|
423
|
-
* @generated from message toshi.workspace.v1.
|
|
423
|
+
* @generated from message toshi.workspace.v1.GetWebhookResponse
|
|
424
424
|
*/
|
|
425
|
-
export type
|
|
425
|
+
export type GetWebhookResponseJson = {
|
|
426
426
|
/**
|
|
427
|
-
* @generated from field: toshi.workspace.v1.
|
|
427
|
+
* @generated from field: toshi.workspace.v1.Webhook webhook = 1;
|
|
428
428
|
*/
|
|
429
|
-
|
|
429
|
+
webhook?: WebhookJson;
|
|
430
430
|
};
|
|
431
431
|
/**
|
|
432
|
-
* Describes the message toshi.workspace.v1.
|
|
433
|
-
* Use `create(
|
|
432
|
+
* Describes the message toshi.workspace.v1.GetWebhookResponse.
|
|
433
|
+
* Use `create(GetWebhookResponseSchema)` to create a new message.
|
|
434
434
|
*/
|
|
435
|
-
export declare const
|
|
436
|
-
jsonType:
|
|
435
|
+
export declare const GetWebhookResponseSchema: GenMessage<GetWebhookResponse, {
|
|
436
|
+
jsonType: GetWebhookResponseJson;
|
|
437
437
|
}>;
|
|
438
438
|
/**
|
|
439
|
-
* @generated from message toshi.workspace.v1.
|
|
439
|
+
* @generated from message toshi.workspace.v1.ListWebhooksRequest
|
|
440
440
|
*/
|
|
441
|
-
export type
|
|
441
|
+
export type ListWebhooksRequest = Message<"toshi.workspace.v1.ListWebhooksRequest"> & {
|
|
442
442
|
/**
|
|
443
|
-
* The most
|
|
443
|
+
* The most webhooks in one page; zero lets the server choose.
|
|
444
444
|
*
|
|
445
445
|
* @generated from field: int32 page_size = 1;
|
|
446
446
|
*/
|
|
@@ -453,11 +453,11 @@ export type ListWebhookEndpointsRequest = Message<"toshi.workspace.v1.ListWebhoo
|
|
|
453
453
|
pageToken: string;
|
|
454
454
|
};
|
|
455
455
|
/**
|
|
456
|
-
* @generated from message toshi.workspace.v1.
|
|
456
|
+
* @generated from message toshi.workspace.v1.ListWebhooksRequest
|
|
457
457
|
*/
|
|
458
|
-
export type
|
|
458
|
+
export type ListWebhooksRequestJson = {
|
|
459
459
|
/**
|
|
460
|
-
* The most
|
|
460
|
+
* The most webhooks in one page; zero lets the server choose.
|
|
461
461
|
*
|
|
462
462
|
* @generated from field: int32 page_size = 1;
|
|
463
463
|
*/
|
|
@@ -470,20 +470,20 @@ export type ListWebhookEndpointsRequestJson = {
|
|
|
470
470
|
pageToken?: string;
|
|
471
471
|
};
|
|
472
472
|
/**
|
|
473
|
-
* Describes the message toshi.workspace.v1.
|
|
474
|
-
* Use `create(
|
|
473
|
+
* Describes the message toshi.workspace.v1.ListWebhooksRequest.
|
|
474
|
+
* Use `create(ListWebhooksRequestSchema)` to create a new message.
|
|
475
475
|
*/
|
|
476
|
-
export declare const
|
|
477
|
-
jsonType:
|
|
476
|
+
export declare const ListWebhooksRequestSchema: GenMessage<ListWebhooksRequest, {
|
|
477
|
+
jsonType: ListWebhooksRequestJson;
|
|
478
478
|
}>;
|
|
479
479
|
/**
|
|
480
|
-
* @generated from message toshi.workspace.v1.
|
|
480
|
+
* @generated from message toshi.workspace.v1.ListWebhooksResponse
|
|
481
481
|
*/
|
|
482
|
-
export type
|
|
482
|
+
export type ListWebhooksResponse = Message<"toshi.workspace.v1.ListWebhooksResponse"> & {
|
|
483
483
|
/**
|
|
484
|
-
* @generated from field: repeated toshi.workspace.v1.
|
|
484
|
+
* @generated from field: repeated toshi.workspace.v1.Webhook webhooks = 1;
|
|
485
485
|
*/
|
|
486
|
-
|
|
486
|
+
webhooks: Webhook[];
|
|
487
487
|
/**
|
|
488
488
|
* Empty on the last page.
|
|
489
489
|
*
|
|
@@ -492,13 +492,13 @@ export type ListWebhookEndpointsResponse = Message<"toshi.workspace.v1.ListWebho
|
|
|
492
492
|
nextPageToken: string;
|
|
493
493
|
};
|
|
494
494
|
/**
|
|
495
|
-
* @generated from message toshi.workspace.v1.
|
|
495
|
+
* @generated from message toshi.workspace.v1.ListWebhooksResponse
|
|
496
496
|
*/
|
|
497
|
-
export type
|
|
497
|
+
export type ListWebhooksResponseJson = {
|
|
498
498
|
/**
|
|
499
|
-
* @generated from field: repeated toshi.workspace.v1.
|
|
499
|
+
* @generated from field: repeated toshi.workspace.v1.Webhook webhooks = 1;
|
|
500
500
|
*/
|
|
501
|
-
|
|
501
|
+
webhooks?: WebhookJson[];
|
|
502
502
|
/**
|
|
503
503
|
* Empty on the last page.
|
|
504
504
|
*
|
|
@@ -507,16 +507,16 @@ export type ListWebhookEndpointsResponseJson = {
|
|
|
507
507
|
nextPageToken?: string;
|
|
508
508
|
};
|
|
509
509
|
/**
|
|
510
|
-
* Describes the message toshi.workspace.v1.
|
|
511
|
-
* Use `create(
|
|
510
|
+
* Describes the message toshi.workspace.v1.ListWebhooksResponse.
|
|
511
|
+
* Use `create(ListWebhooksResponseSchema)` to create a new message.
|
|
512
512
|
*/
|
|
513
|
-
export declare const
|
|
514
|
-
jsonType:
|
|
513
|
+
export declare const ListWebhooksResponseSchema: GenMessage<ListWebhooksResponse, {
|
|
514
|
+
jsonType: ListWebhooksResponseJson;
|
|
515
515
|
}>;
|
|
516
516
|
/**
|
|
517
|
-
* @generated from message toshi.workspace.v1.
|
|
517
|
+
* @generated from message toshi.workspace.v1.UpdateWebhookRequest
|
|
518
518
|
*/
|
|
519
|
-
export type
|
|
519
|
+
export type UpdateWebhookRequest = Message<"toshi.workspace.v1.UpdateWebhookRequest"> & {
|
|
520
520
|
/**
|
|
521
521
|
* @generated from field: string id = 1;
|
|
522
522
|
*/
|
|
@@ -524,9 +524,9 @@ export type UpdateWebhookEndpointRequest = Message<"toshi.workspace.v1.UpdateWeb
|
|
|
524
524
|
/**
|
|
525
525
|
* Carries the new values of the fields update_mask names.
|
|
526
526
|
*
|
|
527
|
-
* @generated from field: toshi.workspace.v1.
|
|
527
|
+
* @generated from field: toshi.workspace.v1.Webhook webhook = 2;
|
|
528
528
|
*/
|
|
529
|
-
|
|
529
|
+
webhook?: Webhook | undefined;
|
|
530
530
|
/**
|
|
531
531
|
* One or more of url, events, project, enabled and cursor.
|
|
532
532
|
*
|
|
@@ -539,9 +539,9 @@ export type UpdateWebhookEndpointRequest = Message<"toshi.workspace.v1.UpdateWeb
|
|
|
539
539
|
requestKey: string;
|
|
540
540
|
};
|
|
541
541
|
/**
|
|
542
|
-
* @generated from message toshi.workspace.v1.
|
|
542
|
+
* @generated from message toshi.workspace.v1.UpdateWebhookRequest
|
|
543
543
|
*/
|
|
544
|
-
export type
|
|
544
|
+
export type UpdateWebhookRequestJson = {
|
|
545
545
|
/**
|
|
546
546
|
* @generated from field: string id = 1;
|
|
547
547
|
*/
|
|
@@ -549,9 +549,9 @@ export type UpdateWebhookEndpointRequestJson = {
|
|
|
549
549
|
/**
|
|
550
550
|
* Carries the new values of the fields update_mask names.
|
|
551
551
|
*
|
|
552
|
-
* @generated from field: toshi.workspace.v1.
|
|
552
|
+
* @generated from field: toshi.workspace.v1.Webhook webhook = 2;
|
|
553
553
|
*/
|
|
554
|
-
|
|
554
|
+
webhook?: WebhookJson;
|
|
555
555
|
/**
|
|
556
556
|
* One or more of url, events, project, enabled and cursor.
|
|
557
557
|
*
|
|
@@ -564,41 +564,41 @@ export type UpdateWebhookEndpointRequestJson = {
|
|
|
564
564
|
requestKey?: string;
|
|
565
565
|
};
|
|
566
566
|
/**
|
|
567
|
-
* Describes the message toshi.workspace.v1.
|
|
568
|
-
* Use `create(
|
|
567
|
+
* Describes the message toshi.workspace.v1.UpdateWebhookRequest.
|
|
568
|
+
* Use `create(UpdateWebhookRequestSchema)` to create a new message.
|
|
569
569
|
*/
|
|
570
|
-
export declare const
|
|
571
|
-
jsonType:
|
|
570
|
+
export declare const UpdateWebhookRequestSchema: GenMessage<UpdateWebhookRequest, {
|
|
571
|
+
jsonType: UpdateWebhookRequestJson;
|
|
572
572
|
}>;
|
|
573
573
|
/**
|
|
574
|
-
* @generated from message toshi.workspace.v1.
|
|
574
|
+
* @generated from message toshi.workspace.v1.UpdateWebhookResponse
|
|
575
575
|
*/
|
|
576
|
-
export type
|
|
576
|
+
export type UpdateWebhookResponse = Message<"toshi.workspace.v1.UpdateWebhookResponse"> & {
|
|
577
577
|
/**
|
|
578
|
-
* @generated from field: toshi.workspace.v1.
|
|
578
|
+
* @generated from field: toshi.workspace.v1.Webhook webhook = 1;
|
|
579
579
|
*/
|
|
580
|
-
|
|
580
|
+
webhook?: Webhook | undefined;
|
|
581
581
|
};
|
|
582
582
|
/**
|
|
583
|
-
* @generated from message toshi.workspace.v1.
|
|
583
|
+
* @generated from message toshi.workspace.v1.UpdateWebhookResponse
|
|
584
584
|
*/
|
|
585
|
-
export type
|
|
585
|
+
export type UpdateWebhookResponseJson = {
|
|
586
586
|
/**
|
|
587
|
-
* @generated from field: toshi.workspace.v1.
|
|
587
|
+
* @generated from field: toshi.workspace.v1.Webhook webhook = 1;
|
|
588
588
|
*/
|
|
589
|
-
|
|
589
|
+
webhook?: WebhookJson;
|
|
590
590
|
};
|
|
591
591
|
/**
|
|
592
|
-
* Describes the message toshi.workspace.v1.
|
|
593
|
-
* Use `create(
|
|
592
|
+
* Describes the message toshi.workspace.v1.UpdateWebhookResponse.
|
|
593
|
+
* Use `create(UpdateWebhookResponseSchema)` to create a new message.
|
|
594
594
|
*/
|
|
595
|
-
export declare const
|
|
596
|
-
jsonType:
|
|
595
|
+
export declare const UpdateWebhookResponseSchema: GenMessage<UpdateWebhookResponse, {
|
|
596
|
+
jsonType: UpdateWebhookResponseJson;
|
|
597
597
|
}>;
|
|
598
598
|
/**
|
|
599
|
-
* @generated from message toshi.workspace.v1.
|
|
599
|
+
* @generated from message toshi.workspace.v1.DeleteWebhookRequest
|
|
600
600
|
*/
|
|
601
|
-
export type
|
|
601
|
+
export type DeleteWebhookRequest = Message<"toshi.workspace.v1.DeleteWebhookRequest"> & {
|
|
602
602
|
/**
|
|
603
603
|
* @generated from field: string id = 1;
|
|
604
604
|
*/
|
|
@@ -609,9 +609,9 @@ export type DeleteWebhookEndpointRequest = Message<"toshi.workspace.v1.DeleteWeb
|
|
|
609
609
|
requestKey: string;
|
|
610
610
|
};
|
|
611
611
|
/**
|
|
612
|
-
* @generated from message toshi.workspace.v1.
|
|
612
|
+
* @generated from message toshi.workspace.v1.DeleteWebhookRequest
|
|
613
613
|
*/
|
|
614
|
-
export type
|
|
614
|
+
export type DeleteWebhookRequestJson = {
|
|
615
615
|
/**
|
|
616
616
|
* @generated from field: string id = 1;
|
|
617
617
|
*/
|
|
@@ -622,31 +622,31 @@ export type DeleteWebhookEndpointRequestJson = {
|
|
|
622
622
|
requestKey?: string;
|
|
623
623
|
};
|
|
624
624
|
/**
|
|
625
|
-
* Describes the message toshi.workspace.v1.
|
|
626
|
-
* Use `create(
|
|
625
|
+
* Describes the message toshi.workspace.v1.DeleteWebhookRequest.
|
|
626
|
+
* Use `create(DeleteWebhookRequestSchema)` to create a new message.
|
|
627
627
|
*/
|
|
628
|
-
export declare const
|
|
629
|
-
jsonType:
|
|
628
|
+
export declare const DeleteWebhookRequestSchema: GenMessage<DeleteWebhookRequest, {
|
|
629
|
+
jsonType: DeleteWebhookRequestJson;
|
|
630
630
|
}>;
|
|
631
631
|
/**
|
|
632
|
-
* @generated from message toshi.workspace.v1.
|
|
632
|
+
* @generated from message toshi.workspace.v1.DeleteWebhookResponse
|
|
633
633
|
*/
|
|
634
|
-
export type
|
|
634
|
+
export type DeleteWebhookResponse = Message<"toshi.workspace.v1.DeleteWebhookResponse"> & {};
|
|
635
635
|
/**
|
|
636
|
-
* @generated from message toshi.workspace.v1.
|
|
636
|
+
* @generated from message toshi.workspace.v1.DeleteWebhookResponse
|
|
637
637
|
*/
|
|
638
|
-
export type
|
|
638
|
+
export type DeleteWebhookResponseJson = {};
|
|
639
639
|
/**
|
|
640
|
-
* Describes the message toshi.workspace.v1.
|
|
641
|
-
* Use `create(
|
|
640
|
+
* Describes the message toshi.workspace.v1.DeleteWebhookResponse.
|
|
641
|
+
* Use `create(DeleteWebhookResponseSchema)` to create a new message.
|
|
642
642
|
*/
|
|
643
|
-
export declare const
|
|
644
|
-
jsonType:
|
|
643
|
+
export declare const DeleteWebhookResponseSchema: GenMessage<DeleteWebhookResponse, {
|
|
644
|
+
jsonType: DeleteWebhookResponseJson;
|
|
645
645
|
}>;
|
|
646
646
|
/**
|
|
647
|
-
* @generated from message toshi.workspace.v1.
|
|
647
|
+
* @generated from message toshi.workspace.v1.RotateWebhookSecretRequest
|
|
648
648
|
*/
|
|
649
|
-
export type
|
|
649
|
+
export type RotateWebhookSecretRequest = Message<"toshi.workspace.v1.RotateWebhookSecretRequest"> & {
|
|
650
650
|
/**
|
|
651
651
|
* @generated from field: string id = 1;
|
|
652
652
|
*/
|
|
@@ -657,9 +657,9 @@ export type RotateWebhookEndpointSecretRequest = Message<"toshi.workspace.v1.Rot
|
|
|
657
657
|
requestKey: string;
|
|
658
658
|
};
|
|
659
659
|
/**
|
|
660
|
-
* @generated from message toshi.workspace.v1.
|
|
660
|
+
* @generated from message toshi.workspace.v1.RotateWebhookSecretRequest
|
|
661
661
|
*/
|
|
662
|
-
export type
|
|
662
|
+
export type RotateWebhookSecretRequestJson = {
|
|
663
663
|
/**
|
|
664
664
|
* @generated from field: string id = 1;
|
|
665
665
|
*/
|
|
@@ -670,57 +670,57 @@ export type RotateWebhookEndpointSecretRequestJson = {
|
|
|
670
670
|
requestKey?: string;
|
|
671
671
|
};
|
|
672
672
|
/**
|
|
673
|
-
* Describes the message toshi.workspace.v1.
|
|
674
|
-
* Use `create(
|
|
673
|
+
* Describes the message toshi.workspace.v1.RotateWebhookSecretRequest.
|
|
674
|
+
* Use `create(RotateWebhookSecretRequestSchema)` to create a new message.
|
|
675
675
|
*/
|
|
676
|
-
export declare const
|
|
677
|
-
jsonType:
|
|
676
|
+
export declare const RotateWebhookSecretRequestSchema: GenMessage<RotateWebhookSecretRequest, {
|
|
677
|
+
jsonType: RotateWebhookSecretRequestJson;
|
|
678
678
|
}>;
|
|
679
679
|
/**
|
|
680
|
-
* @generated from message toshi.workspace.v1.
|
|
680
|
+
* @generated from message toshi.workspace.v1.RotateWebhookSecretResponse
|
|
681
681
|
*/
|
|
682
|
-
export type
|
|
682
|
+
export type RotateWebhookSecretResponse = Message<"toshi.workspace.v1.RotateWebhookSecretResponse"> & {
|
|
683
683
|
/**
|
|
684
|
-
* @generated from field: toshi.workspace.v1.
|
|
684
|
+
* @generated from field: toshi.workspace.v1.Webhook webhook = 1;
|
|
685
685
|
*/
|
|
686
|
-
|
|
686
|
+
webhook?: Webhook | undefined;
|
|
687
687
|
/**
|
|
688
|
-
* The new secret, as
|
|
688
|
+
* The new secret, as CreateWebhookResponse's.
|
|
689
689
|
*
|
|
690
690
|
* @generated from field: string secret = 2;
|
|
691
691
|
*/
|
|
692
692
|
secret: string;
|
|
693
693
|
};
|
|
694
694
|
/**
|
|
695
|
-
* @generated from message toshi.workspace.v1.
|
|
695
|
+
* @generated from message toshi.workspace.v1.RotateWebhookSecretResponse
|
|
696
696
|
*/
|
|
697
|
-
export type
|
|
697
|
+
export type RotateWebhookSecretResponseJson = {
|
|
698
698
|
/**
|
|
699
|
-
* @generated from field: toshi.workspace.v1.
|
|
699
|
+
* @generated from field: toshi.workspace.v1.Webhook webhook = 1;
|
|
700
700
|
*/
|
|
701
|
-
|
|
701
|
+
webhook?: WebhookJson;
|
|
702
702
|
/**
|
|
703
|
-
* The new secret, as
|
|
703
|
+
* The new secret, as CreateWebhookResponse's.
|
|
704
704
|
*
|
|
705
705
|
* @generated from field: string secret = 2;
|
|
706
706
|
*/
|
|
707
707
|
secret?: string;
|
|
708
708
|
};
|
|
709
709
|
/**
|
|
710
|
-
* Describes the message toshi.workspace.v1.
|
|
711
|
-
* Use `create(
|
|
710
|
+
* Describes the message toshi.workspace.v1.RotateWebhookSecretResponse.
|
|
711
|
+
* Use `create(RotateWebhookSecretResponseSchema)` to create a new message.
|
|
712
712
|
*/
|
|
713
|
-
export declare const
|
|
714
|
-
jsonType:
|
|
713
|
+
export declare const RotateWebhookSecretResponseSchema: GenMessage<RotateWebhookSecretResponse, {
|
|
714
|
+
jsonType: RotateWebhookSecretResponseJson;
|
|
715
715
|
}>;
|
|
716
716
|
/**
|
|
717
717
|
* @generated from message toshi.workspace.v1.ListWebhookDeliveriesRequest
|
|
718
718
|
*/
|
|
719
719
|
export type ListWebhookDeliveriesRequest = Message<"toshi.workspace.v1.ListWebhookDeliveriesRequest"> & {
|
|
720
720
|
/**
|
|
721
|
-
* @generated from field: string
|
|
721
|
+
* @generated from field: string webhook_id = 1;
|
|
722
722
|
*/
|
|
723
|
-
|
|
723
|
+
webhookId: string;
|
|
724
724
|
/**
|
|
725
725
|
* From an earlier response's next_page_token, or a delivery's cursor:
|
|
726
726
|
* the deliveries of the events after that position. Empty starts at the
|
|
@@ -741,9 +741,9 @@ export type ListWebhookDeliveriesRequest = Message<"toshi.workspace.v1.ListWebho
|
|
|
741
741
|
*/
|
|
742
742
|
export type ListWebhookDeliveriesRequestJson = {
|
|
743
743
|
/**
|
|
744
|
-
* @generated from field: string
|
|
744
|
+
* @generated from field: string webhook_id = 1;
|
|
745
745
|
*/
|
|
746
|
-
|
|
746
|
+
webhookId?: string;
|
|
747
747
|
/**
|
|
748
748
|
* From an earlier response's next_page_token, or a delivery's cursor:
|
|
749
749
|
* the deliveries of the events after that position. Empty starts at the
|
|
@@ -808,9 +808,9 @@ export declare const ListWebhookDeliveriesResponseSchema: GenMessage<ListWebhook
|
|
|
808
808
|
*/
|
|
809
809
|
export type ReplayWebhookEventsRequest = Message<"toshi.workspace.v1.ReplayWebhookEventsRequest"> & {
|
|
810
810
|
/**
|
|
811
|
-
* @generated from field: string
|
|
811
|
+
* @generated from field: string webhook_id = 1;
|
|
812
812
|
*/
|
|
813
|
-
|
|
813
|
+
webhookId: string;
|
|
814
814
|
/**
|
|
815
815
|
* Events after this cursor; empty starts at the oldest event the log
|
|
816
816
|
* keeps. A cursor older than that event fails with OUT_OF_RANGE.
|
|
@@ -828,9 +828,9 @@ export type ReplayWebhookEventsRequest = Message<"toshi.workspace.v1.ReplayWebho
|
|
|
828
828
|
*/
|
|
829
829
|
export type ReplayWebhookEventsRequestJson = {
|
|
830
830
|
/**
|
|
831
|
-
* @generated from field: string
|
|
831
|
+
* @generated from field: string webhook_id = 1;
|
|
832
832
|
*/
|
|
833
|
-
|
|
833
|
+
webhookId?: string;
|
|
834
834
|
/**
|
|
835
835
|
* Events after this cursor; empty starts at the oldest event the log
|
|
836
836
|
* keeps. A cursor older than that event fails with OUT_OF_RANGE.
|
|
@@ -868,7 +868,7 @@ export type ReplayWebhookEventsResponse = Message<"toshi.workspace.v1.ReplayWebh
|
|
|
868
868
|
*/
|
|
869
869
|
cursor: string;
|
|
870
870
|
/**
|
|
871
|
-
* Set when events up to the
|
|
871
|
+
* Set when events up to the webhook's own cursor remain after cursor.
|
|
872
872
|
*
|
|
873
873
|
* @generated from field: bool more = 3;
|
|
874
874
|
*/
|
|
@@ -892,7 +892,7 @@ export type ReplayWebhookEventsResponseJson = {
|
|
|
892
892
|
*/
|
|
893
893
|
cursor?: string;
|
|
894
894
|
/**
|
|
895
|
-
* Set when events up to the
|
|
895
|
+
* Set when events up to the webhook's own cursor remain after cursor.
|
|
896
896
|
*
|
|
897
897
|
* @generated from field: bool more = 3;
|
|
898
898
|
*/
|
|
@@ -941,11 +941,11 @@ export type WebhookDeliveryStateJson = "WEBHOOK_DELIVERY_STATE_UNSPECIFIED" | "W
|
|
|
941
941
|
*/
|
|
942
942
|
export declare const WebhookDeliveryStateSchema: GenEnum<WebhookDeliveryState, WebhookDeliveryStateJson>;
|
|
943
943
|
/**
|
|
944
|
-
* WebhookService manages a workspace's
|
|
944
|
+
* WebhookService manages a workspace's webhooks: the URLs its
|
|
945
945
|
* events are POSTed to, signed per Standard Webhooks. The caller's credential
|
|
946
|
-
* names the workspace, as for WorkloadService.
|
|
946
|
+
* names the workspace, as for WorkloadService. A webhook belongs to the
|
|
947
947
|
* workspace, not to an environment, and is owed the events of every
|
|
948
|
-
* project unless its project names one.
|
|
948
|
+
* project unless its project names one. A webhook of another workspace
|
|
949
949
|
* is NOT_FOUND.
|
|
950
950
|
*
|
|
951
951
|
* Every mutating call takes a request_key, with WorkloadService's rule: a
|
|
@@ -953,79 +953,79 @@ export declare const WebhookDeliveryStateSchema: GenEnum<WebhookDeliveryState, W
|
|
|
953
953
|
* call returned and changes nothing; the same key with a different payload
|
|
954
954
|
* fails with FAILED_PRECONDITION; an empty key means no retry protection.
|
|
955
955
|
*
|
|
956
|
-
*
|
|
957
|
-
*
|
|
956
|
+
* A webhook's signing secret is in the answer to the call that made it,
|
|
957
|
+
* CreateWebhook or RotateWebhookSecret, and in no other
|
|
958
958
|
* answer. A retry of that call returns the same secret while it is the
|
|
959
|
-
*
|
|
959
|
+
* webhook's newest; once the webhook is rotated again or deleted, the
|
|
960
960
|
* retry fails with FAILED_PRECONDITION and changes nothing.
|
|
961
961
|
*
|
|
962
962
|
* @generated from service toshi.workspace.v1.WebhookService
|
|
963
963
|
*/
|
|
964
964
|
export declare const WebhookService: GenService<{
|
|
965
965
|
/**
|
|
966
|
-
*
|
|
967
|
-
*
|
|
966
|
+
* CreateWebhook makes a webhook and its signing secret. The
|
|
967
|
+
* webhook is owed the events written after it, from its cursor on. The
|
|
968
968
|
* control plane must hold a keyring to seal the secret; without one the
|
|
969
969
|
* call fails with FAILED_PRECONDITION.
|
|
970
970
|
*
|
|
971
|
-
* @generated from rpc toshi.workspace.v1.WebhookService.
|
|
971
|
+
* @generated from rpc toshi.workspace.v1.WebhookService.CreateWebhook
|
|
972
972
|
*/
|
|
973
|
-
|
|
973
|
+
createWebhook: {
|
|
974
974
|
methodKind: "unary";
|
|
975
|
-
input: typeof
|
|
976
|
-
output: typeof
|
|
975
|
+
input: typeof CreateWebhookRequestSchema;
|
|
976
|
+
output: typeof CreateWebhookResponseSchema;
|
|
977
977
|
};
|
|
978
978
|
/**
|
|
979
|
-
*
|
|
979
|
+
* GetWebhook returns one webhook. An unknown ID fails with
|
|
980
980
|
* NOT_FOUND.
|
|
981
981
|
*
|
|
982
|
-
* @generated from rpc toshi.workspace.v1.WebhookService.
|
|
982
|
+
* @generated from rpc toshi.workspace.v1.WebhookService.GetWebhook
|
|
983
983
|
*/
|
|
984
|
-
|
|
984
|
+
getWebhook: {
|
|
985
985
|
methodKind: "unary";
|
|
986
|
-
input: typeof
|
|
987
|
-
output: typeof
|
|
986
|
+
input: typeof GetWebhookRequestSchema;
|
|
987
|
+
output: typeof GetWebhookResponseSchema;
|
|
988
988
|
};
|
|
989
989
|
/**
|
|
990
|
-
*
|
|
990
|
+
* ListWebhooks returns the workspace's webhooks in ID order.
|
|
991
991
|
*
|
|
992
|
-
* A page holds 100
|
|
992
|
+
* A page holds 100 webhooks when page_size is zero, and 1000 at most.
|
|
993
993
|
*
|
|
994
|
-
* @generated from rpc toshi.workspace.v1.WebhookService.
|
|
994
|
+
* @generated from rpc toshi.workspace.v1.WebhookService.ListWebhooks
|
|
995
995
|
*/
|
|
996
|
-
|
|
996
|
+
listWebhooks: {
|
|
997
997
|
methodKind: "unary";
|
|
998
|
-
input: typeof
|
|
999
|
-
output: typeof
|
|
998
|
+
input: typeof ListWebhooksRequestSchema;
|
|
999
|
+
output: typeof ListWebhooksResponseSchema;
|
|
1000
1000
|
};
|
|
1001
1001
|
/**
|
|
1002
|
-
*
|
|
1002
|
+
* UpdateWebhook sets the fields update_mask names: url, events,
|
|
1003
1003
|
* project, enabled, cursor. A cursor must be at or after the retention boundary's
|
|
1004
1004
|
* sequence and at or before the workspace's newest event sequence.
|
|
1005
|
-
* A disabled
|
|
1005
|
+
* A disabled webhook is owed no new event and no try starts;
|
|
1006
1006
|
* the events written before the disable stay owed, enabling it again
|
|
1007
1007
|
* owes none written while it was disabled, and a try already under way
|
|
1008
1008
|
* finishes within its claim, which holds a delivery for one minute.
|
|
1009
1009
|
*
|
|
1010
|
-
* @generated from rpc toshi.workspace.v1.WebhookService.
|
|
1010
|
+
* @generated from rpc toshi.workspace.v1.WebhookService.UpdateWebhook
|
|
1011
1011
|
*/
|
|
1012
|
-
|
|
1012
|
+
updateWebhook: {
|
|
1013
1013
|
methodKind: "unary";
|
|
1014
|
-
input: typeof
|
|
1015
|
-
output: typeof
|
|
1014
|
+
input: typeof UpdateWebhookRequestSchema;
|
|
1015
|
+
output: typeof UpdateWebhookResponseSchema;
|
|
1016
1016
|
};
|
|
1017
1017
|
/**
|
|
1018
|
-
*
|
|
1018
|
+
* DeleteWebhook deletes a webhook and its deliveries.
|
|
1019
1019
|
*
|
|
1020
|
-
* @generated from rpc toshi.workspace.v1.WebhookService.
|
|
1020
|
+
* @generated from rpc toshi.workspace.v1.WebhookService.DeleteWebhook
|
|
1021
1021
|
*/
|
|
1022
|
-
|
|
1022
|
+
deleteWebhook: {
|
|
1023
1023
|
methodKind: "unary";
|
|
1024
|
-
input: typeof
|
|
1025
|
-
output: typeof
|
|
1024
|
+
input: typeof DeleteWebhookRequestSchema;
|
|
1025
|
+
output: typeof DeleteWebhookResponseSchema;
|
|
1026
1026
|
};
|
|
1027
1027
|
/**
|
|
1028
|
-
*
|
|
1028
|
+
* RotateWebhookSecret makes the webhook a new signing secret and
|
|
1029
1029
|
* returns it. For the next 24 hours each try that starts after the
|
|
1030
1030
|
* rotation is signed with the new secret and the one it replaced, so a
|
|
1031
1031
|
* receiver can move to the new one in that window; after it, with the
|
|
@@ -1033,15 +1033,15 @@ export declare const WebhookService: GenService<{
|
|
|
1033
1033
|
* the replaced secret alone. A rotation while the
|
|
1034
1034
|
* previous secret's window is still open fails with FAILED_PRECONDITION.
|
|
1035
1035
|
*
|
|
1036
|
-
* @generated from rpc toshi.workspace.v1.WebhookService.
|
|
1036
|
+
* @generated from rpc toshi.workspace.v1.WebhookService.RotateWebhookSecret
|
|
1037
1037
|
*/
|
|
1038
|
-
|
|
1038
|
+
rotateWebhookSecret: {
|
|
1039
1039
|
methodKind: "unary";
|
|
1040
|
-
input: typeof
|
|
1041
|
-
output: typeof
|
|
1040
|
+
input: typeof RotateWebhookSecretRequestSchema;
|
|
1041
|
+
output: typeof RotateWebhookSecretResponseSchema;
|
|
1042
1042
|
};
|
|
1043
1043
|
/**
|
|
1044
|
-
* ListWebhookDeliveries returns
|
|
1044
|
+
* ListWebhookDeliveries returns a webhook's deliveries in event order,
|
|
1045
1045
|
* a page at a time.
|
|
1046
1046
|
*
|
|
1047
1047
|
* A page holds 50 deliveries when page_size is zero, and 500 at most.
|
|
@@ -1054,17 +1054,17 @@ export declare const WebhookService: GenService<{
|
|
|
1054
1054
|
output: typeof ListWebhookDeliveriesResponseSchema;
|
|
1055
1055
|
};
|
|
1056
1056
|
/**
|
|
1057
|
-
* ReplayWebhookEvents makes the
|
|
1057
|
+
* ReplayWebhookEvents makes the webhook owed again the events after
|
|
1058
1058
|
* cursor that its filter keeps now, up to its own cursor, at most 500 per
|
|
1059
1059
|
* call. That includes events delivered or given up before, events written
|
|
1060
1060
|
* while it was disabled and events written before it was made. Each is
|
|
1061
1061
|
* due now and tried on the retry schedule from its first try; an event
|
|
1062
|
-
* still pending at the
|
|
1063
|
-
* one at a time at the
|
|
1062
|
+
* still pending at the webhook is left as it is. A workload's events stay
|
|
1063
|
+
* one at a time at the webhook: an older event sent again is not due
|
|
1064
1064
|
* before the latest next try among the newer ones that have been tried
|
|
1065
1065
|
* and are still pending, the end of that try under way or backoff, and
|
|
1066
1066
|
* then goes before it; it does not wait for the newer ones to be
|
|
1067
|
-
* delivered. A disabled
|
|
1067
|
+
* delivered. A disabled webhook fails with FAILED_PRECONDITION.
|
|
1068
1068
|
*
|
|
1069
1069
|
* @generated from rpc toshi.workspace.v1.WebhookService.ReplayWebhookEvents
|
|
1070
1070
|
*/
|