@agentxm/client-core 0.21.0 → 0.21.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 +32 -0
- package/dist/src/unstable/auth/auth-client.d.ts.map +1 -1
- package/dist/src/unstable/auth/auth-client.js +78 -0
- package/dist/src/unstable/auth/auth-client.js.map +1 -1
- package/dist/src/unstable/auth/index.d.ts +2 -1
- package/dist/src/unstable/auth/index.d.ts.map +1 -1
- package/dist/src/unstable/auth/index.js +1 -0
- package/dist/src/unstable/auth/index.js.map +1 -1
- package/dist/src/unstable/auth/loopback-login.d.ts.map +1 -1
- package/dist/src/unstable/auth/loopback-login.js +1 -0
- package/dist/src/unstable/auth/loopback-login.js.map +1 -1
- package/dist/src/unstable/auth/loopback-server.d.ts +1 -0
- package/dist/src/unstable/auth/loopback-server.d.ts.map +1 -1
- package/dist/src/unstable/auth/loopback-server.js +20 -5
- package/dist/src/unstable/auth/loopback-server.js.map +1 -1
- package/dist/src/unstable/auth/publish-authorization.d.ts +18 -0
- package/dist/src/unstable/auth/publish-authorization.d.ts.map +1 -0
- package/dist/src/unstable/auth/publish-authorization.js +83 -0
- package/dist/src/unstable/auth/publish-authorization.js.map +1 -0
- package/dist/src/unstable/registry/__generated__/registry-client.d.ts +728 -193
- package/dist/src/unstable/registry/__generated__/registry-client.d.ts.map +1 -1
- package/dist/src/unstable/registry/__generated__/registry-client.js +266 -82
- package/dist/src/unstable/registry/__generated__/registry-client.js.map +1 -1
- package/dist/src/unstable/registry/archive-cache.d.ts +51 -0
- package/dist/src/unstable/registry/archive-cache.d.ts.map +1 -0
- package/dist/src/unstable/registry/archive-cache.js +213 -0
- package/dist/src/unstable/registry/archive-cache.js.map +1 -0
- package/dist/src/unstable/registry/client.d.ts +10 -2
- package/dist/src/unstable/registry/client.d.ts.map +1 -1
- package/dist/src/unstable/registry/client.js +3 -1
- package/dist/src/unstable/registry/client.js.map +1 -1
- package/dist/src/unstable/registry/index.d.ts +2 -0
- package/dist/src/unstable/registry/index.d.ts.map +1 -1
- package/dist/src/unstable/registry/index.js +1 -0
- package/dist/src/unstable/registry/index.js.map +1 -1
- package/dist/src/unstable/registry/local-client.d.ts.map +1 -1
- package/dist/src/unstable/registry/local-client.js +114 -47
- package/dist/src/unstable/registry/local-client.js.map +1 -1
- package/dist/src/unstable/registry/remote-client.d.ts +2 -1
- package/dist/src/unstable/registry/remote-client.d.ts.map +1 -1
- package/dist/src/unstable/registry/remote-client.js +46 -59
- package/dist/src/unstable/registry/remote-client.js.map +1 -1
- package/package.json +6 -6
|
@@ -83,9 +83,12 @@ export const PublishDetails = Schema.Struct({
|
|
|
83
83
|
});
|
|
84
84
|
export const SessionTokenResponse = Schema.Struct({
|
|
85
85
|
access_token: Schema.String.annotate({ description: "OAuth 2.0 access token." }),
|
|
86
|
-
refresh_token: Schema.
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
refresh_token: Schema.optionalKey(Schema.Union([
|
|
87
|
+
Schema.String.annotate({
|
|
88
|
+
description: "OAuth 2.0 refresh token for obtaining new token pairs. Omitted for exact publish capabilities.",
|
|
89
|
+
}),
|
|
90
|
+
Schema.Null,
|
|
91
|
+
])),
|
|
89
92
|
token_type: Schema.Literal("Bearer"),
|
|
90
93
|
expires_in: Schema.Number.annotate({
|
|
91
94
|
description: "Access token lifetime remaining in seconds.",
|
|
@@ -98,6 +101,12 @@ export const SessionTokenResponse = Schema.Struct({
|
|
|
98
101
|
Schema.String.annotate({ description: "Space-delimited list of granted scopes." }),
|
|
99
102
|
Schema.Null,
|
|
100
103
|
])),
|
|
104
|
+
publish_request_id: Schema.optionalKey(Schema.Union([
|
|
105
|
+
Schema.String.annotate({
|
|
106
|
+
description: "Publish authorization request that produced a non-refreshable exact capability.",
|
|
107
|
+
}),
|
|
108
|
+
Schema.Null,
|
|
109
|
+
])),
|
|
101
110
|
}).annotate({
|
|
102
111
|
title: "Session Token Response",
|
|
103
112
|
description: "OAuth 2.0 token response containing an access/refresh token pair.",
|
|
@@ -152,12 +161,45 @@ export const StepUpChallengeResponse = Schema.Union([
|
|
|
152
161
|
expires_at: Schema.String.annotate({ description: "ISO timestamp when this proof expires." }),
|
|
153
162
|
}),
|
|
154
163
|
]).annotate({ title: "Step-up Challenge Response" });
|
|
164
|
+
export const Handle = Schema.String.check(Schema.isPattern(new RegExp("^@[a-z0-9_](?:[a-z0-9_-]*[a-z0-9_])?$"), {
|
|
165
|
+
title: "Handle",
|
|
166
|
+
description: "A unique username or organization name starting with @, like @my-org.",
|
|
167
|
+
examples: ["@my-org", "@username"],
|
|
168
|
+
}));
|
|
169
|
+
export const ExtensionType = Schema.Literals([
|
|
170
|
+
"skill",
|
|
171
|
+
"command",
|
|
172
|
+
"mcp-server",
|
|
173
|
+
"subagent",
|
|
174
|
+
"files",
|
|
175
|
+
"rule",
|
|
176
|
+
"hook",
|
|
177
|
+
"pack",
|
|
178
|
+
]).annotate({
|
|
179
|
+
title: "Extension Type",
|
|
180
|
+
description: "What kind of extension this is: skill, command, mcp-server, subagent, context, rule, hook, or pack.",
|
|
181
|
+
});
|
|
182
|
+
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])?$"), {
|
|
183
|
+
title: "Extension Name",
|
|
184
|
+
description: "The name of an extension — lowercase letters, numbers, and hyphens (e.g. my-skill).",
|
|
185
|
+
examples: ["my-skill", "code-review", "prettier"],
|
|
186
|
+
}));
|
|
187
|
+
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-]+)*))?$"), {
|
|
188
|
+
title: "Version",
|
|
189
|
+
description: "A semver version like 1.0.0. Ranges are not allowed here.",
|
|
190
|
+
examples: ["1.0.0", "2.3.1", "0.1.0-beta.1"],
|
|
191
|
+
}));
|
|
192
|
+
export const PublishAuthorizationRequestId = Schema.String.check(Schema.isPattern(new RegExp("^pubreq_[0-7][0-9a-hjkmnp-tv-z]{25}$"), {
|
|
193
|
+
title: "Publish Authorization Request ID",
|
|
194
|
+
description: "Identifies one exact browser-reviewed publish authorization request.",
|
|
195
|
+
examples: ["pubreq_01h455vb4pexka56gq5w2r7cpc"],
|
|
196
|
+
}));
|
|
197
|
+
export const IsoDateTimeString = Schema.String.check(Schema.isMinLength(1));
|
|
155
198
|
export const TokenId = Schema.String.check(Schema.isPattern(new RegExp("^tok_[0-7][0-9a-hjkmnp-tv-z]{25}$"), {
|
|
156
199
|
title: "Token ID",
|
|
157
200
|
description: "Identifies an access token or personal access token (PAT) issued to a user. Used to authenticate API requests to the registry.",
|
|
158
201
|
examples: ["tok_01h455vb4pexka56gq5w2r7cpc"],
|
|
159
202
|
}));
|
|
160
|
-
export const IsoDateTimeString = Schema.String.check(Schema.isMinLength(1));
|
|
161
203
|
export const ScopeCheckDetails = Schema.Struct({
|
|
162
204
|
requiredScope: Schema.String.annotate({
|
|
163
205
|
description: "The scope required to perform the requested operation.",
|
|
@@ -217,11 +259,6 @@ export const StepUpRequiredError = Schema.Struct({
|
|
|
217
259
|
authUrl: Schema.String,
|
|
218
260
|
doneUrl: Schema.String,
|
|
219
261
|
});
|
|
220
|
-
export const Handle = Schema.String.check(Schema.isPattern(new RegExp("^@[a-z0-9_](?:[a-z0-9_-]*[a-z0-9_])?$"), {
|
|
221
|
-
title: "Handle",
|
|
222
|
-
description: "A unique username or organization name starting with @, like @my-org.",
|
|
223
|
-
examples: ["@my-org", "@username"],
|
|
224
|
-
}));
|
|
225
262
|
export const OwnerResponse = Schema.Struct({
|
|
226
263
|
displayName: Schema.String.annotate({ description: "Display name for the owner account." }),
|
|
227
264
|
}).annotate({ title: "Owner Response", description: "Minimal owner summary for machine clients." });
|
|
@@ -274,29 +311,6 @@ export const ChangeTeamMemberRoleBody = Schema.Struct({
|
|
|
274
311
|
description: "Role within a team — 'admin' manages membership and grants; 'member' inherits grants.",
|
|
275
312
|
}),
|
|
276
313
|
}).annotate({ title: "Change Team Member Role Body" });
|
|
277
|
-
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])?$"), {
|
|
278
|
-
title: "Extension Name",
|
|
279
|
-
description: "The name of an extension — lowercase letters, numbers, and hyphens (e.g. my-skill).",
|
|
280
|
-
examples: ["my-skill", "code-review", "prettier"],
|
|
281
|
-
}));
|
|
282
|
-
export const ExtensionType = Schema.Literals([
|
|
283
|
-
"skill",
|
|
284
|
-
"command",
|
|
285
|
-
"mcp-server",
|
|
286
|
-
"subagent",
|
|
287
|
-
"files",
|
|
288
|
-
"rule",
|
|
289
|
-
"hook",
|
|
290
|
-
"pack",
|
|
291
|
-
]).annotate({
|
|
292
|
-
title: "Extension Type",
|
|
293
|
-
description: "What kind of extension this is: skill, command, mcp-server, subagent, context, rule, hook, or pack.",
|
|
294
|
-
});
|
|
295
|
-
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-]+)*))?$"), {
|
|
296
|
-
title: "Version",
|
|
297
|
-
description: "A semver version like 1.0.0. Ranges are not allowed here.",
|
|
298
|
-
examples: ["1.0.0", "2.3.1", "0.1.0-beta.1"],
|
|
299
|
-
}));
|
|
300
314
|
export const Repository = Schema.Struct({
|
|
301
315
|
url: Schema.String.annotate({
|
|
302
316
|
description: "Canonical repository URL for the extension source.",
|
|
@@ -477,9 +491,12 @@ export const PurgeExtensionVersionBody = Schema.Struct({
|
|
|
477
491
|
title: "Purge Extension Version Body",
|
|
478
492
|
description: "Administrative purge reason and explicit acknowledgement of shared-content impact.",
|
|
479
493
|
});
|
|
494
|
+
export const LibraryVisibility = Schema.Literals(["public", "private"]).annotate({
|
|
495
|
+
title: "Library Visibility",
|
|
496
|
+
});
|
|
480
497
|
export const LibraryId = Schema.String.check(Schema.isPattern(new RegExp("^lib_[0-7][0-9a-hjkmnp-tv-z]{25}$"), {
|
|
481
498
|
title: "Library ID",
|
|
482
|
-
description: "Identifies
|
|
499
|
+
description: "Identifies an account-owned installable collection of extension identities in the registry.",
|
|
483
500
|
examples: ["lib_01h455vb4pexka56gq5w2r7cpc"],
|
|
484
501
|
}));
|
|
485
502
|
export const LibraryName = Schema.String.annotate({
|
|
@@ -487,14 +504,16 @@ export const LibraryName = Schema.String.annotate({
|
|
|
487
504
|
description: "Canonical Library name within an owner namespace. Uses the same normalized slug grammar as handles.",
|
|
488
505
|
examples: ["frontend", "team-tools"],
|
|
489
506
|
});
|
|
490
|
-
export const LibraryVisibility = Schema.Literals(["public", "private"]).annotate({
|
|
491
|
-
title: "Library Visibility",
|
|
492
|
-
});
|
|
493
507
|
export const LibraryMemberId = Schema.String.check(Schema.isPattern(new RegExp("^lmem_[0-7][0-9a-hjkmnp-tv-z]{25}$"), {
|
|
494
508
|
title: "Library Member ID",
|
|
495
509
|
description: "Identifies an extension identity membership inside an installable registry library.",
|
|
496
510
|
examples: ["lmem_01h455vb4pexka56gq5w2r7cpc"],
|
|
497
511
|
}));
|
|
512
|
+
export const ExtensionVersionId = Schema.String.check(Schema.isPattern(new RegExp("^extv_[0-7][0-9a-hjkmnp-tv-z]{25}$"), {
|
|
513
|
+
title: "Extension Version ID",
|
|
514
|
+
description: "Identifies a specific published version of an extension. Each publish operation creates a new version under its parent extension.",
|
|
515
|
+
examples: ["extv_01h455vb4pexka56gq5w2r7cpc"],
|
|
516
|
+
}));
|
|
498
517
|
export const UpdateLibraryBody = Schema.Struct({
|
|
499
518
|
title: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
500
519
|
description: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
@@ -544,7 +563,7 @@ export const AuthMeToken = Schema.Struct({
|
|
|
544
563
|
id: Schema.String.annotate({
|
|
545
564
|
description: "Opaque identifier of the credential used for this request.",
|
|
546
565
|
}),
|
|
547
|
-
type: Schema.Literals(["session", "pat", "oidc"]).annotate({
|
|
566
|
+
type: Schema.Literals(["session", "pat", "oidc", "publish-capability"]).annotate({
|
|
548
567
|
title: "Token Type",
|
|
549
568
|
description: "The type of authentication token.",
|
|
550
569
|
}),
|
|
@@ -565,6 +584,30 @@ export const AuthMeToken = Schema.Struct({
|
|
|
565
584
|
title: "Token Info",
|
|
566
585
|
description: "Details about the token you used to authenticate.",
|
|
567
586
|
});
|
|
587
|
+
export const LibraryMemberCoordinate = Schema.Struct({
|
|
588
|
+
owner: Handle,
|
|
589
|
+
type: ExtensionType,
|
|
590
|
+
name: ExtensionName,
|
|
591
|
+
}).annotate({ title: "Library Member Coordinate" });
|
|
592
|
+
export const PublishIdentity = Schema.Struct({
|
|
593
|
+
owner: Handle,
|
|
594
|
+
type: ExtensionType,
|
|
595
|
+
name: ExtensionName,
|
|
596
|
+
version: Version,
|
|
597
|
+
}).annotate({
|
|
598
|
+
title: "Publish Identity",
|
|
599
|
+
description: "URL-path identity of the extension version under publish.",
|
|
600
|
+
});
|
|
601
|
+
export const SharedDigestConfirmationRequiredHttpError = Schema.Struct({
|
|
602
|
+
kind: Schema.Literal("SharedDigestConfirmationRequiredHttpError"),
|
|
603
|
+
type: Schema.String,
|
|
604
|
+
title: Schema.String,
|
|
605
|
+
status: Schema.Number.check(Schema.isInt()),
|
|
606
|
+
detail: Schema.String,
|
|
607
|
+
instance: Schema.optionalKey(Schema.String),
|
|
608
|
+
code: Schema.Literal("shared_digest_confirmation_required"),
|
|
609
|
+
affectedCoordinates: Schema.Array(Schema.Struct({ owner: Handle, type: ExtensionType, name: ExtensionName, version: Version })),
|
|
610
|
+
});
|
|
568
611
|
export const TokenListItem = Schema.Struct({
|
|
569
612
|
id: TokenId,
|
|
570
613
|
name: Schema.Union([
|
|
@@ -608,6 +651,7 @@ export const ForbiddenError = Schema.Struct({
|
|
|
608
651
|
"resource_restriction",
|
|
609
652
|
"scope_escalation",
|
|
610
653
|
"gat_requires_session",
|
|
654
|
+
"recent_authentication_required",
|
|
611
655
|
"team_create_not_authorized",
|
|
612
656
|
"team_delete_not_authorized",
|
|
613
657
|
"team_update_not_authorized",
|
|
@@ -622,6 +666,8 @@ export const ForbiddenError = Schema.Struct({
|
|
|
622
666
|
"publish/resource-restriction",
|
|
623
667
|
"publish/handle-not-owned",
|
|
624
668
|
"publish/publish-forbidden",
|
|
669
|
+
"publish/capability-binding-mismatch",
|
|
670
|
+
"publish/capability-expired",
|
|
625
671
|
]),
|
|
626
672
|
details: Schema.optionalKey(Schema.Union([ScopeCheckDetails, AuthorizationDenyDetails, PublishDetails])),
|
|
627
673
|
});
|
|
@@ -730,25 +776,6 @@ export const TeamMembership = Schema.Struct({
|
|
|
730
776
|
addedAt: Schema.String.annotate({ readOnly: true, format: "date-time" }),
|
|
731
777
|
addedBy: UserIdRef,
|
|
732
778
|
}).annotate({ title: "Team Membership" });
|
|
733
|
-
export const PublishIdentity = Schema.Struct({
|
|
734
|
-
owner: Handle,
|
|
735
|
-
type: ExtensionType,
|
|
736
|
-
name: ExtensionName,
|
|
737
|
-
version: Version,
|
|
738
|
-
}).annotate({
|
|
739
|
-
title: "Publish Identity",
|
|
740
|
-
description: "URL-path identity of the extension version under publish.",
|
|
741
|
-
});
|
|
742
|
-
export const SharedDigestConfirmationRequiredHttpError = Schema.Struct({
|
|
743
|
-
kind: Schema.Literal("SharedDigestConfirmationRequiredHttpError"),
|
|
744
|
-
type: Schema.String,
|
|
745
|
-
title: Schema.String,
|
|
746
|
-
status: Schema.Number.check(Schema.isInt()),
|
|
747
|
-
detail: Schema.String,
|
|
748
|
-
instance: Schema.optionalKey(Schema.String),
|
|
749
|
-
code: Schema.Literal("shared_digest_confirmation_required"),
|
|
750
|
-
affectedCoordinates: Schema.Array(Schema.Struct({ owner: Handle, type: ExtensionType, name: ExtensionName, version: Version })),
|
|
751
|
-
});
|
|
752
779
|
export const SearchHit = Schema.Struct({
|
|
753
780
|
name: ExtensionName,
|
|
754
781
|
owner: Handle,
|
|
@@ -760,6 +787,8 @@ export const SearchHit = Schema.Struct({
|
|
|
760
787
|
authors: Schema.optionalKey(Schema.Union([Schema.Array(Author), Schema.Null])),
|
|
761
788
|
deprecated_at: Schema.optionalKey(Schema.Union([IsoDateTimeString, Schema.Null])),
|
|
762
789
|
deprecation_notice: Schema.optionalKey(Schema.Union([Schema.String.annotate({ readOnly: true }), Schema.Null])),
|
|
790
|
+
matched_fields: Schema.optionalKey(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
791
|
+
visibility: Schema.Literals(["public", "private"]),
|
|
763
792
|
}).annotate({ title: "Search Hit", description: "A single extension matched by a search query." });
|
|
764
793
|
export const CompanionPackage = Schema.Struct({
|
|
765
794
|
purl: PackageIdentityPurl,
|
|
@@ -785,13 +814,13 @@ export const PublishLintFinding = Schema.Struct({
|
|
|
785
814
|
title: "Publish Lint Finding",
|
|
786
815
|
description: "One lint finding produced against the publish subject.",
|
|
787
816
|
});
|
|
817
|
+
export const PatchLibraryVisibilityBody = Schema.Struct({ visibility: LibraryVisibility }).annotate({ title: "Patch Library Visibility Body" });
|
|
788
818
|
export const CreateLibraryBody = Schema.Struct({
|
|
789
819
|
name: LibraryName,
|
|
790
820
|
title: Schema.String,
|
|
791
821
|
description: Schema.optionalKey(Schema.Union([Schema.Union([Schema.String, Schema.Null]), Schema.Null])),
|
|
792
822
|
visibility: Schema.optionalKey(Schema.Union([LibraryVisibility, Schema.Null])),
|
|
793
823
|
}).annotate({ title: "Create Library Body" });
|
|
794
|
-
export const PatchLibraryVisibilityBody = Schema.Struct({ visibility: LibraryVisibility }).annotate({ title: "Patch Library Visibility Body" });
|
|
795
824
|
export const LibraryMember = Schema.Struct({
|
|
796
825
|
id: LibraryMemberId,
|
|
797
826
|
libraryId: LibraryId,
|
|
@@ -801,6 +830,17 @@ export const LibraryMember = Schema.Struct({
|
|
|
801
830
|
extensionName: ExtensionName,
|
|
802
831
|
addedAt: Schema.String.annotate({ readOnly: true, format: "date-time" }),
|
|
803
832
|
}).annotate({ title: "Library Member" });
|
|
833
|
+
export const LibraryResolutionMember = Schema.Struct({
|
|
834
|
+
memberId: LibraryMemberId,
|
|
835
|
+
extensionId: ExtensionId,
|
|
836
|
+
extensionVersionId: ExtensionVersionId,
|
|
837
|
+
owner: Handle,
|
|
838
|
+
type: ExtensionType,
|
|
839
|
+
name: ExtensionName,
|
|
840
|
+
version: Version,
|
|
841
|
+
addedAt: IsoDateTimeString,
|
|
842
|
+
publishedAt: Schema.Union([IsoDateTimeString, Schema.Null]),
|
|
843
|
+
}).annotate({ title: "Library Resolution Member" });
|
|
804
844
|
export const AuthMeResponse = Schema.Struct({
|
|
805
845
|
user: AuthMeUser,
|
|
806
846
|
orgs: Schema.Array(Schema.Never).annotate({
|
|
@@ -811,6 +851,27 @@ export const AuthMeResponse = Schema.Struct({
|
|
|
811
851
|
title: "Auth Me Response",
|
|
812
852
|
description: "Your user profile, organizations, and token details.",
|
|
813
853
|
});
|
|
854
|
+
export const PatchLibraryMembersBody = Schema.Struct({
|
|
855
|
+
add: Schema.Array(LibraryMemberCoordinate),
|
|
856
|
+
remove: Schema.Array(LibraryMemberCoordinate),
|
|
857
|
+
}).annotate({ title: "Patch Library Members Body" });
|
|
858
|
+
export const PatchLibraryMembersResponse = Schema.Struct({
|
|
859
|
+
added: Schema.Array(LibraryMemberCoordinate),
|
|
860
|
+
removed: Schema.Array(LibraryMemberCoordinate),
|
|
861
|
+
unchanged: Schema.Array(Schema.Struct({ action: Schema.Literals(["add", "remove"]), member: LibraryMemberCoordinate })),
|
|
862
|
+
}).annotate({ title: "Patch Library Members Response" });
|
|
863
|
+
export const ExtensionIdentityMismatchError = Schema.Struct({
|
|
864
|
+
kind: Schema.Literal("ExtensionIdentityMismatchError"),
|
|
865
|
+
type: Schema.String,
|
|
866
|
+
title: Schema.String,
|
|
867
|
+
status: Schema.Number.check(Schema.isInt()),
|
|
868
|
+
detail: Schema.String,
|
|
869
|
+
instance: Schema.optionalKey(Schema.String),
|
|
870
|
+
code: Schema.Literal("extension_identity_mismatch"),
|
|
871
|
+
error: Schema.Literal("extension_identity_mismatch"),
|
|
872
|
+
identity: PublishIdentity,
|
|
873
|
+
mismatches: Schema.Array(PublishIdentityMismatchEntry),
|
|
874
|
+
});
|
|
814
875
|
export const TokenListResponse = Schema.Struct({
|
|
815
876
|
tokens: Schema.Array(TokenListItem).annotate({
|
|
816
877
|
description: "List of access tokens for the authenticated user.",
|
|
@@ -853,18 +914,6 @@ export const TeamMembershipList = Schema.Struct({
|
|
|
853
914
|
items: Schema.Array(TeamMembership),
|
|
854
915
|
nextCursor: Schema.Union([Schema.String, Schema.Null]),
|
|
855
916
|
}).annotate({ title: "Team Membership List" });
|
|
856
|
-
export const ExtensionIdentityMismatchError = Schema.Struct({
|
|
857
|
-
kind: Schema.Literal("ExtensionIdentityMismatchError"),
|
|
858
|
-
type: Schema.String,
|
|
859
|
-
title: Schema.String,
|
|
860
|
-
status: Schema.Number.check(Schema.isInt()),
|
|
861
|
-
detail: Schema.String,
|
|
862
|
-
instance: Schema.optionalKey(Schema.String),
|
|
863
|
-
code: Schema.Literal("extension_identity_mismatch"),
|
|
864
|
-
error: Schema.Literal("extension_identity_mismatch"),
|
|
865
|
-
identity: PublishIdentity,
|
|
866
|
-
mismatches: Schema.Array(PublishIdentityMismatchEntry),
|
|
867
|
-
});
|
|
868
917
|
export const SearchResponse = Schema.Struct({
|
|
869
918
|
extensions: Schema.Array(SearchHit).annotate({
|
|
870
919
|
description: "Extensions matching the query, ordered by recency.",
|
|
@@ -876,6 +925,10 @@ export const SearchResponse = Schema.Struct({
|
|
|
876
925
|
Schema.String.annotate({ description: "Opaque cursor for fetching the next page of results." }),
|
|
877
926
|
Schema.Null,
|
|
878
927
|
]),
|
|
928
|
+
total: Schema.Number.check(Schema.isInt()).check(Schema.makeFilterGroup([Schema.isFinite(), Schema.isGreaterThanOrEqualTo(0)], {
|
|
929
|
+
description: "Exact number of viewer-visible extensions matching the query.",
|
|
930
|
+
})),
|
|
931
|
+
total_relation: Schema.Literal("exact"),
|
|
879
932
|
}).annotate({
|
|
880
933
|
title: "Search Response",
|
|
881
934
|
description: "A page of extensions matching the search query.",
|
|
@@ -893,12 +946,32 @@ export const ExtensionLintFailedError = Schema.Struct({
|
|
|
893
946
|
displayRoot: Schema.String,
|
|
894
947
|
findings: Schema.Array(PublishLintFinding),
|
|
895
948
|
});
|
|
949
|
+
export const ListLibraryMembersResponse = Schema.Struct({
|
|
950
|
+
members: Schema.Array(LibraryMember),
|
|
951
|
+
total: Schema.Number.check(Schema.isInt()),
|
|
952
|
+
limit: Schema.Number.check(Schema.isInt()),
|
|
953
|
+
offset: Schema.Number.check(Schema.isInt()),
|
|
954
|
+
viewerRelative: Schema.Literal(true),
|
|
955
|
+
}).annotate({ title: "List Library Members Response" });
|
|
956
|
+
export const LibraryResolution = Schema.Struct({
|
|
957
|
+
libraryId: LibraryId,
|
|
958
|
+
reference: Schema.String,
|
|
959
|
+
name: LibraryName,
|
|
960
|
+
updatedAt: IsoDateTimeString,
|
|
961
|
+
membershipDigest: Schema.String,
|
|
962
|
+
viewerRelative: Schema.Literal(true),
|
|
963
|
+
members: Schema.Array(LibraryResolutionMember),
|
|
964
|
+
}).annotate({
|
|
965
|
+
title: "Library Resolution",
|
|
966
|
+
description: "The current Library membership and latest eligible versions visible to the authenticated viewer.",
|
|
967
|
+
});
|
|
896
968
|
export const LibraryDetail = Schema.Struct({
|
|
897
969
|
library: Library,
|
|
898
970
|
members: Schema.Array(LibraryMember),
|
|
899
|
-
|
|
971
|
+
accessibleMemberCount: Schema.Number.check(Schema.isInt())
|
|
900
972
|
.check(Schema.isFinite())
|
|
901
973
|
.check(Schema.isGreaterThanOrEqualTo(0)),
|
|
974
|
+
contentsMayVary: Schema.Literal(true),
|
|
902
975
|
}).annotate({ title: "Library Detail" });
|
|
903
976
|
export const MetaGet200 = MetaResponse;
|
|
904
977
|
export const MetaGet400 = DecodeErrorResponse;
|
|
@@ -1014,6 +1087,27 @@ export const AuthGetStepUpChallenge401 = ProblemDetails;
|
|
|
1014
1087
|
export const AuthGetStepUpChallenge404 = ProblemDetails;
|
|
1015
1088
|
export const AuthExchangeOidcToken400 = DecodeErrorResponse;
|
|
1016
1089
|
export const AuthExchangeOidcToken501 = ProblemDetails;
|
|
1090
|
+
export const AuthCreatePublishAuthorizationRequestRequestJson = Schema.Struct({
|
|
1091
|
+
client_id: Schema.String.check(Schema.isMinLength(1)),
|
|
1092
|
+
redirect_uri: Schema.String.check(Schema.isMinLength(1)),
|
|
1093
|
+
state: Schema.String.check(Schema.isMinLength(1)),
|
|
1094
|
+
code_challenge: Schema.String.check(Schema.isMinLength(1)),
|
|
1095
|
+
code_challenge_method: Schema.Literal("S256"),
|
|
1096
|
+
owner: Handle,
|
|
1097
|
+
type: ExtensionType,
|
|
1098
|
+
name: ExtensionName,
|
|
1099
|
+
version: Version,
|
|
1100
|
+
archive_sha256: Schema.String.check(Schema.isMinLength(1)),
|
|
1101
|
+
});
|
|
1102
|
+
export const AuthCreatePublishAuthorizationRequest201 = Schema.Struct({
|
|
1103
|
+
request_id: PublishAuthorizationRequestId,
|
|
1104
|
+
authorization_url: Schema.String,
|
|
1105
|
+
expires_at: IsoDateTimeString,
|
|
1106
|
+
});
|
|
1107
|
+
export const AuthCreatePublishAuthorizationRequest400 = Schema.Union([
|
|
1108
|
+
ProblemDetails,
|
|
1109
|
+
DecodeErrorResponse,
|
|
1110
|
+
]);
|
|
1017
1111
|
export const TokensListParams = Schema.Struct({
|
|
1018
1112
|
cursor: Schema.optionalKey(Schema.Union([
|
|
1019
1113
|
Schema.String.annotate({
|
|
@@ -1146,7 +1240,7 @@ export const ExtensionsGet200 = Schema.Struct({
|
|
|
1146
1240
|
name: ExtensionName,
|
|
1147
1241
|
owner: Handle,
|
|
1148
1242
|
type: ExtensionType,
|
|
1149
|
-
publisher_binding_id: Schema.
|
|
1243
|
+
publisher_binding_id: Schema.String.annotate({ readOnly: true }),
|
|
1150
1244
|
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1151
1245
|
repository: Schema.optionalKey(Schema.Union([Repository, Schema.Null])),
|
|
1152
1246
|
bugs: Schema.optionalKey(Schema.Union([Bugs, Schema.Null])),
|
|
@@ -1233,7 +1327,7 @@ export const ExtensionsGetVersion200 = Schema.Struct({
|
|
|
1233
1327
|
name: ExtensionName,
|
|
1234
1328
|
owner: Handle,
|
|
1235
1329
|
type: ExtensionType,
|
|
1236
|
-
publisher_binding_id: Schema.
|
|
1330
|
+
publisher_binding_id: Schema.String.annotate({ readOnly: true }),
|
|
1237
1331
|
version: Version,
|
|
1238
1332
|
status: Schema.Literals(["pending", "available", "failed"]).annotate({ readOnly: true }),
|
|
1239
1333
|
published: IsoDateTimeString,
|
|
@@ -1252,10 +1346,6 @@ export const ExtensionsGetVersion200 = Schema.Struct({
|
|
|
1252
1346
|
export const ExtensionsGetVersion400 = DecodeErrorResponse;
|
|
1253
1347
|
export const ExtensionsGetVersion404 = ProblemDetails;
|
|
1254
1348
|
export const ExtensionsGetVersion410 = ProblemDetails;
|
|
1255
|
-
export const ExtensionsPublishVersionRequestFormData = Schema.Struct({
|
|
1256
|
-
archive: Schema.String.annotate({ description: "Extension archive multipart file part." }),
|
|
1257
|
-
integrity: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1258
|
-
});
|
|
1259
1349
|
export const ExtensionsPublishVersion201 = Schema.Struct({
|
|
1260
1350
|
owner: Handle,
|
|
1261
1351
|
type: ExtensionType,
|
|
@@ -1300,7 +1390,6 @@ export const ExtensionsGetDeletionOperation403 = Schema.Union([ForbiddenError, F
|
|
|
1300
1390
|
export const ExtensionsGetDeletionOperation404 = ProblemDetails;
|
|
1301
1391
|
export const ExtensionsDownloadArchive400 = DecodeErrorResponse;
|
|
1302
1392
|
export const ExtensionsDownloadArchive404 = ProblemDetails;
|
|
1303
|
-
export const ExtensionsDownloadArchive410 = ProblemDetails;
|
|
1304
1393
|
export const ExtensionsDownloadArchive500 = ProblemDetails;
|
|
1305
1394
|
export const ExtensionsDeprecateRequestJson = DeprecateBody;
|
|
1306
1395
|
export const ExtensionsDeprecate200 = Schema.Struct({
|
|
@@ -1427,7 +1516,19 @@ export const AdminExtensionsPurgeExtensionVersion403 = Schema.Union([
|
|
|
1427
1516
|
]);
|
|
1428
1517
|
export const AdminExtensionsPurgeExtensionVersion404 = ProblemDetails;
|
|
1429
1518
|
export const AdminExtensionsPurgeExtensionVersion409 = SharedDigestConfirmationRequiredHttpError;
|
|
1430
|
-
export const
|
|
1519
|
+
export const LibrariesListLibrariesParams = Schema.Struct({
|
|
1520
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1521
|
+
offset: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1522
|
+
q: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1523
|
+
"filter[visibility]": Schema.optionalKey(Schema.Union([LibraryVisibility, Schema.Null])),
|
|
1524
|
+
});
|
|
1525
|
+
export const LibrariesListLibraries200 = Schema.Struct({
|
|
1526
|
+
libraries: Schema.Array(Library),
|
|
1527
|
+
total: Schema.Number.check(Schema.isInt()),
|
|
1528
|
+
limit: Schema.Number.check(Schema.isInt()),
|
|
1529
|
+
offset: Schema.Number.check(Schema.isInt()),
|
|
1530
|
+
viewerRelative: Schema.Literal(true),
|
|
1531
|
+
});
|
|
1431
1532
|
export const LibrariesListLibraries400 = DecodeErrorResponse;
|
|
1432
1533
|
export const LibrariesListLibraries404 = ProblemDetails;
|
|
1433
1534
|
export const LibrariesCreateLibraryRequestJson = CreateLibraryBody;
|
|
@@ -1454,6 +1555,27 @@ export const LibrariesUpdateLibrary401 = ProblemDetails;
|
|
|
1454
1555
|
export const LibrariesUpdateLibrary403 = Schema.Union([ForbiddenError, ForbiddenError]);
|
|
1455
1556
|
export const LibrariesUpdateLibrary404 = ProblemDetails;
|
|
1456
1557
|
export const LibrariesUpdateLibrary422 = ProblemDetails;
|
|
1558
|
+
export const LibrariesGetLibraryResolution200 = LibraryResolution;
|
|
1559
|
+
export const LibrariesGetLibraryResolution400 = DecodeErrorResponse;
|
|
1560
|
+
export const LibrariesGetLibraryResolution404 = ProblemDetails;
|
|
1561
|
+
export const LibrariesGetLibraryResolution422 = ProblemDetails;
|
|
1562
|
+
export const LibrariesListLibraryMembersParams = Schema.Struct({
|
|
1563
|
+
limit: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1564
|
+
offset: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1565
|
+
q: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1566
|
+
"filter[type]": Schema.optionalKey(Schema.Union([ExtensionType, Schema.Null])),
|
|
1567
|
+
});
|
|
1568
|
+
export const LibrariesListLibraryMembers200 = ListLibraryMembersResponse;
|
|
1569
|
+
export const LibrariesListLibraryMembers400 = DecodeErrorResponse;
|
|
1570
|
+
export const LibrariesListLibraryMembers404 = ProblemDetails;
|
|
1571
|
+
export const LibrariesListLibraryMembers422 = ProblemDetails;
|
|
1572
|
+
export const LibrariesPatchLibraryMembersRequestJson = PatchLibraryMembersBody;
|
|
1573
|
+
export const LibrariesPatchLibraryMembers200 = PatchLibraryMembersResponse;
|
|
1574
|
+
export const LibrariesPatchLibraryMembers400 = DecodeErrorResponse;
|
|
1575
|
+
export const LibrariesPatchLibraryMembers401 = ProblemDetails;
|
|
1576
|
+
export const LibrariesPatchLibraryMembers403 = Schema.Union([ForbiddenError, ForbiddenError]);
|
|
1577
|
+
export const LibrariesPatchLibraryMembers404 = ProblemDetails;
|
|
1578
|
+
export const LibrariesPatchLibraryMembers422 = ProblemDetails;
|
|
1457
1579
|
export const LibrariesSetLibraryVisibilityRequestJson = PatchLibraryVisibilityBody;
|
|
1458
1580
|
export const LibrariesSetLibraryVisibility200 = Library;
|
|
1459
1581
|
export const LibrariesSetLibraryVisibility400 = DecodeErrorResponse;
|
|
@@ -1629,9 +1751,19 @@ export const SearchSearchExtensionsParams = Schema.Struct({
|
|
|
1629
1751
|
}),
|
|
1630
1752
|
Schema.Null,
|
|
1631
1753
|
])),
|
|
1754
|
+
type: Schema.optionalKey(Schema.Union([ExtensionType, Schema.Null])),
|
|
1755
|
+
sort: Schema.optionalKey(Schema.Union([
|
|
1756
|
+
Schema.Literals(["relevance", "popular", "newest", "updated", "name"]),
|
|
1757
|
+
Schema.Null,
|
|
1758
|
+
])),
|
|
1759
|
+
owner: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1760
|
+
package: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1761
|
+
license: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
|
|
1762
|
+
lifecycle: Schema.optionalKey(Schema.Union([Schema.Literals(["all", "active", "deprecated"]), Schema.Null])),
|
|
1763
|
+
visibility: Schema.optionalKey(Schema.Union([Schema.Literals(["all", "public", "private"]), Schema.Null])),
|
|
1632
1764
|
});
|
|
1633
1765
|
export const SearchSearchExtensions200 = SearchResponse;
|
|
1634
|
-
export const SearchSearchExtensions400 = DecodeErrorResponse;
|
|
1766
|
+
export const SearchSearchExtensions400 = Schema.Union([ProblemDetails, DecodeErrorResponse]);
|
|
1635
1767
|
export const make = (httpClient, options = {}) => {
|
|
1636
1768
|
const unexpectedStatus = (response) => Effect.flatMap(Effect.orElseSucceed(response.json, () => "Unexpected status code"), (description) => Effect.fail(new HttpClientError.HttpClientError({
|
|
1637
1769
|
reason: new HttpClientError.StatusCodeError({
|
|
@@ -1708,6 +1840,11 @@ export const make = (httpClient, options = {}) => {
|
|
|
1708
1840
|
"204": () => Effect.void,
|
|
1709
1841
|
orElse: unexpectedStatus,
|
|
1710
1842
|
}))),
|
|
1843
|
+
AuthCreatePublishAuthorizationRequest: (options) => HttpClientRequest.post(`/v1/auth/publish-requests`).pipe(HttpClientRequest.bodyJsonUnsafe(options.payload), withResponse(options.config)(HttpClientResponse.matchStatus({
|
|
1844
|
+
"2xx": decodeSuccess(AuthCreatePublishAuthorizationRequest201),
|
|
1845
|
+
"400": decodeError("AuthCreatePublishAuthorizationRequest400", AuthCreatePublishAuthorizationRequest400),
|
|
1846
|
+
orElse: unexpectedStatus,
|
|
1847
|
+
}))),
|
|
1711
1848
|
TokensList: (options) => HttpClientRequest.get(`/v1/tokens`).pipe(HttpClientRequest.setUrlParams({
|
|
1712
1849
|
cursor: options?.params?.["cursor"],
|
|
1713
1850
|
limit: options?.params?.["limit"],
|
|
@@ -1866,7 +2003,7 @@ export const make = (httpClient, options = {}) => {
|
|
|
1866
2003
|
"410": decodeError("ExtensionsGetVersion410", ExtensionsGetVersion410),
|
|
1867
2004
|
orElse: unexpectedStatus,
|
|
1868
2005
|
}))),
|
|
1869
|
-
ExtensionsPublishVersion: (owner, type, name, version, options) => HttpClientRequest.put(`/v1/extensions/${owner}/${type}/${name}/${version}`).pipe(
|
|
2006
|
+
ExtensionsPublishVersion: (owner, type, name, version, options) => HttpClientRequest.put(`/v1/extensions/${owner}/${type}/${name}/${version}`).pipe(withResponse(options?.config)(HttpClientResponse.matchStatus({
|
|
1870
2007
|
"2xx": decodeSuccess(ExtensionsPublishVersion201),
|
|
1871
2008
|
"400": decodeError("ExtensionsPublishVersion400", ExtensionsPublishVersion400),
|
|
1872
2009
|
"401": decodeError("ExtensionsPublishVersion401", ExtensionsPublishVersion401),
|
|
@@ -1893,11 +2030,17 @@ export const make = (httpClient, options = {}) => {
|
|
|
1893
2030
|
"2xx": decodeBinary,
|
|
1894
2031
|
"400": decodeError("ExtensionsDownloadArchive400", ExtensionsDownloadArchive400),
|
|
1895
2032
|
"404": decodeError("ExtensionsDownloadArchive404", ExtensionsDownloadArchive404),
|
|
1896
|
-
"410": decodeError("ExtensionsDownloadArchive410", ExtensionsDownloadArchive410),
|
|
1897
2033
|
"500": decodeError("ExtensionsDownloadArchive500", ExtensionsDownloadArchive500),
|
|
1898
2034
|
orElse: unexpectedStatus,
|
|
1899
2035
|
}))),
|
|
1900
2036
|
ExtensionsDownloadArchiveStream: (owner, type, name, version) => HttpClientRequest.get(`/v1/extensions/${owner}/${type}/${name}/${version}/archive`).pipe(binaryRequest),
|
|
2037
|
+
ExtensionsHeadArchive: (owner, type, name, version, options) => HttpClientRequest.head(`/v1/extensions/${owner}/${type}/${name}/${version}/archive`).pipe(withResponse(options?.config)(HttpClientResponse.matchStatus({
|
|
2038
|
+
"200": () => Effect.void,
|
|
2039
|
+
"400": decodeVoidError("400"),
|
|
2040
|
+
"404": decodeVoidError("404"),
|
|
2041
|
+
"500": decodeVoidError("500"),
|
|
2042
|
+
orElse: unexpectedStatus,
|
|
2043
|
+
}))),
|
|
1901
2044
|
ExtensionsDeprecate: (owner, type, name, options) => HttpClientRequest.post(`/v1/extensions/${owner}/${type}/${name}/deprecate`).pipe(HttpClientRequest.bodyJsonUnsafe(options.payload), withResponse(options.config)(HttpClientResponse.matchStatus({
|
|
1902
2045
|
"2xx": decodeSuccess(ExtensionsDeprecate200),
|
|
1903
2046
|
"400": decodeError("ExtensionsDeprecate400", ExtensionsDeprecate400),
|
|
@@ -1955,7 +2098,12 @@ export const make = (httpClient, options = {}) => {
|
|
|
1955
2098
|
"409": decodeError("AdminExtensionsPurgeExtensionVersion409", AdminExtensionsPurgeExtensionVersion409),
|
|
1956
2099
|
orElse: unexpectedStatus,
|
|
1957
2100
|
}))),
|
|
1958
|
-
LibrariesListLibraries: (owner, options) => HttpClientRequest.get(`/v1/libraries/${owner}`).pipe(
|
|
2101
|
+
LibrariesListLibraries: (owner, options) => HttpClientRequest.get(`/v1/libraries/${owner}`).pipe(HttpClientRequest.setUrlParams({
|
|
2102
|
+
limit: options?.params?.["limit"],
|
|
2103
|
+
offset: options?.params?.["offset"],
|
|
2104
|
+
q: options?.params?.["q"],
|
|
2105
|
+
"filter[visibility]": options?.params?.["filter[visibility]"],
|
|
2106
|
+
}), withResponse(options?.config)(HttpClientResponse.matchStatus({
|
|
1959
2107
|
"2xx": decodeSuccess(LibrariesListLibraries200),
|
|
1960
2108
|
"400": decodeError("LibrariesListLibraries400", LibrariesListLibraries400),
|
|
1961
2109
|
"404": decodeError("LibrariesListLibraries404", LibrariesListLibraries404),
|
|
@@ -1996,6 +2144,35 @@ export const make = (httpClient, options = {}) => {
|
|
|
1996
2144
|
"422": decodeError("LibrariesUpdateLibrary422", LibrariesUpdateLibrary422),
|
|
1997
2145
|
orElse: unexpectedStatus,
|
|
1998
2146
|
}))),
|
|
2147
|
+
LibrariesGetLibraryResolution: (owner, name, options) => HttpClientRequest.get(`/v1/libraries/${owner}/${name}/resolution`).pipe(withResponse(options?.config)(HttpClientResponse.matchStatus({
|
|
2148
|
+
"2xx": decodeSuccess(LibrariesGetLibraryResolution200),
|
|
2149
|
+
"400": decodeError("LibrariesGetLibraryResolution400", LibrariesGetLibraryResolution400),
|
|
2150
|
+
"404": decodeError("LibrariesGetLibraryResolution404", LibrariesGetLibraryResolution404),
|
|
2151
|
+
"422": decodeError("LibrariesGetLibraryResolution422", LibrariesGetLibraryResolution422),
|
|
2152
|
+
"304": () => Effect.void,
|
|
2153
|
+
orElse: unexpectedStatus,
|
|
2154
|
+
}))),
|
|
2155
|
+
LibrariesListLibraryMembers: (owner, name, options) => HttpClientRequest.get(`/v1/libraries/${owner}/${name}/members`).pipe(HttpClientRequest.setUrlParams({
|
|
2156
|
+
limit: options?.params?.["limit"],
|
|
2157
|
+
offset: options?.params?.["offset"],
|
|
2158
|
+
q: options?.params?.["q"],
|
|
2159
|
+
"filter[type]": options?.params?.["filter[type]"],
|
|
2160
|
+
}), withResponse(options?.config)(HttpClientResponse.matchStatus({
|
|
2161
|
+
"2xx": decodeSuccess(LibrariesListLibraryMembers200),
|
|
2162
|
+
"400": decodeError("LibrariesListLibraryMembers400", LibrariesListLibraryMembers400),
|
|
2163
|
+
"404": decodeError("LibrariesListLibraryMembers404", LibrariesListLibraryMembers404),
|
|
2164
|
+
"422": decodeError("LibrariesListLibraryMembers422", LibrariesListLibraryMembers422),
|
|
2165
|
+
orElse: unexpectedStatus,
|
|
2166
|
+
}))),
|
|
2167
|
+
LibrariesPatchLibraryMembers: (owner, name, options) => HttpClientRequest.patch(`/v1/libraries/${owner}/${name}/members`).pipe(HttpClientRequest.bodyJsonUnsafe(options.payload), withResponse(options.config)(HttpClientResponse.matchStatus({
|
|
2168
|
+
"2xx": decodeSuccess(LibrariesPatchLibraryMembers200),
|
|
2169
|
+
"400": decodeError("LibrariesPatchLibraryMembers400", LibrariesPatchLibraryMembers400),
|
|
2170
|
+
"401": decodeError("LibrariesPatchLibraryMembers401", LibrariesPatchLibraryMembers401),
|
|
2171
|
+
"403": decodeError("LibrariesPatchLibraryMembers403", LibrariesPatchLibraryMembers403),
|
|
2172
|
+
"404": decodeError("LibrariesPatchLibraryMembers404", LibrariesPatchLibraryMembers404),
|
|
2173
|
+
"422": decodeError("LibrariesPatchLibraryMembers422", LibrariesPatchLibraryMembers422),
|
|
2174
|
+
orElse: unexpectedStatus,
|
|
2175
|
+
}))),
|
|
1999
2176
|
LibrariesSetLibraryVisibility: (owner, name, options) => HttpClientRequest.patch(`/v1/libraries/${owner}/${name}/visibility`).pipe(HttpClientRequest.bodyJsonUnsafe(options.payload), withResponse(options.config)(HttpClientResponse.matchStatus({
|
|
2000
2177
|
"2xx": decodeSuccess(LibrariesSetLibraryVisibility200),
|
|
2001
2178
|
"400": decodeError("LibrariesSetLibraryVisibility400", LibrariesSetLibraryVisibility400),
|
|
@@ -2100,6 +2277,13 @@ export const make = (httpClient, options = {}) => {
|
|
|
2100
2277
|
q: options.params["q"],
|
|
2101
2278
|
cursor: options.params["cursor"],
|
|
2102
2279
|
limit: options.params["limit"],
|
|
2280
|
+
type: options.params["type"],
|
|
2281
|
+
sort: options.params["sort"],
|
|
2282
|
+
owner: options.params["owner"],
|
|
2283
|
+
package: options.params["package"],
|
|
2284
|
+
license: options.params["license"],
|
|
2285
|
+
lifecycle: options.params["lifecycle"],
|
|
2286
|
+
visibility: options.params["visibility"],
|
|
2103
2287
|
}), withResponse(options.config)(HttpClientResponse.matchStatus({
|
|
2104
2288
|
"2xx": decodeSuccess(SearchSearchExtensions200),
|
|
2105
2289
|
"400": decodeError("SearchSearchExtensions400", SearchSearchExtensions400),
|