@orq-ai/node 4.9.16 → 4.9.18
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 +3 -3
- package/lib/config.js +3 -3
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +6 -6
- package/packages/orq-rc/src/funcs/identitiesCreate.ts +10 -15
- package/packages/orq-rc/src/funcs/identitiesDelete.ts +7 -16
- package/packages/orq-rc/src/funcs/identitiesList.ts +6 -5
- package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +6 -18
- package/packages/orq-rc/src/funcs/identitiesUpdate.ts +9 -15
- package/packages/orq-rc/src/funcs/{remoteconfigsRetrieve.ts → modelsList.ts} +14 -33
- package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/projectsDelete.ts +3 -0
- package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
- package/packages/orq-rc/src/funcs/{contactsCreate.ts → reportingQuery.ts} +13 -13
- package/packages/orq-rc/src/funcs/skillsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsDelete.ts +3 -0
- package/packages/orq-rc/src/funcs/skillsGet.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsList.ts +1 -1
- package/packages/orq-rc/src/funcs/skillsUpdate.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/createidentityrequest.ts +76 -0
- package/packages/orq-rc/src/models/components/createidentityresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/createprojectrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/createprojectresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/createskillrequest.ts +18 -0
- package/packages/orq-rc/src/models/components/createskillresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/datapoint.ts +60 -0
- package/packages/orq-rc/src/models/components/deleteidentityresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/file.ts +0 -3
- package/packages/orq-rc/src/models/components/filter.ts +137 -0
- package/packages/orq-rc/src/models/components/getprojectresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/getskillresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/identity.ts +83 -0
- package/packages/orq-rc/src/models/components/identitymetrics.ts +45 -0
- package/packages/orq-rc/src/models/components/index.ts +16 -0
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +17 -10
- package/packages/orq-rc/src/models/components/listidentitiesresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/listprojectsresponse.ts +12 -0
- package/packages/orq-rc/src/models/components/listskillsresponse.ts +12 -0
- package/packages/orq-rc/src/models/components/modelref.ts +6 -0
- package/packages/orq-rc/src/models/components/project.ts +42 -3
- package/packages/orq-rc/src/models/components/publicmodelentry.ts +70 -0
- package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
- package/packages/orq-rc/src/models/components/queryreportresponse.ts +99 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsemeta.ts +103 -0
- package/packages/orq-rc/src/models/components/retrieveidentityresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/skill.ts +37 -3
- package/packages/orq-rc/src/models/components/totals.ts +34 -0
- package/packages/orq-rc/src/models/components/updateidentityrequest.ts +75 -0
- package/packages/orq-rc/src/models/components/updateidentityresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/updateprojectrequest.ts +12 -0
- package/packages/orq-rc/src/models/components/updateprojectresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/updateskillrequest.ts +26 -0
- package/packages/orq-rc/src/models/components/updateskillresponse.ts +3 -0
- package/packages/orq-rc/src/models/errors/index.ts +0 -3
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +3 -3
- package/packages/orq-rc/src/models/operations/createannotation.ts +7 -11
- package/packages/orq-rc/src/models/operations/createdataset.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +45 -31
- package/packages/orq-rc/src/models/operations/createknowledge.ts +9 -9
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +3 -3
- package/packages/orq-rc/src/models/operations/createprompt.ts +3 -3
- package/packages/orq-rc/src/models/operations/createtool.ts +36 -36
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -3
- package/packages/orq-rc/src/models/operations/getalltools.ts +21 -21
- package/packages/orq-rc/src/models/operations/getevals.ts +22 -16
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +6 -6
- 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 +1 -3
- package/packages/orq-rc/src/models/operations/invokeeval.ts +83 -80
- package/packages/orq-rc/src/models/operations/listagents.ts +3 -3
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +9 -230
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +6 -6
- package/packages/orq-rc/src/models/operations/listmodels.ts +60 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +14 -17
- package/packages/orq-rc/src/models/operations/postv2feedback.ts +34 -27
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +14 -17
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/projectdelete.ts +3 -0
- package/packages/orq-rc/src/models/operations/projectget.ts +3 -0
- package/packages/orq-rc/src/models/operations/projectlist.ts +15 -0
- package/packages/orq-rc/src/models/operations/projectupdate.ts +3 -0
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3 -3
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +3 -138
- package/packages/orq-rc/src/models/operations/retrievetool.ts +21 -21
- package/packages/orq-rc/src/models/operations/runagent.ts +4 -4
- package/packages/orq-rc/src/models/operations/skilldelete.ts +3 -0
- package/packages/orq-rc/src/models/operations/skilllist.ts +12 -0
- package/packages/orq-rc/src/models/operations/skillupdate.ts +3 -0
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +4 -4
- package/packages/orq-rc/src/models/operations/updateagent.ts +6 -6
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +30 -23
- package/packages/orq-rc/src/models/operations/updateidentity.ts +5 -154
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +12 -12
- package/packages/orq-rc/src/models/operations/updateprompt.ts +3 -3
- package/packages/orq-rc/src/models/operations/updatetool.ts +37 -37
- package/packages/orq-rc/src/sdk/feedback.ts +8 -8
- package/packages/orq-rc/src/sdk/identities.ts +18 -17
- package/packages/orq-rc/src/sdk/models.ts +25 -0
- package/packages/orq-rc/src/sdk/projects.ts +5 -2
- package/packages/orq-rc/src/sdk/reporting.ts +27 -0
- package/packages/orq-rc/src/sdk/sdk.ts +22 -22
- package/packages/orq-rc/src/sdk/skills.ts +7 -4
- package/packages/orq-rc/src/types/async.ts +8 -7
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/types/async.ts +8 -7
- package/types/async.d.ts.map +1 -1
- package/types/async.js +8 -7
- package/types/async.js.map +1 -1
- package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
- package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -118
- package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
- package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
- package/packages/orq-rc/src/sdk/contacts.ts +0 -27
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
|
@@ -12,7 +12,6 @@ export type FileT = {
|
|
|
12
12
|
fileId?: string | undefined;
|
|
13
13
|
purpose?: number | undefined;
|
|
14
14
|
fileName?: string | undefined;
|
|
15
|
-
workspaceId?: string | undefined;
|
|
16
15
|
bytes?: string | undefined;
|
|
17
16
|
createdAt?: Date | undefined;
|
|
18
17
|
};
|
|
@@ -23,7 +22,6 @@ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
|
23
22
|
file_id: z.string().optional(),
|
|
24
23
|
purpose: z.number().int().optional(),
|
|
25
24
|
file_name: z.string().optional(),
|
|
26
|
-
workspace_id: z.string().optional(),
|
|
27
25
|
bytes: z.string().optional(),
|
|
28
26
|
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
29
27
|
new Date(v)
|
|
@@ -32,7 +30,6 @@ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
|
32
30
|
return remap$(v, {
|
|
33
31
|
"file_id": "fileId",
|
|
34
32
|
"file_name": "fileName",
|
|
35
|
-
"workspace_id": "workspaceId",
|
|
36
33
|
"created_at": "createdAt",
|
|
37
34
|
});
|
|
38
35
|
});
|
|
@@ -0,0 +1,137 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Public reporting dimension to filter on. Valid fields depend on the selected metric.
|
|
13
|
+
*/
|
|
14
|
+
export const Field = {
|
|
15
|
+
Project: "project",
|
|
16
|
+
Identity: "identity",
|
|
17
|
+
Provider: "provider",
|
|
18
|
+
Model: "model",
|
|
19
|
+
Product: "product",
|
|
20
|
+
ApiKey: "api_key",
|
|
21
|
+
StatusCode: "status_code",
|
|
22
|
+
HttpStatusCode: "http_status_code",
|
|
23
|
+
CredentialType: "credential_type",
|
|
24
|
+
BillingBillable: "billing_billable",
|
|
25
|
+
Dimension: "dimension",
|
|
26
|
+
DimensionType: "dimension_type",
|
|
27
|
+
Tag: "tag",
|
|
28
|
+
Agent: "agent",
|
|
29
|
+
Tool: "tool",
|
|
30
|
+
Deployment: "deployment",
|
|
31
|
+
Evaluator: "evaluator",
|
|
32
|
+
Dataset: "dataset",
|
|
33
|
+
Prompt: "prompt",
|
|
34
|
+
Policy: "policy",
|
|
35
|
+
Conversation: "conversation",
|
|
36
|
+
Thread: "thread",
|
|
37
|
+
MemoryStore: "memory_store",
|
|
38
|
+
Knowledge: "knowledge",
|
|
39
|
+
Sheet: "sheet",
|
|
40
|
+
GuardrailOrigin: "guardrail_origin",
|
|
41
|
+
EvaluatorName: "evaluator_name",
|
|
42
|
+
EvaluatorType: "evaluator_type",
|
|
43
|
+
EvaluatorVersion: "evaluator_version",
|
|
44
|
+
ResultType: "result_type",
|
|
45
|
+
EvaluationStage: "evaluation_stage",
|
|
46
|
+
GuardrailStage: "guardrail_stage",
|
|
47
|
+
EvaluatorStage: "evaluator_stage",
|
|
48
|
+
GuardrailAction: "guardrail_action",
|
|
49
|
+
ResultLabel: "result_label",
|
|
50
|
+
} as const;
|
|
51
|
+
/**
|
|
52
|
+
* Public reporting dimension to filter on. Valid fields depend on the selected metric.
|
|
53
|
+
*/
|
|
54
|
+
export type Field = ClosedEnum<typeof Field>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
|
|
58
|
+
*/
|
|
59
|
+
export const Op = {
|
|
60
|
+
Eq: "eq",
|
|
61
|
+
Neq: "neq",
|
|
62
|
+
In: "in",
|
|
63
|
+
NotIn: "not_in",
|
|
64
|
+
} as const;
|
|
65
|
+
/**
|
|
66
|
+
* Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
|
|
67
|
+
*/
|
|
68
|
+
export type Op = ClosedEnum<typeof Op>;
|
|
69
|
+
|
|
70
|
+
export type Filter = {
|
|
71
|
+
/**
|
|
72
|
+
* Public reporting dimension to filter on. Valid fields depend on the selected metric.
|
|
73
|
+
*/
|
|
74
|
+
field?: Field | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Predicate operator. `eq` and `neq` accept exactly one value; `in` and `not_in` accept 1-100 values.
|
|
77
|
+
*/
|
|
78
|
+
op?: Op | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Values compared against the selected field. Values are interpreted
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* as public API strings, not SQL fragments.
|
|
84
|
+
*/
|
|
85
|
+
values?: Array<string> | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const Field$inboundSchema: z.ZodNativeEnum<typeof Field> = z.nativeEnum(
|
|
90
|
+
Field,
|
|
91
|
+
);
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const Field$outboundSchema: z.ZodNativeEnum<typeof Field> =
|
|
94
|
+
Field$inboundSchema;
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const Op$inboundSchema: z.ZodNativeEnum<typeof Op> = z.nativeEnum(Op);
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const Op$outboundSchema: z.ZodNativeEnum<typeof Op> = Op$inboundSchema;
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const Filter$inboundSchema: z.ZodType<Filter, z.ZodTypeDef, unknown> = z
|
|
103
|
+
.object({
|
|
104
|
+
field: Field$inboundSchema.optional(),
|
|
105
|
+
op: Op$inboundSchema.optional(),
|
|
106
|
+
values: z.array(z.string()).optional(),
|
|
107
|
+
});
|
|
108
|
+
/** @internal */
|
|
109
|
+
export type Filter$Outbound = {
|
|
110
|
+
field?: string | undefined;
|
|
111
|
+
op?: string | undefined;
|
|
112
|
+
values?: Array<string> | undefined;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const Filter$outboundSchema: z.ZodType<
|
|
117
|
+
Filter$Outbound,
|
|
118
|
+
z.ZodTypeDef,
|
|
119
|
+
Filter
|
|
120
|
+
> = z.object({
|
|
121
|
+
field: Field$outboundSchema.optional(),
|
|
122
|
+
op: Op$outboundSchema.optional(),
|
|
123
|
+
values: z.array(z.string()).optional(),
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
export function filterToJSON(filter: Filter): string {
|
|
127
|
+
return JSON.stringify(Filter$outboundSchema.parse(filter));
|
|
128
|
+
}
|
|
129
|
+
export function filterFromJSON(
|
|
130
|
+
jsonString: string,
|
|
131
|
+
): SafeParseResult<Filter, SDKValidationError> {
|
|
132
|
+
return safeParse(
|
|
133
|
+
jsonString,
|
|
134
|
+
(x) => Filter$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
+
`Failed to parse 'Filter' from JSON`,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
IdentityMetrics,
|
|
12
|
+
IdentityMetrics$inboundSchema,
|
|
13
|
+
} from "./identitymetrics.js";
|
|
14
|
+
|
|
15
|
+
export type Metadata = {};
|
|
16
|
+
|
|
17
|
+
export type Identity = {
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
externalId?: string | undefined;
|
|
20
|
+
workspaceId?: string | undefined;
|
|
21
|
+
displayName?: string | undefined;
|
|
22
|
+
email?: string | undefined;
|
|
23
|
+
avatarUrl?: string | undefined;
|
|
24
|
+
tags?: Array<string> | undefined;
|
|
25
|
+
metadata?: Metadata | undefined;
|
|
26
|
+
created?: string | undefined;
|
|
27
|
+
updated?: string | undefined;
|
|
28
|
+
metrics?: IdentityMetrics | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const Metadata$inboundSchema: z.ZodType<
|
|
33
|
+
Metadata,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({});
|
|
37
|
+
|
|
38
|
+
export function metadataFromJSON(
|
|
39
|
+
jsonString: string,
|
|
40
|
+
): SafeParseResult<Metadata, SDKValidationError> {
|
|
41
|
+
return safeParse(
|
|
42
|
+
jsonString,
|
|
43
|
+
(x) => Metadata$inboundSchema.parse(JSON.parse(x)),
|
|
44
|
+
`Failed to parse 'Metadata' from JSON`,
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const Identity$inboundSchema: z.ZodType<
|
|
50
|
+
Identity,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
unknown
|
|
53
|
+
> = z.object({
|
|
54
|
+
_id: z.string().optional(),
|
|
55
|
+
external_id: z.string().optional(),
|
|
56
|
+
workspace_id: z.string().optional(),
|
|
57
|
+
display_name: z.string().optional(),
|
|
58
|
+
email: z.string().optional(),
|
|
59
|
+
avatar_url: z.string().optional(),
|
|
60
|
+
tags: z.array(z.string()).optional(),
|
|
61
|
+
metadata: z.lazy(() => Metadata$inboundSchema).optional(),
|
|
62
|
+
created: z.string().optional(),
|
|
63
|
+
updated: z.string().optional(),
|
|
64
|
+
metrics: IdentityMetrics$inboundSchema.optional(),
|
|
65
|
+
}).transform((v) => {
|
|
66
|
+
return remap$(v, {
|
|
67
|
+
"_id": "id",
|
|
68
|
+
"external_id": "externalId",
|
|
69
|
+
"workspace_id": "workspaceId",
|
|
70
|
+
"display_name": "displayName",
|
|
71
|
+
"avatar_url": "avatarUrl",
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export function identityFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<Identity, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => Identity$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'Identity' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -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
|
+
|
|
11
|
+
export type IdentityMetrics = {
|
|
12
|
+
totalTokens?: number | undefined;
|
|
13
|
+
totalCost?: number | undefined;
|
|
14
|
+
totalRequests?: number | undefined;
|
|
15
|
+
errorRate?: number | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const IdentityMetrics$inboundSchema: z.ZodType<
|
|
20
|
+
IdentityMetrics,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
total_tokens: z.number().optional(),
|
|
25
|
+
total_cost: z.number().optional(),
|
|
26
|
+
total_requests: z.number().optional(),
|
|
27
|
+
error_rate: z.number().optional(),
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"total_tokens": "totalTokens",
|
|
31
|
+
"total_cost": "totalCost",
|
|
32
|
+
"total_requests": "totalRequests",
|
|
33
|
+
"error_rate": "errorRate",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function identityMetricsFromJSON(
|
|
38
|
+
jsonString: string,
|
|
39
|
+
): SafeParseResult<IdentityMetrics, SDKValidationError> {
|
|
40
|
+
return safeParse(
|
|
41
|
+
jsonString,
|
|
42
|
+
(x) => IdentityMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
43
|
+
`Failed to parse 'IdentityMetrics' from JSON`,
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -18,12 +18,16 @@ export * from "./conversationparam.js";
|
|
|
18
18
|
export * from "./createagentresponse.js";
|
|
19
19
|
export * from "./createfilerequest.js";
|
|
20
20
|
export * from "./createfileresponse.js";
|
|
21
|
+
export * from "./createidentityrequest.js";
|
|
22
|
+
export * from "./createidentityresponse.js";
|
|
21
23
|
export * from "./createprojectrequest.js";
|
|
22
24
|
export * from "./createprojectresponse.js";
|
|
23
25
|
export * from "./createskillrequest.js";
|
|
24
26
|
export * from "./createskillresponse.js";
|
|
25
27
|
export * from "./datapart.js";
|
|
28
|
+
export * from "./datapoint.js";
|
|
26
29
|
export * from "./deletefileresponse.js";
|
|
30
|
+
export * from "./deleteidentityresponse.js";
|
|
27
31
|
export * from "./deleteprojectresponse.js";
|
|
28
32
|
export * from "./deleteskillresponse.js";
|
|
29
33
|
export * from "./errorpart.js";
|
|
@@ -39,6 +43,7 @@ export * from "./fallbackconfig.js";
|
|
|
39
43
|
export * from "./file.js";
|
|
40
44
|
export * from "./filecontentpartschema.js";
|
|
41
45
|
export * from "./filepart.js";
|
|
46
|
+
export * from "./filter.js";
|
|
42
47
|
export * from "./getagentresponse.js";
|
|
43
48
|
export * from "./getfilecontentresponse.js";
|
|
44
49
|
export * from "./getfileresponse.js";
|
|
@@ -46,12 +51,15 @@ export * from "./getprojectresponse.js";
|
|
|
46
51
|
export * from "./getskillresponse.js";
|
|
47
52
|
export * from "./guardrailref.js";
|
|
48
53
|
export * from "./guardrailrule.js";
|
|
54
|
+
export * from "./identity.js";
|
|
55
|
+
export * from "./identitymetrics.js";
|
|
49
56
|
export * from "./imagecontentpartschema.js";
|
|
50
57
|
export * from "./incompletedetails.js";
|
|
51
58
|
export * from "./inputtokensdetails.js";
|
|
52
59
|
export * from "./invokedeploymentrequest.js";
|
|
53
60
|
export * from "./limits.js";
|
|
54
61
|
export * from "./listfilesresponse.js";
|
|
62
|
+
export * from "./listidentitiesresponse.js";
|
|
55
63
|
export * from "./listprojectsresponse.js";
|
|
56
64
|
export * from "./listskillsresponse.js";
|
|
57
65
|
export * from "./memoryparam.js";
|
|
@@ -66,10 +74,13 @@ export * from "./policyretryconfig.js";
|
|
|
66
74
|
export * from "./project.js";
|
|
67
75
|
export * from "./publiccontact.js";
|
|
68
76
|
export * from "./publicidentity.js";
|
|
77
|
+
export * from "./publicmodelentry.js";
|
|
69
78
|
export * from "./publicschedule.js";
|
|
70
79
|
export * from "./publicscheduleerrordetail.js";
|
|
71
80
|
export * from "./publicschedulepayload.js";
|
|
72
81
|
export * from "./publicusage.js";
|
|
82
|
+
export * from "./queryreportrequest.js";
|
|
83
|
+
export * from "./queryreportresponse.js";
|
|
73
84
|
export * from "./reasoning.js";
|
|
74
85
|
export * from "./reasoningparam.js";
|
|
75
86
|
export * from "./reasoningpart.js";
|
|
@@ -82,10 +93,12 @@ export * from "./responseerror.js";
|
|
|
82
93
|
export * from "./responseexecutionlimits.js";
|
|
83
94
|
export * from "./responsefailedevent.js";
|
|
84
95
|
export * from "./responseidentity.js";
|
|
96
|
+
export * from "./responsemeta.js";
|
|
85
97
|
export * from "./responseretryconfig.js";
|
|
86
98
|
export * from "./responsestartedevent.js";
|
|
87
99
|
export * from "./responsestreamingevent.js";
|
|
88
100
|
export * from "./responsethread.js";
|
|
101
|
+
export * from "./retrieveidentityresponse.js";
|
|
89
102
|
export * from "./reviewoutcome.js";
|
|
90
103
|
export * from "./routingrule.js";
|
|
91
104
|
export * from "./security.js";
|
|
@@ -109,8 +122,11 @@ export * from "./toolresultpart.js";
|
|
|
109
122
|
export * from "./toolreviewdoneevent.js";
|
|
110
123
|
export * from "./toolreviewrequestedevent.js";
|
|
111
124
|
export * from "./toolstartedevent.js";
|
|
125
|
+
export * from "./totals.js";
|
|
112
126
|
export * from "./updatefilerequest.js";
|
|
113
127
|
export * from "./updatefileresponse.js";
|
|
128
|
+
export * from "./updateidentityrequest.js";
|
|
129
|
+
export * from "./updateidentityresponse.js";
|
|
114
130
|
export * from "./updateprojectrequest.js";
|
|
115
131
|
export * from "./updateprojectresponse.js";
|
|
116
132
|
export * from "./updateskillrequest.js";
|
|
@@ -739,7 +739,7 @@ export type Messages =
|
|
|
739
739
|
/**
|
|
740
740
|
* Metadata about the document
|
|
741
741
|
*/
|
|
742
|
-
export type
|
|
742
|
+
export type InvokeDeploymentRequestMetadata = {
|
|
743
743
|
/**
|
|
744
744
|
* Name of the file the text is from.
|
|
745
745
|
*/
|
|
@@ -762,7 +762,7 @@ export type Documents = {
|
|
|
762
762
|
/**
|
|
763
763
|
* Metadata about the document
|
|
764
764
|
*/
|
|
765
|
-
metadata?:
|
|
765
|
+
metadata?: InvokeDeploymentRequestMetadata | undefined;
|
|
766
766
|
};
|
|
767
767
|
|
|
768
768
|
export type InvokeOptions = {
|
|
@@ -2342,17 +2342,17 @@ export function messagesToJSON(messages: Messages): string {
|
|
|
2342
2342
|
}
|
|
2343
2343
|
|
|
2344
2344
|
/** @internal */
|
|
2345
|
-
export type
|
|
2345
|
+
export type InvokeDeploymentRequestMetadata$Outbound = {
|
|
2346
2346
|
file_name?: string | undefined;
|
|
2347
2347
|
file_type?: string | undefined;
|
|
2348
2348
|
page_number?: number | undefined;
|
|
2349
2349
|
};
|
|
2350
2350
|
|
|
2351
2351
|
/** @internal */
|
|
2352
|
-
export const
|
|
2353
|
-
|
|
2352
|
+
export const InvokeDeploymentRequestMetadata$outboundSchema: z.ZodType<
|
|
2353
|
+
InvokeDeploymentRequestMetadata$Outbound,
|
|
2354
2354
|
z.ZodTypeDef,
|
|
2355
|
-
|
|
2355
|
+
InvokeDeploymentRequestMetadata
|
|
2356
2356
|
> = z.object({
|
|
2357
2357
|
fileName: z.string().optional(),
|
|
2358
2358
|
fileType: z.string().optional(),
|
|
@@ -2365,14 +2365,20 @@ export const Metadata$outboundSchema: z.ZodType<
|
|
|
2365
2365
|
});
|
|
2366
2366
|
});
|
|
2367
2367
|
|
|
2368
|
-
export function
|
|
2369
|
-
|
|
2368
|
+
export function invokeDeploymentRequestMetadataToJSON(
|
|
2369
|
+
invokeDeploymentRequestMetadata: InvokeDeploymentRequestMetadata,
|
|
2370
|
+
): string {
|
|
2371
|
+
return JSON.stringify(
|
|
2372
|
+
InvokeDeploymentRequestMetadata$outboundSchema.parse(
|
|
2373
|
+
invokeDeploymentRequestMetadata,
|
|
2374
|
+
),
|
|
2375
|
+
);
|
|
2370
2376
|
}
|
|
2371
2377
|
|
|
2372
2378
|
/** @internal */
|
|
2373
2379
|
export type Documents$Outbound = {
|
|
2374
2380
|
text: string;
|
|
2375
|
-
metadata?:
|
|
2381
|
+
metadata?: InvokeDeploymentRequestMetadata$Outbound | undefined;
|
|
2376
2382
|
};
|
|
2377
2383
|
|
|
2378
2384
|
/** @internal */
|
|
@@ -2382,7 +2388,8 @@ export const Documents$outboundSchema: z.ZodType<
|
|
|
2382
2388
|
Documents
|
|
2383
2389
|
> = z.object({
|
|
2384
2390
|
text: z.string(),
|
|
2385
|
-
metadata: z.lazy(() =>
|
|
2391
|
+
metadata: z.lazy(() => InvokeDeploymentRequestMetadata$outboundSchema)
|
|
2392
|
+
.optional(),
|
|
2386
2393
|
});
|
|
2387
2394
|
|
|
2388
2395
|
export function documentsToJSON(documents: Documents): string {
|
|
@@ -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
|
+
import { Identity, Identity$inboundSchema } from "./identity.js";
|
|
11
|
+
|
|
12
|
+
export type ListIdentitiesResponse = {
|
|
13
|
+
object?: string | undefined;
|
|
14
|
+
data?: Array<Identity> | undefined;
|
|
15
|
+
hasMore?: boolean | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ListIdentitiesResponse$inboundSchema: z.ZodType<
|
|
20
|
+
ListIdentitiesResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
object: z.string().optional(),
|
|
25
|
+
data: z.array(Identity$inboundSchema).optional(),
|
|
26
|
+
has_more: z.boolean().optional(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"has_more": "hasMore",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function listIdentitiesResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<ListIdentitiesResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => ListIdentitiesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'ListIdentitiesResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -10,8 +10,20 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
import { Project, Project$inboundSchema } from "./project.js";
|
|
11
11
|
|
|
12
12
|
export type ListProjectsResponse = {
|
|
13
|
+
/**
|
|
14
|
+
* Object discriminator for list responses; always `list`.
|
|
15
|
+
*/
|
|
13
16
|
object?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Page of projects, ordered newest first.
|
|
19
|
+
*/
|
|
14
20
|
data?: Array<Project> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Whether more projects are available in the selected pagination
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* direction.
|
|
26
|
+
*/
|
|
15
27
|
hasMore?: boolean | undefined;
|
|
16
28
|
};
|
|
17
29
|
|
|
@@ -10,8 +10,20 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
import { Skill, Skill$inboundSchema } from "./skill.js";
|
|
11
11
|
|
|
12
12
|
export type ListSkillsResponse = {
|
|
13
|
+
/**
|
|
14
|
+
* Object discriminator for list responses; always `list`.
|
|
15
|
+
*/
|
|
13
16
|
object?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Page of skills, ordered newest first.
|
|
19
|
+
*/
|
|
14
20
|
data?: Array<Skill> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Whether more skills are available in the selected pagination
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* direction.
|
|
26
|
+
*/
|
|
15
27
|
hasMore?: boolean | undefined;
|
|
16
28
|
};
|
|
17
29
|
|
|
@@ -9,6 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type ModelRef = {
|
|
12
|
+
displayName?: string | undefined;
|
|
12
13
|
integrationId?: string | undefined;
|
|
13
14
|
model: string;
|
|
14
15
|
weight?: number | undefined;
|
|
@@ -20,16 +21,19 @@ export const ModelRef$inboundSchema: z.ZodType<
|
|
|
20
21
|
z.ZodTypeDef,
|
|
21
22
|
unknown
|
|
22
23
|
> = z.object({
|
|
24
|
+
display_name: z.string().optional(),
|
|
23
25
|
integration_id: z.string().optional(),
|
|
24
26
|
model: z.string(),
|
|
25
27
|
weight: z.number().optional(),
|
|
26
28
|
}).transform((v) => {
|
|
27
29
|
return remap$(v, {
|
|
30
|
+
"display_name": "displayName",
|
|
28
31
|
"integration_id": "integrationId",
|
|
29
32
|
});
|
|
30
33
|
});
|
|
31
34
|
/** @internal */
|
|
32
35
|
export type ModelRef$Outbound = {
|
|
36
|
+
display_name?: string | undefined;
|
|
33
37
|
integration_id?: string | undefined;
|
|
34
38
|
model: string;
|
|
35
39
|
weight?: number | undefined;
|
|
@@ -41,11 +45,13 @@ export const ModelRef$outboundSchema: z.ZodType<
|
|
|
41
45
|
z.ZodTypeDef,
|
|
42
46
|
ModelRef
|
|
43
47
|
> = z.object({
|
|
48
|
+
displayName: z.string().optional(),
|
|
44
49
|
integrationId: z.string().optional(),
|
|
45
50
|
model: z.string(),
|
|
46
51
|
weight: z.number().optional(),
|
|
47
52
|
}).transform((v) => {
|
|
48
53
|
return remap$(v, {
|
|
54
|
+
displayName: "display_name",
|
|
49
55
|
integrationId: "integration_id",
|
|
50
56
|
});
|
|
51
57
|
});
|
|
@@ -9,16 +9,57 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type Project = {
|
|
12
|
+
/**
|
|
13
|
+
* Unique project identifier assigned by ORQ. Use this value in
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* retrieve, update, and delete requests.
|
|
17
|
+
*/
|
|
12
18
|
projectId?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Human-readable project name.
|
|
21
|
+
*/
|
|
13
22
|
name?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Stable project key generated from the name and used by internal
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* workspace navigation.
|
|
28
|
+
*/
|
|
14
29
|
key?: string | undefined;
|
|
15
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Whether the project is archived and hidden from normal active
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* project lists.
|
|
35
|
+
*/
|
|
16
36
|
isArchived?: boolean | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Whether this is the workspace default project.
|
|
39
|
+
*/
|
|
17
40
|
isDefault?: boolean | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Team identifiers associated with the project for access and
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* organization.
|
|
46
|
+
*/
|
|
18
47
|
teams?: Array<string> | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Time when the project was created.
|
|
50
|
+
*/
|
|
19
51
|
createdAt?: Date | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Time when the project was last updated.
|
|
54
|
+
*/
|
|
20
55
|
updatedAt?: Date | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* User ID that created the project.
|
|
58
|
+
*/
|
|
21
59
|
createdById?: string | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* User ID that last updated the project.
|
|
62
|
+
*/
|
|
22
63
|
updatedById?: string | undefined;
|
|
23
64
|
};
|
|
24
65
|
|
|
@@ -28,7 +69,6 @@ export const Project$inboundSchema: z.ZodType<Project, z.ZodTypeDef, unknown> =
|
|
|
28
69
|
project_id: z.string().optional(),
|
|
29
70
|
name: z.string().optional(),
|
|
30
71
|
key: z.string().optional(),
|
|
31
|
-
workspace_id: z.string().optional(),
|
|
32
72
|
is_archived: z.boolean().optional(),
|
|
33
73
|
is_default: z.boolean().optional(),
|
|
34
74
|
teams: z.array(z.string()).optional(),
|
|
@@ -43,7 +83,6 @@ export const Project$inboundSchema: z.ZodType<Project, z.ZodTypeDef, unknown> =
|
|
|
43
83
|
}).transform((v) => {
|
|
44
84
|
return remap$(v, {
|
|
45
85
|
"project_id": "projectId",
|
|
46
|
-
"workspace_id": "workspaceId",
|
|
47
86
|
"is_archived": "isArchived",
|
|
48
87
|
"is_default": "isDefault",
|
|
49
88
|
"created_at": "createdAt",
|