@junobuild/ic-client 3.1.2 → 3.1.3-next-2025-10-14

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 +259 -218
  6. package/declarations/console/console.factory.certified.did.js +46 -2
  7. package/declarations/console/console.factory.did.js +46 -2
  8. package/declarations/console/console.factory.did.mjs +46 -2
  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 +303 -285
  34. package/declarations/satellite/satellite.factory.certified.did.js +21 -2
  35. package/declarations/satellite/satellite.factory.did.js +21 -2
  36. package/declarations/satellite/satellite.factory.did.mjs +21 -2
  37. package/declarations/sputnik/sputnik.did.d.ts +303 -285
  38. package/declarations/sputnik/sputnik.factory.certified.did.js +21 -2
  39. package/declarations/sputnik/sputnik.factory.did.js +21 -2
  40. package/package.json +7 -7
@@ -1,313 +1,354 @@
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 AssertMissionControlCenterArgs {
6
- mission_control_id: Principal;
7
- user: Principal;
6
+ mission_control_id: Principal;
7
+ user: Principal;
8
8
  }
9
9
  export interface AssetEncodingNoContent {
10
- modified: bigint;
11
- sha256: Uint8Array | number[];
12
- total_length: bigint;
10
+ modified: bigint;
11
+ sha256: Uint8Array | number[];
12
+ total_length: bigint;
13
13
  }
14
14
  export interface AssetKey {
15
- token: [] | [string];
16
- collection: string;
17
- owner: Principal;
18
- name: string;
19
- description: [] | [string];
20
- full_path: string;
15
+ token: [] | [string];
16
+ collection: string;
17
+ owner: Principal;
18
+ name: string;
19
+ description: [] | [string];
20
+ full_path: string;
21
21
  }
22
22
  export interface AssetNoContent {
23
- key: AssetKey;
24
- updated_at: bigint;
25
- encodings: Array<[string, AssetEncodingNoContent]>;
26
- headers: Array<[string, string]>;
27
- created_at: bigint;
28
- version: [] | [bigint];
23
+ key: AssetKey;
24
+ updated_at: bigint;
25
+ encodings: Array<[string, AssetEncodingNoContent]>;
26
+ headers: Array<[string, string]>;
27
+ created_at: bigint;
28
+ version: [] | [bigint];
29
29
  }
30
30
  export interface AssetsUpgradeOptions {
31
- clear_existing_assets: [] | [boolean];
31
+ clear_existing_assets: [] | [boolean];
32
+ }
33
+ export interface AuthenticationConfig {
34
+ updated_at: [] | [bigint];
35
+ openid: [] | [AuthenticationConfigOpenId];
36
+ created_at: [] | [bigint];
37
+ version: [] | [bigint];
38
+ internet_identity: [] | [AuthenticationConfigInternetIdentity];
39
+ rules: [] | [AuthenticationRules];
40
+ }
41
+ export interface AuthenticationConfigInternetIdentity {
42
+ derivation_origin: [] | [string];
43
+ external_alternative_origins: [] | [Array<string>];
44
+ }
45
+ export interface AuthenticationConfigOpenId {
46
+ providers: Array<[OpenIdProvider, OpenIdProviderConfig]>;
47
+ }
48
+ export interface AuthenticationRules {
49
+ allowed_callers: Array<Principal>;
32
50
  }
33
51
  export interface CommitBatch {
34
- batch_id: bigint;
35
- headers: Array<[string, string]>;
36
- chunk_ids: Array<bigint>;
52
+ batch_id: bigint;
53
+ headers: Array<[string, string]>;
54
+ chunk_ids: Array<bigint>;
37
55
  }
38
56
  export interface CommitProposal {
39
- sha256: Uint8Array | number[];
40
- proposal_id: bigint;
57
+ sha256: Uint8Array | number[];
58
+ proposal_id: bigint;
41
59
  }
42
60
  export interface Config {
43
- storage: StorageConfig;
61
+ authentication: [] | [AuthenticationConfig];
62
+ storage: StorageConfig;
44
63
  }
