@marinoscar/platform-contract 0.1.0-next.18 → 0.1.0-next.20
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 +14 -0
- package/README.md +5 -0
- package/dist/cjs/alerts/constants.d.ts +195 -0
- package/dist/cjs/alerts/constants.d.ts.map +1 -0
- package/dist/cjs/alerts/constants.js +165 -0
- package/dist/cjs/alerts/constants.js.map +1 -0
- package/dist/cjs/alerts/enum.d.ts +5 -0
- package/dist/cjs/alerts/enum.d.ts.map +1 -0
- package/dist/cjs/alerts/enum.js +9 -0
- package/dist/cjs/alerts/enum.js.map +1 -0
- package/dist/cjs/alerts/index.d.ts +5 -0
- package/dist/cjs/alerts/index.d.ts.map +1 -0
- package/dist/cjs/alerts/index.js +68 -0
- package/dist/cjs/alerts/index.js.map +1 -0
- package/dist/cjs/alerts/schemas.d.ts +351 -0
- package/dist/cjs/alerts/schemas.d.ts.map +1 -0
- package/dist/cjs/alerts/schemas.js +432 -0
- package/dist/cjs/alerts/schemas.js.map +1 -0
- package/dist/cjs/nodes/admin-schemas.d.ts +85 -1
- package/dist/cjs/nodes/admin-schemas.d.ts.map +1 -1
- package/dist/cjs/nodes/admin-schemas.js +55 -1
- package/dist/cjs/nodes/admin-schemas.js.map +1 -1
- package/dist/cjs/nodes/constants.d.ts +12 -0
- package/dist/cjs/nodes/constants.d.ts.map +1 -1
- package/dist/cjs/nodes/constants.js +13 -1
- package/dist/cjs/nodes/constants.js.map +1 -1
- package/dist/cjs/nodes/index.d.ts +5 -5
- package/dist/cjs/nodes/index.d.ts.map +1 -1
- package/dist/cjs/nodes/index.js +14 -1
- package/dist/cjs/nodes/index.js.map +1 -1
- package/dist/cjs/nodes/schemas.d.ts +178 -0
- package/dist/cjs/nodes/schemas.d.ts.map +1 -1
- package/dist/cjs/nodes/schemas.js +149 -1
- package/dist/cjs/nodes/schemas.js.map +1 -1
- package/dist/cjs/settings/index.d.ts +1 -1
- package/dist/cjs/settings/index.d.ts.map +1 -1
- package/dist/cjs/settings/index.js +3 -2
- package/dist/cjs/settings/index.js.map +1 -1
- package/dist/cjs/settings/schemas.d.ts +11 -0
- package/dist/cjs/settings/schemas.d.ts.map +1 -1
- package/dist/cjs/settings/schemas.js +20 -0
- package/dist/cjs/settings/schemas.js.map +1 -1
- package/dist/cjs/telemetry/constants.d.ts.map +1 -1
- package/dist/cjs/telemetry/constants.js +6 -0
- package/dist/cjs/telemetry/constants.js.map +1 -1
- package/dist/cjs/telemetry/dashboard.d.ts +5 -5
- package/dist/cjs/telemetry/presentation.d.ts +5 -5
- package/dist/cjs/telemetry/stack.d.ts +2 -2
- package/dist/cjs/timezone/constants.d.ts +16 -0
- package/dist/cjs/timezone/constants.d.ts.map +1 -0
- package/dist/cjs/timezone/constants.js +19 -0
- package/dist/cjs/timezone/constants.js.map +1 -0
- package/dist/cjs/timezone/index.d.ts +15 -0
- package/dist/cjs/timezone/index.d.ts.map +1 -0
- package/dist/cjs/timezone/index.js +34 -0
- package/dist/cjs/timezone/index.js.map +1 -0
- package/dist/cjs/timezone/schemas.d.ts +111 -0
- package/dist/cjs/timezone/schemas.d.ts.map +1 -0
- package/dist/cjs/timezone/schemas.js +194 -0
- package/dist/cjs/timezone/schemas.js.map +1 -0
- package/dist/cjs/webhooks/constants.d.ts +154 -0
- package/dist/cjs/webhooks/constants.d.ts.map +1 -0
- package/dist/cjs/webhooks/constants.js +136 -0
- package/dist/cjs/webhooks/constants.js.map +1 -0
- package/dist/cjs/webhooks/enum.d.ts +5 -0
- package/dist/cjs/webhooks/enum.d.ts.map +1 -0
- package/dist/cjs/webhooks/enum.js +9 -0
- package/dist/cjs/webhooks/enum.js.map +1 -0
- package/dist/cjs/webhooks/index.d.ts +7 -0
- package/dist/cjs/webhooks/index.d.ts.map +1 -0
- package/dist/cjs/webhooks/index.js +48 -0
- package/dist/cjs/webhooks/index.js.map +1 -0
- package/dist/cjs/webhooks/schemas.d.ts +288 -0
- package/dist/cjs/webhooks/schemas.d.ts.map +1 -0
- package/dist/cjs/webhooks/schemas.js +295 -0
- package/dist/cjs/webhooks/schemas.js.map +1 -0
- package/dist/cjs/webhooks/signature.d.ts +54 -0
- package/dist/cjs/webhooks/signature.d.ts.map +1 -0
- package/dist/cjs/webhooks/signature.js +97 -0
- package/dist/cjs/webhooks/signature.js.map +1 -0
- package/dist/esm/alerts/constants.d.ts +195 -0
- package/dist/esm/alerts/constants.d.ts.map +1 -0
- package/dist/esm/alerts/constants.js +162 -0
- package/dist/esm/alerts/constants.js.map +1 -0
- package/dist/esm/alerts/enum.d.ts +5 -0
- package/dist/esm/alerts/enum.d.ts.map +1 -0
- package/dist/esm/alerts/enum.js +6 -0
- package/dist/esm/alerts/enum.js.map +1 -0
- package/dist/esm/alerts/index.d.ts +5 -0
- package/dist/esm/alerts/index.d.ts.map +1 -0
- package/dist/esm/alerts/index.js +8 -0
- package/dist/esm/alerts/index.js.map +1 -0
- package/dist/esm/alerts/schemas.d.ts +351 -0
- package/dist/esm/alerts/schemas.d.ts.map +1 -0
- package/dist/esm/alerts/schemas.js +429 -0
- package/dist/esm/alerts/schemas.js.map +1 -0
- package/dist/esm/nodes/admin-schemas.d.ts +85 -1
- package/dist/esm/nodes/admin-schemas.d.ts.map +1 -1
- package/dist/esm/nodes/admin-schemas.js +55 -1
- package/dist/esm/nodes/admin-schemas.js.map +1 -1
- package/dist/esm/nodes/constants.d.ts +12 -0
- package/dist/esm/nodes/constants.d.ts.map +1 -1
- package/dist/esm/nodes/constants.js +12 -0
- package/dist/esm/nodes/constants.js.map +1 -1
- package/dist/esm/nodes/index.d.ts +5 -5
- package/dist/esm/nodes/index.d.ts.map +1 -1
- package/dist/esm/nodes/index.js +3 -3
- package/dist/esm/nodes/index.js.map +1 -1
- package/dist/esm/nodes/schemas.d.ts +178 -0
- package/dist/esm/nodes/schemas.d.ts.map +1 -1
- package/dist/esm/nodes/schemas.js +149 -1
- package/dist/esm/nodes/schemas.js.map +1 -1
- package/dist/esm/settings/index.d.ts +1 -1
- package/dist/esm/settings/index.d.ts.map +1 -1
- package/dist/esm/settings/index.js +1 -1
- package/dist/esm/settings/index.js.map +1 -1
- package/dist/esm/settings/schemas.d.ts +11 -0
- package/dist/esm/settings/schemas.d.ts.map +1 -1
- package/dist/esm/settings/schemas.js +19 -0
- package/dist/esm/settings/schemas.js.map +1 -1
- package/dist/esm/telemetry/constants.d.ts.map +1 -1
- package/dist/esm/telemetry/constants.js +6 -0
- package/dist/esm/telemetry/constants.js.map +1 -1
- package/dist/esm/telemetry/dashboard.d.ts +5 -5
- package/dist/esm/telemetry/presentation.d.ts +5 -5
- package/dist/esm/telemetry/stack.d.ts +2 -2
- package/dist/esm/timezone/constants.d.ts +16 -0
- package/dist/esm/timezone/constants.d.ts.map +1 -0
- package/dist/esm/timezone/constants.js +16 -0
- package/dist/esm/timezone/constants.js.map +1 -0
- package/dist/esm/timezone/index.d.ts +15 -0
- package/dist/esm/timezone/index.d.ts.map +1 -0
- package/dist/esm/timezone/index.js +15 -0
- package/dist/esm/timezone/index.js.map +1 -0
- package/dist/esm/timezone/schemas.d.ts +111 -0
- package/dist/esm/timezone/schemas.d.ts.map +1 -0
- package/dist/esm/timezone/schemas.js +185 -0
- package/dist/esm/timezone/schemas.js.map +1 -0
- package/dist/esm/webhooks/constants.d.ts +154 -0
- package/dist/esm/webhooks/constants.d.ts.map +1 -0
- package/dist/esm/webhooks/constants.js +133 -0
- package/dist/esm/webhooks/constants.js.map +1 -0
- package/dist/esm/webhooks/enum.d.ts +5 -0
- package/dist/esm/webhooks/enum.d.ts.map +1 -0
- package/dist/esm/webhooks/enum.js +6 -0
- package/dist/esm/webhooks/enum.js.map +1 -0
- package/dist/esm/webhooks/index.d.ts +7 -0
- package/dist/esm/webhooks/index.d.ts.map +1 -0
- package/dist/esm/webhooks/index.js +8 -0
- package/dist/esm/webhooks/index.js.map +1 -0
- package/dist/esm/webhooks/schemas.d.ts +288 -0
- package/dist/esm/webhooks/schemas.d.ts.map +1 -0
- package/dist/esm/webhooks/schemas.js +292 -0
- package/dist/esm/webhooks/schemas.js.map +1 -0
- package/dist/esm/webhooks/signature.d.ts +54 -0
- package/dist/esm/webhooks/signature.d.ts.map +1 -0
- package/dist/esm/webhooks/signature.js +93 -0
- package/dist/esm/webhooks/signature.js.map +1 -0
- package/package.json +31 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// `@marinoscar/platform-contract/webhooks`: the webhooks slice's wire shapes
|
|
3
|
+
// (issue #1046): endpoints, deliveries, the event catalog, the envelope, the
|
|
4
|
+
// header names, error codes and the signing helpers. Documented in
|
|
5
|
+
// ./README.md. Explicit named exports only.
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.verifyWebhookSignature = exports.signWebhookPayload = exports.webhookTestResponseSchema = exports.webhookScopeSchema = exports.webhookEventKeySchema = exports.webhookEventCatalogSchema = exports.webhookEventCatalogEntrySchema = exports.webhookEnvelopeSchema = exports.webhookEndpointSchema = exports.webhookEndpointListSchema = exports.webhookEndpointCreatedSchema = exports.webhookDeliveryStatusSchema = exports.webhookDeliverySchema = exports.webhookDeliveryListSchema = exports.webhookDeliveryListQuerySchema = exports.webhookDeliveryDetailSchema = exports.updateWebhookEndpointSchema = exports.rotateWebhookSecretResponseSchema = exports.createWebhookEndpointSchema = exports.WEBHOOK_URL_MAX = exports.WEBHOOK_SIGNATURE_VERSION = exports.WEBHOOK_SECRET_PREFIX = exports.WEBHOOK_SCOPES = exports.WEBHOOK_PERMISSIONS = exports.WEBHOOK_NAME_MAX = exports.WEBHOOK_HEADERS = exports.WEBHOOK_EVENT_KEYS_MAX = exports.WEBHOOK_EVENT_KEY_REGEX_SOURCE = exports.WEBHOOK_EVENT_KEY_PATTERN = exports.WEBHOOK_EVENT_KEY_MAX = exports.WEBHOOK_ERROR_CODES = exports.WEBHOOK_DESCRIPTION_MAX = exports.WEBHOOK_DELIVERY_STATUSES = exports.WEBHOOK_DELIVERIES_PAGE_SIZE_MAX = exports.WEBHOOK_DELIVERIES_PAGE_SIZE_DEFAULT = exports.WEBHOOK_DEFAULT_TOLERANCE_SECONDS = exports.WEBHOOK_API_VERSION = void 0;
|
|
8
|
+
var constants_js_1 = require("./constants.js");
|
|
9
|
+
Object.defineProperty(exports, "WEBHOOK_API_VERSION", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_API_VERSION; } });
|
|
10
|
+
Object.defineProperty(exports, "WEBHOOK_DEFAULT_TOLERANCE_SECONDS", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_DEFAULT_TOLERANCE_SECONDS; } });
|
|
11
|
+
Object.defineProperty(exports, "WEBHOOK_DELIVERIES_PAGE_SIZE_DEFAULT", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_DELIVERIES_PAGE_SIZE_DEFAULT; } });
|
|
12
|
+
Object.defineProperty(exports, "WEBHOOK_DELIVERIES_PAGE_SIZE_MAX", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_DELIVERIES_PAGE_SIZE_MAX; } });
|
|
13
|
+
Object.defineProperty(exports, "WEBHOOK_DELIVERY_STATUSES", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_DELIVERY_STATUSES; } });
|
|
14
|
+
Object.defineProperty(exports, "WEBHOOK_DESCRIPTION_MAX", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_DESCRIPTION_MAX; } });
|
|
15
|
+
Object.defineProperty(exports, "WEBHOOK_ERROR_CODES", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_ERROR_CODES; } });
|
|
16
|
+
Object.defineProperty(exports, "WEBHOOK_EVENT_KEY_MAX", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_EVENT_KEY_MAX; } });
|
|
17
|
+
Object.defineProperty(exports, "WEBHOOK_EVENT_KEY_PATTERN", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_EVENT_KEY_PATTERN; } });
|
|
18
|
+
Object.defineProperty(exports, "WEBHOOK_EVENT_KEY_REGEX_SOURCE", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_EVENT_KEY_REGEX_SOURCE; } });
|
|
19
|
+
Object.defineProperty(exports, "WEBHOOK_EVENT_KEYS_MAX", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_EVENT_KEYS_MAX; } });
|
|
20
|
+
Object.defineProperty(exports, "WEBHOOK_HEADERS", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_HEADERS; } });
|
|
21
|
+
Object.defineProperty(exports, "WEBHOOK_NAME_MAX", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_NAME_MAX; } });
|
|
22
|
+
Object.defineProperty(exports, "WEBHOOK_PERMISSIONS", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_PERMISSIONS; } });
|
|
23
|
+
Object.defineProperty(exports, "WEBHOOK_SCOPES", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_SCOPES; } });
|
|
24
|
+
Object.defineProperty(exports, "WEBHOOK_SECRET_PREFIX", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_SECRET_PREFIX; } });
|
|
25
|
+
Object.defineProperty(exports, "WEBHOOK_SIGNATURE_VERSION", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_SIGNATURE_VERSION; } });
|
|
26
|
+
Object.defineProperty(exports, "WEBHOOK_URL_MAX", { enumerable: true, get: function () { return constants_js_1.WEBHOOK_URL_MAX; } });
|
|
27
|
+
var schemas_js_1 = require("./schemas.js");
|
|
28
|
+
Object.defineProperty(exports, "createWebhookEndpointSchema", { enumerable: true, get: function () { return schemas_js_1.createWebhookEndpointSchema; } });
|
|
29
|
+
Object.defineProperty(exports, "rotateWebhookSecretResponseSchema", { enumerable: true, get: function () { return schemas_js_1.rotateWebhookSecretResponseSchema; } });
|
|
30
|
+
Object.defineProperty(exports, "updateWebhookEndpointSchema", { enumerable: true, get: function () { return schemas_js_1.updateWebhookEndpointSchema; } });
|
|
31
|
+
Object.defineProperty(exports, "webhookDeliveryDetailSchema", { enumerable: true, get: function () { return schemas_js_1.webhookDeliveryDetailSchema; } });
|
|
32
|
+
Object.defineProperty(exports, "webhookDeliveryListQuerySchema", { enumerable: true, get: function () { return schemas_js_1.webhookDeliveryListQuerySchema; } });
|
|
33
|
+
Object.defineProperty(exports, "webhookDeliveryListSchema", { enumerable: true, get: function () { return schemas_js_1.webhookDeliveryListSchema; } });
|
|
34
|
+
Object.defineProperty(exports, "webhookDeliverySchema", { enumerable: true, get: function () { return schemas_js_1.webhookDeliverySchema; } });
|
|
35
|
+
Object.defineProperty(exports, "webhookDeliveryStatusSchema", { enumerable: true, get: function () { return schemas_js_1.webhookDeliveryStatusSchema; } });
|
|
36
|
+
Object.defineProperty(exports, "webhookEndpointCreatedSchema", { enumerable: true, get: function () { return schemas_js_1.webhookEndpointCreatedSchema; } });
|
|
37
|
+
Object.defineProperty(exports, "webhookEndpointListSchema", { enumerable: true, get: function () { return schemas_js_1.webhookEndpointListSchema; } });
|
|
38
|
+
Object.defineProperty(exports, "webhookEndpointSchema", { enumerable: true, get: function () { return schemas_js_1.webhookEndpointSchema; } });
|
|
39
|
+
Object.defineProperty(exports, "webhookEnvelopeSchema", { enumerable: true, get: function () { return schemas_js_1.webhookEnvelopeSchema; } });
|
|
40
|
+
Object.defineProperty(exports, "webhookEventCatalogEntrySchema", { enumerable: true, get: function () { return schemas_js_1.webhookEventCatalogEntrySchema; } });
|
|
41
|
+
Object.defineProperty(exports, "webhookEventCatalogSchema", { enumerable: true, get: function () { return schemas_js_1.webhookEventCatalogSchema; } });
|
|
42
|
+
Object.defineProperty(exports, "webhookEventKeySchema", { enumerable: true, get: function () { return schemas_js_1.webhookEventKeySchema; } });
|
|
43
|
+
Object.defineProperty(exports, "webhookScopeSchema", { enumerable: true, get: function () { return schemas_js_1.webhookScopeSchema; } });
|
|
44
|
+
Object.defineProperty(exports, "webhookTestResponseSchema", { enumerable: true, get: function () { return schemas_js_1.webhookTestResponseSchema; } });
|
|
45
|
+
var signature_js_1 = require("./signature.js");
|
|
46
|
+
Object.defineProperty(exports, "signWebhookPayload", { enumerable: true, get: function () { return signature_js_1.signWebhookPayload; } });
|
|
47
|
+
Object.defineProperty(exports, "verifyWebhookSignature", { enumerable: true, get: function () { return signature_js_1.verifyWebhookSignature; } });
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/webhooks/index.ts"],"names":[],"mappings":";AAAA,6EAA6E;AAC7E,6EAA6E;AAC7E,mEAAmE;AACnE,4CAA4C;;;AAE5C,+CAmBwB;AAlBtB,mHAAA,mBAAmB,OAAA;AACnB,iIAAA,iCAAiC,OAAA;AACjC,oIAAA,oCAAoC,OAAA;AACpC,gIAAA,gCAAgC,OAAA;AAChC,yHAAA,yBAAyB,OAAA;AACzB,uHAAA,uBAAuB,OAAA;AACvB,mHAAA,mBAAmB,OAAA;AACnB,qHAAA,qBAAqB,OAAA;AACrB,yHAAA,yBAAyB,OAAA;AACzB,8HAAA,8BAA8B,OAAA;AAC9B,sHAAA,sBAAsB,OAAA;AACtB,+GAAA,eAAe,OAAA;AACf,gHAAA,gBAAgB,OAAA;AAChB,mHAAA,mBAAmB,OAAA;AACnB,8GAAA,cAAc,OAAA;AACd,qHAAA,qBAAqB,OAAA;AACrB,yHAAA,yBAAyB,OAAA;AACzB,+GAAA,eAAe,OAAA;AAGjB,2CAkBsB;AAjBpB,yHAAA,2BAA2B,OAAA;AAC3B,+HAAA,iCAAiC,OAAA;AACjC,yHAAA,2BAA2B,OAAA;AAC3B,yHAAA,2BAA2B,OAAA;AAC3B,4HAAA,8BAA8B,OAAA;AAC9B,uHAAA,yBAAyB,OAAA;AACzB,mHAAA,qBAAqB,OAAA;AACrB,yHAAA,2BAA2B,OAAA;AAC3B,0HAAA,4BAA4B,OAAA;AAC5B,uHAAA,yBAAyB,OAAA;AACzB,mHAAA,qBAAqB,OAAA;AACrB,mHAAA,qBAAqB,OAAA;AACrB,4HAAA,8BAA8B,OAAA;AAC9B,uHAAA,yBAAyB,OAAA;AACzB,mHAAA,qBAAqB,OAAA;AACrB,gHAAA,kBAAkB,OAAA;AAClB,uHAAA,yBAAyB,OAAA;AAmB3B,+CAA4E;AAAnE,kHAAA,kBAAkB,OAAA;AAAE,sHAAA,sBAAsB,OAAA"}
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* One subscription entry: an exact key, `group.*` or `*`.
|
|
4
|
+
*
|
|
5
|
+
* @stability experimental
|
|
6
|
+
*/
|
|
7
|
+
export declare const webhookEventKeySchema: z.ZodString;
|
|
8
|
+
/** One of `user`, `org`, `system`. @stability experimental */
|
|
9
|
+
export declare const webhookScopeSchema: z.ZodEnum<import("./constants.js").WebhookEnumEntries<"system" | "org" | "user">>;
|
|
10
|
+
/** One delivery status. @stability experimental */
|
|
11
|
+
export declare const webhookDeliveryStatusSchema: z.ZodEnum<import("./constants.js").WebhookEnumEntries<"pending" | "failed" | "succeeded" | "dead" | "delivering">>;
|
|
12
|
+
/**
|
|
13
|
+
* A webhook endpoint as the API returns it. Never carries the secret.
|
|
14
|
+
*
|
|
15
|
+
* @stability experimental
|
|
16
|
+
*/
|
|
17
|
+
export declare const webhookEndpointSchema: z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
scope: z.ZodEnum<import("./constants.js").WebhookEnumEntries<"system" | "org" | "user">>;
|
|
20
|
+
orgId: z.ZodNullable<z.ZodString>;
|
|
21
|
+
ownerUserId: z.ZodNullable<z.ZodString>;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
description: z.ZodNullable<z.ZodString>;
|
|
24
|
+
url: z.ZodString;
|
|
25
|
+
eventKeys: z.ZodArray<z.ZodString>;
|
|
26
|
+
enabled: z.ZodBoolean;
|
|
27
|
+
disabledReason: z.ZodNullable<z.ZodString>;
|
|
28
|
+
consecutiveFailures: z.ZodNumber;
|
|
29
|
+
secretVersion: z.ZodNumber;
|
|
30
|
+
previousSecretUntil: z.ZodNullable<z.ZodString>;
|
|
31
|
+
lastDeliveryAt: z.ZodNullable<z.ZodString>;
|
|
32
|
+
lastSuccessAt: z.ZodNullable<z.ZodString>;
|
|
33
|
+
createdAt: z.ZodString;
|
|
34
|
+
updatedAt: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
/** A webhook endpoint. @stability experimental */
|
|
37
|
+
export type WebhookEndpoint = z.infer<typeof webhookEndpointSchema>;
|
|
38
|
+
/**
|
|
39
|
+
* `POST` body to create an endpoint.
|
|
40
|
+
*
|
|
41
|
+
* @stability experimental
|
|
42
|
+
*/
|
|
43
|
+
export declare const createWebhookEndpointSchema: z.ZodObject<{
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
url: z.ZodString;
|
|
47
|
+
eventKeys: z.ZodArray<z.ZodString>;
|
|
48
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
/** Input of the create body (before defaults). @stability experimental */
|
|
51
|
+
export type CreateWebhookEndpointInput = z.input<typeof createWebhookEndpointSchema>;
|
|
52
|
+
/** The parsed create body. @stability experimental */
|
|
53
|
+
export type CreateWebhookEndpoint = z.output<typeof createWebhookEndpointSchema>;
|
|
54
|
+
/**
|
|
55
|
+
* `PATCH` body: every create field is optional. `enabled: true` also clears a
|
|
56
|
+
* platform-set `disabledReason` and the failure streak.
|
|
57
|
+
*
|
|
58
|
+
* @stability experimental
|
|
59
|
+
*/
|
|
60
|
+
export declare const updateWebhookEndpointSchema: z.ZodObject<{
|
|
61
|
+
name: z.ZodOptional<z.ZodString>;
|
|
62
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
url: z.ZodOptional<z.ZodString>;
|
|
64
|
+
eventKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
/** The update body. @stability experimental */
|
|
68
|
+
export type UpdateWebhookEndpoint = z.infer<typeof updateWebhookEndpointSchema>;
|
|
69
|
+
/**
|
|
70
|
+
* The endpoint list.
|
|
71
|
+
*
|
|
72
|
+
* @stability experimental
|
|
73
|
+
*/
|
|
74
|
+
export declare const webhookEndpointListSchema: z.ZodObject<{
|
|
75
|
+
items: z.ZodArray<z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
scope: z.ZodEnum<import("./constants.js").WebhookEnumEntries<"system" | "org" | "user">>;
|
|
78
|
+
orgId: z.ZodNullable<z.ZodString>;
|
|
79
|
+
ownerUserId: z.ZodNullable<z.ZodString>;
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
description: z.ZodNullable<z.ZodString>;
|
|
82
|
+
url: z.ZodString;
|
|
83
|
+
eventKeys: z.ZodArray<z.ZodString>;
|
|
84
|
+
enabled: z.ZodBoolean;
|
|
85
|
+
disabledReason: z.ZodNullable<z.ZodString>;
|
|
86
|
+
consecutiveFailures: z.ZodNumber;
|
|
87
|
+
secretVersion: z.ZodNumber;
|
|
88
|
+
previousSecretUntil: z.ZodNullable<z.ZodString>;
|
|
89
|
+
lastDeliveryAt: z.ZodNullable<z.ZodString>;
|
|
90
|
+
lastSuccessAt: z.ZodNullable<z.ZodString>;
|
|
91
|
+
createdAt: z.ZodString;
|
|
92
|
+
updatedAt: z.ZodString;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
/** The endpoint list. @stability experimental */
|
|
96
|
+
export type WebhookEndpointList = z.infer<typeof webhookEndpointListSchema>;
|
|
97
|
+
/**
|
|
98
|
+
* The create response: the endpoint and its signing secret, shown once.
|
|
99
|
+
*
|
|
100
|
+
* @stability experimental
|
|
101
|
+
*/
|
|
102
|
+
export declare const webhookEndpointCreatedSchema: z.ZodObject<{
|
|
103
|
+
endpoint: z.ZodObject<{
|
|
104
|
+
id: z.ZodString;
|
|
105
|
+
scope: z.ZodEnum<import("./constants.js").WebhookEnumEntries<"system" | "org" | "user">>;
|
|
106
|
+
orgId: z.ZodNullable<z.ZodString>;
|
|
107
|
+
ownerUserId: z.ZodNullable<z.ZodString>;
|
|
108
|
+
name: z.ZodString;
|
|
109
|
+
description: z.ZodNullable<z.ZodString>;
|
|
110
|
+
url: z.ZodString;
|
|
111
|
+
eventKeys: z.ZodArray<z.ZodString>;
|
|
112
|
+
enabled: z.ZodBoolean;
|
|
113
|
+
disabledReason: z.ZodNullable<z.ZodString>;
|
|
114
|
+
consecutiveFailures: z.ZodNumber;
|
|
115
|
+
secretVersion: z.ZodNumber;
|
|
116
|
+
previousSecretUntil: z.ZodNullable<z.ZodString>;
|
|
117
|
+
lastDeliveryAt: z.ZodNullable<z.ZodString>;
|
|
118
|
+
lastSuccessAt: z.ZodNullable<z.ZodString>;
|
|
119
|
+
createdAt: z.ZodString;
|
|
120
|
+
updatedAt: z.ZodString;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
secret: z.ZodString;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
/** The create response. @stability experimental */
|
|
125
|
+
export type WebhookEndpointCreated = z.infer<typeof webhookEndpointCreatedSchema>;
|
|
126
|
+
/**
|
|
127
|
+
* The rotate response: the new secret, shown once, and when the previous one
|
|
128
|
+
* stops being accepted.
|
|
129
|
+
*
|
|
130
|
+
* @stability experimental
|
|
131
|
+
*/
|
|
132
|
+
export declare const rotateWebhookSecretResponseSchema: z.ZodObject<{
|
|
133
|
+
secret: z.ZodString;
|
|
134
|
+
secretVersion: z.ZodNumber;
|
|
135
|
+
previousSecretValidUntil: z.ZodNullable<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
/** The rotate response. @stability experimental */
|
|
138
|
+
export type RotateWebhookSecretResponse = z.infer<typeof rotateWebhookSecretResponseSchema>;
|
|
139
|
+
/**
|
|
140
|
+
* One delivery row (no body).
|
|
141
|
+
*
|
|
142
|
+
* @stability experimental
|
|
143
|
+
*/
|
|
144
|
+
export declare const webhookDeliverySchema: z.ZodObject<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
endpointId: z.ZodString;
|
|
147
|
+
eventKey: z.ZodString;
|
|
148
|
+
eventId: z.ZodString;
|
|
149
|
+
status: z.ZodEnum<import("./constants.js").WebhookEnumEntries<"pending" | "failed" | "succeeded" | "dead" | "delivering">>;
|
|
150
|
+
attempt: z.ZodNumber;
|
|
151
|
+
responseStatus: z.ZodNullable<z.ZodNumber>;
|
|
152
|
+
responseSnippet: z.ZodNullable<z.ZodString>;
|
|
153
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
154
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
155
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
156
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
157
|
+
createdAt: z.ZodString;
|
|
158
|
+
}, z.core.$strip>;
|
|
159
|
+
/** One delivery. @stability experimental */
|
|
160
|
+
export type WebhookDelivery = z.infer<typeof webhookDeliverySchema>;
|
|
161
|
+
/**
|
|
162
|
+
* One delivery with the body sent and the request headers (the signature is
|
|
163
|
+
* never included).
|
|
164
|
+
*
|
|
165
|
+
* @stability experimental
|
|
166
|
+
*/
|
|
167
|
+
export declare const webhookDeliveryDetailSchema: z.ZodObject<{
|
|
168
|
+
id: z.ZodString;
|
|
169
|
+
endpointId: z.ZodString;
|
|
170
|
+
eventKey: z.ZodString;
|
|
171
|
+
eventId: z.ZodString;
|
|
172
|
+
status: z.ZodEnum<import("./constants.js").WebhookEnumEntries<"pending" | "failed" | "succeeded" | "dead" | "delivering">>;
|
|
173
|
+
attempt: z.ZodNumber;
|
|
174
|
+
responseStatus: z.ZodNullable<z.ZodNumber>;
|
|
175
|
+
responseSnippet: z.ZodNullable<z.ZodString>;
|
|
176
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
177
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
178
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
179
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
180
|
+
createdAt: z.ZodString;
|
|
181
|
+
payload: z.ZodUnknown;
|
|
182
|
+
requestHeaders: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
/** A delivery with its payload. @stability experimental */
|
|
185
|
+
export type WebhookDeliveryDetail = z.infer<typeof webhookDeliveryDetailSchema>;
|
|
186
|
+
/**
|
|
187
|
+
* A page of deliveries.
|
|
188
|
+
*
|
|
189
|
+
* @stability experimental
|
|
190
|
+
*/
|
|
191
|
+
export declare const webhookDeliveryListSchema: z.ZodObject<{
|
|
192
|
+
items: z.ZodArray<z.ZodObject<{
|
|
193
|
+
id: z.ZodString;
|
|
194
|
+
endpointId: z.ZodString;
|
|
195
|
+
eventKey: z.ZodString;
|
|
196
|
+
eventId: z.ZodString;
|
|
197
|
+
status: z.ZodEnum<import("./constants.js").WebhookEnumEntries<"pending" | "failed" | "succeeded" | "dead" | "delivering">>;
|
|
198
|
+
attempt: z.ZodNumber;
|
|
199
|
+
responseStatus: z.ZodNullable<z.ZodNumber>;
|
|
200
|
+
responseSnippet: z.ZodNullable<z.ZodString>;
|
|
201
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
202
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
203
|
+
nextAttemptAt: z.ZodNullable<z.ZodString>;
|
|
204
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
205
|
+
createdAt: z.ZodString;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
total: z.ZodNumber;
|
|
208
|
+
page: z.ZodNumber;
|
|
209
|
+
pageSize: z.ZodNumber;
|
|
210
|
+
totalPages: z.ZodNumber;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
/** A page of deliveries. @stability experimental */
|
|
213
|
+
export type WebhookDeliveryList = z.infer<typeof webhookDeliveryListSchema>;
|
|
214
|
+
/**
|
|
215
|
+
* `GET .../deliveries` query.
|
|
216
|
+
*
|
|
217
|
+
* @stability experimental
|
|
218
|
+
*/
|
|
219
|
+
export declare const webhookDeliveryListQuerySchema: z.ZodObject<{
|
|
220
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
221
|
+
pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
222
|
+
status: z.ZodOptional<z.ZodEnum<import("./constants.js").WebhookEnumEntries<"pending" | "failed" | "succeeded" | "dead" | "delivering">>>;
|
|
223
|
+
eventKey: z.ZodOptional<z.ZodString>;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
/** The parsed delivery list query. @stability experimental */
|
|
226
|
+
export type WebhookDeliveryListQuery = z.infer<typeof webhookDeliveryListQuerySchema>;
|
|
227
|
+
/**
|
|
228
|
+
* `POST .../test` response: the id of the queued ping delivery.
|
|
229
|
+
*
|
|
230
|
+
* @stability experimental
|
|
231
|
+
*/
|
|
232
|
+
export declare const webhookTestResponseSchema: z.ZodObject<{
|
|
233
|
+
deliveryId: z.ZodString;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
/** The test response. @stability experimental */
|
|
236
|
+
export type WebhookTestResponse = z.infer<typeof webhookTestResponseSchema>;
|
|
237
|
+
/**
|
|
238
|
+
* One event a caller may subscribe to.
|
|
239
|
+
*
|
|
240
|
+
* @stability experimental
|
|
241
|
+
*/
|
|
242
|
+
export declare const webhookEventCatalogEntrySchema: z.ZodObject<{
|
|
243
|
+
key: z.ZodString;
|
|
244
|
+
label: z.ZodString;
|
|
245
|
+
description: z.ZodString;
|
|
246
|
+
group: z.ZodString;
|
|
247
|
+
audience: z.ZodEnum<import("./constants.js").WebhookEnumEntries<"system" | "org" | "user">>;
|
|
248
|
+
jsonSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
249
|
+
example: z.ZodOptional<z.ZodUnknown>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
/** One catalog entry. @stability experimental */
|
|
252
|
+
export type WebhookEventCatalogEntry = z.infer<typeof webhookEventCatalogEntrySchema>;
|
|
253
|
+
/**
|
|
254
|
+
* `GET .../events`: the catalog, filtered to what the caller may subscribe to.
|
|
255
|
+
*
|
|
256
|
+
* @stability experimental
|
|
257
|
+
*/
|
|
258
|
+
export declare const webhookEventCatalogSchema: z.ZodObject<{
|
|
259
|
+
items: z.ZodArray<z.ZodObject<{
|
|
260
|
+
key: z.ZodString;
|
|
261
|
+
label: z.ZodString;
|
|
262
|
+
description: z.ZodString;
|
|
263
|
+
group: z.ZodString;
|
|
264
|
+
audience: z.ZodEnum<import("./constants.js").WebhookEnumEntries<"system" | "org" | "user">>;
|
|
265
|
+
jsonSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
266
|
+
example: z.ZodOptional<z.ZodUnknown>;
|
|
267
|
+
}, z.core.$strip>>;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
/** The event catalog. @stability experimental */
|
|
270
|
+
export type WebhookEventCatalog = z.infer<typeof webhookEventCatalogSchema>;
|
|
271
|
+
/**
|
|
272
|
+
* The JSON body a receiver gets.
|
|
273
|
+
*
|
|
274
|
+
* @stability experimental
|
|
275
|
+
*/
|
|
276
|
+
export declare const webhookEnvelopeSchema: z.ZodObject<{
|
|
277
|
+
id: z.ZodString;
|
|
278
|
+
type: z.ZodString;
|
|
279
|
+
createdAt: z.ZodString;
|
|
280
|
+
apiVersion: z.ZodString;
|
|
281
|
+
org: z.ZodNullable<z.ZodObject<{
|
|
282
|
+
id: z.ZodString;
|
|
283
|
+
}, z.core.$strip>>;
|
|
284
|
+
data: z.ZodUnknown;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
/** The delivered body. @stability experimental */
|
|
287
|
+
export type WebhookEnvelope = z.infer<typeof webhookEnvelopeSchema>;
|
|
288
|
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tF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;iBAGpC,CAAC;AAEH,iDAAiD;AACjD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;iBAkBhC,CAAC;AAEH,kDAAkD;AAClD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// =============================================================================
|
|
3
|
+
// The webhooks slice's wire shapes (issue #1046)
|
|
4
|
+
// =============================================================================
|
|
5
|
+
//
|
|
6
|
+
// Endpoints, deliveries, the event catalog and the envelope a receiver gets.
|
|
7
|
+
// No schema here carries a signing secret except the two responses that show
|
|
8
|
+
// it once (`webhookEndpointCreatedSchema`, `rotateWebhookSecretResponseSchema`).
|
|
9
|
+
// Dates are ISO 8601 strings.
|
|
10
|
+
// =============================================================================
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.webhookEnvelopeSchema = exports.webhookEventCatalogSchema = exports.webhookEventCatalogEntrySchema = exports.webhookTestResponseSchema = exports.webhookDeliveryListQuerySchema = exports.webhookDeliveryListSchema = exports.webhookDeliveryDetailSchema = exports.webhookDeliverySchema = exports.rotateWebhookSecretResponseSchema = exports.webhookEndpointCreatedSchema = exports.webhookEndpointListSchema = exports.updateWebhookEndpointSchema = exports.createWebhookEndpointSchema = exports.webhookEndpointSchema = exports.webhookDeliveryStatusSchema = exports.webhookScopeSchema = exports.webhookEventKeySchema = void 0;
|
|
13
|
+
const zod_1 = require("zod");
|
|
14
|
+
const enum_js_1 = require("./enum.js");
|
|
15
|
+
const constants_js_1 = require("./constants.js");
|
|
16
|
+
const isoDate = zod_1.z.string();
|
|
17
|
+
/**
|
|
18
|
+
* One subscription entry: an exact key, `group.*` or `*`.
|
|
19
|
+
*
|
|
20
|
+
* @stability experimental
|
|
21
|
+
*/
|
|
22
|
+
exports.webhookEventKeySchema = zod_1.z.string().max(constants_js_1.WEBHOOK_EVENT_KEY_MAX).regex(constants_js_1.WEBHOOK_EVENT_KEY_PATTERN);
|
|
23
|
+
const eventKeysSchema = zod_1.z.array(exports.webhookEventKeySchema).min(1).max(constants_js_1.WEBHOOK_EVENT_KEYS_MAX);
|
|
24
|
+
const httpUrlSchema = zod_1.z
|
|
25
|
+
.string()
|
|
26
|
+
.max(constants_js_1.WEBHOOK_URL_MAX)
|
|
27
|
+
.refine((value) => {
|
|
28
|
+
try {
|
|
29
|
+
const url = new URL(value);
|
|
30
|
+
return url.protocol === 'https:' || url.protocol === 'http:';
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
}, 'Must be an http(s) URL');
|
|
36
|
+
/** One of `user`, `org`, `system`. @stability experimental */
|
|
37
|
+
exports.webhookScopeSchema = (0, enum_js_1.wireEnum)(constants_js_1.WEBHOOK_SCOPES);
|
|
38
|
+
/** One delivery status. @stability experimental */
|
|
39
|
+
exports.webhookDeliveryStatusSchema = (0, enum_js_1.wireEnum)(constants_js_1.WEBHOOK_DELIVERY_STATUSES);
|
|
40
|
+
/**
|
|
41
|
+
* A webhook endpoint as the API returns it. Never carries the secret.
|
|
42
|
+
*
|
|
43
|
+
* @stability experimental
|
|
44
|
+
*/
|
|
45
|
+
exports.webhookEndpointSchema = zod_1.z.object({
|
|
46
|
+
/** The id. */
|
|
47
|
+
id: zod_1.z.string(),
|
|
48
|
+
/** Who owns it. */
|
|
49
|
+
scope: exports.webhookScopeSchema,
|
|
50
|
+
/** The organization; `null` for a system endpoint. */
|
|
51
|
+
orgId: zod_1.z.string().nullable(),
|
|
52
|
+
/** The owning user (user scope); `null` otherwise. */
|
|
53
|
+
ownerUserId: zod_1.z.string().nullable(),
|
|
54
|
+
/** The display name. */
|
|
55
|
+
name: zod_1.z.string(),
|
|
56
|
+
/** A free-text note, or `null`. */
|
|
57
|
+
description: zod_1.z.string().nullable(),
|
|
58
|
+
/** The receiver URL. */
|
|
59
|
+
url: zod_1.z.string(),
|
|
60
|
+
/** The subscription entries: exact keys, `group.*` or `*`. */
|
|
61
|
+
eventKeys: zod_1.z.array(zod_1.z.string()),
|
|
62
|
+
/** Whether deliveries are sent. */
|
|
63
|
+
enabled: zod_1.z.boolean(),
|
|
64
|
+
/** Why the endpoint was switched off by the platform (`circuit_open`, `owner_lost_access`, `gone`), else `null`. */
|
|
65
|
+
disabledReason: zod_1.z.string().nullable(),
|
|
66
|
+
/** Failed deliveries in a row; the circuit opens at the configured limit. */
|
|
67
|
+
consecutiveFailures: zod_1.z.number().int().min(0),
|
|
68
|
+
/** Increments on every rotation. */
|
|
69
|
+
secretVersion: zod_1.z.number().int().min(1),
|
|
70
|
+
/** While set and in the future, deliveries are signed with the previous secret too. */
|
|
71
|
+
previousSecretUntil: isoDate.nullable(),
|
|
72
|
+
/** When the last attempt finished, or `null`. */
|
|
73
|
+
lastDeliveryAt: isoDate.nullable(),
|
|
74
|
+
/** When the last 2xx answer arrived, or `null`. */
|
|
75
|
+
lastSuccessAt: isoDate.nullable(),
|
|
76
|
+
/** Creation time. */
|
|
77
|
+
createdAt: isoDate,
|
|
78
|
+
/** Last change. */
|
|
79
|
+
updatedAt: isoDate,
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* `POST` body to create an endpoint.
|
|
83
|
+
*
|
|
84
|
+
* @stability experimental
|
|
85
|
+
*/
|
|
86
|
+
exports.createWebhookEndpointSchema = zod_1.z.object({
|
|
87
|
+
/** The display name. */
|
|
88
|
+
name: zod_1.z.string().min(1).max(constants_js_1.WEBHOOK_NAME_MAX),
|
|
89
|
+
/** A free-text note, or `null`. */
|
|
90
|
+
description: zod_1.z.string().max(constants_js_1.WEBHOOK_DESCRIPTION_MAX).nullish(),
|
|
91
|
+
/** The receiver URL. */
|
|
92
|
+
url: httpUrlSchema,
|
|
93
|
+
/** The subscription entries: exact keys, `group.*` or `*`. */
|
|
94
|
+
eventKeys: eventKeysSchema,
|
|
95
|
+
/** Whether deliveries are sent. */
|
|
96
|
+
enabled: zod_1.z.boolean().default(true),
|
|
97
|
+
});
|
|
98
|
+
/**
|
|
99
|
+
* `PATCH` body: every create field is optional. `enabled: true` also clears a
|
|
100
|
+
* platform-set `disabledReason` and the failure streak.
|
|
101
|
+
*
|
|
102
|
+
* @stability experimental
|
|
103
|
+
*/
|
|
104
|
+
exports.updateWebhookEndpointSchema = zod_1.z.object({
|
|
105
|
+
/** The display name. */
|
|
106
|
+
name: zod_1.z.string().min(1).max(constants_js_1.WEBHOOK_NAME_MAX).optional(),
|
|
107
|
+
/** A free-text note, or `null`. */
|
|
108
|
+
description: zod_1.z.string().max(constants_js_1.WEBHOOK_DESCRIPTION_MAX).nullish(),
|
|
109
|
+
/** The receiver URL. */
|
|
110
|
+
url: httpUrlSchema.optional(),
|
|
111
|
+
/** The subscription entries: exact keys, `group.*` or `*`. */
|
|
112
|
+
eventKeys: eventKeysSchema.optional(),
|
|
113
|
+
/** Whether deliveries are sent. */
|
|
114
|
+
enabled: zod_1.z.boolean().optional(),
|
|
115
|
+
});
|
|
116
|
+
/**
|
|
117
|
+
* The endpoint list.
|
|
118
|
+
*
|
|
119
|
+
* @stability experimental
|
|
120
|
+
*/
|
|
121
|
+
exports.webhookEndpointListSchema = zod_1.z.object({
|
|
122
|
+
/** The page of entries. */
|
|
123
|
+
items: zod_1.z.array(exports.webhookEndpointSchema),
|
|
124
|
+
});
|
|
125
|
+
/**
|
|
126
|
+
* The create response: the endpoint and its signing secret, shown once.
|
|
127
|
+
*
|
|
128
|
+
* @stability experimental
|
|
129
|
+
*/
|
|
130
|
+
exports.webhookEndpointCreatedSchema = zod_1.z.object({
|
|
131
|
+
/** The endpoint. */
|
|
132
|
+
endpoint: exports.webhookEndpointSchema,
|
|
133
|
+
/** `whsec_<base64>`. Never returned again. */
|
|
134
|
+
secret: zod_1.z.string(),
|
|
135
|
+
});
|
|
136
|
+
/**
|
|
137
|
+
* The rotate response: the new secret, shown once, and when the previous one
|
|
138
|
+
* stops being accepted.
|
|
139
|
+
*
|
|
140
|
+
* @stability experimental
|
|
141
|
+
*/
|
|
142
|
+
exports.rotateWebhookSecretResponseSchema = zod_1.z.object({
|
|
143
|
+
/** `whsec_<base64>`; shown once. */
|
|
144
|
+
secret: zod_1.z.string(),
|
|
145
|
+
/** Increments on every rotation. */
|
|
146
|
+
secretVersion: zod_1.z.number().int().min(1),
|
|
147
|
+
/** When the previous secret stops being accepted, or `null`. */
|
|
148
|
+
previousSecretValidUntil: isoDate.nullable(),
|
|
149
|
+
});
|
|
150
|
+
/**
|
|
151
|
+
* One delivery row (no body).
|
|
152
|
+
*
|
|
153
|
+
* @stability experimental
|
|
154
|
+
*/
|
|
155
|
+
exports.webhookDeliverySchema = zod_1.z.object({
|
|
156
|
+
/** The id. */
|
|
157
|
+
id: zod_1.z.string(),
|
|
158
|
+
/** The endpoint. */
|
|
159
|
+
endpointId: zod_1.z.string(),
|
|
160
|
+
/** The event key. */
|
|
161
|
+
eventKey: zod_1.z.string(),
|
|
162
|
+
/** The event id; identical across retries. */
|
|
163
|
+
eventId: zod_1.z.string(),
|
|
164
|
+
/** The lifecycle state. */
|
|
165
|
+
status: exports.webhookDeliveryStatusSchema,
|
|
166
|
+
/** How many attempts were made. */
|
|
167
|
+
attempt: zod_1.z.number().int().min(0),
|
|
168
|
+
/** The receiver's HTTP status, or `null`. */
|
|
169
|
+
responseStatus: zod_1.z.number().int().nullable(),
|
|
170
|
+
/** The start of the receiver's answer, or `null`. */
|
|
171
|
+
responseSnippet: zod_1.z.string().nullable(),
|
|
172
|
+
/** A short failure code, or `null`. */
|
|
173
|
+
errorCode: zod_1.z.string().nullable(),
|
|
174
|
+
/** How long the last attempt took, or `null`. */
|
|
175
|
+
durationMs: zod_1.z.number().int().nullable(),
|
|
176
|
+
/** When the next retry is due, or `null`. */
|
|
177
|
+
nextAttemptAt: isoDate.nullable(),
|
|
178
|
+
/** When the delivery succeeded, or `null`. */
|
|
179
|
+
deliveredAt: isoDate.nullable(),
|
|
180
|
+
/** Creation time. */
|
|
181
|
+
createdAt: isoDate,
|
|
182
|
+
});
|
|
183
|
+
/**
|
|
184
|
+
* One delivery with the body sent and the request headers (the signature is
|
|
185
|
+
* never included).
|
|
186
|
+
*
|
|
187
|
+
* @stability experimental
|
|
188
|
+
*/
|
|
189
|
+
exports.webhookDeliveryDetailSchema = exports.webhookDeliverySchema.extend({
|
|
190
|
+
/** The envelope that was sent. */
|
|
191
|
+
payload: zod_1.z.unknown(),
|
|
192
|
+
/** The headers sent, without the signature. */
|
|
193
|
+
requestHeaders: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
|
|
194
|
+
});
|
|
195
|
+
/**
|
|
196
|
+
* A page of deliveries.
|
|
197
|
+
*
|
|
198
|
+
* @stability experimental
|
|
199
|
+
*/
|
|
200
|
+
exports.webhookDeliveryListSchema = zod_1.z.object({
|
|
201
|
+
/** The page of entries. */
|
|
202
|
+
items: zod_1.z.array(exports.webhookDeliverySchema),
|
|
203
|
+
/** All matching entries. */
|
|
204
|
+
total: zod_1.z.number().int().min(0),
|
|
205
|
+
/** The 1-based page. */
|
|
206
|
+
page: zod_1.z.number().int().min(1),
|
|
207
|
+
/** Entries per page. */
|
|
208
|
+
pageSize: zod_1.z.number().int().min(1),
|
|
209
|
+
/** How many pages there are. */
|
|
210
|
+
totalPages: zod_1.z.number().int().min(0),
|
|
211
|
+
});
|
|
212
|
+
/**
|
|
213
|
+
* `GET .../deliveries` query.
|
|
214
|
+
*
|
|
215
|
+
* @stability experimental
|
|
216
|
+
*/
|
|
217
|
+
exports.webhookDeliveryListQuerySchema = zod_1.z.object({
|
|
218
|
+
/** The 1-based page. */
|
|
219
|
+
page: zod_1.z.coerce.number().int().min(1).default(1),
|
|
220
|
+
/** Entries per page. */
|
|
221
|
+
pageSize: zod_1.z.coerce
|
|
222
|
+
.number()
|
|
223
|
+
.int()
|
|
224
|
+
.min(1)
|
|
225
|
+
.max(constants_js_1.WEBHOOK_DELIVERIES_PAGE_SIZE_MAX)
|
|
226
|
+
.default(constants_js_1.WEBHOOK_DELIVERIES_PAGE_SIZE_DEFAULT),
|
|
227
|
+
/** The lifecycle state. */
|
|
228
|
+
status: exports.webhookDeliveryStatusSchema.optional(),
|
|
229
|
+
/** The event key. */
|
|
230
|
+
eventKey: zod_1.z.string().max(constants_js_1.WEBHOOK_EVENT_KEY_MAX).optional(),
|
|
231
|
+
});
|
|
232
|
+
/**
|
|
233
|
+
* `POST .../test` response: the id of the queued ping delivery.
|
|
234
|
+
*
|
|
235
|
+
* @stability experimental
|
|
236
|
+
*/
|
|
237
|
+
exports.webhookTestResponseSchema = zod_1.z.object({
|
|
238
|
+
/** The queued ping delivery. */
|
|
239
|
+
deliveryId: zod_1.z.string(),
|
|
240
|
+
});
|
|
241
|
+
/**
|
|
242
|
+
* One event a caller may subscribe to.
|
|
243
|
+
*
|
|
244
|
+
* @stability experimental
|
|
245
|
+
*/
|
|
246
|
+
exports.webhookEventCatalogEntrySchema = zod_1.z.object({
|
|
247
|
+
/** The event key. */
|
|
248
|
+
key: zod_1.z.string(),
|
|
249
|
+
/** A short name. */
|
|
250
|
+
label: zod_1.z.string(),
|
|
251
|
+
/** A free-text note, or `null`. */
|
|
252
|
+
description: zod_1.z.string(),
|
|
253
|
+
/** The picker group heading. */
|
|
254
|
+
group: zod_1.z.string(),
|
|
255
|
+
/** Who may subscribe. */
|
|
256
|
+
audience: exports.webhookScopeSchema,
|
|
257
|
+
/** JSON Schema of the envelope's `data`. */
|
|
258
|
+
jsonSchema: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
259
|
+
/** A sample `data`. */
|
|
260
|
+
example: zod_1.z.unknown().optional(),
|
|
261
|
+
});
|
|
262
|
+
/**
|
|
263
|
+
* `GET .../events`: the catalog, filtered to what the caller may subscribe to.
|
|
264
|
+
*
|
|
265
|
+
* @stability experimental
|
|
266
|
+
*/
|
|
267
|
+
exports.webhookEventCatalogSchema = zod_1.z.object({
|
|
268
|
+
/** The page of entries. */
|
|
269
|
+
items: zod_1.z.array(exports.webhookEventCatalogEntrySchema),
|
|
270
|
+
});
|
|
271
|
+
/**
|
|
272
|
+
* The JSON body a receiver gets.
|
|
273
|
+
*
|
|
274
|
+
* @stability experimental
|
|
275
|
+
*/
|
|
276
|
+
exports.webhookEnvelopeSchema = zod_1.z.object({
|
|
277
|
+
/** The event id (also the `webhook-id` header). */
|
|
278
|
+
id: zod_1.z.string(),
|
|
279
|
+
/** The event key. */
|
|
280
|
+
type: zod_1.z.string(),
|
|
281
|
+
/** Creation time. */
|
|
282
|
+
createdAt: isoDate,
|
|
283
|
+
/** The envelope version. */
|
|
284
|
+
apiVersion: zod_1.z.string(),
|
|
285
|
+
/** The organization, or `null` for a system event. */
|
|
286
|
+
org: zod_1.z
|
|
287
|
+
.object({
|
|
288
|
+
/** The organization id. */
|
|
289
|
+
id: zod_1.z.string(),
|
|
290
|
+
})
|
|
291
|
+
.nullable(),
|
|
292
|
+
/** The event data. */
|
|
293
|
+
data: zod_1.z.unknown(),
|
|
294
|
+
});
|
|
295
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../src/webhooks/schemas.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,iDAAiD;AACjD,gFAAgF;AAChF,EAAE;AACF,6EAA6E;AAC7E,6EAA6E;AAC7E,iFAAiF;AACjF,8BAA8B;AAC9B,gFAAgF;;;AAEhF,6BAAwB;AAExB,uCAAqC;AAErC,iDAWwB;AAExB,MAAM,OAAO,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC;AAE3B;;;;GAIG;AACU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,oCAAqB,CAA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