@junobuild/ic-client 8.0.2 → 8.1.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 +18 -18
- package/declarations/console/console.factory.certified.did.js +10 -10
- package/declarations/console/console.factory.did.js +10 -10
- package/declarations/console/console.factory.did.mjs +10 -10
- package/declarations/mission_control/mission_control.did.d.ts +17 -17
- package/declarations/mission_control/mission_control.factory.certified.did.js +12 -12
- package/declarations/mission_control/mission_control.factory.did.js +12 -12
- package/declarations/observatory/observatory.did.d.ts +10 -10
- package/declarations/observatory/observatory.factory.certified.did.js +10 -10
- package/declarations/observatory/observatory.factory.did.js +10 -10
- package/declarations/observatory/observatory.factory.did.mjs +10 -10
- package/declarations/orbiter/orbiter.did.d.ts +17 -17
- package/declarations/orbiter/orbiter.factory.certified.did.js +12 -12
- package/declarations/orbiter/orbiter.factory.did.js +12 -12
- package/declarations/orbiter/orbiter.factory.did.mjs +12 -12
- package/declarations/satellite/satellite.did.d.ts +44 -20
- package/declarations/satellite/satellite.factory.certified.did.js +46 -20
- package/declarations/satellite/satellite.factory.did.js +46 -20
- package/declarations/satellite/satellite.factory.did.mjs +46 -20
- package/declarations/sputnik/sputnik.did.d.ts +44 -20
- package/declarations/sputnik/sputnik.factory.certified.did.js +46 -20
- package/declarations/sputnik/sputnik.factory.did.js +46 -20
- package/package.json +2 -2
- package/webauthn.js +1 -1
- package/webauthn.js.map +3 -3
- package/webauthn.mjs +1 -1
- package/webauthn.mjs.map +3 -3
|
@@ -111,6 +111,31 @@ export const idlFactory = ({IDL}) => {
|
|
|
111
111
|
Ok: IDL.Tuple(IDL.Principal, AutomationController),
|
|
112
112
|
Err: AuthenticationAutomationError
|
|
113
113
|
});
|
|
114
|
+
const AssetKey = IDL.Record({
|
|
115
|
+
token: IDL.Opt(IDL.Text),
|
|
116
|
+
collection: IDL.Text,
|
|
117
|
+
owner: IDL.Principal,
|
|
118
|
+
name: IDL.Text,
|
|
119
|
+
description: IDL.Opt(IDL.Text),
|
|
120
|
+
full_path: IDL.Text
|
|
121
|
+
});
|
|
122
|
+
const CertifyAssetsCursor = IDL.Variant({
|
|
123
|
+
Heap: IDL.Record({offset: IDL.Nat64}),
|
|
124
|
+
Stable: IDL.Record({key: IDL.Opt(AssetKey)})
|
|
125
|
+
});
|
|
126
|
+
const CertifyAssetsStrategy = IDL.Variant({
|
|
127
|
+
Append: IDL.Null,
|
|
128
|
+
Clear: IDL.Null,
|
|
129
|
+
AppendWithRouting: IDL.Null
|
|
130
|
+
});
|
|
131
|
+
const CertifyAssetsArgs = IDL.Record({
|
|
132
|
+
cursor: CertifyAssetsCursor,
|
|
133
|
+
strategy: CertifyAssetsStrategy,
|
|
134
|
+
chunk_size: IDL.Opt(IDL.Nat32)
|
|
135
|
+
});
|
|
136
|
+
const CertifyAssetsResult = IDL.Record({
|
|
137
|
+
next_cursor: IDL.Opt(CertifyAssetsCursor)
|
|
138
|
+
});
|
|
114
139
|
const CommitBatch = IDL.Record({
|
|
115
140
|
batch_id: IDL.Nat,
|
|
116
141
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
@@ -151,21 +176,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
151
176
|
const DeleteControllersArgs = IDL.Record({
|
|
152
177
|
controllers: IDL.Vec(IDL.Principal)
|
|
153
178
|
});
|
|
154
|
-
const
|
|
179
|
+
const AccessKeyKind = IDL.Variant({
|
|
155
180
|
Emulator: IDL.Null,
|
|
156
181
|
Automation: IDL.Null
|
|
157
182
|
});
|
|
158
|
-
const
|
|
183
|
+
const AccessKeyScope = IDL.Variant({
|
|
159
184
|
Write: IDL.Null,
|
|
160
185
|
Admin: IDL.Null,
|
|
161
186
|
Submit: IDL.Null
|
|
162
187
|
});
|
|
163
|
-
const
|
|
188
|
+
const AccessKey = IDL.Record({
|
|
164
189
|
updated_at: IDL.Nat64,
|
|
165
190
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
166
|
-
kind: IDL.Opt(
|
|
191
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
167
192
|
created_at: IDL.Nat64,
|
|
168
|
-
scope:
|
|
193
|
+
scope: AccessKeyScope,
|
|
169
194
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
170
195
|
});
|
|
171
196
|
const DelDoc = IDL.Record({version: IDL.Opt(IDL.Nat64)});
|
|
@@ -178,14 +203,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
178
203
|
cycles: IDL.Nat,
|
|
179
204
|
destination_id: IDL.Principal
|
|
180
205
|
});
|
|
181
|
-
const AssetKey = IDL.Record({
|
|
182
|
-
token: IDL.Opt(IDL.Text),
|
|
183
|
-
collection: IDL.Text,
|
|
184
|
-
owner: IDL.Principal,
|
|
185
|
-
name: IDL.Text,
|
|
186
|
-
description: IDL.Opt(IDL.Text),
|
|
187
|
-
full_path: IDL.Text
|
|
188
|
-
});
|
|
189
206
|
const AssetEncodingNoContent = IDL.Record({
|
|
190
207
|
modified: IDL.Nat64,
|
|
191
208
|
sha256: IDL.Vec(IDL.Nat8),
|
|
@@ -469,14 +486,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
469
486
|
openid: IDL.Opt(AutomationConfigOpenId),
|
|
470
487
|
version: IDL.Opt(IDL.Nat64)
|
|
471
488
|
});
|
|
472
|
-
const
|
|
489
|
+
const SetAccessKey = IDL.Record({
|
|
473
490
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
474
|
-
kind: IDL.Opt(
|
|
475
|
-
scope:
|
|
491
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
492
|
+
scope: AccessKeyScope,
|
|
476
493
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
477
494
|
});
|
|
478
495
|
const SetControllersArgs = IDL.Record({
|
|
479
|
-
controller:
|
|
496
|
+
controller: SetAccessKey,
|
|
480
497
|
controllers: IDL.Vec(IDL.Principal)
|
|
481
498
|
});
|
|
482
499
|
const SetDbConfig = IDL.Record({
|
|
@@ -508,6 +525,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
508
525
|
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
509
526
|
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
510
527
|
});
|
|
528
|
+
const SetStorageConfigOptions = IDL.Record({
|
|
529
|
+
skip_certification: IDL.Opt(IDL.Bool)
|
|
530
|
+
});
|
|
531
|
+
const SetStorageConfigWithOptions = IDL.Record({
|
|
532
|
+
config: SetStorageConfig,
|
|
533
|
+
options: SetStorageConfigOptions
|
|
534
|
+
});
|
|
511
535
|
const UploadChunk = IDL.Record({
|
|
512
536
|
content: IDL.Vec(IDL.Nat8),
|
|
513
537
|
batch_id: IDL.Nat,
|
|
@@ -522,6 +546,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
522
546
|
[AuthenticateAutomationResultResponse],
|
|
523
547
|
[]
|
|
524
548
|
),
|
|
549
|
+
certify_assets_chunk: IDL.Func([CertifyAssetsArgs], [CertifyAssetsResult], []),
|
|
525
550
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
526
551
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
527
552
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
@@ -536,7 +561,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
536
561
|
del_controller_self: IDL.Func([], [], []),
|
|
537
562
|
del_controllers: IDL.Func(
|
|
538
563
|
[DeleteControllersArgs],
|
|
539
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
564
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
|
|
540
565
|
[]
|
|
541
566
|
),
|
|
542
567
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
@@ -584,7 +609,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
584
609
|
[]
|
|
585
610
|
),
|
|
586
611
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
587
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
612
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], ['query']),
|
|
588
613
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
589
614
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
590
615
|
list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], ['query']),
|
|
@@ -596,7 +621,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
596
621
|
set_automation_config: IDL.Func([SetAutomationConfig], [AutomationConfig], []),
|
|
597
622
|
set_controllers: IDL.Func(
|
|
598
623
|
[SetControllersArgs],
|
|
599
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
624
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
|
|
600
625
|
[]
|
|
601
626
|
),
|
|
602
627
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
@@ -609,6 +634,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
609
634
|
),
|
|
610
635
|
set_rule: IDL.Func([CollectionType, IDL.Text, SetRule], [Rule], []),
|
|
611
636
|
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
637
|
+
set_storage_config_with_options: IDL.Func([SetStorageConfigWithOptions], [StorageConfig], []),
|
|
612
638
|
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
613
639
|
switch_storage_system_memory: IDL.Func([], [], []),
|
|
614
640
|
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
@@ -111,6 +111,31 @@ export const idlFactory = ({IDL}) => {
|
|
|
111
111
|
Ok: IDL.Tuple(IDL.Principal, AutomationController),
|
|
112
112
|
Err: AuthenticationAutomationError
|
|
113
113
|
});
|
|
114
|
+
const AssetKey = IDL.Record({
|
|
115
|
+
token: IDL.Opt(IDL.Text),
|
|
116
|
+
collection: IDL.Text,
|
|
117
|
+
owner: IDL.Principal,
|
|
118
|
+
name: IDL.Text,
|
|
119
|
+
description: IDL.Opt(IDL.Text),
|
|
120
|
+
full_path: IDL.Text
|
|
121
|
+
});
|
|
122
|
+
const CertifyAssetsCursor = IDL.Variant({
|
|
123
|
+
Heap: IDL.Record({offset: IDL.Nat64}),
|
|
124
|
+
Stable: IDL.Record({key: IDL.Opt(AssetKey)})
|
|
125
|
+
});
|
|
126
|
+
const CertifyAssetsStrategy = IDL.Variant({
|
|
127
|
+
Append: IDL.Null,
|
|
128
|
+
Clear: IDL.Null,
|
|
129
|
+
AppendWithRouting: IDL.Null
|
|
130
|
+
});
|
|
131
|
+
const CertifyAssetsArgs = IDL.Record({
|
|
132
|
+
cursor: CertifyAssetsCursor,
|
|
133
|
+
strategy: CertifyAssetsStrategy,
|
|
134
|
+
chunk_size: IDL.Opt(IDL.Nat32)
|
|
135
|
+
});
|
|
136
|
+
const CertifyAssetsResult = IDL.Record({
|
|
137
|
+
next_cursor: IDL.Opt(CertifyAssetsCursor)
|
|
138
|
+
});
|
|
114
139
|
const CommitBatch = IDL.Record({
|
|
115
140
|
batch_id: IDL.Nat,
|
|
116
141
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
@@ -151,21 +176,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
151
176
|
const DeleteControllersArgs = IDL.Record({
|
|
152
177
|
controllers: IDL.Vec(IDL.Principal)
|
|
153
178
|
});
|
|
154
|
-
const
|
|
179
|
+
const AccessKeyKind = IDL.Variant({
|
|
155
180
|
Emulator: IDL.Null,
|
|
156
181
|
Automation: IDL.Null
|
|
157
182
|
});
|
|
158
|
-
const
|
|
183
|
+
const AccessKeyScope = IDL.Variant({
|
|
159
184
|
Write: IDL.Null,
|
|
160
185
|
Admin: IDL.Null,
|
|
161
186
|
Submit: IDL.Null
|
|
162
187
|
});
|
|
163
|
-
const
|
|
188
|
+
const AccessKey = IDL.Record({
|
|
164
189
|
updated_at: IDL.Nat64,
|
|
165
190
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
166
|
-
kind: IDL.Opt(
|
|
191
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
167
192
|
created_at: IDL.Nat64,
|
|
168
|
-
scope:
|
|
193
|
+
scope: AccessKeyScope,
|
|
169
194
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
170
195
|
});
|
|
171
196
|
const DelDoc = IDL.Record({version: IDL.Opt(IDL.Nat64)});
|
|
@@ -178,14 +203,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
178
203
|
cycles: IDL.Nat,
|
|
179
204
|
destination_id: IDL.Principal
|
|
180
205
|
});
|
|
181
|
-
const AssetKey = IDL.Record({
|
|
182
|
-
token: IDL.Opt(IDL.Text),
|
|
183
|
-
collection: IDL.Text,
|
|
184
|
-
owner: IDL.Principal,
|
|
185
|
-
name: IDL.Text,
|
|
186
|
-
description: IDL.Opt(IDL.Text),
|
|
187
|
-
full_path: IDL.Text
|
|
188
|
-
});
|
|
189
206
|
const AssetEncodingNoContent = IDL.Record({
|
|
190
207
|
modified: IDL.Nat64,
|
|
191
208
|
sha256: IDL.Vec(IDL.Nat8),
|
|
@@ -469,14 +486,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
469
486
|
openid: IDL.Opt(AutomationConfigOpenId),
|
|
470
487
|
version: IDL.Opt(IDL.Nat64)
|
|
471
488
|
});
|
|
472
|
-
const
|
|
489
|
+
const SetAccessKey = IDL.Record({
|
|
473
490
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
474
|
-
kind: IDL.Opt(
|
|
475
|
-
scope:
|
|
491
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
492
|
+
scope: AccessKeyScope,
|
|
476
493
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
477
494
|
});
|
|
478
495
|
const SetControllersArgs = IDL.Record({
|
|
479
|
-
controller:
|
|
496
|
+
controller: SetAccessKey,
|
|
480
497
|
controllers: IDL.Vec(IDL.Principal)
|
|
481
498
|
});
|
|
482
499
|
const SetDbConfig = IDL.Record({
|
|
@@ -508,6 +525,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
508
525
|
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
509
526
|
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
510
527
|
});
|
|
528
|
+
const SetStorageConfigOptions = IDL.Record({
|
|
529
|
+
skip_certification: IDL.Opt(IDL.Bool)
|
|
530
|
+
});
|
|
531
|
+
const SetStorageConfigWithOptions = IDL.Record({
|
|
532
|
+
config: SetStorageConfig,
|
|
533
|
+
options: SetStorageConfigOptions
|
|
534
|
+
});
|
|
511
535
|
const UploadChunk = IDL.Record({
|
|
512
536
|
content: IDL.Vec(IDL.Nat8),
|
|
513
537
|
batch_id: IDL.Nat,
|
|
@@ -522,6 +546,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
522
546
|
[AuthenticateAutomationResultResponse],
|
|
523
547
|
[]
|
|
524
548
|
),
|
|
549
|
+
certify_assets_chunk: IDL.Func([CertifyAssetsArgs], [CertifyAssetsResult], []),
|
|
525
550
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
526
551
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
527
552
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
@@ -536,7 +561,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
536
561
|
del_controller_self: IDL.Func([], [], []),
|
|
537
562
|
del_controllers: IDL.Func(
|
|
538
563
|
[DeleteControllersArgs],
|
|
539
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
564
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
|
|
540
565
|
[]
|
|
541
566
|
),
|
|
542
567
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
@@ -584,7 +609,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
584
609
|
[]
|
|
585
610
|
),
|
|
586
611
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
587
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
612
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], ['query']),
|
|
588
613
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
589
614
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
590
615
|
list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], ['query']),
|
|
@@ -596,7 +621,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
596
621
|
set_automation_config: IDL.Func([SetAutomationConfig], [AutomationConfig], []),
|
|
597
622
|
set_controllers: IDL.Func(
|
|
598
623
|
[SetControllersArgs],
|
|
599
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
624
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
|
|
600
625
|
[]
|
|
601
626
|
),
|
|
602
627
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
@@ -609,6 +634,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
609
634
|
),
|
|
610
635
|
set_rule: IDL.Func([CollectionType, IDL.Text, SetRule], [Rule], []),
|
|
611
636
|
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
637
|
+
set_storage_config_with_options: IDL.Func([SetStorageConfigWithOptions], [StorageConfig], []),
|
|
612
638
|
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
613
639
|
switch_storage_system_memory: IDL.Func([], [], []),
|
|
614
640
|
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
@@ -10,6 +10,16 @@ import type { ActorMethod } from '@icp-sdk/core/agent';
|
|
|
10
10
|
import type { IDL } from '@icp-sdk/core/candid';
|
|
11
11
|
import type { Principal } from '@icp-sdk/core/principal';
|
|
12
12
|
|
|
13
|
+
export interface AccessKey {
|
|
14
|
+
updated_at: bigint;
|
|
15
|
+
metadata: Array<[string, string]>;
|
|
16
|
+
kind: [] | [AccessKeyKind];
|
|
17
|
+
created_at: bigint;
|
|
18
|
+
scope: AccessKeyScope;
|
|
19
|
+
expires_at: [] | [bigint];
|
|
20
|
+
}
|
|
21
|
+
export type AccessKeyKind = { Emulator: null } | { Automation: null };
|
|
22
|
+
export type AccessKeyScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
13
23
|
export interface AssetEncodingNoContent {
|
|
14
24
|
modified: bigint;
|
|
15
25
|
sha256: Uint8Array;
|
|
@@ -94,6 +104,21 @@ export interface AutomationController {
|
|
|
94
104
|
expires_at: bigint;
|
|
95
105
|
}
|
|
96
106
|
export type AutomationScope = { Write: null } | { Submit: null };
|
|
107
|
+
export interface CertifyAssetsArgs {
|
|
108
|
+
cursor: CertifyAssetsCursor;
|
|
109
|
+
strategy: CertifyAssetsStrategy;
|
|
110
|
+
chunk_size: [] | [number];
|
|
111
|
+
}
|
|
112
|
+
export type CertifyAssetsCursor =
|
|
113
|
+
| { Heap: { offset: bigint } }
|
|
114
|
+
| { Stable: { key: [] | [AssetKey] } };
|
|
115
|
+
export interface CertifyAssetsResult {
|
|
116
|
+
next_cursor: [] | [CertifyAssetsCursor];
|
|
117
|
+
}
|
|
118
|
+
export type CertifyAssetsStrategy =
|
|
119
|
+
| { Append: null }
|
|
120
|
+
| { Clear: null }
|
|
121
|
+
| { AppendWithRouting: null };
|
|
97
122
|
export type CollectionType = { Db: null } | { Storage: null };
|
|
98
123
|
export interface CommitBatch {
|
|
99
124
|
batch_id: bigint;
|
|
@@ -114,16 +139,6 @@ export interface ConfigMaxMemorySize {
|
|
|
114
139
|
stable: [] | [bigint];
|
|
115
140
|
heap: [] | [bigint];
|
|
116
141
|
}
|
|
117
|
-
export interface Controller {
|
|
118
|
-
updated_at: bigint;
|
|
119
|
-
metadata: Array<[string, string]>;
|
|
120
|
-
kind: [] | [ControllerKind];
|
|
121
|
-
created_at: bigint;
|
|
122
|
-
scope: ControllerScope;
|
|
123
|
-
expires_at: [] | [bigint];
|
|
124
|
-
}
|
|
125
|
-
export type ControllerKind = { Emulator: null } | { Automation: null };
|
|
126
|
-
export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
|
|
127
142
|
export interface CustomDomain {
|
|
128
143
|
updated_at: bigint;
|
|
129
144
|
created_at: bigint;
|
|
@@ -407,6 +422,12 @@ export interface SegmentsDeploymentOptions {
|
|
|
407
422
|
mission_control_version: [] | [string];
|
|
408
423
|
satellite_version: [] | [string];
|
|
409
424
|
}
|
|
425
|
+
export interface SetAccessKey {
|
|
426
|
+
metadata: Array<[string, string]>;
|
|
427
|
+
kind: [] | [AccessKeyKind];
|
|
428
|
+
scope: AccessKeyScope;
|
|
429
|
+
expires_at: [] | [bigint];
|
|
430
|
+
}
|
|
410
431
|
export interface SetAuthenticationConfig {
|
|
411
432
|
openid: [] | [AuthenticationConfigOpenId];
|
|
412
433
|
version: [] | [bigint];
|
|
@@ -417,14 +438,8 @@ export interface SetAutomationConfig {
|
|
|
417
438
|
openid: [] | [AutomationConfigOpenId];
|
|
418
439
|
version: [] | [bigint];
|
|
419
440
|
}
|
|
420
|
-
export interface SetController {
|
|
421
|
-
metadata: Array<[string, string]>;
|
|
422
|
-
kind: [] | [ControllerKind];
|
|
423
|
-
scope: ControllerScope;
|
|
424
|
-
expires_at: [] | [bigint];
|
|
425
|
-
}
|
|
426
441
|
export interface SetControllersArgs {
|
|
427
|
-
controller:
|
|
442
|
+
controller: SetAccessKey;
|
|
428
443
|
controllers: Array<Principal>;
|
|
429
444
|
}
|
|
430
445
|
export interface SetDbConfig {
|
|
@@ -456,6 +471,13 @@ export interface SetStorageConfig {
|
|
|
456
471
|
raw_access: [] | [StorageConfigRawAccess];
|
|
457
472
|
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
458
473
|
}
|
|
474
|
+
export interface SetStorageConfigOptions {
|
|
475
|
+
skip_certification: [] | [boolean];
|
|
476
|
+
}
|
|
477
|
+
export interface SetStorageConfigWithOptions {
|
|
478
|
+
config: SetStorageConfig;
|
|
479
|
+
options: SetStorageConfigOptions;
|
|
480
|
+
}
|
|
459
481
|
export interface SignedDelegation {
|
|
460
482
|
signature: Uint8Array;
|
|
461
483
|
delegation: Delegation;
|
|
@@ -515,6 +537,7 @@ export interface _SERVICE {
|
|
|
515
537
|
[AuthenticateAutomationArgs],
|
|
516
538
|
AuthenticateAutomationResultResponse
|
|
517
539
|
>;
|
|
540
|
+
certify_assets_chunk: ActorMethod<[CertifyAssetsArgs], CertifyAssetsResult>;
|
|
518
541
|
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
519
542
|
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
520
543
|
commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
@@ -527,7 +550,7 @@ export interface _SERVICE {
|
|
|
527
550
|
del_asset: ActorMethod<[string, string], undefined>;
|
|
528
551
|
del_assets: ActorMethod<[string], undefined>;
|
|
529
552
|
del_controller_self: ActorMethod<[], undefined>;
|
|
530
|
-
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal,
|
|
553
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, AccessKey]>>;
|
|
531
554
|
del_custom_domain: ActorMethod<[string], undefined>;
|
|
532
555
|
del_doc: ActorMethod<[string, string, DelDoc], undefined>;
|
|
533
556
|
del_docs: ActorMethod<[string], undefined>;
|
|
@@ -563,7 +586,7 @@ export interface _SERVICE {
|
|
|
563
586
|
Array<[string, InitUploadResult]>
|
|
564
587
|
>;
|
|
565
588
|
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
566
|
-
list_controllers: ActorMethod<[], Array<[Principal,
|
|
589
|
+
list_controllers: ActorMethod<[], Array<[Principal, AccessKey]>>;
|
|
567
590
|
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
568
591
|
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
569
592
|
list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
|
|
@@ -573,13 +596,14 @@ export interface _SERVICE {
|
|
|
573
596
|
set_asset_token: ActorMethod<[string, string, [] | [string]], undefined>;
|
|
574
597
|
set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
|
|
575
598
|
set_automation_config: ActorMethod<[SetAutomationConfig], AutomationConfig>;
|
|
576
|
-
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal,
|
|
599
|
+
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, AccessKey]>>;
|
|
577
600
|
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
578
601
|
set_db_config: ActorMethod<[SetDbConfig], DbConfig>;
|
|
579
602
|
set_doc: ActorMethod<[string, string, SetDoc], Doc>;
|
|
580
603
|
set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<[string, Doc]>>;
|
|
581
604
|
set_rule: ActorMethod<[CollectionType, string, SetRule], Rule>;
|
|
582
605
|
set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
|
|
606
|
+
set_storage_config_with_options: ActorMethod<[SetStorageConfigWithOptions], StorageConfig>;
|
|
583
607
|
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
584
608
|
switch_storage_system_memory: ActorMethod<[], undefined>;
|
|
585
609
|
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
@@ -111,6 +111,31 @@ export const idlFactory = ({IDL}) => {
|
|
|
111
111
|
Ok: IDL.Tuple(IDL.Principal, AutomationController),
|
|
112
112
|
Err: AuthenticationAutomationError
|
|
113
113
|
});
|
|
114
|
+
const AssetKey = IDL.Record({
|
|
115
|
+
token: IDL.Opt(IDL.Text),
|
|
116
|
+
collection: IDL.Text,
|
|
117
|
+
owner: IDL.Principal,
|
|
118
|
+
name: IDL.Text,
|
|
119
|
+
description: IDL.Opt(IDL.Text),
|
|
120
|
+
full_path: IDL.Text
|
|
121
|
+
});
|
|
122
|
+
const CertifyAssetsCursor = IDL.Variant({
|
|
123
|
+
Heap: IDL.Record({offset: IDL.Nat64}),
|
|
124
|
+
Stable: IDL.Record({key: IDL.Opt(AssetKey)})
|
|
125
|
+
});
|
|
126
|
+
const CertifyAssetsStrategy = IDL.Variant({
|
|
127
|
+
Append: IDL.Null,
|
|
128
|
+
Clear: IDL.Null,
|
|
129
|
+
AppendWithRouting: IDL.Null
|
|
130
|
+
});
|
|
131
|
+
const CertifyAssetsArgs = IDL.Record({
|
|
132
|
+
cursor: CertifyAssetsCursor,
|
|
133
|
+
strategy: CertifyAssetsStrategy,
|
|
134
|
+
chunk_size: IDL.Opt(IDL.Nat32)
|
|
135
|
+
});
|
|
136
|
+
const CertifyAssetsResult = IDL.Record({
|
|
137
|
+
next_cursor: IDL.Opt(CertifyAssetsCursor)
|
|
138
|
+
});
|
|
114
139
|
const CommitBatch = IDL.Record({
|
|
115
140
|
batch_id: IDL.Nat,
|
|
116
141
|
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
@@ -151,21 +176,21 @@ export const idlFactory = ({IDL}) => {
|
|
|
151
176
|
const DeleteControllersArgs = IDL.Record({
|
|
152
177
|
controllers: IDL.Vec(IDL.Principal)
|
|
153
178
|
});
|
|
154
|
-
const
|
|
179
|
+
const AccessKeyKind = IDL.Variant({
|
|
155
180
|
Emulator: IDL.Null,
|
|
156
181
|
Automation: IDL.Null
|
|
157
182
|
});
|
|
158
|
-
const
|
|
183
|
+
const AccessKeyScope = IDL.Variant({
|
|
159
184
|
Write: IDL.Null,
|
|
160
185
|
Admin: IDL.Null,
|
|
161
186
|
Submit: IDL.Null
|
|
162
187
|
});
|
|
163
|
-
const
|
|
188
|
+
const AccessKey = IDL.Record({
|
|
164
189
|
updated_at: IDL.Nat64,
|
|
165
190
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
166
|
-
kind: IDL.Opt(
|
|
191
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
167
192
|
created_at: IDL.Nat64,
|
|
168
|
-
scope:
|
|
193
|
+
scope: AccessKeyScope,
|
|
169
194
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
170
195
|
});
|
|
171
196
|
const DelDoc = IDL.Record({version: IDL.Opt(IDL.Nat64)});
|
|
@@ -178,14 +203,6 @@ export const idlFactory = ({IDL}) => {
|
|
|
178
203
|
cycles: IDL.Nat,
|
|
179
204
|
destination_id: IDL.Principal
|
|
180
205
|
});
|
|
181
|
-
const AssetKey = IDL.Record({
|
|
182
|
-
token: IDL.Opt(IDL.Text),
|
|
183
|
-
collection: IDL.Text,
|
|
184
|
-
owner: IDL.Principal,
|
|
185
|
-
name: IDL.Text,
|
|
186
|
-
description: IDL.Opt(IDL.Text),
|
|
187
|
-
full_path: IDL.Text
|
|
188
|
-
});
|
|
189
206
|
const AssetEncodingNoContent = IDL.Record({
|
|
190
207
|
modified: IDL.Nat64,
|
|
191
208
|
sha256: IDL.Vec(IDL.Nat8),
|
|
@@ -469,14 +486,14 @@ export const idlFactory = ({IDL}) => {
|
|
|
469
486
|
openid: IDL.Opt(AutomationConfigOpenId),
|
|
470
487
|
version: IDL.Opt(IDL.Nat64)
|
|
471
488
|
});
|
|
472
|
-
const
|
|
489
|
+
const SetAccessKey = IDL.Record({
|
|
473
490
|
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
474
|
-
kind: IDL.Opt(
|
|
475
|
-
scope:
|
|
491
|
+
kind: IDL.Opt(AccessKeyKind),
|
|
492
|
+
scope: AccessKeyScope,
|
|
476
493
|
expires_at: IDL.Opt(IDL.Nat64)
|
|
477
494
|
});
|
|
478
495
|
const SetControllersArgs = IDL.Record({
|
|
479
|
-
controller:
|
|
496
|
+
controller: SetAccessKey,
|
|
480
497
|
controllers: IDL.Vec(IDL.Principal)
|
|
481
498
|
});
|
|
482
499
|
const SetDbConfig = IDL.Record({
|
|
@@ -508,6 +525,13 @@ export const idlFactory = ({IDL}) => {
|
|
|
508
525
|
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
509
526
|
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
510
527
|
});
|
|
528
|
+
const SetStorageConfigOptions = IDL.Record({
|
|
529
|
+
skip_certification: IDL.Opt(IDL.Bool)
|
|
530
|
+
});
|
|
531
|
+
const SetStorageConfigWithOptions = IDL.Record({
|
|
532
|
+
config: SetStorageConfig,
|
|
533
|
+
options: SetStorageConfigOptions
|
|
534
|
+
});
|
|
511
535
|
const UploadChunk = IDL.Record({
|
|
512
536
|
content: IDL.Vec(IDL.Nat8),
|
|
513
537
|
batch_id: IDL.Nat,
|
|
@@ -522,6 +546,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
522
546
|
[AuthenticateAutomationResultResponse],
|
|
523
547
|
[]
|
|
524
548
|
),
|
|
549
|
+
certify_assets_chunk: IDL.Func([CertifyAssetsArgs], [CertifyAssetsResult], []),
|
|
525
550
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
526
551
|
commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
|
|
527
552
|
commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
@@ -536,7 +561,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
536
561
|
del_controller_self: IDL.Func([], [], []),
|
|
537
562
|
del_controllers: IDL.Func(
|
|
538
563
|
[DeleteControllersArgs],
|
|
539
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
564
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
|
|
540
565
|
[]
|
|
541
566
|
),
|
|
542
567
|
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
@@ -584,7 +609,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
584
609
|
[]
|
|
585
610
|
),
|
|
586
611
|
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], []),
|
|
587
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
612
|
+
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))], []),
|
|
588
613
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], []),
|
|
589
614
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], []),
|
|
590
615
|
list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], []),
|
|
@@ -596,7 +621,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
596
621
|
set_automation_config: IDL.Func([SetAutomationConfig], [AutomationConfig], []),
|
|
597
622
|
set_controllers: IDL.Func(
|
|
598
623
|
[SetControllersArgs],
|
|
599
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal,
|
|
624
|
+
[IDL.Vec(IDL.Tuple(IDL.Principal, AccessKey))],
|
|
600
625
|
[]
|
|
601
626
|
),
|
|
602
627
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
@@ -609,6 +634,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
609
634
|
),
|
|
610
635
|
set_rule: IDL.Func([CollectionType, IDL.Text, SetRule], [Rule], []),
|
|
611
636
|
set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
|
|
637
|
+
set_storage_config_with_options: IDL.Func([SetStorageConfigWithOptions], [StorageConfig], []),
|
|
612
638
|
submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
|
|
613
639
|
switch_storage_system_memory: IDL.Func([], [], []),
|
|
614
640
|
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|