@orq-ai/node 4.15.0-rc.6 → 4.15.0-rc.7

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.
Files changed (228) hide show
  1. package/README.md +42 -28
  2. package/funcs/auditLogsQuery.d.ts +17 -0
  3. package/funcs/auditLogsQuery.d.ts.map +1 -0
  4. package/funcs/auditLogsQuery.js +115 -0
  5. package/funcs/auditLogsQuery.js.map +1 -0
  6. package/funcs/workspacesGet.d.ts +18 -0
  7. package/funcs/workspacesGet.d.ts.map +1 -0
  8. package/funcs/workspacesGet.js +121 -0
  9. package/funcs/workspacesGet.js.map +1 -0
  10. package/funcs/workspacesList.d.ts +18 -0
  11. package/funcs/workspacesList.d.ts.map +1 -0
  12. package/funcs/workspacesList.js +121 -0
  13. package/funcs/workspacesList.js.map +1 -0
  14. package/funcs/workspacesUpdate.d.ts +18 -0
  15. package/funcs/workspacesUpdate.d.ts.map +1 -0
  16. package/funcs/workspacesUpdate.js +124 -0
  17. package/funcs/workspacesUpdate.js.map +1 -0
  18. package/jsr.json +1 -1
  19. package/lib/config.d.ts +3 -3
  20. package/lib/config.js +3 -3
  21. package/lib/config.js.map +1 -1
  22. package/models/components/auditlog.d.ts +60 -0
  23. package/models/components/auditlog.d.ts.map +1 -0
  24. package/models/components/auditlog.js +83 -0
  25. package/models/components/auditlog.js.map +1 -0
  26. package/models/components/auditlogfilter.d.ts +33 -0
  27. package/models/components/auditlogfilter.d.ts.map +1 -0
  28. package/models/components/auditlogfilter.js +52 -0
  29. package/models/components/auditlogfilter.js.map +1 -0
  30. package/models/components/auditlogfilterquery.d.ts +29 -0
  31. package/models/components/auditlogfilterquery.d.ts.map +1 -0
  32. package/models/components/auditlogfilterquery.js +52 -0
  33. package/models/components/auditlogfilterquery.js.map +1 -0
  34. package/models/components/auditlogpagination.d.ts +28 -0
  35. package/models/components/auditlogpagination.d.ts.map +1 -0
  36. package/models/components/auditlogpagination.js +57 -0
  37. package/models/components/auditlogpagination.js.map +1 -0
  38. package/models/components/auditlogsort.d.ts +23 -0
  39. package/models/components/auditlogsort.d.ts.map +1 -0
  40. package/models/components/{policyprofileidlist.js → auditlogsort.js} +8 -7
  41. package/models/components/auditlogsort.js.map +1 -0
  42. package/models/components/budgetmatch.d.ts +1 -7
  43. package/models/components/budgetmatch.d.ts.map +1 -1
  44. package/models/components/budgetmatch.js.map +1 -1
  45. package/models/components/budgetscope.d.ts +1 -14
  46. package/models/components/budgetscope.d.ts.map +1 -1
  47. package/models/components/budgetscope.js +0 -3
  48. package/models/components/budgetscope.js.map +1 -1
  49. package/models/components/budgetscopekind.d.ts +0 -1
  50. package/models/components/budgetscopekind.d.ts.map +1 -1
  51. package/models/components/budgetscopekind.js +0 -1
  52. package/models/components/budgetscopekind.js.map +1 -1
  53. package/models/components/budgetscoperestresponse.d.ts +1 -13
  54. package/models/components/budgetscoperestresponse.d.ts.map +1 -1
  55. package/models/components/budgetscoperestresponse.js +0 -2
  56. package/models/components/budgetscoperestresponse.js.map +1 -1
  57. package/models/components/getworkspaceresponse.d.ts +11 -0
  58. package/models/components/getworkspaceresponse.d.ts.map +1 -0
  59. package/models/components/{factorybudgetscoperestresponse.js → getworkspaceresponse.js} +8 -7
  60. package/models/components/getworkspaceresponse.js.map +1 -0
  61. package/models/components/index.d.ts +16 -3
  62. package/models/components/index.d.ts.map +1 -1
  63. package/models/components/index.js +16 -3
  64. package/models/components/index.js.map +1 -1
  65. package/models/components/listworkspacesresponse.d.ts +13 -0
  66. package/models/components/listworkspacesresponse.d.ts.map +1 -0
  67. package/models/components/{factorybudgetscope.js → listworkspacesresponse.js} +11 -20
  68. package/models/components/listworkspacesresponse.js.map +1 -0
  69. package/models/components/queryauditlogsrequest.d.ts +31 -0
  70. package/models/components/queryauditlogsrequest.d.ts.map +1 -0
  71. package/models/components/queryauditlogsrequest.js +54 -0
  72. package/models/components/queryauditlogsrequest.js.map +1 -0
  73. package/models/components/queryauditlogsresponse.d.ts +25 -0
  74. package/models/components/queryauditlogsresponse.d.ts.map +1 -0
  75. package/models/components/queryauditlogsresponse.js +60 -0
  76. package/models/components/queryauditlogsresponse.js.map +1 -0
  77. package/models/components/reasoningpart.js +1 -1
  78. package/models/components/updateworkspacerequest.d.ts +29 -0
  79. package/models/components/updateworkspacerequest.d.ts.map +1 -0
  80. package/models/components/updateworkspacerequest.js +69 -0
  81. package/models/components/updateworkspacerequest.js.map +1 -0
  82. package/models/components/updateworkspaceresponse.d.ts +11 -0
  83. package/models/components/updateworkspaceresponse.d.ts.map +1 -0
  84. package/models/components/updateworkspaceresponse.js +51 -0
  85. package/models/components/updateworkspaceresponse.js.map +1 -0
  86. package/models/components/updateworkspacesettingsrequest.d.ts +0 -3
  87. package/models/components/updateworkspacesettingsrequest.d.ts.map +1 -1
  88. package/models/components/updateworkspacesettingsrequest.js +0 -3
  89. package/models/components/updateworkspacesettingsrequest.js.map +1 -1
  90. package/models/components/value.d.ts +13 -0
  91. package/models/components/value.d.ts.map +1 -0
  92. package/models/components/value.js +50 -0
  93. package/models/components/value.js.map +1 -0
  94. package/models/components/workspace.d.ts +33 -0
  95. package/models/components/workspace.d.ts.map +1 -0
  96. package/models/components/workspace.js +88 -0
  97. package/models/components/workspace.js.map +1 -0
  98. package/models/components/workspacecapabilities.d.ts +11 -0
  99. package/models/components/workspacecapabilities.d.ts.map +1 -0
  100. package/models/components/workspacecapabilities.js +51 -0
  101. package/models/components/workspacecapabilities.js.map +1 -0
  102. package/models/components/workspaceorganization.d.ts +11 -0
  103. package/models/components/workspaceorganization.d.ts.map +1 -0
  104. package/models/components/workspaceorganization.js +51 -0
  105. package/models/components/workspaceorganization.js.map +1 -0
  106. package/models/components/workspacesettings.d.ts +0 -1
  107. package/models/components/workspacesettings.d.ts.map +1 -1
  108. package/models/components/workspacesettings.js +0 -2
  109. package/models/components/workspacesettings.js.map +1 -1
  110. package/models/components/workspacesettingsfields.d.ts +39 -0
  111. package/models/components/workspacesettingsfields.d.ts.map +1 -0
  112. package/models/components/workspacesettingsfields.js +99 -0
  113. package/models/components/workspacesettingsfields.js.map +1 -0
  114. package/models/operations/createdataset.js +1 -1
  115. package/models/operations/createdatasetitem.js +5 -5
  116. package/models/operations/createtool.js +4 -4
  117. package/models/operations/getalltools.js +4 -4
  118. package/models/operations/getv2humanevalsets.js +2 -2
  119. package/models/operations/getv2humanevalsetsid.js +2 -2
  120. package/models/operations/index.d.ts +3 -0
  121. package/models/operations/index.d.ts.map +1 -1
  122. package/models/operations/index.js +3 -0
  123. package/models/operations/index.js.map +1 -1
  124. package/models/operations/listdatasetdatapoints.js +5 -5
  125. package/models/operations/listdatasets.js +1 -1
  126. package/models/operations/patchv2humanevalsetsid.js +2 -2
  127. package/models/operations/postv2feedbackevaluation.js +4 -4
  128. package/models/operations/postv2humanevalsets.js +2 -2
  129. package/models/operations/retrievedatapoint.js +5 -5
  130. package/models/operations/retrievedataset.js +1 -1
  131. package/models/operations/retrievetool.js +4 -4
  132. package/models/operations/runagent.js +1 -1
  133. package/models/operations/streamrunagent.js +1 -1
  134. package/models/operations/updatedatapoint.js +5 -5
  135. package/models/operations/updatedataset.js +1 -1
  136. package/models/operations/updatetool.js +4 -4
  137. package/models/operations/workspaceget.d.ts +12 -0
  138. package/models/operations/workspaceget.d.ts.map +1 -0
  139. package/models/operations/workspaceget.js +49 -0
  140. package/models/operations/workspaceget.js.map +1 -0
  141. package/models/operations/workspacelist.d.ts +16 -0
  142. package/models/operations/workspacelist.d.ts.map +1 -0
  143. package/models/operations/workspacelist.js +57 -0
  144. package/models/operations/workspacelist.js.map +1 -0
  145. package/models/operations/workspaceupdate.d.ts +15 -0
  146. package/models/operations/workspaceupdate.d.ts.map +1 -0
  147. package/models/operations/workspaceupdate.js +56 -0
  148. package/models/operations/workspaceupdate.js.map +1 -0
  149. package/package.json +1 -1
  150. package/sdk/auditlogs.d.ts +12 -0
  151. package/sdk/auditlogs.d.ts.map +1 -0
  152. package/sdk/auditlogs.js +22 -0
  153. package/sdk/auditlogs.js.map +1 -0
  154. package/sdk/sdk.d.ts +6 -0
  155. package/sdk/sdk.d.ts.map +1 -1
  156. package/sdk/sdk.js +8 -0
  157. package/sdk/sdk.js.map +1 -1
  158. package/sdk/workspaces.d.ts +27 -0
  159. package/sdk/workspaces.d.ts.map +1 -0
  160. package/sdk/workspaces.js +42 -0
  161. package/sdk/workspaces.js.map +1 -0
  162. package/src/funcs/auditLogsQuery.ts +162 -0
  163. package/src/funcs/workspacesGet.ts +168 -0
  164. package/src/funcs/workspacesList.ts +170 -0
  165. package/src/funcs/workspacesUpdate.ts +171 -0
  166. package/src/lib/config.ts +3 -3
  167. package/src/models/components/auditlog.ts +122 -0
  168. package/src/models/components/auditlogfilter.ts +51 -0
  169. package/src/models/components/auditlogfilterquery.ts +54 -0
  170. package/src/models/components/auditlogpagination.ts +55 -0
  171. package/src/models/components/auditlogsort.ts +39 -0
  172. package/src/models/components/budgetmatch.ts +1 -7
  173. package/src/models/components/budgetscope.ts +1 -21
  174. package/src/models/components/budgetscopekind.ts +0 -1
  175. package/src/models/components/budgetscoperestresponse.ts +1 -17
  176. package/src/models/components/getworkspaceresponse.ts +32 -0
  177. package/src/models/components/index.ts +16 -3
  178. package/src/models/components/listworkspacesresponse.ts +41 -0
  179. package/src/models/components/queryauditlogsrequest.ts +64 -0
  180. package/src/models/components/queryauditlogsresponse.ts +55 -0
  181. package/src/models/components/reasoningpart.ts +1 -1
  182. package/src/models/components/updateworkspacerequest.ts +81 -0
  183. package/src/models/components/updateworkspaceresponse.ts +32 -0
  184. package/src/models/components/updateworkspacesettingsrequest.ts +0 -9
  185. package/src/models/components/value.ts +20 -0
  186. package/src/models/components/workspace.ts +116 -0
  187. package/src/models/components/workspacecapabilities.ts +33 -0
  188. package/src/models/components/workspaceorganization.ts +33 -0
  189. package/src/models/components/workspacesettings.ts +0 -3
  190. package/src/models/components/workspacesettingsfields.ts +135 -0
  191. package/src/models/operations/createdataset.ts +1 -1
  192. package/src/models/operations/createdatasetitem.ts +5 -5
  193. package/src/models/operations/createtool.ts +4 -4
  194. package/src/models/operations/getalltools.ts +4 -4
  195. package/src/models/operations/getv2humanevalsets.ts +2 -2
  196. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  197. package/src/models/operations/index.ts +3 -0
  198. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  199. package/src/models/operations/listdatasets.ts +1 -1
  200. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  201. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  202. package/src/models/operations/postv2humanevalsets.ts +2 -2
  203. package/src/models/operations/retrievedatapoint.ts +5 -5
  204. package/src/models/operations/retrievedataset.ts +1 -1
  205. package/src/models/operations/retrievetool.ts +4 -4
  206. package/src/models/operations/runagent.ts +1 -1
  207. package/src/models/operations/streamrunagent.ts +1 -1
  208. package/src/models/operations/updatedatapoint.ts +5 -5
  209. package/src/models/operations/updatedataset.ts +1 -1
  210. package/src/models/operations/updatetool.ts +4 -4
  211. package/src/models/operations/workspaceget.ts +31 -0
  212. package/src/models/operations/workspacelist.ts +43 -0
  213. package/src/models/operations/workspaceupdate.ts +40 -0
  214. package/src/sdk/auditlogs.ts +27 -0
  215. package/src/sdk/sdk.ts +12 -0
  216. package/src/sdk/workspaces.ts +64 -0
  217. package/models/components/factorybudgetscope.d.ts +0 -23
  218. package/models/components/factorybudgetscope.d.ts.map +0 -1
  219. package/models/components/factorybudgetscope.js.map +0 -1
  220. package/models/components/factorybudgetscoperestresponse.d.ts +0 -16
  221. package/models/components/factorybudgetscoperestresponse.d.ts.map +0 -1
  222. package/models/components/factorybudgetscoperestresponse.js.map +0 -1
  223. package/models/components/policyprofileidlist.d.ts +0 -12
  224. package/models/components/policyprofileidlist.d.ts.map +0 -1
  225. package/models/components/policyprofileidlist.js.map +0 -1
  226. package/src/models/components/factorybudgetscope.ts +0 -66
  227. package/src/models/components/factorybudgetscoperestresponse.ts +0 -37
  228. package/src/models/components/policyprofileidlist.ts +0 -31
