@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.
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 +228 -218
  6. package/declarations/console/console.factory.certified.did.js +14 -1
  7. package/declarations/console/console.factory.did.js +14 -1
  8. package/declarations/console/console.factory.did.mjs +14 -1
  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 +294 -285
  34. package/declarations/satellite/satellite.factory.certified.did.js +1 -0
  35. package/declarations/satellite/satellite.factory.did.js +1 -0
  36. package/declarations/satellite/satellite.factory.did.mjs +1 -0
  37. package/declarations/sputnik/sputnik.did.d.ts +294 -285
  38. package/declarations/sputnik/sputnik.factory.certified.did.js +1 -0
  39. package/declarations/sputnik/sputnik.factory.did.js +1 -0
  40. 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
- 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
+ created_at: [] | [bigint];
32
+ version: [] | [bigint];
33
+ internet_identity: [] | [AuthenticationConfigInternetIdentity];
34
+ rules: [] | [AuthenticationRules];
35
35
  }
36
36
  export interface AuthenticationConfigInternetIdentity {
37
- derivation_origin: [] | [string];
38
- external_alternative_origins: [] | [Array<string>];
37
+ derivation_origin: [] | [string];
38
+ external_alternative_origins: [] | [Array<string>];
39
39
  }
40
40
  export interface AuthenticationRules {
41
- allowed_callers: Array<Principal>;
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
- batch_id: bigint;
46
- headers: Array<[string, string]>;
47
- chunk_ids: Array<bigint>;
45
+ batch_id: bigint;
46
+ headers: Array<[string, string]>;
47
+ chunk_ids: Array<bigint>;
48
48
  }
49
49
  export interface CommitProposal {
50
- sha256: Uint8Array | number[];
51
- proposal_id: bigint;
50
+ sha256: Uint8Array | number[];
51
+ proposal_id: bigint;
52
52
  }
53
53
  export interface Config {
54
- db: [] | [DbConfig];
55
- authentication: [] | [AuthenticationConfig];
56
- storage: StorageConfig;
54
+ db: [] | [DbConfig];
55
+ authentication: [] | [AuthenticationConfig];
56
+ storage: StorageConfig;
57
57
  }
58
58
  export interface ConfigMaxMemorySize {
59
- stable: [] | [bigint];
60
- heap: [] | [bigint];
59
+ stable: [] | [bigint];
60
+ heap: [] | [bigint];
61
61
  }
62
62
  export interface Controller {
63
- updated_at: bigint;
64
- metadata: Array<[string, string]>;
65
- created_at: bigint;
66
- scope: ControllerScope;
67
- expires_at: [] | [bigint];
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
- updated_at: bigint;
72
- created_at: bigint;
73
- version: [] | [bigint];
74
- bn_id: [] | [string];
71
+ updated_at: bigint;
72
+ created_at: bigint;
73
+ version: [] | [bigint];
74
+ bn_id: [] | [string];
75
75
  }
76
76
  export interface DbConfig {
77
- updated_at: [] | [bigint];
78
- created_at: [] | [bigint];
79
- version: [] | [bigint];
80
- max_memory_size: [] | [ConfigMaxMemorySize];
77
+ updated_at: [] | [bigint];
78
+ created_at: [] | [bigint];
79
+ version: [] | [bigint];
80
+ max_memory_size: [] | [ConfigMaxMemorySize];
81
81
  }
82
82
  export interface DelDoc {
83
- version: [] | [bigint];
83
+ version: [] | [bigint];
84
84
  }
85
85
  export interface DelRule {
86
- version: [] | [bigint];
86
+ version: [] | [bigint];
87
87
  }
88
88
  export interface DeleteControllersArgs {
89
- controllers: Array<Principal>;
89
+ controllers: Array<Principal>;
90
90
  }
91
91
  export interface DeleteProposalAssets {
92
- proposal_ids: Array<bigint>;
92
+ proposal_ids: Array<bigint>;
93
93
  }
94
94
  export interface DepositCyclesArgs {
95
- cycles: bigint;
96
- destination_id: Principal;
95
+ cycles: bigint;
96
+ destination_id: Principal;
97
97
  }
