@tearleads/client-sdk 0.1.91 → 0.1.93

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 (32) hide show
  1. package/README.md +2 -2
  2. package/client/root/index.d.ts +4 -2
  3. package/client/root/index.js +2 -1
  4. package/client/root/index.js.map +1 -1
  5. package/index.d.ts +1 -1
  6. package/index.js +1 -1
  7. package/index.js.map +1 -1
  8. package/internal/api-client/ApiClient.d.ts +3 -2
  9. package/internal/api-client/ApiClient.js +4 -1
  10. package/internal/api-client/ApiClient.js.map +1 -1
  11. package/internal/validators/operation/index.d.ts +1 -0
  12. package/internal/validators/operation/index.js +1 -0
  13. package/internal/validators/operation/index.js.map +1 -1
  14. package/internal/validators/operation/registry.d.ts +2 -0
  15. package/internal/validators/operation/registry.js +2 -0
  16. package/internal/validators/operation/registry.js.map +1 -1
  17. package/internal/validators/operation/rootAudit.d.ts +189 -0
  18. package/internal/validators/operation/rootAudit.js +28 -0
  19. package/internal/validators/operation/rootAudit.js.map +1 -0
  20. package/internal/validators/response/index.d.ts +1 -0
  21. package/internal/validators/response/index.js +1 -0
  22. package/internal/validators/response/index.js.map +1 -1
  23. package/internal/validators/response/rootAudit.d.ts +105 -0
  24. package/internal/validators/response/rootAudit.js +40 -0
  25. package/internal/validators/response/rootAudit.js.map +1 -0
  26. package/package.json +1 -1
  27. package/workflows/root/audit.d.ts +14 -0
  28. package/workflows/root/audit.js +5 -0
  29. package/workflows/root/audit.js.map +1 -0
  30. package/workflows/root/index.d.ts +1 -0
  31. package/workflows/root/index.js +1 -0
  32. package/workflows/root/index.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tearleads/client-sdk",
3
- "version": "0.1.91",
3
+ "version": "0.1.93",
4
4
  "description": "React-free Tearleads client runtime: local SQLite persistence, keys, sync, encrypted blobs, and domain workflows.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -0,0 +1,14 @@
1
+ import type { RequestResult } from "../../internal/api-client/index.js";
2
+ import type { RootAuditEventsQuery } from "../../internal/validators/operation/index.js";
3
+ import type { RootAuditEventResponse, RootAuditEventsResponse } from "../../internal/validators/response/index.js";
4
+ import { type RootRequestOutcome } from "./identities.js";
5
+ /** One recorded operator action (wire shape); a null actor is the API CLI. */
6
+ export type RootAuditEvent = RootAuditEventResponse;
7
+ /** A page of audit events, newest first, plus the next page's cursor. */
8
+ export type RootAuditEventsPage = RootAuditEventsResponse;
9
+ /** Paging and the optional identity or organization the events involve. */
10
+ export type RootAuditEventsQueryInput = RootAuditEventsQuery;
11
+ export interface RootAuditApi {
12
+ listRootAuditEventsResult(query?: RootAuditEventsQuery): Promise<RequestResult<RootAuditEventsResponse>>;
13
+ }
14
+ export declare function listRootAuditEvents(api: RootAuditApi, query?: RootAuditEventsQueryInput): Promise<RootRequestOutcome<RootAuditEventsPage>>;
@@ -0,0 +1,5 @@
1
+ import { toOutcome } from "./identities.js";
2
+ export async function listRootAuditEvents(api, query = {}) {
3
+ return toOutcome(await api.listRootAuditEventsResult(query));
4
+ }
5
+ //# sourceMappingURL=audit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit.js","sourceRoot":"","sources":["audit.ts"],"names":[],"mappings":"AAMA,OAAO,EAA2B,SAAS,EAAE,MAAM,cAAc,CAAC;AAiBlE,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,GAAiB,EACjB,QAAmC,EAAE;IAErC,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC,CAAC;AAC/D,CAAC","sourcesContent":["import type { RequestResult } from \"@tearleads/api-client\";\nimport type { RootAuditEventsQuery } from \"@tearleads/validators/operation\";\nimport type {\n RootAuditEventResponse,\n RootAuditEventsResponse,\n} from \"@tearleads/validators/response\";\nimport { type RootRequestOutcome, toOutcome } from \"./identities\";\n\n/** One recorded operator action (wire shape); a null actor is the API CLI. */\nexport type RootAuditEvent = RootAuditEventResponse;\n\n/** A page of audit events, newest first, plus the next page's cursor. */\nexport type RootAuditEventsPage = RootAuditEventsResponse;\n\n/** Paging and the optional identity or organization the events involve. */\nexport type RootAuditEventsQueryInput = RootAuditEventsQuery;\n\nexport interface RootAuditApi {\n listRootAuditEventsResult(\n query?: RootAuditEventsQuery,\n ): Promise<RequestResult<RootAuditEventsResponse>>;\n}\n\nexport async function listRootAuditEvents(\n api: RootAuditApi,\n query: RootAuditEventsQueryInput = {},\n): Promise<RootRequestOutcome<RootAuditEventsPage>> {\n return toOutcome(await api.listRootAuditEventsResult(query));\n}\n"]}
@@ -1,3 +1,4 @@
1
+ export { listRootAuditEvents, type RootAuditApi, type RootAuditEvent, type RootAuditEventsPage, type RootAuditEventsQueryInput, } from "./audit.js";
1
2
  export { listRootDataUsageReport, loadRootOrganizationDataUsage, type RootDataUsageApi, type RootDataUsageReportPage, } from "./dataUsage.js";
