@seliseblocks/client 0.1.3 → 0.1.4
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/README.md +10 -8
- package/dist/iam/types.d.ts +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ For AI agents and automation, see [AI_USAGE_GUIDE.md](AI_USAGE_GUIDE.md).
|
|
|
11
11
|
## Install
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install @seliseblocks/client
|
|
14
|
+
npm install @seliseblocks/client@latest
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Requires Node.js 20+ or a browser/runtime with `fetch`.
|
|
@@ -118,13 +118,15 @@ is an admin concern handled by `@seliseblocks/cli-os`'s `notification *` command
|
|
|
118
118
|
## Common Runtime Calls
|
|
119
119
|
|
|
120
120
|
```ts
|
|
121
|
-
const me = await blocks.iam.me();
|
|
122
|
-
const orgs = await blocks.iam.organizations.my();
|
|
123
|
-
const features = await blocks.iam.resources.features();
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
121
|
+
const me = await blocks.iam.me();
|
|
122
|
+
const orgs = await blocks.iam.organizations.my();
|
|
123
|
+
const features = await blocks.iam.resources.features();
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
`iam.organizations.my()` returns the IAM envelope with `organizations`, not `data`.
|
|
127
|
+
|
|
128
|
+
```ts
|
|
129
|
+
const schemas = await blocks.data.schemas.list();
|
|
128
130
|
const schemaInfo = await blocks.data.schemas.infoByName("Student");
|
|
129
131
|
const schemaRules = await blocks.data.validations.bySchemaId("schema-id");
|
|
130
132
|
|
package/dist/iam/types.d.ts
CHANGED
|
@@ -53,4 +53,6 @@ export type BlocksGetRoleResponse = BlocksQueryResponse<BlocksRole>;
|
|
|
53
53
|
export type BlocksGetRolesResponse = BlocksQueryListResponse<BlocksRole>;
|
|
54
54
|
export type BlocksGetOrganizationResponse = BlocksQueryResponse<BlocksOrganization>;
|
|
55
55
|
export type BlocksGetOrganizationsResponse = BlocksQueryListResponse<BlocksOrganization>;
|
|
56
|
-
export type BlocksGetMyOrganizationsResponse =
|
|
56
|
+
export type BlocksGetMyOrganizationsResponse = BlocksBaseResponse & {
|
|
57
|
+
organizations?: BlocksOrganization[];
|
|
58
|
+
};
|