@junobuild/admin 0.0.3 → 0.0.5

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 (57) hide show
  1. package/dist/browser/canisterStatus-D52DQGXX.js +2 -0
  2. package/dist/browser/chunk-CAKYEEJ6.js +35 -0
  3. package/dist/browser/chunk-CAKYEEJ6.js.map +7 -0
  4. package/dist/browser/index.js +32 -0
  5. package/dist/browser/index.js.map +7 -0
  6. package/dist/declarations/cmc/cmc.did +122 -0
  7. package/dist/declarations/cmc/cmc.did.d.ts +48 -0
  8. package/dist/declarations/cmc/cmc.factory.did.js +65 -0
  9. package/dist/declarations/cmc/index.d.ts +45 -0
  10. package/dist/declarations/cmc/index.js +32 -0
  11. package/dist/declarations/console/console.did.d.ts +47 -0
  12. package/dist/declarations/console/console.factory.did.js +49 -0
  13. package/dist/declarations/console/console.factory.did.mjs +49 -0
  14. package/dist/declarations/console/index.d.ts +45 -0
  15. package/dist/declarations/console/index.js +32 -0
  16. package/dist/declarations/frontend/frontend.did +188 -0
  17. package/dist/declarations/frontend/frontend.did.d.ts +172 -0
  18. package/dist/declarations/frontend/frontend.factory.did.js +208 -0
  19. package/dist/declarations/frontend/index.d.ts +45 -0
  20. package/dist/declarations/frontend/index.js +32 -0
  21. package/dist/declarations/ic/ic.did +82 -0
  22. package/dist/declarations/ic/ic.did.d.ts +77 -0
  23. package/dist/declarations/ic/ic.factory.did.js +128 -0
  24. package/dist/declarations/internet_identity/index.d.ts +45 -0
  25. package/dist/declarations/internet_identity/index.js +32 -0
  26. package/dist/declarations/internet_identity/internet_identity.did +271 -0
  27. package/dist/declarations/internet_identity/internet_identity.did.d.ts +161 -0
  28. package/dist/declarations/internet_identity/internet_identity.factory.did.js +187 -0
  29. package/dist/declarations/ledger/index.d.ts +45 -0
  30. package/dist/declarations/ledger/index.js +32 -0
  31. package/dist/declarations/ledger/ledger.did +249 -0
  32. package/dist/declarations/ledger/ledger.did.d.ts +100 -0
  33. package/dist/declarations/ledger/ledger.factory.did.js +98 -0
  34. package/dist/declarations/mission_control/index.d.ts +45 -0
  35. package/dist/declarations/mission_control/index.js +32 -0
  36. package/dist/declarations/mission_control/mission_control.did.d.ts +24 -0
  37. package/dist/declarations/mission_control/mission_control.factory.did.js +28 -0
  38. package/dist/declarations/satellite/index.d.ts +45 -0
  39. package/dist/declarations/satellite/index.js +32 -0
  40. package/dist/declarations/satellite/satellite.did.d.ts +168 -0
  41. package/dist/declarations/satellite/satellite.factory.did.js +169 -0
  42. package/dist/declarations/satellite/satellite.factory.did.mjs +169 -0
  43. package/dist/node/index.mjs +72 -0
  44. package/dist/node/index.mjs.map +7 -0
  45. package/dist/types/api/actor.api.d.ts +4 -4
  46. package/dist/types/api/satellite.api.d.ts +1 -1
  47. package/dist/types/types/ic.types.d.ts +1 -1
  48. package/package.json +12 -5
  49. package/dist/cjs/index.cjs.js +0 -70
  50. package/dist/cjs/index.cjs.js.map +0 -7
  51. package/dist/esm/canisterStatus-XJAXQVDF.js +0 -2
  52. package/dist/esm/chunk-RNCSYUTB.js +0 -63
  53. package/dist/esm/chunk-RNCSYUTB.js.map +0 -7
  54. package/dist/esm/index.js +0 -2
  55. package/dist/esm/index.js.map +0 -7
  56. package/dist/types/utils/did.utils.d.ts +0 -4
  57. /package/dist/{esm/canisterStatus-XJAXQVDF.js.map → browser/canisterStatus-D52DQGXX.js.map} +0 -0
