@1sat/types 0.0.39 → 0.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,22 +6,39 @@ export declare const MAP_PREFIX = "1PuQa7K62MiKCtssSLKy1kh56WWU7MtUR5";
6
6
  /** Ordinal inscription marker */
7
7
  export declare const ORD_PREFIX = "ord";
8
8
  export declare const FUNDING_BASKET = "default";
9
- export declare const ORDINALS_BASKET = "p 1sat ordinals";
10
- export declare const BSV21_BASKET = "p 1sat bsv21";
11
- export declare const BSV21_AUTH_BASKET = "p 1sat bsv21-auth";
12
- export declare const BSV21_DEPLOY_FUNDING_BASKET = "p 1sat bsv21-deploy-funding";
13
- /** Tag on a single-CA deploy output; tokenId is the outpoint (`txid_vout`). */
14
- export declare const BSV21_DEPLOY_TAG = "bsv21:deploy";
15
- export declare const OPNS_BASKET = "p 1sat opns";
16
9
  /**
17
- * Host-wallet basket for subscription receipt dust (1 sat to host).
18
- * Customer identity is **not** in the locking script only wallet-local tags.
10
+ * Preferred inventory baskets (BRC-147 collectables = `1sat`). Plain names
11
+ * not P-baskets. Permission routing for createAction stays on `p 1sat …`
12
+ * **labels**; basket list/internalize uses the known-set check in the module
13
+ * when registered, else generic WPM basket access.
14
+ *
15
+ * Legacy `p 1sat …` baskets are not dual-read — migrate once via
16
+ * {@link LEGACY_P1SAT_BASKET_MIGRATIONS} / `moveBasketOutputs`.
19
17
  */
20
- export declare const HOSTING_BASKET = "p 1sat hosting";
21
- export declare const LOCK_BASKET = "p 1sat lock";
22
- export declare const SIGMA_BASKET = "p 1sat sigma";
23
- export declare const BSOCIAL_BASKET = "p 1sat bsocial";
18
+ /** Collectables / ordinals inventory (BRC-147). */
19
+ export declare const ONESAT_BASKET = "1sat";
20
+ /** @deprecated Prefer {@link ONESAT_BASKET}; same string. */
21
+ export declare const ORDINALS_BASKET = "1sat";
22
+ export declare const BSV21_BASKET = "bsv21";
23
+ /** @deprecated Auth UTXOs live in {@link BSV21_BASKET} with {@link BSV21_AUTH_TAG}. */
24
+ export declare const BSV21_AUTH_BASKET = "bsv21";
25
+ /** Tag on mint-authority BSV21 outputs (no amt). */
26
+ export declare const BSV21_AUTH_TAG = "bsv21:auth";
27
+ /** Tag on a single-CA deploy output; tokenId is the outpoint (`txid_vout`). */
28
+ export declare const BSV21_DEPLOY_TAG = "bsv21:deploy";
29
+ export declare const OPNS_BASKET = "opns";
30
+ export declare const LOCK_BASKET = "lock";
31
+ export declare const SIGMA_BASKET = "sigma";
32
+ export declare const BSOCIAL_BASKET = "bsocial";
24
33
  export declare const BAP_BASKET = "bap";
34
+ /** All preferred 1Sat asset baskets (for module basket-access gating). */
35
+ export declare const ONESAT_ASSET_BASKETS: readonly string[];
36
+ /** Legacy P-basket → preferred basket. Migrate only; no dual-read. */
37
+ export declare const LEGACY_P1SAT_BASKET_MIGRATIONS: ReadonlyArray<{
38
+ from: string;
39
+ to: string;
40
+ }>;
41
+ export declare function isOneSatAssetBasket(basket: string): boolean;
25
42
  /**
26
43
  * Holding basket for plain BSV received at the user's P1SAT-derived
27
44
  * deposit address. UTXOs land here via `internalizeBeef` and stay until
@@ -55,10 +72,20 @@ export declare const ONESAT_MAINNET_CONTENT_URL = "https://api.1sat.app/content"
55
72
  /** 1Sat API content URL (testnet) */
