@perplexity-ai/perplexity_ai 0.41.0 → 0.43.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/generated/api.d.ts +765 -4
  3. package/dist/generated/api.d.ts.map +1 -1
  4. package/dist/generated/api.js +113 -0
  5. package/dist/generated/api.js.map +1 -1
  6. package/dist/resources/client.d.ts +24 -0
  7. package/dist/resources/client.d.ts.map +1 -1
  8. package/dist/resources/client.js +4 -0
  9. package/dist/resources/client.js.map +1 -1
  10. package/dist/resources/context.d.ts +8 -0
  11. package/dist/resources/context.d.ts.map +1 -0
  12. package/dist/resources/context.js +3 -0
  13. package/dist/resources/context.js.map +1 -0
  14. package/dist/resources/index.d.ts +2 -0
  15. package/dist/resources/index.d.ts.map +1 -1
  16. package/dist/resources/index.js +2 -0
  17. package/dist/resources/index.js.map +1 -1
  18. package/dist/resources/monitors/index.d.ts +4 -0
  19. package/dist/resources/monitors/index.d.ts.map +1 -0
  20. package/dist/resources/monitors/index.js +4 -0
  21. package/dist/resources/monitors/index.js.map +1 -0
  22. package/dist/resources/monitors/monitors.d.ts +16 -0
  23. package/dist/resources/monitors/monitors.d.ts.map +1 -0
  24. package/dist/resources/monitors/monitors.js +3 -0
  25. package/dist/resources/monitors/monitors.js.map +1 -0
  26. package/dist/resources/monitors/runs.d.ts +5 -0
  27. package/dist/resources/monitors/runs.d.ts.map +1 -0
  28. package/dist/resources/monitors/runs.js +3 -0
  29. package/dist/resources/monitors/runs.js.map +1 -0
  30. package/dist/resources/monitors/webhook.d.ts +4 -0
  31. package/dist/resources/monitors/webhook.d.ts.map +1 -0
  32. package/dist/resources/monitors/webhook.js +3 -0
  33. package/dist/resources/monitors/webhook.js.map +1 -0
  34. package/dist/resources/monitors.d.ts +2 -0
  35. package/dist/resources/monitors.d.ts.map +1 -0
  36. package/dist/resources/monitors.js +2 -0
  37. package/dist/resources/monitors.js.map +1 -0
  38. package/dist/resources/shared.d.ts +18 -0
  39. package/dist/resources/shared.d.ts.map +1 -1
  40. package/dist/version.d.ts +1 -1
  41. package/dist/version.js +1 -1
  42. package/package.json +1 -1
  43. package/src/generated/api.ts +842 -4
  44. package/src/resources/client.ts +26 -0
  45. package/src/resources/context.ts +7 -0
  46. package/src/resources/index.ts +2 -0
  47. package/src/resources/monitors/index.ts +3 -0
  48. package/src/resources/monitors/monitors.ts +15 -0
  49. package/src/resources/monitors/runs.ts +4 -0
  50. package/src/resources/monitors/webhook.ts +3 -0
  51. package/src/resources/monitors.ts +1 -0
  52. package/src/resources/shared.ts +18 -0
  53. package/src/version.ts +1 -1
@@ -559,6 +559,104 @@ export type ContentPartOutput = {
559
559
  };
560
560
  export type ContentPartTypeInput = "output_text";
561
561
  export type ContentPartTypeOutput = "output_text";
