attio-ts-sdk 1.1.1 → 1.2.0

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.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import process from "node:process";
3
2
 
4
3
  //#region src/attio/batch.ts
5
4
  const recordSuccess = (params) => {
@@ -865,8 +864,8 @@ const createClient = (config = {}) => {
865
864
  const TRAILING_SLASHES_REGEX = /\/+$/;
866
865
  const DEFAULT_BASE_URL = "https://api.attio.com";
867
866
  const getEnvValue = (key) => {
868
- if (typeof process === "undefined") return;
869
- return process.env?.[key];
867
+ if (typeof Deno !== "undefined") return Deno.env.get(key);
868
+ if (typeof process !== "undefined") return process.env?.[key];
870
869
  };
871
870
  const normalizeBaseUrl = (baseUrl) => baseUrl.replace(TRAILING_SLASHES_REGEX, "");
872
871
  const resolveBaseUrl = (config) => {
@@ -1426,8 +1425,8 @@ const zInputValue = z.union([
1426
1425
  z.object({ value: z.boolean() }),
1427
1426
  z.object({ currency_value: z.number() }),
1428
1427
  z.object({ value: z.string() }),
1429
- z.object({ domain: z.optional(z.string()) }),
1430
- z.object({ email_address: z.optional(z.string()) }),
1428
+ z.object({ domain: z.nullish(z.string()) }),
1429
+ z.object({ email_address: z.nullish(z.string()) }),
1431
1430
  z.object({
1432
1431
  target_object: z.string(),
1433
1432
  target_record_id: z.uuid()
@@ -1435,12 +1434,12 @@ const zInputValue = z.union([
1435
1434
  z.object({
1436
1435
  target_object: z.string(),
1437
1436
  "[slug_or_id_of_matching_attribute]": z.array(z.union([
1438
- z.object({ domain: z.optional(z.string()) }),
1439
- z.object({ email_address: z.optional(z.string()) }),
1440
- z.object({ value: z.optional(z.number()) }),
1437
+ z.object({ domain: z.nullish(z.string()) }),
1438
+ z.object({ email_address: z.nullish(z.string()) }),
1439
+ z.object({ value: z.nullish(z.number()) }),
1441
1440
  z.object({
1442
- original_phone_number: z.optional(z.string()),
1443
- country_code: z.optional(z.enum([
1441
+ original_phone_number: z.nullish(z.string()),
1442
+ country_code: z.nullish(z.enum([
1444
1443
  "AF",
1445
1444
  "AX",
1446
1445
  "AL",
@@ -1695,7 +1694,7 @@ const zInputValue = z.union([
1695
1694
  "AC"
1696
1695
  ]))
1697
1696
  }),
1698
- z.object({ value: z.optional(z.string()) })
1697
+ z.object({ value: z.nullish(z.string()) })
1699
1698
  ]))
1700
1699
  }),
1701
1700
  z.object({
@@ -1709,8 +1708,8 @@ const zInputValue = z.union([
1709
1708
  ]),
1710
1709
  interacted_at: z.iso.datetime(),
1711
1710
  owner_actor: z.object({
1712
- id: z.optional(z.string()),
1713
- type: z.optional(z.enum([
1711
+ id: z.nullish(z.string()),
1712
+ type: z.nullish(z.enum([
1714
1713
  "api-token",
1715
1714
  "workspace-member",
1716
1715
  "system",
@@ -1985,13 +1984,13 @@ const zInputValue = z.union([
1985
1984
  }),
1986
1985
  z.object({ value: z.number() }),
1987
1986
  z.object({
1988
- first_name: z.optional(z.string()),
1989
- last_name: z.optional(z.string()),
1990
- full_name: z.optional(z.string())
1987
+ first_name: z.nullish(z.string()),
1988
+ last_name: z.nullish(z.string()),
1989
+ full_name: z.nullish(z.string())
1991
1990
  }),
1992
1991
  z.object({
1993
1992
  original_phone_number: z.string(),
1994
- country_code: z.optional(z.enum([
1993
+ country_code: z.nullish(z.enum([
1995
1994
  "AF",
1996
1995
  "AX",
1997
1996
  "AL",
@@ -2272,7 +2271,7 @@ const zOutputValue = z.union([
2272
2271
  }),
2273
2272
  z.object({
2274
2273
  currency_value: z.number(),
2275
- currency_code: z.optional(z.enum([
2274
+ currency_code: z.nullish(z.enum([
2276
2275
  "ARS",
2277
2276
  "AUD",
2278
2277
  "BRL",
@@ -2349,8 +2348,8 @@ const zOutputValue = z.union([
2349
2348
  ]),
2350
2349
  interacted_at: z.iso.datetime(),
2351
2350
  owner_actor: z.object({
2352
- id: z.optional(z.string()),
2353
- type: z.optional(z.enum([
2351
+ id: z.nullish(z.string()),
2352
+ type: z.nullish(z.enum([
2354
2353
  "api-token",
2355
2354
  "workspace-member",
2356
2355
  "system",
@@ -3057,8 +3056,8 @@ const zList = z.object({
3057
3056
  ])
3058
3057
  })),
3059
3058
  created_by_actor: z.object({
3060
- id: z.optional(z.string()),
3061
- type: z.optional(z.enum([
3059
+ id: z.nullish(z.string()),
3060
+ type: z.nullish(z.enum([
3062
3061
  "api-token",
3063
3062
  "workspace-member",
3064
3063
  "system",
@@ -3110,8 +3109,8 @@ const zComment = z.object({
3110
3109
  }),
3111
3110
  resolved_at: z.union([z.string(), z.null()]),
3112
3111
  resolved_by: z.object({
3113
- id: z.optional(z.string()),
3114
- type: z.optional(z.enum([
3112
+ id: z.nullish(z.string()),
3113
+ type: z.nullish(z.enum([
3115
3114
  "api-token",
3116
3115
  "workspace-member",
3117
3116
  "system",
@@ -3120,8 +3119,8 @@ const zComment = z.object({
3120
3119
  }),
3121
3120
  created_at: z.string(),
3122
3121
  author: z.object({
3123
- id: z.optional(z.string()),
3124
- type: z.optional(z.enum([
3122
+ id: z.nullish(z.string()),
3123
+ type: z.nullish(z.enum([
3125
3124
  "api-token",
3126
3125
  "workspace-member",
3127
3126
  "system",
@@ -3162,8 +3161,8 @@ const zMeeting = z.object({
3162
3161
  })),
3163
3162
  created_at: z.string(),
3164
3163
  created_by_actor: z.object({
3165
- id: z.optional(z.string()),
3166
- type: z.optional(z.enum([
3164
+ id: z.nullish(z.string()),
3165
+ type: z.nullish(z.enum([
3167
3166
  "api-token",
3168
3167
  "workspace-member",
3169
3168
  "system",
@@ -3191,8 +3190,8 @@ const zNote = z.object({
3191
3190
  record_id: z.uuid()
3192
3191
  })])),
3193
3192
  created_by_actor: z.object({
3194
- id: z.optional(z.string()),
3195
- type: z.optional(z.enum([
3193
+ id: z.nullish(z.string()),
3194
+ type: z.nullish(z.enum([
3196
3195
  "api-token",
3197
3196
  "workspace-member",
3198
3197
  "system",
@@ -3223,8 +3222,8 @@ const zTask = z.object({
3223
3222
  referenced_actor_id: z.uuid()
3224
3223
  })),
3225
3224
  created_by_actor: z.object({
3226
- id: z.optional(z.string()),
3227
- type: z.optional(z.enum([
3225
+ id: z.nullish(z.string()),
3226
+ type: z.nullish(z.enum([
3228
3227
  "api-token",
3229
3228
  "workspace-member",
3230
3229
  "system",
@@ -3242,9 +3241,9 @@ const zThread = z.object({
3242
3241
  created_at: z.string()
3243
3242
  });
3244
3243
  const zGetV2ObjectsData = z.object({
3245
- body: z.optional(z.never()),
3246
- path: z.optional(z.never()),
3247
- query: z.optional(z.never())
3244
+ body: z.nullish(z.never()),
3245
+ path: z.nullish(z.never()),
3246
+ query: z.nullish(z.never())
3248
3247
  });
3249
3248
  /**
3250
3249
  * Success
@@ -3256,17 +3255,17 @@ const zPostV2ObjectsData = z.object({
3256
3255
  singular_noun: z.string().min(1),
3257
3256
  plural_noun: z.string().min(1)
3258
3257
  }) }),
3259
- path: z.optional(z.never()),
3260
- query: z.optional(z.never())
3258
+ path: z.nullish(z.never()),
3259
+ query: z.nullish(z.never())
3261
3260
  });
3262
3261
  /**
3263
3262
  * Success
3264
3263
  */
3265
3264
  const zPostV2ObjectsResponse = z.object({ data: zObject });
3266
3265
  const zGetV2ObjectsByObjectData = z.object({
3267
- body: z.optional(z.never()),
3266
+ body: z.nullish(z.never()),
3268
3267
  path: z.object({ object: z.string() }),
3269
- query: z.optional(z.never())
3268
+ query: z.nullish(z.never())
3270
3269
  });
3271
3270
  /**
3272
3271
  * Success
@@ -3274,27 +3273,27 @@ const zGetV2ObjectsByObjectData = z.object({
3274
3273
  const zGetV2ObjectsByObjectResponse = z.object({ data: zObject });
3275
3274
  const zPatchV2ObjectsByObjectData = z.object({
3276
3275
  body: z.object({ data: z.object({
3277
- api_slug: z.optional(z.string()),
3278
- singular_noun: z.optional(z.string().min(1)),
3279
- plural_noun: z.optional(z.string().min(1))
3276
+ api_slug: z.nullish(z.string()),
3277
+ singular_noun: z.nullish(z.string().min(1)),
3278
+ plural_noun: z.nullish(z.string().min(1))
3280
3279
  }) }),
3281
3280
  path: z.object({ object: z.string() }),
3282
- query: z.optional(z.never())
3281
+ query: z.nullish(z.never())
3283
3282
  });
3284
3283
  /**
3285
3284
  * Success
3286
3285
  */
3287
3286
  const zPatchV2ObjectsByObjectResponse = z.object({ data: zObject });
3288
3287
  const zGetV2ByTargetByIdentifierAttributesData = z.object({
3289
- body: z.optional(z.never()),
3288
+ body: z.nullish(z.never()),
3290
3289
  path: z.object({
3291
3290
  target: z.enum(["objects", "lists"]),
3292
3291
  identifier: z.string()
3293
3292
  }),
3294
- query: z.optional(z.object({
3295
- limit: z.optional(z.int()),
3296
- offset: z.optional(z.int()),
3297
- show_archived: z.optional(z.boolean())
3293
+ query: z.nullish(z.object({
3294
+ limit: z.nullish(z.int()),
3295
+ offset: z.nullish(z.int()),
3296
+ show_archived: z.nullish(z.boolean())
3298
3297
  }))
3299
3298
  });
3300
3299
  /**
@@ -3326,7 +3325,7 @@ const zPostV2ByTargetByIdentifierAttributesData = z.object({
3326
3325
  is_required: z.boolean(),
3327
3326
  is_unique: z.boolean(),
3328
3327
  is_multiselect: z.boolean(),
3329
- default_value: z.optional(z.union([
3328
+ default_value: z.nullish(z.union([
3330
3329
  z.object({
3331
3330
  type: z.enum(["dynamic"]),
3332
3331
  template: z.union([z.enum(["current-user"]), z.string()])
@@ -3337,14 +3336,14 @@ const zPostV2ByTargetByIdentifierAttributesData = z.object({
3337
3336
  }),
3338
3337
  z.null()
3339
3338
  ])),
3340
- relationship: z.optional(z.union([z.object({
3339
+ relationship: z.nullish(z.union([z.object({
3341
3340
  object: z.string(),
3342
3341
  title: z.string(),
3343
3342
  api_slug: z.string(),
3344
3343
  is_multiselect: z.boolean()
3345
3344
  }), z.null()])),
3346
3345
  config: z.object({
3347
- currency: z.optional(z.object({
3346
+ currency: z.nullish(z.object({
3348
3347
  default_currency_code: z.enum([
3349
3348
  "ARS",
3350
3349
  "AUD",
@@ -3394,27 +3393,27 @@ const zPostV2ByTargetByIdentifierAttributesData = z.object({
3394
3393
  "symbol"
3395
3394
  ])
3396
3395
  })),
3397
- record_reference: z.optional(z.object({ allowed_objects: z.array(z.string()).min(1) }))
3396
+ record_reference: z.nullish(z.object({ allowed_objects: z.array(z.string()).min(1) }))
3398
3397
  })
3399
3398
  }) }),
3400
3399
  path: z.object({
3401
3400
  target: z.enum(["objects", "lists"]),
3402
3401
  identifier: z.string()
3403
3402
  }),
3404
- query: z.optional(z.never())
3403
+ query: z.nullish(z.never())
3405
3404
  });
3406
3405
  /**
3407
3406
  * Success
3408
3407
  */
3409
3408
  const zPostV2ByTargetByIdentifierAttributesResponse = z.object({ data: zAttribute });
3410
3409
  const zGetV2ByTargetByIdentifierAttributesByAttributeData = z.object({
3411
- body: z.optional(z.never()),
3410
+ body: z.nullish(z.never()),
3412
3411
  path: z.object({
3413
3412
  target: z.enum(["objects", "lists"]),
3414
3413
  identifier: z.string(),
3415
3414
  attribute: z.string()
3416
3415
  }),
3417
- query: z.optional(z.never())
3416
+ query: z.nullish(z.never())
3418
3417
  });
3419
3418
  /**
3420
3419
  * Success
@@ -3422,12 +3421,12 @@ const zGetV2ByTargetByIdentifierAttributesByAttributeData = z.object({
3422
3421
  const zGetV2ByTargetByIdentifierAttributesByAttributeResponse = z.object({ data: zAttribute });
3423
3422
  const zPatchV2ByTargetByIdentifierAttributesByAttributeData = z.object({
3424
3423
  body: z.object({ data: z.object({
3425
- title: z.optional(z.string()),
3426
- description: z.optional(z.union([z.string(), z.null()])),
3427
- api_slug: z.optional(z.string()),
3428
- is_required: z.optional(z.boolean()),
3429
- is_unique: z.optional(z.boolean()),
3430
- default_value: z.optional(z.union([
3424
+ title: z.nullish(z.string()),
3425
+ description: z.nullish(z.union([z.string(), z.null()])),
3426
+ api_slug: z.nullish(z.string()),
3427
+ is_required: z.nullish(z.boolean()),
3428
+ is_unique: z.nullish(z.boolean()),
3429
+ default_value: z.nullish(z.union([
3431
3430
  z.object({
3432
3431
  type: z.enum(["dynamic"]),
3433
3432
  template: z.union([z.enum(["current-user"]), z.string()])
@@ -3438,8 +3437,8 @@ const zPatchV2ByTargetByIdentifierAttributesByAttributeData = z.object({
3438
3437
  }),
3439
3438
  z.null()
3440
3439
  ])),
3441
- config: z.optional(z.object({
3442
- currency: z.optional(z.object({
3440
+ config: z.nullish(z.object({
3441
+ currency: z.nullish(z.object({
3443
3442
  default_currency_code: z.enum([
3444
3443
  "ARS",
3445
3444
  "AUD",
@@ -3489,29 +3488,29 @@ const zPatchV2ByTargetByIdentifierAttributesByAttributeData = z.object({
3489
3488
  "symbol"
3490
3489
  ])
3491
3490
  })),
3492
- record_reference: z.optional(z.object({ allowed_objects: z.array(z.string()).min(1) }))
3491
+ record_reference: z.nullish(z.object({ allowed_objects: z.array(z.string()).min(1) }))
3493
3492
  })),
3494
- is_archived: z.optional(z.boolean())
3493
+ is_archived: z.nullish(z.boolean())
3495
3494
  }) }),
3496
3495
  path: z.object({
3497
3496
  target: z.enum(["objects", "lists"]),
3498
3497
  identifier: z.string(),
3499
3498
  attribute: z.string()
3500
3499
  }),
3501
- query: z.optional(z.never())
3500
+ query: z.nullish(z.never())
3502
3501
  });
3503
3502
  /**
3504
3503
  * Success
3505
3504
  */
3506
3505
  const zPatchV2ByTargetByIdentifierAttributesByAttributeResponse = z.object({ data: zAttribute });
3507
3506
  const zGetV2ByTargetByIdentifierAttributesByAttributeOptionsData = z.object({
3508
- body: z.optional(z.never()),
3507
+ body: z.nullish(z.never()),
3509
3508
  path: z.object({
3510
3509
  target: z.enum(["objects", "lists"]),
3511
3510
  identifier: z.string(),
3512
3511
  attribute: z.string()
3513
3512
  }),
3514
- query: z.optional(z.object({ show_archived: z.optional(z.boolean()) }))
3513
+ query: z.nullish(z.object({ show_archived: z.nullish(z.boolean()) }))
3515
3514
  });
3516
3515
  /**
3517
3516
  * Success
@@ -3524,7 +3523,7 @@ const zPostV2ByTargetByIdentifierAttributesByAttributeOptionsData = z.object({
3524
3523
  identifier: z.string(),
3525
3524
  attribute: z.string()
3526
3525
  }),
3527
- query: z.optional(z.never())
3526
+ query: z.nullish(z.never())
3528
3527
  });
3529
3528
  /**
3530
3529
  * Success
@@ -3532,8 +3531,8 @@ const zPostV2ByTargetByIdentifierAttributesByAttributeOptionsData = z.object({
3532
3531
  const zPostV2ByTargetByIdentifierAttributesByAttributeOptionsResponse = z.object({ data: zSelectOption });
3533
3532
  const zPatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionData = z.object({
3534
3533
  body: z.object({ data: z.object({
3535
- title: z.optional(z.string().min(1)),
3536
- is_archived: z.optional(z.boolean())
3534
+ title: z.nullish(z.string().min(1)),
3535
+ is_archived: z.nullish(z.boolean())
3537
3536
  }) }),
3538
3537
  path: z.object({
3539
3538
  target: z.enum(["objects", "lists"]),
@@ -3541,20 +3540,20 @@ const zPatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionData = z.o
3541
3540
  attribute: z.string(),
3542
3541
  option: z.string()
3543
3542
  }),
3544
- query: z.optional(z.never())
3543
+ query: z.nullish(z.never())
3545
3544
  });
3546
3545
  /**
3547
3546
  * Success
3548
3547
  */
3549
3548
  const zPatchV2ByTargetByIdentifierAttributesByAttributeOptionsByOptionResponse = z.object({ data: zSelectOption });
3550
3549
  const zGetV2ByTargetByIdentifierAttributesByAttributeStatusesData = z.object({
3551
- body: z.optional(z.never()),
3550
+ body: z.nullish(z.never()),
3552
3551
  path: z.object({
3553
3552
  target: z.enum(["lists", "objects"]),
3554
3553
  identifier: z.string(),
3555
3554
  attribute: z.string()
3556
3555
  }),
3557
- query: z.optional(z.object({ show_archived: z.optional(z.boolean()).default(false) }))
3556
+ query: z.nullish(z.object({ show_archived: z.nullish(z.boolean()).default(false) }))
3558
3557
  });
3559
3558
  /**
3560
3559
  * Success
@@ -3563,15 +3562,15 @@ const zGetV2ByTargetByIdentifierAttributesByAttributeStatusesResponse = z.object
3563
3562
  const zPostV2ByTargetByIdentifierAttributesByAttributeStatusesData = z.object({
3564
3563
  body: z.object({ data: z.object({
3565
3564
  title: z.string().min(1),
3566
- celebration_enabled: z.optional(z.boolean()).default(false),
3567
- target_time_in_status: z.optional(z.union([z.string().regex(/P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(?:T(\d+(?:[\.,]\d+)?H)?(\d+(?:[\.,]\d+)?M)?(\d+(?:[\.,]\d+)?S)?)?)/), z.null()]))
3565
+ celebration_enabled: z.nullish(z.boolean()).default(false),
3566
+ target_time_in_status: z.nullish(z.union([z.string().regex(/P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(?:T(\d+(?:[\.,]\d+)?H)?(\d+(?:[\.,]\d+)?M)?(\d+(?:[\.,]\d+)?S)?)?)/), z.null()]))
3568
3567
  }) }),
3569
3568
  path: z.object({
3570
3569
  target: z.enum(["lists", "objects"]),
3571
3570
  identifier: z.string(),
3572
3571
  attribute: z.string()
3573
3572
  }),
3574
- query: z.optional(z.never())
3573
+ query: z.nullish(z.never())
3575
3574
  });
3576
3575
  /**
3577
3576
  * Success
@@ -3579,10 +3578,10 @@ const zPostV2ByTargetByIdentifierAttributesByAttributeStatusesData = z.object({
3579
3578
  const zPostV2ByTargetByIdentifierAttributesByAttributeStatusesResponse = z.object({ data: zStatus });
3580
3579
  const zPatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusData = z.object({
3581
3580
  body: z.object({ data: z.object({
3582
- title: z.optional(z.string().min(1)),
3583
- celebration_enabled: z.optional(z.boolean()).default(false),
3584
- target_time_in_status: z.optional(z.union([z.string().regex(/P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(?:T(\d+(?:[\.,]\d+)?H)?(\d+(?:[\.,]\d+)?M)?(\d+(?:[\.,]\d+)?S)?)?)/), z.null()])),
3585
- is_archived: z.optional(z.boolean())
3581
+ title: z.nullish(z.string().min(1)),
3582
+ celebration_enabled: z.nullish(z.boolean()).default(false),
3583
+ target_time_in_status: z.nullish(z.union([z.string().regex(/P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(?:T(\d+(?:[\.,]\d+)?H)?(\d+(?:[\.,]\d+)?M)?(\d+(?:[\.,]\d+)?S)?)?)/), z.null()])),
3584
+ is_archived: z.nullish(z.boolean())
3586
3585
  }) }),
3587
3586
  path: z.object({
3588
3587
  target: z.enum(["lists", "objects"]),
@@ -3590,7 +3589,7 @@ const zPatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusData = z.
3590
3589
  attribute: z.string(),
3591
3590
  status: z.string()
3592
3591
  }),
3593
- query: z.optional(z.never())
3592
+ query: z.nullish(z.never())
3594
3593
  });
3595
3594
  /**
3596
3595
  * Success
@@ -3598,21 +3597,21 @@ const zPatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusData = z.
3598
3597
  const zPatchV2ByTargetByIdentifierAttributesByAttributeStatusesByStatusResponse = z.object({ data: zStatus });
3599
3598
  const zPostV2ObjectsByObjectRecordsQueryData = z.object({
3600
3599
  body: z.object({
3601
- filter: z.optional(z.record(z.string(), z.unknown())),
3602
- sorts: z.optional(z.array(z.union([z.object({
3600
+ filter: z.nullish(z.record(z.string(), z.unknown())),
3601
+ sorts: z.nullish(z.array(z.union([z.object({
3603
3602
  direction: z.enum(["asc", "desc"]),
3604
3603
  attribute: z.string(),
3605
- field: z.optional(z.string())
3604
+ field: z.nullish(z.string())
3606
3605
  }), z.object({
3607
3606
  direction: z.enum(["asc", "desc"]),
3608
3607
  path: z.array(z.tuple([z.string(), z.string()])),
3609
- field: z.optional(z.string())
3608
+ field: z.nullish(z.string())
3610
3609
  })]))),
3611
- limit: z.optional(z.number()),
3612
- offset: z.optional(z.number())
3610
+ limit: z.nullish(z.number()),
3611
+ offset: z.nullish(z.number())
3613
3612
  }),
3614
3613
  path: z.object({ object: z.string() }),
3615
- query: z.optional(z.never())
3614
+ query: z.nullish(z.never())
3616
3615
  });
3617
3616
  /**
3618
3617
  * Success
@@ -3630,8 +3629,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
3630
3629
  active_from: z.iso.datetime(),
3631
3630
  active_until: z.union([z.iso.datetime(), z.null()]),
3632
3631
  created_by_actor: z.object({
3633
- id: z.optional(z.string()),
3634
- type: z.optional(z.enum([
3632
+ id: z.nullish(z.string()),
3633
+ type: z.nullish(z.enum([
3635
3634
  "api-token",
3636
3635
  "workspace-member",
3637
3636
  "system",
@@ -3651,8 +3650,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
3651
3650
  active_from: z.iso.datetime(),
3652
3651
  active_until: z.union([z.iso.datetime(), z.null()]),
3653
3652
  created_by_actor: z.object({
3654
- id: z.optional(z.string()),
3655
- type: z.optional(z.enum([
3653
+ id: z.nullish(z.string()),
3654
+ type: z.nullish(z.enum([
3656
3655
  "api-token",
3657
3656
  "workspace-member",
3658
3657
  "system",
@@ -3666,8 +3665,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
3666
3665
  active_from: z.iso.datetime(),
3667
3666
  active_until: z.union([z.iso.datetime(), z.null()]),
3668
3667
  created_by_actor: z.object({
3669
- id: z.optional(z.string()),
3670
- type: z.optional(z.enum([
3668
+ id: z.nullish(z.string()),
3669
+ type: z.nullish(z.enum([
3671
3670
  "api-token",
3672
3671
  "workspace-member",
3673
3672
  "system",
@@ -3675,7 +3674,7 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
3675
3674
  ]))
3676
3675
  }),
3677
3676
  currency_value: z.number(),
3678
- currency_code: z.optional(z.enum([
3677
+ currency_code: z.nullish(z.enum([
3679
3678
  "ARS",
3680
3679
  "AUD",
3681
3680
  "BRL",
@@ -3723,8 +3722,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
3723
3722
  active_from: z.iso.datetime(),
3724
3723
  active_until: z.union([z.iso.datetime(), z.null()]),
3725
3724
  created_by_actor: z.object({
3726
- id: z.optional(z.string()),
3727
- type: z.optional(z.enum([
3725
+ id: z.nullish(z.string()),
3726
+ type: z.nullish(z.enum([
3728
3727
  "api-token",
3729
3728
  "workspace-member",
3730
3729
  "system",
@@ -3738,8 +3737,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
3738
3737
  active_from: z.iso.datetime(),
3739
3738
  active_until: z.union([z.iso.datetime(), z.null()]),
3740
3739
  created_by_actor: z.object({
3741
- id: z.optional(z.string()),
3742
- type: z.optional(z.enum([
3740
+ id: z.nullish(z.string()),
3741
+ type: z.nullish(z.enum([
3743
3742
  "api-token",
3744
3743
  "workspace-member",
3745
3744
  "system",
@@ -3754,8 +3753,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
3754
3753
  active_from: z.iso.datetime(),
3755
3754
  active_until: z.union([z.iso.datetime(), z.null()]),
3756
3755
  created_by_actor: z.object({
3757
- id: z.optional(z.string()),
3758
- type: z.optional(z.enum([
3756
+ id: z.nullish(z.string()),
3757
+ type: z.nullish(z.enum([
3759
3758
  "api-token",
3760
3759
  "workspace-member",
3761
3760
  "system",
@@ -3773,8 +3772,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
3773
3772
  active_from: z.iso.datetime(),
3774
3773
  active_until: z.union([z.iso.datetime(), z.null()]),
3775
3774
  created_by_actor: z.object({
3776
- id: z.optional(z.string()),
3777
- type: z.optional(z.enum([
3775
+ id: z.nullish(z.string()),
3776
+ type: z.nullish(z.enum([
3778
3777
  "api-token",
3779
3778
  "workspace-member",
3780
3779
  "system",
@@ -3789,8 +3788,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
3789
3788
  active_from: z.iso.datetime(),
3790
3789
  active_until: z.union([z.iso.datetime(), z.null()]),
3791
3790
  created_by_actor: z.object({
3792
- id: z.optional(z.string()),
3793
- type: z.optional(z.enum([
3791
+ id: z.nullish(z.string()),
3792
+ type: z.nullish(z.enum([
3794
3793
  "api-token",
3795
3794
  "workspace-member",
3796
3795
  "system",
@@ -3807,8 +3806,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
3807
3806
  ]),
3808
3807
  interacted_at: z.iso.datetime(),
3809
3808
  owner_actor: z.object({
3810
- id: z.optional(z.string()),
3811
- type: z.optional(z.enum([
3809
+ id: z.nullish(z.string()),
3810
+ type: z.nullish(z.enum([
3812
3811
  "api-token",
3813
3812
  "workspace-member",
3814
3813
  "system",
@@ -3821,8 +3820,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
3821
3820
  active_from: z.iso.datetime(),
3822
3821
  active_until: z.union([z.iso.datetime(), z.null()]),
3823
3822
  created_by_actor: z.object({
3824
- id: z.optional(z.string()),
3825
- type: z.optional(z.enum([
3823
+ id: z.nullish(z.string()),
3824
+ type: z.nullish(z.enum([
3826
3825
  "api-token",
3827
3826
  "workspace-member",
3828
3827
  "system",
@@ -4098,8 +4097,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
4098
4097
  active_from: z.iso.datetime(),
4099
4098
  active_until: z.union([z.iso.datetime(), z.null()]),
4100
4099
  created_by_actor: z.object({
4101
- id: z.optional(z.string()),
4102
- type: z.optional(z.enum([
4100
+ id: z.nullish(z.string()),
4101
+ type: z.nullish(z.enum([
4103
4102
  "api-token",
4104
4103
  "workspace-member",
4105
4104
  "system",
@@ -4113,8 +4112,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
4113
4112
  active_from: z.iso.datetime(),
4114
4113
  active_until: z.union([z.iso.datetime(), z.null()]),
4115
4114
  created_by_actor: z.object({
4116
- id: z.optional(z.string()),
4117
- type: z.optional(z.enum([
4115
+ id: z.nullish(z.string()),
4116
+ type: z.nullish(z.enum([
4118
4117
  "api-token",
4119
4118
  "workspace-member",
4120
4119
  "system",
@@ -4130,8 +4129,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
4130
4129
  active_from: z.iso.datetime(),
4131
4130
  active_until: z.union([z.iso.datetime(), z.null()]),
4132
4131
  created_by_actor: z.object({
4133
- id: z.optional(z.string()),
4134
- type: z.optional(z.enum([
4132
+ id: z.nullish(z.string()),
4133
+ type: z.nullish(z.enum([
4135
4134
  "api-token",
4136
4135
  "workspace-member",
4137
4136
  "system",
@@ -4400,8 +4399,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
4400
4399
  active_from: z.iso.datetime(),
4401
4400
  active_until: z.union([z.iso.datetime(), z.null()]),
4402
4401
  created_by_actor: z.object({
4403
- id: z.optional(z.string()),
4404
- type: z.optional(z.enum([
4402
+ id: z.nullish(z.string()),
4403
+ type: z.nullish(z.enum([
4405
4404
  "api-token",
4406
4405
  "workspace-member",
4407
4406
  "system",
@@ -4415,8 +4414,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
4415
4414
  active_from: z.iso.datetime(),
4416
4415
  active_until: z.union([z.iso.datetime(), z.null()]),
4417
4416
  created_by_actor: z.object({
4418
- id: z.optional(z.string()),
4419
- type: z.optional(z.enum([
4417
+ id: z.nullish(z.string()),
4418
+ type: z.nullish(z.enum([
4420
4419
  "api-token",
4421
4420
  "workspace-member",
4422
4421
  "system",
@@ -4430,8 +4429,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
4430
4429
  active_from: z.iso.datetime(),
4431
4430
  active_until: z.union([z.iso.datetime(), z.null()]),
4432
4431
  created_by_actor: z.object({
4433
- id: z.optional(z.string()),
4434
- type: z.optional(z.enum([
4432
+ id: z.nullish(z.string()),
4433
+ type: z.nullish(z.enum([
4435
4434
  "api-token",
4436
4435
  "workspace-member",
4437
4436
  "system",
@@ -4445,8 +4444,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
4445
4444
  active_from: z.iso.datetime(),
4446
4445
  active_until: z.union([z.iso.datetime(), z.null()]),
4447
4446
  created_by_actor: z.object({
4448
- id: z.optional(z.string()),
4449
- type: z.optional(z.enum([
4447
+ id: z.nullish(z.string()),
4448
+ type: z.nullish(z.enum([
4450
4449
  "api-token",
4451
4450
  "workspace-member",
4452
4451
  "system",
@@ -4460,8 +4459,8 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
4460
4459
  active_from: z.iso.datetime(),
4461
4460
  active_until: z.union([z.iso.datetime(), z.null()]),
4462
4461
  created_by_actor: z.object({
4463
- id: z.optional(z.string()),
4464
- type: z.optional(z.enum([
4462
+ id: z.nullish(z.string()),
4463
+ type: z.nullish(z.enum([
4465
4464
  "api-token",
4466
4465
  "workspace-member",
4467
4466
  "system",
@@ -4476,7 +4475,7 @@ const zPostV2ObjectsByObjectRecordsQueryResponse = z.object({ data: z.array(z.ob
4476
4475
  const zPostV2ObjectsByObjectRecordsData = z.object({
4477
4476
  body: z.object({ data: z.object({ values: z.record(z.string(), z.array(z.unknown())) }) }),
4478
4477
  path: z.object({ object: z.string() }),
4479
- query: z.optional(z.never())
4478
+ query: z.nullish(z.never())
4480
4479
  });
4481
4480
  /**
4482
4481
  * Success
@@ -4494,8 +4493,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4494
4493
  active_from: z.iso.datetime(),
4495
4494
  active_until: z.union([z.iso.datetime(), z.null()]),
4496
4495
  created_by_actor: z.object({
4497
- id: z.optional(z.string()),
4498
- type: z.optional(z.enum([
4496
+ id: z.nullish(z.string()),
4497
+ type: z.nullish(z.enum([
4499
4498
  "api-token",
4500
4499
  "workspace-member",
4501
4500
  "system",
@@ -4515,8 +4514,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4515
4514
  active_from: z.iso.datetime(),
4516
4515
  active_until: z.union([z.iso.datetime(), z.null()]),
4517
4516
  created_by_actor: z.object({
4518
- id: z.optional(z.string()),
4519
- type: z.optional(z.enum([
4517
+ id: z.nullish(z.string()),
4518
+ type: z.nullish(z.enum([
4520
4519
  "api-token",
4521
4520
  "workspace-member",
4522
4521
  "system",
@@ -4530,8 +4529,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4530
4529
  active_from: z.iso.datetime(),
4531
4530
  active_until: z.union([z.iso.datetime(), z.null()]),
4532
4531
  created_by_actor: z.object({
4533
- id: z.optional(z.string()),
4534
- type: z.optional(z.enum([
4532
+ id: z.nullish(z.string()),
4533
+ type: z.nullish(z.enum([
4535
4534
  "api-token",
4536
4535
  "workspace-member",
4537
4536
  "system",
@@ -4539,7 +4538,7 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4539
4538
  ]))
4540
4539
  }),
4541
4540
  currency_value: z.number(),
4542
- currency_code: z.optional(z.enum([
4541
+ currency_code: z.nullish(z.enum([
4543
4542
  "ARS",
4544
4543
  "AUD",
4545
4544
  "BRL",
@@ -4587,8 +4586,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4587
4586
  active_from: z.iso.datetime(),
4588
4587
  active_until: z.union([z.iso.datetime(), z.null()]),
4589
4588
  created_by_actor: z.object({
4590
- id: z.optional(z.string()),
4591
- type: z.optional(z.enum([
4589
+ id: z.nullish(z.string()),
4590
+ type: z.nullish(z.enum([
4592
4591
  "api-token",
4593
4592
  "workspace-member",
4594
4593
  "system",
@@ -4602,8 +4601,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4602
4601
  active_from: z.iso.datetime(),
4603
4602
  active_until: z.union([z.iso.datetime(), z.null()]),
4604
4603
  created_by_actor: z.object({
4605
- id: z.optional(z.string()),
4606
- type: z.optional(z.enum([
4604
+ id: z.nullish(z.string()),
4605
+ type: z.nullish(z.enum([
4607
4606
  "api-token",
4608
4607
  "workspace-member",
4609
4608
  "system",
@@ -4618,8 +4617,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4618
4617
  active_from: z.iso.datetime(),
4619
4618
  active_until: z.union([z.iso.datetime(), z.null()]),
4620
4619
  created_by_actor: z.object({
4621
- id: z.optional(z.string()),
4622
- type: z.optional(z.enum([
4620
+ id: z.nullish(z.string()),
4621
+ type: z.nullish(z.enum([
4623
4622
  "api-token",
4624
4623
  "workspace-member",
4625
4624
  "system",
@@ -4637,8 +4636,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4637
4636
  active_from: z.iso.datetime(),
4638
4637
  active_until: z.union([z.iso.datetime(), z.null()]),
4639
4638
  created_by_actor: z.object({
4640
- id: z.optional(z.string()),
4641
- type: z.optional(z.enum([
4639
+ id: z.nullish(z.string()),
4640
+ type: z.nullish(z.enum([
4642
4641
  "api-token",
4643
4642
  "workspace-member",
4644
4643
  "system",
@@ -4653,8 +4652,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4653
4652
  active_from: z.iso.datetime(),
4654
4653
  active_until: z.union([z.iso.datetime(), z.null()]),
4655
4654
  created_by_actor: z.object({
4656
- id: z.optional(z.string()),
4657
- type: z.optional(z.enum([
4655
+ id: z.nullish(z.string()),
4656
+ type: z.nullish(z.enum([
4658
4657
  "api-token",
4659
4658
  "workspace-member",
4660
4659
  "system",
@@ -4671,8 +4670,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4671
4670
  ]),
4672
4671
  interacted_at: z.iso.datetime(),
4673
4672
  owner_actor: z.object({
4674
- id: z.optional(z.string()),
4675
- type: z.optional(z.enum([
4673
+ id: z.nullish(z.string()),
4674
+ type: z.nullish(z.enum([
4676
4675
  "api-token",
4677
4676
  "workspace-member",
4678
4677
  "system",
@@ -4685,8 +4684,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4685
4684
  active_from: z.iso.datetime(),
4686
4685
  active_until: z.union([z.iso.datetime(), z.null()]),
4687
4686
  created_by_actor: z.object({
4688
- id: z.optional(z.string()),
4689
- type: z.optional(z.enum([
4687
+ id: z.nullish(z.string()),
4688
+ type: z.nullish(z.enum([
4690
4689
  "api-token",
4691
4690
  "workspace-member",
4692
4691
  "system",
@@ -4962,8 +4961,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4962
4961
  active_from: z.iso.datetime(),
4963
4962
  active_until: z.union([z.iso.datetime(), z.null()]),
4964
4963
  created_by_actor: z.object({
4965
- id: z.optional(z.string()),
4966
- type: z.optional(z.enum([
4964
+ id: z.nullish(z.string()),
4965
+ type: z.nullish(z.enum([
4967
4966
  "api-token",
4968
4967
  "workspace-member",
4969
4968
  "system",
@@ -4977,8 +4976,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4977
4976
  active_from: z.iso.datetime(),
4978
4977
  active_until: z.union([z.iso.datetime(), z.null()]),
4979
4978
  created_by_actor: z.object({
4980
- id: z.optional(z.string()),
4981
- type: z.optional(z.enum([
4979
+ id: z.nullish(z.string()),
4980
+ type: z.nullish(z.enum([
4982
4981
  "api-token",
4983
4982
  "workspace-member",
4984
4983
  "system",
@@ -4994,8 +4993,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
4994
4993
  active_from: z.iso.datetime(),
4995
4994
  active_until: z.union([z.iso.datetime(), z.null()]),
4996
4995
  created_by_actor: z.object({
4997
- id: z.optional(z.string()),
4998
- type: z.optional(z.enum([
4996
+ id: z.nullish(z.string()),
4997
+ type: z.nullish(z.enum([
4999
4998
  "api-token",
5000
4999
  "workspace-member",
5001
5000
  "system",
@@ -5264,8 +5263,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5264
5263
  active_from: z.iso.datetime(),
5265
5264
  active_until: z.union([z.iso.datetime(), z.null()]),
5266
5265
  created_by_actor: z.object({
5267
- id: z.optional(z.string()),
5268
- type: z.optional(z.enum([
5266
+ id: z.nullish(z.string()),
5267
+ type: z.nullish(z.enum([
5269
5268
  "api-token",
5270
5269
  "workspace-member",
5271
5270
  "system",
@@ -5279,8 +5278,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5279
5278
  active_from: z.iso.datetime(),
5280
5279
  active_until: z.union([z.iso.datetime(), z.null()]),
5281
5280
  created_by_actor: z.object({
5282
- id: z.optional(z.string()),
5283
- type: z.optional(z.enum([
5281
+ id: z.nullish(z.string()),
5282
+ type: z.nullish(z.enum([
5284
5283
  "api-token",
5285
5284
  "workspace-member",
5286
5285
  "system",
@@ -5294,8 +5293,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5294
5293
  active_from: z.iso.datetime(),
5295
5294
  active_until: z.union([z.iso.datetime(), z.null()]),
5296
5295
  created_by_actor: z.object({
5297
- id: z.optional(z.string()),
5298
- type: z.optional(z.enum([
5296
+ id: z.nullish(z.string()),
5297
+ type: z.nullish(z.enum([
5299
5298
  "api-token",
5300
5299
  "workspace-member",
5301
5300
  "system",
@@ -5309,8 +5308,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5309
5308
  active_from: z.iso.datetime(),
5310
5309
  active_until: z.union([z.iso.datetime(), z.null()]),
5311
5310
  created_by_actor: z.object({
5312
- id: z.optional(z.string()),
5313
- type: z.optional(z.enum([
5311
+ id: z.nullish(z.string()),
5312
+ type: z.nullish(z.enum([
5314
5313
  "api-token",
5315
5314
  "workspace-member",
5316
5315
  "system",
@@ -5324,8 +5323,8 @@ const zPostV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5324
5323
  active_from: z.iso.datetime(),
5325
5324
  active_until: z.union([z.iso.datetime(), z.null()]),
5326
5325
  created_by_actor: z.object({
5327
- id: z.optional(z.string()),
5328
- type: z.optional(z.enum([
5326
+ id: z.nullish(z.string()),
5327
+ type: z.nullish(z.enum([
5329
5328
  "api-token",
5330
5329
  "workspace-member",
5331
5330
  "system",
@@ -5358,8 +5357,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5358
5357
  active_from: z.iso.datetime(),
5359
5358
  active_until: z.union([z.iso.datetime(), z.null()]),
5360
5359
  created_by_actor: z.object({
5361
- id: z.optional(z.string()),
5362
- type: z.optional(z.enum([
5360
+ id: z.nullish(z.string()),
5361
+ type: z.nullish(z.enum([
5363
5362
  "api-token",
5364
5363
  "workspace-member",
5365
5364
  "system",
@@ -5379,8 +5378,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5379
5378
  active_from: z.iso.datetime(),
5380
5379
  active_until: z.union([z.iso.datetime(), z.null()]),
5381
5380
  created_by_actor: z.object({
5382
- id: z.optional(z.string()),
5383
- type: z.optional(z.enum([
5381
+ id: z.nullish(z.string()),
5382
+ type: z.nullish(z.enum([
5384
5383
  "api-token",
5385
5384
  "workspace-member",
5386
5385
  "system",
@@ -5394,8 +5393,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5394
5393
  active_from: z.iso.datetime(),
5395
5394
  active_until: z.union([z.iso.datetime(), z.null()]),
5396
5395
  created_by_actor: z.object({
5397
- id: z.optional(z.string()),
5398
- type: z.optional(z.enum([
5396
+ id: z.nullish(z.string()),
5397
+ type: z.nullish(z.enum([
5399
5398
  "api-token",
5400
5399
  "workspace-member",
5401
5400
  "system",
@@ -5403,7 +5402,7 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5403
5402
  ]))
5404
5403
  }),
5405
5404
  currency_value: z.number(),
5406
- currency_code: z.optional(z.enum([
5405
+ currency_code: z.nullish(z.enum([
5407
5406
  "ARS",
5408
5407
  "AUD",
5409
5408
  "BRL",
@@ -5451,8 +5450,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5451
5450
  active_from: z.iso.datetime(),
5452
5451
  active_until: z.union([z.iso.datetime(), z.null()]),
5453
5452
  created_by_actor: z.object({
5454
- id: z.optional(z.string()),
5455
- type: z.optional(z.enum([
5453
+ id: z.nullish(z.string()),
5454
+ type: z.nullish(z.enum([
5456
5455
  "api-token",
5457
5456
  "workspace-member",
5458
5457
  "system",
@@ -5466,8 +5465,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5466
5465
  active_from: z.iso.datetime(),
5467
5466
  active_until: z.union([z.iso.datetime(), z.null()]),
5468
5467
  created_by_actor: z.object({
5469
- id: z.optional(z.string()),
5470
- type: z.optional(z.enum([
5468
+ id: z.nullish(z.string()),
5469
+ type: z.nullish(z.enum([
5471
5470
  "api-token",
5472
5471
  "workspace-member",
5473
5472
  "system",
@@ -5482,8 +5481,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5482
5481
  active_from: z.iso.datetime(),
5483
5482
  active_until: z.union([z.iso.datetime(), z.null()]),
5484
5483
  created_by_actor: z.object({
5485
- id: z.optional(z.string()),
5486
- type: z.optional(z.enum([
5484
+ id: z.nullish(z.string()),
5485
+ type: z.nullish(z.enum([
5487
5486
  "api-token",
5488
5487
  "workspace-member",
5489
5488
  "system",
@@ -5501,8 +5500,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5501
5500
  active_from: z.iso.datetime(),
5502
5501
  active_until: z.union([z.iso.datetime(), z.null()]),
5503
5502
  created_by_actor: z.object({
5504
- id: z.optional(z.string()),
5505
- type: z.optional(z.enum([
5503
+ id: z.nullish(z.string()),
5504
+ type: z.nullish(z.enum([
5506
5505
  "api-token",
5507
5506
  "workspace-member",
5508
5507
  "system",
@@ -5517,8 +5516,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5517
5516
  active_from: z.iso.datetime(),
5518
5517
  active_until: z.union([z.iso.datetime(), z.null()]),
5519
5518
  created_by_actor: z.object({
5520
- id: z.optional(z.string()),
5521
- type: z.optional(z.enum([
5519
+ id: z.nullish(z.string()),
5520
+ type: z.nullish(z.enum([
5522
5521
  "api-token",
5523
5522
  "workspace-member",
5524
5523
  "system",
@@ -5535,8 +5534,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5535
5534
  ]),
5536
5535
  interacted_at: z.iso.datetime(),
5537
5536
  owner_actor: z.object({
5538
- id: z.optional(z.string()),
5539
- type: z.optional(z.enum([
5537
+ id: z.nullish(z.string()),
5538
+ type: z.nullish(z.enum([
5540
5539
  "api-token",
5541
5540
  "workspace-member",
5542
5541
  "system",
@@ -5549,8 +5548,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5549
5548
  active_from: z.iso.datetime(),
5550
5549
  active_until: z.union([z.iso.datetime(), z.null()]),
5551
5550
  created_by_actor: z.object({
5552
- id: z.optional(z.string()),
5553
- type: z.optional(z.enum([
5551
+ id: z.nullish(z.string()),
5552
+ type: z.nullish(z.enum([
5554
5553
  "api-token",
5555
5554
  "workspace-member",
5556
5555
  "system",
@@ -5826,8 +5825,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5826
5825
  active_from: z.iso.datetime(),
5827
5826
  active_until: z.union([z.iso.datetime(), z.null()]),
5828
5827
  created_by_actor: z.object({
5829
- id: z.optional(z.string()),
5830
- type: z.optional(z.enum([
5828
+ id: z.nullish(z.string()),
5829
+ type: z.nullish(z.enum([
5831
5830
  "api-token",
5832
5831
  "workspace-member",
5833
5832
  "system",
@@ -5841,8 +5840,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5841
5840
  active_from: z.iso.datetime(),
5842
5841
  active_until: z.union([z.iso.datetime(), z.null()]),
5843
5842
  created_by_actor: z.object({
5844
- id: z.optional(z.string()),
5845
- type: z.optional(z.enum([
5843
+ id: z.nullish(z.string()),
5844
+ type: z.nullish(z.enum([
5846
5845
  "api-token",
5847
5846
  "workspace-member",
5848
5847
  "system",
@@ -5858,8 +5857,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
5858
5857
  active_from: z.iso.datetime(),
5859
5858
  active_until: z.union([z.iso.datetime(), z.null()]),
5860
5859
  created_by_actor: z.object({
5861
- id: z.optional(z.string()),
5862
- type: z.optional(z.enum([
5860
+ id: z.nullish(z.string()),
5861
+ type: z.nullish(z.enum([
5863
5862
  "api-token",
5864
5863
  "workspace-member",
5865
5864
  "system",
@@ -6128,8 +6127,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
6128
6127
  active_from: z.iso.datetime(),
6129
6128
  active_until: z.union([z.iso.datetime(), z.null()]),
6130
6129
  created_by_actor: z.object({
6131
- id: z.optional(z.string()),
6132
- type: z.optional(z.enum([
6130
+ id: z.nullish(z.string()),
6131
+ type: z.nullish(z.enum([
6133
6132
  "api-token",
6134
6133
  "workspace-member",
6135
6134
  "system",
@@ -6143,8 +6142,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
6143
6142
  active_from: z.iso.datetime(),
6144
6143
  active_until: z.union([z.iso.datetime(), z.null()]),
6145
6144
  created_by_actor: z.object({
6146
- id: z.optional(z.string()),
6147
- type: z.optional(z.enum([
6145
+ id: z.nullish(z.string()),
6146
+ type: z.nullish(z.enum([
6148
6147
  "api-token",
6149
6148
  "workspace-member",
6150
6149
  "system",
@@ -6158,8 +6157,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
6158
6157
  active_from: z.iso.datetime(),
6159
6158
  active_until: z.union([z.iso.datetime(), z.null()]),
6160
6159
  created_by_actor: z.object({
6161
- id: z.optional(z.string()),
6162
- type: z.optional(z.enum([
6160
+ id: z.nullish(z.string()),
6161
+ type: z.nullish(z.enum([
6163
6162
  "api-token",
6164
6163
  "workspace-member",
6165
6164
  "system",
@@ -6173,8 +6172,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
6173
6172
  active_from: z.iso.datetime(),
6174
6173
  active_until: z.union([z.iso.datetime(), z.null()]),
6175
6174
  created_by_actor: z.object({
6176
- id: z.optional(z.string()),
6177
- type: z.optional(z.enum([
6175
+ id: z.nullish(z.string()),
6176
+ type: z.nullish(z.enum([
6178
6177
  "api-token",
6179
6178
  "workspace-member",
6180
6179
  "system",
@@ -6188,8 +6187,8 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
6188
6187
  active_from: z.iso.datetime(),
6189
6188
  active_until: z.union([z.iso.datetime(), z.null()]),
6190
6189
  created_by_actor: z.object({
6191
- id: z.optional(z.string()),
6192
- type: z.optional(z.enum([
6190
+ id: z.nullish(z.string()),
6191
+ type: z.nullish(z.enum([
6193
6192
  "api-token",
6194
6193
  "workspace-member",
6195
6194
  "system",
@@ -6202,24 +6201,24 @@ const zPutV2ObjectsByObjectRecordsResponse = z.object({ data: z.object({
6202
6201
  ])))
6203
6202
  }) });
6204
6203
  const zDeleteV2ObjectsByObjectRecordsByRecordIdData = z.object({
6205
- body: z.optional(z.never()),
6204
+ body: z.nullish(z.never()),
6206
6205
  path: z.object({
6207
6206
  object: z.string(),
6208
6207
  record_id: z.string()
6209
6208
  }),
6210
- query: z.optional(z.never())
6209
+ query: z.nullish(z.never())
6211
6210
  });
6212
6211
  /**
6213
6212
  * Success
6214
6213
  */
6215
6214
  const zDeleteV2ObjectsByObjectRecordsByRecordIdResponse = z.record(z.string(), z.unknown());
6216
6215
  const zGetV2ObjectsByObjectRecordsByRecordIdData = z.object({
6217
- body: z.optional(z.never()),
6216
+ body: z.nullish(z.never()),
6218
6217
  path: z.object({
6219
6218
  object: z.string(),
6220
6219
  record_id: z.uuid()
6221
6220
  }),
6222
- query: z.optional(z.never())
6221
+ query: z.nullish(z.never())
6223
6222
  });
6224
6223
  /**
6225
6224
  * Success
@@ -6237,8 +6236,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6237
6236
  active_from: z.iso.datetime(),
6238
6237
  active_until: z.union([z.iso.datetime(), z.null()]),
6239
6238
  created_by_actor: z.object({
6240
- id: z.optional(z.string()),
6241
- type: z.optional(z.enum([
6239
+ id: z.nullish(z.string()),
6240
+ type: z.nullish(z.enum([
6242
6241
  "api-token",
6243
6242
  "workspace-member",
6244
6243
  "system",
@@ -6258,8 +6257,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6258
6257
  active_from: z.iso.datetime(),
6259
6258
  active_until: z.union([z.iso.datetime(), z.null()]),
6260
6259
  created_by_actor: z.object({
6261
- id: z.optional(z.string()),
6262
- type: z.optional(z.enum([
6260
+ id: z.nullish(z.string()),
6261
+ type: z.nullish(z.enum([
6263
6262
  "api-token",
6264
6263
  "workspace-member",
6265
6264
  "system",
@@ -6273,8 +6272,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6273
6272
  active_from: z.iso.datetime(),
6274
6273
  active_until: z.union([z.iso.datetime(), z.null()]),
6275
6274
  created_by_actor: z.object({
6276
- id: z.optional(z.string()),
6277
- type: z.optional(z.enum([
6275
+ id: z.nullish(z.string()),
6276
+ type: z.nullish(z.enum([
6278
6277
  "api-token",
6279
6278
  "workspace-member",
6280
6279
  "system",
@@ -6282,7 +6281,7 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6282
6281
  ]))
6283
6282
  }),
6284
6283
  currency_value: z.number(),
6285
- currency_code: z.optional(z.enum([
6284
+ currency_code: z.nullish(z.enum([
6286
6285
  "ARS",
6287
6286
  "AUD",
6288
6287
  "BRL",
@@ -6330,8 +6329,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6330
6329
  active_from: z.iso.datetime(),
6331
6330
  active_until: z.union([z.iso.datetime(), z.null()]),
6332
6331
  created_by_actor: z.object({
6333
- id: z.optional(z.string()),
6334
- type: z.optional(z.enum([
6332
+ id: z.nullish(z.string()),
6333
+ type: z.nullish(z.enum([
6335
6334
  "api-token",
6336
6335
  "workspace-member",
6337
6336
  "system",
@@ -6345,8 +6344,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6345
6344
  active_from: z.iso.datetime(),
6346
6345
  active_until: z.union([z.iso.datetime(), z.null()]),
6347
6346
  created_by_actor: z.object({
6348
- id: z.optional(z.string()),
6349
- type: z.optional(z.enum([
6347
+ id: z.nullish(z.string()),
6348
+ type: z.nullish(z.enum([
6350
6349
  "api-token",
6351
6350
  "workspace-member",
6352
6351
  "system",
@@ -6361,8 +6360,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6361
6360
  active_from: z.iso.datetime(),
6362
6361
  active_until: z.union([z.iso.datetime(), z.null()]),
6363
6362
  created_by_actor: z.object({
6364
- id: z.optional(z.string()),
6365
- type: z.optional(z.enum([
6363
+ id: z.nullish(z.string()),
6364
+ type: z.nullish(z.enum([
6366
6365
  "api-token",
6367
6366
  "workspace-member",
6368
6367
  "system",
@@ -6380,8 +6379,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6380
6379
  active_from: z.iso.datetime(),
6381
6380
  active_until: z.union([z.iso.datetime(), z.null()]),
6382
6381
  created_by_actor: z.object({
6383
- id: z.optional(z.string()),
6384
- type: z.optional(z.enum([
6382
+ id: z.nullish(z.string()),
6383
+ type: z.nullish(z.enum([
6385
6384
  "api-token",
6386
6385
  "workspace-member",
6387
6386
  "system",
@@ -6396,8 +6395,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6396
6395
  active_from: z.iso.datetime(),
6397
6396
  active_until: z.union([z.iso.datetime(), z.null()]),
6398
6397
  created_by_actor: z.object({
6399
- id: z.optional(z.string()),
6400
- type: z.optional(z.enum([
6398
+ id: z.nullish(z.string()),
6399
+ type: z.nullish(z.enum([
6401
6400
  "api-token",
6402
6401
  "workspace-member",
6403
6402
  "system",
@@ -6414,8 +6413,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6414
6413
  ]),
6415
6414
  interacted_at: z.iso.datetime(),
6416
6415
  owner_actor: z.object({
6417
- id: z.optional(z.string()),
6418
- type: z.optional(z.enum([
6416
+ id: z.nullish(z.string()),
6417
+ type: z.nullish(z.enum([
6419
6418
  "api-token",
6420
6419
  "workspace-member",
6421
6420
  "system",
@@ -6428,8 +6427,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6428
6427
  active_from: z.iso.datetime(),
6429
6428
  active_until: z.union([z.iso.datetime(), z.null()]),
6430
6429
  created_by_actor: z.object({
6431
- id: z.optional(z.string()),
6432
- type: z.optional(z.enum([
6430
+ id: z.nullish(z.string()),
6431
+ type: z.nullish(z.enum([
6433
6432
  "api-token",
6434
6433
  "workspace-member",
6435
6434
  "system",
@@ -6705,8 +6704,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6705
6704
  active_from: z.iso.datetime(),
6706
6705
  active_until: z.union([z.iso.datetime(), z.null()]),
6707
6706
  created_by_actor: z.object({
6708
- id: z.optional(z.string()),
6709
- type: z.optional(z.enum([
6707
+ id: z.nullish(z.string()),
6708
+ type: z.nullish(z.enum([
6710
6709
  "api-token",
6711
6710
  "workspace-member",
6712
6711
  "system",
@@ -6720,8 +6719,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6720
6719
  active_from: z.iso.datetime(),
6721
6720
  active_until: z.union([z.iso.datetime(), z.null()]),
6722
6721
  created_by_actor: z.object({
6723
- id: z.optional(z.string()),
6724
- type: z.optional(z.enum([
6722
+ id: z.nullish(z.string()),
6723
+ type: z.nullish(z.enum([
6725
6724
  "api-token",
6726
6725
  "workspace-member",
6727
6726
  "system",
@@ -6737,8 +6736,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
6737
6736
  active_from: z.iso.datetime(),
6738
6737
  active_until: z.union([z.iso.datetime(), z.null()]),
6739
6738
  created_by_actor: z.object({
6740
- id: z.optional(z.string()),
6741
- type: z.optional(z.enum([
6739
+ id: z.nullish(z.string()),
6740
+ type: z.nullish(z.enum([
6742
6741
  "api-token",
6743
6742
  "workspace-member",
6744
6743
  "system",
@@ -7007,8 +7006,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
7007
7006
  active_from: z.iso.datetime(),
7008
7007
  active_until: z.union([z.iso.datetime(), z.null()]),
7009
7008
  created_by_actor: z.object({
7010
- id: z.optional(z.string()),
7011
- type: z.optional(z.enum([
7009
+ id: z.nullish(z.string()),
7010
+ type: z.nullish(z.enum([
7012
7011
  "api-token",
7013
7012
  "workspace-member",
7014
7013
  "system",
@@ -7022,8 +7021,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
7022
7021
  active_from: z.iso.datetime(),
7023
7022
  active_until: z.union([z.iso.datetime(), z.null()]),
7024
7023
  created_by_actor: z.object({
7025
- id: z.optional(z.string()),
7026
- type: z.optional(z.enum([
7024
+ id: z.nullish(z.string()),
7025
+ type: z.nullish(z.enum([
7027
7026
  "api-token",
7028
7027
  "workspace-member",
7029
7028
  "system",
@@ -7037,8 +7036,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
7037
7036
  active_from: z.iso.datetime(),
7038
7037
  active_until: z.union([z.iso.datetime(), z.null()]),
7039
7038
  created_by_actor: z.object({
7040
- id: z.optional(z.string()),
7041
- type: z.optional(z.enum([
7039
+ id: z.nullish(z.string()),
7040
+ type: z.nullish(z.enum([
7042
7041
  "api-token",
7043
7042
  "workspace-member",
7044
7043
  "system",
@@ -7052,8 +7051,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
7052
7051
  active_from: z.iso.datetime(),
7053
7052
  active_until: z.union([z.iso.datetime(), z.null()]),
7054
7053
  created_by_actor: z.object({
7055
- id: z.optional(z.string()),
7056
- type: z.optional(z.enum([
7054
+ id: z.nullish(z.string()),
7055
+ type: z.nullish(z.enum([
7057
7056
  "api-token",
7058
7057
  "workspace-member",
7059
7058
  "system",
@@ -7067,8 +7066,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
7067
7066
  active_from: z.iso.datetime(),
7068
7067
  active_until: z.union([z.iso.datetime(), z.null()]),
7069
7068
  created_by_actor: z.object({
7070
- id: z.optional(z.string()),
7071
- type: z.optional(z.enum([
7069
+ id: z.nullish(z.string()),
7070
+ type: z.nullish(z.enum([
7072
7071
  "api-token",
7073
7072
  "workspace-member",
7074
7073
  "system",
@@ -7086,7 +7085,7 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdData = z.object({
7086
7085
  object: z.string(),
7087
7086
  record_id: z.string()
7088
7087
  }),
7089
- query: z.optional(z.never())
7088
+ query: z.nullish(z.never())
7090
7089
  });
7091
7090
  /**
7092
7091
  * Success
@@ -7104,8 +7103,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7104
7103
  active_from: z.iso.datetime(),
7105
7104
  active_until: z.union([z.iso.datetime(), z.null()]),
7106
7105
  created_by_actor: z.object({
7107
- id: z.optional(z.string()),
7108
- type: z.optional(z.enum([
7106
+ id: z.nullish(z.string()),
7107
+ type: z.nullish(z.enum([
7109
7108
  "api-token",
7110
7109
  "workspace-member",
7111
7110
  "system",
@@ -7125,8 +7124,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7125
7124
  active_from: z.iso.datetime(),
7126
7125
  active_until: z.union([z.iso.datetime(), z.null()]),
7127
7126
  created_by_actor: z.object({
7128
- id: z.optional(z.string()),
7129
- type: z.optional(z.enum([
7127
+ id: z.nullish(z.string()),
7128
+ type: z.nullish(z.enum([
7130
7129
  "api-token",
7131
7130
  "workspace-member",
7132
7131
  "system",
@@ -7140,8 +7139,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7140
7139
  active_from: z.iso.datetime(),
7141
7140
  active_until: z.union([z.iso.datetime(), z.null()]),
7142
7141
  created_by_actor: z.object({
7143
- id: z.optional(z.string()),
7144
- type: z.optional(z.enum([
7142
+ id: z.nullish(z.string()),
7143
+ type: z.nullish(z.enum([
7145
7144
  "api-token",
7146
7145
  "workspace-member",
7147
7146
  "system",
@@ -7149,7 +7148,7 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7149
7148
  ]))
7150
7149
  }),
7151
7150
  currency_value: z.number(),
7152
- currency_code: z.optional(z.enum([
7151
+ currency_code: z.nullish(z.enum([
7153
7152
  "ARS",
7154
7153
  "AUD",
7155
7154
  "BRL",
@@ -7197,8 +7196,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7197
7196
  active_from: z.iso.datetime(),
7198
7197
  active_until: z.union([z.iso.datetime(), z.null()]),
7199
7198
  created_by_actor: z.object({
7200
- id: z.optional(z.string()),
7201
- type: z.optional(z.enum([
7199
+ id: z.nullish(z.string()),
7200
+ type: z.nullish(z.enum([
7202
7201
  "api-token",
7203
7202
  "workspace-member",
7204
7203
  "system",
@@ -7212,8 +7211,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7212
7211
  active_from: z.iso.datetime(),
7213
7212
  active_until: z.union([z.iso.datetime(), z.null()]),
7214
7213
  created_by_actor: z.object({
7215
- id: z.optional(z.string()),
7216
- type: z.optional(z.enum([
7214
+ id: z.nullish(z.string()),
7215
+ type: z.nullish(z.enum([
7217
7216
  "api-token",
7218
7217
  "workspace-member",
7219
7218
  "system",
@@ -7228,8 +7227,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7228
7227
  active_from: z.iso.datetime(),
7229
7228
  active_until: z.union([z.iso.datetime(), z.null()]),
7230
7229
  created_by_actor: z.object({
7231
- id: z.optional(z.string()),
7232
- type: z.optional(z.enum([
7230
+ id: z.nullish(z.string()),
7231
+ type: z.nullish(z.enum([
7233
7232
  "api-token",
7234
7233
  "workspace-member",
7235
7234
  "system",
@@ -7247,8 +7246,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7247
7246
  active_from: z.iso.datetime(),
7248
7247
  active_until: z.union([z.iso.datetime(), z.null()]),
7249
7248
  created_by_actor: z.object({
7250
- id: z.optional(z.string()),
7251
- type: z.optional(z.enum([
7249
+ id: z.nullish(z.string()),
7250
+ type: z.nullish(z.enum([
7252
7251
  "api-token",
7253
7252
  "workspace-member",
7254
7253
  "system",
@@ -7263,8 +7262,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7263
7262
  active_from: z.iso.datetime(),
7264
7263
  active_until: z.union([z.iso.datetime(), z.null()]),
7265
7264
  created_by_actor: z.object({
7266
- id: z.optional(z.string()),
7267
- type: z.optional(z.enum([
7265
+ id: z.nullish(z.string()),
7266
+ type: z.nullish(z.enum([
7268
7267
  "api-token",
7269
7268
  "workspace-member",
7270
7269
  "system",
@@ -7281,8 +7280,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7281
7280
  ]),
7282
7281
  interacted_at: z.iso.datetime(),
7283
7282
  owner_actor: z.object({
7284
- id: z.optional(z.string()),
7285
- type: z.optional(z.enum([
7283
+ id: z.nullish(z.string()),
7284
+ type: z.nullish(z.enum([
7286
7285
  "api-token",
7287
7286
  "workspace-member",
7288
7287
  "system",
@@ -7295,8 +7294,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7295
7294
  active_from: z.iso.datetime(),
7296
7295
  active_until: z.union([z.iso.datetime(), z.null()]),
7297
7296
  created_by_actor: z.object({
7298
- id: z.optional(z.string()),
7299
- type: z.optional(z.enum([
7297
+ id: z.nullish(z.string()),
7298
+ type: z.nullish(z.enum([
7300
7299
  "api-token",
7301
7300
  "workspace-member",
7302
7301
  "system",
@@ -7572,8 +7571,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7572
7571
  active_from: z.iso.datetime(),
7573
7572
  active_until: z.union([z.iso.datetime(), z.null()]),
7574
7573
  created_by_actor: z.object({
7575
- id: z.optional(z.string()),
7576
- type: z.optional(z.enum([
7574
+ id: z.nullish(z.string()),
7575
+ type: z.nullish(z.enum([
7577
7576
  "api-token",
7578
7577
  "workspace-member",
7579
7578
  "system",
@@ -7587,8 +7586,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7587
7586
  active_from: z.iso.datetime(),
7588
7587
  active_until: z.union([z.iso.datetime(), z.null()]),
7589
7588
  created_by_actor: z.object({
7590
- id: z.optional(z.string()),
7591
- type: z.optional(z.enum([
7589
+ id: z.nullish(z.string()),
7590
+ type: z.nullish(z.enum([
7592
7591
  "api-token",
7593
7592
  "workspace-member",
7594
7593
  "system",
@@ -7604,8 +7603,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7604
7603
  active_from: z.iso.datetime(),
7605
7604
  active_until: z.union([z.iso.datetime(), z.null()]),
7606
7605
  created_by_actor: z.object({
7607
- id: z.optional(z.string()),
7608
- type: z.optional(z.enum([
7606
+ id: z.nullish(z.string()),
7607
+ type: z.nullish(z.enum([
7609
7608
  "api-token",
7610
7609
  "workspace-member",
7611
7610
  "system",
@@ -7874,8 +7873,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7874
7873
  active_from: z.iso.datetime(),
7875
7874
  active_until: z.union([z.iso.datetime(), z.null()]),
7876
7875
  created_by_actor: z.object({
7877
- id: z.optional(z.string()),
7878
- type: z.optional(z.enum([
7876
+ id: z.nullish(z.string()),
7877
+ type: z.nullish(z.enum([
7879
7878
  "api-token",
7880
7879
  "workspace-member",
7881
7880
  "system",
@@ -7889,8 +7888,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7889
7888
  active_from: z.iso.datetime(),
7890
7889
  active_until: z.union([z.iso.datetime(), z.null()]),
7891
7890
  created_by_actor: z.object({
7892
- id: z.optional(z.string()),
7893
- type: z.optional(z.enum([
7891
+ id: z.nullish(z.string()),
7892
+ type: z.nullish(z.enum([
7894
7893
  "api-token",
7895
7894
  "workspace-member",
7896
7895
  "system",
@@ -7904,8 +7903,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7904
7903
  active_from: z.iso.datetime(),
7905
7904
  active_until: z.union([z.iso.datetime(), z.null()]),
7906
7905
  created_by_actor: z.object({
7907
- id: z.optional(z.string()),
7908
- type: z.optional(z.enum([
7906
+ id: z.nullish(z.string()),
7907
+ type: z.nullish(z.enum([
7909
7908
  "api-token",
7910
7909
  "workspace-member",
7911
7910
  "system",
@@ -7919,8 +7918,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7919
7918
  active_from: z.iso.datetime(),
7920
7919
  active_until: z.union([z.iso.datetime(), z.null()]),
7921
7920
  created_by_actor: z.object({
7922
- id: z.optional(z.string()),
7923
- type: z.optional(z.enum([
7921
+ id: z.nullish(z.string()),
7922
+ type: z.nullish(z.enum([
7924
7923
  "api-token",
7925
7924
  "workspace-member",
7926
7925
  "system",
@@ -7934,8 +7933,8 @@ const zPatchV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.obje
7934
7933
  active_from: z.iso.datetime(),
7935
7934
  active_until: z.union([z.iso.datetime(), z.null()]),
7936
7935
  created_by_actor: z.object({
7937
- id: z.optional(z.string()),
7938
- type: z.optional(z.enum([
7936
+ id: z.nullish(z.string()),
7937
+ type: z.nullish(z.enum([
7939
7938
  "api-token",
7940
7939
  "workspace-member",
7941
7940
  "system",
@@ -7953,7 +7952,7 @@ const zPutV2ObjectsByObjectRecordsByRecordIdData = z.object({
7953
7952
  object: z.string(),
7954
7953
  record_id: z.string()
7955
7954
  }),
7956
- query: z.optional(z.never())
7955
+ query: z.nullish(z.never())
7957
7956
  });
7958
7957
  /**
7959
7958
  * Success
@@ -7971,8 +7970,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
7971
7970
  active_from: z.iso.datetime(),
7972
7971
  active_until: z.union([z.iso.datetime(), z.null()]),
7973
7972
  created_by_actor: z.object({
7974
- id: z.optional(z.string()),
7975
- type: z.optional(z.enum([
7973
+ id: z.nullish(z.string()),
7974
+ type: z.nullish(z.enum([
7976
7975
  "api-token",
7977
7976
  "workspace-member",
7978
7977
  "system",
@@ -7992,8 +7991,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
7992
7991
  active_from: z.iso.datetime(),
7993
7992
  active_until: z.union([z.iso.datetime(), z.null()]),
7994
7993
  created_by_actor: z.object({
7995
- id: z.optional(z.string()),
7996
- type: z.optional(z.enum([
7994
+ id: z.nullish(z.string()),
7995
+ type: z.nullish(z.enum([
7997
7996
  "api-token",
7998
7997
  "workspace-member",
7999
7998
  "system",
@@ -8007,8 +8006,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8007
8006
  active_from: z.iso.datetime(),
8008
8007
  active_until: z.union([z.iso.datetime(), z.null()]),
8009
8008
  created_by_actor: z.object({
8010
- id: z.optional(z.string()),
8011
- type: z.optional(z.enum([
8009
+ id: z.nullish(z.string()),
8010
+ type: z.nullish(z.enum([
8012
8011
  "api-token",
8013
8012
  "workspace-member",
8014
8013
  "system",
@@ -8016,7 +8015,7 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8016
8015
  ]))
8017
8016
  }),
8018
8017
  currency_value: z.number(),
8019
- currency_code: z.optional(z.enum([
8018
+ currency_code: z.nullish(z.enum([
8020
8019
  "ARS",
8021
8020
  "AUD",
8022
8021
  "BRL",
@@ -8064,8 +8063,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8064
8063
  active_from: z.iso.datetime(),
8065
8064
  active_until: z.union([z.iso.datetime(), z.null()]),
8066
8065
  created_by_actor: z.object({
8067
- id: z.optional(z.string()),
8068
- type: z.optional(z.enum([
8066
+ id: z.nullish(z.string()),
8067
+ type: z.nullish(z.enum([
8069
8068
  "api-token",
8070
8069
  "workspace-member",
8071
8070
  "system",
@@ -8079,8 +8078,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8079
8078
  active_from: z.iso.datetime(),
8080
8079
  active_until: z.union([z.iso.datetime(), z.null()]),
8081
8080
  created_by_actor: z.object({
8082
- id: z.optional(z.string()),
8083
- type: z.optional(z.enum([
8081
+ id: z.nullish(z.string()),
8082
+ type: z.nullish(z.enum([
8084
8083
  "api-token",
8085
8084
  "workspace-member",
8086
8085
  "system",
@@ -8095,8 +8094,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8095
8094
  active_from: z.iso.datetime(),
8096
8095
  active_until: z.union([z.iso.datetime(), z.null()]),
8097
8096
  created_by_actor: z.object({
8098
- id: z.optional(z.string()),
8099
- type: z.optional(z.enum([
8097
+ id: z.nullish(z.string()),
8098
+ type: z.nullish(z.enum([
8100
8099
  "api-token",
8101
8100
  "workspace-member",
8102
8101
  "system",
@@ -8114,8 +8113,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8114
8113
  active_from: z.iso.datetime(),
8115
8114
  active_until: z.union([z.iso.datetime(), z.null()]),
8116
8115
  created_by_actor: z.object({
8117
- id: z.optional(z.string()),
8118
- type: z.optional(z.enum([
8116
+ id: z.nullish(z.string()),
8117
+ type: z.nullish(z.enum([
8119
8118
  "api-token",
8120
8119
  "workspace-member",
8121
8120
  "system",
@@ -8130,8 +8129,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8130
8129
  active_from: z.iso.datetime(),
8131
8130
  active_until: z.union([z.iso.datetime(), z.null()]),
8132
8131
  created_by_actor: z.object({
8133
- id: z.optional(z.string()),
8134
- type: z.optional(z.enum([
8132
+ id: z.nullish(z.string()),
8133
+ type: z.nullish(z.enum([
8135
8134
  "api-token",
8136
8135
  "workspace-member",
8137
8136
  "system",
@@ -8148,8 +8147,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8148
8147
  ]),
8149
8148
  interacted_at: z.iso.datetime(),
8150
8149
  owner_actor: z.object({
8151
- id: z.optional(z.string()),
8152
- type: z.optional(z.enum([
8150
+ id: z.nullish(z.string()),
8151
+ type: z.nullish(z.enum([
8153
8152
  "api-token",
8154
8153
  "workspace-member",
8155
8154
  "system",
@@ -8162,8 +8161,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8162
8161
  active_from: z.iso.datetime(),
8163
8162
  active_until: z.union([z.iso.datetime(), z.null()]),
8164
8163
  created_by_actor: z.object({
8165
- id: z.optional(z.string()),
8166
- type: z.optional(z.enum([
8164
+ id: z.nullish(z.string()),
8165
+ type: z.nullish(z.enum([
8167
8166
  "api-token",
8168
8167
  "workspace-member",
8169
8168
  "system",
@@ -8439,8 +8438,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8439
8438
  active_from: z.iso.datetime(),
8440
8439
  active_until: z.union([z.iso.datetime(), z.null()]),
8441
8440
  created_by_actor: z.object({
8442
- id: z.optional(z.string()),
8443
- type: z.optional(z.enum([
8441
+ id: z.nullish(z.string()),
8442
+ type: z.nullish(z.enum([
8444
8443
  "api-token",
8445
8444
  "workspace-member",
8446
8445
  "system",
@@ -8454,8 +8453,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8454
8453
  active_from: z.iso.datetime(),
8455
8454
  active_until: z.union([z.iso.datetime(), z.null()]),
8456
8455
  created_by_actor: z.object({
8457
- id: z.optional(z.string()),
8458
- type: z.optional(z.enum([
8456
+ id: z.nullish(z.string()),
8457
+ type: z.nullish(z.enum([
8459
8458
  "api-token",
8460
8459
  "workspace-member",
8461
8460
  "system",
@@ -8471,8 +8470,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8471
8470
  active_from: z.iso.datetime(),
8472
8471
  active_until: z.union([z.iso.datetime(), z.null()]),
8473
8472
  created_by_actor: z.object({
8474
- id: z.optional(z.string()),
8475
- type: z.optional(z.enum([
8473
+ id: z.nullish(z.string()),
8474
+ type: z.nullish(z.enum([
8476
8475
  "api-token",
8477
8476
  "workspace-member",
8478
8477
  "system",
@@ -8741,8 +8740,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8741
8740
  active_from: z.iso.datetime(),
8742
8741
  active_until: z.union([z.iso.datetime(), z.null()]),
8743
8742
  created_by_actor: z.object({
8744
- id: z.optional(z.string()),
8745
- type: z.optional(z.enum([
8743
+ id: z.nullish(z.string()),
8744
+ type: z.nullish(z.enum([
8746
8745
  "api-token",
8747
8746
  "workspace-member",
8748
8747
  "system",
@@ -8756,8 +8755,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8756
8755
  active_from: z.iso.datetime(),
8757
8756
  active_until: z.union([z.iso.datetime(), z.null()]),
8758
8757
  created_by_actor: z.object({
8759
- id: z.optional(z.string()),
8760
- type: z.optional(z.enum([
8758
+ id: z.nullish(z.string()),
8759
+ type: z.nullish(z.enum([
8761
8760
  "api-token",
8762
8761
  "workspace-member",
8763
8762
  "system",
@@ -8771,8 +8770,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8771
8770
  active_from: z.iso.datetime(),
8772
8771
  active_until: z.union([z.iso.datetime(), z.null()]),
8773
8772
  created_by_actor: z.object({
8774
- id: z.optional(z.string()),
8775
- type: z.optional(z.enum([
8773
+ id: z.nullish(z.string()),
8774
+ type: z.nullish(z.enum([
8776
8775
  "api-token",
8777
8776
  "workspace-member",
8778
8777
  "system",
@@ -8786,8 +8785,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8786
8785
  active_from: z.iso.datetime(),
8787
8786
  active_until: z.union([z.iso.datetime(), z.null()]),
8788
8787
  created_by_actor: z.object({
8789
- id: z.optional(z.string()),
8790
- type: z.optional(z.enum([
8788
+ id: z.nullish(z.string()),
8789
+ type: z.nullish(z.enum([
8791
8790
  "api-token",
8792
8791
  "workspace-member",
8793
8792
  "system",
@@ -8801,8 +8800,8 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8801
8800
  active_from: z.iso.datetime(),
8802
8801
  active_until: z.union([z.iso.datetime(), z.null()]),
8803
8802
  created_by_actor: z.object({
8804
- id: z.optional(z.string()),
8805
- type: z.optional(z.enum([
8803
+ id: z.nullish(z.string()),
8804
+ type: z.nullish(z.enum([
8806
8805
  "api-token",
8807
8806
  "workspace-member",
8808
8807
  "system",
@@ -8815,16 +8814,16 @@ const zPutV2ObjectsByObjectRecordsByRecordIdResponse = z.object({ data: z.object
8815
8814
  ])))
8816
8815
  }) });
8817
8816
  const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesData = z.object({
8818
- body: z.optional(z.never()),
8817
+ body: z.nullish(z.never()),
8819
8818
  path: z.object({
8820
8819
  object: z.string(),
8821
8820
  record_id: z.uuid(),
8822
8821
  attribute: z.string()
8823
8822
  }),
8824
- query: z.optional(z.object({
8825
- show_historic: z.optional(z.boolean()).default(false),
8826
- limit: z.optional(z.int()),
8827
- offset: z.optional(z.int())
8823
+ query: z.nullish(z.object({
8824
+ show_historic: z.nullish(z.boolean()).default(false),
8825
+ limit: z.nullish(z.int()),
8826
+ offset: z.nullish(z.int())
8828
8827
  }))
8829
8828
  });
8830
8829
  /**
@@ -8835,8 +8834,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
8835
8834
  active_from: z.iso.datetime(),
8836
8835
  active_until: z.union([z.iso.datetime(), z.null()]),
8837
8836
  created_by_actor: z.object({
8838
- id: z.optional(z.string()),
8839
- type: z.optional(z.enum([
8837
+ id: z.nullish(z.string()),
8838
+ type: z.nullish(z.enum([
8840
8839
  "api-token",
8841
8840
  "workspace-member",
8842
8841
  "system",
@@ -8856,8 +8855,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
8856
8855
  active_from: z.iso.datetime(),
8857
8856
  active_until: z.union([z.iso.datetime(), z.null()]),
8858
8857
  created_by_actor: z.object({
8859
- id: z.optional(z.string()),
8860
- type: z.optional(z.enum([
8858
+ id: z.nullish(z.string()),
8859
+ type: z.nullish(z.enum([
8861
8860
  "api-token",
8862
8861
  "workspace-member",
8863
8862
  "system",
@@ -8871,8 +8870,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
8871
8870
  active_from: z.iso.datetime(),
8872
8871
  active_until: z.union([z.iso.datetime(), z.null()]),
8873
8872
  created_by_actor: z.object({
8874
- id: z.optional(z.string()),
8875
- type: z.optional(z.enum([
8873
+ id: z.nullish(z.string()),
8874
+ type: z.nullish(z.enum([
8876
8875
  "api-token",
8877
8876
  "workspace-member",
8878
8877
  "system",
@@ -8880,7 +8879,7 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
8880
8879
  ]))
8881
8880
  }),
8882
8881
  currency_value: z.number(),
8883
- currency_code: z.optional(z.enum([
8882
+ currency_code: z.nullish(z.enum([
8884
8883
  "ARS",
8885
8884
  "AUD",
8886
8885
  "BRL",
@@ -8928,8 +8927,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
8928
8927
  active_from: z.iso.datetime(),
8929
8928
  active_until: z.union([z.iso.datetime(), z.null()]),
8930
8929
  created_by_actor: z.object({
8931
- id: z.optional(z.string()),
8932
- type: z.optional(z.enum([
8930
+ id: z.nullish(z.string()),
8931
+ type: z.nullish(z.enum([
8933
8932
  "api-token",
8934
8933
  "workspace-member",
8935
8934
  "system",
@@ -8943,8 +8942,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
8943
8942
  active_from: z.iso.datetime(),
8944
8943
  active_until: z.union([z.iso.datetime(), z.null()]),
8945
8944
  created_by_actor: z.object({
8946
- id: z.optional(z.string()),
8947
- type: z.optional(z.enum([
8945
+ id: z.nullish(z.string()),
8946
+ type: z.nullish(z.enum([
8948
8947
  "api-token",
8949
8948
  "workspace-member",
8950
8949
  "system",
@@ -8959,8 +8958,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
8959
8958
  active_from: z.iso.datetime(),
8960
8959
  active_until: z.union([z.iso.datetime(), z.null()]),
8961
8960
  created_by_actor: z.object({
8962
- id: z.optional(z.string()),
8963
- type: z.optional(z.enum([
8961
+ id: z.nullish(z.string()),
8962
+ type: z.nullish(z.enum([
8964
8963
  "api-token",
8965
8964
  "workspace-member",
8966
8965
  "system",
@@ -8978,8 +8977,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
8978
8977
  active_from: z.iso.datetime(),
8979
8978
  active_until: z.union([z.iso.datetime(), z.null()]),
8980
8979
  created_by_actor: z.object({
8981
- id: z.optional(z.string()),
8982
- type: z.optional(z.enum([
8980
+ id: z.nullish(z.string()),
8981
+ type: z.nullish(z.enum([
8983
8982
  "api-token",
8984
8983
  "workspace-member",
8985
8984
  "system",
@@ -8994,8 +8993,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
8994
8993
  active_from: z.iso.datetime(),
8995
8994
  active_until: z.union([z.iso.datetime(), z.null()]),
8996
8995
  created_by_actor: z.object({
8997
- id: z.optional(z.string()),
8998
- type: z.optional(z.enum([
8996
+ id: z.nullish(z.string()),
8997
+ type: z.nullish(z.enum([
8999
8998
  "api-token",
9000
8999
  "workspace-member",
9001
9000
  "system",
@@ -9012,8 +9011,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
9012
9011
  ]),
9013
9012
  interacted_at: z.iso.datetime(),
9014
9013
  owner_actor: z.object({
9015
- id: z.optional(z.string()),
9016
- type: z.optional(z.enum([
9014
+ id: z.nullish(z.string()),
9015
+ type: z.nullish(z.enum([
9017
9016
  "api-token",
9018
9017
  "workspace-member",
9019
9018
  "system",
@@ -9026,8 +9025,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
9026
9025
  active_from: z.iso.datetime(),
9027
9026
  active_until: z.union([z.iso.datetime(), z.null()]),
9028
9027
  created_by_actor: z.object({
9029
- id: z.optional(z.string()),
9030
- type: z.optional(z.enum([
9028
+ id: z.nullish(z.string()),
9029
+ type: z.nullish(z.enum([
9031
9030
  "api-token",
9032
9031
  "workspace-member",
9033
9032
  "system",
@@ -9303,8 +9302,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
9303
9302
  active_from: z.iso.datetime(),
9304
9303
  active_until: z.union([z.iso.datetime(), z.null()]),
9305
9304
  created_by_actor: z.object({
9306
- id: z.optional(z.string()),
9307
- type: z.optional(z.enum([
9305
+ id: z.nullish(z.string()),
9306
+ type: z.nullish(z.enum([
9308
9307
  "api-token",
9309
9308
  "workspace-member",
9310
9309
  "system",
@@ -9318,8 +9317,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
9318
9317
  active_from: z.iso.datetime(),
9319
9318
  active_until: z.union([z.iso.datetime(), z.null()]),
9320
9319
  created_by_actor: z.object({
9321
- id: z.optional(z.string()),
9322
- type: z.optional(z.enum([
9320
+ id: z.nullish(z.string()),
9321
+ type: z.nullish(z.enum([
9323
9322
  "api-token",
9324
9323
  "workspace-member",
9325
9324
  "system",
@@ -9335,8 +9334,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
9335
9334
  active_from: z.iso.datetime(),
9336
9335
  active_until: z.union([z.iso.datetime(), z.null()]),
9337
9336
  created_by_actor: z.object({
9338
- id: z.optional(z.string()),
9339
- type: z.optional(z.enum([
9337
+ id: z.nullish(z.string()),
9338
+ type: z.nullish(z.enum([
9340
9339
  "api-token",
9341
9340
  "workspace-member",
9342
9341
  "system",
@@ -9605,8 +9604,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
9605
9604
  active_from: z.iso.datetime(),
9606
9605
  active_until: z.union([z.iso.datetime(), z.null()]),
9607
9606
  created_by_actor: z.object({
9608
- id: z.optional(z.string()),
9609
- type: z.optional(z.enum([
9607
+ id: z.nullish(z.string()),
9608
+ type: z.nullish(z.enum([
9610
9609
  "api-token",
9611
9610
  "workspace-member",
9612
9611
  "system",
@@ -9620,8 +9619,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
9620
9619
  active_from: z.iso.datetime(),
9621
9620
  active_until: z.union([z.iso.datetime(), z.null()]),
9622
9621
  created_by_actor: z.object({
9623
- id: z.optional(z.string()),
9624
- type: z.optional(z.enum([
9622
+ id: z.nullish(z.string()),
9623
+ type: z.nullish(z.enum([
9625
9624
  "api-token",
9626
9625
  "workspace-member",
9627
9626
  "system",
@@ -9635,8 +9634,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
9635
9634
  active_from: z.iso.datetime(),
9636
9635
  active_until: z.union([z.iso.datetime(), z.null()]),
9637
9636
  created_by_actor: z.object({
9638
- id: z.optional(z.string()),
9639
- type: z.optional(z.enum([
9637
+ id: z.nullish(z.string()),
9638
+ type: z.nullish(z.enum([
9640
9639
  "api-token",
9641
9640
  "workspace-member",
9642
9641
  "system",
@@ -9650,8 +9649,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
9650
9649
  active_from: z.iso.datetime(),
9651
9650
  active_until: z.union([z.iso.datetime(), z.null()]),
9652
9651
  created_by_actor: z.object({
9653
- id: z.optional(z.string()),
9654
- type: z.optional(z.enum([
9652
+ id: z.nullish(z.string()),
9653
+ type: z.nullish(z.enum([
9655
9654
  "api-token",
9656
9655
  "workspace-member",
9657
9656
  "system",
@@ -9665,8 +9664,8 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
9665
9664
  active_from: z.iso.datetime(),
9666
9665
  active_until: z.union([z.iso.datetime(), z.null()]),
9667
9666
  created_by_actor: z.object({
9668
- id: z.optional(z.string()),
9669
- type: z.optional(z.enum([
9667
+ id: z.nullish(z.string()),
9668
+ type: z.nullish(z.enum([
9670
9669
  "api-token",
9671
9670
  "workspace-member",
9672
9671
  "system",
@@ -9678,14 +9677,14 @@ const zGetV2ObjectsByObjectRecordsByRecordIdAttributesByAttributeValuesResponse
9678
9677
  })
9679
9678
  ])) });
9680
9679
  const zGetV2ObjectsByObjectRecordsByRecordIdEntriesData = z.object({
9681
- body: z.optional(z.never()),
9680
+ body: z.nullish(z.never()),
9682
9681
  path: z.object({
9683
9682
  object: z.string(),
9684
9683
  record_id: z.uuid()
9685
9684
  }),
9686
- query: z.optional(z.object({
9687
- limit: z.optional(z.int()),
9688
- offset: z.optional(z.int())
9685
+ query: z.nullish(z.object({
9686
+ limit: z.nullish(z.int()),
9687
+ offset: z.nullish(z.int())
9689
9688
  }))
9690
9689
  });
9691
9690
  /**
@@ -9700,7 +9699,7 @@ const zGetV2ObjectsByObjectRecordsByRecordIdEntriesResponse = z.object({ data: z
9700
9699
  const zPostV2ObjectsRecordsSearchData = z.object({
9701
9700
  body: z.object({
9702
9701
  query: z.string().max(256),
9703
- limit: z.optional(z.number().gte(1).lte(25)).default(25),
9702
+ limit: z.nullish(z.number().gte(1).lte(25)).default(25),
9704
9703
  objects: z.array(z.string()).min(1),
9705
9704
  request_as: z.union([
9706
9705
  z.object({ type: z.enum(["workspace"]) }),
@@ -9714,8 +9713,8 @@ const zPostV2ObjectsRecordsSearchData = z.object({
9714
9713
  })
9715
9714
  ])
9716
9715
  }),
9717
- path: z.optional(z.never()),
9718
- query: z.optional(z.never())
9716
+ path: z.nullish(z.never()),
9717
+ query: z.nullish(z.never())
9719
9718
  });
9720
9719
  /**
9721
9720
  * Success
@@ -9756,9 +9755,9 @@ const zPostV2ObjectsRecordsSearchResponse = z.object({ data: z.array(z.union([
9756
9755
  })
9757
9756
  ])) });
9758
9757
  const zGetV2ListsData = z.object({
9759
- body: z.optional(z.never()),
9760
- path: z.optional(z.never()),
9761
- query: z.optional(z.never())
9758
+ body: z.nullish(z.never()),
9759
+ path: z.nullish(z.never()),
9760
+ query: z.nullish(z.never())
9762
9761
  });
9763
9762
  /**
9764
9763
  * Success
@@ -9783,17 +9782,17 @@ const zPostV2ListsData = z.object({
9783
9782
  ])
9784
9783
  }))
9785
9784
  }) }),
9786
- path: z.optional(z.never()),
9787
- query: z.optional(z.never())
9785
+ path: z.nullish(z.never()),
9786
+ query: z.nullish(z.never())
9788
9787
  });
9789
9788
  /**
9790
9789
  * Success
9791
9790
  */
9792
9791
  const zPostV2ListsResponse = z.object({ data: zList });
9793
9792
  const zGetV2ListsByListData = z.object({
9794
- body: z.optional(z.never()),
9793
+ body: z.nullish(z.never()),
9795
9794
  path: z.object({ list: z.string() }),
9796
- query: z.optional(z.never())
9795
+ query: z.nullish(z.never())
9797
9796
  });
9798
9797
  /**
9799
9798
  * Success
@@ -9801,14 +9800,14 @@ const zGetV2ListsByListData = z.object({
9801
9800
  const zGetV2ListsByListResponse = z.object({ data: zList });
9802
9801
  const zPatchV2ListsByListData = z.object({
9803
9802
  body: z.object({ data: z.object({
9804
- name: z.optional(z.string()),
9805
- api_slug: z.optional(z.string()),
9806
- workspace_access: z.optional(z.enum([
9803
+ name: z.nullish(z.string()),
9804
+ api_slug: z.nullish(z.string()),
9805
+ workspace_access: z.nullish(z.enum([
9807
9806
  "full-access",
9808
9807
  "read-and-write",
9809
9808
  "read-only"
9810
9809
  ])),
9811
- workspace_member_access: z.optional(z.array(z.object({
9810
+ workspace_member_access: z.nullish(z.array(z.object({
9812
9811
  workspace_member_id: z.uuid(),
9813
9812
  level: z.enum([
9814
9813
  "full-access",
@@ -9818,7 +9817,7 @@ const zPatchV2ListsByListData = z.object({
9818
9817
  })))
9819
9818
  }) }),
9820
9819
  path: z.object({ list: z.string() }),
9821
- query: z.optional(z.never())
9820
+ query: z.nullish(z.never())
9822
9821
  });
9823
9822
  /**
9824
9823
  * Success
@@ -9826,21 +9825,21 @@ const zPatchV2ListsByListData = z.object({
9826
9825
  const zPatchV2ListsByListResponse = z.object({ data: zList });
9827
9826
  const zPostV2ListsByListEntriesQueryData = z.object({
9828
9827
  body: z.object({
9829
- filter: z.optional(z.record(z.string(), z.unknown())),
9830
- sorts: z.optional(z.array(z.union([z.object({
9828
+ filter: z.nullish(z.record(z.string(), z.unknown())),
9829
+ sorts: z.nullish(z.array(z.union([z.object({
9831
9830
  direction: z.enum(["asc", "desc"]),
9832
9831
  attribute: z.string(),
9833
- field: z.optional(z.string())
9832
+ field: z.nullish(z.string())
9834
9833
  }), z.object({
9835
9834
  direction: z.enum(["asc", "desc"]),
9836
9835
  path: z.array(z.tuple([z.string(), z.string()])),
9837
- field: z.optional(z.string())
9836
+ field: z.nullish(z.string())
9838
9837
  })]))),
9839
- limit: z.optional(z.number()),
9840
- offset: z.optional(z.number())
9838
+ limit: z.nullish(z.number()),
9839
+ offset: z.nullish(z.number())
9841
9840
  }),
9842
9841
  path: z.object({ list: z.string() }),
9843
- query: z.optional(z.never())
9842
+ query: z.nullish(z.never())
9844
9843
  });
9845
9844
  /**
9846
9845
  * Success
@@ -9859,8 +9858,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
9859
9858
  active_from: z.iso.datetime(),
9860
9859
  active_until: z.union([z.iso.datetime(), z.null()]),
9861
9860
  created_by_actor: z.object({
9862
- id: z.optional(z.string()),
9863
- type: z.optional(z.enum([
9861
+ id: z.nullish(z.string()),
9862
+ type: z.nullish(z.enum([
9864
9863
  "api-token",
9865
9864
  "workspace-member",
9866
9865
  "system",
@@ -9880,8 +9879,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
9880
9879
  active_from: z.iso.datetime(),
9881
9880
  active_until: z.union([z.iso.datetime(), z.null()]),
9882
9881
  created_by_actor: z.object({
9883
- id: z.optional(z.string()),
9884
- type: z.optional(z.enum([
9882
+ id: z.nullish(z.string()),
9883
+ type: z.nullish(z.enum([
9885
9884
  "api-token",
9886
9885
  "workspace-member",
9887
9886
  "system",
@@ -9895,8 +9894,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
9895
9894
  active_from: z.iso.datetime(),
9896
9895
  active_until: z.union([z.iso.datetime(), z.null()]),
9897
9896
  created_by_actor: z.object({
9898
- id: z.optional(z.string()),
9899
- type: z.optional(z.enum([
9897
+ id: z.nullish(z.string()),
9898
+ type: z.nullish(z.enum([
9900
9899
  "api-token",
9901
9900
  "workspace-member",
9902
9901
  "system",
@@ -9904,7 +9903,7 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
9904
9903
  ]))
9905
9904
  }),
9906
9905
  currency_value: z.number(),
9907
- currency_code: z.optional(z.enum([
9906
+ currency_code: z.nullish(z.enum([
9908
9907
  "ARS",
9909
9908
  "AUD",
9910
9909
  "BRL",
@@ -9952,8 +9951,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
9952
9951
  active_from: z.iso.datetime(),
9953
9952
  active_until: z.union([z.iso.datetime(), z.null()]),
9954
9953
  created_by_actor: z.object({
9955
- id: z.optional(z.string()),
9956
- type: z.optional(z.enum([
9954
+ id: z.nullish(z.string()),
9955
+ type: z.nullish(z.enum([
9957
9956
  "api-token",
9958
9957
  "workspace-member",
9959
9958
  "system",
@@ -9967,8 +9966,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
9967
9966
  active_from: z.iso.datetime(),
9968
9967
  active_until: z.union([z.iso.datetime(), z.null()]),
9969
9968
  created_by_actor: z.object({
9970
- id: z.optional(z.string()),
9971
- type: z.optional(z.enum([
9969
+ id: z.nullish(z.string()),
9970
+ type: z.nullish(z.enum([
9972
9971
  "api-token",
9973
9972
  "workspace-member",
9974
9973
  "system",
@@ -9983,8 +9982,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
9983
9982
  active_from: z.iso.datetime(),
9984
9983
  active_until: z.union([z.iso.datetime(), z.null()]),
9985
9984
  created_by_actor: z.object({
9986
- id: z.optional(z.string()),
9987
- type: z.optional(z.enum([
9985
+ id: z.nullish(z.string()),
9986
+ type: z.nullish(z.enum([
9988
9987
  "api-token",
9989
9988
  "workspace-member",
9990
9989
  "system",
@@ -10002,8 +10001,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
10002
10001
  active_from: z.iso.datetime(),
10003
10002
  active_until: z.union([z.iso.datetime(), z.null()]),
10004
10003
  created_by_actor: z.object({
10005
- id: z.optional(z.string()),
10006
- type: z.optional(z.enum([
10004
+ id: z.nullish(z.string()),
10005
+ type: z.nullish(z.enum([
10007
10006
  "api-token",
10008
10007
  "workspace-member",
10009
10008
  "system",
@@ -10018,8 +10017,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
10018
10017
  active_from: z.iso.datetime(),
10019
10018
  active_until: z.union([z.iso.datetime(), z.null()]),
10020
10019
  created_by_actor: z.object({
10021
- id: z.optional(z.string()),
10022
- type: z.optional(z.enum([
10020
+ id: z.nullish(z.string()),
10021
+ type: z.nullish(z.enum([
10023
10022
  "api-token",
10024
10023
  "workspace-member",
10025
10024
  "system",
@@ -10036,8 +10035,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
10036
10035
  ]),
10037
10036
  interacted_at: z.iso.datetime(),
10038
10037
  owner_actor: z.object({
10039
- id: z.optional(z.string()),
10040
- type: z.optional(z.enum([
10038
+ id: z.nullish(z.string()),
10039
+ type: z.nullish(z.enum([
10041
10040
  "api-token",
10042
10041
  "workspace-member",
10043
10042
  "system",
@@ -10050,8 +10049,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
10050
10049
  active_from: z.iso.datetime(),
10051
10050
  active_until: z.union([z.iso.datetime(), z.null()]),
10052
10051
  created_by_actor: z.object({
10053
- id: z.optional(z.string()),
10054
- type: z.optional(z.enum([
10052
+ id: z.nullish(z.string()),
10053
+ type: z.nullish(z.enum([
10055
10054
  "api-token",
10056
10055
  "workspace-member",
10057
10056
  "system",
@@ -10327,8 +10326,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
10327
10326
  active_from: z.iso.datetime(),
10328
10327
  active_until: z.union([z.iso.datetime(), z.null()]),
10329
10328
  created_by_actor: z.object({
10330
- id: z.optional(z.string()),
10331
- type: z.optional(z.enum([
10329
+ id: z.nullish(z.string()),
10330
+ type: z.nullish(z.enum([
10332
10331
  "api-token",
10333
10332
  "workspace-member",
10334
10333
  "system",
@@ -10342,8 +10341,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
10342
10341
  active_from: z.iso.datetime(),
10343
10342
  active_until: z.union([z.iso.datetime(), z.null()]),
10344
10343
  created_by_actor: z.object({
10345
- id: z.optional(z.string()),
10346
- type: z.optional(z.enum([
10344
+ id: z.nullish(z.string()),
10345
+ type: z.nullish(z.enum([
10347
10346
  "api-token",
10348
10347
  "workspace-member",
10349
10348
  "system",
@@ -10359,8 +10358,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
10359
10358
  active_from: z.iso.datetime(),
10360
10359
  active_until: z.union([z.iso.datetime(), z.null()]),
10361
10360
  created_by_actor: z.object({
10362
- id: z.optional(z.string()),
10363
- type: z.optional(z.enum([
10361
+ id: z.nullish(z.string()),
10362
+ type: z.nullish(z.enum([
10364
10363
  "api-token",
10365
10364
  "workspace-member",
10366
10365
  "system",
@@ -10629,8 +10628,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
10629
10628
  active_from: z.iso.datetime(),
10630
10629
  active_until: z.union([z.iso.datetime(), z.null()]),
10631
10630
  created_by_actor: z.object({
10632
- id: z.optional(z.string()),
10633
- type: z.optional(z.enum([
10631
+ id: z.nullish(z.string()),
10632
+ type: z.nullish(z.enum([
10634
10633
  "api-token",
10635
10634
  "workspace-member",
10636
10635
  "system",
@@ -10644,8 +10643,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
10644
10643
  active_from: z.iso.datetime(),
10645
10644
  active_until: z.union([z.iso.datetime(), z.null()]),
10646
10645
  created_by_actor: z.object({
10647
- id: z.optional(z.string()),
10648
- type: z.optional(z.enum([
10646
+ id: z.nullish(z.string()),
10647
+ type: z.nullish(z.enum([
10649
10648
  "api-token",
10650
10649
  "workspace-member",
10651
10650
  "system",
@@ -10659,8 +10658,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
10659
10658
  active_from: z.iso.datetime(),
10660
10659
  active_until: z.union([z.iso.datetime(), z.null()]),
10661
10660
  created_by_actor: z.object({
10662
- id: z.optional(z.string()),
10663
- type: z.optional(z.enum([
10661
+ id: z.nullish(z.string()),
10662
+ type: z.nullish(z.enum([
10664
10663
  "api-token",
10665
10664
  "workspace-member",
10666
10665
  "system",
@@ -10674,8 +10673,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
10674
10673
  active_from: z.iso.datetime(),
10675
10674
  active_until: z.union([z.iso.datetime(), z.null()]),
10676
10675
  created_by_actor: z.object({
10677
- id: z.optional(z.string()),
10678
- type: z.optional(z.enum([
10676
+ id: z.nullish(z.string()),
10677
+ type: z.nullish(z.enum([
10679
10678
  "api-token",
10680
10679
  "workspace-member",
10681
10680
  "system",
@@ -10689,8 +10688,8 @@ const zPostV2ListsByListEntriesQueryResponse = z.object({ data: z.array(z.object
10689
10688
  active_from: z.iso.datetime(),
10690
10689
  active_until: z.union([z.iso.datetime(), z.null()]),
10691
10690
  created_by_actor: z.object({
10692
- id: z.optional(z.string()),
10693
- type: z.optional(z.enum([
10691
+ id: z.nullish(z.string()),
10692
+ type: z.nullish(z.enum([
10694
10693
  "api-token",
10695
10694
  "workspace-member",
10696
10695
  "system",
@@ -10709,7 +10708,7 @@ const zPostV2ListsByListEntriesData = z.object({
10709
10708
  entry_values: z.record(z.string(), z.array(z.unknown()))
10710
10709
  }) }),
10711
10710
  path: z.object({ list: z.string() }),
10712
- query: z.optional(z.never())
10711
+ query: z.nullish(z.never())
10713
10712
  });
10714
10713
  /**
10715
10714
  * Success
@@ -10728,8 +10727,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
10728
10727
  active_from: z.iso.datetime(),
10729
10728
  active_until: z.union([z.iso.datetime(), z.null()]),
10730
10729
  created_by_actor: z.object({
10731
- id: z.optional(z.string()),
10732
- type: z.optional(z.enum([
10730
+ id: z.nullish(z.string()),
10731
+ type: z.nullish(z.enum([
10733
10732
  "api-token",
10734
10733
  "workspace-member",
10735
10734
  "system",
@@ -10749,8 +10748,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
10749
10748
  active_from: z.iso.datetime(),
10750
10749
  active_until: z.union([z.iso.datetime(), z.null()]),
10751
10750
  created_by_actor: z.object({
10752
- id: z.optional(z.string()),
10753
- type: z.optional(z.enum([
10751
+ id: z.nullish(z.string()),
10752
+ type: z.nullish(z.enum([
10754
10753
  "api-token",
10755
10754
  "workspace-member",
10756
10755
  "system",
@@ -10764,8 +10763,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
10764
10763
  active_from: z.iso.datetime(),
10765
10764
  active_until: z.union([z.iso.datetime(), z.null()]),
10766
10765
  created_by_actor: z.object({
10767
- id: z.optional(z.string()),
10768
- type: z.optional(z.enum([
10766
+ id: z.nullish(z.string()),
10767
+ type: z.nullish(z.enum([
10769
10768
  "api-token",
10770
10769
  "workspace-member",
10771
10770
  "system",
@@ -10773,7 +10772,7 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
10773
10772
  ]))
10774
10773
  }),
10775
10774
  currency_value: z.number(),
10776
- currency_code: z.optional(z.enum([
10775
+ currency_code: z.nullish(z.enum([
10777
10776
  "ARS",
10778
10777
  "AUD",
10779
10778
  "BRL",
@@ -10821,8 +10820,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
10821
10820
  active_from: z.iso.datetime(),
10822
10821
  active_until: z.union([z.iso.datetime(), z.null()]),
10823
10822
  created_by_actor: z.object({
10824
- id: z.optional(z.string()),
10825
- type: z.optional(z.enum([
10823
+ id: z.nullish(z.string()),
10824
+ type: z.nullish(z.enum([
10826
10825
  "api-token",
10827
10826
  "workspace-member",
10828
10827
  "system",
@@ -10836,8 +10835,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
10836
10835
  active_from: z.iso.datetime(),
10837
10836
  active_until: z.union([z.iso.datetime(), z.null()]),
10838
10837
  created_by_actor: z.object({
10839
- id: z.optional(z.string()),
10840
- type: z.optional(z.enum([
10838
+ id: z.nullish(z.string()),
10839
+ type: z.nullish(z.enum([
10841
10840
  "api-token",
10842
10841
  "workspace-member",
10843
10842
  "system",
@@ -10852,8 +10851,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
10852
10851
  active_from: z.iso.datetime(),
10853
10852
  active_until: z.union([z.iso.datetime(), z.null()]),
10854
10853
  created_by_actor: z.object({
10855
- id: z.optional(z.string()),
10856
- type: z.optional(z.enum([
10854
+ id: z.nullish(z.string()),
10855
+ type: z.nullish(z.enum([
10857
10856
  "api-token",
10858
10857
  "workspace-member",
10859
10858
  "system",
@@ -10871,8 +10870,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
10871
10870
  active_from: z.iso.datetime(),
10872
10871
  active_until: z.union([z.iso.datetime(), z.null()]),
10873
10872
  created_by_actor: z.object({
10874
- id: z.optional(z.string()),
10875
- type: z.optional(z.enum([
10873
+ id: z.nullish(z.string()),
10874
+ type: z.nullish(z.enum([
10876
10875
  "api-token",
10877
10876
  "workspace-member",
10878
10877
  "system",
@@ -10887,8 +10886,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
10887
10886
  active_from: z.iso.datetime(),
10888
10887
  active_until: z.union([z.iso.datetime(), z.null()]),
10889
10888
  created_by_actor: z.object({
10890
- id: z.optional(z.string()),
10891
- type: z.optional(z.enum([
10889
+ id: z.nullish(z.string()),
10890
+ type: z.nullish(z.enum([
10892
10891
  "api-token",
10893
10892
  "workspace-member",
10894
10893
  "system",
@@ -10905,8 +10904,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
10905
10904
  ]),
10906
10905
  interacted_at: z.iso.datetime(),
10907
10906
  owner_actor: z.object({
10908
- id: z.optional(z.string()),
10909
- type: z.optional(z.enum([
10907
+ id: z.nullish(z.string()),
10908
+ type: z.nullish(z.enum([
10910
10909
  "api-token",
10911
10910
  "workspace-member",
10912
10911
  "system",
@@ -10919,8 +10918,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
10919
10918
  active_from: z.iso.datetime(),
10920
10919
  active_until: z.union([z.iso.datetime(), z.null()]),
10921
10920
  created_by_actor: z.object({
10922
- id: z.optional(z.string()),
10923
- type: z.optional(z.enum([
10921
+ id: z.nullish(z.string()),
10922
+ type: z.nullish(z.enum([
10924
10923
  "api-token",
10925
10924
  "workspace-member",
10926
10925
  "system",
@@ -11196,8 +11195,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
11196
11195
  active_from: z.iso.datetime(),
11197
11196
  active_until: z.union([z.iso.datetime(), z.null()]),
11198
11197
  created_by_actor: z.object({
11199
- id: z.optional(z.string()),
11200
- type: z.optional(z.enum([
11198
+ id: z.nullish(z.string()),
11199
+ type: z.nullish(z.enum([
11201
11200
  "api-token",
11202
11201
  "workspace-member",
11203
11202
  "system",
@@ -11211,8 +11210,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
11211
11210
  active_from: z.iso.datetime(),
11212
11211
  active_until: z.union([z.iso.datetime(), z.null()]),
11213
11212
  created_by_actor: z.object({
11214
- id: z.optional(z.string()),
11215
- type: z.optional(z.enum([
11213
+ id: z.nullish(z.string()),
11214
+ type: z.nullish(z.enum([
11216
11215
  "api-token",
11217
11216
  "workspace-member",
11218
11217
  "system",
@@ -11228,8 +11227,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
11228
11227
  active_from: z.iso.datetime(),
11229
11228
  active_until: z.union([z.iso.datetime(), z.null()]),
11230
11229
  created_by_actor: z.object({
11231
- id: z.optional(z.string()),
11232
- type: z.optional(z.enum([
11230
+ id: z.nullish(z.string()),
11231
+ type: z.nullish(z.enum([
11233
11232
  "api-token",
11234
11233
  "workspace-member",
11235
11234
  "system",
@@ -11498,8 +11497,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
11498
11497
  active_from: z.iso.datetime(),
11499
11498
  active_until: z.union([z.iso.datetime(), z.null()]),
11500
11499
  created_by_actor: z.object({
11501
- id: z.optional(z.string()),
11502
- type: z.optional(z.enum([
11500
+ id: z.nullish(z.string()),
11501
+ type: z.nullish(z.enum([
11503
11502
  "api-token",
11504
11503
  "workspace-member",
11505
11504
  "system",
@@ -11513,8 +11512,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
11513
11512
  active_from: z.iso.datetime(),
11514
11513
  active_until: z.union([z.iso.datetime(), z.null()]),
11515
11514
  created_by_actor: z.object({
11516
- id: z.optional(z.string()),
11517
- type: z.optional(z.enum([
11515
+ id: z.nullish(z.string()),
11516
+ type: z.nullish(z.enum([
11518
11517
  "api-token",
11519
11518
  "workspace-member",
11520
11519
  "system",
@@ -11528,8 +11527,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
11528
11527
  active_from: z.iso.datetime(),
11529
11528
  active_until: z.union([z.iso.datetime(), z.null()]),
11530
11529
  created_by_actor: z.object({
11531
- id: z.optional(z.string()),
11532
- type: z.optional(z.enum([
11530
+ id: z.nullish(z.string()),
11531
+ type: z.nullish(z.enum([
11533
11532
  "api-token",
11534
11533
  "workspace-member",
11535
11534
  "system",
@@ -11543,8 +11542,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
11543
11542
  active_from: z.iso.datetime(),
11544
11543
  active_until: z.union([z.iso.datetime(), z.null()]),
11545
11544
  created_by_actor: z.object({
11546
- id: z.optional(z.string()),
11547
- type: z.optional(z.enum([
11545
+ id: z.nullish(z.string()),
11546
+ type: z.nullish(z.enum([
11548
11547
  "api-token",
11549
11548
  "workspace-member",
11550
11549
  "system",
@@ -11558,8 +11557,8 @@ const zPostV2ListsByListEntriesResponse = z.object({ data: z.object({
11558
11557
  active_from: z.iso.datetime(),
11559
11558
  active_until: z.union([z.iso.datetime(), z.null()]),
11560
11559
  created_by_actor: z.object({
11561
- id: z.optional(z.string()),
11562
- type: z.optional(z.enum([
11560
+ id: z.nullish(z.string()),
11561
+ type: z.nullish(z.enum([
11563
11562
  "api-token",
11564
11563
  "workspace-member",
11565
11564
  "system",
@@ -11578,7 +11577,7 @@ const zPutV2ListsByListEntriesData = z.object({
11578
11577
  entry_values: z.record(z.string(), z.array(z.unknown()))
11579
11578
  }) }),
11580
11579
  path: z.object({ list: z.string() }),
11581
- query: z.optional(z.never())
11580
+ query: z.nullish(z.never())
11582
11581
  });
11583
11582
  /**
11584
11583
  * Success
@@ -11597,8 +11596,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
11597
11596
  active_from: z.iso.datetime(),
11598
11597
  active_until: z.union([z.iso.datetime(), z.null()]),
11599
11598
  created_by_actor: z.object({
11600
- id: z.optional(z.string()),
11601
- type: z.optional(z.enum([
11599
+ id: z.nullish(z.string()),
11600
+ type: z.nullish(z.enum([
11602
11601
  "api-token",
11603
11602
  "workspace-member",
11604
11603
  "system",
@@ -11618,8 +11617,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
11618
11617
  active_from: z.iso.datetime(),
11619
11618
  active_until: z.union([z.iso.datetime(), z.null()]),
11620
11619
  created_by_actor: z.object({
11621
- id: z.optional(z.string()),
11622
- type: z.optional(z.enum([
11620
+ id: z.nullish(z.string()),
11621
+ type: z.nullish(z.enum([
11623
11622
  "api-token",
11624
11623
  "workspace-member",
11625
11624
  "system",
@@ -11633,8 +11632,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
11633
11632
  active_from: z.iso.datetime(),
11634
11633
  active_until: z.union([z.iso.datetime(), z.null()]),
11635
11634
  created_by_actor: z.object({
11636
- id: z.optional(z.string()),
11637
- type: z.optional(z.enum([
11635
+ id: z.nullish(z.string()),
11636
+ type: z.nullish(z.enum([
11638
11637
  "api-token",
11639
11638
  "workspace-member",
11640
11639
  "system",
@@ -11642,7 +11641,7 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
11642
11641
  ]))
11643
11642
  }),
11644
11643
  currency_value: z.number(),
11645
- currency_code: z.optional(z.enum([
11644
+ currency_code: z.nullish(z.enum([
11646
11645
  "ARS",
11647
11646
  "AUD",
11648
11647
  "BRL",
@@ -11690,8 +11689,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
11690
11689
  active_from: z.iso.datetime(),
11691
11690
  active_until: z.union([z.iso.datetime(), z.null()]),
11692
11691
  created_by_actor: z.object({
11693
- id: z.optional(z.string()),
11694
- type: z.optional(z.enum([
11692
+ id: z.nullish(z.string()),
11693
+ type: z.nullish(z.enum([
11695
11694
  "api-token",
11696
11695
  "workspace-member",
11697
11696
  "system",
@@ -11705,8 +11704,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
11705
11704
  active_from: z.iso.datetime(),
11706
11705
  active_until: z.union([z.iso.datetime(), z.null()]),
11707
11706
  created_by_actor: z.object({
11708
- id: z.optional(z.string()),
11709
- type: z.optional(z.enum([
11707
+ id: z.nullish(z.string()),
11708
+ type: z.nullish(z.enum([
11710
11709
  "api-token",
11711
11710
  "workspace-member",
11712
11711
  "system",
@@ -11721,8 +11720,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
11721
11720
  active_from: z.iso.datetime(),
11722
11721
  active_until: z.union([z.iso.datetime(), z.null()]),
11723
11722
  created_by_actor: z.object({
11724
- id: z.optional(z.string()),
11725
- type: z.optional(z.enum([
11723
+ id: z.nullish(z.string()),
11724
+ type: z.nullish(z.enum([
11726
11725
  "api-token",
11727
11726
  "workspace-member",
11728
11727
  "system",
@@ -11740,8 +11739,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
11740
11739
  active_from: z.iso.datetime(),
11741
11740
  active_until: z.union([z.iso.datetime(), z.null()]),
11742
11741
  created_by_actor: z.object({
11743
- id: z.optional(z.string()),
11744
- type: z.optional(z.enum([
11742
+ id: z.nullish(z.string()),
11743
+ type: z.nullish(z.enum([
11745
11744
  "api-token",
11746
11745
  "workspace-member",
11747
11746
  "system",
@@ -11756,8 +11755,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
11756
11755
  active_from: z.iso.datetime(),
11757
11756
  active_until: z.union([z.iso.datetime(), z.null()]),
11758
11757
  created_by_actor: z.object({
11759
- id: z.optional(z.string()),
11760
- type: z.optional(z.enum([
11758
+ id: z.nullish(z.string()),
11759
+ type: z.nullish(z.enum([
11761
11760
  "api-token",
11762
11761
  "workspace-member",
11763
11762
  "system",
@@ -11774,8 +11773,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
11774
11773
  ]),
11775
11774
  interacted_at: z.iso.datetime(),
11776
11775
  owner_actor: z.object({
11777
- id: z.optional(z.string()),
11778
- type: z.optional(z.enum([
11776
+ id: z.nullish(z.string()),
11777
+ type: z.nullish(z.enum([
11779
11778
  "api-token",
11780
11779
  "workspace-member",
11781
11780
  "system",
@@ -11788,8 +11787,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
11788
11787
  active_from: z.iso.datetime(),
11789
11788
  active_until: z.union([z.iso.datetime(), z.null()]),
11790
11789
  created_by_actor: z.object({
11791
- id: z.optional(z.string()),
11792
- type: z.optional(z.enum([
11790
+ id: z.nullish(z.string()),
11791
+ type: z.nullish(z.enum([
11793
11792
  "api-token",
11794
11793
  "workspace-member",
11795
11794
  "system",
@@ -12065,8 +12064,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
12065
12064
  active_from: z.iso.datetime(),
12066
12065
  active_until: z.union([z.iso.datetime(), z.null()]),
12067
12066
  created_by_actor: z.object({
12068
- id: z.optional(z.string()),
12069
- type: z.optional(z.enum([
12067
+ id: z.nullish(z.string()),
12068
+ type: z.nullish(z.enum([
12070
12069
  "api-token",
12071
12070
  "workspace-member",
12072
12071
  "system",
@@ -12080,8 +12079,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
12080
12079
  active_from: z.iso.datetime(),
12081
12080
  active_until: z.union([z.iso.datetime(), z.null()]),
12082
12081
  created_by_actor: z.object({
12083
- id: z.optional(z.string()),
12084
- type: z.optional(z.enum([
12082
+ id: z.nullish(z.string()),
12083
+ type: z.nullish(z.enum([
12085
12084
  "api-token",
12086
12085
  "workspace-member",
12087
12086
  "system",
@@ -12097,8 +12096,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
12097
12096
  active_from: z.iso.datetime(),
12098
12097
  active_until: z.union([z.iso.datetime(), z.null()]),
12099
12098
  created_by_actor: z.object({
12100
- id: z.optional(z.string()),
12101
- type: z.optional(z.enum([
12099
+ id: z.nullish(z.string()),
12100
+ type: z.nullish(z.enum([
12102
12101
  "api-token",
12103
12102
  "workspace-member",
12104
12103
  "system",
@@ -12367,8 +12366,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
12367
12366
  active_from: z.iso.datetime(),
12368
12367
  active_until: z.union([z.iso.datetime(), z.null()]),
12369
12368
  created_by_actor: z.object({
12370
- id: z.optional(z.string()),
12371
- type: z.optional(z.enum([
12369
+ id: z.nullish(z.string()),
12370
+ type: z.nullish(z.enum([
12372
12371
  "api-token",
12373
12372
  "workspace-member",
12374
12373
  "system",
@@ -12382,8 +12381,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
12382
12381
  active_from: z.iso.datetime(),
12383
12382
  active_until: z.union([z.iso.datetime(), z.null()]),
12384
12383
  created_by_actor: z.object({
12385
- id: z.optional(z.string()),
12386
- type: z.optional(z.enum([
12384
+ id: z.nullish(z.string()),
12385
+ type: z.nullish(z.enum([
12387
12386
  "api-token",
12388
12387
  "workspace-member",
12389
12388
  "system",
@@ -12397,8 +12396,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
12397
12396
  active_from: z.iso.datetime(),
12398
12397
  active_until: z.union([z.iso.datetime(), z.null()]),
12399
12398
  created_by_actor: z.object({
12400
- id: z.optional(z.string()),
12401
- type: z.optional(z.enum([
12399
+ id: z.nullish(z.string()),
12400
+ type: z.nullish(z.enum([
12402
12401
  "api-token",
12403
12402
  "workspace-member",
12404
12403
  "system",
@@ -12412,8 +12411,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
12412
12411
  active_from: z.iso.datetime(),
12413
12412
  active_until: z.union([z.iso.datetime(), z.null()]),
12414
12413
  created_by_actor: z.object({
12415
- id: z.optional(z.string()),
12416
- type: z.optional(z.enum([
12414
+ id: z.nullish(z.string()),
12415
+ type: z.nullish(z.enum([
12417
12416
  "api-token",
12418
12417
  "workspace-member",
12419
12418
  "system",
@@ -12427,8 +12426,8 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
12427
12426
  active_from: z.iso.datetime(),
12428
12427
  active_until: z.union([z.iso.datetime(), z.null()]),
12429
12428
  created_by_actor: z.object({
12430
- id: z.optional(z.string()),
12431
- type: z.optional(z.enum([
12429
+ id: z.nullish(z.string()),
12430
+ type: z.nullish(z.enum([
12432
12431
  "api-token",
12433
12432
  "workspace-member",
12434
12433
  "system",
@@ -12441,24 +12440,24 @@ const zPutV2ListsByListEntriesResponse = z.object({ data: z.object({
12441
12440
  ])))
12442
12441
  }) });
12443
12442
  const zDeleteV2ListsByListEntriesByEntryIdData = z.object({
12444
- body: z.optional(z.never()),
12443
+ body: z.nullish(z.never()),
12445
12444
  path: z.object({
12446
12445
  list: z.string(),
12447
12446
  entry_id: z.uuid()
12448
12447
  }),
12449
- query: z.optional(z.never())
12448
+ query: z.nullish(z.never())
12450
12449
  });
12451
12450
  /**
12452
12451
  * Success
12453
12452
  */
12454
12453
  const zDeleteV2ListsByListEntriesByEntryIdResponse = z.record(z.string(), z.unknown());
12455
12454
  const zGetV2ListsByListEntriesByEntryIdData = z.object({
12456
- body: z.optional(z.never()),
12455
+ body: z.nullish(z.never()),
12457
12456
  path: z.object({
12458
12457
  list: z.string(),
12459
12458
  entry_id: z.uuid()
12460
12459
  }),
12461
- query: z.optional(z.never())
12460
+ query: z.nullish(z.never())
12462
12461
  });
12463
12462
  /**
12464
12463
  * Success
@@ -12477,8 +12476,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12477
12476
  active_from: z.iso.datetime(),
12478
12477
  active_until: z.union([z.iso.datetime(), z.null()]),
12479
12478
  created_by_actor: z.object({
12480
- id: z.optional(z.string()),
12481
- type: z.optional(z.enum([
12479
+ id: z.nullish(z.string()),
12480
+ type: z.nullish(z.enum([
12482
12481
  "api-token",
12483
12482
  "workspace-member",
12484
12483
  "system",
@@ -12498,8 +12497,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12498
12497
  active_from: z.iso.datetime(),
12499
12498
  active_until: z.union([z.iso.datetime(), z.null()]),
12500
12499
  created_by_actor: z.object({
12501
- id: z.optional(z.string()),
12502
- type: z.optional(z.enum([
12500
+ id: z.nullish(z.string()),
12501
+ type: z.nullish(z.enum([
12503
12502
  "api-token",
12504
12503
  "workspace-member",
12505
12504
  "system",
@@ -12513,8 +12512,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12513
12512
  active_from: z.iso.datetime(),
12514
12513
  active_until: z.union([z.iso.datetime(), z.null()]),
12515
12514
  created_by_actor: z.object({
12516
- id: z.optional(z.string()),
12517
- type: z.optional(z.enum([
12515
+ id: z.nullish(z.string()),
12516
+ type: z.nullish(z.enum([
12518
12517
  "api-token",
12519
12518
  "workspace-member",
12520
12519
  "system",
@@ -12522,7 +12521,7 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12522
12521
  ]))
12523
12522
  }),
12524
12523
  currency_value: z.number(),
12525
- currency_code: z.optional(z.enum([
12524
+ currency_code: z.nullish(z.enum([
12526
12525
  "ARS",
12527
12526
  "AUD",
12528
12527
  "BRL",
@@ -12570,8 +12569,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12570
12569
  active_from: z.iso.datetime(),
12571
12570
  active_until: z.union([z.iso.datetime(), z.null()]),
12572
12571
  created_by_actor: z.object({
12573
- id: z.optional(z.string()),
12574
- type: z.optional(z.enum([
12572
+ id: z.nullish(z.string()),
12573
+ type: z.nullish(z.enum([
12575
12574
  "api-token",
12576
12575
  "workspace-member",
12577
12576
  "system",
@@ -12585,8 +12584,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12585
12584
  active_from: z.iso.datetime(),
12586
12585
  active_until: z.union([z.iso.datetime(), z.null()]),
12587
12586
  created_by_actor: z.object({
12588
- id: z.optional(z.string()),
12589
- type: z.optional(z.enum([
12587
+ id: z.nullish(z.string()),
12588
+ type: z.nullish(z.enum([
12590
12589
  "api-token",
12591
12590
  "workspace-member",
12592
12591
  "system",
@@ -12601,8 +12600,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12601
12600
  active_from: z.iso.datetime(),
12602
12601
  active_until: z.union([z.iso.datetime(), z.null()]),
12603
12602
  created_by_actor: z.object({
12604
- id: z.optional(z.string()),
12605
- type: z.optional(z.enum([
12603
+ id: z.nullish(z.string()),
12604
+ type: z.nullish(z.enum([
12606
12605
  "api-token",
12607
12606
  "workspace-member",
12608
12607
  "system",
@@ -12620,8 +12619,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12620
12619
  active_from: z.iso.datetime(),
12621
12620
  active_until: z.union([z.iso.datetime(), z.null()]),
12622
12621
  created_by_actor: z.object({
12623
- id: z.optional(z.string()),
12624
- type: z.optional(z.enum([
12622
+ id: z.nullish(z.string()),
12623
+ type: z.nullish(z.enum([
12625
12624
  "api-token",
12626
12625
  "workspace-member",
12627
12626
  "system",
@@ -12636,8 +12635,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12636
12635
  active_from: z.iso.datetime(),
12637
12636
  active_until: z.union([z.iso.datetime(), z.null()]),
12638
12637
  created_by_actor: z.object({
12639
- id: z.optional(z.string()),
12640
- type: z.optional(z.enum([
12638
+ id: z.nullish(z.string()),
12639
+ type: z.nullish(z.enum([
12641
12640
  "api-token",
12642
12641
  "workspace-member",
12643
12642
  "system",
@@ -12654,8 +12653,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12654
12653
  ]),
12655
12654
  interacted_at: z.iso.datetime(),
12656
12655
  owner_actor: z.object({
12657
- id: z.optional(z.string()),
12658
- type: z.optional(z.enum([
12656
+ id: z.nullish(z.string()),
12657
+ type: z.nullish(z.enum([
12659
12658
  "api-token",
12660
12659
  "workspace-member",
12661
12660
  "system",
@@ -12668,8 +12667,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12668
12667
  active_from: z.iso.datetime(),
12669
12668
  active_until: z.union([z.iso.datetime(), z.null()]),
12670
12669
  created_by_actor: z.object({
12671
- id: z.optional(z.string()),
12672
- type: z.optional(z.enum([
12670
+ id: z.nullish(z.string()),
12671
+ type: z.nullish(z.enum([
12673
12672
  "api-token",
12674
12673
  "workspace-member",
12675
12674
  "system",
@@ -12945,8 +12944,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12945
12944
  active_from: z.iso.datetime(),
12946
12945
  active_until: z.union([z.iso.datetime(), z.null()]),
12947
12946
  created_by_actor: z.object({
12948
- id: z.optional(z.string()),
12949
- type: z.optional(z.enum([
12947
+ id: z.nullish(z.string()),
12948
+ type: z.nullish(z.enum([
12950
12949
  "api-token",
12951
12950
  "workspace-member",
12952
12951
  "system",
@@ -12960,8 +12959,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12960
12959
  active_from: z.iso.datetime(),
12961
12960
  active_until: z.union([z.iso.datetime(), z.null()]),
12962
12961
  created_by_actor: z.object({
12963
- id: z.optional(z.string()),
12964
- type: z.optional(z.enum([
12962
+ id: z.nullish(z.string()),
12963
+ type: z.nullish(z.enum([
12965
12964
  "api-token",
12966
12965
  "workspace-member",
12967
12966
  "system",
@@ -12977,8 +12976,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
12977
12976
  active_from: z.iso.datetime(),
12978
12977
  active_until: z.union([z.iso.datetime(), z.null()]),
12979
12978
  created_by_actor: z.object({
12980
- id: z.optional(z.string()),
12981
- type: z.optional(z.enum([
12979
+ id: z.nullish(z.string()),
12980
+ type: z.nullish(z.enum([
12982
12981
  "api-token",
12983
12982
  "workspace-member",
12984
12983
  "system",
@@ -13247,8 +13246,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13247
13246
  active_from: z.iso.datetime(),
13248
13247
  active_until: z.union([z.iso.datetime(), z.null()]),
13249
13248
  created_by_actor: z.object({
13250
- id: z.optional(z.string()),
13251
- type: z.optional(z.enum([
13249
+ id: z.nullish(z.string()),
13250
+ type: z.nullish(z.enum([
13252
13251
  "api-token",
13253
13252
  "workspace-member",
13254
13253
  "system",
@@ -13262,8 +13261,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13262
13261
  active_from: z.iso.datetime(),
13263
13262
  active_until: z.union([z.iso.datetime(), z.null()]),
13264
13263
  created_by_actor: z.object({
13265
- id: z.optional(z.string()),
13266
- type: z.optional(z.enum([
13264
+ id: z.nullish(z.string()),
13265
+ type: z.nullish(z.enum([
13267
13266
  "api-token",
13268
13267
  "workspace-member",
13269
13268
  "system",
@@ -13277,8 +13276,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13277
13276
  active_from: z.iso.datetime(),
13278
13277
  active_until: z.union([z.iso.datetime(), z.null()]),
13279
13278
  created_by_actor: z.object({
13280
- id: z.optional(z.string()),
13281
- type: z.optional(z.enum([
13279
+ id: z.nullish(z.string()),
13280
+ type: z.nullish(z.enum([
13282
13281
  "api-token",
13283
13282
  "workspace-member",
13284
13283
  "system",
@@ -13292,8 +13291,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13292
13291
  active_from: z.iso.datetime(),
13293
13292
  active_until: z.union([z.iso.datetime(), z.null()]),
13294
13293
  created_by_actor: z.object({
13295
- id: z.optional(z.string()),
13296
- type: z.optional(z.enum([
13294
+ id: z.nullish(z.string()),
13295
+ type: z.nullish(z.enum([
13297
13296
  "api-token",
13298
13297
  "workspace-member",
13299
13298
  "system",
@@ -13307,8 +13306,8 @@ const zGetV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13307
13306
  active_from: z.iso.datetime(),
13308
13307
  active_until: z.union([z.iso.datetime(), z.null()]),
13309
13308
  created_by_actor: z.object({
13310
- id: z.optional(z.string()),
13311
- type: z.optional(z.enum([
13309
+ id: z.nullish(z.string()),
13310
+ type: z.nullish(z.enum([
13312
13311
  "api-token",
13313
13312
  "workspace-member",
13314
13313
  "system",
@@ -13326,7 +13325,7 @@ const zPatchV2ListsByListEntriesByEntryIdData = z.object({
13326
13325
  list: z.string(),
13327
13326
  entry_id: z.string()
13328
13327
  }),
13329
- query: z.optional(z.never())
13328
+ query: z.nullish(z.never())
13330
13329
  });
13331
13330
  /**
13332
13331
  * Success
@@ -13345,8 +13344,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13345
13344
  active_from: z.iso.datetime(),
13346
13345
  active_until: z.union([z.iso.datetime(), z.null()]),
13347
13346
  created_by_actor: z.object({
13348
- id: z.optional(z.string()),
13349
- type: z.optional(z.enum([
13347
+ id: z.nullish(z.string()),
13348
+ type: z.nullish(z.enum([
13350
13349
  "api-token",
13351
13350
  "workspace-member",
13352
13351
  "system",
@@ -13366,8 +13365,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13366
13365
  active_from: z.iso.datetime(),
13367
13366
  active_until: z.union([z.iso.datetime(), z.null()]),
13368
13367
  created_by_actor: z.object({
13369
- id: z.optional(z.string()),
13370
- type: z.optional(z.enum([
13368
+ id: z.nullish(z.string()),
13369
+ type: z.nullish(z.enum([
13371
13370
  "api-token",
13372
13371
  "workspace-member",
13373
13372
  "system",
@@ -13381,8 +13380,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13381
13380
  active_from: z.iso.datetime(),
13382
13381
  active_until: z.union([z.iso.datetime(), z.null()]),
13383
13382
  created_by_actor: z.object({
13384
- id: z.optional(z.string()),
13385
- type: z.optional(z.enum([
13383
+ id: z.nullish(z.string()),
13384
+ type: z.nullish(z.enum([
13386
13385
  "api-token",
13387
13386
  "workspace-member",
13388
13387
  "system",
@@ -13390,7 +13389,7 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13390
13389
  ]))
13391
13390
  }),
13392
13391
  currency_value: z.number(),
13393
- currency_code: z.optional(z.enum([
13392
+ currency_code: z.nullish(z.enum([
13394
13393
  "ARS",
13395
13394
  "AUD",
13396
13395
  "BRL",
@@ -13438,8 +13437,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13438
13437
  active_from: z.iso.datetime(),
13439
13438
  active_until: z.union([z.iso.datetime(), z.null()]),
13440
13439
  created_by_actor: z.object({
13441
- id: z.optional(z.string()),
13442
- type: z.optional(z.enum([
13440
+ id: z.nullish(z.string()),
13441
+ type: z.nullish(z.enum([
13443
13442
  "api-token",
13444
13443
  "workspace-member",
13445
13444
  "system",
@@ -13453,8 +13452,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13453
13452
  active_from: z.iso.datetime(),
13454
13453
  active_until: z.union([z.iso.datetime(), z.null()]),
13455
13454
  created_by_actor: z.object({
13456
- id: z.optional(z.string()),
13457
- type: z.optional(z.enum([
13455
+ id: z.nullish(z.string()),
13456
+ type: z.nullish(z.enum([
13458
13457
  "api-token",
13459
13458
  "workspace-member",
13460
13459
  "system",
@@ -13469,8 +13468,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13469
13468
  active_from: z.iso.datetime(),
13470
13469
  active_until: z.union([z.iso.datetime(), z.null()]),
13471
13470
  created_by_actor: z.object({
13472
- id: z.optional(z.string()),
13473
- type: z.optional(z.enum([
13471
+ id: z.nullish(z.string()),
13472
+ type: z.nullish(z.enum([
13474
13473
  "api-token",
13475
13474
  "workspace-member",
13476
13475
  "system",
@@ -13488,8 +13487,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13488
13487
  active_from: z.iso.datetime(),
13489
13488
  active_until: z.union([z.iso.datetime(), z.null()]),
13490
13489
  created_by_actor: z.object({
13491
- id: z.optional(z.string()),
13492
- type: z.optional(z.enum([
13490
+ id: z.nullish(z.string()),
13491
+ type: z.nullish(z.enum([
13493
13492
  "api-token",
13494
13493
  "workspace-member",
13495
13494
  "system",
@@ -13504,8 +13503,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13504
13503
  active_from: z.iso.datetime(),
13505
13504
  active_until: z.union([z.iso.datetime(), z.null()]),
13506
13505
  created_by_actor: z.object({
13507
- id: z.optional(z.string()),
13508
- type: z.optional(z.enum([
13506
+ id: z.nullish(z.string()),
13507
+ type: z.nullish(z.enum([
13509
13508
  "api-token",
13510
13509
  "workspace-member",
13511
13510
  "system",
@@ -13522,8 +13521,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13522
13521
  ]),
13523
13522
  interacted_at: z.iso.datetime(),
13524
13523
  owner_actor: z.object({
13525
- id: z.optional(z.string()),
13526
- type: z.optional(z.enum([
13524
+ id: z.nullish(z.string()),
13525
+ type: z.nullish(z.enum([
13527
13526
  "api-token",
13528
13527
  "workspace-member",
13529
13528
  "system",
@@ -13536,8 +13535,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13536
13535
  active_from: z.iso.datetime(),
13537
13536
  active_until: z.union([z.iso.datetime(), z.null()]),
13538
13537
  created_by_actor: z.object({
13539
- id: z.optional(z.string()),
13540
- type: z.optional(z.enum([
13538
+ id: z.nullish(z.string()),
13539
+ type: z.nullish(z.enum([
13541
13540
  "api-token",
13542
13541
  "workspace-member",
13543
13542
  "system",
@@ -13813,8 +13812,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13813
13812
  active_from: z.iso.datetime(),
13814
13813
  active_until: z.union([z.iso.datetime(), z.null()]),
13815
13814
  created_by_actor: z.object({
13816
- id: z.optional(z.string()),
13817
- type: z.optional(z.enum([
13815
+ id: z.nullish(z.string()),
13816
+ type: z.nullish(z.enum([
13818
13817
  "api-token",
13819
13818
  "workspace-member",
13820
13819
  "system",
@@ -13828,8 +13827,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13828
13827
  active_from: z.iso.datetime(),
13829
13828
  active_until: z.union([z.iso.datetime(), z.null()]),
13830
13829
  created_by_actor: z.object({
13831
- id: z.optional(z.string()),
13832
- type: z.optional(z.enum([
13830
+ id: z.nullish(z.string()),
13831
+ type: z.nullish(z.enum([
13833
13832
  "api-token",
13834
13833
  "workspace-member",
13835
13834
  "system",
@@ -13845,8 +13844,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
13845
13844
  active_from: z.iso.datetime(),
13846
13845
  active_until: z.union([z.iso.datetime(), z.null()]),
13847
13846
  created_by_actor: z.object({
13848
- id: z.optional(z.string()),
13849
- type: z.optional(z.enum([
13847
+ id: z.nullish(z.string()),
13848
+ type: z.nullish(z.enum([
13850
13849
  "api-token",
13851
13850
  "workspace-member",
13852
13851
  "system",
@@ -14115,8 +14114,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14115
14114
  active_from: z.iso.datetime(),
14116
14115
  active_until: z.union([z.iso.datetime(), z.null()]),
14117
14116
  created_by_actor: z.object({
14118
- id: z.optional(z.string()),
14119
- type: z.optional(z.enum([
14117
+ id: z.nullish(z.string()),
14118
+ type: z.nullish(z.enum([
14120
14119
  "api-token",
14121
14120
  "workspace-member",
14122
14121
  "system",
@@ -14130,8 +14129,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14130
14129
  active_from: z.iso.datetime(),
14131
14130
  active_until: z.union([z.iso.datetime(), z.null()]),
14132
14131
  created_by_actor: z.object({
14133
- id: z.optional(z.string()),
14134
- type: z.optional(z.enum([
14132
+ id: z.nullish(z.string()),
14133
+ type: z.nullish(z.enum([
14135
14134
  "api-token",
14136
14135
  "workspace-member",
14137
14136
  "system",
@@ -14145,8 +14144,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14145
14144
  active_from: z.iso.datetime(),
14146
14145
  active_until: z.union([z.iso.datetime(), z.null()]),
14147
14146
  created_by_actor: z.object({
14148
- id: z.optional(z.string()),
14149
- type: z.optional(z.enum([
14147
+ id: z.nullish(z.string()),
14148
+ type: z.nullish(z.enum([
14150
14149
  "api-token",
14151
14150
  "workspace-member",
14152
14151
  "system",
@@ -14160,8 +14159,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14160
14159
  active_from: z.iso.datetime(),
14161
14160
  active_until: z.union([z.iso.datetime(), z.null()]),
14162
14161
  created_by_actor: z.object({
14163
- id: z.optional(z.string()),
14164
- type: z.optional(z.enum([
14162
+ id: z.nullish(z.string()),
14163
+ type: z.nullish(z.enum([
14165
14164
  "api-token",
14166
14165
  "workspace-member",
14167
14166
  "system",
@@ -14175,8 +14174,8 @@ const zPatchV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14175
14174
  active_from: z.iso.datetime(),
14176
14175
  active_until: z.union([z.iso.datetime(), z.null()]),
14177
14176
  created_by_actor: z.object({
14178
- id: z.optional(z.string()),
14179
- type: z.optional(z.enum([
14177
+ id: z.nullish(z.string()),
14178
+ type: z.nullish(z.enum([
14180
14179
  "api-token",
14181
14180
  "workspace-member",
14182
14181
  "system",
@@ -14194,7 +14193,7 @@ const zPutV2ListsByListEntriesByEntryIdData = z.object({
14194
14193
  list: z.string(),
14195
14194
  entry_id: z.string()
14196
14195
  }),
14197
- query: z.optional(z.never())
14196
+ query: z.nullish(z.never())
14198
14197
  });
14199
14198
  /**
14200
14199
  * Success
@@ -14213,8 +14212,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14213
14212
  active_from: z.iso.datetime(),
14214
14213
  active_until: z.union([z.iso.datetime(), z.null()]),
14215
14214
  created_by_actor: z.object({
14216
- id: z.optional(z.string()),
14217
- type: z.optional(z.enum([
14215
+ id: z.nullish(z.string()),
14216
+ type: z.nullish(z.enum([
14218
14217
  "api-token",
14219
14218
  "workspace-member",
14220
14219
  "system",
@@ -14234,8 +14233,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14234
14233
  active_from: z.iso.datetime(),
14235
14234
  active_until: z.union([z.iso.datetime(), z.null()]),
14236
14235
  created_by_actor: z.object({
14237
- id: z.optional(z.string()),
14238
- type: z.optional(z.enum([
14236
+ id: z.nullish(z.string()),
14237
+ type: z.nullish(z.enum([
14239
14238
  "api-token",
14240
14239
  "workspace-member",
14241
14240
  "system",
@@ -14249,8 +14248,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14249
14248
  active_from: z.iso.datetime(),
14250
14249
  active_until: z.union([z.iso.datetime(), z.null()]),
14251
14250
  created_by_actor: z.object({
14252
- id: z.optional(z.string()),
14253
- type: z.optional(z.enum([
14251
+ id: z.nullish(z.string()),
14252
+ type: z.nullish(z.enum([
14254
14253
  "api-token",
14255
14254
  "workspace-member",
14256
14255
  "system",
@@ -14258,7 +14257,7 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14258
14257
  ]))
14259
14258
  }),
14260
14259
  currency_value: z.number(),
14261
- currency_code: z.optional(z.enum([
14260
+ currency_code: z.nullish(z.enum([
14262
14261
  "ARS",
14263
14262
  "AUD",
14264
14263
  "BRL",
@@ -14306,8 +14305,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14306
14305
  active_from: z.iso.datetime(),
14307
14306
  active_until: z.union([z.iso.datetime(), z.null()]),
14308
14307
  created_by_actor: z.object({
14309
- id: z.optional(z.string()),
14310
- type: z.optional(z.enum([
14308
+ id: z.nullish(z.string()),
14309
+ type: z.nullish(z.enum([
14311
14310
  "api-token",
14312
14311
  "workspace-member",
14313
14312
  "system",
@@ -14321,8 +14320,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14321
14320
  active_from: z.iso.datetime(),
14322
14321
  active_until: z.union([z.iso.datetime(), z.null()]),
14323
14322
  created_by_actor: z.object({
14324
- id: z.optional(z.string()),
14325
- type: z.optional(z.enum([
14323
+ id: z.nullish(z.string()),
14324
+ type: z.nullish(z.enum([
14326
14325
  "api-token",
14327
14326
  "workspace-member",
14328
14327
  "system",
@@ -14337,8 +14336,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14337
14336
  active_from: z.iso.datetime(),
14338
14337
  active_until: z.union([z.iso.datetime(), z.null()]),
14339
14338
  created_by_actor: z.object({
14340
- id: z.optional(z.string()),
14341
- type: z.optional(z.enum([
14339
+ id: z.nullish(z.string()),
14340
+ type: z.nullish(z.enum([
14342
14341
  "api-token",
14343
14342
  "workspace-member",
14344
14343
  "system",
@@ -14356,8 +14355,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14356
14355
  active_from: z.iso.datetime(),
14357
14356
  active_until: z.union([z.iso.datetime(), z.null()]),
14358
14357
  created_by_actor: z.object({
14359
- id: z.optional(z.string()),
14360
- type: z.optional(z.enum([
14358
+ id: z.nullish(z.string()),
14359
+ type: z.nullish(z.enum([
14361
14360
  "api-token",
14362
14361
  "workspace-member",
14363
14362
  "system",
@@ -14372,8 +14371,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14372
14371
  active_from: z.iso.datetime(),
14373
14372
  active_until: z.union([z.iso.datetime(), z.null()]),
14374
14373
  created_by_actor: z.object({
14375
- id: z.optional(z.string()),
14376
- type: z.optional(z.enum([
14374
+ id: z.nullish(z.string()),
14375
+ type: z.nullish(z.enum([
14377
14376
  "api-token",
14378
14377
  "workspace-member",
14379
14378
  "system",
@@ -14390,8 +14389,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14390
14389
  ]),
14391
14390
  interacted_at: z.iso.datetime(),
14392
14391
  owner_actor: z.object({
14393
- id: z.optional(z.string()),
14394
- type: z.optional(z.enum([
14392
+ id: z.nullish(z.string()),
14393
+ type: z.nullish(z.enum([
14395
14394
  "api-token",
14396
14395
  "workspace-member",
14397
14396
  "system",
@@ -14404,8 +14403,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14404
14403
  active_from: z.iso.datetime(),
14405
14404
  active_until: z.union([z.iso.datetime(), z.null()]),
14406
14405
  created_by_actor: z.object({
14407
- id: z.optional(z.string()),
14408
- type: z.optional(z.enum([
14406
+ id: z.nullish(z.string()),
14407
+ type: z.nullish(z.enum([
14409
14408
  "api-token",
14410
14409
  "workspace-member",
14411
14410
  "system",
@@ -14681,8 +14680,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14681
14680
  active_from: z.iso.datetime(),
14682
14681
  active_until: z.union([z.iso.datetime(), z.null()]),
14683
14682
  created_by_actor: z.object({
14684
- id: z.optional(z.string()),
14685
- type: z.optional(z.enum([
14683
+ id: z.nullish(z.string()),
14684
+ type: z.nullish(z.enum([
14686
14685
  "api-token",
14687
14686
  "workspace-member",
14688
14687
  "system",
@@ -14696,8 +14695,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14696
14695
  active_from: z.iso.datetime(),
14697
14696
  active_until: z.union([z.iso.datetime(), z.null()]),
14698
14697
  created_by_actor: z.object({
14699
- id: z.optional(z.string()),
14700
- type: z.optional(z.enum([
14698
+ id: z.nullish(z.string()),
14699
+ type: z.nullish(z.enum([
14701
14700
  "api-token",
14702
14701
  "workspace-member",
14703
14702
  "system",
@@ -14713,8 +14712,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14713
14712
  active_from: z.iso.datetime(),
14714
14713
  active_until: z.union([z.iso.datetime(), z.null()]),
14715
14714
  created_by_actor: z.object({
14716
- id: z.optional(z.string()),
14717
- type: z.optional(z.enum([
14715
+ id: z.nullish(z.string()),
14716
+ type: z.nullish(z.enum([
14718
14717
  "api-token",
14719
14718
  "workspace-member",
14720
14719
  "system",
@@ -14983,8 +14982,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14983
14982
  active_from: z.iso.datetime(),
14984
14983
  active_until: z.union([z.iso.datetime(), z.null()]),
14985
14984
  created_by_actor: z.object({
14986
- id: z.optional(z.string()),
14987
- type: z.optional(z.enum([
14985
+ id: z.nullish(z.string()),
14986
+ type: z.nullish(z.enum([
14988
14987
  "api-token",
14989
14988
  "workspace-member",
14990
14989
  "system",
@@ -14998,8 +14997,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
14998
14997
  active_from: z.iso.datetime(),
14999
14998
  active_until: z.union([z.iso.datetime(), z.null()]),
15000
14999
  created_by_actor: z.object({
15001
- id: z.optional(z.string()),
15002
- type: z.optional(z.enum([
15000
+ id: z.nullish(z.string()),
15001
+ type: z.nullish(z.enum([
15003
15002
  "api-token",
15004
15003
  "workspace-member",
15005
15004
  "system",
@@ -15013,8 +15012,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
15013
15012
  active_from: z.iso.datetime(),
15014
15013
  active_until: z.union([z.iso.datetime(), z.null()]),
15015
15014
  created_by_actor: z.object({
15016
- id: z.optional(z.string()),
15017
- type: z.optional(z.enum([
15015
+ id: z.nullish(z.string()),
15016
+ type: z.nullish(z.enum([
15018
15017
  "api-token",
15019
15018
  "workspace-member",
15020
15019
  "system",
@@ -15028,8 +15027,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
15028
15027
  active_from: z.iso.datetime(),
15029
15028
  active_until: z.union([z.iso.datetime(), z.null()]),
15030
15029
  created_by_actor: z.object({
15031
- id: z.optional(z.string()),
15032
- type: z.optional(z.enum([
15030
+ id: z.nullish(z.string()),
15031
+ type: z.nullish(z.enum([
15033
15032
  "api-token",
15034
15033
  "workspace-member",
15035
15034
  "system",
@@ -15043,8 +15042,8 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
15043
15042
  active_from: z.iso.datetime(),
15044
15043
  active_until: z.union([z.iso.datetime(), z.null()]),
15045
15044
  created_by_actor: z.object({
15046
- id: z.optional(z.string()),
15047
- type: z.optional(z.enum([
15045
+ id: z.nullish(z.string()),
15046
+ type: z.nullish(z.enum([
15048
15047
  "api-token",
15049
15048
  "workspace-member",
15050
15049
  "system",
@@ -15057,16 +15056,16 @@ const zPutV2ListsByListEntriesByEntryIdResponse = z.object({ data: z.object({
15057
15056
  ])))
15058
15057
  }) });
15059
15058
  const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesData = z.object({
15060
- body: z.optional(z.never()),
15059
+ body: z.nullish(z.never()),
15061
15060
  path: z.object({
15062
15061
  list: z.string(),
15063
15062
  entry_id: z.uuid(),
15064
15063
  attribute: z.string()
15065
15064
  }),
15066
- query: z.optional(z.object({
15067
- show_historic: z.optional(z.boolean()).default(false),
15068
- limit: z.optional(z.int()),
15069
- offset: z.optional(z.int())
15065
+ query: z.nullish(z.object({
15066
+ show_historic: z.nullish(z.boolean()).default(false),
15067
+ limit: z.nullish(z.int()),
15068
+ offset: z.nullish(z.int())
15070
15069
  }))
15071
15070
  });
15072
15071
  /**
@@ -15077,8 +15076,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15077
15076
  active_from: z.iso.datetime(),
15078
15077
  active_until: z.union([z.iso.datetime(), z.null()]),
15079
15078
  created_by_actor: z.object({
15080
- id: z.optional(z.string()),
15081
- type: z.optional(z.enum([
15079
+ id: z.nullish(z.string()),
15080
+ type: z.nullish(z.enum([
15082
15081
  "api-token",
15083
15082
  "workspace-member",
15084
15083
  "system",
@@ -15098,8 +15097,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15098
15097
  active_from: z.iso.datetime(),
15099
15098
  active_until: z.union([z.iso.datetime(), z.null()]),
15100
15099
  created_by_actor: z.object({
15101
- id: z.optional(z.string()),
15102
- type: z.optional(z.enum([
15100
+ id: z.nullish(z.string()),
15101
+ type: z.nullish(z.enum([
15103
15102
  "api-token",
15104
15103
  "workspace-member",
15105
15104
  "system",
@@ -15113,8 +15112,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15113
15112
  active_from: z.iso.datetime(),
15114
15113
  active_until: z.union([z.iso.datetime(), z.null()]),
15115
15114
  created_by_actor: z.object({
15116
- id: z.optional(z.string()),
15117
- type: z.optional(z.enum([
15115
+ id: z.nullish(z.string()),
15116
+ type: z.nullish(z.enum([
15118
15117
  "api-token",
15119
15118
  "workspace-member",
15120
15119
  "system",
@@ -15122,7 +15121,7 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15122
15121
  ]))
15123
15122
  }),
15124
15123
  currency_value: z.number(),
15125
- currency_code: z.optional(z.enum([
15124
+ currency_code: z.nullish(z.enum([
15126
15125
  "ARS",
15127
15126
  "AUD",
15128
15127
  "BRL",
@@ -15170,8 +15169,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15170
15169
  active_from: z.iso.datetime(),
15171
15170
  active_until: z.union([z.iso.datetime(), z.null()]),
15172
15171
  created_by_actor: z.object({
15173
- id: z.optional(z.string()),
15174
- type: z.optional(z.enum([
15172
+ id: z.nullish(z.string()),
15173
+ type: z.nullish(z.enum([
15175
15174
  "api-token",
15176
15175
  "workspace-member",
15177
15176
  "system",
@@ -15185,8 +15184,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15185
15184
  active_from: z.iso.datetime(),
15186
15185
  active_until: z.union([z.iso.datetime(), z.null()]),
15187
15186
  created_by_actor: z.object({
15188
- id: z.optional(z.string()),
15189
- type: z.optional(z.enum([
15187
+ id: z.nullish(z.string()),
15188
+ type: z.nullish(z.enum([
15190
15189
  "api-token",
15191
15190
  "workspace-member",
15192
15191
  "system",
@@ -15201,8 +15200,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15201
15200
  active_from: z.iso.datetime(),
15202
15201
  active_until: z.union([z.iso.datetime(), z.null()]),
15203
15202
  created_by_actor: z.object({
15204
- id: z.optional(z.string()),
15205
- type: z.optional(z.enum([
15203
+ id: z.nullish(z.string()),
15204
+ type: z.nullish(z.enum([
15206
15205
  "api-token",
15207
15206
  "workspace-member",
15208
15207
  "system",
@@ -15220,8 +15219,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15220
15219
  active_from: z.iso.datetime(),
15221
15220
  active_until: z.union([z.iso.datetime(), z.null()]),
15222
15221
  created_by_actor: z.object({
15223
- id: z.optional(z.string()),
15224
- type: z.optional(z.enum([
15222
+ id: z.nullish(z.string()),
15223
+ type: z.nullish(z.enum([
15225
15224
  "api-token",
15226
15225
  "workspace-member",
15227
15226
  "system",
@@ -15236,8 +15235,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15236
15235
  active_from: z.iso.datetime(),
15237
15236
  active_until: z.union([z.iso.datetime(), z.null()]),
15238
15237
  created_by_actor: z.object({
15239
- id: z.optional(z.string()),
15240
- type: z.optional(z.enum([
15238
+ id: z.nullish(z.string()),
15239
+ type: z.nullish(z.enum([
15241
15240
  "api-token",
15242
15241
  "workspace-member",
15243
15242
  "system",
@@ -15254,8 +15253,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15254
15253
  ]),
15255
15254
  interacted_at: z.iso.datetime(),
15256
15255
  owner_actor: z.object({
15257
- id: z.optional(z.string()),
15258
- type: z.optional(z.enum([
15256
+ id: z.nullish(z.string()),
15257
+ type: z.nullish(z.enum([
15259
15258
  "api-token",
15260
15259
  "workspace-member",
15261
15260
  "system",
@@ -15268,8 +15267,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15268
15267
  active_from: z.iso.datetime(),
15269
15268
  active_until: z.union([z.iso.datetime(), z.null()]),
15270
15269
  created_by_actor: z.object({
15271
- id: z.optional(z.string()),
15272
- type: z.optional(z.enum([
15270
+ id: z.nullish(z.string()),
15271
+ type: z.nullish(z.enum([
15273
15272
  "api-token",
15274
15273
  "workspace-member",
15275
15274
  "system",
@@ -15545,8 +15544,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15545
15544
  active_from: z.iso.datetime(),
15546
15545
  active_until: z.union([z.iso.datetime(), z.null()]),
15547
15546
  created_by_actor: z.object({
15548
- id: z.optional(z.string()),
15549
- type: z.optional(z.enum([
15547
+ id: z.nullish(z.string()),
15548
+ type: z.nullish(z.enum([
15550
15549
  "api-token",
15551
15550
  "workspace-member",
15552
15551
  "system",
@@ -15560,8 +15559,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15560
15559
  active_from: z.iso.datetime(),
15561
15560
  active_until: z.union([z.iso.datetime(), z.null()]),
15562
15561
  created_by_actor: z.object({
15563
- id: z.optional(z.string()),
15564
- type: z.optional(z.enum([
15562
+ id: z.nullish(z.string()),
15563
+ type: z.nullish(z.enum([
15565
15564
  "api-token",
15566
15565
  "workspace-member",
15567
15566
  "system",
@@ -15577,8 +15576,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15577
15576
  active_from: z.iso.datetime(),
15578
15577
  active_until: z.union([z.iso.datetime(), z.null()]),
15579
15578
  created_by_actor: z.object({
15580
- id: z.optional(z.string()),
15581
- type: z.optional(z.enum([
15579
+ id: z.nullish(z.string()),
15580
+ type: z.nullish(z.enum([
15582
15581
  "api-token",
15583
15582
  "workspace-member",
15584
15583
  "system",
@@ -15847,8 +15846,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15847
15846
  active_from: z.iso.datetime(),
15848
15847
  active_until: z.union([z.iso.datetime(), z.null()]),
15849
15848
  created_by_actor: z.object({
15850
- id: z.optional(z.string()),
15851
- type: z.optional(z.enum([
15849
+ id: z.nullish(z.string()),
15850
+ type: z.nullish(z.enum([
15852
15851
  "api-token",
15853
15852
  "workspace-member",
15854
15853
  "system",
@@ -15862,8 +15861,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15862
15861
  active_from: z.iso.datetime(),
15863
15862
  active_until: z.union([z.iso.datetime(), z.null()]),
15864
15863
  created_by_actor: z.object({
15865
- id: z.optional(z.string()),
15866
- type: z.optional(z.enum([
15864
+ id: z.nullish(z.string()),
15865
+ type: z.nullish(z.enum([
15867
15866
  "api-token",
15868
15867
  "workspace-member",
15869
15868
  "system",
@@ -15877,8 +15876,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15877
15876
  active_from: z.iso.datetime(),
15878
15877
  active_until: z.union([z.iso.datetime(), z.null()]),
15879
15878
  created_by_actor: z.object({
15880
- id: z.optional(z.string()),
15881
- type: z.optional(z.enum([
15879
+ id: z.nullish(z.string()),
15880
+ type: z.nullish(z.enum([
15882
15881
  "api-token",
15883
15882
  "workspace-member",
15884
15883
  "system",
@@ -15892,8 +15891,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15892
15891
  active_from: z.iso.datetime(),
15893
15892
  active_until: z.union([z.iso.datetime(), z.null()]),
15894
15893
  created_by_actor: z.object({
15895
- id: z.optional(z.string()),
15896
- type: z.optional(z.enum([
15894
+ id: z.nullish(z.string()),
15895
+ type: z.nullish(z.enum([
15897
15896
  "api-token",
15898
15897
  "workspace-member",
15899
15898
  "system",
@@ -15907,8 +15906,8 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15907
15906
  active_from: z.iso.datetime(),
15908
15907
  active_until: z.union([z.iso.datetime(), z.null()]),
15909
15908
  created_by_actor: z.object({
15910
- id: z.optional(z.string()),
15911
- type: z.optional(z.enum([
15909
+ id: z.nullish(z.string()),
15910
+ type: z.nullish(z.enum([
15912
15911
  "api-token",
15913
15912
  "workspace-member",
15914
15913
  "system",
@@ -15920,31 +15919,31 @@ const zGetV2ListsByListEntriesByEntryIdAttributesByAttributeValuesResponse = z.o
15920
15919
  })
15921
15920
  ])) });
15922
15921
  const zGetV2WorkspaceMembersData = z.object({
15923
- body: z.optional(z.never()),
15924
- path: z.optional(z.never()),
15925
- query: z.optional(z.never())
15922
+ body: z.nullish(z.never()),
15923
+ path: z.nullish(z.never()),
15924
+ query: z.nullish(z.never())
15926
15925
  });
15927
15926
  /**
15928
15927
  * Success
15929
15928
  */
15930
15929
  const zGetV2WorkspaceMembersResponse = z.object({ data: z.array(zWorkspaceMember) });
15931
15930
  const zGetV2WorkspaceMembersByWorkspaceMemberIdData = z.object({
15932
- body: z.optional(z.never()),
15931
+ body: z.nullish(z.never()),
15933
15932
  path: z.object({ workspace_member_id: z.uuid() }),
15934
- query: z.optional(z.never())
15933
+ query: z.nullish(z.never())
15935
15934
  });
15936
15935
  /**
15937
15936
  * Success
15938
15937
  */
15939
15938
  const zGetV2WorkspaceMembersByWorkspaceMemberIdResponse = z.object({ data: zWorkspaceMember });
15940
15939
  const zGetV2NotesData = z.object({
15941
- body: z.optional(z.never()),
15942
- path: z.optional(z.never()),
15943
- query: z.optional(z.object({
15944
- limit: z.optional(z.int()),
15945
- offset: z.optional(z.int()),
15946
- parent_object: z.optional(z.string()),
15947
- parent_record_id: z.optional(z.uuid())
15940
+ body: z.nullish(z.never()),
15941
+ path: z.nullish(z.never()),
15942
+ query: z.nullish(z.object({
15943
+ limit: z.nullish(z.int()),
15944
+ offset: z.nullish(z.int()),
15945
+ parent_object: z.nullish(z.string()),
15946
+ parent_record_id: z.nullish(z.uuid())
15948
15947
  }))
15949
15948
  });
15950
15949
  /**
@@ -15958,45 +15957,45 @@ const zPostV2NotesData = z.object({
15958
15957
  title: z.string(),
15959
15958
  format: z.enum(["plaintext", "markdown"]),
15960
15959
  content: z.string(),
15961
- created_at: z.optional(z.string()),
15962
- meeting_id: z.optional(z.union([z.uuid(), z.null()]))
15960
+ created_at: z.nullish(z.string()),
15961
+ meeting_id: z.nullish(z.union([z.uuid(), z.null()]))
15963
15962
  }) }),
15964
- path: z.optional(z.never()),
15965
- query: z.optional(z.never())
15963
+ path: z.nullish(z.never()),
15964
+ query: z.nullish(z.never())
15966
15965
  });
15967
15966
  /**
15968
15967
  * Success
15969
15968
  */
15970
15969
  const zPostV2NotesResponse = z.object({ data: zNote });
15971
15970
  const zDeleteV2NotesByNoteIdData = z.object({
15972
- body: z.optional(z.never()),
15971
+ body: z.nullish(z.never()),
15973
15972
  path: z.object({ note_id: z.uuid() }),
15974
- query: z.optional(z.never())
15973
+ query: z.nullish(z.never())
15975
15974
  });
15976
15975
  /**
15977
15976
  * Success
15978
15977
  */
15979
15978
  const zDeleteV2NotesByNoteIdResponse = z.record(z.string(), z.unknown());
15980
15979
  const zGetV2NotesByNoteIdData = z.object({
15981
- body: z.optional(z.never()),
15980
+ body: z.nullish(z.never()),
15982
15981
  path: z.object({ note_id: z.uuid() }),
15983
- query: z.optional(z.never())
15982
+ query: z.nullish(z.never())
15984
15983
  });
15985
15984
  /**
15986
15985
  * Success
15987
15986
  */
15988
15987
  const zGetV2NotesByNoteIdResponse = z.object({ data: zNote });
15989
15988
  const zGetV2TasksData = z.object({
15990
- body: z.optional(z.never()),
15991
- path: z.optional(z.never()),
15992
- query: z.optional(z.object({
15993
- limit: z.optional(z.int()),
15994
- offset: z.optional(z.int()),
15995
- sort: z.optional(z.enum(["created_at:asc", "created_at:desc"])),
15996
- linked_object: z.optional(z.string()),
15997
- linked_record_id: z.optional(z.uuid()),
15998
- assignee: z.optional(z.union([z.string(), z.null()])),
15999
- is_completed: z.optional(z.boolean())
15989
+ body: z.nullish(z.never()),
15990
+ path: z.nullish(z.never()),
15991
+ query: z.nullish(z.object({
15992
+ limit: z.nullish(z.int()),
15993
+ offset: z.nullish(z.int()),
15994
+ sort: z.nullish(z.enum(["created_at:asc", "created_at:desc"])),
15995
+ linked_object: z.nullish(z.string()),
15996
+ linked_record_id: z.nullish(z.uuid()),
15997
+ assignee: z.nullish(z.union([z.string(), z.null()])),
15998
+ is_completed: z.nullish(z.boolean())
16000
15999
  }))
16001
16000
  });
16002
16001
  /**
@@ -16015,12 +16014,12 @@ const zPostV2TasksData = z.object({
16015
16014
  }), z.object({
16016
16015
  target_object: z.string(),
16017
16016
  "[slug_or_id_of_matching_attribute]": z.array(z.union([
16018
- z.object({ domain: z.optional(z.string()) }),
16019
- z.object({ email_address: z.optional(z.string()) }),
16020
- z.object({ value: z.optional(z.number()) }),
16017
+ z.object({ domain: z.nullish(z.string()) }),
16018
+ z.object({ email_address: z.nullish(z.string()) }),
16019
+ z.object({ value: z.nullish(z.number()) }),
16021
16020
  z.object({
16022
- original_phone_number: z.optional(z.string()),
16023
- country_code: z.optional(z.enum([
16021
+ original_phone_number: z.nullish(z.string()),
16022
+ country_code: z.nullish(z.enum([
16024
16023
  "AF",
16025
16024
  "AX",
16026
16025
  "AL",
@@ -16275,7 +16274,7 @@ const zPostV2TasksData = z.object({
16275
16274
  "AC"
16276
16275
  ]))
16277
16276
  }),
16278
- z.object({ value: z.optional(z.string()) })
16277
+ z.object({ value: z.nullish(z.string()) })
16279
16278
  ]))
16280
16279
  })])),
16281
16280
  assignees: z.array(z.union([z.object({
@@ -16283,26 +16282,26 @@ const zPostV2TasksData = z.object({
16283
16282
  referenced_actor_id: z.uuid()
16284
16283
  }), z.object({ workspace_member_email_address: z.string() })]))
16285
16284
  }) }),
16286
- path: z.optional(z.never()),
16287
- query: z.optional(z.never())
16285
+ path: z.nullish(z.never()),
16286
+ query: z.nullish(z.never())
16288
16287
  });
16289
16288
  /**
16290
16289
  * Success
16291
16290
  */
16292
16291
  const zPostV2TasksResponse = z.object({ data: zTask });
16293
16292
  const zDeleteV2TasksByTaskIdData = z.object({
16294
- body: z.optional(z.never()),
16293
+ body: z.nullish(z.never()),
16295
16294
  path: z.object({ task_id: z.uuid() }),
16296
- query: z.optional(z.never())
16295
+ query: z.nullish(z.never())
16297
16296
  });
16298
16297
  /**
16299
16298
  * Success
16300
16299
  */
16301
16300
  const zDeleteV2TasksByTaskIdResponse = z.record(z.string(), z.unknown());
16302
16301
  const zGetV2TasksByTaskIdData = z.object({
16303
- body: z.optional(z.never()),
16302
+ body: z.nullish(z.never()),
16304
16303
  path: z.object({ task_id: z.uuid() }),
16305
- query: z.optional(z.never())
16304
+ query: z.nullish(z.never())
16306
16305
  });
16307
16306
  /**
16308
16307
  * Success
@@ -16310,20 +16309,20 @@ const zGetV2TasksByTaskIdData = z.object({
16310
16309
  const zGetV2TasksByTaskIdResponse = z.object({ data: zTask });
16311
16310
  const zPatchV2TasksByTaskIdData = z.object({
16312
16311
  body: z.object({ data: z.object({
16313
- deadline_at: z.optional(z.union([z.string(), z.null()])),
16314
- is_completed: z.optional(z.boolean()),
16315
- linked_records: z.optional(z.array(z.union([z.object({
16312
+ deadline_at: z.nullish(z.union([z.string(), z.null()])),
16313
+ is_completed: z.nullish(z.boolean()),
16314
+ linked_records: z.nullish(z.array(z.union([z.object({
16316
16315
  target_object: z.string(),
16317
16316
  target_record_id: z.uuid()
16318
16317
  }), z.object({
16319
16318
  target_object: z.string(),
16320
16319
  "[slug_or_id_of_matching_attribute]": z.array(z.union([
16321
- z.object({ domain: z.optional(z.string()) }),
16322
- z.object({ email_address: z.optional(z.string()) }),
16323
- z.object({ value: z.optional(z.number()) }),
16320
+ z.object({ domain: z.nullish(z.string()) }),
16321
+ z.object({ email_address: z.nullish(z.string()) }),
16322
+ z.object({ value: z.nullish(z.number()) }),
16324
16323
  z.object({
16325
- original_phone_number: z.optional(z.string()),
16326
- country_code: z.optional(z.enum([
16324
+ original_phone_number: z.nullish(z.string()),
16325
+ country_code: z.nullish(z.enum([
16327
16326
  "AF",
16328
16327
  "AX",
16329
16328
  "AL",
@@ -16578,31 +16577,31 @@ const zPatchV2TasksByTaskIdData = z.object({
16578
16577
  "AC"
16579
16578
  ]))
16580
16579
  }),
16581
- z.object({ value: z.optional(z.string()) })
16580
+ z.object({ value: z.nullish(z.string()) })
16582
16581
  ]))
16583
16582
  })]))),
16584
- assignees: z.optional(z.array(z.union([z.object({
16583
+ assignees: z.nullish(z.array(z.union([z.object({
16585
16584
  referenced_actor_type: z.enum(["workspace-member"]),
16586
16585
  referenced_actor_id: z.uuid()
16587
16586
  }), z.object({ workspace_member_email_address: z.string() })])))
16588
16587
  }) }),
16589
16588
  path: z.object({ task_id: z.uuid() }),
16590
- query: z.optional(z.never())
16589
+ query: z.nullish(z.never())
16591
16590
  });
16592
16591
  /**
16593
16592
  * Success
16594
16593
  */
16595
16594
  const zPatchV2TasksByTaskIdResponse = z.object({ data: zTask });
16596
16595
  const zGetV2ThreadsData = z.object({
16597
- body: z.optional(z.never()),
16598
- path: z.optional(z.never()),
16599
- query: z.optional(z.object({
16600
- record_id: z.optional(z.uuid()),
16601
- object: z.optional(z.string()),
16602
- entry_id: z.optional(z.uuid()),
16603
- list: z.optional(z.string()),
16604
- limit: z.optional(z.int()),
16605
- offset: z.optional(z.int())
16596
+ body: z.nullish(z.never()),
16597
+ path: z.nullish(z.never()),
16598
+ query: z.nullish(z.object({
16599
+ record_id: z.nullish(z.uuid()),
16600
+ object: z.nullish(z.string()),
16601
+ entry_id: z.nullish(z.uuid()),
16602
+ list: z.nullish(z.string()),
16603
+ limit: z.nullish(z.int()),
16604
+ offset: z.nullish(z.int())
16606
16605
  }))
16607
16606
  });
16608
16607
  /**
@@ -16610,9 +16609,9 @@ const zGetV2ThreadsData = z.object({
16610
16609
  */
16611
16610
  const zGetV2ThreadsResponse = z.object({ data: z.array(zThread) });
16612
16611
  const zGetV2ThreadsByThreadIdData = z.object({
16613
- body: z.optional(z.never()),
16612
+ body: z.nullish(z.never()),
16614
16613
  path: z.object({ thread_id: z.uuid() }),
16615
- query: z.optional(z.never())
16614
+ query: z.nullish(z.never())
16616
16615
  });
16617
16616
  /**
16618
16617
  * Success
@@ -16627,7 +16626,7 @@ const zPostV2CommentsData = z.object({
16627
16626
  type: z.enum(["workspace-member"]),
16628
16627
  id: z.uuid()
16629
16628
  }),
16630
- created_at: z.optional(z.string()),
16629
+ created_at: z.nullish(z.string()),
16631
16630
  thread_id: z.uuid()
16632
16631
  }),
16633
16632
  z.object({
@@ -16637,7 +16636,7 @@ const zPostV2CommentsData = z.object({
16637
16636
  type: z.enum(["workspace-member"]),
16638
16637
  id: z.uuid()
16639
16638
  }),
16640
- created_at: z.optional(z.string()),
16639
+ created_at: z.nullish(z.string()),
16641
16640
  record: z.object({
16642
16641
  object: z.string(),
16643
16642
  record_id: z.uuid()
@@ -16650,51 +16649,51 @@ const zPostV2CommentsData = z.object({
16650
16649
  type: z.enum(["workspace-member"]),
16651
16650
  id: z.uuid()
16652
16651
  }),
16653
- created_at: z.optional(z.string()),
16652
+ created_at: z.nullish(z.string()),
16654
16653
  entry: z.object({
16655
16654
  list: z.string(),
16656
16655
  entry_id: z.string()
16657
16656
  })
16658
16657
  })
16659
16658
  ]) }),
16660
- path: z.optional(z.never()),
16661
- query: z.optional(z.never())
16659
+ path: z.nullish(z.never()),
16660
+ query: z.nullish(z.never())
16662
16661
  });
16663
16662
  /**
16664
16663
  * Success
16665
16664
  */
16666
16665
  const zPostV2CommentsResponse = z.object({ data: zComment });
16667
16666
  const zDeleteV2CommentsByCommentIdData = z.object({
16668
- body: z.optional(z.never()),
16667
+ body: z.nullish(z.never()),
16669
16668
  path: z.object({ comment_id: z.uuid() }),
16670
- query: z.optional(z.never())
16669
+ query: z.nullish(z.never())
16671
16670
  });
16672
16671
  /**
16673
16672
  * Success
16674
16673
  */
16675
16674
  const zDeleteV2CommentsByCommentIdResponse = z.record(z.string(), z.unknown());
16676
16675
  const zGetV2CommentsByCommentIdData = z.object({
16677
- body: z.optional(z.never()),
16676
+ body: z.nullish(z.never()),
16678
16677
  path: z.object({ comment_id: z.uuid() }),
16679
- query: z.optional(z.never())
16678
+ query: z.nullish(z.never())
16680
16679
  });
16681
16680
  /**
16682
16681
  * Success
16683
16682
  */
16684
16683
  const zGetV2CommentsByCommentIdResponse = z.object({ data: zComment });
16685
16684
  const zGetV2MeetingsData = z.object({
16686
- body: z.optional(z.never()),
16687
- path: z.optional(z.never()),
16688
- query: z.optional(z.object({
16689
- limit: z.optional(z.int().gte(1).lte(200)).default(50),
16690
- cursor: z.optional(z.string()),
16691
- linked_object: z.optional(z.string().min(1)),
16692
- linked_record_id: z.optional(z.uuid()),
16693
- participants: z.optional(z.string()).default(""),
16694
- sort: z.optional(z.enum(["start_asc", "start_desc"])),
16695
- ends_from: z.optional(z.union([z.string(), z.null()])),
16696
- starts_before: z.optional(z.union([z.string(), z.null()])),
16697
- timezone: z.optional(z.string()).default("UTC")
16685
+ body: z.nullish(z.never()),
16686
+ path: z.nullish(z.never()),
16687
+ query: z.nullish(z.object({
16688
+ limit: z.nullish(z.int().gte(1).lte(200)).default(50),
16689
+ cursor: z.nullish(z.string()),
16690
+ linked_object: z.nullish(z.string().min(1)),
16691
+ linked_record_id: z.nullish(z.uuid()),
16692
+ participants: z.nullish(z.string()).default(""),
16693
+ sort: z.nullish(z.enum(["start_asc", "start_desc"])),
16694
+ ends_from: z.nullish(z.union([z.string(), z.null()])),
16695
+ starts_before: z.nullish(z.union([z.string(), z.null()])),
16696
+ timezone: z.nullish(z.string()).default("UTC")
16698
16697
  }))
16699
16698
  });
16700
16699
  /**
@@ -16710,11 +16709,11 @@ const zPostV2MeetingsData = z.object({
16710
16709
  description: z.string(),
16711
16710
  start: z.union([z.object({
16712
16711
  datetime: z.iso.datetime(),
16713
- timezone: z.optional(z.union([z.string(), z.null()]))
16712
+ timezone: z.nullish(z.union([z.string(), z.null()]))
16714
16713
  }), z.object({ date: z.string() })]),
16715
16714
  end: z.union([z.object({
16716
16715
  datetime: z.iso.datetime(),
16717
- timezone: z.optional(z.union([z.string(), z.null()]))
16716
+ timezone: z.nullish(z.union([z.string(), z.null()]))
16718
16717
  }), z.object({ date: z.string() })]),
16719
16718
  is_all_day: z.boolean(),
16720
16719
  participants: z.array(z.object({
@@ -16731,39 +16730,39 @@ const zPostV2MeetingsData = z.object({
16731
16730
  "pending"
16732
16731
  ])
16733
16732
  })),
16734
- linked_records: z.optional(z.array(z.object({
16733
+ linked_records: z.nullish(z.array(z.object({
16735
16734
  object: z.string(),
16736
16735
  record_id: z.uuid()
16737
16736
  }))),
16738
16737
  external_ref: z.union([z.string().min(1), z.object({
16739
16738
  ical_uid: z.string(),
16740
16739
  provider: z.enum(["google", "microsoft"]),
16741
- original_start_time: z.optional(z.string()),
16740
+ original_start_time: z.nullish(z.string()),
16742
16741
  is_recurring: z.boolean()
16743
16742
  })])
16744
16743
  }) }),
16745
- path: z.optional(z.never()),
16746
- query: z.optional(z.never())
16744
+ path: z.nullish(z.never()),
16745
+ query: z.nullish(z.never())
16747
16746
  });
16748
16747
  /**
16749
16748
  * Success
16750
16749
  */
16751
16750
  const zPostV2MeetingsResponse = z.object({ data: zMeeting });
16752
16751
  const zGetV2MeetingsByMeetingIdData = z.object({
16753
- body: z.optional(z.never()),
16752
+ body: z.nullish(z.never()),
16754
16753
  path: z.object({ meeting_id: z.uuid() }),
16755
- query: z.optional(z.never())
16754
+ query: z.nullish(z.never())
16756
16755
  });
16757
16756
  /**
16758
16757
  * Success
16759
16758
  */
16760
16759
  const zGetV2MeetingsByMeetingIdResponse = z.object({ data: zMeeting });
16761
16760
  const zGetV2MeetingsByMeetingIdCallRecordingsData = z.object({
16762
- body: z.optional(z.never()),
16761
+ body: z.nullish(z.never()),
16763
16762
  path: z.object({ meeting_id: z.uuid() }),
16764
- query: z.optional(z.object({
16765
- limit: z.optional(z.int()),
16766
- cursor: z.optional(z.string().min(1))
16763
+ query: z.nullish(z.object({
16764
+ limit: z.nullish(z.int()),
16765
+ cursor: z.nullish(z.string().min(1))
16767
16766
  }))
16768
16767
  });
16769
16768
  /**
@@ -16783,8 +16782,8 @@ const zGetV2MeetingsByMeetingIdCallRecordingsResponse = z.object({
16783
16782
  ]),
16784
16783
  web_url: z.url(),
16785
16784
  created_by_actor: z.object({
16786
- id: z.optional(z.string()),
16787
- type: z.optional(z.enum([
16785
+ id: z.nullish(z.string()),
16786
+ type: z.nullish(z.enum([
16788
16787
  "api-token",
16789
16788
  "workspace-member",
16790
16789
  "system",
@@ -16798,7 +16797,7 @@ const zGetV2MeetingsByMeetingIdCallRecordingsResponse = z.object({
16798
16797
  const zPostV2MeetingsByMeetingIdCallRecordingsData = z.object({
16799
16798
  body: z.object({ data: z.object({ video_url: z.url() }) }),
16800
16799
  path: z.object({ meeting_id: z.uuid() }),
16801
- query: z.optional(z.never())
16800
+ query: z.nullish(z.never())
16802
16801
  });
16803
16802
  /**
16804
16803
  * Success
@@ -16816,8 +16815,8 @@ const zPostV2MeetingsByMeetingIdCallRecordingsResponse = z.object({ data: z.obje
16816
16815
  ]),
16817
16816
  web_url: z.url(),
16818
16817
  created_by_actor: z.object({
16819
- id: z.optional(z.string()),
16820
- type: z.optional(z.enum([
16818
+ id: z.nullish(z.string()),
16819
+ type: z.nullish(z.enum([
16821
16820
  "api-token",
16822
16821
  "workspace-member",
16823
16822
  "system",
@@ -16827,24 +16826,24 @@ const zPostV2MeetingsByMeetingIdCallRecordingsResponse = z.object({ data: z.obje
16827
16826
  created_at: z.string()
16828
16827
  }) });
16829
16828
  const zDeleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdData = z.object({
16830
- body: z.optional(z.never()),
16829
+ body: z.nullish(z.never()),
16831
16830
  path: z.object({
16832
16831
  meeting_id: z.uuid(),
16833
16832
  call_recording_id: z.uuid()
16834
16833
  }),
16835
- query: z.optional(z.never())
16834
+ query: z.nullish(z.never())
16836
16835
  });
16837
16836
  /**
16838
16837
  * Success
16839
16838
  */
16840
16839
  const zDeleteV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdResponse = z.record(z.string(), z.unknown());
16841
16840
  const zGetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdData = z.object({
16842
- body: z.optional(z.never()),
16841
+ body: z.nullish(z.never()),
16843
16842
  path: z.object({
16844
16843
  meeting_id: z.uuid(),
16845
16844
  call_recording_id: z.uuid()
16846
16845
  }),
16847
- query: z.optional(z.never())
16846
+ query: z.nullish(z.never())
16848
16847
  });
16849
16848
  /**
16850
16849
  * Success
@@ -16862,8 +16861,8 @@ const zGetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdResponse = z.objec
16862
16861
  ]),
16863
16862
  web_url: z.url(),
16864
16863
  created_by_actor: z.object({
16865
- id: z.optional(z.string()),
16866
- type: z.optional(z.enum([
16864
+ id: z.nullish(z.string()),
16865
+ type: z.nullish(z.enum([
16867
16866
  "api-token",
16868
16867
  "workspace-member",
16869
16868
  "system",
@@ -16873,12 +16872,12 @@ const zGetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdResponse = z.objec
16873
16872
  created_at: z.string()
16874
16873
  }) });
16875
16874
  const zGetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdTranscriptData = z.object({
16876
- body: z.optional(z.never()),
16875
+ body: z.nullish(z.never()),
16877
16876
  path: z.object({
16878
16877
  meeting_id: z.uuid(),
16879
16878
  call_recording_id: z.uuid()
16880
16879
  }),
16881
- query: z.optional(z.object({ cursor: z.optional(z.string()) }))
16880
+ query: z.nullish(z.object({ cursor: z.nullish(z.string()) }))
16882
16881
  });
16883
16882
  /**
16884
16883
  * Success
@@ -16902,11 +16901,11 @@ const zGetV2MeetingsByMeetingIdCallRecordingsByCallRecordingIdTranscriptResponse
16902
16901
  pagination: z.object({ next_cursor: z.union([z.string(), z.null()]) })
16903
16902
  });
16904
16903
  const zGetV2WebhooksData = z.object({
16905
- body: z.optional(z.never()),
16906
- path: z.optional(z.never()),
16907
- query: z.optional(z.object({
16908
- limit: z.optional(z.int()),
16909
- offset: z.optional(z.int())
16904
+ body: z.nullish(z.never()),
16905
+ path: z.nullish(z.never()),
16906
+ query: z.nullish(z.object({
16907
+ limit: z.nullish(z.int()),
16908
+ offset: z.nullish(z.int())
16910
16909
  }))
16911
16910
  });
16912
16911
  /**
@@ -17033,8 +17032,8 @@ const zPostV2WebhooksData = z.object({
17033
17032
  ])
17034
17033
  }))
17035
17034
  }) }),
17036
- path: z.optional(z.never()),
17037
- query: z.optional(z.never())
17035
+ path: z.nullish(z.never()),
17036
+ query: z.nullish(z.never())
17038
17037
  });
17039
17038
  /**
17040
17039
  * Success
@@ -17106,18 +17105,18 @@ const zPostV2WebhooksResponse = z.object({ data: z.object({
17106
17105
  secret: z.string()
17107
17106
  }) });
17108
17107
  const zDeleteV2WebhooksByWebhookIdData = z.object({
17109
- body: z.optional(z.never()),
17108
+ body: z.nullish(z.never()),
17110
17109
  path: z.object({ webhook_id: z.uuid() }),
17111
- query: z.optional(z.never())
17110
+ query: z.nullish(z.never())
17112
17111
  });
17113
17112
  /**
17114
17113
  * Success
17115
17114
  */
17116
17115
  const zDeleteV2WebhooksByWebhookIdResponse = z.record(z.string(), z.unknown());
17117
17116
  const zGetV2WebhooksByWebhookIdData = z.object({
17118
- body: z.optional(z.never()),
17117
+ body: z.nullish(z.never()),
17119
17118
  path: z.object({ webhook_id: z.uuid() }),
17120
- query: z.optional(z.never())
17119
+ query: z.nullish(z.never())
17121
17120
  });
17122
17121
  /**
17123
17122
  * Success
@@ -17189,8 +17188,8 @@ const zGetV2WebhooksByWebhookIdResponse = z.object({ data: z.object({
17189
17188
  }) });
17190
17189
  const zPatchV2WebhooksByWebhookIdData = z.object({
17191
17190
  body: z.object({ data: z.object({
17192
- target_url: z.optional(z.url().regex(/^https:\/\/.*/)),
17193
- subscriptions: z.optional(z.array(z.object({
17191
+ target_url: z.nullish(z.url().regex(/^https:\/\/.*/)),
17192
+ subscriptions: z.nullish(z.array(z.object({
17194
17193
  event_type: z.enum([
17195
17194
  "call-recording.created",
17196
17195
  "comment.created",
@@ -17244,7 +17243,7 @@ const zPatchV2WebhooksByWebhookIdData = z.object({
17244
17243
  })))
17245
17244
  }) }),
17246
17245
  path: z.object({ webhook_id: z.uuid() }),
17247
- query: z.optional(z.never())
17246
+ query: z.nullish(z.never())
17248
17247
  });
17249
17248
  /**
17250
17249
  * Success
@@ -17315,9 +17314,9 @@ const zPatchV2WebhooksByWebhookIdResponse = z.object({ data: z.object({
17315
17314
  created_at: z.string()
17316
17315
  }) });
17317
17316
  const zGetV2SelfData = z.object({
17318
- body: z.optional(z.never()),
17319
- path: z.optional(z.never()),
17320
- query: z.optional(z.never())
17317
+ body: z.nullish(z.never()),
17318
+ path: z.nullish(z.never()),
17319
+ query: z.nullish(z.never())
17321
17320
  });
17322
17321
  /**
17323
17322
  * Success