@productcraft/flags 0.3.0 → 0.4.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 (34) hide show
  1. package/api.md +105 -2
  2. package/dist/browser/{chunk-FXZVXQ75.cjs → chunk-CXYODDHM.cjs} +109 -6
  3. package/dist/browser/chunk-CXYODDHM.cjs.map +1 -0
  4. package/dist/browser/{chunk-4LRAE3F3.js → chunk-TCVKCN3S.js} +109 -6
  5. package/dist/browser/chunk-TCVKCN3S.js.map +1 -0
  6. package/dist/browser/index.cjs +3 -3
  7. package/dist/browser/index.js +1 -1
  8. package/dist/browser/management.cjs +2 -2
  9. package/dist/browser/management.js +1 -1
  10. package/dist/{chunk-2YRDLKNB.js → chunk-7237IZU3.js} +109 -6
  11. package/dist/chunk-7237IZU3.js.map +1 -0
  12. package/dist/{chunk-TSRLPHJ5.js → chunk-NB7OGN6R.js} +3 -3
  13. package/dist/{chunk-TSRLPHJ5.js.map → chunk-NB7OGN6R.js.map} +1 -1
  14. package/dist/{chunk-WI4EZXOV.cjs → chunk-NSAKFGTJ.cjs} +109 -6
  15. package/dist/chunk-NSAKFGTJ.cjs.map +1 -0
  16. package/dist/{chunk-QTDMUNLG.cjs → chunk-Q3P66XRI.cjs} +3 -3
  17. package/dist/{chunk-QTDMUNLG.cjs.map → chunk-Q3P66XRI.cjs.map} +1 -1
  18. package/dist/{client-bVEJfS6_.d.cts → client-BwoMpm8_.d.cts} +995 -10
  19. package/dist/{client-bVEJfS6_.d.ts → client-BwoMpm8_.d.ts} +995 -10
  20. package/dist/index.cjs +8 -8
  21. package/dist/index.d.cts +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +2 -2
  24. package/dist/management.cjs +2 -2
  25. package/dist/management.d.cts +1 -1
  26. package/dist/management.d.ts +1 -1
  27. package/dist/management.js +1 -1
  28. package/dist/testing.cjs +3 -3
  29. package/dist/testing.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/browser/chunk-4LRAE3F3.js.map +0 -1
  32. package/dist/browser/chunk-FXZVXQ75.cjs.map +0 -1
  33. package/dist/chunk-2YRDLKNB.js.map +0 -1
  34. package/dist/chunk-WI4EZXOV.cjs.map +0 -1
@@ -1778,7 +1778,7 @@ type components = {
1778
1778
  */
1779
1779
  revision?: number;
1780
1780
  /**
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.
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; each converted attribute adds an `iso_date_converted` warning to the rows it affects). Never stored or logged.
1782
1782
  * @example {
1783
1783
  * "custom": {
1784
1784
  * "app_version": "2.1.0"
@@ -1847,7 +1847,7 @@ type components = {
1847
1847
  */
1848
1848
  attribute: string | null;
1849
1849
  /**
1850
- * @description Stable warning code: a condition or split could not be evaluated for this user, and evaluation went on (a soft miss).
1850
+ * @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
1851
  * @example missing_attribute
1852
1852
  */
1853
1853
  code: components["schemas"]["FlagsEvaluationWarningCode"];
@@ -1880,7 +1880,7 @@ type components = {
1880
1880
  /** @enum {string} */
1881
1881
  FlagsEvaluationReason: "STATIC" | "TARGETING_MATCH" | "SPLIT" | "DEFAULT" | "ERROR";
1882
1882
  /** @enum {string} */
1883
- FlagsEvaluationWarningCode: "missing_user" | "missing_attribute" | "invalid_attribute" | "unknown_comparator" | "missing_percentage_attribute";
1883
+ FlagsEvaluationWarningCode: "missing_user" | "missing_attribute" | "invalid_attribute" | "unknown_comparator" | "missing_percentage_attribute" | "iso_date_converted";
1884
1884
  /** @enum {string} */
1885
1885
  FlagsHistoryExportFormat: "csv" | "json";
1886
1886
  FlagsHistoryUsageDto: {
@@ -3916,6 +3916,14 @@ interface operations {
3916
3916
  "application/json": components["schemas"]["ChangeDetailResponseDto"];
3917
3917
  };
3918
3918
  };
3919
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
3920
+ 401: {
3921
+ headers: {
3922
+ "X-Request-Id": components["headers"]["RequestId"];
3923
+ [name: string]: unknown;
3924
+ };
3925
+ content?: never;
3926
+ };
3919
3927
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
3920
3928
  403: {
3921
3929
  headers: {
@@ -3943,6 +3951,15 @@ interface operations {
3943
3951
  };
3944
3952
  content?: never;
3945
3953
  };
3954
+ /** @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. */
3955
+ 503: {
3956
+ headers: {
3957
+ "Retry-After": components["headers"]["Retry-After"];
3958
+ "X-Request-Id": components["headers"]["RequestId"];
3959
+ [name: string]: unknown;
3960
+ };
3961
+ content?: never;
3962
+ };
3946
3963
  };
3947
3964
  };
3948
3965
  ChangesController_revert: {
@@ -3998,6 +4015,14 @@ interface operations {
3998
4015
  };
3999
4016
  content?: never;
4000
4017
  };
4018
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4019
+ 401: {
4020
+ headers: {
4021
+ "X-Request-Id": components["headers"]["RequestId"];
4022
+ [name: string]: unknown;
4023
+ };
4024
+ content?: never;
4025
+ };
4001
4026
  /** @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
4027
  403: {
4003
4028
  headers: {
@@ -4043,6 +4068,15 @@ interface operations {
4043
4068
  };
4044
4069
  content?: never;
4045
4070
  };
4071
+ /** @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. */
4072
+ 503: {
4073
+ headers: {
4074
+ "Retry-After": components["headers"]["Retry-After"];
4075
+ "X-Request-Id": components["headers"]["RequestId"];
4076
+ [name: string]: unknown;
4077
+ };
4078
+ content?: never;
4079
+ };
4046
4080
  };
4047
4081
  };
4048
4082
  ConfigsController_get: {
@@ -4081,6 +4115,14 @@ interface operations {
4081
4115
  "application/json": components["schemas"]["ConfigResponseDto"];
4082
4116
  };
4083
4117
  };
4118
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4119
+ 401: {
4120
+ headers: {
4121
+ "X-Request-Id": components["headers"]["RequestId"];
4122
+ [name: string]: unknown;
4123
+ };
4124
+ content?: never;
4125
+ };
4084
4126
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4085
4127
  403: {
4086
4128
  headers: {
@@ -4108,6 +4150,15 @@ interface operations {
4108
4150
  };
4109
4151
  content?: never;
4110
4152
  };
4153
+ /** @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. */
4154
+ 503: {
4155
+ headers: {
4156
+ "Retry-After": components["headers"]["Retry-After"];
4157
+ "X-Request-Id": components["headers"]["RequestId"];
4158
+ [name: string]: unknown;
4159
+ };
4160
+ content?: never;
4161
+ };
4111
4162
  };
4112
4163
  };
4113
4164
  ConfigsController_delete: {
@@ -4150,6 +4201,14 @@ interface operations {
4150
4201
  };
4151
4202
  content?: never;
4152
4203
  };
4204
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4205
+ 401: {
4206
+ headers: {
4207
+ "X-Request-Id": components["headers"]["RequestId"];
4208
+ [name: string]: unknown;
4209
+ };
4210
+ content?: never;
4211
+ };
4153
4212
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4154
4213
  403: {
4155
4214
  headers: {
@@ -4177,6 +4236,15 @@ interface operations {
4177
4236
  };
4178
4237
  content?: never;
4179
4238
  };
4239
+ /** @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. */
4240
+ 503: {
4241
+ headers: {
4242
+ "Retry-After": components["headers"]["Retry-After"];
4243
+ "X-Request-Id": components["headers"]["RequestId"];
4244
+ [name: string]: unknown;
4245
+ };
4246
+ content?: never;
4247
+ };
4180
4248
  };
4181
4249
  };
4182
4250
  ConfigsController_update: {
@@ -4227,6 +4295,14 @@ interface operations {
4227
4295
  };
4228
4296
  content?: never;
4229
4297
  };
4298
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4299
+ 401: {
4300
+ headers: {
4301
+ "X-Request-Id": components["headers"]["RequestId"];
4302
+ [name: string]: unknown;
4303
+ };
4304
+ content?: never;
4305
+ };
4230
4306
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4231
4307
  403: {
4232
4308
  headers: {
@@ -4262,6 +4338,15 @@ interface operations {
4262
4338
  };
4263
4339
  content?: never;
4264
4340
  };
4341
+ /** @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. */
4342
+ 503: {
4343
+ headers: {
4344
+ "Retry-After": components["headers"]["Retry-After"];
4345
+ "X-Request-Id": components["headers"]["RequestId"];
4346
+ [name: string]: unknown;
4347
+ };
4348
+ content?: never;
4349
+ };
4265
4350
  };
4266
4351
  };
4267
4352
  ConfigSettingsController_compare: {
@@ -4324,6 +4409,14 @@ interface operations {
4324
4409
  };
4325
4410
  content?: never;
4326
4411
  };
4412
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4413
+ 401: {
4414
+ headers: {
4415
+ "X-Request-Id": components["headers"]["RequestId"];
4416
+ [name: string]: unknown;
4417
+ };
4418
+ content?: never;
4419
+ };
4327
4420
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4328
4421
  403: {
4329
4422
  headers: {
@@ -4351,6 +4444,15 @@ interface operations {
4351
4444
  };
4352
4445
  content?: never;
4353
4446
  };
4447
+ /** @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. */
4448
+ 503: {
4449
+ headers: {
4450
+ "Retry-After": components["headers"]["Retry-After"];
4451
+ "X-Request-Id": components["headers"]["RequestId"];
4452
+ [name: string]: unknown;
4453
+ };
4454
+ content?: never;
4455
+ };
4354
4456
  };
4355
4457
  };
4356
4458
  CopyEnvironmentController_copy: {
@@ -4411,6 +4513,14 @@ interface operations {
4411
4513
  };
4412
4514
  content?: never;
4413
4515
  };
4516
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4517
+ 401: {
4518
+ headers: {
4519
+ "X-Request-Id": components["headers"]["RequestId"];
4520
+ [name: string]: unknown;
4521
+ };
4522
+ content?: never;
4523
+ };
4414
4524
  /** @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
4525
  403: {
4416
4526
  headers: {
@@ -4456,6 +4566,15 @@ interface operations {
4456
4566
  };
4457
4567
  content?: never;
4458
4568
  };
4569
+ /** @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. */
4570
+ 503: {
4571
+ headers: {
4572
+ "Retry-After": components["headers"]["Retry-After"];
4573
+ "X-Request-Id": components["headers"]["RequestId"];
4574
+ [name: string]: unknown;
4575
+ };
4576
+ content?: never;
4577
+ };
4459
4578
  };
4460
4579
  };
4461
4580
  EvaluateController_evaluate: {
@@ -4511,6 +4630,14 @@ interface operations {
4511
4630
  };
4512
4631
  content?: never;
4513
4632
  };
4633
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4634
+ 401: {
4635
+ headers: {
4636
+ "X-Request-Id": components["headers"]["RequestId"];
4637
+ [name: string]: unknown;
4638
+ };
4639
+ content?: never;
4640
+ };
4514
4641
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4515
4642
  403: {
4516
4643
  headers: {
@@ -4546,6 +4673,15 @@ interface operations {
4546
4673
  };
4547
4674
  content?: never;
4548
4675
  };
4676
+ /** @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. */
4677
+ 503: {
4678
+ headers: {
4679
+ "Retry-After": components["headers"]["Retry-After"];
4680
+ "X-Request-Id": components["headers"]["RequestId"];
4681
+ [name: string]: unknown;
4682
+ };
4683
+ content?: never;
4684
+ };
4549
4685
  };
