@junobuild/admin 0.6.8-next-2025-08-02.1 → 0.6.8-next-2025-08-02.3
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { MemoryText, PermissionText, Rule, RulesType } from '@junobuild/config';
|
|
2
2
|
import type { CollectionType as CollectionTypeApi, ListRulesParams as ListRulesParamsApi, Memory, Permission, Rule as RuleApi, SetRule } from '../../declarations/satellite/satellite.did';
|
|
3
3
|
import type { ListRulesMatcher } from '../types/list';
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
4
|
+
export declare const fromRuleType: (type: RulesType) => CollectionTypeApi;
|
|
5
|
+
export declare const fromRulesFilter: (filter?: ListRulesMatcher) => ListRulesParamsApi;
|
|
6
|
+
export declare const fromRule: ({ read, write, memory, maxSize, maxChangesPerUser, maxCapacity, version, mutablePermissions, maxTokens }: Pick<Rule, "read" | "write" | "maxSize" | "maxChangesPerUser" | "maxCapacity" | "version" | "memory" | "mutablePermissions" | "maxTokens">) => SetRule;
|
|
7
|
+
export declare const toRule: ([collection, rule]: [string, RuleApi]) => Rule;
|
|
8
8
|
export declare const permissionToText: (permission: Permission) => PermissionText;
|
|
9
9
|
export declare const memoryFromText: (text: MemoryText) => Memory;
|
|
10
10
|
export declare const memoryToText: (memory: Memory) => MemoryText;
|
package/package.json
CHANGED