@scalar/cli 2.11.0 → 2.12.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 +3 -0
- package/chunks/{action-IQM54ITT.js → action-2OPUQFUY.js} +17 -17
- package/chunks/{action-NKTFNFU7.js → action-36LZ6XXE.js} +13 -13
- package/chunks/{action-BRSLSOE5.js → action-3XMTJJRT.js} +9 -9
- package/chunks/{action-RPCDNGCI.js → action-6CLEENBI.js} +19 -19
- package/chunks/{action-FMA5ECUA.js → action-7HXYZPOT.js} +5 -5
- package/chunks/{action-2VF6LODL.js → action-AC5ENU6Z.js} +8 -8
- package/chunks/{action-MJMLQFLT.js → action-ADGLTNFC.js} +21 -15
- package/chunks/{action-CQQCKSNS.js → action-AOKHLTZ6.js} +18 -12
- package/chunks/{action-7H3AWCHX.js → action-AVSJ3AJY.js} +9 -9
- package/chunks/{action-OTPXODUE.js → action-D3IVCY24.js} +5 -5
- package/chunks/{action-NHU4CUKT.js → action-EBZJS367.js} +2 -2
- package/chunks/{action-ZUZL7R3H.js → action-EZXHSAJ2.js} +10 -10
- package/chunks/{action-LR75GHBA.js → action-FDTVHVHF.js} +7 -7
- package/chunks/{action-SOYSVG67.js → action-FUO5F7NV.js} +5 -5
- package/chunks/{action-EYPYQQVM.js → action-HA3CMV3P.js} +5 -5
- package/chunks/{action-25QMCP5G.js → action-IG3BK2LF.js} +17 -17
- package/chunks/{action-GXDJLF2G.js → action-JT6C472I.js} +5 -5
- package/chunks/{action-KC3ZCNDR.js → action-KDT6H6ML.js} +5 -5
- package/chunks/{action-73ELLN3T.js → action-KJDIJQ3A.js} +2 -2
- package/chunks/{action-L7TMS3Q3.js → action-NF5E7JKA.js} +21 -21
- package/chunks/{action-J5TO3UJW.js → action-NIZBME45.js} +19 -19
- package/chunks/{action-NMW5WPD2.js → action-O757TFA2.js} +5 -5
- package/chunks/{action-YN4TE7TG.js → action-ONR7QSN7.js} +14 -14
- package/chunks/{action-DQDHBOLJ.js → action-QM2BMMHG.js} +15 -15
- package/chunks/{action-LAAHRDSR.js → action-QVTAZCKY.js} +4 -4
- package/chunks/{action-D5QWDNQ2.js → action-SLB52XRG.js} +13 -13
- package/chunks/{action-ZGNVWTHZ.js → action-UTFRCKGE.js} +5 -5
- package/chunks/{action-ZKKRPLDK.js → action-VESBFIP3.js} +14 -14
- package/chunks/{action-HUICEXJZ.js → action-VGFAIFYE.js} +14 -14
- package/chunks/{action-6M5PTDF6.js → action-WCU5O2VT.js} +16 -16
- package/chunks/{action-RQCXSJPZ.js → action-XS5EESHW.js} +18 -18
- package/chunks/{action-IH6G77C5.js → action-XVNRZ5VX.js} +14 -14
- package/chunks/{action-5I4XDPPG.js → action-YWQ2OKS3.js} +10 -10
- package/chunks/{actions-S6K76HCW.js → actions-6QG7LH7P.js} +14 -14
- package/chunks/{agent-IRNEV4K5.js → agent-ONXROEAE.js} +5 -5
- package/chunks/{asyncapi-WQPIQMEZ.js → asyncapi-7IFXAIE3.js} +9 -9
- package/chunks/{build.action-CLBVKFWD.js → build.action-FI4OWY3T.js} +16 -16
- package/chunks/{chunk-DQD2753S.js → chunk-26VIHQGL.js} +2 -2
- package/chunks/{chunk-NWJ37GI2.js → chunk-3HCEUGOE.js} +28 -9
- package/chunks/{chunk-SOV4POMS.js → chunk-5TNKTLQP.js} +15 -12
- package/chunks/{chunk-5L7V7RCH.js → chunk-BB6WWG25.js} +1 -1
- package/chunks/{chunk-GKCVATQJ.js → chunk-BCFUMXMC.js} +3 -3
- package/chunks/{chunk-HZN6IIPZ.js → chunk-EJSGWV2K.js} +2 -2
- package/chunks/{chunk-BQYVSPAI.js → chunk-FJCOYEKT.js} +126 -2
- package/chunks/{chunk-LOLVJNI5.js → chunk-HU47OMI4.js} +2 -2
- package/chunks/{chunk-SEURG74P.js → chunk-JLNHOA5Z.js} +3 -3
- package/chunks/{chunk-GYR5E6RB.js → chunk-LCSU43NJ.js} +2 -2
- package/chunks/{chunk-FG5AOTDN.js → chunk-N645RGAB.js} +785 -407
- package/chunks/{chunk-QMLRYD76.js → chunk-PERC34BV.js} +1 -1
- package/chunks/{chunk-AVZFSWPD.js → chunk-Q26DFKTY.js} +1 -1
- package/chunks/{chunk-UFSFY7Z4.js → chunk-QJQTSRU4.js} +2 -2
- package/chunks/{chunk-U6VE6JOS.js → chunk-RLBS4HJT.js} +2 -2
- package/chunks/{chunk-F3OPMYME.js → chunk-RNZVZMYC.js} +90 -14
- package/chunks/{chunk-Y6XGC4K5.js → chunk-RYWXF3LO.js} +8 -1
- package/chunks/{chunk-4JKXZ5CF.js → chunk-SNOAL2C5.js} +1 -1
- package/chunks/{chunk-CSSTCHHF.js → chunk-T3R66THO.js} +2 -0
- package/chunks/{chunk-KOD2HX5I.js → chunk-U73OW57G.js} +1 -1
- package/chunks/{chunk-25XERWCE.js → chunk-U764PQUA.js} +3 -27
- package/chunks/{chunk-ALYM4ZB2.js → chunk-UAFCSWQ6.js} +1 -1
- package/chunks/{chunk-N5CJ5MTY.js → chunk-UBLFIMUA.js} +1 -1
- package/chunks/{chunk-ULRJZXMS.js → chunk-UODTHS76.js} +1 -1
- package/chunks/{chunk-T34TL6KL.js → chunk-V3MYP5SQ.js} +27 -2
- package/chunks/{chunk-MN2AFJXM.js → chunk-VUNOOPEG.js} +1 -1
- package/chunks/{chunk-US54KYOJ.js → chunk-VVQOFG76.js} +1 -1
- package/chunks/{chunk-3TFOA64C.js → chunk-Y6C3H27E.js} +1 -1
- package/chunks/{chunk-3RIUDHLG.js → chunk-YTFFBGNQ.js} +2 -2
- package/chunks/{chunk-GMHIK5K2.js → chunk-ZNLMQKDU.js} +1 -1
- package/chunks/{create.action-ITEOQ644.js → create.action-PPMZEMZL.js} +16 -16
- package/chunks/{delete.action-C6VX4S5Q.js → delete.action-GDOHATRZ.js} +16 -16
- package/chunks/{delete.action-77MFPLUN.js → delete.action-VAHKEHEU.js} +16 -16
- package/chunks/{get.action-LNBOWUVE.js → get.action-UXFTGO7W.js} +15 -15
- package/chunks/{get.action-3BP4FHZC.js → get.action-XON3EZDT.js} +10 -10
- package/chunks/{list.action-KR5YIDR4.js → list.action-24F5WDGR.js} +17 -17
- package/chunks/{list.action-6CRFQPJT.js → list.action-OQEAEJ5U.js} +15 -15
- package/chunks/{publish.action-YBORRPBM.js → publish.action-G7FPDRBZ.js} +21 -21
- package/chunks/{update.action-O7TSXDGV.js → update.action-IFIFXZWA.js} +16 -16
- package/chunks/{update.action-QZI7M2MV.js → update.action-MJDHVVR3.js} +16 -16
- package/index.js +65 -64
- package/package.json +1 -1
- package/skills/scalar-cli/SKILL.md +1 -1
- package/template.md +3 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
MAX_TEAM_ENVIRONMENTS,
|
|
7
7
|
defaultTeamEnvironments,
|
|
8
8
|
teamEnvironmentSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Q26DFKTY.js";
|
|
10
10
|
import {
|
|
11
11
|
brandedUid,
|
|
12
12
|
emailSchema,
|
|
@@ -18,7 +18,8 @@ import {
|
|
|
18
18
|
schemaModel,
|
|
19
19
|
slugSchema,
|
|
20
20
|
timestampSchema,
|
|
21
|
-
unixTimestamp
|
|
21
|
+
unixTimestamp,
|
|
22
|
+
zod_default
|
|
22
23
|
} from "./chunk-I57ID5K7.js";
|
|
23
24
|
|
|
24
25
|
// ../../packages/entities/dist/team/access.js
|
|
@@ -272,6 +273,8 @@ var teamSdkPricing = external_exports.object({
|
|
|
272
273
|
endpointCount: external_exports.number().int().nullable(),
|
|
273
274
|
/** Targets this SDK currently bills. */
|
|
274
275
|
billedTargets: external_exports.number().int(),
|
|
276
|
+
/** Set when the SDK bills in this band whatever its size. */
|
|
277
|
+
billingBandPin: external_exports.literal("standard").nullish(),
|
|
275
278
|
band: sdkPriceBandSchema
|
|
276
279
|
}).array().default([]),
|
|
277
280
|
/**
|
|
@@ -412,6 +415,101 @@ var teamSchema = entitySchema.extend({
|
|
|
412
415
|
verified: external_exports.boolean().default(false).optional()
|
|
413
416
|
}).meta({ id: "team" });
|
|
414
417
|
|
|
418
|
+
// ../../packages/entities/dist/team/flat-pricing-report.js
|
|
419
|
+
var flatPricingSkipReasons = [
|
|
420
|
+
"no-billing-id",
|
|
421
|
+
"free-or-trial",
|
|
422
|
+
/** Enterprise plan, or an `enterprise` or `enterprise_sla` item; never moved. */
|
|
423
|
+
"enterprise",
|
|
424
|
+
/** Seat or SDK auto-billing is frozen for a flat-rate contract. */
|
|
425
|
+
"auto-billing-frozen",
|
|
426
|
+
"past-due",
|
|
427
|
+
"no-customer",
|
|
428
|
+
"no-subscription",
|
|
429
|
+
/** More than one subscription Stripe still bills; the webhooks assume one. */
|
|
430
|
+
"multiple-subscriptions",
|
|
431
|
+
/** A cancellation is pending. */
|
|
432
|
+
"cancelling",
|
|
433
|
+
"subscription-schedule",
|
|
434
|
+
"non-usd",
|
|
435
|
+
/** No plan item, more than one, a plan interval other than month or year, or two SDK lines landing on one price. */
|
|
436
|
+
"unsupported-items",
|
|
437
|
+
/** On 2026 pricing in Stripe and Mongo, within its tier's limits. */
|
|
438
|
+
"already-flat",
|
|
439
|
+
/** The target differs from the one the reviewed dry run listed. */
|
|
440
|
+
"changed-since-review"
|
|
441
|
+
];
|
|
442
|
+
var unmeasuredSdkReasons = [
|
|
443
|
+
"unlinked",
|
|
444
|
+
"unpublished",
|
|
445
|
+
"no-version-row",
|
|
446
|
+
/** The API, its version head or the stored document could not be read. */
|
|
447
|
+
"no-content",
|
|
448
|
+
"unparseable",
|
|
449
|
+
"asyncapi"
|
|
450
|
+
];
|
|
451
|
+
var lineItemSchema = zod_default.object({
|
|
452
|
+
lookupKey: zod_default.string().nullable(),
|
|
453
|
+
quantity: zod_default.number().int()
|
|
454
|
+
});
|
|
455
|
+
var flatPricingTargetSchema = zod_default.object({
|
|
456
|
+
plan: billingPlanSchema,
|
|
457
|
+
items: zod_default.array(lineItemSchema),
|
|
458
|
+
pinnedSdkUids: zod_default.array(zod_default.string())
|
|
459
|
+
});
|
|
460
|
+
var flatPricingSdkSchema = zod_default.object({
|
|
461
|
+
sdkUid: zod_default.string(),
|
|
462
|
+
name: zod_default.string(),
|
|
463
|
+
/** Targets the SDK bills. */
|
|
464
|
+
targets: zod_default.number().int(),
|
|
465
|
+
endpointCount: zod_default.number().int().nullable(),
|
|
466
|
+
/** The version row's count, a count taken from the stored document, or neither. */
|
|
467
|
+
source: zod_default.enum(["stored", "measured", "unmeasured"]),
|
|
468
|
+
unmeasuredReason: zod_default.enum(unmeasuredSdkReasons).nullable(),
|
|
469
|
+
/** The band its targets bill in today; every target on a legacy subscription bills standard. */
|
|
470
|
+
currentBand: sdkPriceBandSchema,
|
|
471
|
+
/** Pinned to the standard band once the team moves, by this migration or before it. */
|
|
472
|
+
pinned: zod_default.boolean()
|
|
473
|
+
});
|
|
474
|
+
var flatPricingReportSchema = zod_default.object({
|
|
475
|
+
teamUid: zod_default.string(),
|
|
476
|
+
teamName: zod_default.string(),
|
|
477
|
+
plan: billingPlanSchema,
|
|
478
|
+
pricingModel: zod_default.literal("flat_2026").nullable(),
|
|
479
|
+
outcome: zod_default.enum([
|
|
480
|
+
"skipped",
|
|
481
|
+
"would-migrate",
|
|
482
|
+
"migrated",
|
|
483
|
+
/** Flat in Stripe but stale in Mongo: only the team record is written. */
|
|
484
|
+
"would-repair",
|
|
485
|
+
"repaired"
|
|
486
|
+
]),
|
|
487
|
+
skipReason: zod_default.enum(flatPricingSkipReasons).nullable(),
|
|
488
|
+
subscriptionId: zod_default.string().nullable(),
|
|
489
|
+
/** Which pricing the subscription's plan item is on, read from its lookup key. */
|
|
490
|
+
stripeModel: zod_default.enum(["legacy", "flat"]).nullable(),
|
|
491
|
+
interval: zod_default.enum(["month", "year"]).nullable(),
|
|
492
|
+
/** The plan item's `current_period_end`, in unix seconds: when the new price is first invoiced. */
|
|
493
|
+
renewsAt: zod_default.number().int().nullable(),
|
|
494
|
+
currentItems: zod_default.array(lineItemSchema.extend({ unitAmountUsd: zod_default.number().nullable() })),
|
|
495
|
+
/** Null when a licensed item has no flat unit amount to add up. */
|
|
496
|
+
currentPerCycleUsd: zod_default.number().nullable(),
|
|
497
|
+
projectedPerCycleUsd: zod_default.number().nullable(),
|
|
498
|
+
/** Coupons on the subscription and the customer; an in-place update keeps them. */
|
|
499
|
+
discounts: zod_default.array(zod_default.string()),
|
|
500
|
+
editors: zod_default.number().int(),
|
|
501
|
+
apis: zod_default.number().int(),
|
|
502
|
+
sdks: zod_default.array(flatPricingSdkSchema),
|
|
503
|
+
/** Targets on SDK rows the read drops, billed at the standard band. */
|
|
504
|
+
legacySdkTargets: zod_default.number().int(),
|
|
505
|
+
classification: zod_default.object({
|
|
506
|
+
tier: zod_default.enum(["pro", "business"]),
|
|
507
|
+
reasons: zod_default.array(zod_default.string()),
|
|
508
|
+
exceedsBusiness: zod_default.array(zod_default.string())
|
|
509
|
+
}).nullable(),
|
|
510
|
+
target: flatPricingTargetSchema.nullable()
|
|
511
|
+
}).meta({ id: "flat-pricing-report" });
|
|
512
|
+
|
|
415
513
|
// ../../packages/entities/dist/team/helpers.js
|
|
416
514
|
var billingFeatures = {
|
|
417
515
|
team: {
|
|
@@ -511,6 +609,32 @@ var teamPermissions = {
|
|
|
511
609
|
}
|
|
512
610
|
};
|
|
513
611
|
|
|
612
|
+
// ../../packages/entities/dist/team/usage-billing-report.js
|
|
613
|
+
var usageBillingReportSchema = zod_default.object({
|
|
614
|
+
teamUid: zod_default.string(),
|
|
615
|
+
outcome: zod_default.enum([
|
|
616
|
+
/** The team has no Stripe customer. */
|
|
617
|
+
"no-customer",
|
|
618
|
+
/** The customer has no subscription Stripe still bills. */
|
|
619
|
+
"no-subscription",
|
|
620
|
+
/** More than one subscription; left for a human, since the webhooks assume one. */
|
|
621
|
+
"multiple-subscriptions",
|
|
622
|
+
/** Canceled or never completed: Stripe no longer bills it, so it is not migrated. */
|
|
623
|
+
"not-billable",
|
|
624
|
+
/** Already flexible with the usage item attached. */
|
|
625
|
+
"up-to-date",
|
|
626
|
+
/** Dry run: would migrate and/or attach the usage item. */
|
|
627
|
+
"would-update",
|
|
628
|
+
"updated"
|
|
629
|
+
]),
|
|
630
|
+
subscriptionId: zod_default.string().nullable(),
|
|
631
|
+
status: zod_default.string().nullable(),
|
|
632
|
+
billingMode: zod_default.string().nullable(),
|
|
633
|
+
hadUsageItem: zod_default.boolean(),
|
|
634
|
+
/** Intervals of the subscription's items, e.g. ['year', 'month'], to spot unusual contracts. */
|
|
635
|
+
intervals: zod_default.array(zod_default.string())
|
|
636
|
+
}).meta({ id: "usage-billing-report" });
|
|
637
|
+
|
|
514
638
|
export {
|
|
515
639
|
roleSchema,
|
|
516
640
|
userRefSchema,
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
ISOLATE_DIR,
|
|
7
7
|
ISOLATE_EXTRACTION_DIR
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U73OW57G.js";
|
|
9
9
|
import {
|
|
10
10
|
config
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UBLFIMUA.js";
|
|
12
12
|
import {
|
|
13
13
|
output
|
|
14
14
|
} from "./chunk-T5HJUAWB.js";
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
SdkLanguage,
|
|
4
4
|
sdkVersionStatusSchema,
|
|
5
5
|
sdkVersionTargetStateSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RYWXF3LO.js";
|
|
7
7
|
import {
|
|
8
8
|
cloudflareHostnameStateSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V3MYP5SQ.js";
|
|
10
10
|
import {
|
|
11
11
|
RegistryResourceTypes,
|
|
12
12
|
baseRegistrySchema,
|
|
13
13
|
contentShaSchema
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U764PQUA.js";
|
|
15
15
|
import {
|
|
16
16
|
brandedUid,
|
|
17
17
|
docVersionSchema,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createRequire as $$cR } from "node:module"; const require = $$cR(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
config
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UBLFIMUA.js";
|
|
5
5
|
import {
|
|
6
6
|
RegistryAsset
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VUNOOPEG.js";
|
|
8
8
|
|
|
9
9
|
// src/domains/registry/helpers/links.ts
|
|
10
10
|
function registryUrl(path) {
|