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