2
3
  export { listRootIdentities, listRootIdentityOrganizations, loadRootIdentity, type RootIdentitiesApi, type RootIdentitiesPage, type RootIdentitiesQueryInput, type RootIdentity, type RootIdentityDetail, type RootIdentityOrganization, type RootIdentitySession, type RootRequestOutcome, } from "./identities.js";
3
4
  export { listRootOrganizationIdentities, listRootOrganizations, loadRootOrganization, type RootOrganization, type RootOrganizationDetail, type RootOrganizationIdentitiesPage, type RootOrganizationIdentity, type RootOrganizationPageQueryInput, type RootOrganizationsApi, type RootOrganizationsPage, type RootOrganizationsQueryInput, } from "./organizations.js";
@@ -1,3 +1,4 @@
1
+ export { listRootAuditEvents, } from "./audit.js";
1
2
  export { listRootDataUsageReport, loadRootOrganizationDataUsage, } from "./dataUsage.js";
2
3
  export { listRootIdentities, listRootIdentityOrganizations, loadRootIdentity, } from "./identities.js";
3
4
  export { listRootOrganizationIdentities, listRootOrganizations, loadRootOrganization, } from "./organizations.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,6BAA6B,GAG9B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,gBAAgB,GASjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,8BAA8B,EAC9B,qBAAqB,EACrB,oBAAoB,GASrB,MAAM,iBAAiB,CAAC","sourcesContent":["export {\n listRootDataUsageReport,\n loadRootOrganizationDataUsage,\n type RootDataUsageApi,\n type RootDataUsageReportPage,\n} from \"./dataUsage\";\nexport {\n listRootIdentities,\n listRootIdentityOrganizations,\n loadRootIdentity,\n type RootIdentitiesApi,\n type RootIdentitiesPage,\n type RootIdentitiesQueryInput,\n type RootIdentity,\n type RootIdentityDetail,\n type RootIdentityOrganization,\n type RootIdentitySession,\n type RootRequestOutcome,\n} from \"./identities\";\nexport {\n listRootOrganizationIdentities,\n listRootOrganizations,\n loadRootOrganization,\n type RootOrganization,\n type RootOrganizationDetail,\n type RootOrganizationIdentitiesPage,\n type RootOrganizationIdentity,\n type RootOrganizationPageQueryInput,\n type RootOrganizationsApi,\n type RootOrganizationsPage,\n type RootOrganizationsQueryInput,\n} from \"./organizations\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAKpB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,uBAAuB,EACvB,6BAA6B,GAG9B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,gBAAgB,GASjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,8BAA8B,EAC9B,qBAAqB,EACrB,oBAAoB,GASrB,MAAM,iBAAiB,CAAC","sourcesContent":["export {\n listRootAuditEvents,\n type RootAuditApi,\n type RootAuditEvent,\n type RootAuditEventsPage,\n type RootAuditEventsQueryInput,\n} from \"./audit\";\nexport {\n listRootDataUsageReport,\n loadRootOrganizationDataUsage,\n type RootDataUsageApi,\n type RootDataUsageReportPage,\n} from \"./dataUsage\";\nexport {\n listRootIdentities,\n listRootIdentityOrganizations,\n loadRootIdentity,\n type RootIdentitiesApi,\n type RootIdentitiesPage,\n type RootIdentitiesQueryInput,\n type RootIdentity,\n type RootIdentityDetail,\n type RootIdentityOrganization,\n type RootIdentitySession,\n type RootRequestOutcome,\n} from \"./identities\";\nexport {\n listRootOrganizationIdentities,\n listRootOrganizations,\n loadRootOrganization,\n type RootOrganization,\n type RootOrganizationDetail,\n type RootOrganizationIdentitiesPage,\n type RootOrganizationIdentity,\n type RootOrganizationPageQueryInput,\n type RootOrganizationsApi,\n type RootOrganizationsPage,\n type RootOrganizationsQueryInput,\n} from \"./organizations\";\n"]}