@junobuild/ic-client 3.1.2 → 3.1.3

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 (40) 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 +228 -218
  6. package/declarations/console/console.factory.certified.did.js +14 -1
  7. package/declarations/console/console.factory.did.js +14 -1
  8. package/declarations/console/console.factory.did.mjs +14 -1
  9. package/declarations/deprecated/console-0-0-14.did.d.ts +186 -186
  10. package/declarations/deprecated/console-0-0-8-patch1.did.d.ts +49 -49
  11. package/declarations/deprecated/mission_control-0-0-13.did.d.ts +173 -173
  12. package/declarations/deprecated/mission_control-0-0-14.did.d.ts +167 -167
  13. package/declarations/deprecated/mission_control-0-0-4.did.d.ts +57 -57
  14. package/declarations/deprecated/observatory-0-0-9.did.d.ts +42 -42
  15. package/declarations/deprecated/orbiter-0-0-6.did.d.ts +111 -111
  16. package/declarations/deprecated/orbiter-0-0-7.did.d.ts +116 -116
  17. package/declarations/deprecated/orbiter-0-0-8.did.d.ts +177 -177
  18. package/declarations/deprecated/orbiter-0-2-0.did.d.ts +203 -203
  19. package/declarations/deprecated/satellite-0-0-16.did.d.ts +174 -170
  20. package/declarations/deprecated/satellite-0-0-17.did.d.ts +185 -181
  21. package/declarations/deprecated/satellite-0-0-21.did.d.ts +216 -212
  22. package/declarations/deprecated/satellite-0-0-22.did.d.ts +211 -207
  23. package/declarations/deprecated/satellite-0-0-8.did.d.ts +125 -121
  24. package/declarations/deprecated/satellite-0-0-9.did.d.ts +139 -135
  25. package/declarations/mission_control/mission_control.did.d.ts +178 -169
  26. package/declarations/mission_control/mission_control.factory.certified.did.js +16 -4
  27. package/declarations/mission_control/mission_control.factory.did.js +16 -4
  28. package/declarations/observatory/observatory.did.d.ts +54 -54
  29. package/declarations/orbiter/orbiter.did.d.ts +206 -206
  30. package/declarations/orbiter/orbiter.factory.certified.did.js +7 -3
  31. package/declarations/orbiter/orbiter.factory.did.js +7 -3
  32. package/declarations/orbiter/orbiter.factory.did.mjs +7 -3
  33. package/declarations/satellite/satellite.did.d.ts +294 -285
  34. package/declarations/satellite/satellite.factory.certified.did.js +1 -0
  35. package/declarations/satellite/satellite.factory.did.js +1 -0
  36. package/declarations/satellite/satellite.factory.did.mjs +1 -0
  37. package/declarations/sputnik/sputnik.did.d.ts +294 -285
  38. package/declarations/sputnik/sputnik.factory.certified.did.js +1 -0
  39. package/declarations/sputnik/sputnik.factory.did.js +1 -0
  40. package/package.json +1 -1
@@ -1,70 +1,70 @@
1
- import type {ActorMethod} from '@dfinity/agent';
2
- import type {IDL} from '@dfinity/candid';
3
- import type {Principal} from '@dfinity/principal';
1
+ import type { ActorMethod } from '@dfinity/agent';
2
+ import type { IDL } from '@dfinity/candid';
3
+ import type { Principal } from '@dfinity/principal';
4
4
 
5
5
  export interface Controller {
6
- updated_at: bigint;
7
- metadata: Array<[string, string]>;
8
- created_at: bigint;
9
- scope: ControllerScope;
10
- expires_at: [] | [bigint];
6
+ updated_at: bigint;
7
+ metadata: Array<[string, string]>;
8
+ created_at: bigint;
9
+ scope: ControllerScope;
10
+ expires_at: [] | [bigint];
11
11
  }
12
- export type ControllerScope = {Write: null} | {Admin: null};
12
+ export type ControllerScope = { Write: null } | { Admin: null };
13
13
  export interface CyclesBalance {
14
- timestamp: bigint;
15
- amount: bigint;
14
+ timestamp: bigint;
15
+ amount: bigint;
16
16
  }
17
17
  export interface DeleteControllersArgs {
18
- controllers: Array<Principal>;
18
+ controllers: Array<Principal>;
19
19
  }
20
20
  export interface DepositedCyclesEmailNotification {
21
- to: string;
22
- deposited_cycles: CyclesBalance;
21
+ to: string;
22
+ deposited_cycles: CyclesBalance;
23
23
  }
24
24
  export interface Env {
25
- email_api_key: [] | [string];
25
+ email_api_key: [] | [string];
26
26
  }
