Skip to content

Commit 5b2e7ae

Browse files
committed
chore: release v1.0.0
1 parent 47df782 commit 5b2e7ae

File tree

16 files changed

+199
-117
lines changed

16 files changed

+199
-117
lines changed

Cargo.lock

Lines changed: 122 additions & 92 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ strip = true
1717
opt-level = 's'
1818

1919
[workspace.package]
20-
version = "0.9.12"
20+
version = "1.0.0"
2121
edition = "2021"
2222
repository = "https://github.com/ldclabs/ic-oss"
2323
keywords = ["file", "storage", "oss", "s3", "icp"]

examples/ai_canister/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ serde = { workspace = true }
1919
serde_bytes = { workspace = true }
2020
getrandom = { workspace = true }
2121
rand = { version = "0.8", features = ["getrandom"] }
22-
ic-oss-types = { path = "../../src/ic_oss_types", version = "0.9" }
23-
ic-oss-can = { path = "../../src/ic_oss_can", version = "0.9" }
22+
ic-oss-types = { path = "../../src/ic_oss_types", version = "1" }
23+
ic-oss-can = { path = "../../src/ic_oss_can", version = "1" }

src/declarations/ic_oss_cluster/ic_oss_cluster.did

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ service : (opt ChainArgs) -> {
118118
admin_attach_policies : (Token) -> (Result_1);
119119
admin_batch_call_buckets : (vec principal, text, opt blob) -> (Result_2);
120120
admin_create_bucket : (opt CanisterSettings, opt blob) -> (Result_3);
121+
admin_create_bucket_on : (principal, opt CanisterSettings, opt blob) -> (
122+
Result_3,
123+
);
121124
admin_deploy_bucket : (DeployWasmInput, opt blob) -> (Result_1);
122125
admin_detach_policies : (Token) -> (Result_1);
123126
admin_ed25519_access_token : (Token) -> (Result);
@@ -156,6 +159,11 @@ service : (opt ChainArgs) -> {
156159
validate_admin_create_bucket : (opt CanisterSettings, opt blob) -> (
157160
Result_11,
158161
);
162+
validate_admin_create_bucket_on : (
163+
principal,
164+
opt CanisterSettings,
165+
opt blob,
166+
) -> (Result_11);
159167
validate_admin_deploy_bucket : (DeployWasmInput, opt blob) -> (Result_1);
160168
validate_admin_remove_committers : (vec principal) -> (Result_11);
161169
validate_admin_remove_managers : (vec principal) -> (Result_11);

src/declarations/ic_oss_cluster/ic_oss_cluster.did.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ export interface _SERVICE {
150150
[[] | [CanisterSettings], [] | [Uint8Array | number[]]],
151151
Result_3
152152
>,
153+
'admin_create_bucket_on' : ActorMethod<
154+
[Principal, [] | [CanisterSettings], [] | [Uint8Array | number[]]],
155+
Result_3
156+
>,
153157
'admin_deploy_bucket' : ActorMethod<
154158
[DeployWasmInput, [] | [Uint8Array | number[]]],
155159
Result_1
@@ -213,6 +217,10 @@ export interface _SERVICE {
213217
[[] | [CanisterSettings], [] | [Uint8Array | number[]]],
214218
Result_11
215219
>,
220+
'validate_admin_create_bucket_on' : ActorMethod<
221+
[Principal, [] | [CanisterSettings], [] | [Uint8Array | number[]]],
222+
Result_11
223+
>,
216224
'validate_admin_deploy_bucket' : ActorMethod<
217225
[DeployWasmInput, [] | [Uint8Array | number[]]],
218226
Result_1

src/declarations/ic_oss_cluster/ic_oss_cluster.did.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ export const idlFactory = ({ IDL }) => {
156156
[Result_3],
157157
[],
158158
),
159+
'admin_create_bucket_on' : IDL.Func(
160+
[IDL.Principal, IDL.Opt(CanisterSettings), IDL.Opt(IDL.Vec(IDL.Nat8))],
161+
[Result_3],
162+
[],
163+
),
159164
'admin_deploy_bucket' : IDL.Func(
160165
[DeployWasmInput, IDL.Opt(IDL.Vec(IDL.Nat8))],
161166
[Result_1],
@@ -258,6 +263,11 @@ export const idlFactory = ({ IDL }) => {
258263
[Result_11],
259264
[],
260265
),
266+
'validate_admin_create_bucket_on' : IDL.Func(
267+
[IDL.Principal, IDL.Opt(CanisterSettings), IDL.Opt(IDL.Vec(IDL.Nat8))],
268+
[Result_11],
269+
[],
270+
),
261271
'validate_admin_deploy_bucket' : IDL.Func(
262272
[DeployWasmInput, IDL.Opt(IDL.Vec(IDL.Nat8))],
263273
[Result_1],

src/ic_oss/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ tokio-stream = { workspace = true }
2020
futures = { workspace = true }
2121
sha3 = { workspace = true }
2222
ic-agent = { workspace = true }
23-
ic-oss-types = { path = "../ic_oss_types", version = "0.9" }
23+
ic-oss-types = { path = "../ic_oss_types", version = "1" }

src/ic_oss_bucket/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ ic-http-certification = { workspace = true }
2828
getrandom = { workspace = true }
2929
lazy_static = "1.4"
3030
hyperx = { git = "https://github.com/ldclabs/hyperx", rev = "4b9bd373b8c4d29a32e59912bf598ba69273c032" }
31-
ic-oss-types = { path = "../ic_oss_types", version = "0.9" }
31+
ic-oss-types = { path = "../ic_oss_types", version = "1" }

src/ic_oss_can/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ serde_bytes = { workspace = true }
1616
ciborium = { workspace = true }
1717
ic-cdk = { workspace = true }
1818
ic-stable-structures = { workspace = true }
19-
ic-oss-types = { path = "../ic_oss_types", version = "0.9" }
19+
ic-oss-types = { path = "../ic_oss_types", version = "1" }

src/ic_oss_cli/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ tokio = { workspace = true }
1616
sha3 = { workspace = true }
1717
hex = { workspace = true }
1818
ic-agent = { workspace = true }
19-
ic-oss = { path = "../ic_oss", version = "0.9" }
20-
ic-oss-types = { path = "../ic_oss_types", version = "0.9" }
19+
ic-oss = { path = "../ic_oss", version = "1" }
20+
ic-oss-types = { path = "../ic_oss_types", version = "1" }
2121
anyhow = "1"
2222
clap = { version = "=4.5", features = ["derive"] }
2323
infer = "0.15"

src/ic_oss_cluster/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ serde = { workspace = true }
2626
serde_bytes = { workspace = true }
2727
getrandom = { workspace = true }
2828
ed25519-dalek = { workspace = true }
29-
ic-oss-types = { path = "../ic_oss_types", version = "0.9" }
29+
ic-oss-types = { path = "../ic_oss_types", version = "1" }

src/ic_oss_ts/candid/ic_oss_cluster/ic_oss_cluster.did

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ service : (opt ChainArgs) -> {
118118
admin_attach_policies : (Token) -> (Result_1);
119119
admin_batch_call_buckets : (vec principal, text, opt blob) -> (Result_2);
120120
admin_create_bucket : (opt CanisterSettings, opt blob) -> (Result_3);
121+
admin_create_bucket_on : (principal, opt CanisterSettings, opt blob) -> (
122+
Result_3,
123+
);
121124
admin_deploy_bucket : (DeployWasmInput, opt blob) -> (Result_1);
122125
admin_detach_policies : (Token) -> (Result_1);
123126
admin_ed25519_access_token : (Token) -> (Result);
@@ -156,6 +159,11 @@ service : (opt ChainArgs) -> {
156159
validate_admin_create_bucket : (opt CanisterSettings, opt blob) -> (
157160
Result_11,
158161
);
162+
validate_admin_create_bucket_on : (
163+
principal,
164+
opt CanisterSettings,
165+
opt blob,
166+
) -> (Result_11);
159167
validate_admin_deploy_bucket : (DeployWasmInput, opt blob) -> (Result_1);
160168
validate_admin_remove_committers : (vec principal) -> (Result_11);
161169
validate_admin_remove_managers : (vec principal) -> (Result_11);

src/ic_oss_ts/candid/ic_oss_cluster/ic_oss_cluster.did.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ export interface _SERVICE {
150150
[[] | [CanisterSettings], [] | [Uint8Array | number[]]],
151151
Result_3
152152
>,
153+
'admin_create_bucket_on' : ActorMethod<
154+
[Principal, [] | [CanisterSettings], [] | [Uint8Array | number[]]],
155+
Result_3
156+
>,
153157
'admin_deploy_bucket' : ActorMethod<
154158
[DeployWasmInput, [] | [Uint8Array | number[]]],
155159
Result_1
@@ -213,6 +217,10 @@ export interface _SERVICE {
213217
[[] | [CanisterSettings], [] | [Uint8Array | number[]]],
214218
Result_11
215219
>,
220+
'validate_admin_create_bucket_on' : ActorMethod<
221+
[Principal, [] | [CanisterSettings], [] | [Uint8Array | number[]]],
222+
Result_11
223+
>,
216224
'validate_admin_deploy_bucket' : ActorMethod<
217225
[DeployWasmInput, [] | [Uint8Array | number[]]],
218226
Result_1

src/ic_oss_ts/candid/ic_oss_cluster/ic_oss_cluster.did.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ export const idlFactory = ({ IDL }) => {
156156
[Result_3],
157157
[],
158158
),
159+
'admin_create_bucket_on' : IDL.Func(
160+
[IDL.Principal, IDL.Opt(CanisterSettings), IDL.Opt(IDL.Vec(IDL.Nat8))],
161+
[Result_3],
162+
[],
163+
),
159164
'admin_deploy_bucket' : IDL.Func(
160165
[DeployWasmInput, IDL.Opt(IDL.Vec(IDL.Nat8))],
161166
[Result_1],
@@ -258,6 +263,11 @@ export const idlFactory = ({ IDL }) => {
258263
[Result_11],
259264
[],
260265
),
266+
'validate_admin_create_bucket_on' : IDL.Func(
267+
[IDL.Principal, IDL.Opt(CanisterSettings), IDL.Opt(IDL.Vec(IDL.Nat8))],
268+
[Result_11],
269+
[],
270+
),
261271
'validate_admin_deploy_bucket' : IDL.Func(
262272
[DeployWasmInput, IDL.Opt(IDL.Vec(IDL.Nat8))],
263273
[Result_1],

src/ic_oss_ts/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ldclabs/ic_oss_ts",
3-
"version": "0.9.11",
3+
"version": "1.0.0",
44
"type": "module",
55
"description": "The Typescript version of the client SDK for the ic-oss cluster.",
66
"license": "MIT",
@@ -35,25 +35,25 @@
3535
"ncu": "npx npm-check-updates -u"
3636
},
3737
"dependencies": {
38-
"@dfinity/agent": "^2.2.0",
39-
"@dfinity/candid": "^2.2.0",
40-
"@dfinity/principal": "^2.2.0",
41-
"@dfinity/utils": "^2.7.1",
42-
"@noble/hashes": "^1.6.1",
38+
"@dfinity/agent": "^2.3.0",
39+
"@dfinity/candid": "^2.3.0",
40+
"@dfinity/principal": "^2.3.0",
41+
"@dfinity/utils": "^2.10.0",
42+
"@noble/hashes": "^1.7.1",
4343
"mime": "^4.0.6",
44-
"web-streams-polyfill": "^4.0.0"
44+
"web-streams-polyfill": "^4.1.0"
4545
},
4646
"devDependencies": {
4747
"@types/eslint": "^9.6.1",
48-
"@types/node": "22.10.2",
49-
"@typescript-eslint/eslint-plugin": "^8.18.1",
50-
"@typescript-eslint/parser": "^8.18.1",
51-
"eslint": "^9.17.0",
52-
"eslint-config-prettier": "^9.1.0",
48+
"@types/node": "22.13.1",
49+
"@typescript-eslint/eslint-plugin": "^8.23.0",
50+
"@typescript-eslint/parser": "^8.23.0",
51+
"eslint": "^9.20.0",
52+
"eslint-config-prettier": "^10.0.1",
5353
"eslint-plugin-import": "^2.31.0",
54-
"eslint-plugin-prettier": "^5.2.1",
54+
"eslint-plugin-prettier": "^5.2.3",
5555
"prettier": "^3.4.2",
56-
"typescript": "^5.7.2",
57-
"vitest": "^2.1.8"
56+
"typescript": "^5.7.3",
57+
"vitest": "^3.0.5"
5858
}
5959
}

src/ic_oss_types/src/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::{format_error, MapValue};
99

1010
pub const CHUNK_SIZE: u32 = 256 * 1024;
1111
pub const MAX_FILE_SIZE: u64 = 384 * 1024 * 1024 * 1024; // 384GB
12-
pub const MAX_FILE_SIZE_PER_CALL: u64 = 1024 * 2000; // should less than 2MB
12+
pub const MAX_FILE_SIZE_PER_CALL: u64 = 1024 * 2048; // should less than 2MB
1313

1414
pub static CUSTOM_KEY_BY_HASH: &str = "by_hash";
1515

0 commit comments

Comments
 (0)