@junobuild/ic-client 3.1.4 → 4.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/api/actor.api.d.ts +2 -2
- package/actor/api/agent.api.d.ts +1 -1
- package/actor/types/actor.d.ts +2 -2
- package/actor/utils/agent.utils.d.ts +1 -1
- 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 +128 -3
- package/declarations/console/console.factory.certified.did.js +148 -8
- package/declarations/console/console.factory.did.js +148 -8
- package/declarations/console/console.factory.did.mjs +148 -8
- package/declarations/deprecated/console-0-0-14.did.d.ts +3 -3
- package/declarations/deprecated/console-0-0-8-patch1.did.d.ts +3 -3
- package/declarations/deprecated/mission_control-0-0-13.did.d.ts +3 -3
- package/declarations/deprecated/mission_control-0-0-14.did.d.ts +3 -3
- package/declarations/deprecated/mission_control-0-0-4.did.d.ts +2 -2
- package/declarations/deprecated/mission_control-deprecated-version.did.d.ts +3 -3
- package/declarations/deprecated/observatory-0-0-9.did.d.ts +3 -3
- package/declarations/deprecated/orbiter-0-0-6.did.d.ts +3 -3
- package/declarations/deprecated/orbiter-0-0-7.did.d.ts +3 -3
- package/declarations/deprecated/orbiter-0-0-8.did.d.ts +3 -3
- package/declarations/deprecated/orbiter-0-2-0.did.d.ts +3 -3
- package/declarations/deprecated/orbiter-deprecated-version.did.d.ts +3 -3
- package/declarations/deprecated/satellite-0-0-16.did.d.ts +3 -3
- package/declarations/deprecated/satellite-0-0-17.did.d.ts +3 -3
- package/declarations/deprecated/satellite-0-0-21.did.d.ts +3 -3
- package/declarations/deprecated/satellite-0-0-22.did.d.ts +3 -3
- package/declarations/deprecated/satellite-0-0-8.did.d.ts +2 -2
- package/declarations/deprecated/satellite-0-0-9.did.d.ts +2 -2
- package/declarations/deprecated/satellite-deprecated-no-scope.did.d.ts +2 -2
- package/declarations/deprecated/satellite-deprecated-version.did.d.ts +3 -3
- package/declarations/deprecated/satellite-deprecated.did.d.ts +2 -2
- package/declarations/mission_control/mission_control.did.d.ts +3 -3
- package/declarations/observatory/observatory.did.d.ts +47 -3
- package/declarations/observatory/observatory.factory.certified.did.js +39 -1
- package/declarations/observatory/observatory.factory.did.js +43 -1
- package/declarations/observatory/observatory.factory.did.mjs +43 -1
- package/declarations/orbiter/orbiter.did.d.ts +3 -3
- package/declarations/satellite/satellite.did.d.ts +92 -3
- package/declarations/satellite/satellite.factory.certified.did.js +106 -7
- package/declarations/satellite/satellite.factory.did.js +106 -7
- package/declarations/satellite/satellite.factory.did.mjs +106 -7
- package/declarations/sputnik/sputnik.did.d.ts +92 -3
- package/declarations/sputnik/sputnik.factory.certified.did.js +106 -7
- package/declarations/sputnik/sputnik.factory.did.js +106 -7
- package/package.json +3 -6
- package/utils/principal.utils.d.ts +1 -1
- package/utils.js +1 -1
- package/utils.js.map +2 -2
- package/utils.mjs +1 -1
- package/utils.mjs.map +2 -2
- package/webauthn/agent-js/cose-key.d.ts +1 -1
- package/webauthn/agent-js/cose-utils.d.ts +1 -1
- package/webauthn/identity.d.ts +1 -1
- package/webauthn/types/identity.d.ts +1 -1
- package/webauthn.js +1 -1
- package/webauthn.js.map +3 -3
- package/webauthn.mjs +1 -1
- package/webauthn.mjs.map +3 -3
|
@@ -5,6 +5,85 @@ export const idlFactory = ({IDL}) => {
|
|
|
5
5
|
mission_control_id: IDL.Principal,
|
|
6
6
|
user: IDL.Principal
|
|
7
7
|
});
|
|
8
|
+
const OpenIdPrepareDelegationArgs = IDL.Record({
|
|
9
|
+
jwt: IDL.Text,
|
|
10
|
+
session_key: IDL.Vec(IDL.Nat8),
|
|
11
|
+
salt: IDL.Vec(IDL.Nat8)
|
|
12
|
+
});
|
|
13
|
+
const AuthenticationArgs = IDL.Variant({
|
|
14
|
+
OpenId: OpenIdPrepareDelegationArgs
|
|
15
|
+
});
|
|
16
|
+
const PreparedDelegation = IDL.Record({
|
|
17
|
+
user_key: IDL.Vec(IDL.Nat8),
|
|
18
|
+
expiration: IDL.Nat64
|
|
19
|
+
});
|
|
20
|
+
const OpenIdProvider = IDL.Variant({Google: IDL.Null});
|
|
21
|
+
const OpenIdData = IDL.Record({
|
|
22
|
+
name: IDL.Opt(IDL.Text),
|
|
23
|
+
locale: IDL.Opt(IDL.Text),
|
|
24
|
+
family_name: IDL.Opt(IDL.Text),
|
|
25
|
+
email: IDL.Opt(IDL.Text),
|
|
26
|
+
picture: IDL.Opt(IDL.Text),
|
|
27
|
+
given_name: IDL.Opt(IDL.Text)
|
|
28
|
+
});
|
|
29
|
+
const OpenId = IDL.Record({
|
|
30
|
+
provider: OpenIdProvider,
|
|
31
|
+
data: OpenIdData
|
|
32
|
+
});
|
|
33
|
+
const Provider = IDL.Variant({
|
|
34
|
+
InternetIdentity: IDL.Null,
|
|
35
|
+
OpenId: OpenId
|
|
36
|
+
});
|
|
37
|
+
const MissionControl = IDL.Record({
|
|
38
|
+
updated_at: IDL.Nat64,
|
|
39
|
+
credits: Tokens,
|
|
40
|
+
mission_control_id: IDL.Opt(IDL.Principal),
|
|
41
|
+
provider: IDL.Opt(Provider),
|
|
42
|
+
owner: IDL.Principal,
|
|
43
|
+
created_at: IDL.Nat64
|
|
44
|
+
});
|
|
45
|
+
const Authentication = IDL.Record({
|
|
46
|
+
delegation: PreparedDelegation,
|
|
47
|
+
mission_control: MissionControl
|
|
48
|
+
});
|
|
49
|
+
const JwtFindProviderError = IDL.Variant({
|
|
50
|
+
BadClaim: IDL.Text,
|
|
51
|
+
BadSig: IDL.Text,
|
|
52
|
+
NoMatchingProvider: IDL.Null
|
|
53
|
+
});
|
|
54
|
+
const JwtVerifyError = IDL.Variant({
|
|
55
|
+
WrongKeyType: IDL.Null,
|
|
56
|
+
MissingKid: IDL.Null,
|
|
57
|
+
BadClaim: IDL.Text,
|
|
58
|
+
BadSig: IDL.Text,
|
|
59
|
+
NoKeyForKid: IDL.Null
|
|
60
|
+
});
|
|
61
|
+
const GetOrRefreshJwksError = IDL.Variant({
|
|
62
|
+
InvalidConfig: IDL.Text,
|
|
63
|
+
MissingKid: IDL.Null,
|
|
64
|
+
BadClaim: IDL.Text,
|
|
65
|
+
KeyNotFoundCooldown: IDL.Null,
|
|
66
|
+
CertificateNotFound: IDL.Null,
|
|
67
|
+
BadSig: IDL.Text,
|
|
68
|
+
MissingLastAttempt: IDL.Text,
|
|
69
|
+
KeyNotFound: IDL.Null,
|
|
70
|
+
FetchFailed: IDL.Text
|
|
71
|
+
});
|
|
72
|
+
const PrepareDelegationError = IDL.Variant({
|
|
73
|
+
JwtFindProvider: JwtFindProviderError,
|
|
74
|
+
GetCachedJwks: IDL.Null,
|
|
75
|
+
JwtVerify: JwtVerifyError,
|
|
76
|
+
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
77
|
+
DeriveSeedFailed: IDL.Text
|
|
78
|
+
});
|
|
79
|
+
const AuthenticationError = IDL.Variant({
|
|
80
|
+
PrepareDelegation: PrepareDelegationError,
|
|
81
|
+
RegisterUser: IDL.Text
|
|
82
|
+
});
|
|
83
|
+
const Result = IDL.Variant({
|
|
84
|
+
Ok: Authentication,
|
|
85
|
+
Err: AuthenticationError
|
|
86
|
+
});
|
|
8
87
|
const CommitProposal = IDL.Record({
|
|
9
88
|
sha256: IDL.Vec(IDL.Nat8),
|
|
10
89
|
proposal_id: IDL.Nat
|
|
@@ -38,6 +117,33 @@ export const idlFactory = ({IDL}) => {
|
|
|
38
117
|
const DeleteProposalAssets = IDL.Record({
|
|
39
118
|
proposal_ids: IDL.Vec(IDL.Nat)
|
|
40
119
|
});
|
|
120
|
+
const OpenIdProviderDelegationConfig = IDL.Record({
|
|
121
|
+
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
122
|
+
max_time_to_live: IDL.Opt(IDL.Nat64)
|
|
123
|
+
});
|
|
124
|
+
const OpenIdProviderConfig = IDL.Record({
|
|
125
|
+
delegation: IDL.Opt(OpenIdProviderDelegationConfig),
|
|
126
|
+
client_id: IDL.Text
|
|
127
|
+
});
|
|
128
|
+
const AuthenticationConfigOpenId = IDL.Record({
|
|
129
|
+
observatory_id: IDL.Opt(IDL.Principal),
|
|
130
|
+
providers: IDL.Vec(IDL.Tuple(OpenIdProvider, OpenIdProviderConfig))
|
|
131
|
+
});
|
|
132
|
+
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
133
|
+
derivation_origin: IDL.Opt(IDL.Text),
|
|
134
|
+
external_alternative_origins: IDL.Opt(IDL.Vec(IDL.Text))
|
|
135
|
+
});
|
|
136
|
+
const AuthenticationRules = IDL.Record({
|
|
137
|
+
allowed_callers: IDL.Vec(IDL.Principal)
|
|
138
|
+
});
|
|
139
|
+
const AuthenticationConfig = IDL.Record({
|
|
140
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
141
|
+
openid: IDL.Opt(AuthenticationConfigOpenId),
|
|
142
|
+
created_at: IDL.Opt(IDL.Nat64),
|
|
143
|
+
version: IDL.Opt(IDL.Nat64),
|
|
144
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
145
|
+
rules: IDL.Opt(AuthenticationRules)
|
|
146
|
+
});
|
|
41
147
|
const StorageConfigIFrame = IDL.Variant({
|
|
42
148
|
Deny: IDL.Null,
|
|
43
149
|
AllowAny: IDL.Null,
|
|
@@ -66,8 +172,39 @@ export const idlFactory = ({IDL}) => {
|
|
|
66
172
|
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
67
173
|
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
68
174
|
});
|
|
69
|
-
const Config = IDL.Record({
|
|
175
|
+
const Config = IDL.Record({
|
|
176
|
+
authentication: IDL.Opt(AuthenticationConfig),
|
|
177
|
+
storage: StorageConfig
|
|
178
|
+
});
|
|
70
179
|
const GetCreateCanisterFeeArgs = IDL.Record({user: IDL.Principal});
|
|
180
|
+
const OpenIdGetDelegationArgs = IDL.Record({
|
|
181
|
+
jwt: IDL.Text,
|
|
182
|
+
session_key: IDL.Vec(IDL.Nat8),
|
|
183
|
+
salt: IDL.Vec(IDL.Nat8),
|
|
184
|
+
expiration: IDL.Nat64
|
|
185
|
+
});
|
|
186
|
+
const GetDelegationArgs = IDL.Variant({OpenId: OpenIdGetDelegationArgs});
|
|
187
|
+
const Delegation = IDL.Record({
|
|
188
|
+
pubkey: IDL.Vec(IDL.Nat8),
|
|
189
|
+
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
190
|
+
expiration: IDL.Nat64
|
|
191
|
+
});
|
|
192
|
+
const SignedDelegation = IDL.Record({
|
|
193
|
+
signature: IDL.Vec(IDL.Nat8),
|
|
194
|
+
delegation: Delegation
|
|
195
|
+
});
|
|
196
|
+
const GetDelegationError = IDL.Variant({
|
|
197
|
+
JwtFindProvider: JwtFindProviderError,
|
|
198
|
+
GetCachedJwks: IDL.Null,
|
|
199
|
+
NoSuchDelegation: IDL.Null,
|
|
200
|
+
JwtVerify: JwtVerifyError,
|
|
201
|
+
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
202
|
+
DeriveSeedFailed: IDL.Text
|
|
203
|
+
});
|
|
204
|
+
const Result_1 = IDL.Variant({
|
|
205
|
+
Ok: SignedDelegation,
|
|
206
|
+
Err: GetDelegationError
|
|
207
|
+
});
|
|
71
208
|
const ProposalStatus = IDL.Variant({
|
|
72
209
|
Initialized: IDL.Null,
|
|
73
210
|
Failed: IDL.Null,
|
|
@@ -98,13 +235,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
98
235
|
version: IDL.Opt(IDL.Nat64),
|
|
99
236
|
proposal_type: ProposalType
|
|
100
237
|
});
|
|
101
|
-
const MissionControl = IDL.Record({
|
|
102
|
-
updated_at: IDL.Nat64,
|
|
103
|
-
credits: Tokens,
|
|
104
|
-
mission_control_id: IDL.Opt(IDL.Principal),
|
|
105
|
-
owner: IDL.Principal,
|
|
106
|
-
created_at: IDL.Nat64
|
|
107
|
-
});
|
|
108
238
|
const HttpRequest = IDL.Record({
|
|
109
239
|
url: IDL.Text,
|
|
110
240
|
method: IDL.Text,
|
|
@@ -249,6 +379,12 @@ export const idlFactory = ({IDL}) => {
|
|
|
249
379
|
items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)),
|
|
250
380
|
items_length: IDL.Nat64
|
|
251
381
|
});
|
|
382
|
+
const SetAuthenticationConfig = IDL.Record({
|
|
383
|
+
openid: IDL.Opt(AuthenticationConfigOpenId),
|
|
384
|
+
version: IDL.Opt(IDL.Nat64),
|
|
385
|
+
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
386
|
+
rules: IDL.Opt(AuthenticationRules)
|
|
387
|
+
});
|
|
252
388
|
const SetController = IDL.Record({
|
|
253
389
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
254
390
|
scope: ControllerScope,
|
|
@@ -286,6 +422,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
286
422
|
add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
|
|
287
423
|
add_invitation_code: IDL.Func([IDL.Text], [], []),
|
|
288
424
|
assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], ['query']),
|
|
425
|
+
authenticate: IDL.Func([AuthenticationArgs], [Result], []),
|
|
289
426
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
290
427
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
291
428
|
commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
|
|
@@ -295,10 +432,12 @@ export const idlFactory = ({IDL}) => {
|
|
|
295
432
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
296
433
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
297
434
|
delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
|
|
435
|
+
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
298
436
|
get_config: IDL.Func([], [Config], ['query']),
|
|
299
437
|
get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
300
438
|
get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
|
|
301
439
|
get_credits: IDL.Func([], [Tokens], ['query']),
|
|
440
|
+
get_delegation: IDL.Func([GetDelegationArgs], [Result_1], ['query']),
|
|
302
441
|
get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']),
|
|
303
442
|
get_storage_config: IDL.Func([], [StorageConfig], ['query']),
|
|
304
443
|
get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
|
|
@@ -327,6 +466,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
327
466
|
['query']
|
|
328
467
|
),
|
|
329
468
|
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
469
|
+
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
|
|
330
470
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
331
471
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
332
472
|
set_fee: IDL.Func([SegmentKind, Tokens], [], []),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface AssertMissionControlCenterArgs {
|
|
6
6
|
mission_control_id: Principal;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface AssertMissionControlCenterArgs {
|
|
6
6
|
mission_control_id: Principal;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface Account {
|
|
6
6
|
owner: Principal;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface Account {
|
|
6
6
|
owner: Principal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
3
3
|
|
|
4
4
|
export interface CanisterStatusResponse {
|
|
5
5
|
status: CanisterStatusType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {ActorMethod} from '@
|
|
2
|
-
import type {IDL} from '@
|
|
3
|
-
import type {Principal} from '@
|
|
1
|
+
import type {ActorMethod} from '@icp-sdk/core/agent';
|
|
2
|
+
import type {IDL} from '@icp-sdk/core/candid';
|
|
3
|
+
import type {Principal} from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface Account {
|
|
6
6
|
owner: Principal;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface Controller {
|
|
6
6
|
updated_at: bigint;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface AnalyticKey {
|
|
6
6
|
key: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface AnalyticKey {
|
|
6
6
|
key: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface AnalyticKey {
|
|
6
6
|
key: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface AnalyticKey {
|
|
6
6
|
key: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {ActorMethod} from '@
|
|
2
|
-
import type {IDL} from '@
|
|
3
|
-
import type {Principal} from '@
|
|
1
|
+
import type {ActorMethod} from '@icp-sdk/core/agent';
|
|
2
|
+
import type {IDL} from '@icp-sdk/core/candid';
|
|
3
|
+
import type {Principal} from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface AnalyticKey {
|
|
6
6
|
key: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface AssetEncodingNoContent {
|
|
6
6
|
modified: bigint;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface AssetEncodingNoContent {
|
|
6
6
|
modified: bigint;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface AssetEncodingNoContent {
|
|
6
6
|
modified: bigint;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface AssetEncodingNoContent {
|
|
6
6
|
modified: bigint;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
3
3
|
|
|
4
4
|
export interface AssetEncodingNoContent {
|
|
5
5
|
modified: bigint;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
3
3
|
|
|
4
4
|
export interface AssetEncodingNoContent {
|
|
5
5
|
modified: bigint;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {ActorMethod} from '@
|
|
2
|
-
import type {Principal} from '@
|
|
1
|
+
import type {ActorMethod} from '@icp-sdk/core/agent';
|
|
2
|
+
import type {Principal} from '@icp-sdk/core/principal';
|
|
3
3
|
|
|
4
4
|
export interface AssetEncodingNoContent {
|
|
5
5
|
modified: bigint;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {ActorMethod} from '@
|
|
2
|
-
import type {IDL} from '@
|
|
3
|
-
import type {Principal} from '@
|
|
1
|
+
import type {ActorMethod} from '@icp-sdk/core/agent';
|
|
2
|
+
import type {IDL} from '@icp-sdk/core/candid';
|
|
3
|
+
import type {Principal} from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface AssetEncodingNoContent {
|
|
6
6
|
modified: bigint;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {ActorMethod} from '@
|
|
2
|
-
import type {Principal} from '@
|
|
1
|
+
import type {ActorMethod} from '@icp-sdk/core/agent';
|
|
2
|
+
import type {Principal} from '@icp-sdk/core/principal';
|
|
3
3
|
|
|
4
4
|
export interface AssetEncodingNoContent {
|
|
5
5
|
modified: bigint;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface Account {
|
|
6
6
|
owner: Principal;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ActorMethod } from '@
|
|
2
|
-
import type { IDL } from '@
|
|
3
|
-
import type { Principal } from '@
|
|
1
|
+
import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
2
|
+
import type { IDL } from '@icp-sdk/core/candid';
|
|
3
|
+
import type { Principal } from '@icp-sdk/core/principal';
|
|
4
4
|
|
|
5
5
|
export interface Controller {
|
|
6
6
|
updated_at: bigint;
|
|
@@ -43,6 +43,40 @@ export interface GetNotifications {
|
|
|
43
43
|
from: [] | [bigint];
|
|
44
44
|
segment_id: [] | [Principal];
|
|
45
45
|
}
|
|
46
|
+
export interface GetOpenIdCertificateArgs {
|
|
47
|
+
provider: OpenIdProvider;
|
|
48
|
+
}
|
|
49
|
+
export interface Jwk {
|
|
50
|
+
alg: [] | [string];
|
|
51
|
+
kid: [] | [string];
|
|
52
|
+
kty: JwkType;
|
|
53
|
+
params: JwkParams;
|
|
54
|
+
}
|
|
55
|
+
export type JwkParams =
|
|
56
|
+
| { Ec: JwkParamsEc }
|
|
57
|
+
| { Oct: JwkParamsOct }
|
|
58
|
+
| { Okp: JwkParamsOkp }
|
|
59
|
+
| { Rsa: JwkParamsRsa };
|
|
60
|
+
export interface JwkParamsEc {
|
|
61
|
+
x: string;
|
|
62
|
+
y: string;
|
|
63
|
+
crv: string;
|
|
64
|
+
}
|
|
65
|
+
export interface JwkParamsOct {
|
|
66
|
+
k: string;
|
|
67
|
+
}
|
|
68
|
+
export interface JwkParamsOkp {
|
|
69
|
+
x: string;
|
|
70
|
+
crv: string;
|
|
71
|
+
}
|
|
72
|
+
export interface JwkParamsRsa {
|
|
73
|
+
e: string;
|
|
74
|
+
n: string;
|
|
75
|
+
}
|
|
76
|
+
export type JwkType = { EC: null } | { OKP: null } | { RSA: null } | { oct: null };
|
|
77
|
+
export interface Jwks {
|
|
78
|
+
keys: Array<Jwk>;
|
|
79
|
+
}
|
|
46
80
|
export type NotificationKind =
|
|
47
81
|
| {
|
|
48
82
|
DepositedCyclesEmail: DepositedCyclesEmailNotification;
|
|
@@ -58,6 +92,13 @@ export interface NotifyStatus {
|
|
|
58
92
|
sent: bigint;
|
|
59
93
|
failed: bigint;
|
|
60
94
|
}
|
|
95
|
+
export interface OpenIdCertificate {
|
|
96
|
+
updated_at: bigint;
|
|
97
|
+
jwks: Jwks;
|
|
98
|
+
created_at: bigint;
|
|
99
|
+
version: [] | [bigint];
|
|
100
|
+
}
|
|
101
|
+
export type OpenIdProvider = { Google: null };
|
|
61
102
|
export interface Segment {
|
|
62
103
|
id: Principal;
|
|
63
104
|
metadata: [] | [Array<[string, string]>];
|
|
@@ -76,11 +117,14 @@ export interface SetControllersArgs {
|
|
|
76
117
|
export interface _SERVICE {
|
|
77
118
|
del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
|
|
78
119
|
get_notify_status: ActorMethod<[GetNotifications], NotifyStatus>;
|
|
120
|
+
get_openid_certificate: ActorMethod<[GetOpenIdCertificateArgs], [] | [OpenIdCertificate]>;
|
|
79
121
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
80
122
|
notify: ActorMethod<[NotifyArgs], undefined>;
|
|
81
123
|
ping: ActorMethod<[NotifyArgs], undefined>;
|
|
82
124
|
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
83
125
|
set_env: ActorMethod<[Env], undefined>;
|
|
126
|
+
start_openid_monitoring: ActorMethod<[], undefined>;
|
|
127
|
+
stop_openid_monitoring: ActorMethod<[], undefined>;
|
|
84
128
|
}
|
|
85
129
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
86
130
|
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
|
@@ -13,6 +13,41 @@ export const idlFactory = ({IDL}) => {
|
|
|
13
13
|
sent: IDL.Nat64,
|
|
14
14
|
failed: IDL.Nat64
|
|
15
15
|
});
|
|
16
|
+
const OpenIdProvider = IDL.Variant({Google: IDL.Null});
|
|
17
|
+
const GetOpenIdCertificateArgs = IDL.Record({provider: OpenIdProvider});
|
|
18
|
+
const JwkType = IDL.Variant({
|
|
19
|
+
EC: IDL.Null,
|
|
20
|
+
OKP: IDL.Null,
|
|
21
|
+
RSA: IDL.Null,
|
|
22
|
+
oct: IDL.Null
|
|
23
|
+
});
|
|
24
|
+
const JwkParamsEc = IDL.Record({
|
|
25
|
+
x: IDL.Text,
|
|
26
|
+
y: IDL.Text,
|
|
27
|
+
crv: IDL.Text
|
|
28
|
+
});
|
|
29
|
+
const JwkParamsOct = IDL.Record({k: IDL.Text});
|
|
30
|
+
const JwkParamsOkp = IDL.Record({x: IDL.Text, crv: IDL.Text});
|
|
31
|
+
const JwkParamsRsa = IDL.Record({e: IDL.Text, n: IDL.Text});
|
|
32
|
+
const JwkParams = IDL.Variant({
|
|
33
|
+
Ec: JwkParamsEc,
|
|
34
|
+
Oct: JwkParamsOct,
|
|
35
|
+
Okp: JwkParamsOkp,
|
|
36
|
+
Rsa: JwkParamsRsa
|
|
37
|
+
});
|
|
38
|
+
const Jwk = IDL.Record({
|
|
39
|
+
alg: IDL.Opt(IDL.Text),
|
|
40
|
+
kid: IDL.Opt(IDL.Text),
|
|
41
|
+
kty: JwkType,
|
|
42
|
+
params: JwkParams
|
|
43
|
+
});
|
|
44
|
+
const Jwks = IDL.Record({keys: IDL.Vec(Jwk)});
|
|
45
|
+
const OpenIdCertificate = IDL.Record({
|
|
46
|
+
updated_at: IDL.Nat64,
|
|
47
|
+
jwks: Jwks,
|
|
48
|
+
created_at: IDL.Nat64,
|
|
49
|
+
version: IDL.Opt(IDL.Nat64)
|
|
50
|
+
});
|
|
16
51
|
const ControllerScope = IDL.Variant({
|
|
17
52
|
Write: IDL.Null,
|
|
18
53
|
Admin: IDL.Null,
|
|
@@ -80,11 +115,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
80
115
|
return IDL.Service({
|
|
81
116
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
82
117
|
get_notify_status: IDL.Func([GetNotifications], [NotifyStatus], []),
|
|
118
|
+
get_openid_certificate: IDL.Func([GetOpenIdCertificateArgs], [IDL.Opt(OpenIdCertificate)], []),
|
|
83
119
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], []),
|
|
84
120
|
notify: IDL.Func([NotifyArgs], [], []),
|
|
85
121
|
ping: IDL.Func([NotifyArgs], [], []),
|
|
86
122
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
87
|
-
set_env: IDL.Func([Env], [], [])
|
|
123
|
+
set_env: IDL.Func([Env], [], []),
|
|
124
|
+
start_openid_monitoring: IDL.Func([], [], []),
|
|
125
|
+
stop_openid_monitoring: IDL.Func([], [], [])
|
|
88
126
|
});
|
|
89
127
|
};
|
|
90
128
|
// @ts-ignore
|
|
@@ -13,6 +13,41 @@ export const idlFactory = ({IDL}) => {
|
|
|
13
13
|
sent: IDL.Nat64,
|
|
14
14
|
failed: IDL.Nat64
|
|
15
15
|
});
|
|
16
|
+
const OpenIdProvider = IDL.Variant({Google: IDL.Null});
|
|
17
|
+
const GetOpenIdCertificateArgs = IDL.Record({provider: OpenIdProvider});
|
|
18
|
+
const JwkType = IDL.Variant({
|
|
19
|
+
EC: IDL.Null,
|
|
20
|
+
OKP: IDL.Null,
|
|
21
|
+
RSA: IDL.Null,
|
|
22
|
+
oct: IDL.Null
|
|
23
|
+
});
|
|
24
|
+
const JwkParamsEc = IDL.Record({
|
|
25
|
+
x: IDL.Text,
|
|
26
|
+
y: IDL.Text,
|
|
27
|
+
crv: IDL.Text
|
|
28
|
+
});
|
|
29
|
+
const JwkParamsOct = IDL.Record({k: IDL.Text});
|
|
30
|
+
const JwkParamsOkp = IDL.Record({x: IDL.Text, crv: IDL.Text});
|
|
31
|
+
const JwkParamsRsa = IDL.Record({e: IDL.Text, n: IDL.Text});
|
|
32
|
+
const JwkParams = IDL.Variant({
|
|
33
|
+
Ec: JwkParamsEc,
|
|
34
|
+
Oct: JwkParamsOct,
|
|
35
|
+
Okp: JwkParamsOkp,
|
|
36
|
+
Rsa: JwkParamsRsa
|
|
37
|
+
});
|
|
38
|
+
const Jwk = IDL.Record({
|
|
39
|
+
alg: IDL.Opt(IDL.Text),
|
|
40
|
+
kid: IDL.Opt(IDL.Text),
|
|
41
|
+
kty: JwkType,
|
|
42
|
+
params: JwkParams
|
|
43
|
+
});
|
|
44
|
+
const Jwks = IDL.Record({keys: IDL.Vec(Jwk)});
|
|
45
|
+
const OpenIdCertificate = IDL.Record({
|
|
46
|
+
updated_at: IDL.Nat64,
|
|
47
|
+
jwks: Jwks,
|
|
48
|
+
created_at: IDL.Nat64,
|
|
49
|
+
version: IDL.Opt(IDL.Nat64)
|
|
50
|
+
});
|
|
16
51
|
const ControllerScope = IDL.Variant({
|
|
17
52
|
Write: IDL.Null,
|
|
18
53
|
Admin: IDL.Null,
|
|
@@ -80,11 +115,18 @@ export const idlFactory = ({IDL}) => {
|
|
|
80
115
|
return IDL.Service({
|
|
81
116
|
del_controllers: IDL.Func([DeleteControllersArgs], [], []),
|
|
82
117
|
get_notify_status: IDL.Func([GetNotifications], [NotifyStatus], ['query']),
|
|
118
|
+
get_openid_certificate: IDL.Func(
|
|
119
|
+
[GetOpenIdCertificateArgs],
|
|
120
|
+
[IDL.Opt(OpenIdCertificate)],
|
|
121
|
+
['query']
|
|
122
|
+
),
|
|
83
123
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
84
124
|
notify: IDL.Func([NotifyArgs], [], []),
|
|
85
125
|
ping: IDL.Func([NotifyArgs], [], []),
|
|
86
126
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
87
|
-
set_env: IDL.Func([Env], [], [])
|
|
127
|
+
set_env: IDL.Func([Env], [], []),
|
|
128
|
+
start_openid_monitoring: IDL.Func([], [], []),
|
|
129
|
+
stop_openid_monitoring: IDL.Func([], [], [])
|
|
88
130
|
});
|
|
89
131
|
};
|
|
90
132
|
// @ts-ignore
|