@junobuild/admin 0.0.8 → 0.0.10
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/browser/index.js +8 -8
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/cmc/cmc.did.d.ts +30 -30
- package/dist/declarations/cmc/cmc.factory.did.js +63 -63
- package/dist/declarations/cmc/index.d.ts +18 -18
- package/dist/declarations/cmc/index.js +22 -22
- package/dist/declarations/console/console.did.d.ts +37 -37
- package/dist/declarations/console/console.factory.did.js +60 -60
- package/dist/declarations/console/console.factory.did.mjs +60 -60
- package/dist/declarations/console/index.d.ts +18 -18
- package/dist/declarations/console/index.js +22 -22
- package/dist/declarations/frontend/frontend.did.d.ts +136 -136
- package/dist/declarations/frontend/frontend.factory.did.js +206 -206
- package/dist/declarations/frontend/index.d.ts +18 -18
- package/dist/declarations/frontend/index.js +22 -22
- package/dist/declarations/ic/ic.did.d.ts +63 -63
- package/dist/declarations/ic/ic.factory.did.js +126 -126
- package/dist/declarations/internet_identity/index.d.ts +18 -18
- package/dist/declarations/internet_identity/index.js +22 -22
- package/dist/declarations/internet_identity/internet_identity.did.d.ts +136 -136
- package/dist/declarations/internet_identity/internet_identity.factory.did.js +231 -231
- package/dist/declarations/ledger/index.d.ts +18 -18
- package/dist/declarations/ledger/index.js +22 -22
- package/dist/declarations/ledger/ledger.did.d.ts +64 -64
- package/dist/declarations/ledger/ledger.factory.did.js +96 -96
- package/dist/declarations/mission_control/index.d.ts +18 -18
- package/dist/declarations/mission_control/index.js +22 -22
- package/dist/declarations/mission_control/mission_control.did.d.ts +30 -30
- package/dist/declarations/mission_control/mission_control.factory.did.js +48 -48
- package/dist/declarations/satellite/index.d.ts +18 -18
- package/dist/declarations/satellite/index.js +22 -22
- package/dist/declarations/satellite/satellite-deprecated.did.d.ts +120 -124
- package/dist/declarations/satellite/satellite-deprecated.factory.did.js +189 -189
- package/dist/declarations/satellite/satellite-deprecated.factory.did.mjs +189 -189
- package/dist/declarations/satellite/satellite.did.d.ts +121 -124
- package/dist/declarations/satellite/satellite.factory.did.js +192 -189
- package/dist/declarations/satellite/satellite.factory.did.mjs +190 -189
- package/dist/node/index.mjs +22 -22
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/satellite.api.d.ts +11 -1
- package/dist/types/constants/rules.constants.d.ts +7 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/services/satellite.services.d.ts +10 -0
- package/dist/types/types/rules.types.d.ts +10 -0
- package/dist/types/utils/did.utils.d.ts +4 -0
- package/dist/types/utils/rule.utils.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
export const idlFactory = ({
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
export const idlFactory = ({IDL}) => {
|
|
2
|
+
const CreateSatelliteArgs = IDL.Record({
|
|
3
|
+
block_index: IDL.Opt(IDL.Nat64),
|
|
4
|
+
user: IDL.Principal
|
|
5
|
+
});
|
|
6
|
+
const DeleteControllersArgs = IDL.Record({
|
|
7
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
8
|
+
});
|
|
9
|
+
const GetCreateSatelliteFeeArgs = IDL.Record({user: IDL.Principal});
|
|
10
|
+
const Tokens = IDL.Record({e8s: IDL.Nat64});
|
|
11
|
+
const ReleasesVersion = IDL.Record({
|
|
12
|
+
satellite: IDL.Opt(IDL.Text),
|
|
13
|
+
mission_control: IDL.Opt(IDL.Text)
|
|
14
|
+
});
|
|
15
|
+
const MissionControl = IDL.Record({
|
|
16
|
+
updated_at: IDL.Nat64,
|
|
17
|
+
credits: Tokens,
|
|
18
|
+
mission_control_id: IDL.Opt(IDL.Principal),
|
|
19
|
+
owner: IDL.Principal,
|
|
20
|
+
created_at: IDL.Nat64
|
|
21
|
+
});
|
|
22
|
+
const Segment = IDL.Variant({
|
|
23
|
+
MissionControl: IDL.Null,
|
|
24
|
+
Satellite: IDL.Null
|
|
25
|
+
});
|
|
26
|
+
const LoadRelease = IDL.Record({total: IDL.Nat64, chunks: IDL.Nat64});
|
|
27
|
+
const SetController = IDL.Record({
|
|
28
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
29
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
30
|
+
});
|
|
31
|
+
const SetControllersArgs = IDL.Record({
|
|
32
|
+
controller: SetController,
|
|
33
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
34
|
+
});
|
|
35
|
+
const RateConfig = IDL.Record({
|
|
36
|
+
max_tokens: IDL.Nat64,
|
|
37
|
+
time_per_token_ns: IDL.Nat64
|
|
38
|
+
});
|
|
39
|
+
return IDL.Service({
|
|
40
|
+
add_invitation_code: IDL.Func([IDL.Text], [], []),
|
|
41
|
+
create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
|
|
42
|
+
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
43
|
+
get_create_satellite_fee: IDL.Func([GetCreateSatelliteFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
44
|
+
get_credits: IDL.Func([], [Tokens], ['query']),
|
|
45
|
+
get_releases_version: IDL.Func([], [ReleasesVersion], ['query']),
|
|
46
|
+
get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
|
|
47
|
+
init_user_mission_control_center: IDL.Func([IDL.Opt(IDL.Text)], [MissionControl], []),
|
|
48
|
+
list_user_mission_control_centers: IDL.Func(
|
|
49
|
+
[],
|
|
50
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, MissionControl))],
|
|
51
|
+
['query']
|
|
52
|
+
),
|
|
53
|
+
load_release: IDL.Func([Segment, IDL.Vec(IDL.Nat8), IDL.Text], [LoadRelease], []),
|
|
54
|
+
reset_release: IDL.Func([Segment], [], []),
|
|
55
|
+
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
56
|
+
update_rate_config: IDL.Func([Segment, RateConfig], [], []),
|
|
57
|
+
version: IDL.Func([], [IDL.Text], ['query'])
|
|
58
|
+
});
|
|
59
59
|
};
|
|
60
|
-
export const init = ({
|
|
61
|
-
|
|
60
|
+
export const init = ({IDL}) => {
|
|
61
|
+
return [];
|
|
62
62
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type {ActorConfig, ActorSubclass, Agent, HttpAgentOptions} from '@dfinity/agent';
|
|
2
|
+
import type {IDL} from '@dfinity/candid';
|
|
3
|
+
import type {Principal} from '@dfinity/principal';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {_SERVICE} from './console.did';
|
|
6
6
|
|
|
7
7
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
8
8
|
export declare const canisterId: string;
|
|
9
9
|
|
|
10
10
|
export declare interface CreateActorOptions {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @see {@link Agent}
|
|
13
|
+
*/
|
|
14
|
+
agent?: Agent;
|
|
15
|
+
/**
|
|
16
|
+
* @see {@link HttpAgentOptions}
|
|
17
|
+
*/
|
|
18
|
+
agentOptions?: HttpAgentOptions;
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link ActorConfig}
|
|
21
|
+
*/
|
|
22
|
+
actorOptions?: ActorConfig;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -34,8 +34,8 @@ export declare interface CreateActorOptions {
|
|
|
34
34
|
* @see {@link ActorConfig}
|
|
35
35
|
*/
|
|
36
36
|
export declare const createActor: (
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
canisterId: string | Principal,
|
|
38
|
+
options?: CreateActorOptions
|
|
39
39
|
) => ActorSubclass<_SERVICE>;
|
|
40
40
|
|
|
41
41
|
/**
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {Actor, HttpAgent} from '@dfinity/agent';
|
|
2
2
|
|
|
3
3
|
// Imports and re-exports candid interface
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
4
|
+
import {idlFactory} from './console.did.js';
|
|
5
|
+
export {idlFactory} from './console.did.js';
|
|
6
6
|
|
|
7
7
|
// CANISTER_ID is replaced by webpack based on node environment
|
|
8
8
|
|
|
9
9
|
export const createActor = (canisterId, options = {}) => {
|
|
10
|
-
|
|
10
|
+
const agent = options.agent || new HttpAgent({...options.agentOptions});
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
if (options.agent && options.agentOptions) {
|
|
13
|
+
console.warn(
|
|
14
|
+
'Detected both agent and agentOptions passed to createActor. Ignoring agentOptions and proceeding with the provided agent.'
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
// Fetch root key for certificate validation during development
|
|
19
|
+
if (process.env.DFX_NETWORK !== 'ic') {
|
|
20
|
+
agent.fetchRootKey().catch((err) => {
|
|
21
|
+
console.warn('Unable to fetch root key. Check to ensure that your local replica is running');
|
|
22
|
+
console.error(err);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
// Creates an actor with using the candid interface and the HttpAgent
|
|
27
|
+
return Actor.createActor(idlFactory, {
|
|
28
|
+
agent,
|
|
29
|
+
canisterId,
|
|
30
|
+
...options.actorOptions
|
|
31
|
+
});
|
|
32
32
|
};
|
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
+
import type {Principal} from '@dfinity/principal';
|
|
3
3
|
|
|
4
4
|
export type BatchId = bigint;
|
|
5
5
|
export type BatchOperationKind =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
| {CreateAsset: CreateAssetArguments}
|
|
7
|
+
| {UnsetAssetContent: UnsetAssetContentArguments}
|
|
8
|
+
| {DeleteAsset: DeleteAssetArguments}
|
|
9
|
+
| {SetAssetContent: SetAssetContentArguments}
|
|
10
|
+
| {Clear: ClearArguments};
|
|
11
11
|
export type ChunkId = bigint;
|
|
12
12
|
export type ClearArguments = {};
|
|
13
13
|
export interface CreateAssetArguments {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
key: Key;
|
|
15
|
+
content_type: string;
|
|
16
|
+
headers: [] | [Array<HeaderField>];
|
|
17
|
+
allow_raw_access: [] | [boolean];
|
|
18
|
+
max_age: [] | [bigint];
|
|
19
|
+
enable_aliasing: [] | [boolean];
|
|
20
20
|
}
|
|
21
21
|
export interface DeleteAssetArguments {
|
|
22
|
-
|
|
22
|
+
key: Key;
|
|
23
23
|
}
|
|
24
24
|
export interface GrantPermission {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
permission: Permission;
|
|
26
|
+
to_principal: Principal;
|
|
27
27
|
}
|
|
28
28
|
export type HeaderField = [string, string];
|
|
29
29
|
export interface HttpRequest {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
url: string;
|
|
31
|
+
method: string;
|
|
32
|
+
body: Uint8Array | number[];
|
|
33
|
+
headers: Array<HeaderField>;
|
|
34
34
|
}
|
|
35
35
|
export interface HttpResponse {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
body: Uint8Array | number[];
|
|
37
|
+
headers: Array<HeaderField>;
|
|
38
|
+
streaming_strategy: [] | [StreamingStrategy];
|
|
39
|
+
status_code: number;
|
|
40
40
|
}
|
|
41
41
|
export type Key = string;
|
|
42
42
|
export interface ListPermitted {
|
|
43
|
-
|
|
43
|
+
permission: Permission;
|
|
44
44
|
}
|
|
45
|
-
export type Permission = {
|
|
45
|
+
export type Permission = {Prepare: null} | {ManagePermissions: null} | {Commit: null};
|
|
46
46
|
export interface RevokePermission {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
permission: Permission;
|
|
48
|
+
of_principal: Principal;
|
|
49
49
|
}
|
|
50
50
|
export interface SetAssetContentArguments {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
key: Key;
|
|
52
|
+
sha256: [] | [Uint8Array | number[]];
|
|
53
|
+
chunk_ids: Array<ChunkId>;
|
|
54
|
+
content_encoding: string;
|
|
55
55
|
}
|
|
56
56
|
export interface SetAssetPropertiesArguments {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
key: Key;
|
|
58
|
+
headers: [] | [[] | [Array<HeaderField>]];
|
|
59
|
+
allow_raw_access: [] | [[] | [boolean]];
|
|
60
|
+
max_age: [] | [[] | [bigint]];
|
|
61
61
|
}
|
|
62
62
|
export interface StreamingCallbackHttpResponse {
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
token: [] | [StreamingCallbackToken];
|
|
64
|
+
body: Uint8Array | number[];
|
|
65
65
|
}
|
|
66
66
|
export interface StreamingCallbackToken {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
key: Key;
|
|
68
|
+
sha256: [] | [Uint8Array | number[]];
|
|
69
|
+
index: bigint;
|
|
70
|
+
content_encoding: string;
|
|
71
71
|
}
|
|
72
72
|
export type StreamingStrategy = {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
Callback: {
|
|
74
|
+
token: StreamingCallbackToken;
|
|
75
|
+
callback: [Principal, string];
|
|
76
|
+
};
|
|
77
77
|
};
|
|
78
78
|
export type Time = bigint;
|
|
79
79
|
export interface UnsetAssetContentArguments {
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
key: Key;
|
|
81
|
+
content_encoding: string;
|
|
82
82
|
}
|
|
83
|
-
export type ValidationResult = {
|
|
83
|
+
export type ValidationResult = {Ok: string} | {Err: string};
|
|
84
84
|
export interface _SERVICE {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
85
|
+
authorize: ActorMethod<[Principal], undefined>;
|
|
86
|
+
certified_tree: ActorMethod<
|
|
87
|
+
[{}],
|
|
88
|
+
{certificate: Uint8Array | number[]; tree: Uint8Array | number[]}
|
|
89
|
+
>;
|
|
90
|
+
clear: ActorMethod<[ClearArguments], undefined>;
|
|
91
|
+
commit_batch: ActorMethod<
|
|
92
|
+
[{batch_id: BatchId; operations: Array<BatchOperationKind>}],
|
|
93
|
+
undefined
|
|
94
|
+
>;
|
|
95
|
+
create_asset: ActorMethod<[CreateAssetArguments], undefined>;
|
|
96
|
+
create_batch: ActorMethod<[{}], {batch_id: BatchId}>;
|
|
97
|
+
create_chunk: ActorMethod<
|
|
98
|
+
[{content: Uint8Array | number[]; batch_id: BatchId}],
|
|
99
|
+
{chunk_id: ChunkId}
|
|
100
|
+
>;
|
|
101
|
+
deauthorize: ActorMethod<[Principal], undefined>;
|
|
102
|
+
delete_asset: ActorMethod<[DeleteAssetArguments], undefined>;
|
|
103
|
+
get: ActorMethod<
|
|
104
|
+
[{key: Key; accept_encodings: Array<string>}],
|
|
105
|
+
{
|
|
106
|
+
content: Uint8Array | number[];
|
|
107
|
+
sha256: [] | [Uint8Array | number[]];
|
|
108
|
+
content_type: string;
|
|
109
|
+
content_encoding: string;
|
|
110
|
+
total_length: bigint;
|
|
111
|
+
}
|
|
112
|
+
>;
|
|
113
|
+
get_asset_properties: ActorMethod<
|
|
114
|
+
[Key],
|
|
115
|
+
{
|
|
116
|
+
headers: [] | [Array<HeaderField>];
|
|
117
|
+
allow_raw_access: [] | [boolean];
|
|
118
|
+
max_age: [] | [bigint];
|
|
119
|
+
}
|
|
120
|
+
>;
|
|
121
|
+
get_chunk: ActorMethod<
|
|
122
|
+
[
|
|
123
|
+
{
|
|
124
|
+
key: Key;
|
|
125
|
+
sha256: [] | [Uint8Array | number[]];
|
|
126
|
+
index: bigint;
|
|
127
|
+
content_encoding: string;
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
{content: Uint8Array | number[]}
|
|
131
|
+
>;
|
|
132
|
+
grant_permission: ActorMethod<[GrantPermission], undefined>;
|
|
133
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
134
|
+
http_request_streaming_callback: ActorMethod<
|
|
135
|
+
[StreamingCallbackToken],
|
|
136
|
+
[] | [StreamingCallbackHttpResponse]
|
|
137
|
+
>;
|
|
138
|
+
list: ActorMethod<
|
|
139
|
+
[{}],
|
|
140
|
+
Array<{
|
|
141
|
+
key: Key;
|
|
142
|
+
encodings: Array<{
|
|
143
|
+
modified: Time;
|
|
144
|
+
sha256: [] | [Uint8Array | number[]];
|
|
145
|
+
length: bigint;
|
|
146
|
+
content_encoding: string;
|
|
147
|
+
}>;
|
|
148
|
+
content_type: string;
|
|
149
|
+
}>
|
|
150
|
+
>;
|
|
151
|
+
list_authorized: ActorMethod<[], Array<Principal>>;
|
|
152
|
+
list_permitted: ActorMethod<[ListPermitted], Array<Principal>>;
|
|
153
|
+
revoke_permission: ActorMethod<[RevokePermission], undefined>;
|
|
154
|
+
set_asset_content: ActorMethod<[SetAssetContentArguments], undefined>;
|
|
155
|
+
set_asset_properties: ActorMethod<[SetAssetPropertiesArguments], undefined>;
|
|
156
|
+
store: ActorMethod<
|
|
157
|
+
[
|
|
158
|
+
{
|
|
159
|
+
key: Key;
|
|
160
|
+
content: Uint8Array | number[];
|
|
161
|
+
sha256: [] | [Uint8Array | number[]];
|
|
162
|
+
content_type: string;
|
|
163
|
+
content_encoding: string;
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
undefined
|
|
167
|
+
>;
|
|
168
|
+
take_ownership: ActorMethod<[], undefined>;
|
|
169
|
+
unset_asset_content: ActorMethod<[UnsetAssetContentArguments], undefined>;
|
|
170
|
+
validate_grant_permission: ActorMethod<[GrantPermission], ValidationResult>;
|
|
171
|
+
validate_revoke_permission: ActorMethod<[RevokePermission], ValidationResult>;
|
|
172
172
|
}
|