@junobuild/core 0.0.21 → 0.0.22

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 (67) hide show
  1. package/declarations/cmc/index.js +6 -1
  2. package/declarations/console/console.did.d.ts +5 -4
  3. package/declarations/console/console.factory.did.js +3 -2
  4. package/declarations/console/console.factory.did.mjs +3 -2
  5. package/declarations/console/index.js +6 -1
  6. package/declarations/ic/ic.did +131 -18
  7. package/declarations/ic/ic.did.d.ts +184 -53
  8. package/declarations/ic/ic.factory.did.js +167 -24
  9. package/declarations/mission_control/index.js +7 -1
  10. package/declarations/mission_control/mission_control.did.d.ts +1 -0
  11. package/declarations/mission_control/mission_control.factory.did.js +5 -0
  12. package/declarations/observatory/index.js +7 -1
  13. package/declarations/satellite/index.js +6 -1
  14. package/declarations/satellite/satellite.did.d.ts +1 -0
  15. package/declarations/satellite/satellite.factory.did.js +1 -0
  16. package/declarations/satellite/satellite.factory.did.mjs +1 -0
  17. package/dist/browser/index.js +3 -3
  18. package/dist/browser/index.js.map +2 -2
  19. package/dist/declarations/cmc/index.js +6 -1
  20. package/dist/declarations/console/console.did.d.ts +5 -4
  21. package/dist/declarations/console/console.factory.did.js +3 -2
  22. package/dist/declarations/console/console.factory.did.mjs +3 -2
  23. package/dist/declarations/console/index.js +6 -1
  24. package/dist/declarations/ic/ic.did +131 -18
  25. package/dist/declarations/ic/ic.did.d.ts +184 -53
  26. package/dist/declarations/ic/ic.factory.did.js +167 -24
  27. package/dist/declarations/mission_control/index.js +7 -1
  28. package/dist/declarations/mission_control/mission_control.did.d.ts +1 -0
  29. package/dist/declarations/mission_control/mission_control.factory.did.js +5 -0
  30. package/dist/declarations/observatory/index.js +7 -1
  31. package/dist/declarations/satellite/index.js +6 -1
  32. package/dist/declarations/satellite/satellite.did.d.ts +1 -0
  33. package/dist/declarations/satellite/satellite.factory.did.js +1 -0
  34. package/dist/declarations/satellite/satellite.factory.did.mjs +1 -0
  35. package/dist/node/index.mjs +1 -1
  36. package/dist/node/index.mjs.map +2 -2
  37. package/package.json +1 -1
  38. package/declarations/frontend/frontend.did +0 -188
  39. package/declarations/frontend/frontend.did.d.ts +0 -172
  40. package/declarations/frontend/frontend.factory.did.js +0 -210
  41. package/declarations/frontend/index.d.ts +0 -45
  42. package/declarations/frontend/index.js +0 -32
  43. package/declarations/internet_identity/index.d.ts +0 -45
  44. package/declarations/internet_identity/index.js +0 -32
  45. package/declarations/internet_identity/internet_identity.did +0 -378
  46. package/declarations/internet_identity/internet_identity.did.d.ts +0 -231
  47. package/declarations/internet_identity/internet_identity.factory.did.js +0 -277
  48. package/declarations/ledger/index.d.ts +0 -45
  49. package/declarations/ledger/index.js +0 -32
  50. package/declarations/ledger/ledger.did +0 -266
  51. package/declarations/ledger/ledger.did.d.ts +0 -117
  52. package/declarations/ledger/ledger.factory.did.js +0 -115
  53. package/dist/declarations/frontend/frontend.did +0 -188
  54. package/dist/declarations/frontend/frontend.did.d.ts +0 -172
  55. package/dist/declarations/frontend/frontend.factory.did.js +0 -210
  56. package/dist/declarations/frontend/index.d.ts +0 -45
  57. package/dist/declarations/frontend/index.js +0 -32
  58. package/dist/declarations/internet_identity/index.d.ts +0 -45
  59. package/dist/declarations/internet_identity/index.js +0 -32
  60. package/dist/declarations/internet_identity/internet_identity.did +0 -378
  61. package/dist/declarations/internet_identity/internet_identity.did.d.ts +0 -231
  62. package/dist/declarations/internet_identity/internet_identity.factory.did.js +0 -277
  63. package/dist/declarations/ledger/index.d.ts +0 -45
  64. package/dist/declarations/ledger/index.js +0 -32
  65. package/dist/declarations/ledger/ledger.did +0 -266
  66. package/dist/declarations/ledger/ledger.did.d.ts +0 -117
  67. package/dist/declarations/ledger/ledger.factory.did.js +0 -115