27
27
  export interface GetNotifications {
28
- to: [] | [bigint];
29
- from: [] | [bigint];
30
- segment_id: [] | [Principal];
28
+ to: [] | [bigint];
29
+ from: [] | [bigint];
30
+ segment_id: [] | [Principal];
31
31
  }
32
32
  export type NotificationKind = {
33
- DepositedCyclesEmail: DepositedCyclesEmailNotification;
33
+ DepositedCyclesEmail: DepositedCyclesEmailNotification;
34
34
  };
35
35
  export interface NotifyArgs {
36
- kind: NotificationKind;
37
- user: Principal;
38
- segment: Segment;
36
+ kind: NotificationKind;
37
+ user: Principal;
38
+ segment: Segment;
39
39
  }
40
40
  export interface NotifyStatus {
41
- pending: bigint;
42
- sent: bigint;
43
- failed: bigint;
41
+ pending: bigint;
42
+ sent: bigint;
43
+ failed: bigint;
44
44
  }
45
45
  export interface Segment {
46
- id: Principal;
47
- metadata: [] | [Array<[string, string]>];
48
- kind: SegmentKind;
46
+ id: Principal;
47
+ metadata: [] | [Array<[string, string]>];
48
+ kind: SegmentKind;
49
49
  }
50
- export type SegmentKind = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
50
+ export type SegmentKind = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
51
51
  export interface SetController {
52
- metadata: Array<[string, string]>;
53
- scope: ControllerScope;
54
- expires_at: [] | [bigint];
52
+ metadata: Array<[string, string]>;
53
+ scope: ControllerScope;
54
+ expires_at: [] | [bigint];
55
55
  }
56
56
  export interface SetControllersArgs {
57
- controller: SetController;
58
- controllers: Array<Principal>;
57
+ controller: SetController;
58
+ controllers: Array<Principal>;
59
59
  }
60
60
  export interface _SERVICE {
61
- del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
62
- get_notify_status: ActorMethod<[GetNotifications], NotifyStatus>;
63
- list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
64
- notify: ActorMethod<[NotifyArgs], undefined>;
65
- ping: ActorMethod<[NotifyArgs], undefined>;
66
- set_controllers: ActorMethod<[SetControllersArgs], undefined>;
67
- set_env: ActorMethod<[Env], undefined>;
61
+ del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
62
+ get_notify_status: ActorMethod<[GetNotifications], NotifyStatus>;
63
+ list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
64
+ notify: ActorMethod<[NotifyArgs], undefined>;
65
+ ping: ActorMethod<[NotifyArgs], undefined>;
66
+ set_controllers: ActorMethod<[SetControllersArgs], undefined>;
67
+ set_env: ActorMethod<[Env], undefined>;
68
68
  }
69
69
  export declare const idlFactory: IDL.InterfaceFactory;
70
- export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
70
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -1,161 +1,161 @@
1
- import type {ActorMethod} from '@dfinity/agent';
2
- import type {IDL} from '@dfinity/candid';
3
- import type {Principal} from '@dfinity/principal';
1
+ import type { ActorMethod } from '@dfinity/agent';
2
+ import type { IDL } from '@dfinity/candid';
3
+ import type { Principal } from '@dfinity/principal';
4
4
 
5
5
  export interface AnalyticKey {
6
- key: string;
7
- collected_at: bigint;
6
+ key: string;
7
+ collected_at: bigint;
8
8
  }
9
9
  export interface AnalyticsBrowsersPageViews {
10
- safari: number;
11
- opera: number;
12
- others: number;
13
- firefox: number;
14
- chrome: number;
10
+ safari: number;
11
+ opera: number;
12
+ others: number;
13
+ firefox: number;
14
+ chrome: number;
15
15
  }
16
16
  export interface AnalyticsClientsPageViews {
17
- browsers: AnalyticsBrowsersPageViews;
18
- devices: AnalyticsDevicesPageViews;
17
+ browsers: AnalyticsBrowsersPageViews;
18
+ devices: AnalyticsDevicesPageViews;
19
19
  }
20
20
  export interface AnalyticsDevicesPageViews {
21
- desktop: number;
22
- others: number;
23
- mobile: number;
21
+ desktop: number;
22
+ others: number;
23
+ mobile: number;
24
24
  }
25
25
  export interface AnalyticsMetricsPageViews {
26
- bounce_rate: number;
27
- average_page_views_per_session: number;
28
- daily_total_page_views: Array<[CalendarDate, number]>;
29
- total_page_views: number;
30
- unique_page_views: bigint;
31
- unique_sessions: bigint;
26
+ bounce_rate: number;
27
+ average_page_views_per_session: number;
28
+ daily_total_page_views: Array<[CalendarDate, number]>;
29
+ total_page_views: number;
30
+ unique_page_views: bigint;
31
+ unique_sessions: bigint;
32
32
  }
