@pithy-sh/payments 0.3.10 → 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 +11 -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 +38 -0
- package/dist/client/api.d.ts.map +1 -1
- package/dist/client/api.js +59 -1
- package/dist/client/hooks.d.ts +63 -1
- package/dist/client/hooks.d.ts.map +1 -1
- package/dist/client/hooks.js +96 -2
- package/dist/client/paddleLink.d.ts +31 -0
- package/dist/client/paddleLink.d.ts.map +1 -0
- package/dist/client/paddleLink.js +37 -0
- 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/paddleIds.d.ts +28 -0
- package/dist/data/paddleIds.d.ts.map +1 -0
- package/dist/data/paddleIds.js +73 -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/entitlement/unimplementedSubject.d.ts.map +1 -1
- package/dist/entitlement/unimplementedSubject.js +3 -2
- 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 +390 -5
- package/dist/http/responses.d.ts.map +1 -1
- package/dist/http/responses.js +169 -13
- package/dist/http/routes.d.ts +6 -2
- package/dist/http/routes.d.ts.map +1 -1
- package/dist/http/routes.js +478 -52
- package/dist/http/schemas.d.ts +75 -1
- package/dist/http/schemas.d.ts.map +1 -1
- package/dist/http/schemas.js +80 -3
- 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/http/webhookGuard.d.ts.map +1 -1
- package/dist/http/webhookGuard.js +1 -1
- 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/events.d.ts.map +1 -1
- package/dist/rails/paddle/events.js +2 -1
- 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/refresh.d.ts +10 -5
- package/dist/rails/paddle/refresh.d.ts.map +1 -1
- package/dist/rails/paddle/refresh.js +8 -5
- package/dist/rails/paddle/refund.d.ts.map +1 -1
- package/dist/rails/paddle/refund.js +10 -2
- package/dist/rails/paddle/subscription.d.ts.map +1 -1
- package/dist/rails/paddle/subscription.js +8 -3
- 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/paddle/verify.d.ts.map +1 -1
- package/dist/rails/paddle/verify.js +2 -3
- 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/secret/registry.d.ts.map +1 -1
- package/dist/secret/registry.js +3 -2
- 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.d.ts.map +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/dist/workflows/workerConfig.d.ts.map +1 -1
- package/dist/workflows/workerConfig.js +8 -2
- package/docs/entitlements.md +249 -0
- package/docs/lemon-squeezy.md +1 -0
- package/docs/paddle.md +18 -2
- package/package.json +7 -7
- 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 +79 -0
- package/src/client/hooks.ts +122 -0
- package/src/client/paddleLink.ts +41 -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/paddleIds.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/entitlement/unimplementedSubject.ts +3 -4
- package/src/error/errors.ts +44 -1
- package/src/http/responses.ts +338 -10
- package/src/http/routes.ts +1089 -460
- package/src/http/schemas.ts +171 -2
- package/src/http/scopes.ts +68 -0
- package/src/http/view.ts +112 -7
- package/src/http/webhookGuard.ts +3 -2
- 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/events.ts +2 -1
- package/src/rails/paddle/fixtures/subscription-charge.json +19 -0
- package/src/rails/paddle/objects.ts +6 -0
- package/src/rails/paddle/refresh.ts +17 -10
- package/src/rails/paddle/refund.ts +10 -2
- package/src/rails/paddle/subscription.ts +8 -3
- package/src/rails/paddle/usage.ts +66 -0
- package/src/rails/paddle/verify.ts +6 -4
- 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/secret/registry.ts +3 -2
- 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
- package/src/workflows/workerConfig.ts +9 -3
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
import { InternalError, ValidationError } from "@pithy-sh/core/src/error/pithyError";
|
|
4
|
+
import { commandName } from "@pithy-sh/core/src/cli/command";
|
|
4
5
|
//#region src/entitlement/unimplementedSubject.ts
|
|
5
6
|
/**
|
|
6
7
|
* The placeholder `pithy add payments --set billingSubject=organization` scaffolds, and the brand that
|
|
@@ -52,7 +53,7 @@ const unimplementedSubject = Object.defineProperty(async () => {
|
|
|
52
53
|
throw new InternalError({
|
|
53
54
|
message: "The subject resolver for this project has not been written.",
|
|
54
55
|
action: "Implement resolveSubject in this Worker's src/billing/subject.ts.",
|
|
55
|
-
detail: "
|
|
56
|
+
detail: `The resolveSubject that ${commandName("add")} scaffolded is unimplemented, and it is still the one composed. Under billingSubject: "organization" only the application can say which organization a caller is acting for.`
|
|
56
57
|
});
|
|
57
58
|
}, UNIMPLEMENTED_SUBJECT, { value: true });
|
|
58
59
|
/** Whether this resolver is the scaffolded placeholder rather than something the adopter wrote. */
|
|
@@ -71,7 +72,7 @@ function requireImplementedSubject(resolver) {
|
|
|
71
72
|
throw new ValidationError({
|
|
72
73
|
message: "This project bills organizations, and its subject resolver is still the scaffolded placeholder.",
|
|
73
74
|
action: "Implement resolveSubject in this Worker's src/billing/subject.ts, or set `billingSubject: \"user\"` in pithy.config.ts.",
|
|
74
|
-
detail:
|
|
75
|
+
detail: `src/billing/subject.ts, as ${commandName("add")} wrote it, exports an unimplemented resolveSubject, and it is unchanged. Payments has no members table and never guesses a holder, so booting on it would deny every entitlement gate and raise payments/subject_unresolved on every write, for every caller, forever.`
|
|
75
76
|
});
|
|
76
77
|
}
|
|
77
78
|
//#endregion
|
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,8BAA+B,SAAQ,UAAU;IAC5D,YAAY,IAAI,GAAE,iBAAsB,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,EAYtE;CACF;AAED,0GAA0G;AAC1G,qBAAa,8BAA+B,SAAQ,UAAU;IAC5D,YAAY,IAAI,GAAE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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
|
@@ -16,8 +16,9 @@ import { z } from "zod";
|
|
|
16
16
|
*
|
|
17
17
|
* **Nothing here is a receipt.** `PaymentsPurchase.payload` is the whole verified provider response,
|
|
18
18
|
* and a bearer artifact; the purchase view is the normalized projection of it, and there is no field
|
|
19
|
-
* that carries the original. The webhook
|
|
20
|
-
*
|
|
19
|
+
* that carries the original. The webhook acknowledgement is here only so the OpenAPI contract can say
|
|
20
|
+
* what a store receives — it is addressed to Apple, Google and the hosted stores, not a contract offered
|
|
21
|
+
* to any client.
|
|
21
22
|
*
|
|
22
23
|
* **A client's own views name no subject; the management views name both halves of one.** A player reads
|
|
23
24
|
* its own rows, and who holds them is the answer the request already carried — echoing it back teaches a
|
|
@@ -135,6 +136,8 @@ export declare const PaymentsEntitlementsResponse: z.ZodObject<{
|
|
|
135
136
|
granted: z.ZodBoolean;
|
|
136
137
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
137
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>>;
|
|
138
141
|
}, z.core.$strip>;
|
|
139
142
|
export type PaymentsEntitlementsResponse = z.output<typeof PaymentsEntitlementsResponse>;
|
|
140
143
|
/** `POST {base}/restore`. */
|
|
@@ -680,6 +683,8 @@ export declare const PaymentsSubscriptionView: z.ZodObject<{
|
|
|
680
683
|
kind: z.ZodLiteral<"unknown">;
|
|
681
684
|
at: z.ZodNull;
|
|
682
685
|
}, z.core.$strip>], "kind">;
|
|
686
|
+
reportedQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
687
|
+
reportedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
683
688
|
}, z.core.$strip>;
|
|
684
689
|
export type PaymentsSubscriptionView = z.output<typeof PaymentsSubscriptionView>;
|
|
685
690
|
/**
|
|
@@ -732,6 +737,8 @@ export declare const PaymentsSubscriptionResponse: z.ZodObject<{
|
|
|
732
737
|
kind: z.ZodLiteral<"unknown">;
|
|
733
738
|
at: z.ZodNull;
|
|
734
739
|
}, z.core.$strip>], "kind">;
|
|
740
|
+
reportedQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
741
|
+
reportedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
735
742
|
}, z.core.$strip>>;
|
|
736
743
|
}, z.core.$strip>;
|
|
737
744
|
export type PaymentsSubscriptionResponse = z.output<typeof PaymentsSubscriptionResponse>;
|
|
@@ -791,6 +798,8 @@ export declare const PaymentsSubscriptionStandingResponse: z.ZodObject<{
|
|
|
791
798
|
kind: z.ZodLiteral<"unknown">;
|
|
792
799
|
at: z.ZodNull;
|
|
793
800
|
}, z.core.$strip>], "kind">;
|
|
801
|
+
reportedQuantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
802
|
+
reportedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
794
803
|
}, z.core.$strip>;
|
|
795
804
|
}, z.core.$strip>;
|
|
796
805
|
export type PaymentsSubscriptionStandingResponse = z.output<typeof PaymentsSubscriptionStandingResponse>;
|
|
@@ -1057,6 +1066,23 @@ export declare const PaymentsDiscountResponse: z.ZodObject<{
|
|
|
1057
1066
|
}>;
|
|
1058
1067
|
}, z.core.$strip>;
|
|
1059
1068
|
export type PaymentsDiscountResponse = z.output<typeof PaymentsDiscountResponse>;
|
|
1069
|
+
/**
|
|
1070
|
+
* What every webhook route answers a store once authenticity is established: always a 200, so the store
|
|
1071
|
+
* stops redelivering. Three shapes share it — a redelivery of a finished event (`duplicate`), a delivery
|
|
1072
|
+
* that projected nothing (`projected: false`), and one that projected a purchase (`projected: true` with
|
|
1073
|
+
* the projection's `outcome`).
|
|
1074
|
+
*/
|
|
1075
|
+
export declare const PaymentsWebhookAck: z.ZodObject<{
|
|
1076
|
+
received: z.ZodLiteral<true>;
|
|
1077
|
+
duplicate: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1078
|
+
projected: z.ZodOptional<z.ZodBoolean>;
|
|
1079
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
1080
|
+
created: "created";
|
|
1081
|
+
ignored: "ignored";
|
|
1082
|
+
updated: "updated";
|
|
1083
|
+
}>>;
|
|
1084
|
+
}, z.core.$strip>;
|
|
1085
|
+
export type PaymentsWebhookAck = z.output<typeof PaymentsWebhookAck>;
|
|
1060
1086
|
/**
|
|
1061
1087
|
* ## The management read surface
|
|
1062
1088
|
*
|
|
@@ -1099,6 +1125,29 @@ export declare const PaymentsAdminCatalogProduct: z.ZodObject<{
|
|
|
1099
1125
|
entitlements: z.ZodArray<z.ZodString>;
|
|
1100
1126
|
}, z.core.$strip>;
|
|
1101
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>;
|
|
1102
1151
|
/**
|
|
1103
1152
|
* `GET {base}/admin/catalog` — what this project sells.
|
|
1104
1153
|
*
|
|
@@ -1127,6 +1176,18 @@ export declare const PaymentsAdminCatalogResponse: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
1127
1176
|
entitlements: z.ZodArray<z.ZodString>;
|
|
1128
1177
|
}, z.core.$strip>>;
|
|
1129
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>>>;
|
|
1130
1191
|
}, z.core.$strip>], "enabled">;
|
|
1131
1192
|
export type PaymentsAdminCatalogResponse = z.output<typeof PaymentsAdminCatalogResponse>;
|
|
1132
1193
|
/**
|
|
@@ -1143,6 +1204,9 @@ export type PaymentsAdminCatalogResponse = z.output<typeof PaymentsAdminCatalogR
|
|
|
1143
1204
|
* replayed. The first is the whole point of the pane and the second never leaves the Worker.
|
|
1144
1205
|
*/
|
|
1145
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>>;
|
|
1146
1210
|
id: z.ZodString;
|
|
1147
1211
|
subjectType: z.ZodEnum<{
|
|
1148
1212
|
organization: "organization";
|
|
@@ -1211,8 +1275,182 @@ export declare const PaymentsAdminEntitlementView: z.ZodObject<{
|
|
|
1211
1275
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1212
1276
|
manual: z.ZodBoolean;
|
|
1213
1277
|
source: z.ZodNullable<z.ZodString>;
|
|
1278
|
+
unrestricted: z.ZodOptional<z.ZodBoolean>;
|
|
1214
1279
|
}, z.core.$strip>;
|
|
1215
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>;
|
|
1216
1454
|
/**
|
|
1217
1455
|
* One reconciliation pass, as a management client sees it.
|
|
1218
1456
|
*
|
|
@@ -1293,9 +1531,9 @@ export type PaymentsAdminReconcileRunsResponse = z.output<typeof PaymentsAdminRe
|
|
|
1293
1531
|
* job designed not to be blocked on, or invent the answer — and the answer is the one thing an operator pressed
|
|
1294
1532
|
* the button to find out. So this says *started, here is its id*, and the run log is where the tally lands.
|
|
1295
1533
|
*
|
|
1296
|
-
* **`started
|
|
1297
|
-
* second press while a run is in flight starts
|
|
1298
|
-
*
|
|
1534
|
+
* **`started` is `true` on every answer today.** A press either starts a pass or is refused with an error;
|
|
1535
|
+
* a second press while a run is in flight starts a second, and the pass is idempotent, so the two converge.
|
|
1536
|
+
* The field stays so a later trigger that declines a duplicate can say so without changing the shape.
|
|
1299
1537
|
*
|
|
1300
1538
|
* No count, no duration, no "queued position". Every one of those is a number a screen would print and nobody
|
|
1301
1539
|
* could stand behind.
|
|
@@ -1305,9 +1543,96 @@ export declare const PaymentsAdminReconcileRunStarted: z.ZodObject<{
|
|
|
1305
1543
|
runId: z.ZodNullable<z.ZodString>;
|
|
1306
1544
|
}, z.core.$strip>;
|
|
1307
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>;
|
|
1308
1630
|
/** `GET {base}/admin/purchases`. */
|
|
1309
1631
|
export declare const PaymentsAdminPurchasesResponse: z.ZodObject<{
|
|
1310
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>>;
|
|
1311
1636
|
id: z.ZodString;
|
|
1312
1637
|
subjectType: z.ZodEnum<{
|
|
1313
1638
|
organization: "organization";
|
|
@@ -1358,6 +1683,9 @@ export type PaymentsAdminPurchasesResponse = z.output<typeof PaymentsAdminPurcha
|
|
|
1358
1683
|
/** `GET {base}/admin/subscriptions` — the same rows, narrowed to the ones that renew. */
|
|
1359
1684
|
export declare const PaymentsAdminSubscriptionsResponse: z.ZodObject<{
|
|
1360
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>>;
|
|
1361
1689
|
id: z.ZodString;
|
|
1362
1690
|
subjectType: z.ZodEnum<{
|
|
1363
1691
|
organization: "organization";
|
|
@@ -1418,6 +1746,7 @@ export declare const PaymentsAdminEntitlementsResponse: z.ZodObject<{
|
|
|
1418
1746
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1419
1747
|
manual: z.ZodBoolean;
|
|
1420
1748
|
source: z.ZodNullable<z.ZodString>;
|
|
1749
|
+
unrestricted: z.ZodOptional<z.ZodBoolean>;
|
|
1421
1750
|
}, z.core.$strip>>;
|
|
1422
1751
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1423
1752
|
}, z.core.$strip>;
|
|
@@ -1451,6 +1780,62 @@ export declare const PaymentsAdminSubjectEntitlementsResponse: z.ZodObject<{
|
|
|
1451
1780
|
expiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1452
1781
|
manual: z.ZodBoolean;
|
|
1453
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>>;
|
|
1454
1839
|
}, z.core.$strip>>;
|
|
1455
1840
|
}, z.core.$strip>;
|
|
1456
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
|
|
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;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