@domu-ai/kiban-sdk 1.197.2 → 1.198.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/internal/client.d.ts +25 -7
- package/internal/schemas.d.ts +1 -1
- package/internal/schemas.js +1 -1
- package/package.json +1 -1
package/internal/client.d.ts
CHANGED
|
@@ -1488,11 +1488,21 @@ export type InternalTargetsIdentifierGet404 = {
|
|
|
1488
1488
|
code?: string;
|
|
1489
1489
|
details?: unknown | null;
|
|
1490
1490
|
};
|
|
1491
|
+
export type InternalTargetsIdentifierGet409 = {
|
|
1492
|
+
message: string;
|
|
1493
|
+
code?: string;
|
|
1494
|
+
details?: unknown | null;
|
|
1495
|
+
};
|
|
1491
1496
|
export type InternalTargetsIdentifierGet500 = {
|
|
1492
1497
|
message: string;
|
|
1493
1498
|
code?: string;
|
|
1494
1499
|
details?: unknown | null;
|
|
1495
1500
|
};
|
|
1501
|
+
export type InternalTargetsIdentifierGet503 = {
|
|
1502
|
+
message: string;
|
|
1503
|
+
code?: string;
|
|
1504
|
+
details?: unknown | null;
|
|
1505
|
+
};
|
|
1496
1506
|
export type InternalReportsPaymentsCampaignIdPostParams = {
|
|
1497
1507
|
/**
|
|
1498
1508
|
* Report date in YYYY-MM-DD format. Defaults to yesterday.
|
|
@@ -5324,7 +5334,7 @@ export declare const useInternalTargetsUploadPresignPost: <TError = InternalTarg
|
|
|
5324
5334
|
data: InternalTargetsUploadPresignPostBody;
|
|
5325
5335
|
}, TContext>;
|
|
5326
5336
|
/**
|
|
5327
|
-
* Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility.
|
|
5337
|
+
* Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility. Returns 409 with `code: NOT_QUALIFIED` and `details.skipReason` when the compliance gate (`target.qualify`) says don't dial — kiban has already persisted the appropriate status (ABORTED for permanent skips, BRUSHED for soft); dispatchers should treat any 409 as 'skip this call'.
|
|
5328
5338
|
* @summary Get target by identifier
|
|
5329
5339
|
*/
|
|
5330
5340
|
export type internalTargetsIdentifierGetResponse200 = {
|
|
@@ -5339,41 +5349,49 @@ export type internalTargetsIdentifierGetResponse404 = {
|
|
|
5339
5349
|
data: InternalTargetsIdentifierGet404;
|
|
5340
5350
|
status: 404;
|
|
5341
5351
|
};
|
|
5352
|
+
export type internalTargetsIdentifierGetResponse409 = {
|
|
5353
|
+
data: InternalTargetsIdentifierGet409;
|
|
5354
|
+
status: 409;
|
|
5355
|
+
};
|
|
5342
5356
|
export type internalTargetsIdentifierGetResponse500 = {
|
|
5343
5357
|
data: InternalTargetsIdentifierGet500;
|
|
5344
5358
|
status: 500;
|
|
5345
5359
|
};
|
|
5360
|
+
export type internalTargetsIdentifierGetResponse503 = {
|
|
5361
|
+
data: InternalTargetsIdentifierGet503;
|
|
5362
|
+
status: 503;
|
|
5363
|
+
};
|
|
5346
5364
|
export type internalTargetsIdentifierGetResponseSuccess = (internalTargetsIdentifierGetResponse200) & {
|
|
5347
5365
|
headers: Headers;
|
|
5348
5366
|
};
|
|
5349
|
-
export type internalTargetsIdentifierGetResponseError = (internalTargetsIdentifierGetResponse400 | internalTargetsIdentifierGetResponse404 | internalTargetsIdentifierGetResponse500) & {
|
|
5367
|
+
export type internalTargetsIdentifierGetResponseError = (internalTargetsIdentifierGetResponse400 | internalTargetsIdentifierGetResponse404 | internalTargetsIdentifierGetResponse409 | internalTargetsIdentifierGetResponse500 | internalTargetsIdentifierGetResponse503) & {
|
|
5350
5368
|
headers: Headers;
|
|
5351
5369
|
};
|
|
5352
5370
|
export type internalTargetsIdentifierGetResponse = (internalTargetsIdentifierGetResponseSuccess | internalTargetsIdentifierGetResponseError);
|
|
5353
5371
|
export declare const getInternalTargetsIdentifierGetUrl: (identifier: string, params: InternalTargetsIdentifierGetParams) => string;
|
|
5354
5372
|
export declare const internalTargetsIdentifierGet: (identifier: string, params: InternalTargetsIdentifierGetParams, options?: RequestInit) => Promise<internalTargetsIdentifierGetResponse>;
|
|
5355
5373
|
export declare const getInternalTargetsIdentifierGetQueryKey: (identifier: string, params?: InternalTargetsIdentifierGetParams) => readonly [`/v1/internal/targets/${string}`, ...InternalTargetsIdentifierGetParams[]];
|
|
5356
|
-
export declare const getInternalTargetsIdentifierGetQueryOptions: <TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet500>(identifier: string, params: InternalTargetsIdentifierGetParams, options?: {
|
|
5374
|
+
export declare const getInternalTargetsIdentifierGetQueryOptions: <TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet409 | InternalTargetsIdentifierGet500 | InternalTargetsIdentifierGet503>(identifier: string, params: InternalTargetsIdentifierGetParams, options?: {
|
|
5357
5375
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, TData>>;
|
|
5358
5376
|
request?: SecondParameter<typeof customFetcher>;
|
|
5359
5377
|
}) => UseQueryOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, TData> & {
|
|
5360
5378
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
5361
5379
|
};
|
|
5362
5380
|
export type InternalTargetsIdentifierGetQueryResult = NonNullable<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>>;
|
|
5363
|
-
export type InternalTargetsIdentifierGetQueryError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet500;
|
|
5364
|
-
export declare function useInternalTargetsIdentifierGet<TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet500>(identifier: string, params: InternalTargetsIdentifierGetParams, options: {
|
|
5381
|
+
export type InternalTargetsIdentifierGetQueryError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet409 | InternalTargetsIdentifierGet500 | InternalTargetsIdentifierGet503;
|
|
5382
|
+
export declare function useInternalTargetsIdentifierGet<TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet409 | InternalTargetsIdentifierGet500 | InternalTargetsIdentifierGet503>(identifier: string, params: InternalTargetsIdentifierGetParams, options: {
|
|
5365
5383
|
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, Awaited<ReturnType<typeof internalTargetsIdentifierGet>>>, 'initialData'>;
|
|
5366
5384
|
request?: SecondParameter<typeof customFetcher>;
|
|
5367
5385
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
5368
5386
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
5369
5387
|
};
|
|
5370
|
-
export declare function useInternalTargetsIdentifierGet<TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet500>(identifier: string, params: InternalTargetsIdentifierGetParams, options?: {
|
|
5388
|
+
export declare function useInternalTargetsIdentifierGet<TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet409 | InternalTargetsIdentifierGet500 | InternalTargetsIdentifierGet503>(identifier: string, params: InternalTargetsIdentifierGetParams, options?: {
|
|
5371
5389
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, Awaited<ReturnType<typeof internalTargetsIdentifierGet>>>, 'initialData'>;
|
|
5372
5390
|
request?: SecondParameter<typeof customFetcher>;
|
|
5373
5391
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
5374
5392
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
5375
5393
|
};
|
|
5376
|
-
export declare function useInternalTargetsIdentifierGet<TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet500>(identifier: string, params: InternalTargetsIdentifierGetParams, options?: {
|
|
5394
|
+
export declare function useInternalTargetsIdentifierGet<TData = Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError = InternalTargetsIdentifierGet400 | InternalTargetsIdentifierGet404 | InternalTargetsIdentifierGet409 | InternalTargetsIdentifierGet500 | InternalTargetsIdentifierGet503>(identifier: string, params: InternalTargetsIdentifierGetParams, options?: {
|
|
5377
5395
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof internalTargetsIdentifierGet>>, TError, TData>>;
|
|
5378
5396
|
request?: SecondParameter<typeof customFetcher>;
|
|
5379
5397
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
package/internal/schemas.d.ts
CHANGED
|
@@ -2218,7 +2218,7 @@ export declare const PresignUploadResponse: zod.ZodObject<{
|
|
|
2218
2218
|
expiresIn: number;
|
|
2219
2219
|
}>;
|
|
2220
2220
|
/**
|
|
2221
|
-
* Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility.
|
|
2221
|
+
* Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility. Returns 409 with `code: NOT_QUALIFIED` and `details.skipReason` when the compliance gate (`target.qualify`) says don't dial — kiban has already persisted the appropriate status (ABORTED for permanent skips, BRUSHED for soft); dispatchers should treat any 409 as 'skip this call'.
|
|
2222
2222
|
* @summary Get target by identifier
|
|
2223
2223
|
*/
|
|
2224
2224
|
export declare const GetTargetParams: zod.ZodObject<{
|
package/internal/schemas.js
CHANGED
|
@@ -706,7 +706,7 @@ exports.PresignUploadResponse = zod.object({
|
|
|
706
706
|
"expiresIn": zod.number().describe('URL expiry in seconds')
|
|
707
707
|
});
|
|
708
708
|
/**
|
|
709
|
-
* Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility.
|
|
709
|
+
* Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility. Returns 409 with `code: NOT_QUALIFIED` and `details.skipReason` when the compliance gate (`target.qualify`) says don't dial — kiban has already persisted the appropriate status (ABORTED for permanent skips, BRUSHED for soft); dispatchers should treat any 409 as 'skip this call'.
|
|
710
710
|
* @summary Get target by identifier
|
|
711
711
|
*/
|
|
712
712
|
exports.GetTargetParams = zod.object({
|