@orq-ai/node 4.16.0-rc.7 → 4.16.0-rc.9
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/README.md +37 -42
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +0 -8
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -8
- package/models/components/index.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- 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/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -8
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- 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/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- 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/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/sdk.ts +0 -6
- package/funcs/auditLogsQuery.d.ts +0 -17
- package/funcs/auditLogsQuery.d.ts.map +0 -1
- package/funcs/auditLogsQuery.js +0 -115
- package/funcs/auditLogsQuery.js.map +0 -1
- package/models/components/auditlog.d.ts +0 -60
- package/models/components/auditlog.d.ts.map +0 -1
- package/models/components/auditlog.js +0 -83
- package/models/components/auditlog.js.map +0 -1
- package/models/components/auditlogfilter.d.ts +0 -33
- package/models/components/auditlogfilter.d.ts.map +0 -1
- package/models/components/auditlogfilter.js +0 -52
- package/models/components/auditlogfilter.js.map +0 -1
- package/models/components/auditlogfilterquery.d.ts +0 -29
- package/models/components/auditlogfilterquery.d.ts.map +0 -1
- package/models/components/auditlogfilterquery.js +0 -52
- package/models/components/auditlogfilterquery.js.map +0 -1
- package/models/components/auditlogpagination.d.ts +0 -28
- package/models/components/auditlogpagination.d.ts.map +0 -1
- package/models/components/auditlogpagination.js +0 -57
- package/models/components/auditlogpagination.js.map +0 -1
- package/models/components/auditlogsort.d.ts +0 -23
- package/models/components/auditlogsort.d.ts.map +0 -1
- package/models/components/auditlogsort.js +0 -50
- package/models/components/auditlogsort.js.map +0 -1
- package/models/components/queryauditlogsrequest.d.ts +0 -31
- package/models/components/queryauditlogsrequest.d.ts.map +0 -1
- package/models/components/queryauditlogsrequest.js +0 -54
- package/models/components/queryauditlogsrequest.js.map +0 -1
- package/models/components/queryauditlogsresponse.d.ts +0 -25
- package/models/components/queryauditlogsresponse.d.ts.map +0 -1
- package/models/components/queryauditlogsresponse.js +0 -60
- package/models/components/queryauditlogsresponse.js.map +0 -1
- package/models/components/value.d.ts +0 -17
- package/models/components/value.d.ts.map +0 -1
- package/models/components/value.js +0 -54
- package/models/components/value.js.map +0 -1
- package/sdk/auditlogs.d.ts +0 -12
- package/sdk/auditlogs.d.ts.map +0 -1
- package/sdk/auditlogs.js +0 -22
- package/sdk/auditlogs.js.map +0 -1
- package/src/funcs/auditLogsQuery.ts +0 -162
- package/src/models/components/auditlog.ts +0 -122
- package/src/models/components/auditlogfilter.ts +0 -51
- package/src/models/components/auditlogfilterquery.ts +0 -54
- package/src/models/components/auditlogpagination.ts +0 -55
- package/src/models/components/auditlogsort.ts +0 -39
- package/src/models/components/queryauditlogsrequest.ts +0 -64
- package/src/models/components/queryauditlogsresponse.ts +0 -55
- package/src/models/components/value.ts +0 -24
- package/src/sdk/auditlogs.ts +0 -27
|
@@ -1725,7 +1725,7 @@ export const ListDatasetDatapointsEvaluations4$inboundSchema: z.ZodType<
|
|
|
1725
1725
|
explanation: z.string().optional(),
|
|
1726
1726
|
reviewed_by_id: z.string(),
|
|
1727
1727
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1728
|
-
"2026-09-
|
|
1728
|
+
"2026-09-21T07:21:40.016Z",
|
|
1729
1729
|
).transform(v => new Date(v)),
|
|
1730
1730
|
type: z.literal("string_array"),
|
|
1731
1731
|
values: z.array(z.string()),
|
|
@@ -1821,7 +1821,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1821
1821
|
explanation: z.string().optional(),
|
|
1822
1822
|
reviewed_by_id: z.string(),
|
|
1823
1823
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1824
|
-
"2026-09-
|
|
1824
|
+
"2026-09-21T07:21:40.015Z",
|
|
1825
1825
|
).transform(v => new Date(v)),
|
|
1826
1826
|
type: z.literal("boolean"),
|
|
1827
1827
|
value: z.boolean(),
|
|
@@ -1925,7 +1925,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1925
1925
|
explanation: z.string().optional(),
|
|
1926
1926
|
reviewed_by_id: z.string(),
|
|
1927
1927
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1928
|
-
"2026-09-
|
|
1928
|
+
"2026-09-21T07:21:40.015Z",
|
|
1929
1929
|
).transform(v => new Date(v)),
|
|
1930
1930
|
type: z.literal("number"),
|
|
1931
1931
|
value: z.number(),
|
|
@@ -2031,7 +2031,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
2031
2031
|
explanation: z.string().optional(),
|
|
2032
2032
|
reviewed_by_id: z.string(),
|
|
2033
2033
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2034
|
-
"2026-09-
|
|
2034
|
+
"2026-09-21T07:21:40.015Z",
|
|
2035
2035
|
).transform(v => new Date(v)),
|
|
2036
2036
|
type: z.literal("string"),
|
|
2037
2037
|
value: z.string(),
|
|
@@ -2114,7 +2114,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
2114
2114
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2115
2115
|
.optional(),
|
|
2116
2116
|
updated: z.string().datetime({ offset: true }).default(
|
|
2117
|
-
"2026-09-
|
|
2117
|
+
"2026-09-21T07:21:34.711Z",
|
|
2118
2118
|
).transform(v => new Date(v)),
|
|
2119
2119
|
}).transform((v) => {
|
|
2120
2120
|
return remap$(v, {
|
|
@@ -176,7 +176,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
176
176
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
177
177
|
.optional(),
|
|
178
178
|
updated: z.string().datetime({ offset: true }).default(
|
|
179
|
-
"2026-09-
|
|
179
|
+
"2026-09-21T07:21:34.711Z",
|
|
180
180
|
).transform(v => new Date(v)),
|
|
181
181
|
}).transform((v) => {
|
|
182
182
|
return remap$(v, {
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-09-
|
|
321
|
+
"2026-09-21T07:21:34.711Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-09-
|
|
367
|
+
"2026-09-21T07:21:34.711Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
|
|
|
245
245
|
PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
|
|
246
246
|
.default("orq"),
|
|
247
247
|
explanation: z.string().optional(),
|
|
248
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
248
|
+
reviewedAt: z.date().default(() => new Date("2026-09-21T07:21:40.052Z"))
|
|
249
249
|
.transform(v => v.toISOString()),
|
|
250
250
|
type: z.literal("string_array"),
|
|
251
251
|
values: z.array(z.string()),
|
|
@@ -299,7 +299,7 @@ export const Three$outboundSchema: z.ZodType<
|
|
|
299
299
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
300
300
|
.default("orq"),
|
|
301
301
|
explanation: z.string().optional(),
|
|
302
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
302
|
+
reviewedAt: z.date().default(() => new Date("2026-09-21T07:21:40.052Z"))
|
|
303
303
|
.transform(v => v.toISOString()),
|
|
304
304
|
type: z.literal("boolean"),
|
|
305
305
|
value: z.boolean(),
|
|
@@ -353,7 +353,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
353
353
|
"orq",
|
|
354
354
|
),
|
|
355
355
|
explanation: z.string().optional(),
|
|
356
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
356
|
+
reviewedAt: z.date().default(() => new Date("2026-09-21T07:21:40.052Z"))
|
|
357
357
|
.transform(v => v.toISOString()),
|
|
358
358
|
type: z.literal("number"),
|
|
359
359
|
value: z.number(),
|
|
@@ -405,7 +405,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
405
405
|
humanReviewId: z.string().optional(),
|
|
406
406
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
407
407
|
explanation: z.string().optional(),
|
|
408
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
408
|
+
reviewedAt: z.date().default(() => new Date("2026-09-21T07:21:40.051Z"))
|
|
409
409
|
.transform(v => v.toISOString()),
|
|
410
410
|
type: z.literal("string"),
|
|
411
411
|
value: z.string(),
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-09-
|
|
274
|
+
"2026-09-21T07:21:34.711Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-09-
|
|
319
|
+
"2026-09-21T07:21:34.711Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -1651,7 +1651,7 @@ export const RetrieveDatapointEvaluations4$inboundSchema: z.ZodType<
|
|
|
1651
1651
|
explanation: z.string().optional(),
|
|
1652
1652
|
reviewed_by_id: z.string(),
|
|
1653
1653
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1654
|
-
"2026-09-
|
|
1654
|
+
"2026-09-21T07:21:40.019Z",
|
|
1655
1655
|
).transform(v => new Date(v)),
|
|
1656
1656
|
type: z.literal("string_array"),
|
|
1657
1657
|
values: z.array(z.string()),
|
|
@@ -1751,7 +1751,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
1751
1751
|
explanation: z.string().optional(),
|
|
1752
1752
|
reviewed_by_id: z.string(),
|
|
1753
1753
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1754
|
-
"2026-09-
|
|
1754
|
+
"2026-09-21T07:21:40.018Z",
|
|
1755
1755
|
).transform(v => new Date(v)),
|
|
1756
1756
|
type: z.literal("boolean"),
|
|
1757
1757
|
value: z.boolean(),
|
|
@@ -1849,7 +1849,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1849
1849
|
explanation: z.string().optional(),
|
|
1850
1850
|
reviewed_by_id: z.string(),
|
|
1851
1851
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1852
|
-
"2026-09-
|
|
1852
|
+
"2026-09-21T07:21:40.018Z",
|
|
1853
1853
|
).transform(v => new Date(v)),
|
|
1854
1854
|
type: z.literal("number"),
|
|
1855
1855
|
value: z.number(),
|
|
@@ -1937,7 +1937,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1937
1937
|
explanation: z.string().optional(),
|
|
1938
1938
|
reviewed_by_id: z.string(),
|
|
1939
1939
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1940
|
-
"2026-09-
|
|
1940
|
+
"2026-09-21T07:21:40.018Z",
|
|
1941
1941
|
).transform(v => new Date(v)),
|
|
1942
1942
|
type: z.literal("string"),
|
|
1943
1943
|
value: z.string(),
|
|
@@ -2018,7 +2018,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2018
2018
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2019
2019
|
.optional(),
|
|
2020
2020
|
updated: z.string().datetime({ offset: true }).default(
|
|
2021
|
-
"2026-09-
|
|
2021
|
+
"2026-09-21T07:21:34.711Z",
|
|
2022
2022
|
).transform(v => new Date(v)),
|
|
2023
2023
|
}).transform((v) => {
|
|
2024
2024
|
return remap$(v, {
|
|
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
126
126
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
127
|
.optional(),
|
|
128
128
|
updated: z.string().datetime({ offset: true }).default(
|
|
129
|
-
"2026-09-
|
|
129
|
+
"2026-09-21T07:21:34.711Z",
|
|
130
130
|
).transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
624
624
|
z.ZodTypeDef,
|
|
625
625
|
unknown
|
|
626
626
|
> = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01M31DF1X9H2HBV1786F0E7RW4"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
820
820
|
z.ZodTypeDef,
|
|
821
821
|
unknown
|
|
822
822
|
> = z.object({
|
|
823
|
-
_id: z.string().default("
|
|
823
|
+
_id: z.string().default("tool_01M31DF1X94NVB9PCFTF9062FZ"),
|
|
824
824
|
path: z.string(),
|
|
825
825
|
key: z.string(),
|
|
826
826
|
display_name: z.string().optional(),
|
|
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01M31DF1X8VBDRVVG7844KF8H2"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
_id: z.string().default("
|
|
1025
|
+
_id: z.string().default("tool_01M31DF1X8J7HKZVYQ3Y49XFZQ"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3890,7 +3890,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3890
3890
|
z.ZodTypeDef,
|
|
3891
3891
|
Tools
|
|
3892
3892
|
> = z.object({
|
|
3893
|
-
id: z.string().default("
|
|
3893
|
+
id: z.string().default("01M31DF1VHRBVCQCYDZKWYH822"),
|
|
3894
3894
|
name: z.string(),
|
|
3895
3895
|
description: z.string().optional(),
|
|
3896
3896
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3949,7 +3949,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3949
3949
|
z.ZodTypeDef,
|
|
3950
3950
|
AgentToolInputRunTools
|
|
3951
3951
|
> = z.object({
|
|
3952
|
-
id: z.string().default("
|
|
3952
|
+
id: z.string().default("01M31DF1VZT8EG4KG1HPD4BJCH"),
|
|
3953
3953
|
name: z.string(),
|
|
3954
3954
|
description: z.string().optional(),
|
|
3955
3955
|
schema: z.lazy(() =>
|
|
@@ -2907,7 +2907,7 @@ export const UpdateDatapointEvaluations4$inboundSchema: z.ZodType<
|
|
|
2907
2907
|
explanation: z.string().optional(),
|
|
2908
2908
|
reviewed_by_id: z.string(),
|
|
2909
2909
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2910
|
-
"2026-09-
|
|
2910
|
+
"2026-09-21T07:21:40.026Z",
|
|
2911
2911
|
).transform(v => new Date(v)),
|
|
2912
2912
|
type: z.literal("string_array"),
|
|
2913
2913
|
values: z.array(z.string()),
|
|
@@ -3007,7 +3007,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
3007
3007
|
explanation: z.string().optional(),
|
|
3008
3008
|
reviewed_by_id: z.string(),
|
|
3009
3009
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3010
|
-
"2026-09-
|
|
3010
|
+
"2026-09-21T07:21:40.026Z",
|
|
3011
3011
|
).transform(v => new Date(v)),
|
|
3012
3012
|
type: z.literal("boolean"),
|
|
3013
3013
|
value: z.boolean(),
|
|
@@ -3104,7 +3104,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
3104
3104
|
explanation: z.string().optional(),
|
|
3105
3105
|
reviewed_by_id: z.string(),
|
|
3106
3106
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3107
|
-
"2026-09-
|
|
3107
|
+
"2026-09-21T07:21:40.026Z",
|
|
3108
3108
|
).transform(v => new Date(v)),
|
|
3109
3109
|
type: z.literal("number"),
|
|
3110
3110
|
value: z.number(),
|
|
@@ -3193,7 +3193,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
3193
3193
|
explanation: z.string().optional(),
|
|
3194
3194
|
reviewed_by_id: z.string(),
|
|
3195
3195
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3196
|
-
"2026-09-
|
|
3196
|
+
"2026-09-21T07:21:40.026Z",
|
|
3197
3197
|
).transform(v => new Date(v)),
|
|
3198
3198
|
type: z.literal("string"),
|
|
3199
3199
|
value: z.string(),
|
|
@@ -3278,7 +3278,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
3278
3278
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3279
3279
|
.optional(),
|
|
3280
3280
|
updated: z.string().datetime({ offset: true }).default(
|
|
3281
|
-
"2026-09-
|
|
3281
|
+
"2026-09-21T07:21:34.711Z",
|
|
3282
3282
|
).transform(v => new Date(v)),
|
|
3283
3283
|
}).transform((v) => {
|
|
3284
3284
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-09-
|
|
185
|
+
"2026-09-21T07:21:34.711Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M31DF1X5PAGSSGY15CZ1ZPT0"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M31DF1X42TCDHJ55R4KAN0FY"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M31DF1X456T3R8J5QGWKXTW3"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M31DF1X33PRGJDAH9792AAAP"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -8,7 +8,6 @@ import { Alerts } from "./alerts.js";
|
|
|
8
8
|
import { AnnotationQueues } from "./annotationqueues.js";
|
|
9
9
|
import { Annotations } from "./annotations.js";
|
|
10
10
|
import { ApiKeys } from "./apikeys.js";
|
|
11
|
-
import { AuditLogs } from "./auditlogs.js";
|
|
12
11
|
import { Budgets } from "./budgets.js";
|
|
13
12
|
import { Chunking } from "./chunking.js";
|
|
14
13
|
import { Datasets } from "./datasets.js";
|
|
@@ -172,11 +171,6 @@ export class Orq extends ClientSDK {
|
|
|
172
171
|
return (this._apiKeys ??= new ApiKeys(this._options));
|
|
173
172
|
}
|
|
174
173
|
|
|
175
|
-
private _auditLogs?: AuditLogs;
|
|
176
|
-
get auditLogs(): AuditLogs {
|
|
177
|
-
return (this._auditLogs ??= new AuditLogs(this._options));
|
|
178
|
-
}
|
|
179
|
-
|
|
180
174
|
private _budgets?: Budgets;
|
|
181
175
|
get budgets(): Budgets {
|
|
182
176
|
return (this._budgets ??= new Budgets(this._options));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { OrqCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import * as components from "../models/components/index.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
6
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
-
import { APIPromise } from "../types/async.js";
|
|
9
|
-
import { Result } from "../types/fp.js";
|
|
10
|
-
/**
|
|
11
|
-
* Query audit logs
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* Queries audit logs from your workspace with filters, sorting, and cursor pagination.
|
|
15
|
-
*/
|
|
16
|
-
export declare function auditLogsQuery(client: OrqCore, request: components.QueryAuditLogsRequest, options?: RequestOptions): APIPromise<Result<components.QueryAuditLogsResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
-
//# sourceMappingURL=auditLogsQuery.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auditLogsQuery.d.ts","sourceRoot":"","sources":["../src/funcs/auditLogsQuery.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,sBAAsB,EAC/B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
package/funcs/auditLogsQuery.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.auditLogsQuery = auditLogsQuery;
|
|
40
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
-
const http_js_1 = require("../lib/http.js");
|
|
42
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
-
const security_js_1 = require("../lib/security.js");
|
|
46
|
-
const url_js_1 = require("../lib/url.js");
|
|
47
|
-
const components = __importStar(require("../models/components/index.js"));
|
|
48
|
-
const async_js_1 = require("../types/async.js");
|
|
49
|
-
/**
|
|
50
|
-
* Query audit logs
|
|
51
|
-
*
|
|
52
|
-
* @remarks
|
|
53
|
-
* Queries audit logs from your workspace with filters, sorting, and cursor pagination.
|
|
54
|
-
*/
|
|
55
|
-
function auditLogsQuery(client, request, options) {
|
|
56
|
-
return new async_js_1.APIPromise($do(client, request, options));
|
|
57
|
-
}
|
|
58
|
-
async function $do(client, request, options) {
|
|
59
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.QueryAuditLogsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
60
|
-
if (!parsed.ok) {
|
|
61
|
-
return [parsed, { status: "invalid" }];
|
|
62
|
-
}
|
|
63
|
-
const payload = parsed.value;
|
|
64
|
-
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
65
|
-
const path = (0, url_js_1.pathToFunc)("/v2/audit-logs/query")();
|
|
66
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
67
|
-
"Content-Type": "application/json",
|
|
68
|
-
Accept: "application/json",
|
|
69
|
-
}));
|
|
70
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
71
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
72
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
73
|
-
const context = {
|
|
74
|
-
options: client._options,
|
|
75
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76
|
-
operationID: "AuditLogQuery",
|
|
77
|
-
oAuth2Scopes: null,
|
|
78
|
-
resolvedSecurity: requestSecurity,
|
|
79
|
-
securitySource: client._options.apiKey,
|
|
80
|
-
retryConfig: options?.retries
|
|
81
|
-
|| client._options.retryConfig
|
|
82
|
-
|| { strategy: "none" },
|
|
83
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
84
|
-
};
|
|
85
|
-
const requestRes = client._createRequest(context, {
|
|
86
|
-
security: requestSecurity,
|
|
87
|
-
method: "POST",
|
|
88
|
-
baseURL: options?.serverURL,
|
|
89
|
-
path: path,
|
|
90
|
-
headers: headers,
|
|
91
|
-
body: body,
|
|
92
|
-
userAgent: client._options.userAgent,
|
|
93
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
94
|
-
}, options);
|
|
95
|
-
if (!requestRes.ok) {
|
|
96
|
-
return [requestRes, { status: "invalid" }];
|
|
97
|
-
}
|
|
98
|
-
const req = requestRes.value;
|
|
99
|
-
const doResult = await client._do(req, {
|
|
100
|
-
context,
|
|
101
|
-
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
102
|
-
retryConfig: context.retryConfig,
|
|
103
|
-
retryCodes: context.retryCodes,
|
|
104
|
-
});
|
|
105
|
-
if (!doResult.ok) {
|
|
106
|
-
return [doResult, { status: "request-error", request: req }];
|
|
107
|
-
}
|
|
108
|
-
const response = doResult.value;
|
|
109
|
-
const [result] = await M.match(M.json(200, components.QueryAuditLogsResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
110
|
-
if (!result.ok) {
|
|
111
|
-
return [result, { status: "complete", request: req, response }];
|
|
112
|
-
}
|
|
113
|
-
return [result, { status: "complete", request: req, response }];
|
|
114
|
-
}
|
|
115
|
-
//# sourceMappingURL=auditLogsQuery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auditLogsQuery.js","sourceRoot":"","sources":["../src/funcs/auditLogsQuery.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,wCAsBC;AAlDD,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,cAAc,CAC5B,MAAe,EACf,OAAyC,EACzC,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AA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AAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,oCAAoC,CAAC,EAC5D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { Value } from "./value.js";
|
|
5
|
-
/**
|
|
6
|
-
* Additional event metadata. The exact shape depends on entity_type and action.
|
|
7
|
-
*/
|
|
8
|
-
export type AuditLogMetadata = {};
|
|
9
|
-
/**
|
|
10
|
-
* An audit log entry for an entity event in the authenticated workspace.
|
|
11
|
-
*/
|
|
12
|
-
export type AuditLog = {
|
|
13
|
-
/**
|
|
14
|
-
* Unique identifier for the audit log entry.
|
|
15
|
-
*/
|
|
16
|
-
auditLogId: string;
|
|
17
|
-
/**
|
|
18
|
-
* Project associated with the event, when the audited entity belongs to a project.
|
|
19
|
-
*/
|
|
20
|
-
projectId?: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Identifier of the entity that changed.
|
|
23
|
-
*/
|
|
24
|
-
entityId: string;
|
|
25
|
-
entityType: Value;
|
|
26
|
-
action: Value;
|
|
27
|
-
/**
|
|
28
|
-
* User or system actor that caused the event, when available.
|
|
29
|
-
*/
|
|
30
|
-
actorId?: string | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* IP address observed for the actor, when available.
|
|
33
|
-
*/
|
|
34
|
-
actorIp?: string | undefined;
|
|
35
|
-
actorType?: Value | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* Human readable actor name captured when the action happened.
|
|
38
|
-
*/
|
|
39
|
-
actorDisplay?: string | undefined;
|
|
40
|
-
origin?: Value | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* Correlates the entry with the originating request.
|
|
43
|
-
*/
|
|
44
|
-
requestId?: string | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* Time when the audit log entry was created.
|
|
47
|
-
*/
|
|
48
|
-
createdAt: Date;
|
|
49
|
-
/**
|
|
50
|
-
* Additional event metadata. The exact shape depends on entity_type and action.
|
|
51
|
-
*/
|
|
52
|
-
metadata?: AuditLogMetadata | undefined;
|
|
53
|
-
};
|
|
54
|
-
/** @internal */
|
|
55
|
-
export declare const AuditLogMetadata$inboundSchema: z.ZodType<AuditLogMetadata, z.ZodTypeDef, unknown>;
|
|
56
|
-
export declare function auditLogMetadataFromJSON(jsonString: string): SafeParseResult<AuditLogMetadata, SDKValidationError>;
|
|
57
|
-
/** @internal */
|
|
58
|
-
export declare const AuditLog$inboundSchema: z.ZodType<AuditLog, z.ZodTypeDef, unknown>;
|
|
59
|
-
export declare function auditLogFromJSON(jsonString: string): SafeParseResult<AuditLog, SDKValidationError>;
|
|
60
|
-
//# sourceMappingURL=auditlog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auditlog.d.ts","sourceRoot":"","sources":["../../src/models/components/auditlog.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QA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AAO,CAC5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CA4BP,CAAC;AAEH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.AuditLog$inboundSchema = exports.AuditLogMetadata$inboundSchema = void 0;
|
|
40
|
-
exports.auditLogMetadataFromJSON = auditLogMetadataFromJSON;
|
|
41
|
-
exports.auditLogFromJSON = auditLogFromJSON;
|
|
42
|
-
const z = __importStar(require("zod/v3"));
|
|
43
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
-
const value_js_1 = require("./value.js");
|
|
46
|
-
/** @internal */
|
|
47
|
-
exports.AuditLogMetadata$inboundSchema = z.object({});
|
|
48
|
-
function auditLogMetadataFromJSON(jsonString) {
|
|
49
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AuditLogMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AuditLogMetadata' from JSON`);
|
|
50
|
-
}
|
|
51
|
-
/** @internal */
|
|
52
|
-
exports.AuditLog$inboundSchema = z.object({
|
|
53
|
-
audit_log_id: z.string(),
|
|
54
|
-
project_id: z.string().optional(),
|
|
55
|
-
entity_id: z.string(),
|
|
56
|
-
entity_type: value_js_1.Value$inboundSchema,
|
|
57
|
-
action: value_js_1.Value$inboundSchema,
|
|
58
|
-
actor_id: z.string().optional(),
|
|
59
|
-
actor_ip: z.string().optional(),
|
|
60
|
-
actor_type: value_js_1.Value$inboundSchema.optional(),
|
|
61
|
-
actor_display: z.string().optional(),
|
|
62
|
-
origin: value_js_1.Value$inboundSchema.optional(),
|
|
63
|
-
request_id: z.string().optional(),
|
|
64
|
-
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
65
|
-
metadata: z.lazy(() => exports.AuditLogMetadata$inboundSchema).optional(),
|
|
66
|
-
}).transform((v) => {
|
|
67
|
-
return (0, primitives_js_1.remap)(v, {
|
|
68
|
-
"audit_log_id": "auditLogId",
|
|
69
|
-
"project_id": "projectId",
|
|
70
|
-
"entity_id": "entityId",
|
|
71
|
-
"entity_type": "entityType",
|
|
72
|
-
"actor_id": "actorId",
|
|
73
|
-
"actor_ip": "actorIp",
|
|
74
|
-
"actor_type": "actorType",
|
|
75
|
-
"actor_display": "actorDisplay",
|
|
76
|
-
"request_id": "requestId",
|
|
77
|
-
"created_at": "createdAt",
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
function auditLogFromJSON(jsonString) {
|
|
81
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AuditLog$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AuditLog' from JSON`);
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=auditlog.js.map
|