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