commit b704c32ee467814172f267ad31eb08f02faf5d3f
parent 4053edfedbe9c0155c8a5ac0e025dddf13f9b5ad
Author: triesap <tyson@radroots.org>
Date: Thu, 19 Feb 2026 22:06:08 +0000
build: remove rust workspace ts package scaffolding
Diffstat:
52 files changed, 73 insertions(+), 3040 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,25 +1,15 @@
-.PHONY: all bindings clean help \
- bindings-events bindings-tangle-db-schema bindings-trade bindings-types \
- build build-events-codec-wasm build-tangle-db-wasm build-tangle-events-wasm
+.PHONY: all build clean help \
+ build-events-codec-wasm build-tangle-db-wasm build-tangle-events-wasm
SHELL := /bin/bash
.SHELLFLAGS := -e -o pipefail -c
-TS_RS_FEATURE ?= ts-rs
-
-BINDINGS_TARGETS := \
- bindings-events \
- bindings-tangle-db-schema \
- bindings-trade \
- bindings-types
BUILD_TARGETS := \
- build-events-codec-wasm \
- build-tangle-db-wasm \
- build-tangle-events-wasm
-
-all: bindings build
+ build-events-codec-wasm \
+ build-tangle-db-wasm \
+ build-tangle-events-wasm
-bindings: $(BINDINGS_TARGETS)
+all: build
build: $(BUILD_TARGETS)
@@ -29,29 +19,11 @@ clean:
help:
@echo "Commands:"
@echo " make all"
- @echo " make bindings"
@echo " make build"
@echo " make clean"
@echo " make help"
- @printf "%s\n" $(BINDINGS_TARGETS)
@printf "%s\n" $(BUILD_TARGETS)
-bindings-events:
- @(cd events && cargo test --features $(TS_RS_FEATURE))
- @(cd events/bindings/ts && npm run build)
-
-bindings-tangle-db-schema:
- @(cd tangle-db-schema && cargo test --features $(TS_RS_FEATURE))
- @(cd tangle-db-schema/bindings/ts && npm run build)
-
-bindings-trade:
- @(cd trade && cargo test --features $(TS_RS_FEATURE))
- @(cd trade/bindings/ts && npm run build)
-
-bindings-types:
- @(cd types && cargo test --features $(TS_RS_FEATURE))
- @(cd types/bindings/ts && npm run build)
-
build-tangle-db-wasm:
wasm-pack build tangle-db-wasm --release --target web \
--out-dir ../tangle-db-wasm/pkg/dist --scope radroots
diff --git a/core/bindings/ts/package.json b/core/bindings/ts/package.json
@@ -1,41 +0,0 @@
-{
- "name": "@radroots/core",
- "version": "1.0.0",
- "private": true,
- "license": "AGPLv3",
- "type": "module",
- "main": "./dist/cjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/types/index.d.ts",
- "exports": {
- ".": {
- "types": "./dist/types/index.d.ts",
- "import": "./dist/esm/index.js",
- "require": "./dist/cjs/index.js"
- }
- },
- "files": [
- "dist"
- ],
- "sideEffects": false,
- "scripts": {
- "build:esm": "tsc -p tsconfig.esm.json",
- "build:cjs": "tsc -p tsconfig.cjs.json",
- "build": "npm run clean && npm run build:esm && npm run build:cjs",
- "prebuild": "npm run clean",
- "clean": "rimraf dist",
- "dev": "npm run watch",
- "watch": "tsc -w"
- },
- "devDependencies": {
- "@radroots/tsconfig": "workspace:*",
- "rimraf": "^6.0.1",
- "ts-to-zod": "^3.15.0"
- },
- "dependencies": {
- "zod": "^4.0.5"
- },
- "publishConfig": {
- "access": "public"
- }
-}
-\ No newline at end of file
diff --git a/core/bindings/ts/src/index.ts b/core/bindings/ts/src/index.ts
@@ -1 +0,0 @@
-export * from "./types.js"
diff --git a/core/bindings/ts/src/types.ts b/core/bindings/ts/src/types.ts
@@ -1,61 +0,0 @@
-/*
- Generated by typeshare 1.13.3
-*/
-
-export type RadrootsCoreCurrency = [number, number, number];
-
-export type RadrootsCoreDecimal = number;
-
-export interface RadrootsCoreMoney {
- amount: RadrootsCoreDecimal;
- currency: RadrootsCoreCurrency;
-}
-
-export interface RadrootsCorePercent {
- value: RadrootsCoreDecimal;
-}
-
-export enum RadrootsCoreUnit {
- Each = "Each",
- MassKg = "MassKg",
- MassG = "MassG",
- MassOz = "MassOz",
- MassLb = "MassLb",
- VolumeL = "VolumeL",
- VolumeMl = "VolumeMl",
-}
-
-export interface RadrootsCoreQuantity {
- amount: RadrootsCoreDecimal;
- unit: RadrootsCoreUnit;
- label?: string;
-}
-
-export interface RadrootsCoreQuantityPrice {
- amount: RadrootsCoreMoney;
- quantity: RadrootsCoreQuantity;
-}
-
-export type RadrootsCoreDiscount =
- | { kind: "quantity_threshold", amount: {
- ref_key?: string;
- threshold: RadrootsCoreQuantity;
- value: RadrootsCoreMoney;
-}}
- | { kind: "mass_threshold", amount: {
- threshold: RadrootsCoreQuantity;
- value: RadrootsCoreMoney;
-}}
- | { kind: "subtotal_threshold", amount: {
- threshold: RadrootsCoreMoney;
- value: RadrootsCoreDiscountValue;
-}}
- | { kind: "total_threshold", amount: {
- total_min: RadrootsCoreMoney;
- value: RadrootsCorePercent;
-}};
-
-export type RadrootsCoreDiscountValue =
- | { kind: "money", amount: RadrootsCoreMoney }
- | { kind: "percent", amount: RadrootsCorePercent };
-
diff --git a/core/bindings/ts/tsconfig.cjs.json b/core/bindings/ts/tsconfig.cjs.json
@@ -1,15 +0,0 @@
-{
- "extends": "@radroots/tsconfig/tsconfig.esm.json",
- "compilerOptions": {
- "module": "CommonJS",
- "moduleResolution": "Node",
- "rootDir": "./src",
- "outDir": "dist/cjs",
- "declaration": false,
- "declarationMap": false,
- "emitDeclarationOnly": false,
- "tsBuildInfoFile": "node_modules/.cache/tsc.utils-nostr.cjs.tsbuildinfo"
- },
- "include": ["src"],
- "exclude": ["node_modules", "dist"]
-}
diff --git a/core/bindings/ts/tsconfig.esm.json b/core/bindings/ts/tsconfig.esm.json
@@ -1,13 +0,0 @@
-{
- "extends": "@radroots/tsconfig/tsconfig.esm.json",
- "compilerOptions": {
- "moduleResolution": "nodenext",
- "rootDir": "./src",
- "outDir": "dist/esm",
- "declaration": true,
- "declarationMap": true,
- "declarationDir": "dist/types"
- },
- "include": ["src"],
- "exclude": ["node_modules", "dist"]
-}
diff --git a/core/bindings/ts/tsconfig.json b/core/bindings/ts/tsconfig.json
@@ -1,3 +0,0 @@
-{
- "extends": "./tsconfig.esm.json"
-}
diff --git a/events-indexed/bindings/ts/package.json b/events-indexed/bindings/ts/package.json
@@ -1,41 +0,0 @@
-{
- "name": "@radroots/events-indexed",
- "version": "1.0.0",
- "private": true,
- "license": "AGPLv3",
- "type": "module",
- "main": "./dist/cjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/types/index.d.ts",
- "exports": {
- ".": {
- "types": "./dist/types/index.d.ts",
- "import": "./dist/esm/index.js",
- "require": "./dist/cjs/index.js"
- }
- },
- "files": [
- "dist"
- ],
- "sideEffects": false,
- "scripts": {
- "build:esm": "tsc -p tsconfig.esm.json",
- "build:cjs": "tsc -p tsconfig.cjs.json",
- "build": "npm run clean && npm run build:esm && npm run build:cjs",
- "prebuild": "npm run clean",
- "clean": "rimraf dist",
- "dev": "npm run watch",
- "watch": "tsc -w"
- },
- "devDependencies": {
- "@radroots/tsconfig": "workspace:*",
- "rimraf": "^6.0.1",
- "ts-to-zod": "^3.15.0"
- },
- "dependencies": {
- "zod": "^4.0.5"
- },
- "publishConfig": {
- "access": "public"
- }
-}
diff --git a/events-indexed/bindings/ts/src/index.ts b/events-indexed/bindings/ts/src/index.ts
@@ -1 +0,0 @@
-export * from "./types.js"
diff --git a/events-indexed/bindings/ts/src/types.ts b/events-indexed/bindings/ts/src/types.ts
@@ -1,42 +0,0 @@
-/*
- Generated by typeshare 1.13.3
-*/
-
-export type RadrootsEventsIndexedShardId = string;
-
-export interface RadrootsEventsIndexedIdRange {
- start: string;
- end: string;
-}
-
-export interface RadrootsEventsIndexedShardCheckpoint {
- shard_id: RadrootsEventsIndexedShardId;
- last_created_at: number;
- last_event_id?: string;
- cursor?: string;
-}
-
-export interface RadrootsEventsIndexedIndexCheckpoint {
- generated_at: number;
- shards: RadrootsEventsIndexedShardCheckpoint[];
-}
-
-export interface RadrootsEventsIndexedShardMetadata {
- file: string;
- count: number;
- first_id: string;
- last_id: string;
- first_published_at: number;
- last_published_at: number;
- sha256: string;
-}
-
-export interface RadrootsEventsIndexedManifest {
- country: string;
- total: number;
- shard_size: number;
- first_published_at: number;
- last_published_at: number;
- shards: RadrootsEventsIndexedShardMetadata[];
-}
-
diff --git a/events-indexed/bindings/ts/tsconfig.cjs.json b/events-indexed/bindings/ts/tsconfig.cjs.json
@@ -1,15 +0,0 @@
-{
- "extends": "@radroots/tsconfig/tsconfig.esm.json",
- "compilerOptions": {
- "module": "CommonJS",
- "moduleResolution": "Node",
- "rootDir": "./src",
- "outDir": "dist/cjs",
- "declaration": false,
- "declarationMap": false,
- "emitDeclarationOnly": false,
- "tsBuildInfoFile": "node_modules/.cache/tsc.utils-nostr.cjs.tsbuildinfo"
- },
- "include": ["src"],
- "exclude": ["node_modules", "dist"]
-}
diff --git a/events-indexed/bindings/ts/tsconfig.esm.json b/events-indexed/bindings/ts/tsconfig.esm.json
@@ -1,13 +0,0 @@
-{
- "extends": "@radroots/tsconfig/tsconfig.esm.json",
- "compilerOptions": {
- "moduleResolution": "nodenext",
- "rootDir": "./src",
- "outDir": "dist/esm",
- "declaration": true,
- "declarationMap": true,
- "declarationDir": "dist/types"
- },
- "include": ["src"],
- "exclude": ["node_modules", "dist"]
-}
diff --git a/events-indexed/bindings/ts/tsconfig.json b/events-indexed/bindings/ts/tsconfig.json
@@ -1,3 +0,0 @@
-{
- "extends": "./tsconfig.esm.json"
-}
diff --git a/events/bindings/ts/package.json b/events/bindings/ts/package.json
@@ -1,43 +0,0 @@
-{
- "name": "@radroots/events",
- "version": "1.0.0",
- "private": true,
- "license": "AGPLv3",
- "type": "module",
- "main": "./dist/cjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/types/index.d.ts",
- "exports": {
- ".": {
- "types": "./dist/types/index.d.ts",
- "import": "./dist/esm/index.js",
- "require": "./dist/cjs/index.js"
- }
- },
- "files": [
- "dist"
- ],
- "sideEffects": false,
- "scripts": {
- "build:esm": "tsc -p tsconfig.esm.json",
- "build:cjs": "tsc -p tsconfig.cjs.json",
- "build": "npm run build:esm && npm run build:cjs",
- "prebuild": "npm run clean && npm run prepend-imports",
- "prepend-imports": "bash -c 'f=./src/types.ts; line=\"import type { RadrootsCoreDecimal, RadrootsCoreDiscount, RadrootsCoreDiscountValue, RadrootsCoreMoney, RadrootsCorePercent, RadrootsCoreQuantity, RadrootsCoreQuantityPrice, RadrootsCoreUnit } from \\\"@radroots/core\\\";\"; grep -qxF \"$line\" \"$f\" || (echo -e \"$line\\n\\n$(cat $f)\" > \"$f\")'",
- "clean": "rimraf dist",
- "dev": "npm run watch",
- "watch": "tsc -w"
- },
- "devDependencies": {
- "@radroots/tsconfig": "workspace:*",
- "rimraf": "^6.0.1",
- "ts-to-zod": "^3.15.0"
- },
- "dependencies": {
- "@radroots/core": "workspace:*",
- "zod": "^4.0.5"
- },
- "publishConfig": {
- "access": "public"
- }
-}
diff --git a/events/bindings/ts/src/constants.ts b/events/bindings/ts/src/constants.ts
@@ -1,3 +0,0 @@
-import type { RadrootsListingProductTagKeys } from "./types.js";
-
-export const RADROOTS_LISTING_PRODUCT_TAG_KEYS: RadrootsListingProductTagKeys = ["key", "title", "category", "summary", "process", "lot", "location", "profile", "year"];
diff --git a/events/bindings/ts/src/index.ts b/events/bindings/ts/src/index.ts
@@ -1,5 +0,0 @@
-export * from "./lib.js"
-export * from "./schemas.js"
-export * from "./constants.js"
-export * from "./kinds.js"
-export * from "./types.js"
diff --git a/events/bindings/ts/src/kinds.ts b/events/bindings/ts/src/kinds.ts
@@ -1,56 +0,0 @@
-export const KIND_PROFILE = 0;
-export const KIND_POST = 1;
-export const KIND_FOLLOW = 3;
-export const KIND_REACTION = 7;
-export const KIND_SEAL = 13;
-export const KIND_MESSAGE = 14;
-export const KIND_MESSAGE_FILE = 15;
-export const KIND_GIFT_WRAP = 1059;
-export const KIND_COMMENT = 1111;
-export const KIND_GEOCHAT = 20000;
-export const KIND_LIST_MUTE = 10000;
-export const KIND_LIST_PINNED_NOTES = 10001;
-export const KIND_LIST_READ_WRITE_RELAYS = 10002;
-export const KIND_LIST_BOOKMARKS = 10003;
-export const KIND_LIST_COMMUNITIES = 10004;
-export const KIND_LIST_PUBLIC_CHATS = 10005;
-export const KIND_LIST_BLOCKED_RELAYS = 10006;
-export const KIND_LIST_SEARCH_RELAYS = 10007;
-export const KIND_LIST_SIMPLE_GROUPS = 10009;
-export const KIND_LIST_RELAY_FEEDS = 10012;
-export const KIND_LIST_INTERESTS = 10015;
-export const KIND_LIST_MEDIA_FOLLOWS = 10020;
-export const KIND_LIST_EMOJIS = 10030;
-export const KIND_LIST_DM_RELAYS = 10050;
-export const KIND_LIST_GOOD_WIKI_AUTHORS = 10101;
-export const KIND_LIST_GOOD_WIKI_RELAYS = 10102;
-export const KIND_LIST_SET_FOLLOW = 30000;
-export const KIND_LIST_SET_GENERIC = 30001;
-export const KIND_LIST_SET_RELAY = 30002;
-export const KIND_LIST_SET_BOOKMARK = 30003;
-export const KIND_LIST_SET_CURATION = 30004;
-export const KIND_LIST_SET_VIDEO = 30005;
-export const KIND_LIST_SET_PICTURE = 30006;
-export const KIND_LIST_SET_KIND_MUTE = 30007;
-export const KIND_LIST_SET_INTEREST = 30015;
-export const KIND_LIST_SET_EMOJI = 30030;
-export const KIND_LIST_SET_RELEASE_ARTIFACT = 30063;
-export const KIND_LIST_SET_APP_CURATION = 30267;
-export const KIND_LIST_SET_CALENDAR = 31924;
-export const KIND_LIST_SET_STARTER_PACK = 39089;
-export const KIND_LIST_SET_MEDIA_STARTER_PACK = 39092;
-export const KIND_FARM = 30340;
-export const KIND_PLOT = 30350;
-export const KIND_COOP = 30360;
-export const KIND_DOCUMENT = 30361;
-export const KIND_RESOURCE_AREA = 30370;
-export const KIND_RESOURCE_HARVEST_CAP = 30371;
-export const KIND_ACCOUNT_CLAIM = 30380;
-export const KIND_APP_DATA = 30078;
-export const KIND_LISTING = 30402;
-export const KIND_APPLICATION_HANDLER = 31990;
-export const KIND_JOB_REQUEST_MIN = 5000;
-export const KIND_JOB_REQUEST_MAX = 5999;
-export const KIND_JOB_RESULT_MIN = 6000;
-export const KIND_JOB_RESULT_MAX = 6999;
-export const KIND_JOB_FEEDBACK = 7000;
diff --git a/events/bindings/ts/src/lib.ts b/events/bindings/ts/src/lib.ts
@@ -1,3 +0,0 @@
-export const TAG_E_ROOT = "e_root";
-export const TAG_E_PREV = "e_prev";
-export const TAG_D = "d";
-\ No newline at end of file
diff --git a/events/bindings/ts/src/schemas.ts b/events/bindings/ts/src/schemas.ts
@@ -1,214 +0,0 @@
-import { z } from "zod";
-
-export const radroots_listing_image_schema = z.object({
- url: z.string(),
- size: z.object({
- w: z.number(),
- h: z.number()
- }).optional()
-});
-
-export const radroots_listing_location_schema = z.object({
- primary: z.string(),
- city: z.string().optional(),
- region: z.string().optional(),
- country: z.string().optional(),
- lat: z.number().optional(),
- lng: z.number().optional(),
- geohash: z.string().optional()
-});
-
-export const radroots_listing_discount_schema = z.any();
-
-export const radroots_listing_price_schema = z.object({
- amount: z.any(),
- quantity: z.any()
-});
-
-export const radroots_listing_quantity_schema = z.object({
- amount: z.any(),
- unit: z.any(),
- label: z.string().optional()
-});
-
-export const radroots_listing_bin_schema = z.object({
- bin_id: z.string(),
- quantity: z.any(),
- price_per_canonical_unit: z.any(),
- display_amount: z.number().optional(),
- display_unit: z.any().optional(),
- display_label: z.string().optional(),
- display_price: z.any().optional(),
- display_price_unit: z.any().optional()
-});
-
-export const radroots_listing_product_schema = z.object({
- key: z.string(),
- title: z.string(),
- category: z.string(),
- summary: z.string().optional(),
- process: z.string().optional(),
- lot: z.string().optional(),
- location: z.string().optional(),
- profile: z.string().optional(),
- year: z.string().optional()
-});
-
-export const radroots_listing_schema = z.object({
- d_tag: z.string(),
- product: radroots_listing_product_schema,
- primary_bin_id: z.string(),
- bins: z.array(radroots_listing_bin_schema),
- discounts: z.array(radroots_listing_discount_schema).optional(),
- inventory_available: z.number().optional(),
- availability: z.any().optional(),
- delivery_method: z.any().optional(),
- location: radroots_listing_location_schema.optional(),
- images: z.array(radroots_listing_image_schema).optional()
-});
-
-export const radroots_profile_schema = z.object({
- name: z.string(),
- display_name: z.string().optional(),
- nip05: z.string().optional(),
- about: z.string().optional(),
- website: z.string().optional(),
- picture: z.string().optional(),
- banner: z.string().optional(),
- lud06: z.string().optional(),
- lud16: z.string().optional(),
- bot: z.string().optional()
-});
-
-export const radroots_comment_schema = z.object({
- root: z.any(),
- parent: z.any(),
- content: z.string()
-});
-
-export const radroots_reaction_schema = z.object({
- root: z.any(),
- content: z.string()
-});
-
-export const radroots_nostr_event_ptr_schema = z.object({
- id: z.string(),
- relays: z.string().optional()
-});
-
-export const radroots_message_recipient_schema = z.object({
- public_key: z.string(),
- relay_url: z.string().optional()
-});
-
-export const radroots_message_schema = z.object({
- recipients: z.array(radroots_message_recipient_schema),
- content: z.string(),
- reply_to: radroots_nostr_event_ptr_schema.optional(),
- subject: z.string().optional()
-});
-
-export const radroots_follow_profile_schema = z.object({
- published_at: z.number(),
- public_key: z.string(),
- relay_url: z.string().optional(),
- contact_name: z.string().optional()
-});
-
-export const radroots_follow_schema = z.object({
- list: z.array(radroots_follow_profile_schema)
-});
-
-export const radroots_list_entry_schema = z.object({
- tag: z.string(),
- values: z.array(z.string())
-});
-
-export const radroots_list_schema = z.object({
- content: z.string(),
- entries: z.array(radroots_list_entry_schema)
-});
-
-export const radroots_list_set_schema = z.object({
- d_tag: z.string(),
- content: z.string(),
- entries: z.array(radroots_list_entry_schema),
- title: z.string().optional(),
- description: z.string().optional(),
- image: z.string().optional()
-});
-
-export const radroots_geojson_point_schema = z.object({
- type: z.string(),
- coordinates: z.tuple([z.number(), z.number()])
-});
-
-export const radroots_geojson_polygon_schema = z.object({
- type: z.string(),
- coordinates: z.array(z.array(z.tuple([z.number(), z.number()])))
-});
-
-export const radroots_gcs_location_schema = z.object({
- lat: z.number(),
- lng: z.number(),
- geohash: z.string(),
- point: radroots_geojson_point_schema,
- polygon: radroots_geojson_polygon_schema,
- accuracy: z.number().optional(),
- altitude: z.number().optional(),
- tag_0: z.string().optional(),
- label: z.string().optional(),
- area: z.number().optional(),
- elevation: z.number().optional(),
- soil: z.string().optional(),
- climate: z.string().optional(),
- gc_id: z.string().optional(),
- gc_name: z.string().optional(),
- gc_admin1_id: z.string().optional(),
- gc_admin1_name: z.string().optional(),
- gc_country_id: z.string().optional(),
- gc_country_name: z.string().optional()
-});
-
-export const radroots_farm_location_schema = z.object({
- primary: z.string().optional(),
- city: z.string().optional(),
- region: z.string().optional(),
- country: z.string().optional(),
- gcs: radroots_gcs_location_schema
-});
-
-export const radroots_farm_schema = z.object({
- d_tag: z.string(),
- name: z.string(),
- about: z.string().optional(),
- website: z.string().optional(),
- picture: z.string().optional(),
- banner: z.string().optional(),
- location: radroots_farm_location_schema.optional(),
- tags: z.array(z.string()).optional()
-});
-
-export const radroots_farm_ref_schema = z.object({
- pubkey: z.string(),
- d_tag: z.string()
-});
-
-export const radroots_plot_location_schema = z.object({
- primary: z.string().optional(),
- city: z.string().optional(),
- region: z.string().optional(),
- country: z.string().optional(),
- gcs: radroots_gcs_location_schema
-});
-
-export const radroots_plot_schema = z.object({
- d_tag: z.string(),
- farm: radroots_farm_ref_schema,
- name: z.string(),
- about: z.string().optional(),
- location: radroots_plot_location_schema.optional(),
- tags: z.array(z.string()).optional()
-});
-
-export const radroots_plot_farm_ref_schema = radroots_farm_ref_schema;
diff --git a/events/bindings/ts/src/types.ts b/events/bindings/ts/src/types.ts
@@ -1,223 +0,0 @@
-import type { RadrootsCoreDecimal, RadrootsCoreDiscount, RadrootsCoreDiscountValue, RadrootsCoreMoney, RadrootsCorePercent, RadrootsCoreQuantity, RadrootsCoreQuantityPrice, RadrootsCoreUnit } from "@radroots/core";
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type JobFeedbackStatus = "payment_required" | "processing" | "error" | "success" | "partial";
-
-export type JobInputType = "url" | "event" | "job" | "text";
-
-export type JobPaymentRequest = { amount_sat: number, bolt11?: string | null, };
-
-export type RadrootsAccountClaim = { username: string, pubkey: string, nip05?: string | null, };
-
-export type RadrootsAccountClaimEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsAccountClaimEventMetadata, };
-
-export type RadrootsAccountClaimEventMetadata = { id: string, author: string, published_at: number, kind: number, account: RadrootsAccountClaim, };
-
-export type RadrootsAppData = { d_tag: string, content: string, };
-
-export type RadrootsAppDataEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsAppDataEventMetadata, };
-
-export type RadrootsAppDataEventMetadata = { id: string, author: string, published_at: number, kind: number, app_data: RadrootsAppData, };
-
-export type RadrootsComment = { root: RadrootsNostrEventRef, parent: RadrootsNostrEventRef, content: string, };
-
-export type RadrootsCommentEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsCommentEventMetadata, };
-
-export type RadrootsCommentEventMetadata = { id: string, author: string, published_at: number, kind: number, comment: RadrootsComment, };
-
-export type RadrootsCoop = { d_tag: string, name: string, about?: string | null, website?: string | null, picture?: string | null, banner?: string | null, location?: RadrootsCoopLocation | null, tags?: string[] | null, };
-
-export type RadrootsCoopEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsCoopEventMetadata, };
-
-export type RadrootsCoopEventMetadata = { id: string, author: string, published_at: number, kind: number, coop: RadrootsCoop, };
-
-export type RadrootsCoopLocation = { primary?: string | null, city?: string | null, region?: string | null, country?: string | null, gcs: RadrootsGcsLocation, };
-
-export type RadrootsCoopRef = { pubkey: string, d_tag: string, };
-
-export type RadrootsDocument = { d_tag: string, doc_type: string, title: string, version: string, summary?: string | null, effective_at?: number | null, body_markdown?: string | null, subject: RadrootsDocumentSubject, tags?: string[] | null, };
-
-export type RadrootsDocumentEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsDocumentEventMetadata, };
-
-export type RadrootsDocumentEventMetadata = { id: string, author: string, published_at: number, kind: number, document: RadrootsDocument, };
-
-export type RadrootsDocumentSubject = { pubkey: string, address?: string | null, };
-
-export type RadrootsFarm = { d_tag: string, name: string, about?: string | null, website?: string | null, picture?: string | null, banner?: string | null, location?: RadrootsFarmLocation | null, tags?: string[] | null, };
-
-export type RadrootsFarmEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsFarmEventMetadata, };
-
-export type RadrootsFarmEventMetadata = { id: string, author: string, published_at: number, kind: number, farm: RadrootsFarm, };
-
-export type RadrootsFarmLocation = { primary?: string | null, city?: string | null, region?: string | null, country?: string | null, gcs: RadrootsGcsLocation, };
-
-export type RadrootsFarmRef = { pubkey: string, d_tag: string, };
-
-export type RadrootsFollow = { list: Array<RadrootsFollowProfile>, };
-
-export type RadrootsFollowEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsFollowEventMetadata, };
-
-export type RadrootsFollowEventMetadata = { id: string, author: string, published_at: number, kind: number, follow: RadrootsFollow, };
-
-export type RadrootsFollowProfile = { published_at: number, public_key: string, relay_url?: string | null, contact_name?: string | null, };
-
-export type RadrootsGcsLocation = { lat: number, lng: number, geohash: string, point: RadrootsGeoJsonPoint, polygon: RadrootsGeoJsonPolygon, accuracy?: number | null, altitude?: number | null, tag_0?: string | null, label?: string | null, area?: number | null, elevation?: number | null, soil?: string | null, climate?: string | null, gc_id?: string | null, gc_name?: string | null, gc_admin1_id?: string | null, gc_admin1_name?: string | null, gc_country_id?: string | null, gc_country_name?: string | null, };
-
-export type RadrootsGeoChat = { geohash: string, content: string, nickname?: string | null, teleported: boolean, };
-
-export type RadrootsGeoChatEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsGeoChatEventMetadata, };
-
-export type RadrootsGeoChatEventMetadata = { id: string, author: string, published_at: number, kind: number, geochat: RadrootsGeoChat, };
-
-export type RadrootsGeoJsonPoint = { type: string, coordinates: [number, number], };
-
-export type RadrootsGeoJsonPolygon = { type: string, coordinates: Array<Array<[number, number]>>, };
-
-export type RadrootsGiftWrap = { recipient: RadrootsGiftWrapRecipient, content: string, expiration?: number | null, };
-
-export type RadrootsGiftWrapEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsGiftWrapEventMetadata, };
-
-export type RadrootsGiftWrapEventMetadata = { id: string, author: string, published_at: number, kind: number, gift_wrap: RadrootsGiftWrap, };
-
-export type RadrootsGiftWrapRecipient = { public_key: string, relay_url?: string | null, };
-
-export type RadrootsJobFeedback = { kind: number, status: JobFeedbackStatus, extra_info?: string | null, request_event: RadrootsNostrEventPtr, customer_pubkey?: string | null, payment?: JobPaymentRequest | null, content?: string | null, encrypted: boolean, };
-
-export type RadrootsJobFeedbackEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsJobFeedbackEventMetadata, };
-
-export type RadrootsJobFeedbackEventMetadata = { id: string, author: string, published_at: number, kind: number, job_feedback: RadrootsJobFeedback, };
-
-export type RadrootsJobInput = { data: string, input_type: JobInputType, relay?: string | null, marker?: string | null, };
-
-export type RadrootsJobParam = { key: string, value: string, };
-
-export type RadrootsJobRequest = { kind: number, inputs: Array<RadrootsJobInput>, output?: string | null, params: Array<RadrootsJobParam>, bid_sat?: number | null, relays: Array<string>, providers: Array<string>, topics: Array<string>, encrypted: boolean, };
-
-export type RadrootsJobRequestEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsJobRequestEventMetadata, };
-
-export type RadrootsJobRequestEventMetadata = { id: string, author: string, published_at: number, kind: number, job_request: RadrootsJobRequest, };
-
-export type RadrootsJobResult = { kind: number, request_event: RadrootsNostrEventPtr, request_json?: string | null, inputs: Array<RadrootsJobInput>, customer_pubkey?: string | null, payment?: JobPaymentRequest | null, content?: string | null, encrypted: boolean, };
-
-export type RadrootsJobResultEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsJobResultEventMetadata, };
-
-export type RadrootsJobResultEventMetadata = { id: string, author: string, published_at: number, kind: number, job_result: RadrootsJobResult, };
-
-export type RadrootsList = { content: string, entries: Array<RadrootsListEntry>, };
-
-export type RadrootsListEntry = { tag: string, values: Array<string>, };
-
-export type RadrootsListEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsListEventMetadata, };
-
-export type RadrootsListEventMetadata = { id: string, author: string, published_at: number, kind: number, list: RadrootsList, };
-
-export type RadrootsListSet = { d_tag: string, content: string, entries: Array<RadrootsListEntry>, title?: string | null, description?: string | null, image?: string | null, };
-
-export type RadrootsListSetEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsListSetEventMetadata, };
-
-export type RadrootsListSetEventMetadata = { id: string, author: string, published_at: number, kind: number, list_set: RadrootsListSet, };
-
-export type RadrootsListing = { d_tag: string, farm: RadrootsListingFarmRef, product: RadrootsListingProduct, primary_bin_id: string, bins: Array<RadrootsListingBin>, resource_area?: RadrootsResourceAreaRef | null, plot?: RadrootsPlotRef | null, discounts?: RadrootsCoreDiscount[] | null, inventory_available?: RadrootsCoreDecimal | null, availability?: RadrootsListingAvailability | null, delivery_method?: RadrootsListingDeliveryMethod | null, location?: RadrootsListingLocation | null, images?: RadrootsListingImage[] | null, };
-
-export type RadrootsListingAvailability = { "kind": "window", "amount": { start?: number | null, end?: number | null, } } | { "kind": "status", "amount": { status: RadrootsListingStatus, } };
-
-export type RadrootsListingBin = { bin_id: string, quantity: RadrootsCoreQuantity, price_per_canonical_unit: RadrootsCoreQuantityPrice, display_amount?: RadrootsCoreDecimal | null, display_unit?: RadrootsCoreUnit | null, display_label?: string | null, display_price?: RadrootsCoreMoney | null, display_price_unit?: RadrootsCoreUnit | null, };
-
-export type RadrootsListingDeliveryMethod = { "kind": "pickup" } | { "kind": "local_delivery" } | { "kind": "shipping" } | { "kind": "other", "amount": { method: string, } };
-
-export type RadrootsListingEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsListingEventMetadata, };
-
-export type RadrootsListingEventMetadata = { id: string, author: string, published_at: number, kind: number, listing: RadrootsListing, };
-
-export type RadrootsListingFarmRef = { pubkey: string, d_tag: string, };
-
-export type RadrootsListingImage = { url: string, size?: RadrootsListingImageSize | null, };
-
-export type RadrootsListingImageSize = { w: number, h: number, };
-
-export type RadrootsListingLocation = { primary: string, city?: string | null, region?: string | null, country?: string | null, lat?: number | null, lng?: number | null, geohash?: string | null, };
-
-export type RadrootsListingProduct = { key: string, title: string, category: string, summary?: string | null, process?: string | null, lot?: string | null, location?: string | null, profile?: string | null, year?: string | null, };
-
-export type RadrootsListingProductTagKeys = readonly ["key", "title", "category", "summary", "process", "lot", "location", "profile", "year"];
-
-export type RadrootsListingStatus = { "kind": "active" } | { "kind": "sold" } | { "kind": "other", "amount": { value: string, } };
-
-export type RadrootsMessage = { recipients: Array<RadrootsMessageRecipient>, content: string, reply_to?: RadrootsNostrEventPtr | null, subject?: string | null, };
-
-export type RadrootsMessageEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsMessageEventMetadata, };
-
-export type RadrootsMessageEventMetadata = { id: string, author: string, published_at: number, kind: number, message: RadrootsMessage, };
-
-export type RadrootsMessageFile = { recipients: Array<RadrootsMessageRecipient>, file_url: string, reply_to?: RadrootsNostrEventPtr | null, subject?: string | null, file_type: string, encryption_algorithm: string, decryption_key: string, decryption_nonce: string, encrypted_hash: string, original_hash?: string | null, size?: number | null, dimensions?: RadrootsMessageFileDimensions | null, blurhash?: string | null, thumb?: string | null, fallbacks: Array<string>, };
-
-export type RadrootsMessageFileDimensions = { w: number, h: number, };
-
-export type RadrootsMessageFileEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsMessageFileEventMetadata, };
-
-export type RadrootsMessageFileEventMetadata = { id: string, author: string, published_at: number, kind: number, message_file: RadrootsMessageFile, };
-
-export type RadrootsMessageRecipient = { public_key: string, relay_url?: string | null, };
-
-export type RadrootsNostrEvent = { id: string, author: string, created_at: number, kind: number, tags: Array<Array<string>>, content: string, sig: string, };
-
-export type RadrootsNostrEventPtr = { id: string, relays?: string | null, };
-
-export type RadrootsNostrEventRef = { id: string, author: string, kind: number, d_tag?: string | null, relays?: string[] | null, };
-
-export type RadrootsPlot = { d_tag: string, farm: RadrootsFarmRef, name: string, about?: string | null, location?: RadrootsPlotLocation | null, tags?: string[] | null, };
-
-export type RadrootsPlotEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsPlotEventMetadata, };
-
-export type RadrootsPlotEventMetadata = { id: string, author: string, published_at: number, kind: number, plot: RadrootsPlot, };
-
-export type RadrootsPlotLocation = { primary?: string | null, city?: string | null, region?: string | null, country?: string | null, gcs: RadrootsGcsLocation, };
-
-export type RadrootsPlotRef = { pubkey: string, d_tag: string, };
-
-export type RadrootsPost = { content: string, };
-
-export type RadrootsPostEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsPostEventMetadata, };
-
-export type RadrootsPostEventMetadata = { id: string, author: string, published_at: number, kind: number, post: RadrootsPost, };
-
-export type RadrootsProfile = { name: string, display_name?: string | null, nip05?: string | null, about?: string | null, website?: string | null, picture?: string | null, banner?: string | null, lud06?: string | null, lud16?: string | null, bot?: string | null, };
-
-export type RadrootsProfileEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsProfileEventMetadata, };
-
-export type RadrootsProfileEventMetadata = { id: string, author: string, published_at: number, kind: number, profile_type?: RadrootsProfileType | null, profile: RadrootsProfile, };
-
-export type RadrootsProfileType = "individual" | "farm" | "coop" | "any" | "radrootsd";
-
-export type RadrootsReaction = { root: RadrootsNostrEventRef, content: string, };
-
-export type RadrootsReactionEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsReactionEventMetadata, };
-
-export type RadrootsReactionEventMetadata = { id: string, author: string, published_at: number, kind: number, reaction: RadrootsReaction, };
-
-export type RadrootsRelayDocument = { name?: string | null, description?: string | null, pubkey?: string | null, contact?: string | null, supported_nips?: number[] | null, software?: string | null, version?: string | null, };
-
-export type RadrootsResourceArea = { d_tag: string, name: string, about?: string | null, location: RadrootsResourceAreaLocation, tags?: string[] | null, };
-
-export type RadrootsResourceAreaEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsResourceAreaEventMetadata, };
-
-export type RadrootsResourceAreaEventMetadata = { id: string, author: string, published_at: number, kind: number, area: RadrootsResourceArea, };
-
-export type RadrootsResourceAreaLocation = { primary?: string | null, city?: string | null, region?: string | null, country?: string | null, gcs: RadrootsGcsLocation, };
-
-export type RadrootsResourceAreaRef = { pubkey: string, d_tag: string, };
-
-export type RadrootsResourceHarvestCap = { d_tag: string, resource_area: RadrootsResourceAreaRef, product: RadrootsResourceHarvestProduct, start: bigint, end: bigint, cap_quantity: RadrootsCoreQuantity, display_amount?: RadrootsCoreDecimal | null, display_unit?: RadrootsCoreUnit | null, display_label?: string | null, tags?: string[] | null, };
-
-export type RadrootsResourceHarvestCapEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsResourceHarvestCapEventMetadata, };
-
-export type RadrootsResourceHarvestCapEventMetadata = { id: string, author: string, published_at: number, kind: number, cap: RadrootsResourceHarvestCap, };
-
-export type RadrootsResourceHarvestProduct = { key: string, category?: string | null, };
-
-export type RadrootsSeal = { content: string, };
-
-export type RadrootsSealEventIndex = { event: RadrootsNostrEvent, metadata: RadrootsSealEventMetadata, };
-
-export type RadrootsSealEventMetadata = { id: string, author: string, published_at: number, kind: number, seal: RadrootsSeal, };
diff --git a/events/bindings/ts/tsconfig.cjs.json b/events/bindings/ts/tsconfig.cjs.json
@@ -1,15 +0,0 @@
-{
- "extends": "@radroots/tsconfig/tsconfig.esm.json",
- "compilerOptions": {
- "module": "CommonJS",
- "moduleResolution": "Node",
- "rootDir": "./src",
- "outDir": "dist/cjs",
- "declaration": false,
- "declarationMap": false,
- "emitDeclarationOnly": false,
- "tsBuildInfoFile": "node_modules/.cache/tsc.utils-nostr.cjs.tsbuildinfo"
- },
- "include": ["src"],
- "exclude": ["node_modules", "dist"]
-}
diff --git a/events/bindings/ts/tsconfig.esm.json b/events/bindings/ts/tsconfig.esm.json
@@ -1,13 +0,0 @@
-{
- "extends": "@radroots/tsconfig/tsconfig.esm.json",
- "compilerOptions": {
- "moduleResolution": "nodenext",
- "rootDir": "./src",
- "outDir": "dist/esm",
- "declaration": true,
- "declarationMap": true,
- "declarationDir": "dist/types"
- },
- "include": ["src"],
- "exclude": ["node_modules", "dist"]
-}
diff --git a/events/bindings/ts/tsconfig.json b/events/bindings/ts/tsconfig.json
@@ -1,3 +0,0 @@
-{
- "extends": "./tsconfig.esm.json"
-}
diff --git a/events/build.rs b/events/build.rs
@@ -1,12 +1,20 @@
-use std::{env, fs, path::Path};
+use std::{env, fs, path::PathBuf};
+
+fn export_dir(crate_name: &str) -> PathBuf {
+ if let Some(export_dir) = env::var_os("RADROOTS_TS_RS_EXPORT_DIR") {
+ return PathBuf::from(export_dir);
+ }
+ PathBuf::from(format!("../target/ts-rs/{crate_name}"))
+}
fn main() {
println!("cargo:rerun-if-changed=build.rs");
if env::var_os("CARGO_FEATURE_TS_RS").is_some() {
- println!("cargo:rustc-env=TS_RS_EXPORT_DIR=./bindings/ts/src");
- let out_dir = Path::new("bindings/ts/src");
+ let out_dir = export_dir("events");
+ println!("cargo:rustc-env=TS_RS_EXPORT_DIR={}", out_dir.display());
+ println!("cargo:rerun-if-env-changed=RADROOTS_TS_RS_EXPORT_DIR");
if !out_dir.exists() {
- fs::create_dir_all(out_dir).expect("create TS export dir");
+ fs::create_dir_all(&out_dir).expect("create TS export dir");
}
println!("cargo:rerun-if-changed=src");
}
diff --git a/identity/bindings/ts/src/constants.ts b/identity/bindings/ts/src/constants.ts
@@ -1,3 +0,0 @@
-export const RADROOTS_USERNAME_MIN_LEN = 3;
-export const RADROOTS_USERNAME_MAX_LEN = 30;
-export const RADROOTS_USERNAME_REGEX = "^(?!.*\.\.)(?!\.)(?!.*\.$)[a-z0-9._-]{3,30}$";
diff --git a/identity/build.rs b/identity/build.rs
@@ -1,3 +1,21 @@
+use std::{env, fs, path::PathBuf};
+
+fn export_dir(crate_name: &str) -> PathBuf {
+ if let Some(export_dir) = env::var_os("RADROOTS_TS_RS_EXPORT_DIR") {
+ return PathBuf::from(export_dir);
+ }
+ PathBuf::from(format!("../target/ts-rs/{crate_name}"))
+}
+
fn main() {
- println!("cargo:rustc-env=TS_RS_EXPORT_DIR=./bindings/ts/src");
+ println!("cargo:rerun-if-changed=build.rs");
+ if env::var_os("CARGO_FEATURE_TS_RS").is_some() {
+ let out_dir = export_dir("identity");
+ println!("cargo:rustc-env=TS_RS_EXPORT_DIR={}", out_dir.display());
+ println!("cargo:rerun-if-env-changed=RADROOTS_TS_RS_EXPORT_DIR");
+ if !out_dir.exists() {
+ fs::create_dir_all(&out_dir).expect("create TS export dir");
+ }
+ println!("cargo:rerun-if-changed=src");
+ }
}
diff --git a/package.json b/package.json
@@ -1,16 +0,0 @@
-{
- "name": "rad-roots-crates",
- "private": true,
- "scripts": {
- "build": "turbo run build",
- "dev": "turbo run dev"
- },
- "devDependencies": {
- "turbo": "2.5.3",
- "typescript": "^5.8.3"
- },
- "engines": {
- "node": ">=20"
- },
- "packageManager": "pnpm@10.25.0"
-}
-\ No newline at end of file
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
@@ -1,1130 +0,0 @@
-lockfileVersion: '9.0'
-
-settings:
- autoInstallPeers: true
- excludeLinksFromLockfile: false
-
-importers:
-
- .:
- devDependencies:
- turbo:
- specifier: 2.5.3
- version: 2.5.3
- typescript:
- specifier: ^5.8.3
- version: 5.9.3
-
- ../pwa/packages/tsconfig: {}
-
- core/bindings/ts:
- dependencies:
- zod:
- specifier: ^4.0.5
- version: 4.2.1
- devDependencies:
- '@radroots/tsconfig':
- specifier: workspace:*
- version: link:../../../../pwa/packages/tsconfig
- rimraf:
- specifier: ^6.0.1
- version: 6.1.2
- ts-to-zod:
- specifier: ^3.15.0
- version: 3.15.0
-
- events-indexed/bindings/ts:
- dependencies:
- zod:
- specifier: ^4.0.5
- version: 4.2.1
- devDependencies:
- '@radroots/tsconfig':
- specifier: workspace:*
- version: link:../../../../pwa/packages/tsconfig
- rimraf:
- specifier: ^6.0.1
- version: 6.1.2
- ts-to-zod:
- specifier: ^3.15.0
- version: 3.15.0
-
- events/bindings/ts:
- dependencies:
- '@radroots/core':
- specifier: workspace:*
- version: link:../../../core/bindings/ts
- zod:
- specifier: ^4.0.5
- version: 4.2.1
- devDependencies:
- '@radroots/tsconfig':
- specifier: workspace:*
- version: link:../../../../pwa/packages/tsconfig
- rimraf:
- specifier: ^6.0.1
- version: 6.1.2
- ts-to-zod:
- specifier: ^3.15.0
- version: 3.15.0
-
- tangle-db-schema/bindings/ts:
- dependencies:
- '@radroots/types':
- specifier: workspace:*
- version: link:../../../types/bindings/ts
- devDependencies:
- '@radroots/tsconfig':
- specifier: workspace:*
- version: link:../../../../pwa/packages/tsconfig
- rimraf:
- specifier: ^6.0.1
- version: 6.1.2
-
- trade/bindings/ts:
- dependencies:
- '@radroots/core':
- specifier: workspace:*
- version: link:../../../core/bindings/ts
- '@radroots/events':
- specifier: workspace:*
- version: link:../../../events/bindings/ts
- zod:
- specifier: ^4.0.5
- version: 4.2.1
- devDependencies:
- '@radroots/tsconfig':
- specifier: workspace:*
- version: link:../../../../pwa/packages/tsconfig
- rimraf:
- specifier: ^6.0.1
- version: 6.1.2
- ts-to-zod:
- specifier: ^3.15.0
- version: 3.15.0
-
- types/bindings/ts:
- devDependencies:
- '@radroots/tsconfig':
- specifier: workspace:*
- version: link:../../../../pwa/packages/tsconfig
- rimraf:
- specifier: ^6.0.1
- version: 6.1.2
-
-packages:
-
- '@inquirer/external-editor@1.0.3':
- resolution: {integrity: sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA==}
- engines: {node: '>=18'}
- peerDependencies:
- '@types/node': '>=18'
- peerDependenciesMeta:
- '@types/node':
- optional: true
-
- '@isaacs/balanced-match@4.0.1':
- resolution: {integrity: sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==}
- engines: {node: 20 || >=22}
-
- '@isaacs/brace-expansion@5.0.0':
- resolution: {integrity: sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA==}
- engines: {node: 20 || >=22}
-
- '@oclif/core@4.8.0':
- resolution: {integrity: sha512-jteNUQKgJHLHFbbz806aGZqf+RJJ7t4gwF4MYa8fCwCxQ8/klJNWc0MvaJiBebk7Mc+J39mdlsB4XraaCKznFw==}
- engines: {node: '>=18.0.0'}
-
- '@typescript/vfs@1.6.2':
- resolution: {integrity: sha512-hoBwJwcbKHmvd2QVebiytN1aELvpk9B74B4L1mFm/XT1Q/VOYAWl2vQ9AWRFtQq8zmz6enTpfTV8WRc4ATjW/g==}
- peerDependencies:
- typescript: '*'
-
- ansi-escapes@4.3.2:
- resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==}
- engines: {node: '>=8'}
-
- ansi-regex@5.0.1:
- resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
- engines: {node: '>=8'}
-
- ansi-styles@4.3.0:
- resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
- engines: {node: '>=8'}
-
- ansis@3.17.0:
- resolution: {integrity: sha512-0qWUglt9JEqLFr3w1I1pbrChn1grhaiAR2ocX1PP/flRmxgtwTzPFFFnfIlD6aMOLQZgSuCRlidD70lvx8yhzg==}
- engines: {node: '>=14'}
-
- anymatch@3.1.3:
- resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
- engines: {node: '>= 8'}
-
- async@3.2.6:
- resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==}
-
- balanced-match@1.0.2:
- resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
-
- base64-js@1.5.1:
- resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}
-
- binary-extensions@2.3.0:
- resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
- engines: {node: '>=8'}
-
- bl@4.1.0:
- resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==}
-
- brace-expansion@2.0.2:
- resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==}
-
- braces@3.0.3:
- resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
- engines: {node: '>=8'}
-
- buffer@5.7.1:
- resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==}
-
- callsites@3.1.0:
- resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
- engines: {node: '>=6'}
-
- case@1.6.3:
- resolution: {integrity: sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ==}
- engines: {node: '>= 0.8.0'}
-
- chalk@4.1.2:
- resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
- engines: {node: '>=10'}
-
- chardet@2.1.1:
- resolution: {integrity: sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==}
-
- chokidar@3.6.0:
- resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
- engines: {node: '>= 8.10.0'}
-
- clean-stack@3.0.1:
- resolution: {integrity: sha512-lR9wNiMRcVQjSB3a7xXGLuz4cr4wJuuXlaAEbRutGowQTmlp7R72/DOgN21e8jdwblMWl9UOJMJXarX94pzKdg==}
- engines: {node: '>=10'}
-
- cli-cursor@3.1.0:
- resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==}
- engines: {node: '>=8'}
-
- cli-spinners@2.9.2:
- resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==}
- engines: {node: '>=6'}
-
- cli-width@3.0.0:
- resolution: {integrity: sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==}
- engines: {node: '>= 10'}
-
- clone@1.0.4:
- resolution: {integrity: sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==}
- engines: {node: '>=0.8'}
-
- color-convert@2.0.1:
- resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
- engines: {node: '>=7.0.0'}
-
- color-name@1.1.4:
- resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
-
- debug@4.4.3:
- resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
- engines: {node: '>=6.0'}
- peerDependencies:
- supports-color: '*'
- peerDependenciesMeta:
- supports-color:
- optional: true
-
- defaults@1.0.4:
- resolution: {integrity: sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==}
-
- ejs@3.1.10:
- resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==}
- engines: {node: '>=0.10.0'}
- hasBin: true
-
- emoji-regex@8.0.0:
- resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
-
- escape-string-regexp@1.0.5:
- resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}
- engines: {node: '>=0.8.0'}
-
- escape-string-regexp@4.0.0:
- resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
- engines: {node: '>=10'}
-
- esm@3.2.25:
- resolution: {integrity: sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==}
- engines: {node: '>=6'}
-
- fdir@6.5.0:
- resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
- engines: {node: '>=12.0.0'}
- peerDependencies:
- picomatch: ^3 || ^4
- peerDependenciesMeta:
- picomatch:
- optional: true
-
- figures@3.2.0:
- resolution: {integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==}
- engines: {node: '>=8'}
-
- filelist@1.0.4:
- resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==}
-
- fill-range@7.1.1:
- resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
- engines: {node: '>=8'}
-
- fs-extra@11.3.3:
- resolution: {integrity: sha512-VWSRii4t0AFm6ixFFmLLx1t7wS1gh+ckoa84aOeapGum0h+EZd1EhEumSB+ZdDLnEPuucsVB9oB7cxJHap6Afg==}
- engines: {node: '>=14.14'}
-
- fsevents@2.3.3:
- resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
- engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
- os: [darwin]
-
- get-package-type@0.1.0:
- resolution: {integrity: sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==}
- engines: {node: '>=8.0.0'}
-
- glob-parent@5.1.2:
- resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
- engines: {node: '>= 6'}
-
- glob@13.0.0:
- resolution: {integrity: sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==}
- engines: {node: 20 || >=22}
-
- graceful-fs@4.2.11:
- resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
-
- has-flag@4.0.0:
- resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
- engines: {node: '>=8'}
-
- iconv-lite@0.7.1:
- resolution: {integrity: sha512-2Tth85cXwGFHfvRgZWszZSvdo+0Xsqmw8k8ZwxScfcBneNUraK+dxRxRm24nszx80Y0TVio8kKLt5sLE7ZCLlw==}
- engines: {node: '>=0.10.0'}
-
- ieee754@1.2.1:
- resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
-
- indent-string@4.0.0:
- resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==}
- engines: {node: '>=8'}
-
- inherits@2.0.4:
- resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
-
- inquirer@8.2.7:
- resolution: {integrity: sha512-UjOaSel/iddGZJ5xP/Eixh6dY1XghiBw4XK13rCCIJcJfyhhoul/7KhLLUGtebEj6GDYM6Vnx/mVsjx2L/mFIA==}
- engines: {node: '>=12.0.0'}
-
- is-binary-path@2.1.0:
- resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
- engines: {node: '>=8'}
-
- is-docker@2.2.1:
- resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}
- engines: {node: '>=8'}
- hasBin: true
-
- is-extglob@2.1.1:
- resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
- engines: {node: '>=0.10.0'}
-
- is-fullwidth-code-point@3.0.0:
- resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
- engines: {node: '>=8'}
-
- is-glob@4.0.3:
- resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
- engines: {node: '>=0.10.0'}
-
- is-interactive@1.0.0:
- resolution: {integrity: sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==}
- engines: {node: '>=8'}
-
- is-number@7.0.0:
- resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
- engines: {node: '>=0.12.0'}
-
- is-observable@2.1.0:
- resolution: {integrity: sha512-DailKdLb0WU+xX8K5w7VsJhapwHLZ9jjmazqCJq4X12CTgqq73TKnbRcnSLuXYPOoLQgV5IrD7ePiX/h1vnkBw==}
- engines: {node: '>=8'}
-
- is-unicode-supported@0.1.0:
- resolution: {integrity: sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==}
- engines: {node: '>=10'}
-
- is-wsl@2.2.0:
- resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==}
- engines: {node: '>=8'}
-
- jake@10.9.4:
- resolution: {integrity: sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==}
- engines: {node: '>=10'}
- hasBin: true
-
- jsonfile@6.2.0:
- resolution: {integrity: sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==}
-
- lilconfig@3.1.3:
- resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==}
- engines: {node: '>=14'}
-
- lodash@4.17.21:
- resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==}
-
- log-symbols@4.1.0:
- resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==}
- engines: {node: '>=10'}
-
- lru-cache@11.2.4:
- resolution: {integrity: sha512-B5Y16Jr9LB9dHVkh6ZevG+vAbOsNOYCX+sXvFWFu7B3Iz5mijW3zdbMyhsh8ANd2mSWBYdJgnqi+mL7/LrOPYg==}
- engines: {node: 20 || >=22}
-
- mimic-fn@2.1.0:
- resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
- engines: {node: '>=6'}
-
- minimatch@10.1.1:
- resolution: {integrity: sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ==}
- engines: {node: 20 || >=22}
-
- minimatch@5.1.6:
- resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==}
- engines: {node: '>=10'}
-
- minimatch@9.0.5:
- resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}
- engines: {node: '>=16 || 14 >=14.17'}
-
- minipass@7.1.2:
- resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==}
- engines: {node: '>=16 || 14 >=14.17'}
-
- ms@2.1.3:
- resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
-
- mute-stream@0.0.8:
- resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==}
-
- normalize-path@3.0.0:
- resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
- engines: {node: '>=0.10.0'}
-
- observable-fns@0.6.1:
- resolution: {integrity: sha512-9gRK4+sRWzeN6AOewNBTLXir7Zl/i3GB6Yl26gK4flxz8BXVpD3kt8amREmWNb0mxYOGDotvE5a4N+PtGGKdkg==}
-
- onetime@5.1.2:
- resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}
- engines: {node: '>=6'}
-
- ora@5.4.1:
- resolution: {integrity: sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==}
- engines: {node: '>=10'}
-
- package-json-from-dist@1.0.1:
- resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==}
-
- path-scurry@2.0.1:
- resolution: {integrity: sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA==}
- engines: {node: 20 || >=22}
-
- picocolors@1.1.1:
- resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
-
- picomatch@2.3.1:
- resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
- engines: {node: '>=8.6'}
-
- picomatch@4.0.3:
- resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}
- engines: {node: '>=12'}
-
- prettier@3.0.3:
- resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==}
- engines: {node: '>=14'}
- hasBin: true
-
- readable-stream@3.6.2:
- resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==}
- engines: {node: '>= 6'}
-
- readdirp@3.6.0:
- resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
- engines: {node: '>=8.10.0'}
-
- restore-cursor@3.1.0:
- resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==}
- engines: {node: '>=8'}
-
- rimraf@6.1.2:
- resolution: {integrity: sha512-cFCkPslJv7BAXJsYlK1dZsbP8/ZNLkCAQ0bi1hf5EKX2QHegmDFEFA6QhuYJlk7UDdc+02JjO80YSOrWPpw06g==}
- engines: {node: 20 || >=22}
- hasBin: true
-
- run-async@2.4.1:
- resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==}
- engines: {node: '>=0.12.0'}
-
- rxjs@7.8.2:
- resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==}
-
- safe-buffer@5.2.1:
- resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}
-
- safer-buffer@2.1.2:
- resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
-
- semver@7.7.3:
- resolution: {integrity: sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==}
- engines: {node: '>=10'}
- hasBin: true
-
- signal-exit@3.0.7:
- resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
-
- slash@3.0.0:
- resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
- engines: {node: '>=8'}
-
- string-width@4.2.3:
- resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
- engines: {node: '>=8'}
-
- string_decoder@1.3.0:
- resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==}
-
- strip-ansi@6.0.1:
- resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
- engines: {node: '>=8'}
-
- supports-color@7.2.0:
- resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
- engines: {node: '>=8'}
-
- supports-color@8.1.1:
- resolution: {integrity: sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==}
- engines: {node: '>=10'}
-
- threads@1.7.0:
- resolution: {integrity: sha512-Mx5NBSHX3sQYR6iI9VYbgHKBLisyB+xROCBGjjWm1O9wb9vfLxdaGtmT/KCjUqMsSNW6nERzCW3T6H43LqjDZQ==}
-
- through@2.3.8:
- resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==}
-
- tiny-worker@2.3.0:
- resolution: {integrity: sha512-pJ70wq5EAqTAEl9IkGzA+fN0836rycEuz2Cn6yeZ6FRzlVS5IDOkFHpIoEsksPRQV34GDqXm65+OlnZqUSyK2g==}
-
- tinyglobby@0.2.15:
- resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}
- engines: {node: '>=12.0.0'}
-
- to-regex-range@5.0.1:
- resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
- engines: {node: '>=8.0'}
-
- ts-to-zod@3.15.0:
- resolution: {integrity: sha512-Lu5ITqD8xCIo4JZp4Cg3iSK3J2x3TGwwuDtNHfAIlx1mXWKClRdzqV+x6CFEzhKtJlZzhyvJIqg7DzrWfsdVSg==}
- hasBin: true
-
- tslib@1.14.1:
- resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}
-
- tslib@2.8.1:
- resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
-
- tsutils@3.21.0:
- resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
- engines: {node: '>= 6'}
- peerDependencies:
- typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'
-
- turbo-darwin-64@2.5.3:
- resolution: {integrity: sha512-YSItEVBUIvAGPUDpAB9etEmSqZI3T6BHrkBkeSErvICXn3dfqXUfeLx35LfptLDEbrzFUdwYFNmt8QXOwe9yaw==}
- cpu: [x64]
- os: [darwin]
-
- turbo-darwin-arm64@2.5.3:
- resolution: {integrity: sha512-5PefrwHd42UiZX7YA9m1LPW6x9YJBDErXmsegCkVp+GjmWrADfEOxpFrGQNonH3ZMj77WZB2PVE5Aw3gA+IOhg==}
- cpu: [arm64]
- os: [darwin]
-
- turbo-linux-64@2.5.3:
- resolution: {integrity: sha512-M9xigFgawn5ofTmRzvjjLj3Lqc05O8VHKuOlWNUlnHPUltFquyEeSkpQNkE/vpPdOR14AzxqHbhhxtfS4qvb1w==}
- cpu: [x64]
- os: [linux]
-
- turbo-linux-arm64@2.5.3:
- resolution: {integrity: sha512-auJRbYZ8SGJVqvzTikpg1bsRAsiI9Tk0/SDkA5Xgg0GdiHDH/BOzv1ZjDE2mjmlrO/obr19Dw+39OlMhwLffrw==}
- cpu: [arm64]
- os: [linux]
-
- turbo-windows-64@2.5.3:
- resolution: {integrity: sha512-arLQYohuHtIEKkmQSCU9vtrKUg+/1TTstWB9VYRSsz+khvg81eX6LYHtXJfH/dK7Ho6ck+JaEh5G+QrE1jEmCQ==}
- cpu: [x64]
- os: [win32]
-
- turbo-windows-arm64@2.5.3:
- resolution: {integrity: sha512-3JPn66HAynJ0gtr6H+hjY4VHpu1RPKcEwGATvGUTmLmYSYBQieVlnGDRMMoYN066YfyPqnNGCfhYbXfH92Cm0g==}
- cpu: [arm64]
- os: [win32]
-
- turbo@2.5.3:
- resolution: {integrity: sha512-iHuaNcq5GZZnr3XDZNuu2LSyCzAOPwDuo5Qt+q64DfsTP1i3T2bKfxJhni2ZQxsvAoxRbuUK5QetJki4qc5aYA==}
- hasBin: true
-
- type-fest@0.21.3:
- resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==}
- engines: {node: '>=10'}
-
- typescript@5.9.3:
- resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
- engines: {node: '>=14.17'}
- hasBin: true
-
- universalify@2.0.1:
- resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
- engines: {node: '>= 10.0.0'}
-
- util-deprecate@1.0.2:
- resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
-
- wcwidth@1.0.1:
- resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==}
-
- widest-line@3.1.0:
- resolution: {integrity: sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==}
- engines: {node: '>=8'}
-
- wordwrap@1.0.0:
- resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==}
-
- wrap-ansi@6.2.0:
- resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==}
- engines: {node: '>=8'}
-
- wrap-ansi@7.0.0:
- resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
- engines: {node: '>=10'}
-
- zod@3.25.76:
- resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
-
- zod@4.2.1:
- resolution: {integrity: sha512-0wZ1IRqGGhMP76gLqz8EyfBXKk0J2qo2+H3fi4mcUP/KtTocoX08nmIAHl1Z2kJIZbZee8KOpBCSNPRgauucjw==}
-
-snapshots:
-
- '@inquirer/external-editor@1.0.3':
- dependencies:
- chardet: 2.1.1
- iconv-lite: 0.7.1
-
- '@isaacs/balanced-match@4.0.1': {}
-
- '@isaacs/brace-expansion@5.0.0':
- dependencies:
- '@isaacs/balanced-match': 4.0.1
-
- '@oclif/core@4.8.0':
- dependencies:
- ansi-escapes: 4.3.2
- ansis: 3.17.0
- clean-stack: 3.0.1
- cli-spinners: 2.9.2
- debug: 4.4.3(supports-color@8.1.1)
- ejs: 3.1.10
- get-package-type: 0.1.0
- indent-string: 4.0.0
- is-wsl: 2.2.0
- lilconfig: 3.1.3
- minimatch: 9.0.5
- semver: 7.7.3
- string-width: 4.2.3
- supports-color: 8.1.1
- tinyglobby: 0.2.15
- widest-line: 3.1.0
- wordwrap: 1.0.0
- wrap-ansi: 7.0.0
-
- '@typescript/vfs@1.6.2(typescript@5.9.3)':
- dependencies:
- debug: 4.4.3(supports-color@8.1.1)
- typescript: 5.9.3
- transitivePeerDependencies:
- - supports-color
-
- ansi-escapes@4.3.2:
- dependencies:
- type-fest: 0.21.3
-
- ansi-regex@5.0.1: {}
-
- ansi-styles@4.3.0:
- dependencies:
- color-convert: 2.0.1
-
- ansis@3.17.0: {}
-
- anymatch@3.1.3:
- dependencies:
- normalize-path: 3.0.0
- picomatch: 2.3.1
-
- async@3.2.6: {}
-
- balanced-match@1.0.2: {}
-
- base64-js@1.5.1: {}
-
- binary-extensions@2.3.0: {}
-
- bl@4.1.0:
- dependencies:
- buffer: 5.7.1
- inherits: 2.0.4
- readable-stream: 3.6.2
-
- brace-expansion@2.0.2:
- dependencies:
- balanced-match: 1.0.2
-
- braces@3.0.3:
- dependencies:
- fill-range: 7.1.1
-
- buffer@5.7.1:
- dependencies:
- base64-js: 1.5.1
- ieee754: 1.2.1
-
- callsites@3.1.0: {}
-
- case@1.6.3: {}
-
- chalk@4.1.2:
- dependencies:
- ansi-styles: 4.3.0
- supports-color: 7.2.0
-
- chardet@2.1.1: {}
-
- chokidar@3.6.0:
- dependencies:
- anymatch: 3.1.3
- braces: 3.0.3
- glob-parent: 5.1.2
- is-binary-path: 2.1.0
- is-glob: 4.0.3
- normalize-path: 3.0.0
- readdirp: 3.6.0
- optionalDependencies:
- fsevents: 2.3.3
-
- clean-stack@3.0.1:
- dependencies:
- escape-string-regexp: 4.0.0
-
- cli-cursor@3.1.0:
- dependencies:
- restore-cursor: 3.1.0
-
- cli-spinners@2.9.2: {}
-
- cli-width@3.0.0: {}
-
- clone@1.0.4: {}
-
- color-convert@2.0.1:
- dependencies:
- color-name: 1.1.4
-
- color-name@1.1.4: {}
-
- debug@4.4.3(supports-color@8.1.1):
- dependencies:
- ms: 2.1.3
- optionalDependencies:
- supports-color: 8.1.1
-
- defaults@1.0.4:
- dependencies:
- clone: 1.0.4
-
- ejs@3.1.10:
- dependencies:
- jake: 10.9.4
-
- emoji-regex@8.0.0: {}
-
- escape-string-regexp@1.0.5: {}
-
- escape-string-regexp@4.0.0: {}
-
- esm@3.2.25:
- optional: true
-
- fdir@6.5.0(picomatch@4.0.3):
- optionalDependencies:
- picomatch: 4.0.3
-
- figures@3.2.0:
- dependencies:
- escape-string-regexp: 1.0.5
-
- filelist@1.0.4:
- dependencies:
- minimatch: 5.1.6
-
- fill-range@7.1.1:
- dependencies:
- to-regex-range: 5.0.1
-
- fs-extra@11.3.3:
- dependencies:
- graceful-fs: 4.2.11
- jsonfile: 6.2.0
- universalify: 2.0.1
-
- fsevents@2.3.3:
- optional: true
-
- get-package-type@0.1.0: {}
-
- glob-parent@5.1.2:
- dependencies:
- is-glob: 4.0.3
-
- glob@13.0.0:
- dependencies:
- minimatch: 10.1.1
- minipass: 7.1.2
- path-scurry: 2.0.1
-
- graceful-fs@4.2.11: {}
-
- has-flag@4.0.0: {}
-
- iconv-lite@0.7.1:
- dependencies:
- safer-buffer: 2.1.2
-
- ieee754@1.2.1: {}
-
- indent-string@4.0.0: {}
-
- inherits@2.0.4: {}
-
- inquirer@8.2.7:
- dependencies:
- '@inquirer/external-editor': 1.0.3
- ansi-escapes: 4.3.2
- chalk: 4.1.2
- cli-cursor: 3.1.0
- cli-width: 3.0.0
- figures: 3.2.0
- lodash: 4.17.21
- mute-stream: 0.0.8
- ora: 5.4.1
- run-async: 2.4.1
- rxjs: 7.8.2
- string-width: 4.2.3
- strip-ansi: 6.0.1
- through: 2.3.8
- wrap-ansi: 6.2.0
- transitivePeerDependencies:
- - '@types/node'
-
- is-binary-path@2.1.0:
- dependencies:
- binary-extensions: 2.3.0
-
- is-docker@2.2.1: {}
-
- is-extglob@2.1.1: {}
-
- is-fullwidth-code-point@3.0.0: {}
-
- is-glob@4.0.3:
- dependencies:
- is-extglob: 2.1.1
-
- is-interactive@1.0.0: {}
-
- is-number@7.0.0: {}
-
- is-observable@2.1.0: {}
-
- is-unicode-supported@0.1.0: {}
-
- is-wsl@2.2.0:
- dependencies:
- is-docker: 2.2.1
-
- jake@10.9.4:
- dependencies:
- async: 3.2.6
- filelist: 1.0.4
- picocolors: 1.1.1
-
- jsonfile@6.2.0:
- dependencies:
- universalify: 2.0.1
- optionalDependencies:
- graceful-fs: 4.2.11
-
- lilconfig@3.1.3: {}
-
- lodash@4.17.21: {}
-
- log-symbols@4.1.0:
- dependencies:
- chalk: 4.1.2
- is-unicode-supported: 0.1.0
-
- lru-cache@11.2.4: {}
-
- mimic-fn@2.1.0: {}
-
- minimatch@10.1.1:
- dependencies:
- '@isaacs/brace-expansion': 5.0.0
-
- minimatch@5.1.6:
- dependencies:
- brace-expansion: 2.0.2
-
- minimatch@9.0.5:
- dependencies:
- brace-expansion: 2.0.2
-
- minipass@7.1.2: {}
-
- ms@2.1.3: {}
-
- mute-stream@0.0.8: {}
-
- normalize-path@3.0.0: {}
-
- observable-fns@0.6.1: {}
-
- onetime@5.1.2:
- dependencies:
- mimic-fn: 2.1.0
-
- ora@5.4.1:
- dependencies:
- bl: 4.1.0
- chalk: 4.1.2
- cli-cursor: 3.1.0
- cli-spinners: 2.9.2
- is-interactive: 1.0.0
- is-unicode-supported: 0.1.0
- log-symbols: 4.1.0
- strip-ansi: 6.0.1
- wcwidth: 1.0.1
-
- package-json-from-dist@1.0.1: {}
-
- path-scurry@2.0.1:
- dependencies:
- lru-cache: 11.2.4
- minipass: 7.1.2
-
- picocolors@1.1.1: {}
-
- picomatch@2.3.1: {}
-
- picomatch@4.0.3: {}
-
- prettier@3.0.3: {}
-
- readable-stream@3.6.2:
- dependencies:
- inherits: 2.0.4
- string_decoder: 1.3.0
- util-deprecate: 1.0.2
-
- readdirp@3.6.0:
- dependencies:
- picomatch: 2.3.1
-
- restore-cursor@3.1.0:
- dependencies:
- onetime: 5.1.2
- signal-exit: 3.0.7
-
- rimraf@6.1.2:
- dependencies:
- glob: 13.0.0
- package-json-from-dist: 1.0.1
-
- run-async@2.4.1: {}
-
- rxjs@7.8.2:
- dependencies:
- tslib: 2.8.1
-
- safe-buffer@5.2.1: {}
-
- safer-buffer@2.1.2: {}
-
- semver@7.7.3: {}
-
- signal-exit@3.0.7: {}
-
- slash@3.0.0: {}
-
- string-width@4.2.3:
- dependencies:
- emoji-regex: 8.0.0
- is-fullwidth-code-point: 3.0.0
- strip-ansi: 6.0.1
-
- string_decoder@1.3.0:
- dependencies:
- safe-buffer: 5.2.1
-
- strip-ansi@6.0.1:
- dependencies:
- ansi-regex: 5.0.1
-
- supports-color@7.2.0:
- dependencies:
- has-flag: 4.0.0
-
- supports-color@8.1.1:
- dependencies:
- has-flag: 4.0.0
-
- threads@1.7.0:
- dependencies:
- callsites: 3.1.0
- debug: 4.4.3(supports-color@8.1.1)
- is-observable: 2.1.0
- observable-fns: 0.6.1
- optionalDependencies:
- tiny-worker: 2.3.0
- transitivePeerDependencies:
- - supports-color
-
- through@2.3.8: {}
-
- tiny-worker@2.3.0:
- dependencies:
- esm: 3.2.25
- optional: true
-
- tinyglobby@0.2.15:
- dependencies:
- fdir: 6.5.0(picomatch@4.0.3)
- picomatch: 4.0.3
-
- to-regex-range@5.0.1:
- dependencies:
- is-number: 7.0.0
-
- ts-to-zod@3.15.0:
- dependencies:
- '@oclif/core': 4.8.0
- '@typescript/vfs': 1.6.2(typescript@5.9.3)
- case: 1.6.3
- chokidar: 3.6.0
- fs-extra: 11.3.3
- inquirer: 8.2.7
- lodash: 4.17.21
- ora: 5.4.1
- prettier: 3.0.3
- rxjs: 7.8.2
- slash: 3.0.0
- threads: 1.7.0
- tslib: 2.8.1
- tsutils: 3.21.0(typescript@5.9.3)
- typescript: 5.9.3
- zod: 3.25.76
- transitivePeerDependencies:
- - '@types/node'
- - supports-color
-
- tslib@1.14.1: {}
-
- tslib@2.8.1: {}
-
- tsutils@3.21.0(typescript@5.9.3):
- dependencies:
- tslib: 1.14.1
- typescript: 5.9.3
-
- turbo-darwin-64@2.5.3:
- optional: true
-
- turbo-darwin-arm64@2.5.3:
- optional: true
-
- turbo-linux-64@2.5.3:
- optional: true
-
- turbo-linux-arm64@2.5.3:
- optional: true
-
- turbo-windows-64@2.5.3:
- optional: true
-
- turbo-windows-arm64@2.5.3:
- optional: true
-
- turbo@2.5.3:
- optionalDependencies:
- turbo-darwin-64: 2.5.3
- turbo-darwin-arm64: 2.5.3
- turbo-linux-64: 2.5.3
- turbo-linux-arm64: 2.5.3
- turbo-windows-64: 2.5.3
- turbo-windows-arm64: 2.5.3
-
- type-fest@0.21.3: {}
-
- typescript@5.9.3: {}
-
- universalify@2.0.1: {}
-
- util-deprecate@1.0.2: {}
-
- wcwidth@1.0.1:
- dependencies:
- defaults: 1.0.4
-
- widest-line@3.1.0:
- dependencies:
- string-width: 4.2.3
-
- wordwrap@1.0.0: {}
-
- wrap-ansi@6.2.0:
- dependencies:
- ansi-styles: 4.3.0
- string-width: 4.2.3
- strip-ansi: 6.0.1
-
- wrap-ansi@7.0.0:
- dependencies:
- ansi-styles: 4.3.0
- string-width: 4.2.3
- strip-ansi: 6.0.1
-
- zod@3.25.76: {}
-
- zod@4.2.1: {}
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
@@ -1,3 +0,0 @@
-packages:
- - "*/bindings/ts"
- - "../pwa/packages/tsconfig"
diff --git a/tangle-db-schema/bindings/ts/package.json b/tangle-db-schema/bindings/ts/package.json
@@ -1,41 +0,0 @@
-{
- "name": "@radroots/tangle-db-schema",
- "version": "1.0.0",
- "private": true,
- "license": "AGPLv3",
- "type": "module",
- "main": "./dist/cjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/types/index.d.ts",
- "exports": {
- ".": {
- "types": "./dist/types/index.d.ts",
- "import": "./dist/esm/index.js",
- "require": "./dist/cjs/index.js"
- }
- },
- "files": [
- "dist"
- ],
- "sideEffects": false,
- "scripts": {
- "build:esm": "tsc -p tsconfig.esm.json",
- "build:cjs": "tsc -p tsconfig.cjs.json",
- "build": "npm run build:esm && npm run build:cjs",
- "prebuild": "npm run clean && npm run prepend-imports",
- "prepend-imports": "bash -c 'f=./src/types.ts; line=\"import type { IResult, IResultList, IResultPass } from \\\"@radroots/types\\\";\"; grep -qxF \"$line\" \"$f\" || (echo -e \"$line\\n\\n$(cat $f)\" > \"$f\")'",
- "clean": "rimraf dist",
- "dev": "npm run watch",
- "watch": "tsc -w"
- },
- "devDependencies": {
- "@radroots/tsconfig": "workspace:*",
- "rimraf": "^6.0.1"
- },
- "dependencies": {
- "@radroots/types": "workspace:*"
- },
- "publishConfig": {
- "access": "public"
- }
-}
diff --git a/tangle-db-schema/bindings/ts/src/index.ts b/tangle-db-schema/bindings/ts/src/index.ts
@@ -1 +0,0 @@
-export * from "./types.js";
diff --git a/tangle-db-schema/bindings/ts/src/types.ts b/tangle-db-schema/bindings/ts/src/types.ts
@@ -1,567 +0,0 @@
-import type { IResult, IResultList, IResultPass } from "@radroots/types";
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type Farm = { id: string, created_at: string, updated_at: string, d_tag: string, pubkey: string, name: string, about: string | null, website: string | null, picture: string | null, banner: string | null, location_primary: string | null, location_city: string | null, location_region: string | null, location_country: string | null, };
-
-export type FarmFindManyRel = never;
-
-export type FarmGcsLocation = { id: string, created_at: string, updated_at: string, farm_id: string, gcs_location_id: string, role: string, };
-
-export type FarmGcsLocationFindManyRel = never;
-
-export type FarmGcsLocationQueryBindValues = { id: string, } | { farm_id: string, } | { gcs_location_id: string, };
-
-export type FarmMember = { id: string, created_at: string, updated_at: string, farm_id: string, member_pubkey: string, role: string, };
-
-export type FarmMemberClaim = { id: string, created_at: string, updated_at: string, member_pubkey: string, farm_pubkey: string, };
-
-export type FarmMemberClaimFindManyRel = never;
-
-export type FarmMemberClaimQueryBindValues = { id: string, } | { member_pubkey: string, } | { farm_pubkey: string, };
-
-export type FarmMemberFindManyRel = never;
-
-export type FarmMemberQueryBindValues = { id: string, } | { farm_id: string, } | { member_pubkey: string, };
-
-export type FarmQueryBindValues = { id: string, } | { d_tag: string, } | { pubkey: string, };
-
-export type FarmTag = { id: string, created_at: string, updated_at: string, farm_id: string, tag: string, };
-
-export type FarmTagFindManyRel = never;
-
-export type FarmTagQueryBindValues = { id: string, } | { farm_id: string, } | { tag: string, };
-
-export type GcsLocation = { id: string, created_at: string, updated_at: string, d_tag: string, lat: number, lng: number, geohash: string, point: string, polygon: string, accuracy: number | null, altitude: number | null, tag_0: string | null, label: string | null, area: number | null, elevation: number | null, soil: string | null, climate: string | null, gc_id: string | null, gc_name: string | null, gc_admin1_id: string | null, gc_admin1_name: string | null, gc_country_id: string | null, gc_country_name: string | null, };
-
-export type GcsLocationFarmArgs = { id: string, };
-
-export type GcsLocationFindManyRel = { "on_trade_product": GcsLocationTradeProductArgs } | { "off_trade_product": GcsLocationTradeProductArgs } | { "on_farm": GcsLocationFarmArgs } | { "off_farm": GcsLocationFarmArgs } | { "on_plot": GcsLocationPlotArgs } | { "off_plot": GcsLocationPlotArgs };
-
-export type GcsLocationPlotArgs = { id: string, };
-
-export type GcsLocationQueryBindValues = { id: string, } | { d_tag: string, } | { geohash: string, };
-
-export type GcsLocationTradeProductArgs = { id: string, };
-
-export type IFarmCreate = IFarmFields;
-
-export type IFarmCreateResolve = IResult<Farm>;
-
-export type IFarmDelete = IFarmFindOne;
-
-export type IFarmDeleteResolve = IResult<string>;
-
-export type IFarmFields = { d_tag: string, pubkey: string, name: string, about?: string | null, website?: string | null, picture?: string | null, banner?: string | null, location_primary?: string | null, location_city?: string | null, location_region?: string | null, location_country?: string | null, };
-
-export type IFarmFieldsFilter = { id?: string, created_at?: string, updated_at?: string, d_tag?: string, pubkey?: string, name?: string, about?: string, website?: string, picture?: string, banner?: string, location_primary?: string, location_city?: string, location_region?: string, location_country?: string, };
-
-export type IFarmFieldsPartial = { d_tag?: string | null, pubkey?: string | null, name?: string | null, about?: string | null, website?: string | null, picture?: string | null, banner?: string | null, location_primary?: string | null, location_city?: string | null, location_region?: string | null, location_country?: string | null, };
-
-export type IFarmFindMany = { filter: IFarmFieldsFilter | null, };
-
-export type IFarmFindManyResolve = IResultList<Farm>;
-
-export type IFarmFindOne = IFarmFindOneArgs | IFarmFindOneRelArgs;
-
-export type IFarmFindOneArgs = { on: FarmQueryBindValues, };
-
-export type IFarmFindOneRelArgs = { rel: FarmFindManyRel, };
-
-export type IFarmFindOneResolve = IResult<Farm>;
-
-export type IFarmGcsLocationCreate = IFarmGcsLocationFields;
-
-export type IFarmGcsLocationCreateResolve = IResult<FarmGcsLocation>;
-
-export type IFarmGcsLocationDelete = IFarmGcsLocationFindOne;
-
-export type IFarmGcsLocationDeleteResolve = IResult<string>;
-
-export type IFarmGcsLocationFields = { farm_id: string, gcs_location_id: string, role: string, };
-
-export type IFarmGcsLocationFieldsFilter = { id?: string, created_at?: string, updated_at?: string, farm_id?: string, gcs_location_id?: string, role?: string, };
-
-export type IFarmGcsLocationFieldsPartial = { farm_id?: string | null, gcs_location_id?: string | null, role?: string | null, };
-
-export type IFarmGcsLocationFindMany = { filter: IFarmGcsLocationFieldsFilter | null, };
-
-export type IFarmGcsLocationFindManyResolve = IResultList<FarmGcsLocation>;
-
-export type IFarmGcsLocationFindOne = IFarmGcsLocationFindOneArgs | IFarmGcsLocationFindOneRelArgs;
-
-export type IFarmGcsLocationFindOneArgs = { on: FarmGcsLocationQueryBindValues, };
-
-export type IFarmGcsLocationFindOneRelArgs = { rel: FarmGcsLocationFindManyRel, };
-
-export type IFarmGcsLocationFindOneResolve = IResult<FarmGcsLocation>;
-
-export type IFarmGcsLocationUpdate = { on: FarmGcsLocationQueryBindValues, fields: IFarmGcsLocationFieldsPartial, };
-
-export type IFarmGcsLocationUpdateResolve = IResult<FarmGcsLocation>;
-
-export type IFarmMemberClaimCreate = IFarmMemberClaimFields;
-
-export type IFarmMemberClaimCreateResolve = IResult<FarmMemberClaim>;
-
-export type IFarmMemberClaimDelete = IFarmMemberClaimFindOne;
-
-export type IFarmMemberClaimDeleteResolve = IResult<string>;
-
-export type IFarmMemberClaimFields = { member_pubkey: string, farm_pubkey: string, };
-
-export type IFarmMemberClaimFieldsFilter = { id?: string, created_at?: string, updated_at?: string, member_pubkey?: string, farm_pubkey?: string, };
-
-export type IFarmMemberClaimFieldsPartial = { member_pubkey?: string | null, farm_pubkey?: string | null, };
-
-export type IFarmMemberClaimFindMany = { filter: IFarmMemberClaimFieldsFilter | null, };
-
-export type IFarmMemberClaimFindManyResolve = IResultList<FarmMemberClaim>;
-
-export type IFarmMemberClaimFindOne = IFarmMemberClaimFindOneArgs | IFarmMemberClaimFindOneRelArgs;
-
-export type IFarmMemberClaimFindOneArgs = { on: FarmMemberClaimQueryBindValues, };
-
-export type IFarmMemberClaimFindOneRelArgs = { rel: FarmMemberClaimFindManyRel, };
-
-export type IFarmMemberClaimFindOneResolve = IResult<FarmMemberClaim>;
-
-export type IFarmMemberClaimUpdate = { on: FarmMemberClaimQueryBindValues, fields: IFarmMemberClaimFieldsPartial, };
-
-export type IFarmMemberClaimUpdateResolve = IResult<FarmMemberClaim>;
-
-export type IFarmMemberCreate = IFarmMemberFields;
-
-export type IFarmMemberCreateResolve = IResult<FarmMember>;
-
-export type IFarmMemberDelete = IFarmMemberFindOne;
-
-export type IFarmMemberDeleteResolve = IResult<string>;
-
-export type IFarmMemberFields = { farm_id: string, member_pubkey: string, role: string, };
-
-export type IFarmMemberFieldsFilter = { id?: string, created_at?: string, updated_at?: string, farm_id?: string, member_pubkey?: string, role?: string, };
-
-export type IFarmMemberFieldsPartial = { farm_id?: string | null, member_pubkey?: string | null, role?: string | null, };
-
-export type IFarmMemberFindMany = { filter: IFarmMemberFieldsFilter | null, };
-
-export type IFarmMemberFindManyResolve = IResultList<FarmMember>;
-
-export type IFarmMemberFindOne = IFarmMemberFindOneArgs | IFarmMemberFindOneRelArgs;
-
-export type IFarmMemberFindOneArgs = { on: FarmMemberQueryBindValues, };
-
-export type IFarmMemberFindOneRelArgs = { rel: FarmMemberFindManyRel, };
-
-export type IFarmMemberFindOneResolve = IResult<FarmMember>;
-
-export type IFarmMemberUpdate = { on: FarmMemberQueryBindValues, fields: IFarmMemberFieldsPartial, };
-
-export type IFarmMemberUpdateResolve = IResult<FarmMember>;
-
-export type IFarmTagCreate = IFarmTagFields;
-
-export type IFarmTagCreateResolve = IResult<FarmTag>;
-
-export type IFarmTagDelete = IFarmTagFindOne;
-
-export type IFarmTagDeleteResolve = IResult<string>;
-
-export type IFarmTagFields = { farm_id: string, tag: string, };
-
-export type IFarmTagFieldsFilter = { id?: string, created_at?: string, updated_at?: string, farm_id?: string, tag?: string, };
-
-export type IFarmTagFieldsPartial = { farm_id?: string | null, tag?: string | null, };
-
-export type IFarmTagFindMany = { filter: IFarmTagFieldsFilter | null, };
-
-export type IFarmTagFindManyResolve = IResultList<FarmTag>;
-
-export type IFarmTagFindOne = IFarmTagFindOneArgs | IFarmTagFindOneRelArgs;
-
-export type IFarmTagFindOneArgs = { on: FarmTagQueryBindValues, };
-
-export type IFarmTagFindOneRelArgs = { rel: FarmTagFindManyRel, };
-
-export type IFarmTagFindOneResolve = IResult<FarmTag>;
-
-export type IFarmTagUpdate = { on: FarmTagQueryBindValues, fields: IFarmTagFieldsPartial, };
-
-export type IFarmTagUpdateResolve = IResult<FarmTag>;
-
-export type IFarmUpdate = { on: FarmQueryBindValues, fields: IFarmFieldsPartial, };
-
-export type IFarmUpdateResolve = IResult<Farm>;
-
-export type IGcsLocationCreate = IGcsLocationFields;
-
-export type IGcsLocationCreateResolve = IResult<GcsLocation>;
-
-export type IGcsLocationDelete = IGcsLocationFindOne;
-
-export type IGcsLocationDeleteResolve = IResult<string>;
-
-export type IGcsLocationFields = { d_tag: string, lat: number, lng: number, geohash: string, point: string, polygon: string, accuracy?: number | null, altitude?: number | null, tag_0?: string | null, label?: string | null, area?: number | null, elevation?: number | null, soil?: string | null, climate?: string | null, gc_id?: string | null, gc_name?: string | null, gc_admin1_id?: string | null, gc_admin1_name?: string | null, gc_country_id?: string | null, gc_country_name?: string | null, };
-
-export type IGcsLocationFieldsFilter = { id?: string, created_at?: string, updated_at?: string, d_tag?: string, lat?: number, lng?: number, geohash?: string, point?: string, polygon?: string, accuracy?: number, altitude?: number, tag_0?: string, label?: string, area?: number, elevation?: number, soil?: string, climate?: string, gc_id?: string, gc_name?: string, gc_admin1_id?: string, gc_admin1_name?: string, gc_country_id?: string, gc_country_name?: string, };
-
-export type IGcsLocationFieldsPartial = { d_tag?: string | null, lat?: number | null, lng?: number | null, geohash?: string | null, point?: string | null, polygon?: string | null, accuracy?: number | null, altitude?: number | null, tag_0?: string | null, label?: string | null, area?: number | null, elevation?: number | null, soil?: string | null, climate?: string | null, gc_id?: string | null, gc_name?: string | null, gc_admin1_id?: string | null, gc_admin1_name?: string | null, gc_country_id?: string | null, gc_country_name?: string | null, };
-
-export type IGcsLocationFindMany = { filter: IGcsLocationFieldsFilter | null, } | { rel: GcsLocationFindManyRel, };
-
-export type IGcsLocationFindManyResolve = IResultList<GcsLocation>;
-
-export type IGcsLocationFindOne = IGcsLocationFindOneArgs | IGcsLocationFindOneRelArgs;
-
-export type IGcsLocationFindOneArgs = { on: GcsLocationQueryBindValues, };
-
-export type IGcsLocationFindOneRelArgs = { rel: GcsLocationFindManyRel, };
-
-export type IGcsLocationFindOneResolve = IResult<GcsLocation>;
-
-export type IGcsLocationUpdate = { on: GcsLocationQueryBindValues, fields: IGcsLocationFieldsPartial, };
-
-export type IGcsLocationUpdateResolve = IResult<GcsLocation>;
-
-export type ILogErrorCreate = ILogErrorFields;
-
-export type ILogErrorCreateResolve = IResult<LogError>;
-
-export type ILogErrorDelete = ILogErrorFindOne;
-
-export type ILogErrorDeleteResolve = IResult<string>;
-
-export type ILogErrorFields = { error: string, message: string, stack_trace?: string | null, cause?: string | null, app_system: string, app_version: string, nostr_pubkey: string, data?: string | null, };
-
-export type ILogErrorFieldsFilter = { id?: string, created_at?: string, updated_at?: string, error?: string, message?: string, stack_trace?: string, cause?: string, app_system?: string, app_version?: string, nostr_pubkey?: string, data?: string, };
-
-export type ILogErrorFieldsPartial = { error?: string | null, message?: string | null, stack_trace?: string | null, cause?: string | null, app_system?: string | null, app_version?: string | null, nostr_pubkey?: string | null, data?: string | null, };
-
-export type ILogErrorFindMany = { filter: ILogErrorFieldsFilter | null, };
-
-export type ILogErrorFindManyResolve = IResultList<LogError>;
-
-export type ILogErrorFindOne = ILogErrorFindOneArgs | ILogErrorFindOneRelArgs;
-
-export type ILogErrorFindOneArgs = { on: LogErrorQueryBindValues, };
-
-export type ILogErrorFindOneRelArgs = { rel: LogErrorFindManyRel, };
-
-export type ILogErrorFindOneResolve = IResult<LogError>;
-
-export type ILogErrorUpdate = { on: LogErrorQueryBindValues, fields: ILogErrorFieldsPartial, };
-
-export type ILogErrorUpdateResolve = IResult<LogError>;
-
-export type IMediaImageCreate = IMediaImageFields;
-
-export type IMediaImageCreateResolve = IResult<MediaImage>;
-
-export type IMediaImageDelete = IMediaImageFindOne;
-
-export type IMediaImageDeleteResolve = IResult<string>;
-
-export type IMediaImageFields = { file_path: string, mime_type: string, res_base: string, res_path: string, label?: string | null, description?: string | null, };
-
-export type IMediaImageFieldsFilter = { id?: string, created_at?: string, updated_at?: string, file_path?: string, mime_type?: string, res_base?: string, res_path?: string, label?: string, description?: string, };
-
-export type IMediaImageFieldsPartial = { file_path?: string | null, mime_type?: string | null, res_base?: string | null, res_path?: string | null, label?: string | null, description?: string | null, };
-
-export type IMediaImageFindMany = { filter: IMediaImageFieldsFilter | null, } | { rel: MediaImageFindManyRel, };
-
-export type IMediaImageFindManyResolve = IResultList<MediaImage>;
-
-export type IMediaImageFindOne = IMediaImageFindOneArgs | IMediaImageFindOneRelArgs;
-
-export type IMediaImageFindOneArgs = { on: MediaImageQueryBindValues, };
-
-export type IMediaImageFindOneRelArgs = { rel: MediaImageFindManyRel, };
-
-export type IMediaImageFindOneResolve = IResult<MediaImage>;
-
-export type IMediaImageUpdate = { on: MediaImageQueryBindValues, fields: IMediaImageFieldsPartial, };
-
-export type IMediaImageUpdateResolve = IResult<MediaImage>;
-
-export type INostrEventStateCreate = INostrEventStateFields;
-
-export type INostrEventStateCreateResolve = IResult<NostrEventState>;
-
-export type INostrEventStateDelete = INostrEventStateFindOne;
-
-export type INostrEventStateDeleteResolve = IResult<string>;
-
-export type INostrEventStateFields = { key: string, kind: number, pubkey: string, d_tag: string, last_event_id: string, last_created_at: number, content_hash: string, };
-
-export type INostrEventStateFieldsFilter = { id?: string, created_at?: string, updated_at?: string, key?: string, kind?: number, pubkey?: string, d_tag?: string, last_event_id?: string, last_created_at?: number, content_hash?: string, };
-
-export type INostrEventStateFieldsPartial = { key?: string | null, kind?: number | null, pubkey?: string | null, d_tag?: string | null, last_event_id?: string | null, last_created_at?: number | null, content_hash?: string | null, };
-
-export type INostrEventStateFindMany = { filter: INostrEventStateFieldsFilter | null, };
-
-export type INostrEventStateFindManyResolve = IResultList<NostrEventState>;
-
-export type INostrEventStateFindOne = INostrEventStateFindOneArgs | INostrEventStateFindOneRelArgs;
-
-export type INostrEventStateFindOneArgs = { on: NostrEventStateQueryBindValues, };
-
-export type INostrEventStateFindOneRelArgs = { rel: NostrEventStateFindManyRel, };
-
-export type INostrEventStateFindOneResolve = IResult<NostrEventState>;
-
-export type INostrEventStateUpdate = { on: NostrEventStateQueryBindValues, fields: INostrEventStateFieldsPartial, };
-
-export type INostrEventStateUpdateResolve = IResult<NostrEventState>;
-
-export type INostrProfileCreate = INostrProfileFields;
-
-export type INostrProfileCreateResolve = IResult<NostrProfile>;
-
-export type INostrProfileDelete = INostrProfileFindOne;
-
-export type INostrProfileDeleteResolve = IResult<string>;
-
-export type INostrProfileFields = { public_key: string, profile_type: string, name: string, display_name?: string | null, about?: string | null, website?: string | null, picture?: string | null, banner?: string | null, nip05?: string | null, lud06?: string | null, lud16?: string | null, };
-
-export type INostrProfileFieldsFilter = { id?: string, created_at?: string, updated_at?: string, public_key?: string, profile_type?: string, name?: string, display_name?: string, about?: string, website?: string, picture?: string, banner?: string, nip05?: string, lud06?: string, lud16?: string, };
-
-export type INostrProfileFieldsPartial = { public_key?: string | null, profile_type?: string | null, name?: string | null, display_name?: string | null, about?: string | null, website?: string | null, picture?: string | null, banner?: string | null, nip05?: string | null, lud06?: string | null, lud16?: string | null, };
-
-export type INostrProfileFindMany = { filter: INostrProfileFieldsFilter | null, } | { rel: NostrProfileFindManyRel, };
-
-export type INostrProfileFindManyResolve = IResultList<NostrProfile>;
-
-export type INostrProfileFindOne = INostrProfileFindOneArgs | INostrProfileFindOneRelArgs;
-
-export type INostrProfileFindOneArgs = { on: NostrProfileQueryBindValues, };
-
-export type INostrProfileFindOneRelArgs = { rel: NostrProfileFindManyRel, };
-
-export type INostrProfileFindOneResolve = IResult<NostrProfile>;
-
-export type INostrProfileRelayRelation = { nostr_profile: NostrProfileQueryBindValues, nostr_relay: NostrRelayQueryBindValues, };
-
-export type INostrProfileRelayResolve = IResultPass;
-
-export type INostrProfileUpdate = { on: NostrProfileQueryBindValues, fields: INostrProfileFieldsPartial, };
-
-export type INostrProfileUpdateResolve = IResult<NostrProfile>;
-
-export type INostrRelayCreate = INostrRelayFields;
-
-export type INostrRelayCreateResolve = IResult<NostrRelay>;
-
-export type INostrRelayDelete = INostrRelayFindOne;
-
-export type INostrRelayDeleteResolve = IResult<string>;
-
-export type INostrRelayFields = { url: string, relay_id?: string | null, name?: string | null, description?: string | null, pubkey?: string | null, contact?: string | null, supported_nips?: string | null, software?: string | null, version?: string | null, data?: string | null, };
-
-export type INostrRelayFieldsFilter = { id?: string, created_at?: string, updated_at?: string, url?: string, relay_id?: string, name?: string, description?: string, pubkey?: string, contact?: string, supported_nips?: string, software?: string, version?: string, data?: string, };
-
-export type INostrRelayFieldsPartial = { url?: string | null, relay_id?: string | null, name?: string | null, description?: string | null, pubkey?: string | null, contact?: string | null, supported_nips?: string | null, software?: string | null, version?: string | null, data?: string | null, };
-
-export type INostrRelayFindMany = { filter: INostrRelayFieldsFilter | null, } | { rel: NostrRelayFindManyRel, };
-
-export type INostrRelayFindManyResolve = IResultList<NostrRelay>;
-
-export type INostrRelayFindOne = INostrRelayFindOneArgs | INostrRelayFindOneRelArgs;
-
-export type INostrRelayFindOneArgs = { on: NostrRelayQueryBindValues, };
-
-export type INostrRelayFindOneRelArgs = { rel: NostrRelayFindManyRel, };
-
-export type INostrRelayFindOneResolve = IResult<NostrRelay>;
-
-export type INostrRelayUpdate = { on: NostrRelayQueryBindValues, fields: INostrRelayFieldsPartial, };
-
-export type INostrRelayUpdateResolve = IResult<NostrRelay>;
-
-export type IPlotCreate = IPlotFields;
-
-export type IPlotCreateResolve = IResult<Plot>;
-
-export type IPlotDelete = IPlotFindOne;
-
-export type IPlotDeleteResolve = IResult<string>;
-
-export type IPlotFields = { d_tag: string, farm_id: string, name: string, about?: string | null, location_primary?: string | null, location_city?: string | null, location_region?: string | null, location_country?: string | null, };
-
-export type IPlotFieldsFilter = { id?: string, created_at?: string, updated_at?: string, d_tag?: string, farm_id?: string, name?: string, about?: string, location_primary?: string, location_city?: string, location_region?: string, location_country?: string, };
-
-export type IPlotFieldsPartial = { d_tag?: string | null, farm_id?: string | null, name?: string | null, about?: string | null, location_primary?: string | null, location_city?: string | null, location_region?: string | null, location_country?: string | null, };
-
-export type IPlotFindMany = { filter: IPlotFieldsFilter | null, };
-
-export type IPlotFindManyResolve = IResultList<Plot>;
-
-export type IPlotFindOne = IPlotFindOneArgs | IPlotFindOneRelArgs;
-
-export type IPlotFindOneArgs = { on: PlotQueryBindValues, };
-
-export type IPlotFindOneRelArgs = { rel: PlotFindManyRel, };
-
-export type IPlotFindOneResolve = IResult<Plot>;
-
-export type IPlotGcsLocationCreate = IPlotGcsLocationFields;
-
-export type IPlotGcsLocationCreateResolve = IResult<PlotGcsLocation>;
-
-export type IPlotGcsLocationDelete = IPlotGcsLocationFindOne;
-
-export type IPlotGcsLocationDeleteResolve = IResult<string>;
-
-export type IPlotGcsLocationFields = { plot_id: string, gcs_location_id: string, role: string, };
-
-export type IPlotGcsLocationFieldsFilter = { id?: string, created_at?: string, updated_at?: string, plot_id?: string, gcs_location_id?: string, role?: string, };
-
-export type IPlotGcsLocationFieldsPartial = { plot_id?: string | null, gcs_location_id?: string | null, role?: string | null, };
-
-export type IPlotGcsLocationFindMany = { filter: IPlotGcsLocationFieldsFilter | null, };
-
-export type IPlotGcsLocationFindManyResolve = IResultList<PlotGcsLocation>;
-
-export type IPlotGcsLocationFindOne = IPlotGcsLocationFindOneArgs | IPlotGcsLocationFindOneRelArgs;
-
-export type IPlotGcsLocationFindOneArgs = { on: PlotGcsLocationQueryBindValues, };
-
-export type IPlotGcsLocationFindOneRelArgs = { rel: PlotGcsLocationFindManyRel, };
-
-export type IPlotGcsLocationFindOneResolve = IResult<PlotGcsLocation>;
-
-export type IPlotGcsLocationUpdate = { on: PlotGcsLocationQueryBindValues, fields: IPlotGcsLocationFieldsPartial, };
-
-export type IPlotGcsLocationUpdateResolve = IResult<PlotGcsLocation>;
-
-export type IPlotTagCreate = IPlotTagFields;
-
-export type IPlotTagCreateResolve = IResult<PlotTag>;
-
-export type IPlotTagDelete = IPlotTagFindOne;
-
-export type IPlotTagDeleteResolve = IResult<string>;
-
-export type IPlotTagFields = { plot_id: string, tag: string, };
-
-export type IPlotTagFieldsFilter = { id?: string, created_at?: string, updated_at?: string, plot_id?: string, tag?: string, };
-
-export type IPlotTagFieldsPartial = { plot_id?: string | null, tag?: string | null, };
-
-export type IPlotTagFindMany = { filter: IPlotTagFieldsFilter | null, };
-
-export type IPlotTagFindManyResolve = IResultList<PlotTag>;
-
-export type IPlotTagFindOne = IPlotTagFindOneArgs | IPlotTagFindOneRelArgs;
-
-export type IPlotTagFindOneArgs = { on: PlotTagQueryBindValues, };
-
-export type IPlotTagFindOneRelArgs = { rel: PlotTagFindManyRel, };
-
-export type IPlotTagFindOneResolve = IResult<PlotTag>;
-
-export type IPlotTagUpdate = { on: PlotTagQueryBindValues, fields: IPlotTagFieldsPartial, };
-
-export type IPlotTagUpdateResolve = IResult<PlotTag>;
-
-export type IPlotUpdate = { on: PlotQueryBindValues, fields: IPlotFieldsPartial, };
-
-export type IPlotUpdateResolve = IResult<Plot>;
-
-export type ITradeProductCreate = ITradeProductFields;
-
-export type ITradeProductCreateResolve = IResult<TradeProduct>;
-
-export type ITradeProductDelete = ITradeProductFindOne;
-
-export type ITradeProductDeleteResolve = IResult<string>;
-
-export type ITradeProductFields = { key: string, category: string, title: string, summary: string, process: string, lot: string, profile: string, year: bigint, qty_amt: bigint, qty_unit: string, qty_label?: string | null, qty_avail?: number | null, price_amt: number, price_currency: string, price_qty_amt: number, price_qty_unit: string, notes?: string | null, };
-
-export type ITradeProductFieldsFilter = { id?: string, created_at?: string, updated_at?: string, key?: string, category?: string, title?: string, summary?: string, process?: string, lot?: string, profile?: string, year?: bigint, qty_amt?: bigint, qty_unit?: string, qty_label?: string, qty_avail?: bigint, price_amt?: number, price_currency?: string, price_qty_amt?: number, price_qty_unit?: string, notes?: string, };
-
-export type ITradeProductFieldsPartial = { key?: string | null, category?: string | null, title?: string | null, summary?: string | null, process?: string | null, lot?: string | null, profile?: string | null, year?: number | null, qty_amt?: number | null, qty_unit?: string | null, qty_label?: string | null, qty_avail?: number | null, price_amt?: number | null, price_currency?: string | null, price_qty_amt?: number | null, price_qty_unit?: string | null, notes?: string | null, };
-
-export type ITradeProductFindMany = { filter: ITradeProductFieldsFilter | null, };
-
-export type ITradeProductFindManyResolve = IResultList<TradeProduct>;
-
-export type ITradeProductFindOne = ITradeProductFindOneArgs | ITradeProductFindOneRelArgs;
-
-export type ITradeProductFindOneArgs = { on: TradeProductQueryBindValues, };
-
-export type ITradeProductFindOneRelArgs = { rel: TradeProductFindManyRel, };
-
-export type ITradeProductFindOneResolve = IResult<TradeProduct>;
-
-export type ITradeProductLocationRelation = { trade_product: TradeProductQueryBindValues, gcs_location: GcsLocationQueryBindValues, };
-
-export type ITradeProductLocationResolve = IResultPass;
-
-export type ITradeProductMediaRelation = { trade_product: TradeProductQueryBindValues, media_image: MediaImageQueryBindValues, };
-
-export type ITradeProductMediaResolve = IResultPass;
-
-export type ITradeProductUpdate = { on: TradeProductQueryBindValues, fields: ITradeProductFieldsPartial, };
-
-export type ITradeProductUpdateResolve = IResult<TradeProduct>;
-
-export type LogError = { id: string, created_at: string, updated_at: string, error: string, message: string, stack_trace: string | null, cause: string | null, app_system: string, app_version: string, nostr_pubkey: string, data: string | null, };
-
-export type LogErrorFindManyRel = never;
-
-export type LogErrorQueryBindValues = { id: string, } | { nostr_pubkey: string, };
-
-export type MediaImage = { id: string, created_at: string, updated_at: string, file_path: string, mime_type: string, res_base: string, res_path: string, label: string | null, description: string | null, };
-
-export type MediaImageFindManyRel = { "on_trade_product": MediaImageTradeProductArgs } | { "off_trade_product": MediaImageTradeProductArgs };
-
-export type MediaImageQueryBindValues = { id: string, } | { file_path: string, };
-
-export type MediaImageTradeProductArgs = { id: string, };
-
-export type NostrEventState = { id: string, created_at: string, updated_at: string, key: string, kind: number, pubkey: string, d_tag: string, last_event_id: string, last_created_at: number, content_hash: string, };
-
-export type NostrEventStateFindManyRel = never;
-
-export type NostrEventStateQueryBindValues = { id: string, } | { key: string, };
-
-export type NostrProfile = { id: string, created_at: string, updated_at: string, public_key: string, profile_type: string, name: string, display_name: string | null, about: string | null, website: string | null, picture: string | null, banner: string | null, nip05: string | null, lud06: string | null, lud16: string | null, };
-
-export type NostrProfileFindManyRel = { "on_relay": NostrProfileRelayArgs } | { "off_relay": NostrProfileRelayArgs };
-
-export type NostrProfileQueryBindValues = { id: string, } | { public_key: string, };
-
-export type NostrProfileRelayArgs = { id: string, };
-
-export type NostrRelay = { id: string, created_at: string, updated_at: string, url: string, relay_id: string | null, name: string | null, description: string | null, pubkey: string | null, contact: string | null, supported_nips: string | null, software: string | null, version: string | null, data: string | null, };
-
-export type NostrRelayFindManyRel = { "on_profile": NostrRelayProfileArgs } | { "off_profile": NostrRelayProfileArgs };
-
-export type NostrRelayProfileArgs = { public_key: string, };
-
-export type NostrRelayQueryBindValues = { id: string, } | { url: string, };
-
-export type Plot = { id: string, created_at: string, updated_at: string, d_tag: string, farm_id: string, name: string, about: string | null, location_primary: string | null, location_city: string | null, location_region: string | null, location_country: string | null, };
-
-export type PlotFindManyRel = never;
-
-export type PlotGcsLocation = { id: string, created_at: string, updated_at: string, plot_id: string, gcs_location_id: string, role: string, };
-
-export type PlotGcsLocationFindManyRel = never;
-
-export type PlotGcsLocationQueryBindValues = { id: string, } | { plot_id: string, } | { gcs_location_id: string, };
-
-export type PlotQueryBindValues = { id: string, } | { d_tag: string, } | { farm_id: string, };
-
-export type PlotTag = { id: string, created_at: string, updated_at: string, plot_id: string, tag: string, };
-
-export type PlotTagFindManyRel = never;
-
-export type PlotTagQueryBindValues = { id: string, } | { plot_id: string, } | { tag: string, };
-
-export type TradeProduct = { id: string, created_at: string, updated_at: string, key: string, category: string, title: string, summary: string, process: string, lot: string, profile: string, year: bigint, qty_amt: bigint, qty_unit: string, qty_label: string | null, qty_avail: bigint | null, price_amt: number, price_currency: string, price_qty_amt: number, price_qty_unit: string, notes: string | null, };
-
-export type TradeProductFindManyRel = never;
-
-export type TradeProductQueryBindValues = { id: string, };
diff --git a/tangle-db-schema/bindings/ts/tsconfig.cjs.json b/tangle-db-schema/bindings/ts/tsconfig.cjs.json
@@ -1,15 +0,0 @@
-{
- "extends": "@radroots/tsconfig/tsconfig.esm.json",
- "compilerOptions": {
- "module": "CommonJS",
- "moduleResolution": "Node",
- "rootDir": "./src",
- "outDir": "dist/cjs",
- "declaration": false,
- "declarationMap": false,
- "emitDeclarationOnly": false,
- "tsBuildInfoFile": "node_modules/.cache/tsc.utils-nostr.cjs.tsbuildinfo"
- },
- "include": ["src"],
- "exclude": ["node_modules", "dist"]
-}
diff --git a/tangle-db-schema/bindings/ts/tsconfig.esm.json b/tangle-db-schema/bindings/ts/tsconfig.esm.json
@@ -1,13 +0,0 @@
-{
- "extends": "@radroots/tsconfig/tsconfig.esm.json",
- "compilerOptions": {
- "moduleResolution": "nodenext",
- "rootDir": "./src",
- "outDir": "dist/esm",
- "declaration": true,
- "declarationMap": true,
- "declarationDir": "dist/types"
- },
- "include": ["src"],
- "exclude": ["node_modules", "dist"]
-}
diff --git a/tangle-db-schema/bindings/ts/tsconfig.json b/tangle-db-schema/bindings/ts/tsconfig.json
@@ -1,3 +0,0 @@
-{
- "extends": "./tsconfig.esm.json"
-}
diff --git a/tangle-db-schema/build.rs b/tangle-db-schema/build.rs
@@ -1,12 +1,20 @@
-use std::{env, fs, path::Path};
+use std::{env, fs, path::PathBuf};
+
+fn export_dir(crate_name: &str) -> PathBuf {
+ if let Some(export_dir) = env::var_os("RADROOTS_TS_RS_EXPORT_DIR") {
+ return PathBuf::from(export_dir);
+ }
+ PathBuf::from(format!("../target/ts-rs/{crate_name}"))
+}
fn main() {
println!("cargo:rerun-if-changed=build.rs");
if env::var_os("CARGO_FEATURE_TS_RS").is_some() {
- println!("cargo:rustc-env=TS_RS_EXPORT_DIR=./bindings/ts/src");
- let out_dir = Path::new("bindings/ts/src");
+ let out_dir = export_dir("tangle-db-schema");
+ println!("cargo:rustc-env=TS_RS_EXPORT_DIR={}", out_dir.display());
+ println!("cargo:rerun-if-env-changed=RADROOTS_TS_RS_EXPORT_DIR");
if !out_dir.exists() {
- fs::create_dir_all(out_dir).expect("create TS export dir");
+ fs::create_dir_all(&out_dir).expect("create TS export dir");
}
println!("cargo:rerun-if-changed=src");
}
diff --git a/trade/bindings/ts/package.json b/trade/bindings/ts/package.json
@@ -1,44 +0,0 @@
-{
- "name": "@radroots/trade",
- "version": "1.0.0",
- "private": true,
- "license": "AGPLv3",
- "type": "module",
- "main": "./dist/cjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/types/index.d.ts",
- "exports": {
- ".": {
- "types": "./dist/types/index.d.ts",
- "import": "./dist/esm/index.js",
- "require": "./dist/cjs/index.js"
- }
- },
- "files": [
- "dist"
- ],
- "sideEffects": false,
- "scripts": {
- "build:esm": "tsc -p tsconfig.esm.json",
- "build:cjs": "tsc -p tsconfig.cjs.json",
- "build": "npm run build:esm && npm run build:cjs",
- "prebuild": "npm run clean && npm run prepend-imports",
- "prepend-imports": "bash -c 'f=./src/types.ts; line=\"import type { RadrootsCoreCurrency, RadrootsCoreDecimal, RadrootsCoreDiscount, RadrootsCoreDiscountValue, RadrootsCoreMoney, RadrootsCoreQuantity, RadrootsCoreQuantityPrice, RadrootsCoreUnit } from \\\"@radroots/core\\\";\"; grep -qxF \"$line\" \"$f\" || (echo -e \"$line\\n\\n$(cat $f)\" > \"$f\")' && bash -c 'f=./src/types.ts; old=\"import type { RadrootsListingDiscount, RadrootsListingImage, RadrootsNostrEventPtr } from \\\"@radroots/events-bindings\\\";\"; if grep -qxF \"$old\" \"$f\"; then grep -vxF \"$old\" \"$f\" > \"$f.tmp\" && mv \"$f.tmp\" \"$f\"; fi; old2=\"import type { RadrootsListingImage, RadrootsNostrEventPtr } from \\\"@radroots/events-bindings\\\";\"; if grep -qxF \"$old2\" \"$f\"; then grep -vxF \"$old2\" \"$f\" > \"$f.tmp\" && mv \"$f.tmp\" \"$f\"; fi; old3=\"import type { RadrootsListingDiscount, RadrootsListingImage, RadrootsNostrEventPtr } from \\\"@radroots/events\\\";\"; if grep -qxF \"$old3\" \"$f\"; then grep -vxF \"$old3\" \"$f\" > \"$f.tmp\" && mv \"$f.tmp\" \"$f\"; fi; old4=\"import type { RadrootsListingImage, RadrootsNostrEventPtr } from \\\"@radroots/events\\\";\"; if grep -qxF \"$old4\" \"$f\"; then grep -vxF \"$old4\" \"$f\" > \"$f.tmp\" && mv \"$f.tmp\" \"$f\"; fi; line=\"import type { RadrootsListingImage, RadrootsNostrEventPtr, RadrootsPlotRef, RadrootsResourceAreaRef } from \\\"@radroots/events\\\";\"; grep -qxF \"$line\" \"$f\" || (echo -e \"$line\\n\\n$(cat $f)\" > \"$f\")'",
- "clean": "rimraf dist",
- "dev": "npm run watch",
- "watch": "tsc -w"
- },
- "devDependencies": {
- "@radroots/tsconfig": "workspace:*",
- "rimraf": "^6.0.1",
- "ts-to-zod": "^3.15.0"
- },
- "dependencies": {
- "@radroots/core": "workspace:*",
- "@radroots/events": "workspace:*",
- "zod": "^4.0.5"
- },
- "publishConfig": {
- "access": "public"
- }
-}
diff --git a/trade/bindings/ts/src/index.ts b/trade/bindings/ts/src/index.ts
@@ -1,2 +0,0 @@
-export * from "./lib.js"
-export * from "./types.js"
diff --git a/trade/bindings/ts/src/lib.ts b/trade/bindings/ts/src/lib.ts
@@ -1,36 +0,0 @@
-import { TradeListingKind, TradeListingMarker } from "./types.js";
-
-export { TradeListingKind, TradeListingMarker };
-
-export const MARKER_LISTING = TradeListingMarker["listing"];
-export const MARKER_PAYLOAD = TradeListingMarker["payload"];
-export const MARKER_PREVIOUS = TradeListingMarker["previous"];
-export const MARKER_ORDER_RESULT = TradeListingMarker["order_result"];
-export const MARKER_ACCEPT_RESULT = TradeListingMarker["accept_result"];
-export const MARKER_CONVEYANCE_RESULT = TradeListingMarker["conveyance_result"];
-export const MARKER_INVOICE_RESULT = TradeListingMarker["invoice_result"];
-export const MARKER_PAYMENT_RESULT = TradeListingMarker["payment_result"];
-export const MARKER_FULFILLMENT_RESULT = TradeListingMarker["fulfillment_result"];
-export const MARKER_RECEIPT_RESULT = TradeListingMarker["receipt_result"];
-export const MARKER_CANCEL_RESULT = TradeListingMarker["cancel_result"];
-export const MARKER_REFUND_RESULT = TradeListingMarker["refund_result"];
-export const MARKER_PROOF = TradeListingMarker["proof"];
-
-export const KIND_TRADE_LISTING_ORDER_REQ = TradeListingKind.KIND_TRADE_LISTING_ORDER_REQ;
-export const KIND_TRADE_LISTING_ORDER_RES = TradeListingKind.KIND_TRADE_LISTING_ORDER_RES;
-export const KIND_TRADE_LISTING_ACCEPT_REQ = TradeListingKind.KIND_TRADE_LISTING_ACCEPT_REQ;
-export const KIND_TRADE_LISTING_ACCEPT_RES = TradeListingKind.KIND_TRADE_LISTING_ACCEPT_RES;
-export const KIND_TRADE_LISTING_CONVEYANCE_REQ = TradeListingKind.KIND_TRADE_LISTING_CONVEYANCE_REQ;
-export const KIND_TRADE_LISTING_CONVEYANCE_RES = TradeListingKind.KIND_TRADE_LISTING_CONVEYANCE_RES;
-export const KIND_TRADE_LISTING_INVOICE_REQ = TradeListingKind.KIND_TRADE_LISTING_INVOICE_REQ;
-export const KIND_TRADE_LISTING_INVOICE_RES = TradeListingKind.KIND_TRADE_LISTING_INVOICE_RES;
-export const KIND_TRADE_LISTING_PAYMENT_REQ = TradeListingKind.KIND_TRADE_LISTING_PAYMENT_REQ;
-export const KIND_TRADE_LISTING_PAYMENT_RES = TradeListingKind.KIND_TRADE_LISTING_PAYMENT_RES;
-export const KIND_TRADE_LISTING_FULFILL_REQ = TradeListingKind.KIND_TRADE_LISTING_FULFILL_REQ;
-export const KIND_TRADE_LISTING_FULFILL_RES = TradeListingKind.KIND_TRADE_LISTING_FULFILL_RES;
-export const KIND_TRADE_LISTING_RECEIPT_REQ = TradeListingKind.KIND_TRADE_LISTING_RECEIPT_REQ;
-export const KIND_TRADE_LISTING_RECEIPT_RES = TradeListingKind.KIND_TRADE_LISTING_RECEIPT_RES;
-export const KIND_TRADE_LISTING_CANCEL_REQ = TradeListingKind.KIND_TRADE_LISTING_CANCEL_REQ;
-export const KIND_TRADE_LISTING_CANCEL_RES = TradeListingKind.KIND_TRADE_LISTING_CANCEL_RES;
-export const KIND_TRADE_LISTING_REFUND_REQ = TradeListingKind.KIND_TRADE_LISTING_REFUND_REQ;
-export const KIND_TRADE_LISTING_REFUND_RES = TradeListingKind.KIND_TRADE_LISTING_REFUND_RES;
diff --git a/trade/bindings/ts/src/types.ts b/trade/bindings/ts/src/types.ts
@@ -1,119 +0,0 @@
-import type { RadrootsListingImage, RadrootsNostrEventPtr, RadrootsPlotRef, RadrootsResourceAreaRef } from "@radroots/events";
-
-import type { RadrootsCoreCurrency, RadrootsCoreDecimal, RadrootsCoreDiscount, RadrootsCoreDiscountValue, RadrootsCoreMoney, RadrootsCoreQuantity, RadrootsCoreQuantityPrice, RadrootsCoreUnit } from "@radroots/core";
-
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type RadrootsListing = { d_tag: string, farm: RadrootsListingFarmRef, product: RadrootsListingProduct, primary_bin_id: string, bins: Array<RadrootsListingBin>, resource_area?: RadrootsResourceAreaRef | null, plot?: RadrootsPlotRef | null, discounts?: RadrootsCoreDiscount[] | null, inventory_available?: RadrootsCoreDecimal | null, availability?: RadrootsListingAvailability | null, delivery_method?: RadrootsListingDeliveryMethod | null, location?: RadrootsListingLocation | null, images?: RadrootsListingImage[] | null, };
-
-export type RadrootsListingAvailability = { "kind": "window", "amount": { start?: number | null, end?: number | null, } } | { "kind": "status", "amount": { status: RadrootsListingStatus, } };
-
-export type RadrootsListingBin = { bin_id: string, quantity: RadrootsCoreQuantity, price_per_canonical_unit: RadrootsCoreQuantityPrice, display_amount?: RadrootsCoreDecimal | null, display_unit?: RadrootsCoreUnit | null, display_label?: string | null, display_price?: RadrootsCoreMoney | null, display_price_unit?: RadrootsCoreUnit | null, };
-
-export type RadrootsListingDeliveryMethod = { "kind": "pickup" } | { "kind": "local_delivery" } | { "kind": "shipping" } | { "kind": "other", "amount": { method: string, } };
-
-export type RadrootsListingFarmRef = { pubkey: string, d_tag: string, };
-
-export type RadrootsListingLocation = { primary: string, city?: string | null, region?: string | null, country?: string | null, lat?: number | null, lng?: number | null, geohash?: string | null, };
-
-export type RadrootsListingProduct = { key: string, title: string, category: string, summary?: string | null, process?: string | null, lot?: string | null, location?: string | null, profile?: string | null, year?: string | null, };
-
-export type RadrootsListingStatus = { "kind": "active" } | { "kind": "sold" } | { "kind": "other", "amount": { value: string, } };
-
-export type RadrootsTradeListing = { listing_id: string, listing_addr: string, seller_pubkey: string, title: string, description: string, product_type: string, primary_bin_id: string, bin_quantity: RadrootsCoreQuantity, unit: RadrootsCoreUnit, unit_price: RadrootsCoreMoney, inventory_available: RadrootsCoreDecimal, availability: RadrootsListingAvailability, location: RadrootsListingLocation, delivery_method: RadrootsListingDeliveryMethod, listing: RadrootsListing, };
-
-export type RadrootsTradeListingSubtotal = { price_amount: RadrootsCoreMoney, price_currency: RadrootsCoreCurrency, quantity_amount: RadrootsCoreDecimal, quantity_unit: RadrootsCoreUnit, };
-
-export type RadrootsTradeListingTotal = { price_amount: RadrootsCoreMoney, price_currency: RadrootsCoreCurrency, quantity_amount: RadrootsCoreDecimal, quantity_unit: RadrootsCoreUnit, };
-
-export type TradeAnswer = { question_id: string, order_id?: string | null, listing_addr?: string | null, answer_text: string, };
-
-export type TradeDiscountDecision = { "kind": "accept", "amount": { value: RadrootsCoreDiscountValue, } } | { "kind": "decline", "amount": { reason?: string | null, } };
-
-export type TradeDiscountOffer = { discount_id: string, order_id: string, value: RadrootsCoreDiscountValue, conditions?: string | null, };
-
-export type TradeDiscountRequest = { discount_id: string, order_id: string, value: RadrootsCoreDiscountValue, conditions?: string | null, };
-
-export type TradeFulfillmentStatus = { "kind": "preparing" } | { "kind": "shipped" } | { "kind": "ready_for_pickup" } | { "kind": "delivered" } | { "kind": "cancelled" };
-
-export type TradeFulfillmentUpdate = { status: TradeFulfillmentStatus, tracking?: string | null, eta?: string | null, notes?: string | null, };
-
-export type TradeListingAcceptRequest = { order_result_event_id: string, listing_event_id: string, };
-
-export type TradeListingAcceptResult = { listing_event_id: string, order_result_event_id: string, accepted_by: string, };
-
-export type TradeListingCancel = { reason?: string | null, };
-
-export type TradeListingConveyanceMethod = { "kind": "seller_delivery", "amount": { window: string | null, notes: string | null, } } | { "kind": "buyer_pickup", "amount": { location_hint: string | null, by_when: string | null, } } | { "kind": "third_party", "amount": { provider: string, ref_id: string | null, notes: string | null, } };
-
-export type TradeListingConveyanceRequest = { accept_result_event_id: string, method: TradeListingConveyanceMethod, };
-
-export type TradeListingConveyanceResult = { verified: boolean, method: TradeListingConveyanceMethod, message?: string | null, };
-
-export type TradeListingDomain = "trade:listing";
-
-export type TradeListingEnvelope<T> = { version: number, domain: TradeListingDomain, type: TradeListingMessageType, order_id?: string | null, listing_addr: string, payload: T, };
-
-export type TradeListingFulfillmentRequest = { payment_result_event_id: string, };
-
-export type TradeListingFulfillmentResult = { state: TradeListingFulfillmentState, tracking?: string | null, eta?: string | null, notes?: string | null, };
-
-export type TradeListingFulfillmentState = { "kind": "preparing" } | { "kind": "shipped" } | { "kind": "ready_for_pickup" } | { "kind": "delivered" } | { "kind": "canceled" };
-
-export type TradeListingInvoiceRequest = { accept_result_event_id: string, };
-
-export type TradeListingInvoiceResult = { total_sat: number, bolt11?: string | null, note?: string | null, expires_at?: number | null, };
-
-export type TradeListingMessagePayload = { "kind": "listing_validate_request", "amount": TradeListingValidateRequest } | { "kind": "listing_validate_result", "amount": TradeListingValidateResult } | { "kind": "order_request", "amount": TradeOrder } | { "kind": "order_response", "amount": TradeOrderResponse } | { "kind": "order_revision", "amount": TradeOrderRevision } | { "kind": "order_revision_accept", "amount": TradeOrderRevisionResponse } | { "kind": "order_revision_decline", "amount": TradeOrderRevisionResponse } | { "kind": "question", "amount": TradeQuestion } | { "kind": "answer", "amount": TradeAnswer } | { "kind": "discount_request", "amount": TradeDiscountRequest } | { "kind": "discount_offer", "amount": TradeDiscountOffer } | { "kind": "discount_accept", "amount": TradeDiscountDecision } | { "kind": "discount_decline", "amount": TradeDiscountDecision } | { "kind": "cancel", "amount": TradeListingCancel } | { "kind": "fulfillment_update", "amount": TradeFulfillmentUpdate } | { "kind": "receipt", "amount": TradeReceipt };
-
-export type TradeListingMessageType = "listing_validate_request" | "listing_validate_result" | "order_request" | "order_response" | "order_revision" | "order_revision_accept" | "order_revision_decline" | "question" | "answer" | "discount_request" | "discount_offer" | "discount_accept" | "discount_decline" | "cancel" | "fulfillment_update" | "receipt";
-
-export type TradeListingOrderRequest = { event: RadrootsNostrEventPtr, payload: TradeListingOrderRequestPayload, };
-
-export type TradeListingOrderRequestPayload = { bin_id: string, bin_count: number, };
-
-export type TradeListingOrderResult = { bin_id: string, bin_count: number, price: RadrootsCoreQuantityPrice, discounts: RadrootsCoreDiscount[], subtotal: RadrootsTradeListingSubtotal, total: RadrootsTradeListingTotal, };
-
-export type TradeListingParseError = { "MissingTag": string } | { "InvalidTag": string } | { "InvalidNumber": string } | "InvalidUnit" | "InvalidCurrency" | { "InvalidJson": string } | { "InvalidDiscount": string };
-
-export type TradeListingPaymentProof = { "kind": "zap_event", "amount": { id: string, } } | { "kind": "preimage", "amount": { hex: string, } } | { "kind": "txid", "amount": { id: string, } } | { "kind": "external_ref", "amount": { provider: string, ref_id: string, } };
-
-export type TradeListingPaymentProofRequest = { invoice_result_event_id: string, proof: TradeListingPaymentProof, };
-
-export type TradeListingPaymentResult = { verified: boolean, message?: string | null, };
-
-export type TradeListingReceiptRequest = { fulfillment_result_event_id: string, note?: string | null, };
-
-export type TradeListingReceiptResult = { acknowledged: boolean, at: number, };
-
-export type TradeListingStage = { "kind": "order" } | { "kind": "accept" } | { "kind": "conveyance" } | { "kind": "invoice" } | { "kind": "payment" } | { "kind": "fulfillment" } | { "kind": "receipt" } | { "kind": "cancel" } | { "kind": "refund" };
-
-export type TradeListingValidateRequest = { listing_event?: RadrootsNostrEventPtr | null, };
-
-export type TradeListingValidateResult = { valid: boolean, errors: TradeListingValidationError[], };
-
-export type TradeListingValidationError = { "kind": "invalid_kind", "amount": { kind: number, } } | { "kind": "missing_listing_id" } | { "kind": "listing_event_not_found", "amount": { listing_addr: string, } } | { "kind": "listing_event_fetch_failed", "amount": { listing_addr: string, } } | { "kind": "parse_error", "amount": { error: TradeListingParseError, } } | { "kind": "invalid_seller" } | { "kind": "missing_farm_profile" } | { "kind": "missing_farm_record" } | { "kind": "missing_title" } | { "kind": "missing_description" } | { "kind": "missing_product_type" } | { "kind": "missing_bins" } | { "kind": "missing_primary_bin" } | { "kind": "invalid_bin" } | { "kind": "missing_price" } | { "kind": "invalid_price" } | { "kind": "missing_inventory" } | { "kind": "invalid_inventory" } | { "kind": "missing_availability" } | { "kind": "missing_location" } | { "kind": "missing_delivery_method" };
-
-export type TradeOrder = { order_id: string, listing_addr: string, buyer_pubkey: string, seller_pubkey: string, items: Array<TradeOrderItem>, discounts?: RadrootsCoreDiscountValue[] | null, notes?: string | null, status: TradeOrderStatus, };
-
-export type TradeOrderChange = { "kind": "bin_count", "amount": { item_index: number, bin_count: number, } } | { "kind": "item_add", "amount": { item: TradeOrderItem, } } | { "kind": "item_remove", "amount": { item_index: number, } };
-
-export type TradeOrderItem = { bin_id: string, bin_count: number, };
-
-export type TradeOrderResponse = { accepted: boolean, reason?: string | null, };
-
-export type TradeOrderRevision = { revision_id: string, order_id: string, changes: Array<TradeOrderChange>, reason?: string | null, };
-
-export type TradeOrderRevisionResponse = { accepted: boolean, reason?: string | null, };
-
-export type TradeOrderStatus = "draft" | "validated" | "requested" | "questioned" | "revised" | "accepted" | "declined" | "cancelled" | "fulfilled" | "completed";
-
-export type TradeQuestion = { question_id: string, order_id?: string | null, listing_addr?: string | null, question_text: string, };
-
-export type TradeReceipt = { acknowledged: boolean, at: bigint, note?: string | null, };
-
-export enum TradeListingMarker { "listing" = "listing", "payload" = "payload", "previous" = "previous", "order_result" = "order_result", "accept_result" = "accept_result", "conveyance_result" = "conveyance_result", "invoice_result" = "invoice_result", "payment_result" = "payment_result", "fulfillment_result" = "fulfillment_result", "receipt_result" = "receipt_result", "cancel_result" = "cancel_result", "refund_result" = "refund_result", "proof" = "proof" }
-
-export enum TradeListingKind { "KIND_TRADE_LISTING_ORDER_REQ" = 5301, "KIND_TRADE_LISTING_ORDER_RES" = 6301, "KIND_TRADE_LISTING_ACCEPT_REQ" = 5302, "KIND_TRADE_LISTING_ACCEPT_RES" = 6302, "KIND_TRADE_LISTING_CONVEYANCE_REQ" = 5303, "KIND_TRADE_LISTING_CONVEYANCE_RES" = 6303, "KIND_TRADE_LISTING_INVOICE_REQ" = 5304, "KIND_TRADE_LISTING_INVOICE_RES" = 6304, "KIND_TRADE_LISTING_PAYMENT_REQ" = 5305, "KIND_TRADE_LISTING_PAYMENT_RES" = 6305, "KIND_TRADE_LISTING_FULFILL_REQ" = 5306, "KIND_TRADE_LISTING_FULFILL_RES" = 6306, "KIND_TRADE_LISTING_RECEIPT_REQ" = 5307, "KIND_TRADE_LISTING_RECEIPT_RES" = 6307, "KIND_TRADE_LISTING_CANCEL_REQ" = 5309, "KIND_TRADE_LISTING_CANCEL_RES" = 6309, "KIND_TRADE_LISTING_REFUND_REQ" = 5310, "KIND_TRADE_LISTING_REFUND_RES" = 6310 }
-
-export enum TradeListingDvmKind { "KIND_TRADE_LISTING_VALIDATE_REQ" = 5321, "KIND_TRADE_LISTING_VALIDATE_RES" = 6321, "KIND_TRADE_LISTING_ORDER_REQ" = 5322, "KIND_TRADE_LISTING_ORDER_RES" = 6322, "KIND_TRADE_LISTING_ORDER_REVISION_REQ" = 5323, "KIND_TRADE_LISTING_ORDER_REVISION_RES" = 6323, "KIND_TRADE_LISTING_QUESTION_REQ" = 5324, "KIND_TRADE_LISTING_ANSWER_RES" = 6324, "KIND_TRADE_LISTING_DISCOUNT_REQ" = 5325, "KIND_TRADE_LISTING_DISCOUNT_OFFER_RES" = 6325, "KIND_TRADE_LISTING_DISCOUNT_ACCEPT_REQ" = 5326, "KIND_TRADE_LISTING_DISCOUNT_DECLINE_REQ" = 5327, "KIND_TRADE_LISTING_CANCEL_REQ" = 5328, "KIND_TRADE_LISTING_FULFILLMENT_UPDATE_REQ" = 5329, "KIND_TRADE_LISTING_RECEIPT_REQ" = 5330 }
diff --git a/trade/bindings/ts/tsconfig.cjs.json b/trade/bindings/ts/tsconfig.cjs.json
@@ -1,15 +0,0 @@
-{
- "extends": "@radroots/tsconfig/tsconfig.esm.json",
- "compilerOptions": {
- "module": "CommonJS",
- "moduleResolution": "Node",
- "rootDir": "./src",
- "outDir": "dist/cjs",
- "declaration": false,
- "declarationMap": false,
- "emitDeclarationOnly": false,
- "tsBuildInfoFile": "node_modules/.cache/tsc.utils-nostr.cjs.tsbuildinfo"
- },
- "include": ["src"],
- "exclude": ["node_modules", "dist"]
-}
diff --git a/trade/bindings/ts/tsconfig.esm.json b/trade/bindings/ts/tsconfig.esm.json
@@ -1,13 +0,0 @@
-{
- "extends": "@radroots/tsconfig/tsconfig.esm.json",
- "compilerOptions": {
- "moduleResolution": "nodenext",
- "rootDir": "./src",
- "outDir": "dist/esm",
- "declaration": true,
- "declarationMap": true,
- "declarationDir": "dist/types"
- },
- "include": ["src"],
- "exclude": ["node_modules", "dist"]
-}
diff --git a/trade/bindings/ts/tsconfig.json b/trade/bindings/ts/tsconfig.json
@@ -1,3 +0,0 @@
-{
- "extends": "./tsconfig.esm.json"
-}
diff --git a/trade/build.rs b/trade/build.rs
@@ -1,12 +1,20 @@
-use std::{env, fs, path::Path};
+use std::{env, fs, path::PathBuf};
+
+fn export_dir(crate_name: &str) -> PathBuf {
+ if let Some(export_dir) = env::var_os("RADROOTS_TS_RS_EXPORT_DIR") {
+ return PathBuf::from(export_dir);
+ }
+ PathBuf::from(format!("../target/ts-rs/{crate_name}"))
+}
fn main() {
println!("cargo:rerun-if-changed=build.rs");
if env::var_os("CARGO_FEATURE_TS_RS").is_some() {
- println!("cargo:rustc-env=TS_RS_EXPORT_DIR=./bindings/ts/src");
- let out_dir = Path::new("bindings/ts/src");
+ let out_dir = export_dir("trade");
+ println!("cargo:rustc-env=TS_RS_EXPORT_DIR={}", out_dir.display());
+ println!("cargo:rerun-if-env-changed=RADROOTS_TS_RS_EXPORT_DIR");
if !out_dir.exists() {
- fs::create_dir_all(out_dir).expect("create TS export dir");
+ fs::create_dir_all(&out_dir).expect("create TS export dir");
}
println!("cargo:rerun-if-changed=src");
}
diff --git a/turbo.json b/turbo.json
@@ -1,55 +0,0 @@
-{
- "$schema": "https://turborepo.com/schema.json",
- "ui": "tui",
- "tasks": {
- "build": {
- "dependsOn": [
- "^build"
- ],
- "inputs": [
- "$TURBO_DEFAULT$",
- ".env*"
- ],
- "outputs": [
- "dist/**"
- ]
- },
- "lint": {
- "dependsOn": [
- "^lint"
- ]
- },
- "check-types": {
- "dependsOn": [
- "^check-types"
- ]
- },
- "dev": {
- "cache": false,
- "persistent": true
- },
- "@radroots/core#build": {
- "dependsOn": [
- "@radroots/tsconfig#build"
- ]
- },
- "@radroots/events#build": {
- "dependsOn": [
- "@radroots/tsconfig#build",
- "@radroots/core#build"
- ]
- },
- "@radroots/events-indexed#build": {
- "dependsOn": [
- "@radroots/tsconfig#build"
- ]
- },
- "@radroots/trade#build": {
- "dependsOn": [
- "@radroots/tsconfig#build",
- "@radroots/core#build",
- "@radroots/events#build"
- ]
- }
- }
-}
diff --git a/types/bindings/ts/package.json b/types/bindings/ts/package.json
@@ -1,38 +0,0 @@
-{
- "name": "@radroots/types",
- "version": "1.0.0",
- "private": true,
- "license": "AGPLv3",
- "type": "module",
- "main": "./dist/cjs/index.js",
- "module": "./dist/esm/index.js",
- "types": "./dist/types/index.d.ts",
- "exports": {
- ".": {
- "types": "./dist/types/index.d.ts",
- "import": "./dist/esm/index.js",
- "require": "./dist/cjs/index.js"
- }
- },
- "files": [
- "dist"
- ],
- "sideEffects": false,
- "scripts": {
- "build:esm": "tsc -p tsconfig.esm.json",
- "build:cjs": "tsc -p tsconfig.cjs.json",
- "build": "npm run clean && npm run build:esm && npm run build:cjs",
- "prebuild": "npm run clean",
- "clean": "rimraf dist",
- "dev": "npm run watch",
- "watch": "tsc -w"
- },
- "devDependencies": {
- "@radroots/tsconfig": "workspace:*",
- "rimraf": "^6.0.1"
- },
- "dependencies": {},
- "publishConfig": {
- "access": "public"
- }
-}
-\ No newline at end of file
diff --git a/types/bindings/ts/src/index.ts b/types/bindings/ts/src/index.ts
@@ -1 +0,0 @@
-export * from "./types.js"
diff --git a/types/bindings/ts/src/types.ts b/types/bindings/ts/src/types.ts
@@ -1,9 +0,0 @@
-// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
-
-export type IError<T> = { err: T, };
-
-export type IResult<T> = { result: T, };
-
-export type IResultList<T> = { results: Array<T>, };
-
-export type IResultPass = { pass: boolean, };
diff --git a/types/bindings/ts/tsconfig.cjs.json b/types/bindings/ts/tsconfig.cjs.json
@@ -1,15 +0,0 @@
-{
- "extends": "@radroots/tsconfig/tsconfig.esm.json",
- "compilerOptions": {
- "module": "CommonJS",
- "moduleResolution": "Node",
- "rootDir": "./src",
- "outDir": "dist/cjs",
- "declaration": false,
- "declarationMap": false,
- "emitDeclarationOnly": false,
- "tsBuildInfoFile": "node_modules/.cache/tsc.utils-nostr.cjs.tsbuildinfo"
- },
- "include": ["src"],
- "exclude": ["node_modules", "dist"]
-}
diff --git a/types/bindings/ts/tsconfig.esm.json b/types/bindings/ts/tsconfig.esm.json
@@ -1,13 +0,0 @@
-{
- "extends": "@radroots/tsconfig/tsconfig.esm.json",
- "compilerOptions": {
- "moduleResolution": "nodenext",
- "rootDir": "./src",
- "outDir": "dist/esm",
- "declaration": true,
- "declarationMap": true,
- "declarationDir": "dist/types"
- },
- "include": ["src"],
- "exclude": ["node_modules", "dist"]
-}
diff --git a/types/bindings/ts/tsconfig.json b/types/bindings/ts/tsconfig.json
@@ -1,3 +0,0 @@
-{
- "extends": "./tsconfig.esm.json"
-}
diff --git a/types/build.rs b/types/build.rs
@@ -1,12 +1,20 @@
-use std::{env, fs, path::Path};
+use std::{env, fs, path::PathBuf};
+
+fn export_dir(crate_name: &str) -> PathBuf {
+ if let Some(export_dir) = env::var_os("RADROOTS_TS_RS_EXPORT_DIR") {
+ return PathBuf::from(export_dir);
+ }
+ PathBuf::from(format!("../target/ts-rs/{crate_name}"))
+}
fn main() {
println!("cargo:rerun-if-changed=build.rs");
if env::var_os("CARGO_FEATURE_TS_RS").is_some() {
- println!("cargo:rustc-env=TS_RS_EXPORT_DIR=./bindings/ts/src");
- let out_dir = Path::new("bindings/ts/src");
+ let out_dir = export_dir("types");
+ println!("cargo:rustc-env=TS_RS_EXPORT_DIR={}", out_dir.display());
+ println!("cargo:rerun-if-env-changed=RADROOTS_TS_RS_EXPORT_DIR");
if !out_dir.exists() {
- fs::create_dir_all(out_dir).expect("Failed to create TS export directory");
+ fs::create_dir_all(&out_dir).expect("Failed to create TS export directory");
}
println!("cargo:rerun-if-changed=src");
}