4550
4686
  };
4551
4687
  RevisionsController_list: {
@@ -4608,6 +4744,14 @@ interface operations {
4608
4744
  };
4609
4745
  content?: never;
4610
4746
  };
4747
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4748
+ 401: {
4749
+ headers: {
4750
+ "X-Request-Id": components["headers"]["RequestId"];
4751
+ [name: string]: unknown;
4752
+ };
4753
+ content?: never;
4754
+ };
4611
4755
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4612
4756
  403: {
4613
4757
  headers: {
@@ -4635,6 +4779,15 @@ interface operations {
4635
4779
  };
4636
4780
  content?: never;
4637
4781
  };
4782
+ /** @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. */
4783
+ 503: {
4784
+ headers: {
4785
+ "Retry-After": components["headers"]["Retry-After"];
4786
+ "X-Request-Id": components["headers"]["RequestId"];
4787
+ [name: string]: unknown;
4788
+ };
4789
+ content?: never;
4790
+ };
4638
4791
  };
4639
4792
  };
4640
4793
  RevisionsController_get: {
@@ -4695,6 +4848,14 @@ interface operations {
4695
4848
  };
4696
4849
  content?: never;
4697
4850
  };
4851
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4852
+ 401: {
4853
+ headers: {
4854
+ "X-Request-Id": components["headers"]["RequestId"];
4855
+ [name: string]: unknown;
4856
+ };
4857
+ content?: never;
4858
+ };
4698
4859
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4699
4860
  403: {
4700
4861
  headers: {
@@ -4722,6 +4883,15 @@ interface operations {
4722
4883
  };
4723
4884
  content?: never;
4724
4885
  };
4886
+ /** @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. */
4887
+ 503: {
4888
+ headers: {
4889
+ "Retry-After": components["headers"]["Retry-After"];
4890
+ "X-Request-Id": components["headers"]["RequestId"];
4891
+ [name: string]: unknown;
4892
+ };
4893
+ content?: never;
4894
+ };
4725
4895
  };
4726
4896
  };
4727
4897
  SdkKeysController_list: {
@@ -4765,6 +4935,14 @@ interface operations {
4765
4935
  "application/json": components["schemas"]["SdkKeyListResponseDto"];
4766
4936
  };
4767
4937
  };
4938
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
4939
+ 401: {
4940
+ headers: {
4941
+ "X-Request-Id": components["headers"]["RequestId"];
4942
+ [name: string]: unknown;
4943
+ };
4944
+ content?: never;
4945
+ };
4768
4946
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4769
4947
  403: {
4770
4948
  headers: {
@@ -4792,6 +4970,15 @@ interface operations {
4792
4970
  };
4793
4971
  content?: never;
4794
4972
  };
4973
+ /** @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. */
4974
+ 503: {
4975
+ headers: {
4976
+ "Retry-After": components["headers"]["Retry-After"];
4977
+ "X-Request-Id": components["headers"]["RequestId"];
4978
+ [name: string]: unknown;
4979
+ };
4980
+ content?: never;
4981
+ };
4795
4982
  };
4796
4983
  };
4797
4984
  SdkKeysController_reveal: {
@@ -4835,6 +5022,14 @@ interface operations {
4835
5022
  "application/json": components["schemas"]["RevealedSdkKeyListResponseDto"];
4836
5023
  };
4837
5024
  };
5025
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5026
+ 401: {
5027
+ headers: {
5028
+ "X-Request-Id": components["headers"]["RequestId"];
5029
+ [name: string]: unknown;
5030
+ };
5031
+ content?: never;
5032
+ };
4838
5033
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4839
5034
  403: {
4840
5035
  headers: {
@@ -4862,6 +5057,15 @@ interface operations {
4862
5057
  };
4863
5058
  content?: never;
4864
5059
  };
5060
+ /** @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. */
5061
+ 503: {
5062
+ headers: {
5063
+ "Retry-After": components["headers"]["Retry-After"];
5064
+ "X-Request-Id": components["headers"]["RequestId"];
5065
+ [name: string]: unknown;
5066
+ };
5067
+ content?: never;
5068
+ };
4865
5069
  };
4866
5070
  };
4867
5071
  SdkKeysController_rotate: {
@@ -4922,6 +5126,14 @@ interface operations {
4922
5126
  };
4923
5127
  content?: never;
4924
5128
  };
5129
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5130
+ 401: {
5131
+ headers: {
5132
+ "X-Request-Id": components["headers"]["RequestId"];
5133
+ [name: string]: unknown;
5134
+ };
5135
+ content?: never;
5136
+ };
4925
5137
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
4926
5138
  403: {
4927
5139
  headers: {
@@ -4959,6 +5171,15 @@ interface operations {
4959
5171
  };
4960
5172
  content?: never;
4961
5173
  };
5174
+ /** @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. */
5175
+ 503: {
5176
+ headers: {
5177
+ "Retry-After": components["headers"]["Retry-After"];
5178
+ "X-Request-Id": components["headers"]["RequestId"];
5179
+ [name: string]: unknown;
5180
+ };
5181
+ content?: never;
5182
+ };
4962
5183
  };
4963
5184
  };
4964
5185
  SdkKeysController_endGracePeriod: {
@@ -5002,6 +5223,14 @@ interface operations {
5002
5223
  "application/json": components["schemas"]["SdkKeyListResponseDto"];
5003
5224
  };
5004
5225
  };
5226
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5227
+ 401: {
5228
+ headers: {
5229
+ "X-Request-Id": components["headers"]["RequestId"];
5230
+ [name: string]: unknown;
5231
+ };
5232
+ content?: never;
5233
+ };
5005
5234
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5006
5235
  403: {
5007
5236
  headers: {
@@ -5029,6 +5258,15 @@ interface operations {
5029
5258
  };
5030
5259
  content?: never;
5031
5260
  };
5261
+ /** @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. */
5262
+ 503: {
5263
+ headers: {
5264
+ "Retry-After": components["headers"]["Retry-After"];
5265
+ "X-Request-Id": components["headers"]["RequestId"];
5266
+ [name: string]: unknown;
5267
+ };
5268
+ content?: never;
5269
+ };
5032
5270
  };
5033
5271
  };
5034
5272
  ConfigSettingsController_listValues: {
@@ -5096,6 +5334,14 @@ interface operations {
5096
5334
  };
5097
5335
  content?: never;
5098
5336
  };
5337
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5338
+ 401: {
5339
+ headers: {
5340
+ "X-Request-Id": components["headers"]["RequestId"];
5341
+ [name: string]: unknown;
5342
+ };
5343
+ content?: never;
5344
+ };
5099
5345
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5100
5346
  403: {
5101
5347
  headers: {
@@ -5123,6 +5369,15 @@ interface operations {
5123
5369
  };
5124
5370
  content?: never;
5125
5371
  };
5372
+ /** @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. */
5373
+ 503: {
5374
+ headers: {
5375
+ "Retry-After": components["headers"]["Retry-After"];
5376
+ "X-Request-Id": components["headers"]["RequestId"];
5377
+ [name: string]: unknown;
5378
+ };
5379
+ content?: never;
5380
+ };
5126
5381
  };
5127
5382
  };
5128
5383
  ConfigSettingsController_list: {
@@ -5205,6 +5460,14 @@ interface operations {
5205
5460
  };
5206
5461
  content?: never;
5207
5462
  };
5463
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5464
+ 401: {
5465
+ headers: {
5466
+ "X-Request-Id": components["headers"]["RequestId"];
5467
+ [name: string]: unknown;
5468
+ };
5469
+ content?: never;
5470
+ };
5208
5471
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5209
5472
  403: {
5210
5473
  headers: {
@@ -5232,6 +5495,15 @@ interface operations {
5232
5495
  };
5233
5496
  content?: never;
5234
5497
  };
5498
+ /** @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. */
5499
+ 503: {
5500
+ headers: {
5501
+ "Retry-After": components["headers"]["Retry-After"];
5502
+ "X-Request-Id": components["headers"]["RequestId"];
5503
+ [name: string]: unknown;
5504
+ };
5505
+ content?: never;
5506
+ };
5235
5507
  };
5236
5508
  };
5237
5509
  ConfigSettingsController_create: {
@@ -5287,6 +5559,14 @@ interface operations {
5287
5559
  };
5288
5560
  content?: never;
5289
5561
  };
5562
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5563
+ 401: {
5564
+ headers: {
5565
+ "X-Request-Id": components["headers"]["RequestId"];
5566
+ [name: string]: unknown;
5567
+ };
5568
+ content?: never;
5569
+ };
5290
5570
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5291
5571
  403: {
5292
5572
  headers: {
@@ -5332,9 +5612,10 @@ interface operations {
5332
5612
  };
5333
5613
  content?: never;
5334
5614
  };
5335
- /** @description `SERVICE_UNAVAILABLE`: the member lookup for `owner_id` is unavailable; retry. */
5615
+ /** @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
5616
  503: {
5337
5617
  headers: {
5618
+ "Retry-After": components["headers"]["Retry-After"];
5338
5619
  "X-Request-Id": components["headers"]["RequestId"];
5339
5620
  [name: string]: unknown;
5340
5621
  };
@@ -5401,6 +5682,14 @@ interface operations {
5401
5682
  };
5402
5683
  content?: never;
5403
5684
  };
5685
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5686
+ 401: {
5687
+ headers: {
5688
+ "X-Request-Id": components["headers"]["RequestId"];
5689
+ [name: string]: unknown;
5690
+ };
5691
+ content?: never;
5692
+ };
5404
5693
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5405
5694
  403: {
5406
5695
  headers: {
@@ -5452,7 +5741,16 @@ interface operations {
5452
5741
  };
5453
5742
  content?: never;
5454
5743
  };
5455
- };
5744
+ /** @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. */
5745
+ 503: {
5746
+ headers: {
5747
+ "Retry-After": components["headers"]["Retry-After"];
5748
+ "X-Request-Id": components["headers"]["RequestId"];
5749
+ [name: string]: unknown;
5750
+ };
5751
+ content?: never;
5752
+ };
5753
+ };
5456
5754
  };
5457
5755
  LimitsController_get: {
5458
5756
  parameters: {
@@ -5485,6 +5783,14 @@ interface operations {
5485
5783
  "application/json": components["schemas"]["FlagsLimitsResponseDto"];
5486
5784
  };
5487
5785
  };
5786
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5787
+ 401: {
5788
+ headers: {
5789
+ "X-Request-Id": components["headers"]["RequestId"];
5790
+ [name: string]: unknown;
5791
+ };
5792
+ content?: never;
5793
+ };
5488
5794
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5489
5795
  403: {
5490
5796
  headers: {
@@ -5504,6 +5810,15 @@ interface operations {
5504
5810
  };
5505
5811
  content?: never;
5506
5812
  };
5813
+ /** @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. */
5814
+ 503: {
5815
+ headers: {
5816
+ "Retry-After": components["headers"]["Retry-After"];
5817
+ "X-Request-Id": components["headers"]["RequestId"];
5818
+ [name: string]: unknown;
5819
+ };
5820
+ content?: never;
5821
+ };
5507
5822
  };
5508
5823
  };
5509
5824
  ProjectsController_list: {
@@ -5556,6 +5871,14 @@ interface operations {
5556
5871
  };
5557
5872
  content?: never;
5558
5873
  };
