@toshicloud/sdk 0.6.0 → 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.
Files changed (44) hide show
  1. package/README.md +39 -510
  2. package/dist/client.d.ts +6 -4
  3. package/dist/client.js +4 -2
  4. package/dist/gen/toshi/permission_pb.d.ts +12 -0
  5. package/dist/gen/toshi/permission_pb.js +14 -2
  6. package/dist/gen/toshi/workspace/v1/connections_pb.d.ts +213 -19
  7. package/dist/gen/toshi/workspace/v1/connections_pb.js +97 -25
  8. package/dist/gen/toshi/workspace/v1/domains_pb.d.ts +26 -26
  9. package/dist/gen/toshi/workspace/v1/domains_pb.js +4 -4
  10. package/dist/gen/toshi/workspace/v1/{channels_pb.d.ts → endpoints_pb.d.ts} +945 -822
  11. package/dist/gen/toshi/workspace/v1/endpoints_pb.js +488 -0
  12. package/dist/gen/toshi/workspace/v1/grants_pb.d.ts +10 -10
  13. package/dist/gen/toshi/workspace/v1/grants_pb.js +3 -3
  14. package/dist/gen/toshi/workspace/v1/hostjobs_pb.d.ts +46 -22
  15. package/dist/gen/toshi/workspace/v1/hostjobs_pb.js +1 -1
  16. package/dist/gen/toshi/workspace/v1/hosts_pb.d.ts +110 -36
  17. package/dist/gen/toshi/workspace/v1/hosts_pb.js +1 -1
  18. package/dist/gen/toshi/workspace/v1/model_credentials_pb.d.ts +654 -0
  19. package/dist/gen/toshi/workspace/v1/model_credentials_pb.js +110 -0
  20. package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +21 -2
  21. package/dist/gen/toshi/workspace/v1/recordings_pb.js +1 -1
  22. package/dist/gen/toshi/workspace/v1/roles_pb.d.ts +1 -1
  23. package/dist/gen/toshi/workspace/v1/roles_pb.js +1 -1
  24. package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +19 -2
  25. package/dist/gen/toshi/workspace/v1/secrets_pb.js +1 -1
  26. package/dist/gen/toshi/workspace/v1/triggers_pb.d.ts +28 -28
  27. package/dist/gen/toshi/workspace/v1/triggers_pb.js +6 -6
  28. package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +202 -202
  29. package/dist/gen/toshi/workspace/v1/webhook_pb.js +46 -46
  30. package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +552 -29
  31. package/dist/gen/toshi/workspace/v1/workloads_pb.js +85 -55
  32. package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +639 -119
  33. package/dist/gen/toshi/workspace/v1/workspace_pb.js +174 -88
  34. package/dist/gen/toshi/workspace/v1/workspace_service_pb.d.ts +101 -4
  35. package/dist/gen/toshi/workspace/v1/workspace_service_pb.js +20 -15
  36. package/dist/index.d.ts +2 -1
  37. package/dist/index.js +2 -1
  38. package/dist/retry.js +33 -22
  39. package/dist/test/alarms.js +1 -1
  40. package/dist/test/procedures.js +35 -25
  41. package/dist/version.d.ts +1 -1
  42. package/dist/version.js +1 -1
  43. package/package.json +1 -1
  44. 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.WebhookEndpoint
9
+ * @generated from message toshi.workspace.v1.Webhook
10
10
  */
