@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
|
@@ -65,7 +65,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
65
65
|
GetCachedJwks: IDL.Null,
|
|
66
66
|
JwtVerify: JwtVerifyError,
|
|
67
67
|
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
68
|
-
DeriveSeedFailed: IDL.Text
|
|
68
|
+
DeriveSeedFailed: IDL.Text,
|
|
69
|
+
InvalidObservatoryId: IDL.Text
|
|
69
70
|
});
|
|
70
71
|
const AuthenticationError = IDL.Variant({
|
|
71
72
|
PrepareDelegation: PrepareDelegationError,
|
|
@@ -75,6 +76,41 @@ export const idlFactory = ({IDL}) => {
|
|
|
75
76
|
Ok: Authentication,
|
|
76
77
|
Err: AuthenticationError
|
|
77
78
|
});
|
|
79
|
+
const OpenIdPrepareAutomationArgs = IDL.Record({
|
|
80
|
+
jwt: IDL.Text,
|
|
81
|
+
salt: IDL.Vec(IDL.Nat8)
|
|
82
|
+
});
|
|
83
|
+
const AuthenticateAutomationArgs = IDL.Variant({
|
|
84
|
+
OpenId: OpenIdPrepareAutomationArgs
|
|
85
|
+
});
|
|
86
|
+
const AutomationScope = IDL.Variant({
|
|
87
|
+
Write: IDL.Null,
|
|
88
|
+
Submit: IDL.Null
|
|
89
|
+
});
|
|
90
|
+
const AutomationController = IDL.Record({
|
|
91
|
+
scope: AutomationScope,
|
|
92
|
+
expires_at: IDL.Nat64
|
|
93
|
+
});
|
|
94
|
+
const PrepareAutomationError = IDL.Variant({
|
|
95
|
+
JwtFindProvider: JwtFindProviderError,
|
|
96
|
+
InvalidController: IDL.Text,
|
|
97
|
+
GetCachedJwks: IDL.Null,
|
|
98
|
+
JwtVerify: JwtVerifyError,
|
|
99
|
+
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
100
|
+
ControllerAlreadyExists: IDL.Null,
|
|
101
|
+
InvalidObservatoryId: IDL.Text,
|
|
102
|
+
TooManyControllers: IDL.Text
|
|
103
|
+
});
|
|
104
|
+
const AuthenticationAutomationError = IDL.Variant({
|
|
105
|
+
PrepareAutomation: PrepareAutomationError,
|
|
106
|
+
RegisterController: IDL.Text,
|
|
107
|
+
SaveWorkflowMetadata: IDL.Text,
|
|
108
|
+
SaveUniqueJtiToken: IDL.Text
|
|
109
|
+
});
|
|
110
|
+
const AuthenticateAutomationResultResponse = IDL.Variant({
|
|
111
|
+
Ok: IDL.Tuple(IDL.Principal, AutomationController),
|
|
112
|
+
Err: AuthenticationAutomationError
|
|
113
|
+
});
|
|
78
114
|
const CommitBatch = IDL.Record({
|
|
79
115
|
batch_id: IDL.Nat,
|
|
80
116
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
@@ -115,6 +151,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
115
151
|
const DeleteControllersArgs = IDL.Record({
|
|
116
152
|
controllers: IDL.Vec(IDL.Principal)
|
|
117
153
|
});
|
|
154
|
+
const ControllerKind = IDL.Variant({
|
|
155
|
+
Emulator: IDL.Null,
|
|
156
|
+
Automation: IDL.Null
|
|
157
|
+
});
|
|
118
158
|
const ControllerScope = IDL.Variant({
|
|
119
159
|
Write: IDL.Null,
|
|
120
160
|
Admin: IDL.Null,
|
|
@@ -123,6 +163,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
123
163
|
const Controller = IDL.Record({
|
|
124
164
|
updated_at: IDL.Nat64,
|
|
125
165
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
166
|
+
kind: IDL.Opt(ControllerKind),
|
|
126
167
|
created_at: IDL.Nat64,
|
|
127
168
|
scope: ControllerScope,
|
|
128
169
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
@@ -158,18 +199,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
158
199
|
created_at: IDL.Nat64,
|
|
159
200
|
version: IDL.Opt(IDL.Nat64)
|
|
160
201
|
});
|
|
161
|
-
const
|
|
162
|
-
|
|
202
|
+
const OpenIdDelegationProvider = IDL.Variant({
|
|
203
|
+
GitHub: IDL.Null,
|
|
204
|
+
Google: IDL.Null
|
|
205
|
+
});
|
|
206
|
+
const OpenIdAuthProviderDelegationConfig = IDL.Record({
|
|
163
207
|
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
164
208
|
max_time_to_live: IDL.Opt(IDL.Nat64)
|
|
165
209
|
});
|
|
166
|
-
const
|
|
167
|
-
delegation: IDL.Opt(
|
|
210
|
+
const OpenIdAuthProviderConfig = IDL.Record({
|
|
211
|
+
delegation: IDL.Opt(OpenIdAuthProviderDelegationConfig),
|
|
168
212
|
client_id: IDL.Text
|
|
169
213
|
});
|
|
170
214
|
const AuthenticationConfigOpenId = IDL.Record({
|
|
171
215
|
observatory_id: IDL.Opt(IDL.Principal),
|
|
172
|
-
providers: IDL.Vec(IDL.Tuple(
|
|
216
|
+
providers: IDL.Vec(IDL.Tuple(OpenIdDelegationProvider, OpenIdAuthProviderConfig))
|
|
173
217
|
});
|
|
174
218
|
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
175
219
|
derivation_origin: IDL.Opt(IDL.Text),
|
|
@@ -186,6 +230,29 @@ export const idlFactory = ({IDL}) => {
|
|
|
186
230
|
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
187
231
|
rules: IDL.Opt(AuthenticationRules)
|
|
188
232
|
});
|
|
233
|
+
const OpenIdAutomationProvider = IDL.Variant({GitHub: IDL.Null});
|
|
234
|
+
const OpenIdAutomationProviderControllerConfig = IDL.Record({
|
|
235
|
+
scope: IDL.Opt(AutomationScope),
|
|
236
|
+
max_time_to_live: IDL.Opt(IDL.Nat64)
|
|
237
|
+
});
|
|
238
|
+
const RepositoryKey = IDL.Record({owner: IDL.Text, name: IDL.Text});
|
|
239
|
+
const OpenIdAutomationRepositoryConfig = IDL.Record({
|
|
240
|
+
refs: IDL.Opt(IDL.Vec(IDL.Text))
|
|
241
|
+
});
|
|
242
|
+
const OpenIdAutomationProviderConfig = IDL.Record({
|
|
243
|
+
controller: IDL.Opt(OpenIdAutomationProviderControllerConfig),
|
|
244
|
+
repositories: IDL.Vec(IDL.Tuple(RepositoryKey, OpenIdAutomationRepositoryConfig))
|
|
245
|
+
});
|
|
246
|
+
const AutomationConfigOpenId = IDL.Record({
|
|
247
|
+
observatory_id: IDL.Opt(IDL.Principal),
|
|
248
|
+
providers: IDL.Vec(IDL.Tuple(OpenIdAutomationProvider, OpenIdAutomationProviderConfig))
|
|
249
|
+
});
|
|
250
|
+
const AutomationConfig = IDL.Record({
|
|
251
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
252
|
+
openid: IDL.Opt(AutomationConfigOpenId),
|
|
253
|
+
created_at: IDL.Opt(IDL.Nat64),
|
|
254
|
+
version: IDL.Opt(IDL.Nat64)
|
|
255
|
+
});
|
|
189
256
|
const ConfigMaxMemorySize = IDL.Record({
|
|
190
257
|
stable: IDL.Opt(IDL.Nat64),
|
|
191
258
|
heap: IDL.Opt(IDL.Nat64)
|
|
@@ -223,7 +290,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
223
290
|
const Config = IDL.Record({
|
|
224
291
|
db: IDL.Opt(DbConfig),
|
|
225
292
|
authentication: IDL.Opt(AuthenticationConfig),
|
|
226
|
-
storage: StorageConfig
|
|
293
|
+
storage: StorageConfig,
|
|
294
|
+
automation: IDL.Opt(AutomationConfig)
|
|
227
295
|
});
|
|
228
296
|
const OpenIdGetDelegationArgs = IDL.Record({
|
|
229
297
|
jwt: IDL.Text,
|
|
@@ -247,7 +315,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
247
315
|
NoSuchDelegation: IDL.Null,
|
|
248
316
|
JwtVerify: JwtVerifyError,
|
|
249
317
|
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
250
|
-
DeriveSeedFailed: IDL.Text
|
|
318
|
+
DeriveSeedFailed: IDL.Text,
|
|
319
|
+
InvalidObservatoryId: IDL.Text
|
|
251
320
|
});
|
|
252
321
|
const GetDelegationResultResponse = IDL.Variant({
|
|
253
322
|
Ok: SignedDelegation,
|
|
@@ -396,8 +465,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
396
465
|
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
397
466
|
rules: IDL.Opt(AuthenticationRules)
|
|
398
467
|
});
|
|
468
|
+
const SetAutomationConfig = IDL.Record({
|
|
469
|
+
openid: IDL.Opt(AutomationConfigOpenId),
|
|
470
|
+
version: IDL.Opt(IDL.Nat64)
|
|
471
|
+
});
|
|
399
472
|
const SetController = IDL.Record({
|
|
400
473
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
474
|
+
kind: IDL.Opt(ControllerKind),
|
|
401
475
|
scope: ControllerScope,
|
|
402
476
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
403
477
|
});
|
|
@@ -443,6 +517,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
443
517
|
|
|
444
518
|
return IDL.Service({
|
|
445
519
|
authenticate: IDL.Func([AuthenticationArgs], [AuthenticateResultResponse], []),
|
|
520
|
+
authenticate_automation: IDL.Func(
|
|
521
|
+
[AuthenticateAutomationArgs],
|
|
522
|
+
[AuthenticateAutomationResultResponse],
|
|
523
|
+
[]
|
|
524
|
+
),
|
|
446
525
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
447
526
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
448
527
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
@@ -454,6 +533,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
454
533
|
count_proposals: IDL.Func([], [IDL.Nat64], []),
|
|
455
534
|
del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
|
|
456
535
|
del_assets: IDL.Func([IDL.Text], [], []),
|
|
536
|
+
del_controller_self: IDL.Func([], [], []),
|
|
457
537
|
del_controllers: IDL.Func(
|
|
458
538
|
[DeleteControllersArgs],
|
|
459
539
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
@@ -471,6 +551,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
471
551
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
472
552
|
get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], []),
|
|
473
553
|
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], []),
|
|
554
|
+
get_automation_config: IDL.Func([], [IDL.Opt(AutomationConfig)], []),
|
|
474
555
|
get_config: IDL.Func([], [Config], []),
|
|
475
556
|
get_db_config: IDL.Func([], [IDL.Opt(DbConfig)], []),
|
|
476
557
|
get_delegation: IDL.Func([GetDelegationArgs], [GetDelegationResultResponse], []),
|
|
@@ -512,6 +593,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
512
593
|
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
513
594
|
set_asset_token: IDL.Func([IDL.Text, IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
514
595
|
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
|
|
596
|
+
set_automation_config: IDL.Func([SetAutomationConfig], [AutomationConfig], []),
|
|
515
597
|
set_controllers: IDL.Func(
|
|
516
598
|
[SetControllersArgs],
|
|
517
599
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
@@ -65,7 +65,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
65
65
|
GetCachedJwks: IDL.Null,
|
|
66
66
|
JwtVerify: JwtVerifyError,
|
|
67
67
|
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
68
|
-
DeriveSeedFailed: IDL.Text
|
|
68
|
+
DeriveSeedFailed: IDL.Text,
|
|
69
|
+
InvalidObservatoryId: IDL.Text
|
|
69
70
|
});
|
|
70
71
|
const AuthenticationError = IDL.Variant({
|
|
71
72
|
PrepareDelegation: PrepareDelegationError,
|
|
@@ -75,6 +76,41 @@ export const idlFactory = ({IDL}) => {
|
|
|
75
76
|
Ok: Authentication,
|
|
76
77
|
Err: AuthenticationError
|
|
77
78
|
});
|
|
79
|
+
const OpenIdPrepareAutomationArgs = IDL.Record({
|
|
80
|
+
jwt: IDL.Text,
|
|
81
|
+
salt: IDL.Vec(IDL.Nat8)
|
|
82
|
+
});
|
|
83
|
+
const AuthenticateAutomationArgs = IDL.Variant({
|
|
84
|
+
OpenId: OpenIdPrepareAutomationArgs
|
|
85
|
+
});
|
|
86
|
+
const AutomationScope = IDL.Variant({
|
|
87
|
+
Write: IDL.Null,
|
|
88
|
+
Submit: IDL.Null
|
|
89
|
+
});
|
|
90
|
+
const AutomationController = IDL.Record({
|
|
91
|
+
scope: AutomationScope,
|
|
92
|
+
expires_at: IDL.Nat64
|
|
93
|
+
});
|
|
94
|
+
const PrepareAutomationError = IDL.Variant({
|
|
95
|
+
JwtFindProvider: JwtFindProviderError,
|
|
96
|
+
InvalidController: IDL.Text,
|
|
97
|
+
GetCachedJwks: IDL.Null,
|
|
98
|
+
JwtVerify: JwtVerifyError,
|
|
99
|
+
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
100
|
+
ControllerAlreadyExists: IDL.Null,
|
|
101
|
+
InvalidObservatoryId: IDL.Text,
|
|
102
|
+
TooManyControllers: IDL.Text
|
|
103
|
+
});
|
|
104
|
+
const AuthenticationAutomationError = IDL.Variant({
|
|
105
|
+
PrepareAutomation: PrepareAutomationError,
|
|
106
|
+
RegisterController: IDL.Text,
|
|
107
|
+
SaveWorkflowMetadata: IDL.Text,
|
|
108
|
+
SaveUniqueJtiToken: IDL.Text
|
|
109
|
+
});
|
|
110
|
+
const AuthenticateAutomationResultResponse = IDL.Variant({
|
|
111
|
+
Ok: IDL.Tuple(IDL.Principal, AutomationController),
|
|
112
|
+
Err: AuthenticationAutomationError
|
|
113
|
+
});
|
|
78
114
|
const CommitBatch = IDL.Record({
|
|
79
115
|
batch_id: IDL.Nat,
|
|
80
116
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
@@ -115,6 +151,10 @@ export const idlFactory = ({IDL}) => {
|
|
|
115
151
|
const DeleteControllersArgs = IDL.Record({
|
|
116
152
|
controllers: IDL.Vec(IDL.Principal)
|
|
117
153
|
});
|
|
154
|
+
const ControllerKind = IDL.Variant({
|
|
155
|
+
Emulator: IDL.Null,
|
|
156
|
+
Automation: IDL.Null
|
|
157
|
+
});
|
|
118
158
|
const ControllerScope = IDL.Variant({
|
|
119
159
|
Write: IDL.Null,
|
|
120
160
|
Admin: IDL.Null,
|
|
@@ -123,6 +163,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
123
163
|
const Controller = IDL.Record({
|
|
124
164
|
updated_at: IDL.Nat64,
|
|
125
165
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
166
|
+
kind: IDL.Opt(ControllerKind),
|
|
126
167
|
created_at: IDL.Nat64,
|
|
127
168
|
scope: ControllerScope,
|
|
128
169
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
@@ -158,18 +199,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
158
199
|
created_at: IDL.Nat64,
|
|
159
200
|
version: IDL.Opt(IDL.Nat64)
|
|
160
201
|
});
|
|
161
|
-
const
|
|
162
|
-
|
|
202
|
+
const OpenIdDelegationProvider = IDL.Variant({
|
|
203
|
+
GitHub: IDL.Null,
|
|
204
|
+
Google: IDL.Null
|
|
205
|
+
});
|
|
206
|
+
const OpenIdAuthProviderDelegationConfig = IDL.Record({
|
|
163
207
|
targets: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
164
208
|
max_time_to_live: IDL.Opt(IDL.Nat64)
|
|
165
209
|
});
|
|
166
|
-
const
|
|
167
|
-
delegation: IDL.Opt(
|
|
210
|
+
const OpenIdAuthProviderConfig = IDL.Record({
|
|
211
|
+
delegation: IDL.Opt(OpenIdAuthProviderDelegationConfig),
|
|
168
212
|
client_id: IDL.Text
|
|
169
213
|
});
|
|
170
214
|
const AuthenticationConfigOpenId = IDL.Record({
|
|
171
215
|
observatory_id: IDL.Opt(IDL.Principal),
|
|
172
|
-
providers: IDL.Vec(IDL.Tuple(
|
|
216
|
+
providers: IDL.Vec(IDL.Tuple(OpenIdDelegationProvider, OpenIdAuthProviderConfig))
|
|
173
217
|
});
|
|
174
218
|
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
175
219
|
derivation_origin: IDL.Opt(IDL.Text),
|
|
@@ -186,6 +230,29 @@ export const idlFactory = ({IDL}) => {
|
|
|
186
230
|
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
187
231
|
rules: IDL.Opt(AuthenticationRules)
|
|
188
232
|
});
|
|
233
|
+
const OpenIdAutomationProvider = IDL.Variant({GitHub: IDL.Null});
|
|
234
|
+
const OpenIdAutomationProviderControllerConfig = IDL.Record({
|
|
235
|
+
scope: IDL.Opt(AutomationScope),
|
|
236
|
+
max_time_to_live: IDL.Opt(IDL.Nat64)
|
|
237
|
+
});
|
|
238
|
+
const RepositoryKey = IDL.Record({owner: IDL.Text, name: IDL.Text});
|
|
239
|
+
const OpenIdAutomationRepositoryConfig = IDL.Record({
|
|
240
|
+
refs: IDL.Opt(IDL.Vec(IDL.Text))
|
|
241
|
+
});
|
|
242
|
+
const OpenIdAutomationProviderConfig = IDL.Record({
|
|
243
|
+
controller: IDL.Opt(OpenIdAutomationProviderControllerConfig),
|
|
244
|
+
repositories: IDL.Vec(IDL.Tuple(RepositoryKey, OpenIdAutomationRepositoryConfig))
|
|
245
|
+
});
|
|
246
|
+
const AutomationConfigOpenId = IDL.Record({
|
|
247
|
+
observatory_id: IDL.Opt(IDL.Principal),
|
|
248
|
+
providers: IDL.Vec(IDL.Tuple(OpenIdAutomationProvider, OpenIdAutomationProviderConfig))
|
|
249
|
+
});
|
|
250
|
+
const AutomationConfig = IDL.Record({
|
|
251
|
+
updated_at: IDL.Opt(IDL.Nat64),
|
|
252
|
+
openid: IDL.Opt(AutomationConfigOpenId),
|
|
253
|
+
created_at: IDL.Opt(IDL.Nat64),
|
|
254
|
+
version: IDL.Opt(IDL.Nat64)
|
|
255
|
+
});
|
|
189
256
|
const ConfigMaxMemorySize = IDL.Record({
|
|
190
257
|
stable: IDL.Opt(IDL.Nat64),
|
|
191
258
|
heap: IDL.Opt(IDL.Nat64)
|
|
@@ -223,7 +290,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
223
290
|
const Config = IDL.Record({
|
|
224
291
|
db: IDL.Opt(DbConfig),
|
|
225
292
|
authentication: IDL.Opt(AuthenticationConfig),
|
|
226
|
-
storage: StorageConfig
|
|
293
|
+
storage: StorageConfig,
|
|
294
|
+
automation: IDL.Opt(AutomationConfig)
|
|
227
295
|
});
|
|
228
296
|
const OpenIdGetDelegationArgs = IDL.Record({
|
|
229
297
|
jwt: IDL.Text,
|
|
@@ -247,7 +315,8 @@ export const idlFactory = ({IDL}) => {
|
|
|
247
315
|
NoSuchDelegation: IDL.Null,
|
|
248
316
|
JwtVerify: JwtVerifyError,
|
|
249
317
|
GetOrFetchJwks: GetOrRefreshJwksError,
|
|
250
|
-
DeriveSeedFailed: IDL.Text
|
|
318
|
+
DeriveSeedFailed: IDL.Text,
|
|
319
|
+
InvalidObservatoryId: IDL.Text
|
|
251
320
|
});
|
|
252
321
|
const GetDelegationResultResponse = IDL.Variant({
|
|
253
322
|
Ok: SignedDelegation,
|
|
@@ -396,8 +465,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
396
465
|
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
|
|
397
466
|
rules: IDL.Opt(AuthenticationRules)
|
|
398
467
|
});
|
|
468
|
+
const SetAutomationConfig = IDL.Record({
|
|
469
|
+
openid: IDL.Opt(AutomationConfigOpenId),
|
|
470
|
+
version: IDL.Opt(IDL.Nat64)
|
|
471
|
+
});
|
|
399
472
|
const SetController = IDL.Record({
|
|
400
473
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
474
|
+
kind: IDL.Opt(ControllerKind),
|
|
401
475
|
scope: ControllerScope,
|
|
402
476
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
403
477
|
});
|
|
@@ -443,6 +517,11 @@ export const idlFactory = ({IDL}) => {
|
|
|
443
517
|
|
|
444
518
|
return IDL.Service({
|
|
445
519
|
authenticate: IDL.Func([AuthenticationArgs], [AuthenticateResultResponse], []),
|
|
520
|
+
authenticate_automation: IDL.Func(
|
|
521
|
+
[AuthenticateAutomationArgs],
|
|
522
|
+
[AuthenticateAutomationResultResponse],
|
|
523
|
+
[]
|
|
524
|
+
),
|
|
446
525
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
447
526
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
448
527
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
@@ -454,6 +533,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
454
533
|
count_proposals: IDL.Func([], [IDL.Nat64], ['query']),
|
|
455
534
|
del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
|
|
456
535
|
del_assets: IDL.Func([IDL.Text], [], []),
|
|
536
|
+
del_controller_self: IDL.Func([], [], []),
|
|
457
537
|
del_controllers: IDL.Func(
|
|
458
538
|
[DeleteControllersArgs],
|
|
459
539
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
@@ -471,6 +551,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
471
551
|
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
472
552
|
get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
|
|
473
553
|
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
554
|
+
get_automation_config: IDL.Func([], [IDL.Opt(AutomationConfig)], ['query']),
|
|
474
555
|
get_config: IDL.Func([], [Config], []),
|
|
475
556
|
get_db_config: IDL.Func([], [IDL.Opt(DbConfig)], ['query']),
|
|
476
557
|
get_delegation: IDL.Func([GetDelegationArgs], [GetDelegationResultResponse], ['query']),
|
|
@@ -512,6 +593,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
512
593
|
reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
513
594
|
set_asset_token: IDL.Func([IDL.Text, IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
514
595
|
set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
|
|
596
|
+
set_automation_config: IDL.Func([SetAutomationConfig], [AutomationConfig], []),
|
|
515
597
|
set_controllers: IDL.Func(
|
|
516
598
|
[SetControllersArgs],
|
|
517
599
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
package/package.json
CHANGED