@cmdop/core 0.1.1 → 0.1.2

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/dist/index.js CHANGED
@@ -97,7 +97,7 @@ var MachinesMachineSharing = class {
97
97
  if (isParamsObject) {
98
98
  params = args[1];
99
99
  } else {
100
- params = { page: args[1], page_size: args[2] };
100
+ params = { ordering: args[1], page: args[2], page_size: args[3], search: args[4] };
101
101
  }
102
102
  const response = await this.client.request("GET", `/api/machines/machines/${id}/shares/`, { params });
103
103
  return response;
@@ -133,7 +133,7 @@ var MachinesMachines = class {
133
133
  if (isParamsObject) {
134
134
  params = args[0];
135
135
  } else {
136
- params = { page: args[0], page_size: args[1] };
136
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
137
137
  }
138
138
  const response = await this.client.request("GET", "/api/machines/logs/", { params });
139
139
  return response;
@@ -164,7 +164,7 @@ var MachinesMachines = class {
164
164
  if (isParamsObject) {
165
165
  params = args[0];
166
166
  } else {
167
- params = { page: args[0], page_size: args[1] };
167
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
168
168
  }
169
169
  const response = await this.client.request("GET", "/api/machines/machines/", { params });
170
170
  return response;
@@ -221,7 +221,7 @@ var MachinesMachines = class {
221
221
  if (isParamsObject) {
222
222
  params = args[1];
223
223
  } else {
224
- params = { level: args[1], limit: args[2], page: args[3], page_size: args[4] };
224
+ params = { level: args[1], limit: args[2], ordering: args[3], page: args[4], page_size: args[5], search: args[6] };
225
225
  }
226
226
  const response = await this.client.request("GET", `/api/machines/machines/${id}/logs/`, { params });
227
227
  return response;
@@ -938,18 +938,10 @@ var MemoryStorageAdapter = class {
938
938
  // src/api/generated/machines/enums.ts
939
939
  var enums_exports = {};
940
940
  __export(enums_exports, {
941
- MachineCreateOs: () => MachineCreateOs,
942
- MachineCreateRequestOs: () => MachineCreateRequestOs,
943
941
  MachineLogLevel: () => MachineLogLevel,
944
- MachineLogRequestLevel: () => MachineLogRequestLevel,
945
942
  MachineOs: () => MachineOs,
946
- MachineRequestOs: () => MachineRequestOs,
947
- MachineRequestStatus: () => MachineRequestStatus,
948
943
  MachineStatus: () => MachineStatus,
949
944
  MachinesMachinesUpdateMetricsCreateRequestStatus: () => MachinesMachinesUpdateMetricsCreateRequestStatus,
950
- PatchedMachineRequestOs: () => PatchedMachineRequestOs,
951
- PatchedMachineRequestStatus: () => PatchedMachineRequestStatus,
952
- SharedMachineListPermission: () => SharedMachineListPermission,
953
945
  SharedMachinePermission: () => SharedMachinePermission
954
946
  });
955
947
  var MachineOs = /* @__PURE__ */ ((MachineOs2) => {
@@ -965,68 +957,16 @@ var MachineStatus = /* @__PURE__ */ ((MachineStatus2) => {
965
957
  MachineStatus2["OFFLINE"] = "offline";
966
958
  return MachineStatus2;
967
959
  })(MachineStatus || {});
968
- var MachineCreateOs = /* @__PURE__ */ ((MachineCreateOs2) => {
969
- MachineCreateOs2["MACOS"] = "macos";
970
- MachineCreateOs2["WINDOWS"] = "windows";
971
- MachineCreateOs2["LINUX"] = "linux";
972
- MachineCreateOs2["IOS"] = "ios";
973
- MachineCreateOs2["ANDROID"] = "android";
974
- return MachineCreateOs2;
975
- })(MachineCreateOs || {});
976
- var MachineCreateRequestOs = /* @__PURE__ */ ((MachineCreateRequestOs2) => {
977
- MachineCreateRequestOs2["MACOS"] = "macos";
978
- MachineCreateRequestOs2["WINDOWS"] = "windows";
979
- MachineCreateRequestOs2["LINUX"] = "linux";
980
- MachineCreateRequestOs2["IOS"] = "ios";
981
- MachineCreateRequestOs2["ANDROID"] = "android";
982
- return MachineCreateRequestOs2;
983
- })(MachineCreateRequestOs || {});
984
960
  var MachineLogLevel = /* @__PURE__ */ ((MachineLogLevel2) => {
985
961
  MachineLogLevel2["INFO"] = "info";
986
962
  MachineLogLevel2["WARNING"] = "warning";
987
963
  MachineLogLevel2["ERROR"] = "error";
988
964
  return MachineLogLevel2;
989
965
  })(MachineLogLevel || {});
990
- var MachineLogRequestLevel = /* @__PURE__ */ ((MachineLogRequestLevel2) => {
991
- MachineLogRequestLevel2["INFO"] = "info";
992
- MachineLogRequestLevel2["WARNING"] = "warning";
993
- MachineLogRequestLevel2["ERROR"] = "error";
994
- return MachineLogRequestLevel2;
995
- })(MachineLogRequestLevel || {});
996
- var MachineRequestOs = /* @__PURE__ */ ((MachineRequestOs2) => {
997
- MachineRequestOs2["MACOS"] = "macos";
998
- MachineRequestOs2["WINDOWS"] = "windows";
999
- MachineRequestOs2["LINUX"] = "linux";
1000
- MachineRequestOs2["IOS"] = "ios";
1001
- MachineRequestOs2["ANDROID"] = "android";
1002
- return MachineRequestOs2;
1003
- })(MachineRequestOs || {});
1004
- var MachineRequestStatus = /* @__PURE__ */ ((MachineRequestStatus2) => {
1005
- MachineRequestStatus2["ONLINE"] = "online";
1006
- MachineRequestStatus2["OFFLINE"] = "offline";
1007
- return MachineRequestStatus2;
1008
- })(MachineRequestStatus || {});
1009
- var PatchedMachineRequestOs = /* @__PURE__ */ ((PatchedMachineRequestOs2) => {
1010
- PatchedMachineRequestOs2["MACOS"] = "macos";
1011
- PatchedMachineRequestOs2["WINDOWS"] = "windows";
1012
- PatchedMachineRequestOs2["LINUX"] = "linux";
1013
- PatchedMachineRequestOs2["IOS"] = "ios";
1014
- PatchedMachineRequestOs2["ANDROID"] = "android";
1015
- return PatchedMachineRequestOs2;
1016
- })(PatchedMachineRequestOs || {});
1017
- var PatchedMachineRequestStatus = /* @__PURE__ */ ((PatchedMachineRequestStatus2) => {
1018
- PatchedMachineRequestStatus2["ONLINE"] = "online";
1019
- PatchedMachineRequestStatus2["OFFLINE"] = "offline";
1020
- return PatchedMachineRequestStatus2;
1021
- })(PatchedMachineRequestStatus || {});
1022
966
  var SharedMachinePermission = /* @__PURE__ */ ((SharedMachinePermission2) => {
1023
967
  SharedMachinePermission2["READ_ONLY"] = "read_only";
1024
968
  return SharedMachinePermission2;
1025
969
  })(SharedMachinePermission || {});
1026
- var SharedMachineListPermission = /* @__PURE__ */ ((SharedMachineListPermission2) => {
1027
- SharedMachineListPermission2["READ_ONLY"] = "read_only";
1028
- return SharedMachineListPermission2;
1029
- })(SharedMachineListPermission || {});
1030
970
  var MachinesMachinesUpdateMetricsCreateRequestStatus = /* @__PURE__ */ ((MachinesMachinesUpdateMetricsCreateRequestStatus2) => {
1031
971
  MachinesMachinesUpdateMetricsCreateRequestStatus2["ONLINE"] = "online";
1032
972
  MachinesMachinesUpdateMetricsCreateRequestStatus2["OFFLINE"] = "offline";
@@ -1057,7 +997,7 @@ __export(schemas_exports, {
1057
997
  import { z } from "zod";
1058
998
  var ActiveTerminalSessionSchema = z.object({
1059
999
  session_id: z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
1060
- created_at: z.iso.datetime()
1000
+ created_at: z.string().datetime({ offset: true })
1061
1001
  });
1062
1002
 
1063
1003
  // src/api/generated/machines/_utils/schemas/Machine.schema.ts
@@ -1099,8 +1039,8 @@ var MachineSchema = z2.object({
1099
1039
  uptime_seconds: z2.int().min(-9223372036854776e3).max(9223372036854776e3).optional(),
1100
1040
  process_count: z2.int().min(-2147483648).max(2147483647).optional(),
1101
1041
  agent_version: z2.string().max(20).optional(),
1102
- last_seen: z2.iso.datetime().nullable(),
1103
- created_at: z2.iso.datetime(),
1042
+ last_seen: z2.string().datetime({ offset: true }).nullable(),
1043
+ created_at: z2.string().datetime({ offset: true }),
1104
1044
  active_terminal_session: ActiveTerminalSessionSchema.nullable()
1105
1045
  });
1106
1046
 
@@ -1110,7 +1050,7 @@ var MachineCreateSchema = z3.object({
1110
1050
  workspace: z3.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
1111
1051
  name: z3.string().max(100),
1112
1052
  hostname: z3.string().max(255),
1113
- os: z3.nativeEnum(MachineCreateOs),
1053
+ os: z3.nativeEnum(MachineOs),
1114
1054
  os_version: z3.string().max(50).optional()
1115
1055
  });
1116
1056
 
@@ -1120,7 +1060,7 @@ var MachineCreateRequestSchema = z4.object({
1120
1060
  workspace: z4.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
1121
1061
  name: z4.string().min(1).max(100),
1122
1062
  hostname: z4.string().min(1).max(255),
1123
- os: z4.nativeEnum(MachineCreateRequestOs),
1063
+ os: z4.nativeEnum(MachineOs),
1124
1064
  os_version: z4.string().max(50).optional()
1125
1065
  });
1126
1066
 
@@ -1133,14 +1073,14 @@ var MachineLogSchema = z5.object({
1133
1073
  level: z5.nativeEnum(MachineLogLevel),
1134
1074
  message: z5.string(),
1135
1075
  source: z5.string().max(100).optional(),
1136
- created_at: z5.iso.datetime()
1076
+ created_at: z5.string().datetime({ offset: true })
1137
1077
  });
1138
1078
 
1139
1079
  // src/api/generated/machines/_utils/schemas/MachineLogRequest.schema.ts
1140
1080
  import { z as z6 } from "zod";
1141
1081
  var MachineLogRequestSchema = z6.object({
1142
1082
  machine: z6.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
1143
- level: z6.nativeEnum(MachineLogRequestLevel),
1083
+ level: z6.nativeEnum(MachineLogLevel),
1144
1084
  message: z6.string().min(1),
1145
1085
  source: z6.string().max(100).optional()
1146
1086
  });
@@ -1151,10 +1091,10 @@ var MachineRequestSchema = z7.object({
1151
1091
  workspace: z7.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
1152
1092
  name: z7.string().min(1).max(100),
1153
1093
  hostname: z7.string().min(1).max(255),
1154
- os: z7.nativeEnum(MachineRequestOs),
1094
+ os: z7.nativeEnum(MachineOs),
1155
1095
  os_version: z7.string().max(50).optional(),
1156
1096
  kernel_version: z7.string().max(50).optional(),
1157
- status: z7.nativeEnum(MachineRequestStatus).optional(),
1097
+ status: z7.nativeEnum(MachineStatus).optional(),
1158
1098
  device_type: z7.string().max(20).optional(),
1159
1099
  device_id: z7.string().max(255).nullable().optional(),
1160
1100
  architecture: z7.string().max(50).optional(),
@@ -1225,15 +1165,15 @@ import { z as z11 } from "zod";
1225
1165
  var SharedMachineListSchema = z11.object({
1226
1166
  id: z11.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
1227
1167
  share_token: z11.string().max(64),
1228
- permission: z11.nativeEnum(SharedMachineListPermission).optional(),
1168
+ permission: z11.nativeEnum(SharedMachinePermission).optional(),
1229
1169
  machine: z11.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
1230
1170
  machine_name: z11.string(),
1231
- expires_at: z11.iso.datetime().nullable().optional(),
1171
+ expires_at: z11.string().datetime({ offset: true }).nullable().optional(),
1232
1172
  views_count: z11.int().min(0).max(2147483647).optional(),
1233
1173
  is_active: z11.boolean().optional(),
1234
1174
  is_expired: z11.boolean(),
1235
1175
  is_valid: z11.boolean(),
1236
- created_at: z11.iso.datetime()
1176
+ created_at: z11.string().datetime({ offset: true })
1237
1177
  });
1238
1178
 
1239
1179
  // src/api/generated/machines/_utils/schemas/PaginatedSharedMachineListList.schema.ts
@@ -1255,10 +1195,10 @@ var PatchedMachineRequestSchema = z13.object({
1255
1195
  workspace: z13.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).optional(),
1256
1196
  name: z13.string().min(1).max(100).optional(),
1257
1197
  hostname: z13.string().min(1).max(255).optional(),
1258
- os: z13.nativeEnum(PatchedMachineRequestOs).optional(),
1198
+ os: z13.nativeEnum(MachineOs).optional(),
1259
1199
  os_version: z13.string().max(50).optional(),
1260
1200
  kernel_version: z13.string().max(50).optional(),
1261
- status: z13.nativeEnum(PatchedMachineRequestStatus).optional(),
1201
+ status: z13.nativeEnum(MachineStatus).optional(),
1262
1202
  device_type: z13.string().max(20).optional(),
1263
1203
  device_id: z13.string().max(255).nullable().optional(),
1264
1204
  architecture: z13.string().max(50).optional(),
@@ -1296,15 +1236,15 @@ var SharedMachineSchema = z14.object({
1296
1236
  machine_name: z14.string(),
1297
1237
  machine_hostname: z14.string(),
1298
1238
  machine_status: z14.string(),
1299
- expires_at: z14.iso.datetime().nullable().optional(),
1239
+ expires_at: z14.string().datetime({ offset: true }).nullable().optional(),
1300
1240
  views_count: z14.int(),
1301
- last_viewed_at: z14.iso.datetime().nullable(),
1241
+ last_viewed_at: z14.string().datetime({ offset: true }).nullable(),
1302
1242
  is_active: z14.boolean().optional(),
1303
1243
  is_expired: z14.boolean(),
1304
1244
  is_valid: z14.boolean(),
1305
1245
  active_sessions_count: z14.int(),
1306
1246
  created_by: z14.int(),
1307
- created_at: z14.iso.datetime()
1247
+ created_at: z14.string().datetime({ offset: true })
1308
1248
  });
1309
1249
 
1310
1250
  // src/api/generated/machines/_utils/schemas/SharedMachineCreateRequest.schema.ts
@@ -1482,7 +1422,7 @@ Method: POST`);
1482
1422
  }
1483
1423
  async function getMachinesMachinesSharesList(id, params, client) {
1484
1424
  const api2 = client || getAPIInstance();
1485
- const response = await api2.machines_machine_sharing.machinesMachinesSharesList(id, params?.page, params?.page_size);
1425
+ const response = await api2.machines_machine_sharing.machinesMachinesSharesList(id, params?.ordering, params?.page, params?.page_size, params?.search);
1486
1426
  try {
1487
1427
  return PaginatedSharedMachineListListSchema.parse(response);
1488
1428
  } catch (error) {
@@ -1532,7 +1472,7 @@ async function deleteMachinesMachinesUnshareDestroy(id, client) {
1532
1472
  import { consola as consola2 } from "consola";
1533
1473
  async function getMachinesLogsList(params, client) {
1534
1474
  const api2 = client || getAPIInstance();
1535
- const response = await api2.machines_machines.logsList(params?.page, params?.page_size);
1475
+ const response = await api2.machines_machines.logsList(params?.ordering, params?.page, params?.page_size, params?.search);
1536
1476
  try {
1537
1477
  return PaginatedMachineLogListSchema.parse(response);
1538
1478
  } catch (error) {
@@ -1658,7 +1598,7 @@ Method: GET`);
1658
1598
  }
1659
1599
  async function getMachinesMachinesList(params, client) {
1660
1600
  const api2 = client || getAPIInstance();
1661
- const response = await api2.machines_machines.machinesList(params?.page, params?.page_size);
1601
+ const response = await api2.machines_machines.machinesList(params?.ordering, params?.page, params?.page_size, params?.search);
1662
1602
  try {
1663
1603
  return PaginatedMachineListSchema.parse(response);
1664
1604
  } catch (error) {
@@ -1873,7 +1813,7 @@ async function deleteMachinesMachinesDestroy(id, client) {
1873
1813
  }
1874
1814
  async function getMachinesMachinesLogsList(id, params, client) {
1875
1815
  const api2 = client || getAPIInstance();
1876
- const response = await api2.machines_machines.machinesLogsList(id, params?.level, params?.limit, params?.page, params?.page_size);
1816
+ const response = await api2.machines_machines.machinesLogsList(id, params?.level, params?.limit, params?.ordering, params?.page, params?.page_size, params?.search);
1877
1817
  try {
1878
1818
  return PaginatedMachineLogListSchema.parse(response);
1879
1819
  } catch (error) {
@@ -2185,7 +2125,7 @@ var WorkspacesWorkspaces = class {
2185
2125
  if (isParamsObject) {
2186
2126
  params = args[0];
2187
2127
  } else {
2188
- params = { page: args[0], page_size: args[1] };
2128
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
2189
2129
  }
2190
2130
  const response = await this.client.request("GET", "/api/workspaces/invitations/", { params });
2191
2131
  return response;
@@ -2262,7 +2202,7 @@ var WorkspacesWorkspaces = class {
2262
2202
  if (isParamsObject) {
2263
2203
  params = args[0];
2264
2204
  } else {
2265
- params = { page: args[0], page_size: args[1], role: args[2], search: args[3] };
2205
+ params = { ordering: args[0], page: args[1], page_size: args[2], role: args[3], search: args[4] };
2266
2206
  }
2267
2207
  const response = await this.client.request("GET", "/api/workspaces/members/", { params });
2268
2208
  return response;
@@ -2320,9 +2260,16 @@ var WorkspacesWorkspaces = class {
2320
2260
  * ViewSet for Workspace operations. Provides CRUD operations for
2321
2261
  * workspaces with team/personal modes.
2322
2262
  */
2323
- async workspacesList() {
2324
- const response = await this.client.request("GET", "/api/workspaces/workspaces/");
2325
- return response;
2263
+ async workspacesList(...args) {
2264
+ const isParamsObject = args.length === 1 && typeof args[0] === "object" && args[0] !== null && !Array.isArray(args[0]);
2265
+ let params;
2266
+ if (isParamsObject) {
2267
+ params = args[0];
2268
+ } else {
2269
+ params = { ordering: args[0], search: args[1] };
2270
+ }
2271
+ const response = await this.client.request("GET", "/api/workspaces/workspaces/", { params });
2272
+ return response.results || response;
2326
2273
  }
2327
2274
  /**
2328
2275
  * Create new workspace
@@ -3069,20 +3016,9 @@ __export(enums_exports2, {
3069
3016
  PatchedWorkspaceMemberRequestRole: () => PatchedWorkspaceMemberRequestRole,
3070
3017
  PatchedWorkspaceRequestPlan: () => PatchedWorkspaceRequestPlan,
3071
3018
  PatchedWorkspaceRequestType: () => PatchedWorkspaceRequestType,
3072
- WorkspaceCreateRequestPlan: () => WorkspaceCreateRequestPlan,
3073
- WorkspaceCreateRequestType: () => WorkspaceCreateRequestType,
3074
3019
  WorkspaceInvitationCreateRequestRole: () => WorkspaceInvitationCreateRequestRole,
3075
- WorkspaceInvitationPublicRole: () => WorkspaceInvitationPublicRole,
3076
- WorkspaceInvitationPublicStatus: () => WorkspaceInvitationPublicStatus,
3077
- WorkspaceInvitationRequestRole: () => WorkspaceInvitationRequestRole,
3078
3020
  WorkspaceInvitationRole: () => WorkspaceInvitationRole,
3079
- WorkspaceInvitationStatus: () => WorkspaceInvitationStatus,
3080
- WorkspaceMemberRequestRole: () => WorkspaceMemberRequestRole,
3081
- WorkspaceMemberRole: () => WorkspaceMemberRole,
3082
- WorkspacePlan: () => WorkspacePlan,
3083
- WorkspaceRequestPlan: () => WorkspaceRequestPlan,
3084
- WorkspaceRequestType: () => WorkspaceRequestType,
3085
- WorkspaceType: () => WorkspaceType
3021
+ WorkspaceInvitationStatus: () => WorkspaceInvitationStatus
3086
3022
  });
3087
3023
  var PatchedWorkspaceMemberRequestRole = /* @__PURE__ */ ((PatchedWorkspaceMemberRequestRole2) => {
3088
3024
  PatchedWorkspaceMemberRequestRole2["OWNER"] = "owner";
@@ -3101,28 +3037,6 @@ var PatchedWorkspaceRequestPlan = /* @__PURE__ */ ((PatchedWorkspaceRequestPlan2
3101
3037
  PatchedWorkspaceRequestPlan2["ENTERPRISE"] = "enterprise";
3102
3038
  return PatchedWorkspaceRequestPlan2;
3103
3039
  })(PatchedWorkspaceRequestPlan || {});
3104
- var WorkspaceType = /* @__PURE__ */ ((WorkspaceType2) => {
3105
- WorkspaceType2["PERSONAL"] = "personal";
3106
- WorkspaceType2["TEAM"] = "team";
3107
- return WorkspaceType2;
3108
- })(WorkspaceType || {});
3109
- var WorkspacePlan = /* @__PURE__ */ ((WorkspacePlan2) => {
3110
- WorkspacePlan2["FREE"] = "free";
3111
- WorkspacePlan2["PRO"] = "pro";
3112
- WorkspacePlan2["ENTERPRISE"] = "enterprise";
3113
- return WorkspacePlan2;
3114
- })(WorkspacePlan || {});
3115
- var WorkspaceCreateRequestType = /* @__PURE__ */ ((WorkspaceCreateRequestType2) => {
3116
- WorkspaceCreateRequestType2["PERSONAL"] = "personal";
3117
- WorkspaceCreateRequestType2["TEAM"] = "team";
3118
- return WorkspaceCreateRequestType2;
3119
- })(WorkspaceCreateRequestType || {});
3120
- var WorkspaceCreateRequestPlan = /* @__PURE__ */ ((WorkspaceCreateRequestPlan2) => {
3121
- WorkspaceCreateRequestPlan2["FREE"] = "free";
3122
- WorkspaceCreateRequestPlan2["PRO"] = "pro";
3123
- WorkspaceCreateRequestPlan2["ENTERPRISE"] = "enterprise";
3124
- return WorkspaceCreateRequestPlan2;
3125
- })(WorkspaceCreateRequestPlan || {});
3126
3040
  var WorkspaceInvitationRole = /* @__PURE__ */ ((WorkspaceInvitationRole2) => {
3127
3041
  WorkspaceInvitationRole2["ADMIN"] = "admin";
3128
3042
  WorkspaceInvitationRole2["MEMBER"] = "member";
@@ -3141,47 +3055,6 @@ var WorkspaceInvitationCreateRequestRole = /* @__PURE__ */ ((WorkspaceInvitation
3141
3055
  WorkspaceInvitationCreateRequestRole2["MEMBER"] = "member";
3142
3056
  return WorkspaceInvitationCreateRequestRole2;
3143
3057
  })(WorkspaceInvitationCreateRequestRole || {});
3144
- var WorkspaceInvitationPublicRole = /* @__PURE__ */ ((WorkspaceInvitationPublicRole2) => {
3145
- WorkspaceInvitationPublicRole2["ADMIN"] = "admin";
3146
- WorkspaceInvitationPublicRole2["MEMBER"] = "member";
3147
- return WorkspaceInvitationPublicRole2;
3148
- })(WorkspaceInvitationPublicRole || {});
3149
- var WorkspaceInvitationPublicStatus = /* @__PURE__ */ ((WorkspaceInvitationPublicStatus2) => {
3150
- WorkspaceInvitationPublicStatus2["PENDING"] = "pending";
3151
- WorkspaceInvitationPublicStatus2["ACCEPTED"] = "accepted";
3152
- WorkspaceInvitationPublicStatus2["DECLINED"] = "declined";
3153
- WorkspaceInvitationPublicStatus2["EXPIRED"] = "expired";
3154
- WorkspaceInvitationPublicStatus2["CANCELLED"] = "cancelled";
3155
- return WorkspaceInvitationPublicStatus2;
3156
- })(WorkspaceInvitationPublicStatus || {});
3157
- var WorkspaceInvitationRequestRole = /* @__PURE__ */ ((WorkspaceInvitationRequestRole2) => {
3158
- WorkspaceInvitationRequestRole2["ADMIN"] = "admin";
3159
- WorkspaceInvitationRequestRole2["MEMBER"] = "member";
3160
- return WorkspaceInvitationRequestRole2;
3161
- })(WorkspaceInvitationRequestRole || {});
3162
- var WorkspaceMemberRole = /* @__PURE__ */ ((WorkspaceMemberRole2) => {
3163
- WorkspaceMemberRole2["OWNER"] = "owner";
3164
- WorkspaceMemberRole2["ADMIN"] = "admin";
3165
- WorkspaceMemberRole2["MEMBER"] = "member";
3166
- return WorkspaceMemberRole2;
3167
- })(WorkspaceMemberRole || {});
3168
- var WorkspaceMemberRequestRole = /* @__PURE__ */ ((WorkspaceMemberRequestRole2) => {
3169
- WorkspaceMemberRequestRole2["OWNER"] = "owner";
3170
- WorkspaceMemberRequestRole2["ADMIN"] = "admin";
3171
- WorkspaceMemberRequestRole2["MEMBER"] = "member";
3172
- return WorkspaceMemberRequestRole2;
3173
- })(WorkspaceMemberRequestRole || {});
3174
- var WorkspaceRequestType = /* @__PURE__ */ ((WorkspaceRequestType2) => {
3175
- WorkspaceRequestType2["PERSONAL"] = "personal";
3176
- WorkspaceRequestType2["TEAM"] = "team";
3177
- return WorkspaceRequestType2;
3178
- })(WorkspaceRequestType || {});
3179
- var WorkspaceRequestPlan = /* @__PURE__ */ ((WorkspaceRequestPlan2) => {
3180
- WorkspaceRequestPlan2["FREE"] = "free";
3181
- WorkspaceRequestPlan2["PRO"] = "pro";
3182
- WorkspaceRequestPlan2["ENTERPRISE"] = "enterprise";
3183
- return WorkspaceRequestPlan2;
3184
- })(WorkspaceRequestPlan || {});
3185
3058
 
3186
3059
  // src/api/generated/workspaces/_utils/schemas/index.ts
3187
3060
  var schemas_exports2 = {};
@@ -3226,9 +3099,9 @@ var WorkspaceInvitationSchema = z17.object({
3226
3099
  role: z17.nativeEnum(WorkspaceInvitationRole).optional(),
3227
3100
  status: z17.nativeEnum(WorkspaceInvitationStatus),
3228
3101
  invited_by: InvitedBySchema,
3229
- created_at: z17.iso.datetime(),
3230
- expires_at: z17.iso.datetime(),
3231
- accepted_at: z17.iso.datetime().nullable(),
3102
+ created_at: z17.string().datetime({ offset: true }),
3103
+ expires_at: z17.string().datetime({ offset: true }),
3104
+ accepted_at: z17.string().datetime({ offset: true }).nullable(),
3232
3105
  is_expired: z17.boolean(),
3233
3106
  is_valid: z17.boolean()
3234
3107
  });
@@ -3268,8 +3141,8 @@ var WorkspaceMemberSchema = z20.object({
3268
3141
  workspace: z20.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
3269
3142
  workspace_name: z20.string(),
3270
3143
  user: UserBasicSchema,
3271
- role: z20.nativeEnum(WorkspaceMemberRole).optional(),
3272
- joined_at: z20.iso.datetime()
3144
+ role: z20.nativeEnum(PatchedWorkspaceMemberRequestRole).optional(),
3145
+ joined_at: z20.string().datetime({ offset: true })
3273
3146
  });
3274
3147
 
3275
3148
  // src/api/generated/workspaces/_utils/schemas/PaginatedWorkspaceMemberList.schema.ts
@@ -3308,9 +3181,9 @@ var WorkspaceSchema = z24.object({
3308
3181
  id: z24.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
3309
3182
  name: z24.string().max(100),
3310
3183
  slug: z24.string().max(100),
3311
- type: z24.nativeEnum(WorkspaceType).optional(),
3312
- plan: z24.nativeEnum(WorkspacePlan).optional(),
3313
- created_at: z24.iso.datetime(),
3184
+ type: z24.nativeEnum(PatchedWorkspaceRequestType).optional(),
3185
+ plan: z24.nativeEnum(PatchedWorkspaceRequestPlan).optional(),
3186
+ created_at: z24.string().datetime({ offset: true }),
3314
3187
  member_count: z24.int(),
3315
3188
  machine_count: z24.int()
3316
3189
  });
@@ -3319,8 +3192,8 @@ var WorkspaceSchema = z24.object({
3319
3192
  import { z as z25 } from "zod";
3320
3193
  var WorkspaceCreateRequestSchema = z25.object({
3321
3194
  name: z25.string().min(1).max(100),
3322
- type: z25.nativeEnum(WorkspaceCreateRequestType).optional(),
3323
- plan: z25.nativeEnum(WorkspaceCreateRequestPlan).optional()
3195
+ type: z25.nativeEnum(PatchedWorkspaceRequestType).optional(),
3196
+ plan: z25.nativeEnum(PatchedWorkspaceRequestPlan).optional()
3324
3197
  });
3325
3198
 
3326
3199
  // src/api/generated/workspaces/_utils/schemas/WorkspaceInvitationAcceptRequest.schema.ts
@@ -3342,11 +3215,11 @@ var WorkspaceInvitationPublicSchema = z28.object({
3342
3215
  id: z28.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
3343
3216
  workspace_name: z28.string(),
3344
3217
  email: z28.email(),
3345
- role: z28.nativeEnum(WorkspaceInvitationPublicRole).optional(),
3346
- status: z28.nativeEnum(WorkspaceInvitationPublicStatus).optional(),
3218
+ role: z28.nativeEnum(WorkspaceInvitationRole).optional(),
3219
+ status: z28.nativeEnum(WorkspaceInvitationStatus).optional(),
3347
3220
  invited_by_name: z28.string(),
3348
- created_at: z28.iso.datetime(),
3349
- expires_at: z28.iso.datetime().optional(),
3221
+ created_at: z28.string().datetime({ offset: true }),
3222
+ expires_at: z28.string().datetime({ offset: true }).optional(),
3350
3223
  is_expired: z28.boolean(),
3351
3224
  is_valid: z28.boolean()
3352
3225
  });
@@ -3356,7 +3229,7 @@ import { z as z29 } from "zod";
3356
3229
  var WorkspaceInvitationRequestSchema = z29.object({
3357
3230
  workspace: z29.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
3358
3231
  email: z29.email(),
3359
- role: z29.nativeEnum(WorkspaceInvitationRequestRole).optional()
3232
+ role: z29.nativeEnum(WorkspaceInvitationRole).optional()
3360
3233
  });
3361
3234
 
3362
3235
  // src/api/generated/workspaces/_utils/schemas/WorkspaceMemberRequest.schema.ts
@@ -3364,7 +3237,7 @@ import { z as z30 } from "zod";
3364
3237
  var WorkspaceMemberRequestSchema = z30.object({
3365
3238
  workspace: z30.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
3366
3239
  user_id: z30.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).optional(),
3367
- role: z30.nativeEnum(WorkspaceMemberRequestRole).optional()
3240
+ role: z30.nativeEnum(PatchedWorkspaceMemberRequestRole).optional()
3368
3241
  });
3369
3242
 
3370
3243
  // src/api/generated/workspaces/_utils/schemas/WorkspaceRequest.schema.ts
@@ -3372,8 +3245,8 @@ import { z as z31 } from "zod";
3372
3245
  var WorkspaceRequestSchema = z31.object({
3373
3246
  name: z31.string().min(1).max(100),
3374
3247
  slug: z31.string().min(1).max(100),
3375
- type: z31.nativeEnum(WorkspaceRequestType).optional(),
3376
- plan: z31.nativeEnum(WorkspaceRequestPlan).optional()
3248
+ type: z31.nativeEnum(PatchedWorkspaceRequestType).optional(),
3249
+ plan: z31.nativeEnum(PatchedWorkspaceRequestPlan).optional()
3377
3250
  });
3378
3251
 
3379
3252
  // src/api/generated/workspaces/validation-events.ts
@@ -3510,7 +3383,7 @@ function resetAPI2() {
3510
3383
  // src/api/generated/workspaces/_utils/fetchers/workspaces__api__workspaces.ts
3511
3384
  async function getWorkspacesInvitationsList(params, client) {
3512
3385
  const api2 = client || getAPIInstance2();
3513
- const response = await api2.workspaces_workspaces.invitationsList(params?.page, params?.page_size);
3386
+ const response = await api2.workspaces_workspaces.invitationsList(params?.ordering, params?.page, params?.page_size, params?.search);
3514
3387
  try {
3515
3388
  return PaginatedWorkspaceInvitationListSchema.parse(response);
3516
3389
  } catch (error) {
@@ -3735,7 +3608,7 @@ Method: GET`);
3735
3608
  }
3736
3609
  async function getWorkspacesMembersList(params, client) {
3737
3610
  const api2 = client || getAPIInstance2();
3738
- const response = await api2.workspaces_workspaces.membersList(params?.page, params?.page_size, params?.role, params?.search);
3611
+ const response = await api2.workspaces_workspaces.membersList(params?.ordering, params?.page, params?.page_size, params?.role, params?.search);
3739
3612
  try {
3740
3613
  return PaginatedWorkspaceMemberListSchema.parse(response);
3741
3614
  } catch (error) {
@@ -3990,9 +3863,9 @@ Method: POST`);
3990
3863
  throw error;
3991
3864
  }
3992
3865
  }
3993
- async function getWorkspacesWorkspacesList(client) {
3866
+ async function getWorkspacesWorkspacesList(params, client) {
3994
3867
  const api2 = client || getAPIInstance2();
3995
- const response = await api2.workspaces_workspaces.workspacesList();
3868
+ const response = await api2.workspaces_workspaces.workspacesList(params?.ordering, params?.search);
3996
3869
  return response;
3997
3870
  }
3998
3871
  async function createWorkspacesWorkspacesCreate(data, client) {
@@ -4445,7 +4318,7 @@ var SystemOauth = class {
4445
4318
  if (isParamsObject) {
4446
4319
  params = args[0];
4447
4320
  } else {
4448
- params = { page: args[0], page_size: args[1] };
4321
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3] };
4449
4322
  }
4450
4323
  const response = await this.client.request("GET", "/api/system/oauth/tokens/", { params });
4451
4324
  return response;
@@ -4470,7 +4343,7 @@ var SystemSystem = class {
4470
4343
  if (isParamsObject) {
4471
4344
  params = args[0];
4472
4345
  } else {
4473
- params = { page: args[0], page_size: args[1], read: args[2], type: args[3], workspace: args[4] };
4346
+ params = { ordering: args[0], page: args[1], page_size: args[2], read: args[3], search: args[4], type: args[5], workspace: args[6] };
4474
4347
  }
4475
4348
  const response = await this.client.request("GET", "/api/system/alerts/", { params });
4476
4349
  return response;
@@ -4533,7 +4406,7 @@ var SystemSystem = class {
4533
4406
  if (isParamsObject) {
4534
4407
  params = args[0];
4535
4408
  } else {
4536
- params = { page: args[0], page_size: args[1], workspace: args[2] };
4409
+ params = { ordering: args[0], page: args[1], page_size: args[2], search: args[3], workspace: args[4] };
4537
4410
  }
4538
4411
  const response = await this.client.request("GET", "/api/system/api-keys/", { params });
4539
4412
  return response;
@@ -5269,12 +5142,8 @@ var MemoryStorageAdapter3 = class {
5269
5142
  // src/api/generated/system/enums.ts
5270
5143
  var enums_exports3 = {};
5271
5144
  __export(enums_exports3, {
5272
- AlertCreateRequestType: () => AlertCreateRequestType,
5273
- AlertCreateType: () => AlertCreateType,
5274
- AlertRequestType: () => AlertRequestType,
5275
5145
  AlertType: () => AlertType,
5276
5146
  DeviceAuthorizeRequestAction: () => DeviceAuthorizeRequestAction,
5277
- PatchedAlertRequestType: () => PatchedAlertRequestType,
5278
5147
  TokenErrorError: () => TokenErrorError,
5279
5148
  TokenRequestRequestGrantType: () => TokenRequestRequestGrantType,
5280
5149
  TokenRevokeRequestTokenTypeHint: () => TokenRevokeRequestTokenTypeHint
@@ -5285,35 +5154,11 @@ var AlertType = /* @__PURE__ */ ((AlertType2) => {
5285
5154
  AlertType2["SCHEDULE_ERROR"] = "schedule_error";
5286
5155
  return AlertType2;
5287
5156
  })(AlertType || {});
5288
- var AlertCreateType = /* @__PURE__ */ ((AlertCreateType2) => {
5289
- AlertCreateType2["MACHINE_OFFLINE"] = "machine_offline";
5290
- AlertCreateType2["TASK_FAILED"] = "task_failed";
5291
- AlertCreateType2["SCHEDULE_ERROR"] = "schedule_error";
5292
- return AlertCreateType2;
5293
- })(AlertCreateType || {});
5294
- var AlertCreateRequestType = /* @__PURE__ */ ((AlertCreateRequestType2) => {
5295
- AlertCreateRequestType2["MACHINE_OFFLINE"] = "machine_offline";
5296
- AlertCreateRequestType2["TASK_FAILED"] = "task_failed";
5297
- AlertCreateRequestType2["SCHEDULE_ERROR"] = "schedule_error";
5298
- return AlertCreateRequestType2;
5299
- })(AlertCreateRequestType || {});
5300
- var AlertRequestType = /* @__PURE__ */ ((AlertRequestType2) => {
5301
- AlertRequestType2["MACHINE_OFFLINE"] = "machine_offline";
5302
- AlertRequestType2["TASK_FAILED"] = "task_failed";
5303
- AlertRequestType2["SCHEDULE_ERROR"] = "schedule_error";
5304
- return AlertRequestType2;
5305
- })(AlertRequestType || {});
5306
5157
  var DeviceAuthorizeRequestAction = /* @__PURE__ */ ((DeviceAuthorizeRequestAction2) => {
5307
5158
  DeviceAuthorizeRequestAction2["APPROVE"] = "approve";
5308
5159
  DeviceAuthorizeRequestAction2["DENY"] = "deny";
5309
5160
  return DeviceAuthorizeRequestAction2;
5310
5161
  })(DeviceAuthorizeRequestAction || {});
5311
- var PatchedAlertRequestType = /* @__PURE__ */ ((PatchedAlertRequestType2) => {
5312
- PatchedAlertRequestType2["MACHINE_OFFLINE"] = "machine_offline";
5313
- PatchedAlertRequestType2["TASK_FAILED"] = "task_failed";
5314
- PatchedAlertRequestType2["SCHEDULE_ERROR"] = "schedule_error";
5315
- return PatchedAlertRequestType2;
5316
- })(PatchedAlertRequestType || {});
5317
5162
  var TokenErrorError = /* @__PURE__ */ ((TokenErrorError2) => {
5318
5163
  TokenErrorError2["AUTHORIZATION_PENDING"] = "authorization_pending";
5319
5164
  TokenErrorError2["SLOW_DOWN"] = "slow_down";
@@ -5371,14 +5216,14 @@ var AlertSchema = z32.object({
5371
5216
  machine_name: z32.string().nullable(),
5372
5217
  read: z32.boolean().optional(),
5373
5218
  is_unread: z32.boolean(),
5374
- created_at: z32.iso.datetime()
5219
+ created_at: z32.string().datetime({ offset: true })
5375
5220
  });
5376
5221
 
5377
5222
  // src/api/generated/system/_utils/schemas/AlertCreate.schema.ts
5378
5223
  import { z as z33 } from "zod";
5379
5224
  var AlertCreateSchema = z33.object({
5380
5225
  workspace: z33.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
5381
- type: z33.nativeEnum(AlertCreateType),
5226
+ type: z33.nativeEnum(AlertType),
5382
5227
  title: z33.string().max(200),
5383
5228
  message: z33.string(),
5384
5229
  machine: z33.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional()
@@ -5388,7 +5233,7 @@ var AlertCreateSchema = z33.object({
5388
5233
  import { z as z34 } from "zod";
5389
5234
  var AlertCreateRequestSchema = z34.object({
5390
5235
  workspace: z34.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
5391
- type: z34.nativeEnum(AlertCreateRequestType),
5236
+ type: z34.nativeEnum(AlertType),
5392
5237
  title: z34.string().min(1).max(200),
5393
5238
  message: z34.string().min(1),
5394
5239
  machine: z34.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional()
@@ -5398,7 +5243,7 @@ var AlertCreateRequestSchema = z34.object({
5398
5243
  import { z as z35 } from "zod";
5399
5244
  var AlertRequestSchema = z35.object({
5400
5245
  workspace: z35.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
5401
- type: z35.nativeEnum(AlertRequestType),
5246
+ type: z35.nativeEnum(AlertType),
5402
5247
  title: z35.string().min(1).max(200),
5403
5248
  message: z35.string().min(1),
5404
5249
  machine: z35.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
@@ -5412,10 +5257,10 @@ var ApiKeySchema = z36.object({
5412
5257
  workspace: z36.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
5413
5258
  name: z36.string(),
5414
5259
  key_prefix: z36.string(),
5415
- last_used: z36.iso.datetime().nullable(),
5260
+ last_used: z36.string().datetime({ offset: true }).nullable(),
5416
5261
  created_by: z36.int().nullable(),
5417
5262
  created_by_email: z36.string(),
5418
- created_at: z36.iso.datetime()
5263
+ created_at: z36.string().datetime({ offset: true })
5419
5264
  });
5420
5265
 
5421
5266
  // src/api/generated/system/_utils/schemas/ApiKeyCreateRequest.schema.ts
@@ -5435,7 +5280,7 @@ var ApiKeyResponseSchema = z38.object({
5435
5280
  raw_key: z38.string(),
5436
5281
  created_by: z38.int().nullable(),
5437
5282
  created_by_email: z38.string(),
5438
- created_at: z38.iso.datetime()
5283
+ created_at: z38.string().datetime({ offset: true })
5439
5284
  });
5440
5285
 
5441
5286
  // src/api/generated/system/_utils/schemas/DeviceAuthorizeRequest.schema.ts
@@ -5514,9 +5359,9 @@ var TokenListSchema = z45.object({
5514
5359
  client_name: z45.string().max(100).optional(),
5515
5360
  client_hostname: z45.string().max(255).optional(),
5516
5361
  client_platform: z45.string().max(50).optional(),
5517
- created_at: z45.iso.datetime(),
5518
- last_used_at: z45.iso.datetime().nullable().optional(),
5519
- revoked_at: z45.iso.datetime().nullable().optional(),
5362
+ created_at: z45.string().datetime({ offset: true }),
5363
+ last_used_at: z45.string().datetime({ offset: true }).nullable().optional(),
5364
+ revoked_at: z45.string().datetime({ offset: true }).nullable().optional(),
5520
5365
  is_active: z45.string()
5521
5366
  });
5522
5367
 
@@ -5537,7 +5382,7 @@ var PaginatedTokenListListSchema = z46.object({
5537
5382
  import { z as z47 } from "zod";
5538
5383
  var PatchedAlertRequestSchema = z47.object({
5539
5384
  workspace: z47.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).optional(),
5540
- type: z47.nativeEnum(PatchedAlertRequestType).optional(),
5385
+ type: z47.nativeEnum(AlertType).optional(),
5541
5386
  title: z47.string().min(1).max(200).optional(),
5542
5387
  message: z47.string().min(1).optional(),
5543
5388
  machine: z47.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i).nullable().optional(),
@@ -5564,10 +5409,10 @@ var TokenInfoSchema = z49.object({
5564
5409
  client_version: z49.string().max(50).optional(),
5565
5410
  client_hostname: z49.string().max(255).optional(),
5566
5411
  client_platform: z49.string().max(50).optional(),
5567
- created_at: z49.iso.datetime(),
5568
- access_token_expires_at: z49.iso.datetime(),
5569
- refresh_token_expires_at: z49.iso.datetime(),
5570
- last_used_at: z49.iso.datetime().nullable().optional(),
5412
+ created_at: z49.string().datetime({ offset: true }),
5413
+ access_token_expires_at: z49.string().datetime({ offset: true }),
5414
+ refresh_token_expires_at: z49.string().datetime({ offset: true }),
5415
+ last_used_at: z49.string().datetime({ offset: true }).nullable().optional(),
5571
5416
  is_expired: z49.string(),
5572
5417
  is_refresh_expired: z49.string()
5573
5418
  });
@@ -5590,6 +5435,7 @@ var TokenResponseSchema = z51.object({
5590
5435
  scope: z51.string().optional(),
5591
5436
  workspace_id: z51.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
5592
5437
  workspace_name: z51.string(),
5438
+ user_id: z51.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
5593
5439
  user_email: z51.email().optional()
5594
5440
  });
5595
5441
 
@@ -5905,7 +5751,7 @@ Method: GET`);
5905
5751
  }
5906
5752
  async function getSystemOauthTokensList(params, client) {
5907
5753
  const api2 = client || getAPIInstance3();
5908
- const response = await api2.system_oauth.systemOauthTokensList(params?.page, params?.page_size);
5754
+ const response = await api2.system_oauth.systemOauthTokensList(params?.ordering, params?.page, params?.page_size, params?.search);
5909
5755
  try {
5910
5756
  return PaginatedTokenListListSchema.parse(response);
5911
5757
  } catch (error) {
@@ -5950,7 +5796,7 @@ Method: GET`);
5950
5796
  import { consola as consola5 } from "consola";
5951
5797
  async function getSystemAlertsList(params, client) {
5952
5798
  const api2 = client || getAPIInstance3();
5953
- const response = await api2.system_system.alertsList(params?.page, params?.page_size, params?.read, params?.type, params?.workspace);
5799
+ const response = await api2.system_system.alertsList(params?.ordering, params?.page, params?.page_size, params?.read, params?.search, params?.type, params?.workspace);
5954
5800
  try {
5955
5801
  return PaginatedAlertListSchema.parse(response);
5956
5802
  } catch (error) {
@@ -6212,7 +6058,7 @@ async function createSystemAlertsMarkAllAsReadCreate(client) {
6212
6058
  }
6213
6059
  async function getSystemApiKeysList(params, client) {
6214
6060
  const api2 = client || getAPIInstance3();
6215
- const response = await api2.system_system.apiKeysList(params?.page, params?.page_size, params?.workspace);
6061
+ const response = await api2.system_system.apiKeysList(params?.ordering, params?.page, params?.page_size, params?.search, params?.workspace);
6216
6062
  try {
6217
6063
  return PaginatedApiKeyListSchema.parse(response);
6218
6064
  } catch (error) {