@coffre/client 0.1.13 → 0.1.14

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.
@@ -18,6 +18,13 @@ type Api = {
18
18
  environment: string;
19
19
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
20
20
  }[];
21
+ instance: null | {
22
+ version: string;
23
+ migrations: {
24
+ applied: number;
25
+ known: string[];
26
+ };
27
+ };
21
28
  };
22
29
  };
23
30
  "GET /projects": {
@@ -529,6 +536,13 @@ type IdentityRow = {
529
536
  createdAt: string;
530
537
  lastSignInAt: string | null;
531
538
  };
539
+ type InstanceState = {
540
+ version: string;
541
+ migrations: {
542
+ applied: number;
543
+ known: string[];
544
+ };
545
+ };
532
546
  type Me = {
533
547
  principal: {
534
548
  type: "service" | "user";
@@ -544,6 +558,13 @@ type Me = {
544
558
  environment: string;
545
559
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
546
560
  }[];
561
+ instance: null | {
562
+ version: string;
563
+ migrations: {
564
+ applied: number;
565
+ known: string[];
566
+ };
567
+ };
547
568
  };
548
569
  type Member = {
549
570
  member: string;
@@ -716,6 +737,13 @@ declare function createClient(options: ClientOptions): {
716
737
  environment: string;
717
738
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
718
739
  }[];
740
+ instance: null | {
741
+ version: string;
742
+ migrations: {
743
+ applied: number;
744
+ known: string[];
745
+ };
746
+ };
719
747
  }>;
720
748
  projects: {
721
749
  /** With their environments. */
@@ -1097,4 +1125,4 @@ declare function planImport(coffre: CoffreClient, path: string, entries: readonl
1097
1125
  changes: Record<string, string>;
1098
1126
  }>;
1099
1127
  //#endregion
1100
- export { RemovedMember as C, SessionRow as D, ServiceTokenRow as E, SetResult as O, ProjectSummary as S, SecretVersion as T, DryRunResult as _, Params as a, Member as b, RouteOutput as c, planImport as d, AccessValue as f, DryRunOutcome as g, AuthInfo as h, ImportAction as i, Transport as l, AuditEntryView as m, CoffreClient as n, RouteInput as o, Api as p, CoffreError as r, RouteKey as s, ClientOptions as t, createClient as u, IdentityRow as v, SecretKey as w, OffboardingReport as x, Me as y };
1128
+ export { ProjectSummary as C, ServiceTokenRow as D, SecretVersion as E, SessionRow as O, OffboardingReport as S, SecretKey as T, DryRunResult as _, Params as a, Me as b, RouteOutput as c, planImport as d, AccessValue as f, DryRunOutcome as g, AuthInfo as h, ImportAction as i, SetResult as k, Transport as l, AuditEntryView as m, CoffreClient as n, RouteInput as o, Api as p, CoffreError as r, RouteKey as s, ClientOptions as t, createClient as u, IdentityRow as v, RemovedMember as w, Member as x, InstanceState as y };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { C as RemovedMember, D as SessionRow, E as ServiceTokenRow, O as SetResult, S as ProjectSummary, T as SecretVersion, _ as DryRunResult, a as Params, b as Member, c as RouteOutput, d as planImport, f as AccessValue, g as DryRunOutcome, h as AuthInfo, i as ImportAction, l as Transport, m as AuditEntryView, n as CoffreClient, o as RouteInput, p as Api, r as CoffreError, s as RouteKey, t as ClientOptions, u as createClient, v as IdentityRow, w as SecretKey, x as OffboardingReport, y as Me } from "./index-BOnwnquP.js";
2
- export { type AccessValue, type Api, type AuditEntryView, type AuthInfo, ClientOptions, CoffreClient, CoffreError, type DryRunOutcome, type DryRunResult, type IdentityRow, ImportAction, type Me, type Member, type OffboardingReport, Params, type ProjectSummary, type RemovedMember, RouteInput, RouteKey, RouteOutput, type SecretKey, type SecretVersion, type ServiceTokenRow, type SessionRow, type SetResult, Transport, createClient, planImport };
1
+ import { C as ProjectSummary, D as ServiceTokenRow, E as SecretVersion, O as SessionRow, S as OffboardingReport, T as SecretKey, _ as DryRunResult, a as Params, b as Me, c as RouteOutput, d as planImport, f as AccessValue, g as DryRunOutcome, h as AuthInfo, i as ImportAction, k as SetResult, l as Transport, m as AuditEntryView, n as CoffreClient, o as RouteInput, p as Api, r as CoffreError, s as RouteKey, t as ClientOptions, u as createClient, v as IdentityRow, w as RemovedMember, x as Member, y as InstanceState } from "./index-DT6UT5Jx.js";
2
+ export { type AccessValue, type Api, type AuditEntryView, type AuthInfo, ClientOptions, CoffreClient, CoffreError, type DryRunOutcome, type DryRunResult, type IdentityRow, ImportAction, type InstanceState, type Me, type Member, type OffboardingReport, Params, type ProjectSummary, type RemovedMember, RouteInput, RouteKey, RouteOutput, type SecretKey, type SecretVersion, type ServiceTokenRow, type SessionRow, type SetResult, Transport, createClient, planImport };
package/dist/routes.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Params, o as RouteInput, s as RouteKey } from "./index-BOnwnquP.js";
1
+ import { a as Params, o as RouteInput, s as RouteKey } from "./index-DT6UT5Jx.js";
2
2
  //#region src/routes.d.ts
3
3
  export type GetKey = Extract<RouteKey, `GET ${string}`>;
4
4
  /** Each GET route, with what to ask it. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coffre/client",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "The coffre API as typed function calls.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/api.ts CHANGED
@@ -21,6 +21,13 @@ export type Api = {
21
21
  environment: string;
22
22
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
23
23
  }[];
24
+ instance: null | {
25
+ version: string;
26
+ migrations: {
27
+ applied: number;
28
+ known: string[];
29
+ };
30
+ };
24
31
  };
25
32
  };
26
33
  "GET /projects": {
@@ -539,6 +546,14 @@ export type IdentityRow = {
539
546
  lastSignInAt: string | null;
540
547
  };
541
548
 
549
+ export type InstanceState = {
550
+ version: string;
551
+ migrations: {
552
+ applied: number;
553
+ known: string[];
554
+ };
555
+ };
556
+
542
557
  export type Me = {
543
558
  principal: {
544
559
  type: "service" | "user";
@@ -554,6 +569,13 @@ export type Me = {
554
569
  environment: string;
555
570
  permissions: ("audit.read" | "environment.manage" | "grant.manage" | "project.manage" | "secret.archive" | "secret.read" | "secret.write")[];
556
571
  }[];
572
+ instance: null | {
573
+ version: string;
574
+ migrations: {
575
+ applied: number;
576
+ known: string[];
577
+ };
578
+ };
557
579
  };
558
580
 
559
581
  export type Member = {
package/src/index.ts CHANGED
@@ -19,6 +19,7 @@ export type {
19
19
  DryRunOutcome,
20
20
  DryRunResult,
21
21
  IdentityRow,
22
+ InstanceState,
22
23
  Me,
23
24
  Member,
24
25
  OffboardingReport,