5874
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5875
+ 401: {
5876
+ headers: {
5877
+ "X-Request-Id": components["headers"]["RequestId"];
5878
+ [name: string]: unknown;
5879
+ };
5880
+ content?: never;
5881
+ };
5559
5882
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5560
5883
  403: {
5561
5884
  headers: {
@@ -5575,6 +5898,15 @@ interface operations {
5575
5898
  };
5576
5899
  content?: never;
5577
5900
  };
5901
+ /** @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. */
5902
+ 503: {
5903
+ headers: {
5904
+ "Retry-After": components["headers"]["Retry-After"];
5905
+ "X-Request-Id": components["headers"]["RequestId"];
5906
+ [name: string]: unknown;
5907
+ };
5908
+ content?: never;
5909
+ };
5578
5910
  };
5579
5911
  };
5580
5912
  ProjectsController_create: {
@@ -5625,6 +5957,14 @@ interface operations {
5625
5957
  };
5626
5958
  content?: never;
5627
5959
  };
5960
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
5961
+ 401: {
5962
+ headers: {
5963
+ "X-Request-Id": components["headers"]["RequestId"];
5964
+ [name: string]: unknown;
5965
+ };
5966
+ content?: never;
5967
+ };
5628
5968
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5629
5969
  403: {
5630
5970
  headers: {
@@ -5662,6 +6002,15 @@ interface operations {
5662
6002
  };
5663
6003
  content?: never;
5664
6004
  };
6005
+ /** @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. */
6006
+ 503: {
6007
+ headers: {
6008
+ "Retry-After": components["headers"]["Retry-After"];
6009
+ "X-Request-Id": components["headers"]["RequestId"];
6010
+ [name: string]: unknown;
6011
+ };
6012
+ content?: never;
6013
+ };
5665
6014
  };
5666
6015
  };
5667
6016
  ProjectsController_get: {
@@ -5700,6 +6049,14 @@ interface operations {
5700
6049
  "application/json": components["schemas"]["ProjectResponseDto"];
5701
6050
  };
5702
6051
  };
6052
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6053
+ 401: {
6054
+ headers: {
6055
+ "X-Request-Id": components["headers"]["RequestId"];
6056
+ [name: string]: unknown;
6057
+ };
6058
+ content?: never;
6059
+ };
5703
6060
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5704
6061
  403: {
5705
6062
  headers: {
@@ -5727,6 +6084,15 @@ interface operations {
5727
6084
  };
5728
6085
  content?: never;
5729
6086
  };
6087
+ /** @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. */
6088
+ 503: {
6089
+ headers: {
6090
+ "Retry-After": components["headers"]["Retry-After"];
6091
+ "X-Request-Id": components["headers"]["RequestId"];
6092
+ [name: string]: unknown;
6093
+ };
6094
+ content?: never;
6095
+ };
5730
6096
  };
5731
6097
  };
5732
6098
  ProjectsController_delete: {
@@ -5774,6 +6140,14 @@ interface operations {
5774
6140
  };
5775
6141
  content?: never;
5776
6142
  };
6143
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6144
+ 401: {
6145
+ headers: {
6146
+ "X-Request-Id": components["headers"]["RequestId"];
6147
+ [name: string]: unknown;
6148
+ };
6149
+ content?: never;
6150
+ };
5777
6151
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5778
6152
  403: {
5779
6153
  headers: {
@@ -5809,6 +6183,15 @@ interface operations {
5809
6183
  };
5810
6184
  content?: never;
5811
6185
  };
6186
+ /** @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. */
6187
+ 503: {
6188
+ headers: {
6189
+ "Retry-After": components["headers"]["Retry-After"];
6190
+ "X-Request-Id": components["headers"]["RequestId"];
6191
+ [name: string]: unknown;
6192
+ };
6193
+ content?: never;
6194
+ };
5812
6195
  };
5813
6196
  };
5814
6197
  ProjectsController_update: {
@@ -5859,6 +6242,14 @@ interface operations {
5859
6242
  };
5860
6243
  content?: never;
5861
6244
  };
6245
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6246
+ 401: {
6247
+ headers: {
6248
+ "X-Request-Id": components["headers"]["RequestId"];
6249
+ [name: string]: unknown;
6250
+ };
6251
+ content?: never;
6252
+ };
5862
6253
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5863
6254
  403: {
5864
6255
  headers: {
@@ -5894,6 +6285,15 @@ interface operations {
5894
6285
  };
5895
6286
  content?: never;
5896
6287
  };
6288
+ /** @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. */
6289
+ 503: {
6290
+ headers: {
6291
+ "Retry-After": components["headers"]["Retry-After"];
6292
+ "X-Request-Id": components["headers"]["RequestId"];
6293
+ [name: string]: unknown;
6294
+ };
6295
+ content?: never;
6296
+ };
5897
6297
  };
5898
6298
  };
5899
6299
  ChangesController_list: {
@@ -5983,6 +6383,14 @@ interface operations {
5983
6383
  };
5984
6384
  content?: never;
5985
6385
  };
6386
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6387
+ 401: {
6388
+ headers: {
6389
+ "X-Request-Id": components["headers"]["RequestId"];
6390
+ [name: string]: unknown;
6391
+ };
6392
+ content?: never;
6393
+ };
5986
6394
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
5987
6395
  403: {
5988
6396
  headers: {
@@ -6010,6 +6418,15 @@ interface operations {
6010
6418
  };
6011
6419
  content?: never;
6012
6420
  };
6421
+ /** @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. */
6422
+ 503: {
6423
+ headers: {
6424
+ "Retry-After": components["headers"]["Retry-After"];
6425
+ "X-Request-Id": components["headers"]["RequestId"];
6426
+ [name: string]: unknown;
6427
+ };
6428
+ content?: never;
6429
+ };
6013
6430
  };
6014
6431
  };
6015
6432
  ChangesController_export: {
@@ -6095,6 +6512,14 @@ interface operations {
6095
6512
  };
6096
6513
  content?: never;
6097
6514
  };
6515
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6516
+ 401: {
6517
+ headers: {
6518
+ "X-Request-Id": components["headers"]["RequestId"];
6519
+ [name: string]: unknown;
6520
+ };
6521
+ content?: never;
6522
+ };
6098
6523
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6099
6524
  403: {
6100
6525
  headers: {
@@ -6122,6 +6547,15 @@ interface operations {
6122
6547
  };
6123
6548
  content?: never;
6124
6549
  };
6550
+ /** @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. */
6551
+ 503: {
6552
+ headers: {
6553
+ "Retry-After": components["headers"]["Retry-After"];
6554
+ "X-Request-Id": components["headers"]["RequestId"];
6555
+ [name: string]: unknown;
6556
+ };
6557
+ content?: never;
6558
+ };
6125
6559
  };
6126
6560
  };
6127
6561
  ProjectConfigsController_list: {
@@ -6179,6 +6613,14 @@ interface operations {
6179
6613
  };
6180
6614
  content?: never;
6181
6615
  };
6616
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6617
+ 401: {
6618
+ headers: {
6619
+ "X-Request-Id": components["headers"]["RequestId"];
6620
+ [name: string]: unknown;
6621
+ };
6622
+ content?: never;
6623
+ };
6182
6624
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6183
6625
  403: {
6184
6626
  headers: {
@@ -6206,6 +6648,15 @@ interface operations {
6206
6648
  };
6207
6649
  content?: never;
6208
6650
  };
6651
+ /** @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. */
6652
+ 503: {
6653
+ headers: {
6654
+ "Retry-After": components["headers"]["Retry-After"];
6655
+ "X-Request-Id": components["headers"]["RequestId"];
6656
+ [name: string]: unknown;
6657
+ };
6658
+ content?: never;
6659
+ };
6209
6660
  };
6210
6661
  };
6211
6662
  ProjectConfigsController_create: {
@@ -6261,6 +6712,14 @@ interface operations {
6261
6712
  };
6262
6713
  content?: never;
6263
6714
  };
6715
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6716
+ 401: {
6717
+ headers: {
6718
+ "X-Request-Id": components["headers"]["RequestId"];
6719
+ [name: string]: unknown;
6720
+ };
6721
+ content?: never;
6722
+ };
6264
6723
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6265
6724
  403: {
6266
6725
  headers: {
@@ -6306,6 +6765,15 @@ interface operations {
6306
6765
  };
6307
6766
  content?: never;
6308
6767
  };
6768
+ /** @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. */
6769
+ 503: {
6770
+ headers: {
6771
+ "Retry-After": components["headers"]["Retry-After"];
6772
+ "X-Request-Id": components["headers"]["RequestId"];
6773
+ [name: string]: unknown;
6774
+ };
6775
+ content?: never;
6776
+ };
6309
6777
  };
6310
6778
  };
6311
6779
  EnvironmentsController_list: {
@@ -6344,6 +6812,14 @@ interface operations {
6344
6812
  "application/json": components["schemas"]["EnvironmentListResponseDto"];
6345
6813
  };
6346
6814
  };
6815
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6816
+ 401: {
6817
+ headers: {
6818
+ "X-Request-Id": components["headers"]["RequestId"];
6819
+ [name: string]: unknown;
6820
+ };
6821
+ content?: never;
6822
+ };
6347
6823
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6348
6824
  403: {
6349
6825
  headers: {
@@ -6371,6 +6847,15 @@ interface operations {
6371
6847
  };
6372
6848
  content?: never;
6373
6849
  };
6850
+ /** @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. */
6851
+ 503: {
6852
+ headers: {
6853
+ "Retry-After": components["headers"]["Retry-After"];
6854
+ "X-Request-Id": components["headers"]["RequestId"];
6855
+ [name: string]: unknown;
6856
+ };
6857
+ content?: never;
6858
+ };
6374
6859
  };
6375
6860
  };
6376
6861
  EnvironmentsController_create: {
@@ -6426,6 +6911,14 @@ interface operations {
6426
6911
  };
6427
6912
  content?: never;
6428
6913
  };
6914
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
6915
+ 401: {
6916
+ headers: {
6917
+ "X-Request-Id": components["headers"]["RequestId"];
6918
+ [name: string]: unknown;
6919
+ };
6920
+ content?: never;
6921
+ };
6429
6922
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6430
6923
  403: {
6431
6924
  headers: {
@@ -6471,6 +6964,15 @@ interface operations {
6471
6964
  };
6472
6965
  content?: never;
6473
6966
  };
6967
+ /** @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. */
6968
+ 503: {
6969
+ headers: {
6970
+ "Retry-After": components["headers"]["Retry-After"];
6971
+ "X-Request-Id": components["headers"]["RequestId"];
6972
+ [name: string]: unknown;
6973
+ };
6974
+ content?: never;
6975
+ };
6474
6976
  };
6475
6977
  };
6476
6978
  EnvironmentsController_get: {
@@ -6514,6 +7016,14 @@ interface operations {
6514
7016
  "application/json": components["schemas"]["EnvironmentResponseDto"];
6515
7017
  };
6516
7018
  };
7019
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7020
+ 401: {
7021
+ headers: {
7022
+ "X-Request-Id": components["headers"]["RequestId"];
7023
+ [name: string]: unknown;
7024
+ };
7025
+ content?: never;
7026
+ };
6517
7027
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6518
7028
  403: {
6519
7029
  headers: {
@@ -6541,6 +7051,15 @@ interface operations {
6541
7051
  };
6542
7052
  content?: never;
6543
7053
  };
7054
+ /** @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. */
7055
+ 503: {
7056
+ headers: {
7057
+ "Retry-After": components["headers"]["Retry-After"];
7058
+ "X-Request-Id": components["headers"]["RequestId"];
7059
+ [name: string]: unknown;
7060
+ };
7061
+ content?: never;
7062
+ };
6544
7063
  };
6545
7064
  };
