@productcraft/flags 0.3.0 → 0.5.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.
Files changed (54) hide show
  1. package/README.md +35 -0
  2. package/api.md +110 -18
  3. package/dist/browser/{chunk-4LRAE3F3.js → chunk-OOX7EUCT.js} +114 -22
  4. package/dist/browser/chunk-OOX7EUCT.js.map +1 -0
  5. package/dist/browser/{chunk-72WU42RU.js → chunk-WUZAG2E3.js} +11 -4
  6. package/dist/browser/chunk-WUZAG2E3.js.map +1 -0
  7. package/dist/browser/{chunk-FXZVXQ75.cjs → chunk-XZK57G7L.cjs} +114 -22
  8. package/dist/browser/chunk-XZK57G7L.cjs.map +1 -0
  9. package/dist/browser/{chunk-4XCQBTYE.cjs → chunk-YM5K4NHA.cjs} +11 -4
  10. package/dist/browser/chunk-YM5K4NHA.cjs.map +1 -0
  11. package/dist/browser/index.cjs +8 -8
  12. package/dist/browser/index.js +2 -2
  13. package/dist/browser/management.cjs +2 -2
  14. package/dist/browser/management.js +1 -1
  15. package/dist/browser/testing.cjs +3 -3
  16. package/dist/browser/testing.cjs.map +1 -1
  17. package/dist/browser/testing.js +1 -1
  18. package/dist/browser/testing.js.map +1 -1
  19. package/dist/{chunk-TSRLPHJ5.js → chunk-CGVDMKEE.js} +12 -5
  20. package/dist/chunk-CGVDMKEE.js.map +1 -0
  21. package/dist/{chunk-QTDMUNLG.cjs → chunk-L3AOANTB.cjs} +12 -5
  22. package/dist/chunk-L3AOANTB.cjs.map +1 -0
  23. package/dist/{chunk-WI4EZXOV.cjs → chunk-RJIVAOBG.cjs} +114 -22
  24. package/dist/chunk-RJIVAOBG.cjs.map +1 -0
  25. package/dist/{chunk-2YRDLKNB.js → chunk-XNJ5OX4X.js} +114 -22
  26. package/dist/chunk-XNJ5OX4X.js.map +1 -0
  27. package/dist/{client-K2zALPGD.d.cts → client-BBiIKiGW.d.cts} +18 -14
  28. package/dist/{client-K2zALPGD.d.ts → client-BBiIKiGW.d.ts} +18 -14
  29. package/dist/{client-bVEJfS6_.d.cts → client-BWi7PASW.d.cts} +1091 -45
  30. package/dist/{client-bVEJfS6_.d.ts → client-BWi7PASW.d.ts} +1091 -45
  31. package/dist/index.cjs +8 -8
  32. package/dist/index.d.cts +3 -3
  33. package/dist/index.d.ts +3 -3
  34. package/dist/index.js +2 -2
  35. package/dist/management.cjs +2 -2
  36. package/dist/management.d.cts +1 -1
  37. package/dist/management.d.ts +1 -1
  38. package/dist/management.js +1 -1
  39. package/dist/testing.cjs +3 -3
  40. package/dist/testing.cjs.map +1 -1
  41. package/dist/testing.d.cts +3 -3
  42. package/dist/testing.d.ts +3 -3
  43. package/dist/testing.js +1 -1
  44. package/dist/testing.js.map +1 -1
  45. package/manifest.json +1 -1
  46. package/package.json +2 -2
  47. package/dist/browser/chunk-4LRAE3F3.js.map +0 -1
  48. package/dist/browser/chunk-4XCQBTYE.cjs.map +0 -1
  49. package/dist/browser/chunk-72WU42RU.js.map +0 -1
  50. package/dist/browser/chunk-FXZVXQ75.cjs.map +0 -1
  51. package/dist/chunk-2YRDLKNB.js.map +0 -1
  52. package/dist/chunk-QTDMUNLG.cjs.map +0 -1
  53. package/dist/chunk-TSRLPHJ5.js.map +0 -1
  54. package/dist/chunk-WI4EZXOV.cjs.map +0 -1
@@ -570,7 +570,7 @@ type paths = {
570
570
  head?: never;
571
571
  /**
572
572
  * Update a segment
573
- * @description Key, name, description or conditions; only the fields you send change. Edit a confidential list with `list_id` plus `values_add` / `values_remove`. A segment used in a protected environment also needs `flags.protected.update` there.
573
+ * @description Key, name, description or conditions; only the fields you send change. To add or remove values in one list condition without re-sending the others, send `condition_edits` (with the `version` you read). Edit a confidential list with `list_id` plus `values_add` / `values_remove`, or with `condition_edits`. A segment used in a protected environment also needs `flags.protected.update` there.
574
574
  */
575
575
  patch: operations["SegmentsController_update"];
576
576
  trace?: never;
@@ -646,7 +646,7 @@ type paths = {
646
646
  head?: never;
647
647
  /**
648
648
  * Update a value
649
- * @description The quick edits: `value` (the toggle), `percentage_attribute`, and `clear_rules: true` to drop every rule and split so `value` is served to everyone (the kill switch). Send the `version` you read.
649
+ * @description The quick edits: `value` (the toggle), `percentage_attribute`, `rule_edits` to add or remove values in a list condition of an existing rule (a tester, a QA account) without re-sending the other rules, and `clear_rules: true` to drop every rule and split so `value` is served to everyone (the kill switch). Send the `version` you read. A protected environment needs `flags.protected.update`; one change and one revision per request, none when nothing changed.
650
650
  */
651
651
  patch: operations["SettingsController_patchValue"];
652
652
  trace?: never;
@@ -1110,6 +1110,27 @@ type components = {
1110
1110
  /** @description Its value in each requested environment, in the order of `environment_ids`. */
1111
1111
  values: components["schemas"]["SettingValueResponseDto"][];
1112
1112
  };
1113
+ ConditionListEditDto: {
1114
+ /**
1115
+ * @description The condition to edit (0-based, in the order the conditions are listed).
1116
+ * @example 0
1117
+ */
1118
+ condition_index: number;
1119
+ /**
1120
+ * @description Values to add. A value already in the list is ignored (no change, no new version).
1121
+ * @example [
1122
+ * "qa-bot@example.com"
1123
+ * ]
1124
+ */
1125
+ values_add?: string[];
1126
+ /**
1127
+ * @description Values to remove, applied before `values_add`. A value not in the list is ignored. The list cannot become empty (remove the condition with a full PUT).
1128
+ * @example [
1129
+ * "old-bot@example.com"
1130
+ * ]
1131
+ */
1132
+ values_remove?: string[];
1133
+ };
1113
1134
  ConfidentialListDto: {
1114
1135
  /**
1115
1136
  * @description The user attribute the condition compares.
@@ -1778,7 +1799,7 @@ type components = {
1778
1799
  */
1779
1800
  revision?: number;
1780
1801
  /**
1781
- * @description The user to evaluate for, in the SDK's shape: `identifier`, `email`, `country` and `custom: {…}`; flat attributes are accepted too (`custom` wins when both name one). Attribute names are yours and kept as sent. `null` or omitted: no user (rules that need one are soft misses with `missing_user`). Attribute values are text, numbers, booleans or arrays of text; anything else is a soft miss (`invalid_attribute`), as in the SDKs. Dates: send unix seconds, `{"$date": "<ISO 8601>"}`, or a plain ISO 8601 string for an attribute that a `before`/`after` condition of this config uses (converted to unix seconds; a console convenience, SDKs take a `Date` or unix seconds). Never stored or logged.
1802
+ * @description The user to evaluate for, in the SDK's shape: `identifier`, `email`, `country` and `custom: {…}`; flat attributes are accepted too (`custom` wins when both name one). Attribute names are yours and kept as sent. `null` or omitted: no user (rules that need one are soft misses with `missing_user`). Attribute values are text, numbers, booleans or arrays of text; anything else is a soft miss (`invalid_attribute`), as in the SDKs. Dates: send unix seconds, `{"$date": "<ISO 8601>"}`, or a plain ISO 8601 string for an attribute that a `before`/`after` condition of this config uses (converted to unix seconds; a console convenience, SDKs take a `Date` or unix seconds; each converted attribute adds an `iso_date_converted` warning to the rows it affects). Never stored or logged.
1782
1803
  * @example {
1783
1804
  * "custom": {
1784
1805
  * "app_version": "2.1.0"
@@ -1847,7 +1868,7 @@ type components = {
1847
1868
  */
1848
1869
  attribute: string | null;
1849
1870
  /**
1850
- * @description Stable warning code: a condition or split could not be evaluated for this user, and evaluation went on (a soft miss).
1871
+ * @description Stable warning code. Most codes mean a condition or split could not be evaluated for this user, and evaluation went on (a soft miss). `iso_date_converted` is informational: this endpoint turned a plain ISO 8601 string into a date for a `before`/`after` condition this setting uses, which an SDK does not do (an SDK skips that condition), so your app can get a different answer for the same user.
1851
1872
  * @example missing_attribute
1852
1873
  */
1853
1874
  code: components["schemas"]["FlagsEvaluationWarningCode"];
@@ -1880,7 +1901,7 @@ type components = {
1880
1901
  /** @enum {string} */
1881
1902
  FlagsEvaluationReason: "STATIC" | "TARGETING_MATCH" | "SPLIT" | "DEFAULT" | "ERROR";
1882
1903
  /** @enum {string} */
1883
- FlagsEvaluationWarningCode: "missing_user" | "missing_attribute" | "invalid_attribute" | "unknown_comparator" | "missing_percentage_attribute";
1904
+ FlagsEvaluationWarningCode: "missing_user" | "missing_attribute" | "invalid_attribute" | "unknown_comparator" | "missing_percentage_attribute" | "iso_date_converted";
1884
1905
  /** @enum {string} */
1885
1906
  FlagsHistoryExportFormat: "csv" | "json";
1886
1907
  FlagsHistoryUsageDto: {
@@ -2325,6 +2346,19 @@ type components = {
2325
2346
  note?: string;
2326
2347
  /** @description The attribute splits hash; null for `identifier`. */
2327
2348
  percentage_attribute?: string | null;
2349
+ /**
2350
+ * @description Add or remove values in list conditions of the existing rules without re-sending the targeting: each edit names a rule and a condition by index (as `GET` returns them, so send the `version` you read) and changes only that condition's values, with set semantics. A 422 `INVALID_TARGETING` names an index with no rule or condition, or a condition that is not a list. Re-adding a present value or removing an absent one is not a change: the current value comes back with the same `version` and no history entry. Cannot be combined with `clear_rules`.
2351
+ * @example [
2352
+ * {
2353
+ * "condition_index": 0,
2354
+ * "rule_index": 0,
2355
+ * "values_add": [
2356
+ * "qa-bot@example.com"
2357
+ * ]
2358
+ * }
2359
+ * ]
2360
+ */
2361
+ rule_edits?: components["schemas"]["RuleListEditDto"][];
2328
2362
  /**
2329
2363
  * @description The new plain value (the on/off toggle for a flag). Must match the setting type: `boolean` true/false; `string` a string; `integer` a safe integer; `number` a finite number; `json` a string holding JSON text (for example `"{\"limit\":5}"`). At most 100 KB. Strings are stored and returned byte for byte.
2330
2364
  * @example true
@@ -2542,6 +2576,32 @@ type components = {
2542
2576
  */
2543
2577
  grace_hours?: number;
2544
2578
  };
2579
+ RuleListEditDto: {
2580
+ /**
2581
+ * @description The condition to edit (0-based, in the order the conditions are listed).
2582
+ * @example 0
2583
+ */
2584
+ condition_index: number;
2585
+ /**
2586
+ * @description The rule the condition is in (0-based, in evaluation order).
2587
+ * @example 0
2588
+ */
2589
+ rule_index: number;
2590
+ /**
2591
+ * @description Values to add. A value already in the list is ignored (no change, no new version).
2592
+ * @example [
2593
+ * "qa-bot@example.com"
2594
+ * ]
2595
+ */
2596
+ values_add?: string[];
2597
+ /**
2598
+ * @description Values to remove, applied before `values_add`. A value not in the list is ignored. The list cannot become empty (remove the condition with a full PUT).
2599
+ * @example [
2600
+ * "old-bot@example.com"
2601
+ * ]
2602
+ */
2603
+ values_remove?: string[];
2604
+ };
2545
2605
  SdkKeyListResponseDto: {
2546
2606
  /** @description The primary key, then the secondary key while a grace period runs. */
2547
2607
  data: components["schemas"]["SdkKeyResponseDto"][];
@@ -3226,6 +3286,18 @@ type components = {
3226
3286
  ordinal?: number;
3227
3287
  };
3228
3288
  UpdateSegmentDto: {
3289
+ /**
3290
+ * @description Instead of `conditions`: add or remove values in list conditions without re-sending the others. Each edit names a condition by index and changes only its values, with set semantics (`values_remove` first). A 422 `INVALID_TARGETING` names an index with no condition, or a condition that is not a list. Re-adding a present value or removing an absent one is not a change (same `version`, no history entry). Send `version` so an edit against a stale read is refused.
3291
+ * @example [
3292
+ * {
3293
+ * "condition_index": 0,
3294
+ * "values_add": [
3295
+ * "qa-bot@example.com"
3296
+ * ]
3297
+ * }
3298
+ * ]
3299
+ */
3300
+ condition_edits?: components["schemas"]["ConditionListEditDto"][];
3229
3301
  /**
3230
3302
  * @description Replaces the conditions. 1-20 conditions, ANDed in order; each is `{user: {attribute, comparator, values}}` (segments hold user conditions only). Confidential comparators take cleartext `values` (stored hashed with the segment's seed and the project salt, and encrypted at rest), `values_hashed`, or `list_id` with `values_add` / `values_remove` to edit a stored list. To keep a confidential list, send its `list_id` (or echo the `{hashed: true, list_id, …}` object as `values`).
3231
3303
  * @example [
@@ -3916,6 +3988,14 @@ interface operations {
3916
3988
  "application/json": components["schemas"]["ChangeDetailResponseDto"];
3917
3989
  };
3918
3990
  };
3991
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
3992
+ 401: {
3993
+ headers: {
3994
+ "X-Request-Id": components["headers"]["RequestId"];
3995
+ [name: string]: unknown;
3996
+ };
3997
+ content?: never;
3998
+ };
3919
3999
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
3920
4000
  403: {
3921
4001
  headers: {
@@ -3943,13 +4023,22 @@ interface operations {
3943
4023
  };
3944
4024
  content?: never;
3945
4025
  };
4026
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
4027
+ 503: {
4028
+ headers: {
4029
+ "Retry-After": components["headers"]["Retry-After"];
4030
+ "X-Request-Id": components["headers"]["RequestId"];
4031
+ [name: string]: unknown;
4032
+ };
4033
+ content?: never;
4034
+ };
3946
4035
  };
3947
4036
  };
3948
4037
  ChangesController_revert: {
3949
4038
  parameters: {
3950
4039
  query?: never;
3951
4040
  header?: {
3952
- /** @description Idempotency key (1-256 characters, `[A-Za-z0-9_-:]`). A retry with the same key and body returns the first response for 24 h. */
4041
+ /** @description Idempotency key (1-256 characters, `[A-Za-z0-9._:-]`). A retry with the same key and body returns the first response for 24 h. */
3953
4042
  "Idempotency-Key"?: string;
3954
4043
  };
3955
4044
  path: {
@@ -3998,6 +4087,14 @@ interface operations {
3998
4087
  };
3999
4088
  content?: never;
4000
4089
  };
4090
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4091
+ 401: {
4092
+ headers: {
4093
+ "X-Request-Id": components["headers"]["RequestId"];
4094
+ [name: string]: unknown;
4095
+ };
4096
+ content?: never;
4097
+ };
4001
4098
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). A restore needs the actions of the original edit too. */
4002
4099
  403: {
4003
4100
  headers: {
@@ -4043,6 +4140,15 @@ interface operations {
4043
4140
  };
4044
4141
  content?: never;
4045
4142
  };
4143
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
4144
+ 503: {
4145
+ headers: {
4146
+ "Retry-After": components["headers"]["Retry-After"];
4147
+ "X-Request-Id": components["headers"]["RequestId"];
4148
+ [name: string]: unknown;
4149
+ };
4150
+ content?: never;
4151
+ };
4046
4152
  };
4047
4153
  };
4048
4154
  ConfigsController_get: {
@@ -4081,6 +4187,14 @@ interface operations {
4081
4187
  "application/json": components["schemas"]["ConfigResponseDto"];
4082
4188
  };
4083
4189
  };
4190
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4191
+ 401: {
4192
+ headers: {
4193
+ "X-Request-Id": components["headers"]["RequestId"];
4194
+ [name: string]: unknown;
4195
+ };
4196
+ content?: never;
4197
+ };
4084
4198
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4085
4199
  403: {
4086
4200
  headers: {
@@ -4108,6 +4222,15 @@ interface operations {
4108
4222
  };
4109
4223
  content?: never;
4110
4224
  };
4225
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
4226
+ 503: {
4227
+ headers: {
4228
+ "Retry-After": components["headers"]["Retry-After"];
4229
+ "X-Request-Id": components["headers"]["RequestId"];
4230
+ [name: string]: unknown;
4231
+ };
4232
+ content?: never;
4233
+ };
4111
4234
  };
4112
4235
  };
4113
4236
  ConfigsController_delete: {
@@ -4150,6 +4273,14 @@ interface operations {
4150
4273
  };
4151
4274
  content?: never;
4152
4275
  };
4276
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4277
+ 401: {
4278
+ headers: {
4279
+ "X-Request-Id": components["headers"]["RequestId"];
4280
+ [name: string]: unknown;
4281
+ };
4282
+ content?: never;
4283
+ };
4153
4284
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4154
4285
  403: {
4155
4286
  headers: {
@@ -4177,6 +4308,15 @@ interface operations {
4177
4308
  };
4178
4309
  content?: never;
4179
4310
  };
4311
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
4312
+ 503: {
4313
+ headers: {
4314
+ "Retry-After": components["headers"]["Retry-After"];
4315
+ "X-Request-Id": components["headers"]["RequestId"];
4316
+ [name: string]: unknown;
4317
+ };
4318
+ content?: never;
4319
+ };
4180
4320
  };
4181
4321
  };
4182
4322
  ConfigsController_update: {
@@ -4227,6 +4367,14 @@ interface operations {
4227
4367
  };
4228
4368
  content?: never;
4229
4369
  };
4370
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4371
+ 401: {
4372
+ headers: {
4373
+ "X-Request-Id": components["headers"]["RequestId"];
4374
+ [name: string]: unknown;
4375
+ };
4376
+ content?: never;
4377
+ };
4230
4378
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4231
4379
  403: {
4232
4380
  headers: {
@@ -4262,6 +4410,15 @@ interface operations {
4262
4410
  };
4263
4411
  content?: never;
4264
4412
  };
4413
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
4414
+ 503: {
4415
+ headers: {
4416
+ "Retry-After": components["headers"]["Retry-After"];
4417
+ "X-Request-Id": components["headers"]["RequestId"];
4418
+ [name: string]: unknown;
4419
+ };
4420
+ content?: never;
4421
+ };
4265
4422
  };
4266
4423
  };
4267
4424
  ConfigSettingsController_compare: {
@@ -4324,6 +4481,14 @@ interface operations {
4324
4481
  };
4325
4482
  content?: never;
4326
4483
  };
4484
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4485
+ 401: {
4486
+ headers: {
4487
+ "X-Request-Id": components["headers"]["RequestId"];
4488
+ [name: string]: unknown;
4489
+ };
4490
+ content?: never;
4491
+ };
4327
4492
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4328
4493
  403: {
4329
4494
  headers: {
@@ -4351,13 +4516,22 @@ interface operations {
4351
4516
  };
4352
4517
  content?: never;
4353
4518
  };
4519
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
4520
+ 503: {
4521
+ headers: {
4522
+ "Retry-After": components["headers"]["Retry-After"];
4523
+ "X-Request-Id": components["headers"]["RequestId"];
4524
+ [name: string]: unknown;
4525
+ };
4526
+ content?: never;
4527
+ };
4354
4528
  };
4355
4529
  };
