@junobuild/ic-client 7.2.0 → 8.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/actor.js +1 -1
- package/actor.js.map +3 -3
- package/actor.mjs +1 -1
- package/actor.mjs.map +3 -3
- package/declarations/console/console.did.d.ts +21 -13
- package/declarations/console/console.factory.certified.did.js +23 -9
- package/declarations/console/console.factory.did.js +23 -9
- package/declarations/console/console.factory.did.mjs +23 -9
- package/declarations/deprecated/console-0-3-3.did.d.ts +529 -0
- package/declarations/deprecated/console-0-3-3.factory.did.js +567 -0
- package/declarations/deprecated/observatory-0-4-0.did.d.ts +145 -0
- package/declarations/deprecated/observatory-0-4-0.factory.did.js +149 -0
- package/declarations/deprecated/satellite-0-1-6.did.d.ts +511 -0
- package/declarations/deprecated/satellite-0-1-6.factory.did.js +546 -0
- package/declarations/mission_control/mission_control.did.d.ts +3 -0
- package/declarations/mission_control/mission_control.factory.certified.did.js +6 -0
- package/declarations/mission_control/mission_control.factory.did.js +6 -0
- package/declarations/observatory/observatory.did.d.ts +7 -4
- package/declarations/observatory/observatory.factory.certified.did.js +14 -4
- package/declarations/observatory/observatory.factory.did.js +14 -4
- package/declarations/observatory/observatory.factory.did.mjs +14 -4
- package/declarations/orbiter/orbiter.did.d.ts +3 -0
- package/declarations/orbiter/orbiter.factory.certified.did.js +6 -0
- package/declarations/orbiter/orbiter.factory.did.js +6 -0
- package/declarations/orbiter/orbiter.factory.did.mjs +6 -0
- package/declarations/satellite/satellite.did.d.ts +90 -12
- package/declarations/satellite/satellite.factory.certified.did.js +90 -8
- package/declarations/satellite/satellite.factory.did.js +90 -8
- package/declarations/satellite/satellite.factory.did.mjs +90 -8
- package/declarations/sputnik/sputnik.did.d.ts +90 -12
- package/declarations/sputnik/sputnik.factory.certified.did.js +90 -8
- package/declarations/sputnik/sputnik.factory.did.js +90 -8
- package/package.json +1 -1
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
|
|
5
|
+
// This file was automatically generated by @icp-sdk/bindgen@0.2.1.
|
|
6
|
+
// You should NOT make any changes in this file as it will be overwritten.
|
|
7
|
+
// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
|
|
8
|
+
|
|
9
|
+
export const idlFactory = ({IDL}) => {
|
|
10
|
+
const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
|
|
11
|
+
const InitStorageArgs = IDL.Record({system_memory: IDL.Opt(Memory)});
|
|
12
|
+
const InitSatelliteArgs = IDL.Record({
|
|
13
|
+
controllers: IDL.Vec(IDL.Principal),
|
|
14
|
+
storage: IDL.Opt(InitStorageArgs)
|
|
15
|
+
});
|
|
16
|
+
const OpenIdPrepareDelegationArgs = IDL.Record({
|
|
17
|
+
jwt: IDL.Text,
|
|
18
|
+
session_key: IDL.Vec(IDL.Nat8),
|
|
19
|
+
salt: IDL.Vec(IDL.Nat8)
|
|
20
|
+
});
|
|
21
|
+
const AuthenticationArgs = IDL.Variant({
|
|
22
|
+
OpenId: OpenIdPrepareDelegationArgs
|
|
23
|
+
});
|
|
24
|
+
const Doc = IDL.Record({
|
|
25
|
+
updated_at: IDL.Nat64,
|
|
26
|
+
owner: IDL.Principal,
|
|
27
|
+
data: IDL.Vec(IDL.Nat8),
|
|
28
|
+
description: IDL.Opt(IDL.Text),
|
|
29
|
+
created_at: IDL.Nat64,
|
|
30
|
+
version: IDL.Opt(IDL.Nat64)
|
|
31
|
+
});
|
|
32
|
+
const PreparedDelegation = IDL.Record({
|
|
33
|
+
user_key: IDL.Vec(IDL.Nat8),
|
|
34
|
+
expiration: IDL.Nat64
|
|
35
|
+
});
|
|
36
|
+
const Authentication = IDL.Record({
|
|
37
|
+
doc: Doc,
|
|
38
|
+
delegation: PreparedDelegation
|
|
39
|
+
});
|
|
40
|
+
const JwtFindProviderError = IDL.Variant({
|
|
41
|
+
BadClaim: IDL.Text,
|
|
42
|
+
BadSig: IDL.Text,
|
|
43
|
+
NoMatchingProvider: IDL.Null
|
|
44
|
+
});
|
|
45
|
+
const JwtVerifyError = IDL.Variant({
|
|
46
|
+
WrongKeyType: IDL.Null,
|
|
47
|
+
MissingKid: IDL.Null,
|
|
48
|
+
BadClaim: IDL.Text,
|
|
49
|
+
BadSig: IDL.Text,
|
|
50
|
+
NoKeyForKid: IDL.Null
|
|
51
|
+
});
|
|
52
|
+
const GetOrRefreshJwksError = IDL.Variant({
|
|
53
|
+
InvalidConfig: IDL.Text,
|
|
54
|
+
MissingKid: IDL.Null,
|
|
55
|
+
BadClaim: IDL.Text,
|
|
56
|
+
KeyNotFoundCooldown: IDL.Null,
|
|
57
|
+
CertificateNotFound: IDL.Null,
|
|
58
|
+
BadSig: IDL.Text,
|
|
59
|
+
MissingLastAttempt: IDL.Text,
|
|
60
|
+
KeyNotFound: IDL.Null,
|
|
61
|
+
FetchFailed: IDL.Text
|
|
62
|
+
});
|
|
63
|
+
const PrepareDelegationError = IDL.Variant({
|
|
64
|
+
JwtFindProvider: JwtFindProviderError,
|
|
65
|
+
GetCachedJwks: IDL.Null,
|
|
66
|
+
JwtVerify: JwtVerifyError,
|
|
67
|
+
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
68
|
+
DeriveSeedFailed: IDL.Text
|
|
69
|
+
});
|
|
70
|
+
const AuthenticationError = IDL.Variant({
|
|
71
|
+
PrepareDelegation: PrepareDelegationError,
|
|
72
|
+
RegisterUser: IDL.Text
|
|
73
|
+
});
|
|
74
|
+
const AuthenticateResultResponse = IDL.Variant({
|
|
75
|
+
Ok: Authentication,
|
|
76
|
+
Err: AuthenticationError
|
|
77
|
+
});
|
|
78
|
+
const CommitBatch = IDL.Record({
|
|
79
|
+
batch_id: IDL.Nat,
|
|
80
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
81
|
+
chunk_ids: IDL.Vec(IDL.Nat)
|
|
82
|
+
});
|
|
83
|
+
const CommitProposal = IDL.Record({
|
|
84
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
85
|
+
proposal_id: IDL.Nat
|
|
86
|
+
});
|
|
87
|
+
const ListOrderField = IDL.Variant({
|
|
88
|
+
UpdatedAt: IDL.Null,
|
|
89
|
+
Keys: IDL.Null,
|
|
90
|
+
CreatedAt: IDL.Null
|
|
91
|
+
});
|
|
92
|
+
const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
|
|
93
|
+
const TimestampMatcher = IDL.Variant({
|
|
94
|
+
Equal: IDL.Nat64,
|
|
95
|
+
Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
|
|
96
|
+
GreaterThan: IDL.Nat64,
|
|
97
|
+
LessThan: IDL.Nat64
|
|
98
|
+
});
|
|
99
|
+
const ListMatcher = IDL.Record({
|
|
100
|
+
key: IDL.Opt(IDL.Text),
|
|
101
|
+
updated_at: IDL.Opt(TimestampMatcher),
|
|
102
|
+
description: IDL.Opt(IDL.Text),
|
|
103
|
+
created_at: IDL.Opt(TimestampMatcher)
|
|
104
|
+
});
|
|
105
|
+
const ListPaginate = IDL.Record({
|
|
106
|
+
start_after: IDL.Opt(IDL.Text),
|
|
107
|
+
limit: IDL.Opt(IDL.Nat64)
|
|
108
|
+
});
|
|
109
|
+
const ListParams = IDL.Record({
|
|
110
|
+
order: IDL.Opt(ListOrder),
|
|
111
|
+
owner: IDL.Opt(IDL.Principal),
|
|
112
|
+
matcher: IDL.Opt(ListMatcher),
|
|
113
|
+
paginate: IDL.Opt(ListPaginate)
|
|
114
|
+
});
|
|
115
|
+
const DeleteControllersArgs = IDL.Record({
|
|
116
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
117
|
+
});
|
|
118
|
+
const ControllerScope = IDL.Variant({
|
|
119
|
+
Write: IDL.Null,
|
|
120
|
+
Admin: IDL.Null,
|
|
121
|
+
Submit: IDL.Null
|
|
122
|
+
});
|
|
123
|
+
const Controller = IDL.Record({
|
|
124
|
+
updated_at: IDL.Nat64,
|
|
125
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
126
|
+
created_at: IDL.Nat64,
|
|
127
|
+
scope: ControllerScope,
|
|
128
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
129
|
+
});
|
|
130
|
+
const DelDoc = IDL.Record({version: IDL.Opt(IDL.Nat64)});
|
|
131
|
+
const CollectionType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
|
|
132
|
+
const DelRule = IDL.Record({version: IDL.Opt(IDL.Nat64)});
|
|
133
|
+
const DeleteProposalAssets = IDL.Record({
|
|
134
|
+
proposal_ids: IDL.Vec(IDL.Nat)
|
|
135
|
+
});
|
|
136
|
+
const DepositCyclesArgs = IDL.Record({
|
|
137
|
+
cycles: IDL.Nat,
|
|
138
|
+
destination_id: IDL.Principal
|
|
139
|
+
});
|
|
140
|
+
const AssetKey = IDL.Record({
|
|
141
|
+
token: IDL.Opt(IDL.Text),
|
|
142
|
+
collection: IDL.Text,
|
|
143
|
+
owner: IDL.Principal,
|
|
144
|
+
name: IDL.Text,
|
|
145
|
+
description: IDL.Opt(IDL.Text),
|
|
146
|
+
full_path: IDL.Text
|
|
147
|
+
});
|
|
148
|
+
const AssetEncodingNoContent = IDL.Record({
|
|
149
|
+
modified: IDL.Nat64,
|
|
150
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
151
|
+
total_length: IDL.Nat
|
|
152
|
+
});
|
|
153
|
+
const AssetNoContent = IDL.Record({
|
|
154
|
+
key: AssetKey,
|
|
155
|
+
updated_at: IDL.Nat64,
|
|
156
|
+
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
157
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
158
|
+
created_at: IDL.Nat64,
|
|
159
|
+
version: IDL.Opt(IDL.Nat64)
|
|
160
|
+
});
|
|
161
|
+
const OpenIdProvider = IDL.Variant({Google: IDL.Null});
|
|
162
|
+
const OpenIdProviderDelegationConfig = IDL.Record({
|
|
163
|
+
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
164
|
+
max_time_to_live: IDL.Opt(IDL.Nat64)
|
|
165
|
+
});
|
|
166
|
+
const OpenIdProviderConfig = IDL.Record({
|
|
167
|
+
delegation: IDL.Opt(OpenIdProviderDelegationConfig),
|
|
168
|
+
client_id: IDL.Text
|
|
169
|
+
});
|
|
170
|
+
const AuthenticationConfigOpenId = IDL.Record({
|
|
171
|
+
observatory_id: IDL.Opt(IDL.Principal),
|
|
172
|
+
providers: IDL.Vec(IDL.Tuple(OpenIdProvider, OpenIdProviderConfig))
|
|
173
|
+
});
|
|
174
|
+
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
175
|
+
derivation_origin: IDL.Opt(IDL.Text),
|
|
176
|
+
external_alternative_origins: IDL.Opt(IDL.Vec(IDL.Text))
|
|
177
|
+
});
|
|
178
|
+
const AuthenticationRules = IDL.Record({
|
|
179
|
+
allowed_callers: IDL.Vec(IDL.Principal)
|
|
180
|
+
});
|
|
181
|
+
const AuthenticationConfig = IDL.Record({
|
|
182
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
183
|
+
openid: IDL.Opt(AuthenticationConfigOpenId),
|
|
184
|
+
created_at: IDL.Opt(IDL.Nat64),
|
|
185
|
+
version: IDL.Opt(IDL.Nat64),
|
|
186
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
187
|
+
rules: IDL.Opt(AuthenticationRules)
|
|
188
|
+
});
|
|
189
|
+
const ConfigMaxMemorySize = IDL.Record({
|
|
190
|
+
stable: IDL.Opt(IDL.Nat64),
|
|
191
|
+
heap: IDL.Opt(IDL.Nat64)
|
|
192
|
+
});
|
|
193
|
+
const DbConfig = IDL.Record({
|
|
194
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
195
|
+
created_at: IDL.Opt(IDL.Nat64),
|
|
196
|
+
version: IDL.Opt(IDL.Nat64),
|
|
197
|
+
max_memory_size: IDL.Opt(ConfigMaxMemorySize)
|
|
198
|
+
});
|
|
199
|
+
const StorageConfigIFrame = IDL.Variant({
|
|
200
|
+
Deny: IDL.Null,
|
|
201
|
+
AllowAny: IDL.Null,
|
|
202
|
+
SameOrigin: IDL.Null
|
|
203
|
+
});
|
|
204
|
+
const StorageConfigRawAccess = IDL.Variant({
|
|
205
|
+
Deny: IDL.Null,
|
|
206
|
+
Allow: IDL.Null
|
|
207
|
+
});
|
|
208
|
+
const StorageConfigRedirect = IDL.Record({
|
|
209
|
+
status_code: IDL.Nat16,
|
|
210
|
+
location: IDL.Text
|
|
211
|
+
});
|
|
212
|
+
const StorageConfig = IDL.Record({
|
|
213
|
+
iframe: IDL.Opt(StorageConfigIFrame),
|
|
214
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
215
|
+
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
216
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
|
|
217
|
+
created_at: IDL.Opt(IDL.Nat64),
|
|
218
|
+
version: IDL.Opt(IDL.Nat64),
|
|
219
|
+
max_memory_size: IDL.Opt(ConfigMaxMemorySize),
|
|
220
|
+
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
221
|
+
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
222
|
+
});
|
|
223
|
+
const Config = IDL.Record({
|
|
224
|
+
db: IDL.Opt(DbConfig),
|
|
225
|
+
authentication: IDL.Opt(AuthenticationConfig),
|
|
226
|
+
storage: StorageConfig
|
|
227
|
+
});
|
|
228
|
+
const OpenIdGetDelegationArgs = IDL.Record({
|
|
229
|
+
jwt: IDL.Text,
|
|
230
|
+
session_key: IDL.Vec(IDL.Nat8),
|
|
231
|
+
salt: IDL.Vec(IDL.Nat8),
|
|
232
|
+
expiration: IDL.Nat64
|
|
233
|
+
});
|
|
234
|
+
const GetDelegationArgs = IDL.Variant({OpenId: OpenIdGetDelegationArgs});
|
|
235
|
+
const Delegation = IDL.Record({
|
|
236
|
+
pubkey: IDL.Vec(IDL.Nat8),
|
|
237
|
+
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
238
|
+
expiration: IDL.Nat64
|
|
239
|
+
});
|
|
240
|
+
const SignedDelegation = IDL.Record({
|
|
241
|
+
signature: IDL.Vec(IDL.Nat8),
|
|
242
|
+
delegation: Delegation
|
|
243
|
+
});
|
|
244
|
+
const GetDelegationError = IDL.Variant({
|
|
245
|
+
JwtFindProvider: JwtFindProviderError,
|
|
246
|
+
GetCachedJwks: IDL.Null,
|
|
247
|
+
NoSuchDelegation: IDL.Null,
|
|
248
|
+
JwtVerify: JwtVerifyError,
|
|
249
|
+
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
250
|
+
DeriveSeedFailed: IDL.Text
|
|
251
|
+
});
|
|
252
|
+
const GetDelegationResultResponse = IDL.Variant({
|
|
253
|
+
Ok: SignedDelegation,
|
|
254
|
+
Err: GetDelegationError
|
|
255
|
+
});
|
|
256
|
+
const ProposalStatus = IDL.Variant({
|
|
257
|
+
Initialized: IDL.Null,
|
|
258
|
+
Failed: IDL.Null,
|
|
259
|
+
Open: IDL.Null,
|
|
260
|
+
Rejected: IDL.Null,
|
|
261
|
+
Executed: IDL.Null,
|
|
262
|
+
Accepted: IDL.Null
|
|
263
|
+
});
|
|
264
|
+
const AssetsUpgradeOptions = IDL.Record({
|
|
265
|
+
clear_existing_assets: IDL.Opt(IDL.Bool)
|
|
266
|
+
});
|
|
267
|
+
const SegmentsDeploymentOptions = IDL.Record({
|
|
268
|
+
orbiter: IDL.Opt(IDL.Text),
|
|
269
|
+
mission_control_version: IDL.Opt(IDL.Text),
|
|
270
|
+
satellite_version: IDL.Opt(IDL.Text)
|
|
271
|
+
});
|
|
272
|
+
const ProposalType = IDL.Variant({
|
|
273
|
+
AssetsUpgrade: AssetsUpgradeOptions,
|
|
274
|
+
SegmentsDeployment: SegmentsDeploymentOptions
|
|
275
|
+
});
|
|
276
|
+
const Proposal = IDL.Record({
|
|
277
|
+
status: ProposalStatus,
|
|
278
|
+
updated_at: IDL.Nat64,
|
|
279
|
+
sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
280
|
+
executed_at: IDL.Opt(IDL.Nat64),
|
|
281
|
+
owner: IDL.Principal,
|
|
282
|
+
created_at: IDL.Nat64,
|
|
283
|
+
version: IDL.Opt(IDL.Nat64),
|
|
284
|
+
proposal_type: ProposalType
|
|
285
|
+
});
|
|
286
|
+
const Permission = IDL.Variant({
|
|
287
|
+
Controllers: IDL.Null,
|
|
288
|
+
Private: IDL.Null,
|
|
289
|
+
Public: IDL.Null,
|
|
290
|
+
Managed: IDL.Null
|
|
291
|
+
});
|
|
292
|
+
const RateConfig = IDL.Record({
|
|
293
|
+
max_tokens: IDL.Nat64,
|
|
294
|
+
time_per_token_ns: IDL.Nat64
|
|
295
|
+
});
|
|
296
|
+
const Rule = IDL.Record({
|
|
297
|
+
max_capacity: IDL.Opt(IDL.Nat32),
|
|
298
|
+
memory: IDL.Opt(Memory),
|
|
299
|
+
updated_at: IDL.Nat64,
|
|
300
|
+
max_size: IDL.Opt(IDL.Nat),
|
|
301
|
+
read: Permission,
|
|
302
|
+
created_at: IDL.Nat64,
|
|
303
|
+
version: IDL.Opt(IDL.Nat64),
|
|
304
|
+
mutable_permissions: IDL.Opt(IDL.Bool),
|
|
305
|
+
rate_config: IDL.Opt(RateConfig),
|
|
306
|
+
write: Permission,
|
|
307
|
+
max_changes_per_user: IDL.Opt(IDL.Nat32)
|
|
308
|
+
});
|
|
309
|
+
const HttpRequest = IDL.Record({
|
|
310
|
+
url: IDL.Text,
|
|
311
|
+
method: IDL.Text,
|
|
312
|
+
body: IDL.Vec(IDL.Nat8),
|
|
313
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
314
|
+
certificate_version: IDL.Opt(IDL.Nat16)
|
|
315
|
+
});
|
|
316
|
+
const StreamingCallbackToken = IDL.Record({
|
|
317
|
+
memory: Memory,
|
|
318
|
+
token: IDL.Opt(IDL.Text),
|
|
319
|
+
sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
320
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
321
|
+
index: IDL.Nat64,
|
|
322
|
+
encoding_type: IDL.Text,
|
|
323
|
+
full_path: IDL.Text
|
|
324
|
+
});
|
|
325
|
+
const StreamingStrategy = IDL.Variant({
|
|
326
|
+
Callback: IDL.Record({
|
|
327
|
+
token: StreamingCallbackToken,
|
|
328
|
+
callback: IDL.Func([], [], ['query'])
|
|
329
|
+
})
|
|
330
|
+
});
|
|
331
|
+
const HttpResponse = IDL.Record({
|
|
332
|
+
body: IDL.Vec(IDL.Nat8),
|
|
333
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
334
|
+
streaming_strategy: IDL.Opt(StreamingStrategy),
|
|
335
|
+
status_code: IDL.Nat16
|
|
336
|
+
});
|
|
337
|
+
const StreamingCallbackHttpResponse = IDL.Record({
|
|
338
|
+
token: IDL.Opt(StreamingCallbackToken),
|
|
339
|
+
body: IDL.Vec(IDL.Nat8)
|
|
340
|
+
});
|
|
341
|
+
const InitAssetKey = IDL.Record({
|
|
342
|
+
token: IDL.Opt(IDL.Text),
|
|
343
|
+
collection: IDL.Text,
|
|
344
|
+
name: IDL.Text,
|
|
345
|
+
description: IDL.Opt(IDL.Text),
|
|
346
|
+
encoding_type: IDL.Opt(IDL.Text),
|
|
347
|
+
full_path: IDL.Text
|
|
348
|
+
});
|
|
349
|
+
const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
|
|
350
|
+
const ListResults = IDL.Record({
|
|
351
|
+
matches_pages: IDL.Opt(IDL.Nat64),
|
|
352
|
+
matches_length: IDL.Nat64,
|
|
353
|
+
items_page: IDL.Opt(IDL.Nat64),
|
|
354
|
+
items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
|
|
355
|
+
items_length: IDL.Nat64
|
|
356
|
+
});
|
|
357
|
+
const CustomDomain = IDL.Record({
|
|
358
|
+
updated_at: IDL.Nat64,
|
|
359
|
+
created_at: IDL.Nat64,
|
|
360
|
+
version: IDL.Opt(IDL.Nat64),
|
|
361
|
+
bn_id: IDL.Opt(IDL.Text)
|
|
362
|
+
});
|
|
363
|
+
const ListResults_1 = IDL.Record({
|
|
364
|
+
matches_pages: IDL.Opt(IDL.Nat64),
|
|
365
|
+
matches_length: IDL.Nat64,
|
|
366
|
+
items_page: IDL.Opt(IDL.Nat64),
|
|
367
|
+
items: IDL.Vec(IDL.Tuple(IDL.Text, Doc)),
|
|
368
|
+
items_length: IDL.Nat64
|
|
369
|
+
});
|
|
370
|
+
const ListProposalsOrder = IDL.Record({desc: IDL.Bool});
|
|
371
|
+
const ListProposalsPaginate = IDL.Record({
|
|
372
|
+
start_after: IDL.Opt(IDL.Nat),
|
|
373
|
+
limit: IDL.Opt(IDL.Nat)
|
|
374
|
+
});
|
|
375
|
+
const ListProposalsParams = IDL.Record({
|
|
376
|
+
order: IDL.Opt(ListProposalsOrder),
|
|
377
|
+
paginate: IDL.Opt(ListProposalsPaginate)
|
|
378
|
+
});
|
|
379
|
+
const ProposalKey = IDL.Record({proposal_id: IDL.Nat});
|
|
380
|
+
const ListProposalResults = IDL.Record({
|
|
381
|
+
matches_length: IDL.Nat64,
|
|
382
|
+
items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)),
|
|
383
|
+
items_length: IDL.Nat64
|
|
384
|
+
});
|
|
385
|
+
const ListRulesMatcher = IDL.Record({include_system: IDL.Bool});
|
|
386
|
+
const ListRulesParams = IDL.Record({matcher: IDL.Opt(ListRulesMatcher)});
|
|
387
|
+
const ListRulesResults = IDL.Record({
|
|
388
|
+
matches_length: IDL.Nat64,
|
|
389
|
+
items: IDL.Vec(IDL.Tuple(IDL.Text, Rule)),
|
|
390
|
+
items_length: IDL.Nat64
|
|
391
|
+
});
|
|
392
|
+
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
393
|
+
const SetAuthenticationConfig = IDL.Record({
|
|
394
|
+
openid: IDL.Opt(AuthenticationConfigOpenId),
|
|
395
|
+
version: IDL.Opt(IDL.Nat64),
|
|
396
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
397
|
+
rules: IDL.Opt(AuthenticationRules)
|
|
398
|
+
});
|
|
399
|
+
const SetController = IDL.Record({
|
|
400
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
401
|
+
scope: ControllerScope,
|
|
402
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
403
|
+
});
|
|
404
|
+
const SetControllersArgs = IDL.Record({
|
|
405
|
+
controller: SetController,
|
|
406
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
407
|
+
});
|
|
408
|
+
const SetDbConfig = IDL.Record({
|
|
409
|
+
version: IDL.Opt(IDL.Nat64),
|
|
410
|
+
max_memory_size: IDL.Opt(ConfigMaxMemorySize)
|
|
411
|
+
});
|
|
412
|
+
const SetDoc = IDL.Record({
|
|
413
|
+
data: IDL.Vec(IDL.Nat8),
|
|
414
|
+
description: IDL.Opt(IDL.Text),
|
|
415
|
+
version: IDL.Opt(IDL.Nat64)
|
|
416
|
+
});
|
|
417
|
+
const SetRule = IDL.Record({
|
|
418
|
+
max_capacity: IDL.Opt(IDL.Nat32),
|
|
419
|
+
memory: IDL.Opt(Memory),
|
|
420
|
+
max_size: IDL.Opt(IDL.Nat),
|
|
421
|
+
read: Permission,
|
|
422
|
+
version: IDL.Opt(IDL.Nat64),
|
|
423
|
+
mutable_permissions: IDL.Opt(IDL.Bool),
|
|
424
|
+
rate_config: IDL.Opt(RateConfig),
|
|
425
|
+
write: Permission,
|
|
426
|
+
max_changes_per_user: IDL.Opt(IDL.Nat32)
|
|
427
|
+
});
|
|
428
|
+
const SetStorageConfig = IDL.Record({
|
|
429
|
+
iframe: IDL.Opt(StorageConfigIFrame),
|
|
430
|
+
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
431
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
|
|
432
|
+
version: IDL.Opt(IDL.Nat64),
|
|
433
|
+
max_memory_size: IDL.Opt(ConfigMaxMemorySize),
|
|
434
|
+
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
435
|
+
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
436
|
+
});
|
|
437
|
+
const UploadChunk = IDL.Record({
|
|
438
|
+
content: IDL.Vec(IDL.Nat8),
|
|
439
|
+
batch_id: IDL.Nat,
|
|
440
|
+
order_id: IDL.Opt(IDL.Nat)
|
|
441
|
+
});
|
|
442
|
+
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
|
|
443
|
+
|
|
444
|
+
return IDL.Service({
|
|
445
|
+
authenticate: IDL.Func([AuthenticationArgs], [AuthenticateResultResponse], []),
|
|
446
|
+
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
447
|
+
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
448
|
+
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
449
|
+
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
450
|
+
count_assets: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
|
|
451
|
+
count_collection_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
452
|
+
count_collection_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
453
|
+
count_docs: IDL.Func([IDL.Text, ListParams], [IDL.Nat64], ['query']),
|
|
454
|
+
count_proposals: IDL.Func([], [IDL.Nat64], ['query']),
|
|
455
|
+
del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
|
|
456
|
+
del_assets: IDL.Func([IDL.Text], [], []),
|
|
457
|
+
del_controllers: IDL.Func(
|
|
458
|
+
[DeleteControllersArgs],
|
|
459
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
460
|
+
[]
|
|
461
|
+
),
|
|
462
|
+
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
463
|
+
del_doc: IDL.Func([IDL.Text, IDL.Text, DelDoc], [], []),
|
|
464
|
+
del_docs: IDL.Func([IDL.Text], [], []),
|
|
465
|
+
del_filtered_assets: IDL.Func([IDL.Text, ListParams], [], []),
|
|
466
|
+
del_filtered_docs: IDL.Func([IDL.Text, ListParams], [], []),
|
|
467
|
+
del_many_assets: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
|
|
468
|
+
del_many_docs: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, DelDoc))], [], []),
|
|
469
|
+
del_rule: IDL.Func([CollectionType, IDL.Text, DelRule], [], []),
|
|
470
|
+
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
471
|
+
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
472
|
+
get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
|
|
473
|
+
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
474
|
+
get_config: IDL.Func([], [Config], []),
|
|
475
|
+
get_db_config: IDL.Func([], [IDL.Opt(DbConfig)], ['query']),
|
|
476
|
+
get_delegation: IDL.Func([GetDelegationArgs], [GetDelegationResultResponse], ['query']),
|
|
477
|
+
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
478
|
+
get_many_assets: IDL.Func(
|
|
479
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
480
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(AssetNoContent)))],
|
|
481
|
+
['query']
|
|
482
|
+
),
|
|
483
|
+
get_many_docs: IDL.Func(
|
|
484
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
485
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
|
|
486
|
+
['query']
|
|
487
|
+
),
|
|
488
|
+
get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']),
|
|
489
|
+
get_rule: IDL.Func([CollectionType, IDL.Text], [IDL.Opt(Rule)], ['query']),
|
|
490
|
+
get_storage_config: IDL.Func([], [StorageConfig], ['query']),
|
|
491
|
+
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
492
|
+
http_request_streaming_callback: IDL.Func(
|
|
493
|
+
[StreamingCallbackToken],
|
|
494
|
+
[StreamingCallbackHttpResponse],
|
|
495
|
+
['query']
|
|
496
|
+
),
|
|
497
|
+
init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
|
|
498
|
+
init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
|
|
499
|
+
init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
500
|
+
init_proposal_many_assets_upload: IDL.Func(
|
|
501
|
+
[IDL.Vec(InitAssetKey), IDL.Nat],
|
|
502
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
503
|
+
[]
|
|
504
|
+
),
|
|
505
|
+
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
506
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
507
|
+
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
508
|
+
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
509
|
+
list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], ['query']),
|
|
510
|
+
list_rules: IDL.Func([CollectionType, ListRulesParams], [ListRulesResults], ['query']),
|
|
511
|
+
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
512
|
+
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
513
|
+
set_asset_token: IDL.Func([IDL.Text, IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
514
|
+
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
|
|
515
|
+
set_controllers: IDL.Func(
|
|
516
|
+
[SetControllersArgs],
|
|
517
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
518
|
+
[]
|
|
519
|
+
),
|
|
520
|
+
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
521
|
+
set_db_config: IDL.Func([SetDbConfig], [DbConfig], []),
|
|
522
|
+
set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
|
|
523
|
+
set_many_docs: IDL.Func(
|
|
524
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, SetDoc))],
|
|
525
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, Doc))],
|
|
526
|
+
[]
|
|
527
|
+
),
|
|
528
|
+
set_rule: IDL.Func([CollectionType, IDL.Text, SetRule], [Rule], []),
|
|
529
|
+
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
530
|
+
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
531
|
+
switch_storage_system_memory: IDL.Func([], [], []),
|
|
532
|
+
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
533
|
+
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
|
|
534
|
+
});
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
export const init = ({IDL}) => {
|
|
538
|
+
const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
|
|
539
|
+
const InitStorageArgs = IDL.Record({system_memory: IDL.Opt(Memory)});
|
|
540
|
+
const InitSatelliteArgs = IDL.Record({
|
|
541
|
+
controllers: IDL.Vec(IDL.Principal),
|
|
542
|
+
storage: IDL.Opt(InitStorageArgs)
|
|
543
|
+
});
|
|
544
|
+
|
|
545
|
+
return [InitSatelliteArgs];
|
|
546
|
+
};
|
|
@@ -20,10 +20,12 @@ export interface Config {
|
|
|
20
20
|
export interface Controller {
|
|
21
21
|
updated_at: bigint;
|
|
22
22
|
metadata: Array<[string, string]>;
|
|
23
|
+
kind: [] | [ControllerKind];
|
|
23
24
|
created_at: bigint;
|
|
24
25
|
scope: ControllerScope;
|
|
25
26
|
expires_at: [] | [bigint];
|
|
26
27
|
}
|
|
28
|
+
export type ControllerKind = { Emulator: null } | { Automation: null };
|
|
27
29
|
export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
28
30
|
export interface CreateCanisterConfig {
|
|
29
31
|
subnet_id: [] | [Principal];
|
|
@@ -150,6 +152,7 @@ export interface SegmentsMonitoringStrategy {
|
|
|
150
152
|
}
|
|
151
153
|
export interface SetController {
|
|
152
154
|
metadata: Array<[string, string]>;
|
|
155
|
+
kind: [] | [ControllerKind];
|
|
153
156
|
scope: ControllerScope;
|
|
154
157
|
expires_at: [] | [bigint];
|
|
155
158
|
}
|
|
@@ -163,6 +163,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
163
163
|
InsufficientFunds: IDL.Record({balance: IDL.Nat})
|
|
164
164
|
});
|
|
165
165
|
const Result_1 = IDL.Variant({Ok: IDL.Nat, Err: TransferError_1});
|
|
166
|
+
const ControllerKind = IDL.Variant({
|
|
167
|
+
Emulator: IDL.Null,
|
|
168
|
+
Automation: IDL.Null
|
|
169
|
+
});
|
|
166
170
|
const ControllerScope = IDL.Variant({
|
|
167
171
|
Write: IDL.Null,
|
|
168
172
|
Admin: IDL.Null,
|
|
@@ -171,12 +175,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
171
175
|
const Controller = IDL.Record({
|
|
172
176
|
updated_at: IDL.Nat64,
|
|
173
177
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
178
|
+
kind: IDL.Opt(ControllerKind),
|
|
174
179
|
created_at: IDL.Nat64,
|
|
175
180
|
scope: ControllerScope,
|
|
176
181
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
177
182
|
});
|
|
178
183
|
const SetController = IDL.Record({
|
|
179
184
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
185
|
+
kind: IDL.Opt(ControllerKind),
|
|
180
186
|
scope: ControllerScope,
|
|
181
187
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
182
188
|
});
|
|
@@ -163,6 +163,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
163
163
|
InsufficientFunds: IDL.Record({balance: IDL.Nat})
|
|
164
164
|
});
|
|
165
165
|
const Result_1 = IDL.Variant({Ok: IDL.Nat, Err: TransferError_1});
|
|
166
|
+
const ControllerKind = IDL.Variant({
|
|
167
|
+
Emulator: IDL.Null,
|
|
168
|
+
Automation: IDL.Null
|
|
169
|
+
});
|
|
166
170
|
const ControllerScope = IDL.Variant({
|
|
167
171
|
Write: IDL.Null,
|
|
168
172
|
Admin: IDL.Null,
|
|
@@ -171,12 +175,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
171
175
|
const Controller = IDL.Record({
|
|
172
176
|
updated_at: IDL.Nat64,
|
|
173
177
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
178
|
+
kind: IDL.Opt(ControllerKind),
|
|
174
179
|
created_at: IDL.Nat64,
|
|
175
180
|
scope: ControllerScope,
|
|
176
181
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
177
182
|
});
|
|
178
183
|
const SetController = IDL.Record({
|
|
179
184
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
185
|
+
kind: IDL.Opt(ControllerKind),
|
|
180
186
|
scope: ControllerScope,
|
|
181
187
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
182
188
|
});
|
|
@@ -13,10 +13,12 @@ import type { Principal } from '@icp-sdk/core/principal';
|
|
|
13
13
|
export interface Controller {
|
|
14
14
|
updated_at: bigint;
|
|
15
15
|
metadata: Array<[string, string]>;
|
|
16
|
+
kind: [] | [ControllerKind];
|
|
16
17
|
created_at: bigint;
|
|
17
18
|
scope: ControllerScope;
|
|
18
19
|
expires_at: [] | [bigint];
|
|
19
20
|
}
|
|
21
|
+
export type ControllerKind = { Emulator: null } | { Automation: null };
|
|
20
22
|
export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
21
23
|
export interface CyclesBalance {
|
|
22
24
|
timestamp: bigint;
|
|
@@ -106,7 +108,7 @@ export interface OpenIdCertificate {
|
|
|
106
108
|
created_at: bigint;
|
|
107
109
|
version: [] | [bigint];
|
|
108
110
|
}
|
|
109
|
-
export type OpenIdProvider = { Google: null };
|
|
111
|
+
export type OpenIdProvider = { GitHubActions: null } | { Google: null } | { GitHubAuth: null };
|
|
110
112
|
export interface RateConfig {
|
|
111
113
|
max_tokens: bigint;
|
|
112
114
|
time_per_token_ns: bigint;
|
|
@@ -120,6 +122,7 @@ export interface Segment {
|
|
|
120
122
|
export type SegmentKind = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
|
|
121
123
|
export interface SetController {
|
|
122
124
|
metadata: Array<[string, string]>;
|
|
125
|
+
kind: [] | [ControllerKind];
|
|
123
126
|
scope: ControllerScope;
|
|
124
127
|
expires_at: [] | [bigint];
|
|
125
128
|
}
|
|
@@ -131,15 +134,15 @@ export interface _SERVICE {
|
|
|
131
134
|
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
132
135
|
get_notify_status: ActorMethod<[GetNotifications], NotifyStatus>;
|
|
133
136
|
get_openid_certificate: ActorMethod<[GetOpenIdCertificateArgs], [] | [OpenIdCertificate]>;
|
|
134
|
-
is_openid_monitoring_enabled: ActorMethod<[], boolean>;
|
|
137
|
+
is_openid_monitoring_enabled: ActorMethod<[OpenIdProvider], boolean>;
|
|
135
138
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
136
139
|
notify: ActorMethod<[NotifyArgs], undefined>;
|
|
137
140
|
ping: ActorMethod<[NotifyArgs], undefined>;
|
|
138
141
|
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
139
142
|
set_env: ActorMethod<[Env], undefined>;
|
|
140
143
|
set_rate_config: ActorMethod<[RateKind, RateConfig], undefined>;
|
|
141
|
-
start_openid_monitoring: ActorMethod<[], undefined>;
|
|
142
|
-
stop_openid_monitoring: ActorMethod<[], undefined>;
|
|
144
|
+
start_openid_monitoring: ActorMethod<[OpenIdProvider], undefined>;
|
|
145
|
+
stop_openid_monitoring: ActorMethod<[OpenIdProvider], undefined>;
|
|
143
146
|
}
|
|
144
147
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
145
148
|
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|