45
64
  export interface ConfigMaxMemorySize {
46
- stable: [] | [bigint];
47
- heap: [] | [bigint];
65
+ stable: [] | [bigint];
66
+ heap: [] | [bigint];
48
67
  }
49
68
  export interface Controller {
50
- updated_at: bigint;
51
- metadata: Array<[string, string]>;
52
- created_at: bigint;
53
- scope: ControllerScope;
54
- expires_at: [] | [bigint];
69
+ updated_at: bigint;
70
+ metadata: Array<[string, string]>;
71
+ created_at: bigint;
72
+ scope: ControllerScope;
73
+ expires_at: [] | [bigint];
55
74
  }
56
- export type ControllerScope = {Write: null} | {Admin: null} | {Submit: null};
75
+ export type ControllerScope = { Write: null } | { Admin: null } | { Submit: null };
57
76
  export interface CreateCanisterArgs {
58
- block_index: [] | [bigint];
59
- subnet_id: [] | [Principal];
60
- user: Principal;
77
+ block_index: [] | [bigint];
78
+ subnet_id: [] | [Principal];
79
+ user: Principal;
80
+ }
81
+ export interface CreateSatelliteArgs {
82
+ block_index: [] | [bigint];
83
+ subnet_id: [] | [Principal];
84
+ storage: [] | [InitStorageArgs];
85
+ user: Principal;
61
86
  }
62
87
  export interface CustomDomain {
63
- updated_at: bigint;
64
- created_at: bigint;
65
- version: [] | [bigint];
66
- bn_id: [] | [string];
88
+ updated_at: bigint;
89
+ created_at: bigint;
90
+ version: [] | [bigint];
91
+ bn_id: [] | [string];
67
92
  }
68
93
  export interface DeleteControllersArgs {
69
- controllers: Array<Principal>;
94
+ controllers: Array<Principal>;
70
95
  }
71
96
  export interface DeleteProposalAssets {
72
- proposal_ids: Array<bigint>;
97
+ proposal_ids: Array<bigint>;
73
98
  }
74
99
  export interface GetCreateCanisterFeeArgs {
75
- user: Principal;
100
+ user: Principal;
76
101
  }
77
102
  export interface HttpRequest {
78
- url: string;
79
- method: string;
80
- body: Uint8Array | number[];
81
- headers: Array<[string, string]>;
82
- certificate_version: [] | [number];
103
+ url: string;
104
+ method: string;
105
+ body: Uint8Array | number[];
106
+ headers: Array<[string, string]>;
107
+ certificate_version: [] | [number];
83
108
  }
84
109
  export interface HttpResponse {
85
- body: Uint8Array | number[];
86
- headers: Array<[string, string]>;
87
- streaming_strategy: [] | [StreamingStrategy];
88
- status_code: number;
110
+ body: Uint8Array | number[];
111
+ headers: Array<[string, string]>;
112
+ streaming_strategy: [] | [StreamingStrategy];
113
+ status_code: number;
89
114
  }
90
115
  export interface InitAssetKey {
91
- token: [] | [string];
92
- collection: string;
93
- name: string;
94
- description: [] | [string];
95
- encoding_type: [] | [string];
96
- full_path: string;
116
+ token: [] | [string];
117
+ collection: string;
118
+ name: string;
119
+ description: [] | [string];
120
+ encoding_type: [] | [string];
121
+ full_path: string;
122
+ }
123
+ export interface InitStorageArgs {
124
+ system_memory: [] | [InitStorageMemory];
97
125
  }
126
+ export type InitStorageMemory = { Heap: null } | { Stable: null };
98
127
  export interface InitUploadResult {
99
- batch_id: bigint;
128
+ batch_id: bigint;
100
129
  }
101
130
  export interface ListMatcher {
102
- key: [] | [string];
103
- updated_at: [] | [TimestampMatcher];
104
- description: [] | [string];
105
- created_at: [] | [TimestampMatcher];
131
+ key: [] | [string];
132
+ updated_at: [] | [TimestampMatcher];
133
+ description: [] | [string];
134
+ created_at: [] | [TimestampMatcher];
106
135
  }
