@productcraft/flags 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -13
- package/api.md +577 -20
- package/dist/{chunk-7237IZU3.js → browser/chunk-OUAC4WID.js} +589 -24
- package/dist/browser/chunk-OUAC4WID.js.map +1 -0
- package/dist/browser/{chunk-CXYODDHM.cjs → chunk-UYL3NMDA.cjs} +589 -24
- package/dist/browser/chunk-UYL3NMDA.cjs.map +1 -0
- package/dist/browser/{chunk-72WU42RU.js → chunk-WUZAG2E3.js} +11 -4
- package/dist/browser/chunk-WUZAG2E3.js.map +1 -0
- package/dist/browser/{chunk-4XCQBTYE.cjs → chunk-YM5K4NHA.cjs} +11 -4
- package/dist/browser/chunk-YM5K4NHA.cjs.map +1 -0
- package/dist/browser/index.cjs +9 -9
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +3 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/management.cjs +2 -2
- package/dist/browser/management.js +1 -1
- package/dist/browser/testing.cjs +848 -3
- package/dist/browser/testing.cjs.map +1 -1
- package/dist/browser/testing.js +846 -1
- package/dist/browser/testing.js.map +1 -1
- package/dist/{chunk-NSAKFGTJ.cjs → chunk-5SDZWOUP.cjs} +589 -24
- package/dist/chunk-5SDZWOUP.cjs.map +1 -0
- package/dist/{chunk-NB7OGN6R.js → chunk-7BOM23MI.js} +12 -5
- package/dist/chunk-7BOM23MI.js.map +1 -0
- package/dist/{browser/chunk-TCVKCN3S.js → chunk-JGSMXA3G.js} +589 -24
- package/dist/chunk-JGSMXA3G.js.map +1 -0
- package/dist/{chunk-Q3P66XRI.cjs → chunk-SHMDNO4G.cjs} +12 -5
- package/dist/chunk-SHMDNO4G.cjs.map +1 -0
- package/dist/{client-K2zALPGD.d.cts → client-BBiIKiGW.d.cts} +18 -14
- package/dist/{client-K2zALPGD.d.ts → client-BBiIKiGW.d.ts} +18 -14
- package/dist/{client-BwoMpm8_.d.cts → client-DVKdRqhR.d.cts} +7628 -3034
- package/dist/{client-BwoMpm8_.d.ts → client-DVKdRqhR.d.ts} +7628 -3034
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/management.cjs +2 -2
- package/dist/management.d.cts +1 -1
- package/dist/management.d.ts +1 -1
- package/dist/management.js +1 -1
- package/dist/testing.cjs +848 -3
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +846 -1
- package/dist/testing.js.map +1 -1
- package/manifest.json +317 -2
- package/package.json +2 -2
- package/dist/browser/chunk-4XCQBTYE.cjs.map +0 -1
- package/dist/browser/chunk-72WU42RU.js.map +0 -1
- package/dist/browser/chunk-CXYODDHM.cjs.map +0 -1
- package/dist/browser/chunk-TCVKCN3S.js.map +0 -1
- package/dist/chunk-7237IZU3.js.map +0 -1
- package/dist/chunk-NB7OGN6R.js.map +0 -1
- package/dist/chunk-NSAKFGTJ.cjs.map +0 -1
- package/dist/chunk-Q3P66XRI.cjs.map +0 -1
package/dist/testing.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSHMDNO4G_cjs = require('./chunk-SHMDNO4G.cjs');
|
|
4
4
|
var core = require('@productcraft/core');
|
|
5
5
|
|
|
6
6
|
var ROUTES = [
|
|
@@ -66,6 +66,99 @@ var ROUTES = [
|
|
|
66
66
|
],
|
|
67
67
|
pagination: { next_cursor: null, has_more: false }
|
|
68
68
|
} },
|
|
69
|
+
{ op: "scheduledChanges.list", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/scheduled-changes$/, status: 200, contentType: "application/json", body: {
|
|
70
|
+
data: [
|
|
71
|
+
{
|
|
72
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
73
|
+
base_version: 7,
|
|
74
|
+
change_request_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
75
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
76
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
77
|
+
created_by: {
|
|
78
|
+
client_id: null,
|
|
79
|
+
id: "pak_01HZX3",
|
|
80
|
+
is_agent: true,
|
|
81
|
+
label: "release-bot",
|
|
82
|
+
on_behalf_of_user_id: null,
|
|
83
|
+
type: "api_key"
|
|
84
|
+
},
|
|
85
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
86
|
+
environment_key: "production",
|
|
87
|
+
executed_at: "2026-01-01T00:00:00.000Z",
|
|
88
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
89
|
+
last_error: {
|
|
90
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
91
|
+
code: "VERSION_CONFLICT",
|
|
92
|
+
message: "The value changed since the change was scheduled."
|
|
93
|
+
},
|
|
94
|
+
note: "Launch at 09:00",
|
|
95
|
+
operation: "patch",
|
|
96
|
+
payload: {},
|
|
97
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
98
|
+
run_at: "2026-01-01T00:00:00.000Z",
|
|
99
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
100
|
+
setting_key: "new_checkout",
|
|
101
|
+
status: "pending",
|
|
102
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
103
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
pagination: { next_cursor: null, has_more: false }
|
|
107
|
+
} },
|
|
108
|
+
{ op: "changeRequests.list", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/change-requests$/, status: 200, contentType: "application/json", body: {
|
|
109
|
+
data: [
|
|
110
|
+
{
|
|
111
|
+
after: {},
|
|
112
|
+
applied_at: "2026-01-01T00:00:00.000Z",
|
|
113
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
114
|
+
approvals: 0,
|
|
115
|
+
author: {
|
|
116
|
+
client_id: null,
|
|
117
|
+
id: "pak_01HZX3",
|
|
118
|
+
is_agent: true,
|
|
119
|
+
label: "release-bot",
|
|
120
|
+
on_behalf_of_user_id: null,
|
|
121
|
+
type: "api_key"
|
|
122
|
+
},
|
|
123
|
+
base_version: 7,
|
|
124
|
+
before: {},
|
|
125
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
126
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
127
|
+
current_version: 7,
|
|
128
|
+
diff: [{ op: "add", path: "/rules/1/percentages/0/percentage", value: 25 }],
|
|
129
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
130
|
+
environment_key: "production",
|
|
131
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
132
|
+
kind: "value",
|
|
133
|
+
last_error: {
|
|
134
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
135
|
+
code: "VERSION_CONFLICT",
|
|
136
|
+
message: "The value changed since the change was scheduled."
|
|
137
|
+
},
|
|
138
|
+
note: "Turn on for everyone",
|
|
139
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
140
|
+
required_approvals: 1,
|
|
141
|
+
reviews: [
|
|
142
|
+
{
|
|
143
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
144
|
+
decision: "approved",
|
|
145
|
+
note: "Looks good",
|
|
146
|
+
reviewer_id: "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
|
|
147
|
+
reviewer_label: "ada@example.com"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
scheduled_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
151
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
152
|
+
setting_key: "new_checkout",
|
|
153
|
+
stale: false,
|
|
154
|
+
status: "pending",
|
|
155
|
+
summary: ["value false \u2192 true"],
|
|
156
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
157
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
pagination: { next_cursor: null, has_more: false }
|
|
161
|
+
} },
|
|
69
162
|
{ op: "webhooks.events.list", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/webhooks\/events$/, status: 200, contentType: "application/json", body: {
|
|
70
163
|
data: [
|
|
71
164
|
{
|
|
@@ -110,6 +203,7 @@ var ROUTES = [
|
|
|
110
203
|
description: "",
|
|
111
204
|
environments: [
|
|
112
205
|
{
|
|
206
|
+
approval_policy: "agents",
|
|
113
207
|
color: "#c92a2a",
|
|
114
208
|
created_at: "2026-01-01T00:00:00.000Z",
|
|
115
209
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
@@ -119,6 +213,7 @@ var ROUTES = [
|
|
|
119
213
|
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
120
214
|
protected: true,
|
|
121
215
|
require_note: false,
|
|
216
|
+
required_approvals: 1,
|
|
122
217
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
123
218
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
124
219
|
}
|
|
@@ -126,6 +221,8 @@ var ROUTES = [
|
|
|
126
221
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
127
222
|
name: "Storefront",
|
|
128
223
|
ordinal: 0,
|
|
224
|
+
stale_after_days: 30,
|
|
225
|
+
stale_digest: true,
|
|
129
226
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
130
227
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
131
228
|
} },
|
|
@@ -149,6 +246,7 @@ var ROUTES = [
|
|
|
149
246
|
description: "",
|
|
150
247
|
environments: [
|
|
151
248
|
{
|
|
249
|
+
approval_policy: "agents",
|
|
152
250
|
color: "#c92a2a",
|
|
153
251
|
created_at: "2026-01-01T00:00:00.000Z",
|
|
154
252
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
@@ -158,6 +256,7 @@ var ROUTES = [
|
|
|
158
256
|
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
159
257
|
protected: true,
|
|
160
258
|
require_note: false,
|
|
259
|
+
required_approvals: 1,
|
|
161
260
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
162
261
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
163
262
|
}
|
|
@@ -165,6 +264,8 @@ var ROUTES = [
|
|
|
165
264
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
166
265
|
name: "Storefront",
|
|
167
266
|
ordinal: 0,
|
|
267
|
+
stale_after_days: 30,
|
|
268
|
+
stale_digest: true,
|
|
168
269
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
169
270
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
170
271
|
}
|
|
@@ -192,6 +293,7 @@ var ROUTES = [
|
|
|
192
293
|
description: "",
|
|
193
294
|
environments: [
|
|
194
295
|
{
|
|
296
|
+
approval_policy: "agents",
|
|
195
297
|
color: "#c92a2a",
|
|
196
298
|
created_at: "2026-01-01T00:00:00.000Z",
|
|
197
299
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
@@ -201,6 +303,7 @@ var ROUTES = [
|
|
|
201
303
|
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
202
304
|
protected: true,
|
|
203
305
|
require_note: false,
|
|
306
|
+
required_approvals: 1,
|
|
204
307
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
205
308
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
206
309
|
}
|
|
@@ -208,6 +311,8 @@ var ROUTES = [
|
|
|
208
311
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
209
312
|
name: "Storefront",
|
|
210
313
|
ordinal: 0,
|
|
314
|
+
stale_after_days: 30,
|
|
315
|
+
stale_digest: true,
|
|
211
316
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
212
317
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
213
318
|
},
|
|
@@ -255,6 +360,43 @@ var ROUTES = [
|
|
|
255
360
|
projects: 1
|
|
256
361
|
}
|
|
257
362
|
} },
|
|
363
|
+
{ op: "ramps.list", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/ramps$/, status: 200, contentType: "application/json", body: {
|
|
364
|
+
data: [
|
|
365
|
+
{
|
|
366
|
+
change_request_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
367
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
368
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
369
|
+
created_by: {
|
|
370
|
+
client_id: null,
|
|
371
|
+
id: "pak_01HZX3",
|
|
372
|
+
is_agent: true,
|
|
373
|
+
label: "release-bot",
|
|
374
|
+
on_behalf_of_user_id: null,
|
|
375
|
+
type: "api_key"
|
|
376
|
+
},
|
|
377
|
+
current_percentage: 25,
|
|
378
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
379
|
+
environment_key: "production",
|
|
380
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
381
|
+
last_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
382
|
+
last_error: {
|
|
383
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
384
|
+
code: "VERSION_CONFLICT",
|
|
385
|
+
message: "The value changed since the change was scheduled."
|
|
386
|
+
},
|
|
387
|
+
note: "Ramp the new checkout",
|
|
388
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
389
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
390
|
+
setting_key: "new_checkout",
|
|
391
|
+
status: "active",
|
|
392
|
+
steps: [{ applied: false, at: "2026-01-01T00:00:00.000Z", percentage: 25 }],
|
|
393
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
394
|
+
value: true,
|
|
395
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
pagination: { next_cursor: null, has_more: false }
|
|
399
|
+
} },
|
|
258
400
|
{ op: "stats.retrieve", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/stats$/, status: 200, contentType: "application/json", body: {
|
|
259
401
|
changes_last_week: 12,
|
|
260
402
|
configs: 2,
|
|
@@ -298,6 +440,139 @@ var ROUTES = [
|
|
|
298
440
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
299
441
|
url: "https://api.acme.com/webhooks"
|
|
300
442
|
} },
|
|
443
|
+
{ op: "projects.staleFlags.sendDigest", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/projects\/[^\/]+\/stale-flags\/digest$/, status: 202, contentType: "application/json", body: { digests_queued: 2, stale_flags: 4 } },
|
|
444
|
+
{ op: "changeRequests.schedule", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/change-requests\/[^\/]+\/schedule$/, status: 200, contentType: "application/json", body: {
|
|
445
|
+
after: {},
|
|
446
|
+
applied_at: "2026-01-01T00:00:00.000Z",
|
|
447
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
448
|
+
approvals: 0,
|
|
449
|
+
author: {
|
|
450
|
+
client_id: null,
|
|
451
|
+
id: "pak_01HZX3",
|
|
452
|
+
is_agent: true,
|
|
453
|
+
label: "release-bot",
|
|
454
|
+
on_behalf_of_user_id: null,
|
|
455
|
+
type: "api_key"
|
|
456
|
+
},
|
|
457
|
+
base_version: 7,
|
|
458
|
+
before: {},
|
|
459
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
460
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
461
|
+
current_version: 7,
|
|
462
|
+
diff: [{ op: "add", path: "/rules/1/percentages/0/percentage", value: 25 }],
|
|
463
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
464
|
+
environment_key: "production",
|
|
465
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
466
|
+
kind: "value",
|
|
467
|
+
last_error: {
|
|
468
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
469
|
+
code: "VERSION_CONFLICT",
|
|
470
|
+
message: "The value changed since the change was scheduled."
|
|
471
|
+
},
|
|
472
|
+
note: "Turn on for everyone",
|
|
473
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
474
|
+
required_approvals: 1,
|
|
475
|
+
reviews: [
|
|
476
|
+
{
|
|
477
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
478
|
+
decision: "approved",
|
|
479
|
+
note: "Looks good",
|
|
480
|
+
reviewer_id: "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
|
|
481
|
+
reviewer_label: "ada@example.com"
|
|
482
|
+
}
|
|
483
|
+
],
|
|
484
|
+
scheduled_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
485
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
486
|
+
setting_key: "new_checkout",
|
|
487
|
+
stale: false,
|
|
488
|
+
status: "pending",
|
|
489
|
+
summary: ["value false \u2192 true"],
|
|
490
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
491
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
492
|
+
} },
|
|
493
|
+
{ op: "scheduledChanges.cancel", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/scheduled-changes\/[^\/]+\/cancel$/, status: 200, contentType: "application/json", body: {
|
|
494
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
495
|
+
base_version: 7,
|
|
496
|
+
change_request_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
497
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
498
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
499
|
+
created_by: {
|
|
500
|
+
client_id: null,
|
|
501
|
+
id: "pak_01HZX3",
|
|
502
|
+
is_agent: true,
|
|
503
|
+
label: "release-bot",
|
|
504
|
+
on_behalf_of_user_id: null,
|
|
505
|
+
type: "api_key"
|
|
506
|
+
},
|
|
507
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
508
|
+
environment_key: "production",
|
|
509
|
+
executed_at: "2026-01-01T00:00:00.000Z",
|
|
510
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
511
|
+
last_error: {
|
|
512
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
513
|
+
code: "VERSION_CONFLICT",
|
|
514
|
+
message: "The value changed since the change was scheduled."
|
|
515
|
+
},
|
|
516
|
+
note: "Launch at 09:00",
|
|
517
|
+
operation: "patch",
|
|
518
|
+
payload: {},
|
|
519
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
520
|
+
run_at: "2026-01-01T00:00:00.000Z",
|
|
521
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
522
|
+
setting_key: "new_checkout",
|
|
523
|
+
status: "pending",
|
|
524
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
525
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
526
|
+
} },
|
|
527
|
+
{ op: "changeRequests.approve", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/change-requests\/[^\/]+\/approve$/, status: 200, contentType: "application/json", body: {
|
|
528
|
+
after: {},
|
|
529
|
+
applied_at: "2026-01-01T00:00:00.000Z",
|
|
530
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
531
|
+
approvals: 0,
|
|
532
|
+
author: {
|
|
533
|
+
client_id: null,
|
|
534
|
+
id: "pak_01HZX3",
|
|
535
|
+
is_agent: true,
|
|
536
|
+
label: "release-bot",
|
|
537
|
+
on_behalf_of_user_id: null,
|
|
538
|
+
type: "api_key"
|
|
539
|
+
},
|
|
540
|
+
base_version: 7,
|
|
541
|
+
before: {},
|
|
542
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
543
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
544
|
+
current_version: 7,
|
|
545
|
+
diff: [{ op: "add", path: "/rules/1/percentages/0/percentage", value: 25 }],
|
|
546
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
547
|
+
environment_key: "production",
|
|
548
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
549
|
+
kind: "value",
|
|
550
|
+
last_error: {
|
|
551
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
552
|
+
code: "VERSION_CONFLICT",
|
|
553
|
+
message: "The value changed since the change was scheduled."
|
|
554
|
+
},
|
|
555
|
+
note: "Turn on for everyone",
|
|
556
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
557
|
+
required_approvals: 1,
|
|
558
|
+
reviews: [
|
|
559
|
+
{
|
|
560
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
561
|
+
decision: "approved",
|
|
562
|
+
note: "Looks good",
|
|
563
|
+
reviewer_id: "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
|
|
564
|
+
reviewer_label: "ada@example.com"
|
|
565
|
+
}
|
|
566
|
+
],
|
|
567
|
+
scheduled_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
568
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
569
|
+
setting_key: "new_checkout",
|
|
570
|
+
stale: false,
|
|
571
|
+
status: "pending",
|
|
572
|
+
summary: ["value false \u2192 true"],
|
|
573
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
574
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
575
|
+
} },
|
|
301
576
|
{ op: "projects.changes.export", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/projects\/[^\/]+\/changes\/export$/, status: 200, contentType: "application/x-ndjson", body: "" },
|
|
302
577
|
{ op: "webhooks.endpoints.test", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/webhooks\/endpoints\/[^\/]+\/test$/, status: 200, contentType: "application/json", body: {
|
|
303
578
|
attempt_number: 1,
|
|
@@ -314,6 +589,153 @@ var ROUTES = [
|
|
|
314
589
|
trigger: "automatic",
|
|
315
590
|
url: "https://example.com"
|
|
316
591
|
} },
|
|
592
|
+
{ op: "changeRequests.cancel", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/change-requests\/[^\/]+\/cancel$/, status: 200, contentType: "application/json", body: {
|
|
593
|
+
after: {},
|
|
594
|
+
applied_at: "2026-01-01T00:00:00.000Z",
|
|
595
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
596
|
+
approvals: 0,
|
|
597
|
+
author: {
|
|
598
|
+
client_id: null,
|
|
599
|
+
id: "pak_01HZX3",
|
|
600
|
+
is_agent: true,
|
|
601
|
+
label: "release-bot",
|
|
602
|
+
on_behalf_of_user_id: null,
|
|
603
|
+
type: "api_key"
|
|
604
|
+
},
|
|
605
|
+
base_version: 7,
|
|
606
|
+
before: {},
|
|
607
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
608
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
609
|
+
current_version: 7,
|
|
610
|
+
diff: [{ op: "add", path: "/rules/1/percentages/0/percentage", value: 25 }],
|
|
611
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
612
|
+
environment_key: "production",
|
|
613
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
614
|
+
kind: "value",
|
|
615
|
+
last_error: {
|
|
616
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
617
|
+
code: "VERSION_CONFLICT",
|
|
618
|
+
message: "The value changed since the change was scheduled."
|
|
619
|
+
},
|
|
620
|
+
note: "Turn on for everyone",
|
|
621
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
622
|
+
required_approvals: 1,
|
|
623
|
+
reviews: [
|
|
624
|
+
{
|
|
625
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
626
|
+
decision: "approved",
|
|
627
|
+
note: "Looks good",
|
|
628
|
+
reviewer_id: "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
|
|
629
|
+
reviewer_label: "ada@example.com"
|
|
630
|
+
}
|
|
631
|
+
],
|
|
632
|
+
scheduled_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
633
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
634
|
+
setting_key: "new_checkout",
|
|
635
|
+
stale: false,
|
|
636
|
+
status: "pending",
|
|
637
|
+
summary: ["value false \u2192 true"],
|
|
638
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
639
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
640
|
+
} },
|
|
641
|
+
{ op: "changeRequests.rebase", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/change-requests\/[^\/]+\/rebase$/, status: 200, contentType: "application/json", body: {
|
|
642
|
+
after: {},
|
|
643
|
+
applied_at: "2026-01-01T00:00:00.000Z",
|
|
644
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
645
|
+
approvals: 0,
|
|
646
|
+
author: {
|
|
647
|
+
client_id: null,
|
|
648
|
+
id: "pak_01HZX3",
|
|
649
|
+
is_agent: true,
|
|
650
|
+
label: "release-bot",
|
|
651
|
+
on_behalf_of_user_id: null,
|
|
652
|
+
type: "api_key"
|
|
653
|
+
},
|
|
654
|
+
base_version: 7,
|
|
655
|
+
before: {},
|
|
656
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
657
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
658
|
+
current_version: 7,
|
|
659
|
+
diff: [{ op: "add", path: "/rules/1/percentages/0/percentage", value: 25 }],
|
|
660
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
661
|
+
environment_key: "production",
|
|
662
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
663
|
+
kind: "value",
|
|
664
|
+
last_error: {
|
|
665
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
666
|
+
code: "VERSION_CONFLICT",
|
|
667
|
+
message: "The value changed since the change was scheduled."
|
|
668
|
+
},
|
|
669
|
+
note: "Turn on for everyone",
|
|
670
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
671
|
+
required_approvals: 1,
|
|
672
|
+
reviews: [
|
|
673
|
+
{
|
|
674
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
675
|
+
decision: "approved",
|
|
676
|
+
note: "Looks good",
|
|
677
|
+
reviewer_id: "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
|
|
678
|
+
reviewer_label: "ada@example.com"
|
|
679
|
+
}
|
|
680
|
+
],
|
|
681
|
+
scheduled_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
682
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
683
|
+
setting_key: "new_checkout",
|
|
684
|
+
stale: false,
|
|
685
|
+
status: "pending",
|
|
686
|
+
summary: ["value false \u2192 true"],
|
|
687
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
688
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
689
|
+
} },
|
|
690
|
+
{ op: "changeRequests.reject", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/change-requests\/[^\/]+\/reject$/, status: 200, contentType: "application/json", body: {
|
|
691
|
+
after: {},
|
|
692
|
+
applied_at: "2026-01-01T00:00:00.000Z",
|
|
693
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
694
|
+
approvals: 0,
|
|
695
|
+
author: {
|
|
696
|
+
client_id: null,
|
|
697
|
+
id: "pak_01HZX3",
|
|
698
|
+
is_agent: true,
|
|
699
|
+
label: "release-bot",
|
|
700
|
+
on_behalf_of_user_id: null,
|
|
701
|
+
type: "api_key"
|
|
702
|
+
},
|
|
703
|
+
base_version: 7,
|
|
704
|
+
before: {},
|
|
705
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
706
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
707
|
+
current_version: 7,
|
|
708
|
+
diff: [{ op: "add", path: "/rules/1/percentages/0/percentage", value: 25 }],
|
|
709
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
710
|
+
environment_key: "production",
|
|
711
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
712
|
+
kind: "value",
|
|
713
|
+
last_error: {
|
|
714
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
715
|
+
code: "VERSION_CONFLICT",
|
|
716
|
+
message: "The value changed since the change was scheduled."
|
|
717
|
+
},
|
|
718
|
+
note: "Turn on for everyone",
|
|
719
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
720
|
+
required_approvals: 1,
|
|
721
|
+
reviews: [
|
|
722
|
+
{
|
|
723
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
724
|
+
decision: "approved",
|
|
725
|
+
note: "Looks good",
|
|
726
|
+
reviewer_id: "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
|
|
727
|
+
reviewer_label: "ada@example.com"
|
|
728
|
+
}
|
|
729
|
+
],
|
|
730
|
+
scheduled_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
731
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
732
|
+
setting_key: "new_checkout",
|
|
733
|
+
stale: false,
|
|
734
|
+
status: "pending",
|
|
735
|
+
summary: ["value false \u2192 true"],
|
|
736
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
737
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
738
|
+
} },
|
|
317
739
|
{ op: "webhooks.events.replay", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/webhooks\/events\/[^\/]+\/replay$/, status: 200, contentType: "application/json", body: {
|
|
318
740
|
attempts: [
|
|
319
741
|
{
|
|
@@ -334,7 +756,57 @@ var ROUTES = [
|
|
|
334
756
|
],
|
|
335
757
|
event_id: "string"
|
|
336
758
|
} },
|
|
759
|
+
{ op: "changeRequests.apply", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/change-requests\/[^\/]+\/apply$/, status: 200, contentType: "application/json", body: {
|
|
760
|
+
after: {},
|
|
761
|
+
applied_at: "2026-01-01T00:00:00.000Z",
|
|
762
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
763
|
+
approvals: 0,
|
|
764
|
+
author: {
|
|
765
|
+
client_id: null,
|
|
766
|
+
id: "pak_01HZX3",
|
|
767
|
+
is_agent: true,
|
|
768
|
+
label: "release-bot",
|
|
769
|
+
on_behalf_of_user_id: null,
|
|
770
|
+
type: "api_key"
|
|
771
|
+
},
|
|
772
|
+
base_version: 7,
|
|
773
|
+
before: {},
|
|
774
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
775
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
776
|
+
current_version: 7,
|
|
777
|
+
diff: [{ op: "add", path: "/rules/1/percentages/0/percentage", value: 25 }],
|
|
778
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
779
|
+
environment_key: "production",
|
|
780
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
781
|
+
kind: "value",
|
|
782
|
+
last_error: {
|
|
783
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
784
|
+
code: "VERSION_CONFLICT",
|
|
785
|
+
message: "The value changed since the change was scheduled."
|
|
786
|
+
},
|
|
787
|
+
note: "Turn on for everyone",
|
|
788
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
789
|
+
required_approvals: 1,
|
|
790
|
+
reviews: [
|
|
791
|
+
{
|
|
792
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
793
|
+
decision: "approved",
|
|
794
|
+
note: "Looks good",
|
|
795
|
+
reviewer_id: "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
|
|
796
|
+
reviewer_label: "ada@example.com"
|
|
797
|
+
}
|
|
798
|
+
],
|
|
799
|
+
scheduled_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
800
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
801
|
+
setting_key: "new_checkout",
|
|
802
|
+
stale: false,
|
|
803
|
+
status: "pending",
|
|
804
|
+
summary: ["value false \u2192 true"],
|
|
805
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
806
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
807
|
+
} },
|
|
337
808
|
{ op: "projects.environments.create", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/projects\/[^\/]+\/environments$/, status: 201, contentType: "application/json", body: {
|
|
809
|
+
approval_policy: "agents",
|
|
338
810
|
color: "#c92a2a",
|
|
339
811
|
created_at: "2026-01-01T00:00:00.000Z",
|
|
340
812
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
@@ -344,12 +816,14 @@ var ROUTES = [
|
|
|
344
816
|
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
345
817
|
protected: true,
|
|
346
818
|
require_note: false,
|
|
819
|
+
required_approvals: 1,
|
|
347
820
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
348
821
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
349
822
|
} },
|
|
350
823
|
{ op: "projects.environments.list", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/projects\/[^\/]+\/environments$/, status: 200, contentType: "application/json", body: {
|
|
351
824
|
data: [
|
|
352
825
|
{
|
|
826
|
+
approval_policy: "agents",
|
|
353
827
|
color: "#c92a2a",
|
|
354
828
|
created_at: "2026-01-01T00:00:00.000Z",
|
|
355
829
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
@@ -359,6 +833,7 @@ var ROUTES = [
|
|
|
359
833
|
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
360
834
|
protected: true,
|
|
361
835
|
require_note: false,
|
|
836
|
+
required_approvals: 1,
|
|
362
837
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
363
838
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
364
839
|
}
|
|
@@ -377,6 +852,38 @@ var ROUTES = [
|
|
|
377
852
|
}
|
|
378
853
|
]
|
|
379
854
|
} },
|
|
855
|
+
{ op: "projects.staleFlags.list", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/projects\/[^\/]+\/stale-flags$/, status: 200, contentType: "application/json", body: {
|
|
856
|
+
data: [
|
|
857
|
+
{
|
|
858
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
859
|
+
config_key: "main",
|
|
860
|
+
days_since_change: 64,
|
|
861
|
+
environments: [
|
|
862
|
+
{
|
|
863
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
864
|
+
environment_key: "production",
|
|
865
|
+
has_targeting: false,
|
|
866
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
867
|
+
value: true
|
|
868
|
+
}
|
|
869
|
+
],
|
|
870
|
+
key: "new_checkout",
|
|
871
|
+
last_changed_at: "2026-01-01T00:00:00.000Z",
|
|
872
|
+
lifecycle: "temporary",
|
|
873
|
+
name: "New checkout",
|
|
874
|
+
owner_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
875
|
+
prerequisite_of: 0,
|
|
876
|
+
reasons: ["no_recent_change", "rolled_out"],
|
|
877
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
878
|
+
suggested_value: true,
|
|
879
|
+
tags: ["checkout"],
|
|
880
|
+
type: "boolean"
|
|
881
|
+
}
|
|
882
|
+
],
|
|
883
|
+
days: 30,
|
|
884
|
+
evaluation_data: "not_collected",
|
|
885
|
+
pagination: { next_cursor: null, has_more: false }
|
|
886
|
+
} },
|
|
380
887
|
{ op: "webhooks.endpoints.delete", method: "DELETE", pattern: /^\/v1\/workspaces\/[^\/]+\/webhooks\/endpoints\/[^\/]+$/, status: 204, contentType: null, body: null },
|
|
381
888
|
{ op: "webhooks.endpoints.retrieve", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/webhooks\/endpoints\/[^\/]+$/, status: 200, contentType: "application/json", body: {
|
|
382
889
|
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
@@ -493,6 +1000,40 @@ var ROUTES = [
|
|
|
493
1000
|
],
|
|
494
1001
|
pagination: { next_cursor: null, has_more: false }
|
|
495
1002
|
} },
|
|
1003
|
+
{ op: "scheduledChanges.retrieve", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/scheduled-changes\/[^\/]+$/, status: 200, contentType: "application/json", body: {
|
|
1004
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1005
|
+
base_version: 7,
|
|
1006
|
+
change_request_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1007
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1008
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
1009
|
+
created_by: {
|
|
1010
|
+
client_id: null,
|
|
1011
|
+
id: "pak_01HZX3",
|
|
1012
|
+
is_agent: true,
|
|
1013
|
+
label: "release-bot",
|
|
1014
|
+
on_behalf_of_user_id: null,
|
|
1015
|
+
type: "api_key"
|
|
1016
|
+
},
|
|
1017
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1018
|
+
environment_key: "production",
|
|
1019
|
+
executed_at: "2026-01-01T00:00:00.000Z",
|
|
1020
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1021
|
+
last_error: {
|
|
1022
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
1023
|
+
code: "VERSION_CONFLICT",
|
|
1024
|
+
message: "The value changed since the change was scheduled."
|
|
1025
|
+
},
|
|
1026
|
+
note: "Launch at 09:00",
|
|
1027
|
+
operation: "patch",
|
|
1028
|
+
payload: {},
|
|
1029
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1030
|
+
run_at: "2026-01-01T00:00:00.000Z",
|
|
1031
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1032
|
+
setting_key: "new_checkout",
|
|
1033
|
+
status: "pending",
|
|
1034
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
1035
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
1036
|
+
} },
|
|
496
1037
|
{ op: "configs.settings.create", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/configs\/[^\/]+\/settings$/, status: 201, contentType: "application/json", body: {
|
|
497
1038
|
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
498
1039
|
created_at: "2026-01-01T00:00:00.000Z",
|
|
@@ -625,6 +1166,55 @@ var ROUTES = [
|
|
|
625
1166
|
],
|
|
626
1167
|
pagination: { next_cursor: null, has_more: false }
|
|
627
1168
|
} },
|
|
1169
|
+
{ op: "changeRequests.retrieve", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/change-requests\/[^\/]+$/, status: 200, contentType: "application/json", body: {
|
|
1170
|
+
after: {},
|
|
1171
|
+
applied_at: "2026-01-01T00:00:00.000Z",
|
|
1172
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1173
|
+
approvals: 0,
|
|
1174
|
+
author: {
|
|
1175
|
+
client_id: null,
|
|
1176
|
+
id: "pak_01HZX3",
|
|
1177
|
+
is_agent: true,
|
|
1178
|
+
label: "release-bot",
|
|
1179
|
+
on_behalf_of_user_id: null,
|
|
1180
|
+
type: "api_key"
|
|
1181
|
+
},
|
|
1182
|
+
base_version: 7,
|
|
1183
|
+
before: {},
|
|
1184
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1185
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
1186
|
+
current_version: 7,
|
|
1187
|
+
diff: [{ op: "add", path: "/rules/1/percentages/0/percentage", value: 25 }],
|
|
1188
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1189
|
+
environment_key: "production",
|
|
1190
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1191
|
+
kind: "value",
|
|
1192
|
+
last_error: {
|
|
1193
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
1194
|
+
code: "VERSION_CONFLICT",
|
|
1195
|
+
message: "The value changed since the change was scheduled."
|
|
1196
|
+
},
|
|
1197
|
+
note: "Turn on for everyone",
|
|
1198
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1199
|
+
required_approvals: 1,
|
|
1200
|
+
reviews: [
|
|
1201
|
+
{
|
|
1202
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
1203
|
+
decision: "approved",
|
|
1204
|
+
note: "Looks good",
|
|
1205
|
+
reviewer_id: "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
|
|
1206
|
+
reviewer_label: "ada@example.com"
|
|
1207
|
+
}
|
|
1208
|
+
],
|
|
1209
|
+
scheduled_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1210
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1211
|
+
setting_key: "new_checkout",
|
|
1212
|
+
stale: false,
|
|
1213
|
+
status: "pending",
|
|
1214
|
+
summary: ["value false \u2192 true"],
|
|
1215
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
1216
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
1217
|
+
} },
|
|
628
1218
|
{ op: "configs.compare", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/configs\/[^\/]+\/compare$/, status: 200, contentType: "application/json", body: {
|
|
629
1219
|
data: [
|
|
630
1220
|
{
|
|
@@ -740,6 +1330,102 @@ var ROUTES = [
|
|
|
740
1330
|
size_bytes: 1,
|
|
741
1331
|
summary: ["Production: value false \u2192 true"]
|
|
742
1332
|
} },
|
|
1333
|
+
{ op: "ramps.cancel", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/ramps\/[^\/]+\/cancel$/, status: 200, contentType: "application/json", body: {
|
|
1334
|
+
change_request_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1335
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1336
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
1337
|
+
created_by: {
|
|
1338
|
+
client_id: null,
|
|
1339
|
+
id: "pak_01HZX3",
|
|
1340
|
+
is_agent: true,
|
|
1341
|
+
label: "release-bot",
|
|
1342
|
+
on_behalf_of_user_id: null,
|
|
1343
|
+
type: "api_key"
|
|
1344
|
+
},
|
|
1345
|
+
current_percentage: 25,
|
|
1346
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1347
|
+
environment_key: "production",
|
|
1348
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1349
|
+
last_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1350
|
+
last_error: {
|
|
1351
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
1352
|
+
code: "VERSION_CONFLICT",
|
|
1353
|
+
message: "The value changed since the change was scheduled."
|
|
1354
|
+
},
|
|
1355
|
+
note: "Ramp the new checkout",
|
|
1356
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1357
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1358
|
+
setting_key: "new_checkout",
|
|
1359
|
+
status: "active",
|
|
1360
|
+
steps: [{ applied: false, at: "2026-01-01T00:00:00.000Z", percentage: 25 }],
|
|
1361
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
1362
|
+
value: true,
|
|
1363
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
1364
|
+
} },
|
|
1365
|
+
{ op: "ramps.resume", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/ramps\/[^\/]+\/resume$/, status: 200, contentType: "application/json", body: {
|
|
1366
|
+
change_request_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1367
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1368
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
1369
|
+
created_by: {
|
|
1370
|
+
client_id: null,
|
|
1371
|
+
id: "pak_01HZX3",
|
|
1372
|
+
is_agent: true,
|
|
1373
|
+
label: "release-bot",
|
|
1374
|
+
on_behalf_of_user_id: null,
|
|
1375
|
+
type: "api_key"
|
|
1376
|
+
},
|
|
1377
|
+
current_percentage: 25,
|
|
1378
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1379
|
+
environment_key: "production",
|
|
1380
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1381
|
+
last_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1382
|
+
last_error: {
|
|
1383
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
1384
|
+
code: "VERSION_CONFLICT",
|
|
1385
|
+
message: "The value changed since the change was scheduled."
|
|
1386
|
+
},
|
|
1387
|
+
note: "Ramp the new checkout",
|
|
1388
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1389
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1390
|
+
setting_key: "new_checkout",
|
|
1391
|
+
status: "active",
|
|
1392
|
+
steps: [{ applied: false, at: "2026-01-01T00:00:00.000Z", percentage: 25 }],
|
|
1393
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
1394
|
+
value: true,
|
|
1395
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
1396
|
+
} },
|
|
1397
|
+
{ op: "ramps.pause", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/ramps\/[^\/]+\/pause$/, status: 200, contentType: "application/json", body: {
|
|
1398
|
+
change_request_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1399
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1400
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
1401
|
+
created_by: {
|
|
1402
|
+
client_id: null,
|
|
1403
|
+
id: "pak_01HZX3",
|
|
1404
|
+
is_agent: true,
|
|
1405
|
+
label: "release-bot",
|
|
1406
|
+
on_behalf_of_user_id: null,
|
|
1407
|
+
type: "api_key"
|
|
1408
|
+
},
|
|
1409
|
+
current_percentage: 25,
|
|
1410
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1411
|
+
environment_key: "production",
|
|
1412
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1413
|
+
last_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1414
|
+
last_error: {
|
|
1415
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
1416
|
+
code: "VERSION_CONFLICT",
|
|
1417
|
+
message: "The value changed since the change was scheduled."
|
|
1418
|
+
},
|
|
1419
|
+
note: "Ramp the new checkout",
|
|
1420
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1421
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1422
|
+
setting_key: "new_checkout",
|
|
1423
|
+
status: "active",
|
|
1424
|
+
steps: [{ applied: false, at: "2026-01-01T00:00:00.000Z", percentage: 25 }],
|
|
1425
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
1426
|
+
value: true,
|
|
1427
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
1428
|
+
} },
|
|
743
1429
|
{ op: "projects.delete", method: "DELETE", pattern: /^\/v1\/workspaces\/[^\/]+\/projects\/[^\/]+$/, status: 204, contentType: null, body: null },
|
|
744
1430
|
{ op: "projects.retrieve", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/projects\/[^\/]+$/, status: 200, contentType: "application/json", body: {
|
|
745
1431
|
configs: [
|
|
@@ -759,6 +1445,7 @@ var ROUTES = [
|
|
|
759
1445
|
description: "",
|
|
760
1446
|
environments: [
|
|
761
1447
|
{
|
|
1448
|
+
approval_policy: "agents",
|
|
762
1449
|
color: "#c92a2a",
|
|
763
1450
|
created_at: "2026-01-01T00:00:00.000Z",
|
|
764
1451
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
@@ -768,6 +1455,7 @@ var ROUTES = [
|
|
|
768
1455
|
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
769
1456
|
protected: true,
|
|
770
1457
|
require_note: false,
|
|
1458
|
+
required_approvals: 1,
|
|
771
1459
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
772
1460
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
773
1461
|
}
|
|
@@ -775,6 +1463,8 @@ var ROUTES = [
|
|
|
775
1463
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
776
1464
|
name: "Storefront",
|
|
777
1465
|
ordinal: 0,
|
|
1466
|
+
stale_after_days: 30,
|
|
1467
|
+
stale_digest: true,
|
|
778
1468
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
779
1469
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
780
1470
|
} },
|
|
@@ -796,6 +1486,7 @@ var ROUTES = [
|
|
|
796
1486
|
description: "",
|
|
797
1487
|
environments: [
|
|
798
1488
|
{
|
|
1489
|
+
approval_policy: "agents",
|
|
799
1490
|
color: "#c92a2a",
|
|
800
1491
|
created_at: "2026-01-01T00:00:00.000Z",
|
|
801
1492
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
@@ -805,6 +1496,7 @@ var ROUTES = [
|
|
|
805
1496
|
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
806
1497
|
protected: true,
|
|
807
1498
|
require_note: false,
|
|
1499
|
+
required_approvals: 1,
|
|
808
1500
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
809
1501
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
810
1502
|
}
|
|
@@ -812,6 +1504,8 @@ var ROUTES = [
|
|
|
812
1504
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
813
1505
|
name: "Storefront",
|
|
814
1506
|
ordinal: 0,
|
|
1507
|
+
stale_after_days: 30,
|
|
1508
|
+
stale_digest: true,
|
|
815
1509
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
816
1510
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
817
1511
|
} },
|
|
@@ -1037,6 +1731,38 @@ var ROUTES = [
|
|
|
1037
1731
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
1038
1732
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
1039
1733
|
} },
|
|
1734
|
+
{ op: "ramps.retrieve", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/ramps\/[^\/]+$/, status: 200, contentType: "application/json", body: {
|
|
1735
|
+
change_request_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1736
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1737
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
1738
|
+
created_by: {
|
|
1739
|
+
client_id: null,
|
|
1740
|
+
id: "pak_01HZX3",
|
|
1741
|
+
is_agent: true,
|
|
1742
|
+
label: "release-bot",
|
|
1743
|
+
on_behalf_of_user_id: null,
|
|
1744
|
+
type: "api_key"
|
|
1745
|
+
},
|
|
1746
|
+
current_percentage: 25,
|
|
1747
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1748
|
+
environment_key: "production",
|
|
1749
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1750
|
+
last_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1751
|
+
last_error: {
|
|
1752
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
1753
|
+
code: "VERSION_CONFLICT",
|
|
1754
|
+
message: "The value changed since the change was scheduled."
|
|
1755
|
+
},
|
|
1756
|
+
note: "Ramp the new checkout",
|
|
1757
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1758
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1759
|
+
setting_key: "new_checkout",
|
|
1760
|
+
status: "active",
|
|
1761
|
+
steps: [{ applied: false, at: "2026-01-01T00:00:00.000Z", percentage: 25 }],
|
|
1762
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
1763
|
+
value: true,
|
|
1764
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
1765
|
+
} },
|
|
1040
1766
|
{ op: "configs.environments.sdkKeys.endGracePeriod", method: "DELETE", pattern: /^\/v1\/workspaces\/[^\/]+\/configs\/[^\/]+\/environments\/[^\/]+\/sdk-keys\/secondary$/, status: 200, contentType: "application/json", body: {
|
|
1041
1767
|
data: [
|
|
1042
1768
|
{
|
|
@@ -1071,6 +1797,89 @@ var ROUTES = [
|
|
|
1071
1797
|
}
|
|
1072
1798
|
]
|
|
1073
1799
|
} },
|
|
1800
|
+
{ op: "settings.values.scheduledChanges.create", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/settings\/[^\/]+\/values\/[^\/]+\/scheduled-changes$/, status: 201, contentType: "application/json", body: {
|
|
1801
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1802
|
+
base_version: 7,
|
|
1803
|
+
change_request_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1804
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1805
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
1806
|
+
created_by: {
|
|
1807
|
+
client_id: null,
|
|
1808
|
+
id: "pak_01HZX3",
|
|
1809
|
+
is_agent: true,
|
|
1810
|
+
label: "release-bot",
|
|
1811
|
+
on_behalf_of_user_id: null,
|
|
1812
|
+
type: "api_key"
|
|
1813
|
+
},
|
|
1814
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1815
|
+
environment_key: "production",
|
|
1816
|
+
executed_at: "2026-01-01T00:00:00.000Z",
|
|
1817
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1818
|
+
last_error: {
|
|
1819
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
1820
|
+
code: "VERSION_CONFLICT",
|
|
1821
|
+
message: "The value changed since the change was scheduled."
|
|
1822
|
+
},
|
|
1823
|
+
note: "Launch at 09:00",
|
|
1824
|
+
operation: "patch",
|
|
1825
|
+
payload: {},
|
|
1826
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1827
|
+
run_at: "2026-01-01T00:00:00.000Z",
|
|
1828
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1829
|
+
setting_key: "new_checkout",
|
|
1830
|
+
status: "pending",
|
|
1831
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
1832
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
1833
|
+
} },
|
|
1834
|
+
{ op: "settings.values.changeRequests.create", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/settings\/[^\/]+\/values\/[^\/]+\/change-requests$/, status: 201, contentType: "application/json", body: {
|
|
1835
|
+
after: {},
|
|
1836
|
+
applied_at: "2026-01-01T00:00:00.000Z",
|
|
1837
|
+
applied_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1838
|
+
approvals: 0,
|
|
1839
|
+
author: {
|
|
1840
|
+
client_id: null,
|
|
1841
|
+
id: "pak_01HZX3",
|
|
1842
|
+
is_agent: true,
|
|
1843
|
+
label: "release-bot",
|
|
1844
|
+
on_behalf_of_user_id: null,
|
|
1845
|
+
type: "api_key"
|
|
1846
|
+
},
|
|
1847
|
+
base_version: 7,
|
|
1848
|
+
before: {},
|
|
1849
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1850
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
1851
|
+
current_version: 7,
|
|
1852
|
+
diff: [{ op: "add", path: "/rules/1/percentages/0/percentage", value: 25 }],
|
|
1853
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1854
|
+
environment_key: "production",
|
|
1855
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1856
|
+
kind: "value",
|
|
1857
|
+
last_error: {
|
|
1858
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
1859
|
+
code: "VERSION_CONFLICT",
|
|
1860
|
+
message: "The value changed since the change was scheduled."
|
|
1861
|
+
},
|
|
1862
|
+
note: "Turn on for everyone",
|
|
1863
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1864
|
+
required_approvals: 1,
|
|
1865
|
+
reviews: [
|
|
1866
|
+
{
|
|
1867
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
1868
|
+
decision: "approved",
|
|
1869
|
+
note: "Looks good",
|
|
1870
|
+
reviewer_id: "5e6f7a8b-9c0d-4e1f-a2b3-c4d5e6f7a8b9",
|
|
1871
|
+
reviewer_label: "ada@example.com"
|
|
1872
|
+
}
|
|
1873
|
+
],
|
|
1874
|
+
scheduled_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1875
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1876
|
+
setting_key: "new_checkout",
|
|
1877
|
+
stale: false,
|
|
1878
|
+
status: "pending",
|
|
1879
|
+
summary: ["value false \u2192 true"],
|
|
1880
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
1881
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
1882
|
+
} },
|
|
1074
1883
|
{ op: "configs.environments.revisions.list", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/configs\/[^\/]+\/environments\/[^\/]+\/revisions$/, status: 200, contentType: "application/json", body: {
|
|
1075
1884
|
data: [
|
|
1076
1885
|
{
|
|
@@ -1189,6 +1998,7 @@ var ROUTES = [
|
|
|
1189
1998
|
} },
|
|
1190
1999
|
{ op: "projects.environments.delete", method: "DELETE", pattern: /^\/v1\/workspaces\/[^\/]+\/projects\/[^\/]+\/environments\/[^\/]+$/, status: 204, contentType: null, body: null },
|
|
1191
2000
|
{ op: "projects.environments.retrieve", method: "GET", pattern: /^\/v1\/workspaces\/[^\/]+\/projects\/[^\/]+\/environments\/[^\/]+$/, status: 200, contentType: "application/json", body: {
|
|
2001
|
+
approval_policy: "agents",
|
|
1192
2002
|
color: "#c92a2a",
|
|
1193
2003
|
created_at: "2026-01-01T00:00:00.000Z",
|
|
1194
2004
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
@@ -1198,10 +2008,12 @@ var ROUTES = [
|
|
|
1198
2008
|
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1199
2009
|
protected: true,
|
|
1200
2010
|
require_note: false,
|
|
2011
|
+
required_approvals: 1,
|
|
1201
2012
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
1202
2013
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
1203
2014
|
} },
|
|
1204
2015
|
{ op: "projects.environments.update", method: "PATCH", pattern: /^\/v1\/workspaces\/[^\/]+\/projects\/[^\/]+\/environments\/[^\/]+$/, status: 200, contentType: "application/json", body: {
|
|
2016
|
+
approval_policy: "agents",
|
|
1205
2017
|
color: "#c92a2a",
|
|
1206
2018
|
created_at: "2026-01-01T00:00:00.000Z",
|
|
1207
2019
|
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
@@ -1211,7 +2023,40 @@ var ROUTES = [
|
|
|
1211
2023
|
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
1212
2024
|
protected: true,
|
|
1213
2025
|
require_note: false,
|
|
2026
|
+
required_approvals: 1,
|
|
2027
|
+
updated_at: "2026-01-01T00:00:00.000Z",
|
|
2028
|
+
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
2029
|
+
} },
|
|
2030
|
+
{ op: "settings.values.ramps.create", method: "POST", pattern: /^\/v1\/workspaces\/[^\/]+\/settings\/[^\/]+\/values\/[^\/]+\/ramps$/, status: 201, contentType: "application/json", body: {
|
|
2031
|
+
change_request_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
2032
|
+
config_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
2033
|
+
created_at: "2026-01-01T00:00:00.000Z",
|
|
2034
|
+
created_by: {
|
|
2035
|
+
client_id: null,
|
|
2036
|
+
id: "pak_01HZX3",
|
|
2037
|
+
is_agent: true,
|
|
2038
|
+
label: "release-bot",
|
|
2039
|
+
on_behalf_of_user_id: null,
|
|
2040
|
+
type: "api_key"
|
|
2041
|
+
},
|
|
2042
|
+
current_percentage: 25,
|
|
2043
|
+
environment_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
2044
|
+
environment_key: "production",
|
|
2045
|
+
id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
2046
|
+
last_change_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
2047
|
+
last_error: {
|
|
2048
|
+
at: "2026-01-01T00:00:00.000Z",
|
|
2049
|
+
code: "VERSION_CONFLICT",
|
|
2050
|
+
message: "The value changed since the change was scheduled."
|
|
2051
|
+
},
|
|
2052
|
+
note: "Ramp the new checkout",
|
|
2053
|
+
project_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
2054
|
+
setting_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b",
|
|
2055
|
+
setting_key: "new_checkout",
|
|
2056
|
+
status: "active",
|
|
2057
|
+
steps: [{ applied: false, at: "2026-01-01T00:00:00.000Z", percentage: 25 }],
|
|
1214
2058
|
updated_at: "2026-01-01T00:00:00.000Z",
|
|
2059
|
+
value: true,
|
|
1215
2060
|
workspace_id: "9b2f6c1e-0d6a-4a63-9a43-2f1c3e4d5a6b"
|
|
1216
2061
|
} },
|
|
1217
2062
|
{ op: "settings.values.replace", method: "PUT", pattern: /^\/v1\/workspaces\/[^\/]+\/settings\/[^\/]+\/values\/[^\/]+$/, status: 200, contentType: "application/json", body: {
|
|
@@ -1289,10 +2134,10 @@ function createMockFetch(overrides = {}) {
|
|
|
1289
2134
|
}
|
|
1290
2135
|
|
|
1291
2136
|
// src/client/testing.ts
|
|
1292
|
-
var TestFlagsClient = class extends
|
|
2137
|
+
var TestFlagsClient = class extends chunkSHMDNO4G_cjs.FlagsClient {
|
|
1293
2138
|
/** Changes one value; emits `configChanged`. */
|
|
1294
2139
|
set(key, value) {
|
|
1295
|
-
|
|
2140
|
+
chunkSHMDNO4G_cjs.setOverride(this, key, value);
|
|
1296
2141
|
}
|
|
1297
2142
|
};
|
|
1298
2143
|
function createTestClient(options = {}) {
|