@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.
- package/CHANGELOG.md +14 -0
- package/dist/generated/api.d.ts +765 -4
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +113 -0
- package/dist/generated/api.js.map +1 -1
- package/dist/resources/client.d.ts +24 -0
- package/dist/resources/client.d.ts.map +1 -1
- package/dist/resources/client.js +4 -0
- package/dist/resources/client.js.map +1 -1
- package/dist/resources/context.d.ts +8 -0
- package/dist/resources/context.d.ts.map +1 -0
- package/dist/resources/context.js +3 -0
- package/dist/resources/context.js.map +1 -0
- package/dist/resources/index.d.ts +2 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +2 -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 +18 -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 +842 -4
- package/src/resources/client.ts +26 -0
- package/src/resources/context.ts +7 -0
- package/src/resources/index.ts +2 -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 +18 -0
- package/src/version.ts +1 -1
package/dist/generated/api.d.ts
CHANGED
|
@@ -558,6 +558,104 @@ export type ContentPartOutput = {
|
|
|
558
558
|
};
|
|
559
559
|
export type ContentPartTypeInput = "output_text";
|
|
560
560
|
export type ContentPartTypeOutput = "output_text";
|
|
561
|
+
export type ContextCostInput = {
|
|
562
|
+
currency: ContextCurrencyInput;
|
|
563
|
+
total_cost: number;
|
|
564
|
+
};
|
|
565
|
+
export type ContextCostOutput = {
|
|
566
|
+
currency: ContextCurrencyOutput;
|
|
567
|
+
total_cost: number;
|
|
568
|
+
};
|
|
569
|
+
export type ContextCurrencyInput = "USD";
|
|
570
|
+
export type ContextCurrencyOutput = "USD";
|
|
571
|
+
export type ContextDocumentInput = {
|
|
572
|
+
highlights?: string;
|
|
573
|
+
html?: string;
|
|
574
|
+
links?: string[];
|
|
575
|
+
markdown?: string;
|
|
576
|
+
metadata?: ContextMetadataInput;
|
|
577
|
+
status: ContextStatusInput;
|
|
578
|
+
url: string;
|
|
579
|
+
};
|
|
580
|
+
export type ContextDocumentOutput = {
|
|
581
|
+
highlights?: string;
|
|
582
|
+
html?: string;
|
|
583
|
+
links?: string[];
|
|
584
|
+
markdown?: string;
|
|
585
|
+
metadata?: ContextMetadataOutput;
|
|
586
|
+
status: ContextStatusOutput;
|
|
587
|
+
url: string;
|
|
588
|
+
};
|
|
589
|
+
export type ContextHighlightsInput = {
|
|
590
|
+
max_tokens_per_url?: number;
|
|
591
|
+
query: string;
|
|
592
|
+
};
|
|
593
|
+
export type ContextHighlightsOutput = {
|
|
594
|
+
max_tokens_per_url?: number;
|
|
595
|
+
query: string;
|
|
596
|
+
};
|
|
597
|
+
export type ContextMetadataInput = {
|
|
598
|
+
author?: string;
|
|
599
|
+
content_type?: string;
|
|
600
|
+
description?: string;
|
|
601
|
+
fetched_at?: string;
|
|
602
|
+
language?: string;
|
|
603
|
+
last_modified?: string;
|
|
604
|
+
origin?: "cached" | "live";
|
|
605
|
+
published_date?: string;
|
|
606
|
+
source_url: string;
|
|
607
|
+
title?: string;
|
|
608
|
+
} & Record<string, (string | string[]) | string | string | string | string | string | string | ("cached" | "live") | string | string | string>;
|
|
609
|
+
export type ContextMetadataOutput = {
|
|
610
|
+
author?: string;
|
|
611
|
+
content_type?: string;
|
|
612
|
+
description?: string;
|
|
613
|
+
fetched_at?: string;
|
|
614
|
+
language?: string;
|
|
615
|
+
last_modified?: string;
|
|
616
|
+
origin?: "cached" | "live";
|
|
617
|
+
published_date?: string;
|
|
618
|
+
source_url: string;
|
|
619
|
+
title?: string;
|
|
620
|
+
} & Record<string, (string | string[]) | string | string | string | string | string | string | ("cached" | "live") | string | string | string>;
|
|
621
|
+
export type ContextRequestInput = {
|
|
622
|
+
cache_only?: boolean;
|
|
623
|
+
formats?: ("markdown" | "html" | "links" | "highlights")[];
|
|
624
|
+
highlights?: ContextHighlightsInput;
|
|
625
|
+
if_modified_since?: string;
|
|
626
|
+
max_age_seconds?: number;
|
|
627
|
+
timeout_ms?: number;
|
|
628
|
+
urls: string[];
|
|
629
|
+
};
|
|
630
|
+
export type ContextRequestOutput = {
|
|
631
|
+
cache_only?: boolean;
|
|
632
|
+
formats?: ("markdown" | "html" | "links" | "highlights")[];
|
|
633
|
+
highlights?: ContextHighlightsOutput;
|
|
634
|
+
if_modified_since?: string;
|
|
635
|
+
max_age_seconds?: number;
|
|
636
|
+
timeout_ms?: number;
|
|
637
|
+
urls: string[];
|
|
638
|
+
};
|
|
639
|
+
export type ContextResponseInput = {
|
|
640
|
+
request_id: string;
|
|
641
|
+
results: ContextDocumentInput[];
|
|
642
|
+
usage: ContextUsageInput;
|
|
643
|
+
};
|
|
644
|
+
export type ContextResponseOutput = {
|
|
645
|
+
request_id: string;
|
|
646
|
+
results: ContextDocumentOutput[];
|
|
647
|
+
usage: ContextUsageOutput;
|
|
648
|
+
};
|
|
649
|
+
export type ContextStatusInput = {
|
|
650
|
+
message?: string;
|
|
651
|
+
status_code?: number;
|
|
652
|
+
type: "ok" | "not_modified" | "invalid_url" | "blocked" | "bot_challenge" | "crawl_failed" | "crawl_timeout" | "no_text" | "no_content" | "internal_error";
|
|
653
|
+
};
|
|
654
|
+
export type ContextStatusOutput = {
|
|
655
|
+
message?: string;
|
|
656
|
+
status_code?: number;
|
|
657
|
+
type: "ok" | "not_modified" | "invalid_url" | "blocked" | "bot_challenge" | "crawl_failed" | "crawl_timeout" | "no_text" | "no_content" | "internal_error";
|
|
658
|
+
};
|
|
561
659
|
export type ContextualizedEmbeddingObjectInput = {
|
|
562
660
|
data?: EmbeddingObjectInput[];
|
|
563
661
|
index?: number;
|
|
@@ -592,6 +690,14 @@ export type ContextualizedEmbeddingsResponseOutput = {
|
|
|
592
690
|
object?: string;
|
|
593
691
|
usage?: EmbeddingsUsageOutput;
|
|
594
692
|
};
|
|
693
|
+
export type ContextUsageInput = {
|
|
694
|
+
cost: ContextCostInput;
|
|
695
|
+
fetched_urls: number;
|
|
696
|
+
};
|
|
697
|
+
export type ContextUsageOutput = {
|
|
698
|
+
cost: ContextCostOutput;
|
|
699
|
+
fetched_urls: number;
|
|
700
|
+
};
|
|
595
701
|
export type CostInput = {
|
|
596
702
|
citation_tokens_cost?: number | null;
|
|
597
703
|
input_tokens_cost: number;
|
|
@@ -612,6 +718,22 @@ export type CostOutput = {
|
|
|
612
718
|
};
|
|
613
719
|
export type CreateBrowserSessionRequestInput = {};
|
|
614
720
|
export type CreateBrowserSessionRequestOutput = {};
|
|
721
|
+
export type CreateMonitorRequestInput = {
|
|
722
|
+
goal?: string;
|
|
723
|
+
metadata?: MonitorMetadataInput;
|
|
724
|
+
name: string;
|
|
725
|
+
schedule: MonitorScheduleRequestInput;
|
|
726
|
+
targets: MonitorTargetsInput;
|
|
727
|
+
webhook?: (Record<string, unknown> & (MonitorWebhookRequestInput)) | null;
|
|
728
|
+
};
|
|
729
|
+
export type CreateMonitorRequestOutput = {
|
|
730
|
+
goal?: string;
|
|
731
|
+
metadata?: MonitorMetadataOutput;
|
|
732
|
+
name: string;
|
|
733
|
+
schedule: MonitorScheduleRequestOutput;
|
|
734
|
+
targets: MonitorTargetsOutput;
|
|
735
|
+
webhook?: (Record<string, unknown> & (MonitorWebhookRequestOutput)) | null;
|
|
736
|
+
};
|
|
615
737
|
export type CurrencyInput = "USD";
|
|
616
738
|
export type CurrencyOutput = "USD";
|
|
617
739
|
export type CustomSkillInput = {
|
|
@@ -736,20 +858,40 @@ export type DecisionsResponseOutput = {
|
|
|
736
858
|
model: string;
|
|
737
859
|
usage: DecisionUsageOutput;
|
|
738
860
|
};
|
|
861
|
+
export type DecisionToolCallDetailsInput = {
|
|
862
|
+
invocation: number;
|
|
863
|
+
};
|
|
864
|
+
export type DecisionToolCallDetailsOutput = {
|
|
865
|
+
invocation: number;
|
|
866
|
+
};
|
|
739
867
|
export type DecisionUsageInput = {
|
|
740
868
|
input_tokens: number;
|
|
741
869
|
output_tokens: number;
|
|
870
|
+
tool_calls_details?: {} & Record<string, DecisionToolCallDetailsInput>;
|
|
742
871
|
};
|
|
743
872
|
export type DecisionUsageOutput = {
|
|
744
873
|
input_tokens: number;
|
|
745
874
|
output_tokens: number;
|
|
875
|
+
tool_calls_details?: {} & Record<string, DecisionToolCallDetailsOutput>;
|
|
876
|
+
};
|
|
877
|
+
export type DeleteMonitorResponseInput = {
|
|
878
|
+
deleted: boolean;
|
|
879
|
+
id: string;
|
|
880
|
+
object: "monitor";
|
|
881
|
+
};
|
|
882
|
+
export type DeleteMonitorResponseOutput = {
|
|
883
|
+
deleted: boolean;
|
|
884
|
+
id: string;
|
|
885
|
+
object: "monitor";
|
|
746
886
|
};
|
|
747
887
|
export type EmbeddingObjectInput = {
|
|
888
|
+
data?: EmbeddingObjectInput[];
|
|
748
889
|
embedding?: string;
|
|
749
890
|
index?: number;
|
|
750
891
|
object?: string;
|
|
751
892
|
};
|
|
752
893
|
export type EmbeddingObjectOutput = {
|
|
894
|
+
data?: EmbeddingObjectOutput[];
|
|
753
895
|
embedding?: string;
|
|
754
896
|
index?: number;
|
|
755
897
|
object?: string;
|
|
@@ -757,14 +899,24 @@ export type EmbeddingObjectOutput = {
|
|
|
757
899
|
export type EmbeddingsRequestInput = {
|
|
758
900
|
dimensions?: number;
|
|
759
901
|
encoding_format?: "base64_int8" | "base64_binary";
|
|
760
|
-
input: string | string[]
|
|
761
|
-
|
|
902
|
+
input: string | string[] | string[][] | {
|
|
903
|
+
image: string;
|
|
904
|
+
type: "image";
|
|
905
|
+
}[];
|
|
906
|
+
input_type?: "query" | "document";
|
|
907
|
+
model: "pplx-embed-v1-0.6b" | "pplx-embed-v1-4b" | "pplx-embed-v2-context-9b" | "pplx-embed-v2-context-0.6b";
|
|
908
|
+
num_chunks?: 1 | 2 | 4 | 8 | 16 | 32;
|
|
762
909
|
};
|
|
763
910
|
export type EmbeddingsRequestOutput = {
|
|
764
911
|
dimensions?: number;
|
|
765
912
|
encoding_format?: "base64_int8" | "base64_binary";
|
|
766
|
-
input: string | string[]
|
|
767
|
-
|
|
913
|
+
input: string | string[] | string[][] | {
|
|
914
|
+
image: string;
|
|
915
|
+
type: "image";
|
|
916
|
+
}[];
|
|
917
|
+
input_type?: "query" | "document";
|
|
918
|
+
model: "pplx-embed-v1-0.6b" | "pplx-embed-v1-4b" | "pplx-embed-v2-context-9b" | "pplx-embed-v2-context-0.6b";
|
|
919
|
+
num_chunks?: 1 | 2 | 4 | 8 | 16 | 32;
|
|
768
920
|
};
|
|
769
921
|
export type EmbeddingsResponseInput = {
|
|
770
922
|
data?: EmbeddingObjectInput[];
|
|
@@ -806,6 +958,20 @@ export type ErrorInfoOutput = {
|
|
|
806
958
|
message: string;
|
|
807
959
|
type?: string;
|
|
808
960
|
};
|
|
961
|
+
export type EventMonitorInput = {
|
|
962
|
+
id: string;
|
|
963
|
+
metadata: {} & Record<string, string>;
|
|
964
|
+
name: string;
|
|
965
|
+
pause_reason?: MonitorPauseReasonInput;
|
|
966
|
+
status: MonitorStatusInput;
|
|
967
|
+
};
|
|
968
|
+
export type EventMonitorOutput = {
|
|
969
|
+
id: string;
|
|
970
|
+
metadata: {} & Record<string, string>;
|
|
971
|
+
name: string;
|
|
972
|
+
pause_reason?: MonitorPauseReasonOutput;
|
|
973
|
+
status: MonitorStatusOutput;
|
|
974
|
+
};
|
|
809
975
|
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";
|
|
810
976
|
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";
|
|
811
977
|
export type ExecutePythonStepDetailsInput = {
|
|
@@ -1394,6 +1560,472 @@ export type ModelListOutput = {
|
|
|
1394
1560
|
data: ModelOutput[];
|
|
1395
1561
|
object: "list";
|
|
1396
1562
|
};
|
|
1563
|
+
export type MonitorInput = {
|
|
1564
|
+
created_at: MonitorTimestampInput;
|
|
1565
|
+
current_run_id?: string;
|
|
1566
|
+
goal: string;
|
|
1567
|
+
id: string;
|
|
1568
|
+
last_run?: MonitorLastRunInput;
|
|
1569
|
+
metadata: MonitorMetadataInput;
|
|
1570
|
+
name: string;
|
|
1571
|
+
next_run_at?: MonitorTimestampInput;
|
|
1572
|
+
object: "monitor";
|
|
1573
|
+
pause_reason?: MonitorPauseReasonInput;
|
|
1574
|
+
schedule: MonitorScheduleInput;
|
|
1575
|
+
status: MonitorStatusInput;
|
|
1576
|
+
targets: MonitorTargetInput[];
|
|
1577
|
+
updated_at: MonitorTimestampInput;
|
|
1578
|
+
webhook?: MonitorWebhookInput;
|
|
1579
|
+
};
|
|
1580
|
+
export type MonitorOutput = {
|
|
1581
|
+
created_at: MonitorTimestampOutput;
|
|
1582
|
+
current_run_id?: string;
|
|
1583
|
+
goal: string;
|
|
1584
|
+
id: string;
|
|
1585
|
+
last_run?: MonitorLastRunOutput;
|
|
1586
|
+
metadata: MonitorMetadataOutput;
|
|
1587
|
+
name: string;
|
|
1588
|
+
next_run_at?: MonitorTimestampOutput;
|
|
1589
|
+
object: "monitor";
|
|
1590
|
+
pause_reason?: MonitorPauseReasonOutput;
|
|
1591
|
+
schedule: MonitorScheduleOutput;
|
|
1592
|
+
status: MonitorStatusOutput;
|
|
1593
|
+
targets: MonitorTargetOutput[];
|
|
1594
|
+
updated_at: MonitorTimestampOutput;
|
|
1595
|
+
webhook?: MonitorWebhookOutput;
|
|
1596
|
+
};
|
|
1597
|
+
export type MonitorChangeInput = MonitorSearchResultChangeInput | MonitorPageChangeInput;
|
|
1598
|
+
export type MonitorChangeOutput = MonitorSearchResultChangeOutput | MonitorPageChangeOutput;
|
|
1599
|
+
export type MonitorChangeIdInput = string;
|
|
1600
|
+
export type MonitorChangeIdOutput = string;
|
|
1601
|
+
export type MonitorChangesDetectedEventInput = {
|
|
1602
|
+
data: MonitorRunEventDataInput;
|
|
1603
|
+
id: MonitorEventIdInput;
|
|
1604
|
+
object: MonitorEventObjectInput;
|
|
1605
|
+
timestamp: MonitorTimestampInput;
|
|
1606
|
+
type: "monitor.changes.detected";
|
|
1607
|
+
};
|
|
1608
|
+
export type MonitorChangesDetectedEventOutput = {
|
|
1609
|
+
data: MonitorRunEventDataOutput;
|
|
1610
|
+
id: MonitorEventIdOutput;
|
|
1611
|
+
object: MonitorEventObjectOutput;
|
|
1612
|
+
timestamp: MonitorTimestampOutput;
|
|
1613
|
+
type: "monitor.changes.detected";
|
|
1614
|
+
};
|
|
1615
|
+
export type MonitorCronScheduleInput = {
|
|
1616
|
+
cron: string;
|
|
1617
|
+
timezone: string;
|
|
1618
|
+
type: "cron";
|
|
1619
|
+
};
|
|
1620
|
+
export type MonitorCronScheduleOutput = {
|
|
1621
|
+
cron: string;
|
|
1622
|
+
timezone: string;
|
|
1623
|
+
type: "cron";
|
|
1624
|
+
};
|
|
1625
|
+
export type MonitorCronScheduleRequestInput = {
|
|
1626
|
+
cron: string;
|
|
1627
|
+
timezone?: string;
|
|
1628
|
+
type: "cron";
|
|
1629
|
+
};
|
|
1630
|
+
export type MonitorCronScheduleRequestOutput = {
|
|
1631
|
+
cron: string;
|
|
1632
|
+
timezone?: string;
|
|
1633
|
+
type: "cron";
|
|
1634
|
+
};
|
|
1635
|
+
export type MonitorCurrencyInput = "USD";
|
|
1636
|
+
export type MonitorCurrencyOutput = "USD";
|
|
1637
|
+
export type MonitorDiffInput = {
|
|
1638
|
+
added_lines: number;
|
|
1639
|
+
removed_lines: number;
|
|
1640
|
+
truncated: boolean;
|
|
1641
|
+
unified: string;
|
|
1642
|
+
};
|
|
1643
|
+
export type MonitorDiffOutput = {
|
|
1644
|
+
added_lines: number;
|
|
1645
|
+
removed_lines: number;
|
|
1646
|
+
truncated: boolean;
|
|
1647
|
+
unified: string;
|
|
1648
|
+
};
|
|
1649
|
+
export type MonitorDomainInput = string;
|
|
1650
|
+
export type MonitorDomainOutput = string;
|
|
1651
|
+
export type MonitorEventInput = MonitorChangesDetectedEventInput | MonitorRunCompletedEventInput | MonitorPausedEventInput | MonitorWebhookTestEventInput;
|
|
1652
|
+
export type MonitorEventOutput = MonitorChangesDetectedEventOutput | MonitorRunCompletedEventOutput | MonitorPausedEventOutput | MonitorWebhookTestEventOutput;
|
|
1653
|
+
export type MonitorEventIdInput = string;
|
|
1654
|
+
export type MonitorEventIdOutput = string;
|
|
1655
|
+
export type MonitorEventObjectInput = "event";
|
|
1656
|
+
export type MonitorEventObjectOutput = "event";
|
|
1657
|
+
export type MonitorEventTypeInput = "monitor.changes.detected" | "monitor.run.completed" | "monitor.paused";
|
|
1658
|
+
export type MonitorEventTypeOutput = "monitor.changes.detected" | "monitor.run.completed" | "monitor.paused";
|
|
1659
|
+
export type MonitorFreshnessInput = "published" | "updated";
|
|
1660
|
+
export type MonitorFreshnessOutput = "published" | "updated";
|
|
1661
|
+
export type MonitorIntervalScheduleInput = {
|
|
1662
|
+
interval: string;
|
|
1663
|
+
type: "interval";
|
|
1664
|
+
};
|
|
1665
|
+
export type MonitorIntervalScheduleOutput = {
|
|
1666
|
+
interval: string;
|
|
1667
|
+
type: "interval";
|
|
1668
|
+
};
|
|
1669
|
+
export type MonitorIntervalScheduleRequestInput = {
|
|
1670
|
+
interval: string;
|
|
1671
|
+
type: "interval";
|
|
1672
|
+
};
|
|
1673
|
+
export type MonitorIntervalScheduleRequestOutput = {
|
|
1674
|
+
interval: string;
|
|
1675
|
+
type: "interval";
|
|
1676
|
+
};
|
|
1677
|
+
export type MonitorLastRunInput = {
|
|
1678
|
+
change_count: number;
|
|
1679
|
+
finished_at: MonitorTimestampInput;
|
|
1680
|
+
id: string;
|
|
1681
|
+
status: MonitorRunStatusInput;
|
|
1682
|
+
};
|
|
1683
|
+
export type MonitorLastRunOutput = {
|
|
1684
|
+
change_count: number;
|
|
1685
|
+
finished_at: MonitorTimestampOutput;
|
|
1686
|
+
id: string;
|
|
1687
|
+
status: MonitorRunStatusOutput;
|
|
1688
|
+
};
|
|
1689
|
+
export type MonitorListInput = {
|
|
1690
|
+
data: MonitorInput[];
|
|
1691
|
+
has_more: boolean;
|
|
1692
|
+
object: "list";
|
|
1693
|
+
};
|
|
1694
|
+
export type MonitorListOutput = {
|
|
1695
|
+
data: MonitorOutput[];
|
|
1696
|
+
has_more: boolean;
|
|
1697
|
+
object: "list";
|
|
1698
|
+
};
|
|
1699
|
+
export type MonitorMetadataInput = {} & Record<string, string>;
|
|
1700
|
+
export type MonitorMetadataOutput = {} & Record<string, string>;
|
|
1701
|
+
export type MonitorPageChangeInput = {
|
|
1702
|
+
confidence: number;
|
|
1703
|
+
diff: MonitorDiffInput;
|
|
1704
|
+
fetched_at: MonitorTimestampInput;
|
|
1705
|
+
id: MonitorChangeIdInput;
|
|
1706
|
+
previous_fetched_at: MonitorTimestampInput;
|
|
1707
|
+
title?: string;
|
|
1708
|
+
type: "page_change";
|
|
1709
|
+
url: string;
|
|
1710
|
+
};
|
|
1711
|
+
export type MonitorPageChangeOutput = {
|
|
1712
|
+
confidence: number;
|
|
1713
|
+
diff: MonitorDiffOutput;
|
|
1714
|
+
fetched_at: MonitorTimestampOutput;
|
|
1715
|
+
id: MonitorChangeIdOutput;
|
|
1716
|
+
previous_fetched_at: MonitorTimestampOutput;
|
|
1717
|
+
title?: string;
|
|
1718
|
+
type: "page_change";
|
|
1719
|
+
url: string;
|
|
1720
|
+
};
|
|
1721
|
+
export type MonitorPageTargetInput = {
|
|
1722
|
+
type: "page";
|
|
1723
|
+
url: string;
|
|
1724
|
+
};
|
|
1725
|
+
export type MonitorPageTargetOutput = {
|
|
1726
|
+
type: "page";
|
|
1727
|
+
url: string;
|
|
1728
|
+
};
|
|
1729
|
+
export type MonitorPageTargetErrorInput = {
|
|
1730
|
+
code: MonitorTargetErrorCodeInput;
|
|
1731
|
+
message: string;
|
|
1732
|
+
status_code?: number;
|
|
1733
|
+
type: "page";
|
|
1734
|
+
url: string;
|
|
1735
|
+
};
|
|
1736
|
+
export type MonitorPageTargetErrorOutput = {
|
|
1737
|
+
code: MonitorTargetErrorCodeOutput;
|
|
1738
|
+
message: string;
|
|
1739
|
+
status_code?: number;
|
|
1740
|
+
type: "page";
|
|
1741
|
+
url: string;
|
|
1742
|
+
};
|
|
1743
|
+
export type MonitorPageTargetRequestInput = {
|
|
1744
|
+
type: "page";
|
|
1745
|
+
url: string;
|
|
1746
|
+
};
|
|
1747
|
+
export type MonitorPageTargetRequestOutput = {
|
|
1748
|
+
type: "page";
|
|
1749
|
+
url: string;
|
|
1750
|
+
};
|
|
1751
|
+
export type MonitorPausedEventInput = {
|
|
1752
|
+
data: MonitorPausedEventDataInput;
|
|
1753
|
+
id: MonitorEventIdInput;
|
|
1754
|
+
object: MonitorEventObjectInput;
|
|
1755
|
+
timestamp: MonitorTimestampInput;
|
|
1756
|
+
type: "monitor.paused";
|
|
1757
|
+
};
|
|
1758
|
+
export type MonitorPausedEventOutput = {
|
|
1759
|
+
data: MonitorPausedEventDataOutput;
|
|
1760
|
+
id: MonitorEventIdOutput;
|
|
1761
|
+
object: MonitorEventObjectOutput;
|
|
1762
|
+
timestamp: MonitorTimestampOutput;
|
|
1763
|
+
type: "monitor.paused";
|
|
1764
|
+
};
|
|
1765
|
+
export type MonitorPausedEventDataInput = {
|
|
1766
|
+
monitor: PausedEventMonitorInput;
|
|
1767
|
+
run?: MonitorRunInput;
|
|
1768
|
+
};
|
|
1769
|
+
export type MonitorPausedEventDataOutput = {
|
|
1770
|
+
monitor: PausedEventMonitorOutput;
|
|
1771
|
+
run?: MonitorRunOutput;
|
|
1772
|
+
};
|
|
1773
|
+
export type MonitorPauseReasonInput = "user" | "insufficient_credits" | "org_policy" | "webhook_failing" | "source_failing";
|
|
1774
|
+
export type MonitorPauseReasonOutput = "user" | "insufficient_credits" | "org_policy" | "webhook_failing" | "source_failing";
|
|
1775
|
+
export type MonitorRunInput = {
|
|
1776
|
+
changes: MonitorChangeInput[];
|
|
1777
|
+
counts: MonitorRunCountsInput;
|
|
1778
|
+
created_at: MonitorTimestampInput;
|
|
1779
|
+
error?: MonitorRunErrorInput;
|
|
1780
|
+
finished_at?: MonitorTimestampInput;
|
|
1781
|
+
id: string;
|
|
1782
|
+
monitor_id: string;
|
|
1783
|
+
object: "monitor.run";
|
|
1784
|
+
status: MonitorRunStatusInput;
|
|
1785
|
+
target_errors: MonitorTargetErrorInput[];
|
|
1786
|
+
trigger: MonitorRunTriggerInput;
|
|
1787
|
+
usage: MonitorRunUsageInput;
|
|
1788
|
+
window?: MonitorRunWindowInput;
|
|
1789
|
+
};
|
|
1790
|
+
export type MonitorRunOutput = {
|
|
1791
|
+
changes: MonitorChangeOutput[];
|
|
1792
|
+
counts: MonitorRunCountsOutput;
|
|
1793
|
+
created_at: MonitorTimestampOutput;
|
|
1794
|
+
error?: MonitorRunErrorOutput;
|
|
1795
|
+
finished_at?: MonitorTimestampOutput;
|
|
1796
|
+
id: string;
|
|
1797
|
+
monitor_id: string;
|
|
1798
|
+
object: "monitor.run";
|
|
1799
|
+
status: MonitorRunStatusOutput;
|
|
1800
|
+
target_errors: MonitorTargetErrorOutput[];
|
|
1801
|
+
trigger: MonitorRunTriggerOutput;
|
|
1802
|
+
usage: MonitorRunUsageOutput;
|
|
1803
|
+
window?: MonitorRunWindowOutput;
|
|
1804
|
+
};
|
|
1805
|
+
export type MonitorRunCompletedEventInput = {
|
|
1806
|
+
data: MonitorRunEventDataInput;
|
|
1807
|
+
id: MonitorEventIdInput;
|
|
1808
|
+
object: MonitorEventObjectInput;
|
|
1809
|
+
timestamp: MonitorTimestampInput;
|
|
1810
|
+
type: "monitor.run.completed";
|
|
1811
|
+
};
|
|
1812
|
+
export type MonitorRunCompletedEventOutput = {
|
|
1813
|
+
data: MonitorRunEventDataOutput;
|
|
1814
|
+
id: MonitorEventIdOutput;
|
|
1815
|
+
object: MonitorEventObjectOutput;
|
|
1816
|
+
timestamp: MonitorTimestampOutput;
|
|
1817
|
+
type: "monitor.run.completed";
|
|
1818
|
+
};
|
|
1819
|
+
export type MonitorRunCostInput = {
|
|
1820
|
+
currency: MonitorCurrencyInput;
|
|
1821
|
+
total_cost: number;
|
|
1822
|
+
};
|
|
1823
|
+
export type MonitorRunCostOutput = {
|
|
1824
|
+
currency: MonitorCurrencyOutput;
|
|
1825
|
+
total_cost: number;
|
|
1826
|
+
};
|
|
1827
|
+
export type MonitorRunCountsInput = {
|
|
1828
|
+
candidates: number;
|
|
1829
|
+
changes: number;
|
|
1830
|
+
errors: number;
|
|
1831
|
+
};
|
|
1832
|
+
export type MonitorRunCountsOutput = {
|
|
1833
|
+
candidates: number;
|
|
1834
|
+
changes: number;
|
|
1835
|
+
errors: number;
|
|
1836
|
+
};
|
|
1837
|
+
export type MonitorRunErrorInput = {
|
|
1838
|
+
code?: MonitorRunFailureCodeInput;
|
|
1839
|
+
message: string;
|
|
1840
|
+
skip_reason?: MonitorPauseReasonInput;
|
|
1841
|
+
};
|
|
1842
|
+
export type MonitorRunErrorOutput = {
|
|
1843
|
+
code?: MonitorRunFailureCodeOutput;
|
|
1844
|
+
message: string;
|
|
1845
|
+
skip_reason?: MonitorPauseReasonOutput;
|
|
1846
|
+
};
|
|
1847
|
+
export type MonitorRunEventDataInput = {
|
|
1848
|
+
monitor: EventMonitorInput;
|
|
1849
|
+
run: MonitorRunInput;
|
|
1850
|
+
};
|
|
1851
|
+
export type MonitorRunEventDataOutput = {
|
|
1852
|
+
monitor: EventMonitorOutput;
|
|
1853
|
+
run: MonitorRunOutput;
|
|
1854
|
+
};
|
|
1855
|
+
export type MonitorRunFailureCodeInput = "gate_unavailable" | "detect_failed" | "judge_failed" | "source_failed" | "notify_failed" | "timed_out";
|
|
1856
|
+
export type MonitorRunFailureCodeOutput = "gate_unavailable" | "detect_failed" | "judge_failed" | "source_failed" | "notify_failed" | "timed_out";
|
|
1857
|
+
export type MonitorRunListInput = {
|
|
1858
|
+
data: MonitorRunInput[];
|
|
1859
|
+
has_more: boolean;
|
|
1860
|
+
object: "list";
|
|
1861
|
+
};
|
|
1862
|
+
export type MonitorRunListOutput = {
|
|
1863
|
+
data: MonitorRunOutput[];
|
|
1864
|
+
has_more: boolean;
|
|
1865
|
+
object: "list";
|
|
1866
|
+
};
|
|
1867
|
+
export type MonitorRunStatusInput = "queued" | "running" | "succeeded" | "failed" | "skipped";
|
|
1868
|
+
export type MonitorRunStatusOutput = "queued" | "running" | "succeeded" | "failed" | "skipped";
|
|
1869
|
+
export type MonitorRunTriggerInput = "schedule" | "manual";
|
|
1870
|
+
export type MonitorRunTriggerOutput = "schedule" | "manual";
|
|
1871
|
+
export type MonitorRunUsageInput = {
|
|
1872
|
+
cost: MonitorRunCostInput;
|
|
1873
|
+
fetched_urls: number;
|
|
1874
|
+
};
|
|
1875
|
+
export type MonitorRunUsageOutput = {
|
|
1876
|
+
cost: MonitorRunCostOutput;
|
|
1877
|
+
fetched_urls: number;
|
|
1878
|
+
};
|
|
1879
|
+
export type MonitorRunWindowInput = {
|
|
1880
|
+
from: MonitorTimestampInput;
|
|
1881
|
+
to: MonitorTimestampInput;
|
|
1882
|
+
};
|
|
1883
|
+
export type MonitorRunWindowOutput = {
|
|
1884
|
+
from: MonitorTimestampOutput;
|
|
1885
|
+
to: MonitorTimestampOutput;
|
|
1886
|
+
};
|
|
1887
|
+
export type MonitorScheduleInput = MonitorIntervalScheduleInput | MonitorCronScheduleInput;
|
|
1888
|
+
export type MonitorScheduleOutput = MonitorIntervalScheduleOutput | MonitorCronScheduleOutput;
|
|
1889
|
+
export type MonitorScheduleRequestInput = MonitorIntervalScheduleRequestInput | MonitorCronScheduleRequestInput;
|
|
1890
|
+
export type MonitorScheduleRequestOutput = MonitorIntervalScheduleRequestOutput | MonitorCronScheduleRequestOutput;
|
|
1891
|
+
export type MonitorSearchFiltersInput = {
|
|
1892
|
+
exclude_domains: MonitorDomainInput[];
|
|
1893
|
+
freshness: MonitorFreshnessInput[];
|
|
1894
|
+
include_domains: MonitorDomainInput[];
|
|
1895
|
+
};
|
|
1896
|
+
export type MonitorSearchFiltersOutput = {
|
|
1897
|
+
exclude_domains: MonitorDomainOutput[];
|
|
1898
|
+
freshness: MonitorFreshnessOutput[];
|
|
1899
|
+
include_domains: MonitorDomainOutput[];
|
|
1900
|
+
};
|
|
1901
|
+
export type MonitorSearchFiltersRequestInput = {
|
|
1902
|
+
exclude_domains?: string[];
|
|
1903
|
+
freshness?: MonitorFreshnessInput[];
|
|
1904
|
+
include_domains?: string[];
|
|
1905
|
+
};
|
|
1906
|
+
export type MonitorSearchFiltersRequestOutput = {
|
|
1907
|
+
exclude_domains?: string[];
|
|
1908
|
+
freshness?: MonitorFreshnessOutput[];
|
|
1909
|
+
include_domains?: string[];
|
|
1910
|
+
};
|
|
1911
|
+
export type MonitorSearchResultChangeInput = {
|
|
1912
|
+
confidence: number;
|
|
1913
|
+
id: MonitorChangeIdInput;
|
|
1914
|
+
last_updated_at?: MonitorTimestampInput;
|
|
1915
|
+
published_at?: MonitorTimestampInput;
|
|
1916
|
+
snippet?: string;
|
|
1917
|
+
title?: string;
|
|
1918
|
+
type: "search_result";
|
|
1919
|
+
url: string;
|
|
1920
|
+
};
|
|
1921
|
+
export type MonitorSearchResultChangeOutput = {
|
|
1922
|
+
confidence: number;
|
|
1923
|
+
id: MonitorChangeIdOutput;
|
|
1924
|
+
last_updated_at?: MonitorTimestampOutput;
|
|
1925
|
+
published_at?: MonitorTimestampOutput;
|
|
1926
|
+
snippet?: string;
|
|
1927
|
+
title?: string;
|
|
1928
|
+
type: "search_result";
|
|
1929
|
+
url: string;
|
|
1930
|
+
};
|
|
1931
|
+
export type MonitorSearchTargetInput = {
|
|
1932
|
+
filters: MonitorSearchFiltersInput;
|
|
1933
|
+
max_results: number;
|
|
1934
|
+
query: string;
|
|
1935
|
+
type: "search";
|
|
1936
|
+
};
|
|
1937
|
+
export type MonitorSearchTargetOutput = {
|
|
1938
|
+
filters: MonitorSearchFiltersOutput;
|
|
1939
|
+
max_results: number;
|
|
1940
|
+
query: string;
|
|
1941
|
+
type: "search";
|
|
1942
|
+
};
|
|
1943
|
+
export type MonitorSearchTargetRequestInput = {
|
|
1944
|
+
filters?: MonitorSearchFiltersRequestInput;
|
|
1945
|
+
max_results?: number;
|
|
1946
|
+
query: string;
|
|
1947
|
+
type: "search";
|
|
1948
|
+
};
|
|
1949
|
+
export type MonitorSearchTargetRequestOutput = {
|
|
1950
|
+
filters?: MonitorSearchFiltersRequestOutput;
|
|
1951
|
+
max_results?: number;
|
|
1952
|
+
query: string;
|
|
1953
|
+
type: "search";
|
|
1954
|
+
};
|
|
1955
|
+
export type MonitorStatusInput = "active" | "paused";
|
|
1956
|
+
export type MonitorStatusOutput = "active" | "paused";
|
|
1957
|
+
export type MonitorTargetInput = MonitorSearchTargetInput | MonitorPageTargetInput;
|
|
1958
|
+
export type MonitorTargetOutput = MonitorSearchTargetOutput | MonitorPageTargetOutput;
|
|
1959
|
+
export type MonitorTargetErrorInput = MonitorPageTargetErrorInput;
|
|
1960
|
+
export type MonitorTargetErrorOutput = MonitorPageTargetErrorOutput;
|
|
1961
|
+
export type MonitorTargetErrorCodeInput = "invalid_url" | "blocked" | "no_content" | "load_failed" | "timeout" | "fetch_unavailable" | "http_status";
|
|
1962
|
+
export type MonitorTargetErrorCodeOutput = "invalid_url" | "blocked" | "no_content" | "load_failed" | "timeout" | "fetch_unavailable" | "http_status";
|
|
1963
|
+
export type MonitorTargetRequestInput = MonitorSearchTargetRequestInput | MonitorPageTargetRequestInput;
|
|
1964
|
+
export type MonitorTargetRequestOutput = MonitorSearchTargetRequestOutput | MonitorPageTargetRequestOutput;
|
|
1965
|
+
export type MonitorTargetsInput = MonitorTargetRequestInput[];
|
|
1966
|
+
export type MonitorTargetsOutput = MonitorTargetRequestOutput[];
|
|
1967
|
+
export type MonitorTimestampInput = string;
|
|
1968
|
+
export type MonitorTimestampOutput = string;
|
|
1969
|
+
export type MonitorWebhookInput = {
|
|
1970
|
+
events: MonitorEventTypeInput[];
|
|
1971
|
+
secret?: MonitorWebhookSecretInput;
|
|
1972
|
+
url: string;
|
|
1973
|
+
};
|
|
1974
|
+
export type MonitorWebhookOutput = {
|
|
1975
|
+
events: MonitorEventTypeOutput[];
|
|
1976
|
+
secret?: MonitorWebhookSecretOutput;
|
|
1977
|
+
url: string;
|
|
1978
|
+
};
|
|
1979
|
+
export type MonitorWebhookRequestInput = {
|
|
1980
|
+
events?: MonitorEventTypeInput[];
|
|
1981
|
+
secret?: MonitorWebhookSecretInput;
|
|
1982
|
+
url: string;
|
|
1983
|
+
} | null;
|
|
1984
|
+
export type MonitorWebhookRequestOutput = {
|
|
1985
|
+
events?: MonitorEventTypeOutput[];
|
|
1986
|
+
secret?: MonitorWebhookSecretOutput;
|
|
1987
|
+
url: string;
|
|
1988
|
+
} | null;
|
|
1989
|
+
export type MonitorWebhookSecretInput = string;
|
|
1990
|
+
export type MonitorWebhookSecretOutput = string;
|
|
1991
|
+
export type MonitorWebhookTestInput = {
|
|
1992
|
+
delivered: boolean;
|
|
1993
|
+
duration_ms: number;
|
|
1994
|
+
error?: MonitorWebhookTestErrorInput;
|
|
1995
|
+
event_id: string;
|
|
1996
|
+
object: "monitor.webhook_test";
|
|
1997
|
+
status_code?: number;
|
|
1998
|
+
};
|
|
1999
|
+
export type MonitorWebhookTestOutput = {
|
|
2000
|
+
delivered: boolean;
|
|
2001
|
+
duration_ms: number;
|
|
2002
|
+
error?: MonitorWebhookTestErrorOutput;
|
|
2003
|
+
event_id: string;
|
|
2004
|
+
object: "monitor.webhook_test";
|
|
2005
|
+
status_code?: number;
|
|
2006
|
+
};
|
|
2007
|
+
export type MonitorWebhookTestErrorInput = "http_status" | "timeout" | "network_error" | "tls_certificate" | "blocked_address" | "invalid_url" | "send_failed";
|
|
2008
|
+
export type MonitorWebhookTestErrorOutput = "http_status" | "timeout" | "network_error" | "tls_certificate" | "blocked_address" | "invalid_url" | "send_failed";
|
|
2009
|
+
export type MonitorWebhookTestEventInput = {
|
|
2010
|
+
data: MonitorWebhookTestEventDataInput;
|
|
2011
|
+
id: MonitorEventIdInput;
|
|
2012
|
+
object: MonitorEventObjectInput;
|
|
2013
|
+
timestamp: MonitorTimestampInput;
|
|
2014
|
+
type: "monitor.webhook.test";
|
|
2015
|
+
};
|
|
2016
|
+
export type MonitorWebhookTestEventOutput = {
|
|
2017
|
+
data: MonitorWebhookTestEventDataOutput;
|
|
2018
|
+
id: MonitorEventIdOutput;
|
|
2019
|
+
object: MonitorEventObjectOutput;
|
|
2020
|
+
timestamp: MonitorTimestampOutput;
|
|
2021
|
+
type: "monitor.webhook.test";
|
|
2022
|
+
};
|
|
2023
|
+
export type MonitorWebhookTestEventDataInput = {
|
|
2024
|
+
monitor: EventMonitorInput;
|
|
2025
|
+
};
|
|
2026
|
+
export type MonitorWebhookTestEventDataOutput = {
|
|
2027
|
+
monitor: EventMonitorOutput;
|
|
2028
|
+
};
|
|
1397
2029
|
export type NamespaceToolInput = {
|
|
1398
2030
|
description: string;
|
|
1399
2031
|
name: string;
|
|
@@ -1462,6 +2094,20 @@ export type ParameterSpecOutput = {
|
|
|
1462
2094
|
required?: string[] | null;
|
|
1463
2095
|
type: string;
|
|
1464
2096
|
};
|
|
2097
|
+
export type PausedEventMonitorInput = {
|
|
2098
|
+
id: string;
|
|
2099
|
+
metadata: {} & Record<string, string>;
|
|
2100
|
+
name: string;
|
|
2101
|
+
pause_reason: MonitorPauseReasonInput;
|
|
2102
|
+
status: "paused";
|
|
2103
|
+
};
|
|
2104
|
+
export type PausedEventMonitorOutput = {
|
|
2105
|
+
id: string;
|
|
2106
|
+
metadata: {} & Record<string, string>;
|
|
2107
|
+
name: string;
|
|
2108
|
+
pause_reason: MonitorPauseReasonOutput;
|
|
2109
|
+
status: "paused";
|
|
2110
|
+
};
|
|
1465
2111
|
export type PeopleSearchToolInput = {
|
|
1466
2112
|
type: "people_search";
|
|
1467
2113
|
};
|
|
@@ -1702,6 +2348,7 @@ export type ResponsesObjectTypeInput = "response";
|
|
|
1702
2348
|
export type ResponsesObjectTypeOutput = "response";
|
|
1703
2349
|
export type ResponsesRequestInput = {
|
|
1704
2350
|
background?: boolean | null;
|
|
2351
|
+
code_mode?: boolean;
|
|
1705
2352
|
effort?: string;
|
|
1706
2353
|
input: InputInput;
|
|
1707
2354
|
instructions?: string;
|
|
@@ -1729,6 +2376,7 @@ export type ResponsesRequestInput = {
|
|
|
1729
2376
|
};
|
|
1730
2377
|
export type ResponsesRequestOutput = {
|
|
1731
2378
|
background?: boolean | null;
|
|
2379
|
+
code_mode?: boolean;
|
|
1732
2380
|
effort?: string;
|
|
1733
2381
|
input: InputOutput;
|
|
1734
2382
|
instructions?: string;
|
|
@@ -2226,6 +2874,22 @@ export type UnknownOutputItemOutput = {
|
|
|
2226
2874
|
payload: {} & Record<string, unknown>;
|
|
2227
2875
|
type: "unknown";
|
|
2228
2876
|
};
|
|
2877
|
+
export type UpdateMonitorRequestInput = {
|
|
2878
|
+
goal?: string | null;
|
|
2879
|
+
metadata?: ({} & Record<string, string>) | null;
|
|
2880
|
+
name?: string;
|
|
2881
|
+
schedule?: MonitorScheduleRequestInput;
|
|
2882
|
+
targets?: MonitorTargetsInput;
|
|
2883
|
+
webhook?: (Record<string, unknown> & (MonitorWebhookRequestInput)) | null;
|
|
2884
|
+
};
|
|
2885
|
+
export type UpdateMonitorRequestOutput = {
|
|
2886
|
+
goal?: string | null;
|
|
2887
|
+
metadata?: ({} & Record<string, string>) | null;
|
|
2888
|
+
name?: string;
|
|
2889
|
+
schedule?: MonitorScheduleRequestOutput;
|
|
2890
|
+
targets?: MonitorTargetsOutput;
|
|
2891
|
+
webhook?: (Record<string, unknown> & (MonitorWebhookRequestOutput)) | null;
|
|
2892
|
+
};
|
|
2229
2893
|
export type URLInput = {
|
|
2230
2894
|
url: string;
|
|
2231
2895
|
};
|
|
@@ -2370,6 +3034,22 @@ export declare class ChatCompletionsResource {
|
|
|
2370
3034
|
}, options?: RequestOptions): APIPromise<Stream<CompletionResponseOutput>>;
|
|
2371
3035
|
create(body: ApiChatCompletionsRequestInput, options?: RequestOptions): APIPromise<CompletionResponseOutput | Stream<CompletionResponseOutput>>;
|
|
2372
3036
|
}
|
|
3037
|
+
export declare class MonitorsRunsResource {
|
|
3038
|
+
private readonly _client;
|
|
3039
|
+
constructor(client: SdkTransport);
|
|
3040
|
+
list(monitorID: string, params?: {
|
|
3041
|
+
after?: string;
|
|
3042
|
+
limit?: number;
|
|
3043
|
+
}, options?: RequestOptions): APIPromise<MonitorRunListOutput>;
|
|
3044
|
+
retrieve(runID: string, params: {
|
|
3045
|
+
monitor_id: string;
|
|
3046
|
+
}, options?: RequestOptions): APIPromise<MonitorRunOutput>;
|
|
3047
|
+
}
|
|
3048
|
+
export declare class MonitorsWebhookResource {
|
|
3049
|
+
private readonly _client;
|
|
3050
|
+
constructor(client: SdkTransport);
|
|
3051
|
+
test(monitorID: string, options?: RequestOptions): APIPromise<MonitorWebhookTestOutput>;
|
|
3052
|
+
}
|
|
2373
3053
|
export declare class ResponsesFilesResource {
|
|
2374
3054
|
private readonly _client;
|
|
2375
3055
|
constructor(client: SdkTransport);
|
|
@@ -2411,6 +3091,11 @@ export declare class ChatResource {
|
|
|
2411
3091
|
readonly completions: ChatCompletionsResource;
|
|
2412
3092
|
constructor(client: SdkTransport);
|
|
2413
3093
|
}
|
|
3094
|
+
export declare class ContextResource {
|
|
3095
|
+
private readonly _client;
|
|
3096
|
+
constructor(client: SdkTransport);
|
|
3097
|
+
create(body: ContextRequestInput, options?: RequestOptions): APIPromise<ContextResponseOutput>;
|
|
3098
|
+
}
|
|
2414
3099
|
export declare class ContextualizedEmbeddingsResource {
|
|
2415
3100
|
private readonly _client;
|
|
2416
3101
|
constructor(client: SdkTransport);
|
|
@@ -2445,6 +3130,25 @@ export declare class ModelsResource {
|
|
|
2445
3130
|
constructor(client: SdkTransport);
|
|
2446
3131
|
list(options?: RequestOptions): APIPromise<ModelListOutput>;
|
|
2447
3132
|
}
|
|
3133
|
+
export declare class MonitorsResource {
|
|
3134
|
+
private readonly _client;
|
|
3135
|
+
readonly runs: MonitorsRunsResource;
|
|
3136
|
+
readonly webhook: MonitorsWebhookResource;
|
|
3137
|
+
constructor(client: SdkTransport);
|
|
3138
|
+
create(body: CreateMonitorRequestInput, params?: {
|
|
3139
|
+
"Idempotency-Key"?: string;
|
|
3140
|
+
}, options?: RequestOptions): APIPromise<MonitorOutput>;
|
|
3141
|
+
delete(monitorID: string, options?: RequestOptions): APIPromise<DeleteMonitorResponseOutput>;
|
|
3142
|
+
list(params?: {
|
|
3143
|
+
after?: string;
|
|
3144
|
+
limit?: number;
|
|
3145
|
+
}, options?: RequestOptions): APIPromise<MonitorListOutput>;
|
|
3146
|
+
pause(monitorID: string, options?: RequestOptions): APIPromise<MonitorOutput>;
|
|
3147
|
+
resume(monitorID: string, options?: RequestOptions): APIPromise<MonitorOutput>;
|
|
3148
|
+
retrieve(monitorID: string, options?: RequestOptions): APIPromise<MonitorOutput>;
|
|
3149
|
+
run(monitorID: string, options?: RequestOptions): APIPromise<MonitorRunOutput>;
|
|
3150
|
+
update(monitorID: string, body: UpdateMonitorRequestInput, options?: RequestOptions): APIPromise<MonitorOutput>;
|
|
3151
|
+
}
|
|
2448
3152
|
export declare class ResponsesResource {
|
|
2449
3153
|
private readonly _client;
|
|
2450
3154
|
readonly files: ResponsesFilesResource;
|
|
@@ -2535,11 +3239,13 @@ export declare class PerplexitySdk {
|
|
|
2535
3239
|
readonly batches: BatchesResource;
|
|
2536
3240
|
readonly browser: BrowserResource;
|
|
2537
3241
|
readonly chat: ChatResource;
|
|
3242
|
+
readonly context: ContextResource;
|
|
2538
3243
|
readonly contextualizedEmbeddings: ContextualizedEmbeddingsResource;
|
|
2539
3244
|
readonly decisions: DecisionsResource;
|
|
2540
3245
|
readonly embeddings: EmbeddingsResource;
|
|
2541
3246
|
readonly files: FilesResource;
|
|
2542
3247
|
readonly models: ModelsResource;
|
|
3248
|
+
readonly monitors: MonitorsResource;
|
|
2543
3249
|
readonly responses: ResponsesResource;
|
|
2544
3250
|
readonly search: SearchResource;
|
|
2545
3251
|
readonly skills: SkillsResource;
|
|
@@ -2553,6 +3259,8 @@ export declare class Browser extends BrowserResource {
|
|
|
2553
3259
|
}
|
|
2554
3260
|
export declare class Chat extends ChatResource {
|
|
2555
3261
|
}
|
|
3262
|
+
export declare class Context extends ContextResource {
|
|
3263
|
+
}
|
|
2556
3264
|
export declare class ContextualizedEmbeddings extends ContextualizedEmbeddingsResource {
|
|
2557
3265
|
}
|
|
2558
3266
|
export declare class Decisions extends DecisionsResource {
|
|
@@ -2563,6 +3271,8 @@ export declare class Files extends FilesResource {
|
|
|
2563
3271
|
}
|
|
2564
3272
|
export declare class Models extends ModelsResource {
|
|
2565
3273
|
}
|
|
3274
|
+
export declare class Monitors extends MonitorsResource {
|
|
3275
|
+
}
|
|
2566
3276
|
export declare class Responses extends ResponsesResource {
|
|
2567
3277
|
}
|
|
2568
3278
|
export declare class Search extends SearchResource {
|
|
@@ -2579,6 +3289,11 @@ export type ChatMessageInput = ChatMessageInputInput;
|
|
|
2579
3289
|
export type ChatMessageOutput = ChatMessageOutputOutput;
|
|
2580
3290
|
export type Choice = ChoiceOutput;
|
|
2581
3291
|
export type ContentPart = ContentPartOutput;
|
|
3292
|
+
export type ContextCreateParams = ContextRequestInput;
|
|
3293
|
+
export type ContextCreateResponse = Awaited<ReturnType<ContextResource["create"]>>;
|
|
3294
|
+
export type ContextDocument = ContextDocumentOutput;
|
|
3295
|
+
export type ContextMetadata = ContextMetadataOutput;
|
|
3296
|
+
export type ContextStatus = ContextStatusOutput;
|
|
2582
3297
|
export type ContextualizedEmbeddingCreateParams = ContextualizedEmbeddingsRequestInput;
|
|
2583
3298
|
export type ContextualizedEmbeddingCreateResponse = ContextualizedEmbeddingsResponseOutput;
|
|
2584
3299
|
export type ContextualizedEmbeddingObject = ContextualizedEmbeddingObjectOutput;
|
|
@@ -2605,6 +3320,19 @@ export type JsonSchemaFormat = JSONSchemaFormatInput;
|
|
|
2605
3320
|
export type ManagedSkill = ManagedSkillOutput;
|
|
2606
3321
|
export type Model = ModelOutput;
|
|
2607
3322
|
export type ModelListResponse = Awaited<ReturnType<ModelsResource["list"]>>;
|
|
3323
|
+
export type Monitor = MonitorOutput;
|
|
3324
|
+
export type MonitorChangesDetectedEvent = MonitorChangesDetectedEventOutput;
|
|
3325
|
+
export type MonitorCreateParams = CreateMonitorRequestInput;
|
|
3326
|
+
export type MonitorDeleteResponse = DeleteMonitorResponseOutput;
|
|
3327
|
+
export type MonitorEvent = MonitorEventOutput;
|
|
3328
|
+
export type MonitorListResponse = MonitorListOutput;
|
|
3329
|
+
export type MonitorPausedEvent = MonitorPausedEventOutput;
|
|
3330
|
+
export type MonitorRun = MonitorRunOutput;
|
|
3331
|
+
export type MonitorRunCompletedEvent = MonitorRunCompletedEventOutput;
|
|
3332
|
+
export type MonitorRunListResponse = MonitorRunListOutput;
|
|
3333
|
+
export type MonitorUpdateParams = UpdateMonitorRequestInput;
|
|
3334
|
+
export type MonitorWebhookTestEvent = MonitorWebhookTestEventOutput;
|
|
3335
|
+
export type MonitorWebhookTestResponse = MonitorWebhookTestOutput;
|
|
2608
3336
|
export type OutputItem = OutputItemOutput;
|
|
2609
3337
|
export type ResponseCancelResponse = Awaited<ReturnType<ResponsesResource["cancel"]>>;
|
|
2610
3338
|
export type ResponseCreateParams = ResponsesRequestInput;
|
|
@@ -2686,6 +3414,13 @@ export declare namespace Chat {
|
|
|
2686
3414
|
};
|
|
2687
3415
|
}
|
|
2688
3416
|
}
|
|
3417
|
+
export declare namespace Context {
|
|
3418
|
+
type ContextCreateParams = ContextRequestInput;
|
|
3419
|
+
type ContextCreateResponse = Awaited<ReturnType<ContextResource["create"]>>;
|
|
3420
|
+
type ContextDocument = ContextDocumentOutput;
|
|
3421
|
+
type ContextMetadata = ContextMetadataOutput;
|
|
3422
|
+
type ContextStatus = ContextStatusOutput;
|
|
3423
|
+
}
|
|
2689
3424
|
export declare namespace ContextualizedEmbeddings {
|
|
2690
3425
|
type ContextualizedEmbeddingCreateParams = ContextualizedEmbeddingsRequestInput;
|
|
2691
3426
|
type ContextualizedEmbeddingCreateResponse = ContextualizedEmbeddingsResponseOutput;
|
|
@@ -2710,6 +3445,32 @@ export declare namespace Models {
|
|
|
2710
3445
|
type Model = ModelOutput;
|
|
2711
3446
|
type ModelListResponse = Awaited<ReturnType<ModelsResource["list"]>>;
|
|
2712
3447
|
}
|
|
3448
|
+
export declare namespace Monitors {
|
|
3449
|
+
class Runs extends MonitorsRunsResource {
|
|
3450
|
+
}
|
|
3451
|
+
class Webhook extends MonitorsWebhookResource {
|
|
3452
|
+
}
|
|
3453
|
+
type Monitor = MonitorOutput;
|
|
3454
|
+
type MonitorChangesDetectedEvent = MonitorChangesDetectedEventOutput;
|
|
3455
|
+
type MonitorCreateParams = CreateMonitorRequestInput;
|
|
3456
|
+
type MonitorDeleteResponse = DeleteMonitorResponseOutput;
|
|
3457
|
+
type MonitorEvent = MonitorEventOutput;
|
|
3458
|
+
type MonitorListResponse = MonitorListOutput;
|
|
3459
|
+
type MonitorPausedEvent = MonitorPausedEventOutput;
|
|
3460
|
+
type MonitorRun = MonitorRunOutput;
|
|
3461
|
+
type MonitorRunCompletedEvent = MonitorRunCompletedEventOutput;
|
|
3462
|
+
type MonitorRunListResponse = MonitorRunListOutput;
|
|
3463
|
+
type MonitorUpdateParams = UpdateMonitorRequestInput;
|
|
3464
|
+
type MonitorWebhookTestEvent = MonitorWebhookTestEventOutput;
|
|
3465
|
+
type MonitorWebhookTestResponse = MonitorWebhookTestOutput;
|
|
3466
|
+
namespace Runs {
|
|
3467
|
+
type MonitorRun = MonitorRunOutput;
|
|
3468
|
+
type MonitorRunListResponse = MonitorRunListOutput;
|
|
3469
|
+
}
|
|
3470
|
+
namespace Webhook {
|
|
3471
|
+
type MonitorWebhookTestResponse = MonitorWebhookTestOutput;
|
|
3472
|
+
}
|
|
3473
|
+
}
|
|
2713
3474
|
export declare namespace Responses {
|
|
2714
3475
|
class Files extends ResponsesFilesResource {
|
|
2715
3476
|
}
|