@junobuild/ic-client 3.1.2 → 3.1.3

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