4356
4530
  CopyEnvironmentController_copy: {
4357
4531
  parameters: {
4358
4532
  query?: never;
4359
4533
  header?: {
4360
- /** @description Idempotency key (1-256 characters, `[A-Za-z0-9_-:]`). A retry with the same key and body returns the first response for 24 h. */
4534
+ /** @description Idempotency key (1-256 characters, `[A-Za-z0-9._:-]`). A retry with the same key and body returns the first response for 24 h. */
4361
4535
  "Idempotency-Key"?: string;
4362
4536
  };
4363
4537
  path: {
@@ -4411,6 +4585,14 @@ interface operations {
4411
4585
  };
4412
4586
  content?: never;
4413
4587
  };
4588
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4589
+ 401: {
4590
+ headers: {
4591
+ "X-Request-Id": components["headers"]["RequestId"];
4592
+ [name: string]: unknown;
4593
+ };
4594
+ content?: never;
4595
+ };
4414
4596
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). Copies need `flags.value.update` on the environment and every setting, and `flags.protected.update` into a protected environment. */
4415
4597
  403: {
4416
4598
  headers: {
@@ -4456,6 +4638,15 @@ interface operations {
4456
4638
  };
4457
4639
  content?: never;
4458
4640
  };
4641
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
4642
+ 503: {
4643
+ headers: {
4644
+ "Retry-After": components["headers"]["Retry-After"];
4645
+ "X-Request-Id": components["headers"]["RequestId"];
4646
+ [name: string]: unknown;
4647
+ };
4648
+ content?: never;
4649
+ };
4459
4650
  };
4460
4651
  };
4461
4652
  EvaluateController_evaluate: {
@@ -4511,6 +4702,14 @@ interface operations {
4511
4702
  };
4512
4703
  content?: never;
4513
4704
  };
4705
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4706
+ 401: {
4707
+ headers: {
4708
+ "X-Request-Id": components["headers"]["RequestId"];
4709
+ [name: string]: unknown;
4710
+ };
4711
+ content?: never;
4712
+ };
4514
4713
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4515
4714
  403: {
4516
4715
  headers: {
@@ -4546,6 +4745,15 @@ interface operations {
4546
4745
  };
4547
4746
  content?: never;
4548
4747
  };
4748
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
4749
+ 503: {
4750
+ headers: {
4751
+ "Retry-After": components["headers"]["Retry-After"];
4752
+ "X-Request-Id": components["headers"]["RequestId"];
4753
+ [name: string]: unknown;
4754
+ };
4755
+ content?: never;
4756
+ };
4549
4757
  };
4550
4758
  };
4551
4759
  RevisionsController_list: {
@@ -4608,6 +4816,14 @@ interface operations {
4608
4816
  };
4609
4817
  content?: never;
4610
4818
  };
4819
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4820
+ 401: {
4821
+ headers: {
4822
+ "X-Request-Id": components["headers"]["RequestId"];
4823
+ [name: string]: unknown;
4824
+ };
4825
+ content?: never;
4826
+ };
4611
4827
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4612
4828
  403: {
4613
4829
  headers: {
@@ -4635,6 +4851,15 @@ interface operations {
4635
4851
  };
4636
4852
  content?: never;
4637
4853
  };
4854
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
4855
+ 503: {
4856
+ headers: {
4857
+ "Retry-After": components["headers"]["Retry-After"];
4858
+ "X-Request-Id": components["headers"]["RequestId"];
4859
+ [name: string]: unknown;
4860
+ };
4861
+ content?: never;
4862
+ };
4638
4863
  };
4639
4864
  };
4640
4865
  RevisionsController_get: {
@@ -4695,6 +4920,14 @@ interface operations {
4695
4920
  };
4696
4921
  content?: never;
4697
4922
  };
4923
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4924
+ 401: {
4925
+ headers: {
4926
+ "X-Request-Id": components["headers"]["RequestId"];
4927
+ [name: string]: unknown;
4928
+ };
4929
+ content?: never;
4930
+ };
4698
4931
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4699
4932
  403: {
4700
4933
  headers: {
@@ -4722,6 +4955,15 @@ interface operations {
4722
4955
  };
4723
4956
  content?: never;
4724
4957
  };
4958
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
4959
+ 503: {
4960
+ headers: {
4961
+ "Retry-After": components["headers"]["Retry-After"];
4962
+ "X-Request-Id": components["headers"]["RequestId"];
4963
+ [name: string]: unknown;
4964
+ };
4965
+ content?: never;
4966
+ };
4725
4967
  };
4726
4968
  };
4727
4969
  SdkKeysController_list: {
@@ -4765,6 +5007,14 @@ interface operations {
4765
5007
  "application/json": components["schemas"]["SdkKeyListResponseDto"];
4766
5008
  };
4767
5009
  };
5010
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5011
+ 401: {
5012
+ headers: {
5013
+ "X-Request-Id": components["headers"]["RequestId"];
5014
+ [name: string]: unknown;
5015
+ };
5016
+ content?: never;
5017
+ };
4768
5018
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4769
5019
  403: {
4770
5020
  headers: {
@@ -4792,6 +5042,15 @@ interface operations {
4792
5042
  };
4793
5043
  content?: never;
4794
5044
  };
5045
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
5046
+ 503: {
5047
+ headers: {
5048
+ "Retry-After": components["headers"]["Retry-After"];
5049
+ "X-Request-Id": components["headers"]["RequestId"];
5050
+ [name: string]: unknown;
5051
+ };
5052
+ content?: never;
5053
+ };
4795
5054
  };
4796
5055
  };
4797
5056
  SdkKeysController_reveal: {
@@ -4835,6 +5094,14 @@ interface operations {
4835
5094
  "application/json": components["schemas"]["RevealedSdkKeyListResponseDto"];
4836
5095
  };
4837
5096
  };
5097
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5098
+ 401: {
5099
+ headers: {
5100
+ "X-Request-Id": components["headers"]["RequestId"];
5101
+ [name: string]: unknown;
5102
+ };
5103
+ content?: never;
5104
+ };
4838
5105
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4839
5106
  403: {
4840
5107
  headers: {
@@ -4862,13 +5129,22 @@ interface operations {
4862
5129
  };
4863
5130
  content?: never;
4864
5131
  };
5132
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
5133
+ 503: {
5134
+ headers: {
5135
+ "Retry-After": components["headers"]["Retry-After"];
5136
+ "X-Request-Id": components["headers"]["RequestId"];
5137
+ [name: string]: unknown;
5138
+ };
5139
+ content?: never;
5140
+ };
4865
5141
  };
4866
5142
  };
4867
5143
  SdkKeysController_rotate: {
4868
5144
  parameters: {
4869
5145
  query?: never;
4870
5146
  header?: {
4871
- /** @description Idempotency key (1-256 characters, `[A-Za-z0-9_-:]`). A retry with the same key and body returns the first response for 24 h. */
5147
+ /** @description Idempotency key (1-256 characters, `[A-Za-z0-9._:-]`). A retry with the same key and body returns the first response for 24 h. */
4872
5148
  "Idempotency-Key"?: string;
4873
5149
  };
4874
5150
  path: {
@@ -4922,6 +5198,14 @@ interface operations {
4922
5198
  };
4923
5199
  content?: never;
4924
5200
  };
5201
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5202
+ 401: {
5203
+ headers: {
5204
+ "X-Request-Id": components["headers"]["RequestId"];
5205
+ [name: string]: unknown;
5206
+ };
5207
+ content?: never;
5208
+ };
4925
5209
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4926
5210
  403: {
4927
5211
  headers: {
@@ -4959,6 +5243,15 @@ interface operations {
4959
5243
  };
4960
5244
  content?: never;
4961
5245
  };
5246
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
5247
+ 503: {
5248
+ headers: {
5249
+ "Retry-After": components["headers"]["Retry-After"];
5250
+ "X-Request-Id": components["headers"]["RequestId"];
5251
+ [name: string]: unknown;
5252
+ };
5253
+ content?: never;
5254
+ };
4962
5255
  };
4963
5256
  };
4964
5257
  SdkKeysController_endGracePeriod: {
@@ -5002,6 +5295,14 @@ interface operations {
5002
5295
  "application/json": components["schemas"]["SdkKeyListResponseDto"];
5003
5296
  };
5004
5297
  };
5298
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5299
+ 401: {
5300
+ headers: {
5301
+ "X-Request-Id": components["headers"]["RequestId"];
5302
+ [name: string]: unknown;
5303
+ };
5304
+ content?: never;
5305
+ };
5005
5306
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5006
5307
  403: {
5007
5308
  headers: {
@@ -5029,6 +5330,15 @@ interface operations {
5029
5330
  };
5030
5331
  content?: never;
5031
5332
  };
5333
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
5334
+ 503: {
5335
+ headers: {
5336
+ "Retry-After": components["headers"]["Retry-After"];
5337
+ "X-Request-Id": components["headers"]["RequestId"];
5338
+ [name: string]: unknown;
5339
+ };
5340
+ content?: never;
5341
+ };
5032
5342
  };
5033
5343
  };
5034
5344
  ConfigSettingsController_listValues: {
@@ -5096,7 +5406,15 @@ interface operations {
5096
5406
  };
5097
5407
  content?: never;
5098
5408
  };
5099
- /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5409
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5410
+ 401: {
5411
+ headers: {
5412
+ "X-Request-Id": components["headers"]["RequestId"];
5413
+ [name: string]: unknown;
5414
+ };
5415
+ content?: never;
5416
+ };
5417
+ /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5100
5418
  403: {
5101
5419
  headers: {
5102
5420
  "X-Request-Id": components["headers"]["RequestId"];
@@ -5123,6 +5441,15 @@ interface operations {
5123
5441
  };
5124
5442
  content?: never;
5125
5443
  };
5444
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
5445
+ 503: {
5446
+ headers: {
5447
+ "Retry-After": components["headers"]["Retry-After"];
5448
+ "X-Request-Id": components["headers"]["RequestId"];
5449
+ [name: string]: unknown;
5450
+ };
5451
+ content?: never;
5452
+ };
5126
5453
  };
5127
5454
  };
5128
5455
  ConfigSettingsController_list: {
@@ -5205,6 +5532,14 @@ interface operations {
5205
5532
  };
5206
5533
  content?: never;
5207
5534
  };
5535
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5536
+ 401: {
5537
+ headers: {
5538
+ "X-Request-Id": components["headers"]["RequestId"];
5539
+ [name: string]: unknown;
5540
+ };
5541
+ content?: never;
5542
+ };
5208
5543
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5209
5544
  403: {
5210
5545
  headers: {
@@ -5232,13 +5567,22 @@ interface operations {
5232
5567
  };
5233
5568
  content?: never;
5234
5569
  };
5570
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
5571
+ 503: {
5572
+ headers: {
5573
+ "Retry-After": components["headers"]["Retry-After"];
5574
+ "X-Request-Id": components["headers"]["RequestId"];
5575
+ [name: string]: unknown;
5576
+ };
5577
+ content?: never;
5578
+ };
5235
5579
  };
5236
5580
  };
