@fleetless/contracts 9.2.0-next.1 → 10.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +19 -4
  2. package/artifacts/openapi.json +16927 -8920
  3. package/artifacts/routes.json +96 -54
  4. package/artifacts/schema/billing-change-response.schema.json +1527 -1727
  5. package/artifacts/schema/billing-decision-amounts.schema.json +244 -0
  6. package/artifacts/schema/billing-decision-display-request.schema.json +24 -0
  7. package/artifacts/schema/billing-decision-display-response.schema.json +3130 -0
  8. package/artifacts/schema/billing-decision-period.schema.json +550 -0
  9. package/artifacts/schema/billing-decision-snapshot.schema.json +3103 -0
  10. package/artifacts/schema/bridge-state.schema.json +0 -14
  11. package/artifacts/schema/checkout-request.schema.json +3 -4
  12. package/artifacts/schema/checkout-response.schema.json +492 -402
  13. package/artifacts/schema/client-robot-list-item.schema.json +0 -14
  14. package/artifacts/schema/client-robot-list-response.schema.json +0 -14
  15. package/artifacts/schema/confirmation-proof.schema.json +6 -0
  16. package/artifacts/schema/plan-change-decision-lookup-query.schema.json +16 -0
  17. package/artifacts/schema/plan-change-decision-status-response.schema.json +543 -0
  18. package/artifacts/schema/plan-change-prepare-request.schema.json +84 -0
  19. package/artifacts/schema/plan-change-prepare-response.schema.json +3162 -0
  20. package/artifacts/schema/plan-change-request.schema.json +177 -65
  21. package/artifacts/schema/purchase-conflict-details.schema.json +94 -0
  22. package/artifacts/schema/purchase-intent-accepted-without-payment.schema.json +95 -0
  23. package/artifacts/schema/purchase-intent-confirm-request.schema.json +146 -33
  24. package/artifacts/schema/purchase-intent-draft.schema.json +449 -0
  25. package/artifacts/schema/purchase-intent-payment-started.schema.json +184 -0
  26. package/artifacts/schema/purchase-intent-response.schema.json +1235 -168
  27. package/artifacts/schema/robot-detail-response.schema.json +0 -14
  28. package/artifacts/schema/robot-list-item.schema.json +0 -14
  29. package/artifacts/schema/robot-list-response.schema.json +0 -14
  30. package/dist/billing.d.ts +5665 -210
  31. package/dist/billing.js +224 -29
  32. package/dist/client-robots.d.ts +0 -6
  33. package/dist/confirmation-proof.d.ts +5 -0
  34. package/dist/confirmation-proof.js +6 -0
  35. package/dist/errors.d.ts +1 -1
  36. package/dist/errors.js +0 -12
  37. package/dist/iana-time-zones.d.ts +2 -0
  38. package/dist/iana-time-zones.js +426 -0
  39. package/dist/index.d.ts +7 -6
  40. package/dist/index.js +4 -3
  41. package/dist/plans.d.ts +125 -1
  42. package/dist/plans.js +19 -1
  43. package/dist/protocol.d.ts +0 -3
  44. package/dist/protocol.js +0 -1
  45. package/dist/purchase-operation-key.d.ts +4 -0
  46. package/dist/purchase-operation-key.js +4 -0
  47. package/dist/rest.d.ts +0 -52
  48. package/dist/rest.js +0 -15
  49. package/dist/routes.js +43 -35
  50. package/package.json +3 -1
  51. package/artifacts/schema/recover-held-job-request.schema.json +0 -29
  52. package/artifacts/schema/recover-held-job-response.schema.json +0 -125
@@ -0,0 +1,84 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "operation_key": {
6
+ "type": "string",
7
+ "format": "uuid",
8
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
9
+ "description": "Client-generated UUID persisted before the start request. Unique per org and reused only for identical input."
10
+ },
11
+ "target_plan": {
12
+ "type": "string",
13
+ "enum": [
14
+ "basic",
15
+ "plus",
16
+ "pro",
17
+ "enterprise"
18
+ ],
19
+ "description": "The lower plan to move to; `basic` cancels."
20
+ },
21
+ "keep": {
22
+ "anyOf": [
23
+ {
24
+ "type": "object",
25
+ "properties": {
26
+ "robots": {
27
+ "type": "array",
28
+ "items": {
29
+ "type": "string",
30
+ "format": "uuid",
31
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
32
+ },
33
+ "description": "The robots that stay, by id. Every other robot is deleted when the change takes effect."
34
+ },
35
+ "apps": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "string",
39
+ "format": "uuid",
40
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
41
+ },
42
+ "description": "The apps that stay, by id. Every other app is deleted when the change takes effect."
43
+ },
44
+ "app_users": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "string",
48
+ "format": "uuid",
49
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
50
+ },
51
+ "description": "The app users that stay, by id, across every app. Every other app user is deleted when the change takes effect."
52
+ },
53
+ "developers": {
54
+ "type": "array",
55
+ "items": {
56
+ "type": "string",
57
+ "format": "uuid",
58
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
59
+ },
60
+ "description": "The developers that stay, by user id, owners never among them: every owner stays. Every other developer is removed from the org when the change takes effect."
61
+ }
62
+ },
63
+ "required": [
64
+ "robots",
65
+ "apps",
66
+ "app_users",
67
+ "developers"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ {
72
+ "type": "null"
73
+ }
74
+ ],
75
+ "description": "What stays. `null` when the org already fits the target plan, so nothing is deleted."
76
+ }
77
+ },
78
+ "required": [
79
+ "operation_key",
80
+ "target_plan",
81
+ "keep"
82
+ ],
83
+ "additionalProperties": false
84
+ }