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