@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,567 @@
|
|
|
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 Tokens = IDL.Record({e8s: IDL.Nat64});
|
|
11
|
+
const AssertMissionControlCenterArgs = IDL.Record({
|
|
12
|
+
mission_control_id: IDL.Principal,
|
|
13
|
+
user: IDL.Principal
|
|
14
|
+
});
|
|
15
|
+
const OpenIdPrepareDelegationArgs = IDL.Record({
|
|
16
|
+
jwt: IDL.Text,
|
|
17
|
+
session_key: IDL.Vec(IDL.Nat8),
|
|
18
|
+
salt: IDL.Vec(IDL.Nat8)
|
|
19
|
+
});
|
|
20
|
+
const AuthenticationArgs = IDL.Variant({
|
|
21
|
+
OpenId: OpenIdPrepareDelegationArgs
|
|
22
|
+
});
|
|
23
|
+
const PreparedDelegation = IDL.Record({
|
|
24
|
+
user_key: IDL.Vec(IDL.Nat8),
|
|
25
|
+
expiration: IDL.Nat64
|
|
26
|
+
});
|
|
27
|
+
const OpenIdProvider = IDL.Variant({
|
|
28
|
+
GitHub: IDL.Null,
|
|
29
|
+
Google: IDL.Null
|
|
30
|
+
});
|
|
31
|
+
const OpenIdData = IDL.Record({
|
|
32
|
+
name: IDL.Opt(IDL.Text),
|
|
33
|
+
locale: IDL.Opt(IDL.Text),
|
|
34
|
+
family_name: IDL.Opt(IDL.Text),
|
|
35
|
+
email: IDL.Opt(IDL.Text),
|
|
36
|
+
picture: IDL.Opt(IDL.Text),
|
|
37
|
+
given_name: IDL.Opt(IDL.Text),
|
|
38
|
+
preferred_username: IDL.Opt(IDL.Text)
|
|
39
|
+
});
|
|
40
|
+
const OpenId = IDL.Record({
|
|
41
|
+
provider: OpenIdProvider,
|
|
42
|
+
data: OpenIdData
|
|
43
|
+
});
|
|
44
|
+
const Provider = IDL.Variant({
|
|
45
|
+
InternetIdentity: IDL.Null,
|
|
46
|
+
OpenId: OpenId
|
|
47
|
+
});
|
|
48
|
+
const Account = IDL.Record({
|
|
49
|
+
updated_at: IDL.Nat64,
|
|
50
|
+
credits: Tokens,
|
|
51
|
+
mission_control_id: IDL.Opt(IDL.Principal),
|
|
52
|
+
provider: IDL.Opt(Provider),
|
|
53
|
+
owner: IDL.Principal,
|
|
54
|
+
created_at: IDL.Nat64
|
|
55
|
+
});
|
|
56
|
+
const Authentication = IDL.Record({
|
|
57
|
+
delegation: PreparedDelegation,
|
|
58
|
+
account: Account
|
|
59
|
+
});
|
|
60
|
+
const JwtFindProviderError = IDL.Variant({
|
|
61
|
+
BadClaim: IDL.Text,
|
|
62
|
+
BadSig: IDL.Text,
|
|
63
|
+
NoMatchingProvider: IDL.Null
|
|
64
|
+
});
|
|
65
|
+
const JwtVerifyError = IDL.Variant({
|
|
66
|
+
WrongKeyType: IDL.Null,
|
|
67
|
+
MissingKid: IDL.Null,
|
|
68
|
+
BadClaim: IDL.Text,
|
|
69
|
+
BadSig: IDL.Text,
|
|
70
|
+
NoKeyForKid: IDL.Null
|
|
71
|
+
});
|
|
72
|
+
const GetOrRefreshJwksError = IDL.Variant({
|
|
73
|
+
InvalidConfig: IDL.Text,
|
|
74
|
+
MissingKid: IDL.Null,
|
|
75
|
+
BadClaim: IDL.Text,
|
|
76
|
+
KeyNotFoundCooldown: IDL.Null,
|
|
77
|
+
CertificateNotFound: IDL.Null,
|
|
78
|
+
BadSig: IDL.Text,
|
|
79
|
+
MissingLastAttempt: IDL.Text,
|
|
80
|
+
KeyNotFound: IDL.Null,
|
|
81
|
+
FetchFailed: IDL.Text
|
|
82
|
+
});
|
|
83
|
+
const PrepareDelegationError = IDL.Variant({
|
|
84
|
+
JwtFindProvider: JwtFindProviderError,
|
|
85
|
+
GetCachedJwks: IDL.Null,
|
|
86
|
+
JwtVerify: JwtVerifyError,
|
|
87
|
+
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
88
|
+
DeriveSeedFailed: IDL.Text
|
|
89
|
+
});
|
|
90
|
+
const AuthenticationError = IDL.Variant({
|
|
91
|
+
PrepareDelegation: PrepareDelegationError,
|
|
92
|
+
RegisterUser: IDL.Text
|
|
93
|
+
});
|
|
94
|
+
const Result = IDL.Variant({
|
|
95
|
+
Ok: Authentication,
|
|
96
|
+
Err: AuthenticationError
|
|
97
|
+
});
|
|
98
|
+
const CommitProposal = IDL.Record({
|
|
99
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
100
|
+
proposal_id: IDL.Nat
|
|
101
|
+
});
|
|
102
|
+
const CommitBatch = IDL.Record({
|
|
103
|
+
batch_id: IDL.Nat,
|
|
104
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
105
|
+
chunk_ids: IDL.Vec(IDL.Nat)
|
|
106
|
+
});
|
|
107
|
+
const CreateMissionControlArgs = IDL.Record({
|
|
108
|
+
subnet_id: IDL.Opt(IDL.Principal)
|
|
109
|
+
});
|
|
110
|
+
const CreateOrbiterArgs = IDL.Record({
|
|
111
|
+
block_index: IDL.Opt(IDL.Nat64),
|
|
112
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
113
|
+
name: IDL.Opt(IDL.Text),
|
|
114
|
+
user: IDL.Principal
|
|
115
|
+
});
|
|
116
|
+
const InitStorageMemory = IDL.Variant({
|
|
117
|
+
Heap: IDL.Null,
|
|
118
|
+
Stable: IDL.Null
|
|
119
|
+
});
|
|
120
|
+
const InitStorageArgs = IDL.Record({
|
|
121
|
+
system_memory: IDL.Opt(InitStorageMemory)
|
|
122
|
+
});
|
|
123
|
+
const CreateSatelliteArgs = IDL.Record({
|
|
124
|
+
block_index: IDL.Opt(IDL.Nat64),
|
|
125
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
126
|
+
storage: IDL.Opt(InitStorageArgs),
|
|
127
|
+
name: IDL.Opt(IDL.Text),
|
|
128
|
+
user: IDL.Principal
|
|
129
|
+
});
|
|
130
|
+
const DeleteControllersArgs = IDL.Record({
|
|
131
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
132
|
+
});
|
|
133
|
+
const DeleteProposalAssets = IDL.Record({
|
|
134
|
+
proposal_ids: IDL.Vec(IDL.Nat)
|
|
135
|
+
});
|
|
136
|
+
const OpenIdProviderDelegationConfig = IDL.Record({
|
|
137
|
+
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
138
|
+
max_time_to_live: IDL.Opt(IDL.Nat64)
|
|
139
|
+
});
|
|
140
|
+
const OpenIdProviderConfig = IDL.Record({
|
|
141
|
+
delegation: IDL.Opt(OpenIdProviderDelegationConfig),
|
|
142
|
+
client_id: IDL.Text
|
|
143
|
+
});
|
|
144
|
+
const AuthenticationConfigOpenId = IDL.Record({
|
|
145
|
+
observatory_id: IDL.Opt(IDL.Principal),
|
|
146
|
+
providers: IDL.Vec(IDL.Tuple(OpenIdProvider, OpenIdProviderConfig))
|
|
147
|
+
});
|
|
148
|
+
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
149
|
+
derivation_origin: IDL.Opt(IDL.Text),
|
|
150
|
+
external_alternative_origins: IDL.Opt(IDL.Vec(IDL.Text))
|
|
151
|
+
});
|
|
152
|
+
const AuthenticationRules = IDL.Record({
|
|
153
|
+
allowed_callers: IDL.Vec(IDL.Principal)
|
|
154
|
+
});
|
|
155
|
+
const AuthenticationConfig = IDL.Record({
|
|
156
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
157
|
+
openid: IDL.Opt(AuthenticationConfigOpenId),
|
|
158
|
+
created_at: IDL.Opt(IDL.Nat64),
|
|
159
|
+
version: IDL.Opt(IDL.Nat64),
|
|
160
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
161
|
+
rules: IDL.Opt(AuthenticationRules)
|
|
162
|
+
});
|
|
163
|
+
const StorageConfigIFrame = IDL.Variant({
|
|
164
|
+
Deny: IDL.Null,
|
|
165
|
+
AllowAny: IDL.Null,
|
|
166
|
+
SameOrigin: IDL.Null
|
|
167
|
+
});
|
|
168
|
+
const ConfigMaxMemorySize = IDL.Record({
|
|
169
|
+
stable: IDL.Opt(IDL.Nat64),
|
|
170
|
+
heap: IDL.Opt(IDL.Nat64)
|
|
171
|
+
});
|
|
172
|
+
const StorageConfigRawAccess = IDL.Variant({
|
|
173
|
+
Deny: IDL.Null,
|
|
174
|
+
Allow: IDL.Null
|
|
175
|
+
});
|
|
176
|
+
const StorageConfigRedirect = IDL.Record({
|
|
177
|
+
status_code: IDL.Nat16,
|
|
178
|
+
location: IDL.Text
|
|
179
|
+
});
|
|
180
|
+
const StorageConfig = IDL.Record({
|
|
181
|
+
iframe: IDL.Opt(StorageConfigIFrame),
|
|
182
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
183
|
+
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
184
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
|
|
185
|
+
created_at: IDL.Opt(IDL.Nat64),
|
|
186
|
+
version: IDL.Opt(IDL.Nat64),
|
|
187
|
+
max_memory_size: IDL.Opt(ConfigMaxMemorySize),
|
|
188
|
+
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
189
|
+
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
190
|
+
});
|
|
191
|
+
const Config = IDL.Record({
|
|
192
|
+
authentication: IDL.Opt(AuthenticationConfig),
|
|
193
|
+
storage: StorageConfig
|
|
194
|
+
});
|
|
195
|
+
const GetCreateCanisterFeeArgs = IDL.Record({user: IDL.Principal});
|
|
196
|
+
const OpenIdGetDelegationArgs = IDL.Record({
|
|
197
|
+
jwt: IDL.Text,
|
|
198
|
+
session_key: IDL.Vec(IDL.Nat8),
|
|
199
|
+
salt: IDL.Vec(IDL.Nat8),
|
|
200
|
+
expiration: IDL.Nat64
|
|
201
|
+
});
|
|
202
|
+
const GetDelegationArgs = IDL.Variant({OpenId: OpenIdGetDelegationArgs});
|
|
203
|
+
const Delegation = IDL.Record({
|
|
204
|
+
pubkey: IDL.Vec(IDL.Nat8),
|
|
205
|
+
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
206
|
+
expiration: IDL.Nat64
|
|
207
|
+
});
|
|
208
|
+
const SignedDelegation = IDL.Record({
|
|
209
|
+
signature: IDL.Vec(IDL.Nat8),
|
|
210
|
+
delegation: Delegation
|
|
211
|
+
});
|
|
212
|
+
const GetDelegationError = IDL.Variant({
|
|
213
|
+
JwtFindProvider: JwtFindProviderError,
|
|
214
|
+
GetCachedJwks: IDL.Null,
|
|
215
|
+
NoSuchDelegation: IDL.Null,
|
|
216
|
+
JwtVerify: JwtVerifyError,
|
|
217
|
+
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
218
|
+
DeriveSeedFailed: IDL.Text
|
|
219
|
+
});
|
|
220
|
+
const Result_1 = IDL.Variant({
|
|
221
|
+
Ok: SignedDelegation,
|
|
222
|
+
Err: GetDelegationError
|
|
223
|
+
});
|
|
224
|
+
const SegmentKind = IDL.Variant({
|
|
225
|
+
Orbiter: IDL.Null,
|
|
226
|
+
MissionControl: IDL.Null,
|
|
227
|
+
Satellite: IDL.Null
|
|
228
|
+
});
|
|
229
|
+
const CyclesTokens = IDL.Record({e12s: IDL.Nat64});
|
|
230
|
+
const FactoryFee = IDL.Record({
|
|
231
|
+
updated_at: IDL.Nat64,
|
|
232
|
+
fee_cycles: CyclesTokens,
|
|
233
|
+
fee_icp: IDL.Opt(Tokens)
|
|
234
|
+
});
|
|
235
|
+
const ProposalStatus = IDL.Variant({
|
|
236
|
+
Initialized: IDL.Null,
|
|
237
|
+
Failed: IDL.Null,
|
|
238
|
+
Open: IDL.Null,
|
|
239
|
+
Rejected: IDL.Null,
|
|
240
|
+
Executed: IDL.Null,
|
|
241
|
+
Accepted: IDL.Null
|
|
242
|
+
});
|
|
243
|
+
const AssetsUpgradeOptions = IDL.Record({
|
|
244
|
+
clear_existing_assets: IDL.Opt(IDL.Bool)
|
|
245
|
+
});
|
|
246
|
+
const SegmentsDeploymentOptions = IDL.Record({
|
|
247
|
+
orbiter: IDL.Opt(IDL.Text),
|
|
248
|
+
mission_control_version: IDL.Opt(IDL.Text),
|
|
249
|
+
satellite_version: IDL.Opt(IDL.Text)
|
|
250
|
+
});
|
|
251
|
+
const ProposalType = IDL.Variant({
|
|
252
|
+
AssetsUpgrade: AssetsUpgradeOptions,
|
|
253
|
+
SegmentsDeployment: SegmentsDeploymentOptions
|
|
254
|
+
});
|
|
255
|
+
const Proposal = IDL.Record({
|
|
256
|
+
status: ProposalStatus,
|
|
257
|
+
updated_at: IDL.Nat64,
|
|
258
|
+
sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
259
|
+
executed_at: IDL.Opt(IDL.Nat64),
|
|
260
|
+
owner: IDL.Principal,
|
|
261
|
+
created_at: IDL.Nat64,
|
|
262
|
+
version: IDL.Opt(IDL.Nat64),
|
|
263
|
+
proposal_type: ProposalType
|
|
264
|
+
});
|
|
265
|
+
const RateConfig = IDL.Record({
|
|
266
|
+
max_tokens: IDL.Nat64,
|
|
267
|
+
time_per_token_ns: IDL.Nat64
|
|
268
|
+
});
|
|
269
|
+
const HttpRequest = IDL.Record({
|
|
270
|
+
url: IDL.Text,
|
|
271
|
+
method: IDL.Text,
|
|
272
|
+
body: IDL.Vec(IDL.Nat8),
|
|
273
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
274
|
+
certificate_version: IDL.Opt(IDL.Nat16)
|
|
275
|
+
});
|
|
276
|
+
const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
|
|
277
|
+
const StreamingCallbackToken = IDL.Record({
|
|
278
|
+
memory: Memory,
|
|
279
|
+
token: IDL.Opt(IDL.Text),
|
|
280
|
+
sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
281
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
282
|
+
index: IDL.Nat64,
|
|
283
|
+
encoding_type: IDL.Text,
|
|
284
|
+
full_path: IDL.Text
|
|
285
|
+
});
|
|
286
|
+
const StreamingStrategy = IDL.Variant({
|
|
287
|
+
Callback: IDL.Record({
|
|
288
|
+
token: StreamingCallbackToken,
|
|
289
|
+
callback: IDL.Func([], [], ['query'])
|
|
290
|
+
})
|
|
291
|
+
});
|
|
292
|
+
const HttpResponse = IDL.Record({
|
|
293
|
+
body: IDL.Vec(IDL.Nat8),
|
|
294
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
295
|
+
streaming_strategy: IDL.Opt(StreamingStrategy),
|
|
296
|
+
status_code: IDL.Nat16
|
|
297
|
+
});
|
|
298
|
+
const StreamingCallbackHttpResponse = IDL.Record({
|
|
299
|
+
token: IDL.Opt(StreamingCallbackToken),
|
|
300
|
+
body: IDL.Vec(IDL.Nat8)
|
|
301
|
+
});
|
|
302
|
+
const InitAssetKey = IDL.Record({
|
|
303
|
+
token: IDL.Opt(IDL.Text),
|
|
304
|
+
collection: IDL.Text,
|
|
305
|
+
name: IDL.Text,
|
|
306
|
+
description: IDL.Opt(IDL.Text),
|
|
307
|
+
encoding_type: IDL.Opt(IDL.Text),
|
|
308
|
+
full_path: IDL.Text
|
|
309
|
+
});
|
|
310
|
+
const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
|
|
311
|
+
const ListOrderField = IDL.Variant({
|
|
312
|
+
UpdatedAt: IDL.Null,
|
|
313
|
+
Keys: IDL.Null,
|
|
314
|
+
CreatedAt: IDL.Null
|
|
315
|
+
});
|
|
316
|
+
const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
|
|
317
|
+
const TimestampMatcher = IDL.Variant({
|
|
318
|
+
Equal: IDL.Nat64,
|
|
319
|
+
Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
|
|
320
|
+
GreaterThan: IDL.Nat64,
|
|
321
|
+
LessThan: IDL.Nat64
|
|
322
|
+
});
|
|
323
|
+
const ListMatcher = IDL.Record({
|
|
324
|
+
key: IDL.Opt(IDL.Text),
|
|
325
|
+
updated_at: IDL.Opt(TimestampMatcher),
|
|
326
|
+
description: IDL.Opt(IDL.Text),
|
|
327
|
+
created_at: IDL.Opt(TimestampMatcher)
|
|
328
|
+
});
|
|
329
|
+
const ListPaginate = IDL.Record({
|
|
330
|
+
start_after: IDL.Opt(IDL.Text),
|
|
331
|
+
limit: IDL.Opt(IDL.Nat64)
|
|
332
|
+
});
|
|
333
|
+
const ListParams = IDL.Record({
|
|
334
|
+
order: IDL.Opt(ListOrder),
|
|
335
|
+
owner: IDL.Opt(IDL.Principal),
|
|
336
|
+
matcher: IDL.Opt(ListMatcher),
|
|
337
|
+
paginate: IDL.Opt(ListPaginate)
|
|
338
|
+
});
|
|
339
|
+
const AssetKey = IDL.Record({
|
|
340
|
+
token: IDL.Opt(IDL.Text),
|
|
341
|
+
collection: IDL.Text,
|
|
342
|
+
owner: IDL.Principal,
|
|
343
|
+
name: IDL.Text,
|
|
344
|
+
description: IDL.Opt(IDL.Text),
|
|
345
|
+
full_path: IDL.Text
|
|
346
|
+
});
|
|
347
|
+
const AssetEncodingNoContent = IDL.Record({
|
|
348
|
+
modified: IDL.Nat64,
|
|
349
|
+
sha256: IDL.Vec(IDL.Nat8),
|
|
350
|
+
total_length: IDL.Nat
|
|
351
|
+
});
|
|
352
|
+
const AssetNoContent = IDL.Record({
|
|
353
|
+
key: AssetKey,
|
|
354
|
+
updated_at: IDL.Nat64,
|
|
355
|
+
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
356
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
357
|
+
created_at: IDL.Nat64,
|
|
358
|
+
version: IDL.Opt(IDL.Nat64)
|
|
359
|
+
});
|
|
360
|
+
const ListResults = IDL.Record({
|
|
361
|
+
matches_pages: IDL.Opt(IDL.Nat64),
|
|
362
|
+
matches_length: IDL.Nat64,
|
|
363
|
+
items_page: IDL.Opt(IDL.Nat64),
|
|
364
|
+
items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
|
|
365
|
+
items_length: IDL.Nat64
|
|
366
|
+
});
|
|
367
|
+
const ControllerScope = IDL.Variant({
|
|
368
|
+
Write: IDL.Null,
|
|
369
|
+
Admin: IDL.Null,
|
|
370
|
+
Submit: IDL.Null
|
|
371
|
+
});
|
|
372
|
+
const Controller = IDL.Record({
|
|
373
|
+
updated_at: IDL.Nat64,
|
|
374
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
375
|
+
created_at: IDL.Nat64,
|
|
376
|
+
scope: ControllerScope,
|
|
377
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
378
|
+
});
|
|
379
|
+
const CustomDomain = IDL.Record({
|
|
380
|
+
updated_at: IDL.Nat64,
|
|
381
|
+
created_at: IDL.Nat64,
|
|
382
|
+
version: IDL.Opt(IDL.Nat64),
|
|
383
|
+
bn_id: IDL.Opt(IDL.Text)
|
|
384
|
+
});
|
|
385
|
+
const PaymentStatus = IDL.Variant({
|
|
386
|
+
Refunded: IDL.Null,
|
|
387
|
+
Acknowledged: IDL.Null,
|
|
388
|
+
Completed: IDL.Null
|
|
389
|
+
});
|
|
390
|
+
const IcpPayment = IDL.Record({
|
|
391
|
+
status: PaymentStatus,
|
|
392
|
+
updated_at: IDL.Nat64,
|
|
393
|
+
block_index_payment: IDL.Nat64,
|
|
394
|
+
mission_control_id: IDL.Opt(IDL.Principal),
|
|
395
|
+
created_at: IDL.Nat64,
|
|
396
|
+
block_index_refunded: IDL.Opt(IDL.Nat64)
|
|
397
|
+
});
|
|
398
|
+
const IcrcPaymentKey = IDL.Record({
|
|
399
|
+
block_index: IDL.Nat64,
|
|
400
|
+
ledger_id: IDL.Principal
|
|
401
|
+
});
|
|
402
|
+
const Account_1 = IDL.Record({
|
|
403
|
+
owner: IDL.Principal,
|
|
404
|
+
subaccount: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
405
|
+
});
|
|
406
|
+
const IcrcPayment = IDL.Record({
|
|
407
|
+
status: PaymentStatus,
|
|
408
|
+
updated_at: IDL.Nat64,
|
|
409
|
+
created_at: IDL.Nat64,
|
|
410
|
+
block_index_refunded: IDL.Opt(IDL.Nat64),
|
|
411
|
+
purchaser: Account_1
|
|
412
|
+
});
|
|
413
|
+
const ListProposalsOrder = IDL.Record({desc: IDL.Bool});
|
|
414
|
+
const ListProposalsPaginate = IDL.Record({
|
|
415
|
+
start_after: IDL.Opt(IDL.Nat),
|
|
416
|
+
limit: IDL.Opt(IDL.Nat)
|
|
417
|
+
});
|
|
418
|
+
const ListProposalsParams = IDL.Record({
|
|
419
|
+
order: IDL.Opt(ListProposalsOrder),
|
|
420
|
+
paginate: IDL.Opt(ListProposalsPaginate)
|
|
421
|
+
});
|
|
422
|
+
const ProposalKey = IDL.Record({proposal_id: IDL.Nat});
|
|
423
|
+
const ListProposalResults = IDL.Record({
|
|
424
|
+
matches_length: IDL.Nat64,
|
|
425
|
+
items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)),
|
|
426
|
+
items_length: IDL.Nat64
|
|
427
|
+
});
|
|
428
|
+
const StorableSegmentKind = IDL.Variant({
|
|
429
|
+
Orbiter: IDL.Null,
|
|
430
|
+
Satellite: IDL.Null
|
|
431
|
+
});
|
|
432
|
+
const ListSegmentsArgs = IDL.Record({
|
|
433
|
+
segment_id: IDL.Opt(IDL.Principal),
|
|
434
|
+
segment_kind: IDL.Opt(StorableSegmentKind)
|
|
435
|
+
});
|
|
436
|
+
const SegmentKey = IDL.Record({
|
|
437
|
+
user: IDL.Principal,
|
|
438
|
+
segment_id: IDL.Principal,
|
|
439
|
+
segment_kind: StorableSegmentKind
|
|
440
|
+
});
|
|
441
|
+
const Segment = IDL.Record({
|
|
442
|
+
updated_at: IDL.Nat64,
|
|
443
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
444
|
+
segment_id: IDL.Principal,
|
|
445
|
+
created_at: IDL.Nat64
|
|
446
|
+
});
|
|
447
|
+
const SetAuthenticationConfig = IDL.Record({
|
|
448
|
+
openid: IDL.Opt(AuthenticationConfigOpenId),
|
|
449
|
+
version: IDL.Opt(IDL.Nat64),
|
|
450
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
451
|
+
rules: IDL.Opt(AuthenticationRules)
|
|
452
|
+
});
|
|
453
|
+
const SetController = IDL.Record({
|
|
454
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
455
|
+
scope: ControllerScope,
|
|
456
|
+
expires_at: IDL.Opt(IDL.Nat64)
|
|
457
|
+
});
|
|
458
|
+
const SetControllersArgs = IDL.Record({
|
|
459
|
+
controller: SetController,
|
|
460
|
+
controllers: IDL.Vec(IDL.Principal)
|
|
461
|
+
});
|
|
462
|
+
const FeesArgs = IDL.Record({
|
|
463
|
+
fee_cycles: CyclesTokens,
|
|
464
|
+
fee_icp: IDL.Opt(Tokens)
|
|
465
|
+
});
|
|
466
|
+
const SetSegmentsArgs = IDL.Record({
|
|
467
|
+
metadata: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))),
|
|
468
|
+
segment_id: IDL.Principal,
|
|
469
|
+
segment_kind: StorableSegmentKind
|
|
470
|
+
});
|
|
471
|
+
const SetSegmentMetadataArgs = IDL.Record({
|
|
472
|
+
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
473
|
+
segment_id: IDL.Principal,
|
|
474
|
+
segment_kind: StorableSegmentKind
|
|
475
|
+
});
|
|
476
|
+
const SetStorageConfig = IDL.Record({
|
|
477
|
+
iframe: IDL.Opt(StorageConfigIFrame),
|
|
478
|
+
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
479
|
+
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
|
|
480
|
+
version: IDL.Opt(IDL.Nat64),
|
|
481
|
+
max_memory_size: IDL.Opt(ConfigMaxMemorySize),
|
|
482
|
+
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
483
|
+
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
484
|
+
});
|
|
485
|
+
const UnsetSegmentsArgs = IDL.Record({
|
|
486
|
+
segment_id: IDL.Principal,
|
|
487
|
+
segment_kind: StorableSegmentKind
|
|
488
|
+
});
|
|
489
|
+
const UploadChunk = IDL.Record({
|
|
490
|
+
content: IDL.Vec(IDL.Nat8),
|
|
491
|
+
batch_id: IDL.Nat,
|
|
492
|
+
order_id: IDL.Opt(IDL.Nat)
|
|
493
|
+
});
|
|
494
|
+
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
|
|
495
|
+
|
|
496
|
+
return IDL.Service({
|
|
497
|
+
add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
|
|
498
|
+
add_invitation_code: IDL.Func([IDL.Text], [], []),
|
|
499
|
+
assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], ['query']),
|
|
500
|
+
authenticate: IDL.Func([AuthenticationArgs], [Result], []),
|
|
501
|
+
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
502
|
+
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
503
|
+
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
504
|
+
count_proposals: IDL.Func([], [IDL.Nat64], ['query']),
|
|
505
|
+
create_mission_control: IDL.Func([CreateMissionControlArgs], [IDL.Principal], []),
|
|
506
|
+
create_orbiter: IDL.Func([CreateOrbiterArgs], [IDL.Principal], []),
|
|
507
|
+
create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
|
|
508
|
+
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
509
|
+
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
510
|
+
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
511
|
+
get_account: IDL.Func([], [IDL.Opt(Account)], ['query']),
|
|
512
|
+
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
513
|
+
get_config: IDL.Func([], [Config], ['query']),
|
|
514
|
+
get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
515
|
+
get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
516
|
+
get_credits: IDL.Func([], [Tokens], ['query']),
|
|
517
|
+
get_delegation: IDL.Func([GetDelegationArgs], [Result_1], ['query']),
|
|
518
|
+
get_fee: IDL.Func([SegmentKind], [FactoryFee], ['query']),
|
|
519
|
+
get_or_init_account: IDL.Func([], [Account], []),
|
|
520
|
+
get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']),
|
|
521
|
+
get_rate_config: IDL.Func([SegmentKind], [RateConfig], ['query']),
|
|
522
|
+
get_storage_config: IDL.Func([], [StorageConfig], ['query']),
|
|
523
|
+
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
524
|
+
http_request_streaming_callback: IDL.Func(
|
|
525
|
+
[StreamingCallbackToken],
|
|
526
|
+
[StreamingCallbackHttpResponse],
|
|
527
|
+
['query']
|
|
528
|
+
),
|
|
529
|
+
init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
|
|
530
|
+
init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
|
|
531
|
+
init_proposal_many_assets_upload: IDL.Func(
|
|
532
|
+
[IDL.Vec(InitAssetKey), IDL.Nat],
|
|
533
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
|
|
534
|
+
[]
|
|
535
|
+
),
|
|
536
|
+
list_accounts: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Account))], ['query']),
|
|
537
|
+
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
538
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
539
|
+
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
540
|
+
list_icp_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, IcpPayment))], ['query']),
|
|
541
|
+
list_icrc_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IcrcPaymentKey, IcrcPayment))], ['query']),
|
|
542
|
+
list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], ['query']),
|
|
543
|
+
list_segments: IDL.Func(
|
|
544
|
+
[ListSegmentsArgs],
|
|
545
|
+
[IDL.Vec(IDL.Tuple(SegmentKey, Segment))],
|
|
546
|
+
['query']
|
|
547
|
+
),
|
|
548
|
+
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
549
|
+
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
|
|
550
|
+
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
551
|
+
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
552
|
+
set_fee: IDL.Func([SegmentKind, FeesArgs], [], []),
|
|
553
|
+
set_many_segments: IDL.Func([IDL.Vec(SetSegmentsArgs)], [IDL.Vec(Segment)], []),
|
|
554
|
+
set_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
|
|
555
|
+
set_segment: IDL.Func([SetSegmentsArgs], [Segment], []),
|
|
556
|
+
set_segment_metadata: IDL.Func([SetSegmentMetadataArgs], [Segment], []),
|
|
557
|
+
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
558
|
+
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
559
|
+
unset_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
|
|
560
|
+
unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
|
|
561
|
+
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
|
|
562
|
+
});
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
export const init = ({IDL}) => {
|
|
566
|
+
return [];
|
|
567
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
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
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
10
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
11
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
12
|
+
|
|
13
|
+
export interface Controller {
|
|
14
|
+
updated_at: bigint;
|
|
15
|
+
metadata: Array<[string, string]>;
|
|
16
|
+
created_at: bigint;
|
|
17
|
+
scope: ControllerScope;
|
|
18
|
+
expires_at: [] | [bigint];
|
|
19
|
+
}
|
|
20
|
+
export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
21
|
+
export interface CyclesBalance {
|
|
22
|
+
timestamp: bigint;
|
|
23
|
+
amount: bigint;
|
|
24
|
+
}
|
|
25
|
+
export interface DeleteControllersArgs {
|
|
26
|
+
controllers: Array<Principal>;
|
|
27
|
+
}
|
|
28
|
+
export interface DepositedCyclesEmailNotification {
|
|
29
|
+
to: string;
|
|
30
|
+
deposited_cycles: CyclesBalance;
|
|
31
|
+
}
|
|
32
|
+
export interface Env {
|
|
33
|
+
email_api_key: [] | [string];
|
|
34
|
+
}
|
|
35
|
+
export interface FailedCyclesDepositEmailNotification {
|
|
36
|
+
to: string;
|
|
37
|
+
funding_failure: FundingFailure;
|
|
38
|
+
}
|
|
39
|
+
export type FundingErrorCode =
|
|
40
|
+
| { BalanceCheckFailed: null }
|
|
41
|
+
| { ObtainCyclesFailed: null }
|
|
42
|
+
| { DepositFailed: null }
|
|
43
|
+
| { InsufficientCycles: null }
|
|
44
|
+
| { Other: string };
|
|
45
|
+
export interface FundingFailure {
|
|
46
|
+
timestamp: bigint;
|
|
47
|
+
error_code: FundingErrorCode;
|
|
48
|
+
}
|
|
49
|
+
export interface GetNotifications {
|
|
50
|
+
to: [] | [bigint];
|
|
51
|
+
from: [] | [bigint];
|
|
52
|
+
segment_id: [] | [Principal];
|
|
53
|
+
}
|
|
54
|
+
export interface GetOpenIdCertificateArgs {
|
|
55
|
+
provider: OpenIdProvider;
|
|
56
|
+
}
|
|
57
|
+
export interface Jwk {
|
|
58
|
+
alg: [] | [string];
|
|
59
|
+
kid: [] | [string];
|
|
60
|
+
kty: JwkType;
|
|
61
|
+
params: JwkParams;
|
|
62
|
+
}
|
|
63
|
+
export type JwkParams =
|
|
64
|
+
| { Ec: JwkParamsEc }
|
|
65
|
+
| { Oct: JwkParamsOct }
|
|
66
|
+
| { Okp: JwkParamsOkp }
|
|
67
|
+
| { Rsa: JwkParamsRsa };
|
|
68
|
+
export interface JwkParamsEc {
|
|
69
|
+
x: string;
|
|
70
|
+
y: string;
|
|
71
|
+
crv: string;
|
|
72
|
+
}
|
|
73
|
+
export interface JwkParamsOct {
|
|
74
|
+
k: string;
|
|
75
|
+
}
|
|
76
|
+
export interface JwkParamsOkp {
|
|
77
|
+
x: string;
|
|
78
|
+
crv: string;
|
|
79
|
+
}
|
|
80
|
+
export interface JwkParamsRsa {
|
|
81
|
+
e: string;
|
|
82
|
+
n: string;
|
|
83
|
+
}
|
|
84
|
+
export type JwkType = { EC: null } | { OKP: null } | { RSA: null } | { oct: null };
|
|
85
|
+
export interface Jwks {
|
|
86
|
+
keys: Array<Jwk>;
|
|
87
|
+
}
|
|
88
|
+
export type NotificationKind =
|
|
89
|
+
| {
|
|
90
|
+
DepositedCyclesEmail: DepositedCyclesEmailNotification;
|
|
91
|
+
}
|
|
92
|
+
| { FailedCyclesDepositEmail: FailedCyclesDepositEmailNotification };
|
|
93
|
+
export interface NotifyArgs {
|
|
94
|
+
kind: NotificationKind;
|
|
95
|
+
user: Principal;
|
|
96
|
+
segment: Segment;
|
|
97
|
+
}
|
|
98
|
+
export interface NotifyStatus {
|
|
99
|
+
pending: bigint;
|
|
100
|
+
sent: bigint;
|
|
101
|
+
failed: bigint;
|
|
102
|
+
}
|
|
103
|
+
export interface OpenIdCertificate {
|
|
104
|
+
updated_at: bigint;
|
|
105
|
+
jwks: Jwks;
|
|
106
|
+
created_at: bigint;
|
|
107
|
+
version: [] | [bigint];
|
|
108
|
+
}
|
|
109
|
+
export type OpenIdProvider = { GitHub: null } | { Google: null };
|
|
110
|
+
export interface RateConfig {
|
|
111
|
+
max_tokens: bigint;
|
|
112
|
+
time_per_token_ns: bigint;
|
|
113
|
+
}
|
|
114
|
+
export type RateKind = { OpenIdCertificateRequests: null };
|
|
115
|
+
export interface Segment {
|
|
116
|
+
id: Principal;
|
|
117
|
+
metadata: [] | [Array<[string, string]>];
|
|
118
|
+
kind: SegmentKind;
|
|
119
|
+
}
|
|
120
|
+
export type SegmentKind = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
|
|
121
|
+
export interface SetController {
|
|
122
|
+
metadata: Array<[string, string]>;
|
|
123
|
+
scope: ControllerScope;
|
|
124
|
+
expires_at: [] | [bigint];
|
|
125
|
+
}
|
|
126
|
+
export interface SetControllersArgs {
|
|
127
|
+
controller: SetController;
|
|
128
|
+
controllers: Array<Principal>;
|
|
129
|
+
}
|
|
130
|
+
export interface _SERVICE {
|
|
131
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
132
|
+
get_notify_status: ActorMethod<[GetNotifications], NotifyStatus>;
|
|
133
|
+
get_openid_certificate: ActorMethod<[GetOpenIdCertificateArgs], [] | [OpenIdCertificate]>;
|
|
134
|
+
is_openid_monitoring_enabled: ActorMethod<[OpenIdProvider], boolean>;
|
|
135
|
+
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
136
|
+
notify: ActorMethod<[NotifyArgs], undefined>;
|
|
137
|
+
ping: ActorMethod<[NotifyArgs], undefined>;
|
|
138
|
+
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
139
|
+
set_env: ActorMethod<[Env], undefined>;
|
|
140
|
+
set_rate_config: ActorMethod<[RateKind, RateConfig], undefined>;
|
|
141
|
+
start_openid_monitoring: ActorMethod<[OpenIdProvider], undefined>;
|
|
142
|
+
stop_openid_monitoring: ActorMethod<[OpenIdProvider], undefined>;
|
|
143
|
+
}
|
|
144
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
145
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|