@junobuild/ic-client 7.1.1 → 7.2.0-next-2026-02-10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/actor.js +1 -1
  2. package/actor.js.map +3 -3
  3. package/actor.mjs +1 -1
  4. package/actor.mjs.map +3 -3
  5. package/declarations/console/console.did.d.ts +17 -11
  6. package/declarations/console/console.factory.certified.did.js +19 -7
  7. package/declarations/console/console.factory.did.js +19 -7
  8. package/declarations/console/console.factory.did.mjs +19 -7
  9. package/declarations/deprecated/console-0-3-3.did.d.ts +529 -0
  10. package/declarations/deprecated/console-0-3-3.factory.did.js +567 -0
  11. package/declarations/deprecated/observatory-0-4-0.did.d.ts +145 -0
  12. package/declarations/deprecated/observatory-0-4-0.factory.did.js +149 -0
  13. package/declarations/deprecated/satellite-0-1-6.did.d.ts +511 -0
  14. package/declarations/deprecated/satellite-0-1-6.factory.did.js +546 -0
  15. package/declarations/mission_control/mission_control.did.d.ts +3 -0
  16. package/declarations/mission_control/mission_control.factory.certified.did.js +6 -0
  17. package/declarations/mission_control/mission_control.factory.did.js +6 -0
  18. package/declarations/observatory/observatory.did.d.ts +7 -4
  19. package/declarations/observatory/observatory.factory.certified.did.js +14 -4
  20. package/declarations/observatory/observatory.factory.did.js +14 -4
  21. package/declarations/observatory/observatory.factory.did.mjs +14 -4
  22. package/declarations/orbiter/orbiter.did.d.ts +3 -0
  23. package/declarations/orbiter/orbiter.factory.certified.did.js +6 -0
  24. package/declarations/orbiter/orbiter.factory.did.js +6 -0
  25. package/declarations/orbiter/orbiter.factory.did.mjs +6 -0
  26. package/declarations/satellite/satellite.did.d.ts +77 -10
  27. package/declarations/satellite/satellite.factory.certified.did.js +78 -5
  28. package/declarations/satellite/satellite.factory.did.js +78 -5
  29. package/declarations/satellite/satellite.factory.did.mjs +78 -5
  30. package/declarations/sputnik/sputnik.did.d.ts +77 -10
  31. package/declarations/sputnik/sputnik.factory.certified.did.js +78 -5
  32. package/declarations/sputnik/sputnik.factory.did.js +78 -5
  33. package/dev/_constants.d.ts +1 -0
  34. package/dev/errors.d.ts +9 -0
  35. package/dev/identity.d.ts +43 -0
  36. package/dev/types/identity.d.ts +48 -0
  37. package/dev.d.ts +3 -0
  38. package/dev.js +2 -0
  39. package/dev.js.map +7 -0
  40. package/dev.mjs +4 -0
  41. package/dev.mjs.map +7 -0
  42. package/package.json +10 -4
@@ -69,7 +69,7 @@ export interface AuthenticationConfigInternetIdentity {
69
69
  }
70
70
  export interface AuthenticationConfigOpenId {
71
71
  observatory_id: [] | [Principal];
72
- providers: Array<[OpenIdProvider, OpenIdProviderConfig]>;
72
+ providers: Array<[OpenIdDelegationProvider, OpenIdAuthProviderConfig]>;
73
73
  }
74
74
  export type AuthenticationError =
