@openrouter/sdk 0.3.12 → 0.3.15
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/esm/funcs/analyticsGetUserActivity.d.ts +1 -1
- package/esm/funcs/analyticsGetUserActivity.js +1 -1
- package/esm/funcs/apiKeysCreate.d.ts +3 -0
- package/esm/funcs/apiKeysCreate.js +3 -0
- package/esm/funcs/apiKeysDelete.d.ts +3 -0
- package/esm/funcs/apiKeysDelete.js +3 -0
- package/esm/funcs/apiKeysGet.d.ts +3 -0
- package/esm/funcs/apiKeysGet.js +3 -0
- package/esm/funcs/apiKeysList.d.ts +3 -0
- package/esm/funcs/apiKeysList.js +3 -0
- package/esm/funcs/apiKeysUpdate.d.ts +3 -0
- package/esm/funcs/apiKeysUpdate.js +3 -0
- package/esm/funcs/call-model.js +9 -6
- package/esm/funcs/creditsGetCredits.d.ts +1 -1
- package/esm/funcs/creditsGetCredits.js +1 -1
- package/esm/funcs/guardrailsBulkAssignKeys.d.ts +18 -0
- package/esm/funcs/guardrailsBulkAssignKeys.js +89 -0
- package/esm/funcs/guardrailsBulkAssignMembers.d.ts +18 -0
- package/esm/funcs/guardrailsBulkAssignMembers.js +89 -0
- package/esm/funcs/guardrailsBulkUnassignKeys.d.ts +18 -0
- package/esm/funcs/guardrailsBulkUnassignKeys.js +89 -0
- package/esm/funcs/guardrailsBulkUnassignMembers.d.ts +18 -0
- package/esm/funcs/guardrailsBulkUnassignMembers.js +89 -0
- package/esm/funcs/guardrailsCreate.d.ts +18 -0
- package/esm/funcs/guardrailsCreate.js +83 -0
- package/esm/funcs/guardrailsDelete.d.ts +18 -0
- package/esm/funcs/guardrailsDelete.js +88 -0
- package/esm/funcs/{parametersGetParameters.d.ts → guardrailsGet.d.ts} +6 -3
- package/esm/funcs/guardrailsGet.js +88 -0
- package/esm/funcs/guardrailsList.d.ts +18 -0
- package/esm/funcs/guardrailsList.js +87 -0
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.d.ts +18 -0
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +93 -0
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.d.ts +18 -0
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +93 -0
- package/esm/funcs/guardrailsListKeyAssignments.d.ts +18 -0
- package/esm/funcs/guardrailsListKeyAssignments.js +87 -0
- package/esm/funcs/guardrailsListMemberAssignments.d.ts +18 -0
- package/esm/funcs/guardrailsListMemberAssignments.js +87 -0
- package/esm/funcs/guardrailsUpdate.d.ts +18 -0
- package/esm/funcs/{parametersGetParameters.js → guardrailsUpdate.js} +24 -32
- package/esm/index.d.ts +4 -3
- package/esm/index.js +3 -1
- package/esm/lib/anthropic-compat.test.js +3 -0
- package/esm/lib/async-params.d.ts +46 -6
- package/esm/lib/async-params.js +10 -2
- package/esm/lib/chat-compat.test.js +3 -0
- package/esm/lib/config.d.ts +2 -4
- package/esm/lib/config.js +2 -2
- package/esm/lib/conversation-state.d.ts +61 -0
- package/esm/lib/conversation-state.js +207 -0
- package/esm/lib/model-result.d.ts +175 -2
- package/esm/lib/model-result.js +678 -181
- package/esm/lib/tool-types.d.ts +109 -1
- package/esm/lib/tool-types.js +13 -0
- package/esm/lib/tool.d.ts +21 -1
- package/esm/lib/tool.js +7 -0
- package/esm/models/assistantmessage.d.ts +31 -0
- package/esm/models/assistantmessage.js +43 -0
- package/esm/models/chatgenerationparams.d.ts +93 -12
- package/esm/models/chatgenerationparams.js +75 -6
- package/esm/models/chatgenerationtokenusage.d.ts +1 -0
- package/esm/models/chatgenerationtokenusage.js +2 -0
- package/esm/models/chatmessagecontentitemimage.d.ts +8 -8
- package/esm/models/chatmessagecontentitemimage.js +8 -9
- package/esm/models/chatmessagetokenlogprob.d.ts +4 -4
- package/esm/models/chatmessagetokenlogprob.js +4 -5
- package/esm/models/chatresponsechoice.d.ts +0 -2
- package/esm/models/chatresponsechoice.js +0 -3
- package/esm/models/chatstreamingmessagechunk.d.ts +2 -2
- package/esm/models/chatstreamingmessagechunk.js +2 -2
- package/esm/models/index.d.ts +8 -1
- package/esm/models/index.js +8 -1
- package/esm/models/model.d.ts +4 -0
- package/esm/models/model.js +2 -0
- package/esm/models/openairesponsesinputunion.d.ts +15 -5
- package/esm/models/openairesponsesinputunion.js +5 -5
- package/esm/models/openresponseseasyinputmessage.d.ts +41 -16
- package/esm/models/openresponseseasyinputmessage.js +38 -13
- package/esm/models/openresponsesinputmessageitem.d.ts +37 -12
- package/esm/models/openresponsesinputmessageitem.js +33 -9
- package/esm/models/openresponsesnonstreamingresponse.d.ts +5 -2
- package/esm/models/openresponsesnonstreamingresponse.js +8 -2
- package/esm/models/openresponsesreasoning.d.ts +1 -0
- package/esm/models/openresponsesreasoning.js +1 -0
- package/esm/models/openresponsesrequest.d.ts +61 -24
- package/esm/models/openresponsesrequest.js +39 -6
- package/esm/models/operations/bulkassignkeystoguardrail.d.ts +44 -0
- package/esm/models/operations/bulkassignkeystoguardrail.js +42 -0
- package/esm/models/operations/bulkassignmemberstoguardrail.d.ts +44 -0
- package/esm/models/operations/bulkassignmemberstoguardrail.js +42 -0
- package/esm/models/operations/bulkunassignkeysfromguardrail.d.ts +44 -0
- package/esm/models/operations/bulkunassignkeysfromguardrail.js +42 -0
- package/esm/models/operations/bulkunassignmembersfromguardrail.d.ts +44 -0
- package/esm/models/operations/bulkunassignmembersfromguardrail.js +42 -0
- package/esm/models/operations/createguardrail.d.ts +136 -0
- package/esm/models/operations/createguardrail.js +85 -0
- package/esm/models/operations/deleteguardrail.d.ts +29 -0
- package/esm/models/operations/deleteguardrail.js +21 -0
- package/esm/models/operations/getgeneration.d.ts +4 -0
- package/esm/models/operations/getgeneration.js +1 -0
- package/esm/models/operations/getguardrail.d.ts +92 -0
- package/esm/models/operations/getguardrail.js +60 -0
- package/esm/models/operations/getmodels.d.ts +28 -1
- package/esm/models/operations/getmodels.js +22 -1
- package/esm/models/operations/index.d.ts +13 -1
- package/esm/models/operations/index.js +13 -1
- package/esm/models/operations/listguardrailkeyassignments.d.ts +76 -0
- package/esm/models/operations/listguardrailkeyassignments.js +51 -0
- package/esm/models/operations/listguardrailmemberassignments.d.ts +72 -0
- package/esm/models/operations/listguardrailmemberassignments.js +49 -0
- package/esm/models/operations/listguardrails.d.ts +98 -0
- package/esm/models/operations/listguardrails.js +66 -0
- package/esm/models/operations/listkeyassignments.d.ts +71 -0
- package/esm/models/operations/listkeyassignments.js +50 -0
- package/esm/models/operations/listmemberassignments.d.ts +67 -0
- package/esm/models/operations/listmemberassignments.js +48 -0
- package/esm/models/operations/updateguardrail.d.ts +151 -0
- package/esm/models/operations/updateguardrail.js +97 -0
- package/esm/models/percentilelatencycutoffs.d.ts +33 -0
- package/esm/models/percentilelatencycutoffs.js +16 -0
- package/esm/models/percentilestats.d.ts +28 -0
- package/esm/models/percentilestats.js +17 -0
- package/esm/models/percentilethroughputcutoffs.d.ts +33 -0
- package/esm/models/percentilethroughputcutoffs.js +16 -0
- package/esm/models/preferredmaxlatency.d.ts +12 -0
- package/esm/models/preferredmaxlatency.js +12 -0
- package/esm/models/preferredminthroughput.d.ts +12 -0
- package/esm/models/preferredminthroughput.js +12 -0
- package/esm/models/providername.d.ts +3 -2
- package/esm/models/providername.js +3 -2
- package/esm/models/providerpreferences.d.ts +8 -20
- package/esm/models/providerpreferences.js +6 -6
- package/esm/models/publicendpoint.d.ts +6 -0
- package/esm/models/publicendpoint.js +5 -0
- package/esm/models/responseinputimage.d.ts +11 -3
- package/esm/models/responseinputimage.js +9 -2
- package/esm/models/responseinputvideo.d.ts +20 -0
- package/esm/models/responseinputvideo.js +19 -0
- package/esm/models/responseoutputtext.d.ts +38 -0
- package/esm/models/responseoutputtext.js +50 -0
- package/esm/models/responsesoutputitemreasoning.d.ts +30 -1
- package/esm/models/responsesoutputitemreasoning.js +22 -0
- package/esm/models/responsesoutputmodality.d.ts +10 -0
- package/esm/models/responsesoutputmodality.js +12 -0
- package/esm/models/schema0.d.ts +3 -2
- package/esm/models/schema0.js +3 -2
- package/esm/models/schema2.d.ts +92 -0
- package/esm/models/schema2.js +109 -0
- package/esm/sdk/analytics.d.ts +1 -1
- package/esm/sdk/analytics.js +1 -1
- package/esm/sdk/apikeys.d.ts +15 -0
- package/esm/sdk/apikeys.js +15 -0
- package/esm/sdk/credits.d.ts +1 -1
- package/esm/sdk/credits.js +1 -1
- package/esm/sdk/guardrails.d.ts +96 -0
- package/esm/sdk/guardrails.js +139 -0
- package/esm/sdk/sdk.d.ts +3 -3
- package/esm/sdk/sdk.js +4 -4
- package/esm/types/index.d.ts +2 -0
- package/esm/types/index.js +1 -0
- package/esm/types/models.d.ts +25 -0
- package/esm/types/models.js +10 -0
- package/jsr.json +1 -1
- package/package.json +12 -10
- package/scripts/check-types.js +127 -0
- package/esm/models/operations/getparameters.d.ts +0 -87
- package/esm/models/operations/getparameters.js +0 -73
- package/esm/models/schema3.d.ts +0 -50
- package/esm/models/schema3.js +0 -61
- package/esm/sdk/parameters.d.ts +0 -9
- package/esm/sdk/parameters.js +0 -16
|
@@ -2,18 +2,56 @@ import * as z from "zod/v4";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
4
|
import { OpenAIResponsesAnnotation, OpenAIResponsesAnnotation$Outbound } from "./openairesponsesannotation.js";
|
|
5
|
+
export type ResponseOutputTextTopLogprob = {
|
|
6
|
+
token: string;
|
|
7
|
+
bytes: Array<number>;
|
|
8
|
+
logprob: number;
|
|
9
|
+
};
|
|
10
|
+
export type Logprob = {
|
|
11
|
+
token: string;
|
|
12
|
+
bytes: Array<number>;
|
|
13
|
+
logprob: number;
|
|
14
|
+
topLogprobs: Array<ResponseOutputTextTopLogprob>;
|
|
15
|
+
};
|
|
5
16
|
export type ResponseOutputText = {
|
|
6
17
|
type: "output_text";
|
|
7
18
|
text: string;
|
|
8
19
|
annotations?: Array<OpenAIResponsesAnnotation> | undefined;
|
|
20
|
+
logprobs?: Array<Logprob> | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const ResponseOutputTextTopLogprob$inboundSchema: z.ZodType<ResponseOutputTextTopLogprob, unknown>;
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type ResponseOutputTextTopLogprob$Outbound = {
|
|
26
|
+
token: string;
|
|
27
|
+
bytes: Array<number>;
|
|
28
|
+
logprob: number;
|
|
9
29
|
};
|
|
10
30
|
/** @internal */
|
|
31
|
+
export declare const ResponseOutputTextTopLogprob$outboundSchema: z.ZodType<ResponseOutputTextTopLogprob$Outbound, ResponseOutputTextTopLogprob>;
|
|
32
|
+
export declare function responseOutputTextTopLogprobToJSON(responseOutputTextTopLogprob: ResponseOutputTextTopLogprob): string;
|
|
33
|
+
export declare function responseOutputTextTopLogprobFromJSON(jsonString: string): SafeParseResult<ResponseOutputTextTopLogprob, SDKValidationError>;
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const Logprob$inboundSchema: z.ZodType<Logprob, unknown>;
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type Logprob$Outbound = {
|
|
38
|
+
token: string;
|
|
39
|
+
bytes: Array<number>;
|
|
40
|
+
logprob: number;
|
|
41
|
+
top_logprobs: Array<ResponseOutputTextTopLogprob$Outbound>;
|
|
42
|
+
};
|
|
43
|
+
/** @internal */
|
|
44
|
+
export declare const Logprob$outboundSchema: z.ZodType<Logprob$Outbound, Logprob>;
|
|
45
|
+
export declare function logprobToJSON(logprob: Logprob): string;
|
|
46
|
+
export declare function logprobFromJSON(jsonString: string): SafeParseResult<Logprob, SDKValidationError>;
|
|
47
|
+
/** @internal */
|
|
11
48
|
export declare const ResponseOutputText$inboundSchema: z.ZodType<ResponseOutputText, unknown>;
|
|
12
49
|
/** @internal */
|
|
13
50
|
export type ResponseOutputText$Outbound = {
|
|
14
51
|
type: "output_text";
|
|
15
52
|
text: string;
|
|
16
53
|
annotations?: Array<OpenAIResponsesAnnotation$Outbound> | undefined;
|
|
54
|
+
logprobs?: Array<Logprob$Outbound> | undefined;
|
|
17
55
|
};
|
|
18
56
|
/** @internal */
|
|
19
57
|
export declare const ResponseOutputText$outboundSchema: z.ZodType<ResponseOutputText$Outbound, ResponseOutputText>;
|
|
@@ -3,19 +3,69 @@
|
|
|
3
3
|
* @generated-id: 2d5e61e53c46
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../lib/schemas.js";
|
|
7
8
|
import { OpenAIResponsesAnnotation$inboundSchema, OpenAIResponsesAnnotation$outboundSchema, } from "./openairesponsesannotation.js";
|
|
8
9
|
/** @internal */
|
|
10
|
+
export const ResponseOutputTextTopLogprob$inboundSchema = z.object({
|
|
11
|
+
token: z.string(),
|
|
12
|
+
bytes: z.array(z.number()),
|
|
13
|
+
logprob: z.number(),
|
|
14
|
+
});
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const ResponseOutputTextTopLogprob$outboundSchema = z.object({
|
|
17
|
+
token: z.string(),
|
|
18
|
+
bytes: z.array(z.number()),
|
|
19
|
+
logprob: z.number(),
|
|
20
|
+
});
|
|
21
|
+
export function responseOutputTextTopLogprobToJSON(responseOutputTextTopLogprob) {
|
|
22
|
+
return JSON.stringify(ResponseOutputTextTopLogprob$outboundSchema.parse(responseOutputTextTopLogprob));
|
|
23
|
+
}
|
|
24
|
+
export function responseOutputTextTopLogprobFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => ResponseOutputTextTopLogprob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseOutputTextTopLogprob' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const Logprob$inboundSchema = z.object({
|
|
29
|
+
token: z.string(),
|
|
30
|
+
bytes: z.array(z.number()),
|
|
31
|
+
logprob: z.number(),
|
|
32
|
+
top_logprobs: z.array(z.lazy(() => ResponseOutputTextTopLogprob$inboundSchema)),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"top_logprobs": "topLogprobs",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const Logprob$outboundSchema = z
|
|
40
|
+
.object({
|
|
41
|
+
token: z.string(),
|
|
42
|
+
bytes: z.array(z.number()),
|
|
43
|
+
logprob: z.number(),
|
|
44
|
+
topLogprobs: z.array(z.lazy(() => ResponseOutputTextTopLogprob$outboundSchema)),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
topLogprobs: "top_logprobs",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
export function logprobToJSON(logprob) {
|
|
51
|
+
return JSON.stringify(Logprob$outboundSchema.parse(logprob));
|
|
52
|
+
}
|
|
53
|
+
export function logprobFromJSON(jsonString) {
|
|
54
|
+
return safeParse(jsonString, (x) => Logprob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Logprob' from JSON`);
|
|
55
|
+
}
|
|
56
|
+
/** @internal */
|
|
9
57
|
export const ResponseOutputText$inboundSchema = z.object({
|
|
10
58
|
type: z.literal("output_text"),
|
|
11
59
|
text: z.string(),
|
|
12
60
|
annotations: z.array(OpenAIResponsesAnnotation$inboundSchema).optional(),
|
|
61
|
+
logprobs: z.array(z.lazy(() => Logprob$inboundSchema)).optional(),
|
|
13
62
|
});
|
|
14
63
|
/** @internal */
|
|
15
64
|
export const ResponseOutputText$outboundSchema = z.object({
|
|
16
65
|
type: z.literal("output_text"),
|
|
17
66
|
text: z.string(),
|
|
18
67
|
annotations: z.array(OpenAIResponsesAnnotation$outboundSchema).optional(),
|
|
68
|
+
logprobs: z.array(z.lazy(() => Logprob$outboundSchema)).optional(),
|
|
19
69
|
});
|
|
20
70
|
export function responseOutputTextToJSON(responseOutputText) {
|
|
21
71
|
return JSON.stringify(ResponseOutputText$outboundSchema.parse(responseOutputText));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
2
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
5
|
import { ReasoningSummaryText, ReasoningSummaryText$Outbound } from "./reasoningsummarytext.js";
|
|
@@ -21,6 +21,21 @@ export declare const ResponsesOutputItemReasoningStatusCompleted: {
|
|
|
21
21
|
};
|
|
22
22
|
export type ResponsesOutputItemReasoningStatusCompleted = ClosedEnum<typeof ResponsesOutputItemReasoningStatusCompleted>;
|
|
23
23
|
export type ResponsesOutputItemReasoningStatusUnion = ResponsesOutputItemReasoningStatusCompleted | ResponsesOutputItemReasoningStatusIncomplete | ResponsesOutputItemReasoningStatusInProgress;
|
|
24
|
+
/**
|
|
25
|
+
* The format of the reasoning content
|
|
26
|
+
*/
|
|
27
|
+
export declare const ResponsesOutputItemReasoningFormat: {
|
|
28
|
+
readonly Unknown: "unknown";
|
|
29
|
+
readonly OpenaiResponsesV1: "openai-responses-v1";
|
|
30
|
+
readonly AzureOpenaiResponsesV1: "azure-openai-responses-v1";
|
|
31
|
+
readonly XaiResponsesV1: "xai-responses-v1";
|
|
32
|
+
readonly AnthropicClaudeV1: "anthropic-claude-v1";
|
|
33
|
+
readonly GoogleGeminiV1: "google-gemini-v1";
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The format of the reasoning content
|
|
37
|
+
*/
|
|
38
|
+
export type ResponsesOutputItemReasoningFormat = OpenEnum<typeof ResponsesOutputItemReasoningFormat>;
|
|
24
39
|
/**
|
|
25
40
|
* An output item containing reasoning
|
|
26
41
|
*/
|
|
@@ -31,6 +46,14 @@ export type ResponsesOutputItemReasoning = {
|
|
|
31
46
|
summary: Array<ReasoningSummaryText>;
|
|
32
47
|
encryptedContent?: string | null | undefined;
|
|
33
48
|
status?: ResponsesOutputItemReasoningStatusCompleted | ResponsesOutputItemReasoningStatusIncomplete | ResponsesOutputItemReasoningStatusInProgress | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* A signature for the reasoning content, used for verification
|
|
51
|
+
*/
|
|
52
|
+
signature?: string | null | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The format of the reasoning content
|
|
55
|
+
*/
|
|
56
|
+
format?: ResponsesOutputItemReasoningFormat | null | undefined;
|
|
34
57
|
};
|
|
35
58
|
/** @internal */
|
|
36
59
|
export declare const ResponsesOutputItemReasoningType$inboundSchema: z.ZodEnum<typeof ResponsesOutputItemReasoningType>;
|
|
@@ -57,6 +80,10 @@ export declare const ResponsesOutputItemReasoningStatusUnion$outboundSchema: z.Z
|
|
|
57
80
|
export declare function responsesOutputItemReasoningStatusUnionToJSON(responsesOutputItemReasoningStatusUnion: ResponsesOutputItemReasoningStatusUnion): string;
|
|
58
81
|
export declare function responsesOutputItemReasoningStatusUnionFromJSON(jsonString: string): SafeParseResult<ResponsesOutputItemReasoningStatusUnion, SDKValidationError>;
|
|
59
82
|
/** @internal */
|
|
83
|
+
export declare const ResponsesOutputItemReasoningFormat$inboundSchema: z.ZodType<ResponsesOutputItemReasoningFormat, unknown>;
|
|
84
|
+
/** @internal */
|
|
85
|
+
export declare const ResponsesOutputItemReasoningFormat$outboundSchema: z.ZodType<string, ResponsesOutputItemReasoningFormat>;
|
|
86
|
+
/** @internal */
|
|
60
87
|
export declare const ResponsesOutputItemReasoning$inboundSchema: z.ZodType<ResponsesOutputItemReasoning, unknown>;
|
|
61
88
|
/** @internal */
|
|
62
89
|
export type ResponsesOutputItemReasoning$Outbound = {
|
|
@@ -66,6 +93,8 @@ export type ResponsesOutputItemReasoning$Outbound = {
|
|
|
66
93
|
summary: Array<ReasoningSummaryText$Outbound>;
|
|
67
94
|
encrypted_content?: string | null | undefined;
|
|
68
95
|
status?: string | string | string | undefined;
|
|
96
|
+
signature?: string | null | undefined;
|
|
97
|
+
format?: string | null | undefined;
|
|
69
98
|
};
|
|
70
99
|
/** @internal */
|
|
71
100
|
export declare const ResponsesOutputItemReasoning$outboundSchema: z.ZodType<ResponsesOutputItemReasoning$Outbound, ResponsesOutputItemReasoning>;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../types/enums.js";
|
|
8
9
|
import { ReasoningSummaryText$inboundSchema, ReasoningSummaryText$outboundSchema, } from "./reasoningsummarytext.js";
|
|
9
10
|
import { ReasoningTextContent$inboundSchema, ReasoningTextContent$outboundSchema, } from "./reasoningtextcontent.js";
|
|
10
11
|
export const ResponsesOutputItemReasoningType = {
|
|
@@ -19,6 +20,17 @@ export const ResponsesOutputItemReasoningStatusIncomplete = {
|
|
|
19
20
|
export const ResponsesOutputItemReasoningStatusCompleted = {
|
|
20
21
|
Completed: "completed",
|
|
21
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* The format of the reasoning content
|
|
25
|
+
*/
|
|
26
|
+
export const ResponsesOutputItemReasoningFormat = {
|
|
27
|
+
Unknown: "unknown",
|
|
28
|
+
OpenaiResponsesV1: "openai-responses-v1",
|
|
29
|
+
AzureOpenaiResponsesV1: "azure-openai-responses-v1",
|
|
30
|
+
XaiResponsesV1: "xai-responses-v1",
|
|
31
|
+
AnthropicClaudeV1: "anthropic-claude-v1",
|
|
32
|
+
GoogleGeminiV1: "google-gemini-v1",
|
|
33
|
+
};
|
|
22
34
|
/** @internal */
|
|
23
35
|
export const ResponsesOutputItemReasoningType$inboundSchema = z.enum(ResponsesOutputItemReasoningType);
|
|
24
36
|
/** @internal */
|
|
@@ -54,6 +66,10 @@ export function responsesOutputItemReasoningStatusUnionFromJSON(jsonString) {
|
|
|
54
66
|
return safeParse(jsonString, (x) => ResponsesOutputItemReasoningStatusUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponsesOutputItemReasoningStatusUnion' from JSON`);
|
|
55
67
|
}
|
|
56
68
|
/** @internal */
|
|
69
|
+
export const ResponsesOutputItemReasoningFormat$inboundSchema = openEnums.inboundSchema(ResponsesOutputItemReasoningFormat);
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const ResponsesOutputItemReasoningFormat$outboundSchema = openEnums.outboundSchema(ResponsesOutputItemReasoningFormat);
|
|
72
|
+
/** @internal */
|
|
57
73
|
export const ResponsesOutputItemReasoning$inboundSchema = z.object({
|
|
58
74
|
type: ResponsesOutputItemReasoningType$inboundSchema,
|
|
59
75
|
id: z.string(),
|
|
@@ -65,6 +81,9 @@ export const ResponsesOutputItemReasoning$inboundSchema = z.object({
|
|
|
65
81
|
ResponsesOutputItemReasoningStatusIncomplete$inboundSchema,
|
|
66
82
|
ResponsesOutputItemReasoningStatusInProgress$inboundSchema,
|
|
67
83
|
]).optional(),
|
|
84
|
+
signature: z.nullable(z.string()).optional(),
|
|
85
|
+
format: z.nullable(ResponsesOutputItemReasoningFormat$inboundSchema)
|
|
86
|
+
.optional(),
|
|
68
87
|
}).transform((v) => {
|
|
69
88
|
return remap$(v, {
|
|
70
89
|
"encrypted_content": "encryptedContent",
|
|
@@ -82,6 +101,9 @@ export const ResponsesOutputItemReasoning$outboundSchema = z.object({
|
|
|
82
101
|
ResponsesOutputItemReasoningStatusIncomplete$outboundSchema,
|
|
83
102
|
ResponsesOutputItemReasoningStatusInProgress$outboundSchema,
|
|
84
103
|
]).optional(),
|
|
104
|
+
signature: z.nullable(z.string()).optional(),
|
|
105
|
+
format: z.nullable(ResponsesOutputItemReasoningFormat$outboundSchema)
|
|
106
|
+
.optional(),
|
|
85
107
|
}).transform((v) => {
|
|
86
108
|
return remap$(v, {
|
|
87
109
|
encryptedContent: "encrypted_content",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
export declare const ResponsesOutputModality: {
|
|
4
|
+
readonly Text: "text";
|
|
5
|
+
readonly Image: "image";
|
|
6
|
+
};
|
|
7
|
+
export type ResponsesOutputModality = OpenEnum<typeof ResponsesOutputModality>;
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const ResponsesOutputModality$outboundSchema: z.ZodType<string, ResponsesOutputModality>;
|
|
10
|
+
//# sourceMappingURL=responsesoutputmodality.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 4f6019babb94
|
|
4
|
+
*/
|
|
5
|
+
import * as openEnums from "../types/enums.js";
|
|
6
|
+
export const ResponsesOutputModality = {
|
|
7
|
+
Text: "text",
|
|
8
|
+
Image: "image",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const ResponsesOutputModality$outboundSchema = openEnums.outboundSchema(ResponsesOutputModality);
|
|
12
|
+
//# sourceMappingURL=responsesoutputmodality.js.map
|
package/esm/models/schema0.d.ts
CHANGED
|
@@ -27,12 +27,12 @@ export declare const Schema0Enum: {
|
|
|
27
27
|
readonly Fireworks: "Fireworks";
|
|
28
28
|
readonly Friendli: "Friendli";
|
|
29
29
|
readonly GMICloud: "GMICloud";
|
|
30
|
-
readonly GoPomelo: "GoPomelo";
|
|
31
30
|
readonly Google: "Google";
|
|
32
31
|
readonly GoogleAIStudio: "Google AI Studio";
|
|
33
32
|
readonly Groq: "Groq";
|
|
34
33
|
readonly Hyperbolic: "Hyperbolic";
|
|
35
34
|
readonly Inception: "Inception";
|
|
35
|
+
readonly Inceptron: "Inceptron";
|
|
36
36
|
readonly InferenceNet: "InferenceNet";
|
|
37
37
|
readonly Infermatic: "Infermatic";
|
|
38
38
|
readonly Inflection: "Inflection";
|
|
@@ -57,13 +57,14 @@ export declare const Schema0Enum: {
|
|
|
57
57
|
readonly Phala: "Phala";
|
|
58
58
|
readonly Relace: "Relace";
|
|
59
59
|
readonly SambaNova: "SambaNova";
|
|
60
|
+
readonly Seed: "Seed";
|
|
60
61
|
readonly SiliconFlow: "SiliconFlow";
|
|
61
62
|
readonly Sourceful: "Sourceful";
|
|
62
63
|
readonly Stealth: "Stealth";
|
|
63
64
|
readonly StreamLake: "StreamLake";
|
|
64
65
|
readonly Switchpoint: "Switchpoint";
|
|
65
|
-
readonly Targon: "Targon";
|
|
66
66
|
readonly Together: "Together";
|
|
67
|
+
readonly Upstage: "Upstage";
|
|
67
68
|
readonly Venice: "Venice";
|
|
68
69
|
readonly WandB: "WandB";
|
|
69
70
|
readonly Xiaomi: "Xiaomi";
|
package/esm/models/schema0.js
CHANGED
|
@@ -31,12 +31,12 @@ export const Schema0Enum = {
|
|
|
31
31
|
Fireworks: "Fireworks",
|
|
32
32
|
Friendli: "Friendli",
|
|
33
33
|
GMICloud: "GMICloud",
|
|
34
|
-
GoPomelo: "GoPomelo",
|
|
35
34
|
Google: "Google",
|
|
36
35
|
GoogleAIStudio: "Google AI Studio",
|
|
37
36
|
Groq: "Groq",
|
|
38
37
|
Hyperbolic: "Hyperbolic",
|
|
39
38
|
Inception: "Inception",
|
|
39
|
+
Inceptron: "Inceptron",
|
|
40
40
|
InferenceNet: "InferenceNet",
|
|
41
41
|
Infermatic: "Infermatic",
|
|
42
42
|
Inflection: "Inflection",
|
|
@@ -61,13 +61,14 @@ export const Schema0Enum = {
|
|
|
61
61
|
Phala: "Phala",
|
|
62
62
|
Relace: "Relace",
|
|
63
63
|
SambaNova: "SambaNova",
|
|
64
|
+
Seed: "Seed",
|
|
64
65
|
SiliconFlow: "SiliconFlow",
|
|
65
66
|
Sourceful: "Sourceful",
|
|
66
67
|
Stealth: "Stealth",
|
|
67
68
|
StreamLake: "StreamLake",
|
|
68
69
|
Switchpoint: "Switchpoint",
|
|
69
|
-
Targon: "Targon",
|
|
70
70
|
Together: "Together",
|
|
71
|
+
Upstage: "Upstage",
|
|
71
72
|
Venice: "Venice",
|
|
72
73
|
WandB: "WandB",
|
|
73
74
|
Xiaomi: "Xiaomi",
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const Schema4: {
|
|
6
|
+
readonly Unknown: "unknown";
|
|
7
|
+
readonly OpenaiResponsesV1: "openai-responses-v1";
|
|
8
|
+
readonly AzureOpenaiResponsesV1: "azure-openai-responses-v1";
|
|
9
|
+
readonly XaiResponsesV1: "xai-responses-v1";
|
|
10
|
+
readonly AnthropicClaudeV1: "anthropic-claude-v1";
|
|
11
|
+
readonly GoogleGeminiV1: "google-gemini-v1";
|
|
12
|
+
};
|
|
13
|
+
export type Schema4 = OpenEnum<typeof Schema4>;
|
|
14
|
+
export type Schema2ReasoningText = {
|
|
15
|
+
type: "reasoning.text";
|
|
16
|
+
text?: string | null | undefined;
|
|
17
|
+
signature?: string | null | undefined;
|
|
18
|
+
id?: string | null | undefined;
|
|
19
|
+
format?: Schema4 | null | undefined;
|
|
20
|
+
index?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
export type Schema2ReasoningEncrypted = {
|
|
23
|
+
type: "reasoning.encrypted";
|
|
24
|
+
data: string;
|
|
25
|
+
id?: string | null | undefined;
|
|
26
|
+
format?: Schema4 | null | undefined;
|
|
27
|
+
index?: number | undefined;
|
|
28
|
+
};
|
|
29
|
+
export type Schema2ReasoningSummary = {
|
|
30
|
+
type: "reasoning.summary";
|
|
31
|
+
summary: string;
|
|
32
|
+
id?: string | null | undefined;
|
|
33
|
+
format?: Schema4 | null | undefined;
|
|
34
|
+
index?: number | undefined;
|
|
35
|
+
};
|
|
36
|
+
export type Schema2 = Schema2ReasoningSummary | Schema2ReasoningEncrypted | Schema2ReasoningText;
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare const Schema4$inboundSchema: z.ZodType<Schema4, unknown>;
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const Schema4$outboundSchema: z.ZodType<string, Schema4>;
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const Schema2ReasoningText$inboundSchema: z.ZodType<Schema2ReasoningText, unknown>;
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type Schema2ReasoningText$Outbound = {
|
|
45
|
+
type: "reasoning.text";
|
|
46
|
+
text?: string | null | undefined;
|
|
47
|
+
signature?: string | null | undefined;
|
|
48
|
+
id?: string | null | undefined;
|
|
49
|
+
format?: string | null | undefined;
|
|
50
|
+
index?: number | undefined;
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
export declare const Schema2ReasoningText$outboundSchema: z.ZodType<Schema2ReasoningText$Outbound, Schema2ReasoningText>;
|
|
54
|
+
export declare function schema2ReasoningTextToJSON(schema2ReasoningText: Schema2ReasoningText): string;
|
|
55
|
+
export declare function schema2ReasoningTextFromJSON(jsonString: string): SafeParseResult<Schema2ReasoningText, SDKValidationError>;
|
|
56
|
+
/** @internal */
|
|
57
|
+
export declare const Schema2ReasoningEncrypted$inboundSchema: z.ZodType<Schema2ReasoningEncrypted, unknown>;
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type Schema2ReasoningEncrypted$Outbound = {
|
|
60
|
+
type: "reasoning.encrypted";
|
|
61
|
+
data: string;
|
|
62
|
+
id?: string | null | undefined;
|
|
63
|
+
format?: string | null | undefined;
|
|
64
|
+
index?: number | undefined;
|
|
65
|
+
};
|
|
66
|
+
/** @internal */
|
|
67
|
+
export declare const Schema2ReasoningEncrypted$outboundSchema: z.ZodType<Schema2ReasoningEncrypted$Outbound, Schema2ReasoningEncrypted>;
|
|
68
|
+
export declare function schema2ReasoningEncryptedToJSON(schema2ReasoningEncrypted: Schema2ReasoningEncrypted): string;
|
|
69
|
+
export declare function schema2ReasoningEncryptedFromJSON(jsonString: string): SafeParseResult<Schema2ReasoningEncrypted, SDKValidationError>;
|
|
70
|
+
/** @internal */
|
|
71
|
+
export declare const Schema2ReasoningSummary$inboundSchema: z.ZodType<Schema2ReasoningSummary, unknown>;
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type Schema2ReasoningSummary$Outbound = {
|
|
74
|
+
type: "reasoning.summary";
|
|
75
|
+
summary: string;
|
|
76
|
+
id?: string | null | undefined;
|
|
77
|
+
format?: string | null | undefined;
|
|
78
|
+
index?: number | undefined;
|
|
79
|
+
};
|
|
80
|
+
/** @internal */
|
|
81
|
+
export declare const Schema2ReasoningSummary$outboundSchema: z.ZodType<Schema2ReasoningSummary$Outbound, Schema2ReasoningSummary>;
|
|
82
|
+
export declare function schema2ReasoningSummaryToJSON(schema2ReasoningSummary: Schema2ReasoningSummary): string;
|
|
83
|
+
export declare function schema2ReasoningSummaryFromJSON(jsonString: string): SafeParseResult<Schema2ReasoningSummary, SDKValidationError>;
|
|
84
|
+
/** @internal */
|
|
85
|
+
export declare const Schema2$inboundSchema: z.ZodType<Schema2, unknown>;
|
|
86
|
+
/** @internal */
|
|
87
|
+
export type Schema2$Outbound = Schema2ReasoningSummary$Outbound | Schema2ReasoningEncrypted$Outbound | Schema2ReasoningText$Outbound;
|
|
88
|
+
/** @internal */
|
|
89
|
+
export declare const Schema2$outboundSchema: z.ZodType<Schema2$Outbound, Schema2>;
|
|
90
|
+
export declare function schema2ToJSON(schema2: Schema2): string;
|
|
91
|
+
export declare function schema2FromJSON(jsonString: string): SafeParseResult<Schema2, SDKValidationError>;
|
|
92
|
+
//# sourceMappingURL=schema2.d.ts.map
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f5d5abd15e27
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
export const Schema4 = {
|
|
9
|
+
Unknown: "unknown",
|
|
10
|
+
OpenaiResponsesV1: "openai-responses-v1",
|
|
11
|
+
AzureOpenaiResponsesV1: "azure-openai-responses-v1",
|
|
12
|
+
XaiResponsesV1: "xai-responses-v1",
|
|
13
|
+
AnthropicClaudeV1: "anthropic-claude-v1",
|
|
14
|
+
GoogleGeminiV1: "google-gemini-v1",
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const Schema4$inboundSchema = openEnums
|
|
18
|
+
.inboundSchema(Schema4);
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const Schema4$outboundSchema = openEnums
|
|
21
|
+
.outboundSchema(Schema4);
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const Schema2ReasoningText$inboundSchema = z.object({
|
|
24
|
+
type: z.literal("reasoning.text"),
|
|
25
|
+
text: z.nullable(z.string()).optional(),
|
|
26
|
+
signature: z.nullable(z.string()).optional(),
|
|
27
|
+
id: z.nullable(z.string()).optional(),
|
|
28
|
+
format: z.nullable(Schema4$inboundSchema).optional(),
|
|
29
|
+
index: z.number().optional(),
|
|
30
|
+
});
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const Schema2ReasoningText$outboundSchema = z.object({
|
|
33
|
+
type: z.literal("reasoning.text"),
|
|
34
|
+
text: z.nullable(z.string()).optional(),
|
|
35
|
+
signature: z.nullable(z.string()).optional(),
|
|
36
|
+
id: z.nullable(z.string()).optional(),
|
|
37
|
+
format: z.nullable(Schema4$outboundSchema).optional(),
|
|
38
|
+
index: z.number().optional(),
|
|
39
|
+
});
|
|
40
|
+
export function schema2ReasoningTextToJSON(schema2ReasoningText) {
|
|
41
|
+
return JSON.stringify(Schema2ReasoningText$outboundSchema.parse(schema2ReasoningText));
|
|
42
|
+
}
|
|
43
|
+
export function schema2ReasoningTextFromJSON(jsonString) {
|
|
44
|
+
return safeParse(jsonString, (x) => Schema2ReasoningText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Schema2ReasoningText' from JSON`);
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const Schema2ReasoningEncrypted$inboundSchema = z.object({
|
|
48
|
+
type: z.literal("reasoning.encrypted"),
|
|
49
|
+
data: z.string(),
|
|
50
|
+
id: z.nullable(z.string()).optional(),
|
|
51
|
+
format: z.nullable(Schema4$inboundSchema).optional(),
|
|
52
|
+
index: z.number().optional(),
|
|
53
|
+
});
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const Schema2ReasoningEncrypted$outboundSchema = z.object({
|
|
56
|
+
type: z.literal("reasoning.encrypted"),
|
|
57
|
+
data: z.string(),
|
|
58
|
+
id: z.nullable(z.string()).optional(),
|
|
59
|
+
format: z.nullable(Schema4$outboundSchema).optional(),
|
|
60
|
+
index: z.number().optional(),
|
|
61
|
+
});
|
|
62
|
+
export function schema2ReasoningEncryptedToJSON(schema2ReasoningEncrypted) {
|
|
63
|
+
return JSON.stringify(Schema2ReasoningEncrypted$outboundSchema.parse(schema2ReasoningEncrypted));
|
|
64
|
+
}
|
|
65
|
+
export function schema2ReasoningEncryptedFromJSON(jsonString) {
|
|
66
|
+
return safeParse(jsonString, (x) => Schema2ReasoningEncrypted$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Schema2ReasoningEncrypted' from JSON`);
|
|
67
|
+
}
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const Schema2ReasoningSummary$inboundSchema = z.object({
|
|
70
|
+
type: z.literal("reasoning.summary"),
|
|
71
|
+
summary: z.string(),
|
|
72
|
+
id: z.nullable(z.string()).optional(),
|
|
73
|
+
format: z.nullable(Schema4$inboundSchema).optional(),
|
|
74
|
+
index: z.number().optional(),
|
|
75
|
+
});
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const Schema2ReasoningSummary$outboundSchema = z.object({
|
|
78
|
+
type: z.literal("reasoning.summary"),
|
|
79
|
+
summary: z.string(),
|
|
80
|
+
id: z.nullable(z.string()).optional(),
|
|
81
|
+
format: z.nullable(Schema4$outboundSchema).optional(),
|
|
82
|
+
index: z.number().optional(),
|
|
83
|
+
});
|
|
84
|
+
export function schema2ReasoningSummaryToJSON(schema2ReasoningSummary) {
|
|
85
|
+
return JSON.stringify(Schema2ReasoningSummary$outboundSchema.parse(schema2ReasoningSummary));
|
|
86
|
+
}
|
|
87
|
+
export function schema2ReasoningSummaryFromJSON(jsonString) {
|
|
88
|
+
return safeParse(jsonString, (x) => Schema2ReasoningSummary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Schema2ReasoningSummary' from JSON`);
|
|
89
|
+
}
|
|
90
|
+
/** @internal */
|
|
91
|
+
export const Schema2$inboundSchema = z.union([
|
|
92
|
+
z.lazy(() => Schema2ReasoningSummary$inboundSchema),
|
|
93
|
+
z.lazy(() => Schema2ReasoningEncrypted$inboundSchema),
|
|
94
|
+
z.lazy(() => Schema2ReasoningText$inboundSchema),
|
|
95
|
+
]);
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const Schema2$outboundSchema = z
|
|
98
|
+
.union([
|
|
99
|
+
z.lazy(() => Schema2ReasoningSummary$outboundSchema),
|
|
100
|
+
z.lazy(() => Schema2ReasoningEncrypted$outboundSchema),
|
|
101
|
+
z.lazy(() => Schema2ReasoningText$outboundSchema),
|
|
102
|
+
]);
|
|
103
|
+
export function schema2ToJSON(schema2) {
|
|
104
|
+
return JSON.stringify(Schema2$outboundSchema.parse(schema2));
|
|
105
|
+
}
|
|
106
|
+
export function schema2FromJSON(jsonString) {
|
|
107
|
+
return safeParse(jsonString, (x) => Schema2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Schema2' from JSON`);
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=schema2.js.map
|
package/esm/sdk/analytics.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare class Analytics extends ClientSDK {
|
|
|
5
5
|
* Get user activity grouped by endpoint
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* Returns user activity data grouped by endpoint for the last 30 (completed) UTC days
|
|
8
|
+
* Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
9
9
|
*/
|
|
10
10
|
getUserActivity(request?: operations.GetUserActivityRequest | undefined, options?: RequestOptions): Promise<operations.GetUserActivityResponse>;
|
|
11
11
|
}
|
package/esm/sdk/analytics.js
CHANGED
|
@@ -10,7 +10,7 @@ export class Analytics extends ClientSDK {
|
|
|
10
10
|
* Get user activity grouped by endpoint
|
|
11
11
|
*
|
|
12
12
|
* @remarks
|
|
13
|
-
* Returns user activity data grouped by endpoint for the last 30 (completed) UTC days
|
|
13
|
+
* Returns user activity data grouped by endpoint for the last 30 (completed) UTC days. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
14
14
|
*/
|
|
15
15
|
async getUserActivity(request, options) {
|
|
16
16
|
return unwrapAsync(analyticsGetUserActivity(this, request, options));
|
package/esm/sdk/apikeys.d.ts
CHANGED
|
@@ -3,22 +3,37 @@ import * as operations from "../models/operations/index.js";
|
|
|
3
3
|
export declare class APIKeys extends ClientSDK {
|
|
4
4
|
/**
|
|
5
5
|
* List API keys
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* List all API keys for the authenticated user. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
6
9
|
*/
|
|
7
10
|
list(request?: operations.ListRequest | undefined, options?: RequestOptions): Promise<operations.ListResponse>;
|
|
8
11
|
/**
|
|
9
12
|
* Create a new API key
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Create a new API key for the authenticated user. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
10
16
|
*/
|
|
11
17
|
create(request: operations.CreateKeysRequest, options?: RequestOptions): Promise<operations.CreateKeysResponse>;
|
|
12
18
|
/**
|
|
13
19
|
* Update an API key
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Update an existing API key. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
14
23
|
*/
|
|
15
24
|
update(request: operations.UpdateKeysRequest, options?: RequestOptions): Promise<operations.UpdateKeysResponse>;
|
|
16
25
|
/**
|
|
17
26
|
* Delete an API key
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* Delete an existing API key. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
18
30
|
*/
|
|
19
31
|
delete(request: operations.DeleteKeysRequest, options?: RequestOptions): Promise<operations.DeleteKeysResponse>;
|
|
20
32
|
/**
|
|
21
33
|
* Get a single API key
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Get a single API key by hash. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
22
37
|
*/
|
|
23
38
|
get(request: operations.GetKeyRequest, options?: RequestOptions): Promise<operations.GetKeyResponse>;
|
|
24
39
|
/**
|
package/esm/sdk/apikeys.js
CHANGED
|
@@ -13,30 +13,45 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
13
13
|
export class APIKeys extends ClientSDK {
|
|
14
14
|
/**
|
|
15
15
|
* List API keys
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* List all API keys for the authenticated user. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
16
19
|
*/
|
|
17
20
|
async list(request, options) {
|
|
18
21
|
return unwrapAsync(apiKeysList(this, request, options));
|
|
19
22
|
}
|
|
20
23
|
/**
|
|
21
24
|
* Create a new API key
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Create a new API key for the authenticated user. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
22
28
|
*/
|
|
23
29
|
async create(request, options) {
|
|
24
30
|
return unwrapAsync(apiKeysCreate(this, request, options));
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
27
33
|
* Update an API key
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Update an existing API key. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
28
37
|
*/
|
|
29
38
|
async update(request, options) {
|
|
30
39
|
return unwrapAsync(apiKeysUpdate(this, request, options));
|
|
31
40
|
}
|
|
32
41
|
/**
|
|
33
42
|
* Delete an API key
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* Delete an existing API key. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
34
46
|
*/
|
|
35
47
|
async delete(request, options) {
|
|
36
48
|
return unwrapAsync(apiKeysDelete(this, request, options));
|
|
37
49
|
}
|
|
38
50
|
/**
|
|
39
51
|
* Get a single API key
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Get a single API key by hash. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
40
55
|
*/
|
|
41
56
|
async get(request, options) {
|
|
42
57
|
return unwrapAsync(apiKeysGet(this, request, options));
|
package/esm/sdk/credits.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare class Credits extends ClientSDK {
|
|
|
6
6
|
* Get remaining credits
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* Get total credits purchased and used for the authenticated user
|
|
9
|
+
* Get total credits purchased and used for the authenticated user. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
10
10
|
*/
|
|
11
11
|
getCredits(options?: RequestOptions): Promise<operations.GetCreditsResponse>;
|
|
12
12
|
/**
|
package/esm/sdk/credits.js
CHANGED
|
@@ -11,7 +11,7 @@ export class Credits extends ClientSDK {
|
|
|
11
11
|
* Get remaining credits
|
|
12
12
|
*
|
|
13
13
|
* @remarks
|
|
14
|
-
* Get total credits purchased and used for the authenticated user
|
|
14
|
+
* Get total credits purchased and used for the authenticated user. [Provisioning key](/docs/guides/overview/auth/provisioning-api-keys) required.
|
|
15
15
|
*/
|
|
16
16
|
async getCredits(options) {
|
|
17
17
|
return unwrapAsync(creditsGetCredits(this, options));
|