@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
|
@@ -19,12 +19,45 @@ export const idlFactory = ({IDL}) => {
|
|
|
19
19
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
20
20
|
user: IDL.Principal
|
|
21
21
|
});
|
|
22
|
+
const InitStorageMemory = IDL.Variant({
|
|
23
|
+
Heap: IDL.Null,
|
|
24
|
+
Stable: IDL.Null
|
|
25
|
+
});
|
|
26
|
+
const InitStorageArgs = IDL.Record({
|
|
27
|
+
system_memory: IDL.Opt(InitStorageMemory)
|
|
28
|
+
});
|
|
29
|
+
const CreateSatelliteArgs = IDL.Record({
|
|
30
|
+
block_index: IDL.Opt(IDL.Nat64),
|
|
31
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
32
|
+
storage: IDL.Opt(InitStorageArgs),
|
|
33
|
+
user: IDL.Principal
|
|
34
|
+
});
|
|
22
35
|
const DeleteControllersArgs = IDL.Record({
|
|
23
36
|
controllers: IDL.Vec(IDL.Principal)
|
|
24
37
|
});
|
|
25
38
|
const DeleteProposalAssets = IDL.Record({
|
|
26
39
|
proposal_ids: IDL.Vec(IDL.Nat)
|
|
27
40
|
});
|
|
41
|
+
const OpenIdProvider = IDL.Variant({Google: IDL.Null});
|
|
42
|
+
const OpenIdProviderConfig = IDL.Record({client_id: IDL.Text});
|
|
43
|
+
const AuthenticationConfigOpenId = IDL.Record({
|
|
44
|
+
providers: IDL.Vec(IDL.Tuple(OpenIdProvider, OpenIdProviderConfig))
|
|
45
|
+
});
|
|
46
|
+
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
47
|
+
derivation_origin: IDL.Opt(IDL.Text),
|
|
48
|
+
external_alternative_origins: IDL.Opt(IDL.Vec(IDL.Text))
|
|
49
|
+
});
|
|
50
|
+
const AuthenticationRules = IDL.Record({
|
|
51
|
+
allowed_callers: IDL.Vec(IDL.Principal)
|
|
52
|
+
});
|
|
53
|
+
const AuthenticationConfig = IDL.Record({
|
|
54
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
55
|
+
openid: IDL.Opt(AuthenticationConfigOpenId),
|
|
56
|
+
created_at: IDL.Opt(IDL.Nat64),
|
|
57
|
+
version: IDL.Opt(IDL.Nat64),
|
|
58
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
59
|
+
rules: IDL.Opt(AuthenticationRules)
|
|
60
|
+
});
|
|
28
61
|
const StorageConfigIFrame = IDL.Variant({
|
|
29
62
|
Deny: IDL.Null,
|
|
30
63
|
AllowAny: IDL.Null,
|
|
@@ -53,7 +86,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
53
86
|
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
54
87
|
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
55
88
|
});
|
|
56
|
-
const Config = IDL.Record({
|
|
89
|
+
const Config = IDL.Record({
|
|
90
|
+
authentication: IDL.Opt(AuthenticationConfig),
|
|
91
|
+
storage: StorageConfig
|
|
92
|
+
});
|
|
57
93
|
const GetCreateCanisterFeeArgs = IDL.Record({user: IDL.Principal});
|
|
58
94
|
const ProposalStatus = IDL.Variant({
|
|
59
95
|
Initialized: IDL.Null,
|
|
@@ -236,6 +272,12 @@ export const idlFactory = ({IDL}) => {
|
|
|
236
272
|
items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)),
|
|
237
273
|
items_length: IDL.Nat64
|
|
238
274
|
});
|
|
275
|
+
const SetAuthenticationConfig = IDL.Record({
|
|
276
|
+
openid: IDL.Opt(AuthenticationConfigOpenId),
|
|
277
|
+
version: IDL.Opt(IDL.Nat64),
|
|
278
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
279
|
+
rules: IDL.Opt(AuthenticationRules)
|
|
280
|
+
});
|
|
239
281
|
const SetController = IDL.Record({
|
|
240
282
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
241
283
|
scope: ControllerScope,
|
|
@@ -278,10 +320,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
278
320
|
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
279
321
|
count_proposals: IDL.Func([], [IDL.Nat64], ['query']),
|
|
280
322
|
create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
281
|
-
create_satellite: IDL.Func([
|
|
323
|
+
create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
|
|
282
324
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
283
325
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
284
326
|
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
327
|
+
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
285
328
|
get_config: IDL.Func([], [Config], ['query']),
|
|
286
329
|
get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
287
330
|
get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
@@ -314,6 +357,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
314
357
|
['query']
|
|
315
358
|
),
|
|
316
359
|
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
360
|
+
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
|
|
317
361
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
318
362
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
319
363
|
set_fee: IDL.Func([SegmentKind, Tokens], [], []),
|
|
@@ -19,12 +19,45 @@ export const idlFactory = ({IDL}) => {
|
|
|
19
19
|
subnet_id: IDL.Opt(IDL.Principal),
|
|
20
20
|
user: IDL.Principal
|
|
21
21
|
});
|
|
22
|
+
const InitStorageMemory = IDL.Variant({
|
|
23
|
+
Heap: IDL.Null,
|
|
24
|
+
Stable: IDL.Null
|
|
25
|
+
});
|
|
26
|
+
const InitStorageArgs = IDL.Record({
|
|
27
|
+
system_memory: IDL.Opt(InitStorageMemory)
|
|
28
|
+
});
|
|
29
|
+
const CreateSatelliteArgs = IDL.Record({
|
|
30
|
+
block_index: IDL.Opt(IDL.Nat64),
|
|
31
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
32
|
+
storage: IDL.Opt(InitStorageArgs),
|
|
33
|
+
user: IDL.Principal
|
|
34
|
+
});
|
|
22
35
|
const DeleteControllersArgs = IDL.Record({
|
|
23
36
|
controllers: IDL.Vec(IDL.Principal)
|
|
24
37
|
});
|
|
25
38
|
const DeleteProposalAssets = IDL.Record({
|
|
26
39
|
proposal_ids: IDL.Vec(IDL.Nat)
|
|
27
40
|
});
|
|
41
|
+
const OpenIdProvider = IDL.Variant({Google: IDL.Null});
|
|
42
|
+
const OpenIdProviderConfig = IDL.Record({client_id: IDL.Text});
|
|
43
|
+
const AuthenticationConfigOpenId = IDL.Record({
|
|
44
|
+
providers: IDL.Vec(IDL.Tuple(OpenIdProvider, OpenIdProviderConfig))
|
|
45
|
+
});
|
|
46
|
+
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
47
|
+
derivation_origin: IDL.Opt(IDL.Text),
|
|
48
|
+
external_alternative_origins: IDL.Opt(IDL.Vec(IDL.Text))
|
|
49
|
+
});
|
|
50
|
+
const AuthenticationRules = IDL.Record({
|
|
51
|
+
allowed_callers: IDL.Vec(IDL.Principal)
|
|
52
|
+
});
|
|
53
|
+
const AuthenticationConfig = IDL.Record({
|
|
54
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
55
|
+
openid: IDL.Opt(AuthenticationConfigOpenId),
|
|
56
|
+
created_at: IDL.Opt(IDL.Nat64),
|
|
57
|
+
version: IDL.Opt(IDL.Nat64),
|
|
58
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
59
|
+
rules: IDL.Opt(AuthenticationRules)
|
|
60
|
+
});
|
|
28
61
|
const StorageConfigIFrame = IDL.Variant({
|
|
29
62
|
Deny: IDL.Null,
|
|
30
63
|
AllowAny: IDL.Null,
|
|
@@ -53,7 +86,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
53
86
|
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
54
87
|
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
55
88
|
});
|
|
56
|
-
const Config = IDL.Record({
|
|
89
|
+
const Config = IDL.Record({
|
|
90
|
+
authentication: IDL.Opt(AuthenticationConfig),
|
|
91
|
+
storage: StorageConfig
|
|
92
|
+
});
|
|
57
93
|
const GetCreateCanisterFeeArgs = IDL.Record({user: IDL.Principal});
|
|
58
94
|
const ProposalStatus = IDL.Variant({
|
|
59
95
|
Initialized: IDL.Null,
|
|
@@ -236,6 +272,12 @@ export const idlFactory = ({IDL}) => {
|
|
|
236
272
|
items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)),
|
|
237
273
|
items_length: IDL.Nat64
|
|
238
274
|
});
|
|
275
|
+
const SetAuthenticationConfig = IDL.Record({
|
|
276
|
+
openid: IDL.Opt(AuthenticationConfigOpenId),
|
|
277
|
+
version: IDL.Opt(IDL.Nat64),
|
|
278
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
279
|
+
rules: IDL.Opt(AuthenticationRules)
|
|
280
|
+
});
|
|
239
281
|
const SetController = IDL.Record({
|
|
240
282
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
241
283
|
scope: ControllerScope,
|
|
@@ -278,10 +320,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
278
320
|
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
279
321
|
count_proposals: IDL.Func([], [IDL.Nat64], ['query']),
|
|
280
322
|
create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
|
|
281
|
-
create_satellite: IDL.Func([
|
|
323
|
+
create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
|
|
282
324
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
283
325
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
284
326
|
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
327
|
+
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
285
328
|
get_config: IDL.Func([], [Config], ['query']),
|
|
286
329
|
get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
287
330
|
get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
@@ -314,6 +357,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
314
357
|
['query']
|
|
315
358
|
),
|
|
316
359
|
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
360
|
+
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
|
|
317
361
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
318
362
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
319
363
|
set_fee: IDL.Func([SegmentKind, Tokens], [], []),
|
|
@@ -1,267 +1,267 @@
|
|
|
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 AssertMissionControlCenterArgs {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
mission_control_id: Principal;
|
|
7
|
+
user: Principal;
|
|
8
8
|
}
|
|
9
9
|
export interface AssetEncodingNoContent {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
modified: bigint;
|
|
11
|
+
sha256: Uint8Array | number[];
|
|
12
|
+
total_length: bigint;
|
|
13
13
|
}
|
|
14
14
|
export interface AssetKey {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
token: [] | [string];
|
|
16
|
+
collection: string;
|
|
17
|
+
owner: Principal;
|
|
18
|
+
name: string;
|
|
19
|
+
description: [] | [string];
|
|
20
|
+
full_path: string;
|
|
21
21
|
}
|
|
22
22
|
export interface AssetNoContent {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
key: AssetKey;
|
|
24
|
+
updated_at: bigint;
|
|
25
|
+
encodings: Array<[string, AssetEncodingNoContent]>;
|
|
26
|
+
headers: Array<[string, string]>;
|
|
27
|
+
created_at: bigint;
|
|
28
|
+
version: [] | [bigint];
|
|
29
29
|
}
|
|
30
30
|
export interface AssetsUpgradeOptions {
|
|
31
|
-
|
|
31
|
+
clear_existing_assets: [] | [boolean];
|
|
32
32
|
}
|
|
33
33
|
export interface CommitBatch {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
batch_id: bigint;
|
|
35
|
+
headers: Array<[string, string]>;
|
|
36
|
+
chunk_ids: Array<bigint>;
|
|
37
37
|
}
|
|
38
38
|
export interface CommitProposal {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
sha256: Uint8Array | number[];
|
|
40
|
+
proposal_id: bigint;
|
|
41
41
|
}
|
|
42
42
|
export interface Config {
|
|
43
|
-
|
|
43
|
+
storage: StorageConfig;
|
|
44
44
|
}
|
|
45
45
|
export interface ConfigMaxMemorySize {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
stable: [] | [bigint];
|
|
47
|
+
heap: [] | [bigint];
|
|
48
48
|
}
|
|
49
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
49
|
+
export type ControllerScope = { Write: null } | { Admin: null };
|
|
50
50
|
export interface CreateCanisterArgs {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
block_index: [] | [bigint];
|
|
52
|
+
subnet_id: [] | [Principal];
|
|
53
|
+
user: Principal;
|
|
54
54
|
}
|
|
55
55
|
export interface CustomDomain {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
updated_at: bigint;
|
|
57
|
+
created_at: bigint;
|
|
58
|
+
version: [] | [bigint];
|
|
59
|
+
bn_id: [] | [string];
|
|
60
60
|
}
|
|
61
61
|
export interface DeleteControllersArgs {
|
|
62
|
-
|
|
62
|
+
controllers: Array<Principal>;
|
|
63
63
|
}
|
|
64
64
|
export interface DeleteProposalAssets {
|
|
65
|
-
|
|
65
|
+
proposal_ids: Array<bigint>;
|
|
66
66
|
}
|
|
67
67
|
export interface GetCreateCanisterFeeArgs {
|
|
68
|
-
|
|
68
|
+
user: Principal;
|
|
69
69
|
}
|
|
70
70
|
export interface HttpRequest {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
url: string;
|
|
72
|
+
method: string;
|
|
73
|
+
body: Uint8Array | number[];
|
|
74
|
+
headers: Array<[string, string]>;
|
|
75
|
+
certificate_version: [] | [number];
|
|
76
76
|
}
|
|
77
77
|
export interface HttpResponse {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
body: Uint8Array | number[];
|
|
79
|
+
headers: Array<[string, string]>;
|
|
80
|
+
streaming_strategy: [] | [StreamingStrategy];
|
|
81
|
+
status_code: number;
|
|
82
82
|
}
|
|
83
83
|
export interface InitAssetKey {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
token: [] | [string];
|
|
85
|
+
collection: string;
|
|
86
|
+
name: string;
|
|
87
|
+
description: [] | [string];
|
|
88
|
+
encoding_type: [] | [string];
|
|
89
|
+
full_path: string;
|
|
90
90
|
}
|
|
91
91
|
export interface InitUploadResult {
|
|
92
|
-
|
|
92
|
+
batch_id: bigint;
|
|
93
93
|
}
|
|
94
94
|
export interface ListMatcher {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
key: [] | [string];
|
|
96
|
+
updated_at: [] | [TimestampMatcher];
|
|
97
|
+
description: [] | [string];
|
|
98
|
+
created_at: [] | [TimestampMatcher];
|
|
99
99
|
}
|
|
100
100
|
export interface ListOrder {
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
field: ListOrderField;
|
|
102
|
+
desc: boolean;
|
|
103
103
|
}
|
|
104
|
-
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
104
|
+
export type ListOrderField = { UpdatedAt: null } | { Keys: null } | { CreatedAt: null };
|
|
105
105
|
export interface ListPaginate {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
start_after: [] | [string];
|
|
107
|
+
limit: [] | [bigint];
|
|
108
108
|
}
|
|
109
109
|
export interface ListParams {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
order: [] | [ListOrder];
|
|
111
|
+
owner: [] | [Principal];
|
|
112
|
+
matcher: [] | [ListMatcher];
|
|
113
|
+
paginate: [] | [ListPaginate];
|
|
114
114
|
}
|
|
115
115
|
export interface ListResults {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
matches_pages: [] | [bigint];
|
|
117
|
+
matches_length: bigint;
|
|
118
|
+
items_page: [] | [bigint];
|
|
119
|
+
items: Array<[string, AssetNoContent]>;
|
|
120
|
+
items_length: bigint;
|
|
121
121
|
}
|
|
122
|
-
export type Memory = {Heap: null} | {Stable: null};
|
|
122
|
+
export type Memory = { Heap: null } | { Stable: null };
|
|
123
123
|
export interface MissionControl {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
updated_at: bigint;
|
|
125
|
+
credits: Tokens;
|
|
126
|
+
mission_control_id: [] | [Principal];
|
|
127
|
+
owner: Principal;
|
|
128
|
+
created_at: bigint;
|
|
129
129
|
}
|
|
130
130
|
export interface Payment {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
export type PaymentStatus = {Refunded: null} | {Acknowledged: null} | {Completed: null};
|
|
131
|
+
status: PaymentStatus;
|
|
132
|
+
updated_at: bigint;
|
|
133
|
+
block_index_payment: bigint;
|
|
134
|
+
mission_control_id: [] | [Principal];
|
|
135
|
+
created_at: bigint;
|
|
136
|
+
block_index_refunded: [] | [bigint];
|
|
137
|
+
}
|
|
138
|
+
export type PaymentStatus = { Refunded: null } | { Acknowledged: null } | { Completed: null };
|
|
139
139
|
export interface Proposal {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
status: ProposalStatus;
|
|
141
|
+
updated_at: bigint;
|
|
142
|
+
sha256: [] | [Uint8Array | number[]];
|
|
143
|
+
executed_at: [] | [bigint];
|
|
144
|
+
owner: Principal;
|
|
145
|
+
created_at: bigint;
|
|
146
|
+
version: [] | [bigint];
|
|
147
|
+
proposal_type: ProposalType;
|
|
148
148
|
}
|
|
149
149
|
export type ProposalStatus =
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
150
|
+
| { Initialized: null }
|
|
151
|
+
| { Failed: null }
|
|
152
|
+
| { Open: null }
|
|
153
|
+
| { Rejected: null }
|
|
154
|
+
| { Executed: null }
|
|
155
|
+
| { Accepted: null };
|
|
156
156
|
export type ProposalType =
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
| { AssetsUpgrade: AssetsUpgradeOptions }
|
|
158
|
+
| { SegmentsDeployment: SegmentsDeploymentOptions };
|
|
159
159
|
export interface RateConfig {
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
max_tokens: bigint;
|
|
161
|
+
time_per_token_ns: bigint;
|
|
162
162
|
}
|
|
163
|
-
export type SegmentType = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
|
|
163
|
+
export type SegmentType = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
|
|
164
164
|
export interface SegmentsDeploymentOptions {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
orbiter: [] | [string];
|
|
166
|
+
mission_control_version: [] | [string];
|
|
167
|
+
satellite_version: [] | [string];
|
|
168
168
|
}
|
|
169
169
|
export interface SetController {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
metadata: Array<[string, string]>;
|
|
171
|
+
scope: ControllerScope;
|
|
172
|
+
expires_at: [] | [bigint];
|
|
173
173
|
}
|
|
174
174
|
export interface SetControllersArgs {
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
controller: SetController;
|
|
176
|
+
controllers: Array<Principal>;
|
|
177
177
|
}
|
|
178
178
|
export interface StorageConfig {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
|
|
187
|
-
export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
|
|
179
|
+
iframe: [] | [StorageConfigIFrame];
|
|
180
|
+
rewrites: Array<[string, string]>;
|
|
181
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
182
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
183
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
184
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
185
|
+
}
|
|
186
|
+
export type StorageConfigIFrame = { Deny: null } | { AllowAny: null } | { SameOrigin: null };
|
|
187
|
+
export type StorageConfigRawAccess = { Deny: null } | { Allow: null };
|
|
188
188
|
export interface StorageConfigRedirect {
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
status_code: number;
|
|
190
|
+
location: string;
|
|
191
191
|
}
|
|
192
192
|
export interface StreamingCallbackHttpResponse {
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
token: [] | [StreamingCallbackToken];
|
|
194
|
+
body: Uint8Array | number[];
|
|
195
195
|
}
|
|
196
196
|
export interface StreamingCallbackToken {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
197
|
+
memory: Memory;
|
|
198
|
+
token: [] | [string];
|
|
199
|
+
sha256: [] | [Uint8Array | number[]];
|
|
200
|
+
headers: Array<[string, string]>;
|
|
201
|
+
index: bigint;
|
|
202
|
+
encoding_type: string;
|
|
203
|
+
full_path: string;
|
|
204
204
|
}
|
|
205
205
|
export type StreamingStrategy = {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
Callback: {
|
|
207
|
+
token: StreamingCallbackToken;
|
|
208
|
+
callback: [Principal, string];
|
|
209
|
+
};
|
|
210
210
|
};
|
|
211
211
|
export type TimestampMatcher =
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
| { Equal: bigint }
|
|
213
|
+
| { Between: [bigint, bigint] }
|
|
214
|
+
| { GreaterThan: bigint }
|
|
215
|
+
| { LessThan: bigint };
|
|
216
216
|
export interface Tokens {
|
|
217
|
-
|
|
217
|
+
e8s: bigint;
|
|
218
218
|
}
|
|
219
219
|
export interface UploadChunk {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
content: Uint8Array | number[];
|
|
221
|
+
batch_id: bigint;
|
|
222
|
+
order_id: [] | [bigint];
|
|
223
223
|
}
|
|
224
224
|
export interface UploadChunkResult {
|
|
225
|
-
|
|
225
|
+
chunk_id: bigint;
|
|
226
226
|
}
|
|
227
227
|
export interface _SERVICE {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
228
|
+
add_credits: ActorMethod<[Principal, Tokens], undefined>;
|
|
229
|
+
add_invitation_code: ActorMethod<[string], undefined>;
|
|
230
|
+
assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
|
|
231
|
+
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
232
|
+
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
233
|
+
create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
234
|
+
create_satellite: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
235
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
236
|
+
del_custom_domain: ActorMethod<[string], undefined>;
|
|
237
|
+
delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
|
|
238
|
+
get_config: ActorMethod<[], Config>;
|
|
239
|
+
get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
240
|
+
get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
241
|
+
get_credits: ActorMethod<[], Tokens>;
|
|
242
|
+
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
|
|
243
|
+
get_storage_config: ActorMethod<[], StorageConfig>;
|
|
244
|
+
get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
|
|
245
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
246
|
+
http_request_streaming_callback: ActorMethod<
|
|
247
|
+
[StreamingCallbackToken],
|
|
248
|
+
StreamingCallbackHttpResponse
|
|
249
|
+
>;
|
|
250
|
+
init_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
251
|
+
init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
|
|
252
|
+
init_user_mission_control_center: ActorMethod<[], MissionControl>;
|
|
253
|
+
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
254
|
+
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
255
|
+
list_payments: ActorMethod<[], Array<[bigint, Payment]>>;
|
|
256
|
+
list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
|
|
257
|
+
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
258
|
+
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
259
|
+
set_fee: ActorMethod<[SegmentType, Tokens], undefined>;
|
|
260
|
+
set_storage_config: ActorMethod<[StorageConfig], undefined>;
|
|
261
|
+
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
262
|
+
update_rate_config: ActorMethod<[SegmentType, RateConfig], undefined>;
|
|
263
|
+
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
264
|
+
version: ActorMethod<[], string>;
|
|
265
265
|
}
|
|
266
266
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
267
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
267
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|