@junobuild/admin 1.0.0 → 2.0.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 (63) 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/ic.api.d.ts +1 -1
  6. package/dist/types/api/mission-control.api.d.ts +4 -5
  7. package/dist/types/api/orbiter.api.d.ts +3 -4
  8. package/dist/types/api/satellite.api.d.ts +23 -24
  9. package/dist/types/constants/rules.constants.d.ts +9 -9
  10. package/dist/types/index.d.ts +0 -1
  11. package/dist/types/services/mission-control.controllers.services.d.ts +2 -3
  12. package/dist/types/services/mission-control.upgrade.services.d.ts +1 -1
  13. package/dist/types/services/mission-control.version.services.d.ts +1 -1
  14. package/dist/types/services/module.upgrade.services.d.ts +1 -1
  15. package/dist/types/services/orbiter.controllers.services.d.ts +2 -3
  16. package/dist/types/services/orbiter.memory.services.d.ts +2 -3
  17. package/dist/types/services/orbiter.upgrade.services.d.ts +1 -1
  18. package/dist/types/services/orbiter.version.services.d.ts +1 -1
  19. package/dist/types/services/package.services.d.ts +1 -1
  20. package/dist/types/services/satellite.assets.services.d.ts +1 -1
  21. package/dist/types/services/satellite.config.services.d.ts +1 -1
  22. package/dist/types/services/satellite.controllers.services.d.ts +4 -5
  23. package/dist/types/services/satellite.docs.services.d.ts +1 -1
  24. package/dist/types/services/satellite.domains.services.d.ts +1 -1
  25. package/dist/types/services/satellite.memory.services.d.ts +2 -3
  26. package/dist/types/services/satellite.rules.services.d.ts +1 -1
  27. package/dist/types/services/satellite.upgrade.services.d.ts +1 -1
  28. package/dist/types/services/satellite.version.services.d.ts +1 -1
  29. package/dist/types/types/upgrade.d.ts +1 -1
  30. package/dist/types/utils/config.utils.d.ts +7 -7
  31. package/dist/types/utils/controllers.utils.d.ts +2 -2
  32. package/dist/types/utils/idl.utils.d.ts +2 -2
  33. package/dist/types/utils/memory.utils.d.ts +3 -3
  34. package/dist/types/utils/rule.utils.d.ts +8 -8
  35. package/package.json +3 -2
  36. package/dist/declarations/mission_control/mission_control-deprecated-version.did.d.ts +0 -231
  37. package/dist/declarations/mission_control/mission_control-deprecated-version.factory.did.js +0 -247
  38. package/dist/declarations/mission_control/mission_control.did.d.ts +0 -241
  39. package/dist/declarations/mission_control/mission_control.factory.certified.did.js +0 -259
  40. package/dist/declarations/mission_control/mission_control.factory.did.js +0 -259
  41. package/dist/declarations/orbiter/orbiter-deprecated-version.did.d.ts +0 -229
  42. package/dist/declarations/orbiter/orbiter-deprecated-version.factory.did.js +0 -271
  43. package/dist/declarations/orbiter/orbiter.did.d.ts +0 -277
  44. package/dist/declarations/orbiter/orbiter.factory.certified.did.js +0 -304
  45. package/dist/declarations/orbiter/orbiter.factory.did.js +0 -320
  46. package/dist/declarations/orbiter/orbiter.factory.did.mjs +0 -320
  47. package/dist/declarations/satellite/satellite-deprecated-no-scope.did.d.ts +0 -183
  48. package/dist/declarations/satellite/satellite-deprecated-no-scope.factory.did.js +0 -194
  49. package/dist/declarations/satellite/satellite-deprecated-no-scope.factory.did.mjs +0 -192
  50. package/dist/declarations/satellite/satellite-deprecated-version.did.d.ts +0 -291
  51. package/dist/declarations/satellite/satellite-deprecated-version.factory.did.js +0 -319
  52. package/dist/declarations/satellite/satellite-deprecated.did.d.ts +0 -182
  53. package/dist/declarations/satellite/satellite-deprecated.factory.did.js +0 -191
  54. package/dist/declarations/satellite/satellite-deprecated.factory.did.mjs +0 -191
  55. package/dist/declarations/satellite/satellite.did.d.ts +0 -396
  56. package/dist/declarations/satellite/satellite.factory.certified.did.js +0 -419
  57. package/dist/declarations/satellite/satellite.factory.did.js +0 -419
  58. package/dist/declarations/satellite/satellite.factory.did.mjs +0 -419
  59. package/dist/types/api/_actor.api.d.ts +0 -34
  60. package/dist/types/api/_actor.factory.d.ts +0 -19
  61. package/dist/types/api/_agent.api.d.ts +0 -3
  62. package/dist/types/types/actor.d.ts +0 -74
  63. package/dist/types/utils/agent.utils.d.ts +0 -6
