@hardfin/cli 0.1.1-dev.48 → 0.1.1-dev.50

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 CHANGED
@@ -480,6 +480,10 @@ Nothing secret is printed. An API key and a refresh token are each reported as a
480
480
  `sha256:` fingerprint, which identifies a credential across two machines without disclosing
481
481
  it.
482
482
 
483
+ `authorizationServer.scopesOffered` is every scope the server can grant to anyone. The scopes
484
+ this sign in was granted are `api.accessTokenScopes`, and `api.identity.scopes` is what the
485
+ API says the credential holds.
486
+
483
487
  `api.authenticated` is `true` only when the API answered who the credential is. A 401 or a
484
488
  403 makes it `false`, and `hardfin status` then exits with code 4. It is `null` when the API
485
489
  could not be asked, because no answer says nothing about the credential.
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6c054d7b-a0a8-526c-90d7-5bbec53675dd")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b22d6cfd-459f-55d1-b9c1-f2764f2835fd")}catch(e){}}();
4
4
  import module from "node:module";
5
5
  //#region src/cli.ts
6
6
  module.enableCompileCache?.();
@@ -14,7 +14,7 @@ process.on("unhandledRejection", (error) => void toCrash(error));
14
14
  try {
15
15
  const answer = await toQuickAnswer(process.argv.slice(2));
16
16
  if (answer === void 0) {
17
- const { toCli, toParseExitCode, wasReportAttempted } = await import("./program-Da7dZSnW.js");
17
+ const { toCli, toParseExitCode, wasReportAttempted } = await import("./program-DEpMam6k.js");
18
18
  try {
19
19
  await toCli().parseAsync(process.argv);
20
20
  } catch (error) {
@@ -33,7 +33,7 @@ async function toCrash(error) {
33
33
  isCrashing = true;
34
34
  const isJSON = process.argv.includes("--json") || !process.stdout.isTTY;
35
35
  try {
36
- const { toReported, writeCrash } = await import("./program-Da7dZSnW.js");
36
+ const { toReported, writeCrash } = await import("./program-DEpMam6k.js");
37
37
  writeCrash(error, isJSON);
38
38
  await toReported(error, isJSON, void 0, "fatal");
39
39
  } catch {
@@ -54,4 +54,4 @@ async function toQuickAnswer(args) {
54
54
  export {};
55
55
 
56
56
  //# sourceMappingURL=cli.js.map
57
- //# debugId=6c054d7b-a0a8-526c-90d7-5bbec53675dd
57
+ //# debugId=b22d6cfd-459f-55d1-b9c1-f2764f2835fd
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e0ad2183-1cb1-5831-b5d1-b96dcf795d93")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="eccc2389-9cce-5be1-b056-0acaea8354c6")}catch(e){}}();
4
4
  import { a as defineCommand, i as GLOBAL_FLAGS, r as ExitCode, t as toInvocation } from "./scrub-BZ0egWxC.js";
5
5
  import { n as toAnswer$1, r as toCompletion, t as PATH_VALUES } from "./completion-tree-DLC6ARLR.js";
6
6
  import { createRequire } from "node:module";
@@ -3456,8 +3456,8 @@ function toServerReport(metadata) {
3456
3456
  tokenEndpoint: metadata.token_endpoint,
3457
3457
  revocationEndpoint: metadata.revocation_endpoint ?? null,
3458
3458
  deviceEndpoint: metadata.device_authorization_endpoint ?? null,
3459
- grantTypes: metadata.grant_types_supported ?? [],
3460
- scopes: metadata.scopes_supported ?? []
3459
+ grantTypesOffered: metadata.grant_types_supported ?? [],
3460
+ scopesOffered: metadata.scopes_supported ?? []
3461
3461
  };
3462
3462
  }
3463
3463
  /** The statuses the API answers when it will not take the credential. */
@@ -6934,5 +6934,5 @@ async function toReported(error, isJSON, resolved, level = "error") {
6934
6934
  //#endregion
6935
6935
  export { toCli, toParseExitCode, toReported, wasReportAttempted, writeCrash };
6936
6936
 
6937
- //# sourceMappingURL=program-Da7dZSnW.js.map
6938
- //# debugId=e0ad2183-1cb1-5831-b5d1-b96dcf795d93
6937
+ //# sourceMappingURL=program-DEpMam6k.js.map
6938
+ //# debugId=eccc2389-9cce-5be1-b056-0acaea8354c6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hardfin/cli",
3
- "version": "0.1.1-dev.48",
3
+ "version": "0.1.1-dev.50",
4
4
  "description": "Command line interface for the Hardfin API",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Hardfin, Inc.",