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