@junobuild/admin 0.0.14 → 0.0.16

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