tixbit 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +205 -50
- package/dist/cli.js +755 -66
- package/dist/index.d.ts +240 -14
- package/dist/index.js +526 -37
- package/package.json +11 -6
- package/skills/tixbit/SKILL.md +64 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tixbit",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Search events,
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Search events, browse listings, view seatmaps, and purchase TixBit tickets through MPP",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist/*.js",
|
|
19
19
|
"dist/*.d.ts",
|
|
20
|
+
"skills/tixbit/SKILL.md",
|
|
20
21
|
"README.md",
|
|
21
22
|
"LICENSE"
|
|
22
23
|
],
|
|
@@ -29,21 +30,25 @@
|
|
|
29
30
|
"prepublishOnly": "npm run build"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"commander": "^13.1.0"
|
|
33
|
+
"commander": "^13.1.0",
|
|
34
|
+
"mppx": "^0.8.15"
|
|
33
35
|
},
|
|
34
36
|
"devDependencies": {
|
|
37
|
+
"@types/node": "20.19.25",
|
|
35
38
|
"tsup": "^8.4.0",
|
|
36
39
|
"typescript": "^5.7.0",
|
|
37
|
-
"vitest": "
|
|
40
|
+
"vitest": "3.2.7"
|
|
38
41
|
},
|
|
39
42
|
"engines": {
|
|
40
|
-
"node": ">=
|
|
43
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
41
44
|
},
|
|
42
45
|
"keywords": [
|
|
43
46
|
"tixbit",
|
|
44
47
|
"tickets",
|
|
45
48
|
"events",
|
|
46
49
|
"seatmap",
|
|
50
|
+
"mpp",
|
|
51
|
+
"machine-payments",
|
|
47
52
|
"seating-chart",
|
|
48
53
|
"cli",
|
|
49
54
|
"sdk",
|
|
@@ -53,7 +58,7 @@
|
|
|
53
58
|
"mlb",
|
|
54
59
|
"nfl"
|
|
55
60
|
],
|
|
56
|
-
"homepage": "https://tixbit.com",
|
|
61
|
+
"homepage": "https://www.tixbit.com",
|
|
57
62
|
"license": "MIT",
|
|
58
63
|
"repository": {
|
|
59
64
|
"type": "git",
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tixbit
|
|
3
|
+
description: Search TixBit events and listings, inspect seatmaps, create browser checkout links, or purchase a selected listing through MPP.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# TixBit Skill
|
|
7
|
+
|
|
8
|
+
Use the official CLI and prefer `--json` for agent-readable output:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npx tixbit <command>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Discovery, listings, seatmaps, event URLs, link-only checkout, and machine
|
|
15
|
+
purchase require no TixBit API key. Machine purchase requires an mppx account
|
|
16
|
+
and an email address supplied by the buyer. Never infer the email from git, OS,
|
|
17
|
+
or account state.
|
|
18
|
+
|
|
19
|
+
## Commands
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx tixbit search "Braves" --city Atlanta --state GA --size 10 --json
|
|
23
|
+
npx tixbit listings <eventId> --size 10 --sort asc --json
|
|
24
|
+
npx tixbit seatmap <eventId> --json
|
|
25
|
+
npx tixbit url <eventId>
|
|
26
|
+
|
|
27
|
+
# Link-only browser checkout; this does not charge the buyer.
|
|
28
|
+
npx tixbit checkout <listingId> --quantity 2 --json
|
|
29
|
+
|
|
30
|
+
# Machine checkout; obtain explicit authorization before any real payment.
|
|
31
|
+
npx tixbit purchase <listingId> \
|
|
32
|
+
--quantity 2 \
|
|
33
|
+
--email buyer@example.com \
|
|
34
|
+
--confirm --max-price <approved-total-usd> \
|
|
35
|
+
--idempotency-key <stable-uuid-v4> \
|
|
36
|
+
--json
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Additional commands (requires this build or a later release)
|
|
40
|
+
|
|
41
|
+
- `tixbit quote <eventId> --size 100`: refresh existing listings; requires live freshness.
|
|
42
|
+
- `tixbit auth`: public browser sign-in and wallet setup links; not a CLI login. No command needs a developer API key.
|
|
43
|
+
- `tixbit buy <listingId> --quantity 2 --max-price <total-usd> --email <buyer-email>`: quote only, no payment credential required.
|
|
44
|
+
- Add `--confirm` only after approval. Without payment authorization, the result is `authorization_required` with a browser checkout URL, not a payment. Review the final total in the browser; the CLI cap is not transferred there. Optional advanced integrations can inject a user-approved `TIXBIT_LINK_TOKEN`; automatic payment still requires server cap support. Never put tokens in arguments.
|
|
45
|
+
- Link supports 4-12 alphanumeric IDs only, not native `sl_UUID` listings. Use browser checkout for unsupported listings.
|
|
46
|
+
- Without a signed-in user integration, seller commands return browser sign-in guidance and do not read or submit listings. Browser-to-CLI seller sessions are not supported. Do not extract browser tokens. Optional authorized integrations may supply `TIXBIT_ACCESS_TOKEN`; seller creation still requires `--confirm`, `termsAccepted: true`, and server ownership/access checks.
|
|
47
|
+
- All commands emit JSON, including errors. Preserve full case-sensitive IDs.
|
|
48
|
+
- Never retry uncertain Link payment automatically. Reconcile with support and Stripe Link first. Read seller listings after uncertain creation.
|
|
49
|
+
- No bids or negotiation are available. Do not claim a price reduction.
|
|
50
|
+
|
|
51
|
+
## Required workflow
|
|
52
|
+
|
|
53
|
+
1. Search and select the event.
|
|
54
|
+
2. Fetch listings and the seatmap before presenting ticket options.
|
|
55
|
+
3. Confirm the exact listing, quantity, and buyer email.
|
|
56
|
+
4. Use `checkout` for user-completed browser payment, or `purchase` only when the
|
|
57
|
+
user explicitly authorizes machine payment.
|
|
58
|
+
5. Preserve the original idempotency key across retries and recovery checks.
|
|
59
|
+
6. Treat `pending` and `manual_review_required` as non-final. Follow the returned
|
|
60
|
+
`action`; never create another payment or ticket purchase for the same order.
|
|
61
|
+
|
|
62
|
+
The purchase result includes the TixBit `orderReference`, status, optional
|
|
63
|
+
`receiptUrl`, server-authoritative order total, and recovery action. Do not log
|
|
64
|
+
or repeat MPP private keys, payment credentials, or raw provider IDs.
|