@avallon-labs/sdk 37.2.0 → 37.3.0-staging.935

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
@@ -107,6 +107,7 @@ declare const AddCaseLinksBodyEntitiesItemEntityType: {
107
107
  readonly chat: "chat";
108
108
  readonly email: "email";
109
109
  readonly extract: "extract";
110
+ readonly schedule: "schedule";
110
111
  readonly worker_run: "worker_run";
111
112
  };
112
113
 
@@ -150,6 +151,7 @@ declare const CaseLinkEntityType: {
150
151
  readonly chat: "chat";
151
152
  readonly email: "email";
152
153
  readonly extract: "extract";
154
+ readonly schedule: "schedule";
153
155
  readonly worker_run: "worker_run";
154
156
  };
155
157
 
@@ -3753,6 +3755,7 @@ declare const ListCaseLinksEntityType: {
3753
3755
  readonly chat: "chat";
3754
3756
  readonly email: "email";
3755
3757
  readonly extract: "extract";
3758
+ readonly schedule: "schedule";
3756
3759
  readonly worker_run: "worker_run";
3757
3760
  };
3758
3761
 
@@ -7745,7 +7748,7 @@ declare const useGetCase: <TError = ErrorType<ErrorResponse>>(id: string, option
7745
7748
  swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
7746
7749
  };
7747
7750
  /**
7748
- * Link one or more entities (artifacts, calls, chats, emails, extracts, worker runs) to a case.
7751
+ * Link one or more entities (artifacts, calls, chats, emails, extracts, schedules, worker runs) to a case.
7749
7752
 
7750
7753
  The case and every entity must already exist in the tenant — unknown ids return 404 and nothing is created. Adding is idempotent: re-linking an already linked entity returns the existing link with its original `created_at`.
7751
7754
  * @summary Add case links
@@ -7802,28 +7805,28 @@ declare const useListCaseLinks: <TError = ErrorType<ErrorResponse>>(id: string,
7802
7805
  * Remove the link between a case and an entity. Removal is idempotent: removing a link that does not exist succeeds without effect.
7803
7806
  * @summary Remove case link
7804
7807
  */
7805
- declare const getRemoveCaseLinkUrl: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "worker_run", entityId: string) => string;
7806
- declare const removeCaseLink: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "worker_run", entityId: string, options?: RequestInit) => Promise<RemoveCaseLinkResponse>;
7807
- declare const getRemoveCaseLinkMutationFetcher: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "worker_run", entityId: string, options?: SecondParameter$i<typeof customFetch>) => (_: Key, __: {
7808
+ declare const getRemoveCaseLinkUrl: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "schedule" | "worker_run", entityId: string) => string;
7809
+ declare const removeCaseLink: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "schedule" | "worker_run", entityId: string, options?: RequestInit) => Promise<RemoveCaseLinkResponse>;
7810
+ declare const getRemoveCaseLinkMutationFetcher: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "schedule" | "worker_run", entityId: string, options?: SecondParameter$i<typeof customFetch>) => (_: Key, __: {
7808
7811
  arg: Arguments;
7809
7812
  }) => Promise<RemoveCaseLinkResponse>;
7810
- declare const getRemoveCaseLinkMutationKey: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "worker_run", entityId: string) => readonly [`/v1/cases/${string}/links/artifact/${string}` | `/v1/cases/${string}/links/call/${string}` | `/v1/cases/${string}/links/chat/${string}` | `/v1/cases/${string}/links/email/${string}` | `/v1/cases/${string}/links/extract/${string}` | `/v1/cases/${string}/links/worker_run/${string}`];
7813
+ declare const getRemoveCaseLinkMutationKey: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "schedule" | "worker_run", entityId: string) => readonly [`/v1/cases/${string}/links/artifact/${string}` | `/v1/cases/${string}/links/call/${string}` | `/v1/cases/${string}/links/chat/${string}` | `/v1/cases/${string}/links/email/${string}` | `/v1/cases/${string}/links/extract/${string}` | `/v1/cases/${string}/links/schedule/${string}` | `/v1/cases/${string}/links/worker_run/${string}`];
7811
7814
  type RemoveCaseLinkMutationResult = NonNullable<Awaited$i<ReturnType<typeof removeCaseLink>>>;
