@tinycloud/cli 0.7.7-beta.5 → 0.7.7-beta.6
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/index.js +41 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -36434,6 +36434,8 @@ var CAPABILITIES = [
|
|
|
36434
36434
|
{ urn: "tinycloud.duckdb/select", service: "tinycloud.duckdb", status: "deprecated-alias", aliasOf: "tinycloud.duckdb/read" },
|
|
36435
36435
|
{ urn: "tinycloud.duckdb/*", service: "tinycloud.duckdb", status: "active", implies: ["tinycloud.duckdb/read", "tinycloud.duckdb/write", "tinycloud.duckdb/admin", "tinycloud.duckdb/import", "tinycloud.duckdb/export"] },
|
|
36436
36436
|
{ urn: "tinycloud.capabilities/read", service: "tinycloud.capabilities", status: "active" },
|
|
36437
|
+
{ urn: "tinycloud.delegation/status", service: "tinycloud.delegation", status: "active" },
|
|
36438
|
+
{ urn: "tinycloud.delegation/list", service: "tinycloud.delegation", status: "active" },
|
|
36437
36439
|
{ urn: "tinycloud.hooks/subscribe", service: "tinycloud.hooks", status: "active" },
|
|
36438
36440
|
{ urn: "tinycloud.hooks/register", service: "tinycloud.hooks", status: "active" },
|
|
36439
36441
|
{ urn: "tinycloud.hooks/list", service: "tinycloud.hooks", status: "active" },
|
|
@@ -50083,6 +50085,43 @@ var DelegationStatusSchema = external_exports.object({
|
|
|
50083
50085
|
});
|
|
50084
50086
|
}
|
|
50085
50087
|
});
|
|
50088
|
+
var DelegationRevocationReceiptSchema = external_exports.object({
|
|
50089
|
+
revoked: external_exports.literal(true),
|
|
50090
|
+
cid: external_exports.string().min(1)
|
|
50091
|
+
}).strict();
|
|
50092
|
+
var AccountDelegationResourceSchema = external_exports.object({
|
|
50093
|
+
resource: external_exports.string().min(1),
|
|
50094
|
+
actions: external_exports.array(external_exports.string()),
|
|
50095
|
+
caveats: external_exports.array(external_exports.record(external_exports.string(), external_exports.unknown()))
|
|
50096
|
+
}).strict();
|
|
50097
|
+
var AccountDelegationDateSchema = external_exports.string().datetime({ offset: true }).transform((value) => new Date(value));
|
|
50098
|
+
var AccountDelegationRecordSchema = external_exports.object({
|
|
50099
|
+
cid: external_exports.string().min(1),
|
|
50100
|
+
direction: external_exports.enum(["granted", "received"]),
|
|
50101
|
+
delegatorDid: external_exports.string().min(1),
|
|
50102
|
+
delegateDid: external_exports.string().min(1),
|
|
50103
|
+
resources: external_exports.array(AccountDelegationResourceSchema),
|
|
50104
|
+
parents: external_exports.array(external_exports.string()),
|
|
50105
|
+
issuedAt: AccountDelegationDateSchema.nullable(),
|
|
50106
|
+
notBefore: AccountDelegationDateSchema.nullable(),
|
|
50107
|
+
expiresAt: AccountDelegationDateSchema.nullable(),
|
|
50108
|
+
status: external_exports.enum(["active", "pending", "expired", "revoked", "ancestor_revoked"]),
|
|
50109
|
+
revokedAt: AccountDelegationDateSchema.nullable().optional(),
|
|
50110
|
+
revokedBy: external_exports.string().optional(),
|
|
50111
|
+
revokedAncestorCid: external_exports.string().optional()
|
|
50112
|
+
}).strict();
|
|
50113
|
+
var AccountDelegationPageSchema = external_exports.object({
|
|
50114
|
+
schemaVersion: external_exports.literal(2),
|
|
50115
|
+
items: external_exports.array(AccountDelegationRecordSchema),
|
|
50116
|
+
nextCursor: external_exports.string().optional()
|
|
50117
|
+
}).strict();
|
|
50118
|
+
var AccountDelegationQueryOptionsSchema = external_exports.object({
|
|
50119
|
+
direction: external_exports.enum(["granted", "received", "all"]).optional(),
|
|
50120
|
+
status: external_exports.enum(["active", "pending", "expired", "revoked", "ancestor_revoked"]).optional(),
|
|
50121
|
+
space: external_exports.string().trim().min(1).optional(),
|
|
50122
|
+
limit: external_exports.number().int().min(1).max(100).optional(),
|
|
50123
|
+
cursor: external_exports.string().min(1).optional()
|
|
50124
|
+
}).strict();
|
|
50086
50125
|
var CapabilityEntrySchema = external_exports.object({
|
|
50087
50126
|
/** Resource URI this capability applies to */
|
|
50088
50127
|
resource: external_exports.string(),
|
|
@@ -50237,6 +50276,8 @@ var GenerateShareParamsSchema = external_exports.object({
|
|
|
50237
50276
|
var DelegationManagerConfigSchema = external_exports.object({
|
|
50238
50277
|
/** TinyCloud host URLs */
|
|
50239
50278
|
hosts: external_exports.array(external_exports.string()),
|
|
50279
|
+
/** Account space used by account-wide delegation history queries */
|
|
50280
|
+
accountSpaceId: external_exports.string().min(1).optional(),
|
|
50240
50281
|
/** Active session for authentication */
|
|
50241
50282
|
session: external_exports.unknown().refine(
|
|
50242
50283
|
(val) => val !== null && typeof val === "object",
|