107
136
  export interface ListOrder {
108
- field: ListOrderField;
109
- desc: boolean;
137
+ field: ListOrderField;
138
+ desc: boolean;
110
139
  }
111
- export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
140
+ export type ListOrderField = { UpdatedAt: null } | { Keys: null } | { CreatedAt: null };
112
141
  export interface ListPaginate {
113
- start_after: [] | [string];
114
- limit: [] | [bigint];
142
+ start_after: [] | [string];
143
+ limit: [] | [bigint];
115
144
  }
116
145
  export interface ListParams {
117
- order: [] | [ListOrder];
118
- owner: [] | [Principal];
119
- matcher: [] | [ListMatcher];
120
- paginate: [] | [ListPaginate];
146
+ order: [] | [ListOrder];
147
+ owner: [] | [Principal];
148
+ matcher: [] | [ListMatcher];
149
+ paginate: [] | [ListPaginate];
121
150
  }
122
151
  export interface ListProposalResults {
123
- matches_length: bigint;
124
- items: Array<[ProposalKey, Proposal]>;
125
- items_length: bigint;
152
+ matches_length: bigint;
153
+ items: Array<[ProposalKey, Proposal]>;
154
+ items_length: bigint;
126
155
  }
127
156
  export interface ListProposalsOrder {
128
- desc: boolean;
157
+ desc: boolean;
129
158
  }
130
159
  export interface ListProposalsPaginate {
131
- start_after: [] | [bigint];
132
- limit: [] | [bigint];
160
+ start_after: [] | [bigint];
161
+ limit: [] | [bigint];
133
162
  }
134
163
  export interface ListProposalsParams {
135
- order: [] | [ListProposalsOrder];
136
- paginate: [] | [ListProposalsPaginate];
164
+ order: [] | [ListProposalsOrder];
165
+ paginate: [] | [ListProposalsPaginate];
137
166
  }
138
167
  export interface ListResults {
139
- matches_pages: [] | [bigint];
140
- matches_length: bigint;
141
- items_page: [] | [bigint];
142
- items: Array<[string, AssetNoContent]>;
143
- items_length: bigint;
168
+ matches_pages: [] | [bigint];
169
+ matches_length: bigint;
170
+ items_page: [] | [bigint];
171
+ items: Array<[string, AssetNoContent]>;
172
+ items_length: bigint;
144
173
  }
145
- export type Memory = {Heap: null} | {Stable: null};
174
+ export type Memory = { Heap: null } | { Stable: null };
146
175
  export interface MissionControl {
147
- updated_at: bigint;
148
- credits: Tokens;
149
- mission_control_id: [] | [Principal];
150
- owner: Principal;
151
- created_at: bigint;
176
+ updated_at: bigint;
177
+ credits: Tokens;
178
+ mission_control_id: [] | [Principal];
179
+ owner: Principal;
180
+ created_at: bigint;
181
+ }
182
+ export type OpenIdProvider = { Google: null };
183
+ export interface OpenIdProviderConfig {
184
+ client_id: string;
152
185
  }
153
186
  export interface Payment {
154
- status: PaymentStatus;
155
- updated_at: bigint;
156
- block_index_payment: bigint;
157
- mission_control_id: [] | [Principal];
158
- created_at: bigint;
159
- block_index_refunded: [] | [bigint];
160
- }
161
- export type PaymentStatus = {Refunded: null} | {Acknowledged: null} | {Completed: null};
187
+ status: PaymentStatus;
188
+ updated_at: bigint;
189
+ block_index_payment: bigint;
190
+ mission_control_id: [] | [Principal];
191
+ created_at: bigint;
192
+ block_index_refunded: [] | [bigint];
193
+ }
194
+ export type PaymentStatus = { Refunded: null } | { Acknowledged: null } | { Completed: null };
162
195
  export interface Proposal {
163
- status: ProposalStatus;
164
- updated_at: bigint;
165
- sha256: [] | [Uint8Array | number[]];
166
- executed_at: [] | [bigint];
167
- owner: Principal;
168
- created_at: bigint;
169
- version: [] | [bigint];
170
- proposal_type: ProposalType;
196
+ status: ProposalStatus;
197
+ updated_at: bigint;
198
+ sha256: [] | [Uint8Array | number[]];
199
+ executed_at: [] | [bigint];
200
+ owner: Principal;
201
+ created_at: bigint;
202
+ version: [] | [bigint];
203
+ proposal_type: ProposalType;
171
204
  }
