@domu-ai/kiban-sdk 1.140.1 → 1.141.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/dashboard/client.d.ts +371 -0
- package/dashboard/client.js +85 -1
- package/dashboard/schemas.d.ts +295 -0
- package/dashboard/schemas.js +102 -1
- package/internal/client.d.ts +1 -1
- package/internal/schemas.d.ts +1 -1
- package/internal/schemas.js +1 -1
- package/package.json +1 -1
package/dashboard/client.d.ts
CHANGED
|
@@ -621,6 +621,185 @@ export type DashboardTargetsLatestGet500 = {
|
|
|
621
621
|
code?: string;
|
|
622
622
|
details?: unknown | null;
|
|
623
623
|
};
|
|
624
|
+
export type DashboardWindmillSchedulesGet200DataItem = {
|
|
625
|
+
id: string;
|
|
626
|
+
name: string;
|
|
627
|
+
campaign_id: string;
|
|
628
|
+
windmill_schedule_path: string;
|
|
629
|
+
enabled: boolean;
|
|
630
|
+
schedule: string;
|
|
631
|
+
timezone: string;
|
|
632
|
+
summary?: string;
|
|
633
|
+
};
|
|
634
|
+
export type DashboardWindmillSchedulesGet200 = {
|
|
635
|
+
data: DashboardWindmillSchedulesGet200DataItem[];
|
|
636
|
+
};
|
|
637
|
+
export type DashboardWindmillSchedulesGet401 = {
|
|
638
|
+
message: string;
|
|
639
|
+
code?: string;
|
|
640
|
+
details?: unknown | null;
|
|
641
|
+
};
|
|
642
|
+
export type DashboardWindmillSchedulesGet500 = {
|
|
643
|
+
message: string;
|
|
644
|
+
code?: string;
|
|
645
|
+
details?: unknown | null;
|
|
646
|
+
};
|
|
647
|
+
export type DashboardWindmillSchedulesIdGet200DataArgs = {
|
|
648
|
+
[key: string]: unknown;
|
|
649
|
+
};
|
|
650
|
+
export type DashboardWindmillSchedulesIdGet200Data = {
|
|
651
|
+
id: string;
|
|
652
|
+
name: string;
|
|
653
|
+
campaign_id: string;
|
|
654
|
+
windmill_schedule_path: string;
|
|
655
|
+
windmill_flow_path: string;
|
|
656
|
+
enabled: boolean;
|
|
657
|
+
schedule: string;
|
|
658
|
+
timezone: string;
|
|
659
|
+
args: DashboardWindmillSchedulesIdGet200DataArgs;
|
|
660
|
+
summary?: string;
|
|
661
|
+
description?: string;
|
|
662
|
+
no_flow_overlap?: boolean;
|
|
663
|
+
paused_until?: string;
|
|
664
|
+
cron_version?: string;
|
|
665
|
+
};
|
|
666
|
+
export type DashboardWindmillSchedulesIdGet200 = {
|
|
667
|
+
data: DashboardWindmillSchedulesIdGet200Data;
|
|
668
|
+
};
|
|
669
|
+
export type DashboardWindmillSchedulesIdGet401 = {
|
|
670
|
+
message: string;
|
|
671
|
+
code?: string;
|
|
672
|
+
details?: unknown | null;
|
|
673
|
+
};
|
|
674
|
+
export type DashboardWindmillSchedulesIdGet404 = {
|
|
675
|
+
message: string;
|
|
676
|
+
code?: string;
|
|
677
|
+
details?: unknown | null;
|
|
678
|
+
};
|
|
679
|
+
export type DashboardWindmillSchedulesIdGet500 = {
|
|
680
|
+
message: string;
|
|
681
|
+
code?: string;
|
|
682
|
+
details?: unknown | null;
|
|
683
|
+
};
|
|
684
|
+
export type DashboardWindmillSchedulesIdPutBodyArgs = {
|
|
685
|
+
[key: string]: unknown;
|
|
686
|
+
};
|
|
687
|
+
export type DashboardWindmillSchedulesIdPutBody = {
|
|
688
|
+
schedule?: string;
|
|
689
|
+
timezone?: string;
|
|
690
|
+
args?: DashboardWindmillSchedulesIdPutBodyArgs;
|
|
691
|
+
no_flow_overlap?: boolean;
|
|
692
|
+
summary?: string;
|
|
693
|
+
description?: string;
|
|
694
|
+
};
|
|
695
|
+
export type DashboardWindmillSchedulesIdPut200 = {
|
|
696
|
+
message: string;
|
|
697
|
+
};
|
|
698
|
+
export type DashboardWindmillSchedulesIdPut401 = {
|
|
699
|
+
message: string;
|
|
700
|
+
code?: string;
|
|
701
|
+
details?: unknown | null;
|
|
702
|
+
};
|
|
703
|
+
export type DashboardWindmillSchedulesIdPut404 = {
|
|
704
|
+
message: string;
|
|
705
|
+
code?: string;
|
|
706
|
+
details?: unknown | null;
|
|
707
|
+
};
|
|
708
|
+
export type DashboardWindmillSchedulesIdPut500 = {
|
|
709
|
+
message: string;
|
|
710
|
+
code?: string;
|
|
711
|
+
details?: unknown | null;
|
|
712
|
+
};
|
|
713
|
+
export type DashboardWindmillSchedulesIdTogglePatchBody = {
|
|
714
|
+
enabled: boolean;
|
|
715
|
+
};
|
|
716
|
+
export type DashboardWindmillSchedulesIdTogglePatch200 = {
|
|
717
|
+
enabled: boolean;
|
|
718
|
+
};
|
|
719
|
+
export type DashboardWindmillSchedulesIdTogglePatch401 = {
|
|
720
|
+
message: string;
|
|
721
|
+
code?: string;
|
|
722
|
+
details?: unknown | null;
|
|
723
|
+
};
|
|
724
|
+
export type DashboardWindmillSchedulesIdTogglePatch404 = {
|
|
725
|
+
message: string;
|
|
726
|
+
code?: string;
|
|
727
|
+
details?: unknown | null;
|
|
728
|
+
};
|
|
729
|
+
export type DashboardWindmillSchedulesIdTogglePatch500 = {
|
|
730
|
+
message: string;
|
|
731
|
+
code?: string;
|
|
732
|
+
details?: unknown | null;
|
|
733
|
+
};
|
|
734
|
+
export type DashboardWindmillSchedulesIdRunPostBody = {
|
|
735
|
+
[key: string]: unknown;
|
|
736
|
+
};
|
|
737
|
+
export type DashboardWindmillSchedulesIdRunPost201 = {
|
|
738
|
+
job_id: string;
|
|
739
|
+
};
|
|
740
|
+
export type DashboardWindmillSchedulesIdRunPost401 = {
|
|
741
|
+
message: string;
|
|
742
|
+
code?: string;
|
|
743
|
+
details?: unknown | null;
|
|
744
|
+
};
|
|
745
|
+
export type DashboardWindmillSchedulesIdRunPost404 = {
|
|
746
|
+
message: string;
|
|
747
|
+
code?: string;
|
|
748
|
+
details?: unknown | null;
|
|
749
|
+
};
|
|
750
|
+
export type DashboardWindmillSchedulesIdRunPost500 = {
|
|
751
|
+
message: string;
|
|
752
|
+
code?: string;
|
|
753
|
+
details?: unknown | null;
|
|
754
|
+
};
|
|
755
|
+
export type DashboardWindmillSchedulesIdRunsGet200DataItemArgs = {
|
|
756
|
+
[key: string]: unknown;
|
|
757
|
+
};
|
|
758
|
+
export type DashboardWindmillSchedulesIdRunsGet200DataItem = {
|
|
759
|
+
id: string;
|
|
760
|
+
created_at: string;
|
|
761
|
+
started_at?: string;
|
|
762
|
+
duration_ms?: number;
|
|
763
|
+
success?: boolean;
|
|
764
|
+
args?: DashboardWindmillSchedulesIdRunsGet200DataItemArgs;
|
|
765
|
+
is_skipped?: boolean;
|
|
766
|
+
};
|
|
767
|
+
export type DashboardWindmillSchedulesIdRunsGet200 = {
|
|
768
|
+
data: DashboardWindmillSchedulesIdRunsGet200DataItem[];
|
|
769
|
+
};
|
|
770
|
+
export type DashboardWindmillSchedulesIdRunsGet401 = {
|
|
771
|
+
message: string;
|
|
772
|
+
code?: string;
|
|
773
|
+
details?: unknown | null;
|
|
774
|
+
};
|
|
775
|
+
export type DashboardWindmillSchedulesIdRunsGet404 = {
|
|
776
|
+
message: string;
|
|
777
|
+
code?: string;
|
|
778
|
+
details?: unknown | null;
|
|
779
|
+
};
|
|
780
|
+
export type DashboardWindmillSchedulesIdRunsGet500 = {
|
|
781
|
+
message: string;
|
|
782
|
+
code?: string;
|
|
783
|
+
details?: unknown | null;
|
|
784
|
+
};
|
|
785
|
+
export type DashboardWindmillSchedulesIdPreviewGet200 = {
|
|
786
|
+
data: string[];
|
|
787
|
+
};
|
|
788
|
+
export type DashboardWindmillSchedulesIdPreviewGet401 = {
|
|
789
|
+
message: string;
|
|
790
|
+
code?: string;
|
|
791
|
+
details?: unknown | null;
|
|
792
|
+
};
|
|
793
|
+
export type DashboardWindmillSchedulesIdPreviewGet404 = {
|
|
794
|
+
message: string;
|
|
795
|
+
code?: string;
|
|
796
|
+
details?: unknown | null;
|
|
797
|
+
};
|
|
798
|
+
export type DashboardWindmillSchedulesIdPreviewGet500 = {
|
|
799
|
+
message: string;
|
|
800
|
+
code?: string;
|
|
801
|
+
details?: unknown | null;
|
|
802
|
+
};
|
|
624
803
|
/**
|
|
625
804
|
* Returns a map of campaign ID to campaign name for the specified campaign IDs.
|
|
626
805
|
* @summary Get campaign names by IDs
|
|
@@ -1096,3 +1275,195 @@ export type dashboardTargetsLatestGetResponseError = (dashboardTargetsLatestGetR
|
|
|
1096
1275
|
export type dashboardTargetsLatestGetResponse = (dashboardTargetsLatestGetResponseSuccess | dashboardTargetsLatestGetResponseError);
|
|
1097
1276
|
export declare const getDashboardTargetsLatestGetUrl: (params: DashboardTargetsLatestGetParams) => string;
|
|
1098
1277
|
export declare const dashboardTargetsLatestGet: (params: DashboardTargetsLatestGetParams, options?: RequestInit) => Promise<dashboardTargetsLatestGetResponse>;
|
|
1278
|
+
/**
|
|
1279
|
+
* @summary List Windmill schedules for the authenticated client
|
|
1280
|
+
*/
|
|
1281
|
+
export type dashboardWindmillSchedulesGetResponse200 = {
|
|
1282
|
+
data: DashboardWindmillSchedulesGet200;
|
|
1283
|
+
status: 200;
|
|
1284
|
+
};
|
|
1285
|
+
export type dashboardWindmillSchedulesGetResponse401 = {
|
|
1286
|
+
data: DashboardWindmillSchedulesGet401;
|
|
1287
|
+
status: 401;
|
|
1288
|
+
};
|
|
1289
|
+
export type dashboardWindmillSchedulesGetResponse500 = {
|
|
1290
|
+
data: DashboardWindmillSchedulesGet500;
|
|
1291
|
+
status: 500;
|
|
1292
|
+
};
|
|
1293
|
+
export type dashboardWindmillSchedulesGetResponseSuccess = (dashboardWindmillSchedulesGetResponse200) & {
|
|
1294
|
+
headers: Headers;
|
|
1295
|
+
};
|
|
1296
|
+
export type dashboardWindmillSchedulesGetResponseError = (dashboardWindmillSchedulesGetResponse401 | dashboardWindmillSchedulesGetResponse500) & {
|
|
1297
|
+
headers: Headers;
|
|
1298
|
+
};
|
|
1299
|
+
export type dashboardWindmillSchedulesGetResponse = (dashboardWindmillSchedulesGetResponseSuccess | dashboardWindmillSchedulesGetResponseError);
|
|
1300
|
+
export declare const getDashboardWindmillSchedulesGetUrl: () => string;
|
|
1301
|
+
export declare const dashboardWindmillSchedulesGet: (options?: RequestInit) => Promise<dashboardWindmillSchedulesGetResponse>;
|
|
1302
|
+
/**
|
|
1303
|
+
* @summary Get Windmill schedule detail with current args and config
|
|
1304
|
+
*/
|
|
1305
|
+
export type dashboardWindmillSchedulesIdGetResponse200 = {
|
|
1306
|
+
data: DashboardWindmillSchedulesIdGet200;
|
|
1307
|
+
status: 200;
|
|
1308
|
+
};
|
|
1309
|
+
export type dashboardWindmillSchedulesIdGetResponse401 = {
|
|
1310
|
+
data: DashboardWindmillSchedulesIdGet401;
|
|
1311
|
+
status: 401;
|
|
1312
|
+
};
|
|
1313
|
+
export type dashboardWindmillSchedulesIdGetResponse404 = {
|
|
1314
|
+
data: DashboardWindmillSchedulesIdGet404;
|
|
1315
|
+
status: 404;
|
|
1316
|
+
};
|
|
1317
|
+
export type dashboardWindmillSchedulesIdGetResponse500 = {
|
|
1318
|
+
data: DashboardWindmillSchedulesIdGet500;
|
|
1319
|
+
status: 500;
|
|
1320
|
+
};
|
|
1321
|
+
export type dashboardWindmillSchedulesIdGetResponseSuccess = (dashboardWindmillSchedulesIdGetResponse200) & {
|
|
1322
|
+
headers: Headers;
|
|
1323
|
+
};
|
|
1324
|
+
export type dashboardWindmillSchedulesIdGetResponseError = (dashboardWindmillSchedulesIdGetResponse401 | dashboardWindmillSchedulesIdGetResponse404 | dashboardWindmillSchedulesIdGetResponse500) & {
|
|
1325
|
+
headers: Headers;
|
|
1326
|
+
};
|
|
1327
|
+
export type dashboardWindmillSchedulesIdGetResponse = (dashboardWindmillSchedulesIdGetResponseSuccess | dashboardWindmillSchedulesIdGetResponseError);
|
|
1328
|
+
export declare const getDashboardWindmillSchedulesIdGetUrl: (id: string) => string;
|
|
1329
|
+
export declare const dashboardWindmillSchedulesIdGet: (id: string, options?: RequestInit) => Promise<dashboardWindmillSchedulesIdGetResponse>;
|
|
1330
|
+
/**
|
|
1331
|
+
* @summary Update schedule config and args
|
|
1332
|
+
*/
|
|
1333
|
+
export type dashboardWindmillSchedulesIdPutResponse200 = {
|
|
1334
|
+
data: DashboardWindmillSchedulesIdPut200;
|
|
1335
|
+
status: 200;
|
|
1336
|
+
};
|
|
1337
|
+
export type dashboardWindmillSchedulesIdPutResponse401 = {
|
|
1338
|
+
data: DashboardWindmillSchedulesIdPut401;
|
|
1339
|
+
status: 401;
|
|
1340
|
+
};
|
|
1341
|
+
export type dashboardWindmillSchedulesIdPutResponse404 = {
|
|
1342
|
+
data: DashboardWindmillSchedulesIdPut404;
|
|
1343
|
+
status: 404;
|
|
1344
|
+
};
|
|
1345
|
+
export type dashboardWindmillSchedulesIdPutResponse500 = {
|
|
1346
|
+
data: DashboardWindmillSchedulesIdPut500;
|
|
1347
|
+
status: 500;
|
|
1348
|
+
};
|
|
1349
|
+
export type dashboardWindmillSchedulesIdPutResponseSuccess = (dashboardWindmillSchedulesIdPutResponse200) & {
|
|
1350
|
+
headers: Headers;
|
|
1351
|
+
};
|
|
1352
|
+
export type dashboardWindmillSchedulesIdPutResponseError = (dashboardWindmillSchedulesIdPutResponse401 | dashboardWindmillSchedulesIdPutResponse404 | dashboardWindmillSchedulesIdPutResponse500) & {
|
|
1353
|
+
headers: Headers;
|
|
1354
|
+
};
|
|
1355
|
+
export type dashboardWindmillSchedulesIdPutResponse = (dashboardWindmillSchedulesIdPutResponseSuccess | dashboardWindmillSchedulesIdPutResponseError);
|
|
1356
|
+
export declare const getDashboardWindmillSchedulesIdPutUrl: (id: string) => string;
|
|
1357
|
+
export declare const dashboardWindmillSchedulesIdPut: (id: string, dashboardWindmillSchedulesIdPutBody: DashboardWindmillSchedulesIdPutBody, options?: RequestInit) => Promise<dashboardWindmillSchedulesIdPutResponse>;
|
|
1358
|
+
/**
|
|
1359
|
+
* @summary Enable or disable a schedule
|
|
1360
|
+
*/
|
|
1361
|
+
export type dashboardWindmillSchedulesIdTogglePatchResponse200 = {
|
|
1362
|
+
data: DashboardWindmillSchedulesIdTogglePatch200;
|
|
1363
|
+
status: 200;
|
|
1364
|
+
};
|
|
1365
|
+
export type dashboardWindmillSchedulesIdTogglePatchResponse401 = {
|
|
1366
|
+
data: DashboardWindmillSchedulesIdTogglePatch401;
|
|
1367
|
+
status: 401;
|
|
1368
|
+
};
|
|
1369
|
+
export type dashboardWindmillSchedulesIdTogglePatchResponse404 = {
|
|
1370
|
+
data: DashboardWindmillSchedulesIdTogglePatch404;
|
|
1371
|
+
status: 404;
|
|
1372
|
+
};
|
|
1373
|
+
export type dashboardWindmillSchedulesIdTogglePatchResponse500 = {
|
|
1374
|
+
data: DashboardWindmillSchedulesIdTogglePatch500;
|
|
1375
|
+
status: 500;
|
|
1376
|
+
};
|
|
1377
|
+
export type dashboardWindmillSchedulesIdTogglePatchResponseSuccess = (dashboardWindmillSchedulesIdTogglePatchResponse200) & {
|
|
1378
|
+
headers: Headers;
|
|
1379
|
+
};
|
|
1380
|
+
export type dashboardWindmillSchedulesIdTogglePatchResponseError = (dashboardWindmillSchedulesIdTogglePatchResponse401 | dashboardWindmillSchedulesIdTogglePatchResponse404 | dashboardWindmillSchedulesIdTogglePatchResponse500) & {
|
|
1381
|
+
headers: Headers;
|
|
1382
|
+
};
|
|
1383
|
+
export type dashboardWindmillSchedulesIdTogglePatchResponse = (dashboardWindmillSchedulesIdTogglePatchResponseSuccess | dashboardWindmillSchedulesIdTogglePatchResponseError);
|
|
1384
|
+
export declare const getDashboardWindmillSchedulesIdTogglePatchUrl: (id: string) => string;
|
|
1385
|
+
export declare const dashboardWindmillSchedulesIdTogglePatch: (id: string, dashboardWindmillSchedulesIdTogglePatchBody: DashboardWindmillSchedulesIdTogglePatchBody, options?: RequestInit) => Promise<dashboardWindmillSchedulesIdTogglePatchResponse>;
|
|
1386
|
+
/**
|
|
1387
|
+
* @summary Trigger an immediate run of the schedule's flow
|
|
1388
|
+
*/
|
|
1389
|
+
export type dashboardWindmillSchedulesIdRunPostResponse201 = {
|
|
1390
|
+
data: DashboardWindmillSchedulesIdRunPost201;
|
|
1391
|
+
status: 201;
|
|
1392
|
+
};
|
|
1393
|
+
export type dashboardWindmillSchedulesIdRunPostResponse401 = {
|
|
1394
|
+
data: DashboardWindmillSchedulesIdRunPost401;
|
|
1395
|
+
status: 401;
|
|
1396
|
+
};
|
|
1397
|
+
export type dashboardWindmillSchedulesIdRunPostResponse404 = {
|
|
1398
|
+
data: DashboardWindmillSchedulesIdRunPost404;
|
|
1399
|
+
status: 404;
|
|
1400
|
+
};
|
|
1401
|
+
export type dashboardWindmillSchedulesIdRunPostResponse500 = {
|
|
1402
|
+
data: DashboardWindmillSchedulesIdRunPost500;
|
|
1403
|
+
status: 500;
|
|
1404
|
+
};
|
|
1405
|
+
export type dashboardWindmillSchedulesIdRunPostResponseSuccess = (dashboardWindmillSchedulesIdRunPostResponse201) & {
|
|
1406
|
+
headers: Headers;
|
|
1407
|
+
};
|
|
1408
|
+
export type dashboardWindmillSchedulesIdRunPostResponseError = (dashboardWindmillSchedulesIdRunPostResponse401 | dashboardWindmillSchedulesIdRunPostResponse404 | dashboardWindmillSchedulesIdRunPostResponse500) & {
|
|
1409
|
+
headers: Headers;
|
|
1410
|
+
};
|
|
1411
|
+
export type dashboardWindmillSchedulesIdRunPostResponse = (dashboardWindmillSchedulesIdRunPostResponseSuccess | dashboardWindmillSchedulesIdRunPostResponseError);
|
|
1412
|
+
export declare const getDashboardWindmillSchedulesIdRunPostUrl: (id: string) => string;
|
|
1413
|
+
export declare const dashboardWindmillSchedulesIdRunPost: (id: string, dashboardWindmillSchedulesIdRunPostBody: DashboardWindmillSchedulesIdRunPostBody, options?: RequestInit) => Promise<dashboardWindmillSchedulesIdRunPostResponse>;
|
|
1414
|
+
/**
|
|
1415
|
+
* @summary Get run history for a schedule
|
|
1416
|
+
*/
|
|
1417
|
+
export type dashboardWindmillSchedulesIdRunsGetResponse200 = {
|
|
1418
|
+
data: DashboardWindmillSchedulesIdRunsGet200;
|
|
1419
|
+
status: 200;
|
|
1420
|
+
};
|
|
1421
|
+
export type dashboardWindmillSchedulesIdRunsGetResponse401 = {
|
|
1422
|
+
data: DashboardWindmillSchedulesIdRunsGet401;
|
|
1423
|
+
status: 401;
|
|
1424
|
+
};
|
|
1425
|
+
export type dashboardWindmillSchedulesIdRunsGetResponse404 = {
|
|
1426
|
+
data: DashboardWindmillSchedulesIdRunsGet404;
|
|
1427
|
+
status: 404;
|
|
1428
|
+
};
|
|
1429
|
+
export type dashboardWindmillSchedulesIdRunsGetResponse500 = {
|
|
1430
|
+
data: DashboardWindmillSchedulesIdRunsGet500;
|
|
1431
|
+
status: 500;
|
|
1432
|
+
};
|
|
1433
|
+
export type dashboardWindmillSchedulesIdRunsGetResponseSuccess = (dashboardWindmillSchedulesIdRunsGetResponse200) & {
|
|
1434
|
+
headers: Headers;
|
|
1435
|
+
};
|
|
1436
|
+
export type dashboardWindmillSchedulesIdRunsGetResponseError = (dashboardWindmillSchedulesIdRunsGetResponse401 | dashboardWindmillSchedulesIdRunsGetResponse404 | dashboardWindmillSchedulesIdRunsGetResponse500) & {
|
|
1437
|
+
headers: Headers;
|
|
1438
|
+
};
|
|
1439
|
+
export type dashboardWindmillSchedulesIdRunsGetResponse = (dashboardWindmillSchedulesIdRunsGetResponseSuccess | dashboardWindmillSchedulesIdRunsGetResponseError);
|
|
1440
|
+
export declare const getDashboardWindmillSchedulesIdRunsGetUrl: (id: string) => string;
|
|
1441
|
+
export declare const dashboardWindmillSchedulesIdRunsGet: (id: string, options?: RequestInit) => Promise<dashboardWindmillSchedulesIdRunsGetResponse>;
|
|
1442
|
+
/**
|
|
1443
|
+
* @summary Get next 5 estimated run times
|
|
1444
|
+
*/
|
|
1445
|
+
export type dashboardWindmillSchedulesIdPreviewGetResponse200 = {
|
|
1446
|
+
data: DashboardWindmillSchedulesIdPreviewGet200;
|
|
1447
|
+
status: 200;
|
|
1448
|
+
};
|
|
1449
|
+
export type dashboardWindmillSchedulesIdPreviewGetResponse401 = {
|
|
1450
|
+
data: DashboardWindmillSchedulesIdPreviewGet401;
|
|
1451
|
+
status: 401;
|
|
1452
|
+
};
|
|
1453
|
+
export type dashboardWindmillSchedulesIdPreviewGetResponse404 = {
|
|
1454
|
+
data: DashboardWindmillSchedulesIdPreviewGet404;
|
|
1455
|
+
status: 404;
|
|
1456
|
+
};
|
|
1457
|
+
export type dashboardWindmillSchedulesIdPreviewGetResponse500 = {
|
|
1458
|
+
data: DashboardWindmillSchedulesIdPreviewGet500;
|
|
1459
|
+
status: 500;
|
|
1460
|
+
};
|
|
1461
|
+
export type dashboardWindmillSchedulesIdPreviewGetResponseSuccess = (dashboardWindmillSchedulesIdPreviewGetResponse200) & {
|
|
1462
|
+
headers: Headers;
|
|
1463
|
+
};
|
|
1464
|
+
export type dashboardWindmillSchedulesIdPreviewGetResponseError = (dashboardWindmillSchedulesIdPreviewGetResponse401 | dashboardWindmillSchedulesIdPreviewGetResponse404 | dashboardWindmillSchedulesIdPreviewGetResponse500) & {
|
|
1465
|
+
headers: Headers;
|
|
1466
|
+
};
|
|
1467
|
+
export type dashboardWindmillSchedulesIdPreviewGetResponse = (dashboardWindmillSchedulesIdPreviewGetResponseSuccess | dashboardWindmillSchedulesIdPreviewGetResponseError);
|
|
1468
|
+
export declare const getDashboardWindmillSchedulesIdPreviewGetUrl: (id: string) => string;
|
|
1469
|
+
export declare const dashboardWindmillSchedulesIdPreviewGet: (id: string, options?: RequestInit) => Promise<dashboardWindmillSchedulesIdPreviewGetResponse>;
|
package/dashboard/client.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.dashboardCampaignsCampaignIdInputFieldsGet = exports.getDashboardCampaignsCampaignIdInputFieldsGetUrl = exports.dashboardCampaignsGet = exports.getDashboardCampaignsGetUrl = exports.dashboardCampaignsNamesPost = exports.getDashboardCampaignsNamesPostUrl = exports.DashboardSchedulerCreatePostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerCreatePostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardSchedulerPreviewPost200DataWarningsItemSeverity = exports.DashboardSchedulerPreviewPost200DataWarningsItemType = exports.DashboardSchedulerPreviewPost200DataJourneyStepsItemType = exports.DashboardSchedulerPreviewPostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardCampaignsCampaignIdInputFieldsGet200DataItemType = void 0;
|
|
3
|
+
exports.dashboardWindmillSchedulesIdRunPost = exports.getDashboardWindmillSchedulesIdRunPostUrl = exports.dashboardWindmillSchedulesIdTogglePatch = exports.getDashboardWindmillSchedulesIdTogglePatchUrl = exports.dashboardWindmillSchedulesIdPut = exports.getDashboardWindmillSchedulesIdPutUrl = exports.dashboardWindmillSchedulesIdGet = exports.getDashboardWindmillSchedulesIdGetUrl = exports.dashboardWindmillSchedulesGet = exports.getDashboardWindmillSchedulesGetUrl = 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.dashboardCampaignsCampaignIdInputFieldsGet = exports.getDashboardCampaignsCampaignIdInputFieldsGetUrl = exports.dashboardCampaignsGet = exports.getDashboardCampaignsGetUrl = exports.dashboardCampaignsNamesPost = exports.getDashboardCampaignsNamesPostUrl = exports.DashboardSchedulerCreatePostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerCreatePostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardSchedulerPreviewPost200DataWarningsItemSeverity = exports.DashboardSchedulerPreviewPost200DataWarningsItemType = exports.DashboardSchedulerPreviewPost200DataJourneyStepsItemType = exports.DashboardSchedulerPreviewPostBodyPhoneRotationStatusesItem = exports.DashboardSchedulerPreviewPostBodyTimeSlotsItemDaysOfWeekItem = exports.DashboardCampaignsCampaignIdInputFieldsGet200DataItemType = void 0;
|
|
4
|
+
exports.dashboardWindmillSchedulesIdPreviewGet = exports.getDashboardWindmillSchedulesIdPreviewGetUrl = exports.dashboardWindmillSchedulesIdRunsGet = exports.getDashboardWindmillSchedulesIdRunsGetUrl = void 0;
|
|
4
5
|
/**
|
|
5
6
|
* Generated by orval v8.2.0 🍺
|
|
6
7
|
* Do not edit manually.
|
|
@@ -263,3 +264,86 @@ const dashboardTargetsLatestGet = async (params, options) => {
|
|
|
263
264
|
});
|
|
264
265
|
};
|
|
265
266
|
exports.dashboardTargetsLatestGet = dashboardTargetsLatestGet;
|
|
267
|
+
const getDashboardWindmillSchedulesGetUrl = () => {
|
|
268
|
+
return `/v1/dashboard/windmill-schedules`;
|
|
269
|
+
};
|
|
270
|
+
exports.getDashboardWindmillSchedulesGetUrl = getDashboardWindmillSchedulesGetUrl;
|
|
271
|
+
const dashboardWindmillSchedulesGet = async (options) => {
|
|
272
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardWindmillSchedulesGetUrl)(), {
|
|
273
|
+
...options,
|
|
274
|
+
method: 'GET'
|
|
275
|
+
});
|
|
276
|
+
};
|
|
277
|
+
exports.dashboardWindmillSchedulesGet = dashboardWindmillSchedulesGet;
|
|
278
|
+
const getDashboardWindmillSchedulesIdGetUrl = (id) => {
|
|
279
|
+
return `/v1/dashboard/windmill-schedules/${id}`;
|
|
280
|
+
};
|
|
281
|
+
exports.getDashboardWindmillSchedulesIdGetUrl = getDashboardWindmillSchedulesIdGetUrl;
|
|
282
|
+
const dashboardWindmillSchedulesIdGet = async (id, options) => {
|
|
283
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardWindmillSchedulesIdGetUrl)(id), {
|
|
284
|
+
...options,
|
|
285
|
+
method: 'GET'
|
|
286
|
+
});
|
|
287
|
+
};
|
|
288
|
+
exports.dashboardWindmillSchedulesIdGet = dashboardWindmillSchedulesIdGet;
|
|
289
|
+
const getDashboardWindmillSchedulesIdPutUrl = (id) => {
|
|
290
|
+
return `/v1/dashboard/windmill-schedules/${id}`;
|
|
291
|
+
};
|
|
292
|
+
exports.getDashboardWindmillSchedulesIdPutUrl = getDashboardWindmillSchedulesIdPutUrl;
|
|
293
|
+
const dashboardWindmillSchedulesIdPut = async (id, dashboardWindmillSchedulesIdPutBody, options) => {
|
|
294
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardWindmillSchedulesIdPutUrl)(id), {
|
|
295
|
+
...options,
|
|
296
|
+
method: 'PUT',
|
|
297
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
298
|
+
body: JSON.stringify(dashboardWindmillSchedulesIdPutBody)
|
|
299
|
+
});
|
|
300
|
+
};
|
|
301
|
+
exports.dashboardWindmillSchedulesIdPut = dashboardWindmillSchedulesIdPut;
|
|
302
|
+
const getDashboardWindmillSchedulesIdTogglePatchUrl = (id) => {
|
|
303
|
+
return `/v1/dashboard/windmill-schedules/${id}/toggle`;
|
|
304
|
+
};
|
|
305
|
+
exports.getDashboardWindmillSchedulesIdTogglePatchUrl = getDashboardWindmillSchedulesIdTogglePatchUrl;
|
|
306
|
+
const dashboardWindmillSchedulesIdTogglePatch = async (id, dashboardWindmillSchedulesIdTogglePatchBody, options) => {
|
|
307
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardWindmillSchedulesIdTogglePatchUrl)(id), {
|
|
308
|
+
...options,
|
|
309
|
+
method: 'PATCH',
|
|
310
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
311
|
+
body: JSON.stringify(dashboardWindmillSchedulesIdTogglePatchBody)
|
|
312
|
+
});
|
|
313
|
+
};
|
|
314
|
+
exports.dashboardWindmillSchedulesIdTogglePatch = dashboardWindmillSchedulesIdTogglePatch;
|
|
315
|
+
const getDashboardWindmillSchedulesIdRunPostUrl = (id) => {
|
|
316
|
+
return `/v1/dashboard/windmill-schedules/${id}/run`;
|
|
317
|
+
};
|
|
318
|
+
exports.getDashboardWindmillSchedulesIdRunPostUrl = getDashboardWindmillSchedulesIdRunPostUrl;
|
|
319
|
+
const dashboardWindmillSchedulesIdRunPost = async (id, dashboardWindmillSchedulesIdRunPostBody, options) => {
|
|
320
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardWindmillSchedulesIdRunPostUrl)(id), {
|
|
321
|
+
...options,
|
|
322
|
+
method: 'POST',
|
|
323
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
324
|
+
body: JSON.stringify(dashboardWindmillSchedulesIdRunPostBody)
|
|
325
|
+
});
|
|
326
|
+
};
|
|
327
|
+
exports.dashboardWindmillSchedulesIdRunPost = dashboardWindmillSchedulesIdRunPost;
|
|
328
|
+
const getDashboardWindmillSchedulesIdRunsGetUrl = (id) => {
|
|
329
|
+
return `/v1/dashboard/windmill-schedules/${id}/runs`;
|
|
330
|
+
};
|
|
331
|
+
exports.getDashboardWindmillSchedulesIdRunsGetUrl = getDashboardWindmillSchedulesIdRunsGetUrl;
|
|
332
|
+
const dashboardWindmillSchedulesIdRunsGet = async (id, options) => {
|
|
333
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardWindmillSchedulesIdRunsGetUrl)(id), {
|
|
334
|
+
...options,
|
|
335
|
+
method: 'GET'
|
|
336
|
+
});
|
|
337
|
+
};
|
|
338
|
+
exports.dashboardWindmillSchedulesIdRunsGet = dashboardWindmillSchedulesIdRunsGet;
|
|
339
|
+
const getDashboardWindmillSchedulesIdPreviewGetUrl = (id) => {
|
|
340
|
+
return `/v1/dashboard/windmill-schedules/${id}/preview`;
|
|
341
|
+
};
|
|
342
|
+
exports.getDashboardWindmillSchedulesIdPreviewGetUrl = getDashboardWindmillSchedulesIdPreviewGetUrl;
|
|
343
|
+
const dashboardWindmillSchedulesIdPreviewGet = async (id, options) => {
|
|
344
|
+
return (0, fetcher_1.customFetcher)((0, exports.getDashboardWindmillSchedulesIdPreviewGetUrl)(id), {
|
|
345
|
+
...options,
|
|
346
|
+
method: 'GET'
|
|
347
|
+
});
|
|
348
|
+
};
|
|
349
|
+
exports.dashboardWindmillSchedulesIdPreviewGet = dashboardWindmillSchedulesIdPreviewGet;
|
package/dashboard/schemas.d.ts
CHANGED
|
@@ -1223,3 +1223,298 @@ export declare const GetLatestTargetResponse: zod.ZodObject<{
|
|
|
1223
1223
|
input_fields?: unknown;
|
|
1224
1224
|
};
|
|
1225
1225
|
}>;
|
|
1226
|
+
/**
|
|
1227
|
+
* @summary List Windmill schedules for the authenticated client
|
|
1228
|
+
*/
|
|
1229
|
+
export declare const WindmillSchedulesListResponse: zod.ZodObject<{
|
|
1230
|
+
data: zod.ZodArray<zod.ZodObject<{
|
|
1231
|
+
id: zod.ZodString;
|
|
1232
|
+
name: zod.ZodString;
|
|
1233
|
+
campaign_id: zod.ZodString;
|
|
1234
|
+
windmill_schedule_path: zod.ZodString;
|
|
1235
|
+
enabled: zod.ZodBoolean;
|
|
1236
|
+
schedule: zod.ZodString;
|
|
1237
|
+
timezone: zod.ZodString;
|
|
1238
|
+
summary: zod.ZodOptional<zod.ZodString>;
|
|
1239
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1240
|
+
id: string;
|
|
1241
|
+
name: string;
|
|
1242
|
+
campaign_id: string;
|
|
1243
|
+
timezone: string;
|
|
1244
|
+
windmill_schedule_path: string;
|
|
1245
|
+
enabled: boolean;
|
|
1246
|
+
schedule: string;
|
|
1247
|
+
summary?: string | undefined;
|
|
1248
|
+
}, {
|
|
1249
|
+
id: string;
|
|
1250
|
+
name: string;
|
|
1251
|
+
campaign_id: string;
|
|
1252
|
+
timezone: string;
|
|
1253
|
+
windmill_schedule_path: string;
|
|
1254
|
+
enabled: boolean;
|
|
1255
|
+
schedule: string;
|
|
1256
|
+
summary?: string | undefined;
|
|
1257
|
+
}>, "many">;
|
|
1258
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1259
|
+
data: {
|
|
1260
|
+
id: string;
|
|
1261
|
+
name: string;
|
|
1262
|
+
campaign_id: string;
|
|
1263
|
+
timezone: string;
|
|
1264
|
+
windmill_schedule_path: string;
|
|
1265
|
+
enabled: boolean;
|
|
1266
|
+
schedule: string;
|
|
1267
|
+
summary?: string | undefined;
|
|
1268
|
+
}[];
|
|
1269
|
+
}, {
|
|
1270
|
+
data: {
|
|
1271
|
+
id: string;
|
|
1272
|
+
name: string;
|
|
1273
|
+
campaign_id: string;
|
|
1274
|
+
timezone: string;
|
|
1275
|
+
windmill_schedule_path: string;
|
|
1276
|
+
enabled: boolean;
|
|
1277
|
+
schedule: string;
|
|
1278
|
+
summary?: string | undefined;
|
|
1279
|
+
}[];
|
|
1280
|
+
}>;
|
|
1281
|
+
/**
|
|
1282
|
+
* @summary Get Windmill schedule detail with current args and config
|
|
1283
|
+
*/
|
|
1284
|
+
export declare const WindmillSchedulesGetByIdParams: zod.ZodObject<{
|
|
1285
|
+
id: zod.ZodString;
|
|
1286
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1287
|
+
id: string;
|
|
1288
|
+
}, {
|
|
1289
|
+
id: string;
|
|
1290
|
+
}>;
|
|
1291
|
+
export declare const WindmillSchedulesGetByIdResponse: zod.ZodObject<{
|
|
1292
|
+
data: zod.ZodObject<{
|
|
1293
|
+
id: zod.ZodString;
|
|
1294
|
+
name: zod.ZodString;
|
|
1295
|
+
campaign_id: zod.ZodString;
|
|
1296
|
+
windmill_schedule_path: zod.ZodString;
|
|
1297
|
+
windmill_flow_path: zod.ZodString;
|
|
1298
|
+
enabled: zod.ZodBoolean;
|
|
1299
|
+
schedule: zod.ZodString;
|
|
1300
|
+
timezone: zod.ZodString;
|
|
1301
|
+
args: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
1302
|
+
summary: zod.ZodOptional<zod.ZodString>;
|
|
1303
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
1304
|
+
no_flow_overlap: zod.ZodOptional<zod.ZodBoolean>;
|
|
1305
|
+
paused_until: zod.ZodOptional<zod.ZodString>;
|
|
1306
|
+
cron_version: zod.ZodOptional<zod.ZodString>;
|
|
1307
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1308
|
+
id: string;
|
|
1309
|
+
name: string;
|
|
1310
|
+
campaign_id: string;
|
|
1311
|
+
timezone: string;
|
|
1312
|
+
windmill_schedule_path: string;
|
|
1313
|
+
enabled: boolean;
|
|
1314
|
+
schedule: string;
|
|
1315
|
+
windmill_flow_path: string;
|
|
1316
|
+
args: Record<string, unknown>;
|
|
1317
|
+
description?: string | undefined;
|
|
1318
|
+
summary?: string | undefined;
|
|
1319
|
+
no_flow_overlap?: boolean | undefined;
|
|
1320
|
+
paused_until?: string | undefined;
|
|
1321
|
+
cron_version?: string | undefined;
|
|
1322
|
+
}, {
|
|
1323
|
+
id: string;
|
|
1324
|
+
name: string;
|
|
1325
|
+
campaign_id: string;
|
|
1326
|
+
timezone: string;
|
|
1327
|
+
windmill_schedule_path: string;
|
|
1328
|
+
enabled: boolean;
|
|
1329
|
+
schedule: string;
|
|
1330
|
+
windmill_flow_path: string;
|
|
1331
|
+
args: Record<string, unknown>;
|
|
1332
|
+
description?: string | undefined;
|
|
1333
|
+
summary?: string | undefined;
|
|
1334
|
+
no_flow_overlap?: boolean | undefined;
|
|
1335
|
+
paused_until?: string | undefined;
|
|
1336
|
+
cron_version?: string | undefined;
|
|
1337
|
+
}>;
|
|
1338
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1339
|
+
data: {
|
|
1340
|
+
id: string;
|
|
1341
|
+
name: string;
|
|
1342
|
+
campaign_id: string;
|
|
1343
|
+
timezone: string;
|
|
1344
|
+
windmill_schedule_path: string;
|
|
1345
|
+
enabled: boolean;
|
|
1346
|
+
schedule: string;
|
|
1347
|
+
windmill_flow_path: string;
|
|
1348
|
+
args: Record<string, unknown>;
|
|
1349
|
+
description?: string | undefined;
|
|
1350
|
+
summary?: string | undefined;
|
|
1351
|
+
no_flow_overlap?: boolean | undefined;
|
|
1352
|
+
paused_until?: string | undefined;
|
|
1353
|
+
cron_version?: string | undefined;
|
|
1354
|
+
};
|
|
1355
|
+
}, {
|
|
1356
|
+
data: {
|
|
1357
|
+
id: string;
|
|
1358
|
+
name: string;
|
|
1359
|
+
campaign_id: string;
|
|
1360
|
+
timezone: string;
|
|
1361
|
+
windmill_schedule_path: string;
|
|
1362
|
+
enabled: boolean;
|
|
1363
|
+
schedule: string;
|
|
1364
|
+
windmill_flow_path: string;
|
|
1365
|
+
args: Record<string, unknown>;
|
|
1366
|
+
description?: string | undefined;
|
|
1367
|
+
summary?: string | undefined;
|
|
1368
|
+
no_flow_overlap?: boolean | undefined;
|
|
1369
|
+
paused_until?: string | undefined;
|
|
1370
|
+
cron_version?: string | undefined;
|
|
1371
|
+
};
|
|
1372
|
+
}>;
|
|
1373
|
+
/**
|
|
1374
|
+
* @summary Update schedule config and args
|
|
1375
|
+
*/
|
|
1376
|
+
export declare const WindmillSchedulesUpdateParams: zod.ZodObject<{
|
|
1377
|
+
id: zod.ZodString;
|
|
1378
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1379
|
+
id: string;
|
|
1380
|
+
}, {
|
|
1381
|
+
id: string;
|
|
1382
|
+
}>;
|
|
1383
|
+
export declare const WindmillSchedulesUpdateBody: zod.ZodObject<{
|
|
1384
|
+
schedule: zod.ZodOptional<zod.ZodString>;
|
|
1385
|
+
timezone: zod.ZodOptional<zod.ZodString>;
|
|
1386
|
+
args: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
1387
|
+
no_flow_overlap: zod.ZodOptional<zod.ZodBoolean>;
|
|
1388
|
+
summary: zod.ZodOptional<zod.ZodString>;
|
|
1389
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
1390
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1391
|
+
description?: string | undefined;
|
|
1392
|
+
summary?: string | undefined;
|
|
1393
|
+
timezone?: string | undefined;
|
|
1394
|
+
schedule?: string | undefined;
|
|
1395
|
+
args?: Record<string, unknown> | undefined;
|
|
1396
|
+
no_flow_overlap?: boolean | undefined;
|
|
1397
|
+
}, {
|
|
1398
|
+
description?: string | undefined;
|
|
1399
|
+
summary?: string | undefined;
|
|
1400
|
+
timezone?: string | undefined;
|
|
1401
|
+
schedule?: string | undefined;
|
|
1402
|
+
args?: Record<string, unknown> | undefined;
|
|
1403
|
+
no_flow_overlap?: boolean | undefined;
|
|
1404
|
+
}>;
|
|
1405
|
+
export declare const WindmillSchedulesUpdateResponse: zod.ZodObject<{
|
|
1406
|
+
message: zod.ZodString;
|
|
1407
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1408
|
+
message: string;
|
|
1409
|
+
}, {
|
|
1410
|
+
message: string;
|
|
1411
|
+
}>;
|
|
1412
|
+
/**
|
|
1413
|
+
* @summary Enable or disable a schedule
|
|
1414
|
+
*/
|
|
1415
|
+
export declare const WindmillSchedulesToggleParams: zod.ZodObject<{
|
|
1416
|
+
id: zod.ZodString;
|
|
1417
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1418
|
+
id: string;
|
|
1419
|
+
}, {
|
|
1420
|
+
id: string;
|
|
1421
|
+
}>;
|
|
1422
|
+
export declare const WindmillSchedulesToggleBody: zod.ZodObject<{
|
|
1423
|
+
enabled: zod.ZodBoolean;
|
|
1424
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1425
|
+
enabled: boolean;
|
|
1426
|
+
}, {
|
|
1427
|
+
enabled: boolean;
|
|
1428
|
+
}>;
|
|
1429
|
+
export declare const WindmillSchedulesToggleResponse: zod.ZodObject<{
|
|
1430
|
+
enabled: zod.ZodBoolean;
|
|
1431
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1432
|
+
enabled: boolean;
|
|
1433
|
+
}, {
|
|
1434
|
+
enabled: boolean;
|
|
1435
|
+
}>;
|
|
1436
|
+
/**
|
|
1437
|
+
* @summary Trigger an immediate run of the schedule's flow
|
|
1438
|
+
*/
|
|
1439
|
+
export declare const WindmillSchedulesRunParams: zod.ZodObject<{
|
|
1440
|
+
id: zod.ZodString;
|
|
1441
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1442
|
+
id: string;
|
|
1443
|
+
}, {
|
|
1444
|
+
id: string;
|
|
1445
|
+
}>;
|
|
1446
|
+
export declare const WindmillSchedulesRunBody: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
|
|
1447
|
+
/**
|
|
1448
|
+
* @summary Get run history for a schedule
|
|
1449
|
+
*/
|
|
1450
|
+
export declare const WindmillSchedulesRunsParams: zod.ZodObject<{
|
|
1451
|
+
id: zod.ZodString;
|
|
1452
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1453
|
+
id: string;
|
|
1454
|
+
}, {
|
|
1455
|
+
id: string;
|
|
1456
|
+
}>;
|
|
1457
|
+
export declare const WindmillSchedulesRunsResponse: zod.ZodObject<{
|
|
1458
|
+
data: zod.ZodArray<zod.ZodObject<{
|
|
1459
|
+
id: zod.ZodString;
|
|
1460
|
+
created_at: zod.ZodString;
|
|
1461
|
+
started_at: zod.ZodOptional<zod.ZodString>;
|
|
1462
|
+
duration_ms: zod.ZodOptional<zod.ZodNumber>;
|
|
1463
|
+
success: zod.ZodOptional<zod.ZodBoolean>;
|
|
1464
|
+
args: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
1465
|
+
is_skipped: zod.ZodOptional<zod.ZodBoolean>;
|
|
1466
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1467
|
+
created_at: string;
|
|
1468
|
+
id: string;
|
|
1469
|
+
success?: boolean | undefined;
|
|
1470
|
+
args?: Record<string, unknown> | undefined;
|
|
1471
|
+
started_at?: string | undefined;
|
|
1472
|
+
duration_ms?: number | undefined;
|
|
1473
|
+
is_skipped?: boolean | undefined;
|
|
1474
|
+
}, {
|
|
1475
|
+
created_at: string;
|
|
1476
|
+
id: string;
|
|
1477
|
+
success?: boolean | undefined;
|
|
1478
|
+
args?: Record<string, unknown> | undefined;
|
|
1479
|
+
started_at?: string | undefined;
|
|
1480
|
+
duration_ms?: number | undefined;
|
|
1481
|
+
is_skipped?: boolean | undefined;
|
|
1482
|
+
}>, "many">;
|
|
1483
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1484
|
+
data: {
|
|
1485
|
+
created_at: string;
|
|
1486
|
+
id: string;
|
|
1487
|
+
success?: boolean | undefined;
|
|
1488
|
+
args?: Record<string, unknown> | undefined;
|
|
1489
|
+
started_at?: string | undefined;
|
|
1490
|
+
duration_ms?: number | undefined;
|
|
1491
|
+
is_skipped?: boolean | undefined;
|
|
1492
|
+
}[];
|
|
1493
|
+
}, {
|
|
1494
|
+
data: {
|
|
1495
|
+
created_at: string;
|
|
1496
|
+
id: string;
|
|
1497
|
+
success?: boolean | undefined;
|
|
1498
|
+
args?: Record<string, unknown> | undefined;
|
|
1499
|
+
started_at?: string | undefined;
|
|
1500
|
+
duration_ms?: number | undefined;
|
|
1501
|
+
is_skipped?: boolean | undefined;
|
|
1502
|
+
}[];
|
|
1503
|
+
}>;
|
|
1504
|
+
/**
|
|
1505
|
+
* @summary Get next 5 estimated run times
|
|
1506
|
+
*/
|
|
1507
|
+
export declare const WindmillSchedulesPreviewParams: zod.ZodObject<{
|
|
1508
|
+
id: zod.ZodString;
|
|
1509
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1510
|
+
id: string;
|
|
1511
|
+
}, {
|
|
1512
|
+
id: string;
|
|
1513
|
+
}>;
|
|
1514
|
+
export declare const WindmillSchedulesPreviewResponse: zod.ZodObject<{
|
|
1515
|
+
data: zod.ZodArray<zod.ZodString, "many">;
|
|
1516
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1517
|
+
data: string[];
|
|
1518
|
+
}, {
|
|
1519
|
+
data: string[];
|
|
1520
|
+
}>;
|
package/dashboard/schemas.js
CHANGED
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.GetCampaignInputFieldsResponse = exports.GetCampaignInputFieldsParams = exports.GetCampaignsResponse = exports.GetCampaignNamesResponse = exports.GetCampaignNamesBody = void 0;
|
|
36
|
+
exports.WindmillSchedulesPreviewResponse = exports.WindmillSchedulesPreviewParams = exports.WindmillSchedulesRunsResponse = exports.WindmillSchedulesRunsParams = exports.WindmillSchedulesRunBody = exports.WindmillSchedulesRunParams = exports.WindmillSchedulesToggleResponse = exports.WindmillSchedulesToggleBody = exports.WindmillSchedulesToggleParams = exports.WindmillSchedulesUpdateResponse = exports.WindmillSchedulesUpdateBody = exports.WindmillSchedulesUpdateParams = exports.WindmillSchedulesGetByIdResponse = exports.WindmillSchedulesGetByIdParams = exports.WindmillSchedulesListResponse = 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.GetCampaignInputFieldsResponse = exports.GetCampaignInputFieldsParams = exports.GetCampaignsResponse = exports.GetCampaignNamesResponse = exports.GetCampaignNamesBody = void 0;
|
|
37
37
|
/**
|
|
38
38
|
* Generated by orval v8.2.0 🍺
|
|
39
39
|
* Do not edit manually.
|
|
@@ -325,3 +325,104 @@ exports.GetLatestTargetResponse = zod.object({
|
|
|
325
325
|
"input_fields": zod.unknown().nullish()
|
|
326
326
|
})
|
|
327
327
|
});
|
|
328
|
+
/**
|
|
329
|
+
* @summary List Windmill schedules for the authenticated client
|
|
330
|
+
*/
|
|
331
|
+
exports.WindmillSchedulesListResponse = zod.object({
|
|
332
|
+
"data": zod.array(zod.object({
|
|
333
|
+
"id": zod.string(),
|
|
334
|
+
"name": zod.string(),
|
|
335
|
+
"campaign_id": zod.string(),
|
|
336
|
+
"windmill_schedule_path": zod.string(),
|
|
337
|
+
"enabled": zod.boolean(),
|
|
338
|
+
"schedule": zod.string(),
|
|
339
|
+
"timezone": zod.string(),
|
|
340
|
+
"summary": zod.string().optional()
|
|
341
|
+
}))
|
|
342
|
+
});
|
|
343
|
+
/**
|
|
344
|
+
* @summary Get Windmill schedule detail with current args and config
|
|
345
|
+
*/
|
|
346
|
+
exports.WindmillSchedulesGetByIdParams = zod.object({
|
|
347
|
+
"id": zod.string()
|
|
348
|
+
});
|
|
349
|
+
exports.WindmillSchedulesGetByIdResponse = zod.object({
|
|
350
|
+
"data": zod.object({
|
|
351
|
+
"id": zod.string(),
|
|
352
|
+
"name": zod.string(),
|
|
353
|
+
"campaign_id": zod.string(),
|
|
354
|
+
"windmill_schedule_path": zod.string(),
|
|
355
|
+
"windmill_flow_path": zod.string(),
|
|
356
|
+
"enabled": zod.boolean(),
|
|
357
|
+
"schedule": zod.string(),
|
|
358
|
+
"timezone": zod.string(),
|
|
359
|
+
"args": zod.record(zod.string(), zod.unknown()),
|
|
360
|
+
"summary": zod.string().optional(),
|
|
361
|
+
"description": zod.string().optional(),
|
|
362
|
+
"no_flow_overlap": zod.boolean().optional(),
|
|
363
|
+
"paused_until": zod.string().optional(),
|
|
364
|
+
"cron_version": zod.string().optional()
|
|
365
|
+
})
|
|
366
|
+
});
|
|
367
|
+
/**
|
|
368
|
+
* @summary Update schedule config and args
|
|
369
|
+
*/
|
|
370
|
+
exports.WindmillSchedulesUpdateParams = zod.object({
|
|
371
|
+
"id": zod.string()
|
|
372
|
+
});
|
|
373
|
+
exports.WindmillSchedulesUpdateBody = zod.object({
|
|
374
|
+
"schedule": zod.string().optional(),
|
|
375
|
+
"timezone": zod.string().optional(),
|
|
376
|
+
"args": zod.record(zod.string(), zod.unknown()).optional(),
|
|
377
|
+
"no_flow_overlap": zod.boolean().optional(),
|
|
378
|
+
"summary": zod.string().optional(),
|
|
379
|
+
"description": zod.string().optional()
|
|
380
|
+
});
|
|
381
|
+
exports.WindmillSchedulesUpdateResponse = zod.object({
|
|
382
|
+
"message": zod.string()
|
|
383
|
+
});
|
|
384
|
+
/**
|
|
385
|
+
* @summary Enable or disable a schedule
|
|
386
|
+
*/
|
|
387
|
+
exports.WindmillSchedulesToggleParams = zod.object({
|
|
388
|
+
"id": zod.string()
|
|
389
|
+
});
|
|
390
|
+
exports.WindmillSchedulesToggleBody = zod.object({
|
|
391
|
+
"enabled": zod.boolean()
|
|
392
|
+
});
|
|
393
|
+
exports.WindmillSchedulesToggleResponse = zod.object({
|
|
394
|
+
"enabled": zod.boolean()
|
|
395
|
+
});
|
|
396
|
+
/**
|
|
397
|
+
* @summary Trigger an immediate run of the schedule's flow
|
|
398
|
+
*/
|
|
399
|
+
exports.WindmillSchedulesRunParams = zod.object({
|
|
400
|
+
"id": zod.string()
|
|
401
|
+
});
|
|
402
|
+
exports.WindmillSchedulesRunBody = zod.object({});
|
|
403
|
+
/**
|
|
404
|
+
* @summary Get run history for a schedule
|
|
405
|
+
*/
|
|
406
|
+
exports.WindmillSchedulesRunsParams = zod.object({
|
|
407
|
+
"id": zod.string()
|
|
408
|
+
});
|
|
409
|
+
exports.WindmillSchedulesRunsResponse = zod.object({
|
|
410
|
+
"data": zod.array(zod.object({
|
|
411
|
+
"id": zod.string(),
|
|
412
|
+
"created_at": zod.string(),
|
|
413
|
+
"started_at": zod.string().optional(),
|
|
414
|
+
"duration_ms": zod.number().optional(),
|
|
415
|
+
"success": zod.boolean().optional(),
|
|
416
|
+
"args": zod.record(zod.string(), zod.unknown()).optional(),
|
|
417
|
+
"is_skipped": zod.boolean().optional()
|
|
418
|
+
}))
|
|
419
|
+
});
|
|
420
|
+
/**
|
|
421
|
+
* @summary Get next 5 estimated run times
|
|
422
|
+
*/
|
|
423
|
+
exports.WindmillSchedulesPreviewParams = zod.object({
|
|
424
|
+
"id": zod.string()
|
|
425
|
+
});
|
|
426
|
+
exports.WindmillSchedulesPreviewResponse = zod.object({
|
|
427
|
+
"data": zod.array(zod.string())
|
|
428
|
+
});
|
package/internal/client.d.ts
CHANGED
|
@@ -3600,7 +3600,7 @@ export type internalPaymentsCallbackPostResponse = (internalPaymentsCallbackPost
|
|
|
3600
3600
|
export declare const getInternalPaymentsCallbackPostUrl: (params: InternalPaymentsCallbackPostParams) => string;
|
|
3601
3601
|
export declare const internalPaymentsCallbackPost: (internalPaymentsCallbackPostBody: InternalPaymentsCallbackPostBody, params: InternalPaymentsCallbackPostParams, options?: RequestInit) => Promise<internalPaymentsCallbackPostResponse>;
|
|
3602
3602
|
/**
|
|
3603
|
-
* Accepts a batch of targets (up to 10) for a single campaign and enqueues each as an
|
|
3603
|
+
* Accepts a batch of targets (up to 10) for a single campaign and enqueues each as an execute_livekit_call Graphile Worker task. Each target is processed independently - partial success is possible. Returns 202 with per-target results.
|
|
3604
3604
|
* @summary Queue a batch of outbound call jobs
|
|
3605
3605
|
*/
|
|
3606
3606
|
export type internalQueuesCallJobPostResponse202 = {
|
package/internal/schemas.d.ts
CHANGED
|
@@ -1134,7 +1134,7 @@ export declare const ProcessCallbackBody: zod.ZodObject<{
|
|
|
1134
1134
|
}>;
|
|
1135
1135
|
export declare const ProcessCallbackResponse: zod.ZodString;
|
|
1136
1136
|
/**
|
|
1137
|
-
* Accepts a batch of targets (up to 10) for a single campaign and enqueues each as an
|
|
1137
|
+
* Accepts a batch of targets (up to 10) for a single campaign and enqueues each as an execute_livekit_call Graphile Worker task. Each target is processed independently - partial success is possible. Returns 202 with per-target results.
|
|
1138
1138
|
* @summary Queue a batch of outbound call jobs
|
|
1139
1139
|
*/
|
|
1140
1140
|
export declare const startCallBodyTargetsItemPriorityDefault = "standard";
|
package/internal/schemas.js
CHANGED
|
@@ -413,7 +413,7 @@ exports.ProcessCallbackBody = zod.object({
|
|
|
413
413
|
});
|
|
414
414
|
exports.ProcessCallbackResponse = zod.string().describe('TwiML XML response with voice prompts for the caller');
|
|
415
415
|
/**
|
|
416
|
-
* Accepts a batch of targets (up to 10) for a single campaign and enqueues each as an
|
|
416
|
+
* Accepts a batch of targets (up to 10) for a single campaign and enqueues each as an execute_livekit_call Graphile Worker task. Each target is processed independently - partial success is possible. Returns 202 with per-target results.
|
|
417
417
|
* @summary Queue a batch of outbound call jobs
|
|
418
418
|
*/
|
|
419
419
|
exports.startCallBodyTargetsItemPriorityDefault = `standard`;
|