@junobuild/ic-client 5.0.1 → 7.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.
- 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 +12 -12
- package/declarations/console/console.factory.certified.did.js +5 -9
- package/declarations/console/console.factory.did.js +5 -9
- package/declarations/console/console.factory.did.mjs +5 -9
- package/declarations/deprecated/console-0-1-5.did.d.ts +456 -0
- package/declarations/deprecated/console-0-1-5.factory.did.js +490 -0
- package/declarations/mission_control/mission_control.did.d.ts +0 -4
- package/declarations/mission_control/mission_control.factory.certified.did.js +0 -8
- package/declarations/mission_control/mission_control.factory.did.js +0 -8
- package/declarations/satellite/satellite.did.d.ts +1 -0
- package/declarations/satellite/satellite.factory.certified.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.mjs +1 -0
- package/declarations/sputnik/sputnik.did.d.ts +1 -0
- package/declarations/sputnik/sputnik.factory.certified.did.js +1 -0
- package/declarations/sputnik/sputnik.factory.did.js +1 -0
- package/package.json +1 -1
|
@@ -10,6 +10,14 @@ import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
|
10
10
|
import type { IDL } from '@icp-sdk/core/candid';
|
|
11
11
|
import type { Principal } from '@icp-sdk/core/principal';
|
|
12
12
|
|
|
13
|
+
export interface Account {
|
|
14
|
+
updated_at: bigint;
|
|
15
|
+
credits: Tokens;
|
|
16
|
+
mission_control_id: [] | [Principal];
|
|
17
|
+
provider: [] | [Provider];
|
|
18
|
+
owner: Principal;
|
|
19
|
+
created_at: bigint;
|
|
20
|
+
}
|
|
13
21
|
export interface AssertMissionControlCenterArgs {
|
|
14
22
|
mission_control_id: Principal;
|
|
15
23
|
user: Principal;
|
|
@@ -40,7 +48,7 @@ export interface AssetsUpgradeOptions {
|
|
|
40
48
|
}
|
|
41
49
|
export interface Authentication {
|
|
42
50
|
delegation: PreparedDelegation;
|
|
43
|
-
|
|
51
|
+
account: Account;
|
|
44
52
|
}
|
|
45
53
|
export type AuthenticationArgs = { OpenId: OpenIdPrepareDelegationArgs };
|
|
46
54
|
export interface AuthenticationConfig {
|
|
@@ -224,14 +232,6 @@ export interface ListResults {
|
|
|
224
232
|
items_length: bigint;
|
|
225
233
|
}
|
|
226
234
|
export type Memory = { Heap: null } | { Stable: null };
|
|
227
|
-
export interface MissionControl {
|
|
228
|
-
updated_at: bigint;
|
|
229
|
-
credits: Tokens;
|
|
230
|
-
mission_control_id: [] | [Principal];
|
|
231
|
-
provider: [] | [Provider];
|
|
232
|
-
owner: Principal;
|
|
233
|
-
created_at: bigint;
|
|
234
|
-
}
|
|
235
235
|
export interface OpenId {
|
|
236
236
|
provider: OpenIdProvider;
|
|
237
237
|
data: OpenIdData;
|
|
@@ -415,6 +415,7 @@ export interface _SERVICE {
|
|
|
415
415
|
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
416
416
|
del_custom_domain: ActorMethod<[string], undefined>;
|
|
417
417
|
delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
|
|
418
|
+
get_account: ActorMethod<[], [] | [Account]>;
|
|
418
419
|
get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
|
|
419
420
|
get_config: ActorMethod<[], Config>;
|
|
420
421
|
get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
@@ -423,7 +424,6 @@ export interface _SERVICE {
|
|
|
423
424
|
get_delegation: ActorMethod<[GetDelegationArgs], Result_1>;
|
|
424
425
|
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
|
|
425
426
|
get_storage_config: ActorMethod<[], StorageConfig>;
|
|
426
|
-
get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
|
|
427
427
|
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
428
428
|
http_request_streaming_callback: ActorMethod<
|
|
429
429
|
[StreamingCallbackToken],
|
|
@@ -435,13 +435,13 @@ export interface _SERVICE {
|
|
|
435
435
|
[Array<InitAssetKey>, bigint],
|
|
436
436
|
Array<[string, InitUploadResult]>
|
|
437
437
|
>;
|
|
438
|
-
init_user_mission_control_center: ActorMethod<[],
|
|
438
|
+
init_user_mission_control_center: ActorMethod<[], Account>;
|
|
439
|
+
list_accounts: ActorMethod<[], Array<[Principal, Account]>>;
|
|
439
440
|
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
440
441
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
441
442
|
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
442
443
|
list_payments: ActorMethod<[], Array<[bigint, Payment]>>;
|
|
443
444
|
list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
|
|
444
|
-
list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
|
|
445
445
|
reject_proposal: ActorMethod<[CommitProposal], null>;
|
|
446
446
|
set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
|
|
447
447
|
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
@@ -41,7 +41,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
41
41
|
InternetIdentity: IDL.Null,
|
|
42
42
|
OpenId: OpenId
|
|
43
43
|
});
|
|
44
|
-
const
|
|
44
|
+
const Account = IDL.Record({
|
|
45
45
|
updated_at: IDL.Nat64,
|
|
46
46
|
credits: Tokens,
|
|
47
47
|
mission_control_id: IDL.Opt(IDL.Principal),
|
|
@@ -51,7 +51,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
51
51
|
});
|
|
52
52
|
const Authentication = IDL.Record({
|
|
53
53
|
delegation: PreparedDelegation,
|
|
54
|
-
|
|
54
|
+
account: Account
|
|
55
55
|
});
|
|
56
56
|
const JwtFindProviderError = IDL.Variant({
|
|
57
57
|
BadClaim: IDL.Text,
|
|
@@ -440,6 +440,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
440
440
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
441
441
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
442
442
|
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
443
|
+
get_account: IDL.Func([], [IDL.Opt(Account)], []),
|
|
443
444
|
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], []),
|
|
444
445
|
get_config: IDL.Func([], [Config], []),
|
|
445
446
|
get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], []),
|
|
@@ -448,7 +449,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
448
449
|
get_delegation: IDL.Func([GetDelegationArgs], [Result_1], []),
|
|
449
450
|
get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], []),
|
|
450
451
|
get_storage_config: IDL.Func([], [StorageConfig], []),
|
|
451
|
-
get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], []),
|
|
452
452
|
http_request: IDL.Func([HttpRequest], [HttpResponse], []),
|
|
453
453
|
http_request_streaming_callback: IDL.Func(
|
|
454
454
|
[StreamingCallbackToken],
|
|
@@ -462,17 +462,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
462
462
|
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
463
463
|
[]
|
|
464
464
|
),
|
|
465
|
-
init_user_mission_control_center: IDL.Func([], [
|
|
465
|
+
init_user_mission_control_center: IDL.Func([], [Account], []),
|
|
466
|
+
list_accounts: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Account))], []),
|
|
466
467
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], []),
|
|
467
468
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], []),
|
|
468
469
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], []),
|
|
469
470
|
list_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, Payment))], []),
|
|
470
471
|
list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], []),
|
|
471
|
-
list_user_mission_control_centers: IDL.Func(
|
|
472
|
-
[],
|
|
473
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, MissionControl))],
|
|
474
|
-
[]
|
|
475
|
-
),
|
|
476
472
|
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
477
473
|
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
|
|
478
474
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
@@ -41,7 +41,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
41
41
|
InternetIdentity: IDL.Null,
|
|
42
42
|
OpenId: OpenId
|
|
43
43
|
});
|
|
44
|
-
const
|
|
44
|
+
const Account = IDL.Record({
|
|
45
45
|
updated_at: IDL.Nat64,
|
|
46
46
|
credits: Tokens,
|
|
47
47
|
mission_control_id: IDL.Opt(IDL.Principal),
|
|
@@ -51,7 +51,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
51
51
|
});
|
|
52
52
|
const Authentication = IDL.Record({
|
|
53
53
|
delegation: PreparedDelegation,
|
|
54
|
-
|
|
54
|
+
account: Account
|
|
55
55
|
});
|
|
56
56
|
const JwtFindProviderError = IDL.Variant({
|
|
57
57
|
BadClaim: IDL.Text,
|
|
@@ -440,6 +440,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
440
440
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
441
441
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
442
442
|
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
443
|
+
get_account: IDL.Func([], [IDL.Opt(Account)], ['query']),
|
|
443
444
|
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
444
445
|
get_config: IDL.Func([], [Config], ['query']),
|
|
445
446
|
get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
@@ -448,7 +449,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
448
449
|
get_delegation: IDL.Func([GetDelegationArgs], [Result_1], ['query']),
|
|
449
450
|
get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']),
|
|
450
451
|
get_storage_config: IDL.Func([], [StorageConfig], ['query']),
|
|
451
|
-
get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
|
|
452
452
|
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
453
453
|
http_request_streaming_callback: IDL.Func(
|
|
454
454
|
[StreamingCallbackToken],
|
|
@@ -462,17 +462,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
462
462
|
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
463
463
|
[]
|
|
464
464
|
),
|
|
465
|
-
init_user_mission_control_center: IDL.Func([], [
|
|
465
|
+
init_user_mission_control_center: IDL.Func([], [Account], []),
|
|
466
|
+
list_accounts: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Account))], ['query']),
|
|
466
467
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
467
468
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
468
469
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
469
470
|
list_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, Payment))], ['query']),
|
|
470
471
|
list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], ['query']),
|
|
471
|
-
list_user_mission_control_centers: IDL.Func(
|
|
472
|
-
[],
|
|
473
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, MissionControl))],
|
|
474
|
-
['query']
|
|
475
|
-
),
|
|
476
472
|
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
477
473
|
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
|
|
478
474
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
@@ -41,7 +41,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
41
41
|
InternetIdentity: IDL.Null,
|
|
42
42
|
OpenId: OpenId
|
|
43
43
|
});
|
|
44
|
-
const
|
|
44
|
+
const Account = IDL.Record({
|
|
45
45
|
updated_at: IDL.Nat64,
|
|
46
46
|
credits: Tokens,
|
|
47
47
|
mission_control_id: IDL.Opt(IDL.Principal),
|
|
@@ -51,7 +51,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
51
51
|
});
|
|
52
52
|
const Authentication = IDL.Record({
|
|
53
53
|
delegation: PreparedDelegation,
|
|
54
|
-
|
|
54
|
+
account: Account
|
|
55
55
|
});
|
|
56
56
|
const JwtFindProviderError = IDL.Variant({
|
|
57
57
|
BadClaim: IDL.Text,
|
|
@@ -440,6 +440,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
440
440
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
441
441
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
442
442
|
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
443
|
+
get_account: IDL.Func([], [IDL.Opt(Account)], ['query']),
|
|
443
444
|
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
444
445
|
get_config: IDL.Func([], [Config], ['query']),
|
|
445
446
|
get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
@@ -448,7 +449,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
448
449
|
get_delegation: IDL.Func([GetDelegationArgs], [Result_1], ['query']),
|
|
449
450
|
get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']),
|
|
450
451
|
get_storage_config: IDL.Func([], [StorageConfig], ['query']),
|
|
451
|
-
get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
|
|
452
452
|
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
453
453
|
http_request_streaming_callback: IDL.Func(
|
|
454
454
|
[StreamingCallbackToken],
|
|
@@ -462,17 +462,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
462
462
|
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
463
463
|
[]
|
|
464
464
|
),
|
|
465
|
-
init_user_mission_control_center: IDL.Func([], [
|
|
465
|
+
init_user_mission_control_center: IDL.Func([], [Account], []),
|
|
466
|
+
list_accounts: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Account))], ['query']),
|
|
466
467
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
467
468
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
468
469
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
469
470
|
list_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, Payment))], ['query']),
|
|
470
471
|
list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], ['query']),
|
|
471
|
-
list_user_mission_control_centers: IDL.Func(
|
|
472
|
-
[],
|
|
473
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, MissionControl))],
|
|
474
|
-
['query']
|
|
475
|
-
),
|
|
476
472
|
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
477
473
|
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
|
|
478
474
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.0.
|
|
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 AssertMissionControlCenterArgs {
|
|
14
|
+
mission_control_id: Principal;
|
|
15
|
+
user: Principal;
|
|
16
|
+
}
|
|
17
|
+
export interface AssetEncodingNoContent {
|
|
18
|
+
modified: bigint;
|
|
19
|
+
sha256: Uint8Array;
|
|
20
|
+
total_length: bigint;
|
|
21
|
+
}
|
|
22
|
+
export interface AssetKey {
|
|
23
|
+
token: [] | [string];
|
|
24
|
+
collection: string;
|
|
25
|
+
owner: Principal;
|
|
26
|
+
name: string;
|
|
27
|
+
description: [] | [string];
|
|
28
|
+
full_path: string;
|
|
29
|
+
}
|
|
30
|
+
export interface AssetNoContent {
|
|
31
|
+
key: AssetKey;
|
|
32
|
+
updated_at: bigint;
|
|
33
|
+
encodings: Array<[string, AssetEncodingNoContent]>;
|
|
34
|
+
headers: Array<[string, string]>;
|
|
35
|
+
created_at: bigint;
|
|
36
|
+
version: [] | [bigint];
|
|
37
|
+
}
|
|
38
|
+
export interface AssetsUpgradeOptions {
|
|
39
|
+
clear_existing_assets: [] | [boolean];
|
|
40
|
+
}
|
|
41
|
+
export interface Authentication {
|
|
42
|
+
delegation: PreparedDelegation;
|
|
43
|
+
mission_control: MissionControl;
|
|
44
|
+
}
|
|
45
|
+
export type AuthenticationArgs = { OpenId: OpenIdPrepareDelegationArgs };
|
|
46
|
+
export interface AuthenticationConfig {
|
|
47
|
+
updated_at: [] | [bigint];
|
|
48
|
+
openid: [] | [AuthenticationConfigOpenId];
|
|
49
|
+
created_at: [] | [bigint];
|
|
50
|
+
version: [] | [bigint];
|
|
51
|
+
internet_identity: [] | [AuthenticationConfigInternetIdentity];
|
|
52
|
+
rules: [] | [AuthenticationRules];
|
|
53
|
+
}
|
|
54
|
+
export interface AuthenticationConfigInternetIdentity {
|
|
55
|
+
derivation_origin: [] | [string];
|
|
56
|
+
external_alternative_origins: [] | [Array<string>];
|
|
57
|
+
}
|
|
58
|
+
export interface AuthenticationConfigOpenId {
|
|
59
|
+
observatory_id: [] | [Principal];
|
|
60
|
+
providers: Array<[OpenIdProvider, OpenIdProviderConfig]>;
|
|
61
|
+
}
|
|
62
|
+
export type AuthenticationError =
|
|
63
|
+
| {
|
|
64
|
+
PrepareDelegation: PrepareDelegationError;
|
|
65
|
+
}
|
|
66
|
+
| { RegisterUser: string };
|
|
67
|
+
export interface AuthenticationRules {
|
|
68
|
+
allowed_callers: Array<Principal>;
|
|
69
|
+
}
|
|
70
|
+
export interface CommitBatch {
|
|
71
|
+
batch_id: bigint;
|
|
72
|
+
headers: Array<[string, string]>;
|
|
73
|
+
chunk_ids: Array<bigint>;
|
|
74
|
+
}
|
|
75
|
+
export interface CommitProposal {
|
|
76
|
+
sha256: Uint8Array;
|
|
77
|
+
proposal_id: bigint;
|
|
78
|
+
}
|
|
79
|
+
export interface Config {
|
|
80
|
+
authentication: [] | [AuthenticationConfig];
|
|
81
|
+
storage: StorageConfig;
|
|
82
|
+
}
|
|
83
|
+
export interface ConfigMaxMemorySize {
|
|
84
|
+
stable: [] | [bigint];
|
|
85
|
+
heap: [] | [bigint];
|
|
86
|
+
}
|
|
87
|
+
export interface Controller {
|
|
88
|
+
updated_at: bigint;
|
|
89
|
+
metadata: Array<[string, string]>;
|
|
90
|
+
created_at: bigint;
|
|
91
|
+
scope: ControllerScope;
|
|
92
|
+
expires_at: [] | [bigint];
|
|
93
|
+
}
|
|
94
|
+
export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
95
|
+
export interface CreateCanisterArgs {
|
|
96
|
+
block_index: [] | [bigint];
|
|
97
|
+
subnet_id: [] | [Principal];
|
|
98
|
+
user: Principal;
|
|
99
|
+
}
|
|
100
|
+
export interface CreateSatelliteArgs {
|
|
101
|
+
block_index: [] | [bigint];
|
|
102
|
+
subnet_id: [] | [Principal];
|
|
103
|
+
storage: [] | [InitStorageArgs];
|
|
104
|
+
user: Principal;
|
|
105
|
+
}
|
|
106
|
+
export interface CustomDomain {
|
|
107
|
+
updated_at: bigint;
|
|
108
|
+
created_at: bigint;
|
|
109
|
+
version: [] | [bigint];
|
|
110
|
+
bn_id: [] | [string];
|
|
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 GetCreateCanisterFeeArgs {
|
|
124
|
+
user: Principal;
|
|
125
|
+
}
|
|
126
|
+
export type GetDelegationArgs = { OpenId: OpenIdGetDelegationArgs };
|
|
127
|
+
export type GetDelegationError =
|
|
128
|
+
| { JwtFindProvider: JwtFindProviderError }
|
|
129
|
+
| { GetCachedJwks: null }
|
|
130
|
+
| { NoSuchDelegation: null }
|
|
131
|
+
| { JwtVerify: JwtVerifyError }
|
|
132
|
+
| { GetOrFetchJwks: GetOrRefreshJwksError }
|
|
133
|
+
| { DeriveSeedFailed: string };
|
|
134
|
+
export type GetOrRefreshJwksError =
|
|
135
|
+
| { InvalidConfig: string }
|
|
136
|
+
| { MissingKid: null }
|
|
137
|
+
| { BadClaim: string }
|
|
138
|
+
| { KeyNotFoundCooldown: null }
|
|
139
|
+
| { CertificateNotFound: null }
|
|
140
|
+
| { BadSig: string }
|
|
141
|
+
| { MissingLastAttempt: string }
|
|
142
|
+
| { KeyNotFound: null }
|
|
143
|
+
| { FetchFailed: string };
|
|
144
|
+
export interface HttpRequest {
|
|
145
|
+
url: string;
|
|
146
|
+
method: string;
|
|
147
|
+
body: Uint8Array;
|
|
148
|
+
headers: Array<[string, string]>;
|
|
149
|
+
certificate_version: [] | [number];
|
|
150
|
+
}
|
|
151
|
+
export interface HttpResponse {
|
|
152
|
+
body: Uint8Array;
|
|
153
|
+
headers: Array<[string, string]>;
|
|
154
|
+
streaming_strategy: [] | [StreamingStrategy];
|
|
155
|
+
status_code: number;
|
|
156
|
+
}
|
|
157
|
+
export interface InitAssetKey {
|
|
158
|
+
token: [] | [string];
|
|
159
|
+
collection: string;
|
|
160
|
+
name: string;
|
|
161
|
+
description: [] | [string];
|
|
162
|
+
encoding_type: [] | [string];
|
|
163
|
+
full_path: string;
|
|
164
|
+
}
|
|
165
|
+
export interface InitStorageArgs {
|
|
166
|
+
system_memory: [] | [InitStorageMemory];
|
|
167
|
+
}
|
|
168
|
+
export type InitStorageMemory = { Heap: null } | { Stable: null };
|
|
169
|
+
export interface InitUploadResult {
|
|
170
|
+
batch_id: bigint;
|
|
171
|
+
}
|
|
172
|
+
export type JwtFindProviderError =
|
|
173
|
+
| { BadClaim: string }
|
|
174
|
+
| { BadSig: string }
|
|
175
|
+
| { NoMatchingProvider: null };
|
|
176
|
+
export type JwtVerifyError =
|
|
177
|
+
| { WrongKeyType: null }
|
|
178
|
+
| { MissingKid: null }
|
|
179
|
+
| { BadClaim: string }
|
|
180
|
+
| { BadSig: string }
|
|
181
|
+
| { NoKeyForKid: null };
|
|
182
|
+
export interface ListMatcher {
|
|
183
|
+
key: [] | [string];
|
|
184
|
+
updated_at: [] | [TimestampMatcher];
|
|
185
|
+
description: [] | [string];
|
|
186
|
+
created_at: [] | [TimestampMatcher];
|
|
187
|
+
}
|
|
188
|
+
export interface ListOrder {
|
|
189
|
+
field: ListOrderField;
|
|
190
|
+
desc: boolean;
|
|
191
|
+
}
|
|
192
|
+
export type ListOrderField = { UpdatedAt: null } | { Keys: null } | { CreatedAt: null };
|
|
193
|
+
export interface ListPaginate {
|
|
194
|
+
start_after: [] | [string];
|
|
195
|
+
limit: [] | [bigint];
|
|
196
|
+
}
|
|
197
|
+
export interface ListParams {
|
|
198
|
+
order: [] | [ListOrder];
|
|
199
|
+
owner: [] | [Principal];
|
|
200
|
+
matcher: [] | [ListMatcher];
|
|
201
|
+
paginate: [] | [ListPaginate];
|
|
202
|
+
}
|
|
203
|
+
export interface ListProposalResults {
|
|
204
|
+
matches_length: bigint;
|
|
205
|
+
items: Array<[ProposalKey, Proposal]>;
|
|
206
|
+
items_length: bigint;
|
|
207
|
+
}
|
|
208
|
+
export interface ListProposalsOrder {
|
|
209
|
+
desc: boolean;
|
|
210
|
+
}
|
|
211
|
+
export interface ListProposalsPaginate {
|
|
212
|
+
start_after: [] | [bigint];
|
|
213
|
+
limit: [] | [bigint];
|
|
214
|
+
}
|
|
215
|
+
export interface ListProposalsParams {
|
|
216
|
+
order: [] | [ListProposalsOrder];
|
|
217
|
+
paginate: [] | [ListProposalsPaginate];
|
|
218
|
+
}
|
|
219
|
+
export interface ListResults {
|
|
220
|
+
matches_pages: [] | [bigint];
|
|
221
|
+
matches_length: bigint;
|
|
222
|
+
items_page: [] | [bigint];
|
|
223
|
+
items: Array<[string, AssetNoContent]>;
|
|
224
|
+
items_length: bigint;
|
|
225
|
+
}
|
|
226
|
+
export type Memory = { Heap: null } | { Stable: null };
|
|
227
|
+
export interface MissionControl {
|
|
228
|
+
updated_at: bigint;
|
|
229
|
+
credits: Tokens;
|
|
230
|
+
mission_control_id: [] | [Principal];
|
|
231
|
+
provider: [] | [Provider];
|
|
232
|
+
owner: Principal;
|
|
233
|
+
created_at: bigint;
|
|
234
|
+
}
|
|
235
|
+
export interface OpenId {
|
|
236
|
+
provider: OpenIdProvider;
|
|
237
|
+
data: OpenIdData;
|
|
238
|
+
}
|
|
239
|
+
export interface OpenIdData {
|
|
240
|
+
name: [] | [string];
|
|
241
|
+
locale: [] | [string];
|
|
242
|
+
family_name: [] | [string];
|
|
243
|
+
email: [] | [string];
|
|
244
|
+
picture: [] | [string];
|
|
245
|
+
given_name: [] | [string];
|
|
246
|
+
}
|
|
247
|
+
export interface OpenIdGetDelegationArgs {
|
|
248
|
+
jwt: string;
|
|
249
|
+
session_key: Uint8Array;
|
|
250
|
+
salt: Uint8Array;
|
|
251
|
+
expiration: bigint;
|
|
252
|
+
}
|
|
253
|
+
export interface OpenIdPrepareDelegationArgs {
|
|
254
|
+
jwt: string;
|
|
255
|
+
session_key: Uint8Array;
|
|
256
|
+
salt: Uint8Array;
|
|
257
|
+
}
|
|
258
|
+
export type OpenIdProvider = { Google: null };
|
|
259
|
+
export interface OpenIdProviderConfig {
|
|
260
|
+
delegation: [] | [OpenIdProviderDelegationConfig];
|
|
261
|
+
client_id: string;
|
|
262
|
+
}
|
|
263
|
+
export interface OpenIdProviderDelegationConfig {
|
|
264
|
+
targets: [] | [Array<Principal>];
|
|
265
|
+
max_time_to_live: [] | [bigint];
|
|
266
|
+
}
|
|
267
|
+
export interface Payment {
|
|
268
|
+
status: PaymentStatus;
|
|
269
|
+
updated_at: bigint;
|
|
270
|
+
block_index_payment: bigint;
|
|
271
|
+
mission_control_id: [] | [Principal];
|
|
272
|
+
created_at: bigint;
|
|
273
|
+
block_index_refunded: [] | [bigint];
|
|
274
|
+
}
|
|
275
|
+
export type PaymentStatus = { Refunded: null } | { Acknowledged: null } | { Completed: null };
|
|
276
|
+
export type PrepareDelegationError =
|
|
277
|
+
| {
|
|
278
|
+
JwtFindProvider: JwtFindProviderError;
|
|
279
|
+
}
|
|
280
|
+
| { GetCachedJwks: null }
|
|
281
|
+
| { JwtVerify: JwtVerifyError }
|
|
282
|
+
| { GetOrFetchJwks: GetOrRefreshJwksError }
|
|
283
|
+
| { DeriveSeedFailed: string };
|
|
284
|
+
export interface PreparedDelegation {
|
|
285
|
+
user_key: Uint8Array;
|
|
286
|
+
expiration: bigint;
|
|
287
|
+
}
|
|
288
|
+
export interface Proposal {
|
|
289
|
+
status: ProposalStatus;
|
|
290
|
+
updated_at: bigint;
|
|
291
|
+
sha256: [] | [Uint8Array];
|
|
292
|
+
executed_at: [] | [bigint];
|
|
293
|
+
owner: Principal;
|
|
294
|
+
created_at: bigint;
|
|
295
|
+
version: [] | [bigint];
|
|
296
|
+
proposal_type: ProposalType;
|
|
297
|
+
}
|
|
298
|
+
export interface ProposalKey {
|
|
299
|
+
proposal_id: bigint;
|
|
300
|
+
}
|
|
301
|
+
export type ProposalStatus =
|
|
302
|
+
| { Initialized: null }
|
|
303
|
+
| { Failed: null }
|
|
304
|
+
| { Open: null }
|
|
305
|
+
| { Rejected: null }
|
|
306
|
+
| { Executed: null }
|
|
307
|
+
| { Accepted: null };
|
|
308
|
+
export type ProposalType =
|
|
309
|
+
| { AssetsUpgrade: AssetsUpgradeOptions }
|
|
310
|
+
| { SegmentsDeployment: SegmentsDeploymentOptions };
|
|
311
|
+
export type Provider = { InternetIdentity: null } | { OpenId: OpenId };
|
|
312
|
+
export interface RateConfig {
|
|
313
|
+
max_tokens: bigint;
|
|
314
|
+
time_per_token_ns: bigint;
|
|
315
|
+
}
|
|
316
|
+
export type Result = { Ok: Authentication } | { Err: AuthenticationError };
|
|
317
|
+
export type Result_1 = { Ok: SignedDelegation } | { Err: GetDelegationError };
|
|
318
|
+
export type SegmentKind = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
|
|
319
|
+
export interface SegmentsDeploymentOptions {
|
|
320
|
+
orbiter: [] | [string];
|
|
321
|
+
mission_control_version: [] | [string];
|
|
322
|
+
satellite_version: [] | [string];
|
|
323
|
+
}
|
|
324
|
+
export interface SetAuthenticationConfig {
|
|
325
|
+
openid: [] | [AuthenticationConfigOpenId];
|
|
326
|
+
version: [] | [bigint];
|
|
327
|
+
internet_identity: [] | [AuthenticationConfigInternetIdentity];
|
|
328
|
+
rules: [] | [AuthenticationRules];
|
|
329
|
+
}
|
|
330
|
+
export interface SetController {
|
|
331
|
+
metadata: Array<[string, string]>;
|
|
332
|
+
scope: ControllerScope;
|
|
333
|
+
expires_at: [] | [bigint];
|
|
334
|
+
}
|
|
335
|
+
export interface SetControllersArgs {
|
|
336
|
+
controller: SetController;
|
|
337
|
+
controllers: Array<Principal>;
|
|
338
|
+
}
|
|
339
|
+
export interface SetStorageConfig {
|
|
340
|
+
iframe: [] | [StorageConfigIFrame];
|
|
341
|
+
rewrites: Array<[string, string]>;
|
|
342
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
343
|
+
version: [] | [bigint];
|
|
344
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
345
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
346
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
347
|
+
}
|
|
348
|
+
export interface SignedDelegation {
|
|
349
|
+
signature: Uint8Array;
|
|
350
|
+
delegation: Delegation;
|
|
351
|
+
}
|
|
352
|
+
export interface StorageConfig {
|
|
353
|
+
iframe: [] | [StorageConfigIFrame];
|
|
354
|
+
updated_at: [] | [bigint];
|
|
355
|
+
rewrites: Array<[string, string]>;
|
|
356
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
357
|
+
created_at: [] | [bigint];
|
|
358
|
+
version: [] | [bigint];
|
|
359
|
+
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
360
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
361
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
362
|
+
}
|
|
363
|
+
export type StorageConfigIFrame = { Deny: null } | { AllowAny: null } | { SameOrigin: null };
|
|
364
|
+
export type StorageConfigRawAccess = { Deny: null } | { Allow: null };
|
|
365
|
+
export interface StorageConfigRedirect {
|
|
366
|
+
status_code: number;
|
|
367
|
+
location: string;
|
|
368
|
+
}
|
|
369
|
+
export interface StreamingCallbackHttpResponse {
|
|
370
|
+
token: [] | [StreamingCallbackToken];
|
|
371
|
+
body: Uint8Array;
|
|
372
|
+
}
|
|
373
|
+
export interface StreamingCallbackToken {
|
|
374
|
+
memory: Memory;
|
|
375
|
+
token: [] | [string];
|
|
376
|
+
sha256: [] | [Uint8Array];
|
|
377
|
+
headers: Array<[string, string]>;
|
|
378
|
+
index: bigint;
|
|
379
|
+
encoding_type: string;
|
|
380
|
+
full_path: string;
|
|
381
|
+
}
|
|
382
|
+
export type StreamingStrategy = {
|
|
383
|
+
Callback: {
|
|
384
|
+
token: StreamingCallbackToken;
|
|
385
|
+
callback: [Principal, string];
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
export type TimestampMatcher =
|
|
389
|
+
| { Equal: bigint }
|
|
390
|
+
| { Between: [bigint, bigint] }
|
|
391
|
+
| { GreaterThan: bigint }
|
|
392
|
+
| { LessThan: bigint };
|
|
393
|
+
export interface Tokens {
|
|
394
|
+
e8s: bigint;
|
|
395
|
+
}
|
|
396
|
+
export interface UploadChunk {
|
|
397
|
+
content: Uint8Array;
|
|
398
|
+
batch_id: bigint;
|
|
399
|
+
order_id: [] | [bigint];
|
|
400
|
+
}
|
|
401
|
+
export interface UploadChunkResult {
|
|
402
|
+
chunk_id: bigint;
|
|
403
|
+
}
|
|
404
|
+
export interface _SERVICE {
|
|
405
|
+
add_credits: ActorMethod<[Principal, Tokens], undefined>;
|
|
406
|
+
add_invitation_code: ActorMethod<[string], undefined>;
|
|
407
|
+
assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
|
|
408
|
+
authenticate: ActorMethod<[AuthenticationArgs], Result>;
|
|
409
|
+
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
410
|
+
commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
411
|
+
commit_proposal_many_assets_upload: ActorMethod<[Array<CommitBatch>], undefined>;
|
|
412
|
+
count_proposals: ActorMethod<[], bigint>;
|
|
413
|
+
create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
|
|
414
|
+
create_satellite: ActorMethod<[CreateSatelliteArgs], Principal>;
|
|
415
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
416
|
+
del_custom_domain: ActorMethod<[string], undefined>;
|
|
417
|
+
delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
|
|
418
|
+
get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
|
|
419
|
+
get_config: ActorMethod<[], Config>;
|
|
420
|
+
get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
421
|
+
get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
|
|
422
|
+
get_credits: ActorMethod<[], Tokens>;
|
|
423
|
+
get_delegation: ActorMethod<[GetDelegationArgs], Result_1>;
|
|
424
|
+
get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
|
|
425
|
+
get_storage_config: ActorMethod<[], StorageConfig>;
|
|
426
|
+
get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
|
|
427
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
428
|
+
http_request_streaming_callback: ActorMethod<
|
|
429
|
+
[StreamingCallbackToken],
|
|
430
|
+
StreamingCallbackHttpResponse
|
|
431
|
+
>;
|
|
432
|
+
init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
|
|
433
|
+
init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
434
|
+
init_proposal_many_assets_upload: ActorMethod<
|
|
435
|
+
[Array<InitAssetKey>, bigint],
|
|
436
|
+
Array<[string, InitUploadResult]>
|
|
437
|
+
>;
|
|
438
|
+
init_user_mission_control_center: ActorMethod<[], MissionControl>;
|
|
439
|
+
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
440
|
+
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
441
|
+
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
442
|
+
list_payments: ActorMethod<[], Array<[bigint, Payment]>>;
|
|
443
|
+
list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
|
|
444
|
+
list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
|
|
445
|
+
reject_proposal: ActorMethod<[CommitProposal], null>;
|
|
446
|
+
set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
|
|
447
|
+
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
448
|
+
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
449
|
+
set_fee: ActorMethod<[SegmentKind, Tokens], undefined>;
|
|
450
|
+
set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
|
|
451
|
+
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
452
|
+
update_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
|
|
453
|
+
upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
454
|
+
}
|
|
455
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
456
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|