@junobuild/cdn 0.2.3 → 1.0.0
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.
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/_actor.api.d.ts +1 -2
- package/dist/types/api/proposal.api.d.ts +3 -3
- package/dist/types/types/actor.params.d.ts +3 -49
- package/dist/types/types/cdn.d.ts +10 -11
- package/package.json +4 -3
- package/dist/declarations/console/console.did.d.ts +0 -311
- package/dist/declarations/console/console.factory.certified.did.js +0 -326
- package/dist/declarations/console/console.factory.did.js +0 -326
- package/dist/declarations/console/console.factory.did.mjs +0 -326
- package/dist/declarations/satellite/satellite.did.d.ts +0 -396
- package/dist/declarations/satellite/satellite.factory.certified.did.js +0 -419
- package/dist/declarations/satellite/satellite.factory.did.js +0 -419
- package/dist/declarations/satellite/satellite.factory.did.mjs +0 -419
- package/dist/types/utils/actor.utils.d.ts +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ConsoleDid } from '@junobuild/ic-client';
|
|
2
2
|
import type { CdnParameters } from '../types/actor.params';
|
|
3
3
|
import type { CommitProposal, Proposal, ProposalId, ProposalType, RejectProposal } from '../types/cdn';
|
|
4
4
|
export declare const initProposal: ({ cdn, proposalType }: {
|
|
@@ -26,8 +26,8 @@ export declare const countProposals: ({ cdn }: {
|
|
|
26
26
|
}) => Promise<bigint>;
|
|
27
27
|
export declare const listProposals: ({ cdn, filter }: {
|
|
28
28
|
cdn: CdnParameters;
|
|
29
|
-
filter: ListProposalsParams;
|
|
30
|
-
}) => Promise<ListProposalResults>;
|
|
29
|
+
filter: ConsoleDid.ListProposalsParams;
|
|
30
|
+
}) => Promise<ConsoleDid.ListProposalResults>;
|
|
31
31
|
export declare const getProposal: ({ cdn, proposalId }: {
|
|
32
32
|
cdn: CdnParameters;
|
|
33
33
|
proposalId: ProposalId;
|
|
@@ -1,56 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Principal } from '@dfinity/principal';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the parameters for an actor.
|
|
5
|
-
* @interface
|
|
6
|
-
*/
|
|
7
|
-
export interface ActorParameters {
|
|
8
|
-
/**
|
|
9
|
-
* The identity associated with the actor.
|
|
10
|
-
* @type {Identity}
|
|
11
|
-
*/
|
|
12
|
-
identity: Identity;
|
|
13
|
-
/**
|
|
14
|
-
* Specifies whether the actor is calling the local development Docker container or provides the container URL.
|
|
15
|
-
* @type {boolean | string}
|
|
16
|
-
* @optional
|
|
17
|
-
*/
|
|
18
|
-
container?: boolean | string;
|
|
19
|
-
/**
|
|
20
|
-
* An optional HttpAgent. If none is provided, a new agent will automatically be created to execute calls.
|
|
21
|
-
*/
|
|
22
|
-
agent?: HttpAgent;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Represents the parameters for a Console actor.
|
|
26
|
-
* @interface
|
|
27
|
-
* @extends {ActorParameters}
|
|
28
|
-
*/
|
|
29
|
-
export interface ConsoleParameters extends ActorParameters {
|
|
30
|
-
/**
|
|
31
|
-
* The unique identifier for the Console.
|
|
32
|
-
* @type {string}
|
|
33
|
-
*/
|
|
34
|
-
consoleId: string | Principal;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Represents the parameters for a Satellite actor.
|
|
38
|
-
* @interface
|
|
39
|
-
* @extends {ActorParameters}
|
|
40
|
-
*/
|
|
41
|
-
export interface SatelliteParameters extends ActorParameters {
|
|
42
|
-
/**
|
|
43
|
-
* The unique identifier for the Satellite.
|
|
44
|
-
* @type {string}
|
|
45
|
-
*/
|
|
46
|
-
satelliteId: string | Principal;
|
|
47
|
-
}
|
|
1
|
+
import type { ConsoleParameters, SatelliteParameters } from '@junobuild/ic-client';
|
|
48
2
|
/**
|
|
49
3
|
* Represents initialization parameters for either a Console or Satellite actor.
|
|
50
4
|
* Use discriminated unions to pass the correct parameters depending on the CDN to target.
|
|
51
5
|
*/
|
|
52
6
|
export type CdnParameters = {
|
|
53
|
-
console: ConsoleParameters
|
|
7
|
+
console: Omit<ConsoleParameters, 'consoleId'> & Required<Pick<ConsoleParameters, 'consoleId'>>;
|
|
54
8
|
} | {
|
|
55
|
-
satellite: SatelliteParameters
|
|
9
|
+
satellite: Omit<SatelliteParameters, 'satelliteId'> & Required<Pick<SatelliteParameters, 'satelliteId'>>;
|
|
56
10
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
export type CommitProposal = CdnConsole.CommitProposal | CdnSatellite.CommitProposal;
|
|
1
|
+
import type { ConsoleDid, SatelliteDid } from '@junobuild/ic-client';
|
|
2
|
+
export type CommitProposal = ConsoleDid.CommitProposal | SatelliteDid.CommitProposal;
|
|
4
3
|
export type RejectProposal = CommitProposal;
|
|
5
4
|
export type ProposalId = bigint;
|
|
6
|
-
export type Proposal =
|
|
7
|
-
export type ProposalStatus =
|
|
8
|
-
export type ProposalType =
|
|
9
|
-
export type AssetsUpgradeOptions =
|
|
10
|
-
export type SegmentsDeploymentOptions =
|
|
11
|
-
export type ProposalKey =
|
|
12
|
-
export type InitAssetKey =
|
|
13
|
-
export type InitUploadResult =
|
|
5
|
+
export type Proposal = ConsoleDid.Proposal | SatelliteDid.Proposal;
|
|
6
|
+
export type ProposalStatus = ConsoleDid.ProposalStatus | SatelliteDid.ProposalStatus;
|
|
7
|
+
export type ProposalType = ConsoleDid.ProposalType | SatelliteDid.ProposalType;
|
|
8
|
+
export type AssetsUpgradeOptions = ConsoleDid.AssetsUpgradeOptions | SatelliteDid.AssetsUpgradeOptions;
|
|
9
|
+
export type SegmentsDeploymentOptions = ConsoleDid.SegmentsDeploymentOptions | SatelliteDid.SegmentsDeploymentOptions;
|
|
10
|
+
export type ProposalKey = ConsoleDid.ProposalKey | SatelliteDid.ProposalKey;
|
|
11
|
+
export type InitAssetKey = ConsoleDid.InitAssetKey | SatelliteDid.InitAssetKey;
|
|
12
|
+
export type InitUploadResult = ConsoleDid.InitUploadResult | SatelliteDid.InitUploadResult;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/cdn",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "A toolkit for working with modules that implement Juno's CDN functionality",
|
|
5
5
|
"author": "David Dal Busco (https://daviddalbusco.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"scripts": {
|
|
29
29
|
"rmdir": "node ../../scripts/rmdir.mjs",
|
|
30
30
|
"ts-declaration": "tsc --emitDeclarationOnly --outDir dist/types",
|
|
31
|
-
"build": "npm run rmdir && mkdir -p dist &&
|
|
31
|
+
"build": "npm run rmdir && mkdir -p dist && node esbuild.mjs && npm run ts-declaration",
|
|
32
32
|
"prepack": "npm run build"
|
|
33
33
|
},
|
|
34
34
|
"repository": {
|
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"@dfinity/principal": "^2.3.0",
|
|
57
57
|
"@dfinity/utils": "^2",
|
|
58
58
|
"@junobuild/config": "*",
|
|
59
|
-
"@junobuild/
|
|
59
|
+
"@junobuild/ic-client": "^1",
|
|
60
|
+
"@junobuild/storage": "^1",
|
|
60
61
|
"semver": "7.*"
|
|
61
62
|
}
|
|
62
63
|
}
|
|
@@ -1,311 +0,0 @@
|
|
|
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 interface Controller {
|
|
50
|
-
updated_at: bigint;
|
|
51
|
-
metadata: Array<[string, string]>;
|
|
52
|
-
created_at: bigint;
|
|
53
|
-
scope: ControllerScope;
|
|
54
|
-
expires_at: [] | [bigint];
|
|
55
|
-
}
|
|
56
|
-
export type ControllerScope = {Write: null} | {Admin: null} | {Submit: null};
|
|
57
|
-
export interface CreateCanisterArgs {
|
|
58
|
-
block_index: [] | [bigint];
|
|
59
|
-
subnet_id: [] | [Principal];
|
|
60
|
-
user: Principal;
|
|
61
|
-
}
|
|
62
|
-
export interface CustomDomain {
|
|
63
|
-
updated_at: bigint;
|
|
64
|
-
created_at: bigint;
|
|
65
|
-
version: [] | [bigint];
|
|
66
|
-
bn_id: [] | [string];
|
|
67
|
-
}
|
|
68
|
-
export interface DeleteControllersArgs {
|
|
69
|
-
controllers: Array<Principal>;
|
|
70
|
-
}
|
|
71
|
-
export interface DeleteProposalAssets {
|
|
72
|
-
proposal_ids: Array<bigint>;
|
|
73
|
-
}
|
|
74
|
-
export interface GetCreateCanisterFeeArgs {
|
|
75
|
-
user: Principal;
|
|
76
|
-
}
|
|
77
|
-
export interface HttpRequest {
|
|
78
|
-
url: string;
|
|
79
|
-
method: string;
|
|
80
|
-
body: Uint8Array | number[];
|
|
81
|
-
headers: Array<[string, string]>;
|
|
82
|
-
certificate_version: [] | [number];
|
|
83
|
-
}
|
|
84
|
-
export interface HttpResponse {
|
|
85
|
-
body: Uint8Array | number[];
|
|
86
|
-
headers: Array<[string, string]>;
|
|
87
|
-
streaming_strategy: [] | [StreamingStrategy];
|
|
88
|
-
status_code: number;
|
|
89
|
-
}
|
|
90
|
-
export interface InitAssetKey {
|
|
91
|
-
token: [] | [string];
|
|
92
|
-
collection: string;
|
|
93
|
-
name: string;
|
|
94
|
-
description: [] | [string];
|
|
95
|
-
encoding_type: [] | [string];
|
|
96
|
-
full_path: string;
|
|
97
|
-
}
|
|
98
|
-
export interface InitUploadResult {
|
|
99
|
-
batch_id: bigint;
|
|
100
|
-
}
|
|
101
|
-
export interface ListMatcher {
|
|
102
|
-
key: [] | [string];
|
|
103
|
-
updated_at: [] | [TimestampMatcher];
|
|
104
|
-
description: [] | [string];
|
|
105
|
-
created_at: [] | [TimestampMatcher];
|
|
106
|
-
}
|
|
107
|
-
export interface ListOrder {
|
|
108
|
-
field: ListOrderField;
|
|
109
|
-
desc: boolean;
|
|
110
|
-
}
|
|
111
|
-
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
112
|
-
export interface ListPaginate {
|
|
113
|
-
start_after: [] | [string];
|
|
114
|
-
limit: [] | [bigint];
|
|
115
|
-
}
|
|
116
|
-
export interface ListParams {
|
|
117
|
-
order: [] | [ListOrder];
|
|
118
|
-
owner: [] | [Principal];
|
|
119
|
-
matcher: [] | [ListMatcher];
|
|
120
|
-
paginate: [] | [ListPaginate];
|
|
121
|
-
}
|
|
122
|
-
export interface ListProposalResults {
|
|
123
|
-
matches_length: bigint;
|
|
124
|
-
items: Array<[ProposalKey, Proposal]>;
|
|
125
|
-
items_length: bigint;
|
|
126
|
-
}
|
|
127
|
-
export interface ListProposalsOrder {
|
|
128
|
-
desc: boolean;
|
|
129
|
-
}
|
|
130
|
-
export interface ListProposalsPaginate {
|
|
131
|
-
start_after: [] | [bigint];
|
|
132
|
-
limit: [] | [bigint];
|
|
133
|
-
}
|
|
134
|
-
export interface ListProposalsParams {
|
|
135
|
-
order: [] | [ListProposalsOrder];
|
|
136
|
-
paginate: [] | [ListProposalsPaginate];
|
|
137
|
-
}
|
|
138
|
-
export interface ListResults {
|
|
139
|
-
matches_pages: [] | [bigint];
|
|
140
|
-
matches_length: bigint;
|
|
141
|
-
items_page: [] | [bigint];
|
|
142
|
-
items: Array<[string, AssetNoContent]>;
|
|
143
|
-
items_length: bigint;
|
|
144
|
-
}
|
|
145
|
-
export type Memory = {Heap: null} | {Stable: null};
|
|
146
|
-
export interface MissionControl {
|
|
147
|
-
updated_at: bigint;
|
|
148
|
-
credits: Tokens;
|
|
149
|
-
mission_control_id: [] | [Principal];
|
|
150
|
-
owner: Principal;
|
|
151
|
-
created_at: bigint;
|
|
152
|
-
}
|
|
153
|
-
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};
|
|
162
|
-
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;
|
|
171
|
-
}
|
|
172
|
-
export interface ProposalKey {
|
|
173
|
-
proposal_id: bigint;
|
|
174
|
-
}
|
|
175
|
-
export type ProposalStatus =
|
|
176
|
-
| {Initialized: null}
|
|
177
|
-
| {Failed: null}
|
|
178
|
-
| {Open: null}
|
|
179
|
-
| {Rejected: null}
|
|
180
|
-
| {Executed: null}
|
|
181
|
-
| {Accepted: null};
|
|
182
|
-
export type ProposalType =
|
|
183
|
-
| {AssetsUpgrade: AssetsUpgradeOptions}
|
|
184
|
-
| {SegmentsDeployment: SegmentsDeploymentOptions};
|
|
185
|
-
export interface RateConfig {
|
|
186
|
-
max_tokens: bigint;
|
|
187
|
-
time_per_token_ns: bigint;
|
|
188
|
-
}
|
|
189
|
-
export type SegmentKind = {Orbiter: null} | {MissionControl: null} | {Satellite: null};
|
|
190
|
-
export interface SegmentsDeploymentOptions {
|
|
191
|
-
orbiter: [] | [string];
|
|
192
|
-
mission_control_version: [] | [string];
|
|
193
|
-
satellite_version: [] | [string];
|
|
194
|
-
}
|
|
195
|
-
export interface SetController {
|
|
196
|
-
metadata: Array<[string, string]>;
|
|
197
|
-
scope: ControllerScope;
|
|
198
|
-
expires_at: [] | [bigint];
|
|
199
|
-
}
|
|
200
|
-
export interface SetControllersArgs {
|
|
201
|
-
controller: SetController;
|
|
202
|
-
controllers: Array<Principal>;
|
|
203
|
-
}
|
|
204
|
-
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]>];
|
|
212
|
-
}
|
|
213
|
-
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};
|
|
226
|
-
export interface StorageConfigRedirect {
|
|
227
|
-
status_code: number;
|
|
228
|
-
location: string;
|
|
229
|
-
}
|
|
230
|
-
export interface StreamingCallbackHttpResponse {
|
|
231
|
-
token: [] | [StreamingCallbackToken];
|
|
232
|
-
body: Uint8Array | number[];
|
|
233
|
-
}
|
|
234
|
-
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;
|
|
242
|
-
}
|
|
243
|
-
export type StreamingStrategy = {
|
|
244
|
-
Callback: {
|
|
245
|
-
token: StreamingCallbackToken;
|
|
246
|
-
callback: [Principal, string];
|
|
247
|
-
};
|
|
248
|
-
};
|
|
249
|
-
export type TimestampMatcher =
|
|
250
|
-
| {Equal: bigint}
|
|
251
|
-
| {Between: [bigint, bigint]}
|
|
252
|
-
| {GreaterThan: bigint}
|
|
253
|
-
| {LessThan: bigint};
|
|
254
|
-
export interface Tokens {
|
|
255
|
-
e8s: bigint;
|
|
256
|
-
}
|
|
257
|
-
export interface UploadChunk {
|
|
258
|
-
content: Uint8Array | number[];
|
|
259
|
-
batch_id: bigint;
|
|
260
|
-
order_id: [] | [bigint];
|
|
261
|
-
}
|
|
262
|
-
export interface UploadChunkResult {
|
|
263
|
-
chunk_id: bigint;
|
|
264
|
-
}
|
|
265
|
-
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_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
270
|
-
commit_proposal: ActorMethod<[CommitProposal], null>;
|
|
271
|
-
commit_proposal_asset_upload: ActorMethod<[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_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
291
|
-
init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
|
|
292
|
-
init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
|
|
293
|
-
init_user_mission_control_center: ActorMethod<[], MissionControl>;
|
|
294
|
-
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
295
|
-
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
296
|
-
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
297
|
-
list_payments: ActorMethod<[], Array<[bigint, Payment]>>;
|
|
298
|
-
list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
|
|
299
|
-
list_user_mission_control_centers: ActorMethod<[], Array<[Principal, MissionControl]>>;
|
|
300
|
-
reject_proposal: ActorMethod<[CommitProposal], null>;
|
|
301
|
-
set_controllers: ActorMethod<[SetControllersArgs], undefined>;
|
|
302
|
-
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
303
|
-
set_fee: ActorMethod<[SegmentKind, Tokens], undefined>;
|
|
304
|
-
set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
|
|
305
|
-
submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
|
|
306
|
-
update_rate_config: ActorMethod<[SegmentKind, RateConfig], undefined>;
|
|
307
|
-
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
308
|
-
upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
309
|
-
}
|
|
310
|
-
export declare const idlFactory: IDL.InterfaceFactory;
|
|
311
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|