@lobehub/market-sdk 0.46.0 → 0.46.1
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.
- package/dist/index.d.mts +5 -9
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1478,8 +1478,7 @@ interface CreateKVCredRequest {
|
|
|
1478
1478
|
/**
|
|
1479
1479
|
* Organization credentials only (ignored for personal ones). 'public'
|
|
1480
1480
|
* (default) shares it with every member and requires the admin role;
|
|
1481
|
-
* 'private' keeps it to the creator
|
|
1482
|
-
* the server enables private organization credentials).
|
|
1481
|
+
* 'private' keeps it to the creator.
|
|
1483
1482
|
*/
|
|
1484
1483
|
visibility?: 'private' | 'public';
|
|
1485
1484
|
}
|
|
@@ -1498,8 +1497,7 @@ interface CreateOAuthCredRequest {
|
|
|
1498
1497
|
/**
|
|
1499
1498
|
* Organization credentials only (ignored for personal ones). 'public'
|
|
1500
1499
|
* (default) shares it with every member and requires the admin role;
|
|
1501
|
-
* 'private' keeps it to the creator
|
|
1502
|
-
* the server enables private organization credentials).
|
|
1500
|
+
* 'private' keeps it to the creator.
|
|
1503
1501
|
*/
|
|
1504
1502
|
visibility?: 'private' | 'public';
|
|
1505
1503
|
}
|
|
@@ -1520,8 +1518,7 @@ interface CreateFileCredRequest {
|
|
|
1520
1518
|
/**
|
|
1521
1519
|
* Organization credentials only (ignored for personal ones). 'public'
|
|
1522
1520
|
* (default) shares it with every member and requires the admin role;
|
|
1523
|
-
* 'private' keeps it to the creator
|
|
1524
|
-
* the server enables private organization credentials).
|
|
1521
|
+
* 'private' keeps it to the creator.
|
|
1525
1522
|
*/
|
|
1526
1523
|
visibility?: 'private' | 'public';
|
|
1527
1524
|
}
|
|
@@ -7863,9 +7860,8 @@ declare class OrganizationCredsService extends BaseSDK {
|
|
|
7863
7860
|
/**
|
|
7864
7861
|
* Publishes a private organization credential to every member
|
|
7865
7862
|
* (`'public'`) or takes it back to its creator (`'private'`). Creator only.
|
|
7866
|
-
* Fails with 409 when the
|
|
7867
|
-
* the same key (`public_cred_exists`
|
|
7868
|
-
* credentials are not enabled on the server (`private_creds_disabled`).
|
|
7863
|
+
* Fails with 409 when the target slot already holds a credential under
|
|
7864
|
+
* the same key (`public_cred_exists` / `private_cred_exists`).
|
|
7869
7865
|
*/
|
|
7870
7866
|
setVisibility(id: number, visibility: 'private' | 'public', options?: globalThis.RequestInit): Promise<UserCredSummary>;
|
|
7871
7867
|
delete(id: number, options?: globalThis.RequestInit): Promise<DeleteCredResponse>;
|
package/dist/index.mjs
CHANGED
|
@@ -5799,9 +5799,8 @@ var OrganizationCredsService = class extends BaseSDK {
|
|
|
5799
5799
|
/**
|
|
5800
5800
|
* Publishes a private organization credential to every member
|
|
5801
5801
|
* (`'public'`) or takes it back to its creator (`'private'`). Creator only.
|
|
5802
|
-
* Fails with 409 when the
|
|
5803
|
-
* the same key (`public_cred_exists`
|
|
5804
|
-
* credentials are not enabled on the server (`private_creds_disabled`).
|
|
5802
|
+
* Fails with 409 when the target slot already holds a credential under
|
|
5803
|
+
* the same key (`public_cred_exists` / `private_cred_exists`).
|
|
5805
5804
|
*/
|
|
5806
5805
|
async setVisibility(id, visibility, options) {
|
|
5807
5806
|
log31("Setting org %s credential %d visibility=%s", this.orgSegment, id, visibility);
|