@detergent-software/atk 7.8.0 → 7.9.0-dev.2
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/README.md +13 -11
- package/build/commands/audit.d.ts.map +1 -1
- package/build/commands/audit.js +9 -0
- package/build/commands/audit.js.map +1 -1
- package/build/commands/browse.js +1 -1
- package/build/commands/browse.js.map +1 -1
- package/build/commands/cache.d.ts +1 -1
- package/build/commands/info.d.ts +2 -1
- package/build/commands/info.d.ts.map +1 -1
- package/build/commands/info.js +32 -6
- package/build/commands/info.js.map +1 -1
- package/build/commands/list.js +1 -1
- package/build/commands/list.js.map +1 -1
- package/build/commands/outdated.d.ts.map +1 -1
- package/build/commands/outdated.js +9 -0
- package/build/commands/outdated.js.map +1 -1
- package/build/commands/publish.d.ts +1 -1
- package/build/commands/publish.d.ts.map +1 -1
- package/build/commands/publish.js +2 -1
- package/build/commands/publish.js.map +1 -1
- package/build/commands/reviewer.js +1 -1
- package/build/commands/reviewer.js.map +1 -1
- package/build/commands/search.d.ts.map +1 -1
- package/build/commands/search.js +10 -1
- package/build/commands/search.js.map +1 -1
- package/build/components/AssetDetail.d.ts +5 -1
- package/build/components/AssetDetail.d.ts.map +1 -1
- package/build/components/AssetDetail.js +4 -3
- package/build/components/AssetDetail.js.map +1 -1
- package/build/components/BundleDetail.d.ts +5 -1
- package/build/components/BundleDetail.d.ts.map +1 -1
- package/build/components/BundleDetail.js +3 -2
- package/build/components/BundleDetail.js.map +1 -1
- package/build/components/ReadmeSection.d.ts +17 -0
- package/build/components/ReadmeSection.d.ts.map +1 -0
- package/build/components/ReadmeSection.js +17 -0
- package/build/components/ReadmeSection.js.map +1 -0
- package/build/components/index.d.ts +1 -0
- package/build/components/index.d.ts.map +1 -1
- package/build/components/index.js +1 -0
- package/build/components/index.js.map +1 -1
- package/build/hooks/usePublishState.d.ts.map +1 -1
- package/build/hooks/usePublishState.js +5 -7
- package/build/hooks/usePublishState.js.map +1 -1
- package/build/lib/api/client/client.gen.d.ts +3 -0
- package/build/lib/api/client/client.gen.d.ts.map +1 -0
- package/build/lib/api/client/client.gen.js +217 -0
- package/build/lib/api/client/client.gen.js.map +1 -0
- package/build/lib/api/client/index.d.ts +11 -0
- package/build/lib/api/client/index.d.ts.map +1 -0
- package/build/lib/api/client/index.js +7 -0
- package/build/lib/api/client/index.js.map +1 -0
- package/build/lib/api/client/types.gen.d.ts +121 -0
- package/build/lib/api/client/types.gen.d.ts.map +1 -0
- package/build/lib/api/client/types.gen.js +3 -0
- package/build/lib/api/client/types.gen.js.map +1 -0
- package/build/lib/api/client/utils.gen.d.ts +38 -0
- package/build/lib/api/client/utils.gen.d.ts.map +1 -0
- package/build/lib/api/client/utils.gen.js +229 -0
- package/build/lib/api/client/utils.gen.js.map +1 -0
- package/build/lib/api/client.gen.d.ts +13 -0
- package/build/lib/api/client.gen.d.ts.map +1 -0
- package/build/lib/api/client.gen.js +4 -0
- package/build/lib/api/client.gen.js.map +1 -0
- package/build/lib/api/core/auth.gen.d.ts +26 -0
- package/build/lib/api/core/auth.gen.d.ts.map +1 -0
- package/build/lib/api/core/auth.gen.js +15 -0
- package/build/lib/api/core/auth.gen.js.map +1 -0
- package/build/lib/api/core/bodySerializer.gen.d.ts +26 -0
- package/build/lib/api/core/bodySerializer.gen.d.ts.map +1 -0
- package/build/lib/api/core/bodySerializer.gen.js +58 -0
- package/build/lib/api/core/bodySerializer.gen.js.map +1 -0
- package/build/lib/api/core/params.gen.d.ts +44 -0
- package/build/lib/api/core/params.gen.d.ts.map +1 -0
- package/build/lib/api/core/params.gen.js +110 -0
- package/build/lib/api/core/params.gen.js.map +1 -0
- package/build/lib/api/core/pathSerializer.gen.d.ts +34 -0
- package/build/lib/api/core/pathSerializer.gen.d.ts.map +1 -0
- package/build/lib/api/core/pathSerializer.gen.js +107 -0
- package/build/lib/api/core/pathSerializer.gen.js.map +1 -0
- package/build/lib/api/core/queryKeySerializer.gen.d.ts +19 -0
- package/build/lib/api/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/build/lib/api/core/queryKeySerializer.gen.js +93 -0
- package/build/lib/api/core/queryKeySerializer.gen.js.map +1 -0
- package/build/lib/api/core/serverSentEvents.gen.d.ts +72 -0
- package/build/lib/api/core/serverSentEvents.gen.d.ts.map +1 -0
- package/build/lib/api/core/serverSentEvents.gen.js +133 -0
- package/build/lib/api/core/serverSentEvents.gen.js.map +1 -0
- package/build/lib/api/core/types.gen.d.ts +84 -0
- package/build/lib/api/core/types.gen.d.ts.map +1 -0
- package/build/lib/api/core/types.gen.js +3 -0
- package/build/lib/api/core/types.gen.js.map +1 -0
- package/build/lib/api/core/utils.gen.d.ts +20 -0
- package/build/lib/api/core/utils.gen.d.ts.map +1 -0
- package/build/lib/api/core/utils.gen.js +88 -0
- package/build/lib/api/core/utils.gen.js.map +1 -0
- package/build/lib/api/index.d.ts +3 -0
- package/build/lib/api/index.d.ts.map +1 -0
- package/build/lib/api/index.js +3 -0
- package/build/lib/api/index.js.map +1 -0
- package/build/lib/api/sdk.gen.d.ts +80 -0
- package/build/lib/api/sdk.gen.d.ts.map +1 -0
- package/build/lib/api/sdk.gen.js +134 -0
- package/build/lib/api/sdk.gen.js.map +1 -0
- package/build/lib/api/types.gen.d.ts +924 -0
- package/build/lib/api/types.gen.d.ts.map +1 -0
- package/build/lib/api/types.gen.js +3 -0
- package/build/lib/api/types.gen.js.map +1 -0
- package/build/lib/api-client.d.ts +91 -0
- package/build/lib/api-client.d.ts.map +1 -0
- package/build/lib/api-client.js +210 -0
- package/build/lib/api-client.js.map +1 -0
- package/build/lib/auth.d.ts +6 -2
- package/build/lib/auth.d.ts.map +1 -1
- package/build/lib/auth.js +18 -10
- package/build/lib/auth.js.map +1 -1
- package/build/lib/diagnostics.d.ts.map +1 -1
- package/build/lib/diagnostics.js +33 -22
- package/build/lib/diagnostics.js.map +1 -1
- package/build/lib/diff-command.d.ts.map +1 -1
- package/build/lib/diff-command.js +14 -12
- package/build/lib/diff-command.js.map +1 -1
- package/build/lib/fetch-retry.d.ts +7 -3
- package/build/lib/fetch-retry.d.ts.map +1 -1
- package/build/lib/fetch-retry.js +9 -5
- package/build/lib/fetch-retry.js.map +1 -1
- package/build/lib/installer.d.ts +0 -2
- package/build/lib/installer.d.ts.map +1 -1
- package/build/lib/installer.js +30 -29
- package/build/lib/installer.js.map +1 -1
- package/build/lib/manifest-diff.d.ts +1 -1
- package/build/lib/manifest-diff.d.ts.map +1 -1
- package/build/lib/manifest-diff.js +3 -3
- package/build/lib/manifest-diff.js.map +1 -1
- package/build/lib/publisher.d.ts +38 -1
- package/build/lib/publisher.d.ts.map +1 -1
- package/build/lib/publisher.js +133 -145
- package/build/lib/publisher.js.map +1 -1
- package/build/lib/registry-mutate.js +1 -1
- package/build/lib/registry-mutate.js.map +1 -1
- package/build/lib/registry-repo.d.ts +34 -0
- package/build/lib/registry-repo.d.ts.map +1 -0
- package/build/lib/registry-repo.js +35 -0
- package/build/lib/registry-repo.js.map +1 -0
- package/build/lib/registry.d.ts +50 -0
- package/build/lib/registry.d.ts.map +1 -1
- package/build/lib/registry.js +241 -51
- package/build/lib/registry.js.map +1 -1
- package/build/lib/release-notes.d.ts.map +1 -1
- package/build/lib/release-notes.js +27 -1
- package/build/lib/release-notes.js.map +1 -1
- package/build/lib/reviewers.d.ts +19 -0
- package/build/lib/reviewers.d.ts.map +1 -0
- package/build/lib/reviewers.js +46 -0
- package/build/lib/reviewers.js.map +1 -0
- package/build/lib/schemas/config.d.ts +1 -1
- package/build/lib/schemas/config.d.ts.map +1 -1
- package/build/lib/schemas/config.js +4 -1
- package/build/lib/schemas/config.js.map +1 -1
- package/build/lib/schemas/lockfile.d.ts +0 -1
- package/build/lib/schemas/lockfile.d.ts.map +1 -1
- package/build/lib/schemas/lockfile.js +0 -1
- package/build/lib/schemas/lockfile.js.map +1 -1
- package/package.json +4 -1
- package/build/lib/github.d.ts +0 -140
- package/build/lib/github.d.ts.map +0 -1
- package/build/lib/github.js +0 -230
- package/build/lib/github.js.map +0 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from './pathSerializer.gen.js';
|
|
3
|
+
export const PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
4
|
+
export const defaultPathSerializer = ({ path, url: _url }) => {
|
|
5
|
+
let url = _url;
|
|
6
|
+
const matches = _url.match(PATH_PARAM_RE);
|
|
7
|
+
if (matches) {
|
|
8
|
+
for (const match of matches) {
|
|
9
|
+
let explode = false;
|
|
10
|
+
let name = match.substring(1, match.length - 1);
|
|
11
|
+
let style = 'simple';
|
|
12
|
+
if (name.endsWith('*')) {
|
|
13
|
+
explode = true;
|
|
14
|
+
name = name.substring(0, name.length - 1);
|
|
15
|
+
}
|
|
16
|
+
if (name.startsWith('.')) {
|
|
17
|
+
name = name.substring(1);
|
|
18
|
+
style = 'label';
|
|
19
|
+
}
|
|
20
|
+
else if (name.startsWith(';')) {
|
|
21
|
+
name = name.substring(1);
|
|
22
|
+
style = 'matrix';
|
|
23
|
+
}
|
|
24
|
+
const value = path[name];
|
|
25
|
+
if (value === undefined || value === null) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (Array.isArray(value)) {
|
|
29
|
+
url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
if (typeof value === 'object') {
|
|
33
|
+
url = url.replace(match, serializeObjectParam({
|
|
34
|
+
explode,
|
|
35
|
+
name,
|
|
36
|
+
style,
|
|
37
|
+
value: value,
|
|
38
|
+
valueOnly: true,
|
|
39
|
+
}));
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
if (style === 'matrix') {
|
|
43
|
+
url = url.replace(match, `;${serializePrimitiveParam({
|
|
44
|
+
name,
|
|
45
|
+
value: value,
|
|
46
|
+
})}`);
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
const replaceValue = encodeURIComponent(style === 'label' ? `.${value}` : value);
|
|
50
|
+
url = url.replace(match, replaceValue);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return url;
|
|
54
|
+
};
|
|
55
|
+
export const getUrl = ({ baseUrl, path, query, querySerializer, url: _url, }) => {
|
|
56
|
+
const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
|
|
57
|
+
let url = (baseUrl ?? '') + pathUrl;
|
|
58
|
+
if (path) {
|
|
59
|
+
url = defaultPathSerializer({ path, url });
|
|
60
|
+
}
|
|
61
|
+
let search = query ? querySerializer(query) : '';
|
|
62
|
+
if (search.startsWith('?')) {
|
|
63
|
+
search = search.substring(1);
|
|
64
|
+
}
|
|
65
|
+
if (search) {
|
|
66
|
+
url += `?${search}`;
|
|
67
|
+
}
|
|
68
|
+
return url;
|
|
69
|
+
};
|
|
70
|
+
export function getValidRequestBody(options) {
|
|
71
|
+
const hasBody = options.body !== undefined;
|
|
72
|
+
const isSerializedBody = hasBody && options.bodySerializer;
|
|
73
|
+
if (isSerializedBody) {
|
|
74
|
+
if ('serializedBody' in options) {
|
|
75
|
+
const hasSerializedBody = options.serializedBody !== undefined && options.serializedBody !== '';
|
|
76
|
+
return hasSerializedBody ? options.serializedBody : null;
|
|
77
|
+
}
|
|
78
|
+
// not all clients implement a serializedBody property (i.e., client-axios)
|
|
79
|
+
return options.body !== '' ? options.body : null;
|
|
80
|
+
}
|
|
81
|
+
// plain/text body
|
|
82
|
+
if (hasBody) {
|
|
83
|
+
return options.body;
|
|
84
|
+
}
|
|
85
|
+
// no body was provided
|
|
86
|
+
return undefined;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=utils.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.gen.js","sourceRoot":"","sources":["../../../../src/lib/api/core/utils.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAGrD,OAAO,EAEL,mBAAmB,EACn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B,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { authGitHubExchange, checkout, downloadAsset, downloadBundle, getAssetFile, getAssetManifest, getAssetReadme, getBundleManifest, getBundleReadme, getRegistry, health, listAssetFiles, me, openApi, type Options, publish, publishPlan } from './sdk.gen.js';
|
|
2
|
+
export type { ApiError, ApiErrorDetail, AuthGitHubExchangeData, AuthGitHubExchangeError, AuthGitHubExchangeErrors, AuthGitHubExchangeResponse, AuthGitHubExchangeResponses, CheckoutData, CheckoutError, CheckoutErrors, CheckoutFile, CheckoutResponse, CheckoutResponse2, CheckoutResponses, ClientOptions, DownloadAssetData, DownloadAssetError, DownloadAssetErrors, DownloadAssetResponse, DownloadAssetResponses, DownloadBundleData, DownloadBundleError, DownloadBundleErrors, DownloadBundleResponse, DownloadBundleResponses, FileEntry, FileListResponse, GetAssetFileData, GetAssetFileError, GetAssetFileErrors, GetAssetFileResponse, GetAssetFileResponses, GetAssetManifestData, GetAssetManifestError, GetAssetManifestErrors, GetAssetManifestResponse, GetAssetManifestResponses, GetAssetReadmeData, GetAssetReadmeError, GetAssetReadmeErrors, GetAssetReadmeResponse, GetAssetReadmeResponses, GetBundleManifestData, GetBundleManifestError, GetBundleManifestErrors, GetBundleManifestResponse, GetBundleManifestResponses, GetBundleReadmeData, GetBundleReadmeError, GetBundleReadmeErrors, GetBundleReadmeResponse, GetBundleReadmeResponses, GetRegistryData, GetRegistryError, GetRegistryErrors, GetRegistryResponse, GetRegistryResponses, HealthData, HealthResponse, HealthResponse2, HealthResponses, ListAssetFilesData, ListAssetFilesError, ListAssetFilesErrors, ListAssetFilesResponse, ListAssetFilesResponses, MeData, MeError, MeErrors, MeResponse, MeResponses, OAuthExchangeRequest, OAuthTokenResponse, OpenApiData, OpenApiResponse, OpenApiResponses, Principal, PublishData, PublishError, PublishErrors, PublishFile, PublishPlan, PublishPlanData, PublishPlanError, PublishPlanErrors, PublishPlanResponse, PublishPlanResponses, PublishRequest, PublishResponse, PublishResponse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B,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
export { authGitHubExchange, checkout, downloadAsset, downloadBundle, getAssetFile, getAssetManifest, getAssetReadme, getBundleManifest, getBundleReadme, getRegistry, health, listAssetFiles, me, openApi, publish, publishPlan } from './sdk.gen.js';
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/api/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,EAAE,OAAO,EAAgB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.js';
|
|
2
|
+
import type { AuthGitHubExchangeData, AuthGitHubExchangeErrors, AuthGitHubExchangeResponses, CheckoutData, CheckoutErrors, CheckoutResponses, DownloadAssetData, DownloadAssetErrors, DownloadAssetResponses, DownloadBundleData, DownloadBundleErrors, DownloadBundleResponses, GetAssetFileData, GetAssetFileErrors, GetAssetFileResponses, GetAssetManifestData, GetAssetManifestErrors, GetAssetManifestResponses, GetAssetReadmeData, GetAssetReadmeErrors, GetAssetReadmeResponses, GetBundleManifestData, GetBundleManifestErrors, GetBundleManifestResponses, GetBundleReadmeData, GetBundleReadmeErrors, GetBundleReadmeResponses, GetRegistryData, GetRegistryErrors, GetRegistryResponses, HealthData, HealthResponses, ListAssetFilesData, ListAssetFilesErrors, ListAssetFilesResponses, MeData, MeErrors, MeResponses, OpenApiData, OpenApiResponses, PublishData, PublishErrors, PublishPlanData, PublishPlanErrors, PublishPlanResponses, PublishResponses } from './types.gen.js';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client?: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Liveness probe
|
|
18
|
+
*/
|
|
19
|
+
export declare const health: <ThrowOnError extends boolean = false>(options?: Options<HealthData, ThrowOnError>) => RequestResult<HealthResponses, unknown, ThrowOnError>;
|
|
20
|
+
/**
|
|
21
|
+
* This document
|
|
22
|
+
*/
|
|
23
|
+
export declare const openApi: <ThrowOnError extends boolean = false>(options?: Options<OpenApiData, ThrowOnError>) => RequestResult<OpenApiResponses, unknown, ThrowOnError>;
|
|
24
|
+
/**
|
|
25
|
+
* Exchange a GitHub OAuth authorization code for an access token (web sign-in). GitHub's response body is returned verbatim.
|
|
26
|
+
*/
|
|
27
|
+
export declare const authGitHubExchange: <ThrowOnError extends boolean = false>(options: Options<AuthGitHubExchangeData, ThrowOnError>) => RequestResult<AuthGitHubExchangeResponses, AuthGitHubExchangeErrors, ThrowOnError>;
|
|
28
|
+
/**
|
|
29
|
+
* The authenticated caller as resolved by the API
|
|
30
|
+
*/
|
|
31
|
+
export declare const me: <ThrowOnError extends boolean = false>(options?: Options<MeData, ThrowOnError>) => RequestResult<MeResponses, MeErrors, ThrowOnError>;
|
|
32
|
+
/**
|
|
33
|
+
* The registry index (`registry.json`) at the current commit. Supports `If-None-Match` with the `ETag` returned.
|
|
34
|
+
*/
|
|
35
|
+
export declare const getRegistry: <ThrowOnError extends boolean = false>(options?: Options<GetRegistryData, ThrowOnError>) => RequestResult<GetRegistryResponses, GetRegistryErrors, ThrowOnError>;
|
|
36
|
+
/**
|
|
37
|
+
* The asset version's `manifest.json`
|
|
38
|
+
*/
|
|
39
|
+
export declare const getAssetManifest: <ThrowOnError extends boolean = false>(options: Options<GetAssetManifestData, ThrowOnError>) => RequestResult<GetAssetManifestResponses, GetAssetManifestErrors, ThrowOnError>;
|
|
40
|
+
/**
|
|
41
|
+
* The asset version's `README.md`
|
|
42
|
+
*/
|
|
43
|
+
export declare const getAssetReadme: <ThrowOnError extends boolean = false>(options: Options<GetAssetReadmeData, ThrowOnError>) => RequestResult<GetAssetReadmeResponses, GetAssetReadmeErrors, ThrowOnError>;
|
|
44
|
+
/**
|
|
45
|
+
* Every file in the asset version directory (manifest and README included)
|
|
46
|
+
*/
|
|
47
|
+
export declare const listAssetFiles: <ThrowOnError extends boolean = false>(options: Options<ListAssetFilesData, ThrowOnError>) => RequestResult<ListAssetFilesResponses, ListAssetFilesErrors, ThrowOnError>;
|
|
48
|
+
/**
|
|
49
|
+
* Raw bytes of one file in the asset version directory (path from the `files` listing)
|
|
50
|
+
*/
|
|
51
|
+
export declare const getAssetFile: <ThrowOnError extends boolean = false>(options: Options<GetAssetFileData, ThrowOnError>) => RequestResult<GetAssetFileResponses, GetAssetFileErrors, ThrowOnError>;
|
|
52
|
+
/**
|
|
53
|
+
* Zip of the asset and its transitive dependencies. Layout: `{name}/…` plus `dependencies/{dep}/…`. `format=skill` omits the top-level manifest and README and uses the `.skill` extension.
|
|
54
|
+
*/
|
|
55
|
+
export declare const downloadAsset: <ThrowOnError extends boolean = false>(options: Options<DownloadAssetData, ThrowOnError>) => RequestResult<DownloadAssetResponses, DownloadAssetErrors, ThrowOnError>;
|
|
56
|
+
/**
|
|
57
|
+
* The bundle version's `bundle.json`
|
|
58
|
+
*/
|
|
59
|
+
export declare const getBundleManifest: <ThrowOnError extends boolean = false>(options: Options<GetBundleManifestData, ThrowOnError>) => RequestResult<GetBundleManifestResponses, GetBundleManifestErrors, ThrowOnError>;
|
|
60
|
+
/**
|
|
61
|
+
* The bundle version's `README.md`
|
|
62
|
+
*/
|
|
63
|
+
export declare const getBundleReadme: <ThrowOnError extends boolean = false>(options: Options<GetBundleReadmeData, ThrowOnError>) => RequestResult<GetBundleReadmeResponses, GetBundleReadmeErrors, ThrowOnError>;
|
|
64
|
+
/**
|
|
65
|
+
* Zip of the bundle: `bundle.json` at the root and each member under `{member}/…`. `format=skill` drops `bundle.json` and nests skill members as `{member}.skill`.
|
|
66
|
+
*/
|
|
67
|
+
export declare const downloadBundle: <ThrowOnError extends boolean = false>(options: Options<DownloadBundleData, ThrowOnError>) => RequestResult<DownloadBundleResponses, DownloadBundleErrors, ThrowOnError>;
|
|
68
|
+
/**
|
|
69
|
+
* Everything `atk checkout` needs in one call: the asset resolved by name, with every file base64 encoded.
|
|
70
|
+
*/
|
|
71
|
+
export declare const checkout: <ThrowOnError extends boolean = false>(options: Options<CheckoutData, ThrowOnError>) => RequestResult<CheckoutResponses, CheckoutErrors, ThrowOnError>;
|
|
72
|
+
/**
|
|
73
|
+
* Validate a publish payload and return the plan (branch, path, PR title and body, files, reviewers, warnings) without touching GitHub.
|
|
74
|
+
*/
|
|
75
|
+
export declare const publishPlan: <ThrowOnError extends boolean = false>(options: Options<PublishPlanData, ThrowOnError>) => RequestResult<PublishPlanResponses, PublishPlanErrors, ThrowOnError>;
|
|
76
|
+
/**
|
|
77
|
+
* Validate, then create the branch, commit and pull request on the registry with the caller's own token so the PR is authored by them. Global targets get the default reviewers; org targets use `reviewers`.
|
|
78
|
+
*/
|
|
79
|
+
export declare const publish: <ThrowOnError extends boolean = false>(options: Options<PublishData, ThrowOnError>) => RequestResult<PublishResponses, PublishErrors, ThrowOnError>;
|
|
80
|
+
//# sourceMappingURL=sdk.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../../src/lib/api/sdk.gen.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,IAAI,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC5G,OAAO,KAAK,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,eAAe,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,UAAU,EAAE,eAAe,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,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CAAC,qBAAqB,EAAE,YAAY,CAAC,KAAG,aAAa,CAAC,0BAA0B,EAAE,uBAAuB,EAAE,YAAY,CAI7M,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,SAAS,OAAO,CAAC,mBAAmB,EAAE,YAAY,CAAC,KAAG,aAAa,CAAC,wBAAwB,EAAE,qBAAqB,EAAE,YAAY,CAIrM,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,SAAS,OAAO,CAAC,kBAAkB,EAAE,YAAY,CAAC,KAAG,aAAa,CAAC,uBAAuB,EAAE,oBAAoB,EAAE,YAAY,CAIjM,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,SAAS,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,KAAG,aAAa,CAAC,iBAAiB,EAAE,cAAc,EAAE,YAAY,CAIzK,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,SAAS,OAAO,CAAC,eAAe,EAAE,YAAY,CAAC,KAAG,aAAa,CAAC,oBAAoB,EAAE,iBAAiB,EAAE,YAAY,CAQrL,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EAAE,SAAS,OAAO,CAAC,WAAW,EAAE,YAAY,CAAC,KAAG,aAAa,CAAC,gBAAgB,EAAE,aAAa,EAAE,YAAY,CAQrK,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client } from './client.gen.js';
|
|
3
|
+
/**
|
|
4
|
+
* Liveness probe
|
|
5
|
+
*/
|
|
6
|
+
export const health = (options) => (options?.client ?? client).get({ url: '/health', ...options });
|
|
7
|
+
/**
|
|
8
|
+
* This document
|
|
9
|
+
*/
|
|
10
|
+
export const openApi = (options) => (options?.client ?? client).get({ url: '/openapi.json', ...options });
|
|
11
|
+
/**
|
|
12
|
+
* Exchange a GitHub OAuth authorization code for an access token (web sign-in). GitHub's response body is returned verbatim.
|
|
13
|
+
*/
|
|
14
|
+
export const authGitHubExchange = (options) => (options.client ?? client).post({
|
|
15
|
+
url: '/auth/github/exchange',
|
|
16
|
+
...options,
|
|
17
|
+
headers: {
|
|
18
|
+
'Content-Type': 'application/json',
|
|
19
|
+
...options.headers
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* The authenticated caller as resolved by the API
|
|
24
|
+
*/
|
|
25
|
+
export const me = (options) => (options?.client ?? client).get({
|
|
26
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
27
|
+
url: '/me',
|
|
28
|
+
...options
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* The registry index (`registry.json`) at the current commit. Supports `If-None-Match` with the `ETag` returned.
|
|
32
|
+
*/
|
|
33
|
+
export const getRegistry = (options) => (options?.client ?? client).get({
|
|
34
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
35
|
+
url: '/registry',
|
|
36
|
+
...options
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* The asset version's `manifest.json`
|
|
40
|
+
*/
|
|
41
|
+
export const getAssetManifest = (options) => (options.client ?? client).get({
|
|
42
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
43
|
+
url: '/assets/{type}/{name}/{version}/manifest',
|
|
44
|
+
...options
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* The asset version's `README.md`
|
|
48
|
+
*/
|
|
49
|
+
export const getAssetReadme = (options) => (options.client ?? client).get({
|
|
50
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
51
|
+
url: '/assets/{type}/{name}/{version}/readme',
|
|
52
|
+
...options
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* Every file in the asset version directory (manifest and README included)
|
|
56
|
+
*/
|
|
57
|
+
export const listAssetFiles = (options) => (options.client ?? client).get({
|
|
58
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
59
|
+
url: '/assets/{type}/{name}/{version}/files',
|
|
60
|
+
...options
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* Raw bytes of one file in the asset version directory (path from the `files` listing)
|
|
64
|
+
*/
|
|
65
|
+
export const getAssetFile = (options) => (options.client ?? client).get({
|
|
66
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
67
|
+
url: '/assets/{type}/{name}/{version}/file/{path}',
|
|
68
|
+
...options
|
|
69
|
+
});
|
|
70
|
+
/**
|
|
71
|
+
* Zip of the asset and its transitive dependencies. Layout: `{name}/…` plus `dependencies/{dep}/…`. `format=skill` omits the top-level manifest and README and uses the `.skill` extension.
|
|
72
|
+
*/
|
|
73
|
+
export const downloadAsset = (options) => (options.client ?? client).get({
|
|
74
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
75
|
+
url: '/assets/{type}/{name}/{version}/download',
|
|
76
|
+
...options
|
|
77
|
+
});
|
|
78
|
+
/**
|
|
79
|
+
* The bundle version's `bundle.json`
|
|
80
|
+
*/
|
|
81
|
+
export const getBundleManifest = (options) => (options.client ?? client).get({
|
|
82
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
83
|
+
url: '/bundles/{name}/{version}/manifest',
|
|
84
|
+
...options
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* The bundle version's `README.md`
|
|
88
|
+
*/
|
|
89
|
+
export const getBundleReadme = (options) => (options.client ?? client).get({
|
|
90
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
91
|
+
url: '/bundles/{name}/{version}/readme',
|
|
92
|
+
...options
|
|
93
|
+
});
|
|
94
|
+
/**
|
|
95
|
+
* Zip of the bundle: `bundle.json` at the root and each member under `{member}/…`. `format=skill` drops `bundle.json` and nests skill members as `{member}.skill`.
|
|
96
|
+
*/
|
|
97
|
+
export const downloadBundle = (options) => (options.client ?? client).get({
|
|
98
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
99
|
+
url: '/bundles/{name}/{version}/download',
|
|
100
|
+
...options
|
|
101
|
+
});
|
|
102
|
+
/**
|
|
103
|
+
* Everything `atk checkout` needs in one call: the asset resolved by name, with every file base64 encoded.
|
|
104
|
+
*/
|
|
105
|
+
export const checkout = (options) => (options.client ?? client).get({
|
|
106
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
107
|
+
url: '/checkout/{name}',
|
|
108
|
+
...options
|
|
109
|
+
});
|
|
110
|
+
/**
|
|
111
|
+
* Validate a publish payload and return the plan (branch, path, PR title and body, files, reviewers, warnings) without touching GitHub.
|
|
112
|
+
*/
|
|
113
|
+
export const publishPlan = (options) => (options.client ?? client).post({
|
|
114
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
115
|
+
url: '/publish/plan',
|
|
116
|
+
...options,
|
|
117
|
+
headers: {
|
|
118
|
+
'Content-Type': 'application/json',
|
|
119
|
+
...options.headers
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
/**
|
|
123
|
+
* Validate, then create the branch, commit and pull request on the registry with the caller's own token so the PR is authored by them. Global targets get the default reviewers; org targets use `reviewers`.
|
|
124
|
+
*/
|
|
125
|
+
export const publish = (options) => (options.client ?? client).post({
|
|
126
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
127
|
+
url: '/publish',
|
|
128
|
+
...options,
|
|
129
|
+
headers: {
|
|
130
|
+
'Content-Type': 'application/json',
|
|
131
|
+
...options.headers
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
//# sourceMappingURL=sdk.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.js","sourceRoot":"","sources":["../../../src/lib/api/sdk.gen.ts"],"names":[],"mappings":"AAAA,q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