@openrouter/sdk 1.5.22 → 1.5.24

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.
Files changed (40) hide show
  1. package/esm/lib/config.d.ts +2 -2
  2. package/esm/lib/config.js +2 -2
  3. package/esm/models/classifierfiltersfilter.d.ts +10 -0
  4. package/esm/models/classifierfiltersfilter.js +16 -0
  5. package/esm/models/classifierscalarfilter.d.ts +35 -0
  6. package/esm/models/classifierscalarfilter.js +21 -0
  7. package/esm/models/classifierscalarfilteroperator.d.ts +16 -0
  8. package/esm/models/classifierscalarfilteroperator.js +15 -0
  9. package/esm/models/classifiersetfilter.d.ts +32 -0
  10. package/esm/models/classifiersetfilter.js +21 -0
  11. package/esm/models/classifiersetfilteroperator.d.ts +16 -0
  12. package/esm/models/classifiersetfilteroperator.js +15 -0
  13. package/esm/models/filter.d.ts +10 -0
  14. package/esm/models/filter.js +14 -0
  15. package/esm/models/imagegenerationrequest.d.ts +2 -2
  16. package/esm/models/index.d.ts +11 -0
  17. package/esm/models/index.js +11 -0
  18. package/esm/models/jevrouterplugin.d.ts +1 -1
  19. package/esm/models/observabilityfilterrulegroup.d.ts +5 -5
  20. package/esm/models/observabilityfilterrulegroup.js +5 -7
  21. package/esm/models/operations/createkeys.d.ts +1 -1
  22. package/esm/models/operations/deleteinternvaultsecret.d.ts +1 -1
  23. package/esm/models/operations/deletevaultsecret.d.ts +1 -1
  24. package/esm/models/operations/getanalyticsmeta.d.ts +6 -50
  25. package/esm/models/operations/getanalyticsmeta.js +6 -41
  26. package/esm/models/operations/queryanalytics.d.ts +5 -85
  27. package/esm/models/operations/queryanalytics.js +3 -60
  28. package/esm/models/operator.d.ts +50 -0
  29. package/esm/models/operator.js +46 -0
  30. package/esm/models/scalarfilter.d.ts +35 -0
  31. package/esm/models/scalarfilter.js +21 -0
  32. package/esm/models/scalarfilteroperator.d.ts +20 -0
  33. package/esm/models/scalarfilteroperator.js +19 -0
  34. package/esm/models/setfilter.d.ts +37 -0
  35. package/esm/models/setfilter.js +27 -0
  36. package/esm/models/setfilteroperator.d.ts +16 -0
  37. package/esm/models/setfilteroperator.js +15 -0
  38. package/esm/models/vaultsecretwriterequest.d.ts +1 -1
  39. package/jsr.json +1 -1
  40. package/package.json +4 -4
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
50
50
  export declare const SDK_METADATA: {
51
51
  readonly language: "typescript";
52
52
  readonly openapiDocVersion: "1.0.0";
53
- readonly sdkVersion: "1.5.22";
53
+ readonly sdkVersion: "1.5.24";
54
54
  readonly genVersion: "2.950.13";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.5.22 2.950.13 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.5.24 2.950.13 1.0.0 @openrouter/sdk";
56
56
  };