6546
7065
  EnvironmentsController_delete: {
@@ -6588,6 +7107,14 @@ interface operations {
6588
7107
  };
6589
7108
  content?: never;
6590
7109
  };
7110
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7111
+ 401: {
7112
+ headers: {
7113
+ "X-Request-Id": components["headers"]["RequestId"];
7114
+ [name: string]: unknown;
7115
+ };
7116
+ content?: never;
7117
+ };
6591
7118
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6592
7119
  403: {
6593
7120
  headers: {
@@ -6623,6 +7150,15 @@ interface operations {
6623
7150
  };
6624
7151
  content?: never;
6625
7152
  };
7153
+ /** @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. */
7154
+ 503: {
7155
+ headers: {
7156
+ "Retry-After": components["headers"]["Retry-After"];
7157
+ "X-Request-Id": components["headers"]["RequestId"];
7158
+ [name: string]: unknown;
7159
+ };
7160
+ content?: never;
7161
+ };
6626
7162
  };
6627
7163
  };
6628
7164
  EnvironmentsController_update: {
@@ -6678,6 +7214,14 @@ interface operations {
6678
7214
  };
6679
7215
  content?: never;
6680
7216
  };
7217
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7218
+ 401: {
7219
+ headers: {
7220
+ "X-Request-Id": components["headers"]["RequestId"];
7221
+ [name: string]: unknown;
7222
+ };
7223
+ content?: never;
7224
+ };
6681
7225
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6682
7226
  403: {
6683
7227
  headers: {
@@ -6705,6 +7249,15 @@ interface operations {
6705
7249
  };
6706
7250
  content?: never;
6707
7251
  };
7252
+ /** @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. */
7253
+ 503: {
7254
+ headers: {
7255
+ "Retry-After": components["headers"]["Retry-After"];
7256
+ "X-Request-Id": components["headers"]["RequestId"];
7257
+ [name: string]: unknown;
7258
+ };
7259
+ content?: never;
7260
+ };
6708
7261
  };
6709
7262
  };
6710
7263
  ProjectSegmentsController_list: {
@@ -6762,6 +7315,14 @@ interface operations {
6762
7315
  };
6763
7316
  content?: never;
6764
7317
  };
7318
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7319
+ 401: {
7320
+ headers: {
7321
+ "X-Request-Id": components["headers"]["RequestId"];
7322
+ [name: string]: unknown;
7323
+ };
7324
+ content?: never;
7325
+ };
6765
7326
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6766
7327
  403: {
6767
7328
  headers: {
@@ -6789,6 +7350,15 @@ interface operations {
6789
7350
  };
6790
7351
  content?: never;
6791
7352
  };
7353
+ /** @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. */
7354
+ 503: {
7355
+ headers: {
7356
+ "Retry-After": components["headers"]["Retry-After"];
7357
+ "X-Request-Id": components["headers"]["RequestId"];
7358
+ [name: string]: unknown;
7359
+ };
7360
+ content?: never;
7361
+ };
6792
7362
  };
6793
7363
  };
6794
7364
  ProjectSegmentsController_create: {
@@ -6844,6 +7414,14 @@ interface operations {
6844
7414
  };
6845
7415
  content?: never;
6846
7416
  };
7417
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7418
+ 401: {
7419
+ headers: {
7420
+ "X-Request-Id": components["headers"]["RequestId"];
7421
+ [name: string]: unknown;
7422
+ };
7423
+ content?: never;
7424
+ };
6847
7425
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6848
7426
  403: {
6849
7427
  headers: {
@@ -6889,6 +7467,15 @@ interface operations {
6889
7467
  };
6890
7468
  content?: never;
6891
7469
  };
7470
+ /** @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. */
7471
+ 503: {
7472
+ headers: {
7473
+ "Retry-After": components["headers"]["Retry-After"];
7474
+ "X-Request-Id": components["headers"]["RequestId"];
7475
+ [name: string]: unknown;
7476
+ };
7477
+ content?: never;
7478
+ };
6892
7479
  };
6893
7480
  };
6894
7481
  SegmentsController_get: {
@@ -6927,6 +7514,14 @@ interface operations {
6927
7514
  "application/json": components["schemas"]["SegmentDetailResponseDto"];
6928
7515
  };
6929
7516
  };
7517
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7518
+ 401: {
7519
+ headers: {
7520
+ "X-Request-Id": components["headers"]["RequestId"];
7521
+ [name: string]: unknown;
7522
+ };
7523
+ content?: never;
7524
+ };
6930
7525
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
6931
7526
  403: {
6932
7527
  headers: {
@@ -6954,6 +7549,15 @@ interface operations {
6954
7549
  };
6955
7550
  content?: never;
6956
7551
  };
7552
+ /** @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. */
7553
+ 503: {
7554
+ headers: {
7555
+ "Retry-After": components["headers"]["Retry-After"];
7556
+ "X-Request-Id": components["headers"]["RequestId"];
7557
+ [name: string]: unknown;
7558
+ };
7559
+ content?: never;
7560
+ };
6957
7561
  };
6958
7562
  };
6959
7563
  SegmentsController_delete: {
@@ -6996,6 +7600,14 @@ interface operations {
6996
7600
  };
6997
7601
  content?: never;
6998
7602
  };
7603
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7604
+ 401: {
7605
+ headers: {
7606
+ "X-Request-Id": components["headers"]["RequestId"];
7607
+ [name: string]: unknown;
7608
+ };
7609
+ content?: never;
7610
+ };
6999
7611
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7000
7612
  403: {
7001
7613
  headers: {
@@ -7031,6 +7643,15 @@ interface operations {
7031
7643
  };
7032
7644
  content?: never;
7033
7645
  };
7646
+ /** @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. */
7647
+ 503: {
7648
+ headers: {
7649
+ "Retry-After": components["headers"]["Retry-After"];
7650
+ "X-Request-Id": components["headers"]["RequestId"];
7651
+ [name: string]: unknown;
7652
+ };
7653
+ content?: never;
7654
+ };
7034
7655
  };
7035
7656
  };
7036
7657
  SegmentsController_update: {
@@ -7081,6 +7702,14 @@ interface operations {
7081
7702
  };
7082
7703
  content?: never;
7083
7704
  };
7705
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7706
+ 401: {
7707
+ headers: {
7708
+ "X-Request-Id": components["headers"]["RequestId"];
7709
+ [name: string]: unknown;
7710
+ };
7711
+ content?: never;
7712
+ };
7084
7713
  /** @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
7714
  403: {
7086
7715
  headers: {
@@ -7124,6 +7753,15 @@ interface operations {
7124
7753
  };
7125
7754
  content?: never;
7126
7755
  };
7756
+ /** @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. */
7757
+ 503: {
7758
+ headers: {
7759
+ "Retry-After": components["headers"]["Retry-After"];
7760
+ "X-Request-Id": components["headers"]["RequestId"];
7761
+ [name: string]: unknown;
7762
+ };
7763
+ content?: never;
7764
+ };
7127
7765
  };
7128
7766
  };
7129
7767
  SegmentsController_reveal: {
@@ -7162,6 +7800,14 @@ interface operations {
7162
7800
  "application/json": components["schemas"]["ConfidentialRevealResponseDto"];
7163
7801
  };
7164
7802
  };
7803
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7804
+ 401: {
7805
+ headers: {
7806
+ "X-Request-Id": components["headers"]["RequestId"];
7807
+ [name: string]: unknown;
7808
+ };
7809
+ content?: never;
7810
+ };
7165
7811
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7166
7812
  403: {
7167
7813
  headers: {
@@ -7197,6 +7843,15 @@ interface operations {
7197
7843
  };
7198
7844
  content?: never;
7199
7845
  };
7846
+ /** @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. */
7847
+ 503: {
7848
+ headers: {
7849
+ "Retry-After": components["headers"]["Retry-After"];
7850
+ "X-Request-Id": components["headers"]["RequestId"];
7851
+ [name: string]: unknown;
7852
+ };
7853
+ content?: never;
7854
+ };
7200
7855
  };
7201
7856
  };
7202
7857
  SettingsController_get: {
@@ -7235,6 +7890,14 @@ interface operations {
7235
7890
  "application/json": components["schemas"]["SettingDetailResponseDto"];
7236
7891
  };
7237
7892
  };
7893
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7894
+ 401: {
7895
+ headers: {
7896
+ "X-Request-Id": components["headers"]["RequestId"];
7897
+ [name: string]: unknown;
7898
+ };
7899
+ content?: never;
7900
+ };
7238
7901
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7239
7902
  403: {
7240
7903
  headers: {
@@ -7262,6 +7925,15 @@ interface operations {
7262
7925
  };
7263
7926
  content?: never;
7264
7927
  };
7928
+ /** @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. */
7929
+ 503: {
7930
+ headers: {
7931
+ "Retry-After": components["headers"]["Retry-After"];
7932
+ "X-Request-Id": components["headers"]["RequestId"];
7933
+ [name: string]: unknown;
7934
+ };
7935
+ content?: never;
7936
+ };
7265
7937
  };
7266
7938
  };
7267
7939
  SettingsController_delete: {
@@ -7304,6 +7976,14 @@ interface operations {
7304
7976
  };
7305
7977
  content?: never;
7306
7978
  };
7979
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
7980
+ 401: {
7981
+ headers: {
7982
+ "X-Request-Id": components["headers"]["RequestId"];
7983
+ [name: string]: unknown;
7984
+ };
7985
+ content?: never;
7986
+ };
7307
7987
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7308
7988
  403: {
7309
7989
  headers: {
@@ -7339,6 +8019,15 @@ interface operations {
7339
8019
  };
7340
8020
  content?: never;
7341
8021
  };
8022
+ /** @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. */
8023
+ 503: {
8024
+ headers: {
8025
+ "Retry-After": components["headers"]["Retry-After"];
8026
+ "X-Request-Id": components["headers"]["RequestId"];
8027
+ [name: string]: unknown;
8028
+ };
8029
+ content?: never;
8030
+ };
7342
8031
  };
7343
8032
  };
7344
8033
  SettingsController_update: {
@@ -7389,6 +8078,14 @@ interface operations {
7389
8078
  };
7390
8079
  content?: never;
7391
8080
  };
8081
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8082
+ 401: {
8083
+ headers: {
8084
+ "X-Request-Id": components["headers"]["RequestId"];
8085
+ [name: string]: unknown;
8086
+ };
8087
+ content?: never;
8088
+ };
7392
8089
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7393
8090
  403: {
7394
8091
  headers: {
@@ -7432,9 +8129,10 @@ interface operations {
7432
8129
  };
7433
8130
  content?: never;
7434
8131
  };
7435
- /** @description `SERVICE_UNAVAILABLE`: the member lookup for `owner_id` is unavailable; retry. */
8132
+ /** @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
8133
  503: {
7437
8134
  headers: {
8135
+ "Retry-After": components["headers"]["Retry-After"];
7438
8136
  "X-Request-Id": components["headers"]["RequestId"];
7439
8137
  [name: string]: unknown;
7440
8138
  };
@@ -7483,6 +8181,14 @@ interface operations {
7483
8181
  "application/json": components["schemas"]["SettingValueResponseDto"];
7484
8182
  };
7485
8183
  };
8184
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8185
+ 401: {
8186
+ headers: {
8187
+ "X-Request-Id": components["headers"]["RequestId"];
8188
+ [name: string]: unknown;
8189
+ };
8190
+ content?: never;
8191
+ };
7486
8192
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7487
8193
  403: {
7488
8194
  headers: {
@@ -7510,6 +8216,15 @@ interface operations {
7510
8216
  };
7511
8217
  content?: never;
7512
8218
  };
8219
+ /** @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. */
8220
+ 503: {
8221
+ headers: {
8222
+ "Retry-After": components["headers"]["Retry-After"];
8223
+ "X-Request-Id": components["headers"]["RequestId"];
8224
+ [name: string]: unknown;
8225
+ };
8226
+ content?: never;
8227
+ };
7513
8228
  };
