@coffre/client 0.4.0 → 0.4.1
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/dist/{index-CsGTyqgO.d.ts → index-B3rPquWt.d.ts} +62 -0
- package/dist/index.d.ts +1 -1
- package/dist/routes.d.ts +1 -1
- package/package.json +1 -1
- package/src/api.ts +37 -0
|
@@ -421,6 +421,7 @@ type Api = {
|
|
|
421
421
|
sessions: number;
|
|
422
422
|
tokens: number;
|
|
423
423
|
identities: number;
|
|
424
|
+
apps: number;
|
|
424
425
|
};
|
|
425
426
|
exposed: {
|
|
426
427
|
project: string;
|
|
@@ -439,6 +440,17 @@ type Api = {
|
|
|
439
440
|
expiresAt: string;
|
|
440
441
|
lastUsedAt: string | null;
|
|
441
442
|
}[];
|
|
443
|
+
apps: {
|
|
444
|
+
id: string;
|
|
445
|
+
name: string;
|
|
446
|
+
host: string | null;
|
|
447
|
+
registration: "cimd" | "dcr";
|
|
448
|
+
scopes: ("browse" | "manage-access" | "read-values" | "write")[];
|
|
449
|
+
createdAt: string;
|
|
450
|
+
lastUsedAt: string | null;
|
|
451
|
+
lastUsedIp: string | null;
|
|
452
|
+
expiresAt: string;
|
|
453
|
+
}[];
|
|
442
454
|
references: {
|
|
443
455
|
id: string;
|
|
444
456
|
holder: string;
|
|
@@ -470,6 +482,7 @@ type Api = {
|
|
|
470
482
|
sessions: number;
|
|
471
483
|
tokens: number;
|
|
472
484
|
identities: number;
|
|
485
|
+
apps: number;
|
|
473
486
|
};
|
|
474
487
|
report: {
|
|
475
488
|
principalType: "service" | "user";
|
|
@@ -484,6 +497,7 @@ type Api = {
|
|
|
484
497
|
sessions: number;
|
|
485
498
|
tokens: number;
|
|
486
499
|
identities: number;
|
|
500
|
+
apps: number;
|
|
487
501
|
};
|
|
488
502
|
exposed: {
|
|
489
503
|
project: string;
|
|
@@ -502,6 +516,17 @@ type Api = {
|
|
|
502
516
|
expiresAt: string;
|
|
503
517
|
lastUsedAt: string | null;
|
|
504
518
|
}[];
|
|
519
|
+
apps: {
|
|
520
|
+
id: string;
|
|
521
|
+
name: string;
|
|
522
|
+
host: string | null;
|
|
523
|
+
registration: "cimd" | "dcr";
|
|
524
|
+
scopes: ("browse" | "manage-access" | "read-values" | "write")[];
|
|
525
|
+
createdAt: string;
|
|
526
|
+
lastUsedAt: string | null;
|
|
527
|
+
lastUsedIp: string | null;
|
|
528
|
+
expiresAt: string;
|
|
529
|
+
}[];
|
|
505
530
|
references: {
|
|
506
531
|
id: string;
|
|
507
532
|
holder: string;
|
|
@@ -1200,6 +1225,7 @@ type OffboardingReport = {
|
|
|
1200
1225
|
sessions: number;
|
|
1201
1226
|
tokens: number;
|
|
1202
1227
|
identities: number;
|
|
1228
|
+
apps: number;
|
|
1203
1229
|
};
|
|
1204
1230
|
exposed: {
|
|
1205
1231
|
project: string;
|
|
@@ -1218,6 +1244,17 @@ type OffboardingReport = {
|
|
|
1218
1244
|
expiresAt: string;
|
|
1219
1245
|
lastUsedAt: string | null;
|
|
1220
1246
|
}[];
|
|
1247
|
+
apps: {
|
|
1248
|
+
id: string;
|
|
1249
|
+
name: string;
|
|
1250
|
+
host: string | null;
|
|
1251
|
+
registration: "cimd" | "dcr";
|
|
1252
|
+
scopes: ("browse" | "manage-access" | "read-values" | "write")[];
|
|
1253
|
+
createdAt: string;
|
|
1254
|
+
lastUsedAt: string | null;
|
|
1255
|
+
lastUsedIp: string | null;
|
|
1256
|
+
expiresAt: string;
|
|
1257
|
+
}[];
|
|
1221
1258
|
references: {
|
|
1222
1259
|
id: string;
|
|
1223
1260
|
holder: string;
|
|
@@ -1721,6 +1758,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
1721
1758
|
sessions: number;
|
|
1722
1759
|
tokens: number;
|
|
1723
1760
|
identities: number;
|
|
1761
|
+
apps: number;
|
|
1724
1762
|
};
|
|
1725
1763
|
exposed: {
|
|
1726
1764
|
project: string;
|
|
@@ -1739,6 +1777,17 @@ declare function createClient(options: ClientOptions): {
|
|
|
1739
1777
|
expiresAt: string;
|
|
1740
1778
|
lastUsedAt: string | null;
|
|
1741
1779
|
}[];
|
|
1780
|
+
apps: {
|
|
1781
|
+
id: string;
|
|
1782
|
+
name: string;
|
|
1783
|
+
host: string | null;
|
|
1784
|
+
registration: "cimd" | "dcr";
|
|
1785
|
+
scopes: ("browse" | "manage-access" | "read-values" | "write")[];
|
|
1786
|
+
createdAt: string;
|
|
1787
|
+
lastUsedAt: string | null;
|
|
1788
|
+
lastUsedIp: string | null;
|
|
1789
|
+
expiresAt: string;
|
|
1790
|
+
}[];
|
|
1742
1791
|
references: {
|
|
1743
1792
|
id: string;
|
|
1744
1793
|
holder: string;
|
|
@@ -1763,6 +1812,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
1763
1812
|
sessions: number;
|
|
1764
1813
|
tokens: number;
|
|
1765
1814
|
identities: number;
|
|
1815
|
+
apps: number;
|
|
1766
1816
|
};
|
|
1767
1817
|
report: {
|
|
1768
1818
|
principalType: "service" | "user";
|
|
@@ -1777,6 +1827,7 @@ declare function createClient(options: ClientOptions): {
|
|
|
1777
1827
|
sessions: number;
|
|
1778
1828
|
tokens: number;
|
|
1779
1829
|
identities: number;
|
|
1830
|
+
apps: number;
|
|
1780
1831
|
};
|
|
1781
1832
|
exposed: {
|
|
1782
1833
|
project: string;
|
|
@@ -1795,6 +1846,17 @@ declare function createClient(options: ClientOptions): {
|
|
|
1795
1846
|
expiresAt: string;
|
|
1796
1847
|
lastUsedAt: string | null;
|
|
1797
1848
|
}[];
|
|
1849
|
+
apps: {
|
|
1850
|
+
id: string;
|
|
1851
|
+
name: string;
|
|
1852
|
+
host: string | null;
|
|
1853
|
+
registration: "cimd" | "dcr";
|
|
1854
|
+
scopes: ("browse" | "manage-access" | "read-values" | "write")[];
|
|
1855
|
+
createdAt: string;
|
|
1856
|
+
lastUsedAt: string | null;
|
|
1857
|
+
lastUsedIp: string | null;
|
|
1858
|
+
expiresAt: string;
|
|
1859
|
+
}[];
|
|
1798
1860
|
references: {
|
|
1799
1861
|
id: string;
|
|
1800
1862
|
holder: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as DryRunOutcome, B as ReferenceView, C as BindingPlan, D as Deletion, E as Decision, F as Me, G as SessionRow, H as SecretKey, I as Member, K as SetResult, L as MissingKey, M as IdentityRow, N as InheritedGrant, O as DeletionResult, P as ListedReference, R as OffboardingReport, S as AuthorizationView, T as ConnectedApp, U as SecretVersion, V as RemovedMember, W as ServiceTokenRow, _ as AccessValue, a as Params, b as AuditEntryView, c as RouteOutput, d as planImport, f as apiMember, g as foldersOf, h as byFolder, i as ImportAction, j as DryRunResult, k as DismissedKey, l as Transport, m as shownMember, n as CoffreClient, o as RouteInput, p as serviceName, q as WorkloadIds, r as CoffreError, s as RouteKey, t as ClientOptions, u as createClient, v as Api, w as BindingView, x as AuthInfo, y as ApprovalView, z as ProjectSummary } from "./index-
|
|
1
|
+
import { A as DryRunOutcome, B as ReferenceView, C as BindingPlan, D as Deletion, E as Decision, F as Me, G as SessionRow, H as SecretKey, I as Member, K as SetResult, L as MissingKey, M as IdentityRow, N as InheritedGrant, O as DeletionResult, P as ListedReference, R as OffboardingReport, S as AuthorizationView, T as ConnectedApp, U as SecretVersion, V as RemovedMember, W as ServiceTokenRow, _ as AccessValue, a as Params, b as AuditEntryView, c as RouteOutput, d as planImport, f as apiMember, g as foldersOf, h as byFolder, i as ImportAction, j as DryRunResult, k as DismissedKey, l as Transport, m as shownMember, n as CoffreClient, o as RouteInput, p as serviceName, q as WorkloadIds, r as CoffreError, s as RouteKey, t as ClientOptions, u as createClient, v as Api, w as BindingView, x as AuthInfo, y as ApprovalView, z as ProjectSummary } from "./index-B3rPquWt.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, type WorkloadIds, apiMember, byFolder, createClient, foldersOf, planImport, serviceName, shownMember };
|
package/dist/routes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Params, o as RouteInput, s as RouteKey } from "./index-
|
|
1
|
+
import { a as Params, o as RouteInput, s as RouteKey } from "./index-B3rPquWt.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
package/src/api.ts
CHANGED
|
@@ -424,6 +424,7 @@ export type Api = {
|
|
|
424
424
|
sessions: number;
|
|
425
425
|
tokens: number;
|
|
426
426
|
identities: number;
|
|
427
|
+
apps: number;
|
|
427
428
|
};
|
|
428
429
|
exposed: {
|
|
429
430
|
project: string;
|
|
@@ -442,6 +443,17 @@ export type Api = {
|
|
|
442
443
|
expiresAt: string;
|
|
443
444
|
lastUsedAt: string | null;
|
|
444
445
|
}[];
|
|
446
|
+
apps: {
|
|
447
|
+
id: string;
|
|
448
|
+
name: string;
|
|
449
|
+
host: string | null;
|
|
450
|
+
registration: "cimd" | "dcr";
|
|
451
|
+
scopes: ("browse" | "manage-access" | "read-values" | "write")[];
|
|
452
|
+
createdAt: string;
|
|
453
|
+
lastUsedAt: string | null;
|
|
454
|
+
lastUsedIp: string | null;
|
|
455
|
+
expiresAt: string;
|
|
456
|
+
}[];
|
|
445
457
|
references: {
|
|
446
458
|
id: string;
|
|
447
459
|
holder: string;
|
|
@@ -473,6 +485,7 @@ export type Api = {
|
|
|
473
485
|
sessions: number;
|
|
474
486
|
tokens: number;
|
|
475
487
|
identities: number;
|
|
488
|
+
apps: number;
|
|
476
489
|
};
|
|
477
490
|
report: {
|
|
478
491
|
principalType: "service" | "user";
|
|
@@ -487,6 +500,7 @@ export type Api = {
|
|
|
487
500
|
sessions: number;
|
|
488
501
|
tokens: number;
|
|
489
502
|
identities: number;
|
|
503
|
+
apps: number;
|
|
490
504
|
};
|
|
491
505
|
exposed: {
|
|
492
506
|
project: string;
|
|
@@ -505,6 +519,17 @@ export type Api = {
|
|
|
505
519
|
expiresAt: string;
|
|
506
520
|
lastUsedAt: string | null;
|
|
507
521
|
}[];
|
|
522
|
+
apps: {
|
|
523
|
+
id: string;
|
|
524
|
+
name: string;
|
|
525
|
+
host: string | null;
|
|
526
|
+
registration: "cimd" | "dcr";
|
|
527
|
+
scopes: ("browse" | "manage-access" | "read-values" | "write")[];
|
|
528
|
+
createdAt: string;
|
|
529
|
+
lastUsedAt: string | null;
|
|
530
|
+
lastUsedIp: string | null;
|
|
531
|
+
expiresAt: string;
|
|
532
|
+
}[];
|
|
508
533
|
references: {
|
|
509
534
|
id: string;
|
|
510
535
|
holder: string;
|
|
@@ -1224,6 +1249,7 @@ export type OffboardingReport = {
|
|
|
1224
1249
|
sessions: number;
|
|
1225
1250
|
tokens: number;
|
|
1226
1251
|
identities: number;
|
|
1252
|
+
apps: number;
|
|
1227
1253
|
};
|
|
1228
1254
|
exposed: {
|
|
1229
1255
|
project: string;
|
|
@@ -1242,6 +1268,17 @@ export type OffboardingReport = {
|
|
|
1242
1268
|
expiresAt: string;
|
|
1243
1269
|
lastUsedAt: string | null;
|
|
1244
1270
|
}[];
|
|
1271
|
+
apps: {
|
|
1272
|
+
id: string;
|
|
1273
|
+
name: string;
|
|
1274
|
+
host: string | null;
|
|
1275
|
+
registration: "cimd" | "dcr";
|
|
1276
|
+
scopes: ("browse" | "manage-access" | "read-values" | "write")[];
|
|
1277
|
+
createdAt: string;
|
|
1278
|
+
lastUsedAt: string | null;
|
|
1279
|
+
lastUsedIp: string | null;
|
|
1280
|
+
expiresAt: string;
|
|
1281
|
+
}[];
|
|
1245
1282
|
references: {
|
|
1246
1283
|
id: string;
|
|
1247
1284
|
holder: string;
|