98
98
  export interface Doc {
99
- updated_at: bigint;
100
- owner: Principal;
101
- data: Uint8Array | number[];
102
- description: [] | [string];
103
- created_at: bigint;
104
- version: [] | [bigint];
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
- url: string;
108
- method: string;
109
- body: Uint8Array | number[];
110
- headers: Array<[string, string]>;
111
- certificate_version: [] | [number];
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
- body: Uint8Array | number[];
115
- headers: Array<[string, string]>;
116
- streaming_strategy: [] | [StreamingStrategy];
117
- status_code: number;
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
- token: [] | [string];
121
- collection: string;
122
- name: string;
123
- description: [] | [string];
124
- encoding_type: [] | [string];
125
- full_path: string;
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
- batch_id: bigint;
135
+ batch_id: bigint;
129
136
  }
130
137
  export interface ListMatcher {
131
- key: [] | [string];
132
- updated_at: [] | [TimestampMatcher];
133
- description: [] | [string];
134
- created_at: [] | [TimestampMatcher];
138
+ key: [] | [string];
139
+ updated_at: [] | [TimestampMatcher];
140
+ description: [] | [string];
141
+ created_at: [] | [TimestampMatcher];
135
142
  }
136
143
  export interface ListOrder {
137
- field: ListOrderField;
138
- desc: boolean;
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
- start_after: [] | [string];
143
- limit: [] | [bigint];
149
+ start_after: [] | [string];
150
+ limit: [] | [bigint];
144
151
  }
145
152
  export interface ListParams {
146
- order: [] | [ListOrder];
147
- owner: [] | [Principal];
148
- matcher: [] | [ListMatcher];
149
- paginate: [] | [ListPaginate];
153
+ order: [] | [ListOrder];
154
+ owner: [] | [Principal];
155
+ matcher: [] | [ListMatcher];
156
+ paginate: [] | [ListPaginate];
150
157
  }
151
158
  export interface ListProposalResults {
152
- matches_length: bigint;
153
- items: Array<[ProposalKey, Proposal]>;
154
- items_length: bigint;
159
+ matches_length: bigint;
160
+ items: Array<[ProposalKey, Proposal]>;
161
+ items_length: bigint;
155
162
  }
156
163
  export interface ListProposalsOrder {
157
- desc: boolean;
164
+ desc: boolean;
158
165
  }
159
166
  export interface ListProposalsPaginate {
160
- start_after: [] | [bigint];
161
- limit: [] | [bigint];
167
+ start_after: [] | [bigint];
168
+ limit: [] | [bigint];
162
169
  }
163
170
  export interface ListProposalsParams {
164
- order: [] | [ListProposalsOrder];
165
- paginate: [] | [ListProposalsPaginate];
171
+ order: [] | [ListProposalsOrder];
172
+ paginate: [] | [ListProposalsPaginate];
166
173
  }
167
174
  export interface ListResults {
168
- matches_pages: [] | [bigint];
169
- matches_length: bigint;
170
- items_page: [] | [bigint];
171
- items: Array<[string, AssetNoContent]>;
172
- items_length: bigint;
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
- matches_pages: [] | [bigint];
176
- matches_length: bigint;
177
- items_page: [] | [bigint];
178
- items: Array<[string, Doc]>;
179
- items_length: bigint;
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
- include_system: boolean;
189
+ include_system: boolean;
183
190
  }
184
191
  export interface ListRulesParams {
185
- matcher: [] | [ListRulesMatcher];
192
+ matcher: [] | [ListRulesMatcher];
186
193
  }
187
194
  export interface ListRulesResults {
188
- matches_length: bigint;
189
- items: Array<[string, Rule]>;
190
- items_length: bigint;
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
- stable: bigint;
195
- heap: bigint;
196
- }
197
- export type Permission = {Controllers: null} | {Private: null} | {Public: null} | {Managed: null};
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
- 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;
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
- proposal_id: bigint;
220
+ proposal_id: bigint;
210
221
  }
211
222
  export type ProposalStatus =
