@junobuild/ic-client 8.0.2 → 8.1.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 +18 -18
- package/declarations/console/console.factory.certified.did.js +10 -10
- package/declarations/console/console.factory.did.js +10 -10
- package/declarations/console/console.factory.did.mjs +10 -10
- package/declarations/mission_control/mission_control.did.d.ts +17 -17
- package/declarations/mission_control/mission_control.factory.certified.did.js +12 -12
- package/declarations/mission_control/mission_control.factory.did.js +12 -12
- package/declarations/observatory/observatory.did.d.ts +10 -10
- package/declarations/observatory/observatory.factory.certified.did.js +10 -10
- package/declarations/observatory/observatory.factory.did.js +10 -10
- package/declarations/observatory/observatory.factory.did.mjs +10 -10
- package/declarations/orbiter/orbiter.did.d.ts +17 -17
- package/declarations/orbiter/orbiter.factory.certified.did.js +12 -12
- package/declarations/orbiter/orbiter.factory.did.js +12 -12
- package/declarations/orbiter/orbiter.factory.did.mjs +12 -12
- package/declarations/satellite/satellite.did.d.ts +44 -20
- package/declarations/satellite/satellite.factory.certified.did.js +46 -20
- package/declarations/satellite/satellite.factory.did.js +46 -20
- package/declarations/satellite/satellite.factory.did.mjs +46 -20
- package/declarations/sputnik/sputnik.did.d.ts +44 -20
- package/declarations/sputnik/sputnik.factory.certified.did.js +46 -20
- package/declarations/sputnik/sputnik.factory.did.js +46 -20
- package/package.json +2 -2
- package/webauthn.js +1 -1
- package/webauthn.js.map +3 -3
- package/webauthn.mjs +1 -1
- package/webauthn.mjs.map +3 -3
|
@@ -10,6 +10,16 @@ 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 AccessKey {
|
|
14
|
+
updated_at: bigint;
|
|
15
|
+
metadata: Array<[string, string]>;
|
|
16
|
+
kind: [] | [AccessKeyKind];
|
|
17
|
+
created_at: bigint;
|
|
18
|
+
scope: AccessKeyScope;
|
|
19
|
+
expires_at: [] | [bigint];
|
|
20
|
+
}
|
|
21
|
+
export type AccessKeyKind = { Emulator: null } | { Automation: null };
|
|
22
|
+
export type AccessKeyScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
13
23
|
export interface Account {
|
|
14
24
|
updated_at: bigint;
|
|
15
25
|
credits: Tokens;
|
|
@@ -96,16 +106,6 @@ export interface ConfigMaxMemorySize {
|
|
|
96
106
|
stable: [] | [bigint];
|
|
97
107
|
heap: [] | [bigint];
|
|
98
108
|
}
|
|
99
|
-
export interface Controller {
|
|
100
|
-
updated_at: bigint;
|
|
101
|
-
metadata: Array<[string, string]>;
|
|
102
|
-
kind: [] | [ControllerKind];
|
|
103
|
-
created_at: bigint;
|
|
104
|
-
scope: ControllerScope;
|
|
105
|
-
expires_at: [] | [bigint];
|
|
106
|
-
}
|
|
107
|
-
export type ControllerKind = { Emulator: null } | { Automation: null };
|
|
108
|
-
export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
109
109
|
export interface CreateMissionControlArgs {
|
|
110
110
|
subnet_id: [] | [Principal];
|
|
111
111
|
}
|
|
@@ -373,20 +373,20 @@ export interface SegmentsDeploymentOptions {
|
|
|
373
373
|
mission_control_version: [] | [string];
|
|
374
374
|
satellite_version: [] | [string];
|
|
375
375
|
}
|
|
376
|
+
export interface SetAccessKey {
|
|
377
|
+
metadata: Array<[string, string]>;
|
|
378
|
+
kind: [] | [AccessKeyKind];
|
|
379
|
+
scope: AccessKeyScope;
|
|
380
|
+
expires_at: [] | [bigint];
|
|
381
|
+
}
|
|
376
382
|
export interface SetAuthenticationConfig {
|
|
377
383
|
openid: [] | [AuthenticationConfigOpenId];
|
|
378
384
|
version: [] | [bigint];
|
|
379
385
|
internet_identity: [] | [AuthenticationConfigInternetIdentity];
|
|
380
386
|
rules: [] | [AuthenticationRules];
|
|
381
387
|
}
|
|
382
|
-
export interface SetController {
|
|
383
|
-
metadata: Array<[string, string]>;
|
|
384
|
-
kind: [] | [ControllerKind];
|
|
385
|
-
scope: ControllerScope;
|
|
386
|
-
expires_at: [] | [bigint];
|
|
387
|
-
}
|
|
388
388
|
export interface SetControllersArgs {
|
|
389
|
-
controller:
|
|
389
|
+
controller: SetAccessKey;
|
|
390
390
|
controllers: Array<Principal>;
|
|
391
391
|
}
|
|
392
392
|
export interface SetSegmentMetadataArgs {
|
|
@@ -509,7 +509,7 @@ export interface _SERVICE {
|
|
|
509
509
|
>;
|
|
510
510
|
list_accounts: ActorMethod<[], Array<[Principal, Account]>>;
|
|
511
511
|
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
512
|
-
list_controllers: ActorMethod<[], Array<[Principal,
|
|
512
|
+
list_controllers: ActorMethod<[], Array<[Principal, AccessKey]>>;
|
|
513
513
|
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
514
514
|
list_icp_payments: ActorMethod<[], Array<[bigint, IcpPayment]>>;
|
|
515
515
|
list_icrc_payments: ActorMethod<[], Array<[IcrcPaymentKey, IcrcPayment]>>;
|
|
@@ -366,21 +366,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
366
366
|
items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
|
|
367
367
|
items_length: IDL.Nat64
|
|
368
368
|
});
|
|
369
|
-
const
|
|
369
|
+
const AccessKeyKind = IDL.Variant({
|
|
370
370
|
Emulator: IDL.Null,
|
|
371
371
|
Automation: IDL.Null
|
|
372
372
|
});
|
|
373
|
-
const
|
|
373
|
+
const AccessKeyScope = IDL.Variant({
|
|
374
374
|
Write: IDL.Null,
|
|
375
375
|
Admin: IDL.Null,
|
|
376
376
|
Submit: IDL.Null
|
|
377
377
|
});
|
|
378
|
-
const
|
|
378
|
+
const AccessKey = IDL.Record({
|
|
379
379
|
updated_at: IDL.Nat64,
|
|
380
380
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
381
|
-
kind: IDL.Opt(
|
|
381
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
382
382
|
created_at: IDL.Nat64,
|
|
383
|
-
scope:
|
|
383
|
+
scope: AccessKeyScope,
|
|
384
384
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
385
385
|
});
|
|
386
386
|
const CustomDomain = IDL.Record({
|
|
@@ -457,14 +457,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
457
457
|
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
458
458
|
rules: IDL.Opt(AuthenticationRules)
|
|
459
459
|
});
|
|
460
|
-
const
|
|
460
|
+
const SetAccessKey = IDL.Record({
|
|
461
461
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
462
|
-
kind: IDL.Opt(
|
|
463
|
-
scope:
|
|
462
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
463
|
+
scope: AccessKeyScope,
|
|
464
464
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
465
465
|
});
|
|
466
466
|
const SetControllersArgs = IDL.Record({
|
|
467
|
-
controller:
|
|
467
|
+
controller: SetAccessKey,
|
|
468
468
|
controllers: IDL.Vec(IDL.Principal)
|
|
469
469
|
});
|
|
470
470
|
const FeesArgs = IDL.Record({
|
|
@@ -543,7 +543,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
543
543
|
),
|
|
544
544
|
list_accounts: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Account))], []),
|
|
545
545
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], []),
|
|
546
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
546
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], []),
|
|
547
547
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], []),
|
|
548
548
|
list_icp_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, IcpPayment))], []),
|
|
549
549
|
list_icrc_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IcrcPaymentKey, IcrcPayment))], []),
|
|
@@ -366,21 +366,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
366
366
|
items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
|
|
367
367
|
items_length: IDL.Nat64
|
|
368
368
|
});
|
|
369
|
-
const
|
|
369
|
+
const AccessKeyKind = IDL.Variant({
|
|
370
370
|
Emulator: IDL.Null,
|
|
371
371
|
Automation: IDL.Null
|
|
372
372
|
});
|
|
373
|
-
const
|
|
373
|
+
const AccessKeyScope = IDL.Variant({
|
|
374
374
|
Write: IDL.Null,
|
|
375
375
|
Admin: IDL.Null,
|
|
376
376
|
Submit: IDL.Null
|
|
377
377
|
});
|
|
378
|
-
const
|
|
378
|
+
const AccessKey = IDL.Record({
|
|
379
379
|
updated_at: IDL.Nat64,
|
|
380
380
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
381
|
-
kind: IDL.Opt(
|
|
381
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
382
382
|
created_at: IDL.Nat64,
|
|
383
|
-
scope:
|
|
383
|
+
scope: AccessKeyScope,
|
|
384
384
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
385
385
|
});
|
|
386
386
|
const CustomDomain = IDL.Record({
|
|
@@ -457,14 +457,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
457
457
|
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
458
458
|
rules: IDL.Opt(AuthenticationRules)
|
|
459
459
|
});
|
|
460
|
-
const
|
|
460
|
+
const SetAccessKey = IDL.Record({
|
|
461
461
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
462
|
-
kind: IDL.Opt(
|
|
463
|
-
scope:
|
|
462
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
463
|
+
scope: AccessKeyScope,
|
|
464
464
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
465
465
|
});
|
|
466
466
|
const SetControllersArgs = IDL.Record({
|
|
467
|
-
controller:
|
|
467
|
+
controller: SetAccessKey,
|
|
468
468
|
controllers: IDL.Vec(IDL.Principal)
|
|
469
469
|
});
|
|
470
470
|
const FeesArgs = IDL.Record({
|
|
@@ -543,7 +543,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
543
543
|
),
|
|
544
544
|
list_accounts: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Account))], ['query']),
|
|
545
545
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
546
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
546
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], ['query']),
|
|
547
547
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
548
548
|
list_icp_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, IcpPayment))], ['query']),
|
|
549
549
|
list_icrc_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IcrcPaymentKey, IcrcPayment))], ['query']),
|
|
@@ -366,21 +366,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
366
366
|
items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
|
|
367
367
|
items_length: IDL.Nat64
|
|
368
368
|
});
|
|
369
|
-
const
|
|
369
|
+
const AccessKeyKind = IDL.Variant({
|
|
370
370
|
Emulator: IDL.Null,
|
|
371
371
|
Automation: IDL.Null
|
|
372
372
|
});
|
|
373
|
-
const
|
|
373
|
+
const AccessKeyScope = IDL.Variant({
|
|
374
374
|
Write: IDL.Null,
|
|
375
375
|
Admin: IDL.Null,
|
|
376
376
|
Submit: IDL.Null
|
|
377
377
|
});
|
|
378
|
-
const
|
|
378
|
+
const AccessKey = IDL.Record({
|
|
379
379
|
updated_at: IDL.Nat64,
|
|
380
380
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
381
|
-
kind: IDL.Opt(
|
|
381
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
382
382
|
created_at: IDL.Nat64,
|
|
383
|
-
scope:
|
|
383
|
+
scope: AccessKeyScope,
|
|
384
384
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
385
385
|
});
|
|
386
386
|
const CustomDomain = IDL.Record({
|
|
@@ -457,14 +457,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
457
457
|
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
458
458
|
rules: IDL.Opt(AuthenticationRules)
|
|
459
459
|
});
|
|
460
|
-
const
|
|
460
|
+
const SetAccessKey = IDL.Record({
|
|
461
461
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
462
|
-
kind: IDL.Opt(
|
|
463
|
-
scope:
|
|
462
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
463
|
+
scope: AccessKeyScope,
|
|
464
464
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
465
465
|
});
|
|
466
466
|
const SetControllersArgs = IDL.Record({
|
|
467
|
-
controller:
|
|
467
|
+
controller: SetAccessKey,
|
|
468
468
|
controllers: IDL.Vec(IDL.Principal)
|
|
469
469
|
});
|
|
470
470
|
const FeesArgs = IDL.Record({
|
|
@@ -543,7 +543,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
543
543
|
),
|
|
544
544
|
list_accounts: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Account))], ['query']),
|
|
545
545
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
546
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
546
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], ['query']),
|
|
547
547
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
548
548
|
list_icp_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, IcpPayment))], ['query']),
|
|
549
549
|
list_icrc_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IcrcPaymentKey, IcrcPayment))], ['query']),
|
|
@@ -10,6 +10,16 @@ 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 AccessKey {
|
|
14
|
+
updated_at: bigint;
|
|
15
|
+
metadata: Array<[string, string]>;
|
|
16
|
+
kind: [] | [AccessKeyKind];
|
|
17
|
+
created_at: bigint;
|
|
18
|
+
scope: AccessKeyScope;
|
|
19
|
+
expires_at: [] | [bigint];
|
|
20
|
+
}
|
|
21
|
+
export type AccessKeyKind = { Emulator: null } | { Automation: null };
|
|
22
|
+
export type AccessKeyScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
13
23
|
export interface Account {
|
|
14
24
|
owner: Principal;
|
|
15
25
|
subaccount: [] | [Uint8Array];
|
|
@@ -17,16 +27,6 @@ export interface Account {
|
|
|
17
27
|
export interface Config {
|
|
18
28
|
monitoring: [] | [MonitoringConfig];
|
|
19
29
|
}
|
|
20
|
-
export interface Controller {
|
|
21
|
-
updated_at: bigint;
|
|
22
|
-
metadata: Array<[string, string]>;
|
|
23
|
-
kind: [] | [ControllerKind];
|
|
24
|
-
created_at: bigint;
|
|
25
|
-
scope: ControllerScope;
|
|
26
|
-
expires_at: [] | [bigint];
|
|
27
|
-
}
|
|
28
|
-
export type ControllerKind = { Emulator: null } | { Automation: null };
|
|
29
|
-
export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
30
30
|
export interface CreateCanisterConfig {
|
|
31
31
|
subnet_id: [] | [Principal];
|
|
32
32
|
name: [] | [string];
|
|
@@ -150,10 +150,10 @@ export interface SegmentsMonitoringStrategy {
|
|
|
150
150
|
ids: Array<Principal>;
|
|
151
151
|
strategy: CyclesMonitoringStrategy;
|
|
152
152
|
}
|
|
153
|
-
export interface
|
|
153
|
+
export interface SetAccessKey {
|
|
154
154
|
metadata: Array<[string, string]>;
|
|
155
|
-
kind: [] | [
|
|
156
|
-
scope:
|
|
155
|
+
kind: [] | [AccessKeyKind];
|
|
156
|
+
scope: AccessKeyScope;
|
|
157
157
|
expires_at: [] | [bigint];
|
|
158
158
|
}
|
|
159
159
|
export interface Settings {
|
|
@@ -230,22 +230,22 @@ export interface _SERVICE {
|
|
|
230
230
|
get_user_data: ActorMethod<[], User>;
|
|
231
231
|
icp_transfer: ActorMethod<[TransferArgs], Result>;
|
|
232
232
|
icrc_transfer: ActorMethod<[Principal, TransferArg], Result_1>;
|
|
233
|
-
list_mission_control_controllers: ActorMethod<[], Array<[Principal,
|
|
233
|
+
list_mission_control_controllers: ActorMethod<[], Array<[Principal, AccessKey]>>;
|
|
234
234
|
list_orbiters: ActorMethod<[], Array<[Principal, Orbiter]>>;
|
|
235
235
|
list_satellites: ActorMethod<[], Array<[Principal, Satellite]>>;
|
|
236
236
|
set_config: ActorMethod<[[] | [Config]], undefined>;
|
|
237
237
|
set_metadata: ActorMethod<[Array<[string, string]>], undefined>;
|
|
238
|
-
set_mission_control_controllers: ActorMethod<[Array<Principal>,
|
|
238
|
+
set_mission_control_controllers: ActorMethod<[Array<Principal>, SetAccessKey], undefined>;
|
|
239
239
|
set_orbiter: ActorMethod<[Principal, [] | [string]], Orbiter>;
|
|
240
240
|
set_orbiter_metadata: ActorMethod<[Principal, Array<[string, string]>], Orbiter>;
|
|
241
241
|
set_orbiters_controllers: ActorMethod<
|
|
242
|
-
[Array<Principal>, Array<Principal>,
|
|
242
|
+
[Array<Principal>, Array<Principal>, SetAccessKey],
|
|
243
243
|
undefined
|
|
244
244
|
>;
|
|
245
245
|
set_satellite: ActorMethod<[Principal, [] | [string]], Satellite>;
|
|
246
246
|
set_satellite_metadata: ActorMethod<[Principal, Array<[string, string]>], Satellite>;
|
|
247
247
|
set_satellites_controllers: ActorMethod<
|
|
248
|
-
[Array<Principal>, Array<Principal>,
|
|
248
|
+
[Array<Principal>, Array<Principal>, SetAccessKey],
|
|
249
249
|
undefined
|
|
250
250
|
>;
|
|
251
251
|
start_monitoring: ActorMethod<[], undefined>;
|
|
@@ -163,27 +163,27 @@ export const idlFactory = ({IDL}) => {
|
|
|
163
163
|
InsufficientFunds: IDL.Record({balance: IDL.Nat})
|
|
164
164
|
});
|
|
165
165
|
const Result_1 = IDL.Variant({Ok: IDL.Nat, Err: TransferError_1});
|
|
166
|
-
const
|
|
166
|
+
const AccessKeyKind = IDL.Variant({
|
|
167
167
|
Emulator: IDL.Null,
|
|
168
168
|
Automation: IDL.Null
|
|
169
169
|
});
|
|
170
|
-
const
|
|
170
|
+
const AccessKeyScope = IDL.Variant({
|
|
171
171
|
Write: IDL.Null,
|
|
172
172
|
Admin: IDL.Null,
|
|
173
173
|
Submit: IDL.Null
|
|
174
174
|
});
|
|
175
|
-
const
|
|
175
|
+
const AccessKey = IDL.Record({
|
|
176
176
|
updated_at: IDL.Nat64,
|
|
177
177
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
178
|
-
kind: IDL.Opt(
|
|
178
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
179
179
|
created_at: IDL.Nat64,
|
|
180
|
-
scope:
|
|
180
|
+
scope: AccessKeyScope,
|
|
181
181
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
182
182
|
});
|
|
183
|
-
const
|
|
183
|
+
const SetAccessKey = IDL.Record({
|
|
184
184
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
185
|
-
kind: IDL.Opt(
|
|
186
|
-
scope:
|
|
185
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
186
|
+
scope: AccessKeyScope,
|
|
187
187
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
188
188
|
});
|
|
189
189
|
const SegmentsMonitoringStrategy = IDL.Record({
|
|
@@ -233,14 +233,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
233
233
|
icrc_transfer: IDL.Func([IDL.Principal, TransferArg], [Result_1], []),
|
|
234
234
|
list_mission_control_controllers: IDL.Func(
|
|
235
235
|
[],
|
|
236
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
236
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
|
|
237
237
|
[]
|
|
238
238
|
),
|
|
239
239
|
list_orbiters: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Orbiter))], []),
|
|
240
240
|
list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], []),
|
|
241
241
|
set_config: IDL.Func([IDL.Opt(Config)], [], []),
|
|
242
242
|
set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
|
|
243
|
-
set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal),
|
|
243
|
+
set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetAccessKey], [], []),
|
|
244
244
|
set_orbiter: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Orbiter], []),
|
|
245
245
|
set_orbiter_metadata: IDL.Func(
|
|
246
246
|
[IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
@@ -248,7 +248,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
248
248
|
[]
|
|
249
249
|
),
|
|
250
250
|
set_orbiters_controllers: IDL.Func(
|
|
251
|
-
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal),
|
|
251
|
+
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetAccessKey],
|
|
252
252
|
[],
|
|
253
253
|
[]
|
|
254
254
|
),
|
|
@@ -259,7 +259,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
259
259
|
[]
|
|
260
260
|
),
|
|
261
261
|
set_satellites_controllers: IDL.Func(
|
|
262
|
-
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal),
|
|
262
|
+
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetAccessKey],
|
|
263
263
|
[],
|
|
264
264
|
[]
|
|
265
265
|
),
|
|
@@ -163,27 +163,27 @@ export const idlFactory = ({IDL}) => {
|
|
|
163
163
|
InsufficientFunds: IDL.Record({balance: IDL.Nat})
|
|
164
164
|
});
|
|
165
165
|
const Result_1 = IDL.Variant({Ok: IDL.Nat, Err: TransferError_1});
|
|
166
|
-
const
|
|
166
|
+
const AccessKeyKind = IDL.Variant({
|
|
167
167
|
Emulator: IDL.Null,
|
|
168
168
|
Automation: IDL.Null
|
|
169
169
|
});
|
|
170
|
-
const
|
|
170
|
+
const AccessKeyScope = IDL.Variant({
|
|
171
171
|
Write: IDL.Null,
|
|
172
172
|
Admin: IDL.Null,
|
|
173
173
|
Submit: IDL.Null
|
|
174
174
|
});
|
|
175
|
-
const
|
|
175
|
+
const AccessKey = IDL.Record({
|
|
176
176
|
updated_at: IDL.Nat64,
|
|
177
177
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
178
|
-
kind: IDL.Opt(
|
|
178
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
179
179
|
created_at: IDL.Nat64,
|
|
180
|
-
scope:
|
|
180
|
+
scope: AccessKeyScope,
|
|
181
181
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
182
182
|
});
|
|
183
|
-
const
|
|
183
|
+
const SetAccessKey = IDL.Record({
|
|
184
184
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
185
|
-
kind: IDL.Opt(
|
|
186
|
-
scope:
|
|
185
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
186
|
+
scope: AccessKeyScope,
|
|
187
187
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
188
188
|
});
|
|
189
189
|
const SegmentsMonitoringStrategy = IDL.Record({
|
|
@@ -233,14 +233,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
233
233
|
icrc_transfer: IDL.Func([IDL.Principal, TransferArg], [Result_1], []),
|
|
234
234
|
list_mission_control_controllers: IDL.Func(
|
|
235
235
|
[],
|
|
236
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
236
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
|
|
237
237
|
['query']
|
|
238
238
|
),
|
|
239
239
|
list_orbiters: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Orbiter))], ['query']),
|
|
240
240
|
list_satellites: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Satellite))], ['query']),
|
|
241
241
|
set_config: IDL.Func([IDL.Opt(Config)], [], []),
|
|
242
242
|
set_metadata: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
|
|
243
|
-
set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal),
|
|
243
|
+
set_mission_control_controllers: IDL.Func([IDL.Vec(IDL.Principal), SetAccessKey], [], []),
|
|
244
244
|
set_orbiter: IDL.Func([IDL.Principal, IDL.Opt(IDL.Text)], [Orbiter], []),
|
|
245
245
|
set_orbiter_metadata: IDL.Func(
|
|
246
246
|
[IDL.Principal, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
@@ -248,7 +248,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
248
248
|
[]
|
|
249
249
|
),
|
|
250
250
|
set_orbiters_controllers: IDL.Func(
|
|
251
|
-
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal),
|
|
251
|
+
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetAccessKey],
|
|
252
252
|
[],
|
|
253
253
|
[]
|
|
254
254
|
),
|
|
@@ -259,7 +259,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
259
259
|
[]
|
|
260
260
|
),
|
|
261
261
|
set_satellites_controllers: IDL.Func(
|
|
262
|
-
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal),
|
|
262
|
+
[IDL.Vec(IDL.Principal), IDL.Vec(IDL.Principal), SetAccessKey],
|
|
263
263
|
[],
|
|
264
264
|
[]
|
|
265
265
|
),
|
|
@@ -10,16 +10,16 @@ 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
|
|
13
|
+
export interface AccessKey {
|
|
14
14
|
updated_at: bigint;
|
|
15
15
|
metadata: Array<[string, string]>;
|
|
16
|
-
kind: [] | [
|
|
16
|
+
kind: [] | [AccessKeyKind];
|
|
17
17
|
created_at: bigint;
|
|
18
|
-
scope:
|
|
18
|
+
scope: AccessKeyScope;
|
|
19
19
|
expires_at: [] | [bigint];
|
|
20
20
|
}
|
|
21
|
-
export type
|
|
22
|
-
export type
|
|
21
|
+
export type AccessKeyKind = { Emulator: null } | { Automation: null };
|
|
22
|
+
export type AccessKeyScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
23
23
|
export interface CyclesBalance {
|
|
24
24
|
timestamp: bigint;
|
|
25
25
|
amount: bigint;
|
|
@@ -120,14 +120,14 @@ export interface Segment {
|
|
|
120
120
|
kind: SegmentKind;
|
|
121
121
|
}
|
|
122
122
|
export type SegmentKind = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
|
|
123
|
-
export interface
|
|
123
|
+
export interface SetAccessKey {
|
|
124
124
|
metadata: Array<[string, string]>;
|
|
125
|
-
kind: [] | [
|
|
126
|
-
scope:
|
|
125
|
+
kind: [] | [AccessKeyKind];
|
|
126
|
+
scope: AccessKeyScope;
|
|
127
127
|
expires_at: [] | [bigint];
|
|
128
128
|
}
|
|
129
129
|
export interface SetControllersArgs {
|
|
130
|
-
controller:
|
|
130
|
+
controller: SetAccessKey;
|
|
131
131
|
controllers: Array<Principal>;
|
|
132
132
|
}
|
|
133
133
|
export interface _SERVICE {
|
|
@@ -135,7 +135,7 @@ export interface _SERVICE {
|
|
|
135
135
|
get_notify_status: ActorMethod<[GetNotifications], NotifyStatus>;
|
|
136
136
|
get_openid_certificate: ActorMethod<[GetOpenIdCertificateArgs], [] | [OpenIdCertificate]>;
|
|
137
137
|
is_openid_monitoring_enabled: ActorMethod<[OpenIdProvider], boolean>;
|
|
138
|
-
list_controllers: ActorMethod<[], Array<[Principal,
|
|
138
|
+
list_controllers: ActorMethod<[], Array<[Principal, AccessKey]>>;
|
|
139
139
|
notify: ActorMethod<[NotifyArgs], undefined>;
|
|
140
140
|
ping: ActorMethod<[NotifyArgs], undefined>;
|
|
141
141
|
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
@@ -59,21 +59,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
59
59
|
created_at: IDL.Nat64,
|
|
60
60
|
version: IDL.Opt(IDL.Nat64)
|
|
61
61
|
});
|
|
62
|
-
const
|
|
62
|
+
const AccessKeyKind = IDL.Variant({
|
|
63
63
|
Emulator: IDL.Null,
|
|
64
64
|
Automation: IDL.Null
|
|
65
65
|
});
|
|
66
|
-
const
|
|
66
|
+
const AccessKeyScope = IDL.Variant({
|
|
67
67
|
Write: IDL.Null,
|
|
68
68
|
Admin: IDL.Null,
|
|
69
69
|
Submit: IDL.Null
|
|
70
70
|
});
|
|
71
|
-
const
|
|
71
|
+
const AccessKey = IDL.Record({
|
|
72
72
|
updated_at: IDL.Nat64,
|
|
73
73
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
74
|
-
kind: IDL.Opt(
|
|
74
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
75
75
|
created_at: IDL.Nat64,
|
|
76
|
-
scope:
|
|
76
|
+
scope: AccessKeyScope,
|
|
77
77
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
78
78
|
});
|
|
79
79
|
const CyclesBalance = IDL.Record({
|
|
@@ -118,14 +118,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
118
118
|
user: IDL.Principal,
|
|
119
119
|
segment: Segment
|
|
120
120
|
});
|
|
121
|
-
const
|
|
121
|
+
const SetAccessKey = IDL.Record({
|
|
122
122
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
123
|
-
kind: IDL.Opt(
|
|
124
|
-
scope:
|
|
123
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
124
|
+
scope: AccessKeyScope,
|
|
125
125
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
126
126
|
});
|
|
127
127
|
const SetControllersArgs = IDL.Record({
|
|
128
|
-
controller:
|
|
128
|
+
controller: SetAccessKey,
|
|
129
129
|
controllers: IDL.Vec(IDL.Principal)
|
|
130
130
|
});
|
|
131
131
|
const Env = IDL.Record({email_api_key: IDL.Opt(IDL.Text)});
|
|
@@ -140,7 +140,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
140
140
|
get_notify_status: IDL.Func([GetNotifications], [NotifyStatus], []),
|
|
141
141
|
get_openid_certificate: IDL.Func([GetOpenIdCertificateArgs], [IDL.Opt(OpenIdCertificate)], []),
|
|
142
142
|
is_openid_monitoring_enabled: IDL.Func([OpenIdProvider], [IDL.Bool], []),
|
|
143
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
143
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], []),
|
|
144
144
|
notify: IDL.Func([NotifyArgs], [], []),
|
|
145
145
|
ping: IDL.Func([NotifyArgs], [], []),
|
|
146
146
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
@@ -59,21 +59,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
59
59
|
created_at: IDL.Nat64,
|
|
60
60
|
version: IDL.Opt(IDL.Nat64)
|
|
61
61
|
});
|
|
62
|
-
const
|
|
62
|
+
const AccessKeyKind = IDL.Variant({
|
|
63
63
|
Emulator: IDL.Null,
|
|
64
64
|
Automation: IDL.Null
|
|
65
65
|
});
|
|
66
|
-
const
|
|
66
|
+
const AccessKeyScope = IDL.Variant({
|
|
67
67
|
Write: IDL.Null,
|
|
68
68
|
Admin: IDL.Null,
|
|
69
69
|
Submit: IDL.Null
|
|
70
70
|
});
|
|
71
|
-
const
|
|
71
|
+
const AccessKey = IDL.Record({
|
|
72
72
|
updated_at: IDL.Nat64,
|
|
73
73
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
74
|
-
kind: IDL.Opt(
|
|
74
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
75
75
|
created_at: IDL.Nat64,
|
|
76
|
-
scope:
|
|
76
|
+
scope: AccessKeyScope,
|
|
77
77
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
78
78
|
});
|
|
79
79
|
const CyclesBalance = IDL.Record({
|
|
@@ -118,14 +118,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
118
118
|
user: IDL.Principal,
|
|
119
119
|
segment: Segment
|
|
120
120
|
});
|
|
121
|
-
const
|
|
121
|
+
const SetAccessKey = IDL.Record({
|
|
122
122
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
123
|
-
kind: IDL.Opt(
|
|
124
|
-
scope:
|
|
123
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
124
|
+
scope: AccessKeyScope,
|
|
125
125
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
126
126
|
});
|
|
127
127
|
const SetControllersArgs = IDL.Record({
|
|
128
|
-
controller:
|
|
128
|
+
controller: SetAccessKey,
|
|
129
129
|
controllers: IDL.Vec(IDL.Principal)
|
|
130
130
|
});
|
|
131
131
|
const Env = IDL.Record({email_api_key: IDL.Opt(IDL.Text)});
|
|
@@ -140,7 +140,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
140
140
|
get_notify_status: IDL.Func([GetNotifications], [NotifyStatus], ['query']),
|
|
141
141
|
get_openid_certificate: IDL.Func([GetOpenIdCertificateArgs], [IDL.Opt(OpenIdCertificate)], []),
|
|
142
142
|
is_openid_monitoring_enabled: IDL.Func([OpenIdProvider], [IDL.Bool], []),
|
|
143
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
143
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], ['query']),
|
|
144
144
|
notify: IDL.Func([NotifyArgs], [], []),
|
|
145
145
|
ping: IDL.Func([NotifyArgs], [], []),
|
|
146
146
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
@@ -59,21 +59,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
59
59
|
created_at: IDL.Nat64,
|
|
60
60
|
version: IDL.Opt(IDL.Nat64)
|
|
61
61
|
});
|
|
62
|
-
const
|
|
62
|
+
const AccessKeyKind = IDL.Variant({
|
|
63
63
|
Emulator: IDL.Null,
|
|
64
64
|
Automation: IDL.Null
|
|
65
65
|
});
|
|
66
|
-
const
|
|
66
|
+
const AccessKeyScope = IDL.Variant({
|
|
67
67
|
Write: IDL.Null,
|
|
68
68
|
Admin: IDL.Null,
|
|
69
69
|
Submit: IDL.Null
|
|
70
70
|
});
|
|
71
|
-
const
|
|
71
|
+
const AccessKey = IDL.Record({
|
|
72
72
|
updated_at: IDL.Nat64,
|
|
73
73
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
74
|
-
kind: IDL.Opt(
|
|
74
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
75
75
|
created_at: IDL.Nat64,
|
|
76
|
-
scope:
|
|
76
|
+
scope: AccessKeyScope,
|
|
77
77
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
78
78
|
});
|
|
79
79
|
const CyclesBalance = IDL.Record({
|
|
@@ -118,14 +118,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
118
118
|
user: IDL.Principal,
|
|
119
119
|
segment: Segment
|
|
120
120
|
});
|
|
121
|
-
const
|
|
121
|
+
const SetAccessKey = IDL.Record({
|
|
122
122
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
123
|
-
kind: IDL.Opt(
|
|
124
|
-
scope:
|
|
123
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
124
|
+
scope: AccessKeyScope,
|
|
125
125
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
126
126
|
});
|
|
127
127
|
const SetControllersArgs = IDL.Record({
|
|
128
|
-
controller:
|
|
128
|
+
controller: SetAccessKey,
|
|
129
129
|
controllers: IDL.Vec(IDL.Principal)
|
|
130
130
|
});
|
|
131
131
|
const Env = IDL.Record({email_api_key: IDL.Opt(IDL.Text)});
|
|
@@ -140,7 +140,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
140
140
|
get_notify_status: IDL.Func([GetNotifications], [NotifyStatus], ['query']),
|
|
141
141
|
get_openid_certificate: IDL.Func([GetOpenIdCertificateArgs], [IDL.Opt(OpenIdCertificate)], []),
|
|
142
142
|
is_openid_monitoring_enabled: IDL.Func([OpenIdProvider], [IDL.Bool], []),
|
|
143
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
143
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], ['query']),
|
|
144
144
|
notify: IDL.Func([NotifyArgs], [], []),
|
|
145
145
|
ping: IDL.Func([NotifyArgs], [], []),
|
|
146
146
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|