@junobuild/ic-client 7.2.0 → 8.0.0

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 (33) 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 +21 -13
  6. package/declarations/console/console.factory.certified.did.js +23 -9
  7. package/declarations/console/console.factory.did.js +23 -9
  8. package/declarations/console/console.factory.did.mjs +23 -9
  9. package/declarations/deprecated/console-0-3-3.did.d.ts +529 -0
  10. package/declarations/deprecated/console-0-3-3.factory.did.js +567 -0
  11. package/declarations/deprecated/observatory-0-4-0.did.d.ts +145 -0
  12. package/declarations/deprecated/observatory-0-4-0.factory.did.js +149 -0
  13. package/declarations/deprecated/satellite-0-1-6.did.d.ts +511 -0
  14. package/declarations/deprecated/satellite-0-1-6.factory.did.js +546 -0
  15. package/declarations/mission_control/mission_control.did.d.ts +3 -0
  16. package/declarations/mission_control/mission_control.factory.certified.did.js +6 -0
  17. package/declarations/mission_control/mission_control.factory.did.js +6 -0
  18. package/declarations/observatory/observatory.did.d.ts +7 -4
  19. package/declarations/observatory/observatory.factory.certified.did.js +14 -4
  20. package/declarations/observatory/observatory.factory.did.js +14 -4
  21. package/declarations/observatory/observatory.factory.did.mjs +14 -4
  22. package/declarations/orbiter/orbiter.did.d.ts +3 -0
  23. package/declarations/orbiter/orbiter.factory.certified.did.js +6 -0
  24. package/declarations/orbiter/orbiter.factory.did.js +6 -0
  25. package/declarations/orbiter/orbiter.factory.did.mjs +6 -0
  26. package/declarations/satellite/satellite.did.d.ts +90 -12
  27. package/declarations/satellite/satellite.factory.certified.did.js +90 -8
  28. package/declarations/satellite/satellite.factory.did.js +90 -8
  29. package/declarations/satellite/satellite.factory.did.mjs +90 -8
  30. package/declarations/sputnik/sputnik.did.d.ts +90 -12
  31. package/declarations/sputnik/sputnik.factory.certified.did.js +90 -8
  32. package/declarations/sputnik/sputnik.factory.did.js +90 -8
  33. package/package.json +1 -1
