@celigo/api-specs 0.2.255 → 0.2.257

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/alert.yml CHANGED
@@ -549,24 +549,8 @@ paths:
549
549
  type: string
550
550
  examples:
551
551
  - W3siJGRhdGUiOiIyMDI2LTA1LTAxVDAwOjAwOjAwLjAwMFoifSwiNjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwIl0
552
- - name: from
553
- in: query
554
- required: false
555
- description: Only return entries at or after this timestamp.
556
- schema:
557
- type: string
558
- format: date-time
559
- examples:
560
- - '2026-05-01T00:00:00.000Z'
561
- - name: to
562
- in: query
563
- required: false
564
- description: Only return entries at or before this timestamp.
565
- schema:
566
- type: string
567
- format: date-time
568
- examples:
569
- - '2026-06-01T00:00:00.000Z'
552
+ - $ref: '#/components/parameters/From'
553
+ - $ref: '#/components/parameters/To'
570
554
  responses:
571
555
  '200':
572
556
  description: Audit entries for the alert.
@@ -735,7 +719,7 @@ paths:
735
719
  '404':
736
720
  $ref: '#/components/responses/404-not-found'
737
721
  '422':
738
- $ref: '#/components/responses/422-unprocessable-entity'
722
+ $ref: '#/components/responses/422-invalid-audit-query'
739
723
  components:
740
724
  securitySchemes:
741
725
  bearerAuth:
@@ -1255,5 +1239,71 @@ components:
1255
1239
  errors:
1256
1240
  - code: not_found
1257
1241
  message: The requested resource was not found.