172
205
  export interface ProposalKey {
173
- proposal_id: bigint;
206
+ proposal_id: bigint;
174
207
  }
175
208
  export type ProposalStatus =
176
- | {Initialized: null}
177
- | {Failed: null}
178
- | {Open: null}
179
- | {Rejected: null}
180
- | {Executed: null}
181
- | {Accepted: null};
209
+ | { Initialized: null }
210
+ | { Failed: null }
211
+ | { Open: null }
212
+ | { Rejected: null }
213
+ | { Executed: null }
214
+ | { Accepted: null };
182
215
  export type ProposalType =
183
- | {AssetsUpgrade: AssetsUpgradeOptions}
184
- | {SegmentsDeployment: SegmentsDeploymentOptions};
216
+ | { AssetsUpgrade: AssetsUpgradeOptions }
217
+ | { SegmentsDeployment: SegmentsDeploymentOptions };
185
218
  export interface RateConfig {
186
- max_tokens: bigint;
187
- time_per_token_ns: bigint;
219
+ max_tokens: bigint;
220
+ time_per_token_ns: bigint;
188
221
  }
189
- export type SegmentKind = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
222
+ export type SegmentKind = { Orbiter: null } | { MissionControl: null } | { Satellite: null };
190
223
  export interface SegmentsDeploymentOptions {
191
- orbiter: [] | [string];
192
- mission_control_version: [] | [string];
193
- satellite_version: [] | [string];
224
+ orbiter: [] | [string];
225
+ mission_control_version: [] | [string];
226
+ satellite_version: [] | [string];
227
+ }
228
+ export interface SetAuthenticationConfig {
229
+ openid: [] | [AuthenticationConfigOpenId];
230
+ version: [] | [bigint];
231
+ internet_identity: [] | [AuthenticationConfigInternetIdentity];
232
+ rules: [] | [AuthenticationRules];
194
233
  }
195
234
  export interface SetController {
196
- metadata: Array<[string, string]>;
197
- scope: ControllerScope;
198
- expires_at: [] | [bigint];
235
+ metadata: Array<[string, string]>;
236
+ scope: ControllerScope;
237
+ expires_at: [] | [bigint];
199
238
  }
200
239
  export interface SetControllersArgs {
201
- controller: SetController;
202
- controllers: Array<Principal>;
240
+ controller: SetController;
241
+ controllers: Array<Principal>;
203
242
  }
204
243
  export interface SetStorageConfig {
205
- iframe: [] | [StorageConfigIFrame];
206
- rewrites: Array<[string, string]>;
207
- headers: Array<[string, Array<[string, string]>]>;
208
- version: [] | [bigint];
209
- max_memory_size: [] | [ConfigMaxMemorySize];
210
- raw_access: [] | [StorageConfigRawAccess];
211
- redirects: [] | [Array<[string, StorageConfigRedirect]>];
244
+ iframe: [] | [StorageConfigIFrame];
245
+ rewrites: Array<[string, string]>;
246
+ headers: Array<[string, Array<[string, string]>]>;
247
+ version: [] | [bigint];
248
+ max_memory_size: [] | [ConfigMaxMemorySize];
249
+ raw_access: [] | [StorageConfigRawAccess];
250
+ redirects: [] | [Array<[string, StorageConfigRedirect]>];
212
251
  }
