@openrouter/sdk 1.5.23 → 1.5.25
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/alphaExtractionsCreate.d.ts +19 -0
- package/esm/funcs/alphaExtractionsCreate.js +105 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/classifierfiltersfilter.d.ts +10 -0
- package/esm/models/classifierfiltersfilter.js +16 -0
- package/esm/models/classifierscalarfilter.d.ts +35 -0
- package/esm/models/classifierscalarfilter.js +21 -0
- package/esm/models/classifierscalarfilteroperator.d.ts +16 -0
- package/esm/models/classifierscalarfilteroperator.js +15 -0
- package/esm/models/classifiersetfilter.d.ts +32 -0
- package/esm/models/classifiersetfilter.js +21 -0
- package/esm/models/classifiersetfilteroperator.d.ts +16 -0
- package/esm/models/classifiersetfilteroperator.js +15 -0
- package/esm/models/decisionsresponse.d.ts +3 -3
- package/esm/models/decisionsresponse.js +3 -3
- package/esm/models/extractiondateanswer.d.ts +46 -0
- package/esm/models/extractiondateanswer.js +37 -0
- package/esm/models/extractiondatefield.d.ts +22 -0
- package/esm/models/extractiondatefield.js +20 -0
- package/esm/models/extractiondatetimeanswer.d.ts +46 -0
- package/esm/models/extractiondatetimeanswer.js +37 -0
- package/esm/models/extractiondatetimefield.d.ts +22 -0
- package/esm/models/extractiondatetimefield.js +20 -0
- package/esm/models/extractiondurationanswer.d.ts +50 -0
- package/esm/models/extractiondurationanswer.js +38 -0
- package/esm/models/extractiondurationfield.d.ts +34 -0
- package/esm/models/extractiondurationfield.js +23 -0
- package/esm/models/extractionestimateanswer.d.ts +89 -0
- package/esm/models/extractionestimateanswer.js +80 -0
- package/esm/models/extractionestimatefield.d.ts +70 -0
- package/esm/models/extractionestimatefield.js +65 -0
- package/esm/models/extractionforecastanswer.d.ts +72 -0
- package/esm/models/extractionforecastanswer.js +72 -0
- package/esm/models/extractionforecastfield.d.ts +90 -0
- package/esm/models/extractionforecastfield.js +80 -0
- package/esm/models/extractionforecaststep.d.ts +50 -0
- package/esm/models/extractionforecaststep.js +57 -0
- package/esm/models/extractionlistanswer.d.ts +51 -0
- package/esm/models/extractionlistanswer.js +47 -0
- package/esm/models/extractionlistfield.d.ts +38 -0
- package/esm/models/extractionlistfield.js +31 -0
- package/esm/models/extractionnumberanswer.d.ts +46 -0
- package/esm/models/extractionnumberanswer.js +37 -0
- package/esm/models/extractionnumberfield.d.ts +31 -0
- package/esm/models/extractionnumberfield.js +23 -0
- package/esm/models/extractionsrequest.d.ts +75 -0
- package/esm/models/extractionsrequest.js +65 -0
- package/esm/models/extractionsresponse.d.ts +42 -0
- package/esm/models/extractionsresponse.js +61 -0
- package/esm/models/extractionsusage.d.ts +19 -0
- package/esm/models/extractionsusage.js +29 -0
- package/esm/models/extractiontextanswer.d.ts +46 -0
- package/esm/models/extractiontextanswer.js +37 -0
- package/esm/models/extractiontextfield.d.ts +22 -0
- package/esm/models/extractiontextfield.js +20 -0
- package/esm/models/extractiontimeanswer.d.ts +46 -0
- package/esm/models/extractiontimeanswer.js +37 -0
- package/esm/models/extractiontimefield.d.ts +22 -0
- package/esm/models/extractiontimefield.js +20 -0
- package/esm/models/filter.d.ts +10 -0
- package/esm/models/filter.js +14 -0
- package/esm/models/generationresponse.d.ts +1 -0
- package/esm/models/generationresponse.js +1 -0
- package/esm/models/imagegenerationrequest.d.ts +2 -2
- package/esm/models/index.d.ts +33 -0
- package/esm/models/index.js +33 -0
- package/esm/models/observabilityfilterrulegroup.d.ts +5 -5
- package/esm/models/observabilityfilterrulegroup.js +5 -7
- package/esm/models/operations/createapialphaextractions.d.ts +57 -0
- package/esm/models/operations/createapialphaextractions.js +26 -0
- package/esm/models/operations/deleteinternvaultsecret.d.ts +1 -1
- package/esm/models/operations/deletevaultsecret.d.ts +1 -1
- package/esm/models/operations/getanalyticsmeta.d.ts +6 -50
- package/esm/models/operations/getanalyticsmeta.js +6 -41
- package/esm/models/operations/index.d.ts +1 -0
- package/esm/models/operations/index.js +1 -0
- package/esm/models/operations/queryanalytics.d.ts +5 -85
- package/esm/models/operations/queryanalytics.js +3 -60
- package/esm/models/operator.d.ts +50 -0
- package/esm/models/operator.js +46 -0
- package/esm/models/scalarfilter.d.ts +35 -0
- package/esm/models/scalarfilter.js +21 -0
- package/esm/models/scalarfilteroperator.d.ts +20 -0
- package/esm/models/scalarfilteroperator.js +19 -0
- package/esm/models/setfilter.d.ts +37 -0
- package/esm/models/setfilter.js +27 -0
- package/esm/models/setfilteroperator.d.ts +16 -0
- package/esm/models/setfilteroperator.js +15 -0
- package/esm/models/vaultsecretwriterequest.d.ts +1 -1
- package/esm/sdk/alpha.d.ts +3 -0
- package/esm/sdk/alpha.js +4 -0
- package/esm/sdk/extractions.d.ts +13 -0
- package/esm/sdk/extractions.js +19 -0
- package/jsr.json +1 -1
- package/package.json +7 -7
package/esm/models/index.d.ts
CHANGED
|
@@ -227,6 +227,11 @@ export * from "./chattoolmessage.js";
|
|
|
227
227
|
export * from "./chatusage.js";
|
|
228
228
|
export * from "./chatusermessage.js";
|
|
229
229
|
export * from "./chatwebsearchshorthand.js";
|
|
230
|
+
export * from "./classifierfiltersfilter.js";
|
|
231
|
+
export * from "./classifierscalarfilter.js";
|
|
232
|
+
export * from "./classifierscalarfilteroperator.js";
|
|
233
|
+
export * from "./classifiersetfilter.js";
|
|
234
|
+
export * from "./classifiersetfilteroperator.js";
|
|
230
235
|
export * from "./clientclosedrequestresponseerrordata.js";
|
|
231
236
|
export * from "./codeinterpretercallcodedeltaevent.js";
|
|
232
237
|
export * from "./codeinterpretercallcodedoneevent.js";
|
|
@@ -326,6 +331,28 @@ export * from "./enumcapability.js";
|
|
|
326
331
|
export * from "./errorevent.js";
|
|
327
332
|
export * from "./externaluser.js";
|
|
328
333
|
export * from "./externaluserresponse.js";
|
|
334
|
+
export * from "./extractiondateanswer.js";
|
|
335
|
+
export * from "./extractiondatefield.js";
|
|
336
|
+
export * from "./extractiondatetimeanswer.js";
|
|
337
|
+
export * from "./extractiondatetimefield.js";
|
|
338
|
+
export * from "./extractiondurationanswer.js";
|
|
339
|
+
export * from "./extractiondurationfield.js";
|
|
340
|
+
export * from "./extractionestimateanswer.js";
|
|
341
|
+
export * from "./extractionestimatefield.js";
|
|
342
|
+
export * from "./extractionforecastanswer.js";
|
|
343
|
+
export * from "./extractionforecastfield.js";
|
|
344
|
+
export * from "./extractionforecaststep.js";
|
|
345
|
+
export * from "./extractionlistanswer.js";
|
|
346
|
+
export * from "./extractionlistfield.js";
|
|
347
|
+
export * from "./extractionnumberanswer.js";
|
|
348
|
+
export * from "./extractionnumberfield.js";
|
|
349
|
+
export * from "./extractionsrequest.js";
|
|
350
|
+
export * from "./extractionsresponse.js";
|
|
351
|
+
export * from "./extractionsusage.js";
|
|
352
|
+
export * from "./extractiontextanswer.js";
|
|
353
|
+
export * from "./extractiontextfield.js";
|
|
354
|
+
export * from "./extractiontimeanswer.js";
|
|
355
|
+
export * from "./extractiontimefield.js";
|
|
329
356
|
export * from "./failabletoolcallstatus.js";
|
|
330
357
|
export * from "./filecitation.js";
|
|
331
358
|
export * from "./filedeleteresponse.js";
|
|
@@ -337,6 +364,7 @@ export * from "./fileresponse.js";
|
|
|
337
364
|
export * from "./filesearchservertool.js";
|
|
338
365
|
export * from "./filesservertool.js";
|
|
339
366
|
export * from "./filesservertoolconfig.js";
|
|
367
|
+
export * from "./filter.js";
|
|
340
368
|
export * from "./finishreason.js";
|
|
341
369
|
export * from "./forbiddenresponseerrordata.js";
|
|
342
370
|
export * from "./formatjsonobjectconfig.js";
|
|
@@ -533,6 +561,7 @@ export * from "./openrouterfiledeleted.js";
|
|
|
533
561
|
export * from "./openrouterfilelist.js";
|
|
534
562
|
export * from "./openroutermetadata.js";
|
|
535
563
|
export * from "./openrouterwebsearchservertool.js";
|
|
564
|
+
export * from "./operator.js";
|
|
536
565
|
export * from "./oranthropicbashtoolresult.js";
|
|
537
566
|
export * from "./oranthropiccontentblock.js";
|
|
538
567
|
export * from "./oranthropicnullablecaller.js";
|
|
@@ -678,6 +707,8 @@ export * from "./responsesstreamingresponse.js";
|
|
|
678
707
|
export * from "./routerattempt.js";
|
|
679
708
|
export * from "./routerparams.js";
|
|
680
709
|
export * from "./routingstrategy.js";
|
|
710
|
+
export * from "./scalarfilter.js";
|
|
711
|
+
export * from "./scalarfilteroperator.js";
|
|
681
712
|
export * from "./scimgroup.js";
|
|
682
713
|
export * from "./scimgroupmapping.js";
|
|
683
714
|
export * from "./scimsyncjob.js";
|
|
@@ -700,6 +731,8 @@ export * from "./serviceunavailableresponseerrordata.js";
|
|
|
700
731
|
export * from "./sessioncostitem.js";
|
|
701
732
|
export * from "./sessioncostmeta.js";
|
|
702
733
|
export * from "./sessioncostresponse.js";
|
|
734
|
+
export * from "./setfilter.js";
|
|
735
|
+
export * from "./setfilteroperator.js";
|
|
703
736
|
export * from "./shellcallitem.js";
|
|
704
737
|
export * from "./shellcalloutputcontent.js";
|
|
705
738
|
export * from "./shellcalloutputitem.js";
|
package/esm/models/index.js
CHANGED
|
@@ -231,6 +231,11 @@ export * from "./chattoolmessage.js";
|
|
|
231
231
|
export * from "./chatusage.js";
|
|
232
232
|
export * from "./chatusermessage.js";
|
|
233
233
|
export * from "./chatwebsearchshorthand.js";
|
|
234
|
+
export * from "./classifierfiltersfilter.js";
|
|
235
|
+
export * from "./classifierscalarfilter.js";
|
|
236
|
+
export * from "./classifierscalarfilteroperator.js";
|
|
237
|
+
export * from "./classifiersetfilter.js";
|
|
238
|
+
export * from "./classifiersetfilteroperator.js";
|
|
234
239
|
export * from "./clientclosedrequestresponseerrordata.js";
|
|
235
240
|
export * from "./codeinterpretercallcodedeltaevent.js";
|
|
236
241
|
export * from "./codeinterpretercallcodedoneevent.js";
|
|
@@ -330,6 +335,28 @@ export * from "./enumcapability.js";
|
|
|
330
335
|
export * from "./errorevent.js";
|
|
331
336
|
export * from "./externaluser.js";
|
|
332
337
|
export * from "./externaluserresponse.js";
|
|
338
|
+
export * from "./extractiondateanswer.js";
|
|
339
|
+
export * from "./extractiondatefield.js";
|
|
340
|
+
export * from "./extractiondatetimeanswer.js";
|
|
341
|
+
export * from "./extractiondatetimefield.js";
|
|
342
|
+
export * from "./extractiondurationanswer.js";
|
|
343
|
+
export * from "./extractiondurationfield.js";
|
|
344
|
+
export * from "./extractionestimateanswer.js";
|
|
345
|
+
export * from "./extractionestimatefield.js";
|
|
346
|
+
export * from "./extractionforecastanswer.js";
|
|
347
|
+
export * from "./extractionforecastfield.js";
|
|
348
|
+
export * from "./extractionforecaststep.js";
|
|
349
|
+
export * from "./extractionlistanswer.js";
|
|
350
|
+
export * from "./extractionlistfield.js";
|
|
351
|
+
export * from "./extractionnumberanswer.js";
|
|
352
|
+
export * from "./extractionnumberfield.js";
|
|
353
|
+
export * from "./extractionsrequest.js";
|
|
354
|
+
export * from "./extractionsresponse.js";
|
|
355
|
+
export * from "./extractionsusage.js";
|
|
356
|
+
export * from "./extractiontextanswer.js";
|
|
357
|
+
export * from "./extractiontextfield.js";
|
|
358
|
+
export * from "./extractiontimeanswer.js";
|
|
359
|
+
export * from "./extractiontimefield.js";
|
|
333
360
|
export * from "./failabletoolcallstatus.js";
|
|
334
361
|
export * from "./filecitation.js";
|
|
335
362
|
export * from "./filedeleteresponse.js";
|
|
@@ -341,6 +368,7 @@ export * from "./fileresponse.js";
|
|
|
341
368
|
export * from "./filesearchservertool.js";
|
|
342
369
|
export * from "./filesservertool.js";
|
|
343
370
|
export * from "./filesservertoolconfig.js";
|
|
371
|
+
export * from "./filter.js";
|
|
344
372
|
export * from "./finishreason.js";
|
|
345
373
|
export * from "./forbiddenresponseerrordata.js";
|
|
346
374
|
export * from "./formatjsonobjectconfig.js";
|
|
@@ -537,6 +565,7 @@ export * from "./openrouterfiledeleted.js";
|
|
|
537
565
|
export * from "./openrouterfilelist.js";
|
|
538
566
|
export * from "./openroutermetadata.js";
|
|
539
567
|
export * from "./openrouterwebsearchservertool.js";
|
|
568
|
+
export * from "./operator.js";
|
|
540
569
|
export * from "./oranthropicbashtoolresult.js";
|
|
541
570
|
export * from "./oranthropiccontentblock.js";
|
|
542
571
|
export * from "./oranthropicnullablecaller.js";
|
|
@@ -682,6 +711,8 @@ export * from "./responsesstreamingresponse.js";
|
|
|
682
711
|
export * from "./routerattempt.js";
|
|
683
712
|
export * from "./routerparams.js";
|
|
684
713
|
export * from "./routingstrategy.js";
|
|
714
|
+
export * from "./scalarfilter.js";
|
|
715
|
+
export * from "./scalarfilteroperator.js";
|
|
685
716
|
export * from "./scimgroup.js";
|
|
686
717
|
export * from "./scimgroupmapping.js";
|
|
687
718
|
export * from "./scimsyncjob.js";
|
|
@@ -704,6 +735,8 @@ export * from "./serviceunavailableresponseerrordata.js";
|
|
|
704
735
|
export * from "./sessioncostitem.js";
|
|
705
736
|
export * from "./sessioncostmeta.js";
|
|
706
737
|
export * from "./sessioncostresponse.js";
|
|
738
|
+
export * from "./setfilter.js";
|
|
739
|
+
export * from "./setfilteroperator.js";
|
|
707
740
|
export * from "./shellcallitem.js";
|
|
708
741
|
export * from "./shellcalloutputcontent.js";
|
|
709
742
|
export * from "./shellcalloutputitem.js";
|
|
@@ -22,7 +22,7 @@ export declare const Field: {
|
|
|
22
22
|
readonly CompletionTokens: "completion_tokens";
|
|
23
23
|
};
|
|
24
24
|
export type Field = OpenEnum<typeof Field>;
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const OperatorEnum: {
|
|
26
26
|
readonly Equals: "equals";
|
|
27
27
|
readonly NotEquals: "not_equals";
|
|
28
28
|
readonly Contains: "contains";
|
|
@@ -37,11 +37,11 @@ export declare const Operator: {
|
|
|
37
37
|
readonly Exists: "exists";
|
|
38
38
|
readonly NotExists: "not_exists";
|
|
39
39
|
};
|
|
40
|
-
export type
|
|
40
|
+
export type OperatorEnum = OpenEnum<typeof OperatorEnum>;
|
|
41
41
|
export type ObservabilityFilterRuleGroupValue = string | number;
|
|
42
42
|
export type Rule = {
|
|
43
43
|
field: Field;
|
|
44
|
-
operator:
|
|
44
|
+
operator: OperatorEnum;
|
|
45
45
|
value?: string | number | undefined;
|
|
46
46
|
};
|
|
47
47
|
export type ObservabilityFilterRuleGroup = {
|
|
@@ -57,9 +57,9 @@ export declare const Field$inboundSchema: z.ZodType<Field, unknown>;
|
|
|
57
57
|
/** @internal */
|
|
58
58
|
export declare const Field$outboundSchema: z.ZodType<string, Field>;
|
|
59
59
|
/** @internal */
|
|
60
|
-
export declare const
|
|
60
|
+
export declare const OperatorEnum$inboundSchema: z.ZodType<OperatorEnum, unknown>;
|
|
61
61
|
/** @internal */
|
|
62
|
-
export declare const
|
|
62
|
+
export declare const OperatorEnum$outboundSchema: z.ZodType<string, OperatorEnum>;
|
|
63
63
|
/** @internal */
|
|
64
64
|
export declare const ObservabilityFilterRuleGroupValue$inboundSchema: z.ZodType<ObservabilityFilterRuleGroupValue, unknown>;
|
|
65
65
|
/** @internal */
|
|
@@ -23,7 +23,7 @@ export const Field = {
|
|
|
23
23
|
PromptTokens: "prompt_tokens",
|
|
24
24
|
CompletionTokens: "completion_tokens",
|
|
25
25
|
};
|
|
26
|
-
export const
|
|
26
|
+
export const OperatorEnum = {
|
|
27
27
|
Equals: "equals",
|
|
28
28
|
NotEquals: "not_equals",
|
|
29
29
|
Contains: "contains",
|
|
@@ -51,11 +51,9 @@ export const Field$inboundSchema = openEnums
|
|
|
51
51
|
export const Field$outboundSchema = openEnums
|
|
52
52
|
.outboundSchema(Field);
|
|
53
53
|
/** @internal */
|
|
54
|
-
export const
|
|
55
|
-
.inboundSchema(Operator);
|
|
54
|
+
export const OperatorEnum$inboundSchema = openEnums.inboundSchema(OperatorEnum);
|
|
56
55
|
/** @internal */
|
|
57
|
-
export const
|
|
58
|
-
.outboundSchema(Operator);
|
|
56
|
+
export const OperatorEnum$outboundSchema = openEnums.outboundSchema(OperatorEnum);
|
|
59
57
|
/** @internal */
|
|
60
58
|
export const ObservabilityFilterRuleGroupValue$inboundSchema = z.union([z.string(), z.number()]);
|
|
61
59
|
/** @internal */
|
|
@@ -69,13 +67,13 @@ export function observabilityFilterRuleGroupValueFromJSON(jsonString) {
|
|
|
69
67
|
/** @internal */
|
|
70
68
|
export const Rule$inboundSchema = z.object({
|
|
71
69
|
field: Field$inboundSchema,
|
|
72
|
-
operator:
|
|
70
|
+
operator: OperatorEnum$inboundSchema,
|
|
73
71
|
value: z.union([z.string(), z.number()]).optional(),
|
|
74
72
|
});
|
|
75
73
|
/** @internal */
|
|
76
74
|
export const Rule$outboundSchema = z.object({
|
|
77
75
|
field: Field$outboundSchema,
|
|
78
|
-
operator:
|
|
76
|
+
operator: OperatorEnum$outboundSchema,
|
|
79
77
|
value: z.union([z.string(), z.number()]).optional(),
|
|
80
78
|
});
|
|
81
79
|
export function ruleToJSON(rule) {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import * as models from "../index.js";
|
|
3
|
+
export declare const CreateApiAlphaExtractionsServerList: readonly ["https://openrouter.ai"];
|
|
4
|
+
export type CreateApiAlphaExtractionsGlobals = {
|
|
5
|
+
/**
|
|
6
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This is used to track API usage per application.
|
|
10
|
+
*/
|
|
11
|
+
httpReferer?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
*/
|
|
17
|
+
appTitle?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
*/
|
|
23
|
+
appCategories?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
export type CreateApiAlphaExtractionsRequest = {
|
|
26
|
+
/**
|
|
27
|
+
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* This is used to track API usage per application.
|
|
31
|
+
*/
|
|
32
|
+
httpReferer?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* The app display name allows you to customize how your app appears in OpenRouter's dashboard.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
*/
|
|
38
|
+
appTitle?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
*/
|
|
44
|
+
appCategories?: string | undefined;
|
|
45
|
+
extractionsRequest: models.ExtractionsRequest;
|
|
46
|
+
};
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type CreateApiAlphaExtractionsRequest$Outbound = {
|
|
49
|
+
"HTTP-Referer"?: string | undefined;
|
|
50
|
+
appTitle?: string | undefined;
|
|
51
|
+
appCategories?: string | undefined;
|
|
52
|
+
ExtractionsRequest: models.ExtractionsRequest$Outbound;
|
|
53
|
+
};
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare const CreateApiAlphaExtractionsRequest$outboundSchema: z.ZodType<CreateApiAlphaExtractionsRequest$Outbound, CreateApiAlphaExtractionsRequest>;
|
|
56
|
+
export declare function createApiAlphaExtractionsRequestToJSON(createApiAlphaExtractionsRequest: CreateApiAlphaExtractionsRequest): string;
|
|
57
|
+
//# sourceMappingURL=createapialphaextractions.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b3543519030d
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { ExtractionsRequest$outboundSchema as models_ExtractionsRequest$outboundSchema } from "../extractionsrequest.js";
|
|
8
|
+
export const CreateApiAlphaExtractionsServerList = [
|
|
9
|
+
"https://openrouter.ai",
|
|
10
|
+
];
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const CreateApiAlphaExtractionsRequest$outboundSchema = z.object({
|
|
13
|
+
httpReferer: z.string().optional(),
|
|
14
|
+
appTitle: z.string().optional(),
|
|
15
|
+
appCategories: z.string().optional(),
|
|
16
|
+
extractionsRequest: models_ExtractionsRequest$outboundSchema,
|
|
17
|
+
}).transform((v) => {
|
|
18
|
+
return remap$(v, {
|
|
19
|
+
httpReferer: "HTTP-Referer",
|
|
20
|
+
extractionsRequest: "ExtractionsRequest",
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export function createApiAlphaExtractionsRequestToJSON(createApiAlphaExtractionsRequest) {
|
|
24
|
+
return JSON.stringify(CreateApiAlphaExtractionsRequest$outboundSchema.parse(createApiAlphaExtractionsRequest));
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=createapialphaextractions.js.map
|
|
@@ -45,7 +45,7 @@ export type DeleteInternVaultSecretRequest = {
|
|
|
45
45
|
*/
|
|
46
46
|
internId: string;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Existing secret name. Accepts legacy names stored before the 255-character write bound; new writes still require the documented name format.
|
|
49
49
|
*/
|
|
50
50
|
name: string;
|
|
51
51
|
};
|
|
@@ -41,7 +41,7 @@ export type DeleteVaultSecretRequest = {
|
|
|
41
41
|
*/
|
|
42
42
|
appCategories?: string | undefined;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Existing secret name. Accepts legacy names stored before the 255-character write bound; new writes still require the documented name format.
|
|
45
45
|
*/
|
|
46
46
|
name: string;
|
|
47
47
|
};
|
|
@@ -2,6 +2,7 @@ import * as z from "zod/v4";
|
|
|
2
2
|
import { OpenEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import * as models from "../index.js";
|
|
5
6
|
export type GetAnalyticsMetaGlobals = {
|
|
6
7
|
/**
|
|
7
8
|
* The app identifier should be your app's URL and is used as the primary identifier for rankings.
|
|
@@ -57,7 +58,7 @@ export type Dimension = {
|
|
|
57
58
|
/**
|
|
58
59
|
* Granularity identifier
|
|
59
60
|
*/
|
|
60
|
-
export declare const
|
|
61
|
+
export declare const Name: {
|
|
61
62
|
readonly Minute: "minute";
|
|
62
63
|
readonly Hour: "hour";
|
|
63
64
|
readonly Day: "day";
|
|
@@ -67,7 +68,7 @@ export declare const GranularityName: {
|
|
|
67
68
|
/**
|
|
68
69
|
* Granularity identifier
|
|
69
70
|
*/
|
|
70
|
-
export type
|
|
71
|
+
export type Name = OpenEnum<typeof Name>;
|
|
71
72
|
export type Granularity = {
|
|
72
73
|
/**
|
|
73
74
|
* Human-readable label
|
|
@@ -76,7 +77,7 @@ export type Granularity = {
|
|
|
76
77
|
/**
|
|
77
78
|
* Granularity identifier
|
|
78
79
|
*/
|
|
79
|
-
name:
|
|
80
|
+
name: Name;
|
|
80
81
|
};
|
|
81
82
|
/**
|
|
82
83
|
* How this metric value should be formatted for display (e.g. percent → multiply by 100 and append %, currency → prefix with $)
|
|
@@ -110,49 +111,11 @@ export type Metric = {
|
|
|
110
111
|
*/
|
|
111
112
|
name: string;
|
|
112
113
|
};
|
|
113
|
-
/**
|
|
114
|
-
* Operator identifier used in filter definitions
|
|
115
|
-
*/
|
|
116
|
-
export declare const OperatorName: {
|
|
117
|
-
readonly Eq: "eq";
|
|
118
|
-
readonly Neq: "neq";
|
|
119
|
-
readonly In: "in";
|
|
120
|
-
readonly NotIn: "not_in";
|
|
121
|
-
readonly Gt: "gt";
|
|
122
|
-
readonly Gte: "gte";
|
|
123
|
-
readonly Lt: "lt";
|
|
124
|
-
readonly Lte: "lte";
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* Operator identifier used in filter definitions
|
|
128
|
-
*/
|
|
129
|
-
export type OperatorName = OpenEnum<typeof OperatorName>;
|
|
130
|
-
/**
|
|
131
|
-
* Whether the operator expects a single value or an array
|
|
132
|
-
*/
|
|
133
|
-
export declare const ValueType: {
|
|
134
|
-
readonly Scalar: "scalar";
|
|
135
|
-
readonly Array: "array";
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Whether the operator expects a single value or an array
|
|
139
|
-
*/
|
|
140
|
-
export type ValueType = OpenEnum<typeof ValueType>;
|
|
141
|
-
export type Operator = {
|
|
142
|
-
/**
|
|
143
|
-
* Operator identifier used in filter definitions
|
|
144
|
-
*/
|
|
145
|
-
name: OperatorName;
|
|
146
|
-
/**
|
|
147
|
-
* Whether the operator expects a single value or an array
|
|
148
|
-
*/
|
|
149
|
-
valueType: ValueType;
|
|
150
|
-
};
|
|
151
114
|
export type GetAnalyticsMetaData = {
|
|
152
115
|
dimensions: Array<Dimension>;
|
|
153
116
|
granularities: Array<Granularity>;
|
|
154
117
|
metrics: Array<Metric>;
|
|
155
|
-
operators: Array<Operator>;
|
|
118
|
+
operators: Array<models.Operator>;
|
|
156
119
|
};
|
|
157
120
|
/**
|
|
158
121
|
* Returns analytics query metadata
|
|
@@ -173,7 +136,7 @@ export declare function getAnalyticsMetaRequestToJSON(getAnalyticsMetaRequest: G
|
|
|
173
136
|
export declare const Dimension$inboundSchema: z.ZodType<Dimension, unknown>;
|
|
174
137
|
export declare function dimensionFromJSON(jsonString: string): SafeParseResult<Dimension, SDKValidationError>;
|
|
175
138
|
/** @internal */
|
|
176
|
-
export declare const
|
|
139
|
+
export declare const Name$inboundSchema: z.ZodType<Name, unknown>;
|
|
177
140
|
/** @internal */
|
|
178
141
|
export declare const Granularity$inboundSchema: z.ZodType<Granularity, unknown>;
|
|
179
142
|
export declare function granularityFromJSON(jsonString: string): SafeParseResult<Granularity, SDKValidationError>;
|
|
@@ -183,13 +146,6 @@ export declare const DisplayFormat$inboundSchema: z.ZodType<DisplayFormat, unkno
|
|
|
183
146
|
export declare const Metric$inboundSchema: z.ZodType<Metric, unknown>;
|
|
184
147
|
export declare function metricFromJSON(jsonString: string): SafeParseResult<Metric, SDKValidationError>;
|
|
185
148
|
/** @internal */
|
|
186
|
-
export declare const OperatorName$inboundSchema: z.ZodType<OperatorName, unknown>;
|
|
187
|
-
/** @internal */
|
|
188
|
-
export declare const ValueType$inboundSchema: z.ZodType<ValueType, unknown>;
|
|
189
|
-
/** @internal */
|
|
190
|
-
export declare const Operator$inboundSchema: z.ZodType<Operator, unknown>;
|
|
191
|
-
export declare function operatorFromJSON(jsonString: string): SafeParseResult<Operator, SDKValidationError>;
|
|
192
|
-
/** @internal */
|
|
193
149
|
export declare const GetAnalyticsMetaData$inboundSchema: z.ZodType<GetAnalyticsMetaData, unknown>;
|
|
194
150
|
export declare function getAnalyticsMetaDataFromJSON(jsonString: string): SafeParseResult<GetAnalyticsMetaData, SDKValidationError>;
|
|
195
151
|
/** @internal */
|
|
@@ -6,10 +6,11 @@ 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
8
|
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { Operator$inboundSchema as models_Operator$inboundSchema } from "../operator.js";
|
|
9
10
|
/**
|
|
10
11
|
* Granularity identifier
|
|
11
12
|
*/
|
|
12
|
-
export const
|
|
13
|
+
export const Name = {
|
|
13
14
|
Minute: "minute",
|
|
14
15
|
Hour: "hour",
|
|
15
16
|
Day: "day",
|
|
@@ -26,26 +27,6 @@ export const DisplayFormat = {
|
|
|
26
27
|
Latency: "latency",
|
|
27
28
|
Throughput: "throughput",
|
|
28
29
|
};
|
|
29
|
-
/**
|
|
30
|
-
* Operator identifier used in filter definitions
|
|
31
|
-
*/
|
|
32
|
-
export const OperatorName = {
|
|
33
|
-
Eq: "eq",
|
|
34
|
-
Neq: "neq",
|
|
35
|
-
In: "in",
|
|
36
|
-
NotIn: "not_in",
|
|
37
|
-
Gt: "gt",
|
|
38
|
-
Gte: "gte",
|
|
39
|
-
Lt: "lt",
|
|
40
|
-
Lte: "lte",
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Whether the operator expects a single value or an array
|
|
44
|
-
*/
|
|
45
|
-
export const ValueType = {
|
|
46
|
-
Scalar: "scalar",
|
|
47
|
-
Array: "array",
|
|
48
|
-
};
|
|
49
30
|
/** @internal */
|
|
50
31
|
export const GetAnalyticsMetaRequest$outboundSchema = z.object({
|
|
51
32
|
httpReferer: z.string().optional(),
|
|
@@ -72,12 +53,13 @@ export function dimensionFromJSON(jsonString) {
|
|
|
72
53
|
return safeParse(jsonString, (x) => Dimension$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Dimension' from JSON`);
|
|
73
54
|
}
|
|
74
55
|
/** @internal */
|
|
75
|
-
export const
|
|
56
|
+
export const Name$inboundSchema = openEnums
|
|
57
|
+
.inboundSchema(Name);
|
|
76
58
|
/** @internal */
|
|
77
59
|
export const Granularity$inboundSchema = z
|
|
78
60
|
.object({
|
|
79
61
|
display_label: z.string(),
|
|
80
|
-
name:
|
|
62
|
+
name: Name$inboundSchema,
|
|
81
63
|
}).transform((v) => {
|
|
82
64
|
return remap$(v, {
|
|
83
65
|
"display_label": "displayLabel",
|
|
@@ -105,28 +87,11 @@ export function metricFromJSON(jsonString) {
|
|
|
105
87
|
return safeParse(jsonString, (x) => Metric$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Metric' from JSON`);
|
|
106
88
|
}
|
|
107
89
|
/** @internal */
|
|
108
|
-
export const OperatorName$inboundSchema = openEnums.inboundSchema(OperatorName);
|
|
109
|
-
/** @internal */
|
|
110
|
-
export const ValueType$inboundSchema = openEnums
|
|
111
|
-
.inboundSchema(ValueType);
|
|
112
|
-
/** @internal */
|
|
113
|
-
export const Operator$inboundSchema = z.object({
|
|
114
|
-
name: OperatorName$inboundSchema,
|
|
115
|
-
value_type: ValueType$inboundSchema,
|
|
116
|
-
}).transform((v) => {
|
|
117
|
-
return remap$(v, {
|
|
118
|
-
"value_type": "valueType",
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
export function operatorFromJSON(jsonString) {
|
|
122
|
-
return safeParse(jsonString, (x) => Operator$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Operator' from JSON`);
|
|
123
|
-
}
|
|
124
|
-
/** @internal */
|
|
125
90
|
export const GetAnalyticsMetaData$inboundSchema = z.object({
|
|
126
91
|
dimensions: z.array(z.lazy(() => Dimension$inboundSchema)),
|
|
127
92
|
granularities: z.array(z.lazy(() => Granularity$inboundSchema)),
|
|
128
93
|
metrics: z.array(z.lazy(() => Metric$inboundSchema)),
|
|
129
|
-
operators: z.array(
|
|
94
|
+
operators: z.array(models_Operator$inboundSchema),
|
|
130
95
|
});
|
|
131
96
|
export function getAnalyticsMetaDataFromJSON(jsonString) {
|
|
132
97
|
return safeParse(jsonString, (x) => GetAnalyticsMetaData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAnalyticsMetaData' from JSON`);
|
|
@@ -7,6 +7,7 @@ export * from "./bulkunassignkeysfromguardrail.js";
|
|
|
7
7
|
export * from "./bulkunassignmembersfromguardrail.js";
|
|
8
8
|
export * from "./copyvaultsecretstointern.js";
|
|
9
9
|
export * from "./createapialphadecisions.js";
|
|
10
|
+
export * from "./createapialphaextractions.js";
|
|
10
11
|
export * from "./createaudiospeech.js";
|
|
11
12
|
export * from "./createaudiotranscriptions.js";
|
|
12
13
|
export * from "./createaudiotranscriptionsmultipart.js";
|
|
@@ -11,6 +11,7 @@ export * from "./bulkunassignkeysfromguardrail.js";
|
|
|
11
11
|
export * from "./bulkunassignmembersfromguardrail.js";
|
|
12
12
|
export * from "./copyvaultsecretstointern.js";
|
|
13
13
|
export * from "./createapialphadecisions.js";
|
|
14
|
+
export * from "./createapialphaextractions.js";
|
|
14
15
|
export * from "./createaudiospeech.js";
|
|
15
16
|
export * from "./createaudiotranscriptions.js";
|
|
16
17
|
export * from "./createaudiotranscriptionsmultipart.js";
|