5237
5581
  ConfigSettingsController_create: {
5238
5582
  parameters: {
5239
5583
  query?: never;
5240
5584
  header?: {
5241
- /** @description Idempotency key (1-256 characters, `[A-Za-z0-9_-:]`). A retry with the same key and body returns the first response for 24 h. */
5585
+ /** @description Idempotency key (1-256 characters, `[A-Za-z0-9._:-]`). A retry with the same key and body returns the first response for 24 h. */
5242
5586
  "Idempotency-Key"?: string;
5243
5587
  };
5244
5588
  path: {
@@ -5287,6 +5631,14 @@ interface operations {
5287
5631
  };
5288
5632
  content?: never;
5289
5633
  };
5634
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5635
+ 401: {
5636
+ headers: {
5637
+ "X-Request-Id": components["headers"]["RequestId"];
5638
+ [name: string]: unknown;
5639
+ };
5640
+ content?: never;
5641
+ };
5290
5642
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5291
5643
  403: {
5292
5644
  headers: {
@@ -5332,9 +5684,10 @@ interface operations {
5332
5684
  };
5333
5685
  content?: never;
5334
5686
  };
5335
- /** @description `SERVICE_UNAVAILABLE`: the member lookup for `owner_id` is unavailable; retry. */
5687
+ /** @description `SERVICE_UNAVAILABLE`: the member lookup for `owner_id` is unavailable; retry. Or `MANAGEMENT_UNAVAILABLE`: the whole management API is temporarily unavailable, for example while its database is unreachable; wait `Retry-After` seconds and retry. */
5336
5688
  503: {
5337
5689
  headers: {
5690
+ "Retry-After": components["headers"]["Retry-After"];
5338
5691
  "X-Request-Id": components["headers"]["RequestId"];
5339
5692
  [name: string]: unknown;
5340
5693
  };
@@ -5401,6 +5754,14 @@ interface operations {
5401
5754
  };
5402
5755
  content?: never;
5403
5756
  };
5757
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5758
+ 401: {
5759
+ headers: {
5760
+ "X-Request-Id": components["headers"]["RequestId"];
5761
+ [name: string]: unknown;
5762
+ };
5763
+ content?: never;
5764
+ };
5404
5765
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5405
5766
  403: {
5406
5767
  headers: {
@@ -5452,6 +5813,15 @@ interface operations {
5452
5813
  };
5453
5814
  content?: never;
5454
5815
  };
5816
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
5817
+ 503: {
5818
+ headers: {
5819
+ "Retry-After": components["headers"]["Retry-After"];
5820
+ "X-Request-Id": components["headers"]["RequestId"];
5821
+ [name: string]: unknown;
5822
+ };
5823
+ content?: never;
5824
+ };
5455
5825
  };
5456
5826
  };
5457
5827
  LimitsController_get: {
@@ -5485,6 +5855,14 @@ interface operations {
5485
5855
  "application/json": components["schemas"]["FlagsLimitsResponseDto"];
5486
5856
  };
5487
5857
  };
5858
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5859
+ 401: {
5860
+ headers: {
5861
+ "X-Request-Id": components["headers"]["RequestId"];
5862
+ [name: string]: unknown;
5863
+ };
5864
+ content?: never;
5865
+ };
5488
5866
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5489
5867
  403: {
5490
5868
  headers: {
@@ -5504,6 +5882,15 @@ interface operations {
5504
5882
  };
5505
5883
  content?: never;
5506
5884
  };
5885
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
5886
+ 503: {
5887
+ headers: {
5888
+ "Retry-After": components["headers"]["Retry-After"];
5889
+ "X-Request-Id": components["headers"]["RequestId"];
5890
+ [name: string]: unknown;
5891
+ };
5892
+ content?: never;
5893
+ };
5507
5894
  };
5508
5895
  };
5509
5896
  ProjectsController_list: {
@@ -5556,6 +5943,14 @@ interface operations {
5556
5943
  };
5557
5944
  content?: never;
5558
5945
  };
5946
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5947
+ 401: {
5948
+ headers: {
5949
+ "X-Request-Id": components["headers"]["RequestId"];
5950
+ [name: string]: unknown;
5951
+ };
5952
+ content?: never;
5953
+ };
5559
5954
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5560
5955
  403: {
5561
5956
  headers: {
@@ -5575,13 +5970,22 @@ interface operations {
5575
5970
  };
5576
5971
  content?: never;
5577
5972
  };
5973
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
5974
+ 503: {
5975
+ headers: {
5976
+ "Retry-After": components["headers"]["Retry-After"];
5977
+ "X-Request-Id": components["headers"]["RequestId"];
5978
+ [name: string]: unknown;
5979
+ };
5980
+ content?: never;
5981
+ };
5578
5982
  };
5579
5983
  };
5580
5984
  ProjectsController_create: {
5581
5985
  parameters: {
5582
5986
  query?: never;
5583
5987
  header?: {
5584
- /** @description Idempotency key (1-256 characters, `[A-Za-z0-9_-:]`). A retry with the same key and body returns the first response for 24 h. */
5988
+ /** @description Idempotency key (1-256 characters, `[A-Za-z0-9._:-]`). A retry with the same key and body returns the first response for 24 h. */
5585
5989
  "Idempotency-Key"?: string;
5586
5990
  };
5587
5991
  path: {
@@ -5625,6 +6029,14 @@ interface operations {
5625
6029
  };
5626
6030
  content?: never;
5627
6031
  };
6032
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6033
+ 401: {
6034
+ headers: {
6035
+ "X-Request-Id": components["headers"]["RequestId"];
6036
+ [name: string]: unknown;
6037
+ };
6038
+ content?: never;
6039
+ };
5628
6040
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5629
6041
  403: {
5630
6042
  headers: {
@@ -5662,6 +6074,15 @@ interface operations {
5662
6074
  };
5663
6075
  content?: never;
5664
6076
  };
6077
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
6078
+ 503: {
6079
+ headers: {
6080
+ "Retry-After": components["headers"]["Retry-After"];
6081
+ "X-Request-Id": components["headers"]["RequestId"];
6082
+ [name: string]: unknown;
6083
+ };
6084
+ content?: never;
6085
+ };
5665
6086
  };
5666
6087
  };
5667
6088
  ProjectsController_get: {
@@ -5700,6 +6121,14 @@ interface operations {
5700
6121
  "application/json": components["schemas"]["ProjectResponseDto"];
5701
6122
  };
5702
6123
  };
6124
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6125
+ 401: {
6126
+ headers: {
6127
+ "X-Request-Id": components["headers"]["RequestId"];
6128
+ [name: string]: unknown;
6129
+ };
6130
+ content?: never;
6131
+ };
5703
6132
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5704
6133
  403: {
5705
6134
  headers: {
@@ -5727,6 +6156,15 @@ interface operations {
5727
6156
  };
5728
6157
  content?: never;
5729
6158
  };
6159
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
6160
+ 503: {
6161
+ headers: {
6162
+ "Retry-After": components["headers"]["Retry-After"];
6163
+ "X-Request-Id": components["headers"]["RequestId"];
6164
+ [name: string]: unknown;
6165
+ };
6166
+ content?: never;
6167
+ };
5730
6168
  };
5731
6169
  };
5732
6170
  ProjectsController_delete: {
@@ -5774,6 +6212,14 @@ interface operations {
5774
6212
  };
5775
6213
  content?: never;
5776
6214
  };
6215
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6216
+ 401: {
6217
+ headers: {
6218
+ "X-Request-Id": components["headers"]["RequestId"];
6219
+ [name: string]: unknown;
6220
+ };
6221
+ content?: never;
6222
+ };
5777
6223
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5778
6224
  403: {
5779
6225
  headers: {
@@ -5809,6 +6255,15 @@ interface operations {
5809
6255
  };
5810
6256
  content?: never;
5811
6257
  };
6258
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
6259
+ 503: {
6260
+ headers: {
6261
+ "Retry-After": components["headers"]["Retry-After"];
6262
+ "X-Request-Id": components["headers"]["RequestId"];
6263
+ [name: string]: unknown;
6264
+ };
6265
+ content?: never;
6266
+ };
5812
6267
  };
5813
6268
  };
5814
6269
  ProjectsController_update: {
@@ -5859,6 +6314,14 @@ interface operations {
5859
6314
  };
5860
6315
  content?: never;
5861
6316
  };
6317
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6318
+ 401: {
6319
+ headers: {
6320
+ "X-Request-Id": components["headers"]["RequestId"];
6321
+ [name: string]: unknown;
6322
+ };
6323
+ content?: never;
6324
+ };
5862
6325
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5863
6326
  403: {
5864
6327
  headers: {
@@ -5894,6 +6357,15 @@ interface operations {
5894
6357
  };
5895
6358
  content?: never;
5896
6359
  };
6360
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
6361
+ 503: {
6362
+ headers: {
6363
+ "Retry-After": components["headers"]["Retry-After"];
6364
+ "X-Request-Id": components["headers"]["RequestId"];
6365
+ [name: string]: unknown;
6366
+ };
6367
+ content?: never;
6368
+ };
5897
6369
  };
5898
6370
  };
5899
6371
  ChangesController_list: {
@@ -5983,6 +6455,14 @@ interface operations {
5983
6455
  };
5984
6456
  content?: never;
5985
6457
  };
6458
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6459
+ 401: {
6460
+ headers: {
6461
+ "X-Request-Id": components["headers"]["RequestId"];
6462
+ [name: string]: unknown;
6463
+ };
6464
+ content?: never;
6465
+ };
5986
6466
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5987
6467
  403: {
5988
6468
  headers: {
@@ -6010,6 +6490,15 @@ interface operations {
6010
6490
  };
6011
6491
  content?: never;
6012
6492
  };
6493
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
6494
+ 503: {
6495
+ headers: {
6496
+ "Retry-After": components["headers"]["Retry-After"];
6497
+ "X-Request-Id": components["headers"]["RequestId"];
6498
+ [name: string]: unknown;
6499
+ };
6500
+ content?: never;
6501
+ };
6013
6502
  };
6014
6503
  };
6015
6504
  ChangesController_export: {
@@ -6095,6 +6584,14 @@ interface operations {
6095
6584
  };
6096
6585
  content?: never;
6097
6586
  };
6587
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6588
+ 401: {
6589
+ headers: {
6590
+ "X-Request-Id": components["headers"]["RequestId"];
6591
+ [name: string]: unknown;
6592
+ };
6593
+ content?: never;
6594
+ };
6098
6595
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6099
6596
  403: {
6100
6597
  headers: {
@@ -6122,6 +6619,15 @@ interface operations {
6122
6619
  };
6123
6620
  content?: never;
6124
6621
  };
6622
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
6623
+ 503: {
6624
+ headers: {
6625
+ "Retry-After": components["headers"]["Retry-After"];
6626
+ "X-Request-Id": components["headers"]["RequestId"];
6627
+ [name: string]: unknown;
6628
+ };
6629
+ content?: never;
6630
+ };
6125
6631
  };
6126
6632
  };
6127
6633
  ProjectConfigsController_list: {
@@ -6179,6 +6685,14 @@ interface operations {
6179
6685
  };
6180
6686
  content?: never;
6181
6687
  };
6688
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6689
+ 401: {
6690
+ headers: {
6691
+ "X-Request-Id": components["headers"]["RequestId"];
6692
+ [name: string]: unknown;
6693
+ };
6694
+ content?: never;
6695
+ };
6182
6696
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6183
6697
  403: {
6184
6698
  headers: {
@@ -6206,13 +6720,22 @@ interface operations {
6206
6720
  };
6207
6721
  content?: never;
6208
6722
  };
6723
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
6724
+ 503: {
6725
+ headers: {
6726
+ "Retry-After": components["headers"]["Retry-After"];
6727
+ "X-Request-Id": components["headers"]["RequestId"];
6728
+ [name: string]: unknown;
6729
+ };
6730
+ content?: never;
6731
+ };
6209
6732
  };
6210
6733
  };
6211
6734
  ProjectConfigsController_create: {
6212
6735
  parameters: {
6213
6736
  query?: never;
6214
6737
  header?: {
6215
- /** @description Idempotency key (1-256 characters, `[A-Za-z0-9_-:]`). A retry with the same key and body returns the first response for 24 h. */
6738
+ /** @description Idempotency key (1-256 characters, `[A-Za-z0-9._:-]`). A retry with the same key and body returns the first response for 24 h. */
6216
6739
  "Idempotency-Key"?: string;
6217
6740
  };
6218
6741
  path: {
@@ -6261,6 +6784,14 @@ interface operations {
6261
6784
  };
6262
6785
  content?: never;
6263
6786
  };
6787
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6788
+ 401: {
6789
+ headers: {
6790
+ "X-Request-Id": components["headers"]["RequestId"];
6791
+ [name: string]: unknown;
6792
+ };
6793
+ content?: never;
6794
+ };
6264
6795
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6265
6796
  403: {
6266
6797
  headers: {
@@ -6306,6 +6837,15 @@ interface operations {
6306
6837
  };
6307
6838
  content?: never;
6308
6839
  };
6840
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
6841
+ 503: {
6842
+ headers: {
6843
+ "Retry-After": components["headers"]["Retry-After"];
6844
+ "X-Request-Id": components["headers"]["RequestId"];
6845
+ [name: string]: unknown;
6846
+ };
6847
+ content?: never;
6848
+ };
6309
6849
  };
6310
6850
  };
6311
6851
  EnvironmentsController_list: {
@@ -6344,6 +6884,14 @@ interface operations {
6344
6884
  "application/json": components["schemas"]["EnvironmentListResponseDto"];
6345
6885
  };
6346
6886
  };
6887
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6888
+ 401: {
6889
+ headers: {
6890
+ "X-Request-Id": components["headers"]["RequestId"];
6891
+ [name: string]: unknown;
6892
+ };
6893
+ content?: never;
6894
+ };
6347
6895
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6348
6896
  403: {
6349
6897
  headers: {
@@ -6371,13 +6919,22 @@ interface operations {
6371
6919
  };
6372
6920
  content?: never;
6373
6921
  };
6922
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
6923
+ 503: {
6924
+ headers: {
6925
+ "Retry-After": components["headers"]["Retry-After"];
6926
+ "X-Request-Id": components["headers"]["RequestId"];
6927
+ [name: string]: unknown;
6928
+ };
6929
+ content?: never;
6930
+ };
6374
6931
  };
6375
6932
  };
6376
6933
  EnvironmentsController_create: {
6377
6934
  parameters: {
6378
6935
  query?: never;
6379
6936
  header?: {
6380
- /** @description Idempotency key (1-256 characters, `[A-Za-z0-9_-:]`). A retry with the same key and body returns the first response for 24 h. */
6937
+ /** @description Idempotency key (1-256 characters, `[A-Za-z0-9._:-]`). A retry with the same key and body returns the first response for 24 h. */
6381
6938
  "Idempotency-Key"?: string;
6382
6939
  };
6383
6940
  path: {
@@ -6426,6 +6983,14 @@ interface operations {
6426
6983
  };
6427
6984
  content?: never;
6428
6985
  };
6986
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6987
+ 401: {
6988
+ headers: {
6989
+ "X-Request-Id": components["headers"]["RequestId"];
6990
+ [name: string]: unknown;
6991
+ };
6992
+ content?: never;
6993
+ };
6429
6994
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6430
6995
  403: {
6431
6996
  headers: {
@@ -6471,6 +7036,15 @@ interface operations {
6471
7036
  };
6472
7037
  content?: never;
6473
7038
  };
7039
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
7040
+ 503: {
7041
+ headers: {
7042
+ "Retry-After": components["headers"]["Retry-After"];
7043
+ "X-Request-Id": components["headers"]["RequestId"];
7044
+ [name: string]: unknown;
7045
+ };
7046
+ content?: never;
7047
+ };
6474
7048
  };
6475
7049
  };
6476
7050
  EnvironmentsController_get: {
@@ -6514,6 +7088,14 @@ interface operations {
6514
7088
  "application/json": components["schemas"]["EnvironmentResponseDto"];
6515
7089
  };
6516
7090
  };
7091
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7092
+ 401: {
7093
+ headers: {
7094
+ "X-Request-Id": components["headers"]["RequestId"];
7095
+ [name: string]: unknown;
7096
+ };
7097
+ content?: never;
7098
+ };
6517
7099
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6518
7100
  403: {
6519
7101
  headers: {
@@ -6541,6 +7123,15 @@ interface operations {
6541
7123
  };
6542
7124
  content?: never;
6543
7125
  };
7126
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
7127
+ 503: {
7128
+ headers: {
7129
+ "Retry-After": components["headers"]["Retry-After"];
7130
+ "X-Request-Id": components["headers"]["RequestId"];
7131
+ [name: string]: unknown;
7132
+ };
7133
+ content?: never;
7134
+ };
6544
7135
  };
6545
7136
  };