213
252
  export interface StorageConfig {
214
- iframe: [] | [StorageConfigIFrame];
215
- updated_at: [] | [bigint];
216
- rewrites: Array<[string, string]>;
217
- headers: Array<[string, Array<[string, string]>]>;
218
- created_at: [] | [bigint];
219
- version: [] | [bigint];
220
- max_memory_size: [] | [ConfigMaxMemorySize];
221
- raw_access: [] | [StorageConfigRawAccess];
222
- redirects: [] | [Array<[string, StorageConfigRedirect]>];
223
- }
224
- export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
225
- export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
253
+ iframe: [] | [StorageConfigIFrame];
254
+ updated_at: [] | [bigint];
255
+ rewrites: Array<[string, string]>;
256
+ headers: Array<[string, Array<[string, string]>]>;
257
+ created_at: [] | [bigint];
258
+ version: [] | [bigint];
259
+ max_memory_size: [] | [ConfigMaxMemorySize];
260
+ raw_access: [] | [StorageConfigRawAccess];
261
+ redirects: [] | [Array<[string, StorageConfigRedirect]>];
262
+ }
263
+ export type StorageConfigIFrame = { Deny: null } | { AllowAny: null } | { SameOrigin: null };
264
+ export type StorageConfigRawAccess = { Deny: null } | { Allow: null };
226
265
  export interface StorageConfigRedirect {
227
- status_code: number;
228
- location: string;
266
+ status_code: number;
267
+ location: string;
229
268
  }
230
269
  export interface StreamingCallbackHttpResponse {
231
- token: [] | [StreamingCallbackToken];
232
- body: Uint8Array | number[];
270
+ token: [] | [StreamingCallbackToken];
271
+ body: Uint8Array | number[];
233
272
  }
234
273
  export interface StreamingCallbackToken {
235
- memory: Memory;
236
- token: [] | [string];
237
- sha256: [] | [Uint8Array | number[]];
238
- headers: Array<[string, string]>;
239
- index: bigint;
240
- encoding_type: string;
241
- full_path: string;
274
+ memory: Memory;
275
+ token: [] | [string];
276
+ sha256: [] | [Uint8Array | number[]];
277
+ headers: Array<[string, string]>;
278
+ index: bigint;
279
+ encoding_type: string;
280
+ full_path: string;
242
281
  }
243
282
  export type StreamingStrategy = {
244
- Callback: {
245
- token: StreamingCallbackToken;
246
- callback: [Principal, string];
247
- };
283
+ Callback: {
284
+ token: StreamingCallbackToken;
285
+ callback: [Principal, string];
286
+ };
248
287
  };
249
288
  export type TimestampMatcher =
250
- | {Equal: bigint}
251
- | {Between: [bigint, bigint]}
252
- | {GreaterThan: bigint}
253
- | {LessThan: bigint};
289
+ | { Equal: bigint }
290
+ | { Between: [bigint, bigint] }
291
+ | { GreaterThan: bigint }
292
+ | { LessThan: bigint };
254
293
  export interface Tokens {
255
- e8s: bigint;
294
+ e8s: bigint;
256
295
  }
257
296
  export interface UploadChunk {
258
- content: Uint8Array | number[];
259
- batch_id: bigint;
260
- order_id: [] | [bigint];
297
+ content: Uint8Array | number[];
298
+ batch_id: bigint;
299
+ order_id: [] | [bigint];
261
300
  }
262
301
  export interface UploadChunkResult {
263
- chunk_id: bigint;
302
+ chunk_id: bigint;
264
303
  }
