@junobuild/admin 1.0.0 → 2.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.
Files changed (63) 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/ic.api.d.ts +1 -1
  6. package/dist/types/api/mission-control.api.d.ts +4 -5
  7. package/dist/types/api/orbiter.api.d.ts +3 -4
  8. package/dist/types/api/satellite.api.d.ts +23 -24
  9. package/dist/types/constants/rules.constants.d.ts +9 -9
  10. package/dist/types/index.d.ts +0 -1
  11. package/dist/types/services/mission-control.controllers.services.d.ts +2 -3
  12. package/dist/types/services/mission-control.upgrade.services.d.ts +1 -1
  13. package/dist/types/services/mission-control.version.services.d.ts +1 -1
  14. package/dist/types/services/module.upgrade.services.d.ts +1 -1
  15. package/dist/types/services/orbiter.controllers.services.d.ts +2 -3
  16. package/dist/types/services/orbiter.memory.services.d.ts +2 -3
  17. package/dist/types/services/orbiter.upgrade.services.d.ts +1 -1
  18. package/dist/types/services/orbiter.version.services.d.ts +1 -1
  19. package/dist/types/services/package.services.d.ts +1 -1
  20. package/dist/types/services/satellite.assets.services.d.ts +1 -1
  21. package/dist/types/services/satellite.config.services.d.ts +1 -1
  22. package/dist/types/services/satellite.controllers.services.d.ts +4 -5
  23. package/dist/types/services/satellite.docs.services.d.ts +1 -1
  24. package/dist/types/services/satellite.domains.services.d.ts +1 -1
  25. package/dist/types/services/satellite.memory.services.d.ts +2 -3
  26. package/dist/types/services/satellite.rules.services.d.ts +1 -1
  27. package/dist/types/services/satellite.upgrade.services.d.ts +1 -1
  28. package/dist/types/services/satellite.version.services.d.ts +1 -1
  29. package/dist/types/types/upgrade.d.ts +1 -1
  30. package/dist/types/utils/config.utils.d.ts +7 -7
  31. package/dist/types/utils/controllers.utils.d.ts +2 -2
  32. package/dist/types/utils/idl.utils.d.ts +2 -2
  33. package/dist/types/utils/memory.utils.d.ts +3 -3
  34. package/dist/types/utils/rule.utils.d.ts +8 -8
  35. package/package.json +3 -2
  36. package/dist/declarations/mission_control/mission_control-deprecated-version.did.d.ts +0 -231
  37. package/dist/declarations/mission_control/mission_control-deprecated-version.factory.did.js +0 -247
  38. package/dist/declarations/mission_control/mission_control.did.d.ts +0 -241
  39. package/dist/declarations/mission_control/mission_control.factory.certified.did.js +0 -259
  40. package/dist/declarations/mission_control/mission_control.factory.did.js +0 -259
  41. package/dist/declarations/orbiter/orbiter-deprecated-version.did.d.ts +0 -229
  42. package/dist/declarations/orbiter/orbiter-deprecated-version.factory.did.js +0 -271
  43. package/dist/declarations/orbiter/orbiter.did.d.ts +0 -277
  44. package/dist/declarations/orbiter/orbiter.factory.certified.did.js +0 -304
  45. package/dist/declarations/orbiter/orbiter.factory.did.js +0 -320
  46. package/dist/declarations/orbiter/orbiter.factory.did.mjs +0 -320
  47. package/dist/declarations/satellite/satellite-deprecated-no-scope.did.d.ts +0 -183
  48. package/dist/declarations/satellite/satellite-deprecated-no-scope.factory.did.js +0 -194
  49. package/dist/declarations/satellite/satellite-deprecated-no-scope.factory.did.mjs +0 -192
  50. package/dist/declarations/satellite/satellite-deprecated-version.did.d.ts +0 -291
  51. package/dist/declarations/satellite/satellite-deprecated-version.factory.did.js +0 -319
  52. package/dist/declarations/satellite/satellite-deprecated.did.d.ts +0 -182
  53. package/dist/declarations/satellite/satellite-deprecated.factory.did.js +0 -191
  54. package/dist/declarations/satellite/satellite-deprecated.factory.did.mjs +0 -191
  55. package/dist/declarations/satellite/satellite.did.d.ts +0 -396
  56. package/dist/declarations/satellite/satellite.factory.certified.did.js +0 -419
  57. package/dist/declarations/satellite/satellite.factory.did.js +0 -419
  58. package/dist/declarations/satellite/satellite.factory.did.mjs +0 -419
  59. package/dist/types/api/_actor.api.d.ts +0 -34
  60. package/dist/types/api/_actor.factory.d.ts +0 -19
  61. package/dist/types/api/_agent.api.d.ts +0 -3
  62. package/dist/types/types/actor.d.ts +0 -74
  63. package/dist/types/utils/agent.utils.d.ts +0 -6
