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