@warmhub/sdk-ts 0.78.0 → 0.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,11 +32,16 @@ var isStoredContentName = (n) => STORED_CONTENT_NAMES.includes(n);
|
|
|
32
32
|
var isSynthesizedContentName = (n) => SYNTHESIZED_CONTENT_NAMES.includes(n);
|
|
33
33
|
var BUILTIN_VIEW_SHAPE_NAMES = ["View"];
|
|
34
34
|
var isViewShape = (name) => BUILTIN_VIEW_SHAPE_NAMES.includes(name);
|
|
35
|
+
var BUILTIN_LICENSE_SHAPE_NAMES = [
|
|
36
|
+
"LicenseSubject",
|
|
37
|
+
"LicenseDeclaration"
|
|
38
|
+
];
|
|
39
|
+
var isLicenseShape = (name) => BUILTIN_LICENSE_SHAPE_NAMES.includes(name);
|
|
35
40
|
function isRenameableSquattedShape(name) {
|
|
36
|
-
return isReservedCollectionShape(name) || isViewShape(name);
|
|
41
|
+
return isReservedCollectionShape(name) || isViewShape(name) || isLicenseShape(name);
|
|
37
42
|
}
|
|
38
43
|
function isBuiltinShape(name) {
|
|
39
|
-
return BUILTIN_SHAPE_NAMES.includes(name) || BUILTIN_CONTENT_SHAPE_NAMES.includes(name) || BUILTIN_VIEW_SHAPE_NAMES.includes(name);
|
|
44
|
+
return BUILTIN_SHAPE_NAMES.includes(name) || BUILTIN_CONTENT_SHAPE_NAMES.includes(name) || BUILTIN_VIEW_SHAPE_NAMES.includes(name) || BUILTIN_LICENSE_SHAPE_NAMES.includes(name);
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
// ../rules/src/client-header.ts
|
|
@@ -8552,7 +8557,7 @@ var SDK_DEVELOPMENT_VERSION = "0.0.0-development";
|
|
|
8552
8557
|
function sdkVersionIsDevelopment(version) {
|
|
8553
8558
|
return version === SDK_DEVELOPMENT_VERSION;
|
|
8554
8559
|
}
|
|
8555
|
-
var SDK_VERSION = "0.
|
|
8560
|
+
var SDK_VERSION = "0.79.0" ;
|
|
8556
8561
|
|
|
8557
8562
|
// src/component-cli.ts
|
|
8558
8563
|
var SUPPORTED_METHODS = /* @__PURE__ */ new Set([
|
|
@@ -10838,6 +10843,37 @@ var WarmHubClient = class _WarmHubClient {
|
|
|
10838
10843
|
throw toWarmHubError(error);
|
|
10839
10844
|
}
|
|
10840
10845
|
},
|
|
10846
|
+
/**
|
|
10847
|
+
* Fetch the repository's normalized license declaration.
|
|
10848
|
+
*
|
|
10849
|
+
* Returns `null` when no valid active declaration is visible to the caller.
|
|
10850
|
+
*/
|
|
10851
|
+
getLicense: async (orgName, repoName) => {
|
|
10852
|
+
try {
|
|
10853
|
+
return await this.trpc.repo.getLicense.query({
|
|
10854
|
+
orgName,
|
|
10855
|
+
repoName
|
|
10856
|
+
});
|
|
10857
|
+
} catch (error) {
|
|
10858
|
+
throw toWarmHubError(error);
|
|
10859
|
+
}
|
|
10860
|
+
},
|
|
10861
|
+
/**
|
|
10862
|
+
* Return the repository's aggregate describe model.
|
|
10863
|
+
*
|
|
10864
|
+
* The aggregate includes subscription metadata and therefore retains the
|
|
10865
|
+
* backend's `subscriptions:read` authorization requirement.
|
|
10866
|
+
*/
|
|
10867
|
+
describe: async (orgName, repoName) => {
|
|
10868
|
+
try {
|
|
10869
|
+
return await this.trpc.repo.describe.query({
|
|
10870
|
+
orgName,
|
|
10871
|
+
repoName
|
|
10872
|
+
});
|
|
10873
|
+
} catch (error) {
|
|
10874
|
+
throw toWarmHubError(error);
|
|
10875
|
+
}
|
|
10876
|
+
},
|
|
10841
10877
|
/**
|
|
10842
10878
|
* Commit a new `Content/Readme` value.
|
|
10843
10879
|
*
|
|
@@ -12919,5 +12955,5 @@ re2js/build/index.js:
|
|
|
12919
12955
|
*/
|
|
12920
12956
|
|
|
12921
12957
|
export { AllStreamOperationsFailedError, CLI_INSTALL_REPO_HEADER, CLI_SIGNATURE_HEADER, CLI_TIMESTAMP_HEADER, CONTENT_FIELD_LIMIT_ERROR, CliCallVerificationError, DEFAULT_API_URL, DEFAULT_STREAM_CHUNK_SIZE, MAX_CONTENT_FIELD_BYTES, MAX_STREAM_APPEND_OPERATION_COUNT2 as MAX_STREAM_APPEND_OPERATION_COUNT, OperationBuilder, PartialStreamSubmissionError, SDK_VERSION, WarmHubClient, WarmHubError, connectionErrorMessage, contentFieldLimitError, countStreamAppendResultStatuses, isConnectionError, isRetryable, isWarmHubError, normalizeWref, resolveFunctionLogMode, sanitizeErrorMessage, sdkVersionIsBelowMinimum, streamAppendResultStatus, submitOperationsViaStream, toWarmHubError, validateAgainstShape, verifyCliCall };
|
|
12922
|
-
//# sourceMappingURL=chunk-
|
|
12923
|
-
//# sourceMappingURL=chunk-
|
|
12958
|
+
//# sourceMappingURL=chunk-NREDPYF7.js.map
|
|
12959
|
+
//# sourceMappingURL=chunk-NREDPYF7.js.map
|