@orq-ai/node 4.17.0-rc.33 → 4.17.0-rc.34
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 +87 -66
- package/funcs/auditLogDestinationsCreate.d.ts +18 -0
- package/funcs/auditLogDestinationsCreate.d.ts.map +1 -0
- package/funcs/auditLogDestinationsCreate.js +119 -0
- package/funcs/auditLogDestinationsCreate.js.map +1 -0
- package/funcs/auditLogDestinationsDelete.d.ts +19 -0
- package/funcs/auditLogDestinationsDelete.d.ts.map +1 -0
- package/funcs/auditLogDestinationsDelete.js +125 -0
- package/funcs/auditLogDestinationsDelete.js.map +1 -0
- package/funcs/auditLogDestinationsGet.d.ts +19 -0
- package/funcs/auditLogDestinationsGet.d.ts.map +1 -0
- package/funcs/auditLogDestinationsGet.js +125 -0
- package/funcs/auditLogDestinationsGet.js.map +1 -0
- package/funcs/auditLogDestinationsList.d.ts +19 -0
- package/funcs/auditLogDestinationsList.d.ts.map +1 -0
- package/funcs/auditLogDestinationsList.js +125 -0
- package/funcs/auditLogDestinationsList.js.map +1 -0
- package/funcs/auditLogDestinationsListDeliveries.d.ts +19 -0
- package/funcs/auditLogDestinationsListDeliveries.d.ts.map +1 -0
- package/funcs/auditLogDestinationsListDeliveries.js +132 -0
- package/funcs/auditLogDestinationsListDeliveries.js.map +1 -0
- package/funcs/auditLogDestinationsReplay.d.ts +19 -0
- package/funcs/auditLogDestinationsReplay.d.ts.map +1 -0
- package/funcs/auditLogDestinationsReplay.js +128 -0
- package/funcs/auditLogDestinationsReplay.js.map +1 -0
- package/funcs/auditLogDestinationsRotateSecret.d.ts +19 -0
- package/funcs/auditLogDestinationsRotateSecret.d.ts.map +1 -0
- package/funcs/auditLogDestinationsRotateSecret.js +125 -0
- package/funcs/auditLogDestinationsRotateSecret.js.map +1 -0
- package/funcs/auditLogDestinationsTest.d.ts +19 -0
- package/funcs/auditLogDestinationsTest.d.ts.map +1 -0
- package/funcs/auditLogDestinationsTest.js +125 -0
- package/funcs/auditLogDestinationsTest.js.map +1 -0
- package/funcs/auditLogDestinationsUpdate.d.ts +19 -0
- package/funcs/auditLogDestinationsUpdate.d.ts.map +1 -0
- package/funcs/auditLogDestinationsUpdate.js +128 -0
- package/funcs/auditLogDestinationsUpdate.js.map +1 -0
- package/funcs/websearchSearch.d.ts +3 -3
- package/funcs/websearchSearch.js +3 -3
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/auditlogdelivery.d.ts +42 -0
- package/models/components/auditlogdelivery.d.ts.map +1 -0
- package/models/components/auditlogdelivery.js +77 -0
- package/models/components/auditlogdelivery.js.map +1 -0
- package/models/components/auditlogdeliverykind.d.ts +11 -0
- package/models/components/auditlogdeliverykind.d.ts.map +1 -0
- package/models/components/auditlogdeliverykind.js +48 -0
- package/models/components/auditlogdeliverykind.js.map +1 -0
- package/models/components/auditlogdeliverystatus.d.ts +15 -0
- package/models/components/auditlogdeliverystatus.d.ts.map +1 -0
- package/models/components/auditlogdeliverystatus.js +52 -0
- package/models/components/auditlogdeliverystatus.js.map +1 -0
- package/models/components/auditlogdestination.d.ts +36 -0
- package/models/components/auditlogdestination.d.ts.map +1 -0
- package/models/components/auditlogdestination.js +72 -0
- package/models/components/auditlogdestination.js.map +1 -0
- package/models/components/auditlogdestinationstatus.d.ts +12 -0
- package/models/components/auditlogdestinationstatus.d.ts.map +1 -0
- package/models/components/auditlogdestinationstatus.js +49 -0
- package/models/components/auditlogdestinationstatus.js.map +1 -0
- package/models/components/createauditlogdestinationrequest.d.ts +25 -0
- package/models/components/createauditlogdestinationrequest.d.ts.map +1 -0
- package/models/components/createauditlogdestinationrequest.js +56 -0
- package/models/components/createauditlogdestinationrequest.js.map +1 -0
- package/models/components/createauditlogdestinationresponse.d.ts +15 -0
- package/models/components/createauditlogdestinationresponse.d.ts.map +1 -0
- package/models/components/createauditlogdestinationresponse.js +57 -0
- package/models/components/createauditlogdestinationresponse.js.map +1 -0
- package/models/components/deleteauditlogdestinationresponse.d.ts +8 -0
- package/models/components/deleteauditlogdestinationresponse.d.ts.map +1 -0
- package/models/components/deleteauditlogdestinationresponse.js +48 -0
- package/models/components/deleteauditlogdestinationresponse.js.map +1 -0
- package/models/components/effectiveuserpermissions.d.ts +10 -0
- package/models/components/effectiveuserpermissions.d.ts.map +1 -0
- package/models/components/effectiveuserpermissions.js +50 -0
- package/models/components/effectiveuserpermissions.js.map +1 -0
- package/models/components/getauditlogdestinationresponse.d.ts +11 -0
- package/models/components/getauditlogdestinationresponse.d.ts.map +1 -0
- package/models/components/getauditlogdestinationresponse.js +51 -0
- package/models/components/getauditlogdestinationresponse.js.map +1 -0
- package/models/components/index.d.ts +18 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +18 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listauditlogdeliveriesresponse.d.ts +13 -0
- package/models/components/listauditlogdeliveriesresponse.d.ts.map +1 -0
- package/models/components/listauditlogdeliveriesresponse.js +58 -0
- package/models/components/listauditlogdeliveriesresponse.js.map +1 -0
- package/models/components/listauditlogdestinationsresponse.d.ts +13 -0
- package/models/components/listauditlogdestinationsresponse.d.ts.map +1 -0
- package/models/components/listauditlogdestinationsresponse.js +58 -0
- package/models/components/listauditlogdestinationsresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/replayauditlogdeliveriesrequest.d.ts +20 -0
- package/models/components/replayauditlogdeliveriesrequest.d.ts.map +1 -0
- package/models/components/replayauditlogdeliveriesrequest.js +50 -0
- package/models/components/replayauditlogdeliveriesrequest.js.map +1 -0
- package/models/components/replayauditlogdeliveriesresponse.d.ts +14 -0
- package/models/components/replayauditlogdeliveriesresponse.d.ts.map +1 -0
- package/models/components/replayauditlogdeliveriesresponse.js +56 -0
- package/models/components/replayauditlogdeliveriesresponse.js.map +1 -0
- package/models/components/rotateauditlogdestinationsecretresponse.d.ts +15 -0
- package/models/components/rotateauditlogdestinationsecretresponse.d.ts.map +1 -0
- package/models/components/rotateauditlogdestinationsecretresponse.js +57 -0
- package/models/components/rotateauditlogdestinationsecretresponse.js.map +1 -0
- package/models/components/testauditlogdestinationresponse.d.ts +11 -0
- package/models/components/testauditlogdestinationresponse.d.ts.map +1 -0
- package/models/components/testauditlogdestinationresponse.js +51 -0
- package/models/components/testauditlogdestinationresponse.js.map +1 -0
- package/models/components/updateauditlogdestinationrequest.d.ts +28 -0
- package/models/components/updateauditlogdestinationrequest.d.ts.map +1 -0
- package/models/components/updateauditlogdestinationrequest.js +58 -0
- package/models/components/updateauditlogdestinationrequest.js.map +1 -0
- package/models/components/updateauditlogdestinationresponse.d.ts +11 -0
- package/models/components/updateauditlogdestinationresponse.d.ts.map +1 -0
- package/models/components/updateauditlogdestinationresponse.js +51 -0
- package/models/components/updateauditlogdestinationresponse.js.map +1 -0
- package/models/components/workspacecapabilities.d.ts +2 -0
- package/models/components/workspacecapabilities.d.ts.map +1 -1
- package/models/components/workspacecapabilities.js +7 -0
- package/models/components/workspacecapabilities.js.map +1 -1
- package/models/operations/auditlogdestinationdelete.d.ts +12 -0
- package/models/operations/auditlogdestinationdelete.d.ts.map +1 -0
- package/models/operations/auditlogdestinationdelete.js +54 -0
- package/models/operations/auditlogdestinationdelete.js.map +1 -0
- package/models/operations/auditlogdestinationget.d.ts +12 -0
- package/models/operations/auditlogdestinationget.d.ts.map +1 -0
- package/models/operations/auditlogdestinationget.js +54 -0
- package/models/operations/auditlogdestinationget.js.map +1 -0
- package/models/operations/auditlogdestinationlist.d.ts +16 -0
- package/models/operations/auditlogdestinationlist.d.ts.map +1 -0
- package/models/operations/auditlogdestinationlist.js +57 -0
- package/models/operations/auditlogdestinationlist.js.map +1 -0
- package/models/operations/auditlogdestinationlistdeliveries.d.ts +21 -0
- package/models/operations/auditlogdestinationlistdeliveries.d.ts.map +1 -0
- package/models/operations/auditlogdestinationlistdeliveries.js +61 -0
- package/models/operations/auditlogdestinationlistdeliveries.js.map +1 -0
- package/models/operations/auditlogdestinationreplay.d.ts +15 -0
- package/models/operations/auditlogdestinationreplay.d.ts.map +1 -0
- package/models/operations/auditlogdestinationreplay.js +57 -0
- package/models/operations/auditlogdestinationreplay.js.map +1 -0
- package/models/operations/auditlogdestinationrotatesecret.d.ts +12 -0
- package/models/operations/auditlogdestinationrotatesecret.d.ts.map +1 -0
- package/models/operations/auditlogdestinationrotatesecret.js +54 -0
- package/models/operations/auditlogdestinationrotatesecret.js.map +1 -0
- package/models/operations/auditlogdestinationtest.d.ts +12 -0
- package/models/operations/auditlogdestinationtest.d.ts.map +1 -0
- package/models/operations/auditlogdestinationtest.js +54 -0
- package/models/operations/auditlogdestinationtest.js.map +1 -0
- package/models/operations/auditlogdestinationupdate.d.ts +15 -0
- package/models/operations/auditlogdestinationupdate.d.ts.map +1 -0
- package/models/operations/auditlogdestinationupdate.js +57 -0
- package/models/operations/auditlogdestinationupdate.js.map +1 -0
- 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/index.d.ts +8 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +8 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/searchweb.d.ts +3 -1
- package/models/operations/searchweb.d.ts.map +1 -1
- package/models/operations/searchweb.js +2 -0
- package/models/operations/searchweb.js.map +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +8 -8
- package/sdk/auditlogdestinations.d.ts +69 -0
- package/sdk/auditlogdestinations.d.ts.map +1 -0
- package/sdk/auditlogdestinations.js +102 -0
- package/sdk/auditlogdestinations.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/websearch.d.ts +3 -3
- package/sdk/websearch.js +3 -3
- package/src/funcs/auditLogDestinationsCreate.ts +172 -0
- package/src/funcs/auditLogDestinationsDelete.ts +180 -0
- package/src/funcs/auditLogDestinationsGet.ts +180 -0
- package/src/funcs/auditLogDestinationsList.ts +181 -0
- package/src/funcs/auditLogDestinationsListDeliveries.ts +190 -0
- package/src/funcs/auditLogDestinationsReplay.ts +183 -0
- package/src/funcs/auditLogDestinationsRotateSecret.ts +185 -0
- package/src/funcs/auditLogDestinationsTest.ts +180 -0
- package/src/funcs/auditLogDestinationsUpdate.ts +183 -0
- package/src/funcs/websearchSearch.ts +3 -3
- package/src/lib/config.ts +2 -2
- package/src/models/components/auditlogdelivery.ts +100 -0
- package/src/models/components/auditlogdeliverykind.ts +18 -0
- package/src/models/components/auditlogdeliverystatus.ts +24 -0
- package/src/models/components/auditlogdestination.ts +83 -0
- package/src/models/components/auditlogdestinationstatus.ts +23 -0
- package/src/models/components/createauditlogdestinationrequest.ts +53 -0
- package/src/models/components/createauditlogdestinationresponse.ts +45 -0
- package/src/models/components/deleteauditlogdestinationresponse.ts +27 -0
- package/src/models/components/effectiveuserpermissions.ts +31 -0
- package/src/models/components/getauditlogdestinationresponse.ts +35 -0
- package/src/models/components/index.ts +18 -0
- package/src/models/components/listauditlogdeliveriesresponse.ts +44 -0
- package/src/models/components/listauditlogdestinationsresponse.ts +44 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/replayauditlogdeliveriesrequest.ts +42 -0
- package/src/models/components/replayauditlogdeliveriesresponse.ts +41 -0
- package/src/models/components/rotateauditlogdestinationsecretresponse.ts +51 -0
- package/src/models/components/testauditlogdestinationresponse.ts +35 -0
- package/src/models/components/updateauditlogdestinationrequest.ts +60 -0
- package/src/models/components/updateauditlogdestinationresponse.ts +35 -0
- package/src/models/components/workspacecapabilities.ts +11 -0
- package/src/models/operations/auditlogdestinationdelete.ts +38 -0
- package/src/models/operations/auditlogdestinationget.ts +38 -0
- package/src/models/operations/auditlogdestinationlist.ts +45 -0
- package/src/models/operations/auditlogdestinationlistdeliveries.ts +54 -0
- package/src/models/operations/auditlogdestinationreplay.ts +45 -0
- package/src/models/operations/auditlogdestinationrotatesecret.ts +39 -0
- package/src/models/operations/auditlogdestinationtest.ts +38 -0
- package/src/models/operations/auditlogdestinationupdate.ts +45 -0
- 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/index.ts +8 -0
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/searchweb.ts +3 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/auditlogdestinations.ts +172 -0
- package/src/sdk/sdk.ts +8 -0
- package/src/sdk/websearch.ts +3 -3
|
@@ -46,6 +46,11 @@ export * from "./apikeybudgetscope.js";
|
|
|
46
46
|
export * from "./apikeybudgetscoperestresponse.js";
|
|
47
47
|
export * from "./apikeyrestresponse.js";
|
|
48
48
|
export * from "./audiocontentpartschema.js";
|
|
49
|
+
export * from "./auditlogdelivery.js";
|
|
50
|
+
export * from "./auditlogdeliverykind.js";
|
|
51
|
+
export * from "./auditlogdeliverystatus.js";
|
|
52
|
+
export * from "./auditlogdestination.js";
|
|
53
|
+
export * from "./auditlogdestinationstatus.js";
|
|
49
54
|
export * from "./autorouterconfig.js";
|
|
50
55
|
export * from "./autorouterv2config.js";
|
|
51
56
|
export * from "./autorouterv2creatorconfig.js";
|
|
@@ -109,6 +114,8 @@ export * from "./createagentresponse.js";
|
|
|
109
114
|
export * from "./createalertrequest.js";
|
|
110
115
|
export * from "./createalertresponse.js";
|
|
111
116
|
export * from "./createannotationqueuerequest.js";
|
|
117
|
+
export * from "./createauditlogdestinationrequest.js";
|
|
118
|
+
export * from "./createauditlogdestinationresponse.js";
|
|
112
119
|
export * from "./createbudgetrequest.js";
|
|
113
120
|
export * from "./createbudgetresponse.js";
|
|
114
121
|
export * from "./createdatasetrequest.js";
|
|
@@ -175,6 +182,7 @@ export * from "./datasourcesservicepreviewchunksrequest.js";
|
|
|
175
182
|
export * from "./datasourcesservicepreviewchunksresponse.js";
|
|
176
183
|
export * from "./datasourcesserviceupdaterequest.js";
|
|
177
184
|
export * from "./deletealertresponse.js";
|
|
185
|
+
export * from "./deleteauditlogdestinationresponse.js";
|
|
178
186
|
export * from "./deletebudgetresponse.js";
|
|
179
187
|
export * from "./deletedatapointsrequest.js";
|
|
180
188
|
export * from "./deleteenvironmentresponse.js";
|
|
@@ -203,6 +211,7 @@ export * from "./detectresponse.js";
|
|
|
203
211
|
export * from "./domain.js";
|
|
204
212
|
export * from "./domainverification.js";
|
|
205
213
|
export * from "./domainverificationstatus.js";
|
|
214
|
+
export * from "./effectiveuserpermissions.js";
|
|
206
215
|
export * from "./embeddingcacheconfig.js";
|
|
207
216
|
export * from "./embeddingcontactparams.js";
|
|
208
217
|
export * from "./embeddingdimensionsupport.js";
|
|
@@ -255,6 +264,7 @@ export * from "./functiontoolinput.js";
|
|
|
255
264
|
export * from "./generatewebhooksecretresponse.js";
|
|
256
265
|
export * from "./getagentresponse.js";
|
|
257
266
|
export * from "./getalertresponse.js";
|
|
267
|
+
export * from "./getauditlogdestinationresponse.js";
|
|
258
268
|
export * from "./getbudgetresponse.js";
|
|
259
269
|
export * from "./getenvironmentresponse.js";
|
|
260
270
|
export * from "./getexternalagentresponse.js";
|
|
@@ -327,6 +337,8 @@ export * from "./listalerttriggereventsresponse.js";
|
|
|
327
337
|
export * from "./listalerttriggersresponse.js";
|
|
328
338
|
export * from "./listannotationqueueitemsresponse.js";
|
|
329
339
|
export * from "./listannotationqueuesresponse.js";
|
|
340
|
+
export * from "./listauditlogdeliveriesresponse.js";
|
|
341
|
+
export * from "./listauditlogdestinationsresponse.js";
|
|
330
342
|
export * from "./listbudgetsresponse.js";
|
|
331
343
|
export * from "./listdatapointsresponse.js";
|
|
332
344
|
export * from "./listdatasetsresponse.js";
|
|
@@ -524,6 +536,8 @@ export * from "./refreshwikirequest.js";
|
|
|
524
536
|
export * from "./refreshwikiresponse.js";
|
|
525
537
|
export * from "./refusalpartschema.js";
|
|
526
538
|
export * from "./removeannotationqueueitemsrequest.js";
|
|
539
|
+
export * from "./replayauditlogdeliveriesrequest.js";
|
|
540
|
+
export * from "./replayauditlogdeliveriesresponse.js";
|
|
527
541
|
export * from "./requestlimit.js";
|
|
528
542
|
export * from "./requestprojectscope.js";
|
|
529
543
|
export * from "./rerankconfig.js";
|
|
@@ -607,6 +621,7 @@ export * from "./retrieveidentityresponse.js";
|
|
|
607
621
|
export * from "./retrieveknowledgebasestoolinput.js";
|
|
608
622
|
export * from "./retrievememorystorestoolinput.js";
|
|
609
623
|
export * from "./reviewoutcome.js";
|
|
624
|
+
export * from "./rotateauditlogdestinationsecretresponse.js";
|
|
610
625
|
export * from "./routingrule.js";
|
|
611
626
|
export * from "./routingrulecacheconfig.js";
|
|
612
627
|
export * from "./routingruleexpression.js";
|
|
@@ -666,6 +681,7 @@ export * from "./telemetryrow.js";
|
|
|
666
681
|
export * from "./telemetrysource.js";
|
|
667
682
|
export * from "./telemetrysourcecapability.js";
|
|
668
683
|
export * from "./telemetryvaluecardinality.js";
|
|
684
|
+
export * from "./testauditlogdestinationresponse.js";
|
|
669
685
|
export * from "./testexternalagentconnectionrequest.js";
|
|
670
686
|
export * from "./testexternalagentconnectionresponse.js";
|
|
671
687
|
export * from "./testmcpservertoolrequest.js";
|
|
@@ -712,6 +728,8 @@ export * from "./traceusage.js";
|
|
|
712
728
|
export * from "./updatealertrequest.js";
|
|
713
729
|
export * from "./updatealertresponse.js";
|
|
714
730
|
export * from "./updateannotationqueuerequest.js";
|
|
731
|
+
export * from "./updateauditlogdestinationrequest.js";
|
|
732
|
+
export * from "./updateauditlogdestinationresponse.js";
|
|
715
733
|
export * from "./updatebudgetrequest.js";
|
|
716
734
|
export * from "./updatebudgetresponse.js";
|
|
717
735
|
export * from "./updatedatapointrequest.js";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AuditLogDelivery,
|
|
12
|
+
AuditLogDelivery$inboundSchema,
|
|
13
|
+
} from "./auditlogdelivery.js";
|
|
14
|
+
|
|
15
|
+
export type ListAuditLogDeliveriesResponse = {
|
|
16
|
+
object: string;
|
|
17
|
+
data: Array<AuditLogDelivery>;
|
|
18
|
+
hasMore: boolean;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ListAuditLogDeliveriesResponse$inboundSchema: z.ZodType<
|
|
23
|
+
ListAuditLogDeliveriesResponse,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
object: z.string(),
|
|
28
|
+
data: z.array(AuditLogDelivery$inboundSchema),
|
|
29
|
+
has_more: z.boolean(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"has_more": "hasMore",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function listAuditLogDeliveriesResponseFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<ListAuditLogDeliveriesResponse, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => ListAuditLogDeliveriesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'ListAuditLogDeliveriesResponse' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AuditLogDestination,
|
|
12
|
+
AuditLogDestination$inboundSchema,
|
|
13
|
+
} from "./auditlogdestination.js";
|
|
14
|
+
|
|
15
|
+
export type ListAuditLogDestinationsResponse = {
|
|
16
|
+
object: string;
|
|
17
|
+
data: Array<AuditLogDestination>;
|
|
18
|
+
hasMore: boolean;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ListAuditLogDestinationsResponse$inboundSchema: z.ZodType<
|
|
23
|
+
ListAuditLogDestinationsResponse,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
object: z.string(),
|
|
28
|
+
data: z.array(AuditLogDestination$inboundSchema),
|
|
29
|
+
has_more: z.boolean(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"has_more": "hasMore",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function listAuditLogDestinationsResponseFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<ListAuditLogDestinationsResponse, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => ListAuditLogDestinationsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'ListAuditLogDestinationsResponse' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01m57ntt13n9k451sa9nhqmb4n"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type ReplayAuditLogDeliveriesRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Required. Start of the window (inclusive).
|
|
10
|
+
*/
|
|
11
|
+
from: Date;
|
|
12
|
+
/**
|
|
13
|
+
* Required. End of the window (exclusive). The window may span at most 31 days.
|
|
14
|
+
*/
|
|
15
|
+
to: Date;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type ReplayAuditLogDeliveriesRequest$Outbound = {
|
|
20
|
+
from: string;
|
|
21
|
+
to: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ReplayAuditLogDeliveriesRequest$outboundSchema: z.ZodType<
|
|
26
|
+
ReplayAuditLogDeliveriesRequest$Outbound,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
ReplayAuditLogDeliveriesRequest
|
|
29
|
+
> = z.object({
|
|
30
|
+
from: z.date().transform(v => v.toISOString()),
|
|
31
|
+
to: z.date().transform(v => v.toISOString()),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function replayAuditLogDeliveriesRequestToJSON(
|
|
35
|
+
replayAuditLogDeliveriesRequest: ReplayAuditLogDeliveriesRequest,
|
|
36
|
+
): string {
|
|
37
|
+
return JSON.stringify(
|
|
38
|
+
ReplayAuditLogDeliveriesRequest$outboundSchema.parse(
|
|
39
|
+
replayAuditLogDeliveriesRequest,
|
|
40
|
+
),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ReplayAuditLogDeliveriesResponse = {
|
|
12
|
+
replayId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Number of deliveries queued by this replay.
|
|
15
|
+
*/
|
|
16
|
+
queued: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const ReplayAuditLogDeliveriesResponse$inboundSchema: z.ZodType<
|
|
21
|
+
ReplayAuditLogDeliveriesResponse,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
replay_id: z.string(),
|
|
26
|
+
queued: z.number().int(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"replay_id": "replayId",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function replayAuditLogDeliveriesResponseFromJSON(
|
|
34
|
+
jsonString: string,
|
|
35
|
+
): SafeParseResult<ReplayAuditLogDeliveriesResponse, SDKValidationError> {
|
|
36
|
+
return safeParse(
|
|
37
|
+
jsonString,
|
|
38
|
+
(x) => ReplayAuditLogDeliveriesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
39
|
+
`Failed to parse 'ReplayAuditLogDeliveriesResponse' from JSON`,
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AuditLogDestination,
|
|
12
|
+
AuditLogDestination$inboundSchema,
|
|
13
|
+
} from "./auditlogdestination.js";
|
|
14
|
+
|
|
15
|
+
export type RotateAuditLogDestinationSecretResponse = {
|
|
16
|
+
destination: AuditLogDestination;
|
|
17
|
+
/**
|
|
18
|
+
* New signing secret. Shown only in this response; store it securely.
|
|
19
|
+
*/
|
|
20
|
+
signingSecret: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const RotateAuditLogDestinationSecretResponse$inboundSchema: z.ZodType<
|
|
25
|
+
RotateAuditLogDestinationSecretResponse,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
destination: AuditLogDestination$inboundSchema,
|
|
30
|
+
signing_secret: z.string(),
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"signing_secret": "signingSecret",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function rotateAuditLogDestinationSecretResponseFromJSON(
|
|
38
|
+
jsonString: string,
|
|
39
|
+
): SafeParseResult<
|
|
40
|
+
RotateAuditLogDestinationSecretResponse,
|
|
41
|
+
SDKValidationError
|
|
42
|
+
> {
|
|
43
|
+
return safeParse(
|
|
44
|
+
jsonString,
|
|
45
|
+
(x) =>
|
|
46
|
+
RotateAuditLogDestinationSecretResponse$inboundSchema.parse(
|
|
47
|
+
JSON.parse(x),
|
|
48
|
+
),
|
|
49
|
+
`Failed to parse 'RotateAuditLogDestinationSecretResponse' from JSON`,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AuditLogDelivery,
|
|
11
|
+
AuditLogDelivery$inboundSchema,
|
|
12
|
+
} from "./auditlogdelivery.js";
|
|
13
|
+
|
|
14
|
+
export type TestAuditLogDestinationResponse = {
|
|
15
|
+
delivery: AuditLogDelivery;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const TestAuditLogDestinationResponse$inboundSchema: z.ZodType<
|
|
20
|
+
TestAuditLogDestinationResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
delivery: AuditLogDelivery$inboundSchema,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function testAuditLogDestinationResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<TestAuditLogDestinationResponse, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => TestAuditLogDestinationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'TestAuditLogDestinationResponse' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
AuditLogDestinationStatus,
|
|
9
|
+
AuditLogDestinationStatus$outboundSchema,
|
|
10
|
+
} from "./auditlogdestinationstatus.js";
|
|
11
|
+
|
|
12
|
+
export type UpdateAuditLogDestinationRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* Optional. New destination name.
|
|
15
|
+
*/
|
|
16
|
+
displayName?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Optional. New description. An empty string clears it.
|
|
19
|
+
*/
|
|
20
|
+
description?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Optional. New HTTPS endpoint. Accepted only while the destination is paused.
|
|
23
|
+
*/
|
|
24
|
+
url?: string | undefined;
|
|
25
|
+
status?: AuditLogDestinationStatus | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type UpdateAuditLogDestinationRequest$Outbound = {
|
|
30
|
+
display_name?: string | undefined;
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
url?: string | undefined;
|
|
33
|
+
status?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const UpdateAuditLogDestinationRequest$outboundSchema: z.ZodType<
|
|
38
|
+
UpdateAuditLogDestinationRequest$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
UpdateAuditLogDestinationRequest
|
|
41
|
+
> = z.object({
|
|
42
|
+
displayName: z.string().optional(),
|
|
43
|
+
description: z.string().optional(),
|
|
44
|
+
url: z.string().optional(),
|
|
45
|
+
status: AuditLogDestinationStatus$outboundSchema.optional(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
displayName: "display_name",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function updateAuditLogDestinationRequestToJSON(
|
|
53
|
+
updateAuditLogDestinationRequest: UpdateAuditLogDestinationRequest,
|
|
54
|
+
): string {
|
|
55
|
+
return JSON.stringify(
|
|
56
|
+
UpdateAuditLogDestinationRequest$outboundSchema.parse(
|
|
57
|
+
updateAuditLogDestinationRequest,
|
|
58
|
+
),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AuditLogDestination,
|
|
11
|
+
AuditLogDestination$inboundSchema,
|
|
12
|
+
} from "./auditlogdestination.js";
|
|
13
|
+
|
|
14
|
+
export type UpdateAuditLogDestinationResponse = {
|
|
15
|
+
destination: AuditLogDestination;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const UpdateAuditLogDestinationResponse$inboundSchema: z.ZodType<
|
|
20
|
+
UpdateAuditLogDestinationResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
destination: AuditLogDestination$inboundSchema,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function updateAuditLogDestinationResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<UpdateAuditLogDestinationResponse, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => UpdateAuditLogDestinationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'UpdateAuditLogDestinationResponse' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -3,13 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
EffectiveUserPermissions,
|
|
12
|
+
EffectiveUserPermissions$inboundSchema,
|
|
13
|
+
} from "./effectiveuserpermissions.js";
|
|
9
14
|
|
|
10
15
|
export type WorkspaceCapabilities = {
|
|
11
16
|
roles?: Array<string> | undefined;
|
|
12
17
|
projects?: Array<string> | undefined;
|
|
18
|
+
userPermissions?: EffectiveUserPermissions | undefined;
|
|
13
19
|
};
|
|
14
20
|
|
|
15
21
|
/** @internal */
|
|
@@ -20,6 +26,11 @@ export const WorkspaceCapabilities$inboundSchema: z.ZodType<
|
|
|
20
26
|
> = z.object({
|
|
21
27
|
roles: z.array(z.string()).optional(),
|
|
22
28
|
projects: z.array(z.string()).optional(),
|
|
29
|
+
user_permissions: EffectiveUserPermissions$inboundSchema.optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"user_permissions": "userPermissions",
|
|
33
|
+
});
|
|
23
34
|
});
|
|
24
35
|
|
|
25
36
|
export function workspaceCapabilitiesFromJSON(
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type AuditLogDestinationDeleteRequest = {
|
|
9
|
+
destinationId: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type AuditLogDestinationDeleteRequest$Outbound = {
|
|
14
|
+
destination_id: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const AuditLogDestinationDeleteRequest$outboundSchema: z.ZodType<
|
|
19
|
+
AuditLogDestinationDeleteRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
AuditLogDestinationDeleteRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
destinationId: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
destinationId: "destination_id",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function auditLogDestinationDeleteRequestToJSON(
|
|
31
|
+
auditLogDestinationDeleteRequest: AuditLogDestinationDeleteRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
AuditLogDestinationDeleteRequest$outboundSchema.parse(
|
|
35
|
+
auditLogDestinationDeleteRequest,
|
|
36
|
+
),
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type AuditLogDestinationGetRequest = {
|
|
9
|
+
destinationId: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type AuditLogDestinationGetRequest$Outbound = {
|
|
14
|
+
destination_id: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const AuditLogDestinationGetRequest$outboundSchema: z.ZodType<
|
|
19
|
+
AuditLogDestinationGetRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
AuditLogDestinationGetRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
destinationId: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
destinationId: "destination_id",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function auditLogDestinationGetRequestToJSON(
|
|
31
|
+
auditLogDestinationGetRequest: AuditLogDestinationGetRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
AuditLogDestinationGetRequest$outboundSchema.parse(
|
|
35
|
+
auditLogDestinationGetRequest,
|
|
36
|
+
),
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -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
|
+
|
|
8
|
+
export type AuditLogDestinationListRequest = {
|
|
9
|
+
limit?: number | undefined;
|
|
10
|
+
startingAfter?: string | undefined;
|
|
11
|
+
endingBefore?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type AuditLogDestinationListRequest$Outbound = {
|
|
16
|
+
limit?: number | undefined;
|
|
17
|
+
starting_after?: string | undefined;
|
|
18
|
+
ending_before?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const AuditLogDestinationListRequest$outboundSchema: z.ZodType<
|
|
23
|
+
AuditLogDestinationListRequest$Outbound,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
AuditLogDestinationListRequest
|
|
26
|
+
> = z.object({
|
|
27
|
+
limit: z.number().int().optional(),
|
|
28
|
+
startingAfter: z.string().optional(),
|
|
29
|
+
endingBefore: z.string().optional(),
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
startingAfter: "starting_after",
|
|
33
|
+
endingBefore: "ending_before",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function auditLogDestinationListRequestToJSON(
|
|
38
|
+
auditLogDestinationListRequest: AuditLogDestinationListRequest,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
AuditLogDestinationListRequest$outboundSchema.parse(
|
|
42
|
+
auditLogDestinationListRequest,
|
|
43
|
+
),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as components from "../components/index.js";
|
|
8
|
+
|
|
9
|
+
export type AuditLogDestinationListDeliveriesRequest = {
|
|
10
|
+
destinationId: string;
|
|
11
|
+
limit?: number | undefined;
|
|
12
|
+
startingAfter?: string | undefined;
|
|
13
|
+
endingBefore?: string | undefined;
|
|
14
|
+
status?: Array<components.AuditLogDeliveryStatus> | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type AuditLogDestinationListDeliveriesRequest$Outbound = {
|
|
19
|
+
destination_id: string;
|
|
20
|
+
limit?: number | undefined;
|
|
21
|
+
starting_after?: string | undefined;
|
|
22
|
+
ending_before?: string | undefined;
|
|
23
|
+
status?: Array<string> | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const AuditLogDestinationListDeliveriesRequest$outboundSchema: z.ZodType<
|
|
28
|
+
AuditLogDestinationListDeliveriesRequest$Outbound,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
AuditLogDestinationListDeliveriesRequest
|
|
31
|
+
> = z.object({
|
|
32
|
+
destinationId: z.string(),
|
|
33
|
+
limit: z.number().int().optional(),
|
|
34
|
+
startingAfter: z.string().optional(),
|
|
35
|
+
endingBefore: z.string().optional(),
|
|
36
|
+
status: z.array(components.AuditLogDeliveryStatus$outboundSchema).optional(),
|
|
37
|
+
}).transform((v) => {
|
|
38
|
+
return remap$(v, {
|
|
39
|
+
destinationId: "destination_id",
|
|
40
|
+
startingAfter: "starting_after",
|
|
41
|
+
endingBefore: "ending_before",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function auditLogDestinationListDeliveriesRequestToJSON(
|
|
46
|
+
auditLogDestinationListDeliveriesRequest:
|
|
47
|
+
AuditLogDestinationListDeliveriesRequest,
|
|
48
|
+
): string {
|
|
49
|
+
return JSON.stringify(
|
|
50
|
+
AuditLogDestinationListDeliveriesRequest$outboundSchema.parse(
|
|
51
|
+
auditLogDestinationListDeliveriesRequest,
|
|
52
|
+
),
|
|
53
|
+
);
|
|
54
|
+
}
|