@fleetless/contracts 15.0.0 → 15.1.0-next.1
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 +33 -0
- package/artifacts/openapi.json +25 -23
- package/artifacts/schema/billing-change-response.schema.json +9 -8
- package/artifacts/schema/checkout-response.schema.json +6 -6
- package/artifacts/schema/journal-deletion-manifest.schema.json +36 -4
- package/artifacts/schema/journal-intent-v2-body.schema.json +96 -0
- package/artifacts/schema/journal-intent-v2.schema.json +106 -0
- package/artifacts/schema/journal-manifest-batch.schema.json +16 -3
- package/artifacts/schema/journal-manifest-binding.schema.json +80 -4
- package/artifacts/schema/journal-manifest-intent-projection.schema.json +44 -0
- package/artifacts/schema/journal-manifest-row.schema.json +7 -1
- package/artifacts/schema/journal-manifest-scope.schema.json +13 -0
- package/artifacts/schema/journal-replay-receipt-body.schema.json +1 -0
- package/artifacts/schema/journal-replay-receipt.schema.json +1 -0
- package/artifacts/schema/purchase-conflict-details.schema.json +6 -6
- package/artifacts/schema/purchase-intent-draft.schema.json +5 -5
- package/artifacts/schema/purchase-intent-payment-started.schema.json +1 -1
- package/artifacts/schema/purchase-intent-response.schema.json +10 -9
- package/dist/billing.js +12 -3
- package/dist/errors.js +2 -2
- package/dist/journal-intents.d.ts +38 -0
- package/dist/journal-intents.js +2 -0
- package/dist/journal-manifests.d.ts +63 -0
- package/dist/journal-manifests.js +11 -1
- package/dist/plans.d.ts +3 -1
- package/dist/plans.js +5 -3
- package/package.json +1 -1
|
@@ -3323,6 +3323,112 @@
|
|
|
3323
3323
|
],
|
|
3324
3324
|
"additionalProperties": false
|
|
3325
3325
|
},
|
|
3326
|
+
{
|
|
3327
|
+
"type": "object",
|
|
3328
|
+
"properties": {
|
|
3329
|
+
"schema": {
|
|
3330
|
+
"type": "string",
|
|
3331
|
+
"const": "fleetless.deletion-intent.v2"
|
|
3332
|
+
},
|
|
3333
|
+
"environment": {
|
|
3334
|
+
"type": "string",
|
|
3335
|
+
"minLength": 1
|
|
3336
|
+
},
|
|
3337
|
+
"generation": {
|
|
3338
|
+
"type": "string",
|
|
3339
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
3340
|
+
},
|
|
3341
|
+
"sequence": {
|
|
3342
|
+
"type": "integer",
|
|
3343
|
+
"minimum": 1,
|
|
3344
|
+
"maximum": 9007199254740991
|
|
3345
|
+
},
|
|
3346
|
+
"operation_id": {
|
|
3347
|
+
"type": "string",
|
|
3348
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
3349
|
+
},
|
|
3350
|
+
"intent_at": {
|
|
3351
|
+
"type": "string",
|
|
3352
|
+
"format": "date-time",
|
|
3353
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
|
|
3354
|
+
},
|
|
3355
|
+
"previous_hash": {
|
|
3356
|
+
"type": "string",
|
|
3357
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
3358
|
+
},
|
|
3359
|
+
"signing_key_id": {
|
|
3360
|
+
"type": "string",
|
|
3361
|
+
"minLength": 1
|
|
3362
|
+
},
|
|
3363
|
+
"kind": {
|
|
3364
|
+
"type": "string",
|
|
3365
|
+
"const": "waitlist.retention"
|
|
3366
|
+
},
|
|
3367
|
+
"ids": {
|
|
3368
|
+
"type": "object",
|
|
3369
|
+
"properties": {
|
|
3370
|
+
"batch_id": {
|
|
3371
|
+
"type": "string",
|
|
3372
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
3373
|
+
},
|
|
3374
|
+
"cutoff_at": {
|
|
3375
|
+
"type": "string",
|
|
3376
|
+
"format": "date-time",
|
|
3377
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
|
|
3378
|
+
},
|
|
3379
|
+
"policy_revision": {
|
|
3380
|
+
"type": "integer",
|
|
3381
|
+
"minimum": 1,
|
|
3382
|
+
"maximum": 9007199254740991
|
|
3383
|
+
}
|
|
3384
|
+
},
|
|
3385
|
+
"required": [
|
|
3386
|
+
"batch_id",
|
|
3387
|
+
"cutoff_at",
|
|
3388
|
+
"policy_revision"
|
|
3389
|
+
],
|
|
3390
|
+
"additionalProperties": false
|
|
3391
|
+
},
|
|
3392
|
+
"manifest_id": {
|
|
3393
|
+
"type": "string",
|
|
3394
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
3395
|
+
},
|
|
3396
|
+
"manifest_version_id": {
|
|
3397
|
+
"type": "string",
|
|
3398
|
+
"minLength": 1
|
|
3399
|
+
},
|
|
3400
|
+
"manifest_hash": {
|
|
3401
|
+
"type": "string",
|
|
3402
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
3403
|
+
},
|
|
3404
|
+
"record_hash": {
|
|
3405
|
+
"type": "string",
|
|
3406
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
3407
|
+
},
|
|
3408
|
+
"signature": {
|
|
3409
|
+
"type": "string",
|
|
3410
|
+
"pattern": "^[A-Za-z0-9_-]{85}[AQgw]$"
|
|
3411
|
+
}
|
|
3412
|
+
},
|
|
3413
|
+
"required": [
|
|
3414
|
+
"schema",
|
|
3415
|
+
"environment",
|
|
3416
|
+
"generation",
|
|
3417
|
+
"sequence",
|
|
3418
|
+
"operation_id",
|
|
3419
|
+
"intent_at",
|
|
3420
|
+
"previous_hash",
|
|
3421
|
+
"signing_key_id",
|
|
3422
|
+
"kind",
|
|
3423
|
+
"ids",
|
|
3424
|
+
"manifest_id",
|
|
3425
|
+
"manifest_version_id",
|
|
3426
|
+
"manifest_hash",
|
|
3427
|
+
"record_hash",
|
|
3428
|
+
"signature"
|
|
3429
|
+
],
|
|
3430
|
+
"additionalProperties": false
|
|
3431
|
+
},
|
|
3326
3432
|
{
|
|
3327
3433
|
"type": "object",
|
|
3328
3434
|
"properties": {
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"mcp_client.expire",
|
|
25
25
|
"mcp_central_client.expire",
|
|
26
26
|
"console_interaction.expire",
|
|
27
|
-
"console_code.expire"
|
|
27
|
+
"console_code.expire",
|
|
28
|
+
"waitlist.retention"
|
|
28
29
|
]
|
|
29
30
|
},
|
|
30
31
|
"cutoff_at": {
|
|
@@ -65,7 +66,13 @@
|
|
|
65
66
|
"oidc_interactions",
|
|
66
67
|
"organization_exports",
|
|
67
68
|
"ops_notification_jobs",
|
|
68
|
-
"console_oauth_codes"
|
|
69
|
+
"console_oauth_codes",
|
|
70
|
+
"waitlist",
|
|
71
|
+
"waitlist_invitations",
|
|
72
|
+
"waitlist_invitation_proofs",
|
|
73
|
+
"waitlist_consents",
|
|
74
|
+
"operator_effect_outbox",
|
|
75
|
+
"operator_effect_mail_deliveries"
|
|
69
76
|
]
|
|
70
77
|
},
|
|
71
78
|
"id": {
|
|
@@ -740,7 +747,13 @@
|
|
|
740
747
|
"oidc_interactions",
|
|
741
748
|
"organization_exports",
|
|
742
749
|
"ops_notification_jobs",
|
|
743
|
-
"console_oauth_codes"
|
|
750
|
+
"console_oauth_codes",
|
|
751
|
+
"waitlist",
|
|
752
|
+
"waitlist_invitations",
|
|
753
|
+
"waitlist_invitation_proofs",
|
|
754
|
+
"waitlist_consents",
|
|
755
|
+
"operator_effect_outbox",
|
|
756
|
+
"operator_effect_mail_deliveries"
|
|
744
757
|
]
|
|
745
758
|
},
|
|
746
759
|
"id": {
|
|
@@ -1094,6 +1094,50 @@
|
|
|
1094
1094
|
],
|
|
1095
1095
|
"additionalProperties": false
|
|
1096
1096
|
},
|
|
1097
|
+
{
|
|
1098
|
+
"type": "object",
|
|
1099
|
+
"properties": {
|
|
1100
|
+
"operation_id": {
|
|
1101
|
+
"type": "string",
|
|
1102
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
1103
|
+
},
|
|
1104
|
+
"kind": {
|
|
1105
|
+
"type": "string",
|
|
1106
|
+
"const": "waitlist.retention"
|
|
1107
|
+
},
|
|
1108
|
+
"ids": {
|
|
1109
|
+
"type": "object",
|
|
1110
|
+
"properties": {
|
|
1111
|
+
"batch_id": {
|
|
1112
|
+
"type": "string",
|
|
1113
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
1114
|
+
},
|
|
1115
|
+
"cutoff_at": {
|
|
1116
|
+
"type": "string",
|
|
1117
|
+
"format": "date-time",
|
|
1118
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
|
|
1119
|
+
},
|
|
1120
|
+
"policy_revision": {
|
|
1121
|
+
"type": "integer",
|
|
1122
|
+
"minimum": 1,
|
|
1123
|
+
"maximum": 9007199254740991
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
"required": [
|
|
1127
|
+
"batch_id",
|
|
1128
|
+
"cutoff_at",
|
|
1129
|
+
"policy_revision"
|
|
1130
|
+
],
|
|
1131
|
+
"additionalProperties": false
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
"required": [
|
|
1135
|
+
"operation_id",
|
|
1136
|
+
"kind",
|
|
1137
|
+
"ids"
|
|
1138
|
+
],
|
|
1139
|
+
"additionalProperties": false
|
|
1140
|
+
},
|
|
1097
1141
|
{
|
|
1098
1142
|
"type": "object",
|
|
1099
1143
|
"properties": {
|
|
@@ -1562,6 +1606,19 @@
|
|
|
1562
1606
|
],
|
|
1563
1607
|
"additionalProperties": false
|
|
1564
1608
|
},
|
|
1609
|
+
{
|
|
1610
|
+
"type": "object",
|
|
1611
|
+
"properties": {
|
|
1612
|
+
"kind": {
|
|
1613
|
+
"type": "string",
|
|
1614
|
+
"const": "waitlist"
|
|
1615
|
+
}
|
|
1616
|
+
},
|
|
1617
|
+
"required": [
|
|
1618
|
+
"kind"
|
|
1619
|
+
],
|
|
1620
|
+
"additionalProperties": false
|
|
1621
|
+
},
|
|
1565
1622
|
{
|
|
1566
1623
|
"type": "object",
|
|
1567
1624
|
"properties": {
|
|
@@ -1725,7 +1782,13 @@
|
|
|
1725
1782
|
"oidc_interactions",
|
|
1726
1783
|
"organization_exports",
|
|
1727
1784
|
"ops_notification_jobs",
|
|
1728
|
-
"console_oauth_codes"
|
|
1785
|
+
"console_oauth_codes",
|
|
1786
|
+
"waitlist",
|
|
1787
|
+
"waitlist_invitations",
|
|
1788
|
+
"waitlist_invitation_proofs",
|
|
1789
|
+
"waitlist_consents",
|
|
1790
|
+
"operator_effect_outbox",
|
|
1791
|
+
"operator_effect_mail_deliveries"
|
|
1729
1792
|
]
|
|
1730
1793
|
},
|
|
1731
1794
|
"id": {
|
|
@@ -2375,7 +2438,8 @@
|
|
|
2375
2438
|
"mcp_client.expire",
|
|
2376
2439
|
"mcp_central_client.expire",
|
|
2377
2440
|
"console_interaction.expire",
|
|
2378
|
-
"console_code.expire"
|
|
2441
|
+
"console_code.expire",
|
|
2442
|
+
"waitlist.retention"
|
|
2379
2443
|
]
|
|
2380
2444
|
},
|
|
2381
2445
|
"cutoff_at": {
|
|
@@ -2416,7 +2480,13 @@
|
|
|
2416
2480
|
"oidc_interactions",
|
|
2417
2481
|
"organization_exports",
|
|
2418
2482
|
"ops_notification_jobs",
|
|
2419
|
-
"console_oauth_codes"
|
|
2483
|
+
"console_oauth_codes",
|
|
2484
|
+
"waitlist",
|
|
2485
|
+
"waitlist_invitations",
|
|
2486
|
+
"waitlist_invitation_proofs",
|
|
2487
|
+
"waitlist_consents",
|
|
2488
|
+
"operator_effect_outbox",
|
|
2489
|
+
"operator_effect_mail_deliveries"
|
|
2420
2490
|
]
|
|
2421
2491
|
},
|
|
2422
2492
|
"id": {
|
|
@@ -3091,7 +3161,13 @@
|
|
|
3091
3161
|
"oidc_interactions",
|
|
3092
3162
|
"organization_exports",
|
|
3093
3163
|
"ops_notification_jobs",
|
|
3094
|
-
"console_oauth_codes"
|
|
3164
|
+
"console_oauth_codes",
|
|
3165
|
+
"waitlist",
|
|
3166
|
+
"waitlist_invitations",
|
|
3167
|
+
"waitlist_invitation_proofs",
|
|
3168
|
+
"waitlist_consents",
|
|
3169
|
+
"operator_effect_outbox",
|
|
3170
|
+
"operator_effect_mail_deliveries"
|
|
3095
3171
|
]
|
|
3096
3172
|
},
|
|
3097
3173
|
"id": {
|
|
@@ -1091,6 +1091,50 @@
|
|
|
1091
1091
|
],
|
|
1092
1092
|
"additionalProperties": false
|
|
1093
1093
|
},
|
|
1094
|
+
{
|
|
1095
|
+
"type": "object",
|
|
1096
|
+
"properties": {
|
|
1097
|
+
"operation_id": {
|
|
1098
|
+
"type": "string",
|
|
1099
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
1100
|
+
},
|
|
1101
|
+
"kind": {
|
|
1102
|
+
"type": "string",
|
|
1103
|
+
"const": "waitlist.retention"
|
|
1104
|
+
},
|
|
1105
|
+
"ids": {
|
|
1106
|
+
"type": "object",
|
|
1107
|
+
"properties": {
|
|
1108
|
+
"batch_id": {
|
|
1109
|
+
"type": "string",
|
|
1110
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
1111
|
+
},
|
|
1112
|
+
"cutoff_at": {
|
|
1113
|
+
"type": "string",
|
|
1114
|
+
"format": "date-time",
|
|
1115
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
|
|
1116
|
+
},
|
|
1117
|
+
"policy_revision": {
|
|
1118
|
+
"type": "integer",
|
|
1119
|
+
"minimum": 1,
|
|
1120
|
+
"maximum": 9007199254740991
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
"required": [
|
|
1124
|
+
"batch_id",
|
|
1125
|
+
"cutoff_at",
|
|
1126
|
+
"policy_revision"
|
|
1127
|
+
],
|
|
1128
|
+
"additionalProperties": false
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
"required": [
|
|
1132
|
+
"operation_id",
|
|
1133
|
+
"kind",
|
|
1134
|
+
"ids"
|
|
1135
|
+
],
|
|
1136
|
+
"additionalProperties": false
|
|
1137
|
+
},
|
|
1094
1138
|
{
|
|
1095
1139
|
"type": "object",
|
|
1096
1140
|
"properties": {
|
|
@@ -24,7 +24,13 @@
|
|
|
24
24
|
"oidc_interactions",
|
|
25
25
|
"organization_exports",
|
|
26
26
|
"ops_notification_jobs",
|
|
27
|
-
"console_oauth_codes"
|
|
27
|
+
"console_oauth_codes",
|
|
28
|
+
"waitlist",
|
|
29
|
+
"waitlist_invitations",
|
|
30
|
+
"waitlist_invitation_proofs",
|
|
31
|
+
"waitlist_consents",
|
|
32
|
+
"operator_effect_outbox",
|
|
33
|
+
"operator_effect_mail_deliveries"
|
|
28
34
|
]
|
|
29
35
|
},
|
|
30
36
|
"id": {
|
|
@@ -105,6 +105,19 @@
|
|
|
105
105
|
],
|
|
106
106
|
"additionalProperties": false
|
|
107
107
|
},
|
|
108
|
+
{
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": {
|
|
111
|
+
"kind": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"const": "waitlist"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"required": [
|
|
117
|
+
"kind"
|
|
118
|
+
],
|
|
119
|
+
"additionalProperties": false
|
|
120
|
+
},
|
|
108
121
|
{
|
|
109
122
|
"type": "object",
|
|
110
123
|
"properties": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
"invoice_id": {
|
|
65
|
-
"description": "
|
|
65
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
66
66
|
"type": "string",
|
|
67
67
|
"format": "uuid",
|
|
68
68
|
"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)$"
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
]
|
|
121
121
|
},
|
|
122
122
|
"invoice_id": {
|
|
123
|
-
"description": "
|
|
123
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
124
124
|
"type": "string",
|
|
125
125
|
"format": "uuid",
|
|
126
126
|
"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)$"
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
]
|
|
222
222
|
},
|
|
223
223
|
"invoice_id": {
|
|
224
|
-
"description": "
|
|
224
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
225
225
|
"type": "string",
|
|
226
226
|
"format": "uuid",
|
|
227
227
|
"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)$"
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
]
|
|
301
301
|
},
|
|
302
302
|
"invoice_id": {
|
|
303
|
-
"description": "
|
|
303
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
304
304
|
"type": "string",
|
|
305
305
|
"format": "uuid",
|
|
306
306
|
"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)$"
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
]
|
|
354
354
|
},
|
|
355
355
|
"invoice_id": {
|
|
356
|
-
"description": "
|
|
356
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
357
357
|
"type": "string",
|
|
358
358
|
"format": "uuid",
|
|
359
359
|
"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)$"
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
]
|
|
415
415
|
},
|
|
416
416
|
"invoice_id": {
|
|
417
|
-
"description": "
|
|
417
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
418
418
|
"type": "string",
|
|
419
419
|
"format": "uuid",
|
|
420
420
|
"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)$"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
28
|
"invoice_id": {
|
|
29
|
-
"description": "
|
|
29
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
30
30
|
"type": "string",
|
|
31
31
|
"format": "uuid",
|
|
32
32
|
"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)$"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
"invoice_id": {
|
|
87
|
-
"description": "
|
|
87
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
88
88
|
"type": "string",
|
|
89
89
|
"format": "uuid",
|
|
90
90
|
"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)$"
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
]
|
|
186
186
|
},
|
|
187
187
|
"invoice_id": {
|
|
188
|
-
"description": "
|
|
188
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
189
189
|
"type": "string",
|
|
190
190
|
"format": "uuid",
|
|
191
191
|
"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)$"
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
]
|
|
265
265
|
},
|
|
266
266
|
"invoice_id": {
|
|
267
|
-
"description": "
|
|
267
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
268
268
|
"type": "string",
|
|
269
269
|
"format": "uuid",
|
|
270
270
|
"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)$"
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
]
|
|
318
318
|
},
|
|
319
319
|
"invoice_id": {
|
|
320
|
-
"description": "
|
|
320
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
321
321
|
"type": "string",
|
|
322
322
|
"format": "uuid",
|
|
323
323
|
"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)$"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
]
|
|
25
25
|
},
|
|
26
26
|
"invoice_id": {
|
|
27
|
-
"description": "
|
|
27
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
28
28
|
"type": "string",
|
|
29
29
|
"format": "uuid",
|
|
30
30
|
"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)$"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
30
|
"invoice_id": {
|
|
31
|
-
"description": "
|
|
31
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
32
32
|
"type": "string",
|
|
33
33
|
"format": "uuid",
|
|
34
34
|
"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)$"
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"invoice_id": {
|
|
89
|
-
"description": "
|
|
89
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
90
90
|
"type": "string",
|
|
91
91
|
"format": "uuid",
|
|
92
92
|
"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)$"
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
]
|
|
188
188
|
},
|
|
189
189
|
"invoice_id": {
|
|
190
|
-
"description": "
|
|
190
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
191
191
|
"type": "string",
|
|
192
192
|
"format": "uuid",
|
|
193
193
|
"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)$"
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
]
|
|
267
267
|
},
|
|
268
268
|
"invoice_id": {
|
|
269
|
-
"description": "
|
|
269
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
270
270
|
"type": "string",
|
|
271
271
|
"format": "uuid",
|
|
272
272
|
"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)$"
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
]
|
|
320
320
|
},
|
|
321
321
|
"invoice_id": {
|
|
322
|
-
"description": "
|
|
322
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
323
323
|
"type": "string",
|
|
324
324
|
"format": "uuid",
|
|
325
325
|
"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)$"
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
]
|
|
474
474
|
},
|
|
475
475
|
"invoice_id": {
|
|
476
|
-
"description": "
|
|
476
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
477
477
|
"type": "string",
|
|
478
478
|
"format": "uuid",
|
|
479
479
|
"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)$"
|
|
@@ -1707,7 +1707,7 @@
|
|
|
1707
1707
|
"type": "null"
|
|
1708
1708
|
}
|
|
1709
1709
|
],
|
|
1710
|
-
"description": "The invoice charged now, or `null` when
|
|
1710
|
+
"description": "The Fleetless invoice charged now, or `null` when nothing was charged now (a change scheduled for the period end, or an increase that cost nothing) or the change was charged through Lexware (then the charge is in `billing.charges`)."
|
|
1711
1711
|
},
|
|
1712
1712
|
"intent": {
|
|
1713
1713
|
"type": "object",
|
|
@@ -1729,7 +1729,7 @@
|
|
|
1729
1729
|
"const": "paid_change"
|
|
1730
1730
|
},
|
|
1731
1731
|
"invoice_id": {
|
|
1732
|
-
"description": "
|
|
1732
|
+
"description": "For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware (`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.",
|
|
1733
1733
|
"type": "string",
|
|
1734
1734
|
"format": "uuid",
|
|
1735
1735
|
"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)$"
|
|
@@ -2785,7 +2785,8 @@
|
|
|
2785
2785
|
"additionalProperties": false
|
|
2786
2786
|
},
|
|
2787
2787
|
"charged": {
|
|
2788
|
-
"type": "null"
|
|
2788
|
+
"type": "null",
|
|
2789
|
+
"description": "Always `null`: nothing was charged now (a scheduled change or an increase that cost nothing)."
|
|
2789
2790
|
},
|
|
2790
2791
|
"intent": {
|
|
2791
2792
|
"type": "object",
|
package/dist/billing.js
CHANGED
|
@@ -491,7 +491,11 @@ const intentIdentity = {
|
|
|
491
491
|
intent_id: z.uuid().meta({ description: 'Opaque persisted purchase intent identity.' }),
|
|
492
492
|
operation_key: purchaseOperationKey,
|
|
493
493
|
operation: chargeOperation,
|
|
494
|
-
invoice_id: z.uuid().optional().meta({
|
|
494
|
+
invoice_id: z.uuid().optional().meta({
|
|
495
|
+
description: 'For an invoice-paying operation, the due charge or issued invoice being paid. For a confirmed paid_change with ' +
|
|
496
|
+
'payment_started, the charge or invoice created for that decision; when the charge was issued through Lexware ' +
|
|
497
|
+
'(`charged` is `null`), it identifies the matching billing.charges[].id. Absent on a paid_change in any other state.',
|
|
498
|
+
}),
|
|
495
499
|
};
|
|
496
500
|
export const purchaseHoldReason = z.enum([
|
|
497
501
|
'legacy_usd_invoice', 'legacy_payer_unresolved', 'mandate_policy_unresolved',
|
|
@@ -971,7 +975,10 @@ export const billingDocumentFileQuery = z.object({
|
|
|
971
975
|
/** Accepted paid changes retain their provider identity; accepted no-payment changes have none. */
|
|
972
976
|
const acceptedBillingFields = {
|
|
973
977
|
billing: billingView.meta({ description: 'The billing view after the change.' }),
|
|
974
|
-
charged: billingInvoice.nullable().meta({
|
|
978
|
+
charged: billingInvoice.nullable().meta({
|
|
979
|
+
description: 'The Fleetless invoice charged now, or `null` when nothing was charged now (a change scheduled for the period end, ' +
|
|
980
|
+
'or an increase that cost nothing) or the change was charged through Lexware (then the charge is in `billing.charges`).',
|
|
981
|
+
}),
|
|
975
982
|
};
|
|
976
983
|
const acceptedPaidChange = z.object({
|
|
977
984
|
...acceptedBillingFields,
|
|
@@ -979,7 +986,9 @@ const acceptedPaidChange = z.object({
|
|
|
979
986
|
}).strict();
|
|
980
987
|
const acceptedNoPaymentChange = z.object({
|
|
981
988
|
billing: billingView,
|
|
982
|
-
charged: z.null()
|
|
989
|
+
charged: z.null().meta({
|
|
990
|
+
description: 'Always `null`: nothing was charged now (a scheduled change or an increase that cost nothing).',
|
|
991
|
+
}),
|
|
983
992
|
intent: purchaseIntentAcceptedWithoutPayment,
|
|
984
993
|
}).strict();
|
|
985
994
|
export const billingChangeResponse = z.union([
|
package/dist/errors.js
CHANGED
|
@@ -1105,8 +1105,8 @@ export const ERROR_CODES = [
|
|
|
1105
1105
|
/**
|
|
1106
1106
|
* `403`: the feature the caller reached for is not on the org's plan — an
|
|
1107
1107
|
* app's MCP endpoint, two-factor for a developer, a two-factor requirement
|
|
1108
|
-
* for the org, an app's OIDC federation, a hosted logo,
|
|
1109
|
-
*
|
|
1108
|
+
* for the org, an app's OIDC federation, a hosted logo, or add-ons
|
|
1109
|
+
* themselves. `details` is `planRequiredDetails`:
|
|
1110
1110
|
* the feature, the org's own plan, and the cheapest plan that has it, so
|
|
1111
1111
|
* the console can offer the upgrade in the same breath as the refusal.
|
|
1112
1112
|
*/
|