@impz/client 6.11.6 → 6.12.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/dist/identity.d.ts +26 -0
- package/dist/identity.js +148 -0
- package/dist/index-BE17J_Lz.d.ts +23016 -0
- package/dist/index.d.ts +2 -22596
- package/dist/index.js +10 -3
- package/package.json +5 -1
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as z from "zod";
|
|
|
4
4
|
import { P, match } from "ts-pattern";
|
|
5
5
|
import pRetry, { AbortError } from "p-retry";
|
|
6
6
|
// src/check-server.ts
|
|
7
|
-
const CLIENT_VERSION = "6.
|
|
7
|
+
const CLIENT_VERSION = "6.12.0";
|
|
8
8
|
async function checkServer(rpc, options = {}) {
|
|
9
9
|
const signal = options.signal;
|
|
10
10
|
const callOptions = signal === void 0 ? {} : { signal };
|
|
@@ -409,6 +409,10 @@ const BrokerRuleSchema = z.object({
|
|
|
409
409
|
code: "custom",
|
|
410
410
|
message: `must not be ${header}, which overrides the request's method`
|
|
411
411
|
});
|
|
412
|
+
if (header === "imp-identity") context.addIssue({
|
|
413
|
+
code: "custom",
|
|
414
|
+
message: `must not be ${header}, which the broker sets to name the imp`
|
|
415
|
+
});
|
|
412
416
|
}),
|
|
413
417
|
scheme: z.enum([
|
|
414
418
|
"bearer",
|
|
@@ -416,7 +420,8 @@ const BrokerRuleSchema = z.object({
|
|
|
416
420
|
"raw"
|
|
417
421
|
]),
|
|
418
422
|
user: BasicUserSchema.optional(),
|
|
419
|
-
upstream: BrokerUpstreamSchema.optional()
|
|
423
|
+
upstream: BrokerUpstreamSchema.optional(),
|
|
424
|
+
identity: z.literal(true).optional()
|
|
420
425
|
});
|
|
421
426
|
z.enum([
|
|
422
427
|
"github",
|
|
@@ -862,7 +867,8 @@ const FEATURE_GAPS = {
|
|
|
862
867
|
imagePins: "has no image pins",
|
|
863
868
|
buildContextUpload: "has no build context upload",
|
|
864
869
|
destroyIdCheck: "has no id check on destroy",
|
|
865
|
-
eventCursor: "has no event cursor"
|
|
870
|
+
eventCursor: "has no event cursor",
|
|
871
|
+
secretIdentity: "has no identity issuer, or is older than identity tokens"
|
|
866
872
|
};
|
|
867
873
|
var MissingFeatureError = class extends Error {
|
|
868
874
|
name = "MissingFeatureError";
|
|
@@ -1640,6 +1646,7 @@ function createImpClient(options) {
|
|
|
1640
1646
|
audit: rpc.audit,
|
|
1641
1647
|
events: rpc.events,
|
|
1642
1648
|
system: rpc.system,
|
|
1649
|
+
identity: rpc.identity,
|
|
1643
1650
|
tokens: rpc.tokens,
|
|
1644
1651
|
oauth: rpc.oauth,
|
|
1645
1652
|
auth: rpc.auth
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impz/client",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.12.0",
|
|
4
4
|
"description": "Typed client for impd, the imp host daemon: imps, checkpoints, images and exec",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"default": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./identity": {
|
|
18
|
+
"types": "./dist/identity.d.ts",
|
|
19
|
+
"default": "./dist/identity.js"
|
|
16
20
|
}
|
|
17
21
|
},
|
|
18
22
|
"dependencies": {
|