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