terse-types 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Tools.d.ts CHANGED
@@ -4642,6 +4642,7 @@ export declare const attioObjectSchema: z.ZodObject<{
4642
4642
  export declare const attioAttributeSchema: z.ZodObject<{
4643
4643
  api_slug: z.ZodOptional<z.ZodString>;
4644
4644
  title: z.ZodOptional<z.ZodString>;
4645
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4645
4646
  type: z.ZodOptional<z.ZodString>;
4646
4647
  is_required: z.ZodOptional<z.ZodBoolean>;
4647
4648
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -4659,6 +4660,7 @@ export declare const attioObjectWithAttributesSchema: z.ZodObject<{
4659
4660
  attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4660
4661
  api_slug: z.ZodOptional<z.ZodString>;
4661
4662
  title: z.ZodOptional<z.ZodString>;
4663
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4662
4664
  type: z.ZodOptional<z.ZodString>;
4663
4665
  is_required: z.ZodOptional<z.ZodBoolean>;
4664
4666
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -5251,9 +5253,12 @@ export declare const attioModifySchemaRequestSchema: z.ZodDiscriminatedUnion<[z.
5251
5253
  title: z.ZodString;
5252
5254
  apiSlug: z.ZodString;
5253
5255
  attributeType: z.ZodString;
5256
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5254
5257
  isRequired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5255
5258
  isUnique: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5256
5259
  isMultiselect: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5260
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5261
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5257
5262
  config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5258
5263
  target: z.ZodEnum<{
5259
5264
  objects: "objects";
@@ -5264,7 +5269,13 @@ export declare const attioModifySchemaRequestSchema: z.ZodDiscriminatedUnion<[z.
5264
5269
  }, z.core.$strip>, z.ZodObject<{
5265
5270
  attributeSlug: z.ZodString;
5266
5271
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5272
+ newApiSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5273
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5267
5274
  isRequired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5275
+ isUnique: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5276
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5277
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5278
+ config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5268
5279
  target: z.ZodEnum<{
5269
5280
  objects: "objects";
5270
5281
  lists: "lists";
@@ -5274,6 +5285,8 @@ export declare const attioModifySchemaRequestSchema: z.ZodDiscriminatedUnion<[z.
5274
5285
  }, z.core.$strip>, z.ZodObject<{
5275
5286
  attributeSlug: z.ZodString;
5276
5287
  title: z.ZodString;
5288
+ celebrationEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5289
+ targetTimeInStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5277
5290
  target: z.ZodEnum<{
5278
5291
  objects: "objects";
5279
5292
  lists: "lists";
@@ -5284,6 +5297,8 @@ export declare const attioModifySchemaRequestSchema: z.ZodDiscriminatedUnion<[z.
5284
5297
  attributeSlug: z.ZodString;
5285
5298
  statusId: z.ZodString;
5286
5299
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5300
+ celebrationEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5301
+ targetTimeInStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5287
5302
  isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5288
5303
  target: z.ZodEnum<{
5289
5304
  objects: "objects";
@@ -5779,9 +5794,12 @@ export declare const attioModifySchemaInputSchema: z.ZodObject<{
5779
5794
  title: z.ZodString;
5780
5795
  apiSlug: z.ZodString;
5781
5796
  attributeType: z.ZodString;
5797
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5782
5798
  isRequired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5783
5799
  isUnique: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5784
5800
  isMultiselect: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5801
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5802
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5785
5803
  config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5786
5804
  target: z.ZodEnum<{
5787
5805
  objects: "objects";
@@ -5792,7 +5810,13 @@ export declare const attioModifySchemaInputSchema: z.ZodObject<{
5792
5810
  }, z.core.$strip>, z.ZodObject<{
5793
5811
  attributeSlug: z.ZodString;
5794
5812
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5813
+ newApiSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5814
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5795
5815
  isRequired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5816
+ isUnique: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5817
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5818
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5819
+ config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5796
5820
  target: z.ZodEnum<{
5797
5821
  objects: "objects";
5798
5822
  lists: "lists";
@@ -5802,6 +5826,8 @@ export declare const attioModifySchemaInputSchema: z.ZodObject<{
5802
5826
  }, z.core.$strip>, z.ZodObject<{
5803
5827
  attributeSlug: z.ZodString;
5804
5828
  title: z.ZodString;
5829
+ celebrationEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5830
+ targetTimeInStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5805
5831
  target: z.ZodEnum<{
5806
5832
  objects: "objects";
5807
5833
  lists: "lists";
@@ -5812,6 +5838,8 @@ export declare const attioModifySchemaInputSchema: z.ZodObject<{
5812
5838
  attributeSlug: z.ZodString;
5813
5839
  statusId: z.ZodString;
5814
5840
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5841
+ celebrationEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5842
+ targetTimeInStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5815
5843
  isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5816
5844
  target: z.ZodEnum<{
5817
5845
  objects: "objects";
@@ -7618,6 +7646,7 @@ export declare const attioReadSchemaTool: {
7618
7646
  attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
7619
7647
  api_slug: z.ZodOptional<z.ZodString>;
7620
7648
  title: z.ZodOptional<z.ZodString>;
7649
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7621
7650
  type: z.ZodOptional<z.ZodString>;
7622
7651
  is_required: z.ZodOptional<z.ZodBoolean>;
7623
7652
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -7637,6 +7666,7 @@ export declare const attioReadSchemaTool: {
7637
7666
  attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
7638
7667
  api_slug: z.ZodOptional<z.ZodString>;
7639
7668
  title: z.ZodOptional<z.ZodString>;
7669
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7640
7670
  type: z.ZodOptional<z.ZodString>;
7641
7671
  is_required: z.ZodOptional<z.ZodBoolean>;
7642
7672
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -7646,6 +7676,7 @@ export declare const attioReadSchemaTool: {
7646
7676
  attribute: z.ZodOptional<z.ZodObject<{
7647
7677
  api_slug: z.ZodOptional<z.ZodString>;
7648
7678
  title: z.ZodOptional<z.ZodString>;
7679
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7649
7680
  type: z.ZodOptional<z.ZodString>;
7650
7681
  is_required: z.ZodOptional<z.ZodBoolean>;
7651
7682
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -7715,9 +7746,12 @@ export declare const attioModifySchemaTool: {
7715
7746
  title: z.ZodString;
7716
7747
  apiSlug: z.ZodString;
7717
7748
  attributeType: z.ZodString;
7749
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7718
7750
  isRequired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7719
7751
  isUnique: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7720
7752
  isMultiselect: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7753
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7754
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7721
7755
  config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7722
7756
  target: z.ZodEnum<{
7723
7757
  objects: "objects";
@@ -7728,7 +7762,13 @@ export declare const attioModifySchemaTool: {
7728
7762
  }, z.core.$strip>, z.ZodObject<{
7729
7763
  attributeSlug: z.ZodString;
7730
7764
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7765
+ newApiSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7766
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7731
7767
  isRequired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7768
+ isUnique: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7769
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7770
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7771
+ config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7732
7772
  target: z.ZodEnum<{
7733
7773
  objects: "objects";
7734
7774
  lists: "lists";
@@ -7738,6 +7778,8 @@ export declare const attioModifySchemaTool: {
7738
7778
  }, z.core.$strip>, z.ZodObject<{
7739
7779
  attributeSlug: z.ZodString;
7740
7780
  title: z.ZodString;
7781
+ celebrationEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7782
+ targetTimeInStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7741
7783
  target: z.ZodEnum<{
7742
7784
  objects: "objects";
7743
7785
  lists: "lists";
@@ -7748,6 +7790,8 @@ export declare const attioModifySchemaTool: {
7748
7790
  attributeSlug: z.ZodString;
7749
7791
  statusId: z.ZodString;
7750
7792
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7793
+ celebrationEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7794
+ targetTimeInStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7751
7795
  isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
7752
7796
  target: z.ZodEnum<{
7753
7797
  objects: "objects";
@@ -7810,6 +7854,7 @@ export declare const attioModifySchemaTool: {
7810
7854
  attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
7811
7855
  api_slug: z.ZodOptional<z.ZodString>;
7812
7856
  title: z.ZodOptional<z.ZodString>;
7857
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7813
7858
  type: z.ZodOptional<z.ZodString>;
7814
7859
  is_required: z.ZodOptional<z.ZodBoolean>;
7815
7860
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -7829,6 +7874,7 @@ export declare const attioModifySchemaTool: {
7829
7874
  attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
7830
7875
  api_slug: z.ZodOptional<z.ZodString>;
7831
7876
  title: z.ZodOptional<z.ZodString>;
7877
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7832
7878
  type: z.ZodOptional<z.ZodString>;
7833
7879
  is_required: z.ZodOptional<z.ZodBoolean>;
7834
7880
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -7838,6 +7884,7 @@ export declare const attioModifySchemaTool: {
7838
7884
  attribute: z.ZodOptional<z.ZodObject<{
7839
7885
  api_slug: z.ZodOptional<z.ZodString>;
7840
7886
  title: z.ZodOptional<z.ZodString>;
7887
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7841
7888
  type: z.ZodOptional<z.ZodString>;
7842
7889
  is_required: z.ZodOptional<z.ZodBoolean>;
7843
7890
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -13317,6 +13364,7 @@ export declare const ToolDefinitions: {
13317
13364
  attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
13318
13365
  api_slug: z.ZodOptional<z.ZodString>;
13319
13366
  title: z.ZodOptional<z.ZodString>;
13367
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13320
13368
  type: z.ZodOptional<z.ZodString>;
13321
13369
  is_required: z.ZodOptional<z.ZodBoolean>;
13322
13370
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -13336,6 +13384,7 @@ export declare const ToolDefinitions: {
13336
13384
  attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
13337
13385
  api_slug: z.ZodOptional<z.ZodString>;
13338
13386
  title: z.ZodOptional<z.ZodString>;
13387
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13339
13388
  type: z.ZodOptional<z.ZodString>;
13340
13389
  is_required: z.ZodOptional<z.ZodBoolean>;
13341
13390
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -13345,6 +13394,7 @@ export declare const ToolDefinitions: {
13345
13394
  attribute: z.ZodOptional<z.ZodObject<{
13346
13395
  api_slug: z.ZodOptional<z.ZodString>;
13347
13396
  title: z.ZodOptional<z.ZodString>;
13397
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13348
13398
  type: z.ZodOptional<z.ZodString>;
13349
13399
  is_required: z.ZodOptional<z.ZodBoolean>;
13350
13400
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -13414,9 +13464,12 @@ export declare const ToolDefinitions: {
13414
13464
  title: z.ZodString;
13415
13465
  apiSlug: z.ZodString;
13416
13466
  attributeType: z.ZodString;
13467
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13417
13468
  isRequired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13418
13469
  isUnique: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13419
13470
  isMultiselect: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13471
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13472
+ relationship: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13420
13473
  config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13421
13474
  target: z.ZodEnum<{
13422
13475
  objects: "objects";
@@ -13427,7 +13480,13 @@ export declare const ToolDefinitions: {
13427
13480
  }, z.core.$strip>, z.ZodObject<{
13428
13481
  attributeSlug: z.ZodString;
13429
13482
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13483
+ newApiSlug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13484
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13430
13485
  isRequired: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13486
+ isUnique: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13487
+ isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13488
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13489
+ config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13431
13490
  target: z.ZodEnum<{
13432
13491
  objects: "objects";
13433
13492
  lists: "lists";
@@ -13437,6 +13496,8 @@ export declare const ToolDefinitions: {
13437
13496
  }, z.core.$strip>, z.ZodObject<{
13438
13497
  attributeSlug: z.ZodString;
13439
13498
  title: z.ZodString;
13499
+ celebrationEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13500
+ targetTimeInStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13440
13501
  target: z.ZodEnum<{
13441
13502
  objects: "objects";
13442
13503
  lists: "lists";
@@ -13447,6 +13508,8 @@ export declare const ToolDefinitions: {
13447
13508
  attributeSlug: z.ZodString;
13448
13509
  statusId: z.ZodString;
13449
13510
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13511
+ celebrationEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13512
+ targetTimeInStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13450
13513
  isArchived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
13451
13514
  target: z.ZodEnum<{
13452
13515
  objects: "objects";
@@ -13509,6 +13572,7 @@ export declare const ToolDefinitions: {
13509
13572
  attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
13510
13573
  api_slug: z.ZodOptional<z.ZodString>;
13511
13574
  title: z.ZodOptional<z.ZodString>;
13575
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13512
13576
  type: z.ZodOptional<z.ZodString>;
13513
13577
  is_required: z.ZodOptional<z.ZodBoolean>;
13514
13578
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -13528,6 +13592,7 @@ export declare const ToolDefinitions: {
13528
13592
  attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
13529
13593
  api_slug: z.ZodOptional<z.ZodString>;
13530
13594
  title: z.ZodOptional<z.ZodString>;
13595
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13531
13596
  type: z.ZodOptional<z.ZodString>;
13532
13597
  is_required: z.ZodOptional<z.ZodBoolean>;
13533
13598
  is_unique: z.ZodOptional<z.ZodBoolean>;
@@ -13537,6 +13602,7 @@ export declare const ToolDefinitions: {
13537
13602
  attribute: z.ZodOptional<z.ZodObject<{
13538
13603
  api_slug: z.ZodOptional<z.ZodString>;
13539
13604
  title: z.ZodOptional<z.ZodString>;
13605
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13540
13606
  type: z.ZodOptional<z.ZodString>;
13541
13607
  is_required: z.ZodOptional<z.ZodBoolean>;
13542
13608
  is_unique: z.ZodOptional<z.ZodBoolean>;
package/dist/Tools.js CHANGED
@@ -1775,6 +1775,7 @@ export const attioAttributeSchema = z
1775
1775
  .object({
1776
1776
  api_slug: z.string().optional(),
1777
1777
  title: z.string().optional(),
1778
+ description: z.string().nullable().optional(),
1778
1779
  type: z.string().optional(),
1779
1780
  is_required: z.boolean().optional(),
1780
1781
  is_unique: z.boolean().optional(),
@@ -2270,30 +2271,51 @@ export const attioModifySchemaRequestSchema = z.discriminatedUnion("action", [
2270
2271
  attributeType: z
2271
2272
  .string()
2272
2273
  .describe("Attio attribute type, e.g. 'text', 'number', 'checkbox', 'currency', 'date', 'timestamp', 'rating', 'status', 'select', 'record-reference', 'actor-reference', 'location', 'domain', 'email-address', 'phone-number'."),
2274
+ description: z.string().nullable().optional().describe("Text description of the attribute, shown in the Attio UI."),
2273
2275
  isRequired: z.boolean().nullable().optional().describe("Whether a value is required. Defaults to false."),
2274
2276
  isUnique: z.boolean().nullable().optional().describe("Whether values must be unique. Defaults to false."),
2275
2277
  isMultiselect: z.boolean().nullable().optional().describe("Whether the attribute holds multiple values. Defaults to false."),
2278
+ defaultValue: z
2279
+ .string()
2280
+ .nullable()
2281
+ .optional()
2282
+ .describe('Optional JSON object string for a default value, e.g. \'{"type":"dynamic","template":"current-user"}\' or \'{"type":"static","template":[...]}\'.'),
2283
+ relationship: z
2284
+ .string()
2285
+ .nullable()
2286
+ .optional()
2287
+ .describe('Optional JSON object string creating the paired attribute of a bidirectional record-reference, e.g. \'{"object":"companies","title":"Projects","api_slug":"projects","is_multiselect":true}\'.'),
2276
2288
  config: z.string().nullable().optional().describe('Optional JSON object string for type-specific config, e.g. \'{"record_reference":{"allowed_objects":["people"]}}\'.')
2277
2289
  }),
2278
2290
  z.object({
2279
- action: z.literal("update_attribute").describe("Update an attribute's title or constraints."),
2291
+ action: z.literal("update_attribute").describe("Update an attribute's title, description, slug, constraints, default value or config, or archive it."),
2280
2292
  ...attioSchemaTargetFields,
2281
2293
  attributeSlug: z.string(),
2282
2294
  title: z.string().nullable().optional(),
2283
- isRequired: z.boolean().nullable().optional()
2295
+ newApiSlug: z.string().nullable().optional().describe("New unique attribute slug (snake_case)."),
2296
+ description: z.string().nullable().optional().describe("Text description of the attribute. Pass an empty string to clear it."),
2297
+ isRequired: z.boolean().nullable().optional(),
2298
+ isUnique: z.boolean().nullable().optional(),
2299
+ isArchived: z.boolean().nullable().optional().describe("Archive or restore the attribute."),
2300
+ defaultValue: z.string().nullable().optional().describe('Optional JSON object string for a default value, e.g. \'{"type":"dynamic","template":"current-user"}\'.'),
2301
+ config: z.string().nullable().optional().describe('Optional JSON object string for type-specific config, e.g. \'{"currency":{"default_currency_code":"USD","display_type":"symbol"}}\'.')
2284
2302
  }),
2285
2303
  z.object({
2286
2304
  action: z.literal("create_status").describe("Add a new status to a status attribute. Rerun terse generate afterwards to refresh generated constants."),
2287
2305
  ...attioSchemaTargetFields,
2288
2306
  attributeSlug: z.string(),
2289
- title: z.string().describe("The status title.")
2307
+ title: z.string().describe("The status title."),
2308
+ celebrationEnabled: z.boolean().nullable().optional().describe("Whether arriving at this status triggers a celebration effect. Defaults to false."),
2309
+ targetTimeInStatus: z.string().nullable().optional().describe("Target time a record should spend in this status, as an ISO-8601 duration (e.g. 'P7D').")
2290
2310
  }),
2291
2311
  z.object({
2292
- action: z.literal("update_status").describe("Rename or archive a status."),
2312
+ action: z.literal("update_status").describe("Rename, reconfigure or archive a status."),
2293
2313
  ...attioSchemaTargetFields,
2294
2314
  attributeSlug: z.string(),
2295
2315
  statusId: z.string().describe("The status ID (UUID)."),
2296
2316
  title: z.string().nullable().optional(),
2317
+ celebrationEnabled: z.boolean().nullable().optional().describe("Whether arriving at this status triggers a celebration effect."),
2318
+ targetTimeInStatus: z.string().nullable().optional().describe("Target time a record should spend in this status, as an ISO-8601 duration (e.g. 'P7D')."),
2297
2319
  isArchived: z.boolean().nullable().optional()
2298
2320
  }),
2299
2321
  z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",