562
+ export type ContextCostInput = {
563
+ currency: ContextCurrencyInput;
564
+ total_cost: number;
565
+ };
566
+ export type ContextCostOutput = {
567
+ currency: ContextCurrencyOutput;
568
+ total_cost: number;
569
+ };
570
+ export type ContextCurrencyInput = "USD";
571
+ export type ContextCurrencyOutput = "USD";
572
+ export type ContextDocumentInput = {
573
+ highlights?: string;
574
+ html?: string;
575
+ links?: string[];
576
+ markdown?: string;
577
+ metadata?: ContextMetadataInput;
578
+ status: ContextStatusInput;
579
+ url: string;
580
+ };
581
+ export type ContextDocumentOutput = {
582
+ highlights?: string;
583
+ html?: string;
584
+ links?: string[];
585
+ markdown?: string;
586
+ metadata?: ContextMetadataOutput;
587
+ status: ContextStatusOutput;
588
+ url: string;
589
+ };
590
+ export type ContextHighlightsInput = {
591
+ max_tokens_per_url?: number;
592
+ query: string;
593
+ };
594
+ export type ContextHighlightsOutput = {
595
+ max_tokens_per_url?: number;
596
+ query: string;
597
+ };
598
+ export type ContextMetadataInput = {
599
+ author?: string;
600
+ content_type?: string;
601
+ description?: string;
602
+ fetched_at?: string;
603
+ language?: string;
604
+ last_modified?: string;
605
+ origin?: "cached" | "live";
606
+ published_date?: string;
607
+ source_url: string;
608
+ title?: string;
609
+ } & Record<string, (string | string[]) | string | string | string | string | string | string | ("cached" | "live") | string | string | string>;
610
+ export type ContextMetadataOutput = {
611
+ author?: string;
612
+ content_type?: string;
613
+ description?: string;
614
+ fetched_at?: string;
615
+ language?: string;
616
+ last_modified?: string;
617
+ origin?: "cached" | "live";
618
+ published_date?: string;
619
+ source_url: string;
620
+ title?: string;
621
+ } & Record<string, (string | string[]) | string | string | string | string | string | string | ("cached" | "live") | string | string | string>;
622
+ export type ContextRequestInput = {
623
+ cache_only?: boolean;
624
+ formats?: ("markdown" | "html" | "links" | "highlights")[];
625
+ highlights?: ContextHighlightsInput;
626
+ if_modified_since?: string;
627
+ max_age_seconds?: number;
628
+ timeout_ms?: number;
629
+ urls: string[];
630
+ };
631
+ export type ContextRequestOutput = {
632
+ cache_only?: boolean;
633
+ formats?: ("markdown" | "html" | "links" | "highlights")[];
634
+ highlights?: ContextHighlightsOutput;
635
+ if_modified_since?: string;
636
+ max_age_seconds?: number;
637
+ timeout_ms?: number;
638
+ urls: string[];
639
+ };
640
+ export type ContextResponseInput = {
641
+ request_id: string;
642
+ results: ContextDocumentInput[];
643
+ usage: ContextUsageInput;
644
+ };
645
+ export type ContextResponseOutput = {
646
+ request_id: string;
647
+ results: ContextDocumentOutput[];
648
+ usage: ContextUsageOutput;
649
+ };
650
+ export type ContextStatusInput = {
651
+ message?: string;
652
+ status_code?: number;
653
+ type: "ok" | "not_modified" | "invalid_url" | "blocked" | "bot_challenge" | "crawl_failed" | "crawl_timeout" | "no_text" | "no_content" | "internal_error";
654
+ };
655
+ export type ContextStatusOutput = {
656
+ message?: string;
657
+ status_code?: number;
658
+ type: "ok" | "not_modified" | "invalid_url" | "blocked" | "bot_challenge" | "crawl_failed" | "crawl_timeout" | "no_text" | "no_content" | "internal_error";
659
+ };
562
660
  export type ContextualizedEmbeddingObjectInput = {
563
661
  data?: EmbeddingObjectInput[];
564
662
  index?: number;
@@ -593,6 +691,14 @@ export type ContextualizedEmbeddingsResponseOutput = {
593
691
  object?: string;
594
692
  usage?: EmbeddingsUsageOutput;
595
693
  };
694
+ export type ContextUsageInput = {
695
+ cost: ContextCostInput;
696
+ fetched_urls: number;
697
+ };
698
+ export type ContextUsageOutput = {
699
+ cost: ContextCostOutput;
700
+ fetched_urls: number;
701
+ };
596
702
  export type CostInput = {
597
703
  citation_tokens_cost?: number | null;
598
704
  input_tokens_cost: number;
@@ -613,6 +719,22 @@ export type CostOutput = {
613
719
  };
614
720
  export type CreateBrowserSessionRequestInput = {};
615
721
  export type CreateBrowserSessionRequestOutput = {};
722
+ export type CreateMonitorRequestInput = {
723
+ goal?: string;
724
+ metadata?: MonitorMetadataInput;
725
+ name: string;
726
+ schedule: MonitorScheduleRequestInput;
727
+ targets: MonitorTargetsInput;
728
+ webhook?: (Record<string, unknown> & (MonitorWebhookRequestInput)) | null;
729
+ };
730
+ export type CreateMonitorRequestOutput = {
731
+ goal?: string;
732
+ metadata?: MonitorMetadataOutput;
733
+ name: string;
734
+ schedule: MonitorScheduleRequestOutput;
735
+ targets: MonitorTargetsOutput;
736
+ webhook?: (Record<string, unknown> & (MonitorWebhookRequestOutput)) | null;
737
+ };
616
738
  export type CurrencyInput = "USD";
617
739
  export type CurrencyOutput = "USD";
618
740
  export type CustomSkillInput = {
@@ -737,20 +859,40 @@ export type DecisionsResponseOutput = {
737
859
  model: string;
738
860
  usage: DecisionUsageOutput;
739
861
  };
862
+ export type DecisionToolCallDetailsInput = {
863
+ invocation: number;
864
+ };
865
+ export type DecisionToolCallDetailsOutput = {
866
+ invocation: number;
867
+ };
740
868
  export type DecisionUsageInput = {
741
869
  input_tokens: number;
742
870
  output_tokens: number;
871
+ tool_calls_details?: {} & Record<string, DecisionToolCallDetailsInput>;
743
872
  };
744
873
  export type DecisionUsageOutput = {
745
874
  input_tokens: number;
746
875
  output_tokens: number;
876
+ tool_calls_details?: {} & Record<string, DecisionToolCallDetailsOutput>;
877
+ };
878
+ export type DeleteMonitorResponseInput = {
879
+ deleted: boolean;
880
+ id: string;
881
+ object: "monitor";
882
+ };
883
+ export type DeleteMonitorResponseOutput = {
884
+ deleted: boolean;
885
+ id: string;
886
+ object: "monitor";
747
887
  };
748
888
  export type EmbeddingObjectInput = {
889
+ data?: EmbeddingObjectInput[];
749
890
  embedding?: string;
750
891
  index?: number;
751
892
  object?: string;
752
893
  };
753
894
  export type EmbeddingObjectOutput = {
895
+ data?: EmbeddingObjectOutput[];
754
896
  embedding?: string;
755
897
  index?: number;
756
898
  object?: string;
@@ -758,14 +900,24 @@ export type EmbeddingObjectOutput = {
758
900
  export type EmbeddingsRequestInput = {
759
901
  dimensions?: number;
760
902
  encoding_format?: "base64_int8" | "base64_binary";
761
- input: string | string[];
762
- model: "pplx-embed-v1-0.6b" | "pplx-embed-v1-4b";
903
+ input: string | string[] | string[][] | {
904
+ image: string;
905
+ type: "image";
906
+ }[];
907
+ input_type?: "query" | "document";
908
+ model: "pplx-embed-v1-0.6b" | "pplx-embed-v1-4b" | "pplx-embed-v2-context-9b" | "pplx-embed-v2-context-0.6b";
909
+ num_chunks?: 1 | 2 | 4 | 8 | 16 | 32;
763
910
  };
764
911
  export type EmbeddingsRequestOutput = {
765
912
  dimensions?: number;
766
913
  encoding_format?: "base64_int8" | "base64_binary";
767
- input: string | string[];
768
- model: "pplx-embed-v1-0.6b" | "pplx-embed-v1-4b";
914
+ input: string | string[] | string[][] | {
915
+ image: string;
916
+ type: "image";
917
+ }[];
918
+ input_type?: "query" | "document";
919
+ model: "pplx-embed-v1-0.6b" | "pplx-embed-v1-4b" | "pplx-embed-v2-context-9b" | "pplx-embed-v2-context-0.6b";
920
+ num_chunks?: 1 | 2 | 4 | 8 | 16 | 32;
769
921
  };
770
922
  export type EmbeddingsResponseInput = {
771
923
  data?: EmbeddingObjectInput[];
@@ -807,6 +959,20 @@ export type ErrorInfoOutput = {
807
959
  message: string;
808
960
  type?: string;
809
961
  };
962
+ export type EventMonitorInput = {
963
+ id: string;
964
+ metadata: {} & Record<string, string>;
965
+ name: string;
966
+ pause_reason?: MonitorPauseReasonInput;
967
+ status: MonitorStatusInput;
968
+ };
969
+ export type EventMonitorOutput = {
970
+ id: string;
971
+ metadata: {} & Record<string, string>;
972
+ name: string;
973
+ pause_reason?: MonitorPauseReasonOutput;
974
+ status: MonitorStatusOutput;
975
+ };
810
976
  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
977
  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
978
  export type ExecutePythonStepDetailsInput = {
@@ -1395,6 +1561,472 @@ export type ModelListOutput = {
1395
1561
  data: ModelOutput[];
1396
1562
  object: "list";
1397
1563
  };
1564
+ export type MonitorInput = {
1565
+ created_at: MonitorTimestampInput;
1566
+ current_run_id?: string;
1567
+ goal: string;
1568
+ id: string;
1569
+ last_run?: MonitorLastRunInput;
1570
+ metadata: MonitorMetadataInput;
1571
+ name: string;
1572
+ next_run_at?: MonitorTimestampInput;
1573
+ object: "monitor";
1574
+ pause_reason?: MonitorPauseReasonInput;
1575
+ schedule: MonitorScheduleInput;
1576
+ status: MonitorStatusInput;
1577
+ targets: MonitorTargetInput[];
1578
+ updated_at: MonitorTimestampInput;
1579
+ webhook?: MonitorWebhookInput;
1580
+ };
1581
+ export type MonitorOutput = {
1582
+ created_at: MonitorTimestampOutput;
1583
+ current_run_id?: string;
1584
+ goal: string;
1585
+ id: string;
1586
+ last_run?: MonitorLastRunOutput;
1587
+ metadata: MonitorMetadataOutput;
1588
+ name: string;
1589
+ next_run_at?: MonitorTimestampOutput;
1590
+ object: "monitor";
1591
+ pause_reason?: MonitorPauseReasonOutput;
1592
+ schedule: MonitorScheduleOutput;
1593
+ status: MonitorStatusOutput;
1594
+ targets: MonitorTargetOutput[];
1595
+ updated_at: MonitorTimestampOutput;
1596
+ webhook?: MonitorWebhookOutput;
1597
+ };
1598
+ export type MonitorChangeInput = MonitorSearchResultChangeInput | MonitorPageChangeInput;
1599
+ export type MonitorChangeOutput = MonitorSearchResultChangeOutput | MonitorPageChangeOutput;
1600
+ export type MonitorChangeIdInput = string;
1601
+ export type MonitorChangeIdOutput = string;
1602
+ export type MonitorChangesDetectedEventInput = {
1603
+ data: MonitorRunEventDataInput;
1604
+ id: MonitorEventIdInput;
1605
+ object: MonitorEventObjectInput;
1606
+ timestamp: MonitorTimestampInput;
1607
+ type: "monitor.changes.detected";
1608
+ };
1609
+ export type MonitorChangesDetectedEventOutput = {
1610
+ data: MonitorRunEventDataOutput;
1611
+ id: MonitorEventIdOutput;
1612
+ object: MonitorEventObjectOutput;
1613
+ timestamp: MonitorTimestampOutput;
1614
+ type: "monitor.changes.detected";
1615
+ };
1616
+ export type MonitorCronScheduleInput = {
1617
+ cron: string;
1618
+ timezone: string;
1619
+ type: "cron";
1620
+ };
1621
+ export type MonitorCronScheduleOutput = {
1622
+ cron: string;
1623
+ timezone: string;
1624
+ type: "cron";
1625
+ };
1626
+ export type MonitorCronScheduleRequestInput = {
1627
+ cron: string;
1628
+ timezone?: string;
1629
+ type: "cron";
1630
+ };
1631
+ export type MonitorCronScheduleRequestOutput = {
1632
+ cron: string;
1633
+ timezone?: string;
1634
+ type: "cron";
1635
+ };
1636
+ export type MonitorCurrencyInput = "USD";
1637
+ export type MonitorCurrencyOutput = "USD";
1638
+ export type MonitorDiffInput = {
1639
+ added_lines: number;
1640
+ removed_lines: number;
1641
+ truncated: boolean;
1642
+ unified: string;
1643
+ };
1644
+ export type MonitorDiffOutput = {
1645
+ added_lines: number;
1646
+ removed_lines: number;
1647
+ truncated: boolean;
1648
+ unified: string;
1649
+ };
1650
+ export type MonitorDomainInput = string;
1651
+ export type MonitorDomainOutput = string;
1652
+ export type MonitorEventInput = MonitorChangesDetectedEventInput | MonitorRunCompletedEventInput | MonitorPausedEventInput | MonitorWebhookTestEventInput;
1653
+ export type MonitorEventOutput = MonitorChangesDetectedEventOutput | MonitorRunCompletedEventOutput | MonitorPausedEventOutput | MonitorWebhookTestEventOutput;
1654
+ export type MonitorEventIdInput = string;
1655
+ export type MonitorEventIdOutput = string;
1656
+ export type MonitorEventObjectInput = "event";
1657
+ export type MonitorEventObjectOutput = "event";
1658
+ export type MonitorEventTypeInput = "monitor.changes.detected" | "monitor.run.completed" | "monitor.paused";
1659
+ export type MonitorEventTypeOutput = "monitor.changes.detected" | "monitor.run.completed" | "monitor.paused";
1660
+ export type MonitorFreshnessInput = "published" | "updated";
1661
+ export type MonitorFreshnessOutput = "published" | "updated";
1662
+ export type MonitorIntervalScheduleInput = {
1663
+ interval: string;
1664
+ type: "interval";
1665
+ };
1666
+ export type MonitorIntervalScheduleOutput = {
1667
+ interval: string;
1668
+ type: "interval";
1669
+ };
1670
+ export type MonitorIntervalScheduleRequestInput = {
1671
+ interval: string;
1672
+ type: "interval";
1673
+ };
1674
+ export type MonitorIntervalScheduleRequestOutput = {
1675
+ interval: string;
1676
+ type: "interval";
1677
+ };
1678
+ export type MonitorLastRunInput = {
1679
+ change_count: number;
1680
+ finished_at: MonitorTimestampInput;
1681
+ id: string;
1682
+ status: MonitorRunStatusInput;
1683
+ };
1684
+ export type MonitorLastRunOutput = {
1685
+ change_count: number;
1686
+ finished_at: MonitorTimestampOutput;
1687
+ id: string;
1688
+ status: MonitorRunStatusOutput;
1689
+ };
1690
+ export type MonitorListInput = {
1691
+ data: MonitorInput[];
1692
+ has_more: boolean;
1693
+ object: "list";
1694
+ };
1695
+ export type MonitorListOutput = {
1696
+ data: MonitorOutput[];
1697
+ has_more: boolean;
1698
+ object: "list";
1699
+ };
1700
+ export type MonitorMetadataInput = {} & Record<string, string>;
1701
+ export type MonitorMetadataOutput = {} & Record<string, string>;
1702
+ export type MonitorPageChangeInput = {
1703
+ confidence: number;
1704
+ diff: MonitorDiffInput;
1705
+ fetched_at: MonitorTimestampInput;
1706
+ id: MonitorChangeIdInput;
1707
+ previous_fetched_at: MonitorTimestampInput;
1708
+ title?: string;
1709
+ type: "page_change";
1710
+ url: string;
1711
+ };
1712
+ export type MonitorPageChangeOutput = {
1713
+ confidence: number;
1714
+ diff: MonitorDiffOutput;
1715
+ fetched_at: MonitorTimestampOutput;
1716
+ id: MonitorChangeIdOutput;
1717
+ previous_fetched_at: MonitorTimestampOutput;
1718
+ title?: string;
1719
+ type: "page_change";
1720
+ url: string;
1721
+ };
1722
+ export type MonitorPageTargetInput = {
1723
+ type: "page";
1724
+ url: string;
1725
+ };
1726
+ export type MonitorPageTargetOutput = {
1727
+ type: "page";
1728
+ url: string;
1729
+ };
1730
+ export type MonitorPageTargetErrorInput = {
1731
+ code: MonitorTargetErrorCodeInput;
1732
+ message: string;
1733
+ status_code?: number;
1734
+ type: "page";
1735
+ url: string;
1736
+ };
1737
+ export type MonitorPageTargetErrorOutput = {
1738
+ code: MonitorTargetErrorCodeOutput;
1739
+ message: string;
1740
+ status_code?: number;
1741
+ type: "page";
1742
+ url: string;
1743
+ };
1744
+ export type MonitorPageTargetRequestInput = {
1745
+ type: "page";
1746
+ url: string;
1747
+ };
1748
+ export type MonitorPageTargetRequestOutput = {
1749
+ type: "page";
1750
+ url: string;
1751
+ };
1752
+ export type MonitorPausedEventInput = {
1753
+ data: MonitorPausedEventDataInput;
1754
+ id: MonitorEventIdInput;
1755
+ object: MonitorEventObjectInput;
1756
+ timestamp: MonitorTimestampInput;
1757
+ type: "monitor.paused";
1758
+ };
1759
+ export type MonitorPausedEventOutput = {
1760
+ data: MonitorPausedEventDataOutput;
1761
+ id: MonitorEventIdOutput;
1762
+ object: MonitorEventObjectOutput;
1763
+ timestamp: MonitorTimestampOutput;
1764
+ type: "monitor.paused";
1765
+ };
1766
+ export type MonitorPausedEventDataInput = {
1767
+ monitor: PausedEventMonitorInput;
1768
+ run?: MonitorRunInput;
1769
+ };
1770
+ export type MonitorPausedEventDataOutput = {
1771
+ monitor: PausedEventMonitorOutput;
1772
+ run?: MonitorRunOutput;
1773
+ };
1774
+ export type MonitorPauseReasonInput = "user" | "insufficient_credits" | "org_policy" | "webhook_failing" | "source_failing";
1775
+ export type MonitorPauseReasonOutput = "user" | "insufficient_credits" | "org_policy" | "webhook_failing" | "source_failing";
1776
+ export type MonitorRunInput = {
1777
+ changes: MonitorChangeInput[];
1778
+ counts: MonitorRunCountsInput;
1779
+ created_at: MonitorTimestampInput;
1780
+ error?: MonitorRunErrorInput;
1781
+ finished_at?: MonitorTimestampInput;
1782
+ id: string;
1783
+ monitor_id: string;
1784
+ object: "monitor.run";
1785
+ status: MonitorRunStatusInput;
1786
+ target_errors: MonitorTargetErrorInput[];
1787
+ trigger: MonitorRunTriggerInput;
1788
+ usage: MonitorRunUsageInput;
1789
+ window?: MonitorRunWindowInput;
1790
+ };
1791
+ export type MonitorRunOutput = {
1792
+ changes: MonitorChangeOutput[];
1793
+ counts: MonitorRunCountsOutput;
1794
+ created_at: MonitorTimestampOutput;
1795
+ error?: MonitorRunErrorOutput;
1796
+ finished_at?: MonitorTimestampOutput;
1797
+ id: string;
1798
+ monitor_id: string;
1799
+ object: "monitor.run";
1800
+ status: MonitorRunStatusOutput;
1801
+ target_errors: MonitorTargetErrorOutput[];
1802
+ trigger: MonitorRunTriggerOutput;
1803
+ usage: MonitorRunUsageOutput;
1804
+ window?: MonitorRunWindowOutput;
1805
+ };
1806
+ export type MonitorRunCompletedEventInput = {
1807
+ data: MonitorRunEventDataInput;
1808
+ id: MonitorEventIdInput;
1809
+ object: MonitorEventObjectInput;
1810
+ timestamp: MonitorTimestampInput;
1811
+ type: "monitor.run.completed";
1812
+ };
1813
+ export type MonitorRunCompletedEventOutput = {
1814
+ data: MonitorRunEventDataOutput;
1815
+ id: MonitorEventIdOutput;
1816
+ object: MonitorEventObjectOutput;
1817
+ timestamp: MonitorTimestampOutput;
1818
+ type: "monitor.run.completed";
1819
+ };
1820
+ export type MonitorRunCostInput = {
1821
+ currency: MonitorCurrencyInput;
1822
+ total_cost: number;
1823
+ };
1824
+ export type MonitorRunCostOutput = {
1825
+ currency: MonitorCurrencyOutput;
1826
+ total_cost: number;
1827
+ };
1828
+ export type MonitorRunCountsInput = {
1829
+ candidates: number;
1830
+ changes: number;
1831
+ errors: number;
1832
+ };
1833
+ export type MonitorRunCountsOutput = {
1834
+ candidates: number;
1835
+ changes: number;
1836
+ errors: number;
1837
+ };
1838
+ export type MonitorRunErrorInput = {
1839
+ code?: MonitorRunFailureCodeInput;
1840
+ message: string;
1841
+ skip_reason?: MonitorPauseReasonInput;
1842
+ };
1843
+ export type MonitorRunErrorOutput = {
1844
+ code?: MonitorRunFailureCodeOutput;
1845
+ message: string;
1846
+ skip_reason?: MonitorPauseReasonOutput;
1847
+ };
1848
+ export type MonitorRunEventDataInput = {
1849
+ monitor: EventMonitorInput;
1850
+ run: MonitorRunInput;
1851
+ };
1852
+ export type MonitorRunEventDataOutput = {
1853
+ monitor: EventMonitorOutput;
1854
+ run: MonitorRunOutput;
1855
+ };
1856
+ export type MonitorRunFailureCodeInput = "gate_unavailable" | "detect_failed" | "judge_failed" | "source_failed" | "notify_failed" | "timed_out";
1857
+ export type MonitorRunFailureCodeOutput = "gate_unavailable" | "detect_failed" | "judge_failed" | "source_failed" | "notify_failed" | "timed_out";
1858
+ export type MonitorRunListInput = {
1859
+ data: MonitorRunInput[];
1860
+ has_more: boolean;
1861
+ object: "list";
1862
+ };
1863
+ export type MonitorRunListOutput = {
1864
+ data: MonitorRunOutput[];
1865
+ has_more: boolean;
1866
+ object: "list";
1867
+ };
1868
+ export type MonitorRunStatusInput = "queued" | "running" | "succeeded" | "failed" | "skipped";
1869
+ export type MonitorRunStatusOutput = "queued" | "running" | "succeeded" | "failed" | "skipped";
1870
+ export type MonitorRunTriggerInput = "schedule" | "manual";
1871
+ export type MonitorRunTriggerOutput = "schedule" | "manual";
1872
+ export type MonitorRunUsageInput = {
1873
+ cost: MonitorRunCostInput;
1874
+ fetched_urls: number;
1875
+ };
1876
+ export type MonitorRunUsageOutput = {
1877
+ cost: MonitorRunCostOutput;
1878
+ fetched_urls: number;
1879
+ };
1880
+ export type MonitorRunWindowInput = {
1881
+ from: MonitorTimestampInput;
1882
+ to: MonitorTimestampInput;
1883
+ };
1884
+ export type MonitorRunWindowOutput = {
1885
+ from: MonitorTimestampOutput;
1886
+ to: MonitorTimestampOutput;
1887
+ };
1888
+ export type MonitorScheduleInput = MonitorIntervalScheduleInput | MonitorCronScheduleInput;
1889
+ export type MonitorScheduleOutput = MonitorIntervalScheduleOutput | MonitorCronScheduleOutput;
1890
+ export type MonitorScheduleRequestInput = MonitorIntervalScheduleRequestInput | MonitorCronScheduleRequestInput;
1891
+ export type MonitorScheduleRequestOutput = MonitorIntervalScheduleRequestOutput | MonitorCronScheduleRequestOutput;
1892
+ export type MonitorSearchFiltersInput = {
1893
+ exclude_domains: MonitorDomainInput[];
1894
+ freshness: MonitorFreshnessInput[];
1895
+ include_domains: MonitorDomainInput[];
1896
+ };
1897
+ export type MonitorSearchFiltersOutput = {
1898
+ exclude_domains: MonitorDomainOutput[];
1899
+ freshness: MonitorFreshnessOutput[];
1900
+ include_domains: MonitorDomainOutput[];
1901
+ };
1902
+ export type MonitorSearchFiltersRequestInput = {
1903
+ exclude_domains?: string[];
1904
+ freshness?: MonitorFreshnessInput[];
1905
+ include_domains?: string[];
1906
+ };
1907
+ export type MonitorSearchFiltersRequestOutput = {
1908
+ exclude_domains?: string[];
1909
+ freshness?: MonitorFreshnessOutput[];
1910
+ include_domains?: string[];
1911
+ };
1912
+ export type MonitorSearchResultChangeInput = {
1913
+ confidence: number;
1914
+ id: MonitorChangeIdInput;
1915
+ last_updated_at?: MonitorTimestampInput;
1916
+ published_at?: MonitorTimestampInput;
1917
+ snippet?: string;
1918
+ title?: string;
1919
+ type: "search_result";
1920
+ url: string;
1921
+ };
1922
+ export type MonitorSearchResultChangeOutput = {
1923
+ confidence: number;
1924
+ id: MonitorChangeIdOutput;
1925
+ last_updated_at?: MonitorTimestampOutput;
1926
+ published_at?: MonitorTimestampOutput;
1927
+ snippet?: string;
1928
+ title?: string;
1929
+ type: "search_result";
1930
+ url: string;
1931
+ };
1932
+ export type MonitorSearchTargetInput = {
1933
+ filters: MonitorSearchFiltersInput;
1934
+ max_results: number;
1935
+ query: string;
1936
+ type: "search";
1937
+ };
1938
+ export type MonitorSearchTargetOutput = {
1939
+ filters: MonitorSearchFiltersOutput;
1940
+ max_results: number;
1941
+ query: string;
1942
+ type: "search";
1943
+ };
1944
+ export type MonitorSearchTargetRequestInput = {
1945
+ filters?: MonitorSearchFiltersRequestInput;
1946
+ max_results?: number;
1947
+ query: string;
1948
+ type: "search";
1949
+ };
1950
+ export type MonitorSearchTargetRequestOutput = {
1951
+ filters?: MonitorSearchFiltersRequestOutput;
1952
+ max_results?: number;
1953
+ query: string;
1954
+ type: "search";
1955
+ };
1956
+ export type MonitorStatusInput = "active" | "paused";
1957
+ export type MonitorStatusOutput = "active" | "paused";
1958
+ export type MonitorTargetInput = MonitorSearchTargetInput | MonitorPageTargetInput;
1959
+ export type MonitorTargetOutput = MonitorSearchTargetOutput | MonitorPageTargetOutput;
1960
+ export type MonitorTargetErrorInput = MonitorPageTargetErrorInput;
1961
+ export type MonitorTargetErrorOutput = MonitorPageTargetErrorOutput;
1962
+ export type MonitorTargetErrorCodeInput = "invalid_url" | "blocked" | "no_content" | "load_failed" | "timeout" | "fetch_unavailable" | "http_status";
1963
+ export type MonitorTargetErrorCodeOutput = "invalid_url" | "blocked" | "no_content" | "load_failed" | "timeout" | "fetch_unavailable" | "http_status";
1964
+ export type MonitorTargetRequestInput = MonitorSearchTargetRequestInput | MonitorPageTargetRequestInput;
1965
+ export type MonitorTargetRequestOutput = MonitorSearchTargetRequestOutput | MonitorPageTargetRequestOutput;
1966
+ export type MonitorTargetsInput = MonitorTargetRequestInput[];
1967
+ export type MonitorTargetsOutput = MonitorTargetRequestOutput[];
1968
+ export type MonitorTimestampInput = string;
1969
+ export type MonitorTimestampOutput = string;
1970
+ export type MonitorWebhookInput = {
1971
+ events: MonitorEventTypeInput[];
1972
+ secret?: MonitorWebhookSecretInput;
1973
+ url: string;
1974
+ };
1975
+ export type MonitorWebhookOutput = {
1976
+ events: MonitorEventTypeOutput[];
1977
+ secret?: MonitorWebhookSecretOutput;
1978
+ url: string;
1979
+ };
1980
+ export type MonitorWebhookRequestInput = {
1981
+ events?: MonitorEventTypeInput[];
1982
+ secret?: MonitorWebhookSecretInput;
1983
+ url: string;
1984
+ } | null;
1985
+ export type MonitorWebhookRequestOutput = {
1986
+ events?: MonitorEventTypeOutput[];
1987
+ secret?: MonitorWebhookSecretOutput;
1988
+ url: string;
1989
+ } | null;
1990
+ export type MonitorWebhookSecretInput = string;
1991
+ export type MonitorWebhookSecretOutput = string;
1992
+ export type MonitorWebhookTestInput = {
1993
+ delivered: boolean;
1994
+ duration_ms: number;
1995
+ error?: MonitorWebhookTestErrorInput;
1996
+ event_id: string;
1997
+ object: "monitor.webhook_test";
1998
+ status_code?: number;
1999
+ };
2000
+ export type MonitorWebhookTestOutput = {
2001
+ delivered: boolean;
2002
+ duration_ms: number;
2003
+ error?: MonitorWebhookTestErrorOutput;
2004
+ event_id: string;
2005
+ object: "monitor.webhook_test";
2006
+ status_code?: number;
2007
+ };
2008
+ export type MonitorWebhookTestErrorInput = "http_status" | "timeout" | "network_error" | "tls_certificate" | "blocked_address" | "invalid_url" | "send_failed";
2009
+ export type MonitorWebhookTestErrorOutput = "http_status" | "timeout" | "network_error" | "tls_certificate" | "blocked_address" | "invalid_url" | "send_failed";
2010
+ export type MonitorWebhookTestEventInput = {
2011
+ data: MonitorWebhookTestEventDataInput;
2012
+ id: MonitorEventIdInput;
2013
+ object: MonitorEventObjectInput;
2014
+ timestamp: MonitorTimestampInput;
2015
+ type: "monitor.webhook.test";
2016
+ };
2017
+ export type MonitorWebhookTestEventOutput = {
2018
+ data: MonitorWebhookTestEventDataOutput;
2019
+ id: MonitorEventIdOutput;
2020
+ object: MonitorEventObjectOutput;
2021
+ timestamp: MonitorTimestampOutput;
2022
+ type: "monitor.webhook.test";
2023
+ };
2024
+ export type MonitorWebhookTestEventDataInput = {
2025
+ monitor: EventMonitorInput;
2026
+ };
2027
+ export type MonitorWebhookTestEventDataOutput = {
2028
+ monitor: EventMonitorOutput;
2029
+ };
1398
2030
  export type NamespaceToolInput = {
1399
2031
  description: string;
1400
2032
  name: string;
@@ -1463,6 +2095,20 @@ export type ParameterSpecOutput = {
1463
2095
  required?: string[] | null;
1464
2096
  type: string;
1465
2097
  };
2098
+ export type PausedEventMonitorInput = {
2099
+ id: string;
2100
+ metadata: {} & Record<string, string>;
2101
+ name: string;
2102
+ pause_reason: MonitorPauseReasonInput;
2103
+ status: "paused";
2104
+ };
2105
+ export type PausedEventMonitorOutput = {
2106
+ id: string;
2107
+ metadata: {} & Record<string, string>;
2108
+ name: string;
2109
+ pause_reason: MonitorPauseReasonOutput;
2110
+ status: "paused";
2111
+ };
1466
2112
  export type PeopleSearchToolInput = {
1467
2113
  type: "people_search";
1468
2114
  };
@@ -1703,6 +2349,7 @@ export type ResponsesObjectTypeInput = "response";
1703
2349
  export type ResponsesObjectTypeOutput = "response";
1704
2350
  export type ResponsesRequestInput = {
1705
2351
  background?: boolean | null;
2352
+ code_mode?: boolean;
1706
2353
  effort?: string;
1707
2354
  input: InputInput;
1708
2355
  instructions?: string;
@@ -1730,6 +2377,7 @@ export type ResponsesRequestInput = {
1730
2377
  };
1731
2378
  export type ResponsesRequestOutput = {
1732
2379
  background?: boolean | null;
2380
+ code_mode?: boolean;
1733
2381
  effort?: string;
1734
2382
  input: InputOutput;
1735
2383
  instructions?: string;
@@ -2227,6 +2875,22 @@ export type UnknownOutputItemOutput = {
2227
2875
  payload: {} & Record<string, unknown>;
2228
2876
  type: "unknown";
2229
2877
  };
2878
+ export type UpdateMonitorRequestInput = {
2879
+ goal?: string | null;
2880
+ metadata?: ({} & Record<string, string>) | null;
2881
+ name?: string;
2882
+ schedule?: MonitorScheduleRequestInput;
2883
+ targets?: MonitorTargetsInput;
2884
+ webhook?: (Record<string, unknown> & (MonitorWebhookRequestInput)) | null;
2885
+ };
2886
+ export type UpdateMonitorRequestOutput = {
2887
+ goal?: string | null;
2888
+ metadata?: ({} & Record<string, string>) | null;
2889
+ name?: string;
2890
+ schedule?: MonitorScheduleRequestOutput;
2891
+ targets?: MonitorTargetsOutput;
2892
+ webhook?: (Record<string, unknown> & (MonitorWebhookRequestOutput)) | null;
2893
+ };
2230
2894
  export type URLInput = {
2231
2895
  url: string;
2232
2896
  };
@@ -2425,6 +3089,43 @@ export class ChatCompletionsResource {
2425
3089
  });
2426
3090
  }
2427
3091
  }
3092
+ export class MonitorsRunsResource {
3093
+ private readonly _client: SdkTransport;
3094
+ constructor(client: SdkTransport) {
3095
+ this._client = client;
3096
+ }
3097
+ list(monitorID: string, params?: {
3098
+ after?: string;
3099
+ limit?: number;
3100
+ }, options?: RequestOptions): APIPromise<MonitorRunListOutput> {
3101
+ return this._client.get<MonitorRunListOutput>(`/v1/monitors/${pathSegment(monitorID)}/runs`, {
3102
+ ...options,
3103
+ query: {
3104
+ after: params?.after,
3105
+ limit: params?.limit,
3106
+ ...options?.query
3107
+ }
3108
+ });
3109
+ }
3110
+ retrieve(runID: string, params: {
3111
+ monitor_id: string;
3112
+ }, options?: RequestOptions): APIPromise<MonitorRunOutput> {
3113
+ return this._client.get<MonitorRunOutput>(`/v1/monitors/${pathSegment(params.monitor_id)}/runs/${pathSegment(runID)}`, {
3114
+ ...options
3115
+ });
3116
+ }
3117
+ }
3118
+ export class MonitorsWebhookResource {
3119
+ private readonly _client: SdkTransport;
3120
+ constructor(client: SdkTransport) {
3121
+ this._client = client;
3122
+ }
3123
+ test(monitorID: string, options?: RequestOptions): APIPromise<MonitorWebhookTestOutput> {
3124
+ return this._client.post<MonitorWebhookTestOutput>(`/v1/monitors/${pathSegment(monitorID)}/webhook/test`, {
3125
+ ...options
3126
+ });
3127
+ }
3128
+ }
2428
3129
  export class ResponsesFilesResource {
2429
3130
  private readonly _client: SdkTransport;
2430
3131
  constructor(client: SdkTransport) {
@@ -2526,6 +3227,18 @@ export class ChatResource {
2526
3227
  this.completions = new ChatCompletionsResource(client);
2527
3228
  }
2528
3229
  }
3230
+ export class ContextResource {
3231
+ private readonly _client: SdkTransport;
3232
+ constructor(client: SdkTransport) {
3233
+ this._client = client;
3234
+ }
3235
+ create(body: ContextRequestInput, options?: RequestOptions): APIPromise<ContextResponseOutput> {
3236
+ return this._client.post<ContextResponseOutput>("/v1/context", {
3237
+ ...options,
3238
+ body: body
3239
+ });
3240
+ }
3241
+ }
2529
3242
  export class ContextualizedEmbeddingsResource {
2530
3243
  private readonly _client: SdkTransport;
2531
3244
  constructor(client: SdkTransport) {
@@ -2622,6 +3335,72 @@ export class ModelsResource {
2622
3335
  });
2623
3336
  }
2624
3337
  }
3338
+ export class MonitorsResource {
3339
+ private readonly _client: SdkTransport;
3340
+ readonly runs: MonitorsRunsResource;
3341
+ readonly webhook: MonitorsWebhookResource;
3342
+ constructor(client: SdkTransport) {
3343
+ this._client = client;
3344
+ this.runs = new MonitorsRunsResource(client);
3345
+ this.webhook = new MonitorsWebhookResource(client);
3346
+ }
3347
+ create(body: CreateMonitorRequestInput, params?: {
3348
+ "Idempotency-Key"?: string;
3349
+ }, options?: RequestOptions): APIPromise<MonitorOutput> {
3350
+ return this._client.post<MonitorOutput>("/v1/monitors", {
3351
+ ...options,
3352
+ body: body,
3353
+ headers: {
3354
+ "Idempotency-Key": params?.["Idempotency-Key"],
3355
+ ...normalizeHeaders(options?.headers)
3356
+ }
3357
+ });
3358
+ }
3359
+ delete(monitorID: string, options?: RequestOptions): APIPromise<DeleteMonitorResponseOutput> {
3360
+ return this._client.delete<DeleteMonitorResponseOutput>(`/v1/monitors/${pathSegment(monitorID)}`, {
3361
+ ...options
3362
+ });
3363
+ }
3364
+ list(params?: {
3365
+ after?: string;
3366
+ limit?: number;
3367
+ }, options?: RequestOptions): APIPromise<MonitorListOutput> {
3368
+ return this._client.get<MonitorListOutput>("/v1/monitors", {
3369
+ ...options,
3370
+ query: {
3371
+ after: params?.after,
3372
+ limit: params?.limit,
3373
+ ...options?.query
3374
+ }
3375
+ });
3376
+ }
3377
+ pause(monitorID: string, options?: RequestOptions): APIPromise<MonitorOutput> {
3378
+ return this._client.post<MonitorOutput>(`/v1/monitors/${pathSegment(monitorID)}/pause`, {
3379
+ ...options
3380
+ });
3381
+ }
3382
+ resume(monitorID: string, options?: RequestOptions): APIPromise<MonitorOutput> {
3383
+ return this._client.post<MonitorOutput>(`/v1/monitors/${pathSegment(monitorID)}/resume`, {
3384
+ ...options
3385
+ });
3386
+ }
3387
+ retrieve(monitorID: string, options?: RequestOptions): APIPromise<MonitorOutput> {
3388
+ return this._client.get<MonitorOutput>(`/v1/monitors/${pathSegment(monitorID)}`, {
3389
+ ...options
3390
+ });
3391
+ }
3392
+ run(monitorID: string, options?: RequestOptions): APIPromise<MonitorRunOutput> {
3393
+ return this._client.post<MonitorRunOutput>(`/v1/monitors/${pathSegment(monitorID)}/run`, {
3394
+ ...options
3395
+ });
3396
+ }
3397
+ update(monitorID: string, body: UpdateMonitorRequestInput, options?: RequestOptions): APIPromise<MonitorOutput> {
3398
+ return this._client.patch<MonitorOutput>(`/v1/monitors/${pathSegment(monitorID)}`, {
3399
+ ...options,
3400
+ body: body
3401
+ });
3402
+ }
3403
+ }
2625
3404
  export class ResponsesResource {
2626
3405
  private readonly _client: SdkTransport;
2627
3406
  readonly files: ResponsesFilesResource;
@@ -2832,11 +3611,13 @@ export class PerplexitySdk {
2832
3611
  readonly batches: BatchesResource;
2833
3612
  readonly browser: BrowserResource;
2834
3613
  readonly chat: ChatResource;
3614
+ readonly context: ContextResource;
2835
3615
  readonly contextualizedEmbeddings: ContextualizedEmbeddingsResource;
2836
3616
  readonly decisions: DecisionsResource;
2837
3617
  readonly embeddings: EmbeddingsResource;
2838
3618
  readonly files: FilesResource;
2839
3619
  readonly models: ModelsResource;
3620
+ readonly monitors: MonitorsResource;
2840
3621
  readonly responses: ResponsesResource;
2841
3622
  readonly search: SearchResource;
2842
3623
  readonly skills: SkillsResource;
@@ -2845,11 +3626,13 @@ export class PerplexitySdk {
2845
3626
  this.batches = new BatchesResource(client);
2846
3627
  this.browser = new BrowserResource(client);
2847
3628
  this.chat = new ChatResource(client);
3629
+ this.context = new ContextResource(client);
2848
3630
  this.contextualizedEmbeddings = new ContextualizedEmbeddingsResource(client);
2849
3631
  this.decisions = new DecisionsResource(client);
2850
3632
  this.embeddings = new EmbeddingsResource(client);
2851
3633
  this.files = new FilesResource(client);
2852
3634
  this.models = new ModelsResource(client);
3635
+ this.monitors = new MonitorsResource(client);
2853
3636
  this.responses = new ResponsesResource(client);
2854
3637
  this.search = new SearchResource(client);
2855
3638
  this.skills = new SkillsResource(client);
@@ -2863,6 +3646,8 @@ export class Browser extends BrowserResource {
2863
3646
  }
2864
3647
  export class Chat extends ChatResource {
2865
3648
  }
3649
+ export class Context extends ContextResource {
3650
+ }
2866
3651
  export class ContextualizedEmbeddings extends ContextualizedEmbeddingsResource {
2867
3652
  }
2868
3653
  export class Decisions extends DecisionsResource {
@@ -2873,6 +3658,8 @@ export class Files extends FilesResource {
2873
3658
  }
2874
3659
  export class Models extends ModelsResource {
2875
3660
  }
3661
+ export class Monitors extends MonitorsResource {
3662
+ }
2876
3663
  export class Responses extends ResponsesResource {
2877
3664
  }
2878
3665
  export class Search extends SearchResource {
@@ -2889,6 +3676,11 @@ export type ChatMessageInput = ChatMessageInputInput;
2889
3676
  export type ChatMessageOutput = ChatMessageOutputOutput;
2890
3677
  export type Choice = ChoiceOutput;
2891
3678
  export type ContentPart = ContentPartOutput;
3679
+ export type ContextCreateParams = ContextRequestInput;
3680
+ export type ContextCreateResponse = Awaited<ReturnType<ContextResource["create"]>>;
3681
+ export type ContextDocument = ContextDocumentOutput;
3682
+ export type ContextMetadata = ContextMetadataOutput;
3683
+ export type ContextStatus = ContextStatusOutput;
2892
3684
  export type ContextualizedEmbeddingCreateParams = ContextualizedEmbeddingsRequestInput;
2893
3685
  export type ContextualizedEmbeddingCreateResponse = ContextualizedEmbeddingsResponseOutput;
2894
3686
  export type ContextualizedEmbeddingObject = ContextualizedEmbeddingObjectOutput;
@@ -2915,6 +3707,19 @@ export type JsonSchemaFormat = JSONSchemaFormatInput;
2915
3707
  export type ManagedSkill = ManagedSkillOutput;
2916
3708
  export type Model = ModelOutput;
2917
3709
  export type ModelListResponse = Awaited<ReturnType<ModelsResource["list"]>>;
3710
+ export type Monitor = MonitorOutput;
3711
+ export type MonitorChangesDetectedEvent = MonitorChangesDetectedEventOutput;
3712
+ export type MonitorCreateParams = CreateMonitorRequestInput;
3713
+ export type MonitorDeleteResponse = DeleteMonitorResponseOutput;
3714
+ export type MonitorEvent = MonitorEventOutput;
3715
+ export type MonitorListResponse = MonitorListOutput;
3716
+ export type MonitorPausedEvent = MonitorPausedEventOutput;
3717
+ export type MonitorRun = MonitorRunOutput;
3718
+ export type MonitorRunCompletedEvent = MonitorRunCompletedEventOutput;
3719
+ export type MonitorRunListResponse = MonitorRunListOutput;
3720
+ export type MonitorUpdateParams = UpdateMonitorRequestInput;
3721
+ export type MonitorWebhookTestEvent = MonitorWebhookTestEventOutput;
3722
+ export type MonitorWebhookTestResponse = MonitorWebhookTestOutput;
2918
3723
  export type OutputItem = OutputItemOutput;
2919
3724
  export type ResponseCancelResponse = Awaited<ReturnType<ResponsesResource["cancel"]>>;
2920
3725
  export type ResponseCreateParams = ResponsesRequestInput;
@@ -2996,6 +3801,13 @@ export namespace Chat {
2996
3801
  };
2997
3802
  }
2998
3803
  }
3804
+ export namespace Context {
3805
+ export type ContextCreateParams = ContextRequestInput;
3806
+ export type ContextCreateResponse = Awaited<ReturnType<ContextResource["create"]>>;
3807
+ export type ContextDocument = ContextDocumentOutput;
3808
+ export type ContextMetadata = ContextMetadataOutput;
3809
+ export type ContextStatus = ContextStatusOutput;
3810
+ }
2999
3811
  export namespace ContextualizedEmbeddings {
3000
3812
  export type ContextualizedEmbeddingCreateParams = ContextualizedEmbeddingsRequestInput;
3001
3813
  export type ContextualizedEmbeddingCreateResponse = ContextualizedEmbeddingsResponseOutput;
@@ -3020,6 +3832,32 @@ export namespace Models {
3020
3832
  export type Model = ModelOutput;
3021
3833
  export type ModelListResponse = Awaited<ReturnType<ModelsResource["list"]>>;
3022
3834
  }
3835
+ export namespace Monitors {
3836
+ export class Runs extends MonitorsRunsResource {
3837
+ }
3838
+ export class Webhook extends MonitorsWebhookResource {
3839
+ }
3840
+ export type Monitor = MonitorOutput;
3841
+ export type MonitorChangesDetectedEvent = MonitorChangesDetectedEventOutput;
3842
+ export type MonitorCreateParams = CreateMonitorRequestInput;
3843
+ export type MonitorDeleteResponse = DeleteMonitorResponseOutput;
3844
+ export type MonitorEvent = MonitorEventOutput;
3845
+ export type MonitorListResponse = MonitorListOutput;
3846
+ export type MonitorPausedEvent = MonitorPausedEventOutput;
3847
+ export type MonitorRun = MonitorRunOutput;
3848
+ export type MonitorRunCompletedEvent = MonitorRunCompletedEventOutput;
3849
+ export type MonitorRunListResponse = MonitorRunListOutput;
3850
+ export type MonitorUpdateParams = UpdateMonitorRequestInput;
3851
+ export type MonitorWebhookTestEvent = MonitorWebhookTestEventOutput;
3852
+ export type MonitorWebhookTestResponse = MonitorWebhookTestOutput;
3853
+ export namespace Runs {
3854
+ export type MonitorRun = MonitorRunOutput;
3855
+ export type MonitorRunListResponse = MonitorRunListOutput;
3856
+ }
3857
+ export namespace Webhook {
3858
+ export type MonitorWebhookTestResponse = MonitorWebhookTestOutput;
3859
+ }
3860
+ }
3023
3861
  export namespace Responses {
3024
3862
  export class Files extends ResponsesFilesResource {
3025
3863
  }