@cosmoner/sdk 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +178 -0
- package/dist/client.d.ts +28 -0
- package/dist/config.d.ts +35 -0
- package/dist/deployment/spec.d.ts +108 -0
- package/dist/deployment/types.d.ts +85 -0
- package/dist/deployment/validate.d.ts +30 -0
- package/dist/errors.d.ts +76 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +1004 -0
- package/dist/index.mjs +946 -0
- package/dist/retry.d.ts +39 -0
- package/dist/services/email.d.ts +33 -0
- package/dist/services/webhooks.d.ts +190 -0
- package/dist/transport.d.ts +29 -0
- package/dist/version.d.ts +12 -0
- package/dist/webhooks/signature.d.ts +48 -0
- package/package.json +47 -0
package/dist/retry.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/** Retry policy governing which failed requests are safe to send again. */
|
|
2
|
+
/** Inputs to a single retry decision. */
|
|
3
|
+
export interface RetryDecision {
|
|
4
|
+
attempt: number;
|
|
5
|
+
method: string;
|
|
6
|
+
/** `null` when the request failed at the transport layer and never reached the API. */
|
|
7
|
+
status: number | null;
|
|
8
|
+
retryNonIdempotent?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Decides whether a failure should be retried.
|
|
12
|
+
*
|
|
13
|
+
* 429 is always retryable regardless of method: the request was rejected
|
|
14
|
+
* before it was processed, so replaying it cannot duplicate a side effect.
|
|
15
|
+
* Timeouts and 5xx are different — the API may well have completed the work
|
|
16
|
+
* before failing to answer, so those are only retried for idempotent methods,
|
|
17
|
+
* or when the caller opts in because the request carries an idempotency key
|
|
18
|
+
* the server honours.
|
|
19
|
+
*/
|
|
20
|
+
export declare function shouldRetry(maxRetries: number, decision: RetryDecision): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the delay before the next attempt, in milliseconds.
|
|
23
|
+
*
|
|
24
|
+
* A server-supplied `Retry-After` wins outright. Otherwise the delay is
|
|
25
|
+
* exponential with full jitter, which spreads a thundering herd of clients
|
|
26
|
+
* that all got rate limited in the same window.
|
|
27
|
+
*/
|
|
28
|
+
export declare function backoffMs(attempt: number, retryAfterSeconds?: number): number;
|
|
29
|
+
/**
|
|
30
|
+
* Reads a `Retry-After` header expressed in seconds.
|
|
31
|
+
*
|
|
32
|
+
* The API does not currently send this header; it is honoured so the SDK
|
|
33
|
+
* starts respecting it the moment the platform adds it. The HTTP-date form is
|
|
34
|
+
* ignored deliberately — it is rare in practice and jittered backoff is a
|
|
35
|
+
* perfectly good fallback.
|
|
36
|
+
*/
|
|
37
|
+
export declare function parseRetryAfter(headers?: Headers): number | undefined;
|
|
38
|
+
/** Resolves after the given delay. */
|
|
39
|
+
export declare function sleep(ms: number): Promise<void>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Email service namespace — transactional sending through a project's SMTP credential. */
|
|
2
|
+
import { type ResolvedConfig } from "../config";
|
|
3
|
+
import type { Transport } from "../transport";
|
|
4
|
+
/** Arguments accepted by `client.email.send()`. */
|
|
5
|
+
export interface SendEmailParams {
|
|
6
|
+
credentialId: string;
|
|
7
|
+
to: string | string[];
|
|
8
|
+
subject: string;
|
|
9
|
+
html?: string;
|
|
10
|
+
text?: string;
|
|
11
|
+
replyTo?: string | string[];
|
|
12
|
+
/** Overrides the client-level default project for this call. */
|
|
13
|
+
projectId?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Envelope returned by a successful send. */
|
|
16
|
+
export interface SendEmailResponse {
|
|
17
|
+
success: true;
|
|
18
|
+
data: {
|
|
19
|
+
messageId: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/** Email operations for a project. */
|
|
23
|
+
export declare class EmailService {
|
|
24
|
+
private readonly transport;
|
|
25
|
+
private readonly config;
|
|
26
|
+
constructor(transport: Transport, config: ResolvedConfig);
|
|
27
|
+
/**
|
|
28
|
+
* Sends a transactional email and resolves with the API envelope.
|
|
29
|
+
*
|
|
30
|
+
* At least one of `html` or `text` is required.
|
|
31
|
+
*/
|
|
32
|
+
send(params: SendEmailParams): Promise<SendEmailResponse>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/** Webhooks service namespace — endpoint management and delivery inspection. */
|
|
2
|
+
import { type ResolvedConfig } from "../config";
|
|
3
|
+
import type { Transport } from "../transport";
|
|
4
|
+
import { type VerifyWebhookParams, type WebhookEvent } from "../webhooks/signature";
|
|
5
|
+
/** Every event type an endpoint can subscribe to. */
|
|
6
|
+
export declare const WEBHOOK_EVENT_TYPES: readonly ["email.sent", "email.delivered", "email.delivery_delayed", "email.bounced", "email.complained", "email.opened", "email.clicked", "email.rejected", "email.rendering_failed", "email.domain_verified", "email.sending_paused", "app.deployed", "app.failed", "domain.verified", "domain.expired", "server.running", "server.error", "member.invited", "member.joined"];
|
|
7
|
+
export type WebhookEventType = (typeof WEBHOOK_EVENT_TYPES)[number];
|
|
8
|
+
/** Lifecycle state of a single delivery attempt chain. */
|
|
9
|
+
export type WebhookDeliveryStatus = "PENDING" | "SUCCEEDED" | "FAILED";
|
|
10
|
+
/** Why an endpoint stopped receiving events. */
|
|
11
|
+
export type WebhookDisabledReason = "MANUAL" | "CONSECUTIVE_FAILURES";
|
|
12
|
+
/** A configured webhook endpoint. The full secret is never returned here. */
|
|
13
|
+
export interface WebhookEndpoint {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string | null;
|
|
17
|
+
url: string;
|
|
18
|
+
events: WebhookEventType[];
|
|
19
|
+
enabled: boolean;
|
|
20
|
+
/** Last four characters of the signing secret — enough to tell keys apart. */
|
|
21
|
+
secretHint: string;
|
|
22
|
+
consecutiveFailures: number;
|
|
23
|
+
disabledAt: string | null;
|
|
24
|
+
disabledReason: WebhookDisabledReason | null;
|
|
25
|
+
lastSuccessAt: string | null;
|
|
26
|
+
lastFailureAt: string | null;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
updatedAt: string;
|
|
29
|
+
}
|
|
30
|
+
/** Delivery counts behind an endpoint's health badge. */
|
|
31
|
+
export interface WebhookEndpointStats {
|
|
32
|
+
succeeded: number;
|
|
33
|
+
failed: number;
|
|
34
|
+
pending: number;
|
|
35
|
+
}
|
|
36
|
+
/** One attempt chain for one event against one endpoint. */
|
|
37
|
+
export interface WebhookDelivery {
|
|
38
|
+
id: string;
|
|
39
|
+
eventType: WebhookEventType;
|
|
40
|
+
eventId: string;
|
|
41
|
+
payload: unknown;
|
|
42
|
+
status: WebhookDeliveryStatus;
|
|
43
|
+
attempt: number;
|
|
44
|
+
nextAttemptAt: string | null;
|
|
45
|
+
responseStatus: number | null;
|
|
46
|
+
responseBody: string | null;
|
|
47
|
+
errorMessage: string | null;
|
|
48
|
+
durationMs: number | null;
|
|
49
|
+
deliveredAt: string | null;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
}
|
|
52
|
+
/** Options accepted by every method, for working across projects. */
|
|
53
|
+
export interface ProjectScopedParams {
|
|
54
|
+
/** Overrides the client-level default project for this call. */
|
|
55
|
+
projectId?: string;
|
|
56
|
+
}
|
|
57
|
+
/** Arguments accepted by `client.webhooks.create()`. */
|
|
58
|
+
export interface CreateWebhookEndpointParams extends ProjectScopedParams {
|
|
59
|
+
name: string;
|
|
60
|
+
/** Must be an HTTPS URL — the API rejects plaintext endpoints. */
|
|
61
|
+
url: string;
|
|
62
|
+
events: WebhookEventType[];
|
|
63
|
+
description?: string;
|
|
64
|
+
}
|
|
65
|
+
/** Arguments accepted by `client.webhooks.update()`. */
|
|
66
|
+
export interface UpdateWebhookEndpointParams extends ProjectScopedParams {
|
|
67
|
+
name?: string;
|
|
68
|
+
url?: string;
|
|
69
|
+
events?: WebhookEventType[];
|
|
70
|
+
/** Pass null to clear the description. */
|
|
71
|
+
description?: string | null;
|
|
72
|
+
enabled?: boolean;
|
|
73
|
+
}
|
|
74
|
+
/** Filters accepted by `client.webhooks.listDeliveries()`. */
|
|
75
|
+
export interface ListDeliveriesParams extends ProjectScopedParams {
|
|
76
|
+
status?: WebhookDeliveryStatus;
|
|
77
|
+
eventType?: WebhookEventType;
|
|
78
|
+
/** 1–100, defaults to 25 server-side. */
|
|
79
|
+
limit?: number;
|
|
80
|
+
/** `nextCursor` from the previous page. */
|
|
81
|
+
cursor?: string;
|
|
82
|
+
}
|
|
83
|
+
/** An endpoint returned with its signing secret, shown only once. */
|
|
84
|
+
export interface WebhookEndpointWithSecret extends WebhookEndpoint {
|
|
85
|
+
/**
|
|
86
|
+
* The full signing secret. Returned only when the endpoint is created —
|
|
87
|
+
* store it now, because no later call can retrieve it.
|
|
88
|
+
*/
|
|
89
|
+
secret: string;
|
|
90
|
+
}
|
|
91
|
+
interface Envelope<T> {
|
|
92
|
+
success: true;
|
|
93
|
+
data: T;
|
|
94
|
+
}
|
|
95
|
+
export type ListWebhookEndpointsResponse = Envelope<WebhookEndpoint[]>;
|
|
96
|
+
export type GetWebhookEndpointResponse = Envelope<{
|
|
97
|
+
endpoint: WebhookEndpoint;
|
|
98
|
+
stats: WebhookEndpointStats;
|
|
99
|
+
}>;
|
|
100
|
+
export type CreateWebhookEndpointResponse = Envelope<WebhookEndpointWithSecret>;
|
|
101
|
+
export type UpdateWebhookEndpointResponse = Envelope<WebhookEndpoint>;
|
|
102
|
+
export type ResumeWebhookEndpointResponse = Envelope<WebhookEndpoint>;
|
|
103
|
+
export type RotateWebhookSecretResponse = Envelope<{
|
|
104
|
+
id: string;
|
|
105
|
+
secret: string;
|
|
106
|
+
}>;
|
|
107
|
+
export type TestWebhookEndpointResponse = Envelope<{
|
|
108
|
+
outcome: string;
|
|
109
|
+
delivery: WebhookDelivery;
|
|
110
|
+
}>;
|
|
111
|
+
export type ListWebhookDeliveriesResponse = Envelope<{
|
|
112
|
+
deliveries: WebhookDelivery[];
|
|
113
|
+
nextCursor: string | null;
|
|
114
|
+
}>;
|
|
115
|
+
export type ReplayWebhookDeliveryResponse = Envelope<WebhookDelivery>;
|
|
116
|
+
export type DeleteWebhookEndpointResponse = Envelope<null>;
|
|
117
|
+
/** Webhook endpoint and delivery operations for a project. */
|
|
118
|
+
export declare class WebhooksService {
|
|
119
|
+
private readonly transport;
|
|
120
|
+
private readonly config;
|
|
121
|
+
constructor(transport: Transport, config: ResolvedConfig);
|
|
122
|
+
/** Builds the collection route for the resolved project. */
|
|
123
|
+
private basePath;
|
|
124
|
+
/** Lists every endpoint on the project, newest first. */
|
|
125
|
+
list(params?: ProjectScopedParams): Promise<ListWebhookEndpointsResponse>;
|
|
126
|
+
/** Fetches one endpoint together with its delivery counts. */
|
|
127
|
+
get(endpointId: string, params?: ProjectScopedParams): Promise<GetWebhookEndpointResponse>;
|
|
128
|
+
/**
|
|
129
|
+
* Creates an endpoint and returns it with its signing secret.
|
|
130
|
+
*
|
|
131
|
+
* The secret is returned by this call alone — every later read gives only
|
|
132
|
+
* `secretHint`, so persist it before discarding the response.
|
|
133
|
+
*/
|
|
134
|
+
create(params: CreateWebhookEndpointParams): Promise<CreateWebhookEndpointResponse>;
|
|
135
|
+
/**
|
|
136
|
+
* Updates an endpoint's configuration.
|
|
137
|
+
*
|
|
138
|
+
* Re-enabling a paused endpoint through `enabled: true` also clears its
|
|
139
|
+
* failure streak, so one more failure will not immediately re-pause it.
|
|
140
|
+
*/
|
|
141
|
+
update(endpointId: string, params: UpdateWebhookEndpointParams): Promise<UpdateWebhookEndpointResponse>;
|
|
142
|
+
/** Deletes an endpoint and its delivery history. */
|
|
143
|
+
delete(endpointId: string, params?: ProjectScopedParams): Promise<DeleteWebhookEndpointResponse>;
|
|
144
|
+
/**
|
|
145
|
+
* Clears an auto-pause and re-queues the backlog held while it was down.
|
|
146
|
+
*
|
|
147
|
+
* An endpoint pauses itself after ten consecutive failed deliveries.
|
|
148
|
+
*/
|
|
149
|
+
resume(endpointId: string, params?: ProjectScopedParams): Promise<ResumeWebhookEndpointResponse>;
|
|
150
|
+
/**
|
|
151
|
+
* Issues a new signing secret and returns it in full.
|
|
152
|
+
*
|
|
153
|
+
* The previous secret stops verifying immediately, so deploy the new one
|
|
154
|
+
* before rotating if the receiver cannot tolerate rejected deliveries.
|
|
155
|
+
*/
|
|
156
|
+
rotateSecret(endpointId: string, params?: ProjectScopedParams): Promise<RotateWebhookSecretResponse>;
|
|
157
|
+
/**
|
|
158
|
+
* Sends a synthetic event and reports what the endpoint answered.
|
|
159
|
+
*
|
|
160
|
+
* Defaults to the endpoint's first subscribed event. Test sends never move
|
|
161
|
+
* the failure streak in either direction.
|
|
162
|
+
*/
|
|
163
|
+
test(endpointId: string, params?: ProjectScopedParams & {
|
|
164
|
+
eventType?: WebhookEventType;
|
|
165
|
+
}): Promise<TestWebhookEndpointResponse>;
|
|
166
|
+
/** Lists deliveries for an endpoint, newest first, cursor-paginated. */
|
|
167
|
+
listDeliveries(endpointId: string, params?: ListDeliveriesParams): Promise<ListWebhookDeliveriesResponse>;
|
|
168
|
+
/**
|
|
169
|
+
* Queues a fresh delivery carrying the same payload.
|
|
170
|
+
*
|
|
171
|
+
* The endpoint must be enabled — replaying into a paused endpoint fails
|
|
172
|
+
* rather than silently queueing behind the backlog.
|
|
173
|
+
*/
|
|
174
|
+
replayDelivery(endpointId: string, deliveryId: string, params?: ProjectScopedParams): Promise<ReplayWebhookDeliveryResponse>;
|
|
175
|
+
/**
|
|
176
|
+
* Reports whether a received request carries a valid signature.
|
|
177
|
+
*
|
|
178
|
+
* Needs the raw request body: a re-serialized object will not match what
|
|
179
|
+
* was signed.
|
|
180
|
+
*/
|
|
181
|
+
verify(params: VerifyWebhookParams): boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Verifies a received request and returns its parsed event envelope.
|
|
184
|
+
*
|
|
185
|
+
* Throws `WebhookSignatureError` when verification fails, so there is no
|
|
186
|
+
* payload to act on unless the signature held.
|
|
187
|
+
*/
|
|
188
|
+
constructEvent<T = unknown>(params: VerifyWebhookParams): WebhookEvent<T>;
|
|
189
|
+
}
|
|
190
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** HTTP transport: header assembly, retries, and response/error decoding. */
|
|
2
|
+
import type { ResolvedConfig } from "./config";
|
|
3
|
+
/** Per-request options understood by the transport. */
|
|
4
|
+
export interface RequestOptions {
|
|
5
|
+
body?: unknown;
|
|
6
|
+
query?: Record<string, string | number | boolean | undefined>;
|
|
7
|
+
idempotencyKey?: string;
|
|
8
|
+
retryNonIdempotent?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** Issues authenticated requests against the API, retrying transient failures. */
|
|
11
|
+
export declare class Transport {
|
|
12
|
+
private readonly config;
|
|
13
|
+
constructor(config: ResolvedConfig);
|
|
14
|
+
/**
|
|
15
|
+
* Builds the header set for one request.
|
|
16
|
+
*
|
|
17
|
+
* The idempotency key is generated once per logical request and reused
|
|
18
|
+
* across retries, so a replayed write can be collapsed server-side. The API
|
|
19
|
+
* does not consume this header yet — it is sent now so that retries become
|
|
20
|
+
* safe for writes as soon as it does.
|
|
21
|
+
*/
|
|
22
|
+
private headers;
|
|
23
|
+
/** Joins a route path and query onto the configured base URL. */
|
|
24
|
+
private url;
|
|
25
|
+
/** Parses a successful response body, or throws the mapped API error. */
|
|
26
|
+
private decode;
|
|
27
|
+
/** Issues a request, retrying transient failures, and returns the parsed body. */
|
|
28
|
+
request<T>(method: string, path: string, options?: RequestOptions): Promise<T>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SDK version, used to build the User-Agent header.
|
|
3
|
+
*
|
|
4
|
+
* Written here rather than read from package.json because this module is
|
|
5
|
+
* bundled into consumers' builds, where there is no manifest to read at
|
|
6
|
+
* runtime. That makes it a second place the version lives, so it is not
|
|
7
|
+
* maintained by hand: `scripts/sync-version.mjs` rewrites it from package.json,
|
|
8
|
+
* the release workflow runs that straight after `npm version`, and
|
|
9
|
+
* `version.test.ts` fails the build if the two ever disagree.
|
|
10
|
+
*/
|
|
11
|
+
export declare const VERSION = "1.2.0";
|
|
12
|
+
export declare const USER_AGENT = "cosmoner-node/1.2.0";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** Verification of the HMAC signature Cosmoner sends with every webhook. */
|
|
2
|
+
/** Header carrying the timestamp and signature of the request body. */
|
|
3
|
+
export declare const SIGNATURE_HEADER = "x-cosmoner-signature";
|
|
4
|
+
/** Header carrying the delivery id, so receivers can dedupe replays. */
|
|
5
|
+
export declare const DELIVERY_ID_HEADER = "x-cosmoner-delivery-id";
|
|
6
|
+
/** Header carrying the event type, for routing without parsing the body. */
|
|
7
|
+
export declare const EVENT_TYPE_HEADER = "x-cosmoner-event";
|
|
8
|
+
/** How old a signature may be before it is rejected as a replay. */
|
|
9
|
+
export declare const DEFAULT_TOLERANCE_SECONDS = 300;
|
|
10
|
+
/** The JSON envelope Cosmoner POSTs to an endpoint. */
|
|
11
|
+
export interface WebhookEvent<T = unknown> {
|
|
12
|
+
id: string;
|
|
13
|
+
type: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
data: T;
|
|
16
|
+
}
|
|
17
|
+
/** Arguments shared by `verify` and `constructEvent`. */
|
|
18
|
+
export interface VerifyWebhookParams {
|
|
19
|
+
/**
|
|
20
|
+
* The raw request body, exactly as received.
|
|
21
|
+
*
|
|
22
|
+
* Passing a parsed object re-serialized with `JSON.stringify` will not
|
|
23
|
+
* verify: key order and whitespace are part of what was signed.
|
|
24
|
+
*/
|
|
25
|
+
payload: string | Buffer;
|
|
26
|
+
/** Value of the `x-cosmoner-signature` header. */
|
|
27
|
+
signature: string;
|
|
28
|
+
/** The endpoint's signing secret, as returned when it was created. */
|
|
29
|
+
secret: string;
|
|
30
|
+
/** Overrides the 300s replay window. Pass 0 to skip the age check. */
|
|
31
|
+
toleranceSeconds?: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Recomputes the signature for a body and reports whether it matches.
|
|
35
|
+
*
|
|
36
|
+
* Returns false for every failure mode — malformed header, stale timestamp,
|
|
37
|
+
* wrong secret — so callers that only need a yes/no do not have to catch.
|
|
38
|
+
* Use `constructEvent` when the reason matters.
|
|
39
|
+
*/
|
|
40
|
+
export declare function verifyWebhookSignature(params: VerifyWebhookParams): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Verifies a webhook and returns its parsed envelope.
|
|
43
|
+
*
|
|
44
|
+
* Throws `WebhookSignatureError` rather than returning false, so an unverified
|
|
45
|
+
* payload cannot be used by accident: there is no value to read unless the
|
|
46
|
+
* signature held.
|
|
47
|
+
*/
|
|
48
|
+
export declare function constructEvent<T = unknown>(params: VerifyWebhookParams): WebhookEvent<T>;
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cosmoner/sdk",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Cosmoner SDK for Node.js",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.mjs",
|
|
16
|
+
"require": "./dist/index.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsup src/index.ts --format cjs,esm && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
24
|
+
"lint": "oxlint",
|
|
25
|
+
"typecheck": "tsc --noEmit",
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"prepublishOnly": "npm run build"
|
|
28
|
+
},
|
|
29
|
+
"keywords": [
|
|
30
|
+
"cosmoner",
|
|
31
|
+
"sdk"
|
|
32
|
+
],
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"yaml": "^2.6.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^22.20.1",
|
|
39
|
+
"oxlint": "^1.77.0",
|
|
40
|
+
"tsup": "^8.0.0",
|
|
41
|
+
"typescript": "^7.0.2",
|
|
42
|
+
"vitest": "^5.0.0"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=18"
|
|
46
|
+
}
|
|
47
|
+
}
|