@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/src/resources/client.ts
CHANGED
|
@@ -5,11 +5,13 @@ export interface ClientResources {
|
|
|
5
5
|
readonly batches: API.Batches;
|
|
6
6
|
readonly browser: API.Browser;
|
|
7
7
|
readonly chat: API.Chat;
|
|
8
|
+
readonly context: API.Context;
|
|
8
9
|
readonly contextualizedEmbeddings: API.ContextualizedEmbeddings;
|
|
9
10
|
readonly decisions: API.Decisions;
|
|
10
11
|
readonly embeddings: API.Embeddings;
|
|
11
12
|
readonly files: API.Files;
|
|
12
13
|
readonly models: API.Models;
|
|
14
|
+
readonly monitors: API.Monitors;
|
|
13
15
|
readonly responses: API.Responses;
|
|
14
16
|
readonly search: API.Search;
|
|
15
17
|
readonly skills: API.Skills;
|
|
@@ -19,11 +21,13 @@ export const clientResourceClasses = {
|
|
|
19
21
|
Batches: API.Batches,
|
|
20
22
|
Browser: API.Browser,
|
|
21
23
|
Chat: API.Chat,
|
|
24
|
+
Context: API.Context,
|
|
22
25
|
ContextualizedEmbeddings: API.ContextualizedEmbeddings,
|
|
23
26
|
Decisions: API.Decisions,
|
|
24
27
|
Embeddings: API.Embeddings,
|
|
25
28
|
Files: API.Files,
|
|
26
29
|
Models: API.Models,
|
|
30
|
+
Monitors: API.Monitors,
|
|
27
31
|
Responses: API.Responses,
|
|
28
32
|
Search: API.Search,
|
|
29
33
|
Skills: API.Skills
|
|
@@ -34,11 +38,13 @@ export function createClientResources(client: SdkTransport): ClientResources {
|
|
|
34
38
|
batches: new API.Batches(client),
|
|
35
39
|
browser: new API.Browser(client),
|
|
36
40
|
chat: new API.Chat(client),
|
|
41
|
+
context: new API.Context(client),
|
|
37
42
|
contextualizedEmbeddings: new API.ContextualizedEmbeddings(client),
|
|
38
43
|
decisions: new API.Decisions(client),
|
|
39
44
|
embeddings: new API.Embeddings(client),
|
|
40
45
|
files: new API.Files(client),
|
|
41
46
|
models: new API.Models(client),
|
|
47
|
+
monitors: new API.Monitors(client),
|
|
42
48
|
responses: new API.Responses(client),
|
|
43
49
|
search: new API.Search(client),
|
|
44
50
|
skills: new API.Skills(client)
|
|
@@ -60,6 +66,12 @@ declare module '../client.js' {
|
|
|
60
66
|
export type CompletionCreateParamsNonStreaming = API.Chat.CompletionCreateParamsNonStreaming;
|
|
61
67
|
export type CompletionCreateParamsStreaming = API.Chat.CompletionCreateParamsStreaming;
|
|
62
68
|
export type StreamChunk = API.Chat.StreamChunk;
|
|
69
|
+
export import Context = API.Context;
|
|
70
|
+
export type ContextCreateParams = API.Context.ContextCreateParams;
|
|
71
|
+
export type ContextCreateResponse = API.Context.ContextCreateResponse;
|
|
72
|
+
export type ContextDocument = API.Context.ContextDocument;
|
|
73
|
+
export type ContextMetadata = API.Context.ContextMetadata;
|
|
74
|
+
export type ContextStatus = API.Context.ContextStatus;
|
|
63
75
|
export import ContextualizedEmbeddings = API.ContextualizedEmbeddings;
|
|
64
76
|
export type ContextualizedEmbeddingCreateParams = API.ContextualizedEmbeddings.ContextualizedEmbeddingCreateParams;
|
|
65
77
|
export type ContextualizedEmbeddingCreateResponse = API.ContextualizedEmbeddings.ContextualizedEmbeddingCreateResponse;
|
|
@@ -79,6 +91,20 @@ declare module '../client.js' {
|
|
|
79
91
|
export import Models = API.Models;
|
|
80
92
|
export type Model = API.Models.Model;
|
|
81
93
|
export type ModelListResponse = API.Models.ModelListResponse;
|
|
94
|
+
export import Monitors = API.Monitors;
|
|
95
|
+
export type Monitor = API.Monitors.Monitor;
|
|
96
|
+
export type MonitorChangesDetectedEvent = API.Monitors.MonitorChangesDetectedEvent;
|
|
97
|
+
export type MonitorCreateParams = API.Monitors.MonitorCreateParams;
|
|
98
|
+
export type MonitorDeleteResponse = API.Monitors.MonitorDeleteResponse;
|
|
99
|
+
export type MonitorEvent = API.Monitors.MonitorEvent;
|
|
100
|
+
export type MonitorListResponse = API.Monitors.MonitorListResponse;
|
|
101
|
+
export type MonitorPausedEvent = API.Monitors.MonitorPausedEvent;
|
|
102
|
+
export type MonitorRun = API.Monitors.MonitorRun;
|
|
103
|
+
export type MonitorRunCompletedEvent = API.Monitors.MonitorRunCompletedEvent;
|
|
104
|
+
export type MonitorRunListResponse = API.Monitors.MonitorRunListResponse;
|
|
105
|
+
export type MonitorUpdateParams = API.Monitors.MonitorUpdateParams;
|
|
106
|
+
export type MonitorWebhookTestEvent = API.Monitors.MonitorWebhookTestEvent;
|
|
107
|
+
export type MonitorWebhookTestResponse = API.Monitors.MonitorWebhookTestResponse;
|
|
82
108
|
export import Responses = API.Responses;
|
|
83
109
|
export type Annotation = API.Responses.Annotation;
|
|
84
110
|
export type ContentPart = API.Responses.ContentPart;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as API from '../generated/api.js';
|
|
2
|
+
export import Context = API.Context;
|
|
3
|
+
export type ContextCreateParams = API.Context.ContextCreateParams;
|
|
4
|
+
export type ContextCreateResponse = API.Context.ContextCreateResponse;
|
|
5
|
+
export type ContextDocument = API.Context.ContextDocument;
|
|
6
|
+
export type ContextMetadata = API.Context.ContextMetadata;
|
|
7
|
+
export type ContextStatus = API.Context.ContextStatus;
|
package/src/resources/index.ts
CHANGED
|
@@ -3,11 +3,13 @@ export { Async } from './async/async.js';
|
|
|
3
3
|
export { Batches, type Batch, type BatchCreateParams, type BatchListResponse } from './batches.js';
|
|
4
4
|
export { Browser, type SessionCreateParams } from './browser/browser.js';
|
|
5
5
|
export { Chat, type CompletionCreateParams, type CompletionCreateParamsBase, type CompletionCreateParamsNonStreaming, type CompletionCreateParamsStreaming, type StreamChunk } from './chat/chat.js';
|
|
6
|
+
export { Context, type ContextCreateParams, type ContextCreateResponse, type ContextDocument, type ContextMetadata, type ContextStatus } from './context.js';
|
|
6
7
|
export { ContextualizedEmbeddings, type ContextualizedEmbeddingCreateParams, type ContextualizedEmbeddingCreateResponse } from './contextualized-embeddings.js';
|
|
7
8
|
export { Decisions, type DecisionAnswer, type DecisionCreateParams, type DecisionCreateResponse, type DecisionQuestion } from './decisions.js';
|
|
8
9
|
export { Embeddings, type EmbeddingCreateParams, type EmbeddingCreateResponse } from './embeddings.js';
|
|
9
10
|
export { Files, type FileCreateParams, type FileDeleted, type FileListResponse, type FileObject } from './files.js';
|
|
10
11
|
export { Models, type Model, type ModelListResponse } from './models.js';
|
|
12
|
+
export { Monitors, type Monitor, type MonitorChangesDetectedEvent, type MonitorCreateParams, type MonitorDeleteResponse, type MonitorEvent, type MonitorListResponse, type MonitorPausedEvent, type MonitorRun, type MonitorRunCompletedEvent, type MonitorRunListResponse, type MonitorUpdateParams, type MonitorWebhookTestEvent, type MonitorWebhookTestResponse } from './monitors/monitors.js';
|
|
11
13
|
export { Responses, type Annotation, type ContentPart, type ErrorInfo, type FileContentParams, type FunctionCallOutputItem, type FunctionTool, type ImageResult, type ImageSearchResultsOutputItem, type ImageSearchTool, type InputItem, type OutputItem, type ResponseCancelResponse, type ResponseCreateParams, type ResponseCreateParamsBase, type ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming, type ResponseCreateResponse, type ResponseFile, type ResponseFileList, type ResponseRetrieveResponse, type ResponsesCreateParams, type ResponseStreamChunk, type ResponsesUsage } from './responses/responses.js';
|
|
12
14
|
export { Search, type SearchCreateParams, type SearchCreateResponse } from './search.js';
|
|
13
15
|
export { Skills, type ManagedSkill, type SkillDownloadResponse, type SkillListResponse, type SkillRevision, type SkillRevisionListResponse, type SkillUploadParams } from './skills/skills.js';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Monitors, type Monitor, type MonitorChangesDetectedEvent, type MonitorCreateParams, type MonitorDeleteResponse, type MonitorEvent, type MonitorListResponse, type MonitorPausedEvent, type MonitorRun, type MonitorRunCompletedEvent, type MonitorRunListResponse, type MonitorUpdateParams, type MonitorWebhookTestEvent, type MonitorWebhookTestResponse } from './monitors.js';
|
|
2
|
+
export { Runs } from './runs.js';
|
|
3
|
+
export { Webhook } from './webhook.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as API from '../../generated/api.js';
|
|
2
|
+
export import Monitors = API.Monitors;
|
|
3
|
+
export type Monitor = API.Monitors.Monitor;
|
|
4
|
+
export type MonitorChangesDetectedEvent = API.Monitors.MonitorChangesDetectedEvent;
|
|
5
|
+
export type MonitorCreateParams = API.Monitors.MonitorCreateParams;
|
|
6
|
+
export type MonitorDeleteResponse = API.Monitors.MonitorDeleteResponse;
|
|
7
|
+
export type MonitorEvent = API.Monitors.MonitorEvent;
|
|
8
|
+
export type MonitorListResponse = API.Monitors.MonitorListResponse;
|
|
9
|
+
export type MonitorPausedEvent = API.Monitors.MonitorPausedEvent;
|
|
10
|
+
export type MonitorRun = API.Monitors.MonitorRun;
|
|
11
|
+
export type MonitorRunCompletedEvent = API.Monitors.MonitorRunCompletedEvent;
|
|
12
|
+
export type MonitorRunListResponse = API.Monitors.MonitorRunListResponse;
|
|
13
|
+
export type MonitorUpdateParams = API.Monitors.MonitorUpdateParams;
|
|
14
|
+
export type MonitorWebhookTestEvent = API.Monitors.MonitorWebhookTestEvent;
|
|
15
|
+
export type MonitorWebhookTestResponse = API.Monitors.MonitorWebhookTestResponse;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './monitors/index.js';
|
package/src/resources/shared.ts
CHANGED
|
@@ -9,6 +9,11 @@ export type ChatMessageInput = API.ChatMessageInput;
|
|
|
9
9
|
export type ChatMessageOutput = API.ChatMessageOutput;
|
|
10
10
|
export type Choice = API.Choice;
|
|
11
11
|
export type ContentPart = API.ContentPart;
|
|
12
|
+
export type ContextCreateParams = API.ContextCreateParams;
|
|
13
|
+
export type ContextCreateResponse = API.ContextCreateResponse;
|
|
14
|
+
export type ContextDocument = API.ContextDocument;
|
|
15
|
+
export type ContextMetadata = API.ContextMetadata;
|
|
16
|
+
export type ContextStatus = API.ContextStatus;
|
|
12
17
|
export type ContextualizedEmbeddingCreateParams = API.ContextualizedEmbeddingCreateParams;
|
|
13
18
|
export type ContextualizedEmbeddingCreateResponse = API.ContextualizedEmbeddingCreateResponse;
|
|
14
19
|
export type ContextualizedEmbeddingObject = API.ContextualizedEmbeddingObject;
|
|
@@ -35,6 +40,19 @@ export type JsonSchemaFormat = API.JsonSchemaFormat;
|
|
|
35
40
|
export type ManagedSkill = API.ManagedSkill;
|
|
36
41
|
export type Model = API.Model;
|
|
37
42
|
export type ModelListResponse = API.ModelListResponse;
|
|
43
|
+
export type Monitor = API.Monitor;
|
|
44
|
+
export type MonitorChangesDetectedEvent = API.MonitorChangesDetectedEvent;
|
|
45
|
+
export type MonitorCreateParams = API.MonitorCreateParams;
|
|
46
|
+
export type MonitorDeleteResponse = API.MonitorDeleteResponse;
|
|
47
|
+
export type MonitorEvent = API.MonitorEvent;
|
|
48
|
+
export type MonitorListResponse = API.MonitorListResponse;
|
|
49
|
+
export type MonitorPausedEvent = API.MonitorPausedEvent;
|
|
50
|
+
export type MonitorRun = API.MonitorRun;
|
|
51
|
+
export type MonitorRunCompletedEvent = API.MonitorRunCompletedEvent;
|
|
52
|
+
export type MonitorRunListResponse = API.MonitorRunListResponse;
|
|
53
|
+
export type MonitorUpdateParams = API.MonitorUpdateParams;
|
|
54
|
+
export type MonitorWebhookTestEvent = API.MonitorWebhookTestEvent;
|
|
55
|
+
export type MonitorWebhookTestResponse = API.MonitorWebhookTestResponse;
|
|
38
56
|
export type OutputItem = API.OutputItem;
|
|
39
57
|
export type ResponseCancelResponse = API.ResponseCancelResponse;
|
|
40
58
|
export type ResponseCreateParams = API.ResponseCreateParams;
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.43.0'; // x-release-please-version
|