@tinycloud/operations 0.5.4-beta.0 → 0.5.4-beta.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/artifacts.d.cts +54 -54
- package/dist/artifacts.d.ts +54 -54
- package/dist/cli-runtime.cjs +13 -8
- package/dist/cli-runtime.cjs.map +1 -1
- package/dist/cli-runtime.js +9 -4
- package/dist/cli-runtime.js.map +1 -1
- package/dist/index.cjs +10 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5762,12 +5762,12 @@ async function importRequestBoundDelegation(context, input) {
|
|
|
5762
5762
|
{ host }
|
|
5763
5763
|
);
|
|
5764
5764
|
} catch (error) {
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
}
|
|
5765
|
+
const reason = typeof error === "object" && error !== null && "reason" in error ? error.reason : void 0;
|
|
5766
|
+
if (reason === "expired") return expiredDelegation();
|
|
5768
5767
|
return operationFailure(
|
|
5769
5768
|
"DELEGATION_REJECTED",
|
|
5770
|
-
"The delegation was rejected by the TinyCloud runtime."
|
|
5769
|
+
"The delegation was rejected by the TinyCloud runtime.",
|
|
5770
|
+
typeof reason === "string" ? { reason } : void 0
|
|
5771
5771
|
);
|
|
5772
5772
|
}
|
|
5773
5773
|
const effectivePermissions = canonicalizeCapabilities(activated.effectivePermissions);
|
|
@@ -8974,6 +8974,7 @@ import {
|
|
|
8974
8974
|
|
|
8975
8975
|
// src/redaction.ts
|
|
8976
8976
|
init_recovery();
|
|
8977
|
+
import { RUNTIME_DELEGATION_REJECTIONS } from "@tinycloud/node-sdk";
|
|
8977
8978
|
|
|
8978
8979
|
// src/safe-values.ts
|
|
8979
8980
|
function safeOriginHost(value) {
|
|
@@ -9082,6 +9083,10 @@ var SAFE_ERROR_DETAIL_POLICIES = {
|
|
|
9082
9083
|
expectedHost: safeOriginHost,
|
|
9083
9084
|
artifactHost: safeOriginHost
|
|
9084
9085
|
},
|
|
9086
|
+
// `RuntimeDelegationRejectedError.reason` from validated activation.
|
|
9087
|
+
DELEGATION_REJECTED: {
|
|
9088
|
+
reason: (value) => RUNTIME_DELEGATION_REJECTIONS.some((reason) => reason === value) ? value : void 0
|
|
9089
|
+
},
|
|
9085
9090
|
STORAGE_QUOTA_EXCEEDED: {
|
|
9086
9091
|
account: safeStorageAccount
|
|
9087
9092
|
}
|