265
304
  export interface _SERVICE {
266
- add_credits: ActorMethod<[Principal, Tokens], undefined>;
267
- add_invitation_code: ActorMethod<[string], undefined>;
268
- assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
269
- commit_proposal: ActorMethod<[CommitProposal], null>;
270
- commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
271
- commit_proposal_many_assets_upload: ActorMethod<[Array<CommitBatch>], undefined>;
272
- count_proposals: ActorMethod<[], bigint>;
273
- create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
274
- create_satellite: ActorMethod<[CreateCanisterArgs], Principal>;
275
- del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
276
- del_custom_domain: ActorMethod<[string], undefined>;
277
- delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
278
- get_config: ActorMethod<[], Config>;
279
- get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
280
- get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
281
- get_credits: ActorMethod<[], Tokens>;
282
- get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
283
- get_storage_config: ActorMethod<[], StorageConfig>;
284
- get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
285
- http_request: ActorMethod<[HttpRequest], HttpResponse>;
286
- http_request_streaming_callback: ActorMethod<
287
- [StreamingCallbackToken],
288
- StreamingCallbackHttpResponse
289
- >;
290
- init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
291
- init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
292
- init_proposal_many_assets_upload: ActorMethod<
293
- [Array<InitAssetKey>, bigint],
294
- Array<[string, InitUploadResult]>
295
- >;
296
- init_user_mission_control_center: ActorMethod<[], MissionControl>;
297
- list_assets: ActorMethod<[string, ListParams], ListResults>;
298
- list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
299
- list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
300
- list_payments: ActorMethod<[], Array<[bigint, Payment]>>;
301
- list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
302
- list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
303
- reject_proposal: ActorMethod<[CommitProposal], null>;
304
- set_controllers: ActorMethod<[SetControllersArgs], undefined>;
305
- set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
306
- set_fee: ActorMethod<[SegmentKind, Tokens], undefined>;
307
- set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
308
- submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
309
- update_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
310
- upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
305
+ add_credits: ActorMethod<[Principal, Tokens], undefined>;
306
+ add_invitation_code: ActorMethod<[string], undefined>;
307
+ assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
308
+ commit_proposal: ActorMethod<[CommitProposal], null>;
309
+ commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
310
+ commit_proposal_many_assets_upload: ActorMethod<[Array<CommitBatch>], undefined>;
311
+ count_proposals: ActorMethod<[], bigint>;
312
+ create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
313
+ create_satellite: ActorMethod<[CreateSatelliteArgs], Principal>;
314
+ del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
315
+ del_custom_domain: ActorMethod<[string], undefined>;
316
+ delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
317
+ get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
318
+ get_config: ActorMethod<[], Config>;
319
+ get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
320
+ get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
321
+ get_credits: ActorMethod<[], Tokens>;
322
+ get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
323
+ get_storage_config: ActorMethod<[], StorageConfig>;
324
+ get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
325
+ http_request: ActorMethod<[HttpRequest], HttpResponse>;
326
+ http_request_streaming_callback: ActorMethod<
327
+ [StreamingCallbackToken],
328
+ StreamingCallbackHttpResponse
329
+ >;
330
+ init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
331
+ init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
332
+ init_proposal_many_assets_upload: ActorMethod<
333
+ [Array<InitAssetKey>, bigint],
334
+ Array<[string, InitUploadResult]>
335
+ >;
336
+ init_user_mission_control_center: ActorMethod<[], MissionControl>;
337
+ list_assets: ActorMethod<[string, ListParams], ListResults>;
338
+ list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
339
+ list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
340
+ list_payments: ActorMethod<[], Array<[bigint, Payment]>>;
341
+ list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
342
+ list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
343
+ reject_proposal: ActorMethod<[CommitProposal], null>;
344
+ set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
345
+ set_controllers: ActorMethod<[SetControllersArgs], undefined>;
346
+ set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
347
+ set_fee: ActorMethod<[SegmentKind, Tokens], undefined>;
348
+ set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
349
+ submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
350
+ update_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
351
+ upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
311
352
  }
312
353
  export declare const idlFactory: IDL.InterfaceFactory;
313
- export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
354
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -19,12 +19,45 @@ export const idlFactory = ({IDL}) => {
19
19
  subnet_id: IDL.Opt(IDL.Principal),
20
20
  user: IDL.Principal
21
21
  });
22
+ const InitStorageMemory = IDL.Variant({
23
+ Heap: IDL.Null,
24
+ Stable: IDL.Null
25
+ });
26
+ const InitStorageArgs = IDL.Record({
27
+ system_memory: IDL.Opt(InitStorageMemory)
28
+ });
29
+ const CreateSatelliteArgs = IDL.Record({
30
+ block_index: IDL.Opt(IDL.Nat64),
31
+ subnet_id: IDL.Opt(IDL.Principal),
32
+ storage: IDL.Opt(InitStorageArgs),
33
+ user: IDL.Principal
34
+ });
22
35
  const DeleteControllersArgs = IDL.Record({
23
36
  controllers: IDL.Vec(IDL.Principal)
24
37
  });
