@walkeros/cli 4.3.0-next-1784055686454 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/openapi/spec.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "walkerOS Tag Manager API",
5
- "version": "2.4.0",
5
+ "version": "3.1.0",
6
6
  "description": "API for managing walkerOS flows, projects, and real-time event observation.",
7
7
  "contact": {
8
8
  "name": "elbwalker",
@@ -2326,6 +2326,9 @@
2326
2326
  "sessionExpiresAt": {
2327
2327
  "type": "string",
2328
2328
  "format": "date-time"
2329
+ },
2330
+ "sessionGrant": {
2331
+ "type": "string"
2329
2332
  }
2330
2333
  },
2331
2334
  "required": ["grant", "activationUrl", "sessionExpiresAt"]
@@ -2400,15 +2403,15 @@
2400
2403
  "token": {
2401
2404
  "type": "string"
2402
2405
  },
2403
- "activationUrl": {
2404
- "type": ["string", "null"]
2406
+ "previewEnabled": {
2407
+ "type": "boolean"
2405
2408
  },
2406
2409
  "bundleUrl": {
2407
2410
  "type": "string",
2408
2411
  "format": "uri"
2409
2412
  }
2410
2413
  },
2411
- "required": ["previewId", "token", "activationUrl", "bundleUrl"]
2414
+ "required": ["previewId", "token", "previewEnabled", "bundleUrl"]
2412
2415
  },
2413
2416
  "ObserveSessionJourneysResponse": {
2414
2417
  "type": "object",
@@ -4489,6 +4492,65 @@
4489
4492
  },
4490
4493
  "required": ["email"]
4491
4494
  },
4495
+ "VerifyResponse": {
4496
+ "oneOf": [
4497
+ {
4498
+ "type": "object",
4499
+ "properties": {
4500
+ "status": {
4501
+ "type": "string",
4502
+ "enum": ["ok"]
4503
+ },
4504
+ "redirectTo": {
4505
+ "type": "string",
4506
+ "example": "/"
4507
+ }
4508
+ },
4509
+ "required": ["status", "redirectTo"]
4510
+ },
4511
+ {
4512
+ "type": "object",
4513
+ "properties": {
4514
+ "status": {
4515
+ "type": "string",
4516
+ "enum": ["confirm_required"]
4517
+ },
4518
+ "email": {
4519
+ "type": "string",
4520
+ "example": "user@example.com"
4521
+ }
4522
+ },
4523
+ "required": ["status", "email"]
4524
+ },
4525
+ {
4526
+ "type": "object",
4527
+ "properties": {
4528
+ "status": {
4529
+ "type": "string",
4530
+ "enum": ["expired", "used", "invalid", "malformed"]
4531
+ }
4532
+ },
4533
+ "required": ["status"]
4534
+ }
4535
+ ]
4536
+ },
4537
+ "VerifyRequest": {
4538
+ "type": "object",
4539
+ "properties": {
4540
+ "token": {
4541
+ "type": "string",
4542
+ "minLength": 1
4543
+ },
4544
+ "redirect_to": {
4545
+ "type": "string",
4546
+ "example": "/dashboard"
4547
+ },
4548
+ "confirm": {
4549
+ "type": "boolean"
4550
+ }
4551
+ },
4552
+ "required": ["token"]
4553
+ },
4492
4554
  "WhoamiResponse": {
4493
4555
  "type": "object",
4494
4556
  "properties": {
@@ -5467,10 +5529,46 @@
5467
5529
  }
5468
5530
  },
