@epilot/integration-toolkit-client 1.0.4 → 1.1.1
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/definition.js +1 -1
- package/dist/openapi-runtime.json +63 -0
- package/dist/openapi.d.ts +464 -26
- package/dist/openapi.json +488 -6
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Integration Toolkit API",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.12",
|
|
6
6
|
"description": "API for integrating with external systems in a standardised way."
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -1839,6 +1839,227 @@
|
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
1841
|
},
|
|
1842
|
+
"/v2/integrations/{integrationId}/use-cases/{useCaseId}/secure-proxy-whitelist": {
|
|
1843
|
+
"get": {
|
|
1844
|
+
"operationId": "getSecureProxyWhitelist",
|
|
1845
|
+
"summary": "Get secure_proxy whitelist (admin portal only)",
|
|
1846
|
+
"description": "Returns the current allowed_domains, allowed_ips, and vpc_mode for a secure_proxy use case.\nStaff-only — gated by internal-auth issuer AND admin-portal Cognito user pool membership.\nRejects Login-As tokens.\n",
|
|
1847
|
+
"tags": [
|
|
1848
|
+
"integrations",
|
|
1849
|
+
"proxy"
|
|
1850
|
+
],
|
|
1851
|
+
"security": [
|
|
1852
|
+
{
|
|
1853
|
+
"EpilotAuth": []
|
|
1854
|
+
}
|
|
1855
|
+
],
|
|
1856
|
+
"parameters": [
|
|
1857
|
+
{
|
|
1858
|
+
"name": "integrationId",
|
|
1859
|
+
"in": "path",
|
|
1860
|
+
"required": true,
|
|
1861
|
+
"description": "The integration ID",
|
|
1862
|
+
"schema": {
|
|
1863
|
+
"type": "string",
|
|
1864
|
+
"format": "uuid"
|
|
1865
|
+
}
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"name": "useCaseId",
|
|
1869
|
+
"in": "path",
|
|
1870
|
+
"required": true,
|
|
1871
|
+
"description": "The use case ID",
|
|
1872
|
+
"schema": {
|
|
1873
|
+
"type": "string",
|
|
1874
|
+
"format": "uuid"
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
],
|
|
1878
|
+
"responses": {
|
|
1879
|
+
"200": {
|
|
1880
|
+
"description": "Current whitelist",
|
|
1881
|
+
"content": {
|
|
1882
|
+
"application/json": {
|
|
1883
|
+
"schema": {
|
|
1884
|
+
"$ref": "#/components/schemas/SecureProxyWhitelist"
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
},
|
|
1889
|
+
"400": {
|
|
1890
|
+
"$ref": "#/components/responses/BadRequest"
|
|
1891
|
+
},
|
|
1892
|
+
"401": {
|
|
1893
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
1894
|
+
},
|
|
1895
|
+
"403": {
|
|
1896
|
+
"$ref": "#/components/responses/Forbidden"
|
|
1897
|
+
},
|
|
1898
|
+
"404": {
|
|
1899
|
+
"description": "Use case not found or not of type secure_proxy"
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1903
|
+
"put": {
|
|
1904
|
+
"operationId": "updateSecureProxyWhitelist",
|
|
1905
|
+
"summary": "Update secure_proxy whitelist (admin portal only)",
|
|
1906
|
+
"description": "Replaces allowed_domains and/or allowed_ips on a secure_proxy use case.\nAt least one of the two fields is required. Validation mirrors the CLI's\n`validateDomainPatterns` / `validateCidrs`. Writes a USECASE_HISTORY row\nwith the admin user's email as `changed_by`.\n\nUpdate semantics per field:\n - **omitted** — field is not modified; the stored value is preserved.\n - **non-empty array** — the stored value is replaced with the supplied list.\n - **empty array (`[]`)** — the list is cleared (stored as `[]`). This is\n the canonical way to remove all entries. `null` is not accepted.\n\nStaff-only — same auth gates as GET.\n",
|
|
1907
|
+
"tags": [
|
|
1908
|
+
"integrations",
|
|
1909
|
+
"proxy"
|
|
1910
|
+
],
|
|
1911
|
+
"security": [
|
|
1912
|
+
{
|
|
1913
|
+
"EpilotAuth": []
|
|
1914
|
+
}
|
|
1915
|
+
],
|
|
1916
|
+
"parameters": [
|
|
1917
|
+
{
|
|
1918
|
+
"name": "integrationId",
|
|
1919
|
+
"in": "path",
|
|
1920
|
+
"required": true,
|
|
1921
|
+
"description": "The integration ID",
|
|
1922
|
+
"schema": {
|
|
1923
|
+
"type": "string",
|
|
1924
|
+
"format": "uuid"
|
|
1925
|
+
}
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
"name": "useCaseId",
|
|
1929
|
+
"in": "path",
|
|
1930
|
+
"required": true,
|
|
1931
|
+
"description": "The use case ID",
|
|
1932
|
+
"schema": {
|
|
1933
|
+
"type": "string",
|
|
1934
|
+
"format": "uuid"
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
],
|
|
1938
|
+
"requestBody": {
|
|
1939
|
+
"required": true,
|
|
1940
|
+
"content": {
|
|
1941
|
+
"application/json": {
|
|
1942
|
+
"schema": {
|
|
1943
|
+
"$ref": "#/components/schemas/SecureProxyWhitelistUpdate"
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
},
|
|
1948
|
+
"responses": {
|
|
1949
|
+
"200": {
|
|
1950
|
+
"description": "Updated whitelist (same shape as GET)",
|
|
1951
|
+
"content": {
|
|
1952
|
+
"application/json": {
|
|
1953
|
+
"schema": {
|
|
1954
|
+
"$ref": "#/components/schemas/SecureProxyWhitelist"
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
},
|
|
1959
|
+
"400": {
|
|
1960
|
+
"$ref": "#/components/responses/BadRequest"
|
|
1961
|
+
},
|
|
1962
|
+
"401": {
|
|
1963
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
1964
|
+
},
|
|
1965
|
+
"403": {
|
|
1966
|
+
"$ref": "#/components/responses/Forbidden"
|
|
1967
|
+
},
|
|
1968
|
+
"404": {
|
|
1969
|
+
"description": "Use case not found or not of type secure_proxy"
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
"/v2/integrations/{integrationId}/use-cases/{useCaseId}/secure-proxy-whitelist/history": {
|
|
1975
|
+
"get": {
|
|
1976
|
+
"operationId": "listSecureProxyWhitelistHistory",
|
|
1977
|
+
"summary": "List secure_proxy whitelist change history (admin portal only)",
|
|
1978
|
+
"description": "Returns the most recent USECASE_HISTORY entries for a secure_proxy use case,\nin reverse chronological order (newest first). Each entry includes the\nactor email (`changed_by`), the ISO-8601 timestamp (`history_created_at`),\nthe `change_description` (free-text action), and the full `configuration`\nsnapshot — from which UI-08 computes a before/after diff between consecutive\nentries.\n\nStaff-only — gated by internal-auth issuer AND admin-portal Cognito user pool\nmembership. Rejects Login-As tokens (same auth gate as the GET / PUT\nsecure-proxy-whitelist operations).\n\nThin wrapper over the service-layer `listUseCaseHistory` that powers\n`GET /v1/integrations/{integrationId}/use-cases/{useCaseId}/history` — the\nseparate path exists because the /v1 variant is tenant-gated and admin-portal\ninternal-auth tokens do not carry tenant permissions.\n",
|
|
1979
|
+
"tags": [
|
|
1980
|
+
"integrations",
|
|
1981
|
+
"proxy"
|
|
1982
|
+
],
|
|
1983
|
+
"security": [
|
|
1984
|
+
{
|
|
1985
|
+
"EpilotAuth": []
|
|
1986
|
+
}
|
|
1987
|
+
],
|
|
1988
|
+
"parameters": [
|
|
1989
|
+
{
|
|
1990
|
+
"name": "integrationId",
|
|
1991
|
+
"in": "path",
|
|
1992
|
+
"required": true,
|
|
1993
|
+
"description": "The integration ID",
|
|
1994
|
+
"schema": {
|
|
1995
|
+
"type": "string",
|
|
1996
|
+
"format": "uuid"
|
|
1997
|
+
}
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
"name": "useCaseId",
|
|
2001
|
+
"in": "path",
|
|
2002
|
+
"required": true,
|
|
2003
|
+
"description": "The use case ID (must be of type secure_proxy)",
|
|
2004
|
+
"schema": {
|
|
2005
|
+
"type": "string",
|
|
2006
|
+
"format": "uuid"
|
|
2007
|
+
}
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
"name": "limit",
|
|
2011
|
+
"in": "query",
|
|
2012
|
+
"required": false,
|
|
2013
|
+
"description": "Maximum number of history entries to return. Default 10, max 50.\nCapped at the service-layer page size (20) so `limit > 20` is silently\nclamped to 20. UI-08 requests 5-10 for the panel view.\n",
|
|
2014
|
+
"schema": {
|
|
2015
|
+
"type": "integer",
|
|
2016
|
+
"minimum": 1,
|
|
2017
|
+
"maximum": 50,
|
|
2018
|
+
"default": 10
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
],
|
|
2022
|
+
"responses": {
|
|
2023
|
+
"200": {
|
|
2024
|
+
"description": "Successfully retrieved secure_proxy history",
|
|
2025
|
+
"content": {
|
|
2026
|
+
"application/json": {
|
|
2027
|
+
"schema": {
|
|
2028
|
+
"type": "object",
|
|
2029
|
+
"required": [
|
|
2030
|
+
"history"
|
|
2031
|
+
],
|
|
2032
|
+
"properties": {
|
|
2033
|
+
"history": {
|
|
2034
|
+
"type": "array",
|
|
2035
|
+
"description": "Entries are `SecureProxyUseCaseHistoryEntry` in reverse\nchronological order (newest first). Entries older than the\nrequested `limit` are not returned.\n",
|
|
2036
|
+
"items": {
|
|
2037
|
+
"$ref": "#/components/schemas/SecureProxyUseCaseHistoryEntry"
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
},
|
|
2045
|
+
"400": {
|
|
2046
|
+
"$ref": "#/components/responses/BadRequest"
|
|
2047
|
+
},
|
|
2048
|
+
"401": {
|
|
2049
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
2050
|
+
},
|
|
2051
|
+
"403": {
|
|
2052
|
+
"$ref": "#/components/responses/Forbidden"
|
|
2053
|
+
},
|
|
2054
|
+
"404": {
|
|
2055
|
+
"description": "Use case not found or not of type secure_proxy"
|
|
2056
|
+
},
|
|
2057
|
+
"500": {
|
|
2058
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
},
|
|
1842
2063
|
"/v1/integrations/{integrationId}/app-mapping": {
|
|
1843
2064
|
"put": {
|
|
1844
2065
|
"operationId": "setIntegrationAppMapping",
|
|
@@ -2923,6 +3144,12 @@
|
|
|
2923
3144
|
"maxLength": 255,
|
|
2924
3145
|
"description": "Optional unique identifier for idempotency - prevents duplicate processing of the same event within 24 hours in context of the same integration. Must contain only alphanumeric characters, hyphens, and underscores.\n",
|
|
2925
3146
|
"example": "evt-2025-05-01-12345-create-bp"
|
|
3147
|
+
},
|
|
3148
|
+
"use_case_id": {
|
|
3149
|
+
"type": "string",
|
|
3150
|
+
"nullable": true,
|
|
3151
|
+
"readOnly": true,
|
|
3152
|
+
"description": "Resolved use case ID for the inbound event. Null when no use case matched or for events ingested before this field was introduced. Server-populated only — ignored if supplied on inbound requests.\n"
|
|
2926
3153
|
}
|
|
2927
3154
|
}
|
|
2928
3155
|
},
|
|
@@ -3045,8 +3272,9 @@
|
|
|
3045
3272
|
},
|
|
3046
3273
|
"group_id": {
|
|
3047
3274
|
"type": "string",
|
|
3048
|
-
"description": "
|
|
3049
|
-
"maxLength": 128
|
|
3275
|
+
"description": "Controls ordering and parallelism for this request's events.\n\nBy default, all events for a given `integration_id` are processed\n**strictly in order, one at a time**. For high-volume integrations this\ncan become a throughput bottleneck.\n\nSet `group_id` to opt into **parallel processing**:\n- Events sharing the same `group_id` are processed in the order received.\n- Events with different `group_id` values are processed in parallel.\n\nTypical usage is to derive `group_id` from a logical partition key in\nyour payload — for example the customer ID, contract ID, or meter ID —\nso updates to the same business object remain ordered while unrelated\nobjects are processed concurrently.\n\nNotes:\n- Up to 20 groups per integration are processed concurrently. Using\n more distinct values than that yields no additional parallelism.\n- Omit this field if strict per-integration ordering is required.\n",
|
|
3276
|
+
"maxLength": 128,
|
|
3277
|
+
"example": "customer-42"
|
|
3050
3278
|
},
|
|
3051
3279
|
"events": {
|
|
3052
3280
|
"type": "array",
|
|
@@ -3822,6 +4050,12 @@
|
|
|
3822
4050
|
},
|
|
3823
4051
|
"file_proxy_url": {
|
|
3824
4052
|
"$ref": "#/components/schemas/FileProxyUrlConfig"
|
|
4053
|
+
},
|
|
4054
|
+
"portal_ref": {
|
|
4055
|
+
"$ref": "#/components/schemas/PortalRefConfig"
|
|
4056
|
+
},
|
|
4057
|
+
"env_var_ref": {
|
|
4058
|
+
"$ref": "#/components/schemas/EnvVarRefConfig"
|
|
3825
4059
|
}
|
|
3826
4060
|
}
|
|
3827
4061
|
},
|
|
@@ -3908,6 +4142,180 @@
|
|
|
3908
4142
|
}
|
|
3909
4143
|
]
|
|
3910
4144
|
},
|
|
4145
|
+
"PortalOrigin": {
|
|
4146
|
+
"type": "string",
|
|
4147
|
+
"enum": [
|
|
4148
|
+
"END_CUSTOMER_PORTAL",
|
|
4149
|
+
"INSTALLER_PORTAL",
|
|
4150
|
+
"B2B_PORTAL",
|
|
4151
|
+
"ADDITIONAL_PORTAL"
|
|
4152
|
+
],
|
|
4153
|
+
"description": "Origin/type of an epilot portal configuration."
|
|
4154
|
+
},
|
|
4155
|
+
"PortalRefFilter": {
|
|
4156
|
+
"type": "object",
|
|
4157
|
+
"description": "Filter applied to the org's portal configurations before selection. All filters default to \"match any\" except `enabled` (default `true`) and `is_dummy` (default `false`). Set `enabled` or `is_dummy` to `null` to opt out of the default.\n",
|
|
4158
|
+
"properties": {
|
|
4159
|
+
"origin": {
|
|
4160
|
+
"oneOf": [
|
|
4161
|
+
{
|
|
4162
|
+
"$ref": "#/components/schemas/PortalOrigin"
|
|
4163
|
+
},
|
|
4164
|
+
{
|
|
4165
|
+
"type": "array",
|
|
4166
|
+
"items": {
|
|
4167
|
+
"$ref": "#/components/schemas/PortalOrigin"
|
|
4168
|
+
}
|
|
4169
|
+
}
|
|
4170
|
+
],
|
|
4171
|
+
"description": "Single origin or array of origins (matches if origin is in the array)."
|
|
4172
|
+
},
|
|
4173
|
+
"enabled": {
|
|
4174
|
+
"type": "boolean",
|
|
4175
|
+
"nullable": true,
|
|
4176
|
+
"description": "Match portals with this `enabled` value. Default `true`. Set to `null` to ignore."
|
|
4177
|
+
},
|
|
4178
|
+
"is_dummy": {
|
|
4179
|
+
"type": "boolean",
|
|
4180
|
+
"nullable": true,
|
|
4181
|
+
"description": "Match portals with this `is_dummy` value. Default `false`. Set to `null` to ignore."
|
|
4182
|
+
},
|
|
4183
|
+
"is_epilot_domain": {
|
|
4184
|
+
"type": "boolean",
|
|
4185
|
+
"description": "Optional restriction on `is_epilot_domain`."
|
|
4186
|
+
},
|
|
4187
|
+
"name": {
|
|
4188
|
+
"type": "string",
|
|
4189
|
+
"description": "Exact match on the portal's `name`."
|
|
4190
|
+
},
|
|
4191
|
+
"domain": {
|
|
4192
|
+
"type": "string",
|
|
4193
|
+
"description": "Exact match on the portal's `domain`."
|
|
4194
|
+
}
|
|
4195
|
+
}
|
|
4196
|
+
},
|
|
4197
|
+
"PortalRefConfig": {
|
|
4198
|
+
"description": "Resolves to a property of one of the calling organization's epilot portal configurations at runtime, replacing hard-coded environment-specific portal UUIDs in inbound mappings. Matched portals are sorted ascending by `(_created_at, portal_id)`; portals without `_created_at` sort first (treated as oldest). When `select: \"single\"` matches more than one portal, the resolver still returns the oldest match and emits a `PORTAL_REF_AMBIGUOUS` warning.\n",
|
|
4199
|
+
"oneOf": [
|
|
4200
|
+
{
|
|
4201
|
+
"type": "object",
|
|
4202
|
+
"properties": {
|
|
4203
|
+
"filter": {
|
|
4204
|
+
"$ref": "#/components/schemas/PortalRefFilter"
|
|
4205
|
+
},
|
|
4206
|
+
"select": {
|
|
4207
|
+
"type": "string",
|
|
4208
|
+
"enum": [
|
|
4209
|
+
"single",
|
|
4210
|
+
"all"
|
|
4211
|
+
],
|
|
4212
|
+
"default": "single",
|
|
4213
|
+
"description": "`single` returns one literal value (the oldest matching portal); `all` returns an array of literal values (0, 1, or many).\n"
|
|
4214
|
+
},
|
|
4215
|
+
"return": {
|
|
4216
|
+
"type": "string",
|
|
4217
|
+
"enum": [
|
|
4218
|
+
"portal_id",
|
|
4219
|
+
"origin",
|
|
4220
|
+
"domain",
|
|
4221
|
+
"name"
|
|
4222
|
+
],
|
|
4223
|
+
"default": "portal_id",
|
|
4224
|
+
"description": "Which portal field to emit."
|
|
4225
|
+
}
|
|
4226
|
+
}
|
|
4227
|
+
},
|
|
4228
|
+
{
|
|
4229
|
+
"type": "object",
|
|
4230
|
+
"required": [
|
|
4231
|
+
"return",
|
|
4232
|
+
"jsonataExpression"
|
|
4233
|
+
],
|
|
4234
|
+
"properties": {
|
|
4235
|
+
"filter": {
|
|
4236
|
+
"$ref": "#/components/schemas/PortalRefFilter"
|
|
4237
|
+
},
|
|
4238
|
+
"select": {
|
|
4239
|
+
"type": "string",
|
|
4240
|
+
"enum": [
|
|
4241
|
+
"single",
|
|
4242
|
+
"all"
|
|
4243
|
+
],
|
|
4244
|
+
"default": "single"
|
|
4245
|
+
},
|
|
4246
|
+
"return": {
|
|
4247
|
+
"type": "string",
|
|
4248
|
+
"enum": [
|
|
4249
|
+
"jsonata"
|
|
4250
|
+
],
|
|
4251
|
+
"description": "Evaluate the sibling `jsonataExpression` against the matched portal(s). With `select: \"single\"` the input is the matched PortalConfig object; with `select: \"all\"` it is the full filtered+sorted array.\n"
|
|
4252
|
+
},
|
|
4253
|
+
"jsonataExpression": {
|
|
4254
|
+
"type": "string",
|
|
4255
|
+
"description": "JSONata expression evaluated against the matched portal(s)."
|
|
4256
|
+
}
|
|
4257
|
+
}
|
|
4258
|
+
}
|
|
4259
|
+
]
|
|
4260
|
+
},
|
|
4261
|
+
"EnvVarRefConfig": {
|
|
4262
|
+
"description": "Resolves to an org-scoped environment variable from the epilot environments-api service at runtime, replacing hard-coded environment-specific values (URLs, prefixes, identifiers) in inbound mappings. Secrets (`SecretString` values) are never exposed; the runtime treats both \"missing key\" and \"secret-typed key\" as identical `undefined` outcomes (no info disclosure via error code). For secret-resolving contexts (e.g. authorization headers in managed-call or file-proxy step configurations), use the templated `{{ env.<key> }}` syntax instead — that mechanism does decrypt secrets.\n",
|
|
4263
|
+
"oneOf": [
|
|
4264
|
+
{
|
|
4265
|
+
"type": "object",
|
|
4266
|
+
"required": [
|
|
4267
|
+
"key"
|
|
4268
|
+
],
|
|
4269
|
+
"properties": {
|
|
4270
|
+
"key": {
|
|
4271
|
+
"type": "string",
|
|
4272
|
+
"pattern": "^[a-z0-9][a-z0-9_.-]{0,127}$",
|
|
4273
|
+
"description": "Environment variable key. Must match the environments-api key contract (lowercase, digits, `_`, `.`, `-`; max 128 chars; starts with a lowercase letter or digit). Supports dot-namespaced keys like `erp_api.base_url`.\n"
|
|
4274
|
+
},
|
|
4275
|
+
"default": {
|
|
4276
|
+
"type": "string",
|
|
4277
|
+
"description": "Literal string returned when the key is missing (or is a secret). When provided, the `ENV_VAR_REF_NOT_FOUND` warning is suppressed because the author signalled the absence is expected.\n"
|
|
4278
|
+
},
|
|
4279
|
+
"return": {
|
|
4280
|
+
"type": "string",
|
|
4281
|
+
"enum": [
|
|
4282
|
+
"value"
|
|
4283
|
+
],
|
|
4284
|
+
"default": "value",
|
|
4285
|
+
"description": "`value` returns the resolved env-var string as-is.\n"
|
|
4286
|
+
}
|
|
4287
|
+
}
|
|
4288
|
+
},
|
|
4289
|
+
{
|
|
4290
|
+
"type": "object",
|
|
4291
|
+
"required": [
|
|
4292
|
+
"key",
|
|
4293
|
+
"return",
|
|
4294
|
+
"jsonataExpression"
|
|
4295
|
+
],
|
|
4296
|
+
"properties": {
|
|
4297
|
+
"key": {
|
|
4298
|
+
"type": "string",
|
|
4299
|
+
"pattern": "^[a-z0-9][a-z0-9_.-]{0,127}$"
|
|
4300
|
+
},
|
|
4301
|
+
"default": {
|
|
4302
|
+
"type": "string"
|
|
4303
|
+
},
|
|
4304
|
+
"return": {
|
|
4305
|
+
"type": "string",
|
|
4306
|
+
"enum": [
|
|
4307
|
+
"jsonata"
|
|
4308
|
+
],
|
|
4309
|
+
"description": "Evaluate the sibling `jsonataExpression` against the resolved env-var value (the input `$` is the string value).\n"
|
|
4310
|
+
},
|
|
4311
|
+
"jsonataExpression": {
|
|
4312
|
+
"type": "string",
|
|
4313
|
+
"description": "JSONata expression evaluated against the resolved env-var value."
|
|
4314
|
+
}
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
]
|
|
4318
|
+
},
|
|
3911
4319
|
"EmbeddedUseCaseRequest": {
|
|
3912
4320
|
"oneOf": [
|
|
3913
4321
|
{
|
|
@@ -3961,7 +4369,7 @@
|
|
|
3961
4369
|
"pattern": "^[a-z0-9][a-z0-9_-]*$",
|
|
3962
4370
|
"minLength": 1,
|
|
3963
4371
|
"maxLength": 255,
|
|
3964
|
-
"description": "URL-safe identifier for the use case.
|
|
4372
|
+
"description": "URL-safe identifier for the use case. Optional on this upsert/sync endpoint — when omitted, the server derives one from the name and ensures uniqueness within the integration. Immutable after creation.\n"
|
|
3965
4373
|
},
|
|
3966
4374
|
"enabled": {
|
|
3967
4375
|
"type": "boolean",
|
|
@@ -4357,6 +4765,7 @@
|
|
|
4357
4765
|
"type": "object",
|
|
4358
4766
|
"required": [
|
|
4359
4767
|
"name",
|
|
4768
|
+
"slug",
|
|
4360
4769
|
"type",
|
|
4361
4770
|
"enabled"
|
|
4362
4771
|
],
|
|
@@ -4372,7 +4781,7 @@
|
|
|
4372
4781
|
"pattern": "^[a-z0-9][a-z0-9_-]*$",
|
|
4373
4782
|
"minLength": 1,
|
|
4374
4783
|
"maxLength": 255,
|
|
4375
|
-
"description": "URL-safe identifier for the use case.
|
|
4784
|
+
"description": "URL-safe identifier for the use case. Required for explicit creates so every use case has a portable cross-environment identifier. Must be unique per integration. Immutable after creation. Lowercase alphanumeric, hyphens, and underscores only.\n"
|
|
4376
4785
|
},
|
|
4377
4786
|
"enabled": {
|
|
4378
4787
|
"type": "boolean",
|
|
@@ -4748,6 +5157,10 @@
|
|
|
4748
5157
|
"type": "string",
|
|
4749
5158
|
"description": "Description of the change that was made at this point in history"
|
|
4750
5159
|
},
|
|
5160
|
+
"changed_by": {
|
|
5161
|
+
"type": "string",
|
|
5162
|
+
"description": "User ID of the user who made the change that produced this history entry"
|
|
5163
|
+
},
|
|
4751
5164
|
"created_at": {
|
|
4752
5165
|
"type": "string",
|
|
4753
5166
|
"format": "date-time",
|
|
@@ -4931,6 +5344,61 @@
|
|
|
4931
5344
|
}
|
|
4932
5345
|
}
|
|
4933
5346
|
},
|
|
5347
|
+
"SecureProxyWhitelist": {
|
|
5348
|
+
"type": "object",
|
|
5349
|
+
"required": [
|
|
5350
|
+
"vpc_mode",
|
|
5351
|
+
"allowed_domains",
|
|
5352
|
+
"allowed_ips"
|
|
5353
|
+
],
|
|
5354
|
+
"description": "Current whitelist state for a secure_proxy use case. vpc_mode is read-only\ncontext so the UI can show the user what mode the pool is in.\n",
|
|
5355
|
+
"properties": {
|
|
5356
|
+
"vpc_mode": {
|
|
5357
|
+
"type": "string",
|
|
5358
|
+
"nullable": true,
|
|
5359
|
+
"enum": [
|
|
5360
|
+
"static_ip",
|
|
5361
|
+
"secure_link"
|
|
5362
|
+
],
|
|
5363
|
+
"description": "VPC routing mode (read-only). `null` if not yet set."
|
|
5364
|
+
},
|
|
5365
|
+
"allowed_domains": {
|
|
5366
|
+
"type": "array",
|
|
5367
|
+
"items": {
|
|
5368
|
+
"type": "string"
|
|
5369
|
+
},
|
|
5370
|
+
"description": "Exact domain (\"api.example.com\") or wildcard prefix (\"*.example.com\").\nWildcards must have at least 2 labels in the suffix.\n"
|
|
5371
|
+
},
|
|
5372
|
+
"allowed_ips": {
|
|
5373
|
+
"type": "array",
|
|
5374
|
+
"items": {
|
|
5375
|
+
"type": "string"
|
|
5376
|
+
},
|
|
5377
|
+
"description": "CIDR-notation IP ranges, e.g. \"10.0.0.0/24\"."
|
|
5378
|
+
}
|
|
5379
|
+
}
|
|
5380
|
+
},
|
|
5381
|
+
"SecureProxyWhitelistUpdate": {
|
|
5382
|
+
"type": "object",
|
|
5383
|
+
"description": "Partial update for a secure_proxy whitelist. At least one of\n`allowed_domains` or `allowed_ips` must be provided.\n\nPer-field semantics:\n - **omitted** — the field is not modified; the stored value is preserved.\n - **non-empty array** — the stored value is replaced with the supplied list.\n - **empty array (`[]`)** — the list is cleared (stored as `[]`). This is the\n canonical way to remove all entries from a list. `null` is not accepted.\n",
|
|
5384
|
+
"minProperties": 1,
|
|
5385
|
+
"properties": {
|
|
5386
|
+
"allowed_domains": {
|
|
5387
|
+
"type": "array",
|
|
5388
|
+
"items": {
|
|
5389
|
+
"type": "string"
|
|
5390
|
+
},
|
|
5391
|
+
"description": "Exact domain (\"api.example.com\") or wildcard prefix (\"*.example.com\").\nWildcards must have at least 2 labels in the suffix.\nPass `[]` to clear all allowed domains.\n"
|
|
5392
|
+
},
|
|
5393
|
+
"allowed_ips": {
|
|
5394
|
+
"type": "array",
|
|
5395
|
+
"items": {
|
|
5396
|
+
"type": "string"
|
|
5397
|
+
},
|
|
5398
|
+
"description": "CIDR-notation IP ranges, e.g. \"10.0.0.0/24\".\nPass `[]` to clear all allowed IPs.\n"
|
|
5399
|
+
}
|
|
5400
|
+
}
|
|
5401
|
+
},
|
|
4934
5402
|
"SecureProxySummary": {
|
|
4935
5403
|
"type": "object",
|
|
4936
5404
|
"required": [
|
|
@@ -5472,6 +5940,15 @@
|
|
|
5472
5940
|
},
|
|
5473
5941
|
"description": "Additional use-case-specific parameters expected in the download URL query string (beyond the required orgId, integrationId, and useCaseSlug or useCaseId)"
|
|
5474
5942
|
},
|
|
5943
|
+
"allowed_origins": {
|
|
5944
|
+
"type": "array",
|
|
5945
|
+
"items": {
|
|
5946
|
+
"type": "string",
|
|
5947
|
+
"format": "uri",
|
|
5948
|
+
"pattern": "^https?://"
|
|
5949
|
+
},
|
|
5950
|
+
"description": "Additional origins permitted to call /download for this use case (CORS, exact match). Portal origins are always allowed."
|
|
5951
|
+
},
|
|
5475
5952
|
"steps": {
|
|
5476
5953
|
"type": "array",
|
|
5477
5954
|
"minItems": 1,
|
|
@@ -5852,7 +6329,7 @@
|
|
|
5852
6329
|
"attributes": {
|
|
5853
6330
|
"type": "object",
|
|
5854
6331
|
"additionalProperties": true,
|
|
5855
|
-
"description": "Meter reading attributes. Required: external_id, timestamp, source, value. `source` must be one of: ECP, ERP, 360, journey-submission. `reason` (optional) must be one of: regular, irregular, last, first, meter_change, contract_change, meter_adjustment (or empty/null)."
|
|
6332
|
+
"description": "Meter reading attributes. Required: external_id, timestamp, source, value. `timestamp` must be ISO 8601 — either `YYYY-MM-DD` or `YYYY-MM-DDTHH:mm:ss` (with optional fractional seconds and optional `Z` / `±HH:mm` timezone offset); non-ISO formats (e.g. `DD.MM.YYYY` or epoch numbers) are rejected and must be converted upstream via a `jsonataExpression` (e.g. `$fromMillis(...)`). Date-only values are normalized to midnight UTC and offset-less date-times are anchored to UTC before being forwarded to the metering API. `source` must be one of: ECP, ERP, 360, journey-submission. `reason` (optional) must be one of: regular, irregular, last, first, meter_change, contract_change, meter_adjustment (or empty/null)."
|
|
5856
6333
|
}
|
|
5857
6334
|
}
|
|
5858
6335
|
},
|
|
@@ -6399,6 +6876,11 @@
|
|
|
6399
6876
|
"type": "string",
|
|
6400
6877
|
"description": "Filter by event name (alias for object_type)"
|
|
6401
6878
|
},
|
|
6879
|
+
"use_case_id": {
|
|
6880
|
+
"type": "string",
|
|
6881
|
+
"minLength": 1,
|
|
6882
|
+
"description": "Filter by use case ID"
|
|
6883
|
+
},
|
|
6402
6884
|
"limit": {
|
|
6403
6885
|
"type": "integer",
|
|
6404
6886
|
"description": "Maximum number of results to return",
|