@junobuild/core-peer 1.0.3 → 1.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.
Files changed (53) hide show
  1. package/dist/browser/index.js +1 -1
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/node/index.mjs +1 -1
  4. package/dist/node/index.mjs.map +4 -4
  5. package/dist/types/api/actor.api.d.ts +1 -1
  6. package/dist/types/api/storage.api.d.ts +4 -4
  7. package/dist/types/services/storage.services.d.ts +3 -3
  8. package/dist/types/stores/actor.store.d.ts +1 -2
  9. package/dist/types/types/storage.types.d.ts +2 -2
  10. package/dist/types/utils/data.utils.d.ts +2 -2
  11. package/dist/types/utils/doc.utils.d.ts +4 -4
  12. package/dist/types/utils/list.utils.d.ts +2 -2
  13. package/package.json +6 -5
  14. package/dist/declarations/deprecated/console-0-0-14.did.d.ts +0 -267
  15. package/dist/declarations/deprecated/console-0-0-14.factory.did.js +0 -285
  16. package/dist/declarations/deprecated/console-0-0-8-patch1.did.d.ts +0 -75
  17. package/dist/declarations/deprecated/console-0-0-8-patch1.factory.did.js +0 -80
  18. package/dist/declarations/deprecated/mission_control-0-0-13.did.d.ts +0 -246
  19. package/dist/declarations/deprecated/mission_control-0-0-13.factory.did.js +0 -280
  20. package/dist/declarations/deprecated/mission_control-0-0-14.did.d.ts +0 -241
  21. package/dist/declarations/deprecated/mission_control-0-0-14.factory.did.js +0 -258
  22. package/dist/declarations/deprecated/mission_control-0-0-4.did.d.ts +0 -80
  23. package/dist/declarations/deprecated/mission_control-0-0-4.factory.did.js +0 -99
  24. package/dist/declarations/deprecated/observatory-0-0-9.did.d.ts +0 -70
  25. package/dist/declarations/deprecated/observatory-0-0-9.factory.did.js +0 -76
  26. package/dist/declarations/deprecated/orbiter-0-0-6.did.d.ts +0 -161
  27. package/dist/declarations/deprecated/orbiter-0-0-6.factory.did.js +0 -192
  28. package/dist/declarations/deprecated/orbiter-0-0-7.did.d.ts +0 -166
  29. package/dist/declarations/deprecated/orbiter-0-0-7.factory.did.js +0 -197
  30. package/dist/declarations/deprecated/orbiter-0-0-8.did.d.ts +0 -245
  31. package/dist/declarations/deprecated/orbiter-0-0-8.factory.did.js +0 -287
  32. package/dist/declarations/deprecated/orbiter-0-2-0.did.d.ts +0 -277
  33. package/dist/declarations/deprecated/orbiter-0-2-0.factory.did.js +0 -319
  34. package/dist/declarations/deprecated/satellite-0-0-16.did.d.ts +0 -240
  35. package/dist/declarations/deprecated/satellite-0-0-16.factory.did.js +0 -264
  36. package/dist/declarations/deprecated/satellite-0-0-17.did.d.ts +0 -254
  37. package/dist/declarations/deprecated/satellite-0-0-17.factory.did.js +0 -281
  38. package/dist/declarations/deprecated/satellite-0-0-21.did.d.ts +0 -299
  39. package/dist/declarations/deprecated/satellite-0-0-21.factory.did.js +0 -333
  40. package/dist/declarations/deprecated/satellite-0-0-22.did.d.ts +0 -290
  41. package/dist/declarations/deprecated/satellite-0-0-22.factory.did.js +0 -318
  42. package/dist/declarations/deprecated/satellite-0-0-8.did.d.ts +0 -183
  43. package/dist/declarations/deprecated/satellite-0-0-8.factory.did.js +0 -194
  44. package/dist/declarations/deprecated/satellite-0-0-9.did.d.ts +0 -199
  45. package/dist/declarations/deprecated/satellite-0-0-9.factory.did.js +0 -213
  46. package/dist/declarations/satellite/satellite.did.d.ts +0 -396
  47. package/dist/declarations/satellite/satellite.factory.certified.did.js +0 -419
  48. package/dist/declarations/satellite/satellite.factory.did.js +0 -419
  49. package/dist/declarations/satellite/satellite.factory.did.mjs +0 -419
  50. package/dist/declarations/sputnik/sputnik.did.d.ts +0 -396
  51. package/dist/declarations/sputnik/sputnik.factory.certified.did.js +0 -419
  52. package/dist/declarations/sputnik/sputnik.factory.did.js +0 -419
  53. package/dist/types/api/_actor.factory.d.ts +0 -5