33
33
  export interface AnalyticsTop10PageViews {
34
- referrers: Array<[string, number]>;
35
- pages: Array<[string, number]>;
34
+ referrers: Array<[string, number]>;
35
+ pages: Array<[string, number]>;
36
36
  }
37
37
  export interface AnalyticsTrackEvents {
38
- total: Array<[string, number]>;
38
+ total: Array<[string, number]>;
39
39
  }
40
40
  export interface CalendarDate {
41
- day: number;
42
- month: number;
43
- year: number;
41
+ day: number;
42
+ month: number;
43
+ year: number;
44
44
  }
45
45
  export interface Controller {
46
- updated_at: bigint;
47
- metadata: Array<[string, string]>;
48
- created_at: bigint;
49
- scope: ControllerScope;
50
- expires_at: [] | [bigint];
46
+ updated_at: bigint;
47
+ metadata: Array<[string, string]>;
48
+ created_at: bigint;
49
+ scope: ControllerScope;
50
+ expires_at: [] | [bigint];
51
51
  }
52
- export type ControllerScope = {Write: null} | {Admin: null};
52
+ export type ControllerScope = { Write: null } | { Admin: null };
53
53
  export interface DelSatelliteConfig {
54
- updated_at: [] | [bigint];
54
+ updated_at: [] | [bigint];
55
55
  }
56
56
  export interface DeleteControllersArgs {
57
- controllers: Array<Principal>;
57
+ controllers: Array<Principal>;
58
58
  }
59
59
  export interface DepositCyclesArgs {
60
- cycles: bigint;
61
- destination_id: Principal;
60
+ cycles: bigint;
61
+ destination_id: Principal;
62
62
  }
63
63
  export interface GetAnalytics {
64
- to: [] | [bigint];
65
- from: [] | [bigint];
66
- satellite_id: [] | [Principal];
64
+ to: [] | [bigint];
65
+ from: [] | [bigint];
66
+ satellite_id: [] | [Principal];
67
67
  }
68
68
  export interface MemorySize {
69
- stable: bigint;
70
- heap: bigint;
69
+ stable: bigint;
70
+ heap: bigint;
71
71
  }
72
72
  export interface OrbiterSatelliteConfig {
73
- updated_at: bigint;
74
- created_at: bigint;
75
- enabled: boolean;
73
+ updated_at: bigint;
74
+ created_at: bigint;
75
+ enabled: boolean;
76
76
  }
77
77
  export interface PageView {
78
- title: string;
79
- updated_at: bigint;
80
- referrer: [] | [string];
81
- time_zone: string;
82
- session_id: string;
83
- href: string;
84
- created_at: bigint;
85
- satellite_id: Principal;
86
- device: PageViewDevice;
87
- user_agent: [] | [string];
78
+ title: string;
79
+ updated_at: bigint;
80
+ referrer: [] | [string];
81
+ time_zone: string;
82
+ session_id: string;
83
+ href: string;
84
+ created_at: bigint;
85
+ satellite_id: Principal;
86
+ device: PageViewDevice;
87
+ user_agent: [] | [string];
88
88
  }
89
89
  export interface PageViewDevice {
90
- inner_height: number;
91
- inner_width: number;
90
+ inner_height: number;
91
+ inner_width: number;
92
92
  }
93
- export type Result = {Ok: PageView} | {Err: string};
94
- export type Result_1 = {Ok: null} | {Err: Array<[AnalyticKey, string]>};
95
- export type Result_2 = {Ok: TrackEvent} | {Err: string};
93
+ export type Result = { Ok: PageView } | { Err: string };
94
+ export type Result_1 = { Ok: null } | { Err: Array<[AnalyticKey, string]> };
95
+ export type Result_2 = { Ok: TrackEvent } | { Err: string };
96
96
  export interface SetController {
97
- metadata: Array<[string, string]>;
98
- scope: ControllerScope;
99
- expires_at: [] | [bigint];
97
+ metadata: Array<[string, string]>;
98
+ scope: ControllerScope;
99
+ expires_at: [] | [bigint];
100
100
  }
101
101
  export interface SetControllersArgs {
102
- controller: SetController;
103
- controllers: Array<Principal>;
102
+ controller: SetController;
103
+ controllers: Array<Principal>;
104
104
  }
105
105
  export interface SetPageView {
106
- title: string;
107
- updated_at: [] | [bigint];
108
- referrer: [] | [string];
109
- time_zone: string;
110
- session_id: string;
111
- href: string;
112
- satellite_id: Principal;
113
- device: PageViewDevice;
114
- user_agent: [] | [string];
106
+ title: string;
107
+ updated_at: [] | [bigint];
108
+ referrer: [] | [string];
109
+ time_zone: string;
110
+ session_id: string;
111
+ href: string;
112
+ satellite_id: Principal;
113
+ device: PageViewDevice;
114
+ user_agent: [] | [string];
115
115
  }
