@junobuild/ic-client 3.1.2 → 3.1.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.
- package/actor.js +1 -1
- package/actor.js.map +3 -3
- package/actor.mjs +1 -1
- package/actor.mjs.map +3 -3
- package/declarations/console/console.did.d.ts +228 -218
- package/declarations/console/console.factory.certified.did.js +14 -1
- package/declarations/console/console.factory.did.js +14 -1
- package/declarations/console/console.factory.did.mjs +14 -1
- package/declarations/deprecated/console-0-0-14.did.d.ts +186 -186
- package/declarations/deprecated/console-0-0-8-patch1.did.d.ts +49 -49
- package/declarations/deprecated/mission_control-0-0-13.did.d.ts +173 -173
- package/declarations/deprecated/mission_control-0-0-14.did.d.ts +167 -167
- package/declarations/deprecated/mission_control-0-0-4.did.d.ts +57 -57
- package/declarations/deprecated/observatory-0-0-9.did.d.ts +42 -42
- package/declarations/deprecated/orbiter-0-0-6.did.d.ts +111 -111
- package/declarations/deprecated/orbiter-0-0-7.did.d.ts +116 -116
- package/declarations/deprecated/orbiter-0-0-8.did.d.ts +177 -177
- package/declarations/deprecated/orbiter-0-2-0.did.d.ts +203 -203
- package/declarations/deprecated/satellite-0-0-16.did.d.ts +174 -170
- package/declarations/deprecated/satellite-0-0-17.did.d.ts +185 -181
- package/declarations/deprecated/satellite-0-0-21.did.d.ts +216 -212
- package/declarations/deprecated/satellite-0-0-22.did.d.ts +211 -207
- package/declarations/deprecated/satellite-0-0-8.did.d.ts +125 -121
- package/declarations/deprecated/satellite-0-0-9.did.d.ts +139 -135
- package/declarations/mission_control/mission_control.did.d.ts +178 -169
- package/declarations/mission_control/mission_control.factory.certified.did.js +16 -4
- package/declarations/mission_control/mission_control.factory.did.js +16 -4
- package/declarations/observatory/observatory.did.d.ts +54 -54
- package/declarations/orbiter/orbiter.did.d.ts +206 -206
- package/declarations/orbiter/orbiter.factory.certified.did.js +7 -3
- package/declarations/orbiter/orbiter.factory.did.js +7 -3
- package/declarations/orbiter/orbiter.factory.did.mjs +7 -3
- package/declarations/satellite/satellite.did.d.ts +294 -285
- package/declarations/satellite/satellite.factory.certified.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.mjs +1 -0
- package/declarations/sputnik/sputnik.did.d.ts +294 -285
- package/declarations/sputnik/sputnik.factory.certified.did.js +1 -0
- package/declarations/sputnik/sputnik.factory.did.js +1 -0
- package/package.json +1 -1
|
@@ -1,183 +1,187 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {Principal} from '@dfinity/principal';
|
|
1
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
2
|
+
import type { Principal } from '@dfinity/principal';
|
|
3
3
|
|
|
4
4
|
export interface AssetEncodingNoContent {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
modified: bigint;
|
|
6
|
+
sha256: Uint8Array | number[];
|
|
7
|
+
total_length: bigint;
|
|
8
8
|
}
|
|
9
9
|
export interface AssetKey {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
token: [] | [string];
|
|
11
|
+
collection: string;
|
|
12
|
+
owner: Principal;
|
|
13
|
+
name: string;
|
|
14
|
+
full_path: string;
|
|
15
15
|
}
|
|
16
16
|
export interface AssetNoContent {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
key: AssetKey;
|
|
18
|
+
updated_at: bigint;
|
|
19
|
+
encodings: Array<[string, AssetEncodingNoContent]>;
|
|
20
|
+
headers: Array<[string, string]>;
|
|
21
|
+
created_at: bigint;
|
|
22
22
|
}
|
|
23
23
|
export interface Chunk {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
content: Uint8Array | number[];
|
|
25
|
+
batch_id: bigint;
|
|
26
26
|
}
|
|
27
27
|
export interface CommitBatch {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
batch_id: bigint;
|
|
29
|
+
headers: Array<[string, string]>;
|
|
30
|
+
chunk_ids: Array<bigint>;
|
|
31
31
|
}
|
|
32
32
|
export interface Config {
|
|
33
|
-
|
|
33
|
+
storage: StorageConfig;
|
|
34
34
|
}
|
|
35
35
|
export interface Controller {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
updated_at: bigint;
|
|
37
|
+
metadata: Array<[string, string]>;
|
|
38
|
+
created_at: bigint;
|
|
39
|
+
expires_at: [] | [bigint];
|
|
40
40
|
}
|
|
41
41
|
export interface CustomDomain {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
updated_at: bigint;
|
|
43
|
+
created_at: bigint;
|
|
44
|
+
bn_id: [] | [string];
|
|
45
45
|
}
|
|
46
46
|
export interface DelDoc {
|
|
47
|
-
|
|
47
|
+
updated_at: [] | [bigint];
|
|
48
48
|
}
|
|
49
49
|
export interface DeleteControllersArgs {
|
|
50
|
-
|
|
50
|
+
controllers: Array<Principal>;
|
|
51
51
|
}
|
|
52
52
|
export interface Doc {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
updated_at: bigint;
|
|
54
|
+
owner: Principal;
|
|
55
|
+
data: Uint8Array | number[];
|
|
56
|
+
created_at: bigint;
|
|
57
57
|
}
|
|
58
58
|
export interface HttpRequest {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
url: string;
|
|
60
|
+
method: string;
|
|
61
|
+
body: Uint8Array | number[];
|
|
62
|
+
headers: Array<[string, string]>;
|
|
63
63
|
}
|
|
64
64
|
export interface HttpResponse {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
body: Uint8Array | number[];
|
|
66
|
+
headers: Array<[string, string]>;
|
|
67
|
+
streaming_strategy: [] | [StreamingStrategy];
|
|
68
|
+
status_code: number;
|
|
69
69
|
}
|
|
70
70
|
export interface InitAssetKey {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
token: [] | [string];
|
|
72
|
+
collection: string;
|
|
73
|
+
name: string;
|
|
74
|
+
encoding_type: [] | [string];
|
|
75
|
+
full_path: string;
|
|
76
76
|
}
|
|
77
77
|
export interface InitUploadResult {
|
|
78
|
-
|
|
78
|
+
batch_id: bigint;
|
|
79
79
|
}
|
|
80
80
|
export interface ListOrder {
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
field: ListOrderField;
|
|
82
|
+
desc: boolean;
|
|
83
83
|
}
|
|
84
|
-
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
84
|
+
export type ListOrderField = { UpdatedAt: null } | { Keys: null } | { CreatedAt: null };
|
|
85
85
|
export interface ListPaginate {
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
start_after: [] | [string];
|
|
87
|
+
limit: [] | [bigint];
|
|
88
88
|
}
|
|
89
89
|
export interface ListParams {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
order: [] | [ListOrder];
|
|
91
|
+
owner: [] | [Principal];
|
|
92
|
+
matcher: [] | [string];
|
|
93
|
+
paginate: [] | [ListPaginate];
|
|
94
94
|
}
|
|
95
95
|
export interface ListResults {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
matches_length: bigint;
|
|
97
|
+
length: bigint;
|
|
98
|
+
items: Array<[string, AssetNoContent]>;
|
|
99
99
|
}
|
|
100
100
|
export interface ListResults_1 {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
export type Permission =
|
|
101
|
+
matches_length: bigint;
|
|
102
|
+
length: bigint;
|
|
103
|
+
items: Array<[string, Doc]>;
|
|
104
|
+
}
|
|
105
|
+
export type Permission =
|
|
106
|
+
| { Controllers: null }
|
|
107
|
+
| { Private: null }
|
|
108
|
+
| { Public: null }
|
|
109
|
+
| { Managed: null };
|
|
106
110
|
export interface Rule {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
updated_at: bigint;
|
|
112
|
+
max_size: [] | [bigint];
|
|
113
|
+
read: Permission;
|
|
114
|
+
created_at: bigint;
|
|
115
|
+
write: Permission;
|
|
112
116
|
}
|
|
113
|
-
export type RulesType = {Db: null} | {Storage: null};
|
|
117
|
+
export type RulesType = { Db: null } | { Storage: null };
|
|
114
118
|
export interface SetController {
|
|
115
|
-
|
|
116
|
-
|
|
119
|
+
metadata: Array<[string, string]>;
|
|
120
|
+
expires_at: [] | [bigint];
|
|
117
121
|
}
|
|
118
122
|
export interface SetControllersArgs {
|
|
119
|
-
|
|
120
|
-
|
|
123
|
+
controller: SetController;
|
|
124
|
+
controllers: Array<Principal>;
|
|
121
125
|
}
|
|
122
126
|
export interface SetDoc {
|
|
123
|
-
|
|
124
|
-
|
|
127
|
+
updated_at: [] | [bigint];
|
|
128
|
+
data: Uint8Array | number[];
|
|
125
129
|
}
|
|
126
130
|
export interface SetRule {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
updated_at: [] | [bigint];
|
|
132
|
+
max_size: [] | [bigint];
|
|
133
|
+
read: Permission;
|
|
134
|
+
write: Permission;
|
|
131
135
|
}
|
|
132
136
|
export interface StorageConfig {
|
|
133
|
-
|
|
137
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
134
138
|
}
|
|
135
139
|
export interface StreamingCallbackHttpResponse {
|
|
136
|
-
|
|
137
|
-
|
|
140
|
+
token: [] | [StreamingCallbackToken];
|
|
141
|
+
body: Uint8Array | number[];
|
|
138
142
|
}
|
|
139
143
|
export interface StreamingCallbackToken {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
token: [] | [string];
|
|
145
|
+
sha256: [] | [Uint8Array | number[]];
|
|
146
|
+
headers: Array<[string, string]>;
|
|
147
|
+
index: bigint;
|
|
148
|
+
encoding_type: string;
|
|
149
|
+
full_path: string;
|
|
146
150
|
}
|
|
147
151
|
export type StreamingStrategy = {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
+
Callback: {
|
|
153
|
+
token: StreamingCallbackToken;
|
|
154
|
+
callback: [Principal, string];
|
|
155
|
+
};
|
|
152
156
|
};
|
|
153
157
|
export interface UploadChunk {
|
|
154
|
-
|
|
158
|
+
chunk_id: bigint;
|
|
155
159
|
}
|
|
156
160
|
export interface _SERVICE {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
161
|
+
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
162
|
+
del_asset: ActorMethod<[string, string], undefined>;
|
|
163
|
+
del_assets: ActorMethod<[[] | [string]], undefined>;
|
|
164
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
165
|
+
del_custom_domain: ActorMethod<[string], undefined>;
|
|
166
|
+
del_doc: ActorMethod<[string, string, DelDoc], undefined>;
|
|
167
|
+
get_config: ActorMethod<[], Config>;
|
|
168
|
+
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
169
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
170
|
+
http_request_streaming_callback: ActorMethod<
|
|
171
|
+
[StreamingCallbackToken],
|
|
172
|
+
StreamingCallbackHttpResponse
|
|
173
|
+
>;
|
|
174
|
+
init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
|
|
175
|
+
list_assets: ActorMethod<[[] | [string], ListParams], ListResults>;
|
|
176
|
+
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
177
|
+
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
178
|
+
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
179
|
+
list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
|
|
180
|
+
set_config: ActorMethod<[Config], undefined>;
|
|
181
|
+
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
182
|
+
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
183
|
+
set_doc: ActorMethod<[string, string, SetDoc], Doc>;
|
|
184
|
+
set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
|
|
185
|
+
upload_asset_chunk: ActorMethod<[Chunk], UploadChunk>;
|
|
186
|
+
version: ActorMethod<[], string>;
|
|
183
187
|
}
|
|
@@ -1,199 +1,203 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {Principal} from '@dfinity/principal';
|
|
1
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
2
|
+
import type { Principal } from '@dfinity/principal';
|
|
3
3
|
|
|
4
4
|
export interface AssetEncodingNoContent {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
modified: bigint;
|
|
6
|
+
sha256: Uint8Array | number[];
|
|
7
|
+
total_length: bigint;
|
|
8
8
|
}
|
|
9
9
|
export interface AssetKey {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
token: [] | [string];
|
|
11
|
+
collection: string;
|
|
12
|
+
owner: Principal;
|
|
13
|
+
name: string;
|
|
14
|
+
description: [] | [string];
|
|
15
|
+
full_path: string;
|
|
16
16
|
}
|
|
17
17
|
export interface AssetNoContent {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
key: AssetKey;
|
|
19
|
+
updated_at: bigint;
|
|
20
|
+
encodings: Array<[string, AssetEncodingNoContent]>;
|
|
21
|
+
headers: Array<[string, string]>;
|
|
22
|
+
created_at: bigint;
|
|
23
23
|
}
|
|
24
24
|
export interface Chunk {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
content: Uint8Array | number[];
|
|
26
|
+
batch_id: bigint;
|
|
27
27
|
}
|
|
28
28
|
export interface CommitBatch {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
batch_id: bigint;
|
|
30
|
+
headers: Array<[string, string]>;
|
|
31
|
+
chunk_ids: Array<bigint>;
|
|
32
32
|
}
|
|
33
33
|
export interface Config {
|
|
34
|
-
|
|
34
|
+
storage: StorageConfig;
|
|
35
35
|
}
|
|
36
36
|
export interface Controller {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
updated_at: bigint;
|
|
38
|
+
metadata: Array<[string, string]>;
|
|
39
|
+
created_at: bigint;
|
|
40
|
+
scope: ControllerScope;
|
|
41
|
+
expires_at: [] | [bigint];
|
|
42
42
|
}
|
|
43
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
43
|
+
export type ControllerScope = { Write: null } | { Admin: null };
|
|
44
44
|
export interface CustomDomain {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
updated_at: bigint;
|
|
46
|
+
created_at: bigint;
|
|
47
|
+
bn_id: [] | [string];
|
|
48
48
|
}
|
|
49
49
|
export interface DelDoc {
|
|
50
|
-
|
|
50
|
+
updated_at: [] | [bigint];
|
|
51
51
|
}
|
|
52
52
|
export interface DeleteControllersArgs {
|
|
53
|
-
|
|
53
|
+
controllers: Array<Principal>;
|
|
54
54
|
}
|
|
55
55
|
export interface Doc {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
updated_at: bigint;
|
|
57
|
+
owner: Principal;
|
|
58
|
+
data: Uint8Array | number[];
|
|
59
|
+
description: [] | [string];
|
|
60
|
+
created_at: bigint;
|
|
61
61
|
}
|
|
62
62
|
export interface HttpRequest {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
url: string;
|
|
64
|
+
method: string;
|
|
65
|
+
body: Uint8Array | number[];
|
|
66
|
+
headers: Array<[string, string]>;
|
|
67
67
|
}
|
|
68
68
|
export interface HttpResponse {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
body: Uint8Array | number[];
|
|
70
|
+
headers: Array<[string, string]>;
|
|
71
|
+
streaming_strategy: [] | [StreamingStrategy];
|
|
72
|
+
status_code: number;
|
|
73
73
|
}
|
|
74
74
|
export interface InitAssetKey {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
token: [] | [string];
|
|
76
|
+
collection: string;
|
|
77
|
+
name: string;
|
|
78
|
+
description: [] | [string];
|
|
79
|
+
encoding_type: [] | [string];
|
|
80
|
+
full_path: string;
|
|
81
81
|
}
|
|
82
82
|
export interface InitUploadResult {
|
|
83
|
-
|
|
83
|
+
batch_id: bigint;
|
|
84
84
|
}
|
|
85
85
|
export interface ListMatcher {
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
key: [] | [string];
|
|
87
|
+
description: [] | [string];
|
|
88
88
|
}
|
|
89
89
|
export interface ListOrder {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
field: ListOrderField;
|
|
91
|
+
desc: boolean;
|
|
92
92
|
}
|
|
93
|
-
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
93
|
+
export type ListOrderField = { UpdatedAt: null } | { Keys: null } | { CreatedAt: null };
|
|
94
94
|
export interface ListPaginate {
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
start_after: [] | [string];
|
|
96
|
+
limit: [] | [bigint];
|
|
97
97
|
}
|
|
98
98
|
export interface ListParams {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
order: [] | [ListOrder];
|
|
100
|
+
owner: [] | [Principal];
|
|
101
|
+
matcher: [] | [ListMatcher];
|
|
102
|
+
paginate: [] | [ListPaginate];
|
|
103
103
|
}
|
|
104
104
|
export interface ListResults {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
105
|
+
matches_pages: [] | [bigint];
|
|
106
|
+
matches_length: bigint;
|
|
107
|
+
items_page: [] | [bigint];
|
|
108
|
+
items: Array<[string, AssetNoContent]>;
|
|
109
|
+
items_length: bigint;
|
|
110
110
|
}
|
|
111
111
|
export interface ListResults_1 {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
export type Permission =
|
|
112
|
+
matches_pages: [] | [bigint];
|
|
113
|
+
matches_length: bigint;
|
|
114
|
+
items_page: [] | [bigint];
|
|
115
|
+
items: Array<[string, Doc]>;
|
|
116
|
+
items_length: bigint;
|
|
117
|
+
}
|
|
118
|
+
export type Permission =
|
|
119
|
+
| { Controllers: null }
|
|
120
|
+
| { Private: null }
|
|
121
|
+
| { Public: null }
|
|
122
|
+
| { Managed: null };
|
|
119
123
|
export interface Rule {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
updated_at: bigint;
|
|
125
|
+
max_size: [] | [bigint];
|
|
126
|
+
read: Permission;
|
|
127
|
+
created_at: bigint;
|
|
128
|
+
write: Permission;
|
|
125
129
|
}
|
|
126
|
-
export type RulesType = {Db: null} | {Storage: null};
|
|
130
|
+
export type RulesType = { Db: null } | { Storage: null };
|
|
127
131
|
export interface SetController {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
132
|
+
metadata: Array<[string, string]>;
|
|
133
|
+
scope: ControllerScope;
|
|
134
|
+
expires_at: [] | [bigint];
|
|
131
135
|
}
|
|
132
136
|
export interface SetControllersArgs {
|
|
133
|
-
|
|
134
|
-
|
|
137
|
+
controller: SetController;
|
|
138
|
+
controllers: Array<Principal>;
|
|
135
139
|
}
|
|
136
140
|
export interface SetDoc {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
141
|
+
updated_at: [] | [bigint];
|
|
142
|
+
data: Uint8Array | number[];
|
|
143
|
+
description: [] | [string];
|
|
140
144
|
}
|
|
141
145
|
export interface SetRule {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
updated_at: [] | [bigint];
|
|
147
|
+
max_size: [] | [bigint];
|
|
148
|
+
read: Permission;
|
|
149
|
+
write: Permission;
|
|
146
150
|
}
|
|
147
151
|
export interface StorageConfig {
|
|
148
|
-
|
|
152
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
149
153
|
}
|
|
150
154
|
export interface StreamingCallbackHttpResponse {
|
|
151
|
-
|
|
152
|
-
|
|
155
|
+
token: [] | [StreamingCallbackToken];
|
|
156
|
+
body: Uint8Array | number[];
|
|
153
157
|
}
|
|
154
158
|
export interface StreamingCallbackToken {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
token: [] | [string];
|
|
160
|
+
sha256: [] | [Uint8Array | number[]];
|
|
161
|
+
headers: Array<[string, string]>;
|
|
162
|
+
index: bigint;
|
|
163
|
+
encoding_type: string;
|
|
164
|
+
full_path: string;
|
|
161
165
|
}
|
|
162
166
|
export type StreamingStrategy = {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
+
Callback: {
|
|
168
|
+
token: StreamingCallbackToken;
|
|
169
|
+
callback: [Principal, string];
|
|
170
|
+
};
|
|
167
171
|
};
|
|
168
172
|
export interface UploadChunk {
|
|
169
|
-
|
|
173
|
+
chunk_id: bigint;
|
|
170
174
|
}
|
|
171
175
|
export interface _SERVICE {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
176
|
+
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
177
|
+
del_asset: ActorMethod<[string, string], undefined>;
|
|
178
|
+
del_assets: ActorMethod<[[] | [string]], undefined>;
|
|
179
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
180
|
+
del_custom_domain: ActorMethod<[string], undefined>;
|
|
181
|
+
del_doc: ActorMethod<[string, string, DelDoc], undefined>;
|
|
182
|
+
del_rule: ActorMethod<[RulesType, string, DelDoc], undefined>;
|
|
183
|
+
get_config: ActorMethod<[], Config>;
|
|
184
|
+
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
185
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
186
|
+
http_request_streaming_callback: ActorMethod<
|
|
187
|
+
[StreamingCallbackToken],
|
|
188
|
+
StreamingCallbackHttpResponse
|
|
189
|
+
>;
|
|
190
|
+
init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
|
|
191
|
+
list_assets: ActorMethod<[[] | [string], ListParams], ListResults>;
|
|
192
|
+
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
193
|
+
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
194
|
+
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
195
|
+
list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
|
|
196
|
+
set_config: ActorMethod<[Config], undefined>;
|
|
197
|
+
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
198
|
+
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
199
|
+
set_doc: ActorMethod<[string, string, SetDoc], Doc>;
|
|
200
|
+
set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
|
|
201
|
+
upload_asset_chunk: ActorMethod<[Chunk], UploadChunk>;
|
|
202
|
+
version: ActorMethod<[], string>;
|
|
199
203
|
}
|