@@ -1,285 +0,0 @@
1
- // @ts-ignore
2
- export const idlFactory = ({IDL}) => {
3
- const Tokens = IDL.Record({e8s: IDL.Nat64});
4
- const AssertMissionControlCenterArgs = IDL.Record({
5
- mission_control_id: IDL.Principal,
6
- user: IDL.Principal
7
- });
8
- const CommitBatch = IDL.Record({
9
- batch_id: IDL.Nat,
10
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
11
- chunk_ids: IDL.Vec(IDL.Nat)
12
- });
13
- const CommitProposal = IDL.Record({
14
- sha256: IDL.Vec(IDL.Nat8),
15
- proposal_id: IDL.Nat
16
- });
17
- const CreateCanisterArgs = IDL.Record({
18
- block_index: IDL.Opt(IDL.Nat64),
19
- subnet_id: IDL.Opt(IDL.Principal),
20
- user: IDL.Principal
21
- });
22
- const DeleteControllersArgs = IDL.Record({
23
- controllers: IDL.Vec(IDL.Principal)
24
- });
25
- const DeleteProposalAssets = IDL.Record({
26
- proposal_ids: IDL.Vec(IDL.Nat)
27
- });
28
- const StorageConfigIFrame = IDL.Variant({
29
- Deny: IDL.Null,
30
- AllowAny: IDL.Null,
31
- SameOrigin: IDL.Null
32
- });
33
- const ConfigMaxMemorySize = IDL.Record({
34
- stable: IDL.Opt(IDL.Nat64),
35
- heap: IDL.Opt(IDL.Nat64)
36
- });
37
- const StorageConfigRawAccess = IDL.Variant({
38
- Deny: IDL.Null,
39
- Allow: IDL.Null
40
- });
41
- const StorageConfigRedirect = IDL.Record({
42
- status_code: IDL.Nat16,
43
- location: IDL.Text
44
- });
45
- const StorageConfig = IDL.Record({
46
- iframe: IDL.Opt(StorageConfigIFrame),
47
- rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
48
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
49
- max_memory_size: IDL.Opt(ConfigMaxMemorySize),
50
- raw_access: IDL.Opt(StorageConfigRawAccess),
51
- redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
52
- });
53
- const Config = IDL.Record({storage: StorageConfig});
54
- const GetCreateCanisterFeeArgs = IDL.Record({user: IDL.Principal});
55
- const ProposalStatus = IDL.Variant({
56
- Initialized: IDL.Null,
57
- Failed: IDL.Null,
58
- Open: IDL.Null,
59
- Rejected: IDL.Null,
60
- Executed: IDL.Null,
61
- Accepted: IDL.Null
62
- });
63
- const AssetsUpgradeOptions = IDL.Record({
64
- clear_existing_assets: IDL.Opt(IDL.Bool)
65
- });
66
- const SegmentsDeploymentOptions = IDL.Record({
67
- orbiter: IDL.Opt(IDL.Text),
68
- mission_control_version: IDL.Opt(IDL.Text),
69
- satellite_version: IDL.Opt(IDL.Text)
70
- });
71
- const ProposalType = IDL.Variant({
72
- AssetsUpgrade: AssetsUpgradeOptions,
73
- SegmentsDeployment: SegmentsDeploymentOptions
74
- });
75
- const Proposal = IDL.Record({
76
- status: ProposalStatus,
77
- updated_at: IDL.Nat64,
78
- sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
79
- executed_at: IDL.Opt(IDL.Nat64),
80
- owner: IDL.Principal,
81
- created_at: IDL.Nat64,
82
- version: IDL.Opt(IDL.Nat64),
83
- proposal_type: ProposalType
84
- });
85
- const MissionControl = IDL.Record({
86
- updated_at: IDL.Nat64,
87
- credits: Tokens,
88
- mission_control_id: IDL.Opt(IDL.Principal),
89
- owner: IDL.Principal,
90
- created_at: IDL.Nat64
91
- });
92
- const HttpRequest = IDL.Record({
93
- url: IDL.Text,
94
- method: IDL.Text,
95
- body: IDL.Vec(IDL.Nat8),
96
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
97
- certificate_version: IDL.Opt(IDL.Nat16)
98
- });
99
- const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
100
- const StreamingCallbackToken = IDL.Record({
101
- memory: Memory,
102
- token: IDL.Opt(IDL.Text),
103
- sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
104
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
105
- index: IDL.Nat64,
106
- encoding_type: IDL.Text,
107
- full_path: IDL.Text
108
- });
109
- const StreamingStrategy = IDL.Variant({
110
- Callback: IDL.Record({
111
- token: StreamingCallbackToken,
112
- callback: IDL.Func([], [], ['query'])
113
- })
114
- });
115
- const HttpResponse = IDL.Record({
116
- body: IDL.Vec(IDL.Nat8),
117
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
118
- streaming_strategy: IDL.Opt(StreamingStrategy),
119
- status_code: IDL.Nat16
120
- });
121
- const StreamingCallbackHttpResponse = IDL.Record({
122
- token: IDL.Opt(StreamingCallbackToken),
123
- body: IDL.Vec(IDL.Nat8)
124
- });
125
- const InitAssetKey = IDL.Record({
126
- token: IDL.Opt(IDL.Text),
127
- collection: IDL.Text,
128
- name: IDL.Text,
129
- description: IDL.Opt(IDL.Text),
130
- encoding_type: IDL.Opt(IDL.Text),
131
- full_path: IDL.Text
132
- });
133
- const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
134
- const ListOrderField = IDL.Variant({
135
- UpdatedAt: IDL.Null,
136
- Keys: IDL.Null,
137
- CreatedAt: IDL.Null
138
- });
139
- const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
140
- const TimestampMatcher = IDL.Variant({
141
- Equal: IDL.Nat64,
142
- Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
143
- GreaterThan: IDL.Nat64,
144
- LessThan: IDL.Nat64
145
- });
146
- const ListMatcher = IDL.Record({
147
- key: IDL.Opt(IDL.Text),
148
- updated_at: IDL.Opt(TimestampMatcher),
149
- description: IDL.Opt(IDL.Text),
150
- created_at: IDL.Opt(TimestampMatcher)
151
- });
152
- const ListPaginate = IDL.Record({
153
- start_after: IDL.Opt(IDL.Text),
154
- limit: IDL.Opt(IDL.Nat64)
155
- });
156
- const ListParams = IDL.Record({
157
- order: IDL.Opt(ListOrder),
158
- owner: IDL.Opt(IDL.Principal),
159
- matcher: IDL.Opt(ListMatcher),
160
- paginate: IDL.Opt(ListPaginate)
161
- });
162
- const AssetKey = IDL.Record({
163
- token: IDL.Opt(IDL.Text),
164
- collection: IDL.Text,
165
- owner: IDL.Principal,
166
- name: IDL.Text,
167
- description: IDL.Opt(IDL.Text),
168
- full_path: IDL.Text
169
- });
170
- const AssetEncodingNoContent = IDL.Record({
171
- modified: IDL.Nat64,
172
- sha256: IDL.Vec(IDL.Nat8),
173
- total_length: IDL.Nat
174
- });
175
- const AssetNoContent = IDL.Record({
176
- key: AssetKey,
177
- updated_at: IDL.Nat64,
178
- encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
179
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
180
- created_at: IDL.Nat64,
181
- version: IDL.Opt(IDL.Nat64)
182
- });
183
- const ListResults = IDL.Record({
184
- matches_pages: IDL.Opt(IDL.Nat64),
185
- matches_length: IDL.Nat64,
186
- items_page: IDL.Opt(IDL.Nat64),
187
- items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
188
- items_length: IDL.Nat64
189
- });
190
- const CustomDomain = IDL.Record({
191
- updated_at: IDL.Nat64,
192
- created_at: IDL.Nat64,
193
- version: IDL.Opt(IDL.Nat64),
194
- bn_id: IDL.Opt(IDL.Text)
195
- });
196
- const PaymentStatus = IDL.Variant({
197
- Refunded: IDL.Null,
198
- Acknowledged: IDL.Null,
199
- Completed: IDL.Null
200
- });
201
- const Payment = IDL.Record({
202
- status: PaymentStatus,
203
- updated_at: IDL.Nat64,
204
- block_index_payment: IDL.Nat64,
205
- mission_control_id: IDL.Opt(IDL.Principal),
206
- created_at: IDL.Nat64,
207
- block_index_refunded: IDL.Opt(IDL.Nat64)
208
- });
209
- const ControllerScope = IDL.Variant({
210
- Write: IDL.Null,
211
- Admin: IDL.Null
212
- });
213
- const SetController = IDL.Record({
214
- metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
215
- scope: ControllerScope,
216
- expires_at: IDL.Opt(IDL.Nat64)
217
- });
218
- const SetControllersArgs = IDL.Record({
219
- controller: SetController,
220
- controllers: IDL.Vec(IDL.Principal)
221
- });
222
- const SegmentType = IDL.Variant({
223
- Orbiter: IDL.Null,
224
- MissionControl: IDL.Null,
225
- Satellite: IDL.Null
226
- });
227
- const RateConfig = IDL.Record({
228
- max_tokens: IDL.Nat64,
229
- time_per_token_ns: IDL.Nat64
230
- });
231
- const UploadChunk = IDL.Record({
232
- content: IDL.Vec(IDL.Nat8),
233
- batch_id: IDL.Nat,
234
- order_id: IDL.Opt(IDL.Nat)
235
- });
236
- const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
237
- return IDL.Service({
238
- add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
239
- add_invitation_code: IDL.Func([IDL.Text], [], []),
240
- assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], ['query']),
241
- commit_asset_upload: IDL.Func([CommitBatch], [], []),
242
- commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
243
- create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
244
- create_satellite: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
245
- del_controllers: IDL.Func([DeleteControllersArgs], [], []),
246
- del_custom_domain: IDL.Func([IDL.Text], [], []),
247
- delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
248
- get_config: IDL.Func([], [Config], []),
249
- get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
250
- get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
251
- get_credits: IDL.Func([], [Tokens], ['query']),
252
- get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']),
253
- get_storage_config: IDL.Func([], [StorageConfig], ['query']),
254
- get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
255
- http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
256
- http_request_streaming_callback: IDL.Func(
257
- [StreamingCallbackToken],
258
- [StreamingCallbackHttpResponse],
259
- ['query']
260
- ),
261
- init_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
262
- init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
263
- init_user_mission_control_center: IDL.Func([], [MissionControl], []),
264
- list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
265
- list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
266
- list_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, Payment))], ['query']),
267
- list_user_mission_control_centers: IDL.Func(
268
- [],
269
- [IDL.Vec(IDL.Tuple(IDL.Principal, MissionControl))],
270
- ['query']
271
- ),
272
- set_controllers: IDL.Func([SetControllersArgs], [], []),
273
- set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
274
- set_fee: IDL.Func([SegmentType, Tokens], [], []),
275
- set_storage_config: IDL.Func([StorageConfig], [], []),
276
- submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
277
- update_rate_config: IDL.Func([SegmentType, RateConfig], [], []),
278
- upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
279
- version: IDL.Func([], [IDL.Text], ['query'])
280
- });
281
- };
282
- // @ts-ignore
283
- export const init = ({IDL}) => {
284
- return [];
285
- };
@@ -1,75 +0,0 @@
1
- import type {ActorMethod} from '@dfinity/agent';
2
- import type {IDL} from '@dfinity/candid';
3
- import type {Principal} from '@dfinity/principal';
4
-
5
- export interface AssertMissionControlCenterArgs {
6
- mission_control_id: Principal;
7
- user: Principal;
8
- }
9
- export type ControllerScope = {Write: null} | {Admin: null};
10
- export interface CreateCanisterArgs {
11
- block_index: [] | [bigint];
12
- user: Principal;
13
- }
14
- export interface DeleteControllersArgs {
15
- controllers: Array<Principal>;
16
- }
17
- export interface GetCreateCanisterFeeArgs {
18
- user: Principal;
19
- }
20
- export interface LoadRelease {
21
- total: bigint;
22
- chunks: bigint;
23
- }
24
- export interface MissionControl {
25
- updated_at: bigint;
26
- credits: Tokens;
27
- mission_control_id: [] | [Principal];
28
- owner: Principal;
29
- created_at: bigint;
30
- }
31
- export interface RateConfig {
32
- max_tokens: bigint;
33
- time_per_token_ns: bigint;
34
- }
35
- export interface ReleasesVersion {
36
- satellite: [] | [string];
37
- orbiter: [] | [string];
38
- mission_control: [] | [string];
39
- }
40
- export type Segment = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
41
- export interface SetController {
42
- metadata: Array<[string, string]>;
43
- scope: ControllerScope;
44
- expires_at: [] | [bigint];
45
- }
46
- export interface SetControllersArgs {
47
- controller: SetController;
48
- controllers: Array<Principal>;
49
- }
50
- export interface Tokens {
51
- e8s: bigint;
52
- }
53
- export interface _SERVICE {
54
- add_credits: ActorMethod<[Principal, Tokens], undefined>;
55
- add_invitation_code: ActorMethod<[string], undefined>;
56
- assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
57
- create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
58
- create_satellite: ActorMethod<[CreateCanisterArgs], Principal>;
59
- del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
60
- get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
61
- get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
62
- get_credits: ActorMethod<[], Tokens>;
63
- get_releases_version: ActorMethod<[], ReleasesVersion>;
64
- get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
65
- init_user_mission_control_center: ActorMethod<[], MissionControl>;
66
- list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
67
- load_release: ActorMethod<[Segment, Uint8Array | number[], string], LoadRelease>;
68
- reset_release: ActorMethod<[Segment], undefined>;
69
- set_controllers: ActorMethod<[SetControllersArgs], undefined>;
70
- set_fee: ActorMethod<[Segment, Tokens], undefined>;
71
- update_rate_config: ActorMethod<[Segment, RateConfig], undefined>;
72
- version: ActorMethod<[], string>;
73
- }
74
- export declare const idlFactory: IDL.InterfaceFactory;
75
- export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
@@ -1,80 +0,0 @@
1
- // @ts-ignore
2
- export const idlFactory = ({IDL}) => {
3
- const Tokens = IDL.Record({e8s: IDL.Nat64});
4
- const AssertMissionControlCenterArgs = IDL.Record({
5
- mission_control_id: IDL.Principal,
6
- user: IDL.Principal
7
- });
8
- const CreateCanisterArgs = IDL.Record({
9
- block_index: IDL.Opt(IDL.Nat64),
10
- user: IDL.Principal
11
- });
12
- const DeleteControllersArgs = IDL.Record({
13
- controllers: IDL.Vec(IDL.Principal)
14
- });
15
- const GetCreateCanisterFeeArgs = IDL.Record({user: IDL.Principal});
16
- const ReleasesVersion = IDL.Record({
17
- satellite: IDL.Opt(IDL.Text),
18
- orbiter: IDL.Opt(IDL.Text),
19
- mission_control: IDL.Opt(IDL.Text)
20
- });
21
- const MissionControl = IDL.Record({
22
- updated_at: IDL.Nat64,
23
- credits: Tokens,
24
- mission_control_id: IDL.Opt(IDL.Principal),
25
- owner: IDL.Principal,
26
- created_at: IDL.Nat64
27
- });
28
- const Segment = IDL.Variant({
29
- Orbiter: IDL.Null,
30
- MissionControl: IDL.Null,
31
- Satellite: IDL.Null
32
- });
33
- const LoadRelease = IDL.Record({total: IDL.Nat64, chunks: IDL.Nat64});
34
- const ControllerScope = IDL.Variant({
35
- Write: IDL.Null,
36
- Admin: IDL.Null
37
- });
38
- const SetController = IDL.Record({
39
- metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
40
- scope: ControllerScope,
41
- expires_at: IDL.Opt(IDL.Nat64)
42
- });
43
- const SetControllersArgs = IDL.Record({
44
- controller: SetController,
45
- controllers: IDL.Vec(IDL.Principal)
46
- });
47
- const RateConfig = IDL.Record({
48
- max_tokens: IDL.Nat64,
49
- time_per_token_ns: IDL.Nat64
50
- });
51
- return IDL.Service({
52
- add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
53
- add_invitation_code: IDL.Func([IDL.Text], [], []),
54
- assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], ['query']),
55
- create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
56
- create_satellite: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
57
- del_controllers: IDL.Func([DeleteControllersArgs], [], []),
58
- get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
59
- get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
60
- get_credits: IDL.Func([], [Tokens], ['query']),
61
- get_releases_version: IDL.Func([], [ReleasesVersion], ['query']),
62
- get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
63
- init_user_mission_control_center: IDL.Func([], [MissionControl], []),
64
- list_user_mission_control_centers: IDL.Func(
65
- [],
66
- [IDL.Vec(IDL.Tuple(IDL.Principal, MissionControl))],
67
- ['query']
68
- ),
69
- load_release: IDL.Func([Segment, IDL.Vec(IDL.Nat8), IDL.Text], [LoadRelease], []),
70
- reset_release: IDL.Func([Segment], [], []),
71
- set_controllers: IDL.Func([SetControllersArgs], [], []),
72
- set_fee: IDL.Func([Segment, Tokens], [], []),
73
- update_rate_config: IDL.Func([Segment, RateConfig], [], []),
74
- version: IDL.Func([], [IDL.Text], ['query'])
75
- });
76
- };
77
- // @ts-ignore
78
- export const init = ({IDL}) => {
79
- return [];
80
- };
@@ -1,246 +0,0 @@
1
- import type {ActorMethod} from '@dfinity/agent';
2
- import type {IDL} from '@dfinity/candid';
3
- import type {Principal} from '@dfinity/principal';
4
-
5
- export interface Account {
6
- owner: Principal;
7
- subaccount: [] | [Uint8Array | number[]];
8
- }
9
- export type CanisterStatusType = {stopped: null} | {stopping: null} | {running: null};
10
- export interface Controller {
11
- updated_at: bigint;
12
- metadata: Array<[string, string]>;
13
- created_at: bigint;
14
- scope: ControllerScope;
15
- expires_at: [] | [bigint];
16
- }
17
- export type ControllerScope = {Write: null} | {Admin: null};
18
- export interface CreateCanisterConfig {
19
- subnet_id: [] | [Principal];
20
- name: [] | [string];
21
- }
22
- export interface CronJobStatusesConfig {
23
- enabled: boolean;
24
- cycles_threshold: [] | [bigint];
25
- }
26
- export interface CyclesBalance {
27
- timestamp: bigint;
28
- amount: bigint;
29
- }
30
- export interface CyclesMonitoring {
31
- strategy: [] | [CyclesMonitoringStrategy];
32
- enabled: boolean;
33
- }
34
- export interface CyclesMonitoringStartConfig {
35
- orbiters_strategy: [] | [SegmentsMonitoringStrategy];
36
- mission_control_strategy: [] | [CyclesMonitoringStrategy];
37
- satellites_strategy: [] | [SegmentsMonitoringStrategy];
38
- }
39
- export interface CyclesMonitoringStatus {
40
- monitored_ids: Array<Principal>;
41
- running: boolean;
42
- }
43
- export interface CyclesMonitoringStopConfig {
44
- satellite_ids: [] | [Array<Principal>];
45
- try_mission_control: [] | [boolean];
46
- orbiter_ids: [] | [Array<Principal>];
47
- }
48
- export type CyclesMonitoringStrategy = {BelowThreshold: CyclesThreshold};
49
- export interface CyclesThreshold {
50
- fund_cycles: bigint;
51
- min_cycles: bigint;
52
- }
53
- export interface DepositCyclesArgs {
54
- cycles: bigint;
55
- destination_id: Principal;
56
- }
57
- export interface GetMonitoringHistory {
58
- to: [] | [bigint];
59
- from: [] | [bigint];
60
- segment_id: Principal;
61
- }
62
- export interface MissionControlSettings {
63
- updated_at: bigint;
64
- created_at: bigint;
65
- monitoring: [] | [Monitoring];
66
- }
67
- export interface Monitoring {
68
- cycles: [] | [CyclesMonitoring];
69
- }
70
- export interface MonitoringHistory {
71
- cycles: [] | [MonitoringHistoryCycles];
72
- }
73
- export interface MonitoringHistoryCycles {
74
- deposited_cycles: [] | [CyclesBalance];
75
- cycles: CyclesBalance;
76
- }
77
- export interface MonitoringHistoryKey {
78
- segment_id: Principal;
79
- created_at: bigint;
80
- }
81
- export interface MonitoringStartConfig {
82
- cycles_config: [] | [CyclesMonitoringStartConfig];
83
- }
84
- export interface MonitoringStatus {
85
- cycles: [] | [CyclesMonitoringStatus];
86
- }
87
- export interface MonitoringStopConfig {
88
- cycles_config: [] | [CyclesMonitoringStopConfig];
89
- }
90
- export interface Orbiter {
91
- updated_at: bigint;
92
- orbiter_id: Principal;
93
- metadata: Array<[string, string]>;
94
- created_at: bigint;
95
- settings: [] | [Settings];
96
- }
97
- export type Result = {Ok: bigint} | {Err: TransferError};
98
- export type Result_1 = {Ok: bigint} | {Err: TransferError_1};
99
- export type Result_2 = {Ok: SegmentStatus} | {Err: string};
100
- export interface Satellite {
101
- updated_at: bigint;
102
- metadata: Array<[string, string]>;
103
- created_at: bigint;
104
- satellite_id: Principal;
105
- settings: [] | [Settings];
106
- }
107
- export interface SegmentCanisterSettings {
108
- freezing_threshold: bigint;
109
- controllers: Array<Principal>;
110
- memory_allocation: bigint;
111
- compute_allocation: bigint;
112
- }
113
- export interface SegmentCanisterStatus {
114
- status: CanisterStatusType;
115
- memory_size: bigint;
116
- cycles: bigint;
117
- settings: SegmentCanisterSettings;
118
- idle_cycles_burned_per_day: bigint;
119
- module_hash: [] | [Uint8Array | number[]];
120
- }
121
- export interface SegmentStatus {
122
- id: Principal;
123
- status: SegmentCanisterStatus;
124
- metadata: [] | [Array<[string, string]>];
125
- status_at: bigint;
126
- }
127
- export interface SegmentsMonitoringStrategy {
128
- ids: Array<Principal>;
129
- strategy: CyclesMonitoringStrategy;
130
- }
131
- export interface SegmentsStatuses {
132
- orbiters: [] | [Array<Result_2>];
133
- satellites: [] | [Array<Result_2>];
134
- mission_control: Result_2;
135
- }
136
- export interface SetController {
137
- metadata: Array<[string, string]>;
138
- scope: ControllerScope;
139
- expires_at: [] | [bigint];
140
- }
141
- export interface Settings {
142
- monitoring: [] | [Monitoring];
143
- }
144
- export interface StatusesArgs {
145
- mission_control_cycles_threshold: [] | [bigint];
146
- orbiters: Array<[Principal, CronJobStatusesConfig]>;
147
- satellites: Array<[Principal, CronJobStatusesConfig]>;
148
- cycles_threshold: [] | [bigint];
149
- }
150
- export interface Timestamp {
151
- timestamp_nanos: bigint;
152
- }
153
- export interface Tokens {
154
- e8s: bigint;
155
- }
156
- export interface TransferArg {
157
- to: Account;
158
- fee: [] | [bigint];
159
- memo: [] | [Uint8Array | number[]];
160
- from_subaccount: [] | [Uint8Array | number[]];
161
- created_at_time: [] | [bigint];
162
- amount: bigint;
163
- }
164
- export interface TransferArgs {
165
- to: Uint8Array | number[];
166
- fee: Tokens;
167
- memo: bigint;
168
- from_subaccount: [] | [Uint8Array | number[]];
169
- created_at_time: [] | [Timestamp];
170
- amount: Tokens;
171
- }
172
- export type TransferError =
173
- | {
174
- TxTooOld: {allowed_window_nanos: bigint};
175
- }
176
- | {BadFee: {expected_fee: Tokens}}
177
- | {TxDuplicate: {duplicate_of: bigint}}
178
- | {TxCreatedInFuture: null}
179
- | {InsufficientFunds: {balance: Tokens}};
180
- export type TransferError_1 =
181
- | {
182
- GenericError: {message: string; error_code: bigint};
183
- }
184
- | {TemporarilyUnavailable: null}
185
- | {BadBurn: {min_burn_amount: bigint}}
186
- | {Duplicate: {duplicate_of: bigint}}
187
- | {BadFee: {expected_fee: bigint}}
188
- | {CreatedInFuture: {ledger_time: bigint}}
189
- | {TooOld: null}
190
- | {InsufficientFunds: {balance: bigint}};
191
- export interface _SERVICE {
192
- add_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
193
- add_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
194
- create_orbiter: ActorMethod<[[] | [string]], Orbiter>;
195
- create_orbiter_with_config: ActorMethod<[CreateCanisterConfig], Orbiter>;
196
- create_satellite: ActorMethod<[string], Satellite>;
197
- create_satellite_with_config: ActorMethod<[CreateCanisterConfig], Satellite>;
198
- del_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
199
- del_orbiter: ActorMethod<[Principal, bigint], undefined>;
200
- del_orbiters_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
201
- del_satellite: ActorMethod<[Principal, bigint], undefined>;
202
- del_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
203
- deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
204
- get_monitoring_history: ActorMethod<
205
- [GetMonitoringHistory],
206
- Array<[MonitoringHistoryKey, MonitoringHistory]>
207
- >;
208
- get_monitoring_status: ActorMethod<[], MonitoringStatus>;
209
- get_settings: ActorMethod<[], [] | [MissionControlSettings]>;
210
- get_user: ActorMethod<[], Principal>;
211
- icp_transfer: ActorMethod<[TransferArgs], Result>;
212
- icrc_transfer: ActorMethod<[Principal, TransferArg], Result_1>;
213
- list_mission_control_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
214
- list_mission_control_statuses: ActorMethod<[], Array<[bigint, Result_2]>>;
215
- list_orbiter_statuses: ActorMethod<[Principal], [] | [Array<[bigint, Result_2]>]>;
216
- list_orbiters: ActorMethod<[], Array<[Principal, Orbiter]>>;
217
- list_satellite_statuses: ActorMethod<[Principal], [] | [Array<[bigint, Result_2]>]>;
218
- list_satellites: ActorMethod<[], Array<[Principal, Satellite]>>;
219
- remove_mission_control_controllers: ActorMethod<[Array<Principal>], undefined>;
220
- remove_satellites_controllers: ActorMethod<[Array<Principal>, Array<Principal>], undefined>;
221
- set_metadata: ActorMethod<[Array<[string, string]>], undefined>;
222
- set_mission_control_controllers: ActorMethod<[Array<Principal>, SetController], undefined>;
223
- set_orbiter: ActorMethod<[Principal, [] | [string]], Orbiter>;
224
- set_orbiter_metadata: ActorMethod<[Principal, Array<[string, string]>], Orbiter>;
225
- set_orbiters_controllers: ActorMethod<
226
- [Array<Principal>, Array<Principal>, SetController],
227
- undefined
228
- >;
229
- set_satellite: ActorMethod<[Principal, [] | [string]], Satellite>;
230
- set_satellite_metadata: ActorMethod<[Principal, Array<[string, string]>], Satellite>;
231
- set_satellites_controllers: ActorMethod<
232
- [Array<Principal>, Array<Principal>, SetController],
233
- undefined
234
- >;
235
- start_monitoring: ActorMethod<[], undefined>;
236
- status: ActorMethod<[StatusesArgs], SegmentsStatuses>;
237
- stop_monitoring: ActorMethod<[], undefined>;
238
- top_up: ActorMethod<[Principal, Tokens], undefined>;
239
- unset_orbiter: ActorMethod<[Principal], undefined>;
240
- unset_satellite: ActorMethod<[Principal], undefined>;
241
- update_and_start_monitoring: ActorMethod<[MonitoringStartConfig], undefined>;
242
- update_and_stop_monitoring: ActorMethod<[MonitoringStopConfig], undefined>;
243
- version: ActorMethod<[], string>;
244
- }
245
- export declare const idlFactory: IDL.InterfaceFactory;
246
- export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];