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