Repository navigation
Expand file tree
/
Copy pathwebhooks.ts
More file actions
54 lines (48 loc) · 1.57 KB
/
Copy pathwebhooks.ts
File metadata and controls
54 lines (48 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../core/resource';
import * as DeliveriesAPI from './deliveries';
import {
Attempt,
Deliveries,
Delivery,
DeliveryListAttemptsParams,
DeliveryListAttemptsResponse,
DeliveryListParams,
DeliveryListResponse,
DeliveryRetrieveParams,
DeliveryRetrieveResponse,
DeliveryRetryParams,
DeliveryRetryResponse,
DeliverySummary,
} from './deliveries';
export class Webhooks extends APIResource {
deliveries: DeliveriesAPI.Deliveries = new DeliveriesAPI.Deliveries(this._client);
}
/**
* Webhook retry settings. Use {} for the default schedule.
*/
export interface RetryConfig {
/**
* Retry delays in seconds, totaling at most 72 hours. Use [] to disable automatic
* retries.
*/
delays_seconds?: Array<number>;
}
Webhooks.Deliveries = Deliveries;
export declare namespace Webhooks {
export { type RetryConfig as RetryConfig };
export {
Deliveries as Deliveries,
type Attempt as Attempt,
type Delivery as Delivery,
type DeliverySummary as DeliverySummary,
type DeliveryRetrieveResponse as DeliveryRetrieveResponse,
type DeliveryListResponse as DeliveryListResponse,
type DeliveryListAttemptsResponse as DeliveryListAttemptsResponse,
type DeliveryRetryResponse as DeliveryRetryResponse,
type DeliveryRetrieveParams as DeliveryRetrieveParams,
type DeliveryListParams as DeliveryListParams,
type DeliveryListAttemptsParams as DeliveryListAttemptsParams,
type DeliveryRetryParams as DeliveryRetryParams,
};
}