5469
5531
  "/api/auth/verify": {
5532
+ "post": {
5533
+ "tags": ["Auth"],
5534
+ "summary": "Redeem magic link token",
5535
+ "description": "Redeem a magic link token and create an authenticated session. Redeems immediately when the browser-nonce cookie from the magic-link request matches; otherwise answers confirm_required and expects a follow-up call with confirm: true.",
5536
+ "requestBody": {
5537
+ "content": {
5538
+ "application/json": {
5539
+ "schema": {
5540
+ "$ref": "#/components/schemas/VerifyRequest"
5541
+ }
5542
+ }
5543
+ }
5544
+ },
5545
+ "responses": {
5546
+ "200": {
5547
+ "description": "Redemption result. status=ok sets the session cookie and carries the redirect target.",
5548
+ "content": {
5549
+ "application/json": {
5550
+ "schema": {
5551
+ "$ref": "#/components/schemas/VerifyResponse"
5552
+ }
5553
+ }
5554
+ }
5555
+ },
5556
+ "400": {
5557
+ "description": "Validation error",
5558
+ "content": {
5559
+ "application/json": {
5560
+ "schema": {
5561
+ "$ref": "#/components/schemas/ErrorResponse"
5562
+ }
5563
+ }
5564
+ }
5565
+ }
5566
+ }
5567
+ },
5470
5568
  "get": {
5471
5569
  "tags": ["Auth"],
5472
- "summary": "Verify magic link token",
5473
- "description": "Verify a magic link token and create an authenticated session. Redirects to the specified URL or home page.",
5570
+ "summary": "Legacy magic link entry point",
5571
+ "description": "Side-effect-free redirector to the /auth/verify page for links minted before the page-URL change. Never consumes the token; redemption happens via POST.",
5474
5572
  "parameters": [
5475
5573
  {
5476
5574
  "schema": {
@@ -5497,8 +5595,8 @@
5497
5595
  }
5498
5596
  ],
5499
5597
  "responses": {
5500
- "302": {
5501
- "description": "Redirect to target URL with session cookie set"
5598
+ "307": {
5599
+ "description": "Redirect to the /auth/verify page with the token forwarded"
5502
5600
  }
5503
5601
  }
5504
5602
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walkeros/cli",
3
- "version": "4.3.0-next-1784055686454",
3
+ "version": "4.3.0",
4
4
  "description": "walkerOS CLI - Bundle and deploy walkerOS components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -37,9 +37,10 @@
37
37
  "build": "tsup",
38
38
  "dev": "tsx src/index.ts",
39
39
  "start": "node dist/index.js",
40
- "test": "jest --colors --testPathIgnorePatterns '__tests__/e2e/'",
41
- "test:debug": "jest --colors --detectOpenHandles --testPathIgnorePatterns '__tests__/e2e/'",
42
- "test:integration": "jest --colors --testPathPatterns='__tests__/e2e/'",
40
+ "test": "jest --colors --testPathIgnorePatterns '__tests__/e2e/' '__tests__/integration/'",
41
+ "test:debug": "jest --colors --detectOpenHandles --testPathIgnorePatterns '__tests__/e2e/' '__tests__/integration/'",
42
+ "test:integration": "jest --colors --testPathPatterns='__tests__/integration/'",
43
+ "test:e2e": "jest --colors --testPathPatterns='__tests__/e2e/'",
43
44
  "generate:types": "openapi-typescript ${OPENAPI_SPEC:-./openapi/spec.json} -o src/types/api.gen.d.ts && prettier --write src/types/api.gen.d.ts ./openapi/spec.json",
44
45
  "generate:types:local": "OPENAPI_SPEC=${WALKEROS_APP_URL:-http://localhost:3000}/api/openapi.json npm run generate:types",
45
46
  "typecheck": "tsc --noEmit",
@@ -52,11 +53,11 @@
52
53
  },
53
54
  "dependencies": {
54
55
  "@vercel/nft": "^1.10.2",
55
- "@walkeros/collector": "4.3.0-next-1784055686454",
56
- "@walkeros/core": "4.3.0-next-1784055686454",
57
- "@walkeros/server-core": "4.3.0-next-1784055686454",
58
- "@walkeros/server-destination-api": "4.3.0-next-1784055686454",
59
- "@walkeros/transformer-validate": "4.3.0-next-1784055686454",
56
+ "@walkeros/collector": "4.3.0",
57
+ "@walkeros/core": "4.3.0",
58
+ "@walkeros/server-core": "4.3.0",
59
+ "@walkeros/server-destination-api": "4.3.0",
60
+ "@walkeros/transformer-validate": "4.3.0",
60
61
  "ajv": "^8.17.1",
61
62
  "chalk": "^5.6.2",
62
63
  "ci-info": "^4.4.0",
@@ -83,8 +84,8 @@
83
84
  "@types/pacote": "^11.1.8",
84
85
  "@types/picomatch": "4.0.3",
85
86
  "@types/semver": "^7.7.1",
86
- "@walkeros/config": "4.3.0-next-1784055686454",
87
- "@walkeros/core": "4.3.0-next-1784055686454",
87
+ "@walkeros/config": "4.3.0",
88
+ "@walkeros/core": "4.3.0",
88
89
  "msw": "^2.12.10",
89
90
  "openapi-typescript": "^7.13.0",
90
91
  "tsx": "^4.21.0"