@junobuild/core-peer 1.0.3 → 1.1.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.
Files changed (53) hide show
  1. package/dist/browser/index.js +1 -1
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/node/index.mjs +1 -1
  4. package/dist/node/index.mjs.map +4 -4
  5. package/dist/types/api/actor.api.d.ts +1 -1
  6. package/dist/types/api/storage.api.d.ts +4 -4
  7. package/dist/types/services/storage.services.d.ts +3 -3
  8. package/dist/types/stores/actor.store.d.ts +1 -2
  9. package/dist/types/types/storage.types.d.ts +2 -2
  10. package/dist/types/utils/data.utils.d.ts +2 -2
  11. package/dist/types/utils/doc.utils.d.ts +4 -4
  12. package/dist/types/utils/list.utils.d.ts +2 -2
  13. package/package.json +6 -5
  14. package/dist/declarations/deprecated/console-0-0-14.did.d.ts +0 -267
  15. package/dist/declarations/deprecated/console-0-0-14.factory.did.js +0 -285
  16. package/dist/declarations/deprecated/console-0-0-8-patch1.did.d.ts +0 -75
  17. package/dist/declarations/deprecated/console-0-0-8-patch1.factory.did.js +0 -80
  18. package/dist/declarations/deprecated/mission_control-0-0-13.did.d.ts +0 -246
  19. package/dist/declarations/deprecated/mission_control-0-0-13.factory.did.js +0 -280
  20. package/dist/declarations/deprecated/mission_control-0-0-14.did.d.ts +0 -241
  21. package/dist/declarations/deprecated/mission_control-0-0-14.factory.did.js +0 -258
  22. package/dist/declarations/deprecated/mission_control-0-0-4.did.d.ts +0 -80
  23. package/dist/declarations/deprecated/mission_control-0-0-4.factory.did.js +0 -99
  24. package/dist/declarations/deprecated/observatory-0-0-9.did.d.ts +0 -70
  25. package/dist/declarations/deprecated/observatory-0-0-9.factory.did.js +0 -76
  26. package/dist/declarations/deprecated/orbiter-0-0-6.did.d.ts +0 -161
  27. package/dist/declarations/deprecated/orbiter-0-0-6.factory.did.js +0 -192
  28. package/dist/declarations/deprecated/orbiter-0-0-7.did.d.ts +0 -166
  29. package/dist/declarations/deprecated/orbiter-0-0-7.factory.did.js +0 -197
  30. package/dist/declarations/deprecated/orbiter-0-0-8.did.d.ts +0 -245
  31. package/dist/declarations/deprecated/orbiter-0-0-8.factory.did.js +0 -287
  32. package/dist/declarations/deprecated/orbiter-0-2-0.did.d.ts +0 -277
  33. package/dist/declarations/deprecated/orbiter-0-2-0.factory.did.js +0 -319
  34. package/dist/declarations/deprecated/satellite-0-0-16.did.d.ts +0 -240
  35. package/dist/declarations/deprecated/satellite-0-0-16.factory.did.js +0 -264
  36. package/dist/declarations/deprecated/satellite-0-0-17.did.d.ts +0 -254
  37. package/dist/declarations/deprecated/satellite-0-0-17.factory.did.js +0 -281
  38. package/dist/declarations/deprecated/satellite-0-0-21.did.d.ts +0 -299
  39. package/dist/declarations/deprecated/satellite-0-0-21.factory.did.js +0 -333
  40. package/dist/declarations/deprecated/satellite-0-0-22.did.d.ts +0 -290
  41. package/dist/declarations/deprecated/satellite-0-0-22.factory.did.js +0 -318
  42. package/dist/declarations/deprecated/satellite-0-0-8.did.d.ts +0 -183
  43. package/dist/declarations/deprecated/satellite-0-0-8.factory.did.js +0 -194
  44. package/dist/declarations/deprecated/satellite-0-0-9.did.d.ts +0 -199
  45. package/dist/declarations/deprecated/satellite-0-0-9.factory.did.js +0 -213
  46. package/dist/declarations/satellite/satellite.did.d.ts +0 -396
  47. package/dist/declarations/satellite/satellite.factory.certified.did.js +0 -419
  48. package/dist/declarations/satellite/satellite.factory.did.js +0 -419
  49. package/dist/declarations/satellite/satellite.factory.did.mjs +0 -419
  50. package/dist/declarations/sputnik/sputnik.did.d.ts +0 -396
  51. package/dist/declarations/sputnik/sputnik.factory.certified.did.js +0 -419
  52. package/dist/declarations/sputnik/sputnik.factory.did.js +0 -419
  53. package/dist/types/api/_actor.factory.d.ts +0 -5
