@orq-ai/node 4.16.11 → 4.16.13
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +8 -8
- package/packages/orq-rc/src/funcs/auditLogDestinationsCreate.ts +172 -0
- package/packages/orq-rc/src/funcs/auditLogDestinationsDelete.ts +180 -0
- package/packages/orq-rc/src/funcs/auditLogDestinationsGet.ts +180 -0
- package/packages/orq-rc/src/funcs/auditLogDestinationsList.ts +181 -0
- package/packages/orq-rc/src/funcs/auditLogDestinationsListDeliveries.ts +190 -0
- package/packages/orq-rc/src/funcs/auditLogDestinationsReplay.ts +183 -0
- package/packages/orq-rc/src/funcs/auditLogDestinationsRotateSecret.ts +185 -0
- package/packages/orq-rc/src/funcs/auditLogDestinationsTest.ts +180 -0
- package/packages/orq-rc/src/funcs/auditLogDestinationsUpdate.ts +183 -0
- package/packages/orq-rc/src/funcs/websearchSearch.ts +3 -3
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/auditlogdelivery.ts +100 -0
- package/packages/orq-rc/src/models/components/auditlogdeliverykind.ts +18 -0
- package/packages/orq-rc/src/models/components/auditlogdeliverystatus.ts +24 -0
- package/packages/orq-rc/src/models/components/auditlogdestination.ts +83 -0
- package/packages/orq-rc/src/models/components/auditlogdestinationstatus.ts +23 -0
- package/packages/orq-rc/src/models/components/budgetalert.ts +1 -0
- package/packages/orq-rc/src/models/components/budgetalertrestresponse.ts +1 -0
- package/packages/orq-rc/src/models/components/budgetscope.ts +1 -1
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/createauditlogdestinationrequest.ts +53 -0
- package/packages/orq-rc/src/models/components/createauditlogdestinationresponse.ts +45 -0
- package/packages/orq-rc/src/models/components/createbudgetrequest.ts +3 -3
- package/packages/orq-rc/src/models/components/deleteauditlogdestinationresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/effectiveuserpermissions.ts +31 -0
- package/packages/orq-rc/src/models/components/getauditlogdestinationresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/guardrailruleplugin.ts +1 -1
- package/packages/orq-rc/src/models/components/index.ts +18 -0
- package/packages/orq-rc/src/models/components/listauditlogdeliveriesresponse.ts +44 -0
- package/packages/orq-rc/src/models/components/listauditlogdestinationsresponse.ts +44 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/replayauditlogdeliveriesrequest.ts +42 -0
- package/packages/orq-rc/src/models/components/replayauditlogdeliveriesresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/rotateauditlogdestinationsecretresponse.ts +51 -0
- package/packages/orq-rc/src/models/components/routingruleplugin.ts +1 -1
- package/packages/orq-rc/src/models/components/spansummary.ts +6 -0
- package/packages/orq-rc/src/models/components/testauditlogdestinationresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/updateauditlogdestinationrequest.ts +60 -0
- package/packages/orq-rc/src/models/components/updateauditlogdestinationresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/workspacecapabilities.ts +11 -0
- package/packages/orq-rc/src/models/operations/auditlogdestinationdelete.ts +38 -0
- package/packages/orq-rc/src/models/operations/auditlogdestinationget.ts +38 -0
- package/packages/orq-rc/src/models/operations/auditlogdestinationlist.ts +45 -0
- package/packages/orq-rc/src/models/operations/auditlogdestinationlistdeliveries.ts +54 -0
- package/packages/orq-rc/src/models/operations/auditlogdestinationreplay.ts +45 -0
- package/packages/orq-rc/src/models/operations/auditlogdestinationrotatesecret.ts +39 -0
- package/packages/orq-rc/src/models/operations/auditlogdestinationtest.ts +38 -0
- package/packages/orq-rc/src/models/operations/auditlogdestinationupdate.ts +45 -0
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +4 -4
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcompletion.ts +2 -2
- package/packages/orq-rc/src/models/operations/createimage.ts +2 -2
- package/packages/orq-rc/src/models/operations/createimageedit.ts +2 -2
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +2 -2
- package/packages/orq-rc/src/models/operations/createprompt.ts +2 -2
- package/packages/orq-rc/src/models/operations/creatererank.ts +2 -2
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -1
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +8 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +3 -3
- package/packages/orq-rc/src/models/operations/searchweb.ts +3 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +3 -3
- package/packages/orq-rc/src/models/operations/updateagent.ts +4 -4
- package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/auditlogdestinations.ts +172 -0
- package/packages/orq-rc/src/sdk/sdk.ts +8 -0
- package/packages/orq-rc/src/sdk/websearch.ts +3 -3
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type CreateAuditLogDestinationRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* Required. Human-readable destination name, unique within the workspace.
|
|
11
|
+
*/
|
|
12
|
+
displayName: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional. Description of the receiving system.
|
|
15
|
+
*/
|
|
16
|
+
description?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Required. Absolute HTTPS URL. Private and loopback addresses are rejected.
|
|
19
|
+
*/
|
|
20
|
+
url: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type CreateAuditLogDestinationRequest$Outbound = {
|
|
25
|
+
display_name: string;
|
|
26
|
+
description?: string | undefined;
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const CreateAuditLogDestinationRequest$outboundSchema: z.ZodType<
|
|
32
|
+
CreateAuditLogDestinationRequest$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
CreateAuditLogDestinationRequest
|
|
35
|
+
> = z.object({
|
|
36
|
+
displayName: z.string(),
|
|
37
|
+
description: z.string().optional(),
|
|
38
|
+
url: z.string(),
|
|
39
|
+
}).transform((v) => {
|
|
40
|
+
return remap$(v, {
|
|
41
|
+
displayName: "display_name",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function createAuditLogDestinationRequestToJSON(
|
|
46
|
+
createAuditLogDestinationRequest: CreateAuditLogDestinationRequest,
|
|
47
|
+
): string {
|
|
48
|
+
return JSON.stringify(
|
|
49
|
+
CreateAuditLogDestinationRequest$outboundSchema.parse(
|
|
50
|
+
createAuditLogDestinationRequest,
|
|
51
|
+
),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AuditLogDestination,
|
|
12
|
+
AuditLogDestination$inboundSchema,
|
|
13
|
+
} from "./auditlogdestination.js";
|
|
14
|
+
|
|
15
|
+
export type CreateAuditLogDestinationResponse = {
|
|
16
|
+
destination: AuditLogDestination;
|
|
17
|
+
/**
|
|
18
|
+
* Signing secret for verifying deliveries. Shown only in this response; store it securely.
|
|
19
|
+
*/
|
|
20
|
+
signingSecret: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const CreateAuditLogDestinationResponse$inboundSchema: z.ZodType<
|
|
25
|
+
CreateAuditLogDestinationResponse,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
destination: AuditLogDestination$inboundSchema,
|
|
30
|
+
signing_secret: z.string(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"signing_secret": "signingSecret",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function createAuditLogDestinationResponseFromJSON(
|
|
38
|
+
jsonString: string,
|
|
39
|
+
): SafeParseResult<CreateAuditLogDestinationResponse, SDKValidationError> {
|
|
40
|
+
return safeParse(
|
|
41
|
+
jsonString,
|
|
42
|
+
(x) => CreateAuditLogDestinationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
43
|
+
`Failed to parse 'CreateAuditLogDestinationResponse' from JSON`,
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -37,7 +37,7 @@ export type CreateBudgetRequest = {
|
|
|
37
37
|
* @remarks
|
|
38
38
|
* for the six canonical kinds (the server derives the matching CEL),
|
|
39
39
|
* or provide `match` for a dynamic budget. Exactly one of the two
|
|
40
|
-
* must be set
|
|
40
|
+
* must be set.
|
|
41
41
|
*/
|
|
42
42
|
scope?: BudgetScope | undefined;
|
|
43
43
|
/**
|
|
@@ -52,7 +52,7 @@ export type CreateBudgetRequest = {
|
|
|
52
52
|
* At least one of amount / token_limit / rate_limit.requests_per_minute
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* must be provided on the budget
|
|
55
|
+
* must be provided on the budget.
|
|
56
56
|
*/
|
|
57
57
|
limits?: BudgetLimits | undefined;
|
|
58
58
|
/**
|
|
@@ -63,7 +63,7 @@ export type CreateBudgetRequest = {
|
|
|
63
63
|
* Whether the budget should be active immediately. Defaults to true
|
|
64
64
|
*
|
|
65
65
|
* @remarks
|
|
66
|
-
* when omitted
|
|
66
|
+
* when omitted.
|
|
67
67
|
*/
|
|
68
68
|
isActive?: boolean | undefined;
|
|
69
69
|
/**
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type DeleteAuditLogDestinationResponse = {};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const DeleteAuditLogDestinationResponse$inboundSchema: z.ZodType<
|
|
14
|
+
DeleteAuditLogDestinationResponse,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({});
|
|
18
|
+
|
|
19
|
+
export function deleteAuditLogDestinationResponseFromJSON(
|
|
20
|
+
jsonString: string,
|
|
21
|
+
): SafeParseResult<DeleteAuditLogDestinationResponse, SDKValidationError> {
|
|
22
|
+
return safeParse(
|
|
23
|
+
jsonString,
|
|
24
|
+
(x) => DeleteAuditLogDestinationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
25
|
+
`Failed to parse 'DeleteAuditLogDestinationResponse' from JSON`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type EffectiveUserPermissions = {
|
|
11
|
+
permissions?: Array<string> | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const EffectiveUserPermissions$inboundSchema: z.ZodType<
|
|
16
|
+
EffectiveUserPermissions,
|
|
17
|
+
z.ZodTypeDef,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
permissions: z.array(z.string()).optional(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export function effectiveUserPermissionsFromJSON(
|
|
24
|
+
jsonString: string,
|
|
25
|
+
): SafeParseResult<EffectiveUserPermissions, SDKValidationError> {
|
|
26
|
+
return safeParse(
|
|
27
|
+
jsonString,
|
|
28
|
+
(x) => EffectiveUserPermissions$inboundSchema.parse(JSON.parse(x)),
|
|
29
|
+
`Failed to parse 'EffectiveUserPermissions' from JSON`,
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AuditLogDestination,
|
|
11
|
+
AuditLogDestination$inboundSchema,
|
|
12
|
+
} from "./auditlogdestination.js";
|
|
13
|
+
|
|
14
|
+
export type GetAuditLogDestinationResponse = {
|
|
15
|
+
destination: AuditLogDestination;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const GetAuditLogDestinationResponse$inboundSchema: z.ZodType<
|
|
20
|
+
GetAuditLogDestinationResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
destination: AuditLogDestination$inboundSchema,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function getAuditLogDestinationResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<GetAuditLogDestinationResponse, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => GetAuditLogDestinationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'GetAuditLogDestinationResponse' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -19,7 +19,7 @@ export type GuardrailRulePlugin = {
|
|
|
19
19
|
* @remarks
|
|
20
20
|
* pii-detection capabilities catalog when the rule is saved, not pinned
|
|
21
21
|
* here, so a language or region the detector gains becomes writable without
|
|
22
|
-
* a
|
|
22
|
+
* a future update.
|
|
23
23
|
*/
|
|
24
24
|
language?: string | undefined;
|
|
25
25
|
/**
|
|
@@ -46,6 +46,11 @@ export * from "./apikeybudgetscope.js";
|
|
|
46
46
|
export * from "./apikeybudgetscoperestresponse.js";
|
|
47
47
|
export * from "./apikeyrestresponse.js";
|
|
48
48
|
export * from "./audiocontentpartschema.js";
|
|
49
|
+
export * from "./auditlogdelivery.js";
|
|
50
|
+
export * from "./auditlogdeliverykind.js";
|
|
51
|
+
export * from "./auditlogdeliverystatus.js";
|
|
52
|
+
export * from "./auditlogdestination.js";
|
|
53
|
+
export * from "./auditlogdestinationstatus.js";
|
|
49
54
|
export * from "./autorouterconfig.js";
|
|
50
55
|
export * from "./autorouterv2config.js";
|
|
51
56
|
export * from "./autorouterv2creatorconfig.js";
|
|
@@ -109,6 +114,8 @@ export * from "./createagentresponse.js";
|
|
|
109
114
|
export * from "./createalertrequest.js";
|
|
110
115
|
export * from "./createalertresponse.js";
|
|
111
116
|
export * from "./createannotationqueuerequest.js";
|
|
117
|
+
export * from "./createauditlogdestinationrequest.js";
|
|
118
|
+
export * from "./createauditlogdestinationresponse.js";
|
|
112
119
|
export * from "./createbudgetrequest.js";
|
|
113
120
|
export * from "./createbudgetresponse.js";
|
|
114
121
|
export * from "./createdatasetrequest.js";
|
|
@@ -175,6 +182,7 @@ export * from "./datasourcesservicepreviewchunksrequest.js";
|
|
|
175
182
|
export * from "./datasourcesservicepreviewchunksresponse.js";
|
|
176
183
|
export * from "./datasourcesserviceupdaterequest.js";
|
|
177
184
|
export * from "./deletealertresponse.js";
|
|
185
|
+
export * from "./deleteauditlogdestinationresponse.js";
|
|
178
186
|
export * from "./deletebudgetresponse.js";
|
|
179
187
|
export * from "./deletedatapointsrequest.js";
|
|
180
188
|
export * from "./deleteenvironmentresponse.js";
|
|
@@ -203,6 +211,7 @@ export * from "./detectresponse.js";
|
|
|
203
211
|
export * from "./domain.js";
|
|
204
212
|
export * from "./domainverification.js";
|
|
205
213
|
export * from "./domainverificationstatus.js";
|
|
214
|
+
export * from "./effectiveuserpermissions.js";
|
|
206
215
|
export * from "./embeddingcacheconfig.js";
|
|
207
216
|
export * from "./embeddingcontactparams.js";
|
|
208
217
|
export * from "./embeddingdimensionsupport.js";
|
|
@@ -255,6 +264,7 @@ export * from "./functiontoolinput.js";
|
|
|
255
264
|
export * from "./generatewebhooksecretresponse.js";
|
|
256
265
|
export * from "./getagentresponse.js";
|
|
257
266
|
export * from "./getalertresponse.js";
|
|
267
|
+
export * from "./getauditlogdestinationresponse.js";
|
|
258
268
|
export * from "./getbudgetresponse.js";
|
|
259
269
|
export * from "./getenvironmentresponse.js";
|
|
260
270
|
export * from "./getexternalagentresponse.js";
|
|
@@ -327,6 +337,8 @@ export * from "./listalerttriggereventsresponse.js";
|
|
|
327
337
|
export * from "./listalerttriggersresponse.js";
|
|
328
338
|
export * from "./listannotationqueueitemsresponse.js";
|
|
329
339
|
export * from "./listannotationqueuesresponse.js";
|
|
340
|
+
export * from "./listauditlogdeliveriesresponse.js";
|
|
341
|
+
export * from "./listauditlogdestinationsresponse.js";
|
|
330
342
|
export * from "./listbudgetsresponse.js";
|
|
331
343
|
export * from "./listdatapointsresponse.js";
|
|
332
344
|
export * from "./listdatasetsresponse.js";
|
|
@@ -524,6 +536,8 @@ export * from "./refreshwikirequest.js";
|
|
|
524
536
|
export * from "./refreshwikiresponse.js";
|
|
525
537
|
export * from "./refusalpartschema.js";
|
|
526
538
|
export * from "./removeannotationqueueitemsrequest.js";
|
|
539
|
+
export * from "./replayauditlogdeliveriesrequest.js";
|
|
540
|
+
export * from "./replayauditlogdeliveriesresponse.js";
|
|
527
541
|
export * from "./requestlimit.js";
|
|
528
542
|
export * from "./requestprojectscope.js";
|
|
529
543
|
export * from "./rerankconfig.js";
|
|
@@ -607,6 +621,7 @@ export * from "./retrieveidentityresponse.js";
|
|
|
607
621
|
export * from "./retrieveknowledgebasestoolinput.js";
|
|
608
622
|
export * from "./retrievememorystorestoolinput.js";
|
|
609
623
|
export * from "./reviewoutcome.js";
|
|
624
|
+
export * from "./rotateauditlogdestinationsecretresponse.js";
|
|
610
625
|
export * from "./routingrule.js";
|
|
611
626
|
export * from "./routingrulecacheconfig.js";
|
|
612
627
|
export * from "./routingruleexpression.js";
|
|
@@ -666,6 +681,7 @@ export * from "./telemetryrow.js";
|
|
|
666
681
|
export * from "./telemetrysource.js";
|
|
667
682
|
export * from "./telemetrysourcecapability.js";
|
|
668
683
|
export * from "./telemetryvaluecardinality.js";
|
|
684
|
+
export * from "./testauditlogdestinationresponse.js";
|
|
669
685
|
export * from "./testexternalagentconnectionrequest.js";
|
|
670
686
|
export * from "./testexternalagentconnectionresponse.js";
|
|
671
687
|
export * from "./testmcpservertoolrequest.js";
|
|
@@ -712,6 +728,8 @@ export * from "./traceusage.js";
|
|
|
712
728
|
export * from "./updatealertrequest.js";
|
|
713
729
|
export * from "./updatealertresponse.js";
|
|
714
730
|
export * from "./updateannotationqueuerequest.js";
|
|
731
|
+
export * from "./updateauditlogdestinationrequest.js";
|
|
732
|
+
export * from "./updateauditlogdestinationresponse.js";
|
|
715
733
|
export * from "./updatebudgetrequest.js";
|
|
716
734
|
export * from "./updatebudgetresponse.js";
|
|
717
735
|
export * from "./updatedatapointrequest.js";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AuditLogDelivery,
|
|
12
|
+
AuditLogDelivery$inboundSchema,
|
|
13
|
+
} from "./auditlogdelivery.js";
|
|
14
|
+
|
|
15
|
+
export type ListAuditLogDeliveriesResponse = {
|
|
16
|
+
object: string;
|
|
17
|
+
data: Array<AuditLogDelivery>;
|
|
18
|
+
hasMore: boolean;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ListAuditLogDeliveriesResponse$inboundSchema: z.ZodType<
|
|
23
|
+
ListAuditLogDeliveriesResponse,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
object: z.string(),
|
|
28
|
+
data: z.array(AuditLogDelivery$inboundSchema),
|
|
29
|
+
has_more: z.boolean(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"has_more": "hasMore",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function listAuditLogDeliveriesResponseFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<ListAuditLogDeliveriesResponse, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => ListAuditLogDeliveriesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'ListAuditLogDeliveriesResponse' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AuditLogDestination,
|
|
12
|
+
AuditLogDestination$inboundSchema,
|
|
13
|
+
} from "./auditlogdestination.js";
|
|
14
|
+
|
|
15
|
+
export type ListAuditLogDestinationsResponse = {
|
|
16
|
+
object: string;
|
|
17
|
+
data: Array<AuditLogDestination>;
|
|
18
|
+
hasMore: boolean;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ListAuditLogDestinationsResponse$inboundSchema: z.ZodType<
|
|
23
|
+
ListAuditLogDestinationsResponse,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
object: z.string(),
|
|
28
|
+
data: z.array(AuditLogDestination$inboundSchema),
|
|
29
|
+
has_more: z.boolean(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"has_more": "hasMore",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function listAuditLogDestinationsResponseFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<ListAuditLogDestinationsResponse, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => ListAuditLogDestinationsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'ListAuditLogDestinationsResponse' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01m5bw40bh25ndffer0kdarrj7"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type ReplayAuditLogDeliveriesRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Required. Start of the window (inclusive).
|
|
10
|
+
*/
|
|
11
|
+
from: Date;
|
|
12
|
+
/**
|
|
13
|
+
* Required. End of the window (exclusive). The window may span at most 31 days.
|
|
14
|
+
*/
|
|
15
|
+
to: Date;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type ReplayAuditLogDeliveriesRequest$Outbound = {
|
|
20
|
+
from: string;
|
|
21
|
+
to: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ReplayAuditLogDeliveriesRequest$outboundSchema: z.ZodType<
|
|
26
|
+
ReplayAuditLogDeliveriesRequest$Outbound,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
ReplayAuditLogDeliveriesRequest
|
|
29
|
+
> = z.object({
|
|
30
|
+
from: z.date().transform(v => v.toISOString()),
|
|
31
|
+
to: z.date().transform(v => v.toISOString()),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function replayAuditLogDeliveriesRequestToJSON(
|
|
35
|
+
replayAuditLogDeliveriesRequest: ReplayAuditLogDeliveriesRequest,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
ReplayAuditLogDeliveriesRequest$outboundSchema.parse(
|
|
39
|
+
replayAuditLogDeliveriesRequest,
|
|
40
|
+
),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ReplayAuditLogDeliveriesResponse = {
|
|
12
|
+
replayId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Number of deliveries queued by this replay.
|
|
15
|
+
*/
|
|
16
|
+
queued: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const ReplayAuditLogDeliveriesResponse$inboundSchema: z.ZodType<
|
|
21
|
+
ReplayAuditLogDeliveriesResponse,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
replay_id: z.string(),
|
|
26
|
+
queued: z.number().int(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"replay_id": "replayId",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function replayAuditLogDeliveriesResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<ReplayAuditLogDeliveriesResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => ReplayAuditLogDeliveriesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'ReplayAuditLogDeliveriesResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AuditLogDestination,
|
|
12
|
+
AuditLogDestination$inboundSchema,
|
|
13
|
+
} from "./auditlogdestination.js";
|
|
14
|
+
|
|
15
|
+
export type RotateAuditLogDestinationSecretResponse = {
|
|
16
|
+
destination: AuditLogDestination;
|
|
17
|
+
/**
|
|
18
|
+
* New signing secret. Shown only in this response; store it securely.
|
|
19
|
+
*/
|
|
20
|
+
signingSecret: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const RotateAuditLogDestinationSecretResponse$inboundSchema: z.ZodType<
|
|
25
|
+
RotateAuditLogDestinationSecretResponse,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
destination: AuditLogDestination$inboundSchema,
|
|
30
|
+
signing_secret: z.string(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"signing_secret": "signingSecret",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function rotateAuditLogDestinationSecretResponseFromJSON(
|
|
38
|
+
jsonString: string,
|
|
39
|
+
): SafeParseResult<
|
|
40
|
+
RotateAuditLogDestinationSecretResponse,
|
|
41
|
+
SDKValidationError
|
|
42
|
+
> {
|
|
43
|
+
return safeParse(
|
|
44
|
+
jsonString,
|
|
45
|
+
(x) =>
|
|
46
|
+
RotateAuditLogDestinationSecretResponse$inboundSchema.parse(
|
|
47
|
+
JSON.parse(x),
|
|
48
|
+
),
|
|
49
|
+
`Failed to parse 'RotateAuditLogDestinationSecretResponse' from JSON`,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -31,7 +31,7 @@ export type RoutingRulePlugin = {
|
|
|
31
31
|
* @remarks
|
|
32
32
|
* pii-detection capabilities catalog when the rule is saved, not pinned
|
|
33
33
|
* here, so a language or region the detector gains becomes writable without
|
|
34
|
-
* a
|
|
34
|
+
* a future update.
|
|
35
35
|
*/
|
|
36
36
|
language?: string | undefined;
|
|
37
37
|
/**
|
|
@@ -39,6 +39,10 @@ export type SpanSummary = {
|
|
|
39
39
|
traceFramework?: string | undefined;
|
|
40
40
|
leadingSpanType?: string | undefined;
|
|
41
41
|
guardrailEnabled?: boolean | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Why the span's generation stopped, for example stop, length or content_filter.
|
|
44
|
+
*/
|
|
45
|
+
finishReasons?: Array<string> | undefined;
|
|
42
46
|
};
|
|
43
47
|
|
|
44
48
|
/** @internal */
|
|
@@ -70,6 +74,7 @@ export const SpanSummary$inboundSchema: z.ZodType<
|
|
|
70
74
|
trace_framework: z.string().optional(),
|
|
71
75
|
leading_span_type: z.string().optional(),
|
|
72
76
|
guardrail_enabled: z.boolean().optional(),
|
|
77
|
+
finish_reasons: z.array(z.string()).optional(),
|
|
73
78
|
}).transform((v) => {
|
|
74
79
|
return remap$(v, {
|
|
75
80
|
"trace_id": "traceId",
|
|
@@ -83,6 +88,7 @@ export const SpanSummary$inboundSchema: z.ZodType<
|
|
|
83
88
|
"trace_framework": "traceFramework",
|
|
84
89
|
"leading_span_type": "leadingSpanType",
|
|
85
90
|
"guardrail_enabled": "guardrailEnabled",
|
|
91
|
+
"finish_reasons": "finishReasons",
|
|
86
92
|
});
|
|
87
93
|
});
|
|
88
94
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AuditLogDelivery,
|
|
11
|
+
AuditLogDelivery$inboundSchema,
|
|
12
|
+
} from "./auditlogdelivery.js";
|
|
13
|
+
|
|
14
|
+
export type TestAuditLogDestinationResponse = {
|
|
15
|
+
delivery: AuditLogDelivery;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const TestAuditLogDestinationResponse$inboundSchema: z.ZodType<
|
|
20
|
+
TestAuditLogDestinationResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
delivery: AuditLogDelivery$inboundSchema,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function testAuditLogDestinationResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<TestAuditLogDestinationResponse, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => TestAuditLogDestinationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'TestAuditLogDestinationResponse' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|