@domu-ai/kiban-sdk 1.124.0 → 1.126.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.
@@ -144,6 +144,40 @@ export type DashboardAgentsGet500 = {
144
144
  code?: string;
145
145
  details?: unknown | null;
146
146
  };
147
+ export type DashboardAgentsGroupedGet200DataItemVersionsItem = {
148
+ id: string;
149
+ version: number;
150
+ language: string;
151
+ /** @nullable */
152
+ commit: string | null;
153
+ /** @nullable */
154
+ label: string | null;
155
+ campaign_id: string;
156
+ provider: string;
157
+ };
158
+ export type DashboardAgentsGroupedGet200DataItem = {
159
+ slug: string;
160
+ version_count: number;
161
+ versions: DashboardAgentsGroupedGet200DataItemVersionsItem[];
162
+ };
163
+ export type DashboardAgentsGroupedGet200 = {
164
+ data: DashboardAgentsGroupedGet200DataItem[];
165
+ };
166
+ export type DashboardAgentsGroupedGet401 = {
167
+ message: string;
168
+ code?: string;
169
+ details?: unknown | null;
170
+ };
171
+ export type DashboardAgentsGroupedGet404 = {
172
+ message: string;
173
+ code?: string;
174
+ details?: unknown | null;
175
+ };
176
+ export type DashboardAgentsGroupedGet500 = {
177
+ message: string;
178
+ code?: string;
179
+ details?: unknown | null;
180
+ };
147
181
  export type DashboardInputFieldsGet200 = {
148
182
  data: string[];
149
183
  };
@@ -260,6 +294,45 @@ export type DashboardCallsCallIdReviewPatch500 = {
260
294
  code?: string;
261
295
  details?: unknown | null;
262
296
  };
297
+ /**
298
+ * Mock customer data for template rendering
299
+ */
300
+ export type DashboardAgentSandboxStartPostBodyInputFields = {
301
+ [key: string]: unknown;
302
+ };
303
+ export type DashboardAgentSandboxStartPostBody = {
304
+ /**
305
+ * Agent ID to use for the sandbox call
306
+ * @minLength 1
307
+ */
308
+ agentId: string;
309
+ /** Mock customer first name for template rendering */
310
+ firstName?: string;
311
+ /** Mock customer last name for template rendering */
312
+ lastName?: string;
313
+ /** Mock customer data for template rendering */
314
+ inputFields?: DashboardAgentSandboxStartPostBodyInputFields;
315
+ };
316
+ export type DashboardAgentSandboxStartPost201Data = {
317
+ callId: string;
318
+ roomName: string;
319
+ recordingUrl: string;
320
+ participantToken: string;
321
+ livekitUrl: string;
322
+ };
323
+ export type DashboardAgentSandboxStartPost201 = {
324
+ data: DashboardAgentSandboxStartPost201Data;
325
+ };
326
+ export type DashboardAgentSandboxStartPost404 = {
327
+ message: string;
328
+ code?: string;
329
+ details?: unknown | null;
330
+ };
331
+ export type DashboardAgentSandboxStartPost500 = {
332
+ message: string;
333
+ code?: string;
334
+ details?: unknown | null;
335
+ };
263
336
  export type DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem = typeof DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem[keyof typeof DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem];
