@bluestep-systems/b6p-core 0.9.0 → 1.1.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 +274 -24
- package/dist/B6PCore.d.ts +13 -0
- package/dist/B6PCore.js +61 -1
- package/dist/B6PCore.js.map +1 -1
- package/dist/B6PUri.d.ts +6 -8
- package/dist/B6PUri.js +6 -8
- package/dist/B6PUri.js.map +1 -1
- package/dist/Err.d.ts +434 -0
- package/dist/Err.js +582 -0
- package/dist/Err.js.map +1 -1
- package/dist/auth/BearerAuthProvider.d.ts +32 -0
- package/dist/auth/BearerAuthProvider.js +49 -0
- package/dist/auth/BearerAuthProvider.js.map +1 -1
- package/dist/cache/OrgCache.js.map +1 -1
- package/dist/cache/ScriptMetaDataStore.js.map +1 -1
- package/dist/constants/ApiEndpoints.d.ts +1 -0
- package/dist/constants/ApiEndpoints.js +1 -0
- package/dist/constants/ApiEndpoints.js.map +1 -1
- package/dist/constants/AuthTypes.js.map +1 -1
- package/dist/constants/BlueHQ.js.map +1 -1
- package/dist/constants/CryptoAlgorithms.js.map +1 -1
- package/dist/constants/ExtensionConfig.js.map +1 -1
- package/dist/constants/FileExtensions.js.map +1 -1
- package/dist/constants/FolderNames.js.map +1 -1
- package/dist/constants/Gateway.d.ts +71 -0
- package/dist/constants/Gateway.js +79 -0
- package/dist/constants/Gateway.js.map +1 -0
- package/dist/constants/GitHubUrls.js.map +1 -1
- package/dist/constants/Http.js.map +1 -1
- package/dist/constants/MimeTypes.js.map +1 -1
- package/dist/constants/Numerical.js.map +1 -1
- package/dist/constants/OutputChannels.js.map +1 -1
- package/dist/constants/SettingsKeys.d.ts +5 -0
- package/dist/constants/SettingsKeys.js +5 -0
- package/dist/constants/SettingsKeys.js.map +1 -1
- package/dist/constants/SpecialFiles.js.map +1 -1
- package/dist/constants/WebDAVElements.js.map +1 -1
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.js +3 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/data/DownstairsPathParser.js.map +1 -1
- package/dist/data/GlobMatcher.js.map +1 -1
- package/dist/data/IdUtility.js.map +1 -1
- package/dist/data/OrgWorker.js.map +1 -1
- package/dist/data/ScriptKey.js.map +1 -1
- package/dist/data/ScriptUrlParser.js.map +1 -1
- package/dist/data/ServerVersion.d.ts +76 -0
- package/dist/data/ServerVersion.js +111 -0
- package/dist/data/ServerVersion.js.map +1 -0
- package/dist/data/index.d.ts +2 -0
- package/dist/data/index.js +7 -1
- package/dist/data/index.js.map +1 -1
- package/dist/gateway/GatewayClient.d.ts +147 -0
- package/dist/gateway/GatewayClient.js +395 -0
- package/dist/gateway/GatewayClient.js.map +1 -0
- package/dist/gateway/GatewayContext.d.ts +43 -0
- package/dist/gateway/GatewayContext.js +3 -0
- package/dist/gateway/GatewayContext.js.map +1 -0
- package/dist/gateway/GatewayGit.d.ts +291 -0
- package/dist/gateway/GatewayGit.js +731 -0
- package/dist/gateway/GatewayGit.js.map +1 -0
- package/dist/gateway/GatewayKb.d.ts +173 -0
- package/dist/gateway/GatewayKb.js +354 -0
- package/dist/gateway/GatewayKb.js.map +1 -0
- package/dist/gateway/GatewayMarketplace.d.ts +116 -0
- package/dist/gateway/GatewayMarketplace.js +278 -0
- package/dist/gateway/GatewayMarketplace.js.map +1 -0
- package/dist/gateway/GatewayService.d.ts +47 -0
- package/dist/gateway/GatewayService.js +54 -0
- package/dist/gateway/GatewayService.js.map +1 -0
- package/dist/gateway/GatewayToken.d.ts +18 -0
- package/dist/gateway/GatewayToken.js +43 -0
- package/dist/gateway/GatewayToken.js.map +1 -0
- package/dist/gateway/GatewayTokenService.d.ts +101 -0
- package/dist/gateway/GatewayTokenService.js +465 -0
- package/dist/gateway/GatewayTokenService.js.map +1 -0
- package/dist/index.d.ts +27 -9
- package/dist/index.js +36 -7
- package/dist/index.js.map +1 -1
- package/dist/network/HttpClient.js.map +1 -1
- package/dist/network/HttpClientProvider.js.map +1 -1
- package/dist/network/StatusCodes.js.map +1 -1
- package/dist/persistence/PersistablePseudoMap.js.map +1 -1
- package/dist/persistence/PersistenceKeys.js.map +1 -1
- package/dist/persistence/PrivatePersistanceMap.js.map +1 -1
- package/dist/persistence/PseudoMap.js.map +1 -1
- package/dist/persistence/PublicPersistanceMap.js.map +1 -1
- package/dist/persistence/Serializable.js.map +1 -1
- package/dist/persistence/SharedFilePersistence.d.ts +22 -0
- package/dist/persistence/SharedFilePersistence.js +65 -14
- package/dist/persistence/SharedFilePersistence.js.map +1 -1
- package/dist/persistence/TypedMap.js.map +1 -1
- package/dist/persistence/TypedPersistable.js.map +1 -1
- package/dist/persistence/TypedPrivatePersistable.js.map +1 -1
- package/dist/persistence/dirLockdown.js.map +1 -1
- package/dist/providers.d.ts +36 -19
- package/dist/schema/SchemaContext.d.ts +10 -0
- package/dist/schema/SchemaContext.js +3 -0
- package/dist/schema/SchemaContext.js.map +1 -0
- package/dist/schema/SchemaService.d.ts +99 -0
- package/dist/schema/SchemaService.js +225 -0
- package/dist/schema/SchemaService.js.map +1 -0
- package/dist/script/GitIdentity.js.map +1 -1
- package/dist/script/GitSync.d.ts +78 -11
- package/dist/script/GitSync.js +84 -17
- package/dist/script/GitSync.js.map +1 -1
- package/dist/script/ScriptContext.d.ts +1 -8
- package/dist/script/ScriptFactory.d.ts +1 -2
- package/dist/script/ScriptFactory.js +1 -2
- package/dist/script/ScriptFactory.js.map +1 -1
- package/dist/script/ScriptFile.js.map +1 -1
- package/dist/script/ScriptFolder.js.map +1 -1
- package/dist/script/ScriptNode.js.map +1 -1
- package/dist/script/ScriptRoot.d.ts +0 -63
- package/dist/script/ScriptRoot.js +0 -178
- package/dist/script/ScriptRoot.js.map +1 -1
- package/dist/script/ScriptService.d.ts +45 -11
- package/dist/script/ScriptService.js +44 -6
- package/dist/script/ScriptService.js.map +1 -1
- package/dist/script/ServerCompile.d.ts +35 -0
- package/dist/script/ServerCompile.js +40 -0
- package/dist/script/ServerCompile.js.map +1 -0
- package/dist/script/TsConfig.d.ts +2 -2
- package/dist/script/TsConfig.js +3 -3
- package/dist/script/TsConfig.js.map +1 -1
- package/dist/script/push.d.ts +117 -77
- package/dist/script/push.js +151 -170
- package/dist/script/push.js.map +1 -1
- package/dist/session/SessionManager.js.map +1 -1
- package/dist/testing/FakeGateway.d.ts +280 -0
- package/dist/testing/FakeGateway.js +627 -0
- package/dist/testing/FakeGateway.js.map +1 -0
- package/dist/testing/MockFileSystem.js.map +1 -1
- package/dist/types.d.ts +534 -0
- package/dist/update/UpdateService.js.map +1 -1
- package/package.json +8 -7
- package/dist/script/ScriptTranspiler.d.ts +0 -183
- package/dist/script/ScriptTranspiler.js +0 -425
- package/dist/script/ScriptTranspiler.js.map +0 -1
- package/dist/script/TsLibResolver.d.ts +0 -60
- package/dist/script/TsLibResolver.js +0 -134
- package/dist/script/TsLibResolver.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MockFileSystem.js","sourceRoot":"","sources":["../../src/testing/MockFileSystem.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"MockFileSystem.js","sourceRoot":"","sources":["../../src/testing/MockFileSystem.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,IAAI,iCAAa;AAC7B,sCAAmC;AAGnC;;;GAGG;AACH;IACU,KAAK,GAAG,IAAI,GAAG,EAA8B,CAAC;IAC9C,KAAK,GAAG,IAAI,GAAG,EAA4B,CAAC;IAEpD;;;;;;;;;;;OAWG;IACK,GAAG,CAAC,GAAW;QACrB,OAAO,eAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IACrD,CAAC;IAED,qEAAqE;IAErE,WAAW,CAAC,GAAW,EAAE,OAA4B;QACnD,MAAM,MAAM,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,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K,GAAG,QAAQ,EAAE,CAAC;YACxB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;YACpD,MAAM,SAAS,GAAG,eAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;YAEhD,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC;gBACxC,OAAO,SAAS,CAAC;YACnB,CAAC;YAED,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAC7C,IAAI,UAAU,KAAK,WAAW,EAAE,CAAC;gBAC/B,MAAM;YACR,CAAC;YAED,WAAW,GAAG,UAAU,CAAC;YACzB,KAAK,EAAE,CAAC;QACV,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED,oBAAoB,CAAC,MAAc;QACjC,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;YACtB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
package/dist/types.d.ts
CHANGED
|
@@ -590,4 +590,538 @@ export type GqlParentNameResp = {
|
|
|
590
590
|
}[];
|
|
591
591
|
};
|
|
592
592
|
};
|
|
593
|
+
/**
|
|
594
|
+
* The `error` codes the gateway puts in an error body, per the b6p gateway contract. A body may
|
|
595
|
+
* carry a code outside this list; {@link Err.GatewayError.code} keeps whatever arrived.
|
|
596
|
+
* @lastreviewed null
|
|
597
|
+
*/
|
|
598
|
+
export type GatewayErrorCode = "token-missing" | "token-invalid" | "scope-missing" | "not-permitted" | "not-found" | "non-fast-forward" | "too-large" | "forge-unavailable" | "scope-escalation" | "alias-taken" | "invalid-request" | "token-limit" | "registry-unavailable";
|
|
599
|
+
/**
|
|
600
|
+
* The JSON body of a gateway error response. On git routes the body is best-effort, so every
|
|
601
|
+
* member may be absent.
|
|
602
|
+
* @lastreviewed null
|
|
603
|
+
*/
|
|
604
|
+
export interface GatewayErrorBody {
|
|
605
|
+
/**
|
|
606
|
+
* One of {@link GatewayErrorCode}, or an unknown code.
|
|
607
|
+
* @lastreviewed null
|
|
608
|
+
*/
|
|
609
|
+
error?: string;
|
|
610
|
+
/**
|
|
611
|
+
* What happened, in the gateway's words.
|
|
612
|
+
* @lastreviewed null
|
|
613
|
+
*/
|
|
614
|
+
message?: string;
|
|
615
|
+
/**
|
|
616
|
+
* The scope the token lacks, present with `scope-missing`; or the scope refused, present with the
|
|
617
|
+
* `403 not-permitted` reason `rewrite-not-permitted` (`kb:rewrite`).
|
|
618
|
+
* @lastreviewed null
|
|
619
|
+
*/
|
|
620
|
+
scope?: string;
|
|
621
|
+
/**
|
|
622
|
+
* The cap the request ran into, when the gateway states it (`token-limit` carries the maximum
|
|
623
|
+
* number of live tokens). Absent otherwise.
|
|
624
|
+
* @lastreviewed null
|
|
625
|
+
*/
|
|
626
|
+
limit?: number;
|
|
627
|
+
/**
|
|
628
|
+
* Why a `403 not-permitted` was refused, when the gateway says: `expiry-exceeds-presenting` (a
|
|
629
|
+
* mint would outlive the presenting token; see {@link presentingExpiresAt}) or
|
|
630
|
+
* `restricted-mints-disabled` (tokens beyond `mcp` cannot be minted yet) or `rewrite-not-permitted`
|
|
631
|
+
* (this account may not hold `kb:rewrite`; see {@link scope}). More values may come. An unknown reason
|
|
632
|
+
* or an off-contract refusal from web-global arrives as `503 registry-unavailable`, never as `400`.
|
|
633
|
+
* @lastreviewed null
|
|
634
|
+
*/
|
|
635
|
+
reason?: string;
|
|
636
|
+
/**
|
|
637
|
+
* With reason `expiry-exceeds-presenting`: when the presenting token expires, ISO 8601.
|
|
638
|
+
* @lastreviewed null
|
|
639
|
+
*/
|
|
640
|
+
presentingExpiresAt?: string;
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* How one listed knowledge base was matched against web's record.
|
|
644
|
+
* - `ok`: the forge repository and web's record agree (every global row is `ok`).
|
|
645
|
+
* - `branch-mismatch`: `liveBranch` is the forge's default branch, which differs from the tenant's setting.
|
|
646
|
+
* - `repo-only`: a forge repository with no web record; the title is the name.
|
|
647
|
+
* - `row-only`: a web record whose forge repository does not exist yet. `gitUrl` is given but a clone answers
|
|
648
|
+
* 404, and `canPush` is false.
|
|
649
|
+
* - `unconfirmed`: the tenant was asked and did not answer; details may be stale.
|
|
650
|
+
* - `undescribed`: no tenant was selected, so web was not asked; the title is the name.
|
|
651
|
+
* - `unknown`: a status newer than this version of core; the server's value is in `rawStatus`.
|
|
652
|
+
* @lastreviewed null
|
|
653
|
+
*/
|
|
654
|
+
export type GatewayKnowledgeBaseStatus = "ok" | "branch-mismatch" | "repo-only" | "row-only" | "unconfirmed" | "undescribed" | "unknown";
|
|
655
|
+
/**
|
|
656
|
+
* One knowledge base the caller may read, as `GET /api/v1/knowledge-bases` lists it.
|
|
657
|
+
* @lastreviewed null
|
|
658
|
+
*/
|
|
659
|
+
export interface GatewayKnowledgeBase {
|
|
660
|
+
/**
|
|
661
|
+
* The tenant's record id (a uuid) when web knows the knowledge base; `null` when there is no record
|
|
662
|
+
* (`repo-only`, `unconfirmed`, `undescribed`). A global row carries web-global's id.
|
|
663
|
+
* @lastreviewed null
|
|
664
|
+
*/
|
|
665
|
+
id: string | null;
|
|
666
|
+
/**
|
|
667
|
+
* How the gateway matched the forge repository with web's record. Every other field of the row keeps
|
|
668
|
+
* its guarantee under every status. See {@link GatewayKnowledgeBaseStatus}.
|
|
669
|
+
* @lastreviewed null
|
|
670
|
+
*/
|
|
671
|
+
status: GatewayKnowledgeBaseStatus;
|
|
672
|
+
/**
|
|
673
|
+
* The status exactly as the server sent it, present only when `status` is `"unknown"` (a value this
|
|
674
|
+
* version of core does not know).
|
|
675
|
+
* @lastreviewed null
|
|
676
|
+
*/
|
|
677
|
+
rawStatus?: string;
|
|
678
|
+
/**
|
|
679
|
+
* The CLI address: `global/<name>` or `tenant/<U…>/<name>`.
|
|
680
|
+
* @lastreviewed null
|
|
681
|
+
*/
|
|
682
|
+
ref: string;
|
|
683
|
+
scope: "global" | "tenant";
|
|
684
|
+
/**
|
|
685
|
+
* The tenant key (`U<seqnum>`) for a tenant KB, `null` for a global one.
|
|
686
|
+
* @lastreviewed null
|
|
687
|
+
*/
|
|
688
|
+
tenant: string | null;
|
|
689
|
+
name: string;
|
|
690
|
+
/**
|
|
691
|
+
* Falls back to the name when the tenant side has no title.
|
|
692
|
+
* @lastreviewed null
|
|
693
|
+
*/
|
|
694
|
+
title: string;
|
|
695
|
+
liveBranch: string;
|
|
696
|
+
/**
|
|
697
|
+
* Whether the caller may push to this knowledge base.
|
|
698
|
+
* @lastreviewed null
|
|
699
|
+
*/
|
|
700
|
+
canPush: boolean;
|
|
701
|
+
/**
|
|
702
|
+
* Absolute smart-HTTP URL. The server owns the layout; the client never builds one.
|
|
703
|
+
* @lastreviewed null
|
|
704
|
+
*/
|
|
705
|
+
gitUrl: string;
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Body of `GET /api/v1/knowledge-bases`.
|
|
709
|
+
* @lastreviewed null
|
|
710
|
+
*/
|
|
711
|
+
export interface GatewayKnowledgeBaseList {
|
|
712
|
+
knowledgeBases: GatewayKnowledgeBase[];
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* One marketplace repo, as `GET /api/v1/registry/repos` lists it.
|
|
716
|
+
* @lastreviewed null
|
|
717
|
+
*/
|
|
718
|
+
export interface GatewayMarketplaceRepo {
|
|
719
|
+
name: string;
|
|
720
|
+
description: string;
|
|
721
|
+
defaultBranch: string;
|
|
722
|
+
/**
|
|
723
|
+
* The repo's tags in the server's order, which is SemVer 2.0 precedence. The server keeps only the
|
|
724
|
+
* newest 1_000 when a repo has more. The client passes the list through as received: it does not
|
|
725
|
+
* re-sort or truncate it.
|
|
726
|
+
* @lastreviewed null
|
|
727
|
+
*/
|
|
728
|
+
tags: string[];
|
|
729
|
+
/**
|
|
730
|
+
* Absolute smart-HTTP URL. The server owns the layout; the client never builds one.
|
|
731
|
+
* @lastreviewed null
|
|
732
|
+
*/
|
|
733
|
+
gitUrl: string;
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* Body of `GET /api/v1/registry/repos`.
|
|
737
|
+
* @lastreviewed null
|
|
738
|
+
*/
|
|
739
|
+
export interface GatewayMarketplaceRepoList {
|
|
740
|
+
repos: GatewayMarketplaceRepo[];
|
|
741
|
+
}
|
|
742
|
+
/**
|
|
743
|
+
* One of the caller's own access tokens, as `GET /api/v1/tokens` lists it. The secret is never
|
|
744
|
+
* listed.
|
|
745
|
+
* @lastreviewed null
|
|
746
|
+
*/
|
|
747
|
+
export interface GatewayTokenRecord {
|
|
748
|
+
id: string;
|
|
749
|
+
/**
|
|
750
|
+
* Unique among this user's tokens.
|
|
751
|
+
* @lastreviewed null
|
|
752
|
+
*/
|
|
753
|
+
alias: string;
|
|
754
|
+
scopes: string[];
|
|
755
|
+
/**
|
|
756
|
+
* ISO 8601, or `null` for a token minted before the gateway recorded creation times.
|
|
757
|
+
* @lastreviewed null
|
|
758
|
+
*/
|
|
759
|
+
createdAt: string | null;
|
|
760
|
+
/**
|
|
761
|
+
* ISO 8601, or `null` for a token that never expires.
|
|
762
|
+
* @lastreviewed null
|
|
763
|
+
*/
|
|
764
|
+
expiresAt: string | null;
|
|
765
|
+
/**
|
|
766
|
+
* ISO 8601, or `null` when the token has not been used. Approximate: the gateway stamps it at
|
|
767
|
+
* most every 12 hours, so it can trail the real last use by that long.
|
|
768
|
+
* @lastreviewed null
|
|
769
|
+
*/
|
|
770
|
+
lastUsedAt: string | null;
|
|
771
|
+
/**
|
|
772
|
+
* Whether this is the token that made the request (the one b6p has stored).
|
|
773
|
+
* @lastreviewed null
|
|
774
|
+
*/
|
|
775
|
+
current: boolean;
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* Body of `GET /api/v1/tokens`.
|
|
779
|
+
* @lastreviewed null
|
|
780
|
+
*/
|
|
781
|
+
export interface GatewayTokenList {
|
|
782
|
+
tokens: GatewayTokenRecord[];
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* A listed token, as `core.gateway.tokens.list()` returns it. The gateway lists expired tokens too;
|
|
786
|
+
* {@link expired} tells them apart.
|
|
787
|
+
* @lastreviewed null
|
|
788
|
+
*/
|
|
789
|
+
export interface GatewayTokenSummary extends GatewayTokenRecord {
|
|
790
|
+
/**
|
|
791
|
+
* `true` when {@link GatewayTokenRecord.expiresAt} is in the past by this machine's clock at the
|
|
792
|
+
* time of the listing. Derived here, not sent by the gateway.
|
|
793
|
+
* @lastreviewed null
|
|
794
|
+
*/
|
|
795
|
+
expired: boolean;
|
|
796
|
+
/**
|
|
797
|
+
* `true` when {@link GatewayTokenRecord.expiresAt} is `null`.
|
|
798
|
+
* @lastreviewed null
|
|
799
|
+
*/
|
|
800
|
+
neverExpires: boolean;
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* What `core.gateway.tokens.create()` mints.
|
|
804
|
+
* @lastreviewed null
|
|
805
|
+
*/
|
|
806
|
+
export interface GatewayTokenCreateRequest {
|
|
807
|
+
/**
|
|
808
|
+
* Unique among this user's tokens.
|
|
809
|
+
* @lastreviewed null
|
|
810
|
+
*/
|
|
811
|
+
alias: string;
|
|
812
|
+
/**
|
|
813
|
+
* Must be a subset of the presenting token's scopes, or the gateway refuses with `scope-escalation`.
|
|
814
|
+
* @lastreviewed null
|
|
815
|
+
*/
|
|
816
|
+
scopes: readonly string[];
|
|
817
|
+
/**
|
|
818
|
+
* ISO 8601 expiry, sent as given. `null` mints a token that never expires. Left out, the token is
|
|
819
|
+
* minted for 90 days, or until the presenting token expires if that comes first
|
|
820
|
+
* ({@link GatewayCreatedToken.expiryCapped} says when it did): the gateway refuses a token that
|
|
821
|
+
* would outlive the one making the request.
|
|
822
|
+
* @lastreviewed null
|
|
823
|
+
*/
|
|
824
|
+
expiresAt?: string | null;
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* Set on a {@link GatewayCreatedToken} when no expiry was asked for and the default 90 days would
|
|
828
|
+
* have outlived the presenting token.
|
|
829
|
+
* @lastreviewed null
|
|
830
|
+
*/
|
|
831
|
+
export interface GatewayExpiryCap {
|
|
832
|
+
/**
|
|
833
|
+
* The expiry the token was minted with: the presenting token's own, ISO 8601.
|
|
834
|
+
* @lastreviewed null
|
|
835
|
+
*/
|
|
836
|
+
cappedTo: string;
|
|
837
|
+
/**
|
|
838
|
+
* What would have applied without the cap.
|
|
839
|
+
* @lastreviewed null
|
|
840
|
+
*/
|
|
841
|
+
requested: "90d";
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* What `core.gateway.tokens.create()` returns: the minted token and whether its default expiry was
|
|
845
|
+
* shortened.
|
|
846
|
+
* @lastreviewed null
|
|
847
|
+
*/
|
|
848
|
+
export interface GatewayCreatedToken extends GatewayMintedToken {
|
|
849
|
+
/**
|
|
850
|
+
* Non-null only when the caller gave no expiry and it was capped at the presenting token's.
|
|
851
|
+
* @lastreviewed null
|
|
852
|
+
*/
|
|
853
|
+
expiryCapped: GatewayExpiryCap | null;
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Body of `201` from `POST /api/v1/tokens` and `POST /api/v1/tokens/{id}/rotate`. It carries the
|
|
857
|
+
* secret, which the gateway shows only this once.
|
|
858
|
+
* @lastreviewed null
|
|
859
|
+
*/
|
|
860
|
+
export interface GatewayMintedTokenBody {
|
|
861
|
+
id: string;
|
|
862
|
+
/**
|
|
863
|
+
* The `b6pt_…` secret. Not retrievable again.
|
|
864
|
+
* @lastreviewed null
|
|
865
|
+
*/
|
|
866
|
+
token: string;
|
|
867
|
+
alias: string;
|
|
868
|
+
scopes: string[];
|
|
869
|
+
/**
|
|
870
|
+
* ISO 8601, or `null` for a token that never expires.
|
|
871
|
+
* @lastreviewed null
|
|
872
|
+
*/
|
|
873
|
+
expiresAt: string | null;
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* A freshly minted token, secret included. Core never logs it; showing it is the consumer's job.
|
|
877
|
+
* @lastreviewed null
|
|
878
|
+
*/
|
|
879
|
+
export interface GatewayMintedToken extends GatewayMintedTokenBody {
|
|
880
|
+
/**
|
|
881
|
+
* `true` when {@link GatewayMintedTokenBody.expiresAt} is `null`.
|
|
882
|
+
* @lastreviewed null
|
|
883
|
+
*/
|
|
884
|
+
neverExpires: boolean;
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* Result of `core.gateway.tokens.revoke()`.
|
|
888
|
+
* @lastreviewed null
|
|
889
|
+
*/
|
|
890
|
+
export interface GatewayTokenRevokeResult {
|
|
891
|
+
id: string;
|
|
892
|
+
alias: string;
|
|
893
|
+
/**
|
|
894
|
+
* `true` when the revoked token was the one b6p has stored. Core leaves the stored (now dead)
|
|
895
|
+
* token in place; the consumer decides what to do about it.
|
|
896
|
+
* @lastreviewed null
|
|
897
|
+
*/
|
|
898
|
+
revokedCurrent: boolean;
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* Result of `core.gateway.tokens.rotate()`.
|
|
902
|
+
* @lastreviewed null
|
|
903
|
+
*/
|
|
904
|
+
export interface GatewayTokenRotateResult {
|
|
905
|
+
/**
|
|
906
|
+
* The token that was rotated, now revoked.
|
|
907
|
+
* @lastreviewed null
|
|
908
|
+
*/
|
|
909
|
+
replaced: {
|
|
910
|
+
id: string;
|
|
911
|
+
alias: string;
|
|
912
|
+
};
|
|
913
|
+
/**
|
|
914
|
+
* Its replacement: same alias, scopes and absolute end date (`expiresAt`), with a new secret.
|
|
915
|
+
* @lastreviewed null
|
|
916
|
+
*/
|
|
917
|
+
token: GatewayMintedToken;
|
|
918
|
+
/**
|
|
919
|
+
* `true` when the rotated token was the one b6p has stored; the replacement is then stored in
|
|
920
|
+
* its place. (When storing fails, `rotate()` throws `Err.GatewayTokenStoreError` instead.)
|
|
921
|
+
* @lastreviewed null
|
|
922
|
+
*/
|
|
923
|
+
rotatedCurrent: boolean;
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* The recipes `core.schema.recipe()` can run.
|
|
927
|
+
* @lastreviewed null
|
|
928
|
+
*/
|
|
929
|
+
export type SchemaRecipeName = "LINK_VIEW_GRANTS";
|
|
930
|
+
/**
|
|
931
|
+
* How much a recipe finding matters: `ERROR` is something the recipe needed and could not state (clear it before
|
|
932
|
+
* relying on the manifest); `WARNING` is something for a person to decide.
|
|
933
|
+
* @lastreviewed null
|
|
934
|
+
*/
|
|
935
|
+
export type SchemaRecipeFindingSeverity = "ERROR" | "WARNING";
|
|
936
|
+
/**
|
|
937
|
+
* What a recipe met, typed.
|
|
938
|
+
* @lastreviewed null
|
|
939
|
+
*/
|
|
940
|
+
export type SchemaRecipeFindingCode = "UNNAMED_FORM" | "NAME_COLLISION" | "CONFLICTING_GRANTS" | "UNPLACED_GRANTS" | "RELATIVE_WRITER" | "DATA_UNIT_AWARE_WRITER" | "DYNAMIC_WRITER_WITHOUT_QUERY" | "VIEW_GROUP_NAMED_BY_KEY" | "UNIT_SCOPED_PLATFORM_WRITER" | "EXPLICIT_DENY" | "USER_WOULD_BE_LOWERED" | "GENERATOR_NOTE";
|
|
941
|
+
/**
|
|
942
|
+
* One thing a recipe met.
|
|
943
|
+
* @lastreviewed null
|
|
944
|
+
*/
|
|
945
|
+
export interface SchemaRecipeFinding {
|
|
946
|
+
/** What, typed. @lastreviewed null */
|
|
947
|
+
code: SchemaRecipeFindingCode;
|
|
948
|
+
/** How much it matters. @lastreviewed null */
|
|
949
|
+
severity: SchemaRecipeFindingSeverity;
|
|
950
|
+
/** The user or group it concerns, when one. @lastreviewed null */
|
|
951
|
+
subjectId: string | null;
|
|
952
|
+
/** The field it concerns (a link field, or a label field), when one. @lastreviewed null */
|
|
953
|
+
fieldId: string | null;
|
|
954
|
+
/** The form or record type it concerns, when one. @lastreviewed null */
|
|
955
|
+
formId: string | null;
|
|
956
|
+
/** What, in a sentence. @lastreviewed null */
|
|
957
|
+
detail: string;
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* What `core.schema.recipe()` answers: the recipe's manifest and what it met.
|
|
961
|
+
* @lastreviewed null
|
|
962
|
+
*/
|
|
963
|
+
export interface SchemaRecipeResult {
|
|
964
|
+
/** The recipe's manifest, as a YAML stream, for `test`. @lastreviewed null */
|
|
965
|
+
manifest: string;
|
|
966
|
+
/** What the recipe met, ordered by code, then form, field and subject. @lastreviewed null */
|
|
967
|
+
findings: SchemaRecipeFinding[];
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* The gate's stages, in the order they run (the server's `SchemaGateStage`).
|
|
971
|
+
* @lastreviewed null
|
|
972
|
+
*/
|
|
973
|
+
export type SchemaGateStage = "SHAPE" | "WELL_FORMEDNESS" | "RESOLUTION" | "AUTHORITY" | "POLICY" | "CONVERGENCE";
|
|
974
|
+
/**
|
|
975
|
+
* Why a stage refused, an element is a CONFLICT, or an apply did not go through (the server's `SchemaRefusalCode`).
|
|
976
|
+
* @lastreviewed null
|
|
977
|
+
*/
|
|
978
|
+
export type SchemaRefusalCode = "SHAPE" | "NOT_WELL_FORMED" | "DUPLICATE_MATCHER" | "AMBIGUOUS_MATCH" | "OTHER_TENANT_KEY" | "PORTABLE_IN_SOURCE_TENANT" | "UNRESOLVED_REFERENCE" | "NAME_TAKEN" | "ATTACHMENT_MISMATCH" | "CONFLICTING_GRANTS" | "NOT_YET_WRITABLE" | "FROZEN" | "NOT_PERMITTED" | "PRIMARY_ADMIN" | "POLICY_REFUSED" | "NOT_CONVERGENT" | "LEVEL_NOT_IN_FAMILY" | "SYSTEM_SUBJECT_GRANT" | "RECIPROCAL_MISMATCH" | "CLOSURE_COUNT_MISMATCH" | "CRITERION_INVALID" | "KEY_INVALID" | "STALE" | "HISTORY_UNAVAILABLE";
|
|
979
|
+
/**
|
|
980
|
+
* What apply would do to one element.
|
|
981
|
+
* @lastreviewed null
|
|
982
|
+
*/
|
|
983
|
+
export type SchemaActionKind = "CREATE" | "ADOPT" | "UPDATE" | "NO_CHANGE" | "CONFLICT";
|
|
984
|
+
/**
|
|
985
|
+
* Which kind of difference an update writes: a property's `CHANGE`, or an ordered container's `REORDER`.
|
|
986
|
+
* @lastreviewed null
|
|
987
|
+
*/
|
|
988
|
+
export type SchemaDeltaKind = "CHANGE" | "REORDER";
|
|
989
|
+
/**
|
|
990
|
+
* One difference an update would write.
|
|
991
|
+
* @lastreviewed null
|
|
992
|
+
*/
|
|
993
|
+
export interface SchemaDelta {
|
|
994
|
+
/** The property, or the ordered container, within the element: dotted component names. @lastreviewed null */
|
|
995
|
+
path: string;
|
|
996
|
+
/** A property's change, or a container's reorder. @lastreviewed null */
|
|
997
|
+
kind: SchemaDeltaKind;
|
|
998
|
+
/** For a CHANGE, the value now as JSON with sorted keys; null when it has none, and for a REORDER. @lastreviewed null */
|
|
999
|
+
from: string | null;
|
|
1000
|
+
/** For a CHANGE, the value wanted as JSON with sorted keys; null when cleared or removed, and for a REORDER. @lastreviewed null */
|
|
1001
|
+
to: string | null;
|
|
1002
|
+
/** For a REORDER, each listed element's live position, in the manifest's order; empty for a CHANGE. @lastreviewed null */
|
|
1003
|
+
livePositions: number[];
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* One reason an element is a CONFLICT.
|
|
1007
|
+
* @lastreviewed null
|
|
1008
|
+
*/
|
|
1009
|
+
export interface SchemaConflictReason {
|
|
1010
|
+
/** Why, typed. @lastreviewed null */
|
|
1011
|
+
code: SchemaRefusalCode;
|
|
1012
|
+
/** What is wrong, in a sentence; it names no object by id. @lastreviewed null */
|
|
1013
|
+
detail: string;
|
|
1014
|
+
}
|
|
1015
|
+
/**
|
|
1016
|
+
* One action of a plan.
|
|
1017
|
+
* @lastreviewed null
|
|
1018
|
+
*/
|
|
1019
|
+
export interface SchemaPlannedAction {
|
|
1020
|
+
/** The element: its document's kind and name, then the containers leading to it. @lastreviewed null */
|
|
1021
|
+
element: string;
|
|
1022
|
+
/** What apply would do to it. @lastreviewed null */
|
|
1023
|
+
action: SchemaActionKind;
|
|
1024
|
+
/** The id of the object it lands on, when there is one with an id of its own. @lastreviewed null */
|
|
1025
|
+
objectId: string | null;
|
|
1026
|
+
/** For a CREATE, the spec it would create, as JSON with sorted keys; null otherwise. @lastreviewed null */
|
|
1027
|
+
spec: string | null;
|
|
1028
|
+
/** For an UPDATE or ADOPT, every difference it would write, in order; empty otherwise. @lastreviewed null */
|
|
1029
|
+
deltas: SchemaDelta[];
|
|
1030
|
+
/** For a CONFLICT, every reason it cannot be applied; empty otherwise. @lastreviewed null */
|
|
1031
|
+
reasons: SchemaConflictReason[];
|
|
1032
|
+
}
|
|
1033
|
+
/**
|
|
1034
|
+
* An object a matcher caught.
|
|
1035
|
+
* @lastreviewed null
|
|
1036
|
+
*/
|
|
1037
|
+
export interface SchemaMatchHit {
|
|
1038
|
+
/** Its id, when it has one of its own. @lastreviewed null */
|
|
1039
|
+
objectId: string | null;
|
|
1040
|
+
/** The object as read, its spec as JSON with sorted keys. @lastreviewed null */
|
|
1041
|
+
live: string;
|
|
1042
|
+
}
|
|
1043
|
+
/**
|
|
1044
|
+
* A failure that left no plan: stage 1, 2 or 3 refused the manifest outright.
|
|
1045
|
+
* @lastreviewed null
|
|
1046
|
+
*/
|
|
1047
|
+
export interface SchemaRefusal {
|
|
1048
|
+
/** The stage that refused. @lastreviewed null */
|
|
1049
|
+
stage: SchemaGateStage;
|
|
1050
|
+
/** Why, typed. @lastreviewed null */
|
|
1051
|
+
code: SchemaRefusalCode;
|
|
1052
|
+
/** Where in the manifest: 'the manifest', 'document N' (the header is 0), or an element. @lastreviewed null */
|
|
1053
|
+
locus: string;
|
|
1054
|
+
/** What is wrong, in a sentence. @lastreviewed null */
|
|
1055
|
+
detail: string;
|
|
1056
|
+
/** For AMBIGUOUS_MATCH, every object the matcher caught; empty otherwise. @lastreviewed null */
|
|
1057
|
+
hits: SchemaMatchHit[];
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Why an apply did not go through, or why `test` was refused before reading the manifest.
|
|
1061
|
+
* @lastreviewed null
|
|
1062
|
+
*/
|
|
1063
|
+
export interface SchemaApplyRefusal {
|
|
1064
|
+
/** Why, typed. @lastreviewed null */
|
|
1065
|
+
code: SchemaRefusalCode;
|
|
1066
|
+
/** Where in the manifest, when one place is to blame; null for KEY_INVALID, STALE and whole-manifest refusals. @lastreviewed null */
|
|
1067
|
+
element: string | null;
|
|
1068
|
+
/** Why, in a sentence; it names no object by id. @lastreviewed null */
|
|
1069
|
+
detail: string;
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Something a plan met that holds nothing up but should be known.
|
|
1073
|
+
* @lastreviewed null
|
|
1074
|
+
*/
|
|
1075
|
+
export interface SchemaWarning {
|
|
1076
|
+
/** The element it concerns, as in {@link SchemaPlannedAction}. @lastreviewed null */
|
|
1077
|
+
element: string;
|
|
1078
|
+
/** What was met, in a sentence; it names no object by id. @lastreviewed null */
|
|
1079
|
+
detail: string;
|
|
1080
|
+
}
|
|
1081
|
+
/**
|
|
1082
|
+
* What `core.schema.test()` answers.
|
|
1083
|
+
* @lastreviewed null
|
|
1084
|
+
*/
|
|
1085
|
+
export interface SchemaTestResult {
|
|
1086
|
+
/** Whether every gate stage passed. Only then is there a key. @lastreviewed null */
|
|
1087
|
+
passed: boolean;
|
|
1088
|
+
/** The first stage that refused something, or null when the gate passed. @lastreviewed null */
|
|
1089
|
+
failedAt: SchemaGateStage | null;
|
|
1090
|
+
/** The plan, in manifest order; empty when stage 1, 2 or 3 refused the manifest outright. @lastreviewed null */
|
|
1091
|
+
actions: SchemaPlannedAction[];
|
|
1092
|
+
/** Why stage 1, 2 or 3 refused the manifest outright; empty when there is a plan. @lastreviewed null */
|
|
1093
|
+
refusals: SchemaRefusal[];
|
|
1094
|
+
/** The key that authorizes exactly this plan, present only when passed; valid ten minutes, once. @lastreviewed null */
|
|
1095
|
+
schemaMutationKey: string | null;
|
|
1096
|
+
/** When the test was refused before the manifest was read (HISTORY_UNAVAILABLE): why; null otherwise. @lastreviewed null */
|
|
1097
|
+
refusal: SchemaApplyRefusal | null;
|
|
1098
|
+
/** What a person should know of the plan that holds nothing up. @lastreviewed null */
|
|
1099
|
+
warnings: SchemaWarning[];
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* A document's object, once applied.
|
|
1103
|
+
* @lastreviewed null
|
|
1104
|
+
*/
|
|
1105
|
+
export interface SchemaAppliedObject {
|
|
1106
|
+
/** The document: its kind and name. @lastreviewed null */
|
|
1107
|
+
element: string;
|
|
1108
|
+
/** The object's id. @lastreviewed null */
|
|
1109
|
+
objectId: string;
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* What `core.schema.apply()` answers.
|
|
1113
|
+
* @lastreviewed null
|
|
1114
|
+
*/
|
|
1115
|
+
export interface SchemaApplyResult {
|
|
1116
|
+
/** Whether the plan was applied and committed. Anything else wrote nothing. @lastreviewed null */
|
|
1117
|
+
applied: boolean;
|
|
1118
|
+
/** When applied, each document's object in manifest order; empty otherwise. @lastreviewed null */
|
|
1119
|
+
objects: SchemaAppliedObject[];
|
|
1120
|
+
/** When not applied, why: the first refusal. Null when applied. @lastreviewed null */
|
|
1121
|
+
refusal: SchemaApplyRefusal | null;
|
|
1122
|
+
/** When the gate, planned again, no longer passed: the stage that refused. Null otherwise. @lastreviewed null */
|
|
1123
|
+
failedAt: SchemaGateStage | null;
|
|
1124
|
+
/** When applied, the commit in the schema's history repository that records this apply. Null otherwise. @lastreviewed null */
|
|
1125
|
+
historyCommit: string | null;
|
|
1126
|
+
}
|
|
593
1127
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateService.js","sourceRoot":"","sources":["../../src/update/UpdateService.ts"],"names":[],"mappings":";;;AAAA,4CAAgE;AAChE,gDAA6C;AAI7C;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"UpdateService.js","sourceRoot":"","sources":["../../src/update/UpdateService.ts"],"names":[],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C;QAChD,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC;QACpC,MAAM,UAAU,GAAG,aAAa,KAAK,cAAc,CAAC;QAEpD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,aAAa,sBAAsB,cAAc,EAAE,CAAC,CAAC;QAEzF,IAAI,UAAU,EAAE,CAAC;YACf,wBAAwB;YACxB,MAAM,IAAI,CAAC,iBAAiB,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC;QAC5D,CAAC;QAED,OAAO;YACL,cAAc;YACd,aAAa;YACb,UAAU;SACX,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluestep-systems/b6p-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Core (vscode-free) library for BlueStep B6P script management",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "git+https://github.com/Bluestep-Systems/b6p-core.git"
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
11
|
+
"node": ">=24"
|
|
12
12
|
},
|
|
13
13
|
"workspaces": [
|
|
14
14
|
"packages/*"
|
|
@@ -29,16 +29,17 @@
|
|
|
29
29
|
"clean": "rm -rf dist tsconfig.tsbuildinfo && npm run clean -w @bluestep-systems/b6p-core-bsjs-git",
|
|
30
30
|
"format": "prettier --write \"src/**/*.ts\" && npm run format -w @bluestep-systems/b6p-core-bsjs-git",
|
|
31
31
|
"format-check": "prettier --check \"src/**/*.ts\" && npm run format-check -w @bluestep-systems/b6p-core-bsjs-git",
|
|
32
|
-
"test": "npm run compile && npm test -w @bluestep-systems/b6p-core-bsjs-git && node test/B6PUri.test.js && node test/DownstairsPathParser.test.js && node test/
|
|
32
|
+
"test": "npm run compile && npm test -w @bluestep-systems/b6p-core-bsjs-git && node test/B6PUri.test.js && node test/DownstairsPathParser.test.js && node test/AuditIntegrity.test.js && node test/GetSetupUrl.test.js && node test/TsConfigBuildFolder.test.js && node test/JsdocLastReviewed.test.js && node test/PullDivergenceGuard.test.js && node test/ScriptMetaDataStore.test.js && node test/SharedFilePersistence.test.js && node test/OrgCacheReadiness.test.js && node test/BearerAuthProvider.test.js && node test/DestructivePrompts.test.js && node test/GitDraftSync.test.js && node test/ServerVersionFloor.test.js && node test/Gateway.test.js && node test/GatewayGit.test.js && node test/GatewayTokens.test.js && node test/GatewayMarketplace.test.js && node test/GatewayKb.test.js && node test/SchemaService.test.js",
|
|
33
33
|
"prepublishOnly": "npm run clean && npm run format-check && npm run check-types && npm run compile"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@bluestep-systems/b6p-core-bsjs-git": "0.
|
|
36
|
+
"@bluestep-systems/b6p-core-bsjs-git": "0.3.1",
|
|
37
37
|
"fast-xml-parser": "^5.10.1",
|
|
38
|
-
"
|
|
38
|
+
"isomorphic-git": "1.44.11"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/node": "^
|
|
42
|
-
"prettier": "^3.0.0"
|
|
41
|
+
"@types/node": "^24.19.2",
|
|
42
|
+
"prettier": "^3.0.0",
|
|
43
|
+
"typescript": "7.0.2"
|
|
43
44
|
}
|
|
44
45
|
}
|