@junobuild/admin 0.0.17 → 0.0.19
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/declarations/satellite/satellite.did.d.ts +8 -7
- package/declarations/satellite/satellite.factory.did.js +7 -6
- package/declarations/satellite/satellite.factory.did.mjs +7 -6
- package/dist/browser/canisterStatus-MAYNIE3Q.js +2 -0
- package/dist/browser/chunk-ZTILA2YH.js +35 -0
- package/dist/browser/{chunk-UAGXZWTT.js.map → chunk-ZTILA2YH.js.map} +1 -1
- package/dist/browser/index.js +3 -3
- package/dist/browser/index.js.map +3 -3
- package/dist/declarations/satellite/satellite.did.d.ts +8 -7
- package/dist/declarations/satellite/satellite.factory.did.js +7 -6
- package/dist/declarations/satellite/satellite.factory.did.mjs +7 -6
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +3 -3
- package/package.json +4 -4
- package/dist/browser/canisterStatus-53J5CMIV.js +0 -2
- package/dist/browser/chunk-UAGXZWTT.js +0 -35
- /package/dist/browser/{canisterStatus-53J5CMIV.js.map → canisterStatus-MAYNIE3Q.js.map} +0 -0
|
@@ -21,10 +21,6 @@ export interface AssetNoContent {
|
|
|
21
21
|
headers: Array<[string, string]>;
|
|
22
22
|
created_at: bigint;
|
|
23
23
|
}
|
|
24
|
-
export interface Chunk {
|
|
25
|
-
content: Uint8Array | number[];
|
|
26
|
-
batch_id: bigint;
|
|
27
|
-
}
|
|
28
24
|
export interface CommitBatch {
|
|
29
25
|
batch_id: bigint;
|
|
30
26
|
headers: Array<[string, string]>;
|
|
@@ -166,12 +162,17 @@ export type StreamingStrategy = {
|
|
|
166
162
|
};
|
|
167
163
|
};
|
|
168
164
|
export interface UploadChunk {
|
|
165
|
+
content: Uint8Array | number[];
|
|
166
|
+
batch_id: bigint;
|
|
167
|
+
order_id: [] | [bigint];
|
|
168
|
+
}
|
|
169
|
+
export interface UploadChunkResult {
|
|
169
170
|
chunk_id: bigint;
|
|
170
171
|
}
|
|
171
172
|
export interface _SERVICE {
|
|
172
173
|
commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
|
|
173
174
|
del_asset: ActorMethod<[string, string], undefined>;
|
|
174
|
-
del_assets: ActorMethod<[
|
|
175
|
+
del_assets: ActorMethod<[string], undefined>;
|
|
175
176
|
del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
|
|
176
177
|
del_custom_domain: ActorMethod<[string], undefined>;
|
|
177
178
|
del_doc: ActorMethod<[string, string, DelDoc], undefined>;
|
|
@@ -184,7 +185,7 @@ export interface _SERVICE {
|
|
|
184
185
|
StreamingCallbackHttpResponse
|
|
185
186
|
>;
|
|
186
187
|
init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
|
|
187
|
-
list_assets: ActorMethod<[
|
|
188
|
+
list_assets: ActorMethod<[string, ListParams], ListResults>;
|
|
188
189
|
list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
|
|
189
190
|
list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
|
|
190
191
|
list_docs: ActorMethod<[string, ListParams], ListResults_1>;
|
|
@@ -194,6 +195,6 @@ export interface _SERVICE {
|
|
|
194
195
|
set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
|
|
195
196
|
set_doc: ActorMethod<[string, string, SetDoc], Doc>;
|
|
196
197
|
set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
|
|
197
|
-
upload_asset_chunk: ActorMethod<[
|
|
198
|
+
upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
|
|
198
199
|
version: ActorMethod<[], string>;
|
|
199
200
|
}
|
|
@@ -163,15 +163,16 @@ export const idlFactory = ({IDL}) => {
|
|
|
163
163
|
read: Permission,
|
|
164
164
|
write: Permission
|
|
165
165
|
});
|
|
166
|
-
const
|
|
166
|
+
const UploadChunk = IDL.Record({
|
|
167
167
|
content: IDL.Vec(IDL.Nat8),
|
|
168
|
-
batch_id: IDL.Nat
|
|
168
|
+
batch_id: IDL.Nat,
|
|
169
|
+
order_id: IDL.Opt(IDL.Nat)
|
|
169
170
|
});
|
|
170
|
-
const
|
|
171
|
+
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
|
|
171
172
|
return IDL.Service({
|
|
172
173
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
173
174
|
del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
|
|
174
|
-
del_assets: IDL.Func([IDL.
|
|
175
|
+
del_assets: IDL.Func([IDL.Text], [], []),
|
|
175
176
|
del_controllers: IDL.Func(
|
|
176
177
|
[DeleteControllersArgs],
|
|
177
178
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
@@ -189,7 +190,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
189
190
|
['query']
|
|
190
191
|
),
|
|
191
192
|
init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
|
|
192
|
-
list_assets: IDL.Func([IDL.
|
|
193
|
+
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
193
194
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
194
195
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
195
196
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
@@ -203,7 +204,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
203
204
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
204
205
|
set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
|
|
205
206
|
set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
|
|
206
|
-
upload_asset_chunk: IDL.Func([
|
|
207
|
+
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
207
208
|
version: IDL.Func([], [IDL.Text], ['query'])
|
|
208
209
|
});
|
|
209
210
|
};
|
|
@@ -163,15 +163,16 @@ export const idlFactory = ({IDL}) => {
|
|
|
163
163
|
read: Permission,
|
|
164
164
|
write: Permission
|
|
165
165
|
});
|
|
166
|
-
const
|
|
166
|
+
const UploadChunk = IDL.Record({
|
|
167
167
|
content: IDL.Vec(IDL.Nat8),
|
|
168
|
-
batch_id: IDL.Nat
|
|
168
|
+
batch_id: IDL.Nat,
|
|
169
|
+
order_id: IDL.Opt(IDL.Nat)
|
|
169
170
|
});
|
|
170
|
-
const
|
|
171
|
+
const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
|
|
171
172
|
return IDL.Service({
|
|
172
173
|
commit_asset_upload: IDL.Func([CommitBatch], [], []),
|
|
173
174
|
del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
|
|
174
|
-
del_assets: IDL.Func([IDL.
|
|
175
|
+
del_assets: IDL.Func([IDL.Text], [], []),
|
|
175
176
|
del_controllers: IDL.Func(
|
|
176
177
|
[DeleteControllersArgs],
|
|
177
178
|
[IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
|
|
@@ -189,7 +190,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
189
190
|
['query']
|
|
190
191
|
),
|
|
191
192
|
init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
|
|
192
|
-
list_assets: IDL.Func([IDL.
|
|
193
|
+
list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
|
|
193
194
|
list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
|
|
194
195
|
list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
|
|
195
196
|
list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
|
|
@@ -203,7 +204,7 @@ export const idlFactory = ({IDL}) => {
|
|
|
203
204
|
set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
|
|
204
205
|
set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
|
|
205
206
|
set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
|
|
206
|
-
upload_asset_chunk: IDL.Func([
|
|
207
|
+
upload_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], []),
|
|
207
208
|
version: IDL.Func([], [IDL.Text], ['query'])
|
|
208
209
|
});
|
|
209
210
|
};
|