7514
8229
  };
7515
8230
  SettingsController_putValue: {
@@ -7567,6 +8282,14 @@ interface operations {
7567
8282
  };
7568
8283
  content?: never;
7569
8284
  };
8285
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8286
+ 401: {
8287
+ headers: {
8288
+ "X-Request-Id": components["headers"]["RequestId"];
8289
+ [name: string]: unknown;
8290
+ };
8291
+ content?: never;
8292
+ };
7570
8293
  /** @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
8294
  403: {
7572
8295
  headers: {
@@ -7610,6 +8333,15 @@ interface operations {
7610
8333
  };
7611
8334
  content?: never;
7612
8335
  };
8336
+ /** @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. */
8337
+ 503: {
8338
+ headers: {
8339
+ "Retry-After": components["headers"]["Retry-After"];
8340
+ "X-Request-Id": components["headers"]["RequestId"];
8341
+ [name: string]: unknown;
8342
+ };
8343
+ content?: never;
8344
+ };
7613
8345
  };
7614
8346
  };
7615
8347
  SettingsController_patchValue: {
@@ -7667,6 +8399,14 @@ interface operations {
7667
8399
  };
7668
8400
  content?: never;
7669
8401
  };
8402
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8403
+ 401: {
8404
+ headers: {
8405
+ "X-Request-Id": components["headers"]["RequestId"];
8406
+ [name: string]: unknown;
8407
+ };
8408
+ content?: never;
8409
+ };
7670
8410
  /** @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
8411
  403: {
7672
8412
  headers: {
@@ -7710,6 +8450,15 @@ interface operations {
7710
8450
  };
7711
8451
  content?: never;
7712
8452
  };
8453
+ /** @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. */
8454
+ 503: {
8455
+ headers: {
8456
+ "Retry-After": components["headers"]["Retry-After"];
8457
+ "X-Request-Id": components["headers"]["RequestId"];
8458
+ [name: string]: unknown;
8459
+ };
8460
+ content?: never;
8461
+ };
7713
8462
  };
7714
8463
  };
7715
8464
  SettingsController_revealValue: {
@@ -7753,6 +8502,14 @@ interface operations {
7753
8502
  "application/json": components["schemas"]["ConfidentialRevealResponseDto"];
7754
8503
  };
7755
8504
  };
8505
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8506
+ 401: {
8507
+ headers: {
8508
+ "X-Request-Id": components["headers"]["RequestId"];
8509
+ [name: string]: unknown;
8510
+ };
8511
+ content?: never;
8512
+ };
7756
8513
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7757
8514
  403: {
7758
8515
  headers: {
@@ -7788,6 +8545,15 @@ interface operations {
7788
8545
  };
7789
8546
  content?: never;
7790
8547
  };
8548
+ /** @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. */
8549
+ 503: {
8550
+ headers: {
8551
+ "Retry-After": components["headers"]["Retry-After"];
8552
+ "X-Request-Id": components["headers"]["RequestId"];
8553
+ [name: string]: unknown;
8554
+ };
8555
+ content?: never;
8556
+ };
7791
8557
  };
7792
8558
  };
7793
8559
  StatsController_get: {
@@ -7821,6 +8587,14 @@ interface operations {
7821
8587
  "application/json": components["schemas"]["FlagsStatsResponseDto"];
7822
8588
  };
7823
8589
  };
8590
+ /** @description Missing, expired or invalid bearer token (`UNAUTHORIZED`). Send a workspace API key or a platform session token as `Authorization: Bearer <token>`. */
8591
+ 401: {
8592
+ headers: {
8593
+ "X-Request-Id": components["headers"]["RequestId"];
8594
+ [name: string]: unknown;
8595
+ };
8596
+ content?: never;
8597
+ };
7824
8598
  /** @description The caller lacks the action this route needs (`message` names it), or the workspace has not enabled Flags (`SERVICE_NOT_ENABLED`). */
7825
8599
  403: {
7826
8600
  headers: {
@@ -7840,6 +8614,15 @@ interface operations {
7840
8614
  };
7841
8615
  content?: never;
7842
8616
  };
8617
+ /** @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. */
8618
+ 503: {
8619
+ headers: {
8620
+ "Retry-After": components["headers"]["Retry-After"];
8621
+ "X-Request-Id": components["headers"]["RequestId"];
8622
+ [name: string]: unknown;
8623
+ };
8624
+ content?: never;
8625
+ };
7843
8626
  };
7844
8627
  };
7845
8628
  WebhooksController_flags_workspace_listEndpoints: {
@@ -7907,6 +8690,15 @@ interface operations {
7907
8690
  };
7908
8691
  content?: never;
7909
8692
  };
8693
+ /** @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. */
8694
+ 503: {
8695
+ headers: {
8696
+ "Retry-After": components["headers"]["Retry-After"];
8697
+ "X-Request-Id": components["headers"]["RequestId"];
8698
+ [name: string]: unknown;
8699
+ };
8700
+ content?: never;
8701
+ };
7910
8702
  };
7911
8703
  };
7912
8704
  WebhooksController_flags_workspace_createEndpoint: {
@@ -8001,6 +8793,15 @@ interface operations {
8001
8793
  };
8002
8794
  content?: never;
8003
8795
  };
8796
+ /** @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. */
8797
+ 503: {
8798
+ headers: {
8799
+ "Retry-After": components["headers"]["Retry-After"];
8800
+ "X-Request-Id": components["headers"]["RequestId"];
8801
+ [name: string]: unknown;
8802
+ };
8803
+ content?: never;
8804
+ };
8004
8805
  };
8005
8806
  };
8006
8807
  WebhooksController_flags_workspace_getEndpoint: {
@@ -8081,6 +8882,15 @@ interface operations {
8081
8882
  };
8082
8883
  content?: never;
8083
8884
  };
8885
+ /** @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. */
8886
+ 503: {
8887
+ headers: {
8888
+ "Retry-After": components["headers"]["Retry-After"];
8889
+ "X-Request-Id": components["headers"]["RequestId"];
8890
+ [name: string]: unknown;
8891
+ };
8892
+ content?: never;
8893
+ };
8084
8894
  };
8085
8895
  };
8086
8896
  WebhooksController_flags_workspace_deleteEndpoint: {
@@ -8160,6 +8970,15 @@ interface operations {
8160
8970
  };
8161
8971
  content?: never;
8162
8972
  };
8973
+ /** @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. */
8974
+ 503: {
8975
+ headers: {
8976
+ "Retry-After": components["headers"]["Retry-After"];
8977
+ "X-Request-Id": components["headers"]["RequestId"];
8978
+ [name: string]: unknown;
8979
+ };
8980
+ content?: never;
8981
+ };
8163
8982
  };
8164
8983
  };
8165
8984
  WebhooksController_flags_workspace_updateEndpoint: {
@@ -8267,6 +9086,15 @@ interface operations {
8267
9086
  };
8268
9087
  content?: never;
8269
9088
  };
9089
+ /** @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. */
9090
+ 503: {
9091
+ headers: {
9092
+ "Retry-After": components["headers"]["Retry-After"];
9093
+ "X-Request-Id": components["headers"]["RequestId"];
9094
+ [name: string]: unknown;
9095
+ };
9096
+ content?: never;
9097
+ };
8270
9098
  };
8271
9099
  };
8272
9100
  WebhooksController_flags_workspace_rotateSecret: {
@@ -8366,6 +9194,15 @@ interface operations {
8366
9194
  };
8367
9195
  content?: never;
8368
9196
  };
9197
+ /** @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. */
9198
+ 503: {
9199
+ headers: {
9200
+ "Retry-After": components["headers"]["Retry-After"];
9201
+ "X-Request-Id": components["headers"]["RequestId"];
9202
+ [name: string]: unknown;
9203
+ };
9204
+ content?: never;
9205
+ };
8369
9206
  };
8370
9207
  };
8371
9208
  WebhooksController_flags_workspace_sendTest: {
@@ -8466,6 +9303,15 @@ interface operations {
8466
9303
  };
8467
9304
  content?: never;
8468
9305
  };
9306
+ /** @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. */
9307
+ 503: {
9308
+ headers: {
9309
+ "Retry-After": components["headers"]["Retry-After"];
9310
+ "X-Request-Id": components["headers"]["RequestId"];
9311
+ [name: string]: unknown;
9312
+ };
9313
+ content?: never;
9314
+ };
8469
9315
  };
8470
9316
  };
8471
9317
  WebhooksController_flags_workspace_listEventTypes: {
@@ -8525,6 +9371,15 @@ interface operations {
8525
9371
  };
8526
9372
  content?: never;
8527
9373
  };
9374
+ /** @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. */
9375
+ 503: {
9376
+ headers: {
9377
+ "Retry-After": components["headers"]["Retry-After"];
9378
+ "X-Request-Id": components["headers"]["RequestId"];
9379
+ [name: string]: unknown;
9380
+ };
9381
+ content?: never;
9382
+ };
8528
9383
  };
8529
9384
  };
8530
9385
  WebhooksController_flags_workspace_listEvents: {
@@ -8645,6 +9500,15 @@ interface operations {
8645
9500
  };
8646
9501
  content?: never;
8647
9502
  };
9503
+ /** @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. */
9504
+ 503: {
9505
+ headers: {
9506
+ "Retry-After": components["headers"]["Retry-After"];
9507
+ "X-Request-Id": components["headers"]["RequestId"];
9508
+ [name: string]: unknown;
9509
+ };
9510
+ content?: never;
9511
+ };
8648
9512
  };
8649
9513
  };
8650
9514
  WebhooksController_flags_workspace_getEvent: {
@@ -8722,6 +9586,15 @@ interface operations {
8722
9586
  };
8723
9587
  content?: never;
8724
9588
  };
9589
+ /** @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. */
9590
+ 503: {
9591
+ headers: {
9592
+ "Retry-After": components["headers"]["Retry-After"];
9593
+ "X-Request-Id": components["headers"]["RequestId"];
9594
+ [name: string]: unknown;
9595
+ };
9596
+ content?: never;
9597
+ };
8725
9598
  };
8726
9599
  };
8727
9600
  WebhooksController_flags_workspace_replay: {
@@ -8820,6 +9693,15 @@ interface operations {
8820
9693
  };
8821
9694
  content?: never;
8822
9695
  };
9696
+ /** @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. */
9697
+ 503: {
9698
+ headers: {
9699
+ "Retry-After": components["headers"]["Retry-After"];
9700
+ "X-Request-Id": components["headers"]["RequestId"];
9701
+ [name: string]: unknown;
9702
+ };
9703
+ content?: never;
9704
+ };
8823
9705
  };
8824
9706
  };
8825
9707
  }
@@ -8857,7 +9739,7 @@ declare const FlagsEvaluationReason: {
8857
9739
  };
8858
9740
  type FlagsEvaluationWarningCode = components["schemas"]["FlagsEvaluationWarningCode"];
8859
9741
  declare const FlagsEvaluationWarningCode: {
8860
- values: readonly ["missing_user", "missing_attribute", "invalid_attribute", "unknown_comparator", "missing_percentage_attribute"];
9742
+ values: readonly ["missing_user", "missing_attribute", "invalid_attribute", "unknown_comparator", "missing_percentage_attribute", "iso_date_converted"];
8861
9743
  };
8862
9744
  type FlagsHistoryExportFormat = components["schemas"]["FlagsHistoryExportFormat"];