6546
7137
  EnvironmentsController_delete: {
@@ -6588,6 +7179,14 @@ interface operations {
6588
7179
  };
6589
7180
  content?: never;
6590
7181
  };
7182
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7183
+ 401: {
7184
+ headers: {
7185
+ "X-Request-Id": components["headers"]["RequestId"];
7186
+ [name: string]: unknown;
7187
+ };
7188
+ content?: never;
7189
+ };
6591
7190
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6592
7191
  403: {
6593
7192
  headers: {
@@ -6623,6 +7222,15 @@ interface operations {
6623
7222
  };
6624
7223
  content?: never;
6625
7224
  };
7225
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
7226
+ 503: {
7227
+ headers: {
7228
+ "Retry-After": components["headers"]["Retry-After"];
7229
+ "X-Request-Id": components["headers"]["RequestId"];
7230
+ [name: string]: unknown;
7231
+ };
7232
+ content?: never;
7233
+ };
6626
7234
  };
6627
7235
  };
6628
7236
  EnvironmentsController_update: {
@@ -6678,6 +7286,14 @@ interface operations {
6678
7286
  };
6679
7287
  content?: never;
6680
7288
  };
7289
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7290
+ 401: {
7291
+ headers: {
7292
+ "X-Request-Id": components["headers"]["RequestId"];
7293
+ [name: string]: unknown;
7294
+ };
7295
+ content?: never;
7296
+ };
6681
7297
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6682
7298
  403: {
6683
7299
  headers: {
@@ -6705,6 +7321,15 @@ interface operations {
6705
7321
  };
6706
7322
  content?: never;
6707
7323
  };
7324
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
7325
+ 503: {
7326
+ headers: {
7327
+ "Retry-After": components["headers"]["Retry-After"];
7328
+ "X-Request-Id": components["headers"]["RequestId"];
7329
+ [name: string]: unknown;
7330
+ };
7331
+ content?: never;
7332
+ };
6708
7333
  };
6709
7334
  };
6710
7335
  ProjectSegmentsController_list: {
@@ -6762,6 +7387,14 @@ interface operations {
6762
7387
  };
6763
7388
  content?: never;
6764
7389
  };
7390
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7391
+ 401: {
7392
+ headers: {
7393
+ "X-Request-Id": components["headers"]["RequestId"];
7394
+ [name: string]: unknown;
7395
+ };
7396
+ content?: never;
7397
+ };
6765
7398
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6766
7399
  403: {
6767
7400
  headers: {
@@ -6789,13 +7422,22 @@ interface operations {
6789
7422
  };
6790
7423
  content?: never;
6791
7424
  };
7425
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
7426
+ 503: {
7427
+ headers: {
7428
+ "Retry-After": components["headers"]["Retry-After"];
7429
+ "X-Request-Id": components["headers"]["RequestId"];
7430
+ [name: string]: unknown;
7431
+ };
7432
+ content?: never;
7433
+ };
6792
7434
  };
6793
7435
  };
6794
7436
  ProjectSegmentsController_create: {
6795
7437
  parameters: {
6796
7438
  query?: never;
6797
7439
  header?: {
6798
- /** @description Idempotency key (1-256 characters, `[A-Za-z0-9_-:]`). A retry with the same key and body returns the first response for 24 h. */
7440
+ /** @description Idempotency key (1-256 characters, `[A-Za-z0-9._:-]`). A retry with the same key and body returns the first response for 24 h. */
6799
7441
  "Idempotency-Key"?: string;
6800
7442
  };
6801
7443
  path: {
@@ -6844,6 +7486,14 @@ interface operations {
6844
7486
  };
6845
7487
  content?: never;
6846
7488
  };
7489
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7490
+ 401: {
7491
+ headers: {
7492
+ "X-Request-Id": components["headers"]["RequestId"];
7493
+ [name: string]: unknown;
7494
+ };
7495
+ content?: never;
7496
+ };
6847
7497
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6848
7498
  403: {
6849
7499
  headers: {
@@ -6889,6 +7539,15 @@ interface operations {
6889
7539
  };
6890
7540
  content?: never;
6891
7541
  };
7542
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
7543
+ 503: {
7544
+ headers: {
7545
+ "Retry-After": components["headers"]["Retry-After"];
7546
+ "X-Request-Id": components["headers"]["RequestId"];
7547
+ [name: string]: unknown;
7548
+ };
7549
+ content?: never;
7550
+ };
6892
7551
  };
6893
7552
  };
6894
7553
  SegmentsController_get: {
@@ -6927,6 +7586,14 @@ interface operations {
6927
7586
  "application/json": components["schemas"]["SegmentDetailResponseDto"];
6928
7587
  };
6929
7588
  };
7589
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7590
+ 401: {
7591
+ headers: {
7592
+ "X-Request-Id": components["headers"]["RequestId"];
7593
+ [name: string]: unknown;
7594
+ };
7595
+ content?: never;
7596
+ };
6930
7597
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6931
7598
  403: {
6932
7599
  headers: {
@@ -6947,8 +7614,17 @@ interface operations {
6947
7614
  429: {
6948
7615
  headers: {
6949
7616
  "Retry-After": components["headers"]["Retry-After"];
6950
- "Retry-After-long": components["headers"]["Retry-After-long"];
6951
- "Retry-After-short": components["headers"]["Retry-After-short"];
7617
+ "Retry-After-long": components["headers"]["Retry-After-long"];
7618
+ "Retry-After-short": components["headers"]["Retry-After-short"];
7619
+ "X-Request-Id": components["headers"]["RequestId"];
7620
+ [name: string]: unknown;
7621
+ };
7622
+ content?: never;
7623
+ };
7624
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
7625
+ 503: {
7626
+ headers: {
7627
+ "Retry-After": components["headers"]["Retry-After"];
6952
7628
  "X-Request-Id": components["headers"]["RequestId"];
6953
7629
  [name: string]: unknown;
6954
7630
  };
@@ -6996,6 +7672,14 @@ interface operations {
6996
7672
  };
6997
7673
  content?: never;
6998
7674
  };
7675
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7676
+ 401: {
7677
+ headers: {
7678
+ "X-Request-Id": components["headers"]["RequestId"];
7679
+ [name: string]: unknown;
7680
+ };
7681
+ content?: never;
7682
+ };
6999
7683
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7000
7684
  403: {
7001
7685
  headers: {
@@ -7031,6 +7715,15 @@ interface operations {
7031
7715
  };
7032
7716
  content?: never;
7033
7717
  };
7718
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
7719
+ 503: {
7720
+ headers: {
7721
+ "Retry-After": components["headers"]["Retry-After"];
7722
+ "X-Request-Id": components["headers"]["RequestId"];
7723
+ [name: string]: unknown;
7724
+ };
7725
+ content?: never;
7726
+ };
7034
7727
  };
7035
7728
  };
7036
7729
  SegmentsController_update: {
@@ -7073,7 +7766,7 @@ interface operations {
7073
7766
  "application/json": components["schemas"]["SegmentDetailResponseDto"];
7074
7767
  };
7075
7768
  };
7076
- /** @description `VALIDATION_ERROR`: a field is invalid. */
7769
+ /** @description `VALIDATION_ERROR`: a field is invalid, an edit has no values, or both `conditions` and `condition_edits` were sent. */
7077
7770
  400: {
7078
7771
  headers: {
7079
7772
  "X-Request-Id": components["headers"]["RequestId"];
@@ -7081,6 +7774,14 @@ interface operations {
7081
7774
  };
7082
7775
  content?: never;
7083
7776
  };
7777
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7778
+ 401: {
7779
+ headers: {
7780
+ "X-Request-Id": components["headers"]["RequestId"];
7781
+ [name: string]: unknown;
7782
+ };
7783
+ content?: never;
7784
+ };
7084
7785
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). A segment used in a protected environment also needs `flags.protected.update` on it. */
7085
7786
  403: {
7086
7787
  headers: {
@@ -7124,6 +7825,15 @@ interface operations {
7124
7825
  };
7125
7826
  content?: never;
7126
7827
  };
7828
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
7829
+ 503: {
7830
+ headers: {
7831
+ "Retry-After": components["headers"]["Retry-After"];
7832
+ "X-Request-Id": components["headers"]["RequestId"];
7833
+ [name: string]: unknown;
7834
+ };
7835
+ content?: never;
7836
+ };
7127
7837
  };
7128
7838
  };
7129
7839
  SegmentsController_reveal: {
@@ -7162,6 +7872,14 @@ interface operations {
7162
7872
  "application/json": components["schemas"]["ConfidentialRevealResponseDto"];
7163
7873
  };
7164
7874
  };
7875
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7876
+ 401: {
7877
+ headers: {
7878
+ "X-Request-Id": components["headers"]["RequestId"];
7879
+ [name: string]: unknown;
7880
+ };
7881
+ content?: never;
7882
+ };
7165
7883
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7166
7884
  403: {
7167
7885
  headers: {
@@ -7197,6 +7915,15 @@ interface operations {
7197
7915
  };
7198
7916
  content?: never;
7199
7917
  };
7918
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
7919
+ 503: {
7920
+ headers: {
7921
+ "Retry-After": components["headers"]["Retry-After"];
7922
+ "X-Request-Id": components["headers"]["RequestId"];
7923
+ [name: string]: unknown;
7924
+ };
7925
+ content?: never;
7926
+ };
7200
7927
  };
7201
7928
  };
7202
7929
  SettingsController_get: {
@@ -7235,6 +7962,14 @@ interface operations {
7235
7962
  "application/json": components["schemas"]["SettingDetailResponseDto"];
7236
7963
  };
7237
7964
  };
7965
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7966
+ 401: {
7967
+ headers: {
7968
+ "X-Request-Id": components["headers"]["RequestId"];
7969
+ [name: string]: unknown;
7970
+ };
7971
+ content?: never;
7972
+ };
7238
7973
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7239
7974
  403: {
7240
7975
  headers: {
@@ -7262,6 +7997,15 @@ interface operations {
7262
7997
  };
7263
7998
  content?: never;
7264
7999
  };
8000
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
8001
+ 503: {
8002
+ headers: {
8003
+ "Retry-After": components["headers"]["Retry-After"];
8004
+ "X-Request-Id": components["headers"]["RequestId"];
8005
+ [name: string]: unknown;
8006
+ };
8007
+ content?: never;
8008
+ };
7265
8009
  };
7266
8010
  };
7267
8011
  SettingsController_delete: {
@@ -7304,6 +8048,14 @@ interface operations {
7304
8048
  };
7305
8049
  content?: never;
7306
8050
  };
8051
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8052
+ 401: {
8053
+ headers: {
8054
+ "X-Request-Id": components["headers"]["RequestId"];
8055
+ [name: string]: unknown;
8056
+ };
8057
+ content?: never;
8058
+ };
7307
8059
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7308
8060
  403: {
7309
8061
  headers: {
@@ -7339,6 +8091,15 @@ interface operations {
7339
8091
  };
7340
8092
  content?: never;
7341
8093
  };
8094
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
8095
+ 503: {
8096
+ headers: {
8097
+ "Retry-After": components["headers"]["Retry-After"];
8098
+ "X-Request-Id": components["headers"]["RequestId"];
8099
+ [name: string]: unknown;
8100
+ };
8101
+ content?: never;
8102
+ };
7342
8103
  };
7343
8104
  };
7344
8105
  SettingsController_update: {
@@ -7389,6 +8150,14 @@ interface operations {
7389
8150
  };
7390
8151
  content?: never;
7391
8152
  };
8153
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8154
+ 401: {
8155
+ headers: {
8156
+ "X-Request-Id": components["headers"]["RequestId"];
8157
+ [name: string]: unknown;
8158
+ };
8159
+ content?: never;
8160
+ };
7392
8161
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7393
8162
  403: {
7394
8163
  headers: {
@@ -7432,9 +8201,10 @@ interface operations {
7432
8201
  };
7433
8202
  content?: never;
7434
8203
  };
7435
- /** @description `SERVICE_UNAVAILABLE`: the member lookup for `owner_id` is unavailable; retry. */
8204
+ /** @description `SERVICE_UNAVAILABLE`: the member lookup for `owner_id` is unavailable; retry. Or `MANAGEMENT_UNAVAILABLE`: the whole management API is temporarily unavailable, for example while its database is unreachable; wait `Retry-After` seconds and retry. */
7436
8205
  503: {
7437
8206
  headers: {
8207
+ "Retry-After": components["headers"]["Retry-After"];
7438
8208
  "X-Request-Id": components["headers"]["RequestId"];
7439
8209
  [name: string]: unknown;
7440
8210
  };
@@ -7483,6 +8253,14 @@ interface operations {
7483
8253
  "application/json": components["schemas"]["SettingValueResponseDto"];
7484
8254
  };
7485
8255
  };
8256
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8257
+ 401: {
8258
+ headers: {
8259
+ "X-Request-Id": components["headers"]["RequestId"];
8260
+ [name: string]: unknown;
8261
+ };
8262
+ content?: never;
8263
+ };
7486
8264
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7487
8265
  403: {
7488
8266
  headers: {
@@ -7510,6 +8288,15 @@ interface operations {
7510
8288
  };
7511
8289
  content?: never;
7512
8290
  };
8291
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
8292
+ 503: {
8293
+ headers: {
8294
+ "Retry-After": components["headers"]["Retry-After"];
8295
+ "X-Request-Id": components["headers"]["RequestId"];
8296
+ [name: string]: unknown;
8297
+ };
8298
+ content?: never;
8299
+ };
7513
8300
  };
7514
8301
  };
7515
8302
  SettingsController_putValue: {
@@ -7567,6 +8354,14 @@ interface operations {
7567
8354
  };
7568
8355
  content?: never;
7569
8356
  };
8357
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8358
+ 401: {
8359
+ headers: {
8360
+ "X-Request-Id": components["headers"]["RequestId"];
8361
+ [name: string]: unknown;
8362
+ };
8363
+ content?: never;
8364
+ };
7570
8365
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). Value writes need `flags.value.update` on the environment and the setting, plus `flags.protected.update` in a protected environment. */
7571
8366
  403: {
7572
8367
  headers: {
@@ -7610,6 +8405,15 @@ interface operations {
7610
8405
  };
7611
8406
  content?: never;
7612
8407
  };
8408
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
8409
+ 503: {
8410
+ headers: {
8411
+ "Retry-After": components["headers"]["Retry-After"];
8412
+ "X-Request-Id": components["headers"]["RequestId"];
8413
+ [name: string]: unknown;
8414
+ };
8415
+ content?: never;
8416
+ };
7613
8417
  };
7614
8418
  };
7615
8419
  SettingsController_patchValue: {
@@ -7659,7 +8463,7 @@ interface operations {
7659
8463
  "application/json": components["schemas"]["SettingValueResponseDto"];
7660
8464
  };
7661
8465
  };
7662
- /** @description `VALIDATION_ERROR`: nothing to change, or `version` is missing. */
8466
+ /** @description `VALIDATION_ERROR`: nothing to change, `version` is missing, an edit has no values, or `rule_edits` sent with `clear_rules`. */
7663
8467
  400: {
7664
8468
  headers: {
7665
8469
  "X-Request-Id": components["headers"]["RequestId"];
@@ -7667,6 +8471,14 @@ interface operations {
7667
8471
  };
7668
8472
  content?: never;
7669
8473
  };
8474
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8475
+ 401: {
8476
+ headers: {
8477
+ "X-Request-Id": components["headers"]["RequestId"];
8478
+ [name: string]: unknown;
8479
+ };
8480
+ content?: never;
8481
+ };
7670
8482
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). Value writes need `flags.value.update` on the environment and the setting, plus `flags.protected.update` in a protected environment. */
7671
8483
  403: {
7672
8484
  headers: {
@@ -7710,6 +8522,15 @@ interface operations {
7710
8522
  };
7711
8523
  content?: never;
7712
8524
  };
8525
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
8526
+ 503: {
8527
+ headers: {
8528
+ "Retry-After": components["headers"]["Retry-After"];
8529
+ "X-Request-Id": components["headers"]["RequestId"];
8530
+ [name: string]: unknown;
8531
+ };
8532
+ content?: never;
8533
+ };
7713
8534
  };