212
- | {Initialized: null}
213
- | {Failed: null}
214
- | {Open: null}
215
- | {Rejected: null}
216
- | {Executed: null}
217
- | {Accepted: null};
223
+ | { Initialized: null }
224
+ | { Failed: null }
225
+ | { Open: null }
226
+ | { Rejected: null }
227
+ | { Executed: null }
228
+ | { Accepted: null };
218
229
  export type ProposalType =
219
- | {AssetsUpgrade: AssetsUpgradeOptions}
220
- | {SegmentsDeployment: SegmentsDeploymentOptions};
230
+ | { AssetsUpgrade: AssetsUpgradeOptions }
231
+ | { SegmentsDeployment: SegmentsDeploymentOptions };
221
232
  export interface RateConfig {
222
- max_tokens: bigint;
223
- time_per_token_ns: bigint;
233
+ max_tokens: bigint;
234
+ time_per_token_ns: bigint;
224
235
  }
225
236
  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>;
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
- orbiter: [] | [string];
243
- mission_control_version: [] | [string];
244
- satellite_version: [] | [string];
250
+ orbiter: [] | [string];
251
+ mission_control_version: [] | [string];
252
+ satellite_version: [] | [string];
245
253
  }
246
254
  export interface SetAuthenticationConfig {
247
- version: [] | [bigint];
248
- internet_identity: [] | [AuthenticationConfigInternetIdentity];
249
- rules: [] | [AuthenticationRules];
255
+ version: [] | [bigint];
256
+ internet_identity: [] | [AuthenticationConfigInternetIdentity];
257
+ rules: [] | [AuthenticationRules];
250
258
  }
251
259
  export interface SetController {
252
- metadata: Array<[string, string]>;
253
- scope: ControllerScope;
254
- expires_at: [] | [bigint];
260
+ metadata: Array<[string, string]>;
261
+ scope: ControllerScope;
262
+ expires_at: [] | [bigint];
255
263
  }
256
264
  export interface SetControllersArgs {
257
- controller: SetController;
258
- controllers: Array<Principal>;
265
+ controller: SetController;
266
+ controllers: Array<Principal>;
259
267
  }
260
268
  export interface SetDbConfig {
261
- version: [] | [bigint];
262
- max_memory_size: [] | [ConfigMaxMemorySize];
269
+ version: [] | [bigint];
270
+ max_memory_size: [] | [ConfigMaxMemorySize];
263
271
  }
264
272
  export interface SetDoc {
265
- data: Uint8Array | number[];
266
- description: [] | [string];
267
- version: [] | [bigint];
273
+ data: Uint8Array | number[];
274
+ description: [] | [string];
275
+ version: [] | [bigint];
268
276
  }
269
277
  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];
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
- 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]>];
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
- 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};
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
- status_code: number;
304
- location: string;
311
+ status_code: number;
312
+ location: string;
305
313
  }
306
314
  export interface StreamingCallbackHttpResponse {
307
- token: [] | [StreamingCallbackToken];
308
- body: Uint8Array | number[];
315
+ token: [] | [StreamingCallbackToken];
316
+ body: Uint8Array | number[];
309
317
  }
310
318
  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;
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
- Callback: {
321
- token: StreamingCallbackToken;
322
- callback: [Principal, string];
323
- };
328
+ Callback: {
329
+ token: StreamingCallbackToken;
330
+ callback: [Principal, string];
331
+ };
324
332
  };
325
333
  export type TimestampMatcher =
326
- | {Equal: bigint}
327
- | {Between: [bigint, bigint]}
328
- | {GreaterThan: bigint}
329
- | {LessThan: bigint};
334
+ | { Equal: bigint }
335
+ | { Between: [bigint, bigint] }
336
+ | { GreaterThan: bigint }
337
+ | { LessThan: bigint };
330
338
  export interface UploadChunk {
331
- content: Uint8Array | number[];
332
- batch_id: bigint;
333
- order_id: [] | [bigint];
339
+ content: Uint8Array | number[];
340
+ batch_id: bigint;
341
+ order_id: [] | [bigint];
334
342
  }
335
343
  export interface UploadChunkResult {
336
- chunk_id: bigint;
344
+ chunk_id: bigint;
337
345
  }
338
346
  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>;
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[];