@orq-ai/node 4.16.6 → 4.16.8
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/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 +1 -1
- package/packages/orq-rc/src/funcs/agentsExternalCreate.ts +163 -0
- package/packages/orq-rc/src/funcs/agentsExternalDelete.ts +169 -0
- package/packages/orq-rc/src/funcs/agentsExternalList.ts +172 -0
- package/packages/orq-rc/src/funcs/agentsExternalRefreshCard.ts +174 -0
- package/packages/orq-rc/src/funcs/agentsExternalRetrieve.ts +168 -0
- package/packages/orq-rc/src/funcs/agentsExternalTestConnection.ts +174 -0
- package/packages/orq-rc/src/funcs/agentsExternalUpdate.ts +172 -0
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +2 -2
- package/packages/orq-rc/src/funcs/monitorsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/monitorsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/monitorsGet.ts +168 -0
- package/packages/orq-rc/src/funcs/monitorsList.ts +173 -0
- package/packages/orq-rc/src/funcs/monitorsListPresets.ts +144 -0
- package/packages/orq-rc/src/funcs/monitorsUpdate.ts +171 -0
- package/packages/orq-rc/src/funcs/usersCreate.ts +171 -0
- package/packages/orq-rc/src/funcs/usersDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/usersGet.ts +168 -0
- package/packages/orq-rc/src/funcs/usersList.ts +144 -0
- package/packages/orq-rc/src/funcs/usersUpdate.ts +169 -0
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/autorouterv2config.ts +30 -0
- package/packages/orq-rc/src/models/components/autorouterv2creatorconfig.ts +4 -4
- package/packages/orq-rc/src/models/components/autorouterv2effortconfig.ts +24 -0
- package/packages/orq-rc/src/models/components/createexternalagentrequest.ts +73 -0
- package/packages/orq-rc/src/models/components/createexternalagentresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/createmonitorrequest.ts +108 -0
- package/packages/orq-rc/src/models/components/createmonitorresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/createusersrequest.ts +40 -0
- package/packages/orq-rc/src/models/components/createusersresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/deleteexternalagentresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/deletemonitorresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/deleteuserresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/externalagent.ts +107 -0
- package/packages/orq-rc/src/models/components/externalagentheader.ts +55 -0
- package/packages/orq-rc/src/models/components/getexternalagentresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/getmonitorresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/getuserresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/index.ts +40 -0
- package/packages/orq-rc/src/models/components/listexternalagentsresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/listmonitorpresetsresponse.ts +40 -0
- package/packages/orq-rc/src/models/components/listmonitorsresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/listusersresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/monitor.ts +133 -0
- package/packages/orq-rc/src/models/components/monitorpreset.ts +120 -0
- package/packages/orq-rc/src/models/components/monitortelemetrysource.ts +23 -0
- package/packages/orq-rc/src/models/components/monitorwidget.ts +145 -0
- package/packages/orq-rc/src/models/components/monitorwidgetcompute.ts +61 -0
- package/packages/orq-rc/src/models/components/monitorwidgetdisplay.ts +196 -0
- package/packages/orq-rc/src/models/components/monitorwidgetlayout.ts +75 -0
- package/packages/orq-rc/src/models/components/monitorwidgetquery.ts +165 -0
- package/packages/orq-rc/src/models/components/openaicontextmanagement.ts +43 -0
- package/packages/orq-rc/src/models/components/piiredactionconfig.ts +3 -2
- package/packages/orq-rc/src/models/components/piiredactionplugin.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/refreshexternalagentcardrequest.ts +27 -0
- package/packages/orq-rc/src/models/components/refreshexternalagentcardresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/testexternalagentconnectionrequest.ts +27 -0
- package/packages/orq-rc/src/models/components/testexternalagentconnectionresponse.ts +50 -0
- package/packages/orq-rc/src/models/components/thinkingparam.ts +112 -0
- package/packages/orq-rc/src/models/components/updateexternalagentrequest.ts +74 -0
- package/packages/orq-rc/src/models/components/updateexternalagentresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/updatemonitorrequest.ts +80 -0
- package/packages/orq-rc/src/models/components/updatemonitorresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/updateuserrequest.ts +42 -0
- package/packages/orq-rc/src/models/components/updateuserresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/user.ts +90 -0
- package/packages/orq-rc/src/models/components/userinvitationdata.ts +38 -0
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +24 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/externalagentdelete.ts +36 -0
- package/packages/orq-rc/src/models/operations/externalagentget.ts +36 -0
- package/packages/orq-rc/src/models/operations/externalagentlist.ts +43 -0
- package/packages/orq-rc/src/models/operations/externalagentrefreshcard.ts +45 -0
- package/packages/orq-rc/src/models/operations/externalagenttestconnection.ts +46 -0
- package/packages/orq-rc/src/models/operations/externalagentupdate.ts +42 -0
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- 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 +14 -0
- package/packages/orq-rc/src/models/operations/monitordelete.ts +39 -0
- package/packages/orq-rc/src/models/operations/monitorget.ts +39 -0
- package/packages/orq-rc/src/models/operations/monitorlist.ts +84 -0
- package/packages/orq-rc/src/models/operations/monitorupdate.ts +44 -0
- 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/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/searchweb.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +16 -11
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/usercreate.ts +44 -0
- package/packages/orq-rc/src/models/operations/userdelete.ts +39 -0
- package/packages/orq-rc/src/models/operations/userget.ts +35 -0
- package/packages/orq-rc/src/models/operations/userupdate.ts +44 -0
- package/packages/orq-rc/src/sdk/agents.ts +7 -1
- package/packages/orq-rc/src/sdk/external.ts +136 -0
- package/packages/orq-rc/src/sdk/monitors.ts +116 -0
- package/packages/orq-rc/src/sdk/sdk.ts +12 -0
- package/packages/orq-rc/src/sdk/users.ts +98 -0
- 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/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,80 @@
|
|
|
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 {
|
|
8
|
+
MonitorWidget,
|
|
9
|
+
MonitorWidget$Outbound,
|
|
10
|
+
MonitorWidget$outboundSchema,
|
|
11
|
+
} from "./monitorwidget.js";
|
|
12
|
+
|
|
13
|
+
export type UpdateMonitorRequest = {
|
|
14
|
+
/**
|
|
15
|
+
* New workspace-unique display name. Omit to keep the current name.
|
|
16
|
+
*/
|
|
17
|
+
displayName?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* New description. Omit to keep the current description.
|
|
20
|
+
*/
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Replacement widget set. When update_mask contains `widgets`, this value
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* replaces the full set and may be empty. Without update_mask, a non-empty
|
|
27
|
+
* array replaces all widgets while an empty or omitted array keeps them.
|
|
28
|
+
*/
|
|
29
|
+
widgets?: Array<MonitorWidget> | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* New default relative time range. Omit to keep the current value unless
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* update_mask contains `default_range`, which clears it.
|
|
35
|
+
*/
|
|
36
|
+
defaultRange?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Optional explicit update presence. Listed paths are replaced; omitting
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* the mask preserves the legacy partial-update behavior.
|
|
42
|
+
*/
|
|
43
|
+
updateMask?: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type UpdateMonitorRequest$Outbound = {
|
|
48
|
+
display_name?: string | undefined;
|
|
49
|
+
description?: string | undefined;
|
|
50
|
+
widgets?: Array<MonitorWidget$Outbound> | undefined;
|
|
51
|
+
default_range?: string | undefined;
|
|
52
|
+
update_mask?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const UpdateMonitorRequest$outboundSchema: z.ZodType<
|
|
57
|
+
UpdateMonitorRequest$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
UpdateMonitorRequest
|
|
60
|
+
> = z.object({
|
|
61
|
+
displayName: z.string().optional(),
|
|
62
|
+
description: z.string().optional(),
|
|
63
|
+
widgets: z.array(MonitorWidget$outboundSchema).optional(),
|
|
64
|
+
defaultRange: z.string().optional(),
|
|
65
|
+
updateMask: z.string().optional(),
|
|
66
|
+
}).transform((v) => {
|
|
67
|
+
return remap$(v, {
|
|
68
|
+
displayName: "display_name",
|
|
69
|
+
defaultRange: "default_range",
|
|
70
|
+
updateMask: "update_mask",
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export function updateMonitorRequestToJSON(
|
|
75
|
+
updateMonitorRequest: UpdateMonitorRequest,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
UpdateMonitorRequest$outboundSchema.parse(updateMonitorRequest),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -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 { Monitor, Monitor$inboundSchema } from "./monitor.js";
|
|
10
|
+
|
|
11
|
+
export type UpdateMonitorResponse = {
|
|
12
|
+
/**
|
|
13
|
+
* Updated monitor.
|
|
14
|
+
*/
|
|
15
|
+
monitor: Monitor;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const UpdateMonitorResponse$inboundSchema: z.ZodType<
|
|
20
|
+
UpdateMonitorResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
monitor: Monitor$inboundSchema,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function updateMonitorResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<UpdateMonitorResponse, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => UpdateMonitorResponse$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'UpdateMonitorResponse' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -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
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type UpdateUserRequest = {
|
|
9
|
+
lastActivity?: Date | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* One effective workspace role. Omit to preserve the existing role.
|
|
12
|
+
*/
|
|
13
|
+
role?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type UpdateUserRequest$Outbound = {
|
|
18
|
+
last_activity?: string | undefined;
|
|
19
|
+
role?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const UpdateUserRequest$outboundSchema: z.ZodType<
|
|
24
|
+
UpdateUserRequest$Outbound,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
UpdateUserRequest
|
|
27
|
+
> = z.object({
|
|
28
|
+
lastActivity: z.date().transform(v => v.toISOString()).optional(),
|
|
29
|
+
role: z.string().optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
lastActivity: "last_activity",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function updateUserRequestToJSON(
|
|
37
|
+
updateUserRequest: UpdateUserRequest,
|
|
38
|
+
): string {
|
|
39
|
+
return JSON.stringify(
|
|
40
|
+
UpdateUserRequest$outboundSchema.parse(updateUserRequest),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -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 { User, User$inboundSchema } from "./user.js";
|
|
10
|
+
|
|
11
|
+
export type UpdateUserResponse = {
|
|
12
|
+
/**
|
|
13
|
+
* User is the canonical workspace-user record.
|
|
14
|
+
*/
|
|
15
|
+
user?: User | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const UpdateUserResponse$inboundSchema: z.ZodType<
|
|
20
|
+
UpdateUserResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
user: User$inboundSchema.optional(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function updateUserResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<UpdateUserResponse, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => UpdateUserResponse$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'UpdateUserResponse' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
UserInvitationData,
|
|
12
|
+
UserInvitationData$inboundSchema,
|
|
13
|
+
} from "./userinvitationdata.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* User is the canonical workspace-user record.
|
|
17
|
+
*/
|
|
18
|
+
export type User = {
|
|
19
|
+
/**
|
|
20
|
+
* Workspace-user identifier.
|
|
21
|
+
*/
|
|
22
|
+
id?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Account identifier.
|
|
25
|
+
*/
|
|
26
|
+
accountId?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Account email.
|
|
29
|
+
*/
|
|
30
|
+
email?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Account display name.
|
|
33
|
+
*/
|
|
34
|
+
displayName?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Avatar URL.
|
|
37
|
+
*/
|
|
38
|
+
logoUrl?: string | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Team identifiers. The support-only team is excluded.
|
|
41
|
+
*/
|
|
42
|
+
teamIds?: Array<string> | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Effective workspace roles.
|
|
45
|
+
*/
|
|
46
|
+
roles?: Array<string> | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Last activity timestamp. Absent when never active.
|
|
49
|
+
*/
|
|
50
|
+
lastActivity?: Date | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Outstanding invitation metadata. Absent for active accounts.
|
|
53
|
+
*/
|
|
54
|
+
invitationData?: UserInvitationData | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
|
|
59
|
+
.object({
|
|
60
|
+
id: z.string().optional(),
|
|
61
|
+
account_id: z.string().optional(),
|
|
62
|
+
email: z.string().optional(),
|
|
63
|
+
display_name: z.string().optional(),
|
|
64
|
+
logo_url: z.string().optional(),
|
|
65
|
+
team_ids: z.array(z.string()).optional(),
|
|
66
|
+
roles: z.array(z.string()).optional(),
|
|
67
|
+
last_activity: z.string().datetime({ offset: true }).transform(v =>
|
|
68
|
+
new Date(v)
|
|
69
|
+
).optional(),
|
|
70
|
+
invitation_data: UserInvitationData$inboundSchema.optional(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
"account_id": "accountId",
|
|
74
|
+
"display_name": "displayName",
|
|
75
|
+
"logo_url": "logoUrl",
|
|
76
|
+
"team_ids": "teamIds",
|
|
77
|
+
"last_activity": "lastActivity",
|
|
78
|
+
"invitation_data": "invitationData",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
export function userFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<User, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => User$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'User' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 UserInvitationData = {
|
|
12
|
+
email?: string | undefined;
|
|
13
|
+
displayName?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const UserInvitationData$inboundSchema: z.ZodType<
|
|
18
|
+
UserInvitationData,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
email: z.string().optional(),
|
|
23
|
+
display_name: z.string().optional(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"display_name": "displayName",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function userInvitationDataFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<UserInvitationData, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => UserInvitationData$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'UserInvitationData' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -882,6 +882,13 @@ export type CreateRouterResponseRequestBody = {
|
|
|
882
882
|
* Top-level cache control automatically applies a cache_control marker to the last cacheable block in the request.
|
|
883
883
|
*/
|
|
884
884
|
cacheControl?: CreateRouterResponseCacheControl | undefined;
|
|
885
|
+
/**
|
|
886
|
+
* Context management entries. One compaction entry summarizes history older than compact_threshold into a single item. See the [Context Compaction](https://docs.orq.ai/ai-gateway/features/context-compaction) guide.
|
|
887
|
+
*/
|
|
888
|
+
contextManagement?:
|
|
889
|
+
| Array<components.OpenAIContextManagement>
|
|
890
|
+
| null
|
|
891
|
+
| undefined;
|
|
885
892
|
conversation?: components.ConversationParam | undefined;
|
|
886
893
|
/**
|
|
887
894
|
* HTTP status codes that trigger fallback. Defaults to [408,429,500,502,503,504,529]. Each code must be unique and between 400 and 599.
|
|
@@ -900,6 +907,10 @@ export type CreateRouterResponseRequestBody = {
|
|
|
900
907
|
*/
|
|
901
908
|
guardrails?: Array<components.EvaluatorRef> | undefined;
|
|
902
909
|
identity?: components.ResponseIdentity | undefined;
|
|
910
|
+
/**
|
|
911
|
+
* Additional fields to include in the response. Use web_search_call.action.sources to add source URLs and titles to a web search action, or web_search_call.results for detailed results. See the [Web search](https://docs.orq.ai/ai-gateway/features/web-search) guide for the supported values.
|
|
912
|
+
*/
|
|
913
|
+
include?: Array<string> | undefined;
|
|
903
914
|
/**
|
|
904
915
|
* Input to the model: a string or an array of input items (messages, files, etc.).
|
|
905
916
|
*/
|
|
@@ -988,6 +999,7 @@ export type CreateRouterResponseRequestBody = {
|
|
|
988
999
|
* Configuration for text output.
|
|
989
1000
|
*/
|
|
990
1001
|
text?: CreateRouterResponseText | undefined;
|
|
1002
|
+
thinking?: components.ThinkingParam | undefined;
|
|
991
1003
|
thread?: components.ResponseThread | undefined;
|
|
992
1004
|
timeout?: components.TimeoutConfig | undefined;
|
|
993
1005
|
/**
|
|
@@ -2100,12 +2112,17 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
2100
2112
|
background?: boolean | undefined;
|
|
2101
2113
|
cache?: components.CacheConfig$Outbound | undefined;
|
|
2102
2114
|
cache_control?: CreateRouterResponseCacheControl$Outbound | undefined;
|
|
2115
|
+
context_management?:
|
|
2116
|
+
| Array<components.OpenAIContextManagement$Outbound>
|
|
2117
|
+
| null
|
|
2118
|
+
| undefined;
|
|
2103
2119
|
conversation?: components.ConversationParam$Outbound | undefined;
|
|
2104
2120
|
fallback_on_codes?: Array<number> | null | undefined;
|
|
2105
2121
|
fallbacks?: Array<components.FallbackConfig$Outbound> | null | undefined;
|
|
2106
2122
|
frequency_penalty?: number | undefined;
|
|
2107
2123
|
guardrails?: Array<components.EvaluatorRef$Outbound> | undefined;
|
|
2108
2124
|
identity?: components.ResponseIdentity$Outbound | undefined;
|
|
2125
|
+
include?: Array<string> | undefined;
|
|
2109
2126
|
input?: string | Array<CreateRouterResponseInput2$Outbound> | undefined;
|
|
2110
2127
|
instructions?: string | undefined;
|
|
2111
2128
|
integration_id?: string | undefined;
|
|
@@ -2136,6 +2153,7 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
2136
2153
|
temperature?: number | undefined;
|
|
2137
2154
|
template_engine?: string | undefined;
|
|
2138
2155
|
text?: CreateRouterResponseText$Outbound | undefined;
|
|
2156
|
+
thinking?: components.ThinkingParam$Outbound | undefined;
|
|
2139
2157
|
thread?: components.ResponseThread$Outbound | undefined;
|
|
2140
2158
|
timeout?: components.TimeoutConfig$Outbound | undefined;
|
|
2141
2159
|
tool_choice?: SpecificFunction$Outbound | string | undefined;
|
|
@@ -2183,6 +2201,9 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2183
2201
|
cache: components.CacheConfig$outboundSchema.optional(),
|
|
2184
2202
|
cacheControl: z.lazy(() => CreateRouterResponseCacheControl$outboundSchema)
|
|
2185
2203
|
.optional(),
|
|
2204
|
+
contextManagement: z.nullable(
|
|
2205
|
+
z.array(components.OpenAIContextManagement$outboundSchema),
|
|
2206
|
+
).optional(),
|
|
2186
2207
|
conversation: components.ConversationParam$outboundSchema.optional(),
|
|
2187
2208
|
fallbackOnCodes: z.nullable(z.array(z.number().int())).optional(),
|
|
2188
2209
|
fallbacks: z.nullable(z.array(components.FallbackConfig$outboundSchema))
|
|
@@ -2190,6 +2211,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2190
2211
|
frequencyPenalty: z.number().optional(),
|
|
2191
2212
|
guardrails: z.array(components.EvaluatorRef$outboundSchema).optional(),
|
|
2192
2213
|
identity: components.ResponseIdentity$outboundSchema.optional(),
|
|
2214
|
+
include: z.array(z.string()).optional(),
|
|
2193
2215
|
input: z.union([
|
|
2194
2216
|
z.string(),
|
|
2195
2217
|
z.array(z.lazy(() => CreateRouterResponseInput2$outboundSchema)),
|
|
@@ -2223,6 +2245,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2223
2245
|
temperature: z.number().optional(),
|
|
2224
2246
|
templateEngine: TemplateEngine$outboundSchema.optional(),
|
|
2225
2247
|
text: z.lazy(() => CreateRouterResponseText$outboundSchema).optional(),
|
|
2248
|
+
thinking: components.ThinkingParam$outboundSchema.optional(),
|
|
2226
2249
|
thread: components.ResponseThread$outboundSchema.optional(),
|
|
2227
2250
|
timeout: components.TimeoutConfig$outboundSchema.optional(),
|
|
2228
2251
|
toolChoice: z.union([
|
|
@@ -2304,6 +2327,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2304
2327
|
}).transform((v) => {
|
|
2305
2328
|
return remap$(v, {
|
|
2306
2329
|
cacheControl: "cache_control",
|
|
2330
|
+
contextManagement: "context_management",
|
|
2307
2331
|
fallbackOnCodes: "fallback_on_codes",
|
|
2308
2332
|
frequencyPenalty: "frequency_penalty",
|
|
2309
2333
|
integrationId: "integration_id",
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M4X47BYYQB819932AF10MW5R"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M4X47BYXRFCFGD4S6T6P0EAM"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M4X47BYXBWNH0J3YVFK4SDZJ"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M4X47BYWD3SEAM7A53MZDA5D"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -0,0 +1,36 @@
|
|
|
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 ExternalAgentDeleteRequest = {
|
|
9
|
+
agentKey: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type ExternalAgentDeleteRequest$Outbound = {
|
|
14
|
+
agent_key: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ExternalAgentDeleteRequest$outboundSchema: z.ZodType<
|
|
19
|
+
ExternalAgentDeleteRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
ExternalAgentDeleteRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
agentKey: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
agentKey: "agent_key",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function externalAgentDeleteRequestToJSON(
|
|
31
|
+
externalAgentDeleteRequest: ExternalAgentDeleteRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
ExternalAgentDeleteRequest$outboundSchema.parse(externalAgentDeleteRequest),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 ExternalAgentGetRequest = {
|
|
9
|
+
agentKey: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type ExternalAgentGetRequest$Outbound = {
|
|
14
|
+
agent_key: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ExternalAgentGetRequest$outboundSchema: z.ZodType<
|
|
19
|
+
ExternalAgentGetRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
ExternalAgentGetRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
agentKey: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
agentKey: "agent_key",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function externalAgentGetRequestToJSON(
|
|
31
|
+
externalAgentGetRequest: ExternalAgentGetRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
ExternalAgentGetRequest$outboundSchema.parse(externalAgentGetRequest),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 ExternalAgentListRequest = {
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
startingAfter?: string | undefined;
|
|
11
|
+
endingBefore?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type ExternalAgentListRequest$Outbound = {
|
|
16
|
+
limit?: number | undefined;
|
|
17
|
+
starting_after?: string | undefined;
|
|
18
|
+
ending_before?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ExternalAgentListRequest$outboundSchema: z.ZodType<
|
|
23
|
+
ExternalAgentListRequest$Outbound,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
ExternalAgentListRequest
|
|
26
|
+
> = z.object({
|
|
27
|
+
limit: z.number().int().optional(),
|
|
28
|
+
startingAfter: z.string().optional(),
|
|
29
|
+
endingBefore: z.string().optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
startingAfter: "starting_after",
|
|
33
|
+
endingBefore: "ending_before",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function externalAgentListRequestToJSON(
|
|
38
|
+
externalAgentListRequest: ExternalAgentListRequest,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
ExternalAgentListRequest$outboundSchema.parse(externalAgentListRequest),
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -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 * as components from "../components/index.js";
|
|
8
|
+
|
|
9
|
+
export type ExternalAgentRefreshCardRequest = {
|
|
10
|
+
agentKey: string;
|
|
11
|
+
refreshExternalAgentCardRequest: components.RefreshExternalAgentCardRequest;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type ExternalAgentRefreshCardRequest$Outbound = {
|
|
16
|
+
agent_key: string;
|
|
17
|
+
RefreshExternalAgentCardRequest:
|
|
18
|
+
components.RefreshExternalAgentCardRequest$Outbound;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ExternalAgentRefreshCardRequest$outboundSchema: z.ZodType<
|
|
23
|
+
ExternalAgentRefreshCardRequest$Outbound,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
ExternalAgentRefreshCardRequest
|
|
26
|
+
> = z.object({
|
|
27
|
+
agentKey: z.string(),
|
|
28
|
+
refreshExternalAgentCardRequest:
|
|
29
|
+
components.RefreshExternalAgentCardRequest$outboundSchema,
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
agentKey: "agent_key",
|
|
33
|
+
refreshExternalAgentCardRequest: "RefreshExternalAgentCardRequest",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function externalAgentRefreshCardRequestToJSON(
|
|
38
|
+
externalAgentRefreshCardRequest: ExternalAgentRefreshCardRequest,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
ExternalAgentRefreshCardRequest$outboundSchema.parse(
|
|
42
|
+
externalAgentRefreshCardRequest,
|
|
43
|
+
),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 * as components from "../components/index.js";
|
|
8
|
+
|
|
9
|
+
export type ExternalAgentTestConnectionRequest = {
|
|
10
|
+
agentKey: string;
|
|
11
|
+
testExternalAgentConnectionRequest:
|
|
12
|
+
components.TestExternalAgentConnectionRequest;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type ExternalAgentTestConnectionRequest$Outbound = {
|
|
17
|
+
agent_key: string;
|
|
18
|
+
TestExternalAgentConnectionRequest:
|
|
19
|
+
components.TestExternalAgentConnectionRequest$Outbound;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const ExternalAgentTestConnectionRequest$outboundSchema: z.ZodType<
|
|
24
|
+
ExternalAgentTestConnectionRequest$Outbound,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
ExternalAgentTestConnectionRequest
|
|
27
|
+
> = z.object({
|
|
28
|
+
agentKey: z.string(),
|
|
29
|
+
testExternalAgentConnectionRequest:
|
|
30
|
+
components.TestExternalAgentConnectionRequest$outboundSchema,
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
agentKey: "agent_key",
|
|
34
|
+
testExternalAgentConnectionRequest: "TestExternalAgentConnectionRequest",
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function externalAgentTestConnectionRequestToJSON(
|
|
39
|
+
externalAgentTestConnectionRequest: ExternalAgentTestConnectionRequest,
|
|
40
|
+
): string {
|
|
41
|
+
return JSON.stringify(
|
|
42
|
+
ExternalAgentTestConnectionRequest$outboundSchema.parse(
|
|
43
|
+
externalAgentTestConnectionRequest,
|
|
44
|
+
),
|
|
45
|
+
);
|
|
46
|
+
}
|