7714
8535
  };
7715
8536
  SettingsController_revealValue: {
@@ -7753,6 +8574,14 @@ interface operations {
7753
8574
  "application/json": components["schemas"]["ConfidentialRevealResponseDto"];
7754
8575
  };
7755
8576
  };
8577
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8578
+ 401: {
8579
+ headers: {
8580
+ "X-Request-Id": components["headers"]["RequestId"];
8581
+ [name: string]: unknown;
8582
+ };
8583
+ content?: never;
8584
+ };
7756
8585
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7757
8586
  403: {
7758
8587
  headers: {
@@ -7788,6 +8617,15 @@ interface operations {
7788
8617
  };
7789
8618
  content?: never;
7790
8619
  };
8620
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
8621
+ 503: {
8622
+ headers: {
8623
+ "Retry-After": components["headers"]["Retry-After"];
8624
+ "X-Request-Id": components["headers"]["RequestId"];
8625
+ [name: string]: unknown;
8626
+ };
8627
+ content?: never;
8628
+ };
7791
8629
  };
7792
8630
  };
7793
8631
  StatsController_get: {
@@ -7821,6 +8659,14 @@ interface operations {
7821
8659
  "application/json": components["schemas"]["FlagsStatsResponseDto"];
7822
8660
  };
7823
8661
  };
8662
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8663
+ 401: {
8664
+ headers: {
8665
+ "X-Request-Id": components["headers"]["RequestId"];
8666
+ [name: string]: unknown;
8667
+ };
8668
+ content?: never;
8669
+ };
7824
8670
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7825
8671
  403: {
7826
8672
  headers: {
@@ -7840,6 +8686,15 @@ interface operations {
7840
8686
  };
7841
8687
  content?: never;
7842
8688
  };
8689
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
8690
+ 503: {
8691
+ headers: {
8692
+ "Retry-After": components["headers"]["Retry-After"];
8693
+ "X-Request-Id": components["headers"]["RequestId"];
8694
+ [name: string]: unknown;
8695
+ };
8696
+ content?: never;
8697
+ };
7843
8698
  };
7844
8699
  };
7845
8700
  WebhooksController_flags_workspace_listEndpoints: {
@@ -7907,13 +8762,22 @@ interface operations {
7907
8762
  };
7908
8763
  content?: never;
7909
8764
  };
8765
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
8766
+ 503: {
8767
+ headers: {
8768
+ "Retry-After": components["headers"]["Retry-After"];
8769
+ "X-Request-Id": components["headers"]["RequestId"];
8770
+ [name: string]: unknown;
8771
+ };
8772
+ content?: never;
8773
+ };
7910
8774
  };
7911
8775
  };
7912
8776
  WebhooksController_flags_workspace_createEndpoint: {
7913
8777
  parameters: {
7914
8778
  query?: never;
7915
8779
  header?: {
7916
- /** @description Opaque client-generated string (1-256 chars, `[A-Za-z0-9_-:]`) that makes a retry of this request safe for 24 hours. The same key with a different body returns 409 `IDEMPOTENCY_KEY_REUSE`. */
8780
+ /** @description Opaque client-generated string (1-256 chars, `[A-Za-z0-9._:-]`) that makes a retry of this request safe for 24 hours. The same key with a different body returns 409 `IDEMPOTENCY_KEY_REUSE`. */
7917
8781
  "Idempotency-Key"?: string;
7918
8782
  };
7919
8783
  path: {
@@ -8001,6 +8865,15 @@ interface operations {
8001
8865
  };
8002
8866
  content?: never;
8003
8867
  };
8868
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
8869
+ 503: {
8870
+ headers: {
8871
+ "Retry-After": components["headers"]["Retry-After"];
8872
+ "X-Request-Id": components["headers"]["RequestId"];
8873
+ [name: string]: unknown;
8874
+ };
8875
+ content?: never;
8876
+ };
8004
8877
  };
8005
8878
  };
8006
8879
  WebhooksController_flags_workspace_getEndpoint: {
@@ -8081,6 +8954,15 @@ interface operations {
8081
8954
  };
8082
8955
  content?: never;
8083
8956
  };
8957
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
8958
+ 503: {
8959
+ headers: {
8960
+ "Retry-After": components["headers"]["Retry-After"];
8961
+ "X-Request-Id": components["headers"]["RequestId"];
8962
+ [name: string]: unknown;
8963
+ };
8964
+ content?: never;
8965
+ };
8084
8966
  };
8085
8967
  };
8086
8968
  WebhooksController_flags_workspace_deleteEndpoint: {
@@ -8160,13 +9042,22 @@ interface operations {
8160
9042
  };
8161
9043
  content?: never;
8162
9044
  };
9045
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
9046
+ 503: {
9047
+ headers: {
9048
+ "Retry-After": components["headers"]["Retry-After"];
9049
+ "X-Request-Id": components["headers"]["RequestId"];
9050
+ [name: string]: unknown;
9051
+ };
9052
+ content?: never;
9053
+ };
8163
9054
  };
8164
9055
  };
8165
9056
  WebhooksController_flags_workspace_updateEndpoint: {
8166
9057
  parameters: {
8167
9058
  query?: never;
8168
9059
  header?: {
8169
- /** @description Opaque client-generated string (1-256 chars, `[A-Za-z0-9_-:]`) that makes a retry of this request safe for 24 hours. The same key with a different body returns 409 `IDEMPOTENCY_KEY_REUSE`. */
9060
+ /** @description Opaque client-generated string (1-256 chars, `[A-Za-z0-9._:-]`) that makes a retry of this request safe for 24 hours. The same key with a different body returns 409 `IDEMPOTENCY_KEY_REUSE`. */
8170
9061
  "Idempotency-Key"?: string;
8171
9062
  };
8172
9063
  path: {
@@ -8267,13 +9158,22 @@ interface operations {
8267
9158
  };
8268
9159
  content?: never;
8269
9160
  };
9161
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
9162
+ 503: {
9163
+ headers: {
9164
+ "Retry-After": components["headers"]["Retry-After"];
9165
+ "X-Request-Id": components["headers"]["RequestId"];
9166
+ [name: string]: unknown;
9167
+ };
9168
+ content?: never;
9169
+ };
8270
9170
  };
8271
9171
  };
8272
9172
  WebhooksController_flags_workspace_rotateSecret: {
8273
9173
  parameters: {
8274
9174
  query?: never;
8275
9175
  header?: {
8276
- /** @description Opaque client-generated string (1-256 chars, `[A-Za-z0-9_-:]`) that makes a retry of this request safe for 24 hours. The same key with a different body returns 409 `IDEMPOTENCY_KEY_REUSE`. */
9176
+ /** @description Opaque client-generated string (1-256 chars, `[A-Za-z0-9._:-]`) that makes a retry of this request safe for 24 hours. The same key with a different body returns 409 `IDEMPOTENCY_KEY_REUSE`. */
8277
9177
  "Idempotency-Key"?: string;
8278
9178
  };
8279
9179
  path: {
@@ -8366,13 +9266,22 @@ interface operations {
8366
9266
  };
8367
9267
  content?: never;
8368
9268
  };
9269
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
9270
+ 503: {
9271
+ headers: {
9272
+ "Retry-After": components["headers"]["Retry-After"];
9273
+ "X-Request-Id": components["headers"]["RequestId"];
9274
+ [name: string]: unknown;
9275
+ };
9276
+ content?: never;
9277
+ };
8369
9278
  };
8370
9279
  };
8371
9280
  WebhooksController_flags_workspace_sendTest: {
8372
9281
  parameters: {
8373
9282
  query?: never;
8374
9283
  header?: {
8375
- /** @description Opaque client-generated string (1-256 chars, `[A-Za-z0-9_-:]`) that makes a retry of this request safe for 24 hours. The same key with a different body returns 409 `IDEMPOTENCY_KEY_REUSE`. */
9284
+ /** @description Opaque client-generated string (1-256 chars, `[A-Za-z0-9._:-]`) that makes a retry of this request safe for 24 hours. The same key with a different body returns 409 `IDEMPOTENCY_KEY_REUSE`. */
8376
9285
  "Idempotency-Key"?: string;
8377
9286
  };
8378
9287
  path: {
@@ -8466,6 +9375,15 @@ interface operations {
8466
9375
  };
8467
9376
  content?: never;
8468
9377
  };
9378
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
9379
+ 503: {
9380
+ headers: {
9381
+ "Retry-After": components["headers"]["Retry-After"];
9382
+ "X-Request-Id": components["headers"]["RequestId"];
9383
+ [name: string]: unknown;
9384
+ };
9385
+ content?: never;
9386
+ };
8469
9387
  };
8470
9388
  };
8471
9389
  WebhooksController_flags_workspace_listEventTypes: {
@@ -8525,6 +9443,15 @@ interface operations {
8525
9443
  };
8526
9444
  content?: never;
8527
9445
  };
9446
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
9447
+ 503: {
9448
+ headers: {
9449
+ "Retry-After": components["headers"]["Retry-After"];
9450
+ "X-Request-Id": components["headers"]["RequestId"];
9451
+ [name: string]: unknown;
9452
+ };
9453
+ content?: never;
9454
+ };
8528
9455
  };
8529
9456
  };
8530
9457
  WebhooksController_flags_workspace_listEvents: {
@@ -8645,6 +9572,15 @@ interface operations {
8645
9572
  };
8646
9573
  content?: never;
8647
9574
  };
9575
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
9576
+ 503: {
9577
+ headers: {
9578
+ "Retry-After": components["headers"]["Retry-After"];
9579
+ "X-Request-Id": components["headers"]["RequestId"];
9580
+ [name: string]: unknown;
9581
+ };
9582
+ content?: never;
9583
+ };
8648
9584
  };
8649
9585
  };
8650
9586
  WebhooksController_flags_workspace_getEvent: {
@@ -8722,6 +9658,15 @@ interface operations {
8722
9658
  };
8723
9659
  content?: never;
8724
9660
  };
9661
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
9662
+ 503: {
9663
+ headers: {
9664
+ "Retry-After": components["headers"]["Retry-After"];
9665
+ "X-Request-Id": components["headers"]["RequestId"];
9666
+ [name: string]: unknown;
9667
+ };
9668
+ content?: never;
9669
+ };
8725
9670
  };
8726
9671
  };
8727
9672
  WebhooksController_flags_workspace_replay: {
@@ -8734,7 +9679,7 @@ interface operations {
8734
9679
  endpoint_id?: string;
8735
9680
  };
8736
9681
  header?: {
8737
- /** @description Opaque client-generated string (1-256 chars, `[A-Za-z0-9_-:]`) that makes a retry of this request safe for 24 hours. The same key with a different body returns 409 `IDEMPOTENCY_KEY_REUSE`. */
9682
+ /** @description Opaque client-generated string (1-256 chars, `[A-Za-z0-9._:-]`) that makes a retry of this request safe for 24 hours. The same key with a different body returns 409 `IDEMPOTENCY_KEY_REUSE`. */
8738
9683
  "Idempotency-Key"?: string;
8739
9684
  };
8740
9685
  path: {
@@ -8820,6 +9765,15 @@ interface operations {
8820
9765
  };
8821
9766
  content?: never;
8822
9767
  };
9768
+ /** @description The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving. */
9769
+ 503: {
9770
+ headers: {
9771
+ "Retry-After": components["headers"]["Retry-After"];
9772
+ "X-Request-Id": components["headers"]["RequestId"];
9773
+ [name: string]: unknown;
9774
+ };
9775
+ content?: never;
9776
+ };
8823
9777
  };
8824
9778
  };
8825
9779
  }
@@ -8857,7 +9811,7 @@ declare const FlagsEvaluationReason: {
8857
9811
  };
8858
9812
  type FlagsEvaluationWarningCode = components["schemas"]["FlagsEvaluationWarningCode"];
8859
9813
  declare const FlagsEvaluationWarningCode: {
8860
- values: readonly ["missing_user", "missing_attribute", "invalid_attribute", "unknown_comparator", "missing_percentage_attribute"];
9814
+ values: readonly ["missing_user", "missing_attribute", "invalid_attribute", "unknown_comparator", "missing_percentage_attribute", "iso_date_converted"];
8861
9815
  };
8862
9816
  type FlagsHistoryExportFormat = components["schemas"]["FlagsHistoryExportFormat"];