56
73
  export declare const ONESAT_TESTNET_CONTENT_URL = "https://testnet.api.1sat.app/content";
57
74
  /**
58
- * 1Sat ecosystem signing protocol. All 1Sat asset operations (ordinals,
59
- * BSV21, locks, OPNS, cosign, MNEE, deposits) sign and derive under this
60
- * protocol. The `'p '` prefix routes calls to the registered 1Sat permission
61
- * module per BRC-0098.
75
+ * Preferred default key-derivation protocol for new 1Sat asset outputs.
76
+ * Plain name not a BRC-99 P-protocol. Spends always use whatever
77
+ * `protocolID` was recorded in customInstructions (including legacy
78
+ * `[0,'p 1sat']` rows).
79
+ */
80
+ export declare const ONESAT_PROTOCOL: [0 | 1 | 2, string];
81
+ /**
82
+ * BRC-98 / BRC-165 module probe protocol (`p <scheme> <rest>` → `p 1sat probe`).
83
+ * Used by {@link hasOneSatModule}. Not for inventory keys or spend unlock CI.
84
+ */
85
+ export declare const P1SAT_MODULE_PROTOCOL: [0 | 1 | 2, string];
86
+ /**
87
+ * @deprecated Prefer {@link ONESAT_PROTOCOL} for new keys.
88
+ * Module probe is {@link P1SAT_MODULE_PROTOCOL}. Same as ONESAT_PROTOCOL.
62
89
  */
63
90
  export declare const P1SAT_PROTOCOL: [0 | 1 | 2, string];
64
91
  /** customInstructions.template when the name is locked with signed PushDrop */
@@ -71,116 +98,41 @@ export declare const OPNS_REGISTER_COUNTERPARTY: "anyone";
71
98
  export declare const OPNS_PUBLISHED_TAG = "opns:published";
72
99
  /** PushDrop keyID from spent input outpoint (`txid.vout` → `opns:{txid}_{vout}`) */
73
100
  export declare function opnsRegisterKeyId(outpoint: string): string;
74
- /** Tag: `payer:{identityKeyHex}` on host receipt outputs (storage only). */
75
- export declare const HOSTING_PAYER_TAG_PREFIX = "payer:";
76
- /** Tag: `exp:{unixSeconds}` on host receipt outputs (storage only). */
77
- export declare const HOSTING_EXP_TAG_PREFIX = "exp:";
78
- export declare function hostingPayerTag(identityKeyHex: string): string;
79
- export declare function hostingExpTag(expiresAtUnix: number): string;
80
- export declare function readHostingPayer(tags: string[] | undefined): string | undefined;
81
- export declare function readHostingExp(tags: string[] | undefined): number | undefined;
82
101
  /**
83
- * Generic dispatch-trigger label. Added by `createTrackedAction` when no
84
- * asset-specific labels are present, so the module still gets a chance
85
- * to capture the hashOutputs commitment for any 1Sat-asset createAction.
86
- *
87
- * Asset-specific labels (built via {@link buildInputAssetLabel} /
88
- * {@link buildOutputAssetLabel}) carry per-asset lookup keys the module
89
- * uses to render the prompt with rich detail (ordinal name, token amount,
90
- * etc.). The wallet-toolbox enforces a `'p <scheme> <payload>'` shape, so
91
- * a bare `'p 1sat'` is invalid; we use `'p 1sat action'` as the fallback.
102
+ * Registered permission scheme ids. Each maps to one primary storage basket
103
+ * of the same name (except where a profile documents otherwise).
92
104
  */
