@junobuild/storage 0.0.3 → 0.0.4

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.
@@ -0,0 +1,266 @@
1
+ import type {ActorMethod} from '@dfinity/agent';
2
+ import type {IDL} from '@dfinity/candid';
3
+ import type {Principal} from '@dfinity/principal';
4
+
5
+ export interface AssertMissionControlCenterArgs {
6
+ mission_control_id: Principal;
7
+ user: Principal;
8
+ }
9
+ export interface AssetEncodingNoContent {
10
+ modified: bigint;
11
+ sha256: Uint8Array | number[];
12
+ total_length: bigint;
13
+ }
14
+ export interface AssetKey {
15
+ token: [] | [string];
16
+ collection: string;
17
+ owner: Principal;
18
+ name: string;
19
+ description: [] | [string];
20
+ full_path: string;
21
+ }
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];
29
+ }
30
+ export interface AssetsUpgradeOptions {
31
+ clear_existing_assets: [] | [boolean];
32
+ }
33
+ export interface CommitBatch {
34
+ batch_id: bigint;
35
+ headers: Array<[string, string]>;
36
+ chunk_ids: Array<bigint>;
37
+ }
38
+ export interface CommitProposal {
39
+ sha256: Uint8Array | number[];
40
+ proposal_id: bigint;
41
+ }
42
+ export interface Config {
43
+ storage: StorageConfig;
44
+ }
45
+ export interface ConfigMaxMemorySize {
46
+ stable: [] | [bigint];
47
+ heap: [] | [bigint];
48
+ }
49
+ export type ControllerScope = {Write: null} | {Admin: null};
50
+ export interface CreateCanisterArgs {
51
+ block_index: [] | [bigint];
52
+ user: Principal;
53
+ }
54
+ export interface CustomDomain {
55
+ updated_at: bigint;
56
+ created_at: bigint;
57
+ version: [] | [bigint];
58
+ bn_id: [] | [string];
59
+ }
60
+ export interface DeleteControllersArgs {
61
+ controllers: Array<Principal>;
62
+ }
63
+ export interface DeleteProposalAssets {
64
+ proposal_ids: Array<bigint>;
65
+ }
66
+ export interface GetCreateCanisterFeeArgs {
67
+ user: Principal;
68
+ }
69
+ export interface HttpRequest {
70
+ url: string;
71
+ method: string;
72
+ body: Uint8Array | number[];
73
+ headers: Array<[string, string]>;
74
+ certificate_version: [] | [number];
75
+ }
76
+ export interface HttpResponse {
77
+ body: Uint8Array | number[];
78
+ headers: Array<[string, string]>;
79
+ streaming_strategy: [] | [StreamingStrategy];
80
+ status_code: number;
81
+ }
82
+ export interface InitAssetKey {
83
+ token: [] | [string];
84
+ collection: string;
85
+ name: string;
86
+ description: [] | [string];
87
+ encoding_type: [] | [string];
88
+ full_path: string;
89
+ }
90
+ export interface InitUploadResult {
91
+ batch_id: bigint;
92
+ }
93
+ export interface ListMatcher {
94
+ key: [] | [string];
95
+ updated_at: [] | [TimestampMatcher];
96
+ description: [] | [string];
97
+ created_at: [] | [TimestampMatcher];
98
+ }
99
+ export interface ListOrder {
100
+ field: ListOrderField;
101
+ desc: boolean;
102
+ }
103
+ export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
104
+ export interface ListPaginate {
105
+ start_after: [] | [string];
106
+ limit: [] | [bigint];
107
+ }
108
+ export interface ListParams {
109
+ order: [] | [ListOrder];
110
+ owner: [] | [Principal];
111
+ matcher: [] | [ListMatcher];
112
+ paginate: [] | [ListPaginate];
113
+ }
114
+ export interface ListResults {
115
+ matches_pages: [] | [bigint];
116
+ matches_length: bigint;
117
+ items_page: [] | [bigint];
118
+ items: Array<[string, AssetNoContent]>;
119
+ items_length: bigint;
120
+ }
121
+ export type Memory = {Heap: null} | {Stable: null};
122
+ export interface MissionControl {
123
+ updated_at: bigint;
124
+ credits: Tokens;
125
+ mission_control_id: [] | [Principal];
126
+ owner: Principal;
127
+ created_at: bigint;
128
+ }
129
+ export interface Payment {
130
+ status: PaymentStatus;
131
+ updated_at: bigint;
132
+ block_index_payment: bigint;
133
+ mission_control_id: [] | [Principal];
134
+ created_at: bigint;
135
+ block_index_refunded: [] | [bigint];
136
+ }
137
+ export type PaymentStatus = {Refunded: null} | {Acknowledged: null} | {Completed: null};
138
+ export interface Proposal {
139
+ status: ProposalStatus;
140
+ updated_at: bigint;
141
+ sha256: [] | [Uint8Array | number[]];
142
+ executed_at: [] | [bigint];
143
+ owner: Principal;
144
+ created_at: bigint;
145
+ version: [] | [bigint];
146
+ proposal_type: ProposalType;
147
+ }
148
+ export type ProposalStatus =
149
+ | {Initialized: null}
150
+ | {Failed: null}
151
+ | {Open: null}
152
+ | {Rejected: null}
153
+ | {Executed: null}
154
+ | {Accepted: null};
155
+ export type ProposalType =
156
+ | {AssetsUpgrade: AssetsUpgradeOptions}
157
+ | {SegmentsDeployment: SegmentsDeploymentOptions};
158
+ export interface RateConfig {
159
+ max_tokens: bigint;
160
+ time_per_token_ns: bigint;
161
+ }
162
+ export type SegmentType = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
163
+ export interface SegmentsDeploymentOptions {
164
+ orbiter: [] | [string];
165
+ mission_control_version: [] | [string];
166
+ satellite_version: [] | [string];
167
+ }
168
+ export interface SetController {
169
+ metadata: Array<[string, string]>;
170
+ scope: ControllerScope;
171
+ expires_at: [] | [bigint];
172
+ }
173
+ export interface SetControllersArgs {
174
+ controller: SetController;
175
+ controllers: Array<Principal>;
176
+ }
177
+ export interface StorageConfig {
178
+ iframe: [] | [StorageConfigIFrame];
179
+ rewrites: Array<[string, string]>;
180
+ headers: Array<[string, Array<[string, string]>]>;
181
+ max_memory_size: [] | [ConfigMaxMemorySize];
182
+ raw_access: [] | [StorageConfigRawAccess];
183
+ redirects: [] | [Array<[string, StorageConfigRedirect]>];
184
+ }
185
+ export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
186
+ export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
187
+ export interface StorageConfigRedirect {
188
+ status_code: number;
189
+ location: string;
190
+ }
191
+ export interface StreamingCallbackHttpResponse {
192
+ token: [] | [StreamingCallbackToken];
193
+ body: Uint8Array | number[];
194
+ }
195
+ export interface StreamingCallbackToken {
196
+ memory: Memory;
197
+ token: [] | [string];
198
+ sha256: [] | [Uint8Array | number[]];
199
+ headers: Array<[string, string]>;
200
+ index: bigint;
201
+ encoding_type: string;
202
+ full_path: string;
203
+ }
204
+ export type StreamingStrategy = {
205
+ Callback: {
206
+ token: StreamingCallbackToken;
207
+ callback: [Principal, string];
208
+ };
209
+ };
210
+ export type TimestampMatcher =
211
+ | {Equal: bigint}
212
+ | {Between: [bigint, bigint]}
213
+ | {GreaterThan: bigint}
214
+ | {LessThan: bigint};
215
+ export interface Tokens {
216
+ e8s: bigint;
217
+ }
218
+ export interface UploadChunk {
219
+ content: Uint8Array | number[];
220
+ batch_id: bigint;
221
+ order_id: [] | [bigint];
222
+ }
223
+ export interface UploadChunkResult {
224
+ chunk_id: bigint;
225
+ }
226
+ export interface _SERVICE {
227
+ add_credits: ActorMethod<[Principal, Tokens], undefined>;
228
+ add_invitation_code: ActorMethod<[string], undefined>;
229
+ assert_mission_control_center: ActorMethod<[AssertMissionControlCenterArgs], undefined>;
230
+ commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
231
+ commit_proposal: ActorMethod<[CommitProposal], null>;
232
+ create_orbiter: ActorMethod<[CreateCanisterArgs], Principal>;
233
+ create_satellite: ActorMethod<[CreateCanisterArgs], Principal>;
234
+ del_controllers: ActorMethod<[DeleteControllersArgs], undefined>;
235
+ del_custom_domain: ActorMethod<[string], undefined>;
236
+ delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
237
+ get_config: ActorMethod<[], Config>;
238
+ get_create_orbiter_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
239
+ get_create_satellite_fee: ActorMethod<[GetCreateCanisterFeeArgs], [] | [Tokens]>;
240
+ get_credits: ActorMethod<[], Tokens>;
241
+ get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
242
+ get_storage_config: ActorMethod<[], StorageConfig>;
243
+ get_user_mission_control_center: ActorMethod<[], [] | [MissionControl]>;
244
+ http_request: ActorMethod<[HttpRequest], HttpResponse>;
245
+ http_request_streaming_callback: ActorMethod<
246
+ [StreamingCallbackToken],
247
+ StreamingCallbackHttpResponse
248
+ >;
249
+ init_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
250
+ init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
251
+ init_user_mission_control_center: ActorMethod<[], MissionControl>;
252
+ list_assets: ActorMethod<[string, ListParams], ListResults>;
253
+ list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
254
+ list_payments: ActorMethod<[], Array<[bigint, Payment]>>;
255
+ list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
256
+ set_controllers: ActorMethod<[SetControllersArgs], undefined>;
257
+ set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
258
+ set_fee: ActorMethod<[SegmentType, Tokens], undefined>;
259
+ set_storage_config: ActorMethod<[StorageConfig], undefined>;
260
+ submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
261
+ update_rate_config: ActorMethod<[SegmentType, RateConfig], undefined>;
262
+ upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
263
+ version: ActorMethod<[], string>;
264
+ }
265
+ export declare const idlFactory: IDL.InterfaceFactory;
266
+ export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
@@ -0,0 +1,284 @@
1
+ // @ts-ignore
2
+ export const idlFactory = ({IDL}) => {
3
+ const Tokens = IDL.Record({e8s: IDL.Nat64});
4
+ const AssertMissionControlCenterArgs = IDL.Record({
5
+ mission_control_id: IDL.Principal,
6
+ user: IDL.Principal
7
+ });
8
+ const CommitBatch = IDL.Record({
9
+ batch_id: IDL.Nat,
10
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
11
+ chunk_ids: IDL.Vec(IDL.Nat)
12
+ });
13
+ const CommitProposal = IDL.Record({
14
+ sha256: IDL.Vec(IDL.Nat8),
15
+ proposal_id: IDL.Nat
16
+ });
17
+ const CreateCanisterArgs = IDL.Record({
18
+ block_index: IDL.Opt(IDL.Nat64),
19
+ user: IDL.Principal
20
+ });
21
+ const DeleteControllersArgs = IDL.Record({
22
+ controllers: IDL.Vec(IDL.Principal)
23
+ });
24
+ const DeleteProposalAssets = IDL.Record({
25
+ proposal_ids: IDL.Vec(IDL.Nat)
26
+ });
27
+ const StorageConfigIFrame = IDL.Variant({
28
+ Deny: IDL.Null,
29
+ AllowAny: IDL.Null,
30
+ SameOrigin: IDL.Null
31
+ });
32
+ const ConfigMaxMemorySize = IDL.Record({
33
+ stable: IDL.Opt(IDL.Nat64),
34
+ heap: IDL.Opt(IDL.Nat64)
35
+ });
36
+ const StorageConfigRawAccess = IDL.Variant({
37
+ Deny: IDL.Null,
38
+ Allow: IDL.Null
39
+ });
40
+ const StorageConfigRedirect = IDL.Record({
41
+ status_code: IDL.Nat16,
42
+ location: IDL.Text
43
+ });
44
+ const StorageConfig = IDL.Record({
45
+ iframe: IDL.Opt(StorageConfigIFrame),
46
+ rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
47
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
48
+ max_memory_size: IDL.Opt(ConfigMaxMemorySize),
49
+ raw_access: IDL.Opt(StorageConfigRawAccess),
50
+ redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
51
+ });
52
+ const Config = IDL.Record({storage: StorageConfig});
53
+ const GetCreateCanisterFeeArgs = IDL.Record({user: IDL.Principal});
54
+ const ProposalStatus = IDL.Variant({
55
+ Initialized: IDL.Null,
56
+ Failed: IDL.Null,
57
+ Open: IDL.Null,
58
+ Rejected: IDL.Null,
59
+ Executed: IDL.Null,
60
+ Accepted: IDL.Null
61
+ });
62
+ const AssetsUpgradeOptions = IDL.Record({
63
+ clear_existing_assets: IDL.Opt(IDL.Bool)
64
+ });
65
+ const SegmentsDeploymentOptions = IDL.Record({
66
+ orbiter: IDL.Opt(IDL.Text),
67
+ mission_control_version: IDL.Opt(IDL.Text),
68
+ satellite_version: IDL.Opt(IDL.Text)
69
+ });
70
+ const ProposalType = IDL.Variant({
71
+ AssetsUpgrade: AssetsUpgradeOptions,
72
+ SegmentsDeployment: SegmentsDeploymentOptions
73
+ });
74
+ const Proposal = IDL.Record({
75
+ status: ProposalStatus,
76
+ updated_at: IDL.Nat64,
77
+ sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
78
+ executed_at: IDL.Opt(IDL.Nat64),
79
+ owner: IDL.Principal,
80
+ created_at: IDL.Nat64,
81
+ version: IDL.Opt(IDL.Nat64),
82
+ proposal_type: ProposalType
83
+ });
84
+ const MissionControl = IDL.Record({
85
+ updated_at: IDL.Nat64,
86
+ credits: Tokens,
87
+ mission_control_id: IDL.Opt(IDL.Principal),
88
+ owner: IDL.Principal,
89
+ created_at: IDL.Nat64
90
+ });
91
+ const HttpRequest = IDL.Record({
92
+ url: IDL.Text,
93
+ method: IDL.Text,
94
+ body: IDL.Vec(IDL.Nat8),
95
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
96
+ certificate_version: IDL.Opt(IDL.Nat16)
97
+ });
98
+ const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
99
+ const StreamingCallbackToken = IDL.Record({
100
+ memory: Memory,
101
+ token: IDL.Opt(IDL.Text),
102
+ sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
103
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
104
+ index: IDL.Nat64,
105
+ encoding_type: IDL.Text,
106
+ full_path: IDL.Text
107
+ });
108
+ const StreamingStrategy = IDL.Variant({
109
+ Callback: IDL.Record({
110
+ token: StreamingCallbackToken,
111
+ callback: IDL.Func([], [], ['query'])
112
+ })
113
+ });
114
+ const HttpResponse = IDL.Record({
115
+ body: IDL.Vec(IDL.Nat8),
116
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
117
+ streaming_strategy: IDL.Opt(StreamingStrategy),
118
+ status_code: IDL.Nat16
119
+ });
120
+ const StreamingCallbackHttpResponse = IDL.Record({
121
+ token: IDL.Opt(StreamingCallbackToken),
122
+ body: IDL.Vec(IDL.Nat8)
123
+ });
124
+ const InitAssetKey = IDL.Record({
125
+ token: IDL.Opt(IDL.Text),
126
+ collection: IDL.Text,
127
+ name: IDL.Text,
128
+ description: IDL.Opt(IDL.Text),
129
+ encoding_type: IDL.Opt(IDL.Text),
130
+ full_path: IDL.Text
131
+ });
132
+ const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
133
+ const ListOrderField = IDL.Variant({
134
+ UpdatedAt: IDL.Null,
135
+ Keys: IDL.Null,
136
+ CreatedAt: IDL.Null
137
+ });
138
+ const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
139
+ const TimestampMatcher = IDL.Variant({
140
+ Equal: IDL.Nat64,
141
+ Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
142
+ GreaterThan: IDL.Nat64,
143
+ LessThan: IDL.Nat64
144
+ });
145
+ const ListMatcher = IDL.Record({
146
+ key: IDL.Opt(IDL.Text),
147
+ updated_at: IDL.Opt(TimestampMatcher),
148
+ description: IDL.Opt(IDL.Text),
149
+ created_at: IDL.Opt(TimestampMatcher)
150
+ });
151
+ const ListPaginate = IDL.Record({
152
+ start_after: IDL.Opt(IDL.Text),
153
+ limit: IDL.Opt(IDL.Nat64)
154
+ });
155
+ const ListParams = IDL.Record({
156
+ order: IDL.Opt(ListOrder),
157
+ owner: IDL.Opt(IDL.Principal),
158
+ matcher: IDL.Opt(ListMatcher),
159
+ paginate: IDL.Opt(ListPaginate)
160
+ });
161
+ const AssetKey = IDL.Record({
162
+ token: IDL.Opt(IDL.Text),
163
+ collection: IDL.Text,
164
+ owner: IDL.Principal,
165
+ name: IDL.Text,
166
+ description: IDL.Opt(IDL.Text),
167
+ full_path: IDL.Text
168
+ });
169
+ const AssetEncodingNoContent = IDL.Record({
170
+ modified: IDL.Nat64,
171
+ sha256: IDL.Vec(IDL.Nat8),
172
+ total_length: IDL.Nat
173
+ });
174
+ const AssetNoContent = IDL.Record({
175
+ key: AssetKey,
176
+ updated_at: IDL.Nat64,
177
+ encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
178
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
179
+ created_at: IDL.Nat64,
180
+ version: IDL.Opt(IDL.Nat64)
181
+ });
182
+ const ListResults = IDL.Record({
183
+ matches_pages: IDL.Opt(IDL.Nat64),
184
+ matches_length: IDL.Nat64,
185
+ items_page: IDL.Opt(IDL.Nat64),
186
+ items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
187
+ items_length: IDL.Nat64
188
+ });
189
+ const CustomDomain = IDL.Record({
190
+ updated_at: IDL.Nat64,
191
+ created_at: IDL.Nat64,
192
+ version: IDL.Opt(IDL.Nat64),
193
+ bn_id: IDL.Opt(IDL.Text)
194
+ });
195
+ const PaymentStatus = IDL.Variant({
196
+ Refunded: IDL.Null,
197
+ Acknowledged: IDL.Null,
198
+ Completed: IDL.Null
199
+ });
200
+ const Payment = IDL.Record({
201
+ status: PaymentStatus,
202
+ updated_at: IDL.Nat64,
203
+ block_index_payment: IDL.Nat64,
204
+ mission_control_id: IDL.Opt(IDL.Principal),
205
+ created_at: IDL.Nat64,
206
+ block_index_refunded: IDL.Opt(IDL.Nat64)
207
+ });
208
+ const ControllerScope = IDL.Variant({
209
+ Write: IDL.Null,
210
+ Admin: IDL.Null
211
+ });
212
+ const SetController = IDL.Record({
213
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
214
+ scope: ControllerScope,
215
+ expires_at: IDL.Opt(IDL.Nat64)
216
+ });
217
+ const SetControllersArgs = IDL.Record({
218
+ controller: SetController,
219
+ controllers: IDL.Vec(IDL.Principal)
220
+ });
221
+ const SegmentType = IDL.Variant({
222
+ Orbiter: IDL.Null,
223
+ MissionControl: IDL.Null,
224
+ Satellite: IDL.Null
225
+ });
226
+ const RateConfig = IDL.Record({
227
+ max_tokens: IDL.Nat64,
228
+ time_per_token_ns: IDL.Nat64
229
+ });
230
+ const UploadChunk = IDL.Record({
231
+ content: IDL.Vec(IDL.Nat8),
232
+ batch_id: IDL.Nat,
233
+ order_id: IDL.Opt(IDL.Nat)
234
+ });
235
+ const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
236
+ return IDL.Service({
237
+ add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
238
+ add_invitation_code: IDL.Func([IDL.Text], [], []),
239
+ assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], ['query']),
240
+ commit_asset_upload: IDL.Func([CommitBatch], [], []),
241
+ commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
242
+ create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
243
+ create_satellite: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
244
+ del_controllers: IDL.Func([DeleteControllersArgs], [], []),
245
+ del_custom_domain: IDL.Func([IDL.Text], [], []),
246
+ delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
247
+ get_config: IDL.Func([], [Config], []),
248
+ get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
249
+ get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
250
+ get_credits: IDL.Func([], [Tokens], ['query']),
251
+ get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']),
252
+ get_storage_config: IDL.Func([], [StorageConfig], ['query']),
253
+ get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
254
+ http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
255
+ http_request_streaming_callback: IDL.Func(
256
+ [StreamingCallbackToken],
257
+ [StreamingCallbackHttpResponse],
258
+ ['query']
259
+ ),
260
+ init_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
261
+ init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
262
+ init_user_mission_control_center: IDL.Func([], [MissionControl], []),
263
+ list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
264
+ list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
265
+ list_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, Payment))], ['query']),
266
+ list_user_mission_control_centers: IDL.Func(
267
+ [],
268
+ [IDL.Vec(IDL.Tuple(IDL.Principal, MissionControl))],
269
+ ['query']
270
+ ),
271
+ set_controllers: IDL.Func([SetControllersArgs], [], []),
272
+ set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
273
+ set_fee: IDL.Func([SegmentType, Tokens], [], []),
274
+ set_storage_config: IDL.Func([StorageConfig], [], []),
275
+ submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
276
+ update_rate_config: IDL.Func([SegmentType, RateConfig], [], []),
277
+ upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
278
+ version: IDL.Func([], [IDL.Text], ['query'])
279
+ });
280
+ };
281
+ // @ts-ignore
282
+ export const init = ({IDL}) => {
283
+ return [];
284
+ };