@@ -13,12 +13,6 @@ import {
13
13
  ApiKeyBudgetScope$Outbound,
14
14
  ApiKeyBudgetScope$outboundSchema,
15
15
  } from "./apikeybudgetscope.js";
16
- import {
17
- FactoryBudgetScope,
18
- FactoryBudgetScope$inboundSchema,
19
- FactoryBudgetScope$Outbound,
20
- FactoryBudgetScope$outboundSchema,
21
- } from "./factorybudgetscope.js";
22
16
  import {
23
17
  IdentityBudgetScope,
24
18
  IdentityBudgetScope$inboundSchema,
@@ -51,11 +45,7 @@ import {
51
45
  } from "./workspacebudgetscope.js";
52
46
 
53
47
  /**
54
- * BudgetScope is a closed oneof. Exactly one variant must be set. The
55
- *
56
- * @remarks
57
- * variants are ordered by enforcement precedence (most specific to
58
- * most general) and mirror the BudgetScopeKind filter enum.
48
+ * Closed oneof of workspace, project, identity, api_key, provider, or model. Exactly one variant must be set. Variants are ordered by enforcement precedence (most specific to most general).
59
49
  */
60
50
  export type BudgetScope = {
61
51
  /**
@@ -95,13 +85,6 @@ export type BudgetScope = {
95
85
  * models), rather than an internal identifier.
96
86
  */
97
87
  model?: ModelBudgetScope | undefined;
98
- /**
99
- * Per-factory cap. Matches requests whose api key carries the label
100
- *
101
- * @remarks
102
- * `factory=<factory_id>` (keys minted for agent sessions of that factory).
103
- */
104
- factory?: FactoryBudgetScope | undefined;
105
88
  };
106
89
 
107
90
  /** @internal */
@@ -116,7 +99,6 @@ export const BudgetScope$inboundSchema: z.ZodType<
116
99
  api_key: ApiKeyBudgetScope$inboundSchema.optional(),
117
100
  provider: ProviderBudgetScope$inboundSchema.optional(),
118
101
  model: ModelBudgetScope$inboundSchema.optional(),
119
- factory: FactoryBudgetScope$inboundSchema.optional(),
120
102
  }).transform((v) => {
121
103
  return remap$(v, {
122
104
  "api_key": "apiKey",
@@ -130,7 +112,6 @@ export type BudgetScope$Outbound = {
130
112
  api_key?: ApiKeyBudgetScope$Outbound | undefined;
131
113
  provider?: ProviderBudgetScope$Outbound | undefined;
132
114
  model?: ModelBudgetScope$Outbound | undefined;
133
- factory?: FactoryBudgetScope$Outbound | undefined;
134
115
  };
135
116
 
136
117
  /** @internal */
@@ -145,7 +126,6 @@ export const BudgetScope$outboundSchema: z.ZodType<
145
126
  apiKey: ApiKeyBudgetScope$outboundSchema.optional(),
146
127
  provider: ProviderBudgetScope$outboundSchema.optional(),
147
128
  model: ModelBudgetScope$outboundSchema.optional(),
148
- factory: FactoryBudgetScope$outboundSchema.optional(),
149
129
  }).transform((v) => {
150
130
  return remap$(v, {
151
131
  apiKey: "api_key",
@@ -13,7 +13,6 @@ export const BudgetScopeKind = {
13
13
  BudgetScopeKindApiKey: "BUDGET_SCOPE_KIND_API_KEY",
14
14
  BudgetScopeKindProvider: "BUDGET_SCOPE_KIND_PROVIDER",
15
15
  BudgetScopeKindModel: "BUDGET_SCOPE_KIND_MODEL",
16
- BudgetScopeKindFactory: "BUDGET_SCOPE_KIND_FACTORY",
17
16
  } as const;
18
17
  export type BudgetScopeKind = ClosedEnum<typeof BudgetScopeKind>;
19
18
 
@@ -10,10 +10,6 @@ import {
10
10
  ApiKeyBudgetScopeRestResponse,
11
11
  ApiKeyBudgetScopeRestResponse$inboundSchema,
12
12
  } from "./apikeybudgetscoperestresponse.js";
13
- import {
14
- FactoryBudgetScopeRestResponse,
15
- FactoryBudgetScopeRestResponse$inboundSchema,
16
- } from "./factorybudgetscoperestresponse.js";
17
13
  import {
18
14
  IdentityBudgetScopeRestResponse,
19
15
  IdentityBudgetScopeRestResponse$inboundSchema,
@@ -36,11 +32,7 @@ import {
36
32
  } from "./workspacebudgetscope.js";
37
33
 
38
34
  /**
39
- * BudgetScope is a closed oneof. Exactly one variant must be set. The
40
- *
41
- * @remarks
42
- * variants are ordered by enforcement precedence (most specific to
43
- * most general) and mirror the BudgetScopeKind filter enum.
35
+ * Closed oneof of workspace, project, identity, api_key, provider, or model. Exactly one variant must be set. Variants are ordered by enforcement precedence (most specific to most general).
44
36
  */
45
37
  export type BudgetScopeRestResponse = {
46
38
  /**
@@ -80,13 +72,6 @@ export type BudgetScopeRestResponse = {
80
72
  * models), rather than an internal identifier.
81
73
  */
82
74
  model?: ModelBudgetScopeRestResponse | undefined;
83
- /**
84
- * Per-factory cap. Matches requests whose api key carries the label
85
- *
86
- * @remarks
87
- * `factory=<factory_id>` (keys minted for agent sessions of that factory).
88
- */
89
- factory?: FactoryBudgetScopeRestResponse | undefined;
90
75
  };
91
76
 
92
77
  /** @internal */
@@ -101,7 +86,6 @@ export const BudgetScopeRestResponse$inboundSchema: z.ZodType<
101
86
  apiKey: ApiKeyBudgetScopeRestResponse$inboundSchema.optional(),
102
87
  provider: ProviderBudgetScope$inboundSchema.optional(),
103
88
  model: ModelBudgetScopeRestResponse$inboundSchema.optional(),
104
- factory: FactoryBudgetScopeRestResponse$inboundSchema.optional(),
105
89
  });
106
90
 
107
91
  export function budgetScopeRestResponseFromJSON(
@@ -0,0 +1,32 @@
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 { Workspace, Workspace$inboundSchema } from "./workspace.js";
10
+
11
+ export type GetWorkspaceResponse = {
12
+ workspace: Workspace;
13
+ };
14
+
15
+ /** @internal */
16
+ export const GetWorkspaceResponse$inboundSchema: z.ZodType<
17
+ GetWorkspaceResponse,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ workspace: Workspace$inboundSchema,
22
+ });
23
+
24
+ export function getWorkspaceResponseFromJSON(
25
+ jsonString: string,
26
+ ): SafeParseResult<GetWorkspaceResponse, SDKValidationError> {
27
+ return safeParse(
28
+ jsonString,
29
+ (x) => GetWorkspaceResponse$inboundSchema.parse(JSON.parse(x)),
30
+ `Failed to parse 'GetWorkspaceResponse' from JSON`,
31
+ );
32
+ }
@@ -46,6 +46,11 @@ export * from "./apikeyowner.js";
46
46
  export * from "./apikeyrestresponse.js";
47
47
  export * from "./apikeystatus.js";
48
48
  export * from "./audiocontentpartschema.js";
49
+ export * from "./auditlog.js";
50
+ export * from "./auditlogfilter.js";
51
+ export * from "./auditlogfilterquery.js";
52
+ export * from "./auditlogpagination.js";
53
+ export * from "./auditlogsort.js";
49
54
  export * from "./autorouterconfig.js";
50
55
  export * from "./autorouterv2config.js";
51
56
  export * from "./autorouterv2creatorconfig.js";
@@ -183,8 +188,6 @@ export * from "./extendedmessage.js";
183
188
  export * from "./facetgroup.js";
184
189
  export * from "./facetkey.js";
185
190
  export * from "./facetvalue.js";
186
- export * from "./factorybudgetscope.js";
187
- export * from "./factorybudgetscoperestresponse.js";
188
191
  export * from "./fallbackconfig.js";
189
192
  export * from "./fieldinfo.js";
190
193
  export * from "./file.js";
@@ -223,6 +226,7 @@ export * from "./getsmartrouterresponse.js";
223
226
  export * from "./gettraceresponse.js";
224
227
  export * from "./gettracespanresponse.js";
225
228
  export * from "./getuploadfileurlresponse.js";
229
+ export * from "./getworkspaceresponse.js";
226
230
  export * from "./getworkspacesettingsresponse.js";
227
231
  export * from "./googlesearchtoolinput.js";
228
232
  export * from "./guardrailrule.js";
@@ -294,6 +298,7 @@ export * from "./listtracefieldsresponse.js";
294
298
  export * from "./listtracelogsresponse.js";
295
299
  export * from "./listtracespansresponse.js";
296
300
  export * from "./listwebhooksresponse.js";
301
+ export * from "./listworkspacesresponse.js";
297
302
  export * from "./litellmmodel.js";
298
303
  export * from "./litellmmodelinfo.js";
299
304
  export * from "./litellmparams.js";
@@ -367,7 +372,6 @@ export * from "./piiredactionpluginauto.js";
367
372
  export * from "./piiredactionpluginen.js";
368
373
  export * from "./piiredactionpluginnl.js";
369
374
  export * from "./policy.js";
370
- export * from "./policyprofileidlist.js";
371
375
  export * from "./policyretryconfig.js";
372
376
  export * from "./price.js";
373
377
  export * from "./pricing.js";
@@ -391,6 +395,8 @@ export * from "./publicschedule.js";
391
395
  export * from "./publicscheduleerrordetail.js";
392
396
  export * from "./publicschedulepayload.js";
393
397
  export * from "./publicusage.js";
398
+ export * from "./queryauditlogsrequest.js";
399
+ export * from "./queryauditlogsresponse.js";
394
400
  export * from "./queryknowledgebasetoolinput.js";
395
401
  export * from "./querylogsrequest.js";
396
402
  export * from "./querylogsresponse.js";
@@ -602,11 +608,14 @@ export * from "./updateskillrequest.js";
602
608
  export * from "./updateskillresponse.js";
603
609
  export * from "./updatesmartrouterrequest.js";
604
610
  export * from "./updatesmartrouterresponse.js";
611
+ export * from "./updateworkspacerequest.js";
612
+ export * from "./updateworkspaceresponse.js";
605
613
  export * from "./updateworkspacesettingsrequest.js";
606
614
  export * from "./updateworkspacesettingsresponse.js";
607
615
  export * from "./uploadpostpolicy.js";
608
616
  export * from "./upsertchunk.js";
609
617
  export * from "./userowner.js";
618
+ export * from "./value.js";
610
619
  export * from "./verifydomainresponse.js";
611
620
  export * from "./vertexcapabilities.js";
612
621
  export * from "./vertexconfiguration.js";
@@ -616,6 +625,10 @@ export * from "./vertexparamrange.js";
616
625
  export * from "./vertexparamrangeint.js";
617
626
  export * from "./webhook.js";
618
627
  export * from "./webscrapertoolinput.js";
628
+ export * from "./workspace.js";
619
629
  export * from "./workspacebudgetscope.js";
630
+ export * from "./workspacecapabilities.js";
631
+ export * from "./workspaceorganization.js";
620
632
  export * from "./workspacesettings.js";
633
+ export * from "./workspacesettingsfields.js";
621
634
  export * from "./writememorystoretoolinput.js";
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import { Workspace, Workspace$inboundSchema } from "./workspace.js";
11
+
12
+ export type ListWorkspacesResponse = {
13
+ object: string;
14
+ data: Array<Workspace>;
15
+ hasMore: boolean;
16
+ };
17
+
18
+ /** @internal */
19
+ export const ListWorkspacesResponse$inboundSchema: z.ZodType<
20
+ ListWorkspacesResponse,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ object: z.string(),
25
+ data: z.array(Workspace$inboundSchema),
26
+ has_more: z.boolean(),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ "has_more": "hasMore",
30
+ });
31
+ });
32
+
33
+ export function listWorkspacesResponseFromJSON(
34
+ jsonString: string,
35
+ ): SafeParseResult<ListWorkspacesResponse, SDKValidationError> {
36
+ return safeParse(
37
+ jsonString,
38
+ (x) => ListWorkspacesResponse$inboundSchema.parse(JSON.parse(x)),
39
+ `Failed to parse 'ListWorkspacesResponse' from JSON`,
40
+ );
41
+ }
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import {
7
+ AuditLogFilterQuery,
8
+ AuditLogFilterQuery$Outbound,
9
+ AuditLogFilterQuery$outboundSchema,
10
+ } from "./auditlogfilterquery.js";
11
+ import {
12
+ AuditLogPagination,
13
+ AuditLogPagination$Outbound,
14
+ AuditLogPagination$outboundSchema,
15
+ } from "./auditlogpagination.js";
16
+ import {
17
+ AuditLogSort,
18
+ AuditLogSort$Outbound,
19
+ AuditLogSort$outboundSchema,
20
+ } from "./auditlogsort.js";
21
+
22
+ /**
23
+ * Request body for querying audit logs in the authenticated workspace.
24
+ */
25
+ export type QueryAuditLogsRequest = {
26
+ /**
27
+ * Search and advanced filters for querying audit logs.
28
+ */
29
+ filters: AuditLogFilterQuery;
30
+ /**
31
+ * Cursor pagination settings for audit log queries.
32
+ */
33
+ pagination: AuditLogPagination;
34
+ /**
35
+ * Sort expressions. Defaults to audit_log_id descending when omitted.
36
+ */
37
+ sorting?: Array<AuditLogSort> | undefined;
38
+ };
39
+
40
+ /** @internal */
41
+ export type QueryAuditLogsRequest$Outbound = {
42
+ filters: AuditLogFilterQuery$Outbound;
43
+ pagination: AuditLogPagination$Outbound;
44
+ sorting?: Array<AuditLogSort$Outbound> | undefined;
45
+ };
46
+
47
+ /** @internal */
48
+ export const QueryAuditLogsRequest$outboundSchema: z.ZodType<
49
+ QueryAuditLogsRequest$Outbound,
50
+ z.ZodTypeDef,
51
+ QueryAuditLogsRequest
52
+ > = z.object({
53
+ filters: AuditLogFilterQuery$outboundSchema,
54
+ pagination: AuditLogPagination$outboundSchema,
55
+ sorting: z.array(AuditLogSort$outboundSchema).optional(),
56
+ });
57
+
58
+ export function queryAuditLogsRequestToJSON(
59
+ queryAuditLogsRequest: QueryAuditLogsRequest,
60
+ ): string {
61
+ return JSON.stringify(
62
+ QueryAuditLogsRequest$outboundSchema.parse(queryAuditLogsRequest),
63
+ );
64
+ }
@@ -0,0 +1,55 @@
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 { AuditLog, AuditLog$inboundSchema } from "./auditlog.js";
11
+
12
+ /**
13
+ * Paginated audit log query result.
14
+ */
15
+ export type QueryAuditLogsResponse = {
16
+ /**
17
+ * Audit logs matching the query.
18
+ */
19
+ auditLogs: Array<AuditLog>;
20
+ /**
21
+ * Total number of audit logs matching the query before cursor pagination.
22
+ */
23
+ overallTotal: string;
24
+ /**
25
+ * Whether another page exists after the returned audit logs.
26
+ */
27
+ hasMore: boolean;
28
+ };
29
+
30
+ /** @internal */
31
+ export const QueryAuditLogsResponse$inboundSchema: z.ZodType<
32
+ QueryAuditLogsResponse,
33
+ z.ZodTypeDef,
34
+ unknown
35
+ > = z.object({
36
+ audit_logs: z.array(AuditLog$inboundSchema),
37
+ overall_total: z.string(),
38
+ has_more: z.boolean(),
39
+ }).transform((v) => {
40
+ return remap$(v, {
41
+ "audit_logs": "auditLogs",
42
+ "overall_total": "overallTotal",
43
+ "has_more": "hasMore",
44
+ });
45
+ });
46
+
47
+ export function queryAuditLogsResponseFromJSON(
48
+ jsonString: string,
49
+ ): SafeParseResult<QueryAuditLogsResponse, SDKValidationError> {
50
+ return safeParse(
51
+ jsonString,
52
+ (x) => QueryAuditLogsResponse$inboundSchema.parse(JSON.parse(x)),
53
+ `Failed to parse 'QueryAuditLogsResponse' from JSON`,
54
+ );
55
+ }
@@ -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("reasoning_01m11p4tnd3cjmc9n9kes1kkcr"),
43
+ _id: z.string().default("reasoning_01m1bbcbcy9fr05h24c4en1447"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -0,0 +1,81 @@
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
+ WorkspaceSettingsFields,
9
+ WorkspaceSettingsFields$Outbound,
10
+ WorkspaceSettingsFields$outboundSchema,
11
+ } from "./workspacesettingsfields.js";
12
+
13
+ export type UpdateWorkspaceRequestMetadata = {};
14
+
15
+ export type UpdateWorkspaceRequest = {
16
+ displayName?: string | undefined;
17
+ logoUrl?: string | undefined;
18
+ archived?: boolean | undefined;
19
+ settings?: WorkspaceSettingsFields | undefined;
20
+ metadata?: UpdateWorkspaceRequestMetadata | undefined;
21
+ enforceEnabledModels?: boolean | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export type UpdateWorkspaceRequestMetadata$Outbound = {};
26
+
27
+ /** @internal */
28
+ export const UpdateWorkspaceRequestMetadata$outboundSchema: z.ZodType<
29
+ UpdateWorkspaceRequestMetadata$Outbound,
30
+ z.ZodTypeDef,
31
+ UpdateWorkspaceRequestMetadata
32
+ > = z.object({});
33
+
34
+ export function updateWorkspaceRequestMetadataToJSON(
35
+ updateWorkspaceRequestMetadata: UpdateWorkspaceRequestMetadata,
36
+ ): string {
37
+ return JSON.stringify(
38
+ UpdateWorkspaceRequestMetadata$outboundSchema.parse(
39
+ updateWorkspaceRequestMetadata,
40
+ ),
41
+ );
42
+ }
43
+
44
+ /** @internal */
45
+ export type UpdateWorkspaceRequest$Outbound = {
46
+ display_name?: string | undefined;
47
+ logo_url?: string | undefined;
48
+ archived?: boolean | undefined;
49
+ settings?: WorkspaceSettingsFields$Outbound | undefined;
50
+ metadata?: UpdateWorkspaceRequestMetadata$Outbound | undefined;
51
+ enforce_enabled_models?: boolean | undefined;
52
+ };
53
+
54
+ /** @internal */
55
+ export const UpdateWorkspaceRequest$outboundSchema: z.ZodType<
56
+ UpdateWorkspaceRequest$Outbound,
57
+ z.ZodTypeDef,
58
+ UpdateWorkspaceRequest
59
+ > = z.object({
60
+ displayName: z.string().optional(),
61
+ logoUrl: z.string().optional(),
62
+ archived: z.boolean().optional(),
63
+ settings: WorkspaceSettingsFields$outboundSchema.optional(),
64
+ metadata: z.lazy(() => UpdateWorkspaceRequestMetadata$outboundSchema)
65
+ .optional(),
66
+ enforceEnabledModels: z.boolean().optional(),
67
+ }).transform((v) => {
68
+ return remap$(v, {
69
+ displayName: "display_name",
70
+ logoUrl: "logo_url",
71
+ enforceEnabledModels: "enforce_enabled_models",
72
+ });
73
+ });
74
+
75
+ export function updateWorkspaceRequestToJSON(
76
+ updateWorkspaceRequest: UpdateWorkspaceRequest,
77
+ ): string {
78
+ return JSON.stringify(
79
+ UpdateWorkspaceRequest$outboundSchema.parse(updateWorkspaceRequest),
80
+ );
81
+ }
@@ -0,0 +1,32 @@
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 { Workspace, Workspace$inboundSchema } from "./workspace.js";
10
+
11
+ export type UpdateWorkspaceResponse = {
12
+ workspace: Workspace;
13
+ };
14
+
15
+ /** @internal */
16
+ export const UpdateWorkspaceResponse$inboundSchema: z.ZodType<
17
+ UpdateWorkspaceResponse,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ workspace: Workspace$inboundSchema,
22
+ });
23
+
24
+ export function updateWorkspaceResponseFromJSON(
25
+ jsonString: string,
26
+ ): SafeParseResult<UpdateWorkspaceResponse, SDKValidationError> {
27
+ return safeParse(
28
+ jsonString,
29
+ (x) => UpdateWorkspaceResponse$inboundSchema.parse(JSON.parse(x)),
30
+ `Failed to parse 'UpdateWorkspaceResponse' from JSON`,
31
+ );
32
+ }
@@ -9,11 +9,6 @@ import {
9
9
  PiiRedaction$Outbound,
10
10
  PiiRedaction$outboundSchema,
11
11
  } from "./piiredaction.js";