75
75
  | {
@@ -99,10 +99,12 @@ export interface ConfigMaxMemorySize {
99
99
  export interface Controller {
100
100
  updated_at: bigint;
101
101
  metadata: Array<[string, string]>;
102
+ kind: [] | [ControllerKind];
102
103
  created_at: bigint;
103
104
  scope: ControllerScope;
104
105
  expires_at: [] | [bigint];
105
106
  }
107
+ export type ControllerKind = { Emulator: null } | { Automation: null };
106
108
  export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
107
109
  export interface CreateMissionControlArgs {
108
110
  subnet_id: [] | [Principal];
@@ -277,9 +279,17 @@ export interface ListSegmentsArgs {
277
279
  }
278
280
  export type Memory = { Heap: null } | { Stable: null };
279
281
  export interface OpenId {
280
- provider: OpenIdProvider;
282
+ provider: OpenIdDelegationProvider;
281
283
  data: OpenIdData;
282
284
  }
285
+ export interface OpenIdAuthProviderConfig {
286
+ delegation: [] | [OpenIdAuthProviderDelegationConfig];
287
+ client_id: string;
288
+ }
289
+ export interface OpenIdAuthProviderDelegationConfig {
290
+ targets: [] | [Array<Principal>];
291
+ max_time_to_live: [] | [bigint];
292
+ }
283
293
  export interface OpenIdData {
284
294
  name: [] | [string];
285
295
  locale: [] | [string];
@@ -287,7 +297,9 @@ export interface OpenIdData {
287
297
  email: [] | [string];
288
298
  picture: [] | [string];
289
299
  given_name: [] | [string];
300
+ preferred_username: [] | [string];
290
301
  }
302
+ export type OpenIdDelegationProvider = { GitHub: null } | { Google: null };
291
303
  export interface OpenIdGetDelegationArgs {
292
304
  jwt: string;
293
305
  session_key: Uint8Array;
@@ -299,15 +311,6 @@ export interface OpenIdPrepareDelegationArgs {
299
311
  session_key: Uint8Array;
300
312
  salt: Uint8Array;
301
313
  }
302
- export type OpenIdProvider = { Google: null };
303
- export interface OpenIdProviderConfig {
304
- delegation: [] | [OpenIdProviderDelegationConfig];
305
- client_id: string;
306
- }
307
- export interface OpenIdProviderDelegationConfig {
308
- targets: [] | [Array<Principal>];
309
- max_time_to_live: [] | [bigint];
310
- }
311
314
  export type PaymentStatus = { Refunded: null } | { Acknowledged: null } | { Completed: null };
312
315
  export type PrepareDelegationError =
313
316
  | {
@@ -376,6 +379,7 @@ export interface SetAuthenticationConfig {
376
379
  }
377
380
  export interface SetController {
378
381
  metadata: Array<[string, string]>;
382
+ kind: [] | [ControllerKind];
379
383
  scope: ControllerScope;
380
384
  expires_at: [] | [bigint];
381
385
  }
@@ -514,11 +518,13 @@ export interface _SERVICE {
514
518
  set_controllers: ActorMethod<[SetControllersArgs], undefined>;
515
519
  set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
516
520
  set_fee: ActorMethod<[SegmentKind, FeesArgs], undefined>;
521
+ set_many_segments: ActorMethod<[Array<SetSegmentsArgs>], Array<Segment>>;
517
522
  set_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
518
523
  set_segment: ActorMethod<[SetSegmentsArgs], Segment>;
519
524
  set_segment_metadata: ActorMethod<[SetSegmentMetadataArgs], Segment>;
520
525
  set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
521
526
  submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
527
+ unset_many_segments: ActorMethod<[Array<UnsetSegmentsArgs>], undefined>;
522
528
  unset_segment: ActorMethod<[UnsetSegmentsArgs], undefined>;
523
529
  upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
524
530
  }
@@ -24,17 +24,21 @@ export const idlFactory = ({IDL}) => {
24
24
  user_key: IDL.Vec(IDL.Nat8),
25
25
  expiration: IDL.Nat64
26
26
  });
27
- const OpenIdProvider = IDL.Variant({Google: IDL.Null});
27
+ const OpenIdDelegationProvider = IDL.Variant({
28
+ GitHub: IDL.Null,
29
+ Google: IDL.Null
30
+ });
28
31
  const OpenIdData = IDL.Record({
29
32
  name: IDL.Opt(IDL.Text),
30
33
  locale: IDL.Opt(IDL.Text),
31
34
  family_name: IDL.Opt(IDL.Text),
32
35
  email: IDL.Opt(IDL.Text),
33
36
  picture: IDL.Opt(IDL.Text),
34
- given_name: IDL.Opt(IDL.Text)
37
+ given_name: IDL.Opt(IDL.Text),
38
+ preferred_username: IDL.Opt(IDL.Text)
35
39
  });
36
40
  const OpenId = IDL.Record({
37
- provider: OpenIdProvider,
41
+ provider: OpenIdDelegationProvider,
38
42
  data: OpenIdData
39
43
  });
40
44
  const Provider = IDL.Variant({
@@ -129,17 +133,17 @@ export const idlFactory = ({IDL}) => {
129
133
  const DeleteProposalAssets = IDL.Record({
130
134
  proposal_ids: IDL.Vec(IDL.Nat)
131
135
  });
132
- const OpenIdProviderDelegationConfig = IDL.Record({
136
+ const OpenIdAuthProviderDelegationConfig = IDL.Record({
133
137
  targets: IDL.Opt(IDL.Vec(IDL.Principal)),
134
138
  max_time_to_live: IDL.Opt(IDL.Nat64)
135
139
  });
136
- const OpenIdProviderConfig = IDL.Record({
137
- delegation: IDL.Opt(OpenIdProviderDelegationConfig),
140
+ const OpenIdAuthProviderConfig = IDL.Record({
141
+ delegation: IDL.Opt(OpenIdAuthProviderDelegationConfig),
138
142
  client_id: IDL.Text
139
143
  });
140
144
  const AuthenticationConfigOpenId = IDL.Record({
141
145
  observatory_id: IDL.Opt(IDL.Principal),
142
- providers: IDL.Vec(IDL.Tuple(OpenIdProvider, OpenIdProviderConfig))
146
+ providers: IDL.Vec(IDL.Tuple(OpenIdDelegationProvider, OpenIdAuthProviderConfig))
143
147
  });
144
148
  const AuthenticationConfigInternetIdentity = IDL.Record({
145
149
  derivation_origin: IDL.Opt(IDL.Text),
@@ -360,6 +364,10 @@ export const idlFactory = ({IDL}) => {
360
364
  items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
361
365
  items_length: IDL.Nat64
362
366
  });
367
+ const ControllerKind = IDL.Variant({
368
+ Emulator: IDL.Null,
369
+ Automation: IDL.Null
370
+ });
363
371
  const ControllerScope = IDL.Variant({
364
372
  Write: IDL.Null,
365
373
  Admin: IDL.Null,
@@ -368,6 +376,7 @@ export const idlFactory = ({IDL}) => {
368
376
  const Controller = IDL.Record({
369
377
  updated_at: IDL.Nat64,
370
378
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
379
+ kind: IDL.Opt(ControllerKind),
371
380
  created_at: IDL.Nat64,
372
381
  scope: ControllerScope,
373
382
  expires_at: IDL.Opt(IDL.Nat64)
@@ -448,6 +457,7 @@ export const idlFactory = ({IDL}) => {
448
457
  });
449
458
  const SetController = IDL.Record({
450
459
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
460
+ kind: IDL.Opt(ControllerKind),
451
461
  scope: ControllerScope,
452
462
  expires_at: IDL.Opt(IDL.Nat64)
453
463
  });
@@ -542,11 +552,13 @@ export const idlFactory = ({IDL}) => {
542
552
  set_controllers: IDL.Func([SetControllersArgs], [], []),
543
553
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
544
554
  set_fee: IDL.Func([SegmentKind, FeesArgs], [], []),
555
+ set_many_segments: IDL.Func([IDL.Vec(SetSegmentsArgs)], [IDL.Vec(Segment)], []),
545
556
  set_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
546
557
  set_segment: IDL.Func([SetSegmentsArgs], [Segment], []),
547
558
  set_segment_metadata: IDL.Func([SetSegmentMetadataArgs], [Segment], []),
548
559
  set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
549
560
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
561
+ unset_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
550
562
  unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
551
563
  upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
552
564
  });
@@ -24,17 +24,21 @@ export const idlFactory = ({IDL}) => {
24
24
  user_key: IDL.Vec(IDL.Nat8),
25
25
  expiration: IDL.Nat64
26
26
  });
27
- const OpenIdProvider = IDL.Variant({Google: IDL.Null});
27
+ const OpenIdDelegationProvider = IDL.Variant({
28
+ GitHub: IDL.Null,
29
+ Google: IDL.Null
30
+ });
28
31
  const OpenIdData = IDL.Record({
29
32
  name: IDL.Opt(IDL.Text),
30
33
  locale: IDL.Opt(IDL.Text),
31
34
  family_name: IDL.Opt(IDL.Text),
32
35
  email: IDL.Opt(IDL.Text),
33
36
  picture: IDL.Opt(IDL.Text),
34
- given_name: IDL.Opt(IDL.Text)
37
+ given_name: IDL.Opt(IDL.Text),
38
+ preferred_username: IDL.Opt(IDL.Text)
35
39
  });
36
40
  const OpenId = IDL.Record({
37
- provider: OpenIdProvider,
41
+ provider: OpenIdDelegationProvider,
38
42
  data: OpenIdData
39
43
  });
40
44
  const Provider = IDL.Variant({
@@ -129,17 +133,17 @@ export const idlFactory = ({IDL}) => {
129
133
  const DeleteProposalAssets = IDL.Record({
130
134
  proposal_ids: IDL.Vec(IDL.Nat)
131
135
  });
132
- const OpenIdProviderDelegationConfig = IDL.Record({
136
+ const OpenIdAuthProviderDelegationConfig = IDL.Record({
133
137
  targets: IDL.Opt(IDL.Vec(IDL.Principal)),
134
138
  max_time_to_live: IDL.Opt(IDL.Nat64)
135
139
  });
136
- const OpenIdProviderConfig = IDL.Record({
137
- delegation: IDL.Opt(OpenIdProviderDelegationConfig),
140
+ const OpenIdAuthProviderConfig = IDL.Record({
141
+ delegation: IDL.Opt(OpenIdAuthProviderDelegationConfig),
138
142
  client_id: IDL.Text
139
143
  });
140
144
  const AuthenticationConfigOpenId = IDL.Record({
141
145
  observatory_id: IDL.Opt(IDL.Principal),
142
- providers: IDL.Vec(IDL.Tuple(OpenIdProvider, OpenIdProviderConfig))
146
+ providers: IDL.Vec(IDL.Tuple(OpenIdDelegationProvider, OpenIdAuthProviderConfig))
143
147
  });
144
148
  const AuthenticationConfigInternetIdentity = IDL.Record({
145
149
  derivation_origin: IDL.Opt(IDL.Text),
@@ -360,6 +364,10 @@ export const idlFactory = ({IDL}) => {
360
364
  items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
361
365
  items_length: IDL.Nat64
362
366
  });
367
+ const ControllerKind = IDL.Variant({
368
+ Emulator: IDL.Null,
369
+ Automation: IDL.Null
370
+ });
363
371
  const ControllerScope = IDL.Variant({
364
372
  Write: IDL.Null,
365
373
  Admin: IDL.Null,
@@ -368,6 +376,7 @@ export const idlFactory = ({IDL}) => {
368
376
  const Controller = IDL.Record({
369
377
  updated_at: IDL.Nat64,
370
378
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
379
+ kind: IDL.Opt(ControllerKind),
371
380
  created_at: IDL.Nat64,
372
381
  scope: ControllerScope,
373
382
  expires_at: IDL.Opt(IDL.Nat64)
@@ -448,6 +457,7 @@ export const idlFactory = ({IDL}) => {
448
457
  });
449
458
  const SetController = IDL.Record({
450
459
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
460
+ kind: IDL.Opt(ControllerKind),
451
461
  scope: ControllerScope,
452
462
  expires_at: IDL.Opt(IDL.Nat64)
453
463
  });
@@ -546,11 +556,13 @@ export const idlFactory = ({IDL}) => {
546
556
  set_controllers: IDL.Func([SetControllersArgs], [], []),
547
557
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
548
558
  set_fee: IDL.Func([SegmentKind, FeesArgs], [], []),
559
+ set_many_segments: IDL.Func([IDL.Vec(SetSegmentsArgs)], [IDL.Vec(Segment)], []),
549
560
  set_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
550
561
  set_segment: IDL.Func([SetSegmentsArgs], [Segment], []),
551
562
  set_segment_metadata: IDL.Func([SetSegmentMetadataArgs], [Segment], []),
552
563
  set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
553
564
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
565
+ unset_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
554
566
  unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
555
567
  upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
556
568
  });
@@ -24,17 +24,21 @@ export const idlFactory = ({IDL}) => {
24
24
  user_key: IDL.Vec(IDL.Nat8),
25
25
  expiration: IDL.Nat64
26
26
  });
27
- const OpenIdProvider = IDL.Variant({Google: IDL.Null});
27
+ const OpenIdDelegationProvider = IDL.Variant({
28
+ GitHub: IDL.Null,
29
+ Google: IDL.Null
30
+ });
28
31
  const OpenIdData = IDL.Record({
29
32
  name: IDL.Opt(IDL.Text),
30
33
  locale: IDL.Opt(IDL.Text),
31
34
  family_name: IDL.Opt(IDL.Text),
32
35
  email: IDL.Opt(IDL.Text),
33
36
  picture: IDL.Opt(IDL.Text),
34
- given_name: IDL.Opt(IDL.Text)
37
+ given_name: IDL.Opt(IDL.Text),
38
+ preferred_username: IDL.Opt(IDL.Text)
35
39
  });
36
40
  const OpenId = IDL.Record({
37
- provider: OpenIdProvider,
41
+ provider: OpenIdDelegationProvider,
38
42
  data: OpenIdData
39
43
  });
40
44
  const Provider = IDL.Variant({
@@ -129,17 +133,17 @@ export const idlFactory = ({IDL}) => {
129
133
  const DeleteProposalAssets = IDL.Record({
130
134
  proposal_ids: IDL.Vec(IDL.Nat)
131
135
  });
132
- const OpenIdProviderDelegationConfig = IDL.Record({
136
+ const OpenIdAuthProviderDelegationConfig = IDL.Record({
133
137
  targets: IDL.Opt(IDL.Vec(IDL.Principal)),
134
138
  max_time_to_live: IDL.Opt(IDL.Nat64)
135
139
  });
136
- const OpenIdProviderConfig = IDL.Record({
137
- delegation: IDL.Opt(OpenIdProviderDelegationConfig),
140
+ const OpenIdAuthProviderConfig = IDL.Record({
141
+ delegation: IDL.Opt(OpenIdAuthProviderDelegationConfig),
138
142
  client_id: IDL.Text
139
143
  });
140
144
  const AuthenticationConfigOpenId = IDL.Record({
141
145
  observatory_id: IDL.Opt(IDL.Principal),
142
- providers: IDL.Vec(IDL.Tuple(OpenIdProvider, OpenIdProviderConfig))
146
+ providers: IDL.Vec(IDL.Tuple(OpenIdDelegationProvider, OpenIdAuthProviderConfig))
143
147
  });
144
148
  const AuthenticationConfigInternetIdentity = IDL.Record({
145
149
  derivation_origin: IDL.Opt(IDL.Text),
@@ -360,6 +364,10 @@ export const idlFactory = ({IDL}) => {
360
364
  items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
361
365
  items_length: IDL.Nat64
362
366
  });
367
+ const ControllerKind = IDL.Variant({
368
+ Emulator: IDL.Null,
369
+ Automation: IDL.Null
370
+ });
363
371
  const ControllerScope = IDL.Variant({
364
372
  Write: IDL.Null,
365
373
  Admin: IDL.Null,
@@ -368,6 +376,7 @@ export const idlFactory = ({IDL}) => {
368
376
  const Controller = IDL.Record({
369
377
  updated_at: IDL.Nat64,
370
378
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
379
+ kind: IDL.Opt(ControllerKind),
371
380
  created_at: IDL.Nat64,
372
381
  scope: ControllerScope,
373
382
  expires_at: IDL.Opt(IDL.Nat64)
@@ -448,6 +457,7 @@ export const idlFactory = ({IDL}) => {
448
457
  });
449
458
  const SetController = IDL.Record({
450
459
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
460
+ kind: IDL.Opt(ControllerKind),
451
461
  scope: ControllerScope,
452
462
  expires_at: IDL.Opt(IDL.Nat64)
453
463
  });
@@ -546,11 +556,13 @@ export const idlFactory = ({IDL}) => {
546
556
  set_controllers: IDL.Func([SetControllersArgs], [], []),
547
557
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
548
558
  set_fee: IDL.Func([SegmentKind, FeesArgs], [], []),
559
+ set_many_segments: IDL.Func([IDL.Vec(SetSegmentsArgs)], [IDL.Vec(Segment)], []),
549
560
  set_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
550
561
  set_segment: IDL.Func([SetSegmentsArgs], [Segment], []),
551
562
  set_segment_metadata: IDL.Func([SetSegmentMetadataArgs], [Segment], []),
552
563
  set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
553
564
  submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
565
+ unset_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
554
566
  unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
555
567
  upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
556
568
  });