57
57
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
29
29
  export const SDK_METADATA = {
30
30
  language: "typescript",
31
31
  openapiDocVersion: "1.0.0",
32
- sdkVersion: "1.5.22",
32
+ sdkVersion: "1.5.24",
33
33
  genVersion: "2.950.13",
34
- userAgent: "speakeasy-sdk/typescript 1.5.22 2.950.13 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.5.24 2.950.13 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,10 @@
1
+ import * as z from "zod/v4";
2
+ import { ClassifierScalarFilter, ClassifierScalarFilter$Outbound } from "./classifierscalarfilter.js";
3
+ import { ClassifierSetFilter, ClassifierSetFilter$Outbound } from "./classifiersetfilter.js";
4
+ export type ClassifierFiltersFilter = ClassifierScalarFilter | ClassifierSetFilter;
5
+ /** @internal */
6
+ export type ClassifierFiltersFilter$Outbound = ClassifierScalarFilter$Outbound | ClassifierSetFilter$Outbound;
7
+ /** @internal */
8
+ export declare const ClassifierFiltersFilter$outboundSchema: z.ZodType<ClassifierFiltersFilter$Outbound, ClassifierFiltersFilter>;
9
+ export declare function classifierFiltersFilterToJSON(classifierFiltersFilter: ClassifierFiltersFilter): string;
10
+ //# sourceMappingURL=classifierfiltersfilter.d.ts.map
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0dfaa0b42d0d
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { ClassifierScalarFilter$outboundSchema, } from "./classifierscalarfilter.js";
7
+ import { ClassifierSetFilter$outboundSchema, } from "./classifiersetfilter.js";
8
+ /** @internal */
9
+ export const ClassifierFiltersFilter$outboundSchema = z.union([
10
+ ClassifierScalarFilter$outboundSchema,
11
+ ClassifierSetFilter$outboundSchema,
12
+ ]);
13
+ export function classifierFiltersFilterToJSON(classifierFiltersFilter) {
14
+ return JSON.stringify(ClassifierFiltersFilter$outboundSchema.parse(classifierFiltersFilter));
15
+ }
16
+ //# sourceMappingURL=classifierfiltersfilter.js.map
@@ -0,0 +1,35 @@
1
+ import * as z from "zod/v4";
2
+ import { ClassifierScalarFilterOperator } from "./classifierscalarfilteroperator.js";
3
+ /**
4
+ * Scalar (string or number) filter value.
5
+ */
6
+ export type ClassifierScalarFilterValue = string | number;
7
+ export type ClassifierScalarFilter = {
8
+ /**
9
+ * Classifier dimension name to filter on (snake_case identifier, e.g. "department", "work_type").
10
+ */
11
+ field: string;
12
+ /**
13
+ * Equality operator taking a scalar filter value. Ordered comparisons are not available because classification values are strings.
14
+ */
15
+ operator: ClassifierScalarFilterOperator;
16
+ /**
17
+ * Scalar (string or number) filter value.
18
+ */
19
+ value: string | number;
20
+ };
21
+ /** @internal */
22
+ export type ClassifierScalarFilterValue$Outbound = string | number;
23
+ /** @internal */
24
+ export declare const ClassifierScalarFilterValue$outboundSchema: z.ZodType<ClassifierScalarFilterValue$Outbound, ClassifierScalarFilterValue>;
25
+ export declare function classifierScalarFilterValueToJSON(classifierScalarFilterValue: ClassifierScalarFilterValue): string;
26
+ /** @internal */
27
+ export type ClassifierScalarFilter$Outbound = {
28
+ field: string;
29
+ operator: string;
30
+ value: string | number;
31
+ };
32
+ /** @internal */
33
+ export declare const ClassifierScalarFilter$outboundSchema: z.ZodType<ClassifierScalarFilter$Outbound, ClassifierScalarFilter>;
34
+ export declare function classifierScalarFilterToJSON(classifierScalarFilter: ClassifierScalarFilter): string;
35
+ //# sourceMappingURL=classifierscalarfilter.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 46c64a60f2ad
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { ClassifierScalarFilterOperator$outboundSchema, } from "./classifierscalarfilteroperator.js";
7
+ /** @internal */
8
+ export const ClassifierScalarFilterValue$outboundSchema = z.union([z.string(), z.number()]);
9
+ export function classifierScalarFilterValueToJSON(classifierScalarFilterValue) {
10
+ return JSON.stringify(ClassifierScalarFilterValue$outboundSchema.parse(classifierScalarFilterValue));
11
+ }
12
+ /** @internal */
13
+ export const ClassifierScalarFilter$outboundSchema = z.object({
14
+ field: z.string(),
15
+ operator: ClassifierScalarFilterOperator$outboundSchema,
16
+ value: z.union([z.string(), z.number()]),
17
+ });
18
+ export function classifierScalarFilterToJSON(classifierScalarFilter) {
19
+ return JSON.stringify(ClassifierScalarFilter$outboundSchema.parse(classifierScalarFilter));
20
+ }
21
+ //# sourceMappingURL=classifierscalarfilter.js.map
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * Equality operator taking a scalar filter value. Ordered comparisons are not available because classification values are strings.
5
+ */
6
+ export declare const ClassifierScalarFilterOperator: {
7
+ readonly Eq: "eq";
8
+ readonly Neq: "neq";
9
+ };
10
+ /**
11
+ * Equality operator taking a scalar filter value. Ordered comparisons are not available because classification values are strings.
12
+ */
13
+ export type ClassifierScalarFilterOperator = OpenEnum<typeof ClassifierScalarFilterOperator>;
14
+ /** @internal */
15
+ export declare const ClassifierScalarFilterOperator$outboundSchema: z.ZodType<string, ClassifierScalarFilterOperator>;
16
+ //# sourceMappingURL=classifierscalarfilteroperator.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: be3daabcb488
4
+ */
5
+ import * as openEnums from "../types/enums.js";
6
+ /**
7
+ * Equality operator taking a scalar filter value. Ordered comparisons are not available because classification values are strings.
8
+ */
9
+ export const ClassifierScalarFilterOperator = {
10
+ Eq: "eq",
11
+ Neq: "neq",
12
+ };
13
+ /** @internal */
14
+ export const ClassifierScalarFilterOperator$outboundSchema = openEnums.outboundSchema(ClassifierScalarFilterOperator);
15
+ //# sourceMappingURL=classifierscalarfilteroperator.js.map
@@ -0,0 +1,32 @@
1
+ import * as z from "zod/v4";
2
+ import { ClassifierSetFilterOperator } from "./classifiersetfilteroperator.js";
3
+ export type ClassifierSetFilterValue = string | number;
4
+ export type ClassifierSetFilter = {
5
+ /**
6
+ * Classifier dimension name to filter on (snake_case identifier, e.g. "department", "work_type").
7
+ */
8
+ field: string;
9
+ /**
10
+ * Set-membership operator taking an array filter value.
11
+ */
12
+ operator: ClassifierSetFilterOperator;
13
+ /**
14
+ * Array of scalar filter values.
15
+ */
16
+ value: Array<string | number>;
17
+ };
18
+ /** @internal */
19
+ export type ClassifierSetFilterValue$Outbound = string | number;
20
+ /** @internal */
21
+ export declare const ClassifierSetFilterValue$outboundSchema: z.ZodType<ClassifierSetFilterValue$Outbound, ClassifierSetFilterValue>;
22
+ export declare function classifierSetFilterValueToJSON(classifierSetFilterValue: ClassifierSetFilterValue): string;
23
+ /** @internal */
24
+ export type ClassifierSetFilter$Outbound = {
25
+ field: string;
26
+ operator: string;
27
+ value: Array<string | number>;
28
+ };
29
+ /** @internal */
30
+ export declare const ClassifierSetFilter$outboundSchema: z.ZodType<ClassifierSetFilter$Outbound, ClassifierSetFilter>;
31
+ export declare function classifierSetFilterToJSON(classifierSetFilter: ClassifierSetFilter): string;
32
+ //# sourceMappingURL=classifiersetfilter.d.ts.map
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 469f32f201f3
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { ClassifierSetFilterOperator$outboundSchema, } from "./classifiersetfilteroperator.js";
7
+ /** @internal */
8
+ export const ClassifierSetFilterValue$outboundSchema = z.union([z.string(), z.number()]);
9
+ export function classifierSetFilterValueToJSON(classifierSetFilterValue) {
10
+ return JSON.stringify(ClassifierSetFilterValue$outboundSchema.parse(classifierSetFilterValue));
11
+ }
12
+ /** @internal */
13
+ export const ClassifierSetFilter$outboundSchema = z.object({
14
+ field: z.string(),
15
+ operator: ClassifierSetFilterOperator$outboundSchema,
16
+ value: z.array(z.union([z.string(), z.number()])),
17
+ });
18
+ export function classifierSetFilterToJSON(classifierSetFilter) {
19
+ return JSON.stringify(ClassifierSetFilter$outboundSchema.parse(classifierSetFilter));
20
+ }
21
+ //# sourceMappingURL=classifiersetfilter.js.map
@@ -0,0 +1,16 @@
1
+ import * as z from "zod/v4";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * Set-membership operator taking an array filter value.
5
+ */
6
+ export declare const ClassifierSetFilterOperator: {
7
+ readonly In: "in";
8
+ readonly NotIn: "not_in";
9
+ };
10
+ /**
11
+ * Set-membership operator taking an array filter value.
12
+ */
13
+ export type ClassifierSetFilterOperator = OpenEnum<typeof ClassifierSetFilterOperator>;
14
+ /** @internal */
15
+ export declare const ClassifierSetFilterOperator$outboundSchema: z.ZodType<string, ClassifierSetFilterOperator>;
16
+ //# sourceMappingURL=classifiersetfilteroperator.d.ts.map
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 51a625e91249
4
+ */
5
+ import * as openEnums from "../types/enums.js";
6
+ /**
7
+ * Set-membership operator taking an array filter value.
8
+ */
9
+ export const ClassifierSetFilterOperator = {
10
+ In: "in",
11
+ NotIn: "not_in",
12
+ };
13
+ /** @internal */
14
+ export const ClassifierSetFilterOperator$outboundSchema = openEnums.outboundSchema(ClassifierSetFilterOperator);
15
+ //# sourceMappingURL=classifiersetfilteroperator.js.map
@@ -0,0 +1,10 @@
1
+ import * as z from "zod/v4";
2
+ import { ScalarFilter, ScalarFilter$Outbound } from "./scalarfilter.js";
3
+ import { SetFilter, SetFilter$Outbound } from "./setfilter.js";
4
+ export type Filter = ScalarFilter | SetFilter;
5
+ /** @internal */
6
+ export type Filter$Outbound = ScalarFilter$Outbound | SetFilter$Outbound;
7
+ /** @internal */
8
+ export declare const Filter$outboundSchema: z.ZodType<Filter$Outbound, Filter>;
9
+ export declare function filterToJSON(filter: Filter): string;
10
+ //# sourceMappingURL=filter.d.ts.map
@@ -0,0 +1,14 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: bf04a8cd8dcd
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { ScalarFilter$outboundSchema, } from "./scalarfilter.js";
7
+ import { SetFilter$outboundSchema, } from "./setfilter.js";
8
+ /** @internal */
9
+ export const Filter$outboundSchema = z
10
+ .union([ScalarFilter$outboundSchema, SetFilter$outboundSchema]);
11
+ export function filterToJSON(filter) {
12
+ return JSON.stringify(Filter$outboundSchema.parse(filter));
13
+ }
14
+ //# sourceMappingURL=filter.js.map
@@ -118,7 +118,7 @@ export type ImageGenerationRequest = {
118
118
  */
119
119
  n?: number | undefined;
120
120
  /**
121
- * Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
121
+ * Compression level (0-100) for jpeg/webp output. Ignored by providers without a compression knob; providers that honor it may reject it with other output formats (e.g. OpenAI requires output_format "jpeg" or "webp").
122
122
  */
123
123
  outputCompression?: number | undefined;
124
124
  /**
@@ -150,7 +150,7 @@ export type ImageGenerationRequest = {
150
150
  */
151
151
  sessionId?: string | undefined;
152
152
  /**
153
- * Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400.
153
+ * Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048"). A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. Explicit pixel sizes are provider-dependent: providers that accept them treat the value as authoritative and reject a mismatched `resolution` or `aspect_ratio` alongside it with a 400. xAI and Sourceful V2/V2.5 reject explicit pixel sizes (use `resolution` and `aspect_ratio` there); Sourceful V2.6 supports them within its dimension limits and does not allow combining them with `resolution` or `aspect_ratio`.
154
154
  */
155
155
  size?: string | undefined;
156
156
  /**
@@ -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";
@@ -337,6 +342,7 @@ export * from "./fileresponse.js";
337
342
  export * from "./filesearchservertool.js";
338
343
  export * from "./filesservertool.js";
339
344
  export * from "./filesservertoolconfig.js";
345
+ export * from "./filter.js";
340
346
  export * from "./finishreason.js";
341
347
  export * from "./forbiddenresponseerrordata.js";
342
348
  export * from "./formatjsonobjectconfig.js";
@@ -533,6 +539,7 @@ export * from "./openrouterfiledeleted.js";
533
539
  export * from "./openrouterfilelist.js";
534
540
  export * from "./openroutermetadata.js";
535
541
  export * from "./openrouterwebsearchservertool.js";
542
+ export * from "./operator.js";
536
543
  export * from "./oranthropicbashtoolresult.js";
537
544
  export * from "./oranthropiccontentblock.js";
538
545
  export * from "./oranthropicnullablecaller.js";
@@ -678,6 +685,8 @@ export * from "./responsesstreamingresponse.js";
678
685
  export * from "./routerattempt.js";
679
686
  export * from "./routerparams.js";
680
687
  export * from "./routingstrategy.js";
688
+ export * from "./scalarfilter.js";
689
+ export * from "./scalarfilteroperator.js";
681
690
  export * from "./scimgroup.js";
682
691
  export * from "./scimgroupmapping.js";
683
692
  export * from "./scimsyncjob.js";
@@ -700,6 +709,8 @@ export * from "./serviceunavailableresponseerrordata.js";
700
709
  export * from "./sessioncostitem.js";
701
710
  export * from "./sessioncostmeta.js";
702
711
  export * from "./sessioncostresponse.js";
712
+ export * from "./setfilter.js";
713
+ export * from "./setfilteroperator.js";
703
714
  export * from "./shellcallitem.js";
704
715
  export * from "./shellcalloutputcontent.js";
705
716
  export * from "./shellcalloutputitem.js";
@@ -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";
@@ -341,6 +346,7 @@ export * from "./fileresponse.js";
341
346
  export * from "./filesearchservertool.js";
342
347
  export * from "./filesservertool.js";
343
348
  export * from "./filesservertoolconfig.js";
349
+ export * from "./filter.js";
344
350
  export * from "./finishreason.js";
345
351
  export * from "./forbiddenresponseerrordata.js";
346
352
  export * from "./formatjsonobjectconfig.js";
@@ -537,6 +543,7 @@ export * from "./openrouterfiledeleted.js";
537
543
  export * from "./openrouterfilelist.js";
538
544
  export * from "./openroutermetadata.js";
539
545
  export * from "./openrouterwebsearchservertool.js";
546
+ export * from "./operator.js";
540
547
  export * from "./oranthropicbashtoolresult.js";
541
548
  export * from "./oranthropiccontentblock.js";
542
549
  export * from "./oranthropicnullablecaller.js";
@@ -682,6 +689,8 @@ export * from "./responsesstreamingresponse.js";
682
689
  export * from "./routerattempt.js";
683
690
  export * from "./routerparams.js";
684
691
  export * from "./routingstrategy.js";
692
+ export * from "./scalarfilter.js";
693
+ export * from "./scalarfilteroperator.js";
685
694
  export * from "./scimgroup.js";
686
695
  export * from "./scimgroupmapping.js";
687
696
  export * from "./scimsyncjob.js";
@@ -704,6 +713,8 @@ export * from "./serviceunavailableresponseerrordata.js";
704
713
  export * from "./sessioncostitem.js";
705
714
  export * from "./sessioncostmeta.js";
706
715
  export * from "./sessioncostresponse.js";
716
+ export * from "./setfilter.js";
717
+ export * from "./setfilteroperator.js";
707
718
  export * from "./shellcallitem.js";
708
719
  export * from "./shellcalloutputcontent.js";
709
720
  export * from "./shellcalloutputitem.js";
@@ -14,7 +14,7 @@ export type JevRouterPlugin = {
14
14
  excludedModels?: Array<string> | undefined;
15
15
  id: "jev-router";
16
16
  /**
17
- * Restrict the router to these models. Each entry is a model slug or a wildcard pattern (e.g. "anthropic/*"), matched against the current pool; models outside the pool are ignored. A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When omitted or empty, every model in the pool is a candidate; when no pool model matches, the list is ignored and the whole pool is used (`excluded_models` still apply). `allowed_models` is an alias; entries from both fields are combined.
17
+ * Restrict the router to these models. Each entry is a model slug or a wildcard pattern (e.g. "anthropic/*"), matched against the current pool; models outside the pool are ignored. A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When omitted or empty, every model in the pool is a candidate; when no pool model matches, the list is ignored and the whole pool is used (`excluded_models` still apply). When no entry matches any catalog model, for example a misspelled slug, the request fails with 404 instead. `allowed_models` is an alias; entries from both fields are combined.
18
18
  */
19
19
  models?: Array<string> | undefined;
20
20
  };
@@ -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 Operator: {
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 Operator = OpenEnum<typeof Operator>;
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: 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 Operator$inboundSchema: z.ZodType<Operator, unknown>;
60
+ export declare const OperatorEnum$inboundSchema: z.ZodType<OperatorEnum, unknown>;
61
61
  /** @internal */
62
- export declare const Operator$outboundSchema: z.ZodType<string, Operator>;
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 Operator = {
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 Operator$inboundSchema = openEnums
55
- .inboundSchema(Operator);
54
+ export const OperatorEnum$inboundSchema = openEnums.inboundSchema(OperatorEnum);
56
55
  /** @internal */
57
- export const Operator$outboundSchema = openEnums
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: Operator$inboundSchema,
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: Operator$outboundSchema,
76
+ operator: OperatorEnum$outboundSchema,
79
77
  value: z.union([z.string(), z.number()]).optional(),
80
78
  });
81
79
  export function ruleToJSON(rule) {
@@ -32,7 +32,7 @@ export type External = {
32
32
  */
33
33
  apiKey?: string | undefined;
34
34
  /**
35
- * Partner's end-user identifier for attribution.
35
+ * Partner's external user identifier for attribution: 1 to 512 characters after surrounding whitespace is trimmed, well-formed Unicode, no NUL. For organization keys outside HIPAA workspaces, the value is registered as an external user if it does not exist yet, and the key is linked to it.
36
36
  */
37
37
  user: string;
38
38
  };
@@ -45,7 +45,7 @@ export type DeleteInternVaultSecretRequest = {
45
45
  */
46
46
  internId: string;
47
47
  /**
48
- * Secret name. Lowercase letters, digits and single underscores, starting with a letter and not ending with an underscore, 1 to 255 characters.
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
- * Secret name. Lowercase letters, digits and single underscores, starting with a letter and not ending with an underscore, 1 to 255 characters.
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 GranularityName: {
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 GranularityName = OpenEnum<typeof GranularityName>;
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: GranularityName;
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 GranularityName$inboundSchema: z.ZodType<GranularityName, unknown>;
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 */