@junobuild/admin 0.0.53 → 0.0.54-next-2024-08-24

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 (28) hide show
  1. package/dist/browser/index.js +7 -7
  2. package/dist/browser/index.js.map +3 -3
  3. package/dist/declarations/ic/ic.did.d.ts +48 -5
  4. package/dist/declarations/ic/ic.factory.did.js +53 -14
  5. package/dist/declarations/ic/ic.factory.did.mjs +53 -14
  6. package/dist/declarations/orbiter/orbiter.did.d.ts +60 -2
  7. package/dist/declarations/orbiter/orbiter.factory.did.js +71 -2
  8. package/dist/declarations/orbiter/orbiter.factory.did.mjs +71 -2
  9. package/dist/node/index.mjs +7 -7
  10. package/dist/node/index.mjs.map +3 -3
  11. package/package.json +7 -8
  12. package/declarations/ic/ic.did.d.ts +0 -301
  13. package/declarations/ic/ic.factory.did.js +0 -339
  14. package/declarations/ic/ic.factory.did.mjs +0 -339
  15. package/declarations/mission_control/mission_control.did.d.ts +0 -115
  16. package/declarations/mission_control/mission_control.factory.did.js +0 -147
  17. package/declarations/orbiter/orbiter.did.d.ts +0 -166
  18. package/declarations/orbiter/orbiter.factory.did.js +0 -197
  19. package/declarations/orbiter/orbiter.factory.did.mjs +0 -197
  20. package/declarations/satellite/satellite-deprecated-no-scope.did.d.ts +0 -183
  21. package/declarations/satellite/satellite-deprecated-no-scope.factory.did.js +0 -194
  22. package/declarations/satellite/satellite-deprecated-no-scope.factory.did.mjs +0 -192
  23. package/declarations/satellite/satellite-deprecated.did.d.ts +0 -182
  24. package/declarations/satellite/satellite-deprecated.factory.did.js +0 -191
  25. package/declarations/satellite/satellite-deprecated.factory.did.mjs +0 -191
  26. package/declarations/satellite/satellite.did.d.ts +0 -277
  27. package/declarations/satellite/satellite.factory.did.js +0 -305
  28. package/declarations/satellite/satellite.factory.did.mjs +0 -305
@@ -1,182 +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
- matcher: [] | [string];
92
- paginate: [] | [ListPaginate];
93
- }
94
- export interface ListResults {
95
- matches_length: bigint;
96
- length: bigint;
97
- items: Array<[string, AssetNoContent]>;
98
- }
99
- export interface ListResults_1 {
100
- matches_length: bigint;
101
- length: bigint;
102
- items: Array<[string, Doc]>;
103
- }
104
- export type Permission = {Controllers: null} | {Private: null} | {Public: null} | {Managed: null};
105
- export interface Rule {
106
- updated_at: bigint;
107
- max_size: [] | [bigint];
108
- read: Permission;
109
- created_at: bigint;
110
- write: Permission;
111
- }
112
- export type RulesType = {Db: null} | {Storage: null};
113
- export interface SetController {
114
- metadata: Array<[string, string]>;
115
- expires_at: [] | [bigint];
116
- }
117
- export interface SetControllersArgs {
118
- controller: SetController;
119
- controllers: Array<Principal>;
120
- }
121
- export interface SetDoc {
122
- updated_at: [] | [bigint];
123
- data: Uint8Array | number[];
124
- }
125
- export interface SetRule {
126
- updated_at: [] | [bigint];
127
- max_size: [] | [bigint];
128
- read: Permission;
129
- write: Permission;
130
- }
131
- export interface StorageConfig {
132
- headers: Array<[string, Array<[string, string]>]>;
133
- }
134
- export interface StreamingCallbackHttpResponse {
135
- token: [] | [StreamingCallbackToken];
136
- body: Uint8Array | number[];
137
- }
138
- export interface StreamingCallbackToken {
139
- token: [] | [string];
140
- sha256: [] | [Uint8Array | number[]];
141
- headers: Array<[string, string]>;
142
- index: bigint;
143
- encoding_type: string;
144
- full_path: string;
145
- }
146
- export type StreamingStrategy = {
147
- Callback: {
148
- token: StreamingCallbackToken;
149
- callback: [Principal, string];
150
- };
151
- };
152
- export interface UploadChunk {
153
- chunk_id: bigint;
154
- }
155
- export interface _SERVICE {
156
- commit_asset_upload: ActorMethod<[CommitBatch], undefined>;
157
- del_asset: ActorMethod<[string, string], undefined>;
158
- del_assets: ActorMethod<[[] | [string]], undefined>;
159
- del_controllers: ActorMethod<[DeleteControllersArgs], Array<[Principal, Controller]>>;
160
- del_custom_domain: ActorMethod<[string], undefined>;
161
- del_doc: ActorMethod<[string, string, DelDoc], undefined>;
162
- get_config: ActorMethod<[], Config>;
163
- get_doc: ActorMethod<[string, string], [] | [Doc]>;
164
- http_request: ActorMethod<[HttpRequest], HttpResponse>;
165
- http_request_streaming_callback: ActorMethod<
166
- [StreamingCallbackToken],
167
- StreamingCallbackHttpResponse
168
- >;
169
- init_asset_upload: ActorMethod<[InitAssetKey], InitUploadResult>;
170
- list_assets: ActorMethod<[[] | [string], ListParams], ListResults>;
171
- list_controllers: ActorMethod<[], Array<Principal>>;
172
- list_custom_domains: ActorMethod<[], Array<[string, CustomDomain]>>;
173
- list_docs: ActorMethod<[string, ListParams], ListResults_1>;
174
- list_rules: ActorMethod<[RulesType], Array<[string, Rule]>>;
175
- set_config: ActorMethod<[Config], undefined>;
176
- set_controllers: ActorMethod<[SetControllersArgs], Array<[Principal, Controller]>>;
177
- set_custom_domain: ActorMethod<[string, [] | [string]], undefined>;
178
- set_doc: ActorMethod<[string, string, SetDoc], Doc>;
179
- set_rule: ActorMethod<[RulesType, string, SetRule], undefined>;
180
- upload_asset_chunk: ActorMethod<[Chunk], UploadChunk>;
181
- version: ActorMethod<[], string>;
182
- }
@@ -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,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
- };