7812
7815
  /**
7813
7816
  * @summary Remove case link
7814
7817
  */
7815
- declare const useRemoveCaseLink: <TError = ErrorType<ErrorResponse>>(id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "worker_run", entityId: string, options?: {
7818
+ declare const useRemoveCaseLink: <TError = ErrorType<ErrorResponse>>(id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "schedule" | "worker_run", entityId: string, options?: {
7816
7819
  swr?: SWRMutationConfiguration<Awaited$i<ReturnType<typeof removeCaseLink>>, TError, Key, Arguments, Awaited$i<ReturnType<typeof removeCaseLink>>> & {
7817
7820
  swrKey?: string;
7818
7821
  };
7819
7822
  request?: SecondParameter$i<typeof customFetch>;
7820
7823
  }) => {
7821
7824
  isMutating: boolean;
7822
- trigger: swr_mutation.TriggerWithOptionsArgs<RemoveCaseLinkResponse, TError, string | readonly [`/v1/cases/${string}/links/artifact/${string}` | `/v1/cases/${string}/links/call/${string}` | `/v1/cases/${string}/links/chat/${string}` | `/v1/cases/${string}/links/email/${string}` | `/v1/cases/${string}/links/extract/${string}` | `/v1/cases/${string}/links/worker_run/${string}`], Arguments>;
7825
+ trigger: swr_mutation.TriggerWithOptionsArgs<RemoveCaseLinkResponse, TError, string | readonly [`/v1/cases/${string}/links/artifact/${string}` | `/v1/cases/${string}/links/call/${string}` | `/v1/cases/${string}/links/chat/${string}` | `/v1/cases/${string}/links/email/${string}` | `/v1/cases/${string}/links/extract/${string}` | `/v1/cases/${string}/links/schedule/${string}` | `/v1/cases/${string}/links/worker_run/${string}`], Arguments>;
7823
7826
  reset: () => void;
7824
7827
  data: RemoveCaseLinkResponse | undefined;
7825
7828
  error: TError | undefined;
7826
- swrKey: string | readonly [`/v1/cases/${string}/links/artifact/${string}` | `/v1/cases/${string}/links/call/${string}` | `/v1/cases/${string}/links/chat/${string}` | `/v1/cases/${string}/links/email/${string}` | `/v1/cases/${string}/links/extract/${string}` | `/v1/cases/${string}/links/worker_run/${string}`];
7829
+ swrKey: string | readonly [`/v1/cases/${string}/links/artifact/${string}` | `/v1/cases/${string}/links/call/${string}` | `/v1/cases/${string}/links/chat/${string}` | `/v1/cases/${string}/links/email/${string}` | `/v1/cases/${string}/links/extract/${string}` | `/v1/cases/${string}/links/schedule/${string}` | `/v1/cases/${string}/links/worker_run/${string}`];
7827
7830
  };
7828
7831
 
7829
7832
  type AwaitedInput$h<T> = PromiseLike<T> | T;
package/dist/index.js CHANGED
@@ -4397,6 +4397,7 @@ var AddCaseLinksBodyEntitiesItemEntityType = {
4397
4397
  chat: "chat",
4398
4398
  email: "email",
4399
4399
  extract: "extract",
4400
+ schedule: "schedule",
4400
4401
  worker_run: "worker_run"
4401
4402
  };
4402
4403
 
@@ -4463,6 +4464,7 @@ var CaseLinkEntityType = {
4463
4464
  chat: "chat",
4464
4465
  email: "email",
4465
4466
  extract: "extract",
4467
+ schedule: "schedule",
4466
4468
  worker_run: "worker_run"
4467
4469
  };
4468
4470
 
@@ -4701,6 +4703,7 @@ var ListCaseLinksEntityType = {
4701
4703
  chat: "chat",
4702
4704
  email: "email",
4703
4705
  extract: "extract",
4706
+ schedule: "schedule",
4704
4707
  worker_run: "worker_run"
4705
4708
  };
4706
4709