@substrat-run/contracts 0.206.0 → 0.208.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.
@@ -0,0 +1,221 @@
1
+ /**
2
+ * Platform usage, priced (#3316): what a team's apps used of Cloudflare, per day, and what it
3
+ * would cost at the platform's price.
4
+ *
5
+ * - **Cost** is the attributed quantity at Cloudflare's list price (`CLOUDFLARE_LIST_RATES`),
6
+ * before the account's included allowances, as the #3316 measurement priced it.
7
+ * - **Price** is cost × (1 + markup), the markup read from the schedule in force on each day
8
+ * (`priceCostRows`, `markup.ts`).
9
+ * - A tenant sees the price only (`tenantPlatformUsage`). Staff see cost, markup and price side
10
+ * by side, plus what no tenant is charged for (`staffPlatformCosts`).
11
+ *
12
+ * Every figure is a decimal string computed with the contracts helpers, never a float.
13
+ */
14
+ import { z } from 'zod';
15
+ import { costAttribution, costQuantity, utcDay } from './control-plane.js';
16
+ import { instant, tenantId } from './ids.js';
17
+ import { billedDimension, usageKind } from './markup.js';
18
+ import { mulDivDecimal } from './money.js';
19
+ /** The billed dimensions platform usage reports: Cloudflare's, in the order a reader scans them. */
20
+ export const PLATFORM_USAGE_DIMENSIONS = [
21
+ 'rows-written',
22
+ 'rows-read',
23
+ 'storage',
24
+ 'requests',
25
+ 'cpu',
26
+ 'do-requests',
27
+ 'duration',
28
+ ];
29
+ /**
30
+ * Cloudflare's list prices for Workers and SQLite-backed Durable Objects, dated like the markup
31
+ * schedule: a change is a new entry with the UTC day it takes effect, so a past day keeps the
32
+ * price it was billed at. The figures are the public price list, the ones #3316's first
33
+ * measurement used.
34
+ */
35
+ export const CLOUDFLARE_LIST_RATES = [
36
+ {
37
+ effectiveFrom: '2000-01-01',
38
+ rates: [
39
+ { dimension: 'requests', usd: '0.30', per: 1_000_000, unit: 'requests' },
40
+ { dimension: 'cpu', usd: '0.02', per: 1_000_000, unit: 'CPU ms' },
41
+ { dimension: 'do-requests', usd: '0.15', per: 1_000_000, unit: 'Durable Object requests' },
42
+ { dimension: 'duration', usd: '12.50', per: 1_000_000, unit: 'GB-s' },
43
+ { dimension: 'rows-read', usd: '0.001', per: 1_000_000, unit: 'rows read' },
44
+ { dimension: 'rows-written', usd: '1.00', per: 1_000_000, unit: 'rows written' },
45
+ { dimension: 'storage', usd: '0.20', per: 1_000_000_000, unit: 'bytes per month' },
46
+ ],
47
+ },
48
+ ];
49
+ /** The list rates in force on `day`, or none before the first entry. */
50
+ export function listRatesOn(day) {
51
+ let found = [];
52
+ let from = '';
53
+ for (const entry of CLOUDFLARE_LIST_RATES) {
54
+ if (entry.effectiveFrom <= day && entry.effectiveFrom >= from) {
55
+ found = entry.rates;
56
+ from = entry.effectiveFrom;
57
+ }
58
+ }
59
+ return found;
60
+ }
61
+ /**
62
+ * The billed dimension each rollup dimension is charged as, or null for one Cloudflare does not
63
+ * bill on SQLite-backed objects: their writes are billed as rows written, so the storage write
64
+ * units the analytics also report would count them twice.
65
+ */
66
+ export const COST_DIMENSION_BILLED = {
67
+ worker_cpu_us: 'cpu',
68
+ do_requests: 'do-requests',
69
+ do_rows_read: 'rows-read',
70
+ do_rows_written: 'rows-written',
71
+ do_storage_write_units: null,
72
+ do_duration_gb_s: 'duration',
73
+ };
74
+ /** A rollup quantity in its billed unit: CPU µs become ms; every other unit is kept. */
75
+ export function platformQuantityOf(dimension, quantity) {
76
+ return dimension === 'worker_cpu_us' ? mulDivDecimal(quantity, '1', 1000) : quantity;
77
+ }
78
+ function daysInMonth(day) {
79
+ const [y, m] = day.split('-').map(Number);
80
+ return new Date(Date.UTC(y, m, 0)).getUTCDate();
81
+ }
82
+ /** A quantity's cost at list price on `day`, USD; null when no rate is in force for it. */
83
+ export function listCostOf(dimension, quantity, day) {
84
+ const rate = listRatesOn(day).find((r) => r.dimension === dimension);
85
+ if (!rate)
86
+ return null;
87
+ const per = dimension === 'storage' ? BigInt(rate.per) * BigInt(daysInMonth(day)) : rate.per;
88
+ return mulDivDecimal(quantity, rate.usd, per);
89
+ }
90
+ const usd = costQuantity;
91
+ /** One figure per reported dimension, keyed by `QUANTITY_KEY`. */
92
+ function perDimension(value) {
93
+ return z.object({
94
+ rowsWritten: value,
95
+ rowsRead: value,
96
+ storage: value,
97
+ requests: value,
98
+ cpu: value,
99
+ doRequests: value,
100
+ duration: value,
101
+ });
102
+ }
103
+ /** The key each dimension's figure has in a quantities object: an identifier, so a generated client can name it bare. */
104
+ export const QUANTITY_KEY = {
105
+ 'rows-written': 'rowsWritten',
106
+ 'rows-read': 'rowsRead',
107
+ storage: 'storage',
108
+ requests: 'requests',
109
+ cpu: 'cpu',
110
+ 'do-requests': 'doRequests',
111
+ duration: 'duration',
112
+ };
113
+ /**
114
+ * The quantities behind a figure, in each dimension's billed unit (`ListRate.unit`). `storage` is
115
+ * bytes stored on a day; over several days it is their sum, byte-days, which a reader divides by
116
+ * the days read for the average stored.
117
+ */
118
+ export const platformQuantities = perDimension(costQuantity);
119
+ /**
120
+ * How much of the window the cost rollup has read. `not-read`: no day yet (the daily pass has
121
+ * not run, or has not reached these days), so an empty page says nothing about usage. `empty`:
122
+ * days were read and the team used nothing on them. `partial`: some days are still unread.
123
+ */
124
+ export const platformUsageState = z.enum(['not-read', 'empty', 'partial', 'complete']);
125
+ const coverage = {
126
+ since: utcDay,
127
+ until: utcDay,
128
+ readAt: instant,
129
+ state: platformUsageState,
130
+ /** Days in the window the cost rollup has read. Only those are counted. */
131
+ readDays: z.number().int().nonnegative(),
132
+ totalDays: z.number().int().positive(),
133
+ /** The latest successful read of a day in the window. */
134
+ lastReadAt: instant.nullable(),
135
+ };
136
+ /** One app (a vertical, or none for usage that names none) of one kind. */
137
+ const appKey = { vertical: z.string().min(1).nullable(), kind: usageKind };
138
+ /**
139
+ * `GET /tenants/:tenantId/platform-usage` (#3316): what the team's apps used of the platform,
140
+ * per closed UTC day, and what it would cost at the platform's price. PRICE ONLY: neither the
141
+ * platform's cost nor its markup is in this shape. Nothing is charged yet (`chargedUsd` is 0).
142
+ */
143
+ export const tenantPlatformUsage = z.object({
144
+ ...coverage,
145
+ /** What the window would cost at the platform's price. */
146
+ wouldCostUsd: usd,
147
+ liveWouldCostUsd: usd,
148
+ previewWouldCostUsd: usd,
149
+ /** What is charged for it: nothing, while platform usage is shown before it is billed. */
150
+ chargedUsd: z.literal('0'),
151
+ quantities: platformQuantities,
152
+ /** Per app and kind over the window, costliest first. */
153
+ apps: z.array(z.object({
154
+ ...appKey,
155
+ wouldCostUsd: usd,
156
+ quantities: platformQuantities,
157
+ })),
158
+ /** Every day of the window, oldest first. An unread day carries nulls, never zeros. */
159
+ days: z.array(z.object({
160
+ day: utcDay,
161
+ read: z.boolean(),
162
+ wouldCostUsd: usd.nullable(),
163
+ liveWouldCostUsd: usd.nullable(),
164
+ previewWouldCostUsd: usd.nullable(),
165
+ quantities: platformQuantities.nullable(),
166
+ byApp: z.array(z.object({ ...appKey, wouldCostUsd: usd })),
167
+ })),
168
+ /** A source capped its rows, so request or storage figures are a lower bound. */
169
+ truncated: z.boolean(),
170
+ });
171
+ /** Cost, markup (price − cost) and price side by side. Markup and price are null where no markup row is in force. */
172
+ const priced = {
173
+ costUsd: usd,
174
+ markupUsd: usd.nullable(),
175
+ priceUsd: usd.nullable(),
176
+ /** The part of `costUsd` that previews ran up. */
177
+ previewCostUsd: usd,
178
+ };
179
+ /** What is in the rollup but charged to no tenant, by why (`costAttribution`). */
180
+ const residualSplit = {
181
+ unmapped: usd,
182
+ platform: usd,
183
+ unknown: usd,
184
+ };
185
+ /**
186
+ * `GET /meters/platform-costs` (#3316), staff only: per tenant and per day, the attributed cost,
187
+ * the markup and the price; each tenant's costliest verticals and its preview share; and the
188
+ * unattributed residual (`unmapped`, `platform`, `unknown`), which has a cost and no price.
189
+ */
190
+ export const staffPlatformCosts = z.object({
191
+ ...coverage,
192
+ /** The cost rollup's record of each day in the window that it tried. */
193
+ days: z.array(z.object({
194
+ day: utcDay,
195
+ read: z.boolean(),
196
+ readAt: instant.nullable(),
197
+ error: z.string().nullable(),
198
+ })),
199
+ /** The list rates in force on `until`, the basis of every cost here. */
200
+ rates: z.array(z.object({ dimension: billedDimension, usd, per: z.number().int().positive(), unit: z.string() })),
201
+ totals: z.object({ ...priced, residualCostUsd: usd }),
202
+ /** Costliest first. */
203
+ tenants: z.array(z.object({
204
+ tenantId,
205
+ ...priced,
206
+ /** The tenant's costliest verticals over the window, at most five. */
207
+ topVerticals: z.array(z.object({ vertical: z.string().min(1).nullable(), ...priced })),
208
+ /** The days it used anything, oldest first. */
209
+ days: z.array(z.object({ day: utcDay, ...priced })),
210
+ })),
211
+ residual: z.object({
212
+ costUsd: usd,
213
+ ...residualSplit,
214
+ days: z.array(z.object({ day: utcDay, costUsd: usd, ...residualSplit })),
215
+ }),
216
+ /** A source capped its rows, so request or storage figures are a lower bound. */
217
+ truncated: z.boolean(),
218
+ });
219
+ /** Re-exported for the fold: the attributions a residual splits by. */
220
+ export const RESIDUAL_ATTRIBUTIONS = ['unmapped', 'platform', 'unknown'];
221
+ //# sourceMappingURL=platform-usage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-usage.js","sourceRoot":"","sources":["../src/platform-usage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,EAAsB,MAAM,oBAAoB,CAAC;AAC/F,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,SAAS,EAAwB,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,oGAAoG;AACpG,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,cAAc;IACd,WAAW;IACX,SAAS;IACT,UAAU;IACV,KAAK;IACL,aAAa;IACb,UAAU;CACmC,CAAC;AAgBhD;;;;;GAKG;AACH,MAAM,CAAC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EAAE,CAAC,CAAC;QACtF,+CAA+C;QAC/C,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;KACpD,CAAC,CACH;IACD,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACjB,OAAO,EAAE,GAAG;QACZ,GAAG,aAAa;QAChB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,aAAa,EAAE,CAAC,CAAC;KACzE,CAAC;IACF,iFAAiF;IACjF,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC;AAGH,uEAAuE;AACvE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,CAA+D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@substrat-run/contracts",
3
- "version": "0.206.0",
3
+ "version": "0.208.0",
4
4
  "description": "Substrat kernel contract schemas — Zod is the source of truth (master plan D-22); OAS/JSON Schema are emitted artifacts",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {