@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
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Bulk assign keys to a guardrail
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* 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.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsBulkAssignKeys(client: OpenRouterCore, request: operations.BulkAssignKeysToGuardrailRequest, options?: RequestOptions): APIPromise<Result<models.BulkAssignKeysResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=guardrailsBulkAssignKeys.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Bulk assign keys to a guardrail
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* 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.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsBulkAssignKeys(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Bulk assign members to a guardrail
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Assign multiple organization members to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsBulkAssignMembers(client: OpenRouterCore, request: operations.BulkAssignMembersToGuardrailRequest, options?: RequestOptions): APIPromise<Result<models.BulkAssignMembersResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=guardrailsBulkAssignMembers.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Bulk assign members to a guardrail
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Assign multiple organization members to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsBulkAssignMembers(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Bulk unassign keys from a guardrail
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Unassign multiple API keys from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsBulkUnassignKeys(client: OpenRouterCore, request: operations.BulkUnassignKeysFromGuardrailRequest, options?: RequestOptions): APIPromise<Result<models.BulkUnassignKeysResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=guardrailsBulkUnassignKeys.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Bulk unassign keys from a guardrail
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Unassign multiple API keys from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsBulkUnassignKeys(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Bulk unassign members from a guardrail
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Unassign multiple organization members from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsBulkUnassignMembers(client: OpenRouterCore, request: operations.BulkUnassignMembersFromGuardrailRequest, options?: RequestOptions): APIPromise<Result<models.BulkUnassignMembersResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=guardrailsBulkUnassignMembers.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Bulk unassign members from a guardrail
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Unassign multiple organization members from a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsBulkUnassignMembers(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Create a guardrail
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* 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.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsCreate(client: OpenRouterCore, request: operations.CreateGuardrailRequest, options?: RequestOptions): APIPromise<Result<models.CreateGuardrailResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=guardrailsCreate.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Create a guardrail
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* 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.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsCreate(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Delete a guardrail
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Delete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsDelete(client: OpenRouterCore, request: operations.DeleteGuardrailRequest, options?: RequestOptions): APIPromise<Result<models.DeleteGuardrailResponse, errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=guardrailsDelete.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Delete a guardrail
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Delete an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsDelete(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Get a guardrail
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Get a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsGet(client: OpenRouterCore, request: operations.GetGuardrailRequest, options?: RequestOptions): APIPromise<Result<models.GetGuardrailResponse, errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=guardrailsGet.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Get a guardrail
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Get a single guardrail by ID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsGet(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { PageIterator } from "../types/operations.js";
|
|
|
13
13
|
* List guardrails
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsList(client: OpenRouterCore, request?: operations.ListGuardrailsRequest | undefined, options?: RequestOptions): APIPromise<PageIterator<Result<operations.ListGuardrailsResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
|
|
19
19
|
offset: number;
|
|
@@ -17,7 +17,7 @@ import { createPageIterator, haltIterator, } from "../types/operations.js";
|
|
|
17
17
|
* List guardrails
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* List all guardrails for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsList(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { PageIterator } from "../types/operations.js";
|
|
|
13
13
|
* List key assignments for a guardrail
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsListGuardrailKeyAssignments(client: OpenRouterCore, request: operations.ListGuardrailKeyAssignmentsRequest, options?: RequestOptions): APIPromise<PageIterator<Result<operations.ListGuardrailKeyAssignmentsResponse, errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
|
|
19
19
|
offset: number;
|
|
@@ -17,7 +17,7 @@ import { createPageIterator, haltIterator, } from "../types/operations.js";
|
|
|
17
17
|
* List key assignments for a guardrail
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* List all API key assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsListGuardrailKeyAssignments(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { PageIterator } from "../types/operations.js";
|
|
|
13
13
|
* List member assignments for a guardrail
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsListGuardrailMemberAssignments(client: OpenRouterCore, request: operations.ListGuardrailMemberAssignmentsRequest, options?: RequestOptions): APIPromise<PageIterator<Result<operations.ListGuardrailMemberAssignmentsResponse, errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
|
|
19
19
|
offset: number;
|
|
@@ -17,7 +17,7 @@ import { createPageIterator, haltIterator, } from "../types/operations.js";
|
|
|
17
17
|
* List member assignments for a guardrail
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* List all organization member assignments for a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsListGuardrailMemberAssignments(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { PageIterator } from "../types/operations.js";
|
|
|
13
13
|
* List all key assignments
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsListKeyAssignments(client: OpenRouterCore, request?: operations.ListKeyAssignmentsRequest | undefined, options?: RequestOptions): APIPromise<PageIterator<Result<operations.ListKeyAssignmentsResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
|
|
19
19
|
offset: number;
|
|
@@ -17,7 +17,7 @@ import { createPageIterator, haltIterator, } from "../types/operations.js";
|
|
|
17
17
|
* List all key assignments
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* List all API key guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsListKeyAssignments(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { PageIterator } from "../types/operations.js";
|
|
|
13
13
|
* List all member assignments
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsListMemberAssignments(client: OpenRouterCore, request?: operations.ListMemberAssignmentsRequest | undefined, options?: RequestOptions): APIPromise<PageIterator<Result<operations.ListMemberAssignmentsResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
|
|
19
19
|
offset: number;
|
|
@@ -17,7 +17,7 @@ import { createPageIterator, haltIterator, } from "../types/operations.js";
|
|
|
17
17
|
* List all member assignments
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* List all organization member guardrail assignments for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsListMemberAssignments(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Update a guardrail
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* 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.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function guardrailsUpdate(client: OpenRouterCore, request: operations.UpdateGuardrailRequest, options?: RequestOptions): APIPromise<Result<models.UpdateGuardrailResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.ConflictResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=guardrailsUpdate.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Update a guardrail
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* 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.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function guardrailsUpdate(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Create an observability destination
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* 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.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function observabilityCreate(client: OpenRouterCore, request: operations.CreateObservabilityDestinationRequest, options?: RequestOptions): APIPromise<Result<models.CreateObservabilityDestinationResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.ConflictResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=observabilityCreate.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Create an observability destination
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* 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.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function observabilityCreate(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Delete an observability destination
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function observabilityDelete(client: OpenRouterCore, request: operations.DeleteObservabilityDestinationRequest, options?: RequestOptions): APIPromise<Result<models.DeleteObservabilityDestinationResponse, errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=observabilityDelete.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Delete an observability destination
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function observabilityDelete(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Get an observability destination
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function observabilityGet(client: OpenRouterCore, request: operations.GetObservabilityDestinationRequest, options?: RequestOptions): APIPromise<Result<models.GetObservabilityDestinationResponse, errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=observabilityGet.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Get an observability destination
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function observabilityGet(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { PageIterator } from "../types/operations.js";
|
|
|
13
13
|
* List observability destinations
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* 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.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function observabilityList(client: OpenRouterCore, request?: operations.ListObservabilityDestinationsRequest | undefined, options?: RequestOptions): APIPromise<PageIterator<Result<operations.ListObservabilityDestinationsResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
|
|
19
19
|
offset: number;
|
|
@@ -17,7 +17,7 @@ import { createPageIterator, haltIterator, } from "../types/operations.js";
|
|
|
17
17
|
* List observability destinations
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* 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.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function observabilityList(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Update an observability destination
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* 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.
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function observabilityUpdate(client: OpenRouterCore, request: operations.UpdateObservabilityDestinationRequest, options?: RequestOptions): APIPromise<Result<models.UpdateObservabilityDestinationResponse, errors.BadRequestResponseError | errors.UnauthorizedResponseError | errors.ForbiddenResponseError | errors.NotFoundResponseError | errors.ConflictResponseError | errors.InternalServerResponseError | OpenRouterError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=observabilityUpdate.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Update an observability destination
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* 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.
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function observabilityUpdate(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -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.
|
|
53
|
+
readonly sdkVersion: "1.5.83";
|
|
54
54
|
readonly genVersion: "2.950.13";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.5.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.5.83 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.
|
|
32
|
+
sdkVersion: "1.5.83",
|
|
33
33
|
genVersion: "2.950.13",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.5.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.5.83 2.950.13 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -103,7 +103,7 @@ export type CreateGuardrailRequest = {
|
|
|
103
103
|
*/
|
|
104
104
|
resetInterval?: GuardrailInterval | null | undefined;
|
|
105
105
|
/**
|
|
106
|
-
* The workspace to create the guardrail in. When omitted, the guardrail
|
|
106
|
+
* The workspace to create the guardrail in. When omitted, an organization management key creates the guardrail in the default workspace (a 400 if that default has been deleted, so pass `workspace_id` explicitly) and a workspace-scoped key creates it in its own workspace. A workspace-scoped key gets a 403 for any other workspace. This only places the guardrail in the workspace; the created guardrail enforces nothing for that workspace's traffic until it is assigned to API keys or members. To restrict all traffic in a workspace, update the workspace's default guardrail instead.
|
|
107
107
|
*/
|
|
108
108
|
workspaceId?: string | undefined;
|
|
109
109
|
};
|
|
@@ -30,7 +30,7 @@ export declare const CreateObservabilityDestinationRequestType: {
|
|
|
30
30
|
export type CreateObservabilityDestinationRequestType = OpenEnum<typeof CreateObservabilityDestinationRequestType>;
|
|
31
31
|
export type CreateObservabilityDestinationRequest = {
|
|
32
32
|
/**
|
|
33
|
-
* Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. `null` or omitted means all keys. Must contain at least one hash if provided.
|
|
33
|
+
* Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. `null` or omitted means all keys. 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.
|
|
34
34
|
*/
|
|
35
35
|
apiKeyHashes?: Array<string> | null | undefined;
|
|
36
36
|
/**
|
|
@@ -84,7 +84,7 @@ export type CreateObservabilityDestinationRequest = {
|
|
|
84
84
|
*/
|
|
85
85
|
type: CreateObservabilityDestinationRequestType;
|
|
86
86
|
/**
|
|
87
|
-
* Optional workspace ID. Defaults to the authenticated entity's default workspace.
|
|
87
|
+
* Optional workspace ID. Defaults to the authenticated entity's default workspace, or a workspace-scoped management key's own workspace.
|
|
88
88
|
*/
|
|
89
89
|
workspaceId?: string | undefined;
|
|
90
90
|
};
|
|
@@ -4,6 +4,7 @@ export declare const ExtractionAssetFormat: {
|
|
|
4
4
|
readonly Png: "png";
|
|
5
5
|
readonly Jpg: "jpg";
|
|
6
6
|
readonly Jpeg: "jpeg";
|
|
7
|
+
readonly Webp: "webp";
|
|
7
8
|
readonly Pdf: "pdf";
|
|
8
9
|
};
|
|
9
10
|
export type ExtractionAssetFormat = OpenEnum<typeof ExtractionAssetFormat>;
|
|
@@ -13,7 +14,7 @@ export declare const ExtractionAssetType: {
|
|
|
13
14
|
};
|
|
14
15
|
export type ExtractionAssetType = OpenEnum<typeof ExtractionAssetType>;
|
|
15
16
|
/**
|
|
16
|
-
* An image or PDF sent once and referenced by its key in the `assets` map. `data_base64` is the file in standard base64 with no `data:` prefix.
|
|
17
|
+
* An image or PDF sent once and referenced by its key in the `assets` map. `data_base64` is the file in standard base64 with no `data:` prefix. Which formats are read is model-specific: a format the model cannot read fails with a 400.
|
|
17
18
|
*/
|
|
18
19
|
export type ExtractionAsset = {
|
|
19
20
|
dataBase64: string;
|
|
@@ -29,7 +29,7 @@ export type ExtractionDateAnswer = {
|
|
|
29
29
|
*/
|
|
30
30
|
source?: ExtractionDateAnswerSource | 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 ExtractionDateField = {
|
|
|
9
9
|
*/
|
|
10
10
|
nullThreshold?: number | undefined;
|
|
11
11
|
type: "date";
|
|
12
|
+
/**
|
|
13
|
+
* Unit label for the value.
|
|
14
|
+
*/
|
|
15
|
+
unit?: string | undefined;
|
|
12
16
|
};
|
|
13
17
|
/** @internal */
|
|
14
18
|
export type ExtractionDateField$Outbound = {
|
|
15
19
|
instructions?: string | undefined;
|
|
16
20
|
null_threshold?: number | undefined;
|
|
17
21
|
type: "date";
|
|
22
|
+
unit?: string | undefined;
|
|
18
23
|
};
|
|
19
24
|
/** @internal */
|
|
20
25
|
export declare const ExtractionDateField$outboundSchema: z.ZodType<ExtractionDateField$Outbound, ExtractionDateField>;
|
|
@@ -9,6 +9,7 @@ export const ExtractionDateField$outboundSchema = z.object({
|
|
|
9
9
|
instructions: z.string().optional(),
|
|
10
10
|
nullThreshold: z.number().optional(),
|
|
11
11
|
type: z.literal("date"),
|
|
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 ExtractionDatetimeAnswer = {
|
|
|
29
29
|
*/
|
|
30
30
|
source?: ExtractionDatetimeAnswerSource | 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 ExtractionDatetimeField = {
|
|
|
9
9
|
*/
|
|
10
10
|
nullThreshold?: number | undefined;
|
|
11
11
|
type: "datetime";
|
|
12
|
+
/**
|
|
13
|
+
* Unit label for the value.
|
|
14
|
+
*/
|
|
15
|
+
unit?: string | undefined;
|
|
12
16
|
};
|
|
13
17
|
/** @internal */
|
|
14
18
|
export type ExtractionDatetimeField$Outbound = {
|
|
15
19
|
instructions?: string | undefined;
|
|
16
20
|
null_threshold?: number | undefined;
|
|
17
21
|
type: "datetime";
|
|
22
|
+
unit?: string | undefined;
|
|
18
23
|
};
|
|
19
24
|
/** @internal */
|
|
20
25
|
export declare const ExtractionDatetimeField$outboundSchema: z.ZodType<ExtractionDatetimeField$Outbound, ExtractionDatetimeField>;
|
|
@@ -9,6 +9,7 @@ export const ExtractionDatetimeField$outboundSchema = z.object({
|
|
|
9
9
|
instructions: z.string().optional(),
|
|
10
10
|
nullThreshold: z.number().optional(),
|
|
11
11
|
type: z.literal("datetime"),
|
|
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 ExtractionDurationAnswer = {
|
|
|
29
29
|
*/
|
|
30
30
|
source?: ExtractionDurationAnswerSource | 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,6 +8,9 @@ export type ExtractionDurationField = {
|
|
|
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.
|
|
@@ -24,12 +24,15 @@ export type ExtractionEstimateField = {
|
|
|
24
24
|
max: number | string;
|
|
25
25
|
min: number | string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Not read on this field type: no model takes a null threshold here, and a request that sets it fails with a 400.
|
|
28
28
|
*/
|
|
29
29
|
nullThreshold?: number | undefined;
|
|
30
30
|
scale?: ExtractionEstimateFieldScale | undefined;
|
|
31
31
|
step?: number | ExtractionEstimateFieldStepMonth | ExtractionEstimateFieldStepYear | undefined;
|
|
32
32
|
type: "estimate";
|
|
33
|
+
/**
|
|
34
|
+
* Unit label for the value.
|
|
35
|
+
*/
|
|
33
36
|
unit?: string | undefined;
|
|
34
37
|
};
|
|
35
38
|
/** @internal */
|