@junobuild/storage 0.1.5 → 0.1.6-next-2025-04-06
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/declarations/console/console.factory.certified.did.js +285 -0
- package/dist/declarations/{deprecated/satellite-0-0-9.factory.did.js → satellite/satellite.factory.certified.did.js} +186 -80
- package/package.json +7 -7
- package/dist/declarations/deprecated/mission_control-0-0-4.did.d.ts +0 -80
- package/dist/declarations/deprecated/mission_control-0-0-4.factory.did.js +0 -99
- package/dist/declarations/deprecated/satellite-0-0-8.did.d.ts +0 -183
- package/dist/declarations/deprecated/satellite-0-0-8.factory.did.js +0 -194
- package/dist/declarations/deprecated/satellite-0-0-9.did.d.ts +0 -199
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import type {ActorMethod} from '@dfinity/agent';
|
|
2
|
-
import type {Principal} from '@dfinity/principal';
|
|
3
|
-
|
|
4
|
-
export interface AssetEncodingNoContent {
|
|
5
|
-
modified: bigint;
|
|
6
|
-
sha256: Uint8Array | number[];
|
|
7
|
-
total_length: bigint;
|
|
8
|
-
}
|
|
9
|
-
export interface AssetKey {
|
|
10
|
-
token: [] | [string];
|
|
11
|
-
collection: string;
|
|
12
|
-
owner: Principal;
|
|
13
|
-
name: string;
|
|
14
|
-
description: [] | [string];
|
|
15
|
-
full_path: string;
|
|
16
|
-
}
|
|
17
|
-
export interface AssetNoContent {
|
|
18
|
-
key: AssetKey;
|
|
19
|
-
updated_at: bigint;
|
|
20
|
-
encodings: Array<[string, AssetEncodingNoContent]>;
|
|
21
|
-
headers: Array<[string, string]>;
|
|
22
|
-
created_at: bigint;
|
|
23
|
-
}
|
|
24
|
-
export interface Chunk {
|
|
25
|
-
content: Uint8Array | number[];
|
|
26
|
-
batch_id: bigint;
|
|
27
|
-
}
|
|
28
|
-
export interface CommitBatch {
|
|
29
|
-
batch_id: bigint;
|
|
30
|
-
headers: Array<[string, string]>;
|
|
31
|
-
chunk_ids: Array<bigint>;
|
|
32
|
-
}
|
|
33
|
-
export interface Config {
|
|
34
|
-
storage: StorageConfig;
|
|
35
|
-
}
|
|
36
|
-
export interface Controller {
|
|
37
|
-
updated_at: bigint;
|
|
38
|
-
metadata: Array<[string, string]>;
|
|
39
|
-
created_at: bigint;
|
|
40
|
-
scope: ControllerScope;
|
|
41
|
-
expires_at: [] | [bigint];
|
|
42
|
-
}
|
|
43
|
-
export type ControllerScope = {Write: null} | {Admin: null};
|
|
44
|
-
export interface CustomDomain {
|
|
45
|
-
updated_at: bigint;
|
|
46
|
-
created_at: bigint;
|
|
47
|
-
bn_id: [] | [string];
|
|
48
|
-
}
|
|
49
|
-
export interface DelDoc {
|
|
50
|
-
updated_at: [] | [bigint];
|
|
51
|
-
}
|
|
52
|
-
export interface DeleteControllersArgs {
|
|
53
|
-
controllers: Array<Principal>;
|
|
54
|
-
}
|
|
55
|
-
export interface Doc {
|
|
56
|
-
updated_at: bigint;
|
|
57
|
-
owner: Principal;
|
|
58
|
-
data: Uint8Array | number[];
|
|
59
|
-
description: [] | [string];
|
|
60
|
-
created_at: bigint;
|
|
61
|
-
}
|
|
62
|
-
export interface HttpRequest {
|
|
63
|
-
url: string;
|
|
64
|
-
method: string;
|
|
65
|
-
body: Uint8Array | number[];
|
|
66
|
-
headers: Array<[string, string]>;
|
|
67
|
-
}
|
|
68
|
-
export interface HttpResponse {
|
|
69
|
-
body: Uint8Array | number[];
|
|
70
|
-
headers: Array<[string, string]>;
|
|
71
|
-
streaming_strategy: [] | [StreamingStrategy];
|
|
72
|
-
status_code: number;
|
|
73
|
-
}
|
|
74
|
-
export interface InitAssetKey {
|
|
75
|
-
token: [] | [string];
|
|
76
|
-
collection: string;
|
|
77
|
-
name: string;
|
|
78
|
-
description: [] | [string];
|
|
79
|
-
encoding_type: [] | [string];
|
|
80
|
-
full_path: string;
|
|
81
|
-
}
|
|
82
|
-
export interface InitUploadResult {
|
|
83
|
-
batch_id: bigint;
|
|
84
|
-
}
|
|
85
|
-
export interface ListMatcher {
|
|
86
|
-
key: [] | [string];
|
|
87
|
-
description: [] | [string];
|
|
88
|
-
}
|
|
89
|
-
export interface ListOrder {
|
|
90
|
-
field: ListOrderField;
|
|
91
|
-
desc: boolean;
|
|
92
|
-
}
|
|
93
|
-
export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
|
|
94
|
-
export interface ListPaginate {
|
|
95
|
-
start_after: [] | [string];
|
|
96
|
-
limit: [] | [bigint];
|
|
97
|
-
}
|
|
98
|
-
export interface ListParams {
|
|
99
|
-
order: [] | [ListOrder];
|
|
100
|
-
owner: [] | [Principal];
|
|
101
|
-
matcher: [] | [ListMatcher];
|
|
102
|
-
paginate: [] | [ListPaginate];
|
|
103
|
-
}
|
|
104
|
-
export interface ListResults {
|
|
105
|
-
matches_pages: [] | [bigint];
|
|
106
|
-
matches_length: bigint;
|
|
107
|
-
items_page: [] | [bigint];
|
|
108
|
-
items: Array<[string, AssetNoContent]>;
|
|
109
|
-
items_length: bigint;
|
|
110
|
-
}
|
|
111
|
-
export interface ListResults_1 {
|
|
112
|
-
matches_pages: [] | [bigint];
|
|
113
|
-
matches_length: bigint;
|
|
114
|
-
items_page: [] | [bigint];
|
|
115
|
-
items: Array<[string, Doc]>;
|
|
116
|
-
items_length: bigint;
|
|
117
|
-
}
|
|
118
|
-
export type Permission = {Controllers: null} | {Private: null} | {Public: null} | {Managed: null};
|
|
119
|
-
export interface Rule {
|
|
120
|
-
updated_at: bigint;
|
|
121
|
-
max_size: [] | [bigint];
|
|
122
|
-
read: Permission;
|
|
123
|
-
created_at: bigint;
|
|
124
|
-
write: Permission;
|
|
125
|
-
}
|
|
126
|
-
export type RulesType = {Db: null} | {Storage: null};
|
|
127
|
-
export interface SetController {
|
|
128
|
-
metadata: Array<[string, string]>;
|
|
129
|
-
scope: ControllerScope;
|
|
130
|
-
expires_at: [] | [bigint];
|
|
131
|
-
}
|
|
132
|
-
export interface SetControllersArgs {
|
|
133
|
-
controller: SetController;
|
|
134
|
-
controllers: Array<Principal>;
|
|
135
|
-
}
|
|
136
|
-
export interface SetDoc {
|
|
137
|
-
updated_at: [] | [bigint];
|
|
138
|
-
data: Uint8Array | number[];
|
|
139
|
-
description: [] | [string];
|
|
140
|
-
}
|
|
141
|
-
export interface SetRule {
|
|
142
|
-
updated_at: [] | [bigint];
|
|
143
|
-
max_size: [] | [bigint];
|
|
144
|
-
read: Permission;
|
|
145
|
-
write: Permission;
|
|
146
|
-
}
|
|
147
|
-
export interface StorageConfig {
|
|
148
|
-
headers: Array<[string, Array<[string, string]>]>;
|
|
149
|
-
}
|
|
150
|
-
export interface StreamingCallbackHttpResponse {
|
|
151
|
-
token: [] | [StreamingCallbackToken];
|
|
152
|
-
body: Uint8Array | number[];
|
|
153
|
-
}
|
|
154
|
-
export interface StreamingCallbackToken {
|
|
155
|
-
token: [] | [string];
|
|
156
|
-
sha256: [] | [Uint8Array | number[]];
|
|
157
|
-
headers: Array<[string, string]>;
|
|
158
|
-
index: bigint;
|
|
159
|
-
encoding_type: string;
|
|
160
|
-
full_path: string;
|
|
161
|
-
}
|
|
162
|
-
export type StreamingStrategy = {
|
|
163
|
-
Callback: {
|
|
164
|
-
token: StreamingCallbackToken;
|
|
165
|
-
callback: [Principal, string];
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
export interface UploadChunk {
|
|
169
|
-
chunk_id: bigint;
|
|
170
|
-
}
|
|
171
|
-
export interface _SERVICE {
|
|
172
|
-
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
173
|
-
del_asset: ActorMethod<[string, string], undefined>;
|
|
174
|
-
del_assets: ActorMethod<[[] | [string]], undefined>;
|
|
175
|
-
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
176
|
-
del_custom_domain: ActorMethod<[string], undefined>;
|
|
177
|
-
del_doc: ActorMethod<[string, string, DelDoc], undefined>;
|
|
178
|
-
del_rule: ActorMethod<[RulesType, string, DelDoc], undefined>;
|
|
179
|
-
get_config: ActorMethod<[], Config>;
|
|
180
|
-
get_doc: ActorMethod<[string, string], [] | [Doc]>;
|
|
181
|
-
http_request: ActorMethod<[HttpRequest], HttpResponse>;
|
|
182
|
-
http_request_streaming_callback: ActorMethod<
|
|
183
|
-
[StreamingCallbackToken],
|
|
184
|
-
StreamingCallbackHttpResponse
|
|
185
|
-
>;
|
|
186
|
-
init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
|
|
187
|
-
list_assets: ActorMethod<[[] | [string], ListParams], ListResults>;
|
|
188
|
-
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
189
|
-
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
190
|
-
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
191
|
-
list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
|
|
192
|
-
set_config: ActorMethod<[Config], undefined>;
|
|
193
|
-
set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
|
|
194
|
-
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
195
|
-
set_doc: ActorMethod<[string, string, SetDoc], Doc>;
|
|
196
|
-
set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
|
|
197
|
-
upload_asset_chunk: ActorMethod<[Chunk], UploadChunk>;
|
|
198
|
-
version: ActorMethod<[], string>;
|
|
199
|
-
}
|