@orq-ai/node 4.9.4 → 4.9.6
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/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 +5 -5
- 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/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 +2 -2
- 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 +15 -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/project.ts +42 -3
- package/packages/orq-rc/src/models/components/queryreportrequest.ts +237 -0
- package/packages/orq-rc/src/models/components/queryreportresponse.ts +96 -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 +21 -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/createannotation.ts +7 -11
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- 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 +16 -16
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -3
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- 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 +0 -3
- package/packages/orq-rc/src/models/operations/invokeeval.ts +83 -80
- 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/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/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 +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- 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 +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateidentity.ts +5 -154
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- 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/projects.ts +5 -2
- package/packages/orq-rc/src/sdk/reporting.ts +27 -0
- package/packages/orq-rc/src/sdk/sdk.ts +16 -22
- package/packages/orq-rc/src/sdk/skills.ts +7 -4
- package/src/lib/config.ts +2 -2
- 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/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -163
- 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
|
@@ -1472,7 +1472,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
|
|
|
1472
1472
|
z.ZodTypeDef,
|
|
1473
1473
|
RequestBodyTools
|
|
1474
1474
|
> = z.object({
|
|
1475
|
-
id: z.string().default("
|
|
1475
|
+
id: z.string().default("01KRX1WCW7TWQK0C6M5HHNAZFY"),
|
|
1476
1476
|
name: z.string(),
|
|
1477
1477
|
description: z.string().optional(),
|
|
1478
1478
|
schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -2193,7 +2193,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2193
2193
|
z.ZodTypeDef,
|
|
2194
2194
|
unknown
|
|
2195
2195
|
> = z.object({
|
|
2196
|
-
_id: z.string().default("
|
|
2196
|
+
_id: z.string().default("tool_01KRX1WCW1ZN2G4XATRMF8ZJQT"),
|
|
2197
2197
|
path: z.string(),
|
|
2198
2198
|
key: z.string(),
|
|
2199
2199
|
display_name: z.string().optional(),
|
|
@@ -2296,7 +2296,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2296
2296
|
z.ZodTypeDef,
|
|
2297
2297
|
unknown
|
|
2298
2298
|
> = z.object({
|
|
2299
|
-
id: z.string().default("
|
|
2299
|
+
id: z.string().default("01KRX1WCW01P8RCMA0B3XXD7ZT"),
|
|
2300
2300
|
name: z.string(),
|
|
2301
2301
|
description: z.string().optional(),
|
|
2302
2302
|
schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -2354,7 +2354,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2354
2354
|
z.ZodTypeDef,
|
|
2355
2355
|
unknown
|
|
2356
2356
|
> = z.object({
|
|
2357
|
-
_id: z.string().default("
|
|
2357
|
+
_id: z.string().default("tool_01KRX1WCVZGEMCJ00MCB6427JM"),
|
|
2358
2358
|
path: z.string(),
|
|
2359
2359
|
key: z.string(),
|
|
2360
2360
|
display_name: z.string().optional(),
|
|
@@ -2543,7 +2543,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2543
2543
|
z.ZodTypeDef,
|
|
2544
2544
|
unknown
|
|
2545
2545
|
> = z.object({
|
|
2546
|
-
_id: z.string().default("
|
|
2546
|
+
_id: z.string().default("tool_01KRX1WCVXC699PQTVCCXPK3X7"),
|
|
2547
2547
|
path: z.string(),
|
|
2548
2548
|
key: z.string(),
|
|
2549
2549
|
display_name: z.string().optional(),
|
|
@@ -2638,7 +2638,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2638
2638
|
z.ZodTypeDef,
|
|
2639
2639
|
unknown
|
|
2640
2640
|
> = z.object({
|
|
2641
|
-
_id: z.string().default("
|
|
2641
|
+
_id: z.string().default("tool_01KRX1WCVWWPQBE5DB1H360FJH"),
|
|
2642
2642
|
path: z.string(),
|
|
2643
2643
|
key: z.string(),
|
|
2644
2644
|
display_name: z.string().optional(),
|
|
@@ -2741,7 +2741,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2741
2741
|
z.ZodTypeDef,
|
|
2742
2742
|
unknown
|
|
2743
2743
|
> = z.object({
|
|
2744
|
-
_id: z.string().default("
|
|
2744
|
+
_id: z.string().default("tool_01KRX1WCVVDFYXVKKS1HAJ9VD8"),
|
|
2745
2745
|
path: z.string(),
|
|
2746
2746
|
key: z.string(),
|
|
2747
2747
|
display_name: z.string().optional(),
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { OrqCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import {
|
|
15
|
-
ConnectionError,
|
|
16
|
-
InvalidRequestError,
|
|
17
|
-
RequestAbortedError,
|
|
18
|
-
RequestTimeoutError,
|
|
19
|
-
UnexpectedClientError,
|
|
20
|
-
} from "../models/errors/httpclienterrors.js";
|
|
21
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
22
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
-
import * as operations from "../models/operations/index.js";
|
|
25
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
-
import { Result } from "../types/fp.js";
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Retrieve a remote config
|
|
30
|
-
*/
|
|
31
|
-
export function remoteconfigsRetrieve(
|
|
32
|
-
client: OrqCore,
|
|
33
|
-
request?: operations.RemoteConfigsGetConfigRequestBody | undefined,
|
|
34
|
-
options?: RequestOptions,
|
|
35
|
-
): APIPromise<
|
|
36
|
-
Result<
|
|
37
|
-
operations.RemoteConfigsGetConfigResponseBody,
|
|
38
|
-
| OrqError
|
|
39
|
-
| ResponseValidationError
|
|
40
|
-
| ConnectionError
|
|
41
|
-
| RequestAbortedError
|
|
42
|
-
| RequestTimeoutError
|
|
43
|
-
| InvalidRequestError
|
|
44
|
-
| UnexpectedClientError
|
|
45
|
-
| SDKValidationError
|
|
46
|
-
>
|
|
47
|
-
> {
|
|
48
|
-
return new APIPromise($do(
|
|
49
|
-
client,
|
|
50
|
-
request,
|
|
51
|
-
options,
|
|
52
|
-
));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
async function $do(
|
|
56
|
-
client: OrqCore,
|
|
57
|
-
request?: operations.RemoteConfigsGetConfigRequestBody | undefined,
|
|
58
|
-
options?: RequestOptions,
|
|
59
|
-
): Promise<
|
|
60
|
-
[
|
|
61
|
-
Result<
|
|
62
|
-
operations.RemoteConfigsGetConfigResponseBody,
|
|
63
|
-
| OrqError
|
|
64
|
-
| ResponseValidationError
|
|
65
|
-
| ConnectionError
|
|
66
|
-
| RequestAbortedError
|
|
67
|
-
| RequestTimeoutError
|
|
68
|
-
| InvalidRequestError
|
|
69
|
-
| UnexpectedClientError
|
|
70
|
-
| SDKValidationError
|
|
71
|
-
>,
|
|
72
|
-
APICall,
|
|
73
|
-
]
|
|
74
|
-
> {
|
|
75
|
-
const parsed = safeParse(
|
|
76
|
-
request,
|
|
77
|
-
(value) =>
|
|
78
|
-
operations.RemoteConfigsGetConfigRequestBody$outboundSchema.optional()
|
|
79
|
-
.parse(value),
|
|
80
|
-
"Input validation failed",
|
|
81
|
-
);
|
|
82
|
-
if (!parsed.ok) {
|
|
83
|
-
return [parsed, { status: "invalid" }];
|
|
84
|
-
}
|
|
85
|
-
const payload = parsed.value;
|
|
86
|
-
const body = payload === undefined
|
|
87
|
-
? null
|
|
88
|
-
: encodeJSON("body", payload, { explode: true });
|
|
89
|
-
|
|
90
|
-
const path = pathToFunc("/v2/remoteconfigs")();
|
|
91
|
-
|
|
92
|
-
const headers = new Headers(compactMap({
|
|
93
|
-
"Content-Type": "application/json",
|
|
94
|
-
Accept: "application/json",
|
|
95
|
-
}));
|
|
96
|
-
|
|
97
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
98
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
99
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
100
|
-
|
|
101
|
-
const context = {
|
|
102
|
-
options: client._options,
|
|
103
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
104
|
-
operationID: "RemoteConfigsGetConfig",
|
|
105
|
-
oAuth2Scopes: null,
|
|
106
|
-
|
|
107
|
-
resolvedSecurity: requestSecurity,
|
|
108
|
-
|
|
109
|
-
securitySource: client._options.apiKey,
|
|
110
|
-
retryConfig: options?.retries
|
|
111
|
-
|| client._options.retryConfig
|
|
112
|
-
|| { strategy: "none" },
|
|
113
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
const requestRes = client._createRequest(context, {
|
|
117
|
-
security: requestSecurity,
|
|
118
|
-
method: "POST",
|
|
119
|
-
baseURL: options?.serverURL,
|
|
120
|
-
path: path,
|
|
121
|
-
headers: headers,
|
|
122
|
-
body: body,
|
|
123
|
-
userAgent: client._options.userAgent,
|
|
124
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
125
|
-
}, options);
|
|
126
|
-
if (!requestRes.ok) {
|
|
127
|
-
return [requestRes, { status: "invalid" }];
|
|
128
|
-
}
|
|
129
|
-
const req = requestRes.value;
|
|
130
|
-
|
|
131
|
-
const doResult = await client._do(req, {
|
|
132
|
-
context,
|
|
133
|
-
isErrorStatusCode: (statusCode: number) =>
|
|
134
|
-
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
135
|
-
retryConfig: context.retryConfig,
|
|
136
|
-
retryCodes: context.retryCodes,
|
|
137
|
-
});
|
|
138
|
-
if (!doResult.ok) {
|
|
139
|
-
return [doResult, { status: "request-error", request: req }];
|
|
140
|
-
}
|
|
141
|
-
const response = doResult.value;
|
|
142
|
-
|
|
143
|
-
const [result] = await M.match<
|
|
144
|
-
operations.RemoteConfigsGetConfigResponseBody,
|
|
145
|
-
| OrqError
|
|
146
|
-
| ResponseValidationError
|
|
147
|
-
| ConnectionError
|
|
148
|
-
| RequestAbortedError
|
|
149
|
-
| RequestTimeoutError
|
|
150
|
-
| InvalidRequestError
|
|
151
|
-
| UnexpectedClientError
|
|
152
|
-
| SDKValidationError
|
|
153
|
-
>(
|
|
154
|
-
M.json(200, operations.RemoteConfigsGetConfigResponseBody$inboundSchema),
|
|
155
|
-
M.fail([400, 401, 404, "4XX"]),
|
|
156
|
-
M.fail([500, "5XX"]),
|
|
157
|
-
)(response, req);
|
|
158
|
-
if (!result.ok) {
|
|
159
|
-
return [result, { status: "complete", request: req, response }];
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
return [result, { status: "complete", request: req, response }];
|
|
163
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { OrqError } from "./orqerror.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Identity not found
|
|
10
|
-
*/
|
|
11
|
-
export type DeleteIdentityResponseBodyData = {
|
|
12
|
-
/**
|
|
13
|
-
* Error message
|
|
14
|
-
*/
|
|
15
|
-
error: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Identity not found
|
|
20
|
-
*/
|
|
21
|
-
export class DeleteIdentityResponseBody extends OrqError {
|
|
22
|
-
/**
|
|
23
|
-
* Error message
|
|
24
|
-
*/
|
|
25
|
-
error: string;
|
|
26
|
-
|
|
27
|
-
/** The original data that was passed to this error instance. */
|
|
28
|
-
data$: DeleteIdentityResponseBodyData;
|
|
29
|
-
|
|
30
|
-
constructor(
|
|
31
|
-
err: DeleteIdentityResponseBodyData,
|
|
32
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
33
|
-
) {
|
|
34
|
-
const message = "message" in err && typeof err.message === "string"
|
|
35
|
-
? err.message
|
|
36
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
37
|
-
super(message, httpMeta);
|
|
38
|
-
this.data$ = err;
|
|
39
|
-
this.error = err.error;
|
|
40
|
-
|
|
41
|
-
this.name = "DeleteIdentityResponseBody";
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const DeleteIdentityResponseBody$inboundSchema: z.ZodType<
|
|
47
|
-
DeleteIdentityResponseBody,
|
|
48
|
-
z.ZodTypeDef,
|
|
49
|
-
unknown
|
|
50
|
-
> = z.object({
|
|
51
|
-
error: z.string(),
|
|
52
|
-
request$: z.instanceof(Request),
|
|
53
|
-
response$: z.instanceof(Response),
|
|
54
|
-
body$: z.string(),
|
|
55
|
-
})
|
|
56
|
-
.transform((v) => {
|
|
57
|
-
return new DeleteIdentityResponseBody(v, {
|
|
58
|
-
request: v.request$,
|
|
59
|
-
response: v.response$,
|
|
60
|
-
body: v.body$,
|
|
61
|
-
});
|
|
62
|
-
});
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { OrqError } from "./orqerror.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Failed to fetch metrics
|
|
10
|
-
*/
|
|
11
|
-
export type RetrieveIdentityIdentitiesResponseBodyData = {
|
|
12
|
-
/**
|
|
13
|
-
* Error message
|
|
14
|
-
*/
|
|
15
|
-
error: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Failed to fetch metrics
|
|
20
|
-
*/
|
|
21
|
-
export class RetrieveIdentityIdentitiesResponseBody extends OrqError {
|
|
22
|
-
/**
|
|
23
|
-
* Error message
|
|
24
|
-
*/
|
|
25
|
-
error: string;
|
|
26
|
-
|
|
27
|
-
/** The original data that was passed to this error instance. */
|
|
28
|
-
data$: RetrieveIdentityIdentitiesResponseBodyData;
|
|
29
|
-
|
|
30
|
-
constructor(
|
|
31
|
-
err: RetrieveIdentityIdentitiesResponseBodyData,
|
|
32
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
33
|
-
) {
|
|
34
|
-
const message = "message" in err && typeof err.message === "string"
|
|
35
|
-
? err.message
|
|
36
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
37
|
-
super(message, httpMeta);
|
|
38
|
-
this.data$ = err;
|
|
39
|
-
this.error = err.error;
|
|
40
|
-
|
|
41
|
-
this.name = "RetrieveIdentityIdentitiesResponseBody";
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Identity not found
|
|
47
|
-
*/
|
|
48
|
-
export type RetrieveIdentityResponseBodyData = {
|
|
49
|
-
/**
|
|
50
|
-
* Error message
|
|
51
|
-
*/
|
|
52
|
-
error: string;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Identity not found
|
|
57
|
-
*/
|
|
58
|
-
export class RetrieveIdentityResponseBody extends OrqError {
|
|
59
|
-
/**
|
|
60
|
-
* Error message
|
|
61
|
-
*/
|
|
62
|
-
error: string;
|
|
63
|
-
|
|
64
|
-
/** The original data that was passed to this error instance. */
|
|
65
|
-
data$: RetrieveIdentityResponseBodyData;
|
|
66
|
-
|
|
67
|
-
constructor(
|
|
68
|
-
err: RetrieveIdentityResponseBodyData,
|
|
69
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
70
|
-
) {
|
|
71
|
-
const message = "message" in err && typeof err.message === "string"
|
|
72
|
-
? err.message
|
|
73
|
-
: `API error occurred: ${JSON.stringify(err)}`;
|
|
74
|
-
super(message, httpMeta);
|
|
75
|
-
this.data$ = err;
|
|
76
|
-
this.error = err.error;
|
|
77
|
-
|
|
78
|
-
this.name = "RetrieveIdentityResponseBody";
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/** @internal */
|
|
83
|
-
export const RetrieveIdentityIdentitiesResponseBody$inboundSchema: z.ZodType<
|
|
84
|
-
RetrieveIdentityIdentitiesResponseBody,
|
|
85
|
-
z.ZodTypeDef,
|
|
86
|
-
unknown
|
|
87
|
-
> = z.object({
|
|
88
|
-
error: z.string(),
|
|
89
|
-
request$: z.instanceof(Request),
|
|
90
|
-
response$: z.instanceof(Response),
|
|
91
|
-
body$: z.string(),
|
|
92
|
-
})
|
|
93
|
-
.transform((v) => {
|
|
94
|
-
return new RetrieveIdentityIdentitiesResponseBody(v, {
|
|
95
|
-
request: v.request$,
|
|
96
|
-
response: v.response$,
|
|
97
|
-
body: v.body$,
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
/** @internal */
|
|
102
|
-
export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
|
|
103
|
-
RetrieveIdentityResponseBody,
|
|
104
|
-
z.ZodTypeDef,
|
|
105
|
-
unknown
|
|
106
|
-
> = z.object({
|
|
107
|
-
error: z.string(),
|
|
108
|
-
request$: z.instanceof(Request),
|
|
109
|
-
response$: z.instanceof(Response),
|
|
110
|
-
body$: z.string(),
|
|
111
|
-
})
|
|
112
|
-
.transform((v) => {
|
|
113
|
-
return new RetrieveIdentityResponseBody(v, {
|
|
114
|
-
request: v.request$,
|
|
115
|
-
response: v.response$,
|
|
116
|
-
body: v.body$,
|
|
117
|
-
});
|
|
118
|
-
});
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { OrqError } from "./orqerror.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Identity not found
|
|
10
|
-
*/
|
|
11
|
-
export type UpdateIdentityResponseBodyData = {
|
|
12
|
-
/**
|
|
13
|
-
* Error message
|
|
14
|
-
*/
|
|
15
|
-
message: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Identity not found
|
|
20
|
-
*/
|
|
21
|
-
export class UpdateIdentityResponseBody extends OrqError {
|
|
22
|
-
/** The original data that was passed to this error instance. */
|
|
23
|
-
data$: UpdateIdentityResponseBodyData;
|
|
24
|
-
|
|
25
|
-
constructor(
|
|
26
|
-
err: UpdateIdentityResponseBodyData,
|
|
27
|
-
httpMeta: { response: Response; request: Request; body: string },
|
|
28
|
-
) {
|
|
29
|
-
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
30
|
-
super(message, httpMeta);
|
|
31
|
-
this.data$ = err;
|
|
32
|
-
|
|
33
|
-
this.name = "UpdateIdentityResponseBody";
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const UpdateIdentityResponseBody$inboundSchema: z.ZodType<
|
|
39
|
-
UpdateIdentityResponseBody,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
unknown
|
|
42
|
-
> = z.object({
|
|
43
|
-
message: z.string(),
|
|
44
|
-
request$: z.instanceof(Request),
|
|
45
|
-
response$: z.instanceof(Response),
|
|
46
|
-
body$: z.string(),
|
|
47
|
-
})
|
|
48
|
-
.transform((v) => {
|
|
49
|
-
return new UpdateIdentityResponseBody(v, {
|
|
50
|
-
request: v.request$,
|
|
51
|
-
response: v.response$,
|
|
52
|
-
body: v.body$,
|
|
53
|
-
});
|
|
54
|
-
});
|
|
@@ -1,156 +0,0 @@
|
|
|
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
|
-
/**
|
|
12
|
-
* Update user information payload
|
|
13
|
-
*/
|
|
14
|
-
export type CreateContactRequestBody = {
|
|
15
|
-
/**
|
|
16
|
-
* Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user.
|
|
17
|
-
*/
|
|
18
|
-
externalId: string;
|
|
19
|
-
/**
|
|
20
|
-
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
21
|
-
*/
|
|
22
|
-
displayName?: string | null | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Email address of the contact user
|
|
25
|
-
*/
|
|
26
|
-
email?: string | null | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* URL linking to the contact user's avatar image
|
|
29
|
-
*/
|
|
30
|
-
avatarUrl?: string | null | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
33
|
-
*/
|
|
34
|
-
tags?: Array<string> | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
37
|
-
*/
|
|
38
|
-
metadata?: { [k: string]: any } | undefined;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Successful operation
|
|
43
|
-
*/
|
|
44
|
-
export type CreateContactResponseBody = {
|
|
45
|
-
/**
|
|
46
|
-
* Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
|
|
47
|
-
*/
|
|
48
|
-
id: string;
|
|
49
|
-
/**
|
|
50
|
-
* Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user.
|
|
51
|
-
*/
|
|
52
|
-
externalId: string;
|
|
53
|
-
/**
|
|
54
|
-
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
55
|
-
*/
|
|
56
|
-
displayName?: string | null | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Email address of the contact user
|
|
59
|
-
*/
|
|
60
|
-
email?: string | null | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* URL linking to the contact user's avatar image
|
|
63
|
-
*/
|
|
64
|
-
avatarUrl?: string | null | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
67
|
-
*/
|
|
68
|
-
tags?: Array<string> | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
71
|
-
*/
|
|
72
|
-
metadata?: { [k: string]: any } | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* The date and time the resource was created
|
|
75
|
-
*/
|
|
76
|
-
created?: Date | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* The date and time the resource was last updated
|
|
79
|
-
*/
|
|
80
|
-
updated: Date;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
/** @internal */
|
|
84
|
-
export type CreateContactRequestBody$Outbound = {
|
|
85
|
-
external_id: string;
|
|
86
|
-
display_name?: string | null | undefined;
|
|
87
|
-
email?: string | null | undefined;
|
|
88
|
-
avatar_url?: string | null | undefined;
|
|
89
|
-
tags?: Array<string> | undefined;
|
|
90
|
-
metadata?: { [k: string]: any } | undefined;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
/** @internal */
|
|
94
|
-
export const CreateContactRequestBody$outboundSchema: z.ZodType<
|
|
95
|
-
CreateContactRequestBody$Outbound,
|
|
96
|
-
z.ZodTypeDef,
|
|
97
|
-
CreateContactRequestBody
|
|
98
|
-
> = z.object({
|
|
99
|
-
externalId: z.string(),
|
|
100
|
-
displayName: z.nullable(z.string()).optional(),
|
|
101
|
-
email: z.nullable(z.string()).optional(),
|
|
102
|
-
avatarUrl: z.nullable(z.string()).optional(),
|
|
103
|
-
tags: z.array(z.string()).optional(),
|
|
104
|
-
metadata: z.record(z.any()).optional(),
|
|
105
|
-
}).transform((v) => {
|
|
106
|
-
return remap$(v, {
|
|
107
|
-
externalId: "external_id",
|
|
108
|
-
displayName: "display_name",
|
|
109
|
-
avatarUrl: "avatar_url",
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
export function createContactRequestBodyToJSON(
|
|
114
|
-
createContactRequestBody: CreateContactRequestBody,
|
|
115
|
-
): string {
|
|
116
|
-
return JSON.stringify(
|
|
117
|
-
CreateContactRequestBody$outboundSchema.parse(createContactRequestBody),
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/** @internal */
|
|
122
|
-
export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
123
|
-
CreateContactResponseBody,
|
|
124
|
-
z.ZodTypeDef,
|
|
125
|
-
unknown
|
|
126
|
-
> = z.object({
|
|
127
|
-
_id: z.string(),
|
|
128
|
-
external_id: z.string(),
|
|
129
|
-
display_name: z.nullable(z.string()).optional(),
|
|
130
|
-
email: z.nullable(z.string()).optional(),
|
|
131
|
-
avatar_url: z.nullable(z.string()).optional(),
|
|
132
|
-
tags: z.array(z.string()).optional(),
|
|
133
|
-
metadata: z.record(z.any()).optional(),
|
|
134
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
135
|
-
.optional(),
|
|
136
|
-
updated: z.string().datetime({ offset: true }).default(
|
|
137
|
-
"2026-05-15T03:37:24.790Z",
|
|
138
|
-
).transform(v => new Date(v)),
|
|
139
|
-
}).transform((v) => {
|
|
140
|
-
return remap$(v, {
|
|
141
|
-
"_id": "id",
|
|
142
|
-
"external_id": "externalId",
|
|
143
|
-
"display_name": "displayName",
|
|
144
|
-
"avatar_url": "avatarUrl",
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
export function createContactResponseBodyFromJSON(
|
|
149
|
-
jsonString: string,
|
|
150
|
-
): SafeParseResult<CreateContactResponseBody, SDKValidationError> {
|
|
151
|
-
return safeParse(
|
|
152
|
-
jsonString,
|
|
153
|
-
(x) => CreateContactResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
154
|
-
`Failed to parse 'CreateContactResponseBody' from JSON`,
|
|
155
|
-
);
|
|
156
|
-
}
|