116
116
  export interface SetSatelliteConfig {
117
- updated_at: [] | [bigint];
118
- enabled: boolean;
117
+ updated_at: [] | [bigint];
118
+ enabled: boolean;
119
119
  }
120
120
  export interface SetTrackEvent {
121
- updated_at: [] | [bigint];
122
- session_id: string;
123
- metadata: [] | [Array<[string, string]>];
124
- name: string;
125
- satellite_id: Principal;
126
- user_agent: [] | [string];
121
+ updated_at: [] | [bigint];
122
+ session_id: string;
123
+ metadata: [] | [Array<[string, string]>];
124
+ name: string;
125
+ satellite_id: Principal;
126
+ user_agent: [] | [string];
127
127
  }
128
128
  export interface TrackEvent {
129
- updated_at: bigint;
130
- session_id: string;
131
- metadata: [] | [Array<[string, string]>];
132
- name: string;
133
- created_at: bigint;
134
- satellite_id: Principal;
129
+ updated_at: bigint;
130
+ session_id: string;
131
+ metadata: [] | [Array<[string, string]>];
132
+ name: string;
133
+ created_at: bigint;
134
+ satellite_id: Principal;
135
135
  }
136
136
  export interface _SERVICE {
137
- del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
138
- del_satellite_config: ActorMethod<[Principal, DelSatelliteConfig], undefined>;
139
- deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
140
- get_page_views: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PageView]>>;
141
- get_page_views_analytics_clients: ActorMethod<[GetAnalytics], AnalyticsClientsPageViews>;
142
- get_page_views_analytics_metrics: ActorMethod<[GetAnalytics], AnalyticsMetricsPageViews>;
143
- get_page_views_analytics_top_10: ActorMethod<[GetAnalytics], AnalyticsTop10PageViews>;
144
- get_track_events: ActorMethod<[GetAnalytics], Array<[AnalyticKey, TrackEvent]>>;
145
- get_track_events_analytics: ActorMethod<[GetAnalytics], AnalyticsTrackEvents>;
146
- list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
147
- list_satellite_configs: ActorMethod<[], Array<[Principal, OrbiterSatelliteConfig]>>;
148
- memory_size: ActorMethod<[], MemorySize>;
149
- set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
150
- set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
151
- set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
152
- set_satellite_configs: ActorMethod<
153
- [Array<[Principal, SetSatelliteConfig]>],
154
- Array<[Principal, OrbiterSatelliteConfig]>
155
- >;
156
- set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent], Result_2>;
157
- set_track_events: ActorMethod<[Array<[AnalyticKey, SetTrackEvent]>], Result_1>;
158
- version: ActorMethod<[], string>;
137
+ del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
138
+ del_satellite_config: ActorMethod<[Principal, DelSatelliteConfig], undefined>;
139
+ deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
140
+ get_page_views: ActorMethod<[GetAnalytics], Array<[AnalyticKey, PageView]>>;
141
+ get_page_views_analytics_clients: ActorMethod<[GetAnalytics], AnalyticsClientsPageViews>;
142
+ get_page_views_analytics_metrics: ActorMethod<[GetAnalytics], AnalyticsMetricsPageViews>;
143
+ get_page_views_analytics_top_10: ActorMethod<[GetAnalytics], AnalyticsTop10PageViews>;
144
+ get_track_events: ActorMethod<[GetAnalytics], Array<[AnalyticKey, TrackEvent]>>;
145
+ get_track_events_analytics: ActorMethod<[GetAnalytics], AnalyticsTrackEvents>;
146
+ list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
147
+ list_satellite_configs: ActorMethod<[], Array<[Principal, OrbiterSatelliteConfig]>>;
148
+ memory_size: ActorMethod<[], MemorySize>;
149
+ set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
150
+ set_page_view: ActorMethod<[AnalyticKey, SetPageView], Result>;
151
+ set_page_views: ActorMethod<[Array<[AnalyticKey, SetPageView]>], Result_1>;
152
+ set_satellite_configs: ActorMethod<
153
+ [Array<[Principal, SetSatelliteConfig]>],
154
+ Array<[Principal, OrbiterSatelliteConfig]>
155
+ >;
156
+ set_track_event: ActorMethod<[AnalyticKey, SetTrackEvent], Result_2>;
157
+ set_track_events: ActorMethod<[Array<[AnalyticKey, SetTrackEvent]>], Result_1>;
158
+ version: ActorMethod<[], string>;
159
159
  }
160
160
  export declare const idlFactory: IDL.InterfaceFactory;
161
- export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
161
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];