@avallon-labs/sdk 35.1.0 → 35.3.0-staging.881

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
@@ -104,6 +104,7 @@ type AddCaseLinksBodyEntitiesItemEntityType = (typeof AddCaseLinksBodyEntitiesIt
104
104
  declare const AddCaseLinksBodyEntitiesItemEntityType: {
105
105
  readonly artifact: "artifact";
106
106
  readonly call: "call";
107
+ readonly chat: "chat";
107
108
  readonly email: "email";
108
109
  readonly extract: "extract";
109
110
  readonly worker_run: "worker_run";
@@ -146,6 +147,7 @@ type CaseLinkEntityType = (typeof CaseLinkEntityType)[keyof typeof CaseLinkEntit
146
147
  declare const CaseLinkEntityType: {
147
148
  readonly artifact: "artifact";
148
149
  readonly call: "call";
150
+ readonly chat: "chat";
149
151
  readonly email: "email";
150
152
  readonly extract: "extract";
151
153
  readonly worker_run: "worker_run";
@@ -440,6 +442,8 @@ interface ApiKey {
440
442
  id: string;
441
443
  /** Human-readable name for the API key */
442
444
  name: string;
445
+ /** Id of the team member the key acts as, as returned by the team endpoint. The owner's role caps the key's effective role, and the key stops working once the owner is removed from the tenant. */
446
+ owner_profile_id: string;
443
447
  /** First 12 characters of the key (e.g. ak_live_abc1) */
444
448
  key_prefix: string;
445
449
  /** Role granted to this API key */
@@ -484,6 +488,8 @@ interface ApiKeyCreated {
484
488
  id: string;
485
489
  /** Human-readable name for the API key */
486
490
  name: string;
491
+ /** Id of the team member the key acts as, as returned by the team endpoint. The owner's role caps the key's effective role, and the key stops working once the owner is removed from the tenant. */
492
+ owner_profile_id: string;
487
493
  /** First 12 characters of the key (e.g. ak_live_abc1) */
488
494
  key_prefix: string;
489
495
  /** Role granted to this API key */
@@ -3335,6 +3341,10 @@ type ListApiKeysParams = {
3335
3341
  * Include revoked keys in the response
3336
3342
  */
3337
3343
  include_revoked?: ListApiKeysIncludeRevoked;
3344
+ /**
3345
+ * Only return keys owned by this team member. Ids come from the team endpoint.
3346
+ */
3347
+ owner_profile_id?: string;
3338
3348
  };
3339
3349
 
3340
3350
  /**
@@ -3540,6 +3550,7 @@ type ListCaseLinksEntityType = (typeof ListCaseLinksEntityType)[keyof typeof Lis
3540
3550
  declare const ListCaseLinksEntityType: {
3541
3551
  readonly artifact: "artifact";
3542
3552
  readonly call: "call";
3553
+ readonly chat: "chat";
3543
3554
  readonly email: "email";
3544
3555
  readonly extract: "extract";
3545
3556
  readonly worker_run: "worker_run";
@@ -7237,7 +7248,7 @@ declare const useGetCase: <TError = ErrorType<ErrorResponse>>(id: string, option
7237
7248
  swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
7238
7249
  };
7239
7250
  /**
7240
- * Link one or more entities (artifacts, calls, emails, extracts, worker runs) to a case.
7251
+ * Link one or more entities (artifacts, calls, chats, emails, extracts, worker runs) to a case.
7241
7252
 
7242
7253
  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`.
7243
7254
  * @summary Add case links
@@ -7294,28 +7305,28 @@ declare const useListCaseLinks: <TError = ErrorType<ErrorResponse>>(id: string,
7294
7305
  * Remove the link between a case and an entity. Removal is idempotent: removing a link that does not exist succeeds without effect.
7295
7306
  * @summary Remove case link
7296
7307
  */
7297
- declare const getRemoveCaseLinkUrl: (id: string, entityType: "artifact" | "call" | "email" | "extract" | "worker_run", entityId: string) => string;
7298
- declare const removeCaseLink: (id: string, entityType: "artifact" | "call" | "email" | "extract" | "worker_run", entityId: string, options?: RequestInit) => Promise<RemoveCaseLinkResponse>;
7299
- declare const getRemoveCaseLinkMutationFetcher: (id: string, entityType: "artifact" | "call" | "email" | "extract" | "worker_run", entityId: string, options?: SecondParameter$h<typeof customFetch>) => (_: Key, __: {
7308
+ declare const getRemoveCaseLinkUrl: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "worker_run", entityId: string) => string;
7309
+ declare const removeCaseLink: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "worker_run", entityId: string, options?: RequestInit) => Promise<RemoveCaseLinkResponse>;
7310
+ declare const getRemoveCaseLinkMutationFetcher: (id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "worker_run", entityId: string, options?: SecondParameter$h<typeof customFetch>) => (_: Key, __: {
7300
7311
  arg: Arguments;
7301
7312
  }) => Promise<RemoveCaseLinkResponse>;
7302
- declare const getRemoveCaseLinkMutationKey: (id: string, entityType: "artifact" | "call" | "email" | "extract" | "worker_run", entityId: string) => readonly [`/v1/cases/${string}/links/artifact/${string}` | `/v1/cases/${string}/links/call/${string}` | `/v1/cases/${string}/links/email/${string}` | `/v1/cases/${string}/links/extract/${string}` | `/v1/cases/${string}/links/worker_run/${string}`];
7313
+ 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}`];
7303
7314
  type RemoveCaseLinkMutationResult = NonNullable<Awaited$h<ReturnType<typeof removeCaseLink>>>;
7304
7315
  /**
7305
7316
  * @summary Remove case link
7306
7317
  */
7307
- declare const useRemoveCaseLink: <TError = ErrorType<ErrorResponse>>(id: string, entityType: "artifact" | "call" | "email" | "extract" | "worker_run", entityId: string, options?: {
7318
+ declare const useRemoveCaseLink: <TError = ErrorType<ErrorResponse>>(id: string, entityType: "artifact" | "call" | "chat" | "email" | "extract" | "worker_run", entityId: string, options?: {
7308
7319
  swr?: SWRMutationConfiguration<Awaited$h<ReturnType<typeof removeCaseLink>>, TError, Key, Arguments, Awaited$h<ReturnType<typeof removeCaseLink>>> & {
7309
7320
  swrKey?: string;
7310
7321
  };
7311
7322
  request?: SecondParameter$h<typeof customFetch>;
7312
7323
  }) => {
7313
7324
  isMutating: boolean;
7314
- trigger: swr_mutation.TriggerWithOptionsArgs<RemoveCaseLinkResponse, TError, string | readonly [`/v1/cases/${string}/links/artifact/${string}` | `/v1/cases/${string}/links/call/${string}` | `/v1/cases/${string}/links/email/${string}` | `/v1/cases/${string}/links/extract/${string}` | `/v1/cases/${string}/links/worker_run/${string}`], Arguments>;
7325
+ 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>;
7315
7326
  reset: () => void;
7316
7327
  data: RemoveCaseLinkResponse | undefined;
7317
7328
  error: TError | undefined;
7318
- swrKey: string | readonly [`/v1/cases/${string}/links/artifact/${string}` | `/v1/cases/${string}/links/call/${string}` | `/v1/cases/${string}/links/email/${string}` | `/v1/cases/${string}/links/extract/${string}` | `/v1/cases/${string}/links/worker_run/${string}`];
7329
+ 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}`];
7319
7330
  };
7320
7331
 
7321
7332
  type AwaitedInput$g<T> = PromiseLike<T> | T;
package/dist/index.js CHANGED
@@ -4100,6 +4100,7 @@ var useUpdateWorkerMcps = (workerId, options) => {
4100
4100
  var AddCaseLinksBodyEntitiesItemEntityType = {
4101
4101
  artifact: "artifact",
4102
4102
  call: "call",
4103
+ chat: "chat",
4103
4104
  email: "email",
4104
4105
  extract: "extract",
4105
4106
  worker_run: "worker_run"
@@ -4149,6 +4150,7 @@ var CallDirection = {
4149
4150
  var CaseLinkEntityType = {
4150
4151
  artifact: "artifact",
4151
4152
  call: "call",
4153
+ chat: "chat",
4152
4154
  email: "email",
4153
4155
  extract: "extract",
4154
4156
  worker_run: "worker_run"
@@ -4378,6 +4380,7 @@ var ListCallsStatus = {
4378
4380
  var ListCaseLinksEntityType = {
4379
4381
  artifact: "artifact",
4380
4382
  call: "call",
4383
+ chat: "chat",
4381
4384
  email: "email",
4382
4385
  extract: "extract",
4383
4386
  worker_run: "worker_run"