@junobuild/cdn 0.0.1

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