25
38
  const DeleteProposalAssets = IDL.Record({
26
39
  proposal_ids: IDL.Vec(IDL.Nat)
27
40
  });
41
+ const OpenIdProvider = IDL.Variant({Google: IDL.Null});
42
+ const OpenIdProviderConfig = IDL.Record({client_id: IDL.Text});
43
+ const AuthenticationConfigOpenId = IDL.Record({
44
+ providers: IDL.Vec(IDL.Tuple(OpenIdProvider, OpenIdProviderConfig))
45
+ });
46
+ const AuthenticationConfigInternetIdentity = IDL.Record({
47
+ derivation_origin: IDL.Opt(IDL.Text),
48
+ external_alternative_origins: IDL.Opt(IDL.Vec(IDL.Text))
49
+ });
50
+ const AuthenticationRules = IDL.Record({
51
+ allowed_callers: IDL.Vec(IDL.Principal)
52
+ });
53
+ const AuthenticationConfig = IDL.Record({
54
+ updated_at: IDL.Opt(IDL.Nat64),
55
+ openid: IDL.Opt(AuthenticationConfigOpenId),
56
+ created_at: IDL.Opt(IDL.Nat64),
57
+ version: IDL.Opt(IDL.Nat64),
58
+ internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
59
+ rules: IDL.Opt(AuthenticationRules)
60
+ });
28
61
  const StorageConfigIFrame = IDL.Variant({
29
62
  Deny: IDL.Null,
30
63
  AllowAny: IDL.Null,
@@ -53,7 +86,10 @@ export const idlFactory = ({IDL}) => {
53
86
  raw_access: IDL.Opt(StorageConfigRawAccess),
54
87
  redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
55
88
  });
56
- const Config = IDL.Record({storage: StorageConfig});
89
+ const Config = IDL.Record({
90
+ authentication: IDL.Opt(AuthenticationConfig),
91
+ storage: StorageConfig
92
+ });
57
93
  const GetCreateCanisterFeeArgs = IDL.Record({user: IDL.Principal});
58
94
  const ProposalStatus = IDL.Variant({
59
95
  Initialized: IDL.Null,
@@ -236,6 +272,12 @@ export const idlFactory = ({IDL}) => {
236
272
  items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)),
237
273
  items_length: IDL.Nat64
238
274
  });
275
+ const SetAuthenticationConfig = IDL.Record({
276
+ openid: IDL.Opt(AuthenticationConfigOpenId),
277
+ version: IDL.Opt(IDL.Nat64),
278
+ internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity),
279
+ rules: IDL.Opt(AuthenticationRules)
280
+ });
239
281
  const SetController = IDL.Record({
240
282
  metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
241
283
  scope: ControllerScope,
@@ -278,10 +320,11 @@ export const idlFactory = ({IDL}) => {
278
320
  commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
279
321
  count_proposals: IDL.Func([], [IDL.Nat64], []),
280
322
  create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
281
- create_satellite: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
323
+ create_satellite: IDL.Func([CreateSatelliteArgs], [IDL.Principal], []),
282
324
  del_controllers: IDL.Func([DeleteControllersArgs], [], []),
283
325
  del_custom_domain: IDL.Func([IDL.Text], [], []),
284
326
  delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
327
+ get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], []),
285
328
  get_config: IDL.Func([], [Config], []),
286
329
  get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], []),
287
330
  get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], []),
@@ -314,6 +357,7 @@ export const idlFactory = ({IDL}) => {
314
357
  []
315
358
  ),
316
359
  reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
360
+ set_auth_config: IDL.Func([SetAuthenticationConfig], [AuthenticationConfig], []),
317
361
  set_controllers: IDL.Func([SetControllersArgs], [], []),
318
362
  set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
319
363
  set_fee: IDL.Func([SegmentKind, Tokens], [], []),