@pithy-sh/payments 0.4.0 → 0.5.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/README.md +10 -3
- package/dist/admin/coverage.d.ts.map +1 -1
- package/dist/admin/coverage.js +26 -2
- package/dist/admin/read.d.ts +48 -1
- package/dist/admin/read.d.ts.map +1 -1
- package/dist/admin/read.js +89 -2
- package/dist/audit/actions.d.ts +13 -0
- package/dist/audit/actions.d.ts.map +1 -1
- package/dist/audit/actions.js +14 -1
- package/dist/capability.d.ts +33 -2
- package/dist/capability.d.ts.map +1 -1
- package/dist/capability.js +52 -9
- package/dist/client/api.d.ts +19 -0
- package/dist/client/api.d.ts.map +1 -1
- package/dist/client/api.js +34 -1
- package/dist/client/hooks.d.ts +20 -1
- package/dist/client/hooks.d.ts.map +1 -1
- package/dist/client/hooks.js +40 -2
- package/dist/client/projection.d.ts +29 -0
- package/dist/client/projection.d.ts.map +1 -1
- package/dist/config/allowances.d.ts +71 -0
- package/dist/config/allowances.d.ts.map +1 -0
- package/dist/config/allowances.js +115 -0
- package/dist/config/config.d.ts +155 -9
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +164 -14
- package/dist/data/meterCounter.d.ts +34 -0
- package/dist/data/meterCounter.d.ts.map +1 -0
- package/dist/data/meterCounter.js +33 -0
- package/dist/data/override.d.ts +56 -0
- package/dist/data/override.d.ts.map +1 -0
- package/dist/data/override.js +58 -0
- package/dist/data/period.d.ts +10 -0
- package/dist/data/period.d.ts.map +1 -0
- package/dist/data/period.js +37 -0
- package/dist/data/purchase.d.ts +1 -0
- package/dist/data/purchase.d.ts.map +1 -1
- package/dist/data/purchase.js +1 -0
- package/dist/data/tables.d.ts +17 -1
- package/dist/data/tables.d.ts.map +1 -1
- package/dist/data/tables.js +24 -4
- package/dist/data/usageReport.d.ts +68 -0
- package/dist/data/usageReport.d.ts.map +1 -0
- package/dist/data/usageReport.js +55 -0
- package/dist/data/usageRun.d.ts +93 -0
- package/dist/data/usageRun.d.ts.map +1 -0
- package/dist/data/usageRun.js +50 -0
- package/dist/entitlement/allowance.d.ts +100 -0
- package/dist/entitlement/allowance.d.ts.map +1 -0
- package/dist/entitlement/allowance.js +171 -0
- package/dist/entitlement/manual.d.ts +5 -5
- package/dist/entitlement/manual.js +3 -3
- package/dist/entitlement/meter.d.ts +98 -0
- package/dist/entitlement/meter.d.ts.map +1 -0
- package/dist/entitlement/meter.js +177 -0
- package/dist/entitlement/override.d.ts +119 -0
- package/dist/entitlement/override.d.ts.map +1 -0
- package/dist/entitlement/override.js +256 -0
- package/dist/entitlement/resolver.d.ts +2 -1
- package/dist/entitlement/resolver.d.ts.map +1 -1
- package/dist/entitlement/resolver.js +32 -1
- package/dist/error/errors.d.ts +19 -0
- package/dist/error/errors.d.ts.map +1 -1
- package/dist/error/errors.js +35 -2
- package/dist/http/responses.d.ts +367 -0
- package/dist/http/responses.d.ts.map +1 -1
- package/dist/http/responses.js +146 -7
- package/dist/http/routes.d.ts.map +1 -1
- package/dist/http/routes.js +270 -16
- package/dist/http/schemas.d.ts +54 -0
- package/dist/http/schemas.d.ts.map +1 -1
- package/dist/http/schemas.js +61 -2
- package/dist/http/scopes.d.ts +25 -0
- package/dist/http/scopes.d.ts.map +1 -1
- package/dist/http/scopes.js +60 -1
- package/dist/http/view.d.ts +22 -4
- package/dist/http/view.d.ts.map +1 -1
- package/dist/http/view.js +88 -7
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/migrations/0002_allowances.d.ts +26 -0
- package/dist/migrations/0002_allowances.d.ts.map +1 -0
- package/dist/migrations/0002_allowances.js +62 -0
- package/dist/peer.d.ts +1 -0
- package/dist/peer.d.ts.map +1 -1
- package/dist/projection/event.d.ts +1 -0
- package/dist/projection/event.d.ts.map +1 -1
- package/dist/projection/event.js +1 -0
- package/dist/projection/writer.d.ts.map +1 -1
- package/dist/projection/writer.js +3 -1
- package/dist/rails/contract.d.ts +6 -0
- package/dist/rails/contract.d.ts.map +1 -1
- package/dist/rails/google/playApi.d.ts.map +1 -1
- package/dist/rails/google/playApi.js +2 -0
- package/dist/rails/paddle/objects.d.ts +2 -0
- package/dist/rails/paddle/objects.d.ts.map +1 -1
- package/dist/rails/paddle/objects.js +7 -2
- package/dist/rails/paddle/usage.d.ts +11 -0
- package/dist/rails/paddle/usage.d.ts.map +1 -0
- package/dist/rails/paddle/usage.js +49 -0
- package/dist/rails/quantity.d.ts +12 -0
- package/dist/rails/quantity.d.ts.map +1 -0
- package/dist/rails/quantity.js +16 -0
- package/dist/rails/stripe/checkout.d.ts.map +1 -1
- package/dist/rails/stripe/checkout.js +1 -1
- package/dist/rails/stripe/objects.d.ts.map +1 -1
- package/dist/rails/stripe/objects.js +3 -0
- package/dist/rails/stripe/usage.d.ts +10 -0
- package/dist/rails/stripe/usage.d.ts.map +1 -0
- package/dist/rails/stripe/usage.js +49 -0
- package/dist/usage/pass.d.ts +120 -0
- package/dist/usage/pass.d.ts.map +1 -0
- package/dist/usage/pass.js +363 -0
- package/dist/usage/reporter.d.ts +36 -0
- package/dist/usage/reporter.d.ts.map +1 -0
- package/dist/usage/reporter.js +2 -0
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/dist/workflows/specs.d.ts +28 -0
- package/dist/workflows/specs.d.ts.map +1 -1
- package/dist/workflows/specs.js +26 -1
- package/dist/workflows/usage.d.ts +38 -0
- package/dist/workflows/usage.d.ts.map +1 -0
- package/dist/workflows/usage.js +77 -0
- package/dist/workflows/worker.js +2 -2
- package/docs/entitlements.md +249 -0
- package/docs/lemon-squeezy.md +1 -0
- package/docs/paddle.md +1 -0
- package/package.json +5 -5
- package/pithy.manifest.json +3 -8
- package/src/admin/coverage.ts +28 -0
- package/src/admin/read.ts +173 -1
- package/src/audit/actions.ts +13 -0
- package/src/capability.ts +87 -9
- package/src/client/api.ts +44 -0
- package/src/client/hooks.ts +44 -0
- package/src/client/projection.ts +31 -0
- package/src/config/allowances.ts +211 -0
- package/src/config/config.ts +283 -15
- package/src/data/meterCounter.ts +38 -0
- package/src/data/override.ts +74 -0
- package/src/data/period.ts +53 -0
- package/src/data/purchase.ts +9 -0
- package/src/data/tables.ts +25 -1
- package/src/data/usageReport.ts +64 -0
- package/src/data/usageRun.ts +66 -0
- package/src/entitlement/allowance.ts +213 -0
- package/src/entitlement/manual.ts +6 -6
- package/src/entitlement/meter.ts +252 -0
- package/src/entitlement/override.ts +381 -0
- package/src/entitlement/resolver.ts +43 -2
- package/src/error/errors.ts +44 -1
- package/src/http/responses.ts +305 -4
- package/src/http/routes.ts +365 -11
- package/src/http/schemas.ts +139 -1
- package/src/http/scopes.ts +68 -0
- package/src/http/view.ts +112 -7
- package/src/index.ts +18 -0
- package/src/migrations/0002_allowances.ts +149 -0
- package/src/projection/event.ts +9 -0
- package/src/projection/writer.ts +4 -0
- package/src/rails/contract.ts +6 -0
- package/src/rails/google/playApi.ts +2 -0
- package/src/rails/paddle/fixtures/subscription-charge.json +19 -0
- package/src/rails/paddle/objects.ts +6 -0
- package/src/rails/paddle/usage.ts +66 -0
- package/src/rails/quantity.ts +14 -0
- package/src/rails/stripe/checkout.ts +3 -1
- package/src/rails/stripe/fixtures/meter-event-created.json +12 -0
- package/src/rails/stripe/objects.ts +4 -0
- package/src/rails/stripe/usage.ts +61 -0
- package/src/usage/pass.ts +539 -0
- package/src/usage/reporter.ts +38 -0
- package/src/version.generated.ts +1 -1
- package/src/workflows/specs.ts +34 -0
- package/src/workflows/usage.ts +97 -0
|
@@ -4,6 +4,7 @@ import type { PithyMiddleware } from "@pithy-sh/core/src/capability/capability";
|
|
|
4
4
|
import type { EntitlementHolder, EntitlementResolver } from "@pithy-sh/core/src/entitlement/entitlement";
|
|
5
5
|
import { type PaymentsSubject } from "../data/subject";
|
|
6
6
|
import type { PaymentsDatabase } from "../data/tables";
|
|
7
|
+
import { type PaymentsAllowances } from "./meter";
|
|
7
8
|
import { type PaymentsSubjectSeam } from "./subjectSeam";
|
|
8
9
|
/**
|
|
9
10
|
* Payments filling the entitlement seam. Core's default (`noEntitlementProvider`) holds nothing so that an
|
|
@@ -58,5 +59,5 @@ export declare function createPaymentsEntitlementResolver(db: PaymentsDatabase,
|
|
|
58
59
|
* neither is a composition problem, and reporting `null` here would send an operator looking for a missing
|
|
59
60
|
* capability.
|
|
60
61
|
*/
|
|
61
|
-
export declare function installEntitlementResolver(database: string, seam: PaymentsSubjectSeam): PithyMiddleware;
|
|
62
|
+
export declare function installEntitlementResolver(database: string, seam: PaymentsSubjectSeam, allowances?: PaymentsAllowances): PithyMiddleware;
|
|
62
63
|
//# sourceMappingURL=resolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../src/entitlement/resolver.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../src/entitlement/resolver.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,EAEV,iBAAiB,EACjB,mBAAmB,EAEpB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAA0B,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,OAAO,EAAoC,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACpF,OAAO,EAAE,KAAK,mBAAmB,EAA0B,MAAM,eAAe,CAAC;AAEjF;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,aAAa,CAAC;AAExD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,eAAe,GAAG,iBAAiB,CAKrF;AAED;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAC/C,EAAE,EAAE,gBAAgB,EACpB,OAAO,EAAE,eAAe,EACxB,GAAG,GAAE,MAAM,IAAuB,GACjC,mBAAmB,CAOrB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,mBAAmB,EACzB,UAAU,GAAE,kBAAuE,GAClF,eAAe,CAuEjB"}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
import { encodeSubjectReference } from "../data/subject.js";
|
|
4
4
|
import { resolveEntitlements } from "../projection/resolve.js";
|
|
5
|
+
import { requireDeclaredFeature, requireDeclaredQuota, resolveFeature, resolveQuota } from "./allowance.js";
|
|
6
|
+
import { allowanceInputFor, meterLimitFor } from "./meter.js";
|
|
5
7
|
import { resolvePaymentsSubject } from "./subjectSeam.js";
|
|
6
8
|
import { InternalError } from "@pithy-sh/core/src/error/pithyError";
|
|
7
9
|
//#region src/entitlement/resolver.ts
|
|
@@ -69,7 +71,10 @@ function createPaymentsEntitlementResolver(db, subject, now = () => /* @__PURE__
|
|
|
69
71
|
* neither is a composition problem, and reporting `null` here would send an operator looking for a missing
|
|
70
72
|
* capability.
|
|
71
73
|
*/
|
|
72
|
-
function installEntitlementResolver(database, seam
|
|
74
|
+
function installEntitlementResolver(database, seam, allowances = {
|
|
75
|
+
declarations: { entitlements: {} },
|
|
76
|
+
meters: {}
|
|
77
|
+
}) {
|
|
73
78
|
return (app) => {
|
|
74
79
|
app.use("*", async (c, next) => {
|
|
75
80
|
let resolving;
|
|
@@ -77,8 +82,34 @@ function installEntitlementResolver(database, seam) {
|
|
|
77
82
|
resolving ??= resolvePaymentsSubject(c, seam);
|
|
78
83
|
return resolving;
|
|
79
84
|
};
|
|
85
|
+
/** The database, or the wiring fault — checked only once a read actually needs one. */
|
|
86
|
+
const appDatabase = () => {
|
|
87
|
+
const db = c.var.db[database];
|
|
88
|
+
if (!db) throw new InternalError({
|
|
89
|
+
message: "Payments is not configured.",
|
|
90
|
+
action: "Bind a D1 database named DB in wrangler.jsonc.",
|
|
91
|
+
detail: `No \`${database}\` database on c.var.db; payments cannot resolve allowances.`
|
|
92
|
+
});
|
|
93
|
+
return db;
|
|
94
|
+
};
|
|
80
95
|
c.set("entitlements", {
|
|
81
96
|
provider: PAYMENTS_ENTITLEMENT_PROVIDER,
|
|
97
|
+
quota: async (name) => {
|
|
98
|
+
requireDeclaredQuota(allowances.declarations, name);
|
|
99
|
+
const subject = await subjectOnce();
|
|
100
|
+
const input = await allowanceInputFor(subject && appDatabase(), allowances.declarations, subject, /* @__PURE__ */ new Date());
|
|
101
|
+
return resolveQuota(input, name).effective.value;
|
|
102
|
+
},
|
|
103
|
+
feature: async (name) => {
|
|
104
|
+
requireDeclaredFeature(allowances.declarations, name);
|
|
105
|
+
const subject = await subjectOnce();
|
|
106
|
+
const input = await allowanceInputFor(subject && appDatabase(), allowances.declarations, subject, /* @__PURE__ */ new Date());
|
|
107
|
+
return resolveFeature(input, name).effective.value;
|
|
108
|
+
},
|
|
109
|
+
meterLimit: async (meter) => {
|
|
110
|
+
const subject = await subjectOnce();
|
|
111
|
+
return meterLimitFor(appDatabase(), allowances, subject, meter, /* @__PURE__ */ new Date());
|
|
112
|
+
},
|
|
82
113
|
holder: async () => {
|
|
83
114
|
const subject = await subjectOnce();
|
|
84
115
|
return subject ? paymentsEntitlementHolder(subject) : void 0;
|
package/dist/error/errors.d.ts
CHANGED
|
@@ -245,5 +245,24 @@ export declare class PaymentsSubscriptionChangeRefusedError extends PithyError {
|
|
|
245
245
|
cause?: unknown;
|
|
246
246
|
});
|
|
247
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* An override set named a version behind the row it would change. Two operators share one customer: both
|
|
250
|
+
* opened `emails`, and the second would silently win while the first believes they succeeded. So the set is
|
|
251
|
+
* refused and nothing is written, and the caller re-reads before it tries again.
|
|
252
|
+
*/
|
|
253
|
+
export declare class PaymentsOverrideStaleError extends PithyError {
|
|
254
|
+
constructor(args?: PaymentsErrorArgs, options?: {
|
|
255
|
+
cause?: unknown;
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* An enforced meter refused: the subject's effective quota for this period does not allow more. 402, because
|
|
260
|
+
* the caller's plan does not allow it and the remedy is a purchase — a bigger tier, or a pinned number.
|
|
261
|
+
*/
|
|
262
|
+
export declare class PaymentsQuotaExceededError extends PithyError {
|
|
263
|
+
constructor(args?: PaymentsErrorArgs, options?: {
|
|
264
|
+
cause?: unknown;
|
|
265
|
+
});
|
|
266
|
+
}
|
|
248
267
|
export {};
|
|
249
268
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/error/errors.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE;;;;;;;;;;;;;;;GAeG;AAEH,UAAU,iBAAiB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,+EAA+E;AAC/E,qBAAa,2BAA4B,SAAQ,UAAU;IACzD,YAAY,IAAI,GAAE,iBAAsB,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EAYtE;CACF;AAED,uFAAuF;AACvF,qBAAa,+BAAgC,SAAQ,UAAU;IAC7D,YAAY,IAAI,GAAE,iBAAsB,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EAYtE;CACF;AAED;;;GAGG;AACH,qBAAa,8B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Q,UAAU;IACpE,YAAY,IAAI,GAAE,iBAAsB,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EActE;CACF;AAED;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,UAAU;IACxD,YAAY,IAAI,GAAE,iBAAsB,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EAYtE;CACF;AAED;;;GAGG;AACH,qBAAa,0BAA2B,SAAQ,UAAU;IACxD,YAAY,IAAI,GAAE,iBAAsB,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EActE;CACF"}
|
package/dist/error/errors.js
CHANGED
|
@@ -183,7 +183,7 @@ var PaymentsEntitlementNotInCatalogError = class extends PithyError {
|
|
|
183
183
|
code: "payments/entitlement_not_in_catalog",
|
|
184
184
|
status: 400,
|
|
185
185
|
message: args.message ?? "That entitlement is not one this project defines.",
|
|
186
|
-
action: args.action ?? "Grant a key
|
|
186
|
+
action: args.action ?? "Grant a key the `entitlements` map in pithy.config.ts declares, or declare it there — a declared key no product sells is grantable by hand.",
|
|
187
187
|
detail: args.detail,
|
|
188
188
|
params: args.params
|
|
189
189
|
}, options);
|
|
@@ -324,5 +324,38 @@ var PaymentsSubscriptionChangeRefusedError = class extends PithyError {
|
|
|
324
324
|
}, options);
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
|
+
/**
|
|
328
|
+
* An override set named a version behind the row it would change. Two operators share one customer: both
|
|
329
|
+
* opened `emails`, and the second would silently win while the first believes they succeeded. So the set is
|
|
330
|
+
* refused and nothing is written, and the caller re-reads before it tries again.
|
|
331
|
+
*/
|
|
332
|
+
var PaymentsOverrideStaleError = class extends PithyError {
|
|
333
|
+
constructor(args = {}, options) {
|
|
334
|
+
super({
|
|
335
|
+
code: "payments/override_stale",
|
|
336
|
+
status: 409,
|
|
337
|
+
message: args.message ?? "That override changed since it was read.",
|
|
338
|
+
action: args.action ?? "Read the subject's entitlements again, then set the override against the new version.",
|
|
339
|
+
detail: args.detail,
|
|
340
|
+
params: args.params
|
|
341
|
+
}, options);
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
/**
|
|
345
|
+
* An enforced meter refused: the subject's effective quota for this period does not allow more. 402, because
|
|
346
|
+
* the caller's plan does not allow it and the remedy is a purchase — a bigger tier, or a pinned number.
|
|
347
|
+
*/
|
|
348
|
+
var PaymentsQuotaExceededError = class extends PithyError {
|
|
349
|
+
constructor(args = {}, options) {
|
|
350
|
+
super({
|
|
351
|
+
code: "payments/quota_exceeded",
|
|
352
|
+
status: 402,
|
|
353
|
+
message: args.message ?? "This plan's allowance is used up for this period.",
|
|
354
|
+
action: args.action ?? "Upgrade the plan, or pin a larger allowance for this subject from the control plane. The meter resets when the period does.",
|
|
355
|
+
detail: args.detail,
|
|
356
|
+
params: args.params
|
|
357
|
+
}, options);
|
|
358
|
+
}
|
|
359
|
+
};
|
|
327
360
|
//#endregion
|
|
328
|
-
export { PaymentsClawbackFailedError, PaymentsDiscountInvalidError, PaymentsEntitlementNotInCatalogError, PaymentsEntitlementRequiredError, PaymentsEnvironmentMismatchError, PaymentsInvalidReceiptError, PaymentsProductNotFoundError, PaymentsProviderUnavailableError, PaymentsRailNotConfiguredError, PaymentsReceiptAlreadyOwnedError, PaymentsReconcileNotProvisionedError, PaymentsSubjectUnresolvedError, PaymentsSubscriptionChangeRefusedError, PaymentsVerificationFailedError, PaymentsWebhookUnverifiedError };
|
|
361
|
+
export { PaymentsClawbackFailedError, PaymentsDiscountInvalidError, PaymentsEntitlementNotInCatalogError, PaymentsEntitlementRequiredError, PaymentsEnvironmentMismatchError, PaymentsInvalidReceiptError, PaymentsOverrideStaleError, PaymentsProductNotFoundError, PaymentsProviderUnavailableError, PaymentsQuotaExceededError, PaymentsRailNotConfiguredError, PaymentsReceiptAlreadyOwnedError, PaymentsReconcileNotProvisionedError, PaymentsSubjectUnresolvedError, PaymentsSubscriptionChangeRefusedError, PaymentsVerificationFailedError, PaymentsWebhookUnverifiedError };
|
package/dist/http/responses.d.ts
CHANGED
|
@@ -136,6 +136,8 @@ export declare const PaymentsEntitlementsResponse: z.ZodObject<{
|
|
|
136
136
|
granted: z.ZodBoolean;
|
|
137
137
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
138
138
|
}, z.core.$strip>>;
|
|
139
|
+
quotas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>>;
|
|
140
|
+
features: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
139
141
|
}, z.core.$strip>;
|
|
140
142
|
export type PaymentsEntitlementsResponse = z.output<typeof PaymentsEntitlementsResponse>;
|
|
141
143
|
/** `POST {base}/restore`. */
|
|
@@ -681,6 +683,8 @@ export declare const PaymentsSubscriptionView: z.ZodObject<{
|
|
|
681
683
|
kind: z.ZodLiteral<"unknown">;
|
|
682
684
|
at: z.ZodNull;
|
|
683
685
|
}, z.core.$strip>], "kind">;
|
|
686
|
+
reportedQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
687
|
+
reportedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
684
688
|
}, z.core.$strip>;
|
|
685
689
|
export type PaymentsSubscriptionView = z.output<typeof PaymentsSubscriptionView>;
|
|
686
690
|
/**
|
|
@@ -733,6 +737,8 @@ export declare const PaymentsSubscriptionResponse: z.ZodObject<{
|
|
|
733
737
|
kind: z.ZodLiteral<"unknown">;
|
|
734
738
|
at: z.ZodNull;
|
|
735
739
|
}, z.core.$strip>], "kind">;
|
|
740
|
+
reportedQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
741
|
+
reportedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
736
742
|
}, z.core.$strip>>;
|
|
737
743
|
}, z.core.$strip>;
|
|
738
744
|
export type PaymentsSubscriptionResponse = z.output<typeof PaymentsSubscriptionResponse>;
|
|
@@ -792,6 +798,8 @@ export declare const PaymentsSubscriptionStandingResponse: z.ZodObject<{
|
|
|
792
798
|
kind: z.ZodLiteral<"unknown">;
|
|
793
799
|
at: z.ZodNull;
|
|
794
800
|
}, z.core.$strip>], "kind">;
|
|
801
|
+
reportedQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
802
|
+
reportedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
795
803
|
}, z.core.$strip>;
|
|
796
804
|
}, z.core.$strip>;
|
|
797
805
|
export type PaymentsSubscriptionStandingResponse = z.output<typeof PaymentsSubscriptionStandingResponse>;
|
|
@@ -1117,6 +1125,29 @@ export declare const PaymentsAdminCatalogProduct: z.ZodObject<{
|
|
|
1117
1125
|
entitlements: z.ZodArray<z.ZodString>;
|
|
1118
1126
|
}, z.core.$strip>;
|
|
1119
1127
|
export type PaymentsAdminCatalogProduct = z.output<typeof PaymentsAdminCatalogProduct>;
|
|
1128
|
+
/**
|
|
1129
|
+
* One declared entitlement key, as a management client sees it: what it is called, and what it buys.
|
|
1130
|
+
*
|
|
1131
|
+
* **What an override editor is built from.** An override names a quota or a feature, and without this a pane
|
|
1132
|
+
* could not say which names exist, which are numbers and which are switches, what the plan's value is, or
|
|
1133
|
+
* what ceiling an operator may type up to. `quotas` holds numbers and `features` holds booleans, so the map a
|
|
1134
|
+
* name sits in *is* its kind.
|
|
1135
|
+
*/
|
|
1136
|
+
export declare const PaymentsAdminCatalogEntitlement: z.ZodObject<{
|
|
1137
|
+
key: z.ZodString;
|
|
1138
|
+
name: z.ZodString;
|
|
1139
|
+
quotas: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>;
|
|
1140
|
+
features: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1141
|
+
overrideMax: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1142
|
+
sold: z.ZodBoolean;
|
|
1143
|
+
}, z.core.$strip>;
|
|
1144
|
+
export type PaymentsAdminCatalogEntitlement = z.output<typeof PaymentsAdminCatalogEntitlement>;
|
|
1145
|
+
/** The free floor, as a management client sees it. */
|
|
1146
|
+
export declare const PaymentsAdminCatalogDefaults: z.ZodObject<{
|
|
1147
|
+
quotas: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>;
|
|
1148
|
+
features: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1149
|
+
}, z.core.$strip>;
|
|
1150
|
+
export type PaymentsAdminCatalogDefaults = z.output<typeof PaymentsAdminCatalogDefaults>;
|
|
1120
1151
|
/**
|
|
1121
1152
|
* `GET {base}/admin/catalog` — what this project sells.
|
|
1122
1153
|
*
|
|
@@ -1145,6 +1176,18 @@ export declare const PaymentsAdminCatalogResponse: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
1145
1176
|
entitlements: z.ZodArray<z.ZodString>;
|
|
1146
1177
|
}, z.core.$strip>>;
|
|
1147
1178
|
manualEntitlements: z.ZodArray<z.ZodString>;
|
|
1179
|
+
entitlements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1180
|
+
key: z.ZodString;
|
|
1181
|
+
name: z.ZodString;
|
|
1182
|
+
quotas: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>;
|
|
1183
|
+
features: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1184
|
+
overrideMax: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1185
|
+
sold: z.ZodBoolean;
|
|
1186
|
+
}, z.core.$strip>>>;
|
|
1187
|
+
defaults: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1188
|
+
quotas: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>;
|
|
1189
|
+
features: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1190
|
+
}, z.core.$strip>>>;
|
|
1148
1191
|
}, z.core.$strip>], "enabled">;
|
|
1149
1192
|
export type PaymentsAdminCatalogResponse = z.output<typeof PaymentsAdminCatalogResponse>;
|
|
1150
1193
|
/**
|
|
@@ -1161,6 +1204,9 @@ export type PaymentsAdminCatalogResponse = z.output<typeof PaymentsAdminCatalogR
|
|
|
1161
1204
|
* replayed. The first is the whole point of the pane and the second never leaves the Worker.
|
|
1162
1205
|
*/
|
|
1163
1206
|
export declare const PaymentsAdminPurchaseView: z.ZodObject<{
|
|
1207
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1208
|
+
reportedQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1209
|
+
reportedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
1164
1210
|
id: z.ZodString;
|
|
1165
1211
|
subjectType: z.ZodEnum<{
|
|
1166
1212
|
organization: "organization";
|
|
@@ -1229,8 +1275,182 @@ export declare const PaymentsAdminEntitlementView: z.ZodObject<{
|
|
|
1229
1275
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1230
1276
|
manual: z.ZodBoolean;
|
|
1231
1277
|
source: z.ZodNullable<z.ZodString>;
|
|
1278
|
+
unrestricted: z.ZodOptional<z.ZodBoolean>;
|
|
1232
1279
|
}, z.core.$strip>;
|
|
1233
1280
|
export type PaymentsAdminEntitlementView = z.output<typeof PaymentsAdminEntitlementView>;
|
|
1281
|
+
/** Where an allowance's value came from. */
|
|
1282
|
+
export declare const PaymentsAllowanceSource: z.ZodEnum<{
|
|
1283
|
+
default: "default";
|
|
1284
|
+
none: "none";
|
|
1285
|
+
override: "override";
|
|
1286
|
+
plan: "plan";
|
|
1287
|
+
unrestricted: "unrestricted";
|
|
1288
|
+
}>;
|
|
1289
|
+
export type PaymentsAllowanceSource = z.output<typeof PaymentsAllowanceSource>;
|
|
1290
|
+
/**
|
|
1291
|
+
* One quota for one subject: what applies now, where it came from, and what it would be with the override
|
|
1292
|
+
* removed. **Three facts, because a pane that lets an operator pin one field needs all three** — projecting only
|
|
1293
|
+
* the effective value loses the plan's number the instant an override exists, and the pane can no longer draw
|
|
1294
|
+
* the row it is editing or offer to revert it.
|
|
1295
|
+
*/
|
|
1296
|
+
export declare const PaymentsAdminQuotaView: z.ZodObject<{
|
|
1297
|
+
name: z.ZodString;
|
|
1298
|
+
effective: z.ZodNullable<z.ZodNumber>;
|
|
1299
|
+
source: z.ZodEnum<{
|
|
1300
|
+
default: "default";
|
|
1301
|
+
none: "none";
|
|
1302
|
+
override: "override";
|
|
1303
|
+
plan: "plan";
|
|
1304
|
+
unrestricted: "unrestricted";
|
|
1305
|
+
}>;
|
|
1306
|
+
key: z.ZodNullable<z.ZodString>;
|
|
1307
|
+
inherited: z.ZodNullable<z.ZodNumber>;
|
|
1308
|
+
inheritedSource: z.ZodEnum<{
|
|
1309
|
+
default: "default";
|
|
1310
|
+
none: "none";
|
|
1311
|
+
override: "override";
|
|
1312
|
+
plan: "plan";
|
|
1313
|
+
unrestricted: "unrestricted";
|
|
1314
|
+
}>;
|
|
1315
|
+
inheritedKey: z.ZodNullable<z.ZodString>;
|
|
1316
|
+
overrideMax: z.ZodNullable<z.ZodNumber>;
|
|
1317
|
+
}, z.core.$strip>;
|
|
1318
|
+
export type PaymentsAdminQuotaView = z.output<typeof PaymentsAdminQuotaView>;
|
|
1319
|
+
/** One feature for one subject, the same three facts. */
|
|
1320
|
+
export declare const PaymentsAdminFeatureView: z.ZodObject<{
|
|
1321
|
+
name: z.ZodString;
|
|
1322
|
+
effective: z.ZodBoolean;
|
|
1323
|
+
source: z.ZodEnum<{
|
|
1324
|
+
default: "default";
|
|
1325
|
+
none: "none";
|
|
1326
|
+
override: "override";
|
|
1327
|
+
plan: "plan";
|
|
1328
|
+
unrestricted: "unrestricted";
|
|
1329
|
+
}>;
|
|
1330
|
+
key: z.ZodNullable<z.ZodString>;
|
|
1331
|
+
inherited: z.ZodBoolean;
|
|
1332
|
+
inheritedSource: z.ZodEnum<{
|
|
1333
|
+
default: "default";
|
|
1334
|
+
none: "none";
|
|
1335
|
+
override: "override";
|
|
1336
|
+
plan: "plan";
|
|
1337
|
+
unrestricted: "unrestricted";
|
|
1338
|
+
}>;
|
|
1339
|
+
inheritedKey: z.ZodNullable<z.ZodString>;
|
|
1340
|
+
}, z.core.$strip>;
|
|
1341
|
+
export type PaymentsAdminFeatureView = z.output<typeof PaymentsAdminFeatureView>;
|
|
1342
|
+
/** Every declared allowance for one subject. */
|
|
1343
|
+
export declare const PaymentsAdminAllowancesView: z.ZodObject<{
|
|
1344
|
+
quotas: z.ZodArray<z.ZodObject<{
|
|
1345
|
+
name: z.ZodString;
|
|
1346
|
+
effective: z.ZodNullable<z.ZodNumber>;
|
|
1347
|
+
source: z.ZodEnum<{
|
|
1348
|
+
default: "default";
|
|
1349
|
+
none: "none";
|
|
1350
|
+
override: "override";
|
|
1351
|
+
plan: "plan";
|
|
1352
|
+
unrestricted: "unrestricted";
|
|
1353
|
+
}>;
|
|
1354
|
+
key: z.ZodNullable<z.ZodString>;
|
|
1355
|
+
inherited: z.ZodNullable<z.ZodNumber>;
|
|
1356
|
+
inheritedSource: z.ZodEnum<{
|
|
1357
|
+
default: "default";
|
|
1358
|
+
none: "none";
|
|
1359
|
+
override: "override";
|
|
1360
|
+
plan: "plan";
|
|
1361
|
+
unrestricted: "unrestricted";
|
|
1362
|
+
}>;
|
|
1363
|
+
inheritedKey: z.ZodNullable<z.ZodString>;
|
|
1364
|
+
overrideMax: z.ZodNullable<z.ZodNumber>;
|
|
1365
|
+
}, z.core.$strip>>;
|
|
1366
|
+
features: z.ZodArray<z.ZodObject<{
|
|
1367
|
+
name: z.ZodString;
|
|
1368
|
+
effective: z.ZodBoolean;
|
|
1369
|
+
source: z.ZodEnum<{
|
|
1370
|
+
default: "default";
|
|
1371
|
+
none: "none";
|
|
1372
|
+
override: "override";
|
|
1373
|
+
plan: "plan";
|
|
1374
|
+
unrestricted: "unrestricted";
|
|
1375
|
+
}>;
|
|
1376
|
+
key: z.ZodNullable<z.ZodString>;
|
|
1377
|
+
inherited: z.ZodBoolean;
|
|
1378
|
+
inheritedSource: z.ZodEnum<{
|
|
1379
|
+
default: "default";
|
|
1380
|
+
none: "none";
|
|
1381
|
+
override: "override";
|
|
1382
|
+
plan: "plan";
|
|
1383
|
+
unrestricted: "unrestricted";
|
|
1384
|
+
}>;
|
|
1385
|
+
inheritedKey: z.ZodNullable<z.ZodString>;
|
|
1386
|
+
}, z.core.$strip>>;
|
|
1387
|
+
}, z.core.$strip>;
|
|
1388
|
+
export type PaymentsAdminAllowancesView = z.output<typeof PaymentsAdminAllowancesView>;
|
|
1389
|
+
/** One subject's override row, as a management client sees it. */
|
|
1390
|
+
export declare const PaymentsAdminOverrideView: z.ZodObject<{
|
|
1391
|
+
version: z.ZodNumber;
|
|
1392
|
+
unrestricted: z.ZodBoolean;
|
|
1393
|
+
quotas: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>;
|
|
1394
|
+
features: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1395
|
+
reason: z.ZodString;
|
|
1396
|
+
updatedAt: z.ZodISODateTime;
|
|
1397
|
+
}, z.core.$strip>;
|
|
1398
|
+
export type PaymentsAdminOverrideView = z.output<typeof PaymentsAdminOverrideView>;
|
|
1399
|
+
/** One subject's override in the listing: whose it is, and the override. */
|
|
1400
|
+
export declare const PaymentsAdminOverrideListItem: z.ZodObject<{
|
|
1401
|
+
subjectType: z.ZodEnum<{
|
|
1402
|
+
organization: "organization";
|
|
1403
|
+
user: "user";
|
|
1404
|
+
}>;
|
|
1405
|
+
subjectId: z.ZodString;
|
|
1406
|
+
override: z.ZodObject<{
|
|
1407
|
+
version: z.ZodNumber;
|
|
1408
|
+
unrestricted: z.ZodBoolean;
|
|
1409
|
+
quotas: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>;
|
|
1410
|
+
features: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1411
|
+
reason: z.ZodString;
|
|
1412
|
+
updatedAt: z.ZodISODateTime;
|
|
1413
|
+
}, z.core.$strip>;
|
|
1414
|
+
}, z.core.$strip>;
|
|
1415
|
+
export type PaymentsAdminOverrideListItem = z.output<typeof PaymentsAdminOverrideListItem>;
|
|
1416
|
+
/** `GET {base}/admin/overrides`. */
|
|
1417
|
+
export declare const PaymentsAdminOverridesResponse: z.ZodObject<{
|
|
1418
|
+
overrides: z.ZodArray<z.ZodObject<{
|
|
1419
|
+
subjectType: z.ZodEnum<{
|
|
1420
|
+
organization: "organization";
|
|
1421
|
+
user: "user";
|
|
1422
|
+
}>;
|
|
1423
|
+
subjectId: z.ZodString;
|
|
1424
|
+
override: z.ZodObject<{
|
|
1425
|
+
version: z.ZodNumber;
|
|
1426
|
+
unrestricted: z.ZodBoolean;
|
|
1427
|
+
quotas: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>;
|
|
1428
|
+
features: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1429
|
+
reason: z.ZodString;
|
|
1430
|
+
updatedAt: z.ZodISODateTime;
|
|
1431
|
+
}, z.core.$strip>;
|
|
1432
|
+
}, z.core.$strip>>;
|
|
1433
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1434
|
+
}, z.core.$strip>;
|
|
1435
|
+
export type PaymentsAdminOverridesResponse = z.output<typeof PaymentsAdminOverridesResponse>;
|
|
1436
|
+
/** What every override write answers: the subject, and its override as it now stands. */
|
|
1437
|
+
export declare const PaymentsOverrideResponse: z.ZodObject<{
|
|
1438
|
+
subjectType: z.ZodEnum<{
|
|
1439
|
+
organization: "organization";
|
|
1440
|
+
user: "user";
|
|
1441
|
+
}>;
|
|
1442
|
+
subjectId: z.ZodString;
|
|
1443
|
+
override: z.ZodNullable<z.ZodObject<{
|
|
1444
|
+
version: z.ZodNumber;
|
|
1445
|
+
unrestricted: z.ZodBoolean;
|
|
1446
|
+
quotas: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>;
|
|
1447
|
+
features: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1448
|
+
reason: z.ZodString;
|
|
1449
|
+
updatedAt: z.ZodISODateTime;
|
|
1450
|
+
}, z.core.$strip>>;
|
|
1451
|
+
version: z.ZodNumber;
|
|
1452
|
+
}, z.core.$strip>;
|
|
1453
|
+
export type PaymentsOverrideResponse = z.output<typeof PaymentsOverrideResponse>;
|
|
1234
1454
|
/**
|
|
1235
1455
|
* One reconciliation pass, as a management client sees it.
|
|
1236
1456
|
*
|
|
@@ -1323,9 +1543,96 @@ export declare const PaymentsAdminReconcileRunStarted: z.ZodObject<{
|
|
|
1323
1543
|
runId: z.ZodNullable<z.ZodString>;
|
|
1324
1544
|
}, z.core.$strip>;
|
|
1325
1545
|
export type PaymentsAdminReconcileRunStarted = z.output<typeof PaymentsAdminReconcileRunStarted>;
|
|
1546
|
+
/** One subject a usage run did not report, and why. */
|
|
1547
|
+
export declare const PaymentsAdminUsageFindingView: z.ZodObject<{
|
|
1548
|
+
subjectType: z.ZodEnum<{
|
|
1549
|
+
organization: "organization";
|
|
1550
|
+
user: "user";
|
|
1551
|
+
}>;
|
|
1552
|
+
subjectId: z.ZodString;
|
|
1553
|
+
productId: z.ZodString;
|
|
1554
|
+
reason: z.ZodEnum<{
|
|
1555
|
+
above_max: "above_max";
|
|
1556
|
+
below_min: "below_min";
|
|
1557
|
+
negative: "negative";
|
|
1558
|
+
not_integer: "not_integer";
|
|
1559
|
+
report_failed: "report_failed";
|
|
1560
|
+
resolver_failed: "resolver_failed";
|
|
1561
|
+
unanswered: "unanswered";
|
|
1562
|
+
}>;
|
|
1563
|
+
}, z.core.$strip>;
|
|
1564
|
+
export type PaymentsAdminUsageFindingView = z.output<typeof PaymentsAdminUsageFindingView>;
|
|
1565
|
+
/** One usage-reporting pass, as a management client sees it. */
|
|
1566
|
+
export declare const PaymentsAdminUsageRunView: z.ZodObject<{
|
|
1567
|
+
id: z.ZodString;
|
|
1568
|
+
startedAt: z.ZodISODateTime;
|
|
1569
|
+
finishedAt: z.ZodISODateTime;
|
|
1570
|
+
scanned: z.ZodNumber;
|
|
1571
|
+
reported: z.ZodNumber;
|
|
1572
|
+
sampled: z.ZodNumber;
|
|
1573
|
+
alreadyReported: z.ZodNumber;
|
|
1574
|
+
skipped: z.ZodNumber;
|
|
1575
|
+
invalid: z.ZodNumber;
|
|
1576
|
+
failed: z.ZodNumber;
|
|
1577
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
1578
|
+
subjectType: z.ZodEnum<{
|
|
1579
|
+
organization: "organization";
|
|
1580
|
+
user: "user";
|
|
1581
|
+
}>;
|
|
1582
|
+
subjectId: z.ZodString;
|
|
1583
|
+
productId: z.ZodString;
|
|
1584
|
+
reason: z.ZodEnum<{
|
|
1585
|
+
above_max: "above_max";
|
|
1586
|
+
below_min: "below_min";
|
|
1587
|
+
negative: "negative";
|
|
1588
|
+
not_integer: "not_integer";
|
|
1589
|
+
report_failed: "report_failed";
|
|
1590
|
+
resolver_failed: "resolver_failed";
|
|
1591
|
+
unanswered: "unanswered";
|
|
1592
|
+
}>;
|
|
1593
|
+
}, z.core.$strip>>;
|
|
1594
|
+
}, z.core.$strip>;
|
|
1595
|
+
export type PaymentsAdminUsageRunView = z.output<typeof PaymentsAdminUsageRunView>;
|
|
1596
|
+
/** `GET {base}/admin/usage-runs`. */
|
|
1597
|
+
export declare const PaymentsAdminUsageRunsResponse: z.ZodObject<{
|
|
1598
|
+
runs: z.ZodArray<z.ZodObject<{
|
|
1599
|
+
id: z.ZodString;
|
|
1600
|
+
startedAt: z.ZodISODateTime;
|
|
1601
|
+
finishedAt: z.ZodISODateTime;
|
|
1602
|
+
scanned: z.ZodNumber;
|
|
1603
|
+
reported: z.ZodNumber;
|
|
1604
|
+
sampled: z.ZodNumber;
|
|
1605
|
+
alreadyReported: z.ZodNumber;
|
|
1606
|
+
skipped: z.ZodNumber;
|
|
1607
|
+
invalid: z.ZodNumber;
|
|
1608
|
+
failed: z.ZodNumber;
|
|
1609
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
1610
|
+
subjectType: z.ZodEnum<{
|
|
1611
|
+
organization: "organization";
|
|
1612
|
+
user: "user";
|
|
1613
|
+
}>;
|
|
1614
|
+
subjectId: z.ZodString;
|
|
1615
|
+
productId: z.ZodString;
|
|
1616
|
+
reason: z.ZodEnum<{
|
|
1617
|
+
above_max: "above_max";
|
|
1618
|
+
below_min: "below_min";
|
|
1619
|
+
negative: "negative";
|
|
1620
|
+
not_integer: "not_integer";
|
|
1621
|
+
report_failed: "report_failed";
|
|
1622
|
+
resolver_failed: "resolver_failed";
|
|
1623
|
+
unanswered: "unanswered";
|
|
1624
|
+
}>;
|
|
1625
|
+
}, z.core.$strip>>;
|
|
1626
|
+
}, z.core.$strip>>;
|
|
1627
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1628
|
+
}, z.core.$strip>;
|
|
1629
|
+
export type PaymentsAdminUsageRunsResponse = z.output<typeof PaymentsAdminUsageRunsResponse>;
|
|
1326
1630
|
/** `GET {base}/admin/purchases`. */
|
|
1327
1631
|
export declare const PaymentsAdminPurchasesResponse: z.ZodObject<{
|
|
1328
1632
|
purchases: z.ZodArray<z.ZodObject<{
|
|
1633
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1634
|
+
reportedQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1635
|
+
reportedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
1329
1636
|
id: z.ZodString;
|
|
1330
1637
|
subjectType: z.ZodEnum<{
|
|
1331
1638
|
organization: "organization";
|
|
@@ -1376,6 +1683,9 @@ export type PaymentsAdminPurchasesResponse = z.output<typeof PaymentsAdminPurcha
|
|
|
1376
1683
|
/** `GET {base}/admin/subscriptions` — the same rows, narrowed to the ones that renew. */
|
|
1377
1684
|
export declare const PaymentsAdminSubscriptionsResponse: z.ZodObject<{
|
|
1378
1685
|
subscriptions: z.ZodArray<z.ZodObject<{
|
|
1686
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1687
|
+
reportedQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1688
|
+
reportedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
1379
1689
|
id: z.ZodString;
|
|
1380
1690
|
subjectType: z.ZodEnum<{
|
|
1381
1691
|
organization: "organization";
|
|
@@ -1436,6 +1746,7 @@ export declare const PaymentsAdminEntitlementsResponse: z.ZodObject<{
|
|
|
1436
1746
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1437
1747
|
manual: z.ZodBoolean;
|
|
1438
1748
|
source: z.ZodNullable<z.ZodString>;
|
|
1749
|
+
unrestricted: z.ZodOptional<z.ZodBoolean>;
|
|
1439
1750
|
}, z.core.$strip>>;
|
|
1440
1751
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1441
1752
|
}, z.core.$strip>;
|
|
@@ -1469,6 +1780,62 @@ export declare const PaymentsAdminSubjectEntitlementsResponse: z.ZodObject<{
|
|
|
1469
1780
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1470
1781
|
manual: z.ZodBoolean;
|
|
1471
1782
|
source: z.ZodNullable<z.ZodString>;
|
|
1783
|
+
unrestricted: z.ZodOptional<z.ZodBoolean>;
|
|
1784
|
+
}, z.core.$strip>>;
|
|
1785
|
+
unrestricted: z.ZodOptional<z.ZodBoolean>;
|
|
1786
|
+
overrideVersion: z.ZodOptional<z.ZodNumber>;
|
|
1787
|
+
override: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1788
|
+
version: z.ZodNumber;
|
|
1789
|
+
unrestricted: z.ZodBoolean;
|
|
1790
|
+
quotas: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodNumber>>;
|
|
1791
|
+
features: z.ZodRecord<z.ZodString, z.ZodBoolean>;
|
|
1792
|
+
reason: z.ZodString;
|
|
1793
|
+
updatedAt: z.ZodISODateTime;
|
|
1794
|
+
}, z.core.$strip>>>;
|
|
1795
|
+
allowances: z.ZodOptional<z.ZodObject<{
|
|
1796
|
+
quotas: z.ZodArray<z.ZodObject<{
|
|
1797
|
+
name: z.ZodString;
|
|
1798
|
+
effective: z.ZodNullable<z.ZodNumber>;
|
|
1799
|
+
source: z.ZodEnum<{
|
|
1800
|
+
default: "default";
|
|
1801
|
+
none: "none";
|
|
1802
|
+
override: "override";
|
|
1803
|
+
plan: "plan";
|
|
1804
|
+
unrestricted: "unrestricted";
|
|
1805
|
+
}>;
|
|
1806
|
+
key: z.ZodNullable<z.ZodString>;
|
|
1807
|
+
inherited: z.ZodNullable<z.ZodNumber>;
|
|
1808
|
+
inheritedSource: z.ZodEnum<{
|
|
1809
|
+
default: "default";
|
|
1810
|
+
none: "none";
|
|
1811
|
+
override: "override";
|
|
1812
|
+
plan: "plan";
|
|
1813
|
+
unrestricted: "unrestricted";
|
|
1814
|
+
}>;
|
|
1815
|
+
inheritedKey: z.ZodNullable<z.ZodString>;
|
|
1816
|
+
overrideMax: z.ZodNullable<z.ZodNumber>;
|
|
1817
|
+
}, z.core.$strip>>;
|
|
1818
|
+
features: z.ZodArray<z.ZodObject<{
|
|
1819
|
+
name: z.ZodString;
|
|
1820
|
+
effective: z.ZodBoolean;
|
|
1821
|
+
source: z.ZodEnum<{
|
|
1822
|
+
default: "default";
|
|
1823
|
+
none: "none";
|
|
1824
|
+
override: "override";
|
|
1825
|
+
plan: "plan";
|
|
1826
|
+
unrestricted: "unrestricted";
|
|
1827
|
+
}>;
|
|
1828
|
+
key: z.ZodNullable<z.ZodString>;
|
|
1829
|
+
inherited: z.ZodBoolean;
|
|
1830
|
+
inheritedSource: z.ZodEnum<{
|
|
1831
|
+
default: "default";
|
|
1832
|
+
none: "none";
|
|
1833
|
+
override: "override";
|
|
1834
|
+
plan: "plan";
|
|
1835
|
+
unrestricted: "unrestricted";
|
|
1836
|
+
}>;
|
|
1837
|
+
inheritedKey: z.ZodNullable<z.ZodString>;
|
|
1838
|
+
}, z.core.$strip>>;
|
|
1472
1839
|
}, z.core.$strip>>;
|
|
1473
1840
|
}, z.core.$strip>;
|
|
1474
1841
|
export type PaymentsAdminSubjectEntitlementsResponse = z.output<typeof PaymentsAdminSubjectEntitlementsResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/http/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,4CAA4C;AAC5C,eAAO,MAAM,uBAAuB;;;;iBAMqD,CAAC;AAC1F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE/E,0GAA0G;AAC1G,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBoE,CAAC;AACtG,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEzE,+BAA+B;AAC/B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK+B,CAAC;AACrE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEjF,2DAA2D;AAC3D,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/http/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,4CAA4C;AAC5C,eAAO,MAAM,uBAAuB;;;;iBAMqD,CAAC;AAC1F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE/E,0GAA0G;AAC1G,eAAO,M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