8863
9745
  declare const FlagsHistoryExportFormat: {
@@ -9246,9 +10128,11 @@ declare class ChangesResource extends APIResource {
9246
10128
  *
9247
10129
  * @param changeId - Id of the change.
9248
10130
  * @param options - Per-request options.
10131
+ * @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
10132
  * @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
10133
  * @throws {NotFoundError} 404 NOT_FOUND, CHANGE_NOT_FOUND: `CHANGE_NOT_FOUND`: no such change in this workspace (or it was pruned).
9251
10134
  * @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.
10135
+ * @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
10136
  * @see GET /v1/workspaces/{workspace_id}/changes/{change_id}
9253
10137
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-changes-change-id
9254
10138
  * @example
@@ -9266,11 +10150,13 @@ declare class ChangesResource extends APIResource {
9266
10150
  * @param params - `Flags.ChangeRevertParams`.
9267
10151
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9268
10152
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: `version` is missing (value and segment restores) or invalid.
10153
+ * @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
10154
  * @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
10155
  * @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
10156
  * @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
10157
  * @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
10158
  * @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.
10159
+ * @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
10160
  * @see POST /v1/workspaces/{workspace_id}/changes/{change_id}/revert
9275
10161
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-changes-change-id-revert
9276
10162
  * @example
@@ -9292,9 +10178,11 @@ declare class ConfigsEnvironmentsRevisionsResource extends APIResource {
9292
10178
  * @param params - `Flags.ConfigEnvironmentRevisionListParams`.
9293
10179
  * @param options - Per-request options.
9294
10180
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad cursor or `limit`.
10181
+ * @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
10182
  * @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
10183
  * @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
10184
  * @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.
10185
+ * @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
10186
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/revisions
9299
10187
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-revisions
9300
10188
  * @example
@@ -9316,9 +10204,11 @@ declare class ConfigsEnvironmentsRevisionsResource extends APIResource {
9316
10204
  * @param revision - The revision number.
9317
10205
  * @param options - Per-request options.
9318
10206
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: `revision` is not a positive integer.
10207
+ * @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
10208
  * @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
10209
  * @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
10210
  * @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.
10211
+ * @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
10212
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/revisions/{revision}
9323
10213
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-revisions-revision
9324
10214
  * @example
@@ -9338,9 +10228,11 @@ declare class ConfigsEnvironmentsSdkKeysResource extends APIResource {
9338
10228
  * @param configId - Id of the config.
9339
10229
  * @param environmentId - Id of an environment of the same project.
9340
10230
  * @param options - Per-request options.
10231
+ * @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
10232
  * @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
10233
  * @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
10234
  * @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.
10235
+ * @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
10236
  * @see DELETE /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/sdk-keys/secondary
9345
10237
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-sdk-keys-secondary
9346
10238
  * @example
@@ -9357,9 +10249,11 @@ declare class ConfigsEnvironmentsSdkKeysResource extends APIResource {
9357
10249
  * @param configId - Id of the config.
9358
10250
  * @param environmentId - Id of an environment of the same project.
9359
10251
  * @param options - Per-request options.
10252
+ * @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
10253
  * @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
10254
  * @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
10255
  * @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.
10256
+ * @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
10257
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/sdk-keys
9364
10258
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-sdk-keys
9365
10259
  * @example
@@ -9376,9 +10270,11 @@ declare class ConfigsEnvironmentsSdkKeysResource extends APIResource {
9376
10270
  * @param configId - Id of the config.
9377
10271
  * @param environmentId - Id of an environment of the same project.
9378
10272
  * @param options - Per-request options.
10273
+ * @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
10274
  * @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
10275
  * @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
10276
  * @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.
10277
+ * @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
10278
  * @see POST /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/sdk-keys/reveal
9383
10279
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-sdk-keys-reveal
9384
10280
  * @example
@@ -9397,10 +10293,12 @@ declare class ConfigsEnvironmentsSdkKeysResource extends APIResource {
9397
10293
  * @param params - `Flags.ConfigEnvironmentSdkKeyRotateParams`.
9398
10294
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9399
10295
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: `grace_hours` is not an integer from 0 to 168, or `note` is too long.
10296
+ * @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
10297
  * @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
10298
  * @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
10299
  * @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
10300
  * @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.
10301
+ * @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
10302
  * @see POST /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/sdk-keys/rotate
9405
10303
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-sdk-keys-rotate
9406
10304
  * @example
@@ -9422,9 +10320,11 @@ declare class ConfigsEnvironmentsValuesResource extends APIResource {
9422
10320
  * @param params - `Flags.ConfigEnvironmentValueListParams`.
9423
10321
  * @param options - Per-request options.
9424
10322
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad cursor, `limit` or `include`.
10323
+ * @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
10324
  * @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
10325
  * @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
10326
  * @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.
10327
+ * @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
10328
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/values
9429
10329
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-values
9430
10330
  * @example
@@ -9453,11 +10353,13 @@ declare class ConfigsEnvironmentsResource extends APIResource {
9453
10353
  * @param params - `Flags.ConfigEnvironmentCopyParams`.
9454
10354
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9455
10355
  * @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.
10356
+ * @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
10357
  * @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
10358
  * @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
10359
  * @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
10360
  * @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
10361
  * @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.
10362
+ * @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
10363
  * @see POST /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/copy
9462
10364
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-copy
9463
10365
  * @example
@@ -9479,10 +10381,12 @@ declare class ConfigsEnvironmentsResource extends APIResource {
9479
10381
  * @param params - `Flags.ConfigEnvironmentEvaluateParams`.
9480
10382
  * @param options - Per-request options.
9481
10383
  * @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`.
10384
+ * @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
10385
  * @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
10386
  * @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
10387
  * @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
10388
  * @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.
10389
+ * @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
10390
  * @see POST /v1/workspaces/{workspace_id}/configs/{config_id}/environments/{environment_id}/evaluate
9487
10391
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-configs-config-id-environments-environment-id-evaluate
9488
10392
  * @example
@@ -9503,12 +10407,13 @@ declare class ConfigsSettingsResource extends APIResource {
9503
10407
  * @param params - `Flags.ConfigSettingsCreateParams`.
9504
10408
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9505
10409
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is missing or invalid.
10410
+ * @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
10411
  * @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
10412
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND: `CONFIG_NOT_FOUND`: no such config in this workspace.
9508
10413
  * @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
10414
  * @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
10415
  * @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.
10416
+ * @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
10417
  * @see POST /v1/workspaces/{workspace_id}/configs/{config_id}/settings
9513
10418
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-configs-config-id-settings
9514
10419
  * @example
@@ -9526,9 +10431,11 @@ declare class ConfigsSettingsResource extends APIResource {
9526
10431
  * @param params - `Flags.ConfigSettingsListParams`.
9527
10432
  * @param options - Per-request options.
9528
10433
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad filter, cursor or `limit`.
10434
+ * @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
10435
  * @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
10436
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND: `CONFIG_NOT_FOUND`: no such config in this workspace.
9531
10437
  * @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.
10438
+ * @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
10439
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}/settings
9533
10440
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id-settings
9534
10441
  * @example
@@ -9555,9 +10462,11 @@ declare class ConfigsResource extends APIResource {
9555
10462
  * @param params - `Flags.ConfigCompareParams`.
9556
10463
  * @param options - Per-request options.
9557
10464
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: `environment_ids` is not 2-5 environment ids.
10465
+ * @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
10466
  * @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
10467
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `CONFIG_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`.
9560
10468
  * @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.
10469
+ * @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
10470
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}/compare
9562
10471
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id-compare
9563
10472
  * @example
@@ -9578,9 +10487,11 @@ declare class ConfigsResource extends APIResource {
9578
10487
  * @param configId - Id of the config.
9579
10488
  * @param params - `Flags.ConfigDeleteParams`.
9580
10489
  * @param options - Per-request options.
10490
+ * @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
10491
  * @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
10492
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND: `CONFIG_NOT_FOUND`: no such config in this workspace.
9583
10493
  * @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.
10494
+ * @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
10495
  * @see DELETE /v1/workspaces/{workspace_id}/configs/{config_id}
9585
10496
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-configs-config-id
9586
10497
  * @example
@@ -9594,9 +10505,11 @@ declare class ConfigsResource extends APIResource {
9594
10505
  *
9595
10506
  * @param configId - Id of the config.
9596
10507
  * @param options - Per-request options.
10508
+ * @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
10509
  * @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
10510
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND: `CONFIG_NOT_FOUND`: no such config in this workspace.
9599
10511
  * @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.
10512
+ * @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
10513
  * @see GET /v1/workspaces/{workspace_id}/configs/{config_id}
9601
10514
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-configs-config-id
9602
10515
  * @example
@@ -9614,10 +10527,12 @@ declare class ConfigsResource extends APIResource {
9614
10527
  * @param params - `Flags.ConfigUpdateParams`.
9615
10528
  * @param options - Per-request options.
9616
10529
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is invalid.
10530
+ * @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
10531
  * @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
10532
  * @throws {NotFoundError} 404 NOT_FOUND, CONFIG_NOT_FOUND: `CONFIG_NOT_FOUND`: no such config in this workspace.
9619
10533
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS: `KEY_ALREADY_EXISTS`: the project already has a config with this key.
9620
10534
  * @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.
10535
+ * @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
10536
  * @see PATCH /v1/workspaces/{workspace_id}/configs/{config_id}
9622
10537
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-configs-config-id
9623
10538
  * @example
@@ -9637,12 +10552,14 @@ declare class ImportsResource extends APIResource {
9637
10552
  * @param params - `Flags.ImportCreateParams`.
9638
10553
  * @param options - Per-request options.
9639
10554
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is missing or invalid (`source` must be `configcat`, `configcat_product_id` a uuid).
10555
+ * @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
10556
  * @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
10557
  * @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
10558
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS: `KEY_ALREADY_EXISTS`: a project with the target name already exists (pass `target_project_name`).
9643
10559
  * @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
10560
  * @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
10561
  * @throws {InternalServerError} 502 BAD_GATEWAY, IMPORT_SOURCE_UNAVAILABLE: `IMPORT_SOURCE_UNAVAILABLE`: ConfigCat answered 5xx, timed out or could not be reached.
10562
+ * @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
10563
  * @see POST /v1/workspaces/{workspace_id}/imports
9647
10564
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-imports
9648
10565
  * @example
@@ -9665,8 +10582,10 @@ declare class LimitsResource extends APIResource {
9665
10582
  * The preview limits that apply to this workspace and how much of the counted ones it uses.
9666
10583
  *
9667
10584
  * @param options - Per-request options.
10585
+ * @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
10586
  * @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
10587
  * @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.
10588
+ * @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
10589
  * @see GET /v1/workspaces/{workspace_id}/limits
9671
10590
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-limits
9672
10591
  * @example
@@ -9687,9 +10606,11 @@ declare class ProjectsChangesResource extends APIResource {
9687
10606
  * @param params - `Flags.ProjectChangeExportParams`.
9688
10607
  * @param options - Per-request options.
9689
10608
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad filter or `format`, or `since` is not before `until`.
10609
+ * @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
10610
  * @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
10611
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9692
10612
  * @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.
10613
+ * @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
10614
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}/changes/export
9694
10615
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id-changes-export
9695
10616
  * @example
@@ -9708,9 +10629,11 @@ declare class ProjectsChangesResource extends APIResource {
9708
10629
  * @param params - `Flags.ProjectChangeListParams`.
9709
10630
  * @param options - Per-request options.
9710
10631
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad filter, cursor or `limit`, or `since` is not before `until`.
10632
+ * @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
10633
  * @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
10634
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9713
10635
  * @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.
10636
+ * @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
10637
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}/changes
9715
10638
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id-changes
9716
10639
  * @example
@@ -9734,11 +10657,13 @@ declare class ProjectsConfigsResource extends APIResource {
9734
10657
  * @param params - `Flags.ProjectConfigCreateParams`.
9735
10658
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9736
10659
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is missing or invalid.
10660
+ * @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
10661
  * @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
10662
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9739
10663
  * @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
10664
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, LIMIT_EXCEEDED: `LIMIT_EXCEEDED`: the project already has the maximum number of configs (`details`: `limit`, `max`, `current`).
9741
10665
  * @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.
10666
+ * @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
10667
  * @see POST /v1/workspaces/{workspace_id}/projects/{project_id}/configs
9743
10668
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-projects-project-id-configs
9744
10669
  * @example
@@ -9756,9 +10681,11 @@ declare class ProjectsConfigsResource extends APIResource {
9756
10681
  * @param params - `Flags.ProjectConfigListParams`.
9757
10682
  * @param options - Per-request options.
9758
10683
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad cursor or a `limit` outside 1-100.
10684
+ * @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
10685
  * @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
10686
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9761
10687
  * @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.
10688
+ * @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
10689
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}/configs
9763
10690
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id-configs
9764
10691
  * @example
@@ -9782,11 +10709,13 @@ declare class ProjectsEnvironmentsResource extends APIResource {
9782
10709
  * @param params - `Flags.ProjectEnvironmentCreateParams`.
9783
10710
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9784
10711
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is missing or invalid.
10712
+ * @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
10713
  * @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
10714
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9787
10715
  * @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
10716
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, LIMIT_EXCEEDED: `LIMIT_EXCEEDED`: the project already has the maximum number of environments (`details`: `limit`, `max`, `current`).
9789
10717
  * @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.
10718
+ * @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
10719
  * @see POST /v1/workspaces/{workspace_id}/projects/{project_id}/environments
9791
10720
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-projects-project-id-environments
9792
10721
  * @example
@@ -9804,10 +10733,12 @@ declare class ProjectsEnvironmentsResource extends APIResource {
9804
10733
  * @param environmentId - Id of the environment.
9805
10734
  * @param params - `Flags.ProjectEnvironmentDeleteParams`.
9806
10735
  * @param options - Per-request options.
10736
+ * @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
10737
  * @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
10738
  * @throws {NotFoundError} 404 NOT_FOUND, ENVIRONMENT_NOT_FOUND: `ENVIRONMENT_NOT_FOUND`: no such environment in this project.
9809
10739
  * @throws {ConflictError} 409 CONFLICT, LAST_ENVIRONMENT: `LAST_ENVIRONMENT`: this is the project's only environment.
9810
10740
  * @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.
10741
+ * @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
10742
  * @see DELETE /v1/workspaces/{workspace_id}/projects/{project_id}/environments/{environment_id}
9812
10743
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-projects-project-id-environments-environment-id
9813
10744
  * @example
@@ -9823,9 +10754,11 @@ declare class ProjectsEnvironmentsResource extends APIResource {
9823
10754
  *
9824
10755
  * @param projectId - Id of the project.
9825
10756
  * @param options - Per-request options.
10757
+ * @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
10758
  * @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
10759
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9828
10760
  * @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.
10761
+ * @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
10762
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}/environments
9830
10763
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id-environments
9831
10764
  * @example
@@ -9840,9 +10773,11 @@ declare class ProjectsEnvironmentsResource extends APIResource {
9840
10773
  * @param projectId - Id of the project.
9841
10774
  * @param environmentId - Id of the environment.
9842
10775
  * @param options - Per-request options.
10776
+ * @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
10777
  * @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
10778
  * @throws {NotFoundError} 404 NOT_FOUND, ENVIRONMENT_NOT_FOUND: `ENVIRONMENT_NOT_FOUND`: no such environment in this project.
9845
10779
  * @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.
10780
+ * @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
10781
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}/environments/{environment_id}
9847
10782
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id-environments-environment-id
9848
10783
  * @example
@@ -9861,9 +10796,11 @@ declare class ProjectsEnvironmentsResource extends APIResource {
9861
10796
  * @param params - `Flags.ProjectEnvironmentUpdateParams`.
9862
10797
  * @param options - Per-request options.
9863
10798
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is invalid.
10799
+ * @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
10800
  * @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
10801
  * @throws {NotFoundError} 404 NOT_FOUND, ENVIRONMENT_NOT_FOUND: `ENVIRONMENT_NOT_FOUND`: no such environment in this project.
9866
10802
  * @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.
10803
+ * @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
10804
  * @see PATCH /v1/workspaces/{workspace_id}/projects/{project_id}/environments/{environment_id}
9868
10805
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-projects-project-id-environments-environment-id
9869
10806
  * @example
@@ -9884,11 +10821,13 @@ declare class ProjectsSegmentsResource extends APIResource {
9884
10821
  * @param params - `Flags.ProjectSegmentCreateParams`.
9885
10822
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9886
10823
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is missing or invalid.
10824
+ * @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
10825
  * @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
10826
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9889
10827
  * @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
10828
  * @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
10829
  * @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.
10830
+ * @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
10831
  * @see POST /v1/workspaces/{workspace_id}/projects/{project_id}/segments
9893
10832
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-projects-project-id-segments
9894
10833
  * @example
@@ -9913,9 +10852,11 @@ declare class ProjectsSegmentsResource extends APIResource {
9913
10852
  * @param params - `Flags.ProjectSegmentListParams`.
9914
10853
  * @param options - Per-request options.
9915
10854
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad cursor or `limit`.
10855
+ * @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
10856
  * @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
10857
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9918
10858
  * @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.
10859
+ * @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
10860
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}/segments
9920
10861
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id-segments
9921
10862
  * @example
@@ -9943,10 +10884,12 @@ declare class ProjectsResource extends APIResource {
9943
10884
  * @param params - `Flags.ProjectCreateParams`.
9944
10885
  * @param options - Per-request options (an Idempotency-Key is sent automatically; override with `idempotencyKey`).
9945
10886
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is missing or invalid.
10887
+ * @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
10888
  * @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
10889
  * @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
10890
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, LIMIT_EXCEEDED: `LIMIT_EXCEEDED`: the workspace already has the maximum number of projects (`details`: `limit`, `max`, `current`).
9949
10891
  * @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.
10892
+ * @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
10893
  * @see POST /v1/workspaces/{workspace_id}/projects
9951
10894
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-projects
9952
10895
  * @example
@@ -9963,10 +10906,12 @@ declare class ProjectsResource extends APIResource {
9963
10906
  * @param projectId - Id of the project.
9964
10907
  * @param params - `Flags.ProjectDeleteParams`.
9965
10908
  * @param options - Per-request options.
10909
+ * @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
10910
  * @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
10911
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
9968
10912
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY, CONFIRMATION_REQUIRED: `CONFIRMATION_REQUIRED`: `confirm` is missing or is not the exact project name.
9969
10913
  * @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.
10914
+ * @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
10915
  * @see DELETE /v1/workspaces/{workspace_id}/projects/{project_id}
9971
10916
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-projects-project-id
9972
10917
  * @example
@@ -9983,8 +10928,10 @@ declare class ProjectsResource extends APIResource {
9983
10928
  * @param params - `Flags.ProjectListParams`.
9984
10929
  * @param options - Per-request options.
9985
10930
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a bad cursor or a `limit` outside 1-100.
10931
+ * @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
10932
  * @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
10933
  * @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.
10934
+ * @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
10935
  * @see GET /v1/workspaces/{workspace_id}/projects
9989
10936
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects
9990
10937
  * @example
@@ -10003,9 +10950,11 @@ declare class ProjectsResource extends APIResource {
10003
10950
  *
10004
10951
  * @param projectId - Id of the project.
10005
10952
  * @param options - Per-request options.
10953
+ * @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
10954
  * @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
10955
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
10008
10956
  * @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.
10957
+ * @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
10958
  * @see GET /v1/workspaces/{workspace_id}/projects/{project_id}
10010
10959
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-projects-project-id
10011
10960
  * @example
@@ -10023,10 +10972,12 @@ declare class ProjectsResource extends APIResource {
10023
10972
  * @param params - `Flags.ProjectUpdateParams`.
10024
10973
  * @param options - Per-request options.
10025
10974
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is invalid.
10975
+ * @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
10976
  * @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
10977
  * @throws {NotFoundError} 404 NOT_FOUND, PROJECT_NOT_FOUND: `PROJECT_NOT_FOUND`: no such project in this workspace.
10028
10978
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS: `KEY_ALREADY_EXISTS`: another project has this name.
10029
10979
  * @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.
10980
+ * @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
10981
  * @see PATCH /v1/workspaces/{workspace_id}/projects/{project_id}
10031
10982
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-projects-project-id
10032
10983
  * @example
@@ -10046,10 +10997,12 @@ declare class SegmentsResource extends APIResource {
10046
10997
  * @param segmentId - Id of the segment.
10047
10998
  * @param params - `Flags.SegmentDeleteParams`.
10048
10999
  * @param options - Per-request options.
11000
+ * @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
11001
  * @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
11002
  * @throws {NotFoundError} 404 NOT_FOUND, SEGMENT_NOT_FOUND: `SEGMENT_NOT_FOUND`: no such segment in this workspace.
10051
11003
  * @throws {ConflictError} 409 CONFLICT, SEGMENT_IN_USE: `SEGMENT_IN_USE`: a rule uses it (`details.used_by` lists where).
10052
11004
  * @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.
11005
+ * @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
11006
  * @see DELETE /v1/workspaces/{workspace_id}/segments/{segment_id}
10054
11007
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-segments-segment-id
10055
11008
  * @example
@@ -10065,9 +11018,11 @@ declare class SegmentsResource extends APIResource {
10065
11018
  *
10066
11019
  * @param segmentId - Id of the segment.
10067
11020
  * @param options - Per-request options.
11021
+ * @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
11022
  * @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
11023
  * @throws {NotFoundError} 404 NOT_FOUND, SEGMENT_NOT_FOUND: `SEGMENT_NOT_FOUND`: no such segment in this workspace.
10070
11024
  * @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.
11025
+ * @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
11026
  * @see GET /v1/workspaces/{workspace_id}/segments/{segment_id}
10072
11027
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-segments-segment-id
10073
11028
  * @example
@@ -10083,10 +11038,12 @@ declare class SegmentsResource extends APIResource {
10083
11038
  *
10084
11039
  * @param segmentId - Id of the segment.
10085
11040
  * @param options - Per-request options.
11041
+ * @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
11042
  * @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
11043
  * @throws {NotFoundError} 404 NOT_FOUND, SEGMENT_NOT_FOUND: `SEGMENT_NOT_FOUND`: no such segment in this workspace.
10088
11044
  * @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
11045
  * @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.
11046
+ * @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
11047
  * @see GET /v1/workspaces/{workspace_id}/segments/{segment_id}/confidential
10091
11048
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-segments-segment-id-confidential
10092
11049
  * @example
@@ -10104,11 +11061,13 @@ declare class SegmentsResource extends APIResource {
10104
11061
  * @param params - `Flags.SegmentUpdateParams`.
10105
11062
  * @param options - Per-request options.
10106
11063
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is invalid.
11064
+ * @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
11065
  * @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
11066
  * @throws {NotFoundError} 404 NOT_FOUND, SEGMENT_NOT_FOUND: `SEGMENT_NOT_FOUND`: no such segment in this workspace.
10109
11067
  * @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
11068
  * @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
11069
  * @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.
11070
+ * @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
11071
  * @see PATCH /v1/workspaces/{workspace_id}/segments/{segment_id}
10113
11072
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-segments-segment-id
10114
11073
  * @example
@@ -10141,11 +11100,13 @@ declare class SettingsValuesResource extends APIResource {
10141
11100
  * @param params - `Flags.SettingsValueReplaceParams`.
10142
11101
  * @param options - Per-request options.
10143
11102
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: `version` or `note` is missing or invalid.
11103
+ * @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
11104
  * @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
11105
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `SETTING_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`.
10146
11106
  * @throws {ConflictError} 409 CONFLICT, VERSION_CONFLICT: `VERSION_CONFLICT`: the value changed since you read it (`details.current_version`, `updated_at`, `updated_by`).
10147
11107
  * @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
11108
  * @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.
11109
+ * @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
11110
  * @see PUT /v1/workspaces/{workspace_id}/settings/{setting_id}/values/{environment_id}
10150
11111
  * @see https://productcraft.co/docs/flags/api-reference#put-v1-workspaces-workspace-id-settings-setting-id-values-environment-id
10151
11112
  * @example
@@ -10162,9 +11123,11 @@ declare class SettingsValuesResource extends APIResource {
10162
11123
  * @param settingId - Id of the setting.
10163
11124
  * @param environmentId - Id of an environment of the same project.
10164
11125
  * @param options - Per-request options.
11126
+ * @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
11127
  * @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
11128
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `SETTING_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`.
10167
11129
  * @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.
11130
+ * @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
11131
  * @see GET /v1/workspaces/{workspace_id}/settings/{setting_id}/values/{environment_id}
10169
11132
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-settings-setting-id-values-environment-id
10170
11133
  * @example
@@ -10181,10 +11144,12 @@ declare class SettingsValuesResource extends APIResource {
10181
11144
  * @param settingId - Id of the setting.
10182
11145
  * @param environmentId - Id of an environment of the same project.
10183
11146
  * @param options - Per-request options.
11147
+ * @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
11148
  * @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
11149
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `SETTING_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`.
10186
11150
  * @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
11151
  * @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.
11152
+ * @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
11153
  * @see GET /v1/workspaces/{workspace_id}/settings/{setting_id}/values/{environment_id}/confidential
10189
11154
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-settings-setting-id-values-environment-id-confidential
10190
11155
  * @example
@@ -10203,11 +11168,13 @@ declare class SettingsValuesResource extends APIResource {
10203
11168
  * @param params - `Flags.SettingsValueUpdateParams`.
10204
11169
  * @param options - Per-request options.
10205
11170
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: nothing to change, or `version` is missing.
11171
+ * @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
11172
  * @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
11173
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND, ENVIRONMENT_NOT_FOUND: `SETTING_NOT_FOUND` or `ENVIRONMENT_NOT_FOUND`.
10208
11174
  * @throws {ConflictError} 409 CONFLICT, VERSION_CONFLICT: `VERSION_CONFLICT`: the value changed since you read it (`details.current_version`, `updated_at`, `updated_by`).
10209
11175
  * @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
11176
  * @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.
11177
+ * @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
11178
  * @see PATCH /v1/workspaces/{workspace_id}/settings/{setting_id}/values/{environment_id}
10212
11179
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-settings-setting-id-values-environment-id
10213
11180
  * @example
@@ -10229,10 +11196,12 @@ declare class SettingsResource extends APIResource {
10229
11196
  * @param settingId - Id of the setting.
10230
11197
  * @param params - `Flags.SettingsDeleteParams`.
10231
11198
  * @param options - Per-request options.
11199
+ * @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
11200
  * @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
11201
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND: `SETTING_NOT_FOUND`: no such setting in this workspace.
10234
11202
  * @throws {ConflictError} 409 CONFLICT, SETTING_IN_USE: `SETTING_IN_USE`: another setting uses it as a prerequisite (`details.used_by`).
10235
11203
  * @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.
11204
+ * @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
11205
  * @see DELETE /v1/workspaces/{workspace_id}/settings/{setting_id}
10237
11206
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-settings-setting-id
10238
11207
  * @example
@@ -10248,9 +11217,11 @@ declare class SettingsResource extends APIResource {
10248
11217
  *
10249
11218
  * @param settingId - Id of the setting.
10250
11219
  * @param options - Per-request options.
11220
+ * @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
11221
  * @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
11222
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND: `SETTING_NOT_FOUND`: no such setting in this workspace.
10253
11223
  * @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.
11224
+ * @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
11225
  * @see GET /v1/workspaces/{workspace_id}/settings/{setting_id}
10255
11226
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-settings-setting-id
10256
11227
  * @example
@@ -10268,12 +11239,13 @@ declare class SettingsResource extends APIResource {
10268
11239
  * @param params - `Flags.SettingsUpdateParams`.
10269
11240
  * @param options - Per-request options.
10270
11241
  * @throws {BadRequestError} 400 BAD_REQUEST, VALIDATION_ERROR: `VALIDATION_ERROR`: a field is invalid.
11242
+ * @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
11243
  * @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
11244
  * @throws {NotFoundError} 404 NOT_FOUND, SETTING_NOT_FOUND: `SETTING_NOT_FOUND`: no such setting in this workspace.
10273
11245
  * @throws {ConflictError} 409 CONFLICT, KEY_ALREADY_EXISTS: `KEY_ALREADY_EXISTS`: the config already has a setting with this key.
10274
11246
  * @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
11247
  * @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.
11248
+ * @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
11249
  * @see PATCH /v1/workspaces/{workspace_id}/settings/{setting_id}
10278
11250
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-settings-setting-id
10279
11251
  * @example
@@ -10291,8 +11263,10 @@ declare class StatsResource extends APIResource {
10291
11263
  * 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
11264
  *
10293
11265
  * @param options - Per-request options.
11266
+ * @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
11267
  * @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
11268
  * @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.
11269
+ * @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
11270
  * @see GET /v1/workspaces/{workspace_id}/stats
10297
11271
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-stats
10298
11272
  * @example
@@ -10317,6 +11291,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10317
11291
  * @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
11292
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY: The URL points at a private, loopback or internal address.
10319
11293
  * @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.
11294
+ * @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
11295
  * @see POST /v1/workspaces/{workspace_id}/webhooks/endpoints
10321
11296
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-webhooks-endpoints
10322
11297
  * @example
@@ -10337,6 +11312,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10337
11312
  * @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
11313
  * @throws {NotFoundError} 404 NOT_FOUND, WEBHOOK_ENDPOINT_NOT_FOUND: No such endpoint here (`WEBHOOK_ENDPOINT_NOT_FOUND`).
10339
11314
  * @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.
11315
+ * @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
11316
  * @see DELETE /v1/workspaces/{workspace_id}/webhooks/endpoints/{endpoint_id}
10341
11317
  * @see https://productcraft.co/docs/flags/api-reference#delete-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id
10342
11318
  * @example
@@ -10355,6 +11331,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10355
11331
  * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing or invalid bearer token.
10356
11332
  * @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
11333
  * @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.
11334
+ * @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
11335
  * @see GET /v1/workspaces/{workspace_id}/webhooks/endpoints
10359
11336
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-webhooks-endpoints
10360
11337
  * @example
@@ -10377,6 +11354,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10377
11354
  * @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
11355
  * @throws {NotFoundError} 404 NOT_FOUND, WEBHOOK_ENDPOINT_NOT_FOUND: No such endpoint here (`WEBHOOK_ENDPOINT_NOT_FOUND`).
10379
11356
  * @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.
11357
+ * @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
11358
  * @see GET /v1/workspaces/{workspace_id}/webhooks/endpoints/{endpoint_id}
10381
11359
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id
10382
11360
  * @example
@@ -10399,6 +11377,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10399
11377
  * @throws {NotFoundError} 404 NOT_FOUND, WEBHOOK_ENDPOINT_NOT_FOUND: No such endpoint here (`WEBHOOK_ENDPOINT_NOT_FOUND`).
10400
11378
  * @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
11379
  * @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.
11380
+ * @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
11381
  * @see POST /v1/workspaces/{workspace_id}/webhooks/endpoints/{endpoint_id}/rotate-secret
10403
11382
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id-rotate-secret
10404
11383
  * @example
@@ -10421,6 +11400,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10421
11400
  * @throws {NotFoundError} 404 NOT_FOUND, WEBHOOK_ENDPOINT_NOT_FOUND: No such endpoint here (`WEBHOOK_ENDPOINT_NOT_FOUND`).
10422
11401
  * @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
11402
  * @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.
11403
+ * @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
11404
  * @see POST /v1/workspaces/{workspace_id}/webhooks/endpoints/{endpoint_id}/test
10425
11405
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id-test
10426
11406
  * @example
@@ -10444,6 +11424,7 @@ declare class WebhooksEndpointsResource extends APIResource {
10444
11424
  * @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
11425
  * @throws {UnprocessableEntityError} 422 UNPROCESSABLE_ENTITY: The new URL points at a private, loopback or internal address.
10446
11426
  * @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.
11427
+ * @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
11428
  * @see PATCH /v1/workspaces/{workspace_id}/webhooks/endpoints/{endpoint_id}
10448
11429
  * @see https://productcraft.co/docs/flags/api-reference#patch-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id
10449
11430
  * @example
@@ -10464,6 +11445,7 @@ declare class WebhooksEventTypesResource extends APIResource {
10464
11445
  * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing or invalid bearer token.
10465
11446
  * @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
11447
  * @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.
11448
+ * @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
11449
  * @see GET /v1/workspaces/{workspace_id}/webhooks/event-types
10468
11450
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-webhooks-event-types
10469
11451
  * @example
@@ -10486,6 +11468,7 @@ declare class WebhooksEventsResource extends APIResource {
10486
11468
  * @throws {AuthenticationError} 401 UNAUTHORIZED: Missing or invalid bearer token.
10487
11469
  * @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
11470
  * @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.
11471
+ * @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
11472
  * @see GET /v1/workspaces/{workspace_id}/webhooks/events
10490
11473
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-webhooks-events
10491
11474
  * @example
@@ -10511,6 +11494,7 @@ declare class WebhooksEventsResource extends APIResource {
10511
11494
  * @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
11495
  * @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
11496
  * @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.
11497
+ * @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
11498
  * @see POST /v1/workspaces/{workspace_id}/webhooks/events/{event_id}/replay
10515
11499
  * @see https://productcraft.co/docs/flags/api-reference#post-v1-workspaces-workspace-id-webhooks-events-event-id-replay
10516
11500
  * @example
@@ -10531,6 +11515,7 @@ declare class WebhooksEventsResource extends APIResource {
10531
11515
  * @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
11516
  * @throws {NotFoundError} 404 NOT_FOUND, WEBHOOK_EVENT_NOT_FOUND: No such event here (`WEBHOOK_EVENT_NOT_FOUND`); events are kept for 30 days.
10533
11517
  * @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.
11518
+ * @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
11519
  * @see GET /v1/workspaces/{workspace_id}/webhooks/events/{event_id}
10535
11520
  * @see https://productcraft.co/docs/flags/api-reference#get-v1-workspaces-workspace-id-webhooks-events-event-id
10536
11521
  * @example
@@ -10791,7 +11776,7 @@ declare namespace Flags {
10791
11776
  };
10792
11777
  type FlagsEvaluationWarningCode = __FlagsEvaluationWarningCode;
10793
11778
  const FlagsEvaluationWarningCode: {
10794
- values: readonly ["missing_user", "missing_attribute", "invalid_attribute", "unknown_comparator", "missing_percentage_attribute"];
11779
+ values: readonly ["missing_user", "missing_attribute", "invalid_attribute", "unknown_comparator", "missing_percentage_attribute", "iso_date_converted"];
10795
11780
  };
10796
11781
  type FlagsHistoryExportFormat = __FlagsHistoryExportFormat;
10797
11782
  const FlagsHistoryExportFormat: {