@@ -0,0 +1,169 @@
1
+ export const idlFactory = ({IDL}) => {
2
+ const ControllersArgs = IDL.Record({
3
+ controllers: IDL.Vec(IDL.Principal)
4
+ });
5
+ const CommitBatch = IDL.Record({
6
+ batch_id: IDL.Nat,
7
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
8
+ chunk_ids: IDL.Vec(IDL.Nat)
9
+ });
10
+ const DelDoc = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
11
+ const StorageConfig = IDL.Record({
12
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))))
13
+ });
14
+ const Config = IDL.Record({storage: StorageConfig});
15
+ const Doc = IDL.Record({
16
+ updated_at: IDL.Nat64,
17
+ owner: IDL.Principal,
18
+ data: IDL.Vec(IDL.Nat8),
19
+ created_at: IDL.Nat64
20
+ });
21
+ const HttpRequest = IDL.Record({
22
+ url: IDL.Text,
23
+ method: IDL.Text,
24
+ body: IDL.Vec(IDL.Nat8),
25
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))
26
+ });
27
+ const StreamingCallbackToken = IDL.Record({
28
+ token: IDL.Opt(IDL.Text),
29
+ sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
30
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
31
+ index: IDL.Nat64,
32
+ encoding_type: IDL.Text,
33
+ full_path: IDL.Text
34
+ });
35
+ const StreamingStrategy = IDL.Variant({
36
+ Callback: IDL.Record({
37
+ token: StreamingCallbackToken,
38
+ callback: IDL.Func([], [], [])
39
+ })
40
+ });
41
+ const HttpResponse = IDL.Record({
42
+ body: IDL.Vec(IDL.Nat8),
43
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
44
+ streaming_strategy: IDL.Opt(StreamingStrategy),
45
+ status_code: IDL.Nat16
46
+ });
47
+ const StreamingCallbackHttpResponse = IDL.Record({
48
+ token: IDL.Opt(StreamingCallbackToken),
49
+ body: IDL.Vec(IDL.Nat8)
50
+ });
51
+ const InitAssetKey = IDL.Record({
52
+ token: IDL.Opt(IDL.Text),
53
+ collection: IDL.Text,
54
+ name: IDL.Text,
55
+ encoding_type: IDL.Opt(IDL.Text),
56
+ full_path: IDL.Text
57
+ });
58
+ const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
59
+ const ListOrderField = IDL.Variant({
60
+ UpdatedAt: IDL.Null,
61
+ Keys: IDL.Null,
62
+ CreatedAt: IDL.Null
63
+ });
64
+ const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
65
+ const ListPaginate = IDL.Record({
66
+ start_after: IDL.Opt(IDL.Text),
67
+ limit: IDL.Opt(IDL.Nat64)
68
+ });
69
+ const ListParams = IDL.Record({
70
+ order: IDL.Opt(ListOrder),
71
+ matcher: IDL.Opt(IDL.Text),
72
+ paginate: IDL.Opt(ListPaginate)
73
+ });
74
+ const AssetKey = IDL.Record({
75
+ token: IDL.Opt(IDL.Text),
76
+ collection: IDL.Text,
77
+ owner: IDL.Principal,
78
+ name: IDL.Text,
79
+ full_path: IDL.Text
80
+ });
81
+ const AssetEncodingNoContent = IDL.Record({
82
+ modified: IDL.Nat64,
83
+ sha256: IDL.Vec(IDL.Nat8),
84
+ total_length: IDL.Nat
85
+ });
86
+ const AssetNoContent = IDL.Record({
87
+ key: AssetKey,
88
+ updated_at: IDL.Nat64,
89
+ encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
90
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
91
+ created_at: IDL.Nat64
92
+ });
93
+ const ListResults = IDL.Record({
94
+ matches_length: IDL.Nat64,
95
+ length: IDL.Nat64,
96
+ items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent))
97
+ });
98
+ const CustomDomain = IDL.Record({
99
+ updated_at: IDL.Nat64,
100
+ created_at: IDL.Nat64,
101
+ bn_id: IDL.Opt(IDL.Text)
102
+ });
103
+ const ListResults_1 = IDL.Record({
104
+ matches_length: IDL.Nat64,
105
+ length: IDL.Nat64,
106
+ items: IDL.Vec(IDL.Tuple(IDL.Text, Doc))
107
+ });
108
+ const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
109
+ const Permission = IDL.Variant({
110
+ Controllers: IDL.Null,
111
+ Private: IDL.Null,
112
+ Public: IDL.Null,
113
+ Managed: IDL.Null
114
+ });
115
+ const Rule = IDL.Record({
116
+ updated_at: IDL.Nat64,
117
+ max_size: IDL.Opt(IDL.Nat),
118
+ read: Permission,
119
+ created_at: IDL.Nat64,
120
+ write: Permission
121
+ });
122
+ const SetDoc = IDL.Record({
123
+ updated_at: IDL.Opt(IDL.Nat64),
124
+ data: IDL.Vec(IDL.Nat8)
125
+ });
126
+ const SetRule = IDL.Record({
127
+ updated_at: IDL.Opt(IDL.Nat64),
128
+ max_size: IDL.Opt(IDL.Nat),
129
+ read: Permission,
130
+ write: Permission
131
+ });
132
+ const Chunk = IDL.Record({
133
+ content: IDL.Vec(IDL.Nat8),
134
+ batch_id: IDL.Nat
135
+ });
136
+ const UploadChunk = IDL.Record({chunk_id: IDL.Nat});
137
+ return IDL.Service({
138
+ add_controllers: IDL.Func([ControllersArgs], [IDL.Vec(IDL.Principal)], []),
139
+ commit_asset_upload: IDL.Func([CommitBatch], [], []),
140
+ del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
141
+ del_assets: IDL.Func([IDL.Opt(IDL.Text)], [], []),
142
+ del_custom_domain: IDL.Func([IDL.Text], [], []),
143
+ del_doc: IDL.Func([IDL.Text, IDL.Text, DelDoc], [], []),
144
+ get_config: IDL.Func([], [Config], []),
145
+ get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
146
+ http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
147
+ http_request_streaming_callback: IDL.Func(
148
+ [StreamingCallbackToken],
149
+ [StreamingCallbackHttpResponse],
150
+ ['query']
151
+ ),
152
+ init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
153
+ list_assets: IDL.Func([IDL.Opt(IDL.Text), ListParams], [ListResults], ['query']),
154
+ list_controllers: IDL.Func([], [IDL.Vec(IDL.Principal)], ['query']),
155
+ list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
156
+ list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
157
+ list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
158
+ remove_controllers: IDL.Func([ControllersArgs], [IDL.Vec(IDL.Principal)], []),
159
+ set_config: IDL.Func([Config], [], []),
160
+ set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
161
+ set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
162
+ set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
163
+ upload_asset_chunk: IDL.Func([Chunk], [UploadChunk], []),
164
+ version: IDL.Func([], [IDL.Text], ['query'])
165
+ });
166
+ };
167
+ export const init = ({IDL}) => {
168
+ return [];
169
+ };
@@ -0,0 +1,169 @@
1
+ export const idlFactory = ({IDL}) => {
2
+ const ControllersArgs = IDL.Record({
3
+ controllers: IDL.Vec(IDL.Principal)
4
+ });
5
+ const CommitBatch = IDL.Record({
6
+ batch_id: IDL.Nat,
7
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
8
+ chunk_ids: IDL.Vec(IDL.Nat)
9
+ });
10
+ const DelDoc = IDL.Record({updated_at: IDL.Opt(IDL.Nat64)});
11
+ const StorageConfig = IDL.Record({
12
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))))
13
+ });
14
+ const Config = IDL.Record({storage: StorageConfig});
15
+ const Doc = IDL.Record({
16
+ updated_at: IDL.Nat64,
17
+ owner: IDL.Principal,
18
+ data: IDL.Vec(IDL.Nat8),
19
+ created_at: IDL.Nat64
20
+ });
21
+ const HttpRequest = IDL.Record({
22
+ url: IDL.Text,
23
+ method: IDL.Text,
24
+ body: IDL.Vec(IDL.Nat8),
25
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))
26
+ });
27
+ const StreamingCallbackToken = IDL.Record({
28
+ token: IDL.Opt(IDL.Text),
29
+ sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
30
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
31
+ index: IDL.Nat64,
32
+ encoding_type: IDL.Text,
33
+ full_path: IDL.Text
34
+ });
35
+ const StreamingStrategy = IDL.Variant({
36
+ Callback: IDL.Record({
37
+ token: StreamingCallbackToken,
38
+ callback: IDL.Func([], [], [])
39
+ })
40
+ });
41
+ const HttpResponse = IDL.Record({
42
+ body: IDL.Vec(IDL.Nat8),
43
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
44
+ streaming_strategy: IDL.Opt(StreamingStrategy),
45
+ status_code: IDL.Nat16
46
+ });
47
+ const StreamingCallbackHttpResponse = IDL.Record({
48
+ token: IDL.Opt(StreamingCallbackToken),
49
+ body: IDL.Vec(IDL.Nat8)
50
+ });
51
+ const InitAssetKey = IDL.Record({
52
+ token: IDL.Opt(IDL.Text),
53
+ collection: IDL.Text,
54
+ name: IDL.Text,
55
+ encoding_type: IDL.Opt(IDL.Text),
56
+ full_path: IDL.Text
57
+ });
58
+ const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
59
+ const ListOrderField = IDL.Variant({
60
+ UpdatedAt: IDL.Null,
61
+ Keys: IDL.Null,
62
+ CreatedAt: IDL.Null
63
+ });
64
+ const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
65
+ const ListPaginate = IDL.Record({
66
+ start_after: IDL.Opt(IDL.Text),
67
+ limit: IDL.Opt(IDL.Nat64)
68
+ });
69
+ const ListParams = IDL.Record({
70
+ order: IDL.Opt(ListOrder),
71
+ matcher: IDL.Opt(IDL.Text),
72
+ paginate: IDL.Opt(ListPaginate)
73
+ });
74
+ const AssetKey = IDL.Record({
75
+ token: IDL.Opt(IDL.Text),
76
+ collection: IDL.Text,
77
+ owner: IDL.Principal,
78
+ name: IDL.Text,
79
+ full_path: IDL.Text
80
+ });
81
+ const AssetEncodingNoContent = IDL.Record({
82
+ modified: IDL.Nat64,
83
+ sha256: IDL.Vec(IDL.Nat8),
84
+ total_length: IDL.Nat
85
+ });
86
+ const AssetNoContent = IDL.Record({
87
+ key: AssetKey,
88
+ updated_at: IDL.Nat64,
89
+ encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
90
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
91
+ created_at: IDL.Nat64
92
+ });
93
+ const ListResults = IDL.Record({
94
+ matches_length: IDL.Nat64,
95
+ length: IDL.Nat64,
96
+ items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent))
97
+ });
98
+ const CustomDomain = IDL.Record({
99
+ updated_at: IDL.Nat64,
100
+ created_at: IDL.Nat64,
101
+ bn_id: IDL.Opt(IDL.Text)
102
+ });
103
+ const ListResults_1 = IDL.Record({
104
+ matches_length: IDL.Nat64,
105
+ length: IDL.Nat64,
106
+ items: IDL.Vec(IDL.Tuple(IDL.Text, Doc))
107
+ });
108
+ const RulesType = IDL.Variant({Db: IDL.Null, Storage: IDL.Null});
109
+ const Permission = IDL.Variant({
110
+ Controllers: IDL.Null,
111
+ Private: IDL.Null,
112
+ Public: IDL.Null,
113
+ Managed: IDL.Null
114
+ });
115
+ const Rule = IDL.Record({
116
+ updated_at: IDL.Nat64,
117
+ max_size: IDL.Opt(IDL.Nat),
118
+ read: Permission,
119
+ created_at: IDL.Nat64,
120
+ write: Permission
121
+ });
122
+ const SetDoc = IDL.Record({
123
+ updated_at: IDL.Opt(IDL.Nat64),
124
+ data: IDL.Vec(IDL.Nat8)
125
+ });
126
+ const SetRule = IDL.Record({
127
+ updated_at: IDL.Opt(IDL.Nat64),
128
+ max_size: IDL.Opt(IDL.Nat),
129
+ read: Permission,
130
+ write: Permission
131
+ });
132
+ const Chunk = IDL.Record({
133
+ content: IDL.Vec(IDL.Nat8),
134
+ batch_id: IDL.Nat
135
+ });
136
+ const UploadChunk = IDL.Record({chunk_id: IDL.Nat});
137
+ return IDL.Service({
138
+ add_controllers: IDL.Func([ControllersArgs], [IDL.Vec(IDL.Principal)], []),
139
+ commit_asset_upload: IDL.Func([CommitBatch], [], []),
140
+ del_asset: IDL.Func([IDL.Text, IDL.Text], [], []),
141
+ del_assets: IDL.Func([IDL.Opt(IDL.Text)], [], []),
142
+ del_custom_domain: IDL.Func([IDL.Text], [], []),
143
+ del_doc: IDL.Func([IDL.Text, IDL.Text, DelDoc], [], []),
144
+ get_config: IDL.Func([], [Config], []),
145
+ get_doc: IDL.Func([IDL.Text, IDL.Text], [IDL.Opt(Doc)], ['query']),
146
+ http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
147
+ http_request_streaming_callback: IDL.Func(
148
+ [StreamingCallbackToken],
149
+ [StreamingCallbackHttpResponse],
150
+ ['query']
151
+ ),
152
+ init_asset_upload: IDL.Func([InitAssetKey], [InitUploadResult], []),
153
+ list_assets: IDL.Func([IDL.Opt(IDL.Text), ListParams], [ListResults], ['query']),
154
+ list_controllers: IDL.Func([], [IDL.Vec(IDL.Principal)], ['query']),
155
+ list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
156
+ list_docs: IDL.Func([IDL.Text, ListParams], [ListResults_1], ['query']),
157
+ list_rules: IDL.Func([RulesType], [IDL.Vec(IDL.Tuple(IDL.Text, Rule))], ['query']),
158
+ remove_controllers: IDL.Func([ControllersArgs], [IDL.Vec(IDL.Principal)], []),
159
+ set_config: IDL.Func([Config], [], []),
160
+ set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
161
+ set_doc: IDL.Func([IDL.Text, IDL.Text, SetDoc], [Doc], []),
162
+ set_rule: IDL.Func([RulesType, IDL.Text, SetRule], [], []),
163
+ upload_asset_chunk: IDL.Func([Chunk], [UploadChunk], []),
164
+ version: IDL.Func([], [IDL.Text], ['query'])
165
+ });
166
+ };
167
+ export const init = ({IDL}) => {
168
+ return [];
169
+ };