11
- export type WebhookEndpoint = Message<"toshi.workspace.v1.WebhookEndpoint"> & {
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 endpoint is owed, each a name (job.state_changed)
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 endpoint has read up to,
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 endpoint's cursor were removed by retention.
61
- * The endpoint is owed nothing until its cursor is moved.
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 endpoint is owed only that
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.WebhookEndpoint
82
+ * @generated from message toshi.workspace.v1.Webhook
83
83
  */
84
- export type WebhookEndpointJson = {
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 endpoint is owed, each a name (job.state_changed)
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 endpoint has read up to,
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 endpoint's cursor were removed by retention.
134
- * The endpoint is owed nothing until its cursor is moved.
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 endpoint is owed only that
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.WebhookEndpoint.
156
- * Use `create(WebhookEndpointSchema)` to create a new message.
155
+ * Describes the message toshi.workspace.v1.Webhook.
156
+ * Use `create(WebhookSchema)` to create a new message.
157
157
  */
158
- export declare const WebhookEndpointSchema: GenMessage<WebhookEndpoint, {
159
- jsonType: WebhookEndpointJson;
158
+ export declare const WebhookSchema: GenMessage<Webhook, {
159
+ jsonType: WebhookJson;
160
160
  }>;
161
161
  /**
162
- * WebhookDelivery is one event owed to one endpoint.
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 endpoint.
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.CreateWebhookEndpointRequest
287
+ * @generated from message toshi.workspace.v1.CreateWebhookRequest
288
288
  */
289
- export type CreateWebhookEndpointRequest = Message<"toshi.workspace.v1.CreateWebhookEndpointRequest"> & {
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 endpoint disabled.
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 WebhookEndpoint.project.
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.CreateWebhookEndpointRequest
316
+ * @generated from message toshi.workspace.v1.CreateWebhookRequest
317
317
  */
318
- export type CreateWebhookEndpointRequestJson = {
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 endpoint disabled.
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 WebhookEndpoint.project.
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.CreateWebhookEndpointRequest.
346
- * Use `create(CreateWebhookEndpointRequestSchema)` to create a new message.
345
+ * Describes the message toshi.workspace.v1.CreateWebhookRequest.
346
+ * Use `create(CreateWebhookRequestSchema)` to create a new message.
347
347
  */
348
- export declare const CreateWebhookEndpointRequestSchema: GenMessage<CreateWebhookEndpointRequest, {
349
- jsonType: CreateWebhookEndpointRequestJson;
348
+ export declare const CreateWebhookRequestSchema: GenMessage<CreateWebhookRequest, {
349
+ jsonType: CreateWebhookRequestJson;
350
350
  }>;
351
351
  /**
352
- * @generated from message toshi.workspace.v1.CreateWebhookEndpointResponse
352
+ * @generated from message toshi.workspace.v1.CreateWebhookResponse
353
353
  */
354
- export type CreateWebhookEndpointResponse = Message<"toshi.workspace.v1.CreateWebhookEndpointResponse"> & {
354
+ export type CreateWebhookResponse = Message<"toshi.workspace.v1.CreateWebhookResponse"> & {
355
355
  /**
356
- * @generated from field: toshi.workspace.v1.WebhookEndpoint endpoint = 1;
356
+ * @generated from field: toshi.workspace.v1.Webhook webhook = 1;
357
357
  */
358
- endpoint?: WebhookEndpoint | undefined;
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.CreateWebhookEndpointResponse
367
+ * @generated from message toshi.workspace.v1.CreateWebhookResponse
368
368
  */
369
- export type CreateWebhookEndpointResponseJson = {
369
+ export type CreateWebhookResponseJson = {
370
370
  /**
371
- * @generated from field: toshi.workspace.v1.WebhookEndpoint endpoint = 1;
371
+ * @generated from field: toshi.workspace.v1.Webhook webhook = 1;
372
372
  */
373
- endpoint?: WebhookEndpointJson;
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.CreateWebhookEndpointResponse.
383
- * Use `create(CreateWebhookEndpointResponseSchema)` to create a new message.
382
+ * Describes the message toshi.workspace.v1.CreateWebhookResponse.
383
+ * Use `create(CreateWebhookResponseSchema)` to create a new message.
384
384
  */
385
- export declare const CreateWebhookEndpointResponseSchema: GenMessage<CreateWebhookEndpointResponse, {
386
- jsonType: CreateWebhookEndpointResponseJson;
385
+ export declare const CreateWebhookResponseSchema: GenMessage<CreateWebhookResponse, {
386
+ jsonType: CreateWebhookResponseJson;
387
387
  }>;
388
388
  /**
389
- * @generated from message toshi.workspace.v1.GetWebhookEndpointRequest
389
+ * @generated from message toshi.workspace.v1.GetWebhookRequest
390
390
  */
391
- export type GetWebhookEndpointRequest = Message<"toshi.workspace.v1.GetWebhookEndpointRequest"> & {
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.GetWebhookEndpointRequest
398
+ * @generated from message toshi.workspace.v1.GetWebhookRequest
399
399
  */
400
- export type GetWebhookEndpointRequestJson = {
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.GetWebhookEndpointRequest.
408
- * Use `create(GetWebhookEndpointRequestSchema)` to create a new message.
407
+ * Describes the message toshi.workspace.v1.GetWebhookRequest.
408
+ * Use `create(GetWebhookRequestSchema)` to create a new message.
409
409
  */
410
- export declare const GetWebhookEndpointRequestSchema: GenMessage<GetWebhookEndpointRequest, {
411
- jsonType: GetWebhookEndpointRequestJson;
410
+ export declare const GetWebhookRequestSchema: GenMessage<GetWebhookRequest, {
411
+ jsonType: GetWebhookRequestJson;
412
412
  }>;
413
413
  /**
414
- * @generated from message toshi.workspace.v1.GetWebhookEndpointResponse
414
+ * @generated from message toshi.workspace.v1.GetWebhookResponse
415
415
  */
416
- export type GetWebhookEndpointResponse = Message<"toshi.workspace.v1.GetWebhookEndpointResponse"> & {
416
+ export type GetWebhookResponse = Message<"toshi.workspace.v1.GetWebhookResponse"> & {
417
417
  /**
418
- * @generated from field: toshi.workspace.v1.WebhookEndpoint endpoint = 1;
418
+ * @generated from field: toshi.workspace.v1.Webhook webhook = 1;
419
419
  */
420
- endpoint?: WebhookEndpoint | undefined;
420
+ webhook?: Webhook | undefined;
421
421
  };
422
422
  /**
423
- * @generated from message toshi.workspace.v1.GetWebhookEndpointResponse
423
+ * @generated from message toshi.workspace.v1.GetWebhookResponse
424
424
  */
425
- export type GetWebhookEndpointResponseJson = {
425
+ export type GetWebhookResponseJson = {
426
426
  /**
427
- * @generated from field: toshi.workspace.v1.WebhookEndpoint endpoint = 1;
427
+ * @generated from field: toshi.workspace.v1.Webhook webhook = 1;
428
428
  */
429
- endpoint?: WebhookEndpointJson;
429
+ webhook?: WebhookJson;
430
430
  };
431
431
  /**
432
- * Describes the message toshi.workspace.v1.GetWebhookEndpointResponse.
433
- * Use `create(GetWebhookEndpointResponseSchema)` to create a new message.
432
+ * Describes the message toshi.workspace.v1.GetWebhookResponse.
433
+ * Use `create(GetWebhookResponseSchema)` to create a new message.
434
434
  */
435
- export declare const GetWebhookEndpointResponseSchema: GenMessage<GetWebhookEndpointResponse, {
436
- jsonType: GetWebhookEndpointResponseJson;
435
+ export declare const GetWebhookResponseSchema: GenMessage<GetWebhookResponse, {
436
+ jsonType: GetWebhookResponseJson;
437
437
  }>;
438
438
  /**
439
- * @generated from message toshi.workspace.v1.ListWebhookEndpointsRequest
439
+ * @generated from message toshi.workspace.v1.ListWebhooksRequest
440
440
  */
441
- export type ListWebhookEndpointsRequest = Message<"toshi.workspace.v1.ListWebhookEndpointsRequest"> & {
441
+ export type ListWebhooksRequest = Message<"toshi.workspace.v1.ListWebhooksRequest"> & {
442
442
  /**
443
- * The most endpoints in one page; zero lets the server choose.
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.ListWebhookEndpointsRequest
456
+ * @generated from message toshi.workspace.v1.ListWebhooksRequest
457
457
  */
458
- export type ListWebhookEndpointsRequestJson = {
458
+ export type ListWebhooksRequestJson = {
459
459
  /**
460
- * The most endpoints in one page; zero lets the server choose.
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.ListWebhookEndpointsRequest.
474
- * Use `create(ListWebhookEndpointsRequestSchema)` to create a new message.
473
+ * Describes the message toshi.workspace.v1.ListWebhooksRequest.
474
+ * Use `create(ListWebhooksRequestSchema)` to create a new message.
475
475
  */
476
- export declare const ListWebhookEndpointsRequestSchema: GenMessage<ListWebhookEndpointsRequest, {
477
- jsonType: ListWebhookEndpointsRequestJson;
476
+ export declare const ListWebhooksRequestSchema: GenMessage<ListWebhooksRequest, {
477
+ jsonType: ListWebhooksRequestJson;
478
478
  }>;
479
479
  /**
480
- * @generated from message toshi.workspace.v1.ListWebhookEndpointsResponse
480
+ * @generated from message toshi.workspace.v1.ListWebhooksResponse
481
481
  */
482
- export type ListWebhookEndpointsResponse = Message<"toshi.workspace.v1.ListWebhookEndpointsResponse"> & {
482
+ export type ListWebhooksResponse = Message<"toshi.workspace.v1.ListWebhooksResponse"> & {
483
483
  /**
484
- * @generated from field: repeated toshi.workspace.v1.WebhookEndpoint endpoints = 1;
484
+ * @generated from field: repeated toshi.workspace.v1.Webhook webhooks = 1;
485
485
  */
486
- endpoints: WebhookEndpoint[];
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.ListWebhookEndpointsResponse
495
+ * @generated from message toshi.workspace.v1.ListWebhooksResponse
496
496
  */
497
- export type ListWebhookEndpointsResponseJson = {
497
+ export type ListWebhooksResponseJson = {
498
498
  /**
499
- * @generated from field: repeated toshi.workspace.v1.WebhookEndpoint endpoints = 1;
499
+ * @generated from field: repeated toshi.workspace.v1.Webhook webhooks = 1;
500
500
  */
501
- endpoints?: WebhookEndpointJson[];
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.ListWebhookEndpointsResponse.
511
- * Use `create(ListWebhookEndpointsResponseSchema)` to create a new message.
510
+ * Describes the message toshi.workspace.v1.ListWebhooksResponse.
511
+ * Use `create(ListWebhooksResponseSchema)` to create a new message.
512
512
  */
513
- export declare const ListWebhookEndpointsResponseSchema: GenMessage<ListWebhookEndpointsResponse, {
514
- jsonType: ListWebhookEndpointsResponseJson;
513
+ export declare const ListWebhooksResponseSchema: GenMessage<ListWebhooksResponse, {
514
+ jsonType: ListWebhooksResponseJson;
515
515
  }>;
516
516
  /**
517
- * @generated from message toshi.workspace.v1.UpdateWebhookEndpointRequest
517
+ * @generated from message toshi.workspace.v1.UpdateWebhookRequest
518
518
  */
519
- export type UpdateWebhookEndpointRequest = Message<"toshi.workspace.v1.UpdateWebhookEndpointRequest"> & {
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.WebhookEndpoint endpoint = 2;
527
+ * @generated from field: toshi.workspace.v1.Webhook webhook = 2;
528
528
  */
529
- endpoint?: WebhookEndpoint | undefined;
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.UpdateWebhookEndpointRequest
542
+ * @generated from message toshi.workspace.v1.UpdateWebhookRequest
543
543
  */
544
- export type UpdateWebhookEndpointRequestJson = {
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.WebhookEndpoint endpoint = 2;
552
+ * @generated from field: toshi.workspace.v1.Webhook webhook = 2;
553
553
  */
554
- endpoint?: WebhookEndpointJson;
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.UpdateWebhookEndpointRequest.
568
- * Use `create(UpdateWebhookEndpointRequestSchema)` to create a new message.
567
+ * Describes the message toshi.workspace.v1.UpdateWebhookRequest.
568
+ * Use `create(UpdateWebhookRequestSchema)` to create a new message.
569
569
  */
570
- export declare const UpdateWebhookEndpointRequestSchema: GenMessage<UpdateWebhookEndpointRequest, {
571
- jsonType: UpdateWebhookEndpointRequestJson;
570
+ export declare const UpdateWebhookRequestSchema: GenMessage<UpdateWebhookRequest, {
571
+ jsonType: UpdateWebhookRequestJson;
572
572
  }>;
573
573
  /**
574
- * @generated from message toshi.workspace.v1.UpdateWebhookEndpointResponse
574
+ * @generated from message toshi.workspace.v1.UpdateWebhookResponse
575
575
  */
576
- export type UpdateWebhookEndpointResponse = Message<"toshi.workspace.v1.UpdateWebhookEndpointResponse"> & {
576
+ export type UpdateWebhookResponse = Message<"toshi.workspace.v1.UpdateWebhookResponse"> & {
577
577
  /**
578
- * @generated from field: toshi.workspace.v1.WebhookEndpoint endpoint = 1;
578
+ * @generated from field: toshi.workspace.v1.Webhook webhook = 1;
579
579
  */
580
- endpoint?: WebhookEndpoint | undefined;
580
+ webhook?: Webhook | undefined;
581
581
  };
582
582
  /**
583
- * @generated from message toshi.workspace.v1.UpdateWebhookEndpointResponse
583
+ * @generated from message toshi.workspace.v1.UpdateWebhookResponse
584
584
  */
585
- export type UpdateWebhookEndpointResponseJson = {
585
+ export type UpdateWebhookResponseJson = {
586
586
  /**
587
- * @generated from field: toshi.workspace.v1.WebhookEndpoint endpoint = 1;
587
+ * @generated from field: toshi.workspace.v1.Webhook webhook = 1;
588
588
  */
589
- endpoint?: WebhookEndpointJson;
589
+ webhook?: WebhookJson;
590
590
  };
591
591
  /**
592
- * Describes the message toshi.workspace.v1.UpdateWebhookEndpointResponse.
593
- * Use `create(UpdateWebhookEndpointResponseSchema)` to create a new message.
592
+ * Describes the message toshi.workspace.v1.UpdateWebhookResponse.
593
+ * Use `create(UpdateWebhookResponseSchema)` to create a new message.
594
594
  */
595
- export declare const UpdateWebhookEndpointResponseSchema: GenMessage<UpdateWebhookEndpointResponse, {
596
- jsonType: UpdateWebhookEndpointResponseJson;
595
+ export declare const UpdateWebhookResponseSchema: GenMessage<UpdateWebhookResponse, {
596
+ jsonType: UpdateWebhookResponseJson;
597
597
  }>;
598
598
  /**
599
- * @generated from message toshi.workspace.v1.DeleteWebhookEndpointRequest
599
+ * @generated from message toshi.workspace.v1.DeleteWebhookRequest
600
600
  */
601
- export type DeleteWebhookEndpointRequest = Message<"toshi.workspace.v1.DeleteWebhookEndpointRequest"> & {
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.DeleteWebhookEndpointRequest
612
+ * @generated from message toshi.workspace.v1.DeleteWebhookRequest
613
613
  */
614
- export type DeleteWebhookEndpointRequestJson = {
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.DeleteWebhookEndpointRequest.
626
- * Use `create(DeleteWebhookEndpointRequestSchema)` to create a new message.
625
+ * Describes the message toshi.workspace.v1.DeleteWebhookRequest.
626
+ * Use `create(DeleteWebhookRequestSchema)` to create a new message.
627
627
  */
628
- export declare const DeleteWebhookEndpointRequestSchema: GenMessage<DeleteWebhookEndpointRequest, {
629
- jsonType: DeleteWebhookEndpointRequestJson;
628
+ export declare const DeleteWebhookRequestSchema: GenMessage<DeleteWebhookRequest, {
629
+ jsonType: DeleteWebhookRequestJson;
630
630
  }>;
631
631
  /**
632
- * @generated from message toshi.workspace.v1.DeleteWebhookEndpointResponse
632
+ * @generated from message toshi.workspace.v1.DeleteWebhookResponse
633
633
  */
634
- export type DeleteWebhookEndpointResponse = Message<"toshi.workspace.v1.DeleteWebhookEndpointResponse"> & {};
634
+ export type DeleteWebhookResponse = Message<"toshi.workspace.v1.DeleteWebhookResponse"> & {};
635
635
  /**
636
- * @generated from message toshi.workspace.v1.DeleteWebhookEndpointResponse
636
+ * @generated from message toshi.workspace.v1.DeleteWebhookResponse
637
637
  */
638
- export type DeleteWebhookEndpointResponseJson = {};
638
+ export type DeleteWebhookResponseJson = {};
639
639
  /**
640
- * Describes the message toshi.workspace.v1.DeleteWebhookEndpointResponse.
641
- * Use `create(DeleteWebhookEndpointResponseSchema)` to create a new message.
640
+ * Describes the message toshi.workspace.v1.DeleteWebhookResponse.
641
+ * Use `create(DeleteWebhookResponseSchema)` to create a new message.
642
642
  */
643
- export declare const DeleteWebhookEndpointResponseSchema: GenMessage<DeleteWebhookEndpointResponse, {
644
- jsonType: DeleteWebhookEndpointResponseJson;
643
+ export declare const DeleteWebhookResponseSchema: GenMessage<DeleteWebhookResponse, {
644
+ jsonType: DeleteWebhookResponseJson;
645
645
  }>;
646
646
  /**
647
- * @generated from message toshi.workspace.v1.RotateWebhookEndpointSecretRequest
647
+ * @generated from message toshi.workspace.v1.RotateWebhookSecretRequest
648
648
  */
649
- export type RotateWebhookEndpointSecretRequest = Message<"toshi.workspace.v1.RotateWebhookEndpointSecretRequest"> & {
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.RotateWebhookEndpointSecretRequest
660
+ * @generated from message toshi.workspace.v1.RotateWebhookSecretRequest
661
661
  */
662
- export type RotateWebhookEndpointSecretRequestJson = {
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.RotateWebhookEndpointSecretRequest.
674
- * Use `create(RotateWebhookEndpointSecretRequestSchema)` to create a new message.
673
+ * Describes the message toshi.workspace.v1.RotateWebhookSecretRequest.
674
+ * Use `create(RotateWebhookSecretRequestSchema)` to create a new message.
675
675
  */
676
- export declare const RotateWebhookEndpointSecretRequestSchema: GenMessage<RotateWebhookEndpointSecretRequest, {
677
- jsonType: RotateWebhookEndpointSecretRequestJson;
676
+ export declare const RotateWebhookSecretRequestSchema: GenMessage<RotateWebhookSecretRequest, {
677
+ jsonType: RotateWebhookSecretRequestJson;
678
678
  }>;
679
679
  /**
680
- * @generated from message toshi.workspace.v1.RotateWebhookEndpointSecretResponse
680
+ * @generated from message toshi.workspace.v1.RotateWebhookSecretResponse
681
681
  */
682
- export type RotateWebhookEndpointSecretResponse = Message<"toshi.workspace.v1.RotateWebhookEndpointSecretResponse"> & {
682
+ export type RotateWebhookSecretResponse = Message<"toshi.workspace.v1.RotateWebhookSecretResponse"> & {
683
683
  /**
684
- * @generated from field: toshi.workspace.v1.WebhookEndpoint endpoint = 1;
684
+ * @generated from field: toshi.workspace.v1.Webhook webhook = 1;
685
685
  */
686
- endpoint?: WebhookEndpoint | undefined;
686
+ webhook?: Webhook | undefined;
687
687
  /**
688
- * The new secret, as CreateWebhookEndpointResponse's.
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.RotateWebhookEndpointSecretResponse
695
+ * @generated from message toshi.workspace.v1.RotateWebhookSecretResponse
696
696
  */
697
- export type RotateWebhookEndpointSecretResponseJson = {
697
+ export type RotateWebhookSecretResponseJson = {
698
698
  /**
699
- * @generated from field: toshi.workspace.v1.WebhookEndpoint endpoint = 1;
699
+ * @generated from field: toshi.workspace.v1.Webhook webhook = 1;
700
700
  */
701
- endpoint?: WebhookEndpointJson;
701
+ webhook?: WebhookJson;
702
702
  /**
703
- * The new secret, as CreateWebhookEndpointResponse's.
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.RotateWebhookEndpointSecretResponse.
711
- * Use `create(RotateWebhookEndpointSecretResponseSchema)` to create a new message.
710
+ * Describes the message toshi.workspace.v1.RotateWebhookSecretResponse.
711
+ * Use `create(RotateWebhookSecretResponseSchema)` to create a new message.
712
712
  */
713
- export declare const RotateWebhookEndpointSecretResponseSchema: GenMessage<RotateWebhookEndpointSecretResponse, {
714
- jsonType: RotateWebhookEndpointSecretResponseJson;
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 endpoint_id = 1;
721
+ * @generated from field: string webhook_id = 1;
722
722
  */
723
- endpointId: string;
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 endpoint_id = 1;
744
+ * @generated from field: string webhook_id = 1;
745
745
  */
746
- endpointId?: string;
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 endpoint_id = 1;
811
+ * @generated from field: string webhook_id = 1;
812
812
  */
813
- endpointId: string;
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 endpoint_id = 1;
831
+ * @generated from field: string webhook_id = 1;
832
832
  */
833
- endpointId?: string;
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 endpoint's own cursor remain after cursor.
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 endpoint's own cursor remain after cursor.
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 webhook endpoints: the URLs its
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. An endpoint belongs to the
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. An endpoint of another workspace
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
- * An endpoint's signing secret is in the answer to the call that made it,
957
- * CreateWebhookEndpoint or RotateWebhookEndpointSecret, and in no other
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
- * endpoint's newest; once the endpoint is rotated again or deleted, the
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
- * CreateWebhookEndpoint makes an endpoint and its signing secret. The
967
- * endpoint is owed the events written after it, from its cursor on. The
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.CreateWebhookEndpoint
971
+ * @generated from rpc toshi.workspace.v1.WebhookService.CreateWebhook
972
972
  */
973
- createWebhookEndpoint: {
973
+ createWebhook: {
974
974
  methodKind: "unary";
975
- input: typeof CreateWebhookEndpointRequestSchema;
976
- output: typeof CreateWebhookEndpointResponseSchema;
975
+ input: typeof CreateWebhookRequestSchema;
976
+ output: typeof CreateWebhookResponseSchema;
977
977
  };
978
978
  /**
979
- * GetWebhookEndpoint returns one endpoint. An unknown ID fails with
979
+ * GetWebhook returns one webhook. An unknown ID fails with
980
980
  * NOT_FOUND.
981
981
  *
982
- * @generated from rpc toshi.workspace.v1.WebhookService.GetWebhookEndpoint
982
+ * @generated from rpc toshi.workspace.v1.WebhookService.GetWebhook
983
983
  */
984
- getWebhookEndpoint: {
984
+ getWebhook: {
985
985
  methodKind: "unary";
986
- input: typeof GetWebhookEndpointRequestSchema;
987
- output: typeof GetWebhookEndpointResponseSchema;
986
+ input: typeof GetWebhookRequestSchema;
987
+ output: typeof GetWebhookResponseSchema;
988
988
  };
989
989
  /**
990
- * ListWebhookEndpoints returns the workspace's endpoints in ID order.
990
+ * ListWebhooks returns the workspace's webhooks in ID order.
991
991
  *
992
- * A page holds 100 endpoints when page_size is zero, and 1000 at most.
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.ListWebhookEndpoints
994
+ * @generated from rpc toshi.workspace.v1.WebhookService.ListWebhooks
995
995
  */
996
- listWebhookEndpoints: {
996
+ listWebhooks: {
997
997
  methodKind: "unary";
998
- input: typeof ListWebhookEndpointsRequestSchema;
999
- output: typeof ListWebhookEndpointsResponseSchema;
998
+ input: typeof ListWebhooksRequestSchema;
999
+ output: typeof ListWebhooksResponseSchema;
1000
1000
  };
1001
1001
  /**
1002
- * UpdateWebhookEndpoint sets the fields update_mask names: url, events,
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 endpoint is owed no new event and no try starts;
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.UpdateWebhookEndpoint
1010
+ * @generated from rpc toshi.workspace.v1.WebhookService.UpdateWebhook
1011
1011
  */
1012
- updateWebhookEndpoint: {
1012
+ updateWebhook: {
1013
1013
  methodKind: "unary";
1014
- input: typeof UpdateWebhookEndpointRequestSchema;
1015
- output: typeof UpdateWebhookEndpointResponseSchema;
1014
+ input: typeof UpdateWebhookRequestSchema;
1015
+ output: typeof UpdateWebhookResponseSchema;
1016
1016
  };
1017
1017
  /**
1018
- * DeleteWebhookEndpoint deletes an endpoint and its deliveries.
1018
+ * DeleteWebhook deletes a webhook and its deliveries.
1019
1019
  *
1020
- * @generated from rpc toshi.workspace.v1.WebhookService.DeleteWebhookEndpoint
1020
+ * @generated from rpc toshi.workspace.v1.WebhookService.DeleteWebhook
1021
1021
  */
1022
- deleteWebhookEndpoint: {
1022
+ deleteWebhook: {
1023
1023
  methodKind: "unary";
1024
- input: typeof DeleteWebhookEndpointRequestSchema;
1025
- output: typeof DeleteWebhookEndpointResponseSchema;
1024
+ input: typeof DeleteWebhookRequestSchema;
1025
+ output: typeof DeleteWebhookResponseSchema;
1026
1026
  };
1027
1027
  /**
1028
- * RotateWebhookEndpointSecret makes the endpoint a new signing secret and
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.RotateWebhookEndpointSecret
1036
+ * @generated from rpc toshi.workspace.v1.WebhookService.RotateWebhookSecret
1037
1037
  */
1038
- rotateWebhookEndpointSecret: {
1038
+ rotateWebhookSecret: {
1039
1039
  methodKind: "unary";
1040
- input: typeof RotateWebhookEndpointSecretRequestSchema;
1041
- output: typeof RotateWebhookEndpointSecretResponseSchema;
1040
+ input: typeof RotateWebhookSecretRequestSchema;
1041
+ output: typeof RotateWebhookSecretResponseSchema;
1042
1042
  };
1043
1043
  /**
1044
- * ListWebhookDeliveries returns an endpoint's deliveries in event order,
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 endpoint owed again the events after
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 endpoint is left as it is. A workload's events stay
1063
- * one at a time at the endpoint: an older event sent again is not due
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 endpoint fails with FAILED_PRECONDITION.
1067
+ * delivered. A disabled webhook fails with FAILED_PRECONDITION.
1068
1068
  *
1069
1069
  * @generated from rpc toshi.workspace.v1.WebhookService.ReplayWebhookEvents
1070
1070
  */