@@ -1,213 +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({updated_at: IDL.Opt(IDL.Nat64)});
23
- const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
24
- const StorageConfig = IDL.Record({
25
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))))
26
- });
27
- const Config = IDL.Record({storage: StorageConfig});
28
- const Doc = IDL.Record({
29
- updated_at: IDL.Nat64,
30
- owner: IDL.Principal,
31
- data: IDL.Vec(IDL.Nat8),
32
- description: IDL.Opt(IDL.Text),
33
- created_at: IDL.Nat64
34
- });
35
- const HttpRequest = IDL.Record({
36
- url: IDL.Text,
37
- method: IDL.Text,
38
- body: IDL.Vec(IDL.Nat8),
39
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))
40
- });
41
- const StreamingCallbackToken = IDL.Record({
42
- token: IDL.Opt(IDL.Text),
43
- sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
44
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
45
- index: IDL.Nat64,
46
- encoding_type: IDL.Text,
47
- full_path: IDL.Text
48
- });
49
- const StreamingStrategy = IDL.Variant({
50
- Callback: IDL.Record({
51
- token: StreamingCallbackToken,
52
- callback: IDL.Func([], [], [])
53
- })
54
- });
55
- const HttpResponse = IDL.Record({
56
- body: IDL.Vec(IDL.Nat8),
57
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
58
- streaming_strategy: IDL.Opt(StreamingStrategy),
59
- status_code: IDL.Nat16
60
- });
61
- const StreamingCallbackHttpResponse = IDL.Record({
62
- token: IDL.Opt(StreamingCallbackToken),
63
- body: IDL.Vec(IDL.Nat8)
64
- });
65
- const InitAssetKey = IDL.Record({
66
- token: IDL.Opt(IDL.Text),
67
- collection: IDL.Text,
68
- name: IDL.Text,
69
- description: IDL.Opt(IDL.Text),
70
- encoding_type: IDL.Opt(IDL.Text),
71
- full_path: IDL.Text
72
- });
73
- const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
74
- const ListOrderField = IDL.Variant({
75
- UpdatedAt: IDL.Null,
76
- Keys: IDL.Null,
77
- CreatedAt: IDL.Null
78
- });
79
- const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
80
- const ListMatcher = IDL.Record({
81
- key: IDL.Opt(IDL.Text),
82
- description: IDL.Opt(IDL.Text)
83
- });
84
- const ListPaginate = IDL.Record({
85
- start_after: IDL.Opt(IDL.Text),
86
- limit: IDL.Opt(IDL.Nat64)
87
- });
88
- const ListParams = IDL.Record({
89
- order: IDL.Opt(ListOrder),
90
- owner: IDL.Opt(IDL.Principal),
91
- matcher: IDL.Opt(ListMatcher),
92
- paginate: IDL.Opt(ListPaginate)
93
- });
94
- const AssetKey = IDL.Record({
95
- token: IDL.Opt(IDL.Text),
96
- collection: IDL.Text,
97
- owner: IDL.Principal,
98
- name: IDL.Text,
99
- description: IDL.Opt(IDL.Text),
100
- full_path: IDL.Text
101
- });
102
- const AssetEncodingNoContent = IDL.Record({
103
- modified: IDL.Nat64,
104
- sha256: IDL.Vec(IDL.Nat8),
105
- total_length: IDL.Nat
106
- });
107
- const AssetNoContent = IDL.Record({
108
- key: AssetKey,
109
- updated_at: IDL.Nat64,
110
- encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
111
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
112
- created_at: IDL.Nat64
113
- });
114
- const ListResults = IDL.Record({
115
- matches_pages: IDL.Opt(IDL.Nat64),
116
- matches_length: IDL.Nat64,
117
- items_page: IDL.Opt(IDL.Nat64),
118
- items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
119
- items_length: IDL.Nat64
120
- });
121
- const CustomDomain = IDL.Record({
122
- updated_at: IDL.Nat64,
123
- created_at: IDL.Nat64,
124
- bn_id: IDL.Opt(IDL.Text)
125
- });
126
- const ListResults_1 = IDL.Record({
127
- matches_pages: IDL.Opt(IDL.Nat64),
128
- matches_length: IDL.Nat64,
129
- items_page: IDL.Opt(IDL.Nat64),
130
- items: IDL.Vec(IDL.Tuple(IDL.Text, Doc)),
131
- items_length: IDL.Nat64
132
- });
133
- const Permission = IDL.Variant({
134
- Controllers: IDL.Null,
135
- Private: IDL.Null,
136
- Public: IDL.Null,
137
- Managed: IDL.Null
138
- });
139
- const Rule = IDL.Record({
140
- updated_at: IDL.Nat64,
141
- max_size: IDL.Opt(IDL.Nat),
142
- read: Permission,
143
- created_at: IDL.Nat64,
144
- write: Permission
145
- });
146
- const SetController = IDL.Record({
147
- metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
148
- scope: ControllerScope,
149
- expires_at: IDL.Opt(IDL.Nat64)
150
- });
151
- const SetControllersArgs = IDL.Record({
152
- controller: SetController,
153
- controllers: IDL.Vec(IDL.Principal)
154
- });
155
- const SetDoc = IDL.Record({
156
- updated_at: IDL.Opt(IDL.Nat64),
157
- data: IDL.Vec(IDL.Nat8),
158
- description: IDL.Opt(IDL.Text)
159
- });
160
- const SetRule = IDL.Record({
161
- updated_at: IDL.Opt(IDL.Nat64),
162
- max_size: IDL.Opt(IDL.Nat),
163
- read: Permission,
164
- write: Permission
165
- });
166
- const Chunk = IDL.Record({
167
- content: IDL.Vec(IDL.Nat8),
168
- batch_id: IDL.Nat
169
- });
170
- const UploadChunk = IDL.Record({chunk_id: IDL.Nat});
171
- return IDL.Service({
172
- commit_asset_upload: IDL.Func([CommitBatch], [], []),
173
- del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
174
- del_assets: IDL.Func([IDL.Opt(IDL.Text)], [], []),
175
- del_controllers: IDL.Func(
176
- [DeleteControllersArgs],
177
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
178
- []
179
- ),
180
- del_custom_domain: IDL.Func([IDL.Text], [], []),
181
- del_doc: IDL.Func([IDL.Text, IDL.Text, DelDoc], [], []),
182
- del_rule: IDL.Func([RulesType, IDL.Text, DelDoc], [], []),
183
- get_config: IDL.Func([], [Config], []),
184
- get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
185
- http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
186
- http_request_streaming_callback: IDL.Func(
187
- [StreamingCallbackToken],
188
- [StreamingCallbackHttpResponse],
189
- ['query']
190
- ),
191
- init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
192
- list_assets: IDL.Func([IDL.Opt(IDL.Text), ListParams], [ListResults], ['query']),
193
- list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
194
- list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
195
- list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
196
- list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
197
- set_config: IDL.Func([Config], [], []),
198
- set_controllers: IDL.Func(
199
- [SetControllersArgs],
200
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
201
- []
202
- ),
203
- set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
204
- set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
205
- set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
206
- upload_asset_chunk: IDL.Func([Chunk], [UploadChunk], []),
207
- version: IDL.Func([], [IDL.Text], ['query'])
208
- });
209
- };
210
- // @ts-ignore
211
- export const init = ({IDL}) => {
212
- return [];
213
- };
@@ -1,396 +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 AssetsUpgradeOptions {
27
- clear_existing_assets: [] | [boolean];
28
- }
29
- export interface AuthenticationConfig {
30
- updated_at: [] | [bigint];
31
- created_at: [] | [bigint];
32
- version: [] | [bigint];
33
- internet_identity: [] | [AuthenticationConfigInternetIdentity];
34
- rules: [] | [AuthenticationRules];
35
- }
36
- export interface AuthenticationConfigInternetIdentity {
37
- derivation_origin: [] | [string];
38
- external_alternative_origins: [] | [Array<string>];
39
- }
40
- export interface AuthenticationRules {
41
- allowed_callers: Array<Principal>;
42
- }
43
- export type CollectionType = {Db: null} | {Storage: null};
44
- export interface CommitBatch {
45
- batch_id: bigint;
46
- headers: Array<[string, string]>;
47
- chunk_ids: Array<bigint>;
48
- }
49
- export interface CommitProposal {
50
- sha256: Uint8Array | number[];
51
- proposal_id: bigint;
52
- }
53
- export interface Config {
54
- db: [] | [DbConfig];
55
- authentication: [] | [AuthenticationConfig];
56
- storage: StorageConfig;
57
- }
58
- export interface ConfigMaxMemorySize {
59
- stable: [] | [bigint];
60
- heap: [] | [bigint];
61
- }
62
- export interface Controller {
63
- updated_at: bigint;
64
- metadata: Array<[string, string]>;
65
- created_at: bigint;
66
- scope: ControllerScope;
67
- expires_at: [] | [bigint];
68
- }
69
- export type ControllerScope = {Write: null} | {Admin: null} | {Submit: null};
70
- export interface CustomDomain {
71
- updated_at: bigint;
72
- created_at: bigint;
73
- version: [] | [bigint];
74
- bn_id: [] | [string];
75
- }
76
- export interface DbConfig {
77
- updated_at: [] | [bigint];
78
- created_at: [] | [bigint];
79
- version: [] | [bigint];
80
- max_memory_size: [] | [ConfigMaxMemorySize];
81
- }
82
- export interface DelDoc {
83
- version: [] | [bigint];
84
- }
85
- export interface DelRule {
86
- version: [] | [bigint];
87
- }
88
- export interface DeleteControllersArgs {
89
- controllers: Array<Principal>;
90
- }
91
- export interface DeleteProposalAssets {
92
- proposal_ids: Array<bigint>;
93
- }
94
- export interface DepositCyclesArgs {
95
- cycles: bigint;
96
- destination_id: Principal;
97
- }
98
- export interface Doc {
99
- updated_at: bigint;
100
- owner: Principal;
101
- data: Uint8Array | number[];
102
- description: [] | [string];
103
- created_at: bigint;
104
- version: [] | [bigint];
105
- }
106
- export interface HttpRequest {
107
- url: string;
108
- method: string;
109
- body: Uint8Array | number[];
110
- headers: Array<[string, string]>;
111
- certificate_version: [] | [number];
112
- }
113
- export interface HttpResponse {
114
- body: Uint8Array | number[];
115
- headers: Array<[string, string]>;
116
- streaming_strategy: [] | [StreamingStrategy];
117
- status_code: number;
118
- }
119
- export interface InitAssetKey {
120
- token: [] | [string];
121
- collection: string;
122
- name: string;
123
- description: [] | [string];
124
- encoding_type: [] | [string];
125
- full_path: string;
126
- }
127
- export interface InitUploadResult {
128
- batch_id: bigint;
129
- }
130
- export interface ListMatcher {
131
- key: [] | [string];
132
- updated_at: [] | [TimestampMatcher];
133
- description: [] | [string];
134
- created_at: [] | [TimestampMatcher];
135
- }
136
- export interface ListOrder {
137
- field: ListOrderField;
138
- desc: boolean;
139
- }
140
- export type ListOrderField = {UpdatedAt: null} | {Keys: null} | {CreatedAt: null};
141
- export interface ListPaginate {
142
- start_after: [] | [string];
143
- limit: [] | [bigint];
144
- }
145
- export interface ListParams {
146
- order: [] | [ListOrder];
147
- owner: [] | [Principal];
148
- matcher: [] | [ListMatcher];
149
- paginate: [] | [ListPaginate];
150
- }
151
- export interface ListProposalResults {
152
- matches_length: bigint;
153
- items: Array<[ProposalKey, Proposal]>;
154
- items_length: bigint;
155
- }
156
- export interface ListProposalsOrder {
157
- desc: boolean;
158
- }
159
- export interface ListProposalsPaginate {
160
- start_after: [] | [bigint];
161
- limit: [] | [bigint];
162
- }
163
- export interface ListProposalsParams {
164
- order: [] | [ListProposalsOrder];
165
- paginate: [] | [ListProposalsPaginate];
166
- }
167
- export interface ListResults {
168
- matches_pages: [] | [bigint];
169
- matches_length: bigint;
170
- items_page: [] | [bigint];
171
- items: Array<[string, AssetNoContent]>;
172
- items_length: bigint;
173
- }
174
- export interface ListResults_1 {
175
- matches_pages: [] | [bigint];
176
- matches_length: bigint;
177
- items_page: [] | [bigint];
178
- items: Array<[string, Doc]>;
179
- items_length: bigint;
180
- }
181
- export interface ListRulesMatcher {
182
- include_system: boolean;
183
- }
184
- export interface ListRulesParams {
185
- matcher: [] | [ListRulesMatcher];
186
- }
187
- export interface ListRulesResults {
188
- matches_length: bigint;
189
- items: Array<[string, Rule]>;
190
- items_length: bigint;
191
- }
192
- export type Memory = {Heap: null} | {Stable: null};
193
- export interface MemorySize {
194
- stable: bigint;
195
- heap: bigint;
196
- }
197
- export type Permission = {Controllers: null} | {Private: null} | {Public: null} | {Managed: null};
198
- export interface Proposal {
199
- status: ProposalStatus;
200
- updated_at: bigint;
201
- sha256: [] | [Uint8Array | number[]];
202
- executed_at: [] | [bigint];
203
- owner: Principal;
204
- created_at: bigint;
205
- version: [] | [bigint];
206
- proposal_type: ProposalType;
207
- }
208
- export interface ProposalKey {
209
- proposal_id: bigint;
210
- }
211
- export type ProposalStatus =
212
- | {Initialized: null}
213
- | {Failed: null}
214
- | {Open: null}
215
- | {Rejected: null}
216
- | {Executed: null}
217
- | {Accepted: null};
218
- export type ProposalType =
219
- | {AssetsUpgrade: AssetsUpgradeOptions}
220
- | {SegmentsDeployment: SegmentsDeploymentOptions};
221
- export interface RateConfig {
222
- max_tokens: bigint;
223
- time_per_token_ns: bigint;
224
- }
225
- export interface Rule {
226
- max_capacity: [] | [number];
227
- memory: [] | [Memory];
228
- updated_at: bigint;
229
- max_size: [] | [bigint];
230
- read: Permission;
231
- created_at: bigint;
232
- version: [] | [bigint];
233
- mutable_permissions: [] | [boolean];
234
- rate_config: [] | [RateConfig];
235
- write: Permission;
236
- max_changes_per_user: [] | [number];
237
- }
238
- export interface SegmentsDeploymentOptions {
239
- orbiter: [] | [string];
240
- mission_control_version: [] | [string];
241
- satellite_version: [] | [string];
242
- }
243
- export interface SetAuthenticationConfig {
244
- version: [] | [bigint];
245
- internet_identity: [] | [AuthenticationConfigInternetIdentity];
246
- rules: [] | [AuthenticationRules];
247
- }
248
- export interface SetController {
249
- metadata: Array<[string, string]>;
250
- scope: ControllerScope;
251
- expires_at: [] | [bigint];
252
- }
253
- export interface SetControllersArgs {
254
- controller: SetController;
255
- controllers: Array<Principal>;
256
- }
257
- export interface SetDbConfig {
258
- version: [] | [bigint];
259
- max_memory_size: [] | [ConfigMaxMemorySize];
260
- }
261
- export interface SetDoc {
262
- data: Uint8Array | number[];
263
- description: [] | [string];
264
- version: [] | [bigint];
265
- }
266
- export interface SetRule {
267
- max_capacity: [] | [number];
268
- memory: [] | [Memory];
269
- max_size: [] | [bigint];
270
- read: Permission;
271
- version: [] | [bigint];
272
- mutable_permissions: [] | [boolean];
273
- rate_config: [] | [RateConfig];
274
- write: Permission;
275
- max_changes_per_user: [] | [number];
276
- }
277
- export interface SetStorageConfig {
278
- iframe: [] | [StorageConfigIFrame];
279
- rewrites: Array<[string, string]>;
280
- headers: Array<[string, Array<[string, string]>]>;
281
- version: [] | [bigint];
282
- max_memory_size: [] | [ConfigMaxMemorySize];
283
- raw_access: [] | [StorageConfigRawAccess];
284
- redirects: [] | [Array<[string, StorageConfigRedirect]>];
285
- }
286
- export interface StorageConfig {
287
- iframe: [] | [StorageConfigIFrame];
288
- updated_at: [] | [bigint];
289
- rewrites: Array<[string, string]>;
290
- headers: Array<[string, Array<[string, string]>]>;
291
- created_at: [] | [bigint];
292
- version: [] | [bigint];
293
- max_memory_size: [] | [ConfigMaxMemorySize];
294
- raw_access: [] | [StorageConfigRawAccess];
295
- redirects: [] | [Array<[string, StorageConfigRedirect]>];
296
- }
297
- export type StorageConfigIFrame = {Deny: null} | {AllowAny: null} | {SameOrigin: null};
298
- export type StorageConfigRawAccess = {Deny: null} | {Allow: null};
299
- export interface StorageConfigRedirect {
300
- status_code: number;
301
- location: string;
302
- }
303
- export interface StreamingCallbackHttpResponse {
304
- token: [] | [StreamingCallbackToken];
305
- body: Uint8Array | number[];
306
- }
307
- export interface StreamingCallbackToken {
308
- memory: Memory;
309
- token: [] | [string];
310
- sha256: [] | [Uint8Array | number[]];
311
- headers: Array<[string, string]>;
312
- index: bigint;
313
- encoding_type: string;
314
- full_path: string;
315
- }
316
- export type StreamingStrategy = {
317
- Callback: {
318
- token: StreamingCallbackToken;
319
- callback: [Principal, string];
320
- };
321
- };
322
- export type TimestampMatcher =
323
- | {Equal: bigint}
324
- | {Between: [bigint, bigint]}
325
- | {GreaterThan: bigint}
326
- | {LessThan: bigint};
327
- export interface UploadChunk {
328
- content: Uint8Array | number[];
329
- batch_id: bigint;
330
- order_id: [] | [bigint];
331
- }
332
- export interface UploadChunkResult {
333
- chunk_id: bigint;
334
- }
335
- export interface _SERVICE {
336
- commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
337
- commit_proposal: ActorMethod<[CommitProposal], null>;
338
- commit_proposal_asset_upload: ActorMethod<[CommitBatch], undefined>;
339
- count_assets: ActorMethod<[string, ListParams], bigint>;
340
- count_collection_assets: ActorMethod<[string], bigint>;
341
- count_collection_docs: ActorMethod<[string], bigint>;
342
- count_docs: ActorMethod<[string, ListParams], bigint>;
343
- count_proposals: ActorMethod<[], bigint>;
344
- del_asset: ActorMethod<[string, string], undefined>;
345
- del_assets: ActorMethod<[string], undefined>;
346
- del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
347
- del_custom_domain: ActorMethod<[string], undefined>;
348
- del_doc: ActorMethod<[string, string, DelDoc], undefined>;
349
- del_docs: ActorMethod<[string], undefined>;
350
- del_filtered_assets: ActorMethod<[string, ListParams], undefined>;
351
- del_filtered_docs: ActorMethod<[string, ListParams], undefined>;
352
- del_many_assets: ActorMethod<[Array<[string, string]>], undefined>;
353
- del_many_docs: ActorMethod<[Array<[string, string, DelDoc]>], undefined>;
354
- del_rule: ActorMethod<[CollectionType, string, DelRule], undefined>;
355
- delete_proposal_assets: ActorMethod<[DeleteProposalAssets], undefined>;
356
- deposit_cycles: ActorMethod<[DepositCyclesArgs], undefined>;
357
- get_asset: ActorMethod<[string, string], [] | [AssetNoContent]>;
358
- get_auth_config: ActorMethod<[], [] | [AuthenticationConfig]>;
359
- get_config: ActorMethod<[], Config>;
360
- get_db_config: ActorMethod<[], [] | [DbConfig]>;
361
- get_doc: ActorMethod<[string, string], [] | [Doc]>;
362
- get_many_assets: ActorMethod<[Array<[string, string]>], Array<[string, [] | [AssetNoContent]]>>;
363
- get_many_docs: ActorMethod<[Array<[string, string]>], Array<[string, [] | [Doc]]>>;
364
- get_proposal: ActorMethod<[bigint], [] | [Proposal]>;
365
- get_rule: ActorMethod<[CollectionType, string], [] | [Rule]>;
366
- get_storage_config: ActorMethod<[], StorageConfig>;
367
- http_request: ActorMethod<[HttpRequest], HttpResponse>;
368
- http_request_streaming_callback: ActorMethod<
369
- [StreamingCallbackToken],
370
- StreamingCallbackHttpResponse
371
- >;
372
- init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
373
- init_proposal: ActorMethod<[ProposalType], [bigint, Proposal]>;
374
- init_proposal_asset_upload: ActorMethod<[InitAssetKey, bigint], InitUploadResult>;
375
- list_assets: ActorMethod<[string, ListParams], ListResults>;
376
- list_controllers: ActorMethod<[], Array<[Principal, Controller]>>;
377
- list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
378
- list_docs: ActorMethod<[string, ListParams], ListResults_1>;
379
- list_proposals: ActorMethod<[ListProposalsParams], ListProposalResults>;
380
- list_rules: ActorMethod<[CollectionType, ListRulesParams], ListRulesResults>;
381
- memory_size: ActorMethod<[], MemorySize>;
382
- reject_proposal: ActorMethod<[CommitProposal], null>;
383
- set_auth_config: ActorMethod<[SetAuthenticationConfig], AuthenticationConfig>;
384
- set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
385
- set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
386
- set_db_config: ActorMethod<[SetDbConfig], DbConfig>;
387
- set_doc: ActorMethod<[string, string, SetDoc], Doc>;
388
- set_many_docs: ActorMethod<[Array<[string, string, SetDoc]>], Array<[string, Doc]>>;
389
- set_rule: ActorMethod<[CollectionType, string, SetRule], Rule>;
390
- set_storage_config: ActorMethod<[SetStorageConfig], StorageConfig>;
391
- submit_proposal: ActorMethod<[bigint], [bigint, Proposal]>;
392
- upload_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
393
- upload_proposal_asset_chunk: ActorMethod<[UploadChunk], UploadChunkResult>;
394
- }
395
- export declare const idlFactory: IDL.InterfaceFactory;
396
- export declare const init: (args: {IDL: typeof IDL}) => IDL.Type[];