@perplexity-ai/perplexity_ai 0.38.8 → 0.39.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 +15 -0
- package/dist/generated/api.d.ts +358 -3
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +144 -18
- package/dist/generated/api.js.map +1 -1
- package/dist/generated/runtime.d.ts +7 -0
- package/dist/generated/runtime.d.ts.map +1 -1
- package/dist/generated/runtime.js +113 -0
- package/dist/generated/runtime.js.map +1 -1
- package/dist/resources/client.d.ts +21 -0
- package/dist/resources/client.d.ts.map +1 -1
- package/dist/resources/client.js +8 -2
- package/dist/resources/client.js.map +1 -1
- package/dist/resources/decisions.d.ts +7 -0
- package/dist/resources/decisions.d.ts.map +1 -0
- package/dist/resources/decisions.js +3 -0
- package/dist/resources/decisions.js.map +1 -0
- package/dist/resources/index.d.ts +3 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +3 -0
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/models.d.ts +5 -0
- package/dist/resources/models.d.ts.map +1 -0
- package/dist/resources/models.js +3 -0
- package/dist/resources/models.js.map +1 -0
- package/dist/resources/shared.d.ts +12 -0
- package/dist/resources/shared.d.ts.map +1 -1
- package/dist/resources/skills/index.d.ts +3 -0
- package/dist/resources/skills/index.d.ts.map +1 -0
- package/dist/resources/skills/index.js +3 -0
- package/dist/resources/skills/index.js.map +1 -0
- package/dist/resources/skills/revisions.d.ts +5 -0
- package/dist/resources/skills/revisions.d.ts.map +1 -0
- package/dist/resources/skills/revisions.js +3 -0
- package/dist/resources/skills/revisions.js.map +1 -0
- package/dist/resources/skills/skills.d.ts +9 -0
- package/dist/resources/skills/skills.d.ts.map +1 -0
- package/dist/resources/skills/skills.js +3 -0
- package/dist/resources/skills/skills.js.map +1 -0
- package/dist/resources/skills.d.ts +2 -0
- package/dist/resources/skills.d.ts.map +1 -0
- package/dist/resources/skills.js +2 -0
- package/dist/resources/skills.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/generated/api.ts +476 -25
- package/src/generated/runtime.ts +129 -0
- package/src/resources/client.ts +26 -2
- package/src/resources/decisions.ts +6 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/models.ts +4 -0
- package/src/resources/shared.ts +12 -0
- package/src/resources/skills/index.ts +2 -0
- package/src/resources/skills/revisions.ts +4 -0
- package/src/resources/skills/skills.ts +8 -0
- package/src/resources/skills.ts +1 -0
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.39.0](https://github.com/perplexityai/perplexity-node/compare/v0.38.8...v0.39.0) (2026-10-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add Agent model catalog ([0e67ccb](https://github.com/perplexityai/perplexity-node/commit/0e67ccbc1812aa610e958733361982611deebed2))
|
|
9
|
+
* add Decisions API ([3795f06](https://github.com/perplexityai/perplexity-node/commit/3795f06ea165c9e131474faae2852b417a4efb55))
|
|
10
|
+
* **api:** add custom Skill management ([1bce8e5](https://github.com/perplexityai/perplexity-node/commit/1bce8e55e7e72eb34019d027532879b35b9eede2))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* support Agent cache controls and extraction usage ([9967ea8](https://github.com/perplexityai/perplexity-node/commit/9967ea8f54cfad1255c8241c61e6e8a9d63deafe))
|
|
16
|
+
* type background response stream reconnection ([2d5bb13](https://github.com/perplexityai/perplexity-node/commit/2d5bb135adc16d9d1cbeba49f9f2e77fcbf92aff))
|
|
17
|
+
|
|
3
18
|
## [0.38.8](https://github.com/perplexityai/perplexity-node/compare/v0.38.7...v0.38.8) (2026-10-07)
|
|
4
19
|
|
|
5
20
|
|
package/dist/generated/api.d.ts
CHANGED
|
@@ -538,6 +538,110 @@ export type DateFiltersOutput = {
|
|
|
538
538
|
search_before_date_filter?: DateOutput;
|
|
539
539
|
search_recency_filter?: SearchRecencyFilterOutput;
|
|
540
540
|
};
|
|
541
|
+
export type DecisionAnswerInput = DecisionNoulAnswerInput | DecisionScoreAnswerInput | DecisionChoiceAnswerInput;
|
|
542
|
+
export type DecisionAnswerOutput = DecisionNoulAnswerOutput | DecisionScoreAnswerOutput | DecisionChoiceAnswerOutput;
|
|
543
|
+
export type DecisionChoiceAnswerInput = {
|
|
544
|
+
choice: string;
|
|
545
|
+
confidence: number;
|
|
546
|
+
probabilities: {} & Record<string, number>;
|
|
547
|
+
type: "choice";
|
|
548
|
+
};
|
|
549
|
+
export type DecisionChoiceAnswerOutput = {
|
|
550
|
+
choice: string;
|
|
551
|
+
confidence: number;
|
|
552
|
+
probabilities: {} & Record<string, number>;
|
|
553
|
+
type: "choice";
|
|
554
|
+
};
|
|
555
|
+
export type DecisionChoiceQuestionInput = {
|
|
556
|
+
criteria: {} & Record<string, string | ({} & Record<string, unknown>) | unknown[] | null>;
|
|
557
|
+
instructions?: string | ({} & Record<string, unknown>) | unknown[] | null;
|
|
558
|
+
type: "choice";
|
|
559
|
+
};
|
|
560
|
+
export type DecisionChoiceQuestionOutput = {
|
|
561
|
+
criteria: {} & Record<string, string | ({} & Record<string, unknown>) | unknown[] | null>;
|
|
562
|
+
instructions?: string | ({} & Record<string, unknown>) | unknown[] | null;
|
|
563
|
+
type: "choice";
|
|
564
|
+
};
|
|
565
|
+
export type DecisionNoulAnswerInput = {
|
|
566
|
+
noul: number;
|
|
567
|
+
type: "noul";
|
|
568
|
+
};
|
|
569
|
+
export type DecisionNoulAnswerOutput = {
|
|
570
|
+
noul: number;
|
|
571
|
+
type: "noul";
|
|
572
|
+
};
|
|
573
|
+
export type DecisionNoulCriteriaInput = {
|
|
574
|
+
false?: string | ({} & Record<string, unknown>) | unknown[] | null;
|
|
575
|
+
true?: string | ({} & Record<string, unknown>) | unknown[] | null;
|
|
576
|
+
} | null;
|
|
577
|
+
export type DecisionNoulCriteriaOutput = {
|
|
578
|
+
false?: string | ({} & Record<string, unknown>) | unknown[] | null;
|
|
579
|
+
true?: string | ({} & Record<string, unknown>) | unknown[] | null;
|
|
580
|
+
} | null;
|
|
581
|
+
export type DecisionNoulQuestionInput = {
|
|
582
|
+
criteria?: DecisionNoulCriteriaInput;
|
|
583
|
+
instructions?: string | ({} & Record<string, unknown>) | unknown[] | null;
|
|
584
|
+
type: "noul";
|
|
585
|
+
};
|
|
586
|
+
export type DecisionNoulQuestionOutput = {
|
|
587
|
+
criteria?: DecisionNoulCriteriaOutput;
|
|
588
|
+
instructions?: string | ({} & Record<string, unknown>) | unknown[] | null;
|
|
589
|
+
type: "noul";
|
|
590
|
+
};
|
|
591
|
+
export type DecisionQuestionInput = DecisionNoulQuestionInput | DecisionChoiceQuestionInput | DecisionScoreQuestionInput;
|
|
592
|
+
export type DecisionQuestionOutput = DecisionNoulQuestionOutput | DecisionChoiceQuestionOutput | DecisionScoreQuestionOutput;
|
|
593
|
+
export type DecisionScoreAnswerInput = {
|
|
594
|
+
confidence: number;
|
|
595
|
+
legend: {} & Record<string, string | ({} & Record<string, unknown>) | unknown[]>;
|
|
596
|
+
probabilities: {} & Record<string, number>;
|
|
597
|
+
score: number;
|
|
598
|
+
type: "score";
|
|
599
|
+
};
|
|
600
|
+
export type DecisionScoreAnswerOutput = {
|
|
601
|
+
confidence: number;
|
|
602
|
+
legend: {} & Record<string, string | ({} & Record<string, unknown>) | unknown[]>;
|
|
603
|
+
probabilities: {} & Record<string, number>;
|
|
604
|
+
score: number;
|
|
605
|
+
type: "score";
|
|
606
|
+
};
|
|
607
|
+
export type DecisionScoreQuestionInput = {
|
|
608
|
+
criteria: (string | ({} & Record<string, unknown>) | unknown[])[];
|
|
609
|
+
instructions?: string | ({} & Record<string, unknown>) | unknown[] | null;
|
|
610
|
+
type: "score";
|
|
611
|
+
};
|
|
612
|
+
export type DecisionScoreQuestionOutput = {
|
|
613
|
+
criteria: (string | ({} & Record<string, unknown>) | unknown[])[];
|
|
614
|
+
instructions?: string | ({} & Record<string, unknown>) | unknown[] | null;
|
|
615
|
+
type: "score";
|
|
616
|
+
};
|
|
617
|
+
export type DecisionsRequestInput = {
|
|
618
|
+
model: string;
|
|
619
|
+
questions: {} & Record<string, DecisionQuestionInput>;
|
|
620
|
+
state: string | ({} & Record<string, unknown>) | unknown[];
|
|
621
|
+
};
|
|
622
|
+
export type DecisionsRequestOutput = {
|
|
623
|
+
model: string;
|
|
624
|
+
questions: {} & Record<string, DecisionQuestionOutput>;
|
|
625
|
+
state: string | ({} & Record<string, unknown>) | unknown[];
|
|
626
|
+
};
|
|
627
|
+
export type DecisionsResponseInput = {
|
|
628
|
+
answers: {} & Record<string, DecisionAnswerInput>;
|
|
629
|
+
model: string;
|
|
630
|
+
usage: DecisionUsageInput;
|
|
631
|
+
};
|
|
632
|
+
export type DecisionsResponseOutput = {
|
|
633
|
+
answers: {} & Record<string, DecisionAnswerOutput>;
|
|
634
|
+
model: string;
|
|
635
|
+
usage: DecisionUsageOutput;
|
|
636
|
+
};
|
|
637
|
+
export type DecisionUsageInput = {
|
|
638
|
+
input_tokens: number;
|
|
639
|
+
output_tokens: number;
|
|
640
|
+
};
|
|
641
|
+
export type DecisionUsageOutput = {
|
|
642
|
+
input_tokens: number;
|
|
643
|
+
output_tokens: number;
|
|
644
|
+
};
|
|
541
645
|
export type EmbeddingObjectInput = {
|
|
542
646
|
embedding?: string;
|
|
543
647
|
index?: number;
|
|
@@ -875,12 +979,22 @@ export type InputItemOutput = InputMessageOutput | FunctionCallOutputInputOutput
|
|
|
875
979
|
export type InputMessageInput = {
|
|
876
980
|
content: InputContentInput;
|
|
877
981
|
role: "user" | "assistant" | "system" | "developer";
|
|
878
|
-
type
|
|
982
|
+
type?: "message";
|
|
879
983
|
};
|
|
880
984
|
export type InputMessageOutput = {
|
|
881
985
|
content: InputContentOutput;
|
|
882
986
|
role: "user" | "assistant" | "system" | "developer";
|
|
883
|
-
type
|
|
987
|
+
type?: "message";
|
|
988
|
+
};
|
|
989
|
+
export type InputTokensDetailsInput = {
|
|
990
|
+
cache_creation_input_tokens?: number;
|
|
991
|
+
cache_read_input_tokens?: number;
|
|
992
|
+
cached_tokens: number;
|
|
993
|
+
};
|
|
994
|
+
export type InputTokensDetailsOutput = {
|
|
995
|
+
cache_creation_input_tokens?: number;
|
|
996
|
+
cache_read_input_tokens?: number;
|
|
997
|
+
cached_tokens: number;
|
|
884
998
|
};
|
|
885
999
|
export type JSONSchemaInput = {
|
|
886
1000
|
description?: string | null;
|
|
@@ -914,6 +1028,24 @@ export type ListAsyncApiChatCompletionsResponseOutput = {
|
|
|
914
1028
|
next_token?: string | null;
|
|
915
1029
|
requests: AsyncApiChatCompletionsResponseSummaryOutput[];
|
|
916
1030
|
};
|
|
1031
|
+
export type ManagedSkillInput = {
|
|
1032
|
+
created_at?: string;
|
|
1033
|
+
description?: string;
|
|
1034
|
+
latest_revision?: string;
|
|
1035
|
+
name?: string;
|
|
1036
|
+
revision?: string;
|
|
1037
|
+
skill_id: string;
|
|
1038
|
+
updated_at?: string;
|
|
1039
|
+
};
|
|
1040
|
+
export type ManagedSkillOutput = {
|
|
1041
|
+
created_at?: string;
|
|
1042
|
+
description?: string;
|
|
1043
|
+
latest_revision?: string;
|
|
1044
|
+
name?: string;
|
|
1045
|
+
revision?: string;
|
|
1046
|
+
skill_id: string;
|
|
1047
|
+
updated_at?: string;
|
|
1048
|
+
};
|
|
917
1049
|
export type McpApprovalRequestInputInput = {
|
|
918
1050
|
arguments: string;
|
|
919
1051
|
connector_id?: string;
|
|
@@ -1088,6 +1220,26 @@ export type MessageOutputItemOutput = {
|
|
|
1088
1220
|
status: StatusOutput;
|
|
1089
1221
|
type: "message";
|
|
1090
1222
|
};
|
|
1223
|
+
export type ModelInput = {
|
|
1224
|
+
created: number;
|
|
1225
|
+
id: string;
|
|
1226
|
+
object: "model";
|
|
1227
|
+
owned_by: string;
|
|
1228
|
+
};
|
|
1229
|
+
export type ModelOutput = {
|
|
1230
|
+
created: number;
|
|
1231
|
+
id: string;
|
|
1232
|
+
object: "model";
|
|
1233
|
+
owned_by: string;
|
|
1234
|
+
};
|
|
1235
|
+
export type ModelListInput = {
|
|
1236
|
+
data: ModelInput[];
|
|
1237
|
+
object: "list";
|
|
1238
|
+
};
|
|
1239
|
+
export type ModelListOutput = {
|
|
1240
|
+
data: ModelOutput[];
|
|
1241
|
+
object: "list";
|
|
1242
|
+
};
|
|
1091
1243
|
export type NamespaceToolInput = {
|
|
1092
1244
|
description: string;
|
|
1093
1245
|
name: string;
|
|
@@ -1138,6 +1290,12 @@ export type OutputItemDoneEventOutput = {
|
|
|
1138
1290
|
sequence_number: number;
|
|
1139
1291
|
type: "response.output_item.done";
|
|
1140
1292
|
};
|
|
1293
|
+
export type OutputTokensDetailsInput = {
|
|
1294
|
+
reasoning_tokens: number;
|
|
1295
|
+
};
|
|
1296
|
+
export type OutputTokensDetailsOutput = {
|
|
1297
|
+
reasoning_tokens: number;
|
|
1298
|
+
};
|
|
1141
1299
|
export type ParameterSpecInput = {
|
|
1142
1300
|
additional_properties?: boolean | null;
|
|
1143
1301
|
properties: {} & Record<string, unknown>;
|
|
@@ -1400,8 +1558,10 @@ export type ResponsesRequestInput = {
|
|
|
1400
1558
|
preset?: string;
|
|
1401
1559
|
previous_response_id?: string;
|
|
1402
1560
|
profile?: ProfileReferenceInput;
|
|
1561
|
+
prompt_cache_key?: string;
|
|
1403
1562
|
reasoning?: ReasoningConfigInput;
|
|
1404
1563
|
response_format?: ResponseFormatInput;
|
|
1564
|
+
service_tier?: "auto" | "default" | "flex" | "priority" | "fast";
|
|
1405
1565
|
skills?: SkillInput[];
|
|
1406
1566
|
store?: boolean;
|
|
1407
1567
|
stream?: boolean;
|
|
@@ -1422,8 +1582,10 @@ export type ResponsesRequestOutput = {
|
|
|
1422
1582
|
preset?: string;
|
|
1423
1583
|
previous_response_id?: string;
|
|
1424
1584
|
profile?: ProfileReferenceOutput;
|
|
1585
|
+
prompt_cache_key?: string;
|
|
1425
1586
|
reasoning?: ReasoningConfigOutput;
|
|
1426
1587
|
response_format?: ResponseFormatOutput;
|
|
1588
|
+
service_tier?: "auto" | "default" | "flex" | "priority" | "fast";
|
|
1427
1589
|
skills?: SkillOutput[];
|
|
1428
1590
|
store?: boolean;
|
|
1429
1591
|
stream?: boolean;
|
|
@@ -1441,6 +1603,8 @@ export type ResponsesResponseInput = {
|
|
|
1441
1603
|
object: ResponsesObjectTypeInput;
|
|
1442
1604
|
output: OutputItemInput[];
|
|
1443
1605
|
previous_response_id?: string | null;
|
|
1606
|
+
prompt_cache_key?: string | null;
|
|
1607
|
+
service_tier?: string;
|
|
1444
1608
|
status: StatusInput;
|
|
1445
1609
|
store?: boolean;
|
|
1446
1610
|
usage?: ResponsesUsageInput;
|
|
@@ -1454,6 +1618,8 @@ export type ResponsesResponseOutput = {
|
|
|
1454
1618
|
object: ResponsesObjectTypeOutput;
|
|
1455
1619
|
output: OutputItemOutput[];
|
|
1456
1620
|
previous_response_id?: string | null;
|
|
1621
|
+
prompt_cache_key?: string | null;
|
|
1622
|
+
service_tier?: string;
|
|
1457
1623
|
status: StatusOutput;
|
|
1458
1624
|
store?: boolean;
|
|
1459
1625
|
usage?: ResponsesUsageOutput;
|
|
@@ -1700,6 +1866,30 @@ export type ShareFileOutputItemOutput = {
|
|
|
1700
1866
|
};
|
|
1701
1867
|
export type SkillInput = BuiltinSkillInput | InlineSkillInput | CustomSkillInput;
|
|
1702
1868
|
export type SkillOutput = BuiltinSkillOutput | InlineSkillOutput | CustomSkillOutput;
|
|
1869
|
+
export type SkillBundleInput = {
|
|
1870
|
+
file: Blob;
|
|
1871
|
+
};
|
|
1872
|
+
export type SkillBundleOutput = {
|
|
1873
|
+
file: string;
|
|
1874
|
+
};
|
|
1875
|
+
export type SkillDownloadInput = {
|
|
1876
|
+
download_url: string;
|
|
1877
|
+
name?: string;
|
|
1878
|
+
revision?: string;
|
|
1879
|
+
};
|
|
1880
|
+
export type SkillDownloadOutput = {
|
|
1881
|
+
download_url: string;
|
|
1882
|
+
name?: string;
|
|
1883
|
+
revision?: string;
|
|
1884
|
+
};
|
|
1885
|
+
export type SkillListInput = {
|
|
1886
|
+
next_page_token?: string;
|
|
1887
|
+
skills: SkillSummaryInput[];
|
|
1888
|
+
};
|
|
1889
|
+
export type SkillListOutput = {
|
|
1890
|
+
next_page_token?: string;
|
|
1891
|
+
skills: SkillSummaryOutput[];
|
|
1892
|
+
};
|
|
1703
1893
|
export type SkillLoadedOutputItemInput = {
|
|
1704
1894
|
name: string;
|
|
1705
1895
|
type: "skill_loaded";
|
|
@@ -1708,6 +1898,38 @@ export type SkillLoadedOutputItemOutput = {
|
|
|
1708
1898
|
name: string;
|
|
1709
1899
|
type: "skill_loaded";
|
|
1710
1900
|
};
|
|
1901
|
+
export type SkillRevisionInput = {
|
|
1902
|
+
created_at?: string;
|
|
1903
|
+
name?: string;
|
|
1904
|
+
revision: string;
|
|
1905
|
+
};
|
|
1906
|
+
export type SkillRevisionOutput = {
|
|
1907
|
+
created_at?: string;
|
|
1908
|
+
name?: string;
|
|
1909
|
+
revision: string;
|
|
1910
|
+
};
|
|
1911
|
+
export type SkillRevisionListInput = {
|
|
1912
|
+
next_page_token?: string;
|
|
1913
|
+
revisions: SkillRevisionInput[];
|
|
1914
|
+
};
|
|
1915
|
+
export type SkillRevisionListOutput = {
|
|
1916
|
+
next_page_token?: string;
|
|
1917
|
+
revisions: SkillRevisionOutput[];
|
|
1918
|
+
};
|
|
1919
|
+
export type SkillSummaryInput = {
|
|
1920
|
+
created_at?: string;
|
|
1921
|
+
name?: string;
|
|
1922
|
+
revision?: string;
|
|
1923
|
+
skill_id: string;
|
|
1924
|
+
updated_at?: string;
|
|
1925
|
+
};
|
|
1926
|
+
export type SkillSummaryOutput = {
|
|
1927
|
+
created_at?: string;
|
|
1928
|
+
name?: string;
|
|
1929
|
+
revision?: string;
|
|
1930
|
+
skill_id: string;
|
|
1931
|
+
updated_at?: string;
|
|
1932
|
+
};
|
|
1711
1933
|
export type StatusInput = "completed" | "failed" | "in_progress" | "queued" | "cancelled" | "requires_action";
|
|
1712
1934
|
export type StatusOutput = "completed" | "failed" | "in_progress" | "queued" | "cancelled" | "requires_action";
|
|
1713
1935
|
export type TextDeltaEventInput = {
|
|
@@ -1755,10 +1977,14 @@ export type ToolCallOutput = {
|
|
|
1755
1977
|
type?: "function" | null;
|
|
1756
1978
|
};
|
|
1757
1979
|
export type ToolCallDetailsInput = {
|
|
1980
|
+
cost_usd?: number;
|
|
1758
1981
|
invocation?: number;
|
|
1982
|
+
token_usage?: ToolCallTokenUsageInput[];
|
|
1759
1983
|
};
|
|
1760
1984
|
export type ToolCallDetailsOutput = {
|
|
1985
|
+
cost_usd?: number;
|
|
1761
1986
|
invocation?: number;
|
|
1987
|
+
token_usage?: ToolCallTokenUsageOutput[];
|
|
1762
1988
|
};
|
|
1763
1989
|
export type ToolCallFunctionInput = {
|
|
1764
1990
|
arguments?: string | null;
|
|
@@ -1768,6 +1994,20 @@ export type ToolCallFunctionOutput = {
|
|
|
1768
1994
|
arguments?: string | null;
|
|
1769
1995
|
name?: string | null;
|
|
1770
1996
|
};
|
|
1997
|
+
export type ToolCallTokenUsageInput = {
|
|
1998
|
+
input_tokens: number;
|
|
1999
|
+
input_tokens_details: InputTokensDetailsInput;
|
|
2000
|
+
model?: string;
|
|
2001
|
+
output_tokens: number;
|
|
2002
|
+
output_tokens_details: OutputTokensDetailsInput;
|
|
2003
|
+
};
|
|
2004
|
+
export type ToolCallTokenUsageOutput = {
|
|
2005
|
+
input_tokens: number;
|
|
2006
|
+
input_tokens_details: InputTokensDetailsOutput;
|
|
2007
|
+
model?: string;
|
|
2008
|
+
output_tokens: number;
|
|
2009
|
+
output_tokens_details: OutputTokensDetailsOutput;
|
|
2010
|
+
};
|
|
1771
2011
|
export type ToolChoiceInput = ("none" | "auto" | "required") | ({} & Record<string, unknown>);
|
|
1772
2012
|
export type ToolChoiceOutput = ("none" | "auto" | "required") | ({} & Record<string, unknown>);
|
|
1773
2013
|
export type ToolSearchOutputItemInput = {
|
|
@@ -1972,6 +2212,14 @@ export declare class ResponsesFilesResource {
|
|
|
1972
2212
|
}, options?: RequestOptions): APIPromise<Response>;
|
|
1973
2213
|
list(responseID: string, options?: RequestOptions): APIPromise<ResponseFileListOutput>;
|
|
1974
2214
|
}
|
|
2215
|
+
export declare class SkillsRevisionsResource {
|
|
2216
|
+
private readonly _client;
|
|
2217
|
+
constructor(client: SdkTransport);
|
|
2218
|
+
list(skillID: string, params?: {
|
|
2219
|
+
limit?: number;
|
|
2220
|
+
page_token?: string;
|
|
2221
|
+
}, options?: RequestOptions): APIPromise<SkillRevisionListOutput>;
|
|
2222
|
+
}
|
|
1975
2223
|
export declare class AsyncResource {
|
|
1976
2224
|
readonly chat: AsyncChatResource;
|
|
1977
2225
|
constructor(client: SdkTransport);
|
|
@@ -1989,11 +2237,21 @@ export declare class ContextualizedEmbeddingsResource {
|
|
|
1989
2237
|
constructor(client: SdkTransport);
|
|
1990
2238
|
create(body: ContextualizedEmbeddingsRequestInput, options?: RequestOptions): APIPromise<ContextualizedEmbeddingsResponseOutput>;
|
|
1991
2239
|
}
|
|
2240
|
+
export declare class DecisionsResource {
|
|
2241
|
+
private readonly _client;
|
|
2242
|
+
constructor(client: SdkTransport);
|
|
2243
|
+
create(body: DecisionsRequestInput, options?: RequestOptions): APIPromise<DecisionsResponseOutput>;
|
|
2244
|
+
}
|
|
1992
2245
|
export declare class EmbeddingsResource {
|
|
1993
2246
|
private readonly _client;
|
|
1994
2247
|
constructor(client: SdkTransport);
|
|
1995
2248
|
create(body: EmbeddingsRequestInput, options?: RequestOptions): APIPromise<EmbeddingsResponseOutput>;
|
|
1996
2249
|
}
|
|
2250
|
+
export declare class ModelsResource {
|
|
2251
|
+
private readonly _client;
|
|
2252
|
+
constructor(client: SdkTransport);
|
|
2253
|
+
list(options?: RequestOptions): APIPromise<ModelListOutput>;
|
|
2254
|
+
}
|
|
1997
2255
|
export declare class ResponsesResource {
|
|
1998
2256
|
private readonly _client;
|
|
1999
2257
|
readonly files: ResponsesFilesResource;
|
|
@@ -2013,23 +2271,78 @@ export declare class ResponsesResource {
|
|
|
2013
2271
|
create(body: ResponsesRequestInput, options?: RequestOptions): APIPromise<(ResponsesResponseOutput & {
|
|
2014
2272
|
output_text: string;
|
|
2015
2273
|
}) | Stream<ResponseStreamEventOutput>>;
|
|
2016
|
-
retrieve(responseID: string,
|
|
2274
|
+
retrieve(responseID: string, params?: Omit<{
|
|
2275
|
+
starting_after?: number;
|
|
2276
|
+
stream?: boolean;
|
|
2277
|
+
}, "stream"> & {
|
|
2278
|
+
stream?: false;
|
|
2279
|
+
}, options?: RequestOptions): APIPromise<ResponsesResponseOutput & {
|
|
2280
|
+
output_text: string;
|
|
2281
|
+
}>;
|
|
2282
|
+
retrieve(responseID: string, params: Omit<Required<{
|
|
2283
|
+
starting_after?: number;
|
|
2284
|
+
stream?: boolean;
|
|
2285
|
+
}>, "stream"> & {
|
|
2286
|
+
stream: true;
|
|
2287
|
+
}, options?: RequestOptions): APIPromise<Stream<ResponseStreamEventOutput>>;
|
|
2288
|
+
retrieve(responseID: string, params: Omit<Required<{
|
|
2289
|
+
starting_after?: number;
|
|
2290
|
+
stream?: boolean;
|
|
2291
|
+
}>, "stream"> & {
|
|
2292
|
+
stream: boolean;
|
|
2293
|
+
}, options?: RequestOptions): APIPromise<(ResponsesResponseOutput & {
|
|
2294
|
+
output_text: string;
|
|
2295
|
+
}) | Stream<ResponseStreamEventOutput>>;
|
|
2296
|
+
retrieve(responseID: string, params?: Omit<RequestOptions, "__binaryResponse" | "body" | "defaultBaseURL" | "method" | "path"> & {
|
|
2297
|
+
starting_after?: never;
|
|
2298
|
+
}, options?: RequestOptions): APIPromise<ResponsesResponseOutput & {
|
|
2017
2299
|
output_text: string;
|
|
2018
2300
|
}>;
|
|
2301
|
+
retrieve(responseID: string, params?: {
|
|
2302
|
+
starting_after?: number;
|
|
2303
|
+
stream?: boolean;
|
|
2304
|
+
}, options?: RequestOptions): APIPromise<(ResponsesResponseOutput & {
|
|
2305
|
+
output_text: string;
|
|
2306
|
+
}) | Stream<ResponseStreamEventOutput>>;
|
|
2019
2307
|
}
|
|
2020
2308
|
export declare class SearchResource {
|
|
2021
2309
|
private readonly _client;
|
|
2022
2310
|
constructor(client: SdkTransport);
|
|
2023
2311
|
create(body: ApiSearchRequestInput, options?: RequestOptions): APIPromise<ApiSearchResponseOutput>;
|
|
2024
2312
|
}
|
|
2313
|
+
export declare class SkillsResource {
|
|
2314
|
+
private readonly _client;
|
|
2315
|
+
readonly revisions: SkillsRevisionsResource;
|
|
2316
|
+
constructor(client: SdkTransport);
|
|
2317
|
+
create(body: SkillBundleInput, options?: RequestOptions): APIPromise<ManagedSkillOutput>;
|
|
2318
|
+
delete(skillID: string, params: {
|
|
2319
|
+
expected_revision: string;
|
|
2320
|
+
}, options?: RequestOptions): APIPromise<void>;
|
|
2321
|
+
download(skillID: string, params?: {
|
|
2322
|
+
revision?: string;
|
|
2323
|
+
}, options?: RequestOptions): APIPromise<SkillDownloadOutput>;
|
|
2324
|
+
list(params?: {
|
|
2325
|
+
limit?: number;
|
|
2326
|
+
page_token?: string;
|
|
2327
|
+
}, options?: RequestOptions): APIPromise<SkillListOutput>;
|
|
2328
|
+
retrieve(skillID: string, params?: {
|
|
2329
|
+
revision?: string;
|
|
2330
|
+
}, options?: RequestOptions): APIPromise<ManagedSkillOutput>;
|
|
2331
|
+
update(skillID: string, body: SkillBundleInput, params: {
|
|
2332
|
+
expected_revision: string;
|
|
2333
|
+
}, options?: RequestOptions): APIPromise<ManagedSkillOutput>;
|
|
2334
|
+
}
|
|
2025
2335
|
export declare class PerplexitySdk {
|
|
2026
2336
|
readonly async: AsyncResource;
|
|
2027
2337
|
readonly browser: BrowserResource;
|
|
2028
2338
|
readonly chat: ChatResource;
|
|
2029
2339
|
readonly contextualizedEmbeddings: ContextualizedEmbeddingsResource;
|
|
2340
|
+
readonly decisions: DecisionsResource;
|
|
2030
2341
|
readonly embeddings: EmbeddingsResource;
|
|
2342
|
+
readonly models: ModelsResource;
|
|
2031
2343
|
readonly responses: ResponsesResource;
|
|
2032
2344
|
readonly search: SearchResource;
|
|
2345
|
+
readonly skills: SkillsResource;
|
|
2033
2346
|
constructor(client: SdkTransport);
|
|
2034
2347
|
}
|
|
2035
2348
|
export declare class Async extends AsyncResource {
|
|
@@ -2040,12 +2353,18 @@ export declare class Chat extends ChatResource {
|
|
|
2040
2353
|
}
|
|
2041
2354
|
export declare class ContextualizedEmbeddings extends ContextualizedEmbeddingsResource {
|
|
2042
2355
|
}
|
|
2356
|
+
export declare class Decisions extends DecisionsResource {
|
|
2357
|
+
}
|
|
2043
2358
|
export declare class Embeddings extends EmbeddingsResource {
|
|
2044
2359
|
}
|
|
2360
|
+
export declare class Models extends ModelsResource {
|
|
2361
|
+
}
|
|
2045
2362
|
export declare class Responses extends ResponsesResource {
|
|
2046
2363
|
}
|
|
2047
2364
|
export declare class Search extends SearchResource {
|
|
2048
2365
|
}
|
|
2366
|
+
export declare class Skills extends SkillsResource {
|
|
2367
|
+
}
|
|
2049
2368
|
export type Annotation = AnnotationOutput;
|
|
2050
2369
|
export type APIPublicSearchResult = ApiPublicSearchResultOutput;
|
|
2051
2370
|
export type BrowserSessionResponse = BrowserSessionResponseOutput;
|
|
@@ -2056,6 +2375,10 @@ export type ContentPart = ContentPartOutput;
|
|
|
2056
2375
|
export type ContextualizedEmbeddingCreateParams = ContextualizedEmbeddingsRequestInput;
|
|
2057
2376
|
export type ContextualizedEmbeddingCreateResponse = ContextualizedEmbeddingsResponseOutput;
|
|
2058
2377
|
export type ContextualizedEmbeddingObject = ContextualizedEmbeddingObjectOutput;
|
|
2378
|
+
export type DecisionAnswer = DecisionAnswerOutput;
|
|
2379
|
+
export type DecisionCreateParams = DecisionsRequestInput;
|
|
2380
|
+
export type DecisionCreateResponse = Awaited<ReturnType<DecisionsResource["create"]>>;
|
|
2381
|
+
export type DecisionQuestion = DecisionQuestionInput;
|
|
2059
2382
|
export type EmbeddingCreateParams = EmbeddingsRequestInput;
|
|
2060
2383
|
export type EmbeddingCreateResponse = EmbeddingsResponseOutput;
|
|
2061
2384
|
export type EmbeddingObject = EmbeddingObjectOutput;
|
|
@@ -2068,6 +2391,9 @@ export type ImageSearchResultsOutputItem = ImageSearchResultsOutputItemOutput;
|
|
|
2068
2391
|
export type ImageSearchTool = ImageSearchToolInput;
|
|
2069
2392
|
export type InputItem = InputItemInput;
|
|
2070
2393
|
export type JsonSchemaFormat = JSONSchemaFormatInput;
|
|
2394
|
+
export type ManagedSkill = ManagedSkillOutput;
|
|
2395
|
+
export type Model = ModelOutput;
|
|
2396
|
+
export type ModelListResponse = Awaited<ReturnType<ModelsResource["list"]>>;
|
|
2071
2397
|
export type OutputItem = OutputItemOutput;
|
|
2072
2398
|
export type ResponseCancelResponse = Awaited<ReturnType<ResponsesResource["cancel"]>>;
|
|
2073
2399
|
export type ResponseCreateParams = ResponsesRequestInput;
|
|
@@ -2086,6 +2412,11 @@ export type ResponsesUsage = ResponsesUsageOutput;
|
|
|
2086
2412
|
export type SearchCreateParams = ApiSearchRequestInput;
|
|
2087
2413
|
export type SearchCreateResponse = ApiSearchResponseOutput;
|
|
2088
2414
|
export type SearchResult = SearchResultOutput;
|
|
2415
|
+
export type SkillDownloadResponse = SkillDownloadOutput;
|
|
2416
|
+
export type SkillListResponse = SkillListOutput;
|
|
2417
|
+
export type SkillRevision = SkillRevisionOutput;
|
|
2418
|
+
export type SkillRevisionListResponse = SkillRevisionListOutput;
|
|
2419
|
+
export type SkillUploadParams = SkillBundleInput;
|
|
2089
2420
|
export type StreamChunk = CompletionResponseOutput;
|
|
2090
2421
|
export type UsageInfo = UsageInfoOutput;
|
|
2091
2422
|
export type UserLocation = UserLocationInput;
|
|
@@ -2143,10 +2474,20 @@ export declare namespace ContextualizedEmbeddings {
|
|
|
2143
2474
|
type ContextualizedEmbeddingCreateParams = ContextualizedEmbeddingsRequestInput;
|
|
2144
2475
|
type ContextualizedEmbeddingCreateResponse = ContextualizedEmbeddingsResponseOutput;
|
|
2145
2476
|
}
|
|
2477
|
+
export declare namespace Decisions {
|
|
2478
|
+
type DecisionAnswer = DecisionAnswerOutput;
|
|
2479
|
+
type DecisionCreateParams = DecisionsRequestInput;
|
|
2480
|
+
type DecisionCreateResponse = Awaited<ReturnType<DecisionsResource["create"]>>;
|
|
2481
|
+
type DecisionQuestion = DecisionQuestionInput;
|
|
2482
|
+
}
|
|
2146
2483
|
export declare namespace Embeddings {
|
|
2147
2484
|
type EmbeddingCreateParams = EmbeddingsRequestInput;
|
|
2148
2485
|
type EmbeddingCreateResponse = EmbeddingsResponseOutput;
|
|
2149
2486
|
}
|
|
2487
|
+
export declare namespace Models {
|
|
2488
|
+
type Model = ModelOutput;
|
|
2489
|
+
type ModelListResponse = Awaited<ReturnType<ModelsResource["list"]>>;
|
|
2490
|
+
}
|
|
2150
2491
|
export declare namespace Responses {
|
|
2151
2492
|
class Files extends ResponsesFilesResource {
|
|
2152
2493
|
}
|
|
@@ -2188,4 +2529,18 @@ export declare namespace Search {
|
|
|
2188
2529
|
type SearchCreateParams = ApiSearchRequestInput;
|
|
2189
2530
|
type SearchCreateResponse = ApiSearchResponseOutput;
|
|
2190
2531
|
}
|
|
2532
|
+
export declare namespace Skills {
|
|
2533
|
+
class Revisions extends SkillsRevisionsResource {
|
|
2534
|
+
}
|
|
2535
|
+
type ManagedSkill = ManagedSkillOutput;
|
|
2536
|
+
type SkillDownloadResponse = SkillDownloadOutput;
|
|
2537
|
+
type SkillListResponse = SkillListOutput;
|
|
2538
|
+
type SkillRevision = SkillRevisionOutput;
|
|
2539
|
+
type SkillRevisionListResponse = SkillRevisionListOutput;
|
|
2540
|
+
type SkillUploadParams = SkillBundleInput;
|
|
2541
|
+
namespace Revisions {
|
|
2542
|
+
type SkillRevision = SkillRevisionOutput;
|
|
2543
|
+
type SkillRevisionListResponse = SkillRevisionListOutput;
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2191
2546
|
//# sourceMappingURL=api.d.ts.map
|