@junobuild/admin 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +14 -14
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/cmc/cmc.did.d.ts +30 -30
- package/dist/declarations/cmc/cmc.factory.did.js +63 -63
- package/dist/declarations/cmc/index.d.ts +18 -18
- package/dist/declarations/cmc/index.js +22 -22
- package/dist/declarations/console/console.did.d.ts +37 -37
- package/dist/declarations/console/console.factory.did.js +60 -60
- package/dist/declarations/console/console.factory.did.mjs +60 -60
- package/dist/declarations/console/index.d.ts +18 -18
- package/dist/declarations/console/index.js +22 -22
- package/dist/declarations/frontend/frontend.did.d.ts +136 -136
- package/dist/declarations/frontend/frontend.factory.did.js +206 -206
- package/dist/declarations/frontend/index.d.ts +18 -18
- package/dist/declarations/frontend/index.js +22 -22
- package/dist/declarations/ic/ic.did.d.ts +63 -63
- package/dist/declarations/ic/ic.factory.did.js +126 -126
- package/dist/declarations/internet_identity/index.d.ts +18 -18
- package/dist/declarations/internet_identity/index.js +22 -22
- package/dist/declarations/internet_identity/internet_identity.did.d.ts +136 -136
- package/dist/declarations/internet_identity/internet_identity.factory.did.js +231 -231
- package/dist/declarations/ledger/index.d.ts +18 -18
- package/dist/declarations/ledger/index.js +22 -22
- package/dist/declarations/ledger/ledger.did.d.ts +64 -64
- package/dist/declarations/ledger/ledger.factory.did.js +96 -96
- package/dist/declarations/mission_control/index.d.ts +18 -18
- package/dist/declarations/mission_control/index.js +22 -22
- package/dist/declarations/mission_control/mission_control.did.d.ts +30 -30
- package/dist/declarations/mission_control/mission_control.factory.did.js +48 -48
- package/dist/declarations/satellite/index.d.ts +18 -18
- package/dist/declarations/satellite/index.js +22 -22
- package/dist/declarations/satellite/satellite-deprecated.did.d.ts +186 -0
- package/dist/declarations/satellite/satellite-deprecated.factory.did.js +191 -0
- package/dist/declarations/satellite/satellite-deprecated.factory.did.mjs +191 -0
- package/dist/declarations/satellite/satellite.did.d.ts +124 -120
- package/dist/declarations/satellite/satellite.factory.did.js +189 -189
- package/dist/declarations/satellite/satellite.factory.did.mjs +189 -189
- package/dist/node/index.mjs +23 -23
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/api/actor.api.d.ts +2 -0
- package/dist/types/api/satellite.api.d.ts +3 -0
- package/dist/types/services/satellite.services.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,191 +1,191 @@
|
|
|
1
|
-
export const idlFactory = ({IDL}) => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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.Tuple(IDL.Principal, Controller))], ['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
188
|
};
|
|
189
|
-
export const init = ({IDL}) => {
|
|
190
|
-
|
|
189
|
+
export const init = ({ IDL }) => {
|
|
190
|
+
return [];
|
|
191
191
|
};
|