@tinycloud/sdk-core 2.4.0-beta.13 → 2.4.0-beta.14
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.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -218,7 +218,7 @@ interface PermissionEntry {
|
|
|
218
218
|
*/
|
|
219
219
|
path: string;
|
|
220
220
|
/**
|
|
221
|
-
* Short action names (e.g. "get", "put", "read", "
|
|
221
|
+
* Short action names (e.g. "get", "put", "read", "schema"). The SDK expands
|
|
222
222
|
* these to full URNs (e.g. `tinycloud.kv/get`) during resolution.
|
|
223
223
|
* Already-expanded URNs are passed through unchanged.
|
|
224
224
|
*/
|
|
@@ -244,7 +244,7 @@ type ManifestSecretActions = true | string | string[] | {
|
|
|
244
244
|
*
|
|
245
245
|
* - `false` → no auto-included permissions
|
|
246
246
|
* - `true` → standard tier (KV + SQL read/write + capabilities:read)
|
|
247
|
-
* - `"admin"` → standard + SQL
|
|
247
|
+
* - `"admin"` → standard + SQL schema
|
|
248
248
|
* - `"all"` → everything the SDK supports (including DuckDB)
|
|
249
249
|
*
|
|
250
250
|
* Unknown string values silently fall back to `true`. Values are normalized
|
|
@@ -2246,6 +2246,7 @@ declare const ShareLinkSchema: z.ZodObject<{
|
|
|
2246
2246
|
/** Human-readable description of what is being shared */
|
|
2247
2247
|
description: z.ZodOptional<z.ZodString>;
|
|
2248
2248
|
}, "strip", z.ZodTypeAny, {
|
|
2249
|
+
schema: "base64" | "compact" | "ipfs";
|
|
2249
2250
|
url: string;
|
|
2250
2251
|
delegation: {
|
|
2251
2252
|
path: string;
|
|
@@ -2262,10 +2263,10 @@ declare const ShareLinkSchema: z.ZodObject<{
|
|
|
2262
2263
|
authHeader?: string | undefined;
|
|
2263
2264
|
};
|
|
2264
2265
|
token: string;
|
|
2265
|
-
schema: "base64" | "compact" | "ipfs";
|
|
2266
2266
|
description?: string | undefined;
|
|
2267
2267
|
expiresAt?: Date | undefined;
|
|
2268
2268
|
}, {
|
|
2269
|
+
schema: "base64" | "compact" | "ipfs";
|
|
2269
2270
|
url: string;
|
|
2270
2271
|
delegation: {
|
|
2271
2272
|
path: string;
|
|
@@ -2282,7 +2283,6 @@ declare const ShareLinkSchema: z.ZodObject<{
|
|
|
2282
2283
|
authHeader?: string | undefined;
|
|
2283
2284
|
};
|
|
2284
2285
|
token: string;
|
|
2285
|
-
schema: "base64" | "compact" | "ipfs";
|
|
2286
2286
|
description?: string | undefined;
|
|
2287
2287
|
expiresAt?: Date | undefined;
|
|
2288
2288
|
}>;
|
|
@@ -2339,17 +2339,17 @@ declare const GenerateShareParamsSchema: z.ZodObject<{
|
|
|
2339
2339
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2340
2340
|
}, "strip", z.ZodTypeAny, {
|
|
2341
2341
|
path: string;
|
|
2342
|
+
schema?: "base64" | "compact" | "ipfs" | undefined;
|
|
2342
2343
|
expiry?: Date | undefined;
|
|
2343
2344
|
description?: string | undefined;
|
|
2344
2345
|
actions?: string[] | undefined;
|
|
2345
|
-
schema?: "base64" | "compact" | "ipfs" | undefined;
|
|
2346
2346
|
baseUrl?: string | undefined;
|
|
2347
2347
|
}, {
|
|
2348
2348
|
path: string;
|
|
2349
|
+
schema?: "base64" | "compact" | "ipfs" | undefined;
|
|
2349
2350
|
expiry?: Date | undefined;
|
|
2350
2351
|
description?: string | undefined;
|
|
2351
2352
|
actions?: string[] | undefined;
|
|
2352
|
-
schema?: "base64" | "compact" | "ipfs" | undefined;
|
|
2353
2353
|
baseUrl?: string | undefined;
|
|
2354
2354
|
}>;
|
|
2355
2355
|
type GenerateShareParams = z.infer<typeof GenerateShareParamsSchema>;
|
package/dist/index.d.ts
CHANGED
|
@@ -218,7 +218,7 @@ interface PermissionEntry {
|
|
|
218
218
|
*/
|
|
219
219
|
path: string;
|
|
220
220
|
/**
|
|
221
|
-
* Short action names (e.g. "get", "put", "read", "
|
|
221
|
+
* Short action names (e.g. "get", "put", "read", "schema"). The SDK expands
|
|
222
222
|
* these to full URNs (e.g. `tinycloud.kv/get`) during resolution.
|
|
223
223
|
* Already-expanded URNs are passed through unchanged.
|
|
224
224
|
*/
|
|
@@ -244,7 +244,7 @@ type ManifestSecretActions = true | string | string[] | {
|
|
|
244
244
|
*
|
|
245
245
|
* - `false` → no auto-included permissions
|
|
246
246
|
* - `true` → standard tier (KV + SQL read/write + capabilities:read)
|
|
247
|
-
* - `"admin"` → standard + SQL
|
|
247
|
+
* - `"admin"` → standard + SQL schema
|
|
248
248
|
* - `"all"` → everything the SDK supports (including DuckDB)
|
|
249
249
|
*
|
|
250
250
|
* Unknown string values silently fall back to `true`. Values are normalized
|
|
@@ -2246,6 +2246,7 @@ declare const ShareLinkSchema: z.ZodObject<{
|
|
|
2246
2246
|
/** Human-readable description of what is being shared */
|
|
2247
2247
|
description: z.ZodOptional<z.ZodString>;
|
|
2248
2248
|
}, "strip", z.ZodTypeAny, {
|
|
2249
|
+
schema: "base64" | "compact" | "ipfs";
|
|
2249
2250
|
url: string;
|
|
2250
2251
|
delegation: {
|
|
2251
2252
|
path: string;
|
|
@@ -2262,10 +2263,10 @@ declare const ShareLinkSchema: z.ZodObject<{
|
|
|
2262
2263
|
authHeader?: string | undefined;
|
|
2263
2264
|
};
|
|
2264
2265
|
token: string;
|
|
2265
|
-
schema: "base64" | "compact" | "ipfs";
|
|
2266
2266
|
description?: string | undefined;
|
|
2267
2267
|
expiresAt?: Date | undefined;
|
|
2268
2268
|
}, {
|
|
2269
|
+
schema: "base64" | "compact" | "ipfs";
|
|
2269
2270
|
url: string;
|
|
2270
2271
|
delegation: {
|
|
2271
2272
|
path: string;
|
|
@@ -2282,7 +2283,6 @@ declare const ShareLinkSchema: z.ZodObject<{
|
|
|
2282
2283
|
authHeader?: string | undefined;
|
|
2283
2284
|
};
|
|
2284
2285
|
token: string;
|
|
2285
|
-
schema: "base64" | "compact" | "ipfs";
|
|
2286
2286
|
description?: string | undefined;
|
|
2287
2287
|
expiresAt?: Date | undefined;
|
|
2288
2288
|
}>;
|
|
@@ -2339,17 +2339,17 @@ declare const GenerateShareParamsSchema: z.ZodObject<{
|
|
|
2339
2339
|
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2340
2340
|
}, "strip", z.ZodTypeAny, {
|
|
2341
2341
|
path: string;
|
|
2342
|
+
schema?: "base64" | "compact" | "ipfs" | undefined;
|
|
2342
2343
|
expiry?: Date | undefined;
|
|
2343
2344
|
description?: string | undefined;
|
|
2344
2345
|
actions?: string[] | undefined;
|
|
2345
|
-
schema?: "base64" | "compact" | "ipfs" | undefined;
|
|
2346
2346
|
baseUrl?: string | undefined;
|
|
2347
2347
|
}, {
|
|
2348
2348
|
path: string;
|
|
2349
|
+
schema?: "base64" | "compact" | "ipfs" | undefined;
|
|
2349
2350
|
expiry?: Date | undefined;
|
|
2350
2351
|
description?: string | undefined;
|
|
2351
2352
|
actions?: string[] | undefined;
|
|
2352
|
-
schema?: "base64" | "compact" | "ipfs" | undefined;
|
|
2353
2353
|
baseUrl?: string | undefined;
|
|
2354
2354
|
}>;
|
|
2355
2355
|
type GenerateShareParams = z.infer<typeof GenerateShareParamsSchema>;
|
package/dist/index.js
CHANGED
|
@@ -2235,7 +2235,7 @@ var DEFAULT_ADMIN_ENTRIES = [
|
|
|
2235
2235
|
service: "tinycloud.sql",
|
|
2236
2236
|
space: DEFAULT_MANIFEST_SPACE,
|
|
2237
2237
|
path: "/",
|
|
2238
|
-
actions: ["read", "write", "
|
|
2238
|
+
actions: ["read", "write", "schema"]
|
|
2239
2239
|
}
|
|
2240
2240
|
];
|
|
2241
2241
|
var DEFAULT_ALL_ENTRIES = [
|
|
@@ -2249,7 +2249,7 @@ var DEFAULT_ALL_ENTRIES = [
|
|
|
2249
2249
|
service: "tinycloud.sql",
|
|
2250
2250
|
space: DEFAULT_MANIFEST_SPACE,
|
|
2251
2251
|
path: "/",
|
|
2252
|
-
actions: ["read", "write", "
|
|
2252
|
+
actions: ["read", "write", "schema"]
|
|
2253
2253
|
},
|
|
2254
2254
|
{
|
|
2255
2255
|
service: "tinycloud.duckdb",
|
|
@@ -2843,7 +2843,7 @@ function accountRegistryIndexPermission() {
|
|
|
2843
2843
|
service: "tinycloud.sql",
|
|
2844
2844
|
space: ACCOUNT_REGISTRY_SPACE,
|
|
2845
2845
|
path: "account",
|
|
2846
|
-
actions: ["tinycloud.sql/read", "tinycloud.sql/write", "tinycloud.sql/
|
|
2846
|
+
actions: ["tinycloud.sql/read", "tinycloud.sql/write", "tinycloud.sql/schema"]
|
|
2847
2847
|
};
|
|
2848
2848
|
}
|
|
2849
2849
|
function composeManifestRequest(inputs, options = {}) {
|