@junobuild/ic-client 0.0.1

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 (80) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +21 -0
  3. package/dist/browser/index.js +2 -0
  4. package/dist/browser/index.js.map +7 -0
  5. package/dist/declarations/console/console.did.d.ts +311 -0
  6. package/dist/declarations/console/console.factory.certified.did.js +326 -0
  7. package/dist/declarations/console/console.factory.did.js +326 -0
  8. package/dist/declarations/console/console.factory.did.mjs +326 -0
  9. package/dist/declarations/deprecated/console-0-0-14.did.d.ts +267 -0
  10. package/dist/declarations/deprecated/console-0-0-14.factory.did.js +285 -0
  11. package/dist/declarations/deprecated/console-0-0-8-patch1.did.d.ts +75 -0
  12. package/dist/declarations/deprecated/console-0-0-8-patch1.factory.did.js +80 -0
  13. package/dist/declarations/deprecated/mission_control-0-0-13.did.d.ts +246 -0
  14. package/dist/declarations/deprecated/mission_control-0-0-13.factory.did.js +280 -0
  15. package/dist/declarations/deprecated/mission_control-0-0-14.did.d.ts +241 -0
  16. package/dist/declarations/deprecated/mission_control-0-0-14.factory.did.js +258 -0
  17. package/dist/declarations/deprecated/mission_control-0-0-4.did.d.ts +80 -0
  18. package/dist/declarations/deprecated/mission_control-0-0-4.factory.did.js +99 -0
  19. package/dist/declarations/deprecated/mission_control-deprecated-version.did.d.ts +231 -0
  20. package/dist/declarations/deprecated/mission_control-deprecated-version.factory.did.js +247 -0
  21. package/dist/declarations/deprecated/observatory-0-0-9.did.d.ts +70 -0
  22. package/dist/declarations/deprecated/observatory-0-0-9.factory.did.js +76 -0
  23. package/dist/declarations/deprecated/orbiter-0-0-6.did.d.ts +161 -0
  24. package/dist/declarations/deprecated/orbiter-0-0-6.factory.did.js +192 -0
  25. package/dist/declarations/deprecated/orbiter-0-0-7.did.d.ts +166 -0
  26. package/dist/declarations/deprecated/orbiter-0-0-7.factory.did.js +197 -0
  27. package/dist/declarations/deprecated/orbiter-0-0-8.did.d.ts +245 -0
  28. package/dist/declarations/deprecated/orbiter-0-0-8.factory.did.js +287 -0
  29. package/dist/declarations/deprecated/orbiter-0-2-0.did.d.ts +277 -0
  30. package/dist/declarations/deprecated/orbiter-0-2-0.factory.did.js +319 -0
  31. package/dist/declarations/deprecated/orbiter-deprecated-version.did.d.ts +229 -0
  32. package/dist/declarations/deprecated/orbiter-deprecated-version.factory.did.js +271 -0
  33. package/dist/declarations/deprecated/satellite-0-0-16.did.d.ts +240 -0
  34. package/dist/declarations/deprecated/satellite-0-0-16.factory.did.js +264 -0
  35. package/dist/declarations/deprecated/satellite-0-0-17.did.d.ts +254 -0
  36. package/dist/declarations/deprecated/satellite-0-0-17.factory.did.js +281 -0
  37. package/dist/declarations/deprecated/satellite-0-0-21.did.d.ts +299 -0
  38. package/dist/declarations/deprecated/satellite-0-0-21.factory.did.js +333 -0
  39. package/dist/declarations/deprecated/satellite-0-0-22.did.d.ts +290 -0
  40. package/dist/declarations/deprecated/satellite-0-0-22.factory.did.js +318 -0
  41. package/dist/declarations/deprecated/satellite-0-0-8.did.d.ts +183 -0
  42. package/dist/declarations/deprecated/satellite-0-0-8.factory.did.js +194 -0
  43. package/dist/declarations/deprecated/satellite-0-0-9.did.d.ts +199 -0
  44. package/dist/declarations/deprecated/satellite-0-0-9.factory.did.js +213 -0
  45. package/dist/declarations/deprecated/satellite-deprecated-no-scope.did.d.ts +183 -0
  46. package/dist/declarations/deprecated/satellite-deprecated-no-scope.factory.did.js +194 -0
  47. package/dist/declarations/deprecated/satellite-deprecated-no-scope.factory.did.mjs +192 -0
  48. package/dist/declarations/deprecated/satellite-deprecated-version.did.d.ts +291 -0
  49. package/dist/declarations/deprecated/satellite-deprecated-version.factory.did.js +319 -0
  50. package/dist/declarations/deprecated/satellite-deprecated.did.d.ts +182 -0
  51. package/dist/declarations/deprecated/satellite-deprecated.factory.did.js +191 -0
  52. package/dist/declarations/deprecated/satellite-deprecated.factory.did.mjs +191 -0
  53. package/dist/declarations/mission_control/mission_control.did.d.ts +241 -0
  54. package/dist/declarations/mission_control/mission_control.factory.certified.did.js +259 -0
  55. package/dist/declarations/mission_control/mission_control.factory.did.js +259 -0
  56. package/dist/declarations/observatory/observatory.did.d.ts +86 -0
  57. package/dist/declarations/observatory/observatory.factory.certified.did.js +93 -0
  58. package/dist/declarations/observatory/observatory.factory.did.js +93 -0
  59. package/dist/declarations/observatory/observatory.factory.did.mjs +93 -0
  60. package/dist/declarations/orbiter/orbiter.did.d.ts +277 -0
  61. package/dist/declarations/orbiter/orbiter.factory.certified.did.js +304 -0
  62. package/dist/declarations/orbiter/orbiter.factory.did.js +320 -0
  63. package/dist/declarations/orbiter/orbiter.factory.did.mjs +320 -0
  64. package/dist/declarations/satellite/satellite.did.d.ts +396 -0
  65. package/dist/declarations/satellite/satellite.factory.certified.did.js +419 -0
  66. package/dist/declarations/satellite/satellite.factory.did.js +419 -0
  67. package/dist/declarations/satellite/satellite.factory.did.mjs +419 -0
  68. package/dist/declarations/sputnik/sputnik.did.d.ts +396 -0
  69. package/dist/declarations/sputnik/sputnik.factory.certified.did.js +419 -0
  70. package/dist/declarations/sputnik/sputnik.factory.did.js +419 -0
  71. package/dist/index.js +1 -0
  72. package/dist/node/index.mjs +4 -0
  73. package/dist/node/index.mjs.map +7 -0
  74. package/dist/types/api/_agent.api.d.ts +3 -0
  75. package/dist/types/api/actor.api.d.ts +34 -0
  76. package/dist/types/api/actor.factory.d.ts +19 -0
  77. package/dist/types/index.d.ts +2 -0
  78. package/dist/types/types/actor.d.ts +74 -0
  79. package/dist/types/utils/agent.utils.d.ts +6 -0
  80. package/package.json +63 -0
