@iblai/data-layer 1.10.0 → 1.11.0

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 (30) hide show
  1. package/dist/index.d.ts +31666 -20792
  2. package/dist/index.esm.js +917 -36
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +989 -35
  5. package/dist/index.js.map +1 -1
  6. package/dist/package.json +1 -1
  7. package/dist/src/config.d.ts +1 -0
  8. package/dist/src/constants.d.ts +2 -1
  9. package/dist/src/features/chat/__tests__/api-slice.test.d.ts +1 -0
  10. package/dist/src/features/chat/api-slice.d.ts +882 -1
  11. package/dist/src/features/chat/constants.d.ts +7 -0
  12. package/dist/src/features/core/api-slice.d.ts +1314 -345
  13. package/dist/src/features/core/types.d.ts +57 -0
  14. package/dist/src/features/evaluations/api-slice.d.ts +4314 -0
  15. package/dist/src/features/evaluations/constants.d.ts +102 -0
  16. package/dist/src/features/evaluations/types.d.ts +285 -0
  17. package/dist/src/features/mentor/privacy.d.ts +1 -1
  18. package/dist/src/features/studio-authoring/__tests__/api-slice.test.d.ts +1 -0
  19. package/dist/src/features/studio-authoring/api-slice.d.ts +1601 -0
  20. package/dist/src/features/studio-authoring/constants.d.ts +39 -0
  21. package/dist/src/features/studio-authoring/types.d.ts +65 -0
  22. package/dist/src/features/support-tickets/api-slice.d.ts +2356 -0
  23. package/dist/src/features/support-tickets/constants.d.ts +29 -0
  24. package/dist/src/features/support-tickets/types.d.ts +114 -0
  25. package/dist/src/features/utils.d.ts +5 -0
  26. package/dist/src/index.d.ts +9 -0
  27. package/dist/src/utils/__tests__/index.test.d.ts +1 -0
  28. package/dist/src/utils/index.d.ts +1 -1
  29. package/dist/tsconfig.tsbuildinfo +1 -1
  30. package/package.json +1 -1
@@ -71,3 +71,60 @@ export interface RbacActionDefinition {
71
71
  assignable_resources: string[];
72
72
  }
73
73
  export type RbacActionsDefinitionResponse = Record<string, RbacActionDefinition>;
74
+ /** A child collection reachable from an entity node in the RBAC resource tree. */
75
+ export interface RbacResourceDiscoveryCollection {
76
+ /** Collection identifier, e.g. "mentors", "documents". */
77
+ type: string;
78
+ /** Human-readable description shown as help text in pickers. */
79
+ help: string;
80
+ /** Discovery path to request next when drilling into this collection. */
81
+ path: string;
82
+ /**
83
+ * When true this collection is terminal: it can only be granted as a whole
84
+ * (no object-level grants), so there is nothing to search beneath it.
85
+ */
86
+ collection_only: boolean;
87
+ }
88
+ /** Discovery payload for an entity node: lists the child collections. */
89
+ export interface RbacResourceDiscoveryEntityNode {
90
+ node_type: 'entity';
91
+ name: string | null;
92
+ /** The RBAC policy resource path built so far, e.g. "/mentors/6/". */
93
+ resource_path: string;
94
+ collections: RbacResourceDiscoveryCollection[];
95
+ }
96
+ /** Discovery payload for a collection node: how/where to search for entities. */
97
+ export interface RbacResourceDiscoveryCollectionNode {
98
+ node_type: 'collection';
99
+ /** The RBAC policy resource path built so far, e.g. "/mentors/". */
100
+ resource_path: string;
101
+ /** Relative URL to list/search entities. Null for collection_only nodes. */
102
+ list_url: string | null;
103
+ /** Query params supported by list_url for filtering. */
104
+ search_qps: string[];
105
+ /** The primary search param a simple search box should map to. */
106
+ default_search_qp: string | null;
107
+ /**
108
+ * Which fields of each list result hold the primary key (appended to the
109
+ * resource path on selection) and the display name.
110
+ */
111
+ result_fields: {
112
+ pk: string;
113
+ name: string;
114
+ } | null;
115
+ }
116
+ export type RbacResourceDiscoveryResponse = RbacResourceDiscoveryEntityNode | RbacResourceDiscoveryCollectionNode;
117
+ /** A normalized entity row returned when listing a discovery collection. */
118
+ export interface RbacResourceListItem {
119
+ /** Value of the result_fields.pk field — appended to the resource path. */
120
+ pk: string | number;
121
+ /** Value of the result_fields.name field — shown to the user. */
122
+ name: string;
123
+ /** The untouched result object, for callers needing extra fields. */
124
+ raw: Record<string, unknown>;
125
+ }
126
+ export interface RbacResourceListResponse {
127
+ items: RbacResourceListItem[];
128
+ /** The raw list endpoint payload before normalization. */
129
+ raw: unknown;
130
+ }