1242
+ 422-invalid-audit-query:
1243
+ description: |-
1244
+ A query value is invalid: a filter outside the audit vocabulary (`invalid_audit_field`), a
1245
+ `from` or `to` that is not ISO 8601 (`invalid_timestamp_format`), a bound in the future or a `to`
1246
+ older than the account's audit window (`invalid_time_period`), or a `from` later than `to`
1247
+ (`invalid_time_range`).
1248
+ content:
1249
+ application/json:
1250
+ schema:
1251
+ $ref: '#/components/schemas/Error'
1252
+ examples:
1253
+ invalid_source:
1254
+ value:
1255
+ errors:
1256
+ - code: invalid_audit_field
1257
+ message: zzz is not a valid audit source.
1258
+ to_before_window:
1259
+ summary: A `to` older than a three-year audit window
1260
+ value:
1261
+ errors:
1262
+ - code: invalid_time_period
1263
+ message: 'Please make sure that the time provided for field: "to" is not older than 3 year(s) to current date and is not a future date.'
1264
+ from_in_future:
1265
+ value:
1266
+ errors:
1267
+ - code: invalid_time_period
1268
+ message: 'Please make sure that the time provided for field: "from" is not older than 3 year(s) to current date and is not a future date.'
1269
+ from_after_to:
1270
+ value:
1271
+ errors:
1272
+ - code: invalid_time_range
1273
+ message: Please make sure "from" time should not be greater than "to" time.
1274
+ not_iso_8601:
1275
+ value:
1276
+ errors:
1277
+ - code: invalid_timestamp_format
1278
+ message: 'Please make sure that the time provided for field: "from" is in ISO8601 time format.'
1279
+ parameters:
1280
+ From:
1281
+ name: from
1282
+ in: query
1283
+ required: false
1284
+ description: |-
1285
+ Only return entries at or after this timestamp. On a `platform` license, leaving it out limits
1286
+ the range to the year before `to` (or the last year when `to` is omitted too), and a value older
1287
+ than the audit window — the license's `auditLogRetentionYears` — starts the range at the
1288
+ window's edge instead of failing. A future value fails with 422 `invalid_time_period`.
1289
+ schema:
1290
+ type: string
1291
+ format: date-time
1292
+ examples:
1293
+ - '2026-05-01T00:00:00.000Z'
1294
+ To:
1295
+ name: to
1296
+ in: query
1297
+ required: false
1298
+ description: |-
1299
+ Only return entries at or before this timestamp. A future value, or one older than the
1300
+ account's audit window, fails with 422 `invalid_time_period`; the message names the window in
1301
+ years (the license's `auditLogRetentionYears` on a `platform` license). A value earlier than
1302
+ `from` fails with 422 `invalid_time_range`.
1303
+ schema:
1304
+ type: string
1305
+ format: date-time
1306
+ examples:
1307
+ - '2026-05-31T23:59:59.999Z'
1258
1308
  x-enable-proxy: true
1259
1309
  x-internal: false
package/dist/audit.yml CHANGED
@@ -24,7 +24,7 @@ tags:
24
24
  tracking, and troubleshooting.
25
25
 
26
26
  Notes:
27
- - History is retained for a minimum of one year.
27
+ - On a `platform` license, queries reach back as many years as the license's `auditLogRetentionYears`, but a query without `from` or `to` returns only the last year.
28
28
  - Sensitive values (tokens, passwords) appear masked as `******`.
29
29
  - CSV downloads are capped at ~20,000 rows per file; use `hasMore` to paginate.
30
30
  - `byUser` is populated at read time — it reflects the user's current name and email, not the values at the time of the action.
@@ -264,24 +264,8 @@ paths:
264
264
  signout: A user signed out of the account.
265
265
  purgelogs: Execution logs were purged for a resource.
266
266
  description: Filter by action/event.
267
- - name: from
268
- in: query
269
- required: false
270
- schema:
271
- type: string
272
- format: date-time
273
- examples:
274
- - '2025-01-01T00:00:00.000Z'
275
- description: Start timestamp (ISO-8601).
276
- - name: to
277
- in: query
278
- required: false
279
- schema:
280
- type: string
281
- format: date-time
282
- examples:
283
- - '2025-12-31T23:59:59.999Z'
284
- description: End timestamp (ISO-8601).
267
+ - $ref: '#/components/parameters/From'
268
+ - $ref: '#/components/parameters/To'
285
269
  responses:
286
270
  '200':
287
271
  description: Audit entries
@@ -337,7 +321,7 @@ paths:
337
321
  '403':
338
322
  $ref: '#/components/responses/403-administrator-only'
339
323
  '422':
340
- $ref: '#/components/responses/422-unprocessable-entity'
324
+ $ref: '#/components/responses/422-invalid-audit-query'
341
325
  post:
342
326
  x-internal: false
343
327
  summary: Query audit logs with multi-select filters
@@ -409,24 +393,8 @@ paths:
409
393
  x-enumDescriptions:
410
394
  asc: Oldest entries first.
411
395
  desc: Newest entries first.
412
- - name: from
413
- in: query
414
- required: false
415
- schema:
416
- type: string
417
- format: date-time
418
- examples:
419
- - '2025-01-01T00:00:00.000Z'
420
- description: Start timestamp (ISO-8601).
421
- - name: to
422
- in: query
423
- required: false
424
- schema:
425
- type: string
426
- format: date-time
427
- examples:
428
- - '2025-12-31T23:59:59.999Z'
429
- description: End timestamp (ISO-8601).
396
+ - $ref: '#/components/parameters/From'
397
+ - $ref: '#/components/parameters/To'
430
398
  requestBody:
431
399
  required: true
432
400
  content:
@@ -503,7 +471,9 @@ paths:
503
471
  '422':
504
472
  description: |-
505
473
  A filter value is invalid, a filter that must be an array was sent as
506
- another type, or the `after`/`before` cursor is malformed.
474
+ another type, the `after`/`before` cursor is malformed, or a time bound is
475
+ outside the account's audit window (`invalid_time_period`) or reversed
476
+ (`invalid_time_range`).
507
477
  content:
508
478
  application/json:
509
479
  schema:
@@ -519,6 +489,17 @@ paths:
519
489
  errors:
520
490
  - code: invalid_field_type
521
491
  message: The "source" field must be an array when provided in the request body.
492
+ to_before_window:
493
+ summary: A `to` older than a three-year audit window
494
+ value:
495
+ errors:
496
+ - code: invalid_time_period
497
+ message: 'Please make sure that the time provided for field: "to" is not older than 3 year(s) to current date and is not a future date.'
498
+ from_after_to:
499
+ value:
500
+ errors:
501
+ - code: invalid_time_range
502
+ message: Please make sure "from" time should not be greater than "to" time.
522
503
  /v1/audit/signedURL:
523
504
  get:
524
505
  x-internal: false
@@ -534,7 +515,8 @@ paths:
534
515
  account-wide log.
535
516
 
536
517
  The signed URL expires after 15 minutes. When `hasMore` is true, pass
537
- the last CSV row's timestamp as `to` to fetch the next batch.
518
+ the last CSV row's timestamp as `to` to fetch the next batch, keeping the
519
+ same `from`: without one, the batch covers only the year before `to`.
538
520
  parameters:
539
521
  - name: resourceType
540
522
  in: query
@@ -628,24 +610,8 @@ paths:
628
610
  examples:
629
611
  - 60a2c4e6f321d800129a1a3c
630
612
  description: Optional filter by resource id.
631
- - name: from
632
- in: query
633
- required: false
634
- schema:
635
- type: string
636
- format: date-time
637
- examples:
638
- - '2025-01-01T00:00:00.000Z'
639
- description: Start timestamp (ISO-8601).
640
- - name: to
641
- in: query
642
- required: false
643
- schema:
644
- type: string
645
- format: date-time
646
- examples:
647
- - '2025-12-31T23:59:59.999Z'
648
- description: End timestamp (ISO-8601).
613
+ - $ref: '#/components/parameters/From'
614
+ - $ref: '#/components/parameters/To'
649
615
  - name: action
650
616
  in: query
651
617
  required: false
@@ -717,7 +683,7 @@ paths:
717
683
  '403':
718
684
  $ref: '#/components/responses/403-administrator-only'
719
685
  '422':
720
- $ref: '#/components/responses/422-unprocessable-entity'
686
+ $ref: '#/components/responses/422-invalid-audit-query'
721
687
  post:
722
688
  x-internal: false
723
689
  summary: Get signed URL for audit CSV with multi-select filters
@@ -746,24 +712,8 @@ paths:
746
712
  x-enumDescriptions:
747
713
  asc: Oldest entries first.
748
714
  desc: Newest entries first.
749
- - name: from
750
- in: query
751
- required: false
752
- schema:
753
- type: string
754
- format: date-time
755
- examples:
756
- - '2025-01-01T00:00:00.000Z'
757
- description: Start timestamp (ISO-8601).
758
- - name: to
759
- in: query
760
- required: false
761
- schema:
762
- type: string
763
- format: date-time
764
- examples:
765
- - '2025-12-31T23:59:59.999Z'
766
- description: End timestamp (ISO-8601).
715
+ - $ref: '#/components/parameters/From'
716
+ - $ref: '#/components/parameters/To'
767
717
  requestBody:
768
718
  required: true
769
719
  content:
@@ -799,7 +749,7 @@ paths:
799
749
  '403':
800
750
  $ref: '#/components/responses/403-administrator-only'
801
751
  '422':
802
- $ref: '#/components/responses/422-unprocessable-entity'
752
+ $ref: '#/components/responses/422-invalid-audit-query'
803
753
  /v1/{resourceType}/{_id}/audit:
804
754
  get:
805
755
  x-internal: false
@@ -810,7 +760,8 @@ paths:
810
760
  description: |-
811
761
  Returns audit log entries for a specific resource and its descendants. For example,
812
762
  querying an integration returns changes to the integration, its flows, exports,
813
- imports, and connections.
763
+ imports, and connections, and querying a flow returns changes to the flow, its exports
764
+ and imports, their connections, and the scripts those steps reference.
814
765
 
815
766
  For account-wide searches, use `GET /v1/audit` instead.
816
767
  parameters:
@@ -906,24 +857,8 @@ paths:
906
857
  type: string
907
858
  examples:
908
859
  - W3siJGRhdGUiOiIyMDI2LTA1LTAxVDAwOjAwOjAwLjAwMFoifSwiNjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwIl0
909
- - name: from
910
- in: query
911
- required: false
912
- schema:
913
- type: string
914
- format: date-time
915
- examples:
916
- - '2025-01-01T00:00:00.000Z'
917
- description: Start timestamp (ISO-8601).
918
- - name: to
919
- in: query
920
- required: false
921
- schema:
922
- type: string
923
- format: date-time
924
- examples:
925
- - '2025-12-31T23:59:59.999Z'
926
- description: End timestamp (ISO-8601).
860
+ - $ref: '#/components/parameters/From'
861
+ - $ref: '#/components/parameters/To'
927
862
  - name: action
928
863
  in: query
929
864
  required: false
@@ -1033,7 +968,7 @@ paths:
1033
968
  '404':
1034
969
  $ref: '#/components/responses/404-not-found'
1035
970
  '422':
1036
- $ref: '#/components/responses/422-unprocessable-entity'
971
+ $ref: '#/components/responses/422-invalid-audit-query'
1037
972
  post:
1038
973
  x-internal: false
1039
974
  summary: Query a resource's audit log with multi-select filters
@@ -1173,24 +1108,8 @@ paths:
1173
1108
  x-enumDescriptions:
1174
1109
  asc: Oldest entries first.
1175
1110
  desc: Newest entries first.
1176
- - name: from
1177
- in: query
1178
- required: false
1179
- schema:
1180
- type: string
1181
- format: date-time
1182
- examples:
1183
- - '2025-01-01T00:00:00.000Z'
1184
- description: Start timestamp (ISO-8601).
1185
- - name: to
1186
- in: query
1187
- required: false
1188
- schema:
1189
- type: string
1190
- format: date-time
1191
- examples:
1192
- - '2025-12-31T23:59:59.999Z'
1193
- description: End timestamp (ISO-8601).
1111
+ - $ref: '#/components/parameters/From'
1112
+ - $ref: '#/components/parameters/To'
1194
1113
  requestBody:
1195
1114
  required: true
1196
1115
  content:
@@ -1254,11 +1173,25 @@ paths:
1254
1173
  '422':
1255
1174
  description: |-
1256
1175
  A filter value is invalid, a filter that must be an array was sent as
1257
- another type, or the `after`/`before` cursor is malformed.
1176
+ another type, the `after`/`before` cursor is malformed, or a time bound is
1177
+ outside the account's audit window (`invalid_time_period`) or reversed
1178
+ (`invalid_time_range`).
1258
1179
  content:
1259
1180
  application/json:
1260
1181
  schema:
1261
1182
  $ref: '#/components/schemas/Error'
1183
+ examples:
1184
+ to_before_window:
1185
+ summary: A `to` older than a three-year audit window
1186
+ value:
1187
+ errors:
1188
+ - code: invalid_time_period
1189
+ message: 'Please make sure that the time provided for field: "to" is not older than 3 year(s) to current date and is not a future date.'
1190
+ from_after_to:
1191
+ value:
1192
+ errors:
1193
+ - code: invalid_time_range
1194
+ message: Please make sure "from" time should not be greater than "to" time.
1262
1195
  /v1/{resourceType}/audit/signedURL:
1263
1196
  post:
1264
1197
  x-internal: false
@@ -1272,7 +1205,8 @@ paths:
1272
1205
 
1273
1206
  The signed URL expires after 15 minutes. When `hasMore` is true, pass
1274
1207
  the last CSV row's timestamp as `to` in the request body to fetch the
1275
- next batch.
1208
+ next batch, keeping the same `from`: without one, the batch covers only
1209
+ the year before `to`.
1276
1210
  parameters:
1277
1211
  - name: resourceType
1278
1212
  in: path
@@ -1372,12 +1306,41 @@ paths:
1372
1306
  '401':
1373
1307
  $ref: '#/components/responses/401-unauthorized'
1374
1308
  '422':
1375
- $ref: '#/components/responses/422-unprocessable-entity'
1309
+ $ref: '#/components/responses/422-invalid-audit-query'
1376
1310
  components:
1377
1311
  securitySchemes:
1378
1312
  bearerAuth:
1379
1313
  type: http
1380
1314
  scheme: bearer
1315
+ parameters:
1316
+ From:
1317
+ name: from
1318
+ in: query
1319
+ required: false
1320
+ description: |-
1321
+ Only return entries at or after this timestamp. On a `platform` license, leaving it out limits
1322
+ the range to the year before `to` (or the last year when `to` is omitted too), and a value older
1323
+ than the audit window — the license's `auditLogRetentionYears` — starts the range at the
1324
+ window's edge instead of failing. A future value fails with 422 `invalid_time_period`.
1325
+ schema:
1326
+ type: string
1327
+ format: date-time
1328
+ examples:
1329
+ - '2026-05-01T00:00:00.000Z'
1330
+ To:
1331
+ name: to
1332
+ in: query
1333
+ required: false
1334
+ description: |-
1335
+ Only return entries at or before this timestamp. A future value, or one older than the
1336
+ account's audit window, fails with 422 `invalid_time_period`; the message names the window in
1337
+ years (the license's `auditLogRetentionYears` on a `platform` license). A value earlier than
1338
+ `from` fails with 422 `invalid_time_range`.
1339
+ schema:
1340
+ type: string
1341
+ format: date-time
1342
+ examples:
1343
+ - '2026-05-31T23:59:59.999Z'
1381
1344
  schemas:
1382
1345
  FieldChange:
1383
1346
  type: object
@@ -1879,13 +1842,20 @@ components:
1879
1842
  from:
1880
1843
  type: string
1881
1844
  format: date-time
1882
- description: Start timestamp (ISO-8601).
1845
+ description: |-
1846
+ Only include entries at or after this timestamp. On a `platform` license, leaving it out
1847
+ limits the export to the year before `to` (or the last year), and a value older than the
1848
+ audit window — the license's `auditLogRetentionYears` — starts it at the window's edge
1849
+ instead of failing. A future value fails with 422 `invalid_time_period`.
1883
1850
  examples:
1884
1851
  - '2025-01-01T00:00:00.000Z'
1885
1852
  to:
1886
1853
  type: string
1887
1854
  format: date-time
1888
- description: End timestamp (ISO-8601).
1855
+ description: |-
1856
+ Only include entries at or before this timestamp. A future value, or one older than the
1857
+ account's audit window, fails with 422 `invalid_time_period`; one earlier than `from`
1858
+ fails with 422 `invalid_time_range`.
1889
1859
  examples:
1890
1860
  - '2025-12-31T23:59:59.999Z'
1891
1861
  action:
@@ -2079,19 +2049,43 @@ components:
2079
2049
  errors:
2080
2050
  - code: access_restricted
2081
2051
  message: The role which you are associated with doesn't have the required permissions to perform the action.
2082
- 422-unprocessable-entity:
2083
- description: |
2084
- Unprocessable entity. The request was well-formed but was unable to be followed due to semantic errors.
2052
+ 422-invalid-audit-query:
2053
+ description: |-
2054
+ A query value is invalid: a filter outside the audit vocabulary (`invalid_audit_field`), a
2055
+ `from` or `to` that is not ISO 8601 (`invalid_timestamp_format`), a bound in the future or a `to`
2056
+ older than the account's audit window (`invalid_time_period`), or a `from` later than `to`
2057
+ (`invalid_time_range`).
2085
2058
  content:
2086
2059
  application/json:
2087
2060
  schema:
2088
2061
  $ref: '#/components/schemas/Error'
2089
2062
  examples:
2090
- default:
2063
+ invalid_source:
2064
+ value:
2065
+ errors:
2066
+ - code: invalid_audit_field
2067
+ message: zzz is not a valid audit source.
2068
+ to_before_window:
2069
+ summary: A `to` older than a three-year audit window
2070
+ value:
2071
+ errors:
2072
+ - code: invalid_time_period
2073
+ message: 'Please make sure that the time provided for field: "to" is not older than 3 year(s) to current date and is not a future date.'
2074
+ from_in_future:
2075
+ value:
2076
+ errors:
2077
+ - code: invalid_time_period
2078
+ message: 'Please make sure that the time provided for field: "from" is not older than 3 year(s) to current date and is not a future date.'
2079
+ from_after_to:
2080
+ value:
2081
+ errors:
2082
+ - code: invalid_time_range
2083
+ message: Please make sure "from" time should not be greater than "to" time.
2084
+ not_iso_8601:
2091
2085
  value:
2092
2086
  errors:
2093
- - code: unprocessable_entity
2094
- message: The request could not be processed due to a semantic error.
2087
+ - code: invalid_timestamp_format
2088
+ message: 'Please make sure that the time provided for field: "from" is in ISO8601 time format.'
2095
2089
  401-unauthorized:
2096
2090
  description: |-
2097
2091
  Unauthorized. The request lacks a valid bearer token, or the provided token
@@ -297,7 +297,9 @@ paths:
297
297
  Toggles the enabled state of an environment -- a disabled environment
298
298
  becomes enabled and vice versa. The Production environment cannot be
299
299
  disabled, and pending user invitations must be resolved before
300
- disabling any environment.
300
+ disabling any environment. Enabling is refused while the account already
301
+ has as many enabled non-production environments as the license's
302
+ `platform.numEnvironments` allows; disable one first to make room.
301
303
 
302
304
  Requires a `Content-Type: application/json` header even though no
303
305
  request body is needed.
@@ -320,15 +322,26 @@ paths:
320
322
  '204':
321
323
  description: Environment state toggled.
322
324
  '400':
323
- description: The Production environment cannot be disabled.
325
+ description: |-
326
+ The Production environment cannot be disabled (`disable_not_allowed`), or the account
327
+ already has as many enabled non-production environments as its license allows
328
+ (`entitlement_reached`). The environment is left as it was.
324
329
  content:
325
330
  application/json:
326
331
  schema:
327
332
  $ref: '#/components/schemas/Error'
328
- example:
329
- errors:
330
- - code: disable_not_allowed
331
- message: Production environment cannot be disabled.
333
+ examples:
334
+ productionCannotBeDisabled:
335
+ value:
336
+ errors:
337
+ - code: disable_not_allowed
338
+ message: Production environment cannot be disabled.
339
+ environmentLimitReached:
340
+ value:
341
+ errors:
342
+ - code: entitlement_reached
343
+ message: You have reached the maximum number of environments for your subscription. Please contact sales to request an upgrade.
344
+ source: license_validations
332
345
  '401':
333
346
  $ref: '#/components/responses/401-unauthorized'
334
347
  '403':
@@ -1015,6 +1015,13 @@ components:
1015
1015
  '2': Updated file definition schema version with breaking changes.
1016
1016
  description: |
1017
1017
  Schema version of the file definition. Only incremented for breaking changes.
1018
+ x-celigo-ai-guidance:
1019
+ - |-
1020
+ Send it on every create and every full replace: a body without it fails with 422
1021
+ "File definition should have version field set." on delimited, fixed-width, X12 and
1022
+ EDIFACT definitions alike. The server stores either value on every format; the
1023
+ create examples send "1" for delimited and fixed-width definitions, and the X12
1024
+ definitions in the list, read and replace examples carry "2".
1018
1025
  examples:
1019
1026
  - '1'
1020
1027
  - '2'
@@ -2173,26 +2173,7 @@ paths:
2173
2173
  '401':
2174
2174
  $ref: '#/components/responses/401-unauthorized'
2175
2175
  '422':
2176
- description: |-
2177
- A filter value is invalid — an unknown `action` or `source`
2178
- (`invalid_audit_field`), a `from`/`to` that is not ISO 8601
2179
- (`invalid_timestamp_format`), or a window outside the last three
2180
- years or in the future (`invalid_time_period`).
2181
- content:
2182
- application/json:
2183
- schema:
2184
- $ref: '#/components/schemas/Error'
2185
- examples:
2186
- invalidSource:
2187
- value:
2188
- errors:
2189
- - code: invalid_audit_field
2190
- message: bogus is not a valid audit source.
2191
- invalidTimePeriod:
2192
- value:
2193
- errors:
2194
- - code: invalid_time_period
2195
- message: 'Please make sure that the time provided for field: "to" is not older than 3 year(s) to current date and is not a future date.'
2176
+ $ref: '#/components/responses/422-invalid-audit-query'
2196
2177
  /v1/folders/{_id}/audit:
2197
2178
  get:
2198
2179
  x-internal: false
@@ -2291,26 +2272,7 @@ paths:
2291
2272
  '401':
2292
2273
  $ref: '#/components/responses/401-unauthorized'
2293
2274
  '422':
2294
- description: |-
2295
- A filter value is invalid — an unknown `action` or `source`
2296
- (`invalid_audit_field`), a `from`/`to` that is not ISO 8601
2297
- (`invalid_timestamp_format`), or a window outside the last three
2298
- years or in the future (`invalid_time_period`).
2299
- content:
2300
- application/json:
2301
- schema:
2302
- $ref: '#/components/schemas/Error'
2303
- examples:
2304
- invalidAction:
2305
- value:
2306
- errors:
2307
- - code: invalid_audit_field
2308
- message: bogus is not a valid audit action.
2309
- invalidTimestamp:
2310
- value:
2311
- errors:
2312
- - code: invalid_timestamp_format
2313
- message: 'Please make sure that the time provided for field: "from" is in ISO8601 time format.'
2275
+ $ref: '#/components/responses/422-invalid-audit-query'
2314
2276
  /v1/storage/activity:
2315
2277
  get:
2316
2278
  x-internal: false
@@ -4375,6 +4337,43 @@ components:
4375
4337
  errors:
4376
4338
  - code: unprocessable_entity
4377
4339
  message: The request could not be processed due to a semantic error.
4340
+ 422-invalid-audit-query:
4341
+ description: |-
4342
+ A query value is invalid: a filter outside the audit vocabulary (`invalid_audit_field`), a
4343
+ `from` or `to` that is not ISO 8601 (`invalid_timestamp_format`), a bound in the future or a `to`
4344
+ older than the account's audit window (`invalid_time_period`), or a `from` later than `to`
4345
+ (`invalid_time_range`).
4346
+ content:
4347
+ application/json:
4348
+ schema:
4349
+ $ref: '#/components/schemas/Error'
4350
+ examples:
4351
+ invalid_source:
4352
+ value:
4353
+ errors:
4354
+ - code: invalid_audit_field
4355
+ message: zzz is not a valid audit source.
4356
+ to_before_window:
4357
+ summary: A `to` older than a three-year audit window
4358
+ value:
4359
+ errors:
4360
+ - code: invalid_time_period
4361
+ message: 'Please make sure that the time provided for field: "to" is not older than 3 year(s) to current date and is not a future date.'
4362
+ from_in_future:
4363
+ value:
4364
+ errors:
4365
+ - code: invalid_time_period
4366
+ message: 'Please make sure that the time provided for field: "from" is not older than 3 year(s) to current date and is not a future date.'
4367
+ from_after_to:
4368
+ value:
4369
+ errors:
4370
+ - code: invalid_time_range
4371
+ message: Please make sure "from" time should not be greater than "to" time.
4372
+ not_iso_8601:
4373
+ value:
4374
+ errors:
4375
+ - code: invalid_timestamp_format
4376
+ message: 'Please make sure that the time provided for field: "from" is in ISO8601 time format.'
4378
4377
  parameters:
4379
4378
  Limit:
4380
4379
  name: limit
@@ -4405,8 +4404,10 @@ components:
4405
4404
  in: query
4406
4405
  required: false
4407
4406
  description: |-
4408
- Only return entries at or after this timestamp. Must be within the last
4409
- three years and not in the future.
4407
+ Only return entries at or after this timestamp. On a `platform` license, leaving it out limits
4408
+ the range to the year before `to` (or the last year when `to` is omitted too), and a value older
4409
+ than the audit window — the license's `auditLogRetentionYears` — starts the range at the
4410
+ window's edge instead of failing. A future value fails with 422 `invalid_time_period`.
4410
4411
  schema:
4411
4412
  type: string
4412
4413
  format: date-time
@@ -4417,8 +4418,10 @@ components:
4417
4418
  in: query
4418
4419
  required: false
4419
4420
  description: |-
4420
- Only return entries at or before this timestamp. Must be within the last
4421
- three years and not in the future.
4421
+ Only return entries at or before this timestamp. A future value, or one older than the
4422
+ account's audit window, fails with 422 `invalid_time_period`; the message names the window in
4423
+ years (the license's `auditLogRetentionYears` on a `platform` license). A value earlier than
4424
+ `from` fails with 422 `invalid_time_range`.
4422
4425
  schema:
4423
4426
  type: string
4424
4427
  format: date-time
@@ -549,24 +549,8 @@ paths:
549
549
  type: string
550
550
  examples:
551
551
  - W3siJGRhdGUiOiIyMDI2LTA5LTIyVDAzOjI3OjEwLjM5N1oifSwiNmFiMWY1OGU0ZGI1Njg4ZmQ4Y2FjMTc5Il0
552
- - name: from
553
- in: query
554
- required: false
555
- description: Only return entries at or after this timestamp.
556
- schema:
557
- type: string
558
- format: date-time
559
- examples:
560
- - '2026-09-01T00:00:00.000Z'
561
- - name: to
562
- in: query
563
- required: false
564
- description: Only return entries at or before this timestamp.
565
- schema:
566
- type: string
567
- format: date-time
568
- examples:
569
- - '2026-09-30T23:59:59.999Z'
552
+ - $ref: '#/components/parameters/From'
553
+ - $ref: '#/components/parameters/To'
570
554
  - name: action
571
555
  in: query
572
556
  required: false
@@ -783,7 +767,7 @@ paths:
783
767
  '404':
784
768
  $ref: '#/components/responses/404-not-found'
785
769
  '422':
786
- $ref: '#/components/responses/422-unprocessable-entity'
770
+ $ref: '#/components/responses/422-invalid-audit-query'
787
771
  components:
788
772
  securitySchemes:
789
773
  bearerAuth:
@@ -799,6 +783,34 @@ components:
799
783
  response header (`rel="next"`) to fetch the next page.
800
784
  schema:
801
785
  type: string
786
+ From:
787
+ name: from
788
+ in: query
789
+ required: false
790
+ description: |-
791
+ Only return entries at or after this timestamp. On a `platform` license, leaving it out limits
792
+ the range to the year before `to` (or the last year when `to` is omitted too), and a value older
793
+ than the audit window — the license's `auditLogRetentionYears` — starts the range at the
794
+ window's edge instead of failing. A future value fails with 422 `invalid_time_period`.
795
+ schema:
796
+ type: string
797
+ format: date-time
798
+ examples:
799
+ - '2026-05-01T00:00:00.000Z'
800
+ To:
801
+ name: to
802
+ in: query
803
+ required: false
804
+ description: |-
805
+ Only return entries at or before this timestamp. A future value, or one older than the
806
+ account's audit window, fails with 422 `invalid_time_period`; the message names the window in
807
+ years (the license's `auditLogRetentionYears` on a `platform` license). A value earlier than
808
+ `from` fails with 422 `invalid_time_range`.
809
+ schema:
810
+ type: string
811
+ format: date-time
812
+ examples:
813
+ - '2026-05-31T23:59:59.999Z'
802
814
  schemas:
803
815
  NetworkPolicy:
804
816
  type: object
@@ -1242,5 +1254,42 @@ components:
1242
1254
  workspaceUserEnvironments: []
1243
1255
  endUsers: false
1244
1256
  endUserEnvironments: []
1257
+ 422-invalid-audit-query:
1258
+ description: |-
1259
+ A query value is invalid: a filter outside the audit vocabulary (`invalid_audit_field`), a
1260
+ `from` or `to` that is not ISO 8601 (`invalid_timestamp_format`), a bound in the future or a `to`
1261
+ older than the account's audit window (`invalid_time_period`), or a `from` later than `to`
1262
+ (`invalid_time_range`).
1263
+ content:
1264
+ application/json:
1265
+ schema:
1266
+ $ref: '#/components/schemas/Error'
1267
+ examples:
1268
+ invalid_source:
1269
+ value:
1270
+ errors:
1271
+ - code: invalid_audit_field
1272
+ message: zzz is not a valid audit source.
1273
+ to_before_window:
1274
+ summary: A `to` older than a three-year audit window
1275
+ value:
1276
+ errors:
1277
+ - code: invalid_time_period
1278
+ message: 'Please make sure that the time provided for field: "to" is not older than 3 year(s) to current date and is not a future date.'
1279
+ from_in_future:
1280
+ value:
1281
+ errors:
1282
+ - code: invalid_time_period
1283
+ message: 'Please make sure that the time provided for field: "from" is not older than 3 year(s) to current date and is not a future date.'
1284
+ from_after_to:
1285
+ value:
1286
+ errors:
1287
+ - code: invalid_time_range
1288
+ message: Please make sure "from" time should not be greater than "to" time.
1289
+ not_iso_8601:
1290
+ value:
1291
+ errors:
1292
+ - code: invalid_timestamp_format
1293
+ message: 'Please make sure that the time provided for field: "from" is in ISO8601 time format.'
1245
1294
  x-internal: false
1246
1295
  x-enable-proxy: true
package/dist/script.yml CHANGED
@@ -606,24 +606,8 @@ paths:
606
606
  type: string
607
607
  examples:
608
608
  - W3siJGRhdGUiOiIyMDI2LTA1LTAxVDAwOjAwOjAwLjAwMFoifSwiNjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwIl0
609
- - name: from
610
- in: query
611
- required: false
612
- description: Only return entries at or after this timestamp.
613
- schema:
614
- type: string
615
- format: date-time
616
- examples:
617
- - '2026-05-01T00:00:00.000Z'
618
- - name: to
619
- in: query
620
- required: false
621
- description: Only return entries at or before this timestamp.
622
- schema:
623
- type: string
624
- format: date-time
625
- examples:
626
- - '2026-05-31T23:59:59.999Z'
609
+ - $ref: '#/components/parameters/From'
610
+ - $ref: '#/components/parameters/To'
627
611
  - name: action
628
612
  in: query
629
613
  required: false
@@ -820,7 +804,7 @@ paths:
820
804
  '404':
821
805
  $ref: '#/components/responses/404-not-found'
822
806
  '422':
823
- $ref: '#/components/responses/422-unprocessable-entity'
807
+ $ref: '#/components/responses/422-invalid-audit-query'
824
808
  /v1/scripts/{_id}/dependencies:
825
809
  get:
826
810
  x-internal: false
@@ -884,6 +868,34 @@ components:
884
868
  schema:
885
869
  type: string
886
870
  example: createdAt,lastModified
871
+ From:
872
+ name: from
873
+ in: query
874
+ required: false
875
+ description: |-
876
+ Only return entries at or after this timestamp. On a `platform` license, leaving it out limits
877
+ the range to the year before `to` (or the last year when `to` is omitted too), and a value older
878
+ than the audit window — the license's `auditLogRetentionYears` — starts the range at the
879
+ window's edge instead of failing. A future value fails with 422 `invalid_time_period`.
880
+ schema:
881
+ type: string
882
+ format: date-time
883
+ examples:
884
+ - '2026-05-01T00:00:00.000Z'
885
+ To:
886
+ name: to
887
+ in: query
888
+ required: false
889
+ description: |-
890
+ Only return entries at or before this timestamp. A future value, or one older than the
891
+ account's audit window, fails with 422 `invalid_time_period`; the message names the window in
892
+ years (the license's `auditLogRetentionYears` on a `platform` license). A value earlier than
893
+ `from` fails with 422 `invalid_time_range`.
894
+ schema:
895
+ type: string
896
+ format: date-time
897
+ examples:
898
+ - '2026-05-31T23:59:59.999Z'
887
899
  schemas:
888
900
  Script:
889
901
  type: object
@@ -1224,5 +1236,42 @@ components:
1224
1236
  errors:
1225
1237
  - code: dependencies_not_deleted
1226
1238
  message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
1239
+ 422-invalid-audit-query:
1240
+ description: |-
1241
+ A query value is invalid: a filter outside the audit vocabulary (`invalid_audit_field`), a
1242
+ `from` or `to` that is not ISO 8601 (`invalid_timestamp_format`), a bound in the future or a `to`
1243
+ older than the account's audit window (`invalid_time_period`), or a `from` later than `to`
1244
+ (`invalid_time_range`).
1245
+ content:
1246
+ application/json:
1247
+ schema:
1248
+ $ref: '#/components/schemas/Error'
1249
+ examples:
1250
+ invalid_source:
1251
+ value:
1252
+ errors:
1253
+ - code: invalid_audit_field
1254
+ message: zzz is not a valid audit source.
1255
+ to_before_window:
1256
+ summary: A `to` older than a three-year audit window
1257
+ value:
1258
+ errors:
1259
+ - code: invalid_time_period
1260
+ message: 'Please make sure that the time provided for field: "to" is not older than 3 year(s) to current date and is not a future date.'
1261
+ from_in_future:
1262
+ value:
1263
+ errors:
1264
+ - code: invalid_time_period
1265
+ message: 'Please make sure that the time provided for field: "from" is not older than 3 year(s) to current date and is not a future date.'
1266
+ from_after_to:
1267
+ value:
1268
+ errors:
1269
+ - code: invalid_time_range
1270
+ message: Please make sure "from" time should not be greater than "to" time.
1271
+ not_iso_8601:
1272
+ value:
1273
+ errors:
1274
+ - code: invalid_timestamp_format
1275
+ message: 'Please make sure that the time provided for field: "from" is in ISO8601 time format.'
1227
1276
  x-enable-proxy: true
1228
1277
  x-internal: false
package/dist/stack.yml CHANGED
@@ -453,24 +453,8 @@ paths:
453
453
  type: string
454
454
  examples:
455
455
  - W3siJGRhdGUiOiIyMDI2LTA1LTAxVDAwOjAwOjAwLjAwMFoifSwiNjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwIl0
456
- - name: from
457
- in: query
458
- required: false
459
- description: Only return entries at or after this timestamp.
460
- schema:
461
- type: string
462
- format: date-time
463
- examples:
464
- - '2026-05-01T00:00:00.000Z'
465
- - name: to
466
- in: query
467
- required: false
468
- description: Only return entries at or before this timestamp.
469
- schema:
470
- type: string
471
- format: date-time
472
- examples:
473
- - '2026-05-31T23:59:59.999Z'
456
+ - $ref: '#/components/parameters/From'
457
+ - $ref: '#/components/parameters/To'
474
458
  - name: action
475
459
  in: query
476
460
  required: false
@@ -671,7 +655,7 @@ paths:
671
655
  '404':
672
656
  $ref: '#/components/responses/404-not-found'
673
657
  '422':
674
- $ref: '#/components/responses/422-unprocessable-entity'
658
+ $ref: '#/components/responses/422-invalid-audit-query'
675
659
  /v1/stacks/{_id}/dependencies:
676
660
  get:
677
661
  x-internal: false
@@ -1210,6 +1194,34 @@ components:
1210
1194
  schema:
1211
1195
  type: string
1212
1196
  example: createdAt,lastModified
1197
+ From:
1198
+ name: from
1199
+ in: query
1200
+ required: false
1201
+ description: |-
1202
+ Only return entries at or after this timestamp. On a `platform` license, leaving it out limits
1203
+ the range to the year before `to` (or the last year when `to` is omitted too), and a value older
1204
+ than the audit window — the license's `auditLogRetentionYears` — starts the range at the
1205
+ window's edge instead of failing. A future value fails with 422 `invalid_time_period`.
1206
+ schema:
1207
+ type: string
1208
+ format: date-time
1209
+ examples:
1210
+ - '2026-05-01T00:00:00.000Z'
1211
+ To:
1212
+ name: to
1213
+ in: query
1214
+ required: false
1215
+ description: |-
1216
+ Only return entries at or before this timestamp. A future value, or one older than the
1217
+ account's audit window, fails with 422 `invalid_time_period`; the message names the window in
1218
+ years (the license's `auditLogRetentionYears` on a `platform` license). A value earlier than
1219
+ `from` fails with 422 `invalid_time_range`.
1220
+ schema:
1221
+ type: string
1222
+ format: date-time
1223
+ examples:
1224
+ - '2026-05-31T23:59:59.999Z'
1213
1225
  After:
1214
1226
  name: after
1215
1227
  in: query
@@ -1936,5 +1948,42 @@ components:
1936
1948
  errors:
1937
1949
  - code: dependencies_not_deleted
1938
1950
  message: export 6902d88c10b42b2eaac9b2a1 must be deleted before you can delete connection 6398ddf316be761fb16a6523
1951
+ 422-invalid-audit-query:
1952
+ description: |-
1953
+ A query value is invalid: a filter outside the audit vocabulary (`invalid_audit_field`), a
1954
+ `from` or `to` that is not ISO 8601 (`invalid_timestamp_format`), a bound in the future or a `to`
1955
+ older than the account's audit window (`invalid_time_period`), or a `from` later than `to`
1956
+ (`invalid_time_range`).
1957
+ content:
1958
+ application/json:
1959
+ schema:
1960
+ $ref: '#/components/schemas/Error'
1961
+ examples:
1962
+ invalid_source:
1963
+ value:
1964
+ errors:
1965
+ - code: invalid_audit_field
1966
+ message: zzz is not a valid audit source.
1967
+ to_before_window:
1968
+ summary: A `to` older than a three-year audit window
1969
+ value:
1970
+ errors:
1971
+ - code: invalid_time_period
1972
+ message: 'Please make sure that the time provided for field: "to" is not older than 3 year(s) to current date and is not a future date.'
1973
+ from_in_future:
1974
+ value:
1975
+ errors:
1976
+ - code: invalid_time_period
1977
+ message: 'Please make sure that the time provided for field: "from" is not older than 3 year(s) to current date and is not a future date.'
1978
+ from_after_to:
1979
+ value:
1980
+ errors:
1981
+ - code: invalid_time_range
1982
+ message: Please make sure "from" time should not be greater than "to" time.
1983
+ not_iso_8601:
1984
+ value:
1985
+ errors:
1986
+ - code: invalid_timestamp_format
1987
+ message: 'Please make sure that the time provided for field: "from" is in ISO8601 time format.'
1939
1988
  x-internal: false
1940
1989
  x-enable-proxy: true
@@ -752,7 +752,11 @@ components:
752
752
  $ref: '#/components/schemas/LicenseEntitlementCounts'
753
753
  numEnvironments:
754
754
  type: integer
755
- description: Maximum number of environments the plan allows.
755
+ description: |-
756
+ Caps how many non-production environments can be enabled at once; Production is not
757
+ counted, so 0 means none can be. Disabled environments don't count, so an account can
758
+ hold more environments than this. Enabling one more at the cap fails with 400
759
+ `entitlement_reached` on `PUT /v1/environments/{_id}/enable`.
756
760
  example: 5
757
761
  apiManagement:
758
762
  type: boolean
package/dist/sync.yml CHANGED
@@ -1852,24 +1852,8 @@ paths:
1852
1852
  type: string
1853
1853
  examples:
1854
1854
  - W3siJGRhdGUiOiIyMDI2LTA1LTAxVDAwOjAwOjAwLjAwMFoifSwiNjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwIl0
1855
- - name: from
1856
- in: query
1857
- required: false
1858
- description: Only return entries at or after this timestamp.
1859
- schema:
1860
- type: string
1861
- format: date-time
1862
- examples:
1863
- - '2026-05-01T00:00:00.000Z'
1864
- - name: to
1865
- in: query
1866
- required: false
1867
- description: Only return entries at or before this timestamp.
1868
- schema:
1869
- type: string
1870
- format: date-time
1871
- examples:
1872
- - '2026-05-31T23:59:59.999Z'
1855
+ - $ref: '#/components/parameters/From'
1856
+ - $ref: '#/components/parameters/To'
1873
1857
  - name: action
1874
1858
  in: query
1875
1859
  required: false
@@ -2135,7 +2119,7 @@ paths:
2135
2119
  '404':
2136
2120
  $ref: '#/components/responses/404-not-found'
2137
2121
  '422':
2138
- $ref: '#/components/responses/422-unprocessable-entity'
2122
+ $ref: '#/components/responses/422-invalid-audit-query'
2139
2123
  /v1/di/resource/syncs/{_syncId}/events:
2140
2124
  get:
2141
2125
  x-internal: false
@@ -3788,6 +3772,34 @@ components:
3788
3772
  schema:
3789
3773
  type: string
3790
3774
  example: createdAt,lastModified
3775
+ From:
3776
+ name: from
3777
+ in: query
3778
+ required: false
3779
+ description: |-
3780
+ Only return entries at or after this timestamp. On a `platform` license, leaving it out limits
3781
+ the range to the year before `to` (or the last year when `to` is omitted too), and a value older
3782
+ than the audit window — the license's `auditLogRetentionYears` — starts the range at the
3783
+ window's edge instead of failing. A future value fails with 422 `invalid_time_period`.
3784
+ schema:
3785
+ type: string
3786
+ format: date-time
3787
+ examples:
3788
+ - '2026-05-01T00:00:00.000Z'
3789
+ To:
3790
+ name: to
3791
+ in: query
3792
+ required: false
3793
+ description: |-
3794
+ Only return entries at or before this timestamp. A future value, or one older than the
3795
+ account's audit window, fails with 422 `invalid_time_period`; the message names the window in
3796
+ years (the license's `auditLogRetentionYears` on a `platform` license). A value earlier than
3797
+ `from` fails with 422 `invalid_time_range`.
3798
+ schema:
3799
+ type: string
3800
+ format: date-time
3801
+ examples:
3802
+ - '2026-05-31T23:59:59.999Z'
3791
3803
  schemas:
3792
3804
  ElementDriftPolicy:
3793
3805
  type: object
@@ -5451,5 +5463,42 @@ components:
5451
5463
  errors:
5452
5464
  - code: invalid_request
5453
5465
  message: The request body failed validation.
5466
+ 422-invalid-audit-query:
5467
+ description: |-
5468
+ A query value is invalid: a filter outside the audit vocabulary (`invalid_audit_field`), a
5469
+ `from` or `to` that is not ISO 8601 (`invalid_timestamp_format`), a bound in the future or a `to`
5470
+ older than the account's audit window (`invalid_time_period`), or a `from` later than `to`
5471
+ (`invalid_time_range`).
5472
+ content:
5473
+ application/json:
5474
+ schema:
5475
+ $ref: '#/components/schemas/Error'
5476
+ examples:
5477
+ invalid_source:
5478
+ value:
5479
+ errors:
5480
+ - code: invalid_audit_field
5481
+ message: zzz is not a valid audit source.
5482
+ to_before_window:
5483
+ summary: A `to` older than a three-year audit window
5484
+ value:
5485
+ errors:
5486
+ - code: invalid_time_period
5487
+ message: 'Please make sure that the time provided for field: "to" is not older than 3 year(s) to current date and is not a future date.'
5488
+ from_in_future:
5489
+ value:
5490
+ errors:
5491
+ - code: invalid_time_period
5492
+ message: 'Please make sure that the time provided for field: "from" is not older than 3 year(s) to current date and is not a future date.'
5493
+ from_after_to:
5494
+ value:
5495
+ errors:
5496
+ - code: invalid_time_range
5497
+ message: Please make sure "from" time should not be greater than "to" time.
5498
+ not_iso_8601:
5499
+ value:
5500
+ errors:
5501
+ - code: invalid_timestamp_format
5502
+ message: 'Please make sure that the time provided for field: "from" is in ISO8601 time format.'
5454
5503
  x-enable-proxy: true
5455
5504
  x-internal: false
package/dist/topic.yml CHANGED
@@ -846,24 +846,8 @@ paths:
846
846
  type: string
847
847
  examples:
848
848
  - W3siJGRhdGUiOiIyMDI2LTA5LTIyVDAzOjIyOjQzLjkyNVoifSwiNmFiMWY0ODM3YzRiNGU2OTlmZTg1NWI2Il0
849
- - name: from
850
- in: query
851
- required: false
852
- description: Only return entries at or after this timestamp.
853
- schema:
854
- type: string
855
- format: date-time
856
- examples:
857
- - '2026-09-01T00:00:00.000Z'
858
- - name: to
859
- in: query
860
- required: false
861
- description: Only return entries at or before this timestamp.
862
- schema:
863
- type: string
864
- format: date-time
865
- examples:
866
- - '2026-09-30T23:59:59.999Z'
849
+ - $ref: '#/components/parameters/From'
850
+ - $ref: '#/components/parameters/To'
867
851
  - name: action
868
852
  in: query
869
853
  required: false
@@ -1098,24 +1082,7 @@ paths:
1098
1082
  '404':
1099
1083
  $ref: '#/components/responses/404-not-found'
1100
1084
  '422':
1101
- description: |-
1102
- `action` or `source` is outside the audit vocabulary (`invalid_audit_field`), or `from` / `to`
1103
- is not an ISO 8601 timestamp (`invalid_timestamp_format`).
1104
- content:
1105
- application/json:
1106
- schema:
1107
- $ref: '#/components/schemas/Error'
1108
- examples:
1109
- bad_action:
1110
- value:
1111
- errors:
1112
- - code: invalid_audit_field
1113
- message: bogus is not a valid audit action.
1114
- bad_timestamp:
1115
- value:
1116
- errors:
1117
- - code: invalid_timestamp_format
1118
- message: 'Please make sure that the time provided for field: "from" is in ISO8601 time format.'
1085
+ $ref: '#/components/responses/422-invalid-audit-query'
1119
1086
  /v1/topics/{_id}/dependencies:
1120
1087
  get:
1121
1088
  x-internal: false
@@ -1190,6 +1157,34 @@ components:
1190
1157
  response header (`rel="next"`) to fetch the next page.
1191
1158
  schema:
1192
1159
  type: string
1160
+ From:
1161
+ name: from
1162
+ in: query
1163
+ required: false
1164
+ description: |-
1165
+ Only return entries at or after this timestamp. On a `platform` license, leaving it out limits
1166
+ the range to the year before `to` (or the last year when `to` is omitted too), and a value older
1167
+ than the audit window — the license's `auditLogRetentionYears` — starts the range at the
1168
+ window's edge instead of failing. A future value fails with 422 `invalid_time_period`.
1169
+ schema:
1170
+ type: string
1171
+ format: date-time
1172
+ examples:
1173
+ - '2026-05-01T00:00:00.000Z'
1174
+ To:
1175
+ name: to
1176
+ in: query
1177
+ required: false
1178
+ description: |-
1179
+ Only return entries at or before this timestamp. A future value, or one older than the
1180
+ account's audit window, fails with 422 `invalid_time_period`; the message names the window in
1181
+ years (the license's `auditLogRetentionYears` on a `platform` license). A value earlier than
1182
+ `from` fails with 422 `invalid_time_range`.
1183
+ schema:
1184
+ type: string
1185
+ format: date-time
1186
+ examples:
1187
+ - '2026-05-31T23:59:59.999Z'
1193
1188
  schemas:
1194
1189
  Topic:
1195
1190
  type: object
@@ -1819,5 +1814,42 @@ components:
1819
1814
  errors:
1820
1815
  - code: not_found
1821
1816
  message: The requested resource was not found.
1817
+ 422-invalid-audit-query:
1818
+ description: |-
1819
+ A query value is invalid: a filter outside the audit vocabulary (`invalid_audit_field`), a
1820
+ `from` or `to` that is not ISO 8601 (`invalid_timestamp_format`), a bound in the future or a `to`
1821
+ older than the account's audit window (`invalid_time_period`), or a `from` later than `to`
1822
+ (`invalid_time_range`).
1823
+ content:
1824
+ application/json:
1825
+ schema:
1826
+ $ref: '#/components/schemas/Error'
1827
+ examples:
1828
+ invalid_source:
1829
+ value:
1830
+ errors:
1831
+ - code: invalid_audit_field
1832
+ message: zzz is not a valid audit source.
1833
+ to_before_window:
1834
+ summary: A `to` older than a three-year audit window
1835
+ value:
1836
+ errors:
1837
+ - code: invalid_time_period
1838
+ message: 'Please make sure that the time provided for field: "to" is not older than 3 year(s) to current date and is not a future date.'
1839
+ from_in_future:
1840
+ value:
1841
+ errors:
1842
+ - code: invalid_time_period
1843
+ message: 'Please make sure that the time provided for field: "from" is not older than 3 year(s) to current date and is not a future date.'
1844
+ from_after_to:
1845
+ value:
1846
+ errors:
1847
+ - code: invalid_time_range
1848
+ message: Please make sure "from" time should not be greater than "to" time.
1849
+ not_iso_8601:
1850
+ value:
1851
+ errors:
1852
+ - code: invalid_timestamp_format
1853
+ message: 'Please make sure that the time provided for field: "from" is in ISO8601 time format.'
1822
1854
  x-internal: false
1823
1855
  x-enable-proxy: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celigo/api-specs",
3
- "version": "0.2.255",
3
+ "version": "0.2.257",
4
4
  "private": false,
5
5
  "description": "Public OpenAPI bundles (dist/) and the celigo-cli lint schema pack (schemas.json).",
6
6
  "keywords": [
package/schemas.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "provenance": {
3
3
  "repo": "celigo/integrator-api-specs",
4
- "iasCommit": "604e4d4e",
5
- "generatedAt": "2026-11-06"
4
+ "iasCommit": "e05d9b48",
5
+ "generatedAt": "2026-11-07"
6
6
  },
7
7
  "roots": {
8
8
  "aiagent": 128,