@agentxm/client-core 0.6.0 → 0.7.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/src/unstable/auth/auth-client.d.ts +17 -3
- package/dist/src/unstable/auth/auth-client.d.ts.map +1 -1
- package/dist/src/unstable/auth/auth-client.js +127 -58
- package/dist/src/unstable/auth/auth-client.js.map +1 -1
- package/dist/src/unstable/auth/credential-store.d.ts +5 -4
- package/dist/src/unstable/auth/credential-store.d.ts.map +1 -1
- package/dist/src/unstable/auth/credential-store.js +115 -9
- package/dist/src/unstable/auth/credential-store.js.map +1 -1
- package/dist/src/unstable/auth/device-login.d.ts +4 -1
- package/dist/src/unstable/auth/device-login.d.ts.map +1 -1
- package/dist/src/unstable/auth/device-login.js +13 -15
- package/dist/src/unstable/auth/device-login.js.map +1 -1
- package/dist/src/unstable/auth/index.d.ts +4 -1
- package/dist/src/unstable/auth/index.d.ts.map +1 -1
- package/dist/src/unstable/auth/index.js +3 -0
- package/dist/src/unstable/auth/index.js.map +1 -1
- package/dist/src/unstable/auth/login-strategy.d.ts +21 -0
- package/dist/src/unstable/auth/login-strategy.d.ts.map +1 -0
- package/dist/src/unstable/auth/login-strategy.js +25 -0
- package/dist/src/unstable/auth/login-strategy.js.map +1 -0
- package/dist/src/unstable/auth/loopback-login.d.ts +16 -0
- package/dist/src/unstable/auth/loopback-login.d.ts.map +1 -0
- package/dist/src/unstable/auth/loopback-login.js +86 -0
- package/dist/src/unstable/auth/loopback-login.js.map +1 -0
- package/dist/src/unstable/auth/loopback-server.d.ts +36 -0
- package/dist/src/unstable/auth/loopback-server.d.ts.map +1 -0
- package/dist/src/unstable/auth/loopback-server.js +136 -0
- package/dist/src/unstable/auth/loopback-server.js.map +1 -0
- package/dist/src/unstable/commands/operations/publish.js +1 -1
- package/dist/src/unstable/commands/operations/publish.js.map +1 -1
- package/dist/src/unstable/install-meta/install-meta.d.ts +1 -1
- package/dist/src/unstable/install-meta/install-meta.js +1 -1
- package/dist/src/unstable/install-method/install-method.d.ts +1 -4
- package/dist/src/unstable/install-method/install-method.d.ts.map +1 -1
- package/dist/src/unstable/install-method/install-method.js +29 -24
- package/dist/src/unstable/install-method/install-method.js.map +1 -1
- package/dist/src/unstable/mcp-servers/operations/publish.js +1 -1
- package/dist/src/unstable/mcp-servers/operations/publish.js.map +1 -1
- package/dist/src/unstable/packs/operations/publish.js +1 -1
- package/dist/src/unstable/packs/operations/publish.js.map +1 -1
- package/dist/src/unstable/registry/__generated__/registry-client.d.ts +170 -96
- package/dist/src/unstable/registry/__generated__/registry-client.d.ts.map +1 -1
- package/dist/src/unstable/registry/__generated__/registry-client.js +152 -64
- package/dist/src/unstable/registry/__generated__/registry-client.js.map +1 -1
- package/dist/src/unstable/settings/schema.d.ts.map +1 -1
- package/dist/src/unstable/settings/schema.js +39 -34
- package/dist/src/unstable/settings/schema.js.map +1 -1
- package/dist/src/unstable/skills/operations/publish.js +1 -1
- package/dist/src/unstable/skills/operations/publish.js.map +1 -1
- package/dist/src/unstable/subagents/operations/publish.js +1 -1
- package/dist/src/unstable/subagents/operations/publish.js.map +1 -1
- package/dist/src/unstable/telemetry/__generated__/telemetry-client.d.ts +3 -0
- package/dist/src/unstable/telemetry/__generated__/telemetry-client.d.ts.map +1 -1
- package/dist/src/unstable/telemetry/__generated__/telemetry-client.js +1 -0
- package/dist/src/unstable/telemetry/__generated__/telemetry-client.js.map +1 -1
- package/dist/src/unstable/telemetry/client.d.ts.map +1 -1
- package/dist/src/unstable/telemetry/client.js +9 -1
- package/dist/src/unstable/telemetry/client.js.map +1 -1
- package/dist/src/unstable/update-check/update-check.d.ts.map +1 -1
- package/dist/src/unstable/update-check/update-check.js +1 -11
- package/dist/src/unstable/update-check/update-check.js.map +1 -1
- package/dist/src/unstable/utils/build-zip-archive.d.ts +8 -7
- package/dist/src/unstable/utils/build-zip-archive.d.ts.map +1 -1
- package/dist/src/unstable/utils/build-zip-archive.js +42 -52
- package/dist/src/unstable/utils/build-zip-archive.js.map +1 -1
- package/dist/src/unstable/utils/environment.d.ts +3 -3
- package/dist/src/unstable/utils/environment.d.ts.map +1 -1
- package/dist/src/unstable/utils/environment.js +7 -9
- package/dist/src/unstable/utils/environment.js.map +1 -1
- package/package.json +5 -2
- package/site-content/__generated__/schemas/settings.schema.json +36 -39
- package/site-content/docs/quickstart.md +8 -5
- package/site-content/install.cmd +2 -2
- package/site-content/install.md +122 -285
- package/site-content/install.ps1 +2 -2
|
@@ -97,53 +97,24 @@ export const SessionTokenResponse = Schema.Struct({
|
|
|
97
97
|
title: "Session Token Response",
|
|
98
98
|
description: "OAuth 2.0 token response containing an access/refresh token pair.",
|
|
99
99
|
});
|
|
100
|
-
export const
|
|
101
|
-
kind: Schema.Literal("
|
|
100
|
+
export const TokenOAuthError = Schema.Struct({
|
|
101
|
+
kind: Schema.Literal("TokenOAuthError"),
|
|
102
102
|
error: Schema.Literals([
|
|
103
103
|
"invalid_request",
|
|
104
|
+
"invalid_client",
|
|
105
|
+
"invalid_grant",
|
|
106
|
+
"unauthorized_client",
|
|
107
|
+
"unsupported_grant_type",
|
|
108
|
+
"invalid_scope",
|
|
104
109
|
"authorization_pending",
|
|
105
110
|
"slow_down",
|
|
106
111
|
"expired_token",
|
|
107
112
|
"access_denied",
|
|
108
|
-
]).annotate({
|
|
109
|
-
title: "OAuth Device Error Code",
|
|
110
|
-
description: "RFC 8628 error code indicating the polling state.",
|
|
111
|
-
}),
|
|
113
|
+
]).annotate({ title: "OAuth Token Error", description: "OAuth token endpoint error code." }),
|
|
112
114
|
error_description: Schema.String.annotate({
|
|
113
115
|
description: "Human-readable explanation of the error.",
|
|
114
116
|
}),
|
|
115
117
|
});
|
|
116
|
-
export const RefreshSessionTokenResponse = Schema.Struct({
|
|
117
|
-
access_token: Schema.String.annotate({ description: "OAuth 2.0 access token." }),
|
|
118
|
-
refresh_token: Schema.String.annotate({
|
|
119
|
-
description: "OAuth 2.0 refresh token for obtaining new token pairs.",
|
|
120
|
-
}),
|
|
121
|
-
token_type: Schema.Literal("Bearer"),
|
|
122
|
-
expires_in: Schema.Number.annotate({
|
|
123
|
-
description: "Access token lifetime remaining in seconds.",
|
|
124
|
-
}).check(Schema.isInt()),
|
|
125
|
-
expires_at: Schema.String.annotate({
|
|
126
|
-
description: "ISO 8601 timestamp when the access token expires.",
|
|
127
|
-
format: "date-time",
|
|
128
|
-
}),
|
|
129
|
-
scope: Schema.optionalKey(Schema.Union([
|
|
130
|
-
Schema.String.annotate({ description: "Space-delimited list of granted scopes." }),
|
|
131
|
-
Schema.Null,
|
|
132
|
-
])),
|
|
133
|
-
}).annotate({
|
|
134
|
-
title: "Session Token Response",
|
|
135
|
-
description: "OAuth 2.0 token response containing an access/refresh token pair.",
|
|
136
|
-
});
|
|
137
|
-
export const RefreshTokenError = Schema.Struct({
|
|
138
|
-
kind: Schema.Literal("RefreshTokenError"),
|
|
139
|
-
type: Schema.String,
|
|
140
|
-
title: Schema.String,
|
|
141
|
-
status: Schema.Number.check(Schema.isInt()),
|
|
142
|
-
detail: Schema.String,
|
|
143
|
-
instance: Schema.optionalKey(Schema.String),
|
|
144
|
-
code: Schema.String,
|
|
145
|
-
details: Schema.optionalKey(Schema.Unknown),
|
|
146
|
-
});
|
|
147
118
|
export const UserId = Schema.String.check(Schema.isPattern(new RegExp("^user_[0-7][0-9a-hjkmnp-tv-z]{25}$"), {
|
|
148
119
|
title: "User ID",
|
|
149
120
|
description: "Identifies a registered user account. Assigned at sign-up and referenced by tokens, memberships, and audit trails.",
|
|
@@ -271,7 +242,11 @@ export const ChangeTeamMemberRoleBody = Schema.Struct({
|
|
|
271
242
|
description: "Role within a team — 'admin' manages membership and grants; 'member' inherits grants.",
|
|
272
243
|
}),
|
|
273
244
|
}).annotate({ title: "Change Team Member Role Body" });
|
|
274
|
-
export const ExtensionName = Schema.String
|
|
245
|
+
export const ExtensionName = Schema.String.check(Schema.isMinLength(1)).check(Schema.isPattern(new RegExp("^[a-z0-9](?:[a-z0-9-]{0,62}[a-z0-9])?$"), {
|
|
246
|
+
title: "Extension Name",
|
|
247
|
+
description: "The name of an extension — lowercase letters, numbers, and hyphens (e.g. my-skill).",
|
|
248
|
+
examples: ["my-skill", "code-review", "prettier"],
|
|
249
|
+
}));
|
|
275
250
|
export const ExtensionType = Schema.Literals([
|
|
276
251
|
"skill",
|
|
277
252
|
"command",
|
|
@@ -284,7 +259,11 @@ export const ExtensionType = Schema.Literals([
|
|
|
284
259
|
title: "Extension Type",
|
|
285
260
|
description: "What kind of extension this is: skill, command, mcp-server, subagent, file, rule, or pack.",
|
|
286
261
|
});
|
|
287
|
-
export const
|
|
262
|
+
export const Version = Schema.String.check(Schema.isPattern(new RegExp("^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"), {
|
|
263
|
+
title: "Version",
|
|
264
|
+
description: "A semver version like 1.0.0. Ranges are not allowed here.",
|
|
265
|
+
examples: ["1.0.0", "2.3.1", "0.1.0-beta.1"],
|
|
266
|
+
}));
|
|
288
267
|
export const Author = Schema.Struct({
|
|
289
268
|
name: Schema.optionalKey(Schema.Union([
|
|
290
269
|
Schema.String.annotate({ description: "Display name of the extension author." }),
|
|
@@ -305,7 +284,11 @@ export const Author = Schema.Struct({
|
|
|
305
284
|
Schema.Null,
|
|
306
285
|
])),
|
|
307
286
|
}).annotate({ title: "Author", description: "Author details: name, email, and homepage URL." });
|
|
308
|
-
export const
|
|
287
|
+
export const VersionRange = Schema.String.check(Schema.isMinLength(1)).check(Schema.isPattern(new RegExp("^[~^<>=*xXvV0-9A-Za-z| .-]+$"), {
|
|
288
|
+
title: "Version Range",
|
|
289
|
+
description: 'A semver version range like ^1.0.0, ~2.3.0, >=1.0.0 <3.0.0, or an exact version 1.2.3. Use "*" to always resolve to the latest available version.',
|
|
290
|
+
examples: ["^1.0.0", "~2.4", ">=1 <3", "1.2.3", "*"],
|
|
291
|
+
}));
|
|
309
292
|
export const PatchVisibilityBody = Schema.Struct({
|
|
310
293
|
visibility: Schema.optionalKey(Schema.Union([
|
|
311
294
|
Schema.Literals(["public", "internal", "private"]).annotate({
|
|
@@ -613,7 +596,7 @@ export const PublishIdentity = Schema.Struct({
|
|
|
613
596
|
owner: Handle,
|
|
614
597
|
type: ExtensionType,
|
|
615
598
|
name: ExtensionName,
|
|
616
|
-
version:
|
|
599
|
+
version: Version,
|
|
617
600
|
}).annotate({
|
|
618
601
|
title: "Publish Identity",
|
|
619
602
|
description: "URL-path identity of the extension version under publish.",
|
|
@@ -622,7 +605,7 @@ export const SearchHit = Schema.Struct({
|
|
|
622
605
|
name: ExtensionName,
|
|
623
606
|
owner: Handle,
|
|
624
607
|
type: ExtensionType,
|
|
625
|
-
latestVersion:
|
|
608
|
+
latestVersion: Version,
|
|
626
609
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
627
610
|
repository: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
628
611
|
license: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -723,6 +706,57 @@ export const AuthIssueDeviceCodeRequestFormUrlEncoded = Schema.Struct({
|
|
|
723
706
|
export const AuthIssueDeviceCode200 = DeviceCodeResponse;
|
|
724
707
|
export const AuthIssueDeviceCode400 = DecodeErrorResponse;
|
|
725
708
|
export const AuthIssueDeviceCode500 = InternalError;
|
|
709
|
+
export const AuthExchangeTokenRequestFormUrlEncoded = Schema.Struct({
|
|
710
|
+
grant_type: Schema.String.annotate({
|
|
711
|
+
description: "OAuth grant type.",
|
|
712
|
+
examples: [
|
|
713
|
+
"authorization_code",
|
|
714
|
+
"urn:ietf:params:oauth:grant-type:device_code",
|
|
715
|
+
"refresh_token",
|
|
716
|
+
],
|
|
717
|
+
}),
|
|
718
|
+
code: Schema.optionalKey(Schema.Union([
|
|
719
|
+
Schema.String.annotate({
|
|
720
|
+
description: "Authorization code returned to the loopback callback.",
|
|
721
|
+
}),
|
|
722
|
+
Schema.Null,
|
|
723
|
+
])),
|
|
724
|
+
code_verifier: Schema.optionalKey(Schema.Union([
|
|
725
|
+
Schema.String.annotate({ description: "PKCE verifier generated by the CLI." }),
|
|
726
|
+
Schema.Null,
|
|
727
|
+
])),
|
|
728
|
+
client_id: Schema.optionalKey(Schema.Union([
|
|
729
|
+
Schema.String.annotate({ description: "OAuth client identifier.", examples: ["axm-cli"] }),
|
|
730
|
+
Schema.Null,
|
|
731
|
+
])),
|
|
732
|
+
redirect_uri: Schema.optionalKey(Schema.Union([
|
|
733
|
+
Schema.String.annotate({
|
|
734
|
+
description: "Loopback redirect URI the authorization code was bound to.",
|
|
735
|
+
}),
|
|
736
|
+
Schema.Null,
|
|
737
|
+
])),
|
|
738
|
+
device_code: Schema.optionalKey(Schema.Union([
|
|
739
|
+
Schema.String.annotate({
|
|
740
|
+
description: "The device verification code received from the /device/code endpoint.",
|
|
741
|
+
}),
|
|
742
|
+
Schema.Null,
|
|
743
|
+
])),
|
|
744
|
+
refresh_token: Schema.optionalKey(Schema.Union([
|
|
745
|
+
Schema.String.annotate({ description: "Refresh token to exchange for a new token pair." }),
|
|
746
|
+
Schema.Null,
|
|
747
|
+
])),
|
|
748
|
+
scope: Schema.optionalKey(Schema.Union([
|
|
749
|
+
Schema.String.annotate({
|
|
750
|
+
description: "Optional requested scope for refresh-token exchange.",
|
|
751
|
+
}),
|
|
752
|
+
Schema.Null,
|
|
753
|
+
])),
|
|
754
|
+
});
|
|
755
|
+
export const AuthExchangeToken200 = SessionTokenResponse;
|
|
756
|
+
export const AuthExchangeToken400 = Schema.Union([
|
|
757
|
+
Schema.Union([InvalidRequestError, DecodeErrorResponse]),
|
|
758
|
+
TokenOAuthError,
|
|
759
|
+
]);
|
|
726
760
|
export const AuthExchangeDeviceCodeRequestFormUrlEncoded = Schema.Struct({
|
|
727
761
|
grant_type: Schema.String.annotate({
|
|
728
762
|
description: "OAuth grant type. Must be 'urn:ietf:params:oauth:grant-type:device_code'.",
|
|
@@ -736,10 +770,43 @@ export const AuthExchangeDeviceCodeRequestFormUrlEncoded = Schema.Struct({
|
|
|
736
770
|
examples: ["axm-cli"],
|
|
737
771
|
}),
|
|
738
772
|
});
|
|
739
|
-
export const AuthExchangeDeviceCode200 =
|
|
740
|
-
|
|
741
|
-
Schema.
|
|
742
|
-
|
|
773
|
+
export const AuthExchangeDeviceCode200 = Schema.Struct({
|
|
774
|
+
access_token: Schema.String,
|
|
775
|
+
refresh_token: Schema.String,
|
|
776
|
+
token_type: Schema.Literal("Bearer"),
|
|
777
|
+
expires_in: Schema.Number.check(Schema.isInt()),
|
|
778
|
+
expires_at: Schema.String,
|
|
779
|
+
scope: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
780
|
+
});
|
|
781
|
+
export const AuthExchangeDeviceCode400 = Schema.Union([TokenOAuthError, DecodeErrorResponse]);
|
|
782
|
+
export const AuthExchangeCliAuthorizationCodeRequestFormUrlEncoded = Schema.Struct({
|
|
783
|
+
grant_type: Schema.String.annotate({
|
|
784
|
+
description: "OAuth grant type. Must be 'authorization_code'.",
|
|
785
|
+
examples: ["authorization_code"],
|
|
786
|
+
}),
|
|
787
|
+
code: Schema.String.annotate({
|
|
788
|
+
description: "Authorization code returned to the loopback callback.",
|
|
789
|
+
}),
|
|
790
|
+
code_verifier: Schema.String.annotate({ description: "PKCE verifier generated by the CLI." }),
|
|
791
|
+
client_id: Schema.String.annotate({
|
|
792
|
+
description: "OAuth client identifier, e.g. 'axm-cli'.",
|
|
793
|
+
examples: ["axm-cli"],
|
|
794
|
+
}),
|
|
795
|
+
redirect_uri: Schema.String.annotate({
|
|
796
|
+
description: "Loopback redirect URI the authorization code was bound to.",
|
|
797
|
+
}),
|
|
798
|
+
});
|
|
799
|
+
export const AuthExchangeCliAuthorizationCode200 = Schema.Struct({
|
|
800
|
+
access_token: Schema.String,
|
|
801
|
+
refresh_token: Schema.String,
|
|
802
|
+
token_type: Schema.Literal("Bearer"),
|
|
803
|
+
expires_in: Schema.Number.check(Schema.isInt()),
|
|
804
|
+
expires_at: Schema.String,
|
|
805
|
+
scope: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
806
|
+
});
|
|
807
|
+
export const AuthExchangeCliAuthorizationCode400 = Schema.Union([
|
|
808
|
+
TokenOAuthError,
|
|
809
|
+
DecodeErrorResponse,
|
|
743
810
|
]);
|
|
744
811
|
export const AuthRefreshTokenRequestFormUrlEncoded = Schema.Struct({
|
|
745
812
|
grant_type: Schema.Literal("refresh_token").annotate({
|
|
@@ -751,15 +818,27 @@ export const AuthRefreshTokenRequestFormUrlEncoded = Schema.Struct({
|
|
|
751
818
|
Schema.Null,
|
|
752
819
|
])),
|
|
753
820
|
});
|
|
754
|
-
export const AuthRefreshToken200 =
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
821
|
+
export const AuthRefreshToken200 = Schema.Struct({
|
|
822
|
+
access_token: Schema.String,
|
|
823
|
+
refresh_token: Schema.String,
|
|
824
|
+
token_type: Schema.Literal("Bearer"),
|
|
825
|
+
expires_in: Schema.Number.check(Schema.isInt()),
|
|
826
|
+
expires_at: Schema.String,
|
|
827
|
+
scope: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
828
|
+
});
|
|
829
|
+
export const AuthRefreshToken400 = Schema.Union([TokenOAuthError, DecodeErrorResponse]);
|
|
830
|
+
export const AuthRevokeOAuthTokenRequestFormUrlEncoded = Schema.Struct({
|
|
758
831
|
token: Schema.String.check(Schema.isMinLength(1, {
|
|
759
832
|
description: "The access token or refresh token to revoke. Revocation is idempotent.",
|
|
760
833
|
})),
|
|
834
|
+
token_type_hint: Schema.optionalKey(Schema.Union([
|
|
835
|
+
Schema.Literals(["refresh_token", "access_token"]).annotate({
|
|
836
|
+
description: "Optional RFC 7009 token type hint. Revocation remains non-enumerating.",
|
|
837
|
+
}),
|
|
838
|
+
Schema.Null,
|
|
839
|
+
])),
|
|
761
840
|
});
|
|
762
|
-
export const
|
|
841
|
+
export const AuthRevokeOAuthToken400 = DecodeErrorResponse;
|
|
763
842
|
export const AuthGetMe200 = AuthMeResponse;
|
|
764
843
|
export const AuthGetMe400 = DecodeErrorResponse;
|
|
765
844
|
export const AuthGetMe401 = UnauthorizedError;
|
|
@@ -853,7 +932,7 @@ export const ExtensionsListByOwner200 = Schema.Struct({
|
|
|
853
932
|
name: ExtensionName,
|
|
854
933
|
owner: Handle,
|
|
855
934
|
type: ExtensionType,
|
|
856
|
-
latestVersion:
|
|
935
|
+
latestVersion: Version,
|
|
857
936
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
858
937
|
repository: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
859
938
|
license: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -869,7 +948,7 @@ export const ExtensionsListByType200 = Schema.Struct({
|
|
|
869
948
|
name: ExtensionName,
|
|
870
949
|
owner: Handle,
|
|
871
950
|
type: ExtensionType,
|
|
872
|
-
latestVersion:
|
|
951
|
+
latestVersion: Version,
|
|
873
952
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
874
953
|
repository: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
875
954
|
license: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -889,10 +968,10 @@ export const ExtensionsGet200 = Schema.Struct({
|
|
|
889
968
|
license: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
890
969
|
authors: Schema.optionalKey(Schema.Union([Schema.Array(Author), Schema.Null])),
|
|
891
970
|
versions: Schema.Array(Schema.Struct({
|
|
892
|
-
version:
|
|
971
|
+
version: Version,
|
|
893
972
|
published: IsoDateTimeString,
|
|
894
973
|
integrity: Schema.String.annotate({ readOnly: true }),
|
|
895
|
-
dependencies: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String,
|
|
974
|
+
dependencies: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, VersionRange), Schema.Null])),
|
|
896
975
|
companionPackages: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
897
976
|
yanked_at: Schema.optionalKey(Schema.Union([IsoDateTimeString, Schema.Null])),
|
|
898
977
|
})),
|
|
@@ -927,7 +1006,7 @@ export const ExtensionsGetVersion200 = Schema.Struct({
|
|
|
927
1006
|
name: ExtensionName,
|
|
928
1007
|
owner: Handle,
|
|
929
1008
|
type: ExtensionType,
|
|
930
|
-
version:
|
|
1009
|
+
version: Version,
|
|
931
1010
|
status: Schema.Literals(["pending", "available", "failed"]).annotate({ readOnly: true }),
|
|
932
1011
|
published: IsoDateTimeString,
|
|
933
1012
|
integrity: Schema.String.annotate({ readOnly: true }),
|
|
@@ -935,7 +1014,7 @@ export const ExtensionsGetVersion200 = Schema.Struct({
|
|
|
935
1014
|
repository: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
936
1015
|
license: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
937
1016
|
authors: Schema.optionalKey(Schema.Union([Schema.Array(Author), Schema.Null])),
|
|
938
|
-
dependencies: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String,
|
|
1017
|
+
dependencies: Schema.optionalKey(Schema.Union([Schema.Record(Schema.String, VersionRange), Schema.Null])),
|
|
939
1018
|
companionPackages: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
940
1019
|
yanked_at: Schema.optionalKey(Schema.Union([IsoDateTimeString, Schema.Null])),
|
|
941
1020
|
deleted_at: Schema.optionalKey(Schema.Union([IsoDateTimeString, Schema.Null])),
|
|
@@ -950,7 +1029,7 @@ export const ExtensionsPublishVersion200 = Schema.Struct({
|
|
|
950
1029
|
owner: Handle,
|
|
951
1030
|
type: ExtensionType,
|
|
952
1031
|
name: ExtensionName,
|
|
953
|
-
version:
|
|
1032
|
+
version: Version,
|
|
954
1033
|
integrity: Schema.String.annotate({ readOnly: true }),
|
|
955
1034
|
sha256_hex: Schema.String.annotate({ readOnly: true }),
|
|
956
1035
|
published_at: IsoDateTimeString,
|
|
@@ -960,7 +1039,7 @@ export const ExtensionsPublishVersion201 = Schema.Struct({
|
|
|
960
1039
|
owner: Handle,
|
|
961
1040
|
type: ExtensionType,
|
|
962
1041
|
name: ExtensionName,
|
|
963
|
-
version:
|
|
1042
|
+
version: Version,
|
|
964
1043
|
integrity: Schema.String.annotate({ readOnly: true }),
|
|
965
1044
|
sha256_hex: Schema.String.annotate({ readOnly: true }),
|
|
966
1045
|
published_at: IsoDateTimeString,
|
|
@@ -1018,7 +1097,7 @@ export const ExtensionsYankVersion200 = Schema.Struct({
|
|
|
1018
1097
|
owner: Handle,
|
|
1019
1098
|
type: ExtensionType,
|
|
1020
1099
|
name: ExtensionName,
|
|
1021
|
-
version:
|
|
1100
|
+
version: Version,
|
|
1022
1101
|
yankedAt: Schema.Union([IsoDateTimeString, Schema.Null]),
|
|
1023
1102
|
});
|
|
1024
1103
|
export const ExtensionsYankVersion400 = DecodeErrorResponse;
|
|
@@ -1029,7 +1108,7 @@ export const ExtensionsUnyankVersion200 = Schema.Struct({
|
|
|
1029
1108
|
owner: Handle,
|
|
1030
1109
|
type: ExtensionType,
|
|
1031
1110
|
name: ExtensionName,
|
|
1032
|
-
version:
|
|
1111
|
+
version: Version,
|
|
1033
1112
|
yankedAt: Schema.Null,
|
|
1034
1113
|
});
|
|
1035
1114
|
export const ExtensionsUnyankVersion400 = DecodeErrorResponse;
|
|
@@ -1207,19 +1286,28 @@ export const make = (httpClient, options = {}) => {
|
|
|
1207
1286
|
"500": decodeError("AuthIssueDeviceCode500", AuthIssueDeviceCode500),
|
|
1208
1287
|
orElse: unexpectedStatus,
|
|
1209
1288
|
}))),
|
|
1289
|
+
AuthExchangeToken: (options) => HttpClientRequest.post(`/v1/auth/token`).pipe(HttpClientRequest.bodyUrlParams(options.payload), withResponse(options.config)(HttpClientResponse.matchStatus({
|
|
1290
|
+
"2xx": decodeSuccess(AuthExchangeToken200),
|
|
1291
|
+
"400": decodeError("AuthExchangeToken400", AuthExchangeToken400),
|
|
1292
|
+
orElse: unexpectedStatus,
|
|
1293
|
+
}))),
|
|
1210
1294
|
AuthExchangeDeviceCode: (options) => HttpClientRequest.post(`/v1/auth/device/token`).pipe(HttpClientRequest.bodyUrlParams(options.payload), withResponse(options.config)(HttpClientResponse.matchStatus({
|
|
1211
1295
|
"2xx": decodeSuccess(AuthExchangeDeviceCode200),
|
|
1212
1296
|
"400": decodeError("AuthExchangeDeviceCode400", AuthExchangeDeviceCode400),
|
|
1213
1297
|
orElse: unexpectedStatus,
|
|
1214
1298
|
}))),
|
|
1299
|
+
AuthExchangeCliAuthorizationCode: (options) => HttpClientRequest.post(`/v1/auth/cli/token`).pipe(HttpClientRequest.bodyUrlParams(options.payload), withResponse(options.config)(HttpClientResponse.matchStatus({
|
|
1300
|
+
"2xx": decodeSuccess(AuthExchangeCliAuthorizationCode200),
|
|
1301
|
+
"400": decodeError("AuthExchangeCliAuthorizationCode400", AuthExchangeCliAuthorizationCode400),
|
|
1302
|
+
orElse: unexpectedStatus,
|
|
1303
|
+
}))),
|
|
1215
1304
|
AuthRefreshToken: (options) => HttpClientRequest.post(`/v1/auth/token/refresh`).pipe(HttpClientRequest.bodyUrlParams(options.payload), withResponse(options.config)(HttpClientResponse.matchStatus({
|
|
1216
1305
|
"2xx": decodeSuccess(AuthRefreshToken200),
|
|
1217
1306
|
"400": decodeError("AuthRefreshToken400", AuthRefreshToken400),
|
|
1218
|
-
"401": decodeError("AuthRefreshToken401", AuthRefreshToken401),
|
|
1219
1307
|
orElse: unexpectedStatus,
|
|
1220
1308
|
}))),
|
|
1221
|
-
|
|
1222
|
-
"400": decodeError("
|
|
1309
|
+
AuthRevokeOAuthToken: (options) => HttpClientRequest.post(`/v1/auth/revoke`).pipe(HttpClientRequest.bodyUrlParams(options.payload), withResponse(options.config)(HttpClientResponse.matchStatus({
|
|
1310
|
+
"400": decodeError("AuthRevokeOAuthToken400", AuthRevokeOAuthToken400),
|
|
1223
1311
|
"200": () => Effect.void,
|
|
1224
1312
|
orElse: unexpectedStatus,
|
|
1225
1313
|
}))),
|