@@ -1,191 +0,0 @@
1
- export const idlFactory = ({IDL}) => {
2
- const CommitBatch = IDL.Record({
3
- batch_id: IDL.Nat,
4
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
5
- chunk_ids: IDL.Vec(IDL.Nat)
6
- });
7
- const DeleteControllersArgs = IDL.Record({
8
- controllers: IDL.Vec(IDL.Principal)
9
- });
10
- const Controller = IDL.Record({
11
- updated_at: IDL.Nat64,
12
- metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
13
- created_at: IDL.Nat64,
14
- expires_at: IDL.Opt(IDL.Nat64)
15
- });
16
- const DelDoc = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
17
- const StorageConfig = IDL.Record({
18
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))))
19
- });
20
- const Config = IDL.Record({storage: StorageConfig});
21
- const Doc = IDL.Record({
22
- updated_at: IDL.Nat64,
23
- owner: IDL.Principal,
24
- data: IDL.Vec(IDL.Nat8),
25
- created_at: IDL.Nat64
26
- });
27
- const HttpRequest = IDL.Record({
28
- url: IDL.Text,
29
- method: IDL.Text,
30
- body: IDL.Vec(IDL.Nat8),
31
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))
32
- });
33
- const StreamingCallbackToken = IDL.Record({
34
- token: IDL.Opt(IDL.Text),
35
- sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
36
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
37
- index: IDL.Nat64,
38
- encoding_type: IDL.Text,
39
- full_path: IDL.Text
40
- });
41
- const StreamingStrategy = IDL.Variant({
42
- Callback: IDL.Record({
43
- token: StreamingCallbackToken,
44
- callback: IDL.Func([], [], [])
45
- })
46
- });
47
- const HttpResponse = IDL.Record({
48
- body: IDL.Vec(IDL.Nat8),
49
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
50
- streaming_strategy: IDL.Opt(StreamingStrategy),
51
- status_code: IDL.Nat16
52
- });
53
- const StreamingCallbackHttpResponse = IDL.Record({
54
- token: IDL.Opt(StreamingCallbackToken),
55
- body: IDL.Vec(IDL.Nat8)
56
- });
57
- const InitAssetKey = IDL.Record({
58
- token: IDL.Opt(IDL.Text),
59
- collection: IDL.Text,
60
- name: IDL.Text,
61
- encoding_type: IDL.Opt(IDL.Text),
62
- full_path: IDL.Text
63
- });
64
- const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
65
- const ListOrderField = IDL.Variant({
66
- UpdatedAt: IDL.Null,
67
- Keys: IDL.Null,
68
- CreatedAt: IDL.Null
69
- });
70
- const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
71
- const ListPaginate = IDL.Record({
72
- start_after: IDL.Opt(IDL.Text),
73
- limit: IDL.Opt(IDL.Nat64)
74
- });
75
- const ListParams = IDL.Record({
76
- order: IDL.Opt(ListOrder),
77
- matcher: IDL.Opt(IDL.Text),
78
- paginate: IDL.Opt(ListPaginate)
79
- });
80
- const AssetKey = IDL.Record({
81
- token: IDL.Opt(IDL.Text),
82
- collection: IDL.Text,
83
- owner: IDL.Principal,
84
- name: IDL.Text,
85
- full_path: IDL.Text
86
- });
87
- const AssetEncodingNoContent = IDL.Record({
88
- modified: IDL.Nat64,
89
- sha256: IDL.Vec(IDL.Nat8),
90
- total_length: IDL.Nat
91
- });
92
- const AssetNoContent = IDL.Record({
93
- key: AssetKey,
94
- updated_at: IDL.Nat64,
95
- encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
96
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
97
- created_at: IDL.Nat64
98
- });
99
- const ListResults = IDL.Record({
100
- matches_length: IDL.Nat64,
101
- length: IDL.Nat64,
102
- items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent))
103
- });
104
- const CustomDomain = IDL.Record({
105
- updated_at: IDL.Nat64,
106
- created_at: IDL.Nat64,
107
- bn_id: IDL.Opt(IDL.Text)
108
- });
109
- const ListResults_1 = IDL.Record({
110
- matches_length: IDL.Nat64,
111
- length: IDL.Nat64,
112
- items: IDL.Vec(IDL.Tuple(IDL.Text, Doc))
113
- });
114
- const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
115
- const Permission = IDL.Variant({
116
- Controllers: IDL.Null,
117
- Private: IDL.Null,
118
- Public: IDL.Null,
119
- Managed: IDL.Null
120
- });
121
- const Rule = IDL.Record({
122
- updated_at: IDL.Nat64,
123
- max_size: IDL.Opt(IDL.Nat),
124
- read: Permission,
125
- created_at: IDL.Nat64,
126
- write: Permission
127
- });
128
- const SetController = IDL.Record({
129
- metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
130
- expires_at: IDL.Opt(IDL.Nat64)
131
- });
132
- const SetControllersArgs = IDL.Record({
133
- controller: SetController,
134
- controllers: IDL.Vec(IDL.Principal)
135
- });
136
- const SetDoc = IDL.Record({
137
- updated_at: IDL.Opt(IDL.Nat64),
138
- data: IDL.Vec(IDL.Nat8)
139
- });
140
- const SetRule = IDL.Record({
141
- updated_at: IDL.Opt(IDL.Nat64),
142
- max_size: IDL.Opt(IDL.Nat),
143
- read: Permission,
144
- write: Permission
145
- });
146
- const Chunk = IDL.Record({
147
- content: IDL.Vec(IDL.Nat8),
148
- batch_id: IDL.Nat
149
- });
150
- const UploadChunk = IDL.Record({chunk_id: IDL.Nat});
151
- return IDL.Service({
152
- commit_asset_upload: IDL.Func([CommitBatch], [], []),
153
- del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
154
- del_assets: IDL.Func([IDL.Opt(IDL.Text)], [], []),
155
- del_controllers: IDL.Func(
156
- [DeleteControllersArgs],
157
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
158
- []
159
- ),
160
- del_custom_domain: IDL.Func([IDL.Text], [], []),
161
- del_doc: IDL.Func([IDL.Text, IDL.Text, DelDoc], [], []),
162
- get_config: IDL.Func([], [Config], []),
163
- get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
164
- http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
165
- http_request_streaming_callback: IDL.Func(
166
- [StreamingCallbackToken],
167
- [StreamingCallbackHttpResponse],
168
- ['query']
169
- ),
170
- init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
171
- list_assets: IDL.Func([IDL.Opt(IDL.Text), ListParams], [ListResults], ['query']),
172
- list_controllers: IDL.Func([], [IDL.Vec(IDL.Principal)], ['query']),
173
- list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
174
- list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
175
- list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
176
- set_config: IDL.Func([Config], [], []),
177
- set_controllers: IDL.Func(
178
- [SetControllersArgs],
179
- [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))],
180
- []
181
- ),
182
- set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
183
- set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
184
- set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
185
- upload_asset_chunk: IDL.Func([Chunk], [UploadChunk], []),
186
- version: IDL.Func([], [IDL.Text], ['query'])
187
- });
188
- };
189
- export const init = ({IDL}) => {
190
- return [];
191
- };
@@ -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[];