@perplexity-ai/perplexity_ai 0.41.0 → 0.42.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/CHANGELOG.md +7 -0
- package/dist/generated/api.d.ts +637 -4
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +99 -0
- package/dist/generated/api.js.map +1 -1
- package/dist/resources/client.d.ts +16 -0
- package/dist/resources/client.d.ts.map +1 -1
- package/dist/resources/client.js +2 -0
- package/dist/resources/client.js.map +1 -1
- package/dist/resources/index.d.ts +1 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +1 -0
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/monitors/index.d.ts +4 -0
- package/dist/resources/monitors/index.d.ts.map +1 -0
- package/dist/resources/monitors/index.js +4 -0
- package/dist/resources/monitors/index.js.map +1 -0
- package/dist/resources/monitors/monitors.d.ts +16 -0
- package/dist/resources/monitors/monitors.d.ts.map +1 -0
- package/dist/resources/monitors/monitors.js +3 -0
- package/dist/resources/monitors/monitors.js.map +1 -0
- package/dist/resources/monitors/runs.d.ts +5 -0
- package/dist/resources/monitors/runs.d.ts.map +1 -0
- package/dist/resources/monitors/runs.js +3 -0
- package/dist/resources/monitors/runs.js.map +1 -0
- package/dist/resources/monitors/webhook.d.ts +4 -0
- package/dist/resources/monitors/webhook.d.ts.map +1 -0
- package/dist/resources/monitors/webhook.js +3 -0
- package/dist/resources/monitors/webhook.js.map +1 -0
- package/dist/resources/monitors.d.ts +2 -0
- package/dist/resources/monitors.d.ts.map +1 -0
- package/dist/resources/monitors.js +2 -0
- package/dist/resources/monitors.js.map +1 -0
- package/dist/resources/shared.d.ts +13 -0
- package/dist/resources/shared.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/generated/api.ts +706 -4
- package/src/resources/client.ts +17 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/monitors/index.ts +3 -0
- package/src/resources/monitors/monitors.ts +15 -0
- package/src/resources/monitors/runs.ts +4 -0
- package/src/resources/monitors/webhook.ts +3 -0
- package/src/resources/monitors.ts +1 -0
- package/src/resources/shared.ts +13 -0
- package/src/version.ts +1 -1
package/src/generated/api.ts
CHANGED
|
@@ -613,6 +613,22 @@ export type CostOutput = {
|
|
|
613
613
|
};
|
|
614
614
|
export type CreateBrowserSessionRequestInput = {};
|
|
615
615
|
export type CreateBrowserSessionRequestOutput = {};
|
|
616
|
+
export type CreateMonitorRequestInput = {
|
|
617
|
+
goal?: string;
|
|
618
|
+
metadata?: MonitorMetadataInput;
|
|
619
|
+
name: string;
|
|
620
|
+
schedule: MonitorScheduleRequestInput;
|
|
621
|
+
targets: MonitorTargetsInput;
|
|
622
|
+
webhook?: (Record<string, unknown> & (MonitorWebhookRequestInput)) | null;
|
|
623
|
+
};
|
|
624
|
+
export type CreateMonitorRequestOutput = {
|
|
625
|
+
goal?: string;
|
|
626
|
+
metadata?: MonitorMetadataOutput;
|
|
627
|
+
name: string;
|
|
628
|
+
schedule: MonitorScheduleRequestOutput;
|
|
629
|
+
targets: MonitorTargetsOutput;
|
|
630
|
+
webhook?: (Record<string, unknown> & (MonitorWebhookRequestOutput)) | null;
|
|
631
|
+
};
|
|
616
632
|
export type CurrencyInput = "USD";
|
|
617
633
|
export type CurrencyOutput = "USD";
|
|
618
634
|
export type CustomSkillInput = {
|
|
@@ -737,20 +753,40 @@ export type DecisionsResponseOutput = {
|
|
|
737
753
|
model: string;
|
|
738
754
|
usage: DecisionUsageOutput;
|
|
739
755
|
};
|
|
756
|
+
export type DecisionToolCallDetailsInput = {
|
|
757
|
+
invocation: number;
|
|
758
|
+
};
|
|
759
|
+
export type DecisionToolCallDetailsOutput = {
|
|
760
|
+
invocation: number;
|
|
761
|
+
};
|
|
740
762
|
export type DecisionUsageInput = {
|
|
741
763
|
input_tokens: number;
|
|
742
764
|
output_tokens: number;
|
|
765
|
+
tool_calls_details?: {} & Record<string, DecisionToolCallDetailsInput>;
|
|
743
766
|
};
|
|
744
767
|
export type DecisionUsageOutput = {
|
|
745
768
|
input_tokens: number;
|
|
746
769
|
output_tokens: number;
|
|
770
|
+
tool_calls_details?: {} & Record<string, DecisionToolCallDetailsOutput>;
|
|
771
|
+
};
|
|
772
|
+
export type DeleteMonitorResponseInput = {
|
|
773
|
+
deleted: boolean;
|
|
774
|
+
id: string;
|
|
775
|
+
object: "monitor";
|
|
776
|
+
};
|
|
777
|
+
export type DeleteMonitorResponseOutput = {
|
|
778
|
+
deleted: boolean;
|
|
779
|
+
id: string;
|
|
780
|
+
object: "monitor";
|
|
747
781
|
};
|
|
748
782
|
export type EmbeddingObjectInput = {
|
|
783
|
+
data?: EmbeddingObjectInput[];
|
|
749
784
|
embedding?: string;
|
|
750
785
|
index?: number;
|
|
751
786
|
object?: string;
|
|
752
787
|
};
|
|
753
788
|
export type EmbeddingObjectOutput = {
|
|
789
|
+
data?: EmbeddingObjectOutput[];
|
|
754
790
|
embedding?: string;
|
|
755
791
|
index?: number;
|
|
756
792
|
object?: string;
|
|
@@ -758,14 +794,24 @@ export type EmbeddingObjectOutput = {
|
|
|
758
794
|
export type EmbeddingsRequestInput = {
|
|
759
795
|
dimensions?: number;
|
|
760
796
|
encoding_format?: "base64_int8" | "base64_binary";
|
|
761
|
-
input: string | string[]
|
|
762
|
-
|
|
797
|
+
input: string | string[] | string[][] | {
|
|
798
|
+
image: string;
|
|
799
|
+
type: "image";
|
|
800
|
+
}[];
|
|
801
|
+
input_type?: "query" | "document";
|
|
802
|
+
model: "pplx-embed-v1-0.6b" | "pplx-embed-v1-4b" | "pplx-embed-v2-context-9b" | "pplx-embed-v2-context-0.6b";
|
|
803
|
+
num_chunks?: 1 | 2 | 4 | 8 | 16 | 32;
|
|
763
804
|
};
|
|
764
805
|
export type EmbeddingsRequestOutput = {
|
|
765
806
|
dimensions?: number;
|
|
766
807
|
encoding_format?: "base64_int8" | "base64_binary";
|
|
767
|
-
input: string | string[]
|
|
768
|
-
|
|
808
|
+
input: string | string[] | string[][] | {
|
|
809
|
+
image: string;
|
|
810
|
+
type: "image";
|
|
811
|
+
}[];
|
|
812
|
+
input_type?: "query" | "document";
|
|
813
|
+
model: "pplx-embed-v1-0.6b" | "pplx-embed-v1-4b" | "pplx-embed-v2-context-9b" | "pplx-embed-v2-context-0.6b";
|
|
814
|
+
num_chunks?: 1 | 2 | 4 | 8 | 16 | 32;
|
|
769
815
|
};
|
|
770
816
|
export type EmbeddingsResponseInput = {
|
|
771
817
|
data?: EmbeddingObjectInput[];
|
|
@@ -807,6 +853,20 @@ export type ErrorInfoOutput = {
|
|
|
807
853
|
message: string;
|
|
808
854
|
type?: string;
|
|
809
855
|
};
|
|
856
|
+
export type EventMonitorInput = {
|
|
857
|
+
id: string;
|
|
858
|
+
metadata: {} & Record<string, string>;
|
|
859
|
+
name: string;
|
|
860
|
+
pause_reason?: MonitorPauseReasonInput;
|
|
861
|
+
status: MonitorStatusInput;
|
|
862
|
+
};
|
|
863
|
+
export type EventMonitorOutput = {
|
|
864
|
+
id: string;
|
|
865
|
+
metadata: {} & Record<string, string>;
|
|
866
|
+
name: string;
|
|
867
|
+
pause_reason?: MonitorPauseReasonOutput;
|
|
868
|
+
status: MonitorStatusOutput;
|
|
869
|
+
};
|
|
810
870
|
export type EventTypeInput = "response.created" | "response.in_progress" | "response.completed" | "response.failed" | "response.output_item.added" | "response.output_item.done" | "response.output_text.delta" | "response.output_text.done" | "response.reasoning.started" | "response.reasoning.search_queries" | "response.reasoning.search_results" | "response.reasoning.image_search_queries" | "response.reasoning.image_search_results" | "response.reasoning.fetch_url_queries" | "response.reasoning.fetch_url_results" | "response.reasoning.stopped" | "response.skill.loaded";
|
|
811
871
|
export type EventTypeOutput = "response.created" | "response.in_progress" | "response.completed" | "response.failed" | "response.output_item.added" | "response.output_item.done" | "response.output_text.delta" | "response.output_text.done" | "response.reasoning.started" | "response.reasoning.search_queries" | "response.reasoning.search_results" | "response.reasoning.image_search_queries" | "response.reasoning.image_search_results" | "response.reasoning.fetch_url_queries" | "response.reasoning.fetch_url_results" | "response.reasoning.stopped" | "response.skill.loaded";
|
|
812
872
|
export type ExecutePythonStepDetailsInput = {
|
|
@@ -1395,6 +1455,472 @@ export type ModelListOutput = {
|
|
|
1395
1455
|
data: ModelOutput[];
|
|
1396
1456
|
object: "list";
|
|
1397
1457
|
};
|
|
1458
|
+
export type MonitorInput = {
|
|
1459
|
+
created_at: MonitorTimestampInput;
|
|
1460
|
+
current_run_id?: string;
|
|
1461
|
+
goal: string;
|
|
1462
|
+
id: string;
|
|
1463
|
+
last_run?: MonitorLastRunInput;
|
|
1464
|
+
metadata: MonitorMetadataInput;
|
|
1465
|
+
name: string;
|
|
1466
|
+
next_run_at?: MonitorTimestampInput;
|
|
1467
|
+
object: "monitor";
|
|
1468
|
+
pause_reason?: MonitorPauseReasonInput;
|
|
1469
|
+
schedule: MonitorScheduleInput;
|
|
1470
|
+
status: MonitorStatusInput;
|
|
1471
|
+
targets: MonitorTargetInput[];
|
|
1472
|
+
updated_at: MonitorTimestampInput;
|
|
1473
|
+
webhook?: MonitorWebhookInput;
|
|
1474
|
+
};
|
|
1475
|
+
export type MonitorOutput = {
|
|
1476
|
+
created_at: MonitorTimestampOutput;
|
|
1477
|
+
current_run_id?: string;
|
|
1478
|
+
goal: string;
|
|
1479
|
+
id: string;
|
|
1480
|
+
last_run?: MonitorLastRunOutput;
|
|
1481
|
+
metadata: MonitorMetadataOutput;
|
|
1482
|
+
name: string;
|
|
1483
|
+
next_run_at?: MonitorTimestampOutput;
|
|
1484
|
+
object: "monitor";
|
|
1485
|
+
pause_reason?: MonitorPauseReasonOutput;
|
|
1486
|
+
schedule: MonitorScheduleOutput;
|
|
1487
|
+
status: MonitorStatusOutput;
|
|
1488
|
+
targets: MonitorTargetOutput[];
|
|
1489
|
+
updated_at: MonitorTimestampOutput;
|
|
1490
|
+
webhook?: MonitorWebhookOutput;
|
|
1491
|
+
};
|
|
1492
|
+
export type MonitorChangeInput = MonitorSearchResultChangeInput | MonitorPageChangeInput;
|
|
1493
|
+
export type MonitorChangeOutput = MonitorSearchResultChangeOutput | MonitorPageChangeOutput;
|
|
1494
|
+
export type MonitorChangeIdInput = string;
|
|
1495
|
+
export type MonitorChangeIdOutput = string;
|
|
1496
|
+
export type MonitorChangesDetectedEventInput = {
|
|
1497
|
+
data: MonitorRunEventDataInput;
|
|
1498
|
+
id: MonitorEventIdInput;
|
|
1499
|
+
object: MonitorEventObjectInput;
|
|
1500
|
+
timestamp: MonitorTimestampInput;
|
|
1501
|
+
type: "monitor.changes.detected";
|
|
1502
|
+
};
|
|
1503
|
+
export type MonitorChangesDetectedEventOutput = {
|
|
1504
|
+
data: MonitorRunEventDataOutput;
|
|
1505
|
+
id: MonitorEventIdOutput;
|
|
1506
|
+
object: MonitorEventObjectOutput;
|
|
1507
|
+
timestamp: MonitorTimestampOutput;
|
|
1508
|
+
type: "monitor.changes.detected";
|
|
1509
|
+
};
|
|
1510
|
+
export type MonitorCronScheduleInput = {
|
|
1511
|
+
cron: string;
|
|
1512
|
+
timezone: string;
|
|
1513
|
+
type: "cron";
|
|
1514
|
+
};
|
|
1515
|
+
export type MonitorCronScheduleOutput = {
|
|
1516
|
+
cron: string;
|
|
1517
|
+
timezone: string;
|
|
1518
|
+
type: "cron";
|
|
1519
|
+
};
|
|
1520
|
+
export type MonitorCronScheduleRequestInput = {
|
|
1521
|
+
cron: string;
|
|
1522
|
+
timezone?: string;
|
|
1523
|
+
type: "cron";
|
|
1524
|
+
};
|
|
1525
|
+
export type MonitorCronScheduleRequestOutput = {
|
|
1526
|
+
cron: string;
|
|
1527
|
+
timezone?: string;
|
|
1528
|
+
type: "cron";
|
|
1529
|
+
};
|
|
1530
|
+
export type MonitorCurrencyInput = "USD";
|
|
1531
|
+
export type MonitorCurrencyOutput = "USD";
|
|
1532
|
+
export type MonitorDiffInput = {
|
|
1533
|
+
added_lines: number;
|
|
1534
|
+
removed_lines: number;
|
|
1535
|
+
truncated: boolean;
|
|
1536
|
+
unified: string;
|
|
1537
|
+
};
|
|
1538
|
+
export type MonitorDiffOutput = {
|
|
1539
|
+
added_lines: number;
|
|
1540
|
+
removed_lines: number;
|
|
1541
|
+
truncated: boolean;
|
|
1542
|
+
unified: string;
|
|
1543
|
+
};
|
|
1544
|
+
export type MonitorDomainInput = string;
|
|
1545
|
+
export type MonitorDomainOutput = string;
|
|
1546
|
+
export type MonitorEventInput = MonitorChangesDetectedEventInput | MonitorRunCompletedEventInput | MonitorPausedEventInput | MonitorWebhookTestEventInput;
|
|
1547
|
+
export type MonitorEventOutput = MonitorChangesDetectedEventOutput | MonitorRunCompletedEventOutput | MonitorPausedEventOutput | MonitorWebhookTestEventOutput;
|
|
1548
|
+
export type MonitorEventIdInput = string;
|
|
1549
|
+
export type MonitorEventIdOutput = string;
|
|
1550
|
+
export type MonitorEventObjectInput = "event";
|
|
1551
|
+
export type MonitorEventObjectOutput = "event";
|
|
1552
|
+
export type MonitorEventTypeInput = "monitor.changes.detected" | "monitor.run.completed" | "monitor.paused";
|
|
1553
|
+
export type MonitorEventTypeOutput = "monitor.changes.detected" | "monitor.run.completed" | "monitor.paused";
|
|
1554
|
+
export type MonitorFreshnessInput = "published" | "updated";
|
|
1555
|
+
export type MonitorFreshnessOutput = "published" | "updated";
|
|
1556
|
+
export type MonitorIntervalScheduleInput = {
|
|
1557
|
+
interval: string;
|
|
1558
|
+
type: "interval";
|
|
1559
|
+
};
|
|
1560
|
+
export type MonitorIntervalScheduleOutput = {
|
|
1561
|
+
interval: string;
|
|
1562
|
+
type: "interval";
|
|
1563
|
+
};
|
|
1564
|
+
export type MonitorIntervalScheduleRequestInput = {
|
|
1565
|
+
interval: string;
|
|
1566
|
+
type: "interval";
|
|
1567
|
+
};
|
|
1568
|
+
export type MonitorIntervalScheduleRequestOutput = {
|
|
1569
|
+
interval: string;
|
|
1570
|
+
type: "interval";
|
|
1571
|
+
};
|
|
1572
|
+
export type MonitorLastRunInput = {
|
|
1573
|
+
change_count: number;
|
|
1574
|
+
finished_at: MonitorTimestampInput;
|
|
1575
|
+
id: string;
|
|
1576
|
+
status: MonitorRunStatusInput;
|
|
1577
|
+
};
|
|
1578
|
+
export type MonitorLastRunOutput = {
|
|
1579
|
+
change_count: number;
|
|
1580
|
+
finished_at: MonitorTimestampOutput;
|
|
1581
|
+
id: string;
|
|
1582
|
+
status: MonitorRunStatusOutput;
|
|
1583
|
+
};
|
|
1584
|
+
export type MonitorListInput = {
|
|
1585
|
+
data: MonitorInput[];
|
|
1586
|
+
has_more: boolean;
|
|
1587
|
+
object: "list";
|
|
1588
|
+
};
|
|
1589
|
+
export type MonitorListOutput = {
|
|
1590
|
+
data: MonitorOutput[];
|
|
1591
|
+
has_more: boolean;
|
|
1592
|
+
object: "list";
|
|
1593
|
+
};
|
|
1594
|
+
export type MonitorMetadataInput = {} & Record<string, string>;
|
|
1595
|
+
export type MonitorMetadataOutput = {} & Record<string, string>;
|
|
1596
|
+
export type MonitorPageChangeInput = {
|
|
1597
|
+
confidence: number;
|
|
1598
|
+
diff: MonitorDiffInput;
|
|
1599
|
+
fetched_at: MonitorTimestampInput;
|
|
1600
|
+
id: MonitorChangeIdInput;
|
|
1601
|
+
previous_fetched_at: MonitorTimestampInput;
|
|
1602
|
+
title?: string;
|
|
1603
|
+
type: "page_change";
|
|
1604
|
+
url: string;
|
|
1605
|
+
};
|
|
1606
|
+
export type MonitorPageChangeOutput = {
|
|
1607
|
+
confidence: number;
|
|
1608
|
+
diff: MonitorDiffOutput;
|
|
1609
|
+
fetched_at: MonitorTimestampOutput;
|
|
1610
|
+
id: MonitorChangeIdOutput;
|
|
1611
|
+
previous_fetched_at: MonitorTimestampOutput;
|
|
1612
|
+
title?: string;
|
|
1613
|
+
type: "page_change";
|
|
1614
|
+
url: string;
|
|
1615
|
+
};
|
|
1616
|
+
export type MonitorPageTargetInput = {
|
|
1617
|
+
type: "page";
|
|
1618
|
+
url: string;
|
|
1619
|
+
};
|
|
1620
|
+
export type MonitorPageTargetOutput = {
|
|
1621
|
+
type: "page";
|
|
1622
|
+
url: string;
|
|
1623
|
+
};
|
|
1624
|
+
export type MonitorPageTargetErrorInput = {
|
|
1625
|
+
code: MonitorTargetErrorCodeInput;
|
|
1626
|
+
message: string;
|
|
1627
|
+
status_code?: number;
|
|
1628
|
+
type: "page";
|
|
1629
|
+
url: string;
|
|
1630
|
+
};
|
|
1631
|
+
export type MonitorPageTargetErrorOutput = {
|
|
1632
|
+
code: MonitorTargetErrorCodeOutput;
|
|
1633
|
+
message: string;
|
|
1634
|
+
status_code?: number;
|
|
1635
|
+
type: "page";
|
|
1636
|
+
url: string;
|
|
1637
|
+
};
|
|
1638
|
+
export type MonitorPageTargetRequestInput = {
|
|
1639
|
+
type: "page";
|
|
1640
|
+
url: string;
|
|
1641
|
+
};
|
|
1642
|
+
export type MonitorPageTargetRequestOutput = {
|
|
1643
|
+
type: "page";
|
|
1644
|
+
url: string;
|
|
1645
|
+
};
|
|
1646
|
+
export type MonitorPausedEventInput = {
|
|
1647
|
+
data: MonitorPausedEventDataInput;
|
|
1648
|
+
id: MonitorEventIdInput;
|
|
1649
|
+
object: MonitorEventObjectInput;
|
|
1650
|
+
timestamp: MonitorTimestampInput;
|
|
1651
|
+
type: "monitor.paused";
|
|
1652
|
+
};
|
|
1653
|
+
export type MonitorPausedEventOutput = {
|
|
1654
|
+
data: MonitorPausedEventDataOutput;
|
|
1655
|
+
id: MonitorEventIdOutput;
|
|
1656
|
+
object: MonitorEventObjectOutput;
|
|
1657
|
+
timestamp: MonitorTimestampOutput;
|
|
1658
|
+
type: "monitor.paused";
|
|
1659
|
+
};
|
|
1660
|
+
export type MonitorPausedEventDataInput = {
|
|
1661
|
+
monitor: PausedEventMonitorInput;
|
|
1662
|
+
run?: MonitorRunInput;
|
|
1663
|
+
};
|
|
1664
|
+
export type MonitorPausedEventDataOutput = {
|
|
1665
|
+
monitor: PausedEventMonitorOutput;
|
|
1666
|
+
run?: MonitorRunOutput;
|
|
1667
|
+
};
|
|
1668
|
+
export type MonitorPauseReasonInput = "user" | "insufficient_credits" | "org_policy" | "webhook_failing" | "source_failing";
|
|
1669
|
+
export type MonitorPauseReasonOutput = "user" | "insufficient_credits" | "org_policy" | "webhook_failing" | "source_failing";
|
|
1670
|
+
export type MonitorRunInput = {
|
|
1671
|
+
changes: MonitorChangeInput[];
|
|
1672
|
+
counts: MonitorRunCountsInput;
|
|
1673
|
+
created_at: MonitorTimestampInput;
|
|
1674
|
+
error?: MonitorRunErrorInput;
|
|
1675
|
+
finished_at?: MonitorTimestampInput;
|
|
1676
|
+
id: string;
|
|
1677
|
+
monitor_id: string;
|
|
1678
|
+
object: "monitor.run";
|
|
1679
|
+
status: MonitorRunStatusInput;
|
|
1680
|
+
target_errors: MonitorTargetErrorInput[];
|
|
1681
|
+
trigger: MonitorRunTriggerInput;
|
|
1682
|
+
usage: MonitorRunUsageInput;
|
|
1683
|
+
window?: MonitorRunWindowInput;
|
|
1684
|
+
};
|
|
1685
|
+
export type MonitorRunOutput = {
|
|
1686
|
+
changes: MonitorChangeOutput[];
|
|
1687
|
+
counts: MonitorRunCountsOutput;
|
|
1688
|
+
created_at: MonitorTimestampOutput;
|
|
1689
|
+
error?: MonitorRunErrorOutput;
|
|
1690
|
+
finished_at?: MonitorTimestampOutput;
|
|
1691
|
+
id: string;
|
|
1692
|
+
monitor_id: string;
|
|
1693
|
+
object: "monitor.run";
|
|
1694
|
+
status: MonitorRunStatusOutput;
|
|
1695
|
+
target_errors: MonitorTargetErrorOutput[];
|
|
1696
|
+
trigger: MonitorRunTriggerOutput;
|
|
1697
|
+
usage: MonitorRunUsageOutput;
|
|
1698
|
+
window?: MonitorRunWindowOutput;
|
|
1699
|
+
};
|
|
1700
|
+
export type MonitorRunCompletedEventInput = {
|
|
1701
|
+
data: MonitorRunEventDataInput;
|
|
1702
|
+
id: MonitorEventIdInput;
|
|
1703
|
+
object: MonitorEventObjectInput;
|
|
1704
|
+
timestamp: MonitorTimestampInput;
|
|
1705
|
+
type: "monitor.run.completed";
|
|
1706
|
+
};
|
|
1707
|
+
export type MonitorRunCompletedEventOutput = {
|
|
1708
|
+
data: MonitorRunEventDataOutput;
|
|
1709
|
+
id: MonitorEventIdOutput;
|
|
1710
|
+
object: MonitorEventObjectOutput;
|
|
1711
|
+
timestamp: MonitorTimestampOutput;
|
|
1712
|
+
type: "monitor.run.completed";
|
|
1713
|
+
};
|
|
1714
|
+
export type MonitorRunCostInput = {
|
|
1715
|
+
currency: MonitorCurrencyInput;
|
|
1716
|
+
total_cost: number;
|
|
1717
|
+
};
|
|
1718
|
+
export type MonitorRunCostOutput = {
|
|
1719
|
+
currency: MonitorCurrencyOutput;
|
|
1720
|
+
total_cost: number;
|
|
1721
|
+
};
|
|
1722
|
+
export type MonitorRunCountsInput = {
|
|
1723
|
+
candidates: number;
|
|
1724
|
+
changes: number;
|
|
1725
|
+
errors: number;
|
|
1726
|
+
};
|
|
1727
|
+
export type MonitorRunCountsOutput = {
|
|
1728
|
+
candidates: number;
|
|
1729
|
+
changes: number;
|
|
1730
|
+
errors: number;
|
|
1731
|
+
};
|
|
1732
|
+
export type MonitorRunErrorInput = {
|
|
1733
|
+
code?: MonitorRunFailureCodeInput;
|
|
1734
|
+
message: string;
|
|
1735
|
+
skip_reason?: MonitorPauseReasonInput;
|
|
1736
|
+
};
|
|
1737
|
+
export type MonitorRunErrorOutput = {
|
|
1738
|
+
code?: MonitorRunFailureCodeOutput;
|
|
1739
|
+
message: string;
|
|
1740
|
+
skip_reason?: MonitorPauseReasonOutput;
|
|
1741
|
+
};
|
|
1742
|
+
export type MonitorRunEventDataInput = {
|
|
1743
|
+
monitor: EventMonitorInput;
|
|
1744
|
+
run: MonitorRunInput;
|
|
1745
|
+
};
|
|
1746
|
+
export type MonitorRunEventDataOutput = {
|
|
1747
|
+
monitor: EventMonitorOutput;
|
|
1748
|
+
run: MonitorRunOutput;
|
|
1749
|
+
};
|
|
1750
|
+
export type MonitorRunFailureCodeInput = "gate_unavailable" | "detect_failed" | "judge_failed" | "source_failed" | "notify_failed" | "timed_out";
|
|
1751
|
+
export type MonitorRunFailureCodeOutput = "gate_unavailable" | "detect_failed" | "judge_failed" | "source_failed" | "notify_failed" | "timed_out";
|
|
1752
|
+
export type MonitorRunListInput = {
|
|
1753
|
+
data: MonitorRunInput[];
|
|
1754
|
+
has_more: boolean;
|
|
1755
|
+
object: "list";
|
|
1756
|
+
};
|
|
1757
|
+
export type MonitorRunListOutput = {
|
|
1758
|
+
data: MonitorRunOutput[];
|
|
1759
|
+
has_more: boolean;
|
|
1760
|
+
object: "list";
|
|
1761
|
+
};
|
|
1762
|
+
export type MonitorRunStatusInput = "queued" | "running" | "succeeded" | "failed" | "skipped";
|
|
1763
|
+
export type MonitorRunStatusOutput = "queued" | "running" | "succeeded" | "failed" | "skipped";
|
|
1764
|
+
export type MonitorRunTriggerInput = "schedule" | "manual";
|
|
1765
|
+
export type MonitorRunTriggerOutput = "schedule" | "manual";
|
|
1766
|
+
export type MonitorRunUsageInput = {
|
|
1767
|
+
cost: MonitorRunCostInput;
|
|
1768
|
+
fetched_urls: number;
|
|
1769
|
+
};
|
|
1770
|
+
export type MonitorRunUsageOutput = {
|
|
1771
|
+
cost: MonitorRunCostOutput;
|
|
1772
|
+
fetched_urls: number;
|
|
1773
|
+
};
|
|
1774
|
+
export type MonitorRunWindowInput = {
|
|
1775
|
+
from: MonitorTimestampInput;
|
|
1776
|
+
to: MonitorTimestampInput;
|
|
1777
|
+
};
|
|
1778
|
+
export type MonitorRunWindowOutput = {
|
|
1779
|
+
from: MonitorTimestampOutput;
|
|
1780
|
+
to: MonitorTimestampOutput;
|
|
1781
|
+
};
|
|
1782
|
+
export type MonitorScheduleInput = MonitorIntervalScheduleInput | MonitorCronScheduleInput;
|
|
1783
|
+
export type MonitorScheduleOutput = MonitorIntervalScheduleOutput | MonitorCronScheduleOutput;
|
|
1784
|
+
export type MonitorScheduleRequestInput = MonitorIntervalScheduleRequestInput | MonitorCronScheduleRequestInput;
|
|
1785
|
+
export type MonitorScheduleRequestOutput = MonitorIntervalScheduleRequestOutput | MonitorCronScheduleRequestOutput;
|
|
1786
|
+
export type MonitorSearchFiltersInput = {
|
|
1787
|
+
exclude_domains: MonitorDomainInput[];
|
|
1788
|
+
freshness: MonitorFreshnessInput[];
|
|
1789
|
+
include_domains: MonitorDomainInput[];
|
|
1790
|
+
};
|
|
1791
|
+
export type MonitorSearchFiltersOutput = {
|
|
1792
|
+
exclude_domains: MonitorDomainOutput[];
|
|
1793
|
+
freshness: MonitorFreshnessOutput[];
|
|
1794
|
+
include_domains: MonitorDomainOutput[];
|
|
1795
|
+
};
|
|
1796
|
+
export type MonitorSearchFiltersRequestInput = {
|
|
1797
|
+
exclude_domains?: string[];
|
|
1798
|
+
freshness?: MonitorFreshnessInput[];
|
|
1799
|
+
include_domains?: string[];
|
|
1800
|
+
};
|
|
1801
|
+
export type MonitorSearchFiltersRequestOutput = {
|
|
1802
|
+
exclude_domains?: string[];
|
|
1803
|
+
freshness?: MonitorFreshnessOutput[];
|
|
1804
|
+
include_domains?: string[];
|
|
1805
|
+
};
|
|
1806
|
+
export type MonitorSearchResultChangeInput = {
|
|
1807
|
+
confidence: number;
|
|
1808
|
+
id: MonitorChangeIdInput;
|
|
1809
|
+
last_updated_at?: MonitorTimestampInput;
|
|
1810
|
+
published_at?: MonitorTimestampInput;
|
|
1811
|
+
snippet?: string;
|
|
1812
|
+
title?: string;
|
|
1813
|
+
type: "search_result";
|
|
1814
|
+
url: string;
|
|
1815
|
+
};
|
|
1816
|
+
export type MonitorSearchResultChangeOutput = {
|
|
1817
|
+
confidence: number;
|
|
1818
|
+
id: MonitorChangeIdOutput;
|
|
1819
|
+
last_updated_at?: MonitorTimestampOutput;
|
|
1820
|
+
published_at?: MonitorTimestampOutput;
|
|
1821
|
+
snippet?: string;
|
|
1822
|
+
title?: string;
|
|
1823
|
+
type: "search_result";
|
|
1824
|
+
url: string;
|
|
1825
|
+
};
|
|
1826
|
+
export type MonitorSearchTargetInput = {
|
|
1827
|
+
filters: MonitorSearchFiltersInput;
|
|
1828
|
+
max_results: number;
|
|
1829
|
+
query: string;
|
|
1830
|
+
type: "search";
|
|
1831
|
+
};
|
|
1832
|
+
export type MonitorSearchTargetOutput = {
|
|
1833
|
+
filters: MonitorSearchFiltersOutput;
|
|
1834
|
+
max_results: number;
|
|
1835
|
+
query: string;
|
|
1836
|
+
type: "search";
|
|
1837
|
+
};
|
|
1838
|
+
export type MonitorSearchTargetRequestInput = {
|
|
1839
|
+
filters?: MonitorSearchFiltersRequestInput;
|
|
1840
|
+
max_results?: number;
|
|
1841
|
+
query: string;
|
|
1842
|
+
type: "search";
|
|
1843
|
+
};
|
|
1844
|
+
export type MonitorSearchTargetRequestOutput = {
|
|
1845
|
+
filters?: MonitorSearchFiltersRequestOutput;
|
|
1846
|
+
max_results?: number;
|
|
1847
|
+
query: string;
|
|
1848
|
+
type: "search";
|
|
1849
|
+
};
|
|
1850
|
+
export type MonitorStatusInput = "active" | "paused";
|
|
1851
|
+
export type MonitorStatusOutput = "active" | "paused";
|
|
1852
|
+
export type MonitorTargetInput = MonitorSearchTargetInput | MonitorPageTargetInput;
|
|
1853
|
+
export type MonitorTargetOutput = MonitorSearchTargetOutput | MonitorPageTargetOutput;
|
|
1854
|
+
export type MonitorTargetErrorInput = MonitorPageTargetErrorInput;
|
|
1855
|
+
export type MonitorTargetErrorOutput = MonitorPageTargetErrorOutput;
|
|
1856
|
+
export type MonitorTargetErrorCodeInput = "invalid_url" | "blocked" | "no_content" | "load_failed" | "timeout" | "fetch_unavailable" | "http_status";
|
|
1857
|
+
export type MonitorTargetErrorCodeOutput = "invalid_url" | "blocked" | "no_content" | "load_failed" | "timeout" | "fetch_unavailable" | "http_status";
|
|
1858
|
+
export type MonitorTargetRequestInput = MonitorSearchTargetRequestInput | MonitorPageTargetRequestInput;
|
|
1859
|
+
export type MonitorTargetRequestOutput = MonitorSearchTargetRequestOutput | MonitorPageTargetRequestOutput;
|
|
1860
|
+
export type MonitorTargetsInput = MonitorTargetRequestInput[];
|
|
1861
|
+
export type MonitorTargetsOutput = MonitorTargetRequestOutput[];
|
|
1862
|
+
export type MonitorTimestampInput = string;
|
|
1863
|
+
export type MonitorTimestampOutput = string;
|
|
1864
|
+
export type MonitorWebhookInput = {
|
|
1865
|
+
events: MonitorEventTypeInput[];
|
|
1866
|
+
secret?: MonitorWebhookSecretInput;
|
|
1867
|
+
url: string;
|
|
1868
|
+
};
|
|
1869
|
+
export type MonitorWebhookOutput = {
|
|
1870
|
+
events: MonitorEventTypeOutput[];
|
|
1871
|
+
secret?: MonitorWebhookSecretOutput;
|
|
1872
|
+
url: string;
|
|
1873
|
+
};
|
|
1874
|
+
export type MonitorWebhookRequestInput = {
|
|
1875
|
+
events?: MonitorEventTypeInput[];
|
|
1876
|
+
secret?: MonitorWebhookSecretInput;
|
|
1877
|
+
url: string;
|
|
1878
|
+
} | null;
|
|
1879
|
+
export type MonitorWebhookRequestOutput = {
|
|
1880
|
+
events?: MonitorEventTypeOutput[];
|
|
1881
|
+
secret?: MonitorWebhookSecretOutput;
|
|
1882
|
+
url: string;
|
|
1883
|
+
} | null;
|
|
1884
|
+
export type MonitorWebhookSecretInput = string;
|
|
1885
|
+
export type MonitorWebhookSecretOutput = string;
|
|
1886
|
+
export type MonitorWebhookTestInput = {
|
|
1887
|
+
delivered: boolean;
|
|
1888
|
+
duration_ms: number;
|
|
1889
|
+
error?: MonitorWebhookTestErrorInput;
|
|
1890
|
+
event_id: string;
|
|
1891
|
+
object: "monitor.webhook_test";
|
|
1892
|
+
status_code?: number;
|
|
1893
|
+
};
|
|
1894
|
+
export type MonitorWebhookTestOutput = {
|
|
1895
|
+
delivered: boolean;
|
|
1896
|
+
duration_ms: number;
|
|
1897
|
+
error?: MonitorWebhookTestErrorOutput;
|
|
1898
|
+
event_id: string;
|
|
1899
|
+
object: "monitor.webhook_test";
|
|
1900
|
+
status_code?: number;
|
|
1901
|
+
};
|
|
1902
|
+
export type MonitorWebhookTestErrorInput = "http_status" | "timeout" | "network_error" | "tls_certificate" | "blocked_address" | "invalid_url" | "send_failed";
|
|
1903
|
+
export type MonitorWebhookTestErrorOutput = "http_status" | "timeout" | "network_error" | "tls_certificate" | "blocked_address" | "invalid_url" | "send_failed";
|
|
1904
|
+
export type MonitorWebhookTestEventInput = {
|
|
1905
|
+
data: MonitorWebhookTestEventDataInput;
|
|
1906
|
+
id: MonitorEventIdInput;
|
|
1907
|
+
object: MonitorEventObjectInput;
|
|
1908
|
+
timestamp: MonitorTimestampInput;
|
|
1909
|
+
type: "monitor.webhook.test";
|
|
1910
|
+
};
|
|
1911
|
+
export type MonitorWebhookTestEventOutput = {
|
|
1912
|
+
data: MonitorWebhookTestEventDataOutput;
|
|
1913
|
+
id: MonitorEventIdOutput;
|
|
1914
|
+
object: MonitorEventObjectOutput;
|
|
1915
|
+
timestamp: MonitorTimestampOutput;
|
|
1916
|
+
type: "monitor.webhook.test";
|
|
1917
|
+
};
|
|
1918
|
+
export type MonitorWebhookTestEventDataInput = {
|
|
1919
|
+
monitor: EventMonitorInput;
|
|
1920
|
+
};
|
|
1921
|
+
export type MonitorWebhookTestEventDataOutput = {
|
|
1922
|
+
monitor: EventMonitorOutput;
|
|
1923
|
+
};
|
|
1398
1924
|
export type NamespaceToolInput = {
|
|
1399
1925
|
description: string;
|
|
1400
1926
|
name: string;
|
|
@@ -1463,6 +1989,20 @@ export type ParameterSpecOutput = {
|
|
|
1463
1989
|
required?: string[] | null;
|
|
1464
1990
|
type: string;
|
|
1465
1991
|
};
|
|
1992
|
+
export type PausedEventMonitorInput = {
|
|
1993
|
+
id: string;
|
|
1994
|
+
metadata: {} & Record<string, string>;
|
|
1995
|
+
name: string;
|
|
1996
|
+
pause_reason: MonitorPauseReasonInput;
|
|
1997
|
+
status: "paused";
|
|
1998
|
+
};
|
|
1999
|
+
export type PausedEventMonitorOutput = {
|
|
2000
|
+
id: string;
|
|
2001
|
+
metadata: {} & Record<string, string>;
|
|
2002
|
+
name: string;
|
|
2003
|
+
pause_reason: MonitorPauseReasonOutput;
|
|
2004
|
+
status: "paused";
|
|
2005
|
+
};
|
|
1466
2006
|
export type PeopleSearchToolInput = {
|
|
1467
2007
|
type: "people_search";
|
|
1468
2008
|
};
|
|
@@ -2227,6 +2767,22 @@ export type UnknownOutputItemOutput = {
|
|
|
2227
2767
|
payload: {} & Record<string, unknown>;
|
|
2228
2768
|
type: "unknown";
|
|
2229
2769
|
};
|
|
2770
|
+
export type UpdateMonitorRequestInput = {
|
|
2771
|
+
goal?: string | null;
|
|
2772
|
+
metadata?: ({} & Record<string, string>) | null;
|
|
2773
|
+
name?: string;
|
|
2774
|
+
schedule?: MonitorScheduleRequestInput;
|
|
2775
|
+
targets?: MonitorTargetsInput;
|
|
2776
|
+
webhook?: (Record<string, unknown> & (MonitorWebhookRequestInput)) | null;
|
|
2777
|
+
};
|
|
2778
|
+
export type UpdateMonitorRequestOutput = {
|
|
2779
|
+
goal?: string | null;
|
|
2780
|
+
metadata?: ({} & Record<string, string>) | null;
|
|
2781
|
+
name?: string;
|
|
2782
|
+
schedule?: MonitorScheduleRequestOutput;
|
|
2783
|
+
targets?: MonitorTargetsOutput;
|
|
2784
|
+
webhook?: (Record<string, unknown> & (MonitorWebhookRequestOutput)) | null;
|
|
2785
|
+
};
|
|
2230
2786
|
export type URLInput = {
|
|
2231
2787
|
url: string;
|
|
2232
2788
|
};
|
|
@@ -2425,6 +2981,43 @@ export class ChatCompletionsResource {
|
|
|
2425
2981
|
});
|
|
2426
2982
|
}
|
|
2427
2983
|
}
|
|
2984
|
+
export class MonitorsRunsResource {
|
|
2985
|
+
private readonly _client: SdkTransport;
|
|
2986
|
+
constructor(client: SdkTransport) {
|
|
2987
|
+
this._client = client;
|
|
2988
|
+
}
|
|
2989
|
+
list(monitorID: string, params?: {
|
|
2990
|
+
after?: string;
|
|
2991
|
+
limit?: number;
|
|
2992
|
+
}, options?: RequestOptions): APIPromise<MonitorRunListOutput> {
|
|
2993
|
+
return this._client.get<MonitorRunListOutput>(`/v1/monitors/${pathSegment(monitorID)}/runs`, {
|
|
2994
|
+
...options,
|
|
2995
|
+
query: {
|
|
2996
|
+
after: params?.after,
|
|
2997
|
+
limit: params?.limit,
|
|
2998
|
+
...options?.query
|
|
2999
|
+
}
|
|
3000
|
+
});
|
|
3001
|
+
}
|
|
3002
|
+
retrieve(runID: string, params: {
|
|
3003
|
+
monitor_id: string;
|
|
3004
|
+
}, options?: RequestOptions): APIPromise<MonitorRunOutput> {
|
|
3005
|
+
return this._client.get<MonitorRunOutput>(`/v1/monitors/${pathSegment(params.monitor_id)}/runs/${pathSegment(runID)}`, {
|
|
3006
|
+
...options
|
|
3007
|
+
});
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
export class MonitorsWebhookResource {
|
|
3011
|
+
private readonly _client: SdkTransport;
|
|
3012
|
+
constructor(client: SdkTransport) {
|
|
3013
|
+
this._client = client;
|
|
3014
|
+
}
|
|
3015
|
+
test(monitorID: string, options?: RequestOptions): APIPromise<MonitorWebhookTestOutput> {
|
|
3016
|
+
return this._client.post<MonitorWebhookTestOutput>(`/v1/monitors/${pathSegment(monitorID)}/webhook/test`, {
|
|
3017
|
+
...options
|
|
3018
|
+
});
|
|
3019
|
+
}
|
|
3020
|
+
}
|
|
2428
3021
|
export class ResponsesFilesResource {
|
|
2429
3022
|
private readonly _client: SdkTransport;
|
|
2430
3023
|
constructor(client: SdkTransport) {
|
|
@@ -2622,6 +3215,72 @@ export class ModelsResource {
|
|
|
2622
3215
|
});
|
|
2623
3216
|
}
|
|
2624
3217
|
}
|
|
3218
|
+
export class MonitorsResource {
|
|
3219
|
+
private readonly _client: SdkTransport;
|
|
3220
|
+
readonly runs: MonitorsRunsResource;
|
|
3221
|
+
readonly webhook: MonitorsWebhookResource;
|
|
3222
|
+
constructor(client: SdkTransport) {
|
|
3223
|
+
this._client = client;
|
|
3224
|
+
this.runs = new MonitorsRunsResource(client);
|
|
3225
|
+
this.webhook = new MonitorsWebhookResource(client);
|
|
3226
|
+
}
|
|
3227
|
+
create(body: CreateMonitorRequestInput, params?: {
|
|
3228
|
+
"Idempotency-Key"?: string;
|
|
3229
|
+
}, options?: RequestOptions): APIPromise<MonitorOutput> {
|
|
3230
|
+
return this._client.post<MonitorOutput>("/v1/monitors", {
|
|
3231
|
+
...options,
|
|
3232
|
+
body: body,
|
|
3233
|
+
headers: {
|
|
3234
|
+
"Idempotency-Key": params?.["Idempotency-Key"],
|
|
3235
|
+
...normalizeHeaders(options?.headers)
|
|
3236
|
+
}
|
|
3237
|
+
});
|
|
3238
|
+
}
|
|
3239
|
+
delete(monitorID: string, options?: RequestOptions): APIPromise<DeleteMonitorResponseOutput> {
|
|
3240
|
+
return this._client.delete<DeleteMonitorResponseOutput>(`/v1/monitors/${pathSegment(monitorID)}`, {
|
|
3241
|
+
...options
|
|
3242
|
+
});
|
|
3243
|
+
}
|
|
3244
|
+
list(params?: {
|
|
3245
|
+
after?: string;
|
|
3246
|
+
limit?: number;
|
|
3247
|
+
}, options?: RequestOptions): APIPromise<MonitorListOutput> {
|
|
3248
|
+
return this._client.get<MonitorListOutput>("/v1/monitors", {
|
|
3249
|
+
...options,
|
|
3250
|
+
query: {
|
|
3251
|
+
after: params?.after,
|
|
3252
|
+
limit: params?.limit,
|
|
3253
|
+
...options?.query
|
|
3254
|
+
}
|
|
3255
|
+
});
|
|
3256
|
+
}
|
|
3257
|
+
pause(monitorID: string, options?: RequestOptions): APIPromise<MonitorOutput> {
|
|
3258
|
+
return this._client.post<MonitorOutput>(`/v1/monitors/${pathSegment(monitorID)}/pause`, {
|
|
3259
|
+
...options
|
|
3260
|
+
});
|
|
3261
|
+
}
|
|
3262
|
+
resume(monitorID: string, options?: RequestOptions): APIPromise<MonitorOutput> {
|
|
3263
|
+
return this._client.post<MonitorOutput>(`/v1/monitors/${pathSegment(monitorID)}/resume`, {
|
|
3264
|
+
...options
|
|
3265
|
+
});
|
|
3266
|
+
}
|
|
3267
|
+
retrieve(monitorID: string, options?: RequestOptions): APIPromise<MonitorOutput> {
|
|
3268
|
+
return this._client.get<MonitorOutput>(`/v1/monitors/${pathSegment(monitorID)}`, {
|
|
3269
|
+
...options
|
|
3270
|
+
});
|
|
3271
|
+
}
|
|
3272
|
+
run(monitorID: string, options?: RequestOptions): APIPromise<MonitorRunOutput> {
|
|
3273
|
+
return this._client.post<MonitorRunOutput>(`/v1/monitors/${pathSegment(monitorID)}/run`, {
|
|
3274
|
+
...options
|
|
3275
|
+
});
|
|
3276
|
+
}
|
|
3277
|
+
update(monitorID: string, body: UpdateMonitorRequestInput, options?: RequestOptions): APIPromise<MonitorOutput> {
|
|
3278
|
+
return this._client.patch<MonitorOutput>(`/v1/monitors/${pathSegment(monitorID)}`, {
|
|
3279
|
+
...options,
|
|
3280
|
+
body: body
|
|
3281
|
+
});
|
|
3282
|
+
}
|
|
3283
|
+
}
|
|
2625
3284
|
export class ResponsesResource {
|
|
2626
3285
|
private readonly _client: SdkTransport;
|
|
2627
3286
|
readonly files: ResponsesFilesResource;
|
|
@@ -2837,6 +3496,7 @@ export class PerplexitySdk {
|
|
|
2837
3496
|
readonly embeddings: EmbeddingsResource;
|
|
2838
3497
|
readonly files: FilesResource;
|
|
2839
3498
|
readonly models: ModelsResource;
|
|
3499
|
+
readonly monitors: MonitorsResource;
|
|
2840
3500
|
readonly responses: ResponsesResource;
|
|
2841
3501
|
readonly search: SearchResource;
|
|
2842
3502
|
readonly skills: SkillsResource;
|
|
@@ -2850,6 +3510,7 @@ export class PerplexitySdk {
|
|
|
2850
3510
|
this.embeddings = new EmbeddingsResource(client);
|
|
2851
3511
|
this.files = new FilesResource(client);
|
|
2852
3512
|
this.models = new ModelsResource(client);
|
|
3513
|
+
this.monitors = new MonitorsResource(client);
|
|
2853
3514
|
this.responses = new ResponsesResource(client);
|
|
2854
3515
|
this.search = new SearchResource(client);
|
|
2855
3516
|
this.skills = new SkillsResource(client);
|
|
@@ -2873,6 +3534,8 @@ export class Files extends FilesResource {
|
|
|
2873
3534
|
}
|
|
2874
3535
|
export class Models extends ModelsResource {
|
|
2875
3536
|
}
|
|
3537
|
+
export class Monitors extends MonitorsResource {
|
|
3538
|
+
}
|
|
2876
3539
|
export class Responses extends ResponsesResource {
|
|
2877
3540
|
}
|
|
2878
3541
|
export class Search extends SearchResource {
|
|
@@ -2915,6 +3578,19 @@ export type JsonSchemaFormat = JSONSchemaFormatInput;
|
|
|
2915
3578
|
export type ManagedSkill = ManagedSkillOutput;
|
|
2916
3579
|
export type Model = ModelOutput;
|
|
2917
3580
|
export type ModelListResponse = Awaited<ReturnType<ModelsResource["list"]>>;
|
|
3581
|
+
export type Monitor = MonitorOutput;
|
|
3582
|
+
export type MonitorChangesDetectedEvent = MonitorChangesDetectedEventOutput;
|
|
3583
|
+
export type MonitorCreateParams = CreateMonitorRequestInput;
|
|
3584
|
+
export type MonitorDeleteResponse = DeleteMonitorResponseOutput;
|
|
3585
|
+
export type MonitorEvent = MonitorEventOutput;
|
|
3586
|
+
export type MonitorListResponse = MonitorListOutput;
|
|
3587
|
+
export type MonitorPausedEvent = MonitorPausedEventOutput;
|
|
3588
|
+
export type MonitorRun = MonitorRunOutput;
|
|
3589
|
+
export type MonitorRunCompletedEvent = MonitorRunCompletedEventOutput;
|
|
3590
|
+
export type MonitorRunListResponse = MonitorRunListOutput;
|
|
3591
|
+
export type MonitorUpdateParams = UpdateMonitorRequestInput;
|
|
3592
|
+
export type MonitorWebhookTestEvent = MonitorWebhookTestEventOutput;
|
|
3593
|
+
export type MonitorWebhookTestResponse = MonitorWebhookTestOutput;
|
|
2918
3594
|
export type OutputItem = OutputItemOutput;
|
|
2919
3595
|
export type ResponseCancelResponse = Awaited<ReturnType<ResponsesResource["cancel"]>>;
|
|
2920
3596
|
export type ResponseCreateParams = ResponsesRequestInput;
|
|
@@ -3020,6 +3696,32 @@ export namespace Models {
|
|
|
3020
3696
|
export type Model = ModelOutput;
|
|
3021
3697
|
export type ModelListResponse = Awaited<ReturnType<ModelsResource["list"]>>;
|
|
3022
3698
|
}
|
|
3699
|
+
export namespace Monitors {
|
|
3700
|
+
export class Runs extends MonitorsRunsResource {
|
|
3701
|
+
}
|
|
3702
|
+
export class Webhook extends MonitorsWebhookResource {
|
|
3703
|
+
}
|
|
3704
|
+
export type Monitor = MonitorOutput;
|
|
3705
|
+
export type MonitorChangesDetectedEvent = MonitorChangesDetectedEventOutput;
|
|
3706
|
+
export type MonitorCreateParams = CreateMonitorRequestInput;
|
|
3707
|
+
export type MonitorDeleteResponse = DeleteMonitorResponseOutput;
|
|
3708
|
+
export type MonitorEvent = MonitorEventOutput;
|
|
3709
|
+
export type MonitorListResponse = MonitorListOutput;
|
|
3710
|
+
export type MonitorPausedEvent = MonitorPausedEventOutput;
|
|
3711
|
+
export type MonitorRun = MonitorRunOutput;
|
|
3712
|
+
export type MonitorRunCompletedEvent = MonitorRunCompletedEventOutput;
|
|
3713
|
+
export type MonitorRunListResponse = MonitorRunListOutput;
|
|
3714
|
+
export type MonitorUpdateParams = UpdateMonitorRequestInput;
|
|
3715
|
+
export type MonitorWebhookTestEvent = MonitorWebhookTestEventOutput;
|
|
3716
|
+
export type MonitorWebhookTestResponse = MonitorWebhookTestOutput;
|
|
3717
|
+
export namespace Runs {
|
|
3718
|
+
export type MonitorRun = MonitorRunOutput;
|
|
3719
|
+
export type MonitorRunListResponse = MonitorRunListOutput;
|
|
3720
|
+
}
|
|
3721
|
+
export namespace Webhook {
|
|
3722
|
+
export type MonitorWebhookTestResponse = MonitorWebhookTestOutput;
|
|
3723
|
+
}
|
|
3724
|
+
}
|
|
3023
3725
|
export namespace Responses {
|
|
3024
3726
|
export class Files extends ResponsesFilesResource {
|
|
3025
3727
|
}
|