@junobuild/core 0.0.10 → 0.0.12

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 (40) hide show
  1. package/dist/browser/index.js +3 -3
  2. package/dist/browser/index.js.map +2 -2
  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.did.d.ts +121 -125
  33. package/dist/declarations/satellite/satellite.factory.did.js +190 -190
  34. package/dist/declarations/satellite/satellite.factory.did.mjs +190 -190
  35. package/dist/node/index.mjs +9 -9
  36. package/dist/node/index.mjs.map +2 -2
  37. package/dist/types/providers/auth.providers.d.ts +1 -1
  38. package/dist/types/types/auth.types.d.ts +1 -1
  39. package/dist/types/types/list.types.d.ts +1 -1
  40. package/package.json +1 -1
@@ -1,194 +1,194 @@
1
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
- });
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
190
  };
191
191
  // @ts-ignore
192
- export const init = ({ IDL }) => {
193
- return [];
192
+ export const init = ({IDL}) => {
193
+ return [];
194
194
  };