@tailglow/cli 0.5.1 → 0.6.1

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.
@@ -1794,6 +1794,7 @@ export const CLI_COMMANDS = [
1794
1794
  ],
1795
1795
  "notes": [
1796
1796
  "Documents are returned exactly as they were sent, minus Tailglow's own reserved envelope.",
1797
+ "Paging is forward-only. Pass `pagination.next_cursor` back as `after` to get the next page; no `prev_cursor` is issued, and `before` returns the first page.",
1797
1798
  "`after` and `before` are mutually exclusive."
1798
1799
  ],
1799
1800
  "path_params": [
@@ -1814,7 +1815,43 @@ export const CLI_COMMANDS = [
1814
1815
  "deprecated": null
1815
1816
  }
1816
1817
  ],
1817
- "query_params": [],
1818
+ "query_params": [
1819
+ {
1820
+ "name": "limit",
1821
+ "type": "number",
1822
+ "required": false,
1823
+ "description": "Maximum number of items to return. Optional. Defaults to `25`. Minimum: `1`. Maximum: `200`.",
1824
+ "allowed_values": [],
1825
+ "deprecated": null
1826
+ },
1827
+ {
1828
+ "name": "after",
1829
+ "type": "string",
1830
+ "required": false,
1831
+ "description": "Cursor from `pagination.next_cursor` of a previous response. Returns the resources after that page. Optional.",
1832
+ "allowed_values": [],
1833
+ "deprecated": null
1834
+ },
1835
+ {
1836
+ "name": "before",
1837
+ "type": "string",
1838
+ "required": false,
1839
+ "description": "Cursor from `pagination.prev_cursor` of a previous response. Returns the resources before that page. Optional.",
1840
+ "allowed_values": [],
1841
+ "deprecated": null
1842
+ },
1843
+ {
1844
+ "name": "sort",
1845
+ "type": "string",
1846
+ "required": false,
1847
+ "description": "Sort direction for the result set. Optional. Defaults to `\"desc\"`.",
1848
+ "allowed_values": [
1849
+ "asc",
1850
+ "desc"
1851
+ ],
1852
+ "deprecated": null
1853
+ }
1854
+ ],
1818
1855
  "body_fields": []
1819
1856
  },
