@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
|
@@ -69,7 +69,7 @@ export interface AuthenticationConfigInternetIdentity {
|
|
|
69
69
|
}
|
|
70
70
|
export interface AuthenticationConfigOpenId {
|
|
71
71
|
observatory_id: [] | [Principal];
|
|
72
|
-
providers: Array<[
|
|
72
|
+
providers: Array<[OpenIdDelegationProvider, OpenIdAuthProviderConfig]>;
|
|
73
73
|
}
|
|
74
74
|
export type AuthenticationError =
|
|
75
75
|
| {
|
|
@@ -99,10 +99,12 @@ export interface ConfigMaxMemorySize {
|
|
|
99
99
|
export interface Controller {
|
|
100
100
|
updated_at: bigint;
|
|
101
101
|
metadata: Array<[string, string]>;
|
|
102
|
+
kind: [] | [ControllerKind];
|
|
102
103
|
created_at: bigint;
|
|
103
104
|
scope: ControllerScope;
|
|
104
105
|
expires_at: [] | [bigint];
|
|
105
106
|
}
|
|
107
|
+
export type ControllerKind = { Emulator: null } | { Automation: null };
|
|
106
108
|
export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
107
109
|
export interface CreateMissionControlArgs {
|
|
108
110
|
subnet_id: [] | [Principal];
|
|
@@ -159,7 +161,8 @@ export type GetDelegationError =
|
|
|
159
161
|
| { NoSuchDelegation: null }
|
|
160
162
|
| { JwtVerify: JwtVerifyError }
|
|
161
163
|
| { GetOrFetchJwks: GetOrRefreshJwksError }
|
|
162
|
-
| { DeriveSeedFailed: string }
|
|
164
|
+
| { DeriveSeedFailed: string }
|
|
165
|
+
| { InvalidObservatoryId: string };
|
|
163
166
|
export type GetOrRefreshJwksError =
|
|
164
167
|
| { InvalidConfig: string }
|
|
165
168
|
| { MissingKid: null }
|
|
@@ -277,9 +280,17 @@ export interface ListSegmentsArgs {
|
|
|
277
280
|
}
|
|
278
281
|
export type Memory = { Heap: null } | { Stable: null };
|
|
279
282
|
export interface OpenId {
|
|
280
|
-
provider:
|
|
283
|
+
provider: OpenIdDelegationProvider;
|
|
281
284
|
data: OpenIdData;
|
|
282
285
|
}
|
|
286
|
+
export interface OpenIdAuthProviderConfig {
|
|
287
|
+
delegation: [] | [OpenIdAuthProviderDelegationConfig];
|
|
288
|
+
client_id: string;
|
|
289
|
+
}
|
|
290
|
+
export interface OpenIdAuthProviderDelegationConfig {
|
|
291
|
+
targets: [] | [Array<Principal>];
|
|
292
|
+
max_time_to_live: [] | [bigint];
|
|
293
|
+
}
|
|
283
294
|
export interface OpenIdData {
|
|
284
295
|
name: [] | [string];
|
|
285
296
|
locale: [] | [string];
|
|
@@ -287,7 +298,9 @@ export interface OpenIdData {
|
|
|
287
298
|
email: [] | [string];
|
|
288
299
|
picture: [] | [string];
|
|
289
300
|
given_name: [] | [string];
|
|
301
|
+
preferred_username: [] | [string];
|
|
290
302
|
}
|
|
303
|
+
export type OpenIdDelegationProvider = { GitHub: null } | { Google: null };
|
|
291
304
|
export interface OpenIdGetDelegationArgs {
|
|
292
305
|
jwt: string;
|
|
293
306
|
session_key: Uint8Array;
|
|
@@ -299,15 +312,6 @@ export interface OpenIdPrepareDelegationArgs {
|
|
|
299
312
|
session_key: Uint8Array;
|
|
300
313
|
salt: Uint8Array;
|
|
301
314
|
}
|
|
302
|
-
export type OpenIdProvider = { Google: null };
|
|
303
|
-
export interface OpenIdProviderConfig {
|
|
304
|
-
delegation: [] | [OpenIdProviderDelegationConfig];
|
|
305
|
-
client_id: string;
|
|
306
|
-
}
|
|
307
|
-
export interface OpenIdProviderDelegationConfig {
|
|
308
|
-
targets: [] | [Array<Principal>];
|
|
309
|
-
max_time_to_live: [] | [bigint];
|
|
310
|
-
}
|
|
311
315
|
export type PaymentStatus = { Refunded: null } | { Acknowledged: null } | { Completed: null };
|
|
312
316
|
export type PrepareDelegationError =
|
|
313
317
|
| {
|
|
@@ -316,7 +320,8 @@ export type PrepareDelegationError =
|
|
|
316
320
|
| { GetCachedJwks: null }
|
|
317
321
|
| { JwtVerify: JwtVerifyError }
|
|
318
322
|
| { GetOrFetchJwks: GetOrRefreshJwksError }
|
|
319
|
-
| { DeriveSeedFailed: string }
|
|
323
|
+
| { DeriveSeedFailed: string }
|
|
324
|
+
| { InvalidObservatoryId: string };
|
|
320
325
|
export interface PreparedDelegation {
|
|
321
326
|
user_key: Uint8Array;
|
|
322
327
|
expiration: bigint;
|
|
@@ -376,6 +381,7 @@ export interface SetAuthenticationConfig {
|
|
|
376
381
|
}
|
|
377
382
|
export interface SetController {
|
|
378
383
|
metadata: Array<[string, string]>;
|
|
384
|
+
kind: [] | [ControllerKind];
|
|
379
385
|
scope: ControllerScope;
|
|
380
386
|
expires_at: [] | [bigint];
|
|
381
387
|
}
|
|
@@ -514,11 +520,13 @@ export interface _SERVICE {
|
|
|
514
520
|
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
515
521
|
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
516
522
|
set_fee: ActorMethod<[SegmentKind, FeesArgs], undefined>;
|
|
523
|
+
set_many_segments: ActorMethod<[Array<SetSegmentsArgs>], Array<Segment>>;
|
|
517
524
|
set_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
|
|
518
525
|
set_segment: ActorMethod<[SetSegmentsArgs], Segment>;
|
|
519
526
|
set_segment_metadata: ActorMethod<[SetSegmentMetadataArgs], Segment>;
|
|
520
527
|
set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
|
|
521
528
|
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
529
|
+
unset_many_segments: ActorMethod<[Array<UnsetSegmentsArgs>], undefined>;
|
|
522
530
|
unset_segment: ActorMethod<[UnsetSegmentsArgs], undefined>;
|
|
523
531
|
upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
524
532
|
}
|
|
@@ -24,17 +24,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
24
24
|
user_key: IDL.Vec(IDL.Nat8),
|
|
25
25
|
expiration: IDL.Nat64
|
|
26
26
|
});
|
|
27
|
-
const
|
|
27
|
+
const OpenIdDelegationProvider = IDL.Variant({
|
|
28
|
+
GitHub: IDL.Null,
|
|
29
|
+
Google: IDL.Null
|
|
30
|
+
});
|
|
28
31
|
const OpenIdData = IDL.Record({
|
|
29
32
|
name: IDL.Opt(IDL.Text),
|
|
30
33
|
locale: IDL.Opt(IDL.Text),
|
|
31
34
|
family_name: IDL.Opt(IDL.Text),
|
|
32
35
|
email: IDL.Opt(IDL.Text),
|
|
33
36
|
picture: IDL.Opt(IDL.Text),
|
|
34
|
-
given_name: IDL.Opt(IDL.Text)
|
|
37
|
+
given_name: IDL.Opt(IDL.Text),
|
|
38
|
+
preferred_username: IDL.Opt(IDL.Text)
|
|
35
39
|
});
|
|
36
40
|
const OpenId = IDL.Record({
|
|
37
|
-
provider:
|
|
41
|
+
provider: OpenIdDelegationProvider,
|
|
38
42
|
data: OpenIdData
|
|
39
43
|
});
|
|
40
44
|
const Provider = IDL.Variant({
|
|
@@ -81,7 +85,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
81
85
|
GetCachedJwks: IDL.Null,
|
|
82
86
|
JwtVerify: JwtVerifyError,
|
|
83
87
|
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
84
|
-
DeriveSeedFailed: IDL.Text
|
|
88
|
+
DeriveSeedFailed: IDL.Text,
|
|
89
|
+
InvalidObservatoryId: IDL.Text
|
|
85
90
|
});
|
|
86
91
|
const AuthenticationError = IDL.Variant({
|
|
87
92
|
PrepareDelegation: PrepareDelegationError,
|
|
@@ -129,17 +134,17 @@ export const idlFactory = ({IDL}) => {
|
|
|
129
134
|
const DeleteProposalAssets = IDL.Record({
|
|
130
135
|
proposal_ids: IDL.Vec(IDL.Nat)
|
|
131
136
|
});
|
|
132
|
-
const
|
|
137
|
+
const OpenIdAuthProviderDelegationConfig = IDL.Record({
|
|
133
138
|
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
134
139
|
max_time_to_live: IDL.Opt(IDL.Nat64)
|
|
135
140
|
});
|
|
136
|
-
const
|
|
137
|
-
delegation: IDL.Opt(
|
|
141
|
+
const OpenIdAuthProviderConfig = IDL.Record({
|
|
142
|
+
delegation: IDL.Opt(OpenIdAuthProviderDelegationConfig),
|
|
138
143
|
client_id: IDL.Text
|
|
139
144
|
});
|
|
140
145
|
const AuthenticationConfigOpenId = IDL.Record({
|
|
141
146
|
observatory_id: IDL.Opt(IDL.Principal),
|
|
142
|
-
providers: IDL.Vec(IDL.Tuple(
|
|
147
|
+
providers: IDL.Vec(IDL.Tuple(OpenIdDelegationProvider, OpenIdAuthProviderConfig))
|
|
143
148
|
});
|
|
144
149
|
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
145
150
|
derivation_origin: IDL.Opt(IDL.Text),
|
|
@@ -211,7 +216,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
211
216
|
NoSuchDelegation: IDL.Null,
|
|
212
217
|
JwtVerify: JwtVerifyError,
|
|
213
218
|
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
214
|
-
DeriveSeedFailed: IDL.Text
|
|
219
|
+
DeriveSeedFailed: IDL.Text,
|
|
220
|
+
InvalidObservatoryId: IDL.Text
|
|
215
221
|
});
|
|
216
222
|
const Result_1 = IDL.Variant({
|
|
217
223
|
Ok: SignedDelegation,
|
|
@@ -360,6 +366,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
360
366
|
items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
|
|
361
367
|
items_length: IDL.Nat64
|
|
362
368
|
});
|
|
369
|
+
const ControllerKind = IDL.Variant({
|
|
370
|
+
Emulator: IDL.Null,
|
|
371
|
+
Automation: IDL.Null
|
|
372
|
+
});
|
|
363
373
|
const ControllerScope = IDL.Variant({
|
|
364
374
|
Write: IDL.Null,
|
|
365
375
|
Admin: IDL.Null,
|
|
@@ -368,6 +378,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
368
378
|
const Controller = IDL.Record({
|
|
369
379
|
updated_at: IDL.Nat64,
|
|
370
380
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
381
|
+
kind: IDL.Opt(ControllerKind),
|
|
371
382
|
created_at: IDL.Nat64,
|
|
372
383
|
scope: ControllerScope,
|
|
373
384
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
@@ -448,6 +459,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
448
459
|
});
|
|
449
460
|
const SetController = IDL.Record({
|
|
450
461
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
462
|
+
kind: IDL.Opt(ControllerKind),
|
|
451
463
|
scope: ControllerScope,
|
|
452
464
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
453
465
|
});
|
|
@@ -542,11 +554,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
542
554
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
543
555
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
544
556
|
set_fee: IDL.Func([SegmentKind, FeesArgs], [], []),
|
|
557
|
+
set_many_segments: IDL.Func([IDL.Vec(SetSegmentsArgs)], [IDL.Vec(Segment)], []),
|
|
545
558
|
set_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
|
|
546
559
|
set_segment: IDL.Func([SetSegmentsArgs], [Segment], []),
|
|
547
560
|
set_segment_metadata: IDL.Func([SetSegmentMetadataArgs], [Segment], []),
|
|
548
561
|
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
549
562
|
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
563
|
+
unset_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
|
|
550
564
|
unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
|
|
551
565
|
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
|
|
552
566
|
});
|
|
@@ -24,17 +24,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
24
24
|
user_key: IDL.Vec(IDL.Nat8),
|
|
25
25
|
expiration: IDL.Nat64
|
|
26
26
|
});
|
|
27
|
-
const
|
|
27
|
+
const OpenIdDelegationProvider = IDL.Variant({
|
|
28
|
+
GitHub: IDL.Null,
|
|
29
|
+
Google: IDL.Null
|
|
30
|
+
});
|
|
28
31
|
const OpenIdData = IDL.Record({
|
|
29
32
|
name: IDL.Opt(IDL.Text),
|
|
30
33
|
locale: IDL.Opt(IDL.Text),
|
|
31
34
|
family_name: IDL.Opt(IDL.Text),
|
|
32
35
|
email: IDL.Opt(IDL.Text),
|
|
33
36
|
picture: IDL.Opt(IDL.Text),
|
|
34
|
-
given_name: IDL.Opt(IDL.Text)
|
|
37
|
+
given_name: IDL.Opt(IDL.Text),
|
|
38
|
+
preferred_username: IDL.Opt(IDL.Text)
|
|
35
39
|
});
|
|
36
40
|
const OpenId = IDL.Record({
|
|
37
|
-
provider:
|
|
41
|
+
provider: OpenIdDelegationProvider,
|
|
38
42
|
data: OpenIdData
|
|
39
43
|
});
|
|
40
44
|
const Provider = IDL.Variant({
|
|
@@ -81,7 +85,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
81
85
|
GetCachedJwks: IDL.Null,
|
|
82
86
|
JwtVerify: JwtVerifyError,
|
|
83
87
|
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
84
|
-
DeriveSeedFailed: IDL.Text
|
|
88
|
+
DeriveSeedFailed: IDL.Text,
|
|
89
|
+
InvalidObservatoryId: IDL.Text
|
|
85
90
|
});
|
|
86
91
|
const AuthenticationError = IDL.Variant({
|
|
87
92
|
PrepareDelegation: PrepareDelegationError,
|
|
@@ -129,17 +134,17 @@ export const idlFactory = ({IDL}) => {
|
|
|
129
134
|
const DeleteProposalAssets = IDL.Record({
|
|
130
135
|
proposal_ids: IDL.Vec(IDL.Nat)
|
|
131
136
|
});
|
|
132
|
-
const
|
|
137
|
+
const OpenIdAuthProviderDelegationConfig = IDL.Record({
|
|
133
138
|
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
134
139
|
max_time_to_live: IDL.Opt(IDL.Nat64)
|
|
135
140
|
});
|
|
136
|
-
const
|
|
137
|
-
delegation: IDL.Opt(
|
|
141
|
+
const OpenIdAuthProviderConfig = IDL.Record({
|
|
142
|
+
delegation: IDL.Opt(OpenIdAuthProviderDelegationConfig),
|
|
138
143
|
client_id: IDL.Text
|
|
139
144
|
});
|
|
140
145
|
const AuthenticationConfigOpenId = IDL.Record({
|
|
141
146
|
observatory_id: IDL.Opt(IDL.Principal),
|
|
142
|
-
providers: IDL.Vec(IDL.Tuple(
|
|
147
|
+
providers: IDL.Vec(IDL.Tuple(OpenIdDelegationProvider, OpenIdAuthProviderConfig))
|
|
143
148
|
});
|
|
144
149
|
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
145
150
|
derivation_origin: IDL.Opt(IDL.Text),
|
|
@@ -211,7 +216,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
211
216
|
NoSuchDelegation: IDL.Null,
|
|
212
217
|
JwtVerify: JwtVerifyError,
|
|
213
218
|
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
214
|
-
DeriveSeedFailed: IDL.Text
|
|
219
|
+
DeriveSeedFailed: IDL.Text,
|
|
220
|
+
InvalidObservatoryId: IDL.Text
|
|
215
221
|
});
|
|
216
222
|
const Result_1 = IDL.Variant({
|
|
217
223
|
Ok: SignedDelegation,
|
|
@@ -360,6 +366,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
360
366
|
items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
|
|
361
367
|
items_length: IDL.Nat64
|
|
362
368
|
});
|
|
369
|
+
const ControllerKind = IDL.Variant({
|
|
370
|
+
Emulator: IDL.Null,
|
|
371
|
+
Automation: IDL.Null
|
|
372
|
+
});
|
|
363
373
|
const ControllerScope = IDL.Variant({
|
|
364
374
|
Write: IDL.Null,
|
|
365
375
|
Admin: IDL.Null,
|
|
@@ -368,6 +378,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
368
378
|
const Controller = IDL.Record({
|
|
369
379
|
updated_at: IDL.Nat64,
|
|
370
380
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
381
|
+
kind: IDL.Opt(ControllerKind),
|
|
371
382
|
created_at: IDL.Nat64,
|
|
372
383
|
scope: ControllerScope,
|
|
373
384
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
@@ -448,6 +459,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
448
459
|
});
|
|
449
460
|
const SetController = IDL.Record({
|
|
450
461
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
462
|
+
kind: IDL.Opt(ControllerKind),
|
|
451
463
|
scope: ControllerScope,
|
|
452
464
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
453
465
|
});
|
|
@@ -546,11 +558,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
546
558
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
547
559
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
548
560
|
set_fee: IDL.Func([SegmentKind, FeesArgs], [], []),
|
|
561
|
+
set_many_segments: IDL.Func([IDL.Vec(SetSegmentsArgs)], [IDL.Vec(Segment)], []),
|
|
549
562
|
set_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
|
|
550
563
|
set_segment: IDL.Func([SetSegmentsArgs], [Segment], []),
|
|
551
564
|
set_segment_metadata: IDL.Func([SetSegmentMetadataArgs], [Segment], []),
|
|
552
565
|
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
553
566
|
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
567
|
+
unset_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
|
|
554
568
|
unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
|
|
555
569
|
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
|
|
556
570
|
});
|
|
@@ -24,17 +24,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
24
24
|
user_key: IDL.Vec(IDL.Nat8),
|
|
25
25
|
expiration: IDL.Nat64
|
|
26
26
|
});
|
|
27
|
-
const
|
|
27
|
+
const OpenIdDelegationProvider = IDL.Variant({
|
|
28
|
+
GitHub: IDL.Null,
|
|
29
|
+
Google: IDL.Null
|
|
30
|
+
});
|
|
28
31
|
const OpenIdData = IDL.Record({
|
|
29
32
|
name: IDL.Opt(IDL.Text),
|
|
30
33
|
locale: IDL.Opt(IDL.Text),
|
|
31
34
|
family_name: IDL.Opt(IDL.Text),
|
|
32
35
|
email: IDL.Opt(IDL.Text),
|
|
33
36
|
picture: IDL.Opt(IDL.Text),
|
|
34
|
-
given_name: IDL.Opt(IDL.Text)
|
|
37
|
+
given_name: IDL.Opt(IDL.Text),
|
|
38
|
+
preferred_username: IDL.Opt(IDL.Text)
|
|
35
39
|
});
|
|
36
40
|
const OpenId = IDL.Record({
|
|
37
|
-
provider:
|
|
41
|
+
provider: OpenIdDelegationProvider,
|
|
38
42
|
data: OpenIdData
|
|
39
43
|
});
|
|
40
44
|
const Provider = IDL.Variant({
|
|
@@ -81,7 +85,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
81
85
|
GetCachedJwks: IDL.Null,
|
|
82
86
|
JwtVerify: JwtVerifyError,
|
|
83
87
|
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
84
|
-
DeriveSeedFailed: IDL.Text
|
|
88
|
+
DeriveSeedFailed: IDL.Text,
|
|
89
|
+
InvalidObservatoryId: IDL.Text
|
|
85
90
|
});
|
|
86
91
|
const AuthenticationError = IDL.Variant({
|
|
87
92
|
PrepareDelegation: PrepareDelegationError,
|
|
@@ -129,17 +134,17 @@ export const idlFactory = ({IDL}) => {
|
|
|
129
134
|
const DeleteProposalAssets = IDL.Record({
|
|
130
135
|
proposal_ids: IDL.Vec(IDL.Nat)
|
|
131
136
|
});
|
|
132
|
-
const
|
|
137
|
+
const OpenIdAuthProviderDelegationConfig = IDL.Record({
|
|
133
138
|
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
134
139
|
max_time_to_live: IDL.Opt(IDL.Nat64)
|
|
135
140
|
});
|
|
136
|
-
const
|
|
137
|
-
delegation: IDL.Opt(
|
|
141
|
+
const OpenIdAuthProviderConfig = IDL.Record({
|
|
142
|
+
delegation: IDL.Opt(OpenIdAuthProviderDelegationConfig),
|
|
138
143
|
client_id: IDL.Text
|
|
139
144
|
});
|
|
140
145
|
const AuthenticationConfigOpenId = IDL.Record({
|
|
141
146
|
observatory_id: IDL.Opt(IDL.Principal),
|
|
142
|
-
providers: IDL.Vec(IDL.Tuple(
|
|
147
|
+
providers: IDL.Vec(IDL.Tuple(OpenIdDelegationProvider, OpenIdAuthProviderConfig))
|
|
143
148
|
});
|
|
144
149
|
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
145
150
|
derivation_origin: IDL.Opt(IDL.Text),
|
|
@@ -211,7 +216,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
211
216
|
NoSuchDelegation: IDL.Null,
|
|
212
217
|
JwtVerify: JwtVerifyError,
|
|
213
218
|
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
214
|
-
DeriveSeedFailed: IDL.Text
|
|
219
|
+
DeriveSeedFailed: IDL.Text,
|
|
220
|
+
InvalidObservatoryId: IDL.Text
|
|
215
221
|
});
|
|
216
222
|
const Result_1 = IDL.Variant({
|
|
217
223
|
Ok: SignedDelegation,
|
|
@@ -360,6 +366,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
360
366
|
items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
|
|
361
367
|
items_length: IDL.Nat64
|
|
362
368
|
});
|
|
369
|
+
const ControllerKind = IDL.Variant({
|
|
370
|
+
Emulator: IDL.Null,
|
|
371
|
+
Automation: IDL.Null
|
|
372
|
+
});
|
|
363
373
|
const ControllerScope = IDL.Variant({
|
|
364
374
|
Write: IDL.Null,
|
|
365
375
|
Admin: IDL.Null,
|
|
@@ -368,6 +378,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
368
378
|
const Controller = IDL.Record({
|
|
369
379
|
updated_at: IDL.Nat64,
|
|
370
380
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
381
|
+
kind: IDL.Opt(ControllerKind),
|
|
371
382
|
created_at: IDL.Nat64,
|
|
372
383
|
scope: ControllerScope,
|
|
373
384
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
@@ -448,6 +459,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
448
459
|
});
|
|
449
460
|
const SetController = IDL.Record({
|
|
450
461
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
462
|
+
kind: IDL.Opt(ControllerKind),
|
|
451
463
|
scope: ControllerScope,
|
|
452
464
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
453
465
|
});
|
|
@@ -546,11 +558,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
546
558
|
set_controllers: IDL.Func([SetControllersArgs], [], []),
|
|
547
559
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
548
560
|
set_fee: IDL.Func([SegmentKind, FeesArgs], [], []),
|
|
561
|
+
set_many_segments: IDL.Func([IDL.Vec(SetSegmentsArgs)], [IDL.Vec(Segment)], []),
|
|
549
562
|
set_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
|
|
550
563
|
set_segment: IDL.Func([SetSegmentsArgs], [Segment], []),
|
|
551
564
|
set_segment_metadata: IDL.Func([SetSegmentMetadataArgs], [Segment], []),
|
|
552
565
|
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
553
566
|
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
567
|
+
unset_many_segments: IDL.Func([IDL.Vec(UnsetSegmentsArgs)], [], []),
|
|
554
568
|
unset_segment: IDL.Func([UnsetSegmentsArgs], [], []),
|
|
555
569
|
upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
|
|
556
570
|
});
|