casedev 0.54.0 → 0.55.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/CHANGELOG.md +8 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +3 -0
- package/resources/webhooks/index.d.mts.map +1 -0
- package/resources/webhooks/index.d.ts +3 -0
- package/resources/webhooks/index.d.ts.map +1 -0
- package/resources/webhooks/index.js +9 -0
- package/resources/webhooks/index.js.map +1 -0
- package/resources/webhooks/index.mjs +4 -0
- package/resources/webhooks/index.mjs.map +1 -0
- package/resources/webhooks/v1/deliveries.d.mts +42 -0
- package/resources/webhooks/v1/deliveries.d.mts.map +1 -0
- package/resources/webhooks/v1/deliveries.d.ts +42 -0
- package/resources/webhooks/v1/deliveries.d.ts.map +1 -0
- package/resources/webhooks/v1/deliveries.js +48 -0
- package/resources/webhooks/v1/deliveries.js.map +1 -0
- package/resources/webhooks/v1/deliveries.mjs +44 -0
- package/resources/webhooks/v1/deliveries.mjs.map +1 -0
- package/resources/webhooks/v1/endpoints.d.mts +121 -0
- package/resources/webhooks/v1/endpoints.d.mts.map +1 -0
- package/resources/webhooks/v1/endpoints.d.ts +121 -0
- package/resources/webhooks/v1/endpoints.d.ts.map +1 -0
- package/resources/webhooks/v1/endpoints.js +96 -0
- package/resources/webhooks/v1/endpoints.js.map +1 -0
- package/resources/webhooks/v1/endpoints.mjs +92 -0
- package/resources/webhooks/v1/endpoints.mjs.map +1 -0
- package/resources/webhooks/v1/event-types.d.mts +15 -0
- package/resources/webhooks/v1/event-types.d.mts.map +1 -0
- package/resources/webhooks/v1/event-types.d.ts +15 -0
- package/resources/webhooks/v1/event-types.d.ts.map +1 -0
- package/resources/webhooks/v1/event-types.js +24 -0
- package/resources/webhooks/v1/event-types.js.map +1 -0
- package/resources/webhooks/v1/event-types.mjs +20 -0
- package/resources/webhooks/v1/event-types.mjs.map +1 -0
- package/resources/webhooks/v1/index.d.mts +5 -0
- package/resources/webhooks/v1/index.d.mts.map +1 -0
- package/resources/webhooks/v1/index.d.ts +5 -0
- package/resources/webhooks/v1/index.d.ts.map +1 -0
- package/resources/webhooks/v1/index.js +13 -0
- package/resources/webhooks/v1/index.js.map +1 -0
- package/resources/webhooks/v1/index.mjs +6 -0
- package/resources/webhooks/v1/index.mjs.map +1 -0
- package/resources/webhooks/v1/v1.d.mts +18 -0
- package/resources/webhooks/v1/v1.d.mts.map +1 -0
- package/resources/webhooks/v1/v1.d.ts +18 -0
- package/resources/webhooks/v1/v1.d.ts.map +1 -0
- package/resources/webhooks/v1/v1.js +25 -0
- package/resources/webhooks/v1/v1.js.map +1 -0
- package/resources/webhooks/v1/v1.mjs +20 -0
- package/resources/webhooks/v1/v1.mjs.map +1 -0
- package/resources/webhooks/v1.d.mts +2 -0
- package/resources/webhooks/v1.d.mts.map +1 -0
- package/resources/webhooks/v1.d.ts +2 -0
- package/resources/webhooks/v1.d.ts.map +1 -0
- package/resources/webhooks/v1.js +6 -0
- package/resources/webhooks/v1.js.map +1 -0
- package/resources/webhooks/v1.mjs +3 -0
- package/resources/webhooks/v1.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +10 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -0
- package/resources/webhooks/webhooks.d.ts +10 -0
- package/resources/webhooks/webhooks.d.ts.map +1 -0
- package/resources/webhooks/webhooks.js +17 -0
- package/resources/webhooks/webhooks.js.map +1 -0
- package/resources/webhooks/webhooks.mjs +12 -0
- package/resources/webhooks/webhooks.mjs.map +1 -0
- package/resources/webhooks.d.mts +2 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +2 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +6 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +3 -0
- package/resources/webhooks.mjs.map +1 -0
- package/src/client.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/webhooks/index.ts +4 -0
- package/src/resources/webhooks/v1/deliveries.ts +74 -0
- package/src/resources/webhooks/v1/endpoints.ts +204 -0
- package/src/resources/webhooks/v1/event-types.ts +23 -0
- package/src/resources/webhooks/v1/index.ts +13 -0
- package/src/resources/webhooks/v1/v1.ts +45 -0
- package/src/resources/webhooks/v1.ts +3 -0
- package/src/resources/webhooks/webhooks.ts +15 -0
- package/src/resources/webhooks.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Deliveries, type DeliveryListParams, type DeliveryReplayParams } from "./deliveries.mjs";
|
|
2
|
+
export { Endpoints, type EndpointCreateParams, type EndpointUpdateParams, type EndpointListParams, type EndpointRotateSecretParams, type EndpointTestParams, } from "./endpoints.mjs";
|
|
3
|
+
export { EventTypes } from "./event-types.mjs";
|
|
4
|
+
export { V1 } from "./v1.mjs";
|
|
5
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,UAAU,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE;OAClE,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,GACxB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,EAAE,EAAE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Deliveries, type DeliveryListParams, type DeliveryReplayParams } from "./deliveries.js";
|
|
2
|
+
export { Endpoints, type EndpointCreateParams, type EndpointUpdateParams, type EndpointListParams, type EndpointRotateSecretParams, type EndpointTestParams, } from "./endpoints.js";
|
|
3
|
+
export { EventTypes } from "./event-types.js";
|
|
4
|
+
export { V1 } from "./v1.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,UAAU,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE;OAClE,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,GACxB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,EAAE,EAAE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.V1 = exports.EventTypes = exports.Endpoints = exports.Deliveries = void 0;
|
|
5
|
+
var deliveries_1 = require("./deliveries.js");
|
|
6
|
+
Object.defineProperty(exports, "Deliveries", { enumerable: true, get: function () { return deliveries_1.Deliveries; } });
|
|
7
|
+
var endpoints_1 = require("./endpoints.js");
|
|
8
|
+
Object.defineProperty(exports, "Endpoints", { enumerable: true, get: function () { return endpoints_1.Endpoints; } });
|
|
9
|
+
var event_types_1 = require("./event-types.js");
|
|
10
|
+
Object.defineProperty(exports, "EventTypes", { enumerable: true, get: function () { return event_types_1.EventTypes; } });
|
|
11
|
+
var v1_1 = require("./v1.js");
|
|
12
|
+
Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAA8F;AAArF,wGAAA,UAAU,OAAA;AACnB,4CAOqB;AANnB,sGAAA,SAAS,OAAA;AAOX,gDAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Deliveries } from "./deliveries.mjs";
|
|
3
|
+
export { Endpoints, } from "./endpoints.mjs";
|
|
4
|
+
export { EventTypes } from "./event-types.mjs";
|
|
5
|
+
export { V1 } from "./v1.mjs";
|
|
6
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,UAAU,EAAsD;OAClE,EACL,SAAS,GAMV;OACM,EAAE,UAAU,EAAE;OACd,EAAE,EAAE,EAAE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as DeliveriesAPI from "./deliveries.mjs";
|
|
3
|
+
import { Deliveries, DeliveryListParams, DeliveryReplayParams } from "./deliveries.mjs";
|
|
4
|
+
import * as EndpointsAPI from "./endpoints.mjs";
|
|
5
|
+
import { EndpointCreateParams, EndpointListParams, EndpointRotateSecretParams, EndpointTestParams, EndpointUpdateParams, Endpoints } from "./endpoints.mjs";
|
|
6
|
+
import * as EventTypesAPI from "./event-types.mjs";
|
|
7
|
+
import { EventTypes } from "./event-types.mjs";
|
|
8
|
+
export declare class V1 extends APIResource {
|
|
9
|
+
endpoints: EndpointsAPI.Endpoints;
|
|
10
|
+
deliveries: DeliveriesAPI.Deliveries;
|
|
11
|
+
eventTypes: EventTypesAPI.EventTypes;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace V1 {
|
|
14
|
+
export { Endpoints as Endpoints, type EndpointCreateParams as EndpointCreateParams, type EndpointUpdateParams as EndpointUpdateParams, type EndpointListParams as EndpointListParams, type EndpointRotateSecretParams as EndpointRotateSecretParams, type EndpointTestParams as EndpointTestParams, };
|
|
15
|
+
export { Deliveries as Deliveries, type DeliveryListParams as DeliveryListParams, type DeliveryReplayParams as DeliveryReplayParams, };
|
|
16
|
+
export { EventTypes as EventTypes };
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE,kBAAkB,EAAE,oBAAoB,EAAE;OACxD,KAAK,YAAY;OACjB,EACL,oBAAoB,EACpB,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACV;OACM,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;AAErB,qBAAa,EAAG,SAAQ,WAAW;IACjC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;CACnF;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,CAAC;CACrC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as DeliveriesAPI from "./deliveries.js";
|
|
3
|
+
import { Deliveries, DeliveryListParams, DeliveryReplayParams } from "./deliveries.js";
|
|
4
|
+
import * as EndpointsAPI from "./endpoints.js";
|
|
5
|
+
import { EndpointCreateParams, EndpointListParams, EndpointRotateSecretParams, EndpointTestParams, EndpointUpdateParams, Endpoints } from "./endpoints.js";
|
|
6
|
+
import * as EventTypesAPI from "./event-types.js";
|
|
7
|
+
import { EventTypes } from "./event-types.js";
|
|
8
|
+
export declare class V1 extends APIResource {
|
|
9
|
+
endpoints: EndpointsAPI.Endpoints;
|
|
10
|
+
deliveries: DeliveriesAPI.Deliveries;
|
|
11
|
+
eventTypes: EventTypesAPI.EventTypes;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace V1 {
|
|
14
|
+
export { Endpoints as Endpoints, type EndpointCreateParams as EndpointCreateParams, type EndpointUpdateParams as EndpointUpdateParams, type EndpointListParams as EndpointListParams, type EndpointRotateSecretParams as EndpointRotateSecretParams, type EndpointTestParams as EndpointTestParams, };
|
|
15
|
+
export { Deliveries as Deliveries, type DeliveryListParams as DeliveryListParams, type DeliveryReplayParams as DeliveryReplayParams, };
|
|
16
|
+
export { EventTypes as EventTypes };
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=v1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE,kBAAkB,EAAE,oBAAoB,EAAE;OACxD,KAAK,YAAY;OACjB,EACL,oBAAoB,EACpB,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACV;OACM,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;AAErB,qBAAa,EAAG,SAAQ,WAAW;IACjC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;CACnF;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,CAAC;CACrC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.V1 = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const DeliveriesAPI = tslib_1.__importStar(require("./deliveries.js"));
|
|
8
|
+
const deliveries_1 = require("./deliveries.js");
|
|
9
|
+
const EndpointsAPI = tslib_1.__importStar(require("./endpoints.js"));
|
|
10
|
+
const endpoints_1 = require("./endpoints.js");
|
|
11
|
+
const EventTypesAPI = tslib_1.__importStar(require("./event-types.js"));
|
|
12
|
+
const event_types_1 = require("./event-types.js");
|
|
13
|
+
class V1 extends resource_1.APIResource {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.endpoints = new EndpointsAPI.Endpoints(this._client);
|
|
17
|
+
this.deliveries = new DeliveriesAPI.Deliveries(this._client);
|
|
18
|
+
this.eventTypes = new EventTypesAPI.EventTypes(this._client);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.V1 = V1;
|
|
22
|
+
V1.Endpoints = endpoints_1.Endpoints;
|
|
23
|
+
V1.Deliveries = deliveries_1.Deliveries;
|
|
24
|
+
V1.EventTypes = event_types_1.EventTypes;
|
|
25
|
+
//# sourceMappingURL=v1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,uEAA8C;AAC9C,gDAAoF;AACpF,qEAA4C;AAC5C,8CAOqB;AACrB,wEAA+C;AAC/C,kDAA2C;AAE3C,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AAJD,gBAIC;AAED,EAAE,CAAC,SAAS,GAAG,qBAAS,CAAC;AACzB,EAAE,CAAC,UAAU,GAAG,uBAAU,CAAC;AAC3B,EAAE,CAAC,UAAU,GAAG,wBAAU,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as DeliveriesAPI from "./deliveries.mjs";
|
|
4
|
+
import { Deliveries } from "./deliveries.mjs";
|
|
5
|
+
import * as EndpointsAPI from "./endpoints.mjs";
|
|
6
|
+
import { Endpoints, } from "./endpoints.mjs";
|
|
7
|
+
import * as EventTypesAPI from "./event-types.mjs";
|
|
8
|
+
import { EventTypes } from "./event-types.mjs";
|
|
9
|
+
export class V1 extends APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.endpoints = new EndpointsAPI.Endpoints(this._client);
|
|
13
|
+
this.deliveries = new DeliveriesAPI.Deliveries(this._client);
|
|
14
|
+
this.eventTypes = new EventTypesAPI.EventTypes(this._client);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
V1.Endpoints = Endpoints;
|
|
18
|
+
V1.Deliveries = Deliveries;
|
|
19
|
+
V1.EventTypes = EventTypes;
|
|
20
|
+
//# sourceMappingURL=v1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../../src/resources/webhooks/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAA4C;OACxD,KAAK,YAAY;OACjB,EAML,SAAS,GACV;OACM,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;AAErB,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACpF,CAAC;CAAA;AAED,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;AACzB,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC;AAC3B,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./v1/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=v1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as V1API from "./v1/v1.mjs";
|
|
3
|
+
import { V1 } from "./v1/v1.mjs";
|
|
4
|
+
export declare class Webhooks extends APIResource {
|
|
5
|
+
v1: V1API.V1;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Webhooks {
|
|
8
|
+
export { V1 as V1 };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=webhooks.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,qBAAa,QAAS,SAAQ,WAAW;IACvC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as V1API from "./v1/v1.js";
|
|
3
|
+
import { V1 } from "./v1/v1.js";
|
|
4
|
+
export declare class Webhooks extends APIResource {
|
|
5
|
+
v1: V1API.V1;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Webhooks {
|
|
8
|
+
export { V1 as V1 };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,qBAAa,QAAS,SAAQ,WAAW;IACvC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Webhooks = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const V1API = tslib_1.__importStar(require("./v1/v1.js"));
|
|
8
|
+
const v1_1 = require("./v1/v1.js");
|
|
9
|
+
class Webhooks extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.v1 = new V1API.V1(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Webhooks = Webhooks;
|
|
16
|
+
Webhooks.V1 = v1_1.V1;
|
|
17
|
+
//# sourceMappingURL=webhooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,0DAAiC;AACjC,mCAA6B;AAE7B,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAFD,4BAEC;AAED,QAAQ,CAAC,EAAE,GAAG,OAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as V1API from "./v1/v1.mjs";
|
|
4
|
+
import { V1 } from "./v1/v1.mjs";
|
|
5
|
+
export class Webhooks extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.v1 = new V1API.V1(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Webhooks.V1 = V1;
|
|
12
|
+
//# sourceMappingURL=webhooks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAED,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./webhooks/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=webhooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/src/client.ts
CHANGED
|
@@ -64,6 +64,7 @@ import {
|
|
|
64
64
|
VaultUploadResponse,
|
|
65
65
|
} from './resources/vault/vault';
|
|
66
66
|
import { Voice } from './resources/voice/voice';
|
|
67
|
+
import { Webhooks } from './resources/webhooks/webhooks';
|
|
67
68
|
import { type Fetch } from './internal/builtin-types';
|
|
68
69
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
69
70
|
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
@@ -816,6 +817,7 @@ export class Casedev {
|
|
|
816
817
|
*/
|
|
817
818
|
vault: API.Vault = new API.Vault(this);
|
|
818
819
|
voice: API.Voice = new API.Voice(this);
|
|
820
|
+
webhooks: API.Webhooks = new API.Webhooks(this);
|
|
819
821
|
}
|
|
820
822
|
|
|
821
823
|
Casedev.Agent = Agent;
|
|
@@ -837,6 +839,7 @@ Casedev.Translate = Translate;
|
|
|
837
839
|
Casedev.Usage = Usage;
|
|
838
840
|
Casedev.Vault = Vault;
|
|
839
841
|
Casedev.Voice = Voice;
|
|
842
|
+
Casedev.Webhooks = Webhooks;
|
|
840
843
|
|
|
841
844
|
export declare namespace Casedev {
|
|
842
845
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -906,4 +909,6 @@ export declare namespace Casedev {
|
|
|
906
909
|
};
|
|
907
910
|
|
|
908
911
|
export { Voice as Voice };
|
|
912
|
+
|
|
913
|
+
export { Webhooks as Webhooks };
|
|
909
914
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Webhook endpoint management
|
|
11
|
+
*/
|
|
12
|
+
export class Deliveries extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get webhook delivery
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<void> {
|
|
17
|
+
return this._client.get(path`/webhooks/v1/deliveries/${id}`, {
|
|
18
|
+
...options,
|
|
19
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Returns delivery attempts for the organization, newest first. Filter by
|
|
25
|
+
* endpoint_id or status to narrow results.
|
|
26
|
+
*/
|
|
27
|
+
list(query: DeliveryListParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
|
|
28
|
+
return this._client.get('/webhooks/v1/deliveries', {
|
|
29
|
+
query,
|
|
30
|
+
...options,
|
|
31
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Re-sends the original event to its endpoint. The payload is reconstructed from
|
|
37
|
+
* the delivery record (same eventId, eventType, and occurred_at). The signature
|
|
38
|
+
* header includes `svix-delivery-attempt: replay` so receivers can distinguish
|
|
39
|
+
* replays from first-time deliveries. Uses the endpoint's current signing secret —
|
|
40
|
+
* not the one in force at the original delivery time.
|
|
41
|
+
*/
|
|
42
|
+
replay(
|
|
43
|
+
id: string,
|
|
44
|
+
body: DeliveryReplayParams | null | undefined = {},
|
|
45
|
+
options?: RequestOptions,
|
|
46
|
+
): APIPromise<void> {
|
|
47
|
+
return this._client.post(path`/webhooks/v1/deliveries/${id}/replay`, {
|
|
48
|
+
body,
|
|
49
|
+
...options,
|
|
50
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface DeliveryListParams {
|
|
56
|
+
endpoint_id?: string;
|
|
57
|
+
|
|
58
|
+
limit?: number;
|
|
59
|
+
|
|
60
|
+
status?: 'pending' | 'delivered' | 'failed';
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface DeliveryReplayParams {
|
|
64
|
+
/**
|
|
65
|
+
* Override payload to deliver. Must only be supplied when the delivery record
|
|
66
|
+
* lacks enough context to reconstruct the original event (rare). Defaults to an
|
|
67
|
+
* empty data envelope.
|
|
68
|
+
*/
|
|
69
|
+
payload?: unknown;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export declare namespace Deliveries {
|
|
73
|
+
export { type DeliveryListParams as DeliveryListParams, type DeliveryReplayParams as DeliveryReplayParams };
|
|
74
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Webhook endpoint management
|
|
11
|
+
*/
|
|
12
|
+
export class Endpoints extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Creates a webhook endpoint that receives platform events matching the supplied
|
|
15
|
+
* event-type filters. Returns the generated signing secret ONCE — the response is
|
|
16
|
+
* the only time it is shown in plaintext.
|
|
17
|
+
*/
|
|
18
|
+
create(body: EndpointCreateParams, options?: RequestOptions): APIPromise<void> {
|
|
19
|
+
return this._client.post('/webhooks/v1/endpoints', {
|
|
20
|
+
body,
|
|
21
|
+
...options,
|
|
22
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Get webhook endpoint
|
|
28
|
+
*/
|
|
29
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<void> {
|
|
30
|
+
return this._client.get(path`/webhooks/v1/endpoints/${id}`, {
|
|
31
|
+
...options,
|
|
32
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Partially updates a webhook endpoint. Any omitted field is left unchanged.
|
|
38
|
+
* Signing secrets are rotated via the separate /rotate_secret endpoint.
|
|
39
|
+
*/
|
|
40
|
+
update(id: string, body: EndpointUpdateParams, options?: RequestOptions): APIPromise<void> {
|
|
41
|
+
return this._client.patch(path`/webhooks/v1/endpoints/${id}`, {
|
|
42
|
+
body,
|
|
43
|
+
...options,
|
|
44
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Returns the organization's webhook endpoints, newest first. Signing secrets are
|
|
50
|
+
* never included.
|
|
51
|
+
*/
|
|
52
|
+
list(query: EndpointListParams | null | undefined = {}, options?: RequestOptions): APIPromise<void> {
|
|
53
|
+
return this._client.get('/webhooks/v1/endpoints', {
|
|
54
|
+
query,
|
|
55
|
+
...options,
|
|
56
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Soft-deletes a webhook endpoint. Delivery stops immediately and the endpoint no
|
|
62
|
+
* longer appears in list results. Delivery history is preserved (and can be
|
|
63
|
+
* fetched via GET /deliveries with the endpoint_id filter) so audit trails and
|
|
64
|
+
* post-mortem debugging remain possible.
|
|
65
|
+
*/
|
|
66
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
67
|
+
return this._client.delete(path`/webhooks/v1/endpoints/${id}`, {
|
|
68
|
+
...options,
|
|
69
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Generates a new signing secret for the endpoint. The previous secret remains
|
|
75
|
+
* valid until `previousSecretExpiresInSec` elapses (default 24h, max 30 days).
|
|
76
|
+
* During the grace window deliveries are signed with both secrets so receivers can
|
|
77
|
+
* migrate without downtime. Returns the new secret — this is the only time it is
|
|
78
|
+
* shown in plaintext.
|
|
79
|
+
*/
|
|
80
|
+
rotateSecret(
|
|
81
|
+
id: string,
|
|
82
|
+
body: EndpointRotateSecretParams | null | undefined = {},
|
|
83
|
+
options?: RequestOptions,
|
|
84
|
+
): APIPromise<void> {
|
|
85
|
+
return this._client.post(path`/webhooks/v1/endpoints/${id}/rotate_secret`, {
|
|
86
|
+
body,
|
|
87
|
+
...options,
|
|
88
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Synchronously delivers a synthetic `webhook.test` event to the endpoint and
|
|
94
|
+
* returns the HTTP result. No retries. Useful for validating that a new endpoint
|
|
95
|
+
* is reachable and its signature verifier works. The delivery is not persisted in
|
|
96
|
+
* the delivery history.
|
|
97
|
+
*/
|
|
98
|
+
test(
|
|
99
|
+
id: string,
|
|
100
|
+
body: EndpointTestParams | null | undefined = {},
|
|
101
|
+
options?: RequestOptions,
|
|
102
|
+
): APIPromise<void> {
|
|
103
|
+
return this._client.post(path`/webhooks/v1/endpoints/${id}/test`, {
|
|
104
|
+
body,
|
|
105
|
+
...options,
|
|
106
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface EndpointCreateParams {
|
|
112
|
+
/**
|
|
113
|
+
* Glob patterns of event types to deliver (e.g. "vault._", "ocr.job.completed",
|
|
114
|
+
* "_")
|
|
115
|
+
*/
|
|
116
|
+
eventTypeFilters: Array<string>;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* HTTPS callback URL that will receive event deliveries
|
|
120
|
+
*/
|
|
121
|
+
url: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Human-readable label for this endpoint
|
|
125
|
+
*/
|
|
126
|
+
description?: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Optional per-resource allowlists. If vaultIds is set, only events for those
|
|
130
|
+
* vaults are delivered. Same for matterIds.
|
|
131
|
+
*/
|
|
132
|
+
resourceScopes?: EndpointCreateParams.ResourceScopes;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export namespace EndpointCreateParams {
|
|
136
|
+
/**
|
|
137
|
+
* Optional per-resource allowlists. If vaultIds is set, only events for those
|
|
138
|
+
* vaults are delivered. Same for matterIds.
|
|
139
|
+
*/
|
|
140
|
+
export interface ResourceScopes {
|
|
141
|
+
matterIds?: Array<string>;
|
|
142
|
+
|
|
143
|
+
vaultIds?: Array<string>;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface EndpointUpdateParams {
|
|
148
|
+
description?: string | null;
|
|
149
|
+
|
|
150
|
+
eventTypeFilters?: Array<string>;
|
|
151
|
+
|
|
152
|
+
resourceScopes?: EndpointUpdateParams.ResourceScopes | null;
|
|
153
|
+
|
|
154
|
+
status?: 'active' | 'disabled';
|
|
155
|
+
|
|
156
|
+
url?: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export namespace EndpointUpdateParams {
|
|
160
|
+
export interface ResourceScopes {
|
|
161
|
+
matterIds?: Array<string>;
|
|
162
|
+
|
|
163
|
+
vaultIds?: Array<string>;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface EndpointListParams {
|
|
168
|
+
limit?: number;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Filter by endpoint status
|
|
172
|
+
*/
|
|
173
|
+
status?: 'active' | 'disabled' | 'auto_disabled';
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface EndpointRotateSecretParams {
|
|
177
|
+
/**
|
|
178
|
+
* How long (seconds) the old secret continues to be accepted. 0 invalidates
|
|
179
|
+
* immediately. Default: 86400 (24h).
|
|
180
|
+
*/
|
|
181
|
+
previousSecretExpiresInSec?: number;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface EndpointTestParams {
|
|
185
|
+
/**
|
|
186
|
+
* Event type to simulate. Defaults to "webhook.test".
|
|
187
|
+
*/
|
|
188
|
+
eventType?: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Custom `data` payload. Defaults to a small placeholder.
|
|
192
|
+
*/
|
|
193
|
+
payload?: unknown;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export declare namespace Endpoints {
|
|
197
|
+
export {
|
|
198
|
+
type EndpointCreateParams as EndpointCreateParams,
|
|
199
|
+
type EndpointUpdateParams as EndpointUpdateParams,
|
|
200
|
+
type EndpointListParams as EndpointListParams,
|
|
201
|
+
type EndpointRotateSecretParams as EndpointRotateSecretParams,
|
|
202
|
+
type EndpointTestParams as EndpointTestParams,
|
|
203
|
+
};
|
|
204
|
+
}
|