@@ -0,0 +1,149 @@
1
+ /* eslint-disable */
2
+
3
+ // @ts-nocheck
4
+
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.1.
6
+ // You should NOT make any changes in this file as it will be overwritten.
7
+ // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
+
9
+ export const idlFactory = ({IDL}) => {
10
+ const DeleteControllersArgs = IDL.Record({
11
+ controllers: IDL.Vec(IDL.Principal)
12
+ });
13
+ const GetNotifications = IDL.Record({
14
+ to: IDL.Opt(IDL.Nat64),
15
+ from: IDL.Opt(IDL.Nat64),
16
+ segment_id: IDL.Opt(IDL.Principal)
17
+ });
18
+ const NotifyStatus = IDL.Record({
19
+ pending: IDL.Nat64,
20
+ sent: IDL.Nat64,
21
+ failed: IDL.Nat64
22
+ });
23
+ const OpenIdProvider = IDL.Variant({
24
+ GitHub: IDL.Null,
25
+ Google: IDL.Null
26
+ });
27
+ const GetOpenIdCertificateArgs = IDL.Record({provider: OpenIdProvider});
28
+ const JwkType = IDL.Variant({
29
+ EC: IDL.Null,
30
+ OKP: IDL.Null,
31
+ RSA: IDL.Null,
32
+ oct: IDL.Null
33
+ });
34
+ const JwkParamsEc = IDL.Record({
35
+ x: IDL.Text,
36
+ y: IDL.Text,
37
+ crv: IDL.Text
38
+ });
39
+ const JwkParamsOct = IDL.Record({k: IDL.Text});
40
+ const JwkParamsOkp = IDL.Record({x: IDL.Text, crv: IDL.Text});
41
+ const JwkParamsRsa = IDL.Record({e: IDL.Text, n: IDL.Text});
42
+ const JwkParams = IDL.Variant({
43
+ Ec: JwkParamsEc,
44
+ Oct: JwkParamsOct,
45
+ Okp: JwkParamsOkp,
46
+ Rsa: JwkParamsRsa
47
+ });
48
+ const Jwk = IDL.Record({
49
+ alg: IDL.Opt(IDL.Text),
50
+ kid: IDL.Opt(IDL.Text),
51
+ kty: JwkType,
52
+ params: JwkParams
53
+ });
54
+ const Jwks = IDL.Record({keys: IDL.Vec(Jwk)});
55
+ const OpenIdCertificate = IDL.Record({
56
+ updated_at: IDL.Nat64,
57
+ jwks: Jwks,
58
+ created_at: IDL.Nat64,
59
+ version: IDL.Opt(IDL.Nat64)
60
+ });
61
+ const ControllerScope = IDL.Variant({
62
+ Write: IDL.Null,
63
+ Admin: IDL.Null,
64
+ Submit: IDL.Null
65
+ });
66
+ const Controller = IDL.Record({
67
+ updated_at: IDL.Nat64,
68
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
69
+ created_at: IDL.Nat64,
70
+ scope: ControllerScope,
71
+ expires_at: IDL.Opt(IDL.Nat64)
72
+ });
73
+ const CyclesBalance = IDL.Record({
74
+ timestamp: IDL.Nat64,
75
+ amount: IDL.Nat
76
+ });
77
+ const DepositedCyclesEmailNotification = IDL.Record({
78
+ to: IDL.Text,
79
+ deposited_cycles: CyclesBalance
80
+ });
81
+ const FundingErrorCode = IDL.Variant({
82
+ BalanceCheckFailed: IDL.Null,
83
+ ObtainCyclesFailed: IDL.Null,
84
+ DepositFailed: IDL.Null,
85
+ InsufficientCycles: IDL.Null,
86
+ Other: IDL.Text
87
+ });
88
+ const FundingFailure = IDL.Record({
89
+ timestamp: IDL.Nat64,
90
+ error_code: FundingErrorCode
91
+ });
92
+ const FailedCyclesDepositEmailNotification = IDL.Record({
93
+ to: IDL.Text,
94
+ funding_failure: FundingFailure
95
+ });
96
+ const NotificationKind = IDL.Variant({
97
+ DepositedCyclesEmail: DepositedCyclesEmailNotification,
98
+ FailedCyclesDepositEmail: FailedCyclesDepositEmailNotification
99
+ });
100
+ const SegmentKind = IDL.Variant({
101
+ Orbiter: IDL.Null,
102
+ MissionControl: IDL.Null,
103
+ Satellite: IDL.Null
104
+ });
105
+ const Segment = IDL.Record({
106
+ id: IDL.Principal,
107
+ metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
108
+ kind: SegmentKind
109
+ });
110
+ const NotifyArgs = IDL.Record({
111
+ kind: NotificationKind,
112
+ user: IDL.Principal,
113
+ segment: Segment
114
+ });
115
+ const SetController = IDL.Record({
116
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
117
+ scope: ControllerScope,
118
+ expires_at: IDL.Opt(IDL.Nat64)
119
+ });
120
+ const SetControllersArgs = IDL.Record({
121
+ controller: SetController,
122
+ controllers: IDL.Vec(IDL.Principal)
123
+ });
124
+ const Env = IDL.Record({email_api_key: IDL.Opt(IDL.Text)});
125
+ const RateKind = IDL.Variant({OpenIdCertificateRequests: IDL.Null});
126
+ const RateConfig = IDL.Record({
127
+ max_tokens: IDL.Nat64,
128
+ time_per_token_ns: IDL.Nat64
129
+ });
130
+
131
+ return IDL.Service({
132
+ del_controllers: IDL.Func([DeleteControllersArgs], [], []),
133
+ get_notify_status: IDL.Func([GetNotifications], [NotifyStatus], ['query']),
134
+ get_openid_certificate: IDL.Func([GetOpenIdCertificateArgs], [IDL.Opt(OpenIdCertificate)], []),
135
+ is_openid_monitoring_enabled: IDL.Func([OpenIdProvider], [IDL.Bool], []),
136
+ list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
137
+ notify: IDL.Func([NotifyArgs], [], []),
138
+ ping: IDL.Func([NotifyArgs], [], []),
139
+ set_controllers: IDL.Func([SetControllersArgs], [], []),
140
+ set_env: IDL.Func([Env], [], []),
141
+ set_rate_config: IDL.Func([RateKind, RateConfig], [], []),
142
+ start_openid_monitoring: IDL.Func([OpenIdProvider], [], []),
143
+ stop_openid_monitoring: IDL.Func([OpenIdProvider], [], [])
144
+ });
145
+ };
146
+
147
+ export const init = ({IDL}) => {
148
+ return [];
149
+ };
@@ -0,0 +1,511 @@
1
+ /* eslint-disable */
2
+
3
+ // @ts-nocheck
4
+
5
+ // This file was automatically generated by @icp-sdk/bindgen@0.2.1.
6
+ // You should NOT make any changes in this file as it will be overwritten.
7
+ // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
+
9
+ import type { ActorMethod } from '@icp-sdk/core/agent';
10
+ import type { IDL } from '@icp-sdk/core/candid';
11
+ import type { Principal } from '@icp-sdk/core/principal';
12
+
13
+ export interface AssetEncodingNoContent {
14
+ modified: bigint;
15
+ sha256: Uint8Array;
16
+ total_length: bigint;
17
+ }
18
+ export interface AssetKey {
19
+ token: [] | [string];
20
+ collection: string;
21
+ owner: Principal;
22
+ name: string;
23
+ description: [] | [string];
24
+ full_path: string;
25
+ }
26
+ export interface AssetNoContent {
27
+ key: AssetKey;
28
+ updated_at: bigint;
29
+ encodings: Array<[string, AssetEncodingNoContent]>;
30
+ headers: Array<[string, string]>;
31
+ created_at: bigint;
32
+ version: [] | [bigint];
33
+ }
34
+ export interface AssetsUpgradeOptions {
35
+ clear_existing_assets: [] | [boolean];
36
+ }
37
+ export type AuthenticateResultResponse = { Ok: Authentication } | { Err: AuthenticationError };
38
+ export interface Authentication {
39
+ doc: Doc;
40
+ delegation: PreparedDelegation;
41
+ }
42
+ export type AuthenticationArgs = { OpenId: OpenIdPrepareDelegationArgs };
43
+ export interface AuthenticationConfig {
44
+ updated_at: [] | [bigint];
45
+ openid: [] | [AuthenticationConfigOpenId];
46
+ created_at: [] | [bigint];
47
+ version: [] | [bigint];
48
+ internet_identity: [] | [AuthenticationConfigInternetIdentity];
49
+ rules: [] | [AuthenticationRules];
50
+ }
51
+ export interface AuthenticationConfigInternetIdentity {
52
+ derivation_origin: [] | [string];
53
+ external_alternative_origins: [] | [Array<string>];
54
+ }
55
+ export interface AuthenticationConfigOpenId {
56
+ observatory_id: [] | [Principal];
57
+ providers: Array<[OpenIdProvider, OpenIdProviderConfig]>;
58
+ }
59
+ export type AuthenticationError =
60
+ | {
61
+ PrepareDelegation: PrepareDelegationError;
62
+ }
63
+ | { RegisterUser: string };
64
+ export interface AuthenticationRules {
65
+ allowed_callers: Array<Principal>;
66
+ }
67
+ export type CollectionType = { Db: null } | { Storage: null };
68
+ export interface CommitBatch {
69
+ batch_id: bigint;
70
+ headers: Array<[string, string]>;
71
+ chunk_ids: Array<bigint>;
72
+ }
73
+ export interface CommitProposal {
74
+ sha256: Uint8Array;
75
+ proposal_id: bigint;
76
+ }
77
+ export interface Config {
78
+ db: [] | [DbConfig];
79
+ authentication: [] | [AuthenticationConfig];
80
+ storage: StorageConfig;
81
+ }
82
+ export interface ConfigMaxMemorySize {
83
+ stable: [] | [bigint];
84
+ heap: [] | [bigint];
85
+ }
86
+ export interface Controller {
87
+ updated_at: bigint;
88
+ metadata: Array<[string, string]>;
89
+ created_at: bigint;
90
+ scope: ControllerScope;
91
+ expires_at: [] | [bigint];
92
+ }
93
+ export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
94
+ export interface CustomDomain {
95
+ updated_at: bigint;
96
+ created_at: bigint;
97
+ version: [] | [bigint];
98
+ bn_id: [] | [string];
99
+ }
100
+ export interface DbConfig {
101
+ updated_at: [] | [bigint];
102
+ created_at: [] | [bigint];
103
+ version: [] | [bigint];
104
+ max_memory_size: [] | [ConfigMaxMemorySize];
105
+ }
106
+ export interface DelDoc {
107
+ version: [] | [bigint];
108
+ }
109
+ export interface DelRule {
110
+ version: [] | [bigint];
111
+ }
112
+ export interface Delegation {
113
+ pubkey: Uint8Array;
114
+ targets: [] | [Array<Principal>];
115
+ expiration: bigint;
116
+ }
117
+ export interface DeleteControllersArgs {
118
+ controllers: Array<Principal>;
119
+ }
120
+ export interface DeleteProposalAssets {
121
+ proposal_ids: Array<bigint>;
122
+ }
123
+ export interface DepositCyclesArgs {
124
+ cycles: bigint;
125
+ destination_id: Principal;
126
+ }
127
+ export interface Doc {
128
+ updated_at: bigint;
129
+ owner: Principal;
130
+ data: Uint8Array;
131
+ description: [] | [string];
132
+ created_at: bigint;
133
+ version: [] | [bigint];
134
+ }
135
+ export type GetDelegationArgs = { OpenId: OpenIdGetDelegationArgs };
136
+ export type GetDelegationError =
137
+ | { JwtFindProvider: JwtFindProviderError }
138
+ | { GetCachedJwks: null }
139
+ | { NoSuchDelegation: null }
140
+ | { JwtVerify: JwtVerifyError }
141
+ | { GetOrFetchJwks: GetOrRefreshJwksError }
142
+ | { DeriveSeedFailed: string };
143
+ export type GetDelegationResultResponse = { Ok: SignedDelegation } | { Err: GetDelegationError };
144
+ export type GetOrRefreshJwksError =
145
+ | { InvalidConfig: string }
146
+ | { MissingKid: null }
147
+ | { BadClaim: string }
148
+ | { KeyNotFoundCooldown: null }
149
+ | { CertificateNotFound: null }
150
+ | { BadSig: string }
151
+ | { MissingLastAttempt: string }
152
+ | { KeyNotFound: null }
153
+ | { FetchFailed: string };
154
+ export interface HttpRequest {
155
+ url: string;
156
+ method: string;
157
+ body: Uint8Array;
158
+ headers: Array<[string, string]>;
159
+ certificate_version: [] | [number];
160
+ }
161
+ export interface HttpResponse {
162
+ body: Uint8Array;
163
+ headers: Array<[string, string]>;
164
+ streaming_strategy: [] | [StreamingStrategy];
165
+ status_code: number;
166
+ }
167
+ export interface InitAssetKey {
168
+ token: [] | [string];
169
+ collection: string;
170
+ name: string;
171
+ description: [] | [string];
172
+ encoding_type: [] | [string];
173
+ full_path: string;
174
+ }
175
+ export interface InitSatelliteArgs {
176
+ controllers: Array<Principal>;
177
+ storage: [] | [InitStorageArgs];
178
+ }
179
+ export interface InitStorageArgs {
180
+ system_memory: [] | [Memory];
181
+ }
182
+ export interface InitUploadResult {
183
+ batch_id: bigint;
184
+ }
185
+ export type JwtFindProviderError =
186
+ | { BadClaim: string }
187
+ | { BadSig: string }
188
+ | { NoMatchingProvider: null };
189
+ export type JwtVerifyError =
190
+ | { WrongKeyType: null }
191
+ | { MissingKid: null }
192
+ | { BadClaim: string }
193
+ | { BadSig: string }
194
+ | { NoKeyForKid: null };
195
+ export interface ListMatcher {
196
+ key: [] | [string];
197
+ updated_at: [] | [TimestampMatcher];
198
+ description: [] | [string];
199
+ created_at: [] | [TimestampMatcher];
200
+ }
201
+ export interface ListOrder {
202
+ field: ListOrderField;
203
+ desc: boolean;
204
+ }
205
+ export type ListOrderField = { UpdatedAt: null } | { Keys: null } | { CreatedAt: null };
206
+ export interface ListPaginate {
207
+ start_after: [] | [string];
208
+ limit: [] | [bigint];
209
+ }
210
+ export interface ListParams {
211
+ order: [] | [ListOrder];
212
+ owner: [] | [Principal];
213
+ matcher: [] | [ListMatcher];
214
+ paginate: [] | [ListPaginate];
215
+ }
216
+ export interface ListProposalResults {
217
+ matches_length: bigint;
218
+ items: Array<[ProposalKey, Proposal]>;
219
+ items_length: bigint;
220
+ }
221
+ export interface ListProposalsOrder {
222
+ desc: boolean;
223
+ }
224
+ export interface ListProposalsPaginate {
225
+ start_after: [] | [bigint];
226
+ limit: [] | [bigint];
227
+ }
228
+ export interface ListProposalsParams {
229
+ order: [] | [ListProposalsOrder];
230
+ paginate: [] | [ListProposalsPaginate];
231
+ }
232
+ export interface ListResults {
233
+ matches_pages: [] | [bigint];
234
+ matches_length: bigint;
235
+ items_page: [] | [bigint];
236
+ items: Array<[string, AssetNoContent]>;
237
+ items_length: bigint;
238
+ }
239
+ export interface ListResults_1 {
240
+ matches_pages: [] | [bigint];
241
+ matches_length: bigint;
242
+ items_page: [] | [bigint];
243
+ items: Array<[string, Doc]>;
244
+ items_length: bigint;
245
+ }
246
+ export interface ListRulesMatcher {
247
+ include_system: boolean;
248
+ }
249
+ export interface ListRulesParams {
250
+ matcher: [] | [ListRulesMatcher];
251
+ }
252
+ export interface ListRulesResults {
253
+ matches_length: bigint;
254
+ items: Array<[string, Rule]>;
255
+ items_length: bigint;
256
+ }
257
+ export type Memory = { Heap: null } | { Stable: null };
258
+ export interface MemorySize {
259
+ stable: bigint;
260
+ heap: bigint;
261
+ }
262
+ export interface OpenIdGetDelegationArgs {
263
+ jwt: string;
264
+ session_key: Uint8Array;
265
+ salt: Uint8Array;
266
+ expiration: bigint;
267
+ }
268
+ export interface OpenIdPrepareDelegationArgs {
269
+ jwt: string;
270
+ session_key: Uint8Array;
271
+ salt: Uint8Array;
272
+ }
273
+ export type OpenIdProvider = { Google: null };
274
+ export interface OpenIdProviderConfig {
275
+ delegation: [] | [OpenIdProviderDelegationConfig];
276
+ client_id: string;
277
+ }
278
+ export interface OpenIdProviderDelegationConfig {
279
+ targets: [] | [Array<Principal>];
280
+ max_time_to_live: [] | [bigint];
281
+ }
282
+ export type Permission =
283
+ | { Controllers: null }
284
+ | { Private: null }
285
+ | { Public: null }
286
+ | { Managed: null };
287
+ export type PrepareDelegationError =
288
+ | {
289
+ JwtFindProvider: JwtFindProviderError;
290
+ }
291
+ | { GetCachedJwks: null }
292
+ | { JwtVerify: JwtVerifyError }
293
+ | { GetOrFetchJwks: GetOrRefreshJwksError }
294
+ | { DeriveSeedFailed: string };
295
+ export interface PreparedDelegation {
296
+ user_key: Uint8Array;
297
+ expiration: bigint;
298
+ }
299
+ export interface Proposal {
300
+ status: ProposalStatus;
301
+ updated_at: bigint;
302
+ sha256: [] | [Uint8Array];
303
+ executed_at: [] | [bigint];
304
+ owner: Principal;
305
+ created_at: bigint;
306
+ version: [] | [bigint];
307
+ proposal_type: ProposalType;
308
+ }
309
+ export interface ProposalKey {
310
+ proposal_id: bigint;
311
+ }
312
+ export type ProposalStatus =
313
+ | { Initialized: null }
314
+ | { Failed: null }
315
+ | { Open: null }
316
+ | { Rejected: null }
317
+ | { Executed: null }
318
+ | { Accepted: null };
319
+ export type ProposalType =
320
+ | { AssetsUpgrade: AssetsUpgradeOptions }
321
+ | { SegmentsDeployment: SegmentsDeploymentOptions };
322
+ export interface RateConfig {
323
+ max_tokens: bigint;
324
+ time_per_token_ns: bigint;
325
+ }
326
+ export interface Rule {
327
+ max_capacity: [] | [number];
328
+ memory: [] | [Memory];
329
+ updated_at: bigint;
330
+ max_size: [] | [bigint];
331
+ read: Permission;
332
+ created_at: bigint;
333
+ version: [] | [bigint];
334
+ mutable_permissions: [] | [boolean];
335
+ rate_config: [] | [RateConfig];
336
+ write: Permission;
337
+ max_changes_per_user: [] | [number];
338
+ }
339
+ export interface SegmentsDeploymentOptions {
340
+ orbiter: [] | [string];
341
+ mission_control_version: [] | [string];
342
+ satellite_version: [] | [string];
343
+ }
344
+ export interface SetAuthenticationConfig {
345
+ openid: [] | [AuthenticationConfigOpenId];
346
+ version: [] | [bigint];
347
+ internet_identity: [] | [AuthenticationConfigInternetIdentity];
348
+ rules: [] | [AuthenticationRules];
349
+ }
350
+ export interface SetController {
351
+ metadata: Array<[string, string]>;
352
+ scope: ControllerScope;
353
+ expires_at: [] | [bigint];
354
+ }
355
+ export interface SetControllersArgs {
356
+ controller: SetController;
357
+ controllers: Array<Principal>;
358
+ }
359
+ export interface SetDbConfig {
360
+ version: [] | [bigint];
361
+ max_memory_size: [] | [ConfigMaxMemorySize];
362
+ }
363
+ export interface SetDoc {
364
+ data: Uint8Array;
365
+ description: [] | [string];
366
+ version: [] | [bigint];
367
+ }
368
+ export interface SetRule {
369
+ max_capacity: [] | [number];
370
+ memory: [] | [Memory];
371
+ max_size: [] | [bigint];
372
+ read: Permission;
373
+ version: [] | [bigint];
374
+ mutable_permissions: [] | [boolean];
375
+ rate_config: [] | [RateConfig];
376
+ write: Permission;
377
+ max_changes_per_user: [] | [number];
378
+ }
379
+ export interface SetStorageConfig {
380
+ iframe: [] | [StorageConfigIFrame];
381
+ rewrites: Array<[string, string]>;
382
+ headers: Array<[string, Array<[string, string]>]>;
383
+ version: [] | [bigint];
384
+ max_memory_size: [] | [ConfigMaxMemorySize];
385
+ raw_access: [] | [StorageConfigRawAccess];
386
+ redirects: [] | [Array<[string, StorageConfigRedirect]>];
387
+ }
388
+ export interface SignedDelegation {
389
+ signature: Uint8Array;
390
+ delegation: Delegation;
391
+ }
392
+ export interface StorageConfig {
393
+ iframe: [] | [StorageConfigIFrame];
394
+ updated_at: [] | [bigint];
395
+ rewrites: Array<[string, string]>;
396
+ headers: Array<[string, Array<[string, string]>]>;
397
+ created_at: [] | [bigint];
398
+ version: [] | [bigint];
399
+ max_memory_size: [] | [ConfigMaxMemorySize];
400
+ raw_access: [] | [StorageConfigRawAccess];
401
+ redirects: [] | [Array<[string, StorageConfigRedirect]>];
402
+ }
403
+ export type StorageConfigIFrame = { Deny: null } | { AllowAny: null } | { SameOrigin: null };
404
+ export type StorageConfigRawAccess = { Deny: null } | { Allow: null };
405
+ export interface StorageConfigRedirect {
406
+ status_code: number;
407
+ location: string;
408
+ }
409
+ export interface StreamingCallbackHttpResponse {
410
+ token: [] | [StreamingCallbackToken];
411
+ body: Uint8Array;
412
+ }
413
+ export interface StreamingCallbackToken {
414
+ memory: Memory;
415
+ token: [] | [string];
416
+ sha256: [] | [Uint8Array];
417
+ headers: Array<[string, string]>;
418
+ index: bigint;
419
+ encoding_type: string;
420
+ full_path: string;
421
+ }
422
+ export type StreamingStrategy = {
423
+ Callback: {
424
+ token: StreamingCallbackToken;
425
+ callback: [Principal, string];
426
+ };
427
+ };
428
+ export type TimestampMatcher =
429
+ | { Equal: bigint }
430
+ | { Between: [bigint, bigint] }
431
+ | { GreaterThan: bigint }
432
+ | { LessThan: bigint };
433
+ export interface UploadChunk {
434
+ content: Uint8Array;
435
+ batch_id: bigint;
436
+ order_id: [] | [bigint];
437
+ }
438
+ export interface UploadChunkResult {
439
+ chunk_id: bigint;
440
+ }
441
+ export interface _SERVICE {
442
+ authenticate: ActorMethod<[AuthenticationArgs], AuthenticateResultResponse>;
443
+ commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
444
+ commit_proposal: ActorMethod<[CommitProposal], null>;
445
+ commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
446
+ commit_proposal_many_assets_upload: ActorMethod<[Array<CommitBatch>], undefined>;
447
+ count_assets: ActorMethod<[string, ListParams], bigint>;
448
+ count_collection_assets: ActorMethod<[string], bigint>;
449
+ count_collection_docs: ActorMethod<[string], bigint>;
450
+ count_docs: ActorMethod<[string, ListParams], bigint>;
451
+ count_proposals: ActorMethod<[], bigint>;
452
+ del_asset: ActorMethod<[string, string], undefined>;
453
+ del_assets: ActorMethod<[string], undefined>;
454
+ del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
455
+ del_custom_domain: ActorMethod<[string], undefined>;
456
+ del_doc: ActorMethod<[string, string, DelDoc], undefined>;
457
+ del_docs: ActorMethod<[string], undefined>;
458
+ del_filtered_assets: ActorMethod<[string, ListParams], undefined>;
459
+ del_filtered_docs: ActorMethod<[string, ListParams], undefined>;
460
+ del_many_assets: ActorMethod<[Array<[string, string]>], undefined>;
461
+ del_many_docs: ActorMethod<[Array<[string, string, DelDoc]>], undefined>;
462
+ del_rule: ActorMethod<[CollectionType, string, DelRule], undefined>;
463
+ delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
464
+ deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
465
+ get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
466
+ get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
467
+ get_config: ActorMethod<[], Config>;
468
+ get_db_config: ActorMethod<[], [] | [DbConfig]>;
469
+ get_delegation: ActorMethod<[GetDelegationArgs], GetDelegationResultResponse>;
470
+ get_doc: ActorMethod<[string, string], [] | [Doc]>;
471
+ get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
472
+ get_many_docs: ActorMethod<[Array<[string, string]>], Array<[string, [] | [Doc]]>>;
473
+ get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
474
+ get_rule: ActorMethod<[CollectionType, string], [] | [Rule]>;
475
+ get_storage_config: ActorMethod<[], StorageConfig>;
476
+ http_request: ActorMethod<[HttpRequest], HttpResponse>;
477
+ http_request_streaming_callback: ActorMethod<
478
+ [StreamingCallbackToken],
479
+ StreamingCallbackHttpResponse
480
+ >;
481
+ init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
482
+ init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
483
+ init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
484
+ init_proposal_many_assets_upload: ActorMethod<
485
+ [Array<InitAssetKey>, bigint],
486
+ Array<[string, InitUploadResult]>
487
+ >;
488
+ list_assets: ActorMethod<[string, ListParams], ListResults>;
489
+ list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
490
+ list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
491
+ list_docs: ActorMethod<[string, ListParams], ListResults_1>;
492
+ list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
493
+ list_rules: ActorMethod<[CollectionType, ListRulesParams], ListRulesResults>;
494
+ memory_size: ActorMethod<[], MemorySize>;
495
+ reject_proposal: ActorMethod<[CommitProposal], null>;
496
+ set_asset_token: ActorMethod<[string, string, [] | [string]], undefined>;
497
+ set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
498
+ set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
499
+ set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
500
+ set_db_config: ActorMethod<[SetDbConfig], DbConfig>;
501
+ set_doc: ActorMethod<[string, string, SetDoc], Doc>;
502
+ set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<[string, Doc]>>;
503
+ set_rule: ActorMethod<[CollectionType, string, SetRule], Rule>;
504
+ set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
505
+ submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
506
+ switch_storage_system_memory: ActorMethod<[], undefined>;
507
+ upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
508
+ upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
509
+ }
510
+ export declare const idlFactory: IDL.InterfaceFactory;
511
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];