@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,404 +1,413 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {IDL} from '@dfinity/candid';
|
|
3
|
-
import type {Principal} from '@dfinity/principal';
|
|
1
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
2
|
+
import type { IDL } from '@dfinity/candid';
|
|
3
|
+
import type { Principal } from '@dfinity/principal';
|
|
4
4
|
|
|
5
5
|
export interface AssetEncodingNoContent {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
modified: bigint;
|
|
7
|
+
sha256: Uint8Array | number[];
|
|
8
|
+
total_length: bigint;
|
|
9
9
|
}
|
|
10
10
|
export interface AssetKey {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
token: [] | [string];
|
|
12
|
+
collection: string;
|
|
13
|
+
owner: Principal;
|
|
14
|
+
name: string;
|
|
15
|
+
description: [] | [string];
|
|
16
|
+
full_path: string;
|
|
17
17
|
}
|
|
18
18
|
export interface AssetNoContent {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
key: AssetKey;
|
|
20
|
+
updated_at: bigint;
|
|
21
|
+
encodings: Array<[string, AssetEncodingNoContent]>;
|
|
22
|
+
headers: Array<[string, string]>;
|
|
23
|
+
created_at: bigint;
|
|
24
|
+
version: [] | [bigint];
|
|
25
25
|
}
|
|
26
26
|
export interface AssetsUpgradeOptions {
|
|
27
|
-
|
|
27
|
+
clear_existing_assets: [] | [boolean];
|
|
28
28
|
}
|
|
29
29
|
export interface AuthenticationConfig {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
updated_at: [] | [bigint];
|
|
31
|
+
created_at: [] | [bigint];
|
|
32
|
+
version: [] | [bigint];
|
|
33
|
+
internet_identity: [] | [AuthenticationConfigInternetIdentity];
|
|
34
|
+
rules: [] | [AuthenticationRules];
|
|
35
35
|
}
|
|
36
36
|
export interface AuthenticationConfigInternetIdentity {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
derivation_origin: [] | [string];
|
|
38
|
+
external_alternative_origins: [] | [Array<string>];
|
|
39
39
|
}
|
|
40
40
|
export interface AuthenticationRules {
|
|
41
|
-
|
|
41
|
+
allowed_callers: Array<Principal>;
|
|
42
42
|
}
|
|
43
|
-
export type CollectionType = {Db: null} | {Storage: null};
|
|
43
|
+
export type CollectionType = { Db: null } | { Storage: null };
|
|
44
44
|
export interface CommitBatch {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
batch_id: bigint;
|
|
46
|
+
headers: Array<[string, string]>;
|
|
47
|
+
chunk_ids: Array<bigint>;
|
|
48
48
|
}
|
|
49
49
|
export interface CommitProposal {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
sha256: Uint8Array | number[];
|
|
51
|
+
proposal_id: bigint;
|
|
52
52
|
}
|
|
53
53
|
export interface Config {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
db: [] | [DbConfig];
|
|
55
|
+
authentication: [] | [AuthenticationConfig];
|
|
56
|
+
storage: StorageConfig;
|
|
57
57
|
}
|
|
58
58
|
export interface ConfigMaxMemorySize {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
stable: [] | [bigint];
|
|
60
|
+
heap: [] | [bigint];
|
|
61
61
|
}
|
|
62
62
|
export interface Controller {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
updated_at: bigint;
|
|
64
|
+
metadata: Array<[string, string]>;
|
|
65
|
+
created_at: bigint;
|
|
66
|
+
scope: ControllerScope;
|
|
67
|
+
expires_at: [] | [bigint];
|
|
68
68
|
}
|
|
69
|
-
export type ControllerScope = {Write: null} | {Admin: null} | {Submit: null};
|
|
69
|
+
export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
70
70
|
export interface CustomDomain {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
updated_at: bigint;
|
|
72
|
+
created_at: bigint;
|
|
73
|
+
version: [] | [bigint];
|
|
74
|
+
bn_id: [] | [string];
|
|
75
75
|
}
|
|
76
76
|
export interface DbConfig {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
updated_at: [] | [bigint];
|
|
78
|
+
created_at: [] | [bigint];
|
|
79
|
+
version: [] | [bigint];
|
|
80
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
81
81
|
}
|
|
82
82
|
export interface DelDoc {
|
|
83
|
-
|
|
83
|
+
version: [] | [bigint];
|
|
84
84
|
}
|
|
85
85
|
export interface DelRule {
|
|
86
|
-
|
|
86
|
+
version: [] | [bigint];
|
|
87
87
|
}
|
|
88
88
|
export interface DeleteControllersArgs {
|
|
89
|
-
|
|
89
|
+
controllers: Array<Principal>;
|
|
90
90
|
}
|
|
91
91
|
export interface DeleteProposalAssets {
|
|
92
|
-
|
|
92
|
+
proposal_ids: Array<bigint>;
|
|
93
93
|
}
|
|
94
94
|
export interface DepositCyclesArgs {
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
cycles: bigint;
|
|
96
|
+
destination_id: Principal;
|
|
97
97
|
}
|
|
98
98
|
export interface Doc {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
updated_at: bigint;
|
|
100
|
+
owner: Principal;
|
|
101
|
+
data: Uint8Array | number[];
|
|
102
|
+
description: [] | [string];
|
|
103
|
+
created_at: bigint;
|
|
104
|
+
version: [] | [bigint];
|
|
105
105
|
}
|
|
106
106
|
export interface HttpRequest {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
107
|
+
url: string;
|
|
108
|
+
method: string;
|
|
109
|
+
body: Uint8Array | number[];
|
|
110
|
+
headers: Array<[string, string]>;
|
|
111
|
+
certificate_version: [] | [number];
|
|
112
112
|
}
|
|
113
113
|
export interface HttpResponse {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
body: Uint8Array | number[];
|
|
115
|
+
headers: Array<[string, string]>;
|
|
116
|
+
streaming_strategy: [] | [StreamingStrategy];
|
|
117
|
+
status_code: number;
|
|
118
118
|
}
|
|
119
119
|
export interface InitAssetKey {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
token: [] | [string];
|
|
121
|
+
collection: string;
|
|
122
|
+
name: string;
|
|
123
|
+
description: [] | [string];
|
|
124
|
+
encoding_type: [] | [string];
|
|
125
|
+
full_path: string;
|
|
126
|
+
}
|
|
127
|
+
export interface InitSatelliteArgs {
|
|
128
|
+
controllers: Array<Principal>;
|
|
129
|
+
storage: [] | [InitStorageArgs];
|
|
130
|
+
}
|
|
131
|
+
export interface InitStorageArgs {
|
|
132
|
+
system_memory: [] | [Memory];
|
|
126
133
|
}
|
|
127
134
|
export interface InitUploadResult {
|
|
128
|
-
|
|
135
|
+
batch_id: bigint;
|
|
129
136
|
}
|
|
130
137
|
export interface ListMatcher {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
138
|
+
key: [] | [string];
|
|
139
|
+
updated_at: [] | [TimestampMatcher];
|
|
140
|
+
description: [] | [string];
|
|
141
|
+
created_at: [] | [TimestampMatcher];
|
|
135
142
|
}
|
|
136
143
|
export interface ListOrder {
|
|
137
|
-
|
|
138
|
-
|
|
144
|
+
field: ListOrderField;
|
|
145
|
+
desc: boolean;
|
|
139
146
|
}
|
|
140
|
-
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
147
|
+
export type ListOrderField = { UpdatedAt: null } | { Keys: null } | { CreatedAt: null };
|
|
141
148
|
export interface ListPaginate {
|
|
142
|
-
|
|
143
|
-
|
|
149
|
+
start_after: [] | [string];
|
|
150
|
+
limit: [] | [bigint];
|
|
144
151
|
}
|
|
145
152
|
export interface ListParams {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
153
|
+
order: [] | [ListOrder];
|
|
154
|
+
owner: [] | [Principal];
|
|
155
|
+
matcher: [] | [ListMatcher];
|
|
156
|
+
paginate: [] | [ListPaginate];
|
|
150
157
|
}
|
|
151
158
|
export interface ListProposalResults {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
159
|
+
matches_length: bigint;
|
|
160
|
+
items: Array<[ProposalKey, Proposal]>;
|
|
161
|
+
items_length: bigint;
|
|
155
162
|
}
|
|
156
163
|
export interface ListProposalsOrder {
|
|
157
|
-
|
|
164
|
+
desc: boolean;
|
|
158
165
|
}
|
|
159
166
|
export interface ListProposalsPaginate {
|
|
160
|
-
|
|
161
|
-
|
|
167
|
+
start_after: [] | [bigint];
|
|
168
|
+
limit: [] | [bigint];
|
|
162
169
|
}
|
|
163
170
|
export interface ListProposalsParams {
|
|
164
|
-
|
|
165
|
-
|
|
171
|
+
order: [] | [ListProposalsOrder];
|
|
172
|
+
paginate: [] | [ListProposalsPaginate];
|
|
166
173
|
}
|
|
167
174
|
export interface ListResults {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
175
|
+
matches_pages: [] | [bigint];
|
|
176
|
+
matches_length: bigint;
|
|
177
|
+
items_page: [] | [bigint];
|
|
178
|
+
items: Array<[string, AssetNoContent]>;
|
|
179
|
+
items_length: bigint;
|
|
173
180
|
}
|
|
174
181
|
export interface ListResults_1 {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
182
|
+
matches_pages: [] | [bigint];
|
|
183
|
+
matches_length: bigint;
|
|
184
|
+
items_page: [] | [bigint];
|
|
185
|
+
items: Array<[string, Doc]>;
|
|
186
|
+
items_length: bigint;
|
|
180
187
|
}
|
|
181
188
|
export interface ListRulesMatcher {
|
|
182
|
-
|
|
189
|
+
include_system: boolean;
|
|
183
190
|
}
|
|
184
191
|
export interface ListRulesParams {
|
|
185
|
-
|
|
192
|
+
matcher: [] | [ListRulesMatcher];
|
|
186
193
|
}
|
|
187
194
|
export interface ListRulesResults {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
195
|
+
matches_length: bigint;
|
|
196
|
+
items: Array<[string, Rule]>;
|
|
197
|
+
items_length: bigint;
|
|
191
198
|
}
|
|
192
|
-
export type Memory = {Heap: null} | {Stable: null};
|
|
199
|
+
export type Memory = { Heap: null } | { Stable: null };
|
|
193
200
|
export interface MemorySize {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
export type Permission =
|
|
201
|
+
stable: bigint;
|
|
202
|
+
heap: bigint;
|
|
203
|
+
}
|
|
204
|
+
export type Permission =
|
|
205
|
+
| { Controllers: null }
|
|
206
|
+
| { Private: null }
|
|
207
|
+
| { Public: null }
|
|
208
|
+
| { Managed: null };
|
|
198
209
|
export interface Proposal {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
210
|
+
status: ProposalStatus;
|
|
211
|
+
updated_at: bigint;
|
|
212
|
+
sha256: [] | [Uint8Array | number[]];
|
|
213
|
+
executed_at: [] | [bigint];
|
|
214
|
+
owner: Principal;
|
|
215
|
+
created_at: bigint;
|
|
216
|
+
version: [] | [bigint];
|
|
217
|
+
proposal_type: ProposalType;
|
|
207
218
|
}
|
|
208
219
|
export interface ProposalKey {
|
|
209
|
-
|
|
220
|
+
proposal_id: bigint;
|
|
210
221
|
}
|
|
211
222
|
export type ProposalStatus =
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
223
|
+
| { Initialized: null }
|
|
224
|
+
| { Failed: null }
|
|
225
|
+
| { Open: null }
|
|
226
|
+
| { Rejected: null }
|
|
227
|
+
| { Executed: null }
|
|
228
|
+
| { Accepted: null };
|
|
218
229
|
export type ProposalType =
|
|
219
|
-
|
|
220
|
-
|
|
230
|
+
| { AssetsUpgrade: AssetsUpgradeOptions }
|
|
231
|
+
| { SegmentsDeployment: SegmentsDeploymentOptions };
|
|
221
232
|
export interface RateConfig {
|
|
222
|
-
|
|
223
|
-
|
|
233
|
+
max_tokens: bigint;
|
|
234
|
+
time_per_token_ns: bigint;
|
|
224
235
|
}
|
|
225
236
|
export interface Rule {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
export interface SegmentArgs {
|
|
239
|
-
controllers: Array<Principal>;
|
|
237
|
+
max_capacity: [] | [number];
|
|
238
|
+
memory: [] | [Memory];
|
|
239
|
+
updated_at: bigint;
|
|
240
|
+
max_size: [] | [bigint];
|
|
241
|
+
read: Permission;
|
|
242
|
+
created_at: bigint;
|
|
243
|
+
version: [] | [bigint];
|
|
244
|
+
mutable_permissions: [] | [boolean];
|
|
245
|
+
rate_config: [] | [RateConfig];
|
|
246
|
+
write: Permission;
|
|
247
|
+
max_changes_per_user: [] | [number];
|
|
240
248
|
}
|
|
241
249
|
export interface SegmentsDeploymentOptions {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
250
|
+
orbiter: [] | [string];
|
|
251
|
+
mission_control_version: [] | [string];
|
|
252
|
+
satellite_version: [] | [string];
|
|
245
253
|
}
|
|
246
254
|
export interface SetAuthenticationConfig {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
255
|
+
version: [] | [bigint];
|
|
256
|
+
internet_identity: [] | [AuthenticationConfigInternetIdentity];
|
|
257
|
+
rules: [] | [AuthenticationRules];
|
|
250
258
|
}
|
|
251
259
|
export interface SetController {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
260
|
+
metadata: Array<[string, string]>;
|
|
261
|
+
scope: ControllerScope;
|
|
262
|
+
expires_at: [] | [bigint];
|
|
255
263
|
}
|
|
256
264
|
export interface SetControllersArgs {
|
|
257
|
-
|
|
258
|
-
|
|
265
|
+
controller: SetController;
|
|
266
|
+
controllers: Array<Principal>;
|
|
259
267
|
}
|
|
260
268
|
export interface SetDbConfig {
|
|
261
|
-
|
|
262
|
-
|
|
269
|
+
version: [] | [bigint];
|
|
270
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
263
271
|
}
|
|
264
272
|
export interface SetDoc {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
273
|
+
data: Uint8Array | number[];
|
|
274
|
+
description: [] | [string];
|
|
275
|
+
version: [] | [bigint];
|
|
268
276
|
}
|
|
269
277
|
export interface SetRule {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
278
|
+
max_capacity: [] | [number];
|
|
279
|
+
memory: [] | [Memory];
|
|
280
|
+
max_size: [] | [bigint];
|
|
281
|
+
read: Permission;
|
|
282
|
+
version: [] | [bigint];
|
|
283
|
+
mutable_permissions: [] | [boolean];
|
|
284
|
+
rate_config: [] | [RateConfig];
|
|
285
|
+
write: Permission;
|
|
286
|
+
max_changes_per_user: [] | [number];
|
|
279
287
|
}
|
|
280
288
|
export interface SetStorageConfig {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
289
|
+
iframe: [] | [StorageConfigIFrame];
|
|
290
|
+
rewrites: Array<[string, string]>;
|
|
291
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
292
|
+
version: [] | [bigint];
|
|
293
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
294
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
295
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
288
296
|
}
|
|
289
297
|
export interface StorageConfig {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
|
|
301
|
-
export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
|
|
298
|
+
iframe: [] | [StorageConfigIFrame];
|
|
299
|
+
updated_at: [] | [bigint];
|
|
300
|
+
rewrites: Array<[string, string]>;
|
|
301
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
302
|
+
created_at: [] | [bigint];
|
|
303
|
+
version: [] | [bigint];
|
|
304
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
305
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
306
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
307
|
+
}
|
|
308
|
+
export type StorageConfigIFrame = { Deny: null } | { AllowAny: null } | { SameOrigin: null };
|
|
309
|
+
export type StorageConfigRawAccess = { Deny: null } | { Allow: null };
|
|
302
310
|
export interface StorageConfigRedirect {
|
|
303
|
-
|
|
304
|
-
|
|
311
|
+
status_code: number;
|
|
312
|
+
location: string;
|
|
305
313
|
}
|
|
306
314
|
export interface StreamingCallbackHttpResponse {
|
|
307
|
-
|
|
308
|
-
|
|
315
|
+
token: [] | [StreamingCallbackToken];
|
|
316
|
+
body: Uint8Array | number[];
|
|
309
317
|
}
|
|
310
318
|
export interface StreamingCallbackToken {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
319
|
+
memory: Memory;
|
|
320
|
+
token: [] | [string];
|
|
321
|
+
sha256: [] | [Uint8Array | number[]];
|
|
322
|
+
headers: Array<[string, string]>;
|
|
323
|
+
index: bigint;
|
|
324
|
+
encoding_type: string;
|
|
325
|
+
full_path: string;
|
|
318
326
|
}
|
|
319
327
|
export type StreamingStrategy = {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
328
|
+
Callback: {
|
|
329
|
+
token: StreamingCallbackToken;
|
|
330
|
+
callback: [Principal, string];
|
|
331
|
+
};
|
|
324
332
|
};
|
|
325
333
|
export type TimestampMatcher =
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
334
|
+
| { Equal: bigint }
|
|
335
|
+
| { Between: [bigint, bigint] }
|
|
336
|
+
| { GreaterThan: bigint }
|
|
337
|
+
| { LessThan: bigint };
|
|
330
338
|
export interface UploadChunk {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
339
|
+
content: Uint8Array | number[];
|
|
340
|
+
batch_id: bigint;
|
|
341
|
+
order_id: [] | [bigint];
|
|
334
342
|
}
|
|
335
343
|
export interface UploadChunkResult {
|
|
336
|
-
|
|
344
|
+
chunk_id: bigint;
|
|
337
345
|
}
|
|
338
346
|
export interface _SERVICE {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
347
|
+
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
348
|
+
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
349
|
+
commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
350
|
+
commit_proposal_many_assets_upload: ActorMethod<[Array<CommitBatch>], undefined>;
|
|
351
|
+
count_assets: ActorMethod<[string, ListParams], bigint>;
|
|
352
|
+
count_collection_assets: ActorMethod<[string], bigint>;
|
|
353
|
+
count_collection_docs: ActorMethod<[string], bigint>;
|
|
354
|
+
count_docs: ActorMethod<[string, ListParams], bigint>;
|
|
355
|
+
count_proposals: ActorMethod<[], bigint>;
|
|
356
|
+
del_asset: ActorMethod<[string, string], undefined>;
|
|
357
|
+
del_assets: ActorMethod<[string], undefined>;
|
|
358
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
359
|
+
del_custom_domain: ActorMethod<[string], undefined>;
|
|
360
|
+
del_doc: ActorMethod<[string, string, DelDoc], undefined>;
|
|
361
|
+
del_docs: ActorMethod<[string], undefined>;
|
|
362
|
+
del_filtered_assets: ActorMethod<[string, ListParams], undefined>;
|
|
363
|
+
del_filtered_docs: ActorMethod<[string, ListParams], undefined>;
|
|
364
|
+
del_many_assets: ActorMethod<[Array<[string, string]>], undefined>;
|
|
365
|
+
del_many_docs: ActorMethod<[Array<[string, string, DelDoc]>], undefined>;
|
|
366
|
+
del_rule: ActorMethod<[CollectionType, string, DelRule], undefined>;
|
|
367
|
+
delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
|
|
368
|
+
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
369
|
+
get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
|
|
370
|
+
get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
|
|
371
|
+
get_config: ActorMethod<[], Config>;
|
|
372
|
+
get_db_config: ActorMethod<[], [] | [DbConfig]>;
|
|
373
|
+
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
374
|
+
get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
|
|
375
|
+
get_many_docs: ActorMethod<[Array<[string, string]>], Array<[string, [] | [Doc]]>>;
|
|
376
|
+
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
|
|
377
|
+
get_rule: ActorMethod<[CollectionType, string], [] | [Rule]>;
|
|
378
|
+
get_storage_config: ActorMethod<[], StorageConfig>;
|
|
379
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
380
|
+
http_request_streaming_callback: ActorMethod<
|
|
381
|
+
[StreamingCallbackToken],
|
|
382
|
+
StreamingCallbackHttpResponse
|
|
383
|
+
>;
|
|
384
|
+
init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
|
|
385
|
+
init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
|
|
386
|
+
init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
387
|
+
init_proposal_many_assets_upload: ActorMethod<
|
|
388
|
+
[Array<InitAssetKey>, bigint],
|
|
389
|
+
Array<[string, InitUploadResult]>
|
|
390
|
+
>;
|
|
391
|
+
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
392
|
+
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
393
|
+
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
394
|
+
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
395
|
+
list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
|
|
396
|
+
list_rules: ActorMethod<[CollectionType, ListRulesParams], ListRulesResults>;
|
|
397
|
+
memory_size: ActorMethod<[], MemorySize>;
|
|
398
|
+
reject_proposal: ActorMethod<[CommitProposal], null>;
|
|
399
|
+
set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
|
|
400
|
+
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
401
|
+
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
402
|
+
set_db_config: ActorMethod<[SetDbConfig], DbConfig>;
|
|
403
|
+
set_doc: ActorMethod<[string, string, SetDoc], Doc>;
|
|
404
|
+
set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<[string, Doc]>>;
|
|
405
|
+
set_rule: ActorMethod<[CollectionType, string, SetRule], Rule>;
|
|
406
|
+
set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
|
|
407
|
+
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
408
|
+
switch_storage_system_memory: ActorMethod<[], undefined>;
|
|
409
|
+
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
410
|
+
upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
402
411
|
}
|
|
403
412
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
404
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
413
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|