@noresponse/node 2.0.28 → 2.0.30
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 +9 -0
- package/README.md +1 -1
- package/dist/commonjs/client.d.ts +29 -3
- package/dist/commonjs/client.d.ts.map +1 -1
- package/dist/commonjs/client.js +47 -3
- package/dist/commonjs/client.js.map +1 -1
- package/dist/commonjs/funcs/webhook-endpoints-list-deliveries.d.ts +21 -0
- package/dist/commonjs/funcs/webhook-endpoints-list-deliveries.d.ts.map +1 -0
- package/dist/commonjs/funcs/webhook-endpoints-list-deliveries.js +182 -0
- package/dist/commonjs/funcs/webhook-endpoints-list-deliveries.js.map +1 -0
- package/dist/commonjs/funcs/webhook-endpoints-replay-delivery.d.ts +18 -0
- package/dist/commonjs/funcs/webhook-endpoints-replay-delivery.d.ts.map +1 -0
- package/dist/commonjs/funcs/webhook-endpoints-replay-delivery.js +146 -0
- package/dist/commonjs/funcs/webhook-endpoints-replay-delivery.js.map +1 -0
- package/dist/commonjs/index.d.ts +1 -1
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/event-type.d.ts +9 -0
- package/dist/commonjs/models/event-type.d.ts.map +1 -0
- package/dist/commonjs/models/event-type.js +43 -0
- package/dist/commonjs/models/event-type.js.map +1 -0
- package/dist/commonjs/models/failure.d.ts +21 -0
- package/dist/commonjs/models/failure.d.ts.map +1 -0
- package/dist/commonjs/models/failure.js +53 -0
- package/dist/commonjs/models/failure.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +7 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +7 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/list-webhook-deliveries.d.ts +37 -0
- package/dist/commonjs/models/operations/list-webhook-deliveries.d.ts.map +1 -0
- package/dist/commonjs/models/operations/list-webhook-deliveries.js +69 -0
- package/dist/commonjs/models/operations/list-webhook-deliveries.js.map +1 -0
- package/dist/commonjs/models/operations/replay-webhook-delivery.d.ts +34 -0
- package/dist/commonjs/models/operations/replay-webhook-delivery.d.ts.map +1 -0
- package/dist/commonjs/models/operations/replay-webhook-delivery.js +70 -0
- package/dist/commonjs/models/operations/replay-webhook-delivery.js.map +1 -0
- package/dist/commonjs/models/webhook-delivery-attempt-status.d.ts +16 -0
- package/dist/commonjs/models/webhook-delivery-attempt-status.d.ts.map +1 -0
- package/dist/commonjs/models/webhook-delivery-attempt-status.js +47 -0
- package/dist/commonjs/models/webhook-delivery-attempt-status.js.map +1 -0
- package/dist/commonjs/models/webhook-delivery-attempt.d.ts +45 -0
- package/dist/commonjs/models/webhook-delivery-attempt.d.ts.map +1 -0
- package/dist/commonjs/models/webhook-delivery-attempt.js +68 -0
- package/dist/commonjs/models/webhook-delivery-attempt.js.map +1 -0
- package/dist/commonjs/models/webhook-delivery-list.d.ts +22 -0
- package/dist/commonjs/models/webhook-delivery-list.d.ts.map +1 -0
- package/dist/commonjs/models/webhook-delivery-list.js +57 -0
- package/dist/commonjs/models/webhook-delivery-list.js.map +1 -0
- package/dist/commonjs/models/webhook-replay-request.d.ts +11 -0
- package/dist/commonjs/models/webhook-replay-request.d.ts.map +1 -0
- package/dist/commonjs/models/webhook-replay-request.js +44 -0
- package/dist/commonjs/models/webhook-replay-request.js.map +1 -0
- package/dist/commonjs/models/webhook-replay.d.ts +22 -0
- package/dist/commonjs/models/webhook-replay.d.ts.map +1 -0
- package/dist/commonjs/models/webhook-replay.js +58 -0
- package/dist/commonjs/models/webhook-replay.js.map +1 -0
- package/dist/commonjs/sdk/webhook-endpoints.d.ts +17 -0
- package/dist/commonjs/sdk/webhook-endpoints.d.ts.map +1 -1
- package/dist/commonjs/sdk/webhook-endpoints.js +21 -0
- package/dist/commonjs/sdk/webhook-endpoints.js.map +1 -1
- package/dist/commonjs/wait.d.ts +9 -3
- package/dist/commonjs/wait.d.ts.map +1 -1
- package/dist/commonjs/wait.js +27 -11
- package/dist/commonjs/wait.js.map +1 -1
- package/dist/esm/client.d.ts +29 -3
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +47 -3
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/funcs/webhook-endpoints-list-deliveries.d.ts +21 -0
- package/dist/esm/funcs/webhook-endpoints-list-deliveries.d.ts.map +1 -0
- package/dist/esm/funcs/webhook-endpoints-list-deliveries.js +146 -0
- package/dist/esm/funcs/webhook-endpoints-list-deliveries.js.map +1 -0
- package/dist/esm/funcs/webhook-endpoints-replay-delivery.d.ts +18 -0
- package/dist/esm/funcs/webhook-endpoints-replay-delivery.d.ts.map +1 -0
- package/dist/esm/funcs/webhook-endpoints-replay-delivery.js +110 -0
- package/dist/esm/funcs/webhook-endpoints-replay-delivery.js.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/event-type.d.ts +9 -0
- package/dist/esm/models/event-type.d.ts.map +1 -0
- package/dist/esm/models/event-type.js +7 -0
- package/dist/esm/models/event-type.js.map +1 -0
- package/dist/esm/models/failure.d.ts +21 -0
- package/dist/esm/models/failure.d.ts.map +1 -0
- package/dist/esm/models/failure.js +17 -0
- package/dist/esm/models/failure.js.map +1 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +7 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/list-webhook-deliveries.d.ts +37 -0
- package/dist/esm/models/operations/list-webhook-deliveries.d.ts.map +1 -0
- package/dist/esm/models/operations/list-webhook-deliveries.js +31 -0
- package/dist/esm/models/operations/list-webhook-deliveries.js.map +1 -0
- package/dist/esm/models/operations/replay-webhook-delivery.d.ts +34 -0
- package/dist/esm/models/operations/replay-webhook-delivery.d.ts.map +1 -0
- package/dist/esm/models/operations/replay-webhook-delivery.js +32 -0
- package/dist/esm/models/operations/replay-webhook-delivery.js.map +1 -0
- package/dist/esm/models/webhook-delivery-attempt-status.d.ts +16 -0
- package/dist/esm/models/webhook-delivery-attempt-status.d.ts.map +1 -0
- package/dist/esm/models/webhook-delivery-attempt-status.js +11 -0
- package/dist/esm/models/webhook-delivery-attempt-status.js.map +1 -0
- package/dist/esm/models/webhook-delivery-attempt.d.ts +45 -0
- package/dist/esm/models/webhook-delivery-attempt.d.ts.map +1 -0
- package/dist/esm/models/webhook-delivery-attempt.js +31 -0
- package/dist/esm/models/webhook-delivery-attempt.js.map +1 -0
- package/dist/esm/models/webhook-delivery-list.d.ts +22 -0
- package/dist/esm/models/webhook-delivery-list.d.ts.map +1 -0
- package/dist/esm/models/webhook-delivery-list.js +20 -0
- package/dist/esm/models/webhook-delivery-list.js.map +1 -0
- package/dist/esm/models/webhook-replay-request.d.ts +11 -0
- package/dist/esm/models/webhook-replay-request.d.ts.map +1 -0
- package/dist/esm/models/webhook-replay-request.js +7 -0
- package/dist/esm/models/webhook-replay-request.js.map +1 -0
- package/dist/esm/models/webhook-replay.d.ts +22 -0
- package/dist/esm/models/webhook-replay.d.ts.map +1 -0
- package/dist/esm/models/webhook-replay.js +21 -0
- package/dist/esm/models/webhook-replay.js.map +1 -0
- package/dist/esm/sdk/webhook-endpoints.d.ts +17 -0
- package/dist/esm/sdk/webhook-endpoints.d.ts.map +1 -1
- package/dist/esm/sdk/webhook-endpoints.js +21 -0
- package/dist/esm/sdk/webhook-endpoints.js.map +1 -1
- package/dist/esm/wait.d.ts +9 -3
- package/dist/esm/wait.d.ts.map +1 -1
- package/dist/esm/wait.js +27 -11
- package/dist/esm/wait.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.WebhookDeliveryAttemptStatus$inboundSchema = exports.WebhookDeliveryAttemptStatus = void 0;
|
|
37
|
+
const openEnums = __importStar(require("../types/enums.js"));
|
|
38
|
+
/**
|
|
39
|
+
* delivered when the endpoint answered 2xx; failed otherwise, with failure naming why.
|
|
40
|
+
*/
|
|
41
|
+
exports.WebhookDeliveryAttemptStatus = {
|
|
42
|
+
Delivered: "delivered",
|
|
43
|
+
Failed: "failed",
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.WebhookDeliveryAttemptStatus$inboundSchema = openEnums.inboundSchema(exports.WebhookDeliveryAttemptStatus);
|
|
47
|
+
//# sourceMappingURL=webhook-delivery-attempt-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-delivery-attempt-status.js","sourceRoot":"","sources":["../../../src/models/webhook-delivery-attempt-status.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAY,SAAS,8CAA0B;AAG/C;;GAEG;AACU,QAAA,4BAA4B,GAAG;IAC1C,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAC;AAQX,gBAAgB;AACH,QAAA,0CAA0C,GAGnD,SAAS,CAAC,aAAa,CAAC,QAAA,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
import { EventType } from "./event-type.js";
|
|
5
|
+
import { Failure } from "./failure.js";
|
|
6
|
+
import { WebhookDeliveryAttemptStatus } from "./webhook-delivery-attempt-status.js";
|
|
7
|
+
export type WebhookDeliveryAttempt = {
|
|
8
|
+
/**
|
|
9
|
+
* The event id the receiver saw as NR-Webhook-Id and as the body's id. Replay it with POST /v1/webhooks/{endpoint_id}/deliveries/{event_id}/replay.
|
|
10
|
+
*/
|
|
11
|
+
eventId: string;
|
|
12
|
+
eventType: EventType;
|
|
13
|
+
/**
|
|
14
|
+
* Which attempt of this delivery this was: 1 for the first send, up to 9 with retries. A replay counts its own attempts from 1.
|
|
15
|
+
*/
|
|
16
|
+
attempt: number;
|
|
17
|
+
/**
|
|
18
|
+
* true for an attempt of a replay you asked for.
|
|
19
|
+
*/
|
|
20
|
+
replay: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* delivered when the endpoint answered 2xx; failed otherwise, with failure naming why.
|
|
23
|
+
*/
|
|
24
|
+
status: WebhookDeliveryAttemptStatus;
|
|
25
|
+
/**
|
|
26
|
+
* The HTTP status the endpoint answered. Absent when no response was read.
|
|
27
|
+
*/
|
|
28
|
+
responseCode?: number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Why the attempt failed: the URL is no longer valid, the host did not resolve, it resolved to an address that is not public, no answer within 5 seconds, the connection failed, a 3xx (redirects are not followed) or another non-2xx status. Absent for a delivered attempt.
|
|
31
|
+
*/
|
|
32
|
+
failure?: Failure | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Milliseconds from sending the request to the answer or the failure.
|
|
35
|
+
*/
|
|
36
|
+
latencyMs: number;
|
|
37
|
+
/**
|
|
38
|
+
* When the request was sent. Its NR-Webhook-Timestamp is this time in Unix seconds.
|
|
39
|
+
*/
|
|
40
|
+
attemptedAt: string;
|
|
41
|
+
};
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const WebhookDeliveryAttempt$inboundSchema: z.ZodMiniType<WebhookDeliveryAttempt, unknown>;
|
|
44
|
+
export declare function webhookDeliveryAttemptFromJSON(jsonString: string): SafeParseResult<WebhookDeliveryAttempt, SDKValidationError>;
|
|
45
|
+
//# sourceMappingURL=webhook-delivery-attempt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-delivery-attempt.d.ts","sourceRoot":"","sources":["../../../src/models/webhook-delivery-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,SAAS,EAA2B,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAyB,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,4BAA4B,EAE7B,MAAM,sCAAsC,CAAC;AAE9C,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,4BAA4B,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,WAAW,CAC9D,sBAAsB,EACtB,OAAO,CAsBR,CAAC;AAEF,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.WebhookDeliveryAttempt$inboundSchema = void 0;
|
|
37
|
+
exports.webhookDeliveryAttemptFromJSON = webhookDeliveryAttemptFromJSON;
|
|
38
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
39
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
40
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
41
|
+
const types = __importStar(require("../types/primitives.js"));
|
|
42
|
+
const event_type_js_1 = require("./event-type.js");
|
|
43
|
+
const failure_js_1 = require("./failure.js");
|
|
44
|
+
const webhook_delivery_attempt_status_js_1 = require("./webhook-delivery-attempt-status.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.WebhookDeliveryAttempt$inboundSchema = z.pipe(z.object({
|
|
47
|
+
event_id: types.string(),
|
|
48
|
+
event_type: event_type_js_1.EventType$inboundSchema,
|
|
49
|
+
attempt: types.number(),
|
|
50
|
+
replay: types.boolean(),
|
|
51
|
+
status: webhook_delivery_attempt_status_js_1.WebhookDeliveryAttemptStatus$inboundSchema,
|
|
52
|
+
response_code: types.optional(types.number()),
|
|
53
|
+
failure: types.optional(failure_js_1.Failure$inboundSchema),
|
|
54
|
+
latency_ms: types.number(),
|
|
55
|
+
attempted_at: types.string(),
|
|
56
|
+
}), z.transform((v) => {
|
|
57
|
+
return (0, primitives_js_1.remap)(v, {
|
|
58
|
+
"event_id": "eventId",
|
|
59
|
+
"event_type": "eventType",
|
|
60
|
+
"response_code": "responseCode",
|
|
61
|
+
"latency_ms": "latencyMs",
|
|
62
|
+
"attempted_at": "attemptedAt",
|
|
63
|
+
});
|
|
64
|
+
}));
|
|
65
|
+
function webhookDeliveryAttemptFromJSON(jsonString) {
|
|
66
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WebhookDeliveryAttempt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebhookDeliveryAttempt' from JSON`);
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=webhook-delivery-attempt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-delivery-attempt.js","sourceRoot":"","sources":["../../../src/models/webhook-delivery-attempt.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAEhD,mDAAqE;AACrE,6CAA8D;AAC9D,6FAG8C;AAsC9C,gBAAgB;AACH,QAAA,oCAAoC,GAG7C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,uCAAuB;IACnC,OAAO,EAAE,KAAK,CAAC,MAAM,EAAE;IACvB,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE;IACvB,MAAM,EAAE,+EAA0C;IAClD,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC7C,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,kCAAqB,CAAC;IAC9C,UAAU,EAAE,KAAK,CAAC,MAAM,EAAE;IAC1B,YAAY,EAAE,KAAK,CAAC,MAAM,EAAE;CAC7B,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;QACrB,YAAY,EAAE,WAAW;QACzB,eAAe,EAAE,cAAc;QAC/B,YAAY,EAAE,WAAW;QACzB,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,wCACE,UAAkB,EAC2C;IAC7D,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,QAAA,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
import { WebhookDeliveryAttempt } from "./webhook-delivery-attempt.js";
|
|
5
|
+
/**
|
|
6
|
+
* The 200 answer of GET /v1/webhooks/{endpoint_id}/deliveries: one page of the endpoint's delivery attempts, newest first. Each item is one POST to the endpoint. Attempts are kept for 30 days, or the tenant's retention_days when that is shorter, and are deleted with the assessment they carried. next_cursor is present only when another page exists.
|
|
7
|
+
*/
|
|
8
|
+
export type WebhookDeliveryList = {
|
|
9
|
+
/**
|
|
10
|
+
* Opaque id of the endpoint registration.
|
|
11
|
+
*/
|
|
12
|
+
endpointId: string;
|
|
13
|
+
items: Array<WebhookDeliveryAttempt>;
|
|
14
|
+
/**
|
|
15
|
+
* Opaque cursor for the next page, MAC'd by the server and bound to the tenant and endpoint it was issued for. Pass it back unchanged as cursor; a tampered, foreign or expired cursor answers 400 invalid_cursor.
|
|
16
|
+
*/
|
|
17
|
+
nextCursor?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const WebhookDeliveryList$inboundSchema: z.ZodMiniType<WebhookDeliveryList, unknown>;
|
|
21
|
+
export declare function webhookDeliveryListFromJSON(jsonString: string): SafeParseResult<WebhookDeliveryList, SDKValidationError>;
|
|
22
|
+
//# sourceMappingURL=webhook-delivery-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-delivery-list.d.ts","sourceRoot":"","sources":["../../../src/models/webhook-delivery-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,sBAAsB,EAEvB,MAAM,+BAA+B,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,WAAW,CAC3D,mBAAmB,EACnB,OAAO,CAaR,CAAC;AAEF,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.WebhookDeliveryList$inboundSchema = void 0;
|
|
37
|
+
exports.webhookDeliveryListFromJSON = webhookDeliveryListFromJSON;
|
|
38
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
39
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
40
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
41
|
+
const types = __importStar(require("../types/primitives.js"));
|
|
42
|
+
const webhook_delivery_attempt_js_1 = require("./webhook-delivery-attempt.js");
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.WebhookDeliveryList$inboundSchema = z.pipe(z.object({
|
|
45
|
+
endpoint_id: types.string(),
|
|
46
|
+
items: z.array(webhook_delivery_attempt_js_1.WebhookDeliveryAttempt$inboundSchema),
|
|
47
|
+
next_cursor: types.optional(types.string()),
|
|
48
|
+
}), z.transform((v) => {
|
|
49
|
+
return (0, primitives_js_1.remap)(v, {
|
|
50
|
+
"endpoint_id": "endpointId",
|
|
51
|
+
"next_cursor": "nextCursor",
|
|
52
|
+
});
|
|
53
|
+
}));
|
|
54
|
+
function webhookDeliveryListFromJSON(jsonString) {
|
|
55
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WebhookDeliveryList$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebhookDeliveryList' from JSON`);
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=webhook-delivery-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-delivery-list.js","sourceRoot":"","sources":["../../../src/models/webhook-delivery-list.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAEhD,+EAGuC;AAiBvC,gBAAgB;AACH,QAAA,iCAAiC,GAG1C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,WAAW,EAAE,KAAK,CAAC,MAAM,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,kEAAoC,CAAC;IACpD,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC5C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,YAAY;QAC3B,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,qCACE,UAAkB,EACwC;IAC1D,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,QAAA,iCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
/**
|
|
3
|
+
* POST /v1/webhooks/{endpoint_id}/deliveries/{event_id}/replay body: an empty object.
|
|
4
|
+
*/
|
|
5
|
+
export type WebhookReplayRequest = {};
|
|
6
|
+
/** @internal */
|
|
7
|
+
export type WebhookReplayRequest$Outbound = {};
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const WebhookReplayRequest$outboundSchema: z.ZodMiniType<WebhookReplayRequest$Outbound, WebhookReplayRequest>;
|
|
10
|
+
export declare function webhookReplayRequestToJSON(webhookReplayRequest: WebhookReplayRequest): string;
|
|
11
|
+
//# sourceMappingURL=webhook-replay-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-replay-request.d.ts","sourceRoot":"","sources":["../../../src/models/webhook-replay-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEtC,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAE/C,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,WAAW,CAC7D,6BAA6B,EAC7B,oBAAoB,CACN,CAAC;AAEjB,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.WebhookReplayRequest$outboundSchema = void 0;
|
|
37
|
+
exports.webhookReplayRequestToJSON = webhookReplayRequestToJSON;
|
|
38
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
39
|
+
/** @internal */
|
|
40
|
+
exports.WebhookReplayRequest$outboundSchema = z.object({});
|
|
41
|
+
function webhookReplayRequestToJSON(webhookReplayRequest) {
|
|
42
|
+
return JSON.stringify(exports.WebhookReplayRequest$outboundSchema.parse(webhookReplayRequest));
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=webhook-replay-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-replay-request.js","sourceRoot":"","sources":["../../../src/models/webhook-replay-request.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AAUjC,gBAAgB;AACH,QAAA,mCAAmC,GAG5C,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB,oCACE,oBAA0C,EAClC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,QAAA,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
import { EventType } from "./event-type.js";
|
|
5
|
+
/**
|
|
6
|
+
* The 202 answer of POST /v1/webhooks/{endpoint_id}/deliveries/{event_id}/replay: the event queued to be sent again.
|
|
7
|
+
*/
|
|
8
|
+
export type WebhookReplay = {
|
|
9
|
+
/**
|
|
10
|
+
* Opaque id of the endpoint registration.
|
|
11
|
+
*/
|
|
12
|
+
endpointId: string;
|
|
13
|
+
/**
|
|
14
|
+
* The replayed event's id. The receiver sees the same id and body as the first time, with a new NR-Webhook-Timestamp and signature.
|
|
15
|
+
*/
|
|
16
|
+
eventId: string;
|
|
17
|
+
eventType: EventType;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const WebhookReplay$inboundSchema: z.ZodMiniType<WebhookReplay, unknown>;
|
|
21
|
+
export declare function webhookReplayFromJSON(jsonString: string): SafeParseResult<WebhookReplay, SDKValidationError>;
|
|
22
|
+
//# sourceMappingURL=webhook-replay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-replay.d.ts","sourceRoot":"","sources":["../../../src/models/webhook-replay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,SAAS,EAA2B,MAAM,iBAAiB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,WAAW,CACrD,aAAa,EACb,OAAO,CAcR,CAAC;AAEF,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.WebhookReplay$inboundSchema = void 0;
|
|
37
|
+
exports.webhookReplayFromJSON = webhookReplayFromJSON;
|
|
38
|
+
const z = __importStar(require("zod/v4-mini"));
|
|
39
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
40
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
41
|
+
const types = __importStar(require("../types/primitives.js"));
|
|
42
|
+
const event_type_js_1 = require("./event-type.js");
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.WebhookReplay$inboundSchema = z.pipe(z.object({
|
|
45
|
+
endpoint_id: types.string(),
|
|
46
|
+
event_id: types.string(),
|
|
47
|
+
event_type: event_type_js_1.EventType$inboundSchema,
|
|
48
|
+
}), z.transform((v) => {
|
|
49
|
+
return (0, primitives_js_1.remap)(v, {
|
|
50
|
+
"endpoint_id": "endpointId",
|
|
51
|
+
"event_id": "eventId",
|
|
52
|
+
"event_type": "eventType",
|
|
53
|
+
});
|
|
54
|
+
}));
|
|
55
|
+
function webhookReplayFromJSON(jsonString) {
|
|
56
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WebhookReplay$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebhookReplay' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=webhook-replay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-replay.js","sourceRoot":"","sources":["../../../src/models/webhook-replay.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAEhD,mDAAqE;AAiBrE,gBAAgB;AACH,QAAA,2BAA2B,GAGpC,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,WAAW,EAAE,KAAK,CAAC,MAAM,EAAE;IAC3B,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,uCAAuB;CACpC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,YAAY;QAC3B,UAAU,EAAE,SAAS;QACrB,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,+BACE,UAAkB,EACkC;IACpD,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,QAAA,2BAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AAAA,CACH"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as models from "../models/index.js";
|
|
3
3
|
import * as operations from "../models/operations/index.js";
|
|
4
|
+
import { PageIterator } from "../types/operations.js";
|
|
4
5
|
export declare class WebhookEndpoints extends ClientSDK {
|
|
5
6
|
/**
|
|
6
7
|
* List the tenant's webhook endpoints.
|
|
@@ -37,5 +38,21 @@ export declare class WebhookEndpoints extends ClientSDK {
|
|
|
37
38
|
* endpoint.verification sends a signed challenge now and answers whether the endpoint echoed it within 5 seconds; an echo verifies the endpoint, including a disabled one. assessment.updated queues one signed event with test: true and a fixed example assessment in the endpoint's response mode, delivered and retried like any other event; the endpoint must be verified. Both use the endpoint's current signing key. Requires the webhooks scope.
|
|
38
39
|
*/
|
|
39
40
|
sendTestEvent(request: operations.SendWebhookTestEventRequest, options?: RequestOptions): Promise<operations.SendWebhookTestEventResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* List an endpoint's delivery attempts.
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* Every POST the endpoint received, newest first: the event id and type, which attempt it was, whether it was a replay, delivered or failed, the response code, why it failed and how long it took. Attempts are kept for 30 days, or your retention_days when that is shorter, and are deleted with the assessment they carried. Requires the webhooks scope. Read-only and safe to retry. The cursor is opaque and bound to your tenant and the endpoint; a tampered or expired cursor answers 400 invalid_cursor.
|
|
46
|
+
*/
|
|
47
|
+
listDeliveries(request: operations.ListWebhookDeliveriesRequest, options?: RequestOptions): Promise<PageIterator<operations.ListWebhookDeliveriesResponse, {
|
|
48
|
+
cursor: string;
|
|
49
|
+
}>>;
|
|
50
|
+
/**
|
|
51
|
+
* Send one delivery again.
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Queues the event for the endpoint again: the same event id and body it received, with a new NR-Webhook-Timestamp and a signature from the endpoint's current signing key, retried like any other delivery and listed with replay: true. Your receiver deduplicates on the event id. The endpoint must be verified. Requires the webhooks scope. Not idempotent: each call, a retry included, sends the event again.
|
|
55
|
+
*/
|
|
56
|
+
replayDelivery(request: operations.ReplayWebhookDeliveryRequest, options?: RequestOptions): Promise<operations.ReplayWebhookDeliveryResponse>;
|
|
40
57
|
}
|
|
41
58
|
//# sourceMappingURL=webhook-endpoints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-endpoints.d.ts","sourceRoot":"","sources":["../../../src/sdk/webhook-endpoints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhook-endpoints.d.ts","sourceRoot":"","sources":["../../../src/sdk/webhook-endpoints.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C;;;;;OAKG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAKlD;IAED;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,MAAM,CAAC,sBAAsB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAMnD;IAED;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,GAAG,SAAS,CAAC,CAM/D;IAED;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC,CAMrD;IAED;;;;;OAKG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAMlD;IAED;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,6BAA6B,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAC3E,CAMA;IAED;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAMnD;CACF"}
|
|
@@ -3,11 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.WebhookEndpoints = void 0;
|
|
4
4
|
const webhook_endpoints_create_js_1 = require("../funcs/webhook-endpoints-create.js");
|
|
5
5
|
const webhook_endpoints_delete_js_1 = require("../funcs/webhook-endpoints-delete.js");
|
|
6
|
+
const webhook_endpoints_list_deliveries_js_1 = require("../funcs/webhook-endpoints-list-deliveries.js");
|
|
6
7
|
const webhook_endpoints_list_js_1 = require("../funcs/webhook-endpoints-list.js");
|
|
8
|
+
const webhook_endpoints_replay_delivery_js_1 = require("../funcs/webhook-endpoints-replay-delivery.js");
|
|
7
9
|
const webhook_endpoints_rotate_signing_key_js_1 = require("../funcs/webhook-endpoints-rotate-signing-key.js");
|
|
8
10
|
const webhook_endpoints_send_test_event_js_1 = require("../funcs/webhook-endpoints-send-test-event.js");
|
|
9
11
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
10
12
|
const fp_js_1 = require("../types/fp.js");
|
|
13
|
+
const operations_js_1 = require("../types/operations.js");
|
|
11
14
|
class WebhookEndpoints extends sdks_js_1.ClientSDK {
|
|
12
15
|
/**
|
|
13
16
|
* List the tenant's webhook endpoints.
|
|
@@ -54,6 +57,24 @@ class WebhookEndpoints extends sdks_js_1.ClientSDK {
|
|
|
54
57
|
async sendTestEvent(request, options) {
|
|
55
58
|
return (0, fp_js_1.unwrapAsync)((0, webhook_endpoints_send_test_event_js_1.webhookEndpointsSendTestEvent)(this, request, options));
|
|
56
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* List an endpoint's delivery attempts.
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* Every POST the endpoint received, newest first: the event id and type, which attempt it was, whether it was a replay, delivered or failed, the response code, why it failed and how long it took. Attempts are kept for 30 days, or your retention_days when that is shorter, and are deleted with the assessment they carried. Requires the webhooks scope. Read-only and safe to retry. The cursor is opaque and bound to your tenant and the endpoint; a tampered or expired cursor answers 400 invalid_cursor.
|
|
65
|
+
*/
|
|
66
|
+
async listDeliveries(request, options) {
|
|
67
|
+
return (0, operations_js_1.unwrapResultIterator)((0, webhook_endpoints_list_deliveries_js_1.webhookEndpointsListDeliveries)(this, request, options));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Send one delivery again.
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* Queues the event for the endpoint again: the same event id and body it received, with a new NR-Webhook-Timestamp and a signature from the endpoint's current signing key, retried like any other delivery and listed with replay: true. Your receiver deduplicates on the event id. The endpoint must be verified. Requires the webhooks scope. Not idempotent: each call, a retry included, sends the event again.
|
|
74
|
+
*/
|
|
75
|
+
async replayDelivery(request, options) {
|
|
76
|
+
return (0, fp_js_1.unwrapAsync)((0, webhook_endpoints_replay_delivery_js_1.webhookEndpointsReplayDelivery)(this, request, options));
|
|
77
|
+
}
|
|
57
78
|
}
|
|
58
79
|
exports.WebhookEndpoints = WebhookEndpoints;
|
|
59
80
|
//# sourceMappingURL=webhook-endpoints.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-endpoints.js","sourceRoot":"","sources":["../../../src/sdk/webhook-endpoints.ts"],"names":[],"mappings":";;;AAAA,sFAA8E;AAC9E,sFAA8E;AAC9E,kFAA0E;AAC1E,8GAAoG;AACpG,wGAA8F;AAC9F,4CAA2D;AAG3D,0CAA6C;
|
|
1
|
+
{"version":3,"file":"webhook-endpoints.js","sourceRoot":"","sources":["../../../src/sdk/webhook-endpoints.ts"],"names":[],"mappings":";;;AAAA,sFAA8E;AAC9E,sFAA8E;AAC9E,wGAA+F;AAC/F,kFAA0E;AAC1E,wGAA+F;AAC/F,8GAAoG;AACpG,wGAA8F;AAC9F,4CAA2D;AAG3D,0CAA6C;AAC7C,0DAA4E;AAE5E,sBAA8B,SAAQ,mBAAS;IAC7C;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAAwB,EAC0B;QAClD,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAoB,EACrC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAsC,EACtC,OAAwB,EAC2B;QACnD,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAsB,EACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAgD,EAChD,OAAwB,EACuC;QAC/D,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAsB,EACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAkD,EAClD,OAAwB,EAC6B;QACrD,OAAO,IAAA,mBAAW,EAAC,IAAA,0EAAgC,EACjD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAA+C,EAC/C,OAAwB,EAC0B;QAClD,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA6B,EAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAgD,EAChD,OAAwB,EAGxB;QACA,OAAO,IAAA,oCAAoB,EAAC,IAAA,qEAA8B,EACxD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAgD,EAChD,OAAwB,EAC2B;QACnD,OAAO,IAAA,mBAAW,EAAC,IAAA,qEAA8B,EAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
|
package/dist/commonjs/wait.d.ts
CHANGED
|
@@ -5,7 +5,11 @@ export declare const DEFAULT_WAIT_TIMEOUT_MS = 30000;
|
|
|
5
5
|
/** The shortest interval between polls when the server sends no Retry-After. */
|
|
6
6
|
export declare const MIN_POLL_INTERVAL_MS = 1000;
|
|
7
7
|
export type WaitOptions = {
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* Stop polling after this long. Default 30 000 ms. If the latest answer is
|
|
10
|
+
* partial by then, wait returns it (its status stays "partial"); if it is
|
|
11
|
+
* still pending, wait throws an APITimeoutError.
|
|
12
|
+
*/
|
|
9
13
|
timeoutMs?: number;
|
|
10
14
|
responseMode?: ResponseMode;
|
|
11
15
|
/** Abort the wait early. */
|
|
@@ -17,9 +21,11 @@ export type Getter = (assessmentId: string, options: {
|
|
|
17
21
|
timeoutMs?: number;
|
|
18
22
|
}) => Promise<WithMeta<Assessment>>;
|
|
19
23
|
/**
|
|
20
|
-
* Poll `get` until the assessment is
|
|
24
|
+
* Poll `get` until the assessment's status is "complete". Each poll waits the
|
|
21
25
|
* server's Retry-After, with a 1 second floor, and the whole wait is bounded
|
|
22
|
-
* by `timeoutMs` (default 30 s),
|
|
26
|
+
* by `timeoutMs` (default 30 s). When the time runs out, a partial answer is
|
|
27
|
+
* returned as it stands, with status "partial", and a pending one throws an
|
|
28
|
+
* APITimeoutError, because a pending assessment has no recommendation yet.
|
|
23
29
|
*/
|
|
24
30
|
export declare function waitForAssessment(get: Getter, assessmentId: string, options?: WaitOptions): Promise<WithMeta<Assessment>>;
|
|
25
31
|
//# sourceMappingURL=wait.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wait.d.ts","sourceRoot":"","sources":["../../src/wait.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAC9C,gFAAgF;AAChF,eAAO,MAAM,oBAAoB,OAAQ,CAAC;AAE1C,MAAM,MAAM,WAAW,GAAG;IACxB
|
|
1
|
+
{"version":3,"file":"wait.d.ts","sourceRoot":"","sources":["../../src/wait.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAC9C,gFAAgF;AAChF,eAAO,MAAM,oBAAoB,OAAQ,CAAC;AAE1C,MAAM,MAAM,WAAW,GAAG;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,4BAA4B;IAC5B,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,CACnB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE;IAAE,YAAY,CAAC,EAAE,YAAY,CAAC;IAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,KAC/E,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;AAoBnC;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAkC/B"}
|
package/dist/commonjs/wait.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MIN_POLL_INTERVAL_MS = exports.DEFAULT_WAIT_TIMEOUT_MS = void 0;
|
|
4
4
|
exports.waitForAssessment = waitForAssessment;
|
|
5
5
|
/**
|
|
6
|
-
* Poll an assessment until it is
|
|
6
|
+
* Poll an assessment until it is complete. Hand-written; not generated.
|
|
7
7
|
*/
|
|
8
8
|
const http_client_errors_js_1 = require("./models/errors/http-client-errors.js");
|
|
9
9
|
exports.DEFAULT_WAIT_TIMEOUT_MS = 30000;
|
|
@@ -27,9 +27,11 @@ function sleep(ms, signal) {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* Poll `get` until the assessment is
|
|
30
|
+
* Poll `get` until the assessment's status is "complete". Each poll waits the
|
|
31
31
|
* server's Retry-After, with a 1 second floor, and the whole wait is bounded
|
|
32
|
-
* by `timeoutMs` (default 30 s),
|
|
32
|
+
* by `timeoutMs` (default 30 s). When the time runs out, a partial answer is
|
|
33
|
+
* returned as it stands, with status "partial", and a pending one throws an
|
|
34
|
+
* APITimeoutError, because a pending assessment has no recommendation yet.
|
|
33
35
|
*/
|
|
34
36
|
async function waitForAssessment(get, assessmentId, options = {}) {
|
|
35
37
|
const timeoutMs = options.timeoutMs ?? exports.DEFAULT_WAIT_TIMEOUT_MS;
|
|
@@ -37,6 +39,12 @@ async function waitForAssessment(get, assessmentId, options = {}) {
|
|
|
37
39
|
throw new TypeError("timeoutMs must be a positive integer");
|
|
38
40
|
}
|
|
39
41
|
const deadline = Date.now() + timeoutMs;
|
|
42
|
+
let last;
|
|
43
|
+
const timedOut = () => {
|
|
44
|
+
if (last?.status === "partial")
|
|
45
|
+
return last;
|
|
46
|
+
throw new http_client_errors_js_1.RequestTimeoutError(`Timed out after ${timeoutMs} ms waiting for assessment ${assessmentId}`);
|
|
47
|
+
};
|
|
40
48
|
const getOptions = {};
|
|
41
49
|
if (options.responseMode !== undefined)
|
|
42
50
|
getOptions.responseMode = options.responseMode;
|
|
@@ -44,17 +52,25 @@ async function waitForAssessment(get, assessmentId, options = {}) {
|
|
|
44
52
|
getOptions.signal = options.signal;
|
|
45
53
|
for (;;) {
|
|
46
54
|
const requestRemaining = deadline - Date.now();
|
|
47
|
-
if (requestRemaining <= 0)
|
|
48
|
-
|
|
49
|
-
}
|
|
55
|
+
if (requestRemaining <= 0)
|
|
56
|
+
return timedOut();
|
|
50
57
|
getOptions.timeoutMs = requestRemaining;
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
let assessment;
|
|
59
|
+
try {
|
|
60
|
+
assessment = await get(assessmentId, getOptions);
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
// The last poll ran into the deadline: a partial answer still stands.
|
|
64
|
+
if (error instanceof http_client_errors_js_1.RequestTimeoutError && !options.signal?.aborted && last?.status === "partial")
|
|
65
|
+
return last;
|
|
66
|
+
throw error;
|
|
67
|
+
}
|
|
68
|
+
if (assessment.status === "complete")
|
|
53
69
|
return assessment;
|
|
70
|
+
last = assessment;
|
|
54
71
|
const remaining = deadline - Date.now();
|
|
55
|
-
if (remaining <= 0)
|
|
56
|
-
|
|
57
|
-
}
|
|
72
|
+
if (remaining <= 0)
|
|
73
|
+
return timedOut();
|
|
58
74
|
const retryAfter = assessment.meta.retryAfter;
|
|
59
75
|
const delay = Math.max(exports.MIN_POLL_INTERVAL_MS, (retryAfter ?? 0) * 1000);
|
|
60
76
|
await sleep(Math.min(delay, remaining), options.signal);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wait.js","sourceRoot":"","sources":["../../src/wait.ts"],"names":[],"mappings":";;;;AAAA;;GAEG;AACH,iFAA4E;AAK/D,QAAA,uBAAuB,GAAG,KAAM,CAAC;AAC9C,gFAAgF;AACnE,QAAA,oBAAoB,GAAG,IAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"wait.js","sourceRoot":"","sources":["../../src/wait.ts"],"names":[],"mappings":"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"}
|