@@ -0,0 +1,419 @@
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
+ };
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './browser/index.js';
@@ -0,0 +1,4 @@
1
+ import { createRequire as topLevelCreateRequire } from 'module';
2
+ const require = topLevelCreateRequire(import.meta.url);
3
+ var ue=Object.create;var Kt=Object.defineProperty;var _e=Object.getOwnPropertyDescriptor;var Te=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,Ne=Object.prototype.hasOwnProperty;var Vt=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var ge=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var xe=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Te(e))!Ne.call(t,o)&&o!==r&&Kt(t,o,{get:()=>e[o],enumerable:!(a=_e(e,o))||a.enumerable});return t};var jt=(t,e,r)=>(r=t!=null?ue(me(t)):{},xe(e||!t||!t.__esModule?Kt(r,"default",{value:t,enumerable:!0}):r,t));var vt=ge((xr,ie)=>{"use strict";var At=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,Oe=Object.getOwnPropertyNames,Fe=Object.prototype.hasOwnProperty,Re=(t,e)=>{for(var r in e)At(t,r,{get:e[r],enumerable:!0})},Ve=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Oe(e))!Fe.call(t,o)&&o!==r&&At(t,o,{get:()=>e[o],enumerable:!(a=ye(e,o))||a.enumerable});return t},fe=t=>Ve(At({},"__esModule",{value:!0}),t),Qt={};Re(Qt,{AgentManager:()=>qe,Canister:()=>Se,FromStringToTokenError:()=>Jt,ICPToken:()=>Ae,InvalidPercentageError:()=>Lt,NullishError:()=>te,TokenAmount:()=>Ce,TokenAmountV2:()=>ve,arrayBufferToUint8Array:()=>Ke,arrayOfNumberToUint8Array:()=>We,asNonNullish:()=>Me,asciiStringToByteArray:()=>Ge,assertNonNullish:()=>ct,assertPercentageNumber:()=>Ee,base64ToUint8Array:()=>Ze,bigEndianCrc32:()=>Le,bigIntToUint8Array:()=>ze,candidNumberArrayToBigInt:()=>Qe,convertStringToE8s:()=>Xt,createAgent:()=>Dt,createServices:()=>Be,debounce:()=>ir,decodeBase32:()=>Xe,defaultAgent:()=>Zt,encodeBase32:()=>Je,fromDefinedNullable:()=>lr,fromNullable:()=>Ct,fromNullishNullable:()=>pr,hashObject:()=>er,hashText:()=>oe,hexStringToUint8Array:()=>$e,isEmptyString:()=>we,isNullish:()=>ot,jsonReplacer:()=>ae,jsonReviver:()=>tr,nonNullish:()=>j,notEmptyString:()=>Yt,nowInBigIntNanoSeconds:()=>cr,numberToUint8Array:()=>He,principalToSubAccount:()=>dr,queryAndUpdate:()=>ke,secondsToDuration:()=>ar,smallerVersion:()=>ur,toBigIntNanoSeconds:()=>nr,toNullable:()=>sr,uint8ArrayToArrayOfNumber:()=>je,uint8ArrayToBase64:()=>Ye,uint8ArrayToBigInt:()=>Ue,uint8ArrayToHexString:()=>ee});ie.exports=fe(Qt);var Jt=(t=>(t[t.FractionalMoreThan8Decimals=0]="FractionalMoreThan8Decimals",t[t.InvalidFormat=1]="InvalidFormat",t[t.FractionalTooManyDecimals=2]="FractionalTooManyDecimals",t))(Jt||{}),he=BigInt(1e8),Pe=8,Xt=t=>{let e=t.includes("e")?Number(t).toLocaleString("en",{useGrouping:!1,maximumFractionDigits:20}):t;e=e.trim().replace(/[,']/g,"");let r=e.match(/\d*(\.\d*)?/);if(!r||r[0]!==e)return 1;let[a,o]=e.split("."),i=BigInt(0);if(a)try{i+=BigInt(a)*he}catch{return 1}if(o){if(o.length>8)return 0;try{i+=BigInt(o.padEnd(8,"0"))}catch{return 1}}return i},be=({amount:t,decimals:e})=>{t=t.trim().replace(/[,']/g,"");let r=t.match(/\d*(\.\d*)?/);if(!r||r[0]!==t)return 1;let[a,o]=t.split("."),i=0n,n=10n**BigInt(e);if(a)try{i+=BigInt(a)*n}catch{return 1}if(o){if(o.length>e)return 2;try{i+=BigInt(o.padEnd(e,"0"))}catch{return 1}}return i},Ae={symbol:"ICP",name:"Internet Computer",decimals:8},Ce=class rt{constructor(e,r){if(this.e8s=e,this.token=r,r.decimals!==8)throw new Error("Use TokenAmountV2 for number of decimals other than 8")}static fromE8s({amount:e,token:r}){return new rt(e,r)}static fromString({amount:e,token:r}){if(r.decimals!==8)throw new Error("Use TokenAmountV2 for number of decimals other than 8");let a=Xt(e);return typeof a=="bigint"?new rt(a,r):a}static fromNumber({amount:e,token:r}){let a=rt.fromString({amount:e.toString(),token:r});if(a instanceof rt)return a;throw a===0?new Error(`Number ${e} has more than 8 decimals`):new Error(`Invalid number ${e}`)}toE8s(){return this.e8s}},ve=class at{constructor(e,r){this.ulps=e,this.token=r}static fromUlps({amount:e,token:r}){return new at(e,r)}static fromString({amount:e,token:r}){let a=be({amount:e,decimals:r.decimals});return typeof a=="bigint"?new at(a,r):a}static fromNumber({amount:e,token:r}){let a=at.fromString({amount:e.toFixed(Math.min(Pe,r.decimals)),token:r});if(a instanceof at)return a;throw a===2?new Error(`Number ${e} has more than ${r.decimals} decimals`):new Error(`Invalid number ${e}`)}toUlps(){return this.ulps}toE8s(){return this.token.decimals<8?this.ulps*10n**BigInt(8-this.token.decimals):this.token.decimals===8?this.ulps:this.ulps/10n**BigInt(this.token.decimals-8)}},Se=class{constructor(t,e,r){this.id=t,this.service=e,this.certifiedService=r,this.caller=({certified:a=!0})=>a?this.certifiedService:this.service}get canisterId(){return this.id}},ot=t=>t==null,j=t=>!ot(t),Yt=t=>j(t)&&t!=="",we=t=>!Yt(t),ke=async({request:t,onLoad:e,onQueryError:r,onUpdateError:a,strategy:o="query_and_update",identity:i,resolution:n="race"})=>{let c=!1,s=l=>t({certified:l,identity:i}).then(d=>{c||e({certified:l,response:d})}).catch(d=>{l||r==null||r({error:d,identity:i}),!c&&(ot(a)||(console.error(d),l&&a({error:d,identity:i})))}).finally(()=>c=c||l),p=o==="query"?[s(!1)]:o==="update"?[s(!0)]:[s(!1),s(!0)];await(n==="all_settled"?Promise.allSettled(p):Promise.race(p))},Wt=Vt("@dfinity/agent"),ft=Vt("@dfinity/agent"),Zt=()=>ft.HttpAgent.createSync({host:"https://icp-api.io",identity:new ft.AnonymousIdentity}),Dt=async({identity:t,host:e,fetchRootKey:r=!1,verifyQuerySignatures:a=!1,retryTimes:o})=>await ft.HttpAgent.create({identity:t,...j(e)&&{host:e},verifyQuerySignatures:a,...j(o)&&{retryTimes:o},shouldFetchRootKey:r}),qe=class It{constructor(e){this.config=e,this.agents=void 0,this.getAgent=async({identity:r})=>{let a=r.getPrincipal().toText();if(ot(this.agents)||ot(this.agents[a])){let o=await Dt({identity:r,fetchRootKey:this.config.fetchRootKey,host:this.config.host,verifyQuerySignatures:!0});return this.agents={...this.agents??{},[a]:o},o}return this.agents[a]},this.clearAgents=()=>{this.agents=null}}static create(e){return new It(e)}},Be=({options:{canisterId:t,serviceOverride:e,certifiedServiceOverride:r,agent:a,callTransform:o,queryTransform:i},idlFactory:n,certifiedIdlFactory:c})=>{let s=a??Zt(),p=e??Wt.Actor.createActor(n,{agent:s,canisterId:t,callTransform:o,queryTransform:i}),l=r??Wt.Actor.createActor(c,{agent:s,canisterId:t,callTransform:o,queryTransform:i});return{service:p,certifiedService:l,agent:s,canisterId:t}},Lt=class extends Error{},te=class extends Error{},ct=(t,e)=>{if(t==null)throw new te(e)},Me=(t,e)=>(ct(t,e),t),Ee=t=>{if(t<0||t>100)throw new Lt(`${t} is not a valid percentage number.`)},Ue=t=>{let e=new DataView(t.buffer,t.byteOffset,t.byteLength);if(typeof e.getBigUint64=="function")return e.getBigUint64(0);{let r=BigInt(e.getUint32(0)),a=BigInt(e.getUint32(4));return(r<<BigInt(32))+a}},ze=t=>{let e=new ArrayBuffer(8),r=new DataView(e);if(typeof r.setBigUint64=="function")r.setBigUint64(0,t);else{let a=Number(t>>BigInt(32)),o=Number(t&BigInt(4294967295));r.setUint32(0,a),r.setUint32(4,o)}return new Uint8Array(e)},He=t=>{let e=new DataView(new ArrayBuffer(8));for(let r=7;r>=0;--r)e.setUint8(r,t%256),t=t>>8;return new Uint8Array(e.buffer)},Ke=t=>new Uint8Array(t),je=t=>Array.from(t),We=t=>new Uint8Array(t),Ge=t=>Array.from(t).map(e=>e.charCodeAt(0)),$e=t=>{let e=t.match(/.{1,2}/g);return ct(e,"Invalid hex string."),Uint8Array.from(e.map(r=>parseInt(r,16)))},ee=t=>(t instanceof Uint8Array||(t=Uint8Array.from(t)),t.reduce((e,r)=>e+r.toString(16).padStart(2,"0"),"")),Qe=t=>{let e=0n;for(let r=t.length-1;r>=0;r--)e=(e<<32n)+BigInt(t[r]);return e},nt="abcdefghijklmnopqrstuvwxyz234567",J=Object.create(null);for(let t=0;t<nt.length;t++)J[nt[t]]=t;J[0]=J.o;J[1]=J.i;var Je=t=>{let e=0,r=0,a="";function o(i){return e<0?r|=i>>-e:r=i<<e&248,e>3?(e-=8,1):(e<4&&(a+=nt[r>>3],e+=5),0)}for(let i=0;i<t.length;)i+=o(t[i]);return a+(e<0?nt[r>>3]:"")};function Xe(t){let e=0,r=0,a=new Uint8Array(t.length*4/3|0),o=0;function i(n){let c=J[n.toLowerCase()];ct(c,`Invalid character: ${JSON.stringify(n)}`),c<<=3,r|=c>>>e,e+=5,e>=8&&(a[o++]=r,e-=8,e>0?r=c<<5-e&255:r=0)}for(let n of t)i(n);return a.slice(0,o)}var Ye=t=>btoa(String.fromCharCode(...new Uint8Array(t))),Ze=t=>Uint8Array.from(atob(t),e=>e.charCodeAt(0)),De=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),Ie=t=>{let e=-1;for(let r=0;r<t.length;r++){let a=(t[r]^e)&255;e=De[a]^e>>>8}return(e^-1)>>>0},Le=t=>{let e=new ArrayBuffer(4);return new DataView(e).setUint32(0,Ie(t),!1),new Uint8Array(e)},re=Vt("@dfinity/principal"),ht="__bigint__",Pt="__principal__",bt="__uint8array__",ae=(t,e)=>typeof e=="bigint"?{[ht]:`${e}`}:j(e)&&e instanceof re.Principal?{[Pt]:e.toText()}:j(e)&&e instanceof Uint8Array?{[bt]:Array.from(e)}:e,tr=(t,e)=>{let r=a=>e[a];return j(e)&&typeof e=="object"&&ht in e?BigInt(r(ht)):j(e)&&typeof e=="object"&&Pt in e?re.Principal.fromText(r(Pt)):j(e)&&typeof e=="object"&&bt in e?Uint8Array.from(r(bt)):e},er=async t=>{let e=JSON.stringify(t,ae);return await oe(e)},oe=async t=>{let e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e);return ee(new Uint8Array(r))},rr={year:"year",year_plural:"years",month:"month",month_plural:"months",day:"day",day_plural:"days",hour:"hour",hour_plural:"hours",minute:"minute",minute_plural:"minutes",second:"second",second_plural:"seconds"},ar=({seconds:t,i18n:e=rr})=>{let r=t/BigInt(60),a=r/BigInt(60);r-=a*BigInt(60);let o=a/BigInt(24);a-=o*BigInt(24);let i=or(o);return o-=ce(i),[et("year",i),et("day",o),et("hour",a),et("minute",r),...t>BigInt(0)&&t<BigInt(60)?[et("second",t)]:[]].filter(({amount:n})=>n>0).slice(0,2).map(n=>`${n.amount} ${n.amount===1?e[n.labelKey]:e[`${n.labelKey}_plural`]}`).join(", ")},or=t=>{let e=t/BigInt(365);for(;ce(e)>t;)e--;return e},ce=t=>{let e=t/BigInt(4);return t*BigInt(365)+e},et=(t,e)=>({labelKey:t,amount:Number(e)}),ne=1000000n,cr=()=>BigInt(Date.now())*ne,nr=t=>BigInt(t.getTime())*ne,ir=(t,e)=>{let r;return(...a)=>{let o=()=>t(...a);r&&clearTimeout(r),r=setTimeout(o,e!==void 0&&e>0?e:300)}},sr=t=>j(t)?[t]:[],Ct=t=>t?.[0],lr=t=>{let e=Ct(t);return ct(e),e},pr=t=>Ct(t??[]),dr=t=>{let e=t.toUint8Array(),r=new Uint8Array(32);return r[0]=e.length,r.set(e,1),r},Gt=(t,e)=>e>t.length?[...t,...[...Array(e-t.length).keys()].map(()=>0)]:t,$t=t=>{if(!Number.isNaN(Number(t)))return Number(t);let e=t.split("").reduce((r,a)=>Number.isNaN(Number(a))?r:r+a,"");return Number(e)},ur=({minVersion:t,currentVersion:e})=>{let r=Gt(t.split(".").map($t),3).join(".");return Gt(e.split(".").map($t),3).join(".").localeCompare(r,void 0,{numeric:!0,sensitivity:"base"})<0}});var de=jt(vt(),1);import{Actor as mr}from"@dfinity/agent";var le=jt(vt(),1);import{HttpAgent as _r}from"@dfinity/agent";var se=async({identity:t,host:e,localActor:r})=>await _r.create({identity:t,host:e,retryTimes:10,shouldFetchRootKey:r});var pe=async({agent:t,...e})=>t??await Tr(e),Tr=async({identity:t,container:e})=>{let r=(0,le.nonNullish)(e)&&e!==!1;return await se({identity:t,host:r?e===!0?"http://127.0.0.1:5987":e:"https://icp-api.io",localActor:r})};var St=({IDL:t})=>{let e=t.Record({fund_cycles:t.Nat,min_cycles:t.Nat}),r=t.Variant({BelowThreshold:e}),a=t.Record({strategy:t.Opt(r),enabled:t.Bool}),o=t.Record({cycles:t.Opt(a)}),i=t.Record({monitoring:t.Opt(o)}),n=t.Record({updated_at:t.Nat64,orbiter_id:t.Principal,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,settings:t.Opt(i)}),c=t.Record({subnet_id:t.Opt(t.Principal),name:t.Opt(t.Text)}),s=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,satellite_id:t.Principal,settings:t.Opt(i)}),p=t.Record({cycles:t.Nat,destination_id:t.Principal}),l=t.Record({to:t.Opt(t.Text),enabled:t.Bool}),d=t.Record({notification:t.Opt(l),default_strategy:t.Opt(r)}),f=t.Record({cycles:t.Opt(d)}),N=t.Record({monitoring:t.Opt(f)}),M=t.Record({to:t.Opt(t.Nat64),from:t.Opt(t.Nat64),segment_id:t.Principal}),E=t.Record({segment_id:t.Principal,created_at:t.Nat64,nonce:t.Int32}),k=t.Record({timestamp:t.Nat64,amount:t.Nat}),q=t.Variant({BalanceCheckFailed:t.Null,ObtainCyclesFailed:t.Null,DepositFailed:t.Null,InsufficientCycles:t.Null,Other:t.Text}),C=t.Record({timestamp:t.Nat64,error_code:q}),x=t.Record({deposited_cycles:t.Opt(k),cycles:k,funding_failure:t.Opt(C)}),b=t.Record({cycles:t.Opt(x)}),y=t.Record({monitored_ids:t.Vec(t.Principal),running:t.Bool}),F=t.Record({cycles:t.Opt(y)}),u=t.Record({updated_at:t.Nat64,created_at:t.Nat64,monitoring:t.Opt(o)}),R=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),user:t.Opt(t.Principal),created_at:t.Nat64,config:t.Opt(N)}),T=t.Record({e8s:t.Nat64}),m=t.Record({timestamp_nanos:t.Nat64}),V=t.Record({to:t.Vec(t.Nat8),fee:T,memo:t.Nat64,from_subaccount:t.Opt(t.Vec(t.Nat8)),created_at_time:t.Opt(m),amount:T}),g=t.Variant({TxTooOld:t.Record({allowed_window_nanos:t.Nat64}),BadFee:t.Record({expected_fee:T}),TxDuplicate:t.Record({duplicate_of:t.Nat64}),TxCreatedInFuture:t.Null,InsufficientFunds:t.Record({balance:T})}),h=t.Variant({Ok:t.Nat64,Err:g}),_=t.Record({owner:t.Principal,subaccount:t.Opt(t.Vec(t.Nat8))}),A=t.Record({to:_,fee:t.Opt(t.Nat),memo:t.Opt(t.Vec(t.Nat8)),from_subaccount:t.Opt(t.Vec(t.Nat8)),created_at_time:t.Opt(t.Nat64),amount:t.Nat}),v=t.Variant({GenericError:t.Record({message:t.Text,error_code:t.Nat}),TemporarilyUnavailable:t.Null,BadBurn:t.Record({min_burn_amount:t.Nat}),Duplicate:t.Record({duplicate_of:t.Nat}),BadFee:t.Record({expected_fee:t.Nat}),CreatedInFuture:t.Record({ledger_time:t.Nat64}),TooOld:t.Null,InsufficientFunds:t.Record({balance:t.Nat})}),S=t.Variant({Ok:t.Nat,Err:v}),B=t.Variant({Write:t.Null,Admin:t.Null,Submit:t.Null}),P=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,scope:B,expires_at:t.Opt(t.Nat64)}),w=t.Record({metadata:t.Vec(t.Tuple(t.Text,t.Text)),scope:B,expires_at:t.Opt(t.Nat64)}),O=t.Record({ids:t.Vec(t.Principal),strategy:r}),U=t.Record({orbiters_strategy:t.Opt(O),mission_control_strategy:t.Opt(r),satellites_strategy:t.Opt(O)}),z=t.Record({cycles_config:t.Opt(U)}),K=t.Record({satellite_ids:t.Opt(t.Vec(t.Principal)),try_mission_control:t.Opt(t.Bool),orbiter_ids:t.Opt(t.Vec(t.Principal))}),H=t.Record({cycles_config:t.Opt(K)});return t.Service({add_mission_control_controllers:t.Func([t.Vec(t.Principal)],[],[]),add_satellites_controllers:t.Func([t.Vec(t.Principal),t.Vec(t.Principal)],[],[]),create_orbiter:t.Func([t.Opt(t.Text)],[n],[]),create_orbiter_with_config:t.Func([c],[n],[]),create_satellite:t.Func([t.Text],[s],[]),create_satellite_with_config:t.Func([c],[s],[]),del_mission_control_controllers:t.Func([t.Vec(t.Principal)],[],[]),del_orbiter:t.Func([t.Principal,t.Nat],[],[]),del_orbiters_controllers:t.Func([t.Vec(t.Principal),t.Vec(t.Principal)],[],[]),del_satellite:t.Func([t.Principal,t.Nat],[],[]),del_satellites_controllers:t.Func([t.Vec(t.Principal),t.Vec(t.Principal)],[],[]),deposit_cycles:t.Func([p],[],[]),get_config:t.Func([],[t.Opt(N)],["query"]),get_metadata:t.Func([],[t.Vec(t.Tuple(t.Text,t.Text))],["query"]),get_monitoring_history:t.Func([M],[t.Vec(t.Tuple(E,b))],["query"]),get_monitoring_status:t.Func([],[F],["query"]),get_settings:t.Func([],[t.Opt(u)],["query"]),get_user:t.Func([],[t.Principal],["query"]),get_user_data:t.Func([],[R],["query"]),icp_transfer:t.Func([V],[h],[]),icrc_transfer:t.Func([t.Principal,A],[S],[]),list_mission_control_controllers:t.Func([],[t.Vec(t.Tuple(t.Principal,P))],["query"]),list_orbiters:t.Func([],[t.Vec(t.Tuple(t.Principal,n))],["query"]),list_satellites:t.Func([],[t.Vec(t.Tuple(t.Principal,s))],["query"]),remove_mission_control_controllers:t.Func([t.Vec(t.Principal)],[],[]),remove_satellites_controllers:t.Func([t.Vec(t.Principal),t.Vec(t.Principal)],[],[]),set_config:t.Func([t.Opt(N)],[],[]),set_metadata:t.Func([t.Vec(t.Tuple(t.Text,t.Text))],[],[]),set_mission_control_controllers:t.Func([t.Vec(t.Principal),w],[],[]),set_orbiter:t.Func([t.Principal,t.Opt(t.Text)],[n],[]),set_orbiter_metadata:t.Func([t.Principal,t.Vec(t.Tuple(t.Text,t.Text))],[n],[]),set_orbiters_controllers:t.Func([t.Vec(t.Principal),t.Vec(t.Principal),w],[],[]),set_satellite:t.Func([t.Principal,t.Opt(t.Text)],[s],[]),set_satellite_metadata:t.Func([t.Principal,t.Vec(t.Tuple(t.Text,t.Text))],[s],[]),set_satellites_controllers:t.Func([t.Vec(t.Principal),t.Vec(t.Principal),w],[],[]),start_monitoring:t.Func([],[],[]),stop_monitoring:t.Func([],[],[]),top_up:t.Func([t.Principal,T],[],[]),unset_orbiter:t.Func([t.Principal],[],[]),unset_satellite:t.Func([t.Principal],[],[]),update_and_start_monitoring:t.Func([z],[],[]),update_and_stop_monitoring:t.Func([H],[],[])})};var wt=({IDL:t})=>{let e=t.Record({controllers:t.Vec(t.Principal)}),r=t.Variant({Write:t.Null,Admin:t.Null,Submit:t.Null}),a=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,scope:r,expires_at:t.Opt(t.Nat64)}),o=t.Record({version:t.Opt(t.Nat64)}),i=t.Record({cycles:t.Nat,destination_id:t.Principal}),n=t.Record({to:t.Opt(t.Nat64),from:t.Opt(t.Nat64),satellite_id:t.Opt(t.Principal)}),c=t.Record({key:t.Text,collected_at:t.Nat64}),s=t.Record({os:t.Text,device:t.Opt(t.Text),browser:t.Text}),p=t.Record({utm_content:t.Opt(t.Text),utm_medium:t.Opt(t.Text),utm_source:t.Text,utm_term:t.Opt(t.Text),utm_campaign:t.Opt(t.Text)}),l=t.Record({inner_height:t.Nat16,screen_height:t.Opt(t.Nat16),screen_width:t.Opt(t.Nat16),inner_width:t.Nat16}),d=t.Record({client:t.Opt(s),title:t.Text,updated_at:t.Nat64,referrer:t.Opt(t.Text),time_zone:t.Text,session_id:t.Text,campaign:t.Opt(p),href:t.Text,created_at:t.Nat64,satellite_id:t.Principal,device:l,version:t.Opt(t.Nat64),user_agent:t.Opt(t.Text)}),f=t.Record({safari:t.Float64,opera:t.Float64,others:t.Float64,firefox:t.Float64,chrome:t.Float64}),N=t.Record({ios:t.Float64,macos:t.Float64,others:t.Float64,linux:t.Float64,android:t.Float64,windows:t.Float64}),M=t.Record({desktop:t.Float64,laptop:t.Opt(t.Float64),others:t.Float64,tablet:t.Opt(t.Float64),mobile:t.Float64}),E=t.Record({browsers:f,operating_systems:t.Opt(N),devices:M}),k=t.Record({day:t.Nat8,month:t.Nat8,year:t.Int32}),q=t.Record({bounce_rate:t.Float64,average_page_views_per_session:t.Float64,daily_total_page_views:t.Vec(t.Tuple(k,t.Nat32)),total_page_views:t.Nat32,unique_page_views:t.Nat64,unique_sessions:t.Nat64}),C=t.Record({referrers:t.Vec(t.Tuple(t.Text,t.Nat32)),pages:t.Vec(t.Tuple(t.Text,t.Nat32)),utm_campaigns:t.Opt(t.Vec(t.Tuple(t.Text,t.Nat32))),utm_sources:t.Opt(t.Vec(t.Tuple(t.Text,t.Nat32))),time_zones:t.Opt(t.Vec(t.Tuple(t.Text,t.Nat32)))}),x=t.Variant({Navigate:t.Null,Restore:t.Null,Reload:t.Null,BackForward:t.Null,BackForwardCache:t.Null,Prerender:t.Null}),b=t.Record({id:t.Text,value:t.Float64,navigation_type:t.Opt(x),delta:t.Float64}),y=t.Variant({WebVitalsMetric:b}),F=t.Variant({CLS:t.Null,FCP:t.Null,INP:t.Null,LCP:t.Null,TTFB:t.Null}),u=t.Record({updated_at:t.Nat64,session_id:t.Text,data:y,href:t.Text,metric_name:F,created_at:t.Nat64,satellite_id:t.Principal,version:t.Opt(t.Nat64)}),R=t.Record({cls:t.Opt(t.Float64),fcp:t.Opt(t.Float64),inp:t.Opt(t.Float64),lcp:t.Opt(t.Float64),ttfb:t.Opt(t.Float64)}),T=t.Record({overall:R,pages:t.Vec(t.Tuple(t.Text,R))}),m=t.Record({updated_at:t.Nat64,session_id:t.Text,metadata:t.Opt(t.Vec(t.Tuple(t.Text,t.Text))),name:t.Text,created_at:t.Nat64,satellite_id:t.Principal,version:t.Opt(t.Nat64)}),V=t.Record({total:t.Vec(t.Tuple(t.Text,t.Nat32))}),g=t.Record({url:t.Text,method:t.Text,body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text)),certificate_version:t.Opt(t.Nat16)}),h=t.Record({body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text)),upgrade:t.Opt(t.Bool),status_code:t.Nat16}),_=t.Record({performance_metrics:t.Bool,track_events:t.Bool,page_views:t.Bool}),A=t.Record({updated_at:t.Nat64,features:t.Opt(_),restricted_origin:t.Opt(t.Text),created_at:t.Nat64,version:t.Opt(t.Nat64)}),v=t.Record({stable:t.Nat64,heap:t.Nat64}),S=t.Record({metadata:t.Vec(t.Tuple(t.Text,t.Text)),scope:r,expires_at:t.Opt(t.Nat64)}),B=t.Record({controller:S,controllers:t.Vec(t.Principal)}),P=t.Record({client:t.Opt(s),title:t.Text,updated_at:t.Opt(t.Nat64),referrer:t.Opt(t.Text),time_zone:t.Text,session_id:t.Text,campaign:t.Opt(p),href:t.Text,satellite_id:t.Principal,device:l,version:t.Opt(t.Nat64),user_agent:t.Opt(t.Text)}),w=t.Variant({Ok:d,Err:t.Text}),O=t.Variant({Ok:t.Null,Err:t.Vec(t.Tuple(c,t.Text))}),U=t.Record({session_id:t.Text,data:y,href:t.Text,metric_name:F,satellite_id:t.Principal,version:t.Opt(t.Nat64),user_agent:t.Opt(t.Text)}),z=t.Variant({Ok:u,Err:t.Text}),K=t.Record({features:t.Opt(_),restricted_origin:t.Opt(t.Text),version:t.Opt(t.Nat64)}),H=t.Record({updated_at:t.Opt(t.Nat64),session_id:t.Text,metadata:t.Opt(t.Vec(t.Tuple(t.Text,t.Text))),name:t.Text,satellite_id:t.Principal,version:t.Opt(t.Nat64),user_agent:t.Opt(t.Text)}),W=t.Variant({Ok:m,Err:t.Text});return t.Service({del_controllers:t.Func([e],[t.Vec(t.Tuple(t.Principal,a))],[]),del_satellite_config:t.Func([t.Principal,o],[],[]),deposit_cycles:t.Func([i],[],[]),get_page_views:t.Func([n],[t.Vec(t.Tuple(c,d))],["query"]),get_page_views_analytics_clients:t.Func([n],[E],["query"]),get_page_views_analytics_metrics:t.Func([n],[q],["query"]),get_page_views_analytics_top_10:t.Func([n],[C],["query"]),get_performance_metrics:t.Func([n],[t.Vec(t.Tuple(c,u))],["query"]),get_performance_metrics_analytics_web_vitals:t.Func([n],[T],["query"]),get_track_events:t.Func([n],[t.Vec(t.Tuple(c,m))],["query"]),get_track_events_analytics:t.Func([n],[V],["query"]),http_request:t.Func([g],[h],["query"]),http_request_update:t.Func([g],[h],[]),list_controllers:t.Func([],[t.Vec(t.Tuple(t.Principal,a))],["query"]),list_satellite_configs:t.Func([],[t.Vec(t.Tuple(t.Principal,A))],["query"]),memory_size:t.Func([],[v],["query"]),set_controllers:t.Func([B],[t.Vec(t.Tuple(t.Principal,a))],[]),set_page_view:t.Func([c,P],[w],[]),set_page_views:t.Func([t.Vec(t.Tuple(c,P))],[O],[]),set_performance_metric:t.Func([c,U],[z],[]),set_performance_metrics:t.Func([t.Vec(t.Tuple(c,U))],[O],[]),set_satellite_configs:t.Func([t.Vec(t.Tuple(t.Principal,K))],[t.Vec(t.Tuple(t.Principal,A))],[]),set_track_event:t.Func([c,H],[W],[]),set_track_events:t.Func([t.Vec(t.Tuple(c,H))],[O],[])})};var kt=({IDL:t})=>{let e=t.Record({controllers:t.Vec(t.Principal)}),r=t.Variant({Write:t.Null,Admin:t.Null,Submit:t.Null}),a=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,scope:r,expires_at:t.Opt(t.Nat64)}),o=t.Record({version:t.Opt(t.Nat64)}),i=t.Record({cycles:t.Nat,destination_id:t.Principal}),n=t.Record({to:t.Opt(t.Nat64),from:t.Opt(t.Nat64),satellite_id:t.Opt(t.Principal)}),c=t.Record({key:t.Text,collected_at:t.Nat64}),s=t.Record({os:t.Text,device:t.Opt(t.Text),browser:t.Text}),p=t.Record({utm_content:t.Opt(t.Text),utm_medium:t.Opt(t.Text),utm_source:t.Text,utm_term:t.Opt(t.Text),utm_campaign:t.Opt(t.Text)}),l=t.Record({inner_height:t.Nat16,screen_height:t.Opt(t.Nat16),screen_width:t.Opt(t.Nat16),inner_width:t.Nat16}),d=t.Record({client:t.Opt(s),title:t.Text,updated_at:t.Nat64,referrer:t.Opt(t.Text),time_zone:t.Text,session_id:t.Text,campaign:t.Opt(p),href:t.Text,created_at:t.Nat64,satellite_id:t.Principal,device:l,version:t.Opt(t.Nat64),user_agent:t.Opt(t.Text)}),f=t.Record({safari:t.Float64,opera:t.Float64,others:t.Float64,firefox:t.Float64,chrome:t.Float64}),N=t.Record({ios:t.Float64,macos:t.Float64,others:t.Float64,linux:t.Float64,android:t.Float64,windows:t.Float64}),M=t.Record({desktop:t.Float64,laptop:t.Opt(t.Float64),others:t.Float64,tablet:t.Opt(t.Float64),mobile:t.Float64}),E=t.Record({browsers:f,operating_systems:t.Opt(N),devices:M}),k=t.Record({day:t.Nat8,month:t.Nat8,year:t.Int32}),q=t.Record({bounce_rate:t.Float64,average_page_views_per_session:t.Float64,daily_total_page_views:t.Vec(t.Tuple(k,t.Nat32)),total_page_views:t.Nat32,unique_page_views:t.Nat64,unique_sessions:t.Nat64}),C=t.Record({referrers:t.Vec(t.Tuple(t.Text,t.Nat32)),pages:t.Vec(t.Tuple(t.Text,t.Nat32)),utm_campaigns:t.Opt(t.Vec(t.Tuple(t.Text,t.Nat32))),utm_sources:t.Opt(t.Vec(t.Tuple(t.Text,t.Nat32))),time_zones:t.Opt(t.Vec(t.Tuple(t.Text,t.Nat32)))}),x=t.Variant({Navigate:t.Null,Restore:t.Null,Reload:t.Null,BackForward:t.Null,BackForwardCache:t.Null,Prerender:t.Null}),b=t.Record({id:t.Text,value:t.Float64,navigation_type:t.Opt(x),delta:t.Float64}),y=t.Variant({WebVitalsMetric:b}),F=t.Variant({CLS:t.Null,FCP:t.Null,INP:t.Null,LCP:t.Null,TTFB:t.Null}),u=t.Record({updated_at:t.Nat64,session_id:t.Text,data:y,href:t.Text,metric_name:F,created_at:t.Nat64,satellite_id:t.Principal,version:t.Opt(t.Nat64)}),R=t.Record({cls:t.Opt(t.Float64),fcp:t.Opt(t.Float64),inp:t.Opt(t.Float64),lcp:t.Opt(t.Float64),ttfb:t.Opt(t.Float64)}),T=t.Record({overall:R,pages:t.Vec(t.Tuple(t.Text,R))}),m=t.Record({updated_at:t.Nat64,session_id:t.Text,metadata:t.Opt(t.Vec(t.Tuple(t.Text,t.Text))),name:t.Text,created_at:t.Nat64,satellite_id:t.Principal,version:t.Opt(t.Nat64)}),V=t.Record({total:t.Vec(t.Tuple(t.Text,t.Nat32))}),g=t.Record({url:t.Text,method:t.Text,body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text)),certificate_version:t.Opt(t.Nat16)}),h=t.Record({body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text)),upgrade:t.Opt(t.Bool),status_code:t.Nat16}),_=t.Record({performance_metrics:t.Bool,track_events:t.Bool,page_views:t.Bool}),A=t.Record({updated_at:t.Nat64,features:t.Opt(_),restricted_origin:t.Opt(t.Text),created_at:t.Nat64,version:t.Opt(t.Nat64)}),v=t.Record({stable:t.Nat64,heap:t.Nat64}),S=t.Record({metadata:t.Vec(t.Tuple(t.Text,t.Text)),scope:r,expires_at:t.Opt(t.Nat64)}),B=t.Record({controller:S,controllers:t.Vec(t.Principal)}),P=t.Record({client:t.Opt(s),title:t.Text,updated_at:t.Opt(t.Nat64),referrer:t.Opt(t.Text),time_zone:t.Text,session_id:t.Text,campaign:t.Opt(p),href:t.Text,satellite_id:t.Principal,device:l,version:t.Opt(t.Nat64),user_agent:t.Opt(t.Text)}),w=t.Variant({Ok:d,Err:t.Text}),O=t.Variant({Ok:t.Null,Err:t.Vec(t.Tuple(c,t.Text))}),U=t.Record({session_id:t.Text,data:y,href:t.Text,metric_name:F,satellite_id:t.Principal,version:t.Opt(t.Nat64),user_agent:t.Opt(t.Text)}),z=t.Variant({Ok:u,Err:t.Text}),K=t.Record({features:t.Opt(_),restricted_origin:t.Opt(t.Text),version:t.Opt(t.Nat64)}),H=t.Record({updated_at:t.Opt(t.Nat64),session_id:t.Text,metadata:t.Opt(t.Vec(t.Tuple(t.Text,t.Text))),name:t.Text,satellite_id:t.Principal,version:t.Opt(t.Nat64),user_agent:t.Opt(t.Text)}),W=t.Variant({Ok:m,Err:t.Text});return t.Service({del_controllers:t.Func([e],[t.Vec(t.Tuple(t.Principal,a))],[]),del_satellite_config:t.Func([t.Principal,o],[],[]),deposit_cycles:t.Func([i],[],[]),get_page_views:t.Func([n],[t.Vec(t.Tuple(c,d))],[]),get_page_views_analytics_clients:t.Func([n],[E],[]),get_page_views_analytics_metrics:t.Func([n],[q],[]),get_page_views_analytics_top_10:t.Func([n],[C],[]),get_performance_metrics:t.Func([n],[t.Vec(t.Tuple(c,u))],[]),get_performance_metrics_analytics_web_vitals:t.Func([n],[T],[]),get_track_events:t.Func([n],[t.Vec(t.Tuple(c,m))],[]),get_track_events_analytics:t.Func([n],[V],[]),http_request:t.Func([g],[h],[]),http_request_update:t.Func([g],[h],[]),list_controllers:t.Func([],[t.Vec(t.Tuple(t.Principal,a))],[]),list_satellite_configs:t.Func([],[t.Vec(t.Tuple(t.Principal,A))],[]),memory_size:t.Func([],[v],[]),set_controllers:t.Func([B],[t.Vec(t.Tuple(t.Principal,a))],[]),set_page_view:t.Func([c,P],[w],[]),set_page_views:t.Func([t.Vec(t.Tuple(c,P))],[O],[]),set_performance_metric:t.Func([c,U],[z],[]),set_performance_metrics:t.Func([t.Vec(t.Tuple(c,U))],[O],[]),set_satellite_configs:t.Func([t.Vec(t.Tuple(t.Principal,K))],[t.Vec(t.Tuple(t.Principal,A))],[]),set_track_event:t.Func([c,H],[W],[]),set_track_events:t.Func([t.Vec(t.Tuple(c,H))],[O],[])})};var qt=({IDL:t})=>{let e=t.Record({batch_id:t.Nat,headers:t.Vec(t.Tuple(t.Text,t.Text)),chunk_ids:t.Vec(t.Nat)}),r=t.Record({controllers:t.Vec(t.Principal)}),a=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,expires_at:t.Opt(t.Nat64)}),o=t.Record({updated_at:t.Opt(t.Nat64)}),i=t.Record({headers:t.Vec(t.Tuple(t.Text,t.Vec(t.Tuple(t.Text,t.Text))))}),n=t.Record({storage:i}),c=t.Record({updated_at:t.Nat64,owner:t.Principal,data:t.Vec(t.Nat8),created_at:t.Nat64}),s=t.Record({url:t.Text,method:t.Text,body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text))}),p=t.Record({token:t.Opt(t.Text),sha256:t.Opt(t.Vec(t.Nat8)),headers:t.Vec(t.Tuple(t.Text,t.Text)),index:t.Nat64,encoding_type:t.Text,full_path:t.Text}),l=t.Variant({Callback:t.Record({token:p,callback:t.Func([],[],[])})}),d=t.Record({body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text)),streaming_strategy:t.Opt(l),status_code:t.Nat16}),f=t.Record({token:t.Opt(p),body:t.Vec(t.Nat8)}),N=t.Record({token:t.Opt(t.Text),collection:t.Text,name:t.Text,encoding_type:t.Opt(t.Text),full_path:t.Text}),M=t.Record({batch_id:t.Nat}),E=t.Variant({UpdatedAt:t.Null,Keys:t.Null,CreatedAt:t.Null}),k=t.Record({field:E,desc:t.Bool}),q=t.Record({start_after:t.Opt(t.Text),limit:t.Opt(t.Nat64)}),C=t.Record({order:t.Opt(k),owner:t.Opt(t.Principal),matcher:t.Opt(t.Text),paginate:t.Opt(q)}),x=t.Record({token:t.Opt(t.Text),collection:t.Text,owner:t.Principal,name:t.Text,full_path:t.Text}),b=t.Record({modified:t.Nat64,sha256:t.Vec(t.Nat8),total_length:t.Nat}),y=t.Record({key:x,updated_at:t.Nat64,encodings:t.Vec(t.Tuple(t.Text,b)),headers:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64}),F=t.Record({matches_length:t.Nat64,length:t.Nat64,items:t.Vec(t.Tuple(t.Text,y))}),u=t.Record({updated_at:t.Nat64,created_at:t.Nat64,bn_id:t.Opt(t.Text)}),R=t.Record({matches_length:t.Nat64,length:t.Nat64,items:t.Vec(t.Tuple(t.Text,c))}),T=t.Variant({Db:t.Null,Storage:t.Null}),m=t.Variant({Controllers:t.Null,Private:t.Null,Public:t.Null,Managed:t.Null}),V=t.Record({updated_at:t.Nat64,max_size:t.Opt(t.Nat),read:m,created_at:t.Nat64,write:m}),g=t.Record({metadata:t.Vec(t.Tuple(t.Text,t.Text)),expires_at:t.Opt(t.Nat64)}),h=t.Record({controller:g,controllers:t.Vec(t.Principal)}),_=t.Record({updated_at:t.Opt(t.Nat64),data:t.Vec(t.Nat8)}),A=t.Record({updated_at:t.Opt(t.Nat64),max_size:t.Opt(t.Nat),read:m,write:m}),v=t.Record({content:t.Vec(t.Nat8),batch_id:t.Nat}),S=t.Record({chunk_id:t.Nat});return t.Service({commit_asset_upload:t.Func([e],[],[]),del_asset:t.Func([t.Text,t.Text],[],[]),del_assets:t.Func([t.Opt(t.Text)],[],[]),del_controllers:t.Func([r],[t.Vec(t.Tuple(t.Principal,a))],[]),del_custom_domain:t.Func([t.Text],[],[]),del_doc:t.Func([t.Text,t.Text,o],[],[]),get_config:t.Func([],[n],[]),get_doc:t.Func([t.Text,t.Text],[t.Opt(c)],["query"]),http_request:t.Func([s],[d],["query"]),http_request_streaming_callback:t.Func([p],[f],["query"]),init_asset_upload:t.Func([N],[M],[]),list_assets:t.Func([t.Opt(t.Text),C],[F],["query"]),list_controllers:t.Func([],[t.Vec(t.Tuple(t.Principal,a))],["query"]),list_custom_domains:t.Func([],[t.Vec(t.Tuple(t.Text,u))],["query"]),list_docs:t.Func([t.Text,C],[R],["query"]),list_rules:t.Func([T],[t.Vec(t.Tuple(t.Text,V))],["query"]),set_config:t.Func([n],[],[]),set_controllers:t.Func([h],[t.Vec(t.Tuple(t.Principal,a))],[]),set_custom_domain:t.Func([t.Text,t.Opt(t.Text)],[],[]),set_doc:t.Func([t.Text,t.Text,_],[c],[]),set_rule:t.Func([T,t.Text,A],[],[]),upload_asset_chunk:t.Func([v],[S],[]),version:t.Func([],[t.Text],["query"])})};var Bt=({IDL:t})=>{let e=t.Record({batch_id:t.Nat,headers:t.Vec(t.Tuple(t.Text,t.Text)),chunk_ids:t.Vec(t.Nat)}),r=t.Variant({UpdatedAt:t.Null,Keys:t.Null,CreatedAt:t.Null}),a=t.Record({field:r,desc:t.Bool}),o=t.Variant({Equal:t.Nat64,Between:t.Tuple(t.Nat64,t.Nat64),GreaterThan:t.Nat64,LessThan:t.Nat64}),i=t.Record({key:t.Opt(t.Text),updated_at:t.Opt(o),description:t.Opt(t.Text),created_at:t.Opt(o)}),n=t.Record({start_after:t.Opt(t.Text),limit:t.Opt(t.Nat64)}),c=t.Record({order:t.Opt(a),owner:t.Opt(t.Principal),matcher:t.Opt(i),paginate:t.Opt(n)}),s=t.Record({controllers:t.Vec(t.Principal)}),p=t.Variant({Write:t.Null,Admin:t.Null}),l=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,scope:p,expires_at:t.Opt(t.Nat64)}),d=t.Record({version:t.Opt(t.Nat64)}),f=t.Variant({Db:t.Null,Storage:t.Null}),N=t.Record({version:t.Opt(t.Nat64)}),M=t.Record({cycles:t.Nat,destination_id:t.Principal}),E=t.Record({token:t.Opt(t.Text),collection:t.Text,owner:t.Principal,name:t.Text,description:t.Opt(t.Text),full_path:t.Text}),k=t.Record({modified:t.Nat64,sha256:t.Vec(t.Nat8),total_length:t.Nat}),q=t.Record({key:E,updated_at:t.Nat64,encodings:t.Vec(t.Tuple(t.Text,k)),headers:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,version:t.Opt(t.Nat64)}),C=t.Record({derivation_origin:t.Opt(t.Text),external_alternative_origins:t.Opt(t.Vec(t.Text))}),x=t.Record({internet_identity:t.Opt(C)}),b=t.Record({stable:t.Opt(t.Nat64),heap:t.Opt(t.Nat64)}),y=t.Record({max_memory_size:t.Opt(b)}),F=t.Variant({Deny:t.Null,AllowAny:t.Null,SameOrigin:t.Null}),u=t.Variant({Deny:t.Null,Allow:t.Null}),R=t.Record({status_code:t.Nat16,location:t.Text}),T=t.Record({iframe:t.Opt(F),rewrites:t.Vec(t.Tuple(t.Text,t.Text)),headers:t.Vec(t.Tuple(t.Text,t.Vec(t.Tuple(t.Text,t.Text)))),max_memory_size:t.Opt(b),raw_access:t.Opt(u),redirects:t.Opt(t.Vec(t.Tuple(t.Text,R)))}),m=t.Record({db:t.Opt(y),authentication:t.Opt(x),storage:T}),V=t.Record({updated_at:t.Nat64,owner:t.Principal,data:t.Vec(t.Nat8),description:t.Opt(t.Text),created_at:t.Nat64,version:t.Opt(t.Nat64)}),g=t.Variant({Heap:t.Null,Stable:t.Null}),h=t.Variant({Controllers:t.Null,Private:t.Null,Public:t.Null,Managed:t.Null}),_=t.Record({max_tokens:t.Nat64,time_per_token_ns:t.Nat64}),A=t.Record({max_capacity:t.Opt(t.Nat32),memory:t.Opt(g),updated_at:t.Nat64,max_size:t.Opt(t.Nat),read:h,created_at:t.Nat64,version:t.Opt(t.Nat64),mutable_permissions:t.Opt(t.Bool),rate_config:t.Opt(_),write:h,max_changes_per_user:t.Opt(t.Nat32)}),v=t.Record({url:t.Text,method:t.Text,body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text)),certificate_version:t.Opt(t.Nat16)}),S=t.Record({memory:g,token:t.Opt(t.Text),sha256:t.Opt(t.Vec(t.Nat8)),headers:t.Vec(t.Tuple(t.Text,t.Text)),index:t.Nat64,encoding_type:t.Text,full_path:t.Text}),B=t.Variant({Callback:t.Record({token:S,callback:t.Func([],[],["query"])})}),P=t.Record({body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text)),streaming_strategy:t.Opt(B),status_code:t.Nat16}),w=t.Record({token:t.Opt(S),body:t.Vec(t.Nat8)}),O=t.Record({token:t.Opt(t.Text),collection:t.Text,name:t.Text,description:t.Opt(t.Text),encoding_type:t.Opt(t.Text),full_path:t.Text}),U=t.Record({batch_id:t.Nat}),z=t.Record({matches_pages:t.Opt(t.Nat64),matches_length:t.Nat64,items_page:t.Opt(t.Nat64),items:t.Vec(t.Tuple(t.Text,q)),items_length:t.Nat64}),K=t.Record({updated_at:t.Nat64,created_at:t.Nat64,version:t.Opt(t.Nat64),bn_id:t.Opt(t.Text)}),H=t.Record({matches_pages:t.Opt(t.Nat64),matches_length:t.Nat64,items_page:t.Opt(t.Nat64),items:t.Vec(t.Tuple(t.Text,V)),items_length:t.Nat64}),W=t.Record({stable:t.Nat64,heap:t.Nat64}),X=t.Record({metadata:t.Vec(t.Tuple(t.Text,t.Text)),scope:p,expires_at:t.Opt(t.Nat64)}),Y=t.Record({controller:X,controllers:t.Vec(t.Principal)}),G=t.Record({data:t.Vec(t.Nat8),description:t.Opt(t.Text),version:t.Opt(t.Nat64)}),Q=t.Record({max_capacity:t.Opt(t.Nat32),memory:t.Opt(g),max_size:t.Opt(t.Nat),read:h,version:t.Opt(t.Nat64),mutable_permissions:t.Opt(t.Bool),rate_config:t.Opt(_),write:h,max_changes_per_user:t.Opt(t.Nat32)}),Z=t.Record({content:t.Vec(t.Nat8),batch_id:t.Nat,order_id:t.Opt(t.Nat)}),D=t.Record({chunk_id:t.Nat});return t.Service({build_version:t.Func([],[t.Text],["query"]),commit_asset_upload:t.Func([e],[],[]),count_assets:t.Func([t.Text,c],[t.Nat64],["query"]),count_collection_assets:t.Func([t.Text],[t.Nat64],["query"]),count_collection_docs:t.Func([t.Text],[t.Nat64],["query"]),count_docs:t.Func([t.Text,c],[t.Nat64],["query"]),del_asset:t.Func([t.Text,t.Text],[],[]),del_assets:t.Func([t.Text],[],[]),del_controllers:t.Func([s],[t.Vec(t.Tuple(t.Principal,l))],[]),del_custom_domain:t.Func([t.Text],[],[]),del_doc:t.Func([t.Text,t.Text,d],[],[]),del_docs:t.Func([t.Text],[],[]),del_filtered_assets:t.Func([t.Text,c],[],[]),del_filtered_docs:t.Func([t.Text,c],[],[]),del_many_assets:t.Func([t.Vec(t.Tuple(t.Text,t.Text))],[],[]),del_many_docs:t.Func([t.Vec(t.Tuple(t.Text,t.Text,d))],[],[]),del_rule:t.Func([f,t.Text,N],[],[]),deposit_cycles:t.Func([M],[],[]),get_asset:t.Func([t.Text,t.Text],[t.Opt(q)],["query"]),get_auth_config:t.Func([],[t.Opt(x)],["query"]),get_config:t.Func([],[m],[]),get_db_config:t.Func([],[t.Opt(y)],["query"]),get_doc:t.Func([t.Text,t.Text],[t.Opt(V)],["query"]),get_many_assets:t.Func([t.Vec(t.Tuple(t.Text,t.Text))],[t.Vec(t.Tuple(t.Text,t.Opt(q)))],["query"]),get_many_docs:t.Func([t.Vec(t.Tuple(t.Text,t.Text))],[t.Vec(t.Tuple(t.Text,t.Opt(V)))],["query"]),get_rule:t.Func([f,t.Text],[t.Opt(A)],["query"]),get_storage_config:t.Func([],[T],["query"]),http_request:t.Func([v],[P],["query"]),http_request_streaming_callback:t.Func([S],[w],["query"]),init_asset_upload:t.Func([O],[U],[]),list_assets:t.Func([t.Text,c],[z],["query"]),list_controllers:t.Func([],[t.Vec(t.Tuple(t.Principal,l))],["query"]),list_custom_domains:t.Func([],[t.Vec(t.Tuple(t.Text,K))],["query"]),list_docs:t.Func([t.Text,c],[H],["query"]),list_rules:t.Func([f],[t.Vec(t.Tuple(t.Text,A))],["query"]),memory_size:t.Func([],[W],["query"]),set_auth_config:t.Func([x],[],[]),set_controllers:t.Func([Y],[t.Vec(t.Tuple(t.Principal,l))],[]),set_custom_domain:t.Func([t.Text,t.Opt(t.Text)],[],[]),set_db_config:t.Func([y],[],[]),set_doc:t.Func([t.Text,t.Text,G],[V],[]),set_many_docs:t.Func([t.Vec(t.Tuple(t.Text,t.Text,G))],[t.Vec(t.Tuple(t.Text,V))],[]),set_rule:t.Func([f,t.Text,Q],[A],[]),set_storage_config:t.Func([T],[],[]),upload_asset_chunk:t.Func([Z],[D],[]),version:t.Func([],[t.Text],["query"])})};var Mt=({IDL:t})=>{let e=t.Record({controllers:t.Vec(t.Principal)}),r=t.Variant({Write:t.Null,Admin:t.Null}),a=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,scope:r,expires_at:t.Opt(t.Nat64)}),o=t.Record({version:t.Opt(t.Nat64)}),i=t.Record({cycles:t.Nat,destination_id:t.Principal}),n=t.Record({to:t.Opt(t.Nat64),from:t.Opt(t.Nat64),satellite_id:t.Opt(t.Principal)}),c=t.Record({key:t.Text,collected_at:t.Nat64}),s=t.Record({inner_height:t.Nat16,inner_width:t.Nat16}),p=t.Record({title:t.Text,updated_at:t.Nat64,referrer:t.Opt(t.Text),time_zone:t.Text,session_id:t.Text,href:t.Text,created_at:t.Nat64,satellite_id:t.Principal,device:s,version:t.Opt(t.Nat64),user_agent:t.Opt(t.Text)}),l=t.Record({safari:t.Float64,opera:t.Float64,others:t.Float64,firefox:t.Float64,chrome:t.Float64}),d=t.Record({desktop:t.Float64,others:t.Float64,mobile:t.Float64}),f=t.Record({browsers:l,devices:d}),N=t.Record({day:t.Nat8,month:t.Nat8,year:t.Int32}),M=t.Record({bounce_rate:t.Float64,average_page_views_per_session:t.Float64,daily_total_page_views:t.Vec(t.Tuple(N,t.Nat32)),total_page_views:t.Nat32,unique_page_views:t.Nat64,unique_sessions:t.Nat64}),E=t.Record({referrers:t.Vec(t.Tuple(t.Text,t.Nat32)),pages:t.Vec(t.Tuple(t.Text,t.Nat32))}),k=t.Variant({Navigate:t.Null,Restore:t.Null,Reload:t.Null,BackForward:t.Null,BackForwardCache:t.Null,Prerender:t.Null}),q=t.Record({id:t.Text,value:t.Float64,navigation_type:t.Opt(k),delta:t.Float64}),C=t.Variant({WebVitalsMetric:q}),x=t.Variant({CLS:t.Null,FCP:t.Null,INP:t.Null,LCP:t.Null,TTFB:t.Null}),b=t.Record({updated_at:t.Nat64,session_id:t.Text,data:C,href:t.Text,metric_name:x,created_at:t.Nat64,satellite_id:t.Principal,version:t.Opt(t.Nat64)}),y=t.Record({cls:t.Opt(t.Float64),fcp:t.Opt(t.Float64),inp:t.Opt(t.Float64),lcp:t.Opt(t.Float64),ttfb:t.Opt(t.Float64)}),F=t.Record({overall:y,pages:t.Vec(t.Tuple(t.Text,y))}),u=t.Record({updated_at:t.Nat64,session_id:t.Text,metadata:t.Opt(t.Vec(t.Tuple(t.Text,t.Text))),name:t.Text,created_at:t.Nat64,satellite_id:t.Principal,version:t.Opt(t.Nat64)}),R=t.Record({total:t.Vec(t.Tuple(t.Text,t.Nat32))}),T=t.Record({performance_metrics:t.Bool,track_events:t.Bool,page_views:t.Bool}),m=t.Record({updated_at:t.Nat64,features:t.Opt(T),created_at:t.Nat64,version:t.Opt(t.Nat64)}),V=t.Record({stable:t.Nat64,heap:t.Nat64}),g=t.Record({metadata:t.Vec(t.Tuple(t.Text,t.Text)),scope:r,expires_at:t.Opt(t.Nat64)}),h=t.Record({controller:g,controllers:t.Vec(t.Principal)}),_=t.Record({title:t.Text,updated_at:t.Opt(t.Nat64),referrer:t.Opt(t.Text),time_zone:t.Text,session_id:t.Text,href:t.Text,satellite_id:t.Principal,device:s,version:t.Opt(t.Nat64),user_agent:t.Opt(t.Text)}),A=t.Variant({Ok:p,Err:t.Text}),v=t.Variant({Ok:t.Null,Err:t.Vec(t.Tuple(c,t.Text))}),S=t.Record({session_id:t.Text,data:C,href:t.Text,metric_name:x,satellite_id:t.Principal,version:t.Opt(t.Nat64),user_agent:t.Opt(t.Text)}),B=t.Variant({Ok:b,Err:t.Text}),P=t.Record({features:t.Opt(T),version:t.Opt(t.Nat64)}),w=t.Record({updated_at:t.Opt(t.Nat64),session_id:t.Text,metadata:t.Opt(t.Vec(t.Tuple(t.Text,t.Text))),name:t.Text,satellite_id:t.Principal,version:t.Opt(t.Nat64),user_agent:t.Opt(t.Text)}),O=t.Variant({Ok:u,Err:t.Text});return t.Service({del_controllers:t.Func([e],[t.Vec(t.Tuple(t.Principal,a))],[]),del_satellite_config:t.Func([t.Principal,o],[],[]),deposit_cycles:t.Func([i],[],[]),get_page_views:t.Func([n],[t.Vec(t.Tuple(c,p))],["query"]),get_page_views_analytics_clients:t.Func([n],[f],["query"]),get_page_views_analytics_metrics:t.Func([n],[M],["query"]),get_page_views_analytics_top_10:t.Func([n],[E],["query"]),get_performance_metrics:t.Func([n],[t.Vec(t.Tuple(c,b))],["query"]),get_performance_metrics_analytics_web_vitals:t.Func([n],[F],["query"]),get_track_events:t.Func([n],[t.Vec(t.Tuple(c,u))],["query"]),get_track_events_analytics:t.Func([n],[R],["query"]),list_controllers:t.Func([],[t.Vec(t.Tuple(t.Principal,a))],["query"]),list_satellite_configs:t.Func([],[t.Vec(t.Tuple(t.Principal,m))],["query"]),memory_size:t.Func([],[V],["query"]),set_controllers:t.Func([h],[t.Vec(t.Tuple(t.Principal,a))],[]),set_page_view:t.Func([c,_],[A],[]),set_page_views:t.Func([t.Vec(t.Tuple(c,_))],[v],[]),set_performance_metric:t.Func([c,S],[B],[]),set_performance_metrics:t.Func([t.Vec(t.Tuple(c,S))],[v],[]),set_satellite_configs:t.Func([t.Vec(t.Tuple(t.Principal,P))],[t.Vec(t.Tuple(t.Principal,m))],[]),set_track_event:t.Func([c,w],[O],[]),set_track_events:t.Func([t.Vec(t.Tuple(c,w))],[v],[]),version:t.Func([],[t.Text],["query"])})};var Et=({IDL:t})=>{let e=t.Record({fund_cycles:t.Nat,min_cycles:t.Nat}),r=t.Variant({BelowThreshold:e}),a=t.Record({strategy:t.Opt(r),enabled:t.Bool}),o=t.Record({cycles:t.Opt(a)}),i=t.Record({monitoring:t.Opt(o)}),n=t.Record({updated_at:t.Nat64,orbiter_id:t.Principal,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,settings:t.Opt(i)}),c=t.Record({subnet_id:t.Opt(t.Principal),name:t.Opt(t.Text)}),s=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,satellite_id:t.Principal,settings:t.Opt(i)}),p=t.Record({cycles:t.Nat,destination_id:t.Principal}),l=t.Record({to:t.Opt(t.Text),enabled:t.Bool}),d=t.Record({notification:t.Opt(l),default_strategy:t.Opt(r)}),f=t.Record({cycles:t.Opt(d)}),N=t.Record({monitoring:t.Opt(f)}),M=t.Record({to:t.Opt(t.Nat64),from:t.Opt(t.Nat64),segment_id:t.Principal}),E=t.Record({segment_id:t.Principal,created_at:t.Nat64,nonce:t.Int32}),k=t.Record({timestamp:t.Nat64,amount:t.Nat}),q=t.Record({deposited_cycles:t.Opt(k),cycles:k}),C=t.Record({cycles:t.Opt(q)}),x=t.Record({monitored_ids:t.Vec(t.Principal),running:t.Bool}),b=t.Record({cycles:t.Opt(x)}),y=t.Record({updated_at:t.Nat64,created_at:t.Nat64,monitoring:t.Opt(o)}),F=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),user:t.Opt(t.Principal),created_at:t.Nat64,config:t.Opt(N)}),u=t.Record({e8s:t.Nat64}),R=t.Record({timestamp_nanos:t.Nat64}),T=t.Record({to:t.Vec(t.Nat8),fee:u,memo:t.Nat64,from_subaccount:t.Opt(t.Vec(t.Nat8)),created_at_time:t.Opt(R),amount:u}),m=t.Variant({TxTooOld:t.Record({allowed_window_nanos:t.Nat64}),BadFee:t.Record({expected_fee:u}),TxDuplicate:t.Record({duplicate_of:t.Nat64}),TxCreatedInFuture:t.Null,InsufficientFunds:t.Record({balance:u})}),V=t.Variant({Ok:t.Nat64,Err:m}),g=t.Record({owner:t.Principal,subaccount:t.Opt(t.Vec(t.Nat8))}),h=t.Record({to:g,fee:t.Opt(t.Nat),memo:t.Opt(t.Vec(t.Nat8)),from_subaccount:t.Opt(t.Vec(t.Nat8)),created_at_time:t.Opt(t.Nat64),amount:t.Nat}),_=t.Variant({GenericError:t.Record({message:t.Text,error_code:t.Nat}),TemporarilyUnavailable:t.Null,BadBurn:t.Record({min_burn_amount:t.Nat}),Duplicate:t.Record({duplicate_of:t.Nat}),BadFee:t.Record({expected_fee:t.Nat}),CreatedInFuture:t.Record({ledger_time:t.Nat64}),TooOld:t.Null,InsufficientFunds:t.Record({balance:t.Nat})}),A=t.Variant({Ok:t.Nat,Err:_}),v=t.Variant({Write:t.Null,Admin:t.Null}),S=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,scope:v,expires_at:t.Opt(t.Nat64)}),B=t.Record({metadata:t.Vec(t.Tuple(t.Text,t.Text)),scope:v,expires_at:t.Opt(t.Nat64)}),P=t.Record({ids:t.Vec(t.Principal),strategy:r}),w=t.Record({orbiters_strategy:t.Opt(P),mission_control_strategy:t.Opt(r),satellites_strategy:t.Opt(P)}),O=t.Record({cycles_config:t.Opt(w)}),U=t.Record({satellite_ids:t.Opt(t.Vec(t.Principal)),try_mission_control:t.Opt(t.Bool),orbiter_ids:t.Opt(t.Vec(t.Principal))}),z=t.Record({cycles_config:t.Opt(U)});return t.Service({add_mission_control_controllers:t.Func([t.Vec(t.Principal)],[],[]),add_satellites_controllers:t.Func([t.Vec(t.Principal),t.Vec(t.Principal)],[],[]),create_orbiter:t.Func([t.Opt(t.Text)],[n],[]),create_orbiter_with_config:t.Func([c],[n],[]),create_satellite:t.Func([t.Text],[s],[]),create_satellite_with_config:t.Func([c],[s],[]),del_mission_control_controllers:t.Func([t.Vec(t.Principal)],[],[]),del_orbiter:t.Func([t.Principal,t.Nat],[],[]),del_orbiters_controllers:t.Func([t.Vec(t.Principal),t.Vec(t.Principal)],[],[]),del_satellite:t.Func([t.Principal,t.Nat],[],[]),del_satellites_controllers:t.Func([t.Vec(t.Principal),t.Vec(t.Principal)],[],[]),deposit_cycles:t.Func([p],[],[]),get_config:t.Func([],[t.Opt(N)],["query"]),get_metadata:t.Func([],[t.Vec(t.Tuple(t.Text,t.Text))],["query"]),get_monitoring_history:t.Func([M],[t.Vec(t.Tuple(E,C))],["query"]),get_monitoring_status:t.Func([],[b],["query"]),get_settings:t.Func([],[t.Opt(y)],["query"]),get_user:t.Func([],[t.Principal],["query"]),get_user_data:t.Func([],[F],["query"]),icp_transfer:t.Func([T],[V],[]),icrc_transfer:t.Func([t.Principal,h],[A],[]),list_mission_control_controllers:t.Func([],[t.Vec(t.Tuple(t.Principal,S))],["query"]),list_orbiters:t.Func([],[t.Vec(t.Tuple(t.Principal,n))],["query"]),list_satellites:t.Func([],[t.Vec(t.Tuple(t.Principal,s))],["query"]),remove_mission_control_controllers:t.Func([t.Vec(t.Principal)],[],[]),remove_satellites_controllers:t.Func([t.Vec(t.Principal),t.Vec(t.Principal)],[],[]),set_config:t.Func([t.Opt(N)],[],[]),set_metadata:t.Func([t.Vec(t.Tuple(t.Text,t.Text))],[],[]),set_mission_control_controllers:t.Func([t.Vec(t.Principal),B],[],[]),set_orbiter:t.Func([t.Principal,t.Opt(t.Text)],[n],[]),set_orbiter_metadata:t.Func([t.Principal,t.Vec(t.Tuple(t.Text,t.Text))],[n],[]),set_orbiters_controllers:t.Func([t.Vec(t.Principal),t.Vec(t.Principal),B],[],[]),set_satellite:t.Func([t.Principal,t.Opt(t.Text)],[s],[]),set_satellite_metadata:t.Func([t.Principal,t.Vec(t.Tuple(t.Text,t.Text))],[s],[]),set_satellites_controllers:t.Func([t.Vec(t.Principal),t.Vec(t.Principal),B],[],[]),start_monitoring:t.Func([],[],[]),stop_monitoring:t.Func([],[],[]),top_up:t.Func([t.Principal,u],[],[]),unset_orbiter:t.Func([t.Principal],[],[]),unset_satellite:t.Func([t.Principal],[],[]),update_and_start_monitoring:t.Func([O],[],[]),update_and_stop_monitoring:t.Func([z],[],[]),version:t.Func([],[t.Text],["query"])})};var Ut=({IDL:t})=>{let e=t.Record({batch_id:t.Nat,headers:t.Vec(t.Tuple(t.Text,t.Text)),chunk_ids:t.Vec(t.Nat)}),r=t.Record({controllers:t.Vec(t.Principal)}),a=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,expires_at:t.Opt(t.Nat64)}),o=t.Record({updated_at:t.Opt(t.Nat64)}),i=t.Record({headers:t.Vec(t.Tuple(t.Text,t.Vec(t.Tuple(t.Text,t.Text))))}),n=t.Record({storage:i}),c=t.Record({updated_at:t.Nat64,owner:t.Principal,data:t.Vec(t.Nat8),created_at:t.Nat64}),s=t.Record({url:t.Text,method:t.Text,body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text))}),p=t.Record({token:t.Opt(t.Text),sha256:t.Opt(t.Vec(t.Nat8)),headers:t.Vec(t.Tuple(t.Text,t.Text)),index:t.Nat64,encoding_type:t.Text,full_path:t.Text}),l=t.Variant({Callback:t.Record({token:p,callback:t.Func([],[],[])})}),d=t.Record({body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text)),streaming_strategy:t.Opt(l),status_code:t.Nat16}),f=t.Record({token:t.Opt(p),body:t.Vec(t.Nat8)}),N=t.Record({token:t.Opt(t.Text),collection:t.Text,name:t.Text,encoding_type:t.Opt(t.Text),full_path:t.Text}),M=t.Record({batch_id:t.Nat}),E=t.Variant({UpdatedAt:t.Null,Keys:t.Null,CreatedAt:t.Null}),k=t.Record({field:E,desc:t.Bool}),q=t.Record({start_after:t.Opt(t.Text),limit:t.Opt(t.Nat64)}),C=t.Record({order:t.Opt(k),matcher:t.Opt(t.Text),paginate:t.Opt(q)}),x=t.Record({token:t.Opt(t.Text),collection:t.Text,owner:t.Principal,name:t.Text,full_path:t.Text}),b=t.Record({modified:t.Nat64,sha256:t.Vec(t.Nat8),total_length:t.Nat}),y=t.Record({key:x,updated_at:t.Nat64,encodings:t.Vec(t.Tuple(t.Text,b)),headers:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64}),F=t.Record({matches_length:t.Nat64,length:t.Nat64,items:t.Vec(t.Tuple(t.Text,y))}),u=t.Record({updated_at:t.Nat64,created_at:t.Nat64,bn_id:t.Opt(t.Text)}),R=t.Record({matches_length:t.Nat64,length:t.Nat64,items:t.Vec(t.Tuple(t.Text,c))}),T=t.Variant({Db:t.Null,Storage:t.Null}),m=t.Variant({Controllers:t.Null,Private:t.Null,Public:t.Null,Managed:t.Null}),V=t.Record({updated_at:t.Nat64,max_size:t.Opt(t.Nat),read:m,created_at:t.Nat64,write:m}),g=t.Record({metadata:t.Vec(t.Tuple(t.Text,t.Text)),expires_at:t.Opt(t.Nat64)}),h=t.Record({controller:g,controllers:t.Vec(t.Principal)}),_=t.Record({updated_at:t.Opt(t.Nat64),data:t.Vec(t.Nat8)}),A=t.Record({updated_at:t.Opt(t.Nat64),max_size:t.Opt(t.Nat),read:m,write:m}),v=t.Record({content:t.Vec(t.Nat8),batch_id:t.Nat}),S=t.Record({chunk_id:t.Nat});return t.Service({commit_asset_upload:t.Func([e],[],[]),del_asset:t.Func([t.Text,t.Text],[],[]),del_assets:t.Func([t.Opt(t.Text)],[],[]),del_controllers:t.Func([r],[t.Vec(t.Tuple(t.Principal,a))],[]),del_custom_domain:t.Func([t.Text],[],[]),del_doc:t.Func([t.Text,t.Text,o],[],[]),get_config:t.Func([],[n],[]),get_doc:t.Func([t.Text,t.Text],[t.Opt(c)],["query"]),http_request:t.Func([s],[d],["query"]),http_request_streaming_callback:t.Func([p],[f],["query"]),init_asset_upload:t.Func([N],[M],[]),list_assets:t.Func([t.Opt(t.Text),C],[F],["query"]),list_controllers:t.Func([],[t.Vec(t.Principal)],["query"]),list_custom_domains:t.Func([],[t.Vec(t.Tuple(t.Text,u))],["query"]),list_docs:t.Func([t.Text,C],[R],["query"]),list_rules:t.Func([T],[t.Vec(t.Tuple(t.Text,V))],["query"]),set_config:t.Func([n],[],[]),set_controllers:t.Func([h],[t.Vec(t.Tuple(t.Principal,a))],[]),set_custom_domain:t.Func([t.Text,t.Opt(t.Text)],[],[]),set_doc:t.Func([t.Text,t.Text,_],[c],[]),set_rule:t.Func([T,t.Text,A],[],[]),upload_asset_chunk:t.Func([v],[S],[]),version:t.Func([],[t.Text],["query"])})};var zt=({IDL:t})=>{let e=t.Record({batch_id:t.Nat,headers:t.Vec(t.Tuple(t.Text,t.Text)),chunk_ids:t.Vec(t.Nat)}),r=t.Record({sha256:t.Vec(t.Nat8),proposal_id:t.Nat}),a=t.Variant({UpdatedAt:t.Null,Keys:t.Null,CreatedAt:t.Null}),o=t.Record({field:a,desc:t.Bool}),i=t.Variant({Equal:t.Nat64,Between:t.Tuple(t.Nat64,t.Nat64),GreaterThan:t.Nat64,LessThan:t.Nat64}),n=t.Record({key:t.Opt(t.Text),updated_at:t.Opt(i),description:t.Opt(t.Text),created_at:t.Opt(i)}),c=t.Record({start_after:t.Opt(t.Text),limit:t.Opt(t.Nat64)}),s=t.Record({order:t.Opt(o),owner:t.Opt(t.Principal),matcher:t.Opt(n),paginate:t.Opt(c)}),p=t.Record({controllers:t.Vec(t.Principal)}),l=t.Variant({Write:t.Null,Admin:t.Null,Submit:t.Null}),d=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,scope:l,expires_at:t.Opt(t.Nat64)}),f=t.Record({version:t.Opt(t.Nat64)}),N=t.Variant({Db:t.Null,Storage:t.Null}),M=t.Record({version:t.Opt(t.Nat64)}),E=t.Record({proposal_ids:t.Vec(t.Nat)}),k=t.Record({cycles:t.Nat,destination_id:t.Principal}),q=t.Record({token:t.Opt(t.Text),collection:t.Text,owner:t.Principal,name:t.Text,description:t.Opt(t.Text),full_path:t.Text}),C=t.Record({modified:t.Nat64,sha256:t.Vec(t.Nat8),total_length:t.Nat}),x=t.Record({key:q,updated_at:t.Nat64,encodings:t.Vec(t.Tuple(t.Text,C)),headers:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,version:t.Opt(t.Nat64)}),b=t.Record({derivation_origin:t.Opt(t.Text),external_alternative_origins:t.Opt(t.Vec(t.Text))}),y=t.Record({allowed_callers:t.Vec(t.Principal)}),F=t.Record({updated_at:t.Opt(t.Nat64),created_at:t.Opt(t.Nat64),version:t.Opt(t.Nat64),internet_identity:t.Opt(b),rules:t.Opt(y)}),u=t.Record({stable:t.Opt(t.Nat64),heap:t.Opt(t.Nat64)}),R=t.Record({updated_at:t.Opt(t.Nat64),created_at:t.Opt(t.Nat64),version:t.Opt(t.Nat64),max_memory_size:t.Opt(u)}),T=t.Variant({Deny:t.Null,AllowAny:t.Null,SameOrigin:t.Null}),m=t.Variant({Deny:t.Null,Allow:t.Null}),V=t.Record({status_code:t.Nat16,location:t.Text}),g=t.Record({iframe:t.Opt(T),updated_at:t.Opt(t.Nat64),rewrites:t.Vec(t.Tuple(t.Text,t.Text)),headers:t.Vec(t.Tuple(t.Text,t.Vec(t.Tuple(t.Text,t.Text)))),created_at:t.Opt(t.Nat64),version:t.Opt(t.Nat64),max_memory_size:t.Opt(u),raw_access:t.Opt(m),redirects:t.Opt(t.Vec(t.Tuple(t.Text,V)))}),h=t.Record({db:t.Opt(R),authentication:t.Opt(F),storage:g}),_=t.Record({updated_at:t.Nat64,owner:t.Principal,data:t.Vec(t.Nat8),description:t.Opt(t.Text),created_at:t.Nat64,version:t.Opt(t.Nat64)}),A=t.Variant({Initialized:t.Null,Failed:t.Null,Open:t.Null,Rejected:t.Null,Executed:t.Null,Accepted:t.Null}),v=t.Record({clear_existing_assets:t.Opt(t.Bool)}),S=t.Record({orbiter:t.Opt(t.Text),mission_control_version:t.Opt(t.Text),satellite_version:t.Opt(t.Text)}),B=t.Variant({AssetsUpgrade:v,SegmentsDeployment:S}),P=t.Record({status:A,updated_at:t.Nat64,sha256:t.Opt(t.Vec(t.Nat8)),executed_at:t.Opt(t.Nat64),owner:t.Principal,created_at:t.Nat64,version:t.Opt(t.Nat64),proposal_type:B}),w=t.Variant({Heap:t.Null,Stable:t.Null}),O=t.Variant({Controllers:t.Null,Private:t.Null,Public:t.Null,Managed:t.Null}),U=t.Record({max_tokens:t.Nat64,time_per_token_ns:t.Nat64}),z=t.Record({max_capacity:t.Opt(t.Nat32),memory:t.Opt(w),updated_at:t.Nat64,max_size:t.Opt(t.Nat),read:O,created_at:t.Nat64,version:t.Opt(t.Nat64),mutable_permissions:t.Opt(t.Bool),rate_config:t.Opt(U),write:O,max_changes_per_user:t.Opt(t.Nat32)}),K=t.Record({url:t.Text,method:t.Text,body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text)),certificate_version:t.Opt(t.Nat16)}),H=t.Record({memory:w,token:t.Opt(t.Text),sha256:t.Opt(t.Vec(t.Nat8)),headers:t.Vec(t.Tuple(t.Text,t.Text)),index:t.Nat64,encoding_type:t.Text,full_path:t.Text}),W=t.Variant({Callback:t.Record({token:H,callback:t.Func([],[],["query"])})}),X=t.Record({body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text)),streaming_strategy:t.Opt(W),status_code:t.Nat16}),Y=t.Record({token:t.Opt(H),body:t.Vec(t.Nat8)}),G=t.Record({token:t.Opt(t.Text),collection:t.Text,name:t.Text,description:t.Opt(t.Text),encoding_type:t.Opt(t.Text),full_path:t.Text}),Q=t.Record({batch_id:t.Nat}),Z=t.Record({matches_pages:t.Opt(t.Nat64),matches_length:t.Nat64,items_page:t.Opt(t.Nat64),items:t.Vec(t.Tuple(t.Text,x)),items_length:t.Nat64}),D=t.Record({updated_at:t.Nat64,created_at:t.Nat64,version:t.Opt(t.Nat64),bn_id:t.Opt(t.Text)}),it=t.Record({matches_pages:t.Opt(t.Nat64),matches_length:t.Nat64,items_page:t.Opt(t.Nat64),items:t.Vec(t.Tuple(t.Text,_)),items_length:t.Nat64}),st=t.Record({desc:t.Bool}),lt=t.Record({start_after:t.Opt(t.Nat),limit:t.Opt(t.Nat)}),pt=t.Record({order:t.Opt(st),paginate:t.Opt(lt)}),dt=t.Record({proposal_id:t.Nat}),ut=t.Record({matches_length:t.Nat64,items:t.Vec(t.Tuple(dt,P)),items_length:t.Nat64}),_t=t.Record({include_system:t.Bool}),Tt=t.Record({matcher:t.Opt(_t)}),mt=t.Record({matches_length:t.Nat64,items:t.Vec(t.Tuple(t.Text,z)),items_length:t.Nat64}),Nt=t.Record({stable:t.Nat64,heap:t.Nat64}),gt=t.Record({version:t.Opt(t.Nat64),internet_identity:t.Opt(b),rules:t.Opt(y)}),xt=t.Record({metadata:t.Vec(t.Tuple(t.Text,t.Text)),scope:l,expires_at:t.Opt(t.Nat64)}),yt=t.Record({controller:xt,controllers:t.Vec(t.Principal)}),Ot=t.Record({version:t.Opt(t.Nat64),max_memory_size:t.Opt(u)}),I=t.Record({data:t.Vec(t.Nat8),description:t.Opt(t.Text),version:t.Opt(t.Nat64)}),Ft=t.Record({max_capacity:t.Opt(t.Nat32),memory:t.Opt(w),max_size:t.Opt(t.Nat),read:O,version:t.Opt(t.Nat64),mutable_permissions:t.Opt(t.Bool),rate_config:t.Opt(U),write:O,max_changes_per_user:t.Opt(t.Nat32)}),Rt=t.Record({iframe:t.Opt(T),rewrites:t.Vec(t.Tuple(t.Text,t.Text)),headers:t.Vec(t.Tuple(t.Text,t.Vec(t.Tuple(t.Text,t.Text)))),version:t.Opt(t.Nat64),max_memory_size:t.Opt(u),raw_access:t.Opt(m),redirects:t.Opt(t.Vec(t.Tuple(t.Text,V)))}),L=t.Record({content:t.Vec(t.Nat8),batch_id:t.Nat,order_id:t.Opt(t.Nat)}),tt=t.Record({chunk_id:t.Nat});return t.Service({commit_asset_upload:t.Func([e],[],[]),commit_proposal:t.Func([r],[t.Null],[]),commit_proposal_asset_upload:t.Func([e],[],[]),count_assets:t.Func([t.Text,s],[t.Nat64],["query"]),count_collection_assets:t.Func([t.Text],[t.Nat64],["query"]),count_collection_docs:t.Func([t.Text],[t.Nat64],["query"]),count_docs:t.Func([t.Text,s],[t.Nat64],["query"]),count_proposals:t.Func([],[t.Nat64],["query"]),del_asset:t.Func([t.Text,t.Text],[],[]),del_assets:t.Func([t.Text],[],[]),del_controllers:t.Func([p],[t.Vec(t.Tuple(t.Principal,d))],[]),del_custom_domain:t.Func([t.Text],[],[]),del_doc:t.Func([t.Text,t.Text,f],[],[]),del_docs:t.Func([t.Text],[],[]),del_filtered_assets:t.Func([t.Text,s],[],[]),del_filtered_docs:t.Func([t.Text,s],[],[]),del_many_assets:t.Func([t.Vec(t.Tuple(t.Text,t.Text))],[],[]),del_many_docs:t.Func([t.Vec(t.Tuple(t.Text,t.Text,f))],[],[]),del_rule:t.Func([N,t.Text,M],[],[]),delete_proposal_assets:t.Func([E],[],[]),deposit_cycles:t.Func([k],[],[]),get_asset:t.Func([t.Text,t.Text],[t.Opt(x)],["query"]),get_auth_config:t.Func([],[t.Opt(F)],["query"]),get_config:t.Func([],[h],[]),get_db_config:t.Func([],[t.Opt(R)],["query"]),get_doc:t.Func([t.Text,t.Text],[t.Opt(_)],["query"]),get_many_assets:t.Func([t.Vec(t.Tuple(t.Text,t.Text))],[t.Vec(t.Tuple(t.Text,t.Opt(x)))],["query"]),get_many_docs:t.Func([t.Vec(t.Tuple(t.Text,t.Text))],[t.Vec(t.Tuple(t.Text,t.Opt(_)))],["query"]),get_proposal:t.Func([t.Nat],[t.Opt(P)],["query"]),get_rule:t.Func([N,t.Text],[t.Opt(z)],["query"]),get_storage_config:t.Func([],[g],["query"]),http_request:t.Func([K],[X],["query"]),http_request_streaming_callback:t.Func([H],[Y],["query"]),init_asset_upload:t.Func([G],[Q],[]),init_proposal:t.Func([B],[t.Nat,P],[]),init_proposal_asset_upload:t.Func([G,t.Nat],[Q],[]),list_assets:t.Func([t.Text,s],[Z],["query"]),list_controllers:t.Func([],[t.Vec(t.Tuple(t.Principal,d))],["query"]),list_custom_domains:t.Func([],[t.Vec(t.Tuple(t.Text,D))],["query"]),list_docs:t.Func([t.Text,s],[it],["query"]),list_proposals:t.Func([pt],[ut],["query"]),list_rules:t.Func([N,Tt],[mt],["query"]),memory_size:t.Func([],[Nt],["query"]),reject_proposal:t.Func([r],[t.Null],[]),set_auth_config:t.Func([gt],[F],[]),set_controllers:t.Func([yt],[t.Vec(t.Tuple(t.Principal,d))],[]),set_custom_domain:t.Func([t.Text,t.Opt(t.Text)],[],[]),set_db_config:t.Func([Ot],[R],[]),set_doc:t.Func([t.Text,t.Text,I],[_],[]),set_many_docs:t.Func([t.Vec(t.Tuple(t.Text,t.Text,I))],[t.Vec(t.Tuple(t.Text,_))],[]),set_rule:t.Func([N,t.Text,Ft],[z],[]),set_storage_config:t.Func([Rt],[g],[]),submit_proposal:t.Func([t.Nat],[t.Nat,P],[]),upload_asset_chunk:t.Func([L],[tt],[]),upload_proposal_asset_chunk:t.Func([L],[tt],[])})};var Ht=({IDL:t})=>{let e=t.Record({batch_id:t.Nat,headers:t.Vec(t.Tuple(t.Text,t.Text)),chunk_ids:t.Vec(t.Nat)}),r=t.Record({sha256:t.Vec(t.Nat8),proposal_id:t.Nat}),a=t.Variant({UpdatedAt:t.Null,Keys:t.Null,CreatedAt:t.Null}),o=t.Record({field:a,desc:t.Bool}),i=t.Variant({Equal:t.Nat64,Between:t.Tuple(t.Nat64,t.Nat64),GreaterThan:t.Nat64,LessThan:t.Nat64}),n=t.Record({key:t.Opt(t.Text),updated_at:t.Opt(i),description:t.Opt(t.Text),created_at:t.Opt(i)}),c=t.Record({start_after:t.Opt(t.Text),limit:t.Opt(t.Nat64)}),s=t.Record({order:t.Opt(o),owner:t.Opt(t.Principal),matcher:t.Opt(n),paginate:t.Opt(c)}),p=t.Record({controllers:t.Vec(t.Principal)}),l=t.Variant({Write:t.Null,Admin:t.Null,Submit:t.Null}),d=t.Record({updated_at:t.Nat64,metadata:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,scope:l,expires_at:t.Opt(t.Nat64)}),f=t.Record({version:t.Opt(t.Nat64)}),N=t.Variant({Db:t.Null,Storage:t.Null}),M=t.Record({version:t.Opt(t.Nat64)}),E=t.Record({proposal_ids:t.Vec(t.Nat)}),k=t.Record({cycles:t.Nat,destination_id:t.Principal}),q=t.Record({token:t.Opt(t.Text),collection:t.Text,owner:t.Principal,name:t.Text,description:t.Opt(t.Text),full_path:t.Text}),C=t.Record({modified:t.Nat64,sha256:t.Vec(t.Nat8),total_length:t.Nat}),x=t.Record({key:q,updated_at:t.Nat64,encodings:t.Vec(t.Tuple(t.Text,C)),headers:t.Vec(t.Tuple(t.Text,t.Text)),created_at:t.Nat64,version:t.Opt(t.Nat64)}),b=t.Record({derivation_origin:t.Opt(t.Text),external_alternative_origins:t.Opt(t.Vec(t.Text))}),y=t.Record({allowed_callers:t.Vec(t.Principal)}),F=t.Record({updated_at:t.Opt(t.Nat64),created_at:t.Opt(t.Nat64),version:t.Opt(t.Nat64),internet_identity:t.Opt(b),rules:t.Opt(y)}),u=t.Record({stable:t.Opt(t.Nat64),heap:t.Opt(t.Nat64)}),R=t.Record({updated_at:t.Opt(t.Nat64),created_at:t.Opt(t.Nat64),version:t.Opt(t.Nat64),max_memory_size:t.Opt(u)}),T=t.Variant({Deny:t.Null,AllowAny:t.Null,SameOrigin:t.Null}),m=t.Variant({Deny:t.Null,Allow:t.Null}),V=t.Record({status_code:t.Nat16,location:t.Text}),g=t.Record({iframe:t.Opt(T),updated_at:t.Opt(t.Nat64),rewrites:t.Vec(t.Tuple(t.Text,t.Text)),headers:t.Vec(t.Tuple(t.Text,t.Vec(t.Tuple(t.Text,t.Text)))),created_at:t.Opt(t.Nat64),version:t.Opt(t.Nat64),max_memory_size:t.Opt(u),raw_access:t.Opt(m),redirects:t.Opt(t.Vec(t.Tuple(t.Text,V)))}),h=t.Record({db:t.Opt(R),authentication:t.Opt(F),storage:g}),_=t.Record({updated_at:t.Nat64,owner:t.Principal,data:t.Vec(t.Nat8),description:t.Opt(t.Text),created_at:t.Nat64,version:t.Opt(t.Nat64)}),A=t.Variant({Initialized:t.Null,Failed:t.Null,Open:t.Null,Rejected:t.Null,Executed:t.Null,Accepted:t.Null}),v=t.Record({clear_existing_assets:t.Opt(t.Bool)}),S=t.Record({orbiter:t.Opt(t.Text),mission_control_version:t.Opt(t.Text),satellite_version:t.Opt(t.Text)}),B=t.Variant({AssetsUpgrade:v,SegmentsDeployment:S}),P=t.Record({status:A,updated_at:t.Nat64,sha256:t.Opt(t.Vec(t.Nat8)),executed_at:t.Opt(t.Nat64),owner:t.Principal,created_at:t.Nat64,version:t.Opt(t.Nat64),proposal_type:B}),w=t.Variant({Heap:t.Null,Stable:t.Null}),O=t.Variant({Controllers:t.Null,Private:t.Null,Public:t.Null,Managed:t.Null}),U=t.Record({max_tokens:t.Nat64,time_per_token_ns:t.Nat64}),z=t.Record({max_capacity:t.Opt(t.Nat32),memory:t.Opt(w),updated_at:t.Nat64,max_size:t.Opt(t.Nat),read:O,created_at:t.Nat64,version:t.Opt(t.Nat64),mutable_permissions:t.Opt(t.Bool),rate_config:t.Opt(U),write:O,max_changes_per_user:t.Opt(t.Nat32)}),K=t.Record({url:t.Text,method:t.Text,body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text)),certificate_version:t.Opt(t.Nat16)}),H=t.Record({memory:w,token:t.Opt(t.Text),sha256:t.Opt(t.Vec(t.Nat8)),headers:t.Vec(t.Tuple(t.Text,t.Text)),index:t.Nat64,encoding_type:t.Text,full_path:t.Text}),W=t.Variant({Callback:t.Record({token:H,callback:t.Func([],[],[])})}),X=t.Record({body:t.Vec(t.Nat8),headers:t.Vec(t.Tuple(t.Text,t.Text)),streaming_strategy:t.Opt(W),status_code:t.Nat16}),Y=t.Record({token:t.Opt(H),body:t.Vec(t.Nat8)}),G=t.Record({token:t.Opt(t.Text),collection:t.Text,name:t.Text,description:t.Opt(t.Text),encoding_type:t.Opt(t.Text),full_path:t.Text}),Q=t.Record({batch_id:t.Nat}),Z=t.Record({matches_pages:t.Opt(t.Nat64),matches_length:t.Nat64,items_page:t.Opt(t.Nat64),items:t.Vec(t.Tuple(t.Text,x)),items_length:t.Nat64}),D=t.Record({updated_at:t.Nat64,created_at:t.Nat64,version:t.Opt(t.Nat64),bn_id:t.Opt(t.Text)}),it=t.Record({matches_pages:t.Opt(t.Nat64),matches_length:t.Nat64,items_page:t.Opt(t.Nat64),items:t.Vec(t.Tuple(t.Text,_)),items_length:t.Nat64}),st=t.Record({desc:t.Bool}),lt=t.Record({start_after:t.Opt(t.Nat),limit:t.Opt(t.Nat)}),pt=t.Record({order:t.Opt(st),paginate:t.Opt(lt)}),dt=t.Record({proposal_id:t.Nat}),ut=t.Record({matches_length:t.Nat64,items:t.Vec(t.Tuple(dt,P)),items_length:t.Nat64}),_t=t.Record({include_system:t.Bool}),Tt=t.Record({matcher:t.Opt(_t)}),mt=t.Record({matches_length:t.Nat64,items:t.Vec(t.Tuple(t.Text,z)),items_length:t.Nat64}),Nt=t.Record({stable:t.Nat64,heap:t.Nat64}),gt=t.Record({version:t.Opt(t.Nat64),internet_identity:t.Opt(b),rules:t.Opt(y)}),xt=t.Record({metadata:t.Vec(t.Tuple(t.Text,t.Text)),scope:l,expires_at:t.Opt(t.Nat64)}),yt=t.Record({controller:xt,controllers:t.Vec(t.Principal)}),Ot=t.Record({version:t.Opt(t.Nat64),max_memory_size:t.Opt(u)}),I=t.Record({data:t.Vec(t.Nat8),description:t.Opt(t.Text),version:t.Opt(t.Nat64)}),Ft=t.Record({max_capacity:t.Opt(t.Nat32),memory:t.Opt(w),max_size:t.Opt(t.Nat),read:O,version:t.Opt(t.Nat64),mutable_permissions:t.Opt(t.Bool),rate_config:t.Opt(U),write:O,max_changes_per_user:t.Opt(t.Nat32)}),Rt=t.Record({iframe:t.Opt(T),rewrites:t.Vec(t.Tuple(t.Text,t.Text)),headers:t.Vec(t.Tuple(t.Text,t.Vec(t.Tuple(t.Text,t.Text)))),version:t.Opt(t.Nat64),max_memory_size:t.Opt(u),raw_access:t.Opt(m),redirects:t.Opt(t.Vec(t.Tuple(t.Text,V)))}),L=t.Record({content:t.Vec(t.Nat8),batch_id:t.Nat,order_id:t.Opt(t.Nat)}),tt=t.Record({chunk_id:t.Nat});return t.Service({commit_asset_upload:t.Func([e],[],[]),commit_proposal:t.Func([r],[t.Null],[]),commit_proposal_asset_upload:t.Func([e],[],[]),count_assets:t.Func([t.Text,s],[t.Nat64],[]),count_collection_assets:t.Func([t.Text],[t.Nat64],[]),count_collection_docs:t.Func([t.Text],[t.Nat64],[]),count_docs:t.Func([t.Text,s],[t.Nat64],[]),count_proposals:t.Func([],[t.Nat64],[]),del_asset:t.Func([t.Text,t.Text],[],[]),del_assets:t.Func([t.Text],[],[]),del_controllers:t.Func([p],[t.Vec(t.Tuple(t.Principal,d))],[]),del_custom_domain:t.Func([t.Text],[],[]),del_doc:t.Func([t.Text,t.Text,f],[],[]),del_docs:t.Func([t.Text],[],[]),del_filtered_assets:t.Func([t.Text,s],[],[]),del_filtered_docs:t.Func([t.Text,s],[],[]),del_many_assets:t.Func([t.Vec(t.Tuple(t.Text,t.Text))],[],[]),del_many_docs:t.Func([t.Vec(t.Tuple(t.Text,t.Text,f))],[],[]),del_rule:t.Func([N,t.Text,M],[],[]),delete_proposal_assets:t.Func([E],[],[]),deposit_cycles:t.Func([k],[],[]),get_asset:t.Func([t.Text,t.Text],[t.Opt(x)],[]),get_auth_config:t.Func([],[t.Opt(F)],[]),get_config:t.Func([],[h],[]),get_db_config:t.Func([],[t.Opt(R)],[]),get_doc:t.Func([t.Text,t.Text],[t.Opt(_)],[]),get_many_assets:t.Func([t.Vec(t.Tuple(t.Text,t.Text))],[t.Vec(t.Tuple(t.Text,t.Opt(x)))],[]),get_many_docs:t.Func([t.Vec(t.Tuple(t.Text,t.Text))],[t.Vec(t.Tuple(t.Text,t.Opt(_)))],[]),get_proposal:t.Func([t.Nat],[t.Opt(P)],[]),get_rule:t.Func([N,t.Text],[t.Opt(z)],[]),get_storage_config:t.Func([],[g],[]),http_request:t.Func([K],[X],[]),http_request_streaming_callback:t.Func([H],[Y],[]),init_asset_upload:t.Func([G],[Q],[]),init_proposal:t.Func([B],[t.Nat,P],[]),init_proposal_asset_upload:t.Func([G,t.Nat],[Q],[]),list_assets:t.Func([t.Text,s],[Z],[]),list_controllers:t.Func([],[t.Vec(t.Tuple(t.Principal,d))],[]),list_custom_domains:t.Func([],[t.Vec(t.Tuple(t.Text,D))],[]),list_docs:t.Func([t.Text,s],[it],[]),list_proposals:t.Func([pt],[ut],[]),list_rules:t.Func([N,Tt],[mt],[]),memory_size:t.Func([],[Nt],[]),reject_proposal:t.Func([r],[t.Null],[]),set_auth_config:t.Func([gt],[F],[]),set_controllers:t.Func([yt],[t.Vec(t.Tuple(t.Principal,d))],[]),set_custom_domain:t.Func([t.Text,t.Opt(t.Text)],[],[]),set_db_config:t.Func([Ot],[R],[]),set_doc:t.Func([t.Text,t.Text,I],[_],[]),set_many_docs:t.Func([t.Vec(t.Tuple(t.Text,t.Text,I))],[t.Vec(t.Tuple(t.Text,_))],[]),set_rule:t.Func([N,t.Text,Ft],[z],[]),set_storage_config:t.Func([Rt],[g],[]),submit_proposal:t.Func([t.Nat],[t.Nat,P],[]),upload_asset_chunk:t.Func([L],[tt],[]),upload_proposal_asset_chunk:t.Func([L],[tt],[])})};var Zr=({satelliteId:t,...e})=>$({canisterId:t,...e,idlFactory:Ut}),Dr=({satelliteId:t,certified:e=!1,...r})=>$({canisterId:t,...r,idlFactory:e?Ht:zt}),Ir=({satelliteId:t,...e})=>$({canisterId:t,...e,idlFactory:qt}),Lr=({satelliteId:t,...e})=>$({canisterId:t,...e,idlFactory:Bt}),ta=({missionControlId:t,...e})=>$({canisterId:t,...e,idlFactory:St}),ea=({missionControlId:t,...e})=>$({canisterId:t,...e,idlFactory:Et}),ra=({orbiterId:t,certified:e=!1,...r})=>$({canisterId:t,...r,idlFactory:e?kt:wt}),aa=({orbiterId:t,...e})=>$({canisterId:t,...e,idlFactory:Mt}),$=({canisterId:t,idlFactory:e,...r})=>{if((0,de.isNullish)(t))throw new Error("No canister ID provided.");return Nr({canisterId:t,idlFactory:e,...r})},Nr=async({canisterId:t,idlFactory:e,config:r,...a})=>{let o=await pe(a);return mr.createActor(e,{agent:o,canisterId:t,...r??{}})};export{$ as getActor,ea as getDeprecatedMissionControlVersionActor,aa as getDeprecatedOrbiterVersionActor,Zr as getDeprecatedSatelliteActor,Ir as getDeprecatedSatelliteNoScopeActor,Lr as getDeprecatedSatelliteVersionActor,ta as getMissionControlActor,ra as getOrbiterActor,Dr as getSatelliteActor,kt as idlCertifiedFactoryOrbiter,Ht as idlCertifiedFactorySatellite,Et as idlDeprecatedFactoryMissionControlVersion,Mt as idlDeprecatedFactoryOrbiterVersion,Ut as idlDeprecatedFactorySatellite,qt as idlDeprecatedFactorySatelliteNoScope,Bt as idlDeprecatedFactorySatelliteVersion,St as idlFactoryMissionControl,wt as idlFactoryOrbiter,zt as idlFactorySatellite};
4
+ //# sourceMappingURL=index.mjs.map