93
- export declare const P1SAT_LABEL = "p 1sat action";
94
- /**
95
- * Intent label prefix. Payload is `<domain>.<verb>` (e.g. `opns.register`).
96
- * When present, replaces the need for bare {@link P1SAT_LABEL} as the
97
- * WPM dispatch trigger for createAction.
98
- */
99
- export declare const P1SAT_INTENT_LABEL_PREFIX = "p 1sat intent ";
100
- /** Well-known P1Sat createAction intents (permission apply dispatch keys). */
101
- export declare const P1SAT_INTENTS: {
102
- readonly OPNS_REGISTER: "opns.register";
103
- readonly OPNS_DEREGISTER: "opns.deregister";
104
- readonly OPNS_LIST: "opns.list";
105
- readonly OPNS_TRANSFER: "opns.transfer";
106
- readonly OPNS_CANCEL_LISTING: "opns.cancel-listing";
107
- readonly OPNS_PURCHASE: "opns.purchase";
108
- readonly ORDINAL_TRANSFER: "ordinal.transfer";
109
- readonly ORDINAL_LIST: "ordinal.list";
110
- readonly ORDINAL_CANCEL_LISTING: "ordinal.cancel-listing";
111
- readonly ORDINAL_PURCHASE: "ordinal.purchase";
112
- readonly ORDINAL_BURN: "ordinal.burn";
113
- readonly ORDINAL_INSCRIBE: "ordinal.inscribe";
114
- readonly ORDINAL_INSCRIBE_SIGMA: "ordinal.inscribe-sigma";
115
- readonly ORDINAL_MINT_COLLECTION: "ordinal.mint-collection";
116
- readonly ORDINAL_MINT_ITEM: "ordinal.mint-item";
117
- readonly LOCK_LOCK: "lock.lock";
118
- readonly LOCK_UNLOCK: "lock.unlock";
119
- readonly BSV21_TRANSFER: "bsv21.transfer";
120
- readonly BSV21_PURCHASE: "bsv21.purchase";
121
- readonly BSV21_MINT: "bsv21.mint";
122
- readonly BSV21_DEPLOY: "bsv21.deploy";
105
+ export declare const PERMISSION_SCHEMES: {
106
+ readonly ONESAT: "1sat";
107
+ readonly OPNS: "opns";
108
+ readonly BSV21: "bsv21";
109
+ readonly LOCK: "lock";
123
110
  };
124
- export type P1SatIntent = (typeof P1SAT_INTENTS)[keyof typeof P1SAT_INTENTS];
125
- /** All known intent id strings (for fail-closed checks). */
126
- export declare const P1SAT_INTENT_IDS: ReadonlySet<string>;
127
- /**
128
- * True if `intent` is a known P1Sat intent id.
129
- */
130
- export declare function isKnownP1SatIntent(intent: string): intent is P1SatIntent;
131
- /**
132
- * Build `p 1sat intent <domain>.<verb>`.
133
- */
134
- export declare function buildIntentLabel(intent: string): string;
135
- /**
136
- * First `p 1sat intent …` label payload, or undefined.
137
- */
138
- export declare function parseIntentLabel(labels: string[] | undefined): string | undefined;
139
- /**
140
- * Action-id label prefix. Payload is the hex actionId that also appears in
141
- * each basketed output's `id:<actionId>_<index>` tag.
142
- *
143
- * The actionId is the action's correlator: it is stamped before apply runs,
144
- * so both the action and apply can derive the same intermediate keyIDs
145
- * (e.g. the Sigma anchor) without passing anything between them. Nothing may
146
- * travel back from apply to the action — `WalletPermissionsManager` rebuilds
147
- * `labels` into a new array before the module sees the args, so writes there
148
- * are not visible to the caller.
149
- */
150
- export declare const P1SAT_ACTION_ID_LABEL_PREFIX = "p 1sat action-id ";
111
+ export type PermissionSchemeId = (typeof PERMISSION_SCHEMES)[keyof typeof PERMISSION_SCHEMES];
112
+ /** Scheme ids that ship with the shared permission-module toolkit. */
113
+ export declare const PERMISSION_SCHEME_IDS: readonly PermissionSchemeId[];
114
+ export declare function isPermissionSchemeId(s: string): s is PermissionSchemeId;
115
+ /** Primary storage basket for a scheme (today: scheme id === basket name). */
116
+ export declare function basketForScheme(scheme: PermissionSchemeId): string;
117
+ /** Scheme that owns a storage basket, if any. */
118
+ export declare function schemeForBasket(basket: string): PermissionSchemeId | undefined;
119
+ /** Dispatch label: `p <scheme> action` — routes createAction when no input label. */
120
+ export declare function buildActionDispatchLabel(scheme: PermissionSchemeId): string;
121
+ /** @deprecated Prefer {@link buildActionDispatchLabel}(`1sat`). */
122
+ export declare const P1SAT_LABEL: string;
151
123
  /**
152
- * Build `p 1sat action-id <actionId>`.
153
- */
154
- export declare function buildActionIdLabel(actionId: string): string;
155
- /**
156
- * First `p 1sat action-id …` label payload, or undefined.
157
- */
158
- export declare function parseActionIdLabel(labels: string[] | undefined): string | undefined;
159
- /**
160
- * True if labels already route createAction to the 1Sat permission module
161
- * (bare action label or any intent label).
124
+ * True if labels already route createAction to `scheme` (any well-formed
125
+ * `p <scheme> <payload>` label, including bare action dispatch).
162
126
  */
127
+ export declare function hasSchemeDispatchLabel(labels: string[] | undefined, scheme: PermissionSchemeId): boolean;
128
+ /** True if any known asset scheme is addressed by a P-label. */
129
+ export declare function hasAssetDispatchLabel(labels: string[] | undefined): boolean;
130
+ /** @deprecated Prefer {@link hasSchemeDispatchLabel} / {@link hasAssetDispatchLabel}. */
163
131
  export declare function hasP1SatDispatchLabel(labels: string[] | undefined): boolean;
164
- /**
165
- * Shared `'p 1sat '` prefix on every 1Sat asset basket. Used by the
166
- * WalletPermissionsManager to route basket-scoped calls (listOutputs,
167
- * internalizeAction, etc.) through the 1Sat permission module.
168
- */
169
- export declare const P1SAT_BASKET_PREFIX = "p 1sat ";
170
- /**
171
- * Label prefix recognized by the 1Sat permission module. Carries the
172
- * `'p 1sat'` dispatch trigger; payload is `'<basket-suffix> <id>'`
173
- * where `<basket-suffix>` is the asset basket name with the shared
174
- * `'p 1sat '` prefix stripped (e.g. `'ordinals'`, `'bsv21'`). Encoding
175
- * only the suffix keeps the payload space-free so the parser can split
176
- * cleanly on the boundary between basket and id.
177
- *
178
- * Outputs don't need a label: the SDK sets tags directly on
179
- * `args.outputs[i].tags` (unencrypted, visible to the module), and
180
- * `args.outputs[i].lockingScript` is cryptographically committed to
181
- * the final tx. The module reads both directly.
182
- */
183
- export declare const P1SAT_INPUT_LABEL_PREFIX = "p 1sat input ";
132
+ /** Ensure `p <scheme> action` is present (unless another payload label for that scheme exists). */
133
+ export declare function ensureSchemeActionLabel(labels: string[] | undefined, scheme: PermissionSchemeId): string[];
134
+ /** @deprecated Prefer {@link ensureSchemeActionLabel}(`labels`, `1sat`). */
135
+ export declare function ensureP1SatActionLabel(labels: string[] | undefined): string[];
184
136
  /**
185
137
  * Byte length of the zero-filled signature field carried by an unsealed
186
138
  * `opns.register` lock. The action emits the complete PushDrop script with
@@ -190,40 +142,52 @@ export declare const P1SAT_INPUT_LABEL_PREFIX = "p 1sat input ";
190
142
  */
191
143
  export declare const OPNS_REGISTER_SIG_PLACEHOLDER_LEN = 72;
192
144
  /**
193
- * Build a label that points the 1Sat permission module at a specific
194
- * input asset record in the wallet's storage.
195
- *
196
- * `id` is the per-output asset id assigned by `createTrackedAction`
197
- * (`id:<actionId>_<vout>`) — the value stored on the input's `id:` tag,
198
- * without the `id:` prefix. The module resolves the record via
199
- * `listOutputs({ basket, tags: [id:<id>], tagQueryMode: 'all' })` — a
200
- * single indexed lookup, not a basket scan.
201
- *
202
- * Inputs without an `id:` tag (e.g. created before tracked-action ids
203
- * existed) can't be enriched; callers should skip emitting the label
204
- * for those rather than scanning by outpoint.
145
+ * Build `p <scheme> input id <key>` for a held row.
205
146
  *
206
- * The shared {@link P1SAT_BASKET_PREFIX} is stripped from the basket
207
- * before encoding so basket names with embedded spaces don't collide
208
- * with the basket↔id space delimiter. Non-P1Sat baskets pass through
209
- * unstripped — those won't resolve in the permission module and the
210
- * input simply drops from enrichment (graceful degradation to the
211
- * generic transaction approval UI).
212
- *
213
- * @param basket - Asset basket (typically a P1Sat basket constant).
214
- * @param id - The asset id, i.e. the `id:` tag value on the input.
147
+ * `id` is the bare BRC-164 `id:` tag value (no `id:` prefix) and MUST NOT
148
+ * contain spaces. `basket` selects the scheme (scheme id === basket name).
215
149
  */
216
150
  export declare function buildInputAssetLabel(basket: string, id: string): string;
217
151
  /**
218
- * BRC-111 P-label prefix used to tag actions with a BSV21 token id so the
219
- * wallet can filter transaction history per token via
220
- * `wallet.listActions({ labels: [...] })`. As a `'p 1sat '`-prefixed label
221
- * it routes through the 1Sat permission module instead of triggering the
222
- * wallet-toolbox's per-label Protocol Permission prompt.
152
+ * Build `p <scheme> input <outpoint>` for an external (non-wallet) spend
153
+ * (outpoint is one of the action's beefed inputs).
154
+ */
155
+ export declare function buildExternalInputLabel(scheme: PermissionSchemeId, outpoint: string): string;
156
+ export interface ParsedInputAssetLabel {
157
+ scheme: PermissionSchemeId;
158
+ basket: string;
159
+ id: string;
160
+ }
161
+ /**
162
+ * Parse held-row input labels (`p <scheme> input id <key>` only).
163
+ */
164
+ export declare function parseInputAssetLabels(labels: string[] | undefined): ParsedInputAssetLabel[];
165
+ export type ParsedInputLabel = {
166
+ kind: 'id';
167
+ scheme: PermissionSchemeId;
168
+ basket: string;
169
+ id: string;
170
+ } | {
171
+ kind: 'outpoint';
172
+ scheme: PermissionSchemeId;
173
+ outpoint: string;
174
+ };
175
+ /**
176
+ * Parse a single `p <scheme> input …` label.
177
+ *
178
+ * - Held: `p <scheme> input id <key>`
179
+ * - External: `p <scheme> input <outpoint>` (outpoint-shaped single token)
180
+ */
181
+ export declare function parseOneInputLabel(label: string): ParsedInputLabel | undefined;
182
+ /**
183
+ * BRC-111 P-label for BSV21 token history filtering via listActions.
184
+ * Routes through the `bsv21` permission scheme.
223
185
  */
224
- export declare const P1SAT_TOKEN_LABEL_PREFIX = "p 1sat bsv21 ";
186
+ export declare const BSV21_TOKEN_LABEL_PREFIX = "p bsv21 token ";
187
+ /** @deprecated Prefer {@link BSV21_TOKEN_LABEL_PREFIX}. */
188
+ export declare const P1SAT_TOKEN_LABEL_PREFIX = "p bsv21 token ";
225
189
  /**
226
- * Build a BSV21 token label, e.g. `'p 1sat bsv21 <tokenId>'`.
190
+ * Build a BSV21 token history label, e.g. `'p bsv21 token <tokenId>'`.
227
191
  */
228
192
  export declare function buildTokenLabel(tokenId: string): string;
229
193
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,oDAAoD;AACpD,eAAO,MAAM,UAAU,uCAAuC,CAAA;AAE9D,iCAAiC;AACjC,eAAO,MAAM,UAAU,QAAQ,CAAA;A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