@agentxm/registry-client 0.28.7 → 0.28.8

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.
@@ -130,12 +130,6 @@ export declare const TokenOAuthErrorEncoded: Schema.Struct<{
130
130
  readonly error: Schema.Literals<readonly ["invalid_request", "invalid_client", "invalid_grant", "unauthorized_client", "unsupported_grant_type", "invalid_scope", "authorization_pending", "slow_down", "expired_token", "access_denied"]>;
131
131
  readonly error_description: Schema.String;
132
132
  }>;
133
- export type AuthWhoamiResponse = {
134
- readonly handle: string;
135
- };
136
- export declare const AuthWhoamiResponse: Schema.Struct<{
137
- readonly handle: Schema.String;
138
- }>;
139
133
  export type UserId = string;
140
134
  export declare const UserId: Schema.String;
141
135
  export type ResourceRestrictions = {
@@ -525,7 +519,7 @@ export type AuthMeToken = {
525
519
  readonly permissions: Schema.Json | null;
526
520
  readonly scopes: ReadonlyArray<string>;
527
521
  readonly resource_restrictions: ResourceRestrictions;
528
- readonly expires_at: IsoDateTimeString;
522
+ readonly expires_at: IsoDateTimeString | null;
529
523
  };
530
524
  export declare const AuthMeToken: Schema.Struct<{
531
525
  readonly id: Schema.String;
@@ -536,7 +530,7 @@ export declare const AuthMeToken: Schema.Struct<{
536
530
  readonly resource_restrictions: Schema.Struct<{
537
531
  readonly extensions: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
538
532
  }>;
539
- readonly expires_at: Schema.decodeTo<Schema.DateTimeUtc, Schema.String, never, never>;
533
+ readonly expires_at: Schema.Union<readonly [Schema.decodeTo<Schema.DateTimeUtc, Schema.String, never, never>, Schema.Null]>;
540
534
  }>;
541
535
  export type TokenListItem = {
542
536
  readonly id: TokenId;
@@ -1000,7 +994,6 @@ export declare const PackDependencyResolution: Schema.Struct<{
1000
994
  }>;
1001
995
  export type AuthMeResponse = {
1002
996
  readonly user: AuthMeUser;
1003
- readonly orgs: readonly [];
1004
997
  readonly token: AuthMeToken;
1005
998
  };
1006
999
  export declare const AuthMeResponse: Schema.Struct<{
@@ -1009,7 +1002,6 @@ export declare const AuthMeResponse: Schema.Struct<{
1009
1002
  readonly handle: Schema.String;
1010
1003
  readonly email: Schema.Union<readonly [Schema.String, Schema.Null]>;
1011
1004
  }>;
1012
- readonly orgs: Schema.Tuple<readonly []>;
1013
1005
  readonly token: Schema.Struct<{
1014
1006
  readonly id: Schema.String;
1015
1007
  readonly type: Schema.Literals<readonly ["session", "pat", "oidc", "publish-capability"]>;
@@ -1019,7 +1011,7 @@ export declare const AuthMeResponse: Schema.Struct<{
1019
1011
  readonly resource_restrictions: Schema.Struct<{
1020
1012
  readonly extensions: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
1021
1013
  }>;
1022
- readonly expires_at: Schema.decodeTo<Schema.DateTimeUtc, Schema.String, never, never>;
1014
+ readonly expires_at: Schema.Union<readonly [Schema.decodeTo<Schema.DateTimeUtc, Schema.String, never, never>, Schema.Null]>;
1023
1015
  }>;
1024
1016
  }>;
1025
1017
  export type TokenListResponse = {
@@ -2372,36 +2364,6 @@ export declare const AuthRevokeOAuthToken503: Schema.Struct<{
2372
2364
  readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2373
2365
  }>>;
2374
2366
  }>;
2375
- export type AuthGetWhoami200 = AuthWhoamiResponse;
2376
- export declare const AuthGetWhoami200: Schema.Struct<{
2377
- readonly handle: Schema.String;
2378
- }>;
2379
- export type AuthGetWhoami400 = DecodeErrorResponseEncoded;
2380
- export declare const AuthGetWhoami400: Schema.Struct<{
2381
- readonly kind: Schema.Literal<"DecodeErrorResponse">;
2382
- readonly type: Schema.String;
2383
- readonly title: Schema.String;
2384
- readonly status: Schema.Number;
2385
- readonly detail: Schema.String;
2386
- readonly instance: Schema.optionalKey<Schema.String>;
2387
- readonly code: Schema.String;
2388
- }>;
2389
- export type AuthGetWhoami401 = ProblemDetails;
2390
- export declare const AuthGetWhoami401: Schema.Struct<{
2391
- readonly type: Schema.String;
2392
- readonly title: Schema.String;
2393
- readonly status: Schema.Number;
2394
- readonly detail: Schema.String;
2395
- readonly instance: Schema.optionalKey<Schema.String>;
2396
- readonly code: Schema.String;
2397
- readonly details: Schema.optionalKey<Schema.Struct<{
2398
- readonly retryable: Schema.Boolean;
2399
- readonly retryAfterSeconds: Schema.optionalKey<Schema.Number>;
2400
- readonly requiredScope: Schema.optionalKey<Schema.String>;
2401
- readonly tokenScopes: Schema.optionalKey<Schema.$Array<Schema.String>>;
2402
- readonly requiredRole: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
2403
- }>>;
2404
- }>;
2405
2367
  export type AuthGetMe200 = AuthMeResponse;
2406
2368
  export declare const AuthGetMe200: Schema.Struct<{
2407
2369
  readonly user: Schema.Struct<{
@@ -2409,7 +2371,6 @@ export declare const AuthGetMe200: Schema.Struct<{
2409
2371
  readonly handle: Schema.String;
2410
2372
  readonly email: Schema.Union<readonly [Schema.String, Schema.Null]>;
2411
2373
  }>;
2412
- readonly orgs: Schema.Tuple<readonly []>;
2413
2374
  readonly token: Schema.Struct<{
2414
2375
  readonly id: Schema.String;
2415
2376
  readonly type: Schema.Literals<readonly ["session", "pat", "oidc", "publish-capability"]>;
@@ -2419,7 +2380,7 @@ export declare const AuthGetMe200: Schema.Struct<{
2419
2380
  readonly resource_restrictions: Schema.Struct<{
2420
2381
  readonly extensions: Schema.Union<readonly [Schema.$Array<Schema.String>, Schema.Null]>;
2421
2382
  }>;
2422
- readonly expires_at: Schema.decodeTo<Schema.DateTimeUtc, Schema.String, never, never>;
2383
+ readonly expires_at: Schema.Union<readonly [Schema.decodeTo<Schema.DateTimeUtc, Schema.String, never, never>, Schema.Null]>;
2423
2384
  }>;
2424
2385
  }>;
2425
2386
  export type AuthGetMe400 = DecodeErrorResponseEncoded;
@@ -4858,7 +4819,7 @@ export type ExtensionsYankVersion200 = {
4858
4819
  readonly name: ExtensionName;
4859
4820
  readonly version: Version;
4860
4821
  readonly yankedAt: IsoDateTimeString | null;
4861
- readonly yankCategory: string | null;
4822
+ readonly yankCategory: "broken" | "security" | "accidental" | "other" | null;
4862
4823
  readonly yankNotice: string | null;
4863
4824
  readonly links: ExtensionLinks;
4864
4825
  };
@@ -4868,7 +4829,7 @@ export declare const ExtensionsYankVersion200: Schema.Struct<{
4868
4829
  readonly name: Schema.String;
4869
4830
  readonly version: Schema.String;
4870
4831
  readonly yankedAt: Schema.Union<readonly [Schema.decodeTo<Schema.DateTimeUtc, Schema.String, never, never>, Schema.Null]>;
4871
- readonly yankCategory: Schema.Union<readonly [Schema.String, Schema.Null]>;
4832
+ readonly yankCategory: Schema.Union<readonly [Schema.Literals<readonly ["broken", "security", "accidental", "other"]>, Schema.Null]>;
4872
4833
  readonly yankNotice: Schema.Union<readonly [Schema.String, Schema.Null]>;
4873
4834
  readonly links: Schema.Struct<{
4874
4835
  readonly html: Schema.String;
@@ -6238,12 +6199,6 @@ export interface RegistryClient {
6238
6199
  readonly payload: typeof AuthRevokeOAuthTokenRequestFormUrlEncoded.Encoded;
6239
6200
  readonly config?: Config | undefined;
6240
6201
  }) => Effect.Effect<WithOptionalResponse<void, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"AuthRevokeOAuthToken400", typeof AuthRevokeOAuthToken400.Type> | RegistryClientError<"AuthRevokeOAuthToken503", typeof AuthRevokeOAuthToken503.Type>>;
6241
- /**
6242
- * Return authenticated user handle
6243
- */
6244
- readonly AuthGetWhoami: <Config extends OperationConfig>(options: {
6245
- readonly config?: Config | undefined;
6246
- } | undefined) => Effect.Effect<WithOptionalResponse<typeof AuthGetWhoami200.Type, Config>, HttpClientError.HttpClientError | SchemaError | RegistryClientError<"AuthGetWhoami400", typeof AuthGetWhoami400.Type> | RegistryClientError<"AuthGetWhoami401", typeof AuthGetWhoami401.Type>>;
6247
6202
  /**
6248
6203
  * Return authenticated user info
6249
6204
  */
@@ -221,16 +221,6 @@ export const TokenOAuthErrorEncoded = Schema.Struct({
221
221
  description: "Human-readable explanation of the error.",
222
222
  }),
223
223
  }).annotate({ identifier: "TokenOAuthErrorEncoded" });
224
- export const AuthWhoamiResponse = Schema.Struct({
225
- handle: Schema.String.annotate({
226
- description: "The authenticated user's registry handle.",
227
- examples: ["@example"],
228
- }),
229
- }).annotate({
230
- title: "Auth Whoami Response",
231
- description: "Minimal identity response for login checks and CLI whoami.",
232
- identifier: "AuthWhoamiResponse",
233
- });
234
224
  export const UserId = Schema.String.annotate({
235
225
  title: "User ID",
236
226
  description: "Identifies a registered user account. Assigned at sign-up and referenced by tokens, memberships, and audit trails.",
@@ -694,7 +684,7 @@ export const AuthMeToken = Schema.Struct({
694
684
  ]).annotate({ description: "Structured permissions associated with this token." }),
695
685
  scopes: Schema.Array(Schema.String).annotate({ description: "Scopes granted to this token." }),
696
686
  resource_restrictions: ResourceRestrictions,
697
- expires_at: IsoDateTimeString,
687
+ expires_at: Schema.Union([IsoDateTimeString, Schema.Null]),
698
688
  }).annotate({
699
689
  title: "Token Info",
700
690
  description: "Details about the token you used to authenticate.",
@@ -996,15 +986,9 @@ export const PackDependencyResolution = Schema.Struct({
996
986
  dependency: PackDependencyDescriptor,
997
987
  effectiveVersion: Version,
998
988
  }).annotate({ identifier: "PackDependencyResolution" });
999
- export const AuthMeResponse = Schema.Struct({
1000
- user: AuthMeUser,
1001
- orgs: Schema.Tuple([]).annotate({
1002
- description: "Organizations the user belongs to (reserved, currently empty).",
1003
- }),
1004
- token: AuthMeToken,
1005
- }).annotate({
989
+ export const AuthMeResponse = Schema.Struct({ user: AuthMeUser, token: AuthMeToken }).annotate({
1006
990
  title: "Auth Me Response",
1007
- description: "Your user profile, organizations, and token details.",
991
+ description: "Your user profile and credential details.",
1008
992
  identifier: "AuthMeResponse",
1009
993
  });
1010
994
  export const TokenListResponse = Schema.Struct({
@@ -1266,9 +1250,6 @@ export const AuthRevokeOAuthTokenRequestFormUrlEncoded = Schema.Struct({
1266
1250
  });
1267
1251
  export const AuthRevokeOAuthToken400 = DecodeErrorResponseEncoded;
1268
1252
  export const AuthRevokeOAuthToken503 = ProblemDetails;
1269
- export const AuthGetWhoami200 = AuthWhoamiResponse;
1270
- export const AuthGetWhoami400 = DecodeErrorResponseEncoded;
1271
- export const AuthGetWhoami401 = ProblemDetails;
1272
1253
  export const AuthGetMe200 = AuthMeResponse;
1273
1254
  export const AuthGetMe400 = DecodeErrorResponseEncoded;
1274
1255
  export const AuthGetMe401 = ProblemDetails;
@@ -1628,8 +1609,14 @@ export const ExtensionsYankVersion200 = Schema.Struct({
1628
1609
  name: ExtensionName,
1629
1610
  version: Version,
1630
1611
  yankedAt: Schema.Union([IsoDateTimeString, Schema.Null]),
1631
- yankCategory: Schema.Union([Schema.String, Schema.Null]),
1632
- yankNotice: Schema.Union([Schema.String, Schema.Null]),
1612
+ yankCategory: Schema.Union([
1613
+ Schema.Literals(["broken", "security", "accidental", "other"]),
1614
+ Schema.Null,
1615
+ ]),
1616
+ yankNotice: Schema.Union([
1617
+ Schema.String.check(Schema.isMaxLength(500).annotate({ expected: "a value with a length of at most 500" })),
1618
+ Schema.Null,
1619
+ ]),
1633
1620
  links: ExtensionLinks,
1634
1621
  });
1635
1622
  export const ExtensionsYankVersion400 = DecodeErrorResponseEncoded;
@@ -1926,12 +1913,6 @@ export const make = (httpClient, options = {}) => {
1926
1913
  "200": () => Effect.void,
1927
1914
  orElse: unexpectedStatus,
1928
1915
  }))),
1929
- AuthGetWhoami: (options) => HttpClientRequest.get(`/v1/auth/whoami`).pipe(withResponse(options?.config)(HttpClientResponse.matchStatus({
1930
- "2xx": decodeSuccess(AuthGetWhoami200),
1931
- "400": decodeError("AuthGetWhoami400", AuthGetWhoami400),
1932
- "401": decodeError("AuthGetWhoami401", AuthGetWhoami401),
1933
- orElse: unexpectedStatus,
1934
- }))),
1935
1916
  AuthGetMe: (options) => HttpClientRequest.get(`/v1/auth/me`).pipe(withResponse(options?.config)(HttpClientResponse.matchStatus({
1936
1917
  "2xx": decodeSuccess(AuthGetMe200),
1937
1918
  "400": decodeError("AuthGetMe400", AuthGetMe400),
@@ -34,7 +34,7 @@ export declare const yankExtensionVersion: (ref: RegistryExtensionVersionReferen
34
34
  readonly name: string;
35
35
  readonly version: string;
36
36
  readonly yankedAt: import("effect/DateTime").Utc | null;
37
- readonly yankCategory: string | null;
37
+ readonly yankCategory: "broken" | "security" | "accidental" | "other" | null;
38
38
  readonly yankNotice: string | null;
39
39
  readonly links: {
40
40
  readonly html: string;
package/package.json CHANGED
@@ -1,56 +1,56 @@
1
1
  {
2
- "name": "@agentxm/registry-client",
3
- "version": "0.28.7",
4
- "description": "AXM registry integration: local and remote registry clients over the generated OpenAPI transport, request policy and retries, typed registry failures, archive cache, and lifecycle administration for the axm CLI. Unstable and unsupported — use the axm.sh CLI.",
5
- "type": "module",
6
- "license": "FSL-1.1-MIT",
7
- "homepage": "https://axm.sh",
2
+ "author": "AgentXM <hello@agentxm.ai> (https://agentxm.ai)",
8
3
  "bugs": {
9
4
  "url": "https://github.com/agentxm/axm/issues"
10
5
  },
11
- "author": "AgentXM <hello@agentxm.ai> (https://agentxm.ai)",
12
- "repository": {
13
- "type": "git",
14
- "url": "https://github.com/agentxm/axm.git",
15
- "directory": "packages/registry-client"
6
+ "dependencies": {
7
+ "@agentxm/extension-model": "^0.28.8",
8
+ "@agentxm/registry-protocol": "^0.28.8",
9
+ "effect": "4.0.0-rc.112",
10
+ "fflate": "^0.8.3",
11
+ "semver": "^7.8.5"
12
+ },
13
+ "description": "AXM registry integration: local and remote registry clients over the generated OpenAPI transport, request policy and retries, typed registry failures, archive cache, and lifecycle administration for the axm CLI. Unstable and unsupported — use the axm.sh CLI.",
14
+ "devDependencies": {
15
+ "@effect/openapi-generator": "4.0.0-rc.112",
16
+ "@effect/platform-node": "4.0.0-rc.112",
17
+ "@effect/vitest": "4.0.0-rc.112",
18
+ "@types/bun": "^1.3.14",
19
+ "@types/semver": "^7.7.1",
20
+ "@typescript/native": "npm:typescript@^7.0.2",
21
+ "swagger2openapi": "^7.0.8",
22
+ "typescript": "npm:@typescript/typescript6@^6.0.2",
23
+ "vitest": "^4.1.10"
24
+ },
25
+ "engines": {
26
+ "node": ">=22.19.0"
16
27
  },
17
- "sideEffects": false,
18
28
  "exports": {
19
29
  ".": {
20
- "types": "./dist/src/index.d.ts",
21
30
  "axm-source": "./src/index.ts",
22
- "default": "./dist/src/index.js"
31
+ "default": "./dist/src/index.js",
32
+ "types": "./dist/src/index.d.ts"
23
33
  }
24
34
  },
25
35
  "files": [
26
36
  "dist/src/",
27
37
  "!**/*.map"
28
38
  ],
29
- "publishConfig": {
30
- "access": "public"
31
- },
32
- "engines": {
33
- "node": ">=22.19.0"
34
- },
39
+ "homepage": "https://axm.sh",
40
+ "license": "FSL-1.1-MIT",
41
+ "name": "@agentxm/registry-client",
35
42
  "nx": {
36
43
  "includedScripts": []
37
44
  },
38
- "dependencies": {
39
- "effect": "4.0.0-rc.112",
40
- "fflate": "^0.8.3",
41
- "semver": "^7.8.5",
42
- "@agentxm/extension-model": "^0.28.7",
43
- "@agentxm/registry-protocol": "^0.28.7"
45
+ "publishConfig": {
46
+ "access": "public"
44
47
  },
45
- "devDependencies": {
46
- "@effect/openapi-generator": "4.0.0-rc.112",
47
- "@effect/platform-node": "4.0.0-rc.112",
48
- "@effect/vitest": "4.0.0-rc.112",
49
- "@types/bun": "^1.3.14",
50
- "@types/semver": "^7.5.8",
51
- "@typescript/native": "npm:typescript@^7.0.2",
52
- "swagger2openapi": "^7.0.8",
53
- "typescript": "npm:@typescript/typescript6@^6.0.2",
54
- "vitest": "^4.1.10"
55
- }
56
- }
48
+ "repository": {
49
+ "directory": "packages/registry-client",
50
+ "type": "git",
51
+ "url": "https://github.com/agentxm/axm.git"
52
+ },
53
+ "sideEffects": false,
54
+ "type": "module",
55
+ "version": "0.28.8"
56
+ }