@pam-ai/pam-ordo-contracts 3.4.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.
Files changed (59) hide show
  1. package/README.md +72 -0
  2. package/dist/generated.d.ts +1848 -0
  3. package/dist/generated.d.ts.map +1 -0
  4. package/dist/generated.js +6 -0
  5. package/dist/generated.js.map +1 -0
  6. package/dist/inbox-policy.d.ts +9 -0
  7. package/dist/inbox-policy.d.ts.map +1 -0
  8. package/dist/inbox-policy.js +27 -0
  9. package/dist/inbox-policy.js.map +1 -0
  10. package/dist/index.d.ts +35 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +4 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/ordo-capability.d.ts +27 -0
  15. package/dist/ordo-capability.d.ts.map +1 -0
  16. package/dist/ordo-capability.js +37 -0
  17. package/dist/ordo-capability.js.map +1 -0
  18. package/dist/producer-command.d.ts +18 -0
  19. package/dist/producer-command.d.ts.map +1 -0
  20. package/dist/producer-command.js +38 -0
  21. package/dist/producer-command.js.map +1 -0
  22. package/fixtures/acknowledge-attention-command.json +8 -0
  23. package/fixtures/add-customer-note-command.json +6 -0
  24. package/fixtures/add-internal-comment-command.json +9 -0
  25. package/fixtures/advance-read-cursor-command.json +6 -0
  26. package/fixtures/assign-command.json +11 -0
  27. package/fixtures/assign-team-routing-command.json +11 -0
  28. package/fixtures/command-result.json +10 -0
  29. package/fixtures/contact-search.json +111 -0
  30. package/fixtures/conversation-detail-missing-body.json +133 -0
  31. package/fixtures/customer-note-command-result.json +10 -0
  32. package/fixtures/customer-notes-page.json +17 -0
  33. package/fixtures/delete-customer-note-command.json +7 -0
  34. package/fixtures/inbox-list-customer-no-work.json +93 -0
  35. package/fixtures/inbox-list-partial-hydration.json +175 -0
  36. package/fixtures/inbox-policy-v1.json +33 -0
  37. package/fixtures/inbox-target-resolution-request-v1.json +8 -0
  38. package/fixtures/inbox-target-resolution-response-v1.json +23 -0
  39. package/fixtures/internal-comment-result.json +13 -0
  40. package/fixtures/manifest.json +32 -0
  41. package/fixtures/notification-command-result.json +10 -0
  42. package/fixtures/notification-command.json +5 -0
  43. package/fixtures/notification-list.json +25 -0
  44. package/fixtures/permissions-unavailable.json +7 -0
  45. package/fixtures/producer-attention-command-v1.json +28 -0
  46. package/fixtures/producer-invalid-actor-command-v1.json +17 -0
  47. package/fixtures/producer-invalid-customer-identity-v1.json +15 -0
  48. package/fixtures/producer-invalid-missing-source-version-v1.json +16 -0
  49. package/fixtures/producer-invalid-oversized-v1.json +15 -0
  50. package/fixtures/producer-invalid-unknown-field-v1.json +17 -0
  51. package/fixtures/producer-overdue-fire-command-v1.json +21 -0
  52. package/fixtures/producer-reminder-fire-command-v1.json +20 -0
  53. package/fixtures/producer-snooze-return-command-v1.json +20 -0
  54. package/fixtures/producer-source-activity-command-v1.json +34 -0
  55. package/fixtures/read-cursor-result.json +10 -0
  56. package/fixtures/resolve-attention-command.json +9 -0
  57. package/fixtures/version-conflict.json +11 -0
  58. package/openapi/openapi.json +4577 -0
  59. package/package.json +67 -0
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@pam-ai/pam-ordo-contracts",
3
+ "version": "3.4.0",
4
+ "description": "Versioned OpenAPI contracts, generated TypeScript types, and shared fixtures for Pam Ordo APIs.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./openapi": "./openapi/openapi.json",
14
+ "./fixtures/*": "./fixtures/*"
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "fixtures",
19
+ "openapi/openapi.json",
20
+ "README.md"
21
+ ],
22
+ "scripts": {
23
+ "build": "npm run clean && tsc -p tsconfig.json",
24
+ "contract:bundle": "redocly bundle openapi/openapi.yaml --output openapi/openapi.json",
25
+ "contract:generate": "npm run contract:bundle && openapi-typescript openapi/openapi.json --output src/generated.ts",
26
+ "contract:check": "tsx scripts/check-contract.ts",
27
+ "contract:breaking": "tsx scripts/check-contract-breaking.ts",
28
+ "check": "npm run contract:check && npm run lint && npm run format:check && npm run test && npm run build",
29
+ "prepare": "npm run build",
30
+ "prepack": "npm run check",
31
+ "test": "vitest run src",
32
+ "clean": "node -e \"require(\\\"fs\\\").rmSync(\\\"dist\\\", { recursive: true, force: true })\"",
33
+ "lint": "eslint .",
34
+ "lint:fix": "eslint --fix .",
35
+ "format": "prettier --write .",
36
+ "format:check": "prettier --check .",
37
+ "npm-audit": "npm audit --audit-level=high --omit=dev"
38
+ },
39
+ "engines": {
40
+ "node": ">=22"
41
+ },
42
+ "devDependencies": {
43
+ "@redocly/cli": "2.49.0",
44
+ "@types/node": "26.4.1",
45
+ "ajv": "8.20.0",
46
+ "ajv-formats": "3.0.1",
47
+ "eslint": "^9.39.5",
48
+ "openapi-typescript": "7.13.0",
49
+ "pam-eslint-config": "^2.0.0",
50
+ "prettier": "^3.9.6",
51
+ "tsx": "^4.23.12",
52
+ "typescript": "^5.9.3",
53
+ "vitest": "4.1.11"
54
+ },
55
+ "author": "Pam AI",
56
+ "repository": {
57
+ "type": "git",
58
+ "url": "git+https://github.com/dream-lab-ai/pam-ordo-contracts.git"
59
+ },
60
+ "homepage": "https://github.com/dream-lab-ai/pam-ordo-contracts#readme",
61
+ "bugs": {
62
+ "url": "https://github.com/dream-lab-ai/pam-ordo-contracts/issues"
63
+ },
64
+ "publishConfig": {
65
+ "access": "public"
66
+ }
67
+ }