@junobuild/ic-client 3.1.2 → 3.1.3
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 +228 -218
- package/declarations/console/console.factory.certified.did.js +14 -1
- package/declarations/console/console.factory.did.js +14 -1
- package/declarations/console/console.factory.did.mjs +14 -1
- package/declarations/deprecated/console-0-0-14.did.d.ts +186 -186
- package/declarations/deprecated/console-0-0-8-patch1.did.d.ts +49 -49
- package/declarations/deprecated/mission_control-0-0-13.did.d.ts +173 -173
- package/declarations/deprecated/mission_control-0-0-14.did.d.ts +167 -167
- package/declarations/deprecated/mission_control-0-0-4.did.d.ts +57 -57
- package/declarations/deprecated/observatory-0-0-9.did.d.ts +42 -42
- package/declarations/deprecated/orbiter-0-0-6.did.d.ts +111 -111
- package/declarations/deprecated/orbiter-0-0-7.did.d.ts +116 -116
- package/declarations/deprecated/orbiter-0-0-8.did.d.ts +177 -177
- package/declarations/deprecated/orbiter-0-2-0.did.d.ts +203 -203
- package/declarations/deprecated/satellite-0-0-16.did.d.ts +174 -170
- package/declarations/deprecated/satellite-0-0-17.did.d.ts +185 -181
- package/declarations/deprecated/satellite-0-0-21.did.d.ts +216 -212
- package/declarations/deprecated/satellite-0-0-22.did.d.ts +211 -207
- package/declarations/deprecated/satellite-0-0-8.did.d.ts +125 -121
- package/declarations/deprecated/satellite-0-0-9.did.d.ts +139 -135
- package/declarations/mission_control/mission_control.did.d.ts +178 -169
- package/declarations/mission_control/mission_control.factory.certified.did.js +16 -4
- package/declarations/mission_control/mission_control.factory.did.js +16 -4
- package/declarations/observatory/observatory.did.d.ts +54 -54
- package/declarations/orbiter/orbiter.did.d.ts +206 -206
- package/declarations/orbiter/orbiter.factory.certified.did.js +7 -3
- package/declarations/orbiter/orbiter.factory.did.js +7 -3
- package/declarations/orbiter/orbiter.factory.did.mjs +7 -3
- package/declarations/satellite/satellite.did.d.ts +294 -285
- package/declarations/satellite/satellite.factory.certified.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.js +1 -0
- package/declarations/satellite/satellite.factory.did.mjs +1 -0
- package/declarations/sputnik/sputnik.did.d.ts +294 -285
- package/declarations/sputnik/sputnik.factory.certified.did.js +1 -0
- package/declarations/sputnik/sputnik.factory.did.js +1 -0
- package/package.json +1 -1
|
@@ -1,254 +1,258 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {IDL} from '@dfinity/candid';
|
|
3
|
-
import type {Principal} from '@dfinity/principal';
|
|
1
|
+
import type { ActorMethod } from '@dfinity/agent';
|
|
2
|
+
import type { IDL } from '@dfinity/candid';
|
|
3
|
+
import type { Principal } from '@dfinity/principal';
|
|
4
4
|
|
|
5
5
|
export interface AssetEncodingNoContent {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
modified: bigint;
|
|
7
|
+
sha256: Uint8Array | number[];
|
|
8
|
+
total_length: bigint;
|
|
9
9
|
}
|
|
10
10
|
export interface AssetKey {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
token: [] | [string];
|
|
12
|
+
collection: string;
|
|
13
|
+
owner: Principal;
|
|
14
|
+
name: string;
|
|
15
|
+
description: [] | [string];
|
|
16
|
+
full_path: string;
|
|
17
17
|
}
|
|
18
18
|
export interface AssetNoContent {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
key: AssetKey;
|
|
20
|
+
updated_at: bigint;
|
|
21
|
+
encodings: Array<[string, AssetEncodingNoContent]>;
|
|
22
|
+
headers: Array<[string, string]>;
|
|
23
|
+
created_at: bigint;
|
|
24
|
+
version: [] | [bigint];
|
|
25
25
|
}
|
|
26
26
|
export interface AuthenticationConfig {
|
|
27
|
-
|
|
27
|
+
internet_identity: [] | [AuthenticationConfigInternetIdentity];
|
|
28
28
|
}
|
|
29
29
|
export interface AuthenticationConfigInternetIdentity {
|
|
30
|
-
|
|
30
|
+
derivation_origin: [] | [string];
|
|
31
31
|
}
|
|
32
32
|
export interface CommitBatch {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
batch_id: bigint;
|
|
34
|
+
headers: Array<[string, string]>;
|
|
35
|
+
chunk_ids: Array<bigint>;
|
|
36
36
|
}
|
|
37
37
|
export interface Config {
|
|
38
|
-
|
|
38
|
+
storage: StorageConfig;
|
|
39
39
|
}
|
|
40
40
|
export interface Controller {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
updated_at: bigint;
|
|
42
|
+
metadata: Array<[string, string]>;
|
|
43
|
+
created_at: bigint;
|
|
44
|
+
scope: ControllerScope;
|
|
45
|
+
expires_at: [] | [bigint];
|
|
46
46
|
}
|
|
47
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
47
|
+
export type ControllerScope = { Write: null } | { Admin: null };
|
|
48
48
|
export interface CustomDomain {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
updated_at: bigint;
|
|
50
|
+
created_at: bigint;
|
|
51
|
+
version: [] | [bigint];
|
|
52
|
+
bn_id: [] | [string];
|
|
53
53
|
}
|
|
54
54
|
export interface DelDoc {
|
|
55
|
-
|
|
55
|
+
version: [] | [bigint];
|
|
56
56
|
}
|
|
57
57
|
export interface DeleteControllersArgs {
|
|
58
|
-
|
|
58
|
+
controllers: Array<Principal>;
|
|
59
59
|
}
|
|
60
60
|
export interface DepositCyclesArgs {
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
cycles: bigint;
|
|
62
|
+
destination_id: Principal;
|
|
63
63
|
}
|
|
64
64
|
export interface Doc {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
updated_at: bigint;
|
|
66
|
+
owner: Principal;
|
|
67
|
+
data: Uint8Array | number[];
|
|
68
|
+
description: [] | [string];
|
|
69
|
+
created_at: bigint;
|
|
70
|
+
version: [] | [bigint];
|
|
71
71
|
}
|
|
72
72
|
export interface HttpRequest {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
url: string;
|
|
74
|
+
method: string;
|
|
75
|
+
body: Uint8Array | number[];
|
|
76
|
+
headers: Array<[string, string]>;
|
|
77
|
+
certificate_version: [] | [number];
|
|
78
78
|
}
|
|
79
79
|
export interface HttpResponse {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
body: Uint8Array | number[];
|
|
81
|
+
headers: Array<[string, string]>;
|
|
82
|
+
streaming_strategy: [] | [StreamingStrategy];
|
|
83
|
+
status_code: number;
|
|
84
84
|
}
|
|
85
85
|
export interface InitAssetKey {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
token: [] | [string];
|
|
87
|
+
collection: string;
|
|
88
|
+
name: string;
|
|
89
|
+
description: [] | [string];
|
|
90
|
+
encoding_type: [] | [string];
|
|
91
|
+
full_path: string;
|
|
92
92
|
}
|
|
93
93
|
export interface InitUploadResult {
|
|
94
|
-
|
|
94
|
+
batch_id: bigint;
|
|
95
95
|
}
|
|
96
96
|
export interface ListMatcher {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
key: [] | [string];
|
|
98
|
+
description: [] | [string];
|
|
99
99
|
}
|
|
100
100
|
export interface ListOrder {
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
field: ListOrderField;
|
|
102
|
+
desc: boolean;
|
|
103
103
|
}
|
|
104
|
-
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
104
|
+
export type ListOrderField = { UpdatedAt: null } | { Keys: null } | { CreatedAt: null };
|
|
105
105
|
export interface ListPaginate {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
start_after: [] | [string];
|
|
107
|
+
limit: [] | [bigint];
|
|
108
108
|
}
|
|
109
109
|
export interface ListParams {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
order: [] | [ListOrder];
|
|
111
|
+
owner: [] | [Principal];
|
|
112
|
+
matcher: [] | [ListMatcher];
|
|
113
|
+
paginate: [] | [ListPaginate];
|
|
114
114
|
}
|
|
115
115
|
export interface ListResults {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
matches_pages: [] | [bigint];
|
|
117
|
+
matches_length: bigint;
|
|
118
|
+
items_page: [] | [bigint];
|
|
119
|
+
items: Array<[string, AssetNoContent]>;
|
|
120
|
+
items_length: bigint;
|
|
121
121
|
}
|
|
122
122
|
export interface ListResults_1 {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
matches_pages: [] | [bigint];
|
|
124
|
+
matches_length: bigint;
|
|
125
|
+
items_page: [] | [bigint];
|
|
126
|
+
items: Array<[string, Doc]>;
|
|
127
|
+
items_length: bigint;
|
|
128
128
|
}
|
|
129
|
-
export type Memory = {Heap: null} | {Stable: null};
|
|
129
|
+
export type Memory = { Heap: null } | { Stable: null };
|
|
130
130
|
export interface MemorySize {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
export type Permission =
|
|
131
|
+
stable: bigint;
|
|
132
|
+
heap: bigint;
|
|
133
|
+
}
|
|
134
|
+
export type Permission =
|
|
135
|
+
| { Controllers: null }
|
|
136
|
+
| { Private: null }
|
|
137
|
+
| { Public: null }
|
|
138
|
+
| { Managed: null };
|
|
135
139
|
export interface Rule {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
export type RulesType = {Db: null} | {Storage: null};
|
|
140
|
+
max_capacity: [] | [number];
|
|
141
|
+
memory: [] | [Memory];
|
|
142
|
+
updated_at: bigint;
|
|
143
|
+
max_size: [] | [bigint];
|
|
144
|
+
read: Permission;
|
|
145
|
+
created_at: bigint;
|
|
146
|
+
version: [] | [bigint];
|
|
147
|
+
mutable_permissions: [] | [boolean];
|
|
148
|
+
write: Permission;
|
|
149
|
+
}
|
|
150
|
+
export type RulesType = { Db: null } | { Storage: null };
|
|
147
151
|
export interface SetController {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
152
|
+
metadata: Array<[string, string]>;
|
|
153
|
+
scope: ControllerScope;
|
|
154
|
+
expires_at: [] | [bigint];
|
|
151
155
|
}
|
|
152
156
|
export interface SetControllersArgs {
|
|
153
|
-
|
|
154
|
-
|
|
157
|
+
controller: SetController;
|
|
158
|
+
controllers: Array<Principal>;
|
|
155
159
|
}
|
|
156
160
|
export interface SetDoc {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
161
|
+
data: Uint8Array | number[];
|
|
162
|
+
description: [] | [string];
|
|
163
|
+
version: [] | [bigint];
|
|
160
164
|
}
|
|
161
165
|
export interface SetRule {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
max_capacity: [] | [number];
|
|
167
|
+
memory: [] | [Memory];
|
|
168
|
+
max_size: [] | [bigint];
|
|
169
|
+
read: Permission;
|
|
170
|
+
version: [] | [bigint];
|
|
171
|
+
mutable_permissions: [] | [boolean];
|
|
172
|
+
write: Permission;
|
|
169
173
|
}
|
|
170
174
|
export interface StorageConfig {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
|
|
178
|
-
export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
|
|
175
|
+
iframe: [] | [StorageConfigIFrame];
|
|
176
|
+
rewrites: Array<[string, string]>;
|
|
177
|
+
headers: Array<[string, Array<[string, string]>]>;
|
|
178
|
+
raw_access: [] | [StorageConfigRawAccess];
|
|
179
|
+
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
180
|
+
}
|
|
181
|
+
export type StorageConfigIFrame = { Deny: null } | { AllowAny: null } | { SameOrigin: null };
|
|
182
|
+
export type StorageConfigRawAccess = { Deny: null } | { Allow: null };
|
|
179
183
|
export interface StorageConfigRedirect {
|
|
180
|
-
|
|
181
|
-
|
|
184
|
+
status_code: number;
|
|
185
|
+
location: string;
|
|
182
186
|
}
|
|
183
187
|
export interface StreamingCallbackHttpResponse {
|
|
184
|
-
|
|
185
|
-
|
|
188
|
+
token: [] | [StreamingCallbackToken];
|
|
189
|
+
body: Uint8Array | number[];
|
|
186
190
|
}
|
|
187
191
|
export interface StreamingCallbackToken {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
memory: Memory;
|
|
193
|
+
token: [] | [string];
|
|
194
|
+
sha256: [] | [Uint8Array | number[]];
|
|
195
|
+
headers: Array<[string, string]>;
|
|
196
|
+
index: bigint;
|
|
197
|
+
encoding_type: string;
|
|
198
|
+
full_path: string;
|
|
195
199
|
}
|
|
196
200
|
export type StreamingStrategy = {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
+
Callback: {
|
|
202
|
+
token: StreamingCallbackToken;
|
|
203
|
+
callback: [Principal, string];
|
|
204
|
+
};
|
|
201
205
|
};
|
|
202
206
|
export interface UploadChunk {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
207
|
+
content: Uint8Array | number[];
|
|
208
|
+
batch_id: bigint;
|
|
209
|
+
order_id: [] | [bigint];
|
|
206
210
|
}
|
|
207
211
|
export interface UploadChunkResult {
|
|
208
|
-
|
|
212
|
+
chunk_id: bigint;
|
|
209
213
|
}
|
|
210
214
|
export interface _SERVICE {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
215
|
+
build_version: ActorMethod<[], string>;
|
|
216
|
+
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
217
|
+
count_assets: ActorMethod<[string], bigint>;
|
|
218
|
+
count_docs: ActorMethod<[string], bigint>;
|
|
219
|
+
del_asset: ActorMethod<[string, string], undefined>;
|
|
220
|
+
del_assets: ActorMethod<[string], undefined>;
|
|
221
|
+
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
222
|
+
del_custom_domain: ActorMethod<[string], undefined>;
|
|
223
|
+
del_doc: ActorMethod<[string, string, DelDoc], undefined>;
|
|
224
|
+
del_docs: ActorMethod<[string], undefined>;
|
|
225
|
+
del_many_assets: ActorMethod<[Array<[string, string]>], undefined>;
|
|
226
|
+
del_many_docs: ActorMethod<[Array<[string, string, DelDoc]>], undefined>;
|
|
227
|
+
del_rule: ActorMethod<[RulesType, string, DelDoc], undefined>;
|
|
228
|
+
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
229
|
+
get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
|
|
230
|
+
get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
|
|
231
|
+
get_config: ActorMethod<[], Config>;
|
|
232
|
+
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
233
|
+
get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
|
|
234
|
+
get_many_docs: ActorMethod<[Array<[string, string]>], Array<[string, [] | [Doc]]>>;
|
|
235
|
+
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
236
|
+
http_request_streaming_callback: ActorMethod<
|
|
237
|
+
[StreamingCallbackToken],
|
|
238
|
+
StreamingCallbackHttpResponse
|
|
239
|
+
>;
|
|
240
|
+
init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
|
|
241
|
+
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
242
|
+
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
243
|
+
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
244
|
+
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
245
|
+
list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
|
|
246
|
+
memory_size: ActorMethod<[], MemorySize>;
|
|
247
|
+
set_auth_config: ActorMethod<[AuthenticationConfig], undefined>;
|
|
248
|
+
set_config: ActorMethod<[Config], undefined>;
|
|
249
|
+
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
250
|
+
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
251
|
+
set_doc: ActorMethod<[string, string, SetDoc], Doc>;
|
|
252
|
+
set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<[string, Doc]>>;
|
|
253
|
+
set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
|
|
254
|
+
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
255
|
+
version: ActorMethod<[], string>;
|
|
252
256
|
}
|
|
253
257
|
export declare const idlFactory: IDL.InterfaceFactory;
|
|
254
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
258
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|