1820
1857
  {
@@ -2008,7 +2045,40 @@ export const CLI_COMMANDS = [
2008
2045
  "required": false,
2009
2046
  "description": "The fields this view produces. Can be left until transforms define it. Optional.",
2010
2047
  "allowed_values": [],
2011
- "deprecated": null
2048
+ "deprecated": null,
2049
+ "fields": [
2050
+ {
2051
+ "name": "name",
2052
+ "type": "string",
2053
+ "required": true,
2054
+ "description": "Field name as it appears on the view's records. Minimum length: `1`. Maximum length: `128`.",
2055
+ "allowed_values": [],
2056
+ "deprecated": null
2057
+ },
2058
+ {
2059
+ "name": "type",
2060
+ "type": "string",
2061
+ "required": true,
2062
+ "description": "Value type the field holds.",
2063
+ "allowed_values": [
2064
+ "string",
2065
+ "number",
2066
+ "boolean",
2067
+ "date",
2068
+ "array",
2069
+ "null"
2070
+ ],
2071
+ "deprecated": null
2072
+ },
2073
+ {
2074
+ "name": "description",
2075
+ "type": "string",
2076
+ "required": false,
2077
+ "description": "What the field means. Used as guidance when a transform script is generated. Optional. Maximum length: `512`.",
2078
+ "allowed_values": [],
2079
+ "deprecated": null
2080
+ }
2081
+ ]
2012
2082
  },
2013
2083
  {
2014
2084
  "name": "hint",
@@ -2024,7 +2094,41 @@ export const CLI_COMMANDS = [
2024
2094
  "required": false,
2025
2095
  "description": "Optional.",
2026
2096
  "allowed_values": [],
2027
- "deprecated": null
2097
+ "deprecated": null,
2098
+ "fields": [
2099
+ {
2100
+ "name": "nullable_inputs",
2101
+ "type": "string[]",
2102
+ "required": false,
2103
+ "description": "Read paths explicitly permitted to be null. Optional.",
2104
+ "allowed_values": [],
2105
+ "deprecated": null
2106
+ },
2107
+ {
2108
+ "name": "fallback_groups",
2109
+ "type": "string[][]",
2110
+ "required": false,
2111
+ "description": "Approved ordered fallback read paths. Optional.",
2112
+ "allowed_values": [],
2113
+ "deprecated": null
2114
+ },
2115
+ {
2116
+ "name": "output_bindings",
2117
+ "type": "object",
2118
+ "required": false,
2119
+ "description": "Required source path segments for each output binding. Optional.",
2120
+ "allowed_values": [],
2121
+ "deprecated": null
2122
+ },
2123
+ {
2124
+ "name": "allow_drops",
2125
+ "type": "boolean",
2126
+ "required": false,
2127
+ "description": "Allow a validated mapping to emit no output for a record. Optional.",
2128
+ "allowed_values": [],
2129
+ "deprecated": null
2130
+ }
2131
+ ]
2028
2132
  },
2029
2133
  {
2030
2134
  "name": "project_id",
@@ -2134,7 +2238,70 @@ export const CLI_COMMANDS = [
2134
2238
  "required": true,
2135
2239
  "description": "Views joined onto the base view, each with its own match fields.",
2136
2240
  "allowed_values": [],
2137
- "deprecated": null
2241
+ "deprecated": null,
2242
+ "fields": [
2243
+ {
2244
+ "name": "lookup_view_id",
2245
+ "type": "string",
2246
+ "required": true,
2247
+ "description": "View this clause looks values up in. Minimum length: `1`.",
2248
+ "allowed_values": [],
2249
+ "deprecated": null
2250
+ },
2251
+ {
2252
+ "name": "alias",
2253
+ "type": "string",
2254
+ "required": true,
2255
+ "description": "Name this clause's fields are addressed by in the transform script. Minimum length: `1`. Maximum length: `64`.",
2256
+ "allowed_values": [],
2257
+ "deprecated": null
2258
+ },
2259
+ {
2260
+ "name": "join_type",
2261
+ "type": "string",
2262
+ "required": false,
2263
+ "description": "How unmatched base records are handled. `left` keeps them with empty lookup fields, `inner` drops them. Optional. Defaults to `\"left\"`.",
2264
+ "allowed_values": [
2265
+ "left",
2266
+ "inner"
2267
+ ],
2268
+ "deprecated": null
2269
+ },
2270
+ {
2271
+ "name": "base_field",
2272
+ "type": "string",
2273
+ "required": true,
2274
+ "description": "Field on the base view to match on. Minimum length: `1`. Maximum length: `256`.",
2275
+ "allowed_values": [],
2276
+ "deprecated": null
2277
+ },
2278
+ {
2279
+ "name": "lookup_field",
2280
+ "type": "string",
2281
+ "required": true,
2282
+ "description": "Field on the lookup view to match against. Minimum length: `1`. Maximum length: `256`.",
2283
+ "allowed_values": [],
2284
+ "deprecated": null
2285
+ },
2286
+ {
2287
+ "name": "match_strategy",
2288
+ "type": "string",
2289
+ "required": false,
2290
+ "description": "Which lookup record wins when several match. `latest` keeps the newest record timestamp and is the only supported value today. Optional. Defaults to `\"latest\"`.",
2291
+ "allowed_values": [
2292
+ "latest"
2293
+ ],
2294
+ "deprecated": null
2295
+ },
2296
+ {
2297
+ "name": "priority",
2298
+ "type": "integer",
2299
+ "required": false,
2300
+ "description": "Order this clause is applied in. Lower runs first. Optional. Defaults to `0`. Minimum: `0`.",
2301
+ "allowed_values": [],
2302
+ "deprecated": null
2303
+ }
2304
+ ]
2138
2305
  },
2139
2306
  {
2140
2307
  "name": "output_schema",
@@ -2142,7 +2309,40 @@ export const CLI_COMMANDS = [
2142
2309
  "required": false,
2143
2310
  "description": "Fields the join produces. Leave empty to have one inferred. Optional. Defaults to `[]`.",
2144
2311
  "allowed_values": [],
2145
- "deprecated": null
2312
+ "deprecated": null,
2313
+ "fields": [
2314
+ {
2315
+ "name": "name",
2316
+ "type": "string",
2317
+ "required": true,
2318
+ "description": "Field name as it appears on the view's records. Minimum length: `1`. Maximum length: `128`.",
2319
+ "allowed_values": [],
2320
+ "deprecated": null
2321
+ },
2322
+ {
2323
+ "name": "type",
2324
+ "type": "string",
2325
+ "required": true,
2326
+ "description": "Value type the field holds.",
2327
+ "allowed_values": [
2328
+ "string",
2329
+ "number",
2330
+ "boolean",
2331
+ "date",
2332
+ "array",
2333
+ "null"
2334
+ ],
2335
+ "deprecated": null
2336
+ },
2337
+ {
2338
+ "name": "description",
2339
+ "type": "string",
2340
+ "required": false,
2341
+ "description": "What the field means. Used as guidance when a transform script is generated. Optional. Maximum length: `512`.",
2342
+ "allowed_values": [],
2343
+ "deprecated": null
2344
+ }
2345
+ ]
2146
2346
  },
2147
2347
  {
2148
2348
  "name": "transform_script",
@@ -2207,7 +2407,41 @@ export const CLI_COMMANDS = [
2207
2407
  "required": false,
2208
2408
  "description": "Optional.",
2209
2409
  "allowed_values": [],
2210
- "deprecated": null
2410
+ "deprecated": null,
2411
+ "fields": [
2412
+ {
2413
+ "name": "nullable_inputs",
2414
+ "type": "string[]",
2415
+ "required": false,
2416
+ "description": "Read paths explicitly permitted to be null. Optional.",
2417
+ "allowed_values": [],
2418
+ "deprecated": null
2419
+ },
2420
+ {
2421
+ "name": "fallback_groups",
2422
+ "type": "string[][]",
2423
+ "required": false,
2424
+ "description": "Approved ordered fallback read paths. Optional.",
2425
+ "allowed_values": [],
2426
+ "deprecated": null
2427
+ },
2428
+ {
2429
+ "name": "output_bindings",
2430
+ "type": "object",
2431
+ "required": false,
2432
+ "description": "Required source path segments for each output binding. Optional.",
2433
+ "allowed_values": [],
2434
+ "deprecated": null
2435
+ },
2436
+ {
2437
+ "name": "allow_drops",
2438
+ "type": "boolean",
2439
+ "required": false,
2440
+ "description": "Allow a validated mapping to emit no output for a record. Optional.",
2441
+ "allowed_values": [],
2442
+ "deprecated": null
2443
+ }
2444
+ ]
2211
2445
  },
2212
2446
  {
2213
2447
  "name": "name",
@@ -2223,7 +2457,40 @@ export const CLI_COMMANDS = [
2223
2457
  "required": false,
2224
2458
  "description": "The fields this view produces. Can be left until transforms define it. Optional.",
2225
2459
  "allowed_values": [],
2226
- "deprecated": null
2460
+ "deprecated": null,
2461
+ "fields": [
2462
+ {
2463
+ "name": "name",
2464
+ "type": "string",
2465
+ "required": true,
2466
+ "description": "Field name as it appears on the view's records. Minimum length: `1`. Maximum length: `128`.",
2467
+ "allowed_values": [],
2468
+ "deprecated": null
2469
+ },
2470
+ {
2471
+ "name": "type",
2472
+ "type": "string",
2473
+ "required": true,
2474
+ "description": "Value type the field holds.",
2475
+ "allowed_values": [
2476
+ "string",
2477
+ "number",
2478
+ "boolean",
2479
+ "date",
2480
+ "array",
2481
+ "null"
2482
+ ],
2483
+ "deprecated": null
2484
+ },
2485
+ {
2486
+ "name": "description",
2487
+ "type": "string",
2488
+ "required": false,
2489
+ "description": "What the field means. Used as guidance when a transform script is generated. Optional. Maximum length: `512`.",
2490
+ "allowed_values": [],
2491
+ "deprecated": null
2492
+ }
2493
+ ]
2227
2494
  },
2228
2495
  {
2229
2496
  "name": "hint",
@@ -2350,10 +2617,8 @@ export const CLI_COMMANDS = [
2350
2617
  "views:read"
2351
2618
  ],
2352
2619
  "notes": [
2353
- "Records are only filterable on fields that have a facet. Filtering on any other field is rejected, so create a facet for a field before querying it.",
2354
2620
  "Paging is forward-only. Pass `pagination.next_cursor` back as `after` to get the next page; a null `next_cursor` means there is nothing more to read. No `prev_cursor` is issued, and `before` is ignored.",
2355
- "A cursor is only valid for the query that produced it. Changing the sort direction, the filter, or (on a filtered read) the time range and reusing an older cursor returns a 400 rather than a page of skipped or repeated records, so start again without a cursor after any of those change.",
2356
- "`start_at` and `end_at` narrow a filtered read only. An unfiltered read returns the view's records regardless of the window, so pass a facet filter when you need a time-bounded result.",
2621
+ "A cursor is only valid for the query that produced it. Reusing one after changing the sort direction returns a 400 rather than a page of skipped or repeated records, so start again without a cursor.",
2357
2622
  "A cursor stays valid while Tailglow reorganizes stored data in the background, so a paging client is never interrupted by storage maintenance. It is a position in this result set, not a snapshot: records that arrive while you page appear only if they sort after your position.",
2358
2623
  "`after` and `before` are mutually exclusive."
2359
2624
  ],
@@ -2375,7 +2640,43 @@ export const CLI_COMMANDS = [
2375
2640
  "deprecated": null
2376
2641
  }
2377
2642
  ],
2378
- "query_params": [],
2643
+ "query_params": [
2644
+ {
2645
+ "name": "limit",
2646
+ "type": "number",
2647
+ "required": false,
2648
+ "description": "Maximum number of items to return. Optional. Defaults to `25`. Minimum: `1`. Maximum: `200`.",
2649
+ "allowed_values": [],
2650
+ "deprecated": null
2651
+ },
2652
+ {
2653
+ "name": "after",
2654
+ "type": "string",
2655
+ "required": false,
2656
+ "description": "Cursor from `pagination.next_cursor` of a previous response. Returns the resources after that page. Optional.",
2657
+ "allowed_values": [],
2658
+ "deprecated": null
2659
+ },
2660
+ {
2661
+ "name": "before",
2662
+ "type": "string",
2663
+ "required": false,
2664
+ "description": "Cursor from `pagination.prev_cursor` of a previous response. Returns the resources before that page. Optional.",
2665
+ "allowed_values": [],
2666
+ "deprecated": null
2667
+ },
2668
+ {
2669
+ "name": "sort",
2670
+ "type": "string",
2671
+ "required": false,
2672
+ "description": "Sort direction for the result set. Optional. Defaults to `\"desc\"`.",
2673
+ "allowed_values": [
2674
+ "asc",
2675
+ "desc"
2676
+ ],
2677
+ "deprecated": null
2678
+ }
2679
+ ],
2379
2680
  "body_fields": []
2380
2681
  },
2381
2682
  {
@@ -2673,7 +2974,41 @@ export const CLI_COMMANDS = [
2673
2974
  "required": false,
2674
2975
  "description": "Explicit null, fallback, drop, and source-binding rules. Optional.",
2675
2976
  "allowed_values": [],
2676
- "deprecated": null
2977
+ "deprecated": null,
2978
+ "fields": [
2979
+ {
2980
+ "name": "nullable_inputs",
2981
+ "type": "string[]",
2982
+ "required": false,
2983
+ "description": "Read paths explicitly permitted to be null. Optional.",
2984
+ "allowed_values": [],
2985
+ "deprecated": null
2986
+ },
2987
+ {
2988
+ "name": "fallback_groups",
2989
+ "type": "string[][]",
2990
+ "required": false,
2991
+ "description": "Approved ordered fallback read paths. Optional.",
2992
+ "allowed_values": [],
2993
+ "deprecated": null
2994
+ },
2995
+ {
2996
+ "name": "output_bindings",
2997
+ "type": "object",
2998
+ "required": false,
2999
+ "description": "Required source path segments for each output binding. Optional.",
3000
+ "allowed_values": [],
3001
+ "deprecated": null
3002
+ },
3003
+ {
3004
+ "name": "allow_drops",
3005
+ "type": "boolean",
3006
+ "required": false,
3007
+ "description": "Allow a validated mapping to emit no output for a record. Optional.",
3008
+ "allowed_values": [],
3009
+ "deprecated": null
3010
+ }
3011
+ ]
2677
3012
  }
2678
3013
  ]
2679
3014
  },
@@ -2956,9 +3291,9 @@ export const CLI_COMMANDS = [
2956
3291
  },
2957
3292
  {
2958
3293
  "name": "version_id",
2959
- "type": "string",
3294
+ "type": "integer",
2960
3295
  "required": true,
2961
- "description": "Unique identifier of the version.",
3296
+ "description": "The schema version number: the `version` a view version carries.",
2962
3297
  "allowed_values": [],
2963
3298
  "deprecated": null
2964
3299
  }
@@ -3171,7 +3506,7 @@ export const CLI_COMMANDS = [
3171
3506
  "notes": [
3172
3507
  "Use this after editing a script so existing records pick up the new logic. Without it, an edit only affects records that arrive afterwards.",
3173
3508
  "The re-backfill runs in the background and replaces the view's output as it progresses. Anything reading the view sees a mix of old and new values until it finishes.",
3174
- "Metrics and views that depend on this one are rebuilt as well."
3509
+ "Refused while a metric, derived view or join view depends on this view."
3175
3510
  ],
3176
3511
  "path_params": [
3177
3512
  {
@@ -3217,6 +3552,7 @@ export const CLI_COMMANDS = [
3217
3552
  "notes": [
3218
3553
  "This is the schema-change path: it updates the output schema and re-queues the view's transforms in one step, so the scripts are rewritten to produce the new fields.",
3219
3554
  "Existing records keep their old shape until the regenerated transforms backfill over them.",
3555
+ "Refused while a metric, derived view or join view depends on this view.",
3220
3556
  "`output_schema` field names must be unique by name, cannot conflict on type, and cannot collide with a reserved query key such as `limit` or `cursor`.",
3221
3557
  "Use `hint` for rules the generator cannot read off the field names: a formatting rule (\"display_name should be Name (Type)\"), a business threshold (\"classify as high above 500\"), or a disambiguation when a source field could map more than one way. Skip it for obvious mappings like renames and type conversions, which the generator already handles."
3222
3558
  ],
@@ -3246,7 +3582,40 @@ export const CLI_COMMANDS = [
3246
3582
  "required": false,
3247
3583
  "description": "The fields the view should produce. Omit to regenerate against the current schema. Optional.",
3248
3584
  "allowed_values": [],
3249
- "deprecated": null
3585
+ "deprecated": null,
3586
+ "fields": [
3587
+ {
3588
+ "name": "name",
3589
+ "type": "string",
3590
+ "required": true,
3591
+ "description": "Field name as it appears on the view's records. Minimum length: `1`. Maximum length: `128`.",
3592
+ "allowed_values": [],
3593
+ "deprecated": null
3594
+ },
3595
+ {
3596
+ "name": "type",
3597
+ "type": "string",
3598
+ "required": true,
3599
+ "description": "Value type the field holds.",
3600
+ "allowed_values": [
3601
+ "string",
3602
+ "number",
3603
+ "boolean",
3604
+ "date",
3605
+ "array",
3606
+ "null"
3607
+ ],
3608
+ "deprecated": null
3609
+ },
3610
+ {
3611
+ "name": "description",
3612
+ "type": "string",
3613
+ "required": false,
3614
+ "description": "What the field means. Used as guidance when a transform script is generated. Optional. Maximum length: `512`.",
3615
+ "allowed_values": [],
3616
+ "deprecated": null
3617
+ }
3618
+ ]
3250
3619
  },
3251
3620
  {
3252
3621
  "name": "hint",
@@ -3865,8 +4234,8 @@ export const CLI_COMMANDS = [
3865
4234
  "description": "Chart line interpolation style. Optional.",
3866
4235
  "allowed_values": [
3867
4236
  "linear",
3868
- "smooth",
3869
- "step"
4237
+ "step",
4238
+ "smooth"
3870
4239
  ],
3871
4240
  "deprecated": null
3872
4241
  },
@@ -3878,12 +4247,12 @@ export const CLI_COMMANDS = [
3878
4247
  "allowed_values": [
3879
4248
  "count",
3880
4249
  "average",
4250
+ "sum",
3881
4251
  "min",
3882
4252
  "max",
3883
- "sum",
3884
4253
  "last",
3885
- "cumulative_count",
3886
4254
  "cumulative_sum",
4255
+ "cumulative_count",
3887
4256
  "p50",
3888
4257
  "p95",
3889
4258
  "p99",
@@ -4247,8 +4616,8 @@ export const CLI_COMMANDS = [
4247
4616
  "description": "Chart line interpolation style. Optional.",
4248
4617
  "allowed_values": [
4249
4618
  "linear",
4250
- "smooth",
4251
- "step"
4619
+ "step",
4620
+ "smooth"
4252
4621
  ],
4253
4622
  "deprecated": null
4254
4623
  },
@@ -4260,12 +4629,12 @@ export const CLI_COMMANDS = [
4260
4629
  "allowed_values": [
4261
4630
  "count",
4262
4631
  "average",
4632
+ "sum",
4263
4633
  "min",
4264
4634
  "max",
4265
- "sum",
4266
4635
  "last",
4267
- "cumulative_count",
4268
4636
  "cumulative_sum",
4637
+ "cumulative_count",
4269
4638
  "p50",
4270
4639
  "p95",
4271
4640
  "p99",
@@ -4802,7 +5171,7 @@ export const CLI_COMMANDS = [
4802
5171
  "monitors:write"
4803
5172
  ],
4804
5173
  "notes": [
4805
- "The monitor starts evaluating on its schedule as soon as it is created.",
5174
+ "The monitor starts evaluating on its schedule as soon as it is created, unless it is created with `status` set to `paused`.",
4806
5175
  "`scope` decides how many alerts a monitor can raise at once: `any_series` fires once for the metric as a whole, `each_series` tracks every series separately.",
4807
5176
  "No-data (`absence`) conditions require `chart_value=count` and a finite `time_window_minutes`.",
4808
5177
  "`sustained_minutes` is required when `condition_type` is `sustained`, and `threshold_value` is required when it is `threshold`.",
@@ -4865,12 +5234,12 @@ export const CLI_COMMANDS = [
4865
5234
  "allowed_values": [
4866
5235
  "count",
4867
5236
  "average",
5237
+ "sum",
4868
5238
  "min",
4869
5239
  "max",
4870
- "sum",
4871
5240
  "last",
4872
- "cumulative_count",
4873
5241
  "cumulative_sum",
5242
+ "cumulative_count",
4874
5243
  "p50",
4875
5244
  "p95",
4876
5245
  "p99",
@@ -5079,12 +5448,12 @@ export const CLI_COMMANDS = [
5079
5448
  "allowed_values": [
5080
5449
  "count",
5081
5450
  "average",
5451
+ "sum",
5082
5452
  "min",
5083
5453
  "max",
5084
- "sum",
5085
5454
  "last",
5086
- "cumulative_count",
5087
5455
  "cumulative_sum",
5456
+ "cumulative_count",
5088
5457
  "p50",
5089
5458
  "p95",
5090
5459
  "p99",
@@ -5294,12 +5663,12 @@ export const CLI_COMMANDS = [
5294
5663
  "allowed_values": [
5295
5664
  "count",
5296
5665
  "average",
5666
+ "sum",
5297
5667
  "min",
5298
5668
  "max",
5299
- "sum",
5300
5669
  "last",
5301
- "cumulative_count",
5302
5670
  "cumulative_sum",
5671
+ "cumulative_count",
5303
5672
  "p50",
5304
5673
  "p95",
5305
5674
  "p99",
@@ -6602,8 +6971,8 @@ export const CLI_COMMANDS = [
6602
6971
  "description": "Filter by team status, written as `operator:value`. For example `equals:active` or `in:active,delinquent`. Optional.",
6603
6972
  "allowed_values": [
6604
6973
  "active",
6605
- "restricted",
6606
6974
  "delinquent",
6975
+ "restricted",
6607
6976
  "blocked"
6608
6977
  ],
6609
6978
  "deprecated": null
@@ -6785,8 +7154,8 @@ export const CLI_COMMANDS = [
6785
7154
  "description": "Account status for the team. Optional.",
6786
7155
  "allowed_values": [
6787
7156
  "active",
6788
- "restricted",
6789
7157
  "delinquent",
7158
+ "restricted",
6790
7159
  "blocked"
6791
7160
  ],
6792
7161
  "deprecated": null
@@ -6813,7 +7182,65 @@ export const CLI_COMMANDS = [
6813
7182
  "required": false,
6814
7183
  "description": "Billing address printed on invoices. Optional.",
6815
7184
  "allowed_values": [],
6816
- "deprecated": null
7185
+ "deprecated": null,
7186
+ "fields": [
7187
+ {
7188
+ "name": "thoroughfare",
7189
+ "type": "string",
7190
+ "required": false,
7191
+ "description": "Optional. Maximum length: `128`.",
7192
+ "allowed_values": [],
7193
+ "deprecated": null
7194
+ },
7195
+ {
7196
+ "name": "premise",
7197
+ "type": "string",
7198
+ "required": false,
7199
+ "description": "Optional. Maximum length: `128`.",
7200
+ "allowed_values": [],
7201
+ "deprecated": null
7202
+ },
7203
+ {
7204
+ "name": "sublocality",
7205
+ "type": "string",
7206
+ "required": false,
7207
+ "description": "Optional. Maximum length: `128`.",
7208
+ "allowed_values": [],
7209
+ "deprecated": null
7210
+ },
7211
+ {
7212
+ "name": "locality",
7213
+ "type": "string",
7214
+ "required": false,
7215
+ "description": "Optional. Maximum length: `128`.",
7216
+ "allowed_values": [],
7217
+ "deprecated": null
7218
+ },
7219
+ {
7220
+ "name": "administrative_area",
7221
+ "type": "string",
7222
+ "required": false,
7223
+ "description": "Optional. Maximum length: `128`.",
7224
+ "allowed_values": [],
7225
+ "deprecated": null
7226
+ },
7227
+ {
7228
+ "name": "postal_code",
7229
+ "type": "string",
7230
+ "required": false,
7231
+ "description": "Optional. Maximum length: `16`.",
7232
+ "allowed_values": [],
7233
+ "deprecated": null
7234
+ },
7235
+ {
7236
+ "name": "country",
7237
+ "type": "string",
7238
+ "required": false,
7239
+ "description": "Optional. Minimum length: `2`. Maximum length: `2`.",
7240
+ "allowed_values": [],
7241
+ "deprecated": null
7242
+ }
7243
+ ]
6817
7244
  },
6818
7245
  {
6819
7246
  "name": "logo_url",
@@ -6892,8 +7319,8 @@ export const CLI_COMMANDS = [
6892
7319
  "description": "Account status for the team. Optional.",
6893
7320
  "allowed_values": [
6894
7321
  "active",
6895
- "restricted",
6896
7322
  "delinquent",
7323
+ "restricted",
6897
7324
  "blocked"
6898
7325
  ],
6899
7326
  "deprecated": null
@@ -6905,8 +7332,8 @@ export const CLI_COMMANDS = [
6905
7332
  "description": "The status the team had when you loaded it. Required with `status`; the change is refused if the status has changed since. Optional.",
6906
7333
  "allowed_values": [
6907
7334
  "active",
6908
- "restricted",
6909
7335
  "delinquent",
7336
+ "restricted",
6910
7337
  "blocked"
6911
7338
  ],
6912
7339
  "deprecated": null
@@ -6941,7 +7368,65 @@ export const CLI_COMMANDS = [
6941
7368
  "required": false,
6942
7369
  "description": "Billing address printed on invoices. Optional.",
6943
7370
  "allowed_values": [],
6944
- "deprecated": null
7371
+ "deprecated": null,
7372
+ "fields": [
7373
+ {
7374
+ "name": "thoroughfare",
7375
+ "type": "string",
7376
+ "required": false,
7377
+ "description": "Optional. Maximum length: `128`.",
7378
+ "allowed_values": [],
7379
+ "deprecated": null
7380
+ },
7381
+ {
7382
+ "name": "premise",
7383
+ "type": "string",
7384
+ "required": false,
7385
+ "description": "Optional. Maximum length: `128`.",
7386
+ "allowed_values": [],
7387
+ "deprecated": null
7388
+ },
7389
+ {
7390
+ "name": "sublocality",
7391
+ "type": "string",
7392
+ "required": false,
7393
+ "description": "Optional. Maximum length: `128`.",
7394
+ "allowed_values": [],
7395
+ "deprecated": null
7396
+ },
7397
+ {
7398
+ "name": "locality",
7399
+ "type": "string",
7400
+ "required": false,
7401
+ "description": "Optional. Maximum length: `128`.",
7402
+ "allowed_values": [],
7403
+ "deprecated": null
7404
+ },
7405
+ {
7406
+ "name": "administrative_area",
7407
+ "type": "string",
7408
+ "required": false,
7409
+ "description": "Optional. Maximum length: `128`.",
7410
+ "allowed_values": [],
7411
+ "deprecated": null
7412
+ },
7413
+ {
7414
+ "name": "postal_code",
7415
+ "type": "string",
7416
+ "required": false,
7417
+ "description": "Optional. Maximum length: `16`.",
7418
+ "allowed_values": [],
7419
+ "deprecated": null
7420
+ },
7421
+ {
7422
+ "name": "country",
7423
+ "type": "string",
7424
+ "required": false,
7425
+ "description": "Optional. Minimum length: `2`. Maximum length: `2`.",
7426
+ "allowed_values": [],
7427
+ "deprecated": null
7428
+ }
7429
+ ]
6945
7430
  },
6946
7431
  {
6947
7432
  "name": "logo_url",
@@ -7676,8 +8161,8 @@ export const CLI_COMMANDS = [
7676
8161
  "description": "Filter by team status, written as `operator:value`. For example `equals:active` or `in:active,delinquent`. Optional.",
7677
8162
  "allowed_values": [
7678
8163
  "active",
7679
- "restricted",
7680
8164
  "delinquent",
8165
+ "restricted",
7681
8166
  "blocked"
7682
8167
  ],
7683
8168
  "deprecated": null
@@ -7964,7 +8449,7 @@ export const CLI_COMMANDS = [
7964
8449
  "body_fields": []
7965
8450
  },
7966
8451
  {
7967
- "resource": "apiKeys",
8452
+ "resource": "api_keys",
7968
8453
  "command": "list",
7969
8454
  "operation_id": "listApiKeys",
7970
8455
  "summary": "List API Keys",
@@ -8030,7 +8515,7 @@ export const CLI_COMMANDS = [
8030
8515
  "body_fields": []
8031
8516
  },
8032
8517
  {
8033
- "resource": "apiKeys",
8518
+ "resource": "api_keys",
8034
8519
  "command": "retrieve",
8035
8520
  "operation_id": "getApiKey",
8036
8521
  "summary": "Retrieve API Key",
@@ -8056,7 +8541,7 @@ export const CLI_COMMANDS = [
8056
8541
  "body_fields": []
8057
8542
  },
8058
8543
  {
8059
- "resource": "apiKeys",
8544
+ "resource": "api_keys",
8060
8545
  "command": "create",
8061
8546
  "operation_id": "createApiKey",
8062
8547
  "summary": "Create API Key",
@@ -8092,7 +8577,7 @@ export const CLI_COMMANDS = [
8092
8577
  ]
8093
8578
  },
8094
8579
  {
8095
- "resource": "apiKeys",
8580
+ "resource": "api_keys",
8096
8581
  "command": "update",
8097
8582
  "operation_id": "updateApiKey",
8098
8583
  "summary": "Update API Key",
@@ -8137,7 +8622,7 @@ export const CLI_COMMANDS = [
8137
8622
  ]
8138
8623
  },
8139
8624
  {
8140
- "resource": "apiKeys",
8625
+ "resource": "api_keys",
8141
8626
  "command": "delete",
8142
8627
  "operation_id": "deleteApiKey",
8143
8628
  "summary": "Delete API Key",
@@ -8145,10 +8630,10 @@ export const CLI_COMMANDS = [
8145
8630
  "method": "DELETE",
8146
8631
  "path": "/v1/keys/:key_id",
8147
8632
  "alternate_paths": [],
8148
- "scopes": [
8149
- "keys:delete"
8633
+ "scopes": [],
8634
+ "notes": [
8635
+ "Deleting a key needs `keys:delete`, except that a key can always delete itself. `tglow logout` uses this to remove the key it signed in with."
8150
8636
  ],
8151
- "notes": [],
8152
8637
  "path_params": [
8153
8638
  {
8154
8639
  "name": "key_id",