8863
9817
  declare const FlagsHistoryExportFormat: {
@@ -9246,9 +10200,11 @@ declare class ChangesResource extends APIResource {
9246
10200
  *
9247
10201
  * @param changeId - Id of the change.
9248
10202
  * @param options - Per-request options.
10203
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9249
10204
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9250
10205
  * @throws {NotFoundError} 404 NOT_FOUND, CHANGE_NOT_FOUND: `CHANGE_NOT_FOUND`: no such change in this workspace (or it was pruned).
9251
10206
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10207
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9252
10208
  * @see GET /v1/workspaces/{workspace_id}/changes/{change_id}
9253
10209
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-changes-change-id
9254
10210
  * @example
@@ -9266,11 +10222,13 @@ declare class ChangesResource extends APIResource {
9266
10222
  * @param params - `Flags.ChangeRevertParams`.
9267
10223
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9268
10224
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: `version` is missing (value and segment restores) or invalid.
10225
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9269
10226
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). A restore needs the actions of the original edit too.
9270
10227
  * @throws {NotFoundError} 404 NOT_FOUND, CHANGE_NOT_FOUND, SETTING_NOT_FOUND, SEGMENT_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `CHANGE_NOT_FOUND`; `SETTING_NOT_FOUND`, `SEGMENT_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND` when the entity was deleted since.
9271
10228
  * @throws {ConflictError} 409 CONFLICT, VERSION_CONFLICT, KEY_ALREADY_EXISTS, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: `VERSION_CONFLICT`: the entity changed since you read it (`details.current_version`), or the setting no longer matches this change. `KEY_ALREADY_EXISTS`: the restored key is taken. Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
9272
10229
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, REVERT_NOT_SUPPORTED, NOTHING_TO_RESTORE, INVALID_VALUE, INVALID_TARGETING, SEGMENT_NOT_FOUND, PREREQUISITE_NOT_FOUND, PREREQUISITE_TYPE_MISMATCH, CIRCULAR_PREREQUISITE, CONFIDENTIAL_LIST_NOT_EDITABLE, LIMIT_EXCEEDED, NOTE_REQUIRED, CONFIG_TOO_LARGE, OWNER_NOT_A_MEMBER: `REVERT_NOT_SUPPORTED`: this kind of change cannot be restored. `NOTHING_TO_RESTORE`: it already matches the version before this change. The restored or copied targeting is refused by the normal write checks: `INVALID_VALUE`, `INVALID_TARGETING`, `SEGMENT_NOT_FOUND` (a segment it used was deleted), `PREREQUISITE_NOT_FOUND`, `PREREQUISITE_TYPE_MISMATCH`, `CIRCULAR_PREREQUISITE`, `CONFIDENTIAL_LIST_NOT_EDITABLE`, `LIMIT_EXCEEDED`, `NOTE_REQUIRED` (the environment requires a `note`), `CONFIG_TOO_LARGE`, or `OWNER_NOT_A_MEMBER` (a restored owner left the workspace).
9273
10230
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10231
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9274
10232
  * @see POST /v1/workspaces/{workspace_id}/changes/{change_id}/revert
9275
10233
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-changes-change-id-revert
9276
10234
  * @example
@@ -9292,9 +10250,11 @@ declare class ConfigsEnvironmentsRevisionsResource extends APIResource {
9292
10250
  * @param params - `Flags.ConfigEnvironmentRevisionListParams`.
9293
10251
  * @param options - Per-request options.
9294
10252
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad cursor or `limit`.
10253
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9295
10254
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9296
10255
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `CONFIG_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`: no such config in this workspace, or the environment is not one of its project.
9297
10256
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10257
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9298
10258
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/revisions
9299
10259
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-revisions
9300
10260
  * @example
@@ -9316,9 +10276,11 @@ declare class ConfigsEnvironmentsRevisionsResource extends APIResource {
9316
10276
  * @param revision - The revision number.
9317
10277
  * @param options - Per-request options.
9318
10278
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: `revision` is not a positive integer.
10279
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9319
10280
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9320
10281
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND, ENVIRONMENT_NOT_FOUND, REVISION_NOT_FOUND: `CONFIG_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`: no such config in this workspace, or the environment is not one of its project. `REVISION_NOT_FOUND`: no such revision (never published, or pruned).
9321
10282
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10283
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9322
10284
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/revisions/{revision}
9323
10285
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-revisions-revision
9324
10286
  * @example
@@ -9338,9 +10300,11 @@ declare class ConfigsEnvironmentsSdkKeysResource extends APIResource {
9338
10300
  * @param configId - Id of the config.
9339
10301
  * @param environmentId - Id of an environment of the same project.
9340
10302
  * @param options - Per-request options.
10303
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9341
10304
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9342
10305
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND, ENVIRONMENT_NOT_FOUND, SDK_KEY_NOT_FOUND: `CONFIG_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`: no such config in this workspace, or the environment is not one of its project. `SDK_KEY_NOT_FOUND`: there is no secondary key.
9343
10306
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10307
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9344
10308
  * @see DELETE /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/sdk-keys/secondary
9345
10309
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-sdk-keys-secondary
9346
10310
  * @example
@@ -9357,9 +10321,11 @@ declare class ConfigsEnvironmentsSdkKeysResource extends APIResource {
9357
10321
  * @param configId - Id of the config.
9358
10322
  * @param environmentId - Id of an environment of the same project.
9359
10323
  * @param options - Per-request options.
10324
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9360
10325
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9361
10326
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `CONFIG_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`: no such config in this workspace, or the environment is not one of its project.
9362
10327
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10328
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9363
10329
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/sdk-keys
9364
10330
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-sdk-keys
9365
10331
  * @example
@@ -9376,9 +10342,11 @@ declare class ConfigsEnvironmentsSdkKeysResource extends APIResource {
9376
10342
  * @param configId - Id of the config.
9377
10343
  * @param environmentId - Id of an environment of the same project.
9378
10344
  * @param options - Per-request options.
10345
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9379
10346
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9380
10347
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `CONFIG_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`: no such config in this workspace, or the environment is not one of its project.
9381
10348
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10349
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9382
10350
  * @see POST /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/sdk-keys/reveal
9383
10351
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-sdk-keys-reveal
9384
10352
  * @example
@@ -9397,10 +10365,12 @@ declare class ConfigsEnvironmentsSdkKeysResource extends APIResource {
9397
10365
  * @param params - `Flags.ConfigEnvironmentSdkKeyRotateParams`.
9398
10366
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9399
10367
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: `grace_hours` is not an integer from 0 to 168, or `note` is too long.
10368
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9400
10369
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9401
10370
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `CONFIG_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`: no such config in this workspace, or the environment is not one of its project.
9402
10371
  * @throws {ConflictError} 409 CONFLICT, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
9403
10372
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10373
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9404
10374
  * @see POST /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/sdk-keys/rotate
9405
10375
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-sdk-keys-rotate
9406
10376
  * @example
@@ -9422,9 +10392,11 @@ declare class ConfigsEnvironmentsValuesResource extends APIResource {
9422
10392
  * @param params - `Flags.ConfigEnvironmentValueListParams`.
9423
10393
  * @param options - Per-request options.
9424
10394
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad cursor, `limit` or `include`.
10395
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9425
10396
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9426
10397
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `CONFIG_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND` (not an environment of the config's project).
9427
10398
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10399
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9428
10400
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/values
9429
10401
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-values
9430
10402
  * @example
@@ -9453,11 +10425,13 @@ declare class ConfigsEnvironmentsResource extends APIResource {
9453
10425
  * @param params - `Flags.ConfigEnvironmentCopyParams`.
9454
10426
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9455
10427
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: neither or both of `setting_ids` / `all_differing`, the source is the target, or a bad `versions` entry.
10428
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9456
10429
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). Copies need `flags.value.update` on the environment and every setting, and `flags.protected.update` into a protected environment.
9457
10430
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND, ENVIRONMENT_NOT_FOUND, SETTING_NOT_FOUND: `CONFIG_NOT_FOUND`, `ENVIRONMENT_NOT_FOUND` (target or source is not of this project) or `SETTING_NOT_FOUND`.
9458
10431
  * @throws {ConflictError} 409 CONFLICT, VERSION_CONFLICT, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: `VERSION_CONFLICT`: a setting changed in the target since you read it, or has no entry in `versions` (`details.conflicts[]`: `setting_id`, `key`, `current_version`, `sent_version`); nothing was copied. Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
9459
10432
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, INVALID_VALUE, INVALID_TARGETING, SEGMENT_NOT_FOUND, PREREQUISITE_NOT_FOUND, PREREQUISITE_TYPE_MISMATCH, CIRCULAR_PREREQUISITE, CONFIDENTIAL_LIST_NOT_EDITABLE, LIMIT_EXCEEDED, NOTE_REQUIRED, CONFIG_TOO_LARGE, OWNER_NOT_A_MEMBER: The restored or copied targeting is refused by the normal write checks: `INVALID_VALUE`, `INVALID_TARGETING`, `SEGMENT_NOT_FOUND` (a segment it used was deleted), `PREREQUISITE_NOT_FOUND`, `PREREQUISITE_TYPE_MISMATCH`, `CIRCULAR_PREREQUISITE`, `CONFIDENTIAL_LIST_NOT_EDITABLE`, `LIMIT_EXCEEDED`, `NOTE_REQUIRED` (the environment requires a `note`), `CONFIG_TOO_LARGE`, or `OWNER_NOT_A_MEMBER` (a restored owner left the workspace).
9460
10433
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10434
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9461
10435
  * @see POST /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/copy
9462
10436
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-copy
9463
10437
  * @example
@@ -9479,10 +10453,12 @@ declare class ConfigsEnvironmentsResource extends APIResource {
9479
10453
  * @param params - `Flags.ConfigEnvironmentEvaluateParams`.
9480
10454
  * @param options - Per-request options.
9481
10455
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: `user` is not an object or null, it has more than 200 attributes, more than 200 `keys`, or a bad `revision`.
10456
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9482
10457
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9483
10458
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND, ENVIRONMENT_NOT_FOUND, REVISION_NOT_FOUND: `CONFIG_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`: no such config in this workspace, or the environment is not one of its project. `REVISION_NOT_FOUND`: the requested revision was pruned or never published.
9484
10459
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, EVALUATION_BUDGET_EXCEEDED, INVALID_TARGETING: `EVALUATION_BUDGET_EXCEEDED`: the evaluation ran over 250 ms; ask for fewer keys. `INVALID_TARGETING`: the stored revision is not a config the engine accepts.
9485
10460
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10461
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9486
10462
  * @see POST /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/evaluate
9487
10463
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-evaluate
9488
10464
  * @example
@@ -9503,12 +10479,13 @@ declare class ConfigsSettingsResource extends APIResource {
9503
10479
  * @param params - `Flags.ConfigSettingsCreateParams`.
9504
10480
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9505
10481
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is missing or invalid.
10482
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9506
10483
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9507
10484
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND: `CONFIG_NOT_FOUND`: no such config in this workspace.
9508
10485
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: `KEY_ALREADY_EXISTS`: the config already has a setting with this key. Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
9509
10486
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, INVALID_VALUE, LIMIT_EXCEEDED, OWNER_NOT_A_MEMBER, NOTE_REQUIRED, CONFIG_TOO_LARGE: `INVALID_VALUE`: `initial_value` does not match the type; `LIMIT_EXCEEDED`: the config has the maximum number of settings; `OWNER_NOT_A_MEMBER`: `owner_id` is not a workspace member; `NOTE_REQUIRED`. Publishing: `CONFIG_TOO_LARGE` (the rendered config would exceed 1 MiB; `details.size_bytes`, `max_bytes`) or `LIMIT_EXCEEDED` with `details.limit: comparison_values_per_config` (over 20,000 comparison values in the config); the write is not applied.
9510
10487
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
9511
- * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE: `SERVICE_UNAVAILABLE`: the member lookup for `owner_id` is unavailable; retry.
10488
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: `SERVICE_UNAVAILABLE`: the member lookup for `owner_id` is unavailable; retry. Or `MANAGEMENT_UNAVAILABLE`: the whole management API is temporarily unavailable, for example while its database is unreachable; wait `Retry-After` seconds and retry.
9512
10489
  * @see POST /v1/workspaces/{workspace_id}/configs/{config_id}/settings
9513
10490
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-configs-config-id-settings
9514
10491
  * @example
@@ -9526,9 +10503,11 @@ declare class ConfigsSettingsResource extends APIResource {
9526
10503
  * @param params - `Flags.ConfigSettingsListParams`.
9527
10504
  * @param options - Per-request options.
9528
10505
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad filter, cursor or `limit`.
10506
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9529
10507
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9530
10508
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND: `CONFIG_NOT_FOUND`: no such config in this workspace.
9531
10509
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10510
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9532
10511
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}/settings
9533
10512
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id-settings
9534
10513
  * @example
@@ -9555,9 +10534,11 @@ declare class ConfigsResource extends APIResource {
9555
10534
  * @param params - `Flags.ConfigCompareParams`.
9556
10535
  * @param options - Per-request options.
9557
10536
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: `environment_ids` is not 2-5 environment ids.
10537
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9558
10538
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9559
10539
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `CONFIG_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`.
9560
10540
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10541
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9561
10542
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}/compare
9562
10543
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id-compare
9563
10544
  * @example
@@ -9578,9 +10559,11 @@ declare class ConfigsResource extends APIResource {
9578
10559
  * @param configId - Id of the config.
9579
10560
  * @param params - `Flags.ConfigDeleteParams`.
9580
10561
  * @param options - Per-request options.
10562
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9581
10563
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9582
10564
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND: `CONFIG_NOT_FOUND`: no such config in this workspace.
9583
10565
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10566
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9584
10567
  * @see DELETE /v1/workspaces/{workspace_id}/configs/{config_id}
9585
10568
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-configs-config-id
9586
10569
  * @example
@@ -9594,9 +10577,11 @@ declare class ConfigsResource extends APIResource {
9594
10577
  *
9595
10578
  * @param configId - Id of the config.
9596
10579
  * @param options - Per-request options.
10580
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9597
10581
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9598
10582
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND: `CONFIG_NOT_FOUND`: no such config in this workspace.
9599
10583
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10584
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9600
10585
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}
9601
10586
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id
9602
10587
  * @example
@@ -9614,10 +10599,12 @@ declare class ConfigsResource extends APIResource {
9614
10599
  * @param params - `Flags.ConfigUpdateParams`.
9615
10600
  * @param options - Per-request options.
9616
10601
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is invalid.
10602
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9617
10603
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9618
10604
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND: `CONFIG_NOT_FOUND`: no such config in this workspace.
9619
10605
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS: `KEY_ALREADY_EXISTS`: the project already has a config with this key.
9620
10606
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10607
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9621
10608
  * @see PATCH /v1/workspaces/{workspace_id}/configs/{config_id}
9622
10609
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-configs-config-id
9623
10610
  * @example
@@ -9637,12 +10624,14 @@ declare class ImportsResource extends APIResource {
9637
10624
  * @param params - `Flags.ImportCreateParams`.
9638
10625
  * @param options - Per-request options.
9639
10626
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is missing or invalid (`source` must be `configcat`, `configcat_product_id` a uuid).
10627
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9640
10628
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9641
10629
  * @throws {NotFoundError} 404 NOT_FOUND, IMPORT_SOURCE_NOT_FOUND: `IMPORT_SOURCE_NOT_FOUND`: the ConfigCat product does not exist, or the credentials cannot see it.
9642
10630
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS: `KEY_ALREADY_EXISTS`: a project with the target name already exists (pass `target_project_name`).
9643
10631
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, IMPORT_CREDENTIALS_INVALID, IMPORT_UNSUPPORTED, IMPORT_EXCEEDS_LIMITS: `IMPORT_CREDENTIALS_INVALID`: ConfigCat rejected the credentials. `IMPORT_UNSUPPORTED`: a real run while the report lists unsupported items (`details.items`); send `skip_unsupported: true` to import without them. `IMPORT_EXCEEDS_LIMITS`: the product is larger than the Flags limits, or reading it ran over the 120 s budget (`details`: `limit`, `max`, `current`). Nothing was imported.
9644
10632
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
9645
10633
  * @throws {InternalServerError} 502 BAD_GATEWAY, IMPORT_SOURCE_UNAVAILABLE: `IMPORT_SOURCE_UNAVAILABLE`: ConfigCat answered 5xx, timed out or could not be reached.
10634
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9646
10635
  * @see POST /v1/workspaces/{workspace_id}/imports
9647
10636
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-imports
9648
10637
  * @example
@@ -9665,8 +10654,10 @@ declare class LimitsResource extends APIResource {
9665
10654
  * The preview limits that apply to this workspace and how much of the counted ones it uses.
9666
10655
  *
9667
10656
  * @param options - Per-request options.
10657
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9668
10658
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9669
10659
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10660
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9670
10661
  * @see GET /v1/workspaces/{workspace_id}/limits
9671
10662
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-limits
9672
10663
  * @example
@@ -9687,9 +10678,11 @@ declare class ProjectsChangesResource extends APIResource {
9687
10678
  * @param params - `Flags.ProjectChangeExportParams`.
9688
10679
  * @param options - Per-request options.
9689
10680
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad filter or `format`, or `since` is not before `until`.
10681
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9690
10682
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9691
10683
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9692
10684
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10685
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9693
10686
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}/changes/export
9694
10687
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id-changes-export
9695
10688
  * @example
@@ -9708,9 +10701,11 @@ declare class ProjectsChangesResource extends APIResource {
9708
10701
  * @param params - `Flags.ProjectChangeListParams`.
9709
10702
  * @param options - Per-request options.
9710
10703
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad filter, cursor or `limit`, or `since` is not before `until`.
10704
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9711
10705
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9712
10706
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9713
10707
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10708
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9714
10709
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}/changes
9715
10710
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id-changes
9716
10711
  * @example
@@ -9734,11 +10729,13 @@ declare class ProjectsConfigsResource extends APIResource {
9734
10729
  * @param params - `Flags.ProjectConfigCreateParams`.
9735
10730
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9736
10731
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is missing or invalid.
10732
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9737
10733
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9738
10734
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9739
10735
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: `KEY_ALREADY_EXISTS`: the project already has a config with this key. Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
9740
10736
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, LIMIT_EXCEEDED: `LIMIT_EXCEEDED`: the project already has the maximum number of configs (`details`: `limit`, `max`, `current`).
9741
10737
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10738
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9742
10739
  * @see POST /v1/workspaces/{workspace_id}/projects/{project_id}/configs
9743
10740
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-projects-project-id-configs
9744
10741
  * @example
@@ -9756,9 +10753,11 @@ declare class ProjectsConfigsResource extends APIResource {
9756
10753
  * @param params - `Flags.ProjectConfigListParams`.
9757
10754
  * @param options - Per-request options.
9758
10755
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad cursor or a `limit` outside 1-100.
10756
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9759
10757
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9760
10758
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9761
10759
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10760
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9762
10761
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}/configs
9763
10762
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id-configs
9764
10763
  * @example
@@ -9782,11 +10781,13 @@ declare class ProjectsEnvironmentsResource extends APIResource {
9782
10781
  * @param params - `Flags.ProjectEnvironmentCreateParams`.
9783
10782
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9784
10783
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is missing or invalid.
10784
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9785
10785
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9786
10786
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9787
10787
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: `KEY_ALREADY_EXISTS`: the project already has an environment with this key. Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
9788
10788
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, LIMIT_EXCEEDED: `LIMIT_EXCEEDED`: the project already has the maximum number of environments (`details`: `limit`, `max`, `current`).
9789
10789
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10790
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9790
10791
  * @see POST /v1/workspaces/{workspace_id}/projects/{project_id}/environments
9791
10792
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-projects-project-id-environments
9792
10793
  * @example
@@ -9804,10 +10805,12 @@ declare class ProjectsEnvironmentsResource extends APIResource {
9804
10805
  * @param environmentId - Id of the environment.
9805
10806
  * @param params - `Flags.ProjectEnvironmentDeleteParams`.
9806
10807
  * @param options - Per-request options.
10808
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9807
10809
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9808
10810
  * @throws {NotFoundError} 404 NOT_FOUND, ENVIRONMENT_NOT_FOUND: `ENVIRONMENT_NOT_FOUND`: no such environment in this project.
9809
10811
  * @throws {ConflictError} 409 CONFLICT, LAST_ENVIRONMENT: `LAST_ENVIRONMENT`: this is the project's only environment.
9810
10812
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10813
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9811
10814
  * @see DELETE /v1/workspaces/{workspace_id}/projects/{project_id}/environments/{environment_id}
9812
10815
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-projects-project-id-environments-environment-id
9813
10816
  * @example
@@ -9823,9 +10826,11 @@ declare class ProjectsEnvironmentsResource extends APIResource {
9823
10826
  *
9824
10827
  * @param projectId - Id of the project.
9825
10828
  * @param options - Per-request options.
10829
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9826
10830
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9827
10831
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9828
10832
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10833
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9829
10834
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}/environments
9830
10835
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id-environments
9831
10836
  * @example
@@ -9840,9 +10845,11 @@ declare class ProjectsEnvironmentsResource extends APIResource {
9840
10845
  * @param projectId - Id of the project.
9841
10846
  * @param environmentId - Id of the environment.
9842
10847
  * @param options - Per-request options.
10848
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9843
10849
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9844
10850
  * @throws {NotFoundError} 404 NOT_FOUND, ENVIRONMENT_NOT_FOUND: `ENVIRONMENT_NOT_FOUND`: no such environment in this project.
9845
10851
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10852
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9846
10853
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}/environments/{environment_id}
9847
10854
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id-environments-environment-id
9848
10855
  * @example
@@ -9861,9 +10868,11 @@ declare class ProjectsEnvironmentsResource extends APIResource {
9861
10868
  * @param params - `Flags.ProjectEnvironmentUpdateParams`.
9862
10869
  * @param options - Per-request options.
9863
10870
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is invalid.
10871
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9864
10872
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9865
10873
  * @throws {NotFoundError} 404 NOT_FOUND, ENVIRONMENT_NOT_FOUND: `ENVIRONMENT_NOT_FOUND`: no such environment in this project.
9866
10874
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10875
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9867
10876
  * @see PATCH /v1/workspaces/{workspace_id}/projects/{project_id}/environments/{environment_id}
9868
10877
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-projects-project-id-environments-environment-id
9869
10878
  * @example
@@ -9884,11 +10893,13 @@ declare class ProjectsSegmentsResource extends APIResource {
9884
10893
  * @param params - `Flags.ProjectSegmentCreateParams`.
9885
10894
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9886
10895
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is missing or invalid.
10896
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9887
10897
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9888
10898
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9889
10899
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: `KEY_ALREADY_EXISTS`: the project already has a segment with this key. Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
9890
10900
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, INVALID_TARGETING, LIMIT_EXCEEDED, CONFIDENTIAL_LIST_NOT_EDITABLE, NOTE_REQUIRED: The conditions are invalid; `details.errors` lists every problem (`param`, `code`, `message`) and `code` is the first one: `INVALID_TARGETING` (shape, comparator or value), `LIMIT_EXCEEDED` (conditions, values or segments per project), `CONFIDENTIAL_LIST_NOT_EDITABLE` (`values_add` / `values_remove` on a list sent pre-hashed), or `NOTE_REQUIRED` (the segment is used in an environment that requires a `note`).
9891
10901
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10902
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9892
10903
  * @see POST /v1/workspaces/{workspace_id}/projects/{project_id}/segments
9893
10904
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-projects-project-id-segments
9894
10905
  * @example
@@ -9913,9 +10924,11 @@ declare class ProjectsSegmentsResource extends APIResource {
9913
10924
  * @param params - `Flags.ProjectSegmentListParams`.
9914
10925
  * @param options - Per-request options.
9915
10926
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad cursor or `limit`.
10927
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9916
10928
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9917
10929
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9918
10930
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10931
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9919
10932
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}/segments
9920
10933
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id-segments
9921
10934
  * @example
@@ -9943,10 +10956,12 @@ declare class ProjectsResource extends APIResource {
9943
10956
  * @param params - `Flags.ProjectCreateParams`.
9944
10957
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9945
10958
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is missing or invalid.
10959
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9946
10960
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9947
10961
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: `KEY_ALREADY_EXISTS`: another project has this name, or a key repeats in `environments` / `configs`. Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
9948
10962
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, LIMIT_EXCEEDED: `LIMIT_EXCEEDED`: the workspace already has the maximum number of projects (`details`: `limit`, `max`, `current`).
9949
10963
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10964
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9950
10965
  * @see POST /v1/workspaces/{workspace_id}/projects
9951
10966
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-projects
9952
10967
  * @example
@@ -9963,10 +10978,12 @@ declare class ProjectsResource extends APIResource {
9963
10978
  * @param projectId - Id of the project.
9964
10979
  * @param params - `Flags.ProjectDeleteParams`.
9965
10980
  * @param options - Per-request options.
10981
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9966
10982
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9967
10983
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9968
10984
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, CONFIRMATION_REQUIRED: `CONFIRMATION_REQUIRED`: `confirm` is missing or is not the exact project name.
9969
10985
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10986
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9970
10987
  * @see DELETE /v1/workspaces/{workspace_id}/projects/{project_id}
9971
10988
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-projects-project-id
9972
10989
  * @example
@@ -9983,8 +11000,10 @@ declare class ProjectsResource extends APIResource {
9983
11000
  * @param params - `Flags.ProjectListParams`.
9984
11001
  * @param options - Per-request options.
9985
11002
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad cursor or a `limit` outside 1-100.
11003
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
9986
11004
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
9987
11005
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11006
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
9988
11007
  * @see GET /v1/workspaces/{workspace_id}/projects
9989
11008
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects
9990
11009
  * @example
@@ -10003,9 +11022,11 @@ declare class ProjectsResource extends APIResource {
10003
11022
  *
10004
11023
  * @param projectId - Id of the project.
10005
11024
  * @param options - Per-request options.
11025
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10006
11026
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
10007
11027
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
10008
11028
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11029
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10009
11030
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}
10010
11031
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id
10011
11032
  * @example
@@ -10023,10 +11044,12 @@ declare class ProjectsResource extends APIResource {
10023
11044
  * @param params - `Flags.ProjectUpdateParams`.
10024
11045
  * @param options - Per-request options.
10025
11046
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is invalid.
11047
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10026
11048
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
10027
11049
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
10028
11050
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS: `KEY_ALREADY_EXISTS`: another project has this name.
10029
11051
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11052
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10030
11053
  * @see PATCH /v1/workspaces/{workspace_id}/projects/{project_id}
10031
11054
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-projects-project-id
10032
11055
  * @example
@@ -10046,10 +11069,12 @@ declare class SegmentsResource extends APIResource {
10046
11069
  * @param segmentId - Id of the segment.
10047
11070
  * @param params - `Flags.SegmentDeleteParams`.
10048
11071
  * @param options - Per-request options.
11072
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10049
11073
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
10050
11074
  * @throws {NotFoundError} 404 NOT_FOUND, SEGMENT_NOT_FOUND: `SEGMENT_NOT_FOUND`: no such segment in this workspace.
10051
11075
  * @throws {ConflictError} 409 CONFLICT, SEGMENT_IN_USE: `SEGMENT_IN_USE`: a rule uses it (`details.used_by` lists where).
10052
11076
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11077
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10053
11078
  * @see DELETE /v1/workspaces/{workspace_id}/segments/{segment_id}
10054
11079
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-segments-segment-id
10055
11080
  * @example
@@ -10065,9 +11090,11 @@ declare class SegmentsResource extends APIResource {
10065
11090
  *
10066
11091
  * @param segmentId - Id of the segment.
10067
11092
  * @param options - Per-request options.
11093
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10068
11094
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
10069
11095
  * @throws {NotFoundError} 404 NOT_FOUND, SEGMENT_NOT_FOUND: `SEGMENT_NOT_FOUND`: no such segment in this workspace.
10070
11096
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11097
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10071
11098
  * @see GET /v1/workspaces/{workspace_id}/segments/{segment_id}
10072
11099
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-segments-segment-id
10073
11100
  * @example
@@ -10083,10 +11110,12 @@ declare class SegmentsResource extends APIResource {
10083
11110
  *
10084
11111
  * @param segmentId - Id of the segment.
10085
11112
  * @param options - Per-request options.
11113
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10086
11114
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
10087
11115
  * @throws {NotFoundError} 404 NOT_FOUND, SEGMENT_NOT_FOUND: `SEGMENT_NOT_FOUND`: no such segment in this workspace.
10088
11116
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, CONFIDENTIAL_LIST_NOT_EDITABLE: `CONFIDENTIAL_LIST_NOT_EDITABLE`: every confidential list was sent pre-hashed, so there is no cleartext.
10089
11117
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11118
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10090
11119
  * @see GET /v1/workspaces/{workspace_id}/segments/{segment_id}/confidential
10091
11120
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-segments-segment-id-confidential
10092
11121
  * @example
@@ -10098,33 +11127,24 @@ declare class SegmentsResource extends APIResource {
10098
11127
  /**
10099
11128
  * Update a segment
10100
11129
  *
10101
- * Key, name, description or conditions; only the fields you send change. Edit a confidential list with `list_id` plus `values_add` / `values_remove`. A segment used in a protected environment also needs `flags.protected.update` there.
11130
+ * Key, name, description or conditions; only the fields you send change. To add or remove values in one list condition without re-sending the others, send `condition_edits` (with the `version` you read). Edit a confidential list with `list_id` plus `values_add` / `values_remove`, or with `condition_edits`. A segment used in a protected environment also needs `flags.protected.update` there.
10102
11131
  *
10103
11132
  * @param segmentId - Id of the segment.
10104
11133
  * @param params - `Flags.SegmentUpdateParams`.
10105
11134
  * @param options - Per-request options.
10106
- * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is invalid.
11135
+ * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is invalid, an edit has no values, or both `conditions` and `condition_edits` were sent.
11136
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10107
11137
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). A segment used in a protected environment also needs `flags.protected.update` on it.
10108
11138
  * @throws {NotFoundError} 404 NOT_FOUND, SEGMENT_NOT_FOUND: `SEGMENT_NOT_FOUND`: no such segment in this workspace.
10109
11139
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS, VERSION_CONFLICT: `KEY_ALREADY_EXISTS`: the project already has a segment with this key; `VERSION_CONFLICT`: `version` is stale (`details.current_version`).
10110
11140
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, INVALID_TARGETING, LIMIT_EXCEEDED, CONFIDENTIAL_LIST_NOT_EDITABLE, NOTE_REQUIRED, CONFIG_TOO_LARGE: The conditions are invalid; `details.errors` lists every problem (`param`, `code`, `message`) and `code` is the first one: `INVALID_TARGETING` (shape, comparator or value), `LIMIT_EXCEEDED` (conditions, values or segments per project), `CONFIDENTIAL_LIST_NOT_EDITABLE` (`values_add` / `values_remove` on a list sent pre-hashed), or `NOTE_REQUIRED` (the segment is used in an environment that requires a `note`). Publishing (every config that uses the segment): `CONFIG_TOO_LARGE` (a rendered config would exceed 1 MiB) or `LIMIT_EXCEEDED` with `details.limit: comparison_values_per_config`; the edit is not applied.
10111
11141
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11142
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10112
11143
  * @see PATCH /v1/workspaces/{workspace_id}/segments/{segment_id}
10113
11144
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-segments-segment-id
10114
11145
  * @example
10115
11146
  * ```ts
10116
- * const segmentDetail = await flags.segments.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {
10117
- * conditions: [
10118
- * {
10119
- * user: {
10120
- * attribute: "email",
10121
- * comparator: "ends_with_any_hashed",
10122
- * list_id: "3f0c6a3e-0f5e-4b8e-9d1a-2c7b9f1e8a10",
10123
- * values_add: ["@beta.test"],
10124
- * },
10125
- * },
10126
- * ],
10127
- * });
11147
+ * const segmentDetail = await flags.segments.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { condition_edits: [{ condition_index: 0, values_add: ["qa-bot@example.com"] }] });
10128
11148
  * ```
10129
11149
  */
10130
11150
  update(segmentId: string, params?: SegmentUpdateParams, options?: RequestOptions): APIPromise<WithLastResponse<SegmentDetail>>;
@@ -10141,11 +11161,13 @@ declare class SettingsValuesResource extends APIResource {
10141
11161
  * @param params - `Flags.SettingsValueReplaceParams`.
10142
11162
  * @param options - Per-request options.
10143
11163
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: `version` or `note` is missing or invalid.
11164
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10144
11165
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). Value writes need `flags.value.update` on the environment and the setting, plus `flags.protected.update` in a protected environment.
10145
11166
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `SETTING_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`.
10146
11167
  * @throws {ConflictError} 409 CONFLICT, VERSION_CONFLICT: `VERSION_CONFLICT`: the value changed since you read it (`details.current_version`, `updated_at`, `updated_by`).
10147
11168
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, INVALID_VALUE, INVALID_TARGETING, SEGMENT_NOT_FOUND, CONFIDENTIAL_LIST_NOT_EDITABLE, PERCENTAGES_MUST_SUM_TO_100, PREREQUISITE_NOT_FOUND, PREREQUISITE_TYPE_MISMATCH, CIRCULAR_PREREQUISITE, LIMIT_EXCEEDED, NOTE_REQUIRED, CONFIG_TOO_LARGE: The value or targeting is invalid; `details.errors` lists every problem (`param`, `code`, `message`) and `code` is the first one: `INVALID_VALUE` (type mismatch, over 100 KB, json that does not parse), `INVALID_TARGETING` (shape, comparator or comparison value), `SEGMENT_NOT_FOUND` (a segment condition names no segment of this project), `CONFIDENTIAL_LIST_NOT_EDITABLE` (`values_add` / `values_remove` on a list sent pre-hashed), `PERCENTAGES_MUST_SUM_TO_100`, `PREREQUISITE_NOT_FOUND`, `PREREQUISITE_TYPE_MISMATCH`, `CIRCULAR_PREREQUISITE` (`details.cycle` lists the keys), `LIMIT_EXCEEDED` (rules, conditions, values or prerequisite depth), or `NOTE_REQUIRED` (the environment requires a `note`). Publishing: `CONFIG_TOO_LARGE` (the rendered config would exceed 1 MiB; `details.size_bytes`, `max_bytes`) or `LIMIT_EXCEEDED` with `details.limit: comparison_values_per_config` (over 20,000 comparison values in the config); the write is not applied.
10148
11169
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11170
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10149
11171
  * @see PUT /v1/workspaces/{workspace_id}/settings/{setting_id}/values/{environment_id}
10150
11172
  * @see https://productcraft.co/docs/flags/api-reference#put-v1-workspaces-workspace-id-settings-setting-id-values-environment-id
10151
11173
  * @example
@@ -10162,9 +11184,11 @@ declare class SettingsValuesResource extends APIResource {
10162
11184
  * @param settingId - Id of the setting.
10163
11185
  * @param environmentId - Id of an environment of the same project.
10164
11186
  * @param options - Per-request options.
11187
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10165
11188
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
10166
11189
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `SETTING_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`.
10167
11190
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11191
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10168
11192
  * @see GET /v1/workspaces/{workspace_id}/settings/{setting_id}/values/{environment_id}
10169
11193
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-settings-setting-id-values-environment-id
10170
11194
  * @example
@@ -10181,10 +11205,12 @@ declare class SettingsValuesResource extends APIResource {
10181
11205
  * @param settingId - Id of the setting.
10182
11206
  * @param environmentId - Id of an environment of the same project.
10183
11207
  * @param options - Per-request options.
11208
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10184
11209
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
10185
11210
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `SETTING_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`.
10186
11211
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, CONFIDENTIAL_LIST_NOT_EDITABLE: `CONFIDENTIAL_LIST_NOT_EDITABLE`: every confidential list was sent pre-hashed, so there is no cleartext.
10187
11212
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11213
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10188
11214
  * @see GET /v1/workspaces/{workspace_id}/settings/{setting_id}/values/{environment_id}/confidential
10189
11215
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-settings-setting-id-values-environment-id-confidential
10190
11216
  * @example
@@ -10196,18 +11222,20 @@ declare class SettingsValuesResource extends APIResource {
10196
11222
  /**
10197
11223
  * Update a value
10198
11224
  *
10199
- * The quick edits: `value` (the toggle), `percentage_attribute`, and `clear_rules: true` to drop every rule and split so `value` is served to everyone (the kill switch). Send the `version` you read.
11225
+ * The quick edits: `value` (the toggle), `percentage_attribute`, `rule_edits` to add or remove values in a list condition of an existing rule (a tester, a QA account) without re-sending the other rules, and `clear_rules: true` to drop every rule and split so `value` is served to everyone (the kill switch). Send the `version` you read. A protected environment needs `flags.protected.update`; one change and one revision per request, none when nothing changed.
10200
11226
  *
10201
11227
  * @param settingId - Id of the setting.
10202
11228
  * @param environmentId - Id of an environment of the same project.
10203
11229
  * @param params - `Flags.SettingsValueUpdateParams`.
10204
11230
  * @param options - Per-request options.
10205
- * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: nothing to change, or `version` is missing.
11231
+ * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: nothing to change, `version` is missing, an edit has no values, or `rule_edits` sent with `clear_rules`.
11232
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10206
11233
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). Value writes need `flags.value.update` on the environment and the setting, plus `flags.protected.update` in a protected environment.
10207
11234
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `SETTING_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`.
10208
11235
  * @throws {ConflictError} 409 CONFLICT, VERSION_CONFLICT: `VERSION_CONFLICT`: the value changed since you read it (`details.current_version`, `updated_at`, `updated_by`).
10209
11236
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, INVALID_VALUE, INVALID_TARGETING, NOTE_REQUIRED, CONFIG_TOO_LARGE, LIMIT_EXCEEDED: `INVALID_VALUE`, `INVALID_TARGETING` or `NOTE_REQUIRED`; `details.errors` lists each problem. Publishing: `CONFIG_TOO_LARGE` (the rendered config would exceed 1 MiB; `details.size_bytes`, `max_bytes`) or `LIMIT_EXCEEDED` with `details.limit: comparison_values_per_config` (over 20,000 comparison values in the config); the write is not applied.
10210
11237
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11238
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10211
11239
  * @see PATCH /v1/workspaces/{workspace_id}/settings/{setting_id}/values/{environment_id}
10212
11240
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-settings-setting-id-values-environment-id
10213
11241
  * @example
@@ -10229,10 +11257,12 @@ declare class SettingsResource extends APIResource {
10229
11257
  * @param settingId - Id of the setting.
10230
11258
  * @param params - `Flags.SettingsDeleteParams`.
10231
11259
  * @param options - Per-request options.
11260
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10232
11261
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
10233
11262
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND: `SETTING_NOT_FOUND`: no such setting in this workspace.
10234
11263
  * @throws {ConflictError} 409 CONFLICT, SETTING_IN_USE: `SETTING_IN_USE`: another setting uses it as a prerequisite (`details.used_by`).
10235
11264
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11265
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10236
11266
  * @see DELETE /v1/workspaces/{workspace_id}/settings/{setting_id}
10237
11267
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-settings-setting-id
10238
11268
  * @example
@@ -10248,9 +11278,11 @@ declare class SettingsResource extends APIResource {
10248
11278
  *
10249
11279
  * @param settingId - Id of the setting.
10250
11280
  * @param options - Per-request options.
11281
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10251
11282
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
10252
11283
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND: `SETTING_NOT_FOUND`: no such setting in this workspace.
10253
11284
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11285
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10254
11286
  * @see GET /v1/workspaces/{workspace_id}/settings/{setting_id}
10255
11287
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-settings-setting-id
10256
11288
  * @example
@@ -10268,12 +11300,13 @@ declare class SettingsResource extends APIResource {
10268
11300
  * @param params - `Flags.SettingsUpdateParams`.
10269
11301
  * @param options - Per-request options.
10270
11302
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is invalid.
11303
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10271
11304
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
10272
11305
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND: `SETTING_NOT_FOUND`: no such setting in this workspace.
10273
11306
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS: `KEY_ALREADY_EXISTS`: the config already has a setting with this key.
10274
11307
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, SETTING_TYPE_IMMUTABLE, OWNER_NOT_A_MEMBER, CONFIG_TOO_LARGE, LIMIT_EXCEEDED: `SETTING_TYPE_IMMUTABLE`: `type` differs from the current one; `OWNER_NOT_A_MEMBER`: `owner_id` is not a workspace member. Publishing: `CONFIG_TOO_LARGE` (the rendered config would exceed 1 MiB; `details.size_bytes`, `max_bytes`) or `LIMIT_EXCEEDED` with `details.limit: comparison_values_per_config` (over 20,000 comparison values in the config); the write is not applied.
10275
11308
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
10276
- * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE: `SERVICE_UNAVAILABLE`: the member lookup for `owner_id` is unavailable; retry.
11309
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: `SERVICE_UNAVAILABLE`: the member lookup for `owner_id` is unavailable; retry. Or `MANAGEMENT_UNAVAILABLE`: the whole management API is temporarily unavailable, for example while its database is unreachable; wait `Retry-After` seconds and retry.
10277
11310
  * @see PATCH /v1/workspaces/{workspace_id}/settings/{setting_id}
10278
11311
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-settings-setting-id
10279
11312
  * @example
@@ -10291,8 +11324,10 @@ declare class StatsResource extends APIResource {
10291
11324
  * Counts for the workspace: projects, configs, flags and settings, segments, changes in the last 7 days and when the latest change was made, plus each project’s history usage against the retention caps (50,000 rows or 200 MiB per project; `warning` from 80%). Counts only: no keys, values or rules.
10292
11325
  *
10293
11326
  * @param options - Per-request options.
11327
+ * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`.
10294
11328
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`).
10295
11329
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11330
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10296
11331
  * @see GET /v1/workspaces/{workspace_id}/stats
10297
11332
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-stats
10298
11333
  * @example
@@ -10317,6 +11352,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10317
11352
  * @throws {ConflictError} 409 CONFLICT, WEBHOOK_ENDPOINT_LIMIT, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: Already 10 endpoints (`WEBHOOK_ENDPOINT_LIMIT`), or Idempotency-Key reused with a different body (`IDEMPOTENCY_KEY_REUSE`). Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
10318
11353
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY: The URL points at a private, loopback or internal address.
10319
11354
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11355
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10320
11356
  * @see POST /v1/workspaces/{workspace_id}/webhooks/endpoints
10321
11357
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-webhooks-endpoints
10322
11358
  * @example
@@ -10337,6 +11373,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10337
11373
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: Caller lacks `flags.webhook.read` (reads) or `flags.webhook.manage` (changes, Send test, replay), or Flags is not enabled for the workspace (`SERVICE_NOT_ENABLED`).
10338
11374
  * @throws {NotFoundError} 404 NOT_FOUND, WEBHOOK_ENDPOINT_NOT_FOUND: No such endpoint here (`WEBHOOK_ENDPOINT_NOT_FOUND`).
10339
11375
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11376
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10340
11377
  * @see DELETE /v1/workspaces/{workspace_id}/webhooks/endpoints/{endpoint_id}
10341
11378
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id
10342
11379
  * @example
@@ -10355,6 +11392,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10355
11392
  * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing or invalid bearer token.
10356
11393
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: Caller lacks `flags.webhook.read` (reads) or `flags.webhook.manage` (changes, Send test, replay), or Flags is not enabled for the workspace (`SERVICE_NOT_ENABLED`).
10357
11394
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11395
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10358
11396
  * @see GET /v1/workspaces/{workspace_id}/webhooks/endpoints
10359
11397
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-webhooks-endpoints
10360
11398
  * @example
@@ -10377,6 +11415,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10377
11415
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: Caller lacks `flags.webhook.read` (reads) or `flags.webhook.manage` (changes, Send test, replay), or Flags is not enabled for the workspace (`SERVICE_NOT_ENABLED`).
10378
11416
  * @throws {NotFoundError} 404 NOT_FOUND, WEBHOOK_ENDPOINT_NOT_FOUND: No such endpoint here (`WEBHOOK_ENDPOINT_NOT_FOUND`).
10379
11417
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11418
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10380
11419
  * @see GET /v1/workspaces/{workspace_id}/webhooks/endpoints/{endpoint_id}
10381
11420
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id
10382
11421
  * @example
@@ -10399,6 +11438,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10399
11438
  * @throws {NotFoundError} 404 NOT_FOUND, WEBHOOK_ENDPOINT_NOT_FOUND: No such endpoint here (`WEBHOOK_ENDPOINT_NOT_FOUND`).
10400
11439
  * @throws {ConflictError} 409 CONFLICT, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: Idempotency-Key reused with a different body (`IDEMPOTENCY_KEY_REUSE`). Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
10401
11440
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11441
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10402
11442
  * @see POST /v1/workspaces/{workspace_id}/webhooks/endpoints/{endpoint_id}/rotate-secret
10403
11443
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id-rotate-secret
10404
11444
  * @example
@@ -10421,6 +11461,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10421
11461
  * @throws {NotFoundError} 404 NOT_FOUND, WEBHOOK_ENDPOINT_NOT_FOUND: No such endpoint here (`WEBHOOK_ENDPOINT_NOT_FOUND`).
10422
11462
  * @throws {ConflictError} 409 CONFLICT, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: Idempotency-Key reused with a different body (`IDEMPOTENCY_KEY_REUSE`). Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
10423
11463
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11464
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10424
11465
  * @see POST /v1/workspaces/{workspace_id}/webhooks/endpoints/{endpoint_id}/test
10425
11466
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id-test
10426
11467
  * @example
@@ -10444,6 +11485,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10444
11485
  * @throws {ConflictError} 409 CONFLICT, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: Idempotency-Key reused with a different body (`IDEMPOTENCY_KEY_REUSE`). Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
10445
11486
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY: The new URL points at a private, loopback or internal address.
10446
11487
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11488
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10447
11489
  * @see PATCH /v1/workspaces/{workspace_id}/webhooks/endpoints/{endpoint_id}
10448
11490
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id
10449
11491
  * @example
@@ -10464,6 +11506,7 @@ declare class WebhooksEventTypesResource extends APIResource {
10464
11506
  * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing or invalid bearer token.
10465
11507
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: Caller lacks `flags.webhook.read` (reads) or `flags.webhook.manage` (changes, Send test, replay), or Flags is not enabled for the workspace (`SERVICE_NOT_ENABLED`).
10466
11508
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11509
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10467
11510
  * @see GET /v1/workspaces/{workspace_id}/webhooks/event-types
10468
11511
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-webhooks-event-types
10469
11512
  * @example
@@ -10486,6 +11529,7 @@ declare class WebhooksEventsResource extends APIResource {
10486
11529
  * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing or invalid bearer token.
10487
11530
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: Caller lacks `flags.webhook.read` (reads) or `flags.webhook.manage` (changes, Send test, replay), or Flags is not enabled for the workspace (`SERVICE_NOT_ENABLED`).
10488
11531
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11532
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10489
11533
  * @see GET /v1/workspaces/{workspace_id}/webhooks/events
10490
11534
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-webhooks-events
10491
11535
  * @example
@@ -10511,6 +11555,7 @@ declare class WebhooksEventsResource extends APIResource {
10511
11555
  * @throws {NotFoundError} 404 NOT_FOUND, WEBHOOK_EVENT_NOT_FOUND, WEBHOOK_ENDPOINT_NOT_FOUND: No such event here (`WEBHOOK_EVENT_NOT_FOUND`); events are kept for 30 days. Or No such endpoint here (`WEBHOOK_ENDPOINT_NOT_FOUND`).
10512
11556
  * @throws {ConflictError} 409 CONFLICT, WEBHOOK_ENDPOINT_NOT_SUBSCRIBED, IDEMPOTENCY_KEY_REUSE, IDEMPOTENCY_IN_PROGRESS: `endpoint_id` is switched off or does not receive this event type (`WEBHOOK_ENDPOINT_NOT_SUBSCRIBED`), or Idempotency-Key reused with a different body (`IDEMPOTENCY_KEY_REUSE`). Idempotency: `IDEMPOTENCY_KEY_REUSE` when this `Idempotency-Key` was already used with a different body or route; `IDEMPOTENCY_IN_PROGRESS` while another request with the same key is still running (retry after `Retry-After` seconds, with the same key).
10513
11557
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11558
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10514
11559
  * @see POST /v1/workspaces/{workspace_id}/webhooks/events/{event_id}/replay
10515
11560
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-webhooks-events-event-id-replay
10516
11561
  * @example
@@ -10531,6 +11576,7 @@ declare class WebhooksEventsResource extends APIResource {
10531
11576
  * @throws {PermissionDeniedError} 403 FORBIDDEN, SERVICE_NOT_ENABLED: Caller lacks `flags.webhook.read` (reads) or `flags.webhook.manage` (changes, Send test, replay), or Flags is not enabled for the workspace (`SERVICE_NOT_ENABLED`).
10532
11577
  * @throws {NotFoundError} 404 NOT_FOUND, WEBHOOK_EVENT_NOT_FOUND: No such event here (`WEBHOOK_EVENT_NOT_FOUND`); events are kept for 30 days.
10533
11578
  * @throws {RateLimitError} 429 RATE_LIMITED: More than 20 requests per second or 600 per minute from this client IP (`RATE_LIMITED`); wait `Retry-After` seconds.
11579
+ * @throws {InternalServerError} 503 SERVICE_UNAVAILABLE, MANAGEMENT_UNAVAILABLE: The management API is temporarily unavailable (`MANAGEMENT_UNAVAILABLE`), for example while its database is unreachable. Wait `Retry-After` seconds and retry; SDK config delivery keeps serving.
10534
11580
  * @see GET /v1/workspaces/{workspace_id}/webhooks/events/{event_id}
10535
11581
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-webhooks-events-event-id
10536
11582
  * @example
@@ -10791,7 +11837,7 @@ declare namespace Flags {
10791
11837
  };
10792
11838
  type FlagsEvaluationWarningCode = __FlagsEvaluationWarningCode;
10793
11839
  const FlagsEvaluationWarningCode: {
10794
- values: readonly ["missing_user", "missing_attribute", "invalid_attribute", "unknown_comparator", "missing_percentage_attribute"];
11840
+ values: readonly ["missing_user", "missing_attribute", "invalid_attribute", "unknown_comparator", "missing_percentage_attribute", "iso_date_converted"];
10795
11841
  };
10796
11842
  type FlagsHistoryExportFormat = __FlagsHistoryExportFormat;
10797
11843
  const FlagsHistoryExportFormat: {