@junobuild/admin 0.0.53 → 0.0.54-next-2024-08-09
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 +2 -2
- package/dist/node/index.mjs +2 -2
- package/dist/node/index.mjs.map +2 -2
- package/package.json +7 -8
- package/declarations/ic/ic.did.d.ts +0 -301
- package/declarations/ic/ic.factory.did.js +0 -339
- package/declarations/ic/ic.factory.did.mjs +0 -339
- package/declarations/mission_control/mission_control.did.d.ts +0 -115
- package/declarations/mission_control/mission_control.factory.did.js +0 -147
- package/declarations/orbiter/orbiter.did.d.ts +0 -166
- package/declarations/orbiter/orbiter.factory.did.js +0 -197
- package/declarations/orbiter/orbiter.factory.did.mjs +0 -197
- package/declarations/satellite/satellite-deprecated-no-scope.did.d.ts +0 -183
- package/declarations/satellite/satellite-deprecated-no-scope.factory.did.js +0 -194
- package/declarations/satellite/satellite-deprecated-no-scope.factory.did.mjs +0 -192
- package/declarations/satellite/satellite-deprecated.did.d.ts +0 -182
- package/declarations/satellite/satellite-deprecated.factory.did.js +0 -191
- package/declarations/satellite/satellite-deprecated.factory.did.mjs +0 -191
- package/declarations/satellite/satellite.did.d.ts +0 -277
- package/declarations/satellite/satellite.factory.did.js +0 -305
- package/declarations/satellite/satellite.factory.did.mjs +0 -305
|
@@ -1,277 +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 AssetEncodingNoContent {
|
|
6
|
-
modified: bigint;
|
|
7
|
-
sha256: Uint8Array | number[];
|
|
8
|
-
total_length: bigint;
|
|
9
|
-
}
|
|
10
|
-
export interface AssetKey {
|
|
11
|
-
token: [] | [string];
|
|
12
|
-
collection: string;
|
|
13
|
-
owner: Principal;
|
|
14
|
-
name: string;
|
|
15
|
-
description: [] | [string];
|
|
16
|
-
full_path: string;
|
|
17
|
-
}
|
|
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;
|
|
24
|
-
version: [] | [bigint];
|
|
25
|
-
}
|
|
26
|
-
export interface AuthenticationConfig {
|
|
27
|
-
internet_identity: [] | [AuthenticationConfigInternetIdentity];
|
|
28
|
-
}
|
|
29
|
-
export interface AuthenticationConfigInternetIdentity {
|
|
30
|
-
derivation_origin: [] | [string];
|
|
31
|
-
}
|
|
32
|
-
export interface CommitBatch {
|
|
33
|
-
batch_id: bigint;
|
|
34
|
-
headers: Array<[string, string]>;
|
|
35
|
-
chunk_ids: Array<bigint>;
|
|
36
|
-
}
|
|
37
|
-
export interface Config {
|
|
38
|
-
db: [] | [DbConfig];
|
|
39
|
-
authentication: [] | [AuthenticationConfig];
|
|
40
|
-
storage: StorageConfig;
|
|
41
|
-
}
|
|
42
|
-
export interface ConfigMaxMemorySize {
|
|
43
|
-
stable: [] | [bigint];
|
|
44
|
-
heap: [] | [bigint];
|
|
45
|
-
}
|
|
46
|
-
export interface Controller {
|
|
47
|
-
updated_at: bigint;
|
|
48
|
-
metadata: Array<[string, string]>;
|
|
49
|
-
created_at: bigint;
|
|
50
|
-
scope: ControllerScope;
|
|
51
|
-
expires_at: [] | [bigint];
|
|
52
|
-
}
|
|
53
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
54
|
-
export interface CustomDomain {
|
|
55
|
-
updated_at: bigint;
|
|
56
|
-
created_at: bigint;
|
|
57
|
-
version: [] | [bigint];
|
|
58
|
-
bn_id: [] | [string];
|
|
59
|
-
}
|
|
60
|
-
export interface DbConfig {
|
|
61
|
-
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
62
|
-
}
|
|
63
|
-
export interface DelDoc {
|
|
64
|
-
version: [] | [bigint];
|
|
65
|
-
}
|
|
66
|
-
export interface DelRule {
|
|
67
|
-
version: [] | [bigint];
|
|
68
|
-
}
|
|
69
|
-
export interface DeleteControllersArgs {
|
|
70
|
-
controllers: Array<Principal>;
|
|
71
|
-
}
|
|
72
|
-
export interface DepositCyclesArgs {
|
|
73
|
-
cycles: bigint;
|
|
74
|
-
destination_id: Principal;
|
|
75
|
-
}
|
|
76
|
-
export interface Doc {
|
|
77
|
-
updated_at: bigint;
|
|
78
|
-
owner: Principal;
|
|
79
|
-
data: Uint8Array | number[];
|
|
80
|
-
description: [] | [string];
|
|
81
|
-
created_at: bigint;
|
|
82
|
-
version: [] | [bigint];
|
|
83
|
-
}
|
|
84
|
-
export interface HttpRequest {
|
|
85
|
-
url: string;
|
|
86
|
-
method: string;
|
|
87
|
-
body: Uint8Array | number[];
|
|
88
|
-
headers: Array<[string, string]>;
|
|
89
|
-
certificate_version: [] | [number];
|
|
90
|
-
}
|
|
91
|
-
export interface HttpResponse {
|
|
92
|
-
body: Uint8Array | number[];
|
|
93
|
-
headers: Array<[string, string]>;
|
|
94
|
-
streaming_strategy: [] | [StreamingStrategy];
|
|
95
|
-
status_code: number;
|
|
96
|
-
}
|
|
97
|
-
export interface InitAssetKey {
|
|
98
|
-
token: [] | [string];
|
|
99
|
-
collection: string;
|
|
100
|
-
name: string;
|
|
101
|
-
description: [] | [string];
|
|
102
|
-
encoding_type: [] | [string];
|
|
103
|
-
full_path: string;
|
|
104
|
-
}
|
|
105
|
-
export interface InitUploadResult {
|
|
106
|
-
batch_id: bigint;
|
|
107
|
-
}
|
|
108
|
-
export interface ListMatcher {
|
|
109
|
-
key: [] | [string];
|
|
110
|
-
updated_at: [] | [TimestampMatcher];
|
|
111
|
-
description: [] | [string];
|
|
112
|
-
created_at: [] | [TimestampMatcher];
|
|
113
|
-
}
|
|
114
|
-
export interface ListOrder {
|
|
115
|
-
field: ListOrderField;
|
|
116
|
-
desc: boolean;
|
|
117
|
-
}
|
|
118
|
-
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
119
|
-
export interface ListPaginate {
|
|
120
|
-
start_after: [] | [string];
|
|
121
|
-
limit: [] | [bigint];
|
|
122
|
-
}
|
|
123
|
-
export interface ListParams {
|
|
124
|
-
order: [] | [ListOrder];
|
|
125
|
-
owner: [] | [Principal];
|
|
126
|
-
matcher: [] | [ListMatcher];
|
|
127
|
-
paginate: [] | [ListPaginate];
|
|
128
|
-
}
|
|
129
|
-
export interface ListResults {
|
|
130
|
-
matches_pages: [] | [bigint];
|
|
131
|
-
matches_length: bigint;
|
|
132
|
-
items_page: [] | [bigint];
|
|
133
|
-
items: Array<[string, AssetNoContent]>;
|
|
134
|
-
items_length: bigint;
|
|
135
|
-
}
|
|
136
|
-
export interface ListResults_1 {
|
|
137
|
-
matches_pages: [] | [bigint];
|
|
138
|
-
matches_length: bigint;
|
|
139
|
-
items_page: [] | [bigint];
|
|
140
|
-
items: Array<[string, Doc]>;
|
|
141
|
-
items_length: bigint;
|
|
142
|
-
}
|
|
143
|
-
export type Memory = {Heap: null} | {Stable: null};
|
|
144
|
-
export interface MemorySize {
|
|
145
|
-
stable: bigint;
|
|
146
|
-
heap: bigint;
|
|
147
|
-
}
|
|
148
|
-
export type Permission = {Controllers: null} | {Private: null} | {Public: null} | {Managed: null};
|
|
149
|
-
export interface Rule {
|
|
150
|
-
max_capacity: [] | [number];
|
|
151
|
-
memory: [] | [Memory];
|
|
152
|
-
updated_at: bigint;
|
|
153
|
-
max_size: [] | [bigint];
|
|
154
|
-
read: Permission;
|
|
155
|
-
created_at: bigint;
|
|
156
|
-
version: [] | [bigint];
|
|
157
|
-
mutable_permissions: [] | [boolean];
|
|
158
|
-
write: Permission;
|
|
159
|
-
}
|
|
160
|
-
export type RulesType = {Db: null} | {Storage: null};
|
|
161
|
-
export interface SetController {
|
|
162
|
-
metadata: Array<[string, string]>;
|
|
163
|
-
scope: ControllerScope;
|
|
164
|
-
expires_at: [] | [bigint];
|
|
165
|
-
}
|
|
166
|
-
export interface SetControllersArgs {
|
|
167
|
-
controller: SetController;
|
|
168
|
-
controllers: Array<Principal>;
|
|
169
|
-
}
|
|
170
|
-
export interface SetDoc {
|
|
171
|
-
data: Uint8Array | number[];
|
|
172
|
-
description: [] | [string];
|
|
173
|
-
version: [] | [bigint];
|
|
174
|
-
}
|
|
175
|
-
export interface SetRule {
|
|
176
|
-
max_capacity: [] | [number];
|
|
177
|
-
memory: [] | [Memory];
|
|
178
|
-
max_size: [] | [bigint];
|
|
179
|
-
read: Permission;
|
|
180
|
-
version: [] | [bigint];
|
|
181
|
-
mutable_permissions: [] | [boolean];
|
|
182
|
-
write: Permission;
|
|
183
|
-
}
|
|
184
|
-
export interface StorageConfig {
|
|
185
|
-
iframe: [] | [StorageConfigIFrame];
|
|
186
|
-
rewrites: Array<[string, string]>;
|
|
187
|
-
headers: Array<[string, Array<[string, string]>]>;
|
|
188
|
-
max_memory_size: [] | [ConfigMaxMemorySize];
|
|
189
|
-
raw_access: [] | [StorageConfigRawAccess];
|
|
190
|
-
redirects: [] | [Array<[string, StorageConfigRedirect]>];
|
|
191
|
-
}
|
|
192
|
-
export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
|
|
193
|
-
export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
|
|
194
|
-
export interface StorageConfigRedirect {
|
|
195
|
-
status_code: number;
|
|
196
|
-
location: string;
|
|
197
|
-
}
|
|
198
|
-
export interface StreamingCallbackHttpResponse {
|
|
199
|
-
token: [] | [StreamingCallbackToken];
|
|
200
|
-
body: Uint8Array | number[];
|
|
201
|
-
}
|
|
202
|
-
export interface StreamingCallbackToken {
|
|
203
|
-
memory: Memory;
|
|
204
|
-
token: [] | [string];
|
|
205
|
-
sha256: [] | [Uint8Array | number[]];
|
|
206
|
-
headers: Array<[string, string]>;
|
|
207
|
-
index: bigint;
|
|
208
|
-
encoding_type: string;
|
|
209
|
-
full_path: string;
|
|
210
|
-
}
|
|
211
|
-
export type StreamingStrategy = {
|
|
212
|
-
Callback: {
|
|
213
|
-
token: StreamingCallbackToken;
|
|
214
|
-
callback: [Principal, string];
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
export type TimestampMatcher =
|
|
218
|
-
| {Equal: bigint}
|
|
219
|
-
| {Between: [bigint, bigint]}
|
|
220
|
-
| {GreaterThan: bigint}
|
|
221
|
-
| {LessThan: bigint};
|
|
222
|
-
export interface UploadChunk {
|
|
223
|
-
content: Uint8Array | number[];
|
|
224
|
-
batch_id: bigint;
|
|
225
|
-
order_id: [] | [bigint];
|
|
226
|
-
}
|
|
227
|
-
export interface UploadChunkResult {
|
|
228
|
-
chunk_id: bigint;
|
|
229
|
-
}
|
|
230
|
-
export interface _SERVICE {
|
|
231
|
-
build_version: ActorMethod<[], string>;
|
|
232
|
-
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
233
|
-
count_assets: ActorMethod<[string], bigint>;
|
|
234
|
-
count_docs: ActorMethod<[string], bigint>;
|
|
235
|
-
del_asset: ActorMethod<[string, string], undefined>;
|
|
236
|
-
del_assets: ActorMethod<[string], undefined>;
|
|
237
|
-
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
238
|
-
del_custom_domain: ActorMethod<[string], undefined>;
|
|
239
|
-
del_doc: ActorMethod<[string, string, DelDoc], undefined>;
|
|
240
|
-
del_docs: ActorMethod<[string], undefined>;
|
|
241
|
-
del_many_assets: ActorMethod<[Array<[string, string]>], undefined>;
|
|
242
|
-
del_many_docs: ActorMethod<[Array<[string, string, DelDoc]>], undefined>;
|
|
243
|
-
del_rule: ActorMethod<[RulesType, string, DelRule], undefined>;
|
|
244
|
-
deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
|
|
245
|
-
get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
|
|
246
|
-
get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
|
|
247
|
-
get_config: ActorMethod<[], Config>;
|
|
248
|
-
get_db_config: ActorMethod<[], [] | [DbConfig]>;
|
|
249
|
-
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
250
|
-
get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
|
|
251
|
-
get_many_docs: ActorMethod<[Array<[string, string]>], Array<[string, [] | [Doc]]>>;
|
|
252
|
-
get_storage_config: ActorMethod<[], StorageConfig>;
|
|
253
|
-
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
254
|
-
http_request_streaming_callback: ActorMethod<
|
|
255
|
-
[StreamingCallbackToken],
|
|
256
|
-
StreamingCallbackHttpResponse
|
|
257
|
-
>;
|
|
258
|
-
init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
|
|
259
|
-
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
260
|
-
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
261
|
-
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
262
|
-
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
263
|
-
list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
|
|
264
|
-
memory_size: ActorMethod<[], MemorySize>;
|
|
265
|
-
set_auth_config: ActorMethod<[AuthenticationConfig], undefined>;
|
|
266
|
-
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
267
|
-
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
268
|
-
set_db_config: ActorMethod<[DbConfig], undefined>;
|
|
269
|
-
set_doc: ActorMethod<[string, string, SetDoc], Doc>;
|
|
270
|
-
set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<[string, Doc]>>;
|
|
271
|
-
set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
|
|
272
|
-
set_storage_config: ActorMethod<[StorageConfig], undefined>;
|
|
273
|
-
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
274
|
-
version: ActorMethod<[], string>;
|
|
275
|
-
}
|
|
276
|
-
export declare const idlFactory: IDL.InterfaceFactory;
|
|
277
|
-
export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
export const idlFactory = ({IDL}) => {
|
|
3
|
-
const CommitBatch = IDL.Record({
|
|
4
|
-
batch_id: IDL.Nat,
|
|
5
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
6
|
-
chunk_ids: IDL.Vec(IDL.Nat)
|
|
7
|
-
});
|
|
8
|
-
const DeleteControllersArgs = IDL.Record({
|
|
9
|
-
controllers: IDL.Vec(IDL.Principal)
|
|
10
|
-
});
|
|
11
|
-
const ControllerScope = IDL.Variant({
|
|
12
|
-
Write: IDL.Null,
|
|
13
|
-
Admin: IDL.Null
|
|
14
|
-
});
|
|
15
|
-
const Controller = IDL.Record({
|
|
16
|
-
updated_at: IDL.Nat64,
|
|
17
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
18
|
-
created_at: IDL.Nat64,
|
|
19
|
-
scope: ControllerScope,
|
|
20
|
-
expires_at: IDL.Opt(IDL.Nat64)
|
|
21
|
-
});
|
|
22
|
-
const DelDoc = IDL.Record({version: IDL.Opt(IDL.Nat64)});
|
|
23
|
-
const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
|
|
24
|
-
const DelRule = IDL.Record({version: IDL.Opt(IDL.Nat64)});
|
|
25
|
-
const DepositCyclesArgs = IDL.Record({
|
|
26
|
-
cycles: IDL.Nat,
|
|
27
|
-
destination_id: IDL.Principal
|
|
28
|
-
});
|
|
29
|
-
const AssetKey = IDL.Record({
|
|
30
|
-
token: IDL.Opt(IDL.Text),
|
|
31
|
-
collection: IDL.Text,
|
|
32
|
-
owner: IDL.Principal,
|
|
33
|
-
name: IDL.Text,
|
|
34
|
-
description: IDL.Opt(IDL.Text),
|
|
35
|
-
full_path: IDL.Text
|
|
36
|
-
});
|
|
37
|
-
const AssetEncodingNoContent = IDL.Record({
|
|
38
|
-
modified: IDL.Nat64,
|
|
39
|
-
sha256: IDL.Vec(IDL.Nat8),
|
|
40
|
-
total_length: IDL.Nat
|
|
41
|
-
});
|
|
42
|
-
const AssetNoContent = IDL.Record({
|
|
43
|
-
key: AssetKey,
|
|
44
|
-
updated_at: IDL.Nat64,
|
|
45
|
-
encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
|
|
46
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
47
|
-
created_at: IDL.Nat64,
|
|
48
|
-
version: IDL.Opt(IDL.Nat64)
|
|
49
|
-
});
|
|
50
|
-
const AuthenticationConfigInternetIdentity = IDL.Record({
|
|
51
|
-
derivation_origin: IDL.Opt(IDL.Text)
|
|
52
|
-
});
|
|
53
|
-
const AuthenticationConfig = IDL.Record({
|
|
54
|
-
internet_identity: IDL.Opt(AuthenticationConfigInternetIdentity)
|
|
55
|
-
});
|
|
56
|
-
const ConfigMaxMemorySize = IDL.Record({
|
|
57
|
-
stable: IDL.Opt(IDL.Nat64),
|
|
58
|
-
heap: IDL.Opt(IDL.Nat64)
|
|
59
|
-
});
|
|
60
|
-
const DbConfig = IDL.Record({
|
|
61
|
-
max_memory_size: IDL.Opt(ConfigMaxMemorySize)
|
|
62
|
-
});
|
|
63
|
-
const StorageConfigIFrame = IDL.Variant({
|
|
64
|
-
Deny: IDL.Null,
|
|
65
|
-
AllowAny: IDL.Null,
|
|
66
|
-
SameOrigin: IDL.Null
|
|
67
|
-
});
|
|
68
|
-
const StorageConfigRawAccess = IDL.Variant({
|
|
69
|
-
Deny: IDL.Null,
|
|
70
|
-
Allow: IDL.Null
|
|
71
|
-
});
|
|
72
|
-
const StorageConfigRedirect = IDL.Record({
|
|
73
|
-
status_code: IDL.Nat16,
|
|
74
|
-
location: IDL.Text
|
|
75
|
-
});
|
|
76
|
-
const StorageConfig = IDL.Record({
|
|
77
|
-
iframe: IDL.Opt(StorageConfigIFrame),
|
|
78
|
-
rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
79
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
|
|
80
|
-
max_memory_size: IDL.Opt(ConfigMaxMemorySize),
|
|
81
|
-
raw_access: IDL.Opt(StorageConfigRawAccess),
|
|
82
|
-
redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
|
|
83
|
-
});
|
|
84
|
-
const Config = IDL.Record({
|
|
85
|
-
db: IDL.Opt(DbConfig),
|
|
86
|
-
authentication: IDL.Opt(AuthenticationConfig),
|
|
87
|
-
storage: StorageConfig
|
|
88
|
-
});
|
|
89
|
-
const Doc = IDL.Record({
|
|
90
|
-
updated_at: IDL.Nat64,
|
|
91
|
-
owner: IDL.Principal,
|
|
92
|
-
data: IDL.Vec(IDL.Nat8),
|
|
93
|
-
description: IDL.Opt(IDL.Text),
|
|
94
|
-
created_at: IDL.Nat64,
|
|
95
|
-
version: IDL.Opt(IDL.Nat64)
|
|
96
|
-
});
|
|
97
|
-
const HttpRequest = IDL.Record({
|
|
98
|
-
url: IDL.Text,
|
|
99
|
-
method: IDL.Text,
|
|
100
|
-
body: IDL.Vec(IDL.Nat8),
|
|
101
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
102
|
-
certificate_version: IDL.Opt(IDL.Nat16)
|
|
103
|
-
});
|
|
104
|
-
const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
|
|
105
|
-
const StreamingCallbackToken = IDL.Record({
|
|
106
|
-
memory: Memory,
|
|
107
|
-
token: IDL.Opt(IDL.Text),
|
|
108
|
-
sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
109
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
110
|
-
index: IDL.Nat64,
|
|
111
|
-
encoding_type: IDL.Text,
|
|
112
|
-
full_path: IDL.Text
|
|
113
|
-
});
|
|
114
|
-
const StreamingStrategy = IDL.Variant({
|
|
115
|
-
Callback: IDL.Record({
|
|
116
|
-
token: StreamingCallbackToken,
|
|
117
|
-
callback: IDL.Func([], [], ['query'])
|
|
118
|
-
})
|
|
119
|
-
});
|
|
120
|
-
const HttpResponse = IDL.Record({
|
|
121
|
-
body: IDL.Vec(IDL.Nat8),
|
|
122
|
-
headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
123
|
-
streaming_strategy: IDL.Opt(StreamingStrategy),
|
|
124
|
-
status_code: IDL.Nat16
|
|
125
|
-
});
|
|
126
|
-
const StreamingCallbackHttpResponse = IDL.Record({
|
|
127
|
-
token: IDL.Opt(StreamingCallbackToken),
|
|
128
|
-
body: IDL.Vec(IDL.Nat8)
|
|
129
|
-
});
|
|
130
|
-
const InitAssetKey = IDL.Record({
|
|
131
|
-
token: IDL.Opt(IDL.Text),
|
|
132
|
-
collection: IDL.Text,
|
|
133
|
-
name: IDL.Text,
|
|
134
|
-
description: IDL.Opt(IDL.Text),
|
|
135
|
-
encoding_type: IDL.Opt(IDL.Text),
|
|
136
|
-
full_path: IDL.Text
|
|
137
|
-
});
|
|
138
|
-
const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
|
|
139
|
-
const ListOrderField = IDL.Variant({
|
|
140
|
-
UpdatedAt: IDL.Null,
|
|
141
|
-
Keys: IDL.Null,
|
|
142
|
-
CreatedAt: IDL.Null
|
|
143
|
-
});
|
|
144
|
-
const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
|
|
145
|
-
const TimestampMatcher = IDL.Variant({
|
|
146
|
-
Equal: IDL.Nat64,
|
|
147
|
-
Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
|
|
148
|
-
GreaterThan: IDL.Nat64,
|
|
149
|
-
LessThan: IDL.Nat64
|
|
150
|
-
});
|
|
151
|
-
const ListMatcher = IDL.Record({
|
|
152
|
-
key: IDL.Opt(IDL.Text),
|
|
153
|
-
updated_at: IDL.Opt(TimestampMatcher),
|
|
154
|
-
description: IDL.Opt(IDL.Text),
|
|
155
|
-
created_at: IDL.Opt(TimestampMatcher)
|
|
156
|
-
});
|
|
157
|
-
const ListPaginate = IDL.Record({
|
|
158
|
-
start_after: IDL.Opt(IDL.Text),
|
|
159
|
-
limit: IDL.Opt(IDL.Nat64)
|
|
160
|
-
});
|
|
161
|
-
const ListParams = IDL.Record({
|
|
162
|
-
order: IDL.Opt(ListOrder),
|
|
163
|
-
owner: IDL.Opt(IDL.Principal),
|
|
164
|
-
matcher: IDL.Opt(ListMatcher),
|
|
165
|
-
paginate: IDL.Opt(ListPaginate)
|
|
166
|
-
});
|
|
167
|
-
const ListResults = IDL.Record({
|
|
168
|
-
matches_pages: IDL.Opt(IDL.Nat64),
|
|
169
|
-
matches_length: IDL.Nat64,
|
|
170
|
-
items_page: IDL.Opt(IDL.Nat64),
|
|
171
|
-
items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
|
|
172
|
-
items_length: IDL.Nat64
|
|
173
|
-
});
|
|
174
|
-
const CustomDomain = IDL.Record({
|
|
175
|
-
updated_at: IDL.Nat64,
|
|
176
|
-
created_at: IDL.Nat64,
|
|
177
|
-
version: IDL.Opt(IDL.Nat64),
|
|
178
|
-
bn_id: IDL.Opt(IDL.Text)
|
|
179
|
-
});
|
|
180
|
-
const ListResults_1 = IDL.Record({
|
|
181
|
-
matches_pages: IDL.Opt(IDL.Nat64),
|
|
182
|
-
matches_length: IDL.Nat64,
|
|
183
|
-
items_page: IDL.Opt(IDL.Nat64),
|
|
184
|
-
items: IDL.Vec(IDL.Tuple(IDL.Text, Doc)),
|
|
185
|
-
items_length: IDL.Nat64
|
|
186
|
-
});
|
|
187
|
-
const Permission = IDL.Variant({
|
|
188
|
-
Controllers: IDL.Null,
|
|
189
|
-
Private: IDL.Null,
|
|
190
|
-
Public: IDL.Null,
|
|
191
|
-
Managed: IDL.Null
|
|
192
|
-
});
|
|
193
|
-
const Rule = IDL.Record({
|
|
194
|
-
max_capacity: IDL.Opt(IDL.Nat32),
|
|
195
|
-
memory: IDL.Opt(Memory),
|
|
196
|
-
updated_at: IDL.Nat64,
|
|
197
|
-
max_size: IDL.Opt(IDL.Nat),
|
|
198
|
-
read: Permission,
|
|
199
|
-
created_at: IDL.Nat64,
|
|
200
|
-
version: IDL.Opt(IDL.Nat64),
|
|
201
|
-
mutable_permissions: IDL.Opt(IDL.Bool),
|
|
202
|
-
write: Permission
|
|
203
|
-
});
|
|
204
|
-
const MemorySize = IDL.Record({stable: IDL.Nat64, heap: IDL.Nat64});
|
|
205
|
-
const SetController = IDL.Record({
|
|
206
|
-
metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
|
|
207
|
-
scope: ControllerScope,
|
|
208
|
-
expires_at: IDL.Opt(IDL.Nat64)
|
|
209
|
-
});
|
|
210
|
-
const SetControllersArgs = IDL.Record({
|
|
211
|
-
controller: SetController,
|
|
212
|
-
controllers: IDL.Vec(IDL.Principal)
|
|
213
|
-
});
|
|
214
|
-
const SetDoc = IDL.Record({
|
|
215
|
-
data: IDL.Vec(IDL.Nat8),
|
|
216
|
-
description: IDL.Opt(IDL.Text),
|
|
217
|
-
version: IDL.Opt(IDL.Nat64)
|
|
218
|
-
});
|
|
219
|
-
const SetRule = IDL.Record({
|
|
220
|
-
max_capacity: IDL.Opt(IDL.Nat32),
|
|
221
|
-
memory: IDL.Opt(Memory),
|
|
222
|
-
max_size: IDL.Opt(IDL.Nat),
|
|
223
|
-
read: Permission,
|
|
224
|
-
version: IDL.Opt(IDL.Nat64),
|
|
225
|
-
mutable_permissions: IDL.Opt(IDL.Bool),
|
|
226
|
-
write: Permission
|
|
227
|
-
});
|
|
228
|
-
const UploadChunk = IDL.Record({
|
|
229
|
-
content: IDL.Vec(IDL.Nat8),
|
|
230
|
-
batch_id: IDL.Nat,
|
|
231
|
-
order_id: IDL.Opt(IDL.Nat)
|
|
232
|
-
});
|
|
233
|
-
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
|
|
234
|
-
return IDL.Service({
|
|
235
|
-
build_version: IDL.Func([], [IDL.Text], ['query']),
|
|
236
|
-
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
237
|
-
count_assets: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
238
|
-
count_docs: IDL.Func([IDL.Text], [IDL.Nat64], ['query']),
|
|
239
|
-
del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
|
|
240
|
-
del_assets: IDL.Func([IDL.Text], [], []),
|
|
241
|
-
del_controllers: IDL.Func(
|
|
242
|
-
[DeleteControllersArgs],
|
|
243
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
244
|
-
[]
|
|
245
|
-
),
|
|
246
|
-
del_custom_domain: IDL.Func([IDL.Text], [], []),
|
|
247
|
-
del_doc: IDL.Func([IDL.Text, IDL.Text, DelDoc], [], []),
|
|
248
|
-
del_docs: IDL.Func([IDL.Text], [], []),
|
|
249
|
-
del_many_assets: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))], [], []),
|
|
250
|
-
del_many_docs: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, DelDoc))], [], []),
|
|
251
|
-
del_rule: IDL.Func([RulesType, IDL.Text, DelRule], [], []),
|
|
252
|
-
deposit_cycles: IDL.Func([DepositCyclesArgs], [], []),
|
|
253
|
-
get_asset: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(AssetNoContent)], ['query']),
|
|
254
|
-
get_auth_config: IDL.Func([], [IDL.Opt(AuthenticationConfig)], ['query']),
|
|
255
|
-
get_config: IDL.Func([], [Config], []),
|
|
256
|
-
get_db_config: IDL.Func([], [IDL.Opt(DbConfig)], ['query']),
|
|
257
|
-
get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
|
|
258
|
-
get_many_assets: IDL.Func(
|
|
259
|
-
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
260
|
-
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(AssetNoContent)))],
|
|
261
|
-
['query']
|
|
262
|
-
),
|
|
263
|
-
get_many_docs: IDL.Func(
|
|
264
|
-
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
265
|
-
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Opt(Doc)))],
|
|
266
|
-
['query']
|
|
267
|
-
),
|
|
268
|
-
get_storage_config: IDL.Func([], [StorageConfig], ['query']),
|
|
269
|
-
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
270
|
-
http_request_streaming_callback: IDL.Func(
|
|
271
|
-
[StreamingCallbackToken],
|
|
272
|
-
[StreamingCallbackHttpResponse],
|
|
273
|
-
['query']
|
|
274
|
-
),
|
|
275
|
-
init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
|
|
276
|
-
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
277
|
-
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
278
|
-
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
279
|
-
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
280
|
-
list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
|
|
281
|
-
memory_size: IDL.Func([], [MemorySize], ['query']),
|
|
282
|
-
set_auth_config: IDL.Func([AuthenticationConfig], [], []),
|
|
283
|
-
set_controllers: IDL.Func(
|
|
284
|
-
[SetControllersArgs],
|
|
285
|
-
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
286
|
-
[]
|
|
287
|
-
),
|
|
288
|
-
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
289
|
-
set_db_config: IDL.Func([DbConfig], [], []),
|
|
290
|
-
set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
|
|
291
|
-
set_many_docs: IDL.Func(
|
|
292
|
-
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text, SetDoc))],
|
|
293
|
-
[IDL.Vec(IDL.Tuple(IDL.Text, Doc))],
|
|
294
|
-
[]
|
|
295
|
-
),
|
|
296
|
-
set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
|
|
297
|
-
set_storage_config: IDL.Func([StorageConfig], [], []),
|
|
298
|
-
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
299
|
-
version: IDL.Func([], [IDL.Text], ['query'])
|
|
300
|
-
});
|
|
301
|
-
};
|
|
302
|
-
// @ts-ignore
|
|
303
|
-
export const init = ({IDL}) => {
|
|
304
|
-
return [];
|
|
305
|
-
};
|