@avallon-labs/sdk 37.5.0 → 38.0.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.
package/dist/index.d.ts CHANGED
@@ -2636,8 +2636,6 @@ interface Extract {
2636
2636
  processor_scope: ExtractProcessorScope;
2637
2637
  extractor_job_id: string | null;
2638
2638
  worker_run_id: string | null;
2639
- /** Case this extract is associated with, or null if it is not linked to a case. Stored normalized (trimmed and lowercased). */
2640
- case_id: string | null;
2641
2639
  result: unknown;
2642
2640
  citations: unknown | null;
2643
2641
  created_at: string;
@@ -2664,8 +2662,6 @@ interface ExtractSummary {
2664
2662
  id: string;
2665
2663
  extractor_job_id: string | null;
2666
2664
  worker_run_id: string | null;
2667
- /** Case this extract is associated with, or null if it is not linked to a case. Stored normalized (trimmed and lowercased). */
2668
- case_id: string | null;
2669
2665
  processor_type: string;
2670
2666
  processor_id: string;
2671
2667
  processor_version: number;
@@ -3684,6 +3680,11 @@ type ListArtifactsParams = {
3684
3680
  sort_order?: ListArtifactsSortOrder;
3685
3681
  status?: ListArtifactsStatus;
3686
3682
  document_name_query?: string;
3683
+ /**
3684
+ * Only artifacts linked to this case. Values are normalized server-side (trimmed and lowercased).
3685
+ * @minLength 1
3686
+ */
3687
+ case_id?: string;
3687
3688
  created_after?: string;
3688
3689
  created_before?: string;
3689
3690
  /**
@@ -3824,7 +3825,12 @@ type ListCallsParams = {
3824
3825
  */
3825
3826
  phone_number?: string;
3826
3827
  /**
3827
- * Filter by metadata keys using bracket notation (e.g. metadata[case_id]=abc-123, metadata[source]=worker). Multiple filters are combined with AND logic.
3828
+ * Only calls linked to this case. Values are normalized server-side (trimmed and lowercased).
3829
+ * @minLength 1
3830
+ */
3831
+ case_id?: string;
3832
+ /**
3833
+ * Filter by metadata keys using bracket notation (e.g. metadata[claim_id]=abc-123, metadata[source]=worker). Multiple filters are combined with AND logic.
3828
3834
  */
3829
3835
  metadata?: {
3830
3836
  [key: string]: string;
@@ -4080,6 +4086,11 @@ declare const ListChatsSortOrder: {
4080
4086
  */
4081
4087
 
4082
4088
  type ListChatsParams = {
4089
+ /**
4090
+ * Only chats linked to this case. Values are normalized server-side (trimmed and lowercased).
4091
+ * @minLength 1
4092
+ */
4093
+ case_id?: string;
4083
4094
  /**
4084
4095
  * @minimum 1
4085
4096
  * @maximum 100
@@ -4451,7 +4462,7 @@ type ListExtractsParams = {
4451
4462
  worker_run_id?: string;
4452
4463
  worker_id?: string;
4453
4464
  /**
4454
- * Filter extracts associated with a specific case (matches the dedicated `extracts.case_id` column). Values are normalized server-side (trimmed and lowercased).
4465
+ * Filter extracts linked to a specific case. Values are normalized server-side (trimmed and lowercased).
4455
4466
  * @minLength 1
4456
4467
  */
4457
4468
  case_id?: string;
@@ -4602,6 +4613,11 @@ type ListSchedulesParams = {
4602
4613
  * Only schedules whose rule is of this type
4603
4614
  */
4604
4615
  rule_type?: ListSchedulesRuleType;
4616
+ /**
4617
+ * Only schedules linked to this case. Values are normalized server-side (trimmed and lowercased).
4618
+ * @minLength 1
4619
+ */
4620
+ case_id?: string;
4605
4621
  /**
4606
4622
  * @minimum 1
4607
4623
  * @maximum 100
@@ -7185,6 +7201,12 @@ declare const useCreateArtifact: <TError = ErrorType<ErrorResponse>>(options?: {
7185
7201
  /**
7186
7202
  * List all artifacts with pagination, filtering, and sorting.
7187
7203
 
7204
+ **Case Filtering:**
7205
+
7206
+ Use `case_id` to return only artifacts linked to a case. This reads the case links
7207
+ created via `POST /v1/cases/{caseId}/links`, and is independent of any
7208
+ `metadata.case_id` an artifact may carry.
7209
+
7188
7210
  **Metadata Filtering:**
7189
7211
 
7190
7212
  Use bracket notation to filter by metadata keys:
@@ -7700,10 +7722,16 @@ type SecondParameter$k<T extends (...args: never) => unknown> = Parameters<T>[1]
7700
7722
 
7701
7723
  Filter by agent, direction, status, time range, phone number, and more. Phone number filter supports both exact E.164 matches and partial search.
7702
7724
 
7725
+ **Case Filtering:**
7726
+
7727
+ Use `case_id` to return only calls linked to a case. This reads the case links created
7728
+ via `POST /v1/cases/{caseId}/links`, and is independent of any `metadata.case_id` a
7729
+ call may carry.
7730
+
7703
7731
  **Metadata Filtering:**
7704
7732
 
7705
7733
  Use bracket notation to filter by metadata keys:
7706
- - `metadata[case_id]=abc-123`
7734
+ - `metadata[claim_id]=abc-123`
7707
7735
  - `metadata[source]=worker`
7708
7736
 
7709
7737
  Multiple metadata filters can be combined (AND logic).
@@ -8303,7 +8331,7 @@ declare const usePostChatMessage: <TError = ErrorType<ErrorResponse>>(chatId: st
8303
8331
  swrKey: string | readonly [`/public/v1/chats/${string}/messages`];
8304
8332
  };
8305
8333
  /**
8306
- * List the tenant's chats with pagination and sorting. Returns chat metadata and message counts; messages are not included.
8334
+ * List the tenant's chats with pagination, sorting, and optional filtering by case. Returns chat metadata and message counts; messages are not included.
8307
8335
  * @summary List chats
8308
8336
  */
8309
8337
  declare const getListChatsUrl: (params?: ListChatsParams) => string;