@openrouter/sdk 1.5.81 → 1.5.83
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/guardrailsBulkAssignKeys.d.ts +1 -1
- package/esm/funcs/guardrailsBulkAssignKeys.js +1 -1
- package/esm/funcs/guardrailsBulkAssignMembers.d.ts +1 -1
- package/esm/funcs/guardrailsBulkAssignMembers.js +1 -1
- package/esm/funcs/guardrailsBulkUnassignKeys.d.ts +1 -1
- package/esm/funcs/guardrailsBulkUnassignKeys.js +1 -1
- package/esm/funcs/guardrailsBulkUnassignMembers.d.ts +1 -1
- package/esm/funcs/guardrailsBulkUnassignMembers.js +1 -1
- package/esm/funcs/guardrailsCreate.d.ts +1 -1
- package/esm/funcs/guardrailsCreate.js +1 -1
- package/esm/funcs/guardrailsDelete.d.ts +1 -1
- package/esm/funcs/guardrailsDelete.js +1 -1
- package/esm/funcs/guardrailsGet.d.ts +1 -1
- package/esm/funcs/guardrailsGet.js +1 -1
- package/esm/funcs/guardrailsList.d.ts +1 -1
- package/esm/funcs/guardrailsList.js +1 -1
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.d.ts +1 -1
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +1 -1
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.d.ts +1 -1
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +1 -1
- package/esm/funcs/guardrailsListKeyAssignments.d.ts +1 -1
- package/esm/funcs/guardrailsListKeyAssignments.js +1 -1
- package/esm/funcs/guardrailsListMemberAssignments.d.ts +1 -1
- package/esm/funcs/guardrailsListMemberAssignments.js +1 -1
- package/esm/funcs/guardrailsUpdate.d.ts +1 -1
- package/esm/funcs/guardrailsUpdate.js +1 -1
- package/esm/funcs/observabilityCreate.d.ts +1 -1
- package/esm/funcs/observabilityCreate.js +1 -1
- package/esm/funcs/observabilityDelete.d.ts +1 -1
- package/esm/funcs/observabilityDelete.js +1 -1
- package/esm/funcs/observabilityGet.d.ts +1 -1
- package/esm/funcs/observabilityGet.js +1 -1
- package/esm/funcs/observabilityList.d.ts +1 -1
- package/esm/funcs/observabilityList.js +1 -1
- package/esm/funcs/observabilityUpdate.d.ts +1 -1
- package/esm/funcs/observabilityUpdate.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/createguardrailrequest.d.ts +1 -1
- package/esm/models/createobservabilitydestinationrequest.d.ts +2 -2
- package/esm/models/extractionasset.d.ts +2 -1
- package/esm/models/extractionasset.js +1 -0
- package/esm/models/extractiondateanswer.d.ts +1 -1
- package/esm/models/extractiondatefield.d.ts +5 -0
- package/esm/models/extractiondatefield.js +1 -0
- package/esm/models/extractiondatetimeanswer.d.ts +1 -1
- package/esm/models/extractiondatetimefield.d.ts +5 -0
- package/esm/models/extractiondatetimefield.js +1 -0
- package/esm/models/extractiondurationanswer.d.ts +1 -1
- package/esm/models/extractiondurationfield.d.ts +3 -0
- package/esm/models/extractionestimatefield.d.ts +4 -1
- package/esm/models/extractionforecastfield.d.ts +4 -1
- package/esm/models/extractionlistanswer.d.ts +1 -1
- package/esm/models/extractionlistfield.d.ts +10 -0
- package/esm/models/extractionlistfield.js +2 -0
- package/esm/models/extractionnumberanswer.d.ts +1 -1
- package/esm/models/extractionnumberfield.d.ts +6 -0
- package/esm/models/extractionsrequest.d.ts +3 -3
- package/esm/models/extractionsrequest.js +1 -1
- package/esm/models/extractiontextanswer.d.ts +1 -1
- package/esm/models/extractiontextfield.d.ts +5 -0
- package/esm/models/extractiontextfield.js +1 -0
- package/esm/models/extractiontimeanswer.d.ts +1 -1
- package/esm/models/extractiontimefield.d.ts +5 -0
- package/esm/models/extractiontimefield.js +1 -0
- package/esm/models/operations/listguardrails.d.ts +1 -1
- package/esm/models/operations/listobservabilitydestinations.d.ts +1 -1
- package/esm/models/updateobservabilitydestinationrequest.d.ts +1 -1
- package/esm/sdk/guardrails.d.ts +13 -13
- package/esm/sdk/guardrails.js +13 -13
- package/esm/sdk/observability.d.ts +5 -5
- package/esm/sdk/observability.js +5 -5
- package/jsr.json +1 -1
- package/package.json +9 -9
|
@@ -40,12 +40,15 @@ export type ExtractionForecastField = {
|
|
|
40
40
|
max: number | string;
|
|
41
41
|
min: number | string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Not read on this field type: no model takes a null threshold here, and a request that sets it fails with a 400.
|
|
44
44
|
*/
|
|
45
45
|
nullThreshold?: number | undefined;
|
|
46
46
|
scale?: ExtractionForecastFieldScale | undefined;
|
|
47
47
|
step?: number | ExtractionForecastFieldStepMonth | ExtractionForecastFieldStepYear | undefined;
|
|
48
48
|
type: "forecast";
|
|
49
|
+
/**
|
|
50
|
+
* Unit label for the value.
|
|
51
|
+
*/
|
|
49
52
|
unit?: string | undefined;
|
|
50
53
|
};
|
|
51
54
|
/** @internal */
|
|
@@ -35,7 +35,7 @@ export type ExtractionListAnswer = {
|
|
|
35
35
|
*/
|
|
36
36
|
source?: ExtractionListAnswerSource | undefined;
|
|
37
37
|
/**
|
|
38
|
-
* One span per item of `value`, in the same order; null for an item that has no offsets in the state text
|
|
38
|
+
* One span per item of `value`, in the same order; null for an item that has no offsets in the state text: one read from an image or a document, or one the provider returned without offsets that delimit it.
|
|
39
39
|
*/
|
|
40
40
|
spans?: Array<Array<number> | null> | undefined;
|
|
41
41
|
/**
|
|
@@ -15,12 +15,20 @@ export type ExtractionListField = {
|
|
|
15
15
|
* What the field should contain.
|
|
16
16
|
*/
|
|
17
17
|
instructions?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Whole numbers only. Lists of numbers only.
|
|
20
|
+
*/
|
|
21
|
+
integer?: boolean | undefined;
|
|
18
22
|
items: Items;
|
|
19
23
|
/**
|
|
20
24
|
* Probability of null above which `value` is null. Default 0.5.
|
|
21
25
|
*/
|
|
22
26
|
nullThreshold?: number | undefined;
|
|
23
27
|
type: "list";
|
|
28
|
+
/**
|
|
29
|
+
* Unit label for the value.
|
|
30
|
+
*/
|
|
31
|
+
unit?: string | undefined;
|
|
24
32
|
};
|
|
25
33
|
/** @internal */
|
|
26
34
|
export declare const Items$outboundSchema: z.ZodType<string, Items>;
|
|
@@ -28,9 +36,11 @@ export declare const Items$outboundSchema: z.ZodType<string, Items>;
|
|
|
28
36
|
export type ExtractionListField$Outbound = {
|
|
29
37
|
decimals?: number | undefined;
|
|
30
38
|
instructions?: string | undefined;
|
|
39
|
+
integer?: boolean | undefined;
|
|
31
40
|
items: string;
|
|
32
41
|
null_threshold?: number | undefined;
|
|
33
42
|
type: "list";
|
|
43
|
+
unit?: string | undefined;
|
|
34
44
|
};
|
|
35
45
|
/** @internal */
|
|
36
46
|
export declare const ExtractionListField$outboundSchema: z.ZodType<ExtractionListField$Outbound, ExtractionListField>;
|
|
@@ -17,9 +17,11 @@ export const Items$outboundSchema = openEnums
|
|
|
17
17
|
export const ExtractionListField$outboundSchema = z.object({
|
|
18
18
|
decimals: z.int().optional(),
|
|
19
19
|
instructions: z.string().optional(),
|
|
20
|
+
integer: z.boolean().optional(),
|
|
20
21
|
items: Items$outboundSchema,
|
|
21
22
|
nullThreshold: z.number().optional(),
|
|
22
23
|
type: z.literal("list"),
|
|
24
|
+
unit: z.string().optional(),
|
|
23
25
|
}).transform((v) => {
|
|
24
26
|
return remap$(v, {
|
|
25
27
|
nullThreshold: "null_threshold",
|
|
@@ -29,7 +29,7 @@ export type ExtractionNumberAnswer = {
|
|
|
29
29
|
*/
|
|
30
30
|
source?: ExtractionNumberAnswerSource | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.
|
|
32
|
+
* Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. Absent for an answer that has no offsets in the state text, for example a null answer, one read from an image or a document, or one the provider returned without offsets that delimit it.
|
|
33
33
|
*/
|
|
34
34
|
span?: Array<number> | undefined;
|
|
35
35
|
/**
|
|
@@ -8,12 +8,18 @@ export type ExtractionNumberField = {
|
|
|
8
8
|
* What the field should contain.
|
|
9
9
|
*/
|
|
10
10
|
instructions?: string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Whole numbers only.
|
|
13
|
+
*/
|
|
11
14
|
integer?: boolean | undefined;
|
|
12
15
|
/**
|
|
13
16
|
* Probability of null above which `value` is null. Default 0.5.
|
|
14
17
|
*/
|
|
15
18
|
nullThreshold?: number | undefined;
|
|
16
19
|
type: "number";
|
|
20
|
+
/**
|
|
21
|
+
* Unit label for the value.
|
|
22
|
+
*/
|
|
17
23
|
unit?: string | undefined;
|
|
18
24
|
};
|
|
19
25
|
/** @internal */
|
|
@@ -17,7 +17,7 @@ import { TraceConfig, TraceConfig$Outbound } from "./traceconfig.js";
|
|
|
17
17
|
export type Fields = ExtractionDateField | ExtractionDatetimeField | ExtractionDurationField | ExtractionEstimateField | ExtractionForecastField | ExtractionListField | ExtractionNumberField | ExtractionTextField | ExtractionTimeField;
|
|
18
18
|
export type ExtractionsRequest = {
|
|
19
19
|
/**
|
|
20
|
-
* Assets keyed by reference string. Write a reference wherever the asset belongs in `state` or a field `instructions`; every asset must be referenced at least once. A `state` that is exactly the sole asset's key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF),
|
|
20
|
+
* Assets keyed by reference string. Write a reference wherever the asset belongs in `state` or a field `instructions`; every asset must be referenced at least once, unless `state` is empty or omitted, in which case the assets are read without a reference. A `state` that is exactly the sole asset's key carries no text of its own and is read as file-only. A model that reads either text or a document per request, not both (ScaleDown Extract with a PDF), takes that form or an empty or omitted `state`: any other text around the key is state text and is rejected with 400.
|
|
21
21
|
*/
|
|
22
22
|
assets?: {
|
|
23
23
|
[k: string]: ExtractionAsset;
|
|
@@ -39,9 +39,9 @@ export type ExtractionsRequest = {
|
|
|
39
39
|
*/
|
|
40
40
|
sessionId?: string | undefined;
|
|
41
41
|
/**
|
|
42
|
-
* The text to read from. May be empty only when the request carries
|
|
42
|
+
* The text to read from. May be empty or omitted only when the request carries assets, which are then read without being referenced by key.
|
|
43
43
|
*/
|
|
44
|
-
state
|
|
44
|
+
state?: string | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations.
|
|
47
47
|
*/
|
|
@@ -50,7 +50,7 @@ export const ExtractionsRequest$outboundSchema = z.object({
|
|
|
50
50
|
provider: z.nullable(ProviderPreferences$outboundSchema).optional(),
|
|
51
51
|
referenceDate: z.string().optional(),
|
|
52
52
|
sessionId: z.string().optional(),
|
|
53
|
-
state: z.string(),
|
|
53
|
+
state: z.string().default(""),
|
|
54
54
|
trace: TraceConfig$outboundSchema.optional(),
|
|
55
55
|
user: z.string().optional(),
|
|
56
56
|
}).transform((v) => {
|
|
@@ -29,7 +29,7 @@ export type ExtractionTextAnswer = {
|
|
|
29
29
|
*/
|
|
30
30
|
source?: ExtractionTextAnswerSource | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.
|
|
32
|
+
* Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. Absent for an answer that has no offsets in the state text, for example a null answer, one read from an image or a document, or one the provider returned without offsets that delimit it.
|
|
33
33
|
*/
|
|
34
34
|
span?: Array<number> | undefined;
|
|
35
35
|
/**
|
|
@@ -9,12 +9,17 @@ export type ExtractionTextField = {
|
|
|
9
9
|
*/
|
|
10
10
|
nullThreshold?: number | undefined;
|
|
11
11
|
type: "text";
|
|
12
|
+
/**
|
|
13
|
+
* Unit label for the value.
|
|
14
|
+
*/
|
|
15
|
+
unit?: string | undefined;
|
|
12
16
|
};
|
|
13
17
|
/** @internal */
|
|
14
18
|
export type ExtractionTextField$Outbound = {
|
|
15
19
|
instructions?: string | undefined;
|
|
16
20
|
null_threshold?: number | undefined;
|
|
17
21
|
type: "text";
|
|
22
|
+
unit?: string | undefined;
|
|
18
23
|
};
|
|
19
24
|
/** @internal */
|
|
20
25
|
export declare const ExtractionTextField$outboundSchema: z.ZodType<ExtractionTextField$Outbound, ExtractionTextField>;
|
|
@@ -9,6 +9,7 @@ export const ExtractionTextField$outboundSchema = z.object({
|
|
|
9
9
|
instructions: z.string().optional(),
|
|
10
10
|
nullThreshold: z.number().optional(),
|
|
11
11
|
type: z.literal("text"),
|
|
12
|
+
unit: z.string().optional(),
|
|
12
13
|
}).transform((v) => {
|
|
13
14
|
return remap$(v, {
|
|
14
15
|
nullThreshold: "null_threshold",
|
|
@@ -29,7 +29,7 @@ export type ExtractionTimeAnswer = {
|
|
|
29
29
|
*/
|
|
30
30
|
source?: ExtractionTimeAnswerSource | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once.
|
|
32
|
+
* Unicode code point offsets [start, end) into the state text: index code points (not UTF-16 code units or UTF-8 bytes), so an emoji or accented letter counts once. Absent for an answer that has no offsets in the state text, for example a null answer, one read from an image or a document, or one the provider returned without offsets that delimit it.
|
|
33
33
|
*/
|
|
34
34
|
span?: Array<number> | undefined;
|
|
35
35
|
/**
|
|
@@ -9,12 +9,17 @@ export type ExtractionTimeField = {
|
|
|
9
9
|
*/
|
|
10
10
|
nullThreshold?: number | undefined;
|
|
11
11
|
type: "time";
|
|
12
|
+
/**
|
|
13
|
+
* Unit label for the value.
|
|
14
|
+
*/
|
|
15
|
+
unit?: string | undefined;
|
|
12
16
|
};
|
|
13
17
|
/** @internal */
|
|
14
18
|
export type ExtractionTimeField$Outbound = {
|
|
15
19
|
instructions?: string | undefined;
|
|
16
20
|
null_threshold?: number | undefined;
|
|
17
21
|
type: "time";
|
|
22
|
+
unit?: string | undefined;
|
|
18
23
|
};
|
|
19
24
|
/** @internal */
|
|
20
25
|
export declare const ExtractionTimeField$outboundSchema: z.ZodType<ExtractionTimeField$Outbound, ExtractionTimeField>;
|
|
@@ -9,6 +9,7 @@ export const ExtractionTimeField$outboundSchema = z.object({
|
|
|
9
9
|
instructions: z.string().optional(),
|
|
10
10
|
nullThreshold: z.number().optional(),
|
|
11
11
|
type: z.literal("time"),
|
|
12
|
+
unit: z.string().optional(),
|
|
12
13
|
}).transform((v) => {
|
|
13
14
|
return remap$(v, {
|
|
14
15
|
nullThreshold: "null_threshold",
|
|
@@ -52,7 +52,7 @@ export type ListGuardrailsRequest = {
|
|
|
52
52
|
*/
|
|
53
53
|
limit?: number | undefined;
|
|
54
54
|
/**
|
|
55
|
-
* Filter guardrails by workspace ID.
|
|
55
|
+
* Filter guardrails by workspace ID. When omitted, an organization management key gets guardrails in the default workspace and a workspace-scoped key gets guardrails in its own workspace. A workspace-scoped key gets 403 for any other workspace.
|
|
56
56
|
*/
|
|
57
57
|
workspaceId?: string | undefined;
|
|
58
58
|
};
|
|
@@ -52,7 +52,7 @@ export type ListObservabilityDestinationsRequest = {
|
|
|
52
52
|
*/
|
|
53
53
|
limit?: number | undefined;
|
|
54
54
|
/**
|
|
55
|
-
* Optional workspace ID to filter by. Defaults to the authenticated entity's default workspace.
|
|
55
|
+
* Optional workspace ID to filter by. Defaults to the authenticated entity's default workspace, or a workspace-scoped management key's own workspace.
|
|
56
56
|
*/
|
|
57
57
|
workspaceId?: string | undefined;
|
|
58
58
|
};
|
|
@@ -3,7 +3,7 @@ import { ObservabilityDataRegionInput } from "./observabilitydataregioninput.js"
|
|
|
3
3
|
import { ObservabilityFilterRulesConfigNullable, ObservabilityFilterRulesConfigNullable$Outbound } from "./observabilityfilterrulesconfignullable.js";
|
|
4
4
|
export type UpdateObservabilityDestinationRequest = {
|
|
5
5
|
/**
|
|
6
|
-
* Optional allowlist of OpenRouter API key hashes. `null` clears the filter (all keys). Omitting leaves the current value. Must contain at least one hash if provided.
|
|
6
|
+
* Optional allowlist of OpenRouter API key hashes. `null` clears the filter (all keys). Omitting leaves the current value, including any API key from another workspace that an organization-scoped key attached. Must contain at least one hash if provided. A workspace-scoped management key can only name API keys in its own workspace; any other hash returns 400.
|
|
7
7
|
*/
|
|
8
8
|
apiKeyHashes?: Array<string> | null | undefined;
|
|
9
9
|
/**
|
package/esm/sdk/guardrails.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare class Guardrails extends ClientSDK {
|
|
|
7
7
|
* List guardrails
|
|
8
8
|
*
|
|
9
9
|
* @remarks
|
|
10
|
-
* List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
10
|
+
* List all guardrails for the authenticated user. A workspace-scoped management key lists only its own workspace, which `workspace_id` defaults to; naming another workspace returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
11
11
|
*/
|
|
12
12
|
list(request?: operations.ListGuardrailsRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListGuardrailsResponse, {
|
|
13
13
|
offset: number;
|
|
@@ -16,35 +16,35 @@ export declare class Guardrails extends ClientSDK {
|
|
|
16
16
|
* Create a guardrail
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. Set `allowed_data_regions` to enforce [In-Region Routing](/docs/guides/features/in-region-routing#enforcing-in-region-routing-with-guardrails): governed requests must arrive through one of the listed OpenRouter domains and are rejected with a 403 otherwise. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
19
|
+
* Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. Set `allowed_data_regions` to enforce [In-Region Routing](/docs/guides/features/in-region-routing#enforcing-in-region-routing-with-guardrails): governed requests must arrive through one of the listed OpenRouter domains and are rejected with a 403 otherwise. A workspace-scoped management key creates in its own workspace, which `workspace_id` defaults to; naming another workspace returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
20
|
*/
|
|
21
21
|
create(request: operations.CreateGuardrailRequest, options?: RequestOptions): Promise<models.CreateGuardrailResponse>;
|
|
22
22
|
/**
|
|
23
23
|
* Delete a guardrail
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
|
-
* Delete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
26
|
+
* Delete an existing guardrail. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
27
27
|
*/
|
|
28
28
|
delete(request: operations.DeleteGuardrailRequest, options?: RequestOptions): Promise<models.DeleteGuardrailResponse>;
|
|
29
29
|
/**
|
|
30
30
|
* Get a guardrail
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Get a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
33
|
+
* Get a single guardrail by ID. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
34
34
|
*/
|
|
35
35
|
get(request: operations.GetGuardrailRequest, options?: RequestOptions): Promise<models.GetGuardrailResponse>;
|
|
36
36
|
/**
|
|
37
37
|
* Update a guardrail
|
|
38
38
|
*
|
|
39
39
|
* @remarks
|
|
40
|
-
* Update an existing guardrail, or materialize an unconfigured workspace default guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
40
|
+
* Update an existing guardrail, or materialize an unconfigured workspace default guardrail. Collection fields use replace semantics: send the full desired set on every update. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
41
41
|
*/
|
|
42
42
|
update(request: operations.UpdateGuardrailRequest, options?: RequestOptions): Promise<models.UpdateGuardrailResponse>;
|
|
43
43
|
/**
|
|
44
44
|
* List key assignments for a guardrail
|
|
45
45
|
*
|
|
46
46
|
* @remarks
|
|
47
|
-
* List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
47
|
+
* List all API key assignments for a specific guardrail. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
48
48
|
*/
|
|
49
49
|
listGuardrailKeyAssignments(request: operations.ListGuardrailKeyAssignmentsRequest, options?: RequestOptions): Promise<PageIterator<operations.ListGuardrailKeyAssignmentsResponse, {
|
|
50
50
|
offset: number;
|
|
@@ -53,21 +53,21 @@ export declare class Guardrails extends ClientSDK {
|
|
|
53
53
|
* Bulk assign keys to a guardrail
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
|
-
* Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
56
|
+
* Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. A workspace-scoped management key reaches only guardrails in its own workspace (any other returns 404), and a batch naming an unknown or out-of-workspace key hash is rejected with 400 before anything changes. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
57
57
|
*/
|
|
58
58
|
bulkAssignKeys(request: operations.BulkAssignKeysToGuardrailRequest, options?: RequestOptions): Promise<models.BulkAssignKeysResponse>;
|
|
59
59
|
/**
|
|
60
60
|
* Bulk unassign keys from a guardrail
|
|
61
61
|
*
|
|
62
62
|
* @remarks
|
|
63
|
-
* Unassign multiple API keys from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
63
|
+
* Unassign multiple API keys from a specific guardrail. A workspace-scoped management key reaches only guardrails in its own workspace (any other returns 404), and a batch naming an unknown or out-of-workspace key hash is rejected with 400 before anything changes. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
64
64
|
*/
|
|
65
65
|
bulkUnassignKeys(request: operations.BulkUnassignKeysFromGuardrailRequest, options?: RequestOptions): Promise<models.BulkUnassignKeysResponse>;
|
|
66
66
|
/**
|
|
67
67
|
* List member assignments for a guardrail
|
|
68
68
|
*
|
|
69
69
|
* @remarks
|
|
70
|
-
* List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
70
|
+
* List all organization member assignments for a specific guardrail. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
71
71
|
*/
|
|
72
72
|
listGuardrailMemberAssignments(request: operations.ListGuardrailMemberAssignmentsRequest, options?: RequestOptions): Promise<PageIterator<operations.ListGuardrailMemberAssignmentsResponse, {
|
|
73
73
|
offset: number;
|
|
@@ -76,21 +76,21 @@ export declare class Guardrails extends ClientSDK {
|
|
|
76
76
|
* Bulk assign members to a guardrail
|
|
77
77
|
*
|
|
78
78
|
* @remarks
|
|
79
|
-
* Assign multiple organization members to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
79
|
+
* Assign multiple organization members to a specific guardrail. Requires an organization-scoped management key; workspace-scoped management keys return 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
80
80
|
*/
|
|
81
81
|
bulkAssignMembers(request: operations.BulkAssignMembersToGuardrailRequest, options?: RequestOptions): Promise<models.BulkAssignMembersResponse>;
|
|
82
82
|
/**
|
|
83
83
|
* Bulk unassign members from a guardrail
|
|
84
84
|
*
|
|
85
85
|
* @remarks
|
|
86
|
-
* Unassign multiple organization members from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
86
|
+
* Unassign multiple organization members from a specific guardrail. Requires an organization-scoped management key; workspace-scoped management keys return 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
87
87
|
*/
|
|
88
88
|
bulkUnassignMembers(request: operations.BulkUnassignMembersFromGuardrailRequest, options?: RequestOptions): Promise<models.BulkUnassignMembersResponse>;
|
|
89
89
|
/**
|
|
90
90
|
* List all key assignments
|
|
91
91
|
*
|
|
92
92
|
* @remarks
|
|
93
|
-
* List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
93
|
+
* List all API key guardrail assignments for the authenticated user. A workspace-scoped management key lists only its own workspace, which `workspace_id` defaults to; naming another workspace returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
94
94
|
*/
|
|
95
95
|
listKeyAssignments(request?: operations.ListKeyAssignmentsRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListKeyAssignmentsResponse, {
|
|
96
96
|
offset: number;
|
|
@@ -99,7 +99,7 @@ export declare class Guardrails extends ClientSDK {
|
|
|
99
99
|
* List all member assignments
|
|
100
100
|
*
|
|
101
101
|
* @remarks
|
|
102
|
-
* List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
102
|
+
* List all organization member guardrail assignments for the authenticated user. A workspace-scoped management key lists only its own workspace, which `workspace_id` defaults to; naming another workspace returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
103
103
|
*/
|
|
104
104
|
listMemberAssignments(request?: operations.ListMemberAssignmentsRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListMemberAssignmentsResponse, {
|
|
105
105
|
offset: number;
|
package/esm/sdk/guardrails.js
CHANGED
|
@@ -23,7 +23,7 @@ export class Guardrails extends ClientSDK {
|
|
|
23
23
|
* List guardrails
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
|
-
* List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
26
|
+
* List all guardrails for the authenticated user. A workspace-scoped management key lists only its own workspace, which `workspace_id` defaults to; naming another workspace returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
27
27
|
*/
|
|
28
28
|
async list(request, options) {
|
|
29
29
|
return unwrapResultIterator(guardrailsList(this, request, options));
|
|
@@ -32,7 +32,7 @@ export class Guardrails extends ClientSDK {
|
|
|
32
32
|
* Create a guardrail
|
|
33
33
|
*
|
|
34
34
|
* @remarks
|
|
35
|
-
* Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. Set `allowed_data_regions` to enforce [In-Region Routing](/docs/guides/features/in-region-routing#enforcing-in-region-routing-with-guardrails): governed requests must arrive through one of the listed OpenRouter domains and are rejected with a 403 otherwise. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
35
|
+
* Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. Set `allowed_data_regions` to enforce [In-Region Routing](/docs/guides/features/in-region-routing#enforcing-in-region-routing-with-guardrails): governed requests must arrive through one of the listed OpenRouter domains and are rejected with a 403 otherwise. A workspace-scoped management key creates in its own workspace, which `workspace_id` defaults to; naming another workspace returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
36
36
|
*/
|
|
37
37
|
async create(request, options) {
|
|
38
38
|
return unwrapAsync(guardrailsCreate(this, request, options));
|
|
@@ -41,7 +41,7 @@ export class Guardrails extends ClientSDK {
|
|
|
41
41
|
* Delete a guardrail
|
|
42
42
|
*
|
|
43
43
|
* @remarks
|
|
44
|
-
* Delete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
44
|
+
* Delete an existing guardrail. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
45
45
|
*/
|
|
46
46
|
async delete(request, options) {
|
|
47
47
|
return unwrapAsync(guardrailsDelete(this, request, options));
|
|
@@ -50,7 +50,7 @@ export class Guardrails extends ClientSDK {
|
|
|
50
50
|
* Get a guardrail
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* Get a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
53
|
+
* Get a single guardrail by ID. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
54
54
|
*/
|
|
55
55
|
async get(request, options) {
|
|
56
56
|
return unwrapAsync(guardrailsGet(this, request, options));
|
|
@@ -59,7 +59,7 @@ export class Guardrails extends ClientSDK {
|
|
|
59
59
|
* Update a guardrail
|
|
60
60
|
*
|
|
61
61
|
* @remarks
|
|
62
|
-
* Update an existing guardrail, or materialize an unconfigured workspace default guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
62
|
+
* Update an existing guardrail, or materialize an unconfigured workspace default guardrail. Collection fields use replace semantics: send the full desired set on every update. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
63
63
|
*/
|
|
64
64
|
async update(request, options) {
|
|
65
65
|
return unwrapAsync(guardrailsUpdate(this, request, options));
|
|
@@ -68,7 +68,7 @@ export class Guardrails extends ClientSDK {
|
|
|
68
68
|
* List key assignments for a guardrail
|
|
69
69
|
*
|
|
70
70
|
* @remarks
|
|
71
|
-
* List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
71
|
+
* List all API key assignments for a specific guardrail. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
72
72
|
*/
|
|
73
73
|
async listGuardrailKeyAssignments(request, options) {
|
|
74
74
|
return unwrapResultIterator(guardrailsListGuardrailKeyAssignments(this, request, options));
|
|
@@ -77,7 +77,7 @@ export class Guardrails extends ClientSDK {
|
|
|
77
77
|
* Bulk assign keys to a guardrail
|
|
78
78
|
*
|
|
79
79
|
* @remarks
|
|
80
|
-
* Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
80
|
+
* Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. A workspace-scoped management key reaches only guardrails in its own workspace (any other returns 404), and a batch naming an unknown or out-of-workspace key hash is rejected with 400 before anything changes. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
81
81
|
*/
|
|
82
82
|
async bulkAssignKeys(request, options) {
|
|
83
83
|
return unwrapAsync(guardrailsBulkAssignKeys(this, request, options));
|
|
@@ -86,7 +86,7 @@ export class Guardrails extends ClientSDK {
|
|
|
86
86
|
* Bulk unassign keys from a guardrail
|
|
87
87
|
*
|
|
88
88
|
* @remarks
|
|
89
|
-
* Unassign multiple API keys from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
89
|
+
* Unassign multiple API keys from a specific guardrail. A workspace-scoped management key reaches only guardrails in its own workspace (any other returns 404), and a batch naming an unknown or out-of-workspace key hash is rejected with 400 before anything changes. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
90
90
|
*/
|
|
91
91
|
async bulkUnassignKeys(request, options) {
|
|
92
92
|
return unwrapAsync(guardrailsBulkUnassignKeys(this, request, options));
|
|
@@ -95,7 +95,7 @@ export class Guardrails extends ClientSDK {
|
|
|
95
95
|
* List member assignments for a guardrail
|
|
96
96
|
*
|
|
97
97
|
* @remarks
|
|
98
|
-
* List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
98
|
+
* List all organization member assignments for a specific guardrail. A workspace-scoped management key reaches only guardrails in its own workspace; any other guardrail returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
99
99
|
*/
|
|
100
100
|
async listGuardrailMemberAssignments(request, options) {
|
|
101
101
|
return unwrapResultIterator(guardrailsListGuardrailMemberAssignments(this, request, options));
|
|
@@ -104,7 +104,7 @@ export class Guardrails extends ClientSDK {
|
|
|
104
104
|
* Bulk assign members to a guardrail
|
|
105
105
|
*
|
|
106
106
|
* @remarks
|
|
107
|
-
* Assign multiple organization members to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
107
|
+
* Assign multiple organization members to a specific guardrail. Requires an organization-scoped management key; workspace-scoped management keys return 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
108
108
|
*/
|
|
109
109
|
async bulkAssignMembers(request, options) {
|
|
110
110
|
return unwrapAsync(guardrailsBulkAssignMembers(this, request, options));
|
|
@@ -113,7 +113,7 @@ export class Guardrails extends ClientSDK {
|
|
|
113
113
|
* Bulk unassign members from a guardrail
|
|
114
114
|
*
|
|
115
115
|
* @remarks
|
|
116
|
-
* Unassign multiple organization members from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
116
|
+
* Unassign multiple organization members from a specific guardrail. Requires an organization-scoped management key; workspace-scoped management keys return 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
117
117
|
*/
|
|
118
118
|
async bulkUnassignMembers(request, options) {
|
|
119
119
|
return unwrapAsync(guardrailsBulkUnassignMembers(this, request, options));
|
|
@@ -122,7 +122,7 @@ export class Guardrails extends ClientSDK {
|
|
|
122
122
|
* List all key assignments
|
|
123
123
|
*
|
|
124
124
|
* @remarks
|
|
125
|
-
* List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
125
|
+
* List all API key guardrail assignments for the authenticated user. A workspace-scoped management key lists only its own workspace, which `workspace_id` defaults to; naming another workspace returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
126
126
|
*/
|
|
127
127
|
async listKeyAssignments(request, options) {
|
|
128
128
|
return unwrapResultIterator(guardrailsListKeyAssignments(this, request, options));
|
|
@@ -131,7 +131,7 @@ export class Guardrails extends ClientSDK {
|
|
|
131
131
|
* List all member assignments
|
|
132
132
|
*
|
|
133
133
|
* @remarks
|
|
134
|
-
* List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
134
|
+
* List all organization member guardrail assignments for the authenticated user. A workspace-scoped management key lists only its own workspace, which `workspace_id` defaults to; naming another workspace returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
135
135
|
*/
|
|
136
136
|
async listMemberAssignments(request, options) {
|
|
137
137
|
return unwrapResultIterator(guardrailsListMemberAssignments(this, request, options));
|
|
@@ -7,7 +7,7 @@ export declare class Observability extends ClientSDK {
|
|
|
7
7
|
* List observability destinations
|
|
8
8
|
*
|
|
9
9
|
* @remarks
|
|
10
|
-
* List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
10
|
+
* List the observability destinations configured for the authenticated entity's default workspace, or a workspace-scoped management key's own workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. A workspace-scoped management key can only list its own workspace; any other `workspace_id` returns 403. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
11
11
|
*/
|
|
12
12
|
list(request?: operations.ListObservabilityDestinationsRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListObservabilityDestinationsResponse, {
|
|
13
13
|
offset: number;
|
|
@@ -16,28 +16,28 @@ export declare class Observability extends ClientSDK {
|
|
|
16
16
|
* Create an observability destination
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
19
|
+
* Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace, or a workspace-scoped management key's own workspace; use the `workspace_id` body field to scope to a different workspace. A workspace-scoped management key can only create in its own workspace; any other `workspace_id` returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
20
|
*/
|
|
21
21
|
create(request: operations.CreateObservabilityDestinationRequest, options?: RequestOptions): Promise<models.CreateObservabilityDestinationResponse>;
|
|
22
22
|
/**
|
|
23
23
|
* Delete an observability destination
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
|
-
* Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
26
|
+
* Delete an existing observability destination. This performs a soft delete. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
27
27
|
*/
|
|
28
28
|
delete(request: operations.DeleteObservabilityDestinationRequest, options?: RequestOptions): Promise<models.DeleteObservabilityDestinationResponse>;
|
|
29
29
|
/**
|
|
30
30
|
* Get an observability destination
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
33
|
+
* Fetch a single observability destination by its UUID. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
34
34
|
*/
|
|
35
35
|
get(request: operations.GetObservabilityDestinationRequest, options?: RequestOptions): Promise<models.GetObservabilityDestinationResponse>;
|
|
36
36
|
/**
|
|
37
37
|
* Update an observability destination
|
|
38
38
|
*
|
|
39
39
|
* @remarks
|
|
40
|
-
* Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
40
|
+
* Update an existing observability destination. Only the fields provided in the request body are updated. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
41
41
|
*/
|
|
42
42
|
update(request: operations.UpdateObservabilityDestinationRequest, options?: RequestOptions): Promise<models.UpdateObservabilityDestinationResponse>;
|
|
43
43
|
}
|
package/esm/sdk/observability.js
CHANGED
|
@@ -15,7 +15,7 @@ export class Observability extends ClientSDK {
|
|
|
15
15
|
* List observability destinations
|
|
16
16
|
*
|
|
17
17
|
* @remarks
|
|
18
|
-
* List the observability destinations configured for the authenticated entity's default workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
18
|
+
* List the observability destinations configured for the authenticated entity's default workspace, or a workspace-scoped management key's own workspace. Use the `workspace_id` query parameter to scope the result to a different workspace. A workspace-scoped management key can only list its own workspace; any other `workspace_id` returns 403. Only destinations with stable release status are surfaced — destinations of other types are excluded. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
19
19
|
*/
|
|
20
20
|
async list(request, options) {
|
|
21
21
|
return unwrapResultIterator(observabilityList(this, request, options));
|
|
@@ -24,7 +24,7 @@ export class Observability extends ClientSDK {
|
|
|
24
24
|
* Create an observability destination
|
|
25
25
|
*
|
|
26
26
|
* @remarks
|
|
27
|
-
* Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
27
|
+
* Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace, or a workspace-scoped management key's own workspace; use the `workspace_id` body field to scope to a different workspace. A workspace-scoped management key can only create in its own workspace; any other `workspace_id` returns 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
28
28
|
*/
|
|
29
29
|
async create(request, options) {
|
|
30
30
|
return unwrapAsync(observabilityCreate(this, request, options));
|
|
@@ -33,7 +33,7 @@ export class Observability extends ClientSDK {
|
|
|
33
33
|
* Delete an observability destination
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
|
-
* Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
36
|
+
* Delete an existing observability destination. This performs a soft delete. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
37
37
|
*/
|
|
38
38
|
async delete(request, options) {
|
|
39
39
|
return unwrapAsync(observabilityDelete(this, request, options));
|
|
@@ -42,7 +42,7 @@ export class Observability extends ClientSDK {
|
|
|
42
42
|
* Get an observability destination
|
|
43
43
|
*
|
|
44
44
|
* @remarks
|
|
45
|
-
* Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
45
|
+
* Fetch a single observability destination by its UUID. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
46
46
|
*/
|
|
47
47
|
async get(request, options) {
|
|
48
48
|
return unwrapAsync(observabilityGet(this, request, options));
|
|
@@ -51,7 +51,7 @@ export class Observability extends ClientSDK {
|
|
|
51
51
|
* Update an observability destination
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
54
|
+
* Update an existing observability destination. Only the fields provided in the request body are updated. A workspace-scoped management key only reaches destinations in its own workspace; any other `id` returns 404. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
55
55
|
*/
|
|
56
56
|
async update(request, options) {
|
|
57
57
|
return unwrapAsync(observabilityUpdate(this, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.83",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"packageManager": "pnpm@10.22.0",
|
|
23
23
|
"publishConfig": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"access": "public",
|
|
25
|
+
"provenance": true
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"main": "./esm/index.js",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
76
|
+
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
77
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
78
78
|
"test": "vitest --run --project unit",
|
|
79
|
+
"typecheck": "tsc --noEmit",
|
|
80
|
+
"prepare": "npm run build",
|
|
79
81
|
"test:e2e": "vitest --run --project e2e",
|
|
80
82
|
"test:transit": "exit 0",
|
|
81
|
-
"
|
|
82
|
-
"typecheck:transit": "exit 0"
|
|
83
|
-
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
84
|
-
"postinstall": "node scripts/check-types.js || true"
|
|
83
|
+
"test:watch": "vitest --watch --project unit",
|
|
84
|
+
"typecheck:transit": "exit 0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|