@fleetless/contracts 12.1.0 → 13.0.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/CHANGELOG.md +38 -0
- package/artifacts/openapi.json +15968 -13701
- package/artifacts/routes.json +123 -1
- package/artifacts/schema/billing-decision-display-response.schema.json +749 -504
- package/artifacts/schema/billing-decision-period.schema.json +573 -504
- package/artifacts/schema/billing-decision-snapshot.schema.json +749 -504
- package/artifacts/schema/journal-access-proof.schema.json +342 -0
- package/artifacts/schema/journal-deletion-manifest.schema.json +2103 -0
- package/artifacts/schema/journal-evidence-ref.schema.json +596 -0
- package/artifacts/schema/journal-export-item.schema.json +2910 -0
- package/artifacts/schema/journal-final-seal-body.schema.json +160 -0
- package/artifacts/schema/journal-final-seal.schema.json +169 -0
- package/artifacts/schema/journal-first-checkpoint-body.schema.json +101 -0
- package/artifacts/schema/journal-first-checkpoint.schema.json +111 -0
- package/artifacts/schema/journal-generation-checkpoint-body.schema.json +88 -0
- package/artifacts/schema/journal-generation-checkpoint.schema.json +97 -0
- package/artifacts/schema/journal-intent-v2-body.schema.json +4166 -0
- package/artifacts/schema/journal-intent-v2.schema.json +4616 -0
- package/artifacts/schema/journal-manifest-batch.schema.json +1236 -0
- package/artifacts/schema/journal-manifest-binding.schema.json +3541 -0
- package/artifacts/schema/journal-manifest-entry.schema.json +106 -0
- package/artifacts/schema/journal-manifest-intent-projection.schema.json +1428 -0
- package/artifacts/schema/journal-manifest-row.schema.json +578 -0
- package/artifacts/schema/journal-manifest-scope.schema.json +135 -0
- package/artifacts/schema/journal-mirror-attempt.schema.json +182 -0
- package/artifacts/schema/journal-mixed-export.schema.json +3115 -0
- package/artifacts/schema/journal-registry-activation-receipt-body.schema.json +304 -0
- package/artifacts/schema/journal-registry-activation-receipt.schema.json +324 -0
- package/artifacts/schema/journal-registry-transition-body.schema.json +113 -0
- package/artifacts/schema/journal-registry-transition.schema.json +123 -0
- package/artifacts/schema/journal-replay-receipt-body.schema.json +1252 -0
- package/artifacts/schema/journal-replay-receipt.schema.json +1261 -0
- package/artifacts/schema/journal-v2-activation-checkpoint-body.schema.json +99 -0
- package/artifacts/schema/journal-v2-activation-checkpoint.schema.json +108 -0
- package/artifacts/schema/legal-acceptance-list-response.schema.json +31 -2
- package/artifacts/schema/legal-acceptance-version-row.schema.json +31 -2
- package/artifacts/schema/legal-offer-conflict-details.schema.json +32 -0
- package/artifacts/schema/legal-offer-decision-lookup-query.schema.json +16 -0
- package/artifacts/schema/legal-offer-decision-request.schema.json +37 -0
- package/artifacts/schema/legal-offer-decision-result.schema.json +409 -0
- package/artifacts/schema/legal-offer-decision-snapshot.schema.json +678 -0
- package/artifacts/schema/legal-offer-display-request.schema.json +16 -0
- package/artifacts/schema/legal-offer-display-response.schema.json +712 -0
- package/artifacts/schema/legal-offer-list-query.schema.json +17 -0
- package/artifacts/schema/legal-offer-list-response.schema.json +347 -0
- package/artifacts/schema/legal-offer-summary.schema.json +321 -0
- package/artifacts/schema/plan-change-prepare-response.schema.json +749 -504
- package/dist/billing.d.ts +361 -275
- package/dist/billing.js +25 -4
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +2 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +6 -0
- package/dist/journal-controls.d.ts +228 -0
- package/dist/journal-controls.js +111 -0
- package/dist/journal-intents.d.ts +1695 -0
- package/dist/journal-intents.js +97 -0
- package/dist/journal-manifests.d.ts +1670 -0
- package/dist/journal-manifests.js +182 -0
- package/dist/journal-restore.d.ts +1871 -0
- package/dist/journal-restore.js +324 -0
- package/dist/journal-seals.d.ts +147 -0
- package/dist/journal-seals.js +89 -0
- package/dist/legal-acceptances.d.ts +4 -0
- package/dist/legal-acceptances.js +9 -2
- package/dist/legal-offers.d.ts +468 -0
- package/dist/legal-offers.js +91 -0
- package/dist/realtime.d.ts +2 -2
- package/dist/routes.js +54 -0
- package/package.json +1 -1
package/artifacts/routes.json
CHANGED
|
@@ -451,6 +451,128 @@
|
|
|
451
451
|
"transport": "http",
|
|
452
452
|
"notes": "Answers `202` whether or not the address was already listed: the landing page's form must not be an oracle for who signed up. The operator notification is detached from the response — awaiting it made latency answer the question the status code refuses to — and is capped by its own global ceiling, above which the row is still written and the mail is skipped."
|
|
453
453
|
},
|
|
454
|
+
{
|
|
455
|
+
"method": "GET",
|
|
456
|
+
"path": "/api/org/legal/offers",
|
|
457
|
+
"section": "org",
|
|
458
|
+
"summary": "Lists Terms and price notices for the authenticated organization.",
|
|
459
|
+
"audience": "developer",
|
|
460
|
+
"auth": "developer",
|
|
461
|
+
"rateLimited": false,
|
|
462
|
+
"ownerTier": false,
|
|
463
|
+
"status": 200,
|
|
464
|
+
"params": [],
|
|
465
|
+
"query": "legal-offer-list-query",
|
|
466
|
+
"request": null,
|
|
467
|
+
"response": "legal-offer-list-response",
|
|
468
|
+
"errors": [
|
|
469
|
+
"unauthorized",
|
|
470
|
+
"token_expired",
|
|
471
|
+
"token_revoked",
|
|
472
|
+
"validation_error",
|
|
473
|
+
"legal_offer_unavailable"
|
|
474
|
+
],
|
|
475
|
+
"transport": "http",
|
|
476
|
+
"notes": "Cache-Control: no-store. Any authenticated org member may read notices; support is read-only. No proof or decision rights are returned. Newest first; default limit 50, maximum 100, canonical decimal strings only. Cursor is canonical unpadded base64url of UTF-8 JSON {v:1,created_at:UTC,id:UUID} in that key order, scoped by Cloud to the active org. Terms notices expose the published deadline and developer access state for Basic and paid orgs. The authenticated offer read stays reachable for a Terms-suspended org so an Owner can recover the acceptance path."
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"method": "POST",
|
|
480
|
+
"path": "/api/org/legal/offers/:id/display",
|
|
481
|
+
"section": "org",
|
|
482
|
+
"summary": "Issues an Owner-bound Terms or price decision display.",
|
|
483
|
+
"audience": "developer",
|
|
484
|
+
"auth": "developer",
|
|
485
|
+
"rateLimited": false,
|
|
486
|
+
"ownerTier": true,
|
|
487
|
+
"status": 200,
|
|
488
|
+
"params": [
|
|
489
|
+
{
|
|
490
|
+
"name": "id",
|
|
491
|
+
"description": "The organization-scoped offer UUID."
|
|
492
|
+
}
|
|
493
|
+
],
|
|
494
|
+
"query": null,
|
|
495
|
+
"request": "legal-offer-display-request",
|
|
496
|
+
"response": "legal-offer-display-response",
|
|
497
|
+
"errors": [
|
|
498
|
+
"unauthorized",
|
|
499
|
+
"token_expired",
|
|
500
|
+
"token_revoked",
|
|
501
|
+
"tier_required",
|
|
502
|
+
"support_forbidden",
|
|
503
|
+
"validation_error",
|
|
504
|
+
"not_found",
|
|
505
|
+
"target_state_conflict",
|
|
506
|
+
"legal_offer_unavailable"
|
|
507
|
+
],
|
|
508
|
+
"transport": "http",
|
|
509
|
+
"notes": "Cache-Control: no-store. Real Owner only; support and synthetic identities cannot receive a proof. Display alone makes no decision. Cloud stores the complete snapshot and a hash of the 32-byte proof for at most ten minutes, bound to Owner, org, offer revision and operation key. Terms-suspended Owners can still read the offer and create an accept-only proof. Pending displays permit decline before the deadline; at or after the deadline decline_label is null and the changed consequence requires a fresh proof. Both Basic and paid Terms offers use their published deadline. An expired proof, withdrawn or changed offer requires a fresh display; the deadline alone never expires Terms acceptance. Unknown/foreign offers return 404. target_state_conflict uses legalOfferConflictDetails."
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"method": "POST",
|
|
513
|
+
"path": "/api/org/legal/offers/:id/decisions",
|
|
514
|
+
"section": "org",
|
|
515
|
+
"summary": "Records an explicit Owner acceptance or decline of a served offer.",
|
|
516
|
+
"audience": "developer",
|
|
517
|
+
"auth": "developer",
|
|
518
|
+
"rateLimited": false,
|
|
519
|
+
"ownerTier": true,
|
|
520
|
+
"status": 200,
|
|
521
|
+
"params": [
|
|
522
|
+
{
|
|
523
|
+
"name": "id",
|
|
524
|
+
"description": "The offer UUID bound to the served display."
|
|
525
|
+
}
|
|
526
|
+
],
|
|
527
|
+
"query": null,
|
|
528
|
+
"request": "legal-offer-decision-request",
|
|
529
|
+
"response": "legal-offer-decision-result",
|
|
530
|
+
"errors": [
|
|
531
|
+
"unauthorized",
|
|
532
|
+
"token_expired",
|
|
533
|
+
"token_revoked",
|
|
534
|
+
"tier_required",
|
|
535
|
+
"support_forbidden",
|
|
536
|
+
"validation_error",
|
|
537
|
+
"not_found",
|
|
538
|
+
"target_state_conflict",
|
|
539
|
+
"legal_offer_unavailable"
|
|
540
|
+
],
|
|
541
|
+
"transport": "http",
|
|
542
|
+
"notes": "Cache-Control: no-store. Real Owner only; support and synthetic identities cannot decide. Cloud atomically checks the actor/org/offer/revision, wording, legal references, selection, prices, boundaries and expiry before consuming the proof and recording the decision. Changed-body/key replays and stale proofs conflict without mutation. An exact same-key retry recovers the original response even after proof expiry. Declines stay out of the acceptance list. Terms decline and silence share the same published deadline; neither causes contract termination. Acceptance remains available after decline or Terms suspension, takes effect at decision time, clears only the Terms restriction and causes no contract termination or deletion. At or after the deadline decline is unavailable, including with an old pending proof. Price decline causes no suspension; price acceptance at or after the offered boundary starts at the next full boundary. target_state_conflict uses legalOfferConflictDetails; unavailable/not_found/tier_required/support_forbidden omit details."
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"method": "GET",
|
|
546
|
+
"path": "/api/org/legal/offers/:id/decisions",
|
|
547
|
+
"section": "org",
|
|
548
|
+
"summary": "Recovers the original offer decision by operation key.",
|
|
549
|
+
"audience": "developer",
|
|
550
|
+
"auth": "developer",
|
|
551
|
+
"rateLimited": false,
|
|
552
|
+
"ownerTier": true,
|
|
553
|
+
"status": 200,
|
|
554
|
+
"params": [
|
|
555
|
+
{
|
|
556
|
+
"name": "id",
|
|
557
|
+
"description": "The offer UUID of the original decision."
|
|
558
|
+
}
|
|
559
|
+
],
|
|
560
|
+
"query": "legal-offer-decision-lookup-query",
|
|
561
|
+
"request": null,
|
|
562
|
+
"response": "legal-offer-decision-result",
|
|
563
|
+
"errors": [
|
|
564
|
+
"unauthorized",
|
|
565
|
+
"token_expired",
|
|
566
|
+
"token_revoked",
|
|
567
|
+
"tier_required",
|
|
568
|
+
"support_forbidden",
|
|
569
|
+
"validation_error",
|
|
570
|
+
"not_found",
|
|
571
|
+
"legal_offer_unavailable"
|
|
572
|
+
],
|
|
573
|
+
"transport": "http",
|
|
574
|
+
"notes": "Cache-Control: no-store. Real Owner only; support and synthetic identities are refused. Match the original Owner, org, offer and operation key; unknown/foreign keys return 404 without disclosure. Return the exact original decision arm, including a decline before later acceptance. Use this lookup after a lost response before asking for another display. It remains reachable for a Terms-suspended org. No proof is returned."
|
|
575
|
+
},
|
|
454
576
|
{
|
|
455
577
|
"method": "GET",
|
|
456
578
|
"path": "/api/org/legal/acceptances",
|
|
@@ -474,7 +596,7 @@
|
|
|
474
596
|
"validation_error"
|
|
475
597
|
],
|
|
476
598
|
"transport": "http",
|
|
477
|
-
"notes": "A real Owner reads only the authenticated organization; Developer and support sessions cannot read it. Rows carry stored Terms and applicable DPA references, never the current versions substituted for history. The default page limit is 50, maximum 100. The opaque cursor is unpadded base64url of UTF-8 JSON `[accepted_at,id]`, with a six-digit UTC timestamp and lowercase UUID; Cloud rejects noncanonical tokens. Follow `next_cursor` until null. Equal timestamps sort by id descending; a new acceptance cannot displace older rows."
|
|
599
|
+
"notes": "A real Owner reads only the authenticated organization; Developer and support sessions cannot read it. Rows carry stored Terms and applicable DPA references, never the current versions substituted for history. Accepted amendments and price offers use amendment and price_offer; declines appear only in the separate offer decision history. The default page limit is 50, maximum 100. The opaque cursor is unpadded base64url of UTF-8 JSON `[accepted_at,id]`, with a six-digit UTC timestamp and lowercase UUID; Cloud rejects noncanonical tokens. Follow `next_cursor` until null. Equal timestamps sort by id descending; a new acceptance cannot displace older rows."
|
|
478
600
|
},
|
|
479
601
|
{
|
|
480
602
|
"method": "GET",
|