@@ -1,117 +0,0 @@
1
- import type {ActorMethod} from '@dfinity/agent';
2
- import type {Principal} from '@dfinity/principal';
3
-
4
- export interface AccountBalanceArgs {
5
- account: AccountIdentifier;
6
- }
7
- export type AccountIdentifier = Uint8Array | number[];
8
- export interface Archive {
9
- canister_id: Principal;
10
- }
11
- export interface Archives {
12
- archives: Array<Archive>;
13
- }
14
- export interface Block {
15
- transaction: Transaction;
16
- timestamp: TimeStamp;
17
- parent_hash: [] | [Uint8Array | number[]];
18
- }
19
- export type BlockIndex = bigint;
20
- export interface BlockRange {
21
- blocks: Array<Block>;
22
- }
23
- export interface GetBlocksArgs {
24
- start: BlockIndex;
25
- length: bigint;
26
- }
27
- export type Memo = bigint;
28
- export type Operation =
29
- | {
30
- Approve: {
31
- fee: Tokens;
32
- from: AccountIdentifier;
33
- allowance_e8s: bigint;
34
- expires_at: [] | [TimeStamp];
35
- spender: AccountIdentifier;
36
- };
37
- }
38
- | {Burn: {from: AccountIdentifier; amount: Tokens}}
39
- | {Mint: {to: AccountIdentifier; amount: Tokens}}
40
- | {
41
- Transfer: {
42
- to: AccountIdentifier;
43
- fee: Tokens;
44
- from: AccountIdentifier;
45
- amount: Tokens;
46
- };
47
- }
48
- | {
49
- TransferFrom: {
50
- to: AccountIdentifier;
51
- fee: Tokens;
52
- from: AccountIdentifier;
53
- amount: Tokens;
54
- spender: AccountIdentifier;
55
- };
56
- };
57
- export type QueryArchiveError =
58
- | {
59
- BadFirstBlockIndex: {
60
- requested_index: BlockIndex;
61
- first_valid_index: BlockIndex;
62
- };
63
- }
64
- | {Other: {error_message: string; error_code: bigint}};
65
- export type QueryArchiveFn = ActorMethod<[GetBlocksArgs], QueryArchiveResult>;
66
- export type QueryArchiveResult = {Ok: BlockRange} | {Err: QueryArchiveError};
67
- export interface QueryBlocksResponse {
68
- certificate: [] | [Uint8Array | number[]];
69
- blocks: Array<Block>;
70
- chain_length: bigint;
71
- first_block_index: BlockIndex;
72
- archived_blocks: Array<{callback: QueryArchiveFn; start: BlockIndex; length: bigint}>;
73
- }
74
- export type SubAccount = Uint8Array | number[];
75
- export interface TimeStamp {
76
- timestamp_nanos: bigint;
77
- }
78
- export interface Tokens {
79
- e8s: bigint;
80
- }
81
- export interface Transaction {
82
- memo: Memo;
83
- icrc1_memo: [] | [Uint8Array | number[]];
84
- operation: [] | [Operation];
85
- created_at_time: TimeStamp;
86
- }
87
- export interface TransferArgs {
88
- to: AccountIdentifier;
89
- fee: Tokens;
90
- memo: Memo;
91
- from_subaccount: [] | [SubAccount];
92
- created_at_time: [] | [TimeStamp];
93
- amount: Tokens;
94
- }
95
- export type TransferError =
96
- | {
97
- TxTooOld: {allowed_window_nanos: bigint};
98
- }
99
- | {BadFee: {expected_fee: Tokens}}
100
- | {TxDuplicate: {duplicate_of: BlockIndex}}
101
- | {TxCreatedInFuture: null}
102
- | {InsufficientFunds: {balance: Tokens}};
103
- export interface TransferFee {
104
- transfer_fee: Tokens;
105
- }
106
- export type TransferFeeArg = {};
107
- export type TransferResult = {Ok: BlockIndex} | {Err: TransferError};
108
- export interface _SERVICE {
109
- account_balance: ActorMethod<[AccountBalanceArgs], Tokens>;
110
- archives: ActorMethod<[], Archives>;
111
- decimals: ActorMethod<[], {decimals: number}>;
112
- name: ActorMethod<[], {name: string}>;
113
- query_blocks: ActorMethod<[GetBlocksArgs], QueryBlocksResponse>;
114
- symbol: ActorMethod<[], {symbol: string}>;
115
- transfer: ActorMethod<[TransferArgs], TransferResult>;
116
- transfer_fee: ActorMethod<[TransferFeeArg], TransferFee>;
117
- }
@@ -1,115 +0,0 @@
1
- // @ts-ignore
2
- export const idlFactory = ({IDL}) => {
3
- const AccountIdentifier = IDL.Vec(IDL.Nat8);
4
- const AccountBalanceArgs = IDL.Record({account: AccountIdentifier});
5
- const Tokens = IDL.Record({e8s: IDL.Nat64});
6
- const Archive = IDL.Record({canister_id: IDL.Principal});
7
- const Archives = IDL.Record({archives: IDL.Vec(Archive)});
8
- const BlockIndex = IDL.Nat64;
9
- const GetBlocksArgs = IDL.Record({
10
- start: BlockIndex,
11
- length: IDL.Nat64
12
- });
13
- const Memo = IDL.Nat64;
14
- const TimeStamp = IDL.Record({timestamp_nanos: IDL.Nat64});
15
- const Operation = IDL.Variant({
16
- Approve: IDL.Record({
17
- fee: Tokens,
18
- from: AccountIdentifier,
19
- allowance_e8s: IDL.Int,
20
- expires_at: IDL.Opt(TimeStamp),
21
- spender: AccountIdentifier
22
- }),
23
- Burn: IDL.Record({from: AccountIdentifier, amount: Tokens}),
24
- Mint: IDL.Record({to: AccountIdentifier, amount: Tokens}),
25
- Transfer: IDL.Record({
26
- to: AccountIdentifier,
27
- fee: Tokens,
28
- from: AccountIdentifier,
29
- amount: Tokens
30
- }),
31
- TransferFrom: IDL.Record({
32
- to: AccountIdentifier,
33
- fee: Tokens,
34
- from: AccountIdentifier,
35
- amount: Tokens,
36
- spender: AccountIdentifier
37
- })
38
- });
39
- const Transaction = IDL.Record({
40
- memo: Memo,
41
- icrc1_memo: IDL.Opt(IDL.Vec(IDL.Nat8)),
42
- operation: IDL.Opt(Operation),
43
- created_at_time: TimeStamp
44
- });
45
- const Block = IDL.Record({
46
- transaction: Transaction,
47
- timestamp: TimeStamp,
48
- parent_hash: IDL.Opt(IDL.Vec(IDL.Nat8))
49
- });
50
- const BlockRange = IDL.Record({blocks: IDL.Vec(Block)});
51
- const QueryArchiveError = IDL.Variant({
52
- BadFirstBlockIndex: IDL.Record({
53
- requested_index: BlockIndex,
54
- first_valid_index: BlockIndex
55
- }),
56
- Other: IDL.Record({
57
- error_message: IDL.Text,
58
- error_code: IDL.Nat64
59
- })
60
- });
61
- const QueryArchiveResult = IDL.Variant({
62
- Ok: BlockRange,
63
- Err: QueryArchiveError
64
- });
65
- const QueryArchiveFn = IDL.Func([GetBlocksArgs], [QueryArchiveResult], ['query']);
66
- const QueryBlocksResponse = IDL.Record({
67
- certificate: IDL.Opt(IDL.Vec(IDL.Nat8)),
68
- blocks: IDL.Vec(Block),
69
- chain_length: IDL.Nat64,
70
- first_block_index: BlockIndex,
71
- archived_blocks: IDL.Vec(
72
- IDL.Record({
73
- callback: QueryArchiveFn,
74
- start: BlockIndex,
75
- length: IDL.Nat64
76
- })
77
- )
78
- });
79
- const SubAccount = IDL.Vec(IDL.Nat8);
80
- const TransferArgs = IDL.Record({
81
- to: AccountIdentifier,
82
- fee: Tokens,
83
- memo: Memo,
84
- from_subaccount: IDL.Opt(SubAccount),
85
- created_at_time: IDL.Opt(TimeStamp),
86
- amount: Tokens
87
- });
88
- const TransferError = IDL.Variant({
89
- TxTooOld: IDL.Record({allowed_window_nanos: IDL.Nat64}),
90
- BadFee: IDL.Record({expected_fee: Tokens}),
91
- TxDuplicate: IDL.Record({duplicate_of: BlockIndex}),
92
- TxCreatedInFuture: IDL.Null,
93
- InsufficientFunds: IDL.Record({balance: Tokens})
94
- });
95
- const TransferResult = IDL.Variant({
96
- Ok: BlockIndex,
97
- Err: TransferError
98
- });
99
- const TransferFeeArg = IDL.Record({});
100
- const TransferFee = IDL.Record({transfer_fee: Tokens});
101
- return IDL.Service({
102
- account_balance: IDL.Func([AccountBalanceArgs], [Tokens], ['query']),
103
- archives: IDL.Func([], [Archives], ['query']),
104
- decimals: IDL.Func([], [IDL.Record({decimals: IDL.Nat32})], ['query']),
105
- name: IDL.Func([], [IDL.Record({name: IDL.Text})], ['query']),
106
- query_blocks: IDL.Func([GetBlocksArgs], [QueryBlocksResponse], ['query']),
107
- symbol: IDL.Func([], [IDL.Record({symbol: IDL.Text})], ['query']),
108
- transfer: IDL.Func([TransferArgs], [TransferResult], []),
109
- transfer_fee: IDL.Func([TransferFeeArg], [TransferFee], ['query'])
110
- });
111
- };
112
- // @ts-ignore
113
- export const init = ({IDL}) => {
114
- return [];
115
- };
@@ -1,188 +0,0 @@
1
- type BatchId = nat;
2
- type ChunkId = nat;
3
- type Key = text;
4
- type Time = int;
5
-
6
- type CreateAssetArguments = record {
7
- key: Key;
8
- content_type: text;
9
- max_age: opt nat64;
10
- headers: opt vec HeaderField;
11
- enable_aliasing: opt bool;
12
- allow_raw_access: opt bool;
13
- };
14
-
15
- // Add or change content for an asset, by content encoding
16
- type SetAssetContentArguments = record {
17
- key: Key;
18
- content_encoding: text;
19
- chunk_ids: vec ChunkId;
20
- sha256: opt blob;
21
- };
22
-
23
- // Remove content for an asset, by content encoding
24
- type UnsetAssetContentArguments = record {
25
- key: Key;
26
- content_encoding: text;
27
- };
28
-
29
- // Delete an asset
30
- type DeleteAssetArguments = record {
31
- key: Key;
32
- };
33
-
34
- // Reset everything
35
- type ClearArguments = record {};
36
-
37
- type BatchOperationKind = variant {
38
- CreateAsset: CreateAssetArguments;
39
- SetAssetContent: SetAssetContentArguments;
40
-
41
- UnsetAssetContent: UnsetAssetContentArguments;
42
- DeleteAsset: DeleteAssetArguments;
43
-
44
- Clear: ClearArguments;
45
- };
46
-
47
- type HeaderField = record { text; text; };
48
-
49
- type HttpRequest = record {
50
- method: text;
51
- url: text;
52
- headers: vec HeaderField;
53
- body: blob;
54
- };
55
-
56
- type HttpResponse = record {
57
- status_code: nat16;
58
- headers: vec HeaderField;
59
- body: blob;
60
- streaming_strategy: opt StreamingStrategy;
61
- };
62
-
63
- type StreamingCallbackHttpResponse = record {
64
- body: blob;
65
- token: opt StreamingCallbackToken;
66
- };
67
-
68
- type StreamingCallbackToken = record {
69
- key: Key;
70
- content_encoding: text;
71
- index: nat;
72
- sha256: opt blob;
73
- };
74
-
75
- type StreamingStrategy = variant {
76
- Callback: record {
77
- callback: func (StreamingCallbackToken) -> (opt StreamingCallbackHttpResponse) query;
78
- token: StreamingCallbackToken;
79
- };
80
- };
81
-
82
- type SetAssetPropertiesArguments = record {
83
- key: Key;
84
- max_age: opt opt nat64;
85
- headers: opt opt vec HeaderField;
86
- allow_raw_access: opt opt bool;
87
- };
88
-
89
- type Permission = variant {
90
- Commit;
91
- ManagePermissions;
92
- Prepare;
93
- };
94
-
95
- type GrantPermission = record {
96
- to_principal: principal;
97
- permission: Permission;
98
- };
99
- type RevokePermission = record {
100
- of_principal: principal;
101
- permission: Permission;
102
- };
103
- type ListPermitted = record { permission: Permission };
104
-
105
- type ValidationResult = variant { Ok : text; Err : text };
106
-
107
- service: {
108
- get: (record {
109
- key: Key;
110
- accept_encodings: vec text;
111
- }) -> (record {
112
- content: blob; // may be the entirety of the content, or just chunk index 0
113
- content_type: text;
114
- content_encoding: text;
115
- sha256: opt blob; // sha256 of entire asset encoding, calculated by dfx and passed in SetAssetContentArguments
116
- total_length: nat; // all chunks except last have size == content.size()
117
- }) query;
118
-
119
- // if get() returned chunks > 1, call this to retrieve them.
120
- // chunks may or may not be split up at the same boundaries as presented to create_chunk().
121
- get_chunk: (record {
122
- key: Key;
123
- content_encoding: text;
124
- index: nat;
125
- sha256: opt blob; // sha256 of entire asset encoding, calculated by dfx and passed in SetAssetContentArguments
126
- }) -> (record { content: blob }) query;
127
-
128
- list : (record {}) -> (vec record {
129
- key: Key;
130
- content_type: text;
131
- encodings: vec record {
132
- content_encoding: text;
133
- sha256: opt blob; // sha256 of entire asset encoding, calculated by dfx and passed in SetAssetContentArguments
134
- length: nat; // Size of this encoding's blob. Calculated when uploading assets.
135
- modified: Time;
136
- };
137
- }) query;
138
-
139
- certified_tree : (record {}) -> (record {
140
- certificate: blob;
141
- tree: blob;
142
- }) query;
143
-
144
- create_batch : (record {}) -> (record { batch_id: BatchId });
145
-
146
- create_chunk: (record { batch_id: BatchId; content: blob }) -> (record { chunk_id: ChunkId });
147
-
148
- // Perform all operations successfully, or reject
149
- commit_batch: (record { batch_id: BatchId; operations: vec BatchOperationKind }) -> ();
150
-
151
- create_asset: (CreateAssetArguments) -> ();
152
- set_asset_content: (SetAssetContentArguments) -> ();
153
- unset_asset_content: (UnsetAssetContentArguments) -> ();
154
-
155
- delete_asset: (DeleteAssetArguments) -> ();
156
-
157
- clear: (ClearArguments) -> ();
158
-
159
- // Single call to create an asset with content for a single content encoding that
160
- // fits within the message ingress limit.
161
- store: (record {
162
- key: Key;
163
- content_type: text;
164
- content_encoding: text;
165
- content: blob;
166
- sha256: opt blob
167
- }) -> ();
168
-
169
- http_request: (request: HttpRequest) -> (HttpResponse) query;
170
- http_request_streaming_callback: (token: StreamingCallbackToken) -> (opt StreamingCallbackHttpResponse) query;
171
-
172
- authorize: (principal) -> ();
173
- deauthorize: (principal) -> ();
174
- list_authorized: () -> (vec principal) query;
175
- grant_permission: (GrantPermission) -> ();
176
- revoke_permission: (RevokePermission) -> ();
177
- list_permitted: (ListPermitted) -> (vec principal) query;
178
- take_ownership: () -> ();
179
-
180
- get_asset_properties : (key: Key) -> (record {
181
- max_age: opt nat64;
182
- headers: opt vec HeaderField;
183
- allow_raw_access: opt bool; } ) query;
184
- set_asset_properties: (SetAssetPropertiesArguments) -> ();
185
-
186
- validate_grant_permission: (GrantPermission) -> (ValidationResult);
187
- validate_revoke_permission: (RevokePermission) -> (ValidationResult);
188
- }
@@ -1,172 +0,0 @@
1
- import type {ActorMethod} from '@dfinity/agent';
2
- import type {Principal} from '@dfinity/principal';
3
-
4
- export type BatchId = bigint;
5
- export type BatchOperationKind =
6
- | {CreateAsset: CreateAssetArguments}
7
- | {UnsetAssetContent: UnsetAssetContentArguments}
8
- | {DeleteAsset: DeleteAssetArguments}
9
- | {SetAssetContent: SetAssetContentArguments}
10
- | {Clear: ClearArguments};
11
- export type ChunkId = bigint;
12
- export type ClearArguments = {};
13
- export interface CreateAssetArguments {
14
- key: Key;
15
- content_type: string;
16
- headers: [] | [Array<HeaderField>];
17
- allow_raw_access: [] | [boolean];
18
- max_age: [] | [bigint];
19
- enable_aliasing: [] | [boolean];
20
- }
21
- export interface DeleteAssetArguments {
22
- key: Key;
23
- }
24
- export interface GrantPermission {
25
- permission: Permission;
26
- to_principal: Principal;
27
- }
28
- export type HeaderField = [string, string];
29
- export interface HttpRequest {
30
- url: string;
31
- method: string;
32
- body: Uint8Array | number[];
33
- headers: Array<HeaderField>;
34
- }
35
- export interface HttpResponse {
36
- body: Uint8Array | number[];
37
- headers: Array<HeaderField>;
38
- streaming_strategy: [] | [StreamingStrategy];
39
- status_code: number;
40
- }
41
- export type Key = string;
42
- export interface ListPermitted {
43
- permission: Permission;
44
- }
45
- export type Permission = {Prepare: null} | {ManagePermissions: null} | {Commit: null};
46
- export interface RevokePermission {
47
- permission: Permission;
48
- of_principal: Principal;
49
- }
50
- export interface SetAssetContentArguments {
51
- key: Key;
52
- sha256: [] | [Uint8Array | number[]];
53
- chunk_ids: Array<ChunkId>;
54
- content_encoding: string;
55
- }
56
- export interface SetAssetPropertiesArguments {
57
- key: Key;
58
- headers: [] | [[] | [Array<HeaderField>]];
59
- allow_raw_access: [] | [[] | [boolean]];
60
- max_age: [] | [[] | [bigint]];
61
- }
62
- export interface StreamingCallbackHttpResponse {
63
- token: [] | [StreamingCallbackToken];
64
- body: Uint8Array | number[];
65
- }
66
- export interface StreamingCallbackToken {
67
- key: Key;
68
- sha256: [] | [Uint8Array | number[]];
69
- index: bigint;
70
- content_encoding: string;
71
- }
72
- export type StreamingStrategy = {
73
- Callback: {
74
- token: StreamingCallbackToken;
75
- callback: [Principal, string];
76
- };
77
- };
78
- export type Time = bigint;
79
- export interface UnsetAssetContentArguments {
80
- key: Key;
81
- content_encoding: string;
82
- }
83
- export type ValidationResult = {Ok: string} | {Err: string};
84
- export interface _SERVICE {
85
- authorize: ActorMethod<[Principal], undefined>;
86
- certified_tree: ActorMethod<
87
- [{}],
88
- {certificate: Uint8Array | number[]; tree: Uint8Array | number[]}
89
- >;
90
- clear: ActorMethod<[ClearArguments], undefined>;
91
- commit_batch: ActorMethod<
92
- [{batch_id: BatchId; operations: Array<BatchOperationKind>}],
93
- undefined
94
- >;
95
- create_asset: ActorMethod<[CreateAssetArguments], undefined>;
96
- create_batch: ActorMethod<[{}], {batch_id: BatchId}>;
97
- create_chunk: ActorMethod<
98
- [{content: Uint8Array | number[]; batch_id: BatchId}],
99
- {chunk_id: ChunkId}
100
- >;
101
- deauthorize: ActorMethod<[Principal], undefined>;
102
- delete_asset: ActorMethod<[DeleteAssetArguments], undefined>;
103
- get: ActorMethod<
104
- [{key: Key; accept_encodings: Array<string>}],
105
- {
106
- content: Uint8Array | number[];
107
- sha256: [] | [Uint8Array | number[]];
108
- content_type: string;
109
- content_encoding: string;
110
- total_length: bigint;
111
- }
112
- >;
113
- get_asset_properties: ActorMethod<
114
- [Key],
115
- {
116
- headers: [] | [Array<HeaderField>];
117
- allow_raw_access: [] | [boolean];
118
- max_age: [] | [bigint];
119
- }
120
- >;
121
- get_chunk: ActorMethod<
122
- [
123
- {
124
- key: Key;
125
- sha256: [] | [Uint8Array | number[]];
126
- index: bigint;
127
- content_encoding: string;
128
- }
129
- ],
130
- {content: Uint8Array | number[]}
131
- >;
132
- grant_permission: ActorMethod<[GrantPermission], undefined>;
133
- http_request: ActorMethod<[HttpRequest], HttpResponse>;
134
- http_request_streaming_callback: ActorMethod<
135
- [StreamingCallbackToken],
136
- [] | [StreamingCallbackHttpResponse]
137
- >;
138
- list: ActorMethod<
139
- [{}],
140
- Array<{
141
- key: Key;
142
- encodings: Array<{
143
- modified: Time;
144
- sha256: [] | [Uint8Array | number[]];
145
- length: bigint;
146
- content_encoding: string;
147
- }>;
148
- content_type: string;
149
- }>
150
- >;
151
- list_authorized: ActorMethod<[], Array<Principal>>;
152
- list_permitted: ActorMethod<[ListPermitted], Array<Principal>>;
153
- revoke_permission: ActorMethod<[RevokePermission], undefined>;
154
- set_asset_content: ActorMethod<[SetAssetContentArguments], undefined>;
155
- set_asset_properties: ActorMethod<[SetAssetPropertiesArguments], undefined>;
156
- store: ActorMethod<
157
- [
158
- {
159
- key: Key;
160
- content: Uint8Array | number[];
161
- sha256: [] | [Uint8Array | number[]];
162
- content_type: string;
163
- content_encoding: string;
164
- }
165
- ],
166
- undefined
167
- >;
168
- take_ownership: ActorMethod<[], undefined>;
169
- unset_asset_content: ActorMethod<[UnsetAssetContentArguments], undefined>;
170
- validate_grant_permission: ActorMethod<[GrantPermission], ValidationResult>;
171
- validate_revoke_permission: ActorMethod<[RevokePermission], ValidationResult>;
172
- }