@celigo/api-specs 0.2.256 → 0.2.258
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 +69 -19
- package/dist/audit.yml +137 -127
- package/dist/editransaction.yml +177 -38
- package/dist/environment.yml +19 -6
- package/dist/filestorage.yml +47 -44
- package/dist/networkpolicy.yml +68 -19
- package/dist/processor.yml +112 -6
- package/dist/recyclebin.yml +6 -0
- package/dist/script.yml +68 -19
- package/dist/stack.yml +68 -19
- package/dist/subscription.yml +5 -1
- package/dist/sync.yml +68 -19
- package/dist/topic.yml +68 -36
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/editransaction.yml
CHANGED
|
@@ -42,11 +42,14 @@ paths:
|
|
|
42
42
|
Partially updates one or more EDI transaction records. Commonly used
|
|
43
43
|
to update the `faStatus` field (functional acknowledgment status).
|
|
44
44
|
|
|
45
|
-
The endpoint is lenient
|
|
46
|
-
|
|
47
|
-
response is `200` with
|
|
48
|
-
|
|
49
|
-
`
|
|
45
|
+
The endpoint is lenient about records it can't match — when the
|
|
46
|
+
`ediTransactions` array is empty, missing, or holds well-formed IDs
|
|
47
|
+
that match no record, the response is `200` with
|
|
48
|
+
`{"ediTransactions": []}` rather than a 400. A malformed `_id` on an
|
|
49
|
+
`accepted` or `rejected` entry is not skipped: it fails the whole
|
|
50
|
+
request with 400 `invalid_edi_transaction_id`. Callers should always
|
|
51
|
+
supply `fileType` and a non-empty `ediTransactions` array for
|
|
52
|
+
meaningful results.
|
|
50
53
|
requestBody:
|
|
51
54
|
required: true
|
|
52
55
|
content:
|
|
@@ -66,6 +69,7 @@ paths:
|
|
|
66
69
|
properties:
|
|
67
70
|
_id:
|
|
68
71
|
type: string
|
|
72
|
+
format: objectId
|
|
69
73
|
description: EDI transaction ID to update.
|
|
70
74
|
examples:
|
|
71
75
|
- 69ca6b7a42f275a91eab88bd
|
|
@@ -127,9 +131,36 @@ paths:
|
|
|
127
131
|
value:
|
|
128
132
|
ediTransactions: []
|
|
129
133
|
'400':
|
|
130
|
-
|
|
134
|
+
description: |-
|
|
135
|
+
An `ediTransactions` entry is not an object, or an entry whose
|
|
136
|
+
`faStatus` is `accepted` or `rejected` has an `_id` that is missing
|
|
137
|
+
or is not a 24-character hex object ID.
|
|
138
|
+
content:
|
|
139
|
+
application/json:
|
|
140
|
+
schema:
|
|
141
|
+
$ref: '#/components/schemas/Error'
|
|
142
|
+
examples:
|
|
143
|
+
invalid_id:
|
|
144
|
+
summary: Malformed transaction ID
|
|
145
|
+
value:
|
|
146
|
+
errors:
|
|
147
|
+
- code: invalid_edi_transaction_id
|
|
148
|
+
message: ediTransactions contains an invalid _id
|
|
131
149
|
'401':
|
|
132
150
|
$ref: '#/components/responses/401-unauthorized'
|
|
151
|
+
'422':
|
|
152
|
+
description: The update failed — for example, `fileType` is not `X12` or `EDIFACT`.
|
|
153
|
+
content:
|
|
154
|
+
application/json:
|
|
155
|
+
schema:
|
|
156
|
+
$ref: '#/components/schemas/Error'
|
|
157
|
+
examples:
|
|
158
|
+
update_failed:
|
|
159
|
+
summary: Unsupported fileType
|
|
160
|
+
value:
|
|
161
|
+
errors:
|
|
162
|
+
- code: edi_update_failed
|
|
163
|
+
message: Unable to update EDI Transactions. Contact Celigo Support to resolve the error.
|
|
133
164
|
/v1/ediTransactions/query:
|
|
134
165
|
post:
|
|
135
166
|
x-internal: false
|
|
@@ -187,6 +218,13 @@ paths:
|
|
|
187
218
|
- failed
|
|
188
219
|
limit: 100
|
|
189
220
|
startDate: 1742774400000
|
|
221
|
+
edifact_by_sender:
|
|
222
|
+
summary: EDIFACT transactions from one trading partner (by UNB sender ID)
|
|
223
|
+
value:
|
|
224
|
+
fileType: EDIFACT
|
|
225
|
+
unbSenderId: '3017581483'
|
|
226
|
+
limit: 100
|
|
227
|
+
startDate: 1742774400000
|
|
190
228
|
sorted_by_partner:
|
|
191
229
|
summary: Sorted by trading partner name, Z to A
|
|
192
230
|
value:
|
|
@@ -439,7 +477,10 @@ paths:
|
|
|
439
477
|
partnerPairKey: 'ACMEFOODS :CELIGOTEST '
|
|
440
478
|
lastModified: '2026-11-02T13:26:29.963Z'
|
|
441
479
|
'400':
|
|
442
|
-
description:
|
|
480
|
+
description: |-
|
|
481
|
+
The request body failed validation. A second search field is refused
|
|
482
|
+
with `invalid_searchapi_body`, whose message names the X12 sender and
|
|
483
|
+
receiver fields by their record names (`isaSenderId`, `isaReceiverId`).
|
|
443
484
|
content:
|
|
444
485
|
application/json:
|
|
445
486
|
schema:
|
|
@@ -460,6 +501,42 @@ paths:
|
|
|
460
501
|
errors:
|
|
461
502
|
- code: invalid_date_range
|
|
462
503
|
message: please provide a valid date range
|
|
504
|
+
start_time_or_end_time_missing:
|
|
505
|
+
summary: endDate sent without startDate
|
|
506
|
+
value:
|
|
507
|
+
errors:
|
|
508
|
+
- code: start_time_or_end_time_missing
|
|
509
|
+
message: start time or end time missing
|
|
510
|
+
invalid_searchapi_body:
|
|
511
|
+
summary: Two search fields in one call
|
|
512
|
+
value:
|
|
513
|
+
errors:
|
|
514
|
+
- code: invalid_searchapi_body
|
|
515
|
+
message: Invalid search api body provided, only one field out of documentNumber, isaSenderId, isaReceiverId is required
|
|
516
|
+
invalid_search_param_for_X12:
|
|
517
|
+
summary: An EDIFACT sender field without fileType EDIFACT
|
|
518
|
+
value:
|
|
519
|
+
errors:
|
|
520
|
+
- code: invalid_search_param_for_X12
|
|
521
|
+
message: invalid search param unbSenderId for filetype X12
|
|
522
|
+
invalid_searchapi_body_length:
|
|
523
|
+
summary: Search value shorter than three characters
|
|
524
|
+
value:
|
|
525
|
+
errors:
|
|
526
|
+
- code: invalid_searchapi_body_length
|
|
527
|
+
message: Invalid search api body provided, the search query string length should not be less than 3
|
|
528
|
+
invalid_searchapi_pattern:
|
|
529
|
+
summary: A * before the end of the search value
|
|
530
|
+
value:
|
|
531
|
+
errors:
|
|
532
|
+
- code: invalid_searchapi_pattern
|
|
533
|
+
message: Invalid search api body provided, "*" is only expected at the end of the string
|
|
534
|
+
invalid_searchapi_limit:
|
|
535
|
+
summary: A search value ending in * with limit above 100
|
|
536
|
+
value:
|
|
537
|
+
errors:
|
|
538
|
+
- code: invalid_searchapi_limit
|
|
539
|
+
message: Invalid search api body provided, the limit provided should not be more than 100
|
|
463
540
|
unsupported_sort_field:
|
|
464
541
|
value:
|
|
465
542
|
errors:
|
|
@@ -506,6 +583,11 @@ paths:
|
|
|
506
583
|
errors:
|
|
507
584
|
- code: invalid_fa_status
|
|
508
585
|
message: 'Invalid fa status, only accepted values: notReceived,accepted,acceptedWithErrors,rejected,failed,notApplicable'
|
|
586
|
+
invalid_page_token:
|
|
587
|
+
value:
|
|
588
|
+
errors:
|
|
589
|
+
- code: invalid_page_token
|
|
590
|
+
message: Invalid request, page token is not valid
|
|
509
591
|
'401':
|
|
510
592
|
$ref: '#/components/responses/401-unauthorized'
|
|
511
593
|
'404':
|
|
@@ -2338,15 +2420,60 @@ components:
|
|
|
2338
2420
|
type: object
|
|
2339
2421
|
description: |-
|
|
2340
2422
|
Filter for `POST /v1/ediTransactions/query`. All fields are optional.
|
|
2341
|
-
Results are narrowed by `fileType`, `
|
|
2342
|
-
|
|
2343
|
-
`
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2423
|
+
Results are narrowed by `fileType`, `faStatus`, the `startDate`/`endDate`
|
|
2424
|
+
window, at most one search field — `documentNumber`, or
|
|
2425
|
+
`interchangeSenderId`/`interchangeReceiverId` for X12, or
|
|
2426
|
+
`unbSenderId`/`unbReceiverId` for EDIFACT — and the dashboard's `filters`
|
|
2427
|
+
object, which the server applies in full. A search value needs at least
|
|
2428
|
+
three characters and takes `*` only as its last character; a value ending
|
|
2429
|
+
in `*` also needs three characters before it and a `limit` of 100 or less.
|
|
2430
|
+
The top-level `direction`, `documentType`, and `_integrationId` are
|
|
2431
|
+
accepted but not applied server-side (filter on those client-side, or use
|
|
2432
|
+
`filters`). Records come back newest-first by `lastModified` unless
|
|
2433
|
+
`sortBy` or `order` is set, and are cursor-paginated via `pageToken`.
|
|
2434
|
+
`view: lifecycle` with `mode` returns the documents grouped by order
|
|
2435
|
+
lifecycle instead of flat rows.
|
|
2436
|
+
if:
|
|
2437
|
+
properties:
|
|
2438
|
+
fileType:
|
|
2439
|
+
const: EDIFACT
|
|
2440
|
+
required:
|
|
2441
|
+
- fileType
|
|
2442
|
+
then:
|
|
2443
|
+
not:
|
|
2444
|
+
anyOf:
|
|
2445
|
+
- required:
|
|
2446
|
+
- interchangeSenderId
|
|
2447
|
+
- required:
|
|
2448
|
+
- interchangeReceiverId
|
|
2449
|
+
- required:
|
|
2450
|
+
- documentNumber
|
|
2451
|
+
- unbSenderId
|
|
2452
|
+
- required:
|
|
2453
|
+
- documentNumber
|
|
2454
|
+
- unbReceiverId
|
|
2455
|
+
- required:
|
|
2456
|
+
- unbSenderId
|
|
2457
|
+
- unbReceiverId
|
|
2458
|
+
else:
|
|
2459
|
+
not:
|
|
2460
|
+
anyOf:
|
|
2461
|
+
- required:
|
|
2462
|
+
- unbSenderId
|
|
2463
|
+
- required:
|
|
2464
|
+
- unbReceiverId
|
|
2465
|
+
- required:
|
|
2466
|
+
- documentNumber
|
|
2467
|
+
- interchangeSenderId
|
|
2468
|
+
- required:
|
|
2469
|
+
- documentNumber
|
|
2470
|
+
- interchangeReceiverId
|
|
2471
|
+
- required:
|
|
2472
|
+
- interchangeSenderId
|
|
2473
|
+
- interchangeReceiverId
|
|
2474
|
+
dependentRequired:
|
|
2475
|
+
endDate:
|
|
2476
|
+
- startDate
|
|
2350
2477
|
properties:
|
|
2351
2478
|
fileType:
|
|
2352
2479
|
type: string
|
|
@@ -2361,18 +2488,40 @@ components:
|
|
|
2361
2488
|
`fileType: EDIFACT` explicitly to query EDIFACT records.
|
|
2362
2489
|
interchangeSenderId:
|
|
2363
2490
|
type: string
|
|
2491
|
+
pattern: ^[^*]{3,}\*?$
|
|
2364
2492
|
description: |-
|
|
2365
|
-
|
|
2366
|
-
`
|
|
2493
|
+
X12 only. Searches the record's `isaSenderId` (ISA06). Refused with
|
|
2494
|
+
`fileType: EDIFACT` (`invalid_search_param_for_EDIFACT`) — use
|
|
2495
|
+
`unbSenderId` there.
|
|
2367
2496
|
examples:
|
|
2368
2497
|
- '1234567890'
|
|
2369
2498
|
interchangeReceiverId:
|
|
2370
2499
|
type: string
|
|
2500
|
+
pattern: ^[^*]{3,}\*?$
|
|
2371
2501
|
description: |-
|
|
2372
|
-
|
|
2373
|
-
`
|
|
2502
|
+
X12 only. Searches the record's `isaReceiverId` (ISA08). Refused with
|
|
2503
|
+
`fileType: EDIFACT` (`invalid_search_param_for_EDIFACT`) — use
|
|
2504
|
+
`unbReceiverId` there.
|
|
2374
2505
|
examples:
|
|
2375
2506
|
- CELIGOLABZ
|
|
2507
|
+
unbSenderId:
|
|
2508
|
+
type: string
|
|
2509
|
+
pattern: ^[^*]{3,}\*?$
|
|
2510
|
+
description: |-
|
|
2511
|
+
EDIFACT only. Searches the record's `unbSenderId` (UNB02). Send it with
|
|
2512
|
+
`fileType: EDIFACT`; under X12, the default, it is refused
|
|
2513
|
+
(`invalid_search_param_for_X12`).
|
|
2514
|
+
examples:
|
|
2515
|
+
- '3017581483'
|
|
2516
|
+
unbReceiverId:
|
|
2517
|
+
type: string
|
|
2518
|
+
pattern: ^[^*]{3,}\*?$
|
|
2519
|
+
description: |-
|
|
2520
|
+
EDIFACT only. Searches the record's `unbReceiverId` (UNB03). Send it
|
|
2521
|
+
with `fileType: EDIFACT`; under X12, the default, it is refused
|
|
2522
|
+
(`invalid_search_param_for_X12`).
|
|
2523
|
+
examples:
|
|
2524
|
+
- '7177587895'
|
|
2376
2525
|
direction:
|
|
2377
2526
|
type: string
|
|
2378
2527
|
enum:
|
|
@@ -2397,10 +2546,11 @@ components:
|
|
|
2397
2546
|
- '850'
|
|
2398
2547
|
documentNumber:
|
|
2399
2548
|
type: string
|
|
2549
|
+
pattern: ^[^*]{3,}\*?$
|
|
2400
2550
|
description: |-
|
|
2401
|
-
Business document number to
|
|
2402
|
-
|
|
2403
|
-
|
|
2551
|
+
Business document number to search for — the `documentNumber` field
|
|
2552
|
+
extracted from the transaction set (e.g. a purchase-order number from
|
|
2553
|
+
an 850's BEG03). Works for either file type.
|
|
2404
2554
|
examples:
|
|
2405
2555
|
- PO03302026A
|
|
2406
2556
|
_integrationId:
|
|
@@ -2455,7 +2605,8 @@ components:
|
|
|
2455
2605
|
format: int64
|
|
2456
2606
|
description: |-
|
|
2457
2607
|
Upper bound of the `lastModified` window, as epoch milliseconds.
|
|
2458
|
-
Must be greater than `startDate
|
|
2608
|
+
Must be greater than `startDate` and needs it: `endDate` alone is
|
|
2609
|
+
refused with `start_time_or_end_time_missing`.
|
|
2459
2610
|
examples:
|
|
2460
2611
|
- 1745452800000
|
|
2461
2612
|
limit:
|
|
@@ -2493,7 +2644,8 @@ components:
|
|
|
2493
2644
|
description: |-
|
|
2494
2645
|
Opaque cursor from a previous response's `pageToken.next`. Pass
|
|
2495
2646
|
this value to retrieve the next page of results; omit it on the
|
|
2496
|
-
first call.
|
|
2647
|
+
first call. A corrupted or truncated value fails with
|
|
2648
|
+
`invalid_page_token`. On a dual-view request send an object carrying both
|
|
2497
2649
|
windows' cursors — one missing either key fails with
|
|
2498
2650
|
`invalid_query_dual_page_token`. A cursor fixes its own sort, so
|
|
2499
2651
|
`sortBy` and `order` are ignored beside it.
|
|
@@ -3445,19 +3597,6 @@ components:
|
|
|
3445
3597
|
- mdnTimestamp
|
|
3446
3598
|
- mdnDisposition
|
|
3447
3599
|
responses:
|
|
3448
|
-
400-bad-request:
|
|
3449
|
-
description: |
|
|
3450
|
-
Bad request. The server could not understand the request because of malformed syntax or invalid parameters.
|
|
3451
|
-
content:
|
|
3452
|
-
application/json:
|
|
3453
|
-
schema:
|
|
3454
|
-
$ref: '#/components/schemas/Error'
|
|
3455
|
-
examples:
|
|
3456
|
-
default:
|
|
3457
|
-
value:
|
|
3458
|
-
errors:
|
|
3459
|
-
- code: invalid_request
|
|
3460
|
-
message: The request body failed validation.
|
|
3461
3600
|
401-unauthorized:
|
|
3462
3601
|
description: |-
|
|
3463
3602
|
Unauthorized. The request lacks a valid bearer token, or the provided token
|
package/dist/environment.yml
CHANGED
|
@@ -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:
|
|
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
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
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':
|
package/dist/filestorage.yml
CHANGED
|
@@ -2173,26 +2173,7 @@ paths:
|
|
|
2173
2173
|
'401':
|
|
2174
2174
|
$ref: '#/components/responses/401-unauthorized'
|
|
2175
2175
|
'422':
|
|
2176
|
-
|
|
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
|
-
|
|
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.
|
|
4409
|
-
|
|
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.
|
|
4421
|
-
|
|
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
|
package/dist/networkpolicy.yml
CHANGED
|
@@ -549,24 +549,8 @@ paths:
|
|
|
549
549
|
type: string
|
|
550
550
|
examples:
|
|
551
551
|
- W3siJGRhdGUiOiIyMDI2LTA5LTIyVDAzOjI3OjEwLjM5N1oifSwiNmFiMWY1OGU0ZGI1Njg4ZmQ4Y2FjMTc5Il0
|
|
552
|
-
-
|
|
553
|
-
|
|
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-
|
|
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
|