264
337
  export declare const DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem: {
265
338
  readonly NUMBER_1: 1;
@@ -464,6 +537,7 @@ export type DashboardSchedulerCreatePost500 = {
464
537
  };
465
538
  export type DashboardClientFeaturesGet200Data = {
466
539
  observabilityEnabled: boolean;
540
+ agentsEnabled: boolean;
467
541
  };
468
542
  export type DashboardClientFeaturesGet200 = {
469
543
  data: DashboardClientFeaturesGet200Data;
@@ -483,6 +557,41 @@ export type DashboardClientFeaturesGet500 = {
483
557
  code?: string;
484
558
  details?: unknown | null;
485
559
  };
560
+ export type DashboardTargetsLatestGetParams = {
561
+ campaignId: string;
562
+ };
563
+ export type DashboardTargetsLatestGet200Data = {
564
+ id: string;
565
+ /** @nullable */
566
+ first_name: string | null;
567
+ /** @nullable */
568
+ last_name: string | null;
569
+ /** @nullable */
570
+ phone_number: string | null;
571
+ /** @nullable */
572
+ external_id: string | null;
573
+ /** @nullable */
574
+ email: string | null;
575
+ input_fields?: unknown | null;
576
+ };
577
+ export type DashboardTargetsLatestGet200 = {
578
+ data: DashboardTargetsLatestGet200Data;
579
+ };
580
+ export type DashboardTargetsLatestGet401 = {
581
+ message: string;
582
+ code?: string;
583
+ details?: unknown | null;
584
+ };
585
+ export type DashboardTargetsLatestGet404 = {
586
+ message: string;
587
+ code?: string;
588
+ details?: unknown | null;
589
+ };
590
+ export type DashboardTargetsLatestGet500 = {
591
+ message: string;
592
+ code?: string;
593
+ details?: unknown | null;
594
+ };
486
595
  /**
487
596
  * Returns a map of campaign ID to campaign name for the specified campaign IDs.
488
597
  * @summary Get campaign names by IDs
@@ -603,6 +712,35 @@ export type dashboardAgentsGetResponseError = (dashboardAgentsGetResponse400 | d
603
712
  export type dashboardAgentsGetResponse = (dashboardAgentsGetResponseSuccess | dashboardAgentsGetResponseError);
604
713
  export declare const getDashboardAgentsGetUrl: () => string;
605
714
  export declare const dashboardAgentsGet: (options?: RequestInit) => Promise<dashboardAgentsGetResponse>;
715
+ /**
716
+ * Returns all agents for the authenticated org, grouped by slug with version metadata. Versions ordered highest-first.
717
+ * @summary List agents grouped by slug
718
+ */
719
+ export type dashboardAgentsGroupedGetResponse200 = {
720
+ data: DashboardAgentsGroupedGet200;
721
+ status: 200;
722
+ };
723
+ export type dashboardAgentsGroupedGetResponse401 = {
724
+ data: DashboardAgentsGroupedGet401;
725
+ status: 401;
726
+ };
727
+ export type dashboardAgentsGroupedGetResponse404 = {
728
+ data: DashboardAgentsGroupedGet404;
729
+ status: 404;
730
+ };
731
+ export type dashboardAgentsGroupedGetResponse500 = {
732
+ data: DashboardAgentsGroupedGet500;
733
+ status: 500;
734
+ };
735
+ export type dashboardAgentsGroupedGetResponseSuccess = (dashboardAgentsGroupedGetResponse200) & {
736
+ headers: Headers;
737
+ };
738
+ export type dashboardAgentsGroupedGetResponseError = (dashboardAgentsGroupedGetResponse401 | dashboardAgentsGroupedGetResponse404 | dashboardAgentsGroupedGetResponse500) & {
739
+ headers: Headers;
740
+ };
741
+ export type dashboardAgentsGroupedGetResponse = (dashboardAgentsGroupedGetResponseSuccess | dashboardAgentsGroupedGetResponseError);
742
+ export declare const getDashboardAgentsGroupedGetUrl: () => string;
743
+ export declare const dashboardAgentsGroupedGet: (options?: RequestInit) => Promise<dashboardAgentsGroupedGetResponse>;
606
744
  /**
607
745
  * Returns unique input field labels from all campaigns for the authenticated user's organization.
608
746
  * @summary List input field keys
@@ -752,6 +890,30 @@ export type dashboardCallsCallIdReviewPatchResponseError = (dashboardCallsCallId
752
890
  export type dashboardCallsCallIdReviewPatchResponse = (dashboardCallsCallIdReviewPatchResponseSuccess | dashboardCallsCallIdReviewPatchResponseError);
753
891
  export declare const getDashboardCallsCallIdReviewPatchUrl: (callId: string) => string;
754
892
  export declare const dashboardCallsCallIdReviewPatch: (callId: string, dashboardCallsCallIdReviewPatchBody: DashboardCallsCallIdReviewPatchBody, options?: RequestInit) => Promise<dashboardCallsCallIdReviewPatchResponse>;
893
+ /**
894
+ * @summary Start a sandbox WebRTC call for browser-based agent testing
895
+ */
896
+ export type dashboardAgentSandboxStartPostResponse201 = {
897
+ data: DashboardAgentSandboxStartPost201;
898
+ status: 201;
899
+ };
900
+ export type dashboardAgentSandboxStartPostResponse404 = {
901
+ data: DashboardAgentSandboxStartPost404;
902
+ status: 404;
903
+ };
904
+ export type dashboardAgentSandboxStartPostResponse500 = {
905
+ data: DashboardAgentSandboxStartPost500;
906
+ status: 500;
907
+ };
908
+ export type dashboardAgentSandboxStartPostResponseSuccess = (dashboardAgentSandboxStartPostResponse201) & {
909
+ headers: Headers;
910
+ };
911
+ export type dashboardAgentSandboxStartPostResponseError = (dashboardAgentSandboxStartPostResponse404 | dashboardAgentSandboxStartPostResponse500) & {
912
+ headers: Headers;
913
+ };
914
+ export type dashboardAgentSandboxStartPostResponse = (dashboardAgentSandboxStartPostResponseSuccess | dashboardAgentSandboxStartPostResponseError);
915
+ export declare const getDashboardAgentSandboxStartPostUrl: () => string;
916
+ export declare const dashboardAgentSandboxStartPost: (dashboardAgentSandboxStartPostBody: DashboardAgentSandboxStartPostBody, options?: RequestInit) => Promise<dashboardAgentSandboxStartPostResponse>;
755
917
  /**
756
918
  * Generates journey JSON from schedule config and validates compliance rules. Returns journey, warnings, target count, and estimated steps without persisting anything.
757
919
  * @summary Preview a campaign schedule
@@ -847,3 +1009,32 @@ export type dashboardClientFeaturesGetResponseError = (dashboardClientFeaturesGe
847
1009
  export type dashboardClientFeaturesGetResponse = (dashboardClientFeaturesGetResponseSuccess | dashboardClientFeaturesGetResponseError);
848
1010
  export declare const getDashboardClientFeaturesGetUrl: () => string;
849
1011
  export declare const dashboardClientFeaturesGet: (options?: RequestInit) => Promise<dashboardClientFeaturesGetResponse>;
1012
+ /**
1013
+ * Returns the most recently created target for a campaign, used to pre-populate sandbox mock customer data.
1014
+ * @summary Get latest target for a campaign
1015
+ */
1016
+ export type dashboardTargetsLatestGetResponse200 = {
1017
+ data: DashboardTargetsLatestGet200;
1018
+ status: 200;
1019
+ };
1020
+ export type dashboardTargetsLatestGetResponse401 = {
1021
+ data: DashboardTargetsLatestGet401;
1022
+ status: 401;
1023
+ };
1024
+ export type dashboardTargetsLatestGetResponse404 = {
1025
+ data: DashboardTargetsLatestGet404;
1026
+ status: 404;
1027
+ };
1028
+ export type dashboardTargetsLatestGetResponse500 = {
1029
+ data: DashboardTargetsLatestGet500;
1030
+ status: 500;
1031
+ };
1032
+ export type dashboardTargetsLatestGetResponseSuccess = (dashboardTargetsLatestGetResponse200) & {
1033
+ headers: Headers;
1034
+ };
1035
+ export type dashboardTargetsLatestGetResponseError = (dashboardTargetsLatestGetResponse401 | dashboardTargetsLatestGetResponse404 | dashboardTargetsLatestGetResponse500) & {
1036
+ headers: Headers;
1037
+ };
1038
+ export type dashboardTargetsLatestGetResponse = (dashboardTargetsLatestGetResponseSuccess | dashboardTargetsLatestGetResponseError);
1039
+ export declare const getDashboardTargetsLatestGetUrl: (params: DashboardTargetsLatestGetParams) => string;
1040
+ export declare const dashboardTargetsLatestGet: (params: DashboardTargetsLatestGetParams, options?: RequestInit) => Promise<dashboardTargetsLatestGetResponse>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.dashboardClientFeaturesGet = exports.getDashboardClientFeaturesGetUrl = exports.dashboardSchedulerCreatePost = exports.getDashboardSchedulerCreatePostUrl = exports.dashboardSchedulerPreviewPost = exports.getDashboardSchedulerPreviewPostUrl = exports.dashboardCallsCallIdReviewPatch = exports.getDashboardCallsCallIdReviewPatchUrl = exports.dashboardCallsReviewStatusPost = exports.getDashboardCallsReviewStatusPostUrl = exports.dashboardCallsCallIdGet = exports.getDashboardCallsCallIdGetUrl = exports.dashboardOutputFieldsGet = exports.getDashboardOutputFieldsGetUrl = exports.dashboardInputFieldsGet = exports.getDashboardInputFieldsGetUrl = exports.dashboardAgentsGet = exports.getDashboardAgentsGetUrl = exports.dashboardCampaignsCampaignIdScheduleConfigGet = exports.getDashboardCampaignsCampaignIdScheduleConfigGetUrl = exports.dashboardCampaignsGet = exports.getDashboardCampaignsGetUrl = exports.dashboardCampaignsNamesPost = exports.getDashboardCampaignsNamesPostUrl = exports.DashboardSchedulerCreatePostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerCreatePostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardSchedulerPreviewPost200DataWarningsItemSeverity = exports.DashboardSchedulerPreviewPost200DataWarningsItemType = exports.DashboardSchedulerPreviewPost200DataJourneyStepsItemType = exports.DashboardSchedulerPreviewPostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem = void 0;
3
+ exports.dashboardTargetsLatestGet = exports.getDashboardTargetsLatestGetUrl = exports.dashboardClientFeaturesGet = exports.getDashboardClientFeaturesGetUrl = exports.dashboardSchedulerCreatePost = exports.getDashboardSchedulerCreatePostUrl = exports.dashboardSchedulerPreviewPost = exports.getDashboardSchedulerPreviewPostUrl = exports.dashboardAgentSandboxStartPost = exports.getDashboardAgentSandboxStartPostUrl = exports.dashboardCallsCallIdReviewPatch = exports.getDashboardCallsCallIdReviewPatchUrl = exports.dashboardCallsReviewStatusPost = exports.getDashboardCallsReviewStatusPostUrl = exports.dashboardCallsCallIdGet = exports.getDashboardCallsCallIdGetUrl = exports.dashboardOutputFieldsGet = exports.getDashboardOutputFieldsGetUrl = exports.dashboardInputFieldsGet = exports.getDashboardInputFieldsGetUrl = exports.dashboardAgentsGroupedGet = exports.getDashboardAgentsGroupedGetUrl = exports.dashboardAgentsGet = exports.getDashboardAgentsGetUrl = exports.dashboardCampaignsCampaignIdScheduleConfigGet = exports.getDashboardCampaignsCampaignIdScheduleConfigGetUrl = exports.dashboardCampaignsGet = exports.getDashboardCampaignsGetUrl = exports.dashboardCampaignsNamesPost = exports.getDashboardCampaignsNamesPostUrl = exports.DashboardSchedulerCreatePostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerCreatePostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardSchedulerPreviewPost200DataWarningsItemSeverity = exports.DashboardSchedulerPreviewPost200DataWarningsItemType = exports.DashboardSchedulerPreviewPost200DataJourneyStepsItemType = exports.DashboardSchedulerPreviewPostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem = void 0;
4
4
  /**
5
5
  * Generated by orval v8.2.0 🍺
6
6
  * Do not edit manually.
@@ -108,6 +108,17 @@ const dashboardAgentsGet = async (options) => {
108
108
  });
109
109
  };
110
110
  exports.dashboardAgentsGet = dashboardAgentsGet;
111
+ const getDashboardAgentsGroupedGetUrl = () => {
112
+ return `/v1/dashboard/agents/grouped`;
113
+ };
114
+ exports.getDashboardAgentsGroupedGetUrl = getDashboardAgentsGroupedGetUrl;
115
+ const dashboardAgentsGroupedGet = async (options) => {
116
+ return (0, fetcher_1.customFetcher)((0, exports.getDashboardAgentsGroupedGetUrl)(), {
117
+ ...options,
118
+ method: 'GET'
119
+ });
120
+ };
121
+ exports.dashboardAgentsGroupedGet = dashboardAgentsGroupedGet;
111
122
  const getDashboardInputFieldsGetUrl = () => {
112
123
  return `/v1/dashboard/input-fields`;
113
124
  };
@@ -167,6 +178,19 @@ const dashboardCallsCallIdReviewPatch = async (callId, dashboardCallsCallIdRevie
167
178
  });
168
179
  };
169
180
  exports.dashboardCallsCallIdReviewPatch = dashboardCallsCallIdReviewPatch;
181
+ const getDashboardAgentSandboxStartPostUrl = () => {
182
+ return `/v1/dashboard/agent-sandbox/start`;
183
+ };
184
+ exports.getDashboardAgentSandboxStartPostUrl = getDashboardAgentSandboxStartPostUrl;
185
+ const dashboardAgentSandboxStartPost = async (dashboardAgentSandboxStartPostBody, options) => {
186
+ return (0, fetcher_1.customFetcher)((0, exports.getDashboardAgentSandboxStartPostUrl)(), {
187
+ ...options,
188
+ method: 'POST',
189
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
190
+ body: JSON.stringify(dashboardAgentSandboxStartPostBody)
191
+ });
192
+ };
193
+ exports.dashboardAgentSandboxStartPost = dashboardAgentSandboxStartPost;
170
194
  const getDashboardSchedulerPreviewPostUrl = () => {
171
195
  return `/v1/dashboard/scheduler/preview`;
172
196
  };
@@ -204,3 +228,21 @@ const dashboardClientFeaturesGet = async (options) => {
204
228
  });
205
229
  };
206
230
  exports.dashboardClientFeaturesGet = dashboardClientFeaturesGet;
231
+ const getDashboardTargetsLatestGetUrl = (params) => {
232
+ const normalizedParams = new URLSearchParams();
233
+ Object.entries(params || {}).forEach(([key, value]) => {
234
+ if (value !== undefined) {
235
+ normalizedParams.append(key, value === null ? 'null' : value.toString());
236
+ }
237
+ });
238
+ const stringifiedParams = normalizedParams.toString();
239
+ return stringifiedParams.length > 0 ? `/v1/dashboard/targets/latest?${stringifiedParams}` : `/v1/dashboard/targets/latest`;
240
+ };
241
+ exports.getDashboardTargetsLatestGetUrl = getDashboardTargetsLatestGetUrl;
242
+ const dashboardTargetsLatestGet = async (params, options) => {
243
+ return (0, fetcher_1.customFetcher)((0, exports.getDashboardTargetsLatestGetUrl)(params), {
244
+ ...options,
245
+ method: 'GET'
246
+ });
247
+ };
248
+ exports.dashboardTargetsLatestGet = dashboardTargetsLatestGet;
@@ -394,6 +394,93 @@ export declare const GetAgentsResponse: zod.ZodObject<{
394
394
  campaign_id: string;
395
395
  }[];
396
396
  }>;
397
+ /**
398
+ * Returns all agents for the authenticated org, grouped by slug with version metadata. Versions ordered highest-first.
399
+ * @summary List agents grouped by slug
400
+ */
401
+ export declare const GetAgentsGroupedResponse: zod.ZodObject<{
402
+ data: zod.ZodArray<zod.ZodObject<{
403
+ slug: zod.ZodString;
404
+ version_count: zod.ZodNumber;
405
+ versions: zod.ZodArray<zod.ZodObject<{
406
+ id: zod.ZodString;
407
+ version: zod.ZodNumber;
408
+ language: zod.ZodString;
409
+ commit: zod.ZodNullable<zod.ZodString>;
410
+ label: zod.ZodNullable<zod.ZodString>;
411
+ campaign_id: zod.ZodString;
412
+ provider: zod.ZodString;
413
+ }, "strip", zod.ZodTypeAny, {
414
+ id: string;
415
+ provider: string;
416
+ version: number;
417
+ label: string | null;
418
+ language: string;
419
+ campaign_id: string;
420
+ commit: string | null;
421
+ }, {
422
+ id: string;
423
+ provider: string;
424
+ version: number;
425
+ label: string | null;
426
+ language: string;
427
+ campaign_id: string;
428
+ commit: string | null;
429
+ }>, "many">;
430
+ }, "strip", zod.ZodTypeAny, {
431
+ slug: string;
432
+ version_count: number;
433
+ versions: {
434
+ id: string;
435
+ provider: string;
436
+ version: number;
437
+ label: string | null;
438
+ language: string;
439
+ campaign_id: string;
440
+ commit: string | null;
441
+ }[];
442
+ }, {
443
+ slug: string;
444
+ version_count: number;
445
+ versions: {
446
+ id: string;
447
+ provider: string;
448
+ version: number;
449
+ label: string | null;
450
+ language: string;
451
+ campaign_id: string;
452
+ commit: string | null;
453
+ }[];
454
+ }>, "many">;
455
+ }, "strip", zod.ZodTypeAny, {
456
+ data: {
457
+ slug: string;
458
+ version_count: number;
459
+ versions: {
460
+ id: string;
461
+ provider: string;
462
+ version: number;
463
+ label: string | null;
464
+ language: string;
465
+ campaign_id: string;
466
+ commit: string | null;
467
+ }[];
468
+ }[];
469
+ }, {
470
+ data: {
471
+ slug: string;
472
+ version_count: number;
473
+ versions: {
474
+ id: string;
475
+ provider: string;
476
+ version: number;
477
+ label: string | null;
478
+ language: string;
479
+ campaign_id: string;
480
+ commit: string | null;
481
+ }[];
482
+ }[];
483
+ }>;
397
484
  /**
398
485
  * Returns unique input field labels from all campaigns for the authenticated user's organization.
399
486
  * @summary List input field keys
@@ -511,6 +598,25 @@ export declare const UpdateReviewResponse: zod.ZodObject<{
511
598
  notes: string | null;
512
599
  };
513
600
  }>;
601
+ /**
602
+ * @summary Start a sandbox WebRTC call for browser-based agent testing
603
+ */
604
+ export declare const StartCallBody: zod.ZodObject<{
605
+ agentId: zod.ZodString;
606
+ firstName: zod.ZodOptional<zod.ZodString>;
607
+ lastName: zod.ZodOptional<zod.ZodString>;
608
+ inputFields: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
609
+ }, "strip", zod.ZodTypeAny, {
610
+ agentId: string;
611
+ firstName?: string | undefined;
612
+ lastName?: string | undefined;
613
+ inputFields?: Record<string, unknown> | undefined;
614
+ }, {
615
+ agentId: string;
616
+ firstName?: string | undefined;
617
+ lastName?: string | undefined;
618
+ inputFields?: Record<string, unknown> | undefined;
619
+ }>;
514
620
  /**
515
621
  * Generates journey JSON from schedule config and validates compliance rules. Returns journey, warnings, target count, and estimated steps without persisting anything.
516
622
  * @summary Preview a campaign schedule
@@ -1007,17 +1113,80 @@ export declare const CreateBody: zod.ZodObject<{
1007
1113
  export declare const GetClientFeaturesResponse: zod.ZodObject<{
1008
1114
  data: zod.ZodObject<{
1009
1115
  observabilityEnabled: zod.ZodBoolean;
1116
+ agentsEnabled: zod.ZodBoolean;
1010
1117
  }, "strip", zod.ZodTypeAny, {
1011
1118
  observabilityEnabled: boolean;
1119
+ agentsEnabled: boolean;
1012
1120
  }, {
1013
1121
  observabilityEnabled: boolean;
1122
+ agentsEnabled: boolean;
1014
1123
  }>;
1015
1124
  }, "strip", zod.ZodTypeAny, {
1016
1125
  data: {
1017
1126
  observabilityEnabled: boolean;
1127
+ agentsEnabled: boolean;
1018
1128
  };
1019
1129
  }, {
1020
1130
  data: {
1021
1131
  observabilityEnabled: boolean;
1132
+ agentsEnabled: boolean;
1133
+ };
1134
+ }>;
1135
+ /**
1136
+ * Returns the most recently created target for a campaign, used to pre-populate sandbox mock customer data.
1137
+ * @summary Get latest target for a campaign
1138
+ */
1139
+ export declare const GetLatestTargetQueryParams: zod.ZodObject<{
1140
+ campaignId: zod.ZodString;
1141
+ }, "strip", zod.ZodTypeAny, {
1142
+ campaignId: string;
1143
+ }, {
1144
+ campaignId: string;
1145
+ }>;
1146
+ export declare const GetLatestTargetResponse: zod.ZodObject<{
1147
+ data: zod.ZodObject<{
1148
+ id: zod.ZodString;
1149
+ first_name: zod.ZodNullable<zod.ZodString>;
1150
+ last_name: zod.ZodNullable<zod.ZodString>;
1151
+ phone_number: zod.ZodNullable<zod.ZodString>;
1152
+ external_id: zod.ZodNullable<zod.ZodString>;
1153
+ email: zod.ZodNullable<zod.ZodString>;
1154
+ input_fields: zod.ZodOptional<zod.ZodNullable<zod.ZodUnknown>>;
1155
+ }, "strip", zod.ZodTypeAny, {
1156
+ id: string;
1157
+ external_id: string | null;
1158
+ email: string | null;
1159
+ first_name: string | null;
1160
+ last_name: string | null;
1161
+ phone_number: string | null;
1162
+ input_fields?: unknown;
1163
+ }, {
1164
+ id: string;
1165
+ external_id: string | null;
1166
+ email: string | null;
1167
+ first_name: string | null;
1168
+ last_name: string | null;
1169
+ phone_number: string | null;
1170
+ input_fields?: unknown;
1171
+ }>;
1172
+ }, "strip", zod.ZodTypeAny, {
1173
+ data: {
1174
+ id: string;
1175
+ external_id: string | null;
1176
+ email: string | null;
1177
+ first_name: string | null;
1178
+ last_name: string | null;
1179
+ phone_number: string | null;
1180
+ input_fields?: unknown;
1181
+ };
1182
+ }, {
1183
+ data: {
1184
+ id: string;
1185
+ external_id: string | null;
1186
+ email: string | null;
1187
+ first_name: string | null;
1188
+ last_name: string | null;
1189
+ phone_number: string | null;
1190
+ input_fields?: unknown;
1022
1191
  };
1023
1192
  }>;
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.GetClientFeaturesResponse = exports.CreateBody = exports.createBodyTimeSlotsItemTimeRegExp = exports.PreviewResponse = exports.PreviewBody = exports.previewBodyTimeSlotsItemTimeRegExp = exports.UpdateReviewResponse = exports.UpdateReviewBody = exports.updateReviewBodyNotesMax = exports.UpdateReviewParams = exports.GetReviewStatusResponse = exports.GetReviewStatusBody = exports.GetCallResponse = exports.GetCallParams = exports.GetOutputFieldsResponse = exports.GetInputFieldsResponse = exports.GetAgentsResponse = exports.GetScheduleConfigResponse = exports.GetScheduleConfigParams = exports.GetCampaignsResponse = exports.GetCampaignNamesResponse = exports.GetCampaignNamesBody = void 0;
36
+ exports.GetLatestTargetResponse = exports.GetLatestTargetQueryParams = exports.GetClientFeaturesResponse = exports.CreateBody = exports.createBodyTimeSlotsItemTimeRegExp = exports.PreviewResponse = exports.PreviewBody = exports.previewBodyTimeSlotsItemTimeRegExp = exports.StartCallBody = exports.UpdateReviewResponse = exports.UpdateReviewBody = exports.updateReviewBodyNotesMax = exports.UpdateReviewParams = exports.GetReviewStatusResponse = exports.GetReviewStatusBody = exports.GetCallResponse = exports.GetCallParams = exports.GetOutputFieldsResponse = exports.GetInputFieldsResponse = exports.GetAgentsGroupedResponse = exports.GetAgentsResponse = exports.GetScheduleConfigResponse = exports.GetScheduleConfigParams = exports.GetCampaignsResponse = exports.GetCampaignNamesResponse = exports.GetCampaignNamesBody = void 0;
37
37
  /**
38
38
  * Generated by orval v8.2.0 🍺
39
39
  * Do not edit manually.
@@ -122,6 +122,25 @@ exports.GetAgentsResponse = zod.object({
122
122
  "campaign_id": zod.string()
123
123
  }))
124
124
  });
125
+ /**
126
+ * Returns all agents for the authenticated org, grouped by slug with version metadata. Versions ordered highest-first.
127
+ * @summary List agents grouped by slug
128
+ */
129
+ exports.GetAgentsGroupedResponse = zod.object({
130
+ "data": zod.array(zod.object({
131
+ "slug": zod.string(),
132
+ "version_count": zod.number(),
133
+ "versions": zod.array(zod.object({
134
+ "id": zod.string(),
135
+ "version": zod.number(),
136
+ "language": zod.string(),
137
+ "commit": zod.string().nullable(),
138
+ "label": zod.string().nullable(),
139
+ "campaign_id": zod.string(),
140
+ "provider": zod.string()
141
+ }))
142
+ }))
143
+ });
125
144
  /**
126
145
  * Returns unique input field labels from all campaigns for the authenticated user's organization.
127
146
  * @summary List input field keys
@@ -177,6 +196,15 @@ exports.UpdateReviewResponse = zod.object({
177
196
  "notes": zod.string().nullable()
178
197
  })
179
198
  });
199
+ /**
200
+ * @summary Start a sandbox WebRTC call for browser-based agent testing
201
+ */
202
+ exports.StartCallBody = zod.object({
203
+ "agentId": zod.string().min(1).describe('Agent ID to use for the sandbox call'),
204
+ "firstName": zod.string().optional().describe('Mock customer first name for template rendering'),
205
+ "lastName": zod.string().optional().describe('Mock customer last name for template rendering'),
206
+ "inputFields": zod.record(zod.string(), zod.unknown()).optional().describe('Mock customer data for template rendering')
207
+ });
180
208
  /**
181
209
  * Generates journey JSON from schedule config and validates compliance rules. Returns journey, warnings, target count, and estimated steps without persisting anything.
182
210
  * @summary Preview a campaign schedule
@@ -262,6 +290,25 @@ exports.CreateBody = zod.object({
262
290
  */
263
291
  exports.GetClientFeaturesResponse = zod.object({
264
292
  "data": zod.object({
265
- "observabilityEnabled": zod.boolean()
293
+ "observabilityEnabled": zod.boolean(),
294
+ "agentsEnabled": zod.boolean()
295
+ })
296
+ });
297
+ /**
298
+ * Returns the most recently created target for a campaign, used to pre-populate sandbox mock customer data.
299
+ * @summary Get latest target for a campaign
300
+ */
301
+ exports.GetLatestTargetQueryParams = zod.object({
302
+ "campaignId": zod.string()
303
+ });
304
+ exports.GetLatestTargetResponse = zod.object({
305
+ "data": zod.object({
306
+ "id": zod.string(),
307
+ "first_name": zod.string().nullable(),
308
+ "last_name": zod.string().nullable(),
309
+ "phone_number": zod.string().nullable(),
310
+ "external_id": zod.string().nullable(),
311
+ "email": zod.string().nullable(),
312
+ "input_fields": zod.unknown().nullish()
266
313
  })
267
314
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domu-ai/kiban-sdk",
3
- "version": "1.124.0",
3
+ "version": "1.126.0",
4
4
  "description": "Generated TypeScript SDKs for Kiban public, internal, and dashboard APIs.",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./index.js",