@coffre/client 0.4.4 → 0.4.6

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.
@@ -901,6 +901,8 @@ type Api = {
901
901
  label: string;
902
902
  value: string;
903
903
  kind?: "mono" | "time";
904
+ note?: string;
905
+ warn?: true;
904
906
  }[];
905
907
  asks: null | {
906
908
  value: {
@@ -909,7 +911,10 @@ type Api = {
909
911
  };
910
912
  };
911
913
  kind: "change" | "reveal";
914
+ reveals: boolean;
912
915
  digest: string;
916
+ basis: string | null;
917
+ ready: boolean;
913
918
  createdAt: string;
914
919
  expiresAt: string;
915
920
  outcome: null | {
@@ -926,6 +931,7 @@ type Api = {
926
931
  input: {
927
932
  approve: boolean;
928
933
  digest: string;
934
+ basis?: string | null;
929
935
  value?: string;
930
936
  };
931
937
  output: {
@@ -941,6 +947,8 @@ type Api = {
941
947
  label: string;
942
948
  value: string;
943
949
  kind?: "mono" | "time";
950
+ note?: string;
951
+ warn?: true;
944
952
  }[];
945
953
  };
946
954
  };
@@ -963,6 +971,8 @@ type ApprovalView = {
963
971
  label: string;
964
972
  value: string;
965
973
  kind?: "mono" | "time";
974
+ note?: string;
975
+ warn?: true;
966
976
  }[];
967
977
  asks: null | {
968
978
  value: {
@@ -971,7 +981,10 @@ type ApprovalView = {
971
981
  };
972
982
  };
973
983
  kind: "change" | "reveal";
984
+ reveals: boolean;
974
985
  digest: string;
986
+ basis: string | null;
987
+ ready: boolean;
975
988
  createdAt: string;
976
989
  expiresAt: string;
977
990
  outcome: null | {
@@ -1111,6 +1124,8 @@ type Decision = {
1111
1124
  label: string;
1112
1125
  value: string;
1113
1126
  kind?: "mono" | "time";
1127
+ note?: string;
1128
+ warn?: true;
1114
1129
  }[];
1115
1130
  };
1116
1131
  type DeletionResult = {
@@ -2086,6 +2101,8 @@ declare function createClient(options: ClientOptions): {
2086
2101
  label: string;
2087
2102
  value: string;
2088
2103
  kind?: "mono" | "time";
2104
+ note?: string;
2105
+ warn?: true;
2089
2106
  }[];
2090
2107
  asks: null | {
2091
2108
  value: {
@@ -2094,7 +2111,10 @@ declare function createClient(options: ClientOptions): {
2094
2111
  };
2095
2112
  };
2096
2113
  kind: "change" | "reveal";
2114
+ reveals: boolean;
2097
2115
  digest: string;
2116
+ basis: string | null;
2117
+ ready: boolean;
2098
2118
  createdAt: string;
2099
2119
  expiresAt: string;
2100
2120
  outcome: null | {
@@ -2119,6 +2139,8 @@ declare function createClient(options: ClientOptions): {
2119
2139
  label: string;
2120
2140
  value: string;
2121
2141
  kind?: "mono" | "time";
2142
+ note?: string;
2143
+ warn?: true;
2122
2144
  }[];
2123
2145
  }>;
2124
2146
  };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as DeletionResult, B as OffboardingReport, C as AuthInfo, D as ConnectedApp, E as BindingView, F as InheritedGrant, G as SecretVersion, H as ReferenceView, I as ListedReference, J as SetResult, K as ServiceTokenRow, L as Me, M as DryRunOutcome, N as DryRunResult, O as Decision, P as IdentityRow, R as Member, S as AuditEntryView, T as BindingPlan, U as RemovedMember, V as ProjectSummary, W as SecretKey, Y as WorkloadIds, _ as byFolder, a as Params, b as Api, c as RouteOutput, d as planImport, f as Unreachable, g as shownMember, h as serviceName, i as ImportAction, j as DismissedKey, k as Deletion, l as Transport, m as apiMember, n as CoffreClient, o as RouteInput, p as unreachable, q as SessionRow, r as CoffreError, s as RouteKey, t as ClientOptions, u as createClient, v as foldersOf, w as AuthorizationView, x as ApprovalView, y as AccessValue, z as MissingKey } from "./index-ZGDlpCwB.js";
1
+ import { A as DeletionResult, B as OffboardingReport, C as AuthInfo, D as ConnectedApp, E as BindingView, F as InheritedGrant, G as SecretVersion, H as ReferenceView, I as ListedReference, J as SetResult, K as ServiceTokenRow, L as Me, M as DryRunOutcome, N as DryRunResult, O as Decision, P as IdentityRow, R as Member, S as AuditEntryView, T as BindingPlan, U as RemovedMember, V as ProjectSummary, W as SecretKey, Y as WorkloadIds, _ as byFolder, a as Params, b as Api, c as RouteOutput, d as planImport, f as Unreachable, g as shownMember, h as serviceName, i as ImportAction, j as DismissedKey, k as Deletion, l as Transport, m as apiMember, n as CoffreClient, o as RouteInput, p as unreachable, q as SessionRow, r as CoffreError, s as RouteKey, t as ClientOptions, u as createClient, v as foldersOf, w as AuthorizationView, x as ApprovalView, y as AccessValue, z as MissingKey } from "./index-D_Fqmy4Z.js";
2
2
  export { type AccessValue, type Api, type ApprovalView, type AuditEntryView, type AuthInfo, type AuthorizationView, type BindingPlan, type BindingView, ClientOptions, CoffreClient, CoffreError, type ConnectedApp, type Decision, type Deletion, type DeletionResult, type DismissedKey, type DryRunOutcome, type DryRunResult, type IdentityRow, ImportAction, type InheritedGrant, type ListedReference, type Me, type Member, type MissingKey, type OffboardingReport, Params, type ProjectSummary, type ReferenceView, type RemovedMember, RouteInput, RouteKey, RouteOutput, type SecretKey, type SecretVersion, type ServiceTokenRow, type SessionRow, type SetResult, Transport, Unreachable, type WorkloadIds, apiMember, byFolder, createClient, foldersOf, planImport, serviceName, shownMember, unreachable };
package/dist/routes.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as Params, o as RouteInput, s as RouteKey } from "./index-ZGDlpCwB.js";
1
+ import { a as Params, o as RouteInput, s as RouteKey } from "./index-D_Fqmy4Z.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.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "The coffre API as typed function calls.",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/api.ts CHANGED
@@ -904,6 +904,8 @@ export type Api = {
904
904
  label: string;
905
905
  value: string;
906
906
  kind?: "mono" | "time";
907
+ note?: string;
908
+ warn?: true;
907
909
  }[];
908
910
  asks: null | {
909
911
  value: {
@@ -912,7 +914,10 @@ export type Api = {
912
914
  };
913
915
  };
914
916
  kind: "change" | "reveal";
917
+ reveals: boolean;
915
918
  digest: string;
919
+ basis: string | null;
920
+ ready: boolean;
916
921
  createdAt: string;
917
922
  expiresAt: string;
918
923
  outcome: null | {
@@ -929,6 +934,7 @@ export type Api = {
929
934
  input: {
930
935
  approve: boolean;
931
936
  digest: string;
937
+ basis?: string | null;
932
938
  value?: string;
933
939
  };
934
940
  output: {
@@ -944,6 +950,8 @@ export type Api = {
944
950
  label: string;
945
951
  value: string;
946
952
  kind?: "mono" | "time";
953
+ note?: string;
954
+ warn?: true;
947
955
  }[];
948
956
  };
949
957
  };
@@ -968,6 +976,8 @@ export type ApprovalView = {
968
976
  label: string;
969
977
  value: string;
970
978
  kind?: "mono" | "time";
979
+ note?: string;
980
+ warn?: true;
971
981
  }[];
972
982
  asks: null | {
973
983
  value: {
@@ -976,7 +986,10 @@ export type ApprovalView = {
976
986
  };
977
987
  };
978
988
  kind: "change" | "reveal";
989
+ reveals: boolean;
979
990
  digest: string;
991
+ basis: string | null;
992
+ ready: boolean;
980
993
  createdAt: string;
981
994
  expiresAt: string;
982
995
  outcome: null | {
@@ -1124,6 +1137,8 @@ export type Decision = {
1124
1137
  label: string;
1125
1138
  value: string;
1126
1139
  kind?: "mono" | "time";
1140
+ note?: string;
1141
+ warn?: true;
1127
1142
  }[];
1128
1143
  };
1129
1144