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