12
- import {
13
- PolicyProfileIdList,
14
- PolicyProfileIdList$Outbound,
15
- PolicyProfileIdList$outboundSchema,
16
- } from "./policyprofileidlist.js";
17
12
 
18
13
  /**
19
14
  * UpdateWorkspaceSettingsRequest is a partial update: every field is optional
@@ -46,7 +41,6 @@ export type UpdateWorkspaceSettingsRequest = {
46
41
  * replaces the stored pii_redaction object.
47
42
  */
48
43
  piiRedaction?: PiiRedaction | undefined;
49
- defaultPolicyProfileIds?: PolicyProfileIdList | undefined;
50
44
  };
51
45
 
52
46
  /** @internal */
@@ -54,7 +48,6 @@ export type UpdateWorkspaceSettingsRequest$Outbound = {
54
48
  display_name?: string | undefined;
55
49
  enforce_enabled_models?: boolean | undefined;
56
50
  pii_redaction?: PiiRedaction$Outbound | undefined;
57
- default_policy_profile_ids?: PolicyProfileIdList$Outbound | undefined;
58
51
  };
59
52
 
60
53
  /** @internal */
@@ -66,13 +59,11 @@ export const UpdateWorkspaceSettingsRequest$outboundSchema: z.ZodType<
66
59
  displayName: z.string().optional(),
67
60
  enforceEnabledModels: z.boolean().optional(),
68
61
  piiRedaction: PiiRedaction$outboundSchema.optional(),
69
- defaultPolicyProfileIds: PolicyProfileIdList$outboundSchema.optional(),
70
62
  }).transform((v) => {
71
63
  return remap$(v, {
72
64
  displayName: "display_name",
73
65
  enforceEnabledModels: "enforce_enabled_models",
74
66
  piiRedaction: "pii_redaction",
75
- defaultPolicyProfileIds: "default_policy_profile_ids",
76
67
  });
77
68
  });
78
69
 
@@ -0,0 +1,20 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const Value = {
9
+ OriginUnspecified: "ORIGIN_UNSPECIFIED",
10
+ Ui: "ui",
11
+ Api: "api",
12
+ Scim: "scim",
13
+ System: "system",
14
+ } as const;
15
+ export type Value = ClosedEnum<typeof Value>;
16
+
17
+ /** @internal */
18
+ export const Value$inboundSchema: z.ZodNativeEnum<typeof Value> = z.nativeEnum(
19
+ Value,
20
+ );