@@ -1,419 +0,0 @@
1
- // @ts-ignore
2
- export const idlFactory = ({IDL}) => {
3
- const CommitBatch = IDL.Record({
4
- batch_id: IDL.Nat,
5
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
6
- chunk_ids: IDL.Vec(IDL.Nat)
7
- });
8
- const CommitProposal = IDL.Record({
9
- sha256: IDL.Vec(IDL.Nat8),
10
- proposal_id: IDL.Nat
11
- });
12
- const ListOrderField = IDL.Variant({
13
- UpdatedAt: IDL.Null,
14
- Keys: IDL.Null,
15
- CreatedAt: IDL.Null
16
- });
17
- const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
18
- const TimestampMatcher = IDL.Variant({
19
- Equal: IDL.Nat64,
20
- Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
21
- GreaterThan: IDL.Nat64,
22
- LessThan: IDL.Nat64
23
- });
24
- const ListMatcher = IDL.Record({
25
- key: IDL.Opt(IDL.Text),
26
- updated_at: IDL.Opt(TimestampMatcher),
27
- description: IDL.Opt(IDL.Text),
28
- created_at: IDL.Opt(TimestampMatcher)
29
- });
30
- const ListPaginate = IDL.Record({
31
- start_after: IDL.Opt(IDL.Text),
32
- limit: IDL.Opt(IDL.Nat64)
33
- });
34
- const ListParams = IDL.Record({
35
- order: IDL.Opt(ListOrder),
36
- owner: IDL.Opt(IDL.Principal),
37
- matcher: IDL.Opt(ListMatcher),
38
- paginate: IDL.Opt(ListPaginate)
39
- });
40
- const DeleteControllersArgs = IDL.Record({
41
- controllers: IDL.Vec(IDL.Principal)
42
- });
43
- const ControllerScope = IDL.Variant({
44
- Write: IDL.Null,
45
- Admin: IDL.Null,
46
- Submit: IDL.Null
47
- });
48
- const Controller = IDL.Record({
49
- updated_at: IDL.Nat64,
50
- metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
51
- created_at: IDL.Nat64,
52
- scope: ControllerScope,
53
- expires_at: IDL.Opt(IDL.Nat64)
54
- });
55
- const DelDoc = IDL.Record({version: IDL.Opt(IDL.Nat64)});
56
- const CollectionType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
57
- const DelRule = IDL.Record({version: IDL.Opt(IDL.Nat64)});
58
- const DeleteProposalAssets = IDL.Record({
59
- proposal_ids: IDL.Vec(IDL.Nat)
60
- });
61
- const DepositCyclesArgs = IDL.Record({
62
- cycles: IDL.Nat,
63
- destination_id: IDL.Principal
64
- });
65
- const AssetKey = IDL.Record({
66
- token: IDL.Opt(IDL.Text),
67
- collection: IDL.Text,
68
- owner: IDL.Principal,
69
- name: IDL.Text,
70
- description: IDL.Opt(IDL.Text),
71
- full_path: IDL.Text
72
- });
73
- const AssetEncodingNoContent = IDL.Record({
74
- modified: IDL.Nat64,
75
- sha256: IDL.Vec(IDL.Nat8),
76
- total_length: IDL.Nat
77
- });
78
- const AssetNoContent = IDL.Record({
79
- key: AssetKey,
80
- updated_at: IDL.Nat64,
81
- encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
82
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
83
- created_at: IDL.Nat64,
84
- version: IDL.Opt(IDL.Nat64)
85
- });
86
- const AuthenticationConfigInternetIdentity = IDL.Record({
87
- derivation_origin: IDL.Opt(IDL.Text),
88
- external_alternative_origins: IDL.Opt(IDL.Vec(IDL.Text))
89
- });
90
- const AuthenticationRules = IDL.Record({
91
- allowed_callers: IDL.Vec(IDL.Principal)
92
- });
93
- const AuthenticationConfig = IDL.Record({
94
- updated_at: IDL.Opt(IDL.Nat64),
95
- created_at: IDL.Opt(IDL.Nat64),
96
- version: IDL.Opt(IDL.Nat64),
97
- internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
98
- rules: IDL.Opt(AuthenticationRules)
99
- });
100
- const ConfigMaxMemorySize = IDL.Record({
101
- stable: IDL.Opt(IDL.Nat64),
102
- heap: IDL.Opt(IDL.Nat64)
103
- });
104
- const DbConfig = IDL.Record({
105
- updated_at: IDL.Opt(IDL.Nat64),
106
- created_at: IDL.Opt(IDL.Nat64),
107
- version: IDL.Opt(IDL.Nat64),
108
- max_memory_size: IDL.Opt(ConfigMaxMemorySize)
109
- });
110
- const StorageConfigIFrame = IDL.Variant({
111
- Deny: IDL.Null,
112
- AllowAny: IDL.Null,
113
- SameOrigin: IDL.Null
114
- });
115
- const StorageConfigRawAccess = IDL.Variant({
116
- Deny: IDL.Null,
117
- Allow: IDL.Null
118
- });
119
- const StorageConfigRedirect = IDL.Record({
120
- status_code: IDL.Nat16,
121
- location: IDL.Text
122
- });
123
- const StorageConfig = IDL.Record({
124
- iframe: IDL.Opt(StorageConfigIFrame),
125
- updated_at: IDL.Opt(IDL.Nat64),
126
- rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
127
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
128
- created_at: IDL.Opt(IDL.Nat64),
129
- version: IDL.Opt(IDL.Nat64),
130
- max_memory_size: IDL.Opt(ConfigMaxMemorySize),
131
- raw_access: IDL.Opt(StorageConfigRawAccess),
132
- redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
133
- });
134
- const Config = IDL.Record({
135
- db: IDL.Opt(DbConfig),
136
- authentication: IDL.Opt(AuthenticationConfig),
137
- storage: StorageConfig
138
- });
139
- const Doc = IDL.Record({
140
- updated_at: IDL.Nat64,
141
- owner: IDL.Principal,
142
- data: IDL.Vec(IDL.Nat8),
143
- description: IDL.Opt(IDL.Text),
144
- created_at: IDL.Nat64,
145
- version: IDL.Opt(IDL.Nat64)
146
- });
147
- const ProposalStatus = IDL.Variant({
148
- Initialized: IDL.Null,
149
- Failed: IDL.Null,
150
- Open: IDL.Null,
151
- Rejected: IDL.Null,
152
- Executed: IDL.Null,
153
- Accepted: IDL.Null
154
- });
155
- const AssetsUpgradeOptions = IDL.Record({
156
- clear_existing_assets: IDL.Opt(IDL.Bool)
157
- });
158
- const SegmentsDeploymentOptions = IDL.Record({
159
- orbiter: IDL.Opt(IDL.Text),
160
- mission_control_version: IDL.Opt(IDL.Text),
161
- satellite_version: IDL.Opt(IDL.Text)
162
- });
163
- const ProposalType = IDL.Variant({
164
- AssetsUpgrade: AssetsUpgradeOptions,
165
- SegmentsDeployment: SegmentsDeploymentOptions
166
- });
167
- const Proposal = IDL.Record({
168
- status: ProposalStatus,
169
- updated_at: IDL.Nat64,
170
- sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
171
- executed_at: IDL.Opt(IDL.Nat64),
172
- owner: IDL.Principal,
173
- created_at: IDL.Nat64,
174
- version: IDL.Opt(IDL.Nat64),
175
- proposal_type: ProposalType
176
- });
177
- const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
178
- const Permission = IDL.Variant({
179
- Controllers: IDL.Null,
180
- Private: IDL.Null,
181
- Public: IDL.Null,
182
- Managed: IDL.Null
183
- });
184
- const RateConfig = IDL.Record({
185
- max_tokens: IDL.Nat64,
186
- time_per_token_ns: IDL.Nat64
187
- });
188
- const Rule = IDL.Record({
189
- max_capacity: IDL.Opt(IDL.Nat32),
190
- memory: IDL.Opt(Memory),
191
- updated_at: IDL.Nat64,
192
- max_size: IDL.Opt(IDL.Nat),
193
- read: Permission,
194
- created_at: IDL.Nat64,
195
- version: IDL.Opt(IDL.Nat64),
196
- mutable_permissions: IDL.Opt(IDL.Bool),
197
- rate_config: IDL.Opt(RateConfig),
198
- write: Permission,
199
- max_changes_per_user: IDL.Opt(IDL.Nat32)
200
- });
201
- const HttpRequest = IDL.Record({
202
- url: IDL.Text,
203
- method: IDL.Text,
204
- body: IDL.Vec(IDL.Nat8),
205
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
206
- certificate_version: IDL.Opt(IDL.Nat16)
207
- });
208
- const StreamingCallbackToken = IDL.Record({
209
- memory: Memory,
210
- token: IDL.Opt(IDL.Text),
211
- sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
212
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
213
- index: IDL.Nat64,
214
- encoding_type: IDL.Text,
215
- full_path: IDL.Text
216
- });
217
- const StreamingStrategy = IDL.Variant({
218
- Callback: IDL.Record({
219
- token: StreamingCallbackToken,
220
- callback: IDL.Func([], [], ['query'])
221
- })
222
- });
223
- const HttpResponse = IDL.Record({
224
- body: IDL.Vec(IDL.Nat8),
225
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
226
- streaming_strategy: IDL.Opt(StreamingStrategy),
227
- status_code: IDL.Nat16
228
- });
229
- const StreamingCallbackHttpResponse = IDL.Record({
230
- token: IDL.Opt(StreamingCallbackToken),
231
- body: IDL.Vec(IDL.Nat8)
232
- });
233
- const InitAssetKey = IDL.Record({
234
- token: IDL.Opt(IDL.Text),
235
- collection: IDL.Text,
236
- name: IDL.Text,
237
- description: IDL.Opt(IDL.Text),
238
- encoding_type: IDL.Opt(IDL.Text),
239
- full_path: IDL.Text
240
- });
241
- const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
242
- const ListResults = IDL.Record({
243
- matches_pages: IDL.Opt(IDL.Nat64),
244
- matches_length: IDL.Nat64,
245
- items_page: IDL.Opt(IDL.Nat64),
246
- items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
247
- items_length: IDL.Nat64
248
- });
249
- const CustomDomain = IDL.Record({
250
- updated_at: IDL.Nat64,
251
- created_at: IDL.Nat64,
252
- version: IDL.Opt(IDL.Nat64),
253
- bn_id: IDL.Opt(IDL.Text)
254
- });
255
- const ListResults_1 = IDL.Record({
256
- matches_pages: IDL.Opt(IDL.Nat64),
257
- matches_length: IDL.Nat64,
258
- items_page: IDL.Opt(IDL.Nat64),
259
- items: IDL.Vec(IDL.Tuple(IDL.Text, Doc)),
260
- items_length: IDL.Nat64
261
- });
262
- const ListProposalsOrder = IDL.Record({desc: IDL.Bool});
263
- const ListProposalsPaginate = IDL.Record({
264
- start_after: IDL.Opt(IDL.Nat),
265
- limit: IDL.Opt(IDL.Nat)
266
- });
267
- const ListProposalsParams = IDL.Record({
268
- order: IDL.Opt(ListProposalsOrder),
269
- paginate: IDL.Opt(ListProposalsPaginate)
270
- });
271
- const ProposalKey = IDL.Record({proposal_id: IDL.Nat});
272
- const ListProposalResults = IDL.Record({
273
- matches_length: IDL.Nat64,
274
- items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)),
275
- items_length: IDL.Nat64
276
- });
277
- const ListRulesMatcher = IDL.Record({include_system: IDL.Bool});
278
- const ListRulesParams = IDL.Record({matcher: IDL.Opt(ListRulesMatcher)});
279
- const ListRulesResults = IDL.Record({
280
- matches_length: IDL.Nat64,
281
- items: IDL.Vec(IDL.Tuple(IDL.Text, Rule)),
282
- items_length: IDL.Nat64
283
- });
284
- const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
285
- const SetAuthenticationConfig = IDL.Record({
286
- version: IDL.Opt(IDL.Nat64),
287
- internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
288
- rules: IDL.Opt(AuthenticationRules)
289
- });
290
- const SetController = IDL.Record({
291
- metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
292
- scope: ControllerScope,
293
- expires_at: IDL.Opt(IDL.Nat64)
294
- });
295
- const SetControllersArgs = IDL.Record({
296
- controller: SetController,
297
- controllers: IDL.Vec(IDL.Principal)
298
- });
299
- const SetDbConfig = IDL.Record({
300
- version: IDL.Opt(IDL.Nat64),
301
- max_memory_size: IDL.Opt(ConfigMaxMemorySize)
302
- });
303
- const SetDoc = IDL.Record({
304
- data: IDL.Vec(IDL.Nat8),
305
- description: IDL.Opt(IDL.Text),
306
- version: IDL.Opt(IDL.Nat64)
307
- });
308
- const SetRule = IDL.Record({
309
- max_capacity: IDL.Opt(IDL.Nat32),
310
- memory: IDL.Opt(Memory),
311
- max_size: IDL.Opt(IDL.Nat),
312
- read: Permission,
313
- version: IDL.Opt(IDL.Nat64),
314
- mutable_permissions: IDL.Opt(IDL.Bool),
315
- rate_config: IDL.Opt(RateConfig),
316
- write: Permission,
317
- max_changes_per_user: IDL.Opt(IDL.Nat32)
318
- });
319
- const SetStorageConfig = IDL.Record({
320
- iframe: IDL.Opt(StorageConfigIFrame),
321
- rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
322
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
323
- version: IDL.Opt(IDL.Nat64),
324
- max_memory_size: IDL.Opt(ConfigMaxMemorySize),
325
- raw_access: IDL.Opt(StorageConfigRawAccess),
326
- redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
327
- });
328
- const UploadChunk = IDL.Record({
329
- content: IDL.Vec(IDL.Nat8),
330
- batch_id: IDL.Nat,
331
- order_id: IDL.Opt(IDL.Nat)
332
- });
333
- const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
334
- return IDL.Service({
335
- commit_asset_upload: IDL.Func([CommitBatch], [], []),
336
- commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
337
- commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
338
- count_assets: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
339
- count_collection_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
340
- count_collection_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
341
- count_docs: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
342
- count_proposals: IDL.Func([], [IDL.Nat64], ['query']),
343
- del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
344
- del_assets: IDL.Func([IDL.Text], [], []),
345
- del_controllers: IDL.Func(
346
- [DeleteControllersArgs],
347
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
348
- []
349
- ),
350
- del_custom_domain: IDL.Func([IDL.Text], [], []),
351
- del_doc: IDL.Func([IDL.Text, IDL.Text, DelDoc], [], []),
352
- del_docs: IDL.Func([IDL.Text], [], []),
353
- del_filtered_assets: IDL.Func([IDL.Text, ListParams], [], []),
354
- del_filtered_docs: IDL.Func([IDL.Text, ListParams], [], []),
355
- del_many_assets: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
356
- del_many_docs: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, DelDoc))], [], []),
357
- del_rule: IDL.Func([CollectionType, IDL.Text, DelRule], [], []),
358
- delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
359
- deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
360
- get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
361
- get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
362
- get_config: IDL.Func([], [Config], []),
363
- get_db_config: IDL.Func([], [IDL.Opt(DbConfig)], ['query']),
364
- get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
365
- get_many_assets: IDL.Func(
366
- [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
367
- [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(AssetNoContent)))],
368
- ['query']
369
- ),
370
- get_many_docs: IDL.Func(
371
- [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
372
- [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
373
- ['query']
374
- ),
375
- get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']),
376
- get_rule: IDL.Func([CollectionType, IDL.Text], [IDL.Opt(Rule)], ['query']),
377
- get_storage_config: IDL.Func([], [StorageConfig], ['query']),
378
- http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
379
- http_request_streaming_callback: IDL.Func(
380
- [StreamingCallbackToken],
381
- [StreamingCallbackHttpResponse],
382
- ['query']
383
- ),
384
- init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
385
- init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
386
- init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
387
- list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
388
- list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
389
- list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
390
- list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
391
- list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], ['query']),
392
- list_rules: IDL.Func([CollectionType, ListRulesParams], [ListRulesResults], ['query']),
393
- memory_size: IDL.Func([], [MemorySize], ['query']),
394
- reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
395
- set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
396
- set_controllers: IDL.Func(
397
- [SetControllersArgs],
398
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
399
- []
400
- ),
401
- set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
402
- set_db_config: IDL.Func([SetDbConfig], [DbConfig], []),
403
- set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
404
- set_many_docs: IDL.Func(
405
- [IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, SetDoc))],
406
- [IDL.Vec(IDL.Tuple(IDL.Text, Doc))],
407
- []
408
- ),
409
- set_rule: IDL.Func([CollectionType, IDL.Text, SetRule], [Rule], []),
410
- set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
411
- submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
412
- upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
413
- upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
414
- });
415
- };
416
- // @ts-ignore
417
- export const init = ({IDL}) => {
418
- return [];
419
- };
@@ -1,34 +0,0 @@
1
- import type { IDL } from '@dfinity/candid';
2
- import type { ActorParameters, MissionControlParameters, OrbiterParameters, SatelliteParameters } from '../types/actor';
3
- import { type DeprecatedMissionControlVersionActor, type DeprecatedOrbiterVersionActor, type DeprecatedSatelliteActor, type DeprecatedSatelliteNoScopeActor, type DeprecatedSatelliteVersionActor, type MissionControlActor, type OrbiterActor, type SatelliteActor } from './_actor.factory';
4
- /**
5
- * @deprecated TODO: for backwards compatibility - to be removed
6
- */
7
- export declare const getDeprecatedSatelliteActor: ({ satelliteId, ...rest }: SatelliteParameters) => Promise<DeprecatedSatelliteActor>;
8
- export declare const getSatelliteActor: ({ satelliteId, certified, ...rest }: SatelliteParameters & {
9
- certified?: boolean;
10
- }) => Promise<SatelliteActor>;
11
- /**
12
- * @deprecated TODO: for backwards compatibility - to be removed
13
- */
14
- export declare const getDeprecatedSatelliteNoScopeActor: ({ satelliteId, ...rest }: SatelliteParameters) => Promise<DeprecatedSatelliteNoScopeActor>;
15
- /**
16
- * @deprecated TODO: for backwards compatibility - to be removed
17
- */
18
- export declare const getDeprecatedSatelliteVersionActor: ({ satelliteId, ...rest }: SatelliteParameters) => Promise<DeprecatedSatelliteVersionActor>;
19
- export declare const getMissionControlActor: ({ missionControlId, ...rest }: MissionControlParameters) => Promise<MissionControlActor>;
20
- /**
21
- * @deprecated TODO: for backwards compatibility - to be removed
22
- */
23
- export declare const getDeprecatedMissionControlVersionActor: ({ missionControlId, ...rest }: MissionControlParameters) => Promise<DeprecatedMissionControlVersionActor>;
24
- export declare const getOrbiterActor: ({ orbiterId, certified, ...rest }: OrbiterParameters & {
25
- certified?: boolean;
26
- }) => Promise<OrbiterActor>;
27
- /**
28
- * @deprecated TODO: for backwards compatibility - to be removed
29
- */
30
- export declare const getDeprecatedOrbiterVersionActor: ({ orbiterId, ...rest }: OrbiterParameters) => Promise<DeprecatedOrbiterVersionActor>;
31
- export declare const getActor: <T>({ canisterId, idlFactory, ...rest }: ActorParameters & {
32
- canisterId: string | undefined;
33
- idlFactory: IDL.InterfaceFactory;
34
- }) => Promise<T>;
@@ -1,19 +0,0 @@
1
- import { idlFactory as idlFactoryMissionControl } from '../../declarations/mission_control/mission_control.factory.did.js';
2
- import { idlFactory as idlFactoryOrbiter } from '../../declarations/orbiter/orbiter.factory.did.js';
3
- import { idlFactory as idlCertifiedFactoryOrbiter } from '../../declarations/orbiter/orbiter.factory.certified.did.js';
4
- import { idlFactory as idlDeprecatedFactorySatelliteNoScope } from '../../declarations/satellite/satellite-deprecated-no-scope.factory.did.js';
5
- import { idlFactory as idlDeprecatedFactorySatelliteVersion } from '../../declarations/satellite/satellite-deprecated-version.factory.did.js';
6
- import { idlFactory as idlDeprecatedFactoryOrbiterVersion } from '../../declarations/orbiter/orbiter-deprecated-version.factory.did.js';
7
- import { idlFactory as idlDeprecatedFactoryMissionControlVersion } from '../../declarations/mission_control/mission_control-deprecated-version.factory.did.js';
8
- import { idlFactory as idlDeprecatedFactorySatellite } from '../../declarations/satellite/satellite-deprecated.factory.did.js';
9
- import { idlFactory as idlFactorySatellite } from '../../declarations/satellite/satellite.factory.did.js';
10
- import { idlFactory as idlCertifiedFactorySatellite } from '../../declarations/satellite/satellite.factory.certified.did.js';
11
- import type { _SERVICE as DeprecatedMissionControlVersionActor } from '../../declarations/mission_control/mission_control-deprecated-version.did';
12
- import type { _SERVICE as MissionControlActor } from '../../declarations/mission_control/mission_control.did';
13
- import type { _SERVICE as DeprecatedOrbiterVersionActor } from '../../declarations/orbiter/orbiter-deprecated-version.did';
14
- import type { _SERVICE as OrbiterActor } from '../../declarations/orbiter/orbiter.did';
15
- import type { _SERVICE as DeprecatedSatelliteNoScopeActor } from '../../declarations/satellite/satellite-deprecated-no-scope.did';
16
- import type { _SERVICE as DeprecatedSatelliteVersionActor } from '../../declarations/satellite/satellite-deprecated-version.did';
17
- import type { _SERVICE as DeprecatedSatelliteActor } from '../../declarations/satellite/satellite-deprecated.did';
18
- import type { _SERVICE as SatelliteActor } from '../../declarations/satellite/satellite.did';
19
- export { idlCertifiedFactoryOrbiter, idlCertifiedFactorySatellite, idlDeprecatedFactoryMissionControlVersion, idlDeprecatedFactoryOrbiterVersion, idlDeprecatedFactorySatellite, idlDeprecatedFactorySatelliteNoScope, idlDeprecatedFactorySatelliteVersion, idlFactoryMissionControl, idlFactoryOrbiter, idlFactorySatellite, type DeprecatedMissionControlVersionActor, type DeprecatedOrbiterVersionActor, type DeprecatedSatelliteActor, type DeprecatedSatelliteNoScopeActor, type DeprecatedSatelliteVersionActor, type MissionControlActor, type OrbiterActor, type SatelliteActor };
@@ -1,3 +0,0 @@
1
- import type { HttpAgent } from '@dfinity/agent';
2
- import type { ActorParameters } from '../types/actor';
3
- export declare const useOrInitAgent: ({ agent, ...rest }: ActorParameters) => Promise<HttpAgent>;
@@ -1,74 +0,0 @@
1
- import type { HttpAgent, Identity } from '@dfinity/agent';
2
- /**
3
- * Represents the parameters for an actor.
4
- * @interface
5
- */
6
- export interface ActorParameters {
7
- /**
8
- * The identity associated with the actor.
9
- * @type {Identity}
10
- */
11
- identity: Identity;
12
- /**
13
- * Specifies whether the actor is calling the local development Docker container or provides the container URL.
14
- * @type {boolean | string}
15
- * @optional
16
- */
17
- container?: boolean | string;
18
- /**
19
- * An optional HttpAgent. If none is provided, a new agent will automatically be created to execute calls.
20
- */
21
- agent?: HttpAgent;
22
- }
23
- /**
24
- * Represents the parameters for a satellite actor.
25
- * @interface
26
- * @extends {ActorParameters}
27
- */
28
- export interface SatelliteParameters extends ActorParameters {
29
- /**
30
- * The unique identifier for the satellite.
31
- * @type {string}
32
- * @optional
33
- */
34
- satelliteId?: string;
35
- }
36
- /**
37
- * Represents the parameters for a Mission Control actor.
38
- * @interface
39
- * @extends {ActorParameters}
40
- */
41
- export interface MissionControlParameters extends ActorParameters {
42
- /**
43
- * The unique identifier for Mission Control.
44
- * @type {string}
45
- * @optional
46
- */
47
- missionControlId?: string;
48
- }
49
- /**
50
- * Represents the parameters for a Console actor.
51
- * @interface
52
- * @extends {ActorParameters}
53
- */
54
- export interface ConsoleParameters extends ActorParameters {
55
- /**
56
- * The unique identifier for the console.
57
- * @type {string}
58
- * @optional
59
- */
60
- consoleId?: string;
61
- }
62
- /**
63
- * Represents the parameters for an Orbiter actor.
64
- * @interface
65
- * @extends {ActorParameters}
66
- */
67
- export interface OrbiterParameters extends ActorParameters {
68
- /**
69
- * The unique identifier for the Orbiter.
70
- * @type {string}
71
- * @optional
72
- */
73
- orbiterId?: string;
74
- }
@@ -1,6 +0,0 @@
1
- import { HttpAgent } from '@dfinity/agent';
2
- import type { ActorParameters } from '../types/actor';
3
- export declare const createAgent: ({ identity, host, localActor }: Pick<ActorParameters, "identity"> & {
4
- host: string;
5
- localActor: boolean;
6
- }) => Promise<HttpAgent>;