@junobuild/admin 0.0.7 → 0.0.8
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/dist/browser/index.js +14 -14
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/cmc/cmc.did.d.ts +30 -30
- package/dist/declarations/cmc/cmc.factory.did.js +63 -63
- package/dist/declarations/cmc/index.d.ts +18 -18
- package/dist/declarations/cmc/index.js +22 -22
- package/dist/declarations/console/console.did.d.ts +37 -37
- package/dist/declarations/console/console.factory.did.js +60 -60
- package/dist/declarations/console/console.factory.did.mjs +60 -60
- package/dist/declarations/console/index.d.ts +18 -18
- package/dist/declarations/console/index.js +22 -22
- package/dist/declarations/frontend/frontend.did.d.ts +136 -136
- package/dist/declarations/frontend/frontend.factory.did.js +206 -206
- package/dist/declarations/frontend/index.d.ts +18 -18
- package/dist/declarations/frontend/index.js +22 -22
- package/dist/declarations/ic/ic.did.d.ts +63 -63
- package/dist/declarations/ic/ic.factory.did.js +126 -126
- package/dist/declarations/internet_identity/index.d.ts +18 -18
- package/dist/declarations/internet_identity/index.js +22 -22
- package/dist/declarations/internet_identity/internet_identity.did.d.ts +136 -136
- package/dist/declarations/internet_identity/internet_identity.factory.did.js +231 -231
- package/dist/declarations/ledger/index.d.ts +18 -18
- package/dist/declarations/ledger/index.js +22 -22
- package/dist/declarations/ledger/ledger.did.d.ts +64 -64
- package/dist/declarations/ledger/ledger.factory.did.js +96 -96
- package/dist/declarations/mission_control/index.d.ts +18 -18
- package/dist/declarations/mission_control/index.js +22 -22
- package/dist/declarations/mission_control/mission_control.did.d.ts +30 -30
- package/dist/declarations/mission_control/mission_control.factory.did.js +48 -48
- package/dist/declarations/satellite/index.d.ts +18 -18
- package/dist/declarations/satellite/index.js +22 -22
- package/dist/declarations/satellite/satellite-deprecated.did.d.ts +186 -0
- package/dist/declarations/satellite/satellite-deprecated.factory.did.js +191 -0
- package/dist/declarations/satellite/satellite-deprecated.factory.did.mjs +191 -0
- package/dist/declarations/satellite/satellite.did.d.ts +124 -120
- package/dist/declarations/satellite/satellite.factory.did.js +189 -189
- package/dist/declarations/satellite/satellite.factory.did.mjs +189 -189
- package/dist/node/index.mjs +23 -23
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/actor.api.d.ts +2 -0
- package/dist/types/api/satellite.api.d.ts +3 -0
- package/dist/types/services/satellite.services.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,204 +1,204 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {Principal} from '@dfinity/principal';
|
|
1
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
2
|
+
import type { Principal } from '@dfinity/principal';
|
|
3
3
|
|
|
4
4
|
export interface ActiveAnchorCounter {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
counter: bigint;
|
|
6
|
+
start_timestamp: Timestamp;
|
|
7
7
|
}
|
|
8
8
|
export interface ActiveAnchorStatistics {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
completed: CompletedActiveAnchorStats;
|
|
10
|
+
ongoing: OngoingActiveAnchorStats;
|
|
11
11
|
}
|
|
12
12
|
export type AddTentativeDeviceResponse =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
| {
|
|
14
|
+
device_registration_mode_off: null;
|
|
15
|
+
}
|
|
16
|
+
| { another_device_tentatively_added: null }
|
|
17
|
+
| {
|
|
18
|
+
added_tentatively: {
|
|
19
|
+
verification_code: string;
|
|
20
|
+
device_registration_timeout: Timestamp;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
23
|
export interface AnchorCredentials {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
recovery_phrases: Array<PublicKey>;
|
|
25
|
+
credentials: Array<WebAuthnCredential>;
|
|
26
|
+
recovery_credentials: Array<WebAuthnCredential>;
|
|
27
27
|
}
|
|
28
28
|
export interface ArchiveConfig {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
polling_interval_ns: bigint;
|
|
30
|
+
entries_buffer_limit: bigint;
|
|
31
|
+
module_hash: Uint8Array | number[];
|
|
32
|
+
entries_fetch_limit: number;
|
|
33
33
|
}
|
|
34
34
|
export interface ArchiveInfo {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
archive_config: [] | [ArchiveConfig];
|
|
36
|
+
archive_canister: [] | [Principal];
|
|
37
37
|
}
|
|
38
38
|
export interface BufferedArchiveEntry {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
sequence_number: bigint;
|
|
40
|
+
entry: Uint8Array | number[];
|
|
41
|
+
anchor_number: UserNumber;
|
|
42
|
+
timestamp: Timestamp;
|
|
43
43
|
}
|
|
44
44
|
export interface Challenge {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
png_base64: string;
|
|
46
|
+
challenge_key: ChallengeKey;
|
|
47
47
|
}
|
|
48
48
|
export type ChallengeKey = string;
|
|
49
49
|
export interface ChallengeResult {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
key: ChallengeKey;
|
|
51
|
+
chars: string;
|
|
52
52
|
}
|
|
53
53
|
export interface CompletedActiveAnchorStats {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
monthly_active_anchors: [] | [ActiveAnchorCounter];
|
|
55
|
+
daily_active_anchors: [] | [ActiveAnchorCounter];
|
|
56
56
|
}
|
|
57
57
|
export type CredentialId = Uint8Array | number[];
|
|
58
58
|
export interface Delegation {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
pubkey: PublicKey;
|
|
60
|
+
targets: [] | [Array<Principal>];
|
|
61
|
+
expiration: Timestamp;
|
|
62
62
|
}
|
|
63
63
|
export type DeployArchiveResult =
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
| { creation_in_progress: null }
|
|
65
|
+
| { success: Principal }
|
|
66
|
+
| { failed: string };
|
|
67
67
|
export interface DeviceData {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
alias: string;
|
|
69
|
+
origin: [] | [string];
|
|
70
|
+
protection: DeviceProtection;
|
|
71
|
+
pubkey: DeviceKey;
|
|
72
|
+
key_type: KeyType;
|
|
73
|
+
purpose: Purpose;
|
|
74
|
+
credential_id: [] | [CredentialId];
|
|
75
75
|
}
|
|
76
76
|
export type DeviceKey = PublicKey;
|
|
77
|
-
export type DeviceProtection = {unprotected: null} | {protected: null};
|
|
77
|
+
export type DeviceProtection = { unprotected: null } | { protected: null };
|
|
78
78
|
export interface DeviceRegistrationInfo {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
tentative_device: [] | [DeviceData];
|
|
80
|
+
expiration: Timestamp;
|
|
81
81
|
}
|
|
82
82
|
export interface DeviceWithUsage {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
83
|
+
alias: string;
|
|
84
|
+
last_usage: [] | [Timestamp];
|
|
85
|
+
origin: [] | [string];
|
|
86
|
+
protection: DeviceProtection;
|
|
87
|
+
pubkey: DeviceKey;
|
|
88
|
+
key_type: KeyType;
|
|
89
|
+
purpose: Purpose;
|
|
90
|
+
credential_id: [] | [CredentialId];
|
|
91
91
|
}
|
|
92
92
|
export type FrontendHostname = string;
|
|
93
93
|
export type GetDelegationResponse =
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
| { no_such_delegation: null }
|
|
95
|
+
| { signed_delegation: SignedDelegation };
|
|
96
96
|
export type HeaderField = [string, string];
|
|
97
97
|
export interface HttpRequest {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
url: string;
|
|
99
|
+
method: string;
|
|
100
|
+
body: Uint8Array | number[];
|
|
101
|
+
headers: Array<HeaderField>;
|
|
102
102
|
}
|
|
103
103
|
export interface HttpResponse {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
body: Uint8Array | number[];
|
|
105
|
+
headers: Array<HeaderField>;
|
|
106
|
+
upgrade: [] | [boolean];
|
|
107
|
+
streaming_strategy: [] | [StreamingStrategy];
|
|
108
|
+
status_code: number;
|
|
109
109
|
}
|
|
110
110
|
export interface IdentityAnchorInfo {
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
devices: Array<DeviceWithUsage>;
|
|
112
|
+
device_registration: [] | [DeviceRegistrationInfo];
|
|
113
113
|
}
|
|
114
114
|
export interface InternetIdentityInit {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
assigned_user_number_range: [] | [[bigint, bigint]];
|
|
116
|
+
archive_config: [] | [ArchiveConfig];
|
|
117
|
+
canister_creation_cycles_cost: [] | [bigint];
|
|
118
|
+
register_rate_limit: [] | [RateLimitConfig];
|
|
119
119
|
}
|
|
120
120
|
export interface InternetIdentityStats {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
121
|
+
storage_layout_version: number;
|
|
122
|
+
users_registered: bigint;
|
|
123
|
+
assigned_user_number_range: [bigint, bigint];
|
|
124
|
+
archive_info: ArchiveInfo;
|
|
125
|
+
canister_creation_cycles_cost: bigint;
|
|
126
|
+
active_anchor_stats: [] | [ActiveAnchorStatistics];
|
|
127
127
|
}
|
|
128
128
|
export type KeyType =
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
| { platform: null }
|
|
130
|
+
| { seed_phrase: null }
|
|
131
|
+
| { cross_platform: null }
|
|
132
|
+
| { unknown: null };
|
|
133
133
|
export interface OngoingActiveAnchorStats {
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
monthly_active_anchors: Array<ActiveAnchorCounter>;
|
|
135
|
+
daily_active_anchors: ActiveAnchorCounter;
|
|
136
136
|
}
|
|
137
137
|
export type PublicKey = Uint8Array | number[];
|
|
138
|
-
export type Purpose = {authentication: null} | {recovery: null};
|
|
138
|
+
export type Purpose = { authentication: null } | { recovery: null };
|
|
139
139
|
export interface RateLimitConfig {
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
max_tokens: bigint;
|
|
141
|
+
time_per_token_ns: bigint;
|
|
142
142
|
}
|
|
143
143
|
export type RegisterResponse =
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
| { bad_challenge: null }
|
|
145
|
+
| { canister_full: null }
|
|
146
|
+
| { registered: { user_number: UserNumber } };
|
|
147
147
|
export type SessionKey = PublicKey;
|
|
148
148
|
export interface SignedDelegation {
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
signature: Uint8Array | number[];
|
|
150
|
+
delegation: Delegation;
|
|
151
151
|
}
|
|
152
152
|
export interface StreamingCallbackHttpResponse {
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
token: [] | [Token];
|
|
154
|
+
body: Uint8Array | number[];
|
|
155
155
|
}
|
|
156
156
|
export type StreamingStrategy = {
|
|
157
|
-
|
|
157
|
+
Callback: { token: Token; callback: [Principal, string] };
|
|
158
158
|
};
|
|
159
159
|
export type Timestamp = bigint;
|
|
160
160
|
export type Token = {};
|
|
161
161
|
export type UserKey = PublicKey;
|
|
162
162
|
export type UserNumber = bigint;
|
|
163
163
|
export type VerifyTentativeDeviceResponse =
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
164
|
+
| {
|
|
165
|
+
device_registration_mode_off: null;
|
|
166
|
+
}
|
|
167
|
+
| { verified: null }
|
|
168
|
+
| { wrong_code: { retries_left: number } }
|
|
169
|
+
| { no_device_to_verify: null };
|
|
170
170
|
export interface WebAuthnCredential {
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
pubkey: PublicKey;
|
|
172
|
+
credential_id: CredentialId;
|
|
173
173
|
}
|
|
174
174
|
export interface _SERVICE {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
175
|
+
acknowledge_entries: ActorMethod<[bigint], undefined>;
|
|
176
|
+
add: ActorMethod<[UserNumber, DeviceData], undefined>;
|
|
177
|
+
add_tentative_device: ActorMethod<[UserNumber, DeviceData], AddTentativeDeviceResponse>;
|
|
178
|
+
create_challenge: ActorMethod<[], Challenge>;
|
|
179
|
+
deploy_archive: ActorMethod<[Uint8Array | number[]], DeployArchiveResult>;
|
|
180
|
+
enter_device_registration_mode: ActorMethod<[UserNumber], Timestamp>;
|
|
181
|
+
exit_device_registration_mode: ActorMethod<[UserNumber], undefined>;
|
|
182
|
+
fetch_entries: ActorMethod<[], Array<BufferedArchiveEntry>>;
|
|
183
|
+
get_anchor_credentials: ActorMethod<[UserNumber], AnchorCredentials>;
|
|
184
|
+
get_anchor_info: ActorMethod<[UserNumber], IdentityAnchorInfo>;
|
|
185
|
+
get_delegation: ActorMethod<
|
|
186
|
+
[UserNumber, FrontendHostname, SessionKey, Timestamp],
|
|
187
|
+
GetDelegationResponse
|
|
188
|
+
>;
|
|
189
|
+
get_principal: ActorMethod<[UserNumber, FrontendHostname], Principal>;
|
|
190
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
191
|
+
http_request_update: ActorMethod<[HttpRequest], HttpResponse>;
|
|
192
|
+
init_salt: ActorMethod<[], undefined>;
|
|
193
|
+
lookup: ActorMethod<[UserNumber], Array<DeviceData>>;
|
|
194
|
+
prepare_delegation: ActorMethod<
|
|
195
|
+
[UserNumber, FrontendHostname, SessionKey, [] | [bigint]],
|
|
196
|
+
[UserKey, Timestamp]
|
|
197
|
+
>;
|
|
198
|
+
register: ActorMethod<[DeviceData, ChallengeResult], RegisterResponse>;
|
|
199
|
+
remove: ActorMethod<[UserNumber, DeviceKey], undefined>;
|
|
200
|
+
replace: ActorMethod<[UserNumber, DeviceKey, DeviceData], undefined>;
|
|
201
|
+
stats: ActorMethod<[], InternetIdentityStats>;
|
|
202
|
+
update: ActorMethod<[UserNumber, DeviceKey, DeviceData], undefined>;
|
|
203
|
+
verify_tentative_device: ActorMethod<[UserNumber